chore: Update dependencies and prebuild artifacts
This commit is contained in:
parent
c0f9972e6b
commit
0842b0411a
21 changed files with 760 additions and 181 deletions
|
@ -4,7 +4,7 @@ _types:
|
|||
'@freesewing/core': &freesewing '{{version}}'
|
||||
dev:
|
||||
'mocha': &mocha '10.4.0'
|
||||
'chai': &chai '5.1.0'
|
||||
'chai': &chai '5.1.1'
|
||||
'@freesewing/models': *freesewing
|
||||
'@freesewing/plugin-timing': *freesewing
|
||||
plugin:
|
||||
|
@ -93,7 +93,7 @@ new-design:
|
|||
_:
|
||||
'axios': &axios '1.6.8'
|
||||
'chalk': '5.3.0'
|
||||
'execa': '8.0.1'
|
||||
'execa': '9.0.1'
|
||||
'mustache': &mustache '4.2.0'
|
||||
'ora': &ora '8.0.1'
|
||||
'prompts': '2.4.2'
|
||||
|
@ -183,7 +183,7 @@ yuri:
|
|||
|
||||
backend:
|
||||
_:
|
||||
'@aws-sdk/client-sesv2': '3.535.0'
|
||||
'@aws-sdk/client-sesv2': '3.572.0'
|
||||
'@prisma/client': &prisma '5.13.0'
|
||||
'bcryptjs': '2.4.3'
|
||||
'cors': '2.8.5'
|
||||
|
@ -198,12 +198,12 @@ backend:
|
|||
'passport-jwt': '4.0.1'
|
||||
'pino': '9.0.0'
|
||||
'qrcode': '1.5.3'
|
||||
'swagger-ui-dist': '5.17.2'
|
||||
'swagger-ui-dist': '5.17.7'
|
||||
'swagger-ui-express': '5.0.0'
|
||||
dev:
|
||||
'chai': *chai
|
||||
'chai-http': '4.4.0'
|
||||
'esbuild': '0.20.2'
|
||||
'esbuild': '0.21.1'
|
||||
'mocha': *mocha
|
||||
'mocha-steps': '1.3.0'
|
||||
'nodemon': '3.1.0'
|
||||
|
@ -216,8 +216,8 @@ dev:
|
|||
'@mdx-js/runtime': &mdxRuntime '2.0.0-next.9'
|
||||
'@next/bundle-analyzer': &next '14.2.3'
|
||||
'@tailwindcss/typography': &tailwindTypography '0.5.13'
|
||||
'algoliasearch': '4.22.1'
|
||||
'daisyui': &daisyui '4.10.4'
|
||||
'algoliasearch': &algoliasearch '4.23.3'
|
||||
'daisyui': &daisyui '4.11.1'
|
||||
'lodash.get': *_get
|
||||
'lodash.orderby': &_orderby '4.6.0'
|
||||
'lodash.set': *_set
|
||||
|
@ -255,12 +255,12 @@ lab:
|
|||
'@mdx-js/react': *mdx
|
||||
'@mdx-js/runtime': *mdxRuntime
|
||||
'@tailwindcss/typography': *tailwindTypography
|
||||
'algoliasearch': &algoliasearch '4.22.1'
|
||||
'algoliasearch': *algoliasearch
|
||||
'd3-dispatch': &d3dispatch '3.0.1'
|
||||
'd3-drag': &d3drag '3.0.0'
|
||||
'd3-selection': &d3selection '3.0.0'
|
||||
'daisyui': *daisyui
|
||||
'i18next': &i18next '23.11.2'
|
||||
'i18next': &i18next '23.11.3'
|
||||
'lodash.get': *_get
|
||||
'lodash.orderby': *_orderby
|
||||
'lodash.set': *_set
|
||||
|
@ -287,7 +287,7 @@ lab:
|
|||
|
||||
org:
|
||||
_:
|
||||
'@bugsnag/js': &bugsnag 7.22.4
|
||||
'@bugsnag/js': &bugsnag 7.23.0
|
||||
'@bugsnag/plugin-react': 7.22.7
|
||||
'@mdx-js/mdx': *mdx
|
||||
'@mdx-js/react': *mdx
|
||||
|
@ -335,7 +335,7 @@ org:
|
|||
shared:
|
||||
_:
|
||||
'@next/mdx': *next
|
||||
'@resvg/resvg-js': '2.6.0'
|
||||
'@resvg/resvg-js': '2.6.2'
|
||||
'@tailwindcss/typography': *tailwindTypography
|
||||
'Buffer': '0.0.0'
|
||||
'd3-dispatch': '3.0.1'
|
||||
|
@ -357,7 +357,7 @@ shared:
|
|||
'mdast-util-toc': '7.0.1'
|
||||
'mermaid': '10.9.0'
|
||||
'ora': *ora
|
||||
'pdfkit': &pdfkit '0.14.0'
|
||||
'pdfkit': &pdfkit '0.15.0'
|
||||
'postcss-for': &postcssfor '2.1.1'
|
||||
'react': *react
|
||||
'react-dom': *react
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
# Change log for: @freesewing/opal
|
||||
|
||||
|
||||
## 3.0.0 (2022-09-30)
|
||||
## 3.0.0 (2023-09-30)
|
||||
|
||||
### Changed
|
||||
|
||||
- All FreeSewing pacakges are now ESM only.
|
||||
- All FreeSewing pacakges now use named exports.
|
||||
- All FreeSewing packages are now ESM only.
|
||||
- All FreeSewing packages now use named exports.
|
||||
- Dropped support for NodeJS 14. NodeJS 18 (LTS/hydrogen) or more recent is now required.
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||

