✨ Workbench now also lets you preload a set of 'withBreasts' measurements
This commit is contained in:
parent
0b4df34a6b
commit
93e82d70ed
2 changed files with 18 additions and 264 deletions
|
@ -1,275 +1,19 @@
|
||||||
Unreleased:
|
Unreleased:
|
||||||
date:
|
date:
|
||||||
Added:
|
Added:
|
||||||
aaron:
|
|
||||||
benjamin:
|
|
||||||
bent:
|
|
||||||
brian:
|
|
||||||
bruce:
|
|
||||||
carlita:
|
|
||||||
carlton:
|
|
||||||
cathrin:
|
|
||||||
components:
|
|
||||||
core:
|
|
||||||
create-freesewing-pattern:
|
|
||||||
css-theme:
|
|
||||||
examples:
|
|
||||||
florent:
|
|
||||||
huey:
|
|
||||||
hugo:
|
|
||||||
i18n:
|
|
||||||
jaeger:
|
|
||||||
models:
|
|
||||||
mui-theme:
|
|
||||||
pattern-info:
|
|
||||||
patterns:
|
|
||||||
plugin-banner:
|
|
||||||
plugin-bundle:
|
|
||||||
plugin-bust:
|
|
||||||
plugin-buttons:
|
|
||||||
plugin-cutonfold:
|
|
||||||
plugin-debug:
|
|
||||||
plugin-designer:
|
|
||||||
plugin-dimension:
|
|
||||||
plugin-flip:
|
|
||||||
plugin-grainline:
|
|
||||||
plugin-i18n:
|
|
||||||
plugin-logo:
|
|
||||||
plugin-round:
|
|
||||||
plugin-scalebox:
|
|
||||||
plugin-sprinkle:
|
|
||||||
plugin-svgattr:
|
|
||||||
plugin-theme:
|
|
||||||
plugin-title:
|
|
||||||
plugin-validate:
|
|
||||||
prettier-config:
|
|
||||||
rendertest:
|
|
||||||
sandy:
|
|
||||||
shin:
|
|
||||||
simon:
|
|
||||||
sven:
|
|
||||||
tamiko:
|
|
||||||
theo:
|
|
||||||
trayvon:
|
|
||||||
tutorial:
|
|
||||||
utils:
|
|
||||||
wahid:
|
|
||||||
Changed:
|
Changed:
|
||||||
aaron:
|
|
||||||
benjamin:
|
|
||||||
bent:
|
|
||||||
brian:
|
|
||||||
bruce:
|
|
||||||
carlita:
|
|
||||||
carlton:
|
|
||||||
cathrin:
|
|
||||||
components:
|
|
||||||
core:
|
|
||||||
create-freesewing-pattern:
|
create-freesewing-pattern:
|
||||||
css-theme:
|
- Updated dependencies
|
||||||
examples:
|
|
||||||
florent:
|
|
||||||
huey:
|
|
||||||
hugo:
|
|
||||||
i18n:
|
|
||||||
jaeger:
|
|
||||||
models:
|
|
||||||
mui-theme:
|
|
||||||
pattern-info:
|
|
||||||
patterns:
|
|
||||||
plugin-banner:
|
|
||||||
plugin-bundle:
|
|
||||||
plugin-bust:
|
|
||||||
plugin-buttons:
|
|
||||||
plugin-cutonfold:
|
|
||||||
plugin-debug:
|
|
||||||
plugin-designer:
|
|
||||||
plugin-dimension:
|
|
||||||
plugin-flip:
|
|
||||||
plugin-grainline:
|
|
||||||
plugin-i18n:
|
|
||||||
plugin-logo:
|
|
||||||
plugin-round:
|
|
||||||
plugin-scalebox:
|
|
||||||
plugin-sprinkle:
|
|
||||||
plugin-svgattr:
|
|
||||||
plugin-theme:
|
|
||||||
plugin-title:
|
|
||||||
plugin-validate:
|
|
||||||
prettier-config:
|
|
||||||
rendertest:
|
|
||||||
sandy:
|
|
||||||
shin:
|
|
||||||
simon:
|
|
||||||
sven:
|
|
||||||
tamiko:
|
|
||||||
theo:
|
|
||||||
trayvon:
|
|
||||||
tutorial:
|
|
||||||
utils:
|
|
||||||
wahid:
|
|
||||||
Deprecated:
|
Deprecated:
|
||||||
aaron:
|
|
||||||
benjamin:
|
|
||||||
bent:
|
|
||||||
brian:
|
|
||||||
bruce:
|
|
||||||
carlita:
|
|
||||||
carlton:
|
|
||||||
cathrin:
|
|
||||||
components:
|
|
||||||
core:
|
|
||||||
create-freesewing-pattern:
|
|
||||||
css-theme:
|
|
||||||
examples:
|
|
||||||
florent:
|
|
||||||
huey:
|
|
||||||
hugo:
|
|
||||||
i18n:
|
|
||||||
jaeger:
|
|
||||||
models:
|
|
||||||
mui-theme:
|
|
||||||
pattern-info:
|
|
||||||
patterns:
|
|
||||||
plugin-banner:
|
|
||||||
plugin-bundle:
|
|
||||||
plugin-bust:
|
|
||||||
plugin-buttons:
|
|
||||||
plugin-cutonfold:
|
|
||||||
plugin-debug:
|
|
||||||
plugin-designer:
|
|
||||||
plugin-dimension:
|
|
||||||
plugin-flip:
|
|
||||||
plugin-grainline:
|
|
||||||
plugin-i18n:
|
|
||||||
plugin-logo:
|
|
||||||
plugin-round:
|
|
||||||
plugin-scalebox:
|
|
||||||
plugin-sprinkle:
|
|
||||||
plugin-svgattr:
|
|
||||||
plugin-theme:
|
|
||||||
plugin-title:
|
|
||||||
plugin-validate:
|
|
||||||
prettier-config:
|
|
||||||
rendertest:
|
|
||||||
sandy:
|
|
||||||
shin:
|
|
||||||
simon:
|
|
||||||
sven:
|
|
||||||
tamiko:
|
|
||||||
theo:
|
|
||||||
trayvon:
|
|
||||||
tutorial:
|
|
||||||
utils:
|
|
||||||
wahid:
|
|
||||||
Removed:
|
Removed:
|
||||||
aaron:
|
|
||||||
benjamin:
|
|
||||||
bent:
|
|
||||||
brian:
|
|
||||||
bruce:
|
|
||||||
carlita:
|
|
||||||
carlton:
|
|
||||||
cathrin:
|
|
||||||
components:
|
|
||||||
core:
|
|
||||||
create-freesewing-pattern:
|
|
||||||
css-theme:
|
|
||||||
examples:
|
|
||||||
florent:
|
|
||||||
huey:
|
|
||||||
hugo:
|
|
||||||
i18n:
|
|
||||||
jaeger:
|
|
||||||
models:
|
|
||||||
mui-theme:
|
|
||||||
pattern-info:
|
|
||||||
patterns:
|
|
||||||
plugin-banner:
|
|
||||||
plugin-bundle:
|
|
||||||
plugin-bust:
|
|
||||||
plugin-buttons:
|
|
||||||
plugin-cutonfold:
|
|
||||||
plugin-debug:
|
|
||||||
plugin-designer:
|
|
||||||
plugin-dimension:
|
|
||||||
plugin-flip:
|
|
||||||
plugin-grainline:
|
|
||||||
plugin-i18n:
|
|
||||||
plugin-logo:
|
|
||||||
plugin-round:
|
|
||||||
plugin-scalebox:
|
|
||||||
plugin-sprinkle:
|
|
||||||
plugin-svgattr:
|
|
||||||
plugin-theme:
|
|
||||||
plugin-title:
|
|
||||||
plugin-validate:
|
|
||||||
prettier-config:
|
|
||||||
rendertest:
|
|
||||||
sandy:
|
|
||||||
shin:
|
|
||||||
simon:
|
|
||||||
sven:
|
|
||||||
tamiko:
|
|
||||||
theo:
|
|
||||||
trayvon:
|
|
||||||
tutorial:
|
|
||||||
utils:
|
|
||||||
wahid:
|
|
||||||
Fixed:
|
Fixed:
|
||||||
aaron:
|
|
||||||
benjamin:
|
|
||||||
bent:
|
|
||||||
brian:
|
|
||||||
bruce:
|
|
||||||
carlita:
|
|
||||||
carlton:
|
|
||||||
cathrin:
|
|
||||||
components:
|
components:
|
||||||
core:
|
- "[#104](https://github.com/freesewing/freesewing.org/issues/104):
|
||||||
|
Changed `onDragEnd` to `onChangeCommitted` in slider element
|
||||||
|
(change in material-ui API when slider came out of beta)"
|
||||||
|
- Workbench now also lets you preload a `withBreasts` set of measurements
|
||||||
create-freesewing-pattern:
|
create-freesewing-pattern:
|
||||||
css-theme:
|
- Added missing `file-saver` dependency
|
||||||
examples:
|
|
||||||
florent:
|
|
||||||
huey:
|
|
||||||
hugo:
|
|
||||||
i18n:
|
|
||||||
jaeger:
|
|
||||||
models:
|
|
||||||
mui-theme:
|
|
||||||
pattern-info:
|
|
||||||
patterns:
|
|
||||||
plugin-banner:
|
|
||||||
plugin-bundle:
|
|
||||||
plugin-bust:
|
|
||||||
plugin-buttons:
|
|
||||||
plugin-cutonfold:
|
|
||||||
plugin-debug:
|
|
||||||
plugin-designer:
|
|
||||||
plugin-dimension:
|
|
||||||
plugin-flip:
|
|
||||||
plugin-grainline:
|
|
||||||
plugin-i18n:
|
|
||||||
plugin-logo:
|
|
||||||
plugin-round:
|
|
||||||
plugin-scalebox:
|
|
||||||
plugin-sprinkle:
|
|
||||||
plugin-svgattr:
|
|
||||||
plugin-theme:
|
|
||||||
plugin-title:
|
|
||||||
plugin-validate:
|
|
||||||
prettier-config:
|
|
||||||
rendertest:
|
|
||||||
sandy:
|
|
||||||
shin:
|
|
||||||
simon:
|
|
||||||
sven:
|
|
||||||
tamiko:
|
|
||||||
theo:
|
|
||||||
trayvon:
|
|
||||||
tutorial:
|
|
||||||
utils:
|
|
||||||
wahid:
|
|
||||||
Security:
|
Security:
|
||||||
|
|
||||||
2.0.1:
|
2.0.1:
|
||||||
|
|
|
@ -3,7 +3,7 @@ import PropTypes from "prop-types";
|
||||||
import Button from "@material-ui/core/Button";
|
import Button from "@material-ui/core/Button";
|
||||||
import { FormattedMessage, FormattedHTMLMessage } from "react-intl";
|
import { FormattedMessage, FormattedHTMLMessage } from "react-intl";
|
||||||
import FormFieldMeasurement from "../../.form/FormFieldMeasurement";
|
import FormFieldMeasurement from "../../.form/FormFieldMeasurement";
|
||||||
import { withoutBreasts } from "@freesewing/models";
|
import { withBreasts, withoutBreasts } from "@freesewing/models";
|
||||||
|
|
||||||
const Measurements = props => {
|
const Measurements = props => {
|
||||||
const styles = {
|
const styles = {
|
||||||
|
@ -111,7 +111,17 @@ const Measurements = props => {
|
||||||
<h4>
|
<h4>
|
||||||
<FormattedMessage id="app.withBreasts" />
|
<FormattedMessage id="app.withBreasts" />
|
||||||
</h4>
|
</h4>
|
||||||
<p>FIXME</p>
|
<ul>
|
||||||
|
{Object.keys(withBreasts).map(m => (
|
||||||
|
<li key={m}>
|
||||||
|
<Button onClick={() => props.preloadMeasurements(withBreasts[m])}>
|
||||||
|
<FormattedMessage id="cfp.size" />
|
||||||
|
|
||||||
|
{m.slice(-2)}
|
||||||
|
</Button>
|
||||||
|
</li>
|
||||||
|
))}
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue