feat(redis): add custom key groups

This commit is contained in:
Guoyu Su authored and GitHub committed 2026-09-09 14:44:45 +08:00
1 parent a535cf8f51
commit 1cbb5abf3b
53 files changed
+1951 -13

No files matched your search

+2
View File
@@ -1,3 +1,4 @@
import { redisGroupingEn as redisGrouping } from "./redisGrouping";
import docs from "./docs/en";
import { consulUiMessages } from "./consulUi";
import { sqlServerTraceMessages as sqlServerTrace } from "./sqlServerTraceMessages";
@@ -79,6 +80,7 @@ const consul = {
};
export default {
redisGrouping,
customType: {
kinds: {
base: "Base",
@@ -0,0 +1,84 @@
export const redisGroupingEn = {
preparingLegacy: "Preparing the previous view; custom groups remain available…",
fuzzyTreeUnavailable: "This fuzzy search exceeds the existing tree resource limit. Choose List to browse the loaded matches, or narrow the search to use Tree.",
useList: "Use List",
settings: "Grouping rules",
toggle: "Custom groups",
list: "List",
tree: "Tree",
help: "Connection-wide rules, first match wins. One case-sensitive Redis glob per line (*, ?, [a-z], backslash escape). Includes are OR; exclusions veto. Empty includes match all. Counts cover loaded keys only. Groups are not deletion boundaries.",
enabled: "Enable rule",
name: "Group name",
up: "Move up",
down: "Move down",
remove: "Remove",
includes: "Include patterns",
excludes: "Exclude patterns",
add: "Add rule",
example: "Add Redisson example",
invalid: "Enter unique rule IDs, a name and at least one pattern per rule (maximum 64 rules, 64 patterns per list, 1024 bytes per pattern).",
cancel: "Cancel",
save: "Save",
unmatched: "Unmatched",
preparing: "Updating loaded groups…",
loadedOnly: "Groups show loaded matches only; expand does not scan Redis.",
count: "({count} loaded)",
emptyKey: "(empty key)",
selectLoaded: "Select loaded matches",
};
export const redisGroupingZhCN = {
preparingLegacy: "正在准备原有视图,期间仍可浏览自定义分组…",
fuzzyTreeUnavailable: "当前模糊搜索超过已有树视图资源限制。请选择列表浏览已加载匹配项,或缩小搜索范围后使用前缀树。",
useList: "使用列表",
settings: "分组规则",
toggle: "自定义分组",
list: "列表",
tree: "前缀树",
help: "规则按连接保存,按顺序首次匹配归组。每行一个区分大小写的 Redis 通配模式(*、?、[a-z]、反斜杠转义)。包含条件任一命中即可,排除条件优先;包含为空表示全部。计数仅涵盖已加载 Key,分组不是删除边界。",
enabled: "启用规则",
name: "分组名称",
up: "上移",
down: "下移",
remove: "移除",
includes: "包含模式",
excludes: "排除模式",
add: "添加规则",
example: "添加 Redisson 示例",
invalid: "请填写唯一规则 ID、名称及至少一个模式(最多 64 个规则,每组包含/排除各 64 个模式,每个模式 1024 字节)。",
cancel: "取消",
save: "保存",
unmatched: "未匹配",
preparing: "正在更新已加载分组…",
loadedOnly: "分组仅展示已加载匹配结果,展开不会扫描 Redis。",
count: "(已加载 {count})",
emptyKey: "(空 Key)",
selectLoaded: "选择已加载匹配项",
};
export const redisGroupingZhTW = {
preparingLegacy: "正在準備原有檢視,期間仍可瀏覽自訂分組…",
fuzzyTreeUnavailable: "目前模糊搜尋超過既有樹狀檢視資源限制。請選擇列表瀏覽已載入匹配項,或縮小搜尋範圍後使用前綴樹。",
useList: "使用列表",
settings: "分組規則",
toggle: "自訂分組",
list: "列表",
tree: "前綴樹",
help: "規則按連線儲存,按順序首次匹配歸組。每行一個區分大小寫的 Redis 萬用模式(*、?、[a-z]、反斜線跳脫)。包含條件任一命中即可,排除條件優先;包含為空表示全部。計數僅涵蓋已載入 Key,分組不是刪除邊界。",
enabled: "啟用規則",
name: "分組名稱",
up: "上移",
down: "下移",
remove: "移除",
includes: "包含模式",
excludes: "排除模式",
add: "新增規則",
example: "新增 Redisson 範例",
invalid: "請填寫唯一規則 ID、名稱及至少一個模式(最多 64 個規則,每組包含/排除各 64 個模式,每個模式 1024 位元組)。",
cancel: "取消",
save: "儲存",
unmatched: "未匹配",
preparing: "正在更新已載入分組…",
loadedOnly: "分組僅展示已載入匹配結果,展開不會掃描 Redis。",
count: "(已載入 {count})",
emptyKey: "(空 Key)",
selectLoaded: "選擇已載入匹配項",
};
+2
View File
@@ -1,9 +1,11 @@
import { redisGroupingZhCN as redisGrouping } from "./redisGrouping";
import { withEnglishFallback } from "./fallback";
import docs from "./docs/zh-CN";
import { consul } from "./consulZhCN";
import { meilisearchManagementZhCN } from "./meilisearchManagement";
export default withEnglishFallback({
redisGrouping,
customType: {
kinds: {
base: "基础类型",
+2
View File
@@ -1,3 +1,4 @@
import { redisGroupingZhTW as redisGrouping } from "./redisGrouping";
import { withEnglishFallback } from "./fallback";
import { meilisearchManagementZhTW } from "./meilisearchManagement";
import docs from "./docs/zh-TW";
@@ -81,6 +82,7 @@ const consul = {
};
export default withEnglishFallback({
redisGrouping,
customType: {
kinds: {
base: "基礎型別",