mirror of
https://github.com/Spythere/srjp-td2.git
synced 2026-05-03 05:28:12 +00:00
chore: improved inputs & warnings styles
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- Local -->
|
<!-- Local -->
|
||||||
<div class="my-2 print:hidden" v-if="globalStore.currentTimetableData?.savedTimestamp">
|
<div class="print:hidden" v-if="globalStore.currentTimetableData?.savedTimestamp">
|
||||||
<div class="flex gap-2">
|
<div class="flex gap-2 mt-1">
|
||||||
<div class="flex items-center gap-2 bg-zinc-900 p-1 w-full">
|
<div class="flex items-center gap-2 bg-zinc-900 p-1 w-full">
|
||||||
<div>
|
<div>
|
||||||
<InfoIcon :size="20" />
|
<InfoIcon :size="20" />
|
||||||
@@ -25,14 +25,14 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="font-bold bg-zinc-900 p-1 hover:bg-zinc-800"
|
class="font-bold bg-zinc-900 p-1 hover:bg-zinc-800 rounded-md"
|
||||||
@click="removeTimetable(globalStore.currentTimetableData.timetableId)"
|
@click="removeTimetable(globalStore.currentTimetableData.timetableId)"
|
||||||
>
|
>
|
||||||
<Trash2Icon />
|
<Trash2Icon />
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="font-bold bg-zinc-900 p-1 hover:bg-zinc-800"
|
class="font-bold bg-zinc-900 p-1 hover:bg-zinc-800 rounded-md"
|
||||||
@click="globalStore.selectedStorageTimetable = null"
|
@click="globalStore.selectedStorageTimetable = null"
|
||||||
>
|
>
|
||||||
<Undo2Icon />
|
<Undo2Icon />
|
||||||
@@ -41,8 +41,8 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Journal -->
|
<!-- Journal -->
|
||||||
<div class="my-2 print:hidden" v-else-if="globalStore.currentTimetableData?.journalCreatedAt">
|
<div class="print:hidden" v-else-if="globalStore.currentTimetableData?.journalCreatedAt">
|
||||||
<div class="flex gap-2">
|
<div class="flex gap-2 mt-1">
|
||||||
<div class="flex items-center gap-2 bg-zinc-900 p-1 w-full">
|
<div class="flex items-center gap-2 bg-zinc-900 p-1 w-full">
|
||||||
<div>
|
<div>
|
||||||
<InfoIcon :size="20" />
|
<InfoIcon :size="20" />
|
||||||
@@ -64,7 +64,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="font-bold bg-zinc-900 p-1 hover:bg-zinc-800"
|
class="font-bold bg-zinc-900 p-1 hover:bg-zinc-800 rounded-md"
|
||||||
@click="globalStore.selectedJournalTimetable = null"
|
@click="globalStore.selectedJournalTimetable = null"
|
||||||
>
|
>
|
||||||
<Undo2Icon />
|
<Undo2Icon />
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex gap-2 items-center">
|
<div class="flex gap-2 items-center" v-if="globalStore.currentTimetableData == null">
|
||||||
<div class="flex gap-2 w-full">
|
<div class="flex gap-2 w-full">
|
||||||
<input
|
<input
|
||||||
v-model="globalStore.journalTimetableSearch.driverName"
|
v-model="globalStore.journalTimetableSearch.driverName"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex gap-2">
|
<div class="flex gap-2" v-if="globalStore.currentTimetableData == null">
|
||||||
<div class="w-full">
|
<div class="w-full">
|
||||||
<input
|
<input
|
||||||
v-model="globalStore.localTimetableSearch"
|
v-model="globalStore.localTimetableSearch"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex gap-2 flex-col mb-2 print:hidden">
|
<div class="flex gap-2 flex-col print:hidden">
|
||||||
<!-- Top Actions & Modes -->
|
<!-- Top Actions & Modes -->
|
||||||
<SearchModeActions />
|
<SearchModeActions />
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
}`"
|
}`"
|
||||||
@click="toggleViewMode('journal')"
|
@click="toggleViewMode('journal')"
|
||||||
>
|
>
|
||||||
<NotebookPenIcon />
|
<HistoryIcon />
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -71,8 +71,8 @@ import type { ViewMode, TimetableData } from '../../types/common.types';
|
|||||||
import {
|
import {
|
||||||
ArchiveIcon,
|
ArchiveIcon,
|
||||||
FolderDownIcon,
|
FolderDownIcon,
|
||||||
|
HistoryIcon,
|
||||||
MoonIcon,
|
MoonIcon,
|
||||||
NotebookPenIcon,
|
|
||||||
PrinterIcon,
|
PrinterIcon,
|
||||||
SunIcon,
|
SunIcon,
|
||||||
WifiIcon
|
WifiIcon
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="text-white">
|
<div class="text-white">
|
||||||
<h2 class="font-bold p-2 bg-zinc-700 mb-3 text-2xl">
|
<h2 class="font-bold p-2 bg-zinc-700 mb-3 text-2xl flex items-center gap-2 justify-center flex-wrap">
|
||||||
|
<HistoryIcon :size="25" />
|
||||||
{{ $t('journal-preview-title') }}
|
{{ $t('journal-preview-title') }}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
@@ -65,6 +66,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
import { HistoryIcon } from 'lucide-vue-next';
|
||||||
import { useApiStore } from '../../stores/api.store';
|
import { useApiStore } from '../../stores/api.store';
|
||||||
import { useGlobalStore } from '../../stores/global.store';
|
import { useGlobalStore } from '../../stores/global.store';
|
||||||
import { DataStatus } from '../../types/api.types';
|
import { DataStatus } from '../../types/api.types';
|
||||||
@@ -80,7 +82,7 @@ async function fetchTimetableDetails(id: number) {
|
|||||||
params: {
|
params: {
|
||||||
timetableId: id,
|
timetableId: id,
|
||||||
hasStopsDetails: 1,
|
hasStopsDetails: 1,
|
||||||
returnType: "detailed"
|
returnType: 'detailed'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
).data;
|
).data;
|
||||||
|
|||||||
Reference in New Issue
Block a user