diff --git a/src/App.scss b/src/App.scss
index 5c1ee6c..89e94db 100644
--- a/src/App.scss
+++ b/src/App.scss
@@ -213,6 +213,7 @@
font-weight: bold;
padding: 0.1em 0.5em;
color: paleturquoise;
+
}
.options {
diff --git a/src/App.vue b/src/App.vue
index e03c2d7..3b8ee71 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -42,7 +42,7 @@
-
+
@@ -124,6 +124,20 @@ export default defineComponent({
trainList() {
return this.store.trainList.filter((train) => train.online);
},
+
+ computedRegions() {
+ return this.options.regions.map((region) => {
+ const regionStationCount =
+ this.store.apiData.stations?.filter((station) => station.region == region.id && station.isOnline).length || 0;
+ const regionTrainCount = this.store.apiData.trains?.filter((train) => train.region == region.id && train.online).length || 0;
+
+ return {
+ id: region.id,
+ value: `${region.value}
${regionStationCount} / ${regionTrainCount}
`,
+ selectedValue: region.value,
+ };
+ });
+ },
},
data: () => ({
@@ -141,6 +155,8 @@ export default defineComponent({
pl: require('@/assets/icon-pl.svg'),
error: require('@/assets/icon-error.svg'),
dollar: require('@/assets/icon-dollar.svg'),
+ dispatcher: require('@/assets/icon-dispatcher.svg'),
+ train: require('@/assets/icon-train.svg'),
discord: require('@/assets/icon-discord.png'),
},
}),
diff --git a/src/components/Global/SelectBox.vue b/src/components/Global/SelectBox.vue
index fc22aa0..3c44b0e 100644
--- a/src/components/Global/SelectBox.vue
+++ b/src/components/Global/SelectBox.vue
@@ -1,8 +1,9 @@
-
+
@@ -15,9 +16,7 @@
>
@@ -36,6 +35,7 @@ import { computed, defineComponent, Ref, ref } from '@vue/runtime-core';
interface Item {
id: string;
value: string;
+ selectedValue?: string;
}
export default defineComponent({
@@ -193,8 +193,6 @@ ul.options {
z-index: 10;
width: 100%;
-
- margin-top: 0.25em;
}
li.option {
@@ -207,10 +205,11 @@ li.option {
-moz-appearance: none;
appearance: none;
border: none;
+ outline: none;
&:focus + span {
color: $accentCol;
- font-weight: bold;
+ font-weight: 800;
}
}
@@ -229,7 +228,7 @@ li.option {
background-color: hsla(0, 0%, 20%, 0.95);
}
- padding: 0.75em 0;
+ padding: 0.5em 0;
width: 100%;