sumba 1.2.10 → 1.2.12

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.
@@ -106,6 +106,7 @@
106
106
  "contactFormSubmitted": "Contact form successfully submitted",
107
107
  "currentApiKey": "Current API Key",
108
108
  "downloadList": "Download List",
109
+ "manageDownload": "Manage Download",
109
110
  "field": {
110
111
  "currentPassword": "Current Password",
111
112
  "newPassword": "New Password",
package/bajo/intl/id.json CHANGED
@@ -107,6 +107,7 @@
107
107
  "contactFormSubmitted": "Form kontak sukses dikirim",
108
108
  "currentApiKey": "Kunci API Saat Ini",
109
109
  "downloadList": "Daftar Unduh",
110
+ "manageDownload": "Kelola Unduhan",
110
111
  "field": {
111
112
  "currentPassword": "Kata Sandi Saat Ini",
112
113
  "newPassword": "Kata Sandi Baru",
package/index.js CHANGED
@@ -11,7 +11,7 @@ async function factory (pkgName) {
11
11
  this.config = {
12
12
  multiSite: false,
13
13
  waibu: {
14
- title: 'Sumba',
14
+ title: 'site',
15
15
  prefix: 'site'
16
16
  },
17
17
  waibuMpa: {
@@ -169,6 +169,7 @@ async function factory (pkgName) {
169
169
  { title: 'manageUser', href: `waibuAdmin:/${prefix}/user/list` },
170
170
  { title: 'manageTeam', href: `waibuAdmin:/${prefix}/team/list` },
171
171
  { title: 'manageTeamUser', href: `waibuAdmin:/${prefix}/team-user/list` },
172
+ { title: 'manageDownload', href: `waibuAdmin:/${prefix}/download/list` },
172
173
  { title: 'resetUserPassword', href: `waibuAdmin:/${prefix}/reset-user-password` }
173
174
  ]
174
175
  }]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sumba",
3
- "version": "1.2.10",
3
+ "version": "1.2.12",
4
4
  "description": "Bajo Framework's Biz Suite",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2,10 +2,9 @@ async function download () {
2
2
  return {
3
3
  common: {
4
4
  disabled: ['create', 'update', 'get'],
5
- hidden: ['id'],
6
5
  formatter: {
7
6
  description: async function (val, rec) {
8
- const sentence = `<c:a target="_blank" href="sumba:/your-stuff/download/get/${rec.file}" content="${val}" />`
7
+ const sentence = `<c:a target="_blank" href="sumba:/your-stuff/download/get/${rec.file}" content="${val}" @click.stop />`
9
8
  return await this.component.buildSentence(sentence)
10
9
  }
11
10
  }
@@ -0,0 +1,11 @@
1
+ const action = {
2
+ method: ['GET', 'POST'],
3
+ title: 'manageDownload',
4
+ handler: async function (req, reply) {
5
+ const { importModule } = this.app.bajo
6
+ const crudSkel = await importModule('waibuAdmin:/lib/crud-skel.js')
7
+ return await crudSkel.call(this, 'SumbaDownload', req, reply)
8
+ }
9
+ }
10
+
11
+ export default action
@@ -5,7 +5,8 @@ const download = {
5
5
  const crudSkel = await importModule('waibuAdmin:/lib/crud-skel.js')
6
6
  const layoutTpl = 'main.layout:/with-addons.html'
7
7
  const tpl = 'waibuAdmin.template:/crud/list-notitle.html'
8
- return await crudSkel.call(this, 'SumbaDownload', req, reply, { tpl, layoutTpl, title: req.t('downloadList') })
8
+ const options = { forceShowId: false, hidden: ['id'] }
9
+ return await crudSkel.call(this, 'SumbaDownload', req, reply, { tpl, layoutTpl, title: req.t('downloadList'), options })
9
10
  }
10
11
  }
11
12