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/header.js b/sites/dev/components/header.js index 80a0b9e1e20..edfee4567ad 100644 --- a/sites/dev/components/header.js +++ b/sites/dev/components/header.js @@ -1,6 +1,5 @@ import { useState, useEffect } from 'react' import FreeSewingIcon from 'shared/components/icons/freesewing.js' -import Link from 'next/link' import ThemePicker from 'shared/components/theme-picker.js' import CloseIcon from 'shared/components/icons/close.js' import MenuIcon from 'shared/components/icons/menu.js' diff --git a/sites/dev/components/layouts/docs.js b/sites/dev/components/layouts/docs.js index abb2c6f8db2..4972e37e235 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 de156dcb0d6..44c70313c5a 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, active, @@ -217,11 +166,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}
  • ) @@ -229,16 +176,7 @@ export const Icons = ({ return
      {output}
    } -/* -const PrimaryMenu = ({ app, active, before=[], after=[] }) => ( - -) -*/ + export const MainSections = ({ app, active }) => { if (!app.navigation) return null const output = [] @@ -271,17 +209,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/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/org/package.json b/sites/org/package.json index f02b8fc3abd..bc9258d4d7c 100644 --- a/sites/org/package.json +++ b/sites/org/package.json @@ -40,7 +40,6 @@ "lodash.get": "^4.4.2", "lodash.orderby": "^4.6.0", "lodash.set": "^4.3.2", - "netlify-cli": "^12.0.4", "next": "latest", "react-hotkeys-hook": "^3.4.4", "react-instantsearch-dom": "^6.18.0", diff --git a/sites/shared/components/navigation/primary.js b/sites/shared/components/navigation/primary.js index 50837c27b34..62a7566c52f 100644 --- a/sites/shared/components/navigation/primary.js +++ b/sites/shared/components/navigation/primary.js @@ -87,8 +87,7 @@ const SubLevel = ({ nodes={}, active }) => ( hover:cursor-row-resize items-center `}> - - ( { child.__linktitle || child.__title } - @@ -120,8 +118,7 @@ const SubLevel = ({ nodes={}, active }) => ( ) : (
  • - - ( {child.__linktitle || child.__title} -
  • ) @@ -165,8 +161,7 @@ const TopLevel = ({ icon, title, nav, current, slug, hasChildren=false, active } items-center `}> {icon} - - {title} - {hasChildren && } @@ -216,14 +210,12 @@ export const Icons = ({ for (const page of order(app.navigation)) { output.push(
  • - - + {icons[page.__slug] ? icons[page.__slug]('w-14 h-14') : } {page.__title} -
  • ) diff --git a/sites/shared/components/page-link.js b/sites/shared/components/page-link.js index 516886f1a26..9a41c240a7e 100644 --- a/sites/shared/components/page-link.js +++ b/sites/shared/components/page-link.js @@ -1,11 +1,9 @@ import Link from 'next/link' const PageLink = ({ href, txt, className="" }) => ( - - {txt} - + title={txt}>{txt} ) export default PageLink diff --git a/sites/shared/components/worm.js b/sites/shared/components/worm.js index 1d97703588c..8bbc6eca1df 100644 --- a/sites/shared/components/worm.js +++ b/sites/shared/components/worm.js @@ -25,7 +25,7 @@ const PreviewTile = ({ img, slug, title, href=false, fixed=false }) => ( > {href ? - : + : } ) diff --git a/sites/shared/package.json b/sites/shared/package.json index 9a5a3207e7c..5ff97582187 100644 --- a/sites/shared/package.json +++ b/sites/shared/package.json @@ -43,6 +43,8 @@ "mdast-util-toc": "^6.1.0", "pdfkit": "^0.13.0", "postcss-for": "^2.1.1", + "react": "^18.2.0", + "react-dom": "^18.2.0", "react-markdown": "^8.0.0", "react-sizeme": "^3.0.2", "react-timeago": "^7.1.0",