Merge pull request #22067 from nextcloud/dependabot/npm_and_yarn/various

Dependabot/npm and yarn/various
This commit is contained in:
Morris Jobke 2020-07-31 12:53:45 +02:00 committed by GitHub
commit a2a3b87c19
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
174 changed files with 1692 additions and 23159 deletions

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,4 +0,0 @@
OCA.Accessibility = OCP.InitialState.loadState('accessibility', 'data')
if (OCA.Accessibility.theme !== false) {
document.body.classList.add(OCA.Accessibility.theme);
}

View File

@ -68,7 +68,7 @@ export default {
.replace('{linkend}', '</a>')
},
guidelinesLink() {
return `<a target="_blank" href="https://www.w3.org/WAI/standards-guidelines/wcag/" rel="noreferrer nofollow">`
return '<a target="_blank" href="https://www.w3.org/WAI/standards-guidelines/wcag/" rel="noreferrer nofollow">'
},
descriptionDetail() {
return t(
@ -80,10 +80,10 @@ export default {
.replace(/\{linkend\}/g, '</a>')
},
issuetrackerLink() {
return `<a target="_blank" href="https://github.com/nextcloud/server/issues/" rel="noreferrer nofollow">`
return '<a target="_blank" href="https://github.com/nextcloud/server/issues/" rel="noreferrer nofollow">'
},
designteamLink() {
return `<a target="_blank" href="https://nextcloud.com/design" rel="noreferrer nofollow">`
return '<a target="_blank" href="https://nextcloud.com/design" rel="noreferrer nofollow">'
},
},
methods: {

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 {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') {
return
}
@ -37,7 +37,7 @@
/*
* Copy of CommentsTabView._onClickComment()
*/
_onClickCollapsedComment: function(ev) {
_onClickCollapsedComment(ev) {
let $row = $(ev.target)
if (!$row.is('.comment')) {
$row = $row.closest('.comment')
@ -48,7 +48,7 @@
/*
* Copy of CommentsTabView._isLong()
*/
_isLong: function(message) {
_isLong(message) {
return message.length > 250 || (message.match(/\n/g) || []).length > 1
},
}

View File

@ -40,19 +40,19 @@
},
davProperties: {
'id': OC.Files.Client.PROPERTY_FILEID,
'message': OC.Files.Client.PROPERTY_MESSAGE,
'actorType': OC.Files.Client.PROPERTY_ACTORTYPE,
'actorId': OC.Files.Client.PROPERTY_ACTORID,
'actorDisplayName': OC.Files.Client.PROPERTY_ACTORDISPLAYNAME,
'creationDateTime': OC.Files.Client.PROPERTY_CREATIONDATETIME,
'objectType': OC.Files.Client.PROPERTY_OBJECTTYPE,
'objectId': OC.Files.Client.PROPERTY_OBJECTID,
'isUnread': OC.Files.Client.PROPERTY_ISUNREAD,
'mentions': OC.Files.Client.PROPERTY_MENTIONS,
id: OC.Files.Client.PROPERTY_FILEID,
message: OC.Files.Client.PROPERTY_MESSAGE,
actorType: OC.Files.Client.PROPERTY_ACTORTYPE,
actorId: OC.Files.Client.PROPERTY_ACTORID,
actorDisplayName: OC.Files.Client.PROPERTY_ACTORDISPLAYNAME,
creationDateTime: OC.Files.Client.PROPERTY_CREATIONDATETIME,
objectType: OC.Files.Client.PROPERTY_OBJECTTYPE,
objectId: OC.Files.Client.PROPERTY_OBJECTID,
isUnread: OC.Files.Client.PROPERTY_ISUNREAD,
mentions: OC.Files.Client.PROPERTY_MENTIONS,
},
parse: function(data) {
parse(data) {
return {
id: data.id,
message: data.message,
@ -67,7 +67,7 @@
}
},
_parseMentions: function(mentions) {
_parseMentions(mentions) {
if (_.isUndefined(mentions)) {
return {}
}

View File

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

View File

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

View File

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

View File

@ -71,7 +71,7 @@ export default class Sidebar {
this.#state.views.push(view)
return true
}
console.error(`A similar view already exists`, view)
console.error('A similar view already exists', view)
return false
}

View File

@ -1,4 +1,4 @@
/*
/**
* Copyright (c) 2014 Vincent Petry <pvince81@owncloud.com>
*
* This file is licensed under the Affero General Public License version 3
@ -14,6 +14,7 @@ if (!OCA.Sharing) {
*/
OCA.Sharing = {}
}
/**
* @namespace
*/
@ -24,7 +25,7 @@ OCA.Sharing.App = {
_overviewFileList: null,
_pendingFileList: null,
initSharingIn: function($el) {
initSharingIn($el) {
if (this._inFileList) {
return this._inFileList
}
@ -51,7 +52,7 @@ OCA.Sharing.App = {
return this._inFileList
},
initSharingOut: function($el) {
initSharingOut($el) {
if (this._outFileList) {
return this._outFileList
}
@ -77,7 +78,7 @@ OCA.Sharing.App = {
return this._outFileList
},
initSharingLinks: function($el) {
initSharingLinks($el) {
if (this._linkFileList) {
return this._linkFileList
}
@ -103,7 +104,7 @@ OCA.Sharing.App = {
return this._linkFileList
},
initSharingDeleted: function($el) {
initSharingDeleted($el) {
if (this._deletedFileList) {
return this._deletedFileList
}
@ -131,7 +132,7 @@ OCA.Sharing.App = {
return this._deletedFileList
},
initSharingPening: function($el) {
initSharingPening($el) {
if (this._pendingFileList) {
return this._pendingFileList
}
@ -158,7 +159,7 @@ OCA.Sharing.App = {
return this._pendingFileList
},
initShareingOverview: function($el) {
initShareingOverview($el) {
if (this._overviewFileList) {
return this._overviewFileList
}
@ -183,37 +184,37 @@ OCA.Sharing.App = {
return this._overviewFileList
},
removeSharingIn: function() {
removeSharingIn() {
if (this._inFileList) {
this._inFileList.$fileList.empty()
}
},
removeSharingOut: function() {
removeSharingOut() {
if (this._outFileList) {
this._outFileList.$fileList.empty()
}
},
removeSharingLinks: function() {
removeSharingLinks() {
if (this._linkFileList) {
this._linkFileList.$fileList.empty()
}
},
removeSharingDeleted: function() {
removeSharingDeleted() {
if (this._deletedFileList) {
this._deletedFileList.$fileList.empty()
}
},
removeSharingPending: function() {
removeSharingPending() {
if (this._pendingFileList) {
this._pendingFileList.$fileList.empty()
}
},
removeSharingOverview: function() {
removeSharingOverview() {
if (this._overviewFileList) {
this._overviewFileList.$fileList.empty()
}
@ -222,7 +223,7 @@ OCA.Sharing.App = {
/**
* Destroy the app
*/
destroy: function() {
destroy() {
OCA.Files.fileActions.off('setDefault.app-sharing', this._onActionsUpdated)
OCA.Files.fileActions.off('registerAction.app-sharing', this._onActionsUpdated)
this.removeSharingIn()
@ -235,7 +236,7 @@ OCA.Sharing.App = {
delete this._globalActionsInitialized
},
_createFileActions: function() {
_createFileActions() {
// inherit file actions from the files app
const fileActions = new OCA.Files.FileActions()
// note: not merging the legacy actions because legacy apps are not
@ -261,7 +262,7 @@ OCA.Sharing.App = {
return fileActions
},
_restoreShareAction: function() {
_restoreShareAction() {
const fileActions = new OCA.Files.FileActions()
fileActions.registerAction({
name: 'Restore',
@ -271,7 +272,7 @@ OCA.Sharing.App = {
permissions: OC.PERMISSION_ALL,
iconClass: 'icon-history',
type: OCA.Files.FileActions.TYPE_INLINE,
actionHandler: function(fileName, context) {
actionHandler(fileName, context) {
const shareId = context.$file.data('shareId')
$.post(OC.linkToOCS('apps/files_sharing/api/v1/deletedshares', 2) + shareId)
.success(function(result) {
@ -284,7 +285,7 @@ OCA.Sharing.App = {
return fileActions
},
_acceptShareAction: function() {
_acceptShareAction() {
const fileActions = new OCA.Files.FileActions()
fileActions.registerAction({
name: 'Accept share',
@ -293,7 +294,7 @@ OCA.Sharing.App = {
permissions: OC.PERMISSION_ALL,
iconClass: 'icon-checkmark',
type: OCA.Files.FileActions.TYPE_INLINE,
actionHandler: function(fileName, context) {
actionHandler(fileName, context) {
const shareId = context.$file.data('shareId')
$.post(OC.linkToOCS('apps/files_sharing/api/v1/shares/pending', 2) + shareId)
.success(function(result) {
@ -310,7 +311,7 @@ OCA.Sharing.App = {
permissions: OC.PERMISSION_ALL,
iconClass: 'icon-close',
type: OCA.Files.FileActions.TYPE_INLINE,
actionHandler: function(fileName, context) {
actionHandler(fileName, context) {
const shareId = context.$file.data('shareId')
$.ajax({
url: OC.linkToOCS('apps/files_sharing/api/v1/shares', 2) + shareId,
@ -325,7 +326,7 @@ OCA.Sharing.App = {
return fileActions
},
_onActionsUpdated: function(ev) {
_onActionsUpdated(ev) {
_.each([this._inFileList, this._outFileList, this._linkFileList], function(list) {
if (!list) {
return
@ -342,7 +343,7 @@ OCA.Sharing.App = {
})
},
_extendFileList: function(fileList) {
_extendFileList(fileList) {
// remove size column from summary
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

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

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

@ -268,10 +268,10 @@ export default {
* Can the sharee edit the shared file ?
*/
canEdit: {
get: function() {
get() {
return this.share.hasUpdatePermission
},
set: function(checked) {
set(checked) {
this.updatePermissions({ isEditChecked: checked })
},
},
@ -280,10 +280,10 @@ export default {
* Can the sharee create the shared file ?
*/
canCreate: {
get: function() {
get() {
return this.share.hasCreatePermission
},
set: function(checked) {
set(checked) {
this.updatePermissions({ isCreateChecked: checked })
},
},
@ -292,10 +292,10 @@ export default {
* Can the sharee delete the shared file ?
*/
canDelete: {
get: function() {
get() {
return this.share.hasDeletePermission
},
set: function(checked) {
set(checked) {
this.updatePermissions({ isDeleteChecked: checked })
},
},
@ -304,10 +304,10 @@ export default {
* Can the sharee reshare the file ?
*/
canReshare: {
get: function() {
get() {
return this.share.hasSharePermission
},
set: function(checked) {
set(checked) {
this.updatePermissions({ isReshareChecked: checked })
},
},
@ -325,10 +325,10 @@ export default {
* @returns {boolean}
*/
hasExpirationDate: {
get: function() {
get() {
return this.config.isDefaultInternalExpireDateEnforced || !!this.share.expireDate
},
set: function(enabled) {
set(enabled) {
this.share.expireDate = enabled
? this.config.defaultInternalExpirationDateString !== ''
? this.config.defaultInternalExpirationDateString

View File

@ -469,7 +469,7 @@ export default {
* @returns {boolean}
*/
isTalkEnabled() {
return OC.appswebroots['spreed'] !== undefined
return OC.appswebroots.spreed !== undefined
},
/**
@ -485,10 +485,10 @@ export default {
* @returns {boolean}
*/
isPasswordProtectedByTalk: {
get: function() {
get() {
return this.share.sendPasswordByTalk
},
set: async function(enabled) {
async set(enabled) {
this.share.sendPasswordByTalk = enabled
},
},
@ -535,10 +535,10 @@ export default {
* @returns {boolean}
*/
canUpdate: {
get: function() {
get() {
return this.share.hasUpdatePermission
},
set: function(enabled) {
set(enabled) {
this.share.permissions = enabled
? OC.PERMISSION_READ | OC.PERMISSION_UPDATE
: OC.PERMISSION_READ

View File

@ -194,7 +194,7 @@ export default {
this.SHARE_TYPES.SHARE_TYPE_GUEST,
]
if (OC.getCapabilities()['files_sharing']['public']['enabled'] === true) {
if (OC.getCapabilities().files_sharing.public.enabled === true) {
shareType.push(this.SHARE_TYPES.SHARE_TYPE_EMAIL)
}

View File

@ -3,5 +3,6 @@ import '../js/sharedfilelist'
// eslint-disable-next-line camelcase
__webpack_nonce__ = btoa(OC.requestToken)
// eslint-disable-next-line camelcase
__webpack_public_path__ = OC.linkTo('files_sharing', 'js/dist/')

View File

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

View File

@ -226,7 +226,7 @@ export default class Config {
* @memberof Config
*/
get isPasswordForMailSharesRequired() {
return (OC.getCapabilities()['files_sharing']['sharebymail'] === undefined) ? false : OC.getCapabilities()['files_sharing']['sharebymail']['password']['enforced']
return (OC.getCapabilities().files_sharing.sharebymail === undefined) ? false : OC.getCapabilities().files_sharing.sharebymail.password.enforced
}
/**

View File

@ -56,7 +56,7 @@ export default class ExternalLinkActions {
this.#state.actions.push(action)
return true
}
console.error(`Invalid action provided`, action)
console.error('Invalid action provided', action)
return false
}

View File

@ -64,7 +64,7 @@ export default class ShareSearch {
this.#state.results.push(result)
return true
}
console.error(`Invalid search result provided`, result)
console.error('Invalid search result provided', result)
return false
}

View File

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

View File

@ -77,7 +77,7 @@ export default {
data() {
return {
canLinkShare: OC.getCapabilities()['files_sharing']['public']['enabled'],
canLinkShare: OC.getCapabilities().files_sharing.public.enabled,
}
},

File diff suppressed because one or more lines are too long

View File

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

File diff suppressed because one or more lines are too long

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
*/
attach: function(fileList) {
attach(fileList) {
if (fileList.id === 'trashbin' || fileList.id === 'files.public') {
return
}

View File

@ -25,27 +25,27 @@
_client: null,
setFileInfo: function(fileInfo) {
setFileInfo(fileInfo) {
this._fileInfo = fileInfo
},
getFileInfo: function() {
getFileInfo() {
return this._fileInfo
},
setCurrentUser: function(user) {
setCurrentUser(user) {
this._currentUser = user
},
getCurrentUser: function() {
getCurrentUser() {
return this._currentUser || OC.getCurrentUser().uid
},
setClient: function(client) {
setClient(client) {
this._client = client
},
getClient: function() {
getClient() {
return this._client || new OC.Files.Client({
host: OC.getHost(),
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')
},
parse: function(result) {
parse(result) {
const fullPath = this._fileInfo.getFullPath()
const fileId = this._fileInfo.get('id')
const name = this._fileInfo.get('name')

View File

@ -16,9 +16,9 @@
sync: OC.Backbone.davSync,
davProperties: {
'size': '{DAV:}getcontentlength',
'mimetype': '{DAV:}getcontenttype',
'timestamp': '{DAV:}getlastmodified',
size: '{DAV:}getcontentlength',
mimetype: '{DAV:}getcontenttype',
timestamp: '{DAV:}getlastmodified',
},
/**
@ -27,7 +27,7 @@
* @param {Object} [options] options
* @returns {Promise}
*/
revert: function(options) {
revert(options) {
options = options ? _.clone(options) : {}
const model = this
@ -48,11 +48,11 @@
})
},
getFullPath: function() {
getFullPath() {
return this.get('fullPath')
},
getPreviewUrl: function() {
getPreviewUrl() {
const url = OC.generateUrl('/apps/files_versions/preview')
const params = {
file: this.get('fullPath'),
@ -61,7 +61,7 @@
return url + '?' + OC.buildQueryString(params)
},
getDownloadUrl: function() {
getDownloadUrl() {
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',
},
initialize: function() {
initialize() {
OCA.Files.DetailTabView.prototype.initialize.apply(this, arguments)
this.collection = new OCA.Versions.VersionCollection()
this.collection.on('request', this._onRequest, this)
@ -37,15 +37,15 @@ import Template from './templates/template.handlebars';
this.collection.on('add', this._onAddModel, this)
},
getLabel: function() {
getLabel() {
return t('files_versions', 'Versions')
},
getIcon: function() {
getIcon() {
return 'icon-history'
},
nextPage: function() {
nextPage() {
if (this._loading) {
return
}
@ -56,7 +56,7 @@ import Template from './templates/template.handlebars';
this.collection.fetch()
},
_onClickRevertVersion: function(ev) {
_onClickRevertVersion(ev) {
const self = this
let $target = $(ev.target)
const fileInfoModel = this.collection.getFileInfo()
@ -69,7 +69,7 @@ import Template from './templates/template.handlebars';
const versionModel = this.collection.get(revision)
versionModel.revert({
success: function() {
success() {
// reset and re-fetch the updated collection
self.$versionsContainer.empty()
self.collection.setFileInfo(fileInfoModel)
@ -88,7 +88,7 @@ import Template from './templates/template.handlebars';
})
},
error: function() {
error() {
fileInfoModel.trigger('busy', fileInfoModel, false)
self.$el.find('.versions').removeClass('hidden')
self._toggleLoading(false)
@ -109,35 +109,35 @@ import Template from './templates/template.handlebars';
fileInfoModel.trigger('busy', fileInfoModel, true)
},
_toggleLoading: function(state) {
_toggleLoading(state) {
this._loading = state
this.$el.find('.loading').toggleClass('hidden', !state)
},
_onRequest: function() {
_onRequest() {
this._toggleLoading(true)
},
_onEndRequest: function() {
_onEndRequest() {
this._toggleLoading(false)
this.$el.find('.empty').toggleClass('hidden', !!this.collection.length)
},
_onAddModel: function(model) {
_onAddModel(model) {
const $el = $(this.itemTemplate(this._formatItem(model)))
this.$versionsContainer.append($el)
$el.find('.has-tooltip').tooltip()
},
template: function(data) {
template(data) {
return Template(data)
},
itemTemplate: function(data) {
itemTemplate(data) {
return ItemTemplate(data)
},
setFileInfo: function(fileInfo) {
setFileInfo(fileInfo) {
if (fileInfo) {
this.render()
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 size = version.has('size') ? version.get('size') : 0
const preview = OC.MimeType.getIconUrl(version.get('mimetype'))
@ -180,7 +180,7 @@ import Template from './templates/template.handlebars';
/**
* Renders this details view
*/
render: function() {
render() {
this.$el.html(this.template({
emptyResultLabel: t('files_versions', 'No other versions available'),
}))
@ -194,7 +194,7 @@ import Template from './templates/template.handlebars';
* @param {FileInfo} fileInfo fileInfo
* @returns {bool} true for files, false for folders
*/
canDisplay: function(fileInfo) {
canDisplay(fileInfo) {
if (!fileInfo) {
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,
},
},
data: function() {
data() {
return {
newClient: {
name: '',
@ -100,7 +100,7 @@ export default {
},
methods: {
deleteClient(id) {
axios.delete(generateUrl('apps/oauth2/clients/{id}', { id: id }))
axios.delete(generateUrl('apps/oauth2/clients/{id}', { id }))
.then((response) => {
this.clients = this.clients.filter(client => client.id !== id)
})

View File

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

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 it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

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

@ -1,375 +0,0 @@
(window["webpackJsonpSettings"] = window["webpackJsonpSettings"] || []).push([["editor-collab"],{
/***/ "./apps/text/src/components/SessionList.vue":
/*!**************************************************!*\
!*** ./apps/text/src/components/SessionList.vue ***!
\**************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _SessionList_vue_vue_type_template_id_32621e4e_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./SessionList.vue?vue&type=template&id=32621e4e&scoped=true& */ "./apps/text/src/components/SessionList.vue?vue&type=template&id=32621e4e&scoped=true&");
/* harmony import */ var _SessionList_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./SessionList.vue?vue&type=script&lang=js& */ "./apps/text/src/components/SessionList.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport *//* harmony import */ var _SessionList_vue_vue_type_style_index_0_id_32621e4e_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./SessionList.vue?vue&type=style&index=0&id=32621e4e&scoped=true&lang=scss& */ "./apps/text/src/components/SessionList.vue?vue&type=style&index=0&id=32621e4e&scoped=true&lang=scss&");
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
/* normalize component */
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
_SessionList_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_SessionList_vue_vue_type_template_id_32621e4e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
_SessionList_vue_vue_type_template_id_32621e4e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
"32621e4e",
null
)
/* hot reload */
if (false) { var api; }
component.options.__file = "apps/text/src/components/SessionList.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "./apps/text/src/components/SessionList.vue?vue&type=script&lang=js&":
/*!***************************************************************************!*\
!*** ./apps/text/src/components/SessionList.vue?vue&type=script&lang=js& ***!
\***************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_SessionList_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib!../../../../node_modules/vue-loader/lib??vue-loader-options!./SessionList.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/SessionList.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_SessionList_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./apps/text/src/components/SessionList.vue?vue&type=style&index=0&id=32621e4e&scoped=true&lang=scss&":
/*!************************************************************************************************************!*\
!*** ./apps/text/src/components/SessionList.vue?vue&type=style&index=0&id=32621e4e&scoped=true&lang=scss& ***!
\************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__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_SessionList_vue_vue_type_style_index_0_id_32621e4e_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!./SessionList.vue?vue&type=style&index=0&id=32621e4e&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/text/src/components/SessionList.vue?vue&type=style&index=0&id=32621e4e&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_SessionList_vue_vue_type_style_index_0_id_32621e4e_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_SessionList_vue_vue_type_style_index_0_id_32621e4e_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_SessionList_vue_vue_type_style_index_0_id_32621e4e_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_SessionList_vue_vue_type_style_index_0_id_32621e4e_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_SessionList_vue_vue_type_style_index_0_id_32621e4e_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ "./apps/text/src/components/SessionList.vue?vue&type=template&id=32621e4e&scoped=true&":
/*!*********************************************************************************************!*\
!*** ./apps/text/src/components/SessionList.vue?vue&type=template&id=32621e4e&scoped=true& ***!
\*********************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_SessionList_vue_vue_type_template_id_32621e4e_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./SessionList.vue?vue&type=template&id=32621e4e&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/SessionList.vue?vue&type=template&id=32621e4e&scoped=true&");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_SessionList_vue_vue_type_template_id_32621e4e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_SessionList_vue_vue_type_template_id_32621e4e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/***/ }),
/***/ "./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/SessionList.vue?vue&type=script&lang=js&":
/*!*************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./apps/text/src/components/SessionList.vue?vue&type=script&lang=js& ***!
\*************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _nextcloud_vue_dist_Components_Avatar__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @nextcloud/vue/dist/Components/Avatar */ "./node_modules/@nextcloud/vue/dist/Components/Avatar.js");
/* harmony import */ var _nextcloud_vue_dist_Components_Avatar__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_nextcloud_vue_dist_Components_Avatar__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _nextcloud_vue_dist_Components_PopoverMenu__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @nextcloud/vue/dist/Components/PopoverMenu */ "./node_modules/@nextcloud/vue/dist/Components/PopoverMenu.js");
/* harmony import */ var _nextcloud_vue_dist_Components_PopoverMenu__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_nextcloud_vue_dist_Components_PopoverMenu__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var _nextcloud_vue_dist_Directives_Tooltip__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @nextcloud/vue/dist/Directives/Tooltip */ "./node_modules/@nextcloud/vue/dist/Directives/Tooltip.js");
/* harmony import */ var _nextcloud_vue_dist_Directives_Tooltip__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_nextcloud_vue_dist_Directives_Tooltip__WEBPACK_IMPORTED_MODULE_2__);
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(n); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter); }
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var COLLABORATOR_IDLE_TIME = 10;
var COLLABORATOR_DISCONNECT_TIME = 30;
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'SessionList',
components: {
Avatar: _nextcloud_vue_dist_Components_Avatar__WEBPACK_IMPORTED_MODULE_0___default.a,
PopoverMenu: _nextcloud_vue_dist_Components_PopoverMenu__WEBPACK_IMPORTED_MODULE_1___default.a
},
directives: {
tooltip: _nextcloud_vue_dist_Directives_Tooltip__WEBPACK_IMPORTED_MODULE_2___default.a
},
props: {
sessions: {
type: Object,
default: function _default() {
return {};
}
}
},
data: function data() {
return {
popoverVisible: '',
myName: ''
};
},
computed: {
editorsTooltip: function editorsTooltip() {
if (this.sessionsPopover.length > 0) {
var first = this.activeSessions.slice(0, 3).map(function (session) {
return session.guestName ? session.guestName : session.displayName;
}).join(', ');
var others = this.activeSessions.slice(3).length;
return first + ' ' + n('text', 'and %n other editor', 'and %n other editors', others);
}
return this.activeSessions.slice(0, 3).map(function (session) {
return session.guestName ? session.guestName : session.displayName;
}).join(', ');
},
avatarUrl: function avatarUrl() {
return function (session) {
var user = !session.guestName ? session.userId : session.guestName;
var size = 32;
var guest = !!session.guestName;
var avatarUrl = OC.generateUrl(guest ? '/avatar/guest/{user}/{size}' : '/avatar/{user}/{size}', {
user: user,
size: size
});
return window.location.protocol + '//' + window.location.host + avatarUrl;
};
},
activeSessions: function activeSessions() {
return Object.values(this.sessions).filter(function (session) {
return session.lastContact > Date.now() / 1000 - COLLABORATOR_DISCONNECT_TIME && !session.isCurrent && (session.userId !== null || session.guestName !== null);
});
},
currentSession: function currentSession() {
return Object.values(this.sessions).find(function (session) {
return session.isCurrent;
});
},
sessionStyle: function sessionStyle() {
return function (session) {
return {
'opacity': session.lastContact > Date.now() / 1000 - COLLABORATOR_IDLE_TIME ? 1 : 0.5 // 'border-color': session.color
};
};
},
sessionsVisible: function sessionsVisible() {
return this.activeSessions.slice(0, 3);
},
sessionsPopover: function sessionsPopover() {
var _this = this;
return _toConsumableArray(this.activeSessions.slice(3).map(function (session) {
return {
href: '#',
icon: _this.avatarUrl(session),
text: session.guestName ? session.guestName : session.displayName
};
}));
}
},
methods: {}
});
/***/ }),
/***/ "./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/text/src/components/SessionList.vue?vue&type=style&index=0&id=32621e4e&scoped=true&lang=scss&":
/*!****************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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!./apps/text/src/components/SessionList.vue?vue&type=style&index=0&id=32621e4e&scoped=true&lang=scss& ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// Imports
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);
// Module
exports.push([module.i, ".session-list[data-v-32621e4e] {\n position: relative;\n}\n.session-list[data-v-32621e4e] .popovermenu {\n margin-right: -4px;\n}\n.session-list[data-v-32621e4e] .popovermenu img {\n padding: 0;\n width: 32px !important;\n height: 32px !important;\n margin: 6px;\n border-radius: 50%;\n}\n.avatar-list[data-v-32621e4e] {\n display: inline-flex;\n flex-direction: row-reverse;\n}\n.avatar-list .avatardiv[data-v-32621e4e],\n .avatar-list[data-v-32621e4e] .avatardiv {\n width: 36px;\n height: 36px;\n margin-right: -8px;\n border: 2px solid var(--color-main-background);\n background-color: var(--color-main-background) !important;\n box-sizing: content-box !important;\n}\n.avatar-list .avatardiv.icon-more[data-v-32621e4e],\n .avatar-list[data-v-32621e4e] .avatardiv.icon-more {\n width: 32px;\n height: 32px;\n opacity: .5;\n background-color: var(--color-background-dark) !important;\n cursor: pointer;\n}\n.popovermenu[data-v-32621e4e] {\n display: block;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/SessionList.vue?vue&type=template&id=32621e4e&scoped=true&":
/*!***************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./apps/text/src/components/SessionList.vue?vue&type=template&id=32621e4e&scoped=true& ***!
\***************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("div", { staticClass: "session-list" }, [
_c(
"div",
{
directives: [
{
name: "tooltip",
rawName: "v-tooltip.bottom",
value: _vm.editorsTooltip,
expression: "editorsTooltip",
modifiers: { bottom: true }
}
],
staticClass: "avatar-list",
on: {
click: function($event) {
_vm.popoverVisible = !_vm.popoverVisible
}
}
},
[
_vm.sessionsPopover.length > 0
? _c("div", { staticClass: "avatardiv icon-more" })
: _vm._e(),
_vm._v(" "),
_vm._l(_vm.sessionsVisible, function(session) {
return _c("Avatar", {
key: session.id,
style: _vm.sessionStyle(session),
attrs: {
user: session.userId ? session.userId : session.guestName,
"is-guest": session.userId === null,
"disable-tooltip": true,
size: 32
}
})
})
],
2
),
_vm._v(" "),
_c(
"div",
{
directives: [
{
name: "show",
rawName: "v-show",
value: _vm.popoverVisible,
expression: "popoverVisible"
}
],
staticClass: "popovermenu menu-right"
},
[
_c("PopoverMenu", { attrs: { menu: _vm.sessionsPopover } }),
_vm._v(" "),
_vm._t("default")
],
2
)
])
}
var staticRenderFns = []
render._withStripped = 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/text/src/components/SessionList.vue?vue&type=style&index=0&id=32621e4e&scoped=true&lang=scss&":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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!./apps/text/src/components/SessionList.vue?vue&type=style&index=0&id=32621e4e&scoped=true&lang=scss& ***!
\************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__(/*! !../../../../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!./SessionList.vue?vue&type=style&index=0&id=32621e4e&scoped=true&lang=scss& */ "./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/text/src/components/SessionList.vue?vue&type=style&index=0&id=32621e4e&scoped=true&lang=scss&");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(/*! ../../../../node_modules/vue-style-loader/lib/addStylesClient.js */ "./node_modules/vue-style-loader/lib/addStylesClient.js").default
var update = add("ddf5505e", content, false, {});
// Hot Module Replacement
if(false) {}
/***/ })
}]);
//# sourceMappingURL=vue-editor-collab.js.map?v=ea46162cd01c4d879032

File diff suppressed because one or more lines are too long

View File

@ -1,317 +0,0 @@
(window["webpackJsonpSettings"] = window["webpackJsonpSettings"] || []).push([["editor-guest"],{
/***/ "./apps/text/src/components/GuestNameDialog.vue":
/*!******************************************************!*\
!*** ./apps/text/src/components/GuestNameDialog.vue ***!
\******************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _GuestNameDialog_vue_vue_type_template_id_0eec23a0_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GuestNameDialog.vue?vue&type=template&id=0eec23a0&scoped=true& */ "./apps/text/src/components/GuestNameDialog.vue?vue&type=template&id=0eec23a0&scoped=true&");
/* harmony import */ var _GuestNameDialog_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GuestNameDialog.vue?vue&type=script&lang=js& */ "./apps/text/src/components/GuestNameDialog.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport *//* harmony import */ var _GuestNameDialog_vue_vue_type_style_index_0_id_0eec23a0_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss& */ "./apps/text/src/components/GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss&");
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
/* normalize component */
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
_GuestNameDialog_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_GuestNameDialog_vue_vue_type_template_id_0eec23a0_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
_GuestNameDialog_vue_vue_type_template_id_0eec23a0_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
"0eec23a0",
null
)
/* hot reload */
if (false) { var api; }
component.options.__file = "apps/text/src/components/GuestNameDialog.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "./apps/text/src/components/GuestNameDialog.vue?vue&type=script&lang=js&":
/*!*******************************************************************************!*\
!*** ./apps/text/src/components/GuestNameDialog.vue?vue&type=script&lang=js& ***!
\*******************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_GuestNameDialog_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib!../../../../node_modules/vue-loader/lib??vue-loader-options!./GuestNameDialog.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/GuestNameDialog.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_GuestNameDialog_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./apps/text/src/components/GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss&":
/*!****************************************************************************************************************!*\
!*** ./apps/text/src/components/GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss& ***!
\****************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__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_GuestNameDialog_vue_vue_type_style_index_0_id_0eec23a0_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!./GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&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/text/src/components/GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&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_GuestNameDialog_vue_vue_type_style_index_0_id_0eec23a0_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_GuestNameDialog_vue_vue_type_style_index_0_id_0eec23a0_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_GuestNameDialog_vue_vue_type_style_index_0_id_0eec23a0_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_GuestNameDialog_vue_vue_type_style_index_0_id_0eec23a0_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_GuestNameDialog_vue_vue_type_style_index_0_id_0eec23a0_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ "./apps/text/src/components/GuestNameDialog.vue?vue&type=template&id=0eec23a0&scoped=true&":
/*!*************************************************************************************************!*\
!*** ./apps/text/src/components/GuestNameDialog.vue?vue&type=template&id=0eec23a0&scoped=true& ***!
\*************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_GuestNameDialog_vue_vue_type_template_id_0eec23a0_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./GuestNameDialog.vue?vue&type=template&id=0eec23a0&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/GuestNameDialog.vue?vue&type=template&id=0eec23a0&scoped=true&");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_GuestNameDialog_vue_vue_type_template_id_0eec23a0_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_GuestNameDialog_vue_vue_type_template_id_0eec23a0_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/***/ }),
/***/ "./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/GuestNameDialog.vue?vue&type=script&lang=js&":
/*!*****************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./apps/text/src/components/GuestNameDialog.vue?vue&type=script&lang=js& ***!
\*****************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _nextcloud_vue_dist_Directives_Tooltip__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @nextcloud/vue/dist/Directives/Tooltip */ "./node_modules/@nextcloud/vue/dist/Directives/Tooltip.js");
/* harmony import */ var _nextcloud_vue_dist_Directives_Tooltip__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_nextcloud_vue_dist_Directives_Tooltip__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _nextcloud_vue_dist_Components_Avatar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @nextcloud/vue/dist/Components/Avatar */ "./node_modules/@nextcloud/vue/dist/Components/Avatar.js");
/* harmony import */ var _nextcloud_vue_dist_Components_Avatar__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_nextcloud_vue_dist_Components_Avatar__WEBPACK_IMPORTED_MODULE_1__);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'GuestNameDialog',
components: {
Avatar: _nextcloud_vue_dist_Components_Avatar__WEBPACK_IMPORTED_MODULE_1___default.a
},
directives: {
tooltip: _nextcloud_vue_dist_Directives_Tooltip__WEBPACK_IMPORTED_MODULE_0___default.a
},
props: {
syncService: {
type: Object,
default: null
}
},
data: function data() {
return {
guestName: '',
guestNameBuffered: ''
};
},
computed: {
avatarUrl: function avatarUrl() {
var size = 32;
var avatarUrl = OC.generateUrl('/avatar/guest/{user}/{size}', {
user: this.guestNameBuffered,
size: size
});
return window.location.protocol + '//' + window.location.host + avatarUrl;
}
},
beforeMount: function beforeMount() {
this.guestName = this.syncService.session.guestName;
this.updateBufferedGuestName();
},
methods: {
setGuestName: function setGuestName() {
var _this = this;
var previousGuestName = this.syncService.session.guestName;
this.syncService.updateSession(this.guestName).then(function () {
localStorage.setItem('nick', _this.guestName);
_this.updateBufferedGuestName();
}).catch(function (e) {
_this.guestName = previousGuestName;
});
},
updateBufferedGuestName: function updateBufferedGuestName() {
this.guestNameBuffered = this.guestName;
}
}
});
/***/ }),
/***/ "./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/text/src/components/GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss&":
/*!********************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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!./apps/text/src/components/GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss& ***!
\********************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// Imports
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);
// Module
exports.push([module.i, "form.guest-name-dialog[data-v-0eec23a0] {\n display: flex;\n max-width: 200px;\n margin: auto;\n margin-top: -2px;\n padding: 3px;\n}\nform.guest-name-dialog[data-v-0eec23a0] img {\n margin: 0 !important;\n}\nform.guest-name-dialog input[type=text][data-v-0eec23a0] {\n flex-grow: 1;\n}\nform.guest-name-dialog label[data-v-0eec23a0] {\n padding: 3px;\n height: 32px;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/GuestNameDialog.vue?vue&type=template&id=0eec23a0&scoped=true&":
/*!*******************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./apps/text/src/components/GuestNameDialog.vue?vue&type=template&id=0eec23a0&scoped=true& ***!
\*******************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c(
"form",
{
directives: [
{
name: "tooltip",
rawName: "v-tooltip",
value: _vm.t(
"text",
"Enter your name so other users can see who is editing"
),
expression:
"t('text', 'Enter your name so other users can see who is editing')"
}
],
staticClass: "guest-name-dialog",
on: {
submit: function($event) {
$event.preventDefault()
return _vm.setGuestName()
}
}
},
[
_c(
"label",
[
_c("Avatar", {
attrs: { url: _vm.avatarUrl, "disable-tooltip": true, size: 32 }
})
],
1
),
_vm._v(" "),
_c("input", {
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.guestName,
expression: "guestName"
}
],
attrs: { type: "text", "aria-label": _vm.t("text", "Edit guest name") },
domProps: { value: _vm.guestName },
on: {
input: function($event) {
if ($event.target.composing) {
return
}
_vm.guestName = $event.target.value
}
}
}),
_vm._v(" "),
_c("input", {
staticClass: "icon-confirm",
attrs: {
type: "submit",
"aria-label": _vm.t("text", "Save guest name")
}
})
]
)
}
var staticRenderFns = []
render._withStripped = 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/text/src/components/GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss&":
/*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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!./apps/text/src/components/GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss& ***!
\****************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__(/*! !../../../../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!./GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss& */ "./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/text/src/components/GuestNameDialog.vue?vue&type=style&index=0&id=0eec23a0&scoped=true&lang=scss&");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(/*! ../../../../node_modules/vue-style-loader/lib/addStylesClient.js */ "./node_modules/vue-style-loader/lib/addStylesClient.js").default
var update = add("842bd5d8", content, false, {});
// Hot Module Replacement
if(false) {}
/***/ })
}]);
//# sourceMappingURL=vue-editor-guest.js.map?v=33f8317f810f63e13a76

File diff suppressed because one or more lines are too long

View File

@ -1,393 +0,0 @@
(window["webpackJsonpSettings"] = window["webpackJsonpSettings"] || []).push([["editor-rich"],{
/***/ "./apps/text/src/components/MenuBubble.vue":
/*!*************************************************!*\
!*** ./apps/text/src/components/MenuBubble.vue ***!
\*************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _MenuBubble_vue_vue_type_template_id_48157a56_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MenuBubble.vue?vue&type=template&id=48157a56&scoped=true& */ "./apps/text/src/components/MenuBubble.vue?vue&type=template&id=48157a56&scoped=true&");
/* harmony import */ var _MenuBubble_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MenuBubble.vue?vue&type=script&lang=js& */ "./apps/text/src/components/MenuBubble.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport *//* harmony import */ var _MenuBubble_vue_vue_type_style_index_0_id_48157a56_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./MenuBubble.vue?vue&type=style&index=0&id=48157a56&scoped=true&lang=scss& */ "./apps/text/src/components/MenuBubble.vue?vue&type=style&index=0&id=48157a56&scoped=true&lang=scss&");
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
/* normalize component */
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
_MenuBubble_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_MenuBubble_vue_vue_type_template_id_48157a56_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
_MenuBubble_vue_vue_type_template_id_48157a56_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
"48157a56",
null
)
/* hot reload */
if (false) { var api; }
component.options.__file = "apps/text/src/components/MenuBubble.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "./apps/text/src/components/MenuBubble.vue?vue&type=script&lang=js&":
/*!**************************************************************************!*\
!*** ./apps/text/src/components/MenuBubble.vue?vue&type=script&lang=js& ***!
\**************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuBubble_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib!../../../../node_modules/vue-loader/lib??vue-loader-options!./MenuBubble.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/MenuBubble.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuBubble_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./apps/text/src/components/MenuBubble.vue?vue&type=style&index=0&id=48157a56&scoped=true&lang=scss&":
/*!***********************************************************************************************************!*\
!*** ./apps/text/src/components/MenuBubble.vue?vue&type=style&index=0&id=48157a56&scoped=true&lang=scss& ***!
\***********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__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_MenuBubble_vue_vue_type_style_index_0_id_48157a56_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!./MenuBubble.vue?vue&type=style&index=0&id=48157a56&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/text/src/components/MenuBubble.vue?vue&type=style&index=0&id=48157a56&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_MenuBubble_vue_vue_type_style_index_0_id_48157a56_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_MenuBubble_vue_vue_type_style_index_0_id_48157a56_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_MenuBubble_vue_vue_type_style_index_0_id_48157a56_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_MenuBubble_vue_vue_type_style_index_0_id_48157a56_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_MenuBubble_vue_vue_type_style_index_0_id_48157a56_scoped_true_lang_scss___WEBPACK_IMPORTED_MODULE_0___default.a);
/***/ }),
/***/ "./apps/text/src/components/MenuBubble.vue?vue&type=template&id=48157a56&scoped=true&":
/*!********************************************************************************************!*\
!*** ./apps/text/src/components/MenuBubble.vue?vue&type=template&id=48157a56&scoped=true& ***!
\********************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuBubble_vue_vue_type_template_id_48157a56_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./MenuBubble.vue?vue&type=template&id=48157a56&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/MenuBubble.vue?vue&type=template&id=48157a56&scoped=true&");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuBubble_vue_vue_type_template_id_48157a56_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_MenuBubble_vue_vue_type_template_id_48157a56_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/***/ }),
/***/ "./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/MenuBubble.vue?vue&type=script&lang=js&":
/*!************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./apps/text/src/components/MenuBubble.vue?vue&type=script&lang=js& ***!
\************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
!(function webpackMissingModule() { var e = new Error("Cannot find module 'tiptap'"); e.code = 'MODULE_NOT_FOUND'; throw e; }());
/* harmony import */ var _nextcloud_vue_dist_Directives_Tooltip__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @nextcloud/vue/dist/Directives/Tooltip */ "./node_modules/@nextcloud/vue/dist/Directives/Tooltip.js");
/* harmony import */ var _nextcloud_vue_dist_Directives_Tooltip__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_nextcloud_vue_dist_Directives_Tooltip__WEBPACK_IMPORTED_MODULE_1__);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'MenuBubble',
components: {
EditorMenuBubble: !(function webpackMissingModule() { var e = new Error("Cannot find module 'tiptap'"); e.code = 'MODULE_NOT_FOUND'; throw e; }())
},
directives: {
tooltip: _nextcloud_vue_dist_Directives_Tooltip__WEBPACK_IMPORTED_MODULE_1___default.a
},
props: {
editor: {
type: Object,
required: false,
default: null
}
},
data: function data() {
return {
linkUrl: null,
linkMenuIsActive: false
};
},
methods: {
showLinkMenu: function showLinkMenu(attrs) {
var _this = this;
this.linkUrl = attrs.href;
this.linkMenuIsActive = true;
this.$nextTick(function () {
_this.$refs.linkInput.focus();
});
},
hideLinkMenu: function hideLinkMenu() {
this.linkUrl = null;
this.linkMenuIsActive = false;
},
setLinkUrl: function setLinkUrl(command, url) {
if (url && !url.match(/^[a-zA-Z]+:\/\//) && !url.match(/^\//)) {
url = 'https://' + url;
}
command({
href: url
});
this.hideLinkMenu();
}
}
});
/***/ }),
/***/ "./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/text/src/components/MenuBubble.vue?vue&type=style&index=0&id=48157a56&scoped=true&lang=scss&":
/*!***************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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!./apps/text/src/components/MenuBubble.vue?vue&type=style&index=0&id=48157a56&scoped=true&lang=scss& ***!
\***************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// Imports
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);
// Module
exports.push([module.i, ".menububble[data-v-48157a56] {\n position: absolute;\n display: flex;\n z-index: 10020;\n background: var(--color-main-background-translucent);\n box-shadow: 0 1px 5px var(--color-box-shadow);\n border-radius: var(--border-radius);\n padding: 0;\n margin-bottom: 0.4rem;\n visibility: hidden;\n opacity: 0;\n transform: translateX(-50%);\n transition: opacity 0.2s, visibility 0.2s;\n}\n.menububble.is-active[data-v-48157a56] {\n opacity: 1;\n visibility: visible;\n}\n.menububble__button[data-v-48157a56] {\n display: block;\n border: 0;\n padding: 0.3rem 0.7rem;\n margin: 0;\n margin-right: 0.2rem;\n border-radius: var(--border-radius);\n cursor: pointer;\n}\n.menububble__button[data-v-48157a56]:last-child {\n margin-right: 0;\n}\n.menububble__buttontext[data-v-48157a56] {\n padding: 0.4rem;\n padding-right: 0;\n}\n.menububble__form[data-v-48157a56] {\n display: flex;\n align-items: center;\n}\n.menububble__input[data-v-48157a56] {\n font: inherit;\n border: none;\n background: transparent;\n min-width: 150px;\n}\n", ""]);
// Exports
module.exports = exports;
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/MenuBubble.vue?vue&type=template&id=48157a56&scoped=true&":
/*!**************************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./apps/text/src/components/MenuBubble.vue?vue&type=template&id=48157a56&scoped=true& ***!
\**************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _c("EditorMenuBubble", {
staticClass: "menububble",
attrs: { editor: _vm.editor },
on: { hide: _vm.hideLinkMenu },
scopedSlots: _vm._u([
{
key: "default",
fn: function(ref) {
var commands = ref.commands
var isActive = ref.isActive
var getMarkAttrs = ref.getMarkAttrs
var menu = ref.menu
return [
_c(
"div",
{
staticClass: "menububble",
class: { "is-active": menu.isActive },
style:
"left: " + menu.left + "px; bottom: " + menu.bottom + "px;"
},
[
_vm.linkMenuIsActive
? _c(
"form",
{
staticClass: "menububble__form",
on: {
submit: function($event) {
$event.preventDefault()
return _vm.setLinkUrl(commands.link, _vm.linkUrl)
}
}
},
[
_c("input", {
directives: [
{
name: "model",
rawName: "v-model",
value: _vm.linkUrl,
expression: "linkUrl"
}
],
ref: "linkInput",
staticClass: "menububble__input",
attrs: { type: "text", placeholder: "https://" },
domProps: { value: _vm.linkUrl },
on: {
keydown: function($event) {
if (
!$event.type.indexOf("key") &&
_vm._k($event.keyCode, "esc", 27, $event.key, [
"Esc",
"Escape"
])
) {
return null
}
return _vm.hideLinkMenu($event)
},
input: function($event) {
if ($event.target.composing) {
return
}
_vm.linkUrl = $event.target.value
}
}
}),
_vm._v(" "),
_c("button", {
staticClass: "menububble__button icon-confirm",
attrs: { type: "button" },
on: {
click: function($event) {
return _vm.setLinkUrl(commands.link, _vm.linkUrl)
}
}
})
]
)
: [
_c(
"button",
{
staticClass: "menububble__button",
class: { "is-active": isActive.link() },
on: {
click: function($event) {
_vm.showLinkMenu(getMarkAttrs("link"))
}
}
},
[
_c("span", {
directives: [
{
name: "tooltip",
rawName: "v-tooltip",
value: isActive.link()
? "Update Link"
: "Add Link",
expression:
"isActive.link() ? 'Update Link' : 'Add Link'"
}
],
staticClass: "icon-link"
}),
_vm._v(" "),
_c(
"span",
{ staticClass: "menububble__buttontext" },
[_vm._v(_vm._s(_vm.t("text", "Add link")))]
)
]
)
]
],
2
)
]
}
}
])
})
}
var staticRenderFns = []
render._withStripped = 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/text/src/components/MenuBubble.vue?vue&type=style&index=0&id=48157a56&scoped=true&lang=scss&":
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
!*** ./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!./apps/text/src/components/MenuBubble.vue?vue&type=style&index=0&id=48157a56&scoped=true&lang=scss& ***!
\***********************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {
// style-loader: Adds some css to the DOM by adding a <style> tag
// load the styles
var content = __webpack_require__(/*! !../../../../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!./MenuBubble.vue?vue&type=style&index=0&id=48157a56&scoped=true&lang=scss& */ "./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/text/src/components/MenuBubble.vue?vue&type=style&index=0&id=48157a56&scoped=true&lang=scss&");
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var add = __webpack_require__(/*! ../../../../node_modules/vue-style-loader/lib/addStylesClient.js */ "./node_modules/vue-style-loader/lib/addStylesClient.js").default
var update = add("3f96e312", content, false, {});
// Hot Module Replacement
if(false) {}
/***/ })
}]);
//# sourceMappingURL=vue-editor-rich.js.map?v=4e5cb68d95c32b9eca9f

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,202 +0,0 @@
(window["webpackJsonpSettings"] = window["webpackJsonpSettings"] || []).push([["files-modal"],{
/***/ "./apps/text/src/components/PublicFilesEditor.vue":
/*!********************************************************!*\
!*** ./apps/text/src/components/PublicFilesEditor.vue ***!
\********************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _PublicFilesEditor_vue_vue_type_template_id_5775ffe0___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PublicFilesEditor.vue?vue&type=template&id=5775ffe0& */ "./apps/text/src/components/PublicFilesEditor.vue?vue&type=template&id=5775ffe0&");
/* harmony import */ var _PublicFilesEditor_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./PublicFilesEditor.vue?vue&type=script&lang=js& */ "./apps/text/src/components/PublicFilesEditor.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
/* normalize component */
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
_PublicFilesEditor_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
_PublicFilesEditor_vue_vue_type_template_id_5775ffe0___WEBPACK_IMPORTED_MODULE_0__["render"],
_PublicFilesEditor_vue_vue_type_template_id_5775ffe0___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
false,
null,
null,
null
)
/* hot reload */
if (false) { var api; }
component.options.__file = "apps/text/src/components/PublicFilesEditor.vue"
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ "./apps/text/src/components/PublicFilesEditor.vue?vue&type=script&lang=js&":
/*!*********************************************************************************!*\
!*** ./apps/text/src/components/PublicFilesEditor.vue?vue&type=script&lang=js& ***!
\*********************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_PublicFilesEditor_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib!../../../../node_modules/vue-loader/lib??vue-loader-options!./PublicFilesEditor.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/PublicFilesEditor.vue?vue&type=script&lang=js&");
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_node_modules_vue_loader_lib_index_js_vue_loader_options_PublicFilesEditor_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
/***/ }),
/***/ "./apps/text/src/components/PublicFilesEditor.vue?vue&type=template&id=5775ffe0&":
/*!***************************************************************************************!*\
!*** ./apps/text/src/components/PublicFilesEditor.vue?vue&type=template&id=5775ffe0& ***!
\***************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_PublicFilesEditor_vue_vue_type_template_id_5775ffe0___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./PublicFilesEditor.vue?vue&type=template&id=5775ffe0& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/PublicFilesEditor.vue?vue&type=template&id=5775ffe0&");
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_PublicFilesEditor_vue_vue_type_template_id_5775ffe0___WEBPACK_IMPORTED_MODULE_0__["render"]; });
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_PublicFilesEditor_vue_vue_type_template_id_5775ffe0___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
/***/ }),
/***/ "./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/PublicFilesEditor.vue?vue&type=script&lang=js&":
/*!*******************************************************************************************************************************************************************!*\
!*** ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./apps/text/src/components/PublicFilesEditor.vue?vue&type=script&lang=js& ***!
\*******************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _nextcloud_vue_dist_Components_Modal__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @nextcloud/vue/dist/Components/Modal */ "./node_modules/@nextcloud/vue/dist/Components/Modal.js");
/* harmony import */ var _nextcloud_vue_dist_Components_Modal__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_nextcloud_vue_dist_Components_Modal__WEBPACK_IMPORTED_MODULE_0__);
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
/* harmony default export */ __webpack_exports__["default"] = ({
name: 'PublicFilesEditor',
components: {
Modal: _nextcloud_vue_dist_Components_Modal__WEBPACK_IMPORTED_MODULE_0___default.a,
EditorWrapper: function EditorWrapper() {
return __webpack_require__.e(/*! import() | editor */ "editor").then(__webpack_require__.bind(null, /*! ./EditorWrapper */ "./apps/text/src/components/EditorWrapper.vue"));
}
},
props: {
fileId: {
type: Number,
default: null
},
relativePath: {
type: String,
default: null
},
active: {
type: Boolean,
default: false
},
shareToken: {
type: String,
default: null
},
mimeType: {
type: String,
default: null
}
},
computed: {
fileName: function fileName() {
return this.relativePath.substring(this.relativePath.lastIndexOf('/') + 1);
}
},
methods: {
close: function close() {
this.active = false;
}
}
});
/***/ }),
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./apps/text/src/components/PublicFilesEditor.vue?vue&type=template&id=5775ffe0&":
/*!*********************************************************************************************************************************************************************************************************************!*\
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./apps/text/src/components/PublicFilesEditor.vue?vue&type=template&id=5775ffe0& ***!
\*********************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
var render = function() {
var _vm = this
var _h = _vm.$createElement
var _c = _vm._self._c || _h
return _vm.active
? _c(
"Modal",
{ attrs: { title: _vm.fileName }, on: { close: _vm.close } },
[
_c("EditorWrapper", {
attrs: {
"file-id": _vm.fileId,
"relative-path": _vm.relativePath,
active: _vm.active,
"share-token": _vm.shareToken,
mime: _vm.mimeType
}
})
],
1
)
: _vm._e()
}
var staticRenderFns = []
render._withStripped = true
/***/ })
}]);
//# sourceMappingURL=vue-files-modal.js.map?v=624983dbb824a2380de0

View File

@ -1 +0,0 @@
{"version":3,"file":"vue-files-modal.js?v=624983dbb824a2380de0","sources":["webpack:///./apps/text/src/components/PublicFilesEditor.vue","webpack:///./apps/text/src/components/PublicFilesEditor.vue?86ab","webpack:///./apps/text/src/components/PublicFilesEditor.vue?bcb1","webpack:///./apps/text/src/components/PublicFilesEditor.vue?c033","webpack:///./apps/text/src/components/PublicFilesEditor.vue?c0b7"],"sourcesContent":["import { render, staticRenderFns } from \"./PublicFilesEditor.vue?vue&type=template&id=5775ffe0&\"\nimport script from \"./PublicFilesEditor.vue?vue&type=script&lang=js&\"\nexport * from \"./PublicFilesEditor.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\n/* hot reload */\nif (module.hot) {\n var api = require(\"/home/user/nextcloud/node_modules/vue-hot-reload-api/dist/index.js\")\n api.install(require('vue'))\n if (api.compatible) {\n module.hot.accept()\n if (!api.isRecorded('5775ffe0')) {\n api.createRecord('5775ffe0', component.options)\n } else {\n api.reload('5775ffe0', component.options)\n }\n module.hot.accept(\"./PublicFilesEditor.vue?vue&type=template&id=5775ffe0&\", function () {\n api.rerender('5775ffe0', {\n render: render,\n staticRenderFns: staticRenderFns\n })\n })\n }\n}\ncomponent.options.__file = \"apps/text/src/components/PublicFilesEditor.vue\"\nexport default component.exports","import mod from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PublicFilesEditor.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PublicFilesEditor.vue?vue&type=script&lang=js&\"","export * from \"-!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./PublicFilesEditor.vue?vue&type=template&id=5775ffe0&\"","//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport Modal from '@nextcloud/vue/dist/Components/Modal';\nexport default {\n name: 'PublicFilesEditor',\n components: {\n Modal: Modal,\n EditorWrapper: function EditorWrapper() {\n return import(\n /* webpackChunkName: \"editor\" */\n './EditorWrapper');\n }\n },\n props: {\n fileId: {\n type: Number,\n default: null\n },\n relativePath: {\n type: String,\n default: null\n },\n active: {\n type: Boolean,\n default: false\n },\n shareToken: {\n type: String,\n default: null\n },\n mimeType: {\n type: String,\n default: null\n }\n },\n computed: {\n fileName: function fileName() {\n return this.relativePath.substring(this.relativePath.lastIndexOf('/') + 1);\n }\n },\n methods: {\n close: function close() {\n this.active = false;\n }\n }\n};","var render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _vm.active\n ? _c(\n \"Modal\",\n { attrs: { title: _vm.fileName }, on: { close: _vm.close } },\n [\n _c(\"EditorWrapper\", {\n attrs: {\n \"file-id\": _vm.fileId,\n \"relative-path\": _vm.relativePath,\n active: _vm.active,\n \"share-token\": _vm.shareToken,\n mime: _vm.mimeType\n }\n })\n ],\n 1\n )\n : _vm._e()\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns }"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBAiBA;AACA;AACA;;;;;;;;;;;;ACtCA;AAAA;AAAA;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,iLAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;AC3EA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;A","sourceRoot":""}

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

View File

@ -86,28 +86,28 @@ export default {
},
computed: {
enforced: {
get: function() {
get() {
return this.$store.state.enforced
},
set: function(val) {
set(val) {
this.dirty = true
this.$store.commit('setEnforced', val)
},
},
enforcedGroups: {
get: function() {
get() {
return this.$store.state.enforcedGroups
},
set: function(val) {
set(val) {
this.dirty = true
this.$store.commit('setEnforcedGroups', val)
},
},
excludedGroups: {
get: function() {
get() {
return this.$store.state.excludedGroups
},
set: function(val) {
set(val) {
this.dirty = true
this.$store.commit('setExcludedGroups', val)
},

View File

@ -278,7 +278,7 @@ export default {
}
return dompurify.sanitize(
marked(this.app.description.trim(), {
renderer: renderer,
renderer,
gfm: false,
highlight: false,
tables: false,

View File

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

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