From 42ed66132d0d6f074173b35906469d7ab0353c1a Mon Sep 17 00:00:00 2001 From: wood Date: Sat, 25 Nov 2023 06:38:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E7=82=B9=E9=A2=9C=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/ChannelsTable.js | 27 +++++++++++++++++---------- web/src/components/TokensTable.js | 2 +- web/src/index.css | 13 ++++++++++++- web/src/pages/TopUp/index.js | 8 ++++---- 4 files changed, 34 insertions(+), 16 deletions(-) diff --git a/web/src/components/ChannelsTable.js b/web/src/components/ChannelsTable.js index 84f7c96b..93bfc6f2 100644 --- a/web/src/components/ChannelsTable.js +++ b/web/src/components/ChannelsTable.js @@ -34,7 +34,7 @@ function renderBalance(type, balance) { case 4: // CloseAI return ¥{balance.toFixed(2)}; case 8: // 自定义 - return ${balance.toFixed(2)}; + return ${balance.toFixed(2)}; case 5: // OpenAI-SB return ¥{(balance / 10000).toFixed(2)}; case 10: // AI Proxy @@ -457,7 +457,15 @@ const ChannelsTable = () => { sortChannel('used_quota'); }} > - 本月已用额度 + 本月 + + { + sortChannel('used_quota'); + }} + > + 总共 { {truncateString(channel.base_url.replace(/^https?:\/\//, ''), 20)}} + trigger={{truncateString(channel.base_url.replace(/^https?:\/\//, ''), 10)}} basic /> {truncateString(channel.models, 20)}} + trigger={{truncateString(channel.models, 10)}} basic /> - ${monthlyQuotas[channel.id]}} - content={`总: ${formatUsedQuota(channel.used_quota)}`} - basic - /> + + + + { - + diff --git a/web/src/components/TokensTable.js b/web/src/components/TokensTable.js index 3df7f967..375beb5e 100644 --- a/web/src/components/TokensTable.js +++ b/web/src/components/TokensTable.js @@ -21,7 +21,7 @@ function renderTimestamp(timestamp) { function renderStatus(status) { switch (status) { case 1: - return ; + return ; case 2: return ; case 3: diff --git a/web/src/index.css b/web/src/index.css index 921d4082..7fa4d18a 100644 --- a/web/src/index.css +++ b/web/src/index.css @@ -1,4 +1,15 @@ :root { + --czl-blue-50: #f1f9fe; + --czl-blue-100: #e2f2fc; + --czl-blue-200: #bfe3f8; + --czl-blue-300: #87cef2; + --czl-blue-400: #48b5e8; + --czl-blue-500: #2ea7e0; + --czl-blue-600: #127db7; + --czl-blue-700: #106494; + --czl-blue-800: #11557b; + --czl-blue-900: #144766; + --czl-blue-950: #0d2d44; --toastify-color-light: var(--czl-main) !important; --toastify-color-dark: var(--czl-main-dark) !important; --toastify-color-info: var(--czl-info-color) !important; @@ -229,7 +240,7 @@ code { } .active-menu-item { - background-color: var(--czl-grayD) !important; + background-color: var(--czl-blue-950) !important; color: white !important; border-radius: 16px !important; padding: 10px 16px !important; diff --git a/web/src/pages/TopUp/index.js b/web/src/pages/TopUp/index.js index 2b5f5684..b2098b38 100644 --- a/web/src/pages/TopUp/index.js +++ b/web/src/pages/TopUp/index.js @@ -90,7 +90,7 @@ const TopUp = () => { icon='shop' labelPosition='left' content='获取兑换码' - style={{ backgroundColor: 'var(--czl-primary-color)' }} + style={{ backgroundColor: 'var(--czl-blue-700)' }} onClick={openTopUpLink} />