mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-23 19:05:16 +02:00
chore: ran linting
This commit is contained in:
parent
f1b3c88354
commit
d66295aedd
48 changed files with 372 additions and 443 deletions
|
|
@ -1,15 +1,7 @@
|
|||
"use client";
|
||||
|
||||
import { useAtom } from "jotai";
|
||||
import {
|
||||
ChevronDown,
|
||||
Crown,
|
||||
Dot,
|
||||
File as FileIcon,
|
||||
FolderOpen,
|
||||
X,
|
||||
Zap,
|
||||
} from "lucide-react";
|
||||
import { ChevronDown, Crown, Dot, File as FileIcon, FolderOpen, X, Zap } from "lucide-react";
|
||||
|
||||
import { useTranslations } from "next-intl";
|
||||
import { type ChangeEvent, useCallback, useEffect, useMemo, useRef, useState } from "react";
|
||||
|
|
@ -117,7 +109,8 @@ function flattenTree(
|
|||
depth = 0,
|
||||
parentPath = ""
|
||||
): { name: string; isFolder: boolean; depth: number; path: string; size?: number }[] {
|
||||
const items: { name: string; isFolder: boolean; depth: number; path: string; size?: number }[] = [];
|
||||
const items: { name: string; isFolder: boolean; depth: number; path: string; size?: number }[] =
|
||||
[];
|
||||
for (const node of nodes) {
|
||||
const path = parentPath ? `${parentPath}/${node.name}` : node.name;
|
||||
items.push({ name: node.name, isFolder: node.isFolder, depth, path, size: node.size });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue