64 lines
1.6 KiB
JavaScript
64 lines
1.6 KiB
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.entityDesc = exports.AbleActionDef = void 0;
|
|
const action_1 = require("oak-domain/lib/actions/action");
|
|
;
|
|
exports.AbleActionDef = (0, action_1.makeAbleActionDef)('enabled');
|
|
exports.entityDesc = {
|
|
locales: {
|
|
zh_CN: {
|
|
name: '令牌',
|
|
attr: {
|
|
application: '应用',
|
|
entity: '关联对象',
|
|
entityId: '关联对象id',
|
|
user: '用户',
|
|
player: '扮演者',
|
|
env: '环境',
|
|
ableState: '状态',
|
|
disablesAt: '禁用时间',
|
|
refreshedAt: "刷新时间",
|
|
value: "令牌值"
|
|
},
|
|
action: {
|
|
enable: '激活',
|
|
disable: '禁用',
|
|
},
|
|
v: {
|
|
ableState: {
|
|
enabled: '使用中',
|
|
disabled: '已禁用'
|
|
},
|
|
},
|
|
},
|
|
},
|
|
indexes: [
|
|
{
|
|
name: 'index_value',
|
|
attributes: [
|
|
{
|
|
name: 'value',
|
|
},
|
|
{
|
|
name: '$$deleteAt$$',
|
|
},
|
|
],
|
|
config: {
|
|
unique: true,
|
|
},
|
|
},
|
|
],
|
|
style: {
|
|
icon: {
|
|
enable: '',
|
|
disable: '',
|
|
},
|
|
color: {
|
|
ableState: {
|
|
enabled: '#008000',
|
|
disabled: '#A9A9A9'
|
|
},
|
|
},
|
|
},
|
|
};
|