Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/src/components')
-rw-r--r--apps/files_sharing/src/components/PersonalSettings.vue8
-rw-r--r--apps/files_sharing/src/components/SharingEntry.vue20
-rw-r--r--apps/files_sharing/src/components/SharingEntryInherited.vue12
-rw-r--r--apps/files_sharing/src/components/SharingEntryInternal.vue14
-rw-r--r--apps/files_sharing/src/components/SharingEntryLink.vue28
-rw-r--r--apps/files_sharing/src/components/SharingEntrySimple.vue14
-rw-r--r--apps/files_sharing/src/components/SharingInput.vue36
7 files changed, 66 insertions, 66 deletions
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>