mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-28 22:56:01 +01:00
Fix math support
This commit is contained in:
@@ -54,7 +54,7 @@ async function toggleTheme() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const { locale, setLocale, locales, t } = useI18n()
|
const { locale, setLocale, locales, t } = useI18n()
|
||||||
const currentLocale = computed(() => locales.filter(l => l.code === locale.value)[0])
|
const currentLocale = computed(() => locales.value.filter(l => l.code === locale.value)[0])
|
||||||
|
|
||||||
async function changeLocale() {
|
async function changeLocale() {
|
||||||
document.body.style.animation = 'switch-on .2s'
|
document.body.style.animation = 'switch-on .2s'
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ const {
|
|||||||
} = await useAsyncData(`portfolio:${route.params.slug}:db`, () => $fetch(`/api/posts/${route.params.slug}`, { method: 'POST' }))
|
} = await useAsyncData(`portfolio:${route.params.slug}:db`, () => $fetch(`/api/posts/${route.params.slug}`, { method: 'POST' }))
|
||||||
|
|
||||||
const { locale, locales } = useI18n()
|
const { locale, locales } = useI18n()
|
||||||
const currentLocale = computed(() => locales.filter(l => l.code === locale.value)[0])
|
const currentLocale = computed(() => locales.value.filter(l => l.code === locale.value)[0])
|
||||||
|
|
||||||
const { t } = useI18n({
|
const { t } = useI18n({
|
||||||
useScope: 'local',
|
useScope: 'local',
|
||||||
|
|||||||
12
package.json
12
package.json
@@ -1,7 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "artsite",
|
"name": "artsite",
|
||||||
"private": true,
|
"private": true,
|
||||||
"type": "module",
|
|
||||||
"packageManager": "pnpm@9.5.0",
|
"packageManager": "pnpm@9.5.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "nuxt build",
|
"build": "nuxt build",
|
||||||
@@ -16,12 +15,12 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxt/content": "^2.13.4",
|
"@nuxt/content": "^2.13.4",
|
||||||
"@nuxt/image": "^1.8.1",
|
"@nuxt/image": "^1.8.1",
|
||||||
"@nuxt/ui": "^2.19.2",
|
"@nuxt/ui": "^2.18.5",
|
||||||
"@nuxthq/studio": "^2.2.1",
|
"@nuxthq/studio": "^2.1.1",
|
||||||
"@nuxthub/core": "^0.8.7",
|
"@nuxthub/core": "^0.8.7",
|
||||||
"@nuxtjs/google-fonts": "^3.2.0",
|
"@nuxtjs/google-fonts": "^3.2.0",
|
||||||
"@nuxtjs/i18n": "^9.1.0",
|
"@nuxtjs/i18n": "^8.5.3",
|
||||||
"drizzle-orm": "^0.36.4",
|
"drizzle-orm": "^0.33.0",
|
||||||
"h3-zod": "^0.5.3",
|
"h3-zod": "^0.5.3",
|
||||||
"nuxt": "^3.13.2",
|
"nuxt": "^3.13.2",
|
||||||
"rehype-katex": "^7.0.1",
|
"rehype-katex": "^7.0.1",
|
||||||
@@ -33,9 +32,10 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@antfu/eslint-config": "^3.10.0",
|
"@antfu/eslint-config": "^3.10.0",
|
||||||
"@nuxt/devtools": "^1.6.1",
|
"@nuxt/devtools": "^1.6.1",
|
||||||
|
"@nuxt/ui": "^2.19.2",
|
||||||
"@types/node": "^22.10.0",
|
"@types/node": "^22.10.0",
|
||||||
"@vueuse/core": "^11.3.0",
|
"@vueuse/core": "^11.3.0",
|
||||||
"@vueuse/nuxt": "^11.3.0",
|
"@vueuse/nuxt": "^11.1.0",
|
||||||
"drizzle-kit": "^0.28.1",
|
"drizzle-kit": "^0.28.1",
|
||||||
"eslint": "^9.15.0",
|
"eslint": "^9.15.0",
|
||||||
"mapbox-gl": "^3.8.0",
|
"mapbox-gl": "^3.8.0",
|
||||||
|
|||||||
509
pnpm-lock.yaml
generated
509
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user