neo.mjs 5.1.10 → 5.1.11
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/apps/ServiceWorker.mjs +2 -2
- package/buildScripts/buildAll.mjs +10 -11
- package/buildScripts/createApp.mjs +3 -4
- package/buildScripts/webpack/buildMyApps.mjs +4 -5
- package/buildScripts/webpack/buildThreads.mjs +7 -8
- package/examples/ServiceWorker.mjs +2 -2
- package/package.json +1 -1
- package/resources/scss/src/table/Container.scss +8 -10
- package/resources/scss/theme-dark/table/Container.scss +7 -1
- package/resources/scss/theme-light/table/Container.scss +7 -1
- package/src/DefaultConfig.mjs +2 -2
package/apps/ServiceWorker.mjs
CHANGED
@@ -119,46 +119,45 @@ if (programOpts.info) {
|
|
119
119
|
insideNeo = !!programOpts.framework || false,
|
120
120
|
cpArgs = ['-e', env],
|
121
121
|
startDate = new Date();
|
122
|
-
let childProcess
|
123
|
-
status = 0;
|
122
|
+
let childProcess;
|
124
123
|
|
125
124
|
programOpts.noquestions && cpArgs.push('-n');
|
126
125
|
insideNeo && cpArgs.push('-f');
|
127
126
|
|
128
127
|
if (npminstall === 'yes') {
|
129
128
|
childProcess = spawnSync(npmCmd, ['i'], cpOpts);
|
130
|
-
status
|
129
|
+
childProcess.status && process.exit(childProcess.status);
|
131
130
|
}
|
132
131
|
if (themes === 'yes') {
|
133
132
|
childProcess = spawnSync('node', [`${neoPath}/buildScripts/buildThemes.mjs`].concat(cpArgs), cpOpts);
|
134
|
-
status
|
133
|
+
childProcess.status && process.exit(childProcess.status);
|
135
134
|
}
|
136
135
|
if (threads === 'yes') {
|
137
136
|
childProcess = spawnSync('node', [`${webpackPath}/buildThreads.mjs`].concat(cpArgs), cpOpts);
|
138
|
-
status
|
137
|
+
childProcess.status && process.exit(childProcess.status);
|
139
138
|
}
|
140
139
|
if (parsedocs === 'yes') {
|
141
140
|
childProcess = spawnSync(npmCmd, ['run', 'generate-docs-json'], cpOpts);
|
142
|
-
status
|
141
|
+
childProcess.status && process.exit(childProcess.status);
|
143
142
|
};
|
144
143
|
|
145
144
|
if (env === 'all' || env === 'dev') {
|
146
145
|
childProcess = spawnSync('node', [`${neoPath}/buildScripts/copyFolder.mjs -s ${path.resolve(cwd, 'docs/output') } -t ${path.resolve(cwd, 'dist/development/docs/output')}`], cpOpts);
|
147
|
-
status
|
146
|
+
childProcess.status && process.exit(childProcess.status);
|
148
147
|
childProcess = spawnSync('node', [`${neoPath}/buildScripts/copyFolder.mjs -s ${path.resolve(cwd, 'docs/resources')} -t ${path.resolve(cwd, 'dist/development/docs/resources')}`], cpOpts);
|
149
|
-
status
|
148
|
+
childProcess.status && process.exit(childProcess.status);
|
150
149
|
}
|
151
150
|
|
152
151
|
if (env === 'all' || env === 'prod') {
|
153
152
|
childProcess = spawnSync('node', [`${neoPath}/buildScripts/copyFolder.mjs -s ${path.resolve(cwd, 'docs/output') } -t ${path.resolve(cwd, 'dist/production/docs/output')}`], cpOpts);
|
154
|
-
status
|
153
|
+
childProcess.status && process.exit(childProcess.status);
|
155
154
|
childProcess = spawnSync('node', [`${neoPath}/buildScripts/copyFolder.mjs -s ${path.resolve(cwd, 'docs/resources')} -t ${path.resolve(cwd, 'dist/production/docs/resources')}`], cpOpts);
|
156
|
-
status
|
155
|
+
childProcess.status && process.exit(childProcess.status);
|
157
156
|
}
|
158
157
|
|
159
158
|
const processTime = (Math.round((new Date - startDate) * 100) / 100000).toFixed(2);
|
160
159
|
console.log(`\nTotal time for ${programName}: ${processTime}s`);
|
161
160
|
|
162
|
-
process.exit(
|
161
|
+
process.exit();
|
163
162
|
});
|
164
163
|
}
|
@@ -126,8 +126,7 @@ if (programOpts.info) {
|
|
126
126
|
appPath = 'apps/' + lAppName + '/',
|
127
127
|
dir = 'apps/' + lAppName,
|
128
128
|
folder = path.resolve(cwd, dir),
|
129
|
-
startDate = new Date()
|
130
|
-
status = 0;
|
129
|
+
startDate = new Date();
|
131
130
|
|
132
131
|
if (!Array.isArray(themes)) {
|
133
132
|
themes = [themes];
|
@@ -304,13 +303,13 @@ if (programOpts.info) {
|
|
304
303
|
'-t',
|
305
304
|
path.resolve(folder, 'resources'),
|
306
305
|
], { env: process.env, cwd: process.cwd(), stdio: 'inherit' });
|
307
|
-
status
|
306
|
+
childProcess.status && process.exit(childProcess.status);
|
308
307
|
}
|
309
308
|
|
310
309
|
const processTime = (Math.round((new Date - startDate) * 100) / 100000).toFixed(2);
|
311
310
|
console.log(`\nTotal time for ${programName}: ${processTime}s`);
|
312
311
|
|
313
|
-
process.exit(
|
312
|
+
process.exit();
|
314
313
|
});
|
315
314
|
});
|
316
315
|
}
|
@@ -100,8 +100,7 @@ if (programOpts.info) {
|
|
100
100
|
env = answers.env || programOpts.env || ['all'],
|
101
101
|
insideNeo = !!programOpts.framework || false,
|
102
102
|
startDate = new Date();
|
103
|
-
let childProcess
|
104
|
-
status = 0;
|
103
|
+
let childProcess;
|
105
104
|
|
106
105
|
if (os.platform().startsWith('win')) {
|
107
106
|
webpack = path.resolve(webpack).replace(/\\/g,'/');
|
@@ -111,19 +110,19 @@ if (programOpts.info) {
|
|
111
110
|
if (env === 'all' || env === 'dev') {
|
112
111
|
console.log(chalk.blue(`${programName} starting dist/development`));
|
113
112
|
childProcess = spawnSync(webpack, ['--config', `${webpackPath}/development/webpack.config.myapps.mjs`, `--env apps=${apps}`, `--env insideNeo=${insideNeo}`], cpOpts);
|
114
|
-
status
|
113
|
+
childProcess.status && process.exit(childProcess.status);
|
115
114
|
}
|
116
115
|
|
117
116
|
// dist/production
|
118
117
|
if (env === 'all' || env === 'prod') {
|
119
118
|
console.log(chalk.blue(`${programName} starting dist/production`));
|
120
119
|
childProcess = spawnSync(webpack, ['--config', `${webpackPath}/production/webpack.config.myapps.mjs`, `--env apps=${apps}`, `--env insideNeo=${insideNeo}`], cpOpts);
|
121
|
-
status
|
120
|
+
childProcess.status && process.exit(childProcess.status);
|
122
121
|
}
|
123
122
|
|
124
123
|
const processTime = (Math.round((new Date - startDate) * 100) / 100000).toFixed(2);
|
125
124
|
console.log(`\nTotal time for ${programName}: ${processTime}s`);
|
126
125
|
|
127
|
-
process.exit(
|
126
|
+
process.exit();
|
128
127
|
});
|
129
128
|
}
|
@@ -82,7 +82,6 @@ if (programOpts.info) {
|
|
82
82
|
threads = answers.threads || programOpts.threads || 'all',
|
83
83
|
insideNeo = programOpts.framework || false,
|
84
84
|
startDate = new Date();
|
85
|
-
let status = 0;
|
86
85
|
|
87
86
|
if (path.sep === '\\') {
|
88
87
|
webpack = path.resolve(webpack).replace(/\\/g,'/');
|
@@ -93,27 +92,27 @@ if (programOpts.info) {
|
|
93
92
|
|
94
93
|
if (threads === 'all' || threads === 'main') {
|
95
94
|
childProcess = spawnSync(webpack, ['--config', `${tPath}.main.mjs`], cpOpts);
|
96
|
-
status
|
95
|
+
childProcess.status && process.exit(childProcess.status);
|
97
96
|
}
|
98
97
|
if (threads === 'all' || threads === 'app') {
|
99
98
|
childProcess = spawnSync(webpack, ['--config', `${tPath}.appworker.mjs`, `--env insideNeo=${insideNeo}`], cpOpts);
|
100
|
-
status
|
99
|
+
childProcess.status && process.exit(childProcess.status);
|
101
100
|
}
|
102
101
|
if (threads === 'all' || threads === 'canvas') {
|
103
102
|
childProcess = spawnSync(webpack, ['--config', `${tPath}.worker.mjs`, `--env insideNeo=${insideNeo} worker=canvas`], cpOpts);
|
104
|
-
status
|
103
|
+
childProcess.status && process.exit(childProcess.status);
|
105
104
|
}
|
106
105
|
if (threads === 'all' || threads === 'data') {
|
107
106
|
childProcess = spawnSync(webpack, ['--config', `${tPath}.worker.mjs`, `--env insideNeo=${insideNeo} worker=data`], cpOpts);
|
108
|
-
status
|
107
|
+
childProcess.status && process.exit(childProcess.status);
|
109
108
|
}
|
110
109
|
if (threads === 'all' || threads === 'service') {
|
111
110
|
childProcess = spawnSync(webpack, ['--config', `${tPath}.worker.mjs`, `--env insideNeo=${insideNeo} worker=service`], cpOpts);
|
112
|
-
status
|
111
|
+
childProcess.status && process.exit(childProcess.status);
|
113
112
|
}
|
114
113
|
if (threads === 'all' || threads === 'vdom') {
|
115
114
|
childProcess = spawnSync(webpack, ['--config', `${tPath}.worker.mjs`, `--env insideNeo=${insideNeo} worker=vdom`], cpOpts);
|
116
|
-
status
|
115
|
+
childProcess.status && process.exit(childProcess.status);
|
117
116
|
}
|
118
117
|
}
|
119
118
|
|
@@ -132,6 +131,6 @@ if (programOpts.info) {
|
|
132
131
|
const processTime = (Math.round((new Date - startDate) * 100) / 100000).toFixed(2);
|
133
132
|
console.log(`\nTotal time for ${programName}: ${processTime}s`);
|
134
133
|
|
135
|
-
process.exit(
|
134
|
+
process.exit();
|
136
135
|
});
|
137
136
|
}
|
package/package.json
CHANGED
@@ -16,8 +16,8 @@
|
|
16
16
|
position : absolute;
|
17
17
|
|
18
18
|
tr {
|
19
|
-
height :
|
20
|
-
max-height:
|
19
|
+
height : v(table-container-cell-height) !important;
|
20
|
+
max-height: v(table-container-cell-height) !important;
|
21
21
|
}
|
22
22
|
|
23
23
|
tr:last-child {
|
@@ -33,8 +33,8 @@
|
|
33
33
|
}
|
34
34
|
|
35
35
|
td, th {
|
36
|
-
min-width: 200px; // for testing
|
37
36
|
height : inherit;
|
37
|
+
min-width: 200px; // for testing
|
38
38
|
width : inherit;
|
39
39
|
|
40
40
|
&:last-child {
|
@@ -48,12 +48,12 @@
|
|
48
48
|
|
49
49
|
td {
|
50
50
|
background-color: v(table-container-cell-background-color);
|
51
|
-
border-bottom :
|
51
|
+
border-bottom : v(table-container-cell-border-bottom);
|
52
52
|
border-right : 1px solid v(table-container-border-color);
|
53
53
|
border-top : 1px solid transparent;
|
54
|
-
height :
|
55
|
-
max-height :
|
56
|
-
padding :
|
54
|
+
height : v(table-container-cell-height) !important;
|
55
|
+
max-height : v(table-container-cell-height) !important;
|
56
|
+
padding : v(table-container-cell-padding);
|
57
57
|
|
58
58
|
&.neo-locked {
|
59
59
|
z-index: 10;
|
@@ -96,7 +96,7 @@
|
|
96
96
|
background:rgba(0,0,0,0.1);
|
97
97
|
|
98
98
|
&:vertical {
|
99
|
-
margin-top:
|
99
|
+
margin-top: v(table-container-cell-height);
|
100
100
|
}
|
101
101
|
}
|
102
102
|
|
@@ -119,5 +119,3 @@
|
|
119
119
|
}
|
120
120
|
}
|
121
121
|
}
|
122
|
-
|
123
|
-
#myTableContainer ::-webkit-scrollbar-track:horizontal {margin-left: 400px;}
|
@@ -2,6 +2,9 @@ $neoMap: map-merge($neoMap, (
|
|
2
2
|
'table-container-border-color' : #2b2b2b,
|
3
3
|
'table-container-cell-background-color' : #3c3f41,
|
4
4
|
'table-container-cell-background-color-even': #323232,
|
5
|
+
'table-container-cell-border-bottom' : 1px solid #2b2b2b,
|
6
|
+
'table-container-cell-height' : 32px,
|
7
|
+
'table-container-cell-padding' : 2px 10px 2px,
|
5
8
|
'table-container-color' : #bbb,
|
6
9
|
'table-container-header-cell-border-bottom' : 2px solid #2b2b2b
|
7
10
|
));
|
@@ -11,7 +14,10 @@ $neoMap: map-merge($neoMap, (
|
|
11
14
|
--table-container-border-color : #{neo(table-container-border-color)};
|
12
15
|
--table-container-cell-background-color : #{neo(table-container-cell-background-color)};
|
13
16
|
--table-container-cell-background-color-even: #{neo(table-container-cell-background-color-even)};
|
17
|
+
--table-container-cell-border-bottom : #{neo(table-container-cell-border-bottom)};
|
18
|
+
--table-container-cell-height : #{neo(table-container-cell-height)};
|
19
|
+
--table-container-cell-padding : #{neo(table-container-cell-padding)};
|
14
20
|
--table-container-color : #{neo(table-container-color)};
|
15
21
|
--table-container-header-cell-border-bottom : #{neo(table-container-header-cell-border-bottom)};
|
16
22
|
}
|
17
|
-
}
|
23
|
+
}
|
@@ -2,6 +2,9 @@ $neoMap: map-merge($neoMap, (
|
|
2
2
|
'table-container-border-color' : #ddd,
|
3
3
|
'table-container-cell-background-color' : #fff,
|
4
4
|
'table-container-cell-background-color-even': #f2f2f2,
|
5
|
+
'table-container-cell-border-bottom' : 1px solid #ddd,
|
6
|
+
'table-container-cell-height' : 32px,
|
7
|
+
'table-container-cell-padding' : 2px 10px 2px,
|
5
8
|
'table-container-color' : #666,
|
6
9
|
'table-container-header-cell-border-bottom' : 1px solid #ddd
|
7
10
|
));
|
@@ -11,7 +14,10 @@ $neoMap: map-merge($neoMap, (
|
|
11
14
|
--table-container-border-color : #{neo(table-container-border-color)};
|
12
15
|
--table-container-cell-background-color : #{neo(table-container-cell-background-color)};
|
13
16
|
--table-container-cell-background-color-even: #{neo(table-container-cell-background-color-even)};
|
17
|
+
--table-container-cell-border-bottom : #{neo(table-container-cell-border-bottom)};
|
18
|
+
--table-container-cell-height : #{neo(table-container-cell-height)};
|
19
|
+
--table-container-cell-padding : #{neo(table-container-cell-padding)};
|
14
20
|
--table-container-color : #{neo(table-container-color)};
|
15
21
|
--table-container-header-cell-border-bottom : #{neo(table-container-header-cell-border-bottom)};
|
16
22
|
}
|
17
|
-
}
|
23
|
+
}
|
package/src/DefaultConfig.mjs
CHANGED
@@ -237,12 +237,12 @@ const DefaultConfig = {
|
|
237
237
|
useVdomWorker: true,
|
238
238
|
/**
|
239
239
|
* buildScripts/injectPackageVersion.mjs will update this value
|
240
|
-
* @default '5.1.
|
240
|
+
* @default '5.1.11'
|
241
241
|
* @memberOf! module:Neo
|
242
242
|
* @name config.version
|
243
243
|
* @type String
|
244
244
|
*/
|
245
|
-
version: '5.1.
|
245
|
+
version: '5.1.11'
|
246
246
|
};
|
247
247
|
|
248
248
|
Object.assign(DefaultConfig, {
|