|
||||
<p align='center'><a
|
||||
href="https://www.npmjs.com/package/@freesewing/opal"
|
||||
title="@freesewing/opal on NPM"
|
||||
|
@ -22,7 +21,7 @@
|
|||
</a><a
|
||||
href="#contributors-"
|
||||
title="All Contributors"
|
||||
><img src="https://img.shields.io/badge/all_contributors-117-pink.svg"
|
||||
><img src="https://img.shields.io/badge/all_contributors-128-pink.svg"
|
||||
alt="All Contributors"/>
|
||||
</a></p><p align='center'><a
|
||||
href="https://twitter.com/freesewing_org"
|
||||
|
@ -48,10 +47,19 @@
|
|||
|
||||
# @freesewing/opal
|
||||
|
||||
A FreeSewing pattern that needs a description
|
||||
A FreeSewing pattern for overalls
|
||||
|
||||
|
||||
|
||||
# FreeSewing
|
||||
|
||||
> [!TIP]
|
||||
>#### Support FreeSewing: Become a patron, or make a one-time donation 🥰
|
||||
>
|
||||
> FreeSewing is an open source project maintained by Joost De Cock and financially supported by the FreeSewing patrons.
|
||||
>
|
||||
> If you feel FreeSewing is worthwhile, and you can spend a few coins without
|
||||
hardship, then you should [join us and become a patron](https://freesewing.org/community/join).
|
||||
|
||||
## What am I looking at? 🤔
|
||||
|
||||
|
@ -65,6 +73,7 @@ If you're not entirely sure what to do or how to start, type this command:
|
|||
npm run tips
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> If you don't want to set up a dev environment, you can run it in your browser:
|
||||
>
|
||||
> [](https://gitpod.io/#https://github.com/freesewing/freesewing)
|
||||
|
@ -89,7 +98,7 @@ functionality of the platform.
|
|||
If you have NodeJS installed, you can try it right now by running:
|
||||
|
||||
```bash
|
||||
npx create-freesewing-pattern
|
||||
npx @freesewing/new-design
|
||||
```
|
||||
|
||||
Getting started guides are available for:
|
||||
|
@ -100,12 +109,22 @@ Getting started guides are available for:
|
|||
The [pattern design tutorial](https://freesewing.dev/tutorials/pattern-design/) will
|
||||
show you how to create your first parametric design.
|
||||
|
||||
## Support FreeSewing: Become a patron 🥰
|
||||
## Getting started ⚡
|
||||
|
||||
FreeSewing is an open source project maintained by Joost De Cock and financially supported by the FreeSewing patrons.
|
||||
To get started with FreeSewing, you can spin up our development environment with:
|
||||
|
||||
If you feel FreeSewing is worthwhile, and you can spend a few coind without
|
||||
hardship, then you should [join us and become a patron](https://freesewing.org/community/join).
|
||||
```bash
|
||||
npx @freesewing/new-design
|
||||
```
|
||||
|
||||
To work with FreeSewing's monorepo, you'll need [NodeJS v18](https://nodejs.org), [lerna](https://lerna.js.org/) and [yarn](https://yarnpkg.com/) on your system.
|
||||
Once you have those, clone (or fork) this repo and run `yarn kickstart`:
|
||||
|
||||
```bash
|
||||
git clone git@github.com:freesewing/freesewing.git
|
||||
cd freesewing
|
||||
yarn kickstart
|
||||
```
|
||||
|
||||
## Links 👩💻
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// This file is auto-generated | All changes you make will be overwritten.
|
||||
export const name = '@freesewing/opal'
|
||||
export const version = '3.0.0'
|
||||
export const version = '3.2.0'
|
||||
export const data = { name, version }
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"name": "@freesewing/opal",
|
||||
"version": "3.0.0",
|
||||
"description": "A FreeSewing pattern that needs a description",
|
||||
"author": "Joost De Cock <joost@joost.at> (https://github.com/joostdecock)",
|
||||
"version": "3.2.0",
|
||||
"description": "A FreeSewing pattern for overalls",
|
||||
"author": "Thrunic (https://github.com/Thrunic)",
|
||||
"homepage": "https://freesewing.org/",
|
||||
"repository": "github:freesewing/freesewing",
|
||||
"license": "MIT",
|
||||
|
@ -49,14 +49,14 @@
|
|||
"wbuild:all": "yarn wbuild"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@freesewing/core": "3.0.0"
|
||||
"@freesewing/core": "3.2.0"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"mocha": "10.2.0",
|
||||
"chai": "4.3.10",
|
||||
"@freesewing/models": "3.0.0",
|
||||
"@freesewing/plugin-timing": "3.0.0"
|
||||
"mocha": "10.4.0",
|
||||
"chai": "5.1.1",
|
||||
"@freesewing/models": "3.2.0",
|
||||
"@freesewing/plugin-timing": "3.2.0"
|
||||
},
|
||||
"files": [
|
||||
"dist/*",
|
||||
|
@ -67,7 +67,6 @@
|
|||
"tag": "latest"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 18.17.0 <22",
|
||||
"npm": "9"
|
||||
"node": ">= 18.17.0 <22"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -36,33 +36,16 @@ export const downloads = {
|
|||
'sde/components/search.mjs',
|
||||
'sde/components/header/design-picker.mjs',
|
||||
'sde/components/header/index.mjs',
|
||||
'sde/components/navigation/modal-menu.mjs',
|
||||
'sde/components/layouts/bare.mjs',
|
||||
'sde/components/layouts/default.mjs',
|
||||
'sde/components/layouts/workbench.mjs',
|
||||
'sde/components/navigation/modal-menu.mjs',
|
||||
'sde/components/wrappers/page.mjs',
|
||||
'sde/design/from-bella/en.json',
|
||||
'sde/design/from-bella/i18n/es.json',
|
||||
'sde/design/from-bella/i18n/de.json',
|
||||
'sde/design/from-bella/i18n/en.json',
|
||||
'sde/design/from-bella/i18n/fr.json',
|
||||
'sde/design/from-bella/i18n/index.mjs',
|
||||
'sde/design/from-bella/i18n/nl.json',
|
||||
'sde/design/from-bella/i18n/uk.json',
|
||||
'sde/design/from-bella/src/back.mjs',
|
||||
'sde/design/from-bella/src/front.mjs',
|
||||
'sde/design/from-bella/src/index.mjs',
|
||||
'sde/design/from-breanna/i18n/de.json',
|
||||
'sde/design/from-breanna/i18n/en.json',
|
||||
'sde/design/from-breanna/i18n/es.json',
|
||||
'sde/design/from-breanna/i18n/fr.json',
|
||||
'sde/design/from-breanna/i18n/index.mjs',
|
||||
'sde/design/from-breanna/i18n/nl.json',
|
||||
'sde/design/from-breanna/i18n/uk.json',
|
||||
'sde/design/from-breanna/src/back.mjs',
|
||||
'sde/design/from-breanna/src/front.mjs',
|
||||
'sde/design/from-breanna/src/index.mjs',
|
||||
'sde/design/from-breanna/src/sleeve.mjs',
|
||||
'sde/design/from-bent/src/back.mjs',
|
||||
'sde/design/from-bent/src/front.mjs',
|
||||
'sde/design/from-bent/src/index.mjs',
|
||||
'sde/design/from-bent/src/top-sleeve.mjs',
|
||||
'sde/design/from-bent/src/under-sleeve.mjs',
|
||||
'sde/design/from-bent/i18n/de.json',
|
||||
'sde/design/from-bent/i18n/en.json',
|
||||
'sde/design/from-bent/i18n/es.json',
|
||||
|
@ -70,22 +53,39 @@ export const downloads = {
|
|||
'sde/design/from-bent/i18n/index.mjs',
|
||||
'sde/design/from-bent/i18n/nl.json',
|
||||
'sde/design/from-bent/i18n/uk.json',
|
||||
'sde/design/from-bent/src/back.mjs',
|
||||
'sde/design/from-bent/src/front.mjs',
|
||||
'sde/design/from-bent/src/index.mjs',
|
||||
'sde/design/from-bent/src/top-sleeve.mjs',
|
||||
'sde/design/from-bent/src/under-sleeve.mjs',
|
||||
'sde/design/from-brian/src/back.mjs',
|
||||
'sde/design/from-brian/src/front.mjs',
|
||||
'sde/design/from-brian/src/index.mjs',
|
||||
'sde/design/from-brian/src/sleeve.mjs',
|
||||
'sde/design/from-bella/en.json',
|
||||
'sde/design/from-bella/i18n/de.json',
|
||||
'sde/design/from-bella/i18n/en.json',
|
||||
'sde/design/from-bella/i18n/es.json',
|
||||
'sde/design/from-bella/i18n/fr.json',
|
||||
'sde/design/from-bella/i18n/index.mjs',
|
||||
'sde/design/from-bella/i18n/nl.json',
|
||||
'sde/design/from-bella/i18n/uk.json',
|
||||
'sde/design/from-bella/src/back.mjs',
|
||||
'sde/design/from-bella/src/front.mjs',
|
||||
'sde/design/from-bella/src/index.mjs',
|
||||
'sde/design/from-breanna/src/back.mjs',
|
||||
'sde/design/from-breanna/src/front.mjs',
|
||||
'sde/design/from-breanna/src/index.mjs',
|
||||
'sde/design/from-breanna/src/sleeve.mjs',
|
||||
'sde/design/from-breanna/i18n/de.json',
|
||||
'sde/design/from-breanna/i18n/en.json',
|
||||
'sde/design/from-breanna/i18n/es.json',
|
||||
'sde/design/from-breanna/i18n/fr.json',
|
||||
'sde/design/from-breanna/i18n/index.mjs',
|
||||
'sde/design/from-breanna/i18n/nl.json',
|
||||
'sde/design/from-breanna/i18n/uk.json',
|
||||
'sde/design/from-brian/i18n/de.json',
|
||||
'sde/design/from-brian/i18n/en.json',
|
||||
'sde/design/from-brian/i18n/es.json',
|
||||
'sde/design/from-brian/i18n/fr.json',
|
||||
'sde/design/from-brian/i18n/index.mjs',
|
||||
'sde/design/from-brian/i18n/nl.json',
|
||||
'sde/design/from-brian/i18n/uk.json',
|
||||
'sde/design/from-brian/i18n/nl.json',
|
||||
'sde/design/from-brian/src/back.mjs',
|
||||
'sde/design/from-brian/src/front.mjs',
|
||||
'sde/design/from-brian/src/index.mjs',
|
||||
'sde/design/from-brian/src/sleeve.mjs',
|
||||
'sde/design/from-scratch/i18n/de.json',
|
||||
'sde/design/from-scratch/i18n/en.json',
|
||||
'sde/design/from-scratch/i18n/es.json',
|
||||
|
@ -95,6 +95,9 @@ export const downloads = {
|
|||
'sde/design/from-scratch/i18n/uk.json',
|
||||
'sde/design/from-scratch/src/bib.mjs',
|
||||
'sde/design/from-scratch/src/index.mjs',
|
||||
'sde/design/from-titan/src/back.mjs',
|
||||
'sde/design/from-titan/src/front.mjs',
|
||||
'sde/design/from-titan/src/index.mjs',
|
||||
'sde/design/from-titan/i18n/de.json',
|
||||
'sde/design/from-titan/i18n/en.json',
|
||||
'sde/design/from-titan/i18n/es.json',
|
||||
|
@ -102,9 +105,6 @@ export const downloads = {
|
|||
'sde/design/from-titan/i18n/index.mjs',
|
||||
'sde/design/from-titan/i18n/nl.json',
|
||||
'sde/design/from-titan/i18n/uk.json',
|
||||
'sde/design/from-titan/src/back.mjs',
|
||||
'sde/design/from-titan/src/front.mjs',
|
||||
'sde/design/from-titan/src/index.mjs',
|
||||
'sde/design/tutorial/i18n/de.json',
|
||||
'sde/design/tutorial/i18n/en.json',
|
||||
'sde/design/tutorial/i18n/es.json',
|
||||
|
@ -135,114 +135,6 @@ export const downloads = {
|
|||
'sde/public/brands/netlify.svg',
|
||||
'sde/public/brands/vercel.svg',
|
||||
'sde/public/img/lineup-backdrop.svg',
|
||||
'sde/public/locales/de/account.json',
|
||||
'sde/public/locales/de/auth.json',
|
||||
'sde/public/locales/de/bella.json',
|
||||
'sde/public/locales/de/bent.json',
|
||||
'sde/public/locales/de/breanna.json',
|
||||
'sde/public/locales/de/brian.json',
|
||||
'sde/public/locales/de/common.json',
|
||||
'sde/public/locales/de/core-settings.json',
|
||||
'sde/public/locales/de/curate.json',
|
||||
'sde/public/locales/de/cut.json',
|
||||
'sde/public/locales/de/design-options.json',
|
||||
'sde/public/locales/de/designs.json',
|
||||
'sde/public/locales/de/docs.json',
|
||||
'sde/public/locales/de/errors.json',
|
||||
'sde/public/locales/de/flag.json',
|
||||
'sde/public/locales/de/footer.json',
|
||||
'sde/public/locales/de/frombella.json',
|
||||
'sde/public/locales/de/frombent.json',
|
||||
'sde/public/locales/de/frombreanna.json',
|
||||
'sde/public/locales/de/frombrian.json',
|
||||
'sde/public/locales/de/fromscratch.json',
|
||||
'sde/public/locales/de/fromtitan.json',
|
||||
'sde/public/locales/de/gdpr.json',
|
||||
'sde/public/locales/de/header.json',
|
||||
'sde/public/locales/de/hodl.json',
|
||||
'sde/public/locales/de/homepage.json',
|
||||
'sde/public/locales/de/lab.json',
|
||||
'sde/public/locales/de/locales.json',
|
||||
'sde/public/locales/de/logs.json',
|
||||
'sde/public/locales/de/measurements.json',
|
||||
'sde/public/locales/de/modal.json',
|
||||
'sde/public/locales/de/newsletter.json',
|
||||
'sde/public/locales/de/patrons.json',
|
||||
'sde/public/locales/de/plugin-annotations.json',
|
||||
'sde/public/locales/de/plugins.json',
|
||||
'sde/public/locales/de/popout.json',
|
||||
'sde/public/locales/de/print.json',
|
||||
'sde/public/locales/de/roles.json',
|
||||
'sde/public/locales/de/sde.json',
|
||||
'sde/public/locales/de/sections.json',
|
||||
'sde/public/locales/de/sets.json',
|
||||
'sde/public/locales/de/sponsors.json',
|
||||
'sde/public/locales/de/status.json',
|
||||
'sde/public/locales/de/submissions.json',
|
||||
'sde/public/locales/de/support.json',
|
||||
'sde/public/locales/de/susi.json',
|
||||
'sde/public/locales/de/tags.json',
|
||||
'sde/public/locales/de/techniques.json',
|
||||
'sde/public/locales/de/themes.json',
|
||||
'sde/public/locales/de/timeago.json',
|
||||
'sde/public/locales/de/titan.json',
|
||||
'sde/public/locales/de/tutorial.json',
|
||||
'sde/public/locales/de/ui-settings.json',
|
||||
'sde/public/locales/de/workbench.json',
|
||||
'sde/public/locales/fr/account.json',
|
||||
'sde/public/locales/fr/auth.json',
|
||||
'sde/public/locales/fr/bella.json',
|
||||
'sde/public/locales/fr/bent.json',
|
||||
'sde/public/locales/fr/breanna.json',
|
||||
'sde/public/locales/fr/brian.json',
|
||||
'sde/public/locales/fr/common.json',
|
||||
'sde/public/locales/fr/core-settings.json',
|
||||
'sde/public/locales/fr/curate.json',
|
||||
'sde/public/locales/fr/cut.json',
|
||||
'sde/public/locales/fr/design-options.json',
|
||||
'sde/public/locales/fr/designs.json',
|
||||
'sde/public/locales/fr/docs.json',
|
||||
'sde/public/locales/fr/errors.json',
|
||||
'sde/public/locales/fr/flag.json',
|
||||
'sde/public/locales/fr/footer.json',
|
||||
'sde/public/locales/fr/frombella.json',
|
||||
'sde/public/locales/fr/frombent.json',
|
||||
'sde/public/locales/fr/frombreanna.json',
|
||||
'sde/public/locales/fr/frombrian.json',
|
||||
'sde/public/locales/fr/fromscratch.json',
|
||||
'sde/public/locales/fr/fromtitan.json',
|
||||
'sde/public/locales/fr/gdpr.json',
|
||||
'sde/public/locales/fr/header.json',
|
||||
'sde/public/locales/fr/hodl.json',
|
||||
'sde/public/locales/fr/homepage.json',
|
||||
'sde/public/locales/fr/lab.json',
|
||||
'sde/public/locales/fr/locales.json',
|
||||
'sde/public/locales/fr/logs.json',
|
||||
'sde/public/locales/fr/measurements.json',
|
||||
'sde/public/locales/fr/modal.json',
|
||||
'sde/public/locales/fr/newsletter.json',
|
||||
'sde/public/locales/fr/patrons.json',
|
||||
'sde/public/locales/fr/plugin-annotations.json',
|
||||
'sde/public/locales/fr/plugins.json',
|
||||
'sde/public/locales/fr/popout.json',
|
||||
'sde/public/locales/fr/print.json',
|
||||
'sde/public/locales/fr/roles.json',
|
||||
'sde/public/locales/fr/sde.json',
|
||||
'sde/public/locales/fr/sections.json',
|
||||
'sde/public/locales/fr/sets.json',
|
||||
'sde/public/locales/fr/sponsors.json',
|
||||
'sde/public/locales/fr/status.json',
|
||||
'sde/public/locales/fr/submissions.json',
|
||||
'sde/public/locales/fr/support.json',
|
||||
'sde/public/locales/fr/susi.json',
|
||||
'sde/public/locales/fr/tags.json',
|
||||
'sde/public/locales/fr/techniques.json',
|
||||
'sde/public/locales/fr/themes.json',
|
||||
'sde/public/locales/fr/timeago.json',
|
||||
'sde/public/locales/fr/titan.json',
|
||||
'sde/public/locales/fr/tutorial.json',
|
||||
'sde/public/locales/fr/ui-settings.json',
|
||||
'sde/public/locales/fr/workbench.json',
|
||||
'sde/public/locales/es/account.json',
|
||||
'sde/public/locales/es/auth.json',
|
||||
'sde/public/locales/es/bella.json',
|
||||
|
@ -285,6 +177,7 @@ export const downloads = {
|
|||
'sde/public/locales/es/sections.json',
|
||||
'sde/public/locales/es/sets.json',
|
||||
'sde/public/locales/es/sponsors.json',
|
||||
'sde/public/locales/es/stats.json',
|
||||
'sde/public/locales/es/status.json',
|
||||
'sde/public/locales/es/submissions.json',
|
||||
'sde/public/locales/es/support.json',
|
||||
|
@ -297,6 +190,116 @@ export const downloads = {
|
|||
'sde/public/locales/es/tutorial.json',
|
||||
'sde/public/locales/es/ui-settings.json',
|
||||
'sde/public/locales/es/workbench.json',
|
||||
'sde/public/locales/fr/account.json',
|
||||
'sde/public/locales/fr/auth.json',
|
||||
'sde/public/locales/fr/bella.json',
|
||||
'sde/public/locales/fr/bent.json',
|
||||
'sde/public/locales/fr/breanna.json',
|
||||
'sde/public/locales/fr/brian.json',
|
||||
'sde/public/locales/fr/common.json',
|
||||
'sde/public/locales/fr/core-settings.json',
|
||||
'sde/public/locales/fr/curate.json',
|
||||
'sde/public/locales/fr/cut.json',
|
||||
'sde/public/locales/fr/design-options.json',
|
||||
'sde/public/locales/fr/designs.json',
|
||||
'sde/public/locales/fr/docs.json',
|
||||
'sde/public/locales/fr/errors.json',
|
||||
'sde/public/locales/fr/flag.json',
|
||||
'sde/public/locales/fr/footer.json',
|
||||
'sde/public/locales/fr/frombella.json',
|
||||
'sde/public/locales/fr/frombent.json',
|
||||
'sde/public/locales/fr/frombreanna.json',
|
||||
'sde/public/locales/fr/frombrian.json',
|
||||
'sde/public/locales/fr/fromscratch.json',
|
||||
'sde/public/locales/fr/fromtitan.json',
|
||||
'sde/public/locales/fr/gdpr.json',
|
||||
'sde/public/locales/fr/header.json',
|
||||
'sde/public/locales/fr/hodl.json',
|
||||
'sde/public/locales/fr/homepage.json',
|
||||
'sde/public/locales/fr/lab.json',
|
||||
'sde/public/locales/fr/locales.json',
|
||||
'sde/public/locales/fr/logs.json',
|
||||
'sde/public/locales/fr/measurements.json',
|
||||
'sde/public/locales/fr/modal.json',
|
||||
'sde/public/locales/fr/newsletter.json',
|
||||
'sde/public/locales/fr/patrons.json',
|
||||
'sde/public/locales/fr/plugin-annotations.json',
|
||||
'sde/public/locales/fr/plugins.json',
|
||||
'sde/public/locales/fr/popout.json',
|
||||
'sde/public/locales/fr/print.json',
|
||||
'sde/public/locales/fr/roles.json',
|
||||
'sde/public/locales/fr/sde.json',
|
||||
'sde/public/locales/fr/sections.json',
|
||||
'sde/public/locales/fr/sets.json',
|
||||
'sde/public/locales/fr/sponsors.json',
|
||||
'sde/public/locales/fr/stats.json',
|
||||
'sde/public/locales/fr/status.json',
|
||||
'sde/public/locales/fr/submissions.json',
|
||||
'sde/public/locales/fr/support.json',
|
||||
'sde/public/locales/fr/susi.json',
|
||||
'sde/public/locales/fr/tags.json',
|
||||
'sde/public/locales/fr/techniques.json',
|
||||
'sde/public/locales/fr/themes.json',
|
||||
'sde/public/locales/fr/timeago.json',
|
||||
'sde/public/locales/fr/titan.json',
|
||||
'sde/public/locales/fr/tutorial.json',
|
||||
'sde/public/locales/fr/ui-settings.json',
|
||||
'sde/public/locales/fr/workbench.json',
|
||||
'sde/public/locales/de/account.json',
|
||||
'sde/public/locales/de/auth.json',
|
||||
'sde/public/locales/de/bella.json',
|
||||
'sde/public/locales/de/bent.json',
|
||||
'sde/public/locales/de/breanna.json',
|
||||
'sde/public/locales/de/brian.json',
|
||||
'sde/public/locales/de/common.json',
|
||||
'sde/public/locales/de/core-settings.json',
|
||||
'sde/public/locales/de/curate.json',
|
||||
'sde/public/locales/de/cut.json',
|
||||
'sde/public/locales/de/design-options.json',
|
||||
'sde/public/locales/de/designs.json',
|
||||
'sde/public/locales/de/docs.json',
|
||||
'sde/public/locales/de/errors.json',
|
||||
'sde/public/locales/de/flag.json',
|
||||
'sde/public/locales/de/footer.json',
|
||||
'sde/public/locales/de/frombella.json',
|
||||
'sde/public/locales/de/frombent.json',
|
||||
'sde/public/locales/de/frombreanna.json',
|
||||
'sde/public/locales/de/frombrian.json',
|
||||
'sde/public/locales/de/fromscratch.json',
|
||||
'sde/public/locales/de/fromtitan.json',
|
||||
'sde/public/locales/de/gdpr.json',
|
||||
'sde/public/locales/de/header.json',
|
||||
'sde/public/locales/de/hodl.json',
|
||||
'sde/public/locales/de/homepage.json',
|
||||
'sde/public/locales/de/lab.json',
|
||||
'sde/public/locales/de/locales.json',
|
||||
'sde/public/locales/de/logs.json',
|
||||
'sde/public/locales/de/measurements.json',
|
||||
'sde/public/locales/de/modal.json',
|
||||
'sde/public/locales/de/newsletter.json',
|
||||
'sde/public/locales/de/patrons.json',
|
||||
'sde/public/locales/de/plugin-annotations.json',
|
||||
'sde/public/locales/de/plugins.json',
|
||||
'sde/public/locales/de/popout.json',
|
||||
'sde/public/locales/de/print.json',
|
||||
'sde/public/locales/de/roles.json',
|
||||
'sde/public/locales/de/sde.json',
|
||||
'sde/public/locales/de/sections.json',
|
||||
'sde/public/locales/de/sets.json',
|
||||
'sde/public/locales/de/sponsors.json',
|
||||
'sde/public/locales/de/stats.json',
|
||||
'sde/public/locales/de/status.json',
|
||||
'sde/public/locales/de/submissions.json',
|
||||
'sde/public/locales/de/support.json',
|
||||
'sde/public/locales/de/susi.json',
|
||||
'sde/public/locales/de/tags.json',
|
||||
'sde/public/locales/de/techniques.json',
|
||||
'sde/public/locales/de/themes.json',
|
||||
'sde/public/locales/de/timeago.json',
|
||||
'sde/public/locales/de/titan.json',
|
||||
'sde/public/locales/de/tutorial.json',
|
||||
'sde/public/locales/de/ui-settings.json',
|
||||
'sde/public/locales/de/workbench.json',
|
||||
'sde/public/locales/en/account.json',
|
||||
'sde/public/locales/en/auth.json',
|
||||
'sde/public/locales/en/bella.json',
|
||||
|
@ -339,6 +342,7 @@ export const downloads = {
|
|||
'sde/public/locales/en/sections.json',
|
||||
'sde/public/locales/en/sets.json',
|
||||
'sde/public/locales/en/sponsors.json',
|
||||
'sde/public/locales/en/stats.json',
|
||||
'sde/public/locales/en/status.json',
|
||||
'sde/public/locales/en/submissions.json',
|
||||
'sde/public/locales/en/support.json',
|
||||
|
@ -393,6 +397,7 @@ export const downloads = {
|
|||
'sde/public/locales/nl/sections.json',
|
||||
'sde/public/locales/nl/sets.json',
|
||||
'sde/public/locales/nl/sponsors.json',
|
||||
'sde/public/locales/nl/stats.json',
|
||||
'sde/public/locales/nl/status.json',
|
||||
'sde/public/locales/nl/submissions.json',
|
||||
'sde/public/locales/nl/support.json',
|
||||
|
@ -447,6 +452,7 @@ export const downloads = {
|
|||
'sde/public/locales/uk/sections.json',
|
||||
'sde/public/locales/uk/sets.json',
|
||||
'sde/public/locales/uk/sponsors.json',
|
||||
'sde/public/locales/uk/stats.json',
|
||||
'sde/public/locales/uk/status.json',
|
||||
'sde/public/locales/uk/submissions.json',
|
||||
'sde/public/locales/uk/support.json',
|
||||
|
|
|
@ -37,6 +37,7 @@ import { Magde as magde } from '@freesewing/magde'
|
|||
import { Noble as noble } from '@freesewing/noble'
|
||||
import { Octoplushy as octoplushy } from '@freesewing/octoplushy'
|
||||
import { Onyx as onyx } from '@freesewing/onyx'
|
||||
import { Opal as opal } from '@freesewing/opal'
|
||||
import { Otis as otis } from '@freesewing/otis'
|
||||
import { Paco as paco } from '@freesewing/paco'
|
||||
import { Penelope as penelope } from '@freesewing/penelope'
|
||||
|
@ -99,6 +100,7 @@ const designs = {
|
|||
noble,
|
||||
octoplushy,
|
||||
onyx,
|
||||
opal,
|
||||
otis,
|
||||
paco,
|
||||
penelope,
|
||||
|
|
86
sites/lab/pages/account/patterns/bibi/edit.mjs
Normal file
86
sites/lab/pages/account/patterns/bibi/edit.mjs
Normal file
|
@ -0,0 +1,86 @@
|
|||
/*
|
||||
* This page is auto-generated. Do not edit it by hand.
|
||||
*/
|
||||
import { Bibi } from 'designs/bibi/src/index.mjs'
|
||||
// Dependencies
|
||||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
||||
import { nsMerge, getSearchParam } from 'shared/utils.mjs'
|
||||
// Hooks
|
||||
import { useState, useEffect, useContext } from 'react'
|
||||
import { useTranslation } from 'next-i18next'
|
||||
import { useBackend } from 'shared/hooks/use-backend.mjs'
|
||||
// Context
|
||||
import { LoadingStatusContext } from 'shared/context/loading-status-context.mjs'
|
||||
// Components
|
||||
import { PageWrapper, ns as pageNs } from 'shared/components/wrappers/page.mjs'
|
||||
import { Workbench, ns as wbNs } from 'shared/components/workbench/new.mjs'
|
||||
import { WorkbenchLayout } from 'site/components/layouts/workbench.mjs'
|
||||
import { Loading } from 'shared/components/spinner.mjs'
|
||||
|
||||
// Translation namespaces used on this page
|
||||
const ns = nsMerge('bibi', wbNs, pageNs)
|
||||
|
||||
const EditDesignComponent = ({ id, design, Design, settings }) => (
|
||||
<Workbench preload={{ settings }} saveAs={{ pattern: id }} {...{ design, Design }} />
|
||||
)
|
||||
|
||||
const EditBibiPage = ({ page }) => {
|
||||
const { setLoadingStatus } = useContext(LoadingStatusContext)
|
||||
const backend = useBackend()
|
||||
const { t } = useTranslation(ns)
|
||||
|
||||
const [pattern, setPattern] = useState(false)
|
||||
|
||||
useEffect(() => {
|
||||
const getPattern = async () => {
|
||||
setLoadingStatus([true, t('backendLoadingStarted')])
|
||||
let result
|
||||
try {
|
||||
result = await backend.getPattern(id)
|
||||
if (result.success) {
|
||||
setPattern(result.data.pattern)
|
||||
setLoadingStatus([true, 'backendLoadingCompleted', true, true])
|
||||
} else setLoadingStatus([true, 'backendError', true, false])
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
setLoadingStatus([true, 'backendError', true, false])
|
||||
}
|
||||
}
|
||||
const id = getSearchParam('id')
|
||||
if (id) getPattern()
|
||||
}, [backend, setLoadingStatus, t])
|
||||
|
||||
return (
|
||||
// prettier-ignore
|
||||
<PageWrapper {...page} title="Bibi" layout={pattern ? WorkbenchLayout : false} header={null}>
|
||||
{pattern ? (
|
||||
<EditDesignComponent
|
||||
id={pattern.id}
|
||||
settings={pattern.settings}
|
||||
design="bibi"
|
||||
Design={Bibi}
|
||||
/>
|
||||
) : (
|
||||
<div>
|
||||
<h1>{t('account:oneMomentPLease')}</h1>
|
||||
<Loading />
|
||||
</div>
|
||||
)}
|
||||
</PageWrapper>
|
||||
)
|
||||
}
|
||||
|
||||
export default EditBibiPage
|
||||
|
||||
export async function getStaticProps({ locale }) {
|
||||
return {
|
||||
props: {
|
||||
...(await serverSideTranslations(locale, ns)),
|
||||
page: {
|
||||
locale,
|
||||
path: ['account', 'patterns', 'bibi'],
|
||||
title: 'Bibi',
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
86
sites/lab/pages/account/patterns/lily/edit.mjs
Normal file
86
sites/lab/pages/account/patterns/lily/edit.mjs
Normal file
|
@ -0,0 +1,86 @@
|
|||
/*
|
||||
* This page is auto-generated. Do not edit it by hand.
|
||||
*/
|
||||
import { Lily } from 'designs/lily/src/index.mjs'
|
||||
// Dependencies
|
||||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
||||
import { nsMerge, getSearchParam } from 'shared/utils.mjs'
|
||||
// Hooks
|
||||
import { useState, useEffect, useContext } from 'react'
|
||||
import { useTranslation } from 'next-i18next'
|
||||
import { useBackend } from 'shared/hooks/use-backend.mjs'
|
||||
// Context
|
||||
import { LoadingStatusContext } from 'shared/context/loading-status-context.mjs'
|
||||
// Components
|
||||
import { PageWrapper, ns as pageNs } from 'shared/components/wrappers/page.mjs'
|
||||
import { Workbench, ns as wbNs } from 'shared/components/workbench/new.mjs'
|
||||
import { WorkbenchLayout } from 'site/components/layouts/workbench.mjs'
|
||||
import { Loading } from 'shared/components/spinner.mjs'
|
||||
|
||||
// Translation namespaces used on this page
|
||||
const ns = nsMerge('lily', wbNs, pageNs)
|
||||
|
||||
const EditDesignComponent = ({ id, design, Design, settings }) => (
|
||||
<Workbench preload={{ settings }} saveAs={{ pattern: id }} {...{ design, Design }} />
|
||||
)
|
||||
|
||||
const EditLilyPage = ({ page }) => {
|
||||
const { setLoadingStatus } = useContext(LoadingStatusContext)
|
||||
const backend = useBackend()
|
||||
const { t } = useTranslation(ns)
|
||||
|
||||
const [pattern, setPattern] = useState(false)
|
||||
|
||||
useEffect(() => {
|
||||
const getPattern = async () => {
|
||||
setLoadingStatus([true, t('backendLoadingStarted')])
|
||||
let result
|
||||
try {
|
||||
result = await backend.getPattern(id)
|
||||
if (result.success) {
|
||||
setPattern(result.data.pattern)
|
||||
setLoadingStatus([true, 'backendLoadingCompleted', true, true])
|
||||
} else setLoadingStatus([true, 'backendError', true, false])
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
setLoadingStatus([true, 'backendError', true, false])
|
||||
}
|
||||
}
|
||||
const id = getSearchParam('id')
|
||||
if (id) getPattern()
|
||||
}, [backend, setLoadingStatus, t])
|
||||
|
||||
return (
|
||||
// prettier-ignore
|
||||
<PageWrapper {...page} title="Lily" layout={pattern ? WorkbenchLayout : false} header={null}>
|
||||
{pattern ? (
|
||||
<EditDesignComponent
|
||||
id={pattern.id}
|
||||
settings={pattern.settings}
|
||||
design="lily"
|
||||
Design={Lily}
|
||||
/>
|
||||
) : (
|
||||
<div>
|
||||
<h1>{t('account:oneMomentPLease')}</h1>
|
||||
<Loading />
|
||||
</div>
|
||||
)}
|
||||
</PageWrapper>
|
||||
)
|
||||
}
|
||||
|
||||
export default EditLilyPage
|
||||
|
||||
export async function getStaticProps({ locale }) {
|
||||
return {
|
||||
props: {
|
||||
...(await serverSideTranslations(locale, ns)),
|
||||
page: {
|
||||
locale,
|
||||
path: ['account', 'patterns', 'lily'],
|
||||
title: 'Lily',
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
86
sites/lab/pages/account/patterns/umbra/edit.mjs
Normal file
86
sites/lab/pages/account/patterns/umbra/edit.mjs
Normal file
|
@ -0,0 +1,86 @@
|
|||
/*
|
||||
* This page is auto-generated. Do not edit it by hand.
|
||||
*/
|
||||
import { Umbra } from 'designs/umbra/src/index.mjs'
|
||||
// Dependencies
|
||||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
||||
import { nsMerge, getSearchParam } from 'shared/utils.mjs'
|
||||
// Hooks
|
||||
import { useState, useEffect, useContext } from 'react'
|
||||
import { useTranslation } from 'next-i18next'
|
||||
import { useBackend } from 'shared/hooks/use-backend.mjs'
|
||||
// Context
|
||||
import { LoadingStatusContext } from 'shared/context/loading-status-context.mjs'
|
||||
// Components
|
||||
import { PageWrapper, ns as pageNs } from 'shared/components/wrappers/page.mjs'
|
||||
import { Workbench, ns as wbNs } from 'shared/components/workbench/new.mjs'
|
||||
import { WorkbenchLayout } from 'site/components/layouts/workbench.mjs'
|
||||
import { Loading } from 'shared/components/spinner.mjs'
|
||||
|
||||
// Translation namespaces used on this page
|
||||
const ns = nsMerge('umbra', wbNs, pageNs)
|
||||
|
||||
const EditDesignComponent = ({ id, design, Design, settings }) => (
|
||||
<Workbench preload={{ settings }} saveAs={{ pattern: id }} {...{ design, Design }} />
|
||||
)
|
||||
|
||||
const EditUmbraPage = ({ page }) => {
|
||||
const { setLoadingStatus } = useContext(LoadingStatusContext)
|
||||
const backend = useBackend()
|
||||
const { t } = useTranslation(ns)
|
||||
|
||||
const [pattern, setPattern] = useState(false)
|
||||
|
||||
useEffect(() => {
|
||||
const getPattern = async () => {
|
||||
setLoadingStatus([true, t('backendLoadingStarted')])
|
||||
let result
|
||||
try {
|
||||
result = await backend.getPattern(id)
|
||||
if (result.success) {
|
||||
setPattern(result.data.pattern)
|
||||
setLoadingStatus([true, 'backendLoadingCompleted', true, true])
|
||||
} else setLoadingStatus([true, 'backendError', true, false])
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
setLoadingStatus([true, 'backendError', true, false])
|
||||
}
|
||||
}
|
||||
const id = getSearchParam('id')
|
||||
if (id) getPattern()
|
||||
}, [backend, setLoadingStatus, t])
|
||||
|
||||
return (
|
||||
// prettier-ignore
|
||||
<PageWrapper {...page} title="Umbra" layout={pattern ? WorkbenchLayout : false} header={null}>
|
||||
{pattern ? (
|
||||
<EditDesignComponent
|
||||
id={pattern.id}
|
||||
settings={pattern.settings}
|
||||
design="umbra"
|
||||
Design={Umbra}
|
||||
/>
|
||||
) : (
|
||||
<div>
|
||||
<h1>{t('account:oneMomentPLease')}</h1>
|
||||
<Loading />
|
||||
</div>
|
||||
)}
|
||||
</PageWrapper>
|
||||
)
|
||||
}
|
||||
|
||||
export default EditUmbraPage
|
||||
|
||||
export async function getStaticProps({ locale }) {
|
||||
return {
|
||||
props: {
|
||||
...(await serverSideTranslations(locale, ns)),
|
||||
page: {
|
||||
locale,
|
||||
path: ['account', 'patterns', 'umbra'],
|
||||
title: 'Umbra',
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
41
sites/lab/pages/new/bibi.mjs
Normal file
41
sites/lab/pages/new/bibi.mjs
Normal file
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* This page is auto-generated. Do not edit it by hand.
|
||||
*/
|
||||
import { Bibi } from 'designs/bibi/src/index.mjs'
|
||||
// Dependencies
|
||||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
||||
import { nsMerge } from 'shared/utils.mjs'
|
||||
// Components
|
||||
import { PageWrapper, ns as pageNs } from 'shared/components/wrappers/page.mjs'
|
||||
import { Workbench, ns as wbNs } from 'shared/components/workbench/new.mjs'
|
||||
import { WorkbenchLayout } from 'site/components/layouts/workbench.mjs'
|
||||
|
||||
// Translation namespaces used on this page
|
||||
const ns = nsMerge('bibi', wbNs, pageNs)
|
||||
|
||||
const NewBibiPage = ({ page, docs }) => (
|
||||
<PageWrapper {...page} title="Bibi" layout={WorkbenchLayout} header={null}>
|
||||
<Workbench
|
||||
{...{
|
||||
design: 'bibi',
|
||||
Design: Bibi,
|
||||
docs,
|
||||
}}
|
||||
/>
|
||||
</PageWrapper>
|
||||
)
|
||||
|
||||
export default NewBibiPage
|
||||
|
||||
export async function getStaticProps({ locale }) {
|
||||
return {
|
||||
props: {
|
||||
...(await serverSideTranslations(locale, ns)),
|
||||
page: {
|
||||
locale,
|
||||
path: ['new', 'bibi'],
|
||||
title: 'Bibi',
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
41
sites/lab/pages/new/lily.mjs
Normal file
41
sites/lab/pages/new/lily.mjs
Normal file
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* This page is auto-generated. Do not edit it by hand.
|
||||
*/
|
||||
import { Lily } from 'designs/lily/src/index.mjs'
|
||||
// Dependencies
|
||||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
||||
import { nsMerge } from 'shared/utils.mjs'
|
||||
// Components
|
||||
import { PageWrapper, ns as pageNs } from 'shared/components/wrappers/page.mjs'
|
||||
import { Workbench, ns as wbNs } from 'shared/components/workbench/new.mjs'
|
||||
import { WorkbenchLayout } from 'site/components/layouts/workbench.mjs'
|
||||
|
||||
// Translation namespaces used on this page
|
||||
const ns = nsMerge('lily', wbNs, pageNs)
|
||||
|
||||
const NewLilyPage = ({ page, docs }) => (
|
||||
<PageWrapper {...page} title="Lily" layout={WorkbenchLayout} header={null}>
|
||||
<Workbench
|
||||
{...{
|
||||
design: 'lily',
|
||||
Design: Lily,
|
||||
docs,
|
||||
}}
|
||||
/>
|
||||
</PageWrapper>
|
||||
)
|
||||
|
||||
export default NewLilyPage
|
||||
|
||||
export async function getStaticProps({ locale }) {
|
||||
return {
|
||||
props: {
|
||||
...(await serverSideTranslations(locale, ns)),
|
||||
page: {
|
||||
locale,
|
||||
path: ['new', 'lily'],
|
||||
title: 'Lily',
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
41
sites/lab/pages/new/opal.mjs
Normal file
41
sites/lab/pages/new/opal.mjs
Normal file
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* This page is auto-generated. Do not edit it by hand.
|
||||
*/
|
||||
import { Opal } from 'designs/opal/src/index.mjs'
|
||||
// Dependencies
|
||||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
||||
import { nsMerge } from 'shared/utils.mjs'
|
||||
// Components
|
||||
import { PageWrapper, ns as pageNs } from 'shared/components/wrappers/page.mjs'
|
||||
import { Workbench, ns as wbNs } from 'shared/components/workbench/new.mjs'
|
||||
import { WorkbenchLayout } from 'site/components/layouts/workbench.mjs'
|
||||
|
||||
// Translation namespaces used on this page
|
||||
const ns = nsMerge('opal', wbNs, pageNs)
|
||||
|
||||
const NewOpalPage = ({ page, docs }) => (
|
||||
<PageWrapper {...page} title="Opal" layout={WorkbenchLayout} header={null}>
|
||||
<Workbench
|
||||
{...{
|
||||
design: 'opal',
|
||||
Design: Opal,
|
||||
docs,
|
||||
}}
|
||||
/>
|
||||
</PageWrapper>
|
||||
)
|
||||
|
||||
export default NewOpalPage
|
||||
|
||||
export async function getStaticProps({ locale }) {
|
||||
return {
|
||||
props: {
|
||||
...(await serverSideTranslations(locale, ns)),
|
||||
page: {
|
||||
locale,
|
||||
path: ['new', 'opal'],
|
||||
title: 'Opal',
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
41
sites/lab/pages/new/umbra.mjs
Normal file
41
sites/lab/pages/new/umbra.mjs
Normal file
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* This page is auto-generated. Do not edit it by hand.
|
||||
*/
|
||||
import { Umbra } from 'designs/umbra/src/index.mjs'
|
||||
// Dependencies
|
||||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
||||
import { nsMerge } from 'shared/utils.mjs'
|
||||
// Components
|
||||
import { PageWrapper, ns as pageNs } from 'shared/components/wrappers/page.mjs'
|
||||
import { Workbench, ns as wbNs } from 'shared/components/workbench/new.mjs'
|
||||
import { WorkbenchLayout } from 'site/components/layouts/workbench.mjs'
|
||||
|
||||
// Translation namespaces used on this page
|
||||
const ns = nsMerge('umbra', wbNs, pageNs)
|
||||
|
||||
const NewUmbraPage = ({ page, docs }) => (
|
||||
<PageWrapper {...page} title="Umbra" layout={WorkbenchLayout} header={null}>
|
||||
<Workbench
|
||||
{...{
|
||||
design: 'umbra',
|
||||
Design: Umbra,
|
||||
docs,
|
||||
}}
|
||||
/>
|
||||
</PageWrapper>
|
||||
)
|
||||
|
||||
export default NewUmbraPage
|
||||
|
||||
export async function getStaticProps({ locale }) {
|
||||
return {
|
||||
props: {
|
||||
...(await serverSideTranslations(locale, ns)),
|
||||
page: {
|
||||
locale,
|
||||
path: ['new', 'umbra'],
|
||||
title: 'Umbra',
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
|
@ -35,6 +35,7 @@ import { Lunetius as lunetius } from '@freesewing/lunetius'
|
|||
import { Noble as noble } from '@freesewing/noble'
|
||||
import { Octoplushy as octoplushy } from '@freesewing/octoplushy'
|
||||
import { Onyx as onyx } from '@freesewing/onyx'
|
||||
import { Opal as opal } from '@freesewing/opal'
|
||||
import { Otis as otis } from '@freesewing/otis'
|
||||
import { Paco as paco } from '@freesewing/paco'
|
||||
import { Penelope as penelope } from '@freesewing/penelope'
|
||||
|
@ -93,6 +94,7 @@ const designs = {
|
|||
noble,
|
||||
octoplushy,
|
||||
onyx,
|
||||
opal,
|
||||
otis,
|
||||
paco,
|
||||
penelope,
|
||||
|
|
86
sites/org/pages/account/patterns/opal/edit.mjs
Normal file
86
sites/org/pages/account/patterns/opal/edit.mjs
Normal file
|
@ -0,0 +1,86 @@
|
|||
/*
|
||||
* This page is auto-generated. Do not edit it by hand.
|
||||
*/
|
||||
import { Opal } from 'designs/opal/src/index.mjs'
|
||||
// Dependencies
|
||||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
||||
import { nsMerge, getSearchParam } from 'shared/utils.mjs'
|
||||
// Hooks
|
||||
import { useState, useEffect, useContext } from 'react'
|
||||
import { useTranslation } from 'next-i18next'
|
||||
import { useBackend } from 'shared/hooks/use-backend.mjs'
|
||||
// Context
|
||||
import { LoadingStatusContext } from 'shared/context/loading-status-context.mjs'
|
||||
// Components
|
||||
import { PageWrapper, ns as pageNs } from 'shared/components/wrappers/page.mjs'
|
||||
import { Workbench, ns as wbNs } from 'shared/components/workbench/new.mjs'
|
||||
import { WorkbenchLayout } from 'site/components/layouts/workbench.mjs'
|
||||
import { Loading } from 'shared/components/spinner.mjs'
|
||||
|
||||
// Translation namespaces used on this page
|
||||
const ns = nsMerge('opal', wbNs, pageNs)
|
||||
|
||||
const EditDesignComponent = ({ id, design, Design, settings }) => (
|
||||
<Workbench preload={{ settings }} saveAs={{ pattern: id }} {...{ design, Design }} />
|
||||
)
|
||||
|
||||
const EditOpalPage = ({ page }) => {
|
||||
const { setLoadingStatus } = useContext(LoadingStatusContext)
|
||||
const backend = useBackend()
|
||||
const { t } = useTranslation(ns)
|
||||
|
||||
const [pattern, setPattern] = useState(false)
|
||||
|
||||
useEffect(() => {
|
||||
const getPattern = async () => {
|
||||
setLoadingStatus([true, t('backendLoadingStarted')])
|
||||
let result
|
||||
try {
|
||||
result = await backend.getPattern(id)
|
||||
if (result.success) {
|
||||
setPattern(result.data.pattern)
|
||||
setLoadingStatus([true, 'backendLoadingCompleted', true, true])
|
||||
} else setLoadingStatus([true, 'backendError', true, false])
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
setLoadingStatus([true, 'backendError', true, false])
|
||||
}
|
||||
}
|
||||
const id = getSearchParam('id')
|
||||
if (id) getPattern()
|
||||
}, [backend, setLoadingStatus, t])
|
||||
|
||||
return (
|
||||
// prettier-ignore
|
||||
<PageWrapper {...page} title="Opal" layout={pattern ? WorkbenchLayout : false} header={null}>
|
||||
{pattern ? (
|
||||
<EditDesignComponent
|
||||
id={pattern.id}
|
||||
settings={pattern.settings}
|
||||
design="opal"
|
||||
Design={Opal}
|
||||
/>
|
||||
) : (
|
||||
<div>
|
||||
<h1>{t('account:oneMomentPLease')}</h1>
|
||||
<Loading />
|
||||
</div>
|
||||
)}
|
||||
</PageWrapper>
|
||||
)
|
||||
}
|
||||
|
||||
export default EditOpalPage
|
||||
|
||||
export async function getStaticProps({ locale }) {
|
||||
return {
|
||||
props: {
|
||||
...(await serverSideTranslations(locale, ns)),
|
||||
page: {
|
||||
locale,
|
||||
path: ['account', 'patterns', 'opal'],
|
||||
title: 'Opal',
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
41
sites/org/pages/new/opal.mjs
Normal file
41
sites/org/pages/new/opal.mjs
Normal file
|
@ -0,0 +1,41 @@
|
|||
/*
|
||||
* This page is auto-generated. Do not edit it by hand.
|
||||
*/
|
||||
import { Opal } from 'designs/opal/src/index.mjs'
|
||||
// Dependencies
|
||||
import { serverSideTranslations } from 'next-i18next/serverSideTranslations'
|
||||
import { nsMerge } from 'shared/utils.mjs'
|
||||
// Components
|
||||
import { PageWrapper, ns as pageNs } from 'shared/components/wrappers/page.mjs'
|
||||
import { Workbench, ns as wbNs } from 'shared/components/workbench/new.mjs'
|
||||
import { WorkbenchLayout } from 'site/components/layouts/workbench.mjs'
|
||||
|
||||
// Translation namespaces used on this page
|
||||
const ns = nsMerge('opal', wbNs, pageNs)
|
||||
|
||||
const NewOpalPage = ({ page, docs }) => (
|
||||
<PageWrapper {...page} title="Opal" layout={WorkbenchLayout} header={null}>
|
||||
<Workbench
|
||||
{...{
|
||||
design: 'opal',
|
||||
Design: Opal,
|
||||
docs,
|
||||
}}
|
||||
/>
|
||||
</PageWrapper>
|
||||
)
|
||||
|
||||
export default NewOpalPage
|
||||
|
||||
export async function getStaticProps({ locale }) {
|
||||
return {
|
||||
props: {
|
||||
...(await serverSideTranslations(locale, ns)),
|
||||
page: {
|
||||
locale,
|
||||
path: ['new', 'opal'],
|
||||
title: 'Opal',
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
|
@ -40,6 +40,7 @@ import { i18n as naomiwu } from '@freesewing/naomiwu'
|
|||
import { i18n as noble } from '@freesewing/noble'
|
||||
import { i18n as octoplushy } from '@freesewing/octoplushy'
|
||||
import { i18n as onyx } from '@freesewing/onyx'
|
||||
import { i18n as opal } from '@freesewing/opal'
|
||||
import { i18n as otis } from '@freesewing/otis'
|
||||
import { i18n as paco } from '@freesewing/paco'
|
||||
import { i18n as penelope } from '@freesewing/penelope'
|
||||
|
@ -105,6 +106,7 @@ export const designs = {
|
|||
noble,
|
||||
octoplushy,
|
||||
onyx,
|
||||
opal,
|
||||
otis,
|
||||
paco,
|
||||
penelope,
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,3 +1,3 @@
|
|||
// __SDEFILE__ - This file is a dependency for the stand-alone environment
|
||||
// This file is auto-generated by the prebuild script | Any changes will be overwritten
|
||||
export const designs = ["aaron","albert","bee","bella","benjamin","bent","bibi","bob","breanna","brian","bruce","carlita","carlton","cathrin","charlie","cornelius","diana","examples","florence","florent","gozer","hi","holmes","hortensia","huey","hugo","jaeger","jane","legend","lucy","lumina","lumira","lunetius","magde","naomiwu","noble","octoplushy","onyx","otis","paco","penelope","plugintest","rendertest","sandy","shelly","shin","simon","simone","skully","sven","tamiko","teagan","tiberius","titan","trayvon","tristan","uma","umbra","wahid","walburga","waralee","yuri","lily"]
|
||||
export const designs = ["aaron","albert","bee","bella","benjamin","bent","bibi","bob","breanna","brian","bruce","carlita","carlton","cathrin","charlie","cornelius","diana","examples","florence","florent","gozer","hi","holmes","hortensia","huey","hugo","jaeger","jane","legend","lucy","lumina","lumira","lunetius","magde","naomiwu","noble","octoplushy","onyx","opal","otis","paco","penelope","plugintest","rendertest","sandy","shelly","shin","simon","simone","skully","sven","tamiko","teagan","tiberius","titan","trayvon","tristan","uma","umbra","wahid","walburga","waralee","yuri","lily"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue