Skip to content

Commit a0d735a

Browse files
committed
Fix Linting and Upgrade PNPM
1 parent 09ee603 commit a0d735a

File tree

3 files changed

+55
-52
lines changed

3 files changed

+55
-52
lines changed

app/components/header/HeaderSlideover.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ const navItems = computed(() => {
128128
<!-- Label -->
129129
<span class="nav-label">
130130
{{ item.label }}
131-
<Icon v-if="item.href" name="material-symbols:open-in-new-rounded" />
131+
<Icon
132+
v-if="item.href"
133+
name="material-symbols:open-in-new-rounded"
134+
/>
132135
</span>
133136
</NuxtLink>
134137
</li>

nuxt.config.ts

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ import { resolve } from 'path';
22
import { buildPages } from './server/remoteContent';
33

44
export default defineNuxtConfig({
5-
compatibilityDate: '2024-04-03',
6-
devtools: { enabled: true },
75
modules: [
86
'@nuxt/eslint',
97
'@vueuse/nuxt',
@@ -14,25 +12,20 @@ export default defineNuxtConfig({
1412
'@nuxtjs/seo',
1513
'@nuxtjs/color-mode',
1614
],
17-
runtimeConfig: {
18-
public: {
19-
INKEEP_API_KEY: '',
20-
INKEEP_INTEGRATION_ID: '',
21-
INKEEP_ORGANIZATION_ID: '',
22-
NEWSLETTER_URL: '',
23-
PRODUCT_DIRECTUS_URL: '',
24-
},
25-
},
26-
typescript: {
27-
// typeCheck: true,
15+
devtools: { enabled: true },
16+
css: ['~/assets/css/main.scss'],
17+
vue: {
18+
runtimeCompiler: true,
2819
},
29-
routeRules: {
30-
'/**': { prerender: true },
20+
site: {
21+
name: 'Directus Docs',
3122
},
32-
hooks: {
33-
async ready() {
34-
await buildPages(__dirname);
35-
},
23+
colorMode: {
24+
preference: 'system',
25+
fallback: 'light',
26+
storage: 'localStorage',
27+
storageKey: 'nuxt-color-mode',
28+
classSuffix: '',
3629
},
3730
content: {
3831
highlight: {
@@ -74,12 +67,35 @@ export default defineNuxtConfig({
7467
fields: ['root', 'tags', 'additional_paths', 'expandable'],
7568
},
7669
},
77-
colorMode: {
78-
preference: 'system',
79-
fallback: 'light',
80-
storage: 'localStorage',
81-
storageKey: 'nuxt-color-mode',
82-
classSuffix: '',
70+
runtimeConfig: {
71+
public: {
72+
INKEEP_API_KEY: '',
73+
INKEEP_INTEGRATION_ID: '',
74+
INKEEP_ORGANIZATION_ID: '',
75+
NEWSLETTER_URL: '',
76+
PRODUCT_DIRECTUS_URL: '',
77+
},
78+
},
79+
routeRules: {
80+
'/**': { prerender: true },
81+
},
82+
future: {
83+
compatibilityVersion: 4,
84+
},
85+
compatibilityDate: '2024-04-03',
86+
nitro: {
87+
prerender: {
88+
routes: ['/', '/api'],
89+
crawlLinks: false,
90+
},
91+
},
92+
typescript: {
93+
// typeCheck: true,
94+
},
95+
hooks: {
96+
async ready() {
97+
await buildPages(__dirname);
98+
},
8399
},
84100
eslint: {
85101
config: {
@@ -89,20 +105,6 @@ export default defineNuxtConfig({
89105
},
90106
},
91107
},
92-
site: {
93-
name: 'Directus Docs',
94-
},
95-
future: {
96-
compatibilityVersion: 4,
97-
},
98-
schemaOrg: {
99-
identity: {
100-
type: 'Organization',
101-
name: 'Directus',
102-
url: 'https://directus.io',
103-
logo: 'https://directus.io/images/logo-dark.svg',
104-
},
105-
},
106108
icon: {
107109
customCollections: [
108110
{
@@ -115,21 +117,19 @@ export default defineNuxtConfig({
115117
},
116118
],
117119
},
120+
schemaOrg: {
121+
identity: {
122+
type: 'Organization',
123+
name: 'Directus',
124+
url: 'https://directus.io',
125+
logo: 'https://directus.io/images/logo-dark.svg',
126+
},
127+
},
118128
security: {
119129
rateLimiter: false,
120130
headers: {
121131
crossOriginEmbedderPolicy:
122132
process.env.NODE_ENV === 'development' ? 'unsafe-none' : 'require-corp',
123133
},
124134
},
125-
css: ['~/assets/css/main.scss'],
126-
vue: {
127-
runtimeCompiler: true,
128-
},
129-
nitro: {
130-
prerender: {
131-
routes: ['/', '/api'],
132-
crawlLinks: false,
133-
},
134-
},
135135
});

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
"typescript": "^5.6.3",
5252
"vue-tsc": "^2.1.6"
5353
},
54-
"packageManager": "pnpm@9.10.0",
54+
"packageManager": "pnpm@9.12.1",
5555
"engines": {
5656
"node": ">=20.17.0",
57-
"pnpm": ">=9.10.0"
57+
"pnpm": ">=9.12.1"
5858
}
5959
}

0 commit comments

Comments
 (0)