waibu-mpa 2.3.0 → 2.4.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.
@@ -0,0 +1,4 @@
1
+ <c:div flex="justify-content:between" margin="top-4 bottom-4">
2
+ <c:heading type="4" content="<%= attr.title ? _t(attr.title) : page.title %>" />
3
+ <c:div id="heading-end"></c:div>
4
+ </c:div>
@@ -8,6 +8,7 @@ const mapping = {
8
8
  alignMiddle: '',
9
9
  alignStart: '',
10
10
  alignTop: '',
11
+ anchor: '',
11
12
  archive: '',
12
13
  arrowCcw: 'arrow-counterclockwise',
13
14
  arrowCw: 'arrow-clockwise',
@@ -9,6 +9,7 @@ async function injectElements (options) {
9
9
  const { runHook } = this.app.bajo
10
10
  const { get, isString, isFunction, isEmpty } = this.app.lib._
11
11
  $('html').attr('lang', req.lang)
12
+ if (req.darkMode) $('body').attr('data-bs-theme', 'dark')
12
13
  const rsc = {}
13
14
  for (const tag of reply.ctags ?? []) {
14
15
  let Builder = get(cmp, `widget.${tag}`)
@@ -7,6 +7,7 @@ export default {
7
7
  alignEnd: {},
8
8
  alignCenter: {},
9
9
  alignMiddle: {},
10
+ anchor: {},
10
11
  archive: {},
11
12
  arrowCw: {},
12
13
  arrowCcw: {},
@@ -210,8 +211,8 @@ export default {
210
211
  moon: {},
211
212
  mouse: {},
212
213
  music: {},
213
- newspaper: {},
214
214
  navigation: {},
215
+ newspaper: {},
215
216
  outlet: {},
216
217
  palette: {},
217
218
  paperclip: {},
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-mpa",
3
- "version": "2.3.0",
3
+ "version": "2.4.0",
4
4
  "description": "MPA support for Waibu Framework",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -8,6 +8,8 @@
8
8
  - [2.3.0] Bug fix on ```loadResource()```
9
9
  - [2.3.0] Bug fix on ```<link />``` injection
10
10
  - [2.3.0] Bug fix on order of metas, links & scripts
11
+ - [2.4.0] Add ```anchor``` and ```navigation``` icons
12
+ - [2.4.0] Add dark mode auto detect right at inject elements
11
13
 
12
14
  ## 2026-02-05
13
15