feat(admin): add route reordering with up/down buttons

This commit is contained in:
RhenCloud 2026-08-03 08:40:59 +08:00
parent ac8b4a77b8
commit 7ee1e5899f
No known key found for this signature in database
GPG key ID: A574A617378C4E0B
4 changed files with 54 additions and 3 deletions

View file

@ -37,6 +37,8 @@ const en: Dict = {
"route.chat": "CHAT",
"route.topic": "TOPIC",
"route.fallback": "fallback",
"route.moveUp": "Move up",
"route.moveDown": "Move down",
"filter.event": "Event",
"filter.repo": "Repo",
"filter.actor": "Actor",
@ -70,7 +72,7 @@ const en: Dict = {
"routeEditor.langHint": "en or zh; custom via KV i18n:<lang>",
"routeEditor.enabled": "Route enabled",
"routeEditor.fallback": "Fallback route",
"routeEditor.fallbackHint": "Only fires when no other route matched; its filters are ignored",
"routeEditor.fallbackHint": "Only fires when no other route matched; filters still apply",
"routeEditor.filters": "Filters",
"routeEditor.filtersNote": "(all must match · AND)",
"routeEditor.matchPlaceholder": "match value",
@ -192,6 +194,8 @@ const zh: Dict = {
"route.chat": "群组",
"route.topic": "话题",
"route.fallback": "兜底",
"route.moveUp": "上移",
"route.moveDown": "下移",
"filter.event": "事件",
"filter.repo": "仓库",
"filter.actor": "操作者",
@ -225,7 +229,7 @@ const zh: Dict = {
"routeEditor.langHint": "en 或 zh可通过 KV i18n:<lang> 自定义",
"routeEditor.enabled": "启用路由",
"routeEditor.fallback": "兜底路由",
"routeEditor.fallbackHint": "仅当没有其它路由匹配该事件时才发送,其过滤器会被忽略",
"routeEditor.fallbackHint": "仅当没有其它路由匹配该事件时才发送,其过滤器仍会生效",
"routeEditor.filters": "过滤器",
"routeEditor.filtersNote": "(全部匹配 · AND",
"routeEditor.matchPlaceholder": "匹配值",