Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalwengerter committed Nov 17, 2023
1 parent e25f767 commit bbbf59a
Show file tree
Hide file tree
Showing 2 changed files with 170 additions and 0 deletions.
6 changes: 6 additions & 0 deletions changelog/unreleased/enhancement-more-audio-format-icons
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Enhancement: Support more audio formats with correct icon

We've updated our list of supported audio formats, so further formats/extensions (`.flac`,`.ogg`, among others) get displayed correctly.

https://github.com/owncloud/web/issues/9966
https://github.com/owncloud/web/pull/9985
164 changes: 164 additions & 0 deletions packages/design-system/src/helpers/resourceIconMapping.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,68 @@
{
"3gp": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"7z": {
"name": "resource-type-archive",
"color": "var(--oc-color-icon-archive)"
},
"8svx": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"aa": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"aac": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"aax": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"accdb": {
"name": "resource-type-file",
"color": "var(--oc-color-text-default)"
},
"act": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"ai": {
"name": "resource-type-image",
"color": "var(--oc-color-icon-image)"
},
"aiff": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"alac": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"amr": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"ape": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"apk": {
"name": "resource-type-archive",
"color": "var(--oc-color-icon-archive)"
},
"au": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"awb": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"bash": {
"name": "resource-type-code",
"color": "var(--oc-color-text-default)"
Expand Down Expand Up @@ -59,6 +107,10 @@
"name": "resource-type-code",
"color": "var(--oc-color-text-default)"
},
"cda": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"cdr": {
"name": "resource-type-image",
"color": "var(--oc-color-icon-image)"
Expand Down Expand Up @@ -91,6 +143,14 @@
"name": "resource-type-form",
"color": "var(--oc-color-icon-document)"
},
"dss": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"dvf": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"oform": {
"name": "resource-type-form",
"color": "var(--oc-color-icon-document)"
Expand Down Expand Up @@ -135,6 +195,10 @@
"name": "resource-type-code",
"color": "var(--oc-color-text-default)"
},
"flac": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"go": {
"name": "resource-type-code",
"color": "var(--oc-color-text-default)"
Expand All @@ -143,6 +207,10 @@
"name": "resource-type-image",
"color": "var(--oc-color-icon-image)"
},
"gsm": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"gz": {
"name": "resource-type-archive",
"color": "var(--oc-color-icon-archive)"
Expand Down Expand Up @@ -175,10 +243,18 @@
"name": "resource-type-ifc",
"color": "var(--oc-color-icon-ifc)"
},
"iklax": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"ipynb": {
"name": "resource-type-jupyter",
"color": "var(--oc-color-icon-jupyter)"
},
"ivs": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"java": {
"name": "resource-type-code",
"color": "var(--oc-color-text-default)"
Expand All @@ -203,6 +279,18 @@
"name": "resource-type-document",
"color": "var(--oc-color-icon-document)"
},
"m4a": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"m4b": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"m4p": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"md": {
"name": "resource-type-markdown",
"color": "var(--oc-color-text-default)"
Expand All @@ -211,10 +299,22 @@
"name": "resource-type-text",
"color": "var(--oc-color-text-default)"
},
"mmf": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"mogg": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"mov": {
"name": "resource-type-video",
"color": "var(--oc-color-icon-video)"
},
"movpkg": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"mp3": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
Expand All @@ -223,6 +323,18 @@
"name": "resource-type-video",
"color": "var(--oc-color-icon-video)"
},
"mpc": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"msv": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"nmf": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"odp": {
"name": "resource-type-presentation",
"color": "var(--oc-color-icon-presentation)"
Expand All @@ -239,10 +351,22 @@
"name": "resource-type-document",
"color": "var(--oc-color-icon-document)"
},
"oga": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"ogga": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"one": {
"name": "resource-type-document",
"color": "var(--oc-color-icon-document)"
},
"opus": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"otf": {
"name": "resource-type-image",
"color": "var(--oc-color-icon-image)"
Expand Down Expand Up @@ -323,10 +447,26 @@
"name": "resource-type-code",
"color": "var(--oc-color-text-default)"
},
"ra": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"rar": {
"name": "resource-type-archive",
"color": "var(--oc-color-icon-archive)"
},
"raw": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"rf64": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"rm": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"root": {
"name": "resource-type-root",
"color": "var(--oc-color-icon-root)"
Expand All @@ -347,6 +487,10 @@
"name": "resource-type-code",
"color": "var(--oc-color-text-default)"
},
"sln": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"sql": {
"name": "resource-type-code",
"color": "var(--oc-color-text-default)"
Expand Down Expand Up @@ -387,6 +531,10 @@
"name": "resource-type-code",
"color": "var(--oc-color-text-default)"
},
"tta": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"ttf": {
"name": "resource-type-image",
"color": "var(--oc-color-icon-image)"
Expand All @@ -399,6 +547,14 @@
"name": "resource-type-url",
"color": "var(--oc-color-text-default)"
},
"voc": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"vox": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"vsd": {
"name": "resource-type-document",
"color": "var(--oc-color-icon-document)"
Expand All @@ -411,6 +567,10 @@
"name": "resource-type-video",
"color": "var(--oc-color-icon-video)"
},
"wma": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"wmv": {
"name": "resource-type-video",
"color": "var(--oc-color-icon-video)"
Expand All @@ -423,6 +583,10 @@
"name": "resource-type-document",
"color": "var(--oc-color-icon-document)"
},
"wv": {
"name": "resource-type-audio",
"color": "var(--oc-color-icon-audio)"
},
"xcf": {
"name": "resource-type-image",
"color": "var(--oc-color-icon-image)"
Expand Down

0 comments on commit bbbf59a

Please sign in to comment.