fix(org): Build fixes
This commit is contained in:
parent
8634b84e04
commit
c8ce8030f4
6 changed files with 11 additions and 11 deletions
|
@ -2,7 +2,7 @@
|
||||||
import { useApp } from 'site/hooks/useApp.mjs'
|
import { useApp } from 'site/hooks/useApp.mjs'
|
||||||
// Dependencies
|
// Dependencies
|
||||||
import Head from 'next/head'
|
import Head from 'next/head'
|
||||||
import mdxLoader from 'shared/mdx/loader'
|
import { mdxLoader } from 'shared/mdx/loader.mjs'
|
||||||
// Components
|
// Components
|
||||||
import { PageWrapper } from 'site/components/wrappers/page.mjs'
|
import { PageWrapper } from 'site/components/wrappers/page.mjs'
|
||||||
import { MdxWrapper } from 'shared/components/wrappers/mdx.mjs'
|
import { MdxWrapper } from 'shared/components/wrappers/mdx.mjs'
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Highlight from 'shared/components/mdx/highlight.mjs'
|
import { Highlight } from 'shared/components/mdx/highlight.mjs'
|
||||||
import hljs from 'highlight.js/lib/common'
|
import hljs from 'highlight.js/lib/common'
|
||||||
|
|
||||||
export const Json = (props) => {
|
export const Json = (props) => {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { Examples as Pattern } from '@freesewing/examples'
|
import { Examples as Pattern } from '@freesewing/examples'
|
||||||
import Svg from '../workbench/draft/svg'
|
import { Svg } from '../workbench/draft/svg'
|
||||||
import Defs from '../workbench/draft/defs'
|
import { Defs } from '../workbench/draft/defs'
|
||||||
import Stack from '../workbench/draft/stack'
|
import { Stack } from '../workbench/draft/stack'
|
||||||
import { useGist } from 'shared/hooks/useGist'
|
import { useGist } from 'shared/hooks/useGist'
|
||||||
import Md from 'react-markdown'
|
import Md from 'react-markdown'
|
||||||
|
|
||||||
|
|
|
@ -4,9 +4,9 @@ import { pluginBundle } from '@freesewing/plugin-bundle'
|
||||||
import { pluginFlip } from '@freesewing/plugin-flip'
|
import { pluginFlip } from '@freesewing/plugin-flip'
|
||||||
import { pluginGore } from '@freesewing/plugin-gore'
|
import { pluginGore } from '@freesewing/plugin-gore'
|
||||||
import { Design } from '@freesewing/core'
|
import { Design } from '@freesewing/core'
|
||||||
import Svg from '../workbench/draft/svg'
|
import { Svg } from '../workbench/draft/svg'
|
||||||
import Defs from '../workbench/draft/defs'
|
import { Defs } from '../workbench/draft/defs'
|
||||||
import Stack from '../workbench/draft/stack'
|
import { Stack } from '../workbench/draft/stack'
|
||||||
import { useGist } from 'shared/hooks/useGist'
|
import { useGist } from 'shared/hooks/useGist'
|
||||||
import yaml from 'js-yaml'
|
import yaml from 'js-yaml'
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Highlight from 'shared/components/mdx/highlight.js'
|
import { Highlight } from 'shared/components/mdx/highlight.mjs'
|
||||||
import hljs from 'highlight.js/lib/common'
|
import hljs from 'highlight.js/lib/common'
|
||||||
import yaml from 'js-yaml'
|
import yaml from 'js-yaml'
|
||||||
|
|
||||||
|
|
|
@ -3,13 +3,13 @@ import set from 'lodash.set'
|
||||||
import unset from 'lodash.unset'
|
import unset from 'lodash.unset'
|
||||||
import cloneDeep from 'lodash.clonedeep'
|
import cloneDeep from 'lodash.clonedeep'
|
||||||
import { useLocalStorage } from './useLocalStorage'
|
import { useLocalStorage } from './useLocalStorage'
|
||||||
import { defaultSettings } from 'shared/components/workbench/default-settings.mjs'
|
import { defaultGist as baseGist } from 'shared/components/workbench/gist.mjs'
|
||||||
|
|
||||||
// Generates a default design gist to start from
|
// Generates a default design gist to start from
|
||||||
export const defaultGist = (design, locale = 'en') => {
|
export const defaultGist = (design, locale = 'en') => {
|
||||||
const gist = {
|
const gist = {
|
||||||
design,
|
design,
|
||||||
...defaultSettings,
|
...baseGist,
|
||||||
_state: { view: 'draft' },
|
_state: { view: 'draft' },
|
||||||
}
|
}
|
||||||
if (locale) gist.locale = locale
|
if (locale) gist.locale = locale
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue