From 1c2e6893de549bb1358db84b8023470901c597ab Mon Sep 17 00:00:00 2001 From: Giulia Ghisini <51911425+giuliaghisini@users.noreply.github.com> Date: Fri, 2 Feb 2024 11:08:48 +0100 Subject: [PATCH] feat: added csv icon for files (#511) * feat: added csv icon for files * fix: csv icon * chore: Update src/icons/file-csv.svg Co-authored-by: Piero Nicolli --------- Co-authored-by: Piero Nicolli --- RELEASE.md | 6 ++++++ src/helpers/files.js | 5 +++++ src/icons/file-csv.svg | 1 + 3 files changed, 12 insertions(+) create mode 100644 src/icons/file-csv.svg diff --git a/RELEASE.md b/RELEASE.md index a8edf225c..0e1d6ee21 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -40,6 +40,12 @@ - ... --> +## Versione x.x.x (xx/xx/xxxx) + +### Novità + +- Aggiunta l'icona per il formato di file CSV + ## Versione 11.3.3 (30/01/2024) diff --git a/src/helpers/files.js b/src/helpers/files.js index 5162bf41b..da2a5b510 100644 --- a/src/helpers/files.js +++ b/src/helpers/files.js @@ -3,6 +3,7 @@ import faFileXsd from 'design-comuni-plone-theme/icons/file-xsd.svg'; import faFileOdp from 'design-comuni-plone-theme/icons/file-odp.svg'; import faFileOds from 'design-comuni-plone-theme/icons/file-ods.svg'; import faFileOdt from 'design-comuni-plone-theme/icons/file-odt.svg'; +import faFileCSV from 'design-comuni-plone-theme/icons/file-csv.svg'; export const FILE_FORMATS = { 'text/rtf': { icon: { lib: 'far', name: 'file-alt' }, format_name: 'rtf' }, @@ -87,6 +88,10 @@ export const FILE_FORMATS = { icon: { lib: '', name: faFileXml, svg_format: true }, format_name: 'XML', }, + 'text/csv': { + icon: { lib: '', name: faFileCSV, svg_format: true }, + format_name: 'CSV', + }, 'application/xml': { icon: { lib: '', name: faFileXml, svg_format: true }, format_name: 'XML', diff --git a/src/icons/file-csv.svg b/src/icons/file-csv.svg new file mode 100644 index 000000000..02010c367 --- /dev/null +++ b/src/icons/file-csv.svg @@ -0,0 +1 @@ +