restruct: packages versions upgrade

This commit is contained in:
2025-06-26 19:25:25 +02:00
parent 1d7a850d3e
commit 1bc9f605f8
5 changed files with 778 additions and 547 deletions
+9 -9
View File
@@ -9,16 +9,16 @@
"preview": "vite preview" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {
"axios": "^1.1.3", "axios": "^1.10.0",
"pinia": "^2.0.18", "pinia": "^3.0.3",
"sass": "^1.55.0", "sass": "^1.89.2",
"vue": "^3.2.37", "vue": "^3.5.17",
"vue-router": "^4.1.3" "vue-router": "^4.5.1"
}, },
"devDependencies": { "devDependencies": {
"@vitejs/plugin-vue": "^3.2.0", "@vitejs/plugin-vue": "^6.0.0",
"typescript": "^4.8.4", "typescript": "^5.8.3",
"vite": "^3.2.1", "vite": "^7.0.0",
"vue-tsc": "^1.0.9" "vue-tsc": "^2.2.10"
} }
} }
+1 -1
View File
@@ -57,6 +57,6 @@ export default defineComponent({
</script> </script>
<style lang="scss"> <style lang="scss">
@import './styles/global.scss'; @use './styles/global';
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600&display=swap'); @import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;600&display=swap');
</style> </style>
@@ -1,15 +1,16 @@
@use "sass:color";
body, body,
html { html {
margin: 0; margin: 0;
background-color: #1e2341; background-color: #1e2341;
color: white; color: white;
box-sizing: border-box; box-sizing: border-box;
font-size: 16px;
@media screen and (max-width: 700px) { @media screen and (max-width: 700px) {
font-size: calc(0.7vw + 0.7rem); font-size: calc(0.7vw + 0.7rem);
} }
font-size: 16px;
} }
#app { #app {
@@ -37,11 +38,13 @@ input {
} }
button { button {
$color: #3c5a89;
appearance: none; appearance: none;
outline: none; outline: none;
border: none; border: none;
background-color: #3c5a89; background-color: $color;
color: white; color: white;
padding: 0.5em 0.5em; padding: 0.5em 0.5em;
@@ -54,7 +57,7 @@ button {
&:hover:not([data-disabled='true']), &:hover:not([data-disabled='true']),
&:focus-visible { &:focus-visible {
background-color: lighten($color: #3c5a89, $amount: 10%); background-color: color.adjust($color, $lightness: 10%);
} }
&[data-disabled='true'] { &[data-disabled='true'] {
+11 -9
View File
@@ -10,9 +10,11 @@
<div class="table_container"> <div class="table_container">
<table> <table>
<thead> <thead>
<th v-for="header in headers" :width="header.width">{{ header.value }}</th> <tr>
<th width="250">Dostępność</th> <td v-for="header in headers" :width="header.width">{{ header.value }}</td>
<th width="80">Usuń</th> <td width="250">Dostępność</td>
<td width="80">Usuń</td>
</tr>
</thead> </thead>
<tbody> <tbody>
@@ -23,7 +25,7 @@
<span v-else-if="propName === 'checkpoints'">{{ station[propName] ? 'POKAŻ' : 'DODAJ' }}</span> <span v-else-if="propName === 'checkpoints'">{{ station[propName] ? 'POKAŻ' : 'DODAJ' }}</span>
<span v-else-if="propName === 'routes'" style="font-size: 1.1em;" :routes="station.routesInfo"> <span v-else-if="propName === 'routes'" style="font-size: 1.1em" :routes="station.routesInfo">
<b>{{ station.routesInfo.length }}</b> <b>{{ station.routesInfo.length }}</b>
</span> </span>
@@ -41,7 +43,7 @@
name="availability" name="availability"
:id="`select-${row}`" :id="`select-${row}`"
v-model="sceneriesStore.sortedStationList[row]['availability']" v-model="sceneriesStore.sortedStationList[row]['availability']"
@input="(e) => changeAvailability(station, sceneriesStore.sortedStationList[row]['availability'], e)" @input="changeAvailability(station, sceneriesStore.sortedStationList[row]['availability'], $event)"
> >
<option value="default">dostępna (w paczce)</option> <option value="default">dostępna (w paczce)</option>
<option value="nonDefault">dostępna (poza paczką)</option> <option value="nonDefault">dostępna (poza paczką)</option>
@@ -150,7 +152,7 @@ export default defineComponent({
return; return;
} }
let newValue = prompt(`Zmień wartość dla rubryki ${this.headers.find(h => h.id === propertyName)?.value ?? ''}`, oldValue || ''); let newValue = prompt(`Zmień wartość dla rubryki ${this.headers.find((h) => h.id === propertyName)?.value ?? ''}`, oldValue || '');
if (newValue == null) return; if (newValue == null) return;
(this.sceneriesStore.stationList[stationListRow] as any)[propertyName] = typeof oldValue === 'number' ? parseInt(newValue) : newValue; (this.sceneriesStore.stationList[stationListRow] as any)[propertyName] = typeof oldValue === 'number' ? parseInt(newValue) : newValue;
// this.$set(this.stationList[stationListRow], propertyName, parseInt(newValue)); // this.$set(this.stationList[stationListRow], propertyName, parseInt(newValue));
@@ -212,14 +214,14 @@ table thead {
top: 0; top: 0;
} }
table th { table thead td {
padding: 0.4rem 0.45rem; padding: 0.4rem 0.45rem;
background-color: #151b24; background-color: #151b24;
color: white; color: white;
top: 0; top: 0;
} }
table tr { table tbody tr {
background-color: #2c394b; background-color: #2c394b;
transition: background-color 100ms; transition: background-color 100ms;
text-overflow: ellipsis; text-overflow: ellipsis;
@@ -243,7 +245,7 @@ table tr:hover {
cursor: pointer; cursor: pointer;
} }
table tr td { table tbody tr td {
padding: 0.3rem 0.5rem; padding: 0.3rem 0.5rem;
border: 1px solid #2c2c2c; border: 1px solid #2c2c2c;
overflow: hidden; overflow: hidden;
+750 -524
View File
File diff suppressed because it is too large Load Diff