mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
update modal (wip)
This commit is contained in:
@@ -1,15 +1,36 @@
|
||||
<template>
|
||||
<AnimatedModal :is-open="mainStore.isNewUpdate" @toggle-modal="toggleModal">
|
||||
<div class="modal_content">
|
||||
<h1 class="header">Aktualizacja Stacjownika</h1>
|
||||
<h2>wersja {{ version }}</h2>
|
||||
<div>
|
||||
<h1 style="margin-bottom: 0.5em">{{ $t('update.title') }}</h1>
|
||||
<h2 class="text--primary">{{ $t('update.version', [version]) }}</h2>
|
||||
<hr class="separator" />
|
||||
</div>
|
||||
|
||||
<b>Co nowego?</b>
|
||||
<p>
|
||||
<ul>
|
||||
<li>test</li>
|
||||
</ul>
|
||||
</p>
|
||||
<div class="features-list">
|
||||
<h2>Nowości i zmiany:</h2>
|
||||
<ul>
|
||||
<li v-for="content in localeChangesArray" :key="content">{{ content }}</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="modal_actions">
|
||||
<button class="btn--action">Przyjąłem!</button>
|
||||
|
||||
<p>Ten changelog będzie zawsze dostępny po kliknięciu numeru wersji w stopce strony!</p>
|
||||
|
||||
<!-- <div class="actions-checkboxes">
|
||||
<label>
|
||||
<input type="checkbox" />
|
||||
<span>nie pokazuj dla przyszłych aktualizacji</span>
|
||||
</label>
|
||||
|
||||
<label>
|
||||
<input type="checkbox" />
|
||||
<span>nie pokazuj dla przyszłych aktualizacji</span>
|
||||
</label>
|
||||
</div> -->
|
||||
</div>
|
||||
</div>
|
||||
</AnimatedModal>
|
||||
</template>
|
||||
@@ -30,6 +51,12 @@ export default defineComponent({
|
||||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
localeChangesArray() {
|
||||
return this.$t('update.content').split('\n');
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
toggleModal(value: boolean) {
|
||||
this.$emit('toggleModal', value);
|
||||
@@ -40,9 +67,67 @@ export default defineComponent({
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.modal_content {
|
||||
font-size: 1.2em;
|
||||
text-align: center;
|
||||
padding: 1em;
|
||||
height: 80vh;
|
||||
min-height: 550px;
|
||||
|
||||
display: grid;
|
||||
grid-template-rows: auto 1fr auto;
|
||||
gap: 0.5em;
|
||||
}
|
||||
|
||||
hr.separator {
|
||||
margin: 0.5em 0;
|
||||
padding: 0;
|
||||
height: 3px;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.features-list {
|
||||
margin-top: 0.5em;
|
||||
overflow: auto;
|
||||
|
||||
ul {
|
||||
text-align: left;
|
||||
list-style: '\21D2 ';
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
li {
|
||||
margin: 0.5em 0;
|
||||
}
|
||||
}
|
||||
|
||||
.modal_actions {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.5em;
|
||||
|
||||
button {
|
||||
font-weight: bold;
|
||||
padding: 0.35em;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
}
|
||||
|
||||
.actions-checkboxes {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
|
||||
gap: 1em;
|
||||
|
||||
label {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
label > input {
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
+8
-7
@@ -26,6 +26,13 @@
|
||||
"TWR": "High risk freight train",
|
||||
"SKR": "Train with exceeded gauge"
|
||||
},
|
||||
"update": {
|
||||
"title": "Stacjownik app update!",
|
||||
"version": "Version {0}",
|
||||
"confirm-button": "UPDATE NOW",
|
||||
"later-button": "LATER",
|
||||
"content": "context tooltips when hovering over project sponsors and timetable comment warnings\nvehicle image preview when hovering over its thumbnail in the active timetable card view and timetable journal\nlink to the driver's timetable history in the active timetable card view\nlink to the driver's active timetable card view in the timetable journal (available for online trains only)\nnew update card with version changelog"
|
||||
},
|
||||
"app": {
|
||||
"sceneries": "SCENERIES",
|
||||
"trains": "TRAINS",
|
||||
@@ -41,13 +48,7 @@
|
||||
"footer": {
|
||||
"discord": "Stacjownik Discord server"
|
||||
},
|
||||
"update": {
|
||||
"title": "New version of the app is available!",
|
||||
"paragraph1": "Enjoy the application and may the green signal be with you!",
|
||||
"release-link": "Click here to browse version changelog (GitHub)",
|
||||
"confirm-button": "UPDATE NOW",
|
||||
"later-button": "LATER"
|
||||
},
|
||||
|
||||
"vehicle-preview": {
|
||||
"loading": "Loading preview...",
|
||||
"error": "Oops! The vehicle preview seems to be missing! :/"
|
||||
|
||||
@@ -26,6 +26,13 @@
|
||||
"TWR": "Towar niebezpieczny wysokiego ryzyka",
|
||||
"SKR": "Przekroczona skrajnia"
|
||||
},
|
||||
"update": {
|
||||
"title": "Aktualizacja Stacjownika!",
|
||||
"version": "Wersja {0}",
|
||||
"confirm-button": "UPDATE NOW",
|
||||
"later-button": "LATER",
|
||||
"content": "dymki kontekstowe po najechaniu kursorem na m.in. sponsorów projektu i uwagi eksploatacyjne\npodgląd pojazdu po najechaniu kursorem na jego miniaturkę w karcie aktywnego rozkładu jazdy oraz dzienniku RJ\nodnośnik do historii RJ maszynisty w widoku karty aktywnego rozkładu jazdy\nodnośnik do karty aktywnego rozkładu jazdy maszynisty w dzienniku (dostępny tylko dla pociągów online)\nnowa karta ze zmianami w aktualizacji"
|
||||
},
|
||||
"app": {
|
||||
"sceneries": "SCENERIE",
|
||||
"trains": "POCIĄGI",
|
||||
|
||||
Reference in New Issue
Block a user