chore: format

This commit is contained in:
Junyan Qin
2025-05-10 17:16:57 +08:00
parent d917b3f00c
commit f0cfd9f921
21 changed files with 529 additions and 497 deletions

View File

@@ -76,8 +76,10 @@ class HTTPController:
@self.quart_app.route('/<path:path>') @self.quart_app.route('/<path:path>')
async def static_file(path: str): async def static_file(path: str):
print(f'path: {path}') if not (
if not (os.path.exists(os.path.join(frontend_path, path)) and os.path.isfile(os.path.join(frontend_path, path))): os.path.exists(os.path.join(frontend_path, path))
and os.path.isfile(os.path.join(frontend_path, path))
):
if os.path.exists(os.path.join(frontend_path, path + '.html')): if os.path.exists(os.path.join(frontend_path, path + '.html')):
path += '.html' path += '.html'
else: else:

View File

@@ -41,7 +41,9 @@ class UserService:
) )
result_list = result.all() result_list = result.all()
return result_list[0] if result_list is not None and len(result_list) > 0 else None return (
result_list[0] if result_list is not None and len(result_list) > 0 else None
)
async def authenticate(self, user_email: str, password: str) -> str | None: async def authenticate(self, user_email: str, password: str) -> str | None:
result = await self.ap.persistence_mgr.execute_async( result = await self.ap.persistence_mgr.execute_async(

View File

@@ -107,4 +107,4 @@ class ChatMessageHandler(handler.MessageHandler):
) )
finally: finally:
# TODO statistics # TODO statistics
pass pass

View File

@@ -1,6 +1,4 @@
{ {
"*.{js,jsx,ts,tsx}": ["next lint --fix --file", "next lint --file"], "*.{js,jsx,ts,tsx}": ["next lint --fix --file", "next lint --file"],
"**/*": [ "**/*": ["bash -c 'cd \"$(pwd)\" && next build"]
"bash -c 'cd \"$(pwd)\" && next build"
]
} }

View File

@@ -18,4 +18,4 @@
"hooks": "@/hooks" "hooks": "@/hooks"
}, },
"iconLibrary": "lucide" "iconLibrary": "lucide"
} }

View File

@@ -1,6 +1,6 @@
const config = { const config = {
plugins: { plugins: {
"@tailwindcss/postcss": {}, '@tailwindcss/postcss': {},
}, },
}; };
export default config; export default config;

View File

