/
App.vue
880 lines (834 loc) · 26.3 KB
/
App.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
<template>
<v-app v-if="!full_page_requested" :class="app_style">
<v-card
id="context-menu"
ref="contextMenu"
:class="context_menu_class"
:style="context_menu_style"
>
<v-list>
<v-list-item-subtitle class="ml-2 mb-2 font-weight-bold">
Widgets
</v-list-item-subtitle>
<v-checkbox
v-for="(name, index) in topWidgetsName"
:key="index"
v-model="selected_widgets"
:label="name"
:value="name"
class="pa-0 pl-3 ma-0"
/>
</v-list>
</v-card>
<v-card
flat
>
<v-app-bar
app
rounded="0"
:class="app_bar_style"
:height="toolbar_height"
@contextmenu.prevent="navBarHandler($event)"
>
<v-app-bar-nav-icon
id="hamburguer-menu-button"
:style="{ visibility: drawer ? 'hidden' : 'visible' }"
color="white"
@click="drawer = true"
/>
<draggable v-model="selected_widgets" class="d-flex align-center justify-center">
<component
:is="getWidget(widget_name)"
v-for="(widget_name, i) in selected_widgets"
:key="i"
class="mr-2"
ripple
disabled
/>
</draggable>
<v-spacer />
<span class="d-flex flex-column align-center">
<backend-status-checker @statusChange="changeBackendStatus" />
</span>
<v-spacer />
<beacon-tray-menu />
<health-tray-menu />
<theme-tray-menu />
<system-checker-tray-menu />
<vehicle-reboot-required-tray-menu />
<pirate-mode-tray-menu />
<internet-tray-menu />
<wifi-tray-menu />
<ethernet-tray-menu />
<notification-tray-button />
</v-app-bar>
</v-card>
<v-navigation-drawer
v-model="drawer"
app
fixed
@input="drawerEvent"
>
<v-container
elevation="0"
class="d-flex justify-center align-center"
style="cursor: pointer"
@click="goHome"
>
<v-img
alt="Blue Robotics Logo"
class="shrink mr-2"
contain
:src="blueos_logo"
width="70%"
/>
</v-container>
<v-divider />
<v-container
elevation="0"
class="d-flex justify-center align-center pa-0"
>
<vehicle-banner />
</v-container>
<v-container
class="pa-1"
>
<v-divider />
<v-list
v-for="(menu, i) in computed_menu"
:key="i"
class="pa-0"
nav
dense
>
<v-list-item-group color="primary">
<v-list-group
v-if="menu.submenus"
:id="'button-to-' + menu.title.toLowerCase()"
:prepend-icon="menu.icon"
:to="menu.route"
no-action
>
<template #activator>
<v-list-item-title>
{{ menu.title }}
<v-chip
v-if="menu.beta"
class="ma-2 pl-2 pr-2"
color="red"
pill
x-small
text-color="white"
>
Beta
</v-chip>
</v-list-item-title>
</template>
<template
v-for="(submenu, j) in menu.submenus"
>
<v-list-item
v-if="!submenu.advanced || (submenu.advanced && settings.is_pirate_mode)"
:key="j"
:target="submenu?.new_page ? '_blank' : '_self'"
:to="submenu.route"
:href="menu.extension ? submenu.route : undefined"
>
<v-list-item-icon style="min-width:28px;">
<v-img
v-if="submenu.icon.startsWith('http')"
class="shrink mr-0"
contain
:src="submenu.icon"
width="24"
/>
<!-- eslint-disable vue/no-v-html -->
<v-img
v-else-if="submenu.icon.startsWith('<svg')"
width="24"
:class="svg_outside_style"
v-html="submenu.icon"
/>
<v-icon
v-else
class="mr-0"
v-text="submenu.icon"
/>
<v-theme-provider
v-if="submenu.advanced && settings.is_pirate_mode"
dark
>
<div
v-tooltip="'This is an advanced feature'"
class="pirate-marker ma-0"
>
<v-avatar
class="ma-0"
color="error"
size="15"
>
<v-icon
size="15"
v-text="'mdi-skull-crossbones'"
/>
</v-avatar>
</div>
</v-theme-provider>
</v-list-item-icon>
<v-list-item-title
v-text="submenu.title"
/>
</v-list-item>
</template>
</v-list-group>
<v-list-item
v-else
:to="menu.new_page ? null : menu.route"
:target="menu.new_page ? '_blank' : '_self'"
:href="menu.extension ? menu.route : undefined"
>
<template #default>
<v-list-item-icon style="min-width:28px;">
<v-img
v-if="menu.icon.startsWith('http')"
class="shrink mr-0"
contain
:src="menu.icon"
width="24"
/>
<!-- eslint-disable vue/no-v-html -->
<v-img
v-else-if="menu.icon.startsWith('<svg')"
width="24"
:class="svg_outside_style"
v-html="menu.icon"
/>
<v-icon
v-else
class="mr-0"
v-text="menu.icon"
/>
<v-theme-provider
v-if="menu.advanced && settings.is_pirate_mode"
dark
>
<div
v-tooltip="'This is an advanced feature'"
class="pirate-marker ma-0"
>
<v-avatar
class="ma-0"
color="error"
size="15"
>
<v-icon
size="15"
v-text="'mdi-skull-crossbones'"
/>
</v-avatar>
</div>
</v-theme-provider>
<v-theme-provider
v-if="menu.extension"
dark
>
<div
v-tooltip="'This is an installed extensions'"
class="extension-marker ma-0"
>
<v-avatar
class="ma-0"
color="success"
size="15"
>
<v-icon
size="12"
v-text="'mdi-puzzle'"
/>
</v-avatar>
</div>
</v-theme-provider>
</v-list-item-icon>
<v-list-item-title>
{{ menu.title }}
<v-chip
v-if="menu.beta"
class="ma-2 pl-2 pr-2"
color="red"
pill
x-small
text-color="white"
>
Beta
</v-chip>
</v-list-item-title>
</template>
</v-list-item>
</v-list-item-group>
</v-list>
<v-divider />
<v-container class="d-flex justify-center">
<power-menu />
<settings-menu />
<report-menu />
</v-container>
<span
class="build_info"
>
BlueOS Version:
<a
target="_blank"
rel="noopener noreferrer"
:href="git_info_url"
>
{{ git_info }}
</a>
</span>
<span
v-if="bootstrap_version"
class="build_info"
>
Bootstrap Version: {{ bootstrap_version.split(':')[1] }}
</span>
<span
id="current-version"
class="build_info"
>Build: {{ build_date }}</span>
<span
class="build_info"
>
By
<a
target="_blank"
rel="noopener noreferrer"
href="https://bluerobotics.com"
style="text-decoration:none;"
>
Blue Robotics
</a>
</span>
</v-container>
</v-navigation-drawer>
<v-main>
<router-view />
<div id="tour-center-hook" />
</v-main>
<ethernet-updater />
<wifi-updater />
<mavlink-updater />
<new-version-notificator />
<Wizard />
<alerter />
<VTour
name="welcomeTour"
:steps="steps.filter((step) => step?.filter_wifi_connected !== wifi_connected)"
:callbacks="tourCallbacks"
/>
</v-app>
<div v-else>
<router-view />
</div>
</template>
<script lang="ts">
import Vue from 'vue'
import blueos_blue from '@/assets/img/blueos-logo-blue.svg'
import blueos_white from '@/assets/img/blueos-logo-white.svg'
import Wizard from '@/components/wizard/Wizard.vue'
import settings from '@/libs/settings'
import helper from '@/store/helper'
import wifi from '@/store/wifi'
import { Service } from '@/types/helper'
import { convertGitDescribeToUrl } from '@/utils/helper_functions'
import updateTime from '@/utils/update_time'
import * as VCU from '@/utils/version_chooser'
import Alerter from './components/app/Alerter.vue'
import BackendStatusChecker from './components/app/BackendStatusChecker.vue'
import InternetTrayMenu from './components/app/InternetTrayMenu.vue'
import NewVersionNotificator from './components/app/NewVersionNotificator.vue'
import PiradeModeTrayMenu from './components/app/PirateModeTrayMenu.vue'
import PowerMenu from './components/app/PowerMenu.vue'
import ReportMenu from './components/app/ReportMenu.vue'
import SettingsMenu from './components/app/SettingsMenu.vue'
import SystemCheckerTrayMenu from './components/app/SystemCheckerTrayMenu.vue'
import ThemeTrayMenu from './components/app/ThemeTrayMenu.vue'
import VehicleBanner from './components/app/VehicleBanner.vue'
import VehicleRebootRequiredTrayMenu from './components/app/VehicleRebootRequiredTrayMenu.vue'
import BeaconTrayMenu from './components/beacon/BeaconTrayMenu.vue'
import EthernetTrayMenu from './components/ethernet/EthernetTrayMenu.vue'
import EthernetUpdater from './components/ethernet/EthernetUpdater.vue'
import HealthTrayMenu from './components/health/HealthTrayMenu.vue'
import MavlinkUpdater from './components/mavlink/MavlinkUpdater.vue'
import NotificationTrayButton from './components/notifications/TrayButton.vue'
import WifiTrayMenu from './components/wifi/WifiTrayMenu.vue'
import WifiUpdater from './components/wifi/WifiUpdater.vue'
import menus, { menuItem } from './menus'
import Cpu from './widgets/Cpu.vue'
import Disk from './widgets/Disk.vue'
export default Vue.extend({
name: 'App',
components: {
'beacon-tray-menu': BeaconTrayMenu,
'internet-tray-menu': InternetTrayMenu,
'notification-tray-button': NotificationTrayButton,
'pirate-mode-tray-menu': PiradeModeTrayMenu,
'theme-tray-menu': ThemeTrayMenu,
'wifi-tray-menu': WifiTrayMenu,
'wifi-updater': WifiUpdater,
'ethernet-tray-menu': EthernetTrayMenu,
'ethernet-updater': EthernetUpdater,
'health-tray-menu': HealthTrayMenu,
'mavlink-updater': MavlinkUpdater,
'power-menu': PowerMenu,
'settings-menu': SettingsMenu,
'report-menu': ReportMenu,
'backend-status-checker': BackendStatusChecker,
Alerter,
'vehicle-banner': VehicleBanner,
'new-version-notificator': NewVersionNotificator,
SystemCheckerTrayMenu,
VehicleRebootRequiredTrayMenu,
Wizard,
},
data: () => ({
settings,
drawer: undefined as boolean|undefined,
drawer_running_tour: false,
backend_offline: false,
menus,
tourCallbacks: {}, // we are setting this up in mounted otherwise "this" can be undefined
context_menu_position: [0, 0],
context_menu_visible: false,
widgets: [
{
component: Cpu,
name: 'CPU',
},
{
component: Disk,
name: 'Disk',
},
],
selected_widgets: settings.user_top_widgets,
bootstrap_version: undefined as string|undefined,
}),
computed: {
topWidgetsName(): string[] {
return this.widgets.map((item) => item.name)
},
context_menu_class(): string {
return this.context_menu_visible ? 'visible' : ''
},
context_menu_style(): string {
return `left: ${this.context_menu_position[0]}px; top: ${this.context_menu_position[1]}px;`
},
app_style(): string {
return settings.is_dark_theme ? 'dark-background' : 'light-background'
},
app_bar_style(): string {
return settings.is_dark_theme ? 'dark-background-glass' : 'light-background-glass'
},
wifi_connected(): boolean {
return wifi.current_network != null
},
toolbar_height(): number {
return settings.is_pirate_mode && this.backend_offline ? 66 : 56
},
full_page_requested(): boolean {
return this.$router.currentRoute.query.full_page === 'true'
},
svg_outside_style(): string {
return `mr-0 ${settings.is_dark_theme ? 'outside-svg-dark' : 'outside-svg-light'}`
},
computed_menu(): menuItem[] {
const foundExtensions = helper.services
.filter((service: Service) : boolean => service.metadata !== null)
.map((service: Service) => {
const address = this.createExtensionAddress(service)
return {
title: service.metadata?.name ?? 'Service name',
icon: service.metadata?.icon?.startsWith('/')
? `${address}${service.metadata.icon}`
: service.metadata?.icon ?? 'mdi-puzzle',
route: this.addExtraQuery(service.metadata?.route ?? address, service.metadata?.extra_query),
new_page: service.metadata?.avoid_iframes ?? service.metadata?.new_page,
advanced: false,
text: service.metadata?.description ?? 'Service text',
extension: true,
}
})
const filteredDefaultMenu = this.menus.filter((menu) => !menu.advanced || settings.is_pirate_mode)
const extensions: menuItem[] = [
{
title: 'Extensions',
icon: 'mdi-puzzle',
route: '/tools/extensions-manager',
advanced: false,
text: 'Manage BlueOS extensions',
beta: true,
},
...foundExtensions,
] as menuItem[]
return [...filteredDefaultMenu, ...extensions].sort((a, b) => a.title.localeCompare(b.title))
},
steps() {
return [
{
target: '#tour-center-hook',
header: {
title: 'Welcome to BlueOS!',
},
content: `We are happy to have you navigating with us! BlueOS provides the
necessary tools to configure your vehicle, check the system status and more.
Follow this quick tour to get familiar with your brand new onboard system.`,
params: {
enableScrolling: false,
},
},
{
target: '#tour-center-hook',
content: 'Connect BlueOS to the internet to enable online functionalities.',
filter_wifi_connected: true,
params: {
enableScrolling: false,
},
},
{
target: '#wifi-tray-menu-button',
content: 'You can do this by connecting to a wifi network...',
filter_wifi_connected: true,
params: {
enableScrolling: false,
},
},
{
target: '#ethernet-tray-menu-button',
content: '..or connecting to a wired Ethernet connection (usually from a router).',
filter_wifi_connected: true,
params: {
enableScrolling: false,
},
},
{
target: '#button-to-vehicle',
content: 'This is the main BlueOS menu. Here you can access all the running services and system utilities.',
params: {
enableScrolling: false,
placement: 'right',
},
before: () => {
// It's necessary to control the drawer tour event otherwise the internal state control will close it
this.drawer_running_tour = true
// We will open the drawer for the message
this.drawer = true
},
},
{
target: '#button-to-vehicle',
content: `Under the Vehicle menu, you can check the status of your autopilot, download logs from it,
set up video streams and even update its firmware!`,
params: {
enableScrolling: false,
},
},
{
target: '#button-to-tools',
content: `Here you can find all kinds of tools to improve your BlueOS experience.
There are system-diagnosis tools, like network-speed tester and others, all under the Tools menu.`,
params: {
enableScrolling: false,
},
},
{
target: '#power-menu-button',
content: 'Here you can safely shut down or restart the running computer.',
params: {
enableScrolling: false,
},
},
{
target: '#settings-menu-button',
content: 'With the settings button, you can customize your BlueOS experience.',
params: {
enableScrolling: false,
},
},
{
target: '#feature-request-button',
content: `Here you can get in touch with us, request new features, report bugs, interact with our
community, and more!`,
params: {
enableScrolling: false,
},
},
{
target: '#current-version',
content: `You can check the version of BlueOS installed here. This version number is particularly important
when looking for help.`,
params: {
enableScrolling: false,
},
},
{
target: '#notifications-tray-menu-button',
content: 'Last but not least, you can find any event related to your system under the notifications menu.',
before: () => {
// The close vent will happen after the next tick of the state control
this.drawer_running_tour = false
},
params: {
enableScrolling: false,
},
},
{
target: '#tour-center-hook',
content: `That's it! Now we want you to enjoy your experience with BlueOS! Also, don't forget to get in touch
if you need anything else to improve your journey! Happy exploring!`,
params: {
enableScrolling: false,
},
},
]
},
git_info(): string {
return import.meta.env.VITE_APP_GIT_DESCRIBE
},
git_info_url(): string {
return convertGitDescribeToUrl(import.meta.env.VITE_APP_GIT_DESCRIBE)
},
build_date(): string {
return import.meta.env.VITE_BUILD_DATE
},
blueos_logo(): string {
return settings.is_dark_theme ? blueos_white : blueos_blue
},
},
watch: {
$route() {
// In an update process the page may not be the 'Main' page, check tour when page changes
this.checkTour()
// Env may not exist when running it with `bun vite`
const project_name = process.env.PROJECT_NAME ?? 'BlueOS'
if (this.$route.name === this.$router.options.routes!.first()!.name) {
document.title = project_name
return
}
document.title = `${this.$route.name} - ${project_name}`
},
selected_widgets() {
settings.user_top_widgets = this.selected_widgets
},
},
async mounted() {
this.checkAddress()
this.setupCallbacks()
this.checkTour()
updateTime()
const body = document.querySelector('body')
body?.addEventListener('click', (event) => {
const target = event.target as HTMLElement
if (target.offsetParent !== this.$refs.contextMenu) {
this.context_menu_visible = false
}
})
this.bootstrap_version = await VCU.loadBootstrapCurrentVersion()
},
methods: {
addExtraQuery(url: string, extra_queries?: string) {
if (!extra_queries) {
return url
}
// adds additional query parameters to a url
const separator = url.includes('?') ? '&' : '?'
return url + separator + extra_queries
},
getWidget(name: string) {
return this.widgets.filter((widget) => widget.name === name)?.[0]?.component
},
navBarHandler(event: Event) {
const { clientX: mouseX, clientY: mouseY } = event as MouseEvent
this.context_menu_position = [mouseX, mouseY]
this.context_menu_visible = true
},
checkAddress(): void {
if (window.location.host.includes('companion.local')) {
window.location.replace('http://blueos.local')
}
},
createExtensionAddress(service: Service): string {
if (service.metadata?.avoid_iframes) {
const base_url = window.location.origin.split(':').slice(0, 2).join(':')
return `${base_url}:${service.port}`
}
let address = `/extension/${service?.metadata?.sanitized_name}`
if (service?.metadata?.new_page) {
address += '?full_page=true'
}
return address
},
setupCallbacks(): void {
this.tourCallbacks = {
onSkip: this.skipTour,
onStop: this.skipTour,
}
},
skipTour(): void {
this.drawer_running_tour = false
},
checkTour(): void {
// Check the current page and tour version to be sure that we are in the correct place before starting
if (this.$route.name === this.$router.options.routes!.first()!.name) {
settings.run_tour_version(2)
.then(() => this.$tours.welcomeTour.start())
.catch((message) => console.log(message))
}
},
drawerEvent(): void {
// If we are inside the tour, let the drawer open, the function will be called by the drawer state control
if (this.drawer_running_tour) {
this.$nextTick(() => { this.drawer = true })
}
},
changeBackendStatus(backend_offline: boolean): void {
this.backend_offline = backend_offline
},
goHome(): void {
this.$router.push('/')
},
},
})
</script>
<style>
::-webkit-scrollbar {
width: 5px;
}
::-webkit-scrollbar-track {
box-shadow: inset 0 0 1px grey;
background: var(--v-primary-darken2);
}
::-webkit-scrollbar-thumb {
background: var(--v-primary-darken3);
transition: visibility 2s;
}
::-webkit-scrollbar-thumb:hover {
background: var(--v-primary-base);
}
</style>
<style scoped>
.outside-svg-dark {
filter: invert(100%) brightness(200%);
}
.outside-svg-light {
filter: invert(45%) brightness(100%);
}
html {
overflow-y: auto
}
.active_menu {
color: blue;
}
span.build_info {
font-size: 70%;
margin-left: 30px;
display: block;
}
#tour-center-hook {
position: absolute;
top: 20%;
left: 50%;
}
div.extension-marker {
position: relative;
top: -10px;
right: 7px;
width: 15px;
height: 15px;
opacity: 0.7;
}
div.pirate-marker {
position: relative;
top: -10px;
right: 7px;
width: 15px;
height: 15px;
opacity: 0.7;
}
div.pirate-marker.v-icon {
font-size: 10px;
}
/* Align home side menu item */
.v-list--nav .v-list-item {
padding: 0 8px;
}
.v-list-item {
padding: 0 4px;
}
.v-application--is-ltr .v-list--dense.v-list--nav .v-list-group--no-action > .v-list-group__items > .v-list-item {
padding-left: 32px;
}
#context-menu {
position: fixed;
z-index: 10000;
width: 150px;
border-radius: 5px;
transform: scale(0);
transform-origin: top left;
}
#context-menu.visible {
transform: scale(1);
transition: transform 200ms ease-in-out;
}
</style>
<style>
.v-list-group__header__append-icon {
margin-left: 0px !important;
min-width: 24px !important;
}
.light-background {
background-color: var(--v-br_blue-base) !important;
background-image: linear-gradient(160deg, var(--v-br_blue-base) 0%, var(--v-mariner_blue-base) 100%) !important;
}
.dark-background {
background-color: var(--v-mariner_blue-base) !important;
background-image: linear-gradient(160deg, var(--v-mariner_blue-base) 0%, var(--v-blue_whale-base) 100%) !important;
}
.light-background-glass {
/*
It's not possible for us to get the color as variables and set a transparency on it,
so we use the colors directly
*/
background-color: #2699D055 !important;
background-image: linear-gradient(160deg, #2699D088 0%, #135DA388 100%) !important;
backdrop-filter: blur(4.5px) !important;
-webkit-backdrop-filter: blur(10px) !important;
}
.dark-background-glass {
/*
It's not possible for us to get the color as variables and set a transparency on it,
so we use the colors directly
*/
background-color: #135DA355 !important;
background-image: linear-gradient(160deg, #135DA388 0%, #012F4688 100%) !important;
backdrop-filter: blur(4.5px) !important;
-webkit-backdrop-filter: blur(10px) !important;
}
/* Global style */
/* mdi-loading icon is being used ? Of course you want to rotate it! */
.mdi-loading {
animation: rotate 2s linear infinite;
}
@keyframes rotate {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
/* Fix v-stepper disappearing when the screen is small*/
.v-stepper__label {
display: block !important;
}
html {
overflow: auto
}
</style>