46 lines
1.1 KiB
JavaScript
46 lines
1.1 KiB
JavaScript
/* eslint-disable no-undef */
|
|
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
const pkg = require('./package');
|
|
|
|
module.exports = {
|
|
apiPath: 'stubs/api',
|
|
webpackConfig: {
|
|
output: {
|
|
publicPath: `/static/${pkg.name}/${process.env.VERSION || pkg.version}/`,
|
|
},
|
|
},
|
|
/* use https://admin.bro-js.ru/ to create config, navigations and features */
|
|
navigations: {
|
|
'dry-wash.main': '/dry-wash',
|
|
'dry-wash.order.create': '/order',
|
|
'dry-wash.order.view': '/order/:orderId',
|
|
'dry-wash.arm.master': 'master',
|
|
'dry-wash.arm.order': 'order',
|
|
'dry-wash.arm.map': 'map',
|
|
'dry-wash.arm': '/arm/*',
|
|
},
|
|
features: {
|
|
'dry-wash': {
|
|
// add your features here in the format [featureName]: { value: string }
|
|
'order-view-status-polling': {
|
|
on: true,
|
|
value: '3000',
|
|
key: 'order-view-status-polling',
|
|
},
|
|
'car-img-upload': {
|
|
on: true,
|
|
value: 'true',
|
|
key: 'car-img-upload',
|
|
},
|
|
'order-cost': {
|
|
on: true,
|
|
value: '1000',
|
|
key: 'order-cost',
|
|
},
|
|
},
|
|
},
|
|
config: {
|
|
'dry-wash.api': '/api',
|
|
},
|
|
};
|