Skip to content

Commit

Permalink
front: credit SBB for NGE
Browse files Browse the repository at this point in the history
Signed-off-by: Louis Greiner <[email protected]>
  • Loading branch information
louisgreiner committed Nov 20, 2024
1 parent a78e10a commit 8b08a08
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 0 deletions.
3 changes: 3 additions & 0 deletions front/public/locales/de/home/navbar.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
"about": "Über OSRD",
"attributions": "Zuweisungen",
"disconnect": "Abmelden",
"help": "Hilfe",
"informations": {
"application": "Anwendung",
"collaborations": "Kooperationen",
"dataSources": "Datenquellen",
"librairies": "Versionsinformationen",
"version": "Version"
},
Expand Down
1 change: 1 addition & 0 deletions front/public/locales/en/home/navbar.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"help": "Help",
"informations": {
"application": "Application",
"collaborations": "Collaborations",
"dataSources": "Data sources",
"librairies": "Libraries & licenses",
"version": "Version"
Expand Down
1 change: 1 addition & 0 deletions front/public/locales/fr/home/navbar.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"help": "Aide",
"informations": {
"application": "Application",
"collaborations": "Collaborations",
"dataSources": "Sources de données",
"librairies": "Librairies & licences",
"version": "Version"
Expand Down
18 changes: 18 additions & 0 deletions front/src/common/ReleaseInformations/LicenseAttributions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ type AttributionLicense = {
license: string;
};

// Libs which are not in the package.json, so we add it statically
const COLLABORATIONS: AttributionLicense[] = [
{
license: 'http://www.apache.org/licenses/LICENSE-2.0',
publisher: 'Apache',
copyright: '© 2024 Swiss Federal Railways SBB AG',
version: '2.9.9',
name: 'Netzgrafik-Editor',
url: 'https://github.com/SchweizerischeBundesbahnen/netzgrafik-editor-frontend',
},
];

// Libs which are not in the package.json, so we add it statically
const DATA_SOURCES: AttributionLicense[] = [
{
Expand Down Expand Up @@ -78,6 +90,12 @@ const LicenseAttributions = () => {

return (
<div className="col-md-6 h-100 d-flex flex-column">
<h2 className="text-center mb-4">{t('informations.collaborations')}</h2>
<div className="license-attributions">
{COLLABORATIONS.map((dataSource) => (
<LicenseCard attribution={dataSource} key={dataSource.name} />
))}
</div>
<h2 className="text-center mb-4">{t('informations.dataSources')}</h2>
<div className="license-attributions">
{DATA_SOURCES.map((dataSource) => (
Expand Down

0 comments on commit 8b08a08

Please sign in to comment.