centaline-data-driven 1.1.55 → 1.1.59

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.
Files changed (202) hide show
  1. package/.babelrc +12 -12
  2. package/.editorconfig +9 -9
  3. package/.gitattributes +63 -63
  4. package/.postcssrc.js +10 -10
  5. package/.vs/Centaline.Front_End.DataDriven/DesignTimeBuild/.dtbcache +0 -0
  6. package/.vs/Centaline.Front_End.DataDriven/v16/Server/sqlite3/db.lock +0 -0
  7. package/.vs/Centaline.Front_End.DataDriven/v16/Server/sqlite3/storage.ide +0 -0
  8. package/Centaline.Front_End.DataDriven.csproj +37 -37
  9. package/Centaline.Front_End.DataDriven.sln +25 -25
  10. package/Properties/launchSettings.json +26 -26
  11. package/README.md +140 -140
  12. package/build/build.js +41 -41
  13. package/build/centaline/centaline.path.js +59 -59
  14. package/build/centaline/webpack.centaline.conf.js +106 -106
  15. package/build/check-versions.js +54 -54
  16. package/build/utils.js +102 -102
  17. package/build/vue-loader.conf.js +22 -22
  18. package/build/webpack.base.conf.js +82 -82
  19. package/build/webpack.dev.conf.js +111 -111
  20. package/build/webpack.prod.conf.js +145 -145
  21. package/config/dev.env.js +12 -12
  22. package/config/index.js +73 -73
  23. package/config/prod.env.js +4 -4
  24. package/index.html +14 -14
  25. package/obj/Centaline.Front_End.DataDriven.csproj.nuget.dgspec.json +73 -0
  26. package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.props +29 -0
  27. package/obj/Centaline.Front_End.DataDriven.csproj.nuget.g.targets +15 -0
  28. package/obj/Debug/netcoreapp2.1/Centaline.Front_End.DataDriven.AssemblyInfo.cs +23 -0
  29. package/obj/Debug/netcoreapp2.1/Centaline.Front_End.DataDriven.RazorAssemblyInfo.cs +20 -0
  30. package/obj/project.assets.json +11907 -0
  31. package/package.json +75 -75
  32. package/src/App.vue +10 -10
  33. package/src/Detail.vue +29 -26
  34. package/src/Edit.vue +32 -32
  35. package/src/Form.vue +45 -29
  36. package/src/SearchList.vue +41 -40
  37. package/src/SearchTree.vue +51 -51
  38. package/src/Tabs.vue +19 -19
  39. package/src/centaline/api/index.js +249 -249
  40. package/src/centaline/comfirm/index.js +11 -11
  41. package/src/centaline/comfirm/src/comfirm.vue +44 -44
  42. package/src/centaline/common/index.js +738 -738
  43. package/src/centaline/css/common.css +752 -748
  44. package/src/centaline/css/max.css +208 -208
  45. package/src/centaline/dialogList/index.js +11 -11
  46. package/src/centaline/dialogList/src/dialog.vue +210 -210
  47. package/src/centaline/dialogList/src/dialogList.vue +65 -65
  48. package/src/centaline/dialogList/src/dialogNew.vue +78 -78
  49. package/src/centaline/dialogList/src/drag.js +77 -77
  50. package/src/centaline/directives/index.js +23 -23
  51. package/src/centaline/dynamicBtn/index.js +11 -11
  52. package/src/centaline/dynamicBtn/src/dynamicBtn.vue +100 -100
  53. package/src/centaline/dynamicCb/index.js +11 -11
  54. package/src/centaline/dynamicCb/src/dynamicCb.vue +72 -72
  55. package/src/centaline/dynamicCheckbox/index.js +11 -11
  56. package/src/centaline/dynamicCheckbox/src/dynamicCheckbox.vue +128 -128
  57. package/src/centaline/dynamicComboBoxWithTextBox/index.js +11 -11
  58. package/src/centaline/dynamicComboBoxWithTextBox/src/dynamicComboBoxWithTextBox.vue +240 -240
  59. package/src/centaline/dynamicD/index.js +11 -11
  60. package/src/centaline/dynamicD/src/dynamicD.vue +92 -92
  61. package/src/centaline/dynamicDetail/index.js +10 -10
  62. package/src/centaline/dynamicDetail/src/dynamicDetail.vue +40 -40
  63. package/src/centaline/dynamicDetail/src/dynamicPropertyDetailOFI.vue +1280 -1280
  64. package/src/centaline/dynamicDetail/src/dynamicPropertyDetailRET.vue +1346 -1293
  65. package/src/centaline/dynamicDrop/index.js +11 -11
  66. package/src/centaline/dynamicDrop/src/dynamicDrop.vue +54 -54
  67. package/src/centaline/dynamicDtd/index.js +11 -11
  68. package/src/centaline/dynamicDtd/src/dynamicDtd.vue +125 -125
  69. package/src/centaline/dynamicDtd/src/dynamicDtdOld.vue +93 -93
  70. package/src/centaline/dynamicFile/index.js +11 -11
  71. package/src/centaline/dynamicFile/src/dynamicFile.vue +289 -288
  72. package/src/centaline/dynamicForm/index.js +24 -24
  73. package/src/centaline/dynamicForm/src/dynamicForm.vue +564 -564
  74. package/src/centaline/dynamicForm/src/dynamicFormList.vue +209 -209
  75. package/src/centaline/dynamicForm/src/dynamicFormListTable.vue +376 -376
  76. package/src/centaline/dynamicGp/index.js +11 -11
  77. package/src/centaline/dynamicGp/src/dynamicGp.vue +27 -27
  78. package/src/centaline/dynamicHyperLink/index.js +10 -10
  79. package/src/centaline/dynamicHyperLink/src/dynamicHyperLink.vue +54 -54
  80. package/src/centaline/dynamicInput/index.js +35 -35
  81. package/src/centaline/dynamicInput/src/dynamicInput.vue +35 -35
  82. package/src/centaline/dynamicInputNumber/index.js +11 -11
  83. package/src/centaline/dynamicInputNumber/src/dynamicInputNumber.vue +157 -157
  84. package/src/centaline/dynamicIti/index.js +11 -11
  85. package/src/centaline/dynamicIti/src/dynamicIti.vue +148 -148
  86. package/src/centaline/dynamicL/index.js +11 -11
  87. package/src/centaline/dynamicL/src/dynamicL.vue +37 -37
  88. package/src/centaline/dynamicLabel/index.js +11 -11
  89. package/src/centaline/dynamicLabel/src/dynamicLabel.vue +73 -73
  90. package/src/centaline/dynamicLs/index.js +22 -22
  91. package/src/centaline/dynamicLs/src/dynamicLs.vue +233 -233
  92. package/src/centaline/dynamicMo/index.js +13 -13
  93. package/src/centaline/dynamicMo/src/dynamicMo.vue +421 -421
  94. package/src/centaline/dynamicMt/index.js +11 -11
  95. package/src/centaline/dynamicMt/src/dynamicMt.vue +44 -44
  96. package/src/centaline/dynamicPlaceHolder/index.js +10 -10
  97. package/src/centaline/dynamicPlaceHolder/src/dynamicPlaceHolder.vue +29 -29
  98. package/src/centaline/dynamicPopupSearchList/index.js +11 -11
  99. package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchList.vue +157 -157
  100. package/src/centaline/dynamicPopupSearchList/src/dynamicPopupSearchListTable.vue +239 -239
  101. package/src/centaline/dynamicRichText/index.js +11 -11
  102. package/src/centaline/dynamicRichText/src/dynamicRichText.vue +33 -33
  103. package/src/centaline/dynamicSearchList/index.js +11 -11
  104. package/src/centaline/dynamicSearchList/src/dynamicSearchCategory.vue +121 -121
  105. package/src/centaline/dynamicSearchList/src/dynamicSearchList.vue +135 -135
  106. package/src/centaline/dynamicSearchList/src/dynamicSearchScreen.vue +206 -206
  107. package/src/centaline/dynamicSearchList/src/dynamicSearchTable.vue +1082 -1069
  108. package/src/centaline/dynamicSearchList/src/dynamicTableStatistics.vue +30 -30
  109. package/src/centaline/dynamicSearchList/src/dynamicTableTip.vue +46 -46
  110. package/src/centaline/dynamicSearchList/src/dynamicTableToolbar.vue +61 -61
  111. package/src/centaline/dynamicSeg/index.js +11 -11
  112. package/src/centaline/dynamicSeg/src/dynamicSeg.vue +100 -100
  113. package/src/centaline/dynamicSensitiveEye/index.js +11 -11
  114. package/src/centaline/dynamicSensitiveEye/src/dynamicSensitiveEye.vue +74 -74
  115. package/src/centaline/dynamicSo/index.js +14 -14
  116. package/src/centaline/dynamicSo/src/dynamicSo.vue +329 -328
  117. package/src/centaline/dynamicSo/src/dynamicSo/345/211/257/346/234/254.vue +69 -69
  118. package/src/centaline/dynamicSos/index.js +14 -14
  119. package/src/centaline/dynamicSos/src/dynamicSos - /345/244/215/345/210/266.vue" +223 -223
  120. package/src/centaline/dynamicSos/src/dynamicSos.vue +261 -260
  121. package/src/centaline/dynamicSw/index.js +11 -11
  122. package/src/centaline/dynamicSw/src/dynamicSw.vue +74 -74
  123. package/src/centaline/dynamicT/index.js +11 -11
  124. package/src/centaline/dynamicT/src/dynamicT.vue +79 -79
  125. package/src/centaline/dynamicTab/index.js +11 -11
  126. package/src/centaline/dynamicTab/src/dynamicTab.vue +49 -49
  127. package/src/centaline/dynamicTabs/index.js +11 -11
  128. package/src/centaline/dynamicTabs/src/dynamicTabs.vue +69 -69
  129. package/src/centaline/dynamicTags/index.js +13 -13
  130. package/src/centaline/dynamicTags/src/dynamicTags - /345/244/215/345/210/266.vue" +391 -391
  131. package/src/centaline/dynamicTags/src/dynamicTags.vue +427 -427
  132. package/src/centaline/dynamicTimeSelect/index.js +11 -11
  133. package/src/centaline/dynamicTimeSelect/src/dynamicTimeSelect.vue +141 -141
  134. package/src/centaline/dynamicTree/index.js +11 -11
  135. package/src/centaline/dynamicTree/src/dynamicSearchTree.vue +66 -66
  136. package/src/centaline/dynamicTree/src/dynamicTree.vue +233 -233
  137. package/src/centaline/dynamicTree/src/dynamicTreeList.vue +74 -74
  138. package/src/centaline/formData/index.js +290 -290
  139. package/src/centaline/imgPreview/index.js +42 -42
  140. package/src/centaline/imgPreview/src/imgPreview.vue +26 -26
  141. package/src/centaline/index.js +51 -51
  142. package/src/centaline/loader/index.js +157 -157
  143. package/src/centaline/loader/src/ctl/Base.js +270 -261
  144. package/src/centaline/loader/src/ctl/Button.js +44 -44
  145. package/src/centaline/loader/src/ctl/Cb.js +27 -27
  146. package/src/centaline/loader/src/ctl/Checkbox.js +107 -107
  147. package/src/centaline/loader/src/ctl/ComboBoxWithTextBox.js +162 -162
  148. package/src/centaline/loader/src/ctl/D.js +31 -31
  149. package/src/centaline/loader/src/ctl/Detail.js +228 -175
  150. package/src/centaline/loader/src/ctl/Dtd.js +115 -115
  151. package/src/centaline/loader/src/ctl/DtdOld.js +129 -129
  152. package/src/centaline/loader/src/ctl/File.js +292 -292
  153. package/src/centaline/loader/src/ctl/Form.js +380 -380
  154. package/src/centaline/loader/src/ctl/FormList.js +428 -428
  155. package/src/centaline/loader/src/ctl/GM.js +20 -20
  156. package/src/centaline/loader/src/ctl/Gp.js +9 -9
  157. package/src/centaline/loader/src/ctl/Hd.js +13 -13
  158. package/src/centaline/loader/src/ctl/HyperLink.js +24 -24
  159. package/src/centaline/loader/src/ctl/InputNumber.js +51 -51
  160. package/src/centaline/loader/src/ctl/Iti.js +108 -108
  161. package/src/centaline/loader/src/ctl/L.js +18 -18
  162. package/src/centaline/loader/src/ctl/Mo.js +183 -183
  163. package/src/centaline/loader/src/ctl/Mt.js +20 -20
  164. package/src/centaline/loader/src/ctl/PlaceHolder.js +15 -15
  165. package/src/centaline/loader/src/ctl/Router.js +273 -273
  166. package/src/centaline/loader/src/ctl/SearchCategory.js +54 -54
  167. package/src/centaline/loader/src/ctl/SearchScreen.js +236 -236
  168. package/src/centaline/loader/src/ctl/SearchTable.js +787 -772
  169. package/src/centaline/loader/src/ctl/Seg.js +37 -37
  170. package/src/centaline/loader/src/ctl/SensitiveEye.js +65 -65
  171. package/src/centaline/loader/src/ctl/So.js +117 -117
  172. package/src/centaline/loader/src/ctl/Sos.js +128 -128
  173. package/src/centaline/loader/src/ctl/Sw.js +27 -27
  174. package/src/centaline/loader/src/ctl/T.js +65 -65
  175. package/src/centaline/loader/src/ctl/Tabs.js +57 -57
  176. package/src/centaline/loader/src/ctl/Tags.js +191 -191
  177. package/src/centaline/loader/src/ctl/TimeSelect.js +87 -87
  178. package/src/centaline/loader/src/ctl/Tree.js +151 -151
  179. package/src/centaline/loader/src/ctl/Ttts.js +78 -78
  180. package/src/centaline/loader/src/ctl/lib/Enum.js +580 -563
  181. package/src/centaline/loader/src/ctl/lib/LibFunction.js +364 -364
  182. package/src/centaline/loader/src/ctl.js +36 -36
  183. package/src/centaline/mixins/dynamicElement.js +151 -151
  184. package/src/centaline/mixins/dynamicSelect.js +84 -84
  185. package/src/centaline/mixins/emitter.js +33 -33
  186. package/src/centaline/progress/index.js +11 -11
  187. package/src/centaline/progress/src/progress.vue +70 -70
  188. package/src/centaline/quickInput/src/quickInput.vue +64 -64
  189. package/src/centaline/selectOption/src/selectOption.vue +61 -61
  190. package/src/centaline/selectOption/src/selectOptionVertical.vue +80 -80
  191. package/src/centaline/templateControls/index.js +17 -17
  192. package/src/centaline/templateControls/src/dynamicTableA.vue +20 -20
  193. package/src/centaline/templateControls/src/dynamicTableCurrency.vue +62 -62
  194. package/src/centaline/templateControls/src/dynamicTableImg.vue +25 -25
  195. package/src/centaline/templates/index.js +34 -34
  196. package/src/centaline/templates/src/ContractSearch.js +67 -67
  197. package/src/centaline/templates/src/test.js +44 -44
  198. package/src/centaline/validate/index.js +332 -332
  199. package/src/main.js +55 -46
  200. package/src/router/index.js +44 -44
  201. package/wwwroot/static/centaline/centaline-data-driven.js +1 -1
  202. package/wwwroot/static/centaline/centaline-data-driven.js.map +1 -1
