waibu-mdb 2.1.2 → 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.
@@ -0,0 +1,5 @@
1
+ async function waibuMpaAfterBuildPage ({ $, theme, req }) {
2
+ if (req.darkMode && theme.name === 'mdb') $('body').attr('data-mdb-theme', 'dark')
3
+ }
4
+
5
+ export default waibuMpaAfterBuildPage
@@ -1,4 +1,4 @@
1
- async function theme (ctx) {
1
+ async function theme () {
2
2
  return {
3
3
  name: 'mdb',
4
4
  css: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-mdb",
3
- "version": "2.1.2",
3
+ "version": "2.2.0",
4
4
  "description": "MDB suport for Waibu MPA",
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-01-18
8
+
9
+ - [2.1.3] Dark mode handling
10
+
3
11
  ## 2026-01-16
4
12
 
5
13
  - [2.1.2] Use bundled Roboto fonts