From 5a474aa9a2afa302e313b8086be0c405023121a7 Mon Sep 17 00:00:00 2001 From: dntzhang Date: Sun, 11 Feb 2024 09:43:58 +0800 Subject: [PATCH] feat(omi-templates): unified color, organized catalog --- .../omi-templates/src/components/appear.tsx | 1 - .../src/components/customize-button.tsx | 4 +- .../src/components/customize.tsx | 2 +- .../src/components/dark-switch.tsx | 6 +- .../omi-templates/src/components/fallback.tsx | 8 +- .../omi-templates/src/components/navbar.tsx | 14 +- .../src/components/{ => omiu}/button.tsx | 0 .../{ => omiu}/calendar/calendar.ts | 0 .../components/{ => omiu}/calendar/index.tsx | 0 .../src/components/{ => omiu}/msg.tsx | 0 .../src/components/{ => omiu}/select.tsx | 2 +- .../src/components/omiu/table.tsx | 95 +++++++ .../omi-templates/src/components/omiu/tag.tsx | 0 .../src/components/{ => omiu}/utils.ts | 0 .../src/components/site-layout.tsx | 12 +- .../omi-templates/src/components/table.tsx | 259 ------------------ packages/omi-templates/src/index.css | 8 +- packages/omi-templates/src/pages/chat.tsx | 102 +++---- packages/omi-templates/src/pages/home.tsx | 66 +++-- packages/omi-templates/src/pages/icons.tsx | 2 +- packages/omi-templates/src/pages/login.tsx | 6 +- packages/omi-templates/src/pages/personal.tsx | 8 +- packages/omi-templates/src/pages/product.tsx | 78 +++--- .../omi-templates/src/pages/questionnaire.tsx | 18 +- .../src/pages/results/browser-not-support.tsx | 4 +- .../omi-templates/src/pages/results/fail.tsx | 6 +- .../src/pages/results/forbidden.tsx | 4 +- .../src/pages/results/network-error.tsx | 4 +- .../src/pages/results/not-found.tsx | 4 +- .../src/pages/results/server-error.tsx | 4 +- .../src/pages/results/success.tsx | 6 +- .../src/pages/results/system-maintenance.tsx | 4 +- 32 files changed, 280 insertions(+), 447 deletions(-) rename packages/omi-templates/src/components/{ => omiu}/button.tsx (100%) rename packages/omi-templates/src/components/{ => omiu}/calendar/calendar.ts (100%) rename packages/omi-templates/src/components/{ => omiu}/calendar/index.tsx (100%) rename packages/omi-templates/src/components/{ => omiu}/msg.tsx (100%) rename packages/omi-templates/src/components/{ => omiu}/select.tsx (98%) create mode 100644 packages/omi-templates/src/components/omiu/table.tsx create mode 100644 packages/omi-templates/src/components/omiu/tag.tsx rename packages/omi-templates/src/components/{ => omiu}/utils.ts (100%) delete mode 100644 packages/omi-templates/src/components/table.tsx diff --git a/packages/omi-templates/src/components/appear.tsx b/packages/omi-templates/src/components/appear.tsx index c2b3bd467c..070ffd0e6d 100644 --- a/packages/omi-templates/src/components/appear.tsx +++ b/packages/omi-templates/src/components/appear.tsx @@ -18,7 +18,6 @@ export class Appear extends Component { this.classList.add(item) this.classList.remove(item) }) - // o-table 和 日历组件的切换时,需要刷新一下 window.refreshDark() }, 10) } diff --git a/packages/omi-templates/src/components/customize-button.tsx b/packages/omi-templates/src/components/customize-button.tsx index 79cf898b0c..c07e185f1f 100644 --- a/packages/omi-templates/src/components/customize-button.tsx +++ b/packages/omi-templates/src/components/customize-button.tsx @@ -2,9 +2,9 @@ import { showCustomize } from './customize.tsx' export function CustomizeButton() { return ( -
+