@studio-fes/create-fes-app 0.4.8 → 0.4.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/templates/craft/eslint.config.js +2 -1
- package/dist/templates/craft/i18n/locales/en.ts +1 -1
- package/dist/templates/craft/i18n/locales/it.ts +1 -1
- package/dist/templates/craft/package.json +5 -3
- package/dist/templates/craft/server/multiCache.serverOptions.ts +1 -2
- package/dist/templates/strapi/app/components/SectionSingleImage.vue +10 -9
- package/dist/templates/strapi/app/components/VideoProgress.vue +1 -1
- package/dist/templates/strapi/app/plugins/site-config.server.ts +3 -0
- package/dist/templates/strapi/eslint.config.js +2 -2
- package/dist/templates/strapi/package.json +2 -2
- package/dist/templates/strapi/tsconfig.json +3 -3
- package/dist/templates/strapi/uno.config.ts +15 -0
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import graphqlPlugin from '@graphql-eslint/eslint-plugin'
|
|
|
4
4
|
import { globalIgnores } from 'eslint/config'
|
|
5
5
|
import withNuxt from './.nuxt/eslint.config.mjs'
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
/** export default withNuxt( */
|
|
8
8
|
export default withNuxt(
|
|
9
9
|
// Your custom configs here
|
|
10
10
|
await antfu(
|
|
@@ -13,6 +13,7 @@ export default withNuxt(
|
|
|
13
13
|
vue: true,
|
|
14
14
|
pnpm: false,
|
|
15
15
|
unocss: true,
|
|
16
|
+
antislop: true,
|
|
16
17
|
},
|
|
17
18
|
),
|
|
18
19
|
globalIgnores([
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"postinstall": "nuxt prepare"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@studio-fes/layer-base": "^0.4.
|
|
14
|
-
"@studio-fes/layer-craft": "^0.4.
|
|
13
|
+
"@studio-fes/layer-base": "^0.4.10",
|
|
14
|
+
"@studio-fes/layer-craft": "^0.4.10",
|
|
15
15
|
"nuxt": "^4.5.2",
|
|
16
16
|
"vue": "^3.5.43",
|
|
17
17
|
"vue-router": "^5.3.1"
|
|
@@ -21,6 +21,8 @@
|
|
|
21
21
|
"@graphql-eslint/eslint-plugin": "^4.4.1",
|
|
22
22
|
"@unocss/eslint-config": "^66.10.5",
|
|
23
23
|
"eslint": "^10.10.0",
|
|
24
|
-
"eslint-plugin-format": "^2.0.1"
|
|
24
|
+
"eslint-plugin-format": "^2.0.1",
|
|
25
|
+
"eslint-plugin-slop": "^0.1.3",
|
|
26
|
+
"eslint-plugin-sonarjs": "^4.2.1"
|
|
25
27
|
}
|
|
26
28
|
}
|
|
@@ -5,8 +5,7 @@ import { defineMultiCacheOptions } from 'nuxt-multi-cache/server-options'
|
|
|
5
5
|
import fsDriver from 'unstorage/drivers/fs'
|
|
6
6
|
import nullDriver from 'unstorage/drivers/null'
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
/** const isDev = import.meta.dev */
|
|
10
9
|
export default defineMultiCacheOptions(() => {
|
|
11
10
|
const config = useRuntimeConfig()
|
|
12
11
|
const { multiCacheEnabled } = config
|
|
@@ -5,7 +5,7 @@ interface SectionSingleImageProps {
|
|
|
5
5
|
data: SectionSingleImageFragment
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
defineProps<SectionSingleImageProps>()
|
|
9
9
|
</script>
|
|
10
10
|
|
|
11
11
|
<template>
|
|
@@ -19,21 +19,22 @@ const props = defineProps<SectionSingleImageProps>()
|
|
|
19
19
|
:video-props="{
|
|
20
20
|
autoplay: true,
|
|
21
21
|
muted: true,
|
|
22
|
-
playsinline: true,
|
|
23
22
|
loop: true,
|
|
24
|
-
ratio: 1410 / 792
|
|
23
|
+
ratio: 1410 / 792,
|
|
25
24
|
}"
|
|
26
25
|
>
|
|
27
26
|
<template #media-chrome="{ isPlaying, progress }">
|
|
27
|
+
<!-- eslint-disable vue/no-deprecated-slot-attribute -->
|
|
28
28
|
<media-play-button slot="centered-chrome">
|
|
29
|
-
<VideoProgress
|
|
30
|
-
:is-playing="isPlaying"
|
|
31
|
-
:progress="progress"
|
|
32
|
-
class="size-10"
|
|
29
|
+
<VideoProgress
|
|
33
30
|
slot="tooltip"
|
|
31
|
+
:is-playing="isPlaying"
|
|
32
|
+
:progress="progress"
|
|
33
|
+
class="size-10"
|
|
34
34
|
/>
|
|
35
35
|
</media-play-button>
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
<!-- eslint-enable vue/no-deprecated-slot-attribute -->
|
|
37
|
+
</template>
|
|
38
|
+
</StrapiMedia>
|
|
38
39
|
</section>
|
|
39
40
|
</template>
|
|
@@ -12,7 +12,7 @@ const dashoffset = computed(() =>
|
|
|
12
12
|
</script>
|
|
13
13
|
|
|
14
14
|
<template>
|
|
15
|
-
<span class="
|
|
15
|
+
<span class="rounded-full bg-transparent aspect-square block cursor-pointer transition duration-300 items-center justify-center absolute overflow-hidden">
|
|
16
16
|
<svg class="inset-0 absolute z-1" viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg">
|
|
17
17
|
<circle
|
|
18
18
|
cx="100"
|
|
@@ -3,6 +3,8 @@ export default defineNuxtPlugin({
|
|
|
3
3
|
enforce: 'pre',
|
|
4
4
|
dependsOn: ['nuxt-graphql-middleware-provide-state'],
|
|
5
5
|
async setup() {
|
|
6
|
+
// Add a `SiteConfig.gql` query for your Strapi single-type once it exists, then:
|
|
7
|
+
/* eslint-disable sonarjs/no-commented-code */
|
|
6
8
|
// const { data } = await useGraphqlQuery('SiteConfig')
|
|
7
9
|
// updateSiteConfig({
|
|
8
10
|
// name: data.siteConfig?.siteName,
|
|
@@ -13,5 +15,6 @@ export default defineNuxtPlugin({
|
|
|
13
15
|
// const runtimeConfig = useRuntimeConfig()
|
|
14
16
|
// runtimeConfig.public.i18n.baseUrl = data.siteConfig?.siteUrl
|
|
15
17
|
// }
|
|
18
|
+
/* eslint-enable sonarjs/no-commented-code */
|
|
16
19
|
},
|
|
17
20
|
})
|
|
@@ -4,7 +4,7 @@ import graphqlPlugin from '@graphql-eslint/eslint-plugin'
|
|
|
4
4
|
import { globalIgnores } from 'eslint/config'
|
|
5
5
|
import withNuxt from './.nuxt/eslint.config.mjs'
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
/** export default withNuxt( */
|
|
8
8
|
export default withNuxt(
|
|
9
9
|
// Your custom configs here
|
|
10
10
|
antfu(
|
|
@@ -13,6 +13,7 @@ export default withNuxt(
|
|
|
13
13
|
vue: true,
|
|
14
14
|
pnpm: false,
|
|
15
15
|
unocss: true,
|
|
16
|
+
antislop: true,
|
|
16
17
|
},
|
|
17
18
|
),
|
|
18
19
|
globalIgnores([
|
|
@@ -48,7 +49,6 @@ export default withNuxt(
|
|
|
48
49
|
'unocss/order': 'error', // or "error",
|
|
49
50
|
},
|
|
50
51
|
},
|
|
51
|
-
// @ts-expect-error
|
|
52
52
|
{
|
|
53
53
|
files: ['**/*.graphql', '**/*.gql'],
|
|
54
54
|
languageOptions: {
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
"postinstall": "nuxt prepare"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@studio-fes/layer-base": "^0.4.
|
|
14
|
-
"@studio-fes/layer-strapi": "^0.4.
|
|
13
|
+
"@studio-fes/layer-base": "^0.4.10",
|
|
14
|
+
"@studio-fes/layer-strapi": "^0.4.10",
|
|
15
15
|
"nuxt": "^4.5.2",
|
|
16
16
|
"vue": "^3.5.43",
|
|
17
17
|
"vue-router": "^5.3.1"
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
// https://nuxt.com/docs/guide/concepts/typescript
|
|
3
|
-
"files": [],
|
|
4
2
|
"references": [
|
|
5
3
|
{
|
|
6
4
|
"path": "./.nuxt/tsconfig.app.json"
|
|
@@ -14,5 +12,7 @@
|
|
|
14
12
|
{
|
|
15
13
|
"path": "./.nuxt/tsconfig.node.json"
|
|
16
14
|
}
|
|
17
|
-
]
|
|
15
|
+
],
|
|
16
|
+
// https://nuxt.com/docs/guide/concepts/typescript
|
|
17
|
+
"files": []
|
|
18
18
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studio-fes/create-fes-app",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.10",
|
|
5
5
|
"description": "Interactive wizard to scaffold a new project from the studio fes Nuxt layers starters (Craft CMS, Strapi).",
|
|
6
6
|
"bin": {
|
|
7
7
|
"create-fes-app": "bin/create-fes-app.mjs"
|