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`
-
- ${!this.user ? i18next.t('lsb_login') : i18next.t('lsb_logout')} +
`; } diff --git a/ui/src/elements/ngm-side-bar.ts b/ui/src/elements/ngm-side-bar.ts index 17a804ff9..b8fad1406 100644 --- a/ui/src/elements/ngm-side-bar.ts +++ b/ui/src/elements/ngm-side-bar.ts @@ -221,9 +221,9 @@ export class SideBar extends LitElementI18n { class="ngm-mob-menu-toggle" @click=${() => this.mobileShowAll = !this.mobileShowAll}>
+ 'ngm-view-all-icon': !this.mobileShowAll, + 'ngm-view-less-icon': this.mobileShowAll + })}">
@@ -266,15 +266,19 @@ export class SideBar extends LitElementI18n {
this.activePanel = ''}>
- -
( this.querySelector('.ngm-debug-tools-toggle > input')).click()}> - - - - +
+ +
( this.querySelector('.ngm-debug-tools-toggle > input')).click()}> + + + +
+ ${i18next.t('contact_mailto_text')} + ${i18next.t('disclaimer_text')} +
-
@@ -290,20 +294,20 @@ export class SideBar extends LitElementI18n { ${this.layerOrderChangeActive ? i18next.t('dtd_finish_ordering_label') : i18next.t('dtd_change_order_label')}
${this.layerOrderChangeActive ? - html` + html` this.onLayersOrderChange(evt.detail)}> ` : - html` + html` this.onRemoveDisplayedLayer(evt)} @layerChanged=${evt => this.onLayerChanged(evt)}> ` - } + }
${i18next.t('dtd_user_content_label')}
- ${i18next.t('contact_mailto_text')} - ${i18next.t('disclaimer_text')} ${this.showCesiumToolbar ? html` ` : ''} diff --git a/ui/src/style/index.css b/ui/src/style/index.css index c8f5f0761..9f865b797 100644 --- a/ui/src/style/index.css +++ b/ui/src/style/index.css @@ -511,9 +511,7 @@ ngm-voxel-filter .ngm-action-btn.ui.button { position: absolute; z-index: 2; left: 5px; - font-size: 12px; - color: #fff; - text-shadow: 0 0 2px #000; + color: #357183; } .contact-mailto-link { bottom: 60px; diff --git a/ui/src/style/ngm-side-bar.css b/ui/src/style/ngm-side-bar.css index aacdd15ff..13e9f6ed8 100644 --- a/ui/src/style/ngm-side-bar.css +++ b/ui/src/style/ngm-side-bar.css @@ -76,6 +76,14 @@ ngm-side-bar { overflow-y: auto; } +.inner-toolbar-settings { + display: flex; + flex-direction: column; + justify-content: space-between; + gap: 10px; + margin-top: 14px; +} + .ngm-side-bar-panel.ngm-large-panel { width: calc(100vw - 144px); }