docs: update portal for WRNexusJS 0.2.17
This commit is contained in:
@@ -21,6 +21,7 @@ const catalog = [
|
||||
["db", "Data", "Database adapters, typed queries, models, migrations, and sessions."],
|
||||
["dev-server", "Runtime", "Development and production servers, HMR, assets, and gateways."],
|
||||
["encryption", "Security", "Hashing, HMAC, authenticated encryption, and key derivation."],
|
||||
["helpers", "Tooling", "Safe Context URL helpers and forward-auth login redirects."],
|
||||
["i18n", "Frontend", "Translation loading, locale resolution, and Intl formatting."],
|
||||
["jwt", "Security", "HS256 JWT signing, verification, and bearer authentication."],
|
||||
["mobile", "Native", "SSR-safe compatibility access to Capacitor plugins."],
|
||||
@@ -244,7 +245,7 @@ writeFileSync(
|
||||
shell(
|
||||
"Packages",
|
||||
"Explore every WrNexus package, API, function, and copy-ready usage example.",
|
||||
`<main class="page"><section class="hero compact"><span class="eyebrow">25 focused packages</span><h1>Package reference</h1><p>Everything in the framework, organized by responsibility and documented from the published ${frameworkVersion} APIs.</p><input class="search" type="search" placeholder="Search packages, features, or categories…" @input="query = event.target.value" /></section><section class="category-filter" aria-label="Filter packages by category"><div class="category-row">${categoryButtons}</div><p>Showing <strong>{category}</strong> packages</p></section><section class="package-grid">${cards}</section></main>`,
|
||||
`<main class="page"><section class="hero compact"><span class="eyebrow">${catalog.length} focused packages</span><h1>Package reference</h1><p>Everything in the framework, organized by responsibility and documented from the published ${frameworkVersion} APIs.</p><input class="search" type="search" placeholder="Search packages, features, or categories…" @input="query = event.target.value" /></section><section class="category-filter" aria-label="Filter packages by category"><div class="category-row">${categoryButtons}</div><p>Showing <strong>{category}</strong> packages</p></section><section class="package-grid">${cards}</section></main>`,
|
||||
' state query = ""\n state category = "All"\n',
|
||||
),
|
||||
);
|
||||
@@ -285,7 +286,7 @@ writeFileSync(
|
||||
shell(
|
||||
"Home",
|
||||
"WrNexus documentation: build secure, server-rendered, reactive applications with Bun.",
|
||||
`<main class="page"><section class="hero"><span class="eyebrow">WrNexus ${frameworkVersion}</span><h1>Build from the server.<br><em>Ship only what matters.</em></h1><p>An SSR-first, Bun-native framework with reactive .wrn components, typed data, realtime rooms, mobile capabilities, and production security built in.</p><div class="actions"><a class="primary" href="/getting-started">Start building</a><a href="/packages">Explore 25 packages</a></div><div class="code-window"><span>app/pages/counter.wrn</span><pre><code>page Counter {
|
||||
`<main class="page"><section class="hero"><span class="eyebrow">WrNexus ${frameworkVersion}</span><h1>Build from the server.<br><em>Ship only what matters.</em></h1><p>An SSR-first, Bun-native framework with reactive .wrn components, typed data, realtime rooms, mobile capabilities, and production security built in.</p><div class="actions"><a class="primary" href="/getting-started">Start building</a><a href="/packages">Explore ${catalog.length} packages</a></div><div class="code-window"><span>app/pages/counter.wrn</span><pre><code>page Counter {
|
||||
state count = 0
|
||||
view {
|
||||
<button @click="count++">
|
||||
|
||||
Reference in New Issue
Block a user