Wersja 1.12.1

Wersja 1.12.1
This commit is contained in:
Spythere
2023-02-26 14:20:40 +01:00
committed by GitHub
5 changed files with 32 additions and 23 deletions
+4 -3
View File
@@ -5,8 +5,8 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" /> <meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta name="keywords" content="Stacjownik, TD2, Train Driver 2, stacjownik-td2" /> <meta name="keywords" content="Stacjownik, TD2, Train Driver 2, stacjownik-td2, stacjownik, td2.info.pl" />
<meta name="description" content="Automatycznie odświeżana strona wyświetlająca stacje w Train Driver 2!" /> <meta name="description" content="Pomocnik maszynisty i dyżurnego symulatora Train Driver 2" />
<title>Stacjownik</title> <title>Stacjownik</title>
@@ -24,7 +24,7 @@
<link rel="icon" href="favicon-16.png" sizes="16x16" type="image/png" /> <link rel="icon" href="favicon-16.png" sizes="16x16" type="image/png" />
<link rel="icon" href="favicon.ico" /> <link rel="icon" href="favicon.ico" />
<link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;700&display=swap" rel="stylesheet" /> <link href="https://fonts.googleapis.com/css2?family=Quicksand:wght@500;700&display=swap" rel="stylesheet" />
</head> </head>
<body> <body>
@@ -32,3 +32,4 @@
<script type="module" src="/src/main.ts"></script> <script type="module" src="/src/main.ts"></script>
</body> </body>
</html> </html>
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "stacjownik", "name": "stacjownik",
"version": "1.12.0", "version": "1.12.1",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
@@ -29,6 +29,10 @@
<b class="text--primary">{{ item.dispatcherName }}</b> &bull; <b>{{ item.stationName }}</b> <b class="text--primary">{{ item.dispatcherName }}</b> &bull; <b>{{ item.stationName }}</b>
<span class="text--grayed">&nbsp;#{{ item.stationHash }}&nbsp;</span> <span class="text--grayed">&nbsp;#{{ item.stationHash }}&nbsp;</span>
<span class="region-badge" :class="item.region">PL1</span> <span class="region-badge" :class="item.region">PL1</span>
<span class="like-count" v-if="item.dispatcherRate">
<img :src="getIcon('like')" alt="like icon" />
{{ item.dispatcherRate }}
</span>
</span> </span>
<span class="item-time"> <span class="item-time">
@@ -55,6 +59,7 @@ import { defineComponent, PropType } from 'vue';
import dateMixin from '../../mixins/dateMixin'; import dateMixin from '../../mixins/dateMixin';
import { DispatcherHistory } from '../../scripts/interfaces/api/DispatchersAPIData'; import { DispatcherHistory } from '../../scripts/interfaces/api/DispatchersAPIData';
import styleMixin from '../../mixins/styleMixin'; import styleMixin from '../../mixins/styleMixin';
import imageMixin from '../../mixins/imageMixin';
export default defineComponent({ export default defineComponent({
props: { props: {
@@ -64,7 +69,7 @@ export default defineComponent({
}, },
}, },
mixins: [dateMixin, styleMixin], mixins: [dateMixin, styleMixin, imageMixin],
computed: { computed: {
computedDispatcherHistory() { computedDispatcherHistory() {
@@ -101,6 +106,7 @@ export default defineComponent({
@import '../../styles/responsive.scss'; @import '../../styles/responsive.scss';
@import '../../styles/badge.scss'; @import '../../styles/badge.scss';
@import '../../styles/JournalSection.scss'; @import '../../styles/JournalSection.scss';
@import '../../styles/variables.scss';
li.sticky { li.sticky {
position: sticky; position: sticky;
@@ -114,7 +120,7 @@ li.sticky {
flex-wrap: wrap; flex-wrap: wrap;
text-align: left; text-align: left;
gap: 0.25em; gap: 0.5em 1em;
line-height: 1.7em; line-height: 1.7em;
padding: 0.75em; padding: 0.75em;
@@ -134,11 +140,11 @@ li.sticky {
.item-general { .item-general {
display: flex; display: flex;
justify-content: center;
align-items: center; align-items: center;
gap: 0.25em; gap: 0.25em;
flex-wrap: wrap; flex-wrap: wrap;
.level-badge { .level-badge {
margin-right: 0.25em; margin-right: 0.25em;
} }
@@ -160,4 +166,18 @@ li.sticky {
font-weight: bold; font-weight: bold;
} }
} }
.like-count {
display: flex;
align-items: center;
gap: 0.25em;
font-size: 1.2em;
color: $accentCol;
}
@include smallScreen {
.journal_item {
flex-direction: column;
}
}
</style> </style>
@@ -5,6 +5,7 @@ export interface DispatcherHistory {
dispatcherId: number; dispatcherId: number;
dispatcherName: string; dispatcherName: string;
dispatcherLevel: number | null; dispatcherLevel: number | null;
dispatcherRate: number;
dispatcherIsSupporter: boolean; dispatcherIsSupporter: boolean;
isOnline: boolean; isOnline: boolean;
lastOnlineTimestamp: number; lastOnlineTimestamp: number;
+1 -14
View File
@@ -45,6 +45,7 @@ body {
margin: 0; margin: 0;
padding: 0; padding: 0;
font-family: 'Quicksand', sans-serif; font-family: 'Quicksand', sans-serif;
font-weight: 500;
overflow-y: scroll; overflow-y: scroll;
&.no-scroll { &.no-scroll {
@@ -81,22 +82,9 @@ body {
transition: opacity 0.3s; transition: opacity 0.3s;
padding: 0.25em; padding: 0.25em;
// @include smallScreen() {
// right: 0;
// left: 0;
// &::after {
// left: 75%;
// }
// }
} }
&:hover > .content { &:hover > .content {
// @include smallScreen() {
// display: none;
// }
visibility: visible; visibility: visible;
opacity: 1; opacity: 1;
} }
@@ -105,7 +93,6 @@ body {
button, button,
input, input,
select { select {
// font-family: "Open Sans", sans-serif;
border: none; border: none;
font-family: 'Quicksand', sans-serif; font-family: 'Quicksand', sans-serif;
font-size: 1em; font-size: 1em;