@configuratorware/configurator-admingui 1.39.0 → 1.39.2
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.
|
@@ -120,6 +120,8 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.g
|
|
|
120
120
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
121
121
|
|
|
122
122
|
var styles = function styles(theme) {
|
|
123
|
+
var _visualizationRoot;
|
|
124
|
+
|
|
123
125
|
var breakPoint = {
|
|
124
126
|
max: "@media screen and (max-width:".concat(1144 + 2 * theme.spacing.unit, "px)")
|
|
125
127
|
};
|
|
@@ -127,7 +129,9 @@ var styles = function styles(theme) {
|
|
|
127
129
|
editorRoot: _defineProperty({
|
|
128
130
|
display: 'flex',
|
|
129
131
|
flexDirection: 'row',
|
|
130
|
-
|
|
132
|
+
'&.fullHeight': {
|
|
133
|
+
height: 'calc(100vh - 180px)'
|
|
134
|
+
},
|
|
131
135
|
'& > $header': _defineProperty({
|
|
132
136
|
display: 'none'
|
|
133
137
|
}, breakPoint.max, {
|
|
@@ -206,13 +210,16 @@ var styles = function styles(theme) {
|
|
|
206
210
|
advancedEditor: {
|
|
207
211
|
maxWidth: 600
|
|
208
212
|
},
|
|
209
|
-
visualizationRoot: {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
213
|
+
visualizationRoot: (_visualizationRoot = {
|
|
214
|
+
display: 'flex',
|
|
215
|
+
flexDirection: 'row'
|
|
216
|
+
}, _defineProperty(_visualizationRoot, breakPoint.max, {
|
|
217
|
+
flexDirection: 'column'
|
|
218
|
+
}), _defineProperty(_visualizationRoot, '& > $leftSide', _defineProperty({
|
|
219
|
+
width: '70%'
|
|
220
|
+
}, breakPoint.max, {
|
|
221
|
+
width: '100%'
|
|
222
|
+
})), _visualizationRoot),
|
|
216
223
|
visualizationContainer: {
|
|
217
224
|
width: '100%',
|
|
218
225
|
height: '39vw'
|
|
@@ -853,7 +860,7 @@ var VisualizationSettingsEdit = /*#__PURE__*/function (_Component) {
|
|
|
853
860
|
|
|
854
861
|
if (isKindOf2D(mode)) {
|
|
855
862
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
856
|
-
className:
|
|
863
|
+
className: classes.visualizationRoot
|
|
857
864
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
858
865
|
className: classes.leftSide
|
|
859
866
|
}, /*#__PURE__*/_react["default"].createElement(_VisualizationContainer["default"], {
|
|
@@ -913,7 +920,7 @@ var VisualizationSettingsEdit = /*#__PURE__*/function (_Component) {
|
|
|
913
920
|
}
|
|
914
921
|
|
|
915
922
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
916
|
-
className: classes.editorRoot
|
|
923
|
+
className: "".concat(classes.editorRoot, " ").concat(isKindOf3D(mode) ? 'fullHeight' : '')
|
|
917
924
|
}, loading && /*#__PURE__*/_react["default"].createElement(LoadingComponent, {
|
|
918
925
|
fullSize: true
|
|
919
926
|
}), isKindOf3D(mode) ? this.renderHeader3D(data) : this.renderHeader(), imageElement && /*#__PURE__*/_react["default"].createElement("div", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@configuratorware/configurator-admingui",
|
|
3
|
-
"version": "1.39.
|
|
3
|
+
"version": "1.39.2",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"private": false,
|
|
6
6
|
"dependencies": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"react-redux-i18n": "^1.9.3",
|
|
30
30
|
"react-router": "^3.2.6",
|
|
31
31
|
"react-sortable-hoc": "^1.11.0",
|
|
32
|
-
"redhotmagma-visualization": "1.39.
|
|
32
|
+
"redhotmagma-visualization": "1.39.2",
|
|
33
33
|
"redux": "^4.1.0",
|
|
34
34
|
"redux-logger": "^3.0.6",
|
|
35
35
|
"redux-persist": "^5.10.0",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"url-loader": "^1.1.2"
|
|
59
59
|
},
|
|
60
60
|
"scripts": {
|
|
61
|
-
"copy-public": "node ./scripts/
|
|
61
|
+
"copy-public": "node ./scripts/cpPublic.js",
|
|
62
62
|
"install": "npm run copy-public"
|
|
63
63
|
},
|
|
64
64
|
"readme": "# configurator-admingui\n\n## Setup for development\n1. Follow the \"preparation\", \"install\" and \"start development\" steps in frontend/README.md\n1. Open the core app in the browser: http://localhost:3000\n\n## Ready to build the artifacts\n- run `pnpm build` from project scope (does not build workspace dependencies automatically)\n- or run `pnpm build` from workspace root\n"
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/* eslint no-console: 0 */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This script is made to copy the content of the public folder
|
|
5
|
+
* into the same destination in the client projects
|
|
6
|
+
*
|
|
7
|
+
* Runs only when installing this package as a dependency in client projects
|
|
8
|
+
*
|
|
9
|
+
* usage: node ./scripts/cpPublic.js
|
|
10
|
+
*
|
|
11
|
+
* @author boda@redhotmagma.de
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
const path = require('path');
|
|
15
|
+
|
|
16
|
+
const { cpDirDeep, testMatchers } = require('@configuratorware/scripts/utils/fileSystem');
|
|
17
|
+
const { isDependency } = require('@configuratorware/scripts/utils/process');
|
|
18
|
+
|
|
19
|
+
// keep existing files listed below
|
|
20
|
+
const test = testMatchers.keepIfExists(/favicon\.ico$/);
|
|
21
|
+
|
|
22
|
+
if (isDependency()) {
|
|
23
|
+
console.log(
|
|
24
|
+
'\x1b[37m\x1b[42m%s\x1b[0m',
|
|
25
|
+
'Copying public content into the public directory of the client project'
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
const src = path.resolve(__dirname, '../public');
|
|
29
|
+
const dst = path.resolve(__dirname, '../../../../public');
|
|
30
|
+
|
|
31
|
+
cpDirDeep(src, dst, { testFn: test });
|
|
32
|
+
}
|
|
@@ -58,7 +58,9 @@ const styles = theme => {
|
|
|
58
58
|
editorRoot: {
|
|
59
59
|
display: 'flex',
|
|
60
60
|
flexDirection: 'row',
|
|
61
|
-
|
|
61
|
+
'&.fullHeight': {
|
|
62
|
+
height: 'calc(100vh - 180px)',
|
|
63
|
+
},
|
|
62
64
|
'& > $header': {
|
|
63
65
|
display: 'none',
|
|
64
66
|
[breakPoint.max]: {
|
|
@@ -146,6 +148,11 @@ const styles = theme => {
|
|
|
146
148
|
maxWidth: 600,
|
|
147
149
|
},
|
|
148
150
|
visualizationRoot: {
|
|
151
|
+
display: 'flex',
|
|
152
|
+
flexDirection: 'row',
|
|
153
|
+
[breakPoint.max]: {
|
|
154
|
+
flexDirection: 'column',
|
|
155
|
+
},
|
|
149
156
|
'& > $leftSide': {
|
|
150
157
|
width: '70%',
|
|
151
158
|
[breakPoint.max]: {
|
|
@@ -634,7 +641,7 @@ export class VisualizationSettingsEdit extends Component {
|
|
|
634
641
|
const { three } = this;
|
|
635
642
|
if (isKindOf2D(mode)) {
|
|
636
643
|
return (
|
|
637
|
-
<div className={
|
|
644
|
+
<div className={classes.visualizationRoot}>
|
|
638
645
|
<div className={classes.leftSide}>
|
|
639
646
|
<VisualizationContainer three={three} className={classes.visualizationContainer} />
|
|
640
647
|
</div>
|
|
@@ -688,7 +695,7 @@ export class VisualizationSettingsEdit extends Component {
|
|
|
688
695
|
}
|
|
689
696
|
|
|
690
697
|
return (
|
|
691
|
-
<div className={classes.editorRoot}>
|
|
698
|
+
<div className={`${classes.editorRoot} ${isKindOf3D(mode) ? 'fullHeight' : ''}`}>
|
|
692
699
|
{loading && <LoadingComponent fullSize />}
|
|
693
700
|
|
|
694
701
|
{isKindOf3D(mode) ? this.renderHeader3D(data) : this.renderHeader()}
|
package/scripts/cpFavicon.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/* eslint no-console: 0 */
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* This script is made to copy the favicon from public folder
|
|
5
|
-
* into the same destination in the client projects
|
|
6
|
-
*
|
|
7
|
-
* Runs only when installing this package as a dependency in client projects
|
|
8
|
-
*
|
|
9
|
-
* usage: node ./scripts/cpFavicon.js
|
|
10
|
-
*
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
const path = require('path');
|
|
14
|
-
const fs = require('fs');
|
|
15
|
-
const { isDependency } = require('./utils/process');
|
|
16
|
-
|
|
17
|
-
if (isDependency()) {
|
|
18
|
-
const dir = path.resolve(__dirname, '../../../../public');
|
|
19
|
-
if (!fs.existsSync(dir)) {
|
|
20
|
-
fs.mkdirSync(dir);
|
|
21
|
-
}
|
|
22
|
-
const src = path.resolve(__dirname, '../public/favicon.ico');
|
|
23
|
-
const dst = path.resolve(dir, 'favicon.ico');
|
|
24
|
-
// copy it only if there is no favicon.ico (which can be already a custom one) in the target location
|
|
25
|
-
if (!fs.existsSync(dst)) {
|
|
26
|
-
fs.createReadStream(src).pipe(fs.createWriteStream(dst));
|
|
27
|
-
}
|
|
28
|
-
}
|