@@ -1,145 +1,145 @@
1
- 'use strict'
2
- const path = require('path')
3
- const utils = require('./utils')
4
- const webpack = require('webpack')
5
- const config = require('../config')
6
- const merge = require('webpack-merge')
7
- const baseWebpackConfig = require('./webpack.base.conf')
8
- const CopyWebpackPlugin = require('copy-webpack-plugin')
9
- const HtmlWebpackPlugin = require('html-webpack-plugin')
10
- const ExtractTextPlugin = require('extract-text-webpack-plugin')
11
- const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
12
- const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
13
-
14
- const env = require('../config/prod.env')
15
-
16
- const webpackConfig = merge(baseWebpackConfig, {
17
- module: {
18
- rules: utils.styleLoaders({
19
- sourceMap: config.build.productionSourceMap,
20
- extract: true,
21
- usePostCSS: true
22
- })
23
- },
24
- devtool: config.build.productionSourceMap ? config.build.devtool : false,
25
- output: {
26
- path: config.build.assetsRoot,
27
- filename: utils.assetsPath('js/[name].[chunkhash].js'),
28
- chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
29
- },
30
- plugins: [
31
- // http://vuejs.github.io/vue-loader/en/workflow/production.html
32
- new webpack.DefinePlugin({
33
- 'process.env': env
34
- }),
35
- new UglifyJsPlugin({
36
- uglifyOptions: {
37
- compress: {
38
- warnings: false
39
- }
40
- },
41
- sourceMap: config.build.productionSourceMap,
42
- parallel: true
43
- }),
44
- // extract css into its own file
45
- new ExtractTextPlugin({
46
- filename: utils.assetsPath('css/[name].[contenthash].css'),
47
- // Setting the following option to `false` will not extract CSS from codesplit chunks.
48
- // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
49
- // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
50
- // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
51
- allChunks: true,
52
- }),
53
- // Compress extracted CSS. We are using this plugin so that possible
54
- // duplicated CSS from different components can be deduped.
55
- new OptimizeCSSPlugin({
56
- cssProcessorOptions: config.build.productionSourceMap
57
- ? { safe: true, map: { inline: false } }
58
- : { safe: true }
59
- }),
60
- // generate dist index.html with correct asset hash for caching.
61
- // you can customize output by editing /index.html
62
- // see https://github.com/ampedandwired/html-webpack-plugin
63
- new HtmlWebpackPlugin({
64
- filename: config.build.index,
65
- template: 'index.html',
66
- inject: true,
67
- minify: {
68
- removeComments: true,
69
- collapseWhitespace: true,
70
- removeAttributeQuotes: true
71
- // more options:
72
- // https://github.com/kangax/html-minifier#options-quick-reference
73
- },
74
- // necessary to consistently work with multiple chunks via CommonsChunkPlugin
75
- chunksSortMode: 'dependency'
76
- }),
77
- // keep module.id stable when vendor modules does not change
78
- new webpack.HashedModuleIdsPlugin(),
79
- // enable scope hoisting
80
- new webpack.optimize.ModuleConcatenationPlugin(),
81
- // split vendor js into its own file
82
- new webpack.optimize.CommonsChunkPlugin({
83
- name: 'vendor',
84
- minChunks (module) {
85
- // any required modules inside node_modules are extracted to vendor
86
- return (
87
- module.resource &&
88
- /\.js$/.test(module.resource) &&
89
- module.resource.indexOf(
90
- path.join(__dirname, '../node_modules')
91
- ) === 0
92
- )
93
- }
94
- }),
95
- // extract webpack runtime and module manifest to its own file in order to
96
- // prevent vendor hash from being updated whenever app bundle is updated
97
- new webpack.optimize.CommonsChunkPlugin({
98
- name: 'manifest',
99
- minChunks: Infinity
100
- }),
101
- // This instance extracts shared chunks from code splitted chunks and bundles them
102
- // in a separate chunk, similar to the vendor chunk
103
- // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk
104
- new webpack.optimize.CommonsChunkPlugin({
105
- name: 'app',
106
- async: 'vendor-async',
107
- children: true,
108
- minChunks: 3
109
- }),
110
-
111
- // copy custom static assets
112
- new CopyWebpackPlugin([
113
- {
114
- from: path.resolve(__dirname, '../static'),
115
- to: config.build.assetsSubDirectory,
116
- ignore: ['.*']
117
- }
118
- ])
119
- ]
120
- })
121
-
122
- if (config.build.productionGzip) {
123
- const CompressionWebpackPlugin = require('compression-webpack-plugin')
124
-
125
- webpackConfig.plugins.push(
126
- new CompressionWebpackPlugin({
127
- asset: '[path].gz[query]',
128
- algorithm: 'gzip',
129
- test: new RegExp(
130
- '\\.(' +
131
- config.build.productionGzipExtensions.join('|') +
132
- ')$'
133
- ),
134
- threshold: 10240,
135
- minRatio: 0.8
136
- })
137
- )
138
- }
139
-
140
- if (config.build.bundleAnalyzerReport) {
141
- const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
142
- webpackConfig.plugins.push(new BundleAnalyzerPlugin())
143
- }
144
-
145
- module.exports = webpackConfig
1
+ 'use strict'
2
+ const path = require('path')
3
+ const utils = require('./utils')
4
+ const webpack = require('webpack')
5
+ const config = require('../config')
6
+ const merge = require('webpack-merge')
7
+ const baseWebpackConfig = require('./webpack.base.conf')
8
+ const CopyWebpackPlugin = require('copy-webpack-plugin')
9
+ const HtmlWebpackPlugin = require('html-webpack-plugin')
10
+ const ExtractTextPlugin = require('extract-text-webpack-plugin')
11
+ const OptimizeCSSPlugin = require('optimize-css-assets-webpack-plugin')
12
+ const UglifyJsPlugin = require('uglifyjs-webpack-plugin')
13
+
14
+ const env = require('../config/prod.env')
15
+
16
+ const webpackConfig = merge(baseWebpackConfig, {
17
+ module: {
18
+ rules: utils.styleLoaders({
19
+ sourceMap: config.build.productionSourceMap,
20
+ extract: true,
21
+ usePostCSS: true
22
+ })
23
+ },
24
+ devtool: config.build.productionSourceMap ? config.build.devtool : false,
25
+ output: {
26
+ path: config.build.assetsRoot,
27
+ filename: utils.assetsPath('js/[name].[chunkhash].js'),
28
+ chunkFilename: utils.assetsPath('js/[id].[chunkhash].js')
29
+ },
30
+ plugins: [
31
+ // http://vuejs.github.io/vue-loader/en/workflow/production.html
32
+ new webpack.DefinePlugin({
33
+ 'process.env': env
34
+ }),
35
+ new UglifyJsPlugin({
36
+ uglifyOptions: {
37
+ compress: {
38
+ warnings: false
39
+ }
40
+ },
41
+ sourceMap: config.build.productionSourceMap,
42
+ parallel: true
43
+ }),
44
+ // extract css into its own file
45
+ new ExtractTextPlugin({
46
+ filename: utils.assetsPath('css/[name].[contenthash].css'),
47
+ // Setting the following option to `false` will not extract CSS from codesplit chunks.
48
+ // Their CSS will instead be inserted dynamically with style-loader when the codesplit chunk has been loaded by webpack.
49
+ // It's currently set to `true` because we are seeing that sourcemaps are included in the codesplit bundle as well when it's `false`,
50
+ // increasing file size: https://github.com/vuejs-templates/webpack/issues/1110
51
+ allChunks: true,
52
+ }),
53
+ // Compress extracted CSS. We are using this plugin so that possible
54
+ // duplicated CSS from different components can be deduped.
55
+ new OptimizeCSSPlugin({
56
+ cssProcessorOptions: config.build.productionSourceMap
57
+ ? { safe: true, map: { inline: false } }
58
+ : { safe: true }
59
+ }),
60
+ // generate dist index.html with correct asset hash for caching.
61
+ // you can customize output by editing /index.html
62
+ // see https://github.com/ampedandwired/html-webpack-plugin
63
+ new HtmlWebpackPlugin({
64
+ filename: config.build.index,
65
+ template: 'index.html',
66
+ inject: true,
67
+ minify: {
68
+ removeComments: true,
69
+ collapseWhitespace: true,
70
+ removeAttributeQuotes: true
71
+ // more options:
72
+ // https://github.com/kangax/html-minifier#options-quick-reference
73
+ },
74
+ // necessary to consistently work with multiple chunks via CommonsChunkPlugin
75
+ chunksSortMode: 'dependency'
76
+ }),
77
+ // keep module.id stable when vendor modules does not change
78
+ new webpack.HashedModuleIdsPlugin(),
79
+ // enable scope hoisting
80
+ new webpack.optimize.ModuleConcatenationPlugin(),
81
+ // split vendor js into its own file
82
+ new webpack.optimize.CommonsChunkPlugin({
83
+ name: 'vendor',
84
+ minChunks (module) {
85
+ // any required modules inside node_modules are extracted to vendor
86
+ return (
87
+ module.resource &&
88
+ /\.js$/.test(module.resource) &&
89
+ module.resource.indexOf(
90
+ path.join(__dirname, '../node_modules')
91
+ ) === 0
92
+ )
93
+ }
94
+ }),
95
+ // extract webpack runtime and module manifest to its own file in order to
96
+ // prevent vendor hash from being updated whenever app bundle is updated
97
+ new webpack.optimize.CommonsChunkPlugin({
98
+ name: 'manifest',
99
+ minChunks: Infinity
100
+ }),
101
+ // This instance extracts shared chunks from code splitted chunks and bundles them
102
+ // in a separate chunk, similar to the vendor chunk
103
+ // see: https://webpack.js.org/plugins/commons-chunk-plugin/#extra-async-commons-chunk
104
+ new webpack.optimize.CommonsChunkPlugin({
105
+ name: 'app',
106
+ async: 'vendor-async',
107
+ children: true,
108
+ minChunks: 3
109
+ }),
110
+
111
+ // copy custom static assets
112
+ new CopyWebpackPlugin([
113
+ {
114
+ from: path.resolve(__dirname, '../static'),
115
+ to: config.build.assetsSubDirectory,
116
+ ignore: ['.*']
117
+ }
118
+ ])
119
+ ]
120
+ })
121
+
122
+ if (config.build.productionGzip) {
123
+ const CompressionWebpackPlugin = require('compression-webpack-plugin')
124
+
125
+ webpackConfig.plugins.push(
126
+ new CompressionWebpackPlugin({
127
+ asset: '[path].gz[query]',
128
+ algorithm: 'gzip',
129
+ test: new RegExp(
130
+ '\\.(' +
131
+ config.build.productionGzipExtensions.join('|') +
132
+ ')$'
133
+ ),
134
+ threshold: 10240,
135
+ minRatio: 0.8
136
+ })
137
+ )
138
+ }
139
+
140
+ if (config.build.bundleAnalyzerReport) {
141
+ const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin
142
+ webpackConfig.plugins.push(new BundleAnalyzerPlugin())
143
+ }
144
+
145
+ module.exports = webpackConfig
package/config/dev.env.js CHANGED
@@ -1,12 +1,12 @@
1
- 'use strict'
2
- const merge = require('webpack-merge')
3
- const prodEnv = require('./prod.env')
4
-
5
- module.exports = merge(prodEnv, {
6
- NODE_ENV: '"development"',
7
- // BASE_API: '"http://10.88.1.151:8085/v1/form/router"',//aplus黄兰
8
- BASE_API: '"http://10.88.22.46:7070/v1/form/router"',//max本地
9
- //BASE_API: '"http://10.88.22.71:5008/api/doaction/router"',
10
- // BASE_API: '"http://tjcptest.centaline.com.cn/v1/form/router"',
11
- // BASE_API: '"http://10.88.200.31:5000/gateway/redirect"',
12
- })
1
+ 'use strict'
2
+ const merge = require('webpack-merge')
3
+ const prodEnv = require('./prod.env')
4
+
5
+ module.exports = merge(prodEnv, {
6
+ NODE_ENV: '"development"',
7
+ // BASE_API: '"http://10.88.1.151:8085/v1/form/router"',//aplus黄兰
8
+ BASE_API: '"http://10.88.22.46:7070/v1/form/router"',//max本地
9
+ //BASE_API: '"http://10.88.22.71:5008/api/doaction/router"',
10
+ // BASE_API: '"http://tjcptest.centaline.com.cn/v1/form/router"',
11
+ // BASE_API: '"http://10.88.200.31:5000/gateway/redirect"',
12
+ })
package/config/index.js CHANGED
@@ -1,73 +1,73 @@
1
- 'use strict'
2
- // Template version: 1.3.1
3
- // see http://vuejs-templates.github.io/webpack for documentation.
4
-
5
- const path = require('path')
6
-
7
- module.exports = {
8
- dev: {
9
-
10
- // Paths
11
- assetsSubDirectory: 'static',
12
- assetsPublicPath: '/',
13
- proxyTable: {},
14
-
15
- // Various Dev Server settings
16
- disableHostCheck: true,
17
- host: "0.0.0.0",
18
- //proxy: {
19
- // "**": "http://127.0.0.1:8040"//代理本地服务器
20
- //},
21
- port: 3333, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
22
- autoOpenBrowser: false,
23
- errorOverlay: true,
24
- notifyOnErrors: true,
25
- poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
26
-
27
-
28
- /**
29
- * Source Maps
30
- */
31
-
32
- // https://webpack.js.org/configuration/devtool/#development
33
- devtool: 'cheap-module-eval-source-map',
34
-
35
- // If you have problems debugging vue-files in devtools,
36
- // set this to false - it *may* help
37
- // https://vue-loader.vuejs.org/en/options.html#cachebusting
38
- cacheBusting: true,
39
-
40
- cssSourceMap: true
41
- },
42
-
43
- build: {
44
- // Template for index.html
45
- index: path.resolve(__dirname, '../wwwroot/index.html'),
46
-
47
- // Paths
48
- assetsRoot: path.resolve(__dirname, '../wwwroot'),
49
- assetsSubDirectory: 'static',
50
- assetsPublicPath: '/',
51
-
52
- /**
53
- * Source Maps
54
- */
55
-
56
- productionSourceMap: true,
57
- // https://webpack.js.org/configuration/devtool/#production
58
- devtool: '#source-map',
59
-
60
- // Gzip off by default as many popular static hosts such as
61
- // Surge or Netlify already gzip all static assets for you.
62
- // Before setting to `true`, make sure to:
63
- // npm install --save-dev compression-webpack-plugin
64
- productionGzip: false,
65
- productionGzipExtensions: ['js', 'css'],
66
-
67
- // Run the build command with an extra argument to
68
- // View the bundle analyzer report after build finishes:
69
- // `npm run build --report`
70
- // Set to `true` or `false` to always turn it on or off
71
- bundleAnalyzerReport: process.env.npm_config_report
72
- }
73
- }
1
+ 'use strict'
2
+ // Template version: 1.3.1
3
+ // see http://vuejs-templates.github.io/webpack for documentation.
4
+
5
+ const path = require('path')
6
+
7
+ module.exports = {
8
+ dev: {
9
+
10
+ // Paths
11
+ assetsSubDirectory: 'static',
12
+ assetsPublicPath: '/',
13
+ proxyTable: {},
14
+
15
+ // Various Dev Server settings
16
+ disableHostCheck: true,
17
+ host: "0.0.0.0",
18
+ //proxy: {
19
+ // "**": "http://127.0.0.1:8040"//代理本地服务器
20
+ //},
21
+ port: 3333, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
22
+ autoOpenBrowser: false,
23
+ errorOverlay: true,
24
+ notifyOnErrors: true,
25
+ poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
26
+
27
+
28
+ /**
29
+ * Source Maps
30
+ */
31
+
32
+ // https://webpack.js.org/configuration/devtool/#development
33
+ devtool: 'cheap-module-eval-source-map',
34
+
35
+ // If you have problems debugging vue-files in devtools,
36
+ // set this to false - it *may* help
37
+ // https://vue-loader.vuejs.org/en/options.html#cachebusting
38
+ cacheBusting: true,
39
+
40
+ cssSourceMap: true
41
+ },
42
+
43
+ build: {
44
+ // Template for index.html
45
+ index: path.resolve(__dirname, '../wwwroot/index.html'),
46
+
47
+ // Paths
48
+ assetsRoot: path.resolve(__dirname, '../wwwroot'),
49
+ assetsSubDirectory: 'static',
50
+ assetsPublicPath: '/',
51
+
52
+ /**
53
+ * Source Maps
54
+ */
55
+
56
+ productionSourceMap: true,
57
+ // https://webpack.js.org/configuration/devtool/#production
58
+ devtool: '#source-map',
59
+
60
+ // Gzip off by default as many popular static hosts such as
61
+ // Surge or Netlify already gzip all static assets for you.
62
+ // Before setting to `true`, make sure to:
63
+ // npm install --save-dev compression-webpack-plugin
64
+ productionGzip: false,
65
+ productionGzipExtensions: ['js', 'css'],
66
+
67
+ // Run the build command with an extra argument to
68
+ // View the bundle analyzer report after build finishes:
69
+ // `npm run build --report`
70
+ // Set to `true` or `false` to always turn it on or off
71
+ bundleAnalyzerReport: process.env.npm_config_report
72
+ }
73
+ }
@@ -1,4 +1,4 @@
1
- 'use strict'
2
- module.exports = {
3
- NODE_ENV: '"production"'
4
- }
1
+ 'use strict'
2
+ module.exports = {
3
+ NODE_ENV: '"production"'
4
+ }
package/index.html CHANGED
@@ -1,14 +1,14 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6
- <meta name="renderer" content="webkit">
7
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
8
- <title>ccaiweb</title>
9
- </head>
10
- <body>
11
- <div id="app"></div>
12
- <!-- built files will be auto injected -->
13
- </body>
14
- </html>
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
6
+ <meta name="renderer" content="webkit">
7
+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
8
+ <title>ccaiweb</title>
9
+ </head>
10
+ <body>
11
+ <div id="app"></div>
12
+ <!-- built files will be auto injected -->
13
+ </body>
14
+ </html>
@@ -0,0 +1,73 @@
1
+ {
2
+ "format": 1,
3
+ "restore": {
4
+ "D:\\Project\\js-sdk-v3\\Centaline.Front_End.DataDriven.csproj": {}
5
+ },
6
+ "projects": {
7
+ "D:\\Project\\js-sdk-v3\\Centaline.Front_End.DataDriven.csproj": {
8
+ "version": "1.0.0",
9
+ "restore": {
10
+ "projectUniqueName": "D:\\Project\\js-sdk-v3\\Centaline.Front_End.DataDriven.csproj",
11
+ "projectName": "Centaline.Front_End.DataDriven",
12
+ "projectPath": "D:\\Project\\js-sdk-v3\\Centaline.Front_End.DataDriven.csproj",
13
+ "packagesPath": "C:\\Users\\panph.CENTALINE\\.nuget\\packages\\",
14
+ "outputPath": "D:\\Project\\js-sdk-v3\\obj\\",
15
+ "projectStyle": "PackageReference",
16
+ "fallbackFolders": [
17
+ "C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
18
+ ],
19
+ "configFilePaths": [
20
+ "C:\\Users\\panph.CENTALINE\\AppData\\Roaming\\NuGet\\NuGet.Config",
21
+ "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
22
+ ],
23
+ "originalTargetFrameworks": [
24
+ "netcoreapp2.1"
25
+ ],
26
+ "sources": {
27
+ "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
28
+ "http://10.29.204.2:37463/nuget/v3/index.json": {},
29
+ "https://api.nuget.org/v3/index.json": {}
30
+ },
31
+ "frameworks": {
32
+ "netcoreapp2.1": {
33
+ "projectReferences": {}
34
+ }
35
+ },
36
+ "warningProperties": {
37
+ "warnAsError": [
38
+ "NU1605"
39
+ ]
40
+ }
41
+ },
42
+ "frameworks": {
43
+ "netcoreapp2.1": {
44
+ "dependencies": {
45
+ "Microsoft.AspNetCore.App": {
46
+ "suppressParent": "All",
47
+ "target": "Package",
48
+ "version": "[2.1.1, )",
49
+ "autoReferenced": true
50
+ },
51
+ "Microsoft.NETCore.App": {
52
+ "suppressParent": "All",
53
+ "target": "Package",
54
+ "version": "[2.1.0, )",
55
+ "autoReferenced": true
56
+ }
57
+ },
58
+ "imports": [
59
+ "net461",
60
+ "net462",
61
+ "net47",
62
+ "net471",
63
+ "net472",
64
+ "net48"
65
+ ],
66
+ "assetTargetFallback": true,
67
+ "warn": true,
68
+ "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.101\\RuntimeIdentifierGraph.json"
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
@@ -0,0 +1,29 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+ <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
4
+ <RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
5
+ <RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
6
+ <ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
7
+ <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
8
+ <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\panph.CENTALINE\.nuget\packages\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder</NuGetPackageFolders>
9
+ <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
10
+ <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.4.0</NuGetToolVersion>
11
+ </PropertyGroup>
12
+ <PropertyGroup>
13
+ <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
14
+ </PropertyGroup>
15
+ <ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
16
+ <Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.1.0\build\netcoreapp2.1\Microsoft.NETCore.App.props" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.1.0\build\netcoreapp2.1\Microsoft.NETCore.App.props')" />
17
+ <Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.extensions.fileproviders.embedded\2.1.1\build\netstandard2.0\Microsoft.Extensions.FileProviders.Embedded.props" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.extensions.fileproviders.embedded\2.1.1\build\netstandard2.0\Microsoft.Extensions.FileProviders.Embedded.props')" />
18
+ <Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.extensions.configuration.usersecrets\2.1.1\build\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.props" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.extensions.configuration.usersecrets\2.1.1\build\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.props')" />
19
+ <Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.entityframeworkcore.design\2.1.1\build\netcoreapp2.0\Microsoft.EntityFrameworkCore.Design.props" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.entityframeworkcore.design\2.1.1\build\netcoreapp2.0\Microsoft.EntityFrameworkCore.Design.props')" />
20
+ <Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.mvc.razor.extensions\2.1.1\build\netstandard2.0\Microsoft.AspNetCore.Mvc.Razor.Extensions.props" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.mvc.razor.extensions\2.1.1\build\netstandard2.0\Microsoft.AspNetCore.Mvc.Razor.Extensions.props')" />
21
+ <Import Project="$(NuGetPackageRoot)microsoft.aspnetcore.razor.design\2.1.1\build\netstandard2.0\Microsoft.AspNetCore.Razor.Design.props" Condition="Exists('$(NuGetPackageRoot)microsoft.aspnetcore.razor.design\2.1.1\build\netstandard2.0\Microsoft.AspNetCore.Razor.Design.props')" />
22
+ <Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.app\2.1.1\build\netcoreapp2.1\Microsoft.AspNetCore.App.props" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.app\2.1.1\build\netcoreapp2.1\Microsoft.AspNetCore.App.props')" />
23
+ </ImportGroup>
24
+ <PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
25
+ <PkgMicrosoft_EntityFrameworkCore_Tools Condition=" '$(PkgMicrosoft_EntityFrameworkCore_Tools)' == '' ">C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.entityframeworkcore.tools\2.1.1</PkgMicrosoft_EntityFrameworkCore_Tools>
26
+ <PkgMicrosoft_CodeAnalysis_Analyzers Condition=" '$(PkgMicrosoft_CodeAnalysis_Analyzers)' == '' ">C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.codeanalysis.analyzers\1.1.0</PkgMicrosoft_CodeAnalysis_Analyzers>
27
+ <PkgMicrosoft_AspNetCore_Razor_Design Condition=" '$(PkgMicrosoft_AspNetCore_Razor_Design)' == '' ">C:\Users\panph.CENTALINE\.nuget\packages\microsoft.aspnetcore.razor.design\2.1.1</PkgMicrosoft_AspNetCore_Razor_Design>
28
+ </PropertyGroup>
29
+ </Project>
@@ -0,0 +1,15 @@
1
+ <?xml version="1.0" encoding="utf-8" standalone="no"?>
2
+ <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3
+ <PropertyGroup>
4
+ <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
5
+ </PropertyGroup>
6
+ <ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
7
+ <Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\netstandard.library\2.0.3\build\netstandard2.0\NETStandard.Library.targets" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\netstandard.library\2.0.3\build\netstandard2.0\NETStandard.Library.targets')" />
8
+ <Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.1.0\build\netcoreapp2.1\Microsoft.NETCore.App.targets" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.netcore.app\2.1.0\build\netcoreapp2.1\Microsoft.NETCore.App.targets')" />
9
+ <Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.extensions.fileproviders.embedded\2.1.1\build\netstandard2.0\Microsoft.Extensions.FileProviders.Embedded.targets" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.extensions.fileproviders.embedded\2.1.1\build\netstandard2.0\Microsoft.Extensions.FileProviders.Embedded.targets')" />
10
+ <Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.extensions.configuration.usersecrets\2.1.1\build\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.targets" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.extensions.configuration.usersecrets\2.1.1\build\netstandard2.0\Microsoft.Extensions.Configuration.UserSecrets.targets')" />
11
+ <Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.mvc.razor.extensions\2.1.1\build\netstandard2.0\Microsoft.AspNetCore.Mvc.Razor.Extensions.targets" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.mvc.razor.extensions\2.1.1\build\netstandard2.0\Microsoft.AspNetCore.Mvc.Razor.Extensions.targets')" />
12
+ <Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.mvc.razor.viewcompilation\2.1.1\build\netstandard2.0\Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.targets" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.mvc.razor.viewcompilation\2.1.1\build\netstandard2.0\Microsoft.AspNetCore.Mvc.Razor.ViewCompilation.targets')" />
13
+ <Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.app\2.1.1\build\netcoreapp2.1\Microsoft.AspNetCore.App.targets" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\microsoft.aspnetcore.app\2.1.1\build\netcoreapp2.1\Microsoft.AspNetCore.App.targets')" />
14
+ </ImportGroup>
15
+ </Project>
@@ -0,0 +1,23 @@
1
+ //------------------------------------------------------------------------------
2
+ // <auto-generated>
3
+ // 此代码由工具生成。
4
+ // 运行时版本:4.0.30319.42000
5
+ //
6
+ // 对此文件的更改可能会导致不正确的行为,并且如果
7
+ // 重新生成代码,这些更改将会丢失。
8
+ // </auto-generated>
9
+ //------------------------------------------------------------------------------
10
+
11
+ using System;
12
+ using System.Reflection;
13
+
14
+ [assembly: System.Reflection.AssemblyCompanyAttribute("Centaline.Front_End.DataDriven")]
15
+ [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
16
+ [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
17
+ [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
18
+ [assembly: System.Reflection.AssemblyProductAttribute("Centaline.Front_End.DataDriven")]
19
+ [assembly: System.Reflection.AssemblyTitleAttribute("Centaline.Front_End.DataDriven")]
20
+ [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
21
+
22
+ // 由 MSBuild WriteCodeFragment 类生成。
23
+