Skip to content

Commit

Permalink
chore: compile assets
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <[email protected]>
  • Loading branch information
susnux committed Nov 15, 2023
1 parent cbb3fd7 commit bd207f5
Show file tree
Hide file tree
Showing 39 changed files with 9,190 additions and 9,175 deletions.
8,226 changes: 8,226 additions & 0 deletions js/Activity-15b78ea2.mjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions js/Activity-15b78ea2.mjs.map

Large diffs are not rendered by default.

9,109 changes: 0 additions & 9,109 deletions js/Activity-99285c4a.mjs

This file was deleted.

1 change: 0 additions & 1 deletion js/Activity-99285c4a.mjs.map

This file was deleted.

2 changes: 2 additions & 0 deletions js/ActivityAPI-2278d332.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/*! third party licenses: js/vendor.LICENSE.txt */
import"./index-c2325ef0.mjs";import{l as t}from"./logger-62951e15.mjs";function n(){window.OCA=window.OCA??{},window.OCA.Activity={...window.OCA.Activity,__sidebar_actions:window.OCA.Activity?.__sidebar_actions??[],__sidebar_factories:window.OCA.Activity?.__sidebar_factories??[],__sidebar_filters:window.OCA.Activity?.__sidebar_filters??[],registerSidebarAction(i){window.OCA.Activity.__sidebar_actions.push(i),t.debug("Registered new sidebar action")},registerSidebarEntries(i){window.OCA.Activity.__sidebar_factories.push(i),t.debug("Registered new sidebar actions factory")},registerSidebarFilter(i){window.OCA.Activity.__sidebar_filters.push(i)}},t.info("Activity API registered")}function o(){return window.OCA?.Activity?.__sidebar_actions??[]}async function _(i){if(window.OCA?.Activity?.__sidebar_factories===void 0)return[];const e=window.OCA.Activity.__sidebar_factories.map(async r=>await r(i));return(await Promise.all(e)).flat()}function d(){return window.OCA?.Activity?.__sidebar_filters??[]}export{_ as a,d as b,o as g,n as r};
1 change: 1 addition & 0 deletions js/ActivityAPI-2278d332.mjs.map

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

3 changes: 3 additions & 0 deletions js/ActivityTab-a75b5ba9.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("[data-v-fcd34f78] .empty-content__icon span{background-size:64px;width:64px;height:64px}.activity__actions[data-v-fcd34f78]{display:flex;flex-direction:column;width:100%}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
/*! third party licenses: js/vendor.LICENSE.txt */
import{n as o,d as r,c}from"./index-76a58945-e9f89dfb.mjs";import{a as l,t as s}from"./index-6f0bca63.mjs";import{A as u,p as f,v as p,f as v}from"./Activity-15b78ea2.mjs";import{l as d}from"./logger-62951e15.mjs";import{g,a as y,b as m}from"./ActivityAPI-2278d332.mjs";import{d as h,r as _,o as I,g as b,a as A}from"./vue.runtime.esm-1bbf7b91.mjs";import{l as S}from"./activity-sidebar.mjs";import"./index-c2325ef0.mjs";const x=h({__name:"ActivitySidebarPlugin",props:{plugin:null,fileInfo:null},emits:["reload-activities"],setup(t,{emit:i}){const e=t,n=_();return I(()=>e.plugin.mount(n.value,{context:b()?.proxy,fileInfo:e.fileInfo,reload:()=>i("reload-activities")})),A(()=>e.plugin.unmount()),{__sfc:!0,props:e,emit:i,attachTarget:n}}});var N=function(){var t=this,i=t._self._c;return t._self._setupProxy,i("div",{ref:"attachTarget"})},P=[],C=o(x,N,P,!1,null,null,null,null);const k=C.exports;const E={name:"ActivityTab",components:{Activity:u,NcEmptyContent:f,NcIconSvgWrapper:p,NcLoadingIcon:r,ActivitySidebarPlugin:k},data(){return{error:"",loading:!0,fileInfo:null,activities:[],lightningBoltSVG:S,sidebarPlugins:[]}},mounted(){this.sidebarPlugins=g()},methods:{async update(t){this.fileInfo=t,this.resetState(),await this.getActivities()},async getActivities(){try{this.loading=!0;const t=this.processActivities(await c.get(l("apps/activity/api/v2/activity/filter"),{params:{format:"json",object_type:"files",object_id:this.fileInfo.id}})),i=await y({fileInfo:this.fileInfo});this.activities=[...t,...i].sort((e,n)=>n.timestamp-e.timestamp)}catch(t){if(t.response!==void 0&&t.response.status===304)return;this.error=s("activity","Unable to load the activity list"),console.error("Error loading the activity list",t)}finally{this.loading=!1}},resetState(){this.loading=!0,this.error="",this.activities=[]},processActivities({data:t}){if(t.ocs&&t.ocs.data&&t.ocs.data.length>0){const i=t.ocs.data.map(n=>new v(n));d.debug(`Processed ${i.length} activity(ies)`,{activities:i,fileInfo:this.fileInfo});const e=m();return i.filter(n=>!e||e.every(a=>a(n)))}},t:s}};var w=function(){var t=this,i=t._self._c;return i("div",{class:{"icon-loading":t.loading}},[t.error?i("NcEmptyContent",{attrs:{name:t.error},scopedSlots:t._u([{key:"icon",fn:function(){return[i("NcIconSvgWrapper",{attrs:{svg:t.lightningBoltSVG}})]},proxy:!0}],null,!1,63559581)}):[t.sidebarPlugins.length>0?i("div",{staticClass:"activity__actions"},t._l(t.sidebarPlugins,function(e,n){return i("ActivitySidebarPlugin",{key:n,attrs:{plugin:e,"file-info":t.fileInfo},on:{"reload-activities":function(a){return t.getActivities()}}})}),1):t._e(),t.loading?i("NcEmptyContent",{attrs:{name:t.t("activity","Loading activities")},scopedSlots:t._u([{key:"icon",fn:function(){return[i("NcLoadingIcon")]},proxy:!0}],null,!1,3085876643)}):t.activities.length===0?i("NcEmptyContent",{attrs:{name:t.t("activity","No activity yet")},scopedSlots:t._u([{key:"icon",fn:function(){return[i("span",{staticClass:"icon-activity"})]},proxy:!0}])}):i("ul",t._l(t.activities,function(e){return i("Activity",{key:e.id,attrs:{activity:e},on:{reload:function(n){return t.getActivities()}}})}),1)]],2)},j=[],L=o(E,w,j,!1,null,"fcd34f78",null,null);const U=L.exports;export{U as default};
1 change: 1 addition & 0 deletions js/ActivityTab-a75b5ba9.mjs.map

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

Loading

0 comments on commit bd207f5

Please sign in to comment.