Commit Graph

35 Commits

Author SHA1 Message Date
nineap 32b4460b66 Локализует лендинг на 10 языков + RTL для арабского и персидского
Добавляет zh-CN, fa, ar, tr, uk, be, vi, uz словари (170 ключей, идентичная
вложенная структура) к существующим en/ru. lib/locales.ts — единый источник
списка локалей/дефолтной локали/RTL-набора вместо захардкоженного ["en","ru"]
в proxy.ts. language-switcher.tsx: переключение языка резало только
двухбуквенные коды регэкспом (/^\/[a-z]{2}/), из-за чего zh-CN никогда не
матчился и путь задваивался — заменено на honest-поиск по списку locales.

app/[lang]/layout.tsx — dir="rtl"/"ltr" на <html> по локали (SSR, в отличие
от реактивного клиентского переключения в netrunner-app). Header.tsx/
Footer.tsx — разбитое на три <span> имя бренда визуально переворачивалось
Flexbox'ом под dir=rtl ("VPNrunnerNet"), исправлено через dir="ltr" на
самом враппере.

BlogPreview/Faq/Pricing и обе blog-страницы: fallback на *_en-коллекцию
PocketBase, если для языка ещё нет переведённого контента (FAQ-ответы,
детали тарифов, посты блога не тянутся автоматически — это отдельный от
статических словарей CMS-контент), плюс i18n-ключи period1m/period6m/
period1y вместо захардкоженных ru/en-подписей периодов в Pricing.tsx.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-08 22:53:37 +07:00
nineap e568ac76b8 matrix update 2026-07-04 22:40:12 +07:00
nineap 899c54e1fc Unify auth with backend cookie sessions; add dev-deploy pipeline
Auth: drop localStorage session token entirely, talk to netrunner-backend
via credentials:"include" HttpOnly cookies shared over the common parent
domain, and redirect to the account subdomain (ЛК) after login instead of
a dead local /profile route.

Config: NEXT_PUBLIC_* values used by client components (API_URL,
ACCOUNT_ORIGIN, BOT_USERNAME, PB_URL) get inlined into the JS bundle at
image build time and can't be overridden by docker-compose environment at
container start. Moved these reads into server components (page.tsx) and
thread them down as props, so one built image can genuinely serve both
prod and dev by config alone.

CI/CD: split the old single auto-deploy-to-prod workflow into build.yml
(build+push on every push to main) and deploy.yml with deploy-dev (auto,
same VPS as netrunner-backend's dev environment) and deploy-prod (manual
dispatch only) — mirrors netrunner-backend's pipeline shape. Added
docker-compose.dev-remote.yml pointing at the dev backend.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-04 15:26:28 +07:00
nineap afc148478a build fix 2026-07-03 14:27:10 +07:00
nineap 7175a2b450 proxy speedtest update 2026-07-03 14:20:07 +07:00
nineap 052a4081b3 social links 2026-07-03 13:15:39 +07:00
nineap c04194bb85 docs 2026-07-02 23:13:24 +07:00
nineap 31f354d9ca new cursor, speedtest at another page, remove rubbish 2026-05-11 20:22:27 +07:00
nineap 262806eb55 doom and eyes fixes 2026-05-11 15:12:26 +07:00
nineap 36f75eb454 localization updates, terminal errors, etc 2026-05-03 16:36:21 +07:00
nineap 5fc4d05d54 speedtest and ai for toxic comment moderate 2026-05-03 16:12:56 +07:00
nineap 602631e4bd web speedtest fixes 2026-05-03 14:07:28 +07:00
nineap ce77d9e4e3 web speedtest 2026-05-03 14:02:06 +07:00
nineap 24656c6763 pricing update 2026-04-28 13:40:56 +07:00
nineap ff18e70bdb import update 2026-04-28 12:37:21 +07:00
nineap e3617b69eb import update 2026-04-28 12:31:54 +07:00
nineap 48aff24b9b update matrix visual style 2026-04-28 12:22:29 +07:00
nineap 02c021c086 matrix to package 2026-04-27 16:15:42 +07:00
nineap 44d1a87790 eyes fix 2026-04-25 17:29:50 +07:00
nineap dc5a28d159 auth, login, new page 2026-04-25 14:57:50 +07:00
nineap b4f07a7b91 first load optimizations and terminal with comments 2026-04-24 14:33:06 +07:00
nineap 4aac2501cb header close fix and visual fixes 2026-04-24 13:59:13 +07:00
nineap 811bfb99b7 optimizations and fixes 2026-04-24 13:49:04 +07:00
nineap 1d5e8389d0 log error 2026-04-24 13:16:52 +07:00
nineap 8bf72addb2 filter update, hero optimization 2026-04-24 12:10:38 +07:00
nineap 14c4ab2c13 optimization of wasm and component 2026-04-24 05:17:56 +07:00
nineap e2ece2d6aa graphic app for matrix 2026-04-24 05:09:26 +07:00
nineap 315c3bf0cb url fixes 2026-04-24 04:05:30 +07:00
nineap 84f58220d2 rust gateway for cms and comments filter 2026-04-24 03:33:53 +07:00
nineap e8b9eb5c52 loading and seo optimization, big design update 2026-04-24 01:50:41 +07:00
nineap c1bbea9425 guest book 2026-04-19 14:04:20 +07:00
nineap 7389488862 faq parsing info styles update 2026-04-19 13:44:10 +07:00
Трапезников Кирилл Иванович 7acc40ec46 design fixes, tables seperate by language, loading and 404 pages, downloads from cms 2026-04-19 16:05:05 +10:00
Трапезников Кирилл Иванович 4b11fec8cc base with cms integrated 2026-04-18 21:16:55 +10:00
nineap 6404495696 initial commit 2026-04-17 17:06:55 +07:00