X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=ui%2Fweb%2Fsrc%2Fviews%2FChargingStationsView.vue;h=320731f71df5b4c2fd5a48727f272d957d481fe2;hb=f6cb17676bcd54d2aa28fe9f0eaa8797ac616873;hp=113137c80a44a5eb302c0d1cead562f5acae90ad;hpb=86545028054a9b13982500366c51e7ea2503a4eb;p=e-mobility-charging-stations-simulator.git
diff --git a/ui/web/src/views/ChargingStationsView.vue b/ui/web/src/views/ChargingStationsView.vue
index 113137c8..320731f7 100644
--- a/ui/web/src/views/ChargingStationsView.vue
+++ b/ui/web/src/views/ChargingStationsView.vue
@@ -1,118 +1,287 @@
-
-
-
-
-
-
-
+
(state.renderChargingStationsList = randomUUID()))"
+ :loading="state.gettingChargingStations"
+ @click="getChargingStations()"
/>
0"
+ :key="state.renderChargingStations"
+ :charging-stations="$chargingStations.value"
+ @need-refresh="
+ () => {
+ state.renderAddChargingStations = randomUUID()
+ state.renderChargingStations = randomUUID()
+ }
"
- :key="state.renderChargingStationsList"
- :charging-stations="app?.appContext.config.globalProperties.$chargingStations"
/>
@@ -150,31 +323,52 @@ const stopSimulator = (): void => {
#ui-server-container {
display: flex;
- flex-direction: row;
+ justify-content: center;
+ border-style: outset;
}
#ui-server-selector {
width: 100%;
+ background-color: rgb(239, 239, 239);
+ font: small-caption;
text-align: center;
}
+#ui-server-selector:hover {
+ background-color: rgb(229, 229, 229);
+}
+
#buttons-container {
display: flex;
flex-direction: row;
}
+.simulator-start-button {
+ color: ivory;
+ background-color: green;
+}
+
+.simulator-start-button:hover {
+ background-color: rgb(0, 98, 0);
+}
+
+.simulator-stop-button {
+ color: ivory;
+ background-color: red;
+}
+
+.simulator-stop-button:hover {
+ background-color: rgb(225, 0, 0);
+}
+
#action-button {
flex: none;
}
#reload-button {
- flex: auto;
- color: white;
+ color: ivory;
background-color: blue;
- font-size: 1.5rem;
- font-weight: bold;
- align-items: center;
- justify-content: center;
+ font-size: 2rem;
}
#reload-button:hover {
@@ -182,12 +376,13 @@ const stopSimulator = (): void => {
}
#reload-button:active {
- background-color: red;
+ background-color: darkblue;
}
#action {
- color: white;
+ min-width: max-content;
+ color: ivory;
background-color: black;
- padding: 1%;
+ padding: 0.8%;
}