@studio-fes/layer-strapi 0.5.1 → 0.6.0
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/.gitignore +25 -0
- package/CHANGELOG.md +20 -0
- package/app/types/graphql-operations.ts +1 -0
- package/app/utils/parse-strapi-video.ts +1 -2
- package/eslint.config.js +2 -67
- package/package.json +17 -18
package/.gitignore
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
node_modules
|
|
2
|
+
*.log
|
|
3
|
+
.nuxt
|
|
4
|
+
nuxt.d.ts
|
|
5
|
+
.output
|
|
6
|
+
.data
|
|
7
|
+
.env
|
|
8
|
+
package-lock.json
|
|
9
|
+
framework
|
|
10
|
+
dist
|
|
11
|
+
.DS_Store
|
|
12
|
+
.playground
|
|
13
|
+
|
|
14
|
+
# Yarn
|
|
15
|
+
.yarn/cache
|
|
16
|
+
.yarn/*state*
|
|
17
|
+
|
|
18
|
+
# Local History
|
|
19
|
+
.history
|
|
20
|
+
|
|
21
|
+
# VSCode
|
|
22
|
+
.vscode/
|
|
23
|
+
|
|
24
|
+
# JetBrains/WebStorm
|
|
25
|
+
.idea/
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @studio-fes/layer-strapi
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 7ac2a1b: Shorter dependency chain for projects:
|
|
8
|
+
- `@studio-fes/layer-craft` and `@studio-fes/layer-strapi` now depend on `@studio-fes/layer-base`, so projects no longer install it themselves.
|
|
9
|
+
- New `@studio-fes/eslint-config` package with the shared antfu + UnoCSS + GraphQL config. Projects only need it and `eslint` as devDependencies instead of six ESLint plugins.
|
|
10
|
+
- Starters no longer list `@studio-fes/layer-base` or the ESLint plugins. Existing projects can drop them and switch `eslint.config.js` to `withNuxt(fes({ pnpm: true }))`.
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [7ac2a1b]
|
|
15
|
+
- @studio-fes/layer-base@0.6.0
|
|
16
|
+
|
|
17
|
+
## 0.5.2
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- chore: add cacheTags support
|
|
22
|
+
|
|
3
23
|
## 0.5.1
|
|
4
24
|
|
|
5
25
|
### Patch Changes
|
|
@@ -6,10 +6,9 @@ export function parseStrapiVideo(video: StrapiFileFragment | null | undefined):
|
|
|
6
6
|
return {}
|
|
7
7
|
|
|
8
8
|
const config = useRuntimeConfig()
|
|
9
|
-
const id = useId()
|
|
10
9
|
|
|
11
10
|
return {
|
|
12
|
-
id: `video-${id}`,
|
|
11
|
+
id: `video-${video.id}`,
|
|
13
12
|
src: `${config.public.backendUrl}${video.url}`,
|
|
14
13
|
width: video.width,
|
|
15
14
|
height: video.height,
|
package/eslint.config.js
CHANGED
|
@@ -1,69 +1,4 @@
|
|
|
1
1
|
// @ts-check
|
|
2
|
-
import
|
|
3
|
-
import graphqlPlugin from '@graphql-eslint/eslint-plugin'
|
|
4
|
-
import { globalIgnores } from 'eslint/config'
|
|
2
|
+
import fes from '@studio-fes/eslint-config'
|
|
5
3
|
|
|
6
|
-
export default
|
|
7
|
-
{
|
|
8
|
-
formatters: true,
|
|
9
|
-
vue: true,
|
|
10
|
-
pnpm: false,
|
|
11
|
-
unocss: true,
|
|
12
|
-
antislop: true,
|
|
13
|
-
},
|
|
14
|
-
globalIgnores([
|
|
15
|
-
'dist',
|
|
16
|
-
'node_modules',
|
|
17
|
-
'.output',
|
|
18
|
-
'.nuxt',
|
|
19
|
-
'.storybook',
|
|
20
|
-
'storybook-static',
|
|
21
|
-
'.github',
|
|
22
|
-
'coverage',
|
|
23
|
-
'*.log',
|
|
24
|
-
'nuxt.d.ts',
|
|
25
|
-
'.output',
|
|
26
|
-
'.DS_Store',
|
|
27
|
-
'.vscode',
|
|
28
|
-
'*.md',
|
|
29
|
-
'package.json',
|
|
30
|
-
'package-lock.json',
|
|
31
|
-
'babel.config.js',
|
|
32
|
-
'graphql',
|
|
33
|
-
'types.ts',
|
|
34
|
-
'generated',
|
|
35
|
-
'components.d.ts',
|
|
36
|
-
'icons.d.ts',
|
|
37
|
-
'auto.d.ts',
|
|
38
|
-
'src-tauri',
|
|
39
|
-
'auto-imports.d.ts',
|
|
40
|
-
'schema.graphql',
|
|
41
|
-
]),
|
|
42
|
-
{
|
|
43
|
-
rules: {
|
|
44
|
-
'unocss/order': 'error', // or "error",
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
files: ['**/*.graphql', '**/*.gql'],
|
|
49
|
-
languageOptions: {
|
|
50
|
-
parser: graphqlPlugin.parser,
|
|
51
|
-
},
|
|
52
|
-
plugins: {
|
|
53
|
-
'@graphql-eslint': graphqlPlugin,
|
|
54
|
-
},
|
|
55
|
-
rules: {
|
|
56
|
-
'@graphql-eslint/no-anonymous-operations': 'error',
|
|
57
|
-
'@graphql-eslint/naming-convention': [
|
|
58
|
-
'error',
|
|
59
|
-
{
|
|
60
|
-
OperationDefinition: {
|
|
61
|
-
style: 'PascalCase',
|
|
62
|
-
forbiddenPrefixes: ['Query', 'Mutation', 'Subscription', 'Get'],
|
|
63
|
-
forbiddenSuffixes: ['Query', 'Mutation', 'Subscription'],
|
|
64
|
-
},
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
)
|
|
4
|
+
export default fes({ pnpm: false })
|
package/package.json
CHANGED
|
@@ -1,32 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@studio-fes/layer-strapi",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"main": "./nuxt.config.ts",
|
|
6
|
-
"scripts": {
|
|
7
|
-
"dev": "nuxi dev",
|
|
8
|
-
"build": "nuxi build",
|
|
9
|
-
"start": "nuxi preview",
|
|
10
|
-
"prepare": "nuxi prepare",
|
|
11
|
-
"generate": "nuxt generate",
|
|
12
|
-
"preview": "nuxt preview",
|
|
13
|
-
"lint": "eslint .",
|
|
14
|
-
"lint:fix": "eslint . --fix",
|
|
15
|
-
"typecheck": "nuxi typecheck"
|
|
16
|
-
},
|
|
17
6
|
"dependencies": {
|
|
18
|
-
"@
|
|
7
|
+
"@studio-fes/layer-base": "0.6.0",
|
|
19
8
|
"nuxt-graphql-middleware": "^5.4.0",
|
|
20
9
|
"nuxt-multi-cache": "^4.0.3",
|
|
21
10
|
"vue-strapi-blocks-renderer": "1.1.1"
|
|
22
11
|
},
|
|
23
12
|
"devDependencies": {
|
|
24
|
-
"@studio-fes/
|
|
13
|
+
"@studio-fes/eslint-config": "0.6.0",
|
|
25
14
|
"@types/node": "^26.6.4",
|
|
26
15
|
"eslint": "^10.12.0",
|
|
27
16
|
"nuxt": "^4.6.0",
|
|
28
|
-
"typescript": "^
|
|
29
|
-
"vue": "
|
|
17
|
+
"typescript": "^6.0.3",
|
|
18
|
+
"vue": "^3.5.43",
|
|
30
19
|
"vue-tsc": "^3.3.12"
|
|
31
20
|
},
|
|
32
21
|
"description": "Create Nuxt extendable layer with this GitHub template.",
|
|
@@ -39,5 +28,15 @@
|
|
|
39
28
|
"bugs": {
|
|
40
29
|
"url": "https://github.com/rondodevs/nuxt-layers/issues"
|
|
41
30
|
},
|
|
42
|
-
"homepage": "https://github.com/rondodevs/nuxt-layers#readme"
|
|
43
|
-
|
|
31
|
+
"homepage": "https://github.com/rondodevs/nuxt-layers#readme",
|
|
32
|
+
"scripts": {
|
|
33
|
+
"dev": "nuxi dev",
|
|
34
|
+
"build": "nuxi build",
|
|
35
|
+
"start": "nuxi preview",
|
|
36
|
+
"generate": "nuxt generate",
|
|
37
|
+
"preview": "nuxt preview",
|
|
38
|
+
"lint": "eslint .",
|
|
39
|
+
"lint:fix": "eslint . --fix",
|
|
40
|
+
"typecheck": "nuxi typecheck"
|
|
41
|
+
}
|
|
42
|
+
}
|