feat: add lucide-react Icon

This commit is contained in:
tao.chen
2026-09-02 10:10:41 +08:00
committed by tao.chen
parent e30e7740cc
commit 9c67ae333c
3 changed files with 22 additions and 9 deletions
@@ -9,15 +9,15 @@ import {
useRef,
useState,
} from "react";
import { Plus } from 'lucide-react';
import {
type Schedule,
type ScheduleArtifact,
type ScheduleEdge,
type ScheduleNode,
} from "../../services/api";
} from "~/services/api";
import { useApi, useAuth } from "../../context/AuthContext";
import { useApi, useAuth } from "~/context/AuthContext";
import Icon from "../../components/common/Icon";
import { NodeInspector } from "./NodeInspector";
import { RunHistory } from "./RunHistory";
@@ -361,7 +361,7 @@ export default function SchedulePage({
type="button"
onClick={() => useSchedulesStore.getState().openCreateDialog()}
>
<Icon name="plus" size={14} />
<Plus size={14}/>
<span></span>
</button>
<button
@@ -579,7 +579,7 @@ export default function SchedulePage({
type="button"
onClick={() => useSchedulesStore.getState().openCreateDialog()}
>
<Icon name="plus" size={15} />
<Plus size={15} />
</button>
</div>
) : schedule.nodes.length === 0 ? (
@@ -659,7 +659,7 @@ export default function SchedulePage({
role="menuitem"
onClick={() => useSchedulesStore.getState().openCreateDialog()}
>
<Icon name="plus" size={14} />
<Plus size={14} />
</button>
)}
@@ -671,7 +671,7 @@ export default function SchedulePage({
role="menuitem"
onClick={() => useSchedulesStore.getState().openCreateDialog()}
>
<Icon name="plus" size={14} />
<Plus size={14} />
</button>
<button
@@ -771,7 +771,7 @@ export default function SchedulePage({
>
{busy === "create-schedule"
? <span className="button-spinner" />
: <Icon name="plus" size={15} />}
: <Plus size={15} />}
{busy === "create-schedule" ? "正在创建…" : "创建调度"}
</button>
</div>
+2 -1
View File
@@ -13,10 +13,11 @@
},
"dependencies": {
"@monaco-editor/react": "^4.7.0",
"monaco-editor": "^0.56.0",
"@react-router/node": "^8",
"@react-router/serve": "^8",
"isbot": "^5.1.36",
"lucide-react": "^1.33.0",
"monaco-editor": "^0.56.0",
"react": "^19.2.7",
"react-dom": "^19.2.7",
"react-router": "^8",
+12
View File
@@ -20,6 +20,9 @@ importers:
isbot:
specifier: ^5.1.36
version: 5.2.1
lucide-react:
specifier: ^1.33.0
version: 1.33.0(react@19.2.8)
monaco-editor:
specifier: ^0.56.0
version: 0.56.0
@@ -945,6 +948,11 @@ packages:
lru-cache@5.1.1:
resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}
lucide-react@1.33.0:
resolution: {integrity: sha512-MTRwMy0ZlL8Ur/vOAiJ9XGHE+kFPC7brq6MxAm0GiGXEBj0qy0jA/pG4N675oSzciO/UCdX8T+5yUQdmDeTLxg==}
peerDependencies:
react: ^16.5.1 || ^17.0.0 || ^18.0.0 || ^19.0.0
magic-string@0.30.21:
resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
@@ -2122,6 +2130,10 @@ snapshots:
dependencies:
yallist: 3.1.1
lucide-react@1.33.0(react@19.2.8):
dependencies:
react: 19.2.8
magic-string@0.30.21:
dependencies:
'@jridgewell/sourcemap-codec': 1.5.5