A full-featured download manager.
feat: add file type icon
Dr_rOotf35e696c6aca
diff --git a/src/renderer/assets/icons/audio.svg b/src/renderer/assets/icons/audio.svgnew file mode 100644index 00000000..1da320a1--- /dev/null+++ b/src/renderer/assets/icons/audio.svg@@ -0,0 +1,10 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">+ <g stroke-linecap="round" stroke-linejoin="round" stroke-width="2" stroke="currentColor">+ <rect x="4" y="3" width="16" height="18" fill="none" stroke="currentColor" stroke-miterlimit="10"/>+ <line data-color="color-2" x1="1" y1="6" x2="1" y2="18" fill="none" stroke-miterlimit="10"/>+ <line data-color="color-2" x1="23" y1="6" x2="23" y2="18" fill="none" stroke-miterlimit="10"/>+ <polyline data-cap="butt" points="10 15 10 8 16 8 16 14" fill="none" stroke="currentColor" stroke-miterlimit="10"/>+ <circle data-stroke="none" cx="9" cy="15" r="2" stroke="none"/>+ <circle data-stroke="none" cx="15" cy="14" r="2" stroke="none"/>+ </g>+</svg>diff --git a/src/renderer/assets/icons/image.svg b/src/renderer/assets/icons/image.svgnew file mode 100644index 00000000..cb2ed616--- /dev/null+++ b/src/renderer/assets/icons/image.svg@@ -0,0 +1,7 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">+ <g stroke-linecap="round" stroke-linejoin="round" stroke-width="2" stroke="currentColor">+ <polyline data-cap="butt" data-color="color-2" points="1 20 6 14 10 18 17 10 23 17" fill="none" stroke-miterlimit="10"/>+ <rect x="1" y="3" width="22" height="18" fill="none" stroke="currentColor" stroke-miterlimit="10"/>+ <circle data-color="color-2" cx="9" cy="8" r="2" fill="none" stroke-miterlimit="10"/>+ </g>+</svg>diff --git a/src/renderer/assets/icons/video.svg b/src/renderer/assets/icons/video.svgnew file mode 100644index 00000000..c1ca9d64--- /dev/null+++ b/src/renderer/assets/icons/video.svg@@ -0,0 +1,12 @@+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">+ <g stroke-linecap="round" stroke-linejoin="round" stroke-width="2" stroke="currentColor">+ <line data-cap="butt" data-color="color-2" x1="2" y1="6" x2="22" y2="6" fill="none" stroke-miterlimit="10"/>+ <line data-cap="butt" data-color="color-2" x1="12" y1="2" x2="12" y2="22" fill="none" stroke-miterlimit="10"/>+ <line data-cap="butt" data-color="color-2" x1="7" y1="2" x2="7" y2="6" fill="none" stroke-miterlimit="10"/>+ <line data-cap="butt" data-color="color-2" x1="17" y1="2" x2="17" y2="6" fill="none" stroke-miterlimit="10"/>+ <line data-cap="butt" data-color="color-2" x1="2" y1="18" x2="22" y2="18" fill="none" stroke-miterlimit="10"/>+ <line data-cap="butt" data-color="color-2" x1="7" y1="22" x2="7" y2="18" fill="none" stroke-miterlimit="10"/>+ <line data-cap="butt" data-color="color-2" x1="17" y1="22" x2="17" y2="18" fill="none" stroke-miterlimit="10"/>+ <rect x="2" y="2" width="20" height="20" fill="none" stroke="currentColor" stroke-miterlimit="10"/>+ </g>+</svg>diff --git a/src/renderer/components/Icons/audio.js b/src/renderer/components/Icons/audio.jsnew file mode 100644index 00000000..795e604f--- /dev/null+++ b/src/renderer/components/Icons/audio.js@@ -0,0 +1,20 @@+import Icon from '@/components/Icons/Icon'++Icon.register({+ 'audio': {+ 'width': 24,+ 'height': 24,+ 'raw': `<rect x="4" y="3" width="16" height="18" fill="none" stroke="currentColor" stroke-miterlimit="10"/>+ <line data-color="color-2" x1="1" y1="6" x2="1" y2="18" fill="none" stroke-miterlimit="10"/>+ <line data-color="color-2" x1="23" y1="6" x2="23" y2="18" fill="none" stroke-miterlimit="10"/>+ <polyline data-cap="butt" points="10 15 10 8 16 8 16 14" fill="none" stroke="currentColor" stroke-miterlimit="10"/>+ <circle data-stroke="none" cx="9" cy="15" r="2" stroke="none"/>+ <circle data-stroke="none" cx="15" cy="14" r="2" stroke="none"/>`,+ 'g': {+ 'stroke': 'currentColor',+ 'stroke-linecap': 'round',+ 'stroke-linejoin': 'round',+ 'stroke-width': '2'+ }+ }+})diff --git a/src/renderer/components/Icons/image.js b/src/renderer/components/Icons/image.jsnew file mode 100644index 00000000..07c4865b--- /dev/null+++ b/src/renderer/components/Icons/image.js@@ -0,0 +1,17 @@+import Icon from '@/components/Icons/Icon'++Icon.register({+ 'image': {+ 'width': 24,+ 'height': 24,+ 'raw': `<polyline data-cap="butt" data-color="color-2" points="1 20 6 14 10 18 17 10 23 17" fill="none" stroke-miterlimit="10"/>+ <rect x="1" y="3" width="22" height="18" fill="none" stroke="currentColor" stroke-miterlimit="10"/>+ <circle data-color="color-2" cx="9" cy="8" r="2" fill="none" stroke-miterlimit="10"/>`,+ 'g': {+ 'stroke': 'currentColor',+ 'stroke-linecap': 'round',+ 'stroke-linejoin': 'round',+ 'stroke-width': '2'+ }+ }+})diff --git a/src/renderer/components/Icons/video.js b/src/renderer/components/Icons/video.jsnew file mode 100644index 00000000..ca86af66--- /dev/null+++ b/src/renderer/components/Icons/video.js@@ -0,0 +1,22 @@+import Icon from '@/components/Icons/Icon'++Icon.register({+ 'video': {+ 'width': 24,+ 'height': 24,+ 'raw': `<line data-cap="butt" data-color="color-2" x1="2" y1="6" x2="22" y2="6" fill="none" stroke-miterlimit="10"/>+ <line data-cap="butt" data-color="color-2" x1="12" y1="2" x2="12" y2="22" fill="none" stroke-miterlimit="10"/>+ <line data-cap="butt" data-color="color-2" x1="7" y1="2" x2="7" y2="6" fill="none" stroke-miterlimit="10"/>+ <line data-cap="butt" data-color="color-2" x1="17" y1="2" x2="17" y2="6" fill="none" stroke-miterlimit="10"/>+ <line data-cap="butt" data-color="color-2" x1="2" y1="18" x2="22" y2="18" fill="none" stroke-miterlimit="10"/>+ <line data-cap="butt" data-color="color-2" x1="7" y1="22" x2="7" y2="18" fill="none" stroke-miterlimit="10"/>+ <line data-cap="butt" data-color="color-2" x1="17" y1="22" x2="17" y2="18" fill="none" stroke-miterlimit="10"/>+ <rect x="2" y="2" width="20" height="20" fill="none" stroke="currentColor" stroke-miterlimit="10"/>`,+ 'g': {+ 'stroke': 'currentColor',+ 'stroke-linecap': 'round',+ 'stroke-linejoin': 'round',+ 'stroke-width': '2'+ }+ }+})