summaryrefslogtreecommitdiffstats
path: root/core/src/OC/index.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-13 16:37:38 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-13 16:37:38 +0200
commite3ae7dc11524bfe9c6f07305fa2761b54a8823bd (patch)
tree62a8d52940a502a647b767ad43e3176a1fbbbd49 /core/src/OC/index.js
parent74ad4cce838172a51d441ffd53b7cae936f9dbb3 (diff)
downloadnextcloud-server-e3ae7dc11524bfe9c6f07305fa2761b54a8823bd.tar.gz
nextcloud-server-e3ae7dc11524bfe9c6f07305fa2761b54a8823bd.zip
Move path helpers to the bundle
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src/OC/index.js')
-rw-r--r--core/src/OC/index.js22
1 files changed, 20 insertions, 2 deletions
diff --git a/core/src/OC/index.js b/core/src/OC/index.js
index 6a9fea3c7b7..9838e63b0f8 100644
--- a/core/src/OC/index.js
+++ b/core/src/OC/index.js
@@ -24,6 +24,13 @@ import Apps from './apps'
import {AppConfig, appConfig} from './appconfig'
import appswebroots from './appswebroots'
import Backbone from './backbone'
+import {
+ basename,
+ dirname,
+ encodePath,
+ isSamePath,
+ joinPaths,
+} from './path'
import Config from './config'
import {
coreApps,
@@ -55,9 +62,10 @@ import {
import {isUserAdmin} from './admin'
import L10N from './l10n'
import {
+ filePath,
generateUrl,
getRootPath,
- filePath,
+ imagePath,
linkTo,
linkToOCS,
linkToRemote,
@@ -125,6 +133,15 @@ export default {
showMenu,
unregisterMenu,
+ /*
+ * Path helpers
+ */
+ basename,
+ encodePath,
+ dirname,
+ isSamePath,
+ joinPaths,
+
msg,
Notification,
PasswordConfirmation,
@@ -132,11 +149,12 @@ export default {
search,
Util,
debug,
+ filePath,
generateUrl,
get: get(window),
set: set(window),
getRootPath,
- filePath,
+ imagePath,
redirect,
reload,
requestToken: getRequestToken(),