waibu-bootstrap 2.1.7 → 2.2.0

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.
@@ -3,7 +3,7 @@ async function navDropdownLanguage () {
3
3
  build = async () => {
4
4
  const { camelCase, cloneDeep, omit } = this.app.lib._
5
5
  const { supported } = this.app.bajo.config.intl
6
- const lang = this.component.req.lang
6
+ const lang = this.component.req.lang ?? this.app.bajo.config.lang
7
7
  const attr = cloneDeep(this.params.attr)
8
8
  this.params.attr = omit(this.params.attr, ['text'])
9
9
  attr.dropdown = true
@@ -30,7 +30,10 @@ async function navDropdownSetting () {
30
30
  </c:dropdown-item>
31
31
  </div>
32
32
  `)
33
+ if (this.params.attr.changePassword || this.params.attr.downloadList) profile += '<c:dropdown-item divider />'
33
34
  }
35
+ if (this.params.attr.changePassword) profile += '<c:dropdown-item href="sumba:/your-stuff/change-password" t:content="changePassword" />'
36
+ if (this.params.attr.downloadList) profile += '<c:dropdown-item href="sumba:/your-stuff/download/list" t:content="downloadList" />'
34
37
  profile += '<c:dropdown-item divider />'
35
38
  }
36
39
  let darkMode = ''
@@ -1,4 +1,4 @@
1
- async function theme (ctx) {
1
+ async function theme () {
2
2
  const css = [
3
3
  'waibuBootstrap.virtual:/bootstrap/css/bootstrap.min.css',
4
4
  '$waibuBootstrap.asset:/css/wbs.css'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-bootstrap",
3
- "version": "2.1.7",
3
+ "version": "2.2.0",
4
4
  "description": "Bootstrap suport for Waibu Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-02-09
4
+
5
+ - [2.2.0] Start using simplified ```webAppCtx```
6
+
7
+ ## 2026-02-04
8
+
9
+ - [2.1.8] Bug fix on ```<c:nav-dropdown-setting>```
10
+
3
11
  ## 2026-02-03
4
12
 
5
13
  - [2.1.7] Bug fix on menu direction