Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/comments/src/comments-activity-tab.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ export function registerCommentsPlugins() {
unmount: () => {
// destroy previous instance if available
app?.unmount()
app = undefined
},
})

Expand Down
2 changes: 1 addition & 1 deletion dist/comments-comments-tab.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('', '', 'dist/ActivityCommentAction-Cr14M0VJ.chunk.mjs'),window.OC.filePath('', '', 'dist/index-BZUfSSUR.chunk.mjs'),window.OC.filePath('', '', 'dist/preload-helper-B3c9Y6Ia.chunk.mjs'),window.OC.filePath('', '', 'dist/mdi-AfC8gRDi.chunk.mjs'),window.OC.filePath('', '', 'dist/NcModal-Bh42Y6HE.chunk.mjs'),window.OC.filePath('', '', 'dist/ArrowRight-DL6H-z1z.chunk.mjs'),window.OC.filePath('', '', 'dist/createElementId-Cu-wR4zW.chunk.mjs'),window.OC.filePath('', '', 'dist/index-BZ9H2NGr.chunk.mjs'),window.OC.filePath('', '', 'dist/formatRelative-B6SwQwmy.chunk.mjs'),window.OC.filePath('', '', 'dist/_plugin-vue_export-helper-CqVUm19z.chunk.mjs'),window.OC.filePath('', '', 'dist/common-createElementId-C_oBIsvc.chunk.css'),window.OC.filePath('', '', 'dist/common-ArrowRight-3plNpBrB.chunk.css'),window.OC.filePath('', '', 'dist/common-NcModal-CxlqxDk0.chunk.css'),window.OC.filePath('', '', 'dist/Check-Cxn5cWmd.chunk.mjs'),window.OC.filePath('', '', 'dist/common-Check-BYHcrfvW.chunk.css'),window.OC.filePath('', '', 'dist/common-mdi-DYA_tnKg.chunk.css'),window.OC.filePath('', '', 'dist/TrashCanOutline-Tn7_xhh7.chunk.mjs'),window.OC.filePath('', '', 'dist/common-TrashCanOutline-BWNFKLbC.chunk.css'),window.OC.filePath('', '', 'dist/CommentView-D4VksW8F.chunk.mjs'),window.OC.filePath('', '', 'dist/NcActionButton-DNc0Bs06.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcActionButton-BQBDvDX2.chunk.css'),window.OC.filePath('', '', 'dist/NcActionSeparator-DnEqLSqe.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcActionSeparator-pXJ_-D_I.chunk.css'),window.OC.filePath('', '', 'dist/NcAvatar-BlkWsJW8.chunk.mjs'),window.OC.filePath('', '', 'dist/index-BFCx3SEP.chunk.mjs'),window.OC.filePath('', '', 'dist/public-CbrTZt0b.chunk.mjs'),window.OC.filePath('', '', 'dist/autolink-CTGrhdQD.chunk.mjs'),window.OC.filePath('', '', 'dist/common-autolink-DJV5doQl.chunk.css'),window.OC.filePath('', '', 'dist/PencilOutline-BXbwQVTF.chunk.mjs'),window.OC.filePath('', '', 'dist/NcUserStatusIcon-NAlIfAHL.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcUserStatusIcon-Bq_6hmXG.chunk.css'),window.OC.filePath('', '', 'dist/NcActionLink-C1G8aUyO.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcActionLink-iJnZg6ii.chunk.css'),window.OC.filePath('', '', 'dist/NcActionRouter-FN3FEb6D.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcActionRouter-C1KErZDl.chunk.css'),window.OC.filePath('', '', 'dist/NcActionText-B653EuoW.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcActionText-BzbAkUEn.chunk.css'),window.OC.filePath('', '', 'dist/common-NcAvatar-Bj2mvPeT.chunk.css'),window.OC.filePath('', '', 'dist/NcUserBubble-DP-lTV4_.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcUserBubble-f2DD9EAL.chunk.css'),window.OC.filePath('', '', 'dist/activity-Do9u8Krl.chunk.mjs'),window.OC.filePath('', '', 'dist/GetComments-D06_e4_5.chunk.mjs'),window.OC.filePath('', '', 'dist/index-DLdIy3u6.chunk.mjs'),window.OC.filePath('', '', 'dist/externalStorageUtils-B-QuSdG4.chunk.mjs'),window.OC.filePath('', '', 'dist/dav-0GZfQvFx.chunk.mjs'),window.OC.filePath('', '', 'dist/common-CommentView-f1JWd1O0.chunk.css'),window.OC.filePath('', '', 'dist/comments-ActivityCommentAction-BNcHFi_U.chunk.css'),window.OC.filePath('', '', 'dist/ActivityCommentEntry-2SJ1-POW.chunk.mjs'),window.OC.filePath('', '', 'dist/comments-ActivityCommentEntry-DkLG8AtJ.chunk.css'),window.OC.filePath('', '', 'dist/FilesSidebarTab-CHb3kAOL.chunk.mjs'),window.OC.filePath('', '', 'dist/NcEmptyContent-BDU5IM5c.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcEmptyContent-Don1d5Bd.chunk.css'),window.OC.filePath('', '', 'dist/common-FilesSidebarTab-Dk-ISsTg.chunk.css')])))=>i.map(i=>d[i]);
import{e as l,_ as m,f as c,d as w}from"./preload-helper-B3c9Y6Ia.chunk.mjs";import{r as _}from"./index-HIhdXbmF.chunk.mjs";import{t as g}from"./index-BZ9H2NGr.chunk.mjs";import{l as r,i as A}from"./activity-Do9u8Krl.chunk.mjs";import{g as v}from"./GetComments-D06_e4_5.chunk.mjs";import"./externalStorageUtils-B-QuSdG4.chunk.mjs";import"./formatRelative-B6SwQwmy.chunk.mjs";import"./public-CbrTZt0b.chunk.mjs";import"./_plugin-vue_export-helper-CqVUm19z.chunk.mjs";import"./index-DLdIy3u6.chunk.mjs";import"./dav-0GZfQvFx.chunk.mjs";const y='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-message-reply-text" viewBox="0 0 24 24"><path d="M18,8H6V6H18V8M18,11H6V9H18V11M18,14H6V12H18V14M22,4A2,2 0 0,0 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z" /></svg>';function V(){let o;window.OCA.Activity.registerSidebarAction({mount:async(t,{node:e,reload:i})=>{const a=l();if(!o){const{default:s}=await m(async()=>{const{default:n}=await import("./ActivityCommentAction-Cr14M0VJ.chunk.mjs");return{default:n}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46]),import.meta.url);o=c(s,{reloadCallback:i,resourceId:e.fileid})}o.use(a),o.mount(t),r.info("Comments plugin mounted in Activity sidebar action",{node:e})},unmount:()=>{o?.unmount()}}),window.OCA.Activity.registerSidebarEntries(async({node:t,limit:e,offset:i})=>{const{data:a}=await v({resourceType:"files",resourceId:t.fileid},{limit:e,offset:i??0});r.debug("Loaded comments",{node:t,comments:a});const{default:s}=await m(async()=>{const{default:n}=await import("./ActivityCommentEntry-2SJ1-POW.chunk.mjs");return{default:n}},__vite__mapDeps([47,7,8,9,18,2,19,5,6,10,11,4,12,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,13,14,37,3,15,38,39,16,17,1,40,41,42,43,44,45,48]),import.meta.url);return a.map(n=>({_CommentsViewInstance:void 0,timestamp:Date.parse(n.props?.creationDateTime??""),mount(f,{reload:p}){const d=c(s,{comment:n,resourceId:t.fileid,reloadCallback:p});d.mount(f),this._CommentsViewInstance=d},unmount(){this._CommentsViewInstance?.unmount()}}))}),window.OCA.Activity.registerSidebarFilter(t=>t.type!=="comments"),r.info("Comments plugin registered for Activity sidebar action")}const u="comments_files-sidebar-tab";A()?window.addEventListener("DOMContentLoaded",function(){V()}):_({id:"comments",displayName:g("comments","Comments"),iconSvgInline:y,order:50,tagName:u,async onInit(){const{default:o}=await m(async()=>{const{default:e}=await import("./FilesSidebarTab-CHb3kAOL.chunk.mjs").then(i=>i.F);return{default:e}},__vite__mapDeps([49,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,23,24,25,26,27,28,29,30,19,20,31,32,33,34,35,36,37,50,51,18,21,22,38,39,40,41,42,43,44,45,52]),import.meta.url),t=w(o,{configureApp(e){const i=l();e.use(i)},shadowRoot:!1});window.customElements.define(u,t)}});
import{e as l,_ as m,f as c,d as w}from"./preload-helper-B3c9Y6Ia.chunk.mjs";import{r as _}from"./index-HIhdXbmF.chunk.mjs";import{t as g}from"./index-BZ9H2NGr.chunk.mjs";import{l as r,i as v}from"./activity-Do9u8Krl.chunk.mjs";import{g as A}from"./GetComments-D06_e4_5.chunk.mjs";import"./externalStorageUtils-B-QuSdG4.chunk.mjs";import"./formatRelative-B6SwQwmy.chunk.mjs";import"./public-CbrTZt0b.chunk.mjs";import"./_plugin-vue_export-helper-CqVUm19z.chunk.mjs";import"./index-DLdIy3u6.chunk.mjs";import"./dav-0GZfQvFx.chunk.mjs";const y='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-message-reply-text" viewBox="0 0 24 24"><path d="M18,8H6V6H18V8M18,11H6V9H18V11M18,14H6V12H18V14M22,4A2,2 0 0,0 20,2H4A2,2 0 0,0 2,4V16A2,2 0 0,0 4,18H18L22,22V4Z" /></svg>';function V(){let e;window.OCA.Activity.registerSidebarAction({mount:async(t,{node:o,reload:i})=>{const a=l();if(!e){const{default:s}=await m(async()=>{const{default:n}=await import("./ActivityCommentAction-Cr14M0VJ.chunk.mjs");return{default:n}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46]),import.meta.url);e=c(s,{reloadCallback:i,resourceId:o.fileid})}e.use(a),e.mount(t),r.info("Comments plugin mounted in Activity sidebar action",{node:o})},unmount:()=>{e?.unmount(),e=void 0}}),window.OCA.Activity.registerSidebarEntries(async({node:t,limit:o,offset:i})=>{const{data:a}=await A({resourceType:"files",resourceId:t.fileid},{limit:o,offset:i??0});r.debug("Loaded comments",{node:t,comments:a});const{default:s}=await m(async()=>{const{default:n}=await import("./ActivityCommentEntry-2SJ1-POW.chunk.mjs");return{default:n}},__vite__mapDeps([47,7,8,9,18,2,19,5,6,10,11,4,12,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,13,14,37,3,15,38,39,16,17,1,40,41,42,43,44,45,48]),import.meta.url);return a.map(n=>({_CommentsViewInstance:void 0,timestamp:Date.parse(n.props?.creationDateTime??""),mount(f,{reload:p}){const d=c(s,{comment:n,resourceId:t.fileid,reloadCallback:p});d.mount(f),this._CommentsViewInstance=d},unmount(){this._CommentsViewInstance?.unmount()}}))}),window.OCA.Activity.registerSidebarFilter(t=>t.type!=="comments"),r.info("Comments plugin registered for Activity sidebar action")}const u="comments_files-sidebar-tab";v()?window.addEventListener("DOMContentLoaded",function(){V()}):_({id:"comments",displayName:g("comments","Comments"),iconSvgInline:y,order:50,tagName:u,async onInit(){const{default:e}=await m(async()=>{const{default:o}=await import("./FilesSidebarTab-CHb3kAOL.chunk.mjs").then(i=>i.F);return{default:o}},__vite__mapDeps([49,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,23,24,25,26,27,28,29,30,19,20,31,32,33,34,35,36,37,50,51,18,21,22,38,39,40,41,42,43,44,45,52]),import.meta.url),t=w(e,{configureApp(o){const i=l();o.use(i)},shadowRoot:!1});window.customElements.define(u,t)}});
//# sourceMappingURL=comments-comments-tab.mjs.map
Loading
Loading