@myelophone/nuxt 0.18.2 → 0.20.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.
Files changed (37) hide show
  1. package/.devcontainer/Dockerfile +6 -6
  2. package/.editorconfig +43 -43
  3. package/.github/workflows/package.yml +72 -73
  4. package/.nuxtignore +5 -5
  5. package/.releaserc.js +1 -0
  6. package/CHANGELOG.md +159 -141
  7. package/LICENSE +77 -77
  8. package/README.md +7 -7
  9. package/app/app.vue +1 -1
  10. package/app/components/view/NotFound.vue +2 -2
  11. package/app/composables/useMultiLang.ts +8 -0
  12. package/app/locales/en/error.json +4 -4
  13. package/app/locales/en/outdated.json +5 -5
  14. package/app/locales/en/times.json +18 -18
  15. package/app/locales/pl/times.json +18 -18
  16. package/app/locales/ru/error.json +4 -4
  17. package/app/locales/ru/outdated.json +5 -5
  18. package/app/locales/ru/times.json +18 -18
  19. package/app/middleware/blog-layout.ts +3 -1
  20. package/app/modules/default-blog/index.ts +1 -1
  21. package/app/modules/htaccess/.htaccess +38 -38
  22. package/app/modules/myelophone-config/module.ts +56 -1
  23. package/app/pages/post/[...slug].server.vue +32 -0
  24. package/app/plugins/open-graph-only.ts +36 -0
  25. package/app/plugins/url-helper.client.ts +0 -1
  26. package/app/server/middleware/security-headers.ts +5 -0
  27. package/app/server/middleware/url-helper.ts +7 -0
  28. package/app/types/blog-content.d.ts +11 -0
  29. package/app/utils/blog.server.ts +3 -129
  30. package/biome.json +1 -1
  31. package/nuxt.config.ts +55 -24
  32. package/package.json +13 -10
  33. package/vite/plugins/blog-content.ts +126 -0
  34. package/vite/plugins/clean-css.ts +20 -1
  35. package/vite/plugins/nitro-profile.ts +86 -0
  36. package/app/components/ui/PostContent.server.vue +0 -23
  37. package/app/pages/post/[...slug].vue +0 -30
