mirror of
https://github.com/fankes/komari-theme-purcarte.git
synced 2025-10-18 11:29:22 +08:00
fix: 移除国旗显示代码
This commit is contained in:
@@ -8,7 +8,6 @@ import {
|
||||
import type { NodeWithStatus } from "@/types/node";
|
||||
import { Link } from "react-router-dom";
|
||||
import { CpuIcon, MemoryStickIcon, HardDriveIcon } from "lucide-react";
|
||||
import Flag from "./Flag";
|
||||
import { Tag } from "../ui/tag";
|
||||
import { useNodeCommons } from "@/hooks/useNodeCommons";
|
||||
import { ProgressBar } from "../ui/progress-bar";
|
||||
@@ -48,7 +47,6 @@ export const NodeCard = ({
|
||||
<CardHeader className="flex flex-row items-center justify-between space-y-0 pb-2">
|
||||
<Link to={`/instance/${node.uuid}`}>
|
||||
<div className="flex items-center gap-2">
|
||||
<Flag flag={node.region}></Flag>
|
||||
<img
|
||||
src={getOSImage(node.os)}
|
||||
alt={node.os}
|
||||
|
@@ -2,7 +2,6 @@ import { formatBytes, formatTrafficLimit, formatUptime } from "@/utils";
|
||||
import type { NodeWithStatus } from "@/types/node";
|
||||
import { Link } from "react-router-dom";
|
||||
import { CpuIcon, MemoryStickIcon, HardDriveIcon } from "lucide-react";
|
||||
import Flag from "./Flag";
|
||||
import { Tag } from "../ui/tag";
|
||||
import { useNodeCommons } from "@/hooks/useNodeCommons";
|
||||
import { CircleProgress } from "../ui/progress-circle";
|
||||
@@ -44,9 +43,8 @@ export const NodeListItem = ({
|
||||
: "striped-bg-red-translucent-diagonal ring-2 ring-red-500/50"
|
||||
} text-secondary-foreground transition-colors duration-200`}>
|
||||
<div className="col-span-2 flex items-center text-left">
|
||||
<Flag flag={node.region} />
|
||||
<Link to={`/instance/${node.uuid}`}>
|
||||
<div className="ml-2 w-full">
|
||||
<div className="w-full">
|
||||
<div className="text-base font-bold">{node.name}</div>
|
||||
<Tag className="text-xs" tags={tagList} />
|
||||
<div className="flex text-xs">
|
||||
|
@@ -9,7 +9,6 @@ import Instance from "./Instance";
|
||||
const LoadCharts = lazy(() => import("./LoadCharts"));
|
||||
const PingChart = lazy(() => import("./PingChart"));
|
||||
import Loading from "@/components/loading";
|
||||
import Flag from "@/components/sections/Flag";
|
||||
import { useAppConfig } from "@/config";
|
||||
import { useIsMobile } from "@/hooks/useMobile";
|
||||
|
||||
@@ -119,7 +118,6 @@ const InstancePage = () => {
|
||||
<ArrowLeft />
|
||||
</Button>
|
||||
<div className="flex items-center gap-2 min-w-0">
|
||||
<Flag flag={node.region}></Flag>
|
||||
<span className="text-xl md:text-2xl font-bold">{node.name}</span>
|
||||
</div>
|
||||
<span className="text-sm text-secondary-foreground flex-shrink-0">
|
||||
|
Reference in New Issue
Block a user