waibu 2.1.1 → 2.1.3

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.
@@ -1,4 +1,5 @@
1
1
  {
2
+ "waibu": "Waibu",
2
3
  "pluginPrefixConflic%s%s%s": "Plugin prefix '%s' conflict between '%s' and '%s'",
3
4
  "serverIs%s": "Server is %s",
4
5
  "closedL": "closed",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "waibu": "Waibu",
2
3
  "pluginPrefixConflic%s%s%s": "Ada konflik di prefiks '%s' antara '%s' dan '%s'",
3
4
  "serverIs%s": "Server %s",
4
5
  "closedL": "tertutup",
@@ -56,8 +56,7 @@ async function buildLocals ({ tpl, params = {}, opts = {} } = {}) {
56
56
  const { runHook } = this.app.bajo
57
57
  const { set, merge, pick, get, isEmpty, find, pullAt } = this.app.lib._
58
58
  const { req, reply } = opts
59
- const appTitle = this.app.waibuMpa ? req.t(this.app.waibuMpa.getAppTitle(req.ns)) : ''
60
- params.page = merge(params.page ?? {}, { ns: req.ns, appTitle })
59
+ params.page = merge(params.page ?? {}, { ns: req.ns })
61
60
  params.sidebar = params.sidebar ?? []
62
61
 
63
62
  const { site, user, lang, darkMode } = req
@@ -83,10 +82,7 @@ async function buildLocals ({ tpl, params = {}, opts = {} } = {}) {
83
82
  if (params.error) {
84
83
  if (params.error.statusCode) _meta.statusCode = params.error.statusCode
85
84
  _meta.errorMessage = params.error.message
86
- if (params.error.ns) {
87
- params.page.ns = params.error.ns
88
- params.page.appTitle = this.app.waibuMpa.getAppTitle(params.error.ns)
89
- }
85
+ if (params.error.ns) params.page.ns = params.error.ns
90
86
  if (!errs[req.id]) {
91
87
  this.log.error('error%s', params.error.message)
92
88
  if (this.app.bajo.config.env === 'dev') console.log(params.error)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "Web Framework for Bajo",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-01-21
4
+
5
+ - [2.1.3] Add ```getPluginTitle()```
6
+ - [2.1.3] Bug fix on ```getAppTitle()```
7
+ - [2.1.3] Rework on all title handlers
8
+
9
+ ## 2026-01-19
10
+
11
+ - [2.1.2] Bug fix on ```getAppTitle()```
12
+ - [2.1.2] Add missing some translation
13
+
3
14
  ## 2025-12-28
4
15
 
5
16
  - [2.1.0] Ported to ```bajo@2.2.x``` specs