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 {
|
||||
setup() {
|
||||
const showMenu = ref(false);
|
||||
/**
|
||||
* @type {NavigatorSettings}
|
||||
*/
|
||||
const settings = inject(settingsInjectionKey);
|
||||
const settingsStorageKey = "houstonNavigatorSettingsKey";
|
||||
/**
|
||||
* @type {Ref<boolean>}
|
||||
*/
|
||||
const darkMode = inject('darkModeInjectionKey') ?? ref(false);
|
||||
function getTheme() {
|
||||
let prefersDark = window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches;
|
||||
|
Loading…
x
Reference in New Issue
Block a user