-
Notifications
You must be signed in to change notification settings - Fork 91
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 <nextcloud-command@users.noreply.github.com>
- Loading branch information
1 parent
926e466
commit 83f40ac
Showing
108 changed files
with
122 additions
and
122 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
/*! third party licenses: js/vendor.LICENSE.txt */ | ||
import{V as r}from"./vue.runtime.esm-Dd7ivler.mjs";import l from"./Editor-zNsbfsVc.mjs";import{l as a}from"./logger-2teHUPfo.mjs";import{n as d}from"./_plugin-vue2_normalizer-BWKvF6pj.mjs";import"./index-vg7q3Iku.mjs";import"./modulepreload-polyfill-DZeoc1eZ.mjs";import"./index-eMgxgA-0.mjs";import"./index-7dlE0du4.mjs";import"./index-Ubm2itxG.mjs";import"./RichText-XnmIhYcE.mjs";import"./NcTextArea-XCi8a16Y-CFSsbK92.mjs";import"./NcNoteCard-e7-Bxio8-DX1UPUdy.mjs";import"./index-DMlkRGZt.mjs";import"./MediaHandler.provider-2sdLyJv2.mjs";import"./Wrapper-i1IkC7Qg.mjs";import"./_commonjs-dynamic-modules-CSduYUN4.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")},methods:{async close(){this.saving=!0,setTimeout(async()=>{await this.$refs.editor.$destroy(),s("close")},0)},share(){s("share")},loaded(){s("loaded")}}};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=d(c,m,w,!1,null,"5a8ab66c",null,null);const N=u.exports;export{N as default}; | ||
import{V as r}from"./vue.runtime.esm-Dd7ivler.mjs";import l from"./Editor-C7qUmDCV.mjs";import{l as a}from"./logger-2teHUPfo.mjs";import{n as d}from"./_plugin-vue2_normalizer-BWKvF6pj.mjs";import"./index-vg7q3Iku.mjs";import"./modulepreload-polyfill-DZeoc1eZ.mjs";import"./index-eMgxgA-0.mjs";import"./index-7dlE0du4.mjs";import"./index-Ubm2itxG.mjs";import"./RichText-BwP88n8e.mjs";import"./NcTextArea-XCi8a16Y-CFSsbK92.mjs";import"./NcNoteCard-e7-Bxio8-DX1UPUdy.mjs";import"./index-DMlkRGZt.mjs";import"./MediaHandler.provider-2sdLyJv2.mjs";import"./Wrapper-CvT5VtyU.mjs";import"./_commonjs-dynamic-modules-CSduYUN4.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")},methods:{async close(){this.saving=!0,setTimeout(async()=>{await this.$refs.editor.$destroy(),s("close")},0)},share(){s("share")},loaded(){s("loaded")}}};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=d(c,m,w,!1,null,"5a8ab66c",null,null);const N=u.exports;export{N as default}; |
2 changes: 1 addition & 1 deletion
2
js/DirectEditing-vBSOGwnI.mjs.map → js/DirectEditing-Dcbhjfaz.mjs.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.