@bookklik/senangstart-css 0.1.2 → 0.1.3
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/.github/workflows/deploy-docs.yml +1 -1
- package/LICENSE.md +21 -0
- package/README.md +17 -189
- package/dist/senangstart-css.js +2 -2
- package/docs/.vitepress/dist/404.html +2 -2
- package/docs/.vitepress/dist/assets/{app.BTYj1wZj.js → app.CwVZm472.js} +1 -1
- package/docs/.vitepress/dist/assets/chunks/@localSearchIndexroot.BTWwOmXN.js +1 -0
- package/docs/.vitepress/dist/assets/chunks/{VPLocalSearchBox.jxQ0k_uL.js → VPLocalSearchBox.B-RMQ_ux.js} +1 -1
- package/docs/.vitepress/dist/assets/chunks/{theme.B9Wtbwgj.js → theme.B37_rtT6.js} +2 -2
- package/docs/.vitepress/dist/assets/{examples_index.md.CcyXbirn.js → examples_index.md.Dj7lqhZt.js} +1 -1
- package/docs/.vitepress/dist/assets/{guide_cdn.md.CANCjnm5.js → guide_cdn.md.BzsOep2E.js} +2 -2
- package/docs/.vitepress/dist/assets/{guide_getting-started.md.tO7bvmZd.js → guide_getting-started.md.to1dkMR9.js} +4 -4
- package/docs/.vitepress/dist/assets/{guide_getting-started.md.tO7bvmZd.lean.js → guide_getting-started.md.to1dkMR9.lean.js} +1 -1
- package/docs/.vitepress/dist/assets/reference_colors.md.o5ltImYJ.js +17 -0
- package/docs/.vitepress/dist/assets/reference_colors.md.o5ltImYJ.lean.js +1 -0
- package/docs/.vitepress/dist/examples/cards.html +4 -4
- package/docs/.vitepress/dist/examples/forms.html +4 -4
- package/docs/.vitepress/dist/examples/hero.html +4 -4
- package/docs/.vitepress/dist/examples/index.html +6 -6
- package/docs/.vitepress/dist/examples/navigation.html +4 -4
- package/docs/.vitepress/dist/guide/cdn.html +7 -7
- package/docs/.vitepress/dist/guide/cli.html +4 -4
- package/docs/.vitepress/dist/guide/configuration.html +4 -4
- package/docs/.vitepress/dist/guide/getting-started.html +7 -7
- package/docs/.vitepress/dist/guide/index.html +4 -4
- package/docs/.vitepress/dist/guide/natural-scale.html +4 -4
- package/docs/.vitepress/dist/guide/philosophy.html +4 -4
- package/docs/.vitepress/dist/guide/responsive.html +4 -4
- package/docs/.vitepress/dist/guide/states.html +4 -4
- package/docs/.vitepress/dist/guide/tri-attribute.html +4 -4
- package/docs/.vitepress/dist/hashmap.json +1 -1
- package/docs/.vitepress/dist/index.html +4 -4
- package/docs/.vitepress/dist/reference/breakpoints.html +4 -4
- package/docs/.vitepress/dist/reference/colors.html +11 -23
- package/docs/.vitepress/dist/reference/layout.html +4 -4
- package/docs/.vitepress/dist/reference/space.html +4 -4
- package/docs/.vitepress/dist/reference/spacing.html +4 -4
- package/docs/.vitepress/dist/reference/visual.html +4 -4
- package/docs/examples/index.md +1 -1
- package/docs/guide/cdn.md +2 -2
- package/docs/guide/getting-started.md +2 -2
- package/docs/reference/colors.md +52 -32
- package/package.json +1 -1
- package/src/cdn/jit.js +2 -2
- package/src/config/defaults.js +291 -2
- package/docs/.vitepress/dist/assets/chunks/@localSearchIndexroot.DmMP4oUp.js +0 -1
- package/docs/.vitepress/dist/assets/reference_colors.md.Do4abjs1.js +0 -29
- package/docs/.vitepress/dist/assets/reference_colors.md.Do4abjs1.lean.js +0 -1
- /package/docs/.vitepress/dist/assets/{examples_index.md.CcyXbirn.lean.js → examples_index.md.Dj7lqhZt.lean.js} +0 -0
- /package/docs/.vitepress/dist/assets/{guide_cdn.md.CANCjnm5.lean.js → guide_cdn.md.BzsOep2E.lean.js} +0 -0
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Bookklik Technologies
|
|
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
CHANGED
|
@@ -1,209 +1,37 @@
|
|
|
1
1
|
# SenangStart CSS
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A utility-first CSS framework that replaces abstract naming conventions with Natural Adjectives.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[](LICENSE.md)
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
## Quick Start
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
### CDN (Zero Build)
|
|
10
10
|
|
|
11
11
|
```html
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
visual="bg:primary text:white rounded:big"
|
|
22
|
-
>
|
|
23
|
-
Hello SenangStart!
|
|
24
|
-
</div>
|
|
25
|
-
</body>
|
|
26
|
-
</html>
|
|
12
|
+
<script src="https://unpkg.com/@bookklik/senangstart-css/dist/senangstart-css.min.js"></script>
|
|
13
|
+
|
|
14
|
+
<div
|
|
15
|
+
layout="flex col center"
|
|
16
|
+
space="p:big"
|
|
17
|
+
visual="bg:primary text:white rounded:big"
|
|
18
|
+
>
|
|
19
|
+
Hello SenangStart!
|
|
20
|
+
</div>
|
|
27
21
|
```
|
|
28
22
|
|
|
29
|
-
|
|
23
|
+
### CLI
|
|
30
24
|
|
|
31
25
|
```bash
|
|
32
|
-
# Install
|
|
33
26
|
npm i @bookklik/senangstart-css
|
|
34
|
-
|
|
35
|
-
# Initialize config
|
|
36
27
|
senangstart init
|
|
37
|
-
|
|
38
|
-
# Start development
|
|
39
28
|
senangstart dev
|
|
40
29
|
```
|
|
41
30
|
|
|
42
|
-
##
|
|
43
|
-
|
|
44
|
-
SenangStart uses **three attributes** to separate concerns:
|
|
45
|
-
|
|
46
|
-
| Attribute | Purpose | Example |
|
|
47
|
-
|-----------|---------|---------|
|
|
48
|
-
| `layout` | Structure & position | `layout="flex col center"` |
|
|
49
|
-
| `space` | Sizing & spacing | `space="p:medium g:small"` |
|
|
50
|
-
| `visual` | Colors & appearance | `visual="bg:white rounded:big"` |
|
|
51
|
-
|
|
52
|
-
## The Natural Spacing Scale
|
|
53
|
-
|
|
54
|
-
| Keyword | Size | Mental Model |
|
|
55
|
-
|---------|------|--------------|
|
|
56
|
-
| `none` | 0px | No space |
|
|
57
|
-
| `tiny` | 4px | 🪨 Pebble — Borders, offsets |
|
|
58
|
-
| `small` | 8px | 📦 Matchbox — Group related items |
|
|
59
|
-
| `medium` | 16px | 📱 Smartphone — Standard default |
|
|
60
|
-
| `big` | 32px | 💻 Laptop — Separate sections |
|
|
61
|
-
| `giant` | 64px | 🚪 Door — Layout divisions |
|
|
62
|
-
| `vast` | 128px | 🏠 House — Hero sections |
|
|
63
|
-
|
|
64
|
-
## Layout Attribute
|
|
65
|
-
|
|
66
|
-
```html
|
|
67
|
-
<!-- Flexbox -->
|
|
68
|
-
<div layout="flex row center">...</div>
|
|
69
|
-
<div layout="flex col between">...</div>
|
|
70
|
-
|
|
71
|
-
<!-- Grid -->
|
|
72
|
-
<div layout="grid">...</div>
|
|
73
|
-
|
|
74
|
-
<!-- Position -->
|
|
75
|
-
<nav layout="fixed z:top">...</nav>
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
### Keywords
|
|
79
|
-
|
|
80
|
-
- **Display:** `flex`, `grid`, `block`, `hidden`
|
|
81
|
-
- **Direction:** `row`, `col`, `row-reverse`, `col-reverse`
|
|
82
|
-
- **Alignment:** `center`, `between`, `start`, `end`
|
|
83
|
-
- **Position:** `absolute`, `relative`, `fixed`, `sticky`
|
|
84
|
-
- **Z-Index:** `z:base`, `z:low`, `z:mid`, `z:high`, `z:top`
|
|
85
|
-
|
|
86
|
-
## Space Attribute
|
|
87
|
-
|
|
88
|
-
Syntax: `[breakpoint]:[property]:[scale]`
|
|
89
|
-
|
|
90
|
-
```html
|
|
91
|
-
<!-- Padding -->
|
|
92
|
-
<div space="p:medium">All sides</div>
|
|
93
|
-
<div space="p-x:big p-y:small">Horizontal & vertical</div>
|
|
94
|
-
|
|
95
|
-
<!-- Margin -->
|
|
96
|
-
<div space="m-b:big">Bottom margin</div>
|
|
97
|
-
<div space="m-x:auto">Center horizontally</div>
|
|
98
|
-
|
|
99
|
-
<!-- Gap (flex/grid) -->
|
|
100
|
-
<div layout="flex" space="g:small">...</div>
|
|
101
|
-
|
|
102
|
-
<!-- Sizing -->
|
|
103
|
-
<div space="w:[100%] max-w:[1200px]">...</div>
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
### Properties
|
|
107
|
-
|
|
108
|
-
- `p`, `p-t`, `p-r`, `p-b`, `p-l`, `p-x`, `p-y` — Padding
|
|
109
|
-
- `m`, `m-t`, `m-r`, `m-b`, `m-l`, `m-x`, `m-y` — Margin
|
|
110
|
-
- `g`, `g-x`, `g-y` — Gap
|
|
111
|
-
- `w`, `h`, `min-w`, `max-w`, `min-h`, `max-h` — Sizing
|
|
112
|
-
|
|
113
|
-
### Arbitrary Values (Escape Hatch)
|
|
114
|
-
|
|
115
|
-
```html
|
|
116
|
-
<div space="w:[350px] h:[100vh]">...</div>
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
## Visual Attribute
|
|
31
|
+
## Documentation
|
|
120
32
|
|
|
121
|
-
|
|
122
|
-
<!-- Colors -->
|
|
123
|
-
<div visual="bg:primary text:white">...</div>
|
|
124
|
-
|
|
125
|
-
<!-- Borders & Shadows -->
|
|
126
|
-
<div visual="rounded:big shadow:medium">...</div>
|
|
127
|
-
|
|
128
|
-
<!-- Typography -->
|
|
129
|
-
<span visual="font:bold text-size:big">...</span>
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
### Properties
|
|
133
|
-
|
|
134
|
-
- `bg` — Background color
|
|
135
|
-
- `text` — Text color or alignment
|
|
136
|
-
- `text-size` — Font size (`tiny`, `small`, `medium`, `big`, `giant`, `vast`)
|
|
137
|
-
- `font` — Font weight (`normal`, `medium`, `bold`)
|
|
138
|
-
- `rounded` — Border radius (`none`, `small`, `medium`, `big`, `round`)
|
|
139
|
-
- `shadow` — Box shadow (`none`, `small`, `medium`, `big`, `giant`)
|
|
140
|
-
|
|
141
|
-
## Responsive Design
|
|
142
|
-
|
|
143
|
-
```html
|
|
144
|
-
<div space="p:small tab:p:medium lap:p:big">
|
|
145
|
-
Grows with screen size
|
|
146
|
-
</div>
|
|
147
|
-
|
|
148
|
-
<div layout="flex col tab:row">
|
|
149
|
-
Column on mobile, row on tablet+
|
|
150
|
-
</div>
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
### Breakpoints
|
|
154
|
-
|
|
155
|
-
| Prefix | Screen |
|
|
156
|
-
|--------|--------|
|
|
157
|
-
| `mob:` | 480px+ |
|
|
158
|
-
| `tab:` | 768px+ |
|
|
159
|
-
| `lap:` | 1024px+ |
|
|
160
|
-
| `desk:` | 1280px+ |
|
|
161
|
-
|
|
162
|
-
## Hover & States
|
|
163
|
-
|
|
164
|
-
```html
|
|
165
|
-
<button visual="bg:primary hover:bg:[#2563EB]">
|
|
166
|
-
Hover me
|
|
167
|
-
</button>
|
|
168
|
-
|
|
169
|
-
<a visual="text:grey hover:text:primary">Link</a>
|
|
170
|
-
```
|
|
171
|
-
|
|
172
|
-
## CLI Commands
|
|
173
|
-
|
|
174
|
-
```bash
|
|
175
|
-
senangstart init # Create config file
|
|
176
|
-
senangstart build # One-time build
|
|
177
|
-
senangstart dev # Watch mode
|
|
178
|
-
```
|
|
179
|
-
|
|
180
|
-
## Configuration
|
|
181
|
-
|
|
182
|
-
```javascript
|
|
183
|
-
// senangstart.config.js
|
|
184
|
-
export default {
|
|
185
|
-
content: ['./src/**/*.html'],
|
|
186
|
-
|
|
187
|
-
output: {
|
|
188
|
-
css: './public/senangstart.css',
|
|
189
|
-
minify: true
|
|
190
|
-
},
|
|
191
|
-
|
|
192
|
-
theme: {
|
|
193
|
-
spacing: {
|
|
194
|
-
'huge': '256px' // Add custom scale
|
|
195
|
-
},
|
|
196
|
-
colors: {
|
|
197
|
-
'brand': '#8B5CF6' // Add custom color
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
```
|
|
33
|
+
Full docs at [bookklik-technologies.github.io/senangstart-css](https://bookklik-technologies.github.io/senangstart-css/)
|
|
202
34
|
|
|
203
35
|
## License
|
|
204
36
|
|
|
205
|
-
MIT
|
|
206
|
-
|
|
207
|
-
---
|
|
208
|
-
|
|
209
|
-
*Happy styling!* 🎨
|
|
37
|
+
Read [MIT License](LICENSE.md)
|
package/dist/senangstart-css.js
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Zero-config, browser-based CSS compilation
|
|
4
4
|
*
|
|
5
5
|
* Usage:
|
|
6
|
-
* <script src="https://
|
|
6
|
+
* <script src="https://unpkg.com/@bookklik/senangstart-css/dist/senangstart-css.min.js"></script>
|
|
7
7
|
*
|
|
8
8
|
* Or with custom config:
|
|
9
9
|
* <script type="senangstart/config">{ "theme": { "colors": { "brand": "#8B5CF6" } } }</script>
|
|
10
|
-
* <script src="https://
|
|
10
|
+
* <script src="https://unpkg.com/@bookklik/senangstart-css/dist/senangstart-css.min.js"></script>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
(function() {
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
<link rel="preload stylesheet" href="/senangstart-css/assets/style.BuMqNgkb.css" as="style">
|
|
10
10
|
<link rel="preload stylesheet" href="/senangstart-css/vp-icons.css" as="style">
|
|
11
11
|
|
|
12
|
-
<script type="module" src="/senangstart-css/assets/app.
|
|
12
|
+
<script type="module" src="/senangstart-css/assets/app.CwVZm472.js"></script>
|
|
13
13
|
<link rel="preload" href="/senangstart-css/assets/inter-roman-latin.Di8DUHzh.woff2" as="font" type="font/woff2" crossorigin="">
|
|
14
14
|
<link rel="icon" href="/senangstart-css/favicon.ico">
|
|
15
15
|
<script id="check-mac-os">document.documentElement.classList.toggle("mac",/Mac|iPhone|iPod|iPad/i.test(navigator.platform));</script>
|
|
16
16
|
</head>
|
|
17
17
|
<body>
|
|
18
18
|
<div id="app"></div>
|
|
19
|
-
<script>window.__VP_HASH_MAP__=JSON.parse("{\"examples_cards.md\":\"D4i0phvj\",\"examples_forms.md\":\"BnsjqHST\",\"examples_hero.md\":\"CCcb2x8Y\",\"examples_index.md\":\"
|
|
19
|
+
<script>window.__VP_HASH_MAP__=JSON.parse("{\"examples_cards.md\":\"D4i0phvj\",\"examples_forms.md\":\"BnsjqHST\",\"examples_hero.md\":\"CCcb2x8Y\",\"examples_index.md\":\"Dj7lqhZt\",\"examples_navigation.md\":\"CppyHbnP\",\"guide_cdn.md\":\"BzsOep2E\",\"guide_cli.md\":\"zXEKk-bu\",\"guide_configuration.md\":\"D2JZzhKm\",\"guide_getting-started.md\":\"to1dkMR9\",\"guide_index.md\":\"C1xk2lBl\",\"guide_natural-scale.md\":\"D1oVRN5V\",\"guide_philosophy.md\":\"DPyyMH8d\",\"guide_responsive.md\":\"wksOAMT5\",\"guide_states.md\":\"DRjYOZDJ\",\"guide_tri-attribute.md\":\"CoFqfmPZ\",\"index.md\":\"CUZJzNzP\",\"reference_breakpoints.md\":\"BEhuwXBS\",\"reference_colors.md\":\"o5ltImYJ\",\"reference_layout.md\":\"DqSoofMZ\",\"reference_space.md\":\"luOYAfQg\",\"reference_spacing.md\":\"DdsDhDhS\",\"reference_visual.md\":\"DZFvxgPk\"}");window.__VP_SITE_DATA__=JSON.parse("{\"lang\":\"en-US\",\"dir\":\"ltr\",\"title\":\"SenangStart CSS\",\"description\":\"The Intent-First CSS Engine - Speak Human, Compile to Logic\",\"base\":\"/senangstart-css/\",\"head\":[],\"router\":{\"prefetchLinks\":true},\"appearance\":false,\"themeConfig\":{\"logo\":\"https://senangstart.com/img/ss_logo_typo.svg\",\"siteTitle\":false,\"nav\":[{\"text\":\"Guide\",\"link\":\"/guide/getting-started\"},{\"text\":\"Reference\",\"link\":\"/reference/layout\"},{\"text\":\"Examples\",\"link\":\"/examples/\"},{\"text\":\"v0.1.2\",\"items\":[{\"text\":\"Changelog\",\"link\":\"/changelog\"},{\"text\":\"GitHub\",\"link\":\"https://github.com/bookklik-technologies/senangstart-css\"}]}],\"sidebar\":{\"/guide/\":[{\"text\":\"Introduction\",\"items\":[{\"text\":\"What is SenangStart?\",\"link\":\"/guide/\"},{\"text\":\"Getting Started\",\"link\":\"/guide/getting-started\"},{\"text\":\"Why Natural Language?\",\"link\":\"/guide/philosophy\"}]},{\"text\":\"Core Concepts\",\"items\":[{\"text\":\"Tri-Attribute Syntax\",\"link\":\"/guide/tri-attribute\"},{\"text\":\"The Natural Scale\",\"link\":\"/guide/natural-scale\"},{\"text\":\"Responsive Design\",\"link\":\"/guide/responsive\"},{\"text\":\"Hover & States\",\"link\":\"/guide/states\"}]},{\"text\":\"Usage\",\"items\":[{\"text\":\"CDN (Zero Build)\",\"link\":\"/guide/cdn\"},{\"text\":\"CLI Build\",\"link\":\"/guide/cli\"},{\"text\":\"Configuration\",\"link\":\"/guide/configuration\"}]}],\"/reference/\":[{\"text\":\"Attributes\",\"items\":[{\"text\":\"layout\",\"link\":\"/reference/layout\"},{\"text\":\"space\",\"link\":\"/reference/space\"},{\"text\":\"visual\",\"link\":\"/reference/visual\"}]},{\"text\":\"Theme\",\"items\":[{\"text\":\"Spacing\",\"link\":\"/reference/spacing\"},{\"text\":\"Colors\",\"link\":\"/reference/colors\"},{\"text\":\"Breakpoints\",\"link\":\"/reference/breakpoints\"}]}],\"/examples/\":[{\"text\":\"Components\",\"items\":[{\"text\":\"Overview\",\"link\":\"/examples/\"},{\"text\":\"Cards\",\"link\":\"/examples/cards\"},{\"text\":\"Navigation\",\"link\":\"/examples/navigation\"},{\"text\":\"Hero Sections\",\"link\":\"/examples/hero\"},{\"text\":\"Forms\",\"link\":\"/examples/forms\"}]}]},\"socialLinks\":[{\"icon\":\"github\",\"link\":\"https://github.com/bookklik-technologies/senangstart-css\"}],\"footer\":{\"message\":\"Released under the MIT License.\",\"copyright\":\"Copyright © 2026 SenangStart\"},\"search\":{\"provider\":\"local\"}},\"locales\":{},\"scrollOffset\":134,\"cleanUrls\":false}");</script>
|
|
20
20
|
|
|
21
21
|
</body>
|
|
22
22
|
</html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as p}from"./chunks/theme.
|
|
1
|
+
import{t as p}from"./chunks/theme.B37_rtT6.js";import{R as s,a2 as i,a3 as u,a4 as c,a5 as l,a6 as f,a7 as d,a8 as m,a9 as h,aa as g,ab as A,d as v,u as y,v as C,s as P,ac as b,ad as w,ae as R,af as E}from"./chunks/framework.qISVh_QZ.js";function r(e){if(e.extends){const a=r(e.extends);return{...a,...e,async enhanceApp(t){a.enhanceApp&&await a.enhanceApp(t),e.enhanceApp&&await e.enhanceApp(t)}}}return e}const n=r(p),S=v({name:"VitePressApp",setup(){const{site:e,lang:a,dir:t}=y();return C(()=>{P(()=>{document.documentElement.lang=a.value,document.documentElement.dir=t.value})}),e.value.router.prefetchLinks&&b(),w(),R(),n.setup&&n.setup(),()=>E(n.Layout)}});async function T(){globalThis.__VITEPRESS__=!0;const e=_(),a=D();a.provide(u,e);const t=c(e.route);return a.provide(l,t),a.component("Content",f),a.component("ClientOnly",d),Object.defineProperties(a.config.globalProperties,{$frontmatter:{get(){return t.frontmatter.value}},$params:{get(){return t.page.value.params}}}),n.enhanceApp&&await n.enhanceApp({app:a,router:e,siteData:m}),{app:a,router:e,data:t}}function D(){return A(S)}function _(){let e=s;return h(a=>{let t=g(a),o=null;return t&&(e&&(t=t.replace(/\.js$/,".lean.js")),o=import(t)),s&&(e=!1),o},n.NotFound)}s&&T().then(({app:e,router:a,data:t})=>{a.go().then(()=>{i(a.route,t.site),e.mount("#app")})});export{T as createApp};
|