mirror of
https://github.com/45Drives/cockpit-navigator.git
synced 2025-07-31 01:24:37 +02:00
add type hints
This commit is contained in:
parent
d829f5f39c
commit
f94edd5b8e
@ -173,8 +173,14 @@ const defaultSettings = {
|
|||||||
export default {
|
export default {
|
||||||
setup() {
|
setup() {
|
||||||
const showMenu = ref(false);
|
const showMenu = ref(false);
|
||||||
|
/**
|
||||||
|
* @type {NavigatorSettings}
|
||||||
|
*/
|
||||||
const settings = inject(settingsInjectionKey);
|
const settings = inject(settingsInjectionKey);
|
||||||
const settingsStorageKey = "houstonNavigatorSettingsKey";
|
const settingsStorageKey = "houstonNavigatorSettingsKey";
|
||||||
|
/**
|
||||||
|
* @type {Ref<boolean>}
|
||||||
|
*/
|
||||||
const darkMode = inject('darkModeInjectionKey') ?? ref(false);
|
const darkMode = inject('darkModeInjectionKey') ?? ref(false);
|
||||||
function getTheme() {
|
function getTheme() {
|
||||||
let prefersDark = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;
|
let prefersDark = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user