diff options
author | dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> | 2019-11-13 12:05:10 +0000 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2019-12-19 11:55:33 +0100 |
commit | ec01e0a790448fff38364f629a4de4edb5d465bf (patch) | |
tree | 8fb5369e3d6f9f805025802e12feaa4dfaef1e03 /apps/files_sharing/src | |
parent | 5d9fd7ba0cced84f1d07627b0860ac5490de164d (diff) | |
download | nextcloud-server-ec01e0a790448fff38364f629a4de4edb5d465bf.tar.gz nextcloud-server-ec01e0a790448fff38364f629a4de4edb5d465bf.zip |
Bump eslint-config-nextcloud from 0.0.6 to 0.1.0
Bumps [eslint-config-nextcloud](https://github.com/nextcloud/eslint-config-nextcloud) from 0.0.6 to 0.1.0.
- [Release notes](https://github.com/nextcloud/eslint-config-nextcloud/releases)
- [Commits](https://github.com/nextcloud/eslint-config-nextcloud/compare/v0.0.6...v0.1.0)
Co-authored-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/files_sharing/src')
18 files changed, 136 insertions, 136 deletions
diff --git a/apps/files_sharing/src/collaborationresourceshandler.js b/apps/files_sharing/src/collaborationresourceshandler.js index 1e1ebe5b541..ceb9234cd2b 100644 --- a/apps/files_sharing/src/collaborationresourceshandler.js +++ b/apps/files_sharing/src/collaborationresourceshandler.js @@ -17,5 +17,5 @@ window.OCP.Collaboration.registerType('file', { }) }, typeString: t('files_sharing', 'Link to a file'), - typeIconClass: 'icon-files-dark' + typeIconClass: 'icon-files-dark', }) diff --git a/apps/files_sharing/src/components/PersonalSettings.vue b/apps/files_sharing/src/components/PersonalSettings.vue index 6f5f6bf082f..b7839e3d0df 100644 --- a/apps/files_sharing/src/components/PersonalSettings.vue +++ b/apps/files_sharing/src/components/PersonalSettings.vue @@ -39,7 +39,7 @@ export default { name: 'PersonalSettings', data() { return { - accepting: true + accepting: true, } }, mounted() { @@ -50,10 +50,10 @@ export default { axios.put( generateUrl('/apps/files_sharing/settings/defaultAccept'), { - accept: this.accepting + accept: this.accepting, } ) - } - } + }, + }, } </script> diff --git a/apps/files_sharing/src/components/SharingEntry.vue b/apps/files_sharing/src/components/SharingEntry.vue index 4d7f60cfa61..21747089753 100644 --- a/apps/files_sharing/src/components/SharingEntry.vue +++ b/apps/files_sharing/src/components/SharingEntry.vue @@ -130,11 +130,11 @@ export default { ActionCheckbox, ActionInput, ActionTextEditable, - Avatar + Avatar, }, directives: { - Tooltip + Tooltip, }, mixins: [SharesMixin], @@ -143,7 +143,7 @@ export default { return { permissionsEdit: OC.PERMISSION_UPDATE, permissionsRead: OC.PERMISSION_READ, - permissionsShare: OC.PERMISSION_SHARE + permissionsShare: OC.PERMISSION_SHARE, } }, @@ -170,7 +170,7 @@ export default { // todo: strong or italic? // but the t function escape any html from the data :/ user: this.share.shareWithDisplayName, - owner: this.share.owner + owner: this.share.owner, } if (this.share.type === this.SHARE_TYPES.SHARE_TYPE_GROUP) { @@ -198,7 +198,7 @@ export default { }, set: function(checked) { this.updatePermissions(checked, this.canReshare) - } + }, }, /** @@ -210,7 +210,7 @@ export default { }, set: function(checked) { this.updatePermissions(this.canEdit, checked) - } + }, }, /** @@ -227,13 +227,13 @@ export default { ? this.config.defaultInternalExpirationDateString : moment().format('YYYY-MM-DD') : '' - } + }, }, dateMaxEnforced() { return this.config.isDefaultInternalExpireDateEnforced && moment().add(1 + this.config.defaultInternalExpireDate, 'days') - } + }, }, @@ -246,8 +246,8 @@ export default { this.share.permissions = permissions this.queueUpdate('permissions') - } - } + }, + }, } </script> diff --git a/apps/files_sharing/src/components/SharingEntryInherited.vue b/apps/files_sharing/src/components/SharingEntryInherited.vue index b402ddd08be..d0c75c817ce 100644 --- a/apps/files_sharing/src/components/SharingEntryInherited.vue +++ b/apps/files_sharing/src/components/SharingEntryInherited.vue @@ -68,7 +68,7 @@ export default { ActionLink, ActionText, Avatar, - SharingEntrySimple + SharingEntrySimple, }, mixins: [SharesMixin], @@ -76,17 +76,17 @@ export default { props: { share: { type: Share, - required: true - } + required: true, + }, }, computed: { fileTargetUrl() { return generateUrl('/f/{fileid}', { - fileid: this.share.fileSource + fileid: this.share.fileSource, }) - } - } + }, + }, } </script> diff --git a/apps/files_sharing/src/components/SharingEntryInternal.vue b/apps/files_sharing/src/components/SharingEntryInternal.vue index 720c016b82e..d727e6b9e54 100644 --- a/apps/files_sharing/src/components/SharingEntryInternal.vue +++ b/apps/files_sharing/src/components/SharingEntryInternal.vue @@ -28,21 +28,21 @@ export default { components: { ActionLink, - SharingEntrySimple + SharingEntrySimple, }, props: { fileInfo: { type: Object, default: () => {}, - required: true - } + required: true, + }, }, data() { return { copied: false, - copySuccess: false + copySuccess: false, } }, @@ -73,7 +73,7 @@ export default { return t('files_sharing', 'Only works for users with access to this folder') } return t('files_sharing', 'Only works for users with access to this file') - } + }, }, methods: { @@ -94,8 +94,8 @@ export default { this.copied = false }, 4000) } - } - } + }, + }, } </script> diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index ddfe953e339..7b86d9952ec 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -316,11 +316,11 @@ export default { ActionLink, ActionText, ActionTextEditable, - Avatar + Avatar, }, directives: { - Tooltip + Tooltip, }, mixins: [SharesMixin], @@ -328,8 +328,8 @@ export default { props: { canReshare: { type: Boolean, - default: true - } + default: true, + }, }, data() { @@ -341,7 +341,7 @@ export default { publicUploadRValue: OC.PERMISSION_READ, publicUploadWValue: OC.PERMISSION_CREATE, - ExternalLinkActions: OCA.Sharing.ExternalLinkActions.state + ExternalLinkActions: OCA.Sharing.ExternalLinkActions.state, } }, @@ -366,7 +366,7 @@ export default { if (this.share && this.share.id) { if (!this.isShareOwner && this.share.ownerDisplayName) { return t('files_sharing', 'Shared via link by {initiator}', { - initiator: this.share.ownerDisplayName + initiator: this.share.ownerDisplayName, }) } if (this.share.label && this.share.label.trim() !== '') { @@ -393,7 +393,7 @@ export default { ? this.config.defaultExpirationDateString : moment().format('YYYY-MM-DD') : '' - } + }, }, dateMaxEnforced() { @@ -414,7 +414,7 @@ export default { // TODO: directly save after generation to make sure the share is always protected this.share.password = enabled ? await this.generatePassword() : '' this.share.newPassword = this.share.password - } + }, }, /** @@ -452,7 +452,7 @@ export default { this.share.permissions = enabled ? OC.PERMISSION_READ | OC.PERMISSION_UPDATE : OC.PERMISSION_READ - } + }, }, // if newPassword exists, but is empty, it means @@ -510,7 +510,7 @@ export default { isPasswordPolicyEnabled() { return typeof this.config.passwordPolicy === 'object' - } + }, }, methods: { @@ -519,7 +519,7 @@ export default { */ async onNewLinkShare() { const shareDefaults = { - share_type: OC.Share.SHARE_TYPE_LINK + share_type: OC.Share.SHARE_TYPE_LINK, } if (this.config.isDefaultExpireDateEnforced) { // default is empty string if not set @@ -588,7 +588,7 @@ export default { path, shareType: OC.Share.SHARE_TYPE_LINK, password: share.password, - expireDate: share.expireDate + expireDate: share.expireDate, // we do not allow setting the publicUpload // before the share creation. // Todo: We also need to fix the createShare method in @@ -747,8 +747,8 @@ export default { // but is incomplete as not pushed to server // YET. We can safely delete the share :) this.$emit('remove:share', this.share) - } - } + }, + }, } </script> diff --git a/apps/files_sharing/src/components/SharingEntrySimple.vue b/apps/files_sharing/src/components/SharingEntrySimple.vue index 4abc5e52a90..78fa865d138 100644 --- a/apps/files_sharing/src/components/SharingEntrySimple.vue +++ b/apps/files_sharing/src/components/SharingEntrySimple.vue @@ -43,28 +43,28 @@ export default { name: 'SharingEntrySimple', components: { - Actions + Actions, }, directives: { - Tooltip + Tooltip, }, props: { title: { type: String, default: '', - required: true + required: true, }, tooltip: { type: String, - default: '' + default: '', }, subtitle: { type: String, - default: '' - } - } + default: '', + }, + }, } </script> diff --git a/apps/files_sharing/src/components/SharingInput.vue b/apps/files_sharing/src/components/SharingInput.vue index 80ef2ccb2ad..bcb69703548 100644 --- a/apps/files_sharing/src/components/SharingInput.vue +++ b/apps/files_sharing/src/components/SharingInput.vue @@ -61,7 +61,7 @@ export default { name: 'SharingInput', components: { - Multiselect + Multiselect, }, mixins: [ShareTypes, ShareRequests], @@ -70,26 +70,26 @@ export default { shares: { type: Array, default: () => [], - required: true + required: true, }, linkShares: { type: Array, default: () => [], - required: true + required: true, }, fileInfo: { type: Object, default: () => {}, - required: true + required: true, }, reshare: { type: Share, - default: null + default: null, }, canReshare: { type: Boolean, - required: true - } + required: true, + }, }, data() { @@ -99,7 +99,7 @@ export default { query: '', recommendations: [], ShareSearch: OCA.Sharing.ShareSearch.state, - suggestions: [] + suggestions: [], } }, @@ -151,7 +151,7 @@ export default { return t('files_sharing', 'Searching …') } return t('files_sharing', 'No elements found.') - } + }, }, mounted() { @@ -190,8 +190,8 @@ export default { itemType: this.fileInfo.type === 'dir' ? 'folder' : 'file', search, lookup, - perPage: this.config.maxAutocompleteResults - } + perPage: this.config.maxAutocompleteResults, + }, }) if (request.data.ocs.meta.statuscode !== 100) { @@ -224,7 +224,7 @@ export default { lookupEntry.push({ isNoUser: true, displayName: t('files_sharing', 'Search globally'), - lookup: true + lookup: true, }) } @@ -255,8 +255,8 @@ export default { const request = await axios.get(generateOcsUrl('apps/files_sharing/api/v1') + 'sharees_recommended', { params: { format: 'json', - itemType: this.fileInfo.type - } + itemType: this.fileInfo.type, + }, }) if (request.data.ocs.meta.statuscode !== 100) { @@ -382,7 +382,7 @@ export default { isNoUser: !result.uuid, displayName: result.name || result.label, desc, - icon: this.shareTypeToIcon(result.value.shareType) + icon: this.shareTypeToIcon(result.value.shareType), } }, @@ -417,7 +417,7 @@ export default { const share = await this.createShare({ path, shareType: value.shareType, - shareWith: value.shareWith + shareWith: value.shareWith, }) this.$emit('add:share', share) @@ -433,8 +433,8 @@ export default { } finally { this.loading = false } - } - } + }, + }, } </script> diff --git a/apps/files_sharing/src/index.js b/apps/files_sharing/src/index.js index cc2e1c6e698..786b648aea1 100644 --- a/apps/files_sharing/src/index.js +++ b/apps/files_sharing/src/index.js @@ -31,6 +31,6 @@ Object.assign(OC, { SHARE_TYPE_CIRCLE: 7, SHARE_TYPE_GUEST: 8, SHARE_TYPE_REMOTE_GROUP: 9, - SHARE_TYPE_ROOM: 10 - } + SHARE_TYPE_ROOM: 10, + }, }) diff --git a/apps/files_sharing/src/mixins/ShareRequests.js b/apps/files_sharing/src/mixins/ShareRequests.js index c534e860707..bad59da6593 100644 --- a/apps/files_sharing/src/mixins/ShareRequests.js +++ b/apps/files_sharing/src/mixins/ShareRequests.js @@ -29,7 +29,7 @@ import Share from '../models/Share' const shareUrl = generateOcsUrl('apps/files_sharing/api/v1', 2) + 'shares' const headers = { - 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8' + 'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8', } export default { @@ -109,6 +109,6 @@ export default { const message = error.response.data.ocs.meta.message throw new Error(`${property}, ${message}`) } - } - } + }, + }, } diff --git a/apps/files_sharing/src/mixins/ShareTypes.js b/apps/files_sharing/src/mixins/ShareTypes.js index 81e6af7d97c..b84dbf96d98 100644 --- a/apps/files_sharing/src/mixins/ShareTypes.js +++ b/apps/files_sharing/src/mixins/ShareTypes.js @@ -32,8 +32,8 @@ export default { SHARE_TYPE_CIRCLE: OC.Share.SHARE_TYPE_CIRCLE, SHARE_TYPE_GUEST: OC.Share.SHARE_TYPE_GUEST, SHARE_TYPE_REMOTE_GROUP: OC.Share.SHARE_TYPE_REMOTE_GROUP, - SHARE_TYPE_ROOM: OC.Share.SHARE_TYPE_ROOM - } + SHARE_TYPE_ROOM: OC.Share.SHARE_TYPE_ROOM, + }, } - } + }, } diff --git a/apps/files_sharing/src/mixins/SharesMixin.js b/apps/files_sharing/src/mixins/SharesMixin.js index a0ec0748951..c8ffbd6f5c5 100644 --- a/apps/files_sharing/src/mixins/SharesMixin.js +++ b/apps/files_sharing/src/mixins/SharesMixin.js @@ -36,12 +36,12 @@ export default { fileInfo: { type: Object, default: () => {}, - required: true + required: true, }, share: { type: Share, - default: null - } + default: null, + }, }, data() { @@ -75,8 +75,8 @@ export default { SHARE_TYPE_CIRCLE: OC.Share.SHARE_TYPE_CIRCLE, SHARE_TYPE_GUEST: OC.Share.SHARE_TYPE_GUEST, SHARE_TYPE_REMOTE_GROUP: OC.Share.SHARE_TYPE_REMOTE_GROUP, - SHARE_TYPE_ROOM: OC.Share.SHARE_TYPE_ROOM - } + SHARE_TYPE_ROOM: OC.Share.SHARE_TYPE_ROOM, + }, } }, @@ -94,7 +94,7 @@ export default { this.share.note = enabled ? t('files_sharing', 'Enter a note for the share recipient') : '' - } + }, }, dateTomorrow() { @@ -123,14 +123,14 @@ export default { ? window.monthNamesShort // provided by nextcloud : ['Jan.', 'Feb.', 'Mar.', 'Apr.', 'May.', 'Jun.', 'Jul.', 'Aug.', 'Sep.', 'Oct.', 'Nov.', 'Dec.'], placeholder: { - date: 'Select Date' // TODO: Translate - } + date: 'Select Date', // TODO: Translate + }, } }, isShareOwner() { return this.share && this.share.owner === getCurrentUser().uid - } + }, }, @@ -217,7 +217,7 @@ export default { try { await this.updateShare(this.share.id, { property, - value + value, }) // clear any previous errors @@ -276,6 +276,6 @@ export default { */ debounceQueueUpdate: debounce(function(property) { this.queueUpdate(property) - }, 500) - } + }, 500), + }, } diff --git a/apps/files_sharing/src/sharebreadcrumbview.js b/apps/files_sharing/src/sharebreadcrumbview.js index d3b56ff853a..dadc0a48fb8 100644 --- a/apps/files_sharing/src/sharebreadcrumbview.js +++ b/apps/files_sharing/src/sharebreadcrumbview.js @@ -23,10 +23,10 @@ (function() { 'use strict' - var BreadCrumbView = OC.Backbone.View.extend({ + const BreadCrumbView = OC.Backbone.View.extend({ tagName: 'span', events: { - click: '_onClick' + click: '_onClick', }, _dirInfo: undefined, @@ -34,7 +34,7 @@ this._dirInfo = data.dirInfo || null if (this._dirInfo !== null && (this._dirInfo.path !== '/' || this._dirInfo.name !== '')) { - var isShared = data.dirInfo && data.dirInfo.shareTypes && data.dirInfo.shareTypes.length > 0 + const isShared = data.dirInfo && data.dirInfo.shareTypes && data.dirInfo.shareTypes.length > 0 this.$el.removeClass('shared icon-public icon-shared') if (isShared) { this.$el.addClass('shared') @@ -58,18 +58,18 @@ _onClick: function(e) { e.preventDefault() - var fileInfoModel = new OCA.Files.FileInfoModel(this._dirInfo) - var self = this + const fileInfoModel = new OCA.Files.FileInfoModel(this._dirInfo) + const self = this fileInfoModel.on('change', function() { self.render({ - dirInfo: self._dirInfo + dirInfo: self._dirInfo, }) }) - var path = fileInfoModel.attributes.path + '/' + fileInfoModel.attributes.name + const path = fileInfoModel.attributes.path + '/' + fileInfoModel.attributes.name OCA.Files.Sidebar.open(path) OCA.Files.Sidebar.setActiveTab('sharing') - } + }, }) OCA.Sharing.ShareBreadCrumbView = BreadCrumbView diff --git a/apps/files_sharing/src/utils/SharedWithMe.js b/apps/files_sharing/src/utils/SharedWithMe.js index 43abddc36b4..e1bc12ffed1 100644 --- a/apps/files_sharing/src/utils/SharedWithMe.js +++ b/apps/files_sharing/src/utils/SharedWithMe.js @@ -33,7 +33,7 @@ const shareWithTitle = function(share) { 'Shared with you and the group {group} by {owner}', { group: share.shareWithDisplayName, - owner: share.ownerDisplayName + owner: share.ownerDisplayName, }, undefined, { escape: false } @@ -44,7 +44,7 @@ const shareWithTitle = function(share) { 'Shared with you and {circle} by {owner}', { circle: share.shareWithDisplayName, - owner: share.ownerDisplayName + owner: share.ownerDisplayName, }, undefined, { escape: false } @@ -56,7 +56,7 @@ const shareWithTitle = function(share) { 'Shared with you and the conversation {conversation} by {owner}', { conversation: share.shareWithDisplayName, - owner: share.ownerDisplayName + owner: share.ownerDisplayName, }, undefined, { escape: false } @@ -66,7 +66,7 @@ const shareWithTitle = function(share) { 'files_sharing', 'Shared with you in a conversation by {owner}', { - owner: share.ownerDisplayName + owner: share.ownerDisplayName, }, undefined, { escape: false } diff --git a/apps/files_sharing/src/views/SharingInherited.vue b/apps/files_sharing/src/views/SharingInherited.vue index 64c69301267..64c0132e05e 100644 --- a/apps/files_sharing/src/views/SharingInherited.vue +++ b/apps/files_sharing/src/views/SharingInherited.vue @@ -56,15 +56,15 @@ export default { components: { ActionButton, SharingEntryInherited, - SharingEntrySimple + SharingEntrySimple, }, props: { fileInfo: { type: Object, default: () => {}, - required: true - } + required: true, + }, }, data() { @@ -72,7 +72,7 @@ export default { loaded: false, loading: false, showInheritedShares: false, - shares: [] + shares: [], } }, computed: { @@ -96,12 +96,12 @@ export default { fullPath() { const path = `${this.fileInfo.path}/${this.fileInfo.name}` return path.replace('//', '/') - } + }, }, watch: { fileInfo() { this.resetState() - } + }, }, methods: { /** @@ -142,8 +142,8 @@ export default { this.loading = false this.showInheritedShares = false this.shares = [] - } - } + }, + }, } </script> diff --git a/apps/files_sharing/src/views/SharingLinkList.vue b/apps/files_sharing/src/views/SharingLinkList.vue index 1c01886ca46..5063f1c0da4 100644 --- a/apps/files_sharing/src/views/SharingLinkList.vue +++ b/apps/files_sharing/src/views/SharingLinkList.vue @@ -53,7 +53,7 @@ export default { name: 'SharingLinkList', components: { - SharingEntryLink + SharingEntryLink, }, mixins: [ShareTypes], @@ -62,17 +62,17 @@ export default { fileInfo: { type: Object, default: () => {}, - required: true + required: true, }, shares: { type: Array, default: () => [], - required: true + required: true, }, canReshare: { type: Boolean, - required: true - } + required: true, + }, }, computed: { @@ -94,7 +94,7 @@ export default { */ hasShares() { return this.shares.length > 0 - } + }, }, methods: { @@ -135,7 +135,7 @@ export default { removeShare(share) { const index = this.shares.findIndex(item => item === share) this.shares.splice(index, 1) - } - } + }, + }, } </script> diff --git a/apps/files_sharing/src/views/SharingList.vue b/apps/files_sharing/src/views/SharingList.vue index c2ecbbbd1aa..b8f12f6ef15 100644 --- a/apps/files_sharing/src/views/SharingList.vue +++ b/apps/files_sharing/src/views/SharingList.vue @@ -39,26 +39,26 @@ export default { name: 'SharingList', components: { - SharingEntry + SharingEntry, }, props: { fileInfo: { type: Object, default: () => {}, - required: true + required: true, }, shares: { type: Array, default: () => [], - required: true - } + required: true, + }, }, computed: { hasShares() { return this.shares.length === 0 - } + }, }, methods: { @@ -70,7 +70,7 @@ export default { removeShare(share) { const index = this.shares.findIndex(item => item === share) this.shares.splice(index, 1) - } - } + }, + }, } </script> diff --git a/apps/files_sharing/src/views/SharingTab.vue b/apps/files_sharing/src/views/SharingTab.vue index b15ec5e9a64..54c5a69a90c 100644 --- a/apps/files_sharing/src/views/SharingTab.vue +++ b/apps/files_sharing/src/views/SharingTab.vue @@ -114,7 +114,7 @@ export default { SharingInput, SharingLinkList, SharingList, - Tab + Tab, }, mixins: [ShareTypes], @@ -123,8 +123,8 @@ export default { fileInfo: { type: Object, default: () => {}, - required: true - } + required: true, + }, }, data() { @@ -139,7 +139,7 @@ export default { sharedWithMe: {}, shares: [], linkShares: [], - sections: OCA.Sharing.ShareTabSections.getSections() + sections: OCA.Sharing.ShareTabSections.getSections(), } }, @@ -176,14 +176,14 @@ export default { canReshare() { return !!(this.fileInfo.permissions & OC.PERMISSION_SHARE) || !!(this.reshare && this.reshare.hasSharePermission) - } + }, }, watch: { fileInfo() { this.resetState() this.getShares() - } + }, }, beforeMount() { @@ -209,15 +209,15 @@ export default { params: { format, path, - reshares: true - } + reshares: true, + }, }) const fetchSharedWithMe = axios.get(shareUrl, { params: { format, path, - shared_with_me: true - } + shared_with_me: true, + }, }) // wait for data @@ -254,7 +254,7 @@ export default { updateExpirationSubtitle(share) { const expiration = moment(share.expireDate).unix() this.$set(this.sharedWithMe, 'subtitle', t('files_sharing', 'Expires {relativetime}', { - relativetime: OC.Util.relativeModifiedDate(expiration * 1000) + relativetime: OC.Util.relativeModifiedDate(expiration * 1000), })) // share have expired @@ -301,7 +301,7 @@ export default { this.sharedWithMe = { displayName, title, - user + user, } this.reshare = share @@ -329,8 +329,8 @@ export default { } else { this.shares.unshift(share) } - } - } + }, + }, } </script> |