- 12 Dec, 2024 10 commits
-
-
fix: Correct inner padding and sider visibility logic in HeaderBar, PageLayout, and SiderBar components - Updated the click handler in HeaderBar to toggle inner padding and sider visibility correctly based on the selected item. - Adjusted the conditional rendering of SiderBar in PageLayout to ensure it displays when the sider is shown. - Refined the inner padding logic in SiderBar to maintain consistent behavior when selecting items. - Introduced a new function in Style context to manage sider visibility based on the current pathname, enhancing responsiveness to navigation changes.
CalciumIon committed -
- Streamlined the calculation of average RPM and average TPM by removing unnecessary function calls and directly applying the `toFixed(3)` method within the JSX. - Improved code readability and maintainability by reducing the number of lines and enhancing clarity in the calculation logic.
CalciumIon committed -
CalciumIon committed
-
CalciumIon committed
-
- Updated the group selection input to truncate long labels on mobile devices, ensuring better readability and a cleaner interface. - Implemented a conditional label adjustment that shortens group names exceeding 18 characters, appending '...' for clarity.
CalciumIon committed -
feat: 完善数据看板功能
Calcium-Ion committed -
- Updated the `increaseQuotaData` function to include `tokenUsed` parameter for better quota tracking. - Modified the `GetAllQuotaDates` function to sum `token_used` alongside `count` and `quota` for comprehensive data retrieval. - Improved CSS styles for better layout responsiveness, including padding adjustments for navigation elements and description cards.
CalciumIon committed -
- Removed the '模型价格' (Pricing) link from the SiderBar for a cleaner interface. - Added a new '数据看板' (Data Dashboard) link to the SiderBar, enhancing navigation options. - Refactored the Detail component to include user context and style context for better state management. - Introduced new state variables to track token consumption and updated data handling for charts. - Enhanced the layout with additional cards and tabs for displaying user quota and usage statistics. - Improved data processing logic for pie and line charts, ensuring accurate representation of user data.
CalciumIon committed -
- Added base and extended color palettes for improved model color mapping. - Introduced a new `modelToColor` function to dynamically assign colors based on model names. - Updated the Detail component to utilize the new color mapping for pie and line charts. - Refactored chart data handling to support dynamic color assignment and improved data visualization. - Cleaned up unused state variables and optimized data loading logic for better performance.
CalciumIon committed -
- Removed the `bytedance/sonic` dependency and replaced its usage with the standard `encoding/json` package for JSON marshalling in `relay-text.go`. - Updated `go.mod` to reflect the removal of `sonic` and adjusted the version of `sonic/loader`. - Cleaned up `go.sum` to ensure consistency with the updated dependencies.
CalciumIon committed
-
- 11 Dec, 2024 18 commits
-
-
feat: Add pricing link to HeaderBar component
Calcium-Ion committed -
feat: Refactor style management for inner padding in layout components
Calcium-Ion committed -
- Introduced a new '定价' (Pricing) item in the HeaderBar navigation for better accessibility to pricing information. - Updated routing to include the new '/pricing' path. - Adjusted user display in the HeaderBar for mobile responsiveness, hiding the username on smaller screens for a cleaner interface.
CalciumIon committed -
- Updated HeaderBar, PageLayout, and SiderBar components to manage inner padding state based on selected items. - Replaced `isChatPage` state with `shouldInnerPadding` in Style context for better clarity and functionality. - Enhanced user experience by dynamically adjusting content padding based on navigation selections.
CalciumIon committed -
feat: 前端美化
Calcium-Ion committed -
- Refactored ModelList in the gemini constant to include new models and remove outdated ones. - Modified the GetModelList function in the Adaptor to consolidate model lists from multiple sources, ensuring a comprehensive and updated list is returned. - Commented out deprecated models in the vertex constants for clarity and future reference.
CalciumIon committed -
- Implemented filter and search position options in the model selection dropdowns for both EditChannel and EditTagModal components. - Enhanced user experience by allowing users to easily find and select models from a potentially large list.
CalciumIon committed -
- Introduced a new input field for adding custom model names in the EditTagModal component. - Implemented logic to handle the addition of custom models, including validation to prevent duplicates. - Enhanced user experience by providing feedback when attempting to add existing models. - Updated state management to reflect changes in the model options dynamically.
CalciumIon committed -
- Enhanced the Playground component to prioritize the user's group by moving it to the front of the local group options if it exists. - Improved user experience by ensuring the default group selection reflects the user's current group, if available.
CalciumIon committed -
- Added `isChatPage` state to the Style context to manage chat page layout. - Updated `PageLayout` component to adjust padding based on the chat page state. - Enhanced `SiderBar` component to dispatch chat page state changes when chat-related items are selected.
CalciumIon committed -
- Introduced a new helper function `renderModelPriceSimple` to simplify the rendering of model price information. - Updated the `LogsTable` component to utilize `renderModelPriceSimple`, enhancing the display of model pricing and grouping information. - Removed the previous implementation of `renderModelPrice` from the `LogsTable` for cleaner code.
CalciumIon committed -
- Moved footer content from the Card component to a separate Descriptions component for better structure. - Maintained the display of user quota, historical consumption, and request count while improving readability.
CalciumIon committed -
feat: Update dependencies and restructure Playground component
Calcium-Ion committed -
- Upgraded @douyinfe/semi-ui from version 2.63.1 to 2.69.1 in package.json. - Updated pnpm-lock.yaml to reflect new dependency versions and lockfile format. - Moved Playground component to a new directory structure under pages. - Enhanced Playground component with new features and improved user experience.
CalciumIon committed -
feat: 界面美化
Calcium-Ion committed -
CalciumIon committed
-
CalciumIon committed
-
CalciumIon committed
-
- 10 Dec, 2024 1 commit
-
-
CalciumIon committed
-
- 09 Dec, 2024 4 commits
-
-
CalciumIon committed
-
CalciumIon committed
-
CalciumIon committed
-
CalciumIon committed
-
- 08 Dec, 2024 1 commit
-
-
Update relay-xunfei.go
Calcium-Ion committed
-
- 07 Dec, 2024 3 commits
-
-
按照讯飞的最新文档,Spark Lite请求地址,对应的domain参数为lite 参考来源:https://www.xfyun.cn/doc/spark/Web.html#_1-接口说明
jochne committed -
CalciumIon committed
-
feat: support Azure Comm Service SMTP
Calcium-Ion committed
-
- 06 Dec, 2024 3 commits
-
-
wzxjohn committed
-
fix 关键词搜索加标签聚合时,大于1个空标签渠道无法展开的问题
Calcium-Ion committed -
CalciumIon committed
-