зеркало из 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:
Родитель
3a4d61112b
Коммит
b3a73c3b3c
|
@ -1,2 +1,2 @@
|
|||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{V as r}from"./vue.runtime.esm-DexIh3sa.chunk.mjs";import{E as l}from"./Editor-C7Ah-iQH.chunk.mjs";import{l as a}from"./logger-BVmsFChG.chunk.mjs";import{n as d}from"./_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs";import"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";import"./RichText-Da_pKqGl.chunk.mjs";import"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import"./index-C2LDH5Ba.chunk.mjs";import"./index-BcT2uKOB.chunk.mjs";import"./MediaHandler.provider-D-YH1kh0.chunk.mjs";import"./_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs";import"./Wrapper-BkCyPf_e.chunk.mjs";import"./_commonjs-dynamic-modules-CSduYUN4.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";const n=r.observable({messages:[],mtime:0}),s=(e,i)=>{a.debug("callMobileMessage ".concat(e),{attributes:i});let o=e;typeof i<"u"&&(o={MessageName:e,Values:i});let 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(o),window.postMessage(o)};window.addEventListener("message",function(e){n.messages.push(e.data),a.debug("postMessage",{message:e})});const c={name:"DirectEditing",components:{Editor:l},data(){return{initial:OCP.InitialState.loadState("text","file"),messages:n.messages,log:n,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",()=>{a.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)},u=[],w=d(c,m,u,!1,null,"942b8c7a",null,null);const C=w.exports;export{C as default};
|
||||
import{V as r}from"./vue.runtime.esm-DexIh3sa.chunk.mjs";import{E as l}from"./Editor-Bh4VzUso.chunk.mjs";import{l as a}from"./logger-BVmsFChG.chunk.mjs";import{n as d}from"./_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs";import"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";import"./RichText-BAdGI03u.chunk.mjs";import"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import"./index-C2LDH5Ba.chunk.mjs";import"./index-BcT2uKOB.chunk.mjs";import"./MediaHandler.provider-D-YH1kh0.chunk.mjs";import"./_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs";import"./Wrapper-B7ICWTeQ.chunk.mjs";import"./_commonjs-dynamic-modules-CSduYUN4.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";const n=r.observable({messages:[],mtime:0}),s=(e,i)=>{a.debug("callMobileMessage ".concat(e),{attributes:i});let o=e;typeof i<"u"&&(o={MessageName:e,Values:i});let 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(o),window.postMessage(o)};window.addEventListener("message",function(e){n.messages.push(e.data),a.debug("postMessage",{message:e})});const c={name:"DirectEditing",components:{Editor:l},data(){return{initial:OCP.InitialState.loadState("text","file"),messages:n.messages,log:n,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",()=>{a.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)},u=[],w=d(c,m,u,!1,null,"942b8c7a",null,null);const C=w.exports;export{C as default};
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,3 +1,3 @@
|
|||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/Editor-C7Ah-iQH.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-BV4VlZ1o.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-I9E7i3AY.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-DexIh3sa.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-Da_pKqGl.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-DRHbZemr.chunk.css'),window.OC.filePath('text', '', 'js/index-C2LDH5Ba.chunk.mjs'),window.OC.filePath('text', '', 'js/index-UmbwO-28.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer-BYq5wWTa.chunk.css'),window.OC.filePath('text', '', 'js/index-BcT2uKOB.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-D-YH1kh0.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-BVmsFChG.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-CRlZObVv.chunk.css'),window.OC.filePath('text', '', 'js/Wrapper-BkCyPf_e.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-BfLQoXX6.chunk.css'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-BLyMntzZ.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-Bh4VzUso.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-BV4VlZ1o.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-I9E7i3AY.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-DexIh3sa.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-BAdGI03u.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-DRHbZemr.chunk.css'),window.OC.filePath('text', '', 'js/index-C2LDH5Ba.chunk.mjs'),window.OC.filePath('text', '', 'js/index-UmbwO-28.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer-BYq5wWTa.chunk.css'),window.OC.filePath('text', '', 'js/index-BcT2uKOB.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-D-YH1kh0.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-BVmsFChG.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-CRlZObVv.chunk.css'),window.OC.filePath('text', '', 'js/Wrapper-B7ICWTeQ.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-BfLQoXX6.chunk.css'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-BLyMntzZ.chunk.css')])))=>i.map(i=>d[i]);
|
||||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{_ as i}from"./modulepreload-polyfill-BV4VlZ1o.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-C7Ah-iQH.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]),import.meta.url),{default:n}=await i(async()=>{const{default:t}=await import("./vue.runtime.esm-DexIh3sa.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-BV4VlZ1o.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-Bh4VzUso.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]),import.meta.url),{default:n}=await i(async()=>{const{default:t}=await import("./vue.runtime.esm-DexIh3sa.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,4FACrE,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-DQ3iXGkZ.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,4FACrE,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-CGDq6QR6.chunk.mjs"}
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,2 +1,2 @@
|
|||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{T as r,au as n}from"./RichText-Da_pKqGl.chunk.mjs";import{n as o,e as s}from"./_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs";import{B as a}from"./RichTextReader-BWROrGj5.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 l=function(){var e=this,t=e._self._c;return t("BaseReader",{attrs:{content:e.content}})},i=[],c=o(p,l,i,!1,null,null,null,null);const f=c.exports;export{f as P};
|
||||
import{T as r,au as n}from"./RichText-BAdGI03u.chunk.mjs";import{n as o,e as s}from"./_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs";import{B as a}from"./RichTextReader-DyOWWiFO.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 l=function(){var e=this,t=e._self._c;return t("BaseReader",{attrs:{content:e.content}})},i=[],c=o(p,l,i,!1,null,null,null,null);const f=c.exports;export{f as P};
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"PlainTextReader-BfIxVcTP.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":";0LAgBA,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-DsU9OgDx.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":";0LAgBA,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-C7Ah-iQH.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-BV4VlZ1o.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-I9E7i3AY.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-DexIh3sa.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-Da_pKqGl.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-DRHbZemr.chunk.css'),window.OC.filePath('text', '', 'js/index-C2LDH5Ba.chunk.mjs'),window.OC.filePath('text', '', 'js/index-UmbwO-28.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer-BYq5wWTa.chunk.css'),window.OC.filePath('text', '', 'js/index-BcT2uKOB.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-D-YH1kh0.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-BVmsFChG.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-CRlZObVv.chunk.css'),window.OC.filePath('text', '', 'js/Wrapper-BkCyPf_e.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-BfLQoXX6.chunk.css'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-BLyMntzZ.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-Bh4VzUso.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-BV4VlZ1o.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-I9E7i3AY.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-DexIh3sa.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-BAdGI03u.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-DRHbZemr.chunk.css'),window.OC.filePath('text', '', 'js/index-C2LDH5Ba.chunk.mjs'),window.OC.filePath('text', '', 'js/index-UmbwO-28.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer-BYq5wWTa.chunk.css'),window.OC.filePath('text', '', 'js/index-BcT2uKOB.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-D-YH1kh0.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-BVmsFChG.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-CRlZObVv.chunk.css'),window.OC.filePath('text', '', 'js/Wrapper-B7ICWTeQ.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-BfLQoXX6.chunk.css'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-BLyMntzZ.chunk.css')])))=>i.map(i=>d[i]);
|
||||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{_ as i}from"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import{n as l}from"./_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs";import{b as r}from"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import"./index-C2LDH5Ba.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./vue.runtime.esm-DexIh3sa.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";const a={name:"PublicFilesEditor",components:{NcModal:r,Editor:()=>i(()=>import("./Editor-C7Ah-iQH.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]),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()},n=[],m=l(a,o,n,!1,null,null,null,null);const _=m.exports;export{_ as default};
|
||||
import{_ as i}from"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import{n as l}from"./_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs";import{b as r}from"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import"./index-C2LDH5Ba.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./vue.runtime.esm-DexIh3sa.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";const a={name:"PublicFilesEditor",components:{NcModal:r,Editor:()=>i(()=>import("./Editor-Bh4VzUso.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]),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()},n=[],m=l(a,o,n,!1,null,null,null,null);const _=m.exports;export{_ as default};
|
|
@ -1 +1 @@
|
|||
{"version":3,"mappings":";;8XAkBA,MAAAA,EAAA,CACA,yBACA,YACA,QAAAC,EACA,WAAAC,EAAA,+CAAAC,KAAA,2FACA,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-D6akik_b.chunk.mjs"}
|
||||
{"version":3,"mappings":";;8XAkBA,MAAAA,EAAA,CACA,yBACA,YACA,QAAAC,EACA,WAAAC,EAAA,+CAAAC,KAAA,2FACA,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-ZnAb31zy.chunk.mjs"}
|
|
@ -1,2 +1,2 @@
|
|||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{P as o}from"./PlainTextReader-BfIxVcTP.chunk.mjs";import{R as e}from"./RichTextReader-BWROrGj5.chunk.mjs";import{n as i}from"./_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs";import"./RichText-Da_pKqGl.chunk.mjs";import"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import"./vue.runtime.esm-DexIh3sa.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import"./index-C2LDH5Ba.chunk.mjs";import"./index-BcT2uKOB.chunk.mjs";import"./MediaHandler.provider-D-YH1kh0.chunk.mjs";import"./logger-BVmsFChG.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";import"./_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs";import"./index-Ubm2itxG.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,null,null);const g=a.exports;export{g as default};
|
||||
import{P as o}from"./PlainTextReader-DsU9OgDx.chunk.mjs";import{R as e}from"./RichTextReader-DyOWWiFO.chunk.mjs";import{n as i}from"./_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs";import"./RichText-BAdGI03u.chunk.mjs";import"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import"./vue.runtime.esm-DexIh3sa.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import"./index-C2LDH5Ba.chunk.mjs";import"./index-BcT2uKOB.chunk.mjs";import"./MediaHandler.provider-D-YH1kh0.chunk.mjs";import"./logger-BVmsFChG.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";import"./_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs";import"./index-Ubm2itxG.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,null,null);const g=a.exports;export{g as default};
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"Reader-CMzCh9Io.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":";qrBAgBA,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-Cs0K3Q16.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":";qrBAgBA,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{aq as i,ar as s,af as a,av as d,W as c,X as l,R as p}from"./RichText-Da_pKqGl.chunk.mjs";import{i as u}from"./MediaHandler.provider-D-YH1kh0.chunk.mjs";import{n}from"./_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs";const h={name:"BaseReader",components:{EditorContent:i,EditorOutline:s},mixins:[a,d],provide(){const t={};return Object.defineProperties(t,{[u]:{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 c({content:this.htmlContent,extensions:this.extensions()})},updateContent(){this.$editor.commands.setContent(this.htmlContent,!0)}}};var m=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)},_=[],x=n(h,m,_,!1,null,"d9558d7c",null,null);const f=x.exports,C={name:"RichTextReader",components:{BaseReader:f},provide:{renderHtml(t){return l.render(t)},extensions(){return[p.configure({editing:!1})]}},props:{content:{type:String,required:!0}}};var v=function(){var t=this,e=t._self._c;return e("BaseReader",{attrs:{content:t.content},on:{"click-link":(r,o)=>t.$emit("click-link",r,o)}})},w=[],$=n(C,v,w,!1,null,null,null,null);const O=$.exports;export{f as B,O as R};
|
||||
import{aq as i,ar as s,af as a,av as d,W as c,X as l,R as p}from"./RichText-BAdGI03u.chunk.mjs";import{i as u}from"./MediaHandler.provider-D-YH1kh0.chunk.mjs";import{n}from"./_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs";const h={name:"BaseReader",components:{EditorContent:i,EditorOutline:s},mixins:[a,d],provide(){const t={};return Object.defineProperties(t,{[u]:{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 c({content:this.htmlContent,extensions:this.extensions()})},updateContent(){this.$editor.commands.setContent(this.htmlContent,!0)}}};var m=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)},_=[],x=n(h,m,_,!1,null,"d9558d7c",null,null);const f=x.exports,C={name:"RichTextReader",components:{BaseReader:f},provide:{renderHtml(t){return l.render(t)},extensions(){return[p.configure({editing:!1})]}},props:{content:{type:String,required:!0}}};var v=function(){var t=this,e=t._self._c;return e("BaseReader",{attrs:{content:t.content},on:{"click-link":(r,o)=>t.$emit("click-link",r,o)}})},w=[],$=n(C,v,w,!1,null,null,null,null);const O=$.exports;export{f as B,O as R};
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"RichTextReader-BWROrGj5.chunk.mjs","sources":["../src/components/BaseReader.vue","../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<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","<!--\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","EditorContent","EditorOutline","useOutlineStateMixin","useOutlineActions","val","EDITOR","Editor","BaseReader","content","markdownit","RichText"],"mappings":";2NA6BA,MAAAA,EAAA,CACA,KAAA,aACA,WAAA,CACA,cAAAC,EACA,cAAAC,CACA,EAEA,OAAA,CAAAC,EAAAC,CAAA,EAEA,SAAA,CACA,MAAAC,EAAA,CAAA,EAEA,cAAA,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,gkBClFAP,EAAA,CACA,KAAA,iBACA,WAAA,CAAA,WAAAQ,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-DyOWWiFO.chunk.mjs","sources":["../src/components/BaseReader.vue","../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<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","<!--\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","EditorContent","EditorOutline","useOutlineStateMixin","useOutlineActions","val","EDITOR","Editor","BaseReader","content","markdownit","RichText"],"mappings":";2NA6BA,MAAAA,EAAA,CACA,KAAA,aACA,WAAA,CACA,cAAAC,EACA,cAAAC,CACA,EAEA,OAAA,CAAAC,EAAAC,CAAA,EAEA,SAAA,CACA,MAAAC,EAAA,CAAA,EAEA,cAAA,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,gkBClFAP,EAAA,CACA,KAAA,iBACA,WAAA,CAAA,WAAAQ,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 h,c}from"./index-C2LDH5Ba.chunk.mjs";import{s,u as o}from"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import{g as l}from"./Editor.singleton-DQ3iXGkZ.chunk.mjs";import{R as d}from"./RichTextReader-BWROrGj5.chunk.mjs";import{n as p}from"./_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs";import"./vue.runtime.esm-DexIh3sa.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./RichText-Da_pKqGl.chunk.mjs";import"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import"./index-BcT2uKOB.chunk.mjs";import"./MediaHandler.provider-D-YH1kh0.chunk.mjs";import"./logger-BVmsFChG.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";import"./_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";const n=!!document.getElementById("isPublic"),u=h("apps/text"+(n?"/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 n&&(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",null,null);const A=R.exports;export{A as default};
|
||||
import{v as h,c}from"./index-C2LDH5Ba.chunk.mjs";import{s,u as o}from"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import{g as l}from"./Editor.singleton-CGDq6QR6.chunk.mjs";import{R as d}from"./RichTextReader-DyOWWiFO.chunk.mjs";import{n as p}from"./_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs";import"./vue.runtime.esm-DexIh3sa.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./RichText-BAdGI03u.chunk.mjs";import"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import"./index-BcT2uKOB.chunk.mjs";import"./MediaHandler.provider-D-YH1kh0.chunk.mjs";import"./logger-BVmsFChG.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";import"./_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";const n=!!document.getElementById("isPublic"),u=h("apps/text"+(n?"/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 n&&(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",null,null);const A=R.exports;export{A as default};
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,2 +1,2 @@
|
|||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{n as i}from"./_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs";import{c as n}from"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import"./index-C2LDH5Ba.chunk.mjs";import{A as o}from"./AvatarWrapper-D3aFeAwk.chunk.mjs";import{C as l,a as p}from"./Editor-C7Ah-iQH.chunk.mjs";import"./vue.runtime.esm-DexIh3sa.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./RichText-Da_pKqGl.chunk.mjs";import"./index-BcT2uKOB.chunk.mjs";import"./MediaHandler.provider-D-YH1kh0.chunk.mjs";import"./logger-BVmsFChG.chunk.mjs";import"./_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs";import"./Wrapper-BkCyPf_e.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-l&&(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-p?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",null,null);const O=v.exports;export{O as default};
|
||||
import{n as i}from"./_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs";import{c as n}from"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import"./index-C2LDH5Ba.chunk.mjs";import{A as o}from"./AvatarWrapper-D3aFeAwk.chunk.mjs";import{C as l,a as p}from"./Editor-Bh4VzUso.chunk.mjs";import"./vue.runtime.esm-DexIh3sa.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./RichText-BAdGI03u.chunk.mjs";import"./index-BcT2uKOB.chunk.mjs";import"./MediaHandler.provider-D-YH1kh0.chunk.mjs";import"./logger-BVmsFChG.chunk.mjs";import"./_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs";import"./Wrapper-B7ICWTeQ.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-l&&(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-p?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",null,null);const O=v.exports;export{O as default};
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,2 +1,2 @@
|
|||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{V as t}from"./vue.runtime.esm-DexIh3sa.chunk.mjs";import{c as d}from"./index-C2LDH5Ba.chunk.mjs";import{a4 as s}from"./RichText-Da_pKqGl.chunk.mjs";import{N as a}from"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import{P as i}from"./PlainTextReader-BfIxVcTP.chunk.mjs";import{R as n}from"./RichTextReader-BWROrGj5.chunk.mjs";import{t as r,f as l,n as m}from"./_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs";import{g as u}from"./token-DpxtlN7K.chunk.mjs";import{g as c}from"./Editor.singleton-DQ3iXGkZ.chunk.mjs";import"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./index-BcT2uKOB.chunk.mjs";import"./MediaHandler.provider-D-YH1kh0.chunk.mjs";import"./logger-BVmsFChG.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";import"./_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";t.prototype.t=r,t.prototype.n=l;const p={name:"ViewerComponent",components:{NcButton:t.extend(a),PencilIcon:t.extend(s),RichTextReader:t.extend(n),PlainTextReader:t.extend(i),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 e=await d.get(this.source);this.content=e.data,this.contentLoaded=!0}this.$emit("update:loaded",!0)},toggleEdit(){this.hasToggledInteractiveEmbedding=!0}}};var f=function(){var e=this,o=e._self._c;return e.useSourceView?o("div",{staticClass:"text-editor source-viewer",attrs:{id:"editor-container","data-text-el":"editor-container"}},[o(e.readerComponent,{tag:"Component",attrs:{content:e.content}}),e.isEmbedded?o("NcButton",{staticClass:"toggle-interactive",on:{click:e.toggleEdit},scopedSlots:e._u([{key:"icon",fn:function(){return[o("PencilIcon")]},proxy:!0}],null,!1,411976917)},[e._v(" "+e._s(e.t("text","Edit"))+" ")]):e._e()],1):o("Editor",{class:{"text-editor--embedding":e.isEmbedded},attrs:{"file-id":e.fileid,"relative-path":e.filename,active:e.active||e.isEmbedded,autofocus:e.autofocus,"share-token":e.shareToken,mime:e.mime,"show-outline-outside":e.showOutlineOutside}})},h=[],g=m(p,f,h,!1,null,"e6b62ae8",null,null);const R=g.exports;export{R as default};
|
||||
import{V as t}from"./vue.runtime.esm-DexIh3sa.chunk.mjs";import{c as d}from"./index-C2LDH5Ba.chunk.mjs";import{a4 as s}from"./RichText-BAdGI03u.chunk.mjs";import{N as a}from"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import{P as i}from"./PlainTextReader-DsU9OgDx.chunk.mjs";import{R as n}from"./RichTextReader-DyOWWiFO.chunk.mjs";import{t as r,f as l,n as m}from"./_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs";import{g as u}from"./token-DpxtlN7K.chunk.mjs";import{g as c}from"./Editor.singleton-CGDq6QR6.chunk.mjs";import"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./index-BcT2uKOB.chunk.mjs";import"./MediaHandler.provider-D-YH1kh0.chunk.mjs";import"./logger-BVmsFChG.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";import"./_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";t.prototype.t=r,t.prototype.n=l;const p={name:"ViewerComponent",components:{NcButton:t.extend(a),PencilIcon:t.extend(s),RichTextReader:t.extend(n),PlainTextReader:t.extend(i),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 e=await d.get(this.source);this.content=e.data,this.contentLoaded=!0}this.$emit("update:loaded",!0)},toggleEdit(){this.hasToggledInteractiveEmbedding=!0}}};var f=function(){var e=this,o=e._self._c;return e.useSourceView?o("div",{staticClass:"text-editor source-viewer",attrs:{id:"editor-container","data-text-el":"editor-container"}},[o(e.readerComponent,{tag:"Component",attrs:{content:e.content}}),e.isEmbedded?o("NcButton",{staticClass:"toggle-interactive",on:{click:e.toggleEdit},scopedSlots:e._u([{key:"icon",fn:function(){return[o("PencilIcon")]},proxy:!0}],null,!1,411976917)},[e._v(" "+e._s(e.t("text","Edit"))+" ")]):e._e()],1):o("Editor",{class:{"text-editor--embedding":e.isEmbedded},attrs:{"file-id":e.fileid,"relative-path":e.filename,active:e.active||e.isEmbedded,autofocus:e.autofocus,"share-token":e.shareToken,mime:e.mime,"show-outline-outside":e.showOutlineOutside}})},h=[],g=m(p,f,h,!1,null,"e6b62ae8",null,null);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-D6akik_b.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-BV4VlZ1o.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-I9E7i3AY.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-DexIh3sa.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-DRHbZemr.chunk.css'),window.OC.filePath('text', '', 'js/index-C2LDH5Ba.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/index-UmbwO-28.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer-BYq5wWTa.chunk.css'),window.OC.filePath('text', '', 'js/RichWorkspace-DhXPdJzW.chunk.mjs'),window.OC.filePath('text', '', 'js/Editor.singleton-DQ3iXGkZ.chunk.mjs'),window.OC.filePath('text', '', 'js/RichTextReader-BWROrGj5.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-Da_pKqGl.chunk.mjs'),window.OC.filePath('text', '', 'js/index-BcT2uKOB.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-D-YH1kh0.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-BVmsFChG.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-CRlZObVv.chunk.css'),window.OC.filePath('text', '', 'css/RichTextReader-jSftILGk.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-ZnAb31zy.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-BV4VlZ1o.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-I9E7i3AY.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-DexIh3sa.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-DRHbZemr.chunk.css'),window.OC.filePath('text', '', 'js/index-C2LDH5Ba.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/index-UmbwO-28.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer-BYq5wWTa.chunk.css'),window.OC.filePath('text', '', 'js/RichWorkspace-CfJCsqRn.chunk.mjs'),window.OC.filePath('text', '', 'js/Editor.singleton-CGDq6QR6.chunk.mjs'),window.OC.filePath('text', '', 'js/RichTextReader-DyOWWiFO.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-BAdGI03u.chunk.mjs'),window.OC.filePath('text', '', 'js/index-BcT2uKOB.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-D-YH1kh0.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-BVmsFChG.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-CRlZObVv.chunk.css'),window.OC.filePath('text', '', 'css/RichTextReader-jSftILGk.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,l as _,e as O}from"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import{H as g,b as E,N as v,P as A,F}from"./index-C2AIlEM1.chunk.mjs";import{h as I,c as b}from"./index-C2LDH5Ba.chunk.mjs";import{l as x}from"./index-Ubm2itxG.chunk.mjs";import{g as k}from"./token-DpxtlN7K.chunk.mjs";import{o as w}from"./mime-ChWVRLiA.chunk.mjs";import{s as R}from"./index-BcT2uKOB.chunk.mjs";import{s as N,a as P,p as T}from"./_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs";import"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";import"./vue.runtime.esm-DexIh3sa.chunk.mjs";const V="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='mdi-text'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M21,6V8H3V6H21M3,18H12V16H3V18M3,13H21V11H3V13Z'%20/%3e%3c/svg%3e",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(a,d){const n=new OCA.Files.FileInfoModel(d);typeof OCA.Viewer<"u"?OCA.Files.fileActions.triggerAction("view",n,o):typeof OCA.Viewer>"u"&&OCA.Files.fileActions.triggerAction(h,n,o)})}})}};OC.Plugins.register("OCA.Files.NewFileMenu",i)},G=()=>{const i=k(),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=a=>OCA.Files.fileActions.register(a,h,OC.PERMISSION_UPDATE|OC.PERMISSION_READ,I("core","actions/rename"),d=>{const n=window.FileList.findFile(d);Promise.all([f(()=>import("./vue.runtime.esm-DexIh3sa.chunk.mjs").then(r=>r.v),[],import.meta.url),f(()=>import("./PublicFilesEditor-D6akik_b.chunk.mjs"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url)]).then(r=>{const s=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:n?n.id:null,active:!0,shareToken:i,relativePath:s,mimeType:n.mimetype},on:{close:function(){C.$destroy()}}})}}).$mount(o)})},t("text","Edit"));for(let a=0;a<w.length;a++)c(w[a]),OCA.Files.fileActions.setDefault(w[a],h)}};let m=!1;const J=()=>{const i=t("text","Readme")+"."+x("text","default_file_extension");E({id:"rich-workspace-init",displayName:t("text","Add folder description"),category:v.CreateNew,enabled(e){return Number(e.attributes["rich-workspace-file"])?!1:(e.permissions&A.CREATE)!==0},iconSvgInline:V,async handler(e,o){var s,l;const c=o.map(u=>u.basename);if(c.includes(i)){N(t("text",'"{name}" already exist!',{name:i}));return}const a=e.encodedSource+"/"+encodeURIComponent(i),d=await b({method:"PUT",url:a,headers:{Overwrite:"F"}}),n=parseInt(d.headers["oc-fileid"]),r=new F({source:e.source+"/"+i,id:n,mtime:new Date,mime:"text/markdown",owner:((s=_())==null?void 0:s.uid)||null,permissions:A.ALL,root:(e==null?void 0:e.root)||"/files/"+((l=_())==null?void 0:l.uid)});P(t("text",'Created "{name}"',{name:i})),c.length===0&&(m=r),O("files:node:created",r)}})};let p=null;const K=new g({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,a=m?T.dirname(m.path):e.path,d=m?"":e.attributes["rich-workspace"];m=!1;const{default:n}=await f(async()=>{const{default:r}=await import("./RichWorkspace-DhXPdJzW.chunk.mjs");return{default:r}},__vite__mapDeps([11,7,4,1,2,12,13,14,3,5,6,8,9,10,15,16,17,18,19,20,21]),import.meta.url);f(()=>import("./vue.runtime.esm-DexIh3sa.chunk.mjs").then(r=>r.v),[],import.meta.url).then(r=>{i.id="files-workspace-wrapper";const s=r.default;s.prototype.t=window.t,s.prototype.n=window.n,s.prototype.OCA=window.OCA;const l=s.extend(n);p=new l({propsData:{path:a,hasRichWorkspace:c,content:d},store:R}).$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,l as _,e as O}from"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import{H as g,b as E,N as v,P as A,F}from"./index-C2AIlEM1.chunk.mjs";import{h as I,c as b}from"./index-C2LDH5Ba.chunk.mjs";import{l as x}from"./index-Ubm2itxG.chunk.mjs";import{g as k}from"./token-DpxtlN7K.chunk.mjs";import{o as w}from"./mime-ChWVRLiA.chunk.mjs";import{s as R}from"./index-BcT2uKOB.chunk.mjs";import{s as N,a as P,p as T}from"./_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs";import"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";import"./vue.runtime.esm-DexIh3sa.chunk.mjs";const V="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='mdi-text'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M21,6V8H3V6H21M3,18H12V16H3V18M3,13H21V11H3V13Z'%20/%3e%3c/svg%3e",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(a,d){const n=new OCA.Files.FileInfoModel(d);typeof OCA.Viewer<"u"?OCA.Files.fileActions.triggerAction("view",n,o):typeof OCA.Viewer>"u"&&OCA.Files.fileActions.triggerAction(h,n,o)})}})}};OC.Plugins.register("OCA.Files.NewFileMenu",i)},G=()=>{const i=k(),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=a=>OCA.Files.fileActions.register(a,h,OC.PERMISSION_UPDATE|OC.PERMISSION_READ,I("core","actions/rename"),d=>{const n=window.FileList.findFile(d);Promise.all([f(()=>import("./vue.runtime.esm-DexIh3sa.chunk.mjs").then(r=>r.v),[],import.meta.url),f(()=>import("./PublicFilesEditor-ZnAb31zy.chunk.mjs"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]),import.meta.url)]).then(r=>{const s=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:n?n.id:null,active:!0,shareToken:i,relativePath:s,mimeType:n.mimetype},on:{close:function(){C.$destroy()}}})}}).$mount(o)})},t("text","Edit"));for(let a=0;a<w.length;a++)c(w[a]),OCA.Files.fileActions.setDefault(w[a],h)}};let m=!1;const J=()=>{const i=t("text","Readme")+"."+x("text","default_file_extension");E({id:"rich-workspace-init",displayName:t("text","Add folder description"),category:v.CreateNew,enabled(e){return Number(e.attributes["rich-workspace-file"])?!1:(e.permissions&A.CREATE)!==0},iconSvgInline:V,async handler(e,o){var s,l;const c=o.map(u=>u.basename);if(c.includes(i)){N(t("text",'"{name}" already exist!',{name:i}));return}const a=e.encodedSource+"/"+encodeURIComponent(i),d=await b({method:"PUT",url:a,headers:{Overwrite:"F"}}),n=parseInt(d.headers["oc-fileid"]),r=new F({source:e.source+"/"+i,id:n,mtime:new Date,mime:"text/markdown",owner:((s=_())==null?void 0:s.uid)||null,permissions:A.ALL,root:(e==null?void 0:e.root)||"/files/"+((l=_())==null?void 0:l.uid)});P(t("text",'Created "{name}"',{name:i})),c.length===0&&(m=r),O("files:node:created",r)}})};let p=null;const K=new g({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,a=m?T.dirname(m.path):e.path,d=m?"":e.attributes["rich-workspace"];m=!1;const{default:n}=await f(async()=>{const{default:r}=await import("./RichWorkspace-CfJCsqRn.chunk.mjs");return{default:r}},__vite__mapDeps([11,7,4,1,2,12,13,14,3,5,6,8,9,10,15,16,17,18,19,20,21]),import.meta.url);f(()=>import("./vue.runtime.esm-DexIh3sa.chunk.mjs").then(r=>r.v),[],import.meta.url).then(r=>{i.id="files-workspace-wrapper";const s=r.default;s.prototype.t=window.t,s.prototype.n=window.n,s.prototype.OCA=window.OCA;const l=s.extend(n);p=new l({propsData:{path:a,hasRichWorkspace:c,content:d},store:R}).$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-DXdrNu2V.chunk.mjs'),window.OC.filePath('text', '', 'js/Wrapper-BkCyPf_e.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-DexIh3sa.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-Da_pKqGl.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-I9E7i3AY.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-DRHbZemr.chunk.css'),window.OC.filePath('text', '', 'js/index-C2LDH5Ba.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-BV4VlZ1o.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/index-UmbwO-28.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer-BYq5wWTa.chunk.css'),window.OC.filePath('text', '', 'js/index-BcT2uKOB.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-D-YH1kh0.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-BVmsFChG.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-CRlZObVv.chunk.css'),window.OC.filePath('text', '', 'css/Wrapper-BfLQoXX6.chunk.css'),window.OC.filePath('text', '', 'css/MarkdownContentEditor-B_SY1GJM.chunk.css'),window.OC.filePath('text', '', 'js/Editor-C7Ah-iQH.chunk.mjs'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-BLyMntzZ.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-CPXZkhO5.chunk.mjs'),window.OC.filePath('text', '', 'js/Wrapper-B7ICWTeQ.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-DexIh3sa.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-BAdGI03u.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-I9E7i3AY.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-DRHbZemr.chunk.css'),window.OC.filePath('text', '', 'js/index-C2LDH5Ba.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-BV4VlZ1o.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/index-UmbwO-28.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer-BYq5wWTa.chunk.css'),window.OC.filePath('text', '', 'js/index-BcT2uKOB.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-D-YH1kh0.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-BVmsFChG.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-CRlZObVv.chunk.css'),window.OC.filePath('text', '', 'css/Wrapper-BfLQoXX6.chunk.css'),window.OC.filePath('text', '', 'css/MarkdownContentEditor-B_SY1GJM.chunk.css'),window.OC.filePath('text', '', 'js/Editor-Bh4VzUso.chunk.mjs'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-BLyMntzZ.chunk.css')])))=>i.map(i=>d[i]);
|
||||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
var _=n=>{throw TypeError(n)};var y=(n,t,e)=>t.has(n)||_("Cannot "+e);var o=(n,t,e)=>(y(n,t,"read from private field"),e?e.call(n):t.get(n)),m=(n,t,e)=>t.has(n)?_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,e),v=(n,t,e,a)=>(y(n,t,"write to private field"),a?a.call(n,e):t.set(n,e),e),l=(n,t,e)=>(y(n,t,"access private method"),e);import{_ as g}from"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import{V as w}from"./vue.runtime.esm-DexIh3sa.chunk.mjs";import{s as V}from"./index-BcT2uKOB.chunk.mjs";import{A as R,E as H,H as U,a as B,b as D}from"./MediaHandler.provider-D-YH1kh0.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./index-C2LDH5Ba.chunk.mjs";import"./logger-BVmsFChG.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";const F="1.1";w.prototype.t=window.t,w.prototype.n=window.n,w.prototype.OCA=window.OCA,window.OCA.Text={...window.OCA.Text};var r,d,s,c,A;class N{constructor(t,e){m(this,s);m(this,r);m(this,d);return v(this,r,t),v(this,d,e),l(this,s,A).call(this),this}onLoaded(t=()=>{}){return o(this,r).$on("ready",()=>{t()}),this}onUpdate(t=()=>{}){return o(this,r).$on("update:content",e=>{t(e)}),this}onOutlineToggle(t=()=>{}){return o(this,r).$on("outline-toggled",e=>{t(e)}),this}render(t){t.innerHTML="";const e=document.createElement("div");return t.appendChild(e),o(this,r).$mount(e),this}destroy(){o(this,r).$destroy(),o(this,r).$el.innerHTML=""}setContent(t){var e,a;return o(this,r).$set(o(this,d),"content",t),(a=(e=l(this,s,c).call(this))==null?void 0:e.setContent)==null||a.call(e,t),this}async save(){var t,e;return(e=(t=l(this,s,c).call(this)).save)==null?void 0:e.call(t)}setShowOutline(t){return o(this,r).$set(o(this,d),"showOutlineOutside",t),this}setReadOnly(t){return o(this,r).$set(o(this,d),"readOnly",t),this}insertAtCursor(t){l(this,s,c).call(this).$editor.chain().insertContent(t).focus().run()}focus(){l(this,s,c).call(this).$editor.commands.focus()}}r=new WeakMap,d=new WeakMap,s=new WeakSet,c=function(){return o(this,r).$children[0]},A=function(){var t;window!=null&&window._oc_debug&&(this.vm=o(this,r),window.OCA.Text._debug=[...(t=window.OCA.Text._debug)!=null?t:[],this])};window.OCA.Text.apiVersion=F,window.OCA.Text.createEditor=async function({el:n,fileId:t=void 0,useSession:e=!0,filePath:a=void 0,shareToken:T=null,content:C="",readOnly:$=!1,autofocus:x=!0,readonlyBar:h={component:null,props:null},onLoaded:b=()=>{},onUpdate:I=({markdown:f})=>{},onOutlineToggle:E=f=>{},onFileInsert:L=void 0,onMentionSearch:k=void 0,onMentionInsert:M=void 0}){const{default:f}=await g(async()=>{const{default:i}=await import("./MarkdownContentEditor-DXdrNu2V.chunk.mjs");return{default:i}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]),import.meta.url),{default:P}=await g(async()=>{const{default:i}=await import("./Editor-C7Ah-iQH.chunk.mjs").then(p=>p.b);return{default:i}},__vite__mapDeps([20,9,6,2,10,3,4,5,7,8,11,12,13,14,15,16,17,1,18,21,22]),import.meta.url),u=w.observable({showOutlineOutside:!1,readOnly:$,content:C}),O=t&&e,S=new w({provide(){return{[R]:L,[H]:!!O,[U]:O?!0:k,[B]:O?!0:M,[D]:{resolve(i,p){return[{type:"image",url:i}]}}}},data(){return u},render:i=>{const p=h!=null&&h.component?{readonlyBar:()=>i(h.component,{props:h.props})}:{};return O?i(P,{props:{fileId:t,relativePath:a,shareToken:T,mime:"text/markdown",active:!0,autofocus:x,showOutlineOutside:u.showOutlineOutside},scopedSlots:p}):i(f,{props:{fileId:t,content:u.content,relativePath:a,shareToken:T,readOnly:u.readOnly,showOutlineOutside:u.showOutlineOutside},scopedSlots:p})},store:V});return new N(S,u).onLoaded(b).onUpdate(I).onOutlineToggle(E).render(n)};
|
||||
var $=o=>{throw TypeError(o)};var v=(o,t,e)=>t.has(o)||$("Cannot "+e);var n=(o,t,e)=>(v(o,t,"read from private field"),e?e.call(o):t.get(o)),O=(o,t,e)=>t.has(o)?$("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{_,s as H}from"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import{V as m}from"./vue.runtime.esm-DexIh3sa.chunk.mjs";import{s as R}from"./index-BcT2uKOB.chunk.mjs";import{A as U,E as B,H as D,a as N,b as Q}from"./MediaHandler.provider-D-YH1kh0.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./index-C2LDH5Ba.chunk.mjs";import"./logger-BVmsFChG.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";const F="1.1";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,g;class j{constructor(t,e){O(this,s);O(this,r);O(this,h);return f(this,r,t),f(this,h,e),d(this,s,g).call(this),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 H("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}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]},g=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=F,window.OCA.Text.createEditor=async function({el:o,fileId:t=void 0,useSession:e=!0,filePath:i=void 0,shareToken:T=null,content:C="",readOnly:x=!1,autofocus:A=!0,readonlyBar:c={component:null,props:null},onLoaded:S=()=>{},onUpdate:b=({markdown:y})=>{},onOutlineToggle:I=y=>{},onFileInsert:E=void 0,onMentionSearch:L=void 0,onMentionInsert:M=void 0,onSearch:P=void 0}){const{default:y}=await _(async()=>{const{default:a}=await import("./MarkdownContentEditor-CPXZkhO5.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]),import.meta.url),{default:k}=await _(async()=>{const{default:a}=await import("./Editor-Bh4VzUso.chunk.mjs").then(p=>p.b);return{default:a}},__vite__mapDeps([20,9,6,2,10,3,4,5,7,8,11,12,13,14,15,16,17,1,18,21,22]),import.meta.url),l=m.observable({showOutlineOutside:!1,readOnly:x,content:C}),w=t&&e,V=new m({provide(){return{[U]:E,[B]:!!w,[D]:w?!0:L,[N]:w?!0:M,[Q]:{resolve(a,p){return[{type:"image",url:a}]}}}},data(){return l},render:a=>{const p=c!=null&&c.component?{readonlyBar:()=>a(c.component,{props:c.props})}:{};return w?a(k,{props:{fileId:t,relativePath:i,shareToken:T,mime:"text/markdown",active:!0,autofocus:A,showOutlineOutside:l.showOutlineOutside},scopedSlots:p}):a(y,{props:{fileId:t,content:l.content,relativePath:i,shareToken:T,readOnly:l.readOnly,showOutlineOutside:l.showOutlineOutside},scopedSlots:p})},store:R});return new j(V,l).onLoaded(S).onUpdate(b).onOutlineToggle(I).onSearch(P).render(o)};
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -1,3 +1,3 @@
|
|||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/files-6JHrGECJ.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-BV4VlZ1o.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-I9E7i3AY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-C2AIlEM1.chunk.mjs'),window.OC.filePath('text', '', 'js/index-UmbwO-28.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-DexIh3sa.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-DRHbZemr.chunk.css'),window.OC.filePath('text', '', 'js/index-C2LDH5Ba.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-BcT2uKOB.chunk.mjs'),window.OC.filePath('text', '', 'js/FilesSettings-CQFhYsyh.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer-BYq5wWTa.chunk.css'),window.OC.filePath('text', '', 'js/NcCheckboxRadioSwitch-Dxh5eqs0-XcIS0h-5.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-bO9gCwDa.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-BV4VlZ1o.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-I9E7i3AY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-C2AIlEM1.chunk.mjs'),window.OC.filePath('text', '', 'js/index-UmbwO-28.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-DexIh3sa.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-DRHbZemr.chunk.css'),window.OC.filePath('text', '', 'js/index-C2LDH5Ba.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-BcT2uKOB.chunk.mjs'),window.OC.filePath('text', '', 'js/FilesSettings-CQFhYsyh.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer-BYq5wWTa.chunk.css'),window.OC.filePath('text', '', 'js/NcCheckboxRadioSwitch-Dxh5eqs0-XcIS0h-5.chunk.mjs')])))=>i.map(i=>d[i]);
|
||||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{_ as a}from"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import{l as n}from"./index-Ubm2itxG.chunk.mjs";import{l as d}from"./logger-BVmsFChG.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./index-UmbwO-28.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-6JHrGECJ.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-DexIh3sa.chunk.mjs").then(i=>i.v);return{default:t}},[],import.meta.url),{default:r}=await a(async()=>{const{default:t}=await import("./FilesSettings-CQFhYsyh.chunk.mjs");return{default:t}},__vite__mapDeps([14,1,2,10,8,15,7,9,6,4,16,17]),import.meta.url),{default:l}=await a(async()=>{const{default:t}=await import("./index-BcT2uKOB.chunk.mjs").then(i=>i.i);return{default:t}},__vite__mapDeps([13,8,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-BV4VlZ1o.chunk.mjs";import{l as n}from"./index-Ubm2itxG.chunk.mjs";import{l as d}from"./logger-BVmsFChG.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./index-UmbwO-28.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-bO9gCwDa.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-DexIh3sa.chunk.mjs").then(i=>i.v);return{default:t}},[],import.meta.url),{default:r}=await a(async()=>{const{default:t}=await import("./FilesSettings-CQFhYsyh.chunk.mjs");return{default:t}},__vite__mapDeps([14,1,2,10,8,15,7,9,6,4,16,17]),import.meta.url),{default:l}=await a(async()=>{const{default:t}=await import("./index-BcT2uKOB.chunk.mjs").then(i=>i.i);return{default:t}},__vite__mapDeps([13,8,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-C2AIlEM1.chunk.mjs";import{l as t}from"./index-Ubm2itxG.chunk.mjs";import{addMenuRichWorkspace as p,FilesWorkspaceHeader as i}from"./files-6JHrGECJ.chunk.mjs";import"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";import"./_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import"./vue.runtime.esm-DexIh3sa.chunk.mjs";import"./index-C2LDH5Ba.chunk.mjs";import"./token-DpxtlN7K.chunk.mjs";import"./mime-ChWVRLiA.chunk.mjs";import"./index-BcT2uKOB.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-C2AIlEM1.chunk.mjs";import{l as t}from"./index-Ubm2itxG.chunk.mjs";import{addMenuRichWorkspace as p,FilesWorkspaceHeader as i}from"./files-bO9gCwDa.chunk.mjs";import"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";import"./_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import"./vue.runtime.esm-DexIh3sa.chunk.mjs";import"./index-C2LDH5Ba.chunk.mjs";import"./token-DpxtlN7K.chunk.mjs";import"./mime-ChWVRLiA.chunk.mjs";import"./index-BcT2uKOB.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-C7Ah-iQH.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-BV4VlZ1o.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-I9E7i3AY.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-DexIh3sa.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-Da_pKqGl.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-DRHbZemr.chunk.css'),window.OC.filePath('text', '', 'js/index-C2LDH5Ba.chunk.mjs'),window.OC.filePath('text', '', 'js/index-UmbwO-28.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer-BYq5wWTa.chunk.css'),window.OC.filePath('text', '', 'js/index-BcT2uKOB.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-D-YH1kh0.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-BVmsFChG.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-CRlZObVv.chunk.css'),window.OC.filePath('text', '', 'js/Wrapper-BkCyPf_e.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-BfLQoXX6.chunk.css'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-BLyMntzZ.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-Bh4VzUso.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-BV4VlZ1o.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-I9E7i3AY.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-DexIh3sa.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-BAdGI03u.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-DRHbZemr.chunk.css'),window.OC.filePath('text', '', 'js/index-C2LDH5Ba.chunk.mjs'),window.OC.filePath('text', '', 'js/index-UmbwO-28.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer-BYq5wWTa.chunk.css'),window.OC.filePath('text', '', 'js/index-BcT2uKOB.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-D-YH1kh0.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-BVmsFChG.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-CRlZObVv.chunk.css'),window.OC.filePath('text', '', 'js/Wrapper-B7ICWTeQ.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-BfLQoXX6.chunk.css'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-BLyMntzZ.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-BV4VlZ1o.chunk.mjs";import{l as s}from"./index-Ubm2itxG.chunk.mjs";import{registerFileActionFallback as f,registerFileCreate as h}from"./files-6JHrGECJ.chunk.mjs";import{l as g}from"./logger-BVmsFChG.chunk.mjs";import{o as w}from"./mime-ChWVRLiA.chunk.mjs";import{s as p}from"./index-BcT2uKOB.chunk.mjs";import y from"./RichWorkspace-DhXPdJzW.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./index-C2AIlEM1.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";import"./_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs";import"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import"./vue.runtime.esm-DexIh3sa.chunk.mjs";import"./index-C2LDH5Ba.chunk.mjs";import"./token-DpxtlN7K.chunk.mjs";import"./Editor.singleton-DQ3iXGkZ.chunk.mjs";import"./RichTextReader-BWROrGj5.chunk.mjs";import"./RichText-Da_pKqGl.chunk.mjs";import"./_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs";import"./MediaHandler.provider-D-YH1kh0.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-DexIh3sa.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-DexIh3sa.chunk.mjs").then(o=>o.v),[],import.meta.url),d(()=>import("./Editor-C7Ah-iQH.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]),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-BV4VlZ1o.chunk.mjs";import{l as s}from"./index-Ubm2itxG.chunk.mjs";import{registerFileActionFallback as f,registerFileCreate as h}from"./files-bO9gCwDa.chunk.mjs";import{l as g}from"./logger-BVmsFChG.chunk.mjs";import{o as w}from"./mime-ChWVRLiA.chunk.mjs";import{s as p}from"./index-BcT2uKOB.chunk.mjs";import y from"./RichWorkspace-CfJCsqRn.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./index-C2AIlEM1.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";import"./_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs";import"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import"./vue.runtime.esm-DexIh3sa.chunk.mjs";import"./index-C2LDH5Ba.chunk.mjs";import"./token-DpxtlN7K.chunk.mjs";import"./Editor.singleton-CGDq6QR6.chunk.mjs";import"./RichTextReader-DyOWWiFO.chunk.mjs";import"./RichText-BAdGI03u.chunk.mjs";import"./_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs";import"./MediaHandler.provider-D-YH1kh0.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-DexIh3sa.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-DexIh3sa.chunk.mjs").then(o=>o.v),[],import.meta.url),d(()=>import("./Editor-Bh4VzUso.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]),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-D4SCrRHO.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-DexIh3sa.chunk.mjs'),window.OC.filePath('text', '', 'js/Editor-C7Ah-iQH.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-BV4VlZ1o.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-I9E7i3AY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-Da_pKqGl.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-DRHbZemr.chunk.css'),window.OC.filePath('text', '', 'js/index-C2LDH5Ba.chunk.mjs'),window.OC.filePath('text', '', 'js/index-UmbwO-28.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer-BYq5wWTa.chunk.css'),window.OC.filePath('text', '', 'js/index-BcT2uKOB.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-D-YH1kh0.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-BVmsFChG.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-CRlZObVv.chunk.css'),window.OC.filePath('text', '', 'js/Wrapper-BkCyPf_e.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-BfLQoXX6.chunk.css'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-BLyMntzZ.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-BaRKLtiT.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-DexIh3sa.chunk.mjs'),window.OC.filePath('text', '', 'js/Editor-Bh4VzUso.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-BV4VlZ1o.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-I9E7i3AY.chunk.mjs'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-BAdGI03u.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-DRHbZemr.chunk.css'),window.OC.filePath('text', '', 'js/index-C2LDH5Ba.chunk.mjs'),window.OC.filePath('text', '', 'js/index-UmbwO-28.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer-BYq5wWTa.chunk.css'),window.OC.filePath('text', '', 'js/index-BcT2uKOB.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-D-YH1kh0.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-BVmsFChG.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-CRlZObVv.chunk.css'),window.OC.filePath('text', '', 'js/Wrapper-B7ICWTeQ.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-BfLQoXX6.chunk.css'),window.OC.filePath('text', '', 'js/_commonjs-dynamic-modules-CSduYUN4.chunk.mjs'),window.OC.filePath('text', '', 'css/Editor-BLyMntzZ.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-BV4VlZ1o.chunk.mjs";import{s as n}from"./index-BcT2uKOB.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./vue.runtime.esm-DexIh3sa.chunk.mjs";import"./index-C2LDH5Ba.chunk.mjs";document.getElementById("app-content")&&Promise.all([e(()=>import("./vue.runtime.esm-DexIh3sa.chunk.mjs").then(t=>t.v),[],import.meta.url),e(()=>import("./DirectEditing-D4SCrRHO.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]),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-BV4VlZ1o.chunk.mjs";import{s as n}from"./index-BcT2uKOB.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./vue.runtime.esm-DexIh3sa.chunk.mjs";import"./index-C2LDH5Ba.chunk.mjs";document.getElementById("app-content")&&Promise.all([e(()=>import("./vue.runtime.esm-DexIh3sa.chunk.mjs").then(t=>t.v),[],import.meta.url),e(()=>import("./DirectEditing-BaRKLtiT.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]),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-t4UhxG7I.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-DexIh3sa.chunk.mjs'),window.OC.filePath('text', '', 'js/index-C2LDH5Ba.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-BV4VlZ1o.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-I9E7i3AY.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-Da_pKqGl.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-DRHbZemr.chunk.css'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/index-UmbwO-28.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer-BYq5wWTa.chunk.css'),window.OC.filePath('text', '', 'js/index-BcT2uKOB.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-D-YH1kh0.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-BVmsFChG.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-CRlZObVv.chunk.css'),window.OC.filePath('text', '', 'js/PlainTextReader-BfIxVcTP.chunk.mjs'),window.OC.filePath('text', '', 'js/RichTextReader-BWROrGj5.chunk.mjs'),window.OC.filePath('text', '', 'css/RichTextReader-jSftILGk.chunk.css'),window.OC.filePath('text', '', 'js/token-DpxtlN7K.chunk.mjs'),window.OC.filePath('text', '', 'js/Editor.singleton-DQ3iXGkZ.chunk.mjs'),window.OC.filePath('text', '', 'css/ViewerComponent-B60SU6pG.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-Bgowo7Ij.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-DexIh3sa.chunk.mjs'),window.OC.filePath('text', '', 'js/index-C2LDH5Ba.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-BV4VlZ1o.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-I9E7i3AY.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-BAdGI03u.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-CImn6F9p-DRHbZemr.chunk.css'),window.OC.filePath('text', '', 'js/index-Ubm2itxG.chunk.mjs'),window.OC.filePath('text', '', 'js/index-UmbwO-28.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer-BYq5wWTa.chunk.css'),window.OC.filePath('text', '', 'js/index-BcT2uKOB.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-D-YH1kh0.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-BVmsFChG.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-CRlZObVv.chunk.css'),window.OC.filePath('text', '', 'js/PlainTextReader-DsU9OgDx.chunk.mjs'),window.OC.filePath('text', '', 'js/RichTextReader-DyOWWiFO.chunk.mjs'),window.OC.filePath('text', '', 'css/RichTextReader-jSftILGk.chunk.css'),window.OC.filePath('text', '', 'js/token-DpxtlN7K.chunk.mjs'),window.OC.filePath('text', '', 'js/Editor.singleton-CGDq6QR6.chunk.mjs'),window.OC.filePath('text', '', 'css/ViewerComponent-B60SU6pG.chunk.css')])))=>i.map(i=>d[i]);
|
||||
/*! third party licenses: js/vendor.LICENSE.txt */
|
||||
import{_ as r}from"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import{l as e}from"./logger-BVmsFChG.chunk.mjs";import{a as t,b as o}from"./mime-ChWVRLiA.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";function i(){return r(()=>import("./ViewerComponent-t4UhxG7I.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]),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-BV4VlZ1o.chunk.mjs";import{l as e}from"./logger-BVmsFChG.chunk.mjs";import{a as t,b as o}from"./mime-ChWVRLiA.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./index-UmbwO-28.chunk.mjs";function i(){return r(()=>import("./ViewerComponent-Bgowo7Ij.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]),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});
|
||||
|
|
|
@ -85,7 +85,7 @@ version: 2.2.1
|
|||
license: GPL-3.0-or-later
|
||||
|
||||
@nextcloud/router
|
||||
version: 3.0.1
|
||||
version: 2.2.1
|
||||
license: GPL-3.0-or-later
|
||||
|
||||
@nextcloud/sharing
|
||||
|
|
Загрузка…
Ссылка в новой задаче