Skip to content

Commit a151dbc

Browse files
chore(assets): recompile assets
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent 8a7f21c commit a151dbc

20 files changed

Lines changed: 24 additions & 24 deletions
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/text-text.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
@import './NcCheckboxRadioSwitch-D4IV4zWy-CFjpafPM.chunk.css';
66
@import './Wrapper-CltOQzvc.chunk.css';
77
@import './MenuBar-BMEOueuC.chunk.css';
8-
@import './Editor-EWynl3my.chunk.css';
8+
@import './Editor-BQJYoi7W.chunk.css';
Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

js/Editor-Xq73mRxv.chunk.mjs.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/Editor-bGqkQgaS.chunk.mjs.map

Lines changed: 0 additions & 1 deletion
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
import{t as r,c as n}from"./NcLoadingIcon-CVPmhDs9.chunk.mjs";import{u as s,s as o,b as l}from"./index-BBRfwPzy.chunk.mjs";import{l as h}from"./index-Dl858C8_.chunk.mjs";import{i as c,j as u}from"./Wrapper-CRloqIX3.chunk.mjs";import{E as p}from"./Editor-bGqkQgaS.chunk.mjs";import{R as f}from"./RichTextReader-kdC2HCHo.chunk.mjs";import{n as m}from"./NcCheckboxRadioSwitch-D4IV4zWy-C7R54kfi.chunk.mjs";import"./vue.runtime.esm-BF-IvmLA.chunk.mjs";import"./emoji-picker-C0wQOMkK.chunk.mjs";import"./logger-Cig2S1Ru.chunk.mjs";import"./index-zDAq7SQt.chunk.mjs";import"./preload-helper-BorfeO-5.chunk.mjs";import"./NcNoteCard-CwNXZ4vV-CGCPj_4W.chunk.mjs";import"./MediaHandler.provider-JHoeYdEY.chunk.mjs";import"./MenuBar-BjqeMMiU.chunk.mjs";import"./BaseReader-BB9u0aOe.chunk.mjs";const d=u(),k=l("apps/text"+(d?"/public":"")+"/workspace",2),R="Readme."+h("text","default_file_extension"),w=r("text","Readme")+"."+h("text","default_file_extension"),a=[w,R,"Readme.md","README.md","readme.md"],y={name:"RichWorkspace",components:{RichTextReader:f,Editor:p},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,shouldAutofocus:!1,hideMenu:!0,darkTheme:window?.OCA?.Accessibility?.theme==="dark",enabled:window?.OCA?.Text?.RichWorkspaceEnabled}},computed:{shareToken(){return c()},shouldRender(){return this.enabled&&this.localHasRichWorkspace}},watch:{path(){this.reset()},ready(){this.shouldAutofocus=!1},focus(e){e||document.querySelector("#rich-workspace .editor__content-wrapper")?.scrollTo(0,0)},shouldRender(e){e&&this.getFileInfo()},hasRichWorkspace(e){this.localHasRichWorkspace=e}},mounted(){this.localHasRichWorkspace=this.hasRichWorkspace,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.listenKeydownEvents()},beforeDestroy(){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.unlistenKeydownEvents()},methods:{onFocus(){this.focus=!0,this.hideMenu=!1,this.unlistenKeydownEvents()},onBlur(e){this.$el.contains(e?.relatedTarget)||(this.focus=!1,this.hideMenu=!0)},reset(){this.file=null,this.focus=!1,this.shouldAutofocus=!1,this.$nextTick(()=>{this.shouldRender&&this.getFileInfo()})},getFileInfo(){this.file=null,this.ready=!1,this.loaded=!0;const e={path:this.path};return d&&(e.shareToken=this.shareToken),n.get(k,{params:e}).then(t=>{const i=t.data.ocs.data;return this.folder=i.folder||null,this.file=i.file,this.editing=!0,this.loaded=!0,this.autofocus=this.shouldAutofocus,!0}).catch(t=>(t.response.data.ocs&&t.response.data.ocs.data.folder?this.folder=t.response.data.ocs.data.folder:this.folder=null,this.file=null,this.loaded=!0,this.ready=!0,!1))},showRichWorkspace(e){this.enabled=!0},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){a.includes(e.basename)&&(this.shouldAutofocus=this.enabled,this.localHasRichWorkspace=!0)},onFileDeleted(e){e.path===this.file?.path&&(this.localHasRichWorkspace=!1)},onFileRenamed(e){a.includes(e.basename)?this.localHasRichWorkspace=!0:e.fileid===this.file?.id&&e.path!==this.file?.path&&(this.localHasRichWorkspace=!1)},t:r}};var W=function(){var e=this,t=e._self._c;return e.shouldRender?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,blur:e.onBlur}}):e._e()],1):e._e()},v=[],x=m(y,W,v,!1,null,"8a75edb3");const L=x.exports;export{L as default};
2-
//# sourceMappingURL=RichWorkspace-B0Kzs3Uv.chunk.mjs.map
1+
import{t as r,c as n}from"./NcLoadingIcon-CVPmhDs9.chunk.mjs";import{u as s,s as o,b as l}from"./index-BBRfwPzy.chunk.mjs";import{l as h}from"./index-Dl858C8_.chunk.mjs";import{i as c,j as u}from"./Wrapper-CRloqIX3.chunk.mjs";import{E as p}from"./Editor-Xq73mRxv.chunk.mjs";import{R as f}from"./RichTextReader-kdC2HCHo.chunk.mjs";import{n as m}from"./NcCheckboxRadioSwitch-D4IV4zWy-C7R54kfi.chunk.mjs";import"./vue.runtime.esm-BF-IvmLA.chunk.mjs";import"./emoji-picker-C0wQOMkK.chunk.mjs";import"./logger-Cig2S1Ru.chunk.mjs";import"./index-zDAq7SQt.chunk.mjs";import"./preload-helper-BorfeO-5.chunk.mjs";import"./NcNoteCard-CwNXZ4vV-CGCPj_4W.chunk.mjs";import"./MediaHandler.provider-JHoeYdEY.chunk.mjs";import"./MenuBar-BjqeMMiU.chunk.mjs";import"./BaseReader-BB9u0aOe.chunk.mjs";const d=u(),k=l("apps/text"+(d?"/public":"")+"/workspace",2),R="Readme."+h("text","default_file_extension"),w=r("text","Readme")+"."+h("text","default_file_extension"),a=[w,R,"Readme.md","README.md","readme.md"],y={name:"RichWorkspace",components:{RichTextReader:f,Editor:p},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,shouldAutofocus:!1,hideMenu:!0,darkTheme:window?.OCA?.Accessibility?.theme==="dark",enabled:window?.OCA?.Text?.RichWorkspaceEnabled}},computed:{shareToken(){return c()},shouldRender(){return this.enabled&&this.localHasRichWorkspace}},watch:{path(){this.reset()},ready(){this.shouldAutofocus=!1},focus(e){e||document.querySelector("#rich-workspace .editor__content-wrapper")?.scrollTo(0,0)},shouldRender(e){e&&this.getFileInfo()},hasRichWorkspace(e){this.localHasRichWorkspace=e}},mounted(){this.localHasRichWorkspace=this.hasRichWorkspace,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.listenKeydownEvents()},beforeDestroy(){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.unlistenKeydownEvents()},methods:{onFocus(){this.focus=!0,this.hideMenu=!1,this.unlistenKeydownEvents()},onBlur(e){this.$el.contains(e?.relatedTarget)||(this.focus=!1,this.hideMenu=!0)},reset(){this.file=null,this.focus=!1,this.shouldAutofocus=!1,this.$nextTick(()=>{this.shouldRender&&this.getFileInfo()})},getFileInfo(){this.file=null,this.ready=!1,this.loaded=!0;const e={path:this.path};return d&&(e.shareToken=this.shareToken),n.get(k,{params:e}).then(t=>{const i=t.data.ocs.data;return this.folder=i.folder||null,this.file=i.file,this.editing=!0,this.loaded=!0,this.autofocus=this.shouldAutofocus,!0}).catch(t=>(t.response.data.ocs&&t.response.data.ocs.data.folder?this.folder=t.response.data.ocs.data.folder:this.folder=null,this.file=null,this.loaded=!0,this.ready=!0,!1))},showRichWorkspace(e){this.enabled=!0},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){a.includes(e.basename)&&(this.shouldAutofocus=this.enabled,this.localHasRichWorkspace=!0)},onFileDeleted(e){e.path===this.file?.path&&(this.localHasRichWorkspace=!1)},onFileRenamed(e){a.includes(e.basename)?this.localHasRichWorkspace=!0:e.fileid===this.file?.id&&e.path!==this.file?.path&&(this.localHasRichWorkspace=!1)},t:r}};var W=function(){var e=this,t=e._self._c;return e.shouldRender?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,blur:e.onBlur}}):e._e()],1):e._e()},v=[],x=m(y,W,v,!1,null,"8a75edb3");const L=x.exports;export{L as default};
2+
//# sourceMappingURL=RichWorkspace-Ddr_a6J_.chunk.mjs.map
File renamed without changes.

0 commit comments

Comments
 (0)