Watch
1
0
Fork
You've already forked swissgeol-lexic-cv-interface
0
mirror of https://github.com/swisstopo/swissgeol-lexic-cv-interface.git synced 2026-08-17 12:43:21 +00:00
Read-only mirror of https://github.com/swisstopo/swissgeol-lexic-cv-interface — Bundesamt für Landestopografie. Issues & pull requests at the source. Catalog: https://www.opensource.admin.ch/en/softwares/uj4bfm https://www.opensource.admin.ch/en/softwares/uj4bfm
  • TypeScript 71.8%
  • JavaScript 27%
  • CSS 0.9%
  • Dockerfile 0.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Giuseppe Nardiello abe64f7324 Released version "0.8.1-beta"
Features:
- migrated Gluestack UI from v1 to v2, adopting local components, adapter 2.1.12, and the NativeWind Tailwind styling model.
- migrated Gluestack UI from v2 to v3, consolidating 29 packages into core 3.0.25, utils 3.0.21, and adapter 3.0.3 while preserving the existing UI.
- updated the main runtime and framework dependencies to Node 24.18.0, Next 16.2.11, React/React DOM 19.2.8, React Native Web 0.21.2, GraphDB 4.0.0, and TypeScript 6.0.3.
- added the Material Description vocabulary with multilingual homepage content, term navigation, GraphDB integration, and GitHub release resolution.
2026-08-07 15:24:09 +02:00
.github/workflows Modify AWS ECR push workflow for new credentials 2025-11-26 09:34:12 +01:00
.gluestack Released version "0.8.1-beta" 2026-08-07 15:24:09 +02:00
app Released version "0.8.1-beta" 2026-08-07 15:24:09 +02:00
components/ui Released version "0.8.1-beta" 2026-08-07 15:24:09 +02:00
pages Released version "0.8.1-beta" 2026-08-07 15:24:09 +02:00
public Released version "0.8.1-beta" 2026-08-07 15:24:09 +02:00
.dockerignore Released version "0.5.1-beta" 2025-10-17 16:31:42 +02:00
.env.example Released version "0.8.1-beta" 2026-08-07 15:24:09 +02:00
.gitignore Release for 22-Aug on demo environment 2024-08-28 19:50:11 +02:00
.npmrc Released version "0.8.1-beta" 2026-08-07 15:24:09 +02:00
dbConfig.json Released version "0.8.1-beta" 2026-08-07 15:24:09 +02:00
docker-compose.testCVI.yml Released version "0.8.1-beta" 2026-08-07 15:24:09 +02:00
Dockerfile Released version "0.8.1-beta" 2026-08-07 15:24:09 +02:00
Dockerfile.dev Released version 0.3.0-pilot 2024-12-12 09:15:10 +01:00
gluestack-ui.config.json Released version "0.8.1-beta" 2026-08-07 15:24:09 +02:00
nativewind-env.d.ts Released version "0.8.1-beta" 2026-08-07 15:24:09 +02:00
next.config.js Released version "0.8.1-beta" 2026-08-07 15:24:09 +02:00
package-lock.json Released version "0.8.1-beta" 2026-08-07 15:24:09 +02:00
package.json Released version "0.8.1-beta" 2026-08-07 15:24:09 +02:00
postcss.config.js Released version "0.8.1-beta" 2026-08-07 15:24:09 +02:00
publiccode.yml Add files via upload 2026-08-04 10:57:35 +02:00
README.md Released version "0.8.1-beta" 2026-08-07 15:24:09 +02:00
tailwind.config.js Released version "0.8.1-beta" 2026-08-07 15:24:09 +02:00
tsconfig.json Released version "0.8.1-beta" 2026-08-07 15:24:09 +02:00

Controlled Vocabularies Interface

Interfaccia web Next.js per consultare i vocabolari controllati Swissgeol tramite GraphDB.

Stack principale

  • Next.js 14
  • React 18
  • TypeScript
  • Tailwind CSS
  • Gluestack UI v2 con componenti locali in components/ui
  • GraphDB client
  • Docker per build e runtime di produzione

Avvio con Docker

Il percorso Docker e quello da considerare prioritario per test e produzione.

docker compose up --build

L'applicazione viene esposta su:

http://localhost:3050

Per l'ambiente di test CVI:

docker compose -f docker-compose.testCVI.yml up --build

Avvio locale

npm install
npm run dev

L'applicazione locale viene esposta da Next.js su:

http://localhost:3000

Per verificare la build:

npm run build

Variabili ambiente

Le variabili principali sono documentate in .env.example.

I file docker-compose.yml e docker-compose.testCVI.yml definiscono gia i valori usati dagli ambienti Docker. In locale, usare .env.local o variabili ambiente equivalenti.

Variabili principali:

  • GRAPHDB_BASE_URL
  • GRAPHDB_USERNAME
  • GRAPHDB_PASSWORD
  • CHRONOSTRATIGRAPHY_REPO_ID
  • TECTONICUNITS_REPO_ID
  • LITHOSTRATIGRAPHY_REPO_ID
  • LITHOLOGY_REPO_ID
  • LS_CORRELATIONS_REPO_ID
  • VOCABULARY_PREFIX_URL
  • GOOGLE_ANALYTICS_ID
  • GITHUB_OWNER
  • CHRONOSTRATIGRAPHY_REPO_SLUG
  • TECTONICUNITS_REPO_SLUG
  • LITHOSTRATIGRAPHY_REPO_SLUG
  • LITHOLOGY_REPO_SLUG
  • LS_CORRELATIONS_REPO_SLUG

Struttura UI

La UI e stata migrata da Gluestack v1 a Gluestack v2.

I componenti Gluestack attivi sono componenti locali sotto components/ui. Il provider attivo e components/ui/gluestack-ui-provider, usato da app/providers.tsx.

Non usare nuovi import da:

  • @gluestack-ui/themed
  • @gluestack-ui/config
  • @gluestack-style/react

Per preservare il risultato grafico, alcuni stili restano intenzionalmente in Tailwind o React style object. Questo aiuta anche a ridurre gradualmente la dipendenza da Gluestack.

Note di manutenzione

  • .npmrc contiene legacy-peer-deps=true per compatibilita con lo stack Gluestack.
  • .gluestack/ e un artefatto della migrazione v1 -> v2. Non rimuoverlo senza una verifica dedicata di build, Docker e UI.
  • I documenti e gli script interni di migrazione non fanno parte del repository applicativo.