neo-cmp-cli 1.12.9 → 1.12.10

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 (55) hide show
  1. package/dist/index2.js +1 -1
  2. package/dist/module/neoInitByCopy.js +1 -1
  3. package/dist/package.json.js +1 -1
  4. package/package.json +4 -1
  5. package/template/antd-custom-cmp-template/package.json +1 -1
  6. package/template/asset-manage-template/package.json +1 -1
  7. package/template/asset-manage-template/src/utils/queryObjectData.ts +36 -0
  8. package/template/echarts-custom-cmp-template/package.json +1 -1
  9. package/template/empty-custom-cmp-template/package.json +1 -1
  10. package/template/neo-custom-cmp-template/package.json +4 -1
  11. package/template/neo-custom-cmp-template/src/utils/queryObjectData.ts +36 -0
  12. package/template/neo-custom-cmp-template/tsconfig.json +1 -2
  13. package/template/neo-h5-cmps/neo.config.js +1 -6
  14. package/template/neo-h5-cmps/package.json +6 -3
  15. package/template/neo-h5-cmps/src/utils/queryObjectData.ts +36 -0
  16. package/template/neo-h5-cmps/tsconfig.json +3 -4
  17. package/template/neo-order-cmps/package.json +1 -1
  18. package/template/neo-order-cmps/src/utils/queryObjectData.ts +36 -0
  19. package/template/neo-web-cmps/.prettierrc.js +12 -0
  20. package/template/neo-web-cmps/@types/neo-ui-common.d.ts +36 -0
  21. package/template/neo-web-cmps/README.md +99 -0
  22. package/template/neo-web-cmps/commitlint.config.js +59 -0
  23. package/template/neo-web-cmps/neo.config.js +53 -0
  24. package/template/neo-web-cmps/package.json +65 -0
  25. package/template/neo-web-cmps/public/css/base.css +283 -0
  26. package/template/neo-web-cmps/public/scripts/app/bluebird.js +6679 -0
  27. package/template/neo-web-cmps/public/template.html +13 -0
  28. package/template/neo-web-cmps/src/assets/css/common.scss +127 -0
  29. package/template/neo-web-cmps/src/assets/css/mixin.scss +47 -0
  30. package/template/neo-web-cmps/src/assets/img/AIBtn.gif +0 -0
  31. package/template/neo-web-cmps/src/assets/img/NeoCRM.jpg +0 -0
  32. package/template/neo-web-cmps/src/assets/img/aiLogo.png +0 -0
  33. package/template/neo-web-cmps/src/assets/img/card-list.svg +1 -0
  34. package/template/neo-web-cmps/src/assets/img/contact-form.svg +1 -0
  35. package/template/neo-web-cmps/src/assets/img/custom-form.svg +1 -0
  36. package/template/neo-web-cmps/src/assets/img/custom-widget.svg +1 -0
  37. package/template/neo-web-cmps/src/assets/img/data-list.svg +1 -0
  38. package/template/neo-web-cmps/src/assets/img/detail.svg +1 -0
  39. package/template/neo-web-cmps/src/assets/img/favicon.png +0 -0
  40. package/template/neo-web-cmps/src/assets/img/map.svg +1 -0
  41. package/template/neo-web-cmps/src/assets/img/search.svg +1 -0
  42. package/template/neo-web-cmps/src/assets/img/table.svg +1 -0
  43. package/template/neo-web-cmps/src/components/entityGrid2__c/index.tsx +72 -0
  44. package/template/neo-web-cmps/src/components/entityGrid2__c/model.ts +195 -0
  45. package/template/neo-web-cmps/src/components/entityGrid2__c/style.scss +13 -0
  46. package/template/neo-web-cmps/src/components/entityGrid__c/index.tsx +52 -0
  47. package/template/neo-web-cmps/src/components/entityGrid__c/model.ts +195 -0
  48. package/template/neo-web-cmps/src/components/entityGrid__c/style.scss +13 -0
  49. package/template/neo-web-cmps/src/utils/axiosFetcher.ts +37 -0
  50. package/template/neo-web-cmps/src/utils/queryObjectData.ts +112 -0
  51. package/template/neo-web-cmps/src/utils/xobjects.ts +167 -0
  52. package/template/neo-web-cmps/tsconfig.json +39 -0
  53. package/template/react-custom-cmp-template/package.json +1 -1
  54. package/template/react-ts-custom-cmp-template/package.json +1 -1
  55. package/template/vue2-custom-cmp-template/package.json +1 -1
