sumba 1.2.11 → 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.
@@ -107,7 +107,6 @@
107
107
  "currentApiKey": "Current API Key",
108
108
  "downloadList": "Download List",
109
109
  "manageDownload": "Manage Download",
110
- "license": "License",
111
110
  "field": {
112
111
  "currentPassword": "Current Password",
113
112
  "newPassword": "New Password",
package/bajo/intl/id.json CHANGED
@@ -108,7 +108,6 @@
108
108
  "currentApiKey": "Kunci API Saat Ini",
109
109
  "downloadList": "Daftar Unduh",
110
110
  "manageDownload": "Kelola Unduhan",
111
- "license": "Lisensi",
112
111
  "field": {
113
112
  "currentPassword": "Kata Sandi Saat Ini",
114
113
  "newPassword": "Kata Sandi Baru",
package/index.js CHANGED
@@ -10,9 +10,8 @@ async function factory (pkgName) {
10
10
  this.dependencies = ['bajo-extra', 'bajo-common-db', 'bajo-config']
11
11
  this.config = {
12
12
  multiSite: false,
13
- license: false,
14
13
  waibu: {
15
- title: 'Sumba',
14
+ title: 'site',
16
15
  prefix: 'site'
17
16
  },
18
17
  waibuMpa: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sumba",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "description": "Bajo Framework's Biz Suite",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,12 +0,0 @@
1
- async function afterBuildPagesMenu (pages, req) {
2
- if (!this.config.license) return
3
- const { find } = this.lib._
4
- const item = find(pages, { title: 'help' })
5
- if (!item) return
6
- item.children.push(
7
- { title: '-' },
8
- { title: 'license', href: 'sumba:/info/license' }
9
- )
10
- }
11
-
12
- export default afterBuildPagesMenu
@@ -1,10 +0,0 @@
1
- async function license (req, reply) {
2
- if (!this.config.license) throw this.error('_notFound')
3
- const { fs } = this.lib
4
- const base = `${this.app.main.dir.pkg}/../LICENSE`
5
- let tpl = `${base}.${req.lang}.md`
6
- if (!fs.existsSync(tpl)) tpl = `${base}.md`
7
- return await reply.view(tpl, { page: { title: req.t('license') }, license: this.config.license })
8
- }
9
-
10
- export default license