claude-mem plugin v10.3.3

This commit is contained in:
Maciej Pienczyn 2026-02-23 10:33:26 +01:00
parent ca2da75d3b
commit 437bec63c1
185 changed files with 80042 additions and 0 deletions

View File

@ -0,0 +1,3 @@
<claude-mem-context>
</claude-mem-context>

View File

@ -0,0 +1,3 @@
<claude-mem-context>
</claude-mem-context>

View File

@ -0,0 +1,3 @@
<claude-mem-context>
</claude-mem-context>

View File

@ -0,0 +1,3 @@
<claude-mem-context>
</claude-mem-context>

View File

@ -0,0 +1,3 @@
<claude-mem-context>
</claude-mem-context>

View File

@ -0,0 +1,3 @@
<claude-mem-context>
</claude-mem-context>

View File

@ -0,0 +1,3 @@
<claude-mem-context>
</claude-mem-context>

View File

@ -0,0 +1,199 @@
============================================================================
WERYFIKACJA DANYCH FIRM NORDA BIZNES — NIP-y
Data przygotowania: 17.02.2026
Źródło: baza nordabiznes.pl (115 firm aktywnych)
============================================================================
Szanowna Pani Magdo,
W nawiązaniu do naszej korespondencji, przesyłam zestawienie firm
zarejestrowanych w systemie nordabiznes.pl z prośbą o weryfikację
i uzupełnienie brakujących danych.
Zestawienie składa się z trzech części:
A) Firmy Z NIP-em (91) — prosimy o sprawdzenie poprawności
B) Firmy BEZ NIP-a (24) — prosimy o uzupełnienie
C) Pytania dotyczące danych — wątpliwości do wyjaśnienia
============================================================================
CZĘŚĆ A: FIRMY Z NIP-em (91) — proszę o weryfikację
============================================================================
Lp. | Nazwa firmy | NIP
-----|----------------------------------------------------|----------------
1 | ALMARES | 588-195-43-85
2 | AMA | 588-000-70-88
3 | ARD Invest | 588-244-03-17
4 | Agis Management Group | 588-245-50-00
5 | Alumech | 588-236-39-82
6 | Ampery | 588-000-13-70
7 | Armet Bis | 958-132-60-08
8 | BORMAX | 588-249-49-80
9 | Bibrokers | 957-109-26-78
10 | Biuro Rachunkowości Perfekta | 588-000-75-33
11 | Chopin Telewizja Kablowa | 588-115-43-60
12 | Chłodnictwo Klimatyzacja Tomasz Nowak | 839-187-67-80
13 | CoolAir | 958-167-83-22
14 | CrisTap | 588-182-79-71
15 | Delkom | 588-194-38-61
16 | EL Professional | 588-244-84-83
17 | Eko Laser | 587-110-88-03
18 | Ekod | 958-168-09-74
19 | Ekofabryka | 588-239-84-89
20 | El Forte | 588-249-96-87
21 | Elzit | 958-116-08-90
22 | Eura-Tech | 588-100-90-08
23 | Event Investycje | 589-202-45-37
24 | Fiume Studio | 588-239-64-96
25 | GRAAL | 588-200-18-59
26 | Green House Systems | 588-225-14-67
27 | HILLOB | 586-005-77-75
28 | Hebel Masiak i Wspólnicy Adwokaci i Radcowie Prawn | 588-206-80-65
29 | Hotel SPA Wieniawa | 587-161-44-00
30 | INPI Sp. z o.o. | 588-246-58-14
31 | Joker | 588-157-17-73
32 | Jubiler Agat | 588-000-51-49
33 | KAMMET | 588-000-44-92
34 | KBMS | 588-243-11-17
35 | KORNIX | 588-217-37-09
36 | Kancelaria Notarialna Henryk Mizak | 588-001-23-04
37 | Kancelaria Rachunkowa Gawin & Wojnowska Sp. z o. o | 588-247-57-87
38 | Kancelaria Radcy Prawnego Joanna Ostrowska | 588-001-91-11
39 | Kancelaria Radcy Prawnego Radosław Skwarło | 588-106-64-08
40 | Kancelaria Radcy Prawnego Łukasz Gilewicz | 958-141-30-49
41 | Kantor Promes | 588-000-75-27
42 | Kaszubski Bank Spółdzielczy | 588-000-79-41
43 | KonkretStudio | 588-193-04-62
44 | Kupsa Coathing | 588-211-95-84
45 | Lean Idea | 957-036-75-35
46 | Lenap Hale | 588-183-94-19
47 | Litwic&Litwic | 957-099-69-00
48 | MKonsult | 588-204-41-71
49 | Mesan | 588-001-20-37
50 | Nadmorski24.pl | 588-228-51-47
51 | Nowatel | 593-240-70-62
52 | Orlex MG | 588-176-23-26
53 | P&P | 588-200-03-05
54 | PG Construction | 588-242-99-07
55 | PHU S&K TOBACCO | 587-164-98-64
56 | PHU TED | 588-244-89-97
57 | PHU Witka | 588-100-31-06
58 | PORTA KMI | 585-000-62-04
59 | PTHU Cezary Mazur | 588-103-44-95
60 | Pelmar | 593-260-81-39
61 | Piotrex | 588-184-67-15
62 | Pixlab Softwarehouse | 586-232-97-46
63 | Portal | 588-183-01-57
64 | Pro-Invest | 588-246-45-94
65 | Pro-Sport | 588-104-41-86
66 | Progress Optima | 588-244-72-13
67 | Pucka Gospodarka Komunalna | 587-020-00-62
68 | ROTOR | 588-243-45-93
69 | RUBO | 588-185-96-00
70 | Radio Norda FM | 588-228-51-47
71 | Riela Polska | 958-132-96-33
72 | Round Two Sp. z o.o. | 589-207-69-65
73 | Rubinsolar | 588-231-53-16
74 | Rumia Invest Park | 588-242-74-98
75 | SCROL | 586-218-28-17
76 | SEO PARTNER | 588-241-54-66
77 | SIM Rumia | 588-247-29-03
78 | STUDIO N°33 Premium Body & Mental | 588-249-50-40
79 | Semerling Security | 588-240-08-78
80 | Sibuk | 587-020-01-16
81 | Sigma Budownictwo | 588-185-69-32
82 | Stalpunkt | 957-116-97-54
83 | TERMO | 588-249-50-40
84 | TTM | 588-228-51-47
85 | UNIMOT Energia i Gaz | 973-042-14-40
86 | VENCODE | 584-281-19-19
87 | VINDOR | 588-247-96-96
88 | VOLTRIM TRADE | 583-306-62-21
89 | WDX | 521-101-24-80
90 | Waterm | 588-183-52-32
91 | Wejherplast | 588-242-98-30
-----|----------------------------------------------------|----------------
RAZEM: 91 firm z NIP-em
============================================================================
CZĘŚĆ B: FIRMY BEZ NIP-a (24) — prosimy o uzupełnienie
============================================================================
Lp. | Nazwa firmy | NIP (do uzupełnienia)
-----|----------------------------------------------------|----------------------
1 | 3W | ___-___-__-__
2 | Aertom | ___-___-__-__
3 | Alter Energy | ___-___-__-__
4 | BIS Maszyny | ___-___-__-__
5 | Dom Dziecka Pro-Sport | ___-___-__-__
6 | Elgreen EM | ___-___-__-__
7 | Family Art | ___-___-__-__
8 | IT Space | ___-___-__-__
9 | Informatyk1 | ___-___-__-__
10 | Iwona Spaleniak Coaching | ___-___-__-__
11 | Kancelaria Ostrowski i Wspólnicy | ___-___-__-__
12 | Kaszubia 2030 | ___-___-__-__
13 | Omega Energy | ___-___-__-__
14 | Orlex Design | ___-___-__-__
15 | PZU TFI | ___-___-__-__
16 | Podróże i My | ___-___-__-__
17 | Renk Hurtownie | ___-___-__-__
18 | Rozsądni Bracia | ___-___-__-__
19 | Thai Union Poland | ___-___-__-__
20 | Usługi Ogólnobudowlane Sławomir Grula | ___-___-__-__
21 | Wakat | ___-___-__-__
22 | Wikęd | ___-___-__-__
23 | Wodmel | ___-___-__-__
24 | Your Welcome | ___-___-__-__
-----|----------------------------------------------------|----------------------
RAZEM: 24 firm bez NIP-a
ŁĄCZNIE: 91 + 24 = 115 firm
============================================================================
CZĘŚĆ C: PYTANIA I WĄTPLIWOŚCI DO WYJAŚNIENIA
============================================================================
1. STUDIO N°33 i TERMO — obie firmy mają ten sam NIP 588-249-50-40
i ten sam KRS 0001025363. Czy to ta sama firma pod dwoma nazwami?
Czy powinny być połączone w jeden wpis?
2. Nadmorski24.pl, Radio Norda FM i TTM — wszystkie trzy mają
ten sam NIP 588-228-51-47 i KRS 0000311636.
Czy to marki tej samej firmy (Twoja Telewizja Morska)?
Jak powinny być prezentowane w katalogu?
3. Alter Energy i Fiume Studio — oba podmioty mają ten sam
KRS 0000418017. Fiume Studio ma NIP 588-239-64-96, a Alter Energy
nie ma NIP-a. Jakie jest powiązanie między tymi firmami?
4. "Wakat" — czy to rzeczywista firma czy placeholder?
Czy powinien zostać usunięty z katalogu?
5. W naszej bazie mamy 115 firm, a na stronie norda-biznes.info
widnieje 85 członków. 30 dodatkowych firm to prawdopodobnie
nowsi członkowie jeszcze nie opublikowani na stronie, lub firmy
dodane z danych od p. Artura. Czy mogłaby Pani potwierdzić,
które firmy są aktualnymi członkami NORDA Biznes?
============================================================================
PODSUMOWANIE
============================================================================
Firmy z NIP-em: 91
Firmy bez NIP-a: 24
ŁĄCZNIE: 115
Prosimy o:
- Sprawdzenie poprawności NIP-ów w części A
- Uzupełnienie brakujących NIP-ów w części B
- Odpowiedzi na pytania w części C
Z góry dziękujemy za pomoc!
Maciej Pieńczyn
INPI Sp. z o.o.

3
database/CLAUDE.md Normal file
View File

@ -0,0 +1,3 @@
<claude-mem-context>
</claude-mem-context>

View File

@ -0,0 +1,3 @@
<claude-mem-context>
</claude-mem-context>

242
docs/CLAUDE-REFERENCE.md Normal file
View File

@ -0,0 +1,242 @@
# CLAUDE-REFERENCE.md — Szczegóły operacyjne (czytane na żądanie)
Przeniesione z CLAUDE.md w celu optymalizacji kontekstu. Claude Code czyta ten plik gdy potrzebuje szczegółów.
## Auto Claude - Rozwiązywanie problemów
### Pliki stanu (NIE COMMITOWAĆ!)
- `.auto-claude-security.json`, `.auto-claude-status`, `.auto-claude/`
- Są w `.gitignore` + pre-commit hook automatycznie je usuwa ze staging
### Konflikty merge z Auto Claude
```bash
# 1. Sprawdź konflikt
git status
# 2. Usuń pliki Auto Claude z merge
git rm .auto-claude-security.json .auto-claude-status
# 3. Dokończ merge
git commit -m "Merge branch 'feature' - resolve Auto Claude file conflicts"
```
### Worktrees
```bash
git worktree list # Lista aktywnych
git worktree remove .auto-claude/worktrees/tasks/<task-id> # Usuń nieaktualny
git branch -d auto-claude/<task-id> # Usuń branch
```
## Disaster Recovery — Szczegóły
**Pełna dokumentacja:** `docs/DR-PLAYBOOK.md`
### Metryki SLA
| Metryka | Wartość |
|---------|---------|
| **RTO** | 30-60 min |
| **RPO** | 1 godzina |
### Lokalizacje backupów
| Lokalizacja | Ścieżka | Retencja |
|-------------|---------|----------|
| Hourly (lokalnie) | `/var/backups/nordabiz/hourly/` | 24h |
| Daily (lokalnie) | `/var/backups/nordabiz/daily/` | 30 dni |
| Offsite (PBS) | `10.22.68.127:/backup/nordabiz/` | 30 dni |
| VM Snapshots | Proxmox | 3 snapshoty |
### Szybkie przywracanie
```bash
# Lista dostępnych backupów
ssh maciejpi@10.22.68.249 "ls -lt /var/backups/nordabiz/hourly/ | head -5"
# Restore z backupu
ssh maciejpi@10.22.68.249 "sudo /var/www/nordabiznes/scripts/dr-restore.sh /var/backups/nordabiz/hourly/nordabiz_YYYYMMDD_HH.dump"
# Weryfikacja
curl -I https://nordabiznes.pl/health
```
### Cron backupy (automatyczne)
```bash
# Backup co godzinę
0 * * * * postgres pg_dump -Fc nordabiz > /var/backups/nordabiz/hourly/nordabiz_$(date +\%Y\%m\%d_\%H).dump
# Backup dzienny
0 2 * * * postgres pg_dump -Fc nordabiz > /var/backups/nordabiz/daily/nordabiz_$(date +\%Y\%m\%d).dump
# Sync do PBS
0 4 * * * root rsync -avz /var/backups/nordabiz/daily/ maciejpi@10.22.68.127:/backup/nordabiz/daily/
```
## Szablon profilu firmy
### Docelowa struktura (po optymalizacji)
```
1. Header (nazwa, kategoria, badge, krótki opis)
2. Pasek kontaktowy (www, email, telefon, lokalizacja)
3. O firmie (połączone opisy)
4. Usługi i kompetencje (połączone tagi)
5. Wyróżniki (połączone z wartościami)
6. Dane kontaktowe (pełne karty)
7. Informacje prawne i biznesowe
8. Social Media (wszystkie 6 platform)
9. Strona WWW (analiza techniczna)
```
**Szablon:** `templates/company_detail.html`
## ZOP Kaszubia News (ZOPK) — Szczegóły
System monitoringu newsów projektu **Zielony Okręg Przemysłowy Kaszubia**.
Panel: `/admin/zopk/news`
### Tematy istotne
- Zielony Okręg Przemysłowy Kaszubia
- Elektrownia jądrowa (Lubiatowo-Kopalino)
- Offshore wind Bałtyk (Baltic Power, Baltica)
- Via Pomerania, Droga Czerwona
- Kongsberg (inwestycje w Rumi)
- Izba Przedsiębiorców NORDA
### Tematy do odrzucenia
- Turystyka na Kaszubach
- Polityka ogólnopolska
- Inne regiony Polski
- Wypadki, clickbait
### Reguły auto-approve (WAŻNE!)
**Próg: score >= 3**
| Score | Status |
|-------|--------|
| 1-2 | `pending` |
| 3-5 | `auto_approved` |
**Plik:** `zopk_news_service.py` (linie 890, 1124, 1145)
## Cykliczna aktualizacja danych ze stron www firm
### Mechanizm
Skrypt `scripts/website_content_updater.py` automatycznie:
1. Pobiera treść strony www każdej firmy członkowskiej
2. Używa **Gemini 3 Flash** (darmowy plan) do ekstrakcji:
- `services_extracted` - lista usług oferowanych przez firmę
- `main_keywords` - główne słowa kluczowe
- `content_summary` - krótkie podsumowanie działalności
3. Zapisuje do tabeli `company_website_analysis`
### Uruchamianie ręczne
```bash
# Wszystkie firmy
cd /var/www/nordabiznes
/var/www/nordabiznes/venv/bin/python3 scripts/website_content_updater.py
# Konkretna firma
/var/www/nordabiznes/venv/bin/python3 scripts/website_content_updater.py --company-id 26
# Tylko firmy nieaktualizowane 30+ dni
/var/www/nordabiznes/venv/bin/python3 scripts/website_content_updater.py --stale-days 30
# Podgląd bez zapisywania (dry-run)
/var/www/nordabiznes/venv/bin/python3 scripts/website_content_updater.py --dry-run
```
### Cron (automatyczne uruchamianie)
Uruchamiany **1-ego każdego miesiąca o 3:00** dla firm nieaktualizowanych 30+ dni:
```bash
0 3 1 * * cd /var/www/nordabiznes && /var/www/nordabiznes/venv/bin/python3 scripts/website_content_updater.py --stale-days 30 >> /var/log/nordabiznes/website_updater.log 2>&1
```
Logi: `/var/log/nordabiznes/website_updater.log`
Rate limiting: 2s między firmami, ~150 firm = ~5 min
## NordaGPT — Dostępne modele w `gemini_service.py`
| Alias | Model ID | Opis |
|-------|----------|------|
| `flash` | `gemini-2.5-flash` | Ogólnego przeznaczenia |
| `flash-lite` | `gemini-2.5-flash-lite` | Ultra tani ($0.10/$0.40 per 1M) |
| `pro` | `gemini-2.5-pro` | Najlepszy reasoning |
| `flash-2.0` | `gemini-2.0-flash` | Poprzednia generacja (wycofywany 31.03.2026) |
| `3-flash` | `gemini-3-flash-preview` | **AKTUALNY** - 7x lepszy reasoning, thinking mode |
| `3-pro` | `gemini-3-pro-preview` | Premium - 2M context |
### Thinking Mode
Użytkownicy mogą wybierać poziom rozumowania AI w UI chatu (dropdown obok badge "Gemini 3").
| Poziom | Opis | Zastosowanie |
|--------|------|--------------|
| **Błyskawiczny** (minimal) | Najszybsze odpowiedzi | Proste pytania: "kto?", "gdzie?" |
| **Szybki** (low) | Zrównoważony | Większość pytań o firmy i usługi |
| **Głęboki** (high) | Maksymalna analiza | Złożone pytania, rekomendacje, strategia |
**Zmiana poziomu:**
- UI: Dropdown w headerze chatu
- API: `POST /api/chat/settings` z `{"thinking_level": "high"}`
- Zapisywane w sesji użytkownika
### UI Badge
W `templates/chat.html` badge w headerze: `<span class="chat-header-badge">Gemini 3</span>`
## Prezentacja dla członków Izby
### Cel projektu
Stworzenie materiałów wideo prezentujących portal NordaBiz dla członków Izby NORDA.
### Produkty końcowe
1. **Podcast NotebookLM** (2-3 min) - rozmowa AI o portalu
2. **Zajawka Remotion** (30s) - scenariusz "Problem → Rozwiązanie"
3. **Tutorial wideo** (2-3 min) - nagrania portalu + dialogi Zofia/Marek
4. **Integracja z portalem** - Akademia + widget na dashboardzie
### Dokument źródłowy dla NotebookLM
`docs/notebooklm-source.md` - markdown do wgrania do notebooklm.google.com
### Scenariusz zajawki 30s (Remotion)
```
[0-8s] "Szukasz partnera do projektu?"
[8-16s] "Nie wiesz, kto w Izbie ma potrzebne kompetencje?"
[16-24s] "NordaGPT zna 150 firm i pomoże Ci znaleźć"
[24-30s] "nordabiznes.pl - Twoja sieć kontaktów"
```
### Głosy edge-tts
- Marek: `pl-PL-MarekNeural` (męski)
- Zofia: `pl-PL-ZofiaNeural` (żeński)
### GIFy do nagrania (Chrome MCP)
1. Strona główna zalogowanego
2. Katalog firm + filtrowanie
3. Profil firmy
4. Chat NordaGPT - pytanie
5. Chat NordaGPT - odpowiedź
6. Forum
7. Kalendarz
8. Tablica B2B
### Pliki Remotion
- Lokalizacja: `/Users/maciejpi/claude/projects/active/remotion/my-video/`
- Komponenty: `NordaBizZajawka.tsx`, `NordaBizTutorial.tsx`
- Audio: `public/audio/`, `public/voice/tutorial/`
- Nagrania: `public/recordings/*.gif`
## Dodatkowe rejestry (TODO — przyszłe integracje)
| Rejestr | Opis | API |
|---------|------|-----|
| **CRBR** | Centralny Rejestr Beneficjentów Rzeczywistych | https://crbr.podatki.gov.pl |
| **SUDOP** | System Udostępniania Danych o Pomocy Publicznej | https://sudop.uokik.gov.pl |

3
docs/CLAUDE.md Normal file
View File

@ -0,0 +1,3 @@
<claude-mem-context>
</claude-mem-context>

208
docs/PROJECT_CONTEXT.md Normal file
View File

@ -0,0 +1,208 @@
# NordaBiznes.pl - Project Context (Source of Truth)
This document captures the current, consolidated project knowledge for the
Norda Biznes Partner platform. It is intended for onboarding, maintenance,
and AI assistants. It is not a marketing page.
Last updated: 2026-02-03
---
## 1) Product Summary
- Name: Norda Biznes Partner
- Purpose: Business directory and networking platform for Norda Biznes members
- Production: https://nordabiznes.pl
- Status: LIVE since 2025-11-23
- Coverage: 80 member companies (100% of current membership)
- Target: 150 companies (marketing target)
Primary capabilities:
- Company directory and detailed profiles
- Advanced search (FTS + fuzzy + synonyms)
- AI chat assistant (Gemini)
- Admin dashboards: SEO, social, GBP, IT, news moderation
- User accounts with roles and permissions
- REST APIs for key features
---
## 2) Architecture Overview
High-level:
- 3-tier architecture: NPM Reverse Proxy -> Flask/Gunicorn -> PostgreSQL
- Security zones: Public -> DMZ -> App -> Data
- External APIs: Gemini, Brave Search, PageSpeed, Google Places, KRS, MS Graph
Key documentation:
- docs/architecture/01-system-context.md
- docs/architecture/02-container-diagram.md
- docs/architecture/03-deployment-architecture.md
- docs/architecture/04-flask-components.md
- docs/architecture/05-database-schema.md
- docs/architecture/06-external-integrations.md
- docs/architecture/07-network-topology.md
- docs/architecture/08-critical-configurations.md (CRITICAL)
- docs/architecture/09-security-architecture.md
- docs/architecture/flows/*
---
## 3) Codebase Layout
Core entrypoints:
- app.py: main Flask app, routes, init, services
- database.py: SQLAlchemy models and enums
- config.py: environment config (dev/prod/testing)
- extensions.py: CSRF, login, rate limiter
Services:
- gemini_service.py: Gemini SDK, models, cost tracking
- nordabiz_chat.py: AI chat engine + context
- search_service.py: unified search (NIP/REGON/FTS/fuzzy)
- krs_api_service.py, gbp_audit_service.py, it_audit_service.py, email_service.py
Blueprints:
- blueprints/* (auth, public, admin, audit, api, forum, membership, community,
education, it_audit, reports, zopk, etc.)
- blueprints/__init__.py: phased registration + endpoint aliases
Templates and static:
- templates/: Jinja2 templates
- static/: CSS/JS/assets (custom, no JS framework)
---
## 4) Key Flows (Docs)
Detailed flows (Mermaid sequence diagrams):
- docs/architecture/flows/01-authentication-flow.md
- docs/architecture/flows/02-search-flow.md
- docs/architecture/flows/03-ai-chat-flow.md
- docs/architecture/flows/04-seo-audit-flow.md
- docs/architecture/flows/05-news-monitoring-flow.md
- docs/architecture/flows/06-http-request-flow.md (CRITICAL port 5000)
---
## 5) Data Model Highlights
database.py defines models for:
- Users, Companies, Categories, Services, Competencies
- Chat conversations and messages
- Audits: SEO, GBP, IT, KRS
- Social media, events, forum, classifieds, notifications
- Analytics and logging
Roles:
- SystemRole (UNAFFILIATED, MEMBER, EMPLOYEE, MANAGER, OFFICE_MANAGER, ADMIN)
- CompanyRole (NONE, VIEWER, EMPLOYEE, MANAGER)
---
## 6) AI and Search
Search:
- NIP/REGON direct lookup
- Synonym expansion (Polish)
- PostgreSQL FTS + pg_trgm fuzzy matching
- Scoring by fields (name/description/services/competencies/city)
AI Chat:
- Uses search_service for candidate companies
- Limits context size (company count and message history)
- Tracks cost in DB
Gemini:
- Model registry in gemini_service.py
- Supports Gemini 3 models and thinking mode
---
## 7) External Integrations
Configured APIs:
- Google Gemini (AI chat)
- Brave Search (news monitoring)
- Google PageSpeed (SEO audits)
- Google Places (GBP audit)
- KRS API (company registry)
- Microsoft Graph (email service)
Environment variables:
- docs/SECURITY.md (required + optional vars)
- .env (dev) and /var/www/nordabiznes/.env (prod)
---
## 8) Deployment and Ops
Production:
- App server: NORDABIZ-01 (10.22.68.249)
- DB: PostgreSQL on same host (5432)
- Reverse proxy: NPM on 10.22.68.250
- Domain: nordabiznes.pl
Staging:
- Server: NORDABIZ-STAGING-01 (10.22.68.248)
- Domain: staging.nordabiznes.pl
CRITICAL CONFIG:
- NPM must forward to port 5000 (NOT 80)
- docs/architecture/08-critical-configurations.md
- Incident: docs/INCIDENT_REPORT_20260102.md
Deployment workflow:
- push to GitHub and Gitea
- pull on staging, test
- pull on prod, run migrations via scripts/run_migration.py
- restart systemd service
---
## 9) Testing
AI quality tests:
- run_ai_quality_tests.py
- tests/ai_quality_test_cases.json
Test structure:
- tests/unit, tests/integration, tests/e2e, tests/security, tests/smoke
---
## 10) Scripts
scripts/ includes:
- data imports (CEIDG/KRS)
- SEO/GBP/Social audits
- migrations and data fixes
- ZOPK knowledge pipeline
---
## 11) Known Documentation Gaps
ARCHITECTURE_VERIFICATION_REPORT.md lists warnings:
- Some models documented but not found in database.py
- Verify documentation vs code before relying on model lists
---
## 12) Where To Look First
Onboarding:
- README.md
- CLAUDE.md
- docs/DEVELOPMENT.md
- docs/architecture/README.md
- docs/architecture/08-critical-configurations.md
---
## 13) Update Policy
When changes are made:
- Update this file if it affects architecture, deployment, models, or key flows
- Keep it short and accurate; link to deeper docs for details

View File

@ -0,0 +1,272 @@
# Badania API dla Audytu SEO — Raport 2026
**Data:** 2026-02-08
**Zakres:** Bing Webmaster Tools API, Brave Search API, IndexNow API
**Cel:** Ocena możliwości integracji dla platformy NordaBiz (150 firm)
---
## 1. BING WEBMASTER TOOLS API
### Czy API istnieje?
**TAK.** API oficjalnie wspierane przez Microsoft, dostępne via Microsoft Learn.
### Dostępne Endpointy
| Endpoint | Funkcja | Notatka |
|----------|---------|---------|
| `GetUrlSubmissionQuota` | Sprawdzenie pozostałego limitu zgłoszeń | Limity dzienne/miesięczne |
| **URL Submission (Single)** | Zgłoszenie pojedynczego URL | Indeksowanie natychmiastowe |
| **URL Submission (Batch)** | Zgłoszenie wielu URL jednocześnie | API URL submission (preferowane) |
| **Sitemaps Management** | Zgłoszenie/zarządzanie mapami witryny | — |
| **Rank & Traffic Stats** | Dane o rankingach i ruchu | Historyczne dane wydajności |
| **Link Details** | Analiza linków wychodzących | Backlinki do domeny |
| **Keyword Details** | Dane o słowach kluczowych | Wyniki dla queryów |
| **Crawl Stats** | Statystyki crawlowania przez Binga | HTTP status, blokady, indeksowanie (6 mies. historii) |
**Endpoint URL:** `https://ssl.bing.com/webmaster/api.svc/json/{METHOD_NAME}?apikey={API_KEY}`
### Autentykacja
| Typ | Szczegóły | Bezpieczeństwo |
|-----|-----------|----------------|
| **API Key** | Generowany per user w Bing Webmaster Tools → Settings → API Access | Prosty, ale jedna klucz dla wszystkich serwisów |
| **OAuth 2.0** | Rekomendowany, token dostępu generowany z Bing Webmaster Tools | Bezpieczniejszy, standard nowoczesny |
⚠️ **Ważne:** Jeśli klucz zostanie skompromitowany, musi być usunięty i wygenerowany nowy (wszystkie aplikacje tracą dostęp).
### Dane dostępne
- ✅ Zapytania wyszukiwania (search queries)
- ✅ Dane crawlowania (crawl statistics)
- ✅ Raporty wydajności SEO (rank & traffic)
- ✅ Zgłoszenia URL (URL submission)
- ⚠️ **Brak:** Realtime ranking position, detailed competitor analysis
### Limity i koszt
| Parametr | Wartość |
|----------|---------|
| **Rate Limit** | Zależy od planu (konkretne wartości w dokumentacji Azure) |
| **Limit URL dziennie** | Zależy od potwierdzenia domeny i historii |
| **Koszt** | **Bezpłatny** (wbudowany w Bing Webmaster Tools) |
| **Ogół limit** | HTTP 429 przy przekroczeniu |
### Czy jest istotny dla polskiego rynku?
⚠️ **OGRANICZONA ISTOTNOŚĆ**
| Metryka | Wartość | Wniosek |
|---------|---------|---------|
| Udział Binga w Polsce | ~3-4% (szacunek) | Znacznie poniżej 50% Google |
| Europejski kontekst | 3.95% (Europa), 90.25% (Google) | Drugorzędny kanał |
| Siła demograficzna | Wyższy purchasing power niż u Google | Wartościowi użytkownicy, ale mało |
| Yahoo (powered by Bing) | Marginalny w Polsce | Prawie żaden impact |
**Rekomendacja:** Dla 150 firm w Polsce — **NISKA ISTOTNOŚĆ**. Bardziej wartościowy dla anglojęzycznych rynków (USA, UK) lub ekspansji międzynarodowej.
### Złożoność implementacji dla 150 firm
| Aspekt | Poziom | Notatka |
|--------|--------|---------|
| Integracja techniczna | **Łatwy** | REST API, obsługuje Python, cURL |
| Onboarding firm | **Średni** | Każda firma musi mieć Bing Webmaster Tools + wygenerować API key |
| Zarządzanie kluczami | **Średni** | Jeden klucz per user (zarządzanie 150 userów) |
| Obsługa błędów | **Łatwy** | REST + JSON, standard |
| **Średni czas integracji na firmę** | **20-30 min** | Setup Bing + API key generation |
**Infrastruktura:** `O(150)` czasu onboardingu per firma, jedna integracja API. Dobrze skaluje się dla batch operations (Batch URL Submission).
---
## 2. BRAVE SEARCH API
### Obecne możliwości
Brave Search API zapewnia dostęp do **niezależnego indeksu WWW** (30+ miliardów stron, aktualizowanych codziennie).
| Możliwość | Status | Szczegóły |
|-----------|--------|-----------|
| **Web Search** | ✅ | 30B+ stron, 100M+ aktualizacji dziennie |
| **Citation Checking** | ✅ | AI-synthesized answers z cytatami (inline references) |
| **SERP Results** | ✅ | Tytuły, URL, opisy, snippety |
| **Local Search** | ✅ | Dedicated endpoint |
| **Images** | ✅ | Dedicated endpoint |
| **News** | ✅ | Dedicated endpoint |
| **Rankings Position** | ❌ | Brak — tylko search results |
| **Rank History** | ❌ | Brak |
| **Backlinks** | ❌ | Brak |
### Autentykacja
**Typ:** API Key via `X-Subscription-Token` header
**Metoda:** Token-based (POST/GET requests)
**Bezpieczeństwo:** Standard
```bash
curl -X GET "https://api.search.brave.com/res/v1/web/search?q=query" \
-H "X-Subscription-Token: YOUR_TOKEN"
```
### Limity i ceny
| Plan | Koszt | Rate Limit | Zapytań/miesiąc | Użytek |
|------|-------|-----------|-----------------|--------|
| **Free** | $0 | 1 req/s | 2,000 | Testowanie |
| **Base** | $3 per 1K | 20 req/s | 20M | SMB |
| **Pro** | $5 per 1K | 50 req/s | Unlimited | Enterprise |
| **Enterprise** | Custom | Custom | Custom | Custom |
**CPM (Cost Per Mille):** $3-5 na 1000 zapytań (tańszy niż Google's $5 CPM)
**Wydajność:** 95% zapytań < 1 sekunda (Brave obsługuje 50M+ wyszukiwań dziennie)
### Dane SEO-relevantne
✅ **Możliwe do ekstrakcji:**
- SERP results (pozycje, snippety)
- Citation checking (dla fact-checking)
- AI-synthesized summaries (aggregate answers)
- Rerank feature (custom domain boosting/removal)
❌ **Niemożliwe:**
- Current ranking position dla konkretnej domeny
- Historical trend data
- Backlink analysis
- Keyword difficulty scores
### Zastosowania
| Przypadek | Wykonalne? | Rekomendacja |
|-----------|-----------|--------------|
| Citation Checking | ✅ **TAK** | Brave jest doskonały — NordaBiz już go używa |
| Competitor Analysis (snapshot) | ✅ **TAK** | Możliwe dla pojedynczych queryów (SERP snapshots) |
| SERP Feature Detection | ✅ **TAK** | Analiza wyników dla local pack, featured snippets, itp. |
| Real-time Rankings | ❌ | Nie — brak históry pozycji |
| Keyword Tracking | ❌ | Nie — brak Tracking API |
### Porównanie z Google Custom Search API
| Wymiar | Brave | Google |
|--------|-------|--------|
| **Niezależny indeks** | ✅ Własny 30B+ | ❌ Własny index, ale ograniczone API |
| **Cena** | $3-5 CPM | $5+ CPM |
| **Dostępność** | ✅ Open, Free tier istnieje | ⚠️ Ograniczone, wymaga kontaktu handlowego |
| **Jakość spam-filtering** | ✅ Wyraźnie zoptymalizowany | ✅ Świetny (ale droższy) |
| **SERP-specific data** | ✅ Full results | ✅ Full results |
| **Ranking position API** | ❌ | ❌ |
| **Privacy** | ✅ Brak trackingu | ❌ Analytics tracking |
**Wniosek:** Brave jest **lepszą alternatywą** dla SEO audytów opartych na SERP snapshots. Google Custom Search jest bardziej dla custom search experience niż SEO data.
---
## 3. INDEXNOW API
### Co to jest IndexNow?
**Definicja:** Protokół notyfikacyjny umożliwiający właścicielom stron natychmiastowe powiadomienie wyszukiwarek o zmianach treści (dodane, zaktualizowane, usunięte URL).
**Mechanizm:** Prosty ping do wyszukiwarek → priorytetowe crawlowanie zmienionego URL (zamiast czekać na autodiscovery).
**Format:** REST API + XML sitemap extensions
### Jak działa?
```
1. Właściciel strony → IndexNow API
2. Wysyła: { "urlList": ["url1", "url2"], "keyLocation": "url" }
3. Wyszukiwarka → Natychmiast crawluje URL
4. Efekt: Indeksacja w minuty (zamiast dni/tygodni)
```
### Które wyszukiwarki wspierają IndexNow?
✅ **Wspierające (2026):**
- **Bing** (Microsoft) — pełna obsługa
- **Yahoo** (powered by Bing) — pośrednia
- **Yandex** (rosyjski) — pełna obsługa (znaczący w Europie Wschodniej)
- **Seznam.cz** (czeski) — pełna obsługa
- **Naver** (koreański) — pełna obsługa
- **Yep** (nowy, independentny index) — pełna obsługa
❌ **Nie wspierające:**
- **Google** — Utrzymuje własne Indexing API (bardziej restrykcyjne, dla verified partnerships)
### Czy IndexNow jest dla audytu SEO?
⚠️ **NIE — głównie dla URL submission, ale ma elementy audytu.**
| Funkcja | Dostępna? | Notatka |
|---------|-----------|---------|
| **URL Submission** | ✅ **TAK** | Główne zastosowanie |
| **SEO Audit** | ⚠️ **Częściowo** | IndexNow dashboard ma "SEO audit, technical audit" |
| **Indexed Pages Report** | ✅ | Report indeksowanych stron (w Google Search Console) |
| **Crawl Data** | ❌ | Brak — IndexNow to submission-only |
| **Search Queries** | ❌ | Brak — to praca dla Bing Webmaster Tools |
**Główny cel:** Przyspieszenie indeksacji, nie analiza SEO.
### Integracja z NordaBiz — czy warte?
| Aspekt | Ocena | Wniosek |
|--------|-------|---------|
| Potrzeba dla 150 firm | ⭐⭐⭐ | Tak — jeśli firmy często publikują treści |
| Implementacja | ⭐⭐⭐⭐ | Bardzo łatwa (REST API) |
| Wpływ na SEO | ⭐⭐ | Przyspieszenie indeksacji, nie ranking |
| Koszt | ✅ Bezpłatny | — |
| Obsługa multilingual | ✅ | Wspiera wszystkie języki |
**Rekomendacja:** Wdrożyć IndexNow **na stronie NordaBiz głównej** (dla nowych firm, profili). Dla audytu SEO firm — **drugorzędne znaczenie** (to URL submission, nie analytics).
---
## PODSUMOWANIE I REKOMENDACJE
### Dla audytu SEO NordaBiz (150 firm)
| API | Prioritet | Uzasadnienie |
|-----|-----------|--------------|
| **Brave Search API** | 🔴 **WYSOKIE** | ✅ Już wdrażany, doskonały dla citation checking + SERP snapshots |
| **Bing Webmaster Tools API** | 🟡 **ŚREDNIE** | ⚠️ Limity rynku (3-4% Poland), ale użyteczny dla międzynarodowej ekspansji |
| **IndexNow API** | 🟡 **ŚREDNIE** | ✅ Przydatne dla szybkiego indexowania, ale nie dla analityki SEO |
### Strategia implementacji (Phase 1-2)
**Phase 1 (Q1 2026) — BRAVE SEARCH:**
- ✅ Rozszerzyć obecne citation checking
- ✅ Dodać SERP snapshot tracking dla wybranych konkurentów (5-10 firm)
- ✅ Zbudować "SERP Feature Detection" (local pack, featured snippets)
**Phase 2 (Q2 2026) — INDEXNOW + BING (opcjonalnie):**
- ✅ Wdrożyć IndexNow na stronie głównej NordaBiz
- ⚠️ Bing Webmaster API — tylko jeśli firmy chcą międzynarodowego reach (de, uk, belarusia)
### Złożoność implementacji
| API | Time-to-market | Infrastruktura | Uwagi |
|-----|----------------|-----------------|-------|
| Brave | 1-2 tygodnie | Minimize (już setup) | Rozszerzyć istniejące |
| IndexNow | 3-5 dni | Minimal (REST API) | Plugin/library dostępne |
| Bing | 2-3 tygodnie | Moderate (OAuth/key mgmt) | Per-firma onboarding |
---
## REFERENCJE
- [Bing Webmaster Tools API - Microsoft Learn](https://learn.microsoft.com/en-us/bingwebmaster/)
- [Bing Webmaster API Getting Access](https://learn.microsoft.com/en-us/bingwebmaster/getting-access)
- [Brave Search API Official](https://brave.com/search/api/)
- [Brave Search API vs Google Comparison](https://brave.com/search/api/guides/what-sets-brave-search-api-apart/)
- [IndexNow Official Documentation](https://indexnow.org/)
- [IndexNow Search Engines Support](https://indexnow.org/searchengines)
- [Bing Market Share Poland 2025](https://gs.statcounter.com/search-engine-market-share/all/poland)
- [Bing Webmaster URL Submission API](https://www.bing.com/webmasters/url-submission-api)
- [Best SERP APIs 2026 - Scrapfly](https://scrapfly.io/blog/posts/google-serp-api-and-alternatives)
- [Brave Search API Pricing and Rates](https://api-dashboard.search.brave.com/app/documentation/web-search/responses)
---
**Status dokumentu:** Draft
**Autor:** Claude Code
**Zaktualizowano:** 2026-02-08

View File

@ -0,0 +1,323 @@
<mxfile host="draw.io" modified="2026-02-12" agent="Claude Code" type="device">
<diagram id="a2-er" name="Schemat Bazy Danych (ER)">
<mxGraphModel dx="1400" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1800" pageHeight="1200" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="title" value="NordaBiz — Schemat Bazy Danych (Entity-Relationship)" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=22;fontStyle=1;fontColor=#1a1a2e;" vertex="1" parent="1">
<mxGeometry x="430" y="15" width="620" height="36" as="geometry"/>
</mxCell>
<mxCell id="subtitle" value="19 domen funkcjonalnych | 80+ tabel | PostgreSQL | SQLAlchemy 2.0" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#888;" vertex="1" parent="1">
<mxGeometry x="480" y="48" width="480" height="20" as="geometry"/>
</mxCell>
<!-- DOMAIN 1: USERS (lewy-góra) -->
<mxCell id="d1_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;shadow=1;" vertex="1" parent="1">
<mxGeometry x="30" y="80" width="260" height="195" as="geometry"/>
</mxCell>
<mxCell id="d1_title" value="&lt;b style=&quot;color:#1565C0&quot;&gt;1. Użytkownicy&lt;/b&gt;&lt;font style=&quot;font-size:9px;color:#888&quot;&gt; (5 tabel)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="40" y="86" width="170" height="20" as="geometry"/>
</mxCell>
<mxCell id="d1_t1" value="&lt;b&gt;users&lt;/b&gt; — konta, role, 2FA" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="40" y="110" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d1_t2" value="&lt;b&gt;user_companies&lt;/b&gt; — M:M multi-company" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="40" y="134" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d1_t3" value="&lt;b&gt;user_company_permissions&lt;/b&gt; — delegacje" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="40" y="158" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d1_t4" value="&lt;b&gt;user_sessions&lt;/b&gt; + &lt;b&gt;user_blocks&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#BBDEFB;strokeColor=#1565C0;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="40" y="182" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d1_t5" value="&lt;b&gt;oauth_tokens&lt;/b&gt; — Google/Meta OAuth" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="40" y="206" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d1_t6" value="&lt;b&gt;user_notifications&lt;/b&gt; — powiadomienia" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#BBDEFB;strokeColor=#1565C0;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="40" y="230" width="240" height="20" as="geometry"/>
</mxCell>
<!-- DOMAIN 2: COMPANIES (centrum-góra) — HUB -->
<mxCell id="d2_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#1a1a2e;strokeColor=#1a1a2e;shadow=1;" vertex="1" parent="1">
<mxGeometry x="340" y="80" width="340" height="275" as="geometry"/>
</mxCell>
<mxCell id="d2_title" value="&lt;b style=&quot;color:#fff;font-size:13px&quot;&gt;2. Katalog Firm (HUB)&lt;/b&gt;&lt;font style=&quot;font-size:9px;color:#aaa&quot;&gt; (14 tabel)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="350" y="86" width="260" height="20" as="geometry"/>
</mxCell>
<mxCell id="d2_t1" value="&lt;b style=&quot;color:#FFF59D&quot;&gt;companies&lt;/b&gt;&lt;font color=&quot;#ccc&quot;&gt; — 150 firm (centralny hub)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#263238;strokeColor=#FFF59D;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="350" y="110" width="320" height="22" as="geometry"/>
</mxCell>
<mxCell id="d2_t2" value="&lt;font color=&quot;#ccc&quot;&gt;&lt;b&gt;categories&lt;/b&gt; | &lt;b&gt;services&lt;/b&gt; | &lt;b&gt;competencies&lt;/b&gt;&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#37474F;strokeColor=#546E7A;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="350" y="138" width="320" height="20" as="geometry"/>
</mxCell>
<mxCell id="d2_t3" value="&lt;font color=&quot;#ccc&quot;&gt;&lt;b&gt;company_services&lt;/b&gt; | &lt;b&gt;company_competencies&lt;/b&gt; (M:M)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#37474F;strokeColor=#546E7A;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="350" y="162" width="320" height="20" as="geometry"/>
</mxCell>
<mxCell id="d2_t4" value="&lt;font color=&quot;#ccc&quot;&gt;&lt;b&gt;certifications&lt;/b&gt; | &lt;b&gt;awards&lt;/b&gt; | &lt;b&gt;company_events&lt;/b&gt;&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#37474F;strokeColor=#546E7A;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="350" y="186" width="320" height="20" as="geometry"/>
</mxCell>
<mxCell id="d2_t5" value="&lt;font color=&quot;#ccc&quot;&gt;&lt;b&gt;company_contacts&lt;/b&gt; | &lt;b&gt;company_social_media&lt;/b&gt;&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#37474F;strokeColor=#546E7A;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="350" y="210" width="320" height="20" as="geometry"/>
</mxCell>
<mxCell id="d2_t6" value="&lt;font color=&quot;#ccc&quot;&gt;&lt;b&gt;company_recommendations&lt;/b&gt; | &lt;b&gt;company_citations&lt;/b&gt;&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#37474F;strokeColor=#546E7A;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="350" y="234" width="320" height="20" as="geometry"/>
</mxCell>
<mxCell id="d2_t7" value="&lt;font color=&quot;#ccc&quot;&gt;&lt;b&gt;company_quality_tracking&lt;/b&gt; — jakość danych&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#37474F;strokeColor=#546E7A;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="350" y="258" width="320" height="20" as="geometry"/>
</mxCell>
<mxCell id="d2_hub" value="&lt;font style=&quot;font-size:8px;color:#FFF59D&quot;&gt;→ Połączona z 20+ tabelami (centralny hub)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="350" y="282" width="260" height="16" as="geometry"/>
</mxCell>
<!-- RELACJA Users ↔ Companies -->
<mxCell id="rel_uc" value="FK" style="strokeColor=#1565C0;strokeWidth=2;fontSize=9;fontColor=#1565C0;fontStyle=1;" edge="1" source="d1_bg" target="d2_bg" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- DOMAIN 3: DATA ENRICHMENT (prawy-góra) -->
<mxCell id="d3_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#2E7D32;shadow=1;" vertex="1" parent="1">
<mxGeometry x="730" y="80" width="260" height="145" as="geometry"/>
</mxCell>
<mxCell id="d3_title" value="&lt;b style=&quot;color:#2E7D32&quot;&gt;3. Wzbogacanie danych&lt;/b&gt;&lt;font style=&quot;font-size:9px;color:#888&quot;&gt; (5)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="740" y="86" width="230" height="20" as="geometry"/>
</mxCell>
<mxCell id="d3_t1" value="&lt;b&gt;people&lt;/b&gt; — osoby z KRS" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="740" y="110" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d3_t2" value="&lt;b&gt;company_person&lt;/b&gt; — M:M firmy↔osoby" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="740" y="134" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d3_t3" value="&lt;b&gt;company_pkd&lt;/b&gt; | &lt;b&gt;company_financial_report&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="740" y="158" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d3_t4" value="&lt;b&gt;ai_enrichment_proposals&lt;/b&gt; — AI sugestie" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8E6C9;strokeColor=#2E7D32;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="740" y="182" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="rel_d3" value="" style="strokeColor=#2E7D32;strokeWidth=1;dashed=1;" edge="1" source="d3_bg" target="d2_bg" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell>
<!-- DOMAIN 4: WEBSITE ANALYSIS -->
<mxCell id="d4_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF3E0;strokeColor=#E65100;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1040" y="80" width="260" height="145" as="geometry"/>
</mxCell>
<mxCell id="d4_title" value="&lt;b style=&quot;color:#E65100&quot;&gt;4. Analiza Stron WWW&lt;/b&gt;&lt;font style=&quot;font-size:9px;color:#888&quot;&gt; (4)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1050" y="86" width="230" height="20" as="geometry"/>
</mxCell>
<mxCell id="d4_t1" value="&lt;b&gt;company_website_content&lt;/b&gt; — HTML/text" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="1050" y="110" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d4_t2" value="&lt;b&gt;company_ai_insights&lt;/b&gt; — AI ekstrakcja" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="1050" y="134" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d4_t3" value="&lt;b&gt;company_website_analysis&lt;/b&gt; — 100+ kolumn" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFE0B2;strokeColor=#E65100;fontSize=9;align=left;spacingLeft=4;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="1050" y="158" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d4_note" value="&lt;font style=&quot;font-size:8px;color:#E65100&quot;&gt;SEO, CrUX, headers, GBP, GSC, images&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1050" y="182" width="230" height="16" as="geometry"/>
</mxCell>
<!-- DOMAIN 5: AI CHAT -->
<mxCell id="d5_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F3E5F5;strokeColor=#7B1FA2;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1350" y="80" width="230" height="145" as="geometry"/>
</mxCell>
<mxCell id="d5_title" value="&lt;b style=&quot;color:#7B1FA2&quot;&gt;5. AI Chat&lt;/b&gt;&lt;font style=&quot;font-size:9px;color:#888&quot;&gt; (5)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1360" y="86" width="130" height="20" as="geometry"/>
</mxCell>
<mxCell id="d5_t1" value="&lt;b&gt;ai_chat_conversations&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#7B1FA2;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="1360" y="110" width="210" height="20" as="geometry"/>
</mxCell>
<mxCell id="d5_t2" value="&lt;b&gt;ai_chat_messages&lt;/b&gt; — tokens/cost" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#7B1FA2;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="1360" y="134" width="210" height="20" as="geometry"/>
</mxCell>
<mxCell id="d5_t3" value="&lt;b&gt;ai_chat_feedback&lt;/b&gt; | &lt;b&gt;ai_api_costs&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#7B1FA2;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="1360" y="158" width="210" height="20" as="geometry"/>
</mxCell>
<mxCell id="d5_t4" value="&lt;b&gt;ai_usage_log&lt;/b&gt; | &lt;b&gt;ai_rate_limit&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E1BEE7;strokeColor=#7B1FA2;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="1360" y="182" width="210" height="20" as="geometry"/>
</mxCell>
<!-- DOMAIN 6: DIGITAL MATURITY -->
<mxCell id="d6_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E0F7FA;strokeColor=#00838F;shadow=1;" vertex="1" parent="1">
<mxGeometry x="30" y="310" width="260" height="100" as="geometry"/>
</mxCell>
<mxCell id="d6_title" value="&lt;b style=&quot;color:#00838F&quot;&gt;6. Dojrzałość Cyfrowa&lt;/b&gt;&lt;font style=&quot;font-size:9px;color:#888&quot;&gt; (2)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="40" y="316" width="220" height="20" as="geometry"/>
</mxCell>
<mxCell id="d6_t1" value="&lt;b&gt;company_digital_maturity&lt;/b&gt; — dashboard" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#00838F;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="40" y="340" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d6_t2" value="&lt;b&gt;maturity_assessments&lt;/b&gt; — historia" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#00838F;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="40" y="364" width="240" height="20" as="geometry"/>
</mxCell>
<!-- DOMAIN 7: FORUM -->
<mxCell id="d7_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFEBEE;strokeColor=#C62828;shadow=1;" vertex="1" parent="1">
<mxGeometry x="30" y="440" width="260" height="170" as="geometry"/>
</mxCell>
<mxCell id="d7_title" value="&lt;b style=&quot;color:#C62828&quot;&gt;7. Forum i Dyskusje&lt;/b&gt;&lt;font style=&quot;font-size:9px;color:#888&quot;&gt; (8 tabel)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="40" y="446" width="230" height="20" as="geometry"/>
</mxCell>
<mxCell id="d7_t1" value="&lt;b&gt;forum_topics&lt;/b&gt; | &lt;b&gt;forum_replies&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="40" y="470" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d7_t2" value="&lt;b&gt;forum_attachments&lt;/b&gt; | &lt;b&gt;subscriptions&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="40" y="494" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d7_t3" value="&lt;b&gt;topic_reads&lt;/b&gt; | &lt;b&gt;reply_reads&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFCDD2;strokeColor=#C62828;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="40" y="518" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d7_t4" value="&lt;b&gt;forum_reports&lt;/b&gt; | &lt;b&gt;forum_edit_history&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFCDD2;strokeColor=#C62828;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="40" y="542" width="240" height="20" as="geometry"/>
</mxCell>
<!-- DOMAIN 8-10: Rada + Events + Messages -->
<mxCell id="d8_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF9C4;strokeColor=#F9A825;shadow=1;" vertex="1" parent="1">
<mxGeometry x="340" y="390" width="340" height="145" as="geometry"/>
</mxCell>
<mxCell id="d8_title" value="&lt;b style=&quot;color:#F9A825&quot;&gt;8-10. Rada Izby | Wydarzenia | Wiadomości&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="350" y="396" width="320" height="20" as="geometry"/>
</mxCell>
<mxCell id="d8_t1" value="&lt;b&gt;board_meetings&lt;/b&gt; — posiedzenia Rady Izby" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#F9A825;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="350" y="420" width="320" height="20" as="geometry"/>
</mxCell>
<mxCell id="d8_t2" value="&lt;b&gt;board_documents&lt;/b&gt; — protokoły, uchwały" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#F9A825;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="350" y="444" width="320" height="20" as="geometry"/>
</mxCell>
<mxCell id="d8_t3" value="&lt;b&gt;norda_events&lt;/b&gt; | &lt;b&gt;event_attendees&lt;/b&gt; — RSVP" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#F9A825;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="350" y="468" width="320" height="20" as="geometry"/>
</mxCell>
<mxCell id="d8_t4" value="&lt;b&gt;private_messages&lt;/b&gt; — wiadomości (threaded)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#F9A825;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="350" y="492" width="320" height="20" as="geometry"/>
</mxCell>
<!-- DOMAIN 11: CLASSIFIEDS -->
<mxCell id="d11_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#2E7D32;shadow=1;" vertex="1" parent="1">
<mxGeometry x="340" y="570" width="340" height="120" as="geometry"/>
</mxCell>
<mxCell id="d11_title" value="&lt;b style=&quot;color:#2E7D32&quot;&gt;11. Ogłoszenia B2B&lt;/b&gt;&lt;font style=&quot;font-size:9px;color:#888&quot;&gt; (4 tabele)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="350" y="576" width="230" height="20" as="geometry"/>
</mxCell>
<mxCell id="d11_t1" value="&lt;b&gt;classifieds&lt;/b&gt; — ogłoszenia (szukam/oferuję)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="350" y="600" width="320" height="20" as="geometry"/>
</mxCell>
<mxCell id="d11_t2" value="&lt;b&gt;classified_reads&lt;/b&gt; | &lt;b&gt;interests&lt;/b&gt; | &lt;b&gt;questions&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="350" y="624" width="320" height="20" as="geometry"/>
</mxCell>
<!-- DOMAIN 12-14: GBP + Competitors + Reports -->
<mxCell id="d12_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF3E0;strokeColor=#E65100;shadow=1;" vertex="1" parent="1">
<mxGeometry x="730" y="260" width="260" height="170" as="geometry"/>
</mxCell>
<mxCell id="d12_title" value="&lt;b style=&quot;color:#E65100&quot;&gt;12-14. Audyty &amp; Raporty&lt;/b&gt;&lt;font style=&quot;font-size:9px;color:#888&quot;&gt; (5)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="740" y="266" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d12_t1" value="&lt;b&gt;gbp_audits&lt;/b&gt; — Google Business Profile" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="740" y="290" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d12_t2" value="&lt;b&gt;gbp_reviews&lt;/b&gt; — opinie + sentiment" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="740" y="314" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d12_t3" value="&lt;b&gt;company_competitors&lt;/b&gt; — monitoring" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="740" y="338" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d12_t4" value="&lt;b&gt;competitor_snapshots&lt;/b&gt; — periodic data" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="740" y="362" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d12_t5" value="&lt;b&gt;audit_reports&lt;/b&gt; — raporty zbiorcze" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFE0B2;strokeColor=#E65100;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="740" y="386" width="240" height="20" as="geometry"/>
</mxCell>
<!-- DOMAIN 15: IT -->
<mxCell id="d15_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E0F7FA;strokeColor=#00838F;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1040" y="260" width="260" height="100" as="geometry"/>
</mxCell>
<mxCell id="d15_title" value="&lt;b style=&quot;color:#00838F&quot;&gt;15. Infrastruktura IT&lt;/b&gt;&lt;font style=&quot;font-size:9px;color:#888&quot;&gt; (2)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1050" y="266" width="210" height="20" as="geometry"/>
</mxCell>
<mxCell id="d15_t1" value="&lt;b&gt;it_audits&lt;/b&gt; — 50+ kolumn oceny IT" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#00838F;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="1050" y="290" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d15_t2" value="&lt;b&gt;it_collaboration_matches&lt;/b&gt; — B2B IT" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#00838F;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="1050" y="314" width="240" height="20" as="geometry"/>
</mxCell>
<!-- DOMAIN 16: MEMBERSHIP -->
<mxCell id="d16_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F3E5F5;strokeColor=#7B1FA2;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1040" y="390" width="260" height="100" as="geometry"/>
</mxCell>
<mxCell id="d16_title" value="&lt;b style=&quot;color:#7B1FA2&quot;&gt;16. Składki Członkowskie&lt;/b&gt;&lt;font style=&quot;font-size:9px;color:#888&quot;&gt; (2)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1050" y="396" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d16_t1" value="&lt;b&gt;membership_fees&lt;/b&gt; — płatności" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#7B1FA2;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="1050" y="420" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d16_t2" value="&lt;b&gt;membership_fee_config&lt;/b&gt; — taryfy" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#7B1FA2;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="1050" y="444" width="240" height="20" as="geometry"/>
</mxCell>
<!-- DOMAIN 17: ZOPK (dół-prawo) -->
<mxCell id="d17_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8E6C9;strokeColor=#1B5E20;shadow=1;" vertex="1" parent="1">
<mxGeometry x="730" y="470" width="570" height="220" as="geometry"/>
</mxCell>
<mxCell id="d17_title" value="&lt;b style=&quot;font-size:13px;color:#1B5E20&quot;&gt;17. ZOPK — Zielony Okręg Przemysłowy Kaszubia&lt;/b&gt;&lt;font style=&quot;font-size:9px;color:#888&quot;&gt; (12 tabel — Knowledge Graph)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="740" y="476" width="520" height="20" as="geometry"/>
</mxCell>
<mxCell id="d17_t1" value="&lt;b&gt;zopk_projects&lt;/b&gt; — inicjatywy (wiatr, atom, DC)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1B5E20;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="740" y="500" width="260" height="20" as="geometry"/>
</mxCell>
<mxCell id="d17_t2" value="&lt;b&gt;zopk_stakeholders&lt;/b&gt; | &lt;b&gt;stakeholder_project&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1B5E20;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="740" y="524" width="260" height="20" as="geometry"/>
</mxCell>
<mxCell id="d17_t3" value="&lt;b&gt;zopk_news&lt;/b&gt; | &lt;b&gt;zopk_resources&lt;/b&gt; | &lt;b&gt;company_link&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1B5E20;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="740" y="548" width="260" height="20" as="geometry"/>
</mxCell>
<mxCell id="d17_kg_title" value="&lt;font style=&quot;font-size:10px;color:#1B5E20&quot;&gt;&lt;b&gt;Knowledge Graph:&lt;/b&gt;&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1020" y="502" width="130" height="18" as="geometry"/>
</mxCell>
<mxCell id="d17_t4" value="&lt;b&gt;zopk_knowledge_chunk&lt;/b&gt; — segmenty" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#A5D6A7;strokeColor=#1B5E20;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="1020" y="524" width="260" height="20" as="geometry"/>
</mxCell>
<mxCell id="d17_t5" value="&lt;b&gt;zopk_knowledge_entity&lt;/b&gt; — encje" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#A5D6A7;strokeColor=#1B5E20;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="1020" y="548" width="260" height="20" as="geometry"/>
</mxCell>
<mxCell id="d17_t6" value="&lt;b&gt;zopk_knowledge_fact&lt;/b&gt; — fakty" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#A5D6A7;strokeColor=#1B5E20;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="1020" y="572" width="260" height="20" as="geometry"/>
</mxCell>
<mxCell id="d17_t7" value="&lt;b&gt;entity_mention&lt;/b&gt; | &lt;b&gt;relation&lt;/b&gt; | &lt;b&gt;extraction_job&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#A5D6A7;strokeColor=#1B5E20;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="740" y="572" width="260" height="20" as="geometry"/>
</mxCell>
<mxCell id="d17_t8" value="&lt;b&gt;zopk_news_fetch_job&lt;/b&gt; — auto collection" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1B5E20;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="740" y="600" width="260" height="20" as="geometry"/>
</mxCell>
<!-- DOMAIN 19: ANALYTICS -->
<mxCell id="d19_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFEBEE;strokeColor=#C62828;shadow=1;" vertex="1" parent="1">
<mxGeometry x="30" y="640" width="260" height="100" as="geometry"/>
</mxCell>
<mxCell id="d19_title" value="&lt;b style=&quot;color:#C62828&quot;&gt;19. Analytics&lt;/b&gt;&lt;font style=&quot;font-size:9px;color:#888&quot;&gt; (4 tabele)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="40" y="646" width="180" height="20" as="geometry"/>
</mxCell>
<mxCell id="d19_t1" value="&lt;b&gt;page_views&lt;/b&gt; | &lt;b&gt;user_clicks&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="40" y="670" width="240" height="20" as="geometry"/>
</mxCell>
<mxCell id="d19_t2" value="&lt;b&gt;analytics_daily&lt;/b&gt; | &lt;b&gt;popular_pages_daily&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=9;align=left;spacingLeft=4;" vertex="1" parent="1">
<mxGeometry x="40" y="694" width="240" height="20" as="geometry"/>
</mxCell>
<!-- VIEWS & FUNCTIONS -->
<mxCell id="views_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F5F5F5;strokeColor=#999;shadow=1;" vertex="1" parent="1">
<mxGeometry x="340" y="720" width="340" height="60" as="geometry"/>
</mxCell>
<mxCell id="views_t" value="&lt;b style=&quot;font-size:11px&quot;&gt;Views (3):&lt;/b&gt; v_companies_full | v_data_quality_stats | v_companies_incomplete&lt;br&gt;&lt;b style=&quot;font-size:11px&quot;&gt;Functions (2):&lt;/b&gt; calculate_data_quality() | update_all_data_quality()" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=9;" vertex="1" parent="1">
<mxGeometry x="350" y="726" width="330" height="28" as="geometry"/>
</mxCell>
<!-- PODSUMOWANIE -->
<mxCell id="summary" value="&lt;font style=&quot;font-size:11px;color:#888&quot;&gt;&lt;b&gt;80+ tabel&lt;/b&gt; | &lt;b&gt;19 domen&lt;/b&gt; | &lt;b&gt;3 widoki&lt;/b&gt; | &lt;b&gt;2 funkcje DB&lt;/b&gt; | &lt;b&gt;companies&lt;/b&gt; = centralny hub (20+ relacji) | &lt;b&gt;Multi-company&lt;/b&gt; via user_companies M:M&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="330" y="800" width="820" height="24" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 908 KiB

View File

@ -0,0 +1,142 @@
<mxfile host="draw.io" modified="2026-02-12" agent="Claude Code" type="device">
<diagram id="a3-network" name="Topologia Sieci">
<mxGraphModel dx="1400" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="1000" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="title" value="NordaBiz — Topologia Sieci" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=22;fontStyle=1;fontColor=#1a1a2e;" vertex="1" parent="1">
<mxGeometry x="500" y="15" width="380" height="36" as="geometry"/>
</mxCell>
<mxCell id="subtitle" value="Infrastruktura sieciowa INPI — podsieci, VM-y, adresy IP" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#888;" vertex="1" parent="1">
<mxGeometry x="470" y="48" width="420" height="20" as="geometry"/>
</mxCell>
<!-- INTERNET -->
<mxCell id="internet" value="&lt;b style=&quot;font-size:14px&quot;&gt;Internet&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#666&quot;&gt;nordabiznes.pl&lt;br&gt;DNS: OVH&lt;/font&gt;" style="ellipse;whiteSpace=wrap;html=1;fillColor=#F5F5F5;strokeColor=#333;shadow=1;" vertex="1" parent="1">
<mxGeometry x="640" y="80" width="140" height="80" as="geometry"/>
</mxCell>
<!-- FORTIGATE -->
<mxCell id="fw_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFEBEE;strokeColor=#C62828;shadow=1;" vertex="1" parent="1">
<mxGeometry x="560" y="200" width="300" height="70" as="geometry"/>
</mxCell>
<mxCell id="fw" value="&lt;b style=&quot;font-size:14px;color:#C62828&quot;&gt;FortiGate 500D&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;85.237.177.83 (WAN) | NAT → :443&lt;br&gt;SSL-VPN: pula 10.212.134.x&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="575" y="208" width="270" height="55" as="geometry"/>
</mxCell>
<!-- STRZAŁKA Internet → FW -->
<mxCell id="arr_inet" value="HTTPS :443" style="strokeColor=#333;strokeWidth=2;fontSize=10;fontStyle=1;" edge="1" source="internet" target="fw_bg" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- SIEĆ LAN 10.22.68.0/24 -->
<mxCell id="lan_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F5F5F5;strokeColor=#999;strokeWidth=2;dashed=1;" vertex="1" parent="1">
<mxGeometry x="30" y="310" width="1340" height="630" as="geometry"/>
</mxCell>
<mxCell id="lan_title" value="&lt;b style=&quot;font-size:16px;color:#555&quot;&gt;LAN: 10.22.68.0/24&lt;/b&gt;&lt;font style=&quot;font-size:10px;color:#999&quot;&gt; — Proxmox Cluster (r11-pve-01/02/03)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="50" y="316" width="500" height="24" as="geometry"/>
</mxCell>
<!-- STRZAŁKA FW → LAN -->
<mxCell id="arr_fw" value="NAT" style="strokeColor=#C62828;strokeWidth=2;fontSize=10;fontStyle=1;fontColor=#C62828;" edge="1" source="fw_bg" target="npm_box" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- REVERSE PROXY -->
<mxCell id="npm_box" value="&lt;b style=&quot;color:#E65100&quot;&gt;Nginx Proxy Manager&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;R11-REVPROXY-01 (VM 119)&lt;br&gt;10.22.68.250&lt;br&gt;Let's Encrypt SSL&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF3E0;strokeColor=#E65100;shadow=1;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="600" y="360" width="220" height="70" as="geometry"/>
</mxCell>
<!-- PRODUKCJA -->
<mxCell id="prod_grp" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;shadow=1;" vertex="1" parent="1">
<mxGeometry x="50" y="480" width="380" height="200" as="geometry"/>
</mxCell>
<mxCell id="prod_lbl" value="&lt;b style=&quot;font-size:14px;color:#1565C0&quot;&gt;Produkcja&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="60" y="486" width="110" height="24" as="geometry"/>
</mxCell>
<mxCell id="prod_vm" value="&lt;b&gt;NORDABIZ-01&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;VM 249 — 10.22.68.249&lt;br&gt;Flask :5000 + PostgreSQL :5432&lt;br&gt;Ubuntu 22.04 LTS&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="65" y="516" width="350" height="60" as="geometry"/>
</mxCell>
<mxCell id="prod_db" value="&lt;b&gt;PostgreSQL&lt;/b&gt; — nordabiz&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;80+ tabel | 150 firm | User: nordabiz_app&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#BBDEFB;strokeColor=#1565C0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="65" y="586" width="350" height="40" as="geometry"/>
</mxCell>
<mxCell id="prod_app" value="&lt;b&gt;Gunicorn + Flask&lt;/b&gt; :5000&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;17 blueprintów | 375+ routes | Gemini AI&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#BBDEFB;strokeColor=#1565C0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="65" y="634" width="350" height="40" as="geometry"/>
</mxCell>
<!-- NPM → PROD strzałka -->
<mxCell id="arr_npm_prod" value=":5000" style="strokeColor=#1565C0;strokeWidth=2;fontSize=10;fontStyle=1;fontColor=#1565C0;" edge="1" source="npm_box" target="prod_grp" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- STAGING -->
<mxCell id="stag_grp" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#2E7D32;shadow=1;" vertex="1" parent="1">
<mxGeometry x="500" y="480" width="300" height="200" as="geometry"/>
</mxCell>
<mxCell id="stag_lbl" value="&lt;b style=&quot;font-size:14px;color:#2E7D32&quot;&gt;Staging&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="510" y="486" width="80" height="24" as="geometry"/>
</mxCell>
<mxCell id="stag_vm" value="&lt;b&gt;NORDABIZ-STAGING-01&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;VM 248 — 10.22.68.248&lt;br&gt;Flask + PostgreSQL&lt;br&gt;staging.nordabiznes.pl&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="515" y="516" width="270" height="60" as="geometry"/>
</mxCell>
<mxCell id="stag_db" value="&lt;b&gt;PostgreSQL&lt;/b&gt; — nordabiz_staging" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8E6C9;strokeColor=#2E7D32;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="515" y="586" width="270" height="32" as="geometry"/>
</mxCell>
<!-- USŁUGI WSPIERAJĄCE -->
<mxCell id="svc_grp" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF3E0;strokeColor=#E65100;shadow=1;" vertex="1" parent="1">
<mxGeometry x="870" y="480" width="480" height="200" as="geometry"/>
</mxCell>
<mxCell id="svc_lbl" value="&lt;b style=&quot;font-size:14px;color:#E65100&quot;&gt;Usługi Wspierające&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="880" y="486" width="180" height="24" as="geometry"/>
</mxCell>
<mxCell id="git_vm" value="&lt;b&gt;Gitea&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;10.22.68.180&lt;br&gt;Repo wewnętrzny&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="885" y="516" width="140" height="55" as="geometry"/>
</mxCell>
<mxCell id="dns_vm" value="&lt;b&gt;Technitium DNS&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;R11-DNS-01/02&lt;br&gt;10.22.68.171/172&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1035" y="516" width="140" height="55" as="geometry"/>
</mxCell>
<mxCell id="pbs_vm" value="&lt;b&gt;Proxmox PBS&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;10.22.68.127&lt;br&gt;Backup offsite&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1185" y="516" width="140" height="55" as="geometry"/>
</mxCell>
<mxCell id="ipam_vm" value="&lt;b&gt;phpIPAM&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;IP Address Mgmt&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="885" y="585" width="140" height="42" as="geometry"/>
</mxCell>
<mxCell id="zabbix_vm" value="&lt;b&gt;Zabbix&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;Monitoring&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1035" y="585" width="140" height="42" as="geometry"/>
</mxCell>
<mxCell id="github_ext" value="&lt;b&gt;GitHub&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;Cloud backup&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1185" y="585" width="140" height="42" as="geometry"/>
</mxCell>
<!-- STRZAŁKI między komponentami -->
<mxCell id="arr_prod_git" value="" style="strokeColor=#E65100;strokeWidth=1;dashed=1;" edge="1" source="prod_grp" target="git_vm" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="arr_prod_pbs" value="backup" style="strokeColor=#E65100;strokeWidth=1;dashed=1;fontSize=9;fontColor=#E65100;" edge="1" source="prod_grp" target="pbs_vm" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- DEV -->
<mxCell id="dev_box" value="&lt;b style=&quot;color:#7B1FA2&quot;&gt;Developer (macOS)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;Docker PostgreSQL :5433&lt;br&gt;Flask dev :5000/5001&lt;br&gt;FortiClient SSL-VPN&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F3E5F5;strokeColor=#7B1FA2;shadow=1;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="50" y="740" width="270" height="70" as="geometry"/>
</mxCell>
<!-- VPN connection -->
<mxCell id="arr_vpn" value="SSL-VPN" style="strokeColor=#7B1FA2;strokeWidth=2;dashed=1;fontSize=10;fontStyle=1;fontColor=#7B1FA2;" edge="1" source="dev_box" target="fw_bg" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- LEGENDA -->
<mxCell id="legend_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#ccc;" vertex="1" parent="1">
<mxGeometry x="50" y="850" width="600" height="60" as="geometry"/>
</mxCell>
<mxCell id="legend" value="&lt;font style=&quot;font-size:10px&quot;&gt;&lt;b&gt;Legenda:&lt;/b&gt; &lt;font color=&quot;#1565C0&quot;&gt;■&lt;/font&gt; Produkcja &amp;nbsp; &lt;font color=&quot;#2E7D32&quot;&gt;■&lt;/font&gt; Staging &amp;nbsp; &lt;font color=&quot;#E65100&quot;&gt;■&lt;/font&gt; Usługi &amp;nbsp; &lt;font color=&quot;#C62828&quot;&gt;■&lt;/font&gt; Firewall &amp;nbsp; &lt;font color=&quot;#7B1FA2&quot;&gt;■&lt;/font&gt; Dev &amp;nbsp;|&amp;nbsp; ── pełna linia = ruch sieciowy &amp;nbsp; - - linia przerywana = zarządzanie&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="60" y="862" width="580" height="24" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 KiB

View File

@ -0,0 +1,179 @@
<mxfile host="draw.io" modified="2026-02-12" agent="Claude Code" type="device">
<diagram id="a4-cicd" name="Pipeline Wdrożeniowy">
<mxGraphModel dx="1600" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1800" pageHeight="800" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="title" value="NordaBiz — Pipeline Wdrożeniowy (CI/CD)" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=22;fontStyle=1;fontColor=#1a1a2e;" vertex="1" parent="1">
<mxGeometry x="500" y="15" width="520" height="36" as="geometry"/>
</mxCell>
<mxCell id="subtitle" value="git push → staging → test → produkcja → migracje → restart → weryfikacja" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#888;" vertex="1" parent="1">
<mxGeometry x="480" y="48" width="540" height="20" as="geometry"/>
</mxCell>
<!-- KROK 1: DEV -->
<mxCell id="s1_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#4CAF50;shadow=1;" vertex="1" parent="1">
<mxGeometry x="40" y="90" width="200" height="280" as="geometry"/>
</mxCell>
<mxCell id="s1_num" value="&lt;b style=&quot;font-size:22px;color:#fff&quot;&gt;1&lt;/b&gt;" style="ellipse;whiteSpace=wrap;html=1;fillColor=#4CAF50;strokeColor=#2E7D32;" vertex="1" parent="1">
<mxGeometry x="55" y="95" width="36" height="36" as="geometry"/>
</mxCell>
<mxCell id="s1_title" value="&lt;b style=&quot;font-size:13px&quot;&gt;Rozwój (DEV)&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#2E7D32;" vertex="1" parent="1">
<mxGeometry x="95" y="98" width="120" height="28" as="geometry"/>
</mxCell>
<mxCell id="s1_d1" value="&lt;font style=&quot;font-size:10px&quot;&gt;&#x1F4BB; macOS localhost&lt;br&gt;Flask dev server :5000&lt;br&gt;Docker PostgreSQL :5433&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#4CAF50;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="55" y="140" width="170" height="55" as="geometry"/>
</mxCell>
<mxCell id="s1_d2" value="&lt;font style=&quot;font-size:10px&quot;&gt;python -m py_compile app.py&lt;br&gt;pytest tests/unit/ -v&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8E6C9;strokeColor=#4CAF50;fontSize=10;fontFamily=monospace;" vertex="1" parent="1">
<mxGeometry x="55" y="205" width="170" height="40" as="geometry"/>
</mxCell>
<mxCell id="s1_d3" value="&lt;font style=&quot;font-size:10px&quot;&gt;git add &amp;amp;&amp;amp; git commit&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8E6C9;strokeColor=#4CAF50;fontSize=10;fontFamily=monospace;" vertex="1" parent="1">
<mxGeometry x="55" y="255" width="170" height="30" as="geometry"/>
</mxCell>
<mxCell id="s1_d4" value="&lt;font style=&quot;font-size:9px;color:#555&quot;&gt;Aktualizuj release_notes w app.py!&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="55" y="295" width="190" height="18" as="geometry"/>
</mxCell>
<!-- STRZAŁKA 1→2 -->
<mxCell id="a12" value="git push" style="shape=flexArrow;endArrow=classic;html=1;fillColor=#4CAF50;strokeColor=#2E7D32;fontSize=10;fontColor=#2E7D32;fontStyle=1;" edge="1" parent="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="250" y="230" as="sourcePoint"/>
<mxPoint x="310" y="230" as="targetPoint"/>
</mxGeometry>
</mxCell>
<!-- KROK 2: GIT REPOS -->
<mxCell id="s2_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ECEFF1;strokeColor=#78909C;shadow=1;" vertex="1" parent="1">
<mxGeometry x="320" y="90" width="200" height="280" as="geometry"/>
</mxCell>
<mxCell id="s2_num" value="&lt;b style=&quot;font-size:22px;color:#fff&quot;&gt;2&lt;/b&gt;" style="ellipse;whiteSpace=wrap;html=1;fillColor=#78909C;strokeColor=#546E7A;" vertex="1" parent="1">
<mxGeometry x="335" y="95" width="36" height="36" as="geometry"/>
</mxCell>
<mxCell id="s2_title" value="&lt;b style=&quot;font-size:13px&quot;&gt;Repozytoria&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#546E7A;" vertex="1" parent="1">
<mxGeometry x="375" y="98" width="110" height="28" as="geometry"/>
</mxCell>
<mxCell id="s2_d1" value="&lt;font style=&quot;font-size:10px&quot;&gt;&lt;b&gt;GitHub&lt;/b&gt; (origin)&lt;br&gt;pienczyn/nordabiz&lt;br&gt;Cloud backup + CI/CD&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#78909C;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="335" y="140" width="170" height="55" as="geometry"/>
</mxCell>
<mxCell id="s2_d2" value="&lt;font style=&quot;font-size:10px&quot;&gt;&lt;b&gt;Gitea&lt;/b&gt; (inpi)&lt;br&gt;10.22.68.180&lt;br&gt;Wewnętrzny, deploy source&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#78909C;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="335" y="205" width="170" height="55" as="geometry"/>
</mxCell>
<mxCell id="s2_d3" value="&lt;font style=&quot;font-size:10px&quot;&gt;.github/workflows/test.yml&lt;br&gt;unit → e2e → smoke&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ECEFF1;strokeColor=#78909C;fontSize=10;fontFamily=monospace;" vertex="1" parent="1">
<mxGeometry x="335" y="270" width="170" height="40" as="geometry"/>
</mxCell>
<!-- STRZAŁKA 2→3 -->
<mxCell id="a23" value="git pull" style="shape=flexArrow;endArrow=classic;html=1;fillColor=#FF8F00;strokeColor=#E65100;fontSize=10;fontColor=#E65100;fontStyle=1;" edge="1" parent="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="530" y="230" as="sourcePoint"/>
<mxPoint x="590" y="230" as="targetPoint"/>
</mxGeometry>
</mxCell>
<!-- KROK 3: STAGING -->
<mxCell id="s3_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF8E1;strokeColor=#FF8F00;shadow=1;" vertex="1" parent="1">
<mxGeometry x="600" y="90" width="200" height="280" as="geometry"/>
</mxCell>
<mxCell id="s3_num" value="&lt;b style=&quot;font-size:22px;color:#fff&quot;&gt;3&lt;/b&gt;" style="ellipse;whiteSpace=wrap;html=1;fillColor=#FF8F00;strokeColor=#E65100;" vertex="1" parent="1">
<mxGeometry x="615" y="95" width="36" height="36" as="geometry"/>
</mxCell>
<mxCell id="s3_title" value="&lt;b style=&quot;font-size:13px&quot;&gt;Staging&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#E65100;" vertex="1" parent="1">
<mxGeometry x="655" y="98" width="80" height="28" as="geometry"/>
</mxCell>
<mxCell id="s3_d1" value="&lt;font style=&quot;font-size:10px&quot;&gt;VM 248 | 10.22.68.248&lt;br&gt;staging.nordabiznes.pl&lt;br&gt;Flask + Gunicorn :5000&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#FF8F00;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="615" y="140" width="170" height="55" as="geometry"/>
</mxCell>
<mxCell id="s3_d2" value="&lt;font style=&quot;font-size:10px&quot;&gt;sudo -u www-data git pull&lt;br&gt;sudo systemctl restart nordabiznes&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFE082;strokeColor=#FF8F00;fontSize=10;fontFamily=monospace;" vertex="1" parent="1">
<mxGeometry x="615" y="205" width="170" height="40" as="geometry"/>
</mxCell>
<mxCell id="s3_d3" value="&lt;font style=&quot;font-size:10px&quot;&gt;&#x1F9EA; TEST MANUALNY&lt;br&gt;(OBOWIĄZKOWY!)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=11;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="615" y="255" width="170" height="40" as="geometry"/>
</mxCell>
<mxCell id="s3_d4" value="&lt;font style=&quot;font-size:9px;color:#555&quot;&gt;curl -I https://staging.nordabiznes.pl/health&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontFamily=monospace;" vertex="1" parent="1">
<mxGeometry x="600" y="305" width="220" height="18" as="geometry"/>
</mxCell>
<!-- STRZAŁKA 3→4 -->
<mxCell id="a34" value="OK?" style="shape=flexArrow;endArrow=classic;html=1;fillColor=#1565C0;strokeColor=#0D47A1;fontSize=10;fontColor=#0D47A1;fontStyle=1;" edge="1" parent="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="810" y="230" as="sourcePoint"/>
<mxPoint x="870" y="230" as="targetPoint"/>
</mxGeometry>
</mxCell>
<!-- KROK 4: PRODUKCJA -->
<mxCell id="s4_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;shadow=1;" vertex="1" parent="1">
<mxGeometry x="880" y="90" width="200" height="280" as="geometry"/>
</mxCell>
<mxCell id="s4_num" value="&lt;b style=&quot;font-size:22px;color:#fff&quot;&gt;4&lt;/b&gt;" style="ellipse;whiteSpace=wrap;html=1;fillColor=#1565C0;strokeColor=#0D47A1;" vertex="1" parent="1">
<mxGeometry x="895" y="95" width="36" height="36" as="geometry"/>
</mxCell>
<mxCell id="s4_title" value="&lt;b style=&quot;font-size:13px&quot;&gt;Produkcja&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#0D47A1;" vertex="1" parent="1">
<mxGeometry x="935" y="98" width="100" height="28" as="geometry"/>
</mxCell>
<mxCell id="s4_d1" value="&lt;font style=&quot;font-size:10px&quot;&gt;VM 249 | 10.22.68.249&lt;br&gt;nordabiznes.pl&lt;br&gt;Flask + Gunicorn :5000&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#6c8ebf;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="895" y="140" width="170" height="55" as="geometry"/>
</mxCell>
<mxCell id="s4_d2" value="&lt;font style=&quot;font-size:10px&quot;&gt;sudo -u www-data git pull&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontSize=10;fontFamily=monospace;" vertex="1" parent="1">
<mxGeometry x="895" y="205" width="170" height="28" as="geometry"/>
</mxCell>
<mxCell id="s4_d3" value="&lt;font style=&quot;font-size:10px&quot;&gt;run_migration.py (jeśli SQL)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=10;fontFamily=monospace;" vertex="1" parent="1">
<mxGeometry x="895" y="243" width="170" height="28" as="geometry"/>
</mxCell>
<mxCell id="s4_d4" value="&lt;font style=&quot;font-size:10px&quot;&gt;sudo systemctl restart nordabiznes&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontSize=10;fontFamily=monospace;" vertex="1" parent="1">
<mxGeometry x="895" y="281" width="170" height="28" as="geometry"/>
</mxCell>
<mxCell id="s4_warn" value="&lt;font style=&quot;font-size:9px;color:#b85450&quot;&gt;&#x26A0;&#xFE0F; Migracja PRZED restartem!&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="895" y="318" width="170" height="18" as="geometry"/>
</mxCell>
<!-- STRZAŁKA 4→5 -->
<mxCell id="a45" value="" style="shape=flexArrow;endArrow=classic;html=1;fillColor=#2E7D32;strokeColor=#1B5E20;fontSize=10;" edge="1" parent="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="1090" y="230" as="sourcePoint"/>
<mxPoint x="1150" y="230" as="targetPoint"/>
</mxGeometry>
</mxCell>
<!-- KROK 5: WERYFIKACJA -->
<mxCell id="s5_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1160" y="90" width="200" height="280" as="geometry"/>
</mxCell>
<mxCell id="s5_num" value="&lt;b style=&quot;font-size:22px;color:#fff&quot;&gt;5&lt;/b&gt;" style="ellipse;whiteSpace=wrap;html=1;fillColor=#2E7D32;strokeColor=#1B5E20;" vertex="1" parent="1">
<mxGeometry x="1175" y="95" width="36" height="36" as="geometry"/>
</mxCell>
<mxCell id="s5_title" value="&lt;b style=&quot;font-size:13px&quot;&gt;Weryfikacja&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#1B5E20;" vertex="1" parent="1">
<mxGeometry x="1215" y="98" width="110" height="28" as="geometry"/>
</mxCell>
<mxCell id="s5_d1" value="&lt;font style=&quot;font-size:10px&quot;&gt;curl -sI nordabiznes.pl/health&lt;br&gt;→ HTTP 200 OK&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#82b366;fontSize=10;fontFamily=monospace;" vertex="1" parent="1">
<mxGeometry x="1175" y="140" width="170" height="40" as="geometry"/>
</mxCell>
<mxCell id="s5_d2" value="&lt;font style=&quot;font-size:10px&quot;&gt;Smoke tests (GitHub Actions)&lt;br&gt;pytest tests/smoke/&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8E6C9;strokeColor=#82b366;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="1175" y="190" width="170" height="40" as="geometry"/>
</mxCell>
<mxCell id="s5_d3" value="&lt;font style=&quot;font-size:10px&quot;&gt;Sprawdź logi:&lt;br&gt;journalctl -u nordabiznes -n 20&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#82b366;fontSize=10;fontFamily=monospace;" vertex="1" parent="1">
<mxGeometry x="1175" y="240" width="170" height="40" as="geometry"/>
</mxCell>
<mxCell id="s5_ok" value="&lt;b style=&quot;font-size:16px;color:#2E7D32&quot;&gt;&#x2705; GOTOWE&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1205" y="300" width="120" height="28" as="geometry"/>
</mxCell>
<!-- UWAGI NA DOLE -->
<mxCell id="notes_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;opacity=30;" vertex="1" parent="1">
<mxGeometry x="40" y="400" width="1320" height="110" as="geometry"/>
</mxCell>
<mxCell id="notes_title" value="&lt;b style=&quot;font-size:12px;color:#b85450&quot;&gt;&#x26A0;&#xFE0F; Uwagi krytyczne&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="55" y="405" width="160" height="24" as="geometry"/>
</mxCell>
<mxCell id="n1" value="&lt;font style=&quot;font-size:10px&quot;&gt;&#x2022; &lt;b&gt;Migracje SQL&lt;/b&gt; — ZAWSZE przed restartem! Bez migracji = 502&lt;br&gt;&#x2022; &lt;b&gt;Git pull&lt;/b&gt; — używaj &lt;code&gt;sudo -u www-data git pull&lt;/code&gt; (www-data ma klucze SSH)&lt;br&gt;&#x2022; &lt;b&gt;NPM port&lt;/b&gt; — Forward port MUSI być 5000, nie 80! (pętla przekierowań)&lt;br&gt;&#x2022; &lt;b&gt;SSH timeout&lt;/b&gt; — NIE oznacza że komenda nie została wykonana! Sprawdź &lt;code&gt;ps aux&lt;/code&gt;&lt;br&gt;&#x2022; &lt;b&gt;502 po restarcie&lt;/b&gt; — poczekaj 3-5 sekund i sprawdź ponownie&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=top;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="55" y="430" width="530" height="80" as="geometry"/>
</mxCell>
<mxCell id="n2" value="&lt;font style=&quot;font-size:10px&quot;&gt;&lt;b&gt;Komendy deploy (produkcja):&lt;/b&gt;&lt;br&gt;&lt;code&gt;ssh maciejpi@10.22.68.249&lt;br&gt;cd /var/www/nordabiznes&lt;br&gt;sudo -u www-data git pull&lt;br&gt;venv/bin/python3 scripts/run_migration.py database/migrations/XXX.sql&lt;br&gt;sudo systemctl restart nordabiznes&lt;br&gt;curl -sI https://nordabiznes.pl/health | head -3&lt;/code&gt;&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=top;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="700" y="405" width="400" height="100" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 662 KiB

View File

@ -0,0 +1,182 @@
<mxfile host="draw.io" modified="2026-02-12" agent="Claude Code" type="device">
<diagram id="a5-auth" name="Autoryzacja i OAuth">
<mxGraphModel dx="1400" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="1000" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="title" value="NordaBiz — Autoryzacja, Role i OAuth 2.0" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=22;fontStyle=1;fontColor=#1a1a2e;" vertex="1" parent="1">
<mxGeometry x="400" y="15" width="530" height="36" as="geometry"/>
</mxCell>
<mxCell id="subtitle" value="Hierarchia ról systemowych, uprawnienia firmowe i integracja OAuth z Google/Meta" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#888;" vertex="1" parent="1">
<mxGeometry x="380" y="48" width="560" height="20" as="geometry"/>
</mxCell>
<!-- ROLE SYSTEMOWE (lewa strona) -->
<mxCell id="roles_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;shadow=1;" vertex="1" parent="1">
<mxGeometry x="40" y="85" width="440" height="380" as="geometry"/>
</mxCell>
<mxCell id="roles_title" value="&lt;b style=&quot;font-size:16px;color:#1565C0&quot;&gt;Role Systemowe (SystemRole)&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="55" y="91" width="300" height="26" as="geometry"/>
</mxCell>
<!-- Piramida ról -->
<mxCell id="r_admin" value="&lt;b style=&quot;font-size:13px&quot;&gt;ADMIN (100)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Pełna kontrola systemu&lt;br&gt;Zarządzanie użytkownikami&lt;/font&gt;" style="trapezoid;whiteSpace=wrap;html=1;fillColor=#C62828;strokeColor=#C62828;fontColor=#fff;fontSize=11;perimeter=trapezoidPerimeter;fixedSize=1;size=20;" vertex="1" parent="1">
<mxGeometry x="160" y="125" width="200" height="50" as="geometry"/>
</mxCell>
<mxCell id="r_office" value="&lt;b style=&quot;font-size:12px&quot;&gt;OFFICE_MANAGER (50)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Panel admina | Moderacja forum | Edycja firm&lt;/font&gt;" style="trapezoid;whiteSpace=wrap;html=1;fillColor=#E65100;strokeColor=#E65100;fontColor=#fff;fontSize=11;perimeter=trapezoidPerimeter;fixedSize=1;size=15;" vertex="1" parent="1">
<mxGeometry x="130" y="180" width="260" height="45" as="geometry"/>
</mxCell>
<mxCell id="r_manager" value="&lt;b style=&quot;font-size:12px&quot;&gt;MANAGER (40)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Pełna kontrola firmy | Zarządzanie pracownikami | Delegowanie uprawnień&lt;/font&gt;" style="trapezoid;whiteSpace=wrap;html=1;fillColor=#F9A825;strokeColor=#F9A825;fontColor=#fff;fontSize=11;perimeter=trapezoidPerimeter;fixedSize=1;size=12;" vertex="1" parent="1">
<mxGeometry x="105" y="230" width="310" height="45" as="geometry"/>
</mxCell>
<mxCell id="r_employee" value="&lt;b style=&quot;font-size:12px&quot;&gt;EMPLOYEE (30)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Edycja danych firmy (delegowane uprawnienia) | Ogłoszenia | Forum&lt;/font&gt;" style="trapezoid;whiteSpace=wrap;html=1;fillColor=#2E7D32;strokeColor=#2E7D32;fontColor=#fff;fontSize=11;perimeter=trapezoidPerimeter;fixedSize=1;size=10;" vertex="1" parent="1">
<mxGeometry x="80" y="280" width="360" height="45" as="geometry"/>
</mxCell>
<mxCell id="r_member" value="&lt;b style=&quot;font-size:12px&quot;&gt;MEMBER (20)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Kontakty firm | Forum | Chat AI | Ogłoszenia | Wiadomości&lt;/font&gt;" style="trapezoid;whiteSpace=wrap;html=1;fillColor=#1565C0;strokeColor=#1565C0;fontColor=#fff;fontSize=11;perimeter=trapezoidPerimeter;fixedSize=1;size=8;" vertex="1" parent="1">
<mxGeometry x="60" y="330" width="400" height="45" as="geometry"/>
</mxCell>
<mxCell id="r_unaffiliated" value="&lt;b style=&quot;font-size:12px&quot;&gt;UNAFFILIATED (10)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Tylko profile publiczne | Ograniczony chat AI | Brak kontaktów&lt;/font&gt;" style="trapezoid;whiteSpace=wrap;html=1;fillColor=#9E9E9E;strokeColor=#9E9E9E;fontColor=#fff;fontSize=11;perimeter=trapezoidPerimeter;fixedSize=1;size=5;" vertex="1" parent="1">
<mxGeometry x="50" y="380" width="420" height="45" as="geometry"/>
</mxCell>
<mxCell id="roles_arrow" value="&lt;font style=&quot;font-size:10px;color:#1565C0&quot;&gt;↑ has_role() = hierarchiczne&lt;br&gt;Wyższa rola = wszystkie&lt;br&gt;uprawnienia niższych&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="60" y="430" width="180" height="28" as="geometry"/>
</mxCell>
<!-- UPRAWNIENIA FIRMOWE (prawy-góra) -->
<mxCell id="comp_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#2E7D32;shadow=1;" vertex="1" parent="1">
<mxGeometry x="530" y="85" width="380" height="200" as="geometry"/>
</mxCell>
<mxCell id="comp_title" value="&lt;b style=&quot;font-size:14px;color:#2E7D32&quot;&gt;Role Firmowe (CompanyRole)&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="545" y="91" width="280" height="26" as="geometry"/>
</mxCell>
<mxCell id="cr1" value="&lt;b&gt;MANAGER (30)&lt;/b&gt; — pełna kontrola firmy + pracownicy" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="545" y="122" width="350" height="26" as="geometry"/>
</mxCell>
<mxCell id="cr2" value="&lt;b&gt;EMPLOYEE (20)&lt;/b&gt; — edycja danych (wg delegacji)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="545" y="154" width="350" height="26" as="geometry"/>
</mxCell>
<mxCell id="cr3" value="&lt;b&gt;VIEWER (10)&lt;/b&gt; — tylko odczyt dashboardu firmy" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="545" y="186" width="350" height="26" as="geometry"/>
</mxCell>
<mxCell id="comp_note" value="&lt;font style=&quot;font-size:10px;color:#2E7D32&quot;&gt;&lt;b&gt;Multi-company:&lt;/b&gt; user_companies (M:M)&lt;br&gt;Użytkownik może mieć różne role w różnych firmach&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="545" y="220" width="350" height="28" as="geometry"/>
</mxCell>
<!-- DELEGOWANE UPRAWNIENIA -->
<mxCell id="deleg_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF3E0;strokeColor=#E65100;shadow=1;" vertex="1" parent="1">
<mxGeometry x="530" y="300" width="380" height="165" as="geometry"/>
</mxCell>
<mxCell id="deleg_title" value="&lt;b style=&quot;font-size:14px;color:#E65100&quot;&gt;Delegowane Uprawnienia&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;MANAGER → EMPLOYEE (user_company_permissions)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="545" y="306" width="350" height="36" as="geometry"/>
</mxCell>
<mxCell id="dp1" value="can_edit_description — opis, historia, wartości" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="545" y="346" width="350" height="22" as="geometry"/>
</mxCell>
<mxCell id="dp2" value="can_edit_services — usługi, kompetencje, technologie" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="545" y="372" width="350" height="22" as="geometry"/>
</mxCell>
<mxCell id="dp3" value="can_edit_contacts — email, telefon, adres" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="545" y="398" width="350" height="22" as="geometry"/>
</mxCell>
<mxCell id="dp4" value="can_edit_social | can_manage_classifieds | can_post_forum | can_view_analytics" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="545" y="424" width="350" height="28" as="geometry"/>
</mxCell>
<!-- OAUTH 2.0 FLOW (dół) -->
<mxCell id="oauth_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F3E5F5;strokeColor=#7B1FA2;shadow=1;" vertex="1" parent="1">
<mxGeometry x="40" y="510" width="870" height="220" as="geometry"/>
</mxCell>
<mxCell id="oauth_title" value="&lt;b style=&quot;font-size:16px;color:#7B1FA2&quot;&gt;OAuth 2.0 — Integracja z API Zewnętrznymi&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="55" y="516" width="400" height="26" as="geometry"/>
</mxCell>
<!-- OAuth flow steps -->
<mxCell id="of1" value="&lt;b&gt;1. Initiate&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;POST /api/oauth/&lt;br&gt;connect/{provider}&lt;br&gt;CSRF state token&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#CE93D8;strokeColor=#7B1FA2;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="55" y="550" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="of2" value="&lt;b&gt;2. Redirect&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;User autoryzuje&lt;br&gt;na stronie Google/Meta&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#CE93D8;strokeColor=#7B1FA2;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="195" y="550" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="of3" value="&lt;b&gt;3. Callback&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;GET /api/oauth/&lt;br&gt;callback/{provider}&lt;br&gt;Exchange code→token&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#CE93D8;strokeColor=#7B1FA2;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="335" y="550" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="of4" value="&lt;b&gt;4. Save&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;oauth_tokens table&lt;br&gt;access + refresh&lt;br&gt;Auto-refresh on expiry&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#CE93D8;strokeColor=#7B1FA2;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="475" y="550" width="120" height="60" as="geometry"/>
</mxCell>
<mxCell id="ofa1" style="strokeColor=#7B1FA2;strokeWidth=2;" edge="1" source="of1" target="of2" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell>
<mxCell id="ofa2" style="strokeColor=#7B1FA2;strokeWidth=2;" edge="1" source="of2" target="of3" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell>
<mxCell id="ofa3" style="strokeColor=#7B1FA2;strokeWidth=2;" edge="1" source="of3" target="of4" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell>
<!-- OAuth providers -->
<mxCell id="google_oauth" value="&lt;b style=&quot;color:#4285F4&quot;&gt;Google OAuth ✅&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;GBP: business.manage&lt;br&gt;Search Console: webmasters&lt;br&gt;&lt;b&gt;Działa na produkcji&lt;/b&gt;&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#4285F4;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="630" y="548" width="130" height="65" as="geometry"/>
</mxCell>
<mxCell id="meta_oauth" value="&lt;b style=&quot;color:#1877F2&quot;&gt;Meta OAuth ⏳&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Facebook: pages_show_list&lt;br&gt;Instagram: instagram_basic&lt;br&gt;&lt;b&gt;Framework gotowy&lt;/b&gt;&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1877F2;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="770" y="548" width="130" height="65" as="geometry"/>
</mxCell>
<!-- BEZPIECZEŃSTWO (prawy-dół) -->
<mxCell id="sec_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFEBEE;strokeColor=#C62828;shadow=1;" vertex="1" parent="1">
<mxGeometry x="40" y="640" width="870" height="90" as="geometry"/>
</mxCell>
<mxCell id="sec_title" value="&lt;b style=&quot;font-size:14px;color:#C62828&quot;&gt;Zabezpieczenia&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="55" y="646" width="150" height="24" as="geometry"/>
</mxCell>
<mxCell id="sec1" value="&lt;b&gt;Hasła&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;pbkdf2:sha256&lt;br&gt;8+ znaków&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="55" y="674" width="100" height="45" as="geometry"/>
</mxCell>
<mxCell id="sec2" value="&lt;b&gt;2FA (TOTP)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Base32 + kody&lt;br&gt;zapasowe&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="165" y="674" width="100" height="45" as="geometry"/>
</mxCell>
<mxCell id="sec3" value="&lt;b&gt;Brute-force&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;5 prób → 30 min&lt;br&gt;lockout&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="275" y="674" width="100" height="45" as="geometry"/>
</mxCell>
<mxCell id="sec4" value="&lt;b&gt;CSRF&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Flask-WTF +&lt;br&gt;OAuth state&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="385" y="674" width="100" height="45" as="geometry"/>
</mxCell>
<mxCell id="sec5" value="&lt;b&gt;Rate Limit&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;50/h, 200/dzień&lt;br&gt;Flask-Limiter&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="495" y="674" width="100" height="45" as="geometry"/>
</mxCell>
<mxCell id="sec6" value="&lt;b&gt;Email 24h&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Weryfikacja +&lt;br&gt;reset token&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="605" y="674" width="100" height="45" as="geometry"/>
</mxCell>
<mxCell id="sec7" value="&lt;b&gt;Audit Log&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;security_service&lt;br&gt;.log_audit()&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="715" y="674" width="100" height="45" as="geometry"/>
</mxCell>
<!-- DECORATORY -->
<mxCell id="dec_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E0F7FA;strokeColor=#00838F;shadow=1;" vertex="1" parent="1">
<mxGeometry x="960" y="85" width="280" height="380" as="geometry"/>
</mxCell>
<mxCell id="dec_title" value="&lt;b style=&quot;font-size:14px;color:#00838F&quot;&gt;Dekoratory Flask&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;utils/decorators.py&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="975" y="91" width="200" height="36" as="geometry"/>
</mxCell>
<mxCell id="d1" value="&lt;b&gt;@login_required&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Flask-Login — redirect do /login&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#00838F;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="975" y="134" width="250" height="36" as="geometry"/>
</mxCell>
<mxCell id="d2" value="&lt;b&gt;@role_required(SystemRole.X)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Minimalny poziom roli → 403&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#00838F;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="975" y="178" width="250" height="36" as="geometry"/>
</mxCell>
<mxCell id="d3" value="&lt;b&gt;@admin_required&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Alias: @role_required(ADMIN)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#00838F;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="975" y="222" width="250" height="36" as="geometry"/>
</mxCell>
<mxCell id="d4" value="&lt;b&gt;@member_required&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Alias: @role_required(MEMBER)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#00838F;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="975" y="266" width="250" height="36" as="geometry"/>
</mxCell>
<mxCell id="d5" value="&lt;b&gt;@company_permission('edit')&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Delegowane uprawnienia firmy&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#00838F;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="975" y="310" width="250" height="36" as="geometry"/>
</mxCell>
<mxCell id="dec_methods" value="&lt;font style=&quot;font-size:10px;color:#00838F&quot;&gt;&lt;b&gt;Metody User:&lt;/b&gt;&lt;br&gt;.has_role(SystemRole.X)&lt;br&gt;.can_edit_company(id)&lt;br&gt;.can_manage_company(id)&lt;br&gt;.can_access_admin_panel()&lt;br&gt;.has_delegated_permission()&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=top;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="975" y="358" width="200" height="86" as="geometry"/>
</mxCell>
<!-- PODSUMOWANIE -->
<mxCell id="summary" value="&lt;font style=&quot;font-size:11px;color:#888&quot;&gt;&lt;b&gt;6 ról systemowych&lt;/b&gt; (hierarchiczne) | &lt;b&gt;3 role firmowe&lt;/b&gt; (per company) | &lt;b&gt;7 delegowanych uprawnień&lt;/b&gt; | &lt;b&gt;OAuth 2.0&lt;/b&gt; (Google ✅ + Meta ⏳) | &lt;b&gt;7 zabezpieczeń&lt;/b&gt;&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="250" y="760" width="820" height="24" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 821 KiB

View File

@ -0,0 +1,172 @@
<mxfile host="draw.io" modified="2026-02-12" agent="Claude Code" type="device">
<diagram id="a6-api" name="Mapa Integracji API">
<mxGraphModel dx="1400" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="1000" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="title" value="NordaBiz — Mapa Integracji API" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=22;fontStyle=1;fontColor=#1a1a2e;" vertex="1" parent="1">
<mxGeometry x="460" y="15" width="430" height="36" as="geometry"/>
</mxCell>
<mxCell id="subtitle" value="Szczegółowa mapa wszystkich zewnętrznych API z endpointami, uwierzytelnianiem i przepływem danych" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#888;" vertex="1" parent="1">
<mxGeometry x="350" y="48" width="620" height="20" as="geometry"/>
</mxCell>
<!-- CENTRUM: NORDABIZ API LAYER -->
<mxCell id="center_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#1a1a2e;strokeColor=#1a1a2e;shadow=1;" vertex="1" parent="1">
<mxGeometry x="580" y="310" width="240" height="280" as="geometry"/>
</mxCell>
<mxCell id="center_title" value="&lt;b style=&quot;font-size:16px;color:#fff&quot;&gt;NordaBiz API Layer&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="610" y="318" width="200" height="24" as="geometry"/>
</mxCell>
<mxCell id="cs1" value="&lt;font color=&quot;#90CAF9&quot;&gt;gemini_service.py&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="600" y="346" width="120" height="18" as="geometry"/>
</mxCell>
<mxCell id="cs2" value="&lt;font color=&quot;#90CAF9&quot;&gt;pagespeed_client.py&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="600" y="366" width="130" height="18" as="geometry"/>
</mxCell>
<mxCell id="cs3" value="&lt;font color=&quot;#90CAF9&quot;&gt;oauth_service.py&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="600" y="386" width="120" height="18" as="geometry"/>
</mxCell>
<mxCell id="cs4" value="&lt;font color=&quot;#90CAF9&quot;&gt;crux_service.py&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="600" y="406" width="110" height="18" as="geometry"/>
</mxCell>
<mxCell id="cs5" value="&lt;font color=&quot;#90CAF9&quot;&gt;youtube_service.py&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="600" y="426" width="130" height="18" as="geometry"/>
</mxCell>
<mxCell id="cs6" value="&lt;font color=&quot;#90CAF9&quot;&gt;social_media_audit.py&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="600" y="446" width="140" height="18" as="geometry"/>
</mxCell>
<mxCell id="cs7" value="&lt;font color=&quot;#90CAF9&quot;&gt;news_service.py&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="600" y="466" width="110" height="18" as="geometry"/>
</mxCell>
<mxCell id="cs8" value="&lt;font color=&quot;#90CAF9&quot;&gt;krs_service.py&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="600" y="486" width="110" height="18" as="geometry"/>
</mxCell>
<mxCell id="cs9" value="&lt;font color=&quot;#90CAF9&quot;&gt;email_service.py&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="600" y="506" width="120" height="18" as="geometry"/>
</mxCell>
<mxCell id="cs10" value="&lt;font color=&quot;#90CAF9&quot;&gt;benchmark_service.py&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="600" y="526" width="140" height="18" as="geometry"/>
</mxCell>
<mxCell id="cs_db" value="&lt;font color=&quot;#FFF59D&quot;&gt;→ PostgreSQL (80+ tabel)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="600" y="553" width="160" height="18" as="geometry"/>
</mxCell>
<!-- GOOGLE APIs (lewa-góra) -->
<mxCell id="g_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#4285F4;shadow=1;" vertex="1" parent="1">
<mxGeometry x="40" y="80" width="440" height="250" as="geometry"/>
</mxCell>
<mxCell id="g_title" value="&lt;b style=&quot;font-size:16px;color:#4285F4&quot;&gt;Google APIs&lt;/b&gt;&lt;font style=&quot;font-size:10px;color:#888&quot;&gt; — API Key + OAuth 2.0&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="55" y="86" width="320" height="24" as="geometry"/>
</mxCell>
<mxCell id="g1" value="&lt;b&gt;Gemini AI&lt;/b&gt; (gemini-3-flash)&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Auth: API Key | generateContent, embedContent&lt;br&gt;Chat, SEO insights, knowledge extraction&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#4285F4;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="55" y="116" width="410" height="42" as="geometry"/>
</mxCell>
<mxCell id="g2" value="&lt;b&gt;PageSpeed Insights API v5&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Auth: API Key | runPagespeed (strategy=mobile/desktop)&lt;br&gt;Lighthouse audits, Core Web Vitals, accessibility&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#4285F4;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="55" y="164" width="410" height="42" as="geometry"/>
</mxCell>
<mxCell id="g3" value="&lt;b&gt;Places API (New)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Auth: API Key | searchText, getPlace, reviews&lt;br&gt;GBP data, ratings, photos, attributes&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#4285F4;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="55" y="212" width="410" height="42" as="geometry"/>
</mxCell>
<mxCell id="g4" value="&lt;b&gt;Search Console API&lt;/b&gt; ✅ OAuth&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Auth: OAuth 2.0 | searchAnalytics.query&lt;br&gt;Clicks, impressions, CTR, top queries/pages&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#34A853;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="55" y="260" width="200" height="55" as="geometry"/>
</mxCell>
<mxCell id="g5" value="&lt;b&gt;CrUX API&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Auth: API Key | queryRecord&lt;br&gt;Real user field data (LCP, FID,&lt;br&gt;CLS, INP, TTFB)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#4285F4;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="265" y="260" width="200" height="55" as="geometry"/>
</mxCell>
<!-- STRZAŁKA Google → Center -->
<mxCell id="arr_g" value="5 API" style="strokeColor=#4285F4;strokeWidth=3;fontSize=11;fontColor=#4285F4;fontStyle=1;" edge="1" source="g_bg" target="center_bg" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- SOCIAL MEDIA (prawa-góra) -->
<mxCell id="sm_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FCE4EC;strokeColor=#C62828;shadow=1;" vertex="1" parent="1">
<mxGeometry x="930" y="80" width="340" height="210" as="geometry"/>
</mxCell>
<mxCell id="sm_title" value="&lt;b style=&quot;font-size:16px;color:#C62828&quot;&gt;Social Media&lt;/b&gt;&lt;font style=&quot;font-size:10px;color:#888&quot;&gt; — Web scraping&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="945" y="86" width="280" height="24" as="geometry"/>
</mxCell>
<mxCell id="sm1" value="&lt;b&gt;Facebook&lt;/b&gt; — scraping stron firmowych" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1877F2;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="945" y="116" width="310" height="24" as="geometry"/>
</mxCell>
<mxCell id="sm2" value="&lt;b&gt;Instagram&lt;/b&gt; — weryfikacja profili (curl -sI)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E4405F;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="945" y="146" width="310" height="24" as="geometry"/>
</mxCell>
<mxCell id="sm3" value="&lt;b&gt;LinkedIn&lt;/b&gt; — scraping profili firmowych" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#0077B5;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="945" y="176" width="310" height="24" as="geometry"/>
</mxCell>
<mxCell id="sm4" value="&lt;b&gt;YouTube Data API v3&lt;/b&gt; — API Key | channels.list" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#FF0000;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="945" y="206" width="310" height="24" as="geometry"/>
</mxCell>
<mxCell id="sm5" value="&lt;b&gt;TikTok + X (Twitter)&lt;/b&gt; — link detection only" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#333;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="945" y="236" width="310" height="24" as="geometry"/>
</mxCell>
<!-- STRZAŁKA Social → Center -->
<mxCell id="arr_sm" value="6 platform" style="strokeColor=#C62828;strokeWidth=3;fontSize=11;fontColor=#C62828;fontStyle=1;" edge="1" source="sm_bg" target="center_bg" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- REJESTRY PUBLICZNE (lewy-dół) -->
<mxCell id="reg_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#2E7D32;shadow=1;" vertex="1" parent="1">
<mxGeometry x="40" y="400" width="440" height="150" as="geometry"/>
</mxCell>
<mxCell id="reg_title" value="&lt;b style=&quot;font-size:16px;color:#2E7D32&quot;&gt;Rejestry Publiczne&lt;/b&gt;&lt;font style=&quot;font-size:10px;color:#888&quot;&gt; — REST / SOAP&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="55" y="406" width="340" height="24" as="geometry"/>
</mxCell>
<mxCell id="reg1" value="&lt;b&gt;KRS API&lt;/b&gt; (Krajowy Rejestr Sądowy)&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Auth: brak | Dane spółek, zarządy, wspólnicy&lt;br&gt;api-krs.ms.gov.pl — REST JSON&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="55" y="436" width="410" height="42" as="geometry"/>
</mxCell>
<mxCell id="reg2" value="&lt;b&gt;CEIDG API&lt;/b&gt; (Centralna Ewidencja Działalności Gosp.)&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Auth: token | Dane JDG, PKD, adresy, status&lt;br&gt;dane.biznes.gov.pl — REST JSON&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="55" y="484" width="410" height="42" as="geometry"/>
</mxCell>
<!-- STRZAŁKA Reg → Center -->
<mxCell id="arr_reg" value="2 rejestry" style="strokeColor=#2E7D32;strokeWidth=3;fontSize=11;fontColor=#2E7D32;fontStyle=1;" edge="1" source="reg_bg" target="center_bg" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- INNE SERWISY (prawy-dół) -->
<mxCell id="oth_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF3E0;strokeColor=#E65100;shadow=1;" vertex="1" parent="1">
<mxGeometry x="930" y="350" width="340" height="200" as="geometry"/>
</mxCell>
<mxCell id="oth_title" value="&lt;b style=&quot;font-size:16px;color:#E65100&quot;&gt;Inne Serwisy&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="945" y="356" width="160" height="24" as="geometry"/>
</mxCell>
<mxCell id="oth1" value="&lt;b&gt;Microsoft Graph API&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Auth: OAuth 2.0 | Mail.Send&lt;br&gt;Wysyłka e-mail (powiadomienia, reset)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#00A4EF;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="945" y="386" width="310" height="42" as="geometry"/>
</mxCell>
<mxCell id="oth2" value="&lt;b&gt;Brave Search API&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Auth: API Key | Web search&lt;br&gt;Wiadomości i news monitoring (ZOPK)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#FB542B;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="945" y="434" width="310" height="42" as="geometry"/>
</mxCell>
<mxCell id="oth3" value="&lt;b&gt;ALEO.com API&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Auth: scraping | Dane finansowe firm&lt;br&gt;Przychody, zyski, zatrudnienie&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="945" y="482" width="310" height="42" as="geometry"/>
</mxCell>
<!-- STRZAŁKA Other → Center -->
<mxCell id="arr_oth" value="3 serwisy" style="strokeColor=#E65100;strokeWidth=3;fontSize=11;fontColor=#E65100;fontStyle=1;" edge="1" source="oth_bg" target="center_bg" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- LEGENDA AUTH -->
<mxCell id="leg_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#ccc;" vertex="1" parent="1">
<mxGeometry x="40" y="600" width="440" height="70" as="geometry"/>
</mxCell>
<mxCell id="leg_title" value="&lt;b style=&quot;font-size:12px&quot;&gt;Metody uwierzytelniania:&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="55" y="606" width="200" height="22" as="geometry"/>
</mxCell>
<mxCell id="leg1" value="&lt;font style=&quot;font-size:10px&quot;&gt;&lt;b&gt;API Key&lt;/b&gt; — klucz w .env (Gemini, PageSpeed, Places, CrUX, YouTube, Brave)&lt;br&gt;&lt;b&gt;OAuth 2.0&lt;/b&gt; — token użytkownika (Google Search Console, Microsoft Graph, Meta)&lt;br&gt;&lt;b&gt;Token&lt;/b&gt; — klucz autoryzacyjny (CEIDG) &amp;nbsp;|&amp;nbsp; &lt;b&gt;Open&lt;/b&gt; — brak autoryzacji (KRS)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="55" y="628" width="420" height="36" as="geometry"/>
</mxCell>
<!-- PODSUMOWANIE -->
<mxCell id="summary" value="&lt;font style=&quot;font-size:11px;color:#888&quot;&gt;&lt;b&gt;16 integracji API&lt;/b&gt; &amp;nbsp;|&amp;nbsp; 5 Google APIs + 6 Social Media + 2 Rejestry + 3 Inne &amp;nbsp;|&amp;nbsp; Cost: &lt;b&gt;$0/mies.&lt;/b&gt; (free tiers + scraping)&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="330" y="710" width="700" height="24" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 639 KiB

View File

@ -0,0 +1,165 @@
<mxfile host="draw.io" modified="2026-02-12" agent="Claude Code" type="device">
<diagram id="a7-modules" name="Struktura Modulow">
<mxGraphModel dx="1400" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="1000" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="title" value="NordaBiz — Struktura Modułów (Blueprinty)" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=22;fontStyle=1;fontColor=#1a1a2e;" vertex="1" parent="1">
<mxGeometry x="400" y="15" width="530" height="36" as="geometry"/>
</mxCell>
<mxCell id="subtitle" value="17 blueprintów Flask — modularny monolit po refaktoringu app.py (15,570 → 1,557 linii)" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#888;" vertex="1" parent="1">
<mxGeometry x="380" y="48" width="560" height="20" as="geometry"/>
</mxCell>
<!-- CENTRUM: APP.PY -->
<mxCell id="center" value="&lt;b style=&quot;font-size:16px;color:#fff&quot;&gt;app.py&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#ccc&quot;&gt;1,557 linii&lt;br&gt;Flask factory&lt;br&gt;Blueprint registry&lt;/font&gt;" style="ellipse;whiteSpace=wrap;html=1;fillColor=#1a1a2e;strokeColor=#1a1a2e;shadow=1;" vertex="1" parent="1">
<mxGeometry x="660" y="400" width="140" height="120" as="geometry"/>
</mxCell>
<!-- SERWISY (po lewej) -->
<mxCell id="svc_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F3E5F5;strokeColor=#7B1FA2;shadow=1;" vertex="1" parent="1">
<mxGeometry x="40" y="350" width="280" height="230" as="geometry"/>
</mxCell>
<mxCell id="svc_title" value="&lt;b style=&quot;font-size:14px;color:#7B1FA2&quot;&gt;Serwisy (27)&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="50" y="356" width="130" height="24" as="geometry"/>
</mxCell>
<mxCell id="s1" value="gemini_service.py — AI Gemini" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#7B1FA2;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="50" y="384" width="260" height="22" as="geometry"/>
</mxCell>
<mxCell id="s2" value="search_service.py — Unified Search" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#7B1FA2;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="50" y="410" width="260" height="22" as="geometry"/>
</mxCell>
<mxCell id="s3" value="oauth_service.py — Google/Meta OAuth" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#7B1FA2;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="50" y="436" width="260" height="22" as="geometry"/>
</mxCell>
<mxCell id="s4" value="benchmark_service.py — Benchmarks" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#7B1FA2;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="50" y="462" width="260" height="22" as="geometry"/>
</mxCell>
<mxCell id="s5" value="crux_service.py — Chrome UX Report" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#7B1FA2;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="50" y="488" width="260" height="22" as="geometry"/>
</mxCell>
<mxCell id="s6" value="youtube_service.py — YouTube API" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#7B1FA2;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="50" y="514" width="260" height="22" as="geometry"/>
</mxCell>
<mxCell id="s7" value="+ 21 więcej (database.py, nordabiz_chat.py...)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E1BEE7;strokeColor=#7B1FA2;fontSize=10;align=left;spacingLeft=6;fontStyle=2;" vertex="1" parent="1">
<mxGeometry x="50" y="544" width="260" height="22" as="geometry"/>
</mxCell>
<!-- STRZAŁKA serwisy → center -->
<mxCell id="arr_svc" value="import" style="strokeColor=#7B1FA2;strokeWidth=2;fontSize=10;fontColor=#7B1FA2;fontStyle=1;" edge="1" source="svc_bg" target="center" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- BLUEPRINTY GŁÓWNE (góra) -->
<mxCell id="bp_core_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;shadow=1;" vertex="1" parent="1">
<mxGeometry x="440" y="80" width="560" height="140" as="geometry"/>
</mxCell>
<mxCell id="bp_core_title" value="&lt;b style=&quot;font-size:14px;color:#1565C0&quot;&gt;Blueprinty Podstawowe (użytkownicy)&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="450" y="86" width="330" height="24" as="geometry"/>
</mxCell>
<mxCell id="bp1" value="&lt;b&gt;main&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Katalog, strona&lt;br&gt;główna, search&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="455" y="114" width="100" height="46" as="geometry"/>
</mxCell>
<mxCell id="bp2" value="&lt;b&gt;auth&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Login, rejestracja&lt;br&gt;2FA, reset hasła&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="565" y="114" width="100" height="46" as="geometry"/>
</mxCell>
<mxCell id="bp3" value="&lt;b&gt;company&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Profile firm&lt;br&gt;edycja danych&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="675" y="114" width="100" height="46" as="geometry"/>
</mxCell>
<mxCell id="bp4" value="&lt;b&gt;chat&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;NordaGPT&lt;br&gt;Gemini AI&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="785" y="114" width="100" height="46" as="geometry"/>
</mxCell>
<mxCell id="bp5" value="&lt;b&gt;account&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Panel konta&lt;br&gt;ustawienia&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="895" y="114" width="90" height="46" as="geometry"/>
</mxCell>
<mxCell id="bp6" value="&lt;b&gt;forum&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Dyskusje&lt;br&gt;społeczność&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="455" y="166" width="100" height="44" as="geometry"/>
</mxCell>
<mxCell id="bp7" value="&lt;b&gt;classifieds&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Ogłoszenia&lt;br&gt;B2B&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="565" y="166" width="100" height="44" as="geometry"/>
</mxCell>
<mxCell id="bp8" value="&lt;b&gt;messages&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Prywatne&lt;br&gt;wiadomości&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="675" y="166" width="100" height="44" as="geometry"/>
</mxCell>
<mxCell id="bp9" value="&lt;b&gt;events&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Kalendarz&lt;br&gt;wydarzenia&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="785" y="166" width="100" height="44" as="geometry"/>
</mxCell>
<mxCell id="bp10" value="&lt;b&gt;zopk&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Baza wiedzy&lt;br&gt;ZOPK&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="895" y="166" width="90" height="44" as="geometry"/>
</mxCell>
<!-- STRZAŁKA core → center -->
<mxCell id="arr_core" value="register_blueprint" style="strokeColor=#1565C0;strokeWidth=2;fontSize=10;fontColor=#1565C0;fontStyle=1;" edge="1" source="bp_core_bg" target="center" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- BLUEPRINTY ADMIN (prawo) -->
<mxCell id="bp_admin_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFEBEE;strokeColor=#C62828;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1080" y="260" width="240" height="310" as="geometry"/>
</mxCell>
<mxCell id="bp_admin_title" value="&lt;b style=&quot;font-size:14px;color:#C62828&quot;&gt;Blueprinty Admin&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1090" y="266" width="170" height="24" as="geometry"/>
</mxCell>
<mxCell id="adm1" value="&lt;b&gt;admin&lt;/b&gt; — Panel główny, firmy, użytkownicy" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="1090" y="296" width="220" height="28" as="geometry"/>
</mxCell>
<mxCell id="adm2" value="&lt;b&gt;admin_seo&lt;/b&gt; — Audyty SEO, PageSpeed" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="1090" y="330" width="220" height="28" as="geometry"/>
</mxCell>
<mxCell id="adm3" value="&lt;b&gt;admin_social&lt;/b&gt; — Social media audit" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="1090" y="364" width="220" height="28" as="geometry"/>
</mxCell>
<mxCell id="adm4" value="&lt;b&gt;admin_news&lt;/b&gt; — Monitoring wiadomości" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="1090" y="398" width="220" height="28" as="geometry"/>
</mxCell>
<mxCell id="adm5" value="&lt;b&gt;board&lt;/b&gt; — Rada Izby, protokoły" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="1090" y="432" width="220" height="28" as="geometry"/>
</mxCell>
<mxCell id="adm6" value="&lt;b&gt;membership&lt;/b&gt; — Składki, taryfy" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="1090" y="466" width="220" height="28" as="geometry"/>
</mxCell>
<mxCell id="adm7" value="&lt;b&gt;reports&lt;/b&gt; — Raporty zbiorcze" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="1090" y="500" width="220" height="28" as="geometry"/>
</mxCell>
<mxCell id="adm8" value="&lt;b&gt;api&lt;/b&gt; — REST API, OAuth, webhooks" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=10;align=left;spacingLeft=6;" vertex="1" parent="1">
<mxGeometry x="1090" y="534" width="220" height="28" as="geometry"/>
</mxCell>
<!-- STRZAŁKA admin → center -->
<mxCell id="arr_admin" value="register_blueprint" style="strokeColor=#C62828;strokeWidth=2;fontSize=10;fontColor=#C62828;fontStyle=1;" edge="1" source="bp_admin_bg" target="center" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- BAZA DANYCH (dół) -->
<mxCell id="db_box" value="&lt;b style=&quot;font-size:14px;color:#1565C0&quot;&gt;PostgreSQL&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;database.py — 80+ tabel | 19 domen | 3 widoki | 2 funkcje&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;shadow=1;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="510" y="620" width="430" height="50" as="geometry"/>
</mxCell>
<mxCell id="arr_db" value="SQLAlchemy" style="strokeColor=#1565C0;strokeWidth=2;fontSize=10;fontColor=#1565C0;fontStyle=1;" edge="1" source="center" target="db_box" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- UTILS -->
<mxCell id="utils_box" value="&lt;b&gt;utils/&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;decorators.py, helpers.py&lt;br&gt;validators.py, cache.py&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#2E7D32;shadow=1;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="380" y="380" width="160" height="55" as="geometry"/>
</mxCell>
<!-- TEMPLATES -->
<mxCell id="tpl_box" value="&lt;b&gt;templates/&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;Jinja2 szablony&lt;br&gt;base.html + podkatalogi per blueprint&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#2E7D32;shadow=1;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="380" y="460" width="160" height="55" as="geometry"/>
</mxCell>
<!-- STATIC -->
<mxCell id="static_box" value="&lt;b&gt;static/&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;CSS, JS, obrazy&lt;br&gt;Vanilla JS (bez frameworka)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#2E7D32;shadow=1;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="380" y="540" width="160" height="55" as="geometry"/>
</mxCell>
<!-- PODSUMOWANIE -->
<mxCell id="summary" value="&lt;font style=&quot;font-size:11px;color:#888&quot;&gt;&lt;b&gt;17 blueprintów&lt;/b&gt; | &lt;b&gt;49 plików z routami&lt;/b&gt; | &lt;b&gt;375+ tras API&lt;/b&gt; | &lt;b&gt;27 serwisów&lt;/b&gt; | Refaktoring -90% (15,570 → 1,557 linii app.py)&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="330" y="700" width="740" height="24" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 530 KiB

View File

@ -0,0 +1,161 @@
<mxfile host="draw.io" modified="2026-02-12" agent="Claude Code" type="device">
<diagram id="a8-backup-dr" name="Backup i Disaster Recovery">
<mxGraphModel dx="1400" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="1000" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="title" value="NordaBiz — Backup &amp; Disaster Recovery" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=22;fontStyle=1;fontColor=#1a1a2e;" vertex="1" parent="1">
<mxGeometry x="440" y="15" width="480" height="36" as="geometry"/>
</mxCell>
<mxCell id="subtitle" value="Strategia backupu, retencja danych i procedury odtwarzania po awarii" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#888;" vertex="1" parent="1">
<mxGeometry x="430" y="48" width="480" height="20" as="geometry"/>
</mxCell>
<!-- ŹRÓDŁO: PRODUKCJA -->
<mxCell id="prod_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;shadow=1;" vertex="1" parent="1">
<mxGeometry x="40" y="90" width="300" height="280" as="geometry"/>
</mxCell>
<mxCell id="prod_title" value="&lt;b style=&quot;font-size:15px;color:#1565C0&quot;&gt;Produkcja (VM 249)&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="55" y="96" width="200" height="26" as="geometry"/>
</mxCell>
<mxCell id="prod_db" value="&lt;b&gt;PostgreSQL&lt;/b&gt;&lt;br&gt;nordabiz (80+ tabel)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="65" y="130" width="250" height="40" as="geometry"/>
</mxCell>
<mxCell id="prod_app" value="&lt;b&gt;Aplikacja Flask&lt;/b&gt;&lt;br&gt;Gunicorn :5000" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="65" y="180" width="250" height="40" as="geometry"/>
</mxCell>
<mxCell id="prod_env" value="&lt;b&gt;.env&lt;/b&gt; — credentials, API keys" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="65" y="230" width="250" height="32" as="geometry"/>
</mxCell>
<mxCell id="prod_code" value="&lt;b&gt;Kod źródłowy&lt;/b&gt; — Git (Gitea + GitHub)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="65" y="270" width="250" height="32" as="geometry"/>
</mxCell>
<mxCell id="prod_cron" value="&lt;b&gt;Cron&lt;/b&gt; — harmonogram automatyczny" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="65" y="310" width="250" height="32" as="geometry"/>
</mxCell>
<!-- BACKUP LOKALNY -->
<mxCell id="local_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#2E7D32;shadow=1;" vertex="1" parent="1">
<mxGeometry x="440" y="90" width="340" height="280" as="geometry"/>
</mxCell>
<mxCell id="local_title" value="&lt;b style=&quot;font-size:15px;color:#2E7D32&quot;&gt;Backup Lokalny (VM 249)&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="455" y="96" width="260" height="26" as="geometry"/>
</mxCell>
<mxCell id="hourly" value="&lt;b style=&quot;color:#2E7D32&quot;&gt;Co godzinę&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;pg_dump -Fc (custom format)&lt;br&gt;Retencja: 24 godziny&lt;br&gt;/var/backups/nordabiz/hourly/&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="455" y="130" width="310" height="60" as="geometry"/>
</mxCell>
<mxCell id="daily" value="&lt;b style=&quot;color:#2E7D32&quot;&gt;Codziennie (02:00)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;pg_dump -Fc (custom format)&lt;br&gt;Retencja: 30 dni&lt;br&gt;/var/backups/nordabiz/daily/&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="455" y="200" width="310" height="60" as="geometry"/>
</mxCell>
<mxCell id="config" value="&lt;b style=&quot;color:#2E7D32&quot;&gt;Konfiguracja (niedz. 03:00)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;.env, systemd, nginx&lt;br&gt;Retencja: 4 tygodnie&lt;br&gt;/var/backups/nordabiz/config/&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="455" y="270" width="310" height="60" as="geometry"/>
</mxCell>
<!-- BACKUP OFFSITE -->
<mxCell id="offsite_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF3E0;strokeColor=#E65100;shadow=1;" vertex="1" parent="1">
<mxGeometry x="880" y="90" width="340" height="280" as="geometry"/>
</mxCell>
<mxCell id="offsite_title" value="&lt;b style=&quot;font-size:15px;color:#E65100&quot;&gt;Offsite (PBS 10.22.68.127)&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="895" y="96" width="280" height="26" as="geometry"/>
</mxCell>
<mxCell id="pbs_daily" value="&lt;b style=&quot;color:#E65100&quot;&gt;Kopia dzienna (rsync 04:00)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;Mirror /daily/ → PBS&lt;br&gt;Retencja: 30 dni&lt;br&gt;/backup/nordabiz/daily/&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="895" y="130" width="310" height="60" as="geometry"/>
</mxCell>
<mxCell id="pbs_config" value="&lt;b style=&quot;color:#E65100&quot;&gt;Kopia konfiguracji (rsync 04:30)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;Mirror /config/ → PBS&lt;br&gt;Retencja: 30 dni&lt;br&gt;/backup/nordabiz/config/&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="895" y="200" width="310" height="60" as="geometry"/>
</mxCell>
<mxCell id="pbs_vm" value="&lt;b style=&quot;color:#E65100&quot;&gt;VM Snapshots (Proxmox)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;Manualne (przed wdrożeniem)&lt;br&gt;Max 3 snapshoty&lt;br&gt;LVM/PBS storage&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="895" y="270" width="310" height="60" as="geometry"/>
</mxCell>
<!-- STRZAŁKI BACKUP -->
<mxCell id="arr1" value="pg_dump" style="rounded=1;strokeColor=#2E7D32;strokeWidth=2;fontSize=10;fontColor=#2E7D32;fontStyle=1;" edge="1" source="prod_bg" target="local_bg" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="arr2" value="rsync" style="rounded=1;strokeColor=#E65100;strokeWidth=2;fontSize=10;fontColor=#E65100;fontStyle=1;" edge="1" source="local_bg" target="offsite_bg" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- SLA -->
<mxCell id="sla_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F3E5F5;strokeColor=#7B1FA2;shadow=1;" vertex="1" parent="1">
<mxGeometry x="40" y="420" width="300" height="140" as="geometry"/>
</mxCell>
<mxCell id="sla_title" value="&lt;b style=&quot;font-size:15px;color:#7B1FA2&quot;&gt;Cele SLA&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="55" y="426" width="100" height="26" as="geometry"/>
</mxCell>
<mxCell id="rto" value="&lt;b style=&quot;font-size:18px;color:#7B1FA2&quot;&gt;RTO: 30-60 min&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;Recovery Time Objective&lt;br&gt;Czas przywrócenia do produkcji&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#7B1FA2;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="55" y="458" width="270" height="44" as="geometry"/>
</mxCell>
<mxCell id="rpo" value="&lt;b style=&quot;font-size:18px;color:#7B1FA2&quot;&gt;RPO: 1 godzina&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;Recovery Point Objective&lt;br&gt;Maks. akceptowalna utrata danych&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#7B1FA2;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="55" y="508" width="270" height="44" as="geometry"/>
</mxCell>
<!-- SCENARIUSZE DR -->
<mxCell id="dr_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFEBEE;strokeColor=#C62828;shadow=1;" vertex="1" parent="1">
<mxGeometry x="380" y="420" width="840" height="220" as="geometry"/>
</mxCell>
<mxCell id="dr_title" value="&lt;b style=&quot;font-size:15px;color:#C62828&quot;&gt;Scenariusze Disaster Recovery&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="395" y="426" width="300" height="26" as="geometry"/>
</mxCell>
<mxCell id="sc1" value="&lt;b style=&quot;color:#C62828&quot;&gt;Uszkodzenie bazy&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;dr-restore.sh + hourly backup&lt;br&gt;&lt;b&gt;RTO: 15 min&lt;/b&gt;&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="395" y="460" width="195" height="55" as="geometry"/>
</mxCell>
<mxCell id="sc2" value="&lt;b style=&quot;color:#C62828&quot;&gt;Awaria VM&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;Restart VM / rollback snapshot&lt;br&gt;&lt;b&gt;RTO: 5-10 min&lt;/b&gt;&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="600" y="460" width="195" height="55" as="geometry"/>
</mxCell>
<mxCell id="sc3" value="&lt;b style=&quot;color:#C62828&quot;&gt;Utrata całego VM&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;Nowy VM + PBS restore&lt;br&gt;&lt;b&gt;RTO: 60 min&lt;/b&gt;&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="805" y="460" width="195" height="55" as="geometry"/>
</mxCell>
<mxCell id="sc4" value="&lt;b style=&quot;color:#C62828&quot;&gt;Ransomware&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px&quot;&gt;Izolacja + nowy VM + PBS + rotacja kluczy&lt;br&gt;&lt;b&gt;RTO: 60-120 min&lt;/b&gt;&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1010" y="460" width="195" height="55" as="geometry"/>
</mxCell>
<!-- RESTORE FLOW -->
<mxCell id="restore_title" value="&lt;b style=&quot;font-size:13px;color:#C62828&quot;&gt;Procedura przywracania (dr-restore.sh):&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="395" y="530" width="340" height="22" as="geometry"/>
</mxCell>
<mxCell id="step1" value="1. Stop&lt;br&gt;aplikacji" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFCDD2;strokeColor=#C62828;fontSize=10;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="395" y="558" width="100" height="40" as="geometry"/>
</mxCell>
<mxCell id="step2" value="2. Safety&lt;br&gt;backup" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFCDD2;strokeColor=#C62828;fontSize=10;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="510" y="558" width="100" height="40" as="geometry"/>
</mxCell>
<mxCell id="step3" value="3. Drop +&lt;br&gt;Restore DB" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFCDD2;strokeColor=#C62828;fontSize=10;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="625" y="558" width="100" height="40" as="geometry"/>
</mxCell>
<mxCell id="step4" value="4. GRANT&lt;br&gt;permissions" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFCDD2;strokeColor=#C62828;fontSize=10;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="740" y="558" width="100" height="40" as="geometry"/>
</mxCell>
<mxCell id="step5" value="5. Start +&lt;br&gt;Health check" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFCDD2;strokeColor=#C62828;fontSize=10;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="855" y="558" width="100" height="40" as="geometry"/>
</mxCell>
<mxCell id="step6" value="6. Weryfikacja&lt;br&gt;firm w bazie" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8E6C9;strokeColor=#2E7D32;fontSize=10;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="970" y="558" width="100" height="40" as="geometry"/>
</mxCell>
<mxCell id="sarr1" style="strokeColor=#C62828;strokeWidth=2;" edge="1" source="step1" target="step2" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell>
<mxCell id="sarr2" style="strokeColor=#C62828;strokeWidth=2;" edge="1" source="step2" target="step3" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell>
<mxCell id="sarr3" style="strokeColor=#C62828;strokeWidth=2;" edge="1" source="step3" target="step4" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell>
<mxCell id="sarr4" style="strokeColor=#C62828;strokeWidth=2;" edge="1" source="step4" target="step5" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell>
<mxCell id="sarr5" style="strokeColor=#2E7D32;strokeWidth=2;" edge="1" source="step5" target="step6" parent="1"><mxGeometry relative="1" as="geometry"/></mxCell>
<!-- MONITORING -->
<mxCell id="mon_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E0F7FA;strokeColor=#00838F;shadow=1;" vertex="1" parent="1">
<mxGeometry x="40" y="610" width="300" height="110" as="geometry"/>
</mxCell>
<mxCell id="mon_title" value="&lt;b style=&quot;font-size:15px;color:#00838F&quot;&gt;Monitoring Backupów&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="55" y="616" width="200" height="26" as="geometry"/>
</mxCell>
<mxCell id="mon1" value="&lt;font style=&quot;font-size:10px&quot;&gt;✓ Backup exists &amp;lt; 2h old&lt;br&gt;✓ Backup size ≥ 1 MB&lt;br&gt;✓ Size consistent (±50%)&lt;br&gt;✓ dr-restore.sh executable&lt;br&gt;✓ Cron job configured&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#00838F;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="55" y="646" width="270" height="66" as="geometry"/>
</mxCell>
<!-- PODSUMOWANIE -->
<mxCell id="summary" value="&lt;font style=&quot;font-size:11px;color:#888&quot;&gt;&lt;b&gt;3 warstwy backupu&lt;/b&gt; (lokalny godzinowy + lokalny dzienny + offsite PBS) &amp;nbsp;|&amp;nbsp; &lt;b&gt;RTO 15-60 min&lt;/b&gt; &amp;nbsp;|&amp;nbsp; &lt;b&gt;RPO 1h&lt;/b&gt; &amp;nbsp;|&amp;nbsp; Automatyczne testy zdrowia backupów&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="280" y="750" width="820" height="24" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 668 KiB

View File

@ -0,0 +1,386 @@
<mxfile host="draw.io" modified="2026-02-12" agent="Claude Code" type="device">
<diagram id="a9-it-arch" name="Szczegółowa Architektura IT">
<mxGraphModel dx="2600" dy="1800" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="2800" pageHeight="2000" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<!-- TYTUŁ -->
<mxCell id="title" value="NordaBiznes.pl — Szczegółowa Architektura IT i Infrastruktura" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=26;fontStyle=1;fontColor=#1a1a2e;" vertex="1" parent="1">
<mxGeometry x="700" y="10" width="780" height="40" as="geometry"/>
</mxCell>
<!-- ==================== INTERNET / CLOUD (góra) ==================== -->
<mxCell id="cloud_group" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;strokeWidth=2;dashed=1;" vertex="1" parent="1">
<mxGeometry x="40" y="70" width="2720" height="210" as="geometry"/>
</mxCell>
<mxCell id="cloud_label" value="&lt;b style=&quot;font-size:16px;color:#1565C0&quot;&gt;INTERNET / CHMURA&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="60" y="75" width="220" height="28" as="geometry"/>
</mxCell>
<!-- Użytkownicy -->
<mxCell id="users" value="&lt;b style=&quot;font-size:13px&quot;&gt;Użytkownicy&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#666&quot;&gt;150 firm członkowskich&lt;br&gt;nordabiznes.pl (HTTPS)&lt;/font&gt;" style="shape=mxgraph.cisco.users;html=1;fillColor=#1565C0;strokeColor=#1565C0;fontColor=#333;rounded=1;whiteSpace=wrap;labelPosition=center;verticalLabelPosition=bottom;verticalAlign=top;align=center;" vertex="1" parent="1">
<mxGeometry x="70" y="105" width="80" height="60" as="geometry"/>
</mxCell>
<!-- OVH DNS -->
<mxCell id="ovh" value="&lt;b style=&quot;font-size:13px&quot;&gt;OVH DNS&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#666&quot;&gt;nordabiznes.pl&lt;br&gt;A → 85.237.177.83&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#BBDEFB;strokeColor=#1565C0;fontSize=12;fontColor=#333;shadow=1;" vertex="1" parent="1">
<mxGeometry x="250" y="110" width="170" height="65" as="geometry"/>
</mxCell>
<!-- Azure AD / M365 -->
<mxCell id="azure" value="&lt;b style=&quot;font-size:13px;color:#0078D4&quot;&gt;Microsoft Azure&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#333&quot;&gt;Entra ID (Azure AD)&lt;br&gt;Exchange Online (SMTP)&lt;br&gt;OneDrive for Business&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E1F5FE;strokeColor=#0078D4;strokeWidth=2;fontSize=12;shadow=1;" vertex="1" parent="1">
<mxGeometry x="490" y="100" width="200" height="90" as="geometry"/>
</mxCell>
<!-- Let's Encrypt -->
<mxCell id="letsencrypt" value="&lt;b style=&quot;font-size:13px&quot;&gt;Let's Encrypt&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#666&quot;&gt;SSL/TLS auto-renewal&lt;br&gt;wildcard cert&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8E6C9;strokeColor=#2E7D32;fontSize=12;fontColor=#333;shadow=1;" vertex="1" parent="1">
<mxGeometry x="760" y="115" width="170" height="60" as="geometry"/>
</mxCell>
<!-- Google APIs -->
<mxCell id="google" value="&lt;b style=&quot;font-size:13px;color:#4285F4&quot;&gt;Google Cloud&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#333&quot;&gt;Gemini AI (NordaGPT)&lt;br&gt;Places API / PageSpeed&lt;br&gt;OAuth 2.0 / Search Console&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF8E1;strokeColor=#F57F17;strokeWidth=2;fontSize=12;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1000" y="100" width="210" height="90" as="geometry"/>
</mxCell>
<!-- GitHub -->
<mxCell id="github" value="&lt;b style=&quot;font-size:13px&quot;&gt;GitHub&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#666&quot;&gt;CI/CD (Actions)&lt;br&gt;Cloud backup repo&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F3E5F5;strokeColor=#7B1FA2;fontSize=12;fontColor=#333;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1280" y="115" width="160" height="60" as="geometry"/>
</mxCell>
<!-- External APIs -->
<mxCell id="ext_apis" value="&lt;b style=&quot;font-size:13px&quot;&gt;API zewnętrzne&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#666&quot;&gt;KRS · Brave · Graph&lt;br&gt;YouTube · CrUX&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F3E5F5;strokeColor=#7B1FA2;fontSize=12;fontColor=#333;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1510" y="115" width="160" height="60" as="geometry"/>
</mxCell>
<!-- Hetzner Backup -->
<mxCell id="hetzner" value="&lt;b style=&quot;font-size:13px&quot;&gt;Hetzner Storage&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#666&quot;&gt;Backup offsite (nocny)&lt;br&gt;30-day retention&lt;br&gt;Geo-redundancy: DE&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FCE4EC;strokeColor=#C62828;fontSize=12;fontColor=#333;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1740" y="105" width="180" height="75" as="geometry"/>
</mxCell>
<!-- Slack -->
<mxCell id="slack_cloud" value="&lt;b style=&quot;font-size:13px&quot;&gt;Slack&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#666&quot;&gt;MCP Webhooks&lt;br&gt;Alerty · Deploy&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8EAF6;strokeColor=#283593;fontSize=12;fontColor=#333;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1990" y="115" width="150" height="60" as="geometry"/>
</mxCell>
<!-- Dev VPN -->
<mxCell id="dev" value="&lt;b style=&quot;font-size:13px&quot;&gt;Dev (VPN)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#666&quot;&gt;FortiClient SSL&lt;br&gt;10.212.134.x&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8EAF6;strokeColor=#283593;fontSize=12;fontColor=#333;shadow=1;" vertex="1" parent="1">
<mxGeometry x="2210" y="115" width="140" height="60" as="geometry"/>
</mxCell>
<!-- ==================== FIREWALL ==================== -->
<mxCell id="fw" value="&lt;b style=&quot;font-size:16px;color:#C62828&quot;&gt;FortiGate 500D&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:12px;color:#333&quot;&gt;85.237.177.83 | IPS/IDS | VPN | Web Filtering | NAT/PAT&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFCDD2;strokeColor=#C62828;strokeWidth=3;fontSize=12;shadow=1;" vertex="1" parent="1">
<mxGeometry x="950" y="320" width="460" height="70" as="geometry"/>
</mxCell>
<!-- Strzałki: Internet → Firewall -->
<mxCell id="arr_ovh_fw" style="rounded=1;strokeColor=#1565C0;strokeWidth=2;exitX=1;exitY=0.5;entryX=0;entryY=0.3;" edge="1" source="ovh" target="fw" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="arr_vpn_fw" style="rounded=1;strokeColor=#283593;strokeWidth=2;dashed=1;entryX=1;entryY=0.3;" edge="1" source="dev" target="fw" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- ==================== SIEĆ LOKALNA ==================== -->
<mxCell id="lan_group" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FAFAFA;strokeColor=#666;strokeWidth=2;dashed=1;" vertex="1" parent="1">
<mxGeometry x="40" y="430" width="2720" height="1320" as="geometry"/>
</mxCell>
<mxCell id="lan_label" value="&lt;b style=&quot;font-size:16px;color:#333&quot;&gt;SIEĆ LOKALNA INPI — 10.22.68.0/24 | Gateway: FortiGate 10.22.68.1&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="60" y="435" width="600" height="28" as="geometry"/>
</mxCell>
<!-- =========================================================== -->
<!-- ===== SERWER FIZYCZNY 1: r11-pve-01 (IBM x3550 M4) ======= -->
<!-- =========================================================== -->
<mxCell id="pve1_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#EDE7F6;strokeColor=#4527A0;strokeWidth=3;" vertex="1" parent="1">
<mxGeometry x="60" y="480" width="1330" height="710" as="geometry"/>
</mxCell>
<mxCell id="pve1_header" value="&lt;b style=&quot;font-size:18px;color:#4527A0&quot;&gt;SERWER FIZYCZNY 1: r11-pve-01&lt;/b&gt;&lt;font style=&quot;font-size:13px;color:#666&quot;&gt; — IBM System x3550 M4 | IP: 10.22.68.121 | IPMI/IMM: 10.22.68.103&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="80" y="485" width="880" height="28" as="geometry"/>
</mxCell>
<mxCell id="pve1_specs" value="&lt;font style=&quot;font-size:12px;color:#4527A0&quot;&gt;&lt;b&gt;2× Intel Xeon E5-26xx v2 | 32 vCPU | 256 GB ECC RAM | Proxmox VE 9.1.4 (kernel 6.17.4) | 21 VM aktywnych (~180 GB RAM)&lt;/b&gt;&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="80" y="510" width="840" height="24" as="geometry"/>
</mxCell>
<!-- === VM: NordaBiznes PROD === -->
<mxCell id="prod_group" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#2E7D32;strokeWidth=3;" vertex="1" parent="1">
<mxGeometry x="80" y="545" width="520" height="340" as="geometry"/>
</mxCell>
<mxCell id="prod_label" value="&lt;b style=&quot;font-size:15px;color:#2E7D32&quot;&gt;VM 249 — NORDABIZ-01 (PRODUKCJA)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#666&quot;&gt;10.22.68.249 | 4 vCPU | 4 GB RAM | 30 GB SSD (iSCSI)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="100" y="550" width="430" height="40" as="geometry"/>
</mxCell>
<mxCell id="flask" value="&lt;b style=&quot;font-size:13px&quot;&gt;Flask 3.1 + Gunicorn&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#666&quot;&gt;18 blueprintów | 40+ serwisów&lt;br&gt;56+ endpointów REST API&lt;br&gt;1 557 linii app.py&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8E6C9;strokeColor=#2E7D32;fontSize=12;fontColor=#333;shadow=1;" vertex="1" parent="1">
<mxGeometry x="100" y="600" width="230" height="90" as="geometry"/>
</mxCell>
<mxCell id="postgres" value="&lt;b style=&quot;font-size:13px&quot;&gt;PostgreSQL 14&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#666&quot;&gt;89 tabel | FTS + fuzzy&lt;br&gt;~500 MB danych&lt;/font&gt;" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=10;fillColor=#C8E6C9;strokeColor=#2E7D32;fontSize=12;fontColor=#333;shadow=1;" vertex="1" parent="1">
<mxGeometry x="350" y="600" width="180" height="90" as="geometry"/>
</mxCell>
<mxCell id="nordagpt" value="&lt;b style=&quot;font-size:12px;color:#F57F17&quot;&gt;NordaGPT (AI)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#666&quot;&gt;Gemini 3 Flash (primary)&lt;br&gt;Gemini 3 Pro (reasoning)&lt;br&gt;Thinking mode | 150 firm&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF8E1;strokeColor=#F57F17;fontSize=12;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="100" y="700" width="170" height="70" as="geometry"/>
</mxCell>
<mxCell id="audits" value="&lt;b style=&quot;font-size:12px&quot;&gt;Audyty&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#666&quot;&gt;SEO | GBP | Social&lt;br&gt;KRS | CrUX&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8E6C9;strokeColor=#2E7D32;fontSize=12;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="260" y="705" width="130" height="60" as="geometry"/>
</mxCell>
<mxCell id="rbac" value="&lt;b style=&quot;font-size:12px&quot;&gt;Security&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#666&quot;&gt;RBAC 6 ról | 2FA&lt;br&gt;CSRF | Rate limit&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8E6C9;strokeColor=#2E7D32;fontSize=12;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="405" y="705" width="130" height="60" as="geometry"/>
</mxCell>
<mxCell id="forum" value="&lt;b style=&quot;font-size:12px&quot;&gt;Forum + ZOPK&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#666&quot;&gt;KB · Timeline · Graf&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8E6C9;strokeColor=#2E7D32;fontSize=12;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="100" y="778" width="145" height="50" as="geometry"/>
</mxCell>
<mxCell id="email_send" value="&lt;b style=&quot;font-size:12px;color:#0078D4&quot;&gt;Email M365&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#666&quot;&gt;SMTP Azure&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E1F5FE;strokeColor=#0078D4;fontSize=12;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="260" y="778" width="120" height="50" as="geometry"/>
</mxCell>
<mxCell id="norda360" value="&lt;b style=&quot;font-size:12px;color:#F57F17&quot;&gt;Norda360&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#666&quot;&gt;SEO/GBP/Social&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF8E1;strokeColor=#F57F17;fontSize=12;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="395" y="778" width="110" height="50" as="geometry"/>
</mxCell>
<mxCell id="cron_prod" value="&lt;b style=&quot;font-size:11px&quot;&gt;Cron:&lt;/b&gt;&lt;font style=&quot;font-size:10px;color:#666&quot;&gt; news · updater · backup&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="100" y="838" width="200" height="20" as="geometry"/>
</mxCell>
<!-- === VM: NordaBiznes STAGING === -->
<mxCell id="staging" value="&lt;b style=&quot;font-size:13px;color:#FF6F00&quot;&gt;VM 248 — STAGING&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#333&quot;&gt;10.22.68.248 | 2 vCPU | 4 GB&lt;br&gt;staging.nordabiznes.pl&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF3E0;strokeColor=#FF6F00;strokeWidth=2;fontSize=12;shadow=1;" vertex="1" parent="1">
<mxGeometry x="80" y="900" width="240" height="75" as="geometry"/>
</mxCell>
<!-- === VM: NPM Reverse Proxy === -->
<mxCell id="npm" value="&lt;b style=&quot;font-size:13px&quot;&gt;VM 119 — R11-REVPROXY-01&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#666&quot;&gt;10.22.68.250 | NPM (Nginx Proxy Manager)&lt;br&gt;SSL termination | Let's Encrypt auto-renew&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E0F2F1;strokeColor=#00695C;strokeWidth=2;fontSize=12;fontColor=#333;shadow=1;" vertex="1" parent="1">
<mxGeometry x="340" y="900" width="300" height="75" as="geometry"/>
</mxCell>
<!-- === Grupa: Infrastruktura krytyczna na pve-01 === -->
<mxCell id="infra_crit" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFE0B2;strokeColor=#E65100;strokeWidth=2;dashed=1;" vertex="1" parent="1">
<mxGeometry x="620" y="545" width="750" height="340" as="geometry"/>
</mxCell>
<mxCell id="infra_crit_label" value="&lt;b style=&quot;font-size:14px;color:#E65100&quot;&gt;INFRASTRUKTURA KRYTYCZNA (na r11-pve-01)&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="640" y="550" width="380" height="24" as="geometry"/>
</mxCell>
<mxCell id="dns01" value="&lt;b style=&quot;font-size:12px&quot;&gt;VM 122 — R11-DNS-01&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#666&quot;&gt;10.22.68.171 | 4 GB&lt;br&gt;Technitium PRIMARY&lt;br&gt;DNS + DHCP HA&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFE0B2;strokeColor=#E65100;fontSize=12;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="640" y="585" width="170" height="75" as="geometry"/>
</mxCell>
<mxCell id="dns02" value="&lt;b style=&quot;font-size:12px&quot;&gt;VM 175 — R11-DNS-02&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#666&quot;&gt;10.22.68.175 | 2 GB&lt;br&gt;Technitium SECONDARY&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFE0B2;strokeColor=#E65100;fontSize=12;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="830" y="585" width="170" height="75" as="geometry"/>
</mxCell>
<mxCell id="zabbix" value="&lt;b style=&quot;font-size:12px&quot;&gt;VM 135 — Zabbix 7.0&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#666&quot;&gt;10.22.68.126 | &lt;b&gt;32 GB&lt;/b&gt;&lt;br&gt;Monitoring 43 hostów&lt;br&gt;Alerty: email + Slack&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFE0B2;strokeColor=#E65100;fontSize=12;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1020" y="585" width="170" height="80" as="geometry"/>
</mxCell>
<mxCell id="gitea" value="&lt;b style=&quot;font-size:12px&quot;&gt;VM 180 — Gitea&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#666&quot;&gt;10.22.68.180 | 8 GB&lt;br&gt;Git repo + deploy source&lt;br&gt;+ GitHub mirror&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFE0B2;strokeColor=#E65100;fontSize=12;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1210" y="585" width="145" height="80" as="geometry"/>
</mxCell>
<mxCell id="ipam" value="&lt;b style=&quot;font-size:12px&quot;&gt;VM 123 — phpIPAM&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#666&quot;&gt;10.22.68.172 | 4 GB&lt;br&gt;IP management&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFE0B2;strokeColor=#E65100;fontSize=12;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="640" y="680" width="160" height="65" as="geometry"/>
</mxCell>
<mxCell id="vault" value="&lt;b style=&quot;font-size:12px&quot;&gt;VM 246 — Vaultwarden&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#666&quot;&gt;10.22.68.174 | 4 GB&lt;br&gt;Password manager&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFE0B2;strokeColor=#E65100;fontSize=12;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="820" y="680" width="160" height="65" as="geometry"/>
</mxCell>
<mxCell id="cortex" value="&lt;b style=&quot;font-size:12px&quot;&gt;VM 177 — Cortex&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#666&quot;&gt;Dashboard INPI&lt;br&gt;4 GB RAM&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFE0B2;strokeColor=#E65100;fontSize=12;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1000" y="680" width="140" height="65" as="geometry"/>
</mxCell>
<mxCell id="n8n" value="&lt;b style=&quot;font-size:12px&quot;&gt;VM 185 — N8N&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#666&quot;&gt;Automatyzacja&lt;br&gt;4 GB RAM&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFE0B2;strokeColor=#E65100;fontSize=12;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1160" y="680" width="130" height="65" as="geometry"/>
</mxCell>
<mxCell id="ca" value="&lt;b style=&quot;font-size:11px&quot;&gt;VM 176&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#666&quot;&gt;CA (512 MB)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFE0B2;strokeColor=#E65100;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1305" y="685" width="80" height="55" as="geometry"/>
</mxCell>
<!-- Inne VM na pve-01 -->
<mxCell id="other_prod" value="&lt;b style=&quot;font-size:12px;color:#E65100&quot;&gt;Pozostałe VM na r11-pve-01:&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#666&quot;&gt;VM 128: POMERANIA-PROD-01 (4 GB) | VM 252: INPI-WEB-01 (1 GB) | VM 253: INPI-WEB-02 (4 GB)&lt;br&gt;VM 254: SOCIALMEDIA-01 (4 GB) | VM 247: PROJECTS-01 (4 GB) | VM 241: DEV-ZABBIX-01 (32 GB)&lt;br&gt;VM 102: R11-BECK-01 (8 GB Win) | VM 106: R11-UGMO-01 (4 GB Win) | VM 126: HIKVIS-01 (4 GB Win) | VM 200: OLIWIER-01 (8 GB Win)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF3E0;strokeColor=#E65100;fontSize=11;fontColor=#333;dashed=1;" vertex="1" parent="1">
<mxGeometry x="640" y="760" width="720" height="80" as="geometry"/>
</mxCell>
<!-- === Podsumowanie pve-01 === -->
<mxCell id="pve1_summary" value="&lt;font style=&quot;font-size:12px;color:#4527A0&quot;&gt;&lt;b&gt;Łącznie pve-01:&lt;/b&gt; 21 VM | ~180 GB / 256 GB RAM (70%) | 32 vCPU&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="80" y="1000" width="470" height="22" as="geometry"/>
</mxCell>
<!-- =========================================================== -->
<!-- ===== SERWER FIZYCZNY 2: r11-pve-02 (IBM x3550 M4) ======= -->
<!-- =========================================================== -->
<mxCell id="pve2_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F3E5F5;strokeColor=#7B1FA2;strokeWidth=2;dashed=1;" vertex="1" parent="1">
<mxGeometry x="60" y="1040" width="640" height="140" as="geometry"/>
</mxCell>
<mxCell id="pve2_header" value="&lt;b style=&quot;font-size:16px;color:#7B1FA2&quot;&gt;SERWER FIZYCZNY 2: r11-pve-02&lt;/b&gt;&lt;font style=&quot;font-size:12px;color:#666&quot;&gt; — IBM System x3550 M4&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="80" y="1045" width="530" height="24" as="geometry"/>
</mxCell>
<mxCell id="pve2_specs" value="&lt;font style=&quot;font-size:12px;color:#7B1FA2&quot;&gt;&lt;b&gt;2× Intel Xeon E5-26xx v2 | 32 vCPU | 256 GB ECC RAM&lt;/b&gt; | IP: 10.22.68.122 | IPMI/IMM: 10.22.68.104&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="80" y="1070" width="640" height="22" as="geometry"/>
</mxCell>
<mxCell id="pve2_status" value="&lt;b style=&quot;font-size:14px;color:#7B1FA2&quot;&gt;STATUS: ONLINE — 0 VM (Standby / Failover)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#666&quot;&gt;Dostępny dla migracji VM w razie awarii pve-01 lub pve-03&lt;br&gt;Automatyczny failover z Proxmox HA | Gotowy do rozbudowy w ciągu minut&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E1BEE7;strokeColor=#7B1FA2;fontSize=12;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="80" y="1100" width="460" height="70" as="geometry"/>
</mxCell>
<!-- =========================================================== -->
<!-- ===== SERWER FIZYCZNY 3: r11-pve-03 (HPE) ================ -->
<!-- =========================================================== -->
<mxCell id="pve3_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E0F7FA;strokeColor=#006064;strokeWidth=3;" vertex="1" parent="1">
<mxGeometry x="60" y="1200" width="1330" height="230" as="geometry"/>
</mxCell>
<mxCell id="pve3_header" value="&lt;b style=&quot;font-size:18px;color:#006064&quot;&gt;SERWER FIZYCZNY 3: r11-pve-03&lt;/b&gt;&lt;font style=&quot;font-size:13px;color:#666&quot;&gt; — HPE ProLiant (najwydajniejszy węzeł) | IP: 10.22.68.123&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="80" y="1205" width="830" height="28" as="geometry"/>
</mxCell>
<mxCell id="pve3_specs" value="&lt;font style=&quot;font-size:13px;color:#006064&quot;&gt;&lt;b&gt;2× Intel Xeon E5-2698 v4 @ 2.20 GHz | 80 vCPU (40 rdzeni / 80 wątków) | 503 GB ECC DDR4 RAM&lt;/b&gt; | Proxmox VE 9.1.4&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="80" y="1230" width="900" height="24" as="geometry"/>
</mxCell>
<mxCell id="pbs" value="&lt;b style=&quot;font-size:13px&quot;&gt;VM 127 — R11-PBS-01&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#666&quot;&gt;10.22.68.127 | &lt;b&gt;24 GB RAM&lt;/b&gt;&lt;br&gt;Proxmox Backup Server&lt;br&gt;Snapshoty → Hetzner offsite&lt;br&gt;30-day retention&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#B2EBF2;strokeColor=#006064;fontSize=12;fontColor=#333;shadow=1;" vertex="1" parent="1">
<mxGeometry x="100" y="1270" width="230" height="100" as="geometry"/>
</mxCell>
<mxCell id="ha" value="&lt;b style=&quot;font-size:13px&quot;&gt;VM 181 — HomeAssistant&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#666&quot;&gt;10.22.68.181 | 2 GB RAM&lt;br&gt;Smart Home Controller&lt;br&gt;vmbr1 (IoT bridge)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#B2EBF2;strokeColor=#006064;fontSize=12;fontColor=#333;shadow=1;" vertex="1" parent="1">
<mxGeometry x="360" y="1270" width="230" height="100" as="geometry"/>
</mxCell>
<mxCell id="solinpi" value="&lt;b style=&quot;font-size:13px&quot;&gt;VM 121 — SOLINPI-PROD-01&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#666&quot;&gt;10.22.68.211 | 8 GB RAM&lt;br&gt;Solplanet + Certbot&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#B2EBF2;strokeColor=#006064;fontSize=12;fontColor=#333;shadow=1;" vertex="1" parent="1">
<mxGeometry x="620" y="1270" width="230" height="100" as="geometry"/>
</mxCell>
<mxCell id="pve3_summary" value="&lt;font style=&quot;font-size:12px;color:#006064&quot;&gt;&lt;b&gt;Łącznie pve-03:&lt;/b&gt; 3 VM | ~35 GB / 503 GB RAM (7%) | 80 vCPU | &lt;b&gt;408 GB wolnego RAM&lt;/b&gt; — rezerwa na rozbudowę&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="880" y="1310" width="620" height="22" as="geometry"/>
</mxCell>
<!-- =========================================================== -->
<!-- ===== STORAGE & NETWORK (prawa strona) ==================== -->
<!-- =========================================================== -->
<mxCell id="storage_group" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FCE4EC;strokeColor=#C62828;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="1430" y="480" width="580" height="380" as="geometry"/>
</mxCell>
<mxCell id="storage_label" value="&lt;b style=&quot;font-size:16px;color:#C62828&quot;&gt;STORAGE — R11-ASUSTOR-01 (ASUSTOR AS6510T)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:12px;color:#666&quot;&gt;10.22.68.162 | iSCSI shared storage dla całego klastra&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1450" y="485" width="520" height="40" as="geometry"/>
</mxCell>
<mxCell id="stor_hdd" value="&lt;b style=&quot;font-size:14px&quot;&gt;HDD RAID&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:12px;color:#666&quot;&gt;5 TB pojemności&lt;br&gt;~60% wykorzystania&lt;br&gt;Dane VM, backupy&lt;/font&gt;" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=12;fillColor=#FFCDD2;strokeColor=#C62828;fontSize=12;fontColor=#333;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1460" y="540" width="160" height="100" as="geometry"/>
</mxCell>
<mxCell id="stor_nvme" value="&lt;b style=&quot;font-size:14px&quot;&gt;NVMe RAID1&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:12px;color:#666&quot;&gt;1 TB pojemności&lt;br&gt;~45% wykorzystania&lt;br&gt;Krytyczne VM&lt;/font&gt;" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=12;fillColor=#FFCDD2;strokeColor=#C62828;fontSize=12;fontColor=#333;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1650" y="540" width="160" height="100" as="geometry"/>
</mxCell>
<mxCell id="stor_ssd" value="&lt;b style=&quot;font-size:14px&quot;&gt;SSD RAID10&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:12px;color:#666&quot;&gt;1 TB pojemności&lt;br&gt;~50% wykorzystania&lt;br&gt;NordaBiz PROD&lt;/font&gt;" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=12;fillColor=#FFCDD2;strokeColor=#C62828;fontSize=12;fontColor=#333;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1840" y="540" width="150" height="100" as="geometry"/>
</mxCell>
<mxCell id="iscsi_info" value="&lt;font style=&quot;font-size:12px;color:#C62828&quot;&gt;&lt;b&gt;iSCSI Multipath:&lt;/b&gt; 10.10.10.9 + 10.10.10.10 (vmbr11)&lt;br&gt;&lt;b&gt;IQN:&lt;/b&gt; iqn.2011-08.com.asustor:as6510t-848e77&lt;br&gt;&lt;b&gt;Łącznie:&lt;/b&gt; 7 TB raw storage (HDD 5TB + NVMe 1TB + SSD 1TB)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FCE4EC;strokeColor=#C62828;fontSize=11;fontColor=#333;dashed=1;" vertex="1" parent="1">
<mxGeometry x="1450" y="660" width="410" height="65" as="geometry"/>
</mxCell>
<!-- 10G Switch -->
<mxCell id="switch10g" value="&lt;b style=&quot;font-size:14px;color:#333&quot;&gt;Netgear XS712Tv2&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:12px;color:#666&quot;&gt;R11-NETGEAR-10G | 10.22.68.3&lt;br&gt;12-port 10G SFP+ switch&lt;br&gt;iSCSI + VM migration backbone&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E0E0E0;strokeColor=#333;strokeWidth=2;fontSize=12;fontColor=#333;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1460" y="745" width="240" height="90" as="geometry"/>
</mxCell>
<!-- Network info -->
<mxCell id="net_info" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8EAF6;strokeColor=#283593;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="1430" y="870" width="580" height="170" as="geometry"/>
</mxCell>
<mxCell id="net_label" value="&lt;b style=&quot;font-size:15px;color:#283593&quot;&gt;SIECI WIRTUALNE (vBridge)&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1450" y="875" width="240" height="24" as="geometry"/>
</mxCell>
<mxCell id="vmbr0" value="&lt;b&gt;vmbr0&lt;/b&gt; — Management&lt;br&gt;&lt;font color=&quot;#666&quot;&gt;10.22.68.0/24 | Wszystkie VM&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C5CAE9;strokeColor=#283593;fontSize=12;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1450" y="905" width="260" height="50" as="geometry"/>
</mxCell>
<mxCell id="vmbr10" value="&lt;b&gt;vmbr10&lt;/b&gt; — Migration 10G&lt;br&gt;&lt;font color=&quot;#666&quot;&gt;10.10.10.64/26 | ~820 MiB/s&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C5CAE9;strokeColor=#283593;fontSize=12;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1730" y="905" width="260" height="50" as="geometry"/>
</mxCell>
<mxCell id="vmbr11" value="&lt;b&gt;vmbr11&lt;/b&gt; — iSCSI Multipath&lt;br&gt;&lt;font color=&quot;#666&quot;&gt;10.10.10.128/26 | MTU 9000&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C5CAE9;strokeColor=#283593;fontSize=12;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1450" y="965" width="260" height="50" as="geometry"/>
</mxCell>
<mxCell id="vmbr1" value="&lt;b&gt;vmbr1&lt;/b&gt; — IoT Network&lt;br&gt;&lt;font color=&quot;#666&quot;&gt;192.168.68.0/24 | pve-03 only&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C5CAE9;strokeColor=#283593;fontSize=12;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1730" y="965" width="260" height="50" as="geometry"/>
</mxCell>
<!-- =========================================================== -->
<!-- ===== POŁĄCZENIA ========================================== -->
<!-- =========================================================== -->
<!-- FW → NPM -->
<mxCell id="arr_fw_npm" value="&lt;font style=&quot;font-size:11px&quot;&gt;HTTPS:443&lt;/font&gt;" style="rounded=1;strokeColor=#C62828;strokeWidth=3;exitX=0.5;exitY=1;entryX=0.5;entryY=0;" edge="1" source="fw" target="npm" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- NPM → Prod -->
<mxCell id="arr_npm_prod" value="&lt;font style=&quot;font-size:11px&quot;&gt;:5000&lt;/font&gt;" style="rounded=1;strokeColor=#2E7D32;strokeWidth=2;exitX=0;exitY=0.3;entryX=0.5;entryY=1;" edge="1" source="npm" target="prod_group" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- Flask → Google -->
<mxCell id="arr_flask_google" style="rounded=1;strokeColor=#F57F17;strokeWidth=2;dashed=1;" edge="1" source="nordagpt" target="google" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- Email → Azure -->
<mxCell id="arr_email_azure" style="rounded=1;strokeColor=#0078D4;strokeWidth=2;dashed=1;" edge="1" source="email_send" target="azure" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- PBS → Hetzner -->
<mxCell id="arr_pbs_hetzner" style="rounded=1;strokeColor=#C62828;strokeWidth=2;dashed=1;" edge="1" source="pbs" target="hetzner" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- Zabbix → Slack -->
<mxCell id="arr_zabbix_slack" style="rounded=1;strokeColor=#E65100;strokeWidth=1;dashed=1;" edge="1" source="zabbix" target="slack_cloud" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- Storage → pve nodes (iSCSI) -->
<mxCell id="arr_stor_pve1" value="&lt;font style=&quot;font-size:10px;color:#C62828&quot;&gt;iSCSI 10G&lt;/font&gt;" style="rounded=1;strokeColor=#C62828;strokeWidth=2;exitX=0;exitY=0.5;entryX=1;entryY=0.5;dashed=1;" edge="1" source="stor_hdd" target="infra_crit" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- ==================== STATYSTYKI NA DOLE ==================== -->
<mxCell id="stats_bar" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#1a1a2e;strokeColor=#1a1a2e;" vertex="1" parent="1">
<mxGeometry x="60" y="1470" width="1350" height="55" as="geometry"/>
</mxCell>
<mxCell id="stat1" value="&lt;b style=&quot;font-size:16px;color:#D69E2E&quot;&gt;3&lt;/b&gt;&lt;font style=&quot;font-size:11px;color:#A0AEC0&quot;&gt; serwery fizyczne&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="70" y="1482" width="150" height="28" as="geometry"/>
</mxCell>
<mxCell id="stat2" value="&lt;b style=&quot;font-size:16px;color:#D69E2E&quot;&gt;144&lt;/b&gt;&lt;font style=&quot;font-size:11px;color:#A0AEC0&quot;&gt; vCPU łącznie&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="230" y="1482" width="140" height="28" as="geometry"/>
</mxCell>
<mxCell id="stat3" value="&lt;b style=&quot;font-size:16px;color:#D69E2E&quot;&gt;1 015 GB&lt;/b&gt;&lt;font style=&quot;font-size:11px;color:#A0AEC0&quot;&gt; RAM łącznie&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="390" y="1482" width="170" height="28" as="geometry"/>
</mxCell>
<mxCell id="stat4" value="&lt;b style=&quot;font-size:16px;color:#D69E2E&quot;&gt;7 TB&lt;/b&gt;&lt;font style=&quot;font-size:11px;color:#A0AEC0&quot;&gt; storage (iSCSI)&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="570" y="1482" width="160" height="28" as="geometry"/>
</mxCell>
<mxCell id="stat5" value="&lt;b style=&quot;font-size:16px;color:#D69E2E&quot;&gt;24&lt;/b&gt;&lt;font style=&quot;font-size:11px;color:#A0AEC0&quot;&gt; maszyny wirtualne&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="750" y="1482" width="180" height="28" as="geometry"/>
</mxCell>
<mxCell id="stat6" value="&lt;b style=&quot;font-size:16px;color:#D69E2E&quot;&gt;10 Gbps&lt;/b&gt;&lt;font style=&quot;font-size:11px;color:#A0AEC0&quot;&gt; backbone&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="950" y="1482" width="140" height="28" as="geometry"/>
</mxCell>
<mxCell id="stat7" value="&lt;b style=&quot;font-size:16px;color:#D69E2E&quot;&gt;~305 000 zł&lt;/b&gt;&lt;font style=&quot;font-size:11px;color:#A0AEC0&quot;&gt; wartość platformy&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1120" y="1482" width="200" height="28" as="geometry"/>
</mxCell>
<!-- Legenda -->
<mxCell id="legend_bar" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#ddd;" vertex="1" parent="1">
<mxGeometry x="1430" y="1470" width="580" height="55" as="geometry"/>
</mxCell>
<mxCell id="leg1" value="&lt;font style=&quot;font-size:11px&quot;&gt;&#x1F7E2; NordaBiznes&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1445" y="1480" width="120" height="20" as="geometry"/>
</mxCell>
<mxCell id="leg2" value="&lt;font style=&quot;font-size:11px&quot;&gt;&#x1F7E0; Infra INPI&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1565" y="1480" width="100" height="20" as="geometry"/>
</mxCell>
<mxCell id="leg3" value="&lt;font style=&quot;font-size:11px&quot;&gt;&#x1F535; Cloud&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1665" y="1480" width="70" height="20" as="geometry"/>
</mxCell>
<mxCell id="leg4" value="&lt;font style=&quot;font-size:11px&quot;&gt;&#x1F7E3; IBM pve-01/02&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1735" y="1480" width="120" height="20" as="geometry"/>
</mxCell>
<mxCell id="leg5" value="&lt;font style=&quot;font-size:11px&quot;&gt;&#x1F7E6; HPE pve-03&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1855" y="1480" width="100" height="20" as="geometry"/>
</mxCell>
<mxCell id="leg6" value="&lt;font style=&quot;font-size:11px&quot;&gt;&#x1F534; Storage/Security&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1445" y="1500" width="140" height="20" as="geometry"/>
</mxCell>
<!-- Migration label -->
<mxCell id="migration_note" value="&lt;font style=&quot;font-size:11px;color:#283593&quot;&gt;&lt;b&gt;Live migration:&lt;/b&gt; ~820 MiB/s via 10G (vmbr10) | Downtime: 30-80 ms | &lt;b&gt;Energooszczędność:&lt;/b&gt; konsolidacja VM → oszczędność ~2 600 zł/rok&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="60" y="1445" width="750" height="20" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

View File

@ -0,0 +1,133 @@
<mxfile host="draw.io" modified="2026-02-12" agent="Claude Code" type="device">
<diagram id="b1-platform-overview" name="Przegląd Platformy">
<mxGraphModel dx="1400" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="1000" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<!-- TYTUŁ -->
<mxCell id="title" value="NordaBiz — Przegląd Platformy" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=24;fontStyle=1;fontColor=#1a1a2e;" vertex="1" parent="1">
<mxGeometry x="500" y="15" width="400" height="40" as="geometry"/>
</mxCell>
<mxCell id="subtitle" value="Platforma katalogowa i networkingowa dla członków Izby Gospodarczej Norda Biznes w Wejherowie" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=12;fontColor=#666666;" vertex="1" parent="1">
<mxGeometry x="380" y="52" width="640" height="24" as="geometry"/>
</mxCell>
<!-- CENTRALNE LOGO -->
<mxCell id="center" value="&lt;b style=&quot;font-size:18px&quot;&gt;NordaBiz&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:11px;color:#555&quot;&gt;nordabiznes.pl&lt;br&gt;150 firm członkowskich&lt;/font&gt;" style="ellipse;whiteSpace=wrap;html=1;fillColor=#1a1a2e;strokeColor=#1a1a2e;fontColor=#ffffff;fontSize=14;shadow=1;" vertex="1" parent="1">
<mxGeometry x="600" y="380" width="200" height="200" as="geometry"/>
</mxCell>
<!-- === KATALOG FIRM === -->
<mxCell id="cat_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;shadow=1;" vertex="1" parent="1">
<mxGeometry x="80" y="100" width="280" height="170" as="geometry"/>
</mxCell>
<mxCell id="cat_icon" value="&#x1F4BC;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=36;" vertex="1" parent="1">
<mxGeometry x="185" y="105" width="60" height="50" as="geometry"/>
</mxCell>
<mxCell id="cat_title" value="&lt;b style=&quot;font-size:15px&quot;&gt;Katalog Firm&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="155" y="150" width="130" height="24" as="geometry"/>
</mxCell>
<mxCell id="cat_desc" value="&lt;font style=&quot;font-size:11px&quot;&gt;&#x2022; Profile 150 firm z Wejherowa&lt;br&gt;&#x2022; Wyszukiwanie po branży i usługach&lt;br&gt;&#x2022; Dane kontaktowe i lokalizacja&lt;br&gt;&#x2022; Weryfikacja NIP/REGON/KRS&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=top;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="100" y="178" width="230" height="80" as="geometry"/>
</mxCell>
<!-- === SZTUCZNA INTELIGENCJA === -->
<mxCell id="ai_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1240" y="100" width="280" height="170" as="geometry"/>
</mxCell>
<mxCell id="ai_icon" value="&#x1F916;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=36;" vertex="1" parent="1">
<mxGeometry x="1345" y="105" width="60" height="50" as="geometry"/>
</mxCell>
<mxCell id="ai_title" value="&lt;b style=&quot;font-size:15px&quot;&gt;Sztuczna Inteligencja&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1295" y="150" width="180" height="24" as="geometry"/>
</mxCell>
<mxCell id="ai_desc" value="&lt;font style=&quot;font-size:11px&quot;&gt;&#x2022; NordaGPT — asystent AI&lt;br&gt;&#x2022; Rekomendacje firm&lt;br&gt;&#x2022; Automatyczna analiza danych&lt;br&gt;&#x2022; Generowanie raportów&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=top;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1260" y="178" width="220" height="80" as="geometry"/>
</mxCell>
<!-- === AUDYTY CYFROWE === -->
<mxCell id="audit_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;shadow=1;" vertex="1" parent="1">
<mxGeometry x="80" y="700" width="280" height="170" as="geometry"/>
</mxCell>
<mxCell id="audit_icon" value="&#x1F4CA;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=36;" vertex="1" parent="1">
<mxGeometry x="185" y="705" width="60" height="50" as="geometry"/>
</mxCell>
<mxCell id="audit_title" value="&lt;b style=&quot;font-size:15px&quot;&gt;Audyty Cyfrowe&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="155" y="750" width="130" height="24" as="geometry"/>
</mxCell>
<mxCell id="audit_desc" value="&lt;font style=&quot;font-size:11px&quot;&gt;&#x2022; Audyt SEO strony internetowej&lt;br&gt;&#x2022; Audyt Google Moja Firma&lt;br&gt;&#x2022; Monitoring social media&lt;br&gt;&#x2022; Benchmarki branżowe&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=top;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="100" y="778" width="230" height="80" as="geometry"/>
</mxCell>
<!-- === SPOŁECZNOŚĆ === -->
<mxCell id="comm_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1240" y="700" width="280" height="170" as="geometry"/>
</mxCell>
<mxCell id="comm_icon" value="&#x1F465;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=36;" vertex="1" parent="1">
<mxGeometry x="1345" y="705" width="60" height="50" as="geometry"/>
</mxCell>
<mxCell id="comm_title" value="&lt;b style=&quot;font-size:15px&quot;&gt;Społeczność&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1325" y="750" width="110" height="24" as="geometry"/>
</mxCell>
<mxCell id="comm_desc" value="&lt;font style=&quot;font-size:11px&quot;&gt;&#x2022; Forum dyskusyjne&lt;br&gt;&#x2022; Wiadomości prywatne&lt;br&gt;&#x2022; Kalendarz wydarzeń&lt;br&gt;&#x2022; Ogłoszenia i oferty&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=top;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1270" y="778" width="200" height="80" as="geometry"/>
</mxCell>
<!-- === BAZA WIEDZY === -->
<mxCell id="know_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;shadow=1;" vertex="1" parent="1">
<mxGeometry x="660" y="700" width="280" height="170" as="geometry"/>
</mxCell>
<mxCell id="know_icon" value="&#x1F4DA;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=36;" vertex="1" parent="1">
<mxGeometry x="765" y="705" width="60" height="50" as="geometry"/>
</mxCell>
<mxCell id="know_title" value="&lt;b style=&quot;font-size:15px&quot;&gt;Baza Wiedzy&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="745" y="750" width="110" height="24" as="geometry"/>
</mxCell>
<mxCell id="know_desc" value="&lt;font style=&quot;font-size:11px&quot;&gt;&#x2022; ZOPK — monitoring prawny&lt;br&gt;&#x2022; Szkolenia i edukacja&lt;br&gt;&#x2022; Timeline zmian przepisów&lt;br&gt;&#x2022; Analiza AI luk prawnych&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=top;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="680" y="778" width="220" height="80" as="geometry"/>
</mxCell>
<!-- === CZŁONKOSTWO === -->
<mxCell id="memb_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;shadow=1;" vertex="1" parent="1">
<mxGeometry x="660" y="100" width="280" height="170" as="geometry"/>
</mxCell>
<mxCell id="memb_icon" value="&#x1F3C6;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=36;" vertex="1" parent="1">
<mxGeometry x="765" y="105" width="60" height="50" as="geometry"/>
</mxCell>
<mxCell id="memb_title" value="&lt;b style=&quot;font-size:15px&quot;&gt;Członkostwo i Korzyści&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="710" y="150" width="190" height="24" as="geometry"/>
</mxCell>
<mxCell id="memb_desc" value="&lt;font style=&quot;font-size:11px&quot;&gt;&#x2022; 3 pakiety: Starter / Premium / Business Pro&lt;br&gt;&#x2022; Członek Izby = Starter za 1 zł&lt;br&gt;&#x2022; Zarządzanie składkami i CRM&lt;br&gt;&#x2022; Norda360, email @nordabiznes.pl&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=top;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="680" y="178" width="260" height="80" as="geometry"/>
</mxCell>
<!-- POŁĄCZENIA DO CENTRUM -->
<mxCell id="conn_cat" style="rounded=1;strokeColor=#6c8ebf;strokeWidth=2;exitX=1;exitY=0.5;entryX=0;entryY=0;" edge="1" source="cat_box" target="center" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="conn_ai" style="rounded=1;strokeColor=#9673a6;strokeWidth=2;exitX=0;exitY=0.5;entryX=1;entryY=0;" edge="1" source="ai_box" target="center" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="conn_audit" style="rounded=1;strokeColor=#82b366;strokeWidth=2;exitX=1;exitY=0.5;entryX=0;entryY=1;" edge="1" source="audit_box" target="center" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="conn_comm" style="rounded=1;strokeColor=#d6b656;strokeWidth=2;exitX=0;exitY=0.5;entryX=1;entryY=1;" edge="1" source="comm_box" target="center" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="conn_know" style="rounded=1;strokeColor=#b85450;strokeWidth=2;exitX=0.5;exitY=0;entryX=0.5;entryY=1;" edge="1" source="know_box" target="center" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="conn_memb" style="rounded=1;strokeColor=#1565C0;strokeWidth=2;exitX=0.5;exitY=1;entryX=0.5;entryY=0;" edge="1" source="memb_box" target="center" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- STATYSTYKI NA DOLE -->
<mxCell id="stats" value="&lt;font style=&quot;font-size:11px;color:#888&quot;&gt;150 firm &amp;nbsp;|&amp;nbsp; 17 modułów &amp;nbsp;|&amp;nbsp; 375+ tras API &amp;nbsp;|&amp;nbsp; 27 serwisów &amp;nbsp;|&amp;nbsp; 40 tabel bazy danych &amp;nbsp;|&amp;nbsp; 8 integracji API&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="400" y="940" width="600" height="24" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 KiB

View File

@ -0,0 +1,185 @@
<mxfile host="draw.io" modified="2026-02-12" agent="Claude Code" type="device">
<diagram id="b2-user-journey" name="Ścieżka Użytkownika">
<mxGraphModel dx="1600" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1800" pageHeight="800" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="title" value="NordaBiz — Ścieżka Użytkownika" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=22;fontStyle=1;fontColor=#1a1a2e;" vertex="1" parent="1">
<mxGeometry x="540" y="15" width="440" height="36" as="geometry"/>
</mxCell>
<mxCell id="subtitle" value="Jak członek Izby Norda korzysta z platformy — od pierwszego logowania do codziennego użytkowania" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#888;" vertex="1" parent="1">
<mxGeometry x="410" y="48" width="700" height="20" as="geometry"/>
</mxCell>
<!-- FAZA 1: REJESTRACJA -->
<mxCell id="phase1_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;shadow=1;" vertex="1" parent="1">
<mxGeometry x="40" y="90" width="240" height="320" as="geometry"/>
</mxCell>
<mxCell id="phase1_num" value="&lt;b style=&quot;font-size:28px;color:#1565C0&quot;&gt;1&lt;/b&gt;" style="ellipse;whiteSpace=wrap;html=1;fillColor=#BBDEFB;strokeColor=#1565C0;" vertex="1" parent="1">
<mxGeometry x="55" y="95" width="40" height="40" as="geometry"/>
</mxCell>
<mxCell id="phase1_title" value="&lt;b style=&quot;font-size:14px;color:#1565C0&quot;&gt;Rejestracja&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="100" y="100" width="120" height="28" as="geometry"/>
</mxCell>
<mxCell id="p1_s1" value="&#x1F4E7; Zaproszenie e-mail od Izby" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="55" y="145" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p1_s2" value="&#x1F4DD; Utworzenie konta (email + hasło)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="55" y="185" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p1_s3" value="&#x1F3C6; Aktywacja pakietu Starter (1 zł)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="55" y="225" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p1_s4" value="&#x1F3E2; Uzupełnienie profilu firmy" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1565C0;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="55" y="265" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p1_time" value="&lt;font style=&quot;font-size:10px;color:#888&quot;&gt;~10 minut&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="115" y="370" width="80" height="20" as="geometry"/>
</mxCell>
<!-- STRZAŁKA 1→2 -->
<mxCell id="arr12" value="" style="shape=flexArrow;endArrow=classic;html=1;fillColor=#1565C0;strokeColor=#1565C0;" edge="1" parent="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="290" y="250" as="sourcePoint"/>
<mxPoint x="340" y="250" as="targetPoint"/>
</mxGeometry>
</mxCell>
<!-- FAZA 2: ODKRYWANIE -->
<mxCell id="phase2_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#2E7D32;shadow=1;" vertex="1" parent="1">
<mxGeometry x="350" y="90" width="240" height="320" as="geometry"/>
</mxCell>
<mxCell id="phase2_num" value="&lt;b style=&quot;font-size:28px;color:#2E7D32&quot;&gt;2&lt;/b&gt;" style="ellipse;whiteSpace=wrap;html=1;fillColor=#C8E6C9;strokeColor=#2E7D32;" vertex="1" parent="1">
<mxGeometry x="365" y="95" width="40" height="40" as="geometry"/>
</mxCell>
<mxCell id="phase2_title" value="&lt;b style=&quot;font-size:14px;color:#2E7D32&quot;&gt;Odkrywanie&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="410" y="100" width="120" height="28" as="geometry"/>
</mxCell>
<mxCell id="p2_s1" value="&#x1F50D; Przeglądanie katalogu firm" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="365" y="145" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p2_s2" value="&#x1F916; Pytanie NordaGPT o usługi" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="365" y="185" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p2_s3" value="&#x1F4CA; Sprawdzenie audytu swojej firmy" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="365" y="225" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p2_s4" value="&#x1F4DA; Przeglądanie bazy wiedzy" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="365" y="265" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p2_time" value="&lt;font style=&quot;font-size:10px;color:#888&quot;&gt;Pierwszy tydzień&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="415" y="370" width="110" height="20" as="geometry"/>
</mxCell>
<!-- STRZAŁKA 2→3 -->
<mxCell id="arr23" value="" style="shape=flexArrow;endArrow=classic;html=1;fillColor=#2E7D32;strokeColor=#2E7D32;" edge="1" parent="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="600" y="250" as="sourcePoint"/>
<mxPoint x="650" y="250" as="targetPoint"/>
</mxGeometry>
</mxCell>
<!-- FAZA 3: NETWORKING -->
<mxCell id="phase3_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF3E0;strokeColor=#E65100;shadow=1;" vertex="1" parent="1">
<mxGeometry x="660" y="90" width="240" height="320" as="geometry"/>
</mxCell>
<mxCell id="phase3_num" value="&lt;b style=&quot;font-size:28px;color:#E65100&quot;&gt;3&lt;/b&gt;" style="ellipse;whiteSpace=wrap;html=1;fillColor=#FFE0B2;strokeColor=#E65100;" vertex="1" parent="1">
<mxGeometry x="675" y="95" width="40" height="40" as="geometry"/>
</mxCell>
<mxCell id="phase3_title" value="&lt;b style=&quot;font-size:14px;color:#E65100&quot;&gt;Networking&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="720" y="100" width="110" height="28" as="geometry"/>
</mxCell>
<mxCell id="p3_s1" value="&#x1F4AC; Dołączenie do dyskusji na forum" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="675" y="145" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p3_s2" value="&#x2709;&#xFE0F; Wysyłanie wiadomości prywatnych" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="675" y="185" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p3_s3" value="&#x1F4C5; Udział w wydarzeniach Izby" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="675" y="225" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p3_s4" value="&#x1F4E2; Publikowanie ogłoszeń" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E65100;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="675" y="265" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p3_time" value="&lt;font style=&quot;font-size:10px;color:#888&quot;&gt;Pierwszy miesiąc&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="725" y="370" width="110" height="20" as="geometry"/>
</mxCell>
<!-- STRZAŁKA 3→4 -->
<mxCell id="arr34" value="" style="shape=flexArrow;endArrow=classic;html=1;fillColor=#E65100;strokeColor=#E65100;" edge="1" parent="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="910" y="250" as="sourcePoint"/>
<mxPoint x="960" y="250" as="targetPoint"/>
</mxGeometry>
</mxCell>
<!-- FAZA 4: OPTYMALIZACJA -->
<mxCell id="phase4_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F3E5F5;strokeColor=#7B1FA2;shadow=1;" vertex="1" parent="1">
<mxGeometry x="970" y="90" width="240" height="320" as="geometry"/>
</mxCell>
<mxCell id="phase4_num" value="&lt;b style=&quot;font-size:28px;color:#7B1FA2&quot;&gt;4&lt;/b&gt;" style="ellipse;whiteSpace=wrap;html=1;fillColor=#E1BEE7;strokeColor=#7B1FA2;" vertex="1" parent="1">
<mxGeometry x="985" y="95" width="40" height="40" as="geometry"/>
</mxCell>
<mxCell id="phase4_title" value="&lt;b style=&quot;font-size:14px;color:#7B1FA2&quot;&gt;Optymalizacja&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1030" y="100" width="130" height="28" as="geometry"/>
</mxCell>
<mxCell id="p4_s1" value="&#x1F4C8; Analiza wyników audytu SEO" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#7B1FA2;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="985" y="145" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p4_s2" value="&#x1F310; Poprawa widoczności w Google" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#7B1FA2;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="985" y="185" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p4_s3" value="&#x1F4F1; Rozwój social media firmy" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#7B1FA2;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="985" y="225" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p4_s4" value="&#x1F4AA; Benchmarki vs konkurencja" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#7B1FA2;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="985" y="265" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p4_time" value="&lt;font style=&quot;font-size:10px;color:#888&quot;&gt;Na bieżąco&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1050" y="370" width="80" height="20" as="geometry"/>
</mxCell>
<!-- STRZAŁKA 4→5 -->
<mxCell id="arr45" value="" style="shape=flexArrow;endArrow=classic;html=1;fillColor=#7B1FA2;strokeColor=#7B1FA2;" edge="1" parent="1">
<mxGeometry relative="1" as="geometry">
<mxPoint x="1220" y="250" as="sourcePoint"/>
<mxPoint x="1270" y="250" as="targetPoint"/>
</mxGeometry>
</mxCell>
<!-- FAZA 5: KORZYŚCI -->
<mxCell id="phase5_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FCE4EC;strokeColor=#C62828;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1280" y="90" width="240" height="320" as="geometry"/>
</mxCell>
<mxCell id="phase5_num" value="&lt;b style=&quot;font-size:28px;color:#C62828&quot;&gt;5&lt;/b&gt;" style="ellipse;whiteSpace=wrap;html=1;fillColor=#F8BBD0;strokeColor=#C62828;" vertex="1" parent="1">
<mxGeometry x="1295" y="95" width="40" height="40" as="geometry"/>
</mxCell>
<mxCell id="phase5_title" value="&lt;b style=&quot;font-size:14px;color:#C62828&quot;&gt;Korzyści&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1340" y="100" width="90" height="28" as="geometry"/>
</mxCell>
<mxCell id="p5_s1" value="&#x1F4B0; Nowe kontakty biznesowe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="1295" y="145" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p5_s2" value="&#x1F4C8; Lepsza widoczność w internecie" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="1295" y="185" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p5_s3" value="&#x1F4DA; Wiedza prawna i branżowa" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="1295" y="225" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p5_s4" value="&#x1F91D; Silniejsza pozycja na rynku" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#C62828;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="1295" y="265" width="210" height="32" as="geometry"/>
</mxCell>
<mxCell id="p5_time" value="&lt;font style=&quot;font-size:10px;color:#888&quot;&gt;Długoterminowo&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1350" y="370" width="110" height="20" as="geometry"/>
</mxCell>
<!-- DOLNA LINIA CZASOWA -->
<mxCell id="timeline_label" value="&lt;font style=&quot;font-size:11px;color:#888&quot;&gt;&#x23F1;&#xFE0F; &lt;b&gt;Oś czasu:&lt;/b&gt; &amp;nbsp; Rejestracja (10 min) → Odkrywanie (tydzień 1) → Networking (miesiąc 1) → Optymalizacja (ciągle) → Korzyści (długoterminowo)&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="330" y="440" width="860" height="24" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 409 KiB

View File

@ -0,0 +1,280 @@
<mxfile host="draw.io" modified="2026-02-12" agent="Claude Code" type="device">
<diagram id="b3-feature-map" name="Mapa Funkcjonalności">
<mxGraphModel dx="1600" dy="1000" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1800" pageHeight="1200" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<!-- TYTUŁ -->
<mxCell id="title" value="NordaBiz — Mapa Funkcjonalności" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=22;fontStyle=1;fontColor=#1a1a2e;" vertex="1" parent="1">
<mxGeometry x="560" y="15" width="420" height="36" as="geometry"/>
</mxCell>
<mxCell id="subtitle" value="Wszystkie moduły platformy pogrupowane tematycznie" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#888;" vertex="1" parent="1">
<mxGeometry x="600" y="48" width="340" height="20" as="geometry"/>
</mxCell>
<!-- ========== KATALOG I WYSZUKIWANIE ========== -->
<mxCell id="g1_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;shadow=1;" vertex="1" parent="1">
<mxGeometry x="40" y="90" width="380" height="250" as="geometry"/>
</mxCell>
<mxCell id="g1_title" value="&lt;b style=&quot;font-size:14px&quot;&gt;&#x1F4BC; Katalog i Wyszukiwanie&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="55" y="96" width="240" height="24" as="geometry"/>
</mxCell>
<mxCell id="g1_f1" value="Profile 150 firm" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="55" y="130" width="165" height="32" as="geometry"/>
</mxCell>
<mxCell id="g1_f2" value="Wyszukiwarka pełnotekstowa" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="230" y="130" width="175" height="32" as="geometry"/>
</mxCell>
<mxCell id="g1_f3" value="Filtrowanie po branży" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="55" y="170" width="165" height="32" as="geometry"/>
</mxCell>
<mxCell id="g1_f4" value="Mapa lokalizacji" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="230" y="170" width="175" height="32" as="geometry"/>
</mxCell>
<mxCell id="g1_f5" value="Weryfikacja NIP/REGON/KRS" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="55" y="210" width="175" height="32" as="geometry"/>
</mxCell>
<mxCell id="g1_f6" value="Dane kontaktowe i godziny" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="240" y="210" width="165" height="32" as="geometry"/>
</mxCell>
<mxCell id="g1_f7" value="Ogłoszenia i oferty firm" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="55" y="250" width="165" height="32" as="geometry"/>
</mxCell>
<mxCell id="g1_f8" value="Import z KRS / CEIDG" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="230" y="250" width="175" height="32" as="geometry"/>
</mxCell>
<!-- ========== SZTUCZNA INTELIGENCJA ========== -->
<mxCell id="g2_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;shadow=1;" vertex="1" parent="1">
<mxGeometry x="450" y="90" width="380" height="250" as="geometry"/>
</mxCell>
<mxCell id="g2_title" value="&lt;b style=&quot;font-size:14px&quot;&gt;&#x1F916; Sztuczna Inteligencja&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="465" y="96" width="220" height="24" as="geometry"/>
</mxCell>
<mxCell id="g2_f1" value="NordaGPT — czat AI" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D5C8E3;strokeColor=#9673a6;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="465" y="130" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g2_f2" value="Rekomendacje firm" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D5C8E3;strokeColor=#9673a6;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="645" y="130" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g2_f3" value="Analiza AI luk prawnych" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D5C8E3;strokeColor=#9673a6;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="465" y="170" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g2_f4" value="Generowanie raportów" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D5C8E3;strokeColor=#9673a6;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="645" y="170" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g2_f5" value="Baza wiedzy Norda" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D5C8E3;strokeColor=#9673a6;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="465" y="210" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g2_f6" value="Baza wiedzy ZOPK" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D5C8E3;strokeColor=#9673a6;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="645" y="210" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g2_f7" value="Analiza roadmap AI" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D5C8E3;strokeColor=#9673a6;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="465" y="250" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g2_f8" value="Uczenie się z feedbacku" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D5C8E3;strokeColor=#9673a6;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="645" y="250" width="170" height="32" as="geometry"/>
</mxCell>
<!-- ========== AUDYTY CYFROWE ========== -->
<mxCell id="g3_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;shadow=1;" vertex="1" parent="1">
<mxGeometry x="860" y="90" width="380" height="250" as="geometry"/>
</mxCell>
<mxCell id="g3_title" value="&lt;b style=&quot;font-size:14px&quot;&gt;&#x1F4CA; Audyty Cyfrowe&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="875" y="96" width="180" height="24" as="geometry"/>
</mxCell>
<mxCell id="g3_f1" value="Audyt SEO (PageSpeed)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8DFC4;strokeColor=#82b366;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="875" y="130" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g3_f2" value="Audyt Google Moja Firma" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8DFC4;strokeColor=#82b366;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1055" y="130" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g3_f3" value="Monitoring social media" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8DFC4;strokeColor=#82b366;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="875" y="170" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g3_f4" value="Benchmarki branżowe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8DFC4;strokeColor=#82b366;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1055" y="170" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g3_f5" value="Audyt IT i bezpieczeństwa" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8DFC4;strokeColor=#82b366;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="875" y="210" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g3_f6" value="Core Web Vitals (CrUX)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8DFC4;strokeColor=#82b366;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1055" y="210" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g3_f7" value="Raport kompletności danych" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8DFC4;strokeColor=#82b366;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="875" y="250" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g3_f8" value="Monitoring konkurencji" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8DFC4;strokeColor=#82b366;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1055" y="250" width="170" height="32" as="geometry"/>
</mxCell>
<!-- ========== ADMINISTRACJA ========== -->
<mxCell id="g4_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1270" y="90" width="380" height="250" as="geometry"/>
</mxCell>
<mxCell id="g4_title" value="&lt;b style=&quot;font-size:14px&quot;&gt;&#x2699;&#xFE0F; Administracja&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1285" y="96" width="170" height="24" as="geometry"/>
</mxCell>
<mxCell id="g4_f1" value="Panel zarządzania firmami" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F0D4D4;strokeColor=#b85450;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1285" y="130" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g4_f2" value="Zarządzanie użytkownikami" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F0D4D4;strokeColor=#b85450;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1465" y="130" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g4_f3" value="Moderacja treści" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F0D4D4;strokeColor=#b85450;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1285" y="170" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g4_f4" value="Panel bezpieczeństwa" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F0D4D4;strokeColor=#b85450;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1465" y="170" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g4_f5" value="Analityka i raporty" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F0D4D4;strokeColor=#b85450;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1285" y="210" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g4_f6" value="Zarządzanie ZOPK" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F0D4D4;strokeColor=#b85450;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1465" y="210" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g4_f7" value="Import danych (KRS/CEIDG)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F0D4D4;strokeColor=#b85450;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1285" y="250" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g4_f8" value="Ogłoszenia platformowe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F0D4D4;strokeColor=#b85450;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1465" y="250" width="170" height="32" as="geometry"/>
</mxCell>
<!-- ========== SPOŁECZNOŚĆ ========== -->
<mxCell id="g5_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;shadow=1;" vertex="1" parent="1">
<mxGeometry x="40" y="370" width="380" height="250" as="geometry"/>
</mxCell>
<mxCell id="g5_title" value="&lt;b style=&quot;font-size:14px&quot;&gt;&#x1F465; Społeczność i Komunikacja&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="55" y="376" width="280" height="24" as="geometry"/>
</mxCell>
<mxCell id="g5_f1" value="Forum dyskusyjne" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF0C0;strokeColor=#d6b656;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="55" y="410" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g5_f2" value="Wiadomości prywatne" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF0C0;strokeColor=#d6b656;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="235" y="410" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g5_f3" value="Kalendarz wydarzeń" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF0C0;strokeColor=#d6b656;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="55" y="450" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g5_f4" value="Powiadomienia e-mail" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF0C0;strokeColor=#d6b656;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="235" y="450" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g5_f5" value="Reakcje i wzmianki" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF0C0;strokeColor=#d6b656;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="55" y="490" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g5_f6" value="Subskrypcje tematów" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF0C0;strokeColor=#d6b656;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="235" y="490" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g5_f7" value="Profile członków" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF0C0;strokeColor=#d6b656;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="55" y="530" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g5_f8" value="Tablica ogłoszeń" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF0C0;strokeColor=#d6b656;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="235" y="530" width="170" height="32" as="geometry"/>
</mxCell>
<!-- ========== BAZA WIEDZY ========== -->
<mxCell id="g6_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;shadow=1;" vertex="1" parent="1">
<mxGeometry x="450" y="370" width="380" height="250" as="geometry"/>
</mxCell>
<mxCell id="g6_title" value="&lt;b style=&quot;font-size:14px&quot;&gt;&#x1F4DA; Baza Wiedzy i Edukacja&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="465" y="376" width="240" height="24" as="geometry"/>
</mxCell>
<mxCell id="g6_f1" value="ZOPK — monitoring prawny" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#BBDEFB;strokeColor=#1565C0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="465" y="410" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g6_f2" value="Timeline zmian przepisów" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#BBDEFB;strokeColor=#1565C0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="645" y="410" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g6_f3" value="Graf relacji (wiedza)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#BBDEFB;strokeColor=#1565C0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="465" y="450" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g6_f4" value="Deduplikacja encji" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#BBDEFB;strokeColor=#1565C0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="645" y="450" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g6_f5" value="Szkolenia online" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#BBDEFB;strokeColor=#1565C0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="465" y="490" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g6_f6" value="Materiały edukacyjne" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#BBDEFB;strokeColor=#1565C0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="645" y="490" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g6_f7" value="Monitoring wiadomości" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#BBDEFB;strokeColor=#1565C0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="465" y="530" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g6_f8" value="Linki do źródeł w AI" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#BBDEFB;strokeColor=#1565C0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="645" y="530" width="170" height="32" as="geometry"/>
</mxCell>
<!-- ========== CZŁONKOSTWO ========== -->
<mxCell id="g7_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FCE4EC;strokeColor=#C62828;shadow=1;" vertex="1" parent="1">
<mxGeometry x="860" y="370" width="380" height="250" as="geometry"/>
</mxCell>
<mxCell id="g7_title" value="&lt;b style=&quot;font-size:14px&quot;&gt;&#x1F3C6; Członkostwo i Korzyści&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="875" y="376" width="240" height="24" as="geometry"/>
</mxCell>
<mxCell id="g7_f1" value="3 pakiety cenowe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F8BBD0;strokeColor=#C62828;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="875" y="410" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g7_f2" value="Starter za 1 zł (Izba)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F8BBD0;strokeColor=#C62828;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1055" y="410" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g7_f3" value="Zarządzanie składkami" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F8BBD0;strokeColor=#C62828;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="875" y="450" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g7_f4" value="Raport korzyści" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F8BBD0;strokeColor=#C62828;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1055" y="450" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g7_f5" value="Eksport danych (CSV/PDF)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F8BBD0;strokeColor=#C62828;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="875" y="490" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g7_f6" value="Dostęp do API" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F8BBD0;strokeColor=#C62828;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1055" y="490" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g7_f7" value="Priorytetowe wsparcie" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F8BBD0;strokeColor=#C62828;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="875" y="530" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g7_f8" value="Branding firmy" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F8BBD0;strokeColor=#C62828;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1055" y="530" width="170" height="32" as="geometry"/>
</mxCell>
<!-- ========== INTEGRACJE ========== -->
<mxCell id="g8_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F3E5F5;strokeColor=#7B1FA2;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1270" y="370" width="380" height="250" as="geometry"/>
</mxCell>
<mxCell id="g8_title" value="&lt;b style=&quot;font-size:14px&quot;&gt;&#x1F517; Integracje Zewnętrzne&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1285" y="376" width="230" height="24" as="geometry"/>
</mxCell>
<mxCell id="g8_f1" value="Google Gemini AI" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E1BEE7;strokeColor=#7B1FA2;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1285" y="410" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g8_f2" value="Google PageSpeed" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E1BEE7;strokeColor=#7B1FA2;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1465" y="410" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g8_f3" value="Google Places (GMF)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E1BEE7;strokeColor=#7B1FA2;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1285" y="450" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g8_f4" value="Google Search Console" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E1BEE7;strokeColor=#7B1FA2;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1465" y="450" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g8_f5" value="Rejestry KRS / CEIDG" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E1BEE7;strokeColor=#7B1FA2;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1285" y="490" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g8_f6" value="Microsoft Graph (poczta)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E1BEE7;strokeColor=#7B1FA2;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1465" y="490" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g8_f7" value="YouTube Data API" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E1BEE7;strokeColor=#7B1FA2;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1285" y="530" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="g8_f8" value="Brave Search API" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E1BEE7;strokeColor=#7B1FA2;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1465" y="530" width="170" height="32" as="geometry"/>
</mxCell>
<!-- PODSUMOWANIE -->
<mxCell id="summary" value="&lt;font style=&quot;font-size:11px;color:#888&quot;&gt;8 obszarów funkcjonalnych &amp;nbsp;|&amp;nbsp; 64+ funkcje &amp;nbsp;|&amp;nbsp; 17 modułów &amp;nbsp;|&amp;nbsp; 8 integracji zewnętrznych&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="500" y="650" width="550" height="24" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 813 KiB

View File

@ -0,0 +1,202 @@
<mxfile host="draw.io" modified="2026-02-12" agent="Claude Code" type="device">
<diagram id="b4-membership" name="Model Członkostwa">
<mxGraphModel dx="1400" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="1100" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<!-- TYTUŁ -->
<mxCell id="title" value="NordaBiz — Pakiety dla firm członkowskich" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=22;fontStyle=1;fontColor=#1a1a2e;" vertex="1" parent="1">
<mxGeometry x="420" y="15" width="520" height="36" as="geometry"/>
</mxCell>
<mxCell id="subtitle" value="Trzy poziomy dostępu — każda firma wybiera to, czego potrzebuje" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#888;" vertex="1" parent="1">
<mxGeometry x="460" y="48" width="420" height="20" as="geometry"/>
</mxCell>
<!-- ========== STARTER ========== -->
<mxCell id="starter_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;strokeWidth=2;shadow=1;" vertex="1" parent="1">
<mxGeometry x="60" y="80" width="420" height="530" as="geometry"/>
</mxCell>
<mxCell id="starter_header" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#BBDEFB;strokeColor=#1565C0;arcSize=8;" vertex="1" parent="1">
<mxGeometry x="60" y="80" width="420" height="110" as="geometry"/>
</mxCell>
<mxCell id="starter_name" value="&lt;b style=&quot;font-size:22px;color:#1565C0&quot;&gt;Starter&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="210" y="86" width="120" height="32" as="geometry"/>
</mxCell>
<mxCell id="starter_price" value="&lt;b style=&quot;font-size:36px;color:#1565C0&quot;&gt;1 zł&lt;/b&gt;&lt;font style=&quot;font-size:12px;color:#888&quot;&gt; / miesiąc&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="170" y="118" width="200" height="44" as="geometry"/>
</mxCell>
<mxCell id="starter_sub" value="&lt;font style=&quot;font-size:10px;color:#1565C0&quot;&gt;w ramach składki członkowskiej Izby&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="155" y="160" width="230" height="20" as="geometry"/>
</mxCell>
<mxCell id="s_f1" value="&#x2705; Profil firmy w katalogu" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=13;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="100" y="210" width="210" height="30" as="geometry"/>
</mxCell>
<mxCell id="s_f2" value="&#x2705; Forum + ogłoszenia" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=13;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="100" y="248" width="190" height="30" as="geometry"/>
</mxCell>
<mxCell id="s_f3" value="&#x2705; Aktualności + kalendarz" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=13;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="100" y="286" width="220" height="30" as="geometry"/>
</mxCell>
<mxCell id="s_f4" value="&#x2705; Zakupy grupowe (rabaty)" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=13;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="100" y="324" width="240" height="30" as="geometry"/>
</mxCell>
<mxCell id="s_f5" value="&#x2705; Powiadomienia wielokanałowe" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=13;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="100" y="362" width="290" height="30" as="geometry"/>
</mxCell>
<mxCell id="s_sep" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=-1;spacingRight=-1;rotatable=0;labelPosition=left;points=[];portConstraint=eastwest;strokeColor=#1565C0;dashed=1;" vertex="1" parent="1">
<mxGeometry x="100" y="410" width="340" height="10" as="geometry"/>
</mxCell>
<mxCell id="s_f6" value="&#x274C; NordaGPT — asystent AI" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=12;fontColor=#aaa;" vertex="1" parent="1">
<mxGeometry x="100" y="422" width="210" height="28" as="geometry"/>
</mxCell>
<mxCell id="s_f7" value="&#x274C; Norda360" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=12;fontColor=#aaa;" vertex="1" parent="1">
<mxGeometry x="100" y="454" width="120" height="28" as="geometry"/>
</mxCell>
<mxCell id="s_f8" value="&#x274C; Email @nordabiznes.pl" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=12;fontColor=#aaa;" vertex="1" parent="1">
<mxGeometry x="100" y="486" width="200" height="28" as="geometry"/>
</mxCell>
<mxCell id="s_f9" value="&#x274C; Konta pracowników" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=12;fontColor=#aaa;" vertex="1" parent="1">
<mxGeometry x="100" y="518" width="180" height="28" as="geometry"/>
</mxCell>
<mxCell id="starter_note" value="&lt;font style=&quot;font-size:10px;color:#1565C0&quot;&gt;Bariera wejścia ~0 PLN — max baza użytkowników&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="110" y="560" width="310" height="20" as="geometry"/>
</mxCell>
<!-- ========== PREMIUM (wyróżniony) ========== -->
<mxCell id="prem_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#2E7D32;strokeWidth=3;shadow=1;" vertex="1" parent="1">
<mxGeometry x="530" y="70" width="420" height="550" as="geometry"/>
</mxCell>
<mxCell id="prem_badge" value="&lt;b style=&quot;color:#fff;font-size:11px&quot;&gt;&#x2B50; REKOMENDOWANY&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#2E7D32;strokeColor=#2E7D32;" vertex="1" parent="1">
<mxGeometry x="650" y="70" width="180" height="24" as="geometry"/>
</mxCell>
<mxCell id="prem_header" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C8E6C9;strokeColor=#2E7D32;arcSize=8;" vertex="1" parent="1">
<mxGeometry x="530" y="90" width="420" height="110" as="geometry"/>
</mxCell>
<mxCell id="prem_name" value="&lt;b style=&quot;font-size:22px;color:#2E7D32&quot;&gt;Premium&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="680" y="96" width="120" height="32" as="geometry"/>
</mxCell>
<mxCell id="prem_price" value="&lt;b style=&quot;font-size:36px;color:#2E7D32&quot;&gt;*&lt;/b&gt;&lt;font style=&quot;font-size:12px;color:#888&quot;&gt;&lt;br&gt;cena do ustalenia&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="635" y="128" width="210" height="44" as="geometry"/>
</mxCell>
<mxCell id="prem_sub" value="&lt;font style=&quot;font-size:10px;color:#2E7D32&quot;&gt;rekomendowany dla większości firm&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="625" y="170" width="290" height="20" as="geometry"/>
</mxCell>
<mxCell id="p_inc" value="&lt;font style=&quot;font-size:11px;color:#666&quot;&gt;Wszystko ze Starter +&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="570" y="210" width="160" height="24" as="geometry"/>
</mxCell>
<mxCell id="p_f1" value="&#x2705; NordaGPT — asystent AI" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=13;fontColor=#2E7D32;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="570" y="242" width="240" height="30" as="geometry"/>
</mxCell>
<mxCell id="p_f2" value="&#x2705; Statystyki profilu firmy" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=13;fontColor=#2E7D32;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="570" y="280" width="230" height="30" as="geometry"/>
</mxCell>
<mxCell id="p_f3" value="&#x2705; 50% zniżki na Norda360" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=13;fontColor=#2E7D32;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="570" y="318" width="230" height="30" as="geometry"/>
</mxCell>
<mxCell id="p_f4" value="&#x2705; Email @nordabiznes.pl" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=13;fontColor=#2E7D32;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="570" y="356" width="220" height="30" as="geometry"/>
</mxCell>
<mxCell id="p_f5" value="&#x2705; Projekt Kaszubia — dostęp" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=13;fontColor=#2E7D32;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="570" y="394" width="260" height="30" as="geometry"/>
</mxCell>
<mxCell id="p_sep" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=-1;spacingRight=-1;rotatable=0;labelPosition=left;points=[];portConstraint=eastwest;strokeColor=#2E7D32;dashed=1;" vertex="1" parent="1">
<mxGeometry x="570" y="440" width="340" height="10" as="geometry"/>
</mxCell>
<mxCell id="p_f6" value="&#x274C; Norda360 w cenie" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=12;fontColor=#aaa;" vertex="1" parent="1">
<mxGeometry x="570" y="456" width="170" height="28" as="geometry"/>
</mxCell>
<mxCell id="p_f7" value="&#x274C; 5x email (tylko w Business Pro)" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=12;fontColor=#aaa;" vertex="1" parent="1">
<mxGeometry x="570" y="488" width="260" height="28" as="geometry"/>
</mxCell>
<mxCell id="p_f8" value="&#x274C; Konta pracowników z rolami" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=12;fontColor=#aaa;" vertex="1" parent="1">
<mxGeometry x="570" y="520" width="250" height="28" as="geometry"/>
</mxCell>
<mxCell id="prem_note" value="&lt;font style=&quot;font-size:10px;color:#2E7D32&quot;&gt;Target: ~66% firm członkowskich&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="640" y="560" width="210" height="20" as="geometry"/>
</mxCell>
<!-- ========== BUSINESS PRO (kotwica) ========== -->
<mxCell id="bp_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF8E1;strokeColor=#F57F17;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1000" y="80" width="420" height="530" as="geometry"/>
</mxCell>
<mxCell id="bp_anchor_badge" value="&lt;b style=&quot;color:#fff;font-size:10px&quot;&gt;KOTWICA CENOWA&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#F57F17;strokeColor=#F57F17;" vertex="1" parent="1">
<mxGeometry x="1130" y="80" width="140" height="20" as="geometry"/>
</mxCell>
<mxCell id="bp_header" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFE082;strokeColor=#F57F17;arcSize=8;" vertex="1" parent="1">
<mxGeometry x="1000" y="100" width="420" height="110" as="geometry"/>
</mxCell>
<mxCell id="bp_name" value="&lt;b style=&quot;font-size:22px;color:#F57F17&quot;&gt;Business Pro&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1120" y="106" width="170" height="32" as="geometry"/>
</mxCell>
<mxCell id="bp_price" value="&lt;b style=&quot;font-size:36px;color:#F57F17&quot;&gt;**&lt;/b&gt;&lt;font style=&quot;font-size:12px;color:#888&quot;&gt;&lt;br&gt;cena do ustalenia&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1095" y="138" width="230" height="44" as="geometry"/>
</mxCell>
<mxCell id="bp_sub" value="&lt;font style=&quot;font-size:10px;color:#F57F17&quot;&gt;pełen pakiet narzędzi i usług&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1120" y="180" width="190" height="20" as="geometry"/>
</mxCell>
<mxCell id="bp_inc" value="&lt;font style=&quot;font-size:11px;color:#666&quot;&gt;Wszystko z Premium +&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1040" y="210" width="160" height="24" as="geometry"/>
</mxCell>
<mxCell id="bp_f1" value="&#x2705; Norda360 w cenie" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=13;fontColor=#F57F17;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="1040" y="250" width="190" height="30" as="geometry"/>
</mxCell>
<mxCell id="bp_f1_sub" value="&lt;font style=&quot;font-size:10px;color:#888&quot;&gt;SEO, Google Business, Social Media AI&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1060" y="278" width="260" height="18" as="geometry"/>
</mxCell>
<mxCell id="bp_f2" value="&#x2705; 5x email @nordabiznes.pl" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=13;fontColor=#F57F17;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="1040" y="306" width="260" height="30" as="geometry"/>
</mxCell>
<mxCell id="bp_f3" value="&#x2705; Konta pracowników z rolami" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=13;fontColor=#F57F17;fontStyle=1;" vertex="1" parent="1">
<mxGeometry x="1040" y="348" width="280" height="30" as="geometry"/>
</mxCell>
<mxCell id="bp_sep" value="" style="line;strokeWidth=1;fillColor=none;align=left;verticalAlign=middle;spacingTop=-1;spacingLeft=-1;spacingRight=-1;rotatable=0;labelPosition=left;points=[];portConstraint=eastwest;strokeColor=#F57F17;dashed=1;" vertex="1" parent="1">
<mxGeometry x="1040" y="400" width="340" height="10" as="geometry"/>
</mxCell>
<mxCell id="bp_extra_label" value="&lt;font style=&quot;font-size:11px;color:#F57F17&quot;&gt;&lt;b&gt;Dodatkowe (wycena indywidualna):&lt;/b&gt;&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1040" y="415" width="270" height="24" as="geometry"/>
</mxCell>
<mxCell id="bp_e1" value="&#x2795; Dodatkowe konta email" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=12;fontColor=#E65100;" vertex="1" parent="1">
<mxGeometry x="1040" y="444" width="210" height="28" as="geometry"/>
</mxCell>
<mxCell id="bp_e2" value="&#x2795; Dodatkowi użytkownicy" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=12;fontColor=#E65100;" vertex="1" parent="1">
<mxGeometry x="1040" y="476" width="210" height="28" as="geometry"/>
</mxCell>
<mxCell id="bp_note" value="&lt;font style=&quot;font-size:10px;color:#F57F17&quot;&gt;Pełen pakiet narzędzi dla wymagających firm&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1060" y="560" width="360" height="20" as="geometry"/>
</mxCell>
<!-- STRZAŁKA WSKAZUJĄCA PREMIUM -->
<mxCell id="arrow_best" value="&lt;b style=&quot;font-size:14px;color:#2E7D32&quot;&gt;NAJLEPSZA WARTOŚĆ&lt;/b&gt;" style="shape=callout;whiteSpace=wrap;html=1;perimeter=calloutPerimeter;size=20;position=0.5;base=30;fillColor=#C8E6C9;strokeColor=#2E7D32;fontSize=12;rounded=1;" vertex="1" parent="1">
<mxGeometry x="610" y="640" width="260" height="50" as="geometry"/>
</mxCell>
<!-- NOTA O RÓWNYM TRAKTOWANIU -->
<mxCell id="note_equal" value="&lt;font style=&quot;font-size:12px&quot;&gt;&#x2696;&#xFE0F; &lt;b&gt;Wszystkie firmy traktowane równo&lt;/b&gt; — brak wyróżnionych pozycji w katalogu.&lt;br&gt;&lt;font color=&quot;#888&quot;&gt;Dodatkowe konta email i użytkowników — wycena indywidualna.&lt;/font&gt;&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#999;fontColor=#333;shadow=1;align=center;" vertex="1" parent="1">
<mxGeometry x="250" y="720" width="900" height="50" as="geometry"/>
</mxCell>
<!-- BIURO IZBY -->
<mxCell id="office_box" value="&lt;font style=&quot;font-size:12px&quot;&gt;&lt;b&gt;Subskrypcja biura Izby:&lt;/b&gt; 1 000 - 1 500 PLN/mies.&lt;br&gt;&lt;font color=&quot;#888&quot;&gt;Składki, wezwania, CRM, powiadomienia, statystyki, panel admin&lt;/font&gt;&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;fontColor=#333;shadow=1;align=center;" vertex="1" parent="1">
<mxGeometry x="250" y="790" width="900" height="50" as="geometry"/>
</mxCell>
<!-- STRATEGIA -->
<mxCell id="strategy" value="&lt;font style=&quot;font-size:10px;color:#888&quot;&gt;&lt;b&gt;Strategia:&lt;/b&gt; Ceny pakietów Premium (*) i Business Pro (**) do ustalenia wspólnie z Radą NORDA.&lt;br&gt;Usługi IT dla członków (monitoring, backup, email) — osobny katalog, ceny preferencyjne.&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="230" y="860" width="940" height="40" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 711 KiB

View File

@ -0,0 +1,134 @@
<mxfile host="draw.io" modified="2026-02-12" agent="Claude Code" type="device">
<diagram id="b5-ai" name="Możliwości AI">
<mxGraphModel dx="1400" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="900" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="title" value="NordaBiz — Możliwości Sztucznej Inteligencji" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=22;fontStyle=1;fontColor=#1a1a2e;" vertex="1" parent="1">
<mxGeometry x="420" y="15" width="520" height="36" as="geometry"/>
</mxCell>
<mxCell id="subtitle" value="Jak sztuczna inteligencja wspiera firmy członkowskie Izby Norda" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#888;" vertex="1" parent="1">
<mxGeometry x="450" y="48" width="430" height="20" as="geometry"/>
</mxCell>
<!-- CENTRUM: AI ENGINE -->
<mxCell id="ai_center" value="&lt;b style=&quot;font-size:16px;color:#fff&quot;&gt;&#x1F916; Google Gemini AI&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#ccc&quot;&gt;Gemini 3 Flash (primary)&lt;br&gt;Gemini 3 Pro (reasoning)&lt;br&gt;Thinking mode | Fallback chain&lt;/font&gt;" style="ellipse;whiteSpace=wrap;html=1;fillColor=#7B1FA2;strokeColor=#4A148C;shadow=1;" vertex="1" parent="1">
<mxGeometry x="580" y="330" width="260" height="180" as="geometry"/>
</mxCell>
<!-- NORDAGPT -->
<mxCell id="gpt_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;shadow=1;" vertex="1" parent="1">
<mxGeometry x="40" y="90" width="340" height="200" as="geometry"/>
</mxCell>
<mxCell id="gpt_title" value="&lt;b style=&quot;font-size:16px&quot;&gt;&#x1F4AC; NordaGPT — Asystent AI&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#1565C0;" vertex="1" parent="1">
<mxGeometry x="55" y="96" width="260" height="28" as="geometry"/>
</mxCell>
<mxCell id="gpt_d1" value="&lt;font style=&quot;font-size:11px&quot;&gt;Czat z AI o firmach z katalogu&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="70" y="130" width="210" height="22" as="geometry"/>
</mxCell>
<mxCell id="gpt_d2" value="&lt;font style=&quot;font-size:11px&quot;&gt;&lt;b&gt;Przykład:&lt;/b&gt; &quot;Kto w Wejherowie robi strony WWW?&quot;&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#555;fontStyle=2;" vertex="1" parent="1">
<mxGeometry x="70" y="155" width="300" height="22" as="geometry"/>
</mxCell>
<mxCell id="gpt_d3" value="&lt;font style=&quot;font-size:11px&quot;&gt;AI zna dane 150 firm i odpowiada kontekstowo&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="70" y="180" width="300" height="22" as="geometry"/>
</mxCell>
<mxCell id="gpt_d4" value="&lt;font style=&quot;font-size:11px&quot;&gt;Rekomendacje firm dopasowane do potrzeb&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="70" y="205" width="290" height="22" as="geometry"/>
</mxCell>
<mxCell id="gpt_badge" value="&lt;b style=&quot;color:#fff;font-size:10px&quot;&gt;Dostępne dla Premium&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#1565C0;strokeColor=#1565C0;" vertex="1" parent="1">
<mxGeometry x="55" y="240" width="150" height="22" as="geometry"/>
</mxCell>
<!-- AUDYT SEO -->
<mxCell id="seo_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#2E7D32;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1040" y="90" width="340" height="200" as="geometry"/>
</mxCell>
<mxCell id="seo_title" value="&lt;b style=&quot;font-size:16px&quot;&gt;&#x1F4CA; Audyt SEO z AI&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#2E7D32;" vertex="1" parent="1">
<mxGeometry x="1055" y="96" width="180" height="28" as="geometry"/>
</mxCell>
<mxCell id="seo_d1" value="&lt;font style=&quot;font-size:11px&quot;&gt;Automatyczna analiza strony internetowej&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1060" y="130" width="290" height="22" as="geometry"/>
</mxCell>
<mxCell id="seo_d2" value="&lt;font style=&quot;font-size:11px&quot;&gt;Wyniki Google PageSpeed + Core Web Vitals&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1060" y="155" width="300" height="22" as="geometry"/>
</mxCell>
<mxCell id="seo_d3" value="&lt;font style=&quot;font-size:11px&quot;&gt;AI generuje spersonalizowane rekomendacje&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1060" y="180" width="300" height="22" as="geometry"/>
</mxCell>
<mxCell id="seo_d4" value="&lt;font style=&quot;font-size:11px&quot;&gt;Benchmarki: porównanie z innymi firmami&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1060" y="205" width="280" height="22" as="geometry"/>
</mxCell>
<mxCell id="seo_badge" value="&lt;b style=&quot;color:#fff;font-size:10px&quot;&gt;Automatyczny raport&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#2E7D32;strokeColor=#2E7D32;" vertex="1" parent="1">
<mxGeometry x="1055" y="240" width="140" height="22" as="geometry"/>
</mxCell>
<!-- MONITORING ZOPK -->
<mxCell id="zopk_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF3E0;strokeColor=#E65100;shadow=1;" vertex="1" parent="1">
<mxGeometry x="40" y="560" width="340" height="200" as="geometry"/>
</mxCell>
<mxCell id="zopk_title" value="&lt;b style=&quot;font-size:16px&quot;&gt;&#x1F4DA; Baza Wiedzy ZOPK&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#E65100;" vertex="1" parent="1">
<mxGeometry x="55" y="566" width="220" height="28" as="geometry"/>
</mxCell>
<mxCell id="zopk_d1" value="&lt;font style=&quot;font-size:11px&quot;&gt;AI analizuje zmiany w prawie&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="60" y="600" width="200" height="22" as="geometry"/>
</mxCell>
<mxCell id="zopk_d2" value="&lt;font style=&quot;font-size:11px&quot;&gt;Wykrywa luki w roadmapie działań&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="60" y="625" width="230" height="22" as="geometry"/>
</mxCell>
<mxCell id="zopk_d3" value="&lt;font style=&quot;font-size:11px&quot;&gt;Timeline zmian przepisów z AI podsumowaniem&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="60" y="650" width="310" height="22" as="geometry"/>
</mxCell>
<mxCell id="zopk_d4" value="&lt;font style=&quot;font-size:11px&quot;&gt;Odpowiedzi AI z linkami do źródeł&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="60" y="675" width="240" height="22" as="geometry"/>
</mxCell>
<mxCell id="zopk_badge" value="&lt;b style=&quot;color:#fff;font-size:10px&quot;&gt;Monitoring prawny&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E65100;strokeColor=#E65100;" vertex="1" parent="1">
<mxGeometry x="55" y="710" width="130" height="22" as="geometry"/>
</mxCell>
<!-- SOCIAL MEDIA & GBP -->
<mxCell id="social_box" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FCE4EC;strokeColor=#C62828;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1040" y="560" width="340" height="200" as="geometry"/>
</mxCell>
<mxCell id="social_title" value="&lt;b style=&quot;font-size:16px&quot;&gt;&#x1F4F1; Monitoring Cyfrowy&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#C62828;" vertex="1" parent="1">
<mxGeometry x="1055" y="566" width="220" height="28" as="geometry"/>
</mxCell>
<mxCell id="social_d1" value="&lt;font style=&quot;font-size:11px&quot;&gt;Audyt Google Moja Firma (opinie, zdjęcia)&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1060" y="600" width="290" height="22" as="geometry"/>
</mxCell>
<mxCell id="social_d2" value="&lt;font style=&quot;font-size:11px&quot;&gt;Monitoring 6 platform social media&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1060" y="625" width="240" height="22" as="geometry"/>
</mxCell>
<mxCell id="social_d3" value="&lt;font style=&quot;font-size:11px&quot;&gt;Facebook, Instagram, LinkedIn, YouTube, TikTok, X&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#555;fontStyle=2;" vertex="1" parent="1">
<mxGeometry x="1060" y="650" width="310" height="22" as="geometry"/>
</mxCell>
<mxCell id="social_d4" value="&lt;font style=&quot;font-size:11px&quot;&gt;AI analizuje aktywność i daje wskazówki&lt;/font&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1060" y="675" width="270" height="22" as="geometry"/>
</mxCell>
<mxCell id="social_badge" value="&lt;b style=&quot;color:#fff;font-size:10px&quot;&gt;6 platform&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#C62828;strokeColor=#C62828;" vertex="1" parent="1">
<mxGeometry x="1055" y="710" width="80" height="22" as="geometry"/>
</mxCell>
<!-- POŁĄCZENIA -->
<mxCell id="c1" style="rounded=1;strokeColor=#1565C0;strokeWidth=2;" edge="1" source="gpt_box" target="ai_center" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="c2" style="rounded=1;strokeColor=#2E7D32;strokeWidth=2;" edge="1" source="seo_box" target="ai_center" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="c3" style="rounded=1;strokeColor=#E65100;strokeWidth=2;" edge="1" source="zopk_box" target="ai_center" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="c4" style="rounded=1;strokeColor=#C62828;strokeWidth=2;" edge="1" source="social_box" target="ai_center" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- NOTA KOSZT -->
<mxCell id="cost_note" value="&lt;font style=&quot;font-size:11px;color:#888&quot;&gt;&#x1F4B0; Gemini 3 Flash: $0.50/1M input, $3.00/1M output | Gemini 3 Pro: $2.00/$12.00 | Thinking mode: dodatkowy koszt&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="350" y="800" width="720" height="24" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 569 KiB

View File

@ -0,0 +1,163 @@
<mxfile host="draw.io" modified="2026-02-12" agent="Claude Code" type="device">
<diagram id="b6-security" name="Bezpieczeństwo Danych">
<mxGraphModel dx="1400" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="900" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="title" value="NordaBiz — Bezpieczeństwo Danych" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=22;fontStyle=1;fontColor=#1a1a2e;" vertex="1" parent="1">
<mxGeometry x="460" y="15" width="460" height="36" as="geometry"/>
</mxCell>
<mxCell id="subtitle" value="Jak chronimy dane firm i użytkowników platformy" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#888;" vertex="1" parent="1">
<mxGeometry x="510" y="48" width="340" height="20" as="geometry"/>
</mxCell>
<!-- WARSTWA 1: SZYFROWANIE -->
<mxCell id="layer1_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;shadow=1;" vertex="1" parent="1">
<mxGeometry x="40" y="90" width="340" height="180" as="geometry"/>
</mxCell>
<mxCell id="layer1_icon" value="&#x1F512;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=36;" vertex="1" parent="1">
<mxGeometry x="175" y="92" width="50" height="48" as="geometry"/>
</mxCell>
<mxCell id="layer1_title" value="&lt;b style=&quot;font-size:15px&quot;&gt;Szyfrowanie&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#b85450;" vertex="1" parent="1">
<mxGeometry x="145" y="136" width="120" height="24" as="geometry"/>
</mxCell>
<mxCell id="l1_d1" value="&#x2705; SSL/TLS (Let's Encrypt)" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="60" y="165" width="190" height="22" as="geometry"/>
</mxCell>
<mxCell id="l1_d2" value="&#x2705; HTTPS na wszystkich stronach" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="60" y="190" width="240" height="22" as="geometry"/>
</mxCell>
<mxCell id="l1_d3" value="&#x2705; Hasła hashowane (bcrypt)" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="60" y="215" width="210" height="22" as="geometry"/>
</mxCell>
<!-- WARSTWA 2: OCHRONA PRZED ATAKAMI -->
<mxCell id="layer2_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;shadow=1;" vertex="1" parent="1">
<mxGeometry x="420" y="90" width="340" height="180" as="geometry"/>
</mxCell>
<mxCell id="layer2_icon" value="&#x1F6E1;&#xFE0F;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=36;" vertex="1" parent="1">
<mxGeometry x="555" y="92" width="50" height="48" as="geometry"/>
</mxCell>
<mxCell id="layer2_title" value="&lt;b style=&quot;font-size:15px&quot;&gt;Ochrona przed atakami&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#6c8ebf;" vertex="1" parent="1">
<mxGeometry x="480" y="136" width="210" height="24" as="geometry"/>
</mxCell>
<mxCell id="l2_d1" value="&#x2705; Zapora sieciowa (FortiGate-500D)" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="440" y="165" width="260" height="22" as="geometry"/>
</mxCell>
<mxCell id="l2_d2" value="&#x2705; Ochrona CSRF (Cross-Site Request Forgery)" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="440" y="190" width="310" height="22" as="geometry"/>
</mxCell>
<mxCell id="l2_d3" value="&#x2705; Limit zapytań: 200/dzień, 50/godz." style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="440" y="215" width="260" height="22" as="geometry"/>
</mxCell>
<!-- WARSTWA 3: KONTROLA DOSTĘPU -->
<mxCell id="layer3_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;shadow=1;" vertex="1" parent="1">
<mxGeometry x="800" y="90" width="340" height="180" as="geometry"/>
</mxCell>
<mxCell id="layer3_icon" value="&#x1F511;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=36;" vertex="1" parent="1">
<mxGeometry x="935" y="92" width="50" height="48" as="geometry"/>
</mxCell>
<mxCell id="layer3_title" value="&lt;b style=&quot;font-size:15px&quot;&gt;Kontrola dostępu&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#82b366;" vertex="1" parent="1">
<mxGeometry x="880" y="136" width="170" height="24" as="geometry"/>
</mxCell>
<mxCell id="l3_d1" value="&#x2705; System logowania (Flask-Login)" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="820" y="165" width="250" height="22" as="geometry"/>
</mxCell>
<mxCell id="l3_d2" value="&#x2705; Role i uprawnienia (RBAC)" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="820" y="190" width="220" height="22" as="geometry"/>
</mxCell>
<mxCell id="l3_d3" value="&#x2705; OAuth 2.0 (Google, Meta)" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="820" y="215" width="210" height="22" as="geometry"/>
</mxCell>
<!-- WARSTWA 4: KOPIE ZAPASOWE -->
<mxCell id="layer4_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1180" y="90" width="340" height="180" as="geometry"/>
</mxCell>
<mxCell id="layer4_icon" value="&#x1F4BE;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=36;" vertex="1" parent="1">
<mxGeometry x="1315" y="92" width="50" height="48" as="geometry"/>
</mxCell>
<mxCell id="layer4_title" value="&lt;b style=&quot;font-size:15px&quot;&gt;Kopie zapasowe&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#d6b656;" vertex="1" parent="1">
<mxGeometry x="1270" y="136" width="150" height="24" as="geometry"/>
</mxCell>
<mxCell id="l4_d1" value="&#x2705; Backup bazy co godzinę" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1200" y="165" width="200" height="22" as="geometry"/>
</mxCell>
<mxCell id="l4_d2" value="&#x2705; Pełny backup codziennie" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1200" y="190" width="200" height="22" as="geometry"/>
</mxCell>
<mxCell id="l4_d3" value="&#x2705; Synchronizacja z Proxmox Backup" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1200" y="215" width="270" height="22" as="geometry"/>
</mxCell>
<!-- WARSTWA 5: PRYWATNOŚĆ -->
<mxCell id="layer5_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;shadow=1;" vertex="1" parent="1">
<mxGeometry x="230" y="310" width="340" height="180" as="geometry"/>
</mxCell>
<mxCell id="layer5_icon" value="&#x1F464;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=36;" vertex="1" parent="1">
<mxGeometry x="365" y="312" width="50" height="48" as="geometry"/>
</mxCell>
<mxCell id="layer5_title" value="&lt;b style=&quot;font-size:15px&quot;&gt;Prywatność (RODO)&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#9673a6;" vertex="1" parent="1">
<mxGeometry x="310" y="356" width="190" height="24" as="geometry"/>
</mxCell>
<mxCell id="l5_d1" value="&#x2705; Maskowanie danych osobowych (PII)" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="250" y="385" width="270" height="22" as="geometry"/>
</mxCell>
<mxCell id="l5_d2" value="&#x2705; Dane wrażliwe tylko dla zalogowanych" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="250" y="410" width="280" height="22" as="geometry"/>
</mxCell>
<mxCell id="l5_d3" value="&#x2705; Klucze API w zmiennych środowiskowych" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="250" y="435" width="290" height="22" as="geometry"/>
</mxCell>
<!-- WARSTWA 6: INFRASTRUKTURA -->
<mxCell id="layer6_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;shadow=1;" vertex="1" parent="1">
<mxGeometry x="610" y="310" width="340" height="180" as="geometry"/>
</mxCell>
<mxCell id="layer6_icon" value="&#x1F3D7;&#xFE0F;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=36;" vertex="1" parent="1">
<mxGeometry x="745" y="312" width="50" height="48" as="geometry"/>
</mxCell>
<mxCell id="layer6_title" value="&lt;b style=&quot;font-size:15px&quot;&gt;Infrastruktura&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#1565C0;" vertex="1" parent="1">
<mxGeometry x="710" y="356" width="140" height="24" as="geometry"/>
</mxCell>
<mxCell id="l6_d1" value="&#x2705; Serwer w Polsce (prywatna serwerownia)" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="630" y="385" width="290" height="22" as="geometry"/>
</mxCell>
<mxCell id="l6_d2" value="&#x2705; Reverse proxy z SSL terminacją" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="630" y="410" width="250" height="22" as="geometry"/>
</mxCell>
<mxCell id="l6_d3" value="&#x2705; Środowisko testowe (staging)" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="630" y="435" width="240" height="22" as="geometry"/>
</mxCell>
<!-- WARSTWA 7: MONITORING -->
<mxCell id="layer7_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF8E1;strokeColor=#F57F17;shadow=1;" vertex="1" parent="1">
<mxGeometry x="990" y="310" width="340" height="180" as="geometry"/>
</mxCell>
<mxCell id="layer7_icon" value="&#x1F440;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=36;" vertex="1" parent="1">
<mxGeometry x="1125" y="312" width="50" height="48" as="geometry"/>
</mxCell>
<mxCell id="layer7_title" value="&lt;b style=&quot;font-size:15px&quot;&gt;Monitoring&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#F57F17;" vertex="1" parent="1">
<mxGeometry x="1100" y="356" width="110" height="24" as="geometry"/>
</mxCell>
<mxCell id="l7_d1" value="&#x2705; Panel bezpieczeństwa (/admin/security)" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1010" y="385" width="290" height="22" as="geometry"/>
</mxCell>
<mxCell id="l7_d2" value="&#x2705; Logi aktywności i logowań" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1010" y="410" width="210" height="22" as="geometry"/>
</mxCell>
<mxCell id="l7_d3" value="&#x2705; Health check automatyczny" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1010" y="435" width="220" height="22" as="geometry"/>
</mxCell>
<!-- PODSUMOWANIE -->
<mxCell id="summary" value="&lt;font style=&quot;font-size:12px&quot;&gt;&lt;b&gt;7 warstw ochrony&lt;/b&gt; — od szyfrowania komunikacji, przez kontrolę dostępu, po codzienne kopie zapasowe i monitoring&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#1a1a2e;strokeColor=#1a1a2e;fontColor=#fff;shadow=1;align=center;" vertex="1" parent="1">
<mxGeometry x="350" y="530" width="680" height="40" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 522 KiB

View File

@ -0,0 +1,122 @@
<mxfile host="draw.io" modified="2026-02-12" agent="Claude Code" type="device">
<diagram id="b7-ecosystem" name="Ekosystem Integracji">
<mxGraphModel dx="1400" dy="900" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1600" pageHeight="900" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="title" value="NordaBiz — Ekosystem Integracji" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=22;fontStyle=1;fontColor=#1a1a2e;" vertex="1" parent="1">
<mxGeometry x="480" y="15" width="420" height="36" as="geometry"/>
</mxCell>
<mxCell id="subtitle" value="Skąd platforma czerpie dane i z jakimi serwisami współpracuje" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#888;" vertex="1" parent="1">
<mxGeometry x="460" y="48" width="430" height="20" as="geometry"/>
</mxCell>
<!-- CENTRUM: NORDABIZ -->
<mxCell id="center" value="&lt;b style=&quot;font-size:18px;color:#fff&quot;&gt;NordaBiz&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:10px;color:#ccc&quot;&gt;Platforma katalogowa&lt;br&gt;150 firm&lt;/font&gt;" style="ellipse;whiteSpace=wrap;html=1;fillColor=#1a1a2e;strokeColor=#1a1a2e;shadow=1;" vertex="1" parent="1">
<mxGeometry x="620" y="340" width="180" height="160" as="geometry"/>
</mxCell>
<!-- GOOGLE (lewy górny) -->
<mxCell id="google_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#4285F4;shadow=1;" vertex="1" parent="1">
<mxGeometry x="40" y="90" width="380" height="220" as="geometry"/>
</mxCell>
<mxCell id="google_title" value="&lt;b style=&quot;font-size:16px;color:#4285F4&quot;&gt;Google&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="55" y="96" width="80" height="28" as="geometry"/>
</mxCell>
<mxCell id="g_f1" value="&lt;b&gt;Gemini AI&lt;/b&gt; — sztuczna inteligencja" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#4285F4;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="55" y="130" width="350" height="28" as="geometry"/>
</mxCell>
<mxCell id="g_f2" value="&lt;b&gt;PageSpeed Insights&lt;/b&gt; — analiza stron WWW" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#4285F4;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="55" y="164" width="350" height="28" as="geometry"/>
</mxCell>
<mxCell id="g_f3" value="&lt;b&gt;Places API&lt;/b&gt; — Google Moja Firma, opinie" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#4285F4;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="55" y="198" width="350" height="28" as="geometry"/>
</mxCell>
<mxCell id="g_f4" value="&lt;b&gt;Search Console&lt;/b&gt; — widoczność w wyszukiwarce" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#4285F4;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="55" y="232" width="350" height="28" as="geometry"/>
</mxCell>
<mxCell id="g_f5" value="&lt;b&gt;OAuth 2.0&lt;/b&gt; — bezpieczna autoryzacja" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#34A853;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="55" y="266" width="350" height="28" as="geometry"/>
</mxCell>
<!-- SOCIAL MEDIA (prawy górny) -->
<mxCell id="social_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FCE4EC;strokeColor=#C62828;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1000" y="90" width="380" height="220" as="geometry"/>
</mxCell>
<mxCell id="social_title" value="&lt;b style=&quot;font-size:16px;color:#C62828&quot;&gt;Social Media&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1015" y="96" width="130" height="28" as="geometry"/>
</mxCell>
<mxCell id="s_f1" value="&lt;b&gt;Facebook&lt;/b&gt; — strony firmowe, posty" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#1877F2;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="1015" y="130" width="350" height="28" as="geometry"/>
</mxCell>
<mxCell id="s_f2" value="&lt;b&gt;Instagram&lt;/b&gt; — profile firmowe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#E4405F;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="1015" y="164" width="350" height="28" as="geometry"/>
</mxCell>
<mxCell id="s_f3" value="&lt;b&gt;LinkedIn&lt;/b&gt; — profile firmowe" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#0077B5;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="1015" y="198" width="350" height="28" as="geometry"/>
</mxCell>
<mxCell id="s_f4" value="&lt;b&gt;YouTube&lt;/b&gt; — kanały firmowe (Data API v3)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#FF0000;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="1015" y="232" width="350" height="28" as="geometry"/>
</mxCell>
<mxCell id="s_f5" value="&lt;b&gt;TikTok + X (Twitter)&lt;/b&gt; — monitoring" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#333;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="1015" y="266" width="350" height="28" as="geometry"/>
</mxCell>
<!-- REJESTRY PUBLICZNE (lewy dolny) -->
<mxCell id="rejestr_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#2E7D32;shadow=1;" vertex="1" parent="1">
<mxGeometry x="40" y="560" width="380" height="150" as="geometry"/>
</mxCell>
<mxCell id="rejestr_title" value="&lt;b style=&quot;font-size:16px;color:#2E7D32&quot;&gt;Rejestry Publiczne&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="55" y="566" width="190" height="28" as="geometry"/>
</mxCell>
<mxCell id="r_f1" value="&lt;b&gt;KRS&lt;/b&gt; — Krajowy Rejestr Sądowy (spółki)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="55" y="600" width="350" height="28" as="geometry"/>
</mxCell>
<mxCell id="r_f2" value="&lt;b&gt;CEIDG&lt;/b&gt; — Centralna Ewidencja Działalności" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="55" y="634" width="350" height="28" as="geometry"/>
</mxCell>
<mxCell id="r_f3" value="&lt;b&gt;GUS (REGON)&lt;/b&gt; — weryfikacja numerów" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#2E7D32;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="55" y="668" width="350" height="28" as="geometry"/>
</mxCell>
<!-- INNE SERWISY (prawy dolny) -->
<mxCell id="other_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF3E0;strokeColor=#E65100;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1000" y="560" width="380" height="150" as="geometry"/>
</mxCell>
<mxCell id="other_title" value="&lt;b style=&quot;font-size:16px;color:#E65100&quot;&gt;Inne Serwisy&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1015" y="566" width="140" height="28" as="geometry"/>
</mxCell>
<mxCell id="o_f1" value="&lt;b&gt;Microsoft Graph&lt;/b&gt; — poczta e-mail (OAuth 2.0)" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#00A4EF;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="1015" y="600" width="350" height="28" as="geometry"/>
</mxCell>
<mxCell id="o_f2" value="&lt;b&gt;Brave Search API&lt;/b&gt; — wiadomości i news" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#FB542B;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="1015" y="634" width="350" height="28" as="geometry"/>
</mxCell>
<mxCell id="o_f3" value="&lt;b&gt;Chrome UX Report&lt;/b&gt; — dane użytkowników" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#4285F4;fontSize=11;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="1015" y="668" width="350" height="28" as="geometry"/>
</mxCell>
<!-- POŁĄCZENIA -->
<mxCell id="c1" value="5 API" style="rounded=1;strokeColor=#4285F4;strokeWidth=3;fontSize=10;fontColor=#4285F4;fontStyle=1;" edge="1" source="google_bg" target="center" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="c2" value="6 platform" style="rounded=1;strokeColor=#C62828;strokeWidth=3;fontSize=10;fontColor=#C62828;fontStyle=1;" edge="1" source="social_bg" target="center" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="c3" value="3 rejestry" style="rounded=1;strokeColor=#2E7D32;strokeWidth=3;fontSize=10;fontColor=#2E7D32;fontStyle=1;" edge="1" source="rejestr_bg" target="center" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="c4" value="3 serwisy" style="rounded=1;strokeColor=#E65100;strokeWidth=3;fontSize=10;fontColor=#E65100;fontStyle=1;" edge="1" source="other_bg" target="center" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- PODSUMOWANIE -->
<mxCell id="summary" value="&lt;font style=&quot;font-size:11px;color:#888&quot;&gt;&lt;b&gt;17 integracji&lt;/b&gt; z zewnętrznymi serwisami &amp;nbsp;|&amp;nbsp; Dane aktualizowane automatycznie &amp;nbsp;|&amp;nbsp; Wszystko w jednym miejscu&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="370" y="770" width="650" height="24" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 KiB

View File

@ -0,0 +1,258 @@
<mxfile host="draw.io" modified="2026-02-12" agent="Claude Code" type="device">
<diagram id="b8-access-levels" name="Poziomy Dostępu">
<mxGraphModel dx="1600" dy="1100" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1800" pageHeight="1200" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<!-- TYTUŁ -->
<mxCell id="title" value="NordaBiz — Poziomy Dostępu i Konta" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=22;fontStyle=1;fontColor=#1a1a2e;" vertex="1" parent="1">
<mxGeometry x="520" y="15" width="460" height="36" as="geometry"/>
</mxCell>
<mxCell id="subtitle" value="Kto ma dostęp do czego — matryca uprawnień" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#888;" vertex="1" parent="1">
<mxGeometry x="580" y="48" width="320" height="20" as="geometry"/>
</mxCell>
<!-- ========== TYPY KONT (nagłówki kolumn) ========== -->
<!-- GOŚĆ -->
<mxCell id="guest_header" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ECEFF1;strokeColor=#78909C;shadow=1;" vertex="1" parent="1">
<mxGeometry x="320" y="90" width="200" height="110" as="geometry"/>
</mxCell>
<mxCell id="guest_icon" value="&#x1F464;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=32;" vertex="1" parent="1">
<mxGeometry x="390" y="92" width="50" height="44" as="geometry"/>
</mxCell>
<mxCell id="guest_name" value="&lt;b style=&quot;font-size:14px&quot;&gt;Gość&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontColor=#555;" vertex="1" parent="1">
<mxGeometry x="390" y="130" width="60" height="24" as="geometry"/>
</mxCell>
<mxCell id="guest_desc" value="&lt;font style=&quot;font-size:10px;color:#888&quot;&gt;Bez logowania&lt;br&gt;Tylko przeglądanie&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="360" y="154" width="120" height="36" as="geometry"/>
</mxCell>
<!-- STARTER -->
<mxCell id="starter_header" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;strokeWidth=2;shadow=1;" vertex="1" parent="1">
<mxGeometry x="550" y="90" width="200" height="110" as="geometry"/>
</mxCell>
<mxCell id="starter_icon" value="&#x1F468;&#x200D;&#x1F4BC;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=32;" vertex="1" parent="1">
<mxGeometry x="618" y="92" width="50" height="44" as="geometry"/>
</mxCell>
<mxCell id="starter_name" value="&lt;b style=&quot;font-size:14px;color:#1565C0&quot;&gt;Starter&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="610" y="130" width="70" height="24" as="geometry"/>
</mxCell>
<mxCell id="starter_desc" value="&lt;font style=&quot;font-size:10px;color:#888&quot;&gt;1 zł/mies. (Izba Norda)&lt;br&gt;Forum, profil, aktualności&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="575" y="154" width="160" height="36" as="geometry"/>
</mxCell>
<!-- PREMIUM -->
<mxCell id="prem_header" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#2E7D32;strokeWidth=2;shadow=1;" vertex="1" parent="1">
<mxGeometry x="780" y="90" width="200" height="110" as="geometry"/>
</mxCell>
<mxCell id="prem_icon" value="&#x2B50;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=32;" vertex="1" parent="1">
<mxGeometry x="855" y="92" width="50" height="44" as="geometry"/>
</mxCell>
<mxCell id="prem_name" value="&lt;b style=&quot;font-size:14px;color:#2E7D32&quot;&gt;Premium&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="840" y="130" width="80" height="24" as="geometry"/>
</mxCell>
<mxCell id="prem_desc" value="&lt;font style=&quot;font-size:10px;color:#888&quot;&gt;cena do ustalenia *&lt;br&gt;+ NordaGPT, Norda360, email&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="790" y="154" width="190" height="36" as="geometry"/>
</mxCell>
<!-- BUSINESS PRO -->
<mxCell id="bp_header" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF8E1;strokeColor=#F57F17;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1010" y="90" width="200" height="110" as="geometry"/>
</mxCell>
<mxCell id="bp_icon" value="&#x1F3E2;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=32;" vertex="1" parent="1">
<mxGeometry x="1085" y="92" width="50" height="44" as="geometry"/>
</mxCell>
<mxCell id="bp_name" value="&lt;b style=&quot;font-size:14px;color:#F57F17&quot;&gt;Business Pro&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1055" y="130" width="110" height="24" as="geometry"/>
</mxCell>
<mxCell id="bp_desc" value="&lt;font style=&quot;font-size:10px;color:#888&quot;&gt;cena do ustalenia **&lt;br&gt;+ Norda360, 5 email, konta&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1025" y="154" width="170" height="36" as="geometry"/>
</mxCell>
<!-- ADMIN -->
<mxCell id="admin_header" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;shadow=1;" vertex="1" parent="1">
<mxGeometry x="1240" y="90" width="200" height="110" as="geometry"/>
</mxCell>
<mxCell id="admin_icon" value="&#x1F6E1;&#xFE0F;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=32;" vertex="1" parent="1">
<mxGeometry x="1315" y="92" width="50" height="44" as="geometry"/>
</mxCell>
<mxCell id="admin_name" value="&lt;b style=&quot;font-size:14px;color:#b85450&quot;&gt;Admin Izby&lt;/b&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1285" y="130" width="110" height="24" as="geometry"/>
</mxCell>
<mxCell id="admin_desc" value="&lt;font style=&quot;font-size:10px;color:#888&quot;&gt;1 000-1 500 PLN/mies.&lt;br&gt;Pełna kontrola + CRM&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="1270" y="154" width="140" height="36" as="geometry"/>
</mxCell>
<!-- ========== MATRYCA DOSTĘPU ========== -->
<!-- Etykiety funkcji (lewa kolumna) -->
<mxCell id="lbl_header" value="&lt;b style=&quot;font-size:12px&quot;&gt;FUNKCJA&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#1a1a2e;strokeColor=#1a1a2e;fontColor=#fff;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="40" y="220" width="260" height="32" as="geometry"/>
</mxCell>
<mxCell id="lbl1" value="&lt;b&gt;Przeglądanie katalogu firm&lt;/b&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fafafa;strokeColor=#ddd;fontSize=11;align=left;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="40" y="252" width="260" height="32" as="geometry"/>
</mxCell>
<mxCell id="lbl2" value="&lt;b&gt;Profil firmy w katalogu&lt;/b&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#ddd;fontSize=11;align=left;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="40" y="284" width="260" height="32" as="geometry"/>
</mxCell>
<mxCell id="lbl3" value="&lt;b&gt;Forum + ogłoszenia&lt;/b&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fafafa;strokeColor=#ddd;fontSize=11;align=left;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="40" y="316" width="260" height="32" as="geometry"/>
</mxCell>
<mxCell id="lbl4" value="&lt;b&gt;Aktualności + kalendarz&lt;/b&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#ddd;fontSize=11;align=left;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="40" y="348" width="260" height="32" as="geometry"/>
</mxCell>
<mxCell id="lbl5" value="&lt;b&gt;Zakupy grupowe (rabaty)&lt;/b&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fafafa;strokeColor=#ddd;fontSize=11;align=left;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="40" y="380" width="260" height="32" as="geometry"/>
</mxCell>
<mxCell id="lbl6" value="&lt;b&gt;Powiadomienia wielokanałowe&lt;/b&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#ddd;fontSize=11;align=left;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="40" y="412" width="260" height="32" as="geometry"/>
</mxCell>
<mxCell id="lbl7" value="&lt;b&gt;NordaGPT — asystent AI&lt;/b&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fafafa;strokeColor=#ddd;fontSize=11;align=left;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="40" y="444" width="260" height="32" as="geometry"/>
</mxCell>
<mxCell id="lbl8" value="&lt;b&gt;Statystyki profilu firmy&lt;/b&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#ddd;fontSize=11;align=left;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="40" y="476" width="260" height="32" as="geometry"/>
</mxCell>
<mxCell id="lbl9" value="&lt;b&gt;Norda360 (SEO/GBP/Social)&lt;/b&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fafafa;strokeColor=#ddd;fontSize=11;align=left;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="40" y="508" width="260" height="32" as="geometry"/>
</mxCell>
<mxCell id="lbl10" value="&lt;b&gt;Email @nordabiznes.pl (ilość)&lt;/b&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#ddd;fontSize=11;align=left;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="40" y="540" width="260" height="32" as="geometry"/>
</mxCell>
<mxCell id="lbl11" value="&lt;b&gt;Projekt Kaszubia — dostęp&lt;/b&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fafafa;strokeColor=#ddd;fontSize=11;align=left;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="40" y="572" width="260" height="32" as="geometry"/>
</mxCell>
<mxCell id="lbl12" value="&lt;b&gt;Dodatkowe konta email&lt;/b&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#ddd;fontSize=11;align=left;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="40" y="604" width="260" height="32" as="geometry"/>
</mxCell>
<mxCell id="lbl13" value="&lt;b&gt;Konta pracowników z rolami&lt;/b&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fafafa;strokeColor=#ddd;fontSize=11;align=left;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="40" y="636" width="260" height="32" as="geometry"/>
</mxCell>
<mxCell id="lbl14" value="&lt;b&gt;Zarządzanie składkami / CRM&lt;/b&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#ddd;fontSize=11;align=left;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="40" y="668" width="260" height="32" as="geometry"/>
</mxCell>
<mxCell id="lbl15" value="&lt;b&gt;Wezwania do zapłaty&lt;/b&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fafafa;strokeColor=#ddd;fontSize=11;align=left;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="40" y="700" width="260" height="32" as="geometry"/>
</mxCell>
<mxCell id="lbl16" value="&lt;b&gt;Panel administracyjny&lt;/b&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#ddd;fontSize=11;align=left;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="40" y="732" width="260" height="32" as="geometry"/>
</mxCell>
<!-- Nagłówki kolumn matrycy -->
<mxCell id="col_g" value="&lt;b&gt;Gość&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ECEFF1;strokeColor=#78909C;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="320" y="220" width="200" height="32" as="geometry"/>
</mxCell>
<mxCell id="col_s" value="&lt;b style=&quot;color:#1565C0&quot;&gt;Starter (1 zł)&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="550" y="220" width="200" height="32" as="geometry"/>
</mxCell>
<mxCell id="col_p" value="&lt;b style=&quot;color:#2E7D32&quot;&gt;Premium *&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#2E7D32;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="780" y="220" width="200" height="32" as="geometry"/>
</mxCell>
<mxCell id="col_bp" value="&lt;b style=&quot;color:#F57F17&quot;&gt;Business Pro **&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF8E1;strokeColor=#F57F17;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1010" y="220" width="200" height="32" as="geometry"/>
</mxCell>
<mxCell id="col_a" value="&lt;b style=&quot;color:#b85450&quot;&gt;Admin Izby&lt;/b&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="1240" y="220" width="200" height="32" as="geometry"/>
</mxCell>
<!-- GOŚĆ kolumna: katalog=yes, profil=no, forum=read, aktualności=read, zakupy=no, powiadomienia=no, GPT=no, statystyki=no, norda360=no, email=no, kaszubia=no, m365=no, konta=no, składki=no, wezwania=no, admin=no -->
<mxCell id="g1" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fafafa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="320" y="252" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="g2" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="320" y="284" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="g3" value="&lt;font color=&quot;#aaa&quot;&gt;tylko odczyt&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fafafa;strokeColor=#ddd;fontSize=11;" vertex="1" parent="1"><mxGeometry x="320" y="316" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="g4" value="&lt;font color=&quot;#aaa&quot;&gt;tylko odczyt&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#ddd;fontSize=11;" vertex="1" parent="1"><mxGeometry x="320" y="348" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="g5" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fafafa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="320" y="380" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="g6" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="320" y="412" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="g7" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fafafa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="320" y="444" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="g8" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="320" y="476" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="g9" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fafafa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="320" y="508" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="g10" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="320" y="540" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="g11" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fafafa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="320" y="572" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="g12" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="320" y="604" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="g13" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fafafa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="320" y="636" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="g14" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="320" y="668" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="g15" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fafafa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="320" y="700" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="g16" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="320" y="732" width="200" height="32" as="geometry"/></mxCell>
<!-- STARTER: katalog=yes, profil=yes, forum=yes, aktualności=yes, zakupy=yes, powiadomienia=yes, GPT=NO, statystyki=NO, norda360=NO, email=NO, kaszubia=NO, m365=NO, konta=NO, składki=NO, wezwania=NO, admin=NO -->
<mxCell id="s1" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f0f4fa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="550" y="252" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="s2" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f8fd;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="550" y="284" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="s3" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f0f4fa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="550" y="316" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="s4" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f8fd;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="550" y="348" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="s5" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f0f4fa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="550" y="380" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="s6" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f8fd;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="550" y="412" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="s7" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f0f4fa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="550" y="444" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="s8" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f8fd;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="550" y="476" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="s9" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f0f4fa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="550" y="508" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="s10" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f8fd;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="550" y="540" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="s11" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f0f4fa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="550" y="572" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="s12" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f8fd;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="550" y="604" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="s13" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f0f4fa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="550" y="636" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="s14" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f8fd;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="550" y="668" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="s15" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f0f4fa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="550" y="700" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="s16" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5f8fd;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="550" y="732" width="200" height="32" as="geometry"/></mxCell>
<!-- PREMIUM: all Starter + GPT, statystyki, norda360(50%), email IMAP, kaszubia. NO: m365, konta, admin -->
<mxCell id="p1" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f0faf0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="780" y="252" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="p2" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5fff5;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="780" y="284" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="p3" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f0faf0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="780" y="316" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="p4" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5fff5;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="780" y="348" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="p5" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f0faf0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="780" y="380" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="p6" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5fff5;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="780" y="412" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="p7" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f0faf0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="780" y="444" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="p8" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5fff5;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="780" y="476" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="p9" value="&lt;font color=&quot;#2E7D32&quot;&gt;50% zniżki&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f0faf0;strokeColor=#ddd;fontSize=11;fontStyle=1;" vertex="1" parent="1"><mxGeometry x="780" y="508" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="p10" value="&#x2705; &lt;font color=&quot;#2E7D32&quot; style=&quot;font-size:10px&quot;&gt;1 konto&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5fff5;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="780" y="540" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="p11" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f0faf0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="780" y="572" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="p12" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5fff5;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="780" y="604" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="p13" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f0faf0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="780" y="636" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="p14" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5fff5;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="780" y="668" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="p15" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f0faf0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="780" y="700" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="p16" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#f5fff5;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="780" y="732" width="200" height="32" as="geometry"/></mxCell>
<!-- BUSINESS PRO: all Premium + norda360 full, m365, konta. NO: admin -->
<mxCell id="bp1" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fffdf0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1010" y="252" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="bp2" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fffdfa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1010" y="284" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="bp3" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fffdf0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1010" y="316" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="bp4" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fffdfa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1010" y="348" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="bp5" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fffdf0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1010" y="380" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="bp6" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fffdfa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1010" y="412" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="bp7" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fffdf0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1010" y="444" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="bp8" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fffdfa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1010" y="476" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="bp9" value="&lt;font color=&quot;#F57F17&quot;&gt;&lt;b&gt;w cenie&lt;/b&gt;&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fffdf0;strokeColor=#ddd;fontSize=11;" vertex="1" parent="1"><mxGeometry x="1010" y="508" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="bp10" value="&#x2705; &lt;font color=&quot;#F57F17&quot; style=&quot;font-size:10px&quot;&gt;5 kont&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fffdfa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1010" y="540" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="bp11" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fffdf0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1010" y="572" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="bp12" value="&lt;font color=&quot;#F57F17&quot; style=&quot;font-size:10px&quot;&gt;wycena indywidualna&lt;/font&gt;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fffdfa;strokeColor=#ddd;fontSize=11;" vertex="1" parent="1"><mxGeometry x="1010" y="604" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="bp13" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fffdf0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1010" y="636" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="bp14" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fffdfa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1010" y="668" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="bp15" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fffdf0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1010" y="700" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="bp16" value="&#x274C;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fffdfa;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1010" y="732" width="200" height="32" as="geometry"/></mxCell>
<!-- ADMIN: all yes -->
<mxCell id="a1" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fef0f0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1240" y="252" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="a2" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fef5f5;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1240" y="284" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="a3" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fef0f0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1240" y="316" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="a4" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fef5f5;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1240" y="348" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="a5" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fef0f0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1240" y="380" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="a6" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fef5f5;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1240" y="412" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="a7" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fef0f0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1240" y="444" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="a8" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fef5f5;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1240" y="476" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="a9" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fef0f0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1240" y="508" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="a10" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fef5f5;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1240" y="540" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="a11" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fef0f0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1240" y="572" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="a12" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fef5f5;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1240" y="604" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="a13" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fef0f0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1240" y="636" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="a14" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fef5f5;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1240" y="668" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="a15" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fef0f0;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1240" y="700" width="200" height="32" as="geometry"/></mxCell>
<mxCell id="a16" value="&#x2705;" style="rounded=0;whiteSpace=wrap;html=1;fillColor=#fef5f5;strokeColor=#ddd;fontSize=16;" vertex="1" parent="1"><mxGeometry x="1240" y="732" width="200" height="32" as="geometry"/></mxCell>
<!-- LEGENDA -->
<mxCell id="legend" value="&lt;font style=&quot;font-size:11px&quot;&gt;&#x2705; = pełny dostęp &amp;nbsp;&amp;nbsp; &#x274C; = brak dostępu &amp;nbsp;&amp;nbsp; &lt;font color=&quot;#aaa&quot;&gt;ograniczone / tylko odczyt&lt;/font&gt; = częściowy dostęp &amp;nbsp;&amp;nbsp; &lt;font color=&quot;#2E7D32&quot;&gt;50% zniżki / IMAP&lt;/font&gt; = wariant pakietu&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="360" y="780" width="770" height="24" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 538 KiB

View File

@ -0,0 +1,410 @@
<mxfile host="draw.io" modified="2026-02-12" agent="Claude Code" type="device">
<diagram id="nordabiz-system-arch" name="Architektura Systemu">
<mxGraphModel dx="1800" dy="1200" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="2200" pageHeight="1500" math="0" shadow="0">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<!-- ==================== TYTUŁ ==================== -->
<mxCell id="title" value="NordaBiz — Architektura Systemu" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=22;fontStyle=1;fontColor=#1a1a2e;" vertex="1" parent="1">
<mxGeometry x="700" y="10" width="420" height="40" as="geometry"/>
</mxCell>
<mxCell id="subtitle" value="nordabiznes.pl &amp;nbsp;|&amp;nbsp; Platforma katalogowa Norda Biznes &amp;nbsp;|&amp;nbsp; luty 2026" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#666666;" vertex="1" parent="1">
<mxGeometry x="680" y="46" width="460" height="24" as="geometry"/>
</mxCell>
<!-- ==================== INTERNET ==================== -->
<mxCell id="zone_internet_label" value="INTERNET" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;fontStyle=1;fontColor=#999999;" vertex="1" parent="1">
<mxGeometry x="40" y="78" width="70" height="20" as="geometry"/>
</mxCell>
<mxCell id="users" value="&lt;b&gt;Użytkownicy&lt;/b&gt;&lt;br&gt;(przeglądarki)" style="shape=mxgraph.cisco.people.standing_man;sketch=0;html=1;fillColor=#e6d0de;strokeColor=#AE4132;fontColor=#333333;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="400" y="80" width="50" height="55" as="geometry"/>
</mxCell>
<mxCell id="admin" value="&lt;b&gt;Administrator&lt;/b&gt;&lt;br&gt;(SSH / HTTPS)" style="shape=mxgraph.cisco.people.standing_man;sketch=0;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontColor=#333333;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="580" y="80" width="50" height="55" as="geometry"/>
</mxCell>
<mxCell id="dns" value="&lt;b&gt;DNS&lt;/b&gt;&lt;br&gt;OVH.com" style="ellipse;shape=cloud;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#666666;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="210" y="82" width="110" height="55" as="geometry"/>
</mxCell>
<!-- ==================== STREFA DMZ ==================== -->
<mxCell id="zone_dmz" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;dashed=1;strokeWidth=2;opacity=30;" vertex="1" parent="1">
<mxGeometry x="150" y="170" width="780" height="120" as="geometry"/>
</mxCell>
<mxCell id="zone_dmz_label" value="STREFA DMZ (sieć obwodowa)" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;fontStyle=1;fontColor=#b8860b;" vertex="1" parent="1">
<mxGeometry x="160" y="173" width="200" height="20" as="geometry"/>
</mxCell>
<mxCell id="fortigate" value="&lt;b&gt;FortiGate-500D&lt;/b&gt;&lt;br&gt;Zapora sieciowa / NAT&lt;br&gt;&lt;font style=&quot;font-size:9px;color:#888&quot;&gt;85.237.177.83&lt;/font&gt;" style="shape=mxgraph.cisco.firewalls.firewall;sketch=0;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=#333333;fontSize=10;labelPosition=center;verticalLabelPosition=bottom;align=center;verticalAlign=top;" vertex="1" parent="1">
<mxGeometry x="220" y="190" width="50" height="50" as="geometry"/>
</mxCell>
<mxCell id="npm" value="&lt;b&gt;Serwer Proxy (NPM)&lt;/b&gt;&lt;br&gt;R11-REVPROXY-01 (VM 119)&lt;br&gt;&lt;font style=&quot;font-size:9px;color:#888&quot;&gt;10.22.68.250 | SSL Let's Encrypt&lt;br&gt;Proxy Host #27 (prod) | #44 (staging)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontColor=#333333;fontSize=11;verticalAlign=middle;" vertex="1" parent="1">
<mxGeometry x="600" y="190" width="260" height="80" as="geometry"/>
</mxCell>
<!-- ==================== PRODUKCJA ==================== -->
<mxCell id="zone_prod" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;dashed=1;strokeWidth=2;opacity=30;" vertex="1" parent="1">
<mxGeometry x="40" y="320" width="1270" height="560" as="geometry"/>
</mxCell>
<mxCell id="zone_prod_label" value="PRODUKCJA &amp;nbsp;|&amp;nbsp; NORDABIZ-01 (VM 249) &amp;nbsp;|&amp;nbsp; 10.22.68.249 &amp;nbsp;|&amp;nbsp; nordabiznes.pl" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontStyle=1;fontColor=#4472c4;" vertex="1" parent="1">
<mxGeometry x="50" y="323" width="500" height="20" as="geometry"/>
</mxCell>
<!-- Flask Container -->
<mxCell id="flask" value="&lt;b style=&quot;font-size:14px&quot;&gt;Flask 3.0 + Gunicorn&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px;color:#555&quot;&gt;Port 5000 | 4 workery | www-data | Python 3.9+&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontColor=#333333;fontSize=11;verticalAlign=top;spacingTop=8;" vertex="1" parent="1">
<mxGeometry x="60" y="355" width="710" height="505" as="geometry"/>
</mxCell>
<!-- === MODUŁY APLIKACJI (Blueprinty) === -->
<mxCell id="bp_header" value="&lt;b&gt;Moduły aplikacji&lt;/b&gt; (17 blueprintów, 375+ tras)" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;fontStyle=0;fontColor=#4472c4;" vertex="1" parent="1">
<mxGeometry x="80" y="395" width="300" height="20" as="geometry"/>
</mxCell>
<mxCell id="bp_katalog" value="&lt;b&gt;Katalog firm&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Lista, profile, wyszukiwanie&lt;br&gt;~20 tras&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="80" y="420" width="155" height="50" as="geometry"/>
</mxCell>
<mxCell id="bp_admin" value="&lt;b&gt;Panel administracyjny&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;~100 tras, 16 plików&lt;br&gt;Firmy, użytkownicy, dane&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="245" y="420" width="155" height="50" as="geometry"/>
</mxCell>
<mxCell id="bp_forum" value="&lt;b&gt;Forum i społeczność&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Dyskusje, wiadomości&lt;br&gt;~68 tras&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="410" y="420" width="155" height="50" as="geometry"/>
</mxCell>
<mxCell id="bp_zopk" value="&lt;b&gt;ZOPK&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Baza wiedzy, timeline&lt;br&gt;~55 tras&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="575" y="420" width="155" height="50" as="geometry"/>
</mxCell>
<mxCell id="bp_chat" value="&lt;b&gt;Czat AI (NordaGPT)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Asystent AI, 9 tras&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="80" y="480" width="155" height="45" as="geometry"/>
</mxCell>
<mxCell id="bp_audit" value="&lt;b&gt;Audyt cyfrowy&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;SEO, IT, raporty&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="245" y="480" width="155" height="45" as="geometry"/>
</mxCell>
<mxCell id="bp_membership" value="&lt;b&gt;Członkostwo&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Składki, korzyści, edukacja&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="410" y="480" width="155" height="45" as="geometry"/>
</mxCell>
<mxCell id="bp_api" value="&lt;b&gt;API i autoryzacja&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;~73 tras, OAuth&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="575" y="480" width="155" height="45" as="geometry"/>
</mxCell>
<!-- === USŁUGI WEWNĘTRZNE === -->
<mxCell id="svc_header" value="&lt;b&gt;Usługi wewnętrzne&lt;/b&gt; (27 serwisów)" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;fontStyle=0;fontColor=#9673a6;" vertex="1" parent="1">
<mxGeometry x="80" y="540" width="210" height="20" as="geometry"/>
</mxCell>
<mxCell id="svc_search" value="&lt;b&gt;Wyszukiwarka&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;FTS + fuzzy + synonimy&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="80" y="565" width="145" height="42" as="geometry"/>
</mxCell>
<mxCell id="svc_gemini" value="&lt;b&gt;GeminiService&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Sztuczna inteligencja&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="235" y="565" width="145" height="42" as="geometry"/>
</mxCell>
<mxCell id="svc_chat" value="&lt;b&gt;NordaGPT&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Czat AI + kontekst firm&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="390" y="565" width="145" height="42" as="geometry"/>
</mxCell>
<mxCell id="svc_knowledge" value="&lt;b&gt;Bazy wiedzy&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Norda + ZOPK Knowledge&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="545" y="565" width="145" height="42" as="geometry"/>
</mxCell>
<mxCell id="svc_seo" value="&lt;b&gt;Audyt SEO&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;PageSpeed + CrUX + INP&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="80" y="617" width="145" height="42" as="geometry"/>
</mxCell>
<mxCell id="svc_gbp" value="&lt;b&gt;Google Moja Firma&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Places API, opinie&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="235" y="617" width="145" height="42" as="geometry"/>
</mxCell>
<mxCell id="svc_social" value="&lt;b&gt;Media społecznościowe&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;FB, IG, LI, YT, TikTok&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="390" y="617" width="145" height="42" as="geometry"/>
</mxCell>
<mxCell id="svc_benchmark" value="&lt;b&gt;Benchmarki&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Średnie per kategoria&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="545" y="617" width="145" height="42" as="geometry"/>
</mxCell>
<mxCell id="svc_email" value="&lt;b&gt;Poczta e-mail&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;MS Graph OAuth&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="80" y="669" width="145" height="42" as="geometry"/>
</mxCell>
<mxCell id="svc_krs" value="&lt;b&gt;KRS / CEIDG&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Rejestry firm&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="235" y="669" width="145" height="42" as="geometry"/>
</mxCell>
<mxCell id="svc_oauth" value="&lt;b&gt;OAuth 2.0&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Google + Meta&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="390" y="669" width="145" height="42" as="geometry"/>
</mxCell>
<mxCell id="svc_other" value="&lt;b&gt;Inne usługi&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Pliki, YouTube, monitoring&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="545" y="669" width="145" height="42" as="geometry"/>
</mxCell>
<!-- Auth/Security -->
<mxCell id="auth" value="&lt;b&gt;Bezpieczeństwo&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Flask-Login | CSRF | Rate Limiter (200/dzień, 50/godz.)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="80" y="725" width="310" height="40" as="geometry"/>
</mxCell>
<mxCell id="templates" value="&lt;b&gt;Szablony Jinja2&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;HTML5 + CSS3 + Vanilla JS&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="400" y="725" width="155" height="40" as="geometry"/>
</mxCell>
<mxCell id="sqlalchemy" value="&lt;b&gt;SQLAlchemy 2.0&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;ORM + modele danych&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#D4E1F5;strokeColor=#6c8ebf;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="565" y="725" width="155" height="40" as="geometry"/>
</mxCell>
<!-- PostgreSQL PRODUKCJA -->
<mxCell id="postgres" value="&lt;b style=&quot;font-size:13px&quot;&gt;PostgreSQL 14&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px;color:#555&quot;&gt;localhost:5432&lt;br&gt;Baza: nordabiz&lt;br&gt;40 tabel | 11 domen&lt;br&gt;pg_trgm + uuid-ossp&lt;/font&gt;" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=12;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=#333333;fontSize=11;" vertex="1" parent="1">
<mxGeometry x="800" y="370" width="180" height="120" as="geometry"/>
</mxCell>
<!-- DB Domains -->
<mxCell id="db_domains_label" value="&lt;b&gt;Domeny danych:&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=top;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=9;fontColor=#555;" vertex="1" parent="1">
<mxGeometry x="800" y="500" width="100" height="20" as="geometry"/>
</mxCell>
<mxCell id="db_core" value="&lt;font style=&quot;font-size:8px&quot;&gt;Firmy (9 tabel)&lt;br&gt;Treści (10 tabel)&lt;br&gt;Forum (7 tabel)&lt;br&gt;Czat AI (4 tabele)&lt;br&gt;Audyt (3 tabele)&lt;br&gt;Członkostwo (2)&lt;br&gt;Ogłoszenia (3)&lt;br&gt;Kalendarz (2)&lt;br&gt;+ 3 inne domeny&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontColor=#333333;fontSize=9;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="800" y="520" width="180" height="130" as="geometry"/>
</mxCell>
<!-- Zadania automatyczne (Cron) -->
<mxCell id="cron_label" value="&lt;b&gt;Zadania automatyczne&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;fontStyle=0;fontColor=#7f6000;" vertex="1" parent="1">
<mxGeometry x="800" y="665" width="160" height="20" as="geometry"/>
</mxCell>
<mxCell id="cron_box" value="&lt;font style=&quot;font-size:8px&quot;&gt;&#x23F0; Co godzinę: backup bazy&lt;br&gt;&#x23F0; Co godzinę: ZOPK ekstrakcja&lt;br&gt;&#x1F4C5; Codziennie: pełny backup&lt;br&gt;&#x1F4C5; Codziennie: sync PBS&lt;br&gt;&#x1F4C6; Miesięcznie: aktualizacja stron&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontColor=#333333;fontSize=9;align=left;spacingLeft=8;" vertex="1" parent="1">
<mxGeometry x="800" y="688" width="200" height="80" as="geometry"/>
</mxCell>
<!-- ==================== ZEWNĘTRZNE API ==================== -->
<mxCell id="zone_api" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f5f5f5;strokeColor=#999999;dashed=1;strokeWidth=1;opacity=40;" vertex="1" parent="1">
<mxGeometry x="1050" y="320" width="250" height="440" as="geometry"/>
</mxCell>
<mxCell id="zone_api_label" value="ZEWNĘTRZNE API" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;fontStyle=1;fontColor=#999999;" vertex="1" parent="1">
<mxGeometry x="1060" y="323" width="120" height="20" as="geometry"/>
</mxCell>
<mxCell id="api_gemini" value="&lt;b&gt;Google Gemini AI&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;gemini-3-flash (sztuczna inteligencja)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#4285F4;fontColor=#333333;fontSize=10;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="1070" y="350" width="210" height="38" as="geometry"/>
</mxCell>
<mxCell id="api_pagespeed" value="&lt;b&gt;Google PageSpeed&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Core Web Vitals + CrUX&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#4285F4;fontColor=#333333;fontSize=10;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="1070" y="398" width="210" height="38" as="geometry"/>
</mxCell>
<mxCell id="api_places" value="&lt;b&gt;Google Places API&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Google Moja Firma, opinie&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#4285F4;fontColor=#333333;fontSize=10;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="1070" y="446" width="210" height="38" as="geometry"/>
</mxCell>
<mxCell id="api_oauth" value="&lt;b&gt;Google OAuth 2.0&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;GBP + Search Console&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#34A853;fontColor=#333333;fontSize=10;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="1070" y="494" width="210" height="38" as="geometry"/>
</mxCell>
<mxCell id="api_brave" value="&lt;b&gt;Brave Search API&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Wiadomości + social media&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#FB542B;fontColor=#333333;fontSize=10;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="1070" y="542" width="210" height="38" as="geometry"/>
</mxCell>
<mxCell id="api_krs" value="&lt;b&gt;KRS / CEIDG API&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Publiczne rejestry firm&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#333333;fontColor=#333333;fontSize=10;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="1070" y="590" width="210" height="38" as="geometry"/>
</mxCell>
<mxCell id="api_msgraph" value="&lt;b&gt;Microsoft Graph&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Poczta e-mail (OAuth 2.0)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#00A4EF;fontColor=#333333;fontSize=10;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="1070" y="638" width="210" height="38" as="geometry"/>
</mxCell>
<mxCell id="api_youtube" value="&lt;b&gt;YouTube Data API v3&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;Statystyki kanałów&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff;strokeColor=#FF0000;fontColor=#333333;fontSize=10;strokeWidth=2;" vertex="1" parent="1">
<mxGeometry x="1070" y="686" width="210" height="38" as="geometry"/>
</mxCell>
<!-- ==================== STAGING ==================== -->
<mxCell id="zone_staging" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF8E1;strokeColor=#FF8F00;dashed=1;strokeWidth=2;opacity=40;" vertex="1" parent="1">
<mxGeometry x="40" y="910" width="540" height="150" as="geometry"/>
</mxCell>
<mxCell id="zone_staging_label" value="ŚRODOWISKO TESTOWE (STAGING) &amp;nbsp;|&amp;nbsp; VM 248 &amp;nbsp;|&amp;nbsp; 10.22.68.248 &amp;nbsp;|&amp;nbsp; staging.nordabiznes.pl" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;fontStyle=1;fontColor=#FF8F00;" vertex="1" parent="1">
<mxGeometry x="50" y="913" width="520" height="20" as="geometry"/>
</mxCell>
<mxCell id="staging_flask" value="&lt;b&gt;Flask + Gunicorn&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px;color:#555&quot;&gt;Kopia produkcji&lt;br&gt;Port 5000&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF8E1;strokeColor=#FF8F00;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="60" y="940" width="200" height="55" as="geometry"/>
</mxCell>
<mxCell id="staging_pg" value="&lt;b&gt;PostgreSQL&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px;color:#555&quot;&gt;nordabiz_staging&lt;br&gt;localhost:5432&lt;/font&gt;" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=8;fillColor=#FFF8E1;strokeColor=#FF8F00;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="290" y="938" width="130" height="60" as="geometry"/>
</mxCell>
<mxCell id="staging_note" value="&lt;font style=&quot;font-size:8px;color:#888&quot;&gt;Obowiązkowy test przed&lt;br&gt;wdrożeniem na produkcję!&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="440" y="950" width="130" height="40" as="geometry"/>
</mxCell>
<!-- Staging connection -->
<mxCell id="conn_staging_internal" style="rounded=1;strokeColor=#FF8F00;strokeWidth=1;" edge="1" source="staging_flask" target="staging_pg" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- ==================== STACJA DEWELOPERSKA ==================== -->
<mxCell id="zone_dev" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#4CAF50;dashed=1;strokeWidth=2;opacity=40;" vertex="1" parent="1">
<mxGeometry x="620" y="910" width="500" height="150" as="geometry"/>
</mxCell>
<mxCell id="zone_dev_label" value="STACJA DEWELOPERSKA &amp;nbsp;|&amp;nbsp; macOS &amp;nbsp;|&amp;nbsp; localhost" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;fontStyle=1;fontColor=#4CAF50;" vertex="1" parent="1">
<mxGeometry x="630" y="913" width="340" height="20" as="geometry"/>
</mxCell>
<mxCell id="dev_flask" value="&lt;b&gt;Flask dev server&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px;color:#555&quot;&gt;python3 app.py&lt;br&gt;Port 5000 / 5001&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#4CAF50;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="640" y="940" width="160" height="55" as="geometry"/>
</mxCell>
<mxCell id="dev_docker" value="&lt;b&gt;Docker PostgreSQL&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px;color:#555&quot;&gt;postgres:16&lt;br&gt;localhost:5433&lt;/font&gt;" style="shape=cylinder3;whiteSpace=wrap;html=1;boundedLbl=1;backgroundOutline=1;size=8;fillColor=#E8F5E9;strokeColor=#4CAF50;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="830" y="938" width="130" height="60" as="geometry"/>
</mxCell>
<mxCell id="dev_tools" value="&lt;font style=&quot;font-size:8px;color:#555&quot;&gt;VS Code + Claude Code&lt;br&gt;pytest | Docker Compose&lt;/font&gt;" style="text;html=1;align=center;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;" vertex="1" parent="1">
<mxGeometry x="980" y="950" width="130" height="40" as="geometry"/>
</mxCell>
<!-- Dev connection -->
<mxCell id="conn_dev_internal" style="rounded=1;strokeColor=#4CAF50;strokeWidth=1;" edge="1" source="dev_flask" target="dev_docker" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- ==================== REPOZYTORIA KODU ==================== -->
<mxCell id="zone_git" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ECEFF1;strokeColor=#78909C;dashed=1;strokeWidth=1;opacity=40;" vertex="1" parent="1">
<mxGeometry x="40" y="1090" width="1080" height="100" as="geometry"/>
</mxCell>
<mxCell id="zone_git_label" value="REPOZYTORIA KODU I WDROŻENIE" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=10;fontStyle=1;fontColor=#78909C;" vertex="1" parent="1">
<mxGeometry x="50" y="1093" width="220" height="20" as="geometry"/>
</mxCell>
<mxCell id="git_github" value="&lt;b&gt;GitHub&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;pienczyn/nordabiz&lt;br&gt;Backup w chmurze + CI/CD&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ECEFF1;strokeColor=#78909C;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="60" y="1120" width="180" height="50" as="geometry"/>
</mxCell>
<mxCell id="git_gitea" value="&lt;b&gt;Gitea (INPI)&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:8px&quot;&gt;10.22.68.180&lt;br&gt;Repozytorium wewnętrzne&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#ECEFF1;strokeColor=#78909C;fontColor=#333333;fontSize=10;" vertex="1" parent="1">
<mxGeometry x="270" y="1120" width="180" height="50" as="geometry"/>
</mxCell>
<!-- Deployment flow -->
<mxCell id="deploy_flow" value="&lt;b&gt;Przepływ wdrożenia:&lt;/b&gt;&lt;br&gt;&lt;font style=&quot;font-size:9px&quot;&gt;1. git push (origin + inpi) → 2. Wdrożenie na staging → 3. Test manualny → 4. git pull na produkcji → 5. Migracje SQL → 6. Restart serwisu&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E3F2FD;strokeColor=#1565C0;fontColor=#333333;fontSize=10;align=left;spacingLeft=10;" vertex="1" parent="1">
<mxGeometry x="480" y="1115" width="620" height="55" as="geometry"/>
</mxCell>
<!-- ==================== POŁĄCZENIA ==================== -->
<!-- Users → DNS -->
<mxCell id="conn_user_dns" style="edgeStyle=orthogonalEdgeStyle;rounded=1;strokeColor=#666666;strokeWidth=1;fontSize=9;fontColor=#888;" edge="1" source="users" target="dns" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- Users → FortiGate -->
<mxCell id="conn_user_fw" value="HTTPS :443" style="edgeStyle=orthogonalEdgeStyle;rounded=1;strokeColor=#b85450;strokeWidth=2;fontSize=9;fontColor=#b85450;" edge="1" source="users" target="fortigate" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- Admin → NPM -->
<mxCell id="conn_admin_npm" value="SSH + HTTPS" style="edgeStyle=orthogonalEdgeStyle;rounded=1;strokeColor=#d6b656;strokeWidth=1;fontSize=9;fontColor=#888;dashed=1;" edge="1" source="admin" target="npm" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- FortiGate → NPM -->
<mxCell id="conn_fw_npm" value="NAT → :443" style="edgeStyle=orthogonalEdgeStyle;rounded=1;strokeColor=#b85450;strokeWidth=2;fontSize=9;fontColor=#b85450;" edge="1" source="fortigate" target="npm" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- NPM → Flask PROD -->
<mxCell id="conn_npm_flask" value="HTTP :5000" style="edgeStyle=orthogonalEdgeStyle;rounded=1;strokeColor=#6c8ebf;strokeWidth=2;fontSize=9;fontColor=#6c8ebf;" edge="1" source="npm" target="flask" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- NPM → Flask STAGING -->
<mxCell id="conn_npm_staging" value="HTTP :5000" style="edgeStyle=orthogonalEdgeStyle;rounded=1;strokeColor=#FF8F00;strokeWidth=1;fontSize=9;fontColor=#FF8F00;dashed=1;" edge="1" source="npm" target="staging_flask" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- Flask → PostgreSQL -->
<mxCell id="conn_flask_pg" value="SQL :5432" style="edgeStyle=orthogonalEdgeStyle;rounded=1;strokeColor=#82b366;strokeWidth=2;fontSize=9;fontColor=#82b366;" edge="1" source="flask" target="postgres" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- Service → API connections -->
<mxCell id="conn_gemini" style="rounded=1;strokeColor=#4285F4;strokeWidth=1;dashed=1;" edge="1" source="svc_gemini" target="api_gemini" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="conn_seo_ps" style="rounded=1;strokeColor=#4285F4;strokeWidth=1;dashed=1;" edge="1" source="svc_seo" target="api_pagespeed" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="conn_gbp_places" style="rounded=1;strokeColor=#4285F4;strokeWidth=1;dashed=1;" edge="1" source="svc_gbp" target="api_places" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="conn_social_brave" style="rounded=1;strokeColor=#FB542B;strokeWidth=1;dashed=1;" edge="1" source="svc_social" target="api_brave" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="conn_krs_api" style="rounded=1;strokeColor=#333333;strokeWidth=1;dashed=1;" edge="1" source="svc_krs" target="api_krs" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="conn_email_ms" style="rounded=1;strokeColor=#00A4EF;strokeWidth=1;dashed=1;" edge="1" source="svc_email" target="api_msgraph" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="conn_oauth_google" style="rounded=1;strokeColor=#34A853;strokeWidth=1;dashed=1;" edge="1" source="svc_oauth" target="api_oauth" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- Deploy arrows: Dev → Git → Staging → Prod -->
<mxCell id="conn_dev_git" value="git push" style="edgeStyle=orthogonalEdgeStyle;rounded=1;strokeColor=#78909C;strokeWidth=1;fontSize=9;fontColor=#78909C;dashed=1;" edge="1" source="dev_flask" target="git_github" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="conn_git_staging" value="git pull" style="edgeStyle=orthogonalEdgeStyle;rounded=1;strokeColor=#FF8F00;strokeWidth=1;fontSize=9;fontColor=#FF8F00;dashed=1;" edge="1" source="git_gitea" target="staging_flask" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<mxCell id="conn_git_prod" value="git pull" style="edgeStyle=orthogonalEdgeStyle;rounded=1;strokeColor=#1565C0;strokeWidth=1;fontSize=9;fontColor=#1565C0;dashed=1;" edge="1" source="git_gitea" target="flask" parent="1">
<mxGeometry relative="1" as="geometry"/>
</mxCell>
<!-- ==================== LEGENDA ==================== -->
<mxCell id="legend_bg" value="" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fafafa;strokeColor=#cccccc;" vertex="1" parent="1">
<mxGeometry x="1160" y="910" width="155" height="195" as="geometry"/>
</mxCell>
<mxCell id="legend_title" value="&lt;b&gt;Legenda&lt;/b&gt;" style="text;html=1;align=left;verticalAlign=middle;resizable=0;points=[];autosize=1;strokeColor=none;fillColor=none;fontSize=11;fontColor=#333;" vertex="1" parent="1">
<mxGeometry x="1170" y="915" width="70" height="20" as="geometry"/>
</mxCell>
<mxCell id="legend_1" value="&lt;font style=&quot;font-size:9px&quot;&gt;Zapora sieciowa&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#f8cecc;strokeColor=#b85450;fontSize=8;" vertex="1" parent="1">
<mxGeometry x="1170" y="940" width="130" height="20" as="geometry"/>
</mxCell>
<mxCell id="legend_2" value="&lt;font style=&quot;font-size:9px&quot;&gt;Strefa DMZ / Proxy&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#fff2cc;strokeColor=#d6b656;fontSize=8;" vertex="1" parent="1">
<mxGeometry x="1170" y="965" width="130" height="20" as="geometry"/>
</mxCell>
<mxCell id="legend_3" value="&lt;font style=&quot;font-size:9px&quot;&gt;Aplikacja (produkcja)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#dae8fc;strokeColor=#6c8ebf;fontSize=8;" vertex="1" parent="1">
<mxGeometry x="1170" y="990" width="130" height="20" as="geometry"/>
</mxCell>
<mxCell id="legend_4" value="&lt;font style=&quot;font-size:9px&quot;&gt;Usługi wewnętrzne&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#e1d5e7;strokeColor=#9673a6;fontSize=8;" vertex="1" parent="1">
<mxGeometry x="1170" y="1015" width="130" height="20" as="geometry"/>
</mxCell>
<mxCell id="legend_5" value="&lt;font style=&quot;font-size:9px&quot;&gt;Baza danych&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#d5e8d4;strokeColor=#82b366;fontSize=8;" vertex="1" parent="1">
<mxGeometry x="1170" y="1040" width="130" height="20" as="geometry"/>
</mxCell>
<mxCell id="legend_6" value="&lt;font style=&quot;font-size:9px&quot;&gt;Staging (testowe)&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#FFF8E1;strokeColor=#FF8F00;fontSize=8;" vertex="1" parent="1">
<mxGeometry x="1170" y="1065" width="130" height="20" as="geometry"/>
</mxCell>
<mxCell id="legend_7" value="&lt;font style=&quot;font-size:9px&quot;&gt;Stacja deweloperska&lt;/font&gt;" style="rounded=1;whiteSpace=wrap;html=1;fillColor=#E8F5E9;strokeColor=#4CAF50;fontSize=8;" vertex="1" parent="1">
<mxGeometry x="1170" y="1090" width="130" height="20" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

View File

@ -0,0 +1,3 @@
<claude-mem-context>
</claude-mem-context>

3
docs/meetings/CLAUDE.md Normal file
View File

@ -0,0 +1,3 @@
<claude-mem-context>
</claude-mem-context>

3
docs/notes/CLAUDE.md Normal file
View File

@ -0,0 +1,3 @@
<claude-mem-context>
</claude-mem-context>

View File

@ -0,0 +1,103 @@
# Company Edit WYSIWYG + Live Preview
**Data:** 2026-02-18
**Status:** Approved
**Cel:** Usprawnienie UX edycji profilu firmy - dodanie edytora wizualnego i podglądu na żywo
## Problem
Obecny formularz edycji (`/firma/edytuj/<id>`) jest zbyt "surowy":
- Textarea z informacją "Dozwolone tagi HTML: `<p>`, `<strong>`..." - komunikat dla programisty
- Brak podglądu - użytkownik edytuje "na ślepo"
- Formularzowy layout bez wizualnego kontekstu
## Rozwiązanie
### 1. WYSIWYG Editor (Quill.js v2)
**Źródło:** CDN `cdn.jsdelivr.net/npm/quill@2/dist/quill.min.js`
**Pola z WYSIWYG:**
- `description_full` (Pełny opis działalności)
- `founding_history` (Historia i doświadczenie)
- `core_values` (Wartości i misja)
- `services_offered` (Oferowane usługi)
**Pola BEZ WYSIWYG (pozostają textarea/input):**
- `description_short` (500 znaków, plain text)
- `technologies_used` (zwykle lista, plain text)
- `operational_area`, `languages_offered` (krótkie text inputy)
**Konfiguracja toolbara:**
- Bold, Italic
- Lista numerowana, Lista punktowana
- Link (href)
- Wyczyść formatowanie
**Mechanizm:**
- Każda instancja Quill powiązana z ukrytym `<textarea name="...">`
- `onTextChange` synchronizuje HTML z Quill do textarea
- Formularz POST działa bez zmian - istniejący `sanitize_html()` z bleach waliduje output
### 2. Live Preview Panel
**Desktop (>1024px):** Split view 60% edytor / 40% preview
- Panel sticky (`position: sticky; top: 80px`)
- Scrolluje się niezależnie od formularza
- Aktualizacja na `text-change` z debounce 300ms
- Stylowanie identyczne jak `company_detail.html`
- Pokazuje sekcje odpowiadające aktywnej zakładce
**Mobile (<768px):** Formularz na 100% szerokości
- Sticky przycisk "Podgląd" u dołu ekranu
- Otwiera bottom sheet z podglądem profilu
- Przycisk zamknięcia wraca do edycji
### 3. Layout zmiana
**Przed:**
```
.ce-container (max-width: 860px, centered)
.ce-header
.ce-card
.ce-tabs
form
.ce-tab-content (active)
.ce-actions
```
**Po:**
```
.ce-container (max-width: 1400px, centered)
.ce-header
.ce-layout (display: grid, 60% / 40%)
.ce-card (formularz - lewa strona)
.ce-tabs
form
.ce-tab-content (active)
.ce-actions
.ce-preview (podgląd - prawa strona, sticky)
.preview-header (logo + nazwa)
.preview-section (aktualizowany live)
```
## Poza zakresem
- Auto-save / drafts
- Profile completeness indicator
- Inline editing na company_detail
- Zmiany w systemie uprawnień
- Zmiany w backendzie (routes, sanitization)
## Pliki do modyfikacji
| Plik | Zmiana |
|------|--------|
| `templates/company_edit.html` | Layout, Quill init, preview panel, responsive CSS |
| `templates/base.html` | (opcjonalnie) Quill CDN w head jeśli globalnie |
## Zależności
- Quill.js v2 (CDN, ~40KB gzipped)
- Quill Snow theme CSS (CDN)
- Zero zmian serwerowych

View File

@ -0,0 +1,810 @@
# Company Edit WYSIWYG + Live Preview — Implementation Plan
> **Status: ✅ UKOŃCZONY (2026-02-18)**
**Goal:** Dodać edytor wizualny Quill.js i panel podglądu na żywo do formularza edycji profilu firmy.
**Architecture:** Split-view layout (60% edytor / 40% preview) na desktopie, mobile bottom sheet. Quill.js v2 z CDN jako WYSIWYG dla 4 pól tekstowych (description_full, founding_history, core_values, services_offered). Preview panel ze sticky positioning, aktualizowany live via Quill `text-change` event.
**Tech Stack:** Quill.js v2 (CDN), Vanilla JS, CSS Grid, Jinja2
**Staging:** Wszystkie zmiany testowane na staging.nordabiznes.pl
---
## Ważne konteksty
### Blokady template w base.html
- `{% block extra_css %}` jest WEWNĄTRZ `<style>` (linia 1251)
- `{% block extra_js %}` jest WEWNĄTRZ `<script>` (linia 2024)
- **NIE MOŻNA** dodać `<link>` ani `<script src>` w tych blokach!
- Rozwiązanie: nowy `{% block head_extra %}` po `</style>` w base.html
### Pola z WYSIWYG
| Pole | Zakładka | Obecny element |
|------|----------|---------------|
| `description_full` | Opis | `<textarea id="description_full" rows="10">` |
| `founding_history` | Opis | `<textarea id="founding_history" rows="5">` |
| `core_values` | Opis | `<textarea id="core_values" rows="4">` |
| `services_offered` | Usługi | `<textarea id="services_offered" rows="8">` |
### Pola BEZ WYSIWYG (bez zmian)
- `description_short` (plain text, 500 znaków)
- `technologies_used`, `operational_area`, `languages_offered` (krótkie pola)
---
## Task 1: Dodać `{% block head_extra %}` do base.html
**Files:**
- Modify: `templates/base.html:1252` (po `</style>`, przed `</head>`)
**Step 1: Dodaj nowy block w base.html**
W `templates/base.html`, po linii 1252 (`</style>`), przed linią z analytics script, dodaj:
```html
{% block head_extra %}{% endblock %}
```
To pozwala child templates dodawać zewnętrzne `<link>` i `<script>` tagi.
**Step 2: Zweryfikuj że nic się nie zepsuło**
Uruchom lokalnie: `python3 app.py` i sprawdź główną stronę `/` — nowy empty block nie powinien nic zmienić.
**Step 3: Commit**
```bash
git add templates/base.html
git commit -m "feat: add head_extra block to base.html for external CSS/JS"
```
---
## Task 2: Załadować Quill.js CDN w company_edit.html
**Files:**
- Modify: `templates/company_edit.html` (dodać block head_extra)
**Step 1: Dodaj block head_extra z Quill CDN**
Na początku pliku, po `{% block title %}...{% endblock %}` a przed `{% block extra_css %}`, dodaj:
```html
{% block head_extra %}
<link href="https://cdn.jsdelivr.net/npm/quill@2.0.3/dist/quill.snow.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/quill@2.0.3/dist/quill.js"></script>
{% endblock %}
```
**Step 2: Zweryfikuj ładowanie**
Uruchom lokalnie, otwórz `/firma/edytuj/<id>`, w DevTools Console wpisz `typeof Quill` — powinno zwrócić `"function"`.
**Step 3: Commit**
```bash
git add templates/company_edit.html
git commit -m "feat: load Quill.js CDN in company edit template"
```
---
## Task 3: Zmienić layout na grid 60/40 z panelem preview
**Files:**
- Modify: `templates/company_edit.html` (CSS + HTML structure)
**Step 1: Zmień CSS layout**
W sekcji `{% block extra_css %}`, zmień:
```css
.ce-container {
max-width: 860px;
margin: 0 auto;
padding: var(--spacing-md) var(--spacing-lg);
}
```
na:
```css
.ce-container {
max-width: 1400px;
margin: 0 auto;
padding: var(--spacing-md) var(--spacing-lg);
}
/* Split layout: editor + preview */
.ce-layout {
display: grid;
grid-template-columns: 1fr 380px;
gap: var(--spacing-lg);
align-items: start;
}
/* Preview panel */
.ce-preview {
position: sticky;
top: 80px;
max-height: calc(100vh - 100px);
overflow-y: auto;
background: var(--surface, #fff);
border-radius: var(--radius-lg, 0.75rem);
box-shadow: var(--shadow);
padding: var(--spacing-lg);
}
.ce-preview-title {
font-size: var(--font-size-sm);
font-weight: 600;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: var(--spacing-md);
padding-bottom: var(--spacing-sm);
border-bottom: 1px solid var(--border, #e0e4eb);
display: flex;
align-items: center;
gap: var(--spacing-sm);
}
.ce-preview-title svg { width: 16px; height: 16px; }
/* Preview sections - match company_detail.html styling */
.preview-company-name {
font-size: var(--font-size-xl, 1.25rem);
font-weight: 700;
color: var(--text-primary, #303030);
margin-bottom: var(--spacing-sm);
}
.preview-short-desc {
font-size: var(--font-size-sm);
color: var(--text-secondary, #464646);
margin-bottom: var(--spacing-lg);
font-style: italic;
}
.preview-section {
margin-bottom: var(--spacing-lg);
padding-bottom: var(--spacing-md);
border-bottom: 1px solid var(--border, #e0e4eb);
}
.preview-section:last-child {
border-bottom: none;
margin-bottom: 0;
padding-bottom: 0;
}
.preview-section-label {
font-size: var(--font-size-sm);
font-weight: 600;
color: var(--primary, #2E4872);
margin-bottom: var(--spacing-sm);
}
.preview-section-content {
font-size: var(--font-size-sm);
color: var(--text-primary, #303030);
line-height: 1.7;
}
.preview-section-content p { margin-bottom: var(--spacing-sm); }
.preview-section-content ul, .preview-section-content ol {
padding-left: var(--spacing-lg);
margin-bottom: var(--spacing-sm);
}
.preview-section-content li { margin-bottom: 2px; }
.preview-section-content a { color: var(--primary, #2E4872); }
.preview-section-content strong { font-weight: 600; }
.preview-empty {
color: var(--text-secondary, #464646);
font-style: italic;
font-size: var(--font-size-sm);
opacity: 0.6;
}
/* Preview contact items */
.preview-contact-item {
display: flex;
align-items: center;
gap: var(--spacing-sm);
font-size: var(--font-size-sm);
margin-bottom: var(--spacing-xs);
}
.preview-contact-item svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }
/* Preview social icons */
.preview-social-item {
display: inline-flex;
align-items: center;
gap: 4px;
font-size: var(--font-size-sm);
color: var(--primary, #2E4872);
margin-right: var(--spacing-md);
margin-bottom: var(--spacing-xs);
}
```
**Step 2: Dodaj responsive CSS (mobile)**
Zamień istniejący `@media (max-width: 768px)` na:
```css
@media (max-width: 1024px) {
.ce-layout {
grid-template-columns: 1fr;
}
.ce-preview {
display: none;
}
.ce-preview-mobile-btn {
display: flex;
}
}
@media (max-width: 768px) {
.ce-header { flex-direction: column; text-align: center; }
.ce-header-actions { margin-left: 0; }
.ce-card .form-row { grid-template-columns: 1fr; }
.contact-row, .social-row { flex-wrap: wrap; }
.contact-type-select, .social-platform-select { flex: 1 1 100%; }
.contact-purpose-input { flex: 1 1 100%; }
.ce-tab { padding: var(--spacing-sm) var(--spacing-md); font-size: 13px; }
.ce-tab span.tab-label { display: none; }
}
```
Dodaj CSS dla mobile preview button i bottom sheet:
```css
/* Mobile preview button & bottom sheet */
.ce-preview-mobile-btn {
display: none;
position: fixed;
bottom: var(--spacing-lg);
right: var(--spacing-lg);
z-index: 900;
padding: 12px 20px;
background: var(--primary, #2E4872);
color: white;
border: none;
border-radius: 50px;
font-size: var(--font-size-sm);
font-weight: 600;
font-family: var(--font-family);
cursor: pointer;
box-shadow: 0 4px 12px rgba(46, 72, 114, 0.3);
align-items: center;
gap: var(--spacing-sm);
transition: all 0.2s;
}
.ce-preview-mobile-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(46, 72, 114, 0.4);
}
.ce-preview-mobile-btn svg { width: 18px; height: 18px; }
.ce-preview-sheet-overlay {
display: none;
position: fixed;
top: 0; left: 0; right: 0; bottom: 0;
background: rgba(0,0,0,0.5);
z-index: 1100;
}
.ce-preview-sheet-overlay.active { display: block; }
.ce-preview-sheet {
position: fixed;
bottom: 0; left: 0; right: 0;
max-height: 80vh;
background: var(--surface, #fff);
border-radius: var(--radius-lg) var(--radius-lg) 0 0;
box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
z-index: 1200;
overflow-y: auto;
padding: var(--spacing-lg);
transform: translateY(100%);
transition: transform 0.3s ease;
}
.ce-preview-sheet-overlay.active .ce-preview-sheet {
transform: translateY(0);
}
.ce-preview-sheet-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: var(--spacing-md);
padding-bottom: var(--spacing-sm);
border-bottom: 1px solid var(--border, #e0e4eb);
}
.ce-preview-sheet-close {
background: none;
border: 1px solid var(--border, #e0e4eb);
border-radius: var(--radius);
padding: 6px 12px;
cursor: pointer;
font-size: var(--font-size-sm);
font-family: var(--font-family);
color: var(--text-secondary);
}
```
**Step 3: Zmień HTML structure**
W `{% block content %}`, zamień fragment od `<!-- Main card -->` do końca formularza. Owiń `.ce-card` i nowy `.ce-preview` w `.ce-layout`:
```html
<!-- Layout: Editor + Preview -->
<div class="ce-layout">
<!-- Left: Edit form -->
<div class="ce-card">
<!-- Tabs -->
...istniejące tabs i form bez zmian...
</div>
<!-- Right: Live Preview -->
<div class="ce-preview" id="livePreview">
<div class="ce-preview-title">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>
Podgląd profilu
</div>
<div class="preview-company-name">{{ company.name }}</div>
<div class="preview-short-desc" id="previewShortDesc">{{ company.description_short or 'Brak krótkiego opisu' }}</div>
<div class="preview-section" id="previewDescriptionSection">
<div class="preview-section-label">Opis firmy</div>
<div class="preview-section-content" id="previewDescFull">
{% if company.description_full %}{{ company.description_full | safe }}{% else %}<span class="preview-empty">Uzupełnij opis firmy...</span>{% endif %}
</div>
</div>
<div class="preview-section" id="previewHistorySection">
<div class="preview-section-label">Historia i doświadczenie</div>
<div class="preview-section-content" id="previewHistory">
{% if company.founding_history %}{{ company.founding_history | safe }}{% else %}<span class="preview-empty">Uzupełnij historię...</span>{% endif %}
</div>
</div>
<div class="preview-section" id="previewValuesSection">
<div class="preview-section-label">Wartości i misja</div>
<div class="preview-section-content" id="previewValues">
{% if company.core_values %}{{ company.core_values | safe }}{% else %}<span class="preview-empty">Uzupełnij wartości...</span>{% endif %}
</div>
</div>
<div class="preview-section" id="previewServicesSection">
<div class="preview-section-label">Oferowane usługi</div>
<div class="preview-section-content" id="previewServices">
{% if company.services_offered %}{{ company.services_offered | safe }}{% else %}<span class="preview-empty">Uzupełnij usługi...</span>{% endif %}
</div>
</div>
<div class="preview-section" id="previewContactSection">
<div class="preview-section-label">Dane kontaktowe</div>
<div class="preview-section-content" id="previewContact">
{% if company.email %}<div class="preview-contact-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/></svg>{{ company.email }}</div>{% endif %}
{% if company.phone %}<div class="preview-contact-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z"/></svg>{{ company.phone }}</div>{% endif %}
{% if company.website %}<div class="preview-contact-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="2" y1="12" x2="22" y2="12"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>{{ company.website }}</div>{% endif %}
</div>
</div>
<div class="preview-section" id="previewSocialSection">
<div class="preview-section-label">Social Media</div>
<div class="preview-section-content" id="previewSocial">
{% for sm in social_media %}
<span class="preview-social-item">{{ sm.platform | capitalize }}</span>
{% endfor %}
{% if not social_media %}<span class="preview-empty">Brak profili social media</span>{% endif %}
</div>
</div>
</div>
</div><!-- /.ce-layout -->
<!-- Mobile preview button -->
<button type="button" class="ce-preview-mobile-btn" id="mobilePreviewBtn" onclick="openMobilePreview()">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>
Podgląd
</button>
<!-- Mobile preview sheet -->
<div class="ce-preview-sheet-overlay" id="previewSheetOverlay">
<div class="ce-preview-sheet" id="previewSheet">
<div class="ce-preview-sheet-header">
<span style="font-weight: 600;">Podgląd profilu</span>
<button type="button" class="ce-preview-sheet-close" onclick="closeMobilePreview()">Zamknij</button>
</div>
<div id="mobilePreviewContent">
<!-- Populated dynamically from desktop preview -->
</div>
</div>
</div>
```
**Step 4: Zweryfikuj layout**
Uruchom lokalnie, otwórz `/firma/edytuj/<id>`:
- Desktop: formularz po lewej (60%), preview po prawej (40%)
- Resize do <1024px: preview znika, pojawia się floating button "Podgląd"
**Step 5: Commit**
```bash
git add templates/company_edit.html
git commit -m "feat: split layout with live preview panel for company edit"
```
---
## Task 4: Zamienić textareas na Quill.js edytory
**Files:**
- Modify: `templates/company_edit.html` (HTML formularza + JS inicjalizacja)
**Step 1: Dodaj CSS dla Quill kontenerów**
W sekcji `{% block extra_css %}` dodaj:
```css
/* Quill editor overrides */
.quill-container {
border: 1px solid var(--border, #e0e4eb);
border-radius: var(--radius, 0.5rem);
overflow: hidden;
background: var(--surface, #fff);
transition: var(--transition);
}
.quill-container:focus-within {
border-color: var(--primary, #2E4872);
box-shadow: 0 0 0 3px rgba(46, 72, 114, 0.1);
}
.quill-container .ql-toolbar {
border: none !important;
border-bottom: 1px solid var(--border, #e0e4eb) !important;
background: var(--background, #EDF0F5);
font-family: var(--font-family) !important;
}
.quill-container .ql-container {
border: none !important;
font-family: var(--font-family) !important;
font-size: var(--font-size-base, 1rem) !important;
}
.quill-container .ql-editor {
min-height: 120px;
line-height: 1.7;
color: var(--text-primary, #303030);
}
.quill-container .ql-editor.ql-blank::before {
color: var(--text-secondary, #464646);
opacity: 0.5;
font-style: italic;
}
.quill-container.quill-tall .ql-editor {
min-height: 200px;
}
fieldset[disabled] .quill-container {
opacity: 0.5;
pointer-events: none;
}
```
**Step 2: Zamień textarea na Quill kontener + hidden textarea dla description_full**
Zastąp obecny fragment:
```html
<div class="form-group">
<label for="description_full" class="form-label">Pełny opis działalności</label>
<textarea id="description_full" name="description_full" class="form-input" rows="10" placeholder="Szczegółowy opis tego czym zajmuje się firma, jakie ma doświadczenie i co ją wyróżnia...">{{ company.description_full or '' }}</textarea>
<p class="form-help">Główny opis na stronie profilu firmy. Dozwolone tagi HTML: &lt;p&gt;, &lt;strong&gt;, &lt;em&gt;, &lt;ul&gt;, &lt;li&gt;, &lt;a&gt;</p>
</div>
```
na:
```html
<div class="form-group">
<label class="form-label">Pełny opis działalności</label>
<div class="quill-container quill-tall" id="quill-description_full"></div>
<textarea id="description_full" name="description_full" style="display:none;">{{ company.description_full or '' }}</textarea>
<p class="form-help">Użyj paska narzędzi do formatowania tekstu</p>
</div>
```
**Step 3: Powtórz dla founding_history, core_values, services_offered**
Analogicznie zamień textareas na Quill kontenery dla:
`founding_history`:
```html
<div class="form-group">
<label class="form-label">Historia i doświadczenie</label>
<div class="quill-container" id="quill-founding_history"></div>
<textarea id="founding_history" name="founding_history" style="display:none;">{{ company.founding_history or '' }}</textarea>
</div>
```
`core_values`:
```html
<div class="form-group">
<label class="form-label">Wartości i misja</label>
<div class="quill-container" id="quill-core_values"></div>
<textarea id="core_values" name="core_values" style="display:none;">{{ company.core_values or '' }}</textarea>
</div>
```
`services_offered` (w zakładce Usługi):
```html
<div class="form-group">
<label class="form-label">Oferowane usługi i produkty</label>
<div class="quill-container quill-tall" id="quill-services_offered"></div>
<textarea id="services_offered" name="services_offered" style="display:none;">{{ company.services_offered or '' }}</textarea>
<p class="form-help">Lista usług pomagająca klientom znaleźć Twoją firmę</p>
</div>
```
**Step 4: Dodaj JS inicjalizacji Quill w `{% block extra_js %}`**
Na początku bloku `extra_js` (przed istniejącym kodem tab switching), dodaj:
```javascript
// ============================================
// Quill.js WYSIWYG Initialization
// ============================================
var quillInstances = {};
var QUILL_TOOLBAR = [
['bold', 'italic'],
[{ 'list': 'ordered'}, { 'list': 'bullet' }],
['link'],
['clean']
];
function initQuillEditor(fieldName, placeholder) {
var container = document.getElementById('quill-' + fieldName);
var textarea = document.getElementById(fieldName);
if (!container || !textarea) return null;
var quill = new Quill(container, {
theme: 'snow',
modules: { toolbar: QUILL_TOOLBAR },
placeholder: placeholder || 'Wpisz tekst...'
});
// Load existing content from textarea
var existing = textarea.value.trim();
if (existing) {
quill.root.innerHTML = existing;
}
// Sync to hidden textarea on every change
quill.on('text-change', function() {
var html = quill.root.innerHTML;
// Quill sets empty content as <p><br></p>
textarea.value = (html === '<p><br></p>') ? '' : html;
updatePreview(fieldName, textarea.value);
});
quillInstances[fieldName] = quill;
return quill;
}
// Initialize all Quill editors (only if Quill loaded)
if (typeof Quill !== 'undefined') {
initQuillEditor('description_full', 'Szczegółowy opis tego czym zajmuje się firma...');
initQuillEditor('founding_history', 'Kiedy firma powstała, jakie ma doświadczenie...');
initQuillEditor('core_values', 'Kluczowe wartości firmy, misja...');
initQuillEditor('services_offered', 'Wymień główne usługi i produkty...');
}
```
**Step 5: Zweryfikuj edytor**
Uruchom lokalnie:
- 4 pola mają pasek narzędzi (Bold, Italic, Lista, Link, Wyczyść)
- Istniejąca treść jest załadowana
- Po edycji i kliknięciu "Zapisz" — treść zapisuje się poprawnie (hidden textarea sync)
**Step 6: Commit**
```bash
git add templates/company_edit.html
git commit -m "feat: replace textareas with Quill.js WYSIWYG editors"
```
---
## Task 5: Podłączyć live preview do edytorów
**Files:**
- Modify: `templates/company_edit.html` (JS w bloku extra_js)
**Step 1: Dodaj funkcję updatePreview i podłącz zwykłe pola**
W bloku `extra_js`, dodaj po inicjalizacji Quill:
```javascript
// ============================================
// Live Preview Updates
// ============================================
var previewDebounceTimers = {};
function updatePreview(fieldName, value) {
clearTimeout(previewDebounceTimers[fieldName]);
previewDebounceTimers[fieldName] = setTimeout(function() {
doUpdatePreview(fieldName, value);
}, 300);
}
function doUpdatePreview(fieldName, value) {
var mapping = {
'description_short': 'previewShortDesc',
'description_full': 'previewDescFull',
'founding_history': 'previewHistory',
'core_values': 'previewValues',
'services_offered': 'previewServices'
};
var emptyTexts = {
'description_short': 'Brak krótkiego opisu',
'description_full': 'Uzupełnij opis firmy...',
'founding_history': 'Uzupełnij historię...',
'core_values': 'Uzupełnij wartości...',
'services_offered': 'Uzupełnij usługi...'
};
var targetId = mapping[fieldName];
if (!targetId) return;
var el = document.getElementById(targetId);
if (!el) return;
if (value && value.trim() && value !== '<p><br></p>') {
el.innerHTML = value;
el.classList.remove('preview-empty');
} else {
el.innerHTML = '<span class="preview-empty">' + (emptyTexts[fieldName] || '') + '</span>';
}
}
// Hook plain text fields to preview
var shortDescField = document.getElementById('description_short');
if (shortDescField) {
shortDescField.addEventListener('input', function() {
updatePreview('description_short', this.value);
});
}
// Hook contact fields to preview
function updateContactPreview() {
var email = (document.getElementById('email') || {}).value || '';
var phone = (document.getElementById('phone') || {}).value || '';
var el = document.getElementById('previewContact');
if (!el) return;
var html = '';
if (email) html += '<div class="preview-contact-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/></svg>' + email + '</div>';
if (phone) html += '<div class="preview-contact-item"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7A2 2 0 0 1 22 16.92z"/></svg>' + phone + '</div>';
el.innerHTML = html || '<span class="preview-empty">Brak danych kontaktowych</span>';
}
['email', 'phone'].forEach(function(id) {
var field = document.getElementById(id);
if (field) field.addEventListener('input', updateContactPreview);
});
```
**Step 2: Dodaj logikę podświetlania aktywnej sekcji w preview**
Rozszerz istniejący tab switching handler — gdy użytkownik zmienia zakładkę, podświetl odpowiednią sekcję preview:
```javascript
// Highlight preview section matching active tab
function highlightPreviewTab(tabName) {
var sections = document.querySelectorAll('.ce-preview .preview-section');
sections.forEach(function(s) { s.style.opacity = '0.4'; s.style.transition = 'opacity 0.3s'; });
var tabToSections = {
'description': ['previewDescriptionSection', 'previewHistorySection', 'previewValuesSection'],
'services': ['previewServicesSection'],
'contacts': ['previewContactSection'],
'social': ['previewSocialSection']
};
var active = tabToSections[tabName] || [];
active.forEach(function(id) {
var el = document.getElementById(id);
if (el) el.style.opacity = '1';
});
// Visibility tab — show all
if (tabName === 'visibility') {
sections.forEach(function(s) { s.style.opacity = '1'; });
}
}
```
W istniejącym tab switching callback (w `tabs.forEach(function(tab)...`), dodaj wywołanie `highlightPreviewTab(target)` po przełączeniu.
**Step 3: Dodaj mobile preview JS**
```javascript
// Mobile preview
function openMobilePreview() {
var mobileContent = document.getElementById('mobilePreviewContent');
var desktopPreview = document.getElementById('livePreview');
if (mobileContent && desktopPreview) {
// Clone preview content (skip the title)
var clone = desktopPreview.cloneNode(true);
var title = clone.querySelector('.ce-preview-title');
if (title) title.remove();
mobileContent.innerHTML = clone.innerHTML;
}
document.getElementById('previewSheetOverlay').classList.add('active');
document.body.style.overflow = 'hidden';
}
function closeMobilePreview() {
document.getElementById('previewSheetOverlay').classList.remove('active');
document.body.style.overflow = '';
}
// Close on overlay click
var overlay = document.getElementById('previewSheetOverlay');
if (overlay) {
overlay.addEventListener('click', function(e) {
if (e.target === this) closeMobilePreview();
});
}
```
**Step 4: Zweryfikuj preview**
- Wpisz tekst w WYSIWYG → preview aktualizuje się po 300ms
- Zmień email/telefon → preview kontaktu się aktualizuje
- Przełącz zakładki → odpowiednie sekcje preview się podświetlają
- Na mobile → przycisk "Podgląd" otwiera bottom sheet z aktualną treścią
**Step 5: Commit**
```bash
git add templates/company_edit.html
git commit -m "feat: connect live preview to WYSIWYG editors and form fields"
```
---
## Task 6: Deploy na staging i weryfikacja
**Files:** Brak zmian w plikach
**Step 1: Push do repozytoriów**
```bash
git push origin master && git push inpi master
```
**Step 2: Deploy na staging**
```bash
ssh maciejpi@10.22.68.248 "cd /var/www/nordabiznes && sudo -u www-data git pull && sudo systemctl restart nordabiznes"
```
**Step 3: Weryfikacja na staging**
Otwórz `https://staging.nordabiznes.pl` w przeglądarce:
1. Zaloguj się jako admin/manager
2. Przejdź do `/firma/edytuj/<id>` dowolnej firmy
3. Sprawdź:
- [ ] Quill toolbar widoczny dla 4 pól (opis, historia, wartości, usługi)
- [ ] Istniejąca treść załadowana w edytorach
- [ ] Formatowanie działa (bold, italic, listy, linki)
- [ ] Preview panel po prawej stronie (desktop)
- [ ] Preview aktualizuje się live podczas pisania
- [ ] Przełączanie zakładek podświetla sekcje preview
- [ ] Zapis formularza działa poprawnie (treść z Quill trafia do bazy)
- [ ] Po zapisie i ponownym otwarciu — formatowanie zachowane
- [ ] Na mobile (<1024px): preview ukryty, floating button "Podgląd" widoczny
- [ ] Kliknięcie "Podgląd" na mobile otwiera bottom sheet
- [ ] Zakładka "Widoczność" działa bez zmian (AJAX toggle)
- [ ] Tab "Kontakt" i "Social Media" działają bez zmian
**Step 4: Commit ewentualnych poprawek po testach**
Jeśli znaleziono problemy, napraw i powtórz deploy.
---
## Podsumowanie zmian
| Plik | Typ zmiany | Opis |
|------|-----------|------|
| `templates/base.html` | 1 linia | Nowy `{% block head_extra %}` po `</style>` |
| `templates/company_edit.html` | CSS + HTML + JS | Layout grid, Quill init, preview panel, mobile sheet |
**Zero zmian backendowych** — routes, models, sanitization bez zmian.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 63 KiB

File diff suppressed because it is too large Load Diff

1
node_modules/.bin/semver generated vendored Symbolic link
View File

@ -0,0 +1 @@
../semver/bin/semver.js

118
node_modules/.package-lock.json generated vendored Normal file
View File

@ -0,0 +1,118 @@
{
"lockfileVersion": 3,
"requires": true,
"packages": {
"node_modules/@img/colour": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@img/colour/-/colour-1.0.0.tgz",
"integrity": "sha512-A5P/LfWGFSl6nsckYtjw9da+19jB8hkJ6ACTGcDfEJ0aE+l2n2El7dsVM7UVHZQ9s2lmYMWlrS21YLy2IR1LUw==",
"license": "MIT",
"engines": {
"node": ">=18"
}
},
"node_modules/@img/sharp-darwin-arm64": {
"version": "0.34.5",
"resolved": "https://registry.npmjs.org/@img/sharp-darwin-arm64/-/sharp-darwin-arm64-0.34.5.tgz",
"integrity": "sha512-imtQ3WMJXbMY4fxb/Ndp6HBTNVtWCUI0WdobyheGf5+ad6xX8VIDO8u2xE4qc/fr08CKG/7dDseFtn6M6g/r3w==",
"cpu": [
"arm64"
],
"license": "Apache-2.0",
"optional": true,
"os": [
"darwin"
],
"engines": {
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
},
"funding": {
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
"@img/sharp-libvips-darwin-arm64": "1.2.4"
}
},
"node_modules/@img/sharp-libvips-darwin-arm64": {
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/@img/sharp-libvips-darwin-arm64/-/sharp-libvips-darwin-arm64-1.2.4.tgz",
"integrity": "sha512-zqjjo7RatFfFoP0MkQ51jfuFZBnVE2pRiaydKJ1G/rHZvnsrHAOcQALIi9sA5co5xenQdTugCvtb1cuf78Vf4g==",
"cpu": [
"arm64"
],
"license": "LGPL-3.0-or-later",
"optional": true,
"os": [
"darwin"
],
"funding": {
"url": "https://opencollective.com/libvips"
}
},
"node_modules/detect-libc": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
"integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",
"license": "Apache-2.0",
"engines": {
"node": ">=8"
}
},
"node_modules/semver": {
"version": "7.7.4",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",
"integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",
"license": "ISC",
"bin": {
"semver": "bin/semver.js"
},
"engines": {
"node": ">=10"
}
},
"node_modules/sharp": {
"version": "0.34.5",
"resolved": "https://registry.npmjs.org/sharp/-/sharp-0.34.5.tgz",
"integrity": "sha512-Ou9I5Ft9WNcCbXrU9cMgPBcCK8LiwLqcbywW3t4oDV37n1pzpuNLsYiAV8eODnjbtQlSDwZ2cUEeQz4E54Hltg==",
"hasInstallScript": true,
"license": "Apache-2.0",
"dependencies": {
"@img/colour": "^1.0.0",
"detect-libc": "^2.1.2",
"semver": "^7.7.3"
},
"engines": {
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
},
"funding": {
"url": "https://opencollective.com/libvips"
},
"optionalDependencies": {
"@img/sharp-darwin-arm64": "0.34.5",
"@img/sharp-darwin-x64": "0.34.5",
"@img/sharp-libvips-darwin-arm64": "1.2.4",
"@img/sharp-libvips-darwin-x64": "1.2.4",
"@img/sharp-libvips-linux-arm": "1.2.4",
"@img/sharp-libvips-linux-arm64": "1.2.4",
"@img/sharp-libvips-linux-ppc64": "1.2.4",
"@img/sharp-libvips-linux-riscv64": "1.2.4",
"@img/sharp-libvips-linux-s390x": "1.2.4",
"@img/sharp-libvips-linux-x64": "1.2.4",
"@img/sharp-libvips-linuxmusl-arm64": "1.2.4",
"@img/sharp-libvips-linuxmusl-x64": "1.2.4",
"@img/sharp-linux-arm": "0.34.5",
"@img/sharp-linux-arm64": "0.34.5",
"@img/sharp-linux-ppc64": "0.34.5",
"@img/sharp-linux-riscv64": "0.34.5",
"@img/sharp-linux-s390x": "0.34.5",
"@img/sharp-linux-x64": "0.34.5",
"@img/sharp-linuxmusl-arm64": "0.34.5",
"@img/sharp-linuxmusl-x64": "0.34.5",
"@img/sharp-wasm32": "0.34.5",
"@img/sharp-win32-arm64": "0.34.5",
"@img/sharp-win32-ia32": "0.34.5",
"@img/sharp-win32-x64": "0.34.5"
}
}
}
}

82
node_modules/@img/colour/LICENSE.md generated vendored Normal file
View File

@ -0,0 +1,82 @@
# Licensing
## color
Copyright (c) 2012 Heather Arthur
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
## color-convert
Copyright (c) 2011-2016 Heather Arthur <fayearthur@gmail.com>.
Copyright (c) 2016-2021 Josh Junon <josh@junon.me>.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
## color-string
Copyright (c) 2011 Heather Arthur <fayearthur@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
## color-name
The MIT License (MIT)
Copyright (c) 2015 Dmitry Ivanov
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

15
node_modules/@img/colour/README.md generated vendored Normal file
View File

@ -0,0 +1,15 @@
# `@img/colour`
The latest version of the
[color](https://www.npmjs.com/package/color)
package is now ESM-only,
however some JavaScript runtimes do not yet support this,
which includes versions of Node.js prior to 20.19.0.
This package converts the `color` package and its dependencies,
all of which are MIT-licensed, to CommonJS.
- [color](https://www.npmjs.com/package/color)
- [color-convert](https://www.npmjs.com/package/color-convert)
- [color-string](https://www.npmjs.com/package/color-string)
- [color-name](https://www.npmjs.com/package/color-name)

1594
node_modules/@img/colour/color.cjs generated vendored Normal file

File diff suppressed because it is too large Load Diff

1
node_modules/@img/colour/index.cjs generated vendored Normal file
View File

@ -0,0 +1 @@
module.exports = require("./color.cjs").default;

45
node_modules/@img/colour/package.json generated vendored Normal file
View File

@ -0,0 +1,45 @@
{
"name": "@img/colour",
"version": "1.0.0",
"description": "The ESM-only 'color' package made compatible for use with CommonJS runtimes",
"license": "MIT",
"main": "index.cjs",
"authors": [
"Heather Arthur <fayearthur@gmail.com>",
"Josh Junon <josh@junon.me>",
"Maxime Thirouin",
"Dyma Ywanov <dfcreative@gmail.com>",
"LitoMore (https://github.com/LitoMore)"
],
"engines": {
"node": ">=18"
},
"files": [
"color.cjs"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/lovell/colour.git"
},
"type": "commonjs",
"keywords": [
"color",
"colour",
"cjs",
"commonjs"
],
"scripts": {
"build": "esbuild node_modules/color/index.js --bundle --platform=node --outfile=color.cjs",
"test": "node --test"
},
"devDependencies": {
"color": "5.0.0",
"color-convert": "3.1.0",
"color-name": "2.0.0",
"color-string": "2.1.0",
"esbuild": "^0.25.9"
}
}

191
node_modules/@img/sharp-darwin-arm64/LICENSE generated vendored Normal file
View File

@ -0,0 +1,191 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and
distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright
owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities
that control, are controlled by, or are under common control with that entity.
For the purposes of this definition, "control" means (i) the power, direct or
indirect, to cause the direction or management of such entity, whether by
contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising
permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including
but not limited to software source code, documentation source, and configuration
files.
"Object" form shall mean any form resulting from mechanical transformation or
translation of a Source form, including but not limited to compiled object code,
generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made
available under the License, as indicated by a copyright notice that is included
in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that
is based on (or derived from) the Work and for which the editorial revisions,
annotations, elaborations, or other modifications represent, as a whole, an
original work of authorship. For the purposes of this License, Derivative Works
shall not include works that remain separable from, or merely link (or bind by
name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version
of the Work and any modifications or additions to that Work or Derivative Works
thereof, that is intentionally submitted to Licensor for inclusion in the Work
by the copyright owner or by an individual or Legal Entity authorized to submit
on behalf of the copyright owner. For the purposes of this definition,
"submitted" means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems, and
issue tracking systems that are managed by, or on behalf of, the Licensor for
the purpose of discussing and improving the Work, but excluding communication
that is conspicuously marked or otherwise designated in writing by the copyright
owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf
of whom a Contribution has been received by Licensor and subsequently
incorporated within the Work.
2. Grant of Copyright License.
Subject to the terms and conditions of this License, each Contributor hereby
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
irrevocable copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the Work and such
Derivative Works in Source or Object form.
3. Grant of Patent License.
Subject to the terms and conditions of this License, each Contributor hereby
grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
irrevocable (except as stated in this section) patent license to make, have
made, use, offer to sell, sell, import, and otherwise transfer the Work, where
such license applies only to those patent claims licensable by such Contributor
that are necessarily infringed by their Contribution(s) alone or by combination
of their Contribution(s) with the Work to which such Contribution(s) was
submitted. If You institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work or a
Contribution incorporated within the Work constitutes direct or contributory
patent infringement, then any patent licenses granted to You under this License
for that Work shall terminate as of the date such litigation is filed.
4. Redistribution.
You may reproduce and distribute copies of the Work or Derivative Works thereof
in any medium, with or without modifications, and in Source or Object form,
provided that You meet the following conditions:
You must give any other recipients of the Work or Derivative Works a copy of
this License; and
You must cause any modified files to carry prominent notices stating that You
changed the files; and
You must retain, in the Source form of any Derivative Works that You distribute,
all copyright, patent, trademark, and attribution notices from the Source form
of the Work, excluding those notices that do not pertain to any part of the
Derivative Works; and
If the Work includes a "NOTICE" text file as part of its distribution, then any
Derivative Works that You distribute must include a readable copy of the
attribution notices contained within such NOTICE file, excluding those notices
that do not pertain to any part of the Derivative Works, in at least one of the
following places: within a NOTICE text file distributed as part of the
Derivative Works; within the Source form or documentation, if provided along
with the Derivative Works; or, within a display generated by the Derivative
Works, if and wherever such third-party notices normally appear. The contents of
the NOTICE file are for informational purposes only and do not modify the
License. You may add Your own attribution notices within Derivative Works that
You distribute, alongside or as an addendum to the NOTICE text from the Work,
provided that such additional attribution notices cannot be construed as
modifying the License.
You may add Your own copyright statement to Your modifications and may provide
additional or different license terms and conditions for use, reproduction, or
distribution of Your modifications, or for any such Derivative Works as a whole,
provided Your use, reproduction, and distribution of the Work otherwise complies
with the conditions stated in this License.
5. Submission of Contributions.
Unless You explicitly state otherwise, any Contribution intentionally submitted
for inclusion in the Work by You to the Licensor shall be under the terms and
conditions of this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify the terms of
any separate license agreement you may have executed with Licensor regarding
such Contributions.
6. Trademarks.
This License does not grant permission to use the trade names, trademarks,
service marks, or product names of the Licensor, except as required for
reasonable and customary use in describing the origin of the Work and
reproducing the content of the NOTICE file.
7. Disclaimer of Warranty.
Unless required by applicable law or agreed to in writing, Licensor provides the
Work (and each Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
including, without limitation, any warranties or conditions of TITLE,
NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are
solely responsible for determining the appropriateness of using or
redistributing the Work and assume any risks associated with Your exercise of
permissions under this License.
8. Limitation of Liability.
In no event and under no legal theory, whether in tort (including negligence),
contract, or otherwise, unless required by applicable law (such as deliberate
and grossly negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special, incidental,
or consequential damages of any character arising as a result of this License or
out of the use or inability to use the Work (including but not limited to
damages for loss of goodwill, work stoppage, computer failure or malfunction, or
any and all other commercial damages or losses), even if such Contributor has
been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability.
While redistributing the Work or Derivative Works thereof, You may choose to
offer, and charge a fee for, acceptance of support, warranty, indemnity, or
other liability obligations and/or rights consistent with this License. However,
in accepting such obligations, You may act only on Your own behalf and on Your
sole responsibility, not on behalf of any other Contributor, and only if You
agree to indemnify, defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason of your
accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work
To apply the Apache License to your work, attach the following boilerplate
notice, with the fields enclosed by brackets "[]" replaced with your own
identifying information. (Don't include the brackets!) The text should be
enclosed in the appropriate comment syntax for the file format. We also
recommend that a file or class name and description of purpose be included on
the same "printed page" as the copyright notice for easier identification within
third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

18
node_modules/@img/sharp-darwin-arm64/README.md generated vendored Normal file
View File

@ -0,0 +1,18 @@
# `@img/sharp-darwin-arm64`
Prebuilt sharp for use with macOS 64-bit ARM.
## Licensing
Copyright 2013 Lovell Fuller and others.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
[https://www.apache.org/licenses/LICENSE-2.0](https://www.apache.org/licenses/LICENSE-2.0)
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Binary file not shown.

40
node_modules/@img/sharp-darwin-arm64/package.json generated vendored Normal file
View File

@ -0,0 +1,40 @@
{
"name": "@img/sharp-darwin-arm64",
"version": "0.34.5",
"description": "Prebuilt sharp for use with macOS 64-bit ARM",
"author": "Lovell Fuller <npm@lovell.info>",
"homepage": "https://sharp.pixelplumbing.com",
"repository": {
"type": "git",
"url": "git+https://github.com/lovell/sharp.git",
"directory": "npm/darwin-arm64"
},
"license": "Apache-2.0",
"funding": {
"url": "https://opencollective.com/libvips"
},
"preferUnplugged": true,
"optionalDependencies": {
"@img/sharp-libvips-darwin-arm64": "1.2.4"
},
"files": [
"lib"
],
"publishConfig": {
"access": "public"
},
"type": "commonjs",
"exports": {
"./sharp.node": "./lib/sharp-darwin-arm64.node",
"./package": "./package.json"
},
"engines": {
"node": "^18.17.0 || ^20.3.0 || >=21.0.0"
},
"os": [
"darwin"
],
"cpu": [
"arm64"
]
}

46
node_modules/@img/sharp-libvips-darwin-arm64/README.md generated vendored Normal file
View File

@ -0,0 +1,46 @@
# `@img/sharp-libvips-darwin-arm64`
Prebuilt libvips and dependencies for use with sharp on macOS 64-bit ARM.
## Licensing
This software contains third-party libraries
used under the terms of the following licences:
| Library | Used under the terms of |
|---------------|-----------------------------------------------------------------------------------------------------------|
| aom | BSD 2-Clause + [Alliance for Open Media Patent License 1.0](https://aomedia.org/license/patent-license/) |
| cairo | Mozilla Public License 2.0 |
| cgif | MIT Licence |
| expat | MIT Licence |
| fontconfig | [fontconfig Licence](https://gitlab.freedesktop.org/fontconfig/fontconfig/blob/main/COPYING) (BSD-like) |
| freetype | [freetype Licence](https://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/FTL.TXT) (BSD-like) |
| fribidi | LGPLv3 |
| glib | LGPLv3 |
| harfbuzz | MIT Licence |
| highway | Apache-2.0 License, BSD 3-Clause |
| lcms | MIT Licence |
| libarchive | BSD 2-Clause |
| libexif | LGPLv3 |
| libffi | MIT Licence |
| libheif | LGPLv3 |
| libimagequant | [BSD 2-Clause](https://github.com/lovell/libimagequant/blob/main/COPYRIGHT) |
| libnsgif | MIT Licence |
| libpng | [libpng License](https://github.com/pnggroup/libpng/blob/master/LICENSE) |
| librsvg | LGPLv3 |
| libspng | [BSD 2-Clause, libpng License](https://github.com/randy408/libspng/blob/master/LICENSE) |
| libtiff | [libtiff License](https://gitlab.com/libtiff/libtiff/blob/master/LICENSE.md) (BSD-like) |
| libvips | LGPLv3 |
| libwebp | New BSD License |
| libxml2 | MIT Licence |
| mozjpeg | [zlib License, IJG License, BSD-3-Clause](https://github.com/mozilla/mozjpeg/blob/master/LICENSE.md) |
| pango | LGPLv3 |
| pixman | MIT Licence |
| proxy-libintl | LGPLv3 |
| zlib-ng | [zlib Licence](https://github.com/zlib-ng/zlib-ng/blob/develop/LICENSE.md) |
Use of libraries under the terms of the LGPLv3 is via the
"any later version" clause of the LGPLv2 or LGPLv2.1.
Please report any errors or omissions via
https://github.com/lovell/sharp-libvips/issues/new

View File

@ -0,0 +1,220 @@
/* glibconfig.h
*
* This is a generated file. Please modify 'glibconfig.h.in'
*/
#ifndef __GLIBCONFIG_H__
#define __GLIBCONFIG_H__
#include <glib/gmacros.h>
#include <limits.h>
#include <float.h>
#define GLIB_HAVE_ALLOCA_H
#define GLIB_STATIC_COMPILATION 1
#define GOBJECT_STATIC_COMPILATION 1
#define GIO_STATIC_COMPILATION 1
#define GMODULE_STATIC_COMPILATION 1
#define GI_STATIC_COMPILATION 1
#define G_INTL_STATIC_COMPILATION 1
#define FFI_STATIC_BUILD 1
/* Specifies that GLib's g_print*() functions wrap the
* system printf functions. This is useful to know, for example,
* when using glibc's register_printf_function().
*/
#define GLIB_USING_SYSTEM_PRINTF
G_BEGIN_DECLS
#define G_MINFLOAT FLT_MIN
#define G_MAXFLOAT FLT_MAX
#define G_MINDOUBLE DBL_MIN
#define G_MAXDOUBLE DBL_MAX
#define G_MINSHORT SHRT_MIN
#define G_MAXSHORT SHRT_MAX
#define G_MAXUSHORT USHRT_MAX
#define G_MININT INT_MIN
#define G_MAXINT INT_MAX
#define G_MAXUINT UINT_MAX
#define G_MINLONG LONG_MIN
#define G_MAXLONG LONG_MAX
#define G_MAXULONG ULONG_MAX
typedef signed char gint8;
typedef unsigned char guint8;
typedef signed short gint16;
typedef unsigned short guint16;
#define G_GINT16_MODIFIER "h"
#define G_GINT16_FORMAT "hi"
#define G_GUINT16_FORMAT "hu"
typedef signed int gint32;
typedef unsigned int guint32;
#define G_GINT32_MODIFIER ""
#define G_GINT32_FORMAT "i"
#define G_GUINT32_FORMAT "u"
#define G_HAVE_GINT64 1 /* deprecated, always true */
G_GNUC_EXTENSION typedef signed long long gint64;
G_GNUC_EXTENSION typedef unsigned long long guint64;
#define G_GINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##LL))
#define G_GUINT64_CONSTANT(val) (G_GNUC_EXTENSION (val##ULL))
#define G_GINT64_MODIFIER "ll"
#define G_GINT64_FORMAT "lli"
#define G_GUINT64_FORMAT "llu"
#define GLIB_SIZEOF_VOID_P 8
#define GLIB_SIZEOF_LONG 8
#define GLIB_SIZEOF_SIZE_T 8
#define GLIB_SIZEOF_SSIZE_T 8
typedef signed long gssize;
typedef unsigned long gsize;
#define G_GSIZE_MODIFIER "l"
#define G_GSSIZE_MODIFIER "l"
#define G_GSIZE_FORMAT "lu"
#define G_GSSIZE_FORMAT "li"
#define G_MAXSIZE G_MAXULONG
#define G_MINSSIZE G_MINLONG
#define G_MAXSSIZE G_MAXLONG
typedef gint64 goffset;
#define G_MINOFFSET G_MININT64
#define G_MAXOFFSET G_MAXINT64
#define G_GOFFSET_MODIFIER G_GINT64_MODIFIER
#define G_GOFFSET_FORMAT G_GINT64_FORMAT
#define G_GOFFSET_CONSTANT(val) G_GINT64_CONSTANT(val)
#define G_POLLFD_FORMAT "%d"
#define GPOINTER_TO_INT(p) ((gint) (glong) (p))
#define GPOINTER_TO_UINT(p) ((guint) (gulong) (p))
#define GINT_TO_POINTER(i) ((gpointer) (glong) (i))
#define GUINT_TO_POINTER(u) ((gpointer) (gulong) (u))
typedef signed long gintptr;
typedef unsigned long guintptr;
#define G_GINTPTR_MODIFIER "l"
#define G_GINTPTR_FORMAT "li"
#define G_GUINTPTR_FORMAT "lu"
#define GLIB_MAJOR_VERSION 2
#define GLIB_MINOR_VERSION 86
#define GLIB_MICRO_VERSION 1
#define G_OS_UNIX
#define G_VA_COPY va_copy
#define G_HAVE_ISO_VARARGS 1
/* gcc-2.95.x supports both gnu style and ISO varargs, but if -ansi
* is passed ISO vararg support is turned off, and there is no work
* around to turn it on, so we unconditionally turn it off.
*/
#if __GNUC__ == 2 && __GNUC_MINOR__ == 95
# undef G_HAVE_ISO_VARARGS
#endif
#define G_HAVE_GROWING_STACK 0
#ifndef _MSC_VER
# define G_HAVE_GNUC_VARARGS 1
#endif
#if defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)
#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
#define G_GNUC_INTERNAL __hidden
#elif defined (__GNUC__) && defined (G_HAVE_GNUC_VISIBILITY)
#define G_GNUC_INTERNAL __attribute__((visibility("hidden")))
#else
#define G_GNUC_INTERNAL
#endif
#define G_THREADS_ENABLED
#define G_THREADS_IMPL_POSIX
#define G_ATOMIC_LOCK_FREE
#define GINT16_TO_LE(val) ((gint16) (val))
#define GUINT16_TO_LE(val) ((guint16) (val))
#define GINT16_TO_BE(val) ((gint16) GUINT16_SWAP_LE_BE (val))
#define GUINT16_TO_BE(val) (GUINT16_SWAP_LE_BE (val))
#define GINT32_TO_LE(val) ((gint32) (val))
#define GUINT32_TO_LE(val) ((guint32) (val))
#define GINT32_TO_BE(val) ((gint32) GUINT32_SWAP_LE_BE (val))
#define GUINT32_TO_BE(val) (GUINT32_SWAP_LE_BE (val))
#define GINT64_TO_LE(val) ((gint64) (val))
#define GUINT64_TO_LE(val) ((guint64) (val))
#define GINT64_TO_BE(val) ((gint64) GUINT64_SWAP_LE_BE (val))
#define GUINT64_TO_BE(val) (GUINT64_SWAP_LE_BE (val))
#define GLONG_TO_LE(val) ((glong) GINT64_TO_LE (val))
#define GULONG_TO_LE(val) ((gulong) GUINT64_TO_LE (val))
#define GLONG_TO_BE(val) ((glong) GINT64_TO_BE (val))
#define GULONG_TO_BE(val) ((gulong) GUINT64_TO_BE (val))
#define GINT_TO_LE(val) ((gint) GINT32_TO_LE (val))
#define GUINT_TO_LE(val) ((guint) GUINT32_TO_LE (val))
#define GINT_TO_BE(val) ((gint) GINT32_TO_BE (val))
#define GUINT_TO_BE(val) ((guint) GUINT32_TO_BE (val))
#define GSIZE_TO_LE(val) ((gsize) GUINT64_TO_LE (val))
#define GSSIZE_TO_LE(val) ((gssize) GINT64_TO_LE (val))
#define GSIZE_TO_BE(val) ((gsize) GUINT64_TO_BE (val))
#define GSSIZE_TO_BE(val) ((gssize) GINT64_TO_BE (val))
#define G_BYTE_ORDER G_LITTLE_ENDIAN
#define GLIB_SYSDEF_POLLIN =1
#define GLIB_SYSDEF_POLLOUT =4
#define GLIB_SYSDEF_POLLPRI =2
#define GLIB_SYSDEF_POLLHUP =16
#define GLIB_SYSDEF_POLLERR =8
#define GLIB_SYSDEF_POLLNVAL =32
/* No way to disable deprecation warnings for macros, so only emit deprecation
* warnings on platforms where usage of this macro is broken */
#if defined(__APPLE__) || defined(_MSC_VER) || defined(__CYGWIN__)
#define G_MODULE_SUFFIX "so" GLIB_DEPRECATED_MACRO_IN_2_76
#else
#define G_MODULE_SUFFIX "so"
#endif
typedef int GPid;
#define G_PID_FORMAT "i"
#define GLIB_SYSDEF_AF_UNIX 1
#define GLIB_SYSDEF_AF_INET 2
#define GLIB_SYSDEF_AF_INET6 30
#define GLIB_SYSDEF_MSG_OOB 1
#define GLIB_SYSDEF_MSG_PEEK 2
#define GLIB_SYSDEF_MSG_DONTROUTE 4
#define G_DIR_SEPARATOR '/'
#define G_DIR_SEPARATOR_S "/"
#define G_SEARCHPATH_SEPARATOR ':'
#define G_SEARCHPATH_SEPARATOR_S ":"
#undef G_HAVE_FREE_SIZED
G_END_DECLS
#endif /* __GLIBCONFIG_H__ */

View File

@ -0,0 +1 @@
module.exports = __dirname;

Binary file not shown.

View File

@ -0,0 +1,36 @@
{
"name": "@img/sharp-libvips-darwin-arm64",
"version": "1.2.4",
"description": "Prebuilt libvips and dependencies for use with sharp on macOS 64-bit ARM",
"author": "Lovell Fuller <npm@lovell.info>",
"homepage": "https://sharp.pixelplumbing.com",
"repository": {
"type": "git",
"url": "git+https://github.com/lovell/sharp-libvips.git",
"directory": "npm/darwin-arm64"
},
"license": "LGPL-3.0-or-later",
"funding": {
"url": "https://opencollective.com/libvips"
},
"preferUnplugged": true,
"publishConfig": {
"access": "public"
},
"files": [
"lib",
"versions.json"
],
"type": "commonjs",
"exports": {
"./lib": "./lib/index.js",
"./package": "./package.json",
"./versions": "./versions.json"
},
"os": [
"darwin"
],
"cpu": [
"arm64"
]
}

View File

@ -0,0 +1,30 @@
{
"aom": "3.13.1",
"archive": "3.8.2",
"cairo": "1.18.4",
"cgif": "0.5.0",
"exif": "0.6.25",
"expat": "2.7.3",
"ffi": "3.5.2",
"fontconfig": "2.17.1",
"freetype": "2.14.1",
"fribidi": "1.0.16",
"glib": "2.86.1",
"harfbuzz": "12.1.0",
"heif": "1.20.2",
"highway": "1.3.0",
"imagequant": "2.4.1",
"lcms": "2.17",
"mozjpeg": "0826579",
"pango": "1.57.0",
"pixman": "0.46.4",
"png": "1.6.50",
"proxy-libintl": "0.5",
"rsvg": "2.61.2",
"spng": "0.7.4",
"tiff": "4.7.1",
"vips": "8.17.3",
"webp": "1.6.0",
"xml2": "2.15.1",
"zlib-ng": "2.2.5"
}

201
node_modules/detect-libc/LICENSE generated vendored Normal file
View File

@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright {yyyy} {name of copyright owner}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

163
node_modules/detect-libc/README.md generated vendored Normal file
View File

@ -0,0 +1,163 @@
# detect-libc
Node.js module to detect details of the C standard library (libc)
implementation provided by a given Linux system.
Currently supports detection of GNU glibc and MUSL libc.
Provides asychronous and synchronous functions for the
family (e.g. `glibc`, `musl`) and version (e.g. `1.23`, `1.2.3`).
The version numbers of libc implementations
are not guaranteed to be semver-compliant.
For previous v1.x releases, please see the
[v1](https://github.com/lovell/detect-libc/tree/v1) branch.
## Install
```sh
npm install detect-libc
```
## API
### GLIBC
```ts
const GLIBC: string = 'glibc';
```
A String constant containing the value `glibc`.
### MUSL
```ts
const MUSL: string = 'musl';
```
A String constant containing the value `musl`.
### family
```ts
function family(): Promise<string | null>;
```
Resolves asychronously with:
* `glibc` or `musl` when the libc family can be determined
* `null` when the libc family cannot be determined
* `null` when run on a non-Linux platform
```js
const { family, GLIBC, MUSL } = require('detect-libc');
switch (await family()) {
case GLIBC: ...
case MUSL: ...
case null: ...
}
```
### familySync
```ts
function familySync(): string | null;
```
Synchronous version of `family()`.
```js
const { familySync, GLIBC, MUSL } = require('detect-libc');
switch (familySync()) {
case GLIBC: ...
case MUSL: ...
case null: ...
}
```
### version
```ts
function version(): Promise<string | null>;
```
Resolves asychronously with:
* The version when it can be determined
* `null` when the libc family cannot be determined
* `null` when run on a non-Linux platform
```js
const { version } = require('detect-libc');
const v = await version();
if (v) {
const [major, minor, patch] = v.split('.');
}
```
### versionSync
```ts
function versionSync(): string | null;
```
Synchronous version of `version()`.
```js
const { versionSync } = require('detect-libc');
const v = versionSync();
if (v) {
const [major, minor, patch] = v.split('.');
}
```
### isNonGlibcLinux
```ts
function isNonGlibcLinux(): Promise<boolean>;
```
Resolves asychronously with:
* `false` when the libc family is `glibc`
* `true` when the libc family is not `glibc`
* `false` when run on a non-Linux platform
```js
const { isNonGlibcLinux } = require('detect-libc');
if (await isNonGlibcLinux()) { ... }
```
### isNonGlibcLinuxSync
```ts
function isNonGlibcLinuxSync(): boolean;
```
Synchronous version of `isNonGlibcLinux()`.
```js
const { isNonGlibcLinuxSync } = require('detect-libc');
if (isNonGlibcLinuxSync()) { ... }
```
## Licensing
Copyright 2017 Lovell Fuller and others.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at [http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

14
node_modules/detect-libc/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,14 @@
// Copyright 2017 Lovell Fuller and others.
// SPDX-License-Identifier: Apache-2.0
export const GLIBC: 'glibc';
export const MUSL: 'musl';
export function family(): Promise<string | null>;
export function familySync(): string | null;
export function isNonGlibcLinux(): Promise<boolean>;
export function isNonGlibcLinuxSync(): boolean;
export function version(): Promise<string | null>;
export function versionSync(): string | null;

313
node_modules/detect-libc/lib/detect-libc.js generated vendored Normal file
View File

@ -0,0 +1,313 @@
// Copyright 2017 Lovell Fuller and others.
// SPDX-License-Identifier: Apache-2.0
'use strict';
const childProcess = require('child_process');
const { isLinux, getReport } = require('./process');
const { LDD_PATH, SELF_PATH, readFile, readFileSync } = require('./filesystem');
const { interpreterPath } = require('./elf');
let cachedFamilyInterpreter;
let cachedFamilyFilesystem;
let cachedVersionFilesystem;
const command = 'getconf GNU_LIBC_VERSION 2>&1 || true; ldd --version 2>&1 || true';
let commandOut = '';
const safeCommand = () => {
if (!commandOut) {
return new Promise((resolve) => {
childProcess.exec(command, (err, out) => {
commandOut = err ? ' ' : out;
resolve(commandOut);
});
});
}
return commandOut;
};
const safeCommandSync = () => {
if (!commandOut) {
try {
commandOut = childProcess.execSync(command, { encoding: 'utf8' });
} catch (_err) {
commandOut = ' ';
}
}
return commandOut;
};
/**
* A String constant containing the value `glibc`.
* @type {string}
* @public
*/
const GLIBC = 'glibc';
/**
* A Regexp constant to get the GLIBC Version.
* @type {string}
*/
const RE_GLIBC_VERSION = /LIBC[a-z0-9 \-).]*?(\d+\.\d+)/i;
/**
* A String constant containing the value `musl`.
* @type {string}
* @public
*/
const MUSL = 'musl';
const isFileMusl = (f) => f.includes('libc.musl-') || f.includes('ld-musl-');
const familyFromReport = () => {
const report = getReport();
if (report.header && report.header.glibcVersionRuntime) {
return GLIBC;
}
if (Array.isArray(report.sharedObjects)) {
if (report.sharedObjects.some(isFileMusl)) {
return MUSL;
}
}
return null;
};
const familyFromCommand = (out) => {
const [getconf, ldd1] = out.split(/[\r\n]+/);
if (getconf && getconf.includes(GLIBC)) {
return GLIBC;
}
if (ldd1 && ldd1.includes(MUSL)) {
return MUSL;
}
return null;
};
const familyFromInterpreterPath = (path) => {
if (path) {
if (path.includes('/ld-musl-')) {
return MUSL;
} else if (path.includes('/ld-linux-')) {
return GLIBC;
}
}
return null;
};
const getFamilyFromLddContent = (content) => {
content = content.toString();
if (content.includes('musl')) {
return MUSL;
}
if (content.includes('GNU C Library')) {
return GLIBC;
}
return null;
};
const familyFromFilesystem = async () => {
if (cachedFamilyFilesystem !== undefined) {
return cachedFamilyFilesystem;
}
cachedFamilyFilesystem = null;
try {
const lddContent = await readFile(LDD_PATH);
cachedFamilyFilesystem = getFamilyFromLddContent(lddContent);
} catch (e) {}
return cachedFamilyFilesystem;
};
const familyFromFilesystemSync = () => {
if (cachedFamilyFilesystem !== undefined) {
return cachedFamilyFilesystem;
}
cachedFamilyFilesystem = null;
try {
const lddContent = readFileSync(LDD_PATH);
cachedFamilyFilesystem = getFamilyFromLddContent(lddContent);
} catch (e) {}
return cachedFamilyFilesystem;
};
const familyFromInterpreter = async () => {
if (cachedFamilyInterpreter !== undefined) {
return cachedFamilyInterpreter;
}
cachedFamilyInterpreter = null;
try {
const selfContent = await readFile(SELF_PATH);
const path = interpreterPath(selfContent);
cachedFamilyInterpreter = familyFromInterpreterPath(path);
} catch (e) {}
return cachedFamilyInterpreter;
};
const familyFromInterpreterSync = () => {
if (cachedFamilyInterpreter !== undefined) {
return cachedFamilyInterpreter;
}
cachedFamilyInterpreter = null;
try {
const selfContent = readFileSync(SELF_PATH);
const path = interpreterPath(selfContent);
cachedFamilyInterpreter = familyFromInterpreterPath(path);
} catch (e) {}
return cachedFamilyInterpreter;
};
/**
* Resolves with the libc family when it can be determined, `null` otherwise.
* @returns {Promise<?string>}
*/
const family = async () => {
let family = null;
if (isLinux()) {
family = await familyFromInterpreter();
if (!family) {
family = await familyFromFilesystem();
if (!family) {
family = familyFromReport();
}
if (!family) {
const out = await safeCommand();
family = familyFromCommand(out);
}
}
}
return family;
};
/**
* Returns the libc family when it can be determined, `null` otherwise.
* @returns {?string}
*/
const familySync = () => {
let family = null;
if (isLinux()) {
family = familyFromInterpreterSync();
if (!family) {
family = familyFromFilesystemSync();
if (!family) {
family = familyFromReport();
}
if (!family) {
const out = safeCommandSync();
family = familyFromCommand(out);
}
}
}
return family;
};
/**
* Resolves `true` only when the platform is Linux and the libc family is not `glibc`.
* @returns {Promise<boolean>}
*/
const isNonGlibcLinux = async () => isLinux() && await family() !== GLIBC;
/**
* Returns `true` only when the platform is Linux and the libc family is not `glibc`.
* @returns {boolean}
*/
const isNonGlibcLinuxSync = () => isLinux() && familySync() !== GLIBC;
const versionFromFilesystem = async () => {
if (cachedVersionFilesystem !== undefined) {
return cachedVersionFilesystem;
}
cachedVersionFilesystem = null;
try {
const lddContent = await readFile(LDD_PATH);
const versionMatch = lddContent.match(RE_GLIBC_VERSION);
if (versionMatch) {
cachedVersionFilesystem = versionMatch[1];
}
} catch (e) {}
return cachedVersionFilesystem;
};
const versionFromFilesystemSync = () => {
if (cachedVersionFilesystem !== undefined) {
return cachedVersionFilesystem;
}
cachedVersionFilesystem = null;
try {
const lddContent = readFileSync(LDD_PATH);
const versionMatch = lddContent.match(RE_GLIBC_VERSION);
if (versionMatch) {
cachedVersionFilesystem = versionMatch[1];
}
} catch (e) {}
return cachedVersionFilesystem;
};
const versionFromReport = () => {
const report = getReport();
if (report.header && report.header.glibcVersionRuntime) {
return report.header.glibcVersionRuntime;
}
return null;
};
const versionSuffix = (s) => s.trim().split(/\s+/)[1];
const versionFromCommand = (out) => {
const [getconf, ldd1, ldd2] = out.split(/[\r\n]+/);
if (getconf && getconf.includes(GLIBC)) {
return versionSuffix(getconf);
}
if (ldd1 && ldd2 && ldd1.includes(MUSL)) {
return versionSuffix(ldd2);
}
return null;
};
/**
* Resolves with the libc version when it can be determined, `null` otherwise.
* @returns {Promise<?string>}
*/
const version = async () => {
let version = null;
if (isLinux()) {
version = await versionFromFilesystem();
if (!version) {
version = versionFromReport();
}
if (!version) {
const out = await safeCommand();
version = versionFromCommand(out);
}
}
return version;
};
/**
* Returns the libc version when it can be determined, `null` otherwise.
* @returns {?string}
*/
const versionSync = () => {
let version = null;
if (isLinux()) {
version = versionFromFilesystemSync();
if (!version) {
version = versionFromReport();
}
if (!version) {
const out = safeCommandSync();
version = versionFromCommand(out);
}
}
return version;
};
module.exports = {
GLIBC,
MUSL,
family,
familySync,
isNonGlibcLinux,
isNonGlibcLinuxSync,
version,
versionSync
};

39
node_modules/detect-libc/lib/elf.js generated vendored Normal file
View File

@ -0,0 +1,39 @@
// Copyright 2017 Lovell Fuller and others.
// SPDX-License-Identifier: Apache-2.0
'use strict';
const interpreterPath = (elf) => {
if (elf.length < 64) {
return null;
}
if (elf.readUInt32BE(0) !== 0x7F454C46) {
// Unexpected magic bytes
return null;
}
if (elf.readUInt8(4) !== 2) {
// Not a 64-bit ELF
return null;
}
if (elf.readUInt8(5) !== 1) {
// Not little-endian
return null;
}
const offset = elf.readUInt32LE(32);
const size = elf.readUInt16LE(54);
const count = elf.readUInt16LE(56);
for (let i = 0; i < count; i++) {
const headerOffset = offset + (i * size);
const type = elf.readUInt32LE(headerOffset);
if (type === 3) {
const fileOffset = elf.readUInt32LE(headerOffset + 8);
const fileSize = elf.readUInt32LE(headerOffset + 32);
return elf.subarray(fileOffset, fileOffset + fileSize).toString().replace(/\0.*$/g, '');
}
}
return null;
};
module.exports = {
interpreterPath
};

51
node_modules/detect-libc/lib/filesystem.js generated vendored Normal file
View File

@ -0,0 +1,51 @@
// Copyright 2017 Lovell Fuller and others.
// SPDX-License-Identifier: Apache-2.0
'use strict';
const fs = require('fs');
const LDD_PATH = '/usr/bin/ldd';
const SELF_PATH = '/proc/self/exe';
const MAX_LENGTH = 2048;
/**
* Read the content of a file synchronous
*
* @param {string} path
* @returns {Buffer}
*/
const readFileSync = (path) => {
const fd = fs.openSync(path, 'r');
const buffer = Buffer.alloc(MAX_LENGTH);
const bytesRead = fs.readSync(fd, buffer, 0, MAX_LENGTH, 0);
fs.close(fd, () => {});
return buffer.subarray(0, bytesRead);
};
/**
* Read the content of a file
*
* @param {string} path
* @returns {Promise<Buffer>}
*/
const readFile = (path) => new Promise((resolve, reject) => {
fs.open(path, 'r', (err, fd) => {
if (err) {
reject(err);
} else {
const buffer = Buffer.alloc(MAX_LENGTH);
fs.read(fd, buffer, 0, MAX_LENGTH, 0, (_, bytesRead) => {
resolve(buffer.subarray(0, bytesRead));
fs.close(fd, () => {});
});
}
});
});
module.exports = {
LDD_PATH,
SELF_PATH,
readFileSync,
readFile
};

24
node_modules/detect-libc/lib/process.js generated vendored Normal file
View File

@ -0,0 +1,24 @@
// Copyright 2017 Lovell Fuller and others.
// SPDX-License-Identifier: Apache-2.0
'use strict';
const isLinux = () => process.platform === 'linux';
let report = null;
const getReport = () => {
if (!report) {
/* istanbul ignore next */
if (isLinux() && process.report) {
const orig = process.report.excludeNetwork;
process.report.excludeNetwork = true;
report = process.report.getReport();
process.report.excludeNetwork = orig;
} else {
report = {};
}
}
return report;
};
module.exports = { isLinux, getReport };

44
node_modules/detect-libc/package.json generated vendored Normal file
View File

@ -0,0 +1,44 @@
{
"name": "detect-libc",
"version": "2.1.2",
"description": "Node.js module to detect the C standard library (libc) implementation family and version",
"main": "lib/detect-libc.js",
"files": [
"lib/",
"index.d.ts"
],
"scripts": {
"test": "semistandard && nyc --reporter=text --check-coverage --branches=100 ava test/unit.js",
"changelog": "conventional-changelog -i CHANGELOG.md -s",
"bench": "node benchmark/detect-libc",
"bench:calls": "node benchmark/call-familySync.js && sleep 1 && node benchmark/call-isNonGlibcLinuxSync.js && sleep 1 && node benchmark/call-versionSync.js"
},
"repository": {
"type": "git",
"url": "git://github.com/lovell/detect-libc.git"
},
"keywords": [
"libc",
"glibc",
"musl"
],
"author": "Lovell Fuller <npm@lovell.info>",
"contributors": [
"Niklas Salmoukas <niklas@salmoukas.com>",
"Vinícius Lourenço <vinyygamerlol@gmail.com>"
],
"license": "Apache-2.0",
"devDependencies": {
"ava": "^2.4.0",
"benchmark": "^2.1.4",
"conventional-changelog-cli": "^5.0.0",
"eslint-config-standard": "^13.0.1",
"nyc": "^15.1.0",
"proxyquire": "^2.1.3",
"semistandard": "^14.2.3"
},
"engines": {
"node": ">=8"
},
"types": "index.d.ts"
}

15
node_modules/semver/LICENSE generated vendored Normal file
View File

@ -0,0 +1,15 @@
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

665
node_modules/semver/README.md generated vendored Normal file
View File

@ -0,0 +1,665 @@
semver(1) -- The semantic versioner for npm
===========================================
## Install
```bash
npm install semver
````
## Usage
As a node module:
```js
const semver = require('semver')
semver.valid('1.2.3') // '1.2.3'
semver.valid('a.b.c') // null
semver.clean(' =v1.2.3 ') // '1.2.3'
semver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true
semver.gt('1.2.3', '9.8.7') // false
semver.lt('1.2.3', '9.8.7') // true
semver.minVersion('>=1.0.0') // '1.0.0'
semver.valid(semver.coerce('v2')) // '2.0.0'
semver.valid(semver.coerce('42.6.7.9.3-alpha')) // '42.6.7'
```
You can also just load the module for the function that you care about if
you'd like to minimize your footprint.
```js
// load the whole API at once in a single object
const semver = require('semver')
// or just load the bits you need
// all of them listed here, just pick and choose what you want
// classes
const SemVer = require('semver/classes/semver')
const Comparator = require('semver/classes/comparator')
const Range = require('semver/classes/range')
// functions for working with versions
const semverParse = require('semver/functions/parse')
const semverValid = require('semver/functions/valid')
const semverClean = require('semver/functions/clean')
const semverInc = require('semver/functions/inc')
const semverDiff = require('semver/functions/diff')
const semverMajor = require('semver/functions/major')
const semverMinor = require('semver/functions/minor')
const semverPatch = require('semver/functions/patch')
const semverPrerelease = require('semver/functions/prerelease')
const semverCompare = require('semver/functions/compare')
const semverRcompare = require('semver/functions/rcompare')
const semverCompareLoose = require('semver/functions/compare-loose')
const semverCompareBuild = require('semver/functions/compare-build')
const semverSort = require('semver/functions/sort')
const semverRsort = require('semver/functions/rsort')
// low-level comparators between versions
const semverGt = require('semver/functions/gt')
const semverLt = require('semver/functions/lt')
const semverEq = require('semver/functions/eq')
const semverNeq = require('semver/functions/neq')
const semverGte = require('semver/functions/gte')
const semverLte = require('semver/functions/lte')
const semverCmp = require('semver/functions/cmp')
const semverCoerce = require('semver/functions/coerce')
// working with ranges
const semverSatisfies = require('semver/functions/satisfies')
const semverMaxSatisfying = require('semver/ranges/max-satisfying')
const semverMinSatisfying = require('semver/ranges/min-satisfying')
const semverToComparators = require('semver/ranges/to-comparators')
const semverMinVersion = require('semver/ranges/min-version')
const semverValidRange = require('semver/ranges/valid')
const semverOutside = require('semver/ranges/outside')
const semverGtr = require('semver/ranges/gtr')
const semverLtr = require('semver/ranges/ltr')
const semverIntersects = require('semver/ranges/intersects')
const semverSimplifyRange = require('semver/ranges/simplify')
const semverRangeSubset = require('semver/ranges/subset')
```
As a command-line utility:
```
$ semver -h
A JavaScript implementation of the https://semver.org/ specification
Copyright Isaac Z. Schlueter
Usage: semver [options] <version> [<version> [...]]
Prints valid versions sorted by SemVer precedence
Options:
-r --range <range>
Print versions that match the specified range.
-i --increment [<level>]
Increment a version by the specified level. Level can
be one of: major, minor, patch, premajor, preminor,
prepatch, prerelease, or release. Default level is 'patch'.
Only one version may be specified.
--preid <identifier>
Identifier to be used to prefix premajor, preminor,
prepatch or prerelease version increments.
-l --loose
Interpret versions and ranges loosely
-n <0|1|false>
Base number for prerelease identifier (default: 0).
Use false to omit the number altogether.
-p --include-prerelease
Always include prerelease versions in range matching
-c --coerce
Coerce a string into SemVer if possible
(does not imply --loose)
--rtl
Coerce version strings right to left
--ltr
Coerce version strings left to right (default)
Program exits successfully if any valid version satisfies
all supplied ranges, and prints all satisfying versions.
If no satisfying versions are found, then exits failure.
Versions are printed in ascending order, so supplying
multiple versions to the utility will just sort them.
```
## Versions
A "version" is described by the `v2.0.0` specification found at
<https://semver.org/>.
A leading `"="` or `"v"` character is stripped off and ignored.
Support for stripping a leading "v" is kept for compatibility with `v1.0.0` of the SemVer
specification but should not be used anymore.
## Ranges
A `version range` is a set of `comparators` that specify versions
that satisfy the range.
A `comparator` is composed of an `operator` and a `version`. The set
of primitive `operators` is:
* `<` Less than
* `<=` Less than or equal to
* `>` Greater than
* `>=` Greater than or equal to
* `=` Equal. If no operator is specified, then equality is assumed,
so this operator is optional but MAY be included.
For example, the comparator `>=1.2.7` would match the versions
`1.2.7`, `1.2.8`, `2.5.3`, and `1.3.9`, but not the versions `1.2.6`
or `1.1.0`. The comparator `>1` is equivalent to `>=2.0.0` and
would match the versions `2.0.0` and `3.1.0`, but not the versions
`1.0.1` or `1.1.0`.
Comparators can be joined by whitespace to form a `comparator set`,
which is satisfied by the **intersection** of all of the comparators
it includes.
A range is composed of one or more comparator sets, joined by `||`. A
version matches a range if and only if every comparator in at least
one of the `||`-separated comparator sets is satisfied by the version.
For example, the range `>=1.2.7 <1.3.0` would match the versions
`1.2.7`, `1.2.8`, and `1.2.99`, but not the versions `1.2.6`, `1.3.0`,
or `1.1.0`.
The range `1.2.7 || >=1.2.9 <2.0.0` would match the versions `1.2.7`,
`1.2.9`, and `1.4.6`, but not the versions `1.2.8` or `2.0.0`.
### Prerelease Tags
If a version has a prerelease tag (for example, `1.2.3-alpha.3`) then
it will only be allowed to satisfy comparator sets if at least one
comparator with the same `[major, minor, patch]` tuple also has a
prerelease tag.
For example, the range `>1.2.3-alpha.3` would be allowed to match the
version `1.2.3-alpha.7`, but it would *not* be satisfied by
`3.4.5-alpha.9`, even though `3.4.5-alpha.9` is technically "greater
than" `1.2.3-alpha.3` according to the SemVer sort rules. The version
range only accepts prerelease tags on the `1.2.3` version.
Version `3.4.5` *would* satisfy the range because it does not have a
prerelease flag, and `3.4.5` is greater than `1.2.3-alpha.7`.
The purpose of this behavior is twofold. First, prerelease versions
frequently are updated very quickly, and contain many breaking changes
that are (by the author's design) not yet fit for public consumption.
Therefore, by default, they are excluded from range-matching
semantics.
Second, a user who has opted into using a prerelease version has
indicated the intent to use *that specific* set of
alpha/beta/rc versions. By including a prerelease tag in the range,
the user is indicating that they are aware of the risk. However, it
is still not appropriate to assume that they have opted into taking a
similar risk on the *next* set of prerelease versions.
Note that this behavior can be suppressed (treating all prerelease
versions as if they were normal versions, for range-matching)
by setting the `includePrerelease` flag on the options
object to any
[functions](https://github.com/npm/node-semver#functions) that do
range matching.
#### Prerelease Identifiers
The method `.inc` takes an additional `identifier` string argument that
will append the value of the string as a prerelease identifier:
```javascript
semver.inc('1.2.3', 'prerelease', 'beta')
// '1.2.4-beta.0'
```
command-line example:
```bash
$ semver 1.2.3 -i prerelease --preid beta
1.2.4-beta.0
```
Which then can be used to increment further:
```bash
$ semver 1.2.4-beta.0 -i prerelease
1.2.4-beta.1
```
To get out of the prerelease phase, use the `release` option:
```bash
$ semver 1.2.4-beta.1 -i release
1.2.4
```
#### Prerelease Identifier Base
The method `.inc` takes an optional parameter 'identifierBase' string
that will let you let your prerelease number as zero-based or one-based.
Set to `false` to omit the prerelease number altogether.
If you do not specify this parameter, it will default to zero-based.
```javascript
semver.inc('1.2.3', 'prerelease', 'beta', '1')
// '1.2.4-beta.1'
```
```javascript
semver.inc('1.2.3', 'prerelease', 'beta', false)
// '1.2.4-beta'
```
command-line example:
```bash
$ semver 1.2.3 -i prerelease --preid beta -n 1
1.2.4-beta.1
```
```bash
$ semver 1.2.3 -i prerelease --preid beta -n false
1.2.4-beta
```
### Advanced Range Syntax
Advanced range syntax desugars to primitive comparators in
deterministic ways.
Advanced ranges may be combined in the same way as primitive
comparators using white space or `||`.
#### Hyphen Ranges `X.Y.Z - A.B.C`
Specifies an inclusive set.
* `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4`
If a partial version is provided as the first version in the inclusive
range, then the missing pieces are replaced with zeroes.
* `1.2 - 2.3.4` := `>=1.2.0 <=2.3.4`
If a partial version is provided as the second version in the
inclusive range, then all versions that start with the supplied parts
of the tuple are accepted, but nothing that would be greater than the
provided tuple parts.
* `1.2.3 - 2.3` := `>=1.2.3 <2.4.0-0`
* `1.2.3 - 2` := `>=1.2.3 <3.0.0-0`
#### X-Ranges `1.2.x` `1.X` `1.2.*` `*`
Any of `X`, `x`, or `*` may be used to "stand in" for one of the
numeric values in the `[major, minor, patch]` tuple.
* `*` := `>=0.0.0` (Any non-prerelease version satisfies, unless
`includePrerelease` is specified, in which case any version at all
satisfies)
* `1.x` := `>=1.0.0 <2.0.0-0` (Matching major version)
* `1.2.x` := `>=1.2.0 <1.3.0-0` (Matching major and minor versions)
A partial version range is treated as an X-Range, so the special
character is in fact optional.
* `""` (empty string) := `*` := `>=0.0.0`
* `1` := `1.x.x` := `>=1.0.0 <2.0.0-0`
* `1.2` := `1.2.x` := `>=1.2.0 <1.3.0-0`
#### Tilde Ranges `~1.2.3` `~1.2` `~1`
Allows patch-level changes if a minor version is specified on the
comparator. Allows minor-level changes if not.
* `~1.2.3` := `>=1.2.3 <1.(2+1).0` := `>=1.2.3 <1.3.0-0`
* `~1.2` := `>=1.2.0 <1.(2+1).0` := `>=1.2.0 <1.3.0-0` (Same as `1.2.x`)
* `~1` := `>=1.0.0 <(1+1).0.0` := `>=1.0.0 <2.0.0-0` (Same as `1.x`)
* `~0.2.3` := `>=0.2.3 <0.(2+1).0` := `>=0.2.3 <0.3.0-0`
* `~0.2` := `>=0.2.0 <0.(2+1).0` := `>=0.2.0 <0.3.0-0` (Same as `0.2.x`)
* `~0` := `>=0.0.0 <(0+1).0.0` := `>=0.0.0 <1.0.0-0` (Same as `0.x`)
* `~1.2.3-beta.2` := `>=1.2.3-beta.2 <1.3.0-0` Note that prereleases in
the `1.2.3` version will be allowed, if they are greater than or
equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but
`1.2.4-beta.2` would not, because it is a prerelease of a
different `[major, minor, patch]` tuple.
#### Caret Ranges `^1.2.3` `^0.2.5` `^0.0.4`
Allows changes that do not modify the left-most non-zero element in the
`[major, minor, patch]` tuple. In other words, this allows patch and
minor updates for versions `1.0.0` and above, patch updates for
versions `0.X >=0.1.0`, and *no* updates for versions `0.0.X`.
Many authors treat a `0.x` version as if the `x` were the major
"breaking-change" indicator.
Caret ranges are ideal when an author may make breaking changes
between `0.2.4` and `0.3.0` releases, which is a common practice.
However, it presumes that there will *not* be breaking changes between
`0.2.4` and `0.2.5`. It allows for changes that are presumed to be
additive (but non-breaking), according to commonly observed practices.
* `^1.2.3` := `>=1.2.3 <2.0.0-0`
* `^0.2.3` := `>=0.2.3 <0.3.0-0`
* `^0.0.3` := `>=0.0.3 <0.0.4-0`
* `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0-0` Note that prereleases in
the `1.2.3` version will be allowed, if they are greater than or
equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but
`1.2.4-beta.2` would not, because it is a prerelease of a
different `[major, minor, patch]` tuple.
* `^0.0.3-beta` := `>=0.0.3-beta <0.0.4-0` Note that prereleases in the
`0.0.3` version *only* will be allowed, if they are greater than or
equal to `beta`. So, `0.0.3-pr.2` would be allowed.
When parsing caret ranges, a missing `patch` value desugars to the
number `0`, but will allow flexibility within that value, even if the
major and minor versions are both `0`.
* `^1.2.x` := `>=1.2.0 <2.0.0-0`
* `^0.0.x` := `>=0.0.0 <0.1.0-0`
* `^0.0` := `>=0.0.0 <0.1.0-0`
A missing `minor` and `patch` values will desugar to zero, but also
allow flexibility within those values, even if the major version is
zero.
* `^1.x` := `>=1.0.0 <2.0.0-0`
* `^0.x` := `>=0.0.0 <1.0.0-0`
### Range Grammar
Putting all this together, here is a Backus-Naur grammar for ranges,
for the benefit of parser authors:
```bnf
range-set ::= range ( logical-or range ) *
logical-or ::= ( ' ' ) * '||' ( ' ' ) *
range ::= hyphen | simple ( ' ' simple ) * | ''
hyphen ::= partial ' - ' partial
simple ::= primitive | partial | tilde | caret
primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial
partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )?
xr ::= 'x' | 'X' | '*' | nr
nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) *
tilde ::= '~' partial
caret ::= '^' partial
qualifier ::= ( '-' pre )? ( '+' build )?
pre ::= parts
build ::= parts
parts ::= part ( '.' part ) *
part ::= nr | [-0-9A-Za-z]+
```
## Functions
All methods and classes take a final `options` object argument. All
options in this object are `false` by default. The options supported
are:
- `loose`: Be more forgiving about not-quite-valid semver strings.
(Any resulting output will always be 100% strict compliant, of
course.) For backwards compatibility reasons, if the `options`
argument is a boolean value instead of an object, it is interpreted
to be the `loose` param.
- `includePrerelease`: Set to suppress the [default
behavior](https://github.com/npm/node-semver#prerelease-tags) of
excluding prerelease tagged versions from ranges unless they are
explicitly opted into.
Strict-mode Comparators and Ranges will be strict about the SemVer
strings that they parse.
* `valid(v)`: Return the parsed version, or null if it's not valid.
* `inc(v, releaseType, options, identifier, identifierBase)`:
Return the version incremented by the release
type (`major`, `premajor`, `minor`, `preminor`, `patch`,
`prepatch`, `prerelease`, or `release`), or null if it's not valid
* `premajor` in one call will bump the version up to the next major
version and down to a prerelease of that major version.
`preminor`, and `prepatch` work the same way.
* If called from a non-prerelease version, `prerelease` will work the
same as `prepatch`. It increments the patch version and then makes a
prerelease. If the input version is already a prerelease it simply
increments it.
* `release` will remove any prerelease part of the version.
* `identifier` can be used to prefix `premajor`, `preminor`,
`prepatch`, or `prerelease` version increments. `identifierBase`
is the base to be used for the `prerelease` identifier.
* `prerelease(v)`: Returns an array of prerelease components, or null
if none exist. Example: `prerelease('1.2.3-alpha.1') -> ['alpha', 1]`
* `major(v)`: Return the major version number.
* `minor(v)`: Return the minor version number.
* `patch(v)`: Return the patch version number.
* `intersects(r1, r2, loose)`: Return true if the two supplied ranges
or comparators intersect.
* `parse(v)`: Attempt to parse a string as a semantic version, returning either
a `SemVer` object or `null`.
### Comparison
* `gt(v1, v2)`: `v1 > v2`
* `gte(v1, v2)`: `v1 >= v2`
* `lt(v1, v2)`: `v1 < v2`
* `lte(v1, v2)`: `v1 <= v2`
* `eq(v1, v2)`: `v1 == v2` This is true if they're logically equivalent,
even if they're not the same string. You already know how to
compare strings.
* `neq(v1, v2)`: `v1 != v2` The opposite of `eq`.
* `cmp(v1, comparator, v2)`: Pass in a comparison string, and it'll call
the corresponding function above. `"==="` and `"!=="` do simple
string comparison, but are included for completeness. Throws if an
invalid comparison string is provided.
* `compare(v1, v2)`: Return `0` if `v1 == v2`, or `1` if `v1` is greater, or `-1` if
`v2` is greater. Sorts in ascending order if passed to `Array.sort()`.
* `rcompare(v1, v2)`: The reverse of `compare`. Sorts an array of versions
in descending order when passed to `Array.sort()`.
* `compareBuild(v1, v2)`: The same as `compare` but considers `build` when two versions
are equal. Sorts in ascending order if passed to `Array.sort()`.
* `compareLoose(v1, v2)`: Short for `compare(v1, v2, { loose: true })`.
* `diff(v1, v2)`: Returns the difference between two versions by the release type
(`major`, `premajor`, `minor`, `preminor`, `patch`, `prepatch`, or `prerelease`),
or null if the versions are the same.
### Sorting
* `sort(versions)`: Returns a sorted array of versions based on the `compareBuild`
function.
* `rsort(versions)`: The reverse of `sort`. Returns an array of versions based on
the `compareBuild` function in descending order.
### Comparators
* `intersects(comparator)`: Return true if the comparators intersect
### Ranges
* `validRange(range)`: Return the valid range or null if it's not valid.
* `satisfies(version, range)`: Return true if the version satisfies the
range.
* `maxSatisfying(versions, range)`: Return the highest version in the list
that satisfies the range, or `null` if none of them do.
* `minSatisfying(versions, range)`: Return the lowest version in the list
that satisfies the range, or `null` if none of them do.
* `minVersion(range)`: Return the lowest version that can match
the given range.
* `gtr(version, range)`: Return `true` if the version is greater than all the
versions possible in the range.
* `ltr(version, range)`: Return `true` if the version is less than all the
versions possible in the range.
* `outside(version, range, hilo)`: Return true if the version is outside
the bounds of the range in either the high or low direction. The
`hilo` argument must be either the string `'>'` or `'<'`. (This is
the function called by `gtr` and `ltr`.)
* `intersects(range)`: Return true if any of the range comparators intersect.
* `simplifyRange(versions, range)`: Return a "simplified" range that
matches the same items in the `versions` list as the range specified. Note
that it does *not* guarantee that it would match the same versions in all
cases, only for the set of versions provided. This is useful when
generating ranges by joining together multiple versions with `||`
programmatically, to provide the user with something a bit more
ergonomic. If the provided range is shorter in string-length than the
generated range, then that is returned.
* `subset(subRange, superRange)`: Return `true` if the `subRange` range is
entirely contained by the `superRange` range.
Note that, since ranges may be non-contiguous, a version might not be
greater than a range, less than a range, *or* satisfy a range! For
example, the range `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9`
until `2.0.0`, so version `1.2.10` would not be greater than the
range (because `2.0.1` satisfies, which is higher), nor less than the
range (since `1.2.8` satisfies, which is lower), and it also does not
satisfy the range.
If you want to know if a version satisfies or does not satisfy a
range, use the `satisfies(version, range)` function.
### Coercion
* `coerce(version, options)`: Coerces a string to semver if possible
This aims to provide a very forgiving translation of a non-semver string to
semver. It looks for the first digit in a string and consumes all
remaining characters which satisfy at least a partial semver (e.g., `1`,
`1.2`, `1.2.3`) up to the max permitted length (256 characters). Longer
versions are simply truncated (`4.6.3.9.2-alpha2` becomes `4.6.3`). All
surrounding text is simply ignored (`v3.4 replaces v3.3.1` becomes
`3.4.0`). Only text which lacks digits will fail coercion (`version one`
is not valid). The maximum length for any semver component considered for
coercion is 16 characters; longer components will be ignored
(`10000000000000000.4.7.4` becomes `4.7.4`). The maximum value for any
semver component is `Number.MAX_SAFE_INTEGER || (2**53 - 1)`; higher value
components are invalid (`9999999999999999.4.7.4` is likely invalid).
If the `options.rtl` flag is set, then `coerce` will return the right-most
coercible tuple that does not share an ending index with a longer coercible
tuple. For example, `1.2.3.4` will return `2.3.4` in rtl mode, not
`4.0.0`. `1.2.3/4` will return `4.0.0`, because the `4` is not a part of
any other overlapping SemVer tuple.
If the `options.includePrerelease` flag is set, then the `coerce` result will contain
prerelease and build parts of a version. For example, `1.2.3.4-rc.1+rev.2`
will preserve prerelease `rc.1` and build `rev.2` in the result.
### Clean
* `clean(version)`: Clean a string to be a valid semver if possible
This will return a cleaned and trimmed semver version. If the provided
version is not valid a null will be returned. This does not work for
ranges.
ex.
* `s.clean(' = v 2.1.5foo')`: `null`
* `s.clean(' = v 2.1.5foo', { loose: true })`: `'2.1.5-foo'`
* `s.clean(' = v 2.1.5-foo')`: `null`
* `s.clean(' = v 2.1.5-foo', { loose: true })`: `'2.1.5-foo'`
* `s.clean('=v2.1.5')`: `'2.1.5'`
* `s.clean(' =v2.1.5')`: `'2.1.5'`
* `s.clean(' 2.1.5 ')`: `'2.1.5'`
* `s.clean('~1.0.0')`: `null`
## Constants
As a convenience, helper constants are exported to provide information about what `node-semver` supports:
### `RELEASE_TYPES`
- major
- premajor
- minor
- preminor
- patch
- prepatch
- prerelease
```
const semver = require('semver');
if (semver.RELEASE_TYPES.includes(arbitraryUserInput)) {
console.log('This is a valid release type!');
} else {
console.warn('This is NOT a valid release type!');
}
```
### `SEMVER_SPEC_VERSION`
2.0.0
```
const semver = require('semver');
console.log('We are currently using the semver specification version:', semver.SEMVER_SPEC_VERSION);
```
## Exported Modules
<!--
TODO: Make sure that all of these items are documented (classes aren't,
eg), and then pull the module name into the documentation for that specific
thing.
-->
You may pull in just the part of this semver utility that you need if you
are sensitive to packing and tree-shaking concerns. The main
`require('semver')` export uses getter functions to lazily load the parts
of the API that are used.
The following modules are available:
* `require('semver')`
* `require('semver/classes')`
* `require('semver/classes/comparator')`
* `require('semver/classes/range')`
* `require('semver/classes/semver')`
* `require('semver/functions/clean')`
* `require('semver/functions/cmp')`
* `require('semver/functions/coerce')`
* `require('semver/functions/compare')`
* `require('semver/functions/compare-build')`
* `require('semver/functions/compare-loose')`
* `require('semver/functions/diff')`
* `require('semver/functions/eq')`
* `require('semver/functions/gt')`
* `require('semver/functions/gte')`
* `require('semver/functions/inc')`
* `require('semver/functions/lt')`
* `require('semver/functions/lte')`
* `require('semver/functions/major')`
* `require('semver/functions/minor')`
* `require('semver/functions/neq')`
* `require('semver/functions/parse')`
* `require('semver/functions/patch')`
* `require('semver/functions/prerelease')`
* `require('semver/functions/rcompare')`
* `require('semver/functions/rsort')`
* `require('semver/functions/satisfies')`
* `require('semver/functions/sort')`
* `require('semver/functions/valid')`
* `require('semver/ranges/gtr')`
* `require('semver/ranges/intersects')`
* `require('semver/ranges/ltr')`
* `require('semver/ranges/max-satisfying')`
* `require('semver/ranges/min-satisfying')`
* `require('semver/ranges/min-version')`
* `require('semver/ranges/outside')`
* `require('semver/ranges/simplify')`
* `require('semver/ranges/subset')`
* `require('semver/ranges/to-comparators')`
* `require('semver/ranges/valid')`

191
node_modules/semver/bin/semver.js generated vendored Executable file
View File

@ -0,0 +1,191 @@
#!/usr/bin/env node
// Standalone semver comparison program.
// Exits successfully and prints matching version(s) if
// any supplied version is valid and passes all tests.
'use strict'
const argv = process.argv.slice(2)
let versions = []
const range = []
let inc = null
const version = require('../package.json').version
let loose = false
let includePrerelease = false
let coerce = false
let rtl = false
let identifier
let identifierBase
const semver = require('../')
const parseOptions = require('../internal/parse-options')
let reverse = false
let options = {}
const main = () => {
if (!argv.length) {
return help()
}
while (argv.length) {
let a = argv.shift()
const indexOfEqualSign = a.indexOf('=')
if (indexOfEqualSign !== -1) {
const value = a.slice(indexOfEqualSign + 1)
a = a.slice(0, indexOfEqualSign)
argv.unshift(value)
}
switch (a) {
case '-rv': case '-rev': case '--rev': case '--reverse':
reverse = true
break
case '-l': case '--loose':
loose = true
break
case '-p': case '--include-prerelease':
includePrerelease = true
break
case '-v': case '--version':
versions.push(argv.shift())
break
case '-i': case '--inc': case '--increment':
switch (argv[0]) {
case 'major': case 'minor': case 'patch': case 'prerelease':
case 'premajor': case 'preminor': case 'prepatch':
case 'release':
inc = argv.shift()
break
default:
inc = 'patch'
break
}
break
case '--preid':
identifier = argv.shift()
break
case '-r': case '--range':
range.push(argv.shift())
break
case '-n':
identifierBase = argv.shift()
if (identifierBase === 'false') {
identifierBase = false
}
break
case '-c': case '--coerce':
coerce = true
break
case '--rtl':
rtl = true
break
case '--ltr':
rtl = false
break
case '-h': case '--help': case '-?':
return help()
default:
versions.push(a)
break
}
}
options = parseOptions({ loose, includePrerelease, rtl })
versions = versions.map((v) => {
return coerce ? (semver.coerce(v, options) || { version: v }).version : v
}).filter((v) => {
return semver.valid(v, options)
})
if (!versions.length) {
return fail()
}
if (inc && (versions.length !== 1 || range.length)) {
return failInc()
}
for (let i = 0, l = range.length; i < l; i++) {
versions = versions.filter((v) => {
return semver.satisfies(v, range[i], options)
})
if (!versions.length) {
return fail()
}
}
versions
.sort((a, b) => semver[reverse ? 'rcompare' : 'compare'](a, b, options))
.map(v => semver.clean(v, options))
.map(v => inc ? semver.inc(v, inc, options, identifier, identifierBase) : v)
.forEach(v => console.log(v))
}
const failInc = () => {
console.error('--inc can only be used on a single version with no range')
fail()
}
const fail = () => process.exit(1)
const help = () => console.log(
`SemVer ${version}
A JavaScript implementation of the https://semver.org/ specification
Copyright Isaac Z. Schlueter
Usage: semver [options] <version> [<version> [...]]
Prints valid versions sorted by SemVer precedence
Options:
-r --range <range>
Print versions that match the specified range.
-i --increment [<level>]
Increment a version by the specified level. Level can
be one of: major, minor, patch, premajor, preminor,
prepatch, prerelease, or release. Default level is 'patch'.
Only one version may be specified.
--preid <identifier>
Identifier to be used to prefix premajor, preminor,
prepatch or prerelease version increments.
-l --loose
Interpret versions and ranges loosely
-p --include-prerelease
Always include prerelease versions in range matching
-c --coerce
Coerce a string into SemVer if possible
(does not imply --loose)
--rtl
Coerce version strings right to left
--ltr
Coerce version strings left to right (default)
-n <base>
Base number to be used for the prerelease identifier.
Can be either 0 or 1, or false to omit the number altogether.
Defaults to 0.
Program exits successfully if any valid version satisfies
all supplied ranges, and prints all satisfying versions.
If no satisfying versions are found, then exits failure.
Versions are printed in ascending order, so supplying
multiple versions to the utility will just sort them.`)
main()

143
node_modules/semver/classes/comparator.js generated vendored Normal file
View File

@ -0,0 +1,143 @@
'use strict'
const ANY = Symbol('SemVer ANY')
// hoisted class for cyclic dependency
class Comparator {
static get ANY () {
return ANY
}
constructor (comp, options) {
options = parseOptions(options)
if (comp instanceof Comparator) {
if (comp.loose === !!options.loose) {
return comp
} else {
comp = comp.value
}
}
comp = comp.trim().split(/\s+/).join(' ')
debug('comparator', comp, options)
this.options = options
this.loose = !!options.loose
this.parse(comp)
if (this.semver === ANY) {
this.value = ''
} else {
this.value = this.operator + this.semver.version
}
debug('comp', this)
}
parse (comp) {
const r = this.options.loose ? re[t.COMPARATORLOOSE] : re[t.COMPARATOR]
const m = comp.match(r)
if (!m) {
throw new TypeError(`Invalid comparator: ${comp}`)
}
this.operator = m[1] !== undefined ? m[1] : ''
if (this.operator === '=') {
this.operator = ''
}
// if it literally is just '>' or '' then allow anything.
if (!m[2]) {
this.semver = ANY
} else {
this.semver = new SemVer(m[2], this.options.loose)
}
}
toString () {
return this.value
}
test (version) {
debug('Comparator.test', version, this.options.loose)
if (this.semver === ANY || version === ANY) {
return true
}
if (typeof version === 'string') {
try {
version = new SemVer(version, this.options)
} catch (er) {
return false
}
}
return cmp(version, this.operator, this.semver, this.options)
}
intersects (comp, options) {
if (!(comp instanceof Comparator)) {
throw new TypeError('a Comparator is required')
}
if (this.operator === '') {
if (this.value === '') {
return true
}
return new Range(comp.value, options).test(this.value)
} else if (comp.operator === '') {
if (comp.value === '') {
return true
}
return new Range(this.value, options).test(comp.semver)
}
options = parseOptions(options)
// Special cases where nothing can possibly be lower
if (options.includePrerelease &&
(this.value === '<0.0.0-0' || comp.value === '<0.0.0-0')) {
return false
}
if (!options.includePrerelease &&
(this.value.startsWith('<0.0.0') || comp.value.startsWith('<0.0.0'))) {
return false
}
// Same direction increasing (> or >=)
if (this.operator.startsWith('>') && comp.operator.startsWith('>')) {
return true
}
// Same direction decreasing (< or <=)
if (this.operator.startsWith('<') && comp.operator.startsWith('<')) {
return true
}
// same SemVer and both sides are inclusive (<= or >=)
if (
(this.semver.version === comp.semver.version) &&
this.operator.includes('=') && comp.operator.includes('=')) {
return true
}
// opposite directions less than
if (cmp(this.semver, '<', comp.semver, options) &&
this.operator.startsWith('>') && comp.operator.startsWith('<')) {
return true
}
// opposite directions greater than
if (cmp(this.semver, '>', comp.semver, options) &&
this.operator.startsWith('<') && comp.operator.startsWith('>')) {
return true
}
return false
}
}
module.exports = Comparator
const parseOptions = require('../internal/parse-options')
const { safeRe: re, t } = require('../internal/re')
const cmp = require('../functions/cmp')
const debug = require('../internal/debug')
const SemVer = require('./semver')
const Range = require('./range')

7
node_modules/semver/classes/index.js generated vendored Normal file
View File

@ -0,0 +1,7 @@
'use strict'
module.exports = {
SemVer: require('./semver.js'),
Range: require('./range.js'),
Comparator: require('./comparator.js'),
}

557
node_modules/semver/classes/range.js generated vendored Normal file
View File

@ -0,0 +1,557 @@
'use strict'
const SPACE_CHARACTERS = /\s+/g
// hoisted class for cyclic dependency
class Range {
constructor (range, options) {
options = parseOptions(options)
if (range instanceof Range) {
if (
range.loose === !!options.loose &&
range.includePrerelease === !!options.includePrerelease
) {
return range
} else {
return new Range(range.raw, options)
}
}
if (range instanceof Comparator) {
// just put it in the set and return
this.raw = range.value
this.set = [[range]]
this.formatted = undefined
return this
}
this.options = options
this.loose = !!options.loose
this.includePrerelease = !!options.includePrerelease
// First reduce all whitespace as much as possible so we do not have to rely
// on potentially slow regexes like \s*. This is then stored and used for
// future error messages as well.
this.raw = range.trim().replace(SPACE_CHARACTERS, ' ')
// First, split on ||
this.set = this.raw
.split('||')
// map the range to a 2d array of comparators
.map(r => this.parseRange(r.trim()))
// throw out any comparator lists that are empty
// this generally means that it was not a valid range, which is allowed
// in loose mode, but will still throw if the WHOLE range is invalid.
.filter(c => c.length)
if (!this.set.length) {
throw new TypeError(`Invalid SemVer Range: ${this.raw}`)
}
// if we have any that are not the null set, throw out null sets.
if (this.set.length > 1) {
// keep the first one, in case they're all null sets
const first = this.set[0]
this.set = this.set.filter(c => !isNullSet(c[0]))
if (this.set.length === 0) {
this.set = [first]
} else if (this.set.length > 1) {
// if we have any that are *, then the range is just *
for (const c of this.set) {
if (c.length === 1 && isAny(c[0])) {
this.set = [c]
break
}
}
}
}
this.formatted = undefined
}
get range () {
if (this.formatted === undefined) {
this.formatted = ''
for (let i = 0; i < this.set.length; i++) {
if (i > 0) {
this.formatted += '||'
}
const comps = this.set[i]
for (let k = 0; k < comps.length; k++) {
if (k > 0) {
this.formatted += ' '
}
this.formatted += comps[k].toString().trim()
}
}
}
return this.formatted
}
format () {
return this.range
}
toString () {
return this.range
}
parseRange (range) {
// memoize range parsing for performance.
// this is a very hot path, and fully deterministic.
const memoOpts =
(this.options.includePrerelease && FLAG_INCLUDE_PRERELEASE) |
(this.options.loose && FLAG_LOOSE)
const memoKey = memoOpts + ':' + range
const cached = cache.get(memoKey)
if (cached) {
return cached
}
const loose = this.options.loose
// `1.2.3 - 1.2.4` => `>=1.2.3 <=1.2.4`
const hr = loose ? re[t.HYPHENRANGELOOSE] : re[t.HYPHENRANGE]
range = range.replace(hr, hyphenReplace(this.options.includePrerelease))
debug('hyphen replace', range)
// `> 1.2.3 < 1.2.5` => `>1.2.3 <1.2.5`
range = range.replace(re[t.COMPARATORTRIM], comparatorTrimReplace)
debug('comparator trim', range)
// `~ 1.2.3` => `~1.2.3`
range = range.replace(re[t.TILDETRIM], tildeTrimReplace)
debug('tilde trim', range)
// `^ 1.2.3` => `^1.2.3`
range = range.replace(re[t.CARETTRIM], caretTrimReplace)
debug('caret trim', range)
// At this point, the range is completely trimmed and
// ready to be split into comparators.
let rangeList = range
.split(' ')
.map(comp => parseComparator(comp, this.options))
.join(' ')
.split(/\s+/)
// >=0.0.0 is equivalent to *
.map(comp => replaceGTE0(comp, this.options))
if (loose) {
// in loose mode, throw out any that are not valid comparators
rangeList = rangeList.filter(comp => {
debug('loose invalid filter', comp, this.options)
return !!comp.match(re[t.COMPARATORLOOSE])
})
}
debug('range list', rangeList)
// if any comparators are the null set, then replace with JUST null set
// if more than one comparator, remove any * comparators
// also, don't include the same comparator more than once
const rangeMap = new Map()
const comparators = rangeList.map(comp => new Comparator(comp, this.options))
for (const comp of comparators) {
if (isNullSet(comp)) {
return [comp]
}
rangeMap.set(comp.value, comp)
}
if (rangeMap.size > 1 && rangeMap.has('')) {
rangeMap.delete('')
}
const result = [...rangeMap.values()]
cache.set(memoKey, result)
return result
}
intersects (range, options) {
if (!(range instanceof Range)) {
throw new TypeError('a Range is required')
}
return this.set.some((thisComparators) => {
return (
isSatisfiable(thisComparators, options) &&
range.set.some((rangeComparators) => {
return (
isSatisfiable(rangeComparators, options) &&
thisComparators.every((thisComparator) => {
return rangeComparators.every((rangeComparator) => {
return thisComparator.intersects(rangeComparator, options)
})
})
)
})
)
})
}
// if ANY of the sets match ALL of its comparators, then pass
test (version) {
if (!version) {
return false
}
if (typeof version === 'string') {
try {
version = new SemVer(version, this.options)
} catch (er) {
return false
}
}
for (let i = 0; i < this.set.length; i++) {
if (testSet(this.set[i], version, this.options)) {
return true
}
}
return false
}
}
module.exports = Range
const LRU = require('../internal/lrucache')
const cache = new LRU()
const parseOptions = require('../internal/parse-options')
const Comparator = require('./comparator')
const debug = require('../internal/debug')
const SemVer = require('./semver')
const {
safeRe: re,
t,
comparatorTrimReplace,
tildeTrimReplace,
caretTrimReplace,
} = require('../internal/re')
const { FLAG_INCLUDE_PRERELEASE, FLAG_LOOSE } = require('../internal/constants')
const isNullSet = c => c.value === '<0.0.0-0'
const isAny = c => c.value === ''
// take a set of comparators and determine whether there
// exists a version which can satisfy it
const isSatisfiable = (comparators, options) => {
let result = true
const remainingComparators = comparators.slice()
let testComparator = remainingComparators.pop()
while (result && remainingComparators.length) {
result = remainingComparators.every((otherComparator) => {
return testComparator.intersects(otherComparator, options)
})
testComparator = remainingComparators.pop()
}
return result
}
// comprised of xranges, tildes, stars, and gtlt's at this point.
// already replaced the hyphen ranges
// turn into a set of JUST comparators.
const parseComparator = (comp, options) => {
comp = comp.replace(re[t.BUILD], '')
debug('comp', comp, options)
comp = replaceCarets(comp, options)
debug('caret', comp)
comp = replaceTildes(comp, options)
debug('tildes', comp)
comp = replaceXRanges(comp, options)
debug('xrange', comp)
comp = replaceStars(comp, options)
debug('stars', comp)
return comp
}
const isX = id => !id || id.toLowerCase() === 'x' || id === '*'
// ~, ~> --> * (any, kinda silly)
// ~2, ~2.x, ~2.x.x, ~>2, ~>2.x ~>2.x.x --> >=2.0.0 <3.0.0-0
// ~2.0, ~2.0.x, ~>2.0, ~>2.0.x --> >=2.0.0 <2.1.0-0
// ~1.2, ~1.2.x, ~>1.2, ~>1.2.x --> >=1.2.0 <1.3.0-0
// ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0
// ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0
// ~0.0.1 --> >=0.0.1 <0.1.0-0
const replaceTildes = (comp, options) => {
return comp
.trim()
.split(/\s+/)
.map((c) => replaceTilde(c, options))
.join(' ')
}
const replaceTilde = (comp, options) => {
const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE]
return comp.replace(r, (_, M, m, p, pr) => {
debug('tilde', comp, _, M, m, p, pr)
let ret
if (isX(M)) {
ret = ''
} else if (isX(m)) {
ret = `>=${M}.0.0 <${+M + 1}.0.0-0`
} else if (isX(p)) {
// ~1.2 == >=1.2.0 <1.3.0-0
ret = `>=${M}.${m}.0 <${M}.${+m + 1}.0-0`
} else if (pr) {
debug('replaceTilde pr', pr)
ret = `>=${M}.${m}.${p}-${pr
} <${M}.${+m + 1}.0-0`
} else {
// ~1.2.3 == >=1.2.3 <1.3.0-0
ret = `>=${M}.${m}.${p
} <${M}.${+m + 1}.0-0`
}
debug('tilde return', ret)
return ret
})
}
// ^ --> * (any, kinda silly)
// ^2, ^2.x, ^2.x.x --> >=2.0.0 <3.0.0-0
// ^2.0, ^2.0.x --> >=2.0.0 <3.0.0-0
// ^1.2, ^1.2.x --> >=1.2.0 <2.0.0-0
// ^1.2.3 --> >=1.2.3 <2.0.0-0
// ^1.2.0 --> >=1.2.0 <2.0.0-0
// ^0.0.1 --> >=0.0.1 <0.0.2-0
// ^0.1.0 --> >=0.1.0 <0.2.0-0
const replaceCarets = (comp, options) => {
return comp
.trim()
.split(/\s+/)
.map((c) => replaceCaret(c, options))
.join(' ')
}
const replaceCaret = (comp, options) => {
debug('caret', comp, options)
const r = options.loose ? re[t.CARETLOOSE] : re[t.CARET]
const z = options.includePrerelease ? '-0' : ''
return comp.replace(r, (_, M, m, p, pr) => {
debug('caret', comp, _, M, m, p, pr)
let ret
if (isX(M)) {
ret = ''
} else if (isX(m)) {
ret = `>=${M}.0.0${z} <${+M + 1}.0.0-0`
} else if (isX(p)) {
if (M === '0') {
ret = `>=${M}.${m}.0${z} <${M}.${+m + 1}.0-0`
} else {
ret = `>=${M}.${m}.0${z} <${+M + 1}.0.0-0`
}
} else if (pr) {
debug('replaceCaret pr', pr)
if (M === '0') {
if (m === '0') {
ret = `>=${M}.${m}.${p}-${pr
} <${M}.${m}.${+p + 1}-0`
} else {
ret = `>=${M}.${m}.${p}-${pr
} <${M}.${+m + 1}.0-0`
}
} else {
ret = `>=${M}.${m}.${p}-${pr
} <${+M + 1}.0.0-0`
}
} else {
debug('no pr')
if (M === '0') {
if (m === '0') {
ret = `>=${M}.${m}.${p
}${z} <${M}.${m}.${+p + 1}-0`
} else {
ret = `>=${M}.${m}.${p
}${z} <${M}.${+m + 1}.0-0`
}
} else {
ret = `>=${M}.${m}.${p
} <${+M + 1}.0.0-0`
}
}
debug('caret return', ret)
return ret
})
}
const replaceXRanges = (comp, options) => {
debug('replaceXRanges', comp, options)
return comp
.split(/\s+/)
.map((c) => replaceXRange(c, options))
.join(' ')
}
const replaceXRange = (comp, options) => {
comp = comp.trim()
const r = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE]
return comp.replace(r, (ret, gtlt, M, m, p, pr) => {
debug('xRange', comp, ret, gtlt, M, m, p, pr)
const xM = isX(M)
const xm = xM || isX(m)
const xp = xm || isX(p)
const anyX = xp
if (gtlt === '=' && anyX) {
gtlt = ''
}
// if we're including prereleases in the match, then we need
// to fix this to -0, the lowest possible prerelease value
pr = options.includePrerelease ? '-0' : ''
if (xM) {
if (gtlt === '>' || gtlt === '<') {
// nothing is allowed
ret = '<0.0.0-0'
} else {
// nothing is forbidden
ret = '*'
}
} else if (gtlt && anyX) {
// we know patch is an x, because we have any x at all.
// replace X with 0
if (xm) {
m = 0
}
p = 0
if (gtlt === '>') {
// >1 => >=2.0.0
// >1.2 => >=1.3.0
gtlt = '>='
if (xm) {
M = +M + 1
m = 0
p = 0
} else {
m = +m + 1
p = 0
}
} else if (gtlt === '<=') {
// <=0.7.x is actually <0.8.0, since any 0.7.x should
// pass. Similarly, <=7.x is actually <8.0.0, etc.
gtlt = '<'
if (xm) {
M = +M + 1
} else {
m = +m + 1
}
}
if (gtlt === '<') {
pr = '-0'
}
ret = `${gtlt + M}.${m}.${p}${pr}`
} else if (xm) {
ret = `>=${M}.0.0${pr} <${+M + 1}.0.0-0`
} else if (xp) {
ret = `>=${M}.${m}.0${pr
} <${M}.${+m + 1}.0-0`
}
debug('xRange return', ret)
return ret
})
}
// Because * is AND-ed with everything else in the comparator,
// and '' means "any version", just remove the *s entirely.
const replaceStars = (comp, options) => {
debug('replaceStars', comp, options)
// Looseness is ignored here. star is always as loose as it gets!
return comp
.trim()
.replace(re[t.STAR], '')
}
const replaceGTE0 = (comp, options) => {
debug('replaceGTE0', comp, options)
return comp
.trim()
.replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '')
}
// This function is passed to string.replace(re[t.HYPHENRANGE])
// M, m, patch, prerelease, build
// 1.2 - 3.4.5 => >=1.2.0 <=3.4.5
// 1.2.3 - 3.4 => >=1.2.0 <3.5.0-0 Any 3.4.x will do
// 1.2 - 3.4 => >=1.2.0 <3.5.0-0
// TODO build?
const hyphenReplace = incPr => ($0,
from, fM, fm, fp, fpr, fb,
to, tM, tm, tp, tpr) => {
if (isX(fM)) {
from = ''
} else if (isX(fm)) {
from = `>=${fM}.0.0${incPr ? '-0' : ''}`
} else if (isX(fp)) {
from = `>=${fM}.${fm}.0${incPr ? '-0' : ''}`
} else if (fpr) {
from = `>=${from}`
} else {
from = `>=${from}${incPr ? '-0' : ''}`
}
if (isX(tM)) {
to = ''
} else if (isX(tm)) {
to = `<${+tM + 1}.0.0-0`
} else if (isX(tp)) {
to = `<${tM}.${+tm + 1}.0-0`
} else if (tpr) {
to = `<=${tM}.${tm}.${tp}-${tpr}`
} else if (incPr) {
to = `<${tM}.${tm}.${+tp + 1}-0`
} else {
to = `<=${to}`
}
return `${from} ${to}`.trim()
}
const testSet = (set, version, options) => {
for (let i = 0; i < set.length; i++) {
if (!set[i].test(version)) {
return false
}
}
if (version.prerelease.length && !options.includePrerelease) {
// Find the set of versions that are allowed to have prereleases
// For example, ^1.2.3-pr.1 desugars to >=1.2.3-pr.1 <2.0.0
// That should allow `1.2.3-pr.2` to pass.
// However, `1.2.4-alpha.notready` should NOT be allowed,
// even though it's within the range set by the comparators.
for (let i = 0; i < set.length; i++) {
debug(set[i].semver)
if (set[i].semver === Comparator.ANY) {
continue
}
if (set[i].semver.prerelease.length > 0) {
const allowed = set[i].semver
if (allowed.major === version.major &&
allowed.minor === version.minor &&
allowed.patch === version.patch) {
return true
}
}
}
// Version has a -pre, but it's not one of the ones we like.
return false
}
return true
}

333
node_modules/semver/classes/semver.js generated vendored Normal file
View File

@ -0,0 +1,333 @@
'use strict'
const debug = require('../internal/debug')
const { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants')
const { safeRe: re, t } = require('../internal/re')
const parseOptions = require('../internal/parse-options')
const { compareIdentifiers } = require('../internal/identifiers')
class SemVer {
constructor (version, options) {
options = parseOptions(options)
if (version instanceof SemVer) {
if (version.loose === !!options.loose &&
version.includePrerelease === !!options.includePrerelease) {
return version
} else {
version = version.version
}
} else if (typeof version !== 'string') {
throw new TypeError(`Invalid version. Must be a string. Got type "${typeof version}".`)
}
if (version.length > MAX_LENGTH) {
throw new TypeError(
`version is longer than ${MAX_LENGTH} characters`
)
}
debug('SemVer', version, options)
this.options = options
this.loose = !!options.loose
// this isn't actually relevant for versions, but keep it so that we
// don't run into trouble passing this.options around.
this.includePrerelease = !!options.includePrerelease
const m = version.trim().match(options.loose ? re[t.LOOSE] : re[t.FULL])
if (!m) {
throw new TypeError(`Invalid Version: ${version}`)
}
this.raw = version
// these are actually numbers
this.major = +m[1]
this.minor = +m[2]
this.patch = +m[3]
if (this.major > MAX_SAFE_INTEGER || this.major < 0) {
throw new TypeError('Invalid major version')
}
if (this.minor > MAX_SAFE_INTEGER || this.minor < 0) {
throw new TypeError('Invalid minor version')
}
if (this.patch > MAX_SAFE_INTEGER || this.patch < 0) {
throw new TypeError('Invalid patch version')
}
// numberify any prerelease numeric ids
if (!m[4]) {
this.prerelease = []
} else {
this.prerelease = m[4].split('.').map((id) => {
if (/^[0-9]+$/.test(id)) {
const num = +id
if (num >= 0 && num < MAX_SAFE_INTEGER) {
return num
}
}
return id
})
}
this.build = m[5] ? m[5].split('.') : []
this.format()
}
format () {
this.version = `${this.major}.${this.minor}.${this.patch}`
if (this.prerelease.length) {
this.version += `-${this.prerelease.join('.')}`
}
return this.version
}
toString () {
return this.version
}
compare (other) {
debug('SemVer.compare', this.version, this.options, other)
if (!(other instanceof SemVer)) {
if (typeof other === 'string' && other === this.version) {
return 0
}
other = new SemVer(other, this.options)
}
if (other.version === this.version) {
return 0
}
return this.compareMain(other) || this.comparePre(other)
}
compareMain (other) {
if (!(other instanceof SemVer)) {
other = new SemVer(other, this.options)
}
if (this.major < other.major) {
return -1
}
if (this.major > other.major) {
return 1
}
if (this.minor < other.minor) {
return -1
}
if (this.minor > other.minor) {
return 1
}
if (this.patch < other.patch) {
return -1
}
if (this.patch > other.patch) {
return 1
}
return 0
}
comparePre (other) {
if (!(other instanceof SemVer)) {
other = new SemVer(other, this.options)
}
// NOT having a prerelease is > having one
if (this.prerelease.length && !other.prerelease.length) {
return -1
} else if (!this.prerelease.length && other.prerelease.length) {
return 1
} else if (!this.prerelease.length && !other.prerelease.length) {
return 0
}
let i = 0
do {
const a = this.prerelease[i]
const b = other.prerelease[i]
debug('prerelease compare', i, a, b)
if (a === undefined && b === undefined) {
return 0
} else if (b === undefined) {
return 1
} else if (a === undefined) {
return -1
} else if (a === b) {
continue
} else {
return compareIdentifiers(a, b)
}
} while (++i)
}
compareBuild (other) {
if (!(other instanceof SemVer)) {
other = new SemVer(other, this.options)
}
let i = 0
do {
const a = this.build[i]
const b = other.build[i]
debug('build compare', i, a, b)
if (a === undefined && b === undefined) {
return 0
} else if (b === undefined) {
return 1
} else if (a === undefined) {
return -1
} else if (a === b) {
continue
} else {
return compareIdentifiers(a, b)
}
} while (++i)
}
// preminor will bump the version up to the next minor release, and immediately
// down to pre-release. premajor and prepatch work the same way.
inc (release, identifier, identifierBase) {
if (release.startsWith('pre')) {
if (!identifier && identifierBase === false) {
throw new Error('invalid increment argument: identifier is empty')
}
// Avoid an invalid semver results
if (identifier) {
const match = `-${identifier}`.match(this.options.loose ? re[t.PRERELEASELOOSE] : re[t.PRERELEASE])
if (!match || match[1] !== identifier) {
throw new Error(`invalid identifier: ${identifier}`)
}
}
}
switch (release) {
case 'premajor':
this.prerelease.length = 0
this.patch = 0
this.minor = 0
this.major++
this.inc('pre', identifier, identifierBase)
break
case 'preminor':
this.prerelease.length = 0
this.patch = 0
this.minor++
this.inc('pre', identifier, identifierBase)
break
case 'prepatch':
// If this is already a prerelease, it will bump to the next version
// drop any prereleases that might already exist, since they are not
// relevant at this point.
this.prerelease.length = 0
this.inc('patch', identifier, identifierBase)
this.inc('pre', identifier, identifierBase)
break
// If the input is a non-prerelease version, this acts the same as
// prepatch.
case 'prerelease':
if (this.prerelease.length === 0) {
this.inc('patch', identifier, identifierBase)
}
this.inc('pre', identifier, identifierBase)
break
case 'release':
if (this.prerelease.length === 0) {
throw new Error(`version ${this.raw} is not a prerelease`)
}
this.prerelease.length = 0
break
case 'major':
// If this is a pre-major version, bump up to the same major version.
// Otherwise increment major.
// 1.0.0-5 bumps to 1.0.0
// 1.1.0 bumps to 2.0.0
if (
this.minor !== 0 ||
this.patch !== 0 ||
this.prerelease.length === 0
) {
this.major++
}
this.minor = 0
this.patch = 0
this.prerelease = []
break
case 'minor':
// If this is a pre-minor version, bump up to the same minor version.
// Otherwise increment minor.
// 1.2.0-5 bumps to 1.2.0
// 1.2.1 bumps to 1.3.0
if (this.patch !== 0 || this.prerelease.length === 0) {
this.minor++
}
this.patch = 0
this.prerelease = []
break
case 'patch':
// If this is not a pre-release version, it will increment the patch.
// If it is a pre-release it will bump up to the same patch version.
// 1.2.0-5 patches to 1.2.0
// 1.2.0 patches to 1.2.1
if (this.prerelease.length === 0) {
this.patch++
}
this.prerelease = []
break
// This probably shouldn't be used publicly.
// 1.0.0 'pre' would become 1.0.0-0 which is the wrong direction.
case 'pre': {
const base = Number(identifierBase) ? 1 : 0
if (this.prerelease.length === 0) {
this.prerelease = [base]
} else {
let i = this.prerelease.length
while (--i >= 0) {
if (typeof this.prerelease[i] === 'number') {
this.prerelease[i]++
i = -2
}
}
if (i === -1) {
// didn't increment anything
if (identifier === this.prerelease.join('.') && identifierBase === false) {
throw new Error('invalid increment argument: identifier already exists')
}
this.prerelease.push(base)
}
}
if (identifier) {
// 1.2.0-beta.1 bumps to 1.2.0-beta.2,
// 1.2.0-beta.fooblz or 1.2.0-beta bumps to 1.2.0-beta.0
let prerelease = [identifier, base]
if (identifierBase === false) {
prerelease = [identifier]
}
if (compareIdentifiers(this.prerelease[0], identifier) === 0) {
if (isNaN(this.prerelease[1])) {
this.prerelease = prerelease
}
} else {
this.prerelease = prerelease
}
}
break
}
default:
throw new Error(`invalid increment argument: ${release}`)
}
this.raw = this.format()
if (this.build.length) {
this.raw += `+${this.build.join('.')}`
}
return this
}
}
module.exports = SemVer

8
node_modules/semver/functions/clean.js generated vendored Normal file
View File

@ -0,0 +1,8 @@
'use strict'
const parse = require('./parse')
const clean = (version, options) => {
const s = parse(version.trim().replace(/^[=v]+/, ''), options)
return s ? s.version : null
}
module.exports = clean

54
node_modules/semver/functions/cmp.js generated vendored Normal file
View File

@ -0,0 +1,54 @@
'use strict'
const eq = require('./eq')
const neq = require('./neq')
const gt = require('./gt')
const gte = require('./gte')
const lt = require('./lt')
const lte = require('./lte')
const cmp = (a, op, b, loose) => {
switch (op) {
case '===':
if (typeof a === 'object') {
a = a.version
}
if (typeof b === 'object') {
b = b.version
}
return a === b
case '!==':
if (typeof a === 'object') {
a = a.version
}
if (typeof b === 'object') {
b = b.version
}
return a !== b
case '':
case '=':
case '==':
return eq(a, b, loose)
case '!=':
return neq(a, b, loose)
case '>':
return gt(a, b, loose)
case '>=':
return gte(a, b, loose)
case '<':
return lt(a, b, loose)
case '<=':
return lte(a, b, loose)
default:
throw new TypeError(`Invalid operator: ${op}`)
}
}
module.exports = cmp

62
node_modules/semver/functions/coerce.js generated vendored Normal file
View File

@ -0,0 +1,62 @@
'use strict'
const SemVer = require('../classes/semver')
const parse = require('./parse')
const { safeRe: re, t } = require('../internal/re')
const coerce = (version, options) => {
if (version instanceof SemVer) {
return version
}
if (typeof version === 'number') {
version = String(version)
}
if (typeof version !== 'string') {
return null
}
options = options || {}
let match = null
if (!options.rtl) {
match = version.match(options.includePrerelease ? re[t.COERCEFULL] : re[t.COERCE])
} else {
// Find the right-most coercible string that does not share
// a terminus with a more left-ward coercible string.
// Eg, '1.2.3.4' wants to coerce '2.3.4', not '3.4' or '4'
// With includePrerelease option set, '1.2.3.4-rc' wants to coerce '2.3.4-rc', not '2.3.4'
//
// Walk through the string checking with a /g regexp
// Manually set the index so as to pick up overlapping matches.
// Stop when we get a match that ends at the string end, since no
// coercible string can be more right-ward without the same terminus.
const coerceRtlRegex = options.includePrerelease ? re[t.COERCERTLFULL] : re[t.COERCERTL]
let next
while ((next = coerceRtlRegex.exec(version)) &&
(!match || match.index + match[0].length !== version.length)
) {
if (!match ||
next.index + next[0].length !== match.index + match[0].length) {
match = next
}
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length
}
// leave it in a clean state
coerceRtlRegex.lastIndex = -1
}
if (match === null) {
return null
}
const major = match[2]
const minor = match[3] || '0'
const patch = match[4] || '0'
const prerelease = options.includePrerelease && match[5] ? `-${match[5]}` : ''
const build = options.includePrerelease && match[6] ? `+${match[6]}` : ''
return parse(`${major}.${minor}.${patch}${prerelease}${build}`, options)
}
module.exports = coerce

9
node_modules/semver/functions/compare-build.js generated vendored Normal file
View File

@ -0,0 +1,9 @@
'use strict'
const SemVer = require('../classes/semver')
const compareBuild = (a, b, loose) => {
const versionA = new SemVer(a, loose)
const versionB = new SemVer(b, loose)
return versionA.compare(versionB) || versionA.compareBuild(versionB)
}
module.exports = compareBuild

5
node_modules/semver/functions/compare-loose.js generated vendored Normal file
View File

@ -0,0 +1,5 @@
'use strict'
const compare = require('./compare')
const compareLoose = (a, b) => compare(a, b, true)
module.exports = compareLoose

Some files were not shown because too many files have changed in this diff Show More