|
|
@ -1,4 +1,4 @@ |
|
|
|
import { breakpointsTailwind, usePreferredDark, usePreferredLanguages, useStorage } from '@vueuse/core' |
|
|
|
import { breakpointsTailwind, usePreferredLanguages, useStorage } from '@vueuse/core' |
|
|
|
import { useJwt } from '@vueuse/integrations/useJwt' |
|
|
|
import { useJwt } from '@vueuse/integrations/useJwt' |
|
|
|
import type { JwtPayload } from 'jwt-decode' |
|
|
|
import type { JwtPayload } from 'jwt-decode' |
|
|
|
import { computed, ref, toRefs, useBreakpoints, useNuxtApp, useTimestamp, watch } from '#imports' |
|
|
|
import { computed, ref, toRefs, useBreakpoints, useNuxtApp, useTimestamp, watch } from '#imports' |
|
|
@ -25,8 +25,10 @@ const storageKey = 'nocodb-gui-v2' |
|
|
|
export const useGlobalState = (): GlobalState => { |
|
|
|
export const useGlobalState = (): GlobalState => { |
|
|
|
/** get the preferred languages of a user, according to browser settings */ |
|
|
|
/** get the preferred languages of a user, according to browser settings */ |
|
|
|
const preferredLanguages = $(usePreferredLanguages()) |
|
|
|
const preferredLanguages = $(usePreferredLanguages()) |
|
|
|
/** get the preferred dark mode setting, according to browser settings */ |
|
|
|
/** todo: reimplement; get the preferred dark mode setting, according to browser settings */ |
|
|
|
const prefersDarkMode = $(usePreferredDark()) |
|
|
|
// const prefersDarkMode = $(usePreferredDark())
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const prefersDarkMode = false |
|
|
|
/** get current breakpoints (for enabling sidebar) */ |
|
|
|
/** get current breakpoints (for enabling sidebar) */ |
|
|
|
const breakpoints = useBreakpoints(breakpointsTailwind) |
|
|
|
const breakpoints = useBreakpoints(breakpointsTailwind) |
|
|
|
|
|
|
|
|
|
|
|