mirror of
https://github.com/Spythere/genera-tor.git
synced 2026-05-04 05:58:12 +00:00
Merge do wersji 1.3.1
Wersja 1.3.1
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
VITE_APP_API_URL=https://spythere.pl/api
|
VITE_APP_API_URL=https://stacjownik.spythere.pl/api
|
||||||
VITE_APP_SWDR_URL=https://api.td2.info.pl
|
VITE_APP_SWDR_URL=https://api.td2.info.pl
|
||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "genera-tor",
|
"name": "genera-tor",
|
||||||
"version": "1.3.0",
|
"version": "1.3.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite --port 8080",
|
"dev": "vite --port 8080",
|
||||||
|
|||||||
@@ -101,6 +101,8 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
created() {
|
created() {
|
||||||
|
this.fillCheckpointName = window.localStorage.getItem('fill-checkpoint') == 'true';
|
||||||
|
|
||||||
this.fetchSceneriesData();
|
this.fetchSceneriesData();
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -124,6 +126,10 @@ export default defineComponent({
|
|||||||
selectedSceneryName() {
|
selectedSceneryName() {
|
||||||
this.selectedCheckpointName = this.checkpointNameList.length == 0 ? null : this.checkpointNameList[0];
|
this.selectedCheckpointName = this.checkpointNameList.length == 0 ? null : this.checkpointNameList[0];
|
||||||
},
|
},
|
||||||
|
|
||||||
|
fillCheckpointName(val: boolean) {
|
||||||
|
window.localStorage.setItem('fill-checkpoint', `${val}`);
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
@@ -223,9 +229,8 @@ export default defineComponent({
|
|||||||
this.store.orderFooter.hour = currentFormattedHours();
|
this.store.orderFooter.hour = currentFormattedHours();
|
||||||
this.store.orderFooter.minutes = currentFormattedMinutes();
|
this.store.orderFooter.minutes = currentFormattedMinutes();
|
||||||
|
|
||||||
if (this.fillCheckpointName) {
|
if (this.fillCheckpointName) {
|
||||||
const sceneryAbbrev = this.sceneriesData.find(({ name }) => name === this.store.orderFooter.stationName)?.abbr;
|
const sceneryAbbrev = this.sceneriesData.find(({ name }) => name === this.selectedSceneryName)?.abbr;
|
||||||
|
|
||||||
this.store.orderFooter.checkpointName = sceneryAbbrev || this.store.orderFooter.stationName.slice(0, 2);
|
this.store.orderFooter.checkpointName = sceneryAbbrev || this.store.orderFooter.stationName.slice(0, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -15,7 +15,7 @@ export default defineConfig({
|
|||||||
globPatterns: ['**/*.{js,css,html,png,svg,img}'],
|
globPatterns: ['**/*.{js,css,html,png,svg,img}'],
|
||||||
runtimeCaching: [
|
runtimeCaching: [
|
||||||
{
|
{
|
||||||
urlPattern: /^https:\/\/spythere.pl\/\/api\/getSceneries/i,
|
urlPattern: /^https:\/\/stacjownik.spythere.pl\/\/api\/getSceneries/i,
|
||||||
handler: 'CacheFirst',
|
handler: 'CacheFirst',
|
||||||
options: {
|
options: {
|
||||||
cacheName: 'sceneries-cache',
|
cacheName: 'sceneries-cache',
|
||||||
|
|||||||
Reference in New Issue
Block a user