Skip to content

Commit

Permalink
fix: fix eslint violations
Browse files Browse the repository at this point in the history
  • Loading branch information
Cafe137 committed Nov 4, 2024
1 parent c1fbc95 commit b69c1b3
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/pages/fdp/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default function FDP(): ReactElement {
}
setFdp(fdp)
})
}, [])
}, [enqueueSnackbar])

useEffect(() => {
if (fdp && loggedIn) {
Expand Down
2 changes: 1 addition & 1 deletion src/react-fs/CafeReactFs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function CafeReactFs({
list(path)
.then(setItemsSorted)
.finally(() => setLoading(false))
}, [reloader])
}, [reloader, list, path])

const pathParts = ['/', ...path.split('/').filter(x => x)]

Expand Down
1 change: 1 addition & 0 deletions src/react-fs/CafeReactFsCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export function CafeReactFsCreate({ backgroundColor, onCreateDirectory }: Props)
onClick={proxyUpload}
>
<img
alt="Create"
style={{ width: '64px', height: '64px', position: 'absolute', left: '8px', top: 0 }}
src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M%20106%20131%20l%20100%200%20l%2025%2025%20l%20175%200%20l%200%20200%20l%20-300%200%20z%22%20stroke%3D%22%231F2D3D%22%20stroke-width%3D%2220%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%20%2F%3E%3Cpath%20d%3D%22M%20206%20256%20l%20100%200%22%20stroke%3D%22%23B83B5E%22%20stroke-width%3D%2220%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%20%2F%3E%3Cpath%20d%3D%22M%20256%20206%20l%200%20100%22%20stroke%3D%22%23B83B5E%22%20stroke-width%3D%2220%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%20%2F%3E%3C%2Fsvg%3E"
/>
Expand Down
1 change: 1 addition & 0 deletions src/react-fs/CafeReactFsDelete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ interface Props {
export function CafeReactFsDelete({ onDelete }: Props) {
return (
<img
alt="Delete"
style={{
position: 'absolute',
top: '2px',
Expand Down
1 change: 1 addition & 0 deletions src/react-fs/CafeReactFsDirectory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export function CafeReactFsDirectory({ directory, enterDirectory, deleteDirector
>
{hovered && <CafeReactFsDelete onDelete={proxyDelete} />}
<img
alt="Directory"
src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M%20106%20131%20l%20100%200%20l%2025%2025%20l%20175%200%20l%200%20200%20l%20-300%200%20z%22%20stroke%3D%22%231F2D3D%22%20stroke-width%3D%2220%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%20%2F%3E%3C%2Fsvg%3E"
style={{ width: '64px', height: '64px', position: 'absolute', left: '8px', top: 0 }}
/>
Expand Down
1 change: 1 addition & 0 deletions src/react-fs/CafeReactFsFile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export function CafeReactFsFile({ path, file, download, deleteFile, backgroundCo
>
{hovered && <CafeReactFsDelete onDelete={proxyDelete} />}
<img
alt="File"
style={{ width: '64px', height: '64px', position: 'absolute', left: '8px', top: 0 }}
src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M%20156%20131%20l%20150%200%20l%2050%2050%20l%200%20200%20l%20-200%200%20z%22%20stroke%3D%22%231F2D3D%22%20stroke-width%3D%2220%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%20%2F%3E%3Cpath%20d%3D%22M%20306%20131%20l%200%2050%20l%2050%200%22%20stroke%3D%22%231F2D3D%22%20stroke-width%3D%2220%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%20%2F%3E%3C%2Fsvg%3E"
/>
Expand Down
6 changes: 4 additions & 2 deletions src/react-fs/CafeReactFsLoading.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { CSSProperties } from 'react'

interface Props {
backgroundColor: string
}
Expand All @@ -9,7 +11,7 @@ export function CafeReactFsLoading({ backgroundColor }: Props) {
borderRadius: '2px',
position: 'relative',
background: backgroundColor,
} as any
} as CSSProperties

const bounceStyle = {
width: '32px',
Expand All @@ -21,7 +23,7 @@ export function CafeReactFsLoading({ backgroundColor }: Props) {
opacity: 0.6,
position: 'absolute',
animation: 'bounce 2.0s infinite ease-in-out',
} as any
} as CSSProperties

const bounceStyle2 = {
...bounceStyle,
Expand Down
1 change: 1 addition & 0 deletions src/react-fs/CafeReactFsSync.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export function CafeReactFsSync({ backgroundColor, onSync }: Props) {
onClick={onSync}
>
<img
alt="Sync"
style={{ width: '64px', height: '64px', position: 'absolute', left: '8px', top: 0 }}
src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M%20156%20156%20l%20250%200%20l%200%20150%22%20stroke%3D%22%231F2D3D%22%20stroke-width%3D%2220%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%20%2F%3E%3Cpath%20d%3D%22M%20356%20256%20l%2050%2050%20l%2050%20-50%22%20stroke%3D%22%231F2D3D%22%20stroke-width%3D%2220%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%20%2F%3E%3Cpath%20d%3D%22M%20356%20356%20l%20-250%200%20l%200%20-150%22%20stroke%3D%22%231F2D3D%22%20stroke-width%3D%2220%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%20%2F%3E%3Cpath%20d%3D%22M%20156%20256%20l%20-50%20-50%20l%20-50%2050%22%20stroke%3D%22%231F2D3D%22%20stroke-width%3D%2220%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%20%2F%3E%3C%2Fsvg%3E"
/>
Expand Down
1 change: 1 addition & 0 deletions src/react-fs/CafeReactFsUpload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export function CafeReactFsUpload({ onUpload, backgroundColor }: Props) {
onClick={proxyUpload}
>
<img
alt="Upload"
style={{ width: '64px', height: '64px', position: 'absolute', left: '8px', top: 0 }}
src="data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%22512%22%20height%3D%22512%22%20viewBox%3D%220%200%20512%20512%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M%20156%20131%20l%20150%200%20l%2050%2050%20l%200%20200%20l%20-200%200%20z%22%20stroke%3D%22%231F2D3D%22%20stroke-width%3D%2220%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%20%2F%3E%3Cpath%20d%3D%22M%20306%20131%20l%200%2050%20l%2050%200%22%20stroke%3D%22%231F2D3D%22%20stroke-width%3D%2220%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%20%2F%3E%3Cpath%20d%3D%22M%20206%20256%20l%20100%200%22%20stroke%3D%22%23B83B5E%22%20stroke-width%3D%2220%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%20%2F%3E%3Cpath%20d%3D%22M%20256%20206%20l%200%20100%22%20stroke%3D%22%23B83B5E%22%20stroke-width%3D%2220%22%20fill%3D%22none%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%20%20%2F%3E%3C%2Fsvg%3E"
/>
Expand Down

0 comments on commit b69c1b3

Please sign in to comment.