@jeffusion/bungee-core 6.5.1 → 6.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -466,8 +466,8 @@
|
|
|
466
466
|
"ui.routesFailed": "Unable to load routes. Try again.",
|
|
467
467
|
"ui.routeMissing": "The selected route no longer exists. Reload the list.",
|
|
468
468
|
"ui.routeDescription": "Add “{label}” to a route draft. No configuration is published now.",
|
|
469
|
-
"ui.routeHelp": "
|
|
470
|
-
"ui.routeUsesService": "This route
|
|
469
|
+
"ui.routeHelp": "This account is added to the unsaved route as an endpoint, preserving existing endpoints and service references. An existing binding is reused. Review and explicitly save the route to publish.",
|
|
470
|
+
"ui.routeUsesService": "This route references service “{name}”. Adding this account preserves those references and adds an endpoint to the route draft.",
|
|
471
471
|
"ui.editReferencedService": "Edit referenced service",
|
|
472
472
|
"ui.reloadRoutes": "Reload routes",
|
|
473
473
|
"ui.continueRoute": "Continue to route editor",
|
|
@@ -476,7 +476,7 @@
|
|
|
476
476
|
"ui.routeDraftError": "The account could not be added. Your current route draft is unchanged. Return to Accounts and try again.",
|
|
477
477
|
"ui.routeHandoffInvalid": "The account handoff link is invalid. Return to Accounts and choose the route again.",
|
|
478
478
|
"ui.routeHandoffChanged": "This route changed while adding the account. Your draft is unchanged; return to Accounts and choose it again.",
|
|
479
|
-
"ui.routeHandoffUnsupported": "This route
|
|
479
|
+
"ui.routeHandoffUnsupported": "This route uses a direct response or redirect. Change its response settings before adding an endpoint.",
|
|
480
480
|
"ui.routeHandoffSourceUnavailable": "The account source is unavailable. Check that its plugin is enabled, then try again.",
|
|
481
481
|
"ui.routeHandoffAccountUnavailable": "This account is no longer available. Refresh Accounts and choose an available account.",
|
|
482
482
|
"ui.routeSaveError": "The route could not be saved. Your draft remains here; try again.",
|
|
@@ -678,8 +678,8 @@
|
|
|
678
678
|
"ui.routesFailed": "路由加载失败,请重试。",
|
|
679
679
|
"ui.routeMissing": "所选路由已不存在,请刷新列表。",
|
|
680
680
|
"ui.routeDescription": "将「{label}」加入路由草稿,当前不会发布配置。",
|
|
681
|
-
"ui.routeHelp": "
|
|
682
|
-
"ui.routeUsesService": "
|
|
681
|
+
"ui.routeHelp": "账号会作为端点加入路由草稿,保留已有端点和服务;已绑定同一账号时定位已有端点。检查后需手动保存路由才会发布。",
|
|
682
|
+
"ui.routeUsesService": "这条路由已配置服务「{name}」。添加账号会保留已有目标,并将账号端点加入路由草稿。",
|
|
683
683
|
"ui.editReferencedService": "编辑引用的服务",
|
|
684
684
|
"ui.reloadRoutes": "重新加载路由",
|
|
685
685
|
"ui.continueRoute": "继续到路由编辑器",
|
|
@@ -688,7 +688,7 @@
|
|
|
688
688
|
"ui.routeDraftError": "无法加入账号,当前路由草稿未改变。请返回账号页面重试。",
|
|
689
689
|
"ui.routeHandoffInvalid": "账号交接链接无效,请返回账号页面重新选择路由。",
|
|
690
690
|
"ui.routeHandoffChanged": "添加账号期间路由已发生变化,草稿未修改;请返回账号页面重新选择。",
|
|
691
|
-
"ui.routeHandoffUnsupported": "
|
|
691
|
+
"ui.routeHandoffUnsupported": "此路由启用了直接响应或重定向,请先调整响应设置再添加端点。",
|
|
692
692
|
"ui.routeHandoffSourceUnavailable": "账号来源不可用,请确认插件已启用后重试。",
|
|
693
693
|
"ui.routeHandoffAccountUnavailable": "此账号目前不可用,请刷新账号页面后选择可用账号。",
|
|
694
694
|
"ui.routeSaveError": "路由保存失败,当前草稿仍保留,请重试。",
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
routeAccount = account; routeChoice = 'new'; routes = []; routeOpen = true; void loadRoutes();
|
|
408
408
|
}
|
|
409
409
|
async function continueToRoute() {
|
|
410
|
-
if (!routeAccount?.available || routesLoading || routeError
|
|
410
|
+
if (!routeAccount?.available || routesLoading || routeError) return;
|
|
411
411
|
if (routeChoice !== 'new' && !selectedRoute?._uid) { routeError = 'ui.routeMissing'; return; }
|
|
412
412
|
const handoff = { sourcePlugin: pluginName, sourceId: accountSourceId(routeAccount), accountRef: routeAccount.id,
|
|
413
413
|
mode: selectedRoute ? 'existing' as const : 'new' as const,
|
|
@@ -605,7 +605,7 @@
|
|
|
605
605
|
</div>
|
|
606
606
|
{#if routesLoading}<p role="status" class="text-sm text-zinc-400">{t('ui.routesLoading')}</p>{/if}
|
|
607
607
|
{#if referencedRouteServices.length}
|
|
608
|
-
<div
|
|
608
|
+
<div class="border-l-2 border-carbon-600 bg-carbon-900 px-3 py-2 text-sm text-zinc-400 space-y-2">
|
|
609
609
|
<p>{t('ui.routeUsesService', { name: referencedRouteServices.map(reference => reference.service?.name ?? reference.id).join(', ') })}</p>
|
|
610
610
|
{#each referencedRouteServices as reference (reference.id)}
|
|
611
611
|
<Button variant="outline" size="sm" disabled={!reference.service} onclick={() => editReferencedService(reference.id)}>{@render actionIcon(Server)}{t('ui.editReferencedService')} · {reference.service?.name ?? reference.id}</Button>
|
|
@@ -615,7 +615,7 @@
|
|
|
615
615
|
{#if routeError}<p role="alert" class="text-sm text-red-300">{t(routeError)}</p><Button variant="outline" disabled={routesLoading} aria-busy={routesLoading} onclick={loadRoutes}>{@render actionIcon(RefreshCw, routesLoading)}{t('ui.reloadRoutes')}</Button>{/if}
|
|
616
616
|
{/snippet}
|
|
617
617
|
{#snippet footer()}
|
|
618
|
-
<Button disabled={
|
|
618
|
+
<Button disabled={!routeAccount?.available || routesLoading || !!routeError} aria-busy={routesLoading} onclick={continueToRoute}>{@render actionIcon(ArrowRight, routesLoading)}{t('ui.continueRoute')}</Button>
|
|
619
619
|
{/snippet}
|
|
620
620
|
</IndustrialDialog>
|
|
621
621
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jeffusion/bungee-core",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.6.0",
|
|
4
4
|
"description": "Bungee reverse proxy core engine",
|
|
5
5
|
"main": "./dist/main.js",
|
|
6
6
|
"types": "./dist/main.d.ts",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@iconify-json/lucide": "^1.2.145",
|
|
17
17
|
"@iconify-json/tabler": "^1.2.42",
|
|
18
18
|
"@iconify/utils": "^3.1.7",
|
|
19
|
-
"@jeffusion/bungee-types": "^6.
|
|
19
|
+
"@jeffusion/bungee-types": "^6.6.0",
|
|
20
20
|
"@types/lodash-es": "^4.17.12",
|
|
21
21
|
"@types/ws": "^8.18.1",
|
|
22
22
|
"acorn": "^8.15.0",
|