зеркало из https://github.com/nextcloud/text.git
chore(assets): recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
This commit is contained in:
Родитель
5d2f3e9732
Коммит
8ac764b52b
js
BaseReader-C0y7ujYJ.chunk.mjsBaseReader-C0y7ujYJ.chunk.mjs.mapDirectEditing-DNFDgdRH.chunk.mjsDirectEditing-DNFDgdRH.chunk.mjs.mapEditor-Cg2miCaA.chunk.mjsEditor-Cg2miCaA.chunk.mjs.mapEditor.singleton-ukfQI2_k.chunk.mjsEditor.singleton-ukfQI2_k.chunk.mjs.mapMarkdownContentEditor-C-qOc9IT.chunk.mjsMarkdownContentEditor-C-qOc9IT.chunk.mjs.mapPlainTextReader-CV9BQXQe.chunk.mjsPlainTextReader-CV9BQXQe.chunk.mjs.mapPublicFilesEditor-BVRcgTqA.chunk.mjsPublicFilesEditor-BVRcgTqA.chunk.mjs.mapReader-Dn0Uin9Z.chunk.mjsReader-Dn0Uin9Z.chunk.mjs.mapRichText-B9F7qpbl.chunk.mjs.mapRichText-xQa-JZC0.chunk.mjsRichText-xQa-JZC0.chunk.mjs.mapRichTextReader-DKfS3Kkb.chunk.mjsRichTextReader-DKfS3Kkb.chunk.mjs.mapRichWorkspace-DRosnCob.chunk.mjsRichWorkspace-DRosnCob.chunk.mjs.mapSessionList-eIUEogKy.chunk.mjsSessionList-eIUEogKy.chunk.mjs.mapViewerComponent-nJJg6mUl.chunk.mjsViewerComponent-nJJg6mUl.chunk.mjs.mapWrapper-D9C0MMsF.chunk.mjsWrapper-D9C0MMsF.chunk.mjs.mapfiles-D_hx7lPN.chunk.mjsfiles-D_hx7lPN.chunk.mjs.maptext-editors.mjstext-files.mjstext-init.mjstext-public.mjstext-text.mjstext-viewer.mjsvendor.LICENSE.txt
|
@ -1,2 +1,2 @@
|
|||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{aq as n,ar as o,af as r,av as i,W as s}from"./RichText-B9F7qpbl.chunk.mjs";import{i as a}from"./MediaHandler.provider-CSBQhvYP.chunk.mjs";import{n as d}from"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";const c={name:"BaseReader",components:{EditorContent:n,EditorOutline:o},mixins:[r,i],provide(){const t={};return Object.defineProperties(t,{[a]:{get:()=>this.$editor}}),t},inject:["renderHtml","extensions"],props:{content:{type:String,required:!0}},computed:{htmlContent(){return this.renderHtml(this.content)},showOutline(){return this.$outlineState.visible}},watch:{content(){this.updateContent()}},created(){this.$editor=this.createEditor(),this.$editor.setEditable(!1)},beforeDestroy(){this.$editor.destroy()},methods:{createEditor(){return new s({content:this.htmlContent,extensions:this.extensions()})},updateContent(){this.$editor.commands.setContent(this.htmlContent,!0)}}};var l=function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper text-editor__content-wrapper",class:{"--show-outline":t.showOutline},attrs:{"data-text-el":"editor-content-wrapper"}},[t.showOutline?e("div",{staticClass:"text-editor__content-wrapper__left"},[e("EditorOutline")],1):t._e(),t.$editor?e("EditorContent",{staticClass:"editor__content text-editor__content",attrs:{id:"read-only-editor",editor:t.$editor}}):t._e(),e("div",{staticClass:"text-editor__content-wrapper__right"})],1)},h=[],p=d(c,l,h,!1,null,"d9558d7c");const x=p.exports;export{x as B};
|
||||
import{aq as n,ar as o,af as r,av as i,W as s}from"./RichText-xQa-JZC0.chunk.mjs";import{i as a}from"./MediaHandler.provider-CSBQhvYP.chunk.mjs";import{n as d}from"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";const c={name:"BaseReader",components:{EditorContent:n,EditorOutline:o},mixins:[r,i],provide(){const t={};return Object.defineProperties(t,{[a]:{get:()=>this.$editor}}),t},inject:["renderHtml","extensions"],props:{content:{type:String,required:!0}},computed:{htmlContent(){return this.renderHtml(this.content)},showOutline(){return this.$outlineState.visible}},watch:{content(){this.updateContent()}},created(){this.$editor=this.createEditor(),this.$editor.setEditable(!1)},beforeDestroy(){this.$editor.destroy()},methods:{createEditor(){return new s({content:this.htmlContent,extensions:this.extensions()})},updateContent(){this.$editor.commands.setContent(this.htmlContent,!0)}}};var l=function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper text-editor__content-wrapper",class:{"--show-outline":t.showOutline},attrs:{"data-text-el":"editor-content-wrapper"}},[t.showOutline?e("div",{staticClass:"text-editor__content-wrapper__left"},[e("EditorOutline")],1):t._e(),t.$editor?e("EditorContent",{staticClass:"editor__content text-editor__content",attrs:{id:"read-only-editor",editor:t.$editor}}):t._e(),e("div",{staticClass:"text-editor__content-wrapper__right"})],1)},h=[],p=d(c,l,h,!1,null,"d9558d7c");const x=p.exports;export{x as B};
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"BaseReader-Z3-H-LQr.chunk.mjs","sources":["../src/components/BaseReader.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<div data-text-el=\"editor-content-wrapper\"\n\t\tclass=\"content-wrapper text-editor__content-wrapper\"\n\t\t:class=\"{\n\t\t\t'--show-outline': showOutline\n\t\t}\">\n\t\t<div v-if=\"showOutline\" class=\"text-editor__content-wrapper__left\">\n\t\t\t<EditorOutline />\n\t\t</div>\n\t\t<EditorContent v-if=\"$editor\"\n\t\t\tid=\"read-only-editor\"\n\t\t\tclass=\"editor__content text-editor__content\"\n\t\t\t:editor=\"$editor\" />\n\t\t<div class=\"text-editor__content-wrapper__right\" />\n\t</div>\n</template>\n\n<script>\nimport { Editor } from '@tiptap/core'\nimport { EditorContent } from '@tiptap/vue-2'\nimport { EDITOR } from './Editor.provider.js'\nimport { useOutlineStateMixin, useOutlineActions } from './Editor/Wrapper.provider.js'\nimport EditorOutline from './Editor/EditorOutline.vue'\n\nexport default {\n\tname: 'BaseReader',\n\tcomponents: {\n\t\tEditorContent,\n\t\tEditorOutline,\n\t},\n\n\tmixins: [useOutlineStateMixin, useOutlineActions],\n\n\tprovide() {\n\t\tconst val = {}\n\n\t\tObject.defineProperties(val, {\n\t\t\t[EDITOR]: {\n\t\t\t\tget: () => this.$editor,\n\t\t\t},\n\t\t})\n\n\t\treturn val\n\t},\n\n\t// extensions is a factory building a list of extensions for the editor\n\tinject: ['renderHtml', 'extensions'],\n\n\tprops: {\n\t\tcontent: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t},\n\n\tcomputed: {\n\t\thtmlContent() {\n\t\t\treturn this.renderHtml(this.content)\n\t\t},\n\t\tshowOutline() {\n\t\t\treturn this.$outlineState.visible\n\t\t},\n\t},\n\n\twatch: {\n\t\tcontent() {\n\t\t\tthis.updateContent()\n\t\t},\n\t},\n\n\tcreated() {\n\t\tthis.$editor = this.createEditor()\n\t\tthis.$editor.setEditable(false)\n\t},\n\n\tbeforeDestroy() {\n\t\tthis.$editor.destroy()\n\t},\n\n\tmethods: {\n\t\tcreateEditor() {\n\t\t\treturn new Editor({\n\t\t\t\tcontent: this.htmlContent,\n\t\t\t\textensions: this.extensions(),\n\t\t\t})\n\t\t},\n\n\t\tupdateContent() {\n\t\t\tthis.$editor.commands.setContent(this.htmlContent, true)\n\t\t},\n\t},\n}\n</script>\n\n<style scoped lang=\"scss\">\n.editor__content {\n\tmax-width: var(--text-editor-max-width);\n\tmargin: auto;\n\tposition: relative;\n\twidth: 100%;\n}\n\n.text-editor__content-wrapper {\n\t--side-width: calc((100% - var(--text-editor-max-width)) / 2);\n\tdisplay: grid;\n\tgrid-template-columns: 1fr auto;\n\t&.--show-outline {\n\t\tgrid-template-columns: var(--side-width) auto var(--side-width);\n\t}\n\t.text-editor__content-wrapper__left,\n\t.text-editor__content-wrapper__right {\n\t\theight: 100%;\n\t\tposition: relative;\n\t}\n}\n</style>\n"],"names":["_sfc_main","EditorContent","EditorOutline","useOutlineStateMixin","useOutlineActions","val","EDITOR","Editor"],"mappings":";kNA6BA,MAAAA,EAAA,CACA,KAAA,aACA,WAAA,CACA,cAAAC,EACA,cAAAC,CACA,EAEA,OAAA,CAAAC,EAAAC,CAAA,EAEA,SAAA,CACA,MAAAC,EAAA,CAAA,EAEA,OAAA,OAAA,iBAAAA,EAAA,CACA,CAAAC,CAAA,EAAA,CACA,IAAA,IAAA,KAAA,OACA,CACA,CAAA,EAEAD,CACA,EAGA,OAAA,CAAA,aAAA,YAAA,EAEA,MAAA,CACA,QAAA,CACA,KAAA,OACA,SAAA,EACA,CACA,EAEA,SAAA,CACA,aAAA,CACA,OAAA,KAAA,WAAA,KAAA,OAAA,CACA,EACA,aAAA,CACA,OAAA,KAAA,cAAA,OACA,CACA,EAEA,MAAA,CACA,SAAA,CACA,KAAA,cAAA,CACA,CACA,EAEA,SAAA,CACA,KAAA,QAAA,KAAA,aAAA,EACA,KAAA,QAAA,YAAA,EAAA,CACA,EAEA,eAAA,CACA,KAAA,QAAA,QAAA,CACA,EAEA,QAAA,CACA,cAAA,CACA,OAAA,IAAAE,EAAA,CACA,QAAA,KAAA,YACA,WAAA,KAAA,WAAA,CACA,CAAA,CACA,EAEA,eAAA,CACA,KAAA,QAAA,SAAA,WAAA,KAAA,YAAA,EAAA,CACA,CACA,CACA"}
|
||||
{"version":3,"file":"BaseReader-C0y7ujYJ.chunk.mjs","sources":["../src/components/BaseReader.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<div data-text-el=\"editor-content-wrapper\"\n\t\tclass=\"content-wrapper text-editor__content-wrapper\"\n\t\t:class=\"{\n\t\t\t'--show-outline': showOutline\n\t\t}\">\n\t\t<div v-if=\"showOutline\" class=\"text-editor__content-wrapper__left\">\n\t\t\t<EditorOutline />\n\t\t</div>\n\t\t<EditorContent v-if=\"$editor\"\n\t\t\tid=\"read-only-editor\"\n\t\t\tclass=\"editor__content text-editor__content\"\n\t\t\t:editor=\"$editor\" />\n\t\t<div class=\"text-editor__content-wrapper__right\" />\n\t</div>\n</template>\n\n<script>\nimport { Editor } from '@tiptap/core'\nimport { EditorContent } from '@tiptap/vue-2'\nimport { EDITOR } from './Editor.provider.js'\nimport { useOutlineStateMixin, useOutlineActions } from './Editor/Wrapper.provider.js'\nimport EditorOutline from './Editor/EditorOutline.vue'\n\nexport default {\n\tname: 'BaseReader',\n\tcomponents: {\n\t\tEditorContent,\n\t\tEditorOutline,\n\t},\n\n\tmixins: [useOutlineStateMixin, useOutlineActions],\n\n\tprovide() {\n\t\tconst val = {}\n\n\t\tObject.defineProperties(val, {\n\t\t\t[EDITOR]: {\n\t\t\t\tget: () => this.$editor,\n\t\t\t},\n\t\t})\n\n\t\treturn val\n\t},\n\n\t// extensions is a factory building a list of extensions for the editor\n\tinject: ['renderHtml', 'extensions'],\n\n\tprops: {\n\t\tcontent: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t},\n\n\tcomputed: {\n\t\thtmlContent() {\n\t\t\treturn this.renderHtml(this.content)\n\t\t},\n\t\tshowOutline() {\n\t\t\treturn this.$outlineState.visible\n\t\t},\n\t},\n\n\twatch: {\n\t\tcontent() {\n\t\t\tthis.updateContent()\n\t\t},\n\t},\n\n\tcreated() {\n\t\tthis.$editor = this.createEditor()\n\t\tthis.$editor.setEditable(false)\n\t},\n\n\tbeforeDestroy() {\n\t\tthis.$editor.destroy()\n\t},\n\n\tmethods: {\n\t\tcreateEditor() {\n\t\t\treturn new Editor({\n\t\t\t\tcontent: this.htmlContent,\n\t\t\t\textensions: this.extensions(),\n\t\t\t})\n\t\t},\n\n\t\tupdateContent() {\n\t\t\tthis.$editor.commands.setContent(this.htmlContent, true)\n\t\t},\n\t},\n}\n</script>\n\n<style scoped lang=\"scss\">\n.editor__content {\n\tmax-width: var(--text-editor-max-width);\n\tmargin: auto;\n\tposition: relative;\n\twidth: 100%;\n}\n\n.text-editor__content-wrapper {\n\t--side-width: calc((100% - var(--text-editor-max-width)) / 2);\n\tdisplay: grid;\n\tgrid-template-columns: 1fr auto;\n\t&.--show-outline {\n\t\tgrid-template-columns: var(--side-width) auto var(--side-width);\n\t}\n\t.text-editor__content-wrapper__left,\n\t.text-editor__content-wrapper__right {\n\t\theight: 100%;\n\t\tposition: relative;\n\t}\n}\n</style>\n"],"names":["_sfc_main","EditorContent","EditorOutline","useOutlineStateMixin","useOutlineActions","val","EDITOR","Editor"],"mappings":";kNA6BA,MAAAA,EAAA,CACA,KAAA,aACA,WAAA,CACA,cAAAC,EACA,cAAAC,CACA,EAEA,OAAA,CAAAC,EAAAC,CAAA,EAEA,SAAA,CACA,MAAAC,EAAA,CAAA,EAEA,OAAA,OAAA,iBAAAA,EAAA,CACA,CAAAC,CAAA,EAAA,CACA,IAAA,IAAA,KAAA,OACA,CACA,CAAA,EAEAD,CACA,EAGA,OAAA,CAAA,aAAA,YAAA,EAEA,MAAA,CACA,QAAA,CACA,KAAA,OACA,SAAA,EACA,CACA,EAEA,SAAA,CACA,aAAA,CACA,OAAA,KAAA,WAAA,KAAA,OAAA,CACA,EACA,aAAA,CACA,OAAA,KAAA,cAAA,OACA,CACA,EAEA,MAAA,CACA,SAAA,CACA,KAAA,cAAA,CACA,CACA,EAEA,SAAA,CACA,KAAA,QAAA,KAAA,aAAA,EACA,KAAA,QAAA,YAAA,EAAA,CACA,EAEA,eAAA,CACA,KAAA,QAAA,QAAA,CACA,EAEA,QAAA,CACA,cAAA,CACA,OAAA,IAAAE,EAAA,CACA,QAAA,KAAA,YACA,WAAA,KAAA,WAAA,CACA,CAAA,CACA,EAEA,eAAA,CACA,KAAA,QAAA,SAAA,WAAA,KAAA,YAAA,EAAA,CACA,CACA,CACA"}
|
|
@ -1,2 +1,2 @@
|
|||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{V as r}from"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import{E as d}from"./Editor-DSAnRxVD.chunk.mjs";import{l as n}from"./logger-B4T8Bva5.chunk.mjs";import{n as l}from"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";import"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";import"./RichText-B9F7qpbl.chunk.mjs";import"./NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs";import"./index-Br6XaFoY.chunk.mjs";import"./index-COlIf7vj.chunk.mjs";import"./MediaHandler.provider-CSBQhvYP.chunk.mjs";import"./public-DD-Yi-ho.chunk.mjs";import"./Wrapper-CkKylWkY.chunk.mjs";import"./index-BH4h0gCH.chunk.mjs";import"./_commonjs-dynamic-modules-CSduYUN4.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";const o=r.observable({messages:[],mtime:0}),s=(e,i)=>{n.debug("callMobileMessage ".concat(e),{attributes:i});let a=e,t=null;try{t=JSON.stringify(i)}catch{t=null}window.DirectEditingMobileInterface&&typeof window.DirectEditingMobileInterface[e]=="function"&&(t===null||typeof t>"u"?window.DirectEditingMobileInterface[e]():window.DirectEditingMobileInterface[e](t)),window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DirectEditingMobileInterface&&window.webkit.messageHandlers.DirectEditingMobileInterface.postMessage(a),window.postMessage(a)};window.addEventListener("message",function(e){o.messages.push(e.data),n.debug("postMessage",{message:e})});const c={name:"DirectEditing",components:{Editor:d},data(){return{initial:OCP.InitialState.loadState("text","file"),messages:o.messages,log:o,saving:!1}},computed:{initialSession(){return JSON.parse(this.initial.session)||null},isMobile(){return window.DirectEditingMobileInterface||window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DirectEditingMobileInterface}},beforeMount(){s("loading")},mounted(){document.querySelector('meta[name="viewport"]').setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"),this.$refs.editor.$on("push:forbidden",()=>{n.warn("push was forbidden due to invalidated session"),this.reload()})},methods:{async close(){this.saving=!0,setTimeout(async()=>{await this.$refs.editor.$destroy(),s("close")},0)},share(){s("share")},loaded(){s("loaded")},reload(){s("reload")}}};var m=function(){var e=this,i=e._self._c;return i("div",{class:{"icon-loading":e.saving},attrs:{id:"direct-editor"}},[i("Editor",{ref:"editor",attrs:{"initial-session":e.initialSession,"file-id":e.initial.fileId,active:!0,mime:e.initial.mimetype,"is-direct-editing":!0},on:{ready:e.loaded},scopedSlots:e._u([e.isMobile?{key:"header",fn:function(){return[i("button",{staticClass:"icon-share",on:{click:e.share}}),i("button",{staticClass:"icon-close",on:{click:e.close}})]},proxy:!0}:null],null,!0)})],1)},w=[],u=l(c,m,w,!1,null,"942b8c7a");const O=u.exports;export{O as default};
|
||||
import{V as r}from"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import{E as d}from"./Editor-Cg2miCaA.chunk.mjs";import{l as n}from"./logger-B4T8Bva5.chunk.mjs";import{n as l}from"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";import"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";import"./RichText-xQa-JZC0.chunk.mjs";import"./NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs";import"./index-Br6XaFoY.chunk.mjs";import"./index-COlIf7vj.chunk.mjs";import"./MediaHandler.provider-CSBQhvYP.chunk.mjs";import"./public-DD-Yi-ho.chunk.mjs";import"./Wrapper-D9C0MMsF.chunk.mjs";import"./index-BH4h0gCH.chunk.mjs";import"./_commonjs-dynamic-modules-CSduYUN4.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";const o=r.observable({messages:[],mtime:0}),s=(e,i)=>{n.debug("callMobileMessage ".concat(e),{attributes:i});let a=e,t=null;try{t=JSON.stringify(i)}catch{t=null}window.DirectEditingMobileInterface&&typeof window.DirectEditingMobileInterface[e]=="function"&&(t===null||typeof t>"u"?window.DirectEditingMobileInterface[e]():window.DirectEditingMobileInterface[e](t)),window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DirectEditingMobileInterface&&window.webkit.messageHandlers.DirectEditingMobileInterface.postMessage(a),window.postMessage(a)};window.addEventListener("message",function(e){o.messages.push(e.data),n.debug("postMessage",{message:e})});const c={name:"DirectEditing",components:{Editor:d},data(){return{initial:OCP.InitialState.loadState("text","file"),messages:o.messages,log:o,saving:!1}},computed:{initialSession(){return JSON.parse(this.initial.session)||null},isMobile(){return window.DirectEditingMobileInterface||window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DirectEditingMobileInterface}},beforeMount(){s("loading")},mounted(){document.querySelector('meta[name="viewport"]').setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"),this.$refs.editor.$on("push:forbidden",()=>{n.warn("push was forbidden due to invalidated session"),this.reload()})},methods:{async close(){this.saving=!0,setTimeout(async()=>{await this.$refs.editor.$destroy(),s("close")},0)},share(){s("share")},loaded(){s("loaded")},reload(){s("reload")}}};var m=function(){var e=this,i=e._self._c;return i("div",{class:{"icon-loading":e.saving},attrs:{id:"direct-editor"}},[i("Editor",{ref:"editor",attrs:{"initial-session":e.initialSession,"file-id":e.initial.fileId,active:!0,mime:e.initial.mimetype,"is-direct-editing":!0},on:{ready:e.loaded},scopedSlots:e._u([e.isMobile?{key:"header",fn:function(){return[i("button",{staticClass:"icon-share",on:{click:e.share}}),i("button",{staticClass:"icon-close",on:{click:e.close}})]},proxy:!0}:null],null,!0)})],1)},w=[],u=l(c,m,w,!1,null,"942b8c7a");const O=u.exports;export{O as default};
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,3 +1,3 @@
|
|||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/Editor-DSAnRxVD.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-DMTabKmO.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-SoWZqoso.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-fZsuJKoo.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-B9F7qpbl.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-UepKU4-p.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-B6WZzrWi.chunk.css'),window.OC.filePath('text', '', 'js/index-Br6XaFoY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DkzhscpN.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer--tuJJ_aO.chunk.css'),window.OC.filePath('text', '', 'js/index-COlIf7vj.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-CSBQhvYP.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-B4T8Bva5.chunk.mjs'),window.OC.filePath('text', '', 'js/public-DD-Yi-ho.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-Dz1mTuLN.chunk.css'),window.OC.filePath('text', '', 'js/Wrapper-CkKylWkY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-BH4h0gCH.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-B_yljjF_.chunk.css'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-C5euUIBu.chunk.css')])))=>i.map(i=>d[i]);
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/Editor-Cg2miCaA.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-DMTabKmO.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-SoWZqoso.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-fZsuJKoo.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-xQa-JZC0.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-UepKU4-p.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-B6WZzrWi.chunk.css'),window.OC.filePath('text', '', 'js/index-Br6XaFoY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DkzhscpN.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer--tuJJ_aO.chunk.css'),window.OC.filePath('text', '', 'js/index-COlIf7vj.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-CSBQhvYP.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-B4T8Bva5.chunk.mjs'),window.OC.filePath('text', '', 'js/public-DD-Yi-ho.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-Dz1mTuLN.chunk.css'),window.OC.filePath('text', '', 'js/Wrapper-D9C0MMsF.chunk.mjs'),window.OC.filePath('text', '', 'js/index-BH4h0gCH.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-B_yljjF_.chunk.css'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-C5euUIBu.chunk.css')])))=>i.map(i=>d[i]);
|
||||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{_ as i}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";async function a(){if(!window._nc_text_editor_instance){if(window._nc_text_editor_importing)return await new Promise(t=>{const e=setInterval(()=>{window._nc_text_editor_instance&&(t(window._nc_text_editor_instance),clearInterval(e))},200)});window._nc_text_editor_importing=!0;const o=await i(()=>import("./Editor-DSAnRxVD.chunk.mjs").then(t=>t.b),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url),{default:n}=await i(async()=>{const{default:t}=await import("./vue.runtime.esm-fZsuJKoo.chunk.mjs").then(e=>e.v);return{default:t}},[],import.meta.url);n.prototype.t=window.t,n.prototype.OCA=window.OCA;const _=n.extend(o.default);window._nc_text_editor_instance=_}return window._nc_text_editor_instance}export{a as g};
|
||||
import{_ as i}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";async function a(){if(!window._nc_text_editor_instance){if(window._nc_text_editor_importing)return await new Promise(t=>{const e=setInterval(()=>{window._nc_text_editor_instance&&(t(window._nc_text_editor_instance),clearInterval(e))},200)});window._nc_text_editor_importing=!0;const o=await i(()=>import("./Editor-Cg2miCaA.chunk.mjs").then(t=>t.b),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url),{default:n}=await i(async()=>{const{default:t}=await import("./vue.runtime.esm-fZsuJKoo.chunk.mjs").then(e=>e.v);return{default:t}},[],import.meta.url);n.prototype.t=window.t,n.prototype.OCA=window.OCA;const _=n.extend(o.default);window._nc_text_editor_instance=_}return window._nc_text_editor_instance}export{a as g};
|
|
@ -1 +1 @@
|
|||
{"version":3,"mappings":";;gEAUe,eAAeA,GAAoB,CACjD,GAAI,CAAC,OAAO,yBAA0B,CACrC,GAAI,OAAO,0BACV,OAAO,MAAM,IAAI,QAASC,GAAY,CACrC,MAAMC,EAAa,YAAY,IAAM,CAC/B,OAAO,2BAGZD,EAAQ,OAAO,wBAAwB,EACvC,cAAcC,CAAU,EACxB,EAAE,GAAG,CACV,CAAI,EAED,OAAO,0BAA4B,GAEpC,MAAMC,EAAS,MAAMC,EAAA,WAAuC,6BAAc,EAAC,KAAAC,KAAA,+FACrE,CAAE,QAASC,CAAK,EAAG,MAAKF,EAAA,wBAAAE,CAAA,OAAC,QAAO,sCAAK,eAAC,eAAAA,CAAA,uBAC5CA,EAAI,UAAU,EAAI,OAAO,EACzBA,EAAI,UAAU,IAAM,OAAO,IAC3B,MAAMC,EAAoBD,EAAI,OAAOH,EAAO,OAAO,EACnD,OAAO,yBAA2BI,CAClC,CACD,OAAO,OAAO,wBACf","names":["getEditorInstance","resolve","intervalId","Editor","__vitePreload","n","Vue","EditorConstructor"],"ignoreList":[],"sources":["../src/components/Editor.singleton.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n/**\n * Get instance of Editor component\n * Using singleton approach here to avoid duplicate yjs import error\n * @return {Promise<*>}\n */\nexport default async function getEditorInstance() {\n\tif (!window._nc_text_editor_instance) {\n\t\tif (window._nc_text_editor_importing) {\n\t\t\treturn await new Promise((resolve) => {\n\t\t\t\tconst intervalId = setInterval(() => {\n\t\t\t\t\tif (!window._nc_text_editor_instance) {\n\t\t\t\t\t\treturn\n\t\t\t\t\t}\n\t\t\t\t\tresolve(window._nc_text_editor_instance)\n\t\t\t\t\tclearInterval(intervalId)\n\t\t\t\t}, 200)\n\t\t\t})\n\t\t} else {\n\t\t\twindow._nc_text_editor_importing = true\n\t\t}\n\t\tconst Editor = await import(/* webpackChunkName: \"editor\" */'./Editor.vue')\n\t\tconst { default: Vue } = await import('vue')\n\t\tVue.prototype.t = window.t\n\t\tVue.prototype.OCA = window.OCA\n\t\tconst EditorConstructor = Vue.extend(Editor.default)\n\t\twindow._nc_text_editor_instance = EditorConstructor\n\t}\n\treturn window._nc_text_editor_instance\n}\n"],"file":"js/Editor.singleton-CXHaEOHB.chunk.mjs"}
|
||||
{"version":3,"mappings":";;gEAUe,eAAeA,GAAoB,CACjD,GAAI,CAAC,OAAO,yBAA0B,CACrC,GAAI,OAAO,0BACV,OAAO,MAAM,IAAI,QAASC,GAAY,CACrC,MAAMC,EAAa,YAAY,IAAM,CAC/B,OAAO,2BAGZD,EAAQ,OAAO,wBAAwB,EACvC,cAAcC,CAAU,EACxB,EAAE,GAAG,CACV,CAAI,EAED,OAAO,0BAA4B,GAEpC,MAAMC,EAAS,MAAMC,EAAA,WAAuC,6BAAc,EAAC,KAAAC,KAAA,+FACrE,CAAE,QAASC,CAAK,EAAG,MAAKF,EAAA,wBAAAE,CAAA,OAAC,QAAO,sCAAK,eAAC,eAAAA,CAAA,uBAC5CA,EAAI,UAAU,EAAI,OAAO,EACzBA,EAAI,UAAU,IAAM,OAAO,IAC3B,MAAMC,EAAoBD,EAAI,OAAOH,EAAO,OAAO,EACnD,OAAO,yBAA2BI,CAClC,CACD,OAAO,OAAO,wBACf","names":["getEditorInstance","resolve","intervalId","Editor","__vitePreload","n","Vue","EditorConstructor"],"ignoreList":[],"sources":["../src/components/Editor.singleton.js"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n/**\n * Get instance of Editor component\n * Using singleton approach here to avoid duplicate yjs import error\n * @return {Promise<*>}\n */\nexport default async function getEditorInstance() {\n\tif (!window._nc_text_editor_instance) {\n\t\tif (window._nc_text_editor_importing) {\n\t\t\treturn await new Promise((resolve) => {\n\t\t\t\tconst intervalId = setInterval(() => {\n\t\t\t\t\tif (!window._nc_text_editor_instance) {\n\t\t\t\t\t\treturn\n\t\t\t\t\t}\n\t\t\t\t\tresolve(window._nc_text_editor_instance)\n\t\t\t\t\tclearInterval(intervalId)\n\t\t\t\t}, 200)\n\t\t\t})\n\t\t} else {\n\t\t\twindow._nc_text_editor_importing = true\n\t\t}\n\t\tconst Editor = await import(/* webpackChunkName: \"editor\" */'./Editor.vue')\n\t\tconst { default: Vue } = await import('vue')\n\t\tVue.prototype.t = window.t\n\t\tVue.prototype.OCA = window.OCA\n\t\tconst EditorConstructor = Vue.extend(Editor.default)\n\t\twindow._nc_text_editor_instance = EditorConstructor\n\t}\n\treturn window._nc_text_editor_instance\n}\n"],"file":"js/Editor.singleton-ukfQI2_k.chunk.mjs"}
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,2 +1,2 @@
|
|||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{T as r,au as n}from"./RichText-B9F7qpbl.chunk.mjs";import{n as o,e as s}from"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";import{B as a}from"./BaseReader-Z3-H-LQr.chunk.mjs";const p={name:"PlainTextReader",components:{BaseReader:a},provide:{renderHtml(e){return"<pre>"+s(e)+"</pre>"},extensions:()=>[r,n]},props:{content:{type:String,required:!0}}};var i=function(){var e=this,t=e._self._c;return t("BaseReader",{attrs:{content:e.content}})},c=[],m=o(p,i,c,!1,null,null);const f=m.exports;export{f as P};
|
||||
import{T as r,au as n}from"./RichText-xQa-JZC0.chunk.mjs";import{n as o,e as s}from"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";import{B as a}from"./BaseReader-C0y7ujYJ.chunk.mjs";const p={name:"PlainTextReader",components:{BaseReader:a},provide:{renderHtml(e){return"<pre>"+s(e)+"</pre>"},extensions:()=>[r,n]},props:{content:{type:String,required:!0}}};var i=function(){var e=this,t=e._self._c;return t("BaseReader",{attrs:{content:e.content}})},c=[],m=o(p,i,c,!1,null,null);const f=m.exports;export{f as P};
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"PlainTextReader-BnIv0khH.chunk.mjs","sources":["../src/components/PlainTextReader.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<BaseReader :content=\"content\" />\n</template>\n\n<script>\n/* eslint-disable import/no-named-as-default */\nimport CodeBlock from '@tiptap/extension-code-block'\nimport escapeHtml from 'escape-html'\nimport BaseReader from './BaseReader.vue'\nimport { PlainText } from './../extensions/index.js'\n\nexport default {\n\tname: 'PlainTextReader',\n\tcomponents: { BaseReader },\n\n\tprovide: {\n\t\trenderHtml(content) {\n\t\t\treturn '<pre>' + escapeHtml(content) + '</pre>'\n\t\t},\n\t\textensions: () => [PlainText, CodeBlock],\n\t},\n\n\tprops: {\n\t\tcontent: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t},\n\n}\n</script>\n"],"names":["_sfc_main","BaseReader","content","escapeHtml","PlainText","CodeBlock"],"mappings":";sLAgBA,MAAAA,EAAA,CACA,KAAA,kBACA,WAAA,CAAA,WAAAC,CAAA,EAEA,QAAA,CACA,WAAAC,EAAA,CACA,MAAA,QAAAC,EAAAD,CAAA,EAAA,QACA,EACA,WAAA,IAAA,CAAAE,EAAAC,CAAA,CACA,EAEA,MAAA,CACA,QAAA,CACA,KAAA,OACA,SAAA,EACA,CACA,CAEA"}
|
||||
{"version":3,"file":"PlainTextReader-CV9BQXQe.chunk.mjs","sources":["../src/components/PlainTextReader.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<BaseReader :content=\"content\" />\n</template>\n\n<script>\n/* eslint-disable import/no-named-as-default */\nimport CodeBlock from '@tiptap/extension-code-block'\nimport escapeHtml from 'escape-html'\nimport BaseReader from './BaseReader.vue'\nimport { PlainText } from './../extensions/index.js'\n\nexport default {\n\tname: 'PlainTextReader',\n\tcomponents: { BaseReader },\n\n\tprovide: {\n\t\trenderHtml(content) {\n\t\t\treturn '<pre>' + escapeHtml(content) + '</pre>'\n\t\t},\n\t\textensions: () => [PlainText, CodeBlock],\n\t},\n\n\tprops: {\n\t\tcontent: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t},\n\n}\n</script>\n"],"names":["_sfc_main","BaseReader","content","escapeHtml","PlainText","CodeBlock"],"mappings":";sLAgBA,MAAAA,EAAA,CACA,KAAA,kBACA,WAAA,CAAA,WAAAC,CAAA,EAEA,QAAA,CACA,WAAAC,EAAA,CACA,MAAA,QAAAC,EAAAD,CAAA,EAAA,QACA,EACA,WAAA,IAAA,CAAAE,EAAAC,CAAA,CACA,EAEA,MAAA,CACA,QAAA,CACA,KAAA,OACA,SAAA,EACA,CACA,CAEA"}
|
|
@ -1,3 +1,3 @@
|
|||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/Editor-DSAnRxVD.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-DMTabKmO.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-SoWZqoso.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-fZsuJKoo.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-B9F7qpbl.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-UepKU4-p.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-B6WZzrWi.chunk.css'),window.OC.filePath('text', '', 'js/index-Br6XaFoY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DkzhscpN.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer--tuJJ_aO.chunk.css'),window.OC.filePath('text', '', 'js/index-COlIf7vj.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-CSBQhvYP.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-B4T8Bva5.chunk.mjs'),window.OC.filePath('text', '', 'js/public-DD-Yi-ho.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-Dz1mTuLN.chunk.css'),window.OC.filePath('text', '', 'js/Wrapper-CkKylWkY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-BH4h0gCH.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-B_yljjF_.chunk.css'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-C5euUIBu.chunk.css')])))=>i.map(i=>d[i]);
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/Editor-Cg2miCaA.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-DMTabKmO.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-SoWZqoso.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-fZsuJKoo.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-xQa-JZC0.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-UepKU4-p.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-B6WZzrWi.chunk.css'),window.OC.filePath('text', '', 'js/index-Br6XaFoY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DkzhscpN.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer--tuJJ_aO.chunk.css'),window.OC.filePath('text', '', 'js/index-COlIf7vj.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-CSBQhvYP.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-B4T8Bva5.chunk.mjs'),window.OC.filePath('text', '', 'js/public-DD-Yi-ho.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-Dz1mTuLN.chunk.css'),window.OC.filePath('text', '', 'js/Wrapper-D9C0MMsF.chunk.mjs'),window.OC.filePath('text', '', 'js/index-BH4h0gCH.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-B_yljjF_.chunk.css'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-C5euUIBu.chunk.css')])))=>i.map(i=>d[i]);
|
||||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{_ as i}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{n as r}from"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";import{b as a}from"./NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs";import"./index-Br6XaFoY.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";const l={name:"PublicFilesEditor",components:{NcModal:a,Editor:()=>i(()=>import("./Editor-DSAnRxVD.chunk.mjs").then(t=>t.b),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url)},props:{fileId:{type:Number,default:null},relativePath:{type:String,default:null},active:{type:Boolean,default:!1},shareToken:{type:String,default:null},mimeType:{type:String,default:null}},computed:{fileName(){return this.relativePath.substring(this.relativePath.lastIndexOf("/")+1)}},methods:{close(){this.$emit("close")}}};var o=function(){var t=this,e=t._self._c;return t.active?e("NcModal",{attrs:{name:t.fileName},on:{close:t.close}},[e("Editor",{attrs:{"file-id":t.fileId,"relative-path":t.relativePath,active:t.active,"share-token":t.shareToken,mime:t.mimeType}})],1):t._e()},m=[],n=r(l,o,m,!1,null,null);const _=n.exports;export{_ as default};
|
||||
import{_ as i}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{n as r}from"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";import{b as a}from"./NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs";import"./index-Br6XaFoY.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";const l={name:"PublicFilesEditor",components:{NcModal:a,Editor:()=>i(()=>import("./Editor-Cg2miCaA.chunk.mjs").then(t=>t.b),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url)},props:{fileId:{type:Number,default:null},relativePath:{type:String,default:null},active:{type:Boolean,default:!1},shareToken:{type:String,default:null},mimeType:{type:String,default:null}},computed:{fileName(){return this.relativePath.substring(this.relativePath.lastIndexOf("/")+1)}},methods:{close(){this.$emit("close")}}};var o=function(){var t=this,e=t._self._c;return t.active?e("NcModal",{attrs:{name:t.fileName},on:{close:t.close}},[e("Editor",{attrs:{"file-id":t.fileId,"relative-path":t.relativePath,active:t.active,"share-token":t.shareToken,mime:t.mimeType}})],1):t._e()},m=[],n=r(l,o,m,!1,null,null);const _=n.exports;export{_ as default};
|
|
@ -1 +1 @@
|
|||
{"version":3,"mappings":";;8XAkBA,MAAAA,EAAA,CACA,yBACA,YACA,QAAAC,EACA,WAAAC,EAAA,+CAAAC,KAAA,8FACA,EACA,OACA,QACA,YACA,YACA,EACA,cACA,YACA,YACA,EACA,QACA,aACA,UACA,EACA,YACA,YACA,YACA,EACA,UACA,YACA,YACA,CACA,EACA,UACA,WACA,wEACA,CACA,EACA,SACA,QACA,mBACA,CACA,CACA","names":["_sfc_main","NcModal","__vitePreload","n"],"ignoreList":[],"sources":["../src/components/PublicFilesEditor.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<NcModal v-if=\"active\" :name=\"fileName\" @close=\"close\">\n\t\t<Editor :file-id=\"fileId\"\n\t\t\t:relative-path=\"relativePath\"\n\t\t\t:active=\"active\"\n\t\t\t:share-token=\"shareToken\"\n\t\t\t:mime=\"mimeType\" />\n\t</NcModal>\n</template>\n\n<script>\nimport { NcModal } from '@nextcloud/vue'\n\nexport default {\n\tname: 'PublicFilesEditor',\n\tcomponents: {\n\t\tNcModal,\n\t\tEditor: () => import(/* webpackChunkName: \"editor\" */'./Editor.vue'),\n\t},\n\tprops: {\n\t\tfileId: {\n\t\t\ttype: Number,\n\t\t\tdefault: null,\n\t\t},\n\t\trelativePath: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\tactive: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\tshareToken: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\tmimeType: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t},\n\tcomputed: {\n\t\tfileName() {\n\t\t\treturn this.relativePath.substring(this.relativePath.lastIndexOf('/') + 1)\n\t\t},\n\t},\n\tmethods: {\n\t\tclose() {\n\t\t\tthis.$emit('close')\n\t\t},\n\t},\n}\n</script>\n"],"file":"js/PublicFilesEditor-DNjR06Wr.chunk.mjs"}
|
||||
{"version":3,"mappings":";;8XAkBA,MAAAA,EAAA,CACA,yBACA,YACA,QAAAC,EACA,WAAAC,EAAA,+CAAAC,KAAA,8FACA,EACA,OACA,QACA,YACA,YACA,EACA,cACA,YACA,YACA,EACA,QACA,aACA,UACA,EACA,YACA,YACA,YACA,EACA,UACA,YACA,YACA,CACA,EACA,UACA,WACA,wEACA,CACA,EACA,SACA,QACA,mBACA,CACA,CACA","names":["_sfc_main","NcModal","__vitePreload","n"],"ignoreList":[],"sources":["../src/components/PublicFilesEditor.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<NcModal v-if=\"active\" :name=\"fileName\" @close=\"close\">\n\t\t<Editor :file-id=\"fileId\"\n\t\t\t:relative-path=\"relativePath\"\n\t\t\t:active=\"active\"\n\t\t\t:share-token=\"shareToken\"\n\t\t\t:mime=\"mimeType\" />\n\t</NcModal>\n</template>\n\n<script>\nimport { NcModal } from '@nextcloud/vue'\n\nexport default {\n\tname: 'PublicFilesEditor',\n\tcomponents: {\n\t\tNcModal,\n\t\tEditor: () => import(/* webpackChunkName: \"editor\" */'./Editor.vue'),\n\t},\n\tprops: {\n\t\tfileId: {\n\t\t\ttype: Number,\n\t\t\tdefault: null,\n\t\t},\n\t\trelativePath: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\tactive: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: false,\n\t\t},\n\t\tshareToken: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t\tmimeType: {\n\t\t\ttype: String,\n\t\t\tdefault: null,\n\t\t},\n\t},\n\tcomputed: {\n\t\tfileName() {\n\t\t\treturn this.relativePath.substring(this.relativePath.lastIndexOf('/') + 1)\n\t\t},\n\t},\n\tmethods: {\n\t\tclose() {\n\t\t\tthis.$emit('close')\n\t\t},\n\t},\n}\n</script>\n"],"file":"js/PublicFilesEditor-BVRcgTqA.chunk.mjs"}
|
|
@ -1,2 +1,2 @@
|
|||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{P as o}from"./PlainTextReader-BnIv0khH.chunk.mjs";import{R as e}from"./RichTextReader-CcJDAWO0.chunk.mjs";import{n as i}from"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";import"./RichText-B9F7qpbl.chunk.mjs";import"./NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs";import"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import"./index-Br6XaFoY.chunk.mjs";import"./index-COlIf7vj.chunk.mjs";import"./MediaHandler.provider-CSBQhvYP.chunk.mjs";import"./logger-B4T8Bva5.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";import"./public-DD-Yi-ho.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";import"./BaseReader-Z3-H-LQr.chunk.mjs";const n={name:"Reader",components:{PlainTextReader:o,RichTextReader:e},props:{content:{type:String,required:!0},isRichEditor:{type:Boolean,default:!0}}};var p=function(){var t=this,r=t._self._c;return t.isRichEditor?r("RichTextReader",{attrs:{content:t.content}}):r("PlainTextReader",{attrs:{content:t.content}})},m=[],a=i(n,p,m,!1,null,null);const q=a.exports;export{q as default};
|
||||
import{P as o}from"./PlainTextReader-CV9BQXQe.chunk.mjs";import{R as e}from"./RichTextReader-DKfS3Kkb.chunk.mjs";import{n as i}from"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";import"./RichText-xQa-JZC0.chunk.mjs";import"./NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs";import"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import"./index-Br6XaFoY.chunk.mjs";import"./index-COlIf7vj.chunk.mjs";import"./MediaHandler.provider-CSBQhvYP.chunk.mjs";import"./logger-B4T8Bva5.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";import"./public-DD-Yi-ho.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";import"./BaseReader-C0y7ujYJ.chunk.mjs";const n={name:"Reader",components:{PlainTextReader:o,RichTextReader:e},props:{content:{type:String,required:!0},isRichEditor:{type:Boolean,default:!0}}};var p=function(){var t=this,r=t._self._c;return t.isRichEditor?r("RichTextReader",{attrs:{content:t.content}}):r("PlainTextReader",{attrs:{content:t.content}})},m=[],a=i(n,p,m,!1,null,null);const q=a.exports;export{q as default};
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"Reader-BoYXTrQs.chunk.mjs","sources":["../src/components/Reader.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<RichTextReader v-if=\"isRichEditor\"\n\t\t:content=\"content\" />\n\t<PlainTextReader v-else\n\t\t:content=\"content\" />\n</template>\n\n<script>\nimport PlainTextReader from './PlainTextReader.vue'\nimport RichTextReader from './RichTextReader.vue'\n\nexport default {\n\tname: 'Reader',\n\tcomponents: { PlainTextReader, RichTextReader },\n\tprops: {\n\t\tcontent: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t\tisRichEditor: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\">\n\n\t#read-only-editor {\n\t\toverflow: scroll;\n\t}\n\n\t.thumbnailContainer #read-only-editor {\n\t\twidth: 100%;\n\n\t\t.ProseMirror {\n\t\t\theight: auto;\n\t\t\tmargin: 0 0 0 0;\n\t\t\tpadding: 0;\n\t\t}\n\t}\n\n</style>\n"],"names":["_sfc_main","PlainTextReader","RichTextReader"],"mappings":";msBAgBA,MAAAA,EAAA,CACA,KAAA,SACA,WAAA,CAAA,gBAAAC,EAAA,eAAAC,CAAA,EACA,MAAA,CACA,QAAA,CACA,KAAA,OACA,SAAA,EACA,EACA,aAAA,CACA,KAAA,QACA,QAAA,EACA,CACA,CACA"}
|
||||
{"version":3,"file":"Reader-Dn0Uin9Z.chunk.mjs","sources":["../src/components/Reader.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<RichTextReader v-if=\"isRichEditor\"\n\t\t:content=\"content\" />\n\t<PlainTextReader v-else\n\t\t:content=\"content\" />\n</template>\n\n<script>\nimport PlainTextReader from './PlainTextReader.vue'\nimport RichTextReader from './RichTextReader.vue'\n\nexport default {\n\tname: 'Reader',\n\tcomponents: { PlainTextReader, RichTextReader },\n\tprops: {\n\t\tcontent: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t\tisRichEditor: {\n\t\t\ttype: Boolean,\n\t\t\tdefault: true,\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\">\n\n\t#read-only-editor {\n\t\toverflow: scroll;\n\t}\n\n\t.thumbnailContainer #read-only-editor {\n\t\twidth: 100%;\n\n\t\t.ProseMirror {\n\t\t\theight: auto;\n\t\t\tmargin: 0 0 0 0;\n\t\t\tpadding: 0;\n\t\t}\n\t}\n\n</style>\n"],"names":["_sfc_main","PlainTextReader","RichTextReader"],"mappings":";msBAgBA,MAAAA,EAAA,CACA,KAAA,SACA,WAAA,CAAA,gBAAAC,EAAA,eAAAC,CAAA,EACA,MAAA,CACA,QAAA,CACA,KAAA,OACA,SAAA,EACA,EACA,aAAA,CACA,KAAA,QACA,QAAA,EACA,CACA,CACA"}
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,2 +1,2 @@
|
|||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{B as o}from"./BaseReader-Z3-H-LQr.chunk.mjs";import{X as i,R as s}from"./RichText-B9F7qpbl.chunk.mjs";import{n as c}from"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";const a={name:"RichTextReader",components:{BaseReader:o},provide:{renderHtml(e){return i.render(e)},extensions(){return[s.configure({editing:!1})]}},props:{content:{type:String,required:!0}}};var l=function(){var e=this,r=e._self._c;return r("BaseReader",{attrs:{content:e.content},on:{"click-link":(t,n)=>e.$emit("click-link",t,n)}})},m=[],p=c(a,l,m,!1,null,null);const R=p.exports;export{R};
|
||||
import{B as o}from"./BaseReader-C0y7ujYJ.chunk.mjs";import{X as i,R as s}from"./RichText-xQa-JZC0.chunk.mjs";import{n as c}from"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";const a={name:"RichTextReader",components:{BaseReader:o},provide:{renderHtml(e){return i.render(e)},extensions(){return[s.configure({editing:!1})]}},props:{content:{type:String,required:!0}}};var l=function(){var e=this,r=e._self._c;return r("BaseReader",{attrs:{content:e.content},on:{"click-link":(t,n)=>e.$emit("click-link",t,n)}})},m=[],p=c(a,l,m,!1,null,null);const R=p.exports;export{R};
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"RichTextReader-CcJDAWO0.chunk.mjs","sources":["../src/components/RichTextReader.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<BaseReader :content=\"content\" @click-link=\"(e, a) => $emit('click-link', e, a)\" />\n</template>\n\n<script>\nimport BaseReader from './BaseReader.vue'\nimport { RichText } from './../extensions/index.js'\nimport markdownit from './../markdownit/index.js'\n\nexport default {\n\tname: 'RichTextReader',\n\tcomponents: { BaseReader },\n\n\tprovide: {\n\t\trenderHtml(content) {\n\t\t\treturn markdownit.render(content)\n\t\t},\n\t\textensions() {\n\t\t\treturn [\n\t\t\t\tRichText.configure({\n\t\t\t\t\tediting: false,\n\t\t\t\t}),\n\t\t\t]\n\t\t},\n\t},\n\n\tprops: {\n\t\tcontent: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\">\n\t@import './../css/prosemirror';\n\t@import './../css/print';\n</style>\n"],"names":["_sfc_main","BaseReader","content","markdownit","RichText"],"mappings":";8KAcA,MAAAA,EAAA,CACA,KAAA,iBACA,WAAA,CAAA,WAAAC,CAAA,EAEA,QAAA,CACA,WAAAC,EAAA,CACA,OAAAC,EAAA,OAAAD,CAAA,CACA,EACA,YAAA,CACA,MAAA,CACAE,EAAA,UAAA,CACA,QAAA,EACA,CAAA,CACA,CACA,CACA,EAEA,MAAA,CACA,QAAA,CACA,KAAA,OACA,SAAA,EACA,CACA,CACA"}
|
||||
{"version":3,"file":"RichTextReader-DKfS3Kkb.chunk.mjs","sources":["../src/components/RichTextReader.vue"],"sourcesContent":["<!--\n - SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors\n - SPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n<template>\n\t<BaseReader :content=\"content\" @click-link=\"(e, a) => $emit('click-link', e, a)\" />\n</template>\n\n<script>\nimport BaseReader from './BaseReader.vue'\nimport { RichText } from './../extensions/index.js'\nimport markdownit from './../markdownit/index.js'\n\nexport default {\n\tname: 'RichTextReader',\n\tcomponents: { BaseReader },\n\n\tprovide: {\n\t\trenderHtml(content) {\n\t\t\treturn markdownit.render(content)\n\t\t},\n\t\textensions() {\n\t\t\treturn [\n\t\t\t\tRichText.configure({\n\t\t\t\t\tediting: false,\n\t\t\t\t}),\n\t\t\t]\n\t\t},\n\t},\n\n\tprops: {\n\t\tcontent: {\n\t\t\ttype: String,\n\t\t\trequired: true,\n\t\t},\n\t},\n}\n</script>\n\n<style lang=\"scss\">\n\t@import './../css/prosemirror';\n\t@import './../css/print';\n</style>\n"],"names":["_sfc_main","BaseReader","content","markdownit","RichText"],"mappings":";8KAcA,MAAAA,EAAA,CACA,KAAA,iBACA,WAAA,CAAA,WAAAC,CAAA,EAEA,QAAA,CACA,WAAAC,EAAA,CACA,OAAAC,EAAA,OAAAD,CAAA,CACA,EACA,YAAA,CACA,MAAA,CACAE,EAAA,UAAA,CACA,QAAA,EACA,CAAA,CACA,CACA,CACA,EAEA,MAAA,CACA,QAAA,CACA,KAAA,OACA,SAAA,EACA,CACA,CACA"}
|
|
@ -1,2 +1,2 @@
|
|||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{v as n,c}from"./index-Br6XaFoY.chunk.mjs";import{s,u as o}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{g as l}from"./Editor.singleton-CXHaEOHB.chunk.mjs";import{R as d}from"./RichTextReader-CcJDAWO0.chunk.mjs";import{n as p}from"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";import"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./BaseReader-Z3-H-LQr.chunk.mjs";import"./RichText-B9F7qpbl.chunk.mjs";import"./NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs";import"./index-COlIf7vj.chunk.mjs";import"./MediaHandler.provider-CSBQhvYP.chunk.mjs";import"./logger-B4T8Bva5.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";import"./public-DD-Yi-ho.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";const h=!!document.getElementById("isPublic"),u=n("apps/text"+(h?"/public":"")+"/workspace",2),r=["Readme.md","README.md","readme.md"],f={name:"RichWorkspace",components:{RichTextReader:d,Editor:l},props:{content:{type:String,default:""},path:{type:String,required:!0},active:{type:Boolean,default:!0},hasRichWorkspace:{type:Boolean,default:!1}},data(){return{localHasRichWorkspace:!1,focus:!1,folder:null,file:null,loaded:!1,ready:!1,autofocus:!1,hideMenu:!0,darkTheme:OCA.Accessibility&&OCA.Accessibility.theme==="dark",enabled:OCA.Text.RichWorkspaceEnabled}},computed:{shareToken(){var e;return(e=document.getElementById("sharingToken"))==null?void 0:e.value}},watch:{path(){this.getFileInfo()},focus(e){e||document.querySelector("#rich-workspace .text-editor__main").scrollTo(0,0)},hasRichWorkspace(e){this.localHasRichWorkspace=e}},mounted(){this.localHasRichWorkspace=this.hasRichWorkspace,this.enabled&&this.hasRichWorkspace&&this.getFileInfo(),s("Text::showRichWorkspace",this.showRichWorkspace),s("Text::hideRichWorkspace",this.hideRichWorkspace),s("files:node:created",this.onFileCreated),s("files:node:deleted",this.onFileDeleted),s("files:node:renamed",this.onFileRenamed),this.listenKeydownEvents()},beforeDestroy(){o("Text::showRichWorkspace",this.showRichWorkspace),o("Text::hideRichWorkspace",this.hideRichWorkspace),o("files:node:created",this.onFileCreated),o("files:node:deleted",this.onFileDeleted),o("files:node:renamed",this.onFileRenamed),this.unlistenKeydownEvents()},methods:{onFocus(){this.focus=!0,this.hideMenu=!1,this.unlistenKeydownEvents()},reset(){this.localHasRichWorkspace=!1,this.file=null,this.focus=!1,this.$nextTick(()=>{this.creating=!1,this.getFileInfo()})},getFileInfo(e){if(!this.enabled)return;this.file=null,this.ready=!1,this.loaded=!0,this.autofocus=!1;const t={path:this.path};return h&&(t.shareToken=this.shareToken),c.get(u,{params:t}).then(i=>{const a=i.data.ocs.data;return this.folder=a.folder||null,this.file=a.file,this.editing=!0,this.loaded=!0,this.autofocus=e||!1,this.localHasRichWorkspace=!0,!0}).catch(i=>(i.response.data.ocs&&i.response.data.ocs.data.folder?this.folder=i.response.data.ocs.data.folder:this.folder=null,this.file=null,this.loaded=!0,this.ready=!0,this.creating=!1,!1))},showRichWorkspace(e){this.enabled=!0,this.getFileInfo((e==null?void 0:e.autofocus)||!1)},hideRichWorkspace(){this.enabled=!1},listenKeydownEvents(){window.addEventListener("keydown",this.onKeydown)},unlistenKeydownEvents(){window.removeEventListener("keydown",this.onKeydown)},onKeydown(e){e.key==="Tab"&&(this.hideMenu=!1)},onFileCreated(e){r.includes(e.basename)&&(this.localHasRichWorkspace=!0,this.getFileInfo(!0))},onFileDeleted(e){var t;e.path===((t=this.file)==null?void 0:t.path)&&(this.localHasRichWorkspace=!1)},onFileRenamed(e){var t,i;r.includes(e.basename)?this.localHasRichWorkspace=!0:e.fileid===((t=this.file)==null?void 0:t.id)&&e.path!==((i=this.file)==null?void 0:i.path)&&(this.localHasRichWorkspace=!1)}}};var m=function(){var e=this,t=e._self._c;return e.enabled&&e.localHasRichWorkspace?t("div",{class:{focus:e.focus,dark:e.darkTheme},attrs:{id:"rich-workspace"}},[!e.loaded||!e.ready?t("RichTextReader",{staticClass:"rich-workspace--preview",attrs:{content:e.content}}):e._e(),e.file?t("Editor",{directives:[{name:"show",rawName:"v-show",value:e.ready,expression:"ready"}],key:e.file.path,attrs:{"file-id":e.file.id,"relative-path":e.file.path,"share-token":e.shareToken,mime:e.file.mimetype,autofocus:e.autofocus,"hide-menu":e.hideMenu,active:"","rich-workspace":""},on:{ready:function(i){e.ready=!0},focus:e.onFocus,error:e.reset}}):e._e()],1):e._e()},k=[],R=p(f,m,k,!1,null,"2a5116a9");const D=R.exports;export{D as default};
|
||||
import{v as n,c}from"./index-Br6XaFoY.chunk.mjs";import{s,u as o}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{g as l}from"./Editor.singleton-ukfQI2_k.chunk.mjs";import{R as d}from"./RichTextReader-DKfS3Kkb.chunk.mjs";import{n as p}from"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";import"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./BaseReader-C0y7ujYJ.chunk.mjs";import"./RichText-xQa-JZC0.chunk.mjs";import"./NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs";import"./index-COlIf7vj.chunk.mjs";import"./MediaHandler.provider-CSBQhvYP.chunk.mjs";import"./logger-B4T8Bva5.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";import"./public-DD-Yi-ho.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";const h=!!document.getElementById("isPublic"),u=n("apps/text"+(h?"/public":"")+"/workspace",2),r=["Readme.md","README.md","readme.md"],f={name:"RichWorkspace",components:{RichTextReader:d,Editor:l},props:{content:{type:String,default:""},path:{type:String,required:!0},active:{type:Boolean,default:!0},hasRichWorkspace:{type:Boolean,default:!1}},data(){return{localHasRichWorkspace:!1,focus:!1,folder:null,file:null,loaded:!1,ready:!1,autofocus:!1,hideMenu:!0,darkTheme:OCA.Accessibility&&OCA.Accessibility.theme==="dark",enabled:OCA.Text.RichWorkspaceEnabled}},computed:{shareToken(){var e;return(e=document.getElementById("sharingToken"))==null?void 0:e.value}},watch:{path(){this.getFileInfo()},focus(e){e||document.querySelector("#rich-workspace .text-editor__main").scrollTo(0,0)},hasRichWorkspace(e){this.localHasRichWorkspace=e}},mounted(){this.localHasRichWorkspace=this.hasRichWorkspace,this.enabled&&this.hasRichWorkspace&&this.getFileInfo(),s("Text::showRichWorkspace",this.showRichWorkspace),s("Text::hideRichWorkspace",this.hideRichWorkspace),s("files:node:created",this.onFileCreated),s("files:node:deleted",this.onFileDeleted),s("files:node:renamed",this.onFileRenamed),this.listenKeydownEvents()},beforeDestroy(){o("Text::showRichWorkspace",this.showRichWorkspace),o("Text::hideRichWorkspace",this.hideRichWorkspace),o("files:node:created",this.onFileCreated),o("files:node:deleted",this.onFileDeleted),o("files:node:renamed",this.onFileRenamed),this.unlistenKeydownEvents()},methods:{onFocus(){this.focus=!0,this.hideMenu=!1,this.unlistenKeydownEvents()},reset(){this.localHasRichWorkspace=!1,this.file=null,this.focus=!1,this.$nextTick(()=>{this.creating=!1,this.getFileInfo()})},getFileInfo(e){if(!this.enabled)return;this.file=null,this.ready=!1,this.loaded=!0,this.autofocus=!1;const t={path:this.path};return h&&(t.shareToken=this.shareToken),c.get(u,{params:t}).then(i=>{const a=i.data.ocs.data;return this.folder=a.folder||null,this.file=a.file,this.editing=!0,this.loaded=!0,this.autofocus=e||!1,this.localHasRichWorkspace=!0,!0}).catch(i=>(i.response.data.ocs&&i.response.data.ocs.data.folder?this.folder=i.response.data.ocs.data.folder:this.folder=null,this.file=null,this.loaded=!0,this.ready=!0,this.creating=!1,!1))},showRichWorkspace(e){this.enabled=!0,this.getFileInfo((e==null?void 0:e.autofocus)||!1)},hideRichWorkspace(){this.enabled=!1},listenKeydownEvents(){window.addEventListener("keydown",this.onKeydown)},unlistenKeydownEvents(){window.removeEventListener("keydown",this.onKeydown)},onKeydown(e){e.key==="Tab"&&(this.hideMenu=!1)},onFileCreated(e){r.includes(e.basename)&&(this.localHasRichWorkspace=!0,this.getFileInfo(!0))},onFileDeleted(e){var t;e.path===((t=this.file)==null?void 0:t.path)&&(this.localHasRichWorkspace=!1)},onFileRenamed(e){var t,i;r.includes(e.basename)?this.localHasRichWorkspace=!0:e.fileid===((t=this.file)==null?void 0:t.id)&&e.path!==((i=this.file)==null?void 0:i.path)&&(this.localHasRichWorkspace=!1)}}};var m=function(){var e=this,t=e._self._c;return e.enabled&&e.localHasRichWorkspace?t("div",{class:{focus:e.focus,dark:e.darkTheme},attrs:{id:"rich-workspace"}},[!e.loaded||!e.ready?t("RichTextReader",{staticClass:"rich-workspace--preview",attrs:{content:e.content}}):e._e(),e.file?t("Editor",{directives:[{name:"show",rawName:"v-show",value:e.ready,expression:"ready"}],key:e.file.path,attrs:{"file-id":e.file.id,"relative-path":e.file.path,"share-token":e.shareToken,mime:e.file.mimetype,autofocus:e.autofocus,"hide-menu":e.hideMenu,active:"","rich-workspace":""},on:{ready:function(i){e.ready=!0},focus:e.onFocus,error:e.reset}}):e._e()],1):e._e()},k=[],R=p(f,m,k,!1,null,"2a5116a9");const D=R.exports;export{D as default};
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,2 +1,2 @@
|
|||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{n as i}from"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";import{d as n}from"./NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs";import"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import"./index-Br6XaFoY.chunk.mjs";import{A as o}from"./AvatarWrapper-BzCIk-C3.chunk.mjs";import{C as p,a as l}from"./Editor-DSAnRxVD.chunk.mjs";import"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./RichText-B9F7qpbl.chunk.mjs";import"./index-COlIf7vj.chunk.mjs";import"./MediaHandler.provider-CSBQhvYP.chunk.mjs";import"./logger-B4T8Bva5.chunk.mjs";import"./public-DD-Yi-ho.chunk.mjs";import"./Wrapper-CkKylWkY.chunk.mjs";import"./index-BH4h0gCH.chunk.mjs";import"./_commonjs-dynamic-modules-CSduYUN4.chunk.mjs";const u={name:"SessionList",components:{AvatarWrapper:o,NcPopover:n},props:{sessions:{type:Object,default:()=>({})}},data(){return{myName:""}},computed:{label(){return t("text","Active people")},participantsPopover(){var s;return(s=this.currentSession)!=null&&s.guestName?this.participantsWithoutCurrent:this.participants},participantsWithoutCurrent(){return this.participants.filter(s=>!s.isCurrent)},participants(){return Object.values(this.sessions).filter(s=>s.lastContact>Date.now()/1e3-p&&(s.userId!==null||s.guestName!==null)).sort((s,e)=>s.lastContact<e.lastContact)},currentSession(){return Object.values(this.sessions).find(s=>s.isCurrent)},avatarStyle(){return s=>({opacity:s.lastContact>Date.now()/1e3-l?1:.5})},sessionsVisible(){return this.participantsWithoutCurrent.slice(0,3)}}};var c=function(){var s=this,e=s._self._c;return e("NcPopover",{staticClass:"session-list",attrs:{placement:"bottom"},scopedSlots:s._u([{key:"trigger",fn:function({attrs:r}){return[e("div",[e("button",s._b({staticClass:"avatar-list",attrs:{title:s.label,"aria-label":s.label}},"button",r,!1),[e("div",{staticClass:"avatardiv icon-group"}),s._l(s.sessionsVisible,function(a){return e("AvatarWrapper",{key:a.id,attrs:{session:a,size:30}})})],2)])]}},{key:"default",fn:function(){return[e("div",{staticClass:"session-menu"},[s._t("lastSaved"),e("ul",[s._t("default"),s._l(s.participantsPopover,function(r){return e("li",{key:r.id,style:s.avatarStyle(r)},[e("AvatarWrapper",{attrs:{session:r,size:36}}),e("span",{staticClass:"session-label"},[s._v(" "+s._s(r.userId?r.displayName:r.guestName?r.guestName:s.t("text","Guest"))+" ")]),r.userId===null?e("span",{staticClass:"guest-label"},[s._v("("+s._s(s.t("text","guest"))+")")]):s._e()],1)})],2)],2)]},proxy:!0}],null,!0)})},m=[],v=i(u,c,m,!1,null,"6c8e0995");const w=v.exports;export{w as default};
|
||||
import{n as i}from"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";import{d as n}from"./NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs";import"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import"./index-Br6XaFoY.chunk.mjs";import{A as o}from"./AvatarWrapper-BzCIk-C3.chunk.mjs";import{C as p,a as l}from"./Editor-Cg2miCaA.chunk.mjs";import"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./RichText-xQa-JZC0.chunk.mjs";import"./index-COlIf7vj.chunk.mjs";import"./MediaHandler.provider-CSBQhvYP.chunk.mjs";import"./logger-B4T8Bva5.chunk.mjs";import"./public-DD-Yi-ho.chunk.mjs";import"./Wrapper-D9C0MMsF.chunk.mjs";import"./index-BH4h0gCH.chunk.mjs";import"./_commonjs-dynamic-modules-CSduYUN4.chunk.mjs";const u={name:"SessionList",components:{AvatarWrapper:o,NcPopover:n},props:{sessions:{type:Object,default:()=>({})}},data(){return{myName:""}},computed:{label(){return t("text","Active people")},participantsPopover(){var s;return(s=this.currentSession)!=null&&s.guestName?this.participantsWithoutCurrent:this.participants},participantsWithoutCurrent(){return this.participants.filter(s=>!s.isCurrent)},participants(){return Object.values(this.sessions).filter(s=>s.lastContact>Date.now()/1e3-p&&(s.userId!==null||s.guestName!==null)).sort((s,e)=>s.lastContact<e.lastContact)},currentSession(){return Object.values(this.sessions).find(s=>s.isCurrent)},avatarStyle(){return s=>({opacity:s.lastContact>Date.now()/1e3-l?1:.5})},sessionsVisible(){return this.participantsWithoutCurrent.slice(0,3)}}};var c=function(){var s=this,e=s._self._c;return e("NcPopover",{staticClass:"session-list",attrs:{placement:"bottom"},scopedSlots:s._u([{key:"trigger",fn:function({attrs:r}){return[e("div",[e("button",s._b({staticClass:"avatar-list",attrs:{title:s.label,"aria-label":s.label}},"button",r,!1),[e("div",{staticClass:"avatardiv icon-group"}),s._l(s.sessionsVisible,function(a){return e("AvatarWrapper",{key:a.id,attrs:{session:a,size:30}})})],2)])]}},{key:"default",fn:function(){return[e("div",{staticClass:"session-menu"},[s._t("lastSaved"),e("ul",[s._t("default"),s._l(s.participantsPopover,function(r){return e("li",{key:r.id,style:s.avatarStyle(r)},[e("AvatarWrapper",{attrs:{session:r,size:36}}),e("span",{staticClass:"session-label"},[s._v(" "+s._s(r.userId?r.displayName:r.guestName?r.guestName:s.t("text","Guest"))+" ")]),r.userId===null?e("span",{staticClass:"guest-label"},[s._v("("+s._s(s.t("text","guest"))+")")]):s._e()],1)})],2)],2)]},proxy:!0}],null,!0)})},m=[],v=i(u,c,m,!1,null,"6c8e0995");const w=v.exports;export{w as default};
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,2 +1,2 @@
|
|||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{V as e}from"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import{c as d}from"./index-Br6XaFoY.chunk.mjs";import{a4 as s}from"./RichText-B9F7qpbl.chunk.mjs";import{N as a}from"./NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs";import{P as i}from"./PlainTextReader-BnIv0khH.chunk.mjs";import n from"./MarkdownContentEditor-BVdIyiKb.chunk.mjs";import{t as r,f as m,n as l}from"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";import{g as u}from"./token-DpxtlN7K.chunk.mjs";import{g as c}from"./Editor.singleton-CXHaEOHB.chunk.mjs";import"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./index-COlIf7vj.chunk.mjs";import"./MediaHandler.provider-CSBQhvYP.chunk.mjs";import"./logger-B4T8Bva5.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";import"./public-DD-Yi-ho.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";import"./BaseReader-Z3-H-LQr.chunk.mjs";import"./Wrapper-CkKylWkY.chunk.mjs";import"./index-BH4h0gCH.chunk.mjs";e.prototype.t=r,e.prototype.n=m;const p={name:"ViewerComponent",components:{NcButton:e.extend(a),PencilIcon:e.extend(s),PlainTextReader:e.extend(i),MarkdownContentEditor:e.extend(n),Editor:c},provide(){return{isEmbedded:this.isEmbedded}},props:{filename:{type:String,default:null},fileid:{type:Number,default:null},active:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!0},shareToken:{type:String,default:()=>u()},mime:{type:String,default:null},showOutlineOutside:{type:Boolean,default:!1},permissions:{type:String,default:""},source:{type:String,default:void 0},isEmbedded:{type:Boolean,default:!1}},data(){return{content:"",hasToggledInteractiveEmbedding:!1}},computed:{useSourceView(){return this.source&&(this.fileVersion||!this.fileid||this.isEmbedded)&&!this.hasToggledInteractiveEmbedding},readerComponent(){return this.mime==="text/markdown"?n:i}},watch:{source(){this.loadFileContent()}},mounted(){this.loadFileContent()},methods:{t:r,async loadFileContent(){if(this.useSourceView){const t=await d.get(this.source);this.content=t.data,this.contentLoaded=!0}this.$emit("update:loaded",!0)},toggleEdit(){this.hasToggledInteractiveEmbedding=!0}}};var f=function(){var t=this,o=t._self._c;return t.useSourceView?o("div",{staticClass:"text-editor source-viewer",attrs:{id:"editor-container","data-text-el":"editor-container"}},[o(t.readerComponent,{tag:"Component",attrs:{content:t.content,"file-id":t.fileid,"read-only":!0,"show-menu-bar":!1}}),t.isEmbedded?o("NcButton",{staticClass:"toggle-interactive",on:{click:t.toggleEdit},scopedSlots:t._u([{key:"icon",fn:function(){return[o("PencilIcon")]},proxy:!0}],null,!1,411976917)},[t._v(" "+t._s(t.t("text","Edit"))+" ")]):t._e()],1):o("Editor",{class:{"text-editor--embedding":t.isEmbedded},attrs:{"file-id":t.fileid,"relative-path":t.filename,active:t.active||t.isEmbedded,autofocus:t.autofocus,"share-token":t.shareToken,mime:t.mime,"show-outline-outside":t.showOutlineOutside}})},h=[],g=l(p,f,h,!1,null,"368f5325");const R=g.exports;export{R as default};
|
||||
import{V as e}from"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import{c as d}from"./index-Br6XaFoY.chunk.mjs";import{a4 as s}from"./RichText-xQa-JZC0.chunk.mjs";import{N as a}from"./NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs";import{P as i}from"./PlainTextReader-CV9BQXQe.chunk.mjs";import n from"./MarkdownContentEditor-C-qOc9IT.chunk.mjs";import{t as r,f as m,n as l}from"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";import{g as u}from"./token-DpxtlN7K.chunk.mjs";import{g as c}from"./Editor.singleton-ukfQI2_k.chunk.mjs";import"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./index-COlIf7vj.chunk.mjs";import"./MediaHandler.provider-CSBQhvYP.chunk.mjs";import"./logger-B4T8Bva5.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";import"./public-DD-Yi-ho.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";import"./BaseReader-C0y7ujYJ.chunk.mjs";import"./Wrapper-D9C0MMsF.chunk.mjs";import"./index-BH4h0gCH.chunk.mjs";e.prototype.t=r,e.prototype.n=m;const p={name:"ViewerComponent",components:{NcButton:e.extend(a),PencilIcon:e.extend(s),PlainTextReader:e.extend(i),MarkdownContentEditor:e.extend(n),Editor:c},provide(){return{isEmbedded:this.isEmbedded}},props:{filename:{type:String,default:null},fileid:{type:Number,default:null},active:{type:Boolean,default:!1},autofocus:{type:Boolean,default:!0},shareToken:{type:String,default:()=>u()},mime:{type:String,default:null},showOutlineOutside:{type:Boolean,default:!1},permissions:{type:String,default:""},source:{type:String,default:void 0},isEmbedded:{type:Boolean,default:!1}},data(){return{content:"",hasToggledInteractiveEmbedding:!1}},computed:{useSourceView(){return this.source&&(this.fileVersion||!this.fileid||this.isEmbedded)&&!this.hasToggledInteractiveEmbedding},readerComponent(){return this.mime==="text/markdown"?n:i}},watch:{source(){this.loadFileContent()}},mounted(){this.loadFileContent()},methods:{t:r,async loadFileContent(){if(this.useSourceView){const t=await d.get(this.source);this.content=t.data,this.contentLoaded=!0}this.$emit("update:loaded",!0)},toggleEdit(){this.hasToggledInteractiveEmbedding=!0}}};var f=function(){var t=this,o=t._self._c;return t.useSourceView?o("div",{staticClass:"text-editor source-viewer",attrs:{id:"editor-container","data-text-el":"editor-container"}},[o(t.readerComponent,{tag:"Component",attrs:{content:t.content,"file-id":t.fileid,"read-only":!0,"show-menu-bar":!1}}),t.isEmbedded?o("NcButton",{staticClass:"toggle-interactive",on:{click:t.toggleEdit},scopedSlots:t._u([{key:"icon",fn:function(){return[o("PencilIcon")]},proxy:!0}],null,!1,411976917)},[t._v(" "+t._s(t.t("text","Edit"))+" ")]):t._e()],1):o("Editor",{class:{"text-editor--embedding":t.isEmbedded},attrs:{"file-id":t.fileid,"relative-path":t.filename,active:t.active||t.isEmbedded,autofocus:t.autofocus,"share-token":t.shareToken,mime:t.mime,"show-outline-outside":t.showOutlineOutside}})},h=[],g=l(p,f,h,!1,null,"368f5325");const R=g.exports;export{R as default};
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,3 +1,3 @@
|
|||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/PublicFilesEditor-DNjR06Wr.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-DMTabKmO.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-SoWZqoso.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-UepKU4-p.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-fZsuJKoo.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-B6WZzrWi.chunk.css'),window.OC.filePath('text', '', 'js/index-Br6XaFoY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DkzhscpN.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer--tuJJ_aO.chunk.css'),window.OC.filePath('text', '', 'js/RichWorkspace-Bd-kXAc3.chunk.mjs'),window.OC.filePath('text', '', 'js/Editor.singleton-CXHaEOHB.chunk.mjs'),window.OC.filePath('text', '', 'js/RichTextReader-CcJDAWO0.chunk.mjs'),window.OC.filePath('text', '', 'js/BaseReader-Z3-H-LQr.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-B9F7qpbl.chunk.mjs'),window.OC.filePath('text', '', 'js/index-COlIf7vj.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-CSBQhvYP.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-B4T8Bva5.chunk.mjs'),window.OC.filePath('text', '', 'js/public-DD-Yi-ho.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-Dz1mTuLN.chunk.css'),window.OC.filePath('text', '', 'css/BaseReader-BJvsPn00.chunk.css'),window.OC.filePath('text', '', 'css/RichTextReader-GsS_EREA.chunk.css'),window.OC.filePath('text', '', 'css/RichWorkspace-irRpBmr3.chunk.css')])))=>i.map(i=>d[i]);
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/PublicFilesEditor-BVRcgTqA.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-DMTabKmO.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-SoWZqoso.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-UepKU4-p.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-fZsuJKoo.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-B6WZzrWi.chunk.css'),window.OC.filePath('text', '', 'js/index-Br6XaFoY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DkzhscpN.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer--tuJJ_aO.chunk.css'),window.OC.filePath('text', '', 'js/RichWorkspace-DRosnCob.chunk.mjs'),window.OC.filePath('text', '', 'js/Editor.singleton-ukfQI2_k.chunk.mjs'),window.OC.filePath('text', '', 'js/RichTextReader-DKfS3Kkb.chunk.mjs'),window.OC.filePath('text', '', 'js/BaseReader-C0y7ujYJ.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-xQa-JZC0.chunk.mjs'),window.OC.filePath('text', '', 'js/index-COlIf7vj.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-CSBQhvYP.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-B4T8Bva5.chunk.mjs'),window.OC.filePath('text', '', 'js/public-DD-Yi-ho.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-Dz1mTuLN.chunk.css'),window.OC.filePath('text', '', 'css/BaseReader-BJvsPn00.chunk.css'),window.OC.filePath('text', '', 'css/RichTextReader-GsS_EREA.chunk.css'),window.OC.filePath('text', '', 'css/RichWorkspace-irRpBmr3.chunk.css')])))=>i.map(i=>d[i]);
|
||||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{_ as f,g as _,e as O}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{s as E,a as g,p as F}from"./public-DD-Yi-ho.chunk.mjs";import"./NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs";import{H as v,b as I,N as b,P as A,F as k}from"./index-BZeaSGSY.chunk.mjs";import{l as x}from"./index-Ubm2itxG.chunk.mjs";import{h as R,c as N}from"./index-Br6XaFoY.chunk.mjs";import{g as P}from"./token-DpxtlN7K.chunk.mjs";import{o as w}from"./mime-ChWVRLiA.chunk.mjs";import{s as T}from"./index-COlIf7vj.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";const V='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-text" viewBox="0 0 24 24"><path d="M21,6V8H3V6H21M3,18H12V16H3V18M3,13H21V11H3V13Z" /></svg>',h="Edit with text app",z=()=>{const i={attach(e){const o=e.fileList;o.id!=="files"&&o.id!=="files.public"||e.addMenuEntry({id:"file",displayName:t("text","New text file"),templateName:t("text","New text file")+"."+x("text","default_file_extension"),iconClass:"icon-filetype-text",fileType:"file",actionLabel:t("text","Create new text file"),actionHandler(c){o.createFile(c).then(function(n,d){const s=new OCA.Files.FileInfoModel(d);typeof OCA.Viewer<"u"?OCA.Files.fileActions.triggerAction("view",s,o):typeof OCA.Viewer>"u"&&OCA.Files.fileActions.triggerAction(h,s,o)})}})}};OC.Plugins.register("OCA.Files.NewFileMenu",i)},G=()=>{const i=P(),e=document.querySelector("#preview table.files-filestable");if(!i||!e){const o=document.createElement("div");o.id="text-viewer-fallback",document.body.appendChild(o);const c=n=>OCA.Files.fileActions.register(n,h,OC.PERMISSION_UPDATE|OC.PERMISSION_READ,R("core","actions/rename"),d=>{const s=window.FileList.findFile(d);Promise.all([f(()=>import("./vue.runtime.esm-fZsuJKoo.chunk.mjs").then(r=>r.v),[],import.meta.url),f(()=>import("./PublicFilesEditor-DNjR06Wr.chunk.mjs"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url)]).then(r=>{const a=window.FileList.getCurrentDirectory()+"/"+d,l=r[0].default;l.prototype.t=window.t,l.prototype.n=window.n,l.prototype.OCA=window.OCA;const u=r[1].default;new l({render:function(y){const C=this;return y(u,{props:{fileId:s?s.id:null,active:!0,shareToken:i,relativePath:a,mimeType:s.mimetype},on:{close:function(){C.$destroy()}}})}}).$mount(o)})},t("text","Edit"));for(let n=0;n<w.length;n++)c(w[n]),OCA.Files.fileActions.setDefault(w[n],h)}};let m=!1;const J=()=>{const i=t("text","Readme")+"."+x("text","default_file_extension");I({id:"rich-workspace-init",displayName:t("text","Add folder description"),category:b.Other,enabled(e){return Number(e.attributes["rich-workspace-file"])?!1:(e.permissions&A.CREATE)!==0},iconSvgInline:V,async handler(e,o){var a,l;const c=o.map(u=>u.basename);if(c.includes(i)){E(t("text",'"{name}" already exist!',{name:i}));return}const n=e.encodedSource+"/"+encodeURIComponent(i),d=await N({method:"PUT",url:n,headers:{Overwrite:"F"}}),s=parseInt(d.headers["oc-fileid"]),r=new k({source:e.source+"/"+i,id:s,mtime:new Date,mime:"text/markdown",owner:((a=_())==null?void 0:a.uid)||null,permissions:A.ALL,root:(e==null?void 0:e.root)||"/files/"+((l=_())==null?void 0:l.uid)});g(t("text",'Created "{name}"',{name:i})),c.length===0&&(m=r),O("files:node:created",r)}})};let p=null;const K=new v({id:"workspace",order:10,enabled(i,e){return e.id==="files"||e.id==="favorites"},async render(i,e,o){p&&(p.$destroy(),p=null);const c=!!e.attributes["rich-workspace-file"]||!!m,n=m?F.dirname(m.path):e.path,d=m?"":e.attributes["rich-workspace"];m=!1;const{default:s}=await f(async()=>{const{default:r}=await import("./RichWorkspace-Bd-kXAc3.chunk.mjs");return{default:r}},__vite__mapDeps([11,7,4,1,2,12,13,14,15,3,5,6,8,9,10,16,17,18,19,20,21,22,23]),import.meta.url);f(()=>import("./vue.runtime.esm-fZsuJKoo.chunk.mjs").then(r=>r.v),[],import.meta.url).then(r=>{i.id="files-workspace-wrapper";const a=r.default;a.prototype.t=window.t,a.prototype.n=window.n,a.prototype.OCA=window.OCA;const l=a.extend(s);p=new l({propsData:{path:n,hasRichWorkspace:c,content:d},store:T}).$mount(i)})},updated(i,e){m=!1;const o=!!i.attributes["rich-workspace-file"];p.path=i.path,p.hasRichWorkspace=o,p.content=i.attributes["rich-workspace"]}});export{h as FILE_ACTION_IDENTIFIER,K as FilesWorkspaceHeader,J as addMenuRichWorkspace,G as registerFileActionFallback,z as registerFileCreate};
|
||||
import{_ as f,g as _,e as O}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{s as E,a as g,p as F}from"./public-DD-Yi-ho.chunk.mjs";import"./NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs";import{H as v,b as I,N as b,P as A,F as k}from"./index-BZeaSGSY.chunk.mjs";import{l as x}from"./index-Ubm2itxG.chunk.mjs";import{h as R,c as N}from"./index-Br6XaFoY.chunk.mjs";import{g as P}from"./token-DpxtlN7K.chunk.mjs";import{o as w}from"./mime-ChWVRLiA.chunk.mjs";import{s as T}from"./index-COlIf7vj.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";const V='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-text" viewBox="0 0 24 24"><path d="M21,6V8H3V6H21M3,18H12V16H3V18M3,13H21V11H3V13Z" /></svg>',h="Edit with text app",z=()=>{const i={attach(e){const o=e.fileList;o.id!=="files"&&o.id!=="files.public"||e.addMenuEntry({id:"file",displayName:t("text","New text file"),templateName:t("text","New text file")+"."+x("text","default_file_extension"),iconClass:"icon-filetype-text",fileType:"file",actionLabel:t("text","Create new text file"),actionHandler(c){o.createFile(c).then(function(n,d){const s=new OCA.Files.FileInfoModel(d);typeof OCA.Viewer<"u"?OCA.Files.fileActions.triggerAction("view",s,o):typeof OCA.Viewer>"u"&&OCA.Files.fileActions.triggerAction(h,s,o)})}})}};OC.Plugins.register("OCA.Files.NewFileMenu",i)},G=()=>{const i=P(),e=document.querySelector("#preview table.files-filestable");if(!i||!e){const o=document.createElement("div");o.id="text-viewer-fallback",document.body.appendChild(o);const c=n=>OCA.Files.fileActions.register(n,h,OC.PERMISSION_UPDATE|OC.PERMISSION_READ,R("core","actions/rename"),d=>{const s=window.FileList.findFile(d);Promise.all([f(()=>import("./vue.runtime.esm-fZsuJKoo.chunk.mjs").then(r=>r.v),[],import.meta.url),f(()=>import("./PublicFilesEditor-BVRcgTqA.chunk.mjs"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url)]).then(r=>{const a=window.FileList.getCurrentDirectory()+"/"+d,l=r[0].default;l.prototype.t=window.t,l.prototype.n=window.n,l.prototype.OCA=window.OCA;const u=r[1].default;new l({render:function(y){const C=this;return y(u,{props:{fileId:s?s.id:null,active:!0,shareToken:i,relativePath:a,mimeType:s.mimetype},on:{close:function(){C.$destroy()}}})}}).$mount(o)})},t("text","Edit"));for(let n=0;n<w.length;n++)c(w[n]),OCA.Files.fileActions.setDefault(w[n],h)}};let m=!1;const J=()=>{const i=t("text","Readme")+"."+x("text","default_file_extension");I({id:"rich-workspace-init",displayName:t("text","Add folder description"),category:b.Other,enabled(e){return Number(e.attributes["rich-workspace-file"])?!1:(e.permissions&A.CREATE)!==0},iconSvgInline:V,async handler(e,o){var a,l;const c=o.map(u=>u.basename);if(c.includes(i)){E(t("text",'"{name}" already exist!',{name:i}));return}const n=e.encodedSource+"/"+encodeURIComponent(i),d=await N({method:"PUT",url:n,headers:{Overwrite:"F"}}),s=parseInt(d.headers["oc-fileid"]),r=new k({source:e.source+"/"+i,id:s,mtime:new Date,mime:"text/markdown",owner:((a=_())==null?void 0:a.uid)||null,permissions:A.ALL,root:(e==null?void 0:e.root)||"/files/"+((l=_())==null?void 0:l.uid)});g(t("text",'Created "{name}"',{name:i})),c.length===0&&(m=r),O("files:node:created",r)}})};let p=null;const K=new v({id:"workspace",order:10,enabled(i,e){return e.id==="files"||e.id==="favorites"},async render(i,e,o){p&&(p.$destroy(),p=null);const c=!!e.attributes["rich-workspace-file"]||!!m,n=m?F.dirname(m.path):e.path,d=m?"":e.attributes["rich-workspace"];m=!1;const{default:s}=await f(async()=>{const{default:r}=await import("./RichWorkspace-DRosnCob.chunk.mjs");return{default:r}},__vite__mapDeps([11,7,4,1,2,12,13,14,15,3,5,6,8,9,10,16,17,18,19,20,21,22,23]),import.meta.url);f(()=>import("./vue.runtime.esm-fZsuJKoo.chunk.mjs").then(r=>r.v),[],import.meta.url).then(r=>{i.id="files-workspace-wrapper";const a=r.default;a.prototype.t=window.t,a.prototype.n=window.n,a.prototype.OCA=window.OCA;const l=a.extend(s);p=new l({propsData:{path:n,hasRichWorkspace:c,content:d},store:T}).$mount(i)})},updated(i,e){m=!1;const o=!!i.attributes["rich-workspace-file"];p.path=i.path,p.hasRichWorkspace=o,p.content=i.attributes["rich-workspace"]}});export{h as FILE_ACTION_IDENTIFIER,K as FilesWorkspaceHeader,J as addMenuRichWorkspace,G as registerFileActionFallback,z as registerFileCreate};
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,3 +1,3 @@
|
|||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/MarkdownContentEditor-BVdIyiKb.chunk.mjs'),window.OC.filePath('text', '', 'js/Wrapper-CkKylWkY.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-fZsuJKoo.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-B9F7qpbl.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-UepKU4-p.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-SoWZqoso.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-B6WZzrWi.chunk.css'),window.OC.filePath('text', '', 'js/index-Br6XaFoY.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-DMTabKmO.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DkzhscpN.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer--tuJJ_aO.chunk.css'),window.OC.filePath('text', '', 'js/index-COlIf7vj.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-CSBQhvYP.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-B4T8Bva5.chunk.mjs'),window.OC.filePath('text', '', 'js/public-DD-Yi-ho.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-Dz1mTuLN.chunk.css'),window.OC.filePath('text', '', 'js/index-BH4h0gCH.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-B_yljjF_.chunk.css'),window.OC.filePath('text', '', 'css/MarkdownContentEditor-lQsXX8SY.chunk.css'),window.OC.filePath('text', '', 'js/Editor-DSAnRxVD.chunk.mjs'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-C5euUIBu.chunk.css')])))=>i.map(i=>d[i]);
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/MarkdownContentEditor-C-qOc9IT.chunk.mjs'),window.OC.filePath('text', '', 'js/Wrapper-D9C0MMsF.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-fZsuJKoo.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-xQa-JZC0.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-UepKU4-p.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-SoWZqoso.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-B6WZzrWi.chunk.css'),window.OC.filePath('text', '', 'js/index-Br6XaFoY.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-DMTabKmO.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DkzhscpN.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer--tuJJ_aO.chunk.css'),window.OC.filePath('text', '', 'js/index-COlIf7vj.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-CSBQhvYP.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-B4T8Bva5.chunk.mjs'),window.OC.filePath('text', '', 'js/public-DD-Yi-ho.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-Dz1mTuLN.chunk.css'),window.OC.filePath('text', '', 'js/index-BH4h0gCH.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-B_yljjF_.chunk.css'),window.OC.filePath('text', '', 'css/MarkdownContentEditor-lQsXX8SY.chunk.css'),window.OC.filePath('text', '', 'js/Editor-Cg2miCaA.chunk.mjs'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-C5euUIBu.chunk.css')])))=>i.map(i=>d[i]);
|
||||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
var C=o=>{throw TypeError(o)};var v=(o,t,e)=>t.has(o)||C("Cannot "+e);var n=(o,t,e)=>(v(o,t,"read from private field"),e?e.call(o):t.get(o)),y=(o,t,e)=>t.has(o)?C("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(o):t.set(o,e),f=(o,t,e,i)=>(v(o,t,"write to private field"),i?i.call(o,e):t.set(o,e),e),d=(o,t,e)=>(v(o,t,"access private method"),e);import{_ as T,s as V}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{V as m}from"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import{s as H}from"./index-COlIf7vj.chunk.mjs";import{A as U,E as D,H as N,a as Q,b as F}from"./MediaHandler.provider-CSBQhvYP.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./index-Br6XaFoY.chunk.mjs";import"./logger-B4T8Bva5.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";const j="1.2";m.prototype.t=window.t,m.prototype.n=window.n,m.prototype.OCA=window.OCA,window.OCA.Text={...window.OCA.Text};var r,h,s,u,_;class q{constructor(t,e){y(this,s);y(this,r);y(this,h);return f(this,r,t),f(this,h,e),d(this,s,_).call(this),this}onCreate(t=()=>{}){return n(this,r).$on("create:content",e=>{t(e)}),this}onLoaded(t=()=>{}){return n(this,r).$on("ready",()=>{t()}),this}onUpdate(t=()=>{}){return n(this,r).$on("update:content",e=>{t(e)}),this}onOutlineToggle(t=()=>{}){return n(this,r).$on("outline-toggled",e=>{t(e)}),this}onSearch(t=()=>{}){return V("text:editor:search-results",t),this}render(t){t.innerHTML="";const e=document.createElement("div");return t.appendChild(e),n(this,r).$mount(e),this}destroy(){n(this,r).$destroy(),n(this,r).$el.innerHTML=""}setContent(t){var e,i;return n(this,r).$set(n(this,h),"content",t),(i=(e=d(this,s,u).call(this))==null?void 0:e.setContent)==null||i.call(e,t),this}setSearchQuery(t,e){var i;((i=d(this,s,u).call(this))==null?void 0:i.$editor).commands.setSearchQuery(t,e)}searchNext(){var t;((t=d(this,s,u).call(this))==null?void 0:t.$editor).commands.nextMatch()}searchPrevious(){var t;((t=d(this,s,u).call(this))==null?void 0:t.$editor).commands.previousMatch()}async save(){var t,e;return(e=(t=d(this,s,u).call(this)).save)==null?void 0:e.call(t)}setShowOutline(t){return n(this,r).$set(n(this,h),"showOutlineOutside",t),this}setReadOnly(t){return n(this,r).$set(n(this,h),"readOnly",t),this}updateReadonlyBarProps(t){return n(this,r).$set(n(this,h),"readonlyBarProps",t),this}insertAtCursor(t){d(this,s,u).call(this).$editor.chain().insertContent(t).focus().run()}focus(){d(this,s,u).call(this).$editor.commands.focus()}}r=new WeakMap,h=new WeakMap,s=new WeakSet,u=function(){return n(this,r).$children[0]},_=function(){var t;window!=null&&window._oc_debug&&(this.vm=n(this,r),window.OCA.Text._debug=[...(t=window.OCA.Text._debug)!=null?t:[],this])};window.OCA.Text.apiVersion=j,window.OCA.Text.createEditor=async function({el:o,fileId:t=void 0,useSession:e=!0,filePath:i=void 0,shareToken:$=null,content:g="",readOnly:x=!1,autofocus:A=!0,readonlyBar:c={component:null,props:null},onCreate:P=({markdown:w})=>{},onLoaded:S=()=>{},onUpdate:b=({markdown:w})=>{},onOutlineToggle:I=w=>{},onFileInsert:E=void 0,onMentionSearch:L=void 0,onMentionInsert:M=void 0,onSearch:k=void 0}){const{default:w}=await T(async()=>{const{default:a}=await import("./MarkdownContentEditor-BVdIyiKb.chunk.mjs");return{default:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url),{default:B}=await T(async()=>{const{default:a}=await import("./Editor-DSAnRxVD.chunk.mjs").then(p=>p.b);return{default:a}},__vite__mapDeps([21,9,6,2,10,3,4,5,7,8,11,12,13,14,15,16,17,1,18,19,22,23]),import.meta.url),l=m.observable({showOutlineOutside:!1,readonlyBarProps:c.props,readOnly:x,content:g}),O=t&&e,R=new m({provide(){return{[U]:E,[D]:!!O,[N]:O?!0:L,[Q]:O?!0:M,[F]:{resolve(a,p){return[{type:"image",url:a}]}}}},data(){return l},render:a=>{const p=c!=null&&c.component?{readonlyBar:()=>a(c.component,{props:l.readonlyBarProps})}:{};return O?a(B,{props:{fileId:t,relativePath:i,shareToken:$,mime:"text/markdown",active:!0,autofocus:A,showOutlineOutside:l.showOutlineOutside},scopedSlots:p}):a(w,{props:{fileId:t,content:l.content,relativePath:i,shareToken:$,readOnly:l.readOnly,showOutlineOutside:l.showOutlineOutside},scopedSlots:p})},store:H});return new q(R,l).onCreate(P).onLoaded(S).onUpdate(b).onOutlineToggle(I).onSearch(k).render(o)};
|
||||
var C=o=>{throw TypeError(o)};var v=(o,t,e)=>t.has(o)||C("Cannot "+e);var n=(o,t,e)=>(v(o,t,"read from private field"),e?e.call(o):t.get(o)),y=(o,t,e)=>t.has(o)?C("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(o):t.set(o,e),f=(o,t,e,i)=>(v(o,t,"write to private field"),i?i.call(o,e):t.set(o,e),e),d=(o,t,e)=>(v(o,t,"access private method"),e);import{_ as T,s as V}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{V as m}from"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import{s as H}from"./index-COlIf7vj.chunk.mjs";import{A as U,E as D,H as N,a as Q,b as F}from"./MediaHandler.provider-CSBQhvYP.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./index-Br6XaFoY.chunk.mjs";import"./logger-B4T8Bva5.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";const j="1.2";m.prototype.t=window.t,m.prototype.n=window.n,m.prototype.OCA=window.OCA,window.OCA.Text={...window.OCA.Text};var r,h,s,u,_;class q{constructor(t,e){y(this,s);y(this,r);y(this,h);return f(this,r,t),f(this,h,e),d(this,s,_).call(this),this}onCreate(t=()=>{}){return n(this,r).$on("create:content",e=>{t(e)}),this}onLoaded(t=()=>{}){return n(this,r).$on("ready",()=>{t()}),this}onUpdate(t=()=>{}){return n(this,r).$on("update:content",e=>{t(e)}),this}onOutlineToggle(t=()=>{}){return n(this,r).$on("outline-toggled",e=>{t(e)}),this}onSearch(t=()=>{}){return V("text:editor:search-results",t),this}render(t){t.innerHTML="";const e=document.createElement("div");return t.appendChild(e),n(this,r).$mount(e),this}destroy(){n(this,r).$destroy(),n(this,r).$el.innerHTML=""}setContent(t){var e,i;return n(this,r).$set(n(this,h),"content",t),(i=(e=d(this,s,u).call(this))==null?void 0:e.setContent)==null||i.call(e,t),this}setSearchQuery(t,e){var i;((i=d(this,s,u).call(this))==null?void 0:i.$editor).commands.setSearchQuery(t,e)}searchNext(){var t;((t=d(this,s,u).call(this))==null?void 0:t.$editor).commands.nextMatch()}searchPrevious(){var t;((t=d(this,s,u).call(this))==null?void 0:t.$editor).commands.previousMatch()}async save(){var t,e;return(e=(t=d(this,s,u).call(this)).save)==null?void 0:e.call(t)}setShowOutline(t){return n(this,r).$set(n(this,h),"showOutlineOutside",t),this}setReadOnly(t){return n(this,r).$set(n(this,h),"readOnly",t),this}updateReadonlyBarProps(t){return n(this,r).$set(n(this,h),"readonlyBarProps",t),this}insertAtCursor(t){d(this,s,u).call(this).$editor.chain().insertContent(t).focus().run()}focus(){d(this,s,u).call(this).$editor.commands.focus()}}r=new WeakMap,h=new WeakMap,s=new WeakSet,u=function(){return n(this,r).$children[0]},_=function(){var t;window!=null&&window._oc_debug&&(this.vm=n(this,r),window.OCA.Text._debug=[...(t=window.OCA.Text._debug)!=null?t:[],this])};window.OCA.Text.apiVersion=j,window.OCA.Text.createEditor=async function({el:o,fileId:t=void 0,useSession:e=!0,filePath:i=void 0,shareToken:$=null,content:g="",readOnly:x=!1,autofocus:A=!0,readonlyBar:c={component:null,props:null},onCreate:P=({markdown:w})=>{},onLoaded:S=()=>{},onUpdate:b=({markdown:w})=>{},onOutlineToggle:I=w=>{},onFileInsert:E=void 0,onMentionSearch:L=void 0,onMentionInsert:M=void 0,onSearch:k=void 0}){const{default:w}=await T(async()=>{const{default:a}=await import("./MarkdownContentEditor-C-qOc9IT.chunk.mjs");return{default:a}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]),import.meta.url),{default:B}=await T(async()=>{const{default:a}=await import("./Editor-Cg2miCaA.chunk.mjs").then(p=>p.b);return{default:a}},__vite__mapDeps([21,9,6,2,10,3,4,5,7,8,11,12,13,14,15,16,17,1,18,19,22,23]),import.meta.url),l=m.observable({showOutlineOutside:!1,readonlyBarProps:c.props,readOnly:x,content:g}),O=t&&e,R=new m({provide(){return{[U]:E,[D]:!!O,[N]:O?!0:L,[Q]:O?!0:M,[F]:{resolve(a,p){return[{type:"image",url:a}]}}}},data(){return l},render:a=>{const p=c!=null&&c.component?{readonlyBar:()=>a(c.component,{props:l.readonlyBarProps})}:{};return O?a(B,{props:{fileId:t,relativePath:i,shareToken:$,mime:"text/markdown",active:!0,autofocus:A,showOutlineOutside:l.showOutlineOutside},scopedSlots:p}):a(w,{props:{fileId:t,content:l.content,relativePath:i,shareToken:$,readOnly:l.readOnly,showOutlineOutside:l.showOutlineOutside},scopedSlots:p})},store:H});return new q(R,l).onCreate(P).onLoaded(S).onUpdate(b).onOutlineToggle(I).onSearch(k).render(o)};
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/files-DbbETOXG.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-DMTabKmO.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-SoWZqoso.chunk.mjs'),window.OC.filePath('text', '', 'js/public-DD-Yi-ho.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-fZsuJKoo.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-B6WZzrWi.chunk.css'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/index-BZeaSGSY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DkzhscpN.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Br6XaFoY.chunk.mjs'),window.OC.filePath('text', '', 'js/token-DpxtlN7K.chunk.mjs'),window.OC.filePath('text', '', 'js/mime-ChWVRLiA.chunk.mjs'),window.OC.filePath('text', '', 'js/index-COlIf7vj.chunk.mjs'),window.OC.filePath('text', '', 'js/FilesSettings-BlWO2ht5.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-UepKU4-p.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer--tuJJ_aO.chunk.css'),window.OC.filePath('text', '', 'js/NcCheckboxRadioSwitch-CvMEEI9x-C9uZHPCA.chunk.mjs')])))=>i.map(i=>d[i]);
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/files-D_hx7lPN.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-DMTabKmO.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-SoWZqoso.chunk.mjs'),window.OC.filePath('text', '', 'js/public-DD-Yi-ho.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-fZsuJKoo.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-B6WZzrWi.chunk.css'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/index-BZeaSGSY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DkzhscpN.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Br6XaFoY.chunk.mjs'),window.OC.filePath('text', '', 'js/token-DpxtlN7K.chunk.mjs'),window.OC.filePath('text', '', 'js/mime-ChWVRLiA.chunk.mjs'),window.OC.filePath('text', '', 'js/index-COlIf7vj.chunk.mjs'),window.OC.filePath('text', '', 'js/FilesSettings-BlWO2ht5.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-UepKU4-p.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer--tuJJ_aO.chunk.css'),window.OC.filePath('text', '', 'js/NcCheckboxRadioSwitch-CvMEEI9x-C9uZHPCA.chunk.mjs')])))=>i.map(i=>d[i]);
|
||||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{_ as a}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{l as n}from"./index-Ubm2itxG.chunk.mjs";import{l as d}from"./logger-B4T8Bva5.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";const p=n("text","workspace_available"),c=n("text","workspace_enabled");document.addEventListener("DOMContentLoaded",async()=>{var o;if(typeof OCA.Viewer>"u"){const{registerFileActionFallback:e}=await a(async()=>{const{registerFileActionFallback:r}=await import("./files-DbbETOXG.chunk.mjs");return{registerFileActionFallback:r}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url);d.error("Viewer app is not installed"),e()}if(p&&OCA&&((o=OCA==null?void 0:OCA.Files)!=null&&o.Settings)){const{default:e}=await a(async()=>{const{default:t}=await import("./vue.runtime.esm-fZsuJKoo.chunk.mjs").then(i=>i.v);return{default:t}},[],import.meta.url),{default:r}=await a(async()=>{const{default:t}=await import("./FilesSettings-BlWO2ht5.chunk.mjs");return{default:t}},__vite__mapDeps([14,1,2,10,5,15,4,6,7,9,16,17]),import.meta.url),{default:l}=await a(async()=>{const{default:t}=await import("./index-COlIf7vj.chunk.mjs").then(i=>i.i);return{default:t}},__vite__mapDeps([13,5,10,1,2]),import.meta.url);e.prototype.t=window.t,e.prototype.n=window.n,e.prototype.OCA=window.OCA;const s=new e({render:t=>t(r,{}),store:l}).$mount().$el;OCA.Files.Settings.register(new OCA.Files.Settings.Setting("text",{el:()=>s}))}}),OCA.Text={RichWorkspaceEnabled:c};
|
||||
import{_ as a}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{l as n}from"./index-Ubm2itxG.chunk.mjs";import{l as d}from"./logger-B4T8Bva5.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";const p=n("text","workspace_available"),c=n("text","workspace_enabled");document.addEventListener("DOMContentLoaded",async()=>{var o;if(typeof OCA.Viewer>"u"){const{registerFileActionFallback:e}=await a(async()=>{const{registerFileActionFallback:r}=await import("./files-D_hx7lPN.chunk.mjs");return{registerFileActionFallback:r}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13]),import.meta.url);d.error("Viewer app is not installed"),e()}if(p&&OCA&&((o=OCA==null?void 0:OCA.Files)!=null&&o.Settings)){const{default:e}=await a(async()=>{const{default:t}=await import("./vue.runtime.esm-fZsuJKoo.chunk.mjs").then(i=>i.v);return{default:t}},[],import.meta.url),{default:r}=await a(async()=>{const{default:t}=await import("./FilesSettings-BlWO2ht5.chunk.mjs");return{default:t}},__vite__mapDeps([14,1,2,10,5,15,4,6,7,9,16,17]),import.meta.url),{default:l}=await a(async()=>{const{default:t}=await import("./index-COlIf7vj.chunk.mjs").then(i=>i.i);return{default:t}},__vite__mapDeps([13,5,10,1,2]),import.meta.url);e.prototype.t=window.t,e.prototype.n=window.n,e.prototype.OCA=window.OCA;const s=new e({render:t=>t(r,{}),store:l}).$mount().$el;OCA.Files.Settings.register(new OCA.Files.Settings.Setting("text",{el:()=>s}))}}),OCA.Text={RichWorkspaceEnabled:c};
|
||||
|
|
|
@ -1,2 +1,2 @@
|
|||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{r as o,a as r}from"./index-BZeaSGSY.chunk.mjs";import{l as t}from"./index-Ubm2itxG.chunk.mjs";import{addMenuRichWorkspace as p,FilesWorkspaceHeader as i}from"./files-DbbETOXG.chunk.mjs";import"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";import"./public-DD-Yi-ho.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs";import"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import"./index-Br6XaFoY.chunk.mjs";import"./token-DpxtlN7K.chunk.mjs";import"./mime-ChWVRLiA.chunk.mjs";import"./index-COlIf7vj.chunk.mjs";const a=t("text","workspace_available");o("nc:rich-workspace",{nc:"http://nextcloud.org/ns"}),o("nc:rich-workspace-file",{nc:"http://nextcloud.org/ns"}),a&&(p(),r(i));
|
||||
import{r as o,a as r}from"./index-BZeaSGSY.chunk.mjs";import{l as t}from"./index-Ubm2itxG.chunk.mjs";import{addMenuRichWorkspace as p,FilesWorkspaceHeader as i}from"./files-D_hx7lPN.chunk.mjs";import"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";import"./public-DD-Yi-ho.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs";import"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import"./index-Br6XaFoY.chunk.mjs";import"./token-DpxtlN7K.chunk.mjs";import"./mime-ChWVRLiA.chunk.mjs";import"./index-COlIf7vj.chunk.mjs";const a=t("text","workspace_available");o("nc:rich-workspace",{nc:"http://nextcloud.org/ns"}),o("nc:rich-workspace-file",{nc:"http://nextcloud.org/ns"}),a&&(p(),r(i));
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/Editor-DSAnRxVD.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-DMTabKmO.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-SoWZqoso.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-fZsuJKoo.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-B9F7qpbl.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-UepKU4-p.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-B6WZzrWi.chunk.css'),window.OC.filePath('text', '', 'js/index-Br6XaFoY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DkzhscpN.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer--tuJJ_aO.chunk.css'),window.OC.filePath('text', '', 'js/index-COlIf7vj.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-CSBQhvYP.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-B4T8Bva5.chunk.mjs'),window.OC.filePath('text', '', 'js/public-DD-Yi-ho.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-Dz1mTuLN.chunk.css'),window.OC.filePath('text', '', 'js/Wrapper-CkKylWkY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-BH4h0gCH.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-B_yljjF_.chunk.css'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-C5euUIBu.chunk.css')])))=>i.map(i=>d[i]);
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/Editor-Cg2miCaA.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-DMTabKmO.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-SoWZqoso.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-fZsuJKoo.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-xQa-JZC0.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-UepKU4-p.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-B6WZzrWi.chunk.css'),window.OC.filePath('text', '', 'js/index-Br6XaFoY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DkzhscpN.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer--tuJJ_aO.chunk.css'),window.OC.filePath('text', '', 'js/index-COlIf7vj.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-CSBQhvYP.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-B4T8Bva5.chunk.mjs'),window.OC.filePath('text', '', 'js/public-DD-Yi-ho.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-Dz1mTuLN.chunk.css'),window.OC.filePath('text', '', 'js/Wrapper-D9C0MMsF.chunk.mjs'),window.OC.filePath('text', '', 'js/index-BH4h0gCH.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-B_yljjF_.chunk.css'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-C5euUIBu.chunk.css')])))=>i.map(i=>d[i]);
|
||||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{_ as d,s as c,e as u}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{l as s}from"./index-Ubm2itxG.chunk.mjs";import{registerFileActionFallback as f,registerFileCreate as h}from"./files-DbbETOXG.chunk.mjs";import{l as g}from"./logger-B4T8Bva5.chunk.mjs";import{o as w}from"./mime-ChWVRLiA.chunk.mjs";import{s as p}from"./index-COlIf7vj.chunk.mjs";import y from"./RichWorkspace-Bd-kXAc3.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./public-DD-Yi-ho.chunk.mjs";import"./NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs";import"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import"./index-BZeaSGSY.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";import"./index-Br6XaFoY.chunk.mjs";import"./token-DpxtlN7K.chunk.mjs";import"./Editor.singleton-CXHaEOHB.chunk.mjs";import"./RichTextReader-CcJDAWO0.chunk.mjs";import"./BaseReader-Z3-H-LQr.chunk.mjs";import"./RichText-B9F7qpbl.chunk.mjs";import"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";import"./MediaHandler.provider-CSBQhvYP.chunk.mjs";const _=function(e){const i=()=>setTimeout(e,0);(document.attachEvent?document.readyState==="complete":document.readyState!=="loading")?i():document.addEventListener("DOMContentLoaded",e)},E={attach(e){const i=e.fileList,r=t("text","Readme")+"."+s("text","default_file_extension");i.id!=="files"&&i.id!=="files.public"||e.addMenuEntry({id:"rich-workspace-init",displayName:t("text","Add folder description"),templateName:r,iconClass:"icon-add-folder-description",fileType:"file",useInput:!1,actionHandler(){return window.FileList.createFile(r,{scrollTo:!1,animate:!1}).then(()=>u("Text::showRichWorkspace",{autofocus:!0}))},shouldShow(){return!i.findFile(r)}})}},v={el:null,attach(e){e.id!=="files"&&e.id!=="files.public"||(this.el=document.createElement("div"),e.registerHeader({id:"workspace",el:this.el,render:this.render.bind(this),priority:10}))},render(e){e.id!=="files"&&e.id!=="files.public"||(OC.Plugins.register("OCA.Files.NewFileMenu",E),d(()=>import("./vue.runtime.esm-fZsuJKoo.chunk.mjs").then(i=>i.v),[],import.meta.url).then(i=>{const r=i.default;this.el.id="files-workspace-wrapper",r.prototype.t=window.t,r.prototype.n=window.n,r.prototype.OCA=window.OCA;const a=r.extend(y),n=new a({propsData:{path:e.getCurrentDirectory(),hasRichWorkspace:!0},store:p}).$mount(this.el);c("files:navigation:changed",()=>{n.active=OCA.Files.App.getCurrentFileList()===e}),e.$el.on("urlChanged",o=>{n.path=o.dir.toString()}),e.$el.on("changeDirectory",o=>{n.path=o.dir.toString()})}))}},C=({sharingToken:e,mimetype:i,fileId:r,$el:a})=>{const n=document.createElement("div");n.id="texteditor",document.getElementById("app-content").appendChild(n),Promise.all([d(()=>import("./vue.runtime.esm-fZsuJKoo.chunk.mjs").then(o=>o.v),[],import.meta.url),d(()=>import("./Editor-DSAnRxVD.chunk.mjs").then(o=>o.b),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url)]).then(([o,l])=>({Vue:o.default,Editor:l.default})).then(({Vue:o,Editor:l})=>{o.prototype.t=window.t,o.prototype.OCA=window.OCA,new o({render:m=>m(l,{props:{active:!0,shareToken:e,mime:i,fileId:r}}),store:p}).$mount(a)}).catch(o=>g.error("Failed to attach editor",{error:o}))};_(()=>{var r;const e=document.getElementById("sharingToken")?document.getElementById("sharingToken").value:null;if(!e)return;if(document.querySelector("#preview table.files-filestable")){OC.Plugins.register("OCA.Files.FileList",v),f(),h();return}const i=(r=document.getElementById("mimetype"))==null?void 0:r.value;if(i&&w.indexOf(i)!==-1){const a=document.getElementById("preview"),n=s("text","file_id");C({mimetype:i,sharingToken:e,fileId:n,$el:a})}}),OCA.Text={RichWorkspaceEnabled:s("text","workspace_available")};
|
||||
import{_ as d,s as c,e as u}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{l as s}from"./index-Ubm2itxG.chunk.mjs";import{registerFileActionFallback as f,registerFileCreate as h}from"./files-D_hx7lPN.chunk.mjs";import{l as g}from"./logger-B4T8Bva5.chunk.mjs";import{o as w}from"./mime-ChWVRLiA.chunk.mjs";import{s as p}from"./index-COlIf7vj.chunk.mjs";import y from"./RichWorkspace-DRosnCob.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./public-DD-Yi-ho.chunk.mjs";import"./NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs";import"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import"./index-BZeaSGSY.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";import"./index-Br6XaFoY.chunk.mjs";import"./token-DpxtlN7K.chunk.mjs";import"./Editor.singleton-ukfQI2_k.chunk.mjs";import"./RichTextReader-DKfS3Kkb.chunk.mjs";import"./BaseReader-C0y7ujYJ.chunk.mjs";import"./RichText-xQa-JZC0.chunk.mjs";import"./_plugin-vue2_normalizer-UepKU4-p.chunk.mjs";import"./MediaHandler.provider-CSBQhvYP.chunk.mjs";const _=function(e){const i=()=>setTimeout(e,0);(document.attachEvent?document.readyState==="complete":document.readyState!=="loading")?i():document.addEventListener("DOMContentLoaded",e)},E={attach(e){const i=e.fileList,r=t("text","Readme")+"."+s("text","default_file_extension");i.id!=="files"&&i.id!=="files.public"||e.addMenuEntry({id:"rich-workspace-init",displayName:t("text","Add folder description"),templateName:r,iconClass:"icon-add-folder-description",fileType:"file",useInput:!1,actionHandler(){return window.FileList.createFile(r,{scrollTo:!1,animate:!1}).then(()=>u("Text::showRichWorkspace",{autofocus:!0}))},shouldShow(){return!i.findFile(r)}})}},v={el:null,attach(e){e.id!=="files"&&e.id!=="files.public"||(this.el=document.createElement("div"),e.registerHeader({id:"workspace",el:this.el,render:this.render.bind(this),priority:10}))},render(e){e.id!=="files"&&e.id!=="files.public"||(OC.Plugins.register("OCA.Files.NewFileMenu",E),d(()=>import("./vue.runtime.esm-fZsuJKoo.chunk.mjs").then(i=>i.v),[],import.meta.url).then(i=>{const r=i.default;this.el.id="files-workspace-wrapper",r.prototype.t=window.t,r.prototype.n=window.n,r.prototype.OCA=window.OCA;const a=r.extend(y),n=new a({propsData:{path:e.getCurrentDirectory(),hasRichWorkspace:!0},store:p}).$mount(this.el);c("files:navigation:changed",()=>{n.active=OCA.Files.App.getCurrentFileList()===e}),e.$el.on("urlChanged",o=>{n.path=o.dir.toString()}),e.$el.on("changeDirectory",o=>{n.path=o.dir.toString()})}))}},C=({sharingToken:e,mimetype:i,fileId:r,$el:a})=>{const n=document.createElement("div");n.id="texteditor",document.getElementById("app-content").appendChild(n),Promise.all([d(()=>import("./vue.runtime.esm-fZsuJKoo.chunk.mjs").then(o=>o.v),[],import.meta.url),d(()=>import("./Editor-Cg2miCaA.chunk.mjs").then(o=>o.b),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21]),import.meta.url)]).then(([o,l])=>({Vue:o.default,Editor:l.default})).then(({Vue:o,Editor:l})=>{o.prototype.t=window.t,o.prototype.OCA=window.OCA,new o({render:m=>m(l,{props:{active:!0,shareToken:e,mime:i,fileId:r}}),store:p}).$mount(a)}).catch(o=>g.error("Failed to attach editor",{error:o}))};_(()=>{var r;const e=document.getElementById("sharingToken")?document.getElementById("sharingToken").value:null;if(!e)return;if(document.querySelector("#preview table.files-filestable")){OC.Plugins.register("OCA.Files.FileList",v),f(),h();return}const i=(r=document.getElementById("mimetype"))==null?void 0:r.value;if(i&&w.indexOf(i)!==-1){const a=document.getElementById("preview"),n=s("text","file_id");C({mimetype:i,sharingToken:e,fileId:n,$el:a})}}),OCA.Text={RichWorkspaceEnabled:s("text","workspace_available")};
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/DirectEditing-IcSuaUsK.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-fZsuJKoo.chunk.mjs'),window.OC.filePath('text', '', 'js/Editor-DSAnRxVD.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-DMTabKmO.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-SoWZqoso.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-B9F7qpbl.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-UepKU4-p.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-B6WZzrWi.chunk.css'),window.OC.filePath('text', '', 'js/index-Br6XaFoY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DkzhscpN.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer--tuJJ_aO.chunk.css'),window.OC.filePath('text', '', 'js/index-COlIf7vj.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-CSBQhvYP.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-B4T8Bva5.chunk.mjs'),window.OC.filePath('text', '', 'js/public-DD-Yi-ho.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-Dz1mTuLN.chunk.css'),window.OC.filePath('text', '', 'js/Wrapper-CkKylWkY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-BH4h0gCH.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-B_yljjF_.chunk.css'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-C5euUIBu.chunk.css'),window.OC.filePath('text', '', 'css/DirectEditing-F1ck-_g2.chunk.css')])))=>i.map(i=>d[i]);
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/DirectEditing-DNFDgdRH.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-fZsuJKoo.chunk.mjs'),window.OC.filePath('text', '', 'js/Editor-Cg2miCaA.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-DMTabKmO.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-SoWZqoso.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-xQa-JZC0.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-UepKU4-p.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-B6WZzrWi.chunk.css'),window.OC.filePath('text', '', 'js/index-Br6XaFoY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DkzhscpN.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer--tuJJ_aO.chunk.css'),window.OC.filePath('text', '', 'js/index-COlIf7vj.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-CSBQhvYP.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-B4T8Bva5.chunk.mjs'),window.OC.filePath('text', '', 'js/public-DD-Yi-ho.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-Dz1mTuLN.chunk.css'),window.OC.filePath('text', '', 'js/Wrapper-D9C0MMsF.chunk.mjs'),window.OC.filePath('text', '', 'js/index-BH4h0gCH.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-B_yljjF_.chunk.css'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-C5euUIBu.chunk.css'),window.OC.filePath('text', '', 'css/DirectEditing-F1ck-_g2.chunk.css')])))=>i.map(i=>d[i]);
|
||||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{_ as e}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{s as n}from"./index-COlIf7vj.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import"./index-Br6XaFoY.chunk.mjs";document.getElementById("app-content")&&Promise.all([e(()=>import("./vue.runtime.esm-fZsuJKoo.chunk.mjs").then(t=>t.v),[],import.meta.url),e(()=>import("./DirectEditing-IcSuaUsK.chunk.mjs"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]),import.meta.url)]).then(t=>{const o=t[0].default;o.prototype.t=window.t,o.prototype.OCA=window.OCA;const r=t[1].default;new o({render:m=>m(r),store:n}).$mount(document.getElementById("app-content"))});
|
||||
import{_ as e}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{s as n}from"./index-COlIf7vj.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./vue.runtime.esm-fZsuJKoo.chunk.mjs";import"./index-Br6XaFoY.chunk.mjs";document.getElementById("app-content")&&Promise.all([e(()=>import("./vue.runtime.esm-fZsuJKoo.chunk.mjs").then(t=>t.v),[],import.meta.url),e(()=>import("./DirectEditing-DNFDgdRH.chunk.mjs"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]),import.meta.url)]).then(t=>{const o=t[0].default;o.prototype.t=window.t,o.prototype.OCA=window.OCA;const r=t[1].default;new o({render:m=>m(r),store:n}).$mount(document.getElementById("app-content"))});
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/ViewerComponent-DhDbbxX8.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-fZsuJKoo.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Br6XaFoY.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-DMTabKmO.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-SoWZqoso.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-B9F7qpbl.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-UepKU4-p.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-B6WZzrWi.chunk.css'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DkzhscpN.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer--tuJJ_aO.chunk.css'),window.OC.filePath('text', '', 'js/index-COlIf7vj.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-CSBQhvYP.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-B4T8Bva5.chunk.mjs'),window.OC.filePath('text', '', 'js/public-DD-Yi-ho.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-Dz1mTuLN.chunk.css'),window.OC.filePath('text', '', 'js/PlainTextReader-BnIv0khH.chunk.mjs'),window.OC.filePath('text', '', 'js/BaseReader-Z3-H-LQr.chunk.mjs'),window.OC.filePath('text', '', 'css/BaseReader-BJvsPn00.chunk.css'),window.OC.filePath('text', '', 'js/MarkdownContentEditor-BVdIyiKb.chunk.mjs'),window.OC.filePath('text', '', 'js/Wrapper-CkKylWkY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-BH4h0gCH.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-B_yljjF_.chunk.css'),window.OC.filePath('text', '', 'css/MarkdownContentEditor-lQsXX8SY.chunk.css'),window.OC.filePath('text', '', 'js/token-DpxtlN7K.chunk.mjs'),window.OC.filePath('text', '', 'js/Editor.singleton-CXHaEOHB.chunk.mjs'),window.OC.filePath('text', '', 'css/ViewerComponent-DIAyPUYC.chunk.css')])))=>i.map(i=>d[i]);
|
||||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/ViewerComponent-nJJg6mUl.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-fZsuJKoo.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Br6XaFoY.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-DMTabKmO.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-SoWZqoso.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-xQa-JZC0.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-UepKU4-p.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-2NlgRMlC.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-B6WZzrWi.chunk.css'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DkzhscpN.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer--tuJJ_aO.chunk.css'),window.OC.filePath('text', '', 'js/index-COlIf7vj.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-CSBQhvYP.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-B4T8Bva5.chunk.mjs'),window.OC.filePath('text', '', 'js/public-DD-Yi-ho.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-Dz1mTuLN.chunk.css'),window.OC.filePath('text', '', 'js/PlainTextReader-CV9BQXQe.chunk.mjs'),window.OC.filePath('text', '', 'js/BaseReader-C0y7ujYJ.chunk.mjs'),window.OC.filePath('text', '', 'css/BaseReader-BJvsPn00.chunk.css'),window.OC.filePath('text', '', 'js/MarkdownContentEditor-C-qOc9IT.chunk.mjs'),window.OC.filePath('text', '', 'js/Wrapper-D9C0MMsF.chunk.mjs'),window.OC.filePath('text', '', 'js/index-BH4h0gCH.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-B_yljjF_.chunk.css'),window.OC.filePath('text', '', 'css/MarkdownContentEditor-lQsXX8SY.chunk.css'),window.OC.filePath('text', '', 'js/token-DpxtlN7K.chunk.mjs'),window.OC.filePath('text', '', 'js/Editor.singleton-ukfQI2_k.chunk.mjs'),window.OC.filePath('text', '', 'css/ViewerComponent-DIAyPUYC.chunk.css')])))=>i.map(i=>d[i]);
|
||||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{_ as r}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{l as e}from"./logger-B4T8Bva5.chunk.mjs";import{a as t,b as o}from"./mime-ChWVRLiA.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";function i(){return r(()=>import("./ViewerComponent-DhDbbxX8.chunk.mjs"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url)}typeof OCA.Viewer>"u"?e.error("Viewer app is not installed"):OCA.Viewer.registerHandler({id:"text",mimes:[...t,...o],component:i,group:null,theme:"default",canCompare:!0});
|
||||
import{_ as r}from"./modulepreload-polyfill-DMTabKmO.chunk.mjs";import{l as e}from"./logger-B4T8Bva5.chunk.mjs";import{a as t,b as o}from"./mime-ChWVRLiA.chunk.mjs";import"./emoji-picker-SoWZqoso.chunk.mjs";import"./index-DkzhscpN.chunk.mjs";function i(){return r(()=>import("./ViewerComponent-nJJg6mUl.chunk.mjs"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27]),import.meta.url)}typeof OCA.Viewer>"u"?e.error("Viewer app is not installed"):OCA.Viewer.registerHandler({id:"text",mimes:[...t,...o],component:i,group:null,theme:"default",canCompare:!0});
|
||||
|
|
|
@ -65,7 +65,7 @@ version: 2.2.0
|
|||
license: GPL-3.0-or-later
|
||||
|
||||
@nextcloud/l10n
|
||||
version: 2.2.0
|
||||
version: 3.1.0
|
||||
license: GPL-3.0-or-later
|
||||
|
||||
@nextcloud/logger
|
||||
|
@ -269,7 +269,7 @@ version: 10.11.1
|
|||
license: MIT
|
||||
|
||||
@vueuse/shared
|
||||
version: 11.1.0
|
||||
version: 10.11.1
|
||||
license: MIT
|
||||
|
||||
ansi-regex
|
||||
|
|
Загрузка…
Ссылка в новой задаче