Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-12-02 20:32:57 +0300
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-01-08 12:14:05 +0300
commit74b980310852a0b406fa9d073870f92c409d5444 (patch)
tree055cbdf57886077bf3a6ea476813deedb54064e0 /apps/weather_status
parent85bc8513557f5ff37fc283d53893d4cb77ec7c3b (diff)
Eslint fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/weather_status')
-rw-r--r--apps/weather_status/src/App.vue2
-rw-r--r--apps/weather_status/src/services/weatherStatusService.js44
2 files changed, 23 insertions, 23 deletions
diff --git a/apps/weather_status/src/App.vue b/apps/weather_status/src/App.vue
index 600ebbc49ba..e8cab2272d6 100644
--- a/apps/weather_status/src/App.vue
+++ b/apps/weather_status/src/App.vue
@@ -253,7 +253,7 @@ export default {
/**
* The message displayed in the top right corner
*
- * @returns {String}
+ * @return {string}
*/
currentWeatherMessage() {
if (this.loading) {
diff --git a/apps/weather_status/src/services/weatherStatusService.js b/apps/weather_status/src/services/weatherStatusService.js
index 7f4fc35316c..bf9cc43b090 100644
--- a/apps/weather_status/src/services/weatherStatusService.js
+++ b/apps/weather_status/src/services/weatherStatusService.js
@@ -26,11 +26,11 @@ import { generateOcsUrl } from '@nextcloud/router'
/**
*
*
- * @param {String} lat the latitude
- * @param {String} lon the longitude
- * @returns {Promise<Object>}
+ * @param {string} lat the latitude
+ * @param {string} lon the longitude
+ * @return {Promise<object>}
*/
-const setLocation = async(lat, lon) => {
+const setLocation = async (lat, lon) => {
const url = generateOcsUrl('apps/weather_status/api/v1/location')
const response = await HttpClient.put(url, {
address: '',
@@ -43,10 +43,10 @@ const setLocation = async(lat, lon) => {
/**
*
- * @param {String} address The location
- * @returns {Promise<Object>}
+ * @param {string} address The location
+ * @return {Promise<object>}
*/
-const setAddress = async(address) => {
+const setAddress = async (address) => {
const url = generateOcsUrl('apps/weather_status/api/v1/location')
const response = await HttpClient.put(url, {
address,
@@ -59,10 +59,10 @@ const setAddress = async(address) => {
/**
*
- * @param {String} mode can be 1 browser or 2 custom
- * @returns {Promise<Object>}
+ * @param {string} mode can be 1 browser or 2 custom
+ * @return {Promise<object>}
*/
-const setMode = async(mode) => {
+const setMode = async (mode) => {
const url = generateOcsUrl('apps/weather_status/api/v1/mode')
const response = await HttpClient.put(url, {
mode,
@@ -73,9 +73,9 @@ const setMode = async(mode) => {
/**
*
- * @returns {Promise<Object>}
+ * @return {Promise<object>}
*/
-const usePersonalAddress = async() => {
+const usePersonalAddress = async () => {
const url = generateOcsUrl('apps/weather_status/api/v1/use-personal')
const response = await HttpClient.put(url)
@@ -85,9 +85,9 @@ const usePersonalAddress = async() => {
/**
* Fetches the location information for current user
*
- * @returns {Promise<Object>}
+ * @return {Promise<object>}
*/
-const getLocation = async() => {
+const getLocation = async () => {
const url = generateOcsUrl('apps/weather_status/api/v1/location')
const response = await HttpClient.get(url)
@@ -97,10 +97,10 @@ const getLocation = async() => {
/**
* Fetches the weather forecast
*
- * @param {String} address The location
- * @returns {Promise<Object>}
+ * @param {string} address The location
+ * @return {Promise<object>}
*/
-const fetchForecast = async() => {
+const fetchForecast = async () => {
const url = generateOcsUrl('apps/weather_status/api/v1/forecast')
const response = await HttpClient.get(url)
@@ -110,10 +110,10 @@ const fetchForecast = async() => {
/**
* Fetches the location favorites
*
- * @param {String} address The location
- * @returns {Promise<Object>}
+ * @param {string} address The location
+ * @return {Promise<object>}
*/
-const getFavorites = async() => {
+const getFavorites = async () => {
const url = generateOcsUrl('apps/weather_status/api/v1/favorites')
const response = await HttpClient.get(url)
@@ -123,9 +123,9 @@ const getFavorites = async() => {
/**
*
* @param {Array} favorites List of favorite addresses
- * @returns {Promise<Object>}
+ * @return {Promise<object>}
*/
-const saveFavorites = async(favorites) => {
+const saveFavorites = async (favorites) => {
const url = generateOcsUrl('apps/weather_status/api/v1/favorites')
const response = await HttpClient.put(url, {
favorites,