cc-core-cli 1.0.138 → 1.0.140

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 (69) hide show
  1. package/package.json +1 -1
  2. package/template/admin/next.config.js +16 -56
  3. package/template/admin/pages/_app.js +5 -4
  4. package/template/admin/public/private-image-worker.js +1 -1
  5. package/template/admin/public/static/styles/activity_log.css +133 -0
  6. package/template/admin/public/static/styles/{calendar.less → calendar.css} +84 -26
  7. package/template/admin/public/static/styles/collections.css +120 -0
  8. package/template/admin/public/static/styles/compute_field.css +244 -0
  9. package/template/admin/public/static/styles/custom-antd.css +109 -0
  10. package/template/admin/public/static/styles/{custom_icon.less → custom_icon.css} +94 -70
  11. package/template/admin/public/static/styles/{date_search.less → date_search.css} +11 -15
  12. package/template/admin/public/static/styles/datepicker.css +301 -0
  13. package/template/admin/public/static/styles/detail.css +2645 -0
  14. package/template/admin/public/static/styles/{editTable.less → editTable.css} +12 -5
  15. package/template/admin/public/static/styles/entities.css +864 -0
  16. package/template/admin/public/static/styles/filter.css +18 -0
  17. package/template/admin/public/static/styles/filter_new.css +152 -0
  18. package/template/admin/public/static/styles/hook.css +140 -0
  19. package/template/admin/public/static/styles/import_export.css +48 -0
  20. package/template/admin/public/static/styles/input.css +77 -0
  21. package/template/admin/public/static/styles/layout.css +1465 -0
  22. package/template/admin/public/static/styles/login.css +269 -0
  23. package/template/admin/public/static/styles/mainheader.css +45 -0
  24. package/template/admin/public/static/styles/matrix.css +90 -0
  25. package/template/admin/public/static/styles/menu.css +60 -0
  26. package/template/admin/public/static/styles/permission_denied.css +13 -0
  27. package/template/admin/public/static/styles/pipeline.css +82 -0
  28. package/template/admin/public/static/styles/print_template.css +659 -0
  29. package/template/admin/public/static/styles/rabbitmq.css +5 -0
  30. package/template/admin/public/static/styles/restful.css +19 -0
  31. package/template/admin/public/static/styles/setting.css +480 -0
  32. package/template/admin/public/static/styles/style.css +1632 -0
  33. package/template/admin/public/static/styles/style_backup.css +1616 -0
  34. package/template/admin/public/static/styles/style_clean.css +51 -0
  35. package/template/admin/public/static/styles/system.css +11 -0
  36. package/template/admin/public/static/styles/theme-override.css +118 -0
  37. package/template/admin/public/static/styles/tree_theme_minimal.css +284 -0
  38. package/template/admin/public/static/styles/versioning_control.css +16 -0
  39. package/template/admin/public/static/styles/wysiwyg.css +3 -0
  40. package/template/admin/theme/main.css +38 -0
  41. package/template/admin/theme/vars.css +10 -0
  42. package/template/admin/public/static/styles/activity_log.less +0 -157
  43. package/template/admin/public/static/styles/collections.less +0 -123
  44. package/template/admin/public/static/styles/compute_field.less +0 -250
  45. package/template/admin/public/static/styles/custom-antd.less +0 -80
  46. package/template/admin/public/static/styles/datepicker.less +0 -323
  47. package/template/admin/public/static/styles/detail.less +0 -2690
  48. package/template/admin/public/static/styles/entities.less +0 -897
  49. package/template/admin/public/static/styles/filter.less +0 -24
  50. package/template/admin/public/static/styles/filter_new.less +0 -154
  51. package/template/admin/public/static/styles/hook.less +0 -142
  52. package/template/admin/public/static/styles/import_export.less +0 -62
  53. package/template/admin/public/static/styles/input.less +0 -386
  54. package/template/admin/public/static/styles/layout.less +0 -1455
  55. package/template/admin/public/static/styles/login.less +0 -263
  56. package/template/admin/public/static/styles/mainheader.less +0 -32
  57. package/template/admin/public/static/styles/matrix.less +0 -105
  58. package/template/admin/public/static/styles/permission_denied.less +0 -13
  59. package/template/admin/public/static/styles/pipeline.less +0 -84
  60. package/template/admin/public/static/styles/print_template.less +0 -730
  61. package/template/admin/public/static/styles/rabbitmq.less +0 -3
  62. package/template/admin/public/static/styles/restful.less +0 -22
  63. package/template/admin/public/static/styles/setting.less +0 -534
  64. package/template/admin/public/static/styles/style.less +0 -1957
  65. package/template/admin/public/static/styles/system.less +0 -11
  66. package/template/admin/public/static/styles/tree_theme_minimal.less +0 -321
  67. package/template/admin/public/static/styles/versioning_control.less +0 -24
  68. package/template/admin/public/static/styles/wysiwyg.less +0 -8
  69. /package/template/admin/public/static/styles/{custom.less → custom.css} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cc-core-cli",
