docs: AGENTS.md синхрон с фиксами ветки; SPA — копирайт-формулировки
PR checks / web (pull_request) Successful in 33s
PR checks / java (pull_request) Successful in 1m28s
Main: tests, deploy, autotests / web (push) Successful in 35s
Main: tests, deploy, autotests / java (push) Successful in 1m27s
Main: tests, deploy, autotests / images-web (push) Successful in 39s
Main: tests, deploy, autotests / images-app (push) Successful in 2m0s
Main: tests, deploy, autotests / deploy (push) Successful in 3m14s
Main: tests, deploy, autotests / autotests (push) Failing after 2m8s
Main: tests, deploy, autotests / rollback (push) Successful in 3m9s

- AGENTS.md: guard сосуществования StrictOoxml + якорь DocxOnOff в описании
  цепочки; MAX_EXTENT_EMU/axisBounds-реюнит/fitCut в защитных лимитах;
  file-size-threshold=2MB; mem_limit 2g + JAVA_TOOL_OPTIONS; proxy_*_timeout
  300s у gateway; два @BeforeAll; assertSame-список; пиксели — исключение
  GlyphFontTest; новые регрессивные пары
- App.tsx: лимиты без запечённых чисел (их подаёт конфигурация сервера)
- api.ts: 'Framework 7' -> Spring; 405 — от ApiExceptionHandler (после
  фикса 405 больше не дефолт Tomcat)
This commit was merged in pull request #54.
This commit is contained in:
Pjandro
2026-10-26 00:16:25 +00:00
parent bab12c0b79
commit e5de09d5e1
3 changed files with 13 additions and 13 deletions
+9 -9
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -60,7 +60,7 @@ export async function convertDocx(
const json = (await resp.json().catch(() => null)) as { error?: string } | null const json = (await resp.json().catch(() => null)) as { error?: string } | null
throw new ApiError(json?.error ?? `HTTP ${resp.status}`) throw new ApiError(json?.error ?? `HTTP ${resp.status}`)
} }
// Framework 7 отдаёт `filename*=UTF-8''…` (charset в верхнем регистре) — // Spring отдаёт `filename*=UTF-8''…` (charset в верхнем регистре) —
// флаг i обязателен; фолбэк — имя исходника с заменой расширения // флаг i обязателен; фолбэк — имя исходника с заменой расширения
const cd = resp.headers.get('Content-Disposition') ?? '' const cd = resp.headers.get('Content-Disposition') ?? ''
const m = /filename\*=utf-8''([^;]+)/i.exec(cd) const m = /filename\*=utf-8''([^;]+)/i.exec(cd)
@@ -72,7 +72,7 @@ export async function convertDocx(
/** /**
* Требует ли сервер ключ: GET /api/v1/convert (эндпоинт POST-only) — * Требует ли сервер ключ: GET /api/v1/convert (эндпоинт POST-only) —
* 401 пишет ApiKeyFilter при требуемом и непринятом ключе; при выключенной * 401 пишет ApiKeyFilter при требуемом и непринятом ключе; при выключенной
* аутентификации (dev) до фильтра дело не доходит — 405 от Spring. * аутентификации (dev) до фильтра дело не доходит — 405 от ApiExceptionHandler.
* Сетевая ошибка — 'open': не блокировать UI, конвертация сама покажет ошибку. * Сетевая ошибка — 'open': не блокировать UI, конвертация сама покажет ошибку.
*/ */
export async function probeApiKey(): Promise<'open' | 'required'> { export async function probeApiKey(): Promise<'open' | 'required'> {
+2 -2
View File
@@ -130,8 +130,8 @@ export default function App() {
<div> <div>
<h1 className="text-2xl font-semibold">Word → PDF</h1> <h1 className="text-2xl font-semibold">Word → PDF</h1>
<p className="mt-1 text-sm text-muted"> <p className="mt-1 text-sm text-muted">
docx → PDF на docx4j + Apache FOP. Лимиты (файл ≤ 5 МБ, docx → PDF на docx4j + Apache FOP. Лимиты задаёт сервер;
≤ 100 страниц) задаёт сервер; переопределение из формы убрано. переопределение из формы убрано.
</p> </p>
</div> </div>
</header> </header>