-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: nextcloud-command <[email protected]>
- Loading branch information
1 parent
c8eb7a5
commit 97289d7
Showing
40 changed files
with
35 additions
and
34 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import{V as r}from"./vue.runtime.esm-DuKaSI2H.chunk.mjs";import{E as d}from"./Editor-CwQPiK0V.chunk.mjs";import{l as n}from"./logger-YW53u4Eu.chunk.mjs";import{n as l}from"./_plugin-vue2_normalizer-BK4l00Gr.chunk.mjs";import"./modulepreload-polyfill-DCUwxYMh.chunk.mjs";import"./emoji-picker-Coav-X6q.chunk.mjs";import"./index-CJ7wDv5l.chunk.mjs";import"./NcNoteCard-C6xb7vi0-CiJrTXl7.chunk.mjs";import"./index-yu-Qonpw.chunk.mjs";import"./_plugin-vue2_normalizer-BNL0n0sv-CsOIo-oZ.chunk.mjs";import"./index-DtTpkYe5.chunk.mjs";import"./index-BJO9ejcj.chunk.mjs";import"./RichText-BY9ALf6h.chunk.mjs";import"./index-DValGwvd.chunk.mjs";import"./MediaHandler.provider-erZi6c8Y.chunk.mjs";import"./Wrapper-CqoaC3t_.chunk.mjs";const o=r.observable({messages:[],mtime:0}),s=(e,i)=>{n.debug("callMobileMessage ".concat(e),{attributes:i});let a=e,t=null;try{t=JSON.stringify(i)}catch{t=null}window.DirectEditingMobileInterface&&typeof window.DirectEditingMobileInterface[e]=="function"&&(t===null||typeof t>"u"?window.DirectEditingMobileInterface[e]():window.DirectEditingMobileInterface[e](t)),window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DirectEditingMobileInterface&&window.webkit.messageHandlers.DirectEditingMobileInterface.postMessage(a),window.postMessage(a)};window.addEventListener("message",function(e){o.messages.push(e.data),n.debug("postMessage",{message:e})});const c={name:"DirectEditing",components:{Editor:d},data(){return{initial:OCP.InitialState.loadState("text","file"),messages:o.messages,log:o,saving:!1}},computed:{initialSession(){return JSON.parse(this.initial.session)||null},isMobile(){return window.DirectEditingMobileInterface||window.webkit&&window.webkit.messageHandlers&&window.webkit.messageHandlers.DirectEditingMobileInterface}},beforeMount(){s("loading")},mounted(){document.querySelector('meta[name="viewport"]').setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"),this.$refs.editor.$on("push:forbidden",()=>{n.warn("push was forbidden due to invalidated session"),this.reload()})},methods:{async close(){this.saving=!0,setTimeout(async()=>{await this.$refs.editor.$destroy(),s("close")},0)},share(){s("share")},loaded(){s("loaded")},reload(){s("reload")}}};var m=function(){var e=this,i=e._self._c;return i("div",{class:{"icon-loading":e.saving},attrs:{id:"direct-editor"}},[i("Editor",{ref:"editor",attrs:{"initial-session":e.initialSession,"file-id":e.initial.fileId,active:!0,mime:e.initial.mimetype,"is-direct-editing":!0},on:{ready:e.loaded},scopedSlots:e._u([e.isMobile?{key:"header",fn:function(){return[i("button",{staticClass:"icon-share",on:{click:e.share}}),i("button",{staticClass:"icon-close",on:{click:e.close}})]},proxy:!0}:null],null,!0)})],1)},w=[],u=l(c,m,w,!1,null,"942b8c7a");const C=u.exports;export{C as default}; |
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
js/DirectEditing-B0BeeQk4.chunk.mjs.map → js/DirectEditing-DYREuVbz.chunk.mjs.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('text', '', 'js/Editor-CwQPiK0V.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill-DCUwxYMh.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker-Coav-X6q.chunk.mjs'),window.OC.filePath('text', '', 'js/vue.runtime.esm-DuKaSI2H.chunk.mjs'),window.OC.filePath('text', '', 'js/index-CJ7wDv5l.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-C6xb7vi0-CiJrTXl7.chunk.mjs'),window.OC.filePath('text', '', 'css/NcNoteCard-C6xb7vi0-8w2LAIqc.chunk.css'),window.OC.filePath('text', '', 'js/index-yu-Qonpw.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-BNL0n0sv-CsOIo-oZ.chunk.mjs'),window.OC.filePath('text', '', 'js/index-DtTpkYe5.chunk.mjs'),window.OC.filePath('text', '', 'js/index-BJO9ejcj.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText-BY9ALf6h.chunk.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer-BK4l00Gr.chunk.mjs'),window.OC.filePath('text', '', 'css/_plugin-vue2_normalizer-BVpmSrje.chunk.css'),window.OC.filePath('text', '', 'js/index-DValGwvd.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider-erZi6c8Y.chunk.mjs'),window.OC.filePath('text', '', 'js/logger-YW53u4Eu.chunk.mjs'),window.OC.filePath('text', '', 'css/RichText-D6ta402u.chunk.css'),window.OC.filePath('text', '', 'js/Wrapper-CqoaC3t_.chunk.mjs'),window.OC.filePath('text', '', 'css/Wrapper-BDZ8juU8.chunk.css'),window.OC.filePath('text', '', 'css/Editor-BC3oXh07.chunk.css')])))=>i.map(i=>d[i]); | ||
import{_ as i}from"./modulepreload-polyfill-DCUwxYMh.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-CwQPiK0V.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-DuKaSI2H.chunk.mjs").then(e=>e.x);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}; |
File renamed without changes.
Oops, something went wrong.