weifuwu 0.27.14 → 0.27.16

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.
@@ -6,17 +6,15 @@ export default function (ctx: any) {
6
6
  const theme = ctx.theme?.value || 'system'
7
7
  const locale = ctx.i18n?.locale || 'en'
8
8
 
9
- return html`<div wu-data="${raw(JSON.stringify({ open: false }))}">
9
+ return html`<div wu-data='${raw(JSON.stringify({ open: false }))}'>
10
10
  <!-- Navbar -->
11
11
  <nav class="wu-flex wu-items-center wu-justify-between wu-p-4 wu-border-bottom">
12
12
  <strong class="wu-text-lg">weifuwu</strong>
13
13
  <div class="wu-flex wu-gap-sm wu-items-center">
14
- <button wu-theme="${theme === 'dark' ? 'light' : 'dark'}" class="wu-btn wu-btn-sm">
15
- ${theme === 'dark' ? '☀️' : '🌙'}
16
- </button>
17
- <button wu-lang="${locale === 'en' ? 'zh-CN' : 'en'}" class="wu-btn wu-btn-sm">
18
- ${locale === 'en' ? '中文' : 'EN'}
19
- </button>
14
+ <button wu-theme="dark" class="wu-btn wu-btn-sm">🌙</button>
15
+ <button wu-theme="light" class="wu-btn wu-btn-sm">☀️</button>
16
+ <button wu-lang="zh-CN" class="wu-btn wu-btn-sm">中文</button>
17
+ <button wu-lang="en" class="wu-btn wu-btn-sm">EN</button>
20
18
  </div>
21
19
  </nav>
22
20
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "weifuwu",
3
3
  "type": "module",
4
- "version": "0.27.14",
4
+ "version": "0.27.16",
5
5
  "description": "Web-standard HTTP microframework for Node.js — (req, ctx) => Response",
6
6
  "exports": {
7
7
  ".": "./dist/index.js"