UNPKG

onnet-portal

Version:

Ant Design Pro based test2

129 lines (116 loc) 5.28 kB
npm i formik-antd@2.0.0-beta.3 onnet-portal$ cp document.ejs ../ config.ts: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ exportStatic: true, routes: [ { path: '/', redirect: '/login' }, { path: '/login', component: '../pages/onnet-portal/core/layouts/LoginLayout', routes: [ { path: '/login', name: 'login', component: './onnet-portal/core/pages/login' }, ] }, { path: '/dashboard', redirect: '/int/dashboard' }, { path: '/int', component: './onnet-portal/core/layouts/BasicLayout', Routes: ['src/pages/onnet-portal/core/layouts/Authorized'], authority: ['admin', 'user', 'reseller'], routes: [ { name: 'dashboard', path: '/int/dashboard', component: './onnet-portal/core/pages/dashboard', icon: 'dashboard',}, { path: '/int/zone', component: './onnet-portal/core/pages/dashboard/zone_info',}, { name: 'reseller_portal', path: '/int/reseller_portal', icon: 'account-book', authority: ['superduper_admin', 'reseller','!354c50fb268bf2da40e317dee90f7de3'], routes: [ { name: 'accounts', path: '/int/reseller_portal/accounts', component: './onnet-portal/reseller/portal', }, { name: 'settings', path: '/int/reseller_portal/settings', component: './onnet-portal/reseller/settings', }, { name: 'monitor', path: '/int/reseller_portal/monitor', // icon: 'user', routes: [ { name: 'current_calls', path: '/int/reseller_portal/monitor/calls', component: './onnet-portal/reseller/monitor/current_calls', }, { name: 'amqp_messages', path: '/int/reseller_portal/monitor/amqp', component: './onnet-portal/reseller/monitor/amqp_messages', }, { name: 'current_sip_registrations', path: '/int/reseller_portal/monitor/sip_registrations', component: './onnet-portal/reseller/monitor/current_registrations', }, ], }, ], }, { path: '/int/accounting', name: 'accounting', icon: 'money-collect', authority: ['lanbilling'], routes: [ { name: 'payments', path: '/int/accounting/finance_details', component: './onnet-portal/lb/finance_details', authority: ['lanbilling'], }, { name: 'documents', path: '/int/accounting/documents', component: './onnet-portal/lb/documents', authority: ['lanbilling'], }, { name: 'statistics', path: '/int/accounting/statistics', component: './onnet-portal/lb/statistics', }, ], }, { path: '/int/telephony', name: 'telephony', icon: 'phone', authority: ['telephony'], routes: [ { name: 'settings', path: '/int/telephony/admin-settings', component: './onnet-portal/telephony/pages/admin-settings', authority: ['telephony'], }, { name: 'callflow-builder', path: '/int/telephony/callflow-builder', component: './onnet-portal/telephony/pages/callflow-builder', authority: ['telephony'], }, ], }, ] }, { component: './onnet-portal/404', }, ], // Theme for antd: https://ant.design/docs/react/customize-theme-cn ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ defaultSettings.ts: ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ export default { navTheme: 'dark', // primaryColor: '#1890FF', primaryColor: '#972925', layout: 'sidemenu', contentWidth: 'Fluid', fixedHeader: false, autoHideHeader: false, fixSiderbar: false, colorWeak: false, menu: { locale: true, }, title: 'OKUI2-UI', pwa: false, iconfontUrl: '', // crossbarUrlV2: 'https://kz533.onnet.su:8443/v2', // blackholeUrl: 'wss://kz533.onnet.su:7777/', crossbarUrlV2: 'https://kz5131.onnet.su:8443/v2', blackholeUrl: 'wss://kz5131.onnet.su:7777/', // crossbarUrlV2: 'http://localhost:8000/v2', // blackholeUrl: 'ws://localhost:5555/', // crossbarUrlV2: 'http://46.148.199.2:8000/v2', // blackholeUrl: 'ws://46.148.199.2:5555/', // crossbarUrlV2: 'https://rastapi.onnet.su:8443/v2', // blackholeUrl: 'wss://rastapi.onnet.su:7777/', } as DefaultSettings; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ in ./src/models run: ln -s ../pages/onnet-portal/core/models ./onnet-portal/core ln -s ../pages/onnet-portal/reseller/models ./onnet-portal/reseller ln -s ../pages/onnet-portal/telephony/models ./onnet-portal/telephony ln -s ../pages/onnet-portal/lb/models ./onnet-portal/lb ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ in ./.eslintrc.js module.exports = { extends: [require.resolve('@umijs/fabric/dist/eslint')], globals: { ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true, page: true, }, rules: { "no-console": "off", "no-nested-ternary": "off", "no-underscore-dangle": "off", 'import/no-extraneous-dependencies': 'off', "@typescript-eslint/camelcase": "off", "@typescript-eslint/consistent-type-assertions": "off", }, }; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++