From 93ddf3c6d4a4bf99b00439e79da135cb86a25f4b Mon Sep 17 00:00:00 2001 From: Fodesu Date: Mon, 9 Mar 2026 17:03:23 +0800 Subject: [PATCH] feat(web): add incremental rendering for model list to avoid lag with large providers(openrouter) --- apps/web/src/i18n/locales/en.json | 4 ++- apps/web/src/i18n/locales/zh.json | 4 ++- .../pages/models/components/model-list.vue | 36 +++++++++++++++++-- 3 files changed, 40 insertions(+), 4 deletions(-) diff --git a/apps/web/src/i18n/locales/en.json b/apps/web/src/i18n/locales/en.json index 0d2e4f19..f7600784 100644 --- a/apps/web/src/i18n/locales/en.json +++ b/apps/web/src/i18n/locales/en.json @@ -185,7 +185,9 @@ "importSuccess": "Successfully imported {created} models, skipped {skipped}", "importFailed": "Failed to import models", "importClientType": "Model Client Type", - "importClientTypeHint": "Set default client type for imported models" + "importClientTypeHint": "Set default client type for imported models", + "showingCount": "Showing {count} of {total}", + "showMore": "Show More" }, "provider": { "add": "Add Provider", diff --git a/apps/web/src/i18n/locales/zh.json b/apps/web/src/i18n/locales/zh.json index 3efc59cd..c909a87e 100644 --- a/apps/web/src/i18n/locales/zh.json +++ b/apps/web/src/i18n/locales/zh.json @@ -181,7 +181,9 @@ "importSuccess": "成功导入 {created} 个模型,跳过 {skipped} 个", "importFailed": "导入模型失败", "importClientType": "模型客户端类型", - "importClientTypeHint": "为导入的模型设置默认客户端类型" + "importClientTypeHint": "为导入的模型设置默认客户端类型", + "showingCount": "显示 {count} / {total}", + "showMore": "加载更多" }, "provider": { "add": "添加服务商", diff --git a/apps/web/src/pages/models/components/model-list.vue b/apps/web/src/pages/models/components/model-list.vue index 20122185..21edd4e2 100644 --- a/apps/web/src/pages/models/components/model-list.vue +++ b/apps/web/src/pages/models/components/model-list.vue @@ -32,7 +32,7 @@
+
+ + {{ $t('models.showingCount', { count: displayLimit, total: filteredModels.length }) }} + + +
+