Android / pre-check (push) Failing after 6s
Android / android (push) Skipped
CIFuzz / pre-check (push) Failing after 4s
CIFuzz / fuzzing (address) (push) Skipped
CIFuzz / fuzzing (undefined) (push) Skipped
CodeQL / pre-check (push) Failing after 4s
CodeQL / analyze (python) (push) Skipped
CodeQL / analyze (ruby) (push) Skipped
CodeQL / analyze-cpp (push) Skipped
FreeBSD / pre-check (push) Failing after 4s
FreeBSD / freebsd (14.4) (push) Skipped
FreeBSD / freebsd (15.0) (push) Skipped
Linux / pre-check (push) Failing after 4s
Linux / latest (apidoc) (push) Skipped
Linux / latest (clang, no, all) (push) Skipped
Linux / latest (clang, no, default) (push) Skipped
Linux / latest (clang, no, printf-builtin) (push) Skipped
Linux / latest (clang, no-dbg) (push) Skipped
Linux / latest (clang, no-testable-ke) (push) Skipped
Linux / latest (clang, yes, all) (push) Skipped
Linux / latest (clang, yes, default) (push) Skipped
Linux / latest (clang, yes, fuzzing) (push) Skipped
Linux / latest (coverage) (push) Skipped
Linux / latest (dist) (push) Skipped
Linux / latest (gcc, no, all) (push) Skipped
Linux / latest (gcc, no, default) (push) Skipped
Linux / latest (gcc, no, printf-builtin) (push) Skipped
Linux / latest (gcc, yes, all) (push) Skipped
Linux / latest (gcc, yes, default) (push) Skipped
Linux / latest (nm) (push) Skipped
Linux / latest (no-dbg) (push) Skipped
Linux / latest (no-testable-ke) (push) Skipped
Linux / latest (yes, ld) (push) Skipped
Linux / crypto (ubuntu-22.04, openssl-sys) (push) Skipped
Linux / crypto (ubuntu-latest, botan) (push) Skipped
Linux / crypto (ubuntu-latest, openssl-3) (push) Skipped
Linux / crypto (ubuntu-latest, openssl-4) (push) Skipped
Linux / crypto (ubuntu-latest, openssl-awslc) (push) Skipped
Linux / crypto (ubuntu-latest, openssl-sys) (push) Skipped
Linux / crypto (ubuntu-latest, wolfssl) (push) Skipped
Linux / older (clang, ubuntu-22.04, all) (push) Skipped
Linux / older (gcc, ubuntu-22.04, all) (push) Skipped
Linux / older (gcc, ubuntu-22.04, nm) (push) Skipped
Linux / alpine (push) Skipped
macOS / pre-check (push) Failing after 4s
macOS / macos (macos-14) (push) Skipped
macOS / macos (macos-latest) (push) Skipped
SonarCloud / pre-check (push) Failing after 4s
SonarCloud / sonarcloud (push) Skipped
TKM / pre-check (push) Failing after 4s
TKM / tkm (push) Skipped
Windows / pre-check (push) Failing after 4s
Windows / cross-compile (win32) (push) Skipped
Windows / cross-compile (win64) (push) Skipped
Windows / native (i686, mingw32, win32) (push) Skipped
Windows / native (x86_64, mingw64, win64) (push) Skipped
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
140 lines
12 KiB
HTML
140 lines
12 KiB
HTML
<!doctype html>
|
|
<html lang="ru">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Тёмная · Сервер</title>
|
|
<script src="./support.js"></script>
|
|
</head>
|
|
<body>
|
|
<x-dc>
|
|
<helmet>
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap">
|
|
<style>
|
|
body{margin:0}
|
|
a{color:#B69DFF}a:hover{color:#D0C2FF}
|
|
</style>
|
|
</helmet>
|
|
<div style="position: relative; width: 390px; height: 1100px; box-sizing: border-box; background: #141318; font-family: 'Manrope', system-ui, sans-serif; color: #E5E1E9; overflow: hidden; font-variant-numeric: tabular-nums">
|
|
<header style="display: flex; align-items: center; gap: 8px; padding: 16px 12px 8px">
|
|
<a href="D_Servers.dc.html" aria-label="Назад" style="width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; color: #E5E1E9">
|
|
<svg width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15 6l-6 6 6 6"/></svg>
|
|
</a>
|
|
<span style="flex: 1"></span>
|
|
<a href="D_Share.dc.html" style="height: 40px; padding: 0 14px; border-radius: 20px; background: #3B2C88; color: #D0C2FF; text-decoration: none; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="4" y="4" width="6" height="6" rx="1"/><rect x="14" y="4" width="6" height="6" rx="1"/><rect x="4" y="14" width="6" height="6" rx="1"/><path d="M14 14h2v2M20 14v6h-6"/></svg>Поделиться
|
|
</a>
|
|
</header>
|
|
|
|
<div style="padding: 4px 16px 0; display: flex; flex-direction: column; gap: 12px">
|
|
<div style="display: flex; align-items: center; gap: 14px; padding: 0 4px 6px">
|
|
<span style="width: 56px; height: 56px; border-radius: 28px; background: #6D4AFF; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800">NL</span>
|
|
<span style="display: flex; flex-direction: column; gap: 3px">
|
|
<h1 style="margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -0.02em">Амстердам</h1>
|
|
<span style="display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #7CE3B0"><span style="width: 8px; height: 8px; border-radius: 4px; background: #148A45"></span>Подключён · 38 мс</span>
|
|
</span>
|
|
</div>
|
|
|
|
<h2 style="margin: 6px 6px 0; font-size: 13px; font-weight: 800; color: #B69DFF; letter-spacing: 0.04em">ИСТОЧНИК ПРОФИЛЯ</h2>
|
|
<section style="border-radius: 24px; background: #1F1D24; border: 1px solid #2E2B35; overflow: hidden">
|
|
<div style="display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-bottom: 1px solid #2B2930">
|
|
<span style="flex: none; width: 36px; height: 36px; border-radius: 12px; background: #2B2930; color: #D0C2FF; display: flex; align-items: center; justify-content: center">
|
|
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="{{src.icon}}"/></svg>
|
|
</span>
|
|
<span style="flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0">
|
|
<span style="font-size: 13px; font-weight: 700; color: #A9A3BF">{{src.label}}</span>
|
|
<span style="font-size: 14px; font-weight: 700; font-family: {{src.font}}; white-space: nowrap; overflow: hidden; text-overflow: ellipsis">{{src.value}}</span>
|
|
</span>
|
|
<sc-if value="{{src.editable}}" hint-placeholder-val="{{ true }}">
|
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#938F99" stroke-width="2.2" stroke-linecap="round" aria-hidden="true"><path d="M9 6l6 6-6 6"/></svg>
|
|
</sc-if>
|
|
</div>
|
|
<sc-if value="{{src.isLink}}" hint-placeholder-val="{{ true }}">
|
|
<div style="display: flex; align-items: center; gap: 10px; padding: 12px 14px 12px 16px; border-bottom: 1px solid #2B2930">
|
|
<span style="flex: 1; display: flex; flex-direction: column; gap: 2px">
|
|
<span style="font-size: 15px; font-weight: 700">Обновлять автоматически</span>
|
|
<span style="font-size: 12px; line-height: 1.35; color: #A9A3BF">Раз в сутки · проверено 2 ч назад · изменений нет</span>
|
|
</span>
|
|
<button aria-pressed="true" aria-label="Обновлять автоматически" style="flex: none; width: 52px; height: 32px; border: 0; border-radius: 16px; background: #6D4AFF; padding: 4px; display: flex; justify-content: flex-end"><span style="width: 24px; height: 24px; border-radius: 12px; background: #1F1D24"></span></button>
|
|
</div>
|
|
</sc-if>
|
|
<sc-if value="{{src.hasNote}}" hint-placeholder-val="{{ false }}">
|
|
<div style="padding: 10px 16px; font-size: 12px; line-height: 1.4; color: #A9A3BF; border-bottom: 1px solid #2B2930">{{src.note}}</div>
|
|
</sc-if>
|
|
<div style="display: flex; gap: 8px; padding: 12px 14px">
|
|
<sc-if value="{{src.hasPrimary}}" hint-placeholder-val="{{ true }}">
|
|
<a href="D_ProfileUpdate.dc.html" style="flex: 1; height: 44px; border-radius: 14px; background: #36334A; color: #E0DAF5; text-decoration: none; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800">{{src.primary}}</a>
|
|
</sc-if>
|
|
<sc-if value="{{src.hasSecondary}}" hint-placeholder-val="{{ false }}">
|
|
<a href="D_Import.dc.html" style="flex: 1; height: 44px; border-radius: 14px; border: 1px solid #48454E; color: #E5E1E9; text-decoration: none; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; box-sizing: border-box">{{src.secondary}}</a>
|
|
</sc-if>
|
|
</div>
|
|
</section>
|
|
|
|
<sc-for list="{{groups}}" as="g" hint-placeholder-count="3">
|
|
<section style="display: flex; flex-direction: column; gap: 6px">
|
|
<h2 style="margin: 6px 6px 0; font-size: 13px; font-weight: 800; color: #B69DFF; letter-spacing: 0.04em">{{g.title}}</h2>
|
|
<div style="border-radius: 24px; background: #1F1D24; border: 1px solid #2E2B35; overflow: hidden">
|
|
<sc-for list="{{g.rows}}" as="r" hint-placeholder-count="3">
|
|
<div style="display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 16px; min-height: 58px; box-sizing: border-box; border-bottom: {{r.divider}}">
|
|
<span style="flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0">
|
|
<span style="font-size: 15px; font-weight: 700">{{r.title}}</span>
|
|
<sc-if value="{{r.hasSub}}" hint-placeholder-val="{{ false }}"><span style="font-size: 12px; line-height: 1.35; color: #A9A3BF">{{r.sub}}</span></sc-if>
|
|
</span>
|
|
<sc-if value="{{r.isToggle}}" hint-placeholder-val="{{ false }}">
|
|
<button aria-pressed="{{r.on}}" aria-label="{{r.title}}" style="flex: none; width: 52px; height: 32px; border: 0; border-radius: 16px; background: {{r.track}}; padding: 4px; display: flex; justify-content: {{r.align}}"><span style="width: 24px; height: 24px; border-radius: 12px; background: #1F1D24"></span></button>
|
|
</sc-if>
|
|
<sc-if value="{{r.isValue}}" hint-placeholder-val="{{ true }}">
|
|
<span style="flex: none; font-size: 14px; font-weight: 600; color: #A9A3BF">{{r.value}}</span>
|
|
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="#938F99" stroke-width="2.2" stroke-linecap="round" aria-hidden="true"><path d="M9 6l6 6-6 6"/></svg>
|
|
</sc-if>
|
|
</div>
|
|
</sc-for>
|
|
</div>
|
|
</section>
|
|
</sc-for>
|
|
|
|
<div style="display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding-top: 4px">
|
|
<a href="D_Share.dc.html" style="height: 52px; border-radius: 18px; border: 1px solid #48454E; background: transparent; color: #E5E1E9; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box">Экспорт .sswan</a>
|
|
<a href="D_ServerDelete.dc.html" style="height: 52px; border-radius: 18px; border: 1px solid #6B2A2A; background: transparent; color: #FFB4AB; font-size: 14px; font-weight: 700; display: flex; align-items: center; justify-content: center; text-decoration: none; box-sizing: border-box">Удалить</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</x-dc>
|
|
<script type="text/x-dc" data-dc-script data-props='{"source":{"editor":"enum","options":["link","file","qr","manual"],"default":"link"},"$preview":{"width":390,"height":1100}}'>
|
|
class Component extends DCLogic {
|
|
renderVals() {
|
|
var mono = "ui-monospace, 'Cascadia Mono', Menlo, monospace";
|
|
var S = {
|
|
link: { label: 'Ссылка', value: 'vpn.[ваш-домен]/nl1.sswan', icon: 'M10 14a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1 1M14 10a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1-1', font: mono, editable: true, isLink: true, hasNote: false, note: '', hasPrimary: true, primary: 'Проверить сейчас', hasSecondary: false, secondary: '' },
|
|
file: { label: 'Файл', value: 'nl1.sswan · добавлен 12 окт.', icon: 'M6 3h8l4 4v14H6zM14 3v4h4', font: "'Manrope', sans-serif", editable: false, isLink: false, hasNote: true, note: 'Обновлять автоматически нечего: у файла нет ссылки. Новый файл от администратора — «Заменить из файла», настройки ниже сохранятся.', hasPrimary: true, primary: 'Заменить из файла…', hasSecondary: true, secondary: 'Указать ссылку' },
|
|
qr: { label: 'QR-код', value: 'отсканирован 12 окт.', icon: 'M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h2v2M20 14v6h-6', font: "'Manrope', sans-serif", editable: false, isLink: false, hasNote: true, note: 'Обновить можно, отсканировав новый QR — настройки ниже сохранятся.', hasPrimary: true, primary: 'Заменить по QR…', hasSecondary: false, secondary: '' },
|
|
manual: { label: 'Вручную', value: 'создан 12 окт.', icon: 'M4 20h4l10-10-4-4L4 16zM13 7l4 4', font: "'Manrope', sans-serif", editable: false, isLink: false, hasNote: true, note: 'Адрес, вход и сертификат правятся прямо в группе «Сервер» ниже.', hasPrimary: false, primary: '', hasSecondary: false, secondary: '' }
|
|
};
|
|
var src = S[this.props.source || 'link'] || S.link;
|
|
var v = function (title, value, sub) { return { title: title, value: value, sub: sub || '', hasSub: !!sub, isValue: true, isToggle: false }; };
|
|
var t = function (title, on, sub) {
|
|
return { title: title, sub: sub || '', hasSub: !!sub, isValue: false, isToggle: true,
|
|
on: on ? 'true' : 'false', track: on ? '#6D4AFF' : '#48454E', align: on ? 'flex-end' : 'flex-start' };
|
|
};
|
|
var grp = function (title, rows) {
|
|
rows.forEach(function (r, i) { r.divider = i < rows.length - 1 ? '1px solid #2B2930' : '0'; });
|
|
return { title: title, rows: rows };
|
|
};
|
|
return {
|
|
src: src,
|
|
groups: [
|
|
grp('СЕРВЕР', [v('Адрес', 'nl1.[ваш-домен]'), v('Вход', 'Сертификат')]),
|
|
grp('УСТОЙЧИВОСТЬ', [
|
|
v('Запасные порты', '443, 53', 'По очереди, если основной не отвечает'),
|
|
v('Резервный сервер', 'Хельсинки', 'Если не подключился за 15 с'),
|
|
t('Мост при белых списках', true, 'Переключаться на «Москва (мост)»')
|
|
]),
|
|
grp('СЕТЬ', [v('DNS', 'Как в настройках'), v('MTU', 'Авто'), t('Фрагментация IKE', true)])
|
|
]
|
|
};
|
|
}
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|