aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/files_sharing.js
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-01-17 12:56:18 +0100
committerJulius Härtl <jus@bitgrid.net>2019-03-01 20:56:16 +0100
commitd6aae4317ddb64356cd633121fd858482839fb7d (patch)
tree7c929ff211ff1fe5454eab39fbab6e4998d9fee7 /apps/files_sharing/src/files_sharing.js
parentab4b293854bf627c1d5dafcd7218e36cb3580bad (diff)
downloadnextcloud-server-d6aae4317ddb64356cd633121fd858482839fb7d.tar.gz
nextcloud-server-d6aae4317ddb64356cd633121fd858482839fb7d.zip
Move files_sharing to webpack
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files_sharing/src/files_sharing.js')
-rw-r--r--apps/files_sharing/src/files_sharing.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/apps/files_sharing/src/files_sharing.js b/apps/files_sharing/src/files_sharing.js
new file mode 100644
index 00000000000..c31c8c6e205
--- /dev/null
+++ b/apps/files_sharing/src/files_sharing.js
@@ -0,0 +1,16 @@
+// CSP config for webpack dynamic chunk loading
+// eslint-disable-next-line
+__webpack_nonce__ = btoa(OC.requestToken)
+
+// Correct the root of the app for chunk loading
+// OC.linkTo matches the apps folders
+// eslint-disable-next-line
+__webpack_public_path__ = OC.linkTo('files_sharing', 'js/dist/')
+
+import '../js/app'
+import '../js/sharedfilelist'
+import '../js/sharetabview'
+import '../js/share'
+import '../js/sharebreadcrumbview'
+
+window.OCA.Sharing = OCA.Sharing