summaryrefslogtreecommitdiffstats
path: root/core/src/OC/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/OC/index.js')
-rw-r--r--core/src/OC/index.js49
1 files changed, 25 insertions, 24 deletions
diff --git a/core/src/OC/index.js b/core/src/OC/index.js
index 461e0160526..0c95fe3e95f 100644
--- a/core/src/OC/index.js
+++ b/core/src/OC/index.js
@@ -1,4 +1,4 @@
-/*
+/**
* @copyright 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
*
* @author 2019 Christoph Wurst <christoph@winzerhof-wurst.at>
@@ -19,15 +19,15 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-import {addScript, addStyle} from './legacy-loader'
+import { addScript, addStyle } from './legacy-loader'
import {
ajaxConnectionLostHandler,
processAjaxError,
- registerXHRForErrorProcessing,
+ registerXHRForErrorProcessing
} from './xhr-error'
import Apps from './apps'
-import {AppConfig, appConfig} from './appconfig'
-import {appSettings} from './appsettings'
+import { AppConfig, appConfig } from './appconfig'
+import { appSettings } from './appsettings'
import appswebroots from './appswebroots'
import Backbone from './backbone'
import {
@@ -35,11 +35,11 @@ import {
dirname,
encodePath,
isSamePath,
- joinPaths,
+ joinPaths
} from './path'
import {
build as buildQueryString,
- parse as parseQueryString,
+ parse as parseQueryString
} from './query-string'
import Config from './config'
import {
@@ -52,37 +52,37 @@ import {
PERMISSION_READ,
PERMISSION_SHARE,
PERMISSION_UPDATE,
- TAG_FAVORITE,
+ TAG_FAVORITE
} from './constants'
import ContactsMenu from './contactsmenu'
-import {currentUser, getCurrentUser} from './currentuser'
+import { currentUser, getCurrentUser } from './currentuser'
import Dialogs from './dialogs'
import EventSource from './eventsource'
-import {get, set} from './get_set'
-import {getCapabilities} from './capabilities'
+import { get, set } from './get_set'
+import { getCapabilities } from './capabilities'
import {
getHost,
getHostName,
getPort,
- getProtocol,
+ getProtocol
} from './host'
import {
getToken as getRequestToken,
- subscribe as subscribeToRequestTokenChange,
+ subscribe as subscribeToRequestTokenChange
} from './requesttoken'
import {
hideMenus,
registerMenu,
showMenu,
- unregisterMenu,
+ unregisterMenu
} from './menu'
-import {isUserAdmin} from './admin'
-import L10N from './l10n'
-import {
+import { isUserAdmin } from './admin'
+import L10N, {
getCanonicalLocale,
getLanguage,
- getLocale,
+ getLocale
} from './l10n'
+
import {
filePath,
generateUrl,
@@ -91,17 +91,17 @@ import {
linkTo,
linkToOCS,
linkToRemote,
- linkToRemoteBase,
+ linkToRemoteBase
} from './routing'
import msg from './msg'
import Notification from './notification'
import PasswordConfirmation from './password-confirmation'
import Plugins from './plugins'
import search from './search'
-import {theme} from './theme'
+import { theme } from './theme'
import Util from './util'
-import {debug} from './debug'
-import {redirect, reload} from './navigation'
+import { debug } from './debug'
+import { redirect, reload } from './navigation'
import webroot from './webroot'
/** @namespace OC */
@@ -126,6 +126,7 @@ export default {
/**
* Check if a user file is allowed to be handled.
* @param {string} file to check
+ * @returns {Boolean}
* @deprecated 17.0.0
*/
fileIsBlacklisted: file => !!(file.match(Config.blacklist_files_regex)),
@@ -253,8 +254,8 @@ export default {
* @deprecated since 8.2, use OC.getRootPath() instead
* @see OC#getRootPath
*/
- webroot,
+ webroot
}
// Keep the request token prop in sync
-subscribeToRequestTokenChange(token => OC.requestToken = token)
+subscribeToRequestTokenChange(token => { OC.requestToken = token })