Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

Commit

Permalink
Update dependencies (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
sz-piotr authored Jul 15, 2024
1 parent cddae72 commit 2c0a7d0
Show file tree
Hide file tree
Showing 11 changed files with 49 additions and 942 deletions.
80 changes: 0 additions & 80 deletions .eslintrc.json

This file was deleted.

3 changes: 0 additions & 3 deletions packages/frontend/.eslintrc.js

This file was deleted.

7 changes: 0 additions & 7 deletions packages/frontend/.mocharc.json

This file was deleted.

3 changes: 0 additions & 3 deletions packages/frontend/.prettierignore

This file was deleted.

7 changes: 0 additions & 7 deletions packages/frontend/.prettierrc

This file was deleted.

12 changes: 6 additions & 6 deletions packages/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
},
"dependencies": {
"@total-typescript/ts-reset": "^0.3.7",
"@types/react": "^18.0.26",
"@types/react-dom": "^18.0.9",
"classnames": "^2.3.2",
"@types/react": "^18.3.2",
"@types/react-dom": "^18.3.0",
"clsx": "^2.1.1",
"d3-force": "^3.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"zod": "^3.20.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"zod": "^3.22.2",
"zustand": "^4.3.2"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import '@total-typescript/ts-reset'

import cx from 'classnames'
import clsx from 'clsx'
import { useState } from 'react'

import type { SimpleNode } from './api/SimpleNode'
Expand Down Expand Up @@ -119,7 +119,7 @@ export function App() {
}}
>
<div
className={cx(
className={clsx(
'grid h-full w-full grid-rows-[_1fr]',
showSidebar ? 'grid-cols-[1fr,_400px]' : 'grid-cols-[1fr]',
)}
Expand Down
8 changes: 4 additions & 4 deletions packages/frontend/src/view/NodeView.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import classNames from 'classnames'
import clsx from 'clsx'
import { useCallback, useEffect, useRef } from 'react'

import type { Node } from '../store/State'
Expand Down Expand Up @@ -63,14 +63,14 @@ export function NodeView(props: NodeViewProps) {
width: props.node.box.width,
height: props.node.box.height + RESIZE_HANDLE_SPACING,
}}
className={classNames(
className={clsx(
'absolute rounded-md border-2 border-black bg-white',
props.selected && 'outline outline-2 outline-blue-400',
props.discovered ? 'bg-white' : 'bg-yellow-300',
)}
>
<div
className={classNames(
className={clsx(
'flex h-[28px] w-full justify-between px-2 leading-[28px]',
props.node.fields.length > 0 && 'border-black border-b-2',
)}
Expand All @@ -89,7 +89,7 @@ export function NodeView(props: NodeViewProps) {
</div>
{connection && (
<div
className={classNames(
className={clsx(
'absolute h-[12px] w-[12px]',
'rounded-full border-2 border-black bg-white',
)}
Expand Down
4 changes: 2 additions & 2 deletions packages/frontend/src/view/ScalableView.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import classNames from 'classnames'
import clsx from 'clsx'
import { type ForwardedRef, type ReactNode, forwardRef } from 'react'

import type { State } from '../store/State'
Expand All @@ -20,7 +20,7 @@ export const ScalableView = forwardRef(
>
{/* infinite grid */}
<div
className={classNames(
className={clsx(
'absolute h-full w-full',
props.transform.scale < 0.5 && 'hidden',
)}
Expand Down
Loading

0 comments on commit 2c0a7d0

Please sign in to comment.