Bump Harbor versions and add direct .ru routing
This commit is contained in:
@@ -48,9 +48,11 @@ export function buildGatewayConfig(subscriptionConfig, selectedTag, { clientDire
|
||||
set_system_proxy: false,
|
||||
},
|
||||
];
|
||||
const directRules = [{ domain_suffix: ['ru'], outbound: 'direct' }];
|
||||
const rules = clientMode
|
||||
? [{ inbound: [MIXED_INBOUND], outbound: outboundTag }]
|
||||
? [...directRules, { inbound: [MIXED_INBOUND], outbound: outboundTag }]
|
||||
: [
|
||||
...directRules,
|
||||
{ inbound: [TPROXY_INBOUND], outbound: outboundTag },
|
||||
{ inbound: [MIXED_INBOUND], outbound: outboundTag },
|
||||
];
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
export const HARBOR_VERSIONS = Object.freeze({
|
||||
macClient: '0.1.0',
|
||||
gatewayClient: '0.1.0',
|
||||
gatewayBackend: '0.1.0',
|
||||
macClient: '0.2.0',
|
||||
gatewayClient: '0.2.0',
|
||||
gatewayBackend: '0.2.0',
|
||||
});
|
||||
|
||||
export function parseVersion(value) {
|
||||
|
||||
@@ -38,15 +38,12 @@ function VersionBadge({ code, component, componentKey, version, singBox, incompa
|
||||
|
||||
function description(key) {
|
||||
if (key === 'major') {
|
||||
return 'Общий уровень совместимости Harbor. При его изменении обновляются Mac и вся Gateway-инфраструктура.';
|
||||
}
|
||||
if (key === 'minor' && componentKey === 'macClient') {
|
||||
return 'Линия Mac-клиента. Gateway может менять minor без обязательного обновления Mac.';
|
||||
return 'Уровень совместимости всей экосистемы. Все совместно работающие компоненты и клиенты должны иметь одинаковый major.';
|
||||
}
|
||||
if (key === 'minor') {
|
||||
return 'Линия Gateway. Gateway client и backend должны совпадать по major.minor.';
|
||||
return 'Уровень конкретного компонента и тесно связанной с ним части системы. Остальные клиенты с тем же major могут обновляться отдельно.';
|
||||
}
|
||||
return `Совместимое исправление только компонента ${component}; hotfix может обновляться независимо.`;
|
||||
return 'Локальное совместимое исправление этой версии. Не требует обновлять связанные компоненты или другие клиенты.';
|
||||
}
|
||||
|
||||
return (
|
||||
|
||||
@@ -199,16 +199,16 @@ p {
|
||||
z-index: 40;
|
||||
display: grid;
|
||||
justify-items: end;
|
||||
gap: 2px;
|
||||
gap: 4px;
|
||||
color: var(--client-muted);
|
||||
font: 600 9px/1 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
|
||||
font: 650 12px/1 'JetBrains Mono', 'SF Mono', ui-monospace, Menlo, monospace;
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.harbor-version {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
gap: 6px;
|
||||
opacity: 0.56;
|
||||
transition: color 240ms ease, opacity 240ms ease;
|
||||
}
|
||||
@@ -227,7 +227,7 @@ p {
|
||||
.harbor-version-code {
|
||||
width: 1.3ch;
|
||||
color: var(--client-accent);
|
||||
font-size: 8px;
|
||||
font-size: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@@ -239,8 +239,8 @@ p {
|
||||
.harbor-version-part {
|
||||
position: relative;
|
||||
min-width: 1ch;
|
||||
padding: 3px 1px;
|
||||
border-radius: 4px;
|
||||
padding: 5px 2px;
|
||||
border-radius: 5px;
|
||||
cursor: help;
|
||||
text-align: center;
|
||||
}
|
||||
@@ -260,16 +260,16 @@ p {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: calc(100% + 7px);
|
||||
width: min(250px, calc(100vw - 28px));
|
||||
width: min(300px, calc(100vw - 28px));
|
||||
display: grid;
|
||||
gap: 5px;
|
||||
padding: 9px 10px;
|
||||
border-radius: 10px;
|
||||
gap: 7px;
|
||||
padding: 12px 13px;
|
||||
border-radius: 12px;
|
||||
background: color-mix(in oklch, var(--client-panel) 84%, transparent);
|
||||
box-shadow: 0 9px 30px oklch(0.08 0.015 145 / 0.16);
|
||||
backdrop-filter: blur(12px) saturate(0.9);
|
||||
color: var(--client-muted);
|
||||
font-size: 9px;
|
||||
font-size: 11px;
|
||||
font-weight: 500;
|
||||
line-height: 1.5;
|
||||
text-align: left;
|
||||
@@ -283,12 +283,12 @@ p {
|
||||
|
||||
.harbor-version-tooltip strong {
|
||||
color: var(--client-text);
|
||||
font-size: 9px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.harbor-version-tooltip small {
|
||||
color: var(--client-accent);
|
||||
font-size: 8px;
|
||||
font-size: 10px;
|
||||
}
|
||||
|
||||
.harbor-version-tooltip .is-warning {
|
||||
|
||||
Reference in New Issue
Block a user