From b4cc0088cf693d5ea42f5e24588f211a574fde40 Mon Sep 17 00:00:00 2001 From: Kevin Deng Date: Thu, 20 Aug 2026 15:02:36 +0900 Subject: [PATCH] Improve pattern filters and sort controls (#18) --- app/components/CharTable.vue | 15 ++- app/components/FilterBar.vue | 192 +++++++++++++++++++++++---------- app/components/PatternChip.vue | 5 +- app/components/SegChoice.vue | 20 +++- app/components/VarietyChip.vue | 31 ++++++ app/composables/chars.ts | 42 +++++--- app/locales/ja-jp.ts | 2 + app/locales/zh-cn.ts | 2 + app/locales/zh-hk.ts | 2 + app/locales/zh-tw.ts | 2 + scripts/tests/patterns.test.ts | 82 ++++++++++++++ shared/patterns.ts | 98 +++++++++++++++++ 12 files changed, 415 insertions(+), 78 deletions(-) create mode 100644 app/components/VarietyChip.vue create mode 100644 scripts/tests/patterns.test.ts create mode 100644 shared/patterns.ts diff --git a/app/components/CharTable.vue b/app/components/CharTable.vue index ca5f0f1..52554d6 100644 --- a/app/components/CharTable.vue +++ b/app/components/CharTable.vue @@ -35,12 +35,19 @@ function turnTo(page: number) { }} -

- {{ t('table.empty') }} -

+

{{ t('table.empty') }}

+ +