@koehler8/cms 1.0.0-beta.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.
Files changed (86) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +212 -0
  3. package/bin/cms-generate-public-assets.js +27 -0
  4. package/bin/cms-validate-extensions.js +18 -0
  5. package/bin/cms-validate-themes.js +7 -0
  6. package/extensions/manifest.schema.json +125 -0
  7. package/package.json +88 -0
  8. package/public/img/preloaders/preloader-black.svg +1 -0
  9. package/public/img/preloaders/preloader-white.svg +1 -0
  10. package/public/robots.txt +5 -0
  11. package/scripts/check-overflow.mjs +33 -0
  12. package/scripts/generate-public-assets.js +412 -0
  13. package/scripts/migrate-to-content-dirs.mjs +223 -0
  14. package/scripts/patch-lru-cache-tla.js +164 -0
  15. package/scripts/validate-extensions.mjs +392 -0
  16. package/scripts/validate-themes.mjs +64 -0
  17. package/src/App.vue +3 -0
  18. package/src/components/About.vue +481 -0
  19. package/src/components/AboutValue.vue +361 -0
  20. package/src/components/BackToTop.vue +42 -0
  21. package/src/components/ComingSoon.vue +411 -0
  22. package/src/components/ComingSoonModal.vue +230 -0
  23. package/src/components/Contact.vue +518 -0
  24. package/src/components/Footer.vue +65 -0
  25. package/src/components/FooterMinimal.vue +153 -0
  26. package/src/components/Header.vue +583 -0
  27. package/src/components/Hero.vue +327 -0
  28. package/src/components/Home.vue +161 -0
  29. package/src/components/Intro.vue +130 -0
  30. package/src/components/IntroGate.vue +444 -0
  31. package/src/components/Plan.vue +116 -0
  32. package/src/components/Portfolio.vue +459 -0
  33. package/src/components/Preloader.vue +20 -0
  34. package/src/components/Principles.vue +67 -0
  35. package/src/components/Spacer15.vue +9 -0
  36. package/src/components/Spacer30.vue +9 -0
  37. package/src/components/Spacer40.vue +9 -0
  38. package/src/components/Spacer60.vue +9 -0
  39. package/src/components/StickyCTA.vue +263 -0
  40. package/src/components/Team.vue +432 -0
  41. package/src/components/icons/IconLinkedIn.vue +22 -0
  42. package/src/components/icons/IconX.vue +22 -0
  43. package/src/components/ui/SbCard.vue +52 -0
  44. package/src/components/ui/SkeletonPulse.vue +117 -0
  45. package/src/components/ui/UnitChip.vue +69 -0
  46. package/src/composables/useComingSoonConfig.js +120 -0
  47. package/src/composables/useComingSoonInterstitial.js +27 -0
  48. package/src/composables/useComponentResolver.js +235 -0
  49. package/src/composables/useEngagementTracking.js +187 -0
  50. package/src/composables/useIntroGate.js +46 -0
  51. package/src/composables/useLazyImage.js +77 -0
  52. package/src/composables/usePageConfig.js +184 -0
  53. package/src/composables/usePageMeta.js +76 -0
  54. package/src/composables/usePromoBackgroundStyles.js +67 -0
  55. package/src/constants/locales.js +20 -0
  56. package/src/extensions/extensionLoader.js +512 -0
  57. package/src/main.js +187 -0
  58. package/src/router/index.js +112 -0
  59. package/src/styles/base.css +896 -0
  60. package/src/styles/layout.css +342 -0
  61. package/src/styles/theme-base.css +84 -0
  62. package/src/themes/buildCssVarMap.js +246 -0
  63. package/src/themes/themeLoader.js +156 -0
  64. package/src/themes/themeManager.js +34 -0
  65. package/src/themes/themeValidator.js +380 -0
  66. package/src/utils/analytics.js +100 -0
  67. package/src/utils/appInfo.js +9 -0
  68. package/src/utils/assetResolver.js +162 -0
  69. package/src/utils/componentRegistry.js +146 -0
  70. package/src/utils/contentRequirements.js +67 -0
  71. package/src/utils/cookieConsent.js +281 -0
  72. package/src/utils/ctaCopy.js +58 -0
  73. package/src/utils/formatNumber.js +115 -0
  74. package/src/utils/imageSources.js +179 -0
  75. package/src/utils/inflateFlatConfig.js +30 -0
  76. package/src/utils/loadConfig.js +319 -0
  77. package/src/utils/semver.js +49 -0
  78. package/src/utils/siteStyles.js +40 -0
  79. package/src/utils/themeColors.js +65 -0
  80. package/src/utils/trackingContext.js +142 -0
  81. package/src/utils/unwrapDefault.js +14 -0
  82. package/src/utils/useScrollReveal.js +48 -0
  83. package/templates/index.html +36 -0
  84. package/themes/base/README.md +23 -0
  85. package/themes/base/theme.config.js +214 -0
  86. package/vite-plugin.js +726 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Chris Koehler
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,212 @@
1
+ # Vertex CMS
2
+
3
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
4
+ [![GitHub Packages](https://img.shields.io/badge/npm-GitHub%20Packages-brightgreen)](https://github.com/koehler8/cms/packages)
5
+
6
+ Vertex CMS is a lightweight, config-driven Vue 3 framework with theming, extensions, and SSG support.
7
+
8
+ ## Quick Start
9
+
10
+ ### 1. Create a site repo
11
+
12
+ ```
13
+ my-site/
14
+ site/
15
+ config/
16
+ site.json # Site metadata and settings
17
+ shared.json # Shared content blocks
18
+ pages/
19
+ home.json # Per-page content
20
+ assets/ # Images and media
21
+ style.css # Site-specific overrides (optional)
22
+ .env
23
+ package.json
24
+ vite.config.js
25
+ ```
26
+
27
+ ### 2. Install
28
+
29
+ Configure npm to use GitHub Packages for the `@koehler8` scope:
30
+
31
+ ```
32
+ @koehler8:registry=https://npm.pkg.github.com
33
+ ```
34
+
35
+ Then install:
36
+
37
+ ```bash
38
+ npm install @koehler8/cms vue vue-router vite vite-ssg @vitejs/plugin-vue
39
+ ```
40
+
41
+ ### 3. Configure Vite
42
+
43
+ ```js
44
+ // vite.config.js
45
+ import cmsPlugin from '@koehler8/cms/vite';
46
+
47
+ export default {
48
+ plugins: [
49
+ cmsPlugin({
50
+ siteDir: './site',
51
+ themes: ['@koehler8/cms-theme-neon'],
52
+ extensions: ['@koehler8/cms-ext-compliance'],
53
+ }),
54
+ ],
55
+ };
56
+ ```
57
+
58
+ ### 4. Run
59
+
60
+ ```bash
61
+ npm run dev # Development server
62
+ npm run build # Production build
63
+ vite-ssg build # Static site generation
64
+ ```
65
+
66
+ ## Plugin Options
67
+
68
+ | Option | Default | Description |
69
+ |--------|---------|-------------|
70
+ | `siteDir` | `'./site'` | Path to site content directory |
71
+ | `frameworkRoot` | (auto) | Path to `@koehler8/cms` package root |
72
+ | `locales` | all 15 supported | Array of locale codes to enable |
73
+ | `themes` | `[]` | Theme package names to register |
74
+ | `extensions` | `[]` | Extension package names to register |
75
+
76
+ ## Site Configuration
77
+
78
+ Site content lives in `site/content/`, organized by locale:
79
+
80
+ ```
81
+ site/content/
82
+ content.config.json # { "baseLocale": "en" }
83
+ en/
84
+ site.json # Site metadata (flat dot-notation keys, sorted)
85
+ shared.json # Shared content (header, footer, socials)
86
+ pages/
87
+ home.json # Per-page content
88
+ privacy.json
89
+ de/
90
+ site.json # German overrides (only translated keys)
91
+ shared.json
92
+ pages/
93
+ home.json
94
+ ```
95
+
96
+ All files use flat dot-notation keys in alphabetical order. The base locale (specified in `content.config.json`) is loaded first; other locale directories override only the keys they specify. Missing keys fall back to the base locale value.
97
+
98
+ **Supported locales:** en, fr, es, de, ja, ko, pt, ru, tr, vi, id, zh, th, hi, fil
99
+
100
+ ## Themes
101
+
102
+ Themes export a manifest with design tokens (palette, typography, surfaces, CTAs, etc.) that are applied as CSS variables at runtime.
103
+
104
+ - Set the `theme` key in `content/{baseLocale}/site.json` to a theme slug
105
+ - Omit it to use the built-in `base` theme
106
+ - External themes are npm packages registered via the `themes` plugin option
107
+
108
+ See `themes/base/theme.config.js` for the full token structure.
109
+
110
+ ## Extensions
111
+
112
+ Extensions are npm packages that provide additional components, content defaults, and setup hooks.
113
+
114
+ Each extension has an `extension.config.json` manifest defining:
115
+
116
+ - **components** -- Vue components with metadata (name, configKey, allowedPages, requiredContent)
117
+ - **entry / setup** -- Optional initialization hooks
118
+ - **assets** -- CSS and static file references
119
+ - **dependencies** -- Required npm packages
120
+
121
+ Validate extension manifests with:
122
+
123
+ ```bash
124
+ npx cms-validate-extensions --site-dir ./site
125
+ ```
126
+
127
+ ## Built-in Components
128
+
129
+ | Component | Description |
130
+ |-----------|-------------|
131
+ | `Header` | Site header with navigation |
132
+ | `Footer` / `FooterMinimal` | Full and minimal footer variants |
133
+ | `Hero` | Hero banner section |
134
+ | `About` / `AboutValue` | About and value proposition sections |
135
+ | `Contact` | Contact form (Google Forms backend) |
136
+ | `Team` | Team member grid |
137
+ | `Portfolio` | Portfolio showcase |
138
+ | `Plan` | Pricing/plan comparison |
139
+ | `Principles` | Principles/values section |
140
+ | `Intro` / `IntroGate` | Intro modal and gate |
141
+ | `ComingSoon` / `ComingSoonModal` | Coming soon page and modal |
142
+ | `StickyCTA` | Sticky call-to-action bar |
143
+ | `BackToTop` | Scroll-to-top button |
144
+ | `Preloader` | Page loading indicator |
145
+ | `Spacer15/30/40/60` | Vertical spacing utilities |
146
+
147
+ ### UI Components
148
+
149
+ - `SbCard` -- Card component
150
+ - `SkeletonPulse` -- Loading skeleton
151
+ - `UnitChip` -- Unit/badge chip
152
+
153
+ ## Composables
154
+
155
+ | Composable | Description |
156
+ |------------|-------------|
157
+ | `usePageConfig` | Load and cache page configuration |
158
+ | `useComponentResolver` | Resolve and validate component definitions |
159
+ | `usePageMeta` | Apply head/meta tags via @unhead |
160
+ | `useEngagementTracking` | Scroll depth and engagement analytics |
161
+ | `useIntroGate` | Intro modal state management |
162
+ | `useComingSoonConfig` | Coming-soon page configuration |
163
+ | `useLazyImage` | Lazy image loading with IntersectionObserver |
164
+ | `usePromoBackgroundStyles` | Promo section background styling |
165
+
166
+ ## Testing
167
+
168
+ The framework uses [Vitest](https://vitest.dev/) with happy-dom for unit testing.
169
+
170
+ ```bash
171
+ npm test # Run all tests
172
+ npm run test:watch # Watch mode
173
+ npm run test:coverage # Coverage report
174
+ ```
175
+
176
+ Tests live in `tests/` mirroring the source structure (`tests/utils/`, `tests/composables/`, `tests/themes/`, etc.). See `vitest.config.js` for configuration.
177
+
178
+ ## CLI Commands
179
+
180
+ ```bash
181
+ # Generate favicon.ico, logo.png, og-image.jpg from source assets
182
+ npx cms-generate-public-assets --site-dir ./site
183
+
184
+ # Validate theme manifests
185
+ npx cms-validate-themes
186
+
187
+ # Validate extension manifests
188
+ npx cms-validate-extensions --site-dir ./site
189
+ ```
190
+
191
+ ## Exports
192
+
193
+ ```js
194
+ import cmsPlugin from '@koehler8/cms/vite'; // Vite plugin
195
+ import { createCmsApp } from '@koehler8/cms/app'; // App factory
196
+ import { loadConfigData } from '@koehler8/cms/utils/loadConfig';
197
+ import { resolveAsset, resolveMedia } from '@koehler8/cms/utils/assetResolver';
198
+ import { useResponsiveImage } from '@koehler8/cms/utils/imageSources';
199
+ // ... and all other utils/*, composables/*, components/*, etc.
200
+ ```
201
+
202
+ ## Environment Variables
203
+
204
+ | Variable | Used By | Description |
205
+ |----------|---------|-------------|
206
+ | `VITE_SHOW_COOKIE_BANNER` | cookieConsent | Enable cookie consent banner |
207
+ | `CMS_SITE_DIR` | generate-public-assets | Site directory path (build scripts) |
208
+ | `FAVICON_BG` / `FAVICON_FG` | generate-public-assets | Favicon background/foreground colors |
209
+
210
+ ## License
211
+
212
+ MIT
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env node
2
+ // Wrapper that runs the framework's generate-public-assets.js from the
3
+ // consuming site repo's CWD. Accepts --site-dir <path> to locate site assets;
4
+ // defaults to ./site.
5
+
6
+ import path from 'node:path';
7
+ import { fileURLToPath, pathToFileURL } from 'node:url';
8
+
9
+ const __filename = fileURLToPath(import.meta.url);
10
+ const __dirname = path.dirname(__filename);
11
+
12
+ // Parse --site-dir arg
13
+ const args = process.argv.slice(2);
14
+ let siteDir = './site';
15
+ for (let i = 0; i < args.length; i++) {
16
+ if (args[i] === '--site-dir' && args[i + 1]) {
17
+ siteDir = args[i + 1];
18
+ i++;
19
+ }
20
+ }
21
+
22
+ // Expose for the underlying script via env var
23
+ process.env.CMS_SITE_DIR = path.resolve(process.cwd(), siteDir);
24
+
25
+ // Resolve and import the actual script (it runs on import)
26
+ const scriptPath = path.resolve(__dirname, '..', 'scripts', 'generate-public-assets.js');
27
+ await import(pathToFileURL(scriptPath).href);
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env node
2
+ import path from 'node:path';
3
+ import { fileURLToPath, pathToFileURL } from 'node:url';
4
+
5
+ const args = process.argv.slice(2);
6
+ let siteDir = './site';
7
+ for (let i = 0; i < args.length; i++) {
8
+ if (args[i] === '--site-dir' && args[i + 1]) {
9
+ siteDir = args[i + 1];
10
+ i++;
11
+ }
12
+ }
13
+
14
+ process.env.CMS_SITE_DIR = path.resolve(process.cwd(), siteDir);
15
+
16
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
17
+ const scriptPath = path.resolve(__dirname, '..', 'scripts', 'validate-extensions.mjs');
18
+ await import(pathToFileURL(scriptPath).href);
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import path from 'node:path';
3
+ import { fileURLToPath, pathToFileURL } from 'node:url';
4
+
5
+ const __dirname = path.dirname(fileURLToPath(import.meta.url));
6
+ const scriptPath = path.resolve(__dirname, '..', 'scripts', 'validate-themes.mjs');
7
+ await import(pathToFileURL(scriptPath).href);
@@ -0,0 +1,125 @@
1
+ {
2
+ "$id": "https://raw.githubusercontent.com/koehler8/cms/main/extensions/manifest.schema.json",
3
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
4
+ "title": "Component Extension Manifest",
5
+ "type": "object",
6
+ "additionalProperties": false,
7
+ "required": ["slug", "version", "provider", "license", "components"],
8
+ "properties": {
9
+ "$schema": {
10
+ "type": "string"
11
+ },
12
+ "slug": {
13
+ "type": "string",
14
+ "pattern": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
15
+ },
16
+ "version": {
17
+ "type": "string",
18
+ "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[A-Za-z0-9.-]+)?$"
19
+ },
20
+ "provider": {
21
+ "type": "object",
22
+ "required": ["name"],
23
+ "additionalProperties": false,
24
+ "properties": {
25
+ "name": { "type": "string", "minLength": 1 },
26
+ "url": { "type": "string", "format": "uri" },
27
+ "contact": { "type": "string" }
28
+ }
29
+ },
30
+ "entry": {
31
+ "type": "string",
32
+ "pattern": "^\\./"
33
+ },
34
+ "setup": {
35
+ "type": "string",
36
+ "pattern": "^\\./"
37
+ },
38
+ "license": {
39
+ "type": "string",
40
+ "minLength": 3
41
+ },
42
+ "components": {
43
+ "type": "array",
44
+ "minItems": 1,
45
+ "items": {
46
+ "type": "object",
47
+ "additionalProperties": false,
48
+ "required": ["name", "label", "description", "configKey"],
49
+ "properties": {
50
+ "name": {
51
+ "type": "string",
52
+ "pattern": "^[A-Z][A-Za-z0-9]+$"
53
+ },
54
+ "module": {
55
+ "type": "string",
56
+ "pattern": "^\\./.*$"
57
+ },
58
+ "label": { "type": "string", "minLength": 1 },
59
+ "description": { "type": "string", "minLength": 1 },
60
+ "configKey": {
61
+ "type": "string",
62
+ "pattern": "^[a-z][A-Za-z0-9]*$"
63
+ },
64
+ "propsInterface": {
65
+ "type": "string",
66
+ "pattern": "^\\./"
67
+ },
68
+ "slots": {
69
+ "type": "array",
70
+ "items": { "type": "string", "pattern": "^[A-Za-z0-9_-]+$" },
71
+ "uniqueItems": true
72
+ },
73
+ "events": {
74
+ "type": "array",
75
+ "items": { "type": "string", "pattern": "^[a-z][a-z0-9-]*$" },
76
+ "uniqueItems": true
77
+ },
78
+ "requiredContent": {
79
+ "type": "array",
80
+ "items": { "type": "string", "minLength": 1 },
81
+ "uniqueItems": true
82
+ },
83
+ "allowedPages": {
84
+ "type": "array",
85
+ "items": { "type": "string", "pattern": "^[a-z0-9_-]+$" },
86
+ "uniqueItems": true
87
+ },
88
+ "minAppVersion": {
89
+ "type": "string",
90
+ "pattern": "^\\d+\\.\\d+\\.\\d+(?:-[A-Za-z0-9.-]+)?$"
91
+ }
92
+ }
93
+ }
94
+ },
95
+ "assets": {
96
+ "type": "object",
97
+ "additionalProperties": false,
98
+ "properties": {
99
+ "styles": {
100
+ "type": "array",
101
+ "items": { "type": "string", "pattern": "^\\./" },
102
+ "uniqueItems": true
103
+ },
104
+ "static": {
105
+ "type": "array",
106
+ "items": { "type": "string", "pattern": "^\\./" },
107
+ "uniqueItems": true
108
+ }
109
+ }
110
+ },
111
+ "dependencies": {
112
+ "type": "object",
113
+ "additionalProperties": false,
114
+ "properties": {
115
+ "npm": {
116
+ "type": "object",
117
+ "propertyNames": {
118
+ "pattern": "^[a-z0-9@][a-z0-9@/_-]*$"
119
+ },
120
+ "additionalProperties": { "type": "string", "minLength": 1 }
121
+ }
122
+ }
123
+ }
124
+ }
125
+ }
package/package.json ADDED
@@ -0,0 +1,88 @@
1
+ {
2
+ "name": "@koehler8/cms",
3
+ "version": "1.0.0-beta.10",
4
+ "description": "Vertex CMS — lightweight, config-driven Vue 3 framework with theming, extensions, and SSG support",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/koehler8/cms.git"
10
+ },
11
+ "author": "Chris Koehler",
12
+ "homepage": "https://github.com/koehler8/cms#readme",
13
+ "bugs": {
14
+ "url": "https://github.com/koehler8/cms/issues"
15
+ },
16
+ "keywords": ["vue", "cms", "vite", "ssg", "theming", "extensions", "config-driven"],
17
+ "scripts": {
18
+ "postinstall": "node scripts/patch-lru-cache-tla.js",
19
+ "test": "vitest run",
20
+ "test:watch": "vitest",
21
+ "test:coverage": "vitest run --coverage"
22
+ },
23
+ "exports": {
24
+ "./vite": "./vite-plugin.js",
25
+ "./app": "./src/main.js",
26
+ "./utils/loadConfig": "./src/utils/loadConfig.js",
27
+ "./utils/siteStyles": "./src/utils/siteStyles.js",
28
+ "./utils/assetResolver": "./src/utils/assetResolver.js",
29
+ "./utils/*.js": "./src/utils/*.js",
30
+ "./utils/*": "./src/utils/*.js",
31
+ "./composables/*.js": "./src/composables/*.js",
32
+ "./composables/*": "./src/composables/*.js",
33
+ "./components/*.vue": "./src/components/*.vue",
34
+ "./components/*.js": "./src/components/*.js",
35
+ "./components/*": "./src/components/*",
36
+ "./router": "./src/router/index.js",
37
+ "./themes/*.js": "./src/themes/*.js",
38
+ "./themes/*": "./src/themes/*.js",
39
+ "./extensions/*.js": "./src/extensions/*.js",
40
+ "./extensions/*": "./src/extensions/*.js",
41
+ "./constants/*.js": "./src/constants/*.js",
42
+ "./constants/*": "./src/constants/*.js",
43
+ "./plugins/*.js": "./src/plugins/*.js",
44
+ "./plugins/*": "./src/plugins/*.js",
45
+ "./package.json": "./package.json"
46
+ },
47
+ "bin": {
48
+ "cms-generate-public-assets": "./bin/cms-generate-public-assets.js",
49
+ "cms-validate-themes": "./bin/cms-validate-themes.js",
50
+ "cms-validate-extensions": "./bin/cms-validate-extensions.js"
51
+ },
52
+ "files": [
53
+ "src",
54
+ "extensions",
55
+ "themes",
56
+ "scripts",
57
+ "public",
58
+ "templates",
59
+ "bin",
60
+ "vite-plugin.js",
61
+ "README.md"
62
+ ],
63
+ "peerDependencies": {
64
+ "@vitejs/plugin-vue": "^6.0.0",
65
+ "vite": "^8.0.0",
66
+ "vite-ssg": "^28.0.0",
67
+ "vue": "^3.5.0",
68
+ "vue-router": "^5.0.0"
69
+ },
70
+ "dependencies": {
71
+ "@unhead/vue": "^2.0.19",
72
+ "ajv": "^8.17.1",
73
+ "ajv-formats": "^3.0.1",
74
+ "canvas": "^3.2.0",
75
+ "dotenv": "^17.2.3",
76
+ "pinia": "^3.0.1",
77
+ "png-to-ico": "^3.0.1"
78
+ },
79
+ "devDependencies": {
80
+ "@vue/test-utils": "^2.4.6",
81
+ "happy-dom": "^20.8.9",
82
+ "vitest": "^4.1.4"
83
+ },
84
+ "engines": {
85
+ "node": ">=20.19.0",
86
+ "npm": "^10.8.0"
87
+ }
88
+ }
@@ -0,0 +1 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" width="34px" height="34px" viewBox="0 0 128 128" xml:space="preserve"><g><path d="M75.4 126.63a11.43 11.43 0 0 1-2.1-22.65 40.9 40.9 0 0 0 30.5-30.6 11.4 11.4 0 1 1 22.27 4.87h.02a63.77 63.77 0 0 1-47.8 48.05v-.02a11.38 11.38 0 0 1-2.93.37z" fill="#000000" fill-opacity="1"/><animateTransform attributeName="transform" type="rotate" from="0 64 64" to="360 64 64" dur="800ms" repeatCount="indefinite"></animateTransform></g></svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" width="34px" height="34px" viewBox="0 0 128 128" xml:space="preserve"><g><path d="M75.4 126.63a11.43 11.43 0 0 1-2.1-22.65 40.9 40.9 0 0 0 30.5-30.6 11.4 11.4 0 1 1 22.27 4.87h.02a63.77 63.77 0 0 1-47.8 48.05v-.02a11.38 11.38 0 0 1-2.93.37z" fill="#ffffff" fill-opacity="1"/><animateTransform attributeName="transform" type="rotate" from="0 64 64" to="360 64 64" dur="800ms" repeatCount="indefinite"></animateTransform></g></svg>
@@ -0,0 +1,5 @@
1
+ User-agent: *
2
+ Disallow: /admin
3
+ Disallow: /privacy
4
+ Disallow: /terms
5
+ Disallow: /cookies
@@ -0,0 +1,33 @@
1
+ import { chromium } from 'playwright';
2
+ import path from 'node:path';
3
+ import { fileURLToPath } from 'node:url';
4
+
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = path.dirname(__filename);
7
+ const distIndex = path.resolve(__dirname, '../dist/index.html');
8
+
9
+ const browser = await chromium.launch();
10
+ const page = await browser.newPage({ viewport: { width: 412, height: 915 } });
11
+ await page.goto(`file://${distIndex}`);
12
+ await page.waitForTimeout(2000);
13
+ const result = await page.evaluate(() => ({
14
+ scrollWidth: document.documentElement.scrollWidth,
15
+ clientWidth: document.documentElement.clientWidth,
16
+ bodyScrollWidth: document.body.scrollWidth,
17
+ bodyClientWidth: document.body.clientWidth,
18
+ overflowElements: Array.from(document.querySelectorAll('*')).map(el => {
19
+ const rect = el.getBoundingClientRect();
20
+ const docWidth = document.documentElement.clientWidth;
21
+ const overflowX = rect.right > docWidth + 1;
22
+ return overflowX ? {
23
+ tag: el.tagName.toLowerCase(),
24
+ classes: el.className,
25
+ rectRight: rect.right,
26
+ rectLeft: rect.left,
27
+ width: rect.width,
28
+ text: el.textContent?.trim().slice(0, 120)
29
+ } : null;
30
+ }).filter(Boolean)
31
+ }));
32
+ console.log(JSON.stringify(result, null, 2));
33
+ await browser.close();