diff --git a/public/locales/ar/translation.json b/public/locales/ar/translation.json index 16d2ac5..a311d02 100644 --- a/public/locales/ar/translation.json +++ b/public/locales/ar/translation.json @@ -149,5 +149,6 @@ "ai-polish": "الذكاء الاصطناعي البولندي", "accept": "قبول", "reject": "رفض", - "stop": "توقف" + "stop": "توقف", + "card-columns": "أعمدة البطاقة" } diff --git a/public/locales/de/translation.json b/public/locales/de/translation.json index 6c27d87..f782108 100644 --- a/public/locales/de/translation.json +++ b/public/locales/de/translation.json @@ -141,5 +141,6 @@ "ai-polish": "AI Polnisch", "accept": "Akzeptieren", "reject": "Ablehnen", - "stop": "Stopp" + "stop": "Stopp", + "card-columns": "Kartenspalten" } diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index abeae21..ae3d747 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -146,5 +146,6 @@ "ai-polish": "AI Polish", "accept": "Accept", "reject": "Reject", - "stop": "Stop" + "stop": "Stop", + "card-columns": "Card Columns" } diff --git a/public/locales/es/translation.json b/public/locales/es/translation.json index e4f03f7..2bd3482 100644 --- a/public/locales/es/translation.json +++ b/public/locales/es/translation.json @@ -140,5 +140,6 @@ "ai-polish": "AI Polaco", "accept": "Acepte", "reject": "Rechazar", - "stop": "Stop" + "stop": "Stop", + "card-columns": "Columnas de tarjetas" } diff --git a/public/locales/fr/translation.json b/public/locales/fr/translation.json index 455a2a1..5fb4224 100644 --- a/public/locales/fr/translation.json +++ b/public/locales/fr/translation.json @@ -141,5 +141,6 @@ "ai-polish": "AI Polish", "accept": "Accepter", "reject": "Rejeter", - "stop": "Arrêter" + "stop": "Arrêter", + "card-columns": "Colonnes de la carte" } diff --git a/public/locales/ja/translation.json b/public/locales/ja/translation.json index fea9f58..9c1628a 100644 --- a/public/locales/ja/translation.json +++ b/public/locales/ja/translation.json @@ -139,5 +139,6 @@ "ai-polish": "AIポーランド語", "accept": "受け入れる", "reject": "却下", - "stop": "ストップ" + "stop": "ストップ", + "card-columns": "カード・コラム" } diff --git a/public/locales/ko/translation.json b/public/locales/ko/translation.json index 62ba1bb..1b9936f 100644 --- a/public/locales/ko/translation.json +++ b/public/locales/ko/translation.json @@ -141,5 +141,6 @@ "ai-polish": "AI 폴란드어", "accept": "수락", "reject": "거부", - "stop": "중지" + "stop": "중지", + "card-columns": "카드 열" } diff --git a/public/locales/pt/translation.json b/public/locales/pt/translation.json index 8c7941c..7e34ff0 100644 --- a/public/locales/pt/translation.json +++ b/public/locales/pt/translation.json @@ -140,5 +140,6 @@ "ai-polish": "Polaco AI", "accept": "Aceitar", "reject": "Rejeitar", - "stop": "Parar" + "stop": "Parar", + "card-columns": "Colunas de cartões" } diff --git a/public/locales/ru/translation.json b/public/locales/ru/translation.json index 0acee0c..ecba701 100644 --- a/public/locales/ru/translation.json +++ b/public/locales/ru/translation.json @@ -142,5 +142,6 @@ "ai-polish": "AI Polish", "accept": "Принять", "reject": "Отклонить", - "stop": "Остановите" + "stop": "Остановите", + "card-columns": "Колонки карты" } diff --git a/public/locales/zh-TW/translation.json b/public/locales/zh-TW/translation.json index 7fc99b1..a66d9ca 100644 --- a/public/locales/zh-TW/translation.json +++ b/public/locales/zh-TW/translation.json @@ -141,5 +141,6 @@ "ai-polish": "AI润色", "accept": "接受", "reject": "拒绝", - "stop": "停止" + "stop": "停止", + "card-columns": "卡片列" } diff --git a/public/locales/zh/translation.json b/public/locales/zh/translation.json index af96146..0213695 100644 --- a/public/locales/zh/translation.json +++ b/public/locales/zh/translation.json @@ -142,5 +142,6 @@ "ai-polish": "AI润色", "accept": "接受", "reject": "拒绝", - "stop": "停止" + "stop": "停止", + "card-columns": "卡片列" } diff --git a/src/components/BlinkoSettings/PerferSetting.tsx b/src/components/BlinkoSettings/PerferSetting.tsx index d5345b5..f556e27 100644 --- a/src/components/BlinkoSettings/PerferSetting.tsx +++ b/src/components/BlinkoSettings/PerferSetting.tsx @@ -44,6 +44,37 @@ export const PerferSetting = observer(() => { })) }} />} /> + {t('card-columns')}} + rightContent={ +
+ + + + + { + console.log(key) + await PromiseCall(api.config.update.mutate({ + key: 'cardColumns', + value: key.toString() + })) + }} + selectedKeys={[blinko.config.value?.cardColumns || '']} + > + 1 + 2 + 3 + 4 + + +
+ } /> {t('time-format')}} rightContent={ @@ -52,11 +83,10 @@ export const PerferSetting = observer(() => { - + { diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 7873369..5cf2773 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -30,7 +30,7 @@ const Home = observer(() => { return (
- + {store.showEditor &&
store.editorHeight = height} />
} @@ -51,7 +51,7 @@ const Home = observer(() => { className={`px-2 mt-0 md:mt-6 md:px-6 w-full h-full transition-all scroll-area`}> ; @@ -45,6 +46,7 @@ export const ZConfigSchema = z.object({ isAllowRegister: z.any().optional(), isOrderByCreateTime: z.any().optional(), timeFormat: z.any().optional(), + cardColumns: z.any().optional(), objectStorage: z.any().optional(), s3AccessKeyId: z.any().optional(), s3AccessKeySecret: z.any().optional(),