diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-07 18:11:08 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-05-07 18:11:08 +0200 |
commit | 944364d866af441a0c694b6d84f222ce4982733a (patch) | |
tree | e8b840ed3a8ce4d7e930075d6b81e290f4f9f600 /core/src/OC | |
parent | 5893f218c247d4c0829fb74161e663f3903e15ad (diff) | |
download | nextcloud-server-944364d866af441a0c694b6d84f222ce4982733a.tar.gz nextcloud-server-944364d866af441a0c694b6d84f222ce4982733a.zip |
Move rest of contant-like OC props to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src/OC')
-rw-r--r-- | core/src/OC/constants.js | 2 | ||||
-rw-r--r-- | core/src/OC/index.js | 4 | ||||
-rw-r--r-- | core/src/OC/routing.js | 3 |
3 files changed, 8 insertions, 1 deletions
diff --git a/core/src/OC/constants.js b/core/src/OC/constants.js index 25482ecb832..a519ce1a053 100644 --- a/core/src/OC/constants.js +++ b/core/src/OC/constants.js @@ -19,6 +19,8 @@ * along with this program. If not see <http://www.gnu.org/licenses/>. */ +export const coreApps = ['', 'admin','log','core/search','settings','core','3rdparty'] +export const menuSpeed = 50 export const PERMISSION_NONE = 0 export const PERMISSION_CREATE = 4 export const PERMISSION_READ = 1 diff --git a/core/src/OC/index.js b/core/src/OC/index.js index 471d7a182f1..cf334c5a835 100644 --- a/core/src/OC/index.js +++ b/core/src/OC/index.js @@ -25,6 +25,8 @@ import appswebroots from './appswebroots' import Backbone from './backbone' import Config from './config' import { + coreApps, + menuSpeed, PERMISSION_ALL, PERMISSION_CREATE, PERMISSION_DELETE, @@ -64,6 +66,8 @@ export default { /* * Constants */ + coreApps, + menuSpeed, PERMISSION_ALL, PERMISSION_CREATE, PERMISSION_DELETE, diff --git a/core/src/OC/routing.js b/core/src/OC/routing.js index 0c57f01b963..8c7a7d7e1cd 100644 --- a/core/src/OC/routing.js +++ b/core/src/OC/routing.js @@ -22,6 +22,7 @@ import _ from 'underscore' import OC from './index' +import {coreApps} from './constants' /** * Get an absolute url to a file in an app @@ -105,7 +106,7 @@ export const generateUrl = (url, params, options) => { * @return {string} Absolute URL for a file in an app */ export const filePath = (app, type, file) => { - const isCore = OC.coreApps.indexOf(app) !== -1 + const isCore = coreApps.indexOf(app) !== -1 let link = getRootPath() if (file.substring(file.length - 3) === 'php' && !isCore) { link += '/index.php/apps/' + app; |