Skip to content

Commit

Permalink
* Allow NONE as project classifier.
Browse files Browse the repository at this point in the history
* Add frontend support for so far missing project classifiers supported by backend.
* Move available classifiers & collection logics into central mixin to reduce code duplication
* Ensure classifiers are always sorted the same way in all views

Signed-off-by: Ralf King <[email protected]>
  • Loading branch information
rkg-mm committed Oct 6, 2024
1 parent 161b221 commit 7f364bb
Show file tree
Hide file tree
Showing 19 changed files with 167 additions and 151 deletions.
5 changes: 5 additions & 0 deletions src/i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,11 @@
"component_container": "Container",
"component_cpe_desc": "Die CPE v2.2- oder v2.3-URI, wie von MITRE oder NIST bereitgestellt. Für alle Assets (Anwendungen, Betriebssysteme und Hardware) sollte ein CPE angegeben werden",
"component_created": "Komponente erstellt",
"component_data": "Daten",
"component_deleted": "Komponente gelöscht",
"component_details": "Komponentendetails",
"component_device": "Gerät",
"component_device_driver": "Gerätetreiber",
"component_file": "Datei",
"component_filename_desc": "Gibt den beobachteten Dateinamen der Komponente an",
"component_firmware": "Firmware",
Expand All @@ -391,11 +393,14 @@
"component_library": "Bibliothek",
"component_license_expression_desc": "Gibt Lizenzinformationen für die Komponente in Form eines SPDX-Ausdrucks an",
"component_license_url_desc": "Gibt die URL zur Lizenz der Komponente an",
"component_machine_learning_model": "Modell des maschinellen Lernens",
"component_name": "Komponentenname",
"component_name_desc": "Der vom Lieferanten angegebene Name der Komponente",
"component_namespace_group_vendor": "Namespace/Gruppe/Anbieter",
"component_none_classifier": "Keiner",
"component_operating_system": "Betriebssystem",
"component_package_url_desc": "Für Bibliotheken und Frameworks ist eine gültige Paket-URL erforderlich. PURL-Syntax: pkg:type/namespace/name@version?qualifiers#subpath",
"component_platform": "Plattform",
"component_properties": "Komponenteneigenschaften",
"component_search": "Komponentensuche",
"component_spdx_license_desc": "Gibt die SPDX-Lizenz-ID der Komponente an",
Expand Down
5 changes: 5 additions & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,11 @@
"component_container": "Container",
"component_cpe_desc": "The CPE v2.2 or v2.3 URI as provided by MITRE or NIST. All assets (applications, operating systems, and hardware) should have a CPE specified",
"component_created": "Component created",
"component_data": "Data",
"component_deleted": "Component deleted",
"component_details": "Component Details",
"component_device": "Device",
"component_device_driver": "Device Driver",
"component_file": "File",
"component_filename_desc": "Specifies the observed filename of the component",
"component_firmware": "Firmware",
Expand All @@ -391,11 +393,14 @@
"component_library": "Library",
"component_license_expression_desc": "Specifies license information for the component in the form of an SPDX expression",
"component_license_url_desc": "Specifies the URL to the license of the component",
"component_machine_learning_model": "Machine Learning Model",
"component_name": "Component name",
"component_name_desc": "The name of the component as provided by the supplier",
"component_namespace_group_vendor": "Namespace / group / vendor",
"component_none_classifier": "None",
"component_operating_system": "Operating system",
"component_package_url_desc": "A Valid Package URL is required for libraries and frameworks. PURL syntax: pkg:type/namespace/name@version?qualifiers#subpath",
"component_platform": "Platform",
"component_properties": "Component Properties",
"component_search": "Component Search",
"component_spdx_license_desc": "Specifies the SPDX license ID of the component",
Expand Down
5 changes: 5 additions & 0 deletions src/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,11 @@
"component_container": "Contenedor",
"component_cpe_desc": "El URI de CPE v2.2 o v2.3 proporcionado por MITRE o NIST. Todos los activos (aplicaciones, sistemas operativos y hardware) deben tener un CPE especificado.",
"component_created": "Componente creado",
"component_data": "Datos",
"component_deleted": "Componente eliminado",
"component_details": "Detalles del componente",
"component_device": "Dispositivo",
"component_device_driver": "Controlador de dispositivo",
"component_file": "Archivo",
"component_filename_desc": "Especifica el nombre de archivo observado del componente.",
"component_firmware": "Firmware",
Expand All @@ -391,11 +393,14 @@
"component_library": "Biblioteca",
"component_license_expression_desc": "Especifica información de licencia para el componente en forma de expresión SPDX.",
"component_license_url_desc": "Especifica la URL de la licencia del componente.",
"component_machine_learning_model": "Modelo de aprendizaje automático",
"component_name": "Nombre del componente",
"component_name_desc": "El nombre del componente proporcionado por el proveedor.",
"component_namespace_group_vendor": "Espacio de nombres/grupo/proveedor",
"component_none_classifier": "Ninguno",
"component_operating_system": "Sistema operativo",
"component_package_url_desc": "Se requiere una URL de paquete válida para bibliotecas y marcos. Sintaxis PURL: paquete:tipo/espacio de nombres/nombre@versión?calificadores#subruta",
"component_platform": "Plataforma",
"component_properties": "Propiedades de los componentes",
"component_search": "Búsqueda de componentes",
"component_spdx_license_desc": "Especifica el ID de licencia SPDX del componente.",
Expand Down
5 changes: 5 additions & 0 deletions src/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,11 @@
"component_container": "Conteneur",
"component_cpe_desc": "L'URI CPE v2.2 ou v2.3 tel que fourni par MITRE ou NIST. Tous les actifs (applications, systèmes d'exploitation et matériels) doivent avoir un CPE spécifié",
"component_created": "Composant créé",
"component_data": "Données",
"component_deleted": "Composant supprimé",
"component_details": "Détails des composants",
"component_device": "Équipement",
"component_device_driver": "Pilote de périphérique",
"component_file": "Fichier",
"component_filename_desc": "Spécifie le nom de fichier observé du composant",
"component_firmware": "Microprogramme",
Expand All @@ -391,11 +393,14 @@
"component_library": "Bibliothèque",
"component_license_expression_desc": "Spécifie les informations de licence pour le composant sous la forme d'une expression SPDX",
"component_license_url_desc": "Spécifie l'URL de la licence du composant",
"component_machine_learning_model": "Modèle d'apprentissage automatique",
"component_name": "Nom du composant",
"component_name_desc": "Le nom du composant tel que fourni par le fournisseur",
"component_namespace_group_vendor": "Espace de noms/groupe/fournisseur",
"component_none_classifier": "Aucun",
"component_operating_system": "Système d'exploitation",
"component_package_url_desc": "Une PackageURL valide est requise pour les bibliothèques et les frameworks. Syntaxe PURL : pkg:type/namespace/name@version?qualifiers#subpath",
"component_platform": "Plate-forme",
"component_properties": "Propriétés des composants",
"component_search": "Recherche de composants",
"component_spdx_license_desc": "Spécifie l'ID de licence SPDX du composant",
Expand Down
5 changes: 5 additions & 0 deletions src/i18n/locales/hi.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,11 @@
"component_container": "कंटेनर",
"component_cpe_desc": "MITRE या NIST द्वारा प्रदान किया गया CPE v2.2 या v2.3 URI। सभी संपत्तियों (अनुप्रयोग, ऑपरेटिंग सिस्टम और हार्डवेयर) में CPE निर्दिष्ट होना चाहिए",
"component_created": "घटक बनाया गया",
"component_data": "डेटा",
"component_deleted": "घटक हटा दिया गया",
"component_details": "घटक विवरण",
"component_device": "डिवाइस",
"component_device_driver": "डिवाइस ड्राइवर",
"component_file": "फ़ाइल",
"component_filename_desc": "घटक का प्रेक्षित फ़ाइल नाम निर्दिष्ट करता है",
"component_firmware": "फर्मवेयर",
Expand All @@ -391,11 +393,14 @@
"component_library": "लाइब्रेरी",
"component_license_expression_desc": "SPDX अभिव्यक्ति के रूप में घटक के लिए लाइसेंस जानकारी निर्दिष्ट करता है",
"component_license_url_desc": "घटक के लाइसेंस का URL निर्दिष्ट करता है",
"component_machine_learning_model": "मशीन लर्निंग मॉडल",
"component_name": "घटक का नाम",
"component_name_desc": "आपूर्तिकर्ता द्वारा प्रदान किया गया घटक का नाम",
"component_namespace_group_vendor": "नामस्थान / समूह / विक्रेता",
"component_none_classifier": "कोई नहीं",
"component_operating_system": "ऑपरेटिंग सिस्टम",
"component_package_url_desc": "लाइब्रेरीज़ और फ़्रेमवर्क के लिए एक मान्य पैकेज URL आवश्यक है। PURL सिंटैक्स: pkg:type/namespace/name@version?qualifiers#subpath",
"component_platform": "प्लैटफ़ॉर्म",
"component_properties": "घटक गुण",
"component_search": "घटक खोज",
"component_spdx_license_desc": "घटक की SPDX लाइसेंस आईडी निर्दिष्ट करता है",
Expand Down
5 changes: 5 additions & 0 deletions src/i18n/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,11 @@
"component_container": "Contenitore",
"component_cpe_desc": "L'URI CPE v2.2 o v2.3 fornito da MITRE o NIST. Per tutte le risorse (applicazioni, sistemi operativi e hardware) deve essere specificato un CPE",
"component_created": "Componente creato",
"component_data": "Dati",
"component_deleted": "Componente eliminato",
"component_details": "Dettagli dei componenti",
"component_device": "Dispositivo",
"component_device_driver": "Driver del dispositivo",
"component_file": "File",
"component_filename_desc": "Specifica il nome file osservato del componente",
"component_firmware": "Firmware",
Expand All @@ -391,11 +393,14 @@
"component_library": "Libreria",
"component_license_expression_desc": "Specifica le informazioni sulla licenza per il componente sotto forma di espressione SPDX",
"component_license_url_desc": "Specifica l'URL della licenza del componente",
"component_machine_learning_model": "Modello di apprendimento automatico",
"component_name": "Nome del componente",
"component_name_desc": "Il nome del componente fornito dal fornitore",
"component_namespace_group_vendor": "Spazio dei nomi/gruppo/fornitore",
"component_none_classifier": "Nessuno",
"component_operating_system": "Sistema operativo",
"component_package_url_desc": "Per librerie e framework è richiesto un URL del pacchetto valido. Sintassi PURL: pkg:tipo/spazio dei nomi/nome@versione?qualificatori#sottopercorso",
"component_platform": "Piattaforma",
"component_properties": "Proprietà del componente",
"component_search": "Ricerca componente",
"component_spdx_license_desc": "Specifica l'ID della licenza SPDX del componente",
Expand Down
5 changes: 5 additions & 0 deletions src/i18n/locales/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,11 @@
"component_container": "コンテナ",
"component_cpe_desc": "MITREまたはNISTによって提供されるCPE v2.2またはv2.3 URI。すべての資産(アプリケーション、オペレーティングシステム、ハードウェア)にはCPEを指定する必要があります。",
"component_created": "コンポーネントが作成されました",
"component_data": "データ",
"component_deleted": "コンポーネントが削除されました",
"component_details": "コンポーネントの詳細",
"component_device": "デバイス",
"component_device_driver": "デバイスドライバー",
"component_file": "ファイル",
"component_filename_desc": "コンポーネントの監視ファイル名を指定します",
"component_firmware": "ファームウェア",
Expand All @@ -391,11 +393,14 @@
"component_library": "ライブラリ",
"component_license_expression_desc": "SPDX式の形式でコンポーネントのライセンス情報を指定します",
"component_license_url_desc": "コンポーネントのライセンスのURLを指定します",
"component_machine_learning_model": "機械学習モデル",
"component_name": "コンポーネント名",
"component_name_desc": "サプライヤーから提供されたコンポーネントの名前",
"component_namespace_group_vendor": "名前空間 / グループ / ベンダー",
"component_none_classifier": "なし",
"component_operating_system": "オペレーティング システム",
"component_package_url_desc": "ライブラリとフレームワークには有効なパッケージ URL が必要です。PURL 構文: pkg:type/namespace/name@version?qualifiers#subpath",
"component_platform": "プラットフォーム",
"component_properties": "コンポーネントのプロパティ",
"component_search": "コンポーネント検索",
"component_spdx_license_desc": "コンポーネントのSPDXライセンスIDを指定します",
Expand Down
5 changes: 5 additions & 0 deletions src/i18n/locales/pl.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,11 @@
"component_container": "Kontener",
"component_cpe_desc": "Identyfikator URI CPE v2.2 lub v2.3 dostarczony przez MITRE lub NIST. Wszystkie zasoby (aplikacje, systemy operacyjne i sprzęt) powinny mieć określony CPE",
"component_created": "Komponent został utworzony",
"component_data": "Dane",
"component_deleted": "Komponent usunięty",
"component_details": "Szczegóły komponentu",
"component_device": "Urządzenie",
"component_device_driver": "Sterownik urządzenia",
"component_file": "Plik",
"component_filename_desc": "Określa obserwowaną nazwę pliku komponentu",
"component_firmware": "Oprogramowanie sprzętowe",
Expand All @@ -391,11 +393,14 @@
"component_library": "Biblioteka",
"component_license_expression_desc": "Określa informacje licencyjne dla komponentu w formie wyrażenia SPDX",
"component_license_url_desc": "Określa adres URL licencji komponentu",
"component_machine_learning_model": "Model uczenia maszynowego",
"component_name": "Nazwa komponentu",
"component_name_desc": "Nazwa komponentu podana przez dostawcę",
"component_namespace_group_vendor": "Przestrzeń nazw / grupa / dostawca",
"component_none_classifier": "Nic",
"component_operating_system": "System operacyjny",
"component_package_url_desc": "W przypadku bibliotek i struktur wymagany jest prawidłowy adres URL pakietu. Składnia PURL: pkg:typ/przestrzeń nazw/nazwa@wersja?kwalifikatory#podścieżka",
"component_platform": "Platforma",
"component_properties": "Właściwości komponentu",
"component_search": "Wyszukiwanie komponentów",
"component_spdx_license_desc": "Określa identyfikator licencji SPDX komponentu",
Expand Down
5 changes: 5 additions & 0 deletions src/i18n/locales/pt-BR.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,11 @@
"component_container": "Contêiner",
"component_cpe_desc": "O URI do CPE v2.2 ou v2.3 conforme fornecido pelo MITRE ou NIST. Todos os ativos (aplicativos, sistemas operacionais e hardware) devem ter um CPE especificado",
"component_created": "Componente criado",
"component_data": "Dados",
"component_deleted": "Componente excluído",
"component_details": "Detalhes do componente",
"component_device": "Dispositivo",
"component_device_driver": "Driver de dispositivo",
"component_file": "Arquivo",
"component_filename_desc": "Especifica o nome do arquivo observado do componente",
"component_firmware": "Firmware",
Expand All @@ -391,11 +393,14 @@
"component_library": "Biblioteca",
"component_license_expression_desc": "Especifica informações de licença do componente na forma de uma expressão SPDX",
"component_license_url_desc": "Especifica o URL para a licença do componente",
"component_machine_learning_model": "Modelo de aprendizado de máquina",
"component_name": "Nome do componente",
"component_name_desc": "O nome do componente conforme fornecido pelo fornecedor",
"component_namespace_group_vendor": "Namespace/grupo/fornecedor",
"component_none_classifier": "Nenhum",
"component_operating_system": "Sistema operacional",
"component_package_url_desc": "Um URL de pacote válido é necessário para bibliotecas e estruturas. Sintaxe PURL: pkg:tipo/namespace/nome@versão?qualificadores#subcaminho",
"component_platform": "Plataforma",
"component_properties": "Propriedades do Componente",
"component_search": "Pesquisa de Componentes",
"component_spdx_license_desc": "Especifica o ID de licença SPDX do componente",
Expand Down
5 changes: 5 additions & 0 deletions src/i18n/locales/pt.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,11 @@
"component_container": "Contêiner",
"component_cpe_desc": "O URI do CPE v2.2 ou v2.3 conforme fornecido pelo MITRE ou NIST. Todos os ativos (aplicativos, sistemas operacionais e hardware) devem ter um CPE especificado",
"component_created": "Componente criado",
"component_data": "Dados",
"component_deleted": "Componente excluído",
"component_details": "Detalhes do componente",
"component_device": "Dispositivo",
"component_device_driver": "Driver de dispositivo",
"component_file": "Arquivo",
"component_filename_desc": "Especifica o nome do arquivo observado do componente",
"component_firmware": "Firmware",
Expand All @@ -391,11 +393,14 @@
"component_library": "Biblioteca",
"component_license_expression_desc": "Especifica informações de licença do componente na forma de uma expressão SPDX",
"component_license_url_desc": "Especifica o URL para a licença do componente",
"component_machine_learning_model": "Modelo de aprendizado de máquina",
"component_name": "Nome do componente",
"component_name_desc": "O nome do componente conforme fornecido pelo fornecedor",
"component_namespace_group_vendor": "Namespace/grupo/fornecedor",
"component_none_classifier": "Nenhum",
"component_operating_system": "Sistema operacional",
"component_package_url_desc": "Um URL de pacote válido é necessário para bibliotecas e estruturas. Sintaxe PURL: pkg:tipo/namespace/nome@versão?qualificadores#subcaminho",
"component_platform": "Plataforma",
"component_properties": "Propriedades do Componente",
"component_search": "Pesquisa de Componentes",
"component_spdx_license_desc": "Especifica o ID de licença SPDX do componente",
Expand Down
Loading

0 comments on commit 7f364bb

Please sign in to comment.