From e6a53cd01034ee4fa085939a7aa64b053e23c175 Mon Sep 17 00:00:00 2001 From: Fabio Bonelli Date: Mon, 17 Jun 2024 18:49:04 +0200 Subject: [PATCH] feat: support publiccode.yml version 0.4.0 See https://github.com/publiccodeyml/publiccode.yml/releases/tag/v0.4.0 --- src/app/components/Editor.tsx | 2 +- src/app/contents/categories.ts | 4 ++++ src/app/contents/publiccode.ts | 2 +- src/wasm/go.mod | 2 +- src/wasm/go.sum | 4 ++-- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/app/components/Editor.tsx b/src/app/components/Editor.tsx index 21103f7c..54d8c36a 100644 --- a/src/app/components/Editor.tsx +++ b/src/app/components/Editor.tsx @@ -17,7 +17,7 @@ import EditorBoolean from "./EditorBoolean"; import EditorMultiselect from "./EditorMultiselect"; import { DEFAULT_COUNTRY_SECTIONS } from "../contents/constants"; import categories from "../contents/categories"; -import * as countrySection from "../contents/countrySpecificSection"; +import * as countrySection from "../contents/countrySpecificSection"; import platforms from "../contents/platforms"; import EditorRadio from "./EditorRadio"; import softwareTypes from "../contents/softwareTypes"; diff --git a/src/app/contents/categories.ts b/src/app/contents/categories.ts index 056ef17f..96e6db4c 100644 --- a/src/app/contents/categories.ts +++ b/src/app/contents/categories.ts @@ -23,6 +23,8 @@ export default [ "data-analytics", "data-collection", "data-visualization", + "design", + "design-system", "digital-asset-management", "digital-citizenship", "document-management", @@ -51,6 +53,7 @@ export default [ "ide", "identity-management", "instant-messaging", + "integrated-library-system", "inventory-management", "it-asset-management", "it-development", @@ -76,6 +79,7 @@ export default [ "project-management", "property-management", "real-estate-management", + "regulations-and-directives", "remote-support", "resource-management", "sales-management", diff --git a/src/app/contents/publiccode.ts b/src/app/contents/publiccode.ts index 4834b46b..d90762c0 100644 --- a/src/app/contents/publiccode.ts +++ b/src/app/contents/publiccode.ts @@ -13,7 +13,7 @@ export default interface PublicCode { landingURL?: string; isBasedOn?: string; softwareVersion?: string; - releaseDate: string; // “YYYY-MM-DD” + releaseDate?: string; // “YYYY-MM-DD” logo?: string; platforms: Array; categories: Array<(typeof categories)[number]>; diff --git a/src/wasm/go.mod b/src/wasm/go.mod index 7ae154a4..6efa1b33 100644 --- a/src/wasm/go.mod +++ b/src/wasm/go.mod @@ -4,7 +4,7 @@ go 1.21 toolchain go1.21.7 -require github.com/italia/publiccode-parser-go/v4 v4.0.0 +require github.com/italia/publiccode-parser-go/v4 v4.1.0 require ( github.com/Jeffail/gabs v1.4.0 // indirect diff --git a/src/wasm/go.sum b/src/wasm/go.sum index 03c0995c..54c70299 100644 --- a/src/wasm/go.sum +++ b/src/wasm/go.sum @@ -20,8 +20,8 @@ github.com/go-playground/validator/v10 v10.18.0 h1:BvolUXjp4zuvkZ5YN5t7ebzbhlUtP github.com/go-playground/validator/v10 v10.18.0/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM= github.com/italia/httpclient-lib-go v0.0.2 h1:4bJLywTVd7qHPdKxJXvvhlXp436JTC4KA6dLhIl5a6c= github.com/italia/httpclient-lib-go v0.0.2/go.mod h1:b0/D3ULsBw8X+zEl7j/kSZmiMlUdj+agppneOvSq6eA= -github.com/italia/publiccode-parser-go/v4 v4.0.0 h1:1/q4VH7WtnkaJyq3Cn0HU0KUz9X6uRPzmxNariKuI3w= -github.com/italia/publiccode-parser-go/v4 v4.0.0/go.mod h1:qmxP/BgLwCeNMjfcXbRz8WCMPn85Pekcy+oGTUmEF4U= +github.com/italia/publiccode-parser-go/v4 v4.1.0 h1:xKk9Lr+ehhdmzSghEXFeS4PWJ5iK0kAeAb8ioCuLYKc= +github.com/italia/publiccode-parser-go/v4 v4.1.0/go.mod h1:qmxP/BgLwCeNMjfcXbRz8WCMPn85Pekcy+oGTUmEF4U= github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI= github.com/kr/pretty v0.3.0 h1:WgNl7dwNpEZ6jJ9k1snq4pZsg7DOEN8hP9Xw0Tsjwk0=