-
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 <[email protected]>
- Loading branch information
1 parent
523aa82
commit 1359b1f
Showing
57 changed files
with
68 additions
and
68 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
js/AvatarWrapper-D3aFeAwk.chunk.mjs → js/AvatarWrapper-vdbtjAID.chunk.mjs
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{n as t,k as r}from"./_plugin-vue2_normalizer-E4-fa2wn.chunk.mjs";import"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import"./index-C2LDH5Ba.chunk.mjs";const i={name:"AvatarWrapper",components:{NcAvatar:r},props:{session:{type:Object,required:!0},size:{type:Number,default:()=>32}},computed:{sessionAvatarStyle(){return{...this.sessionBackgroundStyle,"border-color":this.session.color,"border-width":"2px","border-style":"solid","--size":this.size+"px","--font-size":this.size/2+"px"}},sessionBackgroundStyle(){return{"background-color":this.session.userId?this.session.color+" !important":"#b9b9b9"}},guestInitial(){return this.session.guestName===""?"?":this.session.guestName.slice(0,1).toUpperCase()}}};var o=function(){var s=this,e=s._self._c;return e("div",{staticClass:"avatar-wrapper",style:s.sessionAvatarStyle},[s.session.userId?e("NcAvatar",{attrs:{user:s.session.userId?s.session.userId:s.session.guestName,"is-guest":s.session.userId===null,"disable-menu":!0,"show-user-status":!1,"disable-tooltip":!0,size:s.size}}):e("div",{staticClass:"avatar",style:s.sessionBackgroundStyle},[s._v(" "+s._s(s.guestInitial)+" ")])],1)},a=[],n=t(i,o,a,!1,null,"c1137ffa",null,null);const d=n.exports;export{d as A}; | ||
import{n as t,k as r}from"./_plugin-vue2_normalizer-B6NIcHTa.chunk.mjs";import"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import"./index-BLukiyfV.chunk.mjs";const i={name:"AvatarWrapper",components:{NcAvatar:r},props:{session:{type:Object,required:!0},size:{type:Number,default:()=>32}},computed:{sessionAvatarStyle(){return{...this.sessionBackgroundStyle,"border-color":this.session.color,"border-width":"2px","border-style":"solid","--size":this.size+"px","--font-size":this.size/2+"px"}},sessionBackgroundStyle(){return{"background-color":this.session.userId?this.session.color+" !important":"#b9b9b9"}},guestInitial(){return this.session.guestName===""?"?":this.session.guestName.slice(0,1).toUpperCase()}}};var o=function(){var s=this,e=s._self._c;return e("div",{staticClass:"avatar-wrapper",style:s.sessionAvatarStyle},[s.session.userId?e("NcAvatar",{attrs:{user:s.session.userId?s.session.userId:s.session.guestName,"is-guest":s.session.userId===null,"disable-menu":!0,"show-user-status":!1,"disable-tooltip":!0,size:s.size}}):e("div",{staticClass:"avatar",style:s.sessionBackgroundStyle},[s._v(" "+s._s(s.guestInitial)+" ")])],1)},a=[],n=t(i,o,a,!1,null,"c1137ffa",null,null);const d=n.exports;export{d as A}; |
2 changes: 1 addition & 1 deletion
2
js/AvatarWrapper-D3aFeAwk.chunk.mjs.map → js/AvatarWrapper-vdbtjAID.chunk.mjs.map
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
js/DirectEditing-BAqLHZ4G.chunk.mjs → js/DirectEditing-CvPjtrdA.chunk.mjs
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-DexIh3sa.chunk.mjs";import{E as l}from"./Editor-2dYw23I2.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-Cr6jEvg7.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-Dik_-MAq.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-BSCdRPCr.chunk.mjs";import{l as a}from"./logger-BVmsFChG.chunk.mjs";import{n as d}from"./_plugin-vue2_normalizer-B6NIcHTa.chunk.mjs";import"./modulepreload-polyfill-BV4VlZ1o.chunk.mjs";import"./emoji-picker-I9E7i3AY.chunk.mjs";import"./index-Ubm2itxG.chunk.mjs";import"./RichText-D-IsVdlm.chunk.mjs";import"./NcNoteCard-CImn6F9p-Cqtx687c.chunk.mjs";import"./index-BLukiyfV.chunk.mjs";import"./index-B-M7oNlN.chunk.mjs";import"./MediaHandler.provider-D-YH1kh0.chunk.mjs";import"./_plugin-vue2_normalizer-Ds4SJl6Q-DQicnQZ3.chunk.mjs";import"./Wrapper-NhHAjDU3.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}; |
Oops, something went wrong.