2025-01-07 16:20:20 +03:00
|
|
|
const webpack = require('webpack');
|
|
|
|
|
2022-11-27 16:34:37 +03:00
|
|
|
const pkg = require('./package')
|
|
|
|
|
|
|
|
module.exports = {
|
2024-04-09 21:25:36 +03:00
|
|
|
apiPath: 'stubs/api',
|
|
|
|
webpackConfig: {
|
|
|
|
output: {
|
|
|
|
publicPath: `/static/${pkg.name}/${process.env.VERSION || pkg.version}/`,
|
2022-11-27 16:34:37 +03:00
|
|
|
},
|
2025-01-07 16:20:20 +03:00
|
|
|
plugins: [
|
|
|
|
new webpack.DefinePlugin({
|
|
|
|
KC_URL: process.env.KC_URL || '"https://kc.bro-js.ru"',
|
|
|
|
KC_REALM: process.env.KC_REALM || '"bro-js"',
|
2025-01-08 22:52:18 +03:00
|
|
|
KC_CLIENT_ID: process.env.KC_CLIENT_ID || '"journal"',
|
2025-01-07 16:20:20 +03:00
|
|
|
}),
|
|
|
|
],
|
2024-04-09 21:25:36 +03:00
|
|
|
},
|
|
|
|
navigations: {
|
|
|
|
'journal.main': '/journal.pl',
|
2024-08-29 11:55:10 +03:00
|
|
|
'exam.main': '/exam',
|
2024-11-06 12:35:55 +03:00
|
|
|
'link.exam.details': '/details/:courseId/:examId',
|
|
|
|
'link.journal.attendance': '/attendance/:courseId',
|
2024-04-09 21:25:36 +03:00
|
|
|
},
|
|
|
|
features: {
|
|
|
|
journal: {
|
|
|
|
'lesson.bar': {
|
|
|
|
on: true,
|
|
|
|
value: '',
|
|
|
|
key: 'lesson.bar',
|
|
|
|
},
|
|
|
|
'group.by.date': {
|
|
|
|
on: true,
|
|
|
|
value: '',
|
|
|
|
key: 'group.by.date',
|
|
|
|
},
|
2022-11-27 16:34:37 +03:00
|
|
|
},
|
2024-04-09 21:25:36 +03:00
|
|
|
},
|
|
|
|
config: {
|
|
|
|
'journal.back.url': '/api',
|
|
|
|
'journal.polling-interval': '10000',
|
|
|
|
},
|
2022-11-27 16:34:37 +03:00
|
|
|
}
|