feat(admin): add stop toggle and badge to route editor UI

This commit is contained in:
RhenCloud 2026-08-08 00:54:13 +08:00
parent feada32e83
commit ab98c84896
5 changed files with 24 additions and 0 deletions

View file

@ -37,6 +37,7 @@ const en: Dict = {
"route.chat": "CHAT",
"route.topic": "TOPIC",
"route.fallback": "fallback",
"route.stop": "stop",
"route.moveUp": "Move up",
"route.moveDown": "Move down",
"filter.event": "Event",
@ -73,6 +74,8 @@ const en: Dict = {
"routeEditor.enabled": "Route enabled",
"routeEditor.fallback": "Fallback route",
"routeEditor.fallbackHint": "Only fires when no other route matched; filters still apply",
"routeEditor.stop": "Stop on match",
"routeEditor.stopHint": "When matched, no further routes are evaluated for this event",
"routeEditor.filters": "Filters",
"routeEditor.filtersNote": "(all must match · AND)",
"routeEditor.matchPlaceholder": "match value",
@ -194,6 +197,7 @@ const zh: Dict = {
"route.chat": "群组",
"route.topic": "话题",
"route.fallback": "兜底",
"route.stop": "停止",
"route.moveUp": "上移",
"route.moveDown": "下移",
"filter.event": "事件",
@ -230,6 +234,8 @@ const zh: Dict = {
"routeEditor.enabled": "启用路由",
"routeEditor.fallback": "兜底路由",
"routeEditor.fallbackHint": "仅当没有其它路由匹配该事件时才发送,其过滤器仍会生效",
"routeEditor.stop": "匹配后停止",
"routeEditor.stopHint": "该路由匹配后,不再评估后续路由",
"routeEditor.filters": "过滤器",
"routeEditor.filtersNote": "(全部匹配 · AND",
"routeEditor.matchPlaceholder": "匹配值",