-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(contribs): publish contributions in the new format (#1025)
* feat(contribs): publish contributions in the new format * move more types * put back dependency * fix types * fix all types * move agreements ingest * remove un-used dependencies * format data after review with Martial * Get content from fiche SP * handle fiche ids in fiche sp publish * clean-up * clean-up après reviews des devs * fix(comments ui): meilleur affiche des commentaires & changement de statuts dans les contribs (#1070) * feat(contrib): désactivation du formulaire quand on soumet (#1083) * feat(admin): ajout de la suppression d'un commentaire (#1081) * fix: v1 * fix: delete com * fix: restore * show error * fix: modif --------- Co-authored-by: carolineBda <[email protected]> * fix(alert-cli): mise à jour des identifiants PISTE (#1084) * fix(frontend): ajout du titre dans le header (#1085) * fix(alert-cli): add references from contributions (#1076) * fix: merge * fix: merge * fix: build * fix: build * fix: build * fix: url * fix: types * fix: expected by snapshot * fix: test * fix: test * fix: test --------- Co-authored-by: carolineBda <[email protected]> --------- Co-authored-by: maxgfr <[email protected]>
- Loading branch information
1 parent
e443d86
commit bfa0ac4
Showing
52 changed files
with
1,404 additions
and
172,421 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
build |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "@shared/utils", | ||
"version": "2.19.1", | ||
"dependencies": { | ||
"@socialgouv/cdtn-utils": "^4.109.0", | ||
"uuid": "^8.3.2", | ||
"xxhashjs": "^0.2.2" | ||
}, | ||
"private": true, | ||
"main": "build/src/index.js", | ||
"module": "build/src/index.js", | ||
"types": "build/src/index.d.ts", | ||
"scripts": { | ||
"build": "tsc" | ||
}, | ||
"devDependencies": { | ||
"@types/uuid": "^9.0.5", | ||
"@types/xxhashjs": "^0.2.2", | ||
"typescript": "^5.2.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from "./id-generator"; | ||
export * from "./url-generator"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { slugify } from "@socialgouv/cdtn-utils"; | ||
|
||
export const generateKaliRef = (kaliArticleId: string, agreementId: string) => { | ||
return `https://legifrance.gouv.fr/conv_coll/id/${kaliArticleId}/?idConteneur=${agreementId}`; | ||
}; | ||
|
||
export const generateLegiRef = ( | ||
legiArticleTitle: string, | ||
withPrefix = true | ||
) => { | ||
return `${ | ||
withPrefix ? "https://code.travail.gouv.fr" : "" | ||
}/code-du-travail/${slugify(legiArticleTitle)}`; | ||
}; | ||
|
||
export const generateFichesSpRef = ( | ||
audience: "associations" | "particuliers" | "professionnels-entreprises", | ||
ficheSpInitialId: string | ||
) => { | ||
return `https://www.service-public.fr/${audience}/vosdroits/${ficheSpInitialId}`; | ||
}; | ||
|
||
export const generateFichesSpRefLocal = ( | ||
urlSlug: string, | ||
withPrefix = true | ||
) => { | ||
return `${ | ||
withPrefix ? "https://code.travail.gouv.fr" : "" | ||
}/fiche-service-public/${urlSlug}`; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"compilerOptions": { | ||
"downlevelIteration": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"resolveJsonModule": true, | ||
"skipLibCheck": true, | ||
"strict": true, | ||
"lib": ["es2022"], | ||
"module": "NodeNext", | ||
"target": "es2022", | ||
"moduleResolution": "NodeNext", | ||
"declaration": true, | ||
"outDir": "build", | ||
"moduleDetection": "force", | ||
"allowJs": true, | ||
"noUncheckedIndexedAccess": true, | ||
"sourceMap": true, | ||
"composite": true, | ||
"declarationMap": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.