Quellcode durchsuchen

refactor: align code with cz version

jmacura vor 4 Jahren
Ursprung
Commit
eae771c613
5 geänderte Dateien mit 8 neuen und 7 gelöschten Zeilen
  1. 1 1
      .eslintrc.json
  2. 1 0
      .gitignore
  3. 1 1
      package.json
  4. 4 4
      src/adjuster/adjuster.service.ts
  5. 1 1
      webpack.common.js

+ 1 - 1
.eslintrc.json

@@ -14,7 +14,7 @@
   },
   "parser": "@typescript-eslint/parser",
   "parserOptions": {
-    "ecmaVersion":  2018
+    "ecmaVersion": 2018
   },
   "rules": {
     "import/extensions": [

+ 1 - 0
.gitignore

@@ -34,3 +34,4 @@ pidfile
 src/Attractivity.json
 src/Attractivity.csv
 /.vs
+env.config.json

+ 1 - 1
package.json

@@ -1,7 +1,7 @@
 {
   "name": "polirural-attractiveness-clustering",
   "version": "0.2.0",
-  "description": "Rural attractiveness clustering application",
+  "description": "Rural attractiveness application",
   "main": "build/index.html",
   "scripts": {
     "test": "echo \"Error: no test specified\" && exit 1",

+ 4 - 4
src/adjuster/adjuster.service.ts

@@ -31,10 +31,10 @@ export class AdjusterService {
     public hsUtilsService: HsUtilsService,
     public httpClient: HttpClient
   ) {
-    this.serviceBaseUrl =
-      window.location.hostname === 'localhost'
-        ? 'https://jmacura.ml/ws/' // 'http://localhost:3000/'
-        : 'https://publish.lesprojekt.cz/nodejs/';
+    this.serviceBaseUrl = 'https://jmacura.ml/ws/';
+      //window.location.hostname === 'localhost'
+        //? 'https://jmacura.ml/ws/' // 'http://localhost:3000/'
+        //: 'https://publish.lesprojekt.cz/nodejs/';
     this.methods = clusteringMethods;
     this.method = 'haclustwd2';
     this.numberOfClusters = 12;

+ 1 - 1
webpack.common.js

@@ -89,7 +89,7 @@ module.exports = {
       },
       // Load data files
       {
-        test: /\.geojson$/,
+        test: /\.(geo|topo)json$/,
         include: path.resolve(__dirname, 'src/data'),
         use: {
           loader: 'file-loader',