mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| dd7d1b0bb0 | |||
| 68934a89a4 | |||
| b88a240ec1 | |||
| eaa34f3359 |
+4
-3
@@ -5,8 +5,8 @@
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||
|
||||
<meta name="keywords" content="Stacjownik, TD2, Train Driver 2, stacjownik-td2" />
|
||||
<meta name="description" content="Automatycznie odświeżana strona wyświetlająca stacje w Train Driver 2!" />
|
||||
<meta name="keywords" content="Stacjownik, TD2, Train Driver 2, stacjownik-td2, stacjownik, td2.info.pl" />
|
||||
<meta name="description" content="Pomocnik maszynisty i dyżurnego symulatora Train Driver 2" />
|
||||
|
||||
<title>Stacjownik</title>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<link rel="icon" href="favicon-16.png" sizes="16x16" type="image/png" />
|
||||
<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>
|
||||
|
||||
<body>
|
||||
@@ -32,3 +32,4 @@
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "stacjownik",
|
||||
"version": "1.12.0",
|
||||
"version": "1.12.1",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
|
||||
@@ -29,6 +29,10 @@
|
||||
<b class="text--primary">{{ item.dispatcherName }}</b> • <b>{{ item.stationName }}</b>
|
||||
<span class="text--grayed"> #{{ item.stationHash }} </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 class="item-time">
|
||||
@@ -55,6 +59,7 @@ import { defineComponent, PropType } from 'vue';
|
||||
import dateMixin from '../../mixins/dateMixin';
|
||||
import { DispatcherHistory } from '../../scripts/interfaces/api/DispatchersAPIData';
|
||||
import styleMixin from '../../mixins/styleMixin';
|
||||
import imageMixin from '../../mixins/imageMixin';
|
||||
|
||||
export default defineComponent({
|
||||
props: {
|
||||
@@ -64,7 +69,7 @@ export default defineComponent({
|
||||
},
|
||||
},
|
||||
|
||||
mixins: [dateMixin, styleMixin],
|
||||
mixins: [dateMixin, styleMixin, imageMixin],
|
||||
|
||||
computed: {
|
||||
computedDispatcherHistory() {
|
||||
@@ -101,6 +106,7 @@ export default defineComponent({
|
||||
@import '../../styles/responsive.scss';
|
||||
@import '../../styles/badge.scss';
|
||||
@import '../../styles/JournalSection.scss';
|
||||
@import '../../styles/variables.scss';
|
||||
|
||||
li.sticky {
|
||||
position: sticky;
|
||||
@@ -114,7 +120,7 @@ li.sticky {
|
||||
flex-wrap: wrap;
|
||||
text-align: left;
|
||||
|
||||
gap: 0.25em;
|
||||
gap: 0.5em 1em;
|
||||
|
||||
line-height: 1.7em;
|
||||
padding: 0.75em;
|
||||
@@ -134,11 +140,11 @@ li.sticky {
|
||||
|
||||
.item-general {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 0.25em;
|
||||
flex-wrap: wrap;
|
||||
|
||||
|
||||
.level-badge {
|
||||
margin-right: 0.25em;
|
||||
}
|
||||
@@ -160,4 +166,18 @@ li.sticky {
|
||||
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>
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
export interface DispatcherHistory {
|
||||
id: string;
|
||||
|
||||
|
||||
currentDuration: number;
|
||||
dispatcherId: number;
|
||||
dispatcherName: string;
|
||||
dispatcherLevel: number | null;
|
||||
dispatcherRate: number;
|
||||
dispatcherIsSupporter: boolean;
|
||||
isOnline: boolean;
|
||||
lastOnlineTimestamp: number;
|
||||
@@ -13,4 +14,4 @@ export interface DispatcherHistory {
|
||||
stationName: string;
|
||||
timestampFrom: number;
|
||||
timestampTo?: number;
|
||||
}
|
||||
}
|
||||
|
||||
+1
-14
@@ -45,6 +45,7 @@ body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
font-family: 'Quicksand', sans-serif;
|
||||
font-weight: 500;
|
||||
overflow-y: scroll;
|
||||
|
||||
&.no-scroll {
|
||||
@@ -81,22 +82,9 @@ body {
|
||||
|
||||
transition: opacity 0.3s;
|
||||
padding: 0.25em;
|
||||
|
||||
// @include smallScreen() {
|
||||
// right: 0;
|
||||
// left: 0;
|
||||
|
||||
// &::after {
|
||||
// left: 75%;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
|
||||
&:hover > .content {
|
||||
// @include smallScreen() {
|
||||
// display: none;
|
||||
// }
|
||||
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
}
|
||||
@@ -105,7 +93,6 @@ body {
|
||||
button,
|
||||
input,
|
||||
select {
|
||||
// font-family: "Open Sans", sans-serif;
|
||||
border: none;
|
||||
font-family: 'Quicksand', sans-serif;
|
||||
font-size: 1em;
|
||||
|
||||
Reference in New Issue
Block a user