openatc-components 0.5.79 → 0.5.81
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/package.config.js +62 -58
- package/build/package.dev.config.js +114 -107
- package/build/package.prod.config.js +167 -160
- package/build/utils.js +109 -101
- package/index.html +16 -0
- package/package/kisscomps/components/DirectionListConfiguration/DirectionListConfiguration.vue +2 -2
- package/package/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +255 -255
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
- package/package/kisscomps/components/DrawChannelization/drawsvg/table.vue +2 -2
- package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/CustomRoadsSvg.vue +1 -1
- package/package/kisscomps/components/MessageBox/index.vue +1 -1
- package/package/kisscomps/components/OverviewComponent/index.vue +0 -6
- package/package/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +0 -16
- package/package/kisscomps/components/PhaseLegend/PhaseLegend.vue +2 -3
- package/package/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +1 -1
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +0 -82
- package/package/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +3 -4
- package/package/kisscomps/components/Stages/index.vue +2 -3
- package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +0 -28
- package/package/kisscomps/components/overView/index.vue +0 -6
- package/package/kisscomps/components/patternConfig/index.vue +1 -1
- package/package/kisscomps/components/patternConfig/pattern/patternTable.vue +7 -1
- package/package/kisscomps/index.js +7 -2
- package/package/kissui.js +321283 -0
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/App.vue +2 -0
- package/src/i18n/index.js +20 -2
- package/src/i18n/language/ar.js +685 -0
- package/src/i18n/language/en.js +69 -1157
- package/src/i18n/language/index.js +6 -0
- package/src/i18n/language/ru.js +132 -1027
- package/src/i18n/language/zh.js +65 -1150
- package/src/kisscomps/components/DirectionListConfiguration/DirectionListConfiguration.vue +2 -2
- package/src/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +255 -255
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
- package/src/kisscomps/components/DrawChannelization/drawsvg/table.vue +2 -2
- package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/CustomRoadsSvg.vue +1 -1
- package/src/kisscomps/components/MessageBox/index.vue +1 -1
- package/src/kisscomps/components/OverviewComponent/index.vue +0 -6
- package/src/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +0 -16
- package/src/kisscomps/components/PhaseLegend/PhaseLegend.vue +2 -3
- package/src/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +1 -1
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +0 -82
- package/src/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +3 -4
- package/src/kisscomps/components/Stages/index.vue +2 -3
- package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +0 -28
- package/src/kisscomps/components/overView/index.vue +0 -6
- package/src/kisscomps/components/patternConfig/index.vue +1 -1
- package/src/kisscomps/components/patternConfig/pattern/patternTable.vue +7 -1
- package/src/kisscomps/index.js +7 -2
- package/src/utils/ControlFormat.js +0 -8
- package/src/utils/fault.js +3 -1
- package/src/utils/faultcode.js +37 -36
- package/src/utils/i18nDirection.js +37 -0
- package/src/utils/phasedesc.js +0 -4
- package/src/utils/responseMessage.js +4 -0
|
@@ -1,160 +1,167 @@
|
|
|
1
|
-
const webpack = require('webpack')
|
|
2
|
-
const merge = require('webpack-merge')
|
|
3
|
-
const path = require('path')
|
|
4
|
-
const utils = require('./utils')
|
|
5
|
-
const vueLoaderConfig = require('./vue-loader.conf')
|
|
6
|
-
const config = require('../config')
|
|
7
|
-
const baseWebpackConfig = require('./package.config')
|
|
8
|
-
const ExtractTextPlugin = require('extract-text-webpack-plugin')
|
|
9
|
-
const extractScss = new ExtractTextPlugin('/kissui.min.css')
|
|
10
|
-
const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
|
|
11
|
-
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
|
12
|
-
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
'
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
//
|
|
122
|
-
//
|
|
123
|
-
//
|
|
124
|
-
//
|
|
125
|
-
//
|
|
126
|
-
//
|
|
127
|
-
//
|
|
128
|
-
// }
|
|
129
|
-
//
|
|
130
|
-
//
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
1
|
+
const webpack = require('webpack')
|
|
2
|
+
const merge = require('webpack-merge')
|
|
3
|
+
const path = require('path')
|
|
4
|
+
const utils = require('./utils')
|
|
5
|
+
const vueLoaderConfig = require('./vue-loader.conf')
|
|
6
|
+
const config = require('../config')
|
|
7
|
+
const baseWebpackConfig = require('./package.config')
|
|
8
|
+
const ExtractTextPlugin = require('extract-text-webpack-plugin')
|
|
9
|
+
const extractScss = new ExtractTextPlugin('/kissui.min.css')
|
|
10
|
+
const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
|
|
11
|
+
const CopyWebpackPlugin = require('copy-webpack-plugin')
|
|
12
|
+
const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
|
|
13
|
+
|
|
14
|
+
// RTL 镜像 loader(ADR-15/ADR-16):组件库产物 CSS 由 vue-style-loader 运行时注入,
|
|
15
|
+
// 消费方 postcss 摸不到,必须在库自身构建链中串联。
|
|
16
|
+
const rtlLoader = {
|
|
17
|
+
loader: path.resolve(__dirname, '../../../scripts/i18n/rtl-loader.js')
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function resolve(dir) {
|
|
21
|
+
return path.join(__dirname, '..', dir)
|
|
22
|
+
}
|
|
23
|
+
const createLintingRule = () => ({
|
|
24
|
+
test: /\.(js|vue)$/,
|
|
25
|
+
loader: 'eslint-loader',
|
|
26
|
+
enforce: 'pre',
|
|
27
|
+
include: [resolve('src'), resolve('test')],
|
|
28
|
+
options: {
|
|
29
|
+
formatter: require('eslint-friendly-formatter'),
|
|
30
|
+
emitWarning: !config.dev.showEslintErrorsInOverlay
|
|
31
|
+
}
|
|
32
|
+
})
|
|
33
|
+
|
|
34
|
+
module.exports = merge(baseWebpackConfig, {
|
|
35
|
+
output: {
|
|
36
|
+
filename: '[name].min.js'
|
|
37
|
+
},
|
|
38
|
+
module: {
|
|
39
|
+
rules: [
|
|
40
|
+
...(config.dev.useEslint ? [createLintingRule()] : []),
|
|
41
|
+
{
|
|
42
|
+
test: /\.vue$/,
|
|
43
|
+
loader: 'vue-loader',
|
|
44
|
+
options: vueLoaderConfig
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
test: /\.js$/,
|
|
48
|
+
loader: 'babel-loader',
|
|
49
|
+
include: [resolve('src'), resolve('test'), resolve('node_modules/webpack-dev-server/client'),
|
|
50
|
+
resolve('../src/lib')
|
|
51
|
+
]
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
test: /\.svg$/,
|
|
55
|
+
loader: 'svg-sprite-loader',
|
|
56
|
+
include: [resolve('src/icons')],
|
|
57
|
+
options: {
|
|
58
|
+
symbolId: 'icon-[name]'
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
test: /\.(png|jpe?g|gif|svg)(\?.*)?$/,
|
|
63
|
+
loader: 'url-loader',
|
|
64
|
+
exclude: [resolve('src/icons')],
|
|
65
|
+
options: {
|
|
66
|
+
limit: 10000,
|
|
67
|
+
name: utils.assetsPath('img/[name].[hash:7].[ext]')
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
test: /\.(mp4|webm|ogg|mp3|wav|flac|aac)(\?.*)?$/,
|
|
72
|
+
loader: 'url-loader',
|
|
73
|
+
options: {
|
|
74
|
+
limit: 10000,
|
|
75
|
+
name: utils.assetsPath('media/[name].[hash:7].[ext]')
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
|
|
80
|
+
loader: 'url-loader',
|
|
81
|
+
options: {
|
|
82
|
+
limit: 10000,
|
|
83
|
+
name: utils.assetsPath('fonts/[name].[hash:7].[ext]')
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
test: /\.css$/,
|
|
88
|
+
use: [
|
|
89
|
+
//'sass-loader',
|
|
90
|
+
'css-loader',
|
|
91
|
+
//'autoprefixer-loader'
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
test: /\.scss$/,
|
|
96
|
+
use: [
|
|
97
|
+
'style-loader',
|
|
98
|
+
'css-loader',
|
|
99
|
+
rtlLoader,
|
|
100
|
+
'sass-loader'
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
loaders: [{
|
|
105
|
+
test: /\.scss$/,
|
|
106
|
+
loader: extractScss.extract(['css-loader', rtlLoader, 'sass-loader'])
|
|
107
|
+
}]
|
|
108
|
+
},
|
|
109
|
+
plugins: [
|
|
110
|
+
new webpack.DefinePlugin({
|
|
111
|
+
'process.env': {
|
|
112
|
+
NODE_ENV: '"production"'
|
|
113
|
+
}
|
|
114
|
+
}),
|
|
115
|
+
new webpack.ProvidePlugin({
|
|
116
|
+
$: 'jquery',
|
|
117
|
+
jQuery: 'jquery',
|
|
118
|
+
jquery: 'jquery',
|
|
119
|
+
'window.jQuery': 'jquery'
|
|
120
|
+
}),
|
|
121
|
+
// new webpack.optimize.OccurrenceOrderPlugin(),
|
|
122
|
+
// new webpack.optimize.UglifyJsPlugin({
|
|
123
|
+
// uglifyOptions: {
|
|
124
|
+
// ie8: false,
|
|
125
|
+
// output: {
|
|
126
|
+
// comments: false,
|
|
127
|
+
// beautify: false
|
|
128
|
+
// },
|
|
129
|
+
// mangle: {
|
|
130
|
+
// keep_fnames: true
|
|
131
|
+
// },
|
|
132
|
+
// compress: {
|
|
133
|
+
// warnings: false,
|
|
134
|
+
// drop_console: true
|
|
135
|
+
// }
|
|
136
|
+
// }
|
|
137
|
+
// }),
|
|
138
|
+
new UglifyJsPlugin({
|
|
139
|
+
uglifyOptions: {
|
|
140
|
+
ie8: false,
|
|
141
|
+
output: {
|
|
142
|
+
comments: false,
|
|
143
|
+
beautify: false
|
|
144
|
+
},
|
|
145
|
+
mangle: {
|
|
146
|
+
keep_fnames: true
|
|
147
|
+
},
|
|
148
|
+
compress: {
|
|
149
|
+
warnings: false,
|
|
150
|
+
drop_console: true
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
sourceMap: config.build.productionSourceMap,
|
|
154
|
+
parallel: true
|
|
155
|
+
}),
|
|
156
|
+
extractScss,
|
|
157
|
+
new OptimizeCSSPlugin({
|
|
158
|
+
cssProcessorOptions: config.build.productionSourceMap
|
|
159
|
+
? { safe: true, map: { inline: false } }
|
|
160
|
+
: { safe: true }
|
|
161
|
+
}),
|
|
162
|
+
new CopyWebpackPlugin([
|
|
163
|
+
// {output}/file.txt
|
|
164
|
+
{from: `./src/kisscomps`, to: `./kisscomps`}
|
|
165
|
+
])
|
|
166
|
+
]
|
|
167
|
+
})
|
package/build/utils.js
CHANGED
|
@@ -1,101 +1,109 @@
|
|
|
1
|
-
'use strict'
|
|
2
|
-
const path = require('path')
|
|
3
|
-
const config = require('../config')
|
|
4
|
-
const ExtractTextPlugin = require('extract-text-webpack-plugin')
|
|
5
|
-
const packageConfig = require('../package.json')
|
|
6
|
-
|
|
7
|
-
exports.assetsPath = function (_path) {
|
|
8
|
-
const assetsSubDirectory = process.env.NODE_ENV === 'production'
|
|
9
|
-
? config.build.assetsSubDirectory
|
|
10
|
-
: config.dev.assetsSubDirectory
|
|
11
|
-
|
|
12
|
-
return path.posix.join(assetsSubDirectory, _path)
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
exports.cssLoaders = function (options) {
|
|
16
|
-
options = options || {}
|
|
17
|
-
|
|
18
|
-
const cssLoader = {
|
|
19
|
-
loader: 'css-loader',
|
|
20
|
-
options: {
|
|
21
|
-
sourceMap: options.sourceMap
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const postcssLoader = {
|
|
26
|
-
loader: 'postcss-loader',
|
|
27
|
-
options: {
|
|
28
|
-
sourceMap: options.sourceMap
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
//
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
1
|
+
'use strict'
|
|
2
|
+
const path = require('path')
|
|
3
|
+
const config = require('../config')
|
|
4
|
+
const ExtractTextPlugin = require('extract-text-webpack-plugin')
|
|
5
|
+
const packageConfig = require('../package.json')
|
|
6
|
+
|
|
7
|
+
exports.assetsPath = function (_path) {
|
|
8
|
+
const assetsSubDirectory = process.env.NODE_ENV === 'production'
|
|
9
|
+
? config.build.assetsSubDirectory
|
|
10
|
+
: config.dev.assetsSubDirectory
|
|
11
|
+
|
|
12
|
+
return path.posix.join(assetsSubDirectory, _path)
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
exports.cssLoaders = function (options) {
|
|
16
|
+
options = options || {}
|
|
17
|
+
|
|
18
|
+
const cssLoader = {
|
|
19
|
+
loader: 'css-loader',
|
|
20
|
+
options: {
|
|
21
|
+
sourceMap: options.sourceMap
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
const postcssLoader = {
|
|
26
|
+
loader: 'postcss-loader',
|
|
27
|
+
options: {
|
|
28
|
+
sourceMap: options.sourceMap
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
// RTL 镜像 loader(ADR-15 工具链唯一落点 / ADR-16 哨兵形态):
|
|
33
|
+
// scripts/i18n/rtl-loader.js 自带 postcss 6 + postcss-rtlcss 依赖,与工程构建依赖隔离。
|
|
34
|
+
// 执行序:rtlcss 先处理源 CSS,随后 postcssLoader(autoprefixer 等)
|
|
35
|
+
// 作用于翻转产物(含 [dir="rtl"] 规则)。
|
|
36
|
+
const rtlLoader = {
|
|
37
|
+
loader: path.resolve(__dirname, '../../../scripts/i18n/rtl-loader.js')
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// generate loader string to be used with extract text plugin
|
|
41
|
+
function generateLoaders (loader, loaderOptions) {
|
|
42
|
+
const loaders = options.usePostCSS ? [cssLoader, postcssLoader, rtlLoader] : [cssLoader, rtlLoader]
|
|
43
|
+
|
|
44
|
+
if (loader) {
|
|
45
|
+
loaders.push({
|
|
46
|
+
loader: loader + '-loader',
|
|
47
|
+
options: Object.assign({}, loaderOptions, {
|
|
48
|
+
sourceMap: options.sourceMap
|
|
49
|
+
})
|
|
50
|
+
})
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Extract CSS when that option is specified
|
|
54
|
+
// (which is the case during production build)
|
|
55
|
+
if (options.extract) {
|
|
56
|
+
return ExtractTextPlugin.extract({
|
|
57
|
+
use: loaders,
|
|
58
|
+
fallback: 'vue-style-loader'
|
|
59
|
+
})
|
|
60
|
+
} else {
|
|
61
|
+
return ['vue-style-loader'].concat(loaders)
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// https://vue-loader.vuejs.org/en/configurations/extract-css.html
|
|
66
|
+
return {
|
|
67
|
+
css: generateLoaders(),
|
|
68
|
+
postcss: generateLoaders(),
|
|
69
|
+
less: generateLoaders('less'),
|
|
70
|
+
sass: generateLoaders('sass', { indentedSyntax: true }),
|
|
71
|
+
scss: generateLoaders('sass'),
|
|
72
|
+
stylus: generateLoaders('stylus'),
|
|
73
|
+
styl: generateLoaders('stylus')
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Generate loaders for standalone style files (outside of .vue)
|
|
78
|
+
exports.styleLoaders = function (options) {
|
|
79
|
+
const output = []
|
|
80
|
+
const loaders = exports.cssLoaders(options)
|
|
81
|
+
|
|
82
|
+
for (const extension in loaders) {
|
|
83
|
+
const loader = loaders[extension]
|
|
84
|
+
output.push({
|
|
85
|
+
test: new RegExp('\\.' + extension + '$'),
|
|
86
|
+
use: loader
|
|
87
|
+
})
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return output
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
exports.createNotifierCallback = () => {
|
|
94
|
+
const notifier = require('node-notifier')
|
|
95
|
+
|
|
96
|
+
return (severity, errors) => {
|
|
97
|
+
if (severity !== 'error') return
|
|
98
|
+
|
|
99
|
+
const error = errors[0]
|
|
100
|
+
const filename = error.file && error.file.split('!').pop()
|
|
101
|
+
|
|
102
|
+
notifier.notify({
|
|
103
|
+
title: packageConfig.name,
|
|
104
|
+
message: severity + ': ' + error.name,
|
|
105
|
+
subtitle: filename || '',
|
|
106
|
+
icon: path.join(__dirname, 'logo.png')
|
|
107
|
+
})
|
|
108
|
+
}
|
|
109
|
+
}
|
package/index.html
CHANGED
|
@@ -4,6 +4,22 @@
|
|
|
4
4
|
<meta charset="utf-8">
|
|
5
5
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
|
6
6
|
<title>openatc-components</title>
|
|
7
|
+
<script>
|
|
8
|
+
// 首帧前设置 lang/dir,避免 RTL 切换闪烁
|
|
9
|
+
;(function () {
|
|
10
|
+
try {
|
|
11
|
+
var ls = window.localStorage
|
|
12
|
+
var arOn = ls.getItem('ar_enabled') !== 'false'
|
|
13
|
+
var rtlOn = ls.getItem('rtl_enabled') !== 'false'
|
|
14
|
+
var lang = ls.getItem('intl_language') || 'zh'
|
|
15
|
+
if (lang === 'ar' && !arOn) lang = 'en'
|
|
16
|
+
window.__AR_ENABLED__ = arOn
|
|
17
|
+
window.__RTL_ENABLED__ = rtlOn
|
|
18
|
+
document.documentElement.setAttribute('lang', lang)
|
|
19
|
+
document.documentElement.setAttribute('dir', lang === 'ar' && rtlOn ? 'rtl' : 'ltr')
|
|
20
|
+
} catch (e) {}
|
|
21
|
+
})()
|
|
22
|
+
</script>
|
|
7
23
|
</head>
|
|
8
24
|
<body>
|
|
9
25
|
<div id="app"></div>
|
package/package/kisscomps/components/DirectionListConfiguration/DirectionListConfiguration.vue
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<template>
|
|
13
13
|
<div class="direction-list-configuration">
|
|
14
14
|
<div class="dir-config-row">
|
|
15
|
-
<div class="label" :style="{width: labelWidth}">{{$t('openatccomponents.phase.desc')}}
|
|
15
|
+
<div class="label" :style="{width: labelWidth}">{{$t('openatccomponents.phase.desc')}}{{$i18n.locale === 'zh' ? ':' : ': '}}</div>
|
|
16
16
|
<div class="dir-btn lane-dir">
|
|
17
17
|
<div class="each-icon" v-for="(item, index) in laneList" :key="index" :class="item.disabled ? 'disabled-icon': ''">
|
|
18
18
|
<el-tooltip class="item" effect="dark" :content="item.name" placement="bottom-start">
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
29
29
|
<div class="dir-config-row">
|
|
30
|
-
<div class="label" :style="{width: labelWidth}">{{$t('openatccomponents.phase.peddesc')}}
|
|
30
|
+
<div class="label" :style="{width: labelWidth}">{{$t('openatccomponents.phase.peddesc')}}{{$i18n.locale === 'zh' ? ':' : ': '}}</div>
|
|
31
31
|
<div class="dir-btn ped-dir">
|
|
32
32
|
<div class="each-icon" v-for="(item, index) in pedList" :key="index" :class="item.disabled ? 'disabled-icon': ''">
|
|
33
33
|
<el-tooltip class="item" effect="dark" :content="item.name" placement="bottom-start">
|