@@ -1,7 +1,7 @@
1
- FROM node:slim
2
-
3
- RUN apt-get update && apt-get install -y \
4
- git curl bash ca-certificates \
5
- && rm -rf /var/lib/apt/lists/*
6
-
1
+ FROM node:slim
2
+
3
+ RUN apt-get update && apt-get install -y \
4
+ git curl bash ca-certificates \
5
+ && rm -rf /var/lib/apt/lists/*
6
+
7
7
  WORKDIR /app
package/.editorconfig CHANGED
@@ -1,43 +1,43 @@
1
- root = true
2
-
3
- [*]
4
- indent_style = tab
5
- charset = utf-8
6
- end_of_line = auto
7
- insert_final_newline = false
8
- indent_size = 4
9
-
10
- [*.{md,txt}]
11
- indent_style = space
12
- indent_size = 1
13
- trim_trailing_whitespace = false
14
-
15
- [Makefile]
16
- indent_style = tab
17
-
18
- [*.py]
19
- indent_style = space
20
- indent_size = 4
21
-
22
- [*.{js,jsx,ts,tsx,css,mjs}]
23
- quote_type = single
24
-
25
- [*.bat]
26
- end_of_line = crlf
27
-
28
- [*.{yaml,yml,json,toml,xml}]
29
- indent_style = space
30
- indent_size = 2
31
-
32
- [*.cs]
33
- indent_style = space
34
- indent_size = 4
35
- dotnet_sort_system_directives_first = true
36
- dotnet_separate_import_directive_groups = true
37
- csharp_new_line_before_open_brace = all
38
- csharp_indent_case_contents = true
39
- csharp_indent_switch_labels = true
40
-
41
- [*.rs]
42
- indent_style = space
43
- indent_size = 4
1
+ root = true
2
+
3
+ [*]
4
+ indent_style = tab
5
+ charset = utf-8
6
+ end_of_line = auto
7
+ insert_final_newline = false
8
+ indent_size = 4
9
+
10
+ [*.{md,txt}]
11
+ indent_style = space
12
+ indent_size = 1
13
+ trim_trailing_whitespace = false
14
+
15
+ [Makefile]
16
+ indent_style = tab
17
+
18
+ [*.py]
19
+ indent_style = space
20
+ indent_size = 4
21
+
22
+ [*.{js,jsx,ts,tsx,css,mjs}]
23
+ quote_type = single
24
+
25
+ [*.bat]
26
+ end_of_line = crlf
27
+
28
+ [*.{yaml,yml,json,toml,xml}]
29
+ indent_style = space
30
+ indent_size = 2
31
+
32
+ [*.cs]
33
+ indent_style = space
34
+ indent_size = 4
35
+ dotnet_sort_system_directives_first = true
36
+ dotnet_separate_import_directive_groups = true
37
+ csharp_new_line_before_open_brace = all
38
+ csharp_indent_case_contents = true
39
+ csharp_indent_switch_labels = true
40
+
41
+ [*.rs]
42
+ indent_style = space
43
+ indent_size = 4
@@ -1,73 +1,72 @@
1
- name: Create package
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
-
8
- permissions:
9
- contents: write
10
- packages: write
11
- issues: write
12
- id-token: write
13
-
14
- jobs:
15
- release:
16
- name: Release package
17
- runs-on: ubuntu-latest
18
-
19
- steps:
20
- - name: Checkout repository
21
- uses: actions/checkout@v6
22
- with:
23
- fetch-depth: 0
24
-
25
- - name: Setup Node.js
26
- uses: actions/setup-node@v6
27
- with:
28
- node-version: 26
29
- registry-url: "https://npm.pkg.github.com"
30
- scope: "@${{ github.repository_owner }}"
31
- cache: yarn
32
-
33
- - name: Install dependencies
34
- run: yarn install && yarn prepare
35
-
36
- - name: Bootstrap version tag
37
- shell: bash
38
- run: |
39
- git fetch origin --tags --force
40
-
41
- if git tag --list 'v*' | grep -q .; then
42
- echo "Release tag already exists; bootstrap skipped."
43
- exit 0
44
- fi
45
-
46
- PACKAGE_VERSION="$(node -p "require('./package.json').version")"
47
- BASE_TAG="v${PACKAGE_VERSION}"
48
-
49
- WORKFLOW_COMMIT="$(
50
- git log \
51
- --reverse \
52
- --format='%H' \
53
- -- .github/workflows/package.yml |
54
- head -n 1
55
- )"
56
-
57
- if [ -n "$WORKFLOW_COMMIT" ] &&
58
- git rev-parse "${WORKFLOW_COMMIT}^" >/dev/null 2>&1; then
59
- BASE_COMMIT="$(git rev-parse "${WORKFLOW_COMMIT}^")"
60
- else
61
- BASE_COMMIT="$(git rev-list --max-parents=0 HEAD)"
62
- fi
63
-
64
- echo "Creating baseline tag: ${BASE_TAG}"
65
- echo "Baseline commit: ${BASE_COMMIT}"
66
-
67
- git tag "$BASE_TAG" "$BASE_COMMIT"
68
-
69
- - name: Run semantic-release
70
- env:
71
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72
- NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
73
- run: yarn semantic-release --repository-url "https://github.com/${{ github.repository }}.git"
1
+ name: Create package
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - main
7
+
8
+ permissions:
9
+ contents: write
10
+ packages: write
11
+ issues: write
12
+ id-token: write
13
+
14
+ jobs:
15
+ release:
16
+ name: Release package
17
+ runs-on: ubuntu-latest
18
+
19
+ steps:
20
+ - name: Checkout repository
21
+ uses: actions/checkout@v6
22
+ with:
23
+ fetch-depth: 0
24
+
25
+ - name: Setup Node.js
26
+ uses: actions/setup-node@v6
27
+ with:
28
+ node-version: 26
29
+ registry-url: "https://registry.npmjs.org"
30
+ scope: "@${{ github.repository_owner }}"
31
+ cache: yarn
32
+
33
+ - name: Install dependencies
34
+ run: yarn install && yarn prepare
35
+
36
+ - name: Bootstrap version tag
37
+ shell: bash
38
+ run: |
39
+ git fetch origin --tags --force
40
+
41
+ if git tag --list 'v*' | grep -q .; then
42
+ echo "Release tag already exists; bootstrap skipped."
43
+ exit 0
44
+ fi
45
+
46
+ PACKAGE_VERSION="$(node -p "require('./package.json').version")"
47
+ BASE_TAG="v${PACKAGE_VERSION}"
48
+
49
+ WORKFLOW_COMMIT="$(
50
+ git log \
51
+ --reverse \
52
+ --format='%H' \
53
+ -- .github/workflows/package.yml |
54
+ head -n 1
55
+ )"
56
+
57
+ if [ -n "$WORKFLOW_COMMIT" ] &&
58
+ git rev-parse "${WORKFLOW_COMMIT}^" >/dev/null 2>&1; then
59
+ BASE_COMMIT="$(git rev-parse "${WORKFLOW_COMMIT}^")"
60
+ else
61
+ BASE_COMMIT="$(git rev-list --max-parents=0 HEAD)"
62
+ fi
63
+
64
+ echo "Creating baseline tag: ${BASE_TAG}"
65
+ echo "Baseline commit: ${BASE_COMMIT}"
66
+
67
+ git tag "$BASE_TAG" "$BASE_COMMIT"
68
+
69
+ - name: Run semantic-release
70
+ env:
71
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
72
+ run: yarn semantic-release --repository-url "https://github.com/${{ github.repository }}.git"
package/.nuxtignore CHANGED
@@ -1,6 +1,6 @@
1
- layouts/foo.vue
2
- layouts/*-ignore.vue
3
- pages/bar.vue
4
- pages/ignore/*.vue
5
- middleware/foo/*.js
1
+ layouts/foo.vue
2
+ layouts/*-ignore.vue
3
+ pages/bar.vue
4
+ pages/ignore/*.vue
5
+ middleware/foo/*.js
6
6
  !middleware/foo/bar.js
package/.releaserc.js CHANGED
@@ -126,6 +126,7 @@ export default {
126
126
  '@semantic-release/github',
127
127
  {
128
128
  assets: ['@myelophone-nuxt.zip'],
129
+ labels: false,
129
130
  },
130
131
  ],
131
132
  ],
package/CHANGELOG.md CHANGED
@@ -1,141 +1,159 @@
1
- ## 📦 Release 0.18.2 (2026-08-30)
2
- ### 🐛 Bug Fixes
3
- - update dependencies
4
-
5
- ## 📦 Release 0.18.1 (2026-08-26)
6
- ### 🐛 Bug Fixes
7
- - update to typescript 7
8
-
9
- ## 📦 Release 0.18.0 (2026-08-25)
10
- ### ✨ Features
11
- - add purge css
12
-
13
- ## 📦 Release 0.17.0 (2026-08-22)
14
- ### ✨ Features
15
- - add query, ssr stream, move config
16
-
17
- ### 🐛 Bug Fixes
18
- - add css early hints
19
-
20
- ## 📦 Release 0.16.0 (2026-08-21)
21
- ### ✨ Features
22
- - add ssr stream and post content
23
-
24
- ## 📦 Release 0.15.0 (2026-08-19)
25
- ### ✨ Features
26
- - add optimizations
27
-
28
- ## 📦 Release 0.14.0 (2026-08-18)
29
- ### ✨ Features
30
- - add site search
31
-
32
- ### 🐛 Bug Fixes
33
- - update dependencies
34
-
35
- ## 📦 Release 0.13.1 (2026-08-17)
36
- ### 🐛 Bug Fixes
37
- - add ipx cache- splitcss to false default
38
-
39
- ## 📦 Release 0.13.0 (2026-08-17)
40
- ### ✨ Features
41
- - add steps component- add tooltip component
42
-
43
- ## 📦 Release 0.12.0 (2026-08-16)
44
- ### ✨ Features
45
- - add person, brand, org micro data
46
-
47
- ## 📦 Release 0.11.0 (2026-08-16)
48
- ### ✨ Features
49
- - add console component
50
-
51
- ## 📦 Release 0.10.0 (2026-08-16)
52
- ### ✨ Features
53
- - add tabs
54
-
55
- ## 📦 Release 0.9.0 (2026-08-16)
56
- ### ✨ Features
57
- - add file upload component
58
-
59
- ## 📦 Release 0.8.0 (2026-08-16)
60
- ### ✨ Features
61
- - add skeleton component
62
-
63
- ## 📦 Release 0.7.0 (2026-08-16)
64
- ### ✨ Features
65
- - add full screen preloader
66
-
67
- ## 📦 Release 0.6.0 (2026-08-16)
68
- ### ✨ Features
69
- - add partial bg component- add sticky header plus content component
70
-
71
- ## 📦 Release 0.5.0 (2026-08-16)
72
- ### ✨ Features
73
- - add ready page functionality
74
- ### 🐛 Bug Fixes
75
- - update dependencies
76
-
77
- ## 📦 Release 0.4.14 (2026-08-15)
78
- ### 🐛 Bug Fixes
79
- - useThemeSync memory overflow
80
- ### 📚 Documentation
81
- - update readme
82
-
83
- ## 📦 Release 0.4.13 (2026-08-15)
84
- ### 🐛 Bug Fixes
85
- - update docs
86
-
87
- ## 📦 Release 0.4.12 (2026-08-14)
88
- ### 🐛 Bug Fixes
89
- - update readme
90
-
91
- ## 📦 Release 0.4.11 (2026-08-14)
92
- ### 🐛 Bug Fixes
93
- - typos in readme
94
-
95
- ## 📦 Release 0.4.10 (2026-08-14)
96
- ### 🐛 Bug Fixes
97
- - added docs
98
-
99
- ## 📦 Release 0.4.9 (2026-08-13)
100
- ### 🐛 Bug Fixes
101
- - re-run github action- update usemultilang
102
-
103
- ## 📦 Release 0.4.8 (2026-08-12)
104
- ### 🐛 Bug Fixes
105
- - postinstall to prepare
106
-
107
- ## 📦 Release 0.4.7 (2026-08-12)
108
- ### 🐛 Bug Fixes
109
- - add dev dependencies
110
-
111
- ## 📦 Release 0.4.6 (2026-08-12)
112
- ### 🐛 Bug Fixes
113
- - move nuxt to dependencies
114
-
115
- ## 📦 Release 0.4.5 (2026-08-12)
116
- ### ⏳ Work in progress
117
- - initial commit
118
- ### 🐛 Bug Fixes
119
- - add public to package publishConfig- remove --no-webstorage- update github action- update github action- update github actions
120
-
121
- ## 📦 Release 0.4.4 (2026-08-12)
122
- ### 🐛 Bug Fixes
123
- - update github action
124
-
125
- ## 📦 Release 0.4.3 (2026-08-12)
126
- ### 🐛 Bug Fixes
127
- - add public to package publishConfig
128
-
129
- ## 📦 Release 0.4.2 (2026-08-12)
130
- ### 🐛 Bug Fixes
131
- - update github actions
132
-
133
- ## 📦 Release 0.4.1 (2026-08-12)
134
- ### ⏳ Work in progress
135
- - initial commit
136
- ### 🐛 Bug Fixes
137
- - remove --no-webstorage
138
-
139
- # @myelophone/nuxt
140
-
141
- Copyright (c) 2026 Aliaksandr Ivanou | PolyForm Noncommercial License 1.0.0
1
+ ## 📦 Release 0.20.0 (2026-09-04)
2
+ ### ✨ Features
3
+ - add ssr stream
4
+
5
+ ### 📚 Documentation
6
+ - update readme
7
+
8
+ ## 📦 Release 0.19.1 (2026-08-30)
9
+ ### 🐛 Bug Fixes
10
+ - update github actions
11
+
12
+ ## 📦 Release 0.19.0 (2026-08-30)
13
+ ### ✨ Features
14
+ - add npm package flow
15
+
16
+ ### 🐛 Bug Fixes
17
+ - update github actions
18
+
19
+ ## 📦 Release 0.18.2 (2026-08-30)
20
+ ### 🐛 Bug Fixes
21
+ - update dependencies
22
+
23
+ ## 📦 Release 0.18.1 (2026-08-26)
24
+ ### 🐛 Bug Fixes
25
+ - update to typescript 7
26
+
27
+ ## 📦 Release 0.18.0 (2026-08-25)
28
+ ### ✨ Features
29
+ - add purge css
30
+
31
+ ## 📦 Release 0.17.0 (2026-08-22)
32
+ ### ✨ Features
33
+ - add query, ssr stream, move config
34
+
35
+ ### 🐛 Bug Fixes
36
+ - add css early hints
37
+
38
+ ## 📦 Release 0.16.0 (2026-08-21)
39
+ ### ✨ Features
40
+ - add ssr stream and post content
41
+
42
+ ## 📦 Release 0.15.0 (2026-08-19)
43
+ ### ✨ Features
44
+ - add optimizations
45
+
46
+ ## 📦 Release 0.14.0 (2026-08-18)
47
+ ### ✨ Features
48
+ - add site search
49
+
50
+ ### 🐛 Bug Fixes
51
+ - update dependencies
52
+
53
+ ## 📦 Release 0.13.1 (2026-08-17)
54
+ ### 🐛 Bug Fixes
55
+ - add ipx cache- splitcss to false default
56
+
57
+ ## 📦 Release 0.13.0 (2026-08-17)
58
+ ### ✨ Features
59
+ - add steps component- add tooltip component
60
+
61
+ ## 📦 Release 0.12.0 (2026-08-16)
62
+ ### ✨ Features
63
+ - add person, brand, org micro data
64
+
65
+ ## 📦 Release 0.11.0 (2026-08-16)
66
+ ### ✨ Features
67
+ - add console component
68
+
69
+ ## 📦 Release 0.10.0 (2026-08-16)
70
+ ### ✨ Features
71
+ - add tabs
72
+
73
+ ## 📦 Release 0.9.0 (2026-08-16)
74
+ ### ✨ Features
75
+ - add file upload component
76
+
77
+ ## 📦 Release 0.8.0 (2026-08-16)
78
+ ### ✨ Features
79
+ - add skeleton component
80
+
81
+ ## 📦 Release 0.7.0 (2026-08-16)
82
+ ### ✨ Features
83
+ - add full screen preloader
84
+
85
+ ## 📦 Release 0.6.0 (2026-08-16)
86
+ ### ✨ Features
87
+ - add partial bg component- add sticky header plus content component
88
+
89
+ ## 📦 Release 0.5.0 (2026-08-16)
90
+ ### ✨ Features
91
+ - add ready page functionality
92
+ ### 🐛 Bug Fixes
93
+ - update dependencies
94
+
95
+ ## 📦 Release 0.4.14 (2026-08-15)
96
+ ### 🐛 Bug Fixes
97
+ - useThemeSync memory overflow
98
+ ### 📚 Documentation
99
+ - update readme
100
+
101
+ ## 📦 Release 0.4.13 (2026-08-15)
102
+ ### 🐛 Bug Fixes
103
+ - update docs
104
+
105
+ ## 📦 Release 0.4.12 (2026-08-14)
106
+ ### 🐛 Bug Fixes
107
+ - update readme
108
+
109
+ ## 📦 Release 0.4.11 (2026-08-14)
110
+ ### 🐛 Bug Fixes
111
+ - typos in readme
112
+
113
+ ## 📦 Release 0.4.10 (2026-08-14)
114
+ ### 🐛 Bug Fixes
115
+ - added docs
116
+
117
+ ## 📦 Release 0.4.9 (2026-08-13)
118
+ ### 🐛 Bug Fixes
119
+ - re-run github action- update usemultilang
120
+
121
+ ## 📦 Release 0.4.8 (2026-08-12)
122
+ ### 🐛 Bug Fixes
123
+ - postinstall to prepare
124
+
125
+ ## 📦 Release 0.4.7 (2026-08-12)
126
+ ### 🐛 Bug Fixes
127
+ - add dev dependencies
128
+
129
+ ## 📦 Release 0.4.6 (2026-08-12)
130
+ ### 🐛 Bug Fixes
131
+ - move nuxt to dependencies
132
+
133
+ ## 📦 Release 0.4.5 (2026-08-12)
134
+ ### ⏳ Work in progress
135
+ - initial commit
136
+ ### 🐛 Bug Fixes
137
+ - add public to package publishConfig- remove --no-webstorage- update github action- update github action- update github actions
138
+
139
+ ## 📦 Release 0.4.4 (2026-08-12)
140
+ ### 🐛 Bug Fixes
141
+ - update github action
142
+
143
+ ## 📦 Release 0.4.3 (2026-08-12)
144
+ ### 🐛 Bug Fixes
145
+ - add public to package publishConfig
146
+
147
+ ## 📦 Release 0.4.2 (2026-08-12)
148
+ ### 🐛 Bug Fixes
149
+ - update github actions
150
+
151
+ ## 📦 Release 0.4.1 (2026-08-12)
152
+ ### ⏳ Work in progress
153
+ - initial commit
154
+ ### 🐛 Bug Fixes
155
+ - remove --no-webstorage
156
+
157
+ # @myelophone/nuxt
158
+
159
+ Copyright (c) 2026 Aliaksandr Ivanou | PolyForm Noncommercial License 1.0.0