sumba 2.27.3 → 2.29.0
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/en-US.json +1 -0
- package/extend/bajo/intl/id.json +1 -0
- package/extend/dobo/model.js +31 -0
- package/extend/dobo/model.json +0 -31
- package/extend/waibuDb/schema/ticket.js +32 -0
- package/extend/waibuDb/schema/user.js +10 -1
- package/extend/waibuMpa/extend/waibuAdmin/route/index.json +3 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/x/index.json +3 -0
- package/package.json +1 -1
- package/wiki/CHANGES.md +6 -0
- package/extend/waibuDb/schema/ticket.json +0 -16
package/extend/bajo/intl/id.json
CHANGED
package/extend/dobo/model.js
CHANGED
|
@@ -251,6 +251,37 @@ async function model () {
|
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
}]
|
|
254
|
+
}, {
|
|
255
|
+
baseName: 'ticket',
|
|
256
|
+
properties: [
|
|
257
|
+
'subject,,255,true,true',
|
|
258
|
+
{
|
|
259
|
+
name: 'cat',
|
|
260
|
+
type: 'string',
|
|
261
|
+
maxLength: 50,
|
|
262
|
+
index: true,
|
|
263
|
+
required: true,
|
|
264
|
+
values: async function ({ req } = {}) {
|
|
265
|
+
const { getModel } = this.app.dobo
|
|
266
|
+
const model = await getModel('SumbaTicketCat')
|
|
267
|
+
const opts = { req, noMagic: true, dataOnly: true, fields: ['name'] }
|
|
268
|
+
const results = await model.findAllRecords({ sort: { level: 1, name: 1 } }, opts)
|
|
269
|
+
return results.map(r => r.name)
|
|
270
|
+
}
|
|
271
|
+
},
|
|
272
|
+
'message,text,,,true'
|
|
273
|
+
],
|
|
274
|
+
features: [
|
|
275
|
+
'dobo:createdAt',
|
|
276
|
+
'dobo:updatedAt',
|
|
277
|
+
'sumba:siteId',
|
|
278
|
+
'sumba:userId',
|
|
279
|
+
{
|
|
280
|
+
name: 'sumba:status',
|
|
281
|
+
default: 'OPEN',
|
|
282
|
+
values: ['OPEN', 'CLOSED']
|
|
283
|
+
}
|
|
284
|
+
]
|
|
254
285
|
}]
|
|
255
286
|
}
|
|
256
287
|
|
package/extend/dobo/model.json
CHANGED
|
@@ -163,37 +163,6 @@
|
|
|
163
163
|
"message,text"
|
|
164
164
|
],
|
|
165
165
|
"features": ["dobo:createdAt", "sumba:userId", "sumba:siteId"]
|
|
166
|
-
}, {
|
|
167
|
-
"baseName": "ticket",
|
|
168
|
-
"properties": [
|
|
169
|
-
"subject,,255,true,true",
|
|
170
|
-
{
|
|
171
|
-
"name": "cat",
|
|
172
|
-
"type": "string",
|
|
173
|
-
"maxLength": 50,
|
|
174
|
-
"index": true,
|
|
175
|
-
"required": true,
|
|
176
|
-
"ref": {
|
|
177
|
-
"cat": {
|
|
178
|
-
"model": "SumbaTicketCat",
|
|
179
|
-
"searchField": "name",
|
|
180
|
-
"labelField": "name"
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
},
|
|
184
|
-
"message,text,,,true"
|
|
185
|
-
],
|
|
186
|
-
"features": [
|
|
187
|
-
"dobo:createdAt",
|
|
188
|
-
"dobo:updatedAt",
|
|
189
|
-
"sumba:siteId",
|
|
190
|
-
"sumba:userId",
|
|
191
|
-
{
|
|
192
|
-
"name": "sumba:status",
|
|
193
|
-
"default": "OPEN",
|
|
194
|
-
"values": ["OPEN", "CLOSED"]
|
|
195
|
-
}
|
|
196
|
-
]
|
|
197
166
|
}, {
|
|
198
167
|
"buildLevel": 5,
|
|
199
168
|
"baseName": "user-setting",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
async function ticket () {
|
|
2
|
+
const { routePath } = this.app.waibu
|
|
3
|
+
return {
|
|
4
|
+
common: {
|
|
5
|
+
widget: {
|
|
6
|
+
subject: {
|
|
7
|
+
attr: {
|
|
8
|
+
col: '8-md'
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
cat: {
|
|
12
|
+
addons: [{
|
|
13
|
+
attr: {
|
|
14
|
+
'x-data': true,
|
|
15
|
+
'@click': `location.href='${routePath('waibuAdmin:/site/ticket-cat/add')}'`,
|
|
16
|
+
icon: 'add'
|
|
17
|
+
},
|
|
18
|
+
type: 'button',
|
|
19
|
+
position: 'append'
|
|
20
|
+
}]
|
|
21
|
+
},
|
|
22
|
+
userId: {
|
|
23
|
+
attr: {
|
|
24
|
+
url: 'sumba.restapi:/manage/user'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export default ticket
|
|
@@ -11,7 +11,11 @@ async function user ({ req } = {}) {
|
|
|
11
11
|
forceVisible: ['password', 'token'],
|
|
12
12
|
format: {
|
|
13
13
|
password: function (val, rec) {
|
|
14
|
-
return
|
|
14
|
+
return {
|
|
15
|
+
value: '*************',
|
|
16
|
+
icon: 'arrowsRepeat',
|
|
17
|
+
href: routePath('waibuAdmin:/site/reset-user-password', { query: { username: rec.username } })
|
|
18
|
+
}
|
|
15
19
|
// return `<a href="waibuAdmin:/site/reset-user-password?username=${rec.username}">${req.t('resetPassword')}</a>`
|
|
16
20
|
}
|
|
17
21
|
},
|
|
@@ -23,6 +27,10 @@ async function user ({ req } = {}) {
|
|
|
23
27
|
},
|
|
24
28
|
password: {
|
|
25
29
|
component: 'form-plaintext',
|
|
30
|
+
attr: {
|
|
31
|
+
font: 'monospace'
|
|
32
|
+
}
|
|
33
|
+
/*
|
|
26
34
|
addons: [{
|
|
27
35
|
attr: {
|
|
28
36
|
'x-data': true,
|
|
@@ -32,6 +40,7 @@ async function user ({ req } = {}) {
|
|
|
32
40
|
type: 'button',
|
|
33
41
|
position: 'append'
|
|
34
42
|
}]
|
|
43
|
+
*/
|
|
35
44
|
},
|
|
36
45
|
apiKey: {
|
|
37
46
|
attr: {
|
package/package.json
CHANGED
package/wiki/CHANGES.md
CHANGED
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
+
## 2026-06-03
|
|
4
|
+
|
|
5
|
+
- [2.29.0] Some models with property ```values``` now use the newly introduced function values
|
|
6
|
+
- [2.29.0] Add redirections from empty folder to the right page
|
|
7
|
+
|
|
3
8
|
## 2026-06-01
|
|
4
9
|
|
|
5
10
|
- [2.27.3] Bug fix in ```user.js``` schema
|
|
11
|
+
- [2.28.0] Now using new ```format``` definition for ```virtual``` column
|
|
6
12
|
|
|
7
13
|
## 2026-05-30
|
|
8
14
|
|