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.
package/extend/bajo/intl/id.json
CHANGED
|
@@ -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)}\`, {
|
|
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
|
|
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
package/wiki/CHANGES.md
CHANGED