Bump compiled files

Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
This commit is contained in:
John Molakvoæ (skjnldsv) 2020-07-31 09:26:43 +02:00
parent fc31cb8bf2
commit 0f8aca9d87
No known key found for this signature in database
GPG Key ID: 60C25B8C072916CF
132 changed files with 2234 additions and 4965 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -18,7 +18,7 @@
* @param {jQuery} $el jQuery handle for this activity * @param {jQuery} $el jQuery handle for this activity
* @param {string} view The view that displayes this activity * @param {string} view The view that displayes this activity
*/ */
prepareModelForDisplay: function(model, $el, view) { prepareModelForDisplay(model, $el, view) {
if (model.get('app') !== 'comments' || model.get('type') !== 'comments') { if (model.get('app') !== 'comments' || model.get('type') !== 'comments') {
return return
} }
@ -37,7 +37,7 @@
/* /*
* Copy of CommentsTabView._onClickComment() * Copy of CommentsTabView._onClickComment()
*/ */
_onClickCollapsedComment: function(ev) { _onClickCollapsedComment(ev) {
let $row = $(ev.target) let $row = $(ev.target)
if (!$row.is('.comment')) { if (!$row.is('.comment')) {
$row = $row.closest('.comment') $row = $row.closest('.comment')
@ -48,7 +48,7 @@
/* /*
* Copy of CommentsTabView._isLong() * Copy of CommentsTabView._isLong()
*/ */
_isLong: function(message) { _isLong(message) {
return message.length > 250 || (message.match(/\n/g) || []).length > 1 return message.length > 250 || (message.match(/\n/g) || []).length > 1
}, },
} }

View File

@ -52,7 +52,7 @@
'mentions': OC.Files.Client.PROPERTY_MENTIONS, 'mentions': OC.Files.Client.PROPERTY_MENTIONS,
}, },
parse: function(data) { parse(data) {
return { return {
id: data.id, id: data.id,
message: data.message, message: data.message,
@ -67,7 +67,7 @@
} }
}, },
_parseMentions: function(mentions) { _parseMentions(mentions) {
if (_.isUndefined(mentions)) { if (_.isUndefined(mentions)) {
return {} return {}
} }

View File

@ -31,7 +31,7 @@
iconClass: 'icon-delete', iconClass: 'icon-delete',
}, },
], ],
initialize: function() { initialize() {
}, },
events: { events: {
@ -43,7 +43,7 @@
* *
* @param {Object} event event object * @param {Object} event event object
*/ */
_onClickAction: function(event) { _onClickAction(event) {
let $target = $(event.currentTarget) let $target = $(event.currentTarget)
if (!$target.hasClass('menuitem')) { if (!$target.hasClass('menuitem')) {
$target = $target.closest('.menuitem') $target = $target.closest('.menuitem')
@ -57,7 +57,7 @@
/** /**
* Renders the menu with the currently set items * Renders the menu with the currently set items
*/ */
render: function() { render() {
this.$el.html(OCA.Comments.Templates['commentsmodifymenu']({ this.$el.html(OCA.Comments.Templates['commentsmodifymenu']({
items: this._scopes, items: this._scopes,
})) }))
@ -67,7 +67,7 @@
* Displays the menu * Displays the menu
* @param {Event} context the click event * @param {Event} context the click event
*/ */
show: function(context) { show(context) {
this._context = context this._context = context
for (const i in this._scopes) { for (const i in this._scopes) {

View File

@ -52,14 +52,14 @@
* @param {string} [options.objectType] object type * @param {string} [options.objectType] object type
* @param {string} [options.objectId] object id * @param {string} [options.objectId] object id
*/ */
initialize: function(attrs, options) { initialize(attrs, options) {
options = options || {} options = options || {}
if (options.objectType) { if (options.objectType) {
this._objectType = options.objectType this._objectType = options.objectType
} }
}, },
url: function() { url() {
return OC.linkToRemote('dav') + '/comments/' return OC.linkToRemote('dav') + '/comments/'
+ encodeURIComponent(this._objectType) + '/' + encodeURIComponent(this._objectType) + '/'
+ encodeURIComponent(this.id) + '/' + encodeURIComponent(this.id) + '/'

View File

@ -31,15 +31,15 @@
'files.public', 'files.public',
], ],
_formatCommentCount: function(count) { _formatCommentCount(count) {
return OCA.Comments.Templates['filesplugin']({ return OCA.Comments.Templates['filesplugin']({
count: count, count,
countMessage: n('comments', '%n unread comment', '%n unread comments', count), countMessage: n('comments', '%n unread comment', '%n unread comments', count),
iconUrl: OC.imagePath('core', 'actions/comment'), iconUrl: OC.imagePath('core', 'actions/comment'),
}) })
}, },
attach: function(fileList) { attach(fileList) {
const self = this const self = this
if (this.ignoreLists.indexOf(fileList.id) >= 0) { if (this.ignoreLists.indexOf(fileList.id) >= 0) {
return return
@ -77,11 +77,11 @@
// register "comment" action for reading comments // register "comment" action for reading comments
fileList.fileActions.registerAction({ fileList.fileActions.registerAction({
name: 'Comment', name: 'Comment',
displayName: function(context) { displayName(context) {
if (context && context.$file) { if (context && context.$file) {
const unread = parseInt(context.$file.data('comments-unread'), 10) const unread = parseInt(context.$file.data('comments-unread'), 10)
if (unread >= 0) { if (unread >= 0) {
return n('comments', '1 new comment', '{unread} new comments', unread, { unread: unread }) return n('comments', '1 new comment', '{unread} new comments', unread, { unread })
} }
} }
return t('comments', 'Comment') return t('comments', 'Comment')
@ -91,7 +91,7 @@
iconClass: 'icon-comment', iconClass: 'icon-comment',
permissions: OC.PERMISSION_READ, permissions: OC.PERMISSION_READ,
type: OCA.Files.FileActions.TYPE_INLINE, type: OCA.Files.FileActions.TYPE_INLINE,
render: function(actionSpec, isDefault, context) { render(actionSpec, isDefault, context) {
const $file = context.$file const $file = context.$file
const unreadComments = $file.data('comments-unread') const unreadComments = $file.data('comments-unread')
if (unreadComments) { if (unreadComments) {
@ -101,7 +101,7 @@
} }
return '' return ''
}, },
actionHandler: function(fileName, context) { actionHandler(fileName, context) {
context.$file.find('.action-comment').tooltip('hide') context.$file.find('.action-comment').tooltip('hide')
// open sidebar in comments section // open sidebar in comments section
context.fileList.showDetailsView(fileName, 'comments') context.fileList.showDetailsView(fileName, 'comments')

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -33,7 +33,7 @@ import AppSidebarTab from '@nextcloud/vue/dist/Components/AppSidebarTab'
export default { export default {
name: 'LegacyTab', name: 'LegacyTab',
components: { components: {
AppSidebarTab: AppSidebarTab, AppSidebarTab,
}, },
props: { props: {
component: { component: {

View File

@ -24,7 +24,7 @@ OCA.Sharing.App = {
_overviewFileList: null, _overviewFileList: null,
_pendingFileList: null, _pendingFileList: null,
initSharingIn: function($el) { initSharingIn($el) {
if (this._inFileList) { if (this._inFileList) {
return this._inFileList return this._inFileList
} }
@ -51,7 +51,7 @@ OCA.Sharing.App = {
return this._inFileList return this._inFileList
}, },
initSharingOut: function($el) { initSharingOut($el) {
if (this._outFileList) { if (this._outFileList) {
return this._outFileList return this._outFileList
} }
@ -77,7 +77,7 @@ OCA.Sharing.App = {
return this._outFileList return this._outFileList
}, },
initSharingLinks: function($el) { initSharingLinks($el) {
if (this._linkFileList) { if (this._linkFileList) {
return this._linkFileList return this._linkFileList
} }
@ -103,7 +103,7 @@ OCA.Sharing.App = {
return this._linkFileList return this._linkFileList
}, },
initSharingDeleted: function($el) { initSharingDeleted($el) {
if (this._deletedFileList) { if (this._deletedFileList) {
return this._deletedFileList return this._deletedFileList
} }
@ -131,7 +131,7 @@ OCA.Sharing.App = {
return this._deletedFileList return this._deletedFileList
}, },
initSharingPening: function($el) { initSharingPening($el) {
if (this._pendingFileList) { if (this._pendingFileList) {
return this._pendingFileList return this._pendingFileList
} }
@ -158,7 +158,7 @@ OCA.Sharing.App = {
return this._pendingFileList return this._pendingFileList
}, },
initShareingOverview: function($el) { initShareingOverview($el) {
if (this._overviewFileList) { if (this._overviewFileList) {
return this._overviewFileList return this._overviewFileList
} }
@ -183,37 +183,37 @@ OCA.Sharing.App = {
return this._overviewFileList return this._overviewFileList
}, },
removeSharingIn: function() { removeSharingIn() {
if (this._inFileList) { if (this._inFileList) {
this._inFileList.$fileList.empty() this._inFileList.$fileList.empty()
} }
}, },
removeSharingOut: function() { removeSharingOut() {
if (this._outFileList) { if (this._outFileList) {
this._outFileList.$fileList.empty() this._outFileList.$fileList.empty()
} }
}, },
removeSharingLinks: function() { removeSharingLinks() {
if (this._linkFileList) { if (this._linkFileList) {
this._linkFileList.$fileList.empty() this._linkFileList.$fileList.empty()
} }
}, },
removeSharingDeleted: function() { removeSharingDeleted() {
if (this._deletedFileList) { if (this._deletedFileList) {
this._deletedFileList.$fileList.empty() this._deletedFileList.$fileList.empty()
} }
}, },
removeSharingPending: function() { removeSharingPending() {
if (this._pendingFileList) { if (this._pendingFileList) {
this._pendingFileList.$fileList.empty() this._pendingFileList.$fileList.empty()
} }
}, },
removeSharingOverview: function() { removeSharingOverview() {
if (this._overviewFileList) { if (this._overviewFileList) {
this._overviewFileList.$fileList.empty() this._overviewFileList.$fileList.empty()
} }
@ -222,7 +222,7 @@ OCA.Sharing.App = {
/** /**
* Destroy the app * Destroy the app
*/ */
destroy: function() { destroy() {
OCA.Files.fileActions.off('setDefault.app-sharing', this._onActionsUpdated) OCA.Files.fileActions.off('setDefault.app-sharing', this._onActionsUpdated)
OCA.Files.fileActions.off('registerAction.app-sharing', this._onActionsUpdated) OCA.Files.fileActions.off('registerAction.app-sharing', this._onActionsUpdated)
this.removeSharingIn() this.removeSharingIn()
@ -235,7 +235,7 @@ OCA.Sharing.App = {
delete this._globalActionsInitialized delete this._globalActionsInitialized
}, },
_createFileActions: function() { _createFileActions() {
// inherit file actions from the files app // inherit file actions from the files app
const fileActions = new OCA.Files.FileActions() const fileActions = new OCA.Files.FileActions()
// note: not merging the legacy actions because legacy apps are not // note: not merging the legacy actions because legacy apps are not
@ -261,7 +261,7 @@ OCA.Sharing.App = {
return fileActions return fileActions
}, },
_restoreShareAction: function() { _restoreShareAction() {
const fileActions = new OCA.Files.FileActions() const fileActions = new OCA.Files.FileActions()
fileActions.registerAction({ fileActions.registerAction({
name: 'Restore', name: 'Restore',
@ -271,7 +271,7 @@ OCA.Sharing.App = {
permissions: OC.PERMISSION_ALL, permissions: OC.PERMISSION_ALL,
iconClass: 'icon-history', iconClass: 'icon-history',
type: OCA.Files.FileActions.TYPE_INLINE, type: OCA.Files.FileActions.TYPE_INLINE,
actionHandler: function(fileName, context) { actionHandler(fileName, context) {
const shareId = context.$file.data('shareId') const shareId = context.$file.data('shareId')
$.post(OC.linkToOCS('apps/files_sharing/api/v1/deletedshares', 2) + shareId) $.post(OC.linkToOCS('apps/files_sharing/api/v1/deletedshares', 2) + shareId)
.success(function(result) { .success(function(result) {
@ -284,7 +284,7 @@ OCA.Sharing.App = {
return fileActions return fileActions
}, },
_acceptShareAction: function() { _acceptShareAction() {
const fileActions = new OCA.Files.FileActions() const fileActions = new OCA.Files.FileActions()
fileActions.registerAction({ fileActions.registerAction({
name: 'Accept share', name: 'Accept share',
@ -293,7 +293,7 @@ OCA.Sharing.App = {
permissions: OC.PERMISSION_ALL, permissions: OC.PERMISSION_ALL,
iconClass: 'icon-checkmark', iconClass: 'icon-checkmark',
type: OCA.Files.FileActions.TYPE_INLINE, type: OCA.Files.FileActions.TYPE_INLINE,
actionHandler: function(fileName, context) { actionHandler(fileName, context) {
const shareId = context.$file.data('shareId') const shareId = context.$file.data('shareId')
$.post(OC.linkToOCS('apps/files_sharing/api/v1/shares/pending', 2) + shareId) $.post(OC.linkToOCS('apps/files_sharing/api/v1/shares/pending', 2) + shareId)
.success(function(result) { .success(function(result) {
@ -310,7 +310,7 @@ OCA.Sharing.App = {
permissions: OC.PERMISSION_ALL, permissions: OC.PERMISSION_ALL,
iconClass: 'icon-close', iconClass: 'icon-close',
type: OCA.Files.FileActions.TYPE_INLINE, type: OCA.Files.FileActions.TYPE_INLINE,
actionHandler: function(fileName, context) { actionHandler(fileName, context) {
const shareId = context.$file.data('shareId') const shareId = context.$file.data('shareId')
$.ajax({ $.ajax({
url: OC.linkToOCS('apps/files_sharing/api/v1/shares', 2) + shareId, url: OC.linkToOCS('apps/files_sharing/api/v1/shares', 2) + shareId,
@ -325,7 +325,7 @@ OCA.Sharing.App = {
return fileActions return fileActions
}, },
_onActionsUpdated: function(ev) { _onActionsUpdated(ev) {
_.each([this._inFileList, this._outFileList, this._linkFileList], function(list) { _.each([this._inFileList, this._outFileList, this._linkFileList], function(list) {
if (!list) { if (!list) {
return return
@ -342,7 +342,7 @@ OCA.Sharing.App = {
}) })
}, },
_extendFileList: function(fileList) { _extendFileList(fileList) {
// remove size column from summary // remove size column from summary
fileList.fileSummary.$el.find('.filesize').remove() fileList.fileSummary.$el.find('.filesize').remove()
}, },

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,2 +1,2 @@
!function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/js/",t(t.s=152)}({152:function(e,n,r){r.p=OC.linkTo("files_sharing","js/dist/"),r.nc=btoa(OC.requestToken),window.OCP.Collaboration.registerType("file",{action:function(){return new Promise((function(e,n){OC.dialogs.filepicker(t("files_sharing","Link to a file"),(function(t){OC.Files.getClient().getFileInfo(t).then((function(n,t){e(t.id)})).fail((function(){n(new Error("Cannot get fileinfo"))}))}),!1,null,!1,OC.dialogs.FILEPICKER_TYPE_CHOOSE,"",{allowDirectoryChooser:!0})}))},typeString:t("files_sharing","Link to a file"),typeIconClass:"icon-files-dark"})}}); !function(e){var n={};function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var o in e)t.d(r,o,function(n){return e[n]}.bind(null,o));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/js/",t(t.s=156)}({156:function(e,n,r){r.p=OC.linkTo("files_sharing","js/dist/"),r.nc=btoa(OC.requestToken),window.OCP.Collaboration.registerType("file",{action:function(){return new Promise((function(e,n){OC.dialogs.filepicker(t("files_sharing","Link to a file"),(function(t){OC.Files.getClient().getFileInfo(t).then((function(n,t){e(t.id)})).fail((function(){n(new Error("Cannot get fileinfo"))}))}),!1,null,!1,OC.dialogs.FILEPICKER_TYPE_CHOOSE,"",{allowDirectoryChooser:!0})}))},typeString:t("files_sharing","Link to a file"),typeIconClass:"icon-files-dark"})}});
//# sourceMappingURL=collaboration.js.map //# sourceMappingURL=collaboration.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,2 +1,2 @@
!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/js/",r(r.s=273)}({273:function(e,t){Object.assign(OC,{Share:{SHARE_TYPE_USER:0,SHARE_TYPE_GROUP:1,SHARE_TYPE_LINK:3,SHARE_TYPE_EMAIL:4,SHARE_TYPE_REMOTE:6,SHARE_TYPE_CIRCLE:7,SHARE_TYPE_GUEST:8,SHARE_TYPE_REMOTE_GROUP:9,SHARE_TYPE_ROOM:10}})}}); !function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/js/",r(r.s=280)}({280:function(e,t){Object.assign(OC,{Share:{SHARE_TYPE_USER:0,SHARE_TYPE_GROUP:1,SHARE_TYPE_LINK:3,SHARE_TYPE_EMAIL:4,SHARE_TYPE_REMOTE:6,SHARE_TYPE_CIRCLE:7,SHARE_TYPE_GUEST:8,SHARE_TYPE_REMOTE_GROUP:9,SHARE_TYPE_ROOM:10}})}});
//# sourceMappingURL=main.js.map //# sourceMappingURL=main.js.map

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -485,10 +485,10 @@ export default {
* @returns {boolean} * @returns {boolean}
*/ */
isPasswordProtectedByTalk: { isPasswordProtectedByTalk: {
get: function() { get() {
return this.share.sendPasswordByTalk return this.share.sendPasswordByTalk
}, },
set: async function(enabled) { async set(enabled) {
this.share.sendPasswordByTalk = enabled this.share.sendPasswordByTalk = enabled
}, },
}, },
@ -535,10 +535,10 @@ export default {
* @returns {boolean} * @returns {boolean}
*/ */
canUpdate: { canUpdate: {
get: function() { get() {
return this.share.hasUpdatePermission return this.share.hasUpdatePermission
}, },
set: function(enabled) { set(enabled) {
this.share.permissions = enabled this.share.permissions = enabled
? OC.PERMISSION_READ | OC.PERMISSION_UPDATE ? OC.PERMISSION_READ | OC.PERMISSION_UPDATE
: OC.PERMISSION_READ : OC.PERMISSION_READ

View File

@ -87,10 +87,10 @@ export default {
* @returns {boolean} * @returns {boolean}
*/ */
hasNote: { hasNote: {
get: function() { get() {
return this.share.note !== '' return this.share.note !== ''
}, },
set: function(enabled) { set(enabled) {
this.share.note = enabled this.share.note = enabled
? null // enabled but user did not changed the content yet ? null // enabled but user did not changed the content yet
: '' // empty = no note = disabled : '' // empty = no note = disabled

View File

@ -30,7 +30,7 @@
}, },
_dirInfo: undefined, _dirInfo: undefined,
render: function(data) { render(data) {
this._dirInfo = data.dirInfo || null this._dirInfo = data.dirInfo || null
if (this._dirInfo !== null && (this._dirInfo.path !== '/' || this._dirInfo.name !== '')) { if (this._dirInfo !== null && (this._dirInfo.path !== '/' || this._dirInfo.name !== '')) {
@ -55,7 +55,7 @@
return this return this
}, },
_onClick: function(e) { _onClick(e) {
e.preventDefault() e.preventDefault()
const fileInfoModel = new OCA.Files.FileInfoModel(this._dirInfo) const fileInfoModel = new OCA.Files.FileInfoModel(this._dirInfo)

File diff suppressed because one or more lines are too long

View File

@ -20,7 +20,7 @@ OCA.Trashbin.App = {
/** @type {OC.Files.Client} */ /** @type {OC.Files.Client} */
client: null, client: null,
initialize: function($el) { initialize($el) {
if (this._initialized) { if (this._initialized) {
return return
} }
@ -60,7 +60,7 @@ OCA.Trashbin.App = {
) )
}, },
_createFileActions: function() { _createFileActions() {
const client = this.client const client = this.client
const fileActions = new OCA.Files.FileActions() const fileActions = new OCA.Files.FileActions()
fileActions.register('dir', 'Open', OC.PERMISSION_READ, '', function(filename, context) { fileActions.register('dir', 'Open', OC.PERMISSION_READ, '', function(filename, context) {
@ -77,7 +77,7 @@ OCA.Trashbin.App = {
mime: 'all', mime: 'all',
permissions: OC.PERMISSION_READ, permissions: OC.PERMISSION_READ,
iconClass: 'icon-history', iconClass: 'icon-history',
actionHandler: function(filename, context) { actionHandler(filename, context) {
const fileList = context.fileList const fileList = context.fileList
const tr = fileList.findFileEl(filename) const tr = fileList.findFileEl(filename)
fileList.showFileBusyState(tr, true) fileList.showFileBusyState(tr, true)
@ -99,14 +99,14 @@ OCA.Trashbin.App = {
mime: 'all', mime: 'all',
permissions: OC.PERMISSION_READ, permissions: OC.PERMISSION_READ,
iconClass: 'icon-delete', iconClass: 'icon-delete',
render: function(actionSpec, isDefault, context) { render(actionSpec, isDefault, context) {
const $actionLink = fileActions._makeActionLink(actionSpec, context) const $actionLink = fileActions._makeActionLink(actionSpec, context)
$actionLink.attr('original-title', t('files_trashbin', 'Delete permanently')) $actionLink.attr('original-title', t('files_trashbin', 'Delete permanently'))
$actionLink.children('img').attr('alt', t('files_trashbin', 'Delete permanently')) $actionLink.children('img').attr('alt', t('files_trashbin', 'Delete permanently'))
context.$file.find('td:last').append($actionLink) context.$file.find('td:last').append($actionLink)
return $actionLink return $actionLink
}, },
actionHandler: function(filename, context) { actionHandler(filename, context) {
const fileList = context.fileList const fileList = context.fileList
$('.tipsy').remove() $('.tipsy').remove()
const tr = fileList.findFileEl(filename) const tr = fileList.findFileEl(filename)

File diff suppressed because one or more lines are too long

View File

@ -20,7 +20,7 @@
* *
* @param {OCA.Files.FileList} fileList file list to be extended * @param {OCA.Files.FileList} fileList file list to be extended
*/ */
attach: function(fileList) { attach(fileList) {
if (fileList.id === 'trashbin' || fileList.id === 'files.public') { if (fileList.id === 'trashbin' || fileList.id === 'files.public') {
return return
} }

View File

@ -25,27 +25,27 @@
_client: null, _client: null,
setFileInfo: function(fileInfo) { setFileInfo(fileInfo) {
this._fileInfo = fileInfo this._fileInfo = fileInfo
}, },
getFileInfo: function() { getFileInfo() {
return this._fileInfo return this._fileInfo
}, },
setCurrentUser: function(user) { setCurrentUser(user) {
this._currentUser = user this._currentUser = user
}, },
getCurrentUser: function() { getCurrentUser() {
return this._currentUser || OC.getCurrentUser().uid return this._currentUser || OC.getCurrentUser().uid
}, },
setClient: function(client) { setClient(client) {
this._client = client this._client = client
}, },
getClient: function() { getClient() {
return this._client || new OC.Files.Client({ return this._client || new OC.Files.Client({
host: OC.getHost(), host: OC.getHost(),
root: OC.linkToRemoteBase('dav') + '/versions/' + this.getCurrentUser(), root: OC.linkToRemoteBase('dav') + '/versions/' + this.getCurrentUser(),
@ -53,11 +53,11 @@
}) })
}, },
url: function() { url() {
return OC.linkToRemoteBase('dav') + '/versions/' + this.getCurrentUser() + '/versions/' + this._fileInfo.get('id') return OC.linkToRemoteBase('dav') + '/versions/' + this.getCurrentUser() + '/versions/' + this._fileInfo.get('id')
}, },
parse: function(result) { parse(result) {
const fullPath = this._fileInfo.getFullPath() const fullPath = this._fileInfo.getFullPath()
const fileId = this._fileInfo.get('id') const fileId = this._fileInfo.get('id')
const name = this._fileInfo.get('name') const name = this._fileInfo.get('name')

View File

@ -27,7 +27,7 @@
* @param {Object} [options] options * @param {Object} [options] options
* @returns {Promise} * @returns {Promise}
*/ */
revert: function(options) { revert(options) {
options = options ? _.clone(options) : {} options = options ? _.clone(options) : {}
const model = this const model = this
@ -48,11 +48,11 @@
}) })
}, },
getFullPath: function() { getFullPath() {
return this.get('fullPath') return this.get('fullPath')
}, },
getPreviewUrl: function() { getPreviewUrl() {
const url = OC.generateUrl('/apps/files_versions/preview') const url = OC.generateUrl('/apps/files_versions/preview')
const params = { const params = {
file: this.get('fullPath'), file: this.get('fullPath'),
@ -61,7 +61,7 @@
return url + '?' + OC.buildQueryString(params) return url + '?' + OC.buildQueryString(params)
}, },
getDownloadUrl: function() { getDownloadUrl() {
return OC.linkToRemoteBase('dav') + '/versions/' + this.get('user') + '/versions/' + this.get('fileId') + '/' + this.get('id') return OC.linkToRemoteBase('dav') + '/versions/' + this.get('user') + '/versions/' + this.get('fileId') + '/' + this.get('id')
}, },
}) })

View File

@ -27,7 +27,7 @@ import Template from './templates/template.handlebars';
'click .revertVersion': '_onClickRevertVersion', 'click .revertVersion': '_onClickRevertVersion',
}, },
initialize: function() { initialize() {
OCA.Files.DetailTabView.prototype.initialize.apply(this, arguments) OCA.Files.DetailTabView.prototype.initialize.apply(this, arguments)
this.collection = new OCA.Versions.VersionCollection() this.collection = new OCA.Versions.VersionCollection()
this.collection.on('request', this._onRequest, this) this.collection.on('request', this._onRequest, this)
@ -37,15 +37,15 @@ import Template from './templates/template.handlebars';
this.collection.on('add', this._onAddModel, this) this.collection.on('add', this._onAddModel, this)
}, },
getLabel: function() { getLabel() {
return t('files_versions', 'Versions') return t('files_versions', 'Versions')
}, },
getIcon: function() { getIcon() {
return 'icon-history' return 'icon-history'
}, },
nextPage: function() { nextPage() {
if (this._loading) { if (this._loading) {
return return
} }
@ -56,7 +56,7 @@ import Template from './templates/template.handlebars';
this.collection.fetch() this.collection.fetch()
}, },
_onClickRevertVersion: function(ev) { _onClickRevertVersion(ev) {
const self = this const self = this
let $target = $(ev.target) let $target = $(ev.target)
const fileInfoModel = this.collection.getFileInfo() const fileInfoModel = this.collection.getFileInfo()
@ -69,7 +69,7 @@ import Template from './templates/template.handlebars';
const versionModel = this.collection.get(revision) const versionModel = this.collection.get(revision)
versionModel.revert({ versionModel.revert({
success: function() { success() {
// reset and re-fetch the updated collection // reset and re-fetch the updated collection
self.$versionsContainer.empty() self.$versionsContainer.empty()
self.collection.setFileInfo(fileInfoModel) self.collection.setFileInfo(fileInfoModel)
@ -88,7 +88,7 @@ import Template from './templates/template.handlebars';
}) })
}, },
error: function() { error() {
fileInfoModel.trigger('busy', fileInfoModel, false) fileInfoModel.trigger('busy', fileInfoModel, false)
self.$el.find('.versions').removeClass('hidden') self.$el.find('.versions').removeClass('hidden')
self._toggleLoading(false) self._toggleLoading(false)
@ -109,35 +109,35 @@ import Template from './templates/template.handlebars';
fileInfoModel.trigger('busy', fileInfoModel, true) fileInfoModel.trigger('busy', fileInfoModel, true)
}, },
_toggleLoading: function(state) { _toggleLoading(state) {
this._loading = state this._loading = state
this.$el.find('.loading').toggleClass('hidden', !state) this.$el.find('.loading').toggleClass('hidden', !state)
}, },
_onRequest: function() { _onRequest() {
this._toggleLoading(true) this._toggleLoading(true)
}, },
_onEndRequest: function() { _onEndRequest() {
this._toggleLoading(false) this._toggleLoading(false)
this.$el.find('.empty').toggleClass('hidden', !!this.collection.length) this.$el.find('.empty').toggleClass('hidden', !!this.collection.length)
}, },
_onAddModel: function(model) { _onAddModel(model) {
const $el = $(this.itemTemplate(this._formatItem(model))) const $el = $(this.itemTemplate(this._formatItem(model)))
this.$versionsContainer.append($el) this.$versionsContainer.append($el)
$el.find('.has-tooltip').tooltip() $el.find('.has-tooltip').tooltip()
}, },
template: function(data) { template(data) {
return Template(data) return Template(data)
}, },
itemTemplate: function(data) { itemTemplate(data) {
return ItemTemplate(data) return ItemTemplate(data)
}, },
setFileInfo: function(fileInfo) { setFileInfo(fileInfo) {
if (fileInfo) { if (fileInfo) {
this.render() this.render()
this.collection.setFileInfo(fileInfo) this.collection.setFileInfo(fileInfo)
@ -149,7 +149,7 @@ import Template from './templates/template.handlebars';
} }
}, },
_formatItem: function(version) { _formatItem(version) {
const timestamp = version.get('timestamp') * 1000 const timestamp = version.get('timestamp') * 1000
const size = version.has('size') ? version.get('size') : 0 const size = version.has('size') ? version.get('size') : 0
const preview = OC.MimeType.getIconUrl(version.get('mimetype')) const preview = OC.MimeType.getIconUrl(version.get('mimetype'))
@ -180,7 +180,7 @@ import Template from './templates/template.handlebars';
/** /**
* Renders this details view * Renders this details view
*/ */
render: function() { render() {
this.$el.html(this.template({ this.$el.html(this.template({
emptyResultLabel: t('files_versions', 'No other versions available'), emptyResultLabel: t('files_versions', 'No other versions available'),
})) }))
@ -194,7 +194,7 @@ import Template from './templates/template.handlebars';
* @param {FileInfo} fileInfo fileInfo * @param {FileInfo} fileInfo fileInfo
* @returns {bool} true for files, false for folders * @returns {bool} true for files, false for folders
*/ */
canDisplay: function(fileInfo) { canDisplay(fileInfo) {
if (!fileInfo) { if (!fileInfo) {
return false return false
} }

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -88,7 +88,7 @@ export default {
required: true, required: true,
}, },
}, },
data: function() { data() {
return { return {
newClient: { newClient: {
name: '', name: '',
@ -100,7 +100,7 @@ export default {
}, },
methods: { methods: {
deleteClient(id) { deleteClient(id) {
axios.delete(generateUrl('apps/oauth2/clients/{id}', { id: id })) axios.delete(generateUrl('apps/oauth2/clients/{id}', { id }))
.then((response) => { .then((response) => {
this.clients = this.clients.filter(client => client.id !== id) this.clients = this.clients.filter(client => client.id !== id)
}) })

View File

@ -40,7 +40,7 @@ export default {
required: true, required: true,
}, },
}, },
data: function() { data() {
return { return {
id: this.client.id, id: this.client.id,
name: this.client.name, name: this.client.name,
@ -51,7 +51,7 @@ export default {
} }
}, },
computed: { computed: {
renderedSecret: function() { renderedSecret() {
if (this.renderSecret) { if (this.renderSecret) {
return this.clientSecret return this.clientSecret
} else { } else {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -64,7 +64,7 @@ __webpack_require__.r(__webpack_exports__);
__webpack_require__.r(__webpack_exports__); __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppDetails_vue_vue_type_style_index_0_id_59a92e62_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-style-loader!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/vue-loader/lib??vue-loader-options!./AppDetails.vue?vue&type=style&index=0&id=59a92e62&scoped=true&lang=css& */ "./node_modules/vue-style-loader/index.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js?!./apps/settings/src/components/AppDetails.vue?vue&type=style&index=0&id=59a92e62&scoped=true&lang=css&"); /* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppDetails_vue_vue_type_style_index_0_id_59a92e62_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-style-loader!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/vue-loader/lib??vue-loader-options!./AppDetails.vue?vue&type=style&index=0&id=59a92e62&scoped=true&lang=css& */ "./node_modules/vue-style-loader/index.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js?!./apps/settings/src/components/AppDetails.vue?vue&type=style&index=0&id=59a92e62&scoped=true&lang=css&");
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppDetails_vue_vue_type_style_index_0_id_59a92e62_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppDetails_vue_vue_type_style_index_0_id_59a92e62_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppDetails_vue_vue_type_style_index_0_id_59a92e62_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppDetails_vue_vue_type_style_index_0_id_59a92e62_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppDetails_vue_vue_type_style_index_0_id_59a92e62_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppDetails_vue_vue_type_style_index_0_id_59a92e62_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppDetails_vue_vue_type_style_index_0_id_59a92e62_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppDetails_vue_vue_type_style_index_0_id_59a92e62_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppDetails_vue_vue_type_style_index_0_id_59a92e62_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /* harmony default export */ __webpack_exports__["default"] = (_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppDetails_vue_vue_type_style_index_0_id_59a92e62_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }), /***/ }),
@ -220,7 +220,7 @@ __webpack_require__.r(__webpack_exports__);
__webpack_require__.r(__webpack_exports__); __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppItem_vue_vue_type_style_index_0_id_429da85a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-style-loader!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/vue-loader/lib??vue-loader-options!./AppItem.vue?vue&type=style&index=0&id=429da85a&scoped=true&lang=css& */ "./node_modules/vue-style-loader/index.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js?!./apps/settings/src/components/AppList/AppItem.vue?vue&type=style&index=0&id=429da85a&scoped=true&lang=css&"); /* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppItem_vue_vue_type_style_index_0_id_429da85a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-style-loader!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/vue-loader/lib??vue-loader-options!./AppItem.vue?vue&type=style&index=0&id=429da85a&scoped=true&lang=css& */ "./node_modules/vue-style-loader/index.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js?!./apps/settings/src/components/AppList/AppItem.vue?vue&type=style&index=0&id=429da85a&scoped=true&lang=css&");
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppItem_vue_vue_type_style_index_0_id_429da85a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppItem_vue_vue_type_style_index_0_id_429da85a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppItem_vue_vue_type_style_index_0_id_429da85a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppItem_vue_vue_type_style_index_0_id_429da85a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppItem_vue_vue_type_style_index_0_id_429da85a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppItem_vue_vue_type_style_index_0_id_429da85a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppItem_vue_vue_type_style_index_0_id_429da85a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppItem_vue_vue_type_style_index_0_id_429da85a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppItem_vue_vue_type_style_index_0_id_429da85a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /* harmony default export */ __webpack_exports__["default"] = (_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_AppItem_vue_vue_type_style_index_0_id_429da85a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }), /***/ }),
@ -3116,125 +3116,134 @@ var render = function() {
} }
}, },
[ [
_c("AppNavigation", [ _c("AppNavigation", {
_c( scopedSlots: _vm._u([
"ul", {
{ attrs: { id: "appscategories" } }, key: "list",
[ fn: function() {
_c("AppNavigationItem", { return [
attrs: { _c("AppNavigationItem", {
id: "app-category-your-apps", attrs: {
to: { name: "apps" }, id: "app-category-your-apps",
exact: true, to: { name: "apps" },
icon: "icon-category-installed", exact: true,
title: _vm.t("settings", "Your apps") icon: "icon-category-installed",
} title: _vm.t("settings", "Your apps")
}), }
_vm._v(" "), }),
_c("AppNavigationItem", { _vm._v(" "),
attrs: { _c("AppNavigationItem", {
id: "app-category-enabled", attrs: {
to: { name: "apps-category", params: { category: "enabled" } }, id: "app-category-enabled",
icon: "icon-category-enabled", to: {
title: _vm.t("settings", "Active apps") name: "apps-category",
} params: { category: "enabled" }
}), },
_vm._v(" "), icon: "icon-category-enabled",
_c("AppNavigationItem", { title: _vm.t("settings", "Active apps")
attrs: { }
id: "app-category-disabled", }),
to: { name: "apps-category", params: { category: "disabled" } }, _vm._v(" "),
icon: "icon-category-disabled", _c("AppNavigationItem", {
title: _vm.t("settings", "Disabled apps") attrs: {
} id: "app-category-disabled",
}), to: {
_vm._v(" "), name: "apps-category",
_vm.updateCount > 0 params: { category: "disabled" }
? _c( },
"AppNavigationItem", icon: "icon-category-disabled",
{ title: _vm.t("settings", "Disabled apps")
attrs: { }
id: "app-category-updates", }),
to: { _vm._v(" "),
name: "apps-category", _vm.updateCount > 0
params: { category: "updates" } ? _c(
"AppNavigationItem",
{
attrs: {
id: "app-category-updates",
to: {
name: "apps-category",
params: { category: "updates" }
},
icon: "icon-download",
title: _vm.t("settings", "Updates")
}
}, },
icon: "icon-download",
title: _vm.t("settings", "Updates")
}
},
[
_c(
"AppNavigationCounter",
{ attrs: { slot: "counter" }, slot: "counter" },
[ [
_vm._v( _c(
"\n\t\t\t\t\t" + "AppNavigationCounter",
_vm._s(_vm.updateCount) + { attrs: { slot: "counter" }, slot: "counter" },
"\n\t\t\t\t" [
_vm._v(
"\n\t\t\t\t\t" +
_vm._s(_vm.updateCount) +
"\n\t\t\t\t"
)
]
) )
] ],
1
) )
], : _vm._e(),
1 _vm._v(" "),
) _c("AppNavigationItem", {
: _vm._e(), attrs: {
_vm._v(" "), id: "app-category-your-bundles",
_c("AppNavigationItem", { to: {
attrs: { name: "apps-category",
id: "app-category-your-bundles", params: { category: "app-bundles" }
to: { },
name: "apps-category", icon: "icon-category-app-bundles",
params: { category: "app-bundles" } title: _vm.t("settings", "App bundles")
}, }
icon: "icon-category-app-bundles", }),
title: _vm.t("settings", "App bundles") _vm._v(" "),
} _c("AppNavigationSpacer"),
}), _vm._v(" "),
_vm._v(" "), _vm.settings.appstoreEnabled
_c("AppNavigationSpacer"), ? [
_vm._v(" "), _c("AppNavigationItem", {
_vm.settings.appstoreEnabled attrs: {
? [ id: "app-category-featured",
_c("AppNavigationItem", { to: {
attrs: { name: "apps-category",
id: "app-category-featured", params: { category: "featured" }
to: { },
name: "apps-category", icon: "icon-favorite",
params: { category: "featured" } title: _vm.t("settings", "Featured apps")
}, }
icon: "icon-favorite", }),
title: _vm.t("settings", "Featured apps") _vm._v(" "),
} _vm._l(_vm.categories, function(cat) {
}), return _c("AppNavigationItem", {
_vm._v(" "), key: "icon-category-" + cat.ident,
_vm._l(_vm.categories, function(cat) { attrs: {
return _c("AppNavigationItem", { icon: "icon-category-" + cat.ident,
key: "icon-category-" + cat.ident, to: {
attrs: { name: "apps-category",
icon: "icon-category-" + cat.ident, params: { category: cat.ident }
to: { },
name: "apps-category", title: cat.displayName
params: { category: cat.ident } }
}, })
title: cat.displayName })
} ]
}) : _vm._e(),
}) _vm._v(" "),
] _c("AppNavigationItem", {
: _vm._e(), attrs: {
_vm._v(" "), id: "app-developer-docs",
_c("AppNavigationItem", { href: "settings.developerDocumentation",
attrs: { title: _vm.t("settings", "Developer documentation") + " ↗"
id: "app-developer-docs", }
href: "settings.developerDocumentation", })
title: _vm.t("settings", "Developer documentation") + " ↗" ]
} },
}) proxy: true
], }
2 ])
) }),
]),
_vm._v(" "), _vm._v(" "),
_c( _c(
"AppContent", "AppContent",
@ -3320,4 +3329,4 @@ if(false) {}
/***/ }) /***/ })
}]); }]);
//# sourceMappingURL=vue-1.js.map?v=555ba5a3156287837e37 //# sourceMappingURL=vue-1.js.map?v=9e5fdb9904cc924225e3

File diff suppressed because one or more lines are too long

View File

@ -64,7 +64,7 @@ __webpack_require__.r(__webpack_exports__);
__webpack_require__.r(__webpack_exports__); __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserList_vue_vue_type_style_index_0_id_6cba3aca_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-style-loader!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/vue-loader/lib??vue-loader-options!./UserList.vue?vue&type=style&index=0&id=6cba3aca&scoped=true&lang=css& */ "./node_modules/vue-style-loader/index.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js?!./apps/settings/src/components/UserList.vue?vue&type=style&index=0&id=6cba3aca&scoped=true&lang=css&"); /* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserList_vue_vue_type_style_index_0_id_6cba3aca_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-style-loader!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/vue-loader/lib??vue-loader-options!./UserList.vue?vue&type=style&index=0&id=6cba3aca&scoped=true&lang=css& */ "./node_modules/vue-style-loader/index.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib/index.js?!./apps/settings/src/components/UserList.vue?vue&type=style&index=0&id=6cba3aca&scoped=true&lang=css&");
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserList_vue_vue_type_style_index_0_id_6cba3aca_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserList_vue_vue_type_style_index_0_id_6cba3aca_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserList_vue_vue_type_style_index_0_id_6cba3aca_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserList_vue_vue_type_style_index_0_id_6cba3aca_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserList_vue_vue_type_style_index_0_id_6cba3aca_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserList_vue_vue_type_style_index_0_id_6cba3aca_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserList_vue_vue_type_style_index_0_id_6cba3aca_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserList_vue_vue_type_style_index_0_id_6cba3aca_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserList_vue_vue_type_style_index_0_id_6cba3aca_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a); /* harmony default export */ __webpack_exports__["default"] = (_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserList_vue_vue_type_style_index_0_id_6cba3aca_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }), /***/ }),
@ -151,7 +151,7 @@ __webpack_require__.r(__webpack_exports__);
__webpack_require__.r(__webpack_exports__); __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRow_vue_vue_type_style_index_0_id_77960baa_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-style-loader!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib??vue-loader-options!./UserRow.vue?vue&type=style&index=0&id=77960baa&scoped=true&lang=scss& */ "./node_modules/vue-style-loader/index.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js?!./apps/settings/src/components/UserList/UserRow.vue?vue&type=style&index=0&id=77960baa&scoped=true&lang=scss&"); /* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRow_vue_vue_type_style_index_0_id_77960baa_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-style-loader!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib??vue-loader-options!./UserRow.vue?vue&type=style&index=0&id=77960baa&scoped=true&lang=scss& */ "./node_modules/vue-style-loader/index.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js?!./apps/settings/src/components/UserList/UserRow.vue?vue&type=style&index=0&id=77960baa&scoped=true&lang=scss&");
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRow_vue_vue_type_style_index_0_id_77960baa_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRow_vue_vue_type_style_index_0_id_77960baa_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRow_vue_vue_type_style_index_0_id_77960baa_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRow_vue_vue_type_style_index_0_id_77960baa_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRow_vue_vue_type_style_index_0_id_77960baa_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRow_vue_vue_type_style_index_0_id_77960baa_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRow_vue_vue_type_style_index_0_id_77960baa_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRow_vue_vue_type_style_index_0_id_77960baa_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRow_vue_vue_type_style_index_0_id_77960baa_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); /* harmony default export */ __webpack_exports__["default"] = (_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRow_vue_vue_type_style_index_0_id_77960baa_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }), /***/ }),
@ -238,7 +238,7 @@ __webpack_require__.r(__webpack_exports__);
__webpack_require__.r(__webpack_exports__); __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRowSimple_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-style-loader!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib??vue-loader-options!./UserRowSimple.vue?vue&type=style&index=0&lang=scss& */ "./node_modules/vue-style-loader/index.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js?!./apps/settings/src/components/UserList/UserRowSimple.vue?vue&type=style&index=0&lang=scss&"); /* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRowSimple_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-style-loader!../../../../../node_modules/css-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/sass-loader/dist/cjs.js!../../../../../node_modules/vue-loader/lib??vue-loader-options!./UserRowSimple.vue?vue&type=style&index=0&lang=scss& */ "./node_modules/vue-style-loader/index.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js?!./apps/settings/src/components/UserList/UserRowSimple.vue?vue&type=style&index=0&lang=scss&");
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRowSimple_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRowSimple_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRowSimple_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRowSimple_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRowSimple_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRowSimple_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRowSimple_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRowSimple_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRowSimple_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a); /* harmony default export */ __webpack_exports__["default"] = (_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_UserRowSimple_vue_vue_type_style_index_0_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }), /***/ }),
@ -548,7 +548,7 @@ __webpack_require__.r(__webpack_exports__);
__webpack_require__.r(__webpack_exports__); __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Users_vue_vue_type_style_index_0_id_889b7562_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-style-loader!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib??vue-loader-options!./Users.vue?vue&type=style&index=0&id=889b7562&lang=scss&scoped=true& */ "./node_modules/vue-style-loader/index.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js?!./apps/settings/src/views/Users.vue?vue&type=style&index=0&id=889b7562&lang=scss&scoped=true&"); /* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Users_vue_vue_type_style_index_0_id_889b7562_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-style-loader!../../../../node_modules/css-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/sass-loader/dist/cjs.js!../../../../node_modules/vue-loader/lib??vue-loader-options!./Users.vue?vue&type=style&index=0&id=889b7562&lang=scss&scoped=true& */ "./node_modules/vue-style-loader/index.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib/index.js?!./apps/settings/src/views/Users.vue?vue&type=style&index=0&id=889b7562&lang=scss&scoped=true&");
/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Users_vue_vue_type_style_index_0_id_889b7562_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Users_vue_vue_type_style_index_0_id_889b7562_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__); /* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Users_vue_vue_type_style_index_0_id_889b7562_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Users_vue_vue_type_style_index_0_id_889b7562_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Users_vue_vue_type_style_index_0_id_889b7562_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Users_vue_vue_type_style_index_0_id_889b7562_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Users_vue_vue_type_style_index_0_id_889b7562_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Users_vue_vue_type_style_index_0_id_889b7562_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/* harmony default export */ __webpack_exports__["default"] = (_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Users_vue_vue_type_style_index_0_id_889b7562_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a); /* harmony default export */ __webpack_exports__["default"] = (_node_modules_vue_style_loader_index_js_node_modules_css_loader_dist_cjs_js_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_sass_loader_dist_cjs_js_node_modules_vue_loader_lib_index_js_vue_loader_options_Users_vue_vue_type_style_index_0_id_889b7562_lang_scss_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }), /***/ }),
@ -2521,6 +2521,8 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
// //
// //
// //
//
//
@ -3011,7 +3013,7 @@ module.exports = exports;
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js"); var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js");
exports = ___CSS_LOADER_API_IMPORT___(false); exports = ___CSS_LOADER_API_IMPORT___(false);
// Module // Module
exports.push([module.i, "#usergrouplist #addgroup[data-v-889b7562] .app-navigation-entry__utils {\n display: none;\n}\n", ""]); exports.push([module.i, ".app-navigation__list #addgroup[data-v-889b7562] .app-navigation-entry__utils {\n display: none;\n}\n", ""]);
// Exports // Exports
module.exports = exports; module.exports = exports;
@ -4401,6 +4403,481 @@ var render = function() {
[ [
_c( _c(
"AppNavigation", "AppNavigation",
{
scopedSlots: _vm._u([
{
key: "list",
fn: function() {
return [
_c("AppNavigationItem", {
ref: "addGroup",
attrs: {
id: "addgroup",
"edit-placeholder": _vm.t("settings", "Enter group name"),
editable: true,
loading: _vm.loadingAddGroup,
title: _vm.t("settings", "Add group"),
icon: "icon-add"
},
on: {
click: function($event) {
return _vm.toggleAddGroupEntry(true)
},
"update:title": _vm.createGroup
}
}),
_vm._v(" "),
_c(
"AppNavigationItem",
{
attrs: {
id: "everyone",
exact: true,
title: _vm.t("settings", "Everyone"),
to: { name: "users" },
icon: "icon-contacts-dark"
}
},
[
_vm.userCount > 0
? _c(
"AppNavigationCounter",
{ attrs: { slot: "counter" }, slot: "counter" },
[
_vm._v(
"\n\t\t\t\t\t" +
_vm._s(_vm.userCount) +
"\n\t\t\t\t"
)
]
)
: _vm._e()
],
1
),
_vm._v(" "),
_vm.settings.isAdmin
? _c(
"AppNavigationItem",
{
attrs: {
id: "admin",
exact: true,
title: _vm.t("settings", "Admins"),
to: {
name: "group",
params: { selectedGroup: "admin" }
},
icon: "icon-user-admin"
}
},
[
_vm.adminGroupMenu.count
? _c(
"AppNavigationCounter",
{ attrs: { slot: "counter" }, slot: "counter" },
[
_vm._v(
"\n\t\t\t\t\t" +
_vm._s(_vm.adminGroupMenu.count) +
"\n\t\t\t\t"
)
]
)
: _vm._e()
],
1
)
: _vm._e(),
_vm._v(" "),
_vm.disabledGroupMenu.usercount > 0 ||
_vm.disabledGroupMenu.usercount === -1
? _c(
"AppNavigationItem",
{
attrs: {
id: "disabled",
exact: true,
title: _vm.t("settings", "Disabled users"),
to: {
name: "group",
params: { selectedGroup: "disabled" }
},
icon: "icon-disabled-users"
}
},
[
_vm.disabledGroupMenu.usercount > 0
? _c(
"AppNavigationCounter",
{ attrs: { slot: "counter" }, slot: "counter" },
[
_vm._v(
"\n\t\t\t\t\t" +
_vm._s(_vm.disabledGroupMenu.usercount) +
"\n\t\t\t\t"
)
]
)
: _vm._e()
],
1
)
: _vm._e(),
_vm._v(" "),
_vm.groupList.length > 0
? _c("AppNavigationCaption", {
attrs: { title: _vm.t("settings", "Groups") }
})
: _vm._e(),
_vm._v(" "),
_vm._l(_vm.groupList, function(group) {
return _c(
"AppNavigationItem",
{
key: group.id,
attrs: {
exact: true,
title: group.title,
to: {
name: "group",
params: {
selectedGroup: encodeURIComponent(group.id)
}
}
}
},
[
group.count
? _c(
"AppNavigationCounter",
{ attrs: { slot: "counter" }, slot: "counter" },
[
_vm._v(
"\n\t\t\t\t\t" +
_vm._s(group.count) +
"\n\t\t\t\t"
)
]
)
: _vm._e(),
_vm._v(" "),
_c(
"template",
{ slot: "actions" },
[
group.id !== "admin" &&
group.id !== "disabled" &&
_vm.settings.isAdmin
? _c(
"ActionButton",
{
attrs: { icon: "icon-delete" },
on: {
click: function($event) {
return _vm.removeGroup(group.id)
}
}
},
[
_vm._v(
"\n\t\t\t\t\t\t" +
_vm._s(
_vm.t("settings", "Remove group")
) +
"\n\t\t\t\t\t"
)
]
)
: _vm._e()
],
1
)
],
2
)
})
]
},
proxy: true
},
{
key: "footer",
fn: function() {
return [
_c("AppNavigationSettings", [
_c(
"div",
[
_c("p", [
_vm._v(_vm._s(_vm.t("settings", "Default quota:")))
]),
_vm._v(" "),
_c("Multiselect", {
attrs: {
value: _vm.defaultQuota,
options: _vm.quotaOptions,
"tag-placeholder": "create",
placeholder: _vm.t(
"settings",
"Select default quota"
),
label: "label",
"track-by": "id",
"allow-empty": false,
taggable: true
},
on: {
tag: _vm.validateQuota,
input: _vm.setDefaultQuota
}
})
],
1
),
_vm._v(" "),
_c("div", [
_c("input", {
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.showLanguages,
expression: "showLanguages"
}
],
staticClass: "checkbox",
attrs: { id: "showLanguages", type: "checkbox" },
domProps: {
checked: Array.isArray(_vm.showLanguages)
? _vm._i(_vm.showLanguages, null) > -1
: _vm.showLanguages
},
on: {
change: function($event) {
var $$a = _vm.showLanguages,
$$el = $event.target,
$$c = $$el.checked ? true : false
if (Array.isArray($$a)) {
var $$v = null,
$$i = _vm._i($$a, $$v)
if ($$el.checked) {
$$i < 0 &&
(_vm.showLanguages = $$a.concat([$$v]))
} else {
$$i > -1 &&
(_vm.showLanguages = $$a
.slice(0, $$i)
.concat($$a.slice($$i + 1)))
}
} else {
_vm.showLanguages = $$c
}
}
}
}),
_vm._v(" "),
_c("label", { attrs: { for: "showLanguages" } }, [
_vm._v(_vm._s(_vm.t("settings", "Show Languages")))
])
]),
_vm._v(" "),
_c("div", [
_c("input", {
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.showLastLogin,
expression: "showLastLogin"
}
],
staticClass: "checkbox",
attrs: { id: "showLastLogin", type: "checkbox" },
domProps: {
checked: Array.isArray(_vm.showLastLogin)
? _vm._i(_vm.showLastLogin, null) > -1
: _vm.showLastLogin
},
on: {
change: function($event) {
var $$a = _vm.showLastLogin,
$$el = $event.target,
$$c = $$el.checked ? true : false
if (Array.isArray($$a)) {
var $$v = null,
$$i = _vm._i($$a, $$v)
if ($$el.checked) {
$$i < 0 &&
(_vm.showLastLogin = $$a.concat([$$v]))
} else {
$$i > -1 &&
(_vm.showLastLogin = $$a
.slice(0, $$i)
.concat($$a.slice($$i + 1)))
}
} else {
_vm.showLastLogin = $$c
}
}
}
}),
_vm._v(" "),
_c("label", { attrs: { for: "showLastLogin" } }, [
_vm._v(_vm._s(_vm.t("settings", "Show last login")))
])
]),
_vm._v(" "),
_c("div", [
_c("input", {
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.showUserBackend,
expression: "showUserBackend"
}
],
staticClass: "checkbox",
attrs: { id: "showUserBackend", type: "checkbox" },
domProps: {
checked: Array.isArray(_vm.showUserBackend)
? _vm._i(_vm.showUserBackend, null) > -1
: _vm.showUserBackend
},
on: {
change: function($event) {
var $$a = _vm.showUserBackend,
$$el = $event.target,
$$c = $$el.checked ? true : false
if (Array.isArray($$a)) {
var $$v = null,
$$i = _vm._i($$a, $$v)
if ($$el.checked) {
$$i < 0 &&
(_vm.showUserBackend = $$a.concat([$$v]))
} else {
$$i > -1 &&
(_vm.showUserBackend = $$a
.slice(0, $$i)
.concat($$a.slice($$i + 1)))
}
} else {
_vm.showUserBackend = $$c
}
}
}
}),
_vm._v(" "),
_c("label", { attrs: { for: "showUserBackend" } }, [
_vm._v(_vm._s(_vm.t("settings", "Show user backend")))
])
]),
_vm._v(" "),
_c("div", [
_c("input", {
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.showStoragePath,
expression: "showStoragePath"
}
],
staticClass: "checkbox",
attrs: { id: "showStoragePath", type: "checkbox" },
domProps: {
checked: Array.isArray(_vm.showStoragePath)
? _vm._i(_vm.showStoragePath, null) > -1
: _vm.showStoragePath
},
on: {
change: function($event) {
var $$a = _vm.showStoragePath,
$$el = $event.target,
$$c = $$el.checked ? true : false
if (Array.isArray($$a)) {
var $$v = null,
$$i = _vm._i($$a, $$v)
if ($$el.checked) {
$$i < 0 &&
(_vm.showStoragePath = $$a.concat([$$v]))
} else {
$$i > -1 &&
(_vm.showStoragePath = $$a
.slice(0, $$i)
.concat($$a.slice($$i + 1)))
}
} else {
_vm.showStoragePath = $$c
}
}
}
}),
_vm._v(" "),
_c("label", { attrs: { for: "showStoragePath" } }, [
_vm._v(_vm._s(_vm.t("settings", "Show storage path")))
])
]),
_vm._v(" "),
_c("div", [
_c("input", {
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.sendWelcomeMail,
expression: "sendWelcomeMail"
}
],
staticClass: "checkbox",
attrs: {
id: "sendWelcomeMail",
disabled: _vm.loadingSendMail,
type: "checkbox"
},
domProps: {
checked: Array.isArray(_vm.sendWelcomeMail)
? _vm._i(_vm.sendWelcomeMail, null) > -1
: _vm.sendWelcomeMail
},
on: {
change: function($event) {
var $$a = _vm.sendWelcomeMail,
$$el = $event.target,
$$c = $$el.checked ? true : false
if (Array.isArray($$a)) {
var $$v = null,
$$i = _vm._i($$a, $$v)
if ($$el.checked) {
$$i < 0 &&
(_vm.sendWelcomeMail = $$a.concat([$$v]))
} else {
$$i > -1 &&
(_vm.sendWelcomeMail = $$a
.slice(0, $$i)
.concat($$a.slice($$i + 1)))
}
} else {
_vm.sendWelcomeMail = $$c
}
}
}
}),
_vm._v(" "),
_c("label", { attrs: { for: "sendWelcomeMail" } }, [
_vm._v(
_vm._s(_vm.t("settings", "Send email to new user"))
)
])
])
])
]
},
proxy: true
}
])
},
[ [
_c("AppNavigationNew", { _c("AppNavigationNew", {
attrs: { attrs: {
@ -4409,452 +4886,7 @@ var render = function() {
"button-class": "icon-add" "button-class": "icon-add"
}, },
on: { click: _vm.toggleNewUserMenu } on: { click: _vm.toggleNewUserMenu }
}), })
_vm._v(" "),
_c(
"ul",
{ attrs: { id: "usergrouplist" } },
[
_c("AppNavigationItem", {
ref: "addGroup",
attrs: {
id: "addgroup",
"edit-placeholder": _vm.t("settings", "Enter group name"),
editable: true,
loading: _vm.loadingAddGroup,
title: _vm.t("settings", "Add group"),
icon: "icon-add"
},
on: {
click: function($event) {
return _vm.toggleAddGroupEntry(true)
},
"update:title": _vm.createGroup
}
}),
_vm._v(" "),
_c(
"AppNavigationItem",
{
attrs: {
id: "everyone",
exact: true,
title: _vm.t("settings", "Everyone"),
to: { name: "users" },
icon: "icon-contacts-dark"
}
},
[
_vm.userCount > 0
? _c(
"AppNavigationCounter",
{ attrs: { slot: "counter" }, slot: "counter" },
[
_vm._v(
"\n\t\t\t\t\t" +
_vm._s(_vm.userCount) +
"\n\t\t\t\t"
)
]
)
: _vm._e()
],
1
),
_vm._v(" "),
_vm.settings.isAdmin
? _c(
"AppNavigationItem",
{
attrs: {
id: "admin",
exact: true,
title: _vm.t("settings", "Admins"),
to: {
name: "group",
params: { selectedGroup: "admin" }
},
icon: "icon-user-admin"
}
},
[
_vm.adminGroupMenu.count
? _c(
"AppNavigationCounter",
{ attrs: { slot: "counter" }, slot: "counter" },
[
_vm._v(
"\n\t\t\t\t\t" +
_vm._s(_vm.adminGroupMenu.count) +
"\n\t\t\t\t"
)
]
)
: _vm._e()
],
1
)
: _vm._e(),
_vm._v(" "),
_vm.disabledGroupMenu.usercount > 0 ||
_vm.disabledGroupMenu.usercount === -1
? _c(
"AppNavigationItem",
{
attrs: {
id: "disabled",
exact: true,
title: _vm.t("settings", "Disabled users"),
to: {
name: "group",
params: { selectedGroup: "disabled" }
},
icon: "icon-disabled-users"
}
},
[
_vm.disabledGroupMenu.usercount > 0
? _c(
"AppNavigationCounter",
{ attrs: { slot: "counter" }, slot: "counter" },
[
_vm._v(
"\n\t\t\t\t\t" +
_vm._s(_vm.disabledGroupMenu.usercount) +
"\n\t\t\t\t"
)
]
)
: _vm._e()
],
1
)
: _vm._e(),
_vm._v(" "),
_vm.groupList.length > 0
? _c("AppNavigationCaption", {
attrs: { title: _vm.t("settings", "Groups") }
})
: _vm._e(),
_vm._v(" "),
_vm._l(_vm.groupList, function(group) {
return _c(
"AppNavigationItem",
{
key: group.id,
attrs: {
exact: true,
title: group.title,
to: {
name: "group",
params: { selectedGroup: encodeURIComponent(group.id) }
}
}
},
[
group.count
? _c(
"AppNavigationCounter",
{ attrs: { slot: "counter" }, slot: "counter" },
[
_vm._v(
"\n\t\t\t\t\t" +
_vm._s(group.count) +
"\n\t\t\t\t"
)
]
)
: _vm._e(),
_vm._v(" "),
_c(
"template",
{ slot: "actions" },
[
group.id !== "admin" &&
group.id !== "disabled" &&
_vm.settings.isAdmin
? _c(
"ActionButton",
{
attrs: { icon: "icon-delete" },
on: {
click: function($event) {
return _vm.removeGroup(group.id)
}
}
},
[
_vm._v(
"\n\t\t\t\t\t\t" +
_vm._s(_vm.t("settings", "Remove group")) +
"\n\t\t\t\t\t"
)
]
)
: _vm._e()
],
1
)
],
2
)
})
],
2
),
_vm._v(" "),
_c("AppNavigationSettings", [
_c(
"div",
[
_c("p", [_vm._v(_vm._s(_vm.t("settings", "Default quota:")))]),
_vm._v(" "),
_c("Multiselect", {
attrs: {
value: _vm.defaultQuota,
options: _vm.quotaOptions,
"tag-placeholder": "create",
placeholder: _vm.t("settings", "Select default quota"),
label: "label",
"track-by": "id",
"allow-empty": false,
taggable: true
},
on: { tag: _vm.validateQuota, input: _vm.setDefaultQuota }
})
],
1
),
_vm._v(" "),
_c("div", [
_c("input", {
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.showLanguages,
expression: "showLanguages"
}
],
staticClass: "checkbox",
attrs: { id: "showLanguages", type: "checkbox" },
domProps: {
checked: Array.isArray(_vm.showLanguages)
? _vm._i(_vm.showLanguages, null) > -1
: _vm.showLanguages
},
on: {
change: function($event) {
var $$a = _vm.showLanguages,
$$el = $event.target,
$$c = $$el.checked ? true : false
if (Array.isArray($$a)) {
var $$v = null,
$$i = _vm._i($$a, $$v)
if ($$el.checked) {
$$i < 0 && (_vm.showLanguages = $$a.concat([$$v]))
} else {
$$i > -1 &&
(_vm.showLanguages = $$a
.slice(0, $$i)
.concat($$a.slice($$i + 1)))
}
} else {
_vm.showLanguages = $$c
}
}
}
}),
_vm._v(" "),
_c("label", { attrs: { for: "showLanguages" } }, [
_vm._v(_vm._s(_vm.t("settings", "Show Languages")))
])
]),
_vm._v(" "),
_c("div", [
_c("input", {
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.showLastLogin,
expression: "showLastLogin"
}
],
staticClass: "checkbox",
attrs: { id: "showLastLogin", type: "checkbox" },
domProps: {
checked: Array.isArray(_vm.showLastLogin)
? _vm._i(_vm.showLastLogin, null) > -1
: _vm.showLastLogin
},
on: {
change: function($event) {
var $$a = _vm.showLastLogin,
$$el = $event.target,
$$c = $$el.checked ? true : false
if (Array.isArray($$a)) {
var $$v = null,
$$i = _vm._i($$a, $$v)
if ($$el.checked) {
$$i < 0 && (_vm.showLastLogin = $$a.concat([$$v]))
} else {
$$i > -1 &&
(_vm.showLastLogin = $$a
.slice(0, $$i)
.concat($$a.slice($$i + 1)))
}
} else {
_vm.showLastLogin = $$c
}
}
}
}),
_vm._v(" "),
_c("label", { attrs: { for: "showLastLogin" } }, [
_vm._v(_vm._s(_vm.t("settings", "Show last login")))
])
]),
_vm._v(" "),
_c("div", [
_c("input", {
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.showUserBackend,
expression: "showUserBackend"
}
],
staticClass: "checkbox",
attrs: { id: "showUserBackend", type: "checkbox" },
domProps: {
checked: Array.isArray(_vm.showUserBackend)
? _vm._i(_vm.showUserBackend, null) > -1
: _vm.showUserBackend
},
on: {
change: function($event) {
var $$a = _vm.showUserBackend,
$$el = $event.target,
$$c = $$el.checked ? true : false
if (Array.isArray($$a)) {
var $$v = null,
$$i = _vm._i($$a, $$v)
if ($$el.checked) {
$$i < 0 && (_vm.showUserBackend = $$a.concat([$$v]))
} else {
$$i > -1 &&
(_vm.showUserBackend = $$a
.slice(0, $$i)
.concat($$a.slice($$i + 1)))
}
} else {
_vm.showUserBackend = $$c
}
}
}
}),
_vm._v(" "),
_c("label", { attrs: { for: "showUserBackend" } }, [
_vm._v(_vm._s(_vm.t("settings", "Show user backend")))
])
]),
_vm._v(" "),
_c("div", [
_c("input", {
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.showStoragePath,
expression: "showStoragePath"
}
],
staticClass: "checkbox",
attrs: { id: "showStoragePath", type: "checkbox" },
domProps: {
checked: Array.isArray(_vm.showStoragePath)
? _vm._i(_vm.showStoragePath, null) > -1
: _vm.showStoragePath
},
on: {
change: function($event) {
var $$a = _vm.showStoragePath,
$$el = $event.target,
$$c = $$el.checked ? true : false
if (Array.isArray($$a)) {
var $$v = null,
$$i = _vm._i($$a, $$v)
if ($$el.checked) {
$$i < 0 && (_vm.showStoragePath = $$a.concat([$$v]))
} else {
$$i > -1 &&
(_vm.showStoragePath = $$a
.slice(0, $$i)
.concat($$a.slice($$i + 1)))
}
} else {
_vm.showStoragePath = $$c
}
}
}
}),
_vm._v(" "),
_c("label", { attrs: { for: "showStoragePath" } }, [
_vm._v(_vm._s(_vm.t("settings", "Show storage path")))
])
]),
_vm._v(" "),
_c("div", [
_c("input", {
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.sendWelcomeMail,
expression: "sendWelcomeMail"
}
],
staticClass: "checkbox",
attrs: {
id: "sendWelcomeMail",
disabled: _vm.loadingSendMail,
type: "checkbox"
},
domProps: {
checked: Array.isArray(_vm.sendWelcomeMail)
? _vm._i(_vm.sendWelcomeMail, null) > -1
: _vm.sendWelcomeMail
},
on: {
change: function($event) {
var $$a = _vm.sendWelcomeMail,
$$el = $event.target,
$$c = $$el.checked ? true : false
if (Array.isArray($$a)) {
var $$v = null,
$$i = _vm._i($$a, $$v)
if ($$el.checked) {
$$i < 0 && (_vm.sendWelcomeMail = $$a.concat([$$v]))
} else {
$$i > -1 &&
(_vm.sendWelcomeMail = $$a
.slice(0, $$i)
.concat($$a.slice($$i + 1)))
}
} else {
_vm.sendWelcomeMail = $$c
}
}
}
}),
_vm._v(" "),
_c("label", { attrs: { for: "sendWelcomeMail" } }, [
_vm._v(_vm._s(_vm.t("settings", "Send email to new user")))
])
])
])
], ],
1 1
), ),
@ -4978,4 +5010,4 @@ if(false) {}
/***/ }) /***/ })
}]); }]);
//# sourceMappingURL=vue-2.js.map?v=888f47793ecddf751d7a //# sourceMappingURL=vue-2.js.map?v=b42f167f76ca1740ec0a

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -27,7 +27,7 @@
<script> <script>
export default { export default {
name: 'App', name: 'App',
beforeMount: function() { beforeMount() {
// importing server data into the store // importing server data into the store
const serverDataElmt = document.getElementById('serverData') const serverDataElmt = document.getElementById('serverData')
if (serverDataElmt !== null) { if (serverDataElmt !== null) {

View File

@ -138,7 +138,7 @@ export default {
}, },
}, },
watch: { watch: {
'$route.params.id': function(id) { '$route.params.id'(id) {
this.isSelected = (this.app.id === id) this.isSelected = (this.app.id === id)
}, },
}, },

View File

@ -76,7 +76,7 @@ export default {
} }
return false return false
}, },
setGroupLimit: function() { setGroupLimit() {
if (!this.groupCheckedAppsData) { if (!this.groupCheckedAppsData) {
this.$store.dispatch('enableApp', { appId: this.app.id, groups: [] }) this.$store.dispatch('enableApp', { appId: this.app.id, groups: [] })
} }
@ -93,7 +93,7 @@ export default {
}, },
addGroupLimitation(group) { addGroupLimitation(group) {
const groups = this.app.groups.concat([]).concat([group.id]) const groups = this.app.groups.concat([]).concat([group.id])
this.$store.dispatch('enableApp', { appId: this.app.id, groups: groups }) this.$store.dispatch('enableApp', { appId: this.app.id, groups })
}, },
removeGroupLimitation(group) { removeGroupLimitation(group) {
const currentGroups = this.app.groups.concat([]) const currentGroups = this.app.groups.concat([])
@ -104,32 +104,32 @@ export default {
this.$store.dispatch('enableApp', { appId: this.app.id, groups: currentGroups }) this.$store.dispatch('enableApp', { appId: this.app.id, groups: currentGroups })
}, },
forceEnable(appId) { forceEnable(appId) {
this.$store.dispatch('forceEnableApp', { appId: appId, groups: [] }) this.$store.dispatch('forceEnableApp', { appId, groups: [] })
.then((response) => { OC.Settings.Apps.rebuildNavigation() }) .then((response) => { OC.Settings.Apps.rebuildNavigation() })
.catch((error) => { OC.Notification.show(error) }) .catch((error) => { OC.Notification.show(error) })
}, },
enable(appId) { enable(appId) {
this.$store.dispatch('enableApp', { appId: appId, groups: [] }) this.$store.dispatch('enableApp', { appId, groups: [] })
.then((response) => { OC.Settings.Apps.rebuildNavigation() }) .then((response) => { OC.Settings.Apps.rebuildNavigation() })
.catch((error) => { OC.Notification.show(error) }) .catch((error) => { OC.Notification.show(error) })
}, },
disable(appId) { disable(appId) {
this.$store.dispatch('disableApp', { appId: appId }) this.$store.dispatch('disableApp', { appId })
.then((response) => { OC.Settings.Apps.rebuildNavigation() }) .then((response) => { OC.Settings.Apps.rebuildNavigation() })
.catch((error) => { OC.Notification.show(error) }) .catch((error) => { OC.Notification.show(error) })
}, },
remove(appId) { remove(appId) {
this.$store.dispatch('uninstallApp', { appId: appId }) this.$store.dispatch('uninstallApp', { appId })
.then((response) => { OC.Settings.Apps.rebuildNavigation() }) .then((response) => { OC.Settings.Apps.rebuildNavigation() })
.catch((error) => { OC.Notification.show(error) }) .catch((error) => { OC.Notification.show(error) })
}, },
install(appId) { install(appId) {
this.$store.dispatch('enableApp', { appId: appId }) this.$store.dispatch('enableApp', { appId })
.then((response) => { OC.Settings.Apps.rebuildNavigation() }) .then((response) => { OC.Settings.Apps.rebuildNavigation() })
.catch((error) => { OC.Notification.show(error) }) .catch((error) => { OC.Notification.show(error) })
}, },
update(appId) { update(appId) {
this.$store.dispatch('updateApp', { appId: appId }) this.$store.dispatch('updateApp', { appId })
.then((response) => { OC.Settings.Apps.rebuildNavigation() }) .then((response) => { OC.Settings.Apps.rebuildNavigation() })
.catch((error) => { OC.Notification.show(error) }) .catch((error) => { OC.Notification.show(error) })
}, },

View File

@ -385,7 +385,7 @@ export default {
}, },
watch: { watch: {
// watch url change and group select // watch url change and group select
selectedGroup: function(val, old) { selectedGroup(val, old) {
// if selected is the disabled group but it's empty // if selected is the disabled group but it's empty
this.redirectIfDisabled() this.redirectIfDisabled()
this.$store.commit('resetUsers') this.$store.commit('resetUsers')
@ -395,7 +395,7 @@ export default {
// make sure the infiniteLoading state is changed if we manually // make sure the infiniteLoading state is changed if we manually
// add/remove data from the store // add/remove data from the store
usersCount: function(val, old) { usersCount(val, old) {
// deleting the last user, reset the list // deleting the last user, reset the list
if (val === 0 && old === 1) { if (val === 0 && old === 1) {
this.$refs.infiniteLoading.stateChanger.reset() this.$refs.infiniteLoading.stateChanger.reset()

View File

@ -367,11 +367,11 @@ export default {
wipeUserDevices() { wipeUserDevices() {
const userid = this.user.id const userid = this.user.id
OC.dialogs.confirmDestructive( OC.dialogs.confirmDestructive(
t('settings', 'In case of lost device or exiting the organization, this can remotely wipe the Nextcloud data from all devices associated with {userid}. Only works if the devices are connected to the internet.', { userid: userid }), t('settings', 'In case of lost device or exiting the organization, this can remotely wipe the Nextcloud data from all devices associated with {userid}. Only works if the devices are connected to the internet.', { userid }),
t('settings', 'Remote wipe of devices'), t('settings', 'Remote wipe of devices'),
{ {
type: OC.dialogs.YES_NO_BUTTONS, type: OC.dialogs.YES_NO_BUTTONS,
confirm: t('settings', 'Wipe {userid}\'s devices', { userid: userid }), confirm: t('settings', 'Wipe {userid}\'s devices', { userid }),
confirmClasses: 'error', confirmClasses: 'error',
cancel: t('settings', 'Cancel'), cancel: t('settings', 'Cancel'),
}, },
@ -393,11 +393,11 @@ export default {
deleteUser() { deleteUser() {
const userid = this.user.id const userid = this.user.id
OC.dialogs.confirmDestructive( OC.dialogs.confirmDestructive(
t('settings', 'Fully delete {userid}\'s account including all their personal files, app data, etc.', { userid: userid }), t('settings', 'Fully delete {userid}\'s account including all their personal files, app data, etc.', { userid }),
t('settings', 'Account deletion'), t('settings', 'Account deletion'),
{ {
type: OC.dialogs.YES_NO_BUTTONS, type: OC.dialogs.YES_NO_BUTTONS,
confirm: t('settings', 'Delete {userid}\'s account', { userid: userid }), confirm: t('settings', 'Delete {userid}\'s account', { userid }),
confirmClasses: 'error', confirmClasses: 'error',
cancel: t('settings', 'Cancel'), cancel: t('settings', 'Cancel'),
}, },

View File

@ -163,8 +163,8 @@ export default {
return generateUrl( return generateUrl(
'/avatar/{user}/{size}?v={version}', '/avatar/{user}/{size}?v={version}',
{ {
user: user, user,
size: size, size,
version: oc_userconfig.avatar.version, version: oc_userconfig.avatar.version,
} }
) )

View File

@ -76,6 +76,6 @@ export default {
return axios.put(sanitize(url), data) return axios.put(sanitize(url), data)
}, },
delete(url, data) { delete(url, data) {
return axios.delete(sanitize(url), { data: data }) return axios.delete(sanitize(url), { data })
}, },
} }

View File

@ -163,7 +163,7 @@ export default {
}, },
}, },
watch: { watch: {
category: function(val, old) { category(val, old) {
this.setSearch('') this.setSearch('')
}, },
}, },

File diff suppressed because one or more lines are too long

View File

@ -18,7 +18,7 @@
OCA.SystemTags.App = { OCA.SystemTags.App = {
initFileList: function($el) { initFileList($el) {
if (this._fileList) { if (this._fileList) {
return this._fileList return this._fileList
} }
@ -41,13 +41,13 @@
return this._fileList return this._fileList
}, },
removeFileList: function() { removeFileList() {
if (this._fileList) { if (this._fileList) {
this._fileList.$fileList.empty() this._fileList.$fileList.empty()
} }
}, },
_createFileActions: function() { _createFileActions() {
// inherit file actions from the files app // inherit file actions from the files app
const fileActions = new OCA.Files.FileActions() const fileActions = new OCA.Files.FileActions()
// note: not merging the legacy actions because legacy apps are not // note: not merging the legacy actions because legacy apps are not
@ -73,7 +73,7 @@
return fileActions return fileActions
}, },
_onActionsUpdated: function(ev) { _onActionsUpdated(ev) {
if (!this._fileList) { if (!this._fileList) {
return return
} }
@ -91,7 +91,7 @@
/** /**
* Destroy the app * Destroy the app
*/ */
destroy: function() { destroy() {
OCA.Files.fileActions.off('setDefault.app-systemtags', this._onActionsUpdated) OCA.Files.fileActions.off('setDefault.app-systemtags', this._onActionsUpdated)
OCA.Files.fileActions.off('registerAction.app-systemtags', this._onActionsUpdated) OCA.Files.fileActions.off('registerAction.app-systemtags', this._onActionsUpdated)
this.removeFileList() this.removeFileList()

View File

@ -26,7 +26,7 @@
'files.public', 'files.public',
], ],
attach: function(fileList) { attach(fileList) {
if (this.ignoreLists.indexOf(fileList.id) >= 0) { if (this.ignoreLists.indexOf(fileList.id) >= 0) {
return return
} }

View File

@ -48,7 +48,7 @@
* @param {Object} $el container element * @param {Object} $el container element
* @param {Object} [options] map of options, see other parameters * @param {Object} [options] map of options, see other parameters
*/ */
initialize: function($el, options) { initialize($el, options) {
OCA.Files.FileList.prototype.initialize.apply(this, arguments) OCA.Files.FileList.prototype.initialize.apply(this, arguments)
if (this.initialized) { if (this.initialized) {
return return
@ -66,24 +66,24 @@
this._initFilterField($controls) this._initFilterField($controls)
}, },
destroy: function() { destroy() {
this.$filterField.remove() this.$filterField.remove()
OCA.Files.FileList.prototype.destroy.apply(this, arguments) OCA.Files.FileList.prototype.destroy.apply(this, arguments)
}, },
_getLastUsedTags: function() { _getLastUsedTags() {
const self = this const self = this
$.ajax({ $.ajax({
type: 'GET', type: 'GET',
url: OC.generateUrl('/apps/systemtags/lastused'), url: OC.generateUrl('/apps/systemtags/lastused'),
success: function(response) { success(response) {
self._lastUsedTags = response self._lastUsedTags = response
}, },
}) })
}, },
_initFilterField: function($container) { _initFilterField($container) {
const self = this const self = this
this.$filterField = $('<input type="hidden" name="tags"/>') this.$filterField = $('<input type="hidden" name="tags"/>')
$container.append(this.$filterField) $container.append(this.$filterField)
@ -95,11 +95,11 @@
separator: ',', separator: ',',
query: _.bind(this._queryTagsAutocomplete, this), query: _.bind(this._queryTagsAutocomplete, this),
id: function(tag) { id(tag) {
return tag.id return tag.id
}, },
initSelection: function(element, callback) { initSelection(element, callback) {
const val = $(element) const val = $(element)
.val() .val()
.trim() .trim()
@ -108,7 +108,7 @@
const tags = [] const tags = []
OC.SystemTags.collection.fetch({ OC.SystemTags.collection.fetch({
success: function() { success() {
_.each(tagIds, function(tagId) { _.each(tagIds, function(tagId) {
const tag = OC.SystemTags.collection.get( const tag = OC.SystemTags.collection.get(
tagId tagId
@ -127,16 +127,16 @@
} }
}, },
formatResult: function(tag) { formatResult(tag) {
return OC.SystemTags.getDescriptiveTag(tag) return OC.SystemTags.getDescriptiveTag(tag)
}, },
formatSelection: function(tag) { formatSelection(tag) {
return OC.SystemTags.getDescriptiveTag(tag)[0] return OC.SystemTags.getDescriptiveTag(tag)[0]
.outerHTML .outerHTML
}, },
sortResults: function(results) { sortResults(results) {
results.sort(function(a, b) { results.sort(function(a, b) {
const aLastUsed = self._lastUsedTags.indexOf(a.id) const aLastUsed = self._lastUsedTags.indexOf(a.id)
const bLastUsed = self._lastUsedTags.indexOf(b.id) const bLastUsed = self._lastUsedTags.indexOf(b.id)
@ -157,11 +157,11 @@
return results return results
}, },
escapeMarkup: function(m) { escapeMarkup(m) {
// prevent double markup escape // prevent double markup escape
return m return m
}, },
formatNoMatches: function() { formatNoMatches() {
return t('systemtags', 'No tags found') return t('systemtags', 'No tags found')
}, },
}) })
@ -177,9 +177,9 @@
* *
* @param {Object} query select2 query object * @param {Object} query select2 query object
*/ */
_queryTagsAutocomplete: function(query) { _queryTagsAutocomplete(query) {
OC.SystemTags.collection.fetch({ OC.SystemTags.collection.fetch({
success: function() { success() {
const results = OC.SystemTags.collection.filterByName( const results = OC.SystemTags.collection.filterByName(
query.term query.term
) )
@ -196,7 +196,7 @@
* *
* @param {Event} e the urlchanged event * @param {Event} e the urlchanged event
*/ */
_onUrlChanged: function(e) { _onUrlChanged(e) {
if (e.dir) { if (e.dir) {
const tags = _.filter(e.dir.split('/'), function(val) { const tags = _.filter(e.dir.split('/'), function(val) {
return val.trim() !== '' return val.trim() !== ''
@ -207,7 +207,7 @@
} }
}, },
_onTagsChanged: function(ev) { _onTagsChanged(ev) {
const val = $(ev.target) const val = $(ev.target)
.val() .val()
.trim() .trim()
@ -225,7 +225,7 @@
this.reload() this.reload()
}, },
updateEmptyContent: function() { updateEmptyContent() {
const dir = this.getCurrentDirectory() const dir = this.getCurrentDirectory()
if (dir === '/') { if (dir === '/') {
// root has special permissions // root has special permissions
@ -270,16 +270,16 @@
} }
}, },
getDirectoryPermissions: function() { getDirectoryPermissions() {
return OC.PERMISSION_READ | OC.PERMISSION_DELETE return OC.PERMISSION_READ | OC.PERMISSION_DELETE
}, },
updateStorageStatistics: function() { updateStorageStatistics() {
// no op because it doesn't have // no op because it doesn't have
// storage info like free space / used space // storage info like free space / used space
}, },
reload: function() { reload() {
// there is only root // there is only root
this._setCurrentDir('/', false) this._setCurrentDir('/', false)
@ -314,7 +314,7 @@
return this._reloadCall.then(callBack, callBack) return this._reloadCall.then(callBack, callBack)
}, },
reloadCallback: function(status, result) { reloadCallback(status, result) {
if (result) { if (result) {
// prepend empty dir info because original handler // prepend empty dir info because original handler
result.unshift({}) result.unshift({})

View File

@ -41,7 +41,7 @@
*/ */
_inputView: null, _inputView: null,
initialize: function(options) { initialize(options) {
const self = this const self = this
options = options || {} options = options || {}
@ -50,7 +50,7 @@
allowActions: true, allowActions: true,
allowCreate: true, allowCreate: true,
isAdmin: OC.isUserAdmin(), isAdmin: OC.isUserAdmin(),
initSelection: function(element, callback) { initSelection(element, callback) {
callback(self.selectedTagsCollection.map(modelToSelection)) callback(self.selectedTagsCollection.map(modelToSelection))
}, },
}) })
@ -68,7 +68,7 @@
* Event handler whenever a tag was selected * Event handler whenever a tag was selected
* @param {Object} tag the tag to create * @param {Object} tag the tag to create
*/ */
_onSelectTag: function(tag) { _onSelectTag(tag) {
// create a mapping entry for this tag // create a mapping entry for this tag
this.selectedTagsCollection.create(tag.toJSON()) this.selectedTagsCollection.create(tag.toJSON())
}, },
@ -79,7 +79,7 @@
* *
* @param {string} tagId tag id * @param {string} tagId tag id
*/ */
_onDeselectTag: function(tagId) { _onDeselectTag(tagId) {
this.selectedTagsCollection.get(tagId).destroy() this.selectedTagsCollection.get(tagId).destroy()
}, },
@ -91,7 +91,7 @@
* *
* @param {OC.Backbone.Model} changedTag tag model that has changed * @param {OC.Backbone.Model} changedTag tag model that has changed
*/ */
_onTagRenamedGlobally: function(changedTag) { _onTagRenamedGlobally(changedTag) {
// also rename it in the selection, if applicable // also rename it in the selection, if applicable
const selectedTagMapping = this.selectedTagsCollection.get(changedTag.id) const selectedTagMapping = this.selectedTagsCollection.get(changedTag.id)
if (selectedTagMapping) { if (selectedTagMapping) {
@ -107,12 +107,12 @@
* *
* @param {OC.Backbone.Model} tagId tag model that has changed * @param {OC.Backbone.Model} tagId tag model that has changed
*/ */
_onTagDeletedGlobally: function(tagId) { _onTagDeletedGlobally(tagId) {
// also rename it in the selection, if applicable // also rename it in the selection, if applicable
this.selectedTagsCollection.remove(tagId) this.selectedTagsCollection.remove(tagId)
}, },
setFileInfo: function(fileInfo) { setFileInfo(fileInfo) {
const self = this const self = this
if (!this._rendered) { if (!this._rendered) {
this.render() this.render()
@ -121,7 +121,7 @@
if (fileInfo) { if (fileInfo) {
this.selectedTagsCollection.setObjectId(fileInfo.id) this.selectedTagsCollection.setObjectId(fileInfo.id)
this.selectedTagsCollection.fetch({ this.selectedTagsCollection.fetch({
success: function(collection) { success(collection) {
collection.fetched = true collection.fetched = true
const appliedTags = collection.map(modelToSelection) const appliedTags = collection.map(modelToSelection)
@ -139,32 +139,32 @@
/** /**
* Renders this details view * Renders this details view
*/ */
render: function() { render() {
this.$el.append(this._inputView.$el) this.$el.append(this._inputView.$el)
this._inputView.render() this._inputView.render()
}, },
isVisible: function() { isVisible() {
return !this.$el.hasClass('hidden') return !this.$el.hasClass('hidden')
}, },
show: function() { show() {
this.$el.removeClass('hidden') this.$el.removeClass('hidden')
}, },
hide: function() { hide() {
this.$el.addClass('hidden') this.$el.addClass('hidden')
}, },
toggle: function() { toggle() {
this.$el.toggleClass('hidden') this.$el.toggleClass('hidden')
}, },
openDropdown: function() { openDropdown() {
this.$el.find('.systemTagsInputField').select2('open') this.$el.find('.systemTagsInputField').select2('open')
}, },
remove: function() { remove() {
this._inputView.remove() this._inputView.remove()
}, },
}) })

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,7 +1,7 @@
export function print(data) { export function print(data) {
const name = OC.theme.name || 'Nextcloud' const name = OC.theme.name || 'Nextcloud'
const newTab = window.open('', t('twofactor_backupcodes', '{name} backup codes', { name: name })) const newTab = window.open('', t('twofactor_backupcodes', '{name} backup codes', { name }))
newTab.document.write('<h1>' + t('twofactor_backupcodes', '{name} backup codes', { name: name }) + '</h1>') newTab.document.write('<h1>' + t('twofactor_backupcodes', '{name} backup codes', { name }) + '</h1>')
newTab.document.write('<pre>' + data + '</pre>') newTab.document.write('<pre>' + data + '</pre>')
newTab.print() newTab.print()
newTab.close() newTab.close()

View File

@ -55,7 +55,7 @@ export default {
} }
}, },
computed: { computed: {
downloadUrl: function() { downloadUrl() {
if (!this.codes) { if (!this.codes) {
return '' return ''
} }
@ -63,23 +63,23 @@ export default {
return prev + code + '\r\n' return prev + code + '\r\n'
}, '')) }, ''))
}, },
downloadFilename: function() { downloadFilename() {
const name = OC.theme.name || 'Nextcloud' const name = OC.theme.name || 'Nextcloud'
return name + '-backup-codes.txt' return name + '-backup-codes.txt'
}, },
enabled: function() { enabled() {
return this.$store.state.enabled return this.$store.state.enabled
}, },
total: function() { total() {
return this.$store.state.total return this.$store.state.total
}, },
used: function() { used() {
return this.$store.state.used return this.$store.state.used
}, },
codes: function() { codes() {
return this.$store.state.codes return this.$store.state.codes
}, },
name: function() { name() {
return OC.theme.name || 'Nextcloud' return OC.theme.name || 'Nextcloud'
}, },
haveCodes() { haveCodes() {
@ -87,7 +87,7 @@ export default {
}, },
}, },
methods: { methods: {
generateBackupCodes: function() { generateBackupCodes() {
confirmPassword().then(() => { confirmPassword().then(() => {
// Hide old codes // Hide old codes
this.generatingCodes = true this.generatingCodes = true
@ -102,7 +102,7 @@ export default {
}).catch(console.error.bind(this)) }).catch(console.error.bind(this))
}, },
getPrintData: function(codes) { getPrintData(codes) {
if (!codes) { if (!codes) {
return '' return ''
} }
@ -111,7 +111,7 @@ export default {
}, '') }, '')
}, },
printCodes: function() { printCodes() {
print(this.getPrintData(this.codes)) print(this.getPrintData(this.codes))
}, },
}, },

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -126,7 +126,7 @@ export default {
ClickOutside, ClickOutside,
tooltip: VTooltip, tooltip: VTooltip,
}, },
data: function() { data() {
return { return {
newVersionString: '', newVersionString: '',
lastCheckedDate: '', lastCheckedDate: '',
@ -162,19 +162,19 @@ export default {
_$notifyGroups: null, _$notifyGroups: null,
computed: { computed: {
newVersionAvailableString: function() { newVersionAvailableString() {
return t('updatenotification', 'A new version is available: <strong>{newVersionString}</strong>', { return t('updatenotification', 'A new version is available: <strong>{newVersionString}</strong>', {
newVersionString: this.newVersionString, newVersionString: this.newVersionString,
}) })
}, },
lastCheckedOnString: function() { lastCheckedOnString() {
return t('updatenotification', 'Checked on {lastCheckedDate}', { return t('updatenotification', 'Checked on {lastCheckedDate}', {
lastCheckedDate: this.lastCheckedDate, lastCheckedDate: this.lastCheckedDate,
}) })
}, },
statusText: function() { statusText() {
if (!this.isListFetched) { if (!this.isListFetched) {
return t('updatenotification', 'Checking apps for compatible updates') return t('updatenotification', 'Checking apps for compatible updates')
} }
@ -192,7 +192,7 @@ export default {
: n('updatenotification', '<strong>%n</strong> app has no update for this version available', '<strong>%n</strong> apps have no update for this version available', this.missingAppUpdates.length) : n('updatenotification', '<strong>%n</strong> app has no update for this version available', '<strong>%n</strong> apps have no update for this version available', this.missingAppUpdates.length)
}, },
whatsNew: function() { whatsNew() {
if (this.whatsNewData.length === 0) { if (this.whatsNewData.length === 0) {
return null return null
} }
@ -212,7 +212,7 @@ export default {
return whatsNew return whatsNew
}, },
channelList: function() { channelList() {
const channelList = [] const channelList = []
channelList.push({ channelList.push({
@ -251,11 +251,11 @@ export default {
return channelList return channelList
}, },
isNonDefaultChannel: function() { isNonDefaultChannel() {
return this.currentChannel !== 'enterprise' && this.currentChannel !== 'stable' && this.currentChannel !== 'beta' return this.currentChannel !== 'enterprise' && this.currentChannel !== 'stable' && this.currentChannel !== 'beta'
}, },
localizedChannelName: function() { localizedChannelName() {
switch (this.currentChannel) { switch (this.currentChannel) {
case 'enterprise': case 'enterprise':
return t('updatenotification', 'Enterprise') return t('updatenotification', 'Enterprise')
@ -270,7 +270,7 @@ export default {
}, },
watch: { watch: {
notifyGroups: function(selectedOptions) { notifyGroups(selectedOptions) {
if (!this.enableChangeWatcher) { if (!this.enableChangeWatcher) {
return return
} }
@ -282,7 +282,7 @@ export default {
OCP.AppConfig.setValue('updatenotification', 'notify_groups', JSON.stringify(selectedGroups)) OCP.AppConfig.setValue('updatenotification', 'notify_groups', JSON.stringify(selectedGroups))
}, },
isNewVersionAvailable: function() { isNewVersionAvailable() {
if (!this.isNewVersionAvailable) { if (!this.isNewVersionAvailable) {
return return
} }
@ -290,7 +290,7 @@ export default {
$.ajax({ $.ajax({
url: generateOcsUrl('apps/updatenotification/api/v1/applist', 2) + this.newVersion, url: generateOcsUrl('apps/updatenotification/api/v1/applist', 2) + this.newVersion,
type: 'GET', type: 'GET',
beforeSend: function(request) { beforeSend(request) {
request.setRequestHeader('Accept', 'application/json') request.setRequestHeader('Accept', 'application/json')
}, },
success: function(response) { success: function(response) {
@ -309,7 +309,7 @@ export default {
}) })
}, },
}, },
beforeMount: function() { beforeMount() {
// Parse server data // Parse server data
const data = JSON.parse($('#updatenotification').attr('data-json')) const data = JSON.parse($('#updatenotification').attr('data-json'))
@ -337,7 +337,7 @@ export default {
this.whatsNewData = this.whatsNewData.concat(data.changes.whatsNew.regular) this.whatsNewData = this.whatsNewData.concat(data.changes.whatsNew.regular)
} }
}, },
mounted: function() { mounted() {
this._$el = $(this.$el) this._$el = $(this.$el)
this._$notifyGroups = this._$el.find('#oca_updatenotification_groups_list') this._$notifyGroups = this._$el.find('#oca_updatenotification_groups_list')
this._$notifyGroups.on('change', function() { this._$notifyGroups.on('change', function() {
@ -363,7 +363,7 @@ export default {
/** /**
* Creates a new authentication token and loads the updater URL * Creates a new authentication token and loads the updater URL
*/ */
clickUpdaterButton: function() { clickUpdaterButton() {
$.ajax({ $.ajax({
url: generateUrl('/apps/updatenotification/credentials'), url: generateUrl('/apps/updatenotification/credentials'),
}).success(function(token) { }).success(function(token) {
@ -383,16 +383,16 @@ export default {
form.submit() form.submit()
}) })
}, },
changeReleaseChannelToEnterprise: function() { changeReleaseChannelToEnterprise() {
this.changeReleaseChannel('enterprise') this.changeReleaseChannel('enterprise')
}, },
changeReleaseChannelToStable: function() { changeReleaseChannelToStable() {
this.changeReleaseChannel('stable') this.changeReleaseChannel('stable')
}, },
changeReleaseChannelToBeta: function() { changeReleaseChannelToBeta() {
this.changeReleaseChannel('beta') this.changeReleaseChannel('beta')
}, },
changeReleaseChannel: function(channel) { changeReleaseChannel(channel) {
this.currentChannel = channel this.currentChannel = channel
$.ajax({ $.ajax({
@ -401,29 +401,29 @@ export default {
data: { data: {
'channel': this.currentChannel, 'channel': this.currentChannel,
}, },
success: function(data) { success(data) {
OC.msg.finishedAction('#channel_save_msg', data) OC.msg.finishedAction('#channel_save_msg', data)
}, },
}) })
this.openedUpdateChannelMenu = false this.openedUpdateChannelMenu = false
}, },
toggleUpdateChannelMenu: function() { toggleUpdateChannelMenu() {
this.openedUpdateChannelMenu = !this.openedUpdateChannelMenu this.openedUpdateChannelMenu = !this.openedUpdateChannelMenu
}, },
toggleHideMissingUpdates: function() { toggleHideMissingUpdates() {
this.hideMissingUpdates = !this.hideMissingUpdates this.hideMissingUpdates = !this.hideMissingUpdates
}, },
toggleHideAvailableUpdates: function() { toggleHideAvailableUpdates() {
this.hideAvailableUpdates = !this.hideAvailableUpdates this.hideAvailableUpdates = !this.hideAvailableUpdates
}, },
toggleMenu: function() { toggleMenu() {
this.openedWhatsNew = !this.openedWhatsNew this.openedWhatsNew = !this.openedWhatsNew
}, },
closeUpdateChannelMenu: function() { closeUpdateChannelMenu() {
this.openedUpdateChannelMenu = false this.openedUpdateChannelMenu = false
}, },
hideMenu: function() { hideMenu() {
this.openedWhatsNew = false this.openedWhatsNew = false
}, },
}, },

View File

@ -23,10 +23,10 @@ import Root from './components/UpdateNotification'
Vue.mixin({ Vue.mixin({
methods: { methods: {
t: function(app, text, vars, count, options) { t(app, text, vars, count, options) {
return OC.L10N.translate(app, text, vars, count, options) return OC.L10N.translate(app, text, vars, count, options)
}, },
n: function(app, textSingular, textPlural, count, vars, options) { n(app, textSingular, textPlural, count, vars, options) {
return OC.L10N.translatePlural(app, textSingular, textPlural, count, vars, options) return OC.L10N.translatePlural(app, textSingular, textPlural, count, vars, options)
}, },
}, },

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -99,7 +99,7 @@ export default {
}, },
}, },
watch: { watch: {
'check.operator': function() { 'check.operator'() {
this.validate() this.validate()
}, },
}, },

View File

@ -84,7 +84,7 @@ export default {
this.inputValObjects = this.getValueObject() this.inputValObjects = this.getValueObject()
}, },
}, },
beforeCreate: function() { beforeCreate() {
this.uuid = uuid.toString() this.uuid = uuid.toString()
uuid += 1 uuid += 1
searchTags().then((result) => { searchTags().then((result) => {

View File

@ -60,8 +60,8 @@ export default {
}, },
data() { data() {
return { return {
groups: groups, groups,
status: status, status,
} }
}, },
computed: { computed: {

View File

@ -39,7 +39,7 @@ const valueMixin = {
watch: { watch: {
value: { value: {
immediate: true, immediate: true,
handler: function(value) { handler(value) {
this.updateInternalValue(value) this.updateInternalValue(value)
}, },
}, },

View File

@ -68,14 +68,14 @@ window.OCA.WorkflowEngine = Object.assign({}, OCA.WorkflowEngine, {
* *
* @param {CheckPlugin} Plugin the plugin to register * @param {CheckPlugin} Plugin the plugin to register
*/ */
registerCheck: function(Plugin) { registerCheck(Plugin) {
store.commit('addPluginCheck', Plugin) store.commit('addPluginCheck', Plugin)
}, },
/** /**
* *
* @param {OperatorPlugin} Plugin the plugin to register * @param {OperatorPlugin} Plugin the plugin to register
*/ */
registerOperator: function(Plugin) { registerOperator(Plugin) {
store.commit('addPluginOperator', Plugin) store.commit('addPluginOperator', Plugin)
}, },
}) })

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show More