feat: webUI2.0 前端介面更新

1. 剩余登陆注册未完成
2. 剩余插件列表&市场未完成
This commit is contained in:
HYana
2025-03-26 17:01:22 +08:00
committed by Junyan Qin
parent 8511432dee
commit 453237aef8
97 changed files with 9757 additions and 9332 deletions
@@ -0,0 +1,11 @@
export interface ApiResponse<T> {
code: number;
data: T;
msg: string;
}
export interface I18nText {
en_US: string;
zh_CN: string;
}
@@ -0,0 +1,47 @@
export interface GetMetaDataResponse {
configs: Config[]
}
interface Label {
en_US: string;
zh_CN: string;
}
interface Option {
label: Label;
name: string;
}
interface ConfigItem {
default?: boolean | Array<unknown> | number | string;
description?: Label;
items?: {
type?: string;
properties?: {
[key: string]: {
type: string;
default?: any;
};
};
};
label: Label;
name: string;
options?: Option[];
required: boolean;
scope?: string;
type: string;
}
interface Stage {
config: ConfigItem[];
description?: Label;
label: Label;
name: string;
}
interface Config {
label: Label;
name: string;
stages: Stage[];
}
@@ -0,0 +1,27 @@
import styles from "./createCartComponent.module.css";
export default function CreateCardComponent({
width,
height,
plusSize,
onClick,
}: {
width: number;
height: number;
plusSize: number;
onClick: () => void
}) {
return (
<div
className={`${styles.cardContainer} ${styles.createCardContainer} `}
style={{
width: `${width}px`,
height: `${height}px`,
fontSize: `${plusSize}px`
}}
onClick={onClick}
>
+
</div>
)
}
@@ -0,0 +1,16 @@
.cardContainer {
width: 360px;
height: 200px;
background-color: #FFF;
border-radius: 9px;
box-shadow: rgba(0, 0, 0, 0.4) 0 1px 1px -1px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-evenly;
}
.createCardContainer {
font-size: 90px;
color: #acacac;
}
+4
View File
@@ -0,0 +1,4 @@
export interface I18NText {
en_US: string;
zh_CN: string;
}