weifuwu 0.27.19 β 0.27.20
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/dist/index.js
CHANGED
|
@@ -3681,7 +3681,7 @@ function wfuwAssets() {
|
|
|
3681
3681
|
return new Response(jsContent, {
|
|
3682
3682
|
headers: {
|
|
3683
3683
|
"content-type": "application/javascript; charset=utf-8",
|
|
3684
|
-
"cache-control": "public, max-age=
|
|
3684
|
+
"cache-control": "public, max-age=0, must-revalidate"
|
|
3685
3685
|
}
|
|
3686
3686
|
});
|
|
3687
3687
|
});
|
|
@@ -3696,7 +3696,7 @@ function wfuwAssets() {
|
|
|
3696
3696
|
return new Response(cssContent, {
|
|
3697
3697
|
headers: {
|
|
3698
3698
|
"content-type": "text/css; charset=utf-8",
|
|
3699
|
-
"cache-control": "public, max-age=
|
|
3699
|
+
"cache-control": "public, max-age=0, must-revalidate"
|
|
3700
3700
|
}
|
|
3701
3701
|
});
|
|
3702
3702
|
});
|
|
@@ -3,33 +3,28 @@ import { html, raw } from 'weifuwu'
|
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
4
4
|
export default function (ctx: any) {
|
|
5
5
|
const t = ctx.i18n?.t || ((k: string) => k)
|
|
6
|
-
const theme = ctx.theme?.value || 'system'
|
|
7
|
-
const locale = ctx.i18n?.locale || 'en'
|
|
8
6
|
|
|
9
7
|
return html`<div wu-data='${raw(JSON.stringify({ open: false }))}'>
|
|
10
|
-
<!-- Navbar -->
|
|
11
8
|
<nav class="wu-flex wu-items-center wu-justify-between wu-p-4 wu-border-bottom">
|
|
12
9
|
<strong class="wu-text-lg">weifuwu</strong>
|
|
13
10
|
<div class="wu-flex wu-gap-sm wu-items-center">
|
|
14
|
-
<button wu-theme="dark" class="wu-btn wu-btn-sm">π</button>
|
|
15
|
-
<button wu-lang="zh-CN" class="wu-btn wu-btn-sm">δΈζ</button>
|
|
11
|
+
<button wu-theme="dark" class="wu-btn wu-btn-sm" wu-text-key="theme.dark">π</button>
|
|
12
|
+
<button wu-lang="zh-CN" class="wu-btn wu-btn-sm" wu-text-key="lang.zh">δΈζ</button>
|
|
16
13
|
</div>
|
|
17
14
|
</nav>
|
|
18
15
|
|
|
19
|
-
<!-- Hero -->
|
|
20
16
|
<section class="wu-p-4" style="max-width: 640px; margin: 80px auto; text-align: center;">
|
|
21
|
-
<h1 class="wu-text-2xl" style="margin-bottom: 8px;">${t('title')}</h1>
|
|
17
|
+
<h1 class="wu-text-2xl" style="margin-bottom: 8px;" wu-text-key="title">${t('title')}</h1>
|
|
22
18
|
<p class="wu-text-secondary wu-text-md" style="margin-bottom: 32px;">
|
|
23
19
|
Pure Node.js, no build step
|
|
24
20
|
</p>
|
|
25
21
|
|
|
26
22
|
<div class="wu-flex wu-justify-center wu-gap-md">
|
|
27
|
-
<button class="wu-btn wu-btn-primary" wu-on="click: open = !open">${t('cta')}</button>
|
|
28
|
-
<a href="https://weifuwu.dev" class="wu-btn" target="_blank"
|
|
23
|
+
<button class="wu-btn wu-btn-primary" wu-on="click: open = !open" wu-text-key="cta">${t('cta')}</button>
|
|
24
|
+
<a href="https://weifuwu.dev" class="wu-btn" target="_blank" wu-text-key="docs">${t('docs')}</a>
|
|
29
25
|
</div>
|
|
30
26
|
|
|
31
|
-
|
|
32
|
-
<div wu-show="open" class="wu-card" style="margin-top: 24px; text-align: left;">
|
|
27
|
+
<div wu-show="open" class="wu-card" style="margin-top: 24px; text-align: left;" wu-text-key="demo">
|
|
33
28
|
${t('demo')}
|
|
34
29
|
</div>
|
|
35
30
|
</section>
|
package/dist/weifuwu-ui.js
CHANGED