3
- "version": "1.0.138",
3
+ "version": "1.0.140",
4
4
  "description": "Command Line Interface tool for generating project templates for the (Your Platform's Name) platform.",
5
5
  "main": "bin/index.js",
6
6
  "scripts": {
@@ -1,60 +1,18 @@
1
1
  require('dotenv').config()
2
2
 
3
- const withPlugins = require('next-compose-plugins')
4
- const withLess = require('next-with-less')
5
- const AntdDayjsWebpackPlugin = require('antd-dayjs-webpack-plugin')
6
- const withPWA = require('next-pwa')
7
- const generateTheme = require('cc-next-dynamic-antd-theme/plugin')
8
-
9
- const prefix = '/'
10
- const path = require('path')
11
-
12
-
13
- const withAntdTheme = generateTheme({
14
- antDir: path.join(__dirname, './node_modules/antd'),
15
- stylesDir: path.join(__dirname, './theme'),
16
- varFile: path.join(__dirname, './theme/vars.less'),
17
- mainLessFile: path.join(__dirname, './theme/main.less'),
18
- outputFilePath: path.join(__dirname, './.next/static/color.less')
19
- })
20
-
21
- const withAntd = (nextConfig = {}) => {
22
- return Object.assign({}, nextConfig, {
23
- onDemandEntries: {
24
- maxInactiveAge: 1000 * 60 * 60,
25
- pagesBufferLength: 5
26
- },
27
- lessLoaderOptions: {
28
- javascriptEnabled: true
29
- },
30
- poweredByHeader: false,
31
- cssModules: true,
32
- cssLoaderOptions: {
33
- camelCase: true,
34
- localIdentName: '[local]___[hash:base64:5]',
35
- getLocalIdent: (context, localIdentName, localName, options) => {
36
- return localName
37
- }
38
- },
39
- })
40
- }
41
-
42
- module.exports = withPlugins([
43
- [withLess, {
44
- lessLoaderOptions: {}
45
- }],
46
- withAntd,
47
- withAntdTheme,
48
- ], {
49
- serverRuntimeConfig: {},
50
- publicRuntimeConfig: { prefix },
51
- assetPrefix: prefix,
52
- // experimental: {
53
- // //largePageDataBytes: 128 * 1000, // 128KB by default
54
- // largePageDataBytes: 128 * 100000,
55
- // },
56
- plugins: [
57
- new AntdDayjsWebpackPlugin()
3
+ const nextConfig = {
4
+ reactStrictMode: true,
5
+ transpilePackages: [
6
+ 'rc-util',
7
+ '@ant-design',
8
+ 'kitchen-flow-editor',
9
+ '@ant-design/pro-editor',
10
+ 'zustand', 'leva', 'antd',
11
+ 'rc-pagination',
12
+ 'rc-tree',
13
+ 'rc-picker',
14
+ 'ahooks',
15
+ 'rc-table'
58
16
  ],
59
17
  generateBuildId: async () => {
60
18
  if (process.env.BUILD_ID) {
@@ -63,4 +21,6 @@ module.exports = withPlugins([
63
21
  }
64
22
  return null
65
23
  }
66
- })
24
+ }
25
+
26
+ module.exports = nextConfig
@@ -1,9 +1,10 @@
1
-
2
- import '../public/static/styles/style.less'
3
- import '../public/static/styles/custom.less'
4
- import 'react-toastify/dist/ReactToastify.css';
1
+ import "../public/static/styles/style.css";
2
+ import "../public/static/styles/custom.css";
3
+ import "../public/static/styles/custom-antd.css";
4
+ import "react-toastify/dist/ReactToastify.css";
5
5
  import "slick-carousel/slick/slick.css";
6
6
  import "slick-carousel/slick/slick-theme.css";
7
+ import "antd/dist/reset.css";
7
8
 
8
9
  import { CustomApp } from '@shopstack/cc-admin-lib'
9
10
  import { importCustomModules } from '@shopstack/cc-admin-lib';
@@ -17,5 +17,5 @@ async function modifyAPIResponse(request) {
17
17
  mode: 'same-origin',
18
18
  credentials: 'include',
19
19
  });
20
- return await fetch(request)
20
+ return fetch(request)
21
21
  }
@@ -0,0 +1,133 @@
1
+ .modal-activity-log-default-profile svg {
2
+ width : 100px;
3
+ height: 100px;
4
+ }
5
+
6
+ #log_setting_form .ant-form-item-has-feedback .ant-switch {
7
+ margin: 0;
8
+ }
9
+
10
+ .activity-log-button {
11
+ color: rgb(102, 0, 255);
12
+ }
13
+
14
+ .activity-log-button.ant-btn {
15
+ border: 1px solid rgb(102, 0, 255);
16
+ }
17
+
18
+ .activity-log-button.ant-btn:hover,
19
+ .activity-log-button.ant-btn:focus {
20
+ border: 1px solid rgb(102, 0, 255);
21
+ }
22
+
23
+ .ant-drawer.activity-log .ant-drawer-content-wrapper {
24
+ width: 450px !important;
25
+ }
26
+
27
+ .ant-drawer.activity-log .ant-drawer-content-wrapper .ant-drawer-wrapper-body .ant-drawer-title .refresh svg {
28
+ width : 16px;
29
+ height : 16px;
30
+ margin-right: 0px;
31
+ }
32
+
33
+ .ant-drawer.activity-log .ant-drawer-content-wrapper .ant-drawer-wrapper-body .ant-drawer-title svg {
34
+ width : 16px;
35
+ height : 16px;
36
+ margin-right: 6px;
37
+ }
38
+
39
+ .ant-drawer.activity-log .ant-drawer-content-wrapper .ant-drawer-wrapper-body .ant-drawer-body {
40
+ padding: 24px 0px;
41
+ }
42
+
43
+ .ant-drawer.activity-log .ant-drawer-content-wrapper .ant-drawer-wrapper-body .ant-drawer-body .ant-divider.ant-divider-horizontal:first-child {
44
+ display: none;
45
+ }
46
+
47
+ .ant-drawer.activity-log .ant-drawer-content-wrapper .ant-drawer-wrapper-body .ant-drawer-body .title-date {
48
+ margin-bottom: 15px;
49
+ padding : 0px 24px;
50
+ }
51
+
52
+ .ant-drawer.activity-log .ant-drawer-content-wrapper .ant-drawer-wrapper-body .ant-drawer-body .activity-contents {
53
+ margin-bottom: 3px;
54
+ padding : 8px 24px;
55
+ }
56
+
57
+ .ant-drawer.activity-log .ant-drawer-content-wrapper .ant-drawer-wrapper-body .ant-drawer-body .activity-contents .left-section .image {
58
+ margin-right: 10px;
59
+ width : 55px;
60
+ }
61
+
62
+ .ant-drawer.activity-log .ant-drawer-content-wrapper .ant-drawer-wrapper-body .ant-drawer-body .activity-contents .left-section .image .image-action {
63
+ text-align: center;
64
+ margin-top: 3px;
65
+ }
66
+
67
+ .ant-drawer.activity-log .ant-drawer-content-wrapper .ant-drawer-wrapper-body .ant-drawer-body .activity-contents .left-section .image .image-action .ant-avatar-circle {
68
+ width : 38px;
69
+ height : 38px;
70
+ margin-bottom: 4px;
71
+ }
72
+
73
+ .ant-drawer.activity-log .ant-drawer-content-wrapper .ant-drawer-wrapper-body .ant-drawer-body .activity-contents .left-section .image .image-action .anticon-user svg {
74
+ width : 36px;
75
+ height: 36px;
76
+ }
77
+
78
+ .ant-drawer.activity-log .ant-drawer-content-wrapper .ant-drawer-wrapper-body .ant-drawer-body .activity-contents .left-section .image .image-action .action {
79
+ font-size: 13px;
80
+ }
81
+
82
+ .ant-drawer.activity-log .ant-drawer-content-wrapper .ant-drawer-wrapper-body .ant-drawer-body .activity-contents .left-section .user-name {
83
+ font-weight: 500;
84
+ font-size : 13px;
85
+ }
86
+
87
+ .ant-drawer.activity-log .ant-drawer-content-wrapper .ant-drawer-wrapper-body .ant-drawer-body .activity-contents .left-section .ip {
88
+ font-size: 10px;
89
+ }
90
+
91
+ .ant-drawer.activity-log .ant-drawer-content-wrapper .ant-drawer-wrapper-body .ant-drawer-body .activity-contents .right-section {
92
+ position : relative;
93
+ text-align: right;
94
+ }
95
+
96
+ .ant-drawer.activity-log .ant-drawer-content-wrapper .ant-drawer-wrapper-body .ant-drawer-body .activity-contents .right-section .time {
97
+ font-size: 12px;
98
+ }
99
+
100
+ .ant-drawer.activity-log .ant-drawer-content-wrapper .ant-drawer-wrapper-body .ant-drawer-body .activity-contents .right-section .type-log {
101
+ position: absolute;
102
+ bottom : 0;
103
+ right : 0;
104
+ }
105
+
106
+ .ant-drawer.activity-log .ant-drawer-content-wrapper .ant-drawer-wrapper-body .ant-drawer-body .activity-contents .right-section .type-log .ant-tag {
107
+ margin-right: 0;
108
+ }
109
+
110
+ .ant-drawer.activity-log .ant-drawer-content-wrapper .ant-drawer-wrapper-body .ant-drawer-body .activity-contents.failed {
111
+ background : #fff1f0 !important;
112
+ border-color: #ffa39e;
113
+ }
114
+
115
+ .ant-btn.activity-log svg {
116
+ width : 16px;
117
+ height: 16px;
118
+ }
119
+
120
+ .ant-list-split.activity-log-diff-list .ant-list-item {
121
+ border-bottom: none;
122
+ padding: 6px 0;
123
+ }
124
+
125
+ .ant-list-split.activity-log-diff-list .list-item-container {
126
+ display: block;
127
+ }
128
+
129
+ @media (max-width: 768px) {
130
+ .ant-drawer.activity-log .ant-drawer-content-wrapper {
131
+ width: 85% !important;
132
+ }
133
+ }
@@ -4,15 +4,16 @@
4
4
  border-top-right-radius: 0;
5
5
  border-bottom-right-radius: 0;
6
6
  }
