mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-06-07 18:47:44 +08:00
fix: update css import
This commit is contained in:
@@ -146,14 +146,6 @@ onMounted(async () => {
|
|||||||
await updateUnread()
|
await updateUnread()
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
watch(
|
|
||||||
() => router.currentRoute.value.fullPath,
|
|
||||||
() => {
|
|
||||||
if (userMenu.value) userMenu.value.close()
|
|
||||||
showSearch.value = false
|
|
||||||
},
|
|
||||||
)
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -1,25 +1,25 @@
|
|||||||
import { defineNuxtConfig } from "nuxt/config";
|
import { defineNuxtConfig } from 'nuxt/config'
|
||||||
|
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
ssr: true,
|
ssr: true,
|
||||||
runtimeConfig: {
|
runtimeConfig: {
|
||||||
public: {
|
public: {
|
||||||
apiBaseUrl: process.env.NUXT_PUBLIC_API_BASE_URL || "",
|
apiBaseUrl: process.env.NUXT_PUBLIC_API_BASE_URL || '',
|
||||||
websiteBaseUrl: process.env.NUXT_PUBLIC_WEBSITE_BASE_URL || "",
|
websiteBaseUrl: process.env.NUXT_PUBLIC_WEBSITE_BASE_URL || '',
|
||||||
googleClientId: process.env.NUXT_PUBLIC_GOOGLE_CLIENT_ID || "",
|
googleClientId: process.env.NUXT_PUBLIC_GOOGLE_CLIENT_ID || '',
|
||||||
githubClientId: process.env.NUXT_PUBLIC_GITHUB_CLIENT_ID || "",
|
githubClientId: process.env.NUXT_PUBLIC_GITHUB_CLIENT_ID || '',
|
||||||
discordClientId: process.env.NUXT_PUBLIC_DISCORD_CLIENT_ID || "",
|
discordClientId: process.env.NUXT_PUBLIC_DISCORD_CLIENT_ID || '',
|
||||||
twitterClientId: process.env.NUXT_PUBLIC_TWITTER_CLIENT_ID || "",
|
twitterClientId: process.env.NUXT_PUBLIC_TWITTER_CLIENT_ID || '',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
// Ensure Vditor styles load before our overrides in global.css
|
// Ensure Vditor styles load before our overrides in global.css
|
||||||
css: ["vditor/dist/index.css", "~/assets/global.css", "~/assets/fonts.css"],
|
css: ['vditor/dist/index.css', '~/assets/fonts.css', '~/assets/global.css'],
|
||||||
app: {
|
app: {
|
||||||
head: {
|
head: {
|
||||||
script: [
|
script: [
|
||||||
{
|
{
|
||||||
tagPriority: "high",
|
tagPriority: 'high',
|
||||||
innerHTML: `
|
innerHTML: `
|
||||||
(function () {
|
(function () {
|
||||||
try {
|
try {
|
||||||
const mode = localStorage.getItem('theme-mode');
|
const mode = localStorage.getItem('theme-mode');
|
||||||
@@ -29,35 +29,35 @@ export default defineNuxtConfig({
|
|||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
})();
|
})();
|
||||||
`,
|
`,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
link: [
|
link: [
|
||||||
{
|
{
|
||||||
rel: "icon",
|
rel: 'icon',
|
||||||
type: "image/x-icon",
|
type: 'image/x-icon',
|
||||||
href: "/favicon.ico",
|
href: '/favicon.ico',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
rel: "apple-touch-icon",
|
rel: 'apple-touch-icon',
|
||||||
href: "/apple-touch-icon.png",
|
href: '/apple-touch-icon.png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
rel: "manifest",
|
rel: 'manifest',
|
||||||
href: "/manifest.webmanifest",
|
href: '/manifest.webmanifest',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
rel: "stylesheet",
|
rel: 'stylesheet',
|
||||||
href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css",
|
href: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css',
|
||||||
referrerpolicy: "no-referrer",
|
referrerpolicy: 'no-referrer',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
baseURL: "/",
|
baseURL: '/',
|
||||||
buildAssetsDir: "/_nuxt/",
|
buildAssetsDir: '/_nuxt/',
|
||||||
},
|
},
|
||||||
vue: {
|
vue: {
|
||||||
compilerOptions: {
|
compilerOptions: {
|
||||||
isCustomElement: (tag) => ["l-hatch", "l-hatch-spinner"].includes(tag),
|
isCustomElement: (tag) => ['l-hatch', 'l-hatch-spinner'].includes(tag),
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
});
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user