@@ -1,120 +1,151 @@
:root { :root {
/* 适用于 Firefox 的滚动条 */ /* 适用于 Firefox 的滚动条 */
scrollbar-color: rgba(0, 0, 0, 0.2) transparent; /* 滑块颜色 + 轨道颜色 */ scrollbar-color: rgba(0, 0, 0, 0.2) transparent; /* 滑块颜色 + 轨道颜色 */
scrollbar-width: thin; /* auto | thin | none */ --radius: 0.625rem; --background: oklch(1 0 0); --foreground: oklch(0.141 0.005 285.823); --card: oklch(1 0 0); --card-foreground: oklch(0.141 0.005 285.823); --popover: oklch(1 0 0); --popover-foreground: oklch(0.141 0.005 285.823); --primary: oklch(0.21 0.006 285.885); --primary-foreground: oklch(0.985 0 0); --secondary: oklch(0.967 0.001 286.375); --secondary-foreground: oklch(0.21 0.006 285.885); --muted: oklch(0.967 0.001 286.375); --muted-foreground: oklch(0.552 0.016 285.938); --accent: oklch(0.967 0.001 286.375); --accent-foreground: oklch(0.21 0.006 285.885); --destructive: oklch(0.577 0.245 27.325); --border: oklch(0.92 0.004 286.32); --input: oklch(0.92 0.004 286.32); --ring: oklch(0.705 0.015 286.067); --chart-1: oklch(0.646 0.222 41.116); --chart-2: oklch(0.6 0.118 184.704); --chart-3: oklch(0.398 0.07 227.392); --chart-4: oklch(0.828 0.189 84.429); --chart-5: oklch(0.769 0.188 70.08); --sidebar: oklch(0.985 0 0); --sidebar-foreground: oklch(0.141 0.005 285.823); --sidebar-primary: oklch(0.21 0.006 285.885); --sidebar-primary-foreground: oklch(0.985 0 0); --sidebar-accent: oklch(0.967 0.001 286.375); --sidebar-accent-foreground: oklch(0.21 0.006 285.885); --sidebar-border: oklch(0.92 0.004 286.32); --sidebar-ring: oklch(0.705 0.015 286.067); scrollbar-width: thin; /* auto | thin | none */
--radius: 0.625rem;
--background: oklch(1 0 0);
--foreground: oklch(0.141 0.005 285.823);
--card: oklch(1 0 0);
--card-foreground: oklch(0.141 0.005 285.823);
--popover: oklch(1 0 0);
--popover-foreground: oklch(0.141 0.005 285.823);
--primary: oklch(0.21 0.006 285.885);
--primary-foreground: oklch(0.985 0 0);
--secondary: oklch(0.967 0.001 286.375);
--secondary-foreground: oklch(0.21 0.006 285.885);
--muted: oklch(0.967 0.001 286.375);
--muted-foreground: oklch(0.552 0.016 285.938);
--accent: oklch(0.967 0.001 286.375);
--accent-foreground: oklch(0.21 0.006 285.885);
--destructive: oklch(0.577 0.245 27.325);
--border: oklch(0.92 0.004 286.32);
--input: oklch(0.92 0.004 286.32);
--ring: oklch(0.705 0.015 286.067);
--chart-1: oklch(0.646 0.222 41.116);
--chart-2: oklch(0.6 0.118 184.704);
--chart-3: oklch(0.398 0.07 227.392);
--chart-4: oklch(0.828 0.189 84.429);
--chart-5: oklch(0.769 0.188 70.08);
--sidebar: oklch(0.985 0 0);
--sidebar-foreground: oklch(0.141 0.005 285.823);
--sidebar-primary: oklch(0.21 0.006 285.885);
--sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.967 0.001 286.375);
--sidebar-accent-foreground: oklch(0.21 0.006 285.885);
--sidebar-border: oklch(0.92 0.004 286.32);
--sidebar-ring: oklch(0.705 0.015 286.067);
} }
/* WebKit 内核浏览器定制 */ /* WebKit 内核浏览器定制 */
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 6px; /* 垂直滚动条宽度 */ width: 6px; /* 垂直滚动条宽度 */
height: 6px; /* 水平滚动条高度 */ height: 6px; /* 水平滚动条高度 */
} }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
background: transparent; /* 隐藏轨道背景 */ background: transparent; /* 隐藏轨道背景 */
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background: rgba(0, 0, 0, 0.2); /* 半透明黑色 */ background: rgba(0, 0, 0, 0.2); /* 半透明黑色 */
border-radius: 3px; border-radius: 3px;
transition: background 0.3s; transition: background 0.3s;
} }
::-webkit-scrollbar-thumb:hover { ::-webkit-scrollbar-thumb:hover {
background: rgba(0, 0, 0, 0.35); /* 悬停加深 */ background: rgba(0, 0, 0, 0.35); /* 悬停加深 */
} }
/* 兼容 Edge */ /* 兼容 Edge */
@supports (-ms-ime-align:auto) { @supports (-ms-ime-align: auto) {
body { body {
-ms-overflow-style: -ms-autohiding-scrollbar; /* 自动隐藏滚动条 */ -ms-overflow-style: -ms-autohiding-scrollbar; /* 自动隐藏滚动条 */
} }
} }
@import "tailwindcss"; @import 'tailwindcss';
@import "tw-animate-css"; @import 'tw-animate-css';
@custom-variant dark (&:is(.dark *)); @custom-variant dark (&:is(.dark *));
@theme inline { @theme inline {
--radius-sm: calc(var(--radius) - 4px); --radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px); --radius-md: calc(var(--radius) - 2px);
--radius-lg: var(--radius); --radius-lg: var(--radius);
--radius-xl: calc(var(--radius) + 4px); --radius-xl: calc(var(--radius) + 4px);
--color-background: var(--background); --color-background: var(--background);
--color-foreground: var(--foreground); --color-foreground: var(--foreground);
--color-card: var(--card); --color-card: var(--card);
--color-card-foreground: var(--card-foreground); --color-card-foreground: var(--card-foreground);
--color-popover: var(--popover); --color-popover: var(--popover);
--color-popover-foreground: var(--popover-foreground); --color-popover-foreground: var(--popover-foreground);
--color-primary: var(--primary); --color-primary: var(--primary);
--color-primary-foreground: var(--primary-foreground); --color-primary-foreground: var(--primary-foreground);
--color-secondary: var(--secondary); --color-secondary: var(--secondary);
--color-secondary-foreground: var(--secondary-foreground); --color-secondary-foreground: var(--secondary-foreground);
--color-muted: var(--muted); --color-muted: var(--muted);
--color-muted-foreground: var(--muted-foreground); --color-muted-foreground: var(--muted-foreground);
--color-accent: var(--accent); --color-accent: var(--accent);
--color-accent-foreground: var(--accent-foreground); --color-accent-foreground: var(--accent-foreground);
--color-destructive: var(--destructive); --color-destructive: var(--destructive);
--color-border: var(--border); --color-border: var(--border);
--color-input: var(--input); --color-input: var(--input);
--color-ring: var(--ring); --color-ring: var(--ring);
--color-chart-1: var(--chart-1); --color-chart-1: var(--chart-1);
--color-chart-2: var(--chart-2); --color-chart-2: var(--chart-2);
--color-chart-3: var(--chart-3); --color-chart-3: var(--chart-3);
--color-chart-4: var(--chart-4); --color-chart-4: var(--chart-4);
--color-chart-5: var(--chart-5); --color-chart-5: var(--chart-5);
--color-sidebar: var(--sidebar); --color-sidebar: var(--sidebar);
--color-sidebar-foreground: var(--sidebar-foreground); --color-sidebar-foreground: var(--sidebar-foreground);
--color-sidebar-primary: var(--sidebar-primary); --color-sidebar-primary: var(--sidebar-primary);
--color-sidebar-primary-foreground: var(--sidebar-primary-foreground); --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
--color-sidebar-accent: var(--sidebar-accent); --color-sidebar-accent: var(--sidebar-accent);
--color-sidebar-accent-foreground: var(--sidebar-accent-foreground); --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
--color-sidebar-border: var(--sidebar-border); --color-sidebar-border: var(--sidebar-border);
--color-sidebar-ring: var(--sidebar-ring); --color-sidebar-ring: var(--sidebar-ring);
} }
.dark { .dark {
--background: oklch(0.141 0.005 285.823); --background: oklch(0.141 0.005 285.823);
--foreground: oklch(0.985 0 0); --foreground: oklch(0.985 0 0);
--card: oklch(0.21 0.006 285.885); --card: oklch(0.21 0.006 285.885);
--card-foreground: oklch(0.985 0 0); --card-foreground: oklch(0.985 0 0);
--popover: oklch(0.21 0.006 285.885); --popover: oklch(0.21 0.006 285.885);
--popover-foreground: oklch(0.985 0 0); --popover-foreground: oklch(0.985 0 0);
--primary: oklch(0.92 0.004 286.32); --primary: oklch(0.92 0.004 286.32);
--primary-foreground: oklch(0.21 0.006 285.885); --primary-foreground: oklch(0.21 0.006 285.885);
--secondary: oklch(0.274 0.006 286.033); --secondary: oklch(0.274 0.006 286.033);
--secondary-foreground: oklch(0.985 0 0); --secondary-foreground: oklch(0.985 0 0);
--muted: oklch(0.274 0.006 286.033); --muted: oklch(0.274 0.006 286.033);
--muted-foreground: oklch(0.705 0.015 286.067); --muted-foreground: oklch(0.705 0.015 286.067);
--accent: oklch(0.274 0.006 286.033); --accent: oklch(0.274 0.006 286.033);
--accent-foreground: oklch(0.985 0 0); --accent-foreground: oklch(0.985 0 0);
--destructive: oklch(0.704 0.191 22.216); --destructive: oklch(0.704 0.191 22.216);
--border: oklch(1 0 0 / 10%); --border: oklch(1 0 0 / 10%);
--input: oklch(1 0 0 / 15%); --input: oklch(1 0 0 / 15%);
--ring: oklch(0.552 0.016 285.938); --ring: oklch(0.552 0.016 285.938);
--chart-1: oklch(0.488 0.243 264.376); --chart-1: oklch(0.488 0.243 264.376);
--chart-2: oklch(0.696 0.17 162.48); --chart-2: oklch(0.696 0.17 162.48);
--chart-3: oklch(0.769 0.188 70.08); --chart-3: oklch(0.769 0.188 70.08);
--chart-4: oklch(0.627 0.265 303.9); --chart-4: oklch(0.627 0.265 303.9);
--chart-5: oklch(0.645 0.246 16.439); --chart-5: oklch(0.645 0.246 16.439);
--sidebar: oklch(0.21 0.006 285.885); --sidebar: oklch(0.21 0.006 285.885);
--sidebar-foreground: oklch(0.985 0 0); --sidebar-foreground: oklch(0.985 0 0);
--sidebar-primary: oklch(0.488 0.243 264.376); --sidebar-primary: oklch(0.488 0.243 264.376);
--sidebar-primary-foreground: oklch(0.985 0 0); --sidebar-primary-foreground: oklch(0.985 0 0);
--sidebar-accent: oklch(0.274 0.006 286.033); --sidebar-accent: oklch(0.274 0.006 286.033);
--sidebar-accent-foreground: oklch(0.985 0 0); --sidebar-accent-foreground: oklch(0.985 0 0);
--sidebar-border: oklch(1 0 0 / 10%); --sidebar-border: oklch(1 0 0 / 10%);
--sidebar-ring: oklch(0.552 0.016 285.938); --sidebar-ring: oklch(0.552 0.016 285.938);
} }
@layer base { @layer base {
* { * {
@apply border-border outline-ring/50; @apply border-border outline-ring/50;
} }
body { body {
@apply bg-background text-foreground; @apply bg-background text-foreground;
} }
} }

