Merge pull request #3 from Spythere/development

Wersja 2.3.1
This commit is contained in:
Spythere
2023-12-10 15:02:29 +01:00
committed by GitHub
7 changed files with 35 additions and 17 deletions
-3
View File
@@ -1,3 +0,0 @@
VITE_API_URL="https://stacjownik.spythere.eu"
VITE_API_URL_DEV="http://localhost:3001"
VITE_API_MODE="PROD"
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "station-manager-2.0", "name": "station-manager-2.0",
"private": true, "private": true,
"version": "2.3.0", "version": "2.3.1",
"type": "module", "type": "module",
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
+6
View File
@@ -147,6 +147,7 @@ button {
/* width */ /* width */
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 7px; width: 7px;
height: 7px;
} }
/* Track */ /* Track */
@@ -154,6 +155,11 @@ button {
background: #333; background: #333;
} }
/* Corner */
::-webkit-scrollbar-corner {
background: #333;
}
/* Handle */ /* Handle */
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background: #888; background: #888;
+1 -1
View File
@@ -1,6 +1,6 @@
import axios from 'axios'; import axios from 'axios';
const baseURL = import.meta.env['VITE_API_MODE'] == 'DEV' ? import.meta.env['VITE_API_URL_DEV'] : import.meta.env['VITE_API_URL']; const baseURL = import.meta.env['VITE_API_MODE'] == 'DEV' ? 'http://localhost:3001' : 'https://stacjownik.spythere.eu';
const client = axios.create({ const client = axios.create({
baseURL: baseURL, baseURL: baseURL,
+16 -2
View File
@@ -50,7 +50,7 @@
<div class="pane"> <div class="pane">
Pokazuj maks. Pokazuj maks.
<input type="number" min="1" v-model="store.maxVisibleResults" style="width: 50px" /> <input type="number" min="1" v-model="store.maxVisibleResults" style="width: 3em; margin: 0 0.5em" />
wyników wyników
</div> </div>
@@ -65,7 +65,8 @@
</div> </div>
<div class="changelog" v-if="changelogVisible"> <div class="changelog" v-if="changelogVisible">
<div>Changelog:</div> <h3>Changelog:</h3>
<hr color="white" />
<div v-html="changelog || 'brak zmian'"></div> <div v-html="changelog || 'brak zmian'"></div>
</div> </div>
@@ -349,8 +350,17 @@ label.notify {
} }
} }
.changelog { .changelog {
position: relative;
div {
height: 200px; height: 200px;
overflow: auto; overflow: auto;
}
h3 {
margin: 0;
}
} }
@media screen and (max-width: 550px) { @media screen and (max-width: 550px) {
@@ -358,5 +368,9 @@ label.notify {
justify-content: center; justify-content: center;
text-align: center; text-align: center;
} }
.changelog h3 {
text-align: center;
}
} }
</style> </style>
+2 -4
View File
@@ -9,11 +9,9 @@ export default defineComponent({
// !Oc_2EPB // !Oc_2EPB
return `<span ${route.routeSpeed != 0 && route.routeLength != 0 ? 'class="text--accent"' : ''}>${ return `<span ${route.routeSpeed != 0 && route.routeLength != 0 ? 'class="text--accent"' : ''}>${
route.isInternal ? '<u>' + route.routeName + '</u>' : route.routeName route.isInternal ? '<u>' + route.routeName + '</u>' : route.routeName
}</span> <span style='color: #aaa'>(${route.routeTracks}/${route.isElectric ? 'E' : 'N'}/${ }</span> <span style='color: #aaa'>(${route.routeTracks}/${route.isElectric ? 'E' : 'N'}/${route.isRouteSBL ? 'S' : 'P'})</span>`;
route.isRouteSBL ? 'S' : 'P'
})`;
}) })
.join(', '); .join(' ');
}, },
}, },
}); });
+7 -4
View File
@@ -17,7 +17,7 @@
<tbody> <tbody>
<tr v-for="(station, row) in store.sortedStationList" tabindex="0"> <tr v-for="(station, row) in store.sortedStationList" tabindex="0">
<td v-for="(value, propName) in headerNameList" @click="changeProperty(station, row, propName as string)"> <td v-for="(value, propName) in headerNameList" @click="changeProperty(station, row, propName as string)" :class="propName">
<span v-if="propName === 'url'" :style="station.url ? 'color: gold' : 'color: gray;'">URL</span> <span v-if="propName === 'url'" :style="station.url ? 'color: gold' : 'color: gray;'">URL</span>
<span v-else-if="propName === 'projectUrl'" :style="station.projectUrl ? 'color: gold' : 'color: gray;'">URL</span> <span v-else-if="propName === 'projectUrl'" :style="station.projectUrl ? 'color: gold' : 'color: gray;'">URL</span>
@@ -181,9 +181,6 @@ table {
color: white; color: white;
position: relative; position: relative;
border-collapse: collapse; border-collapse: collapse;
width: 100%;
min-width: 1800px;
} }
table thead { table thead {
@@ -202,12 +199,18 @@ table th {
table tr { table tr {
background-color: #2c394b; background-color: #2c394b;
transition: background-color 100ms; transition: background-color 100ms;
text-overflow: ellipsis;
} }
table tr.current { table tr.current {
outline: 1px solid white; outline: 1px solid white;
} }
table td.routes {
font-size: 0.9em;
min-width: 150px;
}
table tr:nth-child(even) { table tr:nth-child(even) {
background-color: #334756; background-color: #334756;
} }