Linting
This commit is contained in:
@@ -4,6 +4,7 @@ import { useIdeContext } from 'src/helpers/hooks/useIdeContext'
|
||||
import { createRemoveUpdate, updateTree } from 'react-mosaic-component'
|
||||
import type { MosaicPath } from 'react-mosaic-component'
|
||||
import Toggle from 'src/components/Toggle'
|
||||
import type { MosaicTree } from 'src/helpers/hooks/useIdeState'
|
||||
|
||||
interface SidebarConfigType {
|
||||
name: string
|
||||
@@ -12,11 +13,6 @@ interface SidebarConfigType {
|
||||
panel: ReactNode | null
|
||||
}
|
||||
|
||||
interface MosaicTree {
|
||||
first: string | MosaicTree
|
||||
second: string | MosaicTree
|
||||
}
|
||||
|
||||
const getPathById = (
|
||||
tree: MosaicTree,
|
||||
id: string,
|
||||
|
||||
@@ -12,14 +12,6 @@ const DELETE_SUBJECT_ACCESS_REQUEST_MUTATION = gql`
|
||||
}
|
||||
`
|
||||
|
||||
const jsonDisplay = (obj) => {
|
||||
return (
|
||||
<pre>
|
||||
<code>{JSON.stringify(obj, null, 2)}</code>
|
||||
</pre>
|
||||
)
|
||||
}
|
||||
|
||||
const timeTag = (datetime) => {
|
||||
return (
|
||||
<time dateTime={datetime} title={datetime}>
|
||||
@@ -28,10 +20,6 @@ const timeTag = (datetime) => {
|
||||
)
|
||||
}
|
||||
|
||||
const checkboxInputTag = (checked) => {
|
||||
return <input type="checkbox" checked={checked} disabled />
|
||||
}
|
||||
|
||||
const SubjectAccessRequest = ({ subjectAccessRequest }) => {
|
||||
const [deleteSubjectAccessRequest] = useMutation(
|
||||
DELETE_SUBJECT_ACCESS_REQUEST_MUTATION,
|
||||
@@ -102,13 +90,12 @@ const SubjectAccessRequest = ({ subjectAccessRequest }) => {
|
||||
>
|
||||
Edit
|
||||
</Link>
|
||||
<a
|
||||
href="#"
|
||||
<button
|
||||
className="rw-button rw-button-red"
|
||||
onClick={() => onDeleteClick(subjectAccessRequest.id)}
|
||||
>
|
||||
Delete
|
||||
</a>
|
||||
</button>
|
||||
</nav>
|
||||
</>
|
||||
)
|
||||
|
||||
@@ -45,7 +45,7 @@ export const render: DefaultKernelExport['render'] = async ({
|
||||
}
|
||||
const blob = await response.blob()
|
||||
const text = await new Response(blob).text()
|
||||
const { consoleMessage, customizerParams, type } = splitGziped(text)
|
||||
const { consoleMessage, customizerParams } = splitGziped(text)
|
||||
return createHealthyResponse({
|
||||
type: 'geometry',
|
||||
data: await stlToGeometry(window.URL.createObjectURL(blob)),
|
||||
|
||||
@@ -40,4 +40,4 @@ function main({
|
||||
return rotate([degToRad(flip), 0, degToRad(90)], model)
|
||||
}
|
||||
|
||||
module.exports = { main }
|
||||
module.exports = { main } // eslint-disable-line
|
||||
|
||||
@@ -25,6 +25,13 @@ interface XYZ {
|
||||
z: number
|
||||
}
|
||||
|
||||
export interface MosaicTree {
|
||||
first: string | MosaicTree
|
||||
second: string | MosaicTree
|
||||
direction?: string
|
||||
splitPercentage?: number
|
||||
}
|
||||
|
||||
interface CodeTab {
|
||||
type: 'code'
|
||||
label: string
|
||||
@@ -55,13 +62,13 @@ export interface State {
|
||||
currentModel: number
|
||||
objectData: {
|
||||
type: 'INIT' | ArtifactTypes
|
||||
data: any
|
||||
data: any // eslint-disable-line @typescript-eslint/no-explicit-any
|
||||
quality: 'low' | 'high'
|
||||
}
|
||||
customizerParams: CadhubParams[]
|
||||
currentParameters?: RawCustomizerParams
|
||||
isCustomizerOpen: boolean
|
||||
layout: any
|
||||
layout: MosaicTree
|
||||
camera: {
|
||||
dist?: number
|
||||
position?: XYZ
|
||||
@@ -74,7 +81,7 @@ export interface State {
|
||||
}
|
||||
|
||||
const code = ''
|
||||
const initialLayout = {
|
||||
const initialLayout: MosaicTree = {
|
||||
direction: 'row',
|
||||
first: 'Editor',
|
||||
second: {
|
||||
|
||||
Reference in New Issue
Block a user