Browse Source

✨ create env.config

jmacura 4 năm trước cách đây
mục cha
commit
6a66d5db20
2 tập tin đã thay đổi với 12 bổ sung3 xóa
  1. 9 3
      src/app.config.ts
  2. 3 0
      src/env.config.json.example

+ 9 - 3
src/app.config.ts

@@ -1,6 +1,9 @@
-import View from 'ol/View';
 import {OSM} from 'ol/source';
 import {Tile} from 'ol/layer';
+import {View} from 'ol';
+
+import env from './env.config.json';
+import i18n from './translations.json';
 
 function getHostname() {
   const url = window.location.href;
@@ -12,6 +15,7 @@ function getHostname() {
 export const AppConfig = {
   useProxy: false,
   //proxyPrefix: '../8085/',
+  geonamesUser: env.geonamesUser,
   default_layers: [
     new Tile({
       source: new OSM({
@@ -67,12 +71,14 @@ export const AppConfig = {
     tracking: false,
     routing: false,
     permalink: false,
-    language: false,
     legend: false,
     feature_table: false,
+    draw: false,
   },
-  sidebarPosition: 'left',
+  status_manager_url: '/statusmanager/',
+  sidebarPosition: 'right',
   sizeMode: 'fullscreen',
+  translationOverrides: i18n,
 };
 
 export default AppConfig;

+ 3 - 0
src/env.config.json.example

@@ -0,0 +1,3 @@
+{
+  "geonamesUser": "example"
+}