Skip to content

Commit ed3cd80

Browse files
committed
fix(accessibility): fix some accessibility issues
Signed-off-by: Anna Larch <anna@nextcloud.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent ae1dee0 commit ed3cd80

25 files changed

Lines changed: 557 additions & 14 deletions

img/activity-dark.svg

Lines changed: 1 addition & 1 deletion
Loading

img/activity.svg

Lines changed: 1 addition & 1 deletion
Loading

img/notifications-dark.svg

Lines changed: 1 addition & 1 deletion
Loading

js/ActivityComponent.vue_vue_type_script_setup_true_lang-B7PXwsTv.chunk.mjs

Lines changed: 88 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 248 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,248 @@
1+
SPDX-License-Identifier: AGPL-3.0-or-later
2+
SPDX-License-Identifier: GPL-3.0-or-later
3+
SPDX-License-Identifier: ISC
4+
SPDX-License-Identifier: MIT
5+
SPDX-FileCopyrightText: Andrea Giammarchi
6+
SPDX-FileCopyrightText: Anthony Fu <https://github.com/antfu>
7+
SPDX-FileCopyrightText: Christoph Wurst
8+
SPDX-FileCopyrightText: Eduardo San Martin Morote
9+
SPDX-FileCopyrightText: Eric Norris (https://github.com/ericnorris)
10+
SPDX-FileCopyrightText: Eugene Sharygin <eush77@gmail.com>
11+
SPDX-FileCopyrightText: Evan You
12+
SPDX-FileCopyrightText: Iskren Ivov Chernev <iskren.chernev@gmail.com> (https://github.com/ichernev)
13+
SPDX-FileCopyrightText: Jacob Clevenger<https://github.com/wheatjs>
14+
SPDX-FileCopyrightText: Jeff Sagal <sagalbot@gmail.com>
15+
SPDX-FileCopyrightText: Julius Härtl <jus@bitgrid.net>
16+
SPDX-FileCopyrightText: Mark <mark@remarkablemark.org>
17+
SPDX-FileCopyrightText: Max <max@nextcloud.com>
18+
SPDX-FileCopyrightText: Nextcloud GmbH and Nextcloud contributors
19+
SPDX-FileCopyrightText: Sindre Sorhus
20+
SPDX-FileCopyrightText: Stefan Thomas <justmoon@members.fsf.org> (http://www.justmoon.net)
21+
SPDX-FileCopyrightText: Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)
22+
SPDX-FileCopyrightText: inline-style-parser developers
23+
SPDX-FileCopyrightText: rhysd <lin90162@yahoo.co.jp>
24+
SPDX-FileCopyrightText: ts-md5 developers
25+
26+
This file is generated from multiple sources. Included packages:
27+
- @nextcloud/capabilities
28+
- version: 1.2.1
29+
- license: GPL-3.0-or-later
30+
- @nextcloud/moment
31+
- version: 1.3.5
32+
- license: GPL-3.0-or-later
33+
- @nextcloud/paths
34+
- version: 3.0.0
35+
- license: GPL-3.0-or-later
36+
- @nextcloud/sharing
37+
- version: 0.3.0
38+
- license: GPL-3.0-or-later
39+
- @nextcloud/vue
40+
- version: 9.5.0
41+
- license: AGPL-3.0-or-later
42+
- @ungap/structured-clone
43+
- version: 1.3.0
44+
- license: ISC
45+
- @vueuse/components
46+
- version: 14.2.1
47+
- license: MIT
48+
- @vueuse/core
49+
- version: 14.2.1
50+
- license: MIT
51+
- @vueuse/shared
52+
- version: 14.2.1
53+
- license: MIT
54+
- activity
55+
- version: 6.0.0-dev.0
56+
- license: AGPL-3.0-or-later
57+
- bail
58+
- version: 2.0.2
59+
- license: MIT
60+
- comma-separated-tokens
61+
- version: 2.0.3
62+
- license: MIT
63+
- decode-named-character-reference
64+
- version: 1.1.0
65+
- license: MIT
66+
- devlop
67+
- version: 1.1.0
68+
- license: MIT
69+
- escape-string-regexp
70+
- version: 5.0.0
71+
- license: MIT
72+
- estree-util-is-identifier-name
73+
- version: 3.0.0
74+
- license: MIT
75+
- extend
76+
- version: 3.0.2
77+
- license: MIT
78+
- hast-util-is-element
79+
- version: 3.0.0
80+
- license: MIT
81+
- hast-util-to-jsx-runtime
82+
- version: 2.3.6
83+
- license: MIT
84+
- hast-util-whitespace
85+
- version: 3.0.0
86+
- license: MIT
87+
- inline-style-parser
88+
- version: 0.2.4
89+
- license: MIT
90+
- is-absolute-url
91+
- version: 4.0.1
92+
- license: MIT
93+
- is-plain-obj
94+
- version: 4.1.0
95+
- license: MIT
96+
- mdast-squeeze-paragraphs
97+
- version: 6.0.0
98+
- license: MIT
99+
- mdast-util-find-and-replace
100+
- version: 3.0.2
101+
- license: MIT
102+
- mdast-util-from-markdown
103+
- version: 2.0.2
104+
- license: MIT
105+
- mdast-util-newline-to-break
106+
- version: 2.0.0
107+
- license: MIT
108+
- mdast-util-to-hast
109+
- version: 13.2.1
110+
- license: MIT
111+
- mdast-util-to-string
112+
- version: 4.0.0
113+
- license: MIT
114+
- micromark
115+
- version: 4.0.2
116+
- license: MIT
117+
- micromark-core-commonmark
118+
- version: 2.0.3
119+
- license: MIT
120+
- micromark-factory-destination
121+
- version: 2.0.1
122+
- license: MIT
123+
- micromark-factory-label
124+
- version: 2.0.1
125+
- license: MIT
126+
- micromark-factory-space
127+
- version: 2.0.1
128+
- license: MIT
129+
- micromark-factory-title
130+
- version: 2.0.1
131+
- license: MIT
132+
- micromark-factory-whitespace
133+
- version: 2.0.1
134+
- license: MIT
135+
- micromark-util-character
136+
- version: 2.1.1
137+
- license: MIT
138+
- micromark-util-chunked
139+
- version: 2.0.1
140+
- license: MIT
141+
- micromark-util-classify-character
142+
- version: 2.0.1
143+
- license: MIT
144+
- micromark-util-combine-extensions
145+
- version: 2.0.1
146+
- license: MIT
147+
- micromark-util-decode-numeric-character-reference
148+
- version: 2.0.2
149+
- license: MIT
150+
- micromark-util-decode-string
151+
- version: 2.0.1
152+
- license: MIT
153+
- micromark-util-html-tag-name
154+
- version: 2.0.1
155+
- license: MIT
156+
- micromark-util-normalize-identifier
157+
- version: 2.0.1
158+
- license: MIT
159+
- micromark-util-resolve-all
160+
- version: 2.0.1
161+
- license: MIT
162+
- micromark-util-sanitize-uri
163+
- version: 2.0.1
164+
- license: MIT
165+
- micromark-util-subtokenize
166+
- version: 2.1.0
167+
- license: MIT
168+
- moment
169+
- version: 2.30.1
170+
- license: MIT
171+
- property-information
172+
- version: 7.1.0
173+
- license: MIT
174+
- rehype-external-links
175+
- version: 3.0.0
176+
- license: MIT
177+
- rehype-react
178+
- version: 8.0.0
179+
- license: MIT
180+
- remark-breaks
181+
- version: 4.0.0
182+
- license: MIT
183+
- remark-parse
184+
- version: 11.0.0
185+
- license: MIT
186+
- remark-rehype
187+
- version: 11.1.2
188+
- license: MIT
189+
- remark-unlink-protocols
190+
- version: 1.0.0
191+
- license: MIT
192+
- space-separated-tokens
193+
- version: 2.0.2
194+
- license: MIT
195+
- striptags
196+
- version: 3.2.0
197+
- license: MIT
198+
- style-to-js
199+
- version: 1.1.16
200+
- license: MIT
201+
- style-to-object
202+
- version: 1.0.8
203+
- license: MIT
204+
- trim-lines
205+
- version: 3.0.1
206+
- license: MIT
207+
- trough
208+
- version: 2.2.0
209+
- license: MIT
210+
- ts-md5
211+
- version: 2.0.1
212+
- license: MIT
213+
- unified
214+
- version: 11.0.5
215+
- license: MIT
216+
- unist-builder
217+
- version: 4.0.0
218+
- license: MIT
219+
- unist-util-is
220+
- version: 6.0.0
221+
- license: MIT
222+
- unist-util-position
223+
- version: 5.0.0
224+
- license: MIT
225+
- unist-util-stringify-position
226+
- version: 4.0.0
227+
- license: MIT
228+
- unist-util-visit
229+
- version: 5.1.0
230+
- license: MIT
231+
- unist-util-visit-parents
232+
- version: 6.0.1
233+
- license: MIT
234+
- vfile
235+
- version: 6.0.3
236+
- license: MIT
237+
- vfile-message
238+
- version: 4.0.2
239+
- license: MIT
240+
- vite
241+
- version: 7.3.1
242+
- license: MIT
243+
- vue-router
244+
- version: 5.0.3
245+
- license: MIT
246+
- vue-select
247+
- version: 4.0.0-beta.6
248+
- license: MIT

js/ActivityComponent.vue_vue_type_script_setup_true_lang-B7PXwsTv.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/ActivityTab-BnssTuPi.chunk.mjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".activity[data-v-17416c72]{display:flex;flex-direction:column;overflow:hidden;height:100%}.activity__actions[data-v-17416c72]{display:flex;flex-direction:column;width:100%}.activity__list[data-v-17416c72]{flex-grow:1;overflow:scroll}.activity__empty-content[data-v-17416c72]{height:100%}[data-v-17416c72] .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)}})();
2+
import{l as k}from"./activity-sidebar.mjs";import{m as P,b as N,h as j,j as I,g as x}from"./_plugin-vue_export-helper-CLEoG88O.chunk.mjs";import{d as _,x as B,g as C,B as E,y as L,c as s,a as i,M as u,l as R,m as o,b as r,h as p,f as y,F as g,E as q,L as h,n as G}from"./translation-DoG5ZELJ-CS9ajeXy.chunk.mjs";import{N as O,_ as V,A as T}from"./ActivityComponent.vue_vue_type_script_setup_true_lang-B7PXwsTv.chunk.mjs";import{g as W,a as F,b as M}from"./api-mFrM-9qG.chunk.mjs";import{l as f}from"./logger-1JHA8kGV.chunk.mjs";import"./preload-helper-DxYC2qmj.chunk.mjs";import"./index-NjYp13Ld.chunk.mjs";const U=_({__name:"ActivitySidebarPlugin",props:{plugin:{},node:{}},emits:["reload-activities"],setup(t,{emit:e}){const a=t,n=e,l=C();return B(()=>a.plugin.mount(l.value,{node:a.node,context:E()?.proxy??void 0,reload:()=>n("reload-activities")})),L(()=>a.plugin.unmount()),(b,d)=>(i(),s("div",{ref_key:"attachTarget",ref:l},null,512))}}),$=_({name:"ActivityTab",components:{ActivityComponent:V,NcEmptyContent:O,NcIconSvgWrapper:N,NcLoadingIcon:P,ActivitySidebarPlugin:U},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:k,sidebarPlugins:[]}},watch:{node:{immediate:!0,async handler(){await this.update()}}},async mounted(){this.node&&await this.update()},methods:{async update(){this.sidebarPlugins=[];const t=M();t.length>0&&R(()=>{this.sidebarPlugins=t}),this.resetState(),await this.getActivities()},async getActivities(){try{this.loading=!0;const t=await this.processActivities(await this.loadRealActivities()),e=await F({node:this.node});this.activities=[...t,...e].sort((a,n)=>n.timestamp-a.timestamp)}catch(t){this.error=u("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 j.get(I("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 T(a)),f.debug(`Processed ${t.length} activity(ies)`,{activities:t,node:this.node});const e=W();return t.filter(a=>!e||e.every(n=>n(a)))},t:u}}),z={key:0,class:"activity__actions"},D={key:3,class:"activity__list","aria-live":"polite","aria-relevant":"additions"};function H(t,e,a,n,l,b){const d=o("NcIconSvgWrapper"),v=o("NcEmptyContent"),A=o("ActivitySidebarPlugin"),w=o("NcLoadingIcon"),S=o("ActivityComponent");return i(),s("div",{class:G([{"icon-loading":t.loading},"activity"])},[t.error||!t.node?(i(),r(v,{key:0,name:t.error},{icon:p(()=>[y(d,{svg:t.lightningBoltSVG},null,8,["svg"])]),_:1},8,["name"])):(i(),s(g,{key:1},[t.sidebarPlugins.length>0?(i(),s("div",z,[(i(!0),s(g,null,h(t.sidebarPlugins,(c,m)=>(i(),r(A,{key:m,plugin:c,node:t.node,onReloadActivities:e[0]||(e[0]=J=>t.getActivities())},null,8,["plugin","node"]))),128))])):q("",!0),t.loading?(i(),r(v,{key:1,class:"activity__empty-content",name:t.t("activity","Loading activities")},{icon:p(()=>[y(w)]),_:1},8,["name"])):t.activities.length===0?(i(),r(v,{key:2,class:"activity__empty-content",name:t.t("activity","No activity yet")},{icon:p(()=>[y(d,{svg:t.lightningBoltSVG},null,8,["svg"])]),_:1},8,["name"])):(i(),s("ul",D,[(i(!0),s(g,null,h(t.activities,c=>(i(),r(S,{key:c.id,activity:c,"show-previews":!1,onReload:e[1]||(e[1]=m=>t.getActivities())},null,8,["activity"]))),128))]))],64))],2)}const at=x($,[["render",H],["__scopeId","data-v-17416c72"]]);export{at as default};
3+
//# sourceMappingURL=ActivityTab-BnssTuPi.chunk.mjs.map
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
SPDX-License-Identifier: AGPL-3.0-or-later
2+
SPDX-FileCopyrightText: Julius Härtl <jus@bitgrid.net>
3+
4+
This file is generated from multiple sources. Included packages:
5+
- activity
6+
- version: 6.0.0-dev.0
7+
- license: AGPL-3.0-or-later

0 commit comments

Comments
 (0)