diff --git a/web/src/app/home/plugins/plugin-installed/plugin-card/PluginCardComponent.tsx b/web/src/app/home/plugins/plugin-installed/plugin-card/PluginCardComponent.tsx index 90520563..e507a471 100644 --- a/web/src/app/home/plugins/plugin-installed/plugin-card/PluginCardComponent.tsx +++ b/web/src/app/home/plugins/plugin-installed/plugin-card/PluginCardComponent.tsx @@ -1,4 +1,3 @@ -import styles from './pluginCard.module.css'; import { PluginCardVO } from '@/app/home/plugins/plugin-installed/PluginCardVO'; import { useState } from 'react'; import { httpClient } from '@/app/infra/http/HttpClient'; @@ -32,51 +31,47 @@ export default function PluginCardComponent({ }); } return ( -
-
- +
+
+ -
- -
- -
-
{cardVO.author} /
-
-
{cardVO.name}
- v{cardVO.version} +
+
+
+
{cardVO.author} /
+
+
{cardVO.name}
+ v{cardVO.version}
-
{cardVO.description}
+
{cardVO.description}
-
-
- -
事件 {Object.keys(cardVO.event_handlers).length}
+
+
+ +
事件 {Object.keys(cardVO.event_handlers).length}
-
- -
工具 {cardVO.tools.length }
+
+ +
工具 {cardVO.tools.length}
-
-
-
-
+
+
handleEnable(e)} disabled={!switchEnable} />
-
+
{/* */} diff --git a/web/src/app/home/plugins/plugin-installed/plugin-card/pluginCard.module.css b/web/src/app/home/plugins/plugin-installed/plugin-card/pluginCard.module.css deleted file mode 100644 index b88d8a75..00000000 --- a/web/src/app/home/plugins/plugin-installed/plugin-card/pluginCard.module.css +++ /dev/null @@ -1,140 +0,0 @@ -.cardContainer { - width: 26rem; - height: 10rem; - background-color: #fff; - border-radius: 10px; - box-shadow: 0px 2px 2px 0 rgba(0, 0, 0, 0.2); - padding: 1.2rem; - cursor: pointer; -} - -.contentContainer { - width: 100%; - height: 100%; - display: flex; - flex-direction: row; - align-items: flex-start; - justify-content: flex-start; - gap: 1.2rem; -} - -.pluginIcon { - width: 4rem; - height: 4rem; - color: #2288ee; -} - -.infoContainer { - width: 100%; - height: 100%; - /* background-color: aqua; */ - display: flex; - flex-direction: column; - align-items: flex-start; - justify-content: space-between; -} - -.basicInfoContainer { - display: flex; - flex-direction: column; - align-items: flex-start; - justify-content: flex-start; -} - - -.nameContainer { - display: flex; - flex-direction: column; - align-items: flex-start; - justify-content: flex-start; -} - -.author { - font-size: 0.7rem; - color: #666; -} - -.nameAndVersionContainer { - display: flex; - flex-direction: row; - align-items: center; - justify-content: flex-start; - gap: 0.4rem; -} - -.name { - font-size: 1.2rem; - color: #000; -} - -.description { - font-size: 1rem; - color: #666; - display: -webkit-box; - -webkit-line-clamp: 2; - -webkit-box-orient: vertical; - overflow: hidden; -} - -.componentContainer { - display: flex; - flex-direction: row; - align-items: flex-start; - justify-content: flex-start; - gap: 0.6rem; -} - -.componentEntryContainer { - display: flex; - flex-direction: row; - align-items: center; - justify-content: center; - gap: 0.2rem; -} - -.componentIcon { - width: 1.2rem; - height: 1.2rem; - color: #555; -} - - -.componentText { - font-size: 1rem; - color: #555; - font-weight: 500; -} - -.version { - font-size: 0.8rem; - color: #666; -} - -.toolContainer { - display: flex; - flex-direction: row; - align-items: center; - justify-content: center; -} - -.operationContainer { - height: 100%; - display: flex; - flex-direction: column; - align-items: flex-end; - justify-content: space-between; -} - -.operationTop { - display: flex; - flex-direction: row; - align-items: center; - justify-content: center; -} - -.operationBottom { - display: flex; - flex-direction: row; - align-items: center; - justify-content: center; -} \ No newline at end of file