refactor: remove "use client" directive from multiple files and update project structure to align with Vite and React Router

This commit is contained in:
HouYunFei
2026-06-26 17:24:48 +08:00
parent e635ec6908
commit 443afab7bd
88 changed files with 94 additions and 230 deletions
@@ -1,5 +1,3 @@
"use client";
import { App, Button, Form, Input, Modal, Progress, Select, Tabs } from "antd";
import { CircleAlert, Cloud, Plus, RefreshCw, Trash2, Wifi } from "lucide-react";
import { useState } from "react";
@@ -1,5 +1,3 @@
"use client";
import type { ReactNode } from "react";
import { useEffect } from "react";
import { ProConfigProvider } from "@ant-design/pro-components";
@@ -1,5 +1,3 @@
"use client";
import { Menu } from "lucide-react";
import { Link, useLocation } from "react-router-dom";
@@ -1,5 +1,3 @@
"use client";
import type { ReactNode } from "react";
import { useEffect, useRef } from "react";
import { App } from "antd";
@@ -1,5 +1,3 @@
"use client";
import { GithubOutlined } from "@ant-design/icons";
import { cn } from "@/lib/utils";
@@ -1,5 +1,3 @@
"use client";
import { Drawer } from "antd";
import { Link } from "react-router-dom";
@@ -1,5 +1,3 @@
"use client";
import type { CSSProperties } from "react";
import { BookOpen, Keyboard, Settings2 } from "lucide-react";
@@ -1,5 +1,3 @@
"use client";
import type { CSSProperties } from "react";
import { Modal, Tag, Timeline } from "antd";
import { useVersionCheck } from "@/hooks/use-version-check";