kreftjs 0.0.13-beta → 0.0.14-beta
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/docs/README.md +1 -1
- package/kreftjs.d.ts +1 -1
- package/kreftjs.js +2 -2
- package/package.json +1 -1
- package/templates/app/frontend/errors/ErrorMonitor.kreft +2 -2
- package/templates/app/frontend/kreftjs.d.ts +1 -1
- package/templates/app/frontend/kreftjs.js +2 -2
- package/templates/app/frontend/pages/Dashboard.kreft +1 -1
- package/templates/app/frontend/pages/Home.kreft +40 -21
- package/templates/errors/ErrorMonitor.kreft +1 -1
package/docs/README.md
CHANGED
|
@@ -82,7 +82,7 @@ npx kreftjs dev
|
|
|
82
82
|
### Check that it works
|
|
83
83
|
|
|
84
84
|
```bash
|
|
85
|
-
kreft --version # for example 0.0.
|
|
85
|
+
kreft --version # for example 0.0.14-beta
|
|
86
86
|
kreft about # Kreft and Node.js versions, this project's settings and drivers
|
|
87
87
|
kreft list # every command your version has
|
|
88
88
|
```
|
package/kreftjs.d.ts
CHANGED
package/kreftjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Kreft v0.0.
|
|
2
|
+
* Kreft v0.0.14-beta — reactive by nature
|
|
3
3
|
* The .kreft component language (state · derive · action · when · watch · on),
|
|
4
4
|
* { } views with k-if / k-each / k-model, components, slots, router, stores,
|
|
5
5
|
* share / receive, event bus and a template engine.
|
|
@@ -5036,7 +5036,7 @@
|
|
|
5036
5036
|
stores, storeLog, busLog,
|
|
5037
5037
|
};
|
|
5038
5038
|
|
|
5039
|
-
const VERSION = '0.0.
|
|
5039
|
+
const VERSION = '0.0.14-beta';
|
|
5040
5040
|
const Kreftjs = {
|
|
5041
5041
|
version: VERSION,
|
|
5042
5042
|
// PUBLIC_ values from .env (kreft dev and kreft build put them here); never secrets
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "kreftjs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14-beta",
|
|
4
4
|
"description": "A tiny reactive framework with its own component language (.kreft files): router with nested routes, stores, saved data, animations, an API client, hot reload, DevTools and a template engine.",
|
|
5
5
|
"license": "Elastic-2.0",
|
|
6
6
|
"main": "kreftjs.js",
|
|
@@ -92,7 +92,7 @@ state docs = (Kreftjs.env.PUBLIC_DOCS_URL || 'http://kreftjs.com').replace(/\/+$
|
|
|
92
92
|
<div class="badges">
|
|
93
93
|
<span class="badge danger-badge">HTTP {status}</span>
|
|
94
94
|
<span class="badge solid">{currentTitle}</span>
|
|
95
|
-
<span class="badge">Kreft {Kreftjs.version || '0.0.
|
|
95
|
+
<span class="badge">Kreft {Kreftjs.version || '0.0.14-beta'}</span>
|
|
96
96
|
</div>
|
|
97
97
|
<div class="actions">
|
|
98
98
|
<button class="sm" @click={copyReport}>{copied ? 'Copied Markdown' : 'Copy Report'}</button>
|
|
@@ -189,7 +189,7 @@ state docs = (Kreftjs.env.PUBLIC_DOCS_URL || 'http://kreftjs.com').replace(/\/+$
|
|
|
189
189
|
<h3>Kreft Runtime</h3>
|
|
190
190
|
<table>
|
|
191
191
|
<tbody>
|
|
192
|
-
<tr><th>Engine</th><td><code>Kreft v{Kreftjs.version || '0.0.
|
|
192
|
+
<tr><th>Engine</th><td><code>Kreft v{Kreftjs.version || '0.0.14-beta'}</code></td></tr>
|
|
193
193
|
<tr><th>Sanitizer</th><td><code>Active (cleanHtml / SafeHtml)</code></td></tr>
|
|
194
194
|
<tr><th>Environment</th><td><code>development (APP_DEBUG=true)</code></td></tr>
|
|
195
195
|
</tbody>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Kreft v0.0.
|
|
2
|
+
* Kreft v0.0.14-beta — reactive by nature
|
|
3
3
|
* The .kreft component language (state · derive · action · when · watch · on),
|
|
4
4
|
* { } views with k-if / k-each / k-model, components, slots, router, stores,
|
|
5
5
|
* share / receive, event bus and a template engine.
|
|
@@ -5036,7 +5036,7 @@
|
|
|
5036
5036
|
stores, storeLog, busLog,
|
|
5037
5037
|
};
|
|
5038
5038
|
|
|
5039
|
-
const VERSION = '0.0.
|
|
5039
|
+
const VERSION = '0.0.14-beta';
|
|
5040
5040
|
const Kreftjs = {
|
|
5041
5041
|
version: VERSION,
|
|
5042
5042
|
// PUBLIC_ values from .env (kreft dev and kreft build put them here); never secrets
|
|
@@ -112,7 +112,7 @@ state docs = (Kreftjs.env.PUBLIC_DOCS_URL || 'http://kreftjs.com').replace(/\/+$
|
|
|
112
112
|
<div class="info-list">
|
|
113
113
|
<div class="info-item">
|
|
114
114
|
<span class="info-label">Framework Engine</span>
|
|
115
|
-
<span class="info-value">Kreft {Kreftjs.version || '0.0.
|
|
115
|
+
<span class="info-value">Kreft {Kreftjs.version || '0.0.14-beta'}</span>
|
|
116
116
|
</div>
|
|
117
117
|
<div class="info-item">
|
|
118
118
|
<span class="info-label">Active Database</span>
|
|
@@ -658,30 +658,49 @@ dd { margin: 0; color: var(--muted); }
|
|
|
658
658
|
.inside ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
|
|
659
659
|
}
|
|
660
660
|
@media (max-width: 640px) {
|
|
661
|
-
.welcome-container { padding: 0 max(
|
|
662
|
-
.site-bar { height:
|
|
663
|
-
.site-nav a { padding: 10px
|
|
664
|
-
.
|
|
665
|
-
.hero-
|
|
666
|
-
.hero-
|
|
667
|
-
.
|
|
668
|
-
.
|
|
669
|
-
.
|
|
670
|
-
|
|
671
|
-
.
|
|
672
|
-
.
|
|
673
|
-
.
|
|
674
|
-
.
|
|
675
|
-
|
|
676
|
-
|
|
661
|
+
.welcome-container { padding: 0 max(14px, env(safe-area-inset-right)) 28px max(14px, env(safe-area-inset-left)); }
|
|
662
|
+
.site-bar { height: 52px; }
|
|
663
|
+
.site-nav a { padding: 8px 10px; font-size: 13px; }
|
|
664
|
+
.site-theme { height: 32px; width: 32px; }
|
|
665
|
+
.hero-meta { gap: 6px; margin-bottom: 14px; }
|
|
666
|
+
.hero-grid { gap: 28px; padding-bottom: 36px; }
|
|
667
|
+
.hero-headline { font-size: 26px; min-height: 3.3em; letter-spacing: -0.03em; }
|
|
668
|
+
.hero-tagline { font-size: 17px; margin: 10px 0 10px; }
|
|
669
|
+
.hero-summary { font-size: 14px; line-height: 1.55; margin-bottom: 20px; }
|
|
670
|
+
/* the main button on its own line, the other two side by side */
|
|
671
|
+
.cta-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin-bottom: 18px; }
|
|
672
|
+
.pill-btn.primary { grid-column: 1 / -1; }
|
|
673
|
+
.pill-btn { width: 100%; min-height: 42px; padding: 8px 14px; font-size: 14px; text-align: center; }
|
|
674
|
+
.feature-badges { gap: 5px; }
|
|
675
|
+
.badge { font-size: 11px; padding: 4px 9px; }
|
|
676
|
+
.hero-visual { gap: 14px; }
|
|
677
|
+
.terminal-card { border-radius: 14px; }
|
|
678
|
+
.terminal-code { font-size: 11.5px; line-height: 1.6; padding: 14px 14px 30px; }
|
|
679
|
+
.floating-preview { padding: 14px; border-radius: 14px; }
|
|
680
|
+
.preview-name { font-size: 17px; }
|
|
681
|
+
.preview-metrics { display: none; }
|
|
682
|
+
.language, .inside, .begin { padding: 28px 0; }
|
|
683
|
+
.language h2, .inside h2, .begin h2 { font-size: 19px; margin-bottom: 14px; }
|
|
684
|
+
/* the 12 words and the 9 parts in two columns, not one long list */
|
|
685
|
+
dl { grid-template-columns: 1fr 1fr; column-gap: 16px; font-size: 13px; }
|
|
686
|
+
dl div { grid-template-columns: 1fr; gap: 1px; padding: 8px 0; }
|
|
687
|
+
dl dd { font-size: 12px; line-height: 1.35; }
|
|
688
|
+
.inside ul { grid-template-columns: 1fr 1fr; }
|
|
689
|
+
.inside a { padding: 12px; gap: 3px; }
|
|
690
|
+
.inside a strong { font-size: 13px; }
|
|
691
|
+
.inside a span { font-size: 12px; line-height: 1.35; }
|
|
677
692
|
.term { max-width: 100%; }
|
|
678
|
-
.term code { min-width: 0; overflow-x: auto; white-space: nowrap; }
|
|
679
|
-
.
|
|
693
|
+
.term code { min-width: 0; overflow-x: auto; white-space: nowrap; font-size: 12.5px; }
|
|
694
|
+
.begin p { font-size: 13px; }
|
|
695
|
+
.site-foot { flex-wrap: wrap; gap: 6px 14px; padding-top: 16px; font-size: 12px; }
|
|
680
696
|
}
|
|
681
697
|
@media (max-width: 380px) {
|
|
682
|
-
.hero-headline { font-size:
|
|
683
|
-
.version-pill, .hero-kicker { font-size:
|
|
684
|
-
.terminal-code { font-size:
|
|
698
|
+
.hero-headline { font-size: 24px; min-height: 4.3em; }
|
|
699
|
+
.version-pill, .hero-kicker { font-size: 11px; padding: 4px 10px; }
|
|
700
|
+
.terminal-code { font-size: 10.5px; }
|
|
685
701
|
.preview-badges { flex-wrap: wrap; }
|
|
686
702
|
}
|
|
703
|
+
@media (max-width: 340px) {
|
|
704
|
+
.inside ul { grid-template-columns: 1fr; }
|
|
705
|
+
}
|
|
687
706
|
</style>
|
|
@@ -118,7 +118,7 @@ state docs = (Kreftjs.env.PUBLIC_DOCS_URL || 'http://kreftjs.com').replace(/\/+$
|
|
|
118
118
|
<div class="hero-badges">
|
|
119
119
|
<span class="badge-exception">{currentTitle}</span>
|
|
120
120
|
<span class="badge-env">Node.js {typeof process !== 'undefined' ? process.version : 'v22.0.0'}</span>
|
|
121
|
-
<span class="badge-env">Kreft v0.0.
|
|
121
|
+
<span class="badge-env">Kreft v0.0.14-beta</span>
|
|
122
122
|
</div>
|
|
123
123
|
<h1 class="hero-error-message">{currentMessage}</h1>
|
|
124
124
|
</div>
|