7
+
7
8
  .rbc-toolbar button {
8
- color: @text-color;
9
+ color: var(--text-color);
9
10
  display: inline-block;
10
11
  margin: 0;
11
12
  text-align: center;
12
13
  vertical-align: middle;
13
14
  background: none;
14
15
  background-image: none;
15
- border: 1px solid @btn-default-border;
16
+ border: 1px solid var(--btn-default-border);
16
17
  padding: 0.375rem 1rem;
17
18
  border-radius: 4px;
18
19
  line-height: normal;
@@ -24,29 +25,31 @@
24
25
  position: relative;
25
26
  z-index: 1;
26
27
  background-image: none;
27
- box-shadow: @btn-primary-shadow;
28
- background-color: @primary-color;
29
- color: @primary-color;
30
- background: @btn-default-bg;
31
- border-color: @primary-color;
28
+ box-shadow: var(--btn-primary-shadow);
29
+ background-color: var(--primary-color);
30
+ color: var(--primary-color);
31
+ background: var(--btn-default-bg);
32
+ border-color: var(--primary-color);
32
33
  }
34
+
33
35
  .rbc-toolbar button:active:hover,
34
36
  .rbc-toolbar button:active:focus,
35
37
  .rbc-toolbar button.rbc-active:hover,
36
38
  .rbc-toolbar button.rbc-active:focus {
37
- color: @radio-button-hover-color;
38
- background: @radio-button-bg;
39
- border-color: @radio-button-hover-color;
40
- // border-color: #8c8c8c;
39
+ color: var(--radio-button-hover-color);
40
+ background: var(--radio-button-bg);
41
+ border-color: var(--radio-button-hover-color);
41
42
  }
