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'
|
||||
// Dependencies
|
||||
import Head from 'next/head'
|
||||
import mdxLoader from 'shared/mdx/loader'
|
||||
import { mdxLoader } from 'shared/mdx/loader.mjs'
|
||||
// Components
|
||||
import { PageWrapper } from 'site/components/wrappers/page.mjs'
|
||||
import { MdxWrapper } from 'shared/components/wrappers/mdx.mjs'
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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'
|
||||
|
||||
export const Json = (props) => {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Examples as Pattern } from '@freesewing/examples'
|
||||
import Svg from '../workbench/draft/svg'
|
||||
import Defs from '../workbench/draft/defs'
|
||||
import Stack from '../workbench/draft/stack'
|
||||
import { Svg } from '../workbench/draft/svg'
|
||||
import { Defs } from '../workbench/draft/defs'
|
||||
import { Stack } from '../workbench/draft/stack'
|
||||
import { useGist } from 'shared/hooks/useGist'
|
||||
import Md from 'react-markdown'
|
||||
|
||||
|
|
|
@ -4,9 +4,9 @@ import { pluginBundle } from '@freesewing/plugin-bundle'
|
|||
import { pluginFlip } from '@freesewing/plugin-flip'
|
||||
import { pluginGore } from '@freesewing/plugin-gore'
|
||||
import { Design } from '@freesewing/core'
|
||||
import Svg from '../workbench/draft/svg'
|
||||
import Defs from '../workbench/draft/defs'
|
||||
import Stack from '../workbench/draft/stack'
|
||||
import { Svg } from '../workbench/draft/svg'
|
||||
import { Defs } from '../workbench/draft/defs'
|
||||
import { Stack } from '../workbench/draft/stack'
|
||||
import { useGist } from 'shared/hooks/useGist'
|
||||
import yaml from 'js-yaml'
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
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 yaml from 'js-yaml'
|
||||
|
||||
|
|
|
@ -3,13 +3,13 @@ import set from 'lodash.set'
|
|||
import unset from 'lodash.unset'
|
||||
import cloneDeep from 'lodash.clonedeep'
|
||||
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
|
||||
export const defaultGist = (design, locale = 'en') => {
|
||||
const gist = {
|
||||
design,
|
||||
...defaultSettings,
|
||||
...baseGist,
|
||||
_state: { view: 'draft' },
|
||||
}
|
||||
if (locale) gist.locale = locale
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue