No files matched your search
@@ -1,3 +1,5 @@
|
||||
### Result
|
||||
{"checks":[{"path":"/","width":375,"scroll":375,"images":[]},{"path":"/tools/","width":375,"scroll":375,"images":[]},{"path":"/articles/%D0%B8%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5-jquery-%D0%B2-webpack/","width":375,"scroll":375,"images":[]},{"path":"/articles/bitrix-api-add-foto-editor/","width":375,"scroll":375,"images":[{"src":"/assets/archive/b20e82e08bfed8568a90.jpg","ok":true}]},{"path":"/articles/%D0%BE-tilix-%D0%B8-d-%D0%B8%D0%BD%D1%82%D0%B5%D1%80%D0%B2%D1%8C%D1%8E-%D1%81-%D0%B3%D0%B5%D1%80%D0%B0%D0%BB%D1%8C%D0%B4%D0%BE%D0%BC-%D0%BD%D0%B0%D0%BD%D0%BD%D0%BE%D0%BC/","width":375,"scroll":375,"images":[]},{"path":"/articles/bitrix-api-%D1%84%D1%83%D0%BD%D0%BA%D1%86%D0%B8%D1%8F-%D0%B4%D0%BB%D1%8F-%D0%B3%D0%B5%D0%BD%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D0%B8-%D0%BA%D0%BE%D0%B4%D0%B0-%D1%8D%D0%BB%D0%B5%D0%BC%D0%B5%D0%BD%D1%82/","width":375,"scroll":375,"images":[]},{"path":"/articles/bitrix-api-%D1%81%D0%BE%D0%B7%D0%B4%D0%B0%D0%BD%D0%B8%D0%B5-%D0%B4%D0%BE%D0%B1%D0%B0%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5-%D1%82%D0%BE%D1%80%D0%B3%D0%BE%D0%B2%D0%BE%D0%B3%D0%BE-%D0%BF%D1%80%D0%B5/","width":375,"scroll":375,"images":[]},{"path":"/articles/firefox-%D1%83%D0%B2%D0%B5%D0%BB%D0%B8%D1%87%D0%B5%D0%BD%D0%B8%D0%B5-%D0%BE%D0%B6%D0%B8%D0%B4%D0%B0%D0%BD%D0%B8%D1%8F-%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA%D0%B8-timeout-%D1%81%D1%82%D1%80/","width":375,"scroll":375,"images":[]},{"path":"/articles/%D0%BE%D1%88%D0%B8%D0%B1%D0%BA%D0%B0-php-ssl-certificate-error-unable-to-get-local-issuer-certificate/","width":375,"scroll":375,"images":[]},{"path":"/articles/dconf-2017-%D0%BF%D0%BE%D0%B4-%D0%BA%D0%B0%D0%BF%D0%BE%D1%82%D0%BE%D0%BC-%D0%BC%D1%83%D1%81%D0%BE%D1%80%D1%89%D0%B8%D0%BA%D0%B0-%D0%B4%D0%B8-%D0%B4%D0%BC%D0%B8%D1%82%D1%80%D0%B8%D0%B9-%D0%BE%D0%BB/","width":375,"scroll":375,"images":[{"src":"/assets/archive/0637226fedce61a6fe95.png","ok":true}]},{"path":"/articles/%D0%BF%D0%B8%D1%88%D0%B5%D0%BC-%D0%B0%D0%BD%D0%B0%D0%BB%D0%BE%D0%B3-%D1%84%D1%83%D0%BD%D0%BA%D1%86%D0%B8%D0%B8-php-preg_match_all-%D0%BD%D0%B0-%D1%8F%D0%B7%D1%8B%D0%BA%D0%B5-%D0%BF%D1%80%D0%BE%D0%B3/","width":375,"scroll":375,"images":[{"src":"/assets/archive/65f5373282d8c4572d68.jpg","ok":true}]},{"path":"/articles/%D0%BD%D0%BE%D0%B2%D1%8B%D0%B9-%D0%B4%D0%B2%D0%B8%D0%B6%D0%BE%D0%BA-ctfe/","width":375,"scroll":375,"images":[{"src":"/assets/archive/a29c4093e0ead391ee2a.png","ok":true}]},{"path":"/articles/%D0%BE%D1%81%D0%BE%D0%B1%D0%B5%D0%BD%D0%BD%D0%BE%D1%81%D1%82%D0%B8-vibe-d/","width":375,"scroll":375,"images":[{"src":"/assets/archive/1ec2de2f1c23d55baf9c.png","ok":true}]},{"path":"/articles/%D0%B2%D0%B8%D1%80%D1%83%D1%81-%D1%81%D0%B0%D0%BC%D0%BE%D0%BF%D1%80%D0%BE%D0%B8%D0%B7%D0%B2%D0%BE%D0%BB%D1%8C%D0%BD%D1%8B%D0%B9-%D0%B7%D0%B0%D0%BF%D1%83%D1%81%D0%BA-%D0%B1%D1%80%D0%B0%D1%83%D0%B7/","width":375,"scroll":375,"images":[]},{"path":"/articles/%D0%BA%D0%BE%D0%BC%D0%BF%D0%B8%D0%BB%D1%8F%D1%86%D0%B8%D1%8F-64-x-%D1%80%D0%B0%D0%B7%D1%80%D1%8F%D0%B4%D0%BD%D1%8B%D1%85-%D0%BF%D1%80%D0%BE%D0%B3%D1%80%D0%B0%D0%BC%D0%BC-%D0%BD%D0%B0-dmd-%D0%BF%D0%BE/","width":375,"scroll":375,"images":[]},{"path":"/articles/%D0%BF%D1%80%D0%B8%D0%B2%D0%B5%D1%82-%D0%BC%D0%B8%D1%80/","width":375,"scroll":375,"images":[]},{"path":"/","width":768,"scroll":768,"images":[]},{"path":"/tools/","width":768,"scroll":768,"images":[]},{"path":"/articles/%D0%B8%D1%81%D0%BF%D0%BE%D0%BB%D1%8C%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5-jquery-%D0%B2-webpack/","width":768,"scroll":768,"images":[]},{"path":"/articles/bitrix-api-add-foto-editor/","width":768,"scroll":768,"images":[{"src":"/assets/archive/b20e82e08bfed8568a90.jpg","ok":true}]},{"path":"/articles/%D0%BE-tilix-%D0%B8-d-%D0%B8%D0%BD%D1%82%D0%B5%D1%80%D0%B2%D1%8C%D1%8E-%D1%81-%D0%B3%D0%B5%D1%80%D0%B0%D0%BB%D1%8C%D0%B4%D0%BE%D0%BC-%D0%BD%D0%B0%D0%BD%D0%BD%D0%BE%D0%BC/","width":768,"scroll":768,"images":[]},{"path":"/articles/bitrix-api-%D1%84%D1%83%D0%BD%D0%BA%D1%86%D0%B8%D1%8F-%D0%B4%D0%BB%D1%8F-%D0%B3%D0%B5%D0%BD%D0%B5%D1%80%D0%B0%D1%86%D0%B8%D0%B8-%D0%BA%D0%BE%D0%B4%D0%B0-%D1%8D%D0%BB%D0%B5%D0%BC%D0%B5%D0%BD%D1%82/","width":768,"scroll":768,"images":[]},{"path":"/articles/bitrix-api-%D1%81%D0%BE%D0%B7%D0%B4%D0%B0%D0%BD%D0%B8%D0%B5-%D0%B4%D0%BE%D0%B1%D0%B0%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D0%B5-%D1%82%D0%BE%D1%80%D0%B3%D0%BE%D0%B2%D0%BE%D0%B3%D0%BE-%D0%BF%D1%80%D0%B5/","width":768,"scroll":768,"images":[]},{"path":"/articles/firefox-%D1%83%D0%B2%D0%B5%D0%BB%D0%B8%D1%87%D0%B5%D0%BD%D0%B8%D0%B5-%D0%BE%D0%B6%D0%B8%D0%B4%D0%B0%D0%BD%D0%B8%D1%8F-%D0%B7%D0%B0%D0%B3%D1%80%D1%83%D0%B7%D0%BA%D0%B8-timeout-%D1%81%D1%82%D1%80/","width":768,"scroll":768,"images":[]},{"path":"/articles/%D0%BE%D1%88%D0%B8%D0%B1%D0%BA%D0%B0-php-ssl-certificate-error-unable-to-get-local-issuer-certificate/","width":768,"scroll":768,"images":[]},{"path":"/articles/dconf-2017-%D0%BF%D0%BE%D0%B4-%D0%BA%D0%B0%D0%BF%D0%BE%D1%82%D0%BE%D0%BC-%D0%BC%D1%83%D1%81%D0%BE%D1%80%D1%89%D0%B8%D0%BA%D0%B0-%D0%B4%D0%B8-%D0%B4%D0%BC%D0%B8%D1%82%D1%80%D0%B8%D0%B9-%D0%BE%D0Line truncated
|
||||
### Ran Playwright code
|
||||
```js
|
||||
await (async page => {
|
||||
@@ -23,12 +25,7 @@ await (async page => {
|
||||
await page.screenshot({path:'/tmp/progcode-mobile-home.png'});
|
||||
await page.setViewportSize({width:1440,height:1000});
|
||||
await page.screenshot({path:'/tmp/progcode-desktop-home.png'});
|
||||
console.log(JSON.stringify({checks},null,2));
|
||||
return {checks};
|
||||
}
|
||||
)(page);
|
||||
```
|
||||
### Page
|
||||
- Page URL: http://127.0.0.1:52964/
|
||||
- Page Title: ProgCode.Ru — архив программиста
|
||||
### Events
|
||||
- New console entries: .playwright-cli/console-2026-10-26T11-20-01-464Z.log#L1
|
||||
|
Before Width: | Height: | Size: 103 KiB After Width: | Height: | Size: 97 KiB |
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"base": "http://127.0.0.1:52964",
|
||||
"pages": 31,
|
||||
"internalLinksAndAssets": 33,
|
||||
"internalLinksAndAssets": 34,
|
||||
"missingRoute": 404,
|
||||
"results": [
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import './globals.css';
|
||||
import Link from 'next/link';
|
||||
export const metadata={metadataBase:new URL('https://progcode.ru'),title:'ProgCode.Ru — архив программиста',description:'Восстановленные заметки о D, PHP, Bitrix и JavaScript. Поиск по архиву и инструменты разработчика.'};
|
||||
export const metadata={metadataBase:new URL('https://progcode.ru'),icons:{icon:'/icon.svg'},title:'ProgCode.Ru — архив программиста',description:'Восстановленные заметки о D, PHP, Bitrix и JavaScript. Поиск по архиву и инструменты разработчика.'};
|
||||
export default function RootLayout({children}) {return <html lang="ru"><body><header className="masthead"><Link href="/" className="brand"></> ProgCode<span>.Ru</span></Link><nav aria-label="Основная навигация"><Link href="/">Архив</Link><Link href="/tools/">JSON-инструмент</Link><Link href="/about/">Об источниках</Link></nav></header>{children}<footer className="footer">ProgCode.Ru · Записки программиста с 2017 года · <Link href="/about/">Источники и восстановление</Link><p>Исторические публикации сохраняют контекст своего времени. Проверяйте версии перед использованием кода.</p></footer></body></html>}
|
||||
@@ -105,7 +105,7 @@
|
||||
"slug": "ошибка-php-ssl-certificate-error-unable-to-get-local-issuer-certificate",
|
||||
"title": "Ошибка PHP. SSL certificate error: unable to get local issuer certificate",
|
||||
"date": "2017-07-12T23:20:53+00:00",
|
||||
"excerpt": "В PHP при загрузке или обмене данными с другим сервером через защищённое соединение может возникнуть ошибка: SSL certificate error: unable to get local issuer certificate Ошибка означает, что на сервере не установлен SSL сертификат. Чаще всего она наблюдается, когда мы ставим локальные платформы (сервера) быстрого развёртывания для веб-разработки, таких как ",
|
||||
"excerpt": "Историческая заметка 2017 года об ошибке проверки сертификата в PHP. Дополнена исправлением о цепочке доверия и CA bundle.",
|
||||
"author": "DarkRiDDeR",
|
||||
"categories": [
|
||||
"PHP"
|
||||
|
||||
@@ -1,58 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1360" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Жизненный цикл CIBlockElement Add</title>
|
||||
<desc id="desc">Вертикальная последовательность: входные данные, общий обработчик, запись, контрольная публичная выборка и готовый пользовательский результат.</desc>
|
||||
<defs>
|
||||
<style>
|
||||
.bg { fill: #fffdfa; }
|
||||
.title { fill: #1e252d; font: 700 48px Arial, sans-serif; }
|
||||
.sub { fill: #64707d; font: 28px Arial, sans-serif; }
|
||||
.step { fill: #edf5f2; stroke: #216869; stroke-width: 3; }
|
||||
.event { fill: #eef3fa; stroke: #355c9a; stroke-width: 3; }
|
||||
.check { fill: #fff4e8; stroke: #b4432a; stroke-width: 3; }
|
||||
.result { fill: #e5f2ed; stroke: #216869; stroke-width: 3; }
|
||||
.step-title { fill: #1e252d; font: 700 34px Arial, sans-serif; text-anchor: middle; }
|
||||
.step-copy { fill: #44515d; font: 26px Arial, sans-serif; text-anchor: middle; }
|
||||
.note { fill: #65492e; font: 700 28px Arial, sans-serif; text-anchor: middle; }
|
||||
.arrow { fill: none; stroke: #64707d; stroke-width: 6; marker-end: url(#arrow); }
|
||||
</style>
|
||||
<marker id="arrow" markerWidth="14" markerHeight="14" refX="11" refY="7" orient="auto">
|
||||
<path d="M0,0 L14,7 L0,14 z" fill="#64707d"/>
|
||||
</marker>
|
||||
</defs>
|
||||
|
||||
<rect class="bg" width="1000" height="1360"/>
|
||||
<text class="title" x="80" y="84">Путь CIBlockElement::Add</text>
|
||||
<text class="sub" x="80" y="128">ID — важная контрольная точка, но не финальный критерий готовности.</text>
|
||||
|
||||
<rect class="step" x="100" y="200" width="800" height="138" rx="26"/>
|
||||
<text class="step-title" x="500" y="253">1. Форма или импорт → сервис</text>
|
||||
<text class="step-copy" x="500" y="300">Поля, внешний ключ и контекст операции.</text>
|
||||
|
||||
<path class="arrow" d="M500 338 V415"/>
|
||||
|
||||
<rect class="event" x="100" y="430" width="800" height="148" rx="26"/>
|
||||
<text class="step-title" x="500" y="484">2. OnBeforeIBlockElementAdd</text>
|
||||
<text class="step-copy" x="500" y="528">Общий инвариант: уточнить поля</text>
|
||||
<text class="step-copy" x="500" y="563">или отменить запись с понятной причиной.</text>
|
||||
|
||||
<path class="arrow" d="M500 578 V655"/>
|
||||
|
||||
<rect class="step" x="100" y="670" width="800" height="140" rx="26"/>
|
||||
<text class="step-title" x="500" y="724">3. CIBlockElement::Add</text>
|
||||
<text class="step-copy" x="500" y="770">Возвращает ID либо false + LAST_ERROR.</text>
|
||||
|
||||
<path class="arrow" d="M500 810 V887"/>
|
||||
|
||||
<rect class="check" x="100" y="902" width="800" height="166" rx="26"/>
|
||||
<text class="step-title" x="500" y="956">4. Контрольная публичная выборка</text>
|
||||
<text class="step-copy" x="500" y="1000">ACTIVE, даты, раздел, свойства, URL,</text>
|
||||
<text class="step-copy" x="500" y="1035">а для каталога — цена и остаток по сценарию.</text>
|
||||
|
||||
<path class="arrow" d="M500 1068 V1145"/>
|
||||
|
||||
<rect class="result" x="100" y="1160" width="800" height="118" rx="26"/>
|
||||
<text class="step-title" x="500" y="1212">5. Пользователь видит готовый результат</text>
|
||||
<text class="step-copy" x="500" y="1252">Только теперь можно считать сценарий завершённым.</text>
|
||||
|
||||
<text class="note" x="500" y="1324">«Элемент сохранён» и «элемент готов» — разные состояния.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 1.9 MiB |
@@ -1,64 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 1120" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Состояния изображения в форме Bitrix</title>
|
||||
<desc id="desc">Вертикальная схема пути файла: выбор в браузере, multipart POST, запись CFile и обновление PREVIEW_PICTURE элемента инфоблока.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" x2="1" y1="0" y2="1">
|
||||
<stop offset="0" stop-color="#111827"/>
|
||||
<stop offset="1" stop-color="#172554"/>
|
||||
</linearGradient>
|
||||
<filter id="shadow" x="-15%" y="-10%" width="130%" height="130%">
|
||||
<feDropShadow dx="0" dy="10" stdDeviation="10" flood-color="#020617" flood-opacity=".28"/>
|
||||
</filter>
|
||||
<marker id="arrow" markerWidth="12" markerHeight="12" refX="6" refY="10" orient="auto">
|
||||
<path d="M0,0 L12,0 L6,12 Z" fill="#7dd3fc"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="640" height="1120" rx="28" fill="url(#bg)"/>
|
||||
<g font-family="Inter,Arial,sans-serif">
|
||||
<text x="48" y="58" fill="#f8fafc" font-size="27" font-weight="700">Форма с изображением:</text>
|
||||
<text x="48" y="91" fill="#f8fafc" font-size="27" font-weight="700">четыре состояния файла</text>
|
||||
<text x="48" y="122" fill="#94a3b8" font-size="16">Preview не доказывает, что карточка уже обновлена.</text>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="48" y="160" width="544" height="142" rx="20" fill="#1e293b" stroke="#475569"/>
|
||||
<rect x="48" y="378" width="544" height="142" rx="20" fill="#1e293b" stroke="#475569"/>
|
||||
<rect x="48" y="596" width="544" height="142" rx="20" fill="#0f3a53" stroke="#38bdf8"/>
|
||||
<rect x="48" y="814" width="544" height="142" rx="20" fill="#172554" stroke="#818cf8"/>
|
||||
</g>
|
||||
|
||||
<circle cx="86" cy="202" r="20" fill="#334155"/>
|
||||
<text x="86" y="209" text-anchor="middle" fill="#e2e8f0" font-size="16" font-weight="700">1</text>
|
||||
<text x="120" y="207" fill="#f8fafc" font-size="22" font-weight="700">Браузер: File и preview</text>
|
||||
<text x="80" y="248" fill="#cbd5e1" font-size="17">Пользователь видит выбранный файл.</text>
|
||||
<text x="80" y="274" fill="#cbd5e1" font-size="17">Постоянного ID Bitrix ещё нет.</text>
|
||||
|
||||
<circle cx="86" cy="420" r="20" fill="#334155"/>
|
||||
<text x="86" y="427" text-anchor="middle" fill="#e2e8f0" font-size="16" font-weight="700">2</text>
|
||||
<text x="120" y="425" fill="#f8fafc" font-size="22" font-weight="700">Форма: multipart POST</text>
|
||||
<text x="80" y="466" fill="#cbd5e1" font-size="17">Проверяем имя поля и UPLOAD_ERR.</text>
|
||||
<text x="80" y="492" fill="#cbd5e1" font-size="17">Доказательство: ожидаемый $_FILES.</text>
|
||||
|
||||
<circle cx="86" cy="638" r="20" fill="#0c4a6e"/>
|
||||
<text x="86" y="645" text-anchor="middle" fill="#e0f2fe" font-size="16" font-weight="700">3</text>
|
||||
<text x="120" y="643" fill="#f8fafc" font-size="22" font-weight="700">CFile: запись в b_file</text>
|
||||
<text x="80" y="684" fill="#dbeafe" font-size="17">CFile::SaveFile вернул положительный ID.</text>
|
||||
<text x="80" y="710" fill="#dbeafe" font-size="17">Файл можно прочитать по этому ID.</text>
|
||||
|
||||
<circle cx="86" cy="856" r="20" fill="#3730a3"/>
|
||||
<text x="86" y="863" text-anchor="middle" fill="#e0e7ff" font-size="16" font-weight="700">4</text>
|
||||
<text x="120" y="861" fill="#f8fafc" font-size="22" font-weight="700">Элемент: PREVIEW_PICTURE</text>
|
||||
<text x="80" y="902" fill="#dbeafe" font-size="17">CIBlockElement::Update вернул true.</text>
|
||||
<text x="80" y="928" fill="#dbeafe" font-size="17">Свежая карточка читает новый ID.</text>
|
||||
|
||||
<path d="M320 302 V378" fill="none" stroke="#7dd3fc" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<path d="M320 520 V596" fill="none" stroke="#7dd3fc" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<path d="M320 738 V814" fill="none" stroke="#7dd3fc" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<text x="344" y="348" fill="#bae6fd" font-size="15" font-weight="700">отправить</text>
|
||||
<text x="344" y="566" fill="#bae6fd" font-size="15" font-weight="700">SaveFile</text>
|
||||
<text x="344" y="784" fill="#bae6fd" font-size="15" font-weight="700">Update</text>
|
||||
|
||||
<rect x="48" y="1000" width="544" height="76" rx="16" fill="#0b1220" stroke="#334155"/>
|
||||
<text x="76" y="1034" fill="#f8fafc" font-size="18" font-weight="700">Проверка после каждого перехода</text>
|
||||
<text x="76" y="1060" fill="#cbd5e1" font-size="15">Искать расхождение на стрелке, а не рисовать новый preview.</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.7 KiB |
@@ -1,35 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 960" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Замена legacy обработчика с проверкой и откатом</title>
|
||||
<desc id="desc">Последовательность безопасной замены: снимок элемента до изменения, выбор старого или нового writer для одного ID, повторная выборка. При расхождении сначала выключается новый маршрут, а поле восстанавливается только после проверки снимка.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" x2="1" y1="0" y2="1"><stop stop-color="#0f172a"/><stop offset="1" stop-color="#172554"/></linearGradient>
|
||||
<filter id="shadow" x="-20%" y="-20%" width="140%" height="140%"><feDropShadow dx="0" dy="8" stdDeviation="9" flood-color="#020617" flood-opacity=".36"/></filter>
|
||||
<marker id="arrow" markerWidth="12" markerHeight="12" refX="6" refY="10" orient="auto"><path d="M0,0 L12,0 L6,12 Z" fill="#7dd3fc"/></marker>
|
||||
<marker id="warn" markerWidth="12" markerHeight="12" refX="6" refY="10" orient="auto"><path d="M0,0 L12,0 L6,12 Z" fill="#fbbf24"/></marker>
|
||||
</defs>
|
||||
<rect width="760" height="960" rx="28" fill="url(#bg)"/>
|
||||
<g font-family="Inter,Arial,sans-serif">
|
||||
<text x="52" y="62" fill="#f8fafc" font-size="29" font-weight="700">Один элемент, проверка, откат</text>
|
||||
<text x="52" y="93" fill="#94a3b8" font-size="20">Откат маршрута и поля — разные действия.</text>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="116" y="142" width="528" height="114" rx="20" fill="#1e293b" stroke="#475569"/>
|
||||
<rect x="116" y="332" width="528" height="136" rx="20" fill="#0f3a53" stroke="#38bdf8"/>
|
||||
<rect x="116" y="544" width="528" height="104" rx="20" fill="#172554" stroke="#818cf8"/>
|
||||
<rect x="116" y="724" width="528" height="160" rx="20" fill="#3f3012" stroke="#fbbf24"/>
|
||||
</g>
|
||||
<text x="148" y="184" fill="#f8fafc" font-size="22" font-weight="700">1. Снимок до изменения</text>
|
||||
<text x="148" y="215" fill="#cbd5e1" font-size="20">ID · IBLOCK_ID · старый CODE · ожидаемый CODE</text>
|
||||
<text x="148" y="377" fill="#f8fafc" font-size="22" font-weight="700">2. Маршрут одного вызова</text>
|
||||
<text x="148" y="408" fill="#dbeafe" font-size="20">старый / новый writer · только выбранный ID</text>
|
||||
<text x="148" y="438" fill="#dbeafe" font-size="20">Update(CODE) без соседних полей</text>
|
||||
<text x="148" y="588" fill="#f8fafc" font-size="22" font-weight="700">3. Повторная выборка</text>
|
||||
<text x="148" y="619" fill="#e0e7ff" font-size="20">CODE сопоставлен с ожиданием</text>
|
||||
<text x="148" y="769" fill="#fef3c7" font-size="22" font-weight="700">4. При расхождении</text>
|
||||
<text x="148" y="800" fill="#fde68a" font-size="20">сначала выключить новый маршрут</text>
|
||||
<text x="148" y="830" fill="#fde68a" font-size="20">сверить снимок и текущее значение</text>
|
||||
<text x="148" y="860" fill="#fde68a" font-size="20">после этого решать вопрос данных</text>
|
||||
<path d="M380 256 V332" fill="none" stroke="#7dd3fc" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<path d="M380 468 V544" fill="none" stroke="#7dd3fc" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<path d="M380 648 V724" fill="none" stroke="#fbbf24" stroke-width="4" marker-end="url(#warn)"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.6 KiB |
@@ -1,37 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 880" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Защищённый шов вокруг обновления CODE в Bitrix</title>
|
||||
<desc id="desc">Вертикальная карта legacy-модуля: форма передаёт ID и CODE в выделенный CodeWriter. Он проверяет инфоблок, обновляет одно поле и читает элемент обратно. Шаблон и интеграция остаются за границей шва.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" x2="1" y1="0" y2="1"><stop stop-color="#111827"/><stop offset="1" stop-color="#172554"/></linearGradient>
|
||||
<filter id="shadow" x="-20%" y="-20%" width="140%" height="140%"><feDropShadow dx="0" dy="8" stdDeviation="9" flood-color="#020617" flood-opacity=".36"/></filter>
|
||||
<marker id="arrow" markerWidth="12" markerHeight="12" refX="6" refY="10" orient="auto"><path d="M0,0 L12,0 L6,12 Z" fill="#7dd3fc"/></marker>
|
||||
</defs>
|
||||
<rect width="760" height="880" rx="28" fill="url(#bg)"/>
|
||||
<g font-family="Inter,Arial,sans-serif">
|
||||
<text x="52" y="62" fill="#f8fafc" font-size="29" font-weight="700">Маленький шов: только CODE</text>
|
||||
<text x="52" y="93" fill="#94a3b8" font-size="20">Форма и интеграция не входят в одну функцию.</text>
|
||||
<rect x="52" y="138" width="656" height="524" rx="26" fill="#0b1220" stroke="#38bdf8" stroke-width="2" stroke-dasharray="9 9"/>
|
||||
<text x="78" y="174" fill="#7dd3fc" font-size="20" font-weight="700">ЗАЩИЩЁННЫЙ ШОВ</text>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="198" y="206" width="364" height="100" rx="18" fill="#1e293b" stroke="#475569"/>
|
||||
<rect x="138" y="374" width="484" height="122" rx="18" fill="#0f3a53" stroke="#38bdf8"/>
|
||||
<rect x="198" y="560" width="364" height="70" rx="18" fill="#172554" stroke="#818cf8"/>
|
||||
</g>
|
||||
<text x="380" y="245" text-anchor="middle" fill="#f8fafc" font-size="22" font-weight="700">Вход формы</text>
|
||||
<text x="380" y="277" text-anchor="middle" fill="#cbd5e1" font-size="22">ID + новый CODE</text>
|
||||
<text x="380" y="416" text-anchor="middle" fill="#f8fafc" font-size="23" font-weight="700">ProductCodeWriter</text>
|
||||
<text x="380" y="447" text-anchor="middle" fill="#dbeafe" font-size="20">проверка инфоблока · Update(CODE)</text>
|
||||
<text x="380" y="473" text-anchor="middle" fill="#dbeafe" font-size="20">повторная выборка</text>
|
||||
<text x="380" y="603" text-anchor="middle" fill="#f8fafc" font-size="20" font-weight="700">Отчёт: changed / ошибка</text>
|
||||
<path d="M380 306 V374" fill="none" stroke="#7dd3fc" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<path d="M380 496 V560" fill="none" stroke="#7dd3fc" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<rect x="52" y="714" width="294" height="108" rx="18" fill="#1e293b" stroke="#475569"/>
|
||||
<rect x="414" y="714" width="294" height="108" rx="18" fill="#1e293b" stroke="#475569"/>
|
||||
<text x="80" y="756" fill="#f8fafc" font-size="20" font-weight="700">Шаблон</text>
|
||||
<text x="80" y="787" fill="#cbd5e1" font-size="20">вывод результата</text>
|
||||
<text x="442" y="756" fill="#f8fafc" font-size="20" font-weight="700">Интеграция</text>
|
||||
<text x="442" y="787" fill="#cbd5e1" font-size="20">следующий шаг</text>
|
||||
<path d="M286 662 C250 679, 214 685, 200 714" fill="none" stroke="#64748b" stroke-width="3" marker-end="url(#arrow)"/>
|
||||
<path d="M474 662 C510 679, 546 685, 560 714" fill="none" stroke="#64748b" stroke-width="3" marker-end="url(#arrow)"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.7 KiB |
@@ -1,38 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 900" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Смешанная ответственность старого save.php</title>
|
||||
<desc id="desc">Диаграмма показывает, что один save.php читает POST, меняет инфоблок, выводит HTML и запускает интеграцию. Поздняя ошибка не отменяет раннюю запись автоматически.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" x2="1" y1="0" y2="1"><stop stop-color="#18181b"/><stop offset="1" stop-color="#1e1b4b"/></linearGradient>
|
||||
<filter id="shadow" x="-20%" y="-20%" width="140%" height="140%"><feDropShadow dx="0" dy="8" stdDeviation="9" flood-color="#020617" flood-opacity=".4"/></filter>
|
||||
<marker id="arrowBlue" markerWidth="12" markerHeight="12" refX="6" refY="10" orient="auto"><path d="M0,0 L12,0 L6,12 Z" fill="#7dd3fc"/></marker>
|
||||
<marker id="arrowRed" markerWidth="12" markerHeight="12" refX="6" refY="10" orient="auto"><path d="M0,0 L12,0 L6,12 Z" fill="#fb7185"/></marker>
|
||||
</defs>
|
||||
<rect width="760" height="900" rx="28" fill="url(#bg)"/>
|
||||
<g font-family="Inter,Arial,sans-serif">
|
||||
<text x="52" y="62" fill="#f8fafc" font-size="29" font-weight="700">Когда save.php делает всё сразу</text>
|
||||
<text x="52" y="93" fill="#a1a1aa" font-size="20">Ошибка формы не равна состоянию инфоблока.</text>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="180" y="146" width="400" height="138" rx="22" fill="#312e81" stroke="#818cf8" stroke-width="2"/>
|
||||
<rect x="68" y="418" width="274" height="120" rx="18" fill="#1e293b" stroke="#475569"/>
|
||||
<rect x="418" y="418" width="274" height="120" rx="18" fill="#0f3a53" stroke="#38bdf8"/>
|
||||
<rect x="68" y="682" width="274" height="120" rx="18" fill="#3f1d2e" stroke="#fb7185"/>
|
||||
<rect x="418" y="682" width="274" height="120" rx="18" fill="#3f1d2e" stroke="#fb7185"/>
|
||||
</g>
|
||||
<text x="380" y="197" text-anchor="middle" fill="#f8fafc" font-size="25" font-weight="700">save.php</text>
|
||||
<text x="380" y="228" text-anchor="middle" fill="#ddd6fe" font-size="20">POST · API · HTML</text>
|
||||
<text x="380" y="256" text-anchor="middle" fill="#ddd6fe" font-size="20">один файл, несколько состояний</text>
|
||||
<text x="205" y="462" text-anchor="middle" fill="#f8fafc" font-size="21" font-weight="700">Вход формы</text>
|
||||
<text x="205" y="493" text-anchor="middle" fill="#cbd5e1" font-size="22">ID · NAME · CODE</text>
|
||||
<text x="555" y="462" text-anchor="middle" fill="#f8fafc" font-size="21" font-weight="700">Инфоблок</text>
|
||||
<text x="555" y="493" text-anchor="middle" fill="#dbeafe" font-size="22">Update(CODE)</text>
|
||||
<text x="205" y="726" text-anchor="middle" fill="#f8fafc" font-size="21" font-weight="700">HTML-ответ</text>
|
||||
<text x="205" y="757" text-anchor="middle" fill="#fecdd3" font-size="20">сообщение формы</text>
|
||||
<text x="555" y="726" text-anchor="middle" fill="#f8fafc" font-size="21" font-weight="700">Интеграция</text>
|
||||
<text x="555" y="757" text-anchor="middle" fill="#fecdd3" font-size="20">отдельный эффект</text>
|
||||
<path d="M300 284 L224 418" fill="none" stroke="#7dd3fc" stroke-width="4" marker-end="url(#arrowBlue)"/>
|
||||
<path d="M460 284 L536 418" fill="none" stroke="#7dd3fc" stroke-width="4" marker-end="url(#arrowBlue)"/>
|
||||
<path d="M205 538 V682" fill="none" stroke="#fb7185" stroke-width="4" marker-end="url(#arrowRed)"/>
|
||||
<path d="M555 538 V682" fill="none" stroke="#fb7185" stroke-width="4" marker-end="url(#arrowRed)"/>
|
||||
<text x="54" y="846" fill="#fda4af" font-size="20" font-weight="700">Поздний сбой не отменяет раннюю запись автоматически.</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.8 KiB |
@@ -1,66 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 700" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Построение символьного кода элемента Bitrix</title>
|
||||
<desc id="desc">Схема показывает путь от названия элемента через транслитерацию и проверку занятости кода к сохранению элемента или добавлению суффикса.</desc>
|
||||
<defs>
|
||||
<marker id="arrow" markerWidth="12" markerHeight="12" refX="10" refY="6" orient="auto">
|
||||
<path d="M0,0 L12,6 L0,12 z" fill="#264653"/>
|
||||
</marker>
|
||||
<style>
|
||||
.bg { fill: #f7f4ec; }
|
||||
.node { fill: #ffffff; stroke: #264653; stroke-width: 3; }
|
||||
.accent { fill: #e9c46a; stroke: #264653; stroke-width: 3; }
|
||||
.success { fill: #a8dadc; stroke: #264653; stroke-width: 3; }
|
||||
.warn { fill: #f4a261; stroke: #264653; stroke-width: 3; }
|
||||
.line { fill: none; stroke: #264653; stroke-width: 3; marker-end: url(#arrow); }
|
||||
.dash { fill: none; stroke: #264653; stroke-width: 3; stroke-dasharray: 10 8; marker-end: url(#arrow); }
|
||||
.label { font: 700 25px Arial, sans-serif; fill: #1d3557; }
|
||||
.text { font: 20px Arial, sans-serif; fill: #264653; }
|
||||
.code { font: 700 19px "Courier New", monospace; fill: #1d3557; }
|
||||
.small { font: 17px Arial, sans-serif; fill: #457b9d; }
|
||||
</style>
|
||||
</defs>
|
||||
<rect class="bg" width="1200" height="700" rx="28"/>
|
||||
<text x="60" y="68" class="label">Символьный код — это цепочка проверок, а не только транслит</text>
|
||||
|
||||
<rect x="58" y="165" width="190" height="155" rx="18" class="node"/>
|
||||
<text x="83" y="214" class="label">1. Имя</text>
|
||||
<text x="83" y="252" class="text">«Кофе Classic</text>
|
||||
<text x="83" y="280" class="text">250 г»</text>
|
||||
|
||||
<path d="M248 243 H337" class="line"/>
|
||||
|
||||
<rect x="347" y="150" width="220" height="185" rx="18" class="accent"/>
|
||||
<text x="373" y="199" class="label">2. CUtil::</text>
|
||||
<text x="373" y="230" class="label">translit</text>
|
||||
<text x="373" y="270" class="small">нижний регистр,</text>
|
||||
<text x="373" y="296" class="small">дефис вместо пробела</text>
|
||||
|
||||
<path d="M567 243 H658" class="line"/>
|
||||
|
||||
<rect x="668" y="165" width="210" height="155" rx="18" class="node"/>
|
||||
<text x="695" y="214" class="label">3. Кандидат</text>
|
||||
<text x="695" y="257" style="font: 700 16px "Courier New", monospace; fill: #1d3557;">kofe-classic-250-g</text>
|
||||
|
||||
<path d="M878 243 H962" class="line"/>
|
||||
|
||||
<rect x="972" y="150" width="180" height="185" rx="18" class="node"/>
|
||||
<text x="997" y="198" class="label">4. GetList</text>
|
||||
<text x="997" y="233" class="small">IBLOCK_ID</text>
|
||||
<text x="997" y="260" class="small">+ CODE</text>
|
||||
<text x="997" y="291" class="small">есть запись?</text>
|
||||
|
||||
<path d="M1062 335 V438 H932" class="line"/>
|
||||
<rect x="722" y="408" width="200" height="125" rx="18" class="success"/>
|
||||
<text x="748" y="457" class="label">Свободен</text>
|
||||
<text x="748" y="493" class="text">передаём в Add</text>
|
||||
|
||||
<path d="M972 243 H930 V580 H710" class="dash"/>
|
||||
<rect x="460" y="534" width="240" height="120" rx="18" class="warn"/>
|
||||
<text x="487" y="580" class="label">Занят</text>
|
||||
<text x="487" y="616" class="text">добавляем -2, -3…</text>
|
||||
<path d="M460 594 H345 V380 H770 V320" class="dash"/>
|
||||
|
||||
<text x="938" y="412" class="small">нет</text>
|
||||
<text x="884" y="566" class="small">да</text>
|
||||
<text x="58" y="676" class="small">Проверка по списку полезна для последовательного ввода. При параллельном импорте нужен отдельный проектный способ исключить гонку.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.8 KiB |
@@ -1,54 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 700" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Диагностика конфликта символьного кода Bitrix</title>
|
||||
<desc id="desc">Дерево проверки для ситуации, когда адрес карточки открывает не тот элемент: путь, переменные, выборка и набор совпадений.</desc>
|
||||
<defs>
|
||||
<marker id="arrow" markerWidth="12" markerHeight="12" refX="10" refY="6" orient="auto">
|
||||
<path d="M0,0 L12,6 L0,12 z" fill="#3d405b"/>
|
||||
</marker>
|
||||
<style>
|
||||
.bg { fill: #fff8ed; }
|
||||
.node { fill: #ffffff; stroke: #3d405b; stroke-width: 3; }
|
||||
.focus { fill: #d8e7ff; stroke: #3d405b; stroke-width: 3; }
|
||||
.ok { fill: #cce8d4; stroke: #3d405b; stroke-width: 3; }
|
||||
.warn { fill: #f8d49c; stroke: #3d405b; stroke-width: 3; }
|
||||
.bad { fill: #f6b3a8; stroke: #3d405b; stroke-width: 3; }
|
||||
.line { fill: none; stroke: #3d405b; stroke-width: 3; marker-end: url(#arrow); }
|
||||
.label { font: 700 25px Arial, sans-serif; fill: #3d405b; }
|
||||
.text { font: 20px Arial, sans-serif; fill: #3d405b; }
|
||||
.code { font: 700 18px "Courier New", monospace; fill: #3d405b; }
|
||||
.small { font: 17px Arial, sans-serif; fill: #5c677d; }
|
||||
</style>
|
||||
</defs>
|
||||
<rect class="bg" width="1200" height="700" rx="28"/>
|
||||
<text x="56" y="67" class="label">Карточка открывает не тот товар: сначала считаем совпадения</text>
|
||||
|
||||
<rect x="462" y="108" width="278" height="112" rx="18" class="focus"/>
|
||||
<text x="491" y="155" class="label">Ожидаемый URL</text>
|
||||
<text x="491" y="190" class="code">.../classic-250-g/</text>
|
||||
|
||||
<path d="M601 220 V296" class="line"/>
|
||||
<rect x="403" y="306" width="396" height="116" rx="18" class="node"/>
|
||||
<text x="430" y="352" class="label">Что компонент получил?</text>
|
||||
<text x="430" y="389" class="code">ELEMENT_CODE = classic-250-g</text>
|
||||
|
||||
<path d="M601 422 V495" class="line"/>
|
||||
<rect x="360" y="425" width="480" height="92" rx="18" class="focus"/>
|
||||
<text x="390" y="466" class="label">GetList по этому CODE</text>
|
||||
<text x="390" y="495" class="small">в том же IBLOCK_ID и с теми же фильтрами</text>
|
||||
|
||||
<path d="M360 471 H288 V594 H294" class="line"/>
|
||||
<rect x="56" y="544" width="228" height="98" rx="18" class="warn"/>
|
||||
<text x="80" y="585" class="label">0 записей</text>
|
||||
<text x="80" y="613" class="small">шаблон, фильтр, активность</text>
|
||||
|
||||
<path d="M840 471 H912 V594 H906" class="line"/>
|
||||
<rect x="916" y="544" width="228" height="98" rx="18" class="bad"/>
|
||||
<text x="940" y="585" class="label">2+ записи</text>
|
||||
<text x="940" y="613" class="small">конфликт CODE или фильтр</text>
|
||||
|
||||
<path d="M600 517 V558" class="line"/>
|
||||
<rect x="438" y="558" width="324" height="84" rx="18" class="ok"/>
|
||||
<text x="469" y="610" style="font: 700 23px Arial, sans-serif; fill: #3d405b;">1 запись: сверяем ID</text>
|
||||
|
||||
<text x="56" y="676" class="small">Кеш проверяем после данных и маршрута. Иначе он становится удобным, но недоказанным объяснением.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.3 KiB |
@@ -1,64 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 700" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Путь URL до элемента инфоблока в Bitrix</title>
|
||||
<desc id="desc">Диаграмма показывает как адрес страницы разбирается шаблоном SEF, превращается в переменные и используется для поиска элемента инфоблока.</desc>
|
||||
<defs>
|
||||
<marker id="arrow" markerWidth="12" markerHeight="12" refX="10" refY="6" orient="auto">
|
||||
<path d="M0,0 L12,6 L0,12 z" fill="#1d3557"/>
|
||||
</marker>
|
||||
<style>
|
||||
.bg { fill: #f5f7fb; }
|
||||
.node { fill: #ffffff; stroke: #1d3557; stroke-width: 3; }
|
||||
.route { fill: #cde8f0; stroke: #1d3557; stroke-width: 3; }
|
||||
.query { fill: #f7d488; stroke: #1d3557; stroke-width: 3; }
|
||||
.result { fill: #b9e3c6; stroke: #1d3557; stroke-width: 3; }
|
||||
.fail { fill: #f6b3a8; stroke: #1d3557; stroke-width: 3; }
|
||||
.line { fill: none; stroke: #1d3557; stroke-width: 3; marker-end: url(#arrow); }
|
||||
.label { font: 700 25px Arial, sans-serif; fill: #1d3557; }
|
||||
.text { font: 20px Arial, sans-serif; fill: #264653; }
|
||||
.code { font: 700 18px "Courier New", monospace; fill: #1d3557; }
|
||||
.small { font: 17px Arial, sans-serif; fill: #457b9d; }
|
||||
</style>
|
||||
</defs>
|
||||
<rect class="bg" width="1200" height="700" rx="28"/>
|
||||
<text x="56" y="67" class="label">Адрес не ищет запись сам: компонент сначала восстанавливает переменные</text>
|
||||
|
||||
<rect x="56" y="160" width="238" height="154" rx="18" class="node"/>
|
||||
<text x="82" y="209" class="label">Запрос браузера</text>
|
||||
<text x="82" y="254" class="code">/catalog/kofe/</text>
|
||||
<text x="82" y="281" class="code">classic-250-g/</text>
|
||||
|
||||
<path d="M294 237 H380" class="line"/>
|
||||
|
||||
<rect x="390" y="135" width="256" height="205" rx="18" class="route"/>
|
||||
<text x="416" y="185" class="label">SEF-шаблон</text>
|
||||
<text x="416" y="227" class="code">#SECTION_CODE#/</text>
|
||||
<text x="416" y="255" class="code">#ELEMENT_CODE#/</text>
|
||||
<text x="416" y="301" class="small">ParseComponentPath</text>
|
||||
|
||||
<path d="M646 237 H731" class="line"/>
|
||||
|
||||
<rect x="741" y="135" width="240" height="205" rx="18" class="query"/>
|
||||
<text x="767" y="184" class="label">Переменные</text>
|
||||
<text x="767" y="225" class="code">SECTION_CODE</text>
|
||||
<text x="767" y="254" class="code">ELEMENT_CODE</text>
|
||||
<text x="767" y="301" class="small">не запись в БД</text>
|
||||
|
||||
<path d="M981 237 H1066" class="line"/>
|
||||
|
||||
<rect x="1076" y="160" width="84" height="154" rx="18" class="node"/>
|
||||
<text x="1093" y="209" class="label">Query</text>
|
||||
<text x="1092" y="253" class="small">CODE</text>
|
||||
<text x="1092" y="279" class="small">+ filter</text>
|
||||
|
||||
<path d="M1118 314 V431 H941" class="line"/>
|
||||
<rect x="692" y="402" width="239" height="133" rx="18" class="result"/>
|
||||
<text x="720" y="452" class="label">Элемент найден</text>
|
||||
<text x="720" y="490" class="text">детальная страница</text>
|
||||
|
||||
<path d="M1076 239 H1018 V592 H839" class="line"/>
|
||||
<rect x="600" y="564" width="229" height="95" rx="18" class="fail"/>
|
||||
<text x="625" y="606" class="label">Нет совпадения</text>
|
||||
<text x="625" y="635" class="text">404 или другой путь</text>
|
||||
|
||||
<text x="56" y="676" class="small">Если шаблон, имя переменной и фильтр расходятся, менять CODE бесполезно: сначала надо увидеть, какое значение восстановлено из URL.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.6 KiB |
@@ -1,61 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1560" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Диагностика элемента, который не виден в каталоге</title>
|
||||
<desc id="desc">Вертикальное дерево вопросов от результата Add до публичного отображения товара.</desc>
|
||||
<defs>
|
||||
<style>
|
||||
.bg { fill: #fffdfa; }
|
||||
.title { fill: #1e252d; font: 700 46px Arial, sans-serif; }
|
||||
.sub { fill: #64707d; font: 28px Arial, sans-serif; }
|
||||
.question { fill: #edf2f7; stroke: #4e6a85; stroke-width: 3; }
|
||||
.failure { fill: #fff0eb; stroke: #b4432a; stroke-width: 3; }
|
||||
.success { fill: #e5f2ed; stroke: #216869; stroke-width: 3; }
|
||||
.box-title { fill: #1e252d; font: 700 33px Arial, sans-serif; text-anchor: middle; }
|
||||
.box-copy { fill: #44515d; font: 25px Arial, sans-serif; text-anchor: middle; }
|
||||
.yes { fill: #216869; font: 700 27px Arial, sans-serif; }
|
||||
.no { fill: #b4432a; font: 700 27px Arial, sans-serif; }
|
||||
.arrow { fill: none; stroke: #64707d; stroke-width: 6; marker-end: url(#arrow); }
|
||||
</style>
|
||||
<marker id="arrow" markerWidth="14" markerHeight="14" refX="11" refY="7" orient="auto">
|
||||
<path d="M0,0 L14,7 L0,14 z" fill="#64707d"/>
|
||||
</marker>
|
||||
</defs>
|
||||
|
||||
<rect class="bg" width="1000" height="1560"/>
|
||||
<text class="title" x="70" y="82">Элемент не виден в каталоге</text>
|
||||
<text class="sub" x="70" y="128">Не начинаем с кеша. Идём от факта записи к публичной выборке.</text>
|
||||
|
||||
<rect class="question" x="100" y="200" width="800" height="140" rx="26"/>
|
||||
<text class="box-title" x="500" y="255">1. Add вернул ID и нет LAST_ERROR?</text>
|
||||
<text class="box-copy" x="500" y="303">Нет → логируем входные поля, права и причину ошибки.</text>
|
||||
<path class="arrow" d="M500 340 V410"/>
|
||||
<text class="yes" x="524" y="386">да</text>
|
||||
|
||||
<rect class="question" x="100" y="425" width="800" height="140" rx="26"/>
|
||||
<text class="box-title" x="500" y="480">2. ACTIVE, даты и раздел подходят?</text>
|
||||
<text class="box-copy" x="500" y="528">Нет → исправляем условия публикации, а не шаблон.</text>
|
||||
<path class="arrow" d="M500 565 V635"/>
|
||||
<text class="yes" x="524" y="611">да</text>
|
||||
|
||||
<rect class="question" x="100" y="650" width="800" height="140" rx="26"/>
|
||||
<text class="box-title" x="500" y="705">3. Есть свойства и товарный слой?</text>
|
||||
<text class="box-copy" x="500" y="753">Нет → проверяем SKU, цену, остаток и обязательные связи.</text>
|
||||
<path class="arrow" d="M500 790 V860"/>
|
||||
<text class="yes" x="524" y="836">да</text>
|
||||
|
||||
<rect class="question" x="100" y="875" width="800" height="140" rx="26"/>
|
||||
<text class="box-title" x="500" y="930">4. Совпадает фильтр публичного компонента?</text>
|
||||
<text class="box-copy" x="500" y="978">Нет → сверяем права, URL, проектные условия и раздел.</text>
|
||||
<path class="arrow" d="M500 1015 V1085"/>
|
||||
<text class="yes" x="524" y="1061">да</text>
|
||||
|
||||
<rect class="failure" x="100" y="1100" width="800" height="140" rx="26"/>
|
||||
<text class="box-title" x="500" y="1155">5. Только теперь проверяем кеш и индекс</text>
|
||||
<text class="box-copy" x="500" y="1203">Данные уже доказанно корректны — ищем задержку слоя выдачи.</text>
|
||||
<path class="arrow" d="M500 1240 V1310"/>
|
||||
|
||||
<rect class="success" x="100" y="1325" width="800" height="130" rx="26"/>
|
||||
<text class="box-title" x="500" y="1380">Пользователь видит нужную карточку</text>
|
||||
<text class="box-copy" x="500" y="1428">И причина зафиксирована, чтобы не лечить её наугад снова.</text>
|
||||
|
||||
<text class="no" x="500" y="1510">«Нет» на любом шаге — исправляем именно этот слой.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.1 KiB |
@@ -1,46 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 620" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Три уровня результата cURL-интеграции</title>
|
||||
<desc id="desc">После curl_exec сначала проверяется false и ошибка транспорта, затем код HTTP, а затем контракт тела ответа.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#1f2437"/>
|
||||
<stop offset="1" stop-color="#3b315f"/>
|
||||
</linearGradient>
|
||||
<marker id="flow-arrow" markerWidth="10" markerHeight="10" refX="9" refY="5" orient="auto">
|
||||
<path d="M0 0 L10 5 L0 10z" fill="#f8e9ac"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="1200" height="620" rx="34" fill="url(#background)"/>
|
||||
<text x="74" y="88" fill="#fff9e4" font-family="Arial, sans-serif" font-size="32" font-weight="700">cURL отвечает за передачу, а не за успех операции</text>
|
||||
<text x="74" y="125" fill="#d1c5e6" font-family="Arial, sans-serif" font-size="19">Проверки идут слева направо: транспорт → HTTP → полезная нагрузка</text>
|
||||
<g font-family="Arial, sans-serif">
|
||||
<rect x="75" y="228" width="194" height="116" rx="18" fill="#f8e9ac"/>
|
||||
<text x="109" y="275" fill="#352f52" font-size="22" font-weight="700">curl_exec()</text>
|
||||
<text x="118" y="310" fill="#352f52" font-size="17">получить тело</text>
|
||||
<path d="M269 286 H385" fill="none" stroke="#f8e9ac" stroke-width="5" marker-end="url(#flow-arrow)"/>
|
||||
<rect x="405" y="228" width="200" height="116" rx="18" fill="#e4d7ff"/>
|
||||
<text x="438" y="274" fill="#352f52" font-size="22" font-weight="700">body === false?</text>
|
||||
<text x="450" y="310" fill="#352f52" font-size="17">cURL + сеть</text>
|
||||
<path d="M505 344 V439 H325" fill="none" stroke="#f8e9ac" stroke-width="5" marker-end="url(#flow-arrow)"/>
|
||||
<text x="422" y="405" fill="#f8e9ac" font-size="16">да</text>
|
||||
<rect x="112" y="438" width="214" height="104" rx="18" fill="#f2b8ae"/>
|
||||
<text x="145" y="481" fill="#5d2427" font-size="21" font-weight="700">transport error</text>
|
||||
<text x="151" y="514" fill="#5d2427" font-size="16">errno, error, time</text>
|
||||
<path d="M605 286 H695" fill="none" stroke="#f8e9ac" stroke-width="5" marker-end="url(#flow-arrow)"/>
|
||||
<text x="636" y="265" fill="#f8e9ac" font-size="16">нет</text>
|
||||
<rect x="715" y="228" width="182" height="116" rx="18" fill="#b8e8e0"/>
|
||||
<text x="745" y="274" fill="#21423f" font-size="22" font-weight="700">HTTP 2xx?</text>
|
||||
<text x="737" y="310" fill="#21423f" font-size="17">curl_getinfo</text>
|
||||
<path d="M806 344 V439 H965" fill="none" stroke="#f8e9ac" stroke-width="5" marker-end="url(#flow-arrow)"/>
|
||||
<text x="842" y="405" fill="#f8e9ac" font-size="16">нет</text>
|
||||
<rect x="966" y="438" width="170" height="104" rx="18" fill="#f2b8ae"/>
|
||||
<text x="1003" y="481" fill="#5d2427" font-size="21" font-weight="700">HTTP error</text>
|
||||
<text x="992" y="514" fill="#5d2427" font-size="16">status + route</text>
|
||||
<path d="M897 286 H995" fill="none" stroke="#f8e9ac" stroke-width="5" marker-end="url(#flow-arrow)"/>
|
||||
<text x="927" y="265" fill="#f8e9ac" font-size="16">да</text>
|
||||
<rect x="1015" y="228" width="121" height="116" rx="18" fill="#d4e8ff"/>
|
||||
<text x="1045" y="274" fill="#294465" font-size="21" font-weight="700">Тело</text>
|
||||
<text x="1032" y="310" fill="#294465" font-size="16">контракт</text>
|
||||
</g>
|
||||
<text x="75" y="585" fill="#d1c5e6" font-family="Arial, sans-serif" font-size="18">Статус 404 или 500 может прийти как строка: это не false для curl_exec().</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.7 KiB |
@@ -1,66 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="540" viewBox="0 0 960 540" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Бюджет времени для одного HTTP-запроса</title>
|
||||
<desc id="desc">Шкала шести секунд: DNS и соединение ограничены полутора секундами, ожидание начала ответа и передача тела используют оставшийся общий лимит. Отдельно показано, что повтор возможен только после проверки семантики операции.</desc>
|
||||
<defs>
|
||||
<linearGradient id="back" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#101c35"/>
|
||||
<stop offset="1" stop-color="#14284a"/>
|
||||
</linearGradient>
|
||||
<filter id="shadow" x="-10%" y="-15%" width="120%" height="140%">
|
||||
<feDropShadow dx="0" dy="8" stdDeviation="9" flood-color="#071226" flood-opacity=".28"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<rect width="960" height="540" rx="28" fill="url(#back)"/>
|
||||
<text x="54" y="70" fill="#f7fbff" font-family="Arial, sans-serif" font-size="30" font-weight="700">Один запрос: сначала бюджет, затем cURL</text>
|
||||
<text x="54" y="104" fill="#b9cce4" font-family="Arial, sans-serif" font-size="18">Пример для интеграции, которая должна закончиться не позже чем за 6 секунд</text>
|
||||
|
||||
<rect x="54" y="154" width="852" height="92" rx="16" fill="#0b162b" filter="url(#shadow)"/>
|
||||
<rect x="74" y="176" width="105" height="48" rx="10" fill="#5f7eea"/>
|
||||
<rect x="187" y="176" width="108" height="48" rx="10" fill="#37b4a1"/>
|
||||
<rect x="303" y="176" width="202" height="48" rx="10" fill="#f3a348"/>
|
||||
<rect x="513" y="176" width="162" height="48" rx="10" fill="#d96b7d"/>
|
||||
<rect x="683" y="176" width="203" height="48" rx="10" fill="#5d8fc9"/>
|
||||
<text x="94" y="205" fill="#fff" font-family="Arial, sans-serif" font-size="16" font-weight="700">DNS</text>
|
||||
<text x="202" y="205" fill="#fff" font-family="Arial, sans-serif" font-size="16" font-weight="700">TCP/TLS</text>
|
||||
<text x="329" y="205" fill="#172038" font-family="Arial, sans-serif" font-size="16" font-weight="700">запрос ушёл</text>
|
||||
<text x="536" y="205" fill="#fff" font-family="Arial, sans-serif" font-size="16" font-weight="700">первый байт</text>
|
||||
<text x="727" y="205" fill="#fff" font-family="Arial, sans-serif" font-size="16" font-weight="700">тело ответа</text>
|
||||
|
||||
<line x1="74" y1="278" x2="886" y2="278" stroke="#8ea9ca" stroke-width="3"/>
|
||||
<g fill="#dbe9f8" font-family="Arial, sans-serif" font-size="15">
|
||||
<text x="68" y="307">0 с</text>
|
||||
<text x="196" y="307">1 с</text>
|
||||
<text x="330" y="307">2 с</text>
|
||||
<text x="464" y="307">3 с</text>
|
||||
<text x="598" y="307">4 с</text>
|
||||
<text x="732" y="307">5 с</text>
|
||||
<text x="866" y="307">6 с</text>
|
||||
</g>
|
||||
<g stroke="#8ea9ca" stroke-width="2">
|
||||
<line x1="74" y1="270" x2="74" y2="287"/>
|
||||
<line x1="209" y1="270" x2="209" y2="287"/>
|
||||
<line x1="344" y1="270" x2="344" y2="287"/>
|
||||
<line x1="479" y1="270" x2="479" y2="287"/>
|
||||
<line x1="614" y1="270" x2="614" y2="287"/>
|
||||
<line x1="749" y1="270" x2="749" y2="287"/>
|
||||
<line x1="886" y1="270" x2="886" y2="287"/>
|
||||
</g>
|
||||
|
||||
<rect x="54" y="340" width="258" height="138" rx="16" fill="#1b335a" stroke="#5f7eea"/>
|
||||
<text x="76" y="373" fill="#fff" font-family="Arial, sans-serif" font-size="19" font-weight="700">Connect: до 1,5 с</text>
|
||||
<text x="76" y="405" fill="#c9dcf4" font-family="Arial, sans-serif" font-size="16">DNS, TCP и TLS входят</text>
|
||||
<text x="76" y="429" fill="#c9dcf4" font-family="Arial, sans-serif" font-size="16">в эту фазу. Лимит общего</text>
|
||||
<text x="76" y="453" fill="#c9dcf4" font-family="Arial, sans-serif" font-size="16">времени всё равно короче.</text>
|
||||
|
||||
<rect x="350" y="340" width="258" height="138" rx="16" fill="#45364b" stroke="#d96b7d"/>
|
||||
<text x="372" y="373" fill="#fff" font-family="Arial, sans-serif" font-size="19" font-weight="700">Total: до 6 с</text>
|
||||
<text x="372" y="405" fill="#f0d6dc" font-family="Arial, sans-serif" font-size="16">Останавливает всю передачу:</text>
|
||||
<text x="372" y="429" fill="#f0d6dc" font-family="Arial, sans-serif" font-size="16">не только ожидание ответа,</text>
|
||||
<text x="372" y="453" fill="#f0d6dc" font-family="Arial, sans-serif" font-size="16">но и соединение с ним.</text>
|
||||
|
||||
<rect x="646" y="340" width="260" height="138" rx="16" fill="#30405a" stroke="#f3a348"/>
|
||||
<text x="668" y="373" fill="#fff" font-family="Arial, sans-serif" font-size="19" font-weight="700">Повтор: не по таймеру</text>
|
||||
<text x="668" y="405" fill="#f9dfbc" font-family="Arial, sans-serif" font-size="16">Нужны метод, состояние</text>
|
||||
<text x="668" y="429" fill="#f9dfbc" font-family="Arial, sans-serif" font-size="16">операции и оставшийся</text>
|
||||
<text x="668" y="453" fill="#f9dfbc" font-family="Arial, sans-serif" font-size="16">бюджет времени.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.1 KiB |
@@ -1,60 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="590" viewBox="0 0 960 590" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Разбор зависшего HTTP-запроса по стадиям</title>
|
||||
<desc id="desc">Дерево диагностики: сначала фиксируется curl error и HTTP-код, затем сравниваются времена DNS, соединения, TLS, первого байта и общего запроса. Для каждой наблюдаемой точки указан следующий шаг без автоматического повтора небезопасной операции.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#15233d"/>
|
||||
<stop offset="1" stop-color="#102038"/>
|
||||
</linearGradient>
|
||||
<marker id="a" markerWidth="10" markerHeight="10" refX="7" refY="3" orient="auto">
|
||||
<path d="M0,0 L0,6 L8,3 z" fill="#a7c7e8"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="960" height="590" rx="28" fill="url(#bg)"/>
|
||||
<text x="48" y="64" fill="#fff" font-family="Arial, sans-serif" font-size="26" font-weight="700">Зависшая интеграция: не угадывать, на какой стадии ждать</text>
|
||||
<text x="48" y="98" fill="#c7d9eb" font-family="Arial, sans-serif" font-size="18">Один лог запроса показывает границу следующей проверки</text>
|
||||
|
||||
<rect x="346" y="132" width="268" height="66" rx="14" fill="#5f7eea"/>
|
||||
<text x="382" y="160" fill="#fff" font-family="Arial, sans-serif" font-size="18" font-weight="700">curl_exec завершился</text>
|
||||
<text x="394" y="184" fill="#eaf0ff" font-family="Arial, sans-serif" font-size="15">error + HTTP-код + времена</text>
|
||||
|
||||
<line x1="480" y1="198" x2="208" y2="255" stroke="#a7c7e8" stroke-width="3" marker-end="url(#a)"/>
|
||||
<line x1="480" y1="198" x2="480" y2="255" stroke="#a7c7e8" stroke-width="3" marker-end="url(#a)"/>
|
||||
<line x1="480" y1="198" x2="752" y2="255" stroke="#a7c7e8" stroke-width="3" marker-end="url(#a)"/>
|
||||
|
||||
<rect x="62" y="270" width="292" height="116" rx="16" fill="#263e64" stroke="#7fa8d5"/>
|
||||
<text x="87" y="303" fill="#fff" font-family="Arial, sans-serif" font-size="19" font-weight="700">Нет HTTP-кода</text>
|
||||
<text x="87" y="332" fill="#d7e8f7" font-family="Arial, sans-serif" font-size="16">Смотрим name lookup,</text>
|
||||
<text x="87" y="355" fill="#d7e8f7" font-family="Arial, sans-serif" font-size="16">connect, appconnect.</text>
|
||||
<text x="87" y="378" fill="#a9c7ea" font-family="Arial, sans-serif" font-size="15">Граница: сеть или TLS.</text>
|
||||
|
||||
<rect x="334" y="270" width="292" height="116" rx="16" fill="#5a3a51" stroke="#df8192"/>
|
||||
<text x="359" y="303" fill="#fff" font-family="Arial, sans-serif" font-size="19" font-weight="700">Первый байт поздний</text>
|
||||
<text x="359" y="332" fill="#f2d9df" font-family="Arial, sans-serif" font-size="16">connect завершён,</text>
|
||||
<text x="359" y="355" fill="#f2d9df" font-family="Arial, sans-serif" font-size="16">starttransfer растёт.</text>
|
||||
<text x="359" y="378" fill="#f3b4c0" font-family="Arial, sans-serif" font-size="15">Граница: партнёр или очередь.</text>
|
||||
|
||||
<rect x="606" y="270" width="292" height="116" rx="16" fill="#5b4b37" stroke="#f1b15f"/>
|
||||
<text x="631" y="303" fill="#fff" font-family="Arial, sans-serif" font-size="19" font-weight="700">Тело идёт слишком долго</text>
|
||||
<text x="631" y="332" fill="#fff0d6" font-family="Arial, sans-serif" font-size="16">starttransfer есть,</text>
|
||||
<text x="631" y="355" fill="#fff0d6" font-family="Arial, sans-serif" font-size="16">total упирается в лимит.</text>
|
||||
<text x="631" y="378" fill="#ffd99b" font-family="Arial, sans-serif" font-size="15">Граница: размер или скорость.</text>
|
||||
|
||||
<line x1="208" y1="386" x2="208" y2="426" stroke="#a7c7e8" stroke-width="3" marker-end="url(#a)"/>
|
||||
<line x1="480" y1="386" x2="480" y2="426" stroke="#a7c7e8" stroke-width="3" marker-end="url(#a)"/>
|
||||
<line x1="752" y1="386" x2="752" y2="426" stroke="#a7c7e8" stroke-width="3" marker-end="url(#a)"/>
|
||||
|
||||
<rect x="62" y="442" width="292" height="112" rx="14" fill="#18314f"/>
|
||||
<text x="87" y="476" fill="#fff" font-family="Arial, sans-serif" font-size="16" font-weight="700">Проверить адрес, DNS и CA</text>
|
||||
<text x="87" y="524" fill="#c7d9eb" font-family="Arial, sans-serif" font-size="15">Не лечить ростом общего лимита.</text>
|
||||
|
||||
<rect x="334" y="442" width="292" height="112" rx="14" fill="#18314f"/>
|
||||
<text x="359" y="476" fill="#fff" font-family="Arial, sans-serif" font-size="16" font-weight="700">Передать время и ID</text>
|
||||
<text x="359" y="497" fill="#fff" font-family="Arial, sans-serif" font-size="16" font-weight="700">партнёру</text>
|
||||
<text x="359" y="524" fill="#c7d9eb" font-family="Arial, sans-serif" font-size="15">Повтор только по контракту операции.</text>
|
||||
|
||||
<rect x="606" y="442" width="292" height="112" rx="14" fill="#18314f"/>
|
||||
<text x="631" y="476" fill="#fff" font-family="Arial, sans-serif" font-size="16" font-weight="700">Проверить объём ответа</text>
|
||||
<text x="631" y="497" fill="#fff" font-family="Arial, sans-serif" font-size="16" font-weight="700">и низкую скорость</text>
|
||||
<text x="631" y="524" fill="#c7d9eb" font-family="Arial, sans-serif" font-size="15">Отдельно считать неполный ответ.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.6 KiB |
@@ -1,38 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="960" height="560" viewBox="0 0 960 560" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Три ограничения ожидания в libcurl</title>
|
||||
<desc id="desc">Схема сопоставляет connect timeout, общий timeout и пару low speed limit плюс low speed time. Общий лимит охватывает соединение, а low speed отслеживает среднюю скорость передачи ниже заданного порога.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#14213d"/>
|
||||
<stop offset="1" stop-color="#1d3557"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" markerWidth="10" markerHeight="10" refX="7" refY="3" orient="auto">
|
||||
<path d="M0,0 L0,6 L8,3 z" fill="#a8c7e8"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="960" height="560" rx="28" fill="url(#bg)"/>
|
||||
<text x="54" y="68" fill="#fff" font-family="Arial, sans-serif" font-size="30" font-weight="700">Три условия остановки у одного cURL-вызова</text>
|
||||
<text x="54" y="103" fill="#c8daec" font-family="Arial, sans-serif" font-size="18">Они отвечают на разные вопросы и не заменяют друг друга</text>
|
||||
|
||||
<rect x="62" y="148" width="836" height="108" rx="18" fill="#0e1b30" stroke="#6b93bd" stroke-width="2"/>
|
||||
<text x="88" y="184" fill="#7de0cf" font-family="Arial, sans-serif" font-size="20" font-weight="700">CURLOPT_CONNECTTIMEOUT</text>
|
||||
<text x="88" y="216" fill="#d7e8f7" font-family="Arial, sans-serif" font-size="17">До соединения: DNS → TCP → TLS.</text>
|
||||
<text x="88" y="239" fill="#d7e8f7" font-family="Arial, sans-serif" font-size="17">После него connect timeout уже не действует.</text>
|
||||
<rect x="698" y="172" width="168" height="58" rx="12" fill="#1c6b61"/>
|
||||
<text x="723" y="207" fill="#fff" font-family="Arial, sans-serif" font-size="18" font-weight="700">например, 2 с</text>
|
||||
|
||||
<line x1="480" y1="274" x2="480" y2="310" stroke="#a8c7e8" stroke-width="3" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="62" y="322" width="836" height="108" rx="18" fill="#0e1b30" stroke="#d96b7d" stroke-width="2"/>
|
||||
<text x="88" y="358" fill="#ffa7b5" font-family="Arial, sans-serif" font-size="20" font-weight="700">CURLOPT_TIMEOUT</text>
|
||||
<text x="88" y="390" fill="#d7e8f7" font-family="Arial, sans-serif" font-size="17">Весь перенос от старта до конца.</text>
|
||||
<text x="88" y="413" fill="#d7e8f7" font-family="Arial, sans-serif" font-size="17">Connect timeout находится внутри этого потолка.</text>
|
||||
<rect x="698" y="346" width="168" height="58" rx="12" fill="#963f53"/>
|
||||
<text x="723" y="381" fill="#fff" font-family="Arial, sans-serif" font-size="18" font-weight="700">например, 8 с</text>
|
||||
|
||||
<rect x="62" y="462" width="400" height="58" rx="14" fill="#2b4e70" stroke="#f3a348"/>
|
||||
<text x="84" y="498" fill="#fff" font-family="Arial, sans-serif" font-size="18" font-weight="700">LOW_SPEED_LIMIT + LOW_SPEED_TIME</text>
|
||||
<rect x="490" y="462" width="408" height="58" rx="14" fill="#2b4e70" stroke="#f3a348"/>
|
||||
<text x="514" y="487" fill="#ffdfb0" font-family="Arial, sans-serif" font-size="16">Пример: ниже 100 Б/с 15 секунд</text>
|
||||
<text x="514" y="509" fill="#d7e8f7" font-family="Arial, sans-serif" font-size="15">Это граница низкой скорости, не отдельный API read timeout.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.5 KiB |
@@ -1,73 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 900" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Контракт Ajax-формы в legacy jQuery</title>
|
||||
<desc id="desc">Диаграмма показывает состояния формы: готова, запрос отправлен, успешный или ошибочный ответ, затем обязательное освобождение интерфейса в обработчике always.</desc>
|
||||
<defs>
|
||||
<style>
|
||||
.bg { fill: #fffdfa; }
|
||||
.title { fill: #1e252d; font: 700 39px Arial, sans-serif; }
|
||||
.sub { fill: #64707d; font: 25px Arial, sans-serif; }
|
||||
.state { stroke-width: 3; }
|
||||
.idle { fill: #eef3fa; stroke: #355c9a; }
|
||||
.request { fill: #fff4e8; stroke: #b4432a; }
|
||||
.success { fill: #e5f2ed; stroke: #216869; }
|
||||
.failure { fill: #f9eceb; stroke: #a43228; }
|
||||
.final { fill: #f3f6f9; stroke: #64707d; }
|
||||
.state-title { fill: #1e252d; font: 700 30px Arial, sans-serif; text-anchor: middle; }
|
||||
.state-copy { fill: #44515d; font: 23px Arial, sans-serif; text-anchor: middle; }
|
||||
.code { fill: #18385d; font: 700 18px "Courier New", monospace; text-anchor: middle; }
|
||||
.arrow { fill: none; stroke: #64707d; stroke-width: 6; marker-end: url(#arrow); }
|
||||
.safe { fill: #65492e; font: 700 26px Arial, sans-serif; text-anchor: middle; }
|
||||
</style>
|
||||
<marker id="arrow" markerWidth="14" markerHeight="14" refX="11" refY="7" orient="auto">
|
||||
<path d="M0,0 L14,7 L0,14 z" fill="#64707d"/>
|
||||
</marker>
|
||||
</defs>
|
||||
|
||||
<rect class="bg" width="1200" height="900"/>
|
||||
<text class="title" x="65" y="72">Ajax-форма: интерфейс возвращается</text>
|
||||
<text class="title" x="65" y="115">в готовое состояние</text>
|
||||
<text class="sub" x="65" y="158">Клиентский флаг убирает повторный submit в текущем DOM, а always освобождает кнопку.</text>
|
||||
|
||||
<rect class="state idle" x="75" y="235" width="235" height="150" rx="25"/>
|
||||
<text class="state-title" x="192" y="286">1. Готова</text>
|
||||
<text class="state-copy" x="192" y="327">Кнопка доступна,</text>
|
||||
<text class="state-copy" x="192" y="358">запроса нет.</text>
|
||||
|
||||
<path class="arrow" d="M310 310 H410"/>
|
||||
|
||||
<rect class="state request" x="410" y="215" width="380" height="190" rx="25"/>
|
||||
<text class="state-title" x="600" y="267">2. submit</text>
|
||||
<text class="code" x="600" y="302">data('request')</text>
|
||||
<text class="code" x="600" y="329">+ prop('disabled')</text>
|
||||
<text class="state-copy" x="600" y="367">Один jqXHR хранится на форме.</text>
|
||||
<text class="state-copy" x="600" y="393">Повторный submit выходит сразу.</text>
|
||||
|
||||
<path class="arrow" d="M790 310 H885"/>
|
||||
|
||||
<rect class="state final" x="885" y="235" width="240" height="150" rx="25"/>
|
||||
<text class="state-title" x="1005" y="286">3. jqXHR</text>
|
||||
<text class="state-copy" x="1005" y="327">Серверный ответ</text>
|
||||
<text class="state-copy" x="1005" y="358">или ошибка сети.</text>
|
||||
|
||||
<path class="arrow" d="M1005 385 V500 H795"/>
|
||||
<path class="arrow" d="M1005 385 V500 H405"/>
|
||||
|
||||
<rect class="state success" x="625" y="535" width="340" height="155" rx="25"/>
|
||||
<text class="state-title" x="795" y="584">4a. done</text>
|
||||
<text class="state-copy" x="795" y="625">Показать подтверждённый</text>
|
||||
<text class="state-copy" x="795" y="656">результат сервера.</text>
|
||||
|
||||
<rect class="state failure" x="235" y="535" width="340" height="155" rx="25"/>
|
||||
<text class="state-title" x="405" y="584">4b. fail</text>
|
||||
<text class="state-copy" x="405" y="625">Показать ошибку и не</text>
|
||||
<text class="state-copy" x="405" y="656">считать отправку успехом.</text>
|
||||
|
||||
<path class="arrow" d="M405 690 V758 H600"/>
|
||||
<path class="arrow" d="M795 690 V758 H600"/>
|
||||
|
||||
<rect class="state final" x="415" y="780" width="370" height="75" rx="20"/>
|
||||
<text class="code" x="600" y="816">always: removeData</text>
|
||||
<text class="code" x="600" y="841">+ disabled(false)</text>
|
||||
|
||||
<text class="safe" x="600" y="885">Ограничение: клиент не заменяет серверную защиту от повторной операции.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.3 KiB |
@@ -1,69 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 890" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Прямая и делегированная привязка событий после замены HTML</title>
|
||||
<desc id="desc">Сравнение двух подходов: прямой обработчик находится на кнопке и исчезает при замене содержимого контейнера, делегированный обработчик остаётся на постоянном контейнере и получает события от новой кнопки.</desc>
|
||||
<defs>
|
||||
<style>
|
||||
.bg { fill: #fffdfa; }
|
||||
.title { fill: #1e252d; font: 700 40px Arial, sans-serif; }
|
||||
.sub { fill: #64707d; font: 25px Arial, sans-serif; }
|
||||
.panel { fill: #ffffff; stroke-width: 3; }
|
||||
.bad { stroke: #b4432a; }
|
||||
.good { stroke: #216869; }
|
||||
.panel-title { fill: #1e252d; font: 700 31px Arial, sans-serif; text-anchor: middle; }
|
||||
.copy { fill: #44515d; font: 23px Arial, sans-serif; text-anchor: middle; }
|
||||
.code { fill: #18385d; font: 700 17px "Courier New", monospace; text-anchor: middle; }
|
||||
.root { fill: #eef3fa; stroke: #355c9a; stroke-width: 3; }
|
||||
.old { fill: #fff4e8; stroke: #b4432a; stroke-width: 3; }
|
||||
.new { fill: #e5f2ed; stroke: #216869; stroke-width: 3; }
|
||||
.handler { fill: #f3f6f9; stroke: #64707d; stroke-width: 2; }
|
||||
.cross { stroke: #b4432a; stroke-width: 7; stroke-linecap: round; }
|
||||
.arrow { fill: none; stroke: #64707d; stroke-width: 5; marker-end: url(#arrow); }
|
||||
.bubble { fill: none; stroke: #216869; stroke-width: 5; stroke-dasharray: 12 10; marker-end: url(#arrow-green); }
|
||||
.note { fill: #65492e; font: 700 26px Arial, sans-serif; text-anchor: middle; }
|
||||
</style>
|
||||
<marker id="arrow" markerWidth="14" markerHeight="14" refX="11" refY="7" orient="auto">
|
||||
<path d="M0,0 L14,7 L0,14 z" fill="#64707d"/>
|
||||
</marker>
|
||||
<marker id="arrow-green" markerWidth="14" markerHeight="14" refX="11" refY="7" orient="auto">
|
||||
<path d="M0,0 L14,7 L0,14 z" fill="#216869"/>
|
||||
</marker>
|
||||
</defs>
|
||||
|
||||
<rect class="bg" width="1200" height="890"/>
|
||||
<text class="title" x="65" y="82">После container.html(): что остаётся?</text>
|
||||
<text class="sub" x="65" y="126">Событие переживает замену DOM только тогда, когда привязано к постоянному предку.</text>
|
||||
|
||||
<rect class="panel bad" x="60" y="190" width="510" height="570" rx="28"/>
|
||||
<text class="panel-title" x="315" y="245">Прямая привязка к кнопке</text>
|
||||
<text class="code" x="315" y="282">$('.js-remove')</text>
|
||||
<text class="code" x="315" y="310">.on('click', handler)</text>
|
||||
|
||||
<rect class="root" x="125" y="335" width="380" height="170" rx="20"/>
|
||||
<text class="copy" x="315" y="378">#cart получает новый HTML</text>
|
||||
<rect class="old" x="210" y="414" width="210" height="60" rx="12"/>
|
||||
<text class="copy" x="315" y="452">старая кнопка</text>
|
||||
<rect class="handler" x="160" y="530" width="310" height="70" rx="15"/>
|
||||
<text class="copy" x="315" y="563">обработчик жил</text>
|
||||
<text class="copy" x="315" y="589">на дочернем узле</text>
|
||||
<path class="arrow" d="M315 505 V526"/>
|
||||
<path class="cross" d="M256 636 L374 704 M374 636 L256 704"/>
|
||||
<text class="copy" x="315" y="735">Новая кнопка создана без него.</text>
|
||||
|
||||
<rect class="panel good" x="630" y="190" width="510" height="570" rx="28"/>
|
||||
<text class="panel-title" x="885" y="245">Делегирование от #cart</text>
|
||||
<text class="code" x="885" y="282">$('#cart').on('click.cart',</text>
|
||||
<text class="code" x="885" y="310">'.js-remove', handler)</text>
|
||||
|
||||
<rect class="root" x="695" y="335" width="380" height="235" rx="20"/>
|
||||
<text class="copy" x="885" y="378">#cart остаётся в DOM</text>
|
||||
<rect class="handler" x="748" y="402" width="274" height="58" rx="14"/>
|
||||
<text class="copy" x="885" y="439">обработчик на контейнере</text>
|
||||
<rect class="new" x="780" y="487" width="210" height="60" rx="12"/>
|
||||
<text class="copy" x="885" y="525">новая кнопка</text>
|
||||
<path class="bubble" d="M885 487 V463"/>
|
||||
<text class="copy" x="885" y="620">Клик всплывает до #cart.</text>
|
||||
<text class="copy" x="885" y="655">Перепривязывать кнопку не нужно.</text>
|
||||
|
||||
<rect x="160" y="800" width="880" height="54" rx="16" fill="#f3f6f9" stroke="#64707d" stroke-width="2"/>
|
||||
<text class="note" x="600" y="836">Корень — ближайший постоянный контейнер.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.6 KiB |
@@ -1,58 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 790" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Повторная инициализация jQuery-виджета без дублирования обработчиков</title>
|
||||
<desc id="desc">Схема показывает, как повторный вызов функции инициализации снимает только свои обработчики через пространство имён и затем назначает один новый обработчик.</desc>
|
||||
<defs>
|
||||
<style>
|
||||
.bg { fill: #fffdfa; }
|
||||
.title { fill: #1e252d; font: 700 42px Arial, sans-serif; }
|
||||
.sub { fill: #64707d; font: 26px Arial, sans-serif; }
|
||||
.card { stroke-width: 3; }
|
||||
.warm { fill: #fff4e8; stroke: #b4432a; }
|
||||
.blue { fill: #eef3fa; stroke: #355c9a; }
|
||||
.green { fill: #e5f2ed; stroke: #216869; }
|
||||
.card-title { fill: #1e252d; font: 700 30px Arial, sans-serif; text-anchor: middle; }
|
||||
.card-copy { fill: #44515d; font: 24px Arial, sans-serif; text-anchor: middle; }
|
||||
.code { fill: #18385d; font: 700 21px "Courier New", monospace; text-anchor: middle; }
|
||||
.note { fill: #65492e; font: 700 28px Arial, sans-serif; text-anchor: middle; }
|
||||
.small { fill: #44515d; font: 23px Arial, sans-serif; text-anchor: middle; }
|
||||
.arrow { fill: none; stroke: #64707d; stroke-width: 6; marker-end: url(#arrow); }
|
||||
</style>
|
||||
<marker id="arrow" markerWidth="14" markerHeight="14" refX="11" refY="7" orient="auto">
|
||||
<path d="M0,0 L14,7 L0,14 z" fill="#64707d"/>
|
||||
</marker>
|
||||
</defs>
|
||||
|
||||
<rect class="bg" width="1200" height="790"/>
|
||||
<text class="title" x="70" y="78">Повторный mount: один обработчик</text>
|
||||
<text class="title" x="70" y="126">при любом числе вызовов</text>
|
||||
<text class="sub" x="70" y="170">Пространство имён отделяет события виджета от остального legacy-кода.</text>
|
||||
|
||||
<rect class="card warm" x="70" y="245" width="300" height="235" rx="28"/>
|
||||
<text class="card-title" x="220" y="300">1. mount(root)</text>
|
||||
<text class="card-copy" x="220" y="345">Виджет вызывают</text>
|
||||
<text class="card-copy" x="220" y="380">после Ajax, таба</text>
|
||||
<text class="card-copy" x="220" y="415">или повторного рендера.</text>
|
||||
|
||||
<path class="arrow" d="M370 362 H455"/>
|
||||
|
||||
<rect class="card blue" x="455" y="245" width="300" height="235" rx="28"/>
|
||||
<text class="card-title" x="605" y="300">2. Снять только свои</text>
|
||||
<text class="code" x="605" y="360">.off('.orderForm')</text>
|
||||
<text class="card-copy" x="605" y="410">Соседние click-события</text>
|
||||
<text class="card-copy" x="605" y="443">не трогаем.</text>
|
||||
|
||||
<path class="arrow" d="M755 362 H840"/>
|
||||
|
||||
<rect class="card green" x="840" y="245" width="290" height="235" rx="28"/>
|
||||
<text class="card-title" x="985" y="300">3. Назначить один</text>
|
||||
<text class="code" x="985" y="360">.on('click.orderForm')</text>
|
||||
<text class="card-copy" x="985" y="410">Новый обработчик</text>
|
||||
<text class="card-copy" x="985" y="443">предсказуемо один.</text>
|
||||
|
||||
<path class="arrow" d="M600 520 V600"/>
|
||||
<rect x="180" y="620" width="840" height="90" rx="22" fill="#f3f6f9" stroke="#64707d" stroke-width="2"/>
|
||||
<text class="note" x="600" y="660">Проверка: три вызова mount() → одна отправка формы.</text>
|
||||
<text class="small" x="600" y="694">Это свойство функции инициализации, а не удача порядка загрузки.</text>
|
||||
|
||||
<text class="small" x="600" y="755">Схема для статьи о jQuery 3.x и legacy-интерфейсе, май 2018.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.8 KiB |
@@ -1,44 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 620" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Диагностика JSON-ответа API</title>
|
||||
<desc id="desc">Сырой ответ разбирается функцией json_decode, затем проверяется json_last_error, а при успехе — тип и обязательные поля контракта.</desc>
|
||||
<defs>
|
||||
<linearGradient id="json-bg" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#173a46"/>
|
||||
<stop offset="1" stop-color="#245f55"/>
|
||||
</linearGradient>
|
||||
<marker id="json-arrow" markerWidth="10" markerHeight="10" refX="9" refY="5" orient="auto">
|
||||
<path d="M0 0 L10 5 L0 10z" fill="#f2d38d"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="1200" height="620" rx="34" fill="url(#json-bg)"/>
|
||||
<text x="72" y="86" fill="#fcf7e8" font-family="Arial, sans-serif" font-size="32" font-weight="700">«null» и ошибка синтаксиса — не один случай</text>
|
||||
<text x="72" y="124" fill="#c2dfd2" font-family="Arial, sans-serif" font-size="19">Сначала проверяем корректность JSON, потом — договор конкретного endpoint</text>
|
||||
<g font-family="Arial, sans-serif">
|
||||
<rect x="68" y="242" width="208" height="122" rx="19" fill="#d4e8ff"/>
|
||||
<text x="112" y="289" fill="#244868" font-size="23" font-weight="700">Сырой ответ</text>
|
||||
<text x="102" y="323" fill="#244868" font-size="17">строка + размер</text>
|
||||
<path d="M276 303 H386" fill="none" stroke="#f2d38d" stroke-width="5" marker-end="url(#json-arrow)"/>
|
||||
<rect x="407" y="242" width="202" height="122" rx="19" fill="#f2d38d"/>
|
||||
<text x="440" y="289" fill="#4a3b21" font-size="23" font-weight="700">json_decode</text>
|
||||
<text x="446" y="323" fill="#4a3b21" font-size="17">без догадок</text>
|
||||
<path d="M609 303 H716" fill="none" stroke="#f2d38d" stroke-width="5" marker-end="url(#json-arrow)"/>
|
||||
<rect x="737" y="242" width="192" height="122" rx="19" fill="#b8e8e0"/>
|
||||
<text x="771" y="289" fill="#204944" font-size="22" font-weight="700">json_last_error</text>
|
||||
<text x="776" y="323" fill="#204944" font-size="17">JSON_ERROR_NONE?</text>
|
||||
<path d="M833 364 V452 H609" fill="none" stroke="#f2d38d" stroke-width="5" marker-end="url(#json-arrow)"/>
|
||||
<text x="780" y="414" fill="#f2d38d" font-size="16">нет</text>
|
||||
<rect x="408" y="449" width="204" height="104" rx="19" fill="#f5c5bb"/>
|
||||
<text x="438" y="491" fill="#61332d" font-size="21" font-weight="700">decode error</text>
|
||||
<text x="431" y="523" fill="#61332d" font-size="16">код + хеш тела</text>
|
||||
<path d="M929 303 H1000" fill="none" stroke="#f2d38d" stroke-width="5" marker-end="url(#json-arrow)"/>
|
||||
<text x="948" y="281" fill="#f2d38d" font-size="16">да</text>
|
||||
<rect x="1021" y="242" width="125" height="122" rx="19" fill="#e2d5ff"/>
|
||||
<text x="1047" y="286" fill="#4c376c" font-size="20" font-weight="700">Контракт</text>
|
||||
<text x="1036" y="320" fill="#4c376c" font-size="16">тип и поля</text>
|
||||
<path d="M1083 364 V452 H1000" fill="none" stroke="#f2d38d" stroke-width="5" marker-end="url(#json-arrow)"/>
|
||||
<rect x="797" y="449" width="204" height="104" rx="19" fill="#f5c5bb"/>
|
||||
<text x="823" y="491" fill="#61332d" font-size="21" font-weight="700">contract error</text>
|
||||
<text x="830" y="523" fill="#61332d" font-size="16">валидный JSON</text>
|
||||
</g>
|
||||
<text x="72" y="584" fill="#c2dfd2" font-family="Arial, sans-serif" font-size="18">Не пишем тело в общий журнал: размер и SHA-256 достаточно сравнить два ответа.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.7 KiB |
@@ -1,56 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 1040" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Контракт legacy-формы с изображением</title>
|
||||
<desc id="desc">Вертикальная диаграмма разделяет браузерный preview, передачу multipart POST, серверный выбор действия и новое чтение карточки Bitrix.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" x2="1" y1="0" y2="1">
|
||||
<stop offset="0" stop-color="#18181b"/>
|
||||
<stop offset="1" stop-color="#1f2937"/>
|
||||
</linearGradient>
|
||||
<filter id="shadow" x="-15%" y="-10%" width="130%" height="130%">
|
||||
<feDropShadow dx="0" dy="10" stdDeviation="10" flood-color="#030712" flood-opacity=".3"/>
|
||||
</filter>
|
||||
<marker id="yellow" markerWidth="12" markerHeight="12" refX="6" refY="10" orient="auto">
|
||||
<path d="M0,0 L12,0 L6,12 Z" fill="#fbbf24"/>
|
||||
</marker>
|
||||
<marker id="blue" markerWidth="12" markerHeight="12" refX="6" refY="10" orient="auto">
|
||||
<path d="M0,0 L12,0 L6,12 Z" fill="#60a5fa"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="640" height="1040" rx="28" fill="url(#bg)"/>
|
||||
<g font-family="Inter,Arial,sans-serif">
|
||||
<text x="48" y="58" fill="#f9fafb" font-size="27" font-weight="700">Legacy-форма:</text>
|
||||
<text x="48" y="91" fill="#f9fafb" font-size="27" font-weight="700">preview не равен результату</text>
|
||||
<text x="48" y="122" fill="#9ca3af" font-size="16">Каждый сигнал имеет одну роль и одного владельца.</text>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="48" y="166" width="544" height="190" rx="20" fill="#111827" stroke="#4b5563"/>
|
||||
<rect x="48" y="460" width="544" height="210" rx="20" fill="#172554" stroke="#60a5fa"/>
|
||||
<rect x="48" y="776" width="544" height="150" rx="20" fill="#0f172a" stroke="#4f46e5"/>
|
||||
</g>
|
||||
|
||||
<text x="80" y="211" fill="#f9fafb" font-size="22" font-weight="700">1. Браузер и jQuery</text>
|
||||
<text x="80" y="251" fill="#fef3c7" font-size="18" font-weight="700">CATALOG_PREVIEW</text>
|
||||
<text x="80" y="277" fill="#d1d5db" font-size="16">Бинарный файл для multipart POST.</text>
|
||||
<text x="80" y="310" fill="#93c5fd" font-size="18" font-weight="700">.js-photo-state и preview</text>
|
||||
<text x="80" y="336" fill="#d1d5db" font-size="16">Только обратная связь для человека.</text>
|
||||
|
||||
<path d="M320 356 V460" fill="none" stroke="#fbbf24" stroke-width="4" marker-end="url(#yellow)"/>
|
||||
<text x="344" y="420" fill="#fde68a" font-size="15" font-weight="700">отправить FormData</text>
|
||||
|
||||
<text x="80" y="505" fill="#f9fafb" font-size="22" font-weight="700">2. PHP и Bitrix</text>
|
||||
<text x="80" y="547" fill="#bfdbfe" font-size="18" font-weight="700">Проверить multipart POST</text>
|
||||
<text x="80" y="573" fill="#dbeafe" font-size="16">Имя поля, upload error, размер файла.</text>
|
||||
<text x="80" y="610" fill="#bfdbfe" font-size="18" font-weight="700">Выбрать одну ветку</text>
|
||||
<text x="80" y="636" fill="#dbeafe" font-size="16">Новый файл, оставить или удалить.</text>
|
||||
|
||||
<path d="M320 670 V776" fill="none" stroke="#60a5fa" stroke-width="4" marker-end="url(#blue)"/>
|
||||
<text x="344" y="734" fill="#bfdbfe" font-size="15" font-weight="700">вернуть результат</text>
|
||||
|
||||
<text x="80" y="821" fill="#f9fafb" font-size="22" font-weight="700">3. Свежая карточка</text>
|
||||
<text x="80" y="861" fill="#c7d2fe" font-size="17">CIBlockElement::Update вернул true.</text>
|
||||
<text x="80" y="887" fill="#c7d2fe" font-size="17">Новое чтение подтверждает ID изображения.</text>
|
||||
|
||||
<rect x="48" y="956" width="544" height="46" rx="14" fill="#0b1220" stroke="#374151"/>
|
||||
<text x="76" y="986" fill="#e5e7eb" font-size="15">Критерий: один POST, одна ветка, затем новая страница.</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.0 KiB |
@@ -1,34 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 900" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Трасса фальшиво-зелёного сценария PHP</title>
|
||||
<desc id="desc">Unit-тест подменяет базу и HTTP-клиент, поэтому не видит ошибки конфигурации. Интеграционный маршрут проходит через PDO, тестовую базу, локальный callback и связывает шаги request ID.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" x2="1" y1="0" y2="1"><stop stop-color="#172942"/><stop offset="1" stop-color="#322f55"/></linearGradient>
|
||||
<marker id="arrowBlue" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto"><path d="M0,0 L10,5 L0,10z" fill="#8ed7ff"/></marker>
|
||||
<marker id="arrowGreen" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto"><path d="M0,0 L10,5 L0,10z" fill="#7ce3b9"/></marker>
|
||||
</defs>
|
||||
<rect width="720" height="900" rx="30" fill="url(#bg)"/>
|
||||
<text x="52" y="65" fill="#fff" font-family="Arial, sans-serif" font-size="34" font-weight="700">Где появляется ложная зелень</text>
|
||||
<text x="52" y="102" fill="#c3d2e8" font-family="Arial, sans-serif" font-size="22">Сначала видим границу, потом её проверяем</text>
|
||||
<rect x="55" y="150" width="610" height="165" rx="20" fill="#414366" stroke="#d2c4ff" stroke-width="3"/>
|
||||
<text x="86" y="199" fill="#fff" font-family="Arial, sans-serif" font-size="27" font-weight="700">UNIT: заранее заданный успех</text>
|
||||
<text x="86" y="239" fill="#e5e0ff" font-family="Arial, sans-serif" font-size="21">Подмены не читают DSN, не делают SQL</text>
|
||||
<text x="86" y="273" fill="#e5e0ff" font-family="Arial, sans-serif" font-size="21">и не видят cURL или HTTP status.</text>
|
||||
<path d="M360 315 V378" stroke="#8ed7ff" stroke-width="5" marker-end="url(#arrowBlue)"/>
|
||||
<rect x="55" y="398" width="610" height="210" rx="20" fill="#1e4260" stroke="#8ed7ff" stroke-width="3"/>
|
||||
<text x="86" y="445" fill="#ddf3ff" font-family="Arial, sans-serif" font-size="27" font-weight="700">Короткая трасса</text>
|
||||
<rect x="92" y="477" width="110" height="64" rx="12" fill="#305d7d"/><text x="147" y="517" text-anchor="middle" fill="#fff" font-family="Arial, sans-serif" font-size="21" font-weight="700">config</text>
|
||||
<path d="M202 509 H255" stroke="#8ed7ff" stroke-width="4" marker-end="url(#arrowBlue)"/>
|
||||
<rect x="267" y="477" width="90" height="64" rx="12" fill="#28604f"/><text x="312" y="517" text-anchor="middle" fill="#fff" font-family="Arial, sans-serif" font-size="21" font-weight="700">PDO</text>
|
||||
<path d="M357 509 H410" stroke="#8ed7ff" stroke-width="4" marker-end="url(#arrowBlue)"/>
|
||||
<rect x="422" y="477" width="90" height="64" rx="12" fill="#5b4d87"/><text x="467" y="517" text-anchor="middle" fill="#fff" font-family="Arial, sans-serif" font-size="21" font-weight="700">cURL</text>
|
||||
<path d="M512 509 H555" stroke="#8ed7ff" stroke-width="4" marker-end="url(#arrowBlue)"/>
|
||||
<rect x="567" y="477" width="66" height="64" rx="12" fill="#2a6175"/><text x="600" y="517" text-anchor="middle" fill="#fff" font-family="Arial, sans-serif" font-size="19" font-weight="700">202</text>
|
||||
<text x="92" y="576" fill="#c6e3f4" font-family="Arial, sans-serif" font-size="19">TEST_ vars</text>
|
||||
<text x="267" y="576" fill="#c6e3f4" font-family="Arial, sans-serif" font-size="19">test DB</text>
|
||||
<text x="422" y="576" fill="#c6e3f4" font-family="Arial, sans-serif" font-size="19">local callback</text>
|
||||
<rect x="55" y="667" width="610" height="170" rx="20" fill="#14372f" stroke="#7ce3b9" stroke-width="3"/>
|
||||
<text x="86" y="716" fill="#e5fff3" font-family="Arial, sans-serif" font-size="27" font-weight="700">INTEGRATION: реальный маршрут</text>
|
||||
<text x="86" y="757" fill="#c6efdc" font-family="Arial, sans-serif" font-size="22">registration-test-42 связывает шаги</text>
|
||||
<text x="86" y="792" fill="#c6efdc" font-family="Arial, sans-serif" font-size="22">и оставляет контролируемые следы.</text>
|
||||
<path d="M360 608 V660" stroke="#7ce3b9" stroke-width="4" stroke-dasharray="9 8" marker-end="url(#arrowGreen)"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.2 KiB |
@@ -1,51 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 620" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Диагностика PHP-ошибки в интеграции</title>
|
||||
<desc id="desc">Контекст операции создаётся перед вызовом партнёра и соединяется с тремя ветками обработки: warning, непойманное исключение и фатальная ошибка при завершении PHP.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" x2="1" y1="0" y2="1">
|
||||
<stop offset="0" stop-color="#101828"/>
|
||||
<stop offset="1" stop-color="#1d3d4f"/>
|
||||
</linearGradient>
|
||||
<filter id="shadow" x="-20%" y="-20%" width="140%" height="150%">
|
||||
<feDropShadow dx="0" dy="10" stdDeviation="10" flood-color="#06111a" flood-opacity=".32"/>
|
||||
</filter>
|
||||
<marker id="arrow" markerWidth="10" markerHeight="10" refX="9" refY="5" orient="auto">
|
||||
<path d="M0 0 L10 5 L0 10z" fill="#b8e8e0"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="1200" height="620" rx="34" fill="url(#bg)"/>
|
||||
<text x="72" y="88" fill="#eaf5f4" font-family="Arial, sans-serif" font-size="32" font-weight="700">Контекст не должен появляться после падения</text>
|
||||
<text x="72" y="125" fill="#a9c8c4" font-family="Arial, sans-serif" font-size="19">request ID и этап операции создаются до внешнего вызова</text>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="72" y="215" width="220" height="150" rx="20" fill="#f0b667"/>
|
||||
<text x="104" y="267" fill="#192538" font-family="Arial, sans-serif" font-size="22" font-weight="700">Операция</text>
|
||||
<text x="104" y="302" fill="#192538" font-family="Arial, sans-serif" font-size="18">request_id</text>
|
||||
<text x="104" y="329" fill="#192538" font-family="Arial, sans-serif" font-size="18">stage</text>
|
||||
</g>
|
||||
<path d="M292 290 H395" fill="none" stroke="#b8e8e0" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<circle cx="418" cy="290" r="15" fill="#b8e8e0"/>
|
||||
<path d="M433 290 H486 V193 H558" fill="none" stroke="#b8e8e0" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<path d="M433 290 H486 V291 H558" fill="none" stroke="#b8e8e0" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<path d="M433 290 H486 V389 H558" fill="none" stroke="#b8e8e0" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="578" y="137" width="255" height="112" rx="18" fill="#d4e8ff"/>
|
||||
<text x="608" y="180" fill="#183653" font-family="Arial, sans-serif" font-size="21" font-weight="700">warning / notice</text>
|
||||
<text x="608" y="214" fill="#183653" font-family="Arial, sans-serif" font-size="17">set_error_handler</text>
|
||||
<rect x="578" y="235" width="255" height="112" rx="18" fill="#d8f1e5"/>
|
||||
<text x="608" y="278" fill="#174133" font-family="Arial, sans-serif" font-size="21" font-weight="700">Throwable</text>
|
||||
<text x="608" y="312" fill="#174133" font-family="Arial, sans-serif" font-size="17">set_exception_handler</text>
|
||||
<rect x="578" y="333" width="255" height="112" rx="18" fill="#f6d9d2"/>
|
||||
<text x="608" y="376" fill="#63342b" font-family="Arial, sans-serif" font-size="21" font-weight="700">fatal error</text>
|
||||
<text x="608" y="410" fill="#63342b" font-family="Arial, sans-serif" font-size="17">shutdown + error_get_last</text>
|
||||
</g>
|
||||
<path d="M833 193 H930 V291 H994" fill="none" stroke="#b8e8e0" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<path d="M833 291 H994" fill="none" stroke="#b8e8e0" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<path d="M833 389 H930 V291 H994" fill="none" stroke="#b8e8e0" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="1014" y="215" width="140" height="150" rx="20" fill="#b8e8e0"/>
|
||||
<text x="1044" y="273" fill="#183b3a" font-family="Arial, sans-serif" font-size="22" font-weight="700">Лог</text>
|
||||
<text x="1037" y="307" fill="#183b3a" font-family="Arial, sans-serif" font-size="16">один факт</text>
|
||||
<text x="1034" y="333" fill="#183b3a" font-family="Arial, sans-serif" font-size="16">для разбора</text>
|
||||
</g>
|
||||
<text x="72" y="531" fill="#a9c8c4" font-family="Arial, sans-serif" font-size="18">Не пишем: пароли, токены, полный запрос и полный ответ партнёра.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.3 KiB |
@@ -1,27 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 900" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Контракт интеграционного теста PHP с базой данных</title>
|
||||
<desc id="desc">PHPUnit передаёт данные в PDO-репозиторий, тот записывает и читает отдельную тестовую базу данных, после чего транзакция откатывается.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" x2="1" y1="0" y2="1"><stop stop-color="#11213a"/><stop offset="1" stop-color="#1d3655"/></linearGradient>
|
||||
<marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto"><path d="M0,0 L10,5 L0,10z" fill="#84d5ff"/></marker>
|
||||
</defs>
|
||||
<rect width="720" height="900" rx="30" fill="url(#bg)"/>
|
||||
<text x="52" y="65" fill="#f3f8ff" font-family="Arial, sans-serif" font-size="34" font-weight="700">Контракт: запись и чтение</text>
|
||||
<text x="52" y="102" fill="#bfd0e4" font-family="Arial, sans-serif" font-size="22">Один путь через PDO и отдельную test DB</text>
|
||||
<rect x="62" y="160" width="596" height="126" rx="18" fill="#203d60" stroke="#84d5ff" stroke-width="3"/>
|
||||
<text x="360" y="211" text-anchor="middle" fill="#fff" font-family="Arial, sans-serif" font-size="30" font-weight="700">PHPUnit</text>
|
||||
<text x="360" y="250" text-anchor="middle" fill="#d3efff" font-family="Arial, sans-serif" font-size="23">вход, ожидание, фикстура</text>
|
||||
<path d="M360 286 V350" stroke="#84d5ff" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<rect x="62" y="370" width="596" height="142" rx="18" fill="#183952" stroke="#72e0bb" stroke-width="3"/>
|
||||
<text x="360" y="425" text-anchor="middle" fill="#fff" font-family="Arial, sans-serif" font-size="30" font-weight="700">PDO-репозиторий</text>
|
||||
<text x="360" y="464" text-anchor="middle" fill="#cbf5e6" font-family="Arial, sans-serif" font-size="23">SQL, типы, преобразование</text>
|
||||
<path d="M360 512 V575" stroke="#84d5ff" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<rect x="62" y="595" width="596" height="142" rx="18" fill="#3c365d" stroke="#bdadff" stroke-width="3"/>
|
||||
<ellipse cx="186" cy="638" rx="57" ry="19" fill="#887ec2"/>
|
||||
<path d="M129 638 V690 C129 716 243 716 243 690 V638" fill="#645997"/>
|
||||
<ellipse cx="186" cy="690" rx="57" ry="19" fill="#645997"/>
|
||||
<text x="421" y="654" text-anchor="middle" fill="#fff" font-family="Arial, sans-serif" font-size="29" font-weight="700">test DB</text>
|
||||
<text x="421" y="695" text-anchor="middle" fill="#eeeaff" font-family="Arial, sans-serif" font-size="22">отдельная схема</text>
|
||||
<rect x="62" y="778" width="596" height="72" rx="16" fill="#10243a" stroke="#456e95" stroke-width="2"/>
|
||||
<text x="92" y="823" fill="#d8efff" font-family="Arial, sans-serif" font-size="23">config → INSERT → SELECT → rollback</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 2.9 KiB |
@@ -1,76 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 900" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Выдача приватного документа через PHP</title>
|
||||
<desc id="desc">Последовательность запроса: браузер, маршрут приложения, база документов, закрытое хранилище, HTTP-ответ.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#f6f8fc"/>
|
||||
<stop offset="1" stop-color="#edf5f1"/>
|
||||
</linearGradient>
|
||||
<filter id="shadow" x="-20%" y="-20%" width="140%" height="140%">
|
||||
<feDropShadow dx="0" dy="12" stdDeviation="16" flood-color="#123049" flood-opacity=".11"/>
|
||||
</filter>
|
||||
<marker id="right-arrow" viewBox="0 0 12 12" refX="11" refY="6" markerWidth="10" markerHeight="10" orient="auto">
|
||||
<path d="M 0 1 L 11 6 L 0 11 z" fill="#3f6b78"/>
|
||||
</marker>
|
||||
<marker id="left-arrow" viewBox="0 0 12 12" refX="11" refY="6" markerWidth="10" markerHeight="10" orient="auto">
|
||||
<path d="M 0 1 L 11 6 L 0 11 z" fill="#6c8f9c"/>
|
||||
</marker>
|
||||
<style>
|
||||
.title { font: 700 44px Inter, Arial, sans-serif; fill: #17324a; }
|
||||
.subtitle { font: 400 23px Inter, Arial, sans-serif; fill: #597080; }
|
||||
.actor { font: 700 22px Inter, Arial, sans-serif; fill: #17324a; text-anchor: middle; }
|
||||
.role { font: 600 16px Inter, Arial, sans-serif; fill: #6b7d8d; letter-spacing: 1.4px; text-anchor: middle; }
|
||||
.label { font: 600 18px Inter, Arial, sans-serif; fill: #34566a; }
|
||||
.code { font: 600 17px Menlo, Consolas, monospace; fill: #236779; }
|
||||
.note { font: 400 18px Inter, Arial, sans-serif; fill: #466174; }
|
||||
</style>
|
||||
</defs>
|
||||
<rect width="1600" height="900" fill="url(#bg)"/>
|
||||
<text x="104" y="110" class="title">Приватный файл: доступ проверяется до чтения с диска</text>
|
||||
<text x="104" y="152" class="subtitle">URL содержит ID записи. Настоящий ключ и путь остаются за маршрутом приложения.</text>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="112" y="238" width="236" height="108" rx="22" fill="#ffffff"/>
|
||||
<text x="230" y="282" class="actor">Браузер</text>
|
||||
<text x="230" y="314" class="role">ПОЛЬЗОВАТЕЛЬ</text>
|
||||
|
||||
<rect x="466" y="238" width="250" height="108" rx="22" fill="#ffffff"/>
|
||||
<text x="591" y="282" class="actor">Маршрут PHP</text>
|
||||
<text x="591" y="314" class="role">АВТОРИЗАЦИЯ</text>
|
||||
|
||||
<rect x="837" y="238" width="248" height="108" rx="22" fill="#ffffff"/>
|
||||
<text x="961" y="282" class="actor">documents</text>
|
||||
<text x="961" y="314" class="role">БАЗА ДАННЫХ</text>
|
||||
|
||||
<rect x="1210" y="238" width="280" height="108" rx="22" fill="#ffffff"/>
|
||||
<text x="1350" y="282" class="actor">Закрытый каталог</text>
|
||||
<text x="1350" y="314" class="role">ФАЙЛОВАЯ СИСТЕМА</text>
|
||||
</g>
|
||||
|
||||
<line x1="230" y1="346" x2="230" y2="708" stroke="#b8cbd5" stroke-width="3" stroke-dasharray="9 10"/>
|
||||
<line x1="591" y1="346" x2="591" y2="708" stroke="#b8cbd5" stroke-width="3" stroke-dasharray="9 10"/>
|
||||
<line x1="961" y1="346" x2="961" y2="708" stroke="#b8cbd5" stroke-width="3" stroke-dasharray="9 10"/>
|
||||
<line x1="1350" y1="346" x2="1350" y2="708" stroke="#b8cbd5" stroke-width="3" stroke-dasharray="9 10"/>
|
||||
|
||||
<path d="M230 414 H580" fill="none" stroke="#3f6b78" stroke-width="6" stroke-linecap="round" marker-end="url(#right-arrow)"/>
|
||||
<text x="308" y="398" class="label">1. GET</text>
|
||||
<text x="308" y="430" class="code">/documents/42/download</text>
|
||||
|
||||
<path d="M591 490 H950" fill="none" stroke="#3f6b78" stroke-width="6" stroke-linecap="round" marker-end="url(#right-arrow)"/>
|
||||
<text x="684" y="474" class="label">2. Проверка владельца</text>
|
||||
<text x="684" y="506" class="code">id + owner_id + status</text>
|
||||
|
||||
<path d="M961 562 H1339" fill="none" stroke="#3f6b78" stroke-width="6" stroke-linecap="round" marker-end="url(#right-arrow)"/>
|
||||
<text x="1069" y="546" class="label">3. Найден ключ</text>
|
||||
<text x="1069" y="578" class="code">storage_key.pdf</text>
|
||||
|
||||
<path d="M1339 634 H602" fill="none" stroke="#6c8f9c" stroke-width="6" stroke-linecap="round" marker-end="url(#left-arrow)"/>
|
||||
<text x="1000" y="618" class="label">4. PHP читает только закрытый путь</text>
|
||||
|
||||
<path d="M580 706 H241" fill="none" stroke="#27846e" stroke-width="7" stroke-linecap="round" marker-end="url(#left-arrow)"/>
|
||||
<text x="314" y="689" class="label">5. HTTP-ответ</text>
|
||||
<text x="314" y="724" class="code">Content-Type: application/pdf</text>
|
||||
|
||||
<rect x="112" y="777" width="1378" height="66" rx="18" fill="#ffffff" stroke="#c9dcda" stroke-width="2"/>
|
||||
<text x="146" y="818" class="note">Прямого URL к каталогу нет: запись в базе связывает пользователя с ключом, а маршрут решает, можно ли читать файл.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.0 KiB |
@@ -1,38 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 900" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Граница unit и integration тестов PHP</title>
|
||||
<desc id="desc">Unit-тест заменяет репозиторий подставным объектом и проверяет правило сервиса. Integration-тест проходит через настоящий PDO или HTTP-адаптер к тестовому ресурсу.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" x2="1" y1="0" y2="1"><stop stop-color="#152943"/><stop offset="1" stop-color="#253350"/></linearGradient>
|
||||
<marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto"><path d="M0,0 L10,5 L0,10z" fill="#8fd8ff"/></marker>
|
||||
</defs>
|
||||
<rect width="720" height="900" rx="30" fill="url(#bg)"/>
|
||||
<text x="52" y="65" fill="#f8fbff" font-family="Arial, sans-serif" font-size="34" font-weight="700">Граница: правило и адаптер</text>
|
||||
<text x="52" y="102" fill="#bfd1e7" font-family="Arial, sans-serif" font-size="22">Подмена полезна, но не проверяет ресурс</text>
|
||||
<rect x="55" y="150" width="610" height="250" rx="20" fill="#1d3a59" stroke="#8fd8ff" stroke-width="3"/>
|
||||
<text x="86" y="197" fill="#d5efff" font-family="Arial, sans-serif" font-size="27" font-weight="700">UNIT</text>
|
||||
<rect x="88" y="228" width="158" height="86" rx="14" fill="#2e587b"/>
|
||||
<text x="167" y="279" text-anchor="middle" fill="#fff" font-family="Arial, sans-serif" font-size="23" font-weight="700">TestCase</text>
|
||||
<path d="M246 271 H321" stroke="#8fd8ff" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<rect x="335" y="228" width="145" height="86" rx="14" fill="#27634f"/>
|
||||
<text x="407" y="279" text-anchor="middle" fill="#fff" font-family="Arial, sans-serif" font-size="22" font-weight="700">сервис</text>
|
||||
<path d="M480 271 H540" stroke="#d7c8ff" stroke-width="4" stroke-dasharray="9 8" marker-end="url(#arrow)"/>
|
||||
<rect x="550" y="228" width="85" height="86" rx="14" fill="#564b86"/>
|
||||
<text x="592" y="279" text-anchor="middle" fill="#fff" font-family="Arial, sans-serif" font-size="22" font-weight="700">fake</text>
|
||||
<text x="86" y="361" fill="#b9d8f2" font-family="Arial, sans-serif" font-size="21">Проверяет локальное решение. SQL и HTTP остаются снаружи.</text>
|
||||
<rect x="55" y="455" width="610" height="328" rx="20" fill="#193f36" stroke="#78e1ba" stroke-width="3"/>
|
||||
<text x="86" y="503" fill="#cff9e6" font-family="Arial, sans-serif" font-size="27" font-weight="700">INTEGRATION</text>
|
||||
<rect x="88" y="548" width="158" height="86" rx="14" fill="#2e587b"/>
|
||||
<text x="167" y="599" text-anchor="middle" fill="#fff" font-family="Arial, sans-serif" font-size="23" font-weight="700">TestCase</text>
|
||||
<path d="M246 591 H320" stroke="#8fd8ff" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<rect x="335" y="548" width="145" height="86" rx="14" fill="#27634f"/>
|
||||
<text x="407" y="585" text-anchor="middle" fill="#fff" font-family="Arial, sans-serif" font-size="22" font-weight="700">PDO / cURL</text>
|
||||
<text x="407" y="612" text-anchor="middle" fill="#d5f7e8" font-family="Arial, sans-serif" font-size="18">адаптер</text>
|
||||
<path d="M480 591 H540" stroke="#78e1ba" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<rect x="550" y="548" width="85" height="86" rx="14" fill="#265b63"/>
|
||||
<text x="592" y="584" text-anchor="middle" fill="#fff" font-family="Arial, sans-serif" font-size="18" font-weight="700">test</text>
|
||||
<text x="592" y="611" text-anchor="middle" fill="#d6f4ff" font-family="Arial, sans-serif" font-size="18">DB/HTTP</text>
|
||||
<text x="86" y="688" fill="#c9f0df" font-family="Arial, sans-serif" font-size="21">Проверяет договор с контролируемым ресурсом.</text>
|
||||
<text x="86" y="726" fill="#a9d8c5" font-family="Arial, sans-serif" font-size="19">Один настоящий переход за тест — понятная причина падения.</text>
|
||||
<line x1="360" y1="400" x2="360" y2="455" stroke="#7890ad" stroke-width="3" stroke-dasharray="8 8"/>
|
||||
<text x="387" y="436" fill="#b8c9dc" font-family="Arial, sans-serif" font-size="18">граница подмены</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.2 KiB |
@@ -1,91 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 900" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Контракт безопасной загрузки аватара</title>
|
||||
<desc id="desc">Схема из четырёх шагов: браузер, временный файл PHP, проверка, закрытое хранилище.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#f6f8fc"/>
|
||||
<stop offset="1" stop-color="#eef4f3"/>
|
||||
</linearGradient>
|
||||
<filter id="shadow" x="-20%" y="-20%" width="140%" height="140%">
|
||||
<feDropShadow dx="0" dy="14" stdDeviation="18" flood-color="#123049" flood-opacity=".12"/>
|
||||
</filter>
|
||||
<marker id="arrow" viewBox="0 0 12 12" refX="11" refY="6" markerWidth="10" markerHeight="10" orient="auto">
|
||||
<path d="M 0 1 L 11 6 L 0 11 z" fill="#6b7d8d"/>
|
||||
</marker>
|
||||
<style>
|
||||
.title { font: 700 44px Inter, Arial, sans-serif; fill: #17324a; }
|
||||
.subtitle { font: 400 23px Inter, Arial, sans-serif; fill: #597080; }
|
||||
.step { font: 700 18px Inter, Arial, sans-serif; fill: #75909f; letter-spacing: 1.8px; }
|
||||
.card-title { font: 700 28px Inter, Arial, sans-serif; fill: #17324a; }
|
||||
.card-text { font: 400 20px Inter, Arial, sans-serif; fill: #466174; }
|
||||
.code { font: 600 18px Menlo, Consolas, monospace; fill: #1f6672; }
|
||||
.badge { font: 700 16px Inter, Arial, sans-serif; fill: #2e5267; }
|
||||
.note { font: 600 18px Inter, Arial, sans-serif; fill: #36536a; }
|
||||
</style>
|
||||
</defs>
|
||||
<rect width="1600" height="900" fill="url(#background)"/>
|
||||
<path d="M0 684 C260 613 404 779 643 692 S1139 590 1600 717 V900 H0Z" fill="#e4f0ef"/>
|
||||
<text x="106" y="116" class="title">Загрузка аватара: решение принимается до переноса</text>
|
||||
<text x="106" y="158" class="subtitle">Клиент присылает файл. Приложение выбирает допустимый тип, размеры и собственный ключ.</text>
|
||||
|
||||
<line x1="390" y1="435" x2="481" y2="435" stroke="#6b7d8d" stroke-width="7" stroke-linecap="round" marker-end="url(#arrow)"/>
|
||||
<line x1="765" y1="435" x2="856" y2="435" stroke="#6b7d8d" stroke-width="7" stroke-linecap="round" marker-end="url(#arrow)"/>
|
||||
<line x1="1140" y1="435" x2="1231" y2="435" stroke="#6b7d8d" stroke-width="7" stroke-linecap="round" marker-end="url(#arrow)"/>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="106" y="286" width="284" height="302" rx="24" fill="#ffffff"/>
|
||||
<rect x="106" y="286" width="284" height="12" rx="6" fill="#ea8847"/>
|
||||
<circle cx="154" cy="344" r="25" fill="#fce3d1"/>
|
||||
<text x="146" y="351" class="badge" fill="#c8692b">1</text>
|
||||
<text x="194" y="351" class="step">КЛИЕНТ</text>
|
||||
<text x="142" y="412" class="card-title">Форма</text>
|
||||
<text x="142" y="452" class="code">name=avatar</text>
|
||||
<text x="142" y="496" class="card-text">имя и Content-Type</text>
|
||||
<text x="142" y="526" class="card-text">остаются входом,</text>
|
||||
<text x="142" y="556" class="card-text">а не решением.</text>
|
||||
</g>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="481" y="286" width="284" height="302" rx="24" fill="#ffffff"/>
|
||||
<rect x="481" y="286" width="284" height="12" rx="6" fill="#6994c6"/>
|
||||
<circle cx="529" cy="344" r="25" fill="#dceafa"/>
|
||||
<text x="521" y="351" class="badge" fill="#4374af">2</text>
|
||||
<text x="569" y="351" class="step">PHP</text>
|
||||
<text x="517" y="412" class="card-title">Временный файл</text>
|
||||
<text x="517" y="452" class="code">$_FILES</text>
|
||||
<text x="517" y="496" class="card-text">error · size · tmp_name</text>
|
||||
<text x="517" y="526" class="card-text">Сначала убеждаемся,</text>
|
||||
<text x="517" y="556" class="card-text">что доставка завершилась.</text>
|
||||
</g>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="856" y="286" width="284" height="302" rx="24" fill="#ffffff"/>
|
||||
<rect x="856" y="286" width="284" height="12" rx="6" fill="#4eaa93"/>
|
||||
<circle cx="904" cy="344" r="25" fill="#d6f1e8"/>
|
||||
<text x="896" y="351" class="badge" fill="#27846e">3</text>
|
||||
<text x="944" y="351" class="step">ПРОВЕРКА</text>
|
||||
<text x="892" y="412" class="card-title">Контракт</text>
|
||||
<text x="892" y="452" class="code">finfo_file()</text>
|
||||
<text x="892" y="496" class="card-text">JPEG / PNG · 2 МБ</text>
|
||||
<text x="892" y="526" class="card-text">размеры изображения</text>
|
||||
<text x="892" y="556" class="card-text">и белый список.</text>
|
||||
</g>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="1231" y="286" width="284" height="302" rx="24" fill="#ffffff"/>
|
||||
<rect x="1231" y="286" width="284" height="12" rx="6" fill="#5d7f90"/>
|
||||
<circle cx="1279" cy="344" r="25" fill="#dce8ed"/>
|
||||
<text x="1271" y="351" class="badge" fill="#39586b">4</text>
|
||||
<text x="1319" y="351" class="step">ХРАНИЛИЩЕ</text>
|
||||
<text x="1267" y="412" class="card-title">Закрытый каталог</text>
|
||||
<text x="1267" y="452" class="code">7f4a...c2.png</text>
|
||||
<text x="1267" y="496" class="card-text">свой ключ приложения,</text>
|
||||
<text x="1267" y="526" class="card-text">никакого пути из</text>
|
||||
<text x="1267" y="556" class="card-text">исходного имени.</text>
|
||||
</g>
|
||||
|
||||
<rect x="106" y="688" width="1409" height="88" rx="20" fill="#ffffff" stroke="#c9dcda" stroke-width="2"/>
|
||||
<circle cx="158" cy="732" r="18" fill="#4eaa93"/>
|
||||
<path d="M149 732 l7 7 l13 -16" fill="none" stroke="#ffffff" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<text x="202" y="740" class="note">Перенос происходит только после проверки: из браузера в каталог попадает не «файл с именем», а запись, соответствующая контракту.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.9 KiB |
@@ -1,86 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1600 900" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Границы доверия при загрузке файла</title>
|
||||
<desc id="desc">Диаграмма показывает клиентские метаданные, результат PHP, Fileinfo и решение приложения.</desc>
|
||||
<defs>
|
||||
<linearGradient id="panel" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0" stop-color="#ffffff"/>
|
||||
<stop offset="1" stop-color="#f5f8fb"/>
|
||||
</linearGradient>
|
||||
<filter id="soft-shadow" x="-20%" y="-20%" width="140%" height="140%">
|
||||
<feDropShadow dx="0" dy="12" stdDeviation="16" flood-color="#142b3d" flood-opacity=".10"/>
|
||||
</filter>
|
||||
<marker id="flow-arrow" viewBox="0 0 12 12" refX="11" refY="6" markerWidth="10" markerHeight="10" orient="auto">
|
||||
<path d="M 0 1 L 11 6 L 0 11 z" fill="#47687b"/>
|
||||
</marker>
|
||||
<style>
|
||||
.title { font: 700 44px Inter, Arial, sans-serif; fill: #17324a; }
|
||||
.subtitle { font: 400 23px Inter, Arial, sans-serif; fill: #597080; }
|
||||
.lane { font: 700 17px Inter, Arial, sans-serif; letter-spacing: 2.2px; }
|
||||
.box-title { font: 700 27px Inter, Arial, sans-serif; fill: #17324a; }
|
||||
.box-copy { font: 400 20px Inter, Arial, sans-serif; fill: #466174; }
|
||||
.mono { font: 600 18px Menlo, Consolas, monospace; fill: #2f6174; }
|
||||
.small { font: 600 16px Inter, Arial, sans-serif; fill: #6b7d8d; }
|
||||
</style>
|
||||
</defs>
|
||||
<rect width="1600" height="900" fill="#f5f8fb"/>
|
||||
<rect x="0" y="0" width="500" height="900" fill="#fff4ed"/>
|
||||
<rect x="500" y="0" width="520" height="900" fill="#eef5fb"/>
|
||||
<rect x="1020" y="0" width="580" height="900" fill="#eef8f4"/>
|
||||
<text x="94" y="104" class="title">Загрузка — это не один сигнал, а несколько границ</text>
|
||||
<text x="94" y="146" class="subtitle">Слева — то, что заявил клиент. Справа — то, на чём приложение строит решение.</text>
|
||||
|
||||
<text x="106" y="226" class="lane" fill="#c5682d">СВЕДЕНИЯ КЛИЕНТА</text>
|
||||
<text x="605" y="226" class="lane" fill="#4579a8">РЕЗУЛЬТАТ PHP</text>
|
||||
<text x="1125" y="226" class="lane" fill="#27846e">РЕШЕНИЕ ПРИЛОЖЕНИЯ</text>
|
||||
|
||||
<line x1="500" y1="184" x2="500" y2="774" stroke="#d78253" stroke-width="3" stroke-dasharray="10 12"/>
|
||||
<line x1="1020" y1="184" x2="1020" y2="774" stroke="#65a18f" stroke-width="3" stroke-dasharray="10 12"/>
|
||||
|
||||
<g filter="url(#soft-shadow)">
|
||||
<rect x="106" y="278" width="300" height="130" rx="20" fill="url(#panel)"/>
|
||||
<text x="138" y="326" class="box-title">Имя и расширение</text>
|
||||
<text x="138" y="364" class="mono">avatar.jpg</text>
|
||||
<text x="138" y="394" class="box-copy">Удобны для интерфейса.</text>
|
||||
|
||||
<rect x="106" y="452" width="300" height="130" rx="20" fill="url(#panel)"/>
|
||||
<text x="138" y="500" class="box-title">Content-Type</text>
|
||||
<text x="138" y="538" class="mono">image/jpeg</text>
|
||||
<text x="138" y="568" class="box-copy">Это поле multipart-части.</text>
|
||||
</g>
|
||||
|
||||
<g filter="url(#soft-shadow)">
|
||||
<rect x="606" y="278" width="310" height="130" rx="20" fill="url(#panel)"/>
|
||||
<text x="638" y="326" class="box-title">Доставка</text>
|
||||
<text x="638" y="364" class="mono">UPLOAD_ERR_OK</text>
|
||||
<text x="638" y="394" class="box-copy">PHP принял файл целиком.</text>
|
||||
|
||||
<rect x="606" y="452" width="310" height="130" rx="20" fill="url(#panel)"/>
|
||||
<text x="638" y="500" class="box-title">Временный файл</text>
|
||||
<text x="638" y="538" class="mono">tmp_name · size</text>
|
||||
<text x="638" y="568" class="box-copy">Есть что проверять на сервере.</text>
|
||||
</g>
|
||||
|
||||
<g filter="url(#soft-shadow)">
|
||||
<rect x="1126" y="278" width="354" height="130" rx="20" fill="url(#panel)"/>
|
||||
<text x="1158" y="326" class="box-title">Fileinfo</text>
|
||||
<text x="1158" y="364" class="mono">finfo_file()</text>
|
||||
<text x="1158" y="394" class="box-copy">Определяет тип временного файла.</text>
|
||||
|
||||
<rect x="1126" y="452" width="354" height="130" rx="20" fill="url(#panel)"/>
|
||||
<text x="1158" y="500" class="box-title">Белый список</text>
|
||||
<text x="1158" y="538" class="mono">JPEG / PNG / 2 МБ</text>
|
||||
<text x="1158" y="568" class="box-copy">Правило конкретного сценария.</text>
|
||||
</g>
|
||||
|
||||
<path d="M406 343 C475 343 516 343 606 343" fill="none" stroke="#d78253" stroke-width="6" stroke-linecap="round" marker-end="url(#flow-arrow)"/>
|
||||
<path d="M406 517 C480 517 532 517 606 517" fill="none" stroke="#d78253" stroke-width="6" stroke-linecap="round" marker-end="url(#flow-arrow)"/>
|
||||
<path d="M916 343 C985 343 1051 343 1126 343" fill="none" stroke="#4e8ab8" stroke-width="6" stroke-linecap="round" marker-end="url(#flow-arrow)"/>
|
||||
<path d="M916 517 C985 517 1051 517 1126 517" fill="none" stroke="#4e8ab8" stroke-width="6" stroke-linecap="round" marker-end="url(#flow-arrow)"/>
|
||||
|
||||
<rect x="106" y="665" width="1374" height="102" rx="22" fill="#ffffff" stroke="#cfdfd9" stroke-width="2"/>
|
||||
<circle cx="156" cy="716" r="19" fill="#27846e"/>
|
||||
<path d="M147 716 l7 7 l14 -17" fill="none" stroke="#ffffff" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<text x="203" y="708" class="box-title">Практическое правило</text>
|
||||
<text x="203" y="742" class="box-copy">Имя и клиентский MIME-тип не определяют допуск. Они становятся полезными только после того, как серверный анализ и белый список дали ответ.</text>
|
||||
<text x="106" y="829" class="small">Отдельная проверка размеров дополняет контракт изображения, но не заменяет проверку типа.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.9 KiB |
@@ -1,53 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 680" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Цепочка TLS-доверия и SNI</title>
|
||||
<desc id="desc">PHP cURL отправляет URL hostname в SNI серверу. Сервер выдаёт конечный и промежуточный сертификаты. Клиент соединяет цепочку с корнем в CA bundle и отдельно проверяет имя хоста.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#1a203d"/>
|
||||
<stop offset="1" stop-color="#1c4560"/>
|
||||
</linearGradient>
|
||||
<marker id="arr" markerWidth="12" markerHeight="12" refX="10" refY="6" orient="auto">
|
||||
<path d="M1 1 L11 6 L1 11 Z" fill="#8ae6d8"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="1200" height="680" rx="28" fill="url(#background)"/>
|
||||
<text x="65" y="78" fill="#f7fbff" font-family="Arial, sans-serif" font-size="34" font-weight="700">TLS: кто выбирает сертификат и кто ему доверяет</text>
|
||||
<text x="65" y="116" fill="#bed8e6" font-family="Arial, sans-serif" font-size="21">SNI выбирает виртуальный хост. CA bundle и hostname check принимают решение у клиента.</text>
|
||||
<g font-family="Arial, sans-serif">
|
||||
<rect x="65" y="202" width="270" height="180" rx="20" fill="#ecf4ff"/>
|
||||
<text x="100" y="251" fill="#183145" font-size="28" font-weight="700">PHP cURL</text>
|
||||
<text x="100" y="292" fill="#355468" font-size="20">URL:</text>
|
||||
<text x="100" y="322" fill="#355468" font-size="20">api.partner.example</text>
|
||||
<text x="100" y="349" fill="#355468" font-size="18">CA bundle +</text>
|
||||
<text x="100" y="374" fill="#355468" font-size="18">hostname check</text>
|
||||
|
||||
<rect x="465" y="190" width="270" height="205" rx="20" fill="#e6fff9"/>
|
||||
<text x="500" y="243" fill="#183145" font-size="28" font-weight="700">TLS-сервер</text>
|
||||
<text x="500" y="286" fill="#355468" font-size="20">virtual host по SNI</text>
|
||||
<text x="500" y="323" fill="#355468" font-size="20">leaf certificate</text>
|
||||
<text x="500" y="353" fill="#355468" font-size="20">intermediate certificate</text>
|
||||
|
||||
<rect x="865" y="202" width="270" height="180" rx="20" fill="#fff7de"/>
|
||||
<text x="900" y="251" fill="#183145" font-size="28" font-weight="700">CA bundle</text>
|
||||
<text x="900" y="292" fill="#355468" font-size="20">доверенные root CA</text>
|
||||
<text x="900" y="325" fill="#355468" font-size="20">не leaf сайта</text>
|
||||
<text x="900" y="355" fill="#355468" font-size="18">локальный trust store</text>
|
||||
|
||||
<rect x="280" y="492" width="640" height="115" rx="18" fill="#182a43" stroke="#8ae6d8" stroke-width="3"/>
|
||||
<text x="325" y="538" fill="#f8fcff" font-size="25" font-weight="700">Решение клиента</text>
|
||||
<text x="325" y="575" fill="#cfe5ee" font-size="21">1. Цепочка leaf → intermediate → trusted root строится</text>
|
||||
<text x="325" y="603" fill="#cfe5ee" font-size="21">2. Имя в сертификате подходит hostname из URL</text>
|
||||
</g>
|
||||
<g fill="none" stroke="#8ae6d8" stroke-width="5" marker-end="url(#arr)">
|
||||
<path d="M345 252 C382 252 414 252 448 252"/>
|
||||
<path d="M745 286 C785 286 815 286 848 286"/>
|
||||
<path d="M997 395 C997 450 860 465 770 487"/>
|
||||
<path d="M600 405 V478"/>
|
||||
<path d="M200 393 C220 440 350 455 430 485"/>
|
||||
</g>
|
||||
<g font-family="Arial, sans-serif" font-size="18" fill="#8ae6d8">
|
||||
<text x="365" y="226">ClientHello: SNI</text>
|
||||
<text x="790" y="260">root CA</text>
|
||||
<text x="640" y="447">серверная цепочка</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.7 KiB |
@@ -1,82 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 650" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Диагностика TLS-ошибки в PHP cURL</title>
|
||||
<desc id="desc">Шесть шагов: сохранить код ошибки, определить версии клиента, проверить путь CA bundle, получить сертификаты с SNI, проверить цепочку и повторить PHP-запрос с включённой проверкой.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#10243b"/>
|
||||
<stop offset="1" stop-color="#183f59"/>
|
||||
</linearGradient>
|
||||
<filter id="shadow" x="-10%" y="-20%" width="120%" height="140%">
|
||||
<feDropShadow dx="0" dy="8" stdDeviation="8" flood-color="#07131f" flood-opacity=".35"/>
|
||||
</filter>
|
||||
<marker id="arrow" markerWidth="12" markerHeight="12" refX="10" refY="6" orient="auto">
|
||||
<path d="M1 1 L11 6 L1 11 Z" fill="#78dce8"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="1200" height="650" rx="28" fill="url(#bg)"/>
|
||||
<text x="70" y="85" fill="#f5fbff" font-family="Arial, sans-serif" font-size="34" font-weight="700">TLS-ошибка в PHP: не меняем false, пока не знаем причину</text>
|
||||
<text x="70" y="125" fill="#b8d3e6" font-family="Arial, sans-serif" font-size="22">Каждый шаг оставляет проверяемый артефакт для следующей ветки.</text>
|
||||
<g font-family="Arial, sans-serif">
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="70" y="185" width="285" height="145" rx="18" fill="#fff8df"/>
|
||||
<circle cx="112" cy="228" r="22" fill="#e59b36"/>
|
||||
<text x="104" y="236" fill="#fff" font-size="22" font-weight="700">1</text>
|
||||
<text x="150" y="224" fill="#183145" font-size="21" font-weight="700">Зафиксировать</text>
|
||||
<text x="150" y="250" fill="#183145" font-size="21" font-weight="700">отказ</text>
|
||||
<text x="105" y="282" fill="#355468" font-size="18">curl_errno + curl_error</text>
|
||||
<text x="105" y="308" fill="#355468" font-size="18">до curl_close</text>
|
||||
</g>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="457" y="185" width="285" height="145" rx="18" fill="#e7f7fa"/>
|
||||
<circle cx="499" cy="228" r="22" fill="#3da8ba"/>
|
||||
<text x="491" y="236" fill="#fff" font-size="22" font-weight="700">2</text>
|
||||
<text x="537" y="224" fill="#183145" font-size="21" font-weight="700">Определить</text>
|
||||
<text x="537" y="250" fill="#183145" font-size="21" font-weight="700">клиент</text>
|
||||
<text x="492" y="282" fill="#355468" font-size="18">curl_version(): libcurl</text>
|
||||
<text x="492" y="308" fill="#355468" font-size="18">и TLS-библиотека PHP</text>
|
||||
</g>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="845" y="185" width="285" height="145" rx="18" fill="#eaf4e7"/>
|
||||
<circle cx="887" cy="228" r="22" fill="#5da878"/>
|
||||
<text x="879" y="236" fill="#fff" font-size="22" font-weight="700">3</text>
|
||||
<text x="925" y="224" fill="#183145" font-size="21" font-weight="700">Проверить</text>
|
||||
<text x="925" y="250" fill="#183145" font-size="21" font-weight="700">CA file</text>
|
||||
<text x="880" y="282" fill="#355468" font-size="18">путь, чтение, версию</text>
|
||||
<text x="880" y="308" fill="#355468" font-size="18">bundle</text>
|
||||
</g>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="70" y="425" width="285" height="145" rx="18" fill="#e9ebff"/>
|
||||
<circle cx="112" cy="468" r="22" fill="#6d7bd6"/>
|
||||
<text x="104" y="476" fill="#fff" font-size="22" font-weight="700">4</text>
|
||||
<text x="150" y="464" fill="#183145" font-size="21" font-weight="700">Снять</text>
|
||||
<text x="150" y="490" fill="#183145" font-size="21" font-weight="700">цепочку</text>
|
||||
<text x="105" y="522" fill="#355468" font-size="18">s_client -servername</text>
|
||||
<text x="105" y="548" fill="#355468" font-size="18">-showcerts</text>
|
||||
</g>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="457" y="425" width="285" height="145" rx="18" fill="#f8eaf4"/>
|
||||
<circle cx="499" cy="468" r="22" fill="#b96799"/>
|
||||
<text x="491" y="476" fill="#fff" font-size="22" font-weight="700">5</text>
|
||||
<text x="537" y="464" fill="#183145" font-size="21" font-weight="700">Построить</text>
|
||||
<text x="537" y="490" fill="#183145" font-size="21" font-weight="700">цепочку</text>
|
||||
<text x="492" y="522" fill="#355468" font-size="18">verify: leaf + intermediate</text>
|
||||
<text x="492" y="548" fill="#355468" font-size="18">против CA bundle</text>
|
||||
</g>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="845" y="425" width="285" height="145" rx="18" fill="#f4eee3"/>
|
||||
<circle cx="887" cy="468" r="22" fill="#c18442"/>
|
||||
<text x="879" y="476" fill="#fff" font-size="22" font-weight="700">6</text>
|
||||
<text x="925" y="464" fill="#183145" font-size="21" font-weight="700">Повторить</text>
|
||||
<text x="925" y="490" fill="#183145" font-size="21" font-weight="700">PHP</text>
|
||||
<text x="880" y="522" fill="#355468" font-size="18">VERIFYPEER=true</text>
|
||||
<text x="880" y="548" fill="#355468" font-size="18">VERIFYHOST=2</text>
|
||||
</g>
|
||||
</g>
|
||||
<g stroke="#78dce8" stroke-width="5" fill="none" marker-end="url(#arrow)">
|
||||
<path d="M365 258 H438"/>
|
||||
<path d="M752 258 H826"/>
|
||||
<path d="M988 342 V400 H212 V405"/>
|
||||
<path d="M365 498 H438"/>
|
||||
<path d="M752 498 H826"/>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.4 KiB |
@@ -1,67 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 640" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Контролируемое обновление CA bundle для PHP cURL</title>
|
||||
<desc id="desc">План из пяти этапов: определить активный CA store, подготовить версионный bundle, проверить цепочку на стенде, переключить одну настройку и подтвердить PHP-запрос с включённой проверкой.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#28334a"/>
|
||||
<stop offset="1" stop-color="#255768"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" markerWidth="12" markerHeight="12" refX="10" refY="6" orient="auto">
|
||||
<path d="M1 1 L11 6 L1 11 Z" fill="#f4ca76"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="1200" height="640" rx="28" fill="url(#bg)"/>
|
||||
<text x="65" y="78" fill="#fffdf8" font-family="Arial, sans-serif" font-size="34" font-weight="700">CA bundle меняем как релизный артефакт</text>
|
||||
<text x="65" y="116" fill="#d8e7ec" font-family="Arial, sans-serif" font-size="21">Новый файл сначала доказывает нужную цепочку, затем становится конфигурацией PHP.</text>
|
||||
<g font-family="Arial, sans-serif">
|
||||
<g>
|
||||
<rect x="65" y="218" width="195" height="225" rx="18" fill="#f8f3e7"/>
|
||||
<circle cx="104" cy="260" r="21" fill="#d68b3b"/>
|
||||
<text x="97" y="268" fill="#fff" font-size="21" font-weight="700">1</text>
|
||||
<text x="93" y="310" fill="#254052" font-size="21" font-weight="700">Найти</text>
|
||||
<text x="93" y="337" fill="#254052" font-size="21" font-weight="700">источник</text>
|
||||
<text x="93" y="375" fill="#466477" font-size="18">CAINFO, php.ini</text>
|
||||
<text x="93" y="403" fill="#466477" font-size="18">или system store</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="285" y="218" width="195" height="225" rx="18" fill="#e8f5fb"/>
|
||||
<circle cx="324" cy="260" r="21" fill="#4694b1"/>
|
||||
<text x="317" y="268" fill="#fff" font-size="21" font-weight="700">2</text>
|
||||
<text x="313" y="316" fill="#254052" font-size="23" font-weight="700">Кандидат</text>
|
||||
<text x="313" y="352" fill="#466477" font-size="18">версионный PEM</text>
|
||||
<text x="313" y="380" fill="#466477" font-size="18">из trusted source</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="505" y="218" width="195" height="225" rx="18" fill="#e9f6e9"/>
|
||||
<circle cx="544" cy="260" r="21" fill="#5d9b68"/>
|
||||
<text x="537" y="268" fill="#fff" font-size="21" font-weight="700">3</text>
|
||||
<text x="533" y="316" fill="#254052" font-size="23" font-weight="700">Проверка</text>
|
||||
<text x="533" y="352" fill="#466477" font-size="18">openssl verify</text>
|
||||
<text x="533" y="380" fill="#466477" font-size="18">leaf + intermediate</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="725" y="218" width="195" height="225" rx="18" fill="#f4eafa"/>
|
||||
<circle cx="764" cy="260" r="21" fill="#9b6cba"/>
|
||||
<text x="757" y="268" fill="#fff" font-size="21" font-weight="700">4</text>
|
||||
<text x="753" y="316" fill="#254052" font-size="20" font-weight="700">Переключить</text>
|
||||
<text x="753" y="352" fill="#466477" font-size="18">одну настройку</text>
|
||||
<text x="753" y="380" fill="#466477" font-size="18">и перезапустить</text>
|
||||
</g>
|
||||
<g>
|
||||
<rect x="945" y="218" width="190" height="225" rx="18" fill="#fff2e7"/>
|
||||
<circle cx="984" cy="260" r="21" fill="#cf7750"/>
|
||||
<text x="977" y="268" fill="#fff" font-size="21" font-weight="700">5</text>
|
||||
<text x="973" y="316" fill="#254052" font-size="23" font-weight="700">Подтвердить</text>
|
||||
<text x="973" y="352" fill="#466477" font-size="18">PHP cURL при</text>
|
||||
<text x="973" y="380" fill="#466477" font-size="18">VERIFYPEER=true</text>
|
||||
</g>
|
||||
</g>
|
||||
<g fill="none" stroke="#f4ca76" stroke-width="5" marker-end="url(#arrow)">
|
||||
<path d="M270 330 H274"/>
|
||||
<path d="M490 330 H494"/>
|
||||
<path d="M710 330 H714"/>
|
||||
<path d="M930 330 H934"/>
|
||||
</g>
|
||||
<rect x="155" y="510" width="890" height="64" rx="14" fill="#182d43" stroke="#f4ca76" stroke-width="2"/>
|
||||
<text x="190" y="551" fill="#f8fcff" font-family="Arial, sans-serif" font-size="21">Фиксируем: версию bundle, путь, проверяемый hostname и способ отката.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.5 KiB |
@@ -1,78 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1160" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Webpack 4: расследование роста bundle после нового entry</title>
|
||||
<desc id="desc">Вертикальная схема диагностики: одинаковая production-сборка, stats JSON, связь modules и chunks, проверка HTML и Network, затем решение о splitChunks.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0%" stop-color="#f8fbff"/>
|
||||
<stop offset="100%" stop-color="#fff8f0"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto">
|
||||
<path d="M0,0 L10,5 L0,10 z" fill="#5e6d82"/>
|
||||
</marker>
|
||||
<filter id="shadow" x="-10%" y="-10%" width="120%" height="120%">
|
||||
<feDropShadow dx="0" dy="6" stdDeviation="8" flood-color="#253858" flood-opacity="0.12"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<rect width="720" height="1160" rx="28" fill="url(#bg)"/>
|
||||
<text x="40" y="62" fill="#14213d" font-family="Arial, sans-serif" font-size="31" font-weight="700">Bundle вырос после entry</text>
|
||||
<text x="40" y="98" fill="#516079" font-family="Arial, sans-serif" font-size="20">Сначала доказательство,</text>
|
||||
<text x="40" y="124" fill="#516079" font-family="Arial, sans-serif" font-size="20">потом настройка splitChunks.</text>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="40" y="170" width="640" height="120" rx="18" fill="#ffffff" stroke="#c9d6e8"/>
|
||||
<circle cx="84" cy="214" r="22" fill="#255a9b"/>
|
||||
<text x="77" y="222" fill="#ffffff" font-family="Arial, sans-serif" font-size="18" font-weight="700">1</text>
|
||||
<text x="126" y="219" fill="#14213d" font-family="Arial, sans-serif" font-size="25" font-weight="700">Одинаковый production build</text>
|
||||
<text x="126" y="254" fill="#516079" font-family="Arial, sans-serif" font-size="18">До и после: одна команда и тот же webpack-cli.</text>
|
||||
</g>
|
||||
<path d="M360 290 V328" fill="none" stroke="#5e6d82" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="40" y="328" width="640" height="120" rx="18" fill="#ffffff" stroke="#c9d6e8"/>
|
||||
<circle cx="84" cy="372" r="22" fill="#226b46"/>
|
||||
<text x="77" y="380" fill="#ffffff" font-family="Arial, sans-serif" font-size="18" font-weight="700">2</text>
|
||||
<text x="126" y="377" fill="#14213d" font-family="Arial, sans-serif" font-size="25" font-weight="700">stats.json</text>
|
||||
<text x="126" y="412" fill="#516079" font-family="Arial, sans-serif" font-size="18">Сначала assets, затем modules и chunks.</text>
|
||||
</g>
|
||||
<path d="M360 448 V486" fill="none" stroke="#5e6d82" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="40" y="486" width="640" height="120" rx="18" fill="#ffffff" stroke="#c9d6e8"/>
|
||||
<circle cx="84" cy="530" r="22" fill="#8a5a00"/>
|
||||
<text x="77" y="538" fill="#ffffff" font-family="Arial, sans-serif" font-size="18" font-weight="700">3</text>
|
||||
<text x="126" y="535" fill="#14213d" font-family="Arial, sans-serif" font-size="25" font-weight="700">HTML и Network</text>
|
||||
<text x="126" y="570" fill="#516079" font-family="Arial, sans-serif" font-size="18">Что запрашивает конкретная страница?</text>
|
||||
</g>
|
||||
<path d="M360 606 V644" fill="none" stroke="#5e6d82" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="40" y="644" width="640" height="142" rx="20" fill="#ffffff" stroke="#b8dcc8" stroke-width="2"/>
|
||||
<text x="68" y="698" fill="#226b46" font-family="Arial, sans-serif" font-size="26" font-weight="700">Есть реальное дублирование?</text>
|
||||
<text x="68" y="738" fill="#516079" font-family="Arial, sans-serif" font-size="18">Один модуль нужен двум initial-путям</text>
|
||||
<text x="68" y="766" fill="#516079" font-family="Arial, sans-serif" font-size="18">и обе страницы действительно его запрашивают.</text>
|
||||
</g>
|
||||
|
||||
<path d="M202 786 V846" fill="none" stroke="#a14a4a" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<path d="M518 786 V846" fill="none" stroke="#226b46" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<text x="174" y="826" fill="#a14a4a" font-family="Arial, sans-serif" font-size="20" font-weight="700">нет</text>
|
||||
<text x="497" y="826" fill="#226b46" font-family="Arial, sans-serif" font-size="20" font-weight="700">да</text>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="40" y="846" width="300" height="176" rx="18" fill="#fff0f0" stroke="#efb8b8"/>
|
||||
<text x="66" y="898" fill="#8f3636" font-family="Arial, sans-serif" font-size="23" font-weight="700">Не менять</text>
|
||||
<text x="66" y="929" fill="#8f3636" font-family="Arial, sans-serif" font-size="23" font-weight="700">splitChunks</text>
|
||||
<text x="66" y="968" fill="#6c5555" font-family="Arial, sans-serif" font-size="17">Исправить шаблон</text>
|
||||
<text x="66" y="993" fill="#6c5555" font-family="Arial, sans-serif" font-size="17">или сравнение build.</text>
|
||||
</g>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="380" y="846" width="300" height="176" rx="18" fill="#e7f7ed" stroke="#b8dcc8"/>
|
||||
<text x="406" y="898" fill="#226b46" font-family="Arial, sans-serif" font-size="23" font-weight="700">Точечная</text>
|
||||
<text x="406" y="929" fill="#226b46" font-family="Arial, sans-serif" font-size="23" font-weight="700">cache group</text>
|
||||
<text x="406" y="968" fill="#3f6d53" font-family="Arial, sans-serif" font-size="17">Повторить stats</text>
|
||||
<text x="406" y="993" fill="#3f6d53" font-family="Arial, sans-serif" font-size="17">и Network.</text>
|
||||
</g>
|
||||
|
||||
<rect x="40" y="1062" width="640" height="60" rx="14" fill="#14213d"/>
|
||||
<text x="66" y="1100" fill="#ffffff" font-family="Arial, sans-serif" font-size="18">Рост dist не равен росту загрузки одной страницы.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 6.0 KiB |
@@ -1,75 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1120" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Webpack 4: от двух entry к общему модулю</title>
|
||||
<desc id="desc">Вертикальный граф показывает, как entry site и admin достигают собственных модулей и затем общих зависимостей date-format и jquery.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0%" stop-color="#fffaf3"/>
|
||||
<stop offset="100%" stop-color="#f3f7ff"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto">
|
||||
<path d="M0,0 L10,5 L0,10 z" fill="#6c7280"/>
|
||||
</marker>
|
||||
<filter id="shadow" x="-10%" y="-10%" width="120%" height="120%">
|
||||
<feDropShadow dx="0" dy="6" stdDeviation="8" flood-color="#253858" flood-opacity="0.12"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<rect width="720" height="1120" rx="28" fill="url(#bg)"/>
|
||||
<text x="40" y="62" fill="#14213d" font-family="Arial, sans-serif" font-size="31" font-weight="700">От entry к графу</text>
|
||||
<text x="40" y="98" fill="#516079" font-family="Arial, sans-serif" font-size="20">Общий исходник достижим</text>
|
||||
<text x="40" y="124" fill="#516079" font-family="Arial, sans-serif" font-size="20">из двух независимых стартов.</text>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="40" y="174" width="300" height="132" rx="18" fill="#ffffff" stroke="#bcd3e7"/>
|
||||
<rect x="40" y="174" width="300" height="35" rx="18" fill="#d9eaff"/>
|
||||
<text x="62" y="198" fill="#255a9b" font-family="Arial, sans-serif" font-size="16" font-weight="700">ENTRY 1</text>
|
||||
<text x="62" y="254" fill="#14213d" font-family="Arial, sans-serif" font-size="29" font-weight="700">site.js</text>
|
||||
<text x="62" y="283" fill="#516079" font-family="Arial, sans-serif" font-size="17">сценарий обычной страницы</text>
|
||||
</g>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="380" y="174" width="300" height="132" rx="18" fill="#ffffff" stroke="#bcd3e7"/>
|
||||
<rect x="380" y="174" width="300" height="35" rx="18" fill="#e9dcff"/>
|
||||
<text x="402" y="198" fill="#6542a1" font-family="Arial, sans-serif" font-size="16" font-weight="700">ENTRY 2</text>
|
||||
<text x="402" y="254" fill="#14213d" font-family="Arial, sans-serif" font-size="29" font-weight="700">admin.js</text>
|
||||
<text x="402" y="283" fill="#516079" font-family="Arial, sans-serif" font-size="17">сценарий панели</text>
|
||||
</g>
|
||||
|
||||
<path d="M190 306 V354" fill="none" stroke="#255a9b" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<path d="M530 306 V354" fill="none" stroke="#6542a1" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="40" y="354" width="300" height="130" rx="18" fill="#ffffff" stroke="#c9d6e8"/>
|
||||
<text x="62" y="410" fill="#14213d" font-family="Arial, sans-serif" font-size="24" font-weight="700">site/search.js</text>
|
||||
<text x="62" y="444" fill="#516079" font-family="Arial, sans-serif" font-size="17">нужен только site</text>
|
||||
</g>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="380" y="354" width="300" height="130" rx="18" fill="#ffffff" stroke="#c9d6e8"/>
|
||||
<text x="402" y="410" fill="#14213d" font-family="Arial, sans-serif" font-size="24" font-weight="700">admin/report.js</text>
|
||||
<text x="402" y="444" fill="#516079" font-family="Arial, sans-serif" font-size="17">нужен только admin</text>
|
||||
</g>
|
||||
|
||||
<path d="M190 484 V538 H360 V570" fill="none" stroke="#255a9b" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<path d="M530 484 V538 H360 V570" fill="none" stroke="#6542a1" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="40" y="570" width="640" height="150" rx="18" fill="#ffffff" stroke="#b8dcc8" stroke-width="2"/>
|
||||
<rect x="40" y="570" width="640" height="35" rx="18" fill="#d8f1e2"/>
|
||||
<text x="66" y="594" fill="#226b46" font-family="Arial, sans-serif" font-size="16" font-weight="700">ОБЩИЙ ИСХОДНИК</text>
|
||||
<text x="66" y="653" fill="#14213d" font-family="Arial, sans-serif" font-size="29" font-weight="700">shared/date-format.js</text>
|
||||
<text x="66" y="688" fill="#516079" font-family="Arial, sans-serif" font-size="18">кандидат для common, если отдельный запрос оправдан</text>
|
||||
</g>
|
||||
|
||||
<path d="M360 720 V766" fill="none" stroke="#6c7280" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="40" y="766" width="640" height="150" rx="18" fill="#ffffff" stroke="#e6d093"/>
|
||||
<rect x="40" y="766" width="640" height="35" rx="18" fill="#f6e8c3"/>
|
||||
<text x="66" y="790" fill="#8a5a00" font-family="Arial, sans-serif" font-size="16" font-weight="700">ВНЕШНИЙ ПАКЕТ</text>
|
||||
<text x="66" y="849" fill="#14213d" font-family="Arial, sans-serif" font-size="29" font-weight="700">jquery</text>
|
||||
<text x="66" y="884" fill="#516079" font-family="Arial, sans-serif" font-size="18">кандидат для vendors при двух entry</text>
|
||||
</g>
|
||||
|
||||
<rect x="40" y="980" width="640" height="96" rx="16" fill="#14213d"/>
|
||||
<text x="66" y="1018" fill="#ffffff" font-family="Arial, sans-serif" font-size="20" font-weight="700">Важная граница</text>
|
||||
<text x="66" y="1051" fill="#ffffff" font-family="Arial, sans-serif" font-size="18">Общий файл на диске не гарантирует общий chunk в сборке.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.5 KiB |
@@ -1,76 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1120" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Webpack 4: два entry и общие chunks</title>
|
||||
<desc id="desc">Вертикальная схема: общий runtime ведёт к chunks vendors и common, которые нужны двум отдельным entry catalog и checkout.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0%" stop-color="#f7fafc"/>
|
||||
<stop offset="100%" stop-color="#eef4ff"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto">
|
||||
<path d="M0,0 L10,5 L0,10 z" fill="#60708a"/>
|
||||
</marker>
|
||||
<filter id="shadow" x="-10%" y="-10%" width="120%" height="120%">
|
||||
<feDropShadow dx="0" dy="6" stdDeviation="8" flood-color="#253858" flood-opacity="0.12"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<rect width="720" height="1120" rx="28" fill="url(#bg)"/>
|
||||
<text x="40" y="62" fill="#14213d" font-family="Arial, sans-serif" font-size="31" font-weight="700">Webpack 4: два entry</text>
|
||||
<text x="40" y="98" fill="#516079" font-family="Arial, sans-serif" font-size="20">Общий код выделяется отдельно,</text>
|
||||
<text x="40" y="124" fill="#516079" font-family="Arial, sans-serif" font-size="20">а каждая страница запускает свой сценарий.</text>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="40" y="170" width="640" height="112" rx="18" fill="#ffffff" stroke="#c9d6e8"/>
|
||||
<rect x="40" y="170" width="640" height="35" rx="18" fill="#dceeff"/>
|
||||
<text x="66" y="194" fill="#255a9b" font-family="Arial, sans-serif" font-size="17" font-weight="700">ОБЩИЙ RUNTIME</text>
|
||||
<text x="66" y="243" fill="#14213d" font-family="Arial, sans-serif" font-size="27" font-weight="700">runtime</text>
|
||||
<text x="205" y="243" fill="#516079" font-family="Arial, sans-serif" font-size="18">связывает modules и chunks</text>
|
||||
</g>
|
||||
|
||||
<path d="M260 282 V328 H190 V352" fill="none" stroke="#60708a" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<path d="M460 282 V328 H530 V352" fill="none" stroke="#60708a" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="40" y="352" width="300" height="160" rx="18" fill="#ffffff" stroke="#c9d6e8"/>
|
||||
<rect x="40" y="352" width="300" height="35" rx="18" fill="#f6e8c3"/>
|
||||
<text x="62" y="376" fill="#8a5a00" font-family="Arial, sans-serif" font-size="16" font-weight="700">ВНЕШНИЕ ПАКЕТЫ</text>
|
||||
<text x="62" y="429" fill="#14213d" font-family="Arial, sans-serif" font-size="27" font-weight="700">vendors</text>
|
||||
<text x="62" y="460" fill="#516079" font-family="Arial, sans-serif" font-size="18">например, jquery</text>
|
||||
<text x="62" y="488" fill="#516079" font-family="Arial, sans-serif" font-size="16">из node_modules</text>
|
||||
</g>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="380" y="352" width="300" height="160" rx="18" fill="#ffffff" stroke="#c9d6e8"/>
|
||||
<rect x="380" y="352" width="300" height="35" rx="18" fill="#d8f1e2"/>
|
||||
<text x="402" y="376" fill="#226b46" font-family="Arial, sans-serif" font-size="16" font-weight="700">ОБЩИЙ КОД</text>
|
||||
<text x="402" y="429" fill="#14213d" font-family="Arial, sans-serif" font-size="27" font-weight="700">common</text>
|
||||
<text x="402" y="460" fill="#516079" font-family="Arial, sans-serif" font-size="18">src/shared/money.js</text>
|
||||
<text x="402" y="488" fill="#516079" font-family="Arial, sans-serif" font-size="16">достигнут из двух entry</text>
|
||||
</g>
|
||||
|
||||
<path d="M190 512 V564 H360" fill="none" stroke="#60708a" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<path d="M530 512 V564 H360" fill="none" stroke="#60708a" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="40" y="564" width="640" height="142" rx="18" fill="#ffffff" stroke="#bcd3e7"/>
|
||||
<rect x="40" y="564" width="640" height="36" rx="18" fill="#d9eaff"/>
|
||||
<text x="66" y="589" fill="#255a9b" font-family="Arial, sans-serif" font-size="17" font-weight="700">СТРАНИЦА /CATALOG/</text>
|
||||
<text x="66" y="650" fill="#14213d" font-family="Arial, sans-serif" font-size="30" font-weight="700">catalog entry</text>
|
||||
<text x="66" y="681" fill="#516079" font-family="Arial, sans-serif" font-size="18">Только код каталога; checkout сюда не подключается.</text>
|
||||
</g>
|
||||
|
||||
<path d="M190 512 V738 H360 V762" fill="none" stroke="#60708a" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<path d="M530 512 V738 H360 V762" fill="none" stroke="#60708a" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="40" y="762" width="640" height="142" rx="18" fill="#ffffff" stroke="#bcd3e7"/>
|
||||
<rect x="40" y="762" width="640" height="36" rx="18" fill="#e7dcff"/>
|
||||
<text x="66" y="787" fill="#6542a1" font-family="Arial, sans-serif" font-size="17" font-weight="700">СТРАНИЦА /CHECKOUT/</text>
|
||||
<text x="66" y="848" fill="#14213d" font-family="Arial, sans-serif" font-size="30" font-weight="700">checkout entry</text>
|
||||
<text x="66" y="879" fill="#516079" font-family="Arial, sans-serif" font-size="18">Только код заказа; catalog сюда не подключается.</text>
|
||||
</g>
|
||||
|
||||
<rect x="40" y="968" width="640" height="98" rx="16" fill="#14213d"/>
|
||||
<text x="66" y="1007" fill="#ffffff" font-family="Arial, sans-serif" font-size="20" font-weight="700">Проверка в HTML</text>
|
||||
<text x="66" y="1040" fill="#ffffff" font-family="Arial, sans-serif" font-size="18">У каждой страницы свой entry и нужные общие chunks.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.6 KiB |
@@ -1,67 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 670" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Сравнение двух Windows-окружений</title>
|
||||
<desc id="desc">Два одинаковых запуска проекта дают два очищенных снимка окружения. Сравнение выделяет различие в пути, первом кандидате бинарника или кодовой странице. Затем выполняется один обратимый опыт в новом PowerShell и повторяется исходная команда.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#1b1622"/>
|
||||
<stop offset="1" stop-color="#09131c"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="decision" x1="0" y1="0" x2="1" y2="0">
|
||||
<stop offset="0" stop-color="#f0ad5e"/>
|
||||
<stop offset="1" stop-color="#f87965"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" markerWidth="11" markerHeight="11" refX="8" refY="5.5" orient="auto">
|
||||
<path d="M0,0 L9,5.5 L0,11 Z" fill="#f3b56a"/>
|
||||
</marker>
|
||||
<style>
|
||||
.card { fill: #2a2338; stroke: #7e628f; stroke-width: 2; }
|
||||
.check { fill: #132c34; stroke: #3c8d87; stroke-width: 2; }
|
||||
.label { fill: #fff8f2; font-family: Arial, sans-serif; font-size: 22px; font-weight: 700; }
|
||||
.copy { fill: #e6d8d1; font-family: Arial, sans-serif; font-size: 16px; }
|
||||
.small { fill: #d4beb4; font-family: Arial, sans-serif; font-size: 14px; }
|
||||
.code { fill: #ffcb89; font-family: "Courier New", monospace; font-size: 15px; }
|
||||
.line { fill: none; stroke: #f3b56a; stroke-width: 3; marker-end: url(#arrow); }
|
||||
</style>
|
||||
</defs>
|
||||
<rect width="720" height="670" rx="28" fill="url(#background)"/>
|
||||
<text x="46" y="56" class="label">«Работает на моей машине» → сравнимые данные</text>
|
||||
<text x="46" y="84" class="copy">Одна исходная команда, один снимок на машину, одна проверяемая гипотеза.</text>
|
||||
|
||||
<rect x="48" y="124" width="270" height="122" rx="16" class="card"/>
|
||||
<text x="72" y="162" class="label">Машина A</text>
|
||||
<text x="72" y="192" class="code">commit + command</text>
|
||||
<text x="72" y="218" class="small">snapshot A, пути очищены</text>
|
||||
|
||||
<rect x="402" y="124" width="270" height="122" rx="16" class="card"/>
|
||||
<text x="426" y="162" class="label">Машина B</text>
|
||||
<text x="426" y="192" class="code">commit + command</text>
|
||||
<text x="426" y="218" class="small">snapshot B, пути очищены</text>
|
||||
|
||||
<path d="M183 246 V290 H300 V304" class="line"/>
|
||||
<path d="M537 246 V290 H420 V304" class="line"/>
|
||||
|
||||
<rect x="210" y="320" width="300" height="102" rx="18" fill="url(#decision)"/>
|
||||
<text x="244" y="360" fill="#25150e" font-family="Arial, sans-serif" font-size="24" font-weight="700">Compare-Object</text>
|
||||
<text x="244" y="390" fill="#382114" font-family="Arial, sans-serif" font-size="15">PATH · кандидат · версия · консоль</text>
|
||||
|
||||
<path d="M360 422 V456" class="line"/>
|
||||
|
||||
<rect x="48" y="474" width="190" height="126" rx="16" class="check"/>
|
||||
<text x="70" y="512" class="label">Различие</text>
|
||||
<text x="70" y="542" class="code">старый node.exe</text>
|
||||
<text x="70" y="570" class="small">или кодовая страница</text>
|
||||
|
||||
<rect x="264" y="474" width="190" height="126" rx="16" class="check"/>
|
||||
<text x="286" y="512" class="label">Опыт</text>
|
||||
<text x="286" y="542" class="code">$env:Path</text>
|
||||
<text x="286" y="570" class="small">только новый сеанс</text>
|
||||
|
||||
<rect x="480" y="474" width="192" height="126" rx="16" class="check"/>
|
||||
<text x="502" y="512" class="label">Повтор</text>
|
||||
<text x="502" y="542" class="code">npm run build</text>
|
||||
<text x="502" y="570" class="small">исходная команда</text>
|
||||
|
||||
<path d="M238 537 H252" class="line"/>
|
||||
<path d="M454 537 H468" class="line"/>
|
||||
<text x="48" y="640" class="small">Нет изменения — проверить лог, файл или право доступа.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.1 KiB |
@@ -1,70 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 680" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Как Windows PowerShell выбирает команду</title>
|
||||
<desc id="desc">PowerShell получает блок окружения процесса с PATH и PATHEXT. Get-Command с параметром All показывает alias, функции и приложения в порядке выбора. Where.exe отдельно показывает файлы. Кодовая страница проверяется отдельной веткой.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#151126"/>
|
||||
<stop offset="1" stop-color="#07141e"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" markerWidth="11" markerHeight="11" refX="8" refY="5.5" orient="auto">
|
||||
<path d="M0,0 L9,5.5 L0,11 Z" fill="#8c9eff"/>
|
||||
</marker>
|
||||
<style>
|
||||
.card { fill: #211f3b; stroke: #5a65aa; stroke-width: 2; }
|
||||
.file { fill: #132b36; stroke: #317c88; stroke-width: 2; }
|
||||
.label { fill: #f6f5ff; font-family: Arial, sans-serif; font-size: 22px; font-weight: 700; }
|
||||
.copy { fill: #d2d7f2; font-family: Arial, sans-serif; font-size: 16px; }
|
||||
.small { fill: #b5c2e1; font-family: Arial, sans-serif; font-size: 14px; }
|
||||
.code { fill: #aebdff; font-family: "Courier New", monospace; font-size: 15px; }
|
||||
.teal { fill: #8de2d6; font-family: "Courier New", monospace; font-size: 15px; }
|
||||
.line { fill: none; stroke: #8c9eff; stroke-width: 3; marker-end: url(#arrow); }
|
||||
.dash { fill: none; stroke: #58bcb3; stroke-width: 2.5; stroke-dasharray: 8 7; marker-end: url(#arrow); }
|
||||
</style>
|
||||
</defs>
|
||||
<rect width="720" height="680" rx="28" fill="url(#background)"/>
|
||||
<text x="46" y="56" class="label">Разрешение имени команды</text>
|
||||
<text x="46" y="84" class="copy">Поиск бинарника и отображение текста — два разных пути.</text>
|
||||
|
||||
<rect x="232" y="118" width="256" height="82" rx="16" class="card"/>
|
||||
<text x="258" y="153" class="label">PowerShell-процесс</text>
|
||||
<text x="258" y="180" class="code">node --version</text>
|
||||
|
||||
<rect x="58" y="266" width="232" height="136" rx="16" class="card"/>
|
||||
<text x="80" y="304" class="label">Блок среды</text>
|
||||
<text x="80" y="334" class="code">PATH</text>
|
||||
<text x="80" y="360" class="code">PATHEXT</text>
|
||||
<text x="80" y="386" class="small">унаследован от родителя</text>
|
||||
|
||||
<rect x="430" y="266" width="232" height="136" rx="16" class="card"/>
|
||||
<text x="452" y="304" class="label">Кодовая страница</text>
|
||||
<text x="452" y="334" class="code">chcp</text>
|
||||
<text x="452" y="360" class="code">OutputEncoding</text>
|
||||
<text x="452" y="386" class="small">читаемость вывода</text>
|
||||
|
||||
<path d="M319 200 V236 H174 V254" class="line"/>
|
||||
<path d="M400 200 V236 H546 V254" class="dash"/>
|
||||
|
||||
<rect x="48" y="470" width="192" height="138" rx="16" class="file"/>
|
||||
<text x="70" y="508" class="label">Get-Command</text>
|
||||
<text x="70" y="536" class="teal">alias / function</text>
|
||||
<text x="70" y="560" class="teal">cmdlet / app</text>
|
||||
<text x="70" y="588" class="small">порядок PowerShell</text>
|
||||
|
||||
<rect x="264" y="470" width="192" height="138" rx="16" class="file"/>
|
||||
<text x="286" y="508" class="label">where.exe</text>
|
||||
<text x="286" y="536" class="teal">node.exe</text>
|
||||
<text x="286" y="560" class="teal">node.cmd</text>
|
||||
<text x="286" y="588" class="small">файлы в PATH</text>
|
||||
|
||||
<rect x="480" y="470" width="192" height="138" rx="16" class="file"/>
|
||||
<text x="502" y="508" class="label">Проверка</text>
|
||||
<text x="502" y="536" class="teal">путь + версия</text>
|
||||
<text x="502" y="560" class="teal">текст вывода</text>
|
||||
<text x="502" y="588" class="small">одна гипотеза</text>
|
||||
|
||||
<path d="M174 402 V446 H144 V458" class="line"/>
|
||||
<path d="M174 402 V446 H360 V458" class="line"/>
|
||||
<path d="M546 402 V446 H576 V458" class="dash"/>
|
||||
<path d="M240 540 H252" class="line"/>
|
||||
<path d="M456 540 H468" class="line"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.1 KiB |
@@ -1,69 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 640" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Минимальный снимок окружения Windows</title>
|
||||
<desc id="desc">Проект запускает PowerShell. Из процесса извлекаются путь PATH, расширения PATHEXT, кандидаты команд, версии и кодовая страница. Проверенные поля сохраняются в JSON, а секреты исключаются.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#101b2d"/>
|
||||
<stop offset="1" stop-color="#07101d"/>
|
||||
</linearGradient>
|
||||
<linearGradient id="accent" x1="0" y1="0" x2="1" y2="0">
|
||||
<stop offset="0" stop-color="#45d0c2"/>
|
||||
<stop offset="1" stop-color="#6aa4ff"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" markerWidth="11" markerHeight="11" refX="8" refY="5.5" orient="auto">
|
||||
<path d="M0,0 L9,5.5 L0,11 Z" fill="#79aaff"/>
|
||||
</marker>
|
||||
<style>
|
||||
.card { fill: #15263d; stroke: #365b82; stroke-width: 2; }
|
||||
.soft { fill: #102035; stroke: #284d72; stroke-width: 1.5; }
|
||||
.label { fill: #f4f8ff; font-family: Arial, sans-serif; font-size: 22px; font-weight: 700; }
|
||||
.copy { fill: #c5d7eb; font-family: Arial, sans-serif; font-size: 16px; }
|
||||
.small { fill: #a8c0dc; font-family: Arial, sans-serif; font-size: 14px; }
|
||||
.code { fill: #81e4d8; font-family: "Courier New", monospace; font-size: 15px; }
|
||||
.line { fill: none; stroke: #79aaff; stroke-width: 3; marker-end: url(#arrow); }
|
||||
</style>
|
||||
</defs>
|
||||
<rect width="720" height="640" rx="28" fill="url(#background)"/>
|
||||
<text x="48" y="58" class="label">Минимальный снимок запуска</text>
|
||||
<text x="48" y="86" class="copy">Не копия компьютера, а проверяемый путь команды.</text>
|
||||
|
||||
<rect x="48" y="128" width="230" height="108" rx="16" class="card"/>
|
||||
<text x="72" y="168" class="label">Проект</text>
|
||||
<text x="72" y="198" class="code">npm run build</text>
|
||||
<text x="72" y="220" class="small">одна исходная команда</text>
|
||||
|
||||
<rect x="442" y="128" width="230" height="108" rx="16" class="card"/>
|
||||
<text x="466" y="168" class="label">PowerShell</text>
|
||||
<text x="466" y="198" class="code">process scope</text>
|
||||
<text x="466" y="220" class="small">текущий сеанс</text>
|
||||
<path d="M278 182 H430" class="line"/>
|
||||
|
||||
<rect x="48" y="302" width="182" height="142" rx="16" class="soft"/>
|
||||
<text x="70" y="340" class="label">Путь</text>
|
||||
<text x="70" y="370" class="code">PATH</text>
|
||||
<text x="70" y="398" class="code">PATHEXT</text>
|
||||
<text x="70" y="424" class="small">порядок папок</text>
|
||||
|
||||
<rect x="269" y="302" width="182" height="142" rx="16" class="soft"/>
|
||||
<text x="291" y="340" class="label">Команды</text>
|
||||
<text x="291" y="370" class="code">Get-Command</text>
|
||||
<text x="291" y="398" class="code">--version</text>
|
||||
<text x="291" y="424" class="small">кандидаты и вывод</text>
|
||||
|
||||
<rect x="490" y="302" width="182" height="142" rx="16" class="soft"/>
|
||||
<text x="512" y="340" class="label">Консоль</text>
|
||||
<text x="512" y="370" class="code">chcp</text>
|
||||
<text x="512" y="398" class="code">OutputEncoding</text>
|
||||
<text x="512" y="424" class="small">только наблюдение</text>
|
||||
|
||||
<path d="M557 236 V280 H139 V290" class="line"/>
|
||||
<path d="M557 236 V290 H360" class="line"/>
|
||||
<path d="M557 236 V290 H581" class="line"/>
|
||||
|
||||
<rect x="144" y="510" width="432" height="84" rx="18" fill="url(#accent)"/>
|
||||
<text x="175" y="548" fill="#06101c" font-family="Arial, sans-serif" font-size="25" font-weight="700">environment-snapshot.json</text>
|
||||
<text x="175" y="574" fill="#0a2030" font-family="Arial, sans-serif" font-size="15">версии, пути, кандидаты; секреты исключены</text>
|
||||
<path d="M139 444 V482 H352 V498" class="line"/>
|
||||
<path d="M360 444 V498" class="line"/>
|
||||
<path d="M581 444 V482 H368 V498" class="line"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.0 KiB |
@@ -1,41 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1180" role="img" aria-labelledby="title desc">
|
||||
<title id="title">От разметки к вычисленной семантике</title>
|
||||
<desc id="desc">Вертикальная схема сравнивает подпись рядом с полем без связи и нативную пару label input; в браузере проверяются role, name и description.</desc>
|
||||
<rect width="720" height="1180" fill="#0f172a"/>
|
||||
<rect x="42" y="34" width="636" height="112" rx="18" fill="#312e81"/>
|
||||
<text x="360" y="80" text-anchor="middle" fill="#ffffff" font-size="28" font-family="Arial, sans-serif" font-weight="700">От разметки к проверяемому смыслу</text>
|
||||
<text x="360" y="116" text-anchor="middle" fill="#ddd6fe" font-size="21" font-family="Arial, sans-serif">DOM не равен имени и роли control</text>
|
||||
|
||||
<rect x="75" y="190" width="570" height="144" rx="18" fill="#4c1d2b" stroke="#fb7185" stroke-width="3"/>
|
||||
<text x="360" y="234" text-anchor="middle" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">Видимая подпись рядом</text>
|
||||
<text x="360" y="270" text-anchor="middle" fill="#fecdd3" font-size="22" font-family="Arial, sans-serif">span «Почта» + input type=email</text>
|
||||
<text x="360" y="304" text-anchor="middle" fill="#fecdd3" font-size="22" font-family="Arial, sans-serif">визуальный текст не создаёт name сам</text>
|
||||
<path d="M360 334v44" stroke="#fda4af" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="75" y="384" width="570" height="126" rx="18" fill="#7f1d1d" stroke="#fca5a5" stroke-width="3"/>
|
||||
<text x="360" y="428" text-anchor="middle" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">Проверка в браузере</text>
|
||||
<text x="360" y="464" text-anchor="middle" fill="#fee2e2" font-size="23" font-family="Arial, sans-serif">role: textbox · name: пусто</text>
|
||||
<text x="360" y="494" text-anchor="middle" fill="#fee2e2" font-size="20" font-family="Arial, sans-serif">не угадываем результат по DOM-дереву</text>
|
||||
<path d="M360 510v48" stroke="#a7f3d0" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="75" y="564" width="570" height="144" rx="18" fill="#14532d" stroke="#86efac" stroke-width="3"/>
|
||||
<text x="360" y="608" text-anchor="middle" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">Связанная нативная разметка</text>
|
||||
<text x="360" y="644" text-anchor="middle" fill="#dcfce7" font-size="22" font-family="Arial, sans-serif">label for=email · input id=email</text>
|
||||
<text x="360" y="678" text-anchor="middle" fill="#dcfce7" font-size="22" font-family="Arial, sans-serif">hint через description при необходимости</text>
|
||||
<path d="M360 708v44" stroke="#a7f3d0" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="75" y="758" width="570" height="154" rx="18" fill="#0f766e" stroke="#5eead4" stroke-width="3"/>
|
||||
<text x="360" y="802" text-anchor="middle" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">Проверка в браузере</text>
|
||||
<text x="360" y="840" text-anchor="middle" fill="#ccfbf1" font-size="23" font-family="Arial, sans-serif">role: textbox · name: Почта</text>
|
||||
<text x="360" y="874" text-anchor="middle" fill="#ccfbf1" font-size="23" font-family="Arial, sans-serif">description: подсказка или ошибка</text>
|
||||
|
||||
<rect x="70" y="970" width="580" height="86" rx="16" fill="#334155" stroke="#94a3b8" stroke-width="3"/>
|
||||
<text x="360" y="1008" text-anchor="middle" fill="#f8fafc" font-size="24" font-family="Arial, sans-serif" font-weight="700">Tree помогает диагностике</text>
|
||||
<text x="360" y="1038" text-anchor="middle" fill="#cbd5e1" font-size="20" font-family="Arial, sans-serif">но не заменяет ручной keyboard-check</text>
|
||||
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
|
||||
<path d="M0 0L10 5L0 10z" fill="#a7f3d0"/>
|
||||
</marker>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.2 KiB |
@@ -1,46 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1200" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Ошибка формы как согласованное состояние</title>
|
||||
<desc id="desc">Вертикальная схема показывает путь submit, валидации, состояния ошибки, выбранной точки фокуса и последующей ручной браузерной проверки.</desc>
|
||||
<rect width="720" height="1200" fill="#0f172a"/>
|
||||
<rect x="42" y="34" width="636" height="112" rx="18" fill="#7c2d12"/>
|
||||
<text x="360" y="80" text-anchor="middle" fill="#ffffff" font-size="28" font-family="Arial, sans-serif" font-weight="700">Ошибка формы — согласованное состояние</text>
|
||||
<text x="360" y="116" text-anchor="middle" fill="#ffedd5" font-size="21" font-family="Arial, sans-serif">Красная рамка не заменяет текст ошибки</text>
|
||||
|
||||
<rect x="85" y="190" width="550" height="94" rx="18" fill="#1e3a5f" stroke="#60a5fa" stroke-width="3"/>
|
||||
<text x="360" y="230" text-anchor="middle" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">1. Submit</text>
|
||||
<text x="360" y="262" text-anchor="middle" fill="#dbeafe" font-size="21" font-family="Arial, sans-serif">пользователь завершил действие</text>
|
||||
<path d="M360 284v40" stroke="#facc15" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="85" y="330" width="550" height="94" rx="18" fill="#3f3108" stroke="#facc15" stroke-width="3"/>
|
||||
<text x="360" y="370" text-anchor="middle" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">2. Валидация</text>
|
||||
<text x="360" y="402" text-anchor="middle" fill="#fef3c7" font-size="21" font-family="Arial, sans-serif">есть ли конкретная ошибка поля?</text>
|
||||
<path d="M360 424v40" stroke="#facc15" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="85" y="470" width="550" height="148" rx="18" fill="#7f1d1d" stroke="#fca5a5" stroke-width="3"/>
|
||||
<text x="360" y="514" text-anchor="middle" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">3. Error state</text>
|
||||
<text x="360" y="550" text-anchor="middle" fill="#fee2e2" font-size="22" font-family="Arial, sans-serif">видимый текст ошибки</text>
|
||||
<text x="360" y="582" text-anchor="middle" fill="#fee2e2" font-size="22" font-family="Arial, sans-serif">aria-invalid=true; связь с описанием</text>
|
||||
<path d="M360 618v42" stroke="#67e8f9" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="85" y="666" width="550" height="120" rx="18" fill="#0f766e" stroke="#5eead4" stroke-width="3"/>
|
||||
<text x="360" y="708" text-anchor="middle" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">4. Выбранная точка фокуса</text>
|
||||
<text x="360" y="744" text-anchor="middle" fill="#ccfbf1" font-size="22" font-family="Arial, sans-serif">первое неверное поле или summary</text>
|
||||
<text x="360" y="774" text-anchor="middle" fill="#ccfbf1" font-size="20" font-family="Arial, sans-serif">решение фиксируется в сценарии страницы</text>
|
||||
<path d="M360 786v42" stroke="#67e8f9" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="65" y="834" width="590" height="168" rx="18" fill="#164e63" stroke="#67e8f9" stroke-width="3"/>
|
||||
<text x="360" y="878" text-anchor="middle" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">5. Проверка в браузере</text>
|
||||
<text x="360" y="916" text-anchor="middle" fill="#cffafe" font-size="23" font-family="Arial, sans-serif">Tab / Shift+Tab · visible focus</text>
|
||||
<text x="360" y="950" text-anchor="middle" fill="#cffafe" font-size="23" font-family="Arial, sans-serif">name, role и error state в tree</text>
|
||||
<text x="360" y="982" text-anchor="middle" fill="#a5f3fc" font-size="20" font-family="Arial, sans-serif">выбранный browser и реальная форма</text>
|
||||
|
||||
<rect x="65" y="1060" width="590" height="84" rx="16" fill="#334155" stroke="#94a3b8" stroke-width="3"/>
|
||||
<text x="360" y="1097" text-anchor="middle" fill="#f8fafc" font-size="25" font-family="Arial, sans-serif" font-weight="700">Screen reader — отдельный прогон</text>
|
||||
<text x="360" y="1127" text-anchor="middle" fill="#cbd5e1" font-size="21" font-family="Arial, sans-serif">схема его не заменяет</text>
|
||||
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
|
||||
<path d="M0 0L10 5L0 10z" fill="#67e8f9"/>
|
||||
</marker>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.7 KiB |
@@ -1,45 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1160" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Клавиатурный маршрут одной формы</title>
|
||||
<desc id="desc">Вертикальная схема показывает четыре проверяемых шага: видимый фокус, имя и подсказка поля, согласованная ошибка и ручная проверка в выбранном браузере.</desc>
|
||||
<rect width="720" height="1160" fill="#0f172a"/>
|
||||
<rect x="42" y="34" width="636" height="112" rx="18" fill="#164e63"/>
|
||||
<text x="360" y="80" text-anchor="middle" fill="#ffffff" font-size="28" font-family="Arial, sans-serif" font-weight="700">Клавиатурный маршрут формы</text>
|
||||
<text x="360" y="116" text-anchor="middle" fill="#cffafe" font-size="21" font-family="Arial, sans-serif">Проверяем путь, а не только DOM</text>
|
||||
|
||||
<rect x="86" y="190" width="548" height="126" rx="18" fill="#1e3a5f" stroke="#60a5fa" stroke-width="3"/>
|
||||
<circle cx="132" cy="252" r="23" fill="#60a5fa"/>
|
||||
<text x="132" y="260" text-anchor="middle" fill="#0f172a" font-size="22" font-family="Arial, sans-serif" font-weight="700">1</text>
|
||||
<text x="180" y="242" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">Tab: фокус виден</text>
|
||||
<text x="180" y="278" fill="#cbd5e1" font-size="22" font-family="Arial, sans-serif">не теряется и не уходит под декор</text>
|
||||
<path d="M360 316v44" stroke="#5eead4" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="86" y="366" width="548" height="126" rx="18" fill="#3f3108" stroke="#facc15" stroke-width="3"/>
|
||||
<circle cx="132" cy="428" r="23" fill="#facc15"/>
|
||||
<text x="132" y="436" text-anchor="middle" fill="#1f2937" font-size="22" font-family="Arial, sans-serif" font-weight="700">2</text>
|
||||
<text x="180" y="418" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">Поле: есть name и hint</text>
|
||||
<text x="180" y="454" fill="#fef3c7" font-size="22" font-family="Arial, sans-serif">label называет control; hint поясняет</text>
|
||||
<path d="M360 492v44" stroke="#5eead4" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="86" y="542" width="548" height="126" rx="18" fill="#4c1d2b" stroke="#fb7185" stroke-width="3"/>
|
||||
<circle cx="132" cy="604" r="23" fill="#fb7185"/>
|
||||
<text x="132" y="612" text-anchor="middle" fill="#1f2937" font-size="22" font-family="Arial, sans-serif" font-weight="700">3</text>
|
||||
<text x="180" y="594" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">Submit: ошибка связана</text>
|
||||
<text x="180" y="630" fill="#fecdd3" font-size="22" font-family="Arial, sans-serif">текст, aria-invalid и фокус меняются вместе</text>
|
||||
<path d="M360 668v44" stroke="#5eead4" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="70" y="718" width="580" height="174" rx="18" fill="#164e63" stroke="#67e8f9" stroke-width="3"/>
|
||||
<text x="360" y="764" text-anchor="middle" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">4. Проверка в браузере</text>
|
||||
<text x="360" y="806" text-anchor="middle" fill="#cffafe" font-size="23" font-family="Arial, sans-serif">Tab и Shift+Tab: фокус не теряется</text>
|
||||
<text x="360" y="842" text-anchor="middle" fill="#cffafe" font-size="23" font-family="Arial, sans-serif">Accessibility tree: name, role, state</text>
|
||||
<text x="360" y="874" text-anchor="middle" fill="#a5f3fc" font-size="20" font-family="Arial, sans-serif">в выбранном браузере и на реальной странице</text>
|
||||
|
||||
<rect x="70" y="950" width="580" height="104" rx="16" fill="#334155" stroke="#94a3b8" stroke-width="3"/>
|
||||
<text x="360" y="992" text-anchor="middle" fill="#f8fafc" font-size="24" font-family="Arial, sans-serif" font-weight="700">Screen reader — отдельный эксперимент</text>
|
||||
<text x="360" y="1024" text-anchor="middle" fill="#cbd5e1" font-size="20" font-family="Arial, sans-serif">схема не выдаёт его за выполненный прогон</text>
|
||||
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
|
||||
<path d="M0 0L10 5L0 10z" fill="#5eead4"/>
|
||||
</marker>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.4 KiB |
@@ -1,39 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 480 940" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Маршрут от дефекта к разделённой ответственности</title>
|
||||
<desc id="desc">Вертикальная схема показывает последовательность: симптом, история Git, правило CODEOWNERS, предметный review и отдельная проверка после merge.</desc>
|
||||
<rect width="480" height="940" fill="#f8fafc" rx="24"/>
|
||||
<text x="240" y="44" text-anchor="middle" font-family="Arial, sans-serif" font-size="22" font-weight="700" fill="#1f2937">Путь от дефекта к решению</text>
|
||||
<text x="240" y="72" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#4b5563">Каждый шаг оставляет проверяемый артефакт</text>
|
||||
<g font-family="Arial, sans-serif">
|
||||
<rect x="34" y="110" width="412" height="104" rx="16" fill="#fee2e2" stroke="#f87171" stroke-width="2"/>
|
||||
<text x="62" y="148" font-size="20" font-weight="700" fill="#7f1d1d">1. Симптом</text>
|
||||
<text x="62" y="178" font-size="16" fill="#7f1d1d">unknown status попал в success</text>
|
||||
<text x="62" y="200" font-size="14" fill="#7f1d1d">Запись: вход, неверный результат, цена.</text>
|
||||
<path d="M240 214 L240 248" stroke="#64748b" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<rect x="34" y="254" width="412" height="104" rx="16" fill="#e0f2fe" stroke="#38bdf8" stroke-width="2"/>
|
||||
<text x="62" y="292" font-size="20" font-weight="700" fill="#0c4a6e">2. История Git</text>
|
||||
<text x="62" y="322" font-size="16" fill="#0c4a6e">Кто и когда менял строку?</text>
|
||||
<text x="62" y="344" font-size="14" fill="#0c4a6e">Артефакт: context, а не назначение роли.</text>
|
||||
<path d="M240 358 L240 392" stroke="#64748b" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<rect x="34" y="398" width="412" height="104" rx="16" fill="#dcfce7" stroke="#4ade80" stroke-width="2"/>
|
||||
<text x="62" y="436" font-size="20" font-weight="700" fill="#14532d">3. CODEOWNERS</text>
|
||||
<text x="62" y="466" font-size="16" fill="#14532d">Кого запросить по пути change?</text>
|
||||
<text x="62" y="488" font-size="14" fill="#14532d">Артефакт: проверка правила в base branch.</text>
|
||||
<path d="M240 502 L240 536" stroke="#64748b" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<rect x="34" y="542" width="412" height="104" rx="16" fill="#fef3c7" stroke="#fbbf24" stroke-width="2"/>
|
||||
<text x="62" y="580" font-size="20" font-weight="700" fill="#78350f">4. Review</text>
|
||||
<text x="62" y="610" font-size="16" fill="#78350f">Кто подтвердит contract и риск кода?</text>
|
||||
<text x="62" y="632" font-size="14" fill="#78350f">Артефакт: решение reviewer по вопросу.</text>
|
||||
<path d="M240 646 L240 680" stroke="#64748b" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<rect x="34" y="686" width="412" height="104" rx="16" fill="#fae8ff" stroke="#e879f9" stroke-width="2"/>
|
||||
<text x="62" y="724" font-size="20" font-weight="700" fill="#701a75">5. Follow-up</text>
|
||||
<text x="62" y="754" font-size="16" fill="#701a75">Кто проверит результат после merge?</text>
|
||||
<text x="62" y="776" font-size="14" fill="#701a75">Артефакт: проверка, откат или новая задача.</text>
|
||||
</g>
|
||||
<rect x="34" y="836" width="412" height="64" rx="12" fill="#e2e8f0"/>
|
||||
<text x="240" y="862" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" font-weight="700" fill="#334155">Git даёт context. Платформа направляет review.</text>
|
||||
<text x="240" y="884" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#334155">Ответственность фиксируется в change.</text>
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M 0 0 L 10 5 L 0 10 z" fill="#64748b"/></marker>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.1 KiB |
@@ -1,28 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 480 980" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Учебная шкала разбора ошибки на стыке модулей</title>
|
||||
<desc id="desc">Все события на вертикальной шкале симулированы: неизвестный статус, исторический поиск, назначение ролей, review, merge и проверка результата.</desc>
|
||||
<rect width="480" height="980" fill="#f8fafc" rx="24"/>
|
||||
<text x="240" y="42" text-anchor="middle" font-family="Arial, sans-serif" font-size="21" font-weight="700" fill="#1f2937">Учебный разбор, не реальный инцидент</text>
|
||||
<text x="240" y="70" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#4b5563">SIM-2019-12-17: unknown не становится success</text>
|
||||
<line x1="52" y1="126" x2="52" y2="812" stroke="#94a3b8" stroke-width="6" stroke-linecap="round"/>
|
||||
<g font-family="Arial, sans-serif">
|
||||
<circle cx="52" cy="146" r="18" fill="#ef4444"/><text x="52" y="152" text-anchor="middle" font-size="14" font-weight="700" fill="#fff">1</text>
|
||||
<rect x="92" y="108" width="348" height="78" rx="14" fill="#fee2e2" stroke="#f87171" stroke-width="2"/>
|
||||
<text x="116" y="138" font-size="19" font-weight="700" fill="#7f1d1d">Симптом</text><text x="116" y="164" font-size="15" fill="#7f1d1d">unknown status показан как success</text>
|
||||
<circle cx="52" cy="286" r="18" fill="#0284c7"/><text x="52" y="292" text-anchor="middle" font-size="14" font-weight="700" fill="#fff">2</text>
|
||||
<rect x="92" y="248" width="348" height="78" rx="14" fill="#e0f2fe" stroke="#38bdf8" stroke-width="2"/>
|
||||
<text x="116" y="278" font-size="19" font-weight="700" fill="#0c4a6e">Контекст Git</text><text x="116" y="304" font-size="15" fill="#0c4a6e">Строка и путь исследованы; роль не выбрана</text>
|
||||
<circle cx="52" cy="426" r="18" fill="#16a34a"/><text x="52" y="432" text-anchor="middle" font-size="14" font-weight="700" fill="#fff">3</text>
|
||||
<rect x="92" y="388" width="348" height="78" rx="14" fill="#dcfce7" stroke="#4ade80" stroke-width="2"/>
|
||||
<text x="116" y="418" font-size="19" font-weight="700" fill="#14532d">Роли назначены</text><text x="116" y="444" font-size="15" fill="#14532d">Решение, путь кода, review, follow-up</text>
|
||||
<circle cx="52" cy="566" r="18" fill="#d97706"/><text x="52" y="572" text-anchor="middle" font-size="14" font-weight="700" fill="#fff">4</text>
|
||||
<rect x="92" y="528" width="348" height="78" rx="14" fill="#fef3c7" stroke="#fbbf24" stroke-width="2"/>
|
||||
<text x="116" y="558" font-size="19" font-weight="700" fill="#78350f">Review change</text><text x="116" y="584" font-size="15" fill="#78350f">Contract и соседний путь проверены</text>
|
||||
<circle cx="52" cy="706" r="18" fill="#a855f7"/><text x="52" y="712" text-anchor="middle" font-size="14" font-weight="700" fill="#fff">5</text>
|
||||
<rect x="92" y="668" width="348" height="78" rx="14" fill="#fae8ff" stroke="#e879f9" stroke-width="2"/>
|
||||
<text x="116" y="698" font-size="19" font-weight="700" fill="#701a75">После merge</text><text x="116" y="724" font-size="15" fill="#701a75">Есть назначенная проверка результата</text>
|
||||
</g>
|
||||
<rect x="30" y="850" width="420" height="76" rx="14" fill="#e2e8f0"/>
|
||||
<text x="240" y="880" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" font-weight="700" fill="#334155">Все шаги выше — симуляция.</text>
|
||||
<text x="240" y="904" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#334155">Это не сведения о команде или репозитории.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.8 KiB |
@@ -1,41 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 480 980" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Четыре поверхности ответственности за изменение</title>
|
||||
<desc id="desc">Симулированный дефект связан с владельцем решения, путём кода, ревью и проверкой после merge. История Git показана как источник фактов, а не как владелец.</desc>
|
||||
<rect width="480" height="980" fill="#f7f8fb" rx="24"/>
|
||||
<text x="240" y="44" text-anchor="middle" font-family="Arial, sans-serif" font-size="22" font-weight="700" fill="#1f2937">Один дефект — четыре ответа</text>
|
||||
<text x="240" y="72" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#4b5563">Код, review и проверка после merge</text>
|
||||
<text x="240" y="92" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#4b5563">не обязаны иметь одного владельца</text>
|
||||
<rect x="48" y="124" width="384" height="116" rx="18" fill="#1d4ed8"/>
|
||||
<text x="240" y="166" text-anchor="middle" font-family="Arial, sans-serif" font-size="22" font-weight="700" fill="#ffffff">Симптом</text>
|
||||
<text x="240" y="198" text-anchor="middle" font-family="Arial, sans-serif" font-size="17" fill="#dbeafe">unknown status стал success</text>
|
||||
<text x="240" y="220" text-anchor="middle" font-family="Arial, sans-serif" font-size="14" fill="#dbeafe">что именно нужно изменить?</text>
|
||||
<path d="M240 240 L240 276" stroke="#64748b" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<rect x="48" y="282" width="384" height="104" rx="16" fill="#dbeafe" stroke="#60a5fa" stroke-width="2"/>
|
||||
<text x="78" y="322" font-family="Arial, sans-serif" font-size="20" font-weight="700" fill="#1e3a8a">1. Владелец решения</text>
|
||||
<text x="78" y="352" font-family="Arial, sans-serif" font-size="15" fill="#1e3a8a">Какой статус допустим по контракту?</text>
|
||||
<text x="78" y="374" font-family="Arial, sans-serif" font-size="14" fill="#1e3a8a">Артефакт: явная формулировка правила.</text>
|
||||
<path d="M240 386 L240 422" stroke="#64748b" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<rect x="48" y="428" width="384" height="104" rx="16" fill="#dcfce7" stroke="#4ade80" stroke-width="2"/>
|
||||
<text x="78" y="468" font-family="Arial, sans-serif" font-size="20" font-weight="700" fill="#14532d">2. Путь кода</text>
|
||||
<text x="78" y="498" font-family="Arial, sans-serif" font-size="15" fill="#14532d">Где менять parser, экран и тест?</text>
|
||||
<text x="78" y="520" font-family="Arial, sans-serif" font-size="14" fill="#14532d">Артефакт: путь и отрицательный test case.</text>
|
||||
<path d="M240 532 L240 568" stroke="#64748b" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<rect x="48" y="574" width="384" height="104" rx="16" fill="#fef3c7" stroke="#fbbf24" stroke-width="2"/>
|
||||
<text x="78" y="614" font-family="Arial, sans-serif" font-size="20" font-weight="700" fill="#78350f">3. Review</text>
|
||||
<text x="78" y="644" font-family="Arial, sans-serif" font-size="15" fill="#78350f">Кто проверит контракт и риск change?</text>
|
||||
<text x="78" y="666" font-family="Arial, sans-serif" font-size="14" fill="#78350f">Артефакт: ответ на конкретный вопрос.</text>
|
||||
<path d="M240 678 L240 714" stroke="#64748b" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<rect x="48" y="720" width="384" height="104" rx="16" fill="#fae8ff" stroke="#e879f9" stroke-width="2"/>
|
||||
<text x="78" y="760" font-family="Arial, sans-serif" font-size="20" font-weight="700" fill="#701a75">4. После merge</text>
|
||||
<text x="78" y="790" font-family="Arial, sans-serif" font-size="15" fill="#701a75">Кто проверит наблюдаемый результат?</text>
|
||||
<text x="78" y="812" font-family="Arial, sans-serif" font-size="14" fill="#701a75">Артефакт: запись о проверке или задаче.</text>
|
||||
<rect x="48" y="860" width="384" height="78" rx="14" fill="#ffffff" stroke="#cbd5e1" stroke-width="2"/>
|
||||
<text x="78" y="892" font-family="Arial, sans-serif" font-size="18" font-weight="700" fill="#334155">Git history</text>
|
||||
<text x="78" y="918" font-family="Arial, sans-serif" font-size="14" fill="#475569">Даёт факт о строке и context.</text>
|
||||
<text x="78" y="938" font-family="Arial, sans-serif" font-size="14" fill="#475569">Не назначает роль автоматически.</text>
|
||||
<path d="M240 824 L240 854" stroke="#94a3b8" stroke-width="3" stroke-dasharray="8 7" marker-end="url(#arrow-muted)"/>
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M 0 0 L 10 5 L 0 10 z" fill="#64748b"/></marker>
|
||||
<marker id="arrow-muted" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse"><path d="M 0 0 L 10 5 L 0 10 z" fill="#94a3b8"/></marker>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.1 KiB |
@@ -1,63 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="720" height="1080" viewBox="0 0 720 1080" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Диагностика идентичности ES-модулей по URL</title>
|
||||
<desc id="desc">Верхняя панель показывает два import одного URL init.js и одну module identity. Нижняя панель показывает init.js и init.js с query как две разные identity. Внизу указан порядок проверки.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#241536"/>
|
||||
<stop offset="1" stop-color="#081221"/>
|
||||
</linearGradient>
|
||||
<marker id="arrowMint" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto">
|
||||
<path d="M0 0 L10 5 L0 10 z" fill="#4cdbbd"/>
|
||||
</marker>
|
||||
<marker id="arrowRose" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto">
|
||||
<path d="M0 0 L10 5 L0 10 z" fill="#ff87b3"/>
|
||||
</marker>
|
||||
<style>
|
||||
.kicker { font: 700 16px Arial, sans-serif; letter-spacing: 2px; fill: #ff9cc1; }
|
||||
.heading { font: 700 35px Arial, sans-serif; fill: #fff5fa; }
|
||||
.section { font: 700 26px Arial, sans-serif; fill: #fdf5ff; }
|
||||
.code { font: 19px Menlo, Consolas, monospace; fill: #dceaff; }
|
||||
.small { font: 20px Arial, sans-serif; fill: #e1d9ed; }
|
||||
.good { font: 700 20px Arial, sans-serif; fill: #082019; }
|
||||
.warn { font: 700 20px Arial, sans-serif; fill: #30101d; }
|
||||
</style>
|
||||
</defs>
|
||||
<rect width="720" height="1080" fill="url(#background)"/>
|
||||
<text x="44" y="58" class="kicker">FIELD DIAGNOSTIC · MODULE IDENTITY</text>
|
||||
<text x="44" y="106" class="heading">Сравниваем URL, а не считаем теги</text>
|
||||
|
||||
<rect x="44" y="148" width="632" height="326" rx="22" fill="#173f45" stroke="#69e0c5" stroke-width="2"/>
|
||||
<text x="76" y="194" class="section">Один разрешённый URL</text>
|
||||
<rect x="76" y="226" width="222" height="66" rx="12" fill="#244a56"/>
|
||||
<text x="98" y="267" class="code">catalog/main.js</text>
|
||||
<rect x="76" y="316" width="222" height="66" rx="12" fill="#244a56"/>
|
||||
<text x="98" y="357" class="code">admin/main.js</text>
|
||||
<path d="M298 259 H410" stroke="#4cdbbd" stroke-width="5" marker-end="url(#arrowMint)"/>
|
||||
<path d="M298 349 H410" stroke="#4cdbbd" stroke-width="5" marker-end="url(#arrowMint)"/>
|
||||
<rect x="426" y="262" width="214" height="98" rx="14" fill="#1a6558" stroke="#69e0c5" stroke-width="2"/>
|
||||
<text x="450" y="301" class="code">/assets/init.js</text>
|
||||
<text x="450" y="333" class="small">одна identity</text>
|
||||
<rect x="192" y="404" width="336" height="46" rx="23" fill="#76e4c9"/>
|
||||
<text x="286" y="434" class="good">URL = 1</text>
|
||||
|
||||
<rect x="44" y="516" width="632" height="350" rx="22" fill="#4d2c42" stroke="#ff9cc1" stroke-width="2"/>
|
||||
<text x="76" y="562" class="section">Разные разрешённые URL</text>
|
||||
<rect x="76" y="594" width="222" height="66" rx="12" fill="#59334a"/>
|
||||
<text x="98" y="635" class="code">catalog/main.js</text>
|
||||
<path d="M298 627 H410" stroke="#ff87b3" stroke-width="5" marker-end="url(#arrowRose)"/>
|
||||
<rect x="426" y="584" width="214" height="86" rx="14" fill="#743653" stroke="#ff9cc1" stroke-width="2"/>
|
||||
<text x="450" y="635" class="code">/assets/init.js</text>
|
||||
<rect x="76" y="704" width="222" height="66" rx="12" fill="#59334a"/>
|
||||
<text x="98" y="745" class="code">admin/main.js</text>
|
||||
<path d="M298 737 H410" stroke="#ff87b3" stroke-width="5" marker-end="url(#arrowRose)"/>
|
||||
<rect x="426" y="694" width="214" height="86" rx="14" fill="#743653" stroke="#ff9cc1" stroke-width="2"/>
|
||||
<text x="446" y="745" class="code">/assets/init.js?demo=2</text>
|
||||
<rect x="192" y="802" width="336" height="46" rx="23" fill="#ff9abf"/>
|
||||
<text x="286" y="832" class="warn">URL = 2</text>
|
||||
|
||||
<rect x="44" y="910" width="632" height="122" rx="18" fill="#131d32" stroke="#5f6f97" stroke-width="2"/>
|
||||
<text x="76" y="948" class="small">Проверка: import.meta.url → Initiator</text>
|
||||
<text x="76" y="978" class="small">→ status / MIME → entry-владелец</text>
|
||||
<text x="76" y="1008" class="small">→ один bootstrap</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.2 KiB |
@@ -1,62 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="720" height="1040" viewBox="0 0 720 1040" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Нативный граф ES-модулей в браузере</title>
|
||||
<desc id="desc">Вертикальная схема: HTML подключает app.js как модуль, app.js импортирует message.js, после готовности графа app.js обновляет output. Внизу перечислены четыре точки проверки.</desc>
|
||||
<defs>
|
||||
<linearGradient id="surface" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#10243c"/>
|
||||
<stop offset="1" stop-color="#07111e"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto">
|
||||
<path d="M 0 0 L 10 5 L 0 10 z" fill="#66a9ff"/>
|
||||
</marker>
|
||||
<style>
|
||||
.kicker { font: 700 16px Arial, sans-serif; letter-spacing: 2px; fill: #7fe8cf; }
|
||||
.heading { font: 700 36px Arial, sans-serif; fill: #f4f8ff; }
|
||||
.label { font: 700 27px Arial, sans-serif; fill: #eef7ff; }
|
||||
.code { font: 20px Menlo, Consolas, monospace; fill: #c9ddff; }
|
||||
.small { font: 20px Arial, sans-serif; fill: #d2e0f1; }
|
||||
.step { font: 700 17px Arial, sans-serif; fill: #06111f; }
|
||||
</style>
|
||||
</defs>
|
||||
<rect width="720" height="1040" fill="url(#surface)"/>
|
||||
<text x="44" y="58" class="kicker">ES MODULES · 2019</text>
|
||||
<text x="44" y="106" class="heading">Нативный запуск: граф модулей</text>
|
||||
|
||||
<rect x="44" y="146" width="632" height="132" rx="18" fill="#183451" stroke="#4b7198" stroke-width="2"/>
|
||||
<circle cx="632" cy="180" r="20" fill="#49d4b2"/>
|
||||
<text x="626" y="186" class="step">1</text>
|
||||
<text x="76" y="190" class="label">index.html</text>
|
||||
<text x="76" y="226" class="code"><script type="module"</text>
|
||||
<text x="76" y="252" class="code">src="./assets/app.js"></text>
|
||||
|
||||
<path d="M360 278 V334" stroke="#66a9ff" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<text x="388" y="315" class="small">entry URL</text>
|
||||
|
||||
<rect x="44" y="350" width="632" height="132" rx="18" fill="#1b3c59" stroke="#66a9ff" stroke-width="2"/>
|
||||
<circle cx="632" cy="384" r="20" fill="#66a9ff"/>
|
||||
<text x="626" y="390" class="step">2</text>
|
||||
<text x="76" y="394" class="label">assets/app.js</text>
|
||||
<text x="76" y="430" class="code">import { message }</text>
|
||||
<text x="76" y="456" class="code">from "./message.js"</text>
|
||||
|
||||
<path d="M360 482 V538" stroke="#49d4b2" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<text x="388" y="519" class="small">relative URL</text>
|
||||
|
||||
<rect x="44" y="554" width="632" height="132" rx="18" fill="#24405a" stroke="#49d4b2" stroke-width="2"/>
|
||||
<circle cx="632" cy="588" r="20" fill="#7fe8cf"/>
|
||||
<text x="626" y="594" class="step">3</text>
|
||||
<text x="76" y="598" class="label">assets/message.js</text>
|
||||
<text x="76" y="634" class="code">export function message() { ... }</text>
|
||||
|
||||
<path d="M360 686 V742" stroke="#7fe8cf" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<text x="388" y="723" class="small">граф готов</text>
|
||||
|
||||
<rect x="44" y="758" width="632" height="94" rx="18" fill="#1d514e" stroke="#7fe8cf" stroke-width="2"/>
|
||||
<text x="76" y="797" class="label">output#status</text>
|
||||
<text x="76" y="828" class="code">модуль app.js получен</text>
|
||||
|
||||
<rect x="44" y="900" width="632" height="92" rx="16" fill="#0b1b2d" stroke="#345471"/>
|
||||
<text x="76" y="938" class="small">Проверка: URL entry → URL import</text>
|
||||
<text x="76" y="968" class="small">→ Content-Type / CORS → DOM-результат</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.6 KiB |
@@ -1,61 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="720" height="1030" viewBox="0 0 720 1030" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Граница нативного разрешения ES-модуля и Webpack</title>
|
||||
<desc id="desc">Верхняя панель показывает: браузер превращает относительный import из main.js в запрос config.js. Нижняя панель показывает: Webpack заранее разрешает имя пакета, строит graph и выпускает asset. У import общий синтаксис, но разные этапы.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#111b34"/>
|
||||
<stop offset="1" stop-color="#07101f"/>
|
||||
</linearGradient>
|
||||
<marker id="blueArrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto">
|
||||
<path d="M0 0 L10 5 L0 10 z" fill="#79a9ff"/>
|
||||
</marker>
|
||||
<marker id="mintArrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto">
|
||||
<path d="M0 0 L10 5 L0 10 z" fill="#4cdbbd"/>
|
||||
</marker>
|
||||
<style>
|
||||
.kicker { font: 700 16px Arial, sans-serif; letter-spacing: 2px; fill: #91b9ff; }
|
||||
.heading { font: 700 35px Arial, sans-serif; fill: #f4f7ff; }
|
||||
.panel { font: 700 28px Arial, sans-serif; fill: #f4f7ff; }
|
||||
.label { font: 700 24px Arial, sans-serif; fill: #edf4ff; }
|
||||
.code { font: 19px Menlo, Consolas, monospace; fill: #d0e1ff; }
|
||||
.small { font: 20px Arial, sans-serif; fill: #d2dced; }
|
||||
.badge { font: 700 20px Arial, sans-serif; fill: #07111e; }
|
||||
</style>
|
||||
</defs>
|
||||
<rect width="720" height="1030" fill="url(#background)"/>
|
||||
<text x="44" y="58" class="kicker">ES MODULES · RESOLUTION BOUNDARY</text>
|
||||
<text x="44" y="106" class="heading">Одинаковый import, разные этапы</text>
|
||||
|
||||
<rect x="44" y="146" width="632" height="350" rx="22" fill="#142f4e" stroke="#6f9fe6" stroke-width="2"/>
|
||||
<text x="76" y="192" class="panel">Нативный браузер</text>
|
||||
<rect x="76" y="226" width="244" height="94" rx="14" fill="#1d466d"/>
|
||||
<text x="100" y="263" class="label">main.js</text>
|
||||
<text x="100" y="293" class="code">"./config.js"</text>
|
||||
<path d="M320 273 H430" stroke="#79a9ff" stroke-width="5" marker-end="url(#blueArrow)"/>
|
||||
<text x="332" y="247" class="small">URL</text>
|
||||
<rect x="446" y="226" width="194" height="94" rx="14" fill="#205a72"/>
|
||||
<text x="472" y="263" class="label">GET</text>
|
||||
<text x="472" y="293" class="code">config.js</text>
|
||||
<path d="M542 320 V362 H198" stroke="#79a9ff" stroke-width="5" fill="none" marker-end="url(#blueArrow)"/>
|
||||
<rect x="76" y="384" width="564" height="76" rx="14" fill="#0c2038"/>
|
||||
<text x="100" y="416" class="small">Проверяем: import → Request URL</text>
|
||||
<text x="100" y="445" class="small">→ HTTP-ответ. Нет aliases и .js-подбора.</text>
|
||||
|
||||
<rect x="44" y="538" width="632" height="350" rx="22" fill="#173b3b" stroke="#5ed5bc" stroke-width="2"/>
|
||||
<text x="76" y="584" class="panel">Webpack до браузера</text>
|
||||
<rect x="76" y="618" width="224" height="94" rx="14" fill="#1d5a55"/>
|
||||
<text x="100" y="655" class="label">source import</text>
|
||||
<text x="100" y="685" class="code">"date-kit"</text>
|
||||
<path d="M300 665 H410" stroke="#4cdbbd" stroke-width="5" marker-end="url(#mintArrow)"/>
|
||||
<rect x="426" y="618" width="214" height="94" rx="14" fill="#1d7269"/>
|
||||
<text x="450" y="655" class="label">resolve</text>
|
||||
<text x="450" y="685" class="code">graph</text>
|
||||
<path d="M533 712 V754 H198" stroke="#4cdbbd" stroke-width="5" fill="none" marker-end="url(#mintArrow)"/>
|
||||
<rect x="76" y="776" width="564" height="76" rx="14" fill="#0d2827"/>
|
||||
<text x="100" y="808" class="small">Проверяем: config → resolved module</text>
|
||||
<text x="100" y="837" class="small">→ emitted asset. Aliases живут здесь.</text>
|
||||
|
||||
<rect x="126" y="930" width="468" height="56" rx="28" fill="#f2c66c"/>
|
||||
<text x="203" y="966" class="badge">import — общий синтаксис</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.1 KiB |
@@ -1,35 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1220" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Длинная синхронная задача занимает главный поток</title>
|
||||
<desc id="desc">Вертикальная шкала показывает длинный синхронный обработчик, задержанный input, а затем короткие порции работы, между которыми event loop может выбрать input и paint.</desc>
|
||||
<rect width="720" height="1220" rx="32" fill="#0f172a"/>
|
||||
<text x="56" y="82" fill="#f8fafc" font-family="Arial, sans-serif" font-size="40" font-weight="700">Почему async-экран</text>
|
||||
<text x="56" y="124" fill="#f8fafc" font-family="Arial, sans-serif" font-size="40" font-weight="700">всё равно зависает</text>
|
||||
<text x="56" y="172" fill="#94a3b8" font-family="Arial, sans-serif" font-size="24">Promise не выносит вычисление с главного потока.</text>
|
||||
<text x="56" y="204" fill="#94a3b8" font-family="Arial, sans-serif" font-size="24">Пока стек занят, input и render ждут.</text>
|
||||
<g font-family="Arial, sans-serif">
|
||||
<text x="56" y="274" fill="#cbd5e1" font-size="28" font-weight="700">До: один обработчик</text>
|
||||
<line x1="56" y1="300" x2="664" y2="300" stroke="#475569" stroke-width="4"/>
|
||||
<rect x="56" y="330" width="608" height="122" rx="16" fill="#dc2626"/>
|
||||
<text x="360" y="382" fill="#fff" font-size="29" font-weight="700" text-anchor="middle">sync import + parse + render</text>
|
||||
<text x="360" y="420" fill="#fee2e2" font-size="22" text-anchor="middle">main thread занят до return</text>
|
||||
<rect x="56" y="478" width="608" height="84" rx="16" fill="#64748b"/>
|
||||
<text x="360" y="530" fill="#fff" font-size="25" text-anchor="middle">input уже ждёт, но обработчик не начнётся</text>
|
||||
<text x="56" y="650" fill="#cbd5e1" font-size="28" font-weight="700">После: короткие порции</text>
|
||||
<line x1="56" y1="676" x2="664" y2="676" stroke="#475569" stroke-width="4"/>
|
||||
<rect x="56" y="708" width="282" height="90" rx="15" fill="#2563eb"/>
|
||||
<rect x="382" y="708" width="282" height="90" rx="15" fill="#2563eb"/>
|
||||
<text x="197" y="764" fill="#fff" font-size="26" text-anchor="middle">slice 1</text>
|
||||
<text x="523" y="764" fill="#fff" font-size="26" text-anchor="middle">slice 2</text>
|
||||
<rect x="56" y="824" width="282" height="90" rx="15" fill="#2563eb"/>
|
||||
<rect x="382" y="824" width="282" height="90" rx="15" fill="#2563eb"/>
|
||||
<text x="197" y="880" fill="#fff" font-size="26" text-anchor="middle">slice 3</text>
|
||||
<text x="523" y="880" fill="#fff" font-size="26" text-anchor="middle">slice 4</text>
|
||||
<rect x="56" y="942" width="282" height="90" rx="15" fill="#10b981"/>
|
||||
<rect x="382" y="942" width="282" height="90" rx="15" fill="#eab308"/>
|
||||
<text x="197" y="998" fill="#052e16" font-size="26" text-anchor="middle">input</text>
|
||||
<text x="523" y="998" fill="#422006" font-size="26" text-anchor="middle">paint</text>
|
||||
</g>
|
||||
<rect x="56" y="1074" width="608" height="94" rx="16" fill="#1e293b"/>
|
||||
<text x="88" y="1114" fill="#e2e8f0" font-family="Arial, sans-serif" font-size="24">Порции отдают управление event loop.</text>
|
||||
<text x="88" y="1150" fill="#cbd5e1" font-family="Arial, sans-serif" font-size="21">Проверяем это профилем, а не именем функции.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.5 KiB |
@@ -1,34 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1220" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Очередность синхронного кода, microtask и timer-задачи</title>
|
||||
<desc id="desc">Вертикальная схема показывает: синхронный код завершает текущий стек, затем выполняется microtask Promise, после чего event loop может выбрать timer-задачу.</desc>
|
||||
<rect width="720" height="1220" rx="32" fill="#0f172a"/>
|
||||
<text x="56" y="82" fill="#f8fafc" font-family="Arial, sans-serif" font-size="40" font-weight="700">Порядок одного тика</text>
|
||||
<text x="56" y="124" fill="#f8fafc" font-family="Arial, sans-serif" font-size="40" font-weight="700">не угадываем, записываем</text>
|
||||
<text x="56" y="172" fill="#94a3b8" font-family="Arial, sans-serif" font-size="25">Сначала стек, затем microtask checkpoint,</text>
|
||||
<text x="56" y="206" fill="#94a3b8" font-family="Arial, sans-serif" font-size="25">после этого — следующая доступная task.</text>
|
||||
<g font-family="Arial, sans-serif">
|
||||
<rect x="56" y="268" width="608" height="174" rx="22" fill="#2563eb"/>
|
||||
<circle cx="116" cy="326" r="34" fill="#dbeafe"/>
|
||||
<text x="116" y="335" fill="#1e3a8a" font-size="25" font-weight="700" text-anchor="middle">1</text>
|
||||
<text x="174" y="330" fill="#fff" font-size="31" font-weight="700">Текущий стек</text>
|
||||
<text x="174" y="370" fill="#dbeafe" font-size="25">sync: A, затем D</text>
|
||||
<text x="174" y="406" fill="#dbeafe" font-size="22">Выполнить функцию до return.</text>
|
||||
<path d="M360 462v58l-23-25h46z" fill="#64748b"/>
|
||||
<rect x="56" y="548" width="608" height="174" rx="22" fill="#7c3aed"/>
|
||||
<circle cx="116" cy="606" r="34" fill="#ede9fe"/>
|
||||
<text x="116" y="615" fill="#4c1d95" font-size="25" font-weight="700" text-anchor="middle">2</text>
|
||||
<text x="174" y="610" fill="#fff" font-size="31" font-weight="700">Microtask checkpoint</text>
|
||||
<text x="174" y="650" fill="#ede9fe" font-size="25">Promise: B</text>
|
||||
<text x="174" y="686" fill="#ede9fe" font-size="22">Очистить накопленную очередь.</text>
|
||||
<path d="M360 742v58l-23-25h46z" fill="#64748b"/>
|
||||
<rect x="56" y="828" width="608" height="174" rx="22" fill="#0891b2"/>
|
||||
<circle cx="116" cy="886" r="34" fill="#cffafe"/>
|
||||
<text x="116" y="895" fill="#155e75" font-size="25" font-weight="700" text-anchor="middle">3</text>
|
||||
<text x="174" y="890" fill="#fff" font-size="31" font-weight="700">Будущая task</text>
|
||||
<text x="174" y="930" fill="#cffafe" font-size="25">timer: C</text>
|
||||
<text x="174" y="966" fill="#cffafe" font-size="22">Event loop выбирает доступную работу.</text>
|
||||
</g>
|
||||
<rect x="56" y="1064" width="608" height="104" rx="16" fill="#1e293b"/>
|
||||
<text x="88" y="1112" fill="#e2e8f0" font-family="Arial, sans-serif" font-size="25">Порядок опыта: A → D → B → C.</text>
|
||||
<text x="88" y="1148" fill="#cbd5e1" font-family="Arial, sans-serif" font-size="21">Timer не обязан запускаться сразу после 0 ms.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.2 KiB |
@@ -1,34 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1220" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Маршрут диагностики неожиданного порядка async колбэков</title>
|
||||
<desc id="desc">Вертикальная схема ведёт от отметок времени и номера запуска через разделение sync, microtask и task к проверке длинной работы в performance trace.</desc>
|
||||
<rect width="720" height="1220" rx="32" fill="#0f172a"/>
|
||||
<text x="56" y="82" fill="#f8fafc" font-family="Arial, sans-serif" font-size="40" font-weight="700">Маршрут разбора:</text>
|
||||
<text x="56" y="124" fill="#f8fafc" font-family="Arial, sans-serif" font-size="40" font-weight="700">от лога к причине</text>
|
||||
<text x="56" y="172" fill="#94a3b8" font-family="Arial, sans-serif" font-size="24">Не называем очередь сломанной, пока не записали</text>
|
||||
<text x="56" y="204" fill="#94a3b8" font-family="Arial, sans-serif" font-size="24">источник callback и sync-границу.</text>
|
||||
<g font-family="Arial, sans-serif">
|
||||
<rect x="56" y="274" width="608" height="184" rx="22" fill="#1d4ed8"/>
|
||||
<circle cx="116" cy="332" r="34" fill="#dbeafe"/>
|
||||
<text x="116" y="341" fill="#1e3a8a" font-size="25" font-weight="700" text-anchor="middle">1</text>
|
||||
<text x="174" y="336" fill="#fff" font-size="31" font-weight="700">Записать лог</text>
|
||||
<text x="174" y="376" fill="#dbeafe" font-size="24">label, runId, performance.now()</text>
|
||||
<text x="174" y="412" fill="#dbeafe" font-size="21">и источник каждого callback.</text>
|
||||
<path d="M360 478v58l-23-25h46z" fill="#64748b"/>
|
||||
<rect x="56" y="564" width="608" height="184" rx="22" fill="#7c3aed"/>
|
||||
<circle cx="116" cy="622" r="34" fill="#ede9fe"/>
|
||||
<text x="116" y="631" fill="#4c1d95" font-size="25" font-weight="700" text-anchor="middle">2</text>
|
||||
<text x="174" y="626" fill="#fff" font-size="31" font-weight="700">Классифицировать</text>
|
||||
<text x="174" y="666" fill="#ede9fe" font-size="24">sync / microtask / task</text>
|
||||
<text x="174" y="702" fill="#ede9fe" font-size="21">или длинную работу main thread.</text>
|
||||
<path d="M360 768v58l-23-25h46z" fill="#64748b"/>
|
||||
<rect x="56" y="854" width="608" height="184" rx="22" fill="#0f766e"/>
|
||||
<circle cx="116" cy="912" r="34" fill="#ccfbf1"/>
|
||||
<text x="116" y="921" fill="#115e59" font-size="25" font-weight="700" text-anchor="middle">3</text>
|
||||
<text x="174" y="916" fill="#fff" font-size="31" font-weight="700">Выбрать действие</text>
|
||||
<text x="174" y="956" fill="#ccfbf1" font-size="24">явная зависимость, отмена</text>
|
||||
<text x="174" y="992" fill="#ccfbf1" font-size="21">или работа с CPU/DOM-границей.</text>
|
||||
</g>
|
||||
<rect x="56" y="1074" width="608" height="94" rx="16" fill="#1e293b"/>
|
||||
<text x="88" y="1114" fill="#e2e8f0" font-family="Arial, sans-serif" font-size="24">Порядок и задержка повторяемы.</text>
|
||||
<text x="88" y="1150" fill="#cbd5e1" font-family="Arial, sans-serif" font-size="21">Один удачный запуск не закрывает проверку.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.3 KiB |
@@ -1,56 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 820" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Контракт валидации формы</title>
|
||||
<desc id="desc">Вертикальная схема: HTML проверяет форму ввода, клиент хранит версию и привязывает ошибки к полю, сервер проверяет данные и возвращает ключ поля. Старый ответ не имеет права изменить новое значение.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#091c2d"/>
|
||||
<stop offset="1" stop-color="#12344c"/>
|
||||
</linearGradient>
|
||||
<filter id="shadow" x="-20%" y="-20%" width="140%" height="140%">
|
||||
<feDropShadow dx="0" dy="8" stdDeviation="10" flood-color="#03111e" flood-opacity=".32"/>
|
||||
</filter>
|
||||
<marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto">
|
||||
<path d="M0 0L10 5L0 10z" fill="#8de4da"/>
|
||||
</marker>
|
||||
<marker id="coralArrow" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto">
|
||||
<path d="M0 0L10 5L0 10z" fill="#ff9a8b"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="720" height="820" rx="34" fill="url(#bg)"/>
|
||||
<text x="56" y="68" fill="#ffffff" font-family="Arial, sans-serif" font-size="30" font-weight="700">Форма: один контракт, три владельца</text>
|
||||
<text x="56" y="102" fill="#bdd4e5" font-family="Arial, sans-serif" font-size="18">Симптом: браузер считает поле нормальным, API отказывает.</text>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="56" y="146" width="608" height="144" rx="22" fill="#e8f8f3"/>
|
||||
<rect x="56" y="146" width="14" height="144" rx="7" fill="#36b7a1"/>
|
||||
<text x="96" y="190" fill="#103543" font-family="Arial, sans-serif" font-size="24" font-weight="700">1. HTML-контрол</text>
|
||||
<text x="96" y="224" fill="#294f5b" font-family="Arial, sans-serif" font-size="19">required · type=email · pattern</text>
|
||||
<text x="96" y="256" fill="#294f5b" font-family="Arial, sans-serif" font-size="19">Даёт ранний сигнал, но не знает базу.</text>
|
||||
</g>
|
||||
<path d="M360 290V340" stroke="#8de4da" stroke-width="7" stroke-linecap="round" marker-end="url(#arrow)"/>
|
||||
<text x="390" y="325" fill="#8de4da" font-family="Arial, sans-serif" font-size="16">локально корректно</text>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="56" y="350" width="608" height="176" rx="22" fill="#eaf0ff"/>
|
||||
<rect x="56" y="350" width="14" height="176" rx="7" fill="#6579df"/>
|
||||
<text x="96" y="394" fill="#1d326b" font-family="Arial, sans-serif" font-size="24" font-weight="700">2. Клиентское состояние</text>
|
||||
<text x="96" y="428" fill="#32487c" font-family="Arial, sans-serif" font-size="19">value + requestId + phase + fieldError</text>
|
||||
<text x="96" y="460" fill="#32487c" font-family="Arial, sans-serif" font-size="19">Сравнивает версию до render.</text>
|
||||
<rect x="436" y="412" width="184" height="70" rx="14" fill="#ffffff" stroke="#6579df" stroke-width="2"/>
|
||||
<text x="456" y="440" fill="#1d326b" font-family="Arial, sans-serif" font-size="17" font-weight="700">email-error</text>
|
||||
<text x="456" y="465" fill="#32487c" font-family="Arial, sans-serif" font-size="15">aria-invalid=true</text>
|
||||
</g>
|
||||
<path d="M360 526V576" stroke="#8de4da" stroke-width="7" stroke-linecap="round" marker-end="url(#arrow)"/>
|
||||
<text x="390" y="560" fill="#8de4da" font-family="Arial, sans-serif" font-size="16">проверка условия</text>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="56" y="586" width="608" height="144" rx="22" fill="#fff3e7"/>
|
||||
<rect x="56" y="586" width="14" height="144" rx="7" fill="#f39a4b"/>
|
||||
<text x="96" y="630" fill="#6a3a16" font-family="Arial, sans-serif" font-size="24" font-weight="700">3. API и данные</text>
|
||||
<text x="96" y="664" fill="#80512a" font-family="Arial, sans-serif" font-size="19">Занятость, права, нормализация, сохранение.</text>
|
||||
<text x="96" y="696" fill="#80512a" font-family="Arial, sans-serif" font-size="19">Возвращает fields.email и код ошибки.</text>
|
||||
</g>
|
||||
|
||||
<path d="M82 752C82 786 638 786 638 752" fill="none" stroke="#ff9a8b" stroke-width="5" stroke-linecap="round" marker-end="url(#coralArrow)"/>
|
||||
<text x="181" y="794" fill="#ffb7ac" font-family="Arial, sans-serif" font-size="17" font-weight="700">старый requestId → не меняет новое поле</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.6 KiB |
@@ -1,61 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 860" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Поздний ответ не меняет новое поле</title>
|
||||
<desc id="desc">Временная диаграмма проверки логина: пользователь сначала вводит ivan и запускает медленный запрос с requestId 1, затем ivanka с requestId 2. Быстрый новый ответ применён, поздний старый ответ отклонён как устаревший.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#162332"/>
|
||||
<stop offset="1" stop-color="#1d4658"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto">
|
||||
<path d="M0 0L10 5L0 10z" fill="#98e0e8"/>
|
||||
</marker>
|
||||
<marker id="danger" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto">
|
||||
<path d="M0 0L10 5L0 10z" fill="#ff9d8d"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="720" height="860" rx="34" fill="url(#bg)"/>
|
||||
<text x="54" y="66" fill="#ffffff" font-family="Arial, sans-serif" font-size="30" font-weight="700">Два ответа, одно актуальное поле</text>
|
||||
<text x="54" y="100" fill="#c6dce9" font-family="Arial, sans-serif" font-size="18">Нельзя доверять времени ответа: сравниваем requestId.</text>
|
||||
|
||||
<g font-family="Arial, sans-serif">
|
||||
<text x="70" y="156" fill="#b9d5e4" font-size="18" font-weight="700">Пользователь</text>
|
||||
<text x="294" y="156" fill="#b9d5e4" font-size="18" font-weight="700">Форма</text>
|
||||
<text x="520" y="156" fill="#b9d5e4" font-size="18" font-weight="700">Проверка API</text>
|
||||
<path d="M150 174H650" stroke="#7ba2b6" stroke-width="2" stroke-dasharray="8 8"/>
|
||||
<path d="M150 174V746" stroke="#7ba2b6" stroke-width="2" stroke-dasharray="8 8"/>
|
||||
<path d="M370 174V746" stroke="#7ba2b6" stroke-width="2" stroke-dasharray="8 8"/>
|
||||
<path d="M604 174V746" stroke="#7ba2b6" stroke-width="2" stroke-dasharray="8 8"/>
|
||||
|
||||
<text x="68" y="230" fill="#ffffff" font-size="20">1. Ввод: ivan</text>
|
||||
<path d="M178 238H348" stroke="#98e0e8" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<rect x="238" y="258" width="236" height="74" rx="16" fill="#d9f5f4"/>
|
||||
<text x="260" y="289" fill="#15545a" font-size="18" font-weight="700">requestId = 1</text>
|
||||
<text x="260" y="314" fill="#2e7478" font-size="16">checking: ivan</text>
|
||||
<path d="M382 296H582" stroke="#98e0e8" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<text x="430" y="282" fill="#c6dce9" font-size="15">медленный ответ</text>
|
||||
|
||||
<text x="58" y="394" fill="#ffffff" font-size="20">2. Ввод: ivanka</text>
|
||||
<path d="M188 402H348" stroke="#98e0e8" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<rect x="238" y="422" width="236" height="74" rx="16" fill="#d9f5f4"/>
|
||||
<text x="260" y="453" fill="#15545a" font-size="18" font-weight="700">requestId = 2</text>
|
||||
<text x="260" y="478" fill="#2e7478" font-size="16">checking: ivanka</text>
|
||||
<path d="M382 460H582" stroke="#98e0e8" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<text x="432" y="446" fill="#c6dce9" font-size="15">быстрый ответ</text>
|
||||
|
||||
<path d="M594 506H394" stroke="#89e5b1" stroke-width="7" marker-end="url(#arrow)"/>
|
||||
<rect x="212" y="530" width="260" height="78" rx="16" fill="#d4f4df"/>
|
||||
<text x="236" y="562" fill="#15553a" font-size="19" font-weight="700">apply: requestId 2</text>
|
||||
<text x="236" y="588" fill="#2e7750" font-size="16">ivanka · valid · error пуст</text>
|
||||
<text x="482" y="540" fill="#9ee6b9" font-size="16">available</text>
|
||||
|
||||
<path d="M594 646H394" stroke="#ff9d8d" stroke-width="7" marker-end="url(#danger)"/>
|
||||
<path d="M358 620L426 688" stroke="#ff9d8d" stroke-width="8" stroke-linecap="round"/>
|
||||
<path d="M426 620L358 688" stroke="#ff9d8d" stroke-width="8" stroke-linecap="round"/>
|
||||
<text x="482" y="634" fill="#ffc2b8" font-size="16">occupied, но поздно</text>
|
||||
<rect x="212" y="704" width="316" height="72" rx="16" fill="#563543" stroke="#ff9d8d" stroke-width="2"/>
|
||||
<text x="236" y="735" fill="#ffd8d0" font-size="19" font-weight="700">ignore: stale-response</text>
|
||||
<text x="236" y="760" fill="#ffc2b8" font-size="16">1 !== current requestId 2</text>
|
||||
</g>
|
||||
<rect x="54" y="804" width="612" height="34" rx="17" fill="#235e6c"/>
|
||||
<text x="94" y="827" fill="#e7fbff" font-family="Arial, sans-serif" font-size="16" font-weight="700">Новый input очищает старую ошибку раньше следующего render.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.7 KiB |
@@ -1,61 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 900" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Конечный автомат проверки одного поля</title>
|
||||
<desc id="desc">Схема показывает переходы поля: editing, client-invalid, checking, ready и remote-invalid. Каждый новый input увеличивает версию и очищает старый удалённый результат. Устаревший ответ обрывается до изменения состояния.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#17142e"/>
|
||||
<stop offset="1" stop-color="#342056"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto">
|
||||
<path d="M0 0L10 5L0 10z" fill="#c7b5ff"/>
|
||||
</marker>
|
||||
<marker id="mutedArrow" markerWidth="10" markerHeight="10" refX="8" refY="5" orient="auto">
|
||||
<path d="M0 0L10 5L0 10z" fill="#9aa4bb"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="720" height="900" rx="34" fill="url(#bg)"/>
|
||||
<text x="54" y="66" fill="#ffffff" font-family="Arial, sans-serif" font-size="30" font-weight="700">Поле как небольшой автомат</text>
|
||||
<text x="54" y="100" fill="#d7cff5" font-family="Arial, sans-serif" font-size="18">Версия — условие, по которому ответ получает право изменить UI.</text>
|
||||
|
||||
<g font-family="Arial, sans-serif">
|
||||
<rect x="216" y="144" width="288" height="92" rx="46" fill="#dcd4ff"/>
|
||||
<text x="278" y="181" fill="#30205f" font-size="25" font-weight="700">editing</text>
|
||||
<text x="248" y="211" fill="#4b3978" font-size="17">value изменён · version + 1</text>
|
||||
|
||||
<path d="M216 190H132V310" fill="none" stroke="#c7b5ff" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<text x="52" y="256" fill="#d7cff5" font-size="16">локальная ошибка</text>
|
||||
<rect x="52" y="320" width="244" height="96" rx="20" fill="#ffccd2"/>
|
||||
<text x="76" y="359" fill="#6f2634" font-size="23" font-weight="700">client-invalid</text>
|
||||
<text x="76" y="389" fill="#8b4050" font-size="16">сеть не запускаем</text>
|
||||
|
||||
<path d="M504 190H588V310" fill="none" stroke="#c7b5ff" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<text x="522" y="256" fill="#d7cff5" font-size="16">локально корректно</text>
|
||||
<rect x="424" y="320" width="244" height="96" rx="20" fill="#c5eff0"/>
|
||||
<text x="478" y="359" fill="#174e56" font-size="23" font-weight="700">checking</text>
|
||||
<text x="456" y="389" fill="#2a6870" font-size="16">запомнить version</text>
|
||||
|
||||
<path d="M546 416V506H452" fill="none" stroke="#c7b5ff" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<text x="472" y="482" fill="#d7cff5" font-size="16">available</text>
|
||||
<rect x="226" y="518" width="244" height="96" rx="20" fill="#c9f1d9"/>
|
||||
<text x="310" y="557" fill="#145339" font-size="23" font-weight="700">ready</text>
|
||||
<text x="264" y="587" fill="#28704e" font-size="16">можно отправлять форму</text>
|
||||
|
||||
<path d="M546 416V676H452" fill="none" stroke="#c7b5ff" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<text x="556" y="580" fill="#d7cff5" font-size="16">occupied</text>
|
||||
<rect x="226" y="690" width="244" height="96" rx="20" fill="#ffd8bd"/>
|
||||
<text x="253" y="729" fill="#713a1a" font-size="22" font-weight="700">remote-invalid</text>
|
||||
<text x="250" y="759" fill="#8b5432" font-size="16">ошибка у этого поля</text>
|
||||
|
||||
<path d="M226 566C94 566 94 190 208 190" fill="none" stroke="#c7b5ff" stroke-width="5" stroke-dasharray="10 10" marker-end="url(#arrow)"/>
|
||||
<path d="M226 738C110 738 110 190 208 190" fill="none" stroke="#c7b5ff" stroke-width="5" stroke-dasharray="10 10" marker-end="url(#arrow)"/>
|
||||
<text x="58" y="464" fill="#d7cff5" font-size="16">любой input → очистить</text>
|
||||
<text x="58" y="486" fill="#d7cff5" font-size="16">старую remoteError</text>
|
||||
|
||||
<path d="M578 462L642 526" stroke="#9aa4bb" stroke-width="5" stroke-linecap="round"/>
|
||||
<path d="M642 462L578 526" stroke="#9aa4bb" stroke-width="5" stroke-linecap="round"/>
|
||||
<text x="510" y="556" fill="#b7bfd0" font-size="15">старая версия</text>
|
||||
<text x="510" y="577" fill="#b7bfd0" font-size="15">не делает render</text>
|
||||
</g>
|
||||
<rect x="54" y="830" width="612" height="38" rx="19" fill="#4c397b"/>
|
||||
<text x="90" y="856" fill="#f1edff" font-family="Arial, sans-serif" font-size="17" font-weight="700">Ответ применяем, только если checkedVersion === current.version</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.6 KiB |
@@ -1,46 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 760" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Критический путь первого экрана</title>
|
||||
<desc id="desc">Схема показывает, как начальный HTML открывает обнаружение CSS, JavaScript и hero-изображения, а затем свободный главный поток и готовые стили позволяют нарисовать полезный экран.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#111b30"/>
|
||||
<stop offset="1" stop-color="#243350"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
|
||||
<path d="M 0 0 L 10 5 L 0 10 z" fill="#a7bad7"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="1000" height="760" fill="url(#background)"/>
|
||||
<g font-family="Arial, sans-serif">
|
||||
<text x="70" y="68" fill="#f8fbff" font-size="34" font-weight="700">Критический путь полезного экрана</text>
|
||||
<text x="70" y="104" fill="#c1cee2" font-size="20">Быстрый ответ HTML полезен, но не завершает визуальную работу браузера.</text>
|
||||
<rect x="70" y="156" width="260" height="110" rx="20" fill="#4a93e9"/>
|
||||
<text x="200" y="202" text-anchor="middle" fill="#0e2038" font-size="25" font-weight="700">HTML</text>
|
||||
<text x="200" y="234" text-anchor="middle" fill="#16304e" font-size="18">разбор и обнаружение</text>
|
||||
<path d="M 330 211 L 426 211" stroke="#a7bad7" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<path d="M 330 223 C 380 285 420 300 480 316" fill="none" stroke="#a7bad7" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<path d="M 330 223 C 400 385 450 450 510 474" fill="none" stroke="#a7bad7" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<rect x="450" y="156" width="260" height="110" rx="20" fill="#5ed2bb"/>
|
||||
<text x="580" y="202" text-anchor="middle" fill="#09362d" font-size="25" font-weight="700">CSS</text>
|
||||
<text x="580" y="234" text-anchor="middle" fill="#154f43" font-size="18">stylesheet и CSSOM</text>
|
||||
<rect x="450" y="292" width="260" height="110" rx="20" fill="#ffb45c"/>
|
||||
<text x="580" y="338" text-anchor="middle" fill="#351d00" font-size="25" font-weight="700">JavaScript</text>
|
||||
<text x="580" y="370" text-anchor="middle" fill="#523000" font-size="18">parse и main thread</text>
|
||||
<rect x="450" y="448" width="260" height="110" rx="20" fill="#d79bf7"/>
|
||||
<text x="580" y="494" text-anchor="middle" fill="#361442" font-size="25" font-weight="700">Hero</text>
|
||||
<text x="580" y="526" text-anchor="middle" fill="#512466" font-size="18">request, decode, paint</text>
|
||||
<path d="M 710 211 C 770 211 755 330 815 330" fill="none" stroke="#a7bad7" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<path d="M 710 347 L 815 347" stroke="#a7bad7" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<path d="M 710 503 C 770 503 758 366 815 366" fill="none" stroke="#a7bad7" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<rect x="830" y="272" width="120" height="150" rx="24" fill="#f5f8ff"/>
|
||||
<text x="890" y="321" text-anchor="middle" fill="#1b2840" font-size="19" font-weight="700">Готово</text>
|
||||
<text x="890" y="350" text-anchor="middle" fill="#1b2840" font-size="19" font-weight="700">для</text>
|
||||
<text x="890" y="379" text-anchor="middle" fill="#1b2840" font-size="19" font-weight="700">paint</text>
|
||||
<path d="M 890 422 L 890 514" stroke="#a7bad7" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<rect x="745" y="545" width="210" height="100" rx="22" fill="#f5f8ff"/>
|
||||
<text x="850" y="586" text-anchor="middle" fill="#1b2840" font-size="22" font-weight="700">Полезный</text>
|
||||
<text x="850" y="617" text-anchor="middle" fill="#1b2840" font-size="22" font-weight="700">первый экран</text>
|
||||
<text x="70" y="682" fill="#c1cee2" font-size="18">Проверяем разрыв: URL обнаружен поздно, CSS не готов или main thread занят.</text>
|
||||
<text x="70" y="714" fill="#c1cee2" font-size="18">Отдельно: изображение прошло request, decode и paint?</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.3 KiB |
@@ -1,54 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 780" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Профиль первой загрузки с четырьмя владельцами времени</title>
|
||||
<desc id="desc">Вертикальная схема показывает документ и сеть, JavaScript на главном потоке, CSS и hero-изображение как отдельные дорожки, которые сходятся в полезный первый экран.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#101a32"/>
|
||||
<stop offset="1" stop-color="#172a45"/>
|
||||
</linearGradient>
|
||||
<filter id="shadow" x="-10%" y="-10%" width="120%" height="130%">
|
||||
<feDropShadow dx="0" dy="8" stdDeviation="8" flood-color="#07101f" flood-opacity=".28"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<rect width="1000" height="780" fill="url(#bg)"/>
|
||||
<text x="70" y="70" fill="#f6f8fc" font-family="Arial, sans-serif" font-size="34" font-weight="700">Первая загрузка — четыре независимые дорожки</text>
|
||||
<text x="70" y="106" fill="#b8c8e3" font-family="Arial, sans-serif" font-size="20">Профиль отвечает «кому принадлежит задержка», а не складывает всё в одно число.</text>
|
||||
<g font-family="Arial, sans-serif">
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="70" y="152" width="860" height="100" rx="18" fill="#1e3558"/>
|
||||
<rect x="96" y="178" width="154" height="48" rx="24" fill="#4e9af1"/>
|
||||
<text x="173" y="209" text-anchor="middle" fill="#09192d" font-size="20" font-weight="700">Сеть</text>
|
||||
<text x="282" y="193" fill="#f6f8fc" font-size="23" font-weight="700">HTML и критические запросы</text>
|
||||
<text x="282" y="220" fill="#b8c8e3" font-size="18">redirect · connect · response · обнаружение URL</text>
|
||||
<line x1="655" y1="202" x2="875" y2="202" stroke="#4e9af1" stroke-width="14" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="70" y="276" width="860" height="100" rx="18" fill="#27365b"/>
|
||||
<rect x="96" y="302" width="154" height="48" rx="24" fill="#ffb45c"/>
|
||||
<text x="173" y="333" text-anchor="middle" fill="#2a1700" font-size="20" font-weight="700">JS</text>
|
||||
<text x="282" y="317" fill="#f6f8fc" font-size="23" font-weight="700">Главный поток</text>
|
||||
<text x="282" y="344" fill="#c8d2e7" font-size="18">parse · execute · DOM · сторонний код</text>
|
||||
<line x1="574" y1="326" x2="822" y2="326" stroke="#ffb45c" stroke-width="14" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="70" y="400" width="860" height="100" rx="18" fill="#1c4551"/>
|
||||
<rect x="96" y="426" width="154" height="48" rx="24" fill="#5dd6ba"/>
|
||||
<text x="173" y="457" text-anchor="middle" fill="#06342d" font-size="20" font-weight="700">CSS</text>
|
||||
<text x="282" y="441" fill="#f6f8fc" font-size="23" font-weight="700">Стиль и layout</text>
|
||||
<text x="282" y="468" fill="#c3e6df" font-size="18">stylesheet · CSSOM · style · layout</text>
|
||||
<line x1="612" y1="450" x2="760" y2="450" stroke="#5dd6ba" stroke-width="14" stroke-linecap="round"/>
|
||||
</g>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="70" y="524" width="860" height="100" rx="18" fill="#4b355d"/>
|
||||
<rect x="96" y="550" width="154" height="48" rx="24" fill="#d59afa"/>
|
||||
<text x="173" y="581" text-anchor="middle" fill="#321343" font-size="20" font-weight="700">Image</text>
|
||||
<text x="282" y="565" fill="#f6f8fc" font-size="23" font-weight="700">Hero-изображение</text>
|
||||
<text x="282" y="592" fill="#ead8f7" font-size="18">URL · transfer · decode · paint</text>
|
||||
<line x1="600" y1="574" x2="846" y2="574" stroke="#d59afa" stroke-width="14" stroke-linecap="round"/>
|
||||
</g>
|
||||
<path d="M 500 640 L 500 681" stroke="#9bb0d3" stroke-width="5" stroke-linecap="round"/>
|
||||
<path d="M 500 681 L 488 665 M 500 681 L 512 665" fill="none" stroke="#9bb0d3" stroke-width="5" stroke-linecap="round"/>
|
||||
<rect x="185" y="695" width="630" height="60" rx="30" fill="#f4f7fc"/>
|
||||
<text x="500" y="733" text-anchor="middle" fill="#16233a" font-size="21" font-weight="700">Полезный экран: проверяем одну границу</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.4 KiB |
@@ -1,49 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 800" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Маршрут диагностики позднего полезного экрана</title>
|
||||
<desc id="desc">Дерево решения ведёт от позднего полезного screenshot к четырём проверкам: позднее обнаружение ресурса, JavaScript на главном потоке, CSS и layout, а также загрузка и декодирование изображения.</desc>
|
||||
<defs>
|
||||
<linearGradient id="fieldbg" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#152039"/>
|
||||
<stop offset="1" stop-color="#263756"/>
|
||||
</linearGradient>
|
||||
<marker id="branchArrow" viewBox="0 0 10 10" refX="9" refY="5" markerWidth="8" markerHeight="8" orient="auto">
|
||||
<path d="M 0 0 L 10 5 L 0 10 z" fill="#b8c8e2"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="1000" height="800" fill="url(#fieldbg)"/>
|
||||
<g font-family="Arial, sans-serif">
|
||||
<text x="70" y="66" fill="#f8fbff" font-size="34" font-weight="700">Диагностика: поздний экран</text>
|
||||
<text x="70" y="102" fill="#c6d3e7" font-size="20">Сначала наблюдаемый блок, затем владелец задержки, потом обратимая проверка.</text>
|
||||
<rect x="280" y="145" width="440" height="92" rx="22" fill="#f5f8ff"/>
|
||||
<text x="500" y="184" text-anchor="middle" fill="#17243b" font-size="24" font-weight="700">Полезный экран запоздал</text>
|
||||
<text x="500" y="214" text-anchor="middle" fill="#394962" font-size="17">HTML мог уже прийти — это ещё не ответ о причине</text>
|
||||
<path d="M 500 237 L 500 292" stroke="#b8c8e2" stroke-width="5" marker-end="url(#branchArrow)"/>
|
||||
<rect x="322" y="305" width="356" height="74" rx="18" fill="#31476d"/>
|
||||
<text x="500" y="336" text-anchor="middle" fill="#f8fbff" font-size="21" font-weight="700">Критический URL стартовал рано?</text>
|
||||
<text x="500" y="361" text-anchor="middle" fill="#d5e0f0" font-size="17">сверяем HTML, waterfall и element</text>
|
||||
<path d="M 350 379 C 255 415 210 434 185 478" fill="none" stroke="#b8c8e2" stroke-width="5" marker-end="url(#branchArrow)"/>
|
||||
<path d="M 455 379 C 430 420 410 432 402 478" fill="none" stroke="#b8c8e2" stroke-width="5" marker-end="url(#branchArrow)"/>
|
||||
<path d="M 545 379 C 570 420 590 432 598 478" fill="none" stroke="#b8c8e2" stroke-width="5" marker-end="url(#branchArrow)"/>
|
||||
<path d="M 650 379 C 745 415 790 434 815 478" fill="none" stroke="#b8c8e2" stroke-width="5" marker-end="url(#branchArrow)"/>
|
||||
<rect x="55" y="495" width="260" height="158" rx="20" fill="#4d94ea"/>
|
||||
<text x="185" y="534" text-anchor="middle" fill="#10233c" font-size="22" font-weight="700">Позднее</text>
|
||||
<text x="185" y="562" text-anchor="middle" fill="#10233c" font-size="22" font-weight="700">обнаружение</text>
|
||||
<text x="185" y="594" text-anchor="middle" fill="#16304e" font-size="17">URL создаётся кодом</text>
|
||||
<text x="185" y="620" text-anchor="middle" fill="#16304e" font-size="17">или скрыт в CSS</text>
|
||||
<text x="185" y="642" text-anchor="middle" fill="#173454" font-size="15" font-weight="700">Показать URL раньше</text>
|
||||
<rect x="345" y="495" width="260" height="158" rx="20" fill="#ffb45c"/>
|
||||
<text x="475" y="534" text-anchor="middle" fill="#352000" font-size="22" font-weight="700">JavaScript</text>
|
||||
<text x="475" y="562" text-anchor="middle" fill="#352000" font-size="22" font-weight="700">на main thread</text>
|
||||
<text x="475" y="594" text-anchor="middle" fill="#4b2c00" font-size="17">scripting до render</text>
|
||||
<text x="475" y="620" text-anchor="middle" fill="#4b2c00" font-size="17">или лишний DOM</text>
|
||||
<text x="475" y="642" text-anchor="middle" fill="#4b2c00" font-size="15" font-weight="700">Отложить один модуль</text>
|
||||
<rect x="635" y="495" width="260" height="158" rx="20" fill="#5ed1b8"/>
|
||||
<text x="765" y="534" text-anchor="middle" fill="#07372e" font-size="22" font-weight="700">CSS и</text>
|
||||
<text x="765" y="562" text-anchor="middle" fill="#07372e" font-size="22" font-weight="700">layout</text>
|
||||
<text x="765" y="594" text-anchor="middle" fill="#164e44" font-size="17">поздний stylesheet</text>
|
||||
<text x="765" y="620" text-anchor="middle" fill="#164e44" font-size="17">или повторный layout</text>
|
||||
<text x="765" y="642" text-anchor="middle" fill="#164e44" font-size="15" font-weight="700">Исправить границу CSS</text>
|
||||
<rect x="55" y="690" width="840" height="58" rx="29" fill="#d99af9"/>
|
||||
<text x="475" y="726" text-anchor="middle" fill="#351442" font-size="21" font-weight="700">Изображение: отдельно проверить request, размер, decode и paint</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.9 KiB |
@@ -1,45 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1120" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Как HTTP-кэш выбирает вариант ответа</title>
|
||||
<desc id="desc">Схема показывает, что URL и поля из Vary образуют ключ варианта, затем кэш проверяет свежесть и при истечении срока валидирует ETag у origin.</desc>
|
||||
<rect width="720" height="1120" fill="#f8fafc"/>
|
||||
<rect x="42" y="34" width="636" height="108" rx="18" fill="#1e293b"/>
|
||||
<text x="360" y="78" text-anchor="middle" fill="#fff" font-size="28" font-family="Arial, sans-serif" font-weight="700">Ответ выбирается по ключу, а не по TTL</text>
|
||||
<text x="360" y="112" text-anchor="middle" fill="#cbd5e1" font-size="20" font-family="Arial, sans-serif">URL + входы, перечисленные в Vary</text>
|
||||
|
||||
<rect x="82" y="192" width="556" height="108" rx="16" fill="#e0f2fe" stroke="#0284c7" stroke-width="3"/>
|
||||
<text x="360" y="234" text-anchor="middle" fill="#0c4a6e" font-size="25" font-family="Arial, sans-serif" font-weight="700">GET /catalog</text>
|
||||
<text x="360" y="268" text-anchor="middle" fill="#0c4a6e" font-size="20" font-family="Arial, sans-serif">Accept-Language: ru</text>
|
||||
<path d="M360 300v48" stroke="#334155" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="82" y="352" width="556" height="132" rx="16" fill="#fef3c7" stroke="#d97706" stroke-width="3"/>
|
||||
<text x="360" y="395" text-anchor="middle" fill="#78350f" font-size="25" font-family="Arial, sans-serif" font-weight="700">Ключ варианта</text>
|
||||
<text x="360" y="431" text-anchor="middle" fill="#78350f" font-size="20" font-family="Arial, sans-serif">URL + Accept-Language</text>
|
||||
<text x="360" y="459" text-anchor="middle" fill="#78350f" font-size="18" font-family="Arial, sans-serif">если origin отдал Vary: Accept-Language</text>
|
||||
<path d="M360 484v48" stroke="#334155" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="110" y="536" width="500" height="110" rx="16" fill="#ede9fe" stroke="#7c3aed" stroke-width="3"/>
|
||||
<text x="360" y="578" text-anchor="middle" fill="#4c1d95" font-size="25" font-family="Arial, sans-serif" font-weight="700">Найдено представление ru</text>
|
||||
<text x="360" y="612" text-anchor="middle" fill="#4c1d95" font-size="19" font-family="Arial, sans-serif">Cache-Control задаёт его свежесть</text>
|
||||
<path d="M360 646v52" stroke="#334155" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="80" y="702" width="254" height="116" rx="16" fill="#dcfce7" stroke="#16a34a" stroke-width="3"/>
|
||||
<text x="207" y="748" text-anchor="middle" fill="#14532d" font-size="24" font-family="Arial, sans-serif" font-weight="700">Свежий</text>
|
||||
<text x="207" y="781" text-anchor="middle" fill="#14532d" font-size="18" font-family="Arial, sans-serif">вернуть тело</text>
|
||||
<rect x="386" y="702" width="254" height="116" rx="16" fill="#fee2e2" stroke="#dc2626" stroke-width="3"/>
|
||||
<text x="513" y="748" text-anchor="middle" fill="#7f1d1d" font-size="24" font-family="Arial, sans-serif" font-weight="700">Устарел</text>
|
||||
<text x="513" y="781" text-anchor="middle" fill="#7f1d1d" font-size="18" font-family="Arial, sans-serif">проверить ETag</text>
|
||||
<path d="M513 818v52" stroke="#334155" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="110" y="874" width="500" height="114" rx="16" fill="#e0f2fe" stroke="#0284c7" stroke-width="3"/>
|
||||
<text x="360" y="916" text-anchor="middle" fill="#0c4a6e" font-size="24" font-family="Arial, sans-serif" font-weight="700">If-None-Match → origin</text>
|
||||
<text x="360" y="951" text-anchor="middle" fill="#0c4a6e" font-size="19" font-family="Arial, sans-serif">304 подтверждает тело; 200 даёт новый вариант</text>
|
||||
|
||||
<rect x="110" y="1032" width="500" height="54" rx="14" fill="#fff7ed" stroke="#ea580c" stroke-width="3"/>
|
||||
<text x="360" y="1067" text-anchor="middle" fill="#7c2d12" font-size="19" font-family="Arial, sans-serif">Неполный ключ может вернуть свежий, но чужой язык</text>
|
||||
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
|
||||
<path d="M0 0L10 5L0 10z" fill="#334155"/>
|
||||
</marker>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.4 KiB |
@@ -1,47 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1160" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Путь HTTP-ответа для HTML, asset и API</title>
|
||||
<desc id="desc">Вертикальная схема показывает, как браузер проверяет HTML с no-cache и ETag, получает новый URL версионированного JavaScript и отдельно применяет короткую свежесть к API.</desc>
|
||||
<rect width="720" height="1160" fill="#f8fafc"/>
|
||||
<rect x="44" y="34" width="632" height="110" rx="18" fill="#172554"/>
|
||||
<text x="360" y="78" text-anchor="middle" fill="#fff" font-size="28" font-family="Arial, sans-serif" font-weight="700">Один домен — три контракта ответа</text>
|
||||
<text x="360" y="112" text-anchor="middle" fill="#cbd5e1" font-size="20" font-family="Arial, sans-serif">Сначала тип ресурса, потом TTL</text>
|
||||
|
||||
<rect x="140" y="188" width="440" height="110" rx="16" fill="#e0f2fe" stroke="#0284c7" stroke-width="3"/>
|
||||
<text x="360" y="232" text-anchor="middle" fill="#0c4a6e" font-size="27" font-family="Arial, sans-serif" font-weight="700">HTML /catalog</text>
|
||||
<text x="360" y="267" text-anchor="middle" fill="#0c4a6e" font-size="21" font-family="Arial, sans-serif">no-cache + ETag</text>
|
||||
<path d="M360 298v52" stroke="#334155" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="90" y="354" width="540" height="136" rx="16" fill="#fef3c7" stroke="#d97706" stroke-width="3"/>
|
||||
<text x="360" y="397" text-anchor="middle" fill="#78350f" font-size="26" font-family="Arial, sans-serif" font-weight="700">Кэш проверяет сохранённый HTML</text>
|
||||
<text x="360" y="431" text-anchor="middle" fill="#78350f" font-size="20" font-family="Arial, sans-serif">свежий — использует; устаревший —</text>
|
||||
<text x="360" y="460" text-anchor="middle" fill="#78350f" font-size="20" font-family="Arial, sans-serif">отправляет If-None-Match к origin</text>
|
||||
<path d="M360 490v52" stroke="#334155" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="90" y="546" width="250" height="108" rx="16" fill="#dcfce7" stroke="#16a34a" stroke-width="3"/>
|
||||
<text x="215" y="588" text-anchor="middle" fill="#14532d" font-size="27" font-family="Arial, sans-serif" font-weight="700">304</text>
|
||||
<text x="215" y="621" text-anchor="middle" fill="#14532d" font-size="19" font-family="Arial, sans-serif">тело остаётся</text>
|
||||
<rect x="380" y="546" width="250" height="108" rx="16" fill="#fee2e2" stroke="#dc2626" stroke-width="3"/>
|
||||
<text x="505" y="588" text-anchor="middle" fill="#7f1d1d" font-size="27" font-family="Arial, sans-serif" font-weight="700">200</text>
|
||||
<text x="505" y="621" text-anchor="middle" fill="#7f1d1d" font-size="19" font-family="Arial, sans-serif">новый HTML</text>
|
||||
<path d="M505 654v50" stroke="#334155" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="110" y="708" width="500" height="120" rx="16" fill="#ede9fe" stroke="#7c3aed" stroke-width="3"/>
|
||||
<text x="360" y="752" text-anchor="middle" fill="#4c1d95" font-size="25" font-family="Arial, sans-serif" font-weight="700">HTML ссылается на новый asset URL</text>
|
||||
<text x="360" y="789" text-anchor="middle" fill="#4c1d95" font-size="20" font-family="Arial, sans-serif">/assets/app.4f91.js вместо app.1120.js</text>
|
||||
<path d="M360 828v52" stroke="#334155" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="110" y="884" width="500" height="102" rx="16" fill="#e0f2fe" stroke="#0284c7" stroke-width="3"/>
|
||||
<text x="360" y="925" text-anchor="middle" fill="#0c4a6e" font-size="25" font-family="Arial, sans-serif" font-weight="700">Asset: public, max-age=31536000</text>
|
||||
<text x="360" y="957" text-anchor="middle" fill="#0c4a6e" font-size="19" font-family="Arial, sans-serif">длинный TTL безопасен из-за нового ключа</text>
|
||||
|
||||
<rect x="110" y="1028" width="500" height="92" rx="16" fill="#ecfccb" stroke="#65a30d" stroke-width="3"/>
|
||||
<text x="360" y="1058" text-anchor="middle" fill="#365314" font-size="24" font-family="Arial, sans-serif" font-weight="700">API: короткая свежесть</text>
|
||||
<text x="360" y="1084" text-anchor="middle" fill="#365314" font-size="22" font-family="Arial, sans-serif" font-weight="700">по допустимой давности</text>
|
||||
<text x="360" y="1110" text-anchor="middle" fill="#365314" font-size="18" font-family="Arial, sans-serif">не смешивать с персональным ответом</text>
|
||||
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
|
||||
<path d="M0 0L10 5L0 10z" fill="#334155"/>
|
||||
</marker>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.7 KiB |
@@ -1,52 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1160" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Проверка cache key для русского и английского варианта</title>
|
||||
<desc id="desc">Вертикальная схема показывает два запроса к origin и CDN с разным Accept-Language, отдельные варианты по Vary и проверку ETag только внутри одного языкового варианта.</desc>
|
||||
<rect width="720" height="1160" fill="#f8fafc"/>
|
||||
<rect x="42" y="34" width="636" height="108" rx="18" fill="#312e81"/>
|
||||
<text x="360" y="78" text-anchor="middle" fill="#fff" font-size="28" font-family="Arial, sans-serif" font-weight="700">Один URL, два проверяемых варианта</text>
|
||||
<text x="360" y="112" text-anchor="middle" fill="#ddd6fe" font-size="20" font-family="Arial, sans-serif">Меняем только Accept-Language</text>
|
||||
|
||||
<rect x="66" y="192" width="258" height="116" rx="16" fill="#e0f2fe" stroke="#0284c7" stroke-width="3"/>
|
||||
<text x="195" y="235" text-anchor="middle" fill="#0c4a6e" font-size="24" font-family="Arial, sans-serif" font-weight="700">GET /catalog</text>
|
||||
<text x="195" y="270" text-anchor="middle" fill="#0c4a6e" font-size="20" font-family="Arial, sans-serif">Language: ru</text>
|
||||
<rect x="396" y="192" width="258" height="116" rx="16" fill="#fce7f3" stroke="#db2777" stroke-width="3"/>
|
||||
<text x="525" y="235" text-anchor="middle" fill="#831843" font-size="24" font-family="Arial, sans-serif" font-weight="700">GET /catalog</text>
|
||||
<text x="525" y="270" text-anchor="middle" fill="#831843" font-size="20" font-family="Arial, sans-serif">Language: en</text>
|
||||
<path d="M195 308v46" stroke="#334155" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<path d="M525 308v46" stroke="#334155" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="82" y="358" width="556" height="122" rx="16" fill="#fef3c7" stroke="#d97706" stroke-width="3"/>
|
||||
<text x="360" y="402" text-anchor="middle" fill="#78350f" font-size="24" font-family="Arial, sans-serif" font-weight="700">Origin возвращает два представления</text>
|
||||
<text x="360" y="437" text-anchor="middle" fill="#78350f" font-size="20" font-family="Arial, sans-serif">Vary: Accept-Language; ETag различается</text>
|
||||
<path d="M360 480v48" stroke="#334155" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="66" y="532" width="258" height="130" rx="16" fill="#dbeafe" stroke="#2563eb" stroke-width="3"/>
|
||||
<text x="195" y="575" text-anchor="middle" fill="#1e3a8a" font-size="23" font-family="Arial, sans-serif" font-weight="700">CDN key: /catalog + ru</text>
|
||||
<text x="195" y="612" text-anchor="middle" fill="#1e3a8a" font-size="18" font-family="Arial, sans-serif">русское тело</text>
|
||||
<rect x="396" y="532" width="258" height="130" rx="16" fill="#fce7f3" stroke="#db2777" stroke-width="3"/>
|
||||
<text x="525" y="575" text-anchor="middle" fill="#831843" font-size="23" font-family="Arial, sans-serif" font-weight="700">CDN key: /catalog + en</text>
|
||||
<text x="525" y="612" text-anchor="middle" fill="#831843" font-size="18" font-family="Arial, sans-serif">английское тело</text>
|
||||
<path d="M195 662v50" stroke="#334155" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
<path d="M525 662v50" stroke="#334155" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="82" y="716" width="556" height="118" rx="16" fill="#ecfccb" stroke="#65a30d" stroke-width="3"/>
|
||||
<text x="360" y="760" text-anchor="middle" fill="#365314" font-size="24" font-family="Arial, sans-serif" font-weight="700">После срока: проверить тот же вариант</text>
|
||||
<text x="360" y="796" text-anchor="middle" fill="#365314" font-size="20" font-family="Arial, sans-serif">If-None-Match для ru не проверяет en</text>
|
||||
<path d="M360 834v48" stroke="#334155" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="80" y="886" width="256" height="106" rx="16" fill="#dcfce7" stroke="#16a34a" stroke-width="3"/>
|
||||
<text x="208" y="930" text-anchor="middle" fill="#14532d" font-size="24" font-family="Arial, sans-serif" font-weight="700">304</text>
|
||||
<text x="208" y="963" text-anchor="middle" fill="#14532d" font-size="18" font-family="Arial, sans-serif">вариант не менялся</text>
|
||||
<rect x="384" y="886" width="256" height="106" rx="16" fill="#fee2e2" stroke="#dc2626" stroke-width="3"/>
|
||||
<text x="512" y="930" text-anchor="middle" fill="#7f1d1d" font-size="24" font-family="Arial, sans-serif" font-weight="700">200</text>
|
||||
<text x="512" y="963" text-anchor="middle" fill="#7f1d1d" font-size="18" font-family="Arial, sans-serif">новый ETag и тело</text>
|
||||
|
||||
<rect x="80" y="1040" width="560" height="56" rx="14" fill="#fff7ed" stroke="#ea580c" stroke-width="3"/>
|
||||
<text x="360" y="1076" text-anchor="middle" fill="#7c2d12" font-size="19" font-family="Arial, sans-serif">Сначала origin, потом edge: не смешивать две границы</text>
|
||||
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
|
||||
<path d="M0 0L10 5L0 10z" fill="#334155"/>
|
||||
</marker>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.2 KiB |
@@ -1,66 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1460" role="img" aria-labelledby="title description">
|
||||
<title id="title">Диагностика legacy jQuery-плагина в production-сборке Webpack</title>
|
||||
<desc id="description">Вертикальная схема показывает ошибочный статический импорт, мост с правильным порядком и проверку того, что глобальный и импортированный jQuery являются одним объектом.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" y1="0" x2="1" y2="1">
|
||||
<stop offset="0" stop-color="#111b2e"/>
|
||||
<stop offset="1" stop-color="#182d43"/>
|
||||
</linearGradient>
|
||||
<filter id="shadow" x="-20%" y="-12%" width="140%" height="124%">
|
||||
<feDropShadow dx="0" dy="8" stdDeviation="12" flood-color="#060b14" flood-opacity="0.36"/>
|
||||
</filter>
|
||||
<marker id="arrowBlue" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto">
|
||||
<path d="M0,0 L0,6 L9,3 z" fill="#62d7ff"/>
|
||||
</marker>
|
||||
<marker id="arrowRed" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto">
|
||||
<path d="M0,0 L0,6 L9,3 z" fill="#ff8e8e"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="720" height="1460" fill="url(#background)" rx="28"/>
|
||||
<text x="52" y="68" fill="#f4f8ff" font-family="system-ui, sans-serif" font-size="34" font-weight="700">jQuery + Webpack:</text>
|
||||
<text x="52" y="108" fill="#f4f8ff" font-family="system-ui, sans-serif" font-size="34" font-weight="700">порядок и один экземпляр</text>
|
||||
<text x="52" y="145" fill="#b7c9df" font-family="system-ui, sans-serif" font-size="21">Начинаем с момента, когда legacy-плагин читает window.jQuery.</text>
|
||||
|
||||
<rect x="52" y="184" width="616" height="506" rx="22" fill="#202d42" stroke="#80565e" stroke-width="2" filter="url(#shadow)"/>
|
||||
<text x="86" y="235" fill="#ffb6b6" font-family="system-ui, sans-serif" font-size="29" font-weight="700">Сбой: статический импорт</text>
|
||||
<text x="86" y="270" fill="#d5e0ef" font-family="system-ui, sans-serif" font-size="21">bootstrap.bad.js</text>
|
||||
|
||||
<rect x="84" y="304" width="552" height="90" rx="14" fill="#293b55"/>
|
||||
<text x="110" y="340" fill="#d9f0ff" font-family="ui-monospace, SFMono-Regular, monospace" font-size="21">import './legacy-mask'</text>
|
||||
<text x="110" y="370" fill="#b6c7dd" font-family="system-ui, sans-serif" font-size="19">зависимость выполняется первой</text>
|
||||
<path d="M360 394 L360 432" stroke="#ff8e8e" stroke-width="4" marker-end="url(#arrowRed)"/>
|
||||
|
||||
<rect x="84" y="451" width="552" height="104" rx="14" fill="#4b3039"/>
|
||||
<text x="110" y="489" fill="#ffe5e5" font-family="ui-monospace, SFMono-Regular, monospace" font-size="20">legacy-mask читает</text>
|
||||
<text x="110" y="519" fill="#ffe5e5" font-family="ui-monospace, SFMono-Regular, monospace" font-size="20">window.jQuery = отсутствует</text>
|
||||
<path d="M360 555 L360 593" stroke="#ff8e8e" stroke-width="4" marker-end="url(#arrowRed)"/>
|
||||
|
||||
<rect x="84" y="596" width="552" height="78" rx="14" fill="#293b55"/>
|
||||
<text x="110" y="630" fill="#d9f0ff" font-family="ui-monospace, SFMono-Regular, monospace" font-size="20">window.jQuery = $</text>
|
||||
<text x="110" y="656" fill="#b6c7dd" font-family="system-ui, sans-serif" font-size="18">присваивание произошло поздно</text>
|
||||
|
||||
<rect x="52" y="742" width="616" height="506" rx="22" fill="#203a44" stroke="#4c9c9c" stroke-width="2" filter="url(#shadow)"/>
|
||||
<text x="86" y="793" fill="#b8f1e8" font-family="system-ui, sans-serif" font-size="29" font-weight="700">Мост: явный порядок</text>
|
||||
<text x="86" y="828" fill="#d5e0ef" font-family="system-ui, sans-serif" font-size="21">legacy-jquery-bridge.js</text>
|
||||
|
||||
<rect x="84" y="862" width="552" height="78" rx="14" fill="#294a5a"/>
|
||||
<text x="110" y="896" fill="#d9f6ff" font-family="ui-monospace, SFMono-Regular, monospace" font-size="20">import $ from 'jquery'</text>
|
||||
<text x="110" y="922" fill="#b6d9e4" font-family="system-ui, sans-serif" font-size="18">один объект в модуле</text>
|
||||
<path d="M360 940 L360 978" stroke="#62d7ff" stroke-width="4" marker-end="url(#arrowBlue)"/>
|
||||
|
||||
<rect x="84" y="997" width="552" height="78" rx="14" fill="#294a5a"/>
|
||||
<text x="110" y="1031" fill="#d9f6ff" font-family="ui-monospace, SFMono-Regular, monospace" font-size="20">window.jQuery = $</text>
|
||||
<text x="110" y="1057" fill="#b6d9e4" font-family="system-ui, sans-serif" font-size="18">legacy-контракт выполнен</text>
|
||||
<path d="M360 1075 L360 1113" stroke="#62d7ff" stroke-width="4" marker-end="url(#arrowBlue)"/>
|
||||
|
||||
<rect x="84" y="1132" width="552" height="78" rx="14" fill="#294a5a"/>
|
||||
<text x="110" y="1166" fill="#d9f6ff" font-family="ui-monospace, SFMono-Regular, monospace" font-size="20">require('./legacy-mask')</text>
|
||||
<text x="110" y="1192" fill="#b6d9e4" font-family="system-ui, sans-serif" font-size="18">плагин расширяет тот же $.fn</text>
|
||||
|
||||
<rect x="52" y="1300" width="616" height="112" rx="22" fill="#15243a" stroke="#365c7f" stroke-width="2"/>
|
||||
<text x="84" y="1340" fill="#f4f8ff" font-family="system-ui, sans-serif" font-size="24" font-weight="700">Проверка второго экземпляра</text>
|
||||
<text x="84" y="1376" fill="#c9dced" font-family="ui-monospace, SFMono-Regular, monospace" font-size="21">window.jQuery === imported$ ?</text>
|
||||
<text x="84" y="1403" fill="#b7c9df" font-family="system-ui, sans-serif" font-size="17">false: ищем другой resolved-путь или entry.</text>
|
||||
<circle cx="619" cy="1358" r="27" fill="#183e48" stroke="#62d7ff" stroke-width="3"/>
|
||||
<path d="M606 1358 L616 1368 L633 1348" fill="none" stroke="#74efd3" stroke-width="5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.8 KiB |
@@ -1,46 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1240" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Диагностика различающихся чистых сборок</title>
|
||||
<desc id="desc">Вертикальная схема начинает с двух чистых запусков, сравнивает их входы, затем разветвляется к регистрации различия либо к сравнению output manifest и первому отличающемуся файлу.</desc>
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
|
||||
<path d="M0 0L10 5L0 10z" fill="#60758d"/>
|
||||
</marker>
|
||||
<marker id="bad-arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
|
||||
<path d="M0 0L10 5L0 10z" fill="#c54646"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="720" height="1240" fill="#f8fafc"/>
|
||||
<rect x="42" y="34" width="636" height="112" rx="18" fill="#17324d"/>
|
||||
<text x="360" y="80" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="28" font-weight="700">Две чистые сборки: входы, затем bundle</text>
|
||||
<text x="360" y="116" text-anchor="middle" fill="#d8e7f3" font-family="Arial, sans-serif" font-size="21">Сначала доказываем условия сравнения.</text>
|
||||
|
||||
<rect x="74" y="190" width="572" height="122" rx="18" fill="#e9f3ff" stroke="#3182ce" stroke-width="3"/>
|
||||
<text x="360" y="234" text-anchor="middle" fill="#17324d" font-family="Arial, sans-serif" font-size="27" font-weight="700">Прогон A</text>
|
||||
<text x="360" y="272" text-anchor="middle" fill="#425d73" font-family="Arial, sans-serif" font-size="21">npm ci → build → first manifest</text>
|
||||
<path d="M360 312v36" stroke="#60758d" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="74" y="356" width="572" height="122" rx="18" fill="#e9f3ff" stroke="#3182ce" stroke-width="3"/>
|
||||
<text x="360" y="400" text-anchor="middle" fill="#17324d" font-family="Arial, sans-serif" font-size="27" font-weight="700">Прогон B</text>
|
||||
<text x="360" y="438" text-anchor="middle" fill="#425d73" font-family="Arial, sans-serif" font-size="21">npm ci → build → second manifest</text>
|
||||
<path d="M360 478v36" stroke="#60758d" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="74" y="522" width="572" height="148" rx="18" fill="#f3ecff" stroke="#805ad5" stroke-width="3"/>
|
||||
<text x="360" y="566" text-anchor="middle" fill="#2d2360" font-family="Arial, sans-serif" font-size="27" font-weight="700">Сравнить входы</text>
|
||||
<text x="360" y="604" text-anchor="middle" fill="#4d3b78" font-family="Arial, sans-serif" font-size="21">commit, lockfile hash, Node, npm и команда</text>
|
||||
<text x="360" y="634" text-anchor="middle" fill="#4d3b78" font-family="Arial, sans-serif" font-size="20">любая разница останавливает сравнение output</text>
|
||||
<path d="M360 670v36" stroke="#60758d" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="74" y="714" width="572" height="200" rx="18" fill="#ffffff" stroke="#805ad5" stroke-width="3"/>
|
||||
<text x="360" y="758" text-anchor="middle" fill="#2d2360" font-family="Arial, sans-serif" font-size="27" font-weight="700">Входы совпали?</text>
|
||||
<rect x="102" y="786" width="516" height="48" rx="12" fill="#fff0f0" stroke="#c54646" stroke-width="2"/>
|
||||
<text x="360" y="818" text-anchor="middle" fill="#a12f2f" font-family="Arial, sans-serif" font-size="20" font-weight="700">Нет → записать различие и повторить условия</text>
|
||||
<rect x="102" y="850" width="516" height="48" rx="12" fill="#e8fff3" stroke="#279665" stroke-width="2"/>
|
||||
<text x="360" y="882" text-anchor="middle" fill="#145a3c" font-family="Arial, sans-serif" font-size="20" font-weight="700">Да → сравнить полный output manifest</text>
|
||||
<path d="M360 914v36" stroke="#c54646" stroke-width="5" stroke-dasharray="12 10" marker-end="url(#bad-arrow)"/>
|
||||
|
||||
<rect x="74" y="958" width="572" height="118" rx="18" fill="#fff7ed" stroke="#dd6b20" stroke-width="3"/>
|
||||
<text x="360" y="994" text-anchor="middle" fill="#7c2d12" font-family="Arial, sans-serif" font-size="21" font-weight="700">Если manifest различается:</text>
|
||||
<text x="360" y="1030" text-anchor="middle" fill="#7c2d12" font-family="Arial, sans-serif" font-size="26" font-weight="700">первый differing file</text>
|
||||
<text x="360" y="1060" text-anchor="middle" fill="#9a4c16" font-family="Arial, sans-serif" font-size="20">его bytes ведут к конкретному входу</text>
|
||||
<text x="360" y="1142" text-anchor="middle" fill="#425d73" font-family="Arial, sans-serif" font-size="21">Не начинать с cache: сначала наблюдение.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.8 KiB |
@@ -1,45 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1160" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Граница lockfile и остальных входов сборки</title>
|
||||
<desc id="desc">Вертикальная схема показывает, что commit и lockfile фиксируются в репозитории, а runtime и config нужно назвать отдельно до вычисления manifest и диагностики расхождения.</desc>
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
|
||||
<path d="M0 0L10 5L0 10z" fill="#60758d"/>
|
||||
</marker>
|
||||
<marker id="bad-arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
|
||||
<path d="M0 0L10 5L0 10z" fill="#c54646"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="720" height="1160" fill="#f8fafc"/>
|
||||
<rect x="42" y="34" width="636" height="112" rx="18" fill="#17324d"/>
|
||||
<text x="360" y="80" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="28" font-weight="700">Lockfile не закрывает все входы</text>
|
||||
<text x="360" y="116" text-anchor="middle" fill="#d8e7f3" font-family="Arial, sans-serif" font-size="21">Фиксируем репозиторий и называем внешнюю среду.</text>
|
||||
|
||||
<rect x="74" y="190" width="572" height="126" rx="18" fill="#e8fff3" stroke="#279665" stroke-width="3"/>
|
||||
<text x="360" y="234" text-anchor="middle" fill="#145a3c" font-family="Arial, sans-serif" font-size="27" font-weight="700">Зафиксировано в репозитории</text>
|
||||
<text x="360" y="272" text-anchor="middle" fill="#24684b" font-family="Arial, sans-serif" font-size="21">commit и package-lock</text>
|
||||
<text x="360" y="300" text-anchor="middle" fill="#24684b" font-family="Arial, sans-serif" font-size="20">исходники и разрешённое дерево пакетов</text>
|
||||
<path d="M360 316v38" stroke="#60758d" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="74" y="362" width="572" height="140" rx="18" fill="#fff7ed" stroke="#dd6b20" stroke-width="3"/>
|
||||
<text x="360" y="406" text-anchor="middle" fill="#7c2d12" font-family="Arial, sans-serif" font-size="27" font-weight="700">Нужно назвать отдельно</text>
|
||||
<text x="360" y="444" text-anchor="middle" fill="#9a4c16" font-family="Arial, sans-serif" font-size="21">runtime, config, env и время</text>
|
||||
<text x="360" y="474" text-anchor="middle" fill="#9a4c16" font-family="Arial, sans-serif" font-size="20">иначе одинаковый lockfile ничего не доказывает</text>
|
||||
<path d="M360 502v38" stroke="#60758d" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="74" y="548" width="572" height="126" rx="18" fill="#f3ecff" stroke="#805ad5" stroke-width="3"/>
|
||||
<text x="360" y="592" text-anchor="middle" fill="#2d2360" font-family="Arial, sans-serif" font-size="27" font-weight="700">build(inputs)</text>
|
||||
<text x="360" y="630" text-anchor="middle" fill="#4d3b78" font-family="Arial, sans-serif" font-size="21">webpack и plugins читают только названные входы</text>
|
||||
<text x="360" y="658" text-anchor="middle" fill="#4d3b78" font-family="Arial, sans-serif" font-size="20">неназванный вход остаётся риском</text>
|
||||
<path d="M360 674v38" stroke="#60758d" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="74" y="720" width="572" height="118" rx="18" fill="#e9f3ff" stroke="#3182ce" stroke-width="3"/>
|
||||
<text x="360" y="764" text-anchor="middle" fill="#17324d" font-family="Arial, sans-serif" font-size="27" font-weight="700">manifest SHA-256</text>
|
||||
<text x="360" y="802" text-anchor="middle" fill="#425d73" font-family="Arial, sans-serif" font-size="21">сортируем путь и digest каждого файла</text>
|
||||
<path d="M360 838v38" stroke="#c54646" stroke-width="5" stroke-dasharray="12 10" marker-end="url(#bad-arrow)"/>
|
||||
|
||||
<rect x="74" y="884" width="572" height="132" rx="18" fill="#fff0f0" stroke="#c54646" stroke-width="3"/>
|
||||
<text x="360" y="930" text-anchor="middle" fill="#a12f2f" font-family="Arial, sans-serif" font-size="27" font-weight="700">Manifest различается?</text>
|
||||
<text x="360" y="968" text-anchor="middle" fill="#a12f2f" font-family="Arial, sans-serif" font-size="21">сначала открыть первый differing file</text>
|
||||
<text x="360" y="996" text-anchor="middle" fill="#a12f2f" font-family="Arial, sans-serif" font-size="20">не начинать расследование с очистки cache</text>
|
||||
<text x="360" y="1102" text-anchor="middle" fill="#425d73" font-family="Arial, sans-serif" font-size="21">Хеш фиксирует факт, причина живёт во входах.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.8 KiB |
@@ -1,45 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1280" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Контракт входов воспроизводимой сборки</title>
|
||||
<desc id="desc">Вертикальная схема ведёт от зафиксированных исходников, зависимостей и среды к чистой установке, сборке и сортированному manifest с хешами файлов.</desc>
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
|
||||
<path d="M0 0L10 5L0 10z" fill="#60758d"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="720" height="1280" fill="#f8fafc"/>
|
||||
<rect x="42" y="34" width="636" height="112" rx="18" fill="#17324d"/>
|
||||
<text x="360" y="80" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="28" font-weight="700">Сначала входы, затем output</text>
|
||||
<text x="360" y="116" text-anchor="middle" fill="#d8e7f3" font-family="Arial, sans-serif" font-size="21">Одинаковая команда не отменяет контракт среды.</text>
|
||||
|
||||
<rect x="74" y="190" width="572" height="118" rx="18" fill="#e9f3ff" stroke="#3182ce" stroke-width="3"/>
|
||||
<text x="360" y="234" text-anchor="middle" fill="#17324d" font-family="Arial, sans-serif" font-size="27" font-weight="700">1. Исходный код</text>
|
||||
<text x="360" y="272" text-anchor="middle" fill="#425d73" font-family="Arial, sans-serif" font-size="21">git commit задаёт точное дерево файлов</text>
|
||||
<path d="M360 308v36" stroke="#60758d" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="74" y="352" width="572" height="118" rx="18" fill="#edf7ff" stroke="#3182ce" stroke-width="3"/>
|
||||
<text x="360" y="396" text-anchor="middle" fill="#17324d" font-family="Arial, sans-serif" font-size="27" font-weight="700">2. Зависимости</text>
|
||||
<text x="360" y="434" text-anchor="middle" fill="#425d73" font-family="Arial, sans-serif" font-size="21">package-lock плюс чистый npm ci</text>
|
||||
<path d="M360 470v36" stroke="#60758d" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="74" y="514" width="572" height="140" rx="18" fill="#fff7ed" stroke="#dd6b20" stroke-width="3"/>
|
||||
<text x="360" y="558" text-anchor="middle" fill="#17324d" font-family="Arial, sans-serif" font-size="27" font-weight="700">3. Среда и команда</text>
|
||||
<text x="360" y="596" text-anchor="middle" fill="#425d73" font-family="Arial, sans-serif" font-size="21">Node, npm, mode и build-флаги записаны явно</text>
|
||||
<text x="360" y="626" text-anchor="middle" fill="#425d73" font-family="Arial, sans-serif" font-size="20">время и случайность — отдельные входы</text>
|
||||
<path d="M360 654v36" stroke="#60758d" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="74" y="698" width="572" height="126" rx="18" fill="#f3ecff" stroke="#805ad5" stroke-width="3"/>
|
||||
<text x="360" y="742" text-anchor="middle" fill="#2d2360" font-family="Arial, sans-serif" font-size="27" font-weight="700">Чистая установка</text>
|
||||
<text x="360" y="780" text-anchor="middle" fill="#4d3b78" font-family="Arial, sans-serif" font-size="21">не переписывает manifest и lockfile</text>
|
||||
<text x="360" y="808" text-anchor="middle" fill="#4d3b78" font-family="Arial, sans-serif" font-size="20">перед запуском build</text>
|
||||
<path d="M360 824v36" stroke="#60758d" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="74" y="868" width="572" height="118" rx="18" fill="#f3ecff" stroke="#805ad5" stroke-width="3"/>
|
||||
<text x="360" y="912" text-anchor="middle" fill="#2d2360" font-family="Arial, sans-serif" font-size="27" font-weight="700">Сборка</text>
|
||||
<text x="360" y="950" text-anchor="middle" fill="#4d3b78" font-family="Arial, sans-serif" font-size="21">производит deployable files</text>
|
||||
<path d="M360 986v36" stroke="#60758d" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="58" y="1030" width="604" height="128" rx="18" fill="#e8fff3" stroke="#279665" stroke-width="3"/>
|
||||
<text x="360" y="1076" text-anchor="middle" fill="#145a3c" font-family="Arial, sans-serif" font-size="25" font-weight="700">Сортированный manifest SHA-256</text>
|
||||
<text x="360" y="1114" text-anchor="middle" fill="#24684b" font-family="Arial, sans-serif" font-size="21">полный путь и хеш каждого deployable file</text>
|
||||
<text x="360" y="1220" text-anchor="middle" fill="#425d73" font-family="Arial, sans-serif" font-size="21">Сравниваем весь список, а не один bundle.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.7 KiB |
@@ -1,49 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1280" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Локальная fixture проверяет контракт до сетевого теста</title>
|
||||
<desc id="desc">Вертикальная схема показывает три локальных объекта ответа: корректные 200 и 400 проходят контрактную проверку, а 200 без nextCursor отклоняется; отдельный сетевой шаг не выполнен fixture.</desc>
|
||||
<rect width="720" height="1280" fill="#0f172a"/>
|
||||
<rect x="42" y="34" width="636" height="112" rx="18" fill="#1e3a8a"/>
|
||||
<text x="360" y="80" text-anchor="middle" fill="#ffffff" font-size="28" font-family="Arial, sans-serif" font-weight="700">Fixture ловит нарушение до сети</text>
|
||||
<text x="360" y="116" text-anchor="middle" fill="#bfdbfe" font-size="21" font-family="Arial, sans-serif">локальные объекты не заменяют сервер</text>
|
||||
|
||||
<rect x="85" y="190" width="550" height="108" rx="18" fill="#14532d" stroke="#86efac" stroke-width="3"/>
|
||||
<text x="360" y="232" text-anchor="middle" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">Fixture A · 200 / JSON</text>
|
||||
<text x="360" y="268" text-anchor="middle" fill="#dcfce7" font-size="22" font-family="Arial, sans-serif">nextCursor: null</text>
|
||||
<path d="M360 298v34" stroke="#bfdbfe" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="85" y="338" width="550" height="108" rx="18" fill="#7f1d1d" stroke="#fca5a5" stroke-width="3"/>
|
||||
<text x="360" y="380" text-anchor="middle" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">Fixture B · 400 / problem+json</text>
|
||||
<text x="360" y="416" text-anchor="middle" fill="#fee2e2" font-size="22" font-family="Arial, sans-serif">errors[0].code: invalid_cursor</text>
|
||||
<path d="M360 446v34" stroke="#bfdbfe" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="85" y="486" width="550" height="108" rx="18" fill="#7f1d1d" stroke="#fca5a5" stroke-width="3"/>
|
||||
<text x="360" y="528" text-anchor="middle" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">Fixture C · 200 / JSON</text>
|
||||
<text x="360" y="564" text-anchor="middle" fill="#fee2e2" font-size="22" font-family="Arial, sans-serif">нет обязательного nextCursor</text>
|
||||
<path d="M360 594v44" stroke="#bfdbfe" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="75" y="644" width="570" height="184" rx="18" fill="#1d4ed8" stroke="#93c5fd" stroke-width="3"/>
|
||||
<text x="360" y="690" text-anchor="middle" fill="#ffffff" font-size="28" font-family="Arial, sans-serif" font-weight="700">Контрактная проверка</text>
|
||||
<text x="360" y="734" text-anchor="middle" fill="#dbeafe" font-size="23" font-family="Arial, sans-serif">1. HTTP status</text>
|
||||
<text x="360" y="768" text-anchor="middle" fill="#dbeafe" font-size="23" font-family="Arial, sans-serif">2. Content-Type</text>
|
||||
<text x="360" y="802" text-anchor="middle" fill="#dbeafe" font-size="23" font-family="Arial, sans-serif">3. schema body</text>
|
||||
<path d="M360 828v42" stroke="#bfdbfe" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="85" y="876" width="550" height="96" rx="18" fill="#14532d" stroke="#86efac" stroke-width="3"/>
|
||||
<text x="360" y="918" text-anchor="middle" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">PASS · A и B</text>
|
||||
<text x="360" y="950" text-anchor="middle" fill="#dcfce7" font-size="21" font-family="Arial, sans-serif">валидная страница и problem detail</text>
|
||||
<path d="M360 972v34" stroke="#bfdbfe" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="85" y="1012" width="550" height="96" rx="18" fill="#991b1b" stroke="#fca5a5" stroke-width="3"/>
|
||||
<text x="360" y="1054" text-anchor="middle" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">REJECT · C</text>
|
||||
<text x="360" y="1086" text-anchor="middle" fill="#fee2e2" font-size="21" font-family="Arial, sans-serif">200 не отменяет обязательную schema</text>
|
||||
|
||||
<rect x="70" y="1152" width="580" height="72" rx="16" fill="#334155" stroke="#facc15" stroke-width="3"/>
|
||||
<text x="360" y="1184" text-anchor="middle" fill="#f8fafc" font-size="23" font-family="Arial, sans-serif" font-weight="700">Следующий шаг: разрешённый тестовый сервер</text>
|
||||
<text x="360" y="1214" text-anchor="middle" fill="#cbd5e1" font-size="19" font-family="Arial, sans-serif">fixture его не выполняет</text>
|
||||
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
|
||||
<path d="M0 0L10 5L0 10z" fill="#bfdbfe"/>
|
||||
</marker>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.8 KiB |
@@ -1,44 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1160" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Контракт одной REST API-операции</title>
|
||||
<desc id="desc">Вертикальная схема показывает запрос списка заказов, явную развилку ответов 200 и 400 и проверку клиентом статуса, Content-Type и схемы тела.</desc>
|
||||
<rect width="720" height="1160" fill="#0f172a"/>
|
||||
<rect x="42" y="34" width="636" height="112" rx="18" fill="#172554"/>
|
||||
<text x="360" y="80" text-anchor="middle" fill="#ffffff" font-size="29" font-family="Arial, sans-serif" font-weight="700">Контракт одной операции</text>
|
||||
<text x="360" y="116" text-anchor="middle" fill="#cbd5e1" font-size="22" font-family="Arial, sans-serif">URL — только начало договора</text>
|
||||
|
||||
<rect x="85" y="190" width="550" height="132" rx="18" fill="#0f766e" stroke="#5eead4" stroke-width="3"/>
|
||||
<text x="360" y="234" text-anchor="middle" fill="#ffffff" font-size="28" font-family="Arial, sans-serif" font-weight="700">GET /api/v1/orders</text>
|
||||
<text x="360" y="270" text-anchor="middle" fill="#ccfbf1" font-size="23" font-family="Arial, sans-serif">limit=20; cursor — строка или отсутствует</text>
|
||||
<path d="M360 322v48" stroke="#cbd5e1" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="175" y="376" width="370" height="58" rx="29" fill="#fef3c7"/>
|
||||
<text x="360" y="414" text-anchor="middle" fill="#1e293b" font-size="22" font-family="Arial, sans-serif" font-weight="700">проверка входа</text>
|
||||
<path d="M360 434v40" stroke="#cbd5e1" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="85" y="480" width="550" height="148" rx="18" fill="#14532d" stroke="#86efac" stroke-width="3"/>
|
||||
<text x="360" y="526" text-anchor="middle" fill="#ffffff" font-size="29" font-family="Arial, sans-serif" font-weight="700">200 OK · application/json</text>
|
||||
<text x="360" y="564" text-anchor="middle" fill="#dcfce7" font-size="23" font-family="Arial, sans-serif">items: Order[]</text>
|
||||
<text x="360" y="598" text-anchor="middle" fill="#dcfce7" font-size="23" font-family="Arial, sans-serif">page.nextCursor: string | null</text>
|
||||
<path d="M360 628v44" stroke="#cbd5e1" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="85" y="678" width="550" height="148" rx="18" fill="#7f1d1d" stroke="#fca5a5" stroke-width="3"/>
|
||||
<text x="360" y="724" text-anchor="middle" fill="#ffffff" font-size="29" font-family="Arial, sans-serif" font-weight="700">400 Bad Request</text>
|
||||
<text x="360" y="762" text-anchor="middle" fill="#fee2e2" font-size="23" font-family="Arial, sans-serif">application/problem+json</text>
|
||||
<text x="360" y="796" text-anchor="middle" fill="#fee2e2" font-size="23" font-family="Arial, sans-serif">type, status, detail, errors[].code</text>
|
||||
<path d="M360 826v44" stroke="#cbd5e1" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="70" y="876" width="580" height="170" rx="18" fill="#1e293b" stroke="#64748b" stroke-width="3"/>
|
||||
<text x="360" y="924" text-anchor="middle" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">Клиент проверяет три вещи</text>
|
||||
<text x="360" y="962" text-anchor="middle" fill="#cbd5e1" font-size="23" font-family="Arial, sans-serif">1. HTTP status</text>
|
||||
<text x="360" y="994" text-anchor="middle" fill="#cbd5e1" font-size="23" font-family="Arial, sans-serif">2. Content-Type</text>
|
||||
<text x="360" y="1026" text-anchor="middle" fill="#cbd5e1" font-size="23" font-family="Arial, sans-serif">3. schema тела</text>
|
||||
|
||||
<rect x="70" y="1080" width="580" height="46" rx="14" fill="#334155"/>
|
||||
<text x="360" y="1111" text-anchor="middle" fill="#e2e8f0" font-size="21" font-family="Arial, sans-serif">JSON сам по себе не равен успеху</text>
|
||||
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
|
||||
<path d="M0 0L10 5L0 10z" fill="#cbd5e1"/>
|
||||
</marker>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.1 KiB |
@@ -1,46 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1180" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Как OpenAPI связывает операцию с ответом и схемой</title>
|
||||
<desc id="desc">Вертикальная схема показывает Operation Object, карту ответов 200 и 400, а затем различие между required полем nextCursor и nullable значением.</desc>
|
||||
<rect width="720" height="1180" fill="#172554"/>
|
||||
<rect x="42" y="34" width="636" height="112" rx="18" fill="#312e81"/>
|
||||
<text x="360" y="80" text-anchor="middle" fill="#ffffff" font-size="28" font-family="Arial, sans-serif" font-weight="700">Операция становится матрицей</text>
|
||||
<text x="360" y="116" text-anchor="middle" fill="#ddd6fe" font-size="21" font-family="Arial, sans-serif">вход → HTTP-код → media type → schema</text>
|
||||
|
||||
<rect x="85" y="190" width="550" height="140" rx="18" fill="#3730a3" stroke="#a5b4fc" stroke-width="3"/>
|
||||
<text x="360" y="236" text-anchor="middle" fill="#ffffff" font-size="28" font-family="Arial, sans-serif" font-weight="700">Operation Object</text>
|
||||
<text x="360" y="274" text-anchor="middle" fill="#e0e7ff" font-size="23" font-family="Arial, sans-serif">GET /orders</text>
|
||||
<text x="360" y="306" text-anchor="middle" fill="#e0e7ff" font-size="22" font-family="Arial, sans-serif">query: limit, cursor</text>
|
||||
<path d="M360 330v48" stroke="#c7d2fe" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="140" y="384" width="440" height="128" rx="18" fill="#0f766e" stroke="#5eead4" stroke-width="3"/>
|
||||
<text x="360" y="430" text-anchor="middle" fill="#ffffff" font-size="28" font-family="Arial, sans-serif" font-weight="700">Responses Object</text>
|
||||
<text x="360" y="468" text-anchor="middle" fill="#ccfbf1" font-size="23" font-family="Arial, sans-serif">"200" · "400" · "500"</text>
|
||||
<text x="360" y="496" text-anchor="middle" fill="#ccfbf1" font-size="20" font-family="Arial, sans-serif">код выбирает форму тела</text>
|
||||
<path d="M360 512v48" stroke="#c7d2fe" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="85" y="566" width="550" height="116" rx="18" fill="#14532d" stroke="#86efac" stroke-width="3"/>
|
||||
<text x="360" y="610" text-anchor="middle" fill="#ffffff" font-size="28" font-family="Arial, sans-serif" font-weight="700">200 + JSON → OrdersPage</text>
|
||||
<text x="360" y="648" text-anchor="middle" fill="#dcfce7" font-size="22" font-family="Arial, sans-serif">items и page</text>
|
||||
<path d="M360 682v36" stroke="#c7d2fe" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="85" y="724" width="550" height="116" rx="18" fill="#7f1d1d" stroke="#fca5a5" stroke-width="3"/>
|
||||
<text x="360" y="768" text-anchor="middle" fill="#ffffff" font-size="28" font-family="Arial, sans-serif" font-weight="700">400 + problem → Problem</text>
|
||||
<text x="360" y="806" text-anchor="middle" fill="#fee2e2" font-size="22" font-family="Arial, sans-serif">type, status, errors</text>
|
||||
<path d="M360 840v42" stroke="#c7d2fe" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="55" y="888" width="610" height="214" rx="18" fill="#1e293b" stroke="#64748b" stroke-width="3"/>
|
||||
<text x="360" y="934" text-anchor="middle" fill="#ffffff" font-size="27" font-family="Arial, sans-serif" font-weight="700">Schema Object: два разных вопроса</text>
|
||||
<rect x="86" y="966" width="250" height="92" rx="14" fill="#334155"/>
|
||||
<text x="211" y="1002" text-anchor="middle" fill="#f8fafc" font-size="23" font-family="Arial, sans-serif" font-weight="700">required</text>
|
||||
<text x="211" y="1033" text-anchor="middle" fill="#cbd5e1" font-size="20" font-family="Arial, sans-serif">ключ nextCursor есть</text>
|
||||
<rect x="384" y="966" width="250" height="92" rx="14" fill="#334155"/>
|
||||
<text x="509" y="1002" text-anchor="middle" fill="#f8fafc" font-size="23" font-family="Arial, sans-serif" font-weight="700">nullable</text>
|
||||
<text x="509" y="1033" text-anchor="middle" fill="#cbd5e1" font-size="20" font-family="Arial, sans-serif">значение может быть null</text>
|
||||
<text x="360" y="1088" text-anchor="middle" fill="#cbd5e1" font-size="20" font-family="Arial, sans-serif">отсутствующий ключ и null — не один случай</text>
|
||||
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
|
||||
<path d="M0 0L10 5L0 10z" fill="#c7d2fe"/>
|
||||
</marker>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.5 KiB |
@@ -1,49 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 650" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Как читать EXPLAIN ANALYZE от результата к первому расхождению</title>
|
||||
<desc id="desc">Вертикальное дерево плана показывает Result, Filter и Index Scan. На каждом уровне сравниваются оценка строк, фактические строки, loops и buffers; расследование начинается с первого расхождения снизу.</desc>
|
||||
<defs>
|
||||
<style>
|
||||
.bg { fill: #f8fafc; }
|
||||
.node { fill: #ffffff; stroke: #94a3b8; stroke-width: 2; }
|
||||
.scan { fill: #ecfdf5; stroke: #059669; stroke-width: 2; }
|
||||
.warn { fill: #fff7ed; stroke: #ea580c; stroke-width: 2; }
|
||||
.note { fill: #eff6ff; stroke: #2563eb; stroke-width: 2; }
|
||||
.title { font: 700 24px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #0f172a; }
|
||||
.label { font: 700 18px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #0f172a; }
|
||||
.text { font: 15px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #334155; }
|
||||
.mono { font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; fill: #0f172a; }
|
||||
.arrow { stroke: #64748b; stroke-width: 3; fill: none; marker-end: url(#tip); }
|
||||
.dash { stroke: #ea580c; stroke-width: 3; stroke-dasharray: 7 6; fill: none; marker-end: url(#tipOrange); }
|
||||
</style>
|
||||
<marker id="tip" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto" markerUnits="strokeWidth">
|
||||
<path d="M0,0 L0,6 L9,3 z" fill="#64748b" />
|
||||
</marker>
|
||||
<marker id="tipOrange" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto" markerUnits="strokeWidth">
|
||||
<path d="M0,0 L0,6 L9,3 z" fill="#ea580c" />
|
||||
</marker>
|
||||
</defs>
|
||||
<rect class="bg" width="760" height="650" rx="28" />
|
||||
<text class="title" x="42" y="52">План — поток данных, не список красивых узлов</text>
|
||||
<rect class="node" x="150" y="86" width="360" height="100" rx="14" />
|
||||
<text class="label" x="178" y="122">Aggregate / Result</text>
|
||||
<text class="mono" x="178" y="152">rows=1 · actual rows=1 · loops=1</text>
|
||||
<path class="arrow" d="M330 188 L330 244" />
|
||||
<rect class="warn" x="150" y="254" width="360" height="116" rx="14" />
|
||||
<text class="label" x="178" y="291">Filter</text>
|
||||
<text class="mono" x="178" y="321">rows=100 · actual rows=100 000</text>
|
||||
<text class="text" x="178" y="347">первое заметное расхождение: ищем причину</text>
|
||||
<path class="arrow" d="M330 372 L330 428" />
|
||||
<rect class="scan" x="150" y="438" width="360" height="116" rx="14" />
|
||||
<text class="label" x="178" y="475">Index Scan</text>
|
||||
<text class="mono" x="178" y="505">Index Cond: state = 'ready'</text>
|
||||
<text class="mono" x="178" y="530">Buffers: shared hit/read · loops=1</text>
|
||||
<rect class="note" x="548" y="235" width="174" height="164" rx="14" />
|
||||
<text class="label" x="568" y="271">Проверить</text>
|
||||
<text class="text" x="568" y="302">1. rows vs actual</text>
|
||||
<text class="text" x="568" y="330">2. loops</text>
|
||||
<text class="text" x="568" y="358">3. Index Cond</text>
|
||||
<text class="text" x="568" y="386">4. Buffers</text>
|
||||
<path class="dash" d="M545 318 L515 318" />
|
||||
<rect class="node" x="76" y="580" width="608" height="42" rx="12" />
|
||||
<text class="text" x="106" y="607">Не лечим верхний узел: начинаем с первого места, где оценка потеряла связь с фактом.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.6 KiB |
@@ -1,50 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 650" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Форма условия должна соответствовать индексному ключу</title>
|
||||
<desc id="desc">Индекс хранит created_at. Предикат created_at::date создаёт выражение и не совпадает с ключом напрямую, а полуоткрытый диапазон сравнивает исходный created_at и может стать кандидатом для B-tree после проверки плана и семантики времени.</desc>
|
||||
<defs>
|
||||
<style>
|
||||
.bg { fill: #f8fafc; }
|
||||
.key { fill: #e0f2fe; stroke: #0284c7; stroke-width: 2; }
|
||||
.bad { fill: #fef2f2; stroke: #dc2626; stroke-width: 2; }
|
||||
.good { fill: #ecfdf5; stroke: #059669; stroke-width: 2; }
|
||||
.note { fill: #fffbeb; stroke: #d97706; stroke-width: 2; }
|
||||
.title { font: 700 24px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #0f172a; }
|
||||
.label { font: 700 18px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #0f172a; }
|
||||
.text { font: 15px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #334155; }
|
||||
.mono { font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; fill: #0f172a; }
|
||||
.arrow { stroke: #64748b; stroke-width: 3; fill: none; marker-end: url(#tip); }
|
||||
.badline { stroke: #dc2626; stroke-width: 4; }
|
||||
</style>
|
||||
<marker id="tip" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto" markerUnits="strokeWidth">
|
||||
<path d="M0,0 L0,6 L9,3 z" fill="#64748b" />
|
||||
</marker>
|
||||
</defs>
|
||||
<rect class="bg" width="760" height="650" rx="28" />
|
||||
<text class="title" x="42" y="52">Индекс хранит ключ, а не намерение запроса</text>
|
||||
<rect class="key" x="175" y="84" width="410" height="82" rx="14" />
|
||||
<text class="label" x="278" y="119">B-tree: (created_at)</text>
|
||||
<text class="text" x="246" y="146">ключ — исходный timestamp без cast</text>
|
||||
<path class="arrow" d="M278 168 L184 230" />
|
||||
<path class="arrow" d="M482 168 L576 230" />
|
||||
<rect class="bad" x="38" y="240" width="306" height="182" rx="14" />
|
||||
<text class="label" x="62" y="277">Выражение в WHERE</text>
|
||||
<text class="mono" x="62" y="311">created_at::date</text>
|
||||
<text class="mono" x="62" y="337">= DATE '2019-07-10'</text>
|
||||
<text class="text" x="62" y="373">ключ и выражение разные</text>
|
||||
<text class="text" x="62" y="399">проверяем range или</text>
|
||||
<text class="text" x="62" y="420">обоснованный expression index</text>
|
||||
<line class="badline" x1="78" y1="256" x2="304" y2="406" />
|
||||
<rect class="good" x="416" y="240" width="306" height="182" rx="14" />
|
||||
<text class="label" x="440" y="277">Полуоткрытый range</text>
|
||||
<text class="mono" x="440" y="311">created_at >= day</text>
|
||||
<text class="mono" x="440" y="337">AND created_at < day + 1</text>
|
||||
<text class="text" x="440" y="373">исходный ключ сохранён</text>
|
||||
<text class="text" x="440" y="399">кандидат для B-tree:</text>
|
||||
<text class="text" x="440" y="420">подтверждаем планом</text>
|
||||
<path class="arrow" d="M190 424 L285 486" />
|
||||
<path class="arrow" d="M570 424 L475 486" />
|
||||
<rect class="note" x="116" y="496" width="528" height="104" rx="14" />
|
||||
<text class="label" x="148" y="532">Сначала смысл времени, затем EXPLAIN ANALYZE</text>
|
||||
<text class="text" x="148" y="561">Проверить timezone, rows, Index Cond, Filter и Buffers.</text>
|
||||
<text class="text" x="148" y="584">Скорость не оправдывает неверную календарную границу.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.8 KiB |
@@ -1,47 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 760 620" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Селективность определяет ценность индекса</title>
|
||||
<desc id="desc">Из миллиона заказов условие ready оставляет девятьсот девяносто тысяч строк, а waiting десять тысяч. Для обоих существует индекс, но для частого значения последовательное чтение может быть дешевле.</desc>
|
||||
<defs>
|
||||
<style>
|
||||
.bg { fill: #f8fafc; }
|
||||
.card { fill: #ffffff; stroke: #cbd5e1; stroke-width: 2; }
|
||||
.source { fill: #e0f2fe; stroke: #0284c7; stroke-width: 2; }
|
||||
.hot { fill: #fff7ed; stroke: #ea580c; stroke-width: 2; }
|
||||
.cold { fill: #ecfdf5; stroke: #059669; stroke-width: 2; }
|
||||
.note { fill: #eff6ff; stroke: #2563eb; stroke-width: 2; }
|
||||
.title { font: 700 25px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #0f172a; }
|
||||
.label { font: 700 18px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #0f172a; }
|
||||
.text { font: 16px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #334155; }
|
||||
.small { font: 14px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; fill: #475569; }
|
||||
.mono { font: 600 15px ui-monospace, SFMono-Regular, Menlo, monospace; fill: #0f172a; }
|
||||
.line { stroke: #64748b; stroke-width: 3; fill: none; marker-end: url(#arrow); }
|
||||
</style>
|
||||
<marker id="arrow" markerWidth="10" markerHeight="10" refX="8" refY="3" orient="auto" markerUnits="strokeWidth">
|
||||
<path d="M0,0 L0,6 L9,3 z" fill="#64748b" />
|
||||
</marker>
|
||||
</defs>
|
||||
<rect class="bg" width="760" height="620" rx="28" />
|
||||
<text class="title" x="42" y="52">Индекс — кандидат; селективность решает цену</text>
|
||||
<rect class="source" x="210" y="82" width="340" height="86" rx="14" />
|
||||
<text class="label" x="290" y="119">work_orders</text>
|
||||
<text class="text" x="272" y="148">1 000 000 строк после ANALYZE</text>
|
||||
<path class="line" d="M300 170 L185 236" />
|
||||
<path class="line" d="M460 170 L575 236" />
|
||||
<rect class="hot" x="42" y="246" width="292" height="168" rx="14" />
|
||||
<text class="mono" x="66" y="281">WHERE state = 'ready'</text>
|
||||
<text class="label" x="66" y="320">990 000 строк</text>
|
||||
<text class="text" x="66" y="350">почти вся таблица</text>
|
||||
<text class="small" x="66" y="382">индекс + heap-обращения</text>
|
||||
<text class="small" x="66" y="403">могут стоить дороже Seq Scan</text>
|
||||
<rect class="cold" x="426" y="246" width="292" height="168" rx="14" />
|
||||
<text class="mono" x="448" y="281">WHERE state = 'waiting'</text>
|
||||
<text class="label" x="448" y="320">10 000 строк</text>
|
||||
<text class="text" x="448" y="350">около 1% таблицы</text>
|
||||
<text class="small" x="448" y="382">индекс может сузить путь</text>
|
||||
<text class="small" x="448" y="403">проверяем фактическим планом</text>
|
||||
<path class="line" d="M188 416 L285 482" />
|
||||
<path class="line" d="M572 416 L475 482" />
|
||||
<rect class="note" x="126" y="492" width="508" height="88" rx="14" />
|
||||
<text class="label" x="164" y="527">EXPLAIN (ANALYZE, BUFFERS)</text>
|
||||
<text class="text" x="164" y="555">сравнить rows, actual rows, loops и Buffers до нового CREATE INDEX</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.5 KiB |
@@ -1,50 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1160" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Постепенная миграция JavaScript-проекта на TypeScript</title>
|
||||
<desc id="desc">Вертикальная схема из четырёх шагов: зафиксировать рабочий выпуск, выбрать границу данных, включить проверку JavaScript, перенести один модуль и повторить выпускные проверки.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" x2="1" y1="0" y2="1">
|
||||
<stop offset="0" stop-color="#f8fbff"/>
|
||||
<stop offset="1" stop-color="#edf9f4"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
|
||||
<path d="M0 0L10 5L0 10z" fill="#278f6b"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="720" height="1160" fill="url(#background)"/>
|
||||
<rect x="42" y="34" width="636" height="112" rx="18" fill="#17324d"/>
|
||||
<text x="360" y="80" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="29" font-weight="700">TypeScript 3.5: миграция по границам</text>
|
||||
<text x="360" y="116" text-anchor="middle" fill="#d8e7f3" font-family="Arial, sans-serif" font-size="21">Один шов, прежний выпуск, маленький merge</text>
|
||||
|
||||
<rect x="74" y="190" width="572" height="122" rx="18" fill="#ffffff" stroke="#17324d" stroke-width="3"/>
|
||||
<circle cx="120" cy="251" r="27" fill="#17324d"/>
|
||||
<text x="120" y="260" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="22" font-weight="700">1</text>
|
||||
<text x="170" y="238" fill="#17324d" font-family="Arial, sans-serif" font-size="26" font-weight="700">Зафиксировать рабочий выпуск</text>
|
||||
<text x="170" y="274" fill="#425d73" font-family="Arial, sans-serif" font-size="21">build-команда, артефакт, один smoke-путь</text>
|
||||
<path d="M360 312v38" stroke="#278f6b" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="74" y="358" width="572" height="122" rx="18" fill="#ffffff" stroke="#315bd6" stroke-width="3"/>
|
||||
<circle cx="120" cy="419" r="27" fill="#315bd6"/>
|
||||
<text x="120" y="428" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="22" font-weight="700">2</text>
|
||||
<text x="170" y="406" fill="#17324d" font-family="Arial, sans-serif" font-size="26" font-weight="700">Выбрать одну границу данных</text>
|
||||
<text x="170" y="442" fill="#425d73" font-family="Arial, sans-serif" font-size="21">API → normalizer → модель экрана</text>
|
||||
<path d="M360 480v38" stroke="#278f6b" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="74" y="526" width="572" height="122" rx="18" fill="#ffffff" stroke="#e58b36" stroke-width="3"/>
|
||||
<circle cx="120" cy="587" r="27" fill="#e58b36"/>
|
||||
<text x="120" y="596" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="22" font-weight="700">3</text>
|
||||
<text x="170" y="574" fill="#17324d" font-family="Arial, sans-serif" font-size="26" font-weight="700">Проверить старый JavaScript</text>
|
||||
<text x="170" y="610" fill="#425d73" font-family="Arial, sans-serif" font-size="21">allowJs + локальный @ts-check в опасном шве</text>
|
||||
<path d="M360 648v38" stroke="#278f6b" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="74" y="694" width="572" height="142" rx="18" fill="#ffffff" stroke="#278f6b" stroke-width="3"/>
|
||||
<circle cx="120" cy="765" r="27" fill="#278f6b"/>
|
||||
<text x="120" y="774" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="22" font-weight="700">4</text>
|
||||
<text x="170" y="752" fill="#17324d" font-family="Arial, sans-serif" font-size="26" font-weight="700">Перенести один модуль в .ts</text>
|
||||
<text x="170" y="788" fill="#425d73" font-family="Arial, sans-serif" font-size="21">Не менять module format и delivery</text>
|
||||
<text x="170" y="816" fill="#425d73" font-family="Arial, sans-serif" font-size="21">в той же партии.</text>
|
||||
|
||||
<rect x="58" y="900" width="604" height="126" rx="18" fill="#17324d"/>
|
||||
<text x="360" y="950" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="24" font-weight="700">type-check → прежний build</text>
|
||||
<text x="360" y="988" text-anchor="middle" fill="#d8e7f3" font-family="Arial, sans-serif" font-size="23">smoke → маленький merge</text>
|
||||
<text x="360" y="1090" text-anchor="middle" fill="#425d73" font-family="Arial, sans-serif" font-size="21">Выпуск проверяет границу, а не процент файлов .ts.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.7 KiB |
@@ -1,54 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1240" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Выпускные проверки для одной TypeScript-границы</title>
|
||||
<desc id="desc">Вертикальная диаграмма показывает одно изменение от JavaScript transport к TypeScript normalizer и четыре независимые проверки: fixture, type-check, прежний build и smoke-сценарий.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" x2="1" y1="0" y2="1">
|
||||
<stop offset="0" stop-color="#f7fbff"/>
|
||||
<stop offset="1" stop-color="#f4fbf7"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
|
||||
<path d="M0 0L10 5L0 10z" fill="#315bd6"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="720" height="1240" fill="url(#background)"/>
|
||||
<rect x="42" y="34" width="636" height="112" rx="18" fill="#17324d"/>
|
||||
<text x="360" y="80" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="28" font-weight="700">Одна граница — четыре gate</text>
|
||||
<text x="360" y="116" text-anchor="middle" fill="#d8e7f3" font-family="Arial, sans-serif" font-size="21">Каждая проверка отвечает на свой вопрос.</text>
|
||||
|
||||
<rect x="74" y="190" width="572" height="142" rx="18" fill="#ffffff" stroke="#315bd6" stroke-width="3"/>
|
||||
<text x="360" y="236" text-anchor="middle" fill="#17324d" font-family="Arial, sans-serif" font-size="27" font-weight="700">Изменение одного шва</text>
|
||||
<text x="360" y="274" text-anchor="middle" fill="#315bd6" font-family="Arial, sans-serif" font-size="22" font-weight="700">member-api.js → normalizer.ts → screen</text>
|
||||
<text x="360" y="306" text-anchor="middle" fill="#425d73" font-family="Arial, sans-serif" font-size="20">unknown → Member проходит только через normalizer</text>
|
||||
<path d="M360 332v38" stroke="#315bd6" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="74" y="378" width="572" height="118" rx="18" fill="#ffffff" stroke="#315bd6" stroke-width="3"/>
|
||||
<circle cx="120" cy="437" r="27" fill="#315bd6"/>
|
||||
<text x="120" y="446" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="22" font-weight="700">1</text>
|
||||
<text x="170" y="425" fill="#17324d" font-family="Arial, sans-serif" font-size="26" font-weight="700">Contract fixture</text>
|
||||
<text x="170" y="461" fill="#425d73" font-family="Arial, sans-serif" font-size="21">неполный payload не становится Member</text>
|
||||
<path d="M360 496v32" stroke="#315bd6" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="74" y="536" width="572" height="118" rx="18" fill="#ffffff" stroke="#315bd6" stroke-width="3"/>
|
||||
<circle cx="120" cy="595" r="27" fill="#315bd6"/>
|
||||
<text x="120" y="604" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="22" font-weight="700">2</text>
|
||||
<text x="170" y="583" fill="#17324d" font-family="Arial, sans-serif" font-size="26" font-weight="700">Type-check</text>
|
||||
<text x="170" y="619" fill="#425d73" font-family="Arial, sans-serif" font-size="21">imports и контракт видны compiler</text>
|
||||
<path d="M360 654v32" stroke="#315bd6" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="74" y="694" width="572" height="118" rx="18" fill="#ffffff" stroke="#278f6b" stroke-width="3"/>
|
||||
<circle cx="120" cy="753" r="27" fill="#278f6b"/>
|
||||
<text x="120" y="762" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="22" font-weight="700">3</text>
|
||||
<text x="170" y="741" fill="#17324d" font-family="Arial, sans-serif" font-size="26" font-weight="700">Прежний build</text>
|
||||
<text x="170" y="777" fill="#425d73" font-family="Arial, sans-serif" font-size="21">всё ещё создаёт известный артефакт</text>
|
||||
<path d="M360 812v32" stroke="#315bd6" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="74" y="852" width="572" height="118" rx="18" fill="#ffffff" stroke="#278f6b" stroke-width="3"/>
|
||||
<circle cx="120" cy="911" r="27" fill="#278f6b"/>
|
||||
<text x="120" y="920" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="22" font-weight="700">4</text>
|
||||
<text x="170" y="899" fill="#17324d" font-family="Arial, sans-serif" font-size="26" font-weight="700">Smoke</text>
|
||||
<text x="170" y="935" fill="#425d73" font-family="Arial, sans-serif" font-size="21">известный Member доходит до экрана</text>
|
||||
|
||||
<rect x="58" y="1032" width="604" height="112" rx="18" fill="#17324d"/>
|
||||
<text x="360" y="1078" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="23" font-weight="700">Маленький rollback остаётся возможным</text>
|
||||
<text x="360" y="1114" text-anchor="middle" fill="#d8e7f3" font-family="Arial, sans-serif" font-size="20">transport и pipeline не меняются в той же партии</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.0 KiB |
@@ -1,45 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1160" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Граница между внешними данными и типизированным кодом</title>
|
||||
<desc id="desc">Вертикальная схема показывает путь неизвестного сетевого payload через исполняемый normalizer к модели Member и отдельный опасный обход через any.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" x2="1" y1="0" y2="1">
|
||||
<stop offset="0" stop-color="#fafcff"/>
|
||||
<stop offset="1" stop-color="#f1f7ff"/>
|
||||
</linearGradient>
|
||||
<marker id="good-arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
|
||||
<path d="M0 0L10 5L0 10z" fill="#278f6b"/>
|
||||
</marker>
|
||||
<marker id="bad-arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto-start-reverse">
|
||||
<path d="M0 0L10 5L0 10z" fill="#c54646"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="720" height="1160" fill="url(#background)"/>
|
||||
<rect x="42" y="34" width="636" height="112" rx="18" fill="#17324d"/>
|
||||
<text x="360" y="80" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="28" font-weight="700">Граница типов не заменяет runtime</text>
|
||||
<text x="360" y="116" text-anchor="middle" fill="#d8e7f3" font-family="Arial, sans-serif" font-size="21">Входные данные проверяет исполняемый код.</text>
|
||||
|
||||
<rect x="74" y="190" width="572" height="140" rx="18" fill="#eaf0f8" stroke="#a5b8cc" stroke-width="3"/>
|
||||
<text x="360" y="232" text-anchor="middle" fill="#17324d" font-family="Arial, sans-serif" font-size="27" font-weight="700">1. Внешний payload</text>
|
||||
<text x="360" y="270" text-anchor="middle" fill="#425d73" font-family="Arial, sans-serif" font-size="22">HTTP, форма, legacy callback</text>
|
||||
<rect x="274" y="288" width="172" height="28" rx="14" fill="#315bd6"/>
|
||||
<text x="360" y="309" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="18" font-weight="700">unknown</text>
|
||||
<path d="M360 330v42" stroke="#278f6b" stroke-width="5" marker-end="url(#good-arrow)"/>
|
||||
|
||||
<rect x="74" y="380" width="572" height="190" rx="18" fill="#ffffff" stroke="#278f6b" stroke-width="3"/>
|
||||
<text x="360" y="426" text-anchor="middle" fill="#17324d" font-family="Arial, sans-serif" font-size="27" font-weight="700">2. Normalizer исполняется в JavaScript</text>
|
||||
<text x="360" y="468" text-anchor="middle" fill="#278f6b" font-family="Arial, sans-serif" font-size="22" font-weight="700">runtime-проверка</text>
|
||||
<text x="360" y="506" text-anchor="middle" fill="#425d73" font-family="Arial, sans-serif" font-size="21">проверяет поля и варианты status</text>
|
||||
<text x="360" y="540" text-anchor="middle" fill="#425d73" font-family="Arial, sans-serif" font-size="21">возвращает Member, null или понятную ошибку</text>
|
||||
<path d="M360 570v42" stroke="#278f6b" stroke-width="5" marker-end="url(#good-arrow)"/>
|
||||
|
||||
<rect x="74" y="620" width="572" height="140" rx="18" fill="#dcf4e9" stroke="#278f6b" stroke-width="3"/>
|
||||
<text x="360" y="662" text-anchor="middle" fill="#17324d" font-family="Arial, sans-serif" font-size="27" font-weight="700">3. Ядро получает проверенный Member</text>
|
||||
<text x="360" y="700" text-anchor="middle" fill="#425d73" font-family="Arial, sans-serif" font-size="22">screen и formatter используют контракт</text>
|
||||
<text x="360" y="734" text-anchor="middle" fill="#425d73" font-family="Arial, sans-serif" font-size="21">а не исходный сетевой объект</text>
|
||||
|
||||
<path d="M140 810H580" stroke="#c54646" stroke-width="5" stroke-dasharray="12 10" marker-end="url(#bad-arrow)"/>
|
||||
<rect x="106" y="846" width="508" height="126" rx="18" fill="#fff0f0" stroke="#c54646" stroke-width="3"/>
|
||||
<text x="360" y="892" text-anchor="middle" fill="#a12f2f" font-family="Arial, sans-serif" font-size="27" font-weight="700">any обходит normalizer</text>
|
||||
<text x="360" y="930" text-anchor="middle" fill="#a12f2f" font-family="Arial, sans-serif" font-size="21">ошибка проявится дальше по цепочке</text>
|
||||
<text x="360" y="1050" text-anchor="middle" fill="#425d73" font-family="Arial, sans-serif" font-size="21">TypeScript проверяет контракт; runtime проверяет вход.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.5 KiB |
@@ -1,58 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 1130" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Порядок jQuery и legacy-плагина в Webpack production</title>
|
||||
<desc id="desc">Вертикальная схема показывает правильный порядок через runtime, bootstrap с window.jQuery и runtime require плагина, а ниже плохой путь со статическим импортом.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" x2="1" y1="0" y2="1">
|
||||
<stop offset="0" stop-color="#0f172a"/>
|
||||
<stop offset="1" stop-color="#312e81"/>
|
||||
</linearGradient>
|
||||
<filter id="shadow" x="-15%" y="-10%" width="130%" height="130%">
|
||||
<feDropShadow dx="0" dy="10" stdDeviation="10" flood-color="#020617" flood-opacity=".32"/>
|
||||
</filter>
|
||||
<marker id="good" markerWidth="12" markerHeight="12" refX="6" refY="10" orient="auto">
|
||||
<path d="M0,0 L12,0 L6,12 Z" fill="#34d399"/>
|
||||
</marker>
|
||||
<marker id="bad" markerWidth="12" markerHeight="12" refX="6" refY="10" orient="auto">
|
||||
<path d="M0,0 L12,0 L6,12 Z" fill="#fb7185"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="640" height="1130" rx="28" fill="url(#bg)"/>
|
||||
<g font-family="Inter,Arial,sans-serif">
|
||||
<text x="48" y="58" fill="#f8fafc" font-size="27" font-weight="700">Webpack production:</text>
|
||||
<text x="48" y="91" fill="#f8fafc" font-size="27" font-weight="700">порядок до legacy-плагина</text>
|
||||
<text x="48" y="122" fill="#c4b5fd" font-size="16">ProvidePlugin не заменяет явный момент window.jQuery.</text>
|
||||
|
||||
<text x="48" y="170" fill="#a7f3d0" font-size="21" font-weight="700">Рабочий путь</text>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="48" y="198" width="544" height="116" rx="20" fill="#064e3b" stroke="#34d399"/>
|
||||
<rect x="48" y="374" width="544" height="116" rx="20" fill="#065f46" stroke="#34d399"/>
|
||||
<rect x="48" y="550" width="544" height="116" rx="20" fill="#047857" stroke="#34d399"/>
|
||||
<rect x="48" y="726" width="544" height="116" rx="20" fill="#064e3b" stroke="#34d399"/>
|
||||
</g>
|
||||
<text x="80" y="242" fill="#d1fae5" font-size="21" font-weight="700">1. runtime и vendors chunk</text>
|
||||
<text x="80" y="278" fill="#a7f3d0" font-size="16">В фактическом графе есть один jquery.</text>
|
||||
<path d="M320 314 V374" fill="none" stroke="#34d399" stroke-width="4" marker-end="url(#good)"/>
|
||||
|
||||
<text x="80" y="418" fill="#d1fae5" font-size="21" font-weight="700">2. bootstrap</text>
|
||||
<text x="80" y="454" fill="#a7f3d0" font-size="16">window.jQuery = $ и проверка экземпляра.</text>
|
||||
<path d="M320 490 V550" fill="none" stroke="#34d399" stroke-width="4" marker-end="url(#good)"/>
|
||||
|
||||
<text x="80" y="594" fill="#ecfdf5" font-size="21" font-weight="700">3. runtime require плагина</text>
|
||||
<text x="80" y="630" fill="#d1fae5" font-size="16">Плагин читает уже существующий глобал.</text>
|
||||
<path d="M320 666 V726" fill="none" stroke="#34d399" stroke-width="4" marker-end="url(#good)"/>
|
||||
|
||||
<text x="80" y="770" fill="#d1fae5" font-size="21" font-weight="700">4. ready handler формы</text>
|
||||
<text x="80" y="806" fill="#a7f3d0" font-size="16">DOM есть, метод плагина доступен один раз.</text>
|
||||
|
||||
<text x="48" y="900" fill="#fecdd3" font-size="21" font-weight="700">Плохой путь</text>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="48" y="928" width="544" height="120" rx="20" fill="#4c0519" stroke="#fb7185"/>
|
||||
</g>
|
||||
<text x="80" y="970" fill="#ffe4e6" font-size="21" font-weight="700">static import legacy-плагина</text>
|
||||
<text x="80" y="1006" fill="#fecdd3" font-size="16">Плагин исполняется раньше тела bootstrap.</text>
|
||||
<text x="80" y="1032" fill="#fecdd3" font-size="16">window.jQuery ещё пуст, форма падает в production.</text>
|
||||
|
||||
<rect x="48" y="1074" width="544" height="34" rx="12" fill="#111827" stroke="#4f46e5"/>
|
||||
<text x="70" y="1097" fill="#c7d2fe" font-size="13">Проверка: stats.json, чистый dist, глобал до require.</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.2 KiB |
@@ -1,53 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1210" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Маршрут диагностики фоновой задачи</title>
|
||||
<desc id="desc">Вертикальная схема проводит расследование по одному jobId через запись задачи, outbox и публикацию, журнал worker, сохранённый результат либо карантинную очередь.</desc>
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 12 12" refX="6" refY="6" markerWidth="10" markerHeight="10" orient="auto-start-reverse"><path d="M 1 1 L 11 6 L 1 11 z" fill="#516274" /></marker>
|
||||
<style>
|
||||
.title { fill: #182230; font: 700 34px system-ui, -apple-system, sans-serif; }
|
||||
.lead { fill: #516274; font: 400 22px system-ui, -apple-system, sans-serif; }
|
||||
.number { fill: #ffffff; font: 700 25px system-ui, -apple-system, sans-serif; }
|
||||
.step { fill: #182230; font: 700 28px system-ui, -apple-system, sans-serif; }
|
||||
.copy { fill: #354458; font: 400 23px system-ui, -apple-system, sans-serif; }
|
||||
.small { fill: #516274; font: 400 21px system-ui, -apple-system, sans-serif; }
|
||||
</style>
|
||||
</defs>
|
||||
<rect width="720" height="1210" fill="#f6f8fb" rx="28" />
|
||||
<text class="title" x="50" y="72">Диагностика по jobId</text>
|
||||
<text class="lead" x="50" y="108">Не перезапускать effect, пока не известна граница</text>
|
||||
|
||||
<rect x="48" y="152" width="624" height="142" rx="22" fill="#e7f0ff" stroke="#4a78bd" stroke-width="3" />
|
||||
<circle cx="100" cy="214" r="30" fill="#3167b1" />
|
||||
<text class="number" x="93" y="223">1</text>
|
||||
<text class="step" x="158" y="206">Запись задачи</text>
|
||||
<text class="copy" x="158" y="247">state, attempt, lastError, resultKey</text>
|
||||
<line x1="360" y1="296" x2="360" y2="344" stroke="#516274" stroke-width="5" marker-end="url(#arrow)" />
|
||||
|
||||
<rect x="48" y="360" width="624" height="142" rx="22" fill="#eef3f7" stroke="#738195" stroke-width="3" />
|
||||
<circle cx="100" cy="422" r="30" fill="#516274" />
|
||||
<text class="number" x="92" y="431">2</text>
|
||||
<text class="step" x="158" y="414">Outbox и публикация</text>
|
||||
<text class="copy" x="158" y="455">Есть ли message до worker?</text>
|
||||
<line x1="360" y1="504" x2="360" y2="552" stroke="#516274" stroke-width="5" marker-end="url(#arrow)" />
|
||||
|
||||
<rect x="48" y="568" width="624" height="154" rx="22" fill="#fff4d7" stroke="#c68819" stroke-width="3" />
|
||||
<circle cx="100" cy="636" r="30" fill="#b47700" />
|
||||
<text class="number" x="92" y="645">3</text>
|
||||
<text class="step" x="158" y="625">Журнал worker</text>
|
||||
<text class="copy" x="158" y="666">received → result → ack</text>
|
||||
<text class="small" x="158" y="697">Сравнить порядок и attempt</text>
|
||||
<line x1="360" y1="724" x2="360" y2="772" stroke="#516274" stroke-width="5" marker-end="url(#arrow)" />
|
||||
|
||||
<rect x="48" y="788" width="624" height="142" rx="22" fill="#e4f6ea" stroke="#25855a" stroke-width="3" />
|
||||
<circle cx="100" cy="850" r="30" fill="#16764c" />
|
||||
<text class="number" x="92" y="859">4</text>
|
||||
<text class="step" x="158" y="842">resultKey найден</text>
|
||||
<text class="copy" x="158" y="883">Повторный delivery только ACK</text>
|
||||
<line x1="360" y1="932" x2="360" y2="980" stroke="#516274" stroke-width="5" marker-end="url(#arrow)" />
|
||||
|
||||
<rect x="48" y="996" width="624" height="142" rx="22" fill="#fde9ea" stroke="#b4434b" stroke-width="3" />
|
||||
<circle cx="100" cy="1058" r="30" fill="#a6353d" />
|
||||
<text class="number" x="92" y="1067">5</text>
|
||||
<text class="step" x="158" y="1050">Постоянная ошибка</text>
|
||||
<text class="copy" x="158" y="1091">quarantined + DLX-разбор</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.7 KiB |
@@ -1,58 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1320" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Жизненный цикл фоновой задачи</title>
|
||||
<desc id="desc">Вертикальная схема показывает запись задачи и outbox, публикацию, обработку worker-ом, сохранение результата перед ack, повтор при временной ошибке и карантин постоянной ошибки.</desc>
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 12 12" refX="6" refY="6" markerWidth="10" markerHeight="10" orient="auto-start-reverse"><path d="M 1 1 L 11 6 L 1 11 z" fill="#516274" /></marker>
|
||||
<style>
|
||||
.title { fill: #182230; font: 700 34px system-ui, -apple-system, sans-serif; }
|
||||
.lead { fill: #516274; font: 400 22px system-ui, -apple-system, sans-serif; }
|
||||
.step { fill: #182230; font: 700 27px system-ui, -apple-system, sans-serif; }
|
||||
.copy { fill: #354458; font: 400 23px system-ui, -apple-system, sans-serif; }
|
||||
.tag { fill: #ffffff; font: 700 22px system-ui, -apple-system, sans-serif; }
|
||||
.small { fill: #516274; font: 400 21px system-ui, -apple-system, sans-serif; }
|
||||
</style>
|
||||
</defs>
|
||||
<rect width="720" height="1320" fill="#f6f8fb" rx="28" />
|
||||
<text class="title" x="52" y="72">Жизненный цикл одной задачи</text>
|
||||
<text class="lead" x="52" y="108">jobId связывает запись, delivery и результат</text>
|
||||
|
||||
<rect x="48" y="148" width="624" height="142" rx="22" fill="#e7f0ff" stroke="#4a78bd" stroke-width="3" />
|
||||
<rect x="72" y="176" width="88" height="42" rx="21" fill="#3167b1" />
|
||||
<text class="tag" x="94" y="205">HTTP</text>
|
||||
<text class="step" x="184" y="203">Записать job и outbox</text>
|
||||
<text class="copy" x="184" y="244">Ответ: принято, jobId известен</text>
|
||||
<line x1="360" y1="292" x2="360" y2="340" stroke="#516274" stroke-width="5" marker-end="url(#arrow)" />
|
||||
|
||||
<rect x="48" y="356" width="624" height="142" rx="22" fill="#eef3f7" stroke="#738195" stroke-width="3" />
|
||||
<rect x="72" y="384" width="132" height="42" rx="21" fill="#516274" />
|
||||
<text class="tag" x="91" y="413">DISPATCH</text>
|
||||
<text class="step" x="226" y="411">Опубликовать jobId</text>
|
||||
<text class="copy" x="226" y="452">Только затем отметить outbox</text>
|
||||
<line x1="360" y1="500" x2="360" y2="548" stroke="#516274" stroke-width="5" marker-end="url(#arrow)" />
|
||||
|
||||
<rect x="48" y="564" width="624" height="142" rx="22" fill="#fff4d7" stroke="#c68819" stroke-width="3" />
|
||||
<rect x="72" y="592" width="112" height="42" rx="21" fill="#b47700" />
|
||||
<text class="tag" x="92" y="621">WORKER</text>
|
||||
<text class="step" x="210" y="619">Прочитать job по jobId</text>
|
||||
<text class="copy" x="210" y="660">Delivery ещё не подтверждён</text>
|
||||
<line x1="360" y1="708" x2="360" y2="756" stroke="#516274" stroke-width="5" marker-end="url(#arrow)" />
|
||||
|
||||
<rect x="48" y="772" width="624" height="156" rx="22" fill="#e4f6ea" stroke="#25855a" stroke-width="3" />
|
||||
<rect x="72" y="800" width="102" height="42" rx="21" fill="#16764c" />
|
||||
<text class="tag" x="97" y="829">УСПЕХ</text>
|
||||
<text class="step" x="200" y="827">Сохранить result + succeeded</text>
|
||||
<text class="copy" x="200" y="868">Только после этого отправить ACK</text>
|
||||
<text class="small" x="200" y="902">Повтор увидит terminal state</text>
|
||||
|
||||
<line x1="360" y1="930" x2="360" y2="978" stroke="#516274" stroke-width="5" marker-end="url(#arrow)" />
|
||||
<rect x="48" y="994" width="624" height="126" rx="22" fill="#fff1df" stroke="#c97918" stroke-width="3" />
|
||||
<rect x="72" y="1023" width="102" height="42" rx="21" fill="#b76500" />
|
||||
<text class="tag" x="95" y="1052">RETRY</text>
|
||||
<text class="step" x="201" y="1050">Временная ошибка: retry_wait</text>
|
||||
<text class="copy" x="201" y="1090">Ограниченный повтор вернётся к worker</text>
|
||||
|
||||
<line x1="360" y1="1122" x2="360" y2="1170" stroke="#516274" stroke-width="5" marker-end="url(#arrow)" />
|
||||
<rect x="48" y="1186" width="624" height="98" rx="22" fill="#fde9ea" stroke="#b4434b" stroke-width="3" />
|
||||
<text class="step" x="76" y="1228">Постоянная ошибка или лимит</text>
|
||||
<text class="copy" x="76" y="1265">→ quarantine / DLX</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.4 KiB |
@@ -1,55 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1260" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Граница повторов и подтверждения фоновой задачи</title>
|
||||
<desc id="desc">Вертикальная схема показывает, что worker сохраняет результат до подтверждения доставки, ограничивает временный повтор и отправляет постоянную ошибку в карантин без бесконечного requeue.</desc>
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 12 12" refX="6" refY="6" markerWidth="10" markerHeight="10" orient="auto-start-reverse"><path d="M 1 1 L 11 6 L 1 11 z" fill="#516274" /></marker>
|
||||
<style>
|
||||
.title { fill: #182230; font: 700 34px system-ui, -apple-system, sans-serif; }
|
||||
.lead { fill: #516274; font: 400 22px system-ui, -apple-system, sans-serif; }
|
||||
.step { fill: #182230; font: 700 27px system-ui, -apple-system, sans-serif; }
|
||||
.copy { fill: #354458; font: 400 23px system-ui, -apple-system, sans-serif; }
|
||||
.tag { fill: #ffffff; font: 700 22px system-ui, -apple-system, sans-serif; }
|
||||
.small { fill: #516274; font: 400 21px system-ui, -apple-system, sans-serif; }
|
||||
</style>
|
||||
</defs>
|
||||
<rect width="720" height="1260" fill="#f6f8fb" rx="28" />
|
||||
<text class="title" x="50" y="72">Граница retry и ack</text>
|
||||
<text class="lead" x="50" y="108">delivery может повториться; jobId остаётся тем же</text>
|
||||
|
||||
<rect x="48" y="150" width="624" height="132" rx="22" fill="#e7f0ff" stroke="#4a78bd" stroke-width="3" />
|
||||
<rect x="72" y="178" width="112" height="42" rx="21" fill="#3167b1" />
|
||||
<text class="tag" x="92" y="207">DELIVERY</text>
|
||||
<text class="step" x="208" y="205">Получить tag и jobId</text>
|
||||
<text class="copy" x="208" y="246">Ack ещё не отправлен</text>
|
||||
<line x1="360" y1="284" x2="360" y2="332" stroke="#516274" stroke-width="5" marker-end="url(#arrow)" />
|
||||
|
||||
<rect x="48" y="348" width="624" height="146" rx="22" fill="#fff4d7" stroke="#c68819" stroke-width="3" />
|
||||
<rect x="72" y="376" width="116" height="42" rx="21" fill="#b47700" />
|
||||
<text class="tag" x="92" y="405">CHECK</text>
|
||||
<text class="step" x="212" y="403">Terminal state уже есть?</text>
|
||||
<text class="copy" x="212" y="444">Да: не делать effect второй раз</text>
|
||||
<text class="small" x="212" y="475">Нет: начать одну попытку</text>
|
||||
<line x1="360" y1="496" x2="360" y2="544" stroke="#516274" stroke-width="5" marker-end="url(#arrow)" />
|
||||
|
||||
<rect x="48" y="560" width="624" height="148" rx="22" fill="#e4f6ea" stroke="#25855a" stroke-width="3" />
|
||||
<rect x="72" y="588" width="104" height="42" rx="21" fill="#16764c" />
|
||||
<text class="tag" x="95" y="617">RESULT</text>
|
||||
<text class="step" x="201" y="615">resultKey + succeeded сохранены</text>
|
||||
<text class="copy" x="201" y="656">Только затем ACK этого tag</text>
|
||||
<text class="small" x="201" y="687">Порядок защищает от ранней потери</text>
|
||||
|
||||
<line x1="360" y1="710" x2="360" y2="758" stroke="#516274" stroke-width="5" marker-end="url(#arrow)" />
|
||||
<rect x="48" y="774" width="624" height="140" rx="22" fill="#fff1df" stroke="#c97918" stroke-width="3" />
|
||||
<rect x="72" y="802" width="98" height="42" rx="21" fill="#b76500" />
|
||||
<text class="tag" x="94" y="831">RETRY</text>
|
||||
<text class="step" x="196" y="829">Временная ошибка, attempt < 3</text>
|
||||
<text class="copy" x="196" y="870">retry_wait → задержанный повтор</text>
|
||||
<line x1="360" y1="916" x2="360" y2="964" stroke="#516274" stroke-width="5" marker-end="url(#arrow)" />
|
||||
|
||||
<rect x="48" y="980" width="624" height="154" rx="22" fill="#fde9ea" stroke="#b4434b" stroke-width="3" />
|
||||
<rect x="72" y="1008" width="156" height="42" rx="21" fill="#a6353d" />
|
||||
<text class="tag" x="110" y="1037">STOP</text>
|
||||
<text class="step" x="251" y="1035">Невалидно или лимит</text>
|
||||
<text class="copy" x="251" y="1076">quarantined → nack без requeue</text>
|
||||
<text class="small" x="251" y="1107">Дальше отдельный DLX-разбор</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.2 KiB |
@@ -1,64 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="720" height="1240" viewBox="0 0 720 1240" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Контракт учебной резервной копии и восстановления</title>
|
||||
<desc id="desc">Вертикальная схема из пяти шагов: scope, archive, manifest с checksum, изолированный restore и доказательство результата. Hash проверяет байты, а проверки после restore — смысл результата.</desc>
|
||||
<defs>
|
||||
<marker id="arrow" markerWidth="12" markerHeight="12" refX="6" refY="6" orient="auto">
|
||||
<path d="M1 1 L11 6 L1 11 Z" fill="#3566c8"/>
|
||||
</marker>
|
||||
<style>
|
||||
.title { fill: #14213d; font: 700 34px system-ui, -apple-system, sans-serif; }
|
||||
.subtitle { fill: #43536f; font: 400 21px system-ui, -apple-system, sans-serif; }
|
||||
.step { fill: #3566c8; font: 700 22px system-ui, -apple-system, sans-serif; }
|
||||
.label { fill: #14213d; font: 700 26px system-ui, -apple-system, sans-serif; }
|
||||
.body { fill: #34435c; font: 400 22px system-ui, -apple-system, sans-serif; }
|
||||
.note { fill: #51627d; font: 400 20px system-ui, -apple-system, sans-serif; }
|
||||
</style>
|
||||
</defs>
|
||||
<rect width="720" height="1240" fill="#f7f9fc"/>
|
||||
<rect x="40" y="36" width="640" height="140" rx="24" fill="#e9f0ff"/>
|
||||
<text x="72" y="88" class="title">Backup contract</text>
|
||||
<text x="72" y="124" class="title">начинается со scope</text>
|
||||
<text x="72" y="154" class="subtitle">Учебный путь: archive не равен проверенному restore</text>
|
||||
|
||||
<line x1="360" y1="344" x2="360" y2="386" stroke="#3566c8" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<line x1="360" y1="524" x2="360" y2="566" stroke="#3566c8" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<line x1="360" y1="724" x2="360" y2="766" stroke="#3566c8" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<line x1="360" y1="934" x2="360" y2="976" stroke="#3566c8" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="48" y="220" width="624" height="124" rx="20" fill="#ffffff" stroke="#8ba8e8" stroke-width="3"/>
|
||||
<circle cx="94" cy="282" r="25" fill="#3566c8"/>
|
||||
<text x="87" y="290" fill="#ffffff" font-family="system-ui, sans-serif" font-size="23" font-weight="700">1</text>
|
||||
<text x="140" y="271" class="label">Scope</text>
|
||||
<text x="140" y="304" class="body">catalog + reference</text>
|
||||
<text x="140" y="330" class="note">Роли, tablespaces и внешние файлы названы отдельно</text>
|
||||
|
||||
<rect x="48" y="400" width="624" height="124" rx="20" fill="#ffffff" stroke="#8ba8e8" stroke-width="3"/>
|
||||
<circle cx="94" cy="462" r="25" fill="#3566c8"/>
|
||||
<text x="87" y="470" fill="#ffffff" font-family="system-ui, sans-serif" font-size="23" font-weight="700">2</text>
|
||||
<text x="140" y="451" class="label">Archive</text>
|
||||
<text x="140" y="484" class="body">Логический dump в известном формате</text>
|
||||
<text x="140" y="510" class="note">Имя файла не заменяет описание содержимого</text>
|
||||
|
||||
<rect x="48" y="580" width="624" height="144" rx="20" fill="#ffffff" stroke="#8ba8e8" stroke-width="3"/>
|
||||
<circle cx="94" cy="652" r="25" fill="#3566c8"/>
|
||||
<text x="87" y="660" fill="#ffffff" font-family="system-ui, sans-serif" font-size="23" font-weight="700">3</text>
|
||||
<text x="140" y="635" class="label">Manifest + checksum</text>
|
||||
<text x="140" y="668" class="body">Hash сверяет bytes archive</text>
|
||||
<text x="140" y="696" class="note">Checks заранее называют ожидаемый результат restore</text>
|
||||
|
||||
<rect x="48" y="780" width="624" height="154" rx="20" fill="#ffffff" stroke="#8ba8e8" stroke-width="3"/>
|
||||
<circle cx="94" cy="857" r="25" fill="#3566c8"/>
|
||||
<text x="87" y="865" fill="#ffffff" font-family="system-ui, sans-serif" font-size="23" font-weight="700">4</text>
|
||||
<text x="140" y="840" class="label">Isolated restore</text>
|
||||
<text x="140" y="873" class="body">Только учебный кандидат</text>
|
||||
<text x="140" y="902" class="note">Источник не перезаписывается и не участвует в пробе</text>
|
||||
|
||||
<rect x="48" y="990" width="624" height="154" rx="20" fill="#ffffff" stroke="#5aa37b" stroke-width="3"/>
|
||||
<circle cx="94" cy="1067" r="25" fill="#26734d"/>
|
||||
<text x="87" y="1075" fill="#ffffff" font-family="system-ui, sans-serif" font-size="23" font-weight="700">5</text>
|
||||
<text x="140" y="1050" class="label">Evidence</text>
|
||||
<text x="140" y="1083" class="body">Relations, schema marker, safe counts</text>
|
||||
<text x="140" y="1112" class="note">Verdict фиксирует также непокрытые области</text>
|
||||
|
||||
<text x="48" y="1194" class="note">Checksum подтверждает bytes. Restore checks подтверждают смысл.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.8 KiB |
@@ -1,57 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="720" height="1510" viewBox="0 0 720 1510" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Диагностика учебного restore drill</title>
|
||||
<desc id="desc">Четыре вертикальные карточки связывают симптомы восстановления с причиной, проверкой и безопасным действием: неизвестный scope, несовпавший checksum, не изолированная цель и неверный результат после restore.</desc>
|
||||
<defs>
|
||||
<style>
|
||||
.title { fill: #162e2c; font: 700 34px system-ui, -apple-system, sans-serif; }
|
||||
.subtitle { fill: #46605c; font: 400 21px system-ui, -apple-system, sans-serif; }
|
||||
.number { fill: #ffffff; font: 700 24px system-ui, -apple-system, sans-serif; }
|
||||
.label { fill: #162e2c; font: 700 24px system-ui, -apple-system, sans-serif; }
|
||||
.body { fill: #35514c; font: 400 21px system-ui, -apple-system, sans-serif; }
|
||||
.action { fill: #186043; font: 700 21px system-ui, -apple-system, sans-serif; }
|
||||
.footer { fill: #506a65; font: 400 20px system-ui, -apple-system, sans-serif; }
|
||||
</style>
|
||||
</defs>
|
||||
<rect width="720" height="1510" fill="#f6faf8"/>
|
||||
<rect x="40" y="36" width="640" height="142" rx="24" fill="#dff2ea"/>
|
||||
<text x="72" y="88" class="title">Диагностика drill</text>
|
||||
<text x="72" y="124" class="title">до и после restore</text>
|
||||
<text x="72" y="154" class="subtitle">Симптом не лечим следующей командой без проверки</text>
|
||||
|
||||
<rect x="48" y="220" width="624" height="250" rx="22" fill="#ffffff" stroke="#81bca3" stroke-width="3"/>
|
||||
<circle cx="94" cy="268" r="26" fill="#26734d"/>
|
||||
<text x="86" y="276" class="number">1</text>
|
||||
<text x="140" y="266" class="label">Scope не назван</text>
|
||||
<text x="140" y="302" class="body">Причина: archive выбран по имени,</text>
|
||||
<text x="140" y="330" class="body">а не по требуемому набору объектов.</text>
|
||||
<text x="140" y="370" class="body">Проверка: includes / excludes и archive list.</text>
|
||||
<text x="140" y="418" class="action">Действие: остановить restore, уточнить contract.</text>
|
||||
|
||||
<rect x="48" y="505" width="624" height="250" rx="22" fill="#ffffff" stroke="#81bca3" stroke-width="3"/>
|
||||
<circle cx="94" cy="553" r="26" fill="#26734d"/>
|
||||
<text x="86" y="561" class="number">2</text>
|
||||
<text x="140" y="551" class="label">Checksum не совпал</text>
|
||||
<text x="140" y="587" class="body">Причина: другие или изменённые bytes.</text>
|
||||
<text x="140" y="627" class="body">Проверка: SHA-256 фактического archive.</text>
|
||||
<text x="140" y="675" class="action">Действие: не использовать файл, получить доверенный.</text>
|
||||
|
||||
<rect x="48" y="790" width="624" height="250" rx="22" fill="#ffffff" stroke="#81bca3" stroke-width="3"/>
|
||||
<circle cx="94" cy="838" r="26" fill="#26734d"/>
|
||||
<text x="86" y="846" class="number">3</text>
|
||||
<text x="140" y="836" class="label">Target не изолирован</text>
|
||||
<text x="140" y="872" class="body">Причина: runbook не назвал безопасную цель.</text>
|
||||
<text x="140" y="912" class="body">Проверка: source overwrite запрещён до команды.</text>
|
||||
<text x="140" y="960" class="action">Действие: создать candidate; иначе drill не начинать.</text>
|
||||
|
||||
<rect x="48" y="1075" width="624" height="270" rx="22" fill="#ffffff" stroke="#81bca3" stroke-width="3"/>
|
||||
<circle cx="94" cy="1123" r="26" fill="#26734d"/>
|
||||
<text x="86" y="1131" class="number">4</text>
|
||||
<text x="140" y="1121" class="label">Restore прошёл, checks нет</text>
|
||||
<text x="140" y="1157" class="body">Причина: exit code приняли за evidence.</text>
|
||||
<text x="140" y="1197" class="body">Проверка: relation, schema marker, safe count.</text>
|
||||
<text x="140" y="1245" class="action">Действие: зафиксировать verdict и пробелы scope.</text>
|
||||
|
||||
<rect x="48" y="1372" width="624" height="98" rx="18" fill="#e8f5ef"/>
|
||||
<text x="78" y="1415" class="footer">RPO/RTO требуют отдельного</text>
|
||||
<text x="78" y="1444" class="footer">разрешённого учебного drill.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.4 KiB |
@@ -1,68 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="720" height="1280" viewBox="0 0 720 1280" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Путь учебного восстановления из archive</title>
|
||||
<desc id="desc">Вертикальный путь из шести этапов: scope, archive, checksum, список archive, изолированный кандидат, restore и смысловые проверки. У каждого этапа есть собственная причина остановить путь.</desc>
|
||||
<defs>
|
||||
<marker id="arrow" markerWidth="12" markerHeight="12" refX="6" refY="6" orient="auto">
|
||||
<path d="M1 1 L11 6 L1 11 Z" fill="#8b5b18"/>
|
||||
</marker>
|
||||
<style>
|
||||
.title { fill: #27223a; font: 700 34px system-ui, -apple-system, sans-serif; }
|
||||
.subtitle { fill: #5f5870; font: 400 21px system-ui, -apple-system, sans-serif; }
|
||||
.tag { fill: #8b5b18; font: 700 21px system-ui, -apple-system, sans-serif; }
|
||||
.label { fill: #27223a; font: 700 26px system-ui, -apple-system, sans-serif; }
|
||||
.body { fill: #4e485a; font: 400 22px system-ui, -apple-system, sans-serif; }
|
||||
.note { fill: #675f73; font: 400 20px system-ui, -apple-system, sans-serif; }
|
||||
</style>
|
||||
</defs>
|
||||
<rect width="720" height="1280" fill="#fbfaf7"/>
|
||||
<rect x="40" y="36" width="640" height="142" rx="24" fill="#fff2d8"/>
|
||||
<text x="72" y="88" class="title">Restore path</text>
|
||||
<text x="72" y="124" class="title">с остановками по пути</text>
|
||||
<text x="72" y="154" class="subtitle">Каждый gate исключает один класс неверного действия</text>
|
||||
|
||||
<line x1="116" y1="247" x2="116" y2="1105" stroke="#d8b26f" stroke-width="8" stroke-linecap="round"/>
|
||||
|
||||
<circle cx="116" cy="248" r="30" fill="#8b5b18"/>
|
||||
<text x="106" y="256" fill="#ffffff" font-family="system-ui, sans-serif" font-size="22" font-weight="700">1</text>
|
||||
<rect x="170" y="194" width="500" height="110" rx="18" fill="#ffffff" stroke="#d8b26f" stroke-width="3"/>
|
||||
<text x="204" y="235" class="label">Прочитать scope</text>
|
||||
<text x="204" y="268" class="body">Что включено и что исключено?</text>
|
||||
<text x="204" y="292" class="note">Нет scope — нет разрешения на restore</text>
|
||||
|
||||
<circle cx="116" cy="420" r="30" fill="#8b5b18"/>
|
||||
<text x="106" y="428" fill="#ffffff" font-family="system-ui, sans-serif" font-size="22" font-weight="700">2</text>
|
||||
<rect x="170" y="366" width="500" height="110" rx="18" fill="#ffffff" stroke="#d8b26f" stroke-width="3"/>
|
||||
<text x="204" y="407" class="label">Сверить checksum</text>
|
||||
<text x="204" y="440" class="body">Manifest и фактические bytes</text>
|
||||
<text x="204" y="464" class="note">Не совпали — archive не используем</text>
|
||||
|
||||
<circle cx="116" cy="592" r="30" fill="#8b5b18"/>
|
||||
<text x="106" y="600" fill="#ffffff" font-family="system-ui, sans-serif" font-size="22" font-weight="700">3</text>
|
||||
<rect x="170" y="538" width="500" height="110" rx="18" fill="#ffffff" stroke="#d8b26f" stroke-width="3"/>
|
||||
<text x="204" y="579" class="label">Прочитать archive list</text>
|
||||
<text x="204" y="612" class="body">Expected relations присутствуют?</text>
|
||||
<text x="204" y="636" class="note">Нет — исправляем creation path</text>
|
||||
|
||||
<circle cx="116" cy="764" r="30" fill="#8b5b18"/>
|
||||
<text x="106" y="772" fill="#ffffff" font-family="system-ui, sans-serif" font-size="22" font-weight="700">4</text>
|
||||
<rect x="170" y="710" width="500" height="110" rx="18" fill="#ffffff" stroke="#d8b26f" stroke-width="3"/>
|
||||
<text x="204" y="751" class="label">Подтвердить candidate</text>
|
||||
<text x="204" y="784" class="body">Изолирован и не является источником</text>
|
||||
<text x="204" y="808" class="note">Нет — drill корректно останавливается</text>
|
||||
|
||||
<circle cx="116" cy="936" r="30" fill="#8b5b18"/>
|
||||
<text x="106" y="944" fill="#ffffff" font-family="system-ui, sans-serif" font-size="22" font-weight="700">5</text>
|
||||
<rect x="170" y="882" width="500" height="110" rx="18" fill="#ffffff" stroke="#d8b26f" stroke-width="3"/>
|
||||
<text x="204" y="923" class="label">Выполнить restore</text>
|
||||
<text x="204" y="956" class="body">Только в этот candidate</text>
|
||||
<text x="204" y="980" class="note">Exit code не становится финальным verdict</text>
|
||||
|
||||
<circle cx="116" cy="1108" r="30" fill="#26734d"/>
|
||||
<text x="106" y="1116" fill="#ffffff" font-family="system-ui, sans-serif" font-size="22" font-weight="700">6</text>
|
||||
<rect x="170" y="1054" width="500" height="118" rx="18" fill="#ffffff" stroke="#69af87" stroke-width="3"/>
|
||||
<text x="204" y="1095" class="label">Собрать evidence</text>
|
||||
<text x="204" y="1128" class="body">Relations, marker, safe counts</text>
|
||||
<text x="204" y="1152" class="note">И отдельно: что этот drill не проверял</text>
|
||||
|
||||
<text x="48" y="1230" class="tag">Правило: не перескакивать через gate ради «быстрого» restore.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.1 KiB |
@@ -1,48 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1260" width="720" height="1260" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Контракт минимального CI/CD pipeline</title>
|
||||
<desc id="desc">Вертикальная схема показывает путь от commit и lockfile через проверку и одну сборку к артефакту. Ручной deploy читает только артефакт и останавливается до доставки при несовпадении revision или checksum.</desc>
|
||||
<rect width="720" height="1260" fill="#0d1b2a" rx="28"/>
|
||||
<text x="56" y="72" fill="#f8fafc" font-family="Arial, sans-serif" font-size="34" font-weight="700">Минимальный pipeline</text>
|
||||
<text x="56" y="108" fill="#a5d8ff" font-family="Arial, sans-serif" font-size="22">один результат · одна точка остановки</text>
|
||||
|
||||
<rect x="48" y="148" width="624" height="132" rx="20" fill="#17324d" stroke="#4dabf7" stroke-width="2"/>
|
||||
<text x="80" y="194" fill="#93c5fd" font-family="Arial, sans-serif" font-size="22" font-weight="700">ВХОД</text>
|
||||
<text x="80" y="232" fill="#f8fafc" font-family="Arial, sans-serif" font-size="28" font-weight="700">commit + lockfile</text>
|
||||
<text x="80" y="262" fill="#cbd5e1" font-family="Arial, sans-serif" font-size="21">код и зафиксированные зависимости</text>
|
||||
|
||||
<path d="M360 290v42" stroke="#4dabf7" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M346 320l14 16 14-16" fill="none" stroke="#4dabf7" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
|
||||
<rect x="48" y="350" width="624" height="148" rx="20" fill="#123b34" stroke="#51cf66" stroke-width="2"/>
|
||||
<text x="80" y="396" fill="#86efac" font-family="Arial, sans-serif" font-size="22" font-weight="700">VERIFY</text>
|
||||
<text x="80" y="434" fill="#f8fafc" font-family="Arial, sans-serif" font-size="28" font-weight="700">npm ci · lint · test</text>
|
||||
<text x="80" y="468" fill="#cbd5e1" font-family="Arial, sans-serif" font-size="21">сбой = не начинать build</text>
|
||||
|
||||
<path d="M360 508v42" stroke="#51cf66" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M346 538l14 16 14-16" fill="none" stroke="#51cf66" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
|
||||
<rect x="48" y="568" width="624" height="170" rx="20" fill="#3b2d15" stroke="#fbbf24" stroke-width="2"/>
|
||||
<text x="80" y="614" fill="#fde68a" font-family="Arial, sans-serif" font-size="22" font-weight="700">BUILD — ЕДИНСТВЕННЫЙ ВЛАДЕЛЕЦ OUTPUT</text>
|
||||
<text x="80" y="654" fill="#f8fafc" font-family="Arial, sans-serif" font-size="28" font-weight="700">dist/ + REVISION</text>
|
||||
<text x="80" y="690" fill="#f8fafc" font-family="Arial, sans-serif" font-size="28" font-weight="700">+ SHA256SUMS</text>
|
||||
<text x="80" y="720" fill="#cbd5e1" font-family="Arial, sans-serif" font-size="21">в artifact попадает готовый каталог</text>
|
||||
|
||||
<path d="M360 748v42" stroke="#fbbf24" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M346 778l14 16 14-16" fill="none" stroke="#fbbf24" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
|
||||
<rect x="48" y="808" width="624" height="144" rx="20" fill="#33285c" stroke="#c4b5fd" stroke-width="2"/>
|
||||
<text x="80" y="854" fill="#ddd6fe" font-family="Arial, sans-serif" font-size="22" font-weight="700">ARTIFACT</text>
|
||||
<text x="80" y="892" fill="#f8fafc" font-family="Arial, sans-serif" font-size="28" font-weight="700">ровно результат build</text>
|
||||
<text x="80" y="922" fill="#cbd5e1" font-family="Arial, sans-serif" font-size="21">не cache и не повторная сборка</text>
|
||||
|
||||
<path d="M360 962v42" stroke="#c4b5fd" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M346 992l14 16 14-16" fill="none" stroke="#c4b5fd" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
|
||||
<rect x="48" y="1022" width="624" height="164" rx="20" fill="#4a1d2a" stroke="#fb7185" stroke-width="2"/>
|
||||
<text x="80" y="1068" fill="#fecdd3" font-family="Arial, sans-serif" font-size="22" font-weight="700">DEPLOY — MANUAL</text>
|
||||
<text x="80" y="1106" fill="#f8fafc" font-family="Arial, sans-serif" font-size="28" font-weight="700">читает только artifact</text>
|
||||
<text x="80" y="1140" fill="#cbd5e1" font-family="Arial, sans-serif" font-size="21">revision + checksum → delivery</text>
|
||||
<text x="80" y="1172" fill="#fda4af" font-family="Arial, sans-serif" font-size="21" font-weight="700">несовпадение → STOP до сети</text>
|
||||
|
||||
<text x="360" y="1228" text-anchor="middle" fill="#94a3b8" font-family="Arial, sans-serif" font-size="21">Cache ускоряет install. Cache ≠ релизный результат.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.7 KiB |
@@ -1,46 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1280" width="720" height="1280" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Диагностика deploy до внешнего действия</title>
|
||||
<desc id="desc">Вертикальный маршрут показывает, как перед deploy проверить, что job получил артефакт build, что revision и контрольные суммы совпадают и что обязательный файл существует. При отрицательном ответе pipeline останавливается до команды доставки.</desc>
|
||||
<rect width="720" height="1280" fill="#111827" rx="28"/>
|
||||
<text x="56" y="72" fill="#f8fafc" font-family="Arial, sans-serif" font-size="34" font-weight="700">Где остановить deploy</text>
|
||||
<text x="56" y="108" fill="#a5d8ff" font-family="Arial, sans-serif" font-size="22">сначала факт, затем действие</text>
|
||||
|
||||
<rect x="48" y="150" width="624" height="168" rx="20" fill="#17324d" stroke="#60a5fa" stroke-width="2"/>
|
||||
<text x="80" y="196" fill="#bfdbfe" font-family="Arial, sans-serif" font-size="22" font-weight="700">1. ИСТОЧНИК</text>
|
||||
<text x="80" y="236" fill="#f8fafc" font-family="Arial, sans-serif" font-size="27" font-weight="700">deploy получил artifact build?</text>
|
||||
<text x="80" y="270" fill="#cbd5e1" font-family="Arial, sans-serif" font-size="21">нет → исправить dependencies, не пересобирать</text>
|
||||
|
||||
<path d="M360 330v36" stroke="#60a5fa" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M346 354l14 16 14-16" fill="none" stroke="#60a5fa" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
|
||||
<rect x="48" y="384" width="624" height="168" rx="20" fill="#33285c" stroke="#c4b5fd" stroke-width="2"/>
|
||||
<text x="80" y="430" fill="#ddd6fe" font-family="Arial, sans-serif" font-size="22" font-weight="700">2. REVISION</text>
|
||||
<text x="80" y="470" fill="#f8fafc" font-family="Arial, sans-serif" font-size="27" font-weight="700">REVISION = CI_COMMIT_SHA?</text>
|
||||
<text x="80" y="504" fill="#cbd5e1" font-family="Arial, sans-serif" font-size="21">нет → STOP: каталог не принадлежит запуску</text>
|
||||
|
||||
<path d="M360 564v36" stroke="#c4b5fd" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M346 588l14 16 14-16" fill="none" stroke="#c4b5fd" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
|
||||
<rect x="48" y="618" width="624" height="168" rx="20" fill="#3b2d15" stroke="#fbbf24" stroke-width="2"/>
|
||||
<text x="80" y="664" fill="#fde68a" font-family="Arial, sans-serif" font-size="22" font-weight="700">3. MANIFEST</text>
|
||||
<text x="80" y="704" fill="#f8fafc" font-family="Arial, sans-serif" font-size="27" font-weight="700">SHA256SUMS сходится?</text>
|
||||
<text x="80" y="738" fill="#cbd5e1" font-family="Arial, sans-serif" font-size="21">нет → STOP: расследовать состав artifact</text>
|
||||
|
||||
<path d="M360 798v36" stroke="#fbbf24" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M346 822l14 16 14-16" fill="none" stroke="#fbbf24" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
|
||||
<rect x="48" y="852" width="624" height="168" rx="20" fill="#123b34" stroke="#4ade80" stroke-width="2"/>
|
||||
<text x="80" y="898" fill="#bbf7d0" font-family="Arial, sans-serif" font-size="22" font-weight="700">4. ОБЯЗАТЕЛЬНЫЙ ФАЙЛ</text>
|
||||
<text x="80" y="938" fill="#f8fafc" font-family="Arial, sans-serif" font-size="27" font-weight="700">index.html существует?</text>
|
||||
<text x="80" y="972" fill="#cbd5e1" font-family="Arial, sans-serif" font-size="21">нет → STOP: build не выполнил контракт</text>
|
||||
|
||||
<path d="M360 1032v36" stroke="#4ade80" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M346 1056l14 16 14-16" fill="none" stroke="#4ade80" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
|
||||
<rect x="48" y="1086" width="624" height="126" rx="20" fill="#4a1d2a" stroke="#fb7185" stroke-width="2"/>
|
||||
<text x="80" y="1132" fill="#fecdd3" font-family="Arial, sans-serif" font-size="22" font-weight="700">5. MANUAL GATE</text>
|
||||
<text x="80" y="1172" fill="#f8fafc" font-family="Arial, sans-serif" font-size="27" font-weight="700">только теперь → delivery</text>
|
||||
<text x="80" y="1202" fill="#fda4af" font-family="Arial, sans-serif" font-size="20">все STOP находятся до сетевого вызова</text>
|
||||
|
||||
<text x="360" y="1254" text-anchor="middle" fill="#94a3b8" font-family="Arial, sans-serif" font-size="21">Retry не заменяет объяснение происхождения файла.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.7 KiB |
@@ -1,55 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1260" width="720" height="1260" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Выпускные gate минимального CI/CD pipeline</title>
|
||||
<desc id="desc">Вертикальная схема показывает четыре контрольные точки: установка из lockfile, проверка кода, одна сборка с артефактом и ручной deploy с проверкой revision и checksum. Любой отрицательный результат останавливает следующий шаг.</desc>
|
||||
<rect width="720" height="1260" fill="#101827" rx="28"/>
|
||||
<text x="56" y="72" fill="#f8fafc" font-family="Arial, sans-serif" font-size="34" font-weight="700">Выпускные gate</text>
|
||||
<text x="56" y="108" fill="#a5d8ff" font-family="Arial, sans-serif" font-size="22">каждый отвечает на один вопрос</text>
|
||||
|
||||
<rect x="48" y="154" width="624" height="176" rx="20" fill="#17324d" stroke="#60a5fa" stroke-width="2"/>
|
||||
<circle cx="96" cy="204" r="25" fill="#2563eb"/>
|
||||
<text x="96" y="212" text-anchor="middle" fill="#fff" font-family="Arial, sans-serif" font-size="22" font-weight="700">1</text>
|
||||
<text x="140" y="204" fill="#bfdbfe" font-family="Arial, sans-serif" font-size="22" font-weight="700">INSTALL</text>
|
||||
<text x="80" y="250" fill="#f8fafc" font-family="Arial, sans-serif" font-size="27" font-weight="700">lockfile совпадает?</text>
|
||||
<text x="80" y="284" fill="#cbd5e1" font-family="Arial, sans-serif" font-size="21">npm ci либо создаёт среду, либо останавливает job</text>
|
||||
<rect x="510" y="184" width="126" height="42" rx="21" fill="#4a1d2a"/>
|
||||
<text x="573" y="212" text-anchor="middle" fill="#fda4af" font-family="Arial, sans-serif" font-size="20" font-weight="700">FAIL → STOP</text>
|
||||
|
||||
<path d="M360 342v40" stroke="#60a5fa" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M346 370l14 16 14-16" fill="none" stroke="#60a5fa" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
|
||||
<rect x="48" y="400" width="624" height="176" rx="20" fill="#123b34" stroke="#4ade80" stroke-width="2"/>
|
||||
<circle cx="96" cy="450" r="25" fill="#16a34a"/>
|
||||
<text x="96" y="458" text-anchor="middle" fill="#fff" font-family="Arial, sans-serif" font-size="22" font-weight="700">2</text>
|
||||
<text x="140" y="450" fill="#bbf7d0" font-family="Arial, sans-serif" font-size="22" font-weight="700">VERIFY</text>
|
||||
<text x="80" y="496" fill="#f8fafc" font-family="Arial, sans-serif" font-size="27" font-weight="700">lint и test прошли?</text>
|
||||
<text x="80" y="530" fill="#cbd5e1" font-family="Arial, sans-serif" font-size="21">один exit code не обещает поведение на стенде</text>
|
||||
<rect x="510" y="430" width="126" height="42" rx="21" fill="#4a1d2a"/>
|
||||
<text x="573" y="458" text-anchor="middle" fill="#fda4af" font-family="Arial, sans-serif" font-size="20" font-weight="700">FAIL → STOP</text>
|
||||
|
||||
<path d="M360 588v40" stroke="#4ade80" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M346 616l14 16 14-16" fill="none" stroke="#4ade80" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
|
||||
<rect x="48" y="646" width="624" height="182" rx="20" fill="#3b2d15" stroke="#fbbf24" stroke-width="2"/>
|
||||
<circle cx="96" cy="696" r="25" fill="#d97706"/>
|
||||
<text x="96" y="704" text-anchor="middle" fill="#fff" font-family="Arial, sans-serif" font-size="22" font-weight="700">3</text>
|
||||
<text x="140" y="696" fill="#fde68a" font-family="Arial, sans-serif" font-size="22" font-weight="700">BUILD</text>
|
||||
<text x="80" y="742" fill="#f8fafc" font-family="Arial, sans-serif" font-size="27" font-weight="700">есть один dist/ artifact?</text>
|
||||
<text x="80" y="776" fill="#cbd5e1" font-family="Arial, sans-serif" font-size="21">REVISION + SHA256SUMS дают проверяемый состав</text>
|
||||
<rect x="510" y="676" width="126" height="42" rx="21" fill="#4a1d2a"/>
|
||||
<text x="573" y="704" text-anchor="middle" fill="#fda4af" font-family="Arial, sans-serif" font-size="20" font-weight="700">FAIL → STOP</text>
|
||||
|
||||
<path d="M360 840v40" stroke="#fbbf24" stroke-width="6" stroke-linecap="round"/>
|
||||
<path d="M346 868l14 16 14-16" fill="none" stroke="#fbbf24" stroke-width="6" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
|
||||
<rect x="48" y="898" width="624" height="224" rx="20" fill="#4a1d2a" stroke="#fb7185" stroke-width="2"/>
|
||||
<circle cx="96" cy="948" r="25" fill="#e11d48"/>
|
||||
<text x="96" y="956" text-anchor="middle" fill="#fff" font-family="Arial, sans-serif" font-size="22" font-weight="700">4</text>
|
||||
<text x="140" y="948" fill="#fecdd3" font-family="Arial, sans-serif" font-size="22" font-weight="700">DEPLOY — MANUAL</text>
|
||||
<text x="80" y="994" fill="#f8fafc" font-family="Arial, sans-serif" font-size="27" font-weight="700">revision и checksum совпали?</text>
|
||||
<text x="80" y="1028" fill="#cbd5e1" font-family="Arial, sans-serif" font-size="21">job читает artifact build, не checkout и не cache</text>
|
||||
<text x="80" y="1064" fill="#fda4af" font-family="Arial, sans-serif" font-size="22" font-weight="700">нет → остановить до delivery-script</text>
|
||||
<rect x="80" y="1080" width="560" height="1" fill="#fb7185" opacity="0.6"/>
|
||||
<text x="80" y="1110" fill="#f8fafc" font-family="Arial, sans-serif" font-size="21">да → оператор вручную разрешает staging-доставку</text>
|
||||
|
||||
<text x="360" y="1198" text-anchor="middle" fill="#94a3b8" font-family="Arial, sans-serif" font-size="21">Зелёный предыдущий job не пропускает следующий gate.</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.6 KiB |
@@ -1,37 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1220" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Граница между настройкой и секретом</title>
|
||||
<desc id="desc">Вертикальная схема показывает четыре поверхности: репозиторий хранит имена и шаблон, delivery передаёт значение отдельно, runtime валидирует его, а лог получает только маску.</desc>
|
||||
<rect width="720" height="1220" rx="32" fill="#f8fafc"/>
|
||||
<text x="360" y="58" text-anchor="middle" font-family="Arial, sans-serif" font-size="30" font-weight="700" fill="#172033">Граница настройки и секрета</text>
|
||||
<text x="360" y="92" text-anchor="middle" font-family="Arial, sans-serif" font-size="22" fill="#475569">У каждого значения — свой допустимый носитель</text>
|
||||
<g font-family="Arial, sans-serif">
|
||||
<rect x="58" y="140" width="604" height="178" rx="24" fill="#e0f2fe" stroke="#38bdf8" stroke-width="3"/>
|
||||
<text x="94" y="188" font-size="28" font-weight="700" fill="#0c4a6e">1. Репозиторий</text>
|
||||
<text x="94" y="232" font-size="22" fill="#0c4a6e">Имена, описание, шаблон</text>
|
||||
<text x="94" y="266" font-size="22" fill="#0c4a6e">Только фиктивные defaults</text>
|
||||
<text x="94" y="296" font-size="20" fill="#075985">Секрет сюда не попадает</text>
|
||||
<path d="M360 318 L360 374" stroke="#64748b" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<rect x="58" y="386" width="604" height="178" rx="24" fill="#dcfce7" stroke="#4ade80" stroke-width="3"/>
|
||||
<text x="94" y="434" font-size="28" font-weight="700" fill="#14532d">2. Delivery</text>
|
||||
<text x="94" y="478" font-size="22" fill="#14532d">Защищённая переменная или файл</text>
|
||||
<text x="94" y="512" font-size="22" fill="#14532d">Есть владелец смены</text>
|
||||
<text x="94" y="542" font-size="20" fill="#166534">Не печатаем value в job</text>
|
||||
<path d="M360 564 L360 620" stroke="#64748b" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<rect x="58" y="632" width="604" height="178" rx="24" fill="#fef3c7" stroke="#fbbf24" stroke-width="3"/>
|
||||
<text x="94" y="680" font-size="28" font-weight="700" fill="#78350f">3. Runtime</text>
|
||||
<text x="94" y="724" font-size="22" fill="#78350f">Loader проверяет обязательные имена</text>
|
||||
<text x="94" y="758" font-size="22" fill="#78350f">Процесс получает нужное значение</text>
|
||||
<text x="94" y="788" font-size="20" fill="#92400e">Пустой ключ останавливает запуск</text>
|
||||
<path d="M360 810 L360 866" stroke="#64748b" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<rect x="58" y="878" width="604" height="178" rx="24" fill="#fae8ff" stroke="#e879f9" stroke-width="3"/>
|
||||
<text x="94" y="926" font-size="28" font-weight="700" fill="#701a75">4. Лог и поддержка</text>
|
||||
<text x="94" y="970" font-size="22" fill="#701a75">Имя переменной и request ID</text>
|
||||
<text x="94" y="1004" font-size="22" fill="#701a75">Значение заменено на [REDACTED]</text>
|
||||
<text x="94" y="1034" font-size="20" fill="#86198f">Диагностика без копии секрета</text>
|
||||
</g>
|
||||
<rect x="58" y="1100" width="604" height="66" rx="16" fill="#e2e8f0"/>
|
||||
<text x="360" y="1140" text-anchor="middle" font-family="Arial, sans-serif" font-size="22" font-weight="700" fill="#334155">Секрет нужен процессу, а не всем артефактам</text>
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto"><path d="M0 0 L10 5 L0 10 Z" fill="#64748b"/></marker>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.9 KiB |
@@ -1,37 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1260" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Путь конфигурации до работающего процесса</title>
|
||||
<desc id="desc">Вертикальная схема проводит настройку от шаблона в репозитории через delivery и loader до runtime, оставляя в диагностике только безопасный отчёт.</desc>
|
||||
<rect width="720" height="1260" rx="32" fill="#f8fafc"/>
|
||||
<text x="360" y="58" text-anchor="middle" font-family="Arial, sans-serif" font-size="30" font-weight="700" fill="#172033">Путь настройки до процесса</text>
|
||||
<text x="360" y="92" text-anchor="middle" font-family="Arial, sans-serif" font-size="22" fill="#475569">Сборка и запуск не получают одинаковый набор данных</text>
|
||||
<g font-family="Arial, sans-serif">
|
||||
<rect x="58" y="140" width="604" height="164" rx="24" fill="#e0f2fe" stroke="#38bdf8" stroke-width="3"/>
|
||||
<text x="94" y="188" font-size="28" font-weight="700" fill="#0c4a6e">Версия в Git</text>
|
||||
<text x="94" y="232" font-size="22" fill="#0c4a6e">config.example.env</text>
|
||||
<text x="94" y="266" font-size="22" fill="#0c4a6e">Имена и безопасные defaults</text>
|
||||
<path d="M360 304 L360 352" stroke="#64748b" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<rect x="58" y="364" width="604" height="164" rx="24" fill="#dcfce7" stroke="#4ade80" stroke-width="3"/>
|
||||
<text x="94" y="412" font-size="28" font-weight="700" fill="#14532d">Delivery контур</text>
|
||||
<text x="94" y="456" font-size="22" fill="#14532d">Подаёт требуемые значения</text>
|
||||
<text x="94" y="490" font-size="22" fill="#14532d">Не выводит token в журнал</text>
|
||||
<path d="M360 528 L360 576" stroke="#64748b" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<rect x="58" y="588" width="604" height="164" rx="24" fill="#fef3c7" stroke="#fbbf24" stroke-width="3"/>
|
||||
<text x="94" y="636" font-size="28" font-weight="700" fill="#78350f">Config loader</text>
|
||||
<text x="94" y="680" font-size="22" fill="#78350f">Проверяет имена и формат</text>
|
||||
<text x="94" y="714" font-size="22" fill="#78350f">Отказывает до первого запроса</text>
|
||||
<path d="M360 752 L360 800" stroke="#64748b" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<rect x="58" y="812" width="604" height="164" rx="24" fill="#fae8ff" stroke="#e879f9" stroke-width="3"/>
|
||||
<text x="94" y="860" font-size="28" font-weight="700" fill="#701a75">Рабочий процесс</text>
|
||||
<text x="94" y="904" font-size="22" fill="#701a75">Получает явный config object</text>
|
||||
<text x="94" y="938" font-size="22" fill="#701a75">Не читает process.env повсюду</text>
|
||||
<path d="M360 976 L360 1024" stroke="#64748b" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<rect x="58" y="1036" width="604" height="142" rx="24" fill="#ede9fe" stroke="#a78bfa" stroke-width="3"/>
|
||||
<text x="94" y="1084" font-size="28" font-weight="700" fill="#4c1d95">Безопасный отчёт</text>
|
||||
<text x="94" y="1128" font-size="22" fill="#4c1d95">Имя, revision, [REDACTED]</text>
|
||||
</g>
|
||||
<rect x="58" y="1202" width="604" height="38" rx="12" fill="#e2e8f0"/>
|
||||
<text x="360" y="1228" text-anchor="middle" font-family="Arial, sans-serif" font-size="20" font-weight="700" fill="#334155">Секрет не должен стать входом сборки или лога</text>
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto"><path d="M0 0 L10 5 L0 10 Z" fill="#64748b"/></marker>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.7 KiB |
@@ -1,38 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1300" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Маршрут ротации утёкшего секрета</title>
|
||||
<desc id="desc">Вертикальная схема показывает, что после обнаружения утечки команда ограничивает распространение, создаёт замену, обновляет потребителей, отзывает старое значение и только затем закрывает follow-up.</desc>
|
||||
<rect width="720" height="1300" rx="32" fill="#f8fafc"/>
|
||||
<text x="360" y="58" text-anchor="middle" font-family="Arial, sans-serif" font-size="30" font-weight="700" fill="#172033">Ротация без ложного исправления</text>
|
||||
<text x="360" y="92" text-anchor="middle" font-family="Arial, sans-serif" font-size="22" fill="#475569">Удалить строку недостаточно, пока старая пара активна</text>
|
||||
<g font-family="Arial, sans-serif">
|
||||
<rect x="58" y="140" width="604" height="156" rx="24" fill="#fee2e2" stroke="#f87171" stroke-width="3"/>
|
||||
<text x="94" y="188" font-size="28" font-weight="700" fill="#7f1d1d">1. Обнаружить</text>
|
||||
<text x="94" y="232" font-size="22" fill="#7f1d1d">ID incident, имя, носитель</text>
|
||||
<text x="94" y="264" font-size="20" fill="#991b1b">Не копировать value в issue</text>
|
||||
<path d="M360 296 L360 340" stroke="#64748b" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<rect x="58" y="352" width="604" height="156" rx="24" fill="#fef3c7" stroke="#fbbf24" stroke-width="3"/>
|
||||
<text x="94" y="400" font-size="28" font-weight="700" fill="#78350f">2. Ограничить</text>
|
||||
<text x="94" y="444" font-size="22" fill="#78350f">Остановить новый вывод в лог</text>
|
||||
<text x="94" y="476" font-size="20" fill="#92400e">Собрать consumers по имени</text>
|
||||
<path d="M360 508 L360 552" stroke="#64748b" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<rect x="58" y="564" width="604" height="156" rx="24" fill="#dcfce7" stroke="#4ade80" stroke-width="3"/>
|
||||
<text x="94" y="612" font-size="28" font-weight="700" fill="#14532d">3. Заменить</text>
|
||||
<text x="94" y="656" font-size="22" fill="#14532d">Новая пара через delivery</text>
|
||||
<text x="94" y="688" font-size="20" fill="#166534">Проверить каждого consumer</text>
|
||||
<path d="M360 720 L360 764" stroke="#64748b" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<rect x="58" y="776" width="604" height="156" rx="24" fill="#e0f2fe" stroke="#38bdf8" stroke-width="3"/>
|
||||
<text x="94" y="824" font-size="28" font-weight="700" fill="#0c4a6e">4. Отозвать старое</text>
|
||||
<text x="94" y="868" font-size="22" fill="#0c4a6e">После проверки или окна простоя</text>
|
||||
<text x="94" y="900" font-size="20" fill="#075985">Фиксировать время revoke</text>
|
||||
<path d="M360 932 L360 976" stroke="#64748b" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<rect x="58" y="988" width="604" height="156" rx="24" fill="#fae8ff" stroke="#e879f9" stroke-width="3"/>
|
||||
<text x="94" y="1036" font-size="28" font-weight="700" fill="#701a75">5. Проверить следы</text>
|
||||
<text x="94" y="1080" font-size="22" fill="#701a75">Git, image, job, diagnostic path</text>
|
||||
<text x="94" y="1112" font-size="20" fill="#86198f">Добавить redaction test</text>
|
||||
</g>
|
||||
<rect x="58" y="1190" width="604" height="62" rx="16" fill="#e2e8f0"/>
|
||||
<text x="360" y="1228" text-anchor="middle" font-family="Arial, sans-serif" font-size="22" font-weight="700" fill="#334155">Cleanup не заменяет revoke</text>
|
||||
<defs>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="8" markerHeight="8" orient="auto"><path d="M0 0 L10 5 L0 10 Z" fill="#64748b"/></marker>
|
||||
</defs>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 3.9 KiB |
@@ -1,51 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1200" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Маршрут безопасного чистого локального запуска Docker</title>
|
||||
<desc id="desc">Вертикальная схема показывает четыре шага: зафиксировать Compose config и логи, классифицировать старое состояние, изменить только выбранный слой и повторить один контрольный маршрут.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" x2="1" y1="0" y2="1">
|
||||
<stop stop-color="#20203c"/>
|
||||
<stop offset="1" stop-color="#303154"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
||||
<path d="M 0 0 L 10 5 L 0 10 z" fill="#a5b4fc"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="720" height="1200" rx="36" fill="url(#background)"/>
|
||||
<text x="56" y="72" fill="#f8fafc" font-family="Arial, sans-serif" font-size="32" font-weight="700">Чистый запуск = эксперимент</text>
|
||||
<text x="56" y="108" fill="#d7ddff" font-family="Arial, sans-serif" font-size="21">Удаляем только подтверждённый след</text>
|
||||
|
||||
<rect x="56" y="154" width="608" height="174" rx="20" fill="#263d63" stroke="#93c5fd" stroke-width="2"/>
|
||||
<circle cx="104" cy="204" r="23" fill="#bfdbfe"/>
|
||||
<text x="97" y="212" fill="#172554" font-family="Arial, sans-serif" font-size="22" font-weight="700">1</text>
|
||||
<text x="148" y="206" fill="#ffffff" font-family="Arial, sans-serif" font-size="27" font-weight="700">Снимок до изменения</text>
|
||||
<text x="88" y="252" fill="#dbeafe" font-family="Arial, sans-serif" font-size="20">config · ps · короткие логи</text>
|
||||
<text x="88" y="286" fill="#dbeafe" font-family="Arial, sans-serif" font-size="20">имя локального проекта</text>
|
||||
|
||||
<path d="M360 328 V388" stroke="#a5b4fc" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="56" y="406" width="608" height="184" rx="20" fill="#3d365c" stroke="#c4b5fd" stroke-width="2"/>
|
||||
<circle cx="104" cy="456" r="23" fill="#ddd6fe"/>
|
||||
<text x="97" y="464" fill="#312e81" font-family="Arial, sans-serif" font-size="22" font-weight="700">2</text>
|
||||
<text x="148" y="458" fill="#ffffff" font-family="Arial, sans-serif" font-size="27" font-weight="700">Назвать старый слой</text>
|
||||
<text x="88" y="504" fill="#ede9fe" font-family="Arial, sans-serif" font-size="20">container · image · bind mount</text>
|
||||
<text x="88" y="538" fill="#ede9fe" font-family="Arial, sans-serif" font-size="20">или named volume базы</text>
|
||||
|
||||
<path d="M360 590 V650" stroke="#a5b4fc" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="56" y="668" width="608" height="194" rx="20" fill="#4b3f5f" stroke="#f0abfc" stroke-width="2"/>
|
||||
<circle cx="104" cy="718" r="23" fill="#f5d0fe"/>
|
||||
<text x="97" y="726" fill="#701a75" font-family="Arial, sans-serif" font-size="22" font-weight="700">3</text>
|
||||
<text x="148" y="720" fill="#ffffff" font-family="Arial, sans-serif" font-size="27" font-weight="700">Ограниченное действие</text>
|
||||
<text x="88" y="766" fill="#fae8ff" font-family="Arial, sans-serif" font-size="20">пересобрать web или очистить</text>
|
||||
<text x="88" y="800" fill="#fae8ff" font-family="Arial, sans-serif" font-size="20">только подтверждённый volume</text>
|
||||
<text x="88" y="834" fill="#fde68a" font-family="Arial, sans-serif" font-size="19">данные сначала сохранить или исключить</text>
|
||||
|
||||
<path d="M360 862 V922" stroke="#a5b4fc" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="56" y="940" width="608" height="178" rx="20" fill="#294953" stroke="#5eead4" stroke-width="2"/>
|
||||
<circle cx="104" cy="990" r="23" fill="#99f6e4"/>
|
||||
<text x="97" y="998" fill="#134e4a" font-family="Arial, sans-serif" font-size="22" font-weight="700">4</text>
|
||||
<text x="148" y="992" fill="#ffffff" font-family="Arial, sans-serif" font-size="27" font-weight="700">Повторить один маршрут</text>
|
||||
<text x="88" y="1038" fill="#d1fae5" font-family="Arial, sans-serif" font-size="20">миграция, endpoint или лог</text>
|
||||
<text x="88" y="1072" fill="#d1fae5" font-family="Arial, sans-serif" font-size="20">и зафиксировать вывод</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.4 KiB |
@@ -1,48 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1180" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Локальное Docker-окружение: код, контейнеры, тома и внутренняя сеть</title>
|
||||
<desc id="desc">Вертикальная схема показывает рабочую копию на хосте, bind mount в контейнер web, отдельный named volume для node_modules, сеть Compose с сервисом db и named volume PostgreSQL.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" x2="1" y1="0" y2="1">
|
||||
<stop stop-color="#0f1f36"/>
|
||||
<stop offset="1" stop-color="#142b47"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
||||
<path d="M 0 0 L 10 5 L 0 10 z" fill="#7dd3fc"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="720" height="1180" rx="36" fill="url(#background)"/>
|
||||
<text x="56" y="72" fill="#f8fafc" font-family="Arial, sans-serif" font-size="32" font-weight="700">Локальный контракт</text>
|
||||
<text x="56" y="108" fill="#b9d5e9" font-family="Arial, sans-serif" font-size="21">Код, зависимости, данные и сеть — разные слои</text>
|
||||
|
||||
<rect x="56" y="156" width="608" height="150" rx="20" fill="#183b5a" stroke="#72d4ff" stroke-width="2"/>
|
||||
<text x="88" y="208" fill="#9ee7ff" font-family="Arial, sans-serif" font-size="21" font-weight="700">ХОСТ</text>
|
||||
<text x="88" y="248" fill="#ffffff" font-family="Arial, sans-serif" font-size="28" font-weight="700">Рабочая копия</text>
|
||||
<text x="88" y="280" fill="#d6e8f5" font-family="Arial, sans-serif" font-size="20">исходники и редактор</text>
|
||||
|
||||
<path d="M360 306 V374" stroke="#7dd3fc" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<text x="386" y="350" fill="#b9d5e9" font-family="Arial, sans-serif" font-size="20">bind mount</text>
|
||||
|
||||
<rect x="56" y="392" width="608" height="184" rx="20" fill="#173d45" stroke="#5eead4" stroke-width="2"/>
|
||||
<text x="88" y="442" fill="#81f6df" font-family="Arial, sans-serif" font-size="21" font-weight="700">CONTAINER WEB</text>
|
||||
<text x="88" y="482" fill="#ffffff" font-family="Arial, sans-serif" font-size="28" font-weight="700">/srv/app</text>
|
||||
<text x="88" y="516" fill="#d6f6ee" font-family="Arial, sans-serif" font-size="20">npm run dev · порт 3000</text>
|
||||
<text x="88" y="548" fill="#d6f6ee" font-family="Arial, sans-serif" font-size="20">DATABASE_URL → db:5432</text>
|
||||
|
||||
<path d="M504 576 V650" stroke="#5eead4" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<text x="262" y="628" fill="#b9d5e9" font-family="Arial, sans-serif" font-size="20">named volume</text>
|
||||
<rect x="336" y="670" width="328" height="106" rx="18" fill="#243951" stroke="#a5b4fc" stroke-width="2"/>
|
||||
<text x="366" y="716" fill="#c7d2fe" font-family="Arial, sans-serif" font-size="20" font-weight="700">node_modules</text>
|
||||
<text x="366" y="750" fill="#e0e7ff" font-family="Arial, sans-serif" font-size="19">зависимости контейнера</text>
|
||||
|
||||
<path d="M264 576 V818" stroke="#7dd3fc" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<text x="88" y="676" fill="#b9d5e9" font-family="Arial, sans-serif" font-size="20">внутренняя сеть</text>
|
||||
|
||||
<rect x="56" y="838" width="608" height="154" rx="20" fill="#3a294a" stroke="#d8b4fe" stroke-width="2"/>
|
||||
<text x="88" y="888" fill="#ead5ff" font-family="Arial, sans-serif" font-size="21" font-weight="700">SERVICE DB</text>
|
||||
<text x="88" y="928" fill="#ffffff" font-family="Arial, sans-serif" font-size="28" font-weight="700">PostgreSQL</text>
|
||||
<text x="88" y="960" fill="#f3e8ff" font-family="Arial, sans-serif" font-size="20">доступен как db, не localhost</text>
|
||||
|
||||
<path d="M360 992 V1058" stroke="#d8b4fe" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<rect x="56" y="1074" width="608" height="72" rx="18" fill="#27233f" stroke="#c4b5fd" stroke-width="2"/>
|
||||
<text x="88" y="1120" fill="#ede9fe" font-family="Arial, sans-serif" font-size="22" font-weight="700">postgres_data · named volume</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.1 KiB |
@@ -1,48 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1180" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Путь запроса через локальный Docker Compose стек</title>
|
||||
<desc id="desc">Вертикальная схема показывает путь от браузера на хосте к опубликованному порту API, затем к базе по имени db во внутренней сети и к named volume PostgreSQL.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" x2="1" y1="0" y2="1">
|
||||
<stop stop-color="#13233d"/>
|
||||
<stop offset="1" stop-color="#1d314e"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" viewBox="0 0 10 10" refX="8" refY="5" markerWidth="7" markerHeight="7" orient="auto-start-reverse">
|
||||
<path d="M 0 0 L 10 5 L 0 10 z" fill="#fbbf24"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="720" height="1180" rx="36" fill="url(#background)"/>
|
||||
<text x="56" y="72" fill="#f8fafc" font-family="Arial, sans-serif" font-size="32" font-weight="700">Путь одного запроса</text>
|
||||
<text x="56" y="108" fill="#cbd8e8" font-family="Arial, sans-serif" font-size="21">У каждой стрелки свой наблюдатель</text>
|
||||
|
||||
<rect x="56" y="154" width="608" height="138" rx="20" fill="#24425e" stroke="#7dd3fc" stroke-width="2"/>
|
||||
<text x="88" y="204" fill="#bcecff" font-family="Arial, sans-serif" font-size="21" font-weight="700">ХОСТ</text>
|
||||
<text x="88" y="244" fill="#ffffff" font-family="Arial, sans-serif" font-size="28" font-weight="700">Браузер</text>
|
||||
<text x="88" y="274" fill="#d9effd" font-family="Arial, sans-serif" font-size="20">localhost:3000</text>
|
||||
|
||||
<path d="M360 292 V358" stroke="#fbbf24" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<text x="390" y="336" fill="#fde68a" font-family="Arial, sans-serif" font-size="20">опубликованный порт</text>
|
||||
|
||||
<rect x="56" y="376" width="608" height="190" rx="20" fill="#25484a" stroke="#5eead4" stroke-width="2"/>
|
||||
<text x="88" y="426" fill="#9cf4e1" font-family="Arial, sans-serif" font-size="21" font-weight="700">CONTAINER API</text>
|
||||
<text x="88" y="466" fill="#ffffff" font-family="Arial, sans-serif" font-size="28" font-weight="700">Node process</text>
|
||||
<text x="88" y="502" fill="#dcfce7" font-family="Arial, sans-serif" font-size="20">DATABASE_HOST = db</text>
|
||||
<text x="88" y="536" fill="#dcfce7" font-family="Arial, sans-serif" font-size="20">localhost здесь — сам api</text>
|
||||
|
||||
<path d="M360 566 V638" stroke="#fbbf24" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<text x="390" y="614" fill="#fde68a" font-family="Arial, sans-serif" font-size="20">bridge-сеть Compose</text>
|
||||
|
||||
<rect x="56" y="656" width="608" height="168" rx="20" fill="#493653" stroke="#d8b4fe" stroke-width="2"/>
|
||||
<text x="88" y="706" fill="#ead5ff" font-family="Arial, sans-serif" font-size="21" font-weight="700">SERVICE DB</text>
|
||||
<text x="88" y="746" fill="#ffffff" font-family="Arial, sans-serif" font-size="28" font-weight="700">PostgreSQL</text>
|
||||
<text x="88" y="780" fill="#f3e8ff" font-family="Arial, sans-serif" font-size="20">принимает соединение db:5432</text>
|
||||
|
||||
<path d="M360 824 V894" stroke="#fbbf24" stroke-width="4" marker-end="url(#arrow)"/>
|
||||
<text x="390" y="870" fill="#fde68a" font-family="Arial, sans-serif" font-size="20">постоянные данные</text>
|
||||
|
||||
<rect x="56" y="912" width="608" height="126" rx="20" fill="#302b4f" stroke="#c4b5fd" stroke-width="2"/>
|
||||
<text x="88" y="960" fill="#ddd6fe" font-family="Arial, sans-serif" font-size="21" font-weight="700">NAMED VOLUME</text>
|
||||
<text x="88" y="1000" fill="#ffffff" font-family="Arial, sans-serif" font-size="26" font-weight="700">postgres_data</text>
|
||||
|
||||
<rect x="56" y="1072" width="608" height="60" rx="16" fill="#1a2b42" stroke="#94a3b8" stroke-width="2"/>
|
||||
<text x="82" y="1111" fill="#e2e8f0" font-family="Arial, sans-serif" font-size="20">«Контейнер Up» не равен готовому ответу</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.0 KiB |
@@ -1,59 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1270" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Учебная схема решения в разборе инцидента</title>
|
||||
<desc id="desc">Вертикальная схема связывает записанное наблюдение с гипотезой, ограниченным действием, ожидаемой проверкой и отдельной плановой профилактикой.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0%" stop-color="#15172a"/>
|
||||
<stop offset="100%" stop-color="#20264a"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" markerWidth="12" markerHeight="12" refX="10" refY="6" orient="auto">
|
||||
<path d="M0,0 L12,6 L0,12 Z" fill="#8da5ca"/>
|
||||
</marker>
|
||||
<filter id="shadow" x="-10%" y="-10%" width="120%" height="130%">
|
||||
<feDropShadow dx="0" dy="8" stdDeviation="8" flood-color="#090a16" flood-opacity=".36"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<rect width="720" height="1270" rx="32" fill="url(#background)"/>
|
||||
<text x="54" y="76" fill="#fbfcff" font-family="Arial, sans-serif" font-size="42" font-weight="700">Decision record</text>
|
||||
<text x="54" y="114" fill="#c1c9e8" font-family="Arial, sans-serif" font-size="24">От факта к проверке без поиска виноватого</text>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="62" y="168" width="596" height="158" rx="22" fill="#293356" stroke="#62b8ff" stroke-width="3"/>
|
||||
</g>
|
||||
<text x="98" y="218" fill="#a8dcff" font-family="Arial, sans-serif" font-size="28" font-weight="700">E2 · записанное наблюдение</text>
|
||||
<text x="98" y="257" fill="#f4f7ff" font-family="Arial, sans-serif" font-size="24">После mapper отсутствует currency</text>
|
||||
<text x="98" y="292" fill="#c1c9e8" font-family="Arial, sans-serif" font-size="21">evidence: значение на contract boundary</text>
|
||||
|
||||
<line x1="360" y1="326" x2="360" y2="380" stroke="#8da5ca" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="62" y="396" width="596" height="158" rx="22" fill="#342e5c" stroke="#bd91ff" stroke-width="3"/>
|
||||
</g>
|
||||
<text x="98" y="446" fill="#decaff" font-family="Arial, sans-serif" font-size="28" font-weight="700">H1 · гипотеза</text>
|
||||
<text x="98" y="485" fill="#f4f7ff" font-family="Arial, sans-serif" font-size="24">Новый mapper мог потерять поле</text>
|
||||
<text x="98" y="520" fill="#c1c9e8" font-family="Arial, sans-serif" font-size="21">не факт; ссылка остаётся на E2</text>
|
||||
|
||||
<line x1="360" y1="554" x2="360" y2="608" stroke="#8da5ca" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="62" y="624" width="596" height="178" rx="22" fill="#214b48" stroke="#62d69d" stroke-width="3"/>
|
||||
</g>
|
||||
<text x="98" y="674" fill="#a9f0ca" font-family="Arial, sans-serif" font-size="28" font-weight="700">D1 / A1 · решение и действие</text>
|
||||
<text x="98" y="713" fill="#f4f7ff" font-family="Arial, sans-serif" font-size="24">Оставить прежний mapper в fixture</text>
|
||||
<text x="98" y="748" fill="#c5e8dc" font-family="Arial, sans-serif" font-size="21">trigger: H1 · граница: учебная ветка</text>
|
||||
<text x="98" y="778" fill="#c5e8dc" font-family="Arial, sans-serif" font-size="21">не retry и не новый timeout без факта</text>
|
||||
|
||||
<line x1="360" y1="802" x2="360" y2="856" stroke="#8da5ca" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="62" y="872" width="596" height="158" rx="22" fill="#214b48" stroke="#62d69d" stroke-width="3"/>
|
||||
</g>
|
||||
<text x="98" y="922" fill="#a9f0ca" font-family="Arial, sans-serif" font-size="28" font-weight="700">V1 · expected check</text>
|
||||
<text x="98" y="961" fill="#f4f7ff" font-family="Arial, sans-serif" font-size="24">Контролируемый вход вернул allowed</text>
|
||||
<text x="98" y="996" fill="#c5e8dc" font-family="Arial, sans-serif" font-size="21">и сохранил обязательное поле</text>
|
||||
|
||||
<line x1="360" y1="1030" x2="360" y2="1084" stroke="#8da5ca" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="62" y="1100" width="596" height="112" rx="22" fill="#62441f" stroke="#f4b64a" stroke-width="3"/>
|
||||
</g>
|
||||
<text x="98" y="1148" fill="#ffd98f" font-family="Arial, sans-serif" font-size="28" font-weight="700">P1 · профилактика: planned</text>
|
||||
<text x="98" y="1186" fill="#fff4dc" font-family="Arial, sans-serif" font-size="22">Contract fixture отклоняет mapper без currency</text>
|
||||
<text x="360" y="1250" text-anchor="middle" fill="#c1c9e8" font-family="Arial, sans-serif" font-size="22">Идея не равна выполненной проверке</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.8 KiB |
@@ -1,56 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1280" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Цикл обучения после учебного инцидента</title>
|
||||
<desc id="desc">Вертикальный цикл показывает сбор факта, ограниченное действие, проверку, плановую профилактику и запуск новой проверки при следующем изменении.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0%" stop-color="#14242a"/>
|
||||
<stop offset="100%" stop-color="#182c36"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" markerWidth="12" markerHeight="12" refX="10" refY="6" orient="auto">
|
||||
<path d="M0,0 L12,6 L0,12 Z" fill="#93b7b7"/>
|
||||
</marker>
|
||||
<filter id="shadow" x="-10%" y="-10%" width="120%" height="130%">
|
||||
<feDropShadow dx="0" dy="8" stdDeviation="8" flood-color="#071014" flood-opacity=".36"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<rect width="720" height="1280" rx="32" fill="url(#background)"/>
|
||||
<text x="54" y="76" fill="#fbfffe" font-family="Arial, sans-serif" font-size="42" font-weight="700">Цикл после разбора</text>
|
||||
<text x="54" y="114" fill="#b9d8d5" font-family="Arial, sans-serif" font-size="24">Профилактика закрывает не текст, а следующую проверку</text>
|
||||
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="94" y="174" width="532" height="136" rx="24" fill="#263f4d" stroke="#64c6e5" stroke-width="3"/>
|
||||
</g>
|
||||
<text x="132" y="224" fill="#a7e5f7" font-family="Arial, sans-serif" font-size="29" font-weight="700">1. Собрать факт</text>
|
||||
<text x="132" y="263" fill="#f2ffff" font-family="Arial, sans-serif" font-size="23">Симптом, граница, evidence</text>
|
||||
|
||||
<line x1="360" y1="310" x2="360" y2="364" stroke="#93b7b7" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="94" y="380" width="532" height="136" rx="24" fill="#354061" stroke="#c1a3ff" stroke-width="3"/>
|
||||
</g>
|
||||
<text x="132" y="430" fill="#e0d3ff" font-family="Arial, sans-serif" font-size="29" font-weight="700">2. Сузить гипотезу</text>
|
||||
<text x="132" y="469" fill="#f2ffff" font-family="Arial, sans-serif" font-size="23">Одна связь со старым observation</text>
|
||||
|
||||
<line x1="360" y1="516" x2="360" y2="570" stroke="#93b7b7" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="94" y="586" width="532" height="136" rx="24" fill="#24544d" stroke="#67dda3" stroke-width="3"/>
|
||||
</g>
|
||||
<text x="132" y="636" fill="#b4f4d2" font-family="Arial, sans-serif" font-size="29" font-weight="700">3. Ограничить действие</text>
|
||||
<text x="132" y="675" fill="#f2ffff" font-family="Arial, sans-serif" font-size="23">Обратимый шаг с ясной границей</text>
|
||||
|
||||
<line x1="360" y1="722" x2="360" y2="776" stroke="#93b7b7" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="94" y="792" width="532" height="136" rx="24" fill="#24544d" stroke="#67dda3" stroke-width="3"/>
|
||||
</g>
|
||||
<text x="132" y="842" fill="#b4f4d2" font-family="Arial, sans-serif" font-size="29" font-weight="700">4. Проверить эффект</text>
|
||||
<text x="132" y="881" fill="#f2ffff" font-family="Arial, sans-serif" font-size="23">V1 относится к действию, не к легенде</text>
|
||||
|
||||
<line x1="360" y1="928" x2="360" y2="982" stroke="#93b7b7" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="94" y="998" width="532" height="136" rx="24" fill="#654920" stroke="#f2bd58" stroke-width="3"/>
|
||||
</g>
|
||||
<text x="132" y="1048" fill="#ffe0a1" font-family="Arial, sans-serif" font-size="29" font-weight="700">5. Сделать профилактику</text>
|
||||
<text x="132" y="1087" fill="#fff8e8" font-family="Arial, sans-serif" font-size="23">Тест или контракт со своим check</text>
|
||||
|
||||
<path d="M628 1066 C690 1066,690 1186,604 1186 L144 1186 C80 1186,80 1148,80 1118" fill="none" stroke="#93b7b7" stroke-width="6" marker-end="url(#arrow)"/>
|
||||
<text x="360" y="1240" text-anchor="middle" fill="#b9d8d5" font-family="Arial, sans-serif" font-size="22">Следующее изменение снова проходит проверку</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.3 KiB |
@@ -1,73 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1290" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Учебная временная шкала разбора инцидента</title>
|
||||
<desc id="desc">Вертикальная схема показывает порядок от симптома и наблюдений через гипотезу и ограниченное действие к проверке и плановой профилактике.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" y1="0" x2="0" y2="1">
|
||||
<stop offset="0%" stop-color="#101827"/>
|
||||
<stop offset="100%" stop-color="#16243a"/>
|
||||
</linearGradient>
|
||||
<filter id="shadow" x="-10%" y="-10%" width="120%" height="130%">
|
||||
<feDropShadow dx="0" dy="8" stdDeviation="8" flood-color="#050914" flood-opacity=".34"/>
|
||||
</filter>
|
||||
</defs>
|
||||
<rect width="720" height="1290" rx="32" fill="url(#background)"/>
|
||||
<text x="54" y="76" fill="#f8fbff" font-family="Arial, sans-serif" font-size="42" font-weight="700">Разбор: порядок фактов</text>
|
||||
<text x="54" y="114" fill="#b7c8df" font-family="Arial, sans-serif" font-size="24">Учебная линия, а не отчёт о боевой системе</text>
|
||||
<line x1="100" y1="184" x2="100" y2="1102" stroke="#607493" stroke-width="8" stroke-linecap="round"/>
|
||||
|
||||
<circle cx="100" cy="210" r="30" fill="#f4a340"/>
|
||||
<text x="100" y="219" text-anchor="middle" fill="#172134" font-family="Arial, sans-serif" font-size="22" font-weight="700">T0</text>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="164" y="160" width="500" height="120" rx="20" fill="#253652" stroke="#f4a340" stroke-width="3"/>
|
||||
</g>
|
||||
<text x="198" y="205" fill="#ffd598" font-family="Arial, sans-serif" font-size="27" font-weight="700">Симптом</text>
|
||||
<text x="198" y="242" fill="#eff5ff" font-family="Arial, sans-serif" font-size="23">Путь вернул неожиданное состояние</text>
|
||||
|
||||
<circle cx="100" cy="370" r="30" fill="#5eb8ff"/>
|
||||
<text x="100" y="379" text-anchor="middle" fill="#172134" font-family="Arial, sans-serif" font-size="22" font-weight="700">E1</text>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="164" y="316" width="500" height="146" rx="20" fill="#253652" stroke="#5eb8ff" stroke-width="3"/>
|
||||
</g>
|
||||
<text x="198" y="361" fill="#a7dcff" font-family="Arial, sans-serif" font-size="27" font-weight="700">Наблюдение</text>
|
||||
<text x="198" y="398" fill="#eff5ff" font-family="Arial, sans-serif" font-size="23">Факт и граница: preview-order</text>
|
||||
<text x="198" y="431" fill="#b7c8df" font-family="Arial, sans-serif" font-size="21">без объяснения причины</text>
|
||||
|
||||
<circle cx="100" cy="550" r="30" fill="#5eb8ff"/>
|
||||
<text x="100" y="559" text-anchor="middle" fill="#172134" font-family="Arial, sans-serif" font-size="22" font-weight="700">E2</text>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="164" y="496" width="500" height="146" rx="20" fill="#253652" stroke="#5eb8ff" stroke-width="3"/>
|
||||
</g>
|
||||
<text x="198" y="541" fill="#a7dcff" font-family="Arial, sans-serif" font-size="27" font-weight="700">Наблюдение</text>
|
||||
<text x="198" y="578" fill="#eff5ff" font-family="Arial, sans-serif" font-size="23">После mapper нет currency</text>
|
||||
<text x="198" y="611" fill="#b7c8df" font-family="Arial, sans-serif" font-size="21">evidence можно перепроверить</text>
|
||||
|
||||
<circle cx="100" cy="730" r="30" fill="#bd91ff"/>
|
||||
<text x="100" y="739" text-anchor="middle" fill="#172134" font-family="Arial, sans-serif" font-size="22" font-weight="700">H1</text>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="164" y="676" width="500" height="146" rx="20" fill="#253652" stroke="#bd91ff" stroke-width="3"/>
|
||||
</g>
|
||||
<text x="198" y="721" fill="#d9c2ff" font-family="Arial, sans-serif" font-size="27" font-weight="700">Гипотеза</text>
|
||||
<text x="198" y="758" fill="#eff5ff" font-family="Arial, sans-serif" font-size="23">Новый mapper мог не перенести поле</text>
|
||||
<text x="198" y="791" fill="#b7c8df" font-family="Arial, sans-serif" font-size="21">ссылка ведёт к E2</text>
|
||||
|
||||
<circle cx="100" cy="910" r="30" fill="#62d69d"/>
|
||||
<text x="100" y="919" text-anchor="middle" fill="#172134" font-family="Arial, sans-serif" font-size="22" font-weight="700">A1</text>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="164" y="856" width="500" height="146" rx="20" fill="#253652" stroke="#62d69d" stroke-width="3"/>
|
||||
</g>
|
||||
<text x="198" y="901" fill="#a9f0ca" font-family="Arial, sans-serif" font-size="27" font-weight="700">Ограниченное действие</text>
|
||||
<text x="198" y="938" fill="#eff5ff" font-family="Arial, sans-serif" font-size="23">В fixture выбран прежний mapper</text>
|
||||
<text x="198" y="971" fill="#b7c8df" font-family="Arial, sans-serif" font-size="21">это обход, не доказанная причина</text>
|
||||
|
||||
<circle cx="100" cy="1090" r="30" fill="#62d69d"/>
|
||||
<text x="100" y="1099" text-anchor="middle" fill="#172134" font-family="Arial, sans-serif" font-size="22" font-weight="700">V1</text>
|
||||
<g filter="url(#shadow)">
|
||||
<rect x="164" y="1036" width="500" height="146" rx="20" fill="#253652" stroke="#62d69d" stroke-width="3"/>
|
||||
</g>
|
||||
<text x="198" y="1081" fill="#a9f0ca" font-family="Arial, sans-serif" font-size="27" font-weight="700">Проверка</text>
|
||||
<text x="198" y="1118" fill="#eff5ff" font-family="Arial, sans-serif" font-size="23">Контролируемый вход сохранил поле</text>
|
||||
<text x="198" y="1151" fill="#b7c8df" font-family="Arial, sans-serif" font-size="21">после действия, а не до него</text>
|
||||
|
||||
<rect x="54" y="1218" width="612" height="42" rx="20" fill="#f4a340"/>
|
||||
<text x="360" y="1248" text-anchor="middle" fill="#172134" font-family="Arial, sans-serif" font-size="22" font-weight="700">Профилактика — отдельная плановая проверка</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.9 KiB |
@@ -1,62 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="720" height="1380" viewBox="0 0 720 1380" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Учебный разбор порога по counter</title>
|
||||
<desc id="desc">Вертикальная схема показывает: общий график не является диагнозом. Для одной series checkout error берут три синтетические точки counter ноль, один и два, проверяют прирост за десять минут против учебного порога две и затем открывают один связанный журнал.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" x2="0" y1="0" y2="1">
|
||||
<stop offset="0" stop-color="#fff9ee"/>
|
||||
<stop offset="1" stop-color="#f1f6ff"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" markerWidth="12" markerHeight="12" refX="10" refY="6" orient="auto">
|
||||
<path d="M0 0 L12 6 L0 12 Z" fill="#4f66a6"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="720" height="1380" rx="32" fill="url(#background)"/>
|
||||
<text x="48" y="70" fill="#283a6d" font-family="Arial, sans-serif" font-size="34" font-weight="700">Разбор учебного counter</text>
|
||||
<text x="48" y="108" fill="#62708e" font-family="Arial, sans-serif" font-size="22">Сигнал сужает вопрос · не называет причину</text>
|
||||
|
||||
<rect x="48" y="148" width="624" height="152" rx="22" fill="#ffffff" stroke="#8ba1d0" stroke-width="3"/>
|
||||
<text x="80" y="194" fill="#4f66a6" font-family="Arial, sans-serif" font-size="21" font-weight="700">1 · ВЫБРАТЬ SERIES</text>
|
||||
<text x="80" y="234" fill="#283a6d" font-family="Arial, sans-serif" font-size="27" font-weight="700">checkout + error</text>
|
||||
<text x="80" y="268" fill="#50627d" font-family="Arial, sans-serif" font-size="21">не общий requests_total</text>
|
||||
|
||||
<path d="M360 310v48" stroke="#4f66a6" stroke-width="6" stroke-linecap="round" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="48" y="378" width="624" height="362" rx="22" fill="#ffffff" stroke="#8ba1d0" stroke-width="3"/>
|
||||
<text x="80" y="424" fill="#4f66a6" font-family="Arial, sans-serif" font-size="21" font-weight="700">2 · СЫРЫЕ SNAPSHOTS</text>
|
||||
<text x="80" y="458" fill="#50627d" font-family="Arial, sans-serif" font-size="21">синтетические точки, не production-метрика</text>
|
||||
<line x1="144" y1="676" x2="594" y2="676" stroke="#9aa8bf" stroke-width="3"/>
|
||||
<line x1="144" y1="504" x2="144" y2="676" stroke="#9aa8bf" stroke-width="3"/>
|
||||
<line x1="142" y1="590" x2="594" y2="590" stroke="#d8dee8" stroke-width="2" stroke-dasharray="8 8"/>
|
||||
<text x="112" y="682" fill="#66758d" font-family="Arial, sans-serif" font-size="20">0</text>
|
||||
<text x="112" y="596" fill="#66758d" font-family="Arial, sans-serif" font-size="20">1</text>
|
||||
<text x="112" y="516" fill="#66758d" font-family="Arial, sans-serif" font-size="20">2</text>
|
||||
<rect x="202" y="676" width="74" height="0" rx="8" fill="#79a9e6"/>
|
||||
<rect x="340" y="590" width="74" height="86" rx="8" fill="#79a9e6"/>
|
||||
<rect x="478" y="504" width="74" height="172" rx="8" fill="#3a75bf"/>
|
||||
<text x="239" y="716" text-anchor="middle" fill="#50627d" font-family="Arial, sans-serif" font-size="20">10:00</text>
|
||||
<text x="377" y="716" text-anchor="middle" fill="#50627d" font-family="Arial, sans-serif" font-size="20">10:05</text>
|
||||
<text x="515" y="716" text-anchor="middle" fill="#50627d" font-family="Arial, sans-serif" font-size="20">10:10</text>
|
||||
<text x="239" y="660" text-anchor="middle" fill="#50627d" font-family="Arial, sans-serif" font-size="22" font-weight="700">0</text>
|
||||
<text x="377" y="574" text-anchor="middle" fill="#50627d" font-family="Arial, sans-serif" font-size="22" font-weight="700">1</text>
|
||||
<text x="515" y="488" text-anchor="middle" fill="#283a6d" font-family="Arial, sans-serif" font-size="22" font-weight="700">2</text>
|
||||
|
||||
<path d="M360 752v48" stroke="#4f66a6" stroke-width="6" stroke-linecap="round" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="48" y="820" width="624" height="176" rx="22" fill="#edf1ff" stroke="#6f82c2" stroke-width="3"/>
|
||||
<text x="80" y="866" fill="#4f66a6" font-family="Arial, sans-serif" font-size="21" font-weight="700">3 · ПРОВЕРИТЬ ОКНО</text>
|
||||
<text x="80" y="908" fill="#283a6d" font-family="Arial, sans-serif" font-size="27" font-weight="700">increase(...[10m]) = 2</text>
|
||||
<text x="80" y="944" fill="#50627d" font-family="Arial, sans-serif" font-size="21">fixture считает прозрачную разность</text>
|
||||
<text x="80" y="972" fill="#4f66a6" font-family="Arial, sans-serif" font-size="20" font-weight="700">не моделирует scrape и reset</text>
|
||||
|
||||
<path d="M360 1008v48" stroke="#4f66a6" stroke-width="6" stroke-linecap="round" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="48" y="1076" width="624" height="160" rx="22" fill="#fff1da" stroke="#d99b37" stroke-width="3"/>
|
||||
<text x="80" y="1122" fill="#9b6416" font-family="Arial, sans-serif" font-size="21" font-weight="700">4 · УЧЕБНЫЙ ПОРОГ</text>
|
||||
<text x="80" y="1164" fill="#5c421c" font-family="Arial, sans-serif" font-size="29" font-weight="700">2 >= 2 → пересечён</text>
|
||||
<text x="80" y="1200" fill="#5c421c" font-family="Arial, sans-serif" font-size="21">это не alert severity и не SLO</text>
|
||||
|
||||
<path d="M360 1248v42" stroke="#d99b37" stroke-width="6" stroke-linecap="round" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="48" y="1310" width="624" height="42" rx="16" fill="#283a6d"/>
|
||||
<text x="360" y="1339" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="20" font-weight="700">Дальше: один связанный журнал или стендовый сценарий</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.7 KiB |
@@ -1,58 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="720" height="1360" viewBox="0 0 720 1360" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Граница полезных labels в метрике</title>
|
||||
<desc id="desc">Вертикальная схема показывает, что событие HTTP проходит allowlist operation и outcome в агрегированную time series. Request ID, email и полный URL уходят в журнал для поиска одного события и не становятся labels.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" x2="0" y1="0" y2="1">
|
||||
<stop offset="0" stop-color="#101d2d"/>
|
||||
<stop offset="1" stop-color="#173744"/>
|
||||
</linearGradient>
|
||||
<marker id="arrowBlue" markerWidth="12" markerHeight="12" refX="10" refY="6" orient="auto">
|
||||
<path d="M0 0 L12 6 L0 12 Z" fill="#65b9f5"/>
|
||||
</marker>
|
||||
<marker id="arrowRed" markerWidth="12" markerHeight="12" refX="10" refY="6" orient="auto">
|
||||
<path d="M0 0 L12 6 L0 12 Z" fill="#ff8b9c"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="720" height="1360" rx="32" fill="url(#background)"/>
|
||||
<text x="48" y="70" fill="#f8fafc" font-family="Arial, sans-serif" font-size="34" font-weight="700">Labels: граница series</text>
|
||||
<text x="48" y="108" fill="#b9d9ef" font-family="Arial, sans-serif" font-size="22">Ограниченная размерность ≠ журнал события</text>
|
||||
|
||||
<rect x="48" y="148" width="624" height="142" rx="22" fill="#193952" stroke="#65b9f5" stroke-width="3"/>
|
||||
<text x="80" y="194" fill="#9bd6ff" font-family="Arial, sans-serif" font-size="21" font-weight="700">СОБЫТИЕ HTTP</text>
|
||||
<text x="80" y="234" fill="#f8fafc" font-family="Arial, sans-serif" font-size="28" font-weight="700">checkout завершился error</text>
|
||||
<text x="80" y="266" fill="#c7d8e7" font-family="Arial, sans-serif" font-size="21">есть и стабильные, и уникальные поля</text>
|
||||
|
||||
<path d="M360 300v52" stroke="#65b9f5" stroke-width="6" stroke-linecap="round" marker-end="url(#arrowBlue)"/>
|
||||
|
||||
<rect x="48" y="372" width="624" height="214" rx="22" fill="#143f37" stroke="#5ed09e" stroke-width="3"/>
|
||||
<text x="80" y="418" fill="#93e6bd" font-family="Arial, sans-serif" font-size="21" font-weight="700">ALLOWLIST ДЛЯ МЕТРИКИ</text>
|
||||
<text x="80" y="458" fill="#f8fafc" font-family="Arial, sans-serif" font-size="28" font-weight="700">operation</text>
|
||||
<text x="80" y="492" fill="#d2f4e2" font-family="Arial, sans-serif" font-size="22">catalog · checkout · profile</text>
|
||||
<text x="80" y="536" fill="#f8fafc" font-family="Arial, sans-serif" font-size="28" font-weight="700">outcome</text>
|
||||
<text x="80" y="568" fill="#d2f4e2" font-family="Arial, sans-serif" font-size="22">success · error</text>
|
||||
|
||||
<path d="M360 596v52" stroke="#5ed09e" stroke-width="6" stroke-linecap="round" marker-end="url(#arrowBlue)"/>
|
||||
|
||||
<rect x="48" y="668" width="624" height="168" rx="22" fill="#243455" stroke="#a8c5ff" stroke-width="3"/>
|
||||
<text x="80" y="714" fill="#c7d8ff" font-family="Arial, sans-serif" font-size="21" font-weight="700">АГРЕГИРОВАННАЯ SERIES</text>
|
||||
<text x="80" y="754" fill="#f8fafc" font-family="Arial, sans-serif" font-size="28" font-weight="700">requests_total</text>
|
||||
<text x="80" y="790" fill="#d5e2ff" font-family="Arial, sans-serif" font-size="21">operation + outcome → вопрос и query</text>
|
||||
<text x="80" y="818" fill="#9bd6ff" font-family="Arial, sans-serif" font-size="20" font-weight="700">малое число понятных комбинаций</text>
|
||||
|
||||
<path d="M360 852v48" stroke="#65b9f5" stroke-width="6" stroke-linecap="round" marker-end="url(#arrowBlue)"/>
|
||||
|
||||
<rect x="48" y="920" width="624" height="166" rx="22" fill="#542635" stroke="#ff8b9c" stroke-width="3"/>
|
||||
<text x="80" y="966" fill="#ffc2ca" font-family="Arial, sans-serif" font-size="21" font-weight="700">НЕ LABEL</text>
|
||||
<text x="80" y="1006" fill="#f8fafc" font-family="Arial, sans-serif" font-size="27" font-weight="700">request ID · email · полный URL</text>
|
||||
<text x="80" y="1042" fill="#ffd8de" font-family="Arial, sans-serif" font-size="21">новое значение на событие → новая series</text>
|
||||
<text x="80" y="1070" fill="#ffb1bf" font-family="Arial, sans-serif" font-size="20" font-weight="700">не хранить уникальный контекст в counter</text>
|
||||
|
||||
<path d="M360 1102v48" stroke="#ff8b9c" stroke-width="6" stroke-linecap="round" marker-end="url(#arrowRed)"/>
|
||||
|
||||
<rect x="48" y="1170" width="624" height="138" rx="22" fill="#452f20" stroke="#f0aa54" stroke-width="3"/>
|
||||
<text x="80" y="1216" fill="#ffd395" font-family="Arial, sans-serif" font-size="21" font-weight="700">ЖУРНАЛ / REQUEST CONTEXT</text>
|
||||
<text x="80" y="1256" fill="#f8fafc" font-family="Arial, sans-serif" font-size="27" font-weight="700">поиск одного события</text>
|
||||
<text x="80" y="1288" fill="#ffe4c3" font-family="Arial, sans-serif" font-size="21">ID остаётся ключом расследования</text>
|
||||
|
||||
<text x="360" y="1335" text-anchor="middle" fill="#b9d9ef" font-family="Arial, sans-serif" font-size="21">Сначала вопрос → затем label → затем series</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.2 KiB |
@@ -1,59 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="720" height="1320" viewBox="0 0 720 1320" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Контракт учебного сигнала для HTTP-операции</title>
|
||||
<desc id="desc">Вертикальная схема: один операционный вопрос про ошибки checkout ведёт к counter с ограниченными labels operation и outcome, затем к учебному окну десять минут, порогу две ошибки и следующей диагностической проверке.</desc>
|
||||
<defs>
|
||||
<linearGradient id="background" x1="0" x2="0" y1="0" y2="1">
|
||||
<stop offset="0" stop-color="#f4f8ff"/>
|
||||
<stop offset="1" stop-color="#edf8f1"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" markerWidth="12" markerHeight="12" refX="10" refY="6" orient="auto">
|
||||
<path d="M0 0 L12 6 L0 12 Z" fill="#245c97"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="720" height="1320" rx="32" fill="url(#background)"/>
|
||||
<text x="48" y="68" fill="#183c60" font-family="Arial, sans-serif" font-size="34" font-weight="700">Метрика начинается с вопроса</text>
|
||||
<text x="48" y="106" fill="#506b84" font-family="Arial, sans-serif" font-size="22">Учебный контракт · не production-график</text>
|
||||
|
||||
<rect x="48" y="146" width="624" height="170" rx="22" fill="#ffffff" stroke="#7ea6ca" stroke-width="3"/>
|
||||
<circle cx="92" cy="200" r="24" fill="#2f77b6"/>
|
||||
<text x="84" y="208" fill="#ffffff" font-family="Arial, sans-serif" font-size="22" font-weight="700">1</text>
|
||||
<text x="132" y="198" fill="#245c97" font-family="Arial, sans-serif" font-size="21" font-weight="700">ОПЕРАЦИОННЫЙ ВОПРОС</text>
|
||||
<text x="132" y="240" fill="#183c60" font-family="Arial, sans-serif" font-size="29" font-weight="700">Ошибки checkout</text>
|
||||
<text x="132" y="276" fill="#425f76" font-family="Arial, sans-serif" font-size="22">за контролируемые 10 минут?</text>
|
||||
|
||||
<line x1="360" y1="332" x2="360" y2="386" stroke="#245c97" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="48" y="406" width="624" height="202" rx="22" fill="#e7f1fc" stroke="#2f77b6" stroke-width="3"/>
|
||||
<circle cx="92" cy="460" r="24" fill="#2f77b6"/>
|
||||
<text x="84" y="468" fill="#ffffff" font-family="Arial, sans-serif" font-size="22" font-weight="700">2</text>
|
||||
<text x="132" y="458" fill="#245c97" font-family="Arial, sans-serif" font-size="21" font-weight="700">SIGNAL</text>
|
||||
<text x="132" y="500" fill="#183c60" font-family="Arial, sans-serif" font-size="28" font-weight="700">requests_total</text>
|
||||
<text x="132" y="536" fill="#425f76" font-family="Arial, sans-serif" font-size="22">counter завершённых запросов</text>
|
||||
<rect x="132" y="556" width="374" height="34" rx="11" fill="#ffffff"/>
|
||||
<text x="151" y="580" fill="#245c97" font-family="Arial, sans-serif" font-size="20" font-weight="700">одна величина · не диагноз</text>
|
||||
|
||||
<line x1="360" y1="624" x2="360" y2="678" stroke="#245c97" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="48" y="698" width="624" height="206" rx="22" fill="#ffffff" stroke="#5ca77f" stroke-width="3"/>
|
||||
<circle cx="92" cy="752" r="24" fill="#3a8b60"/>
|
||||
<text x="84" y="760" fill="#ffffff" font-family="Arial, sans-serif" font-size="22" font-weight="700">3</text>
|
||||
<text x="132" y="750" fill="#287047" font-family="Arial, sans-serif" font-size="21" font-weight="700">BOUNDED LABELS</text>
|
||||
<text x="132" y="790" fill="#183c60" font-family="Arial, sans-serif" font-size="27" font-weight="700">operation + outcome</text>
|
||||
<text x="132" y="826" fill="#425f76" font-family="Arial, sans-serif" font-size="22">catalog · checkout · profile</text>
|
||||
<text x="132" y="860" fill="#425f76" font-family="Arial, sans-serif" font-size="22">success · error</text>
|
||||
<text x="132" y="888" fill="#287047" font-family="Arial, sans-serif" font-size="20" font-weight="700">без user ID и request ID</text>
|
||||
|
||||
<line x1="360" y1="920" x2="360" y2="974" stroke="#3a8b60" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="48" y="994" width="624" height="164" rx="22" fill="#fff4df" stroke="#d58d1e" stroke-width="3"/>
|
||||
<circle cx="92" cy="1048" r="24" fill="#d58d1e"/>
|
||||
<text x="84" y="1056" fill="#ffffff" font-family="Arial, sans-serif" font-size="22" font-weight="700">4</text>
|
||||
<text x="132" y="1046" fill="#9a5910" font-family="Arial, sans-serif" font-size="21" font-weight="700">УЧЕБНОЕ УСЛОВИЕ</text>
|
||||
<text x="132" y="1088" fill="#5e3b12" font-family="Arial, sans-serif" font-size="29" font-weight="700">increase(...[10m])</text>
|
||||
<text x="132" y="1122" fill="#5e3b12" font-family="Arial, sans-serif" font-size="25" font-weight="700">>= 2 ошибки</text>
|
||||
|
||||
<line x1="360" y1="1174" x2="360" y2="1224" stroke="#d58d1e" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="48" y="1244" width="624" height="48" rx="18" fill="#183c60"/>
|
||||
<text x="360" y="1276" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="21" font-weight="700">Пересекли порог → открыть один связанный журнал</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.1 KiB |
@@ -1,49 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1400" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Диагностика потерянного ответа и безопасного повтора</title>
|
||||
<desc id="desc">Вертикальная временная шкала показывает первую HTTP-попытку с requestId req-51, сохранение результата сервисом, таймаут клиента, вторую попытку req-52 с тем же ключом и повтор сохранённого результата.</desc>
|
||||
<rect width="720" height="1400" fill="#f8fafc"/>
|
||||
<rect x="28" y="26" width="664" height="112" rx="24" fill="#1e293b"/>
|
||||
<text x="62" y="72" fill="#f8fafc" font-family="Arial, sans-serif" font-size="32" font-weight="700">Потерянный ответ: что проверить</text>
|
||||
<text x="62" y="108" fill="#cbd5e1" font-family="Arial, sans-serif" font-size="20">requestId меняется, idempotency key остаётся одним</text>
|
||||
|
||||
<line x1="136" y1="194" x2="136" y2="1288" stroke="#94a3b8" stroke-width="8" stroke-linecap="round"/>
|
||||
<circle cx="136" cy="242" r="20" fill="#2563eb"/>
|
||||
<circle cx="136" cy="472" r="20" fill="#059669"/>
|
||||
<circle cx="136" cy="702" r="20" fill="#ea580c"/>
|
||||
<circle cx="136" cy="932" r="20" fill="#7c3aed"/>
|
||||
<circle cx="136" cy="1162" r="20" fill="#16a34a"/>
|
||||
|
||||
<text x="52" y="212" fill="#475569" font-family="Arial, sans-serif" font-size="20" font-weight="700">t0</text>
|
||||
<text x="52" y="442" fill="#475569" font-family="Arial, sans-serif" font-size="20" font-weight="700">t1</text>
|
||||
<text x="52" y="672" fill="#475569" font-family="Arial, sans-serif" font-size="20" font-weight="700">t2</text>
|
||||
<text x="52" y="902" fill="#475569" font-family="Arial, sans-serif" font-size="20" font-weight="700">t3</text>
|
||||
<text x="52" y="1132" fill="#475569" font-family="Arial, sans-serif" font-size="20" font-weight="700">t4</text>
|
||||
|
||||
<rect x="182" y="174" width="486" height="142" rx="22" fill="#eff6ff" stroke="#2563eb" stroke-width="3"/>
|
||||
<text x="214" y="220" fill="#1e3a8a" font-family="Arial, sans-serif" font-size="26" font-weight="700">Попытка № 1</text>
|
||||
<text x="214" y="257" fill="#1e3a8a" font-family="Arial, sans-serif" font-size="21">requestId = req-51</text>
|
||||
<text x="214" y="286" fill="#1e3a8a" font-family="Arial, sans-serif" font-size="21">key = demo-key-retry-2020-06-a7f1</text>
|
||||
|
||||
<rect x="182" y="404" width="486" height="142" rx="22" fill="#ecfdf5" stroke="#059669" stroke-width="3"/>
|
||||
<text x="214" y="450" fill="#065f46" font-family="Arial, sans-serif" font-size="26" font-weight="700">Сервис сохранил result</text>
|
||||
<text x="214" y="487" fill="#065f46" font-family="Arial, sans-serif" font-size="21">decision = owner → stored status = 201</text>
|
||||
<text x="214" y="516" fill="#065f46" font-family="Arial, sans-serif" font-size="21">resultId = demo-request-42</text>
|
||||
|
||||
<rect x="182" y="634" width="486" height="142" rx="22" fill="#fff7ed" stroke="#ea580c" stroke-width="3"/>
|
||||
<text x="214" y="680" fill="#9a3412" font-family="Arial, sans-serif" font-size="26" font-weight="700">Клиентский deadline истёк</text>
|
||||
<text x="214" y="717" fill="#9a3412" font-family="Arial, sans-serif" font-size="21">response = not observed</text>
|
||||
<text x="214" y="746" fill="#9a3412" font-family="Arial, sans-serif" font-size="21">не делаем вывод «эффекта нет»</text>
|
||||
|
||||
<rect x="182" y="864" width="486" height="142" rx="22" fill="#f5f3ff" stroke="#7c3aed" stroke-width="3"/>
|
||||
<text x="214" y="910" fill="#4c1d95" font-family="Arial, sans-serif" font-size="26" font-weight="700">Попытка № 2</text>
|
||||
<text x="214" y="947" fill="#4c1d95" font-family="Arial, sans-serif" font-size="21">requestId = req-52 — новый</text>
|
||||
<text x="214" y="976" fill="#4c1d95" font-family="Arial, sans-serif" font-size="21">key тот же, payload hash тот же</text>
|
||||
|
||||
<rect x="182" y="1094" width="486" height="142" rx="22" fill="#f0fdf4" stroke="#16a34a" stroke-width="3"/>
|
||||
<text x="214" y="1140" fill="#166534" font-family="Arial, sans-serif" font-size="26" font-weight="700">Replay сохранённого ответа</text>
|
||||
<text x="214" y="1177" fill="#166534" font-family="Arial, sans-serif" font-size="21">decision = replay → status = 201</text>
|
||||
<text x="214" y="1206" fill="#166534" font-family="Arial, sans-serif" font-size="21">effects = 1, resultId тот же</text>
|
||||
|
||||
<rect x="52" y="1302" width="616" height="56" rx="16" fill="#dbeafe"/>
|
||||
<text x="360" y="1337" text-anchor="middle" fill="#1e3a8a" font-family="Arial, sans-serif" font-size="21" font-weight="700">Порядок событий важнее одного timeout</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 4.7 KiB |
@@ -1,56 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1360" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Путь одной заявки при потерянном HTTP-ответе</title>
|
||||
<desc id="desc">Вертикальная схема показывает один пользовательский intent с ключом идемпотентности: первая попытка сохраняет результат, ответ теряется, повтор использует тот же ключ и получает сохранённый результат без второго эффекта.</desc>
|
||||
<rect width="720" height="1360" fill="#f8fafc"/>
|
||||
<rect x="28" y="26" width="664" height="112" rx="24" fill="#0f172a"/>
|
||||
<text x="62" y="72" fill="#f8fafc" font-family="Arial, sans-serif" font-size="32" font-weight="700">Один intent, две доставки</text>
|
||||
<text x="62" y="108" fill="#cbd5e1" font-family="Arial, sans-serif" font-size="20">Timeout не отменяет эффект на сервере</text>
|
||||
|
||||
<line x1="360" y1="306" x2="360" y2="362" stroke="#64748b" stroke-width="8" stroke-linecap="round"/>
|
||||
<path d="M342 350 L360 374 L378 350" fill="none" stroke="#64748b" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<line x1="360" y1="548" x2="360" y2="604" stroke="#64748b" stroke-width="8" stroke-linecap="round"/>
|
||||
<path d="M342 592 L360 616 L378 592" fill="none" stroke="#64748b" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<line x1="360" y1="790" x2="360" y2="846" stroke="#64748b" stroke-width="8" stroke-linecap="round"/>
|
||||
<path d="M342 834 L360 858 L378 834" fill="none" stroke="#64748b" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<line x1="360" y1="1032" x2="360" y2="1088" stroke="#64748b" stroke-width="8" stroke-linecap="round"/>
|
||||
<path d="M342 1076 L360 1100 L378 1076" fill="none" stroke="#64748b" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
|
||||
<rect x="52" y="166" width="616" height="140" rx="22" fill="#e0f2fe" stroke="#0284c7" stroke-width="3"/>
|
||||
<circle cx="96" cy="216" r="25" fill="#0284c7"/>
|
||||
<text x="96" y="225" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="23" font-weight="700">1</text>
|
||||
<text x="138" y="215" fill="#0c4a6e" font-family="Arial, sans-serif" font-size="27" font-weight="700">Пользователь подтверждает заявку</text>
|
||||
<text x="138" y="250" fill="#164e63" font-family="Arial, sans-serif" font-size="21">Клиент создаёт key для одного intent</text>
|
||||
<text x="138" y="278" fill="#164e63" font-family="Arial, sans-serif" font-size="21">payload и общий deadline сохраняются рядом</text>
|
||||
|
||||
<rect x="52" y="382" width="616" height="166" rx="22" fill="#eff6ff" stroke="#2563eb" stroke-width="3"/>
|
||||
<circle cx="96" cy="435" r="25" fill="#2563eb"/>
|
||||
<text x="96" y="444" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="23" font-weight="700">2</text>
|
||||
<text x="138" y="432" fill="#1e3a8a" font-family="Arial, sans-serif" font-size="27" font-weight="700">Попытка № 1</text>
|
||||
<text x="138" y="467" fill="#1e3a8a" font-family="Arial, sans-serif" font-size="21">POST + один Idempotency-Key</text>
|
||||
<rect x="138" y="487" width="382" height="37" rx="12" fill="#dbeafe"/>
|
||||
<text x="156" y="513" fill="#1d4ed8" font-family="Arial, sans-serif" font-size="20" font-weight="700">key: demo-key-retry-2020-06-a7f1</text>
|
||||
|
||||
<rect x="52" y="624" width="616" height="166" rx="22" fill="#ecfdf5" stroke="#059669" stroke-width="3"/>
|
||||
<circle cx="96" cy="677" r="25" fill="#059669"/>
|
||||
<text x="96" y="686" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="23" font-weight="700">3</text>
|
||||
<text x="138" y="674" fill="#065f46" font-family="Arial, sans-serif" font-size="27" font-weight="700">Сервис завершает одну операцию</text>
|
||||
<text x="138" y="709" fill="#065f46" font-family="Arial, sans-serif" font-size="21">Хранит key, hash, status и result ID</text>
|
||||
<text x="138" y="738" fill="#065f46" font-family="Arial, sans-serif" font-size="21">Эффект: demo-request-42</text>
|
||||
|
||||
<rect x="52" y="866" width="616" height="166" rx="22" fill="#fff7ed" stroke="#ea580c" stroke-width="3"/>
|
||||
<circle cx="96" cy="919" r="25" fill="#ea580c"/>
|
||||
<text x="96" y="928" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="23" font-weight="700">4</text>
|
||||
<text x="138" y="916" fill="#9a3412" font-family="Arial, sans-serif" font-size="27" font-weight="700">Клиент не увидел ответ</text>
|
||||
<text x="138" y="951" fill="#9a3412" font-family="Arial, sans-serif" font-size="21">Timeout = неизвестный исход для клиента</text>
|
||||
<text x="138" y="980" fill="#9a3412" font-family="Arial, sans-serif" font-size="21">Не означает rollback у сервиса</text>
|
||||
|
||||
<rect x="52" y="1108" width="616" height="166" rx="22" fill="#f5f3ff" stroke="#7c3aed" stroke-width="3"/>
|
||||
<circle cx="96" cy="1161" r="25" fill="#7c3aed"/>
|
||||
<text x="96" y="1170" text-anchor="middle" fill="#ffffff" font-family="Arial, sans-serif" font-size="23" font-weight="700">5</text>
|
||||
<text x="138" y="1158" fill="#4c1d95" font-family="Arial, sans-serif" font-size="27" font-weight="700">Повтор с тем же key</text>
|
||||
<text x="138" y="1193" fill="#4c1d95" font-family="Arial, sans-serif" font-size="21">Сервис читает terminal result</text>
|
||||
<text x="138" y="1222" fill="#4c1d95" font-family="Arial, sans-serif" font-size="21">Replay 201: demo-request-42, без второго effect</text>
|
||||
|
||||
<rect x="52" y="1300" width="616" height="38" rx="14" fill="#dbeafe"/>
|
||||
<text x="360" y="1327" text-anchor="middle" fill="#1e3a8a" font-family="Arial, sans-serif" font-size="20" font-weight="700">Повтор безопасен только в одном scope и в окне хранения key</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.9 KiB |
@@ -1,67 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 720 1400" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Контракт состояния для idempotency key</title>
|
||||
<desc id="desc">Вертикальная диаграмма показывает, как сервис создаёт запись с ключом, scope и fingerprint, возвращает конфликт для другого payload или параллельного выполнения и повторяет сохранённый результат после завершения.</desc>
|
||||
<rect width="720" height="1400" fill="#f8fafc"/>
|
||||
<rect x="28" y="26" width="664" height="112" rx="24" fill="#172554"/>
|
||||
<text x="62" y="72" fill="#f8fafc" font-family="Arial, sans-serif" font-size="32" font-weight="700">Состояние ключа на сервисе</text>
|
||||
<text x="62" y="108" fill="#bfdbfe" font-family="Arial, sans-serif" font-size="20">Key + scope + fingerprint определяют одну операцию</text>
|
||||
|
||||
<rect x="52" y="172" width="616" height="154" rx="22" fill="#e0f2fe" stroke="#0284c7" stroke-width="3"/>
|
||||
<text x="84" y="218" fill="#0c4a6e" font-family="Arial, sans-serif" font-size="27" font-weight="700">Входящий POST</text>
|
||||
<text x="84" y="256" fill="#164e63" font-family="Arial, sans-serif" font-size="22">actor + operation + key</text>
|
||||
<text x="84" y="288" fill="#164e63" font-family="Arial, sans-serif" font-size="22">payload → канонизация → fingerprint</text>
|
||||
|
||||
<line x1="360" y1="328" x2="360" y2="384" stroke="#64748b" stroke-width="8" stroke-linecap="round"/>
|
||||
<path d="M342 372 L360 396 L378 372" fill="none" stroke="#64748b" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
|
||||
<rect x="52" y="402" width="616" height="162" rx="22" fill="#eff6ff" stroke="#2563eb" stroke-width="3"/>
|
||||
<text x="84" y="449" fill="#1e3a8a" font-family="Arial, sans-serif" font-size="27" font-weight="700">Атомарный захват записи</text>
|
||||
<text x="84" y="486" fill="#1e3a8a" font-family="Arial, sans-serif" font-size="22">UNIQUE(scope, key) защищает конкуренцию</text>
|
||||
<rect x="84" y="506" width="330" height="37" rx="12" fill="#dbeafe"/>
|
||||
<text x="102" y="532" fill="#1d4ed8" font-family="Arial, sans-serif" font-size="20" font-weight="700">state = in_progress</text>
|
||||
|
||||
<line x1="206" y1="566" x2="206" y2="622" stroke="#64748b" stroke-width="8" stroke-linecap="round"/>
|
||||
<path d="M188 610 L206 634 L224 610" fill="none" stroke="#64748b" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<line x1="514" y1="566" x2="514" y2="622" stroke="#64748b" stroke-width="8" stroke-linecap="round"/>
|
||||
<path d="M496 610 L514 634 L532 610" fill="none" stroke="#64748b" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
|
||||
<rect x="52" y="642" width="308" height="172" rx="22" fill="#ecfdf5" stroke="#059669" stroke-width="3"/>
|
||||
<text x="82" y="689" fill="#065f46" font-family="Arial, sans-serif" font-size="26" font-weight="700">Новый key</text>
|
||||
<text x="82" y="725" fill="#065f46" font-family="Arial, sans-serif" font-size="21">Один владелец</text>
|
||||
<text x="82" y="754" fill="#065f46" font-family="Arial, sans-serif" font-size="21">выполняет effect</text>
|
||||
<text x="82" y="783" fill="#065f46" font-family="Arial, sans-serif" font-size="21">и сохраняет result</text>
|
||||
|
||||
<rect x="360" y="642" width="308" height="172" rx="22" fill="#fff7ed" stroke="#ea580c" stroke-width="3"/>
|
||||
<text x="390" y="689" fill="#9a3412" font-family="Arial, sans-serif" font-size="26" font-weight="700">Запись есть</text>
|
||||
<text x="390" y="725" fill="#9a3412" font-family="Arial, sans-serif" font-size="21">Сравнить hash</text>
|
||||
<text x="390" y="754" fill="#9a3412" font-family="Arial, sans-serif" font-size="21">до обработчика</text>
|
||||
<text x="390" y="783" fill="#9a3412" font-family="Arial, sans-serif" font-size="21">и второго effect</text>
|
||||
|
||||
<line x1="206" y1="816" x2="206" y2="872" stroke="#64748b" stroke-width="8" stroke-linecap="round"/>
|
||||
<path d="M188 860 L206 884 L224 860" fill="none" stroke="#64748b" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
<line x1="514" y1="816" x2="514" y2="872" stroke="#64748b" stroke-width="8" stroke-linecap="round"/>
|
||||
<path d="M496 860 L514 884 L532 860" fill="none" stroke="#64748b" stroke-width="8" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
|
||||
<rect x="52" y="892" width="308" height="190" rx="22" fill="#f0fdf4" stroke="#16a34a" stroke-width="3"/>
|
||||
<text x="82" y="939" fill="#166534" font-family="Arial, sans-serif" font-size="26" font-weight="700">completed</text>
|
||||
<text x="82" y="976" fill="#166534" font-family="Arial, sans-serif" font-size="21">status + body + result ID</text>
|
||||
<text x="82" y="1007" fill="#166534" font-family="Arial, sans-serif" font-size="21">повтору: replay</text>
|
||||
<text x="82" y="1038" fill="#166534" font-family="Arial, sans-serif" font-size="21">без нового effect</text>
|
||||
|
||||
<rect x="360" y="892" width="308" height="190" rx="22" fill="#fef2f2" stroke="#dc2626" stroke-width="3"/>
|
||||
<text x="390" y="939" fill="#991b1b" font-family="Arial, sans-serif" font-size="26" font-weight="700">conflict</text>
|
||||
<text x="390" y="976" fill="#991b1b" font-family="Arial, sans-serif" font-size="21">другая hash</text>
|
||||
<text x="390" y="1007" fill="#991b1b" font-family="Arial, sans-serif" font-size="21">или in_progress</text>
|
||||
<text x="390" y="1038" fill="#991b1b" font-family="Arial, sans-serif" font-size="21">не запускает handler</text>
|
||||
|
||||
<rect x="52" y="1130" width="616" height="172" rx="22" fill="#f5f3ff" stroke="#7c3aed" stroke-width="3"/>
|
||||
<text x="84" y="1178" fill="#4c1d95" font-family="Arial, sans-serif" font-size="27" font-weight="700">Граница, которую нельзя скрыть</text>
|
||||
<text x="84" y="1214" fill="#4c1d95" font-family="Arial, sans-serif" font-size="20">Локальная запись не делает внешний вызов атомарным.</text>
|
||||
<text x="84" y="1240" fill="#4c1d95" font-family="Arial, sans-serif" font-size="20">Внешний effect требует своего key или status route.</text>
|
||||
<text x="84" y="1266" fill="#4c1d95" font-family="Arial, sans-serif" font-size="20">TTL дольше retry-budget: поздний retry иначе</text>
|
||||
<text x="84" y="1292" fill="#4c1d95" font-family="Arial, sans-serif" font-size="20">станет новым действием.</text>
|
||||
|
||||
<rect x="52" y="1322" width="616" height="56" rx="14" fill="#dbeafe"/>
|
||||
<text x="360" y="1346" text-anchor="middle" fill="#1e3a8a" font-family="Arial, sans-serif" font-size="20" font-weight="700">Резервируем intent → выполняем effect</text>
|
||||
<text x="360" y="1370" text-anchor="middle" fill="#1e3a8a" font-family="Arial, sans-serif" font-size="20" font-weight="700">→ сохраняем terminal ответ</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 6.9 KiB |
@@ -1,58 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="720" height="1300" viewBox="0 0 720 1300" role="img" aria-labelledby="title desc">
|
||||
<title id="title">Маршрут диагностики reverse proxy</title>
|
||||
<desc id="desc">Вертикальная схема показывает порядок расследования: сначала зафиксировать симптом и цену, затем выбрать безопасный маршрут, проверить конфигурацию и заголовки, сопоставить access-log с логом приложения, изменить одну подтверждённую границу и повторить запрос.</desc>
|
||||
<defs>
|
||||
<linearGradient id="bg" x1="0" x2="0" y1="0" y2="1">
|
||||
<stop offset="0" stop-color="#fff5f4"/>
|
||||
<stop offset="1" stop-color="#f3fbf8"/>
|
||||
</linearGradient>
|
||||
<marker id="arrow" markerWidth="12" markerHeight="12" refX="10" refY="6" orient="auto">
|
||||
<path d="M0,0 L12,6 L0,12 Z" fill="#a4473d"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="720" height="1300" rx="32" fill="url(#bg)"/>
|
||||
<text x="48" y="66" fill="#5b2420" font-family="Arial, sans-serif" font-size="34" font-weight="700">Диагностика: одна ветка за раз</text>
|
||||
<text x="48" y="104" fill="#7d5b58" font-family="Arial, sans-serif" font-size="22">502/504 — начало проверки, не причина</text>
|
||||
|
||||
<rect x="48" y="146" width="624" height="154" rx="22" fill="#ffffff" stroke="#d4867d" stroke-width="3"/>
|
||||
<circle cx="94" cy="198" r="23" fill="#b34d43"/>
|
||||
<text x="86" y="206" fill="#ffffff" font-family="Arial, sans-serif" font-size="21" font-weight="700">1</text>
|
||||
<text x="136" y="196" fill="#5b2420" font-family="Arial, sans-serif" font-size="28" font-weight="700">Симптом и цена</text>
|
||||
<text x="136" y="234" fill="#704e4a" font-family="Arial, sans-serif" font-size="22">Неверная схема, адрес, 502 или 504</text>
|
||||
<text x="136" y="268" fill="#704e4a" font-family="Arial, sans-serif" font-size="22">Что сломается при повторе?</text>
|
||||
|
||||
<line x1="360" y1="316" x2="360" y2="360" stroke="#a4473d" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="48" y="380" width="624" height="154" rx="22" fill="#ffffff" stroke="#d4867d" stroke-width="3"/>
|
||||
<circle cx="94" cy="432" r="23" fill="#b34d43"/>
|
||||
<text x="86" y="440" fill="#ffffff" font-family="Arial, sans-serif" font-size="21" font-weight="700">2</text>
|
||||
<text x="136" y="430" fill="#5b2420" font-family="Arial, sans-serif" font-size="28" font-weight="700">Один безопасный маршрут</text>
|
||||
<text x="136" y="468" fill="#704e4a" font-family="Arial, sans-serif" font-size="22">Без персональных данных и секретов</text>
|
||||
<text x="136" y="502" fill="#704e4a" font-family="Arial, sans-serif" font-size="22">Один диагностический токен</text>
|
||||
|
||||
<line x1="360" y1="550" x2="360" y2="594" stroke="#a4473d" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="48" y="614" width="624" height="184" rx="22" fill="#fff0ed" stroke="#d1675d" stroke-width="3"/>
|
||||
<circle cx="94" cy="666" r="23" fill="#b34d43"/>
|
||||
<text x="86" y="674" fill="#ffffff" font-family="Arial, sans-serif" font-size="21" font-weight="700">3</text>
|
||||
<text x="136" y="664" fill="#5b2420" font-family="Arial, sans-serif" font-size="28" font-weight="700">Конфигурация и contract</text>
|
||||
<text x="136" y="702" fill="#704e4a" font-family="Arial, sans-serif" font-size="22">proxy_pass • headers • trusted proxy</text>
|
||||
<text x="136" y="738" fill="#704e4a" font-family="Arial, sans-serif" font-size="22">connect • send • read timeout</text>
|
||||
<text x="136" y="774" fill="#704e4a" font-family="Arial, sans-serif" font-size="22">Не менять всё одновременно</text>
|
||||
|
||||
<line x1="360" y1="814" x2="360" y2="858" stroke="#a4473d" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="48" y="878" width="624" height="184" rx="22" fill="#e8f5ef" stroke="#5a9a78" stroke-width="3"/>
|
||||
<circle cx="94" cy="930" r="23" fill="#3d8560"/>
|
||||
<text x="86" y="938" fill="#ffffff" font-family="Arial, sans-serif" font-size="21" font-weight="700">4</text>
|
||||
<text x="136" y="928" fill="#1d4d36" font-family="Arial, sans-serif" font-size="28" font-weight="700">Сопоставить наблюдения</text>
|
||||
<text x="136" y="966" fill="#416451" font-family="Arial, sans-serif" font-size="22">proxy: status • time • upstream</text>
|
||||
<text x="136" y="1002" fill="#416451" font-family="Arial, sans-serif" font-size="22">приложение: запись того же токена</text>
|
||||
<text x="136" y="1038" fill="#416451" font-family="Arial, sans-serif" font-size="22">Нет записи — честно фиксируем unknown</text>
|
||||
|
||||
<line x1="360" y1="1078" x2="360" y2="1122" stroke="#3d8560" stroke-width="5" marker-end="url(#arrow)"/>
|
||||
|
||||
<rect x="48" y="1142" width="624" height="112" rx="22" fill="#1d4d36"/>
|
||||
<text x="82" y="1190" fill="#ffffff" font-family="Arial, sans-serif" font-size="27" font-weight="700">5. Одна правка → повтор</text>
|
||||
<text x="82" y="1226" fill="#c9ead7" font-family="Arial, sans-serif" font-size="22">Сохранить критерий отката и следующий шаг</text>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 5.3 KiB |