@maxelms/create-plugin-cli 1.1.24 → 1.1.25-master.1

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 (46) hide show
  1. package/lib/index.js +4 -4
  2. package/package.json +2 -2
  3. package/templates/angular-micro-plugin/.eslintrc.js +3 -0
  4. package/templates/angular-micro-plugin/README.md +5 -0
  5. package/templates/angular-micro-plugin/manifest.json.tpl +3 -0
  6. package/templates/angular-micro-plugin/package.json.tpl +38 -0
  7. package/templates/angular-micro-plugin/pnpm-lock.yaml +7988 -0
  8. package/templates/angular-micro-plugin/public/configuration.html +13 -0
  9. package/templates/angular-micro-plugin/public/configuration.json +34 -0
  10. package/templates/angular-micro-plugin/public/index.html.tpl +15 -0
  11. package/templates/angular-micro-plugin/src/app.component.css +22 -0
  12. package/templates/angular-micro-plugin/src/app.component.html +312 -0
  13. package/templates/angular-micro-plugin/src/app.component.ts.tpl +33 -0
  14. package/templates/angular-micro-plugin/src/app.module.ts +10 -0
  15. package/templates/angular-micro-plugin/src/index.ts.tpl +53 -0
  16. package/templates/angular-micro-plugin/src/single-spa-props.ts +7 -0
  17. package/templates/angular-micro-plugin/tsconfig.json +25 -0
  18. package/templates/angular-micro-plugin/webpack.config.js +112 -0
  19. package/templates/jQuery-micro-app/src/main.js.tpl +1 -1
  20. package/templates/playground/dist/main.js +1 -1
  21. package/templates/react-micro-app/src/index.tsx +1 -1
  22. package/templates/react-micro-button/configuration/Configuration.tsx +1 -1
  23. package/templates/react-micro-button/public/configuration.html +1 -1
  24. package/templates/react-micro-field/configuration/Configuration.tsx +1 -1
  25. package/templates/react-micro-field/public/configuration.html +1 -1
  26. package/templates/react-micro-field/public/index.html +1 -1
  27. package/templates/react-micro-field/src/App.tsx.tpl +4 -4
  28. package/templates/react-micro-field-umi/src/pages/configuration/index.tsx +1 -1
  29. package/templates/react-micro-field-umi/src/pages/index.tsx.tpl +4 -4
  30. package/templates/react-micro-field-umi/src/pages/interface.ts +1 -1
  31. package/templates/react-micro-plugin/configuration/Configuration.tsx +1 -1
  32. package/templates/react-micro-plugin/public/configuration.html +11 -8
  33. package/templates/react-micro-plugin-umi/src/pages/configuration/index.tsx +1 -1
  34. package/templates/vue-micro-app/src/main.js +1 -1
  35. package/templates/vue-micro-button/public/configuration.html +1 -1
  36. package/templates/vue-micro-field/public/configuration.html +1 -1
  37. package/templates/vue-micro-field/public/index.html +1 -1
  38. package/templates/vue-micro-field/src/App.vue.tpl +2 -2
  39. package/templates/vue-micro-plugin/configuration/App.vue +1 -1
  40. package/templates/vue3-micro-app/src/main.js +2 -2
  41. package/templates/vue3-micro-app/src/public-path.js +1 -1
  42. package/templates/vue3-micro-button/public/configuration.html +1 -1
  43. package/templates/vue3-micro-button/public/index.html +1 -1
  44. package/templates/vue3-micro-field/public/configuration.html +1 -1
  45. package/templates/vue3-micro-field/public/index.html +1 -1
  46. package/templates/vue3-micro-field/src/App.vue.tpl +2 -2
@@ -19,7 +19,7 @@ const render = (props?: any) => {
19
19
  }
20
20
 
21
21
  // @ts-ignore
