Skip to content
Open
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

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,244 @@
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-License-Identifier: GPL-3.0-or-later
SPDX-License-Identifier: ISC
SPDX-License-Identifier: MIT
SPDX-FileCopyrightText: Andrea Giammarchi
SPDX-FileCopyrightText: Anthony Fu <https://github.com/antfu>
SPDX-FileCopyrightText: Christoph Wurst
SPDX-FileCopyrightText: Eric Norris (https://github.com/ericnorris)
SPDX-FileCopyrightText: Eugene Sharygin <eush77@gmail.com>
SPDX-FileCopyrightText: Evan You
SPDX-FileCopyrightText: Iskren Ivov Chernev <iskren.chernev@gmail.com> (https://github.com/ichernev)
SPDX-FileCopyrightText: Jacob Clevenger<https://github.com/wheatjs>
SPDX-FileCopyrightText: Jeff Sagal <sagalbot@gmail.com>
SPDX-FileCopyrightText: Julius Härtl <jus@bitgrid.net>
SPDX-FileCopyrightText: Mark <mark@remarkablemark.org>
SPDX-FileCopyrightText: Max <max@nextcloud.com>
SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
SPDX-FileCopyrightText: Sindre Sorhus
SPDX-FileCopyrightText: Stefan Thomas <justmoon@members.fsf.org> (http://www.justmoon.net)
SPDX-FileCopyrightText: Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)
SPDX-FileCopyrightText: inline-style-parser developers
SPDX-FileCopyrightText: rhysd <lin90162@yahoo.co.jp>
SPDX-FileCopyrightText: ts-md5 developers

This file is generated from multiple sources. Included packages:
- @nextcloud/capabilities
- version: 1.2.1
- license: GPL-3.0-or-later
- @nextcloud/moment
- version: 1.3.5
- license: GPL-3.0-or-later
- @nextcloud/paths
- version: 3.1.0
- license: GPL-3.0-or-later
- @nextcloud/sharing
- version: 0.4.0
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 9.7.0
- license: AGPL-3.0-or-later
- @nextcloud/vue-select
- version: 4.1.0
- license: MIT
- @ungap/structured-clone
- version: 1.3.0
- license: ISC
- @vueuse/components
- version: 14.2.1
- license: MIT
- @vueuse/core
- version: 14.2.1
- license: MIT
- @vueuse/shared
- version: 14.2.1
- license: MIT
- activity
- version: 7.0.0-dev.0
- license: AGPL-3.0-or-later
- bail
- version: 2.0.2
- license: MIT
- comma-separated-tokens
- version: 2.0.3
- license: MIT
- decode-named-character-reference
- version: 1.1.0
- license: MIT
- devlop
- version: 1.1.0
- license: MIT
- escape-string-regexp
- version: 5.0.0
- license: MIT
- estree-util-is-identifier-name
- version: 3.0.0
- license: MIT
- extend
- version: 3.0.2
- license: MIT
- hast-util-is-element
- version: 3.0.0
- license: MIT
- hast-util-to-jsx-runtime
- version: 2.3.6
- license: MIT
- hast-util-whitespace
- version: 3.0.0
- license: MIT
- inline-style-parser
- version: 0.2.4
- license: MIT
- is-absolute-url
- version: 4.0.1
- license: MIT
- is-plain-obj
- version: 4.1.0
- license: MIT
- mdast-squeeze-paragraphs
- version: 6.0.0
- license: MIT
- mdast-util-find-and-replace
- version: 3.0.2
- license: MIT
- mdast-util-from-markdown
- version: 2.0.2
- license: MIT
- mdast-util-newline-to-break
- version: 2.0.0
- license: MIT
- mdast-util-to-hast
- version: 13.2.1
- license: MIT
- mdast-util-to-string
- version: 4.0.0
- license: MIT
- micromark
- version: 4.0.2
- license: MIT
- micromark-core-commonmark
- version: 2.0.3
- license: MIT
- micromark-factory-destination
- version: 2.0.1
- license: MIT
- micromark-factory-label
- version: 2.0.1
- license: MIT
- micromark-factory-space
- version: 2.0.1
- license: MIT
- micromark-factory-title
- version: 2.0.1
- license: MIT
- micromark-factory-whitespace
- version: 2.0.1
- license: MIT
- micromark-util-character
- version: 2.1.1
- license: MIT
- micromark-util-chunked
- version: 2.0.1
- license: MIT
- micromark-util-classify-character
- version: 2.0.1
- license: MIT
- micromark-util-combine-extensions
- version: 2.0.1
- license: MIT
- micromark-util-decode-numeric-character-reference
- version: 2.0.2
- license: MIT
- micromark-util-decode-string
- version: 2.0.1
- license: MIT
- micromark-util-html-tag-name
- version: 2.0.1
- license: MIT
- micromark-util-normalize-identifier
- version: 2.0.1
- license: MIT
- micromark-util-resolve-all
- version: 2.0.1
- license: MIT
- micromark-util-sanitize-uri
- version: 2.0.1
- license: MIT
- micromark-util-subtokenize
- version: 2.1.0
- license: MIT
- moment
- version: 2.30.1
- license: MIT
- property-information
- version: 7.1.0
- license: MIT
- rehype-external-links
- version: 3.0.0
- license: MIT
- rehype-react
- version: 8.0.0
- license: MIT
- remark-breaks
- version: 4.0.0
- license: MIT
- remark-parse
- version: 11.0.0
- license: MIT
- remark-rehype
- version: 11.1.2
- license: MIT
- remark-unlink-protocols
- version: 1.0.0
- license: MIT
- space-separated-tokens
- version: 2.0.2
- license: MIT
- striptags
- version: 3.2.0
- license: MIT
- style-to-js
- version: 1.1.16
- license: MIT
- style-to-object
- version: 1.0.8
- license: MIT
- trim-lines
- version: 3.0.1
- license: MIT
- trough
- version: 2.2.0
- license: MIT
- ts-md5
- version: 2.0.1
- license: MIT
- unified
- version: 11.0.5
- license: MIT
- unist-builder
- version: 4.0.0
- license: MIT
- unist-util-is
- version: 6.0.0
- license: MIT
- unist-util-position
- version: 5.0.0
- license: MIT
- unist-util-stringify-position
- version: 4.0.0
- license: MIT
- unist-util-visit
- version: 5.1.0
- license: MIT
- unist-util-visit-parents
- version: 6.0.2
- license: MIT
- vfile
- version: 6.0.3
- license: MIT
- vfile-message
- version: 4.0.2
- license: MIT
- vite
- version: 7.3.2
- license: MIT

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions js/ActivityTab-Dv1gyT8t.chunk.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".download-summary[data-v-039613d8]{display:flex;align-items:flex-start;padding:8px 0;margin-bottom:calc(var(--default-grid-baseline) * 2);color:var(--color-text-maxcontrast)}.download-summary__icon[data-v-039613d8]{flex-shrink:0;display:flex;align-items:center;justify-content:center;width:20px;height:20px;margin-top:2px;opacity:.5}.download-summary__text[data-v-039613d8]{padding:0 5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.activity[data-v-ced8713d]{display:flex;flex-direction:column;overflow:hidden;height:100%}.activity__actions[data-v-ced8713d]{display:flex;flex-direction:column;width:100%}.activity__list[data-v-ced8713d]{flex-grow:1;overflow:scroll}.activity__empty-content[data-v-ced8713d]{height:100%}[data-v-ced8713d] .empty-content__icon span{background-size:64px;width:64px;height:64px}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
import{l as R}from"./activity-sidebar.mjs";import{b as A,h as G,g as I,k as D}from"./_plugin-vue_export-helper-CI9KtCO6.chunk.mjs";import{d as b,x as V,B as E,y as M,a as i,c as o,j as T,a2 as p,M as h,m as n,e as S,f as m,t as B,E as g,l as H,b as r,g as y,F as v,L as k,n as q}from"./translation-DoG5ZELJ-DZn9HrMY.chunk.mjs";import{a as j}from"./index-DxSbrVwz.chunk.mjs";import{N as F,_ as O,A as W}from"./ActivityComponent.vue_vue_type_script_setup_true_lang-C4VJG6jM.chunk.mjs";import{l as f}from"./logger-BgVM16Kc.chunk.mjs";import{g as U,a as z,b as Z}from"./api-Ece4zLIo.chunk.mjs";import"./preload-helper-DxYC2qmj.chunk.mjs";import"./index-DJLpEI0G.chunk.mjs";import"./mdi-CpchYUUV-DyQi4TYO.chunk.mjs";var w;(function(t){t[t.User=0]="User",t[t.Group=1]="Group",t[t.Link=3]="Link",t[t.Email=4]="Email",t[t.Remote=6]="Remote",t[t.Team=7]="Team",t[t.Guest=8]="Guest",t[t.RemoteGroup=9]="RemoteGroup",t[t.Room=10]="Room",t[t.Deck=12]="Deck",t[t.FederatedGroup=14]="FederatedGroup",t[t.ScienceMesh=15]="ScienceMesh"})(w||(w={}));const $=b({__name:"ActivitySidebarPlugin",props:{plugin:{},node:{}},emits:["reload-activities"],setup(t,{emit:e}){const a=t,s=e,c=T();return V(()=>a.plugin.mount(c.value,{node:a.node,context:E()?.proxy??void 0,reload:()=>s("reload-activities")})),M(()=>a.plugin.unmount()),(_,d)=>(i(),o("div",{ref_key:"attachTarget",ref:c},null,512))}}),J='<svg xmlns="http://www.w3.org/2000/svg" id="mdi-download-circle" viewBox="0 0 24 24"><path d="M12 2C17.5 2 22 6.5 22 12C22 17.5 17.5 22 12 22C6.5 22 2 17.5 2 12C2 6.5 6.5 2 12 2M8 17H16V15H8V17M16 10H13.5V6H10.5V10H8L12 14L16 10Z" /></svg>',K=b({name:"DownloadSummary",components:{NcIconSvgWrapper:A},props:{fileId:{type:Number,required:!0}},data(){return{totalCount:0,monthlyCount:0,downloadSVG:J}},computed:{summaryText(){return this.monthlyCount>0&&this.monthlyCount<this.totalCount?p("activity","Downloaded %n time (%s in the last 30 days)","Downloaded %n times (%s in the last 30 days)",this.totalCount,[String(this.monthlyCount)]):p("activity","Downloaded %n time","Downloaded %n times",this.totalCount)}},watch:{fileId:{immediate:!0,handler(){this.fetchCounts()}}},methods:{async fetchCounts(){if(this.fileId){this.totalCount=0,this.monthlyCount=0;try{const t=await G.get(j("apps/activity/api/v2/activity/downloads/count"),{params:{format:"json",object_type:"files",object_id:this.fileId}});this.totalCount=t.data.ocs.data.total,this.monthlyCount=t.data.ocs.data.last30d}catch(t){f.error("Failed to fetch download counts",{error:t})}}},t:h,n:p}}),Q={key:0,class:"download-summary"},X={class:"download-summary__icon"},Y={class:"download-summary__text"};function tt(t,e,a,s,c,_){const d=n("NcIconSvgWrapper");return t.totalCount>0?(i(),o("div",Q,[S("span",X,[m(d,{svg:t.downloadSVG,size:20},null,8,["svg"])]),S("span",Y,B(t.summaryText),1)])):g("",!0)}const it=I(K,[["render",tt],["__scopeId","data-v-039613d8"]]),et=b({name:"ActivityTab",components:{ActivityComponent:O,DownloadSummary:it,NcEmptyContent:F,NcIconSvgWrapper:A,NcLoadingIcon:D,ActivitySidebarPlugin:$},props:{node:{type:Object,required:!0},folder:{type:Object,required:!1,default:void 0},view:{type:Object,required:!1,default:void 0}},expose:["update"],data(){return{error:"",loading:!0,activities:[],lightningBoltSVG:R,sidebarPlugins:[]}},computed:{hasPublicLink(){return Object.values(this.node?.attributes?.["share-types"]??{}).flat().includes(w.Link)}},watch:{node:{immediate:!0,async handler(){await this.update()}}},async mounted(){this.node&&await this.update()},methods:{async update(){this.sidebarPlugins=[];const t=Z();t.length>0&&H(()=>{this.sidebarPlugins=t}),this.resetState(),await this.getActivities()},async getActivities(){try{this.loading=!0;const t=await this.processActivities(await this.loadRealActivities()),e=await z({node:this.node});this.activities=[...t,...e].sort((a,s)=>s.timestamp-a.timestamp)}catch(t){this.error=h("activity","Unable to load the activity list"),f.error("Error loading the activity list",{error:t})}finally{this.loading=!1}},resetState(){this.loading=!0,this.error="",this.activities=[]},async loadRealActivities(){try{const{data:t}=await G.get(j("apps/activity/api/v2/activity/filter"),{params:{format:"json",object_type:"files",object_id:this.node.fileid}});return t.ocs.data}catch(t){if(t.response!==void 0&&t.response.status===304)return[];throw t}},processActivities(t){t=t.map(a=>new W(a)),f.debug(`Processed ${t.length} activity(ies)`,{activities:t,node:this.node});const e=U();return t.filter(a=>!e||e.every(s=>s(a)))},t:h}}),at={key:0,class:"activity__actions"},ot={key:4,class:"activity__list"};function st(t,e,a,s,c,_){const d=n("NcIconSvgWrapper"),u=n("NcEmptyContent"),L=n("ActivitySidebarPlugin"),N=n("DownloadSummary"),P=n("NcLoadingIcon"),x=n("ActivityComponent");return i(),o("div",{class:q([{"icon-loading":t.loading},"activity"])},[t.error||!t.node?(i(),r(u,{key:0,name:t.error},{icon:y(()=>[m(d,{svg:t.lightningBoltSVG},null,8,["svg"])]),_:1},8,["name"])):(i(),o(v,{key:1},[t.sidebarPlugins.length>0?(i(),o("div",at,[(i(!0),o(v,null,k(t.sidebarPlugins,(l,C)=>(i(),r(L,{key:C,plugin:l,node:t.node,onReloadActivities:e[0]||(e[0]=nt=>t.getActivities())},null,8,["plugin","node"]))),128))])):g("",!0),t.hasPublicLink&&t.node.fileid?(i(),r(N,{key:1,"file-id":t.node.fileid},null,8,["file-id"])):g("",!0),t.loading?(i(),r(u,{key:2,class:"activity__empty-content",name:t.t("activity","Loading activities")},{icon:y(()=>[m(P)]),_:1},8,["name"])):t.activities.length===0?(i(),r(u,{key:3,class:"activity__empty-content",name:t.t("activity","No activity yet")},{icon:y(()=>[m(d,{svg:t.lightningBoltSVG},null,8,["svg"])]),_:1},8,["name"])):(i(),o("ul",ot,[(i(!0),o(v,null,k(t.activities,l=>(i(),r(x,{key:l.id,activity:l,"show-previews":!1,onReload:e[1]||(e[1]=C=>t.getActivities())},null,8,["activity"]))),128))]))],64))],2)}const gt=I(et,[["render",st],["__scopeId","data-v-ced8713d"]]);export{gt as default};
//# sourceMappingURL=ActivityTab-Dv1gyT8t.chunk.mjs.map
17 changes: 17 additions & 0 deletions js/ActivityTab-Dv1gyT8t.chunk.mjs.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-License-Identifier: Apache-2.0
SPDX-License-Identifier: GPL-3.0-or-later
SPDX-FileCopyrightText: Austin Andrews
SPDX-FileCopyrightText: Julius Härtl <jus@bitgrid.net>
SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors

This file is generated from multiple sources. Included packages:
- @mdi/svg
- version: 7.4.47
- license: Apache-2.0
- @nextcloud/sharing
- version: 0.3.0
- license: GPL-3.0-or-later
- activity
- version: 7.0.0-dev.0
- license: AGPL-3.0-or-later
1 change: 1 addition & 0 deletions js/ActivityTab-Dv1gyT8t.chunk.mjs.map

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions js/ContentCopy-DN5i-3PD.chunk.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import{g as s}from"./_plugin-vue_export-helper-CI9KtCO6.chunk.mjs";import{a as e,c as t,e as n,t as o,E as c,G as d}from"./translation-DoG5ZELJ-DZn9HrMY.chunk.mjs";const p={name:"ContentCopyIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},m=["aria-hidden","aria-label"],g=["fill","width","height"],f={d:"M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"},h={key:0};function u(l,a,i,y,H,C){return e(),t("span",d(l.$attrs,{"aria-hidden":i.title?null:"true","aria-label":i.title,class:"material-design-icon content-copy-icon",role:"img",onClick:a[0]||(a[0]=r=>l.$emit("click",r))}),[(e(),t("svg",{fill:i.fillColor,class:"material-design-icon__svg",width:i.size,height:i.size,viewBox:"0 0 24 24"},[n("path",f,[i.title?(e(),t("title",h,o(i.title),1)):c("",!0)])],8,g))],16,m)}const v=s(p,[["render",u]]);export{v as I};
//# sourceMappingURL=ContentCopy-DN5i-3PD.chunk.mjs.map
7 changes: 7 additions & 0 deletions js/ContentCopy-DN5i-3PD.chunk.mjs.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
SPDX-License-Identifier: MIT
SPDX-FileCopyrightText: Rob Cresswell <robcresswell@pm.me>

This file is generated from multiple sources. Included packages:
- vue-material-design-icons
- version: 5.3.1
- license: MIT
1 change: 1 addition & 0 deletions js/ContentCopy-DN5i-3PD.chunk.mjs.map

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

21 changes: 21 additions & 0 deletions js/_plugin-vue_export-helper-CI9KtCO6.chunk.mjs

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions js/_plugin-vue_export-helper-CI9KtCO6.chunk.mjs.license
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
SPDX-License-Identifier: AGPL-3.0-or-later
SPDX-License-Identifier: GPL-3.0-or-later
SPDX-License-Identifier: MIT
SPDX-FileCopyrightText: David Clark
SPDX-FileCopyrightText: Eduardo San Martin Morote
SPDX-FileCopyrightText: Evan You
SPDX-FileCopyrightText: Guillaume Chau <guillaume.b.chau@gmail.com>
SPDX-FileCopyrightText: Matt Zabriskie
SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
SPDX-FileCopyrightText: atomiks

This file is generated from multiple sources. Included packages:
- @floating-ui/core
- version: 1.7.5
- license: MIT
- @floating-ui/dom
- version: 1.1.1
- license: MIT
- @floating-ui/utils
- version: 0.2.11
- license: MIT
- @nextcloud/axios
- version: 2.6.0
- license: GPL-3.0-or-later
- @nextcloud/initial-state
- version: 3.0.0
- license: GPL-3.0-or-later
- @nextcloud/l10n
- version: 3.4.1
- license: GPL-3.0-or-later
- @nextcloud/vue
- version: 9.7.0
- license: AGPL-3.0-or-later
- @vitejs/plugin-vue
- version: 6.0.1
- license: MIT
- axios
- version: 1.16.0
- license: MIT
- floating-vue
- version: 5.2.2
- license: MIT
- focus-trap
- version: 8.2.0
- license: MIT
- tabbable
- version: 6.4.0
- license: MIT
- vue-router
- version: 5.0.6
- license: MIT
1 change: 1 addition & 0 deletions js/_plugin-vue_export-helper-CI9KtCO6.chunk.mjs.map

Large diffs are not rendered by default.

Loading
Loading