View File

@@ -1,10 +1,10 @@
.botListContainer { .botListContainer {
width: 100%; width: 100%;
padding-left: 0.8rem; padding-left: 0.8rem;
padding-right: 0.8rem; padding-right: 0.8rem;
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
gap: 2rem; gap: 2rem;
justify-items: stretch; justify-items: stretch;
align-items: start; align-items: start;
} }

View File

@@ -1,90 +1,90 @@
.cardContainer { .cardContainer {
width: 100%; width: 100%;
height: 10rem; height: 10rem;
background-color: #fff; background-color: #fff;
border-radius: 10px; border-radius: 10px;
box-shadow: 0px 2px 2px 0 rgba(0, 0, 0, 0.2); box-shadow: 0px 2px 2px 0 rgba(0, 0, 0, 0.2);
padding: 1.2rem; padding: 1.2rem;
cursor: pointer; cursor: pointer;
} }
.cardContainer:hover { .cardContainer:hover {
box-shadow: 0px 2px 8px 0 rgba(0, 0, 0, 0.1); box-shadow: 0px 2px 8px 0 rgba(0, 0, 0, 0.1);
} }
.iconBasicInfoContainer { .iconBasicInfoContainer {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
gap: 0.8rem; gap: 0.8rem;
user-select: none; user-select: none;
/* background-color: aqua; */ /* background-color: aqua; */
} }
.iconImage { .iconImage {
width: 4rem; width: 4rem;
height: 4rem; height: 4rem;
margin: 0.2rem; margin: 0.2rem;
/* border-radius: 50%; */ /* border-radius: 50%; */
} }
.basicInfoContainer { .basicInfoContainer {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0.2rem; gap: 0.2rem;
} }
.basicInfoNameContainer { .basicInfoNameContainer {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.basicInfoName { .basicInfoName {
font-size: 1.4rem; font-size: 1.4rem;
font-weight: 500; font-weight: 500;
} }
.basicInfoDescription { .basicInfoDescription {
font-size: 1rem; font-size: 1rem;
font-weight: 300; font-weight: 300;
color: #b1b1b1; color: #b1b1b1;
} }
.basicInfoAdapterContainer { .basicInfoAdapterContainer {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
gap: 0.4rem; gap: 0.4rem;
} }
.basicInfoAdapterIcon { .basicInfoAdapterIcon {
width: 1.2rem; width: 1.2rem;
height: 1.2rem; height: 1.2rem;
margin-top: 0.2rem; margin-top: 0.2rem;
color: #626262; color: #626262;
} }
.basicInfoAdapterLabel { .basicInfoAdapterLabel {
font-size: 1.2rem; font-size: 1.2rem;
font-weight: 500; font-weight: 500;
color: #626262; color: #626262;
} }
.basicInfoPipelineContainer { .basicInfoPipelineContainer {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
gap: 0.4rem; gap: 0.4rem;
} }
.basicInfoPipelineIcon { .basicInfoPipelineIcon {
width: 1.2rem; width: 1.2rem;
height: 1.2rem; height: 1.2rem;
color: #626262; color: #626262;
margin-top: 0.2rem; margin-top: 0.2rem;
} }
.basicInfoPipelineLabel { .basicInfoPipelineLabel {
font-size: 1.2rem; font-size: 1.2rem;
font-weight: 500; font-weight: 500;
color: #626262; color: #626262;
} }

View File

@@ -1,54 +1,54 @@
.emptyPageContainer { .emptyPageContainer {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
background: #FFF; background: #fff;
border: 1px solid #c5c5c5; border: 1px solid #c5c5c5;
border-radius: 10px; border-radius: 10px;
} }
.emptyContainer { .emptyContainer {
width: 100%; width: 100%;
height: 50%; height: 50%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: space-evenly; justify-content: space-evenly;
} }
.emptyCreateButton { .emptyCreateButton {
width: 200px; width: 200px;
height: 50px; height: 50px;
border-radius: 20px; border-radius: 20px;
background-color: #2288ee; background-color: #2288ee;
color: #FFF; color: #fff;
font-size: 20px; font-size: 20px;
font-weight: bold; font-weight: bold;
text-align: center; text-align: center;
line-height: 50px; line-height: 50px;
user-select: none; user-select: none;
} }
.emptyCreateButton:hover { .emptyCreateButton:hover {
background-color: #1b77d2; background-color: #1b77d2;
} }
.emptyInfoContainer { .emptyInfoContainer {
width: 100%; width: 100%;
height: 60px; height: 60px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
color: #353535; color: #353535;
} }
.emptyInfoText { .emptyInfoText {
font-size: 30px; font-size: 30px;
} }
.emptyInfoSubText { .emptyInfoSubText {
font-size: 28px; font-size: 28px;
} }

View File

@@ -1,106 +1,105 @@
.sidebarContainer { .sidebarContainer {
box-sizing: border-box; box-sizing: border-box;
width: 11rem; width: 11rem;
height: 100vh; height: 100vh;
background-color: #eee; background-color: #eee;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
padding-block: 1rem; padding-block: 1rem;
user-select: none; user-select: none;
/* box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1); */ /* box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1); */
} }
.langbotIconContainer { .langbotIconContainer {
width: 200px; width: 200px;
height: 70px; height: 70px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
gap: 0.8rem;
.langbotIcon {
width: 2.8rem;
height: 2.8rem;
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
border-radius: 8px;
}
.langbotTextContainer {
display: flex; display: flex;
flex-direction: row; flex-direction: column;
align-items: center; align-items: flex-start;
justify-content: center; justify-content: flex-start;
gap: 0.8rem; gap: 0.1rem;
}
.langbotIcon { .langbotText {
width: 2.8rem; font-size: 1.4rem;
height: 2.8rem; font-weight: 500;
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); }
border-radius: 8px;
}
.langbotTextContainer { .langbotVersion {
display: flex; font-size: 0.8rem;
flex-direction: column; font-weight: 700;
align-items: flex-start; color: #6c6c6c;
justify-content: flex-start; }
gap: 0.1rem;
}
.langbotText {
font-size: 1.4rem;
font-weight: 500;
}
.langbotVersion {
font-size: 0.8rem;
font-weight: 700;
color: #6C6C6C;
}
} }
.sidebarTopContainer { .sidebarTopContainer {
width: 100%; width: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
gap: 0.5rem; gap: 0.5rem;
} }
.sidebarChildContainer { .sidebarChildContainer {
width: 9rem; width: 9rem;
height: 3rem; height: 3rem;
margin: 0.8rem 0; margin: 0.8rem 0;
padding-left: 1.6rem; padding-left: 1.6rem;
font-size: 1rem; font-size: 1rem;
border-radius: 12px; border-radius: 12px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: flex-start; justify-content: flex-start;
cursor: pointer; cursor: pointer;
gap: 0.5rem; gap: 0.5rem;
} }
.sidebarSelected { .sidebarSelected {
background-color: #2288ee; background-color: #2288ee;
color: white; color: white;
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1); box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
} }
.sidebarUnselected { .sidebarUnselected {
color: #6C6C6C; color: #6c6c6c;
} }
.sidebarChildIcon { .sidebarChildIcon {
width: 20px; width: 20px;
height: 20px; height: 20px;
background-color: rgba(96, 149, 209, 0); background-color: rgba(96, 149, 209, 0);
} }
.sidebarBottomContainer { .sidebarBottomContainer {
width: 100%; width: 100%;
height: 100px; height: 100px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.sidebarBottomChildContainer { .sidebarBottomChildContainer {
width: 100%; width: 100%;
height: 50px; height: 50px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
} }

View File

@@ -37,7 +37,9 @@ export function SidebarChild({
}) { }) {
return ( return (
<div <div
className={`${styles.sidebarChildContainer} ${isSelected ? styles.sidebarSelected : styles.sidebarUnselected}`} className={`${styles.sidebarChildContainer} ${
isSelected ? styles.sidebarSelected : styles.sidebarUnselected
}`}
onClick={onClick} onClick={onClick}
> >
<div className={`${styles.sidebarChildIcon}`}>{icon}</div> <div className={`${styles.sidebarChildIcon}`}>{icon}</div>

View File

@@ -1,24 +1,24 @@
.titleBarContainer { .titleBarContainer {
width: 100%; width: 100%;
padding-top: 0.8rem; padding-top: 0.8rem;
height: 4rem; height: 4rem;
opacity: 1; opacity: 1;
font-size: 20px; font-size: 20px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
justify-content: center; justify-content: center;
} }
.titleText { .titleText {
margin-left: 3.2rem; margin-left: 3.2rem;
font-size: 1.4rem; font-size: 1.4rem;
font-weight: 500; font-weight: 500;
color: #585858; color: #585858;
} }
.subtitleText { .subtitleText {
margin-left: 3.2rem; margin-left: 3.2rem;
font-size: 0.8rem; font-size: 0.8rem;
color: #808080; color: #808080;
} }

View File

@@ -1,32 +1,32 @@
/* 主布局容器 */ /* 主布局容器 */
.homeLayoutContainer { .homeLayoutContainer {
width: 100vw; width: 100vw;
height: 100vh; height: 100vh;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
background-color: #eee; background-color: #eee;
} }
/* 主内容区域 */ /* 主内容区域 */
.main { .main {
background-color: #fafafa; background-color: #fafafa;
flex: 1; flex: 1;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
/* height: 100vh; */ /* height: 100vh; */
width: calc(100% - 1.2rem); width: calc(100% - 1.2rem);
height: calc(100% - 1.2rem); height: calc(100% - 1.2rem);
overflow: hidden; overflow: hidden;
border-radius: 1.5rem 0 0 1.5rem; border-radius: 1.5rem 0 0 1.5rem;
margin-left: 0.6rem; margin-left: 0.6rem;
margin-top: 0.6rem; margin-top: 0.6rem;
box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.05); box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.05);
} }
.mainContent { .mainContent {
padding: 1.5rem; padding: 1.5rem;
padding-left: 2rem; padding-left: 2rem;
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
background-color: #fafafa; background-color: #fafafa;
} }

View File

@@ -1,19 +1,19 @@
.modelListContainer { .modelListContainer {
width: 100%; width: 100%;
padding-left: 0.8rem; padding-left: 0.8rem;
padding-right: 0.8rem; padding-right: 0.8rem;
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
gap: 2rem; gap: 2rem;
justify-items: stretch; justify-items: stretch;
align-items: start; align-items: start;
} }
.emptyContainer { .emptyContainer {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }

View File

@@ -1,120 +1,120 @@
.cardContainer { .cardContainer {
width: 100%; width: 100%;
height: 10rem; height: 10rem;
background-color: #fff; background-color: #fff;
border-radius: 10px; border-radius: 10px;
box-shadow: 0px 2px 2px 0 rgba(0, 0, 0, 0.2); box-shadow: 0px 2px 2px 0 rgba(0, 0, 0, 0.2);
padding: 1.2rem; padding: 1.2rem;
cursor: pointer; cursor: pointer;
} }
.cardContainer:hover { .cardContainer:hover {
box-shadow: 0px 2px 8px 0 rgba(0, 0, 0, 0.1); box-shadow: 0px 2px 8px 0 rgba(0, 0, 0, 0.1);
} }
.iconBasicInfoContainer { .iconBasicInfoContainer {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
gap: 0.8rem; gap: 0.8rem;
user-select: none; user-select: none;
/* background-color: aqua; */ /* background-color: aqua; */
} }
.iconImage { .iconImage {
width: 3.8rem; width: 3.8rem;
height: 3.8rem; height: 3.8rem;
margin: 0.2rem; margin: 0.2rem;
border-radius: 50%; border-radius: 50%;
} }
.basicInfoContainer { .basicInfoContainer {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0.2rem; gap: 0.2rem;
width: 100%; width: 100%;
} }
.basicInfoText { .basicInfoText {
font-size: 1.4rem; font-size: 1.4rem;
font-weight: bold; font-weight: bold;
} }
.providerContainer { .providerContainer {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: flex-start; justify-content: flex-start;
gap: 0.2rem; gap: 0.2rem;
} }
.providerIcon { .providerIcon {
width: 1.2rem; width: 1.2rem;
height: 1.2rem; height: 1.2rem;
margin-top: 0.2rem; margin-top: 0.2rem;
color: #626262; color: #626262;
} }
.providerLabel { .providerLabel {
font-size: 1.2rem; font-size: 1.2rem;
font-weight: 600; font-weight: 600;
color: #626262; color: #626262;
} }
.baseURLContainer { .baseURLContainer {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: flex-start; justify-content: flex-start;
gap: 0.2rem; gap: 0.2rem;
width: calc(100% - 3rem); width: calc(100% - 3rem);
} }
.baseURLIcon { .baseURLIcon {
width: 1.2rem; width: 1.2rem;
height: 1.2rem; height: 1.2rem;
color: #626262; color: #626262;
} }
.baseURLText { .baseURLText {
font-size: 1rem; font-size: 1rem;
width: 100%; width: 100%;
color: #626262; color: #626262;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
max-width: 100%; max-width: 100%;
} }
.abilitiesContainer { .abilitiesContainer {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: flex-start; justify-content: flex-start;
gap: 0.4rem; gap: 0.4rem;
} }
.abilityBadge { .abilityBadge {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: flex-start; justify-content: flex-start;
gap: 0.2rem; gap: 0.2rem;
height: 1.5rem; height: 1.5rem;
padding: 0.5rem; padding: 0.5rem;
border-radius: 0.8rem; border-radius: 0.8rem;
background-color: #66baff80; background-color: #66baff80;
} }
.abilityIcon { .abilityIcon {
width: 1rem; width: 1rem;
height: 1rem; height: 1rem;
color: #2288ee; color: #2288ee;
} }
.abilityLabel { .abilityLabel {
font-size: 0.8rem; font-size: 0.8rem;
font-weight: 400; font-weight: 400;
color: #2288ee; color: #2288ee;
} }

View File

@@ -1,90 +1,90 @@
.cardContainer { .cardContainer {
width: 100%; width: 100%;
height: 10rem; height: 10rem;
background-color: #fff; background-color: #fff;
border-radius: 10px; border-radius: 10px;
box-shadow: 0px 2px 2px 0 rgba(0, 0, 0, 0.2); box-shadow: 0px 2px 2px 0 rgba(0, 0, 0, 0.2);
padding: 1.2rem; padding: 1.2rem;
cursor: pointer; cursor: pointer;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
gap:0.5rem; gap: 0.5rem;
} }
.cardContainer:hover { .cardContainer:hover {
box-shadow: 0px 2px 8px 0 rgba(0, 0, 0, 0.1); box-shadow: 0px 2px 8px 0 rgba(0, 0, 0, 0.1);
} }
.basicInfoContainer { .basicInfoContainer {
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
gap: 0.4rem; gap: 0.4rem;
} }
.basicInfoNameContainer { .basicInfoNameContainer {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 0.2rem; gap: 0.2rem;
} }
.basicInfoNameText { .basicInfoNameText {
font-size: 1.4rem; font-size: 1.4rem;
font-weight: 500; font-weight: 500;
} }
.basicInfoDescriptionText { .basicInfoDescriptionText {
font-size: 0.9rem; font-size: 0.9rem;
font-weight: 400; font-weight: 400;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 3; -webkit-line-clamp: 3;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
color: #b1b1b1; color: #b1b1b1;
} }
.basicInfoLastUpdatedTimeContainer { .basicInfoLastUpdatedTimeContainer {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
} }
.basicInfoUpdateTimeIcon { .basicInfoUpdateTimeIcon {
width: 1.2rem; width: 1.2rem;
height: 1.2rem; height: 1.2rem;
} }
.basicInfoUpdateTimeText { .basicInfoUpdateTimeText {
font-size: 1rem; font-size: 1rem;
font-weight: 400; font-weight: 400;
} }
.operationContainer { .operationContainer {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
gap: 0.5rem; gap: 0.5rem;
width: 5rem; width: 5rem;
} }
.operationDefaultBadge { .operationDefaultBadge {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
gap: 0.5rem; gap: 0.5rem;
} }
.operationDefaultBadgeIcon { .operationDefaultBadgeIcon {
width: 1.2rem; width: 1.2rem;
height: 1.2rem; height: 1.2rem;
color: #ffcd27; color: #ffcd27;
} }
.operationDefaultBadgeText { .operationDefaultBadgeText {
font-size: 1rem; font-size: 1rem;
font-weight: 400; font-weight: 400;
color: #ffcd27; color: #ffcd27;
} }

View File

@@ -1,12 +1,12 @@
.formItemSubtitle { .formItemSubtitle {
font-size: 18px; font-size: 18px;
font-weight: bold; font-weight: bold;
margin-bottom: 10px; margin-bottom: 10px;
} }
.changeFormButtonGroupContainer { .changeFormButtonGroupContainer {
width: 320px; width: 320px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
} }

View File

@@ -1,16 +1,15 @@
.configPageContainer { .configPageContainer {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.pipelineListContainer { .pipelineListContainer {
width: 100%; width: 100%;
padding-left: 0.8rem; padding-left: 0.8rem;
padding-right: 0.8rem; padding-right: 0.8rem;
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
gap: 2rem; gap: 2rem;
justify-items: stretch; justify-items: stretch;
align-items: start; align-items: start;
} }

View File

@@ -1,21 +1,20 @@
.pageContainer { .pageContainer {
width: 100%; width: 100%;
} }
.marketComponentBody { .marketComponentBody {
width: 100%; width: 100%;
height: calc(100% - 60px); height: calc(100% - 60px);
} }
.pluginListContainer { .pluginListContainer {
width: 100%; width: 100%;
padding-left: 0.8rem; padding-left: 0.8rem;
padding-right: 0.8rem; padding-right: 0.8rem;
padding-top: 2rem; padding-top: 2rem;
display: grid; display: grid;
grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr));
gap: 2rem; gap: 2rem;
justify-items: stretch; justify-items: stretch;
align-items: start; align-items: start;
} }

View File

@@ -1,19 +1,19 @@
.cardContainer { .cardContainer {
background-color: #FFF; background-color: #fff;
border-radius: 9px; border-radius: 9px;
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1); box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: space-evenly; justify-content: space-evenly;
cursor: pointer; cursor: pointer;
} }
.cardContainer:hover { .cardContainer:hover {
box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.05); box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.05);
} }
.createCardContainer { .createCardContainer {
font-size: 90px; font-size: 90px;
color: #acacac; color: #acacac;
} }