mirror of
https://github.com/cioraneanu/firefly-pico.git
synced 2025-12-21 12:39:36 -06:00
- initial
This commit is contained in:
@@ -16,11 +16,23 @@ import '~/assets/styles/variables.css'
|
|||||||
import AppLoading from '~/components/ui-kit/app-loading.vue'
|
import AppLoading from '~/components/ui-kit/app-loading.vue'
|
||||||
import profile from '~/models/Profile.js'
|
import profile from '~/models/Profile.js'
|
||||||
import { setDefaultOptions } from 'date-fns'
|
import { setDefaultOptions } from 'date-fns'
|
||||||
|
import { useMagicKeys } from '@vueuse/core'
|
||||||
|
import { snapdom } from '@zumer/snapdom'
|
||||||
|
|
||||||
let dataStore = useDataStore()
|
let dataStore = useDataStore()
|
||||||
let profileStore = useProfileStore()
|
let profileStore = useProfileStore()
|
||||||
let appStore = useAppStore()
|
let appStore = useAppStore()
|
||||||
|
|
||||||
|
const keys = useMagicKeys()
|
||||||
|
const shiftCtrlA = keys['A+B']
|
||||||
|
watch(shiftCtrlA, async (value) => {
|
||||||
|
if (value) {
|
||||||
|
const el = document.querySelector('body');
|
||||||
|
const result = await snapdom(el);
|
||||||
|
await result.download({ format: 'svg', filename: 'my-capture' });
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
const theme = computed(() => (profileStore.darkTheme ? 'dark' : 'white'))
|
const theme = computed(() => (profileStore.darkTheme ? 'dark' : 'white'))
|
||||||
const pwaColor = computed(() => (profileStore.darkTheme ? '#1c1c1e' : '#ffffff'))
|
const pwaColor = computed(() => (profileStore.darkTheme ? '#1c1c1e' : '#ffffff'))
|
||||||
useHead({
|
useHead({
|
||||||
|
|||||||
4766
front/package-lock.json
generated
4766
front/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -22,6 +22,7 @@
|
|||||||
"@nuxtjs/device": "^3.2.4",
|
"@nuxtjs/device": "^3.2.4",
|
||||||
"@nuxtjs/i18n": "^10.0.3",
|
"@nuxtjs/i18n": "^10.0.3",
|
||||||
"@vant/nuxt": "^1.0.7",
|
"@vant/nuxt": "^1.0.7",
|
||||||
|
"@zumer/snapdom": "^1.9.7",
|
||||||
"@vite-pwa/nuxt": "^1.0.4",
|
"@vite-pwa/nuxt": "^1.0.4",
|
||||||
"eslint-config-prettier": "^10.1.8",
|
"eslint-config-prettier": "^10.1.8",
|
||||||
"nuxt": "^4.0.3",
|
"nuxt": "^4.0.3",
|
||||||
|
|||||||
Reference in New Issue
Block a user