@@ -0,0 +1,59 @@
1
+ /**
2
+ * https://www.npmjs.com/package/@commitlint/config-conventional\
3
+ *
4
+ * Git提交规范-配置文件
5
+ * Commit message 由Header、Body 和 Footer三个部分组成,其格式如下:
6
+ * <type>(<scope>): <subject>
7
+ * <BLANK LINE>
8
+ * <body>
9
+ * <BLANK LINE>
10
+ * <footer>
11
+ *
12
+ *【备注】
13
+ * type 用于说明 commit 的类别,常用下面 7 个标识:
14
+ * scope 用于说明当前功能点作用于哪个页面或者哪个功能模块;
15
+ * subject 用于简短的描述当前commit,不超过50个字符;
16
+ * body 用于填写对本次 commit 的详细描述,可以分成多行;
17
+ * footer 不兼容变动声明,或者关闭 Issue。
18
+ *
19
+ * 【type类型取值类型】
20
+ * feat:新功能(feature)
21
+ * fix:功能优化
22
+ * bug:修补bug
23
+ * docs:文档(documentation)
24
+ * style:格式(不影响代码运行的变动)
25
+ * refactor:重构(即不是新增功能,也不是修改bug的代码变动)
26
+ * test:增加测试
27
+ * chore:构建过程或辅助工具的变动
28
+ * build:影响构建系统或外部依赖项的更改(示例范围:gulp,broccoli,npm)
29
+ * ci:对 CI 配置文件和脚本的更改(示例范围:Travis,Circle,BrowserStack,SauceLabs)
30
+ * perf:改进性能的代码更改
31
+ *
32
+ */
33
+
34
+ module.exports = {
35
+ extends: ['@commitlint/config-conventional'],
36
+ rules: {
37
+ 'type-enum': [
38
+ 2,
39
+ 'always',
40
+ [
41
+ 'feat',
42
+ 'fix',
43
+ 'bug',
44
+ 'docs',
45
+ 'style',
46
+ 'refactor',
47
+ 'test',
48
+ 'chore',
49
+ 'perf',
50
+ 'build',
51
+ 'ci',
52
+ ],
53
+ ],
54
+ 'type-empty': [2, 'never'],
55
+ 'scope-empty': [1, 'never'],
56
+ 'subject-full-stop': [0, 'never'],
57
+ 'subject-case': [0, 'never'],
58
+ },
59
+ };
@@ -0,0 +1,53 @@
1
+ 'use strict';
2
+ const path = require('path');
3
+ const fs = require('fs');
4
+
5
+ // 统一路径解析
6
+ function resolve(dir) {
7
+ return path.resolve(__dirname, dir);
8
+ }
9
+
10
+ // 包括生产和开发的环境配置信息
11
+ module.exports = {
12
+ settings: {
13
+ enableESLint: false,
14
+ enableESLintFix: false,
15
+ enableStyleLint: false,
16
+ enableStyleLintFix: false
17
+ },
18
+ webpack: {
19
+ target: [
20
+ "web",
21
+ "es5"
22
+ ],
23
+ resolve: {
24
+ extensions: [
25
+ ".js",
26
+ ".jsx",
27
+ ".ts",
28
+ ".tsx",
29
+ ".umd.js",
30
+ ".min.js",
31
+ ".json"
32
+ ],
33
+ alias: {
34
+ "@": resolve("./src"),
35
+ $assets: resolve("./src/assets"),
36
+ $public: resolve("./public"),
37
+ $utils: resolve("./src/utils")
38
+ }
39
+ },
40
+ sassResources: [
41
+ resolve("./src/assets/css/common.scss"),
42
+ resolve("./src/assets/css/mixin.scss")
43
+ ],
44
+ ignoreNodeModules: false
45
+ },
46
+ linkDebug: {},
47
+ neoConfig: {
48
+ neoBaseURL: "https://crm-test.xiaoshouyi.com",
49
+ loginURL: "https://login-test.xiaoshouyi.com/auc/oauth2/auth",
50
+ tokenURL: "https://login-test.xiaoshouyi.com/auc/oauth2/token"
51
+ },
52
+ pushCmp: {}
53
+ };
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "neo-web-cmps",
3
+ "version": "1.1.0",
4
+ "description": "Neo Web 核心业务组件使用示例(react&ts技术栈)",
5
+ "framework": "react-ts",
6
+ "keywords": [
7
+ "react&ts技术栈",
8
+ "neoweb 核心业务组件"
9
+ ],
10
+ "author": "wibetter",
11
+ "license": "MIT",
12
+ "scripts": {
13
+ "linkDebug": "neo linkDebug",
14
+ "neoLogin": "neo login",
15
+ "pushCmp": "neo push cmp",
16
+ "pullCmp": "neo pull cmp",
17
+ "deleteCmp": "neo delete cmp",
18
+ "build2lib": "neo build2lib",
19
+ "format": "prettier --write \"src/**/**/*.{js,jsx,ts,tsx,vue,scss,json}\""
20
+ },
21
+ "files": [
22
+ "dist/*"
23
+ ],
24
+ "husky": {
25
+ "hooks": {
26
+ "pre-commit": "lint-staged",
27
+ "commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
28
+ }
29
+ },
30
+ "lint-staged": {
31
+ "src/**/**/*.{js,jsx,ts,tsx,vue,scss,json}": [
32
+ "prettier --write"
33
+ ]
34
+ },
35
+ "dependencies": {
36
+ "neo-register": "^1.2.0",
37
+ "react": "^16.9.0",
38
+ "react-dom": "^16.9.0",
39
+ "axios": "^1.7.0",
40
+ "antd": "^4.9.4",
41
+ "lodash": "^4.17.23",
42
+ "neo-open-api": "^1.2.3",
43
+ "@wibetter/json-editor": "^6.0.5",
44
+ "tslib": "2.3.0"
45
+ },
46
+ "devDependencies": {
47
+ "@babel/runtime": "^7.26.0",
48
+ "@commitlint/cli": "^18.0.0",
49
+ "@commitlint/config-conventional": "^18.0.0",
50
+ "@types/react": "^16.9.11",
51
+ "@types/react-dom": "^16.9.15",
52
+ "@types/axios": "^0.14.0",
53
+ "neo-cmp-cli": "^1.12.10",
54
+ "husky": "^4.2.5",
55
+ "lint-staged": "^10.2.9",
56
+ "prettier": "^2.0.5"
57
+ },
58
+ "overrides": {
59
+ "typescript": "<6"
60
+ },
61
+ "engines": {
62
+ "node": ">= 16.0.0",
63
+ "npm": ">= 8.0.0"
64
+ }
65
+ }
@@ -0,0 +1,283 @@
1
+ @charset "utf-8";
2
+
3
+ body {
4
+ margin: 0;
5
+ border-width: 0;
6
+ padding: 0;
7
+ font-family: PingFangSC-Regular;
8
+ }
9
+
10
+ div,
11
+ dl,
12
+ dt,
13
+ dd,
14
+ ul,
15
+ ol,
16
+ li,
17
+ h1,
18
+ h2,
19
+ h3,
20
+ h4,
21
+ h5,
22
+ h6,
23
+ pre,
24
+ code,
25
+ form,
26
+ fieldset,
27
+ legend,
28
+ input,
29
+ textarea,
30
+ p,
31
+ blockquote,
32
+ th,
33
+ td,
34
+ hr,
35
+ i,
36
+ button,
37
+ article,
38
+ aside,
39
+ details,
40
+ figcaption,
41
+ figure,
42
+ footer,
43
+ header,
44
+ hgroup,
45
+ menu,
46
+ nav,
47
+ section {
48
+ margin: 0;
49
+ padding: 0;
50
+ border-width: 0;
51
+ font-family: PingFangSC-Regular;
52
+ box-sizing: padding-box;
53
+ -webkit-box-sizing: padding-box;
54
+ -moz-box-sizing: padding-box;
55
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
56
+ }
57
+
58
+ body,
59
+ button,
60
+ input,
61
+ select,
62
+ textarea {
63
+ font-size: 14px;
64
+ line-height: 1.125;
65
+ }
66
+
67
+ [v-cloak] {
68
+ display: none;
69
+ }
70
+
71
+ li,
72
+ ul,
73
+ ol {
74
+ list-style: none;
75
+ }
76
+
77
+ a {
78
+ text-decoration: none;
79
+ }
80
+
81
+ a:active {
82
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
83
+ }
84
+
85
+ sub,
86
+ sup {
87
+ line-height: 0;
88
+ }
89
+
90
+ table {
91
+ border-collapse: collapse;
92
+ border-spacing: 0;
93
+ }
94
+
95
+ li {
96
+ list-style: none;
97
+ }
98
+
99
+ fieldset,
100
+ img {
101
+ border: 0;
102
+ }
103
+
104
+ input,
105
+ textarea {
106
+ outline-style: none;
107
+ }
108
+
109
+ input[type='text'],
110
+ input[type='search'],
111
+ input[type='password'] {
112
+ -webkit-border-radius: 0;
113
+ -moz-border-radius: 0;
114
+ -o-border-radius: 0;
115
+ border-radius: 0;
116
+ }
117
+
118
+ textarea {
119
+ resize: none;
120
+ }
121
+
122
+ address,
123
+ caption,
124
+ cite,
125
+ code,
126
+ dfn,
127
+ em,
128
+ i,
129
+ th,
130
+ var {
131
+ font-style: normal;
132
+ font-weight: normal;
133
+ }
134
+
135
+ legend {
136
+ color: #000;
137
+ }
138
+
139
+ abbr,
140
+ acronym {
141
+ border: 0;
142
+ font-variant: normal;
143
+ }
144
+
145
+ a {
146
+ text-decoration: none;
147
+ outline: none;
148
+ }
149
+
150
+ a:hover {
151
+ text-decoration: none;
152
+ }
153
+
154
+ .clearit {
155
+ clear: both;
156
+ height: 0;
157
+ font-size: 0;
158
+ overflow: hidden;
159
+ }
160
+
161
+ /* surface下viewport不生效的解决办法 */
162
+ @media screen and (min-width: 767px) and (device-aspect-ratio: 16/9) {
163
+ @-ms-viewport {
164
+ zoom: 1;
165
+ max-zoom: 1;
166
+ min-zoom: 1;
167
+ }
168
+ }
169
+
170
+ /* surface下IE10 点击链接,背景变色 */
171
+ @media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
172
+ a {
173
+ background-color: transparent;
174
+ }
175
+ }
176
+
177
+ img {
178
+ -ms-interpolation-mode: bicubic;
179
+ image-rendering: optimizeQuality;
180
+ }
181
+
182
+ /* portrait:指定输出设备中的页面可见区域高度大于或等于宽度, landscape:横屏*/
183
+ @media not screen and (orientation: landscape),
184
+ not screen and (orientation: portrait) {
185
+ body,
186
+ button,
187
+ input,
188
+ select,
189
+ textarea {
190
+ font-family: 'Microsoft Yahei', 'Simsun';
191
+ }
192
+ }
193
+
194
+ ::-moz-placeholder {
195
+ color: #767676;
196
+ }
197
+
198
+ ::-webkit-input-placeholder {
199
+ color: #767676;
200
+ }
201
+
202
+ :-ms-input-placeholder {
203
+ color: #767676;
204
+ }
205
+
206
+ .cont-selected {
207
+ display: block !important;
208
+ }
209
+
210
+ .hidden {
211
+ visibility: hidden;
212
+ }
213
+
214
+ .ellipsis {
215
+ overflow: hidden;
216
+ white-space: nowrap;
217
+ text-overflow: ellipsis;
218
+ }
219
+
220
+ .clearfix:after {
221
+ content: '.';
222
+ display: block;
223
+ height: 0;
224
+ visibility: hidden;
225
+ clear: both;
226
+ }
227
+
228
+ .left {
229
+ float: left;
230
+ }
231
+
232
+ .right {
233
+ float: right;
234
+ }
235
+
236
+ .center {
237
+ margin: 0 auto;
238
+ }
239
+
240
+ .text-center {
241
+ text-align: center;
242
+ }
243
+
244
+ .text-right {
245
+ text-align: right;
246
+ }
247
+
248
+ .text-left {
249
+ text-align: left;
250
+ }
251
+
252
+ .no-border {
253
+ border: none !important;
254
+ }
255
+
256
+ .click-event {
257
+ cursor: pointer;
258
+ }
259
+
260
+ /* 增加iphoneX适配 */
261
+ @media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
262
+ .ipx-fixed-bottom {
263
+ bottom: 34px !important;
264
+ }
265
+
266
+ .ipx-fixed-top {
267
+ top: 20px !important;
268
+ }
269
+
270
+ .ipx-margin-top {
271
+ margin-top: 20px !important;
272
+ }
273
+
274
+ .ipx-margin-bottom {
275
+ margin-bottom: 20px !important;
276
+ }
277
+
278
+ .ipx-height {
279
+ height: 34px !important;
280
+ }
281
+ }
282
+
283
+ /* 业务级公用代码 */