diff --git a/README.md b/README.md index 160c36ffd..24650c01e 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,43 @@ You are welcome to use and adapt this software for your own uses; see [LICENSE]( ## Your own version: getting started +Clone the repository ```bash git clone https://github.com/swissgeol/ngm.git -cd ngm +``` + +### Linux and Mac OS X + +> **Install** *node.js and npm* +> See instructions at [https://nodejs.org/en/download/package-manager](https://nodejs.org/en/download/package-manager) + +#### Start frontend + +From the root directory change to the ```ui```-dirrectory +```bash +cd ui +``` +Install dependencies +```bash +npm install +``` +start development server +```bash +npm start +``` + +open http://localhost:8000 + +#### Start backend api + +> **Install** *Docker* +> See instructions at [https://docs.docker.com/get-docker/](https://docs.docker.com/get-docker/) + +> **Install** *rust and cargo* +> See instructions at [https://doc.rust-lang.org/cargo/getting-started/installation.html](https://doc.rust-lang.org/cargo/getting-started/installation.html) + +Start the api and application +```bash make run ``` diff --git a/ui/locales/app.de.json b/ui/locales/app.de.json index 2b2de238d..35be1810e 100644 --- a/ui/locales/app.de.json +++ b/ui/locales/app.de.json @@ -94,8 +94,6 @@ "header_search_placeholder": "Suche...", "lsb_cesium_toolbar_label": "Cesium-Toolbar", "lsb_debug_tools": "Debugtools", - "lsb_login": "Login", - "lsb_logout": "Logout", "lsb_settings": "Einstellungen", "lsb_share": "Teilen", "lyr_3d_model_berne_label": "3D-Modell Stadt Bern", diff --git a/ui/locales/app.en.json b/ui/locales/app.en.json index 98a5e6e9b..ab172701f 100644 --- a/ui/locales/app.en.json +++ b/ui/locales/app.en.json @@ -94,8 +94,6 @@ "header_search_placeholder": "Search...", "lsb_cesium_toolbar_label": "Cesium Toolbar", "lsb_debug_tools": "Debug tools", - "lsb_login": "Login", - "lsb_logout": "Logout", "lsb_settings": "Settings", "lsb_share": "Share", "lyr_3d_model_berne_label": "City of Bern", diff --git a/ui/locales/app.fr.json b/ui/locales/app.fr.json index 63bec4087..4e7850eea 100644 --- a/ui/locales/app.fr.json +++ b/ui/locales/app.fr.json @@ -94,8 +94,6 @@ "header_search_placeholder": "Recherche...", "lsb_cesium_toolbar_label": "Cesium Toolbar", "lsb_debug_tools": "Debug tools", - "lsb_login": "Connexion", - "lsb_logout": "Déconnexion", "lsb_settings": "Paramètres", "lsb_share": "Partager", "lyr_3d_model_berne_label": "Modèle 3D Ville de Berne", diff --git a/ui/locales/app.it.json b/ui/locales/app.it.json index 8c4fc2237..9ccea9c95 100644 --- a/ui/locales/app.it.json +++ b/ui/locales/app.it.json @@ -94,8 +94,6 @@ "header_search_placeholder": "Ricercare...", "lsb_cesium_toolbar_label": "Cesium Toolbar", "lsb_debug_tools": "Debug tools", - "lsb_login": "Connessione", - "lsb_logout": "Diconnessione", "lsb_settings": "Impostazioni", "lsb_share": "Condividere", "lyr_3d_model_berne_label": "Modello 3D Città di Berna", diff --git a/ui/src/elements/ngm-auth.ts b/ui/src/elements/ngm-auth.ts index 74b78754e..d509d83e3 100644 --- a/ui/src/elements/ngm-auth.ts +++ b/ui/src/elements/ngm-auth.ts @@ -1,7 +1,6 @@ import {html} from 'lit'; import type {AuthUser} from '../auth'; import Auth from '../auth'; -import i18next from 'i18next'; import {LitElementI18n} from '../i18n.js'; import auth from '../store/auth'; import {classMap} from 'lit/directives/class-map.js'; @@ -62,8 +61,7 @@ export class NgmAuth extends LitElementI18n { return html`