aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/files_sharing.js
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-01-31 11:03:03 +0100
committerJulius Härtl <jus@bitgrid.net>2019-03-01 20:56:18 +0100
commitd1a4856b5dbc2d9fc19d203c640a3c01a64a1fe8 (patch)
tree078b7fd8dadcee4972855fcdace8d7dc55913e1e /apps/files_sharing/src/files_sharing.js
parente404ce7096b9e4666f91cdca2e837d8ecd802357 (diff)
downloadnextcloud-server-d1a4856b5dbc2d9fc19d203c640a3c01a64a1fe8.tar.gz
nextcloud-server-d1a4856b5dbc2d9fc19d203c640a3c01a64a1fe8.zip
Add eslint settings and reorganize files
Signed-off-by: Julius Härtl <jus@bitgrid.net> Add files_sharing package-lock 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.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/apps/files_sharing/src/files_sharing.js b/apps/files_sharing/src/files_sharing.js
index 56bd2f67613..4e90afaf943 100644
--- a/apps/files_sharing/src/files_sharing.js
+++ b/apps/files_sharing/src/files_sharing.js
@@ -1,12 +1,12 @@
-__webpack_nonce__ = btoa(OC.requestToken)
-__webpack_public_path__ = OC.linkTo('files_sharing', 'js/dist/')
+__webpack_nonce__ = btoa(OC.requestToken);
+__webpack_public_path__ = OC.linkTo('files_sharing', 'js/dist/');
-import '../js/app'
-import '../js/sharedfilelist'
-import '../js/sharetabview'
-import '../js/share'
-import '../js/sharebreadcrumbview'
+import '../js/app';
+import '../js/sharedfilelist';
+import '../js/sharetabview';
+import '../js/share';
+import '../js/sharebreadcrumbview';
window.OCP.Collaboration.registerType('files', {
action: () => {
@@ -14,15 +14,15 @@ window.OCP.Collaboration.registerType('files', {
OC.dialogs.filepicker('Link to a file', function (f) {
const client = OC.Files.getClient();
client.getFileInfo(f).then((status, fileInfo) => {
- resolve(fileInfo.id)
+ resolve(fileInfo.id);
}, () => {
- reject()
- })
+ reject();
+ });
}, false);
- })
+ });
},
/** used in "Link to a {typeString}" */
typeString: t('files_sharing', 'file')
});
-window.OCA.Sharing = OCA.Sharing
+window.OCA.Sharing = OCA.Sharing;