43
+
42
44
  .rbc-toolbar button:focus {
43
45
  color: #373a3c;
44
- border-color: @btn-default-border;
46
+ border-color: var(--btn-default-border);
45
47
  }
48
+
46
49
  .rbc-toolbar button:hover {
47
- color: @radio-button-hover-color;
50
+ color: var(--radio-button-hover-color);
48
51
  background-color: transparent;
49
- border-color: @btn-default-border;
52
+ border-color: var(--btn-default-border);
50
53
  }
51
54
 
52
55
  .rbc-header {
@@ -57,13 +60,13 @@
57
60
  text-overflow: ellipsis;
58
61
  white-space: nowrap;
59
62
  padding: 0 4px;
60
- // text-align: right;
61
63
  vertical-align: middle;
62
64
  font-weight: bold;
63
65
  font-size: 90%;
64
66
  min-height: 0;
65
67
  border-bottom: 1px solid #ddd;
66
68
  }
69
+
67
70
  .rbc-month-row {
68
71
  display: -webkit-box;
69
72
  display: -ms-flexbox;
@@ -82,6 +85,7 @@
82
85
  height: 100%;
83
86
  border-bottom: 1px solid #ddd;
84
87
  }
88
+
85
89
  .rbc-header + .rbc-header {
86
90
  border-left: none;
87
91
  }
