From 2ee6c6bfebcbca06906375cc9f6d40e51968e0a9 Mon Sep 17 00:00:00 2001 From: Spythere Date: Mon, 6 Jul 2020 00:17:07 +0200 Subject: [PATCH] Dodano podstawowe filtry --- src/App.vue | 10 +- src/assets/icon-filter.svg | 9 ++ src/components/ui/List.vue | 24 +++-- src/components/ui/Options.vue | 62 +++++++++++++ src/components/utils/ListFilter.vue | 116 +++++++++++++++++++++-- src/main.ts | 2 +- src/store/index.ts | 139 +++++++++++++++++++++++++++- src/store/stations.ts | 100 -------------------- 8 files changed, 336 insertions(+), 126 deletions(-) create mode 100644 src/assets/icon-filter.svg create mode 100644 src/components/ui/Options.vue delete mode 100644 src/store/stations.ts diff --git a/src/App.vue b/src/App.vue index 66378f8..7cf11c2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -9,9 +9,9 @@ -
Scenerie online: {{stations.length}} | Maszyniści online: {{ trainCount }}
+
+ Scenerie online: {{stations.length}} | Maszyniści online: {{ trainCount }} +
@@ -31,6 +31,7 @@ import { mapGetters, mapActions } from "vuex"; import Error from "@/components/states/Error.vue"; import Loading from "@/components/states/Loading.vue"; +// import ListFilter from "@/components/utils/ListFilter.vue"; export default Vue.extend({ name: "App", @@ -143,13 +144,12 @@ a { background: #222; - padding: 0.4rem; + padding: 0.3rem; } &-main { display: flex; justify-content: center; - align-items: center; } } diff --git a/src/assets/icon-filter.svg b/src/assets/icon-filter.svg new file mode 100644 index 0000000..28d5691 --- /dev/null +++ b/src/assets/icon-filter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/src/components/ui/List.vue b/src/components/ui/List.vue index 4e2091b..1b57f81 100644 --- a/src/components/ui/List.vue +++ b/src/components/ui/List.vue @@ -1,8 +1,10 @@