22
- if (!window.__POWERED_BY_QIANKUN__) {
22
+ if (!window.__POWERED_BY_MAXELMS__) {
23
23
  render()
24
24
  }
25
25
 
@@ -96,7 +96,7 @@ const Configuration: React.FC<ConfigurationType> = () => {
96
96
  <Form.Item name="label" label="label">
97
97
  <Input />
98
98
  </Form.Item>
99
- <Form.Item name="field" label="绑定字段">
99
+ <Form.Item name="field" label="绑定属性">
100
100
  <Select
101
101
  options={fields.map((field) => {
102
102
  return {
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <title>Maxelms 字段组件</title>
5
+ <title>Maxelms 属性组件</title>
6
6
  </head>
7
7
  <body>
8
8
  <div id="root"></div>
@@ -96,7 +96,7 @@ const Configuration: React.FC<ConfigurationType> = () => {
96
96
  <Form.Item name="label" label="label">
97
97
  <Input />
98
98
  </Form.Item>
99
- <Form.Item name="field" label="绑定字段">
99
+ <Form.Item name="field" label="绑定属性">
100
100
  <Select
101
101
  options={fields.map((field) => {
102
102
  return {
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <title>Maxelms 字段组件</title>
5
+ <title>Maxelms 属性组件</title>
6
6
  </head>
7
7
  <body>
8
8
  <div id="root"></div>
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <title>Maxelms 字段组件</title>
5
+ <title>Maxelms 属性组件</title>
6
6
  </head>
7
7
  <body>
8
8
  <div id="root"></div>
@@ -14,8 +14,8 @@ const App = (props: any) => {
14
14
  propName3: disabled,
15
15
  } = configurations || {}
16
16
 
17
- /** value、onChange 是字段组件作为表单受控组件的必要属性 */
18
- const inputValue = value?.value || "欢迎使用 Maxelms 字段组件"
17
+ /** value、onChange 是属性组件作为表单受控组件的必要属性 */
18
+ const inputValue = value?.value || "欢迎使用 Maxelms 属性组件"
19
19
 
20
20
  const onInputChange: React.ChangeEventHandler<HTMLInputElement> = e => {
21
21
  onChange && onChange({
@@ -24,14 +24,14 @@ const App = (props: any) => {
24
24
  })
25
25
  }
26
26
 
27
- /** 字段只读态 */
27
+ /** 属性只读态 */
28
28
  if (readOnly) {
29
29
  return (
30
30
  <span>{inputValue}</span>
31
31
  )
32
32
  }
33
33
 
34
- /** 字段编辑态 */
34
+ /** 属性编辑态 */
35
35
  return (
36
36
  <div className={prefixCls}>
37
37
  <div>
@@ -73,7 +73,7 @@ const Configuration: React.FC<ConfigurationType> = () => {
73
73
  <Form.Item name="propName3" label="配置项三" valuePropName="checked">
74
74
  <Switch />
75
75
  </Form.Item>
76
- <Form.Item name="field" label="绑定字段">
76
+ <Form.Item name="field" label="绑定属性">
77
77
  <Select
78
78
  options={fields.map((field) => {
79
79
  return {
@@ -17,8 +17,8 @@ const App = (props: any) => {
17
17
  propName3: disabled,
18
18
  } = configurations || {}
19
19
 
20
- /** value、onChange 是字段组件作为表单受控组件的必要属性 */
21
- const inputValue = value?.value || "欢迎使用 Maxelms 字段组件"
20
+ /** value、onChange 是属性组件作为表单受控组件的必要属性 */
21
+ const inputValue = value?.value || "欢迎使用 Maxelms 属性组件"
22
22
 
23
23
  const onInputChange: React.ChangeEventHandler<HTMLInputElement> = e => {
24
24
  onChange && onChange({
@@ -27,14 +27,14 @@ const App = (props: any) => {
27
27
  })
28
28
  }
29
29
 
30
- /** 字段只读态 */
30
+ /** 属性只读态 */
31
31
  if (readOnly) {
32
32
  return (
33
33
  <span>{inputValue}</span>
34
34
  )
35
35
  }
36
36
 
37
- /** 字段编辑态 */
37
+ /** 属性编辑态 */
38
38
  return (
39
39
  <div className={prefixCls}>
40
40
  <div>
@@ -5,7 +5,7 @@ export interface PageInfoProps {
5
5
  mode: 'design' | 'application'
6
6
  /** 页面类型:新建页、编辑页、列表页、迷你详情页 */
7
7
  type: 'create' | 'edit' | 'list' | 'mini'
8
- /** 集成类型:头部高亮字段、表格、表单 */
8
+ /** 集成类型:头部高亮属性、表格、表单 */
9
9
  integrate: 'highlight' | 'table' | 'form'
10
10
  /** 布局设计器模式:webpc、移动端 */
11
11
  designMode?: 'web' | 'mobile'
@@ -97,7 +97,7 @@ const Configuration: React.FC<ConfigurationType> = () => {
97
97
  <Form.Item name="label" label="label">
98
98
  <Input />
99
99
  </Form.Item>
100
- <Form.Item name="field" label="绑定字段">
100
+ <Form.Item name="field" label="绑定属性">
101
101
  <Select
102
102
  options={fields.map((field) => {
103
103
  return {
@@ -1,10 +1,13 @@
1
1
  <!DOCTYPE html>
2
2
  <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <title>Maxelms 页面组件</title>
6
- </head>
7
- <body>
8
- <div id="root"></div>
9
- </body>
10
- </html>
3
+
4
+ <head>
5
+ <meta charset="utf-8" />
6
+ <title>Maxelms 页面组件</title>
7
+ </head>
8
+
9
+ <body>
10
+ <div id="root"></div>
11
+ </body>
12
+
13
+ </html>
@@ -96,7 +96,7 @@ const Configuration: React.FC<ConfigurationType> = () => {
96
96
  <Form.Item name="label" label="label">
97
97
  <Input />
98
98
  </Form.Item>
99
- <Form.Item name="field" label="绑定字段">
99
+ <Form.Item name="field" label="绑定属性">
100
100
  <Select
101
101
  options={fields.map((field) => {
102
102
  return {
@@ -46,7 +46,7 @@ const render = (props = {}) => {
46
46
  }
47
47
 
48
48
  /** 独立开发环境 */
49
- if (!window.__POWERED_BY_QIANKUN__) {
49
+ if (!window.__POWERED_BY_MAXELMS__) {
50
50
  render()
51
51
  }
52
52
 
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <title>Maxelms 字段组件</title>
5
+ <title>Maxelms 属性组件</title>
6
6
  </head>
7
7
  <body>
8
8
  <div id="root"></div>
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <title>Maxelms 字段组件</title>
5
+ <title>Maxelms 属性组件</title>
6
6
  </head>
7
7
  <body>
8
8
  <div id="root"></div>
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <title>Maxelms 字段组件</title>
5
+ <title>Maxelms 属性组件</title>
6
6
  </head>
7
7
  <body>
8
8
  <div id="root"></div>
@@ -27,9 +27,9 @@ export default {
27
27
  }
28
28
  },
29
29
  computed: {
30
- /** value、onChange 是字段组件作为表单受控组件的必要属性 */
30
+ /** value、onChange 是属性组件作为表单受控组件的必要属性 */
31
31
  value () {
32
- return this.$root?.masterProps?.value?.value || "欢迎使用 Maxelms 字段组件"
32
+ return this.$root?.masterProps?.value?.value || "欢迎使用 Maxelms 属性组件"
33
33
  },
34
34
  onChange () {
35
35
  return this.$root?.masterProps?.onChange
@@ -19,7 +19,7 @@
19
19
  <el-form-item label="label">
20
20
  <el-input v-model="form.label"></el-input>
21
21
  </el-form-item>
22
- <el-form-item label="绑定字段">
22
+ <el-form-item label="绑定属性">
23
23
  <el-select v-model="form.field">
24
24
  <el-option :label="field.fieldName" :value="field.pathChain" v-for="(field, index) in formFields" :key="index"></el-option>
25
25
  </el-select>
@@ -13,7 +13,7 @@ let history = null;
13
13
  function render(props = {}) {
14
14
  console.log(props)
15
15
  const { container, configurations } = props;
16
- history = createWebHistory(window.__POWERED_BY_QIANKUN__ ? '/' : '/');
16
+ history = createWebHistory(window.__POWERED_BY_MAXELMS__ ? '/' : '/');
17
17
  router = createRouter({
18
18
  history,
19
19
  routes,
@@ -25,7 +25,7 @@ function render(props = {}) {
25
25
  instance.mount(container ? container.querySelector('#app') : '#app');
26
26
  }
27
27
 
28
- if (!window.__POWERED_BY_QIANKUN__) {
28
+ if (!window.__POWERED_BY_MAXELMS__) {
29
29
  render();
30
30
  }
31
31
 
@@ -1,4 +1,4 @@
1
- if (window.__POWERED_BY_QIANKUN__) {
1
+ if (window.__POWERED_BY_MAXELMS__) {
2
2
  // eslint-disable-next-line no-undef
3
3
  __webpack_public_path__ = window.__INJECTED_PUBLIC_PATH_BY_QIANKUN__;
4
4
  }
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <title>Maxelms 字段组件</title>
5
+ <title>Maxelms 属性组件</title>
6
6
  </head>
7
7
  <body>
8
8
  <div id="root"></div>
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <title>Maxelms 字段组件</title>
5
+ <title>Maxelms 属性组件</title>
6
6
  </head>
7
7
  <body>
8
8
  <div id="root"></div>
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <title>Maxelms 字段组件</title>
5
+ <title>Maxelms 属性组件</title>
6
6
  </head>
7
7
  <body>
8
8
  <div id="root"></div>
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
- <title>Maxelms 字段组件</title>
5
+ <title>Maxelms 属性组件</title>
6
6
  </head>
7
7
  <body>
8
8
  <div id="root"></div>
@@ -38,9 +38,9 @@ export default {
38
38
  }
39
39
  },
40
40
  computed: {
41
- /** value、onChange 是字段组件作为表单受控组件的必要属性 */
41
+ /** value、onChange 是属性组件作为表单受控组件的必要属性 */
42
42
  value () {
43
- return this.masterProps?.value?.value || "欢迎使用 Maxelms 字段组件"
43
+ return this.masterProps?.value?.value || "欢迎使用 Maxelms 属性组件"
44
44
  },
45
45
  onChange () {
46
46
  return this.masterProps?.onChange