diff --git a/markdown/dev/tutorials/pattern-design/adding-measurements/en.md b/markdown/dev/tutorials/pattern-design/adding-measurements/en.md index 05e4df0e87e..2dd90048b09 100644 --- a/markdown/dev/tutorials/pattern-design/adding-measurements/en.md +++ b/markdown/dev/tutorials/pattern-design/adding-measurements/en.md @@ -42,7 +42,7 @@ Now everybody knows this part requires the `head` measurement. This change will also get picked up by the development environment, and you'll now see this screen: -![This screen tells you you are missing some required measurements](./required-measurements.png) +![This screen tells you that you are missing some required measurements](./required-measurements.png) Since it's just one measurement, let's simply enter a value by hand. For example `38` as 38cm is a realistic head circumference measurement for a baby. diff --git a/package.json b/package.json index 5b7fe8a1732..02ac5abf1fc 100644 --- a/package.json +++ b/package.json @@ -95,8 +95,6 @@ "prettier": "^2.7.1", "pretty-quick": "^3.0.0", "prop-types": "^15.7.2", - "react": "^17.0.2", - "react-dom": "^17.0.2", "rehype-format": "^4.0.1", "remark": "^14.0.2", "remark-frontmatter": "^4.0.1", diff --git a/sites/backend/tests/index.mjs b/sites/backend/tests/index.mjs index 8f3401cfc54..a37c7f6e5fb 100644 --- a/sites/backend/tests/index.mjs +++ b/sites/backend/tests/index.mjs @@ -12,7 +12,7 @@ const runTests = async (...params) => { //await apikeyTests(...params) //await accountTests(...params) //await personTests(...params) - await patternTests(...params) + //await patternTests(...params) } // Load initial data required for tests diff --git a/sites/backend/tests/shared.mjs b/sites/backend/tests/shared.mjs index 9a6b1652a75..0fe5677246d 100644 --- a/sites/backend/tests/shared.mjs +++ b/sites/backend/tests/shared.mjs @@ -70,6 +70,7 @@ export const setup = async () => { console.log('Failed at account confirmation request', err) process.exit() } + console.log(JSON.stringify(result.data, null ,2)) store[acc].token = result.data.token store[acc].username = result.data.account.username store[acc].id = result.data.account.id diff --git a/sites/dev/components/footer.js b/sites/dev/components/footer.js index 9f455aaafc9..435b55fa75d 100644 --- a/sites/dev/components/footer.js +++ b/sites/dev/components/footer.js @@ -107,19 +107,12 @@ const Footer = ({ app }) => {
{/* Social icons */}
- - - - + + {Object.keys(social).map((item) => ( - - - {social[item].icon} - + + {social[item].icon} ))}
diff --git a/sites/dev/components/layouts/docs.js b/sites/dev/components/layouts/docs.js index 3c40496a409..a07e1397ad2 100644 --- a/sites/dev/components/layouts/docs.js +++ b/sites/dev/components/layouts/docs.js @@ -19,11 +19,7 @@ const DefaultLayout = ({ app, title = false, crumbs = false, children = [] }) => slug={slug} before={[
- - - - - +
, ]} diff --git a/sites/dev/components/navigation/primary.js b/sites/dev/components/navigation/primary.js index 47411fb0496..a3a9ca56849 100644 --- a/sites/dev/components/navigation/primary.js +++ b/sites/dev/components/navigation/primary.js @@ -74,38 +74,37 @@ const SubLevel = ({ nodes = {}, active }) => ( items-center `} > - - + - - {child.__slug === active ? <>• : <>°} - - - {child.__linktitle || child.__title} - - + {child.__slug === active ? <>• : <>°} + + + {child.__linktitle || child.__title} + @@ -114,37 +113,37 @@ const SubLevel = ({ nodes = {}, active }) => ( ) : (
  • - - + - - {child.__slug === active ? <>• : <>°} - - - {child.__linktitle || child.__title} - - + {child.__slug === active ? <>• : <>°} + + + {child.__linktitle || child.__title} +
  • ) @@ -152,56 +151,6 @@ const SubLevel = ({ nodes = {}, active }) => ( ) -// Component that renders a toplevel of navigation -/* -const TopLevel = ({ icon, title, nav, current, slug, hasChildren=false, active }) => ( -
    - - {icon} - - - {title} - - - {hasChildren && } - - {hasChildren && } -
    -) - -const Navigation = ({ app, active, className='' }) => { - if (!app.navigation) return null - const output = [] - for (const page of order(app.navigation)) output.push(° - } - title={page.__title} - slug={page.__slug} - hasChildren={1} - nav={app.navigation} - current={order(app.navigation[page.__slug])} - active={active} - />) - - return
    {output}
    -} -*/ export const Icons = ({ app, ulClasses = '', @@ -215,11 +164,9 @@ export const Icons = ({ for (const page of order(app.navigation)) { output.push(
  • - - - {icons[page.__slug] ? icons[page.__slug]('w-14 h-14') : } - {page.__title} - + + {icons[page.__slug] ? icons[page.__slug]('w-14 h-14') : } + {page.__title}
  • ) @@ -227,16 +174,7 @@ export const Icons = ({ return
      {output}
    } -/* -const PrimaryMenu = ({ app, active, before=[], after=[] }) => ( - -) -*/ + export const MainSections = ({ app, active }) => { if (!app.navigation) return null const output = [] @@ -268,17 +206,16 @@ export const MainSections = ({ app, active }) => { {txt} ) : ( - - - {txt} - + + {txt} )} diff --git a/sites/dev/components/search.js b/sites/dev/components/search.js index 92a52d05975..7f25d7d55c7 100644 --- a/sites/dev/components/search.js +++ b/sites/dev/components/search.js @@ -67,32 +67,26 @@ const Hit = (props) => ( ${props.index === props.active ? 'bg-secondary bg-opacity-30' : 'bg-base-300 bg-opacity-10'} `} > - - - - {props.hit._highlightResult?.title ? ( - - ) : ( - props.hit.title - )} - - - {props.hit.page.split('/')[1]} - - + + + {props.hit._highlightResult?.title ? ( + + ) : ( + props.hit.title + )} + + + {props.hit.page.split('/')[1]} + {props.hit._snippetResult?.body && ( - - - - + + )} {props.hit?._highlightResult?.page && ( - - - - + + )}
    diff --git a/sites/dev/package.json b/sites/dev/package.json index 23bf6e383b3..a7f3543ebda 100644 --- a/sites/dev/package.json +++ b/sites/dev/package.json @@ -25,21 +25,22 @@ "serve": "pm2 start npm --name 'dev' -- run start" }, "dependencies": { - "@heroicons/react": "^2.0.1", - "@mdx-js/loader": "^2.0.0-rc.2", - "@mdx-js/mdx": "^2.0.0-rc.2", - "@mdx-js/react": "^2.0.0-rc.2", - "@mdx-js/runtime": "next", - "@next/bundle-analyzer": "^13.0.5", - "@tailwindcss/typography": "^0.5.0", + "@heroicons/react": "latest", + "@mdx-js/loader": "latest", + "@mdx-js/mdx": "latest", + "@mdx-js/react": "latest", + "@mdx-js/runtime": "latest", + "@next/bundle-analyzer": "^13", + "@tailwindcss/typography": "latest", "algoliasearch": "^4.11.0", "daisyui": "^2.0.6", "lodash.get": "^4.4.2", "lodash.orderby": "^4.6.0", "lodash.set": "^4.3.2", - "netlify-cli": "^12.0.4", - "next": "latest", + "next": "^13", + "react": "^18.2.0", "react-copy-to-clipboard": "^5.0.4", + "react-dom": "^18.2.0", "react-hotkeys-hook": "^3.4.4", "react-instantsearch-dom": "^6.18.0", "react-markdown": "^8.0.3", diff --git a/sites/lab/components/design-picker.js b/sites/lab/components/design-picker.js index 8a3bd557e25..dc428ac7589 100644 --- a/sites/lab/components/design-picker.js +++ b/sites/lab/components/design-picker.js @@ -48,9 +48,9 @@ const PatternPicker = ({ app }) => { {sectionPatterns(section).map((pattern) => (
  • - + {pattern} - +
  • ))} diff --git a/sites/lab/components/footer.js b/sites/lab/components/footer.js index b06e203c28b..d0301d67dd9 100644 --- a/sites/lab/components/footer.js +++ b/sites/lab/components/footer.js @@ -110,10 +110,13 @@ const Footer = ({ app }) => { {/* Social icons */}
    {Object.keys(social).map((item) => ( - - - {social[item].icon} - + + {social[item].icon} ))}
    diff --git a/sites/lab/package.json b/sites/lab/package.json index f4a98975291..3f2c5fc0fb8 100644 --- a/sites/lab/package.json +++ b/sites/lab/package.json @@ -44,7 +44,6 @@ "lodash.get": "^4.4.2", "lodash.orderby": "^4.6.0", "lodash.set": "^4.3.2", - "netlify-cli": "^12.0.4", "next": "latest", "next-i18next": "^12.0.0", "react-copy-to-clipboard": "^5.0.4", diff --git a/sites/lab/page-templates/design-list.js b/sites/lab/page-templates/design-list.js index 73279a2aa25..17fea723ea5 100644 --- a/sites/lab/page-templates/design-list.js +++ b/sites/lab/page-templates/design-list.js @@ -5,19 +5,22 @@ import { useTranslation } from 'next-i18next' import Layout from 'site/components/layouts/bare' import { PageTitle } from 'shared/components/layouts/default' -const DesignLinks = ({ list, prefix='' }) => { +const DesignLinks = ({ list, prefix = '' }) => { const { t } = useTranslation(['patterns']) return (