-
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 <nextcloud-command@users.noreply.github.com>
- Loading branch information
1 parent
d4f0164
commit 7ba3555
Showing
16 changed files
with
21 additions
and
21 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
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.
Large diffs are not rendered by default.
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.
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
const __vite__fileDeps=[window.OC.filePath('text', '', 'js/vue.runtime.esm.chunk.mjs'),window.OC.filePath('text', '', 'js/index.chunk2.mjs'),window.OC.filePath('text', '', 'js/PublicFilesEditor.chunk.mjs'),window.OC.filePath('text', '', 'js/modulepreload-polyfill.chunk.mjs'),window.OC.filePath('text', '', 'js/emoji-picker.chunk.mjs'),window.OC.filePath('text', '', 'js/NcUserBubble-DMjZyrGY.chunk.mjs'),window.OC.filePath('text', '', 'js/NcNoteCard-BLPU1den.chunk.mjs'),window.OC.filePath('text', '', 'js/index.chunk.mjs'),window.OC.filePath('text', '', 'js/index.chunk3.mjs'),window.OC.filePath('text', '', 'js/index.chunk4.mjs'),window.OC.filePath('text', '', 'js/index.chunk5.mjs'),window.OC.filePath('text', '', 'js/_plugin-vue2_normalizer.chunk.mjs'),window.OC.filePath('text', '', 'js/RichWorkspace.chunk.mjs'),window.OC.filePath('text', '', 'js/Editor.singleton.chunk.mjs'),window.OC.filePath('text', '', 'js/RichTextReader.chunk.mjs'),window.OC.filePath('text', '', 'js/RichText.chunk.mjs'),window.OC.filePath('text', '', 'js/MediaHandler.provider.chunk.mjs'),window.OC.filePath('text', '', 'js/logger.chunk.mjs')],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]); | ||
/*! third party licenses: js/vendor.LICENSE.txt */ | ||
import{_ as f,l as _,e as O}from"./modulepreload-polyfill.chunk.mjs";import{H as g,b as E,N as v,P as A,F}from"./index.chunk6.mjs";import{h as I,c as b}from"./index.chunk3.mjs";import{l as x}from"./index.chunk4.mjs";import{g as k}from"./token.chunk.mjs";import{o as w}from"./mime.chunk.mjs";import{s as R}from"./index.chunk.mjs";import{s as N,a as P,p as T}from"./NcNoteCard-BLPU1den.chunk.mjs";import"./emoji-picker.chunk.mjs";import"./index.chunk5.mjs";import"./es.string.replace.chunk.mjs";import"./index.chunk2.mjs";import"./vue.runtime.esm.chunk.mjs";const V="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='mdi-text'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M21,6V8H3V6H21M3,18H12V16H3V18M3,13H21V11H3V13Z'%20/%3e%3c/svg%3e",h="Edit with text app",G=()=>{const i={attach(e){const o=e.fileList;o.id!=="files"&&o.id!=="files.public"||e.addMenuEntry({id:"file",displayName:t("text","New text file"),templateName:t("text","New text file")+"."+x("text","default_file_extension"),iconClass:"icon-filetype-text",fileType:"file",actionLabel:t("text","Create new text file"),actionHandler(c){o.createFile(c).then(function(n,d){const a=new OCA.Files.FileInfoModel(d);typeof OCA.Viewer<"u"?OCA.Files.fileActions.triggerAction("view",a,o):typeof OCA.Viewer>"u"&&OCA.Files.fileActions.triggerAction(h,a,o)})}})}};OC.Plugins.register("OCA.Files.NewFileMenu",i)},J=()=>{const i=k(),e=document.querySelector("#preview table.files-filestable");if(!i||!e){const o=document.createElement("div");o.id="text-viewer-fallback",document.body.appendChild(o);const c=n=>OCA.Files.fileActions.register(n,h,OC.PERMISSION_UPDATE|OC.PERMISSION_READ,I("core","actions/rename"),d=>{const a=window.FileList.findFile(d);Promise.all([f(()=>import("./vue.runtime.esm.chunk.mjs").then(r=>r.v),__vite__mapDeps([0,1]),import.meta.url),f(()=>import("./PublicFilesEditor.chunk.mjs"),__vite__mapDeps([2,3,4,5,0,1,6,7,8,9,10,11]),import.meta.url)]).then(r=>{const s=window.FileList.getCurrentDirectory()+"/"+d,l=r[0].default;l.prototype.t=window.t,l.prototype.n=window.n,l.prototype.OCA=window.OCA;const u=r[1].default;new l({render:function(y){const C=this;return y(u,{props:{fileId:a?a.id:null,active:!0,shareToken:i,relativePath:s,mimeType:a.mimetype},on:{close:function(){C.$destroy()}}})}}).$mount(o)})},t("text","Edit"));for(let n=0;n<w.length;n++)c(w[n]),OCA.Files.fileActions.setDefault(w[n],h)}};let m=!1;const K=()=>{const i=t("text","Readme")+"."+x("text","default_file_extension");E({id:"rich-workspace-init",displayName:t("text","Add folder description"),category:v.Other,enabled(e){return Number(e.attributes["rich-workspace-file"])?!1:(e.permissions&A.CREATE)!==0},iconSvgInline:V,async handler(e,o){var s,l;const c=o.map(u=>u.basename);if(c.includes(i)){N(t("text",'"{name}" already exist!',{name:i}));return}const n=e.encodedSource+"/"+encodeURIComponent(i),d=await b({method:"PUT",url:n,headers:{Overwrite:"F"}}),a=parseInt(d.headers["oc-fileid"]),r=new F({source:e.source+"/"+i,id:a,mtime:new Date,mime:"text/markdown",owner:((s=_())==null?void 0:s.uid)||null,permissions:A.ALL,root:(e==null?void 0:e.root)||"/files/"+((l=_())==null?void 0:l.uid)});P(t("text",'Created "{name}"',{name:i})),c.length===0&&(m=r),O("files:node:created",r)}})};let p=null;const Q=new g({id:"workspace",order:10,enabled(i,e){return e.id==="files"||e.id==="favorites"},async render(i,e,o){p&&(p.$destroy(),p=null);const c=!!e.attributes["rich-workspace-file"]||!!m,n=m?T.dirname(m.path):e.path,d=m?"":e.attributes["rich-workspace"];m=!1;const{default:a}=await f(async()=>{const{default:r}=await import("./RichWorkspace.chunk.mjs");return{default:r}},__vite__mapDeps([12,8,1,3,4,13,14,15,5,0,6,7,9,10,16,17,11]),import.meta.url);f(()=>import("./vue.runtime.esm.chunk.mjs").then(r=>r.v),__vite__mapDeps([0,1]),import.meta.url).then(r=>{i.id="files-workspace-wrapper";const s=r.default;s.prototype.t=window.t,s.prototype.n=window.n,s.prototype.OCA=window.OCA;const l=s.extend(a);p=new l({propsData:{path:n,hasRichWorkspace:c,content:d},store:R}).$mount(i)})},updated(i,e){m=!1;const o=!!i.attributes["rich-workspace-file"];p.path=i.path,p.hasRichWorkspace=o,p.content=i.attributes["rich-workspace"]}});export{h as FILE_ACTION_IDENTIFIER,Q as FilesWorkspaceHeader,K as addMenuRichWorkspace,J as registerFileActionFallback,G as registerFileCreate}; | ||
import{_ as f,l as _,e as O}from"./modulepreload-polyfill.chunk.mjs";import{H as g,b as E,N as v,P as A,F}from"./index.chunk6.mjs";import{h as I,c as b}from"./index.chunk3.mjs";import{l as x}from"./index.chunk4.mjs";import{g as k}from"./token.chunk.mjs";import{o as w}from"./mime.chunk.mjs";import{s as R}from"./index.chunk.mjs";import{s as N,a as P,p as T}from"./NcNoteCard-BLPU1den.chunk.mjs";import"./emoji-picker.chunk.mjs";import"./index.chunk5.mjs";import"./es.string.replace.chunk.mjs";import"./index.chunk2.mjs";import"./vue.runtime.esm.chunk.mjs";const V="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20id='mdi-text'%20viewBox='0%200%2024%2024'%3e%3cpath%20d='M21,6V8H3V6H21M3,18H12V16H3V18M3,13H21V11H3V13Z'%20/%3e%3c/svg%3e",h="Edit with text app",G=()=>{const i={attach(e){const o=e.fileList;o.id!=="files"&&o.id!=="files.public"||e.addMenuEntry({id:"file",displayName:t("text","New text file"),templateName:t("text","New text file")+"."+x("text","default_file_extension"),iconClass:"icon-filetype-text",fileType:"file",actionLabel:t("text","Create new text file"),actionHandler(c){o.createFile(c).then(function(a,d){const n=new OCA.Files.FileInfoModel(d);typeof OCA.Viewer<"u"?OCA.Files.fileActions.triggerAction("view",n,o):typeof OCA.Viewer>"u"&&OCA.Files.fileActions.triggerAction(h,n,o)})}})}};OC.Plugins.register("OCA.Files.NewFileMenu",i)},J=()=>{const i=k(),e=document.querySelector("#preview table.files-filestable");if(!i||!e){const o=document.createElement("div");o.id="text-viewer-fallback",document.body.appendChild(o);const c=a=>OCA.Files.fileActions.register(a,h,OC.PERMISSION_UPDATE|OC.PERMISSION_READ,I("core","actions/rename"),d=>{const n=window.FileList.findFile(d);Promise.all([f(()=>import("./vue.runtime.esm.chunk.mjs").then(r=>r.v),__vite__mapDeps([0,1]),import.meta.url),f(()=>import("./PublicFilesEditor.chunk.mjs"),__vite__mapDeps([2,3,4,5,0,1,6,7,8,9,10,11]),import.meta.url)]).then(r=>{const s=window.FileList.getCurrentDirectory()+"/"+d,l=r[0].default;l.prototype.t=window.t,l.prototype.n=window.n,l.prototype.OCA=window.OCA;const u=r[1].default;new l({render:function(y){const C=this;return y(u,{props:{fileId:n?n.id:null,active:!0,shareToken:i,relativePath:s,mimeType:n.mimetype},on:{close:function(){C.$destroy()}}})}}).$mount(o)})},t("text","Edit"));for(let a=0;a<w.length;a++)c(w[a]),OCA.Files.fileActions.setDefault(w[a],h)}};let m=!1;const K=()=>{const i=t("text","Readme")+"."+x("text","default_file_extension");E({id:"rich-workspace-init",displayName:t("text","Add folder description"),category:v.CreateNew,enabled(e){return Number(e.attributes["rich-workspace-file"])?!1:(e.permissions&A.CREATE)!==0},iconSvgInline:V,async handler(e,o){var s,l;const c=o.map(u=>u.basename);if(c.includes(i)){N(t("text",'"{name}" already exist!',{name:i}));return}const a=e.encodedSource+"/"+encodeURIComponent(i),d=await b({method:"PUT",url:a,headers:{Overwrite:"F"}}),n=parseInt(d.headers["oc-fileid"]),r=new F({source:e.source+"/"+i,id:n,mtime:new Date,mime:"text/markdown",owner:((s=_())==null?void 0:s.uid)||null,permissions:A.ALL,root:(e==null?void 0:e.root)||"/files/"+((l=_())==null?void 0:l.uid)});P(t("text",'Created "{name}"',{name:i})),c.length===0&&(m=r),O("files:node:created",r)}})};let p=null;const Q=new g({id:"workspace",order:10,enabled(i,e){return e.id==="files"||e.id==="favorites"},async render(i,e,o){p&&(p.$destroy(),p=null);const c=!!e.attributes["rich-workspace-file"]||!!m,a=m?T.dirname(m.path):e.path,d=m?"":e.attributes["rich-workspace"];m=!1;const{default:n}=await f(async()=>{const{default:r}=await import("./RichWorkspace.chunk.mjs");return{default:r}},__vite__mapDeps([12,8,1,3,4,13,14,15,5,0,6,7,9,10,16,17,11]),import.meta.url);f(()=>import("./vue.runtime.esm.chunk.mjs").then(r=>r.v),__vite__mapDeps([0,1]),import.meta.url).then(r=>{i.id="files-workspace-wrapper";const s=r.default;s.prototype.t=window.t,s.prototype.n=window.n,s.prototype.OCA=window.OCA;const l=s.extend(n);p=new l({propsData:{path:a,hasRichWorkspace:c,content:d},store:R}).$mount(i)})},updated(i,e){m=!1;const o=!!i.attributes["rich-workspace-file"];p.path=i.path,p.hasRichWorkspace=o,p.content=i.attributes["rich-workspace"]}});export{h as FILE_ACTION_IDENTIFIER,Q as FilesWorkspaceHeader,K as addMenuRichWorkspace,J as registerFileActionFallback,G as registerFileCreate}; |
Oops, something went wrong.