1
0
Fork 0

chore: Reconfigure packages

This commit is contained in:
Joost De Cock 2021-06-05 08:26:43 +02:00
parent 6e859682f4
commit 5edd26555c
122 changed files with 783 additions and 274 deletions

View file

@ -10,12 +10,11 @@ import Pattern from './pattern/src/index.js'
* Without it, we can't import the pattern as a local file
* since create-react-app does not allow imports outside ./src
* If it's imported as a dependency, webpack will cache the
* build and there will be no hot-relaoding of changes
* build and there will be no hot-reloading of changes
*/
const App = (props) => {
// You can use this to add transations
// You can use this to add translations
/*
let translations = {
JSON: 'JSON',
@ -26,9 +25,11 @@ const App = (props) => {
// Adds support for loading an external pattern configuration
let recreate = false
if (window) recreate = window.location.pathname.substr(1).split('/')
if (recreate.length === 3 && recreate[0] === 'recreate')
if (recreate.length === 3 && recreate[0] === 'recreate') {
recreate = { from: recreate[1], id: recreate[2] }
else recreate = false
} else {
recreate = false
}
return (
<Workbench
@ -36,7 +37,7 @@ const App = (props) => {
Pattern={Pattern}
userLanguage="en"
recreate={recreate}
//translations={translations}
// translations={translations}
/>
)
}

View file

@ -1,3 +1,9 @@
* {
box-sizing: border-box;
}
.MuiToolbar-root {
overflow-y: auto;
}
div.layout-wrapper {
width: 100%;
margin: 0;

View file

@ -43,6 +43,11 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"@babel/plugin-proposal-class-properties": "^7.13.0",
"babel-eslint": "^10.1.0",
"eslint": "^7.27.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^1.1.0",
"@freesewing/components": "^2.16.1",
"@freesewing/css-theme": "^2.16.1",
"@freesewing/i18n": "^2.16.1",
@ -53,7 +58,7 @@
"@freesewing/utils": "^2.16.1",
"react-scripts": "^4.0.3",
"webpack": "^5.37.0",
"rollup": "^2.48.0",
"rollup": "^2.50.6",
"@rollup/plugin-babel": "^5.3.0",
"rollup-plugin-terser": "^7.0.2",
"@rollup/plugin-commonjs": "^19.0.0",