chore: Fixing linter warnings
This commit is contained in:
parent
a195a5c0e7
commit
cc4889b4ec
8 changed files with 15 additions and 27 deletions
|
@ -5,7 +5,6 @@ export default function (part) {
|
||||||
Snippet,
|
Snippet,
|
||||||
snippets,
|
snippets,
|
||||||
store,
|
store,
|
||||||
utils,
|
|
||||||
} = part.shorthand()
|
} = part.shorthand()
|
||||||
|
|
||||||
points.waist2 = points.backWaistBandMid
|
points.waist2 = points.backWaistBandMid
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { useRouter } from 'next/router'
|
import { useRouter } from 'next/router'
|
||||||
import Link from 'next/link'
|
|
||||||
// Shared components
|
// Shared components
|
||||||
import Aside from 'shared/components/navigation/aside'
|
import Aside from 'shared/components/navigation/aside'
|
||||||
import Breadcrumbs from 'shared/components/breadcrumbs.js'
|
import Breadcrumbs from 'shared/components/breadcrumbs.js'
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import React from 'react'
|
import React from 'react'
|
||||||
import Page from 'site/components/wrappers/page.js'
|
import Page from 'site/components/wrappers/page.js'
|
||||||
import useApp from 'site/hooks/useApp.js'
|
import useApp from 'site/hooks/useApp.js'
|
||||||
import Head from 'next/head'
|
|
||||||
import Link from 'next/link'
|
import Link from 'next/link'
|
||||||
import { useTranslation } from 'next-i18next'
|
import { useTranslation } from 'next-i18next'
|
||||||
import { formatVersionTitle } from 'site/components/version-picker.js'
|
import { formatVersionTitle } from 'site/components/version-picker.js'
|
||||||
|
@ -9,23 +8,19 @@ import Layout from 'site/components/layouts/bare'
|
||||||
import { PageTitle } from 'site/components/wrappers/layout'
|
import { PageTitle } from 'site/components/wrappers/layout'
|
||||||
import availableVersions from 'site/available-versions.json'
|
import availableVersions from 'site/available-versions.json'
|
||||||
|
|
||||||
const DesignLinks = ({ list, prefix='', version=false }) => {
|
const DesignLinks = ({ list, prefix='', version=false }) => (
|
||||||
const { t } = useTranslation(['patterns'])
|
<ul className="flex flex-row flex-wrap ml-8">
|
||||||
|
{list.map( d => (
|
||||||
return (
|
<li key={d} className="p-2">
|
||||||
<ul className="flex flex-row flex-wrap ml-8">
|
<Link href={`${prefix}/${d}`}>
|
||||||
{list.map( d => (
|
<a className="capitalize text-secondary hover:text-secondary-focus hover:underline">
|
||||||
<li key={d} className="p-2">
|
{d}
|
||||||
<Link href={`${prefix}/${d}`}>
|
</a>
|
||||||
<a className="capitalize text-secondary hover:text-secondary-focus hover:underline">
|
</Link>
|
||||||
{d}
|
</li>
|
||||||
</a>
|
))}
|
||||||
</Link>
|
</ul>
|
||||||
</li>
|
)
|
||||||
))}
|
|
||||||
</ul>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
const VersionLinks = ({ list, prefix='', version=false, currentDesigns=[] }) => (
|
const VersionLinks = ({ list, prefix='', version=false, currentDesigns=[] }) => (
|
||||||
<ul className="flex flex-col flex-wrap gap-2">
|
<ul className="flex flex-col flex-wrap gap-2">
|
||||||
|
@ -51,8 +46,7 @@ const VersionLinks = ({ list, prefix='', version=false, currentDesigns=[] }) =>
|
||||||
)
|
)
|
||||||
|
|
||||||
const VersionListPage = ({ section=false, version=false }) => {
|
const VersionListPage = ({ section=false, version=false }) => {
|
||||||
const app = useApp()
|
const app = useApp()
|
||||||
const { t } = useTranslation(['app'])
|
|
||||||
|
|
||||||
const currentDesigns = []
|
const currentDesigns = []
|
||||||
for (const section in app.designs) currentDesigns.push(...app.designs[section])
|
for (const section in app.designs) currentDesigns.push(...app.designs[section])
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import Text from '../text'
|
import Text from '../text'
|
||||||
import Circle from '../circle'
|
import Circle from '../circle'
|
||||||
import { round } from 'shared/utils'
|
|
||||||
import { Tr, KeyTd, ValTd, Attributes, pointCoords } from '../path/index'
|
import { Tr, KeyTd, ValTd, Attributes, pointCoords } from '../path/index'
|
||||||
|
|
||||||
const RevealPoint = props => {
|
const RevealPoint = props => {
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { SizeMe } from 'react-sizeme'
|
|
||||||
import { useTranslation } from 'next-i18next'
|
import { useTranslation } from 'next-i18next'
|
||||||
import fileSaver from 'file-saver'
|
import fileSaver from 'file-saver'
|
||||||
import yaml from 'js-yaml'
|
import yaml from 'js-yaml'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Ul, Li, Summary, NoSumDiv, Deg } from 'shared/components/workbench/menu'
|
import { Ul, Li, NoSumDiv, Deg } from 'shared/components/workbench/menu'
|
||||||
import { formatMm } from 'shared/utils'
|
import { formatMm } from 'shared/utils'
|
||||||
import Attributes from './attributes'
|
import Attributes from './attributes'
|
||||||
import Ops from './path-ops'
|
import Ops from './path-ops'
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import path from 'path'
|
import path from 'path'
|
||||||
import { readdirSync } from 'fs'
|
|
||||||
import remarkGfm from 'remark-gfm'
|
import remarkGfm from 'remark-gfm'
|
||||||
import { designs, plugins } from '../../../config/software/index.mjs'
|
import { designs, plugins } from '../../../config/software/index.mjs'
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
const colors = require('tailwindcss/colors')
|
const colors = require('tailwindcss/colors')
|
||||||
const light = require('./light')
|
|
||||||
|
|
||||||
const blue = '#77cbf9'
|
const blue = '#77cbf9'
|
||||||
const pink = '#ecadb9'
|
const pink = '#ecadb9'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue