waibu-db 2.1.4 → 2.1.6

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
+ "waibuDb": "DB",
2
3
  "pageOfPages%s%s": "Page %s of %s pages",
3
4
  "recsFound%s": "%s record(s) found",
4
5
  "recsPerPage": "recs per page",
@@ -1,4 +1,5 @@
1
1
  {
2
+ "waibuDb": "DB",
2
3
  "pageOfPages%s%s": "Hal %s dari %s",
3
4
  "recsFound%s": "Ditemukan %s data",
4
5
  "recsPerPage": "data per halaman",
@@ -43,7 +43,13 @@ async function btnDelete () {
43
43
  }
44
44
  const msg = 'aboutToRemoveRecord'
45
45
  this.params.attr['@click'] = `
46
- await wbs.confirmation(\`${req.t(msg)}\`, { ok: '${this.params.attr.id}:remove', close: 'y', opts: selected })
46
+ await wbs.confirmation(\`${req.t(msg)}\`, {
47
+ ok: '${this.params.attr.id}:remove',
48
+ close: 'y',
49
+ opts: selected,
50
+ theme: '${this.component.theme.name}',
51
+ iconset: '${this.component.iconset.name}'
52
+ })
47
53
  `
48
54
  this.params.html = await this.component.buildTag({ tag: 'btn', attr: this.params.attr, html: this.params.html })
49
55
  }
package/index.js CHANGED
@@ -120,7 +120,7 @@ async function factory (pkgName) {
120
120
  const items = omenu[k]
121
121
  const plugin = this.app[items[0].ns]
122
122
  menu.push({
123
- title: k,
123
+ title: req.t(k),
124
124
  children: map(items, item => {
125
125
  return {
126
126
  title: camelCase(item.name.slice(plugin.alias.length)),
@@ -2,7 +2,8 @@ function buildParams ({ model, req, reply, action, options = {} }) {
2
2
  const { camelCase, kebabCase, map, upperFirst, get } = this.app.lib._
3
3
  const [, ...names] = map(kebabCase(model).split('-'), n => upperFirst(n))
4
4
  const mdl = this.app.dobo.getModel(model)
5
- const modelTitle = this.app[mdl.plugin.ns].title + ': ' + req.t(camelCase(names.join(' ')))
5
+ const prefix = this.app.waibuMpa ? this.app.waibuMpa.getAppTitle(mdl.plugin.ns) : mdl.plugin.ns
6
+ const modelTitle = req.t(prefix) + ': ' + req.t(camelCase(names.join(' ')))
6
7
  const page = {
7
8
  title: req.t(get(req, 'routeOptions.config.title', this.app[mdl.plugin.ns].title)),
8
9
  modelTitle
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "waibu-db",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "description": "DB Helper",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/wiki/CHANGES.md CHANGED
@@ -1,8 +1,14 @@
1
1
  # Changes
2
2
 
3
+ ## 2026-01-19
4
+
5
+ - [2.1.6] Bug fix on app title
6
+ - [2.1.6] Add some missing translations
7
+
3
8
  ## 2026-01-17
4
9
 
5
10
  - [2.1.4] Bug fix
11
+ - [2.1.5] Add capability to set custom theme & iconset through headers
6
12
 
7
13
  ## 2026-01-16
8
14