@@ -124,22 +128,76 @@
124
128
  overflow: hidden;
125
129
  height: 100%;
126
130
  }
131
+
127
132
  .rbc-day-bg + .rbc-day-bg {
128
133
  border-left: none;
129
134
  }
135
+
130
136
  .rbc-agenda-date-cell {
131
137
  border-right: 1px solid #ddd;
132
138
  }
133
139
 
134
- .my-rbc .rbc-time-view {
135
- .rbc-label {
136
- display: none;
137
- }
138
- .rbc-allday-cell {
139
- height: calc(100vh - 98px);
140
- max-height: unset;
141
- }
142
- .rbc-time-content {
143
- display: none;
144
- }
140
+ .my-rbc .rbc-time-view .rbc-label {
141
+ display: none;
142
+ }
143
+
144
+ .my-rbc .rbc-time-view .rbc-allday-cell {
145
+ height: calc(100vh - 98px);
146
+ max-height: unset;
145
147
  }
148
+
149
+ .my-rbc .rbc-time-view .rbc-time-content {
150
+ display: none;
151
+ }
152
+
153
+ .custom-rbc-main {
154
+ border: 1px solid #d9d9d9;
155
+ display: flex;
156
+ width: 100%;
157
+ }
158
+
159
+ .custom-rbc-list {
160
+ border-right: 1px solid #d9d9d9;
161
+ width: 20%;
162
+ padding: 10px;
163
+ }
164
+
165
+ .custom-rbc-main-calndar {
166
+ height: 600px;
167
+ font-size: 10px;
168
+ width: 100%;
169
+ padding: 10px;
170
+ }
171
+
172
+ .rbc-data-source {
173
+ padding: 10px;
174
+ width: 100%;
175
+ }
176
+
177
+ .rbc-data-source-title {
178
+ margin-bottom: 10px;
179
+ flex: 1;
180
+ display: flex;
181
+ width: 100%;
182
+ }
183
+
184
+ .calendar-checkbox-checked {
185
+ overflow: hidden;
186
+ text-overflow: ellipsis;
187
+ white-space: nowrap;
188
+ display:block;
189
+ }
190
+
191
+ .calendar-checkbox-checked .ant-checkbox-checked .ant-checkbox-inner {
192
+ background-color: var(--background-color);
193
+ border-color: var(--border-color);
194
+ }
195
+
196
+ .calendar-checkbox-checked-text {
197
+ font-size: 12px;
198
+ font-weight: 400;
199
+ }
200
+
201
+ .rbc-event, .rbc-day-slot .rbc-background-event {
202
+ cursor: auto;
203
+ }
@@ -0,0 +1,120 @@
1
+ .file-collections-items {
2
+ padding : 12px;
3
+ border : 1px solid #d9d9d9;
4
+ border-radius: 4px;
5
+ cursor : pointer;
6
+ position : relative;
7
+ }
8
+
9
+ .file-collections-items.selected {
10
+ border-color: var(--primary-color) !important;
11
+ }
12
+
13
+ .file-collections-items.selected .bulk-container {
14
+ display: block;
15
+ }
16
+
17
+ .file-collections-items .bulk-container {
18
+ display : none;
19
+ position: absolute;
20
+ top : 10px;
21
+ left : 10px;
22
+ z-index : 2;
23
+ }
24
+
25
+ .file-collections-items .file-items {
26
+ display : flex;
27
+ justify-content: center;
28
+ align-items : center;
29
+ width : 100%;
30
+ height : 120px;
31
+ }
32
+
33
+ .file-collections-items .file-title-container {
34
+ display : flex;
35
+ flex-flow : row nowrap;
36
+ align-items: center;
37
+ }
38
+
39
+ .file-collections-items .file-title-container .file-name {
40
+ flex-grow: 2;
41
+ width : 0px;
42
+ }
43
+
44
+ .file-collections-items .file-title-container .file-name .name {
45
+ max-width: 100%;
46
+ }
47
+
48
+ .file-collections-items .file-title-container .file-type {
49
+ margin-left : 10px;
50
+ padding : 2px 4px 2px 4px;
51
+ border-radius : 2px;
52
+ background-color: rgb(242, 243, 244);
53
+ }
54
+
55
+ .file-collections-items .file-title-container .file-type .type {
56
+ max-width: 100%;
57
+ color : rgb(158, 167, 184);
58
+ }
59
+
60
+ .file-collections-items .file-ext-size {
61
+ max-width: 100%;
62
+ color : #707070;
63
+ }
64
+
65
+ .file-collections-items:hover {
66
+ border-color: #afafaf;
67
+ }
68
+
69
+ .file-collections-items:hover .bulk-container {
70
+ display: block;
71
+ }
72
+
73
+ .file-detail-container .file-description-container {
74
+ padding : 10px 10px 4px;
75
+ background-color: #f7f7f7;
76
+ border-radius : 2px;
77
+ }
78
+
79
+ .file-detail-container .file-description-container .ant-typography {
80
+ max-width: 100%;
81
+ font-size: 12px;
82
+ color : #707070;
83
+ }
84
+
85
+ .file-preview-container {
86
+ display : flex;
87
+ justify-content: center;
88
+ align-items : center;
89
+ border-radius : 2px;
90
+ border : 1px solid #d9d9d9;
91
+ padding : 8px;
92
+ width : 100%;
93
+ height : 100%;
94
+ max-height : 400px;
95
+ position : relative;
96
+ }
97
+
98
+ .file-preview-container .file-actions {
99
+ position: absolute;
100
+ top : 10px;
101
+ right : 10px;
102
+ }
103
+
104
+ .image-preview-container {
105
+ display : flex;
106
+ justify-content: center;
107
+ align-items : center;
108
+ padding : 8px;
109
+ width : 100%;
110
+ height : 100%;
111
+ max-height : 400px;
112
+ position : relative;
113
+ min-height : 200px;
114
+ }
115
+
116
+ .image-preview-container .file-actions {
117
+ position: absolute;
118
+ top : 10px;
119
+ right : 10px;
120
+ }