Skip to content

Commit 41c1637

Browse files
JeromeBuBastien Guerry
andauthored
Add licensing information (#426)
Co-authored-by: Bastien Guerry <[email protected]>
1 parent 2a327ec commit 41c1637

File tree

311 files changed

+1289
-9
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

311 files changed

+1289
-9
lines changed

Dockerfile.api

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2021-2025 DINUM <[email protected]>
2+
# SPDX-FileCopyrightText: 2024-2025 Université Grenoble Alpes
3+
# SPDX-License-Identifier: MIT
4+
15
FROM node:22-alpine as build
26
RUN apk add --no-cache \
37
git \

Dockerfile.web

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# SPDX-FileCopyrightText: 2021-2025 DINUM <[email protected]>
2+
# SPDX-FileCopyrightText: 2024-2025 Université Grenoble Alpes
3+
# SPDX-License-Identifier: MIT
4+
15
# build step
26
FROM node:22-alpine as build
37
WORKDIR /app

LICENSES/LicenseRef-Excluded.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This file is covered by copyright.

REUSE.toml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
version = 1
2+
SPDX-PackageSupplier = "DINUM <[email protected]>"
3+
SPDX-PackageName = "Catalogi"
4+
SPDX-PackageDownloadLocation = "https://github.com/codegouvfr/catalogi"
5+
6+
[[annotations]]
7+
path = "docs/assets/**"
8+
precedence = "closest"
9+
SPDX-FileCopyrightText = "French Government"
10+
SPDX-License-Identifier = "MIT"
11+
SPDX-FileComment = "https://github.com/GouvernementFR/dsfr/"
12+
13+
[[annotations]]
14+
path = "**json"
15+
precedence = "closest"
16+
SPDX-FileCopyrightText = "DINUM, UGA"
17+
SPDX-License-Identifier = "MIT"
18+
19+
[[annotations]]
20+
path = "**md"
21+
precedence = "closest"
22+
SPDX-FileCopyrightText = "DINUM, UGA"
23+
SPDX-License-Identifier = "CC-BY-4.0"
24+
SPDX-FileComment = "https://github.com/codegouvfr/catalogi"
25+
26+
[[annotations]]
27+
path = "web/public/logo/*"
28+
precedence = "closest"
29+
SPDX-FileCopyrightText = "Copyrighted file"
30+
SPDX-License-Identifier = "LicenseRef-Excluded"
31+
32+
[[annotations]]
33+
path = "web/src/ui/assets/*"
34+
precedence = "closest"
35+
SPDX-FileCopyrightText = "Copyrighted file"
36+
SPDX-License-Identifier = "LicenseRef-Excluded"

api/.config/kysely.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2021-2025 DINUM <[email protected]>
2+
// SPDX-FileCopyrightText: 2024-2025 Université Grenoble Alpes
3+
// SPDX-License-Identifier: MIT
4+
15
import { PostgresDialect } from "kysely";
26
import { defineConfig } from "kysely-ctl";
37
import { Pool } from "pg";

api/scripts/generate-translation-schema.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2021-2025 DINUM <[email protected]>
2+
// SPDX-FileCopyrightText: 2024-2025 Université Grenoble Alpes
3+
// SPDX-License-Identifier: MIT
4+
15
const GenerateSchema = require("generate-schema");
26
const fs = require("fs");
37
const path = require("path");
@@ -110,4 +114,4 @@ enhanceSchemaObject(schema, translations);
110114
console.log(`Writing schema to ${outputPath}`);
111115
fs.writeFileSync(outputPath, JSON.stringify(schema, null, 2));
112116

113-
console.log("✅ Schema generation complete!");
117+
console.log("✅ Schema generation complete!");

api/scripts/seed.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2021-2025 DINUM <[email protected]>
2+
// SPDX-FileCopyrightText: 2024-2025 Université Grenoble Alpes
3+
// SPDX-License-Identifier: MIT
4+
15
// the following script is used to seed the database with initial data
26

37
import { Kysely } from "kysely";

api/src/core/adapters/comptoirDuLibreApi.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2021-2025 DINUM <[email protected]>
2+
// SPDX-FileCopyrightText: 2024-2025 Université Grenoble Alpes
3+
// SPDX-License-Identifier: MIT
4+
15
import fetch from "node-fetch";
26
import { type ComptoirDuLibreApi, zComptoirDuLibre } from "../ports/ComptoirDuLibreApi";
37
import cheerio, { type CheerioAPI, type Cheerio, type Element } from "cheerio";

api/src/core/adapters/dbApi/in-memory/createInMemoryAgentRepository.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2021-2025 DINUM <[email protected]>
2+
// SPDX-FileCopyrightText: 2024-2025 Université Grenoble Alpes
3+
// SPDX-License-Identifier: MIT
4+
15
import { AgentRepository, DbAgent } from "../../../ports/DbApiV2";
26

37
type DbAgentWithId = DbAgent & Pick<DbAgent, "id">;

api/src/core/adapters/dbApi/kysely/createGetCompiledData.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// SPDX-FileCopyrightText: 2021-2025 DINUM <[email protected]>
2+
// SPDX-FileCopyrightText: 2024-2025 Université Grenoble Alpes
3+
// SPDX-License-Identifier: MIT
4+
15
import { Kysely } from "kysely";
26
import { CompiledData } from "../../../ports/CompileData";
37
import { Db } from "../../../ports/DbApi";

0 commit comments

Comments
 (0)