Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/composer/psalm/phar-6.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
max-nextcloud authored Feb 27, 2025
2 parents 716f915 + 91f06c9 commit d0b97b5
Show file tree
Hide file tree
Showing 165 changed files with 1,423 additions and 1,334 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import{E as n,a as o,u as r,b as i,c as s}from"./RichText-DkEKy7Is.chunk.mjs";import{c as d}from"./MediaHandler.provider-B7DXsRxP.chunk.mjs";import{n as a}from"./_plugin-vue2_normalizer-C_2WCnkZ.chunk.mjs";const c={name:"BaseReader",components:{EditorContent:n,EditorOutline:o},mixins:[r,i],provide(){const t={};return Object.defineProperties(t,{[d]:{get:()=>this.$editor}}),t},inject:["renderHtml","extensions"],props:{content:{type:String,required:!0}},computed:{htmlContent(){return this.renderHtml(this.content)},showOutline(){return this.$outlineState.visible}},watch:{content(){this.updateContent()}},created(){this.$editor=this.createEditor(),this.$editor.setEditable(!1)},beforeDestroy(){this.$editor.destroy()},methods:{createEditor(){return new s({content:this.htmlContent,extensions:this.extensions()})},updateContent(){this.$editor.commands.setContent(this.htmlContent,!0)}}};var l=function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper text-editor__content-wrapper",class:{"--show-outline":t.showOutline},attrs:{"data-text-el":"editor-content-wrapper"}},[t.showOutline?e("div",{staticClass:"text-editor__content-wrapper__left"},[e("EditorOutline")],1):t._e(),t.$editor?e("EditorContent",{staticClass:"editor__content text-editor__content",attrs:{id:"read-only-editor",editor:t.$editor}}):t._e(),e("div",{staticClass:"text-editor__content-wrapper__right"})],1)},h=[],p=a(c,l,h,!1,null,"d9558d7c");const x=p.exports;export{x as B};
import{E as n,a as o,u as r,b as i,c as s}from"./RichText-u3bDRdXq.chunk.mjs";import{c as d}from"./MediaHandler.provider-B7DXsRxP.chunk.mjs";import{n as a}from"./_plugin-vue2_normalizer-C_2WCnkZ.chunk.mjs";const c={name:"BaseReader",components:{EditorContent:n,EditorOutline:o},mixins:[r,i],provide(){const t={};return Object.defineProperties(t,{[d]:{get:()=>this.$editor}}),t},inject:["renderHtml","extensions"],props:{content:{type:String,required:!0}},computed:{htmlContent(){return this.renderHtml(this.content)},showOutline(){return this.$outlineState.visible}},watch:{content(){this.updateContent()}},created(){this.$editor=this.createEditor(),this.$editor.setEditable(!1)},beforeDestroy(){this.$editor.destroy()},methods:{createEditor(){return new s({content:this.htmlContent,extensions:this.extensions()})},updateContent(){this.$editor.commands.setContent(this.htmlContent,!0)}}};var l=function(){var t=this,e=t._self._c;return e("div",{staticClass:"content-wrapper text-editor__content-wrapper",class:{"--show-outline":t.showOutline},attrs:{"data-text-el":"editor-content-wrapper"}},[t.showOutline?e("div",{staticClass:"text-editor__content-wrapper__left"},[e("EditorOutline")],1):t._e(),t.$editor?e("EditorContent",{staticClass:"editor__content text-editor__content",attrs:{id:"read-only-editor",editor:t.$editor}}):t._e(),e("div",{staticClass:"text-editor__content-wrapper__right"})],1)},h=[],p=a(c,l,h,!1,null,"d9558d7c");const x=p.exports;export{x as B};
File renamed without changes.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
import{V as r}from"./vue.runtime.esm-Cd-BRs9x.chunk.mjs";import{E as d}from"./Editor-DAW2CIRQ.chunk.mjs";import{l as n}from"./logger-CPPvSEm5.chunk.mjs";import{n as l}from"./_plugin-vue2_normalizer-C_2WCnkZ.chunk.mjs";import"./modulepreload-polyfill-B3hybnpm.chunk.mjs";import"./emoji-picker-KVqjnXYv.chunk.mjs";import"./index-DfiDB3im.chunk.mjs";import"./NcNoteCard-C6xb7vi0-B2Tbvy3K.chunk.mjs";import"./index-B81r5Eej.chunk.mjs";import"./_plugin-vue2_normalizer--qmvqNVe-T-92mBc2.chunk.mjs";import"./index-DzPZc6Sq.chunk.mjs";import"./index-DJNs8l9c.chunk.mjs";import"./RichText-DkEKy7Is.chunk.mjs";import"./index-C993SFVb.chunk.mjs";import"./MediaHandler.provider-B7DXsRxP.chunk.mjs";import"./Wrapper-EEdIPJea.chunk.mjs";const o=r.observable({messages:[],mtime:0}),s=(e,i)=>{n.debug(`callMobileMessage ${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};
import{V as r}from"./vue.runtime.esm-Cd-BRs9x.chunk.mjs";import{E as d}from"./Editor-BquD42I5.chunk.mjs";import{l as n}from"./logger-CPPvSEm5.chunk.mjs";import{n as l}from"./_plugin-vue2_normalizer-C_2WCnkZ.chunk.mjs";import"./modulepreload-polyfill-B3hybnpm.chunk.mjs";import"./emoji-picker-KVqjnXYv.chunk.mjs";import"./index-DfiDB3im.chunk.mjs";import"./NcNoteCard-C6xb7vi0-B2Tbvy3K.chunk.mjs";import"./index-B81r5Eej.chunk.mjs";import"./_plugin-vue2_normalizer--qmvqNVe-T-92mBc2.chunk.mjs";import"./index-DzPZc6Sq.chunk.mjs";import"./index-DJNs8l9c.chunk.mjs";import"./RichText-u3bDRdXq.chunk.mjs";import"./index-C993SFVb.chunk.mjs";import"./MediaHandler.provider-B7DXsRxP.chunk.mjs";import"./Wrapper-A0LXdZpr.chunk.mjs";const o=r.observable({messages:[],mtime:0}),s=(e,i)=>{n.debug(`callMobileMessage ${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.
Loading

0 comments on commit d0b97b5

Please sign in to comment.