From 5455c084672d4803214e7fc0726d0c16f273e1aa Mon Sep 17 00:00:00 2001 From: Pierrick Date: Mon, 29 Aug 2022 09:19:00 +0200 Subject: [PATCH] WIP --- website/package.json | 4 +- website/src/components/Result.vue | 51 +++++++------ website/src/components/Visualization.vue | 95 ++++++++++++++++++++++++ website/src/main.js | 1 + yarn.lock | 10 +++ 5 files changed, 139 insertions(+), 22 deletions(-) create mode 100644 website/src/components/Visualization.vue diff --git a/website/package.json b/website/package.json index fad8df1..ff8df5c 100644 --- a/website/package.json +++ b/website/package.json @@ -13,10 +13,12 @@ "dependencies": { "bootstrap": "^5.0.1", "bootstrap-vue": "^2.21.2", + "leaflet": "^1.8.0", "sass": "^1.34.1", "sass-loader": "^12.0.0", "vue": "^2.5.21", - "vue-gtag": "1.16.1" + "vue-gtag": "1.16.1", + "vue2-leaflet": "^2.7.1" }, "devDependencies": { "@vue/cli-plugin-babel": "^3.3.0", diff --git a/website/src/components/Result.vue b/website/src/components/Result.vue index 0e8139b..c34e5c0 100644 --- a/website/src/components/Result.vue +++ b/website/src/components/Result.vue @@ -3,28 +3,35 @@
Validating...
-

Result

+ + +

Result

- - Sorry, this version is not yet implemented or not detectable ! - -
- - Detected version {{ result.summary.version.detected }} and validate with {{ result.summary.version.validated}} - - -
- - Invalid GBFS feed
- {{ result.summary.errorsCount | formatNumber }} errors + + Sorry, this version is not yet implemented or not detectable ! - Valid ! -
-

Detail per files

-
- -
-
+
+ + Detected version {{ result.summary.version.detected }} and validate with {{ result.summary.version.validated}} + + +
+ + Invalid GBFS feed
+ {{ result.summary.errorsCount | formatNumber }} errors +
+ Valid ! +
+

Detail per files

+
+ +
+
+
+ + + +
{{ result }}
@@ -33,6 +40,7 @@ diff --git a/website/src/components/Visualization.vue b/website/src/components/Visualization.vue new file mode 100644 index 0000000..9dfcbe9 --- /dev/null +++ b/website/src/components/Visualization.vue @@ -0,0 +1,95 @@ + + + diff --git a/website/src/main.js b/website/src/main.js index 9388196..d01ce45 100644 --- a/website/src/main.js +++ b/website/src/main.js @@ -20,6 +20,7 @@ import { import 'bootstrap/dist/css/bootstrap.css' import 'bootstrap-vue/dist/bootstrap-vue.css' +import 'leaflet/dist/leaflet.css' if (process.env.VUE_APP_GOOGLE_ANALYTICS_ID) { Vue.use(VueGtag, { diff --git a/yarn.lock b/yarn.lock index c792a4d..74563d4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8368,6 +8368,11 @@ lcid@^2.0.0: dependencies: invert-kv "^2.0.0" +leaflet@^1.8.0: + version "1.8.0" + resolved "https://registry.yarnpkg.com/leaflet/-/leaflet-1.8.0.tgz#4615db4a22a304e8e692cae9270b983b38a2055e" + integrity sha512-gwhMjFCQiYs3x/Sf+d49f10ERXaEFCPr+nVTryhAW8DWbMGqJqt9G4XuIaHmFW08zYvhgdzqXGr8AlW8v8dQkA== + leven@^3.1.0: version "3.1.0" resolved "https://registry.yarnpkg.com/leven/-/leven-3.1.0.tgz#77891de834064cccba82ae7842bb6b14a13ed7f2" @@ -12582,6 +12587,11 @@ vue-template-es2015-compiler@^1.6.0: resolved "https://registry.yarnpkg.com/vue-template-es2015-compiler/-/vue-template-es2015-compiler-1.6.0.tgz#dc42697133302ce3017524356a6c61b7b69b4a18" integrity sha512-x3LV3wdmmERhVCYy3quqA57NJW7F3i6faas++pJQWtknWT+n7k30F4TVdHvCLn48peTJFRvCpxs3UuFPqgeELg== +vue2-leaflet@^2.7.1: + version "2.7.1" + resolved "https://registry.yarnpkg.com/vue2-leaflet/-/vue2-leaflet-2.7.1.tgz#2f95c287621bf778f10804c88223877f5c049257" + integrity sha512-K7HOlzRhjt3Z7+IvTqEavIBRbmCwSZSCVUlz9u4Rc+3xGCLsHKz4TAL4diAmfHElCQdPPVdZdJk8wPUt2fu6WQ== + vue@^2.5.21: version "2.5.22" resolved "https://registry.yarnpkg.com/vue/-/vue-2.5.22.tgz#3bf88041af08b8539c37b268b70ca79245e9cc30"