diff --git a/nuxt.config.ts b/nuxt.config.ts index a50cc3e..29cb089 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -1,74 +1,85 @@ export default defineNuxtConfig({ - app: { - head: { - title: 'Freekake Admin', - titleTemplate: '%s | Freekake Admin', - htmlAttrs: { - lang: 'en', - }, - meta: [ - { charset: 'utf-8' }, - { - name: 'viewport', - content: 'width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no', - }, - { hid: 'description', name: 'description', content: '' }, - { name: 'format-detection', content: 'telephone=no' }, - ], - link: [ - { rel: 'icon', type: 'image/x-icon', href: '/favicon.png' }, - { - rel: 'stylesheet', - href: 'https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap', - }, - ], - }, - }, + app: { + head: { + title: 'Freekake Admin', + titleTemplate: '%s | Freekake Admin', + htmlAttrs: { + lang: 'en', + }, + meta: [ + { charset: 'utf-8' }, + { + name: 'viewport', + content: 'width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no', + }, + { hid: 'description', name: 'description', content: '' }, + { name: 'format-detection', content: 'telephone=no' }, + ], + link: [ + { rel: 'icon', type: 'image/x-icon', href: '/favicon.png' }, + { + rel: 'stylesheet', + href: 'https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap', + }, + ], + }, + }, - css: ['~/assets/css/app.css'], - postcss: { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, - }, - modules: ['@pinia/nuxt', '@nuxtjs/i18n'], + css: ['~/assets/css/app.css'], - i18n: { - locales: [ - { code: 'da', file: 'da.json' }, - { code: 'de', file: 'de.json' }, - { code: 'el', file: 'fr.json' }, - { code: 'en', file: 'en.json' }, - { code: 'es', file: 'es.json' }, - { code: 'fr', file: 'fr.json' }, - { code: 'hu', file: 'hu.json' }, - { code: 'it', file: 'it.json' }, - { code: 'ja', file: 'ja.json' }, - { code: 'pl', file: 'pl.json' }, - { code: 'pt', file: 'pt.json' }, - { code: 'ru', file: 'ru.json' }, - { code: 'sv', file: 'sv.json' }, - { code: 'tr', file: 'tr.json' }, - { code: 'zh', file: 'zh.json' }, - { code: 'ae', file: 'ae.json' }, - ], - lazy: true, - defaultLocale: 'en', - strategy: 'no_prefix', - langDir: 'locales/', - }, - vite: { - optimizeDeps: { include: ['quill'] }, - }, - router: { - options: { linkExactActiveClass: 'active' }, - }, - compatibilityDate: '2024-09-21', + postcss: { + plugins: { + tailwindcss: {}, + autoprefixer: {}, + }, + }, - runtimeConfig: { - public: { - apiBase: process.env.API_BASE_URL, - }, + modules: ['@pinia/nuxt', '@nuxtjs/i18n'], + + i18n: { + locales: [ + { code: 'da', file: 'da.json' }, + { code: 'de', file: 'de.json' }, + { code: 'el', file: 'fr.json' }, + { code: 'en', file: 'en.json' }, + { code: 'es', file: 'es.json' }, + { code: 'fr', file: 'fr.json' }, + { code: 'hu', file: 'hu.json' }, + { code: 'it', file: 'it.json' }, + { code: 'ja', file: 'ja.json' }, + { code: 'pl', file: 'pl.json' }, + { code: 'pt', file: 'pt.json' }, + { code: 'ru', file: 'ru.json' }, + { code: 'sv', file: 'sv.json' }, + { code: 'tr', file: 'tr.json' }, + { code: 'zh', file: 'zh.json' }, + { code: 'ae', file: 'ae.json' }, + ], + lazy: true, + defaultLocale: 'en', + strategy: 'no_prefix', + langDir: 'locales/', + }, + + vite: { + optimizeDeps: { include: ['quill'] }, + }, + + router: { + options: { linkExactActiveClass: 'active' }, + }, + + compatibilityDate: '2024-09-21', + + runtimeConfig: { + public: { + apiBase: process.env.API_BASE_URL, + }, + }, + + devtools: { + timeline: { + enabled: true, }, -}); + }, +}); \ No newline at end of file diff --git a/pages/character/characters/[id].vue b/pages/character/characters/[id].vue index 74f187b..42fa9d7 100644 --- a/pages/character/characters/[id].vue +++ b/pages/character/characters/[id].vue @@ -22,7 +22,7 @@
Gambar karakter harus diisi
+Gambar karakter harus diupload dengan file berjenis PNG atau JPEG dengan ukuran maksimal 1 MB
Gambar ikon karakter harus diisi
+Gambar ikon karakter harus diupload dengan file berjenis PNG atau JPEG dengan ukuran maksimal 1 MB