Skip to content

Commit 3d88bf8

Browse files
committed
feat(nuxt): prepare for v4
1 parent f843ed9 commit 3d88bf8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+37
-25
lines changed

src/app.vue app/app.vue

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/components/page/Footer.vue app/components/page/Footer.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const { public: { branch } } = useRuntimeConfig();
1010
class="[&_.colorful]:(align-top text-greenspring-500 font-bold)"
1111
m="x-auto"
1212
max="w-screen-2xl"
13-
p="6"
13+
p="y-4 x-6"
1414
u-text="brilliantsea-50/50"
1515
>
1616
<div>

src/components/page/NavBar.vue app/components/page/NavBar.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const links = [
4747
<NuxtLinkLocale
4848
:to="{ path }"
4949
u-text="hover:greenspring-500"
50-
p="4"
50+
p="4 first:r-0"
5151
leading="1px"
5252
>
5353
{{ $t(localePath) }}

src/components/page/index/Sidebar.vue app/components/page/index/Sidebar.vue

+1
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ const socials = {
7777
u-text="0.8em"
7878
:color="skill.color"
7979
:icon="skill.icon"
80+
size="10"
8081
/>
8182
</div>
8283
</div>

src/components/page/projects/Card.vue app/components/page/projects/Card.vue

+6-6
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ const skills = await useSkillStore().$state;
6262
</template>
6363
<div
6464
v-if="project.github && ghData"
65-
:class="!project.leading ? 'card-gray/30 p-2': null"
66-
p="1.5"
6765
leading="1.25rem"
6866
u-text="base brilliantsea-50"
6967
>
@@ -74,10 +72,12 @@ const skills = await useSkillStore().$state;
7472
gap="1.5"
7573
flex="~ items-center"
7674
>
77-
<Icon name="ph:star-bold" />
78-
{{ ghData.data.value?.stargazers_count }}
79-
<Icon name="ph:git-fork-bold" />
80-
{{ ghData.data.value?.forks }}
75+
<UiBadge icon="ph:star-duotone" px="2">
76+
{{ ghData.data.value?.stargazers_count }}
77+
</UiBadge>
78+
<UiBadge v-if="ghData.data.value?.forks > 0" icon="ph:git-fork-duotone" px="2">
79+
{{ ghData.data.value?.forks }}
80+
</UiBadge>
8181
</NuxtLink>
8282
</div>
8383
</div>

src/components/ui/Badge.vue app/components/ui/Badge.vue

+8-2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ defineProps({
1010
default: null,
1111
type: String,
1212
},
13+
iconSize: {
14+
default: "1.4em",
15+
type: String,
16+
},
1317
link: {
1418
default: null,
1519
type: String,
@@ -21,7 +25,8 @@ defineProps({
2125
<component
2226
:is="link ? NuxtLink : 'div'"
2327
:to="link ?? null"
24-
p="2"
28+
h="9"
29+
:w="$slots.default ? 'inherit' : '9'"
2530
rounded="md"
2631
border="~ slate-300/30"
2732
u-text="sm"
@@ -32,6 +37,7 @@ defineProps({
3237
w="full"
3338
gap="2"
3439
flex="inline items-center shrink-1 justify-center"
40+
h="full"
3541
align="middle"
3642
>
3743
<slot
@@ -42,7 +48,7 @@ defineProps({
4248
v-else-if="$props.icon"
4349
:name="$props.icon"
4450
rounded="md"
45-
size="1.4em"
51+
:size="$props.iconSize"
4652
/>
4753
<p
4854
v-if="$slots.default"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/error.vue app/error.vue

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/types/api.ts app/types/api.ts

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

bun.lockb

80.7 KB
Binary file not shown.

nuxt.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ export default defineNuxtConfig({
4141
watcher: "parcel",
4242
},
4343
future: {
44+
compatibilityVersion: 4,
4445
typescriptBundlerResolution: true,
4546
},
4647
i18n: {
@@ -121,7 +122,6 @@ export default defineNuxtConfig({
121122
branch: "v3",
122123
},
123124
},
124-
srcDir: "src",
125125
typescript: {
126126
strict: true,
127127
// Causes some incompatabilities with nuxt-icons

package.json

+19-14
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nuxt-app",
33
"private": true,
44
"type": "module",
5-
"packageManager": "[email protected].12",
5+
"packageManager": "[email protected].13",
66
"scripts": {
77
"build": "nuxt build",
88
"dev": "nuxt dev",
@@ -13,20 +13,25 @@
1313
"lint:fix": "eslint . --fix"
1414
},
1515
"devDependencies": {
16+
"@iconify-json/devicon": "^1.1.43",
17+
"@iconify-json/mdi": "^1.1.66",
1618
"@iconify-json/ph": "^1.1.13",
19+
"@iconify-json/simple-icons": "^1.1.106",
20+
"@iconify-json/vscode-icons": "^1.1.35",
1721
"@nuxt/eslint": "^0.3.13",
18-
"@nuxtjs/fontaine": "^0.4.2",
22+
"@nuxtjs/fontaine": "^0.4.3",
1923
"@nuxtjs/i18n": "^8.3.1",
2024
"@pinia/nuxt": "latest",
21-
"@stylistic/eslint-plugin": "^1.8.1",
22-
"@types/bun": "^1.1.3",
23-
"@unhead/addons": "^1.9.11",
24-
"@unocss/eslint-config": "^0.59.4",
25+
"@stylistic/eslint-plugin": "^2.2.1",
26+
"@types/bun": "^1.1.4",
27+
"@unhead/addons": "^1.9.13",
28+
"@unocss/eslint-config": "^0.61.0",
2529
"@unocss/nuxt": "latest",
26-
"browserslist": "^4.23.0",
27-
"eslint": "^9.4.0",
30+
"browserslist": "^4.23.1",
31+
"eslint": "^9.5.0",
32+
"eslint-plugin-sort": "^3.0.2",
2833
"lightningcss": "^1.25.1",
29-
"nuxt": "^3.11.2",
34+
"nuxt": "^3.12.2",
3035
"nuxt-delay-hydration": "^1.3.3",
3136
"nuxt-icon": "^1.0.0-beta.6",
3237
"nuxt-security": "^1.4.3",
@@ -36,16 +41,16 @@
3641
"typescript": "^5.4.5",
3742
"unocss-preset-autoprefixer": "^0.0.7",
3843
"vite-svg-loader": "^5.1.0",
39-
"vue": "^3.4.27",
40-
"vue-router": "^4.3.2",
41-
"vue-tsc": "^2.0.19"
44+
"vue": "^3.4.29",
45+
"vue-router": "^4.3.3",
46+
"vue-tsc": "^2.0.21"
4247
},
4348
"dependencies": {
4449
"@fontsource-variable/onest": "^5.0.4",
4550
"@fontsource-variable/unbounded": "^5.0.20",
4651
"@nuxt/image": "^1.7.0",
47-
"@nuxt/types": "^2.17.3",
48-
"@vueuse/nuxt": "^10.10.0",
52+
"@nuxt/types": "^2.17.4",
53+
"@vueuse/nuxt": "^10.11.0",
4954
"date-fns": "^3.6.0",
5055
"nuxt-payload-analyzer": "^0.1.4",
5156
"ufo": "^1.5.3"
File renamed without changes.

src/public/ctm.svg public/ctm.svg

File renamed without changes.
File renamed without changes.

src/public/f2d.png public/f2d.png

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/public/sbg.jpg public/sbg.jpg

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)