- TypeScript 71.8%
- JavaScript 27%
- CSS 0.9%
- Dockerfile 0.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
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. |
||
| .github/workflows | ||
| .gluestack | ||
| app | ||
| components/ui | ||
| pages | ||
| public | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| .npmrc | ||
| dbConfig.json | ||
| docker-compose.testCVI.yml | ||
| Dockerfile | ||
| Dockerfile.dev | ||
| gluestack-ui.config.json | ||
| nativewind-env.d.ts | ||
| next.config.js | ||
| package-lock.json | ||
| package.json | ||
| postcss.config.js | ||
| publiccode.yml | ||
| README.md | ||
| tailwind.config.js | ||
| tsconfig.json | ||
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_URLGRAPHDB_USERNAMEGRAPHDB_PASSWORDCHRONOSTRATIGRAPHY_REPO_IDTECTONICUNITS_REPO_IDLITHOSTRATIGRAPHY_REPO_IDLITHOLOGY_REPO_IDLS_CORRELATIONS_REPO_IDVOCABULARY_PREFIX_URLGOOGLE_ANALYTICS_IDGITHUB_OWNERCHRONOSTRATIGRAPHY_REPO_SLUGTECTONICUNITS_REPO_SLUGLITHOSTRATIGRAPHY_REPO_SLUGLITHOLOGY_REPO_SLUGLS_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
.npmrccontienelegacy-peer-deps=trueper 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.