chore: Reconfigure packages
This commit is contained in:
parent
6e859682f4
commit
5edd26555c
122 changed files with 783 additions and 274 deletions
|
@ -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}
|
||||
/>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.MuiToolbar-root {
|
||||
overflow-y: auto;
|
||||
}
|
||||
div.layout-wrapper {
|
||||
width: 100%;
|
||||
margin: 0;
|
||||
|
|
|
@ -45,6 +45,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",
|
||||
|
@ -55,7 +60,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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue