🔧 Reconfigure packages
This commit is contained in:
parent
5f6453ff9b
commit
e6cea282b0
54 changed files with 493 additions and 399 deletions
|
@ -26,24 +26,26 @@
|
|||
"watch": "BABEL_ENV=production rollup -c -w -o dist/index.js -f cjs"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@freesewing/core": "^2.0.0-beta.30",
|
||||
"@freesewing/css-theme": "^2.0.0-beta.30",
|
||||
"@freesewing/examples": "^2.0.0-beta.30",
|
||||
"@freesewing/i18n": "^2.0.0-beta.30",
|
||||
"@freesewing/mui-theme": "^2.0.0-beta.30",
|
||||
"@freesewing/pattern-info": "^2.0.0-beta.30",
|
||||
"@freesewing/rendertest": "^2.0.0-beta.30",
|
||||
"@freesewing/tutorial": "^2.0.0-beta.30",
|
||||
"@freesewing/utils": "^2.0.0-beta.30",
|
||||
"react": "^16.8",
|
||||
"prop-types": "15.7.2",
|
||||
"@freesewing/pattern-info": "^2.0.0-beta.31",
|
||||
"@freesewing/mui-theme": "^2.0.0-beta.31",
|
||||
"@freesewing/css-theme": "^2.0.0-beta.31",
|
||||
"@freesewing/core": "^2.0.0-beta.31",
|
||||
"@freesewing/examples": "^2.0.0-beta.31",
|
||||
"@freesewing/rendertest": "^2.0.0-beta.31",
|
||||
"@freesewing/tutorial": "^2.0.0-beta.31",
|
||||
"typeface-roboto-condensed": "latest",
|
||||
"@freesewing/i18n": "^2.0.0-beta.31",
|
||||
"@freesewing/utils": "^2.0.0-beta.31",
|
||||
"react-intl": "^2.8.0",
|
||||
"@material-ui/core": "^4.0.1",
|
||||
"@material-ui/icons": "^4.0.1",
|
||||
"@material-ui/lab": "^v4.0.0-alpha.14",
|
||||
"prismjs": "1.16.0",
|
||||
"prop-types": "15.7.2",
|
||||
"react": "^16.8",
|
||||
"react-intl": "^2.8.0",
|
||||
"typeface-roboto-condensed": "latest"
|
||||
"prismjs": "1.16.0"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {},
|
||||
"files": [
|
||||
"Blockquote/*",
|
||||
"Draft/*",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import React, { useState } from "react";
|
||||
import { FormattedMessage } from "react-intl";
|
||||
import PatternOptions from "./PatternOptions";
|
||||
import models from "@freesewing/models";
|
||||
import { withoutBreasts } from "@freesewing/models";
|
||||
|
||||
const SampleConfigurator = props => {
|
||||
const [expanded, setExpanded] = useState([]);
|
||||
|
@ -40,9 +40,9 @@ const SampleConfigurator = props => {
|
|||
};
|
||||
let antMan = {
|
||||
ant: {},
|
||||
man: models.manSize42
|
||||
man: withoutBreasts.manSize42
|
||||
};
|
||||
for (let m in models.manSize42) antMan.ant[m] = antMan.man[m] / 10;
|
||||
for (let m in withoutBreasts.manSize42) antMan.ant[m] = antMan.man[m] / 10;
|
||||
|
||||
return (
|
||||
<ul className="links">
|
||||
|
@ -76,7 +76,7 @@ const SampleConfigurator = props => {
|
|||
</h4>
|
||||
<ul style={{ paddingLeft: "1rem" }}>
|
||||
<li>
|
||||
<a href="#logo" onClick={() => sampleModels(models)}>
|
||||
<a href="#logo" onClick={() => sampleModels(withoutBreasts)}>
|
||||
<FormattedMessage id="app.withoutBreasts" />
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
@ -3,7 +3,7 @@ import PropTypes from "prop-types";
|
|||
import Button from "@material-ui/core/Button";
|
||||
import { FormattedMessage, FormattedHTMLMessage } from "react-intl";
|
||||
import FormFieldMeasurement from "../../.form/FormFieldMeasurement";
|
||||
import models from "@freesewing/models";
|
||||
import { withBreasts, withoutBreasts } from "@freesewing/models";
|
||||
|
||||
const Measurements = props => {
|
||||
const styles = {
|
||||
|
@ -96,9 +96,11 @@ const Measurements = props => {
|
|||
<FormattedMessage id="app.withoutBreasts" />
|
||||
</h4>
|
||||
<ul>
|
||||
{Object.keys(models).map(m => (
|
||||
{Object.keys(withoutBreasts).map(m => (
|
||||
<li key={m}>
|
||||
<Button onClick={() => props.preloadMeasurements(models[m])}>
|
||||
<Button
|
||||
onClick={() => props.preloadMeasurements(withoutBreasts[m])}
|
||||
>
|
||||
<FormattedMessage id="cfp.size" />
|
||||
|
||||
{m.slice(-2)}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue