export const administrator = 'administrator' export const userMenus = [{ "id": "1000", "name": "users", "i18n": "overall.users", "pid": "0", "type": "menu", "perms": "", "route": "/users", "icon": "asw-icon icon-Users", "order": 1, "state": 1, "createTimestamp": 1702534225000, "children": [ { "id": "1001", "name": "user_add", "i18n": "buttons.add", "pid": "1000", "type": "button", "perms": "", "route": "", "icon": "", "order": 1, "state": 1, "createTimestamp": 1722478572000, "children": null }, { "id": "1002", "name": "user_edit", "i18n": "buttons.edit", "pid": "1000", "type": "button", "perms": "", "route": "", "icon": "", "order": 2, "state": 1, "createTimestamp": 1722478572000, "children": null } ] }] export const profileMenus = [{ "id": "1000", "name": "profile", "i18n": "overall.profile", "pid": "0", "type": "menu", "perms": "", "route": "/profile", "icon": "asw-icon icon-Personal", "order": 1, "state": 1, "createTimestamp": 1702534225000, "children": [ { "id": "1002", "name": "profile_edit", "i18n": "buttons.edit", "pid": "1000", "type": "button", "perms": "", "route": "", "icon": "", "order": 2, "state": 1, "createTimestamp": 1722478572000, "children": null } ] },{ "id": "2000", "name": "envMgts", "i18n": "overall.environments", "pid": "0", "type": "menu", "perms": "", "route": "/envMgts", "icon": "asw-icon icon-Environments", "order": 1, "state": 1, "createTimestamp": 1702534225000, "children": [ { "id": "2001", "name": "envMgt_add", "i18n": "buttons.add", "pid": "1000", "type": "button", "perms": "", "route": "", "icon": "", "order": 1, "state": 1, "createTimestamp": 1722478572000, "children": null }, { "id": "2002", "name": "envMgt_edit", "i18n": "buttons.edit", "pid": "1000", "type": "button", "perms": "", "route": "", "icon": "", "order": 2, "state": 1, "createTimestamp": 1722478572000, "children": null } ] },] export const normalMenuType = 0 // 登陆后默认菜单 export const userMenuType = 1 export const profileMenuType = 2 export const meunsMap = [ { key: userMenuType, value: userMenus, path: 'users' }, { key: profileMenuType, value: profileMenus, path: 'envMgts' } ] export const monthDict = { '01': 'Jan', '02': 'Feb', '03': 'Mar', '04': 'Apr', '05': 'May', '06': 'Jun', '07': 'Jul', '08': 'Aug', '09': 'Sep', '10': 'Oct', '11': 'Nov', '12': 'Dec', } export const jobStatus = { created: 'created', pending: 'pending', running: 'running', passed: 'passed', failed: 'failed', cancel: 'cancel' }