Skip to content

Commit c159445

Browse files
committed
revise: add icons to production dependencies
1 parent 0a4962d commit c159445

File tree

4 files changed

+41
-66
lines changed

4 files changed

+41
-66
lines changed

components/ColorMode.vue

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
<template>
22
<div class="cursor-pointer">
3-
<LucideMoon
3+
<UIcon
4+
class="w-6 h-6"
5+
name="heroicons:moon-solid"
46
v-if="colorMode.preference === Mode.Light"
57
@click="colorMode.preference = Mode.Dark"
68
/>
7-
<LucideSun v-else @click="colorMode.preference = Mode.Light" />
9+
<UIcon
10+
class="w-6 h-6"
11+
name="heroicons:sun-solid"
12+
v-else
13+
@click="colorMode.preference = Mode.Light"
14+
/>
815
</div>
916
</template>
1017

nuxt.config.ts

+6-9
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,15 @@ import remarkGfm from "remark-gfm";
44
export default defineNuxtConfig({
55
compatibilityDate: "2024-04-03",
66
css: ["~/assets/css/main.postcss"],
7-
devtools: { enabled: true },
8-
app: {
9-
baseURL: "/",
10-
},
11-
ssr: true,
7+
app: { baseURL: "/" },
8+
ssr: false,
129
modules: [
13-
"nuxt-lucide-icons",
1410
"@nuxt/content",
15-
"@nuxt/ui",
1611
"@nuxt/icon",
17-
"@nuxtjs/tailwindcss",
18-
"@nuxtjs/color-mode",
1912
"@nuxt/image",
13+
"@nuxt/ui",
14+
"@nuxtjs/color-mode",
15+
"@nuxtjs/tailwindcss",
2016
],
2117
content: {
2218
documentDriven: false,
@@ -30,4 +26,5 @@ export default defineNuxtConfig({
3026
linkExactActiveClass: "active",
3127
},
3228
},
29+
ui: {},
3330
});

package.json

+8-9
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@
1010
"postinstall": "nuxt prepare"
1111
},
1212
"dependencies": {
13+
"@iconify-json/carbon": "^1.2.3",
14+
"@iconify-json/heroicons-outline": "^1.2.0",
15+
"@iconify-json/heroicons": "^1.2.1",
16+
"@iconify-json/mdi": "^1.2.1",
17+
"@iconify-json/octicon": "^1.2.1",
18+
"@iconify-json/tabler": "^1.2.5",
1319
"@nuxt/content": "^2.13.2",
1420
"@nuxt/icon": "^1.5.5",
1521
"@nuxt/image": "^1.8.1",
@@ -19,19 +25,12 @@
1925
"change-case": "^5.4.4",
2026
"d3": "^7.9.0",
2127
"nuxt": "^3.13.2",
22-
"nuxt-lucide-icons": "^1.0.5",
2328
"remark-gfm": "^4.0.0",
24-
"vue": "latest",
25-
"vue-router": "latest"
29+
"vue-router": "latest",
30+
"vue": "latest"
2631
},
2732
"packageManager": "pnpm@9.12.0+sha512.4abf725084d7bcbafbd728bfc7bee61f2f791f977fd87542b3579dcb23504d170d46337945e4c66485cd12d588a0c0e570ed9c477e7ccdd8507cf05f3f92eaca",
2833
"devDependencies": {
29-
"@iconify-json/carbon": "^1.2.3",
30-
"@iconify-json/heroicons": "^1.2.1",
31-
"@iconify-json/heroicons-outline": "^1.2.0",
32-
"@iconify-json/mdi": "^1.2.1",
33-
"@iconify-json/octicon": "^1.2.1",
34-
"@iconify-json/tabler": "^1.2.5",
3534
"@tailwindcss/typography": "^0.5.15"
3635
}
3736
}

pnpm-lock.yaml

+18-46
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)