claude-mem plugin v10.3.3
3
blueprints/benefits/CLAUDE.md
Normal file
@ -0,0 +1,3 @@
|
||||
<claude-mem-context>
|
||||
|
||||
</claude-mem-context>
|
||||
3
blueprints/board/CLAUDE.md
Normal file
@ -0,0 +1,3 @@
|
||||
<claude-mem-context>
|
||||
|
||||
</claude-mem-context>
|
||||
3
blueprints/education/CLAUDE.md
Normal file
@ -0,0 +1,3 @@
|
||||
<claude-mem-context>
|
||||
|
||||
</claude-mem-context>
|
||||
3
blueprints/forum/CLAUDE.md
Normal file
@ -0,0 +1,3 @@
|
||||
<claude-mem-context>
|
||||
|
||||
</claude-mem-context>
|
||||
3
blueprints/membership/CLAUDE.md
Normal file
@ -0,0 +1,3 @@
|
||||
<claude-mem-context>
|
||||
|
||||
</claude-mem-context>
|
||||
3
blueprints/messages/CLAUDE.md
Normal file
@ -0,0 +1,3 @@
|
||||
<claude-mem-context>
|
||||
|
||||
</claude-mem-context>
|
||||
3
blueprints/reports/CLAUDE.md
Normal file
@ -0,0 +1,3 @@
|
||||
<claude-mem-context>
|
||||
|
||||
</claude-mem-context>
|
||||
199
data/nip_verification_2026_02_17.txt
Normal 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
@ -0,0 +1,3 @@
|
||||
<claude-mem-context>
|
||||
|
||||
</claude-mem-context>
|
||||
3
database/migrations/CLAUDE.md
Normal file
@ -0,0 +1,3 @@
|
||||
<claude-mem-context>
|
||||
|
||||
</claude-mem-context>
|
||||
242
docs/CLAUDE-REFERENCE.md
Normal 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
@ -0,0 +1,3 @@
|
||||
<claude-mem-context>
|
||||
|
||||
</claude-mem-context>
|
||||
208
docs/PROJECT_CONTEXT.md
Normal 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
|
||||
|
||||
272
docs/SEO-AUDIT-API-RESEARCH-2026.md
Normal 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
|
||||
323
docs/architecture/diagrams/a2-er-diagram.drawio
Normal 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="<b style="color:#1565C0">1. Użytkownicy</b><font style="font-size:9px;color:#888"> (5 tabel)</font>" 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="<b>users</b> — 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="<b>user_companies</b> — 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="<b>user_company_permissions</b> — 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="<b>user_sessions</b> + <b>user_blocks</b>" 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="<b>oauth_tokens</b> — 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="<b>user_notifications</b> — 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="<b style="color:#fff;font-size:13px">2. Katalog Firm (HUB)</b><font style="font-size:9px;color:#aaa"> (14 tabel)</font>" 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="<b style="color:#FFF59D">companies</b><font color="#ccc"> — 150 firm (centralny hub)</font>" 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="<font color="#ccc"><b>categories</b> | <b>services</b> | <b>competencies</b></font>" 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="<font color="#ccc"><b>company_services</b> | <b>company_competencies</b> (M:M)</font>" 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="<font color="#ccc"><b>certifications</b> | <b>awards</b> | <b>company_events</b></font>" 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="<font color="#ccc"><b>company_contacts</b> | <b>company_social_media</b></font>" 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="<font color="#ccc"><b>company_recommendations</b> | <b>company_citations</b></font>" 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="<font color="#ccc"><b>company_quality_tracking</b> — jakość danych</font>" 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="<font style="font-size:8px;color:#FFF59D">→ Połączona z 20+ tabelami (centralny hub)</font>" 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="<b style="color:#2E7D32">3. Wzbogacanie danych</b><font style="font-size:9px;color:#888"> (5)</font>" 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="<b>people</b> — 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="<b>company_person</b> — 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="<b>company_pkd</b> | <b>company_financial_report</b>" 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="<b>ai_enrichment_proposals</b> — 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="<b style="color:#E65100">4. Analiza Stron WWW</b><font style="font-size:9px;color:#888"> (4)</font>" 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="<b>company_website_content</b> — 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="<b>company_ai_insights</b> — 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="<b>company_website_analysis</b> — 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="<font style="font-size:8px;color:#E65100">SEO, CrUX, headers, GBP, GSC, images</font>" 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="<b style="color:#7B1FA2">5. AI Chat</b><font style="font-size:9px;color:#888"> (5)</font>" 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="<b>ai_chat_conversations</b>" 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="<b>ai_chat_messages</b> — 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="<b>ai_chat_feedback</b> | <b>ai_api_costs</b>" 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="<b>ai_usage_log</b> | <b>ai_rate_limit</b>" 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="<b style="color:#00838F">6. Dojrzałość Cyfrowa</b><font style="font-size:9px;color:#888"> (2)</font>" 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="<b>company_digital_maturity</b> — 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="<b>maturity_assessments</b> — 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="<b style="color:#C62828">7. Forum i Dyskusje</b><font style="font-size:9px;color:#888"> (8 tabel)</font>" 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="<b>forum_topics</b> | <b>forum_replies</b>" 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="<b>forum_attachments</b> | <b>subscriptions</b>" 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="<b>topic_reads</b> | <b>reply_reads</b>" 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="<b>forum_reports</b> | <b>forum_edit_history</b>" 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="<b style="color:#F9A825">8-10. Rada Izby | Wydarzenia | Wiadomości</b>" 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="<b>board_meetings</b> — 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="<b>board_documents</b> — 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="<b>norda_events</b> | <b>event_attendees</b> — 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="<b>private_messages</b> — 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="<b style="color:#2E7D32">11. Ogłoszenia B2B</b><font style="font-size:9px;color:#888"> (4 tabele)</font>" 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="<b>classifieds</b> — 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="<b>classified_reads</b> | <b>interests</b> | <b>questions</b>" 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="<b style="color:#E65100">12-14. Audyty & Raporty</b><font style="font-size:9px;color:#888"> (5)</font>" 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="<b>gbp_audits</b> — 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="<b>gbp_reviews</b> — 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="<b>company_competitors</b> — 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="<b>competitor_snapshots</b> — 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="<b>audit_reports</b> — 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="<b style="color:#00838F">15. Infrastruktura IT</b><font style="font-size:9px;color:#888"> (2)</font>" 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="<b>it_audits</b> — 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="<b>it_collaboration_matches</b> — 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="<b style="color:#7B1FA2">16. Składki Członkowskie</b><font style="font-size:9px;color:#888"> (2)</font>" 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="<b>membership_fees</b> — 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="<b>membership_fee_config</b> — 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="<b style="font-size:13px;color:#1B5E20">17. ZOPK — Zielony Okręg Przemysłowy Kaszubia</b><font style="font-size:9px;color:#888"> (12 tabel — Knowledge Graph)</font>" 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="<b>zopk_projects</b> — 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="<b>zopk_stakeholders</b> | <b>stakeholder_project</b>" 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="<b>zopk_news</b> | <b>zopk_resources</b> | <b>company_link</b>" 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="<font style="font-size:10px;color:#1B5E20"><b>Knowledge Graph:</b></font>" 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="<b>zopk_knowledge_chunk</b> — 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="<b>zopk_knowledge_entity</b> — 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="<b>zopk_knowledge_fact</b> — 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="<b>entity_mention</b> | <b>relation</b> | <b>extraction_job</b>" 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="<b>zopk_news_fetch_job</b> — 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="<b style="color:#C62828">19. Analytics</b><font style="font-size:9px;color:#888"> (4 tabele)</font>" 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="<b>page_views</b> | <b>user_clicks</b>" 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="<b>analytics_daily</b> | <b>popular_pages_daily</b>" 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="<b style="font-size:11px">Views (3):</b> v_companies_full | v_data_quality_stats | v_companies_incomplete<br><b style="font-size:11px">Functions (2):</b> 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="<font style="font-size:11px;color:#888"><b>80+ tabel</b> | <b>19 domen</b> | <b>3 widoki</b> | <b>2 funkcje DB</b> | <b>companies</b> = centralny hub (20+ relacji) | <b>Multi-company</b> via user_companies M:M</font>" 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>
|
||||
BIN
docs/architecture/diagrams/a2-er-diagram.png
Normal file
|
After Width: | Height: | Size: 908 KiB |
142
docs/architecture/diagrams/a3-network-topology.drawio
Normal 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="<b style="font-size:14px">Internet</b><br><font style="font-size:10px;color:#666">nordabiznes.pl<br>DNS: OVH</font>" 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="<b style="font-size:14px;color:#C62828">FortiGate 500D</b><br><font style="font-size:10px">85.237.177.83 (WAN) | NAT → :443<br>SSL-VPN: pula 10.212.134.x</font>" 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="<b style="font-size:16px;color:#555">LAN: 10.22.68.0/24</b><font style="font-size:10px;color:#999"> — Proxmox Cluster (r11-pve-01/02/03)</font>" 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="<b style="color:#E65100">Nginx Proxy Manager</b><br><font style="font-size:10px">R11-REVPROXY-01 (VM 119)<br>10.22.68.250<br>Let's Encrypt SSL</font>" 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="<b style="font-size:14px;color:#1565C0">Produkcja</b>" 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="<b>NORDABIZ-01</b><br><font style="font-size:10px">VM 249 — 10.22.68.249<br>Flask :5000 + PostgreSQL :5432<br>Ubuntu 22.04 LTS</font>" 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="<b>PostgreSQL</b> — nordabiz<br><font style="font-size:10px">80+ tabel | 150 firm | User: nordabiz_app</font>" 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="<b>Gunicorn + Flask</b> :5000<br><font style="font-size:10px">17 blueprintów | 375+ routes | Gemini AI</font>" 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="<b style="font-size:14px;color:#2E7D32">Staging</b>" 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="<b>NORDABIZ-STAGING-01</b><br><font style="font-size:10px">VM 248 — 10.22.68.248<br>Flask + PostgreSQL<br>staging.nordabiznes.pl</font>" 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="<b>PostgreSQL</b> — 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="<b style="font-size:14px;color:#E65100">Usługi Wspierające</b>" 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="<b>Gitea</b><br><font style="font-size:10px">10.22.68.180<br>Repo wewnętrzny</font>" 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="<b>Technitium DNS</b><br><font style="font-size:10px">R11-DNS-01/02<br>10.22.68.171/172</font>" 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="<b>Proxmox PBS</b><br><font style="font-size:10px">10.22.68.127<br>Backup offsite</font>" 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="<b>phpIPAM</b><br><font style="font-size:10px">IP Address Mgmt</font>" 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="<b>Zabbix</b><br><font style="font-size:10px">Monitoring</font>" 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="<b>GitHub</b><br><font style="font-size:10px">Cloud backup</font>" 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="<b style="color:#7B1FA2">Developer (macOS)</b><br><font style="font-size:10px">Docker PostgreSQL :5433<br>Flask dev :5000/5001<br>FortiClient SSL-VPN</font>" 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="<font style="font-size:10px"><b>Legenda:</b> <font color="#1565C0">■</font> Produkcja &nbsp; <font color="#2E7D32">■</font> Staging &nbsp; <font color="#E65100">■</font> Usługi &nbsp; <font color="#C62828">■</font> Firewall &nbsp; <font color="#7B1FA2">■</font> Dev &nbsp;|&nbsp; ── pełna linia = ruch sieciowy &nbsp; - - linia przerywana = zarządzanie</font>" 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>
|
||||
BIN
docs/architecture/diagrams/a3-network-topology.png
Normal file
|
After Width: | Height: | Size: 555 KiB |
179
docs/architecture/diagrams/a4-cicd-pipeline.drawio
Normal 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="<b style="font-size:22px;color:#fff">1</b>" 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="<b style="font-size:13px">Rozwój (DEV)</b>" 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="<font style="font-size:10px">💻 macOS localhost<br>Flask dev server :5000<br>Docker PostgreSQL :5433</font>" 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="<font style="font-size:10px">python -m py_compile app.py<br>pytest tests/unit/ -v</font>" 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="<font style="font-size:10px">git add &amp;&amp; git commit</font>" 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="<font style="font-size:9px;color:#555">Aktualizuj release_notes w app.py!</font>" 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="<b style="font-size:22px;color:#fff">2</b>" 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="<b style="font-size:13px">Repozytoria</b>" 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="<font style="font-size:10px"><b>GitHub</b> (origin)<br>pienczyn/nordabiz<br>Cloud backup + CI/CD</font>" 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="<font style="font-size:10px"><b>Gitea</b> (inpi)<br>10.22.68.180<br>Wewnętrzny, deploy source</font>" 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="<font style="font-size:10px">.github/workflows/test.yml<br>unit → e2e → smoke</font>" 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="<b style="font-size:22px;color:#fff">3</b>" 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="<b style="font-size:13px">Staging</b>" 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="<font style="font-size:10px">VM 248 | 10.22.68.248<br>staging.nordabiznes.pl<br>Flask + Gunicorn :5000</font>" 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="<font style="font-size:10px">sudo -u www-data git pull<br>sudo systemctl restart nordabiznes</font>" 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="<font style="font-size:10px">🧪 TEST MANUALNY<br>(OBOWIĄZKOWY!)</font>" 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="<font style="font-size:9px;color:#555">curl -I https://staging.nordabiznes.pl/health</font>" 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="<b style="font-size:22px;color:#fff">4</b>" 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="<b style="font-size:13px">Produkcja</b>" 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="<font style="font-size:10px">VM 249 | 10.22.68.249<br>nordabiznes.pl<br>Flask + Gunicorn :5000</font>" 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="<font style="font-size:10px">sudo -u www-data git pull</font>" 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="<font style="font-size:10px">run_migration.py (jeśli SQL)</font>" 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="<font style="font-size:10px">sudo systemctl restart nordabiznes</font>" 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="<font style="font-size:9px;color:#b85450">⚠️ Migracja PRZED restartem!</font>" 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="<b style="font-size:22px;color:#fff">5</b>" 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="<b style="font-size:13px">Weryfikacja</b>" 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="<font style="font-size:10px">curl -sI nordabiznes.pl/health<br>→ HTTP 200 OK</font>" 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="<font style="font-size:10px">Smoke tests (GitHub Actions)<br>pytest tests/smoke/</font>" 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="<font style="font-size:10px">Sprawdź logi:<br>journalctl -u nordabiznes -n 20</font>" 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="<b style="font-size:16px;color:#2E7D32">✅ GOTOWE</b>" 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="<b style="font-size:12px;color:#b85450">⚠️ Uwagi krytyczne</b>" 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="<font style="font-size:10px">• <b>Migracje SQL</b> — ZAWSZE przed restartem! Bez migracji = 502<br>• <b>Git pull</b> — używaj <code>sudo -u www-data git pull</code> (www-data ma klucze SSH)<br>• <b>NPM port</b> — Forward port MUSI być 5000, nie 80! (pętla przekierowań)<br>• <b>SSH timeout</b> — NIE oznacza że komenda nie została wykonana! Sprawdź <code>ps aux</code><br>• <b>502 po restarcie</b> — poczekaj 3-5 sekund i sprawdź ponownie</font>" 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="<font style="font-size:10px"><b>Komendy deploy (produkcja):</b><br><code>ssh maciejpi@10.22.68.249<br>cd /var/www/nordabiznes<br>sudo -u www-data git pull<br>venv/bin/python3 scripts/run_migration.py database/migrations/XXX.sql<br>sudo systemctl restart nordabiznes<br>curl -sI https://nordabiznes.pl/health | head -3</code></font>" 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>
|
||||
BIN
docs/architecture/diagrams/a4-cicd-pipeline.png
Normal file
|
After Width: | Height: | Size: 662 KiB |
182
docs/architecture/diagrams/a5-auth-oauth.drawio
Normal 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="<b style="font-size:16px;color:#1565C0">Role Systemowe (SystemRole)</b>" 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="<b style="font-size:13px">ADMIN (100)</b><br><font style="font-size:9px">Pełna kontrola systemu<br>Zarządzanie użytkownikami</font>" 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="<b style="font-size:12px">OFFICE_MANAGER (50)</b><br><font style="font-size:9px">Panel admina | Moderacja forum | Edycja firm</font>" 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="<b style="font-size:12px">MANAGER (40)</b><br><font style="font-size:9px">Pełna kontrola firmy | Zarządzanie pracownikami | Delegowanie uprawnień</font>" 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="<b style="font-size:12px">EMPLOYEE (30)</b><br><font style="font-size:9px">Edycja danych firmy (delegowane uprawnienia) | Ogłoszenia | Forum</font>" 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="<b style="font-size:12px">MEMBER (20)</b><br><font style="font-size:9px">Kontakty firm | Forum | Chat AI | Ogłoszenia | Wiadomości</font>" 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="<b style="font-size:12px">UNAFFILIATED (10)</b><br><font style="font-size:9px">Tylko profile publiczne | Ograniczony chat AI | Brak kontaktów</font>" 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="<font style="font-size:10px;color:#1565C0">↑ has_role() = hierarchiczne<br>Wyższa rola = wszystkie<br>uprawnienia niższych</font>" 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="<b style="font-size:14px;color:#2E7D32">Role Firmowe (CompanyRole)</b>" 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="<b>MANAGER (30)</b> — 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="<b>EMPLOYEE (20)</b> — 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="<b>VIEWER (10)</b> — 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="<font style="font-size:10px;color:#2E7D32"><b>Multi-company:</b> user_companies (M:M)<br>Użytkownik może mieć różne role w różnych firmach</font>" 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="<b style="font-size:14px;color:#E65100">Delegowane Uprawnienia</b><br><font style="font-size:10px">MANAGER → EMPLOYEE (user_company_permissions)</font>" 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="<b style="font-size:16px;color:#7B1FA2">OAuth 2.0 — Integracja z API Zewnętrznymi</b>" 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="<b>1. Initiate</b><br><font style="font-size:9px">POST /api/oauth/<br>connect/{provider}<br>CSRF state token</font>" 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="<b>2. Redirect</b><br><font style="font-size:9px">User autoryzuje<br>na stronie Google/Meta</font>" 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="<b>3. Callback</b><br><font style="font-size:9px">GET /api/oauth/<br>callback/{provider}<br>Exchange code→token</font>" 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="<b>4. Save</b><br><font style="font-size:9px">oauth_tokens table<br>access + refresh<br>Auto-refresh on expiry</font>" 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="<b style="color:#4285F4">Google OAuth ✅</b><br><font style="font-size:9px">GBP: business.manage<br>Search Console: webmasters<br><b>Działa na produkcji</b></font>" 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="<b style="color:#1877F2">Meta OAuth ⏳</b><br><font style="font-size:9px">Facebook: pages_show_list<br>Instagram: instagram_basic<br><b>Framework gotowy</b></font>" 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="<b style="font-size:14px;color:#C62828">Zabezpieczenia</b>" 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="<b>Hasła</b><br><font style="font-size:9px">pbkdf2:sha256<br>8+ znaków</font>" 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="<b>2FA (TOTP)</b><br><font style="font-size:9px">Base32 + kody<br>zapasowe</font>" 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="<b>Brute-force</b><br><font style="font-size:9px">5 prób → 30 min<br>lockout</font>" 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="<b>CSRF</b><br><font style="font-size:9px">Flask-WTF +<br>OAuth state</font>" 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="<b>Rate Limit</b><br><font style="font-size:9px">50/h, 200/dzień<br>Flask-Limiter</font>" 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="<b>Email 24h</b><br><font style="font-size:9px">Weryfikacja +<br>reset token</font>" 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="<b>Audit Log</b><br><font style="font-size:9px">security_service<br>.log_audit()</font>" 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="<b style="font-size:14px;color:#00838F">Dekoratory Flask</b><br><font style="font-size:10px">utils/decorators.py</font>" 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="<b>@login_required</b><br><font style="font-size:9px">Flask-Login — redirect do /login</font>" 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="<b>@role_required(SystemRole.X)</b><br><font style="font-size:9px">Minimalny poziom roli → 403</font>" 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="<b>@admin_required</b><br><font style="font-size:9px">Alias: @role_required(ADMIN)</font>" 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="<b>@member_required</b><br><font style="font-size:9px">Alias: @role_required(MEMBER)</font>" 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="<b>@company_permission('edit')</b><br><font style="font-size:9px">Delegowane uprawnienia firmy</font>" 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="<font style="font-size:10px;color:#00838F"><b>Metody User:</b><br>.has_role(SystemRole.X)<br>.can_edit_company(id)<br>.can_manage_company(id)<br>.can_access_admin_panel()<br>.has_delegated_permission()</font>" 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="<font style="font-size:11px;color:#888"><b>6 ról systemowych</b> (hierarchiczne) | <b>3 role firmowe</b> (per company) | <b>7 delegowanych uprawnień</b> | <b>OAuth 2.0</b> (Google ✅ + Meta ⏳) | <b>7 zabezpieczeń</b></font>" 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>
|
||||
BIN
docs/architecture/diagrams/a5-auth-oauth.png
Normal file
|
After Width: | Height: | Size: 821 KiB |
172
docs/architecture/diagrams/a6-api-integration-map.drawio
Normal 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="<b style="font-size:16px;color:#fff">NordaBiz API Layer</b>" 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="<font color="#90CAF9">gemini_service.py</font>" 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="<font color="#90CAF9">pagespeed_client.py</font>" 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="<font color="#90CAF9">oauth_service.py</font>" 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="<font color="#90CAF9">crux_service.py</font>" 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="<font color="#90CAF9">youtube_service.py</font>" 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="<font color="#90CAF9">social_media_audit.py</font>" 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="<font color="#90CAF9">news_service.py</font>" 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="<font color="#90CAF9">krs_service.py</font>" 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="<font color="#90CAF9">email_service.py</font>" 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="<font color="#90CAF9">benchmark_service.py</font>" 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="<font color="#FFF59D">→ PostgreSQL (80+ tabel)</font>" 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="<b style="font-size:16px;color:#4285F4">Google APIs</b><font style="font-size:10px;color:#888"> — API Key + OAuth 2.0</font>" 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="<b>Gemini AI</b> (gemini-3-flash)<br><font style="font-size:9px">Auth: API Key | generateContent, embedContent<br>Chat, SEO insights, knowledge extraction</font>" 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="<b>PageSpeed Insights API v5</b><br><font style="font-size:9px">Auth: API Key | runPagespeed (strategy=mobile/desktop)<br>Lighthouse audits, Core Web Vitals, accessibility</font>" 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="<b>Places API (New)</b><br><font style="font-size:9px">Auth: API Key | searchText, getPlace, reviews<br>GBP data, ratings, photos, attributes</font>" 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="<b>Search Console API</b> ✅ OAuth<br><font style="font-size:9px">Auth: OAuth 2.0 | searchAnalytics.query<br>Clicks, impressions, CTR, top queries/pages</font>" 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="<b>CrUX API</b><br><font style="font-size:9px">Auth: API Key | queryRecord<br>Real user field data (LCP, FID,<br>CLS, INP, TTFB)</font>" 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="<b style="font-size:16px;color:#C62828">Social Media</b><font style="font-size:10px;color:#888"> — Web scraping</font>" 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="<b>Facebook</b> — 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="<b>Instagram</b> — 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="<b>LinkedIn</b> — 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="<b>YouTube Data API v3</b> — 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="<b>TikTok + X (Twitter)</b> — 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="<b style="font-size:16px;color:#2E7D32">Rejestry Publiczne</b><font style="font-size:10px;color:#888"> — REST / SOAP</font>" 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="<b>KRS API</b> (Krajowy Rejestr Sądowy)<br><font style="font-size:9px">Auth: brak | Dane spółek, zarządy, wspólnicy<br>api-krs.ms.gov.pl — REST JSON</font>" 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="<b>CEIDG API</b> (Centralna Ewidencja Działalności Gosp.)<br><font style="font-size:9px">Auth: token | Dane JDG, PKD, adresy, status<br>dane.biznes.gov.pl — REST JSON</font>" 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="<b style="font-size:16px;color:#E65100">Inne Serwisy</b>" 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="<b>Microsoft Graph API</b><br><font style="font-size:9px">Auth: OAuth 2.0 | Mail.Send<br>Wysyłka e-mail (powiadomienia, reset)</font>" 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="<b>Brave Search API</b><br><font style="font-size:9px">Auth: API Key | Web search<br>Wiadomości i news monitoring (ZOPK)</font>" 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="<b>ALEO.com API</b><br><font style="font-size:9px">Auth: scraping | Dane finansowe firm<br>Przychody, zyski, zatrudnienie</font>" 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="<b style="font-size:12px">Metody uwierzytelniania:</b>" 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="<font style="font-size:10px"><b>API Key</b> — klucz w .env (Gemini, PageSpeed, Places, CrUX, YouTube, Brave)<br><b>OAuth 2.0</b> — token użytkownika (Google Search Console, Microsoft Graph, Meta)<br><b>Token</b> — klucz autoryzacyjny (CEIDG) &nbsp;|&nbsp; <b>Open</b> — brak autoryzacji (KRS)</font>" 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="<font style="font-size:11px;color:#888"><b>16 integracji API</b> &nbsp;|&nbsp; 5 Google APIs + 6 Social Media + 2 Rejestry + 3 Inne &nbsp;|&nbsp; Cost: <b>$0/mies.</b> (free tiers + scraping)</font>" 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>
|
||||
BIN
docs/architecture/diagrams/a6-api-integration-map.png
Normal file
|
After Width: | Height: | Size: 639 KiB |
165
docs/architecture/diagrams/a7-module-structure.drawio
Normal 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="<b style="font-size:16px;color:#fff">app.py</b><br><font style="font-size:10px;color:#ccc">1,557 linii<br>Flask factory<br>Blueprint registry</font>" 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="<b style="font-size:14px;color:#7B1FA2">Serwisy (27)</b>" 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="<b style="font-size:14px;color:#1565C0">Blueprinty Podstawowe (użytkownicy)</b>" 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="<b>main</b><br><font style="font-size:9px">Katalog, strona<br>główna, search</font>" 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="<b>auth</b><br><font style="font-size:9px">Login, rejestracja<br>2FA, reset hasła</font>" 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="<b>company</b><br><font style="font-size:9px">Profile firm<br>edycja danych</font>" 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="<b>chat</b><br><font style="font-size:9px">NordaGPT<br>Gemini AI</font>" 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="<b>account</b><br><font style="font-size:9px">Panel konta<br>ustawienia</font>" 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="<b>forum</b><br><font style="font-size:9px">Dyskusje<br>społeczność</font>" 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="<b>classifieds</b><br><font style="font-size:9px">Ogłoszenia<br>B2B</font>" 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="<b>messages</b><br><font style="font-size:9px">Prywatne<br>wiadomości</font>" 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="<b>events</b><br><font style="font-size:9px">Kalendarz<br>wydarzenia</font>" 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="<b>zopk</b><br><font style="font-size:9px">Baza wiedzy<br>ZOPK</font>" 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="<b style="font-size:14px;color:#C62828">Blueprinty Admin</b>" 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="<b>admin</b> — 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="<b>admin_seo</b> — 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="<b>admin_social</b> — 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="<b>admin_news</b> — 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="<b>board</b> — 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="<b>membership</b> — 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="<b>reports</b> — 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="<b>api</b> — 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="<b style="font-size:14px;color:#1565C0">PostgreSQL</b><br><font style="font-size:10px">database.py — 80+ tabel | 19 domen | 3 widoki | 2 funkcje</font>" 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="<b>utils/</b><br><font style="font-size:9px">decorators.py, helpers.py<br>validators.py, cache.py</font>" 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="<b>templates/</b><br><font style="font-size:9px">Jinja2 szablony<br>base.html + podkatalogi per blueprint</font>" 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="<b>static/</b><br><font style="font-size:9px">CSS, JS, obrazy<br>Vanilla JS (bez frameworka)</font>" 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="<font style="font-size:11px;color:#888"><b>17 blueprintów</b> | <b>49 plików z routami</b> | <b>375+ tras API</b> | <b>27 serwisów</b> | Refaktoring -90% (15,570 → 1,557 linii app.py)</font>" 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>
|
||||
BIN
docs/architecture/diagrams/a7-module-structure.png
Normal file
|
After Width: | Height: | Size: 530 KiB |
161
docs/architecture/diagrams/a8-backup-dr.drawio
Normal 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 & 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="<b style="font-size:15px;color:#1565C0">Produkcja (VM 249)</b>" 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="<b>PostgreSQL</b><br>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="<b>Aplikacja Flask</b><br>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="<b>.env</b> — 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="<b>Kod źródłowy</b> — 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="<b>Cron</b> — 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="<b style="font-size:15px;color:#2E7D32">Backup Lokalny (VM 249)</b>" 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="<b style="color:#2E7D32">Co godzinę</b><br><font style="font-size:10px">pg_dump -Fc (custom format)<br>Retencja: 24 godziny<br>/var/backups/nordabiz/hourly/</font>" 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="<b style="color:#2E7D32">Codziennie (02:00)</b><br><font style="font-size:10px">pg_dump -Fc (custom format)<br>Retencja: 30 dni<br>/var/backups/nordabiz/daily/</font>" 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="<b style="color:#2E7D32">Konfiguracja (niedz. 03:00)</b><br><font style="font-size:10px">.env, systemd, nginx<br>Retencja: 4 tygodnie<br>/var/backups/nordabiz/config/</font>" 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="<b style="font-size:15px;color:#E65100">Offsite (PBS 10.22.68.127)</b>" 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="<b style="color:#E65100">Kopia dzienna (rsync 04:00)</b><br><font style="font-size:10px">Mirror /daily/ → PBS<br>Retencja: 30 dni<br>/backup/nordabiz/daily/</font>" 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="<b style="color:#E65100">Kopia konfiguracji (rsync 04:30)</b><br><font style="font-size:10px">Mirror /config/ → PBS<br>Retencja: 30 dni<br>/backup/nordabiz/config/</font>" 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="<b style="color:#E65100">VM Snapshots (Proxmox)</b><br><font style="font-size:10px">Manualne (przed wdrożeniem)<br>Max 3 snapshoty<br>LVM/PBS storage</font>" 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="<b style="font-size:15px;color:#7B1FA2">Cele SLA</b>" 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="<b style="font-size:18px;color:#7B1FA2">RTO: 30-60 min</b><br><font style="font-size:10px">Recovery Time Objective<br>Czas przywrócenia do produkcji</font>" 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="<b style="font-size:18px;color:#7B1FA2">RPO: 1 godzina</b><br><font style="font-size:10px">Recovery Point Objective<br>Maks. akceptowalna utrata danych</font>" 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="<b style="font-size:15px;color:#C62828">Scenariusze Disaster Recovery</b>" 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="<b style="color:#C62828">Uszkodzenie bazy</b><br><font style="font-size:10px">dr-restore.sh + hourly backup<br><b>RTO: 15 min</b></font>" 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="<b style="color:#C62828">Awaria VM</b><br><font style="font-size:10px">Restart VM / rollback snapshot<br><b>RTO: 5-10 min</b></font>" 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="<b style="color:#C62828">Utrata całego VM</b><br><font style="font-size:10px">Nowy VM + PBS restore<br><b>RTO: 60 min</b></font>" 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="<b style="color:#C62828">Ransomware</b><br><font style="font-size:10px">Izolacja + nowy VM + PBS + rotacja kluczy<br><b>RTO: 60-120 min</b></font>" 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="<b style="font-size:13px;color:#C62828">Procedura przywracania (dr-restore.sh):</b>" 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<br>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<br>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 +<br>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<br>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 +<br>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<br>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="<b style="font-size:15px;color:#00838F">Monitoring Backupów</b>" 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="<font style="font-size:10px">✓ Backup exists &lt; 2h old<br>✓ Backup size ≥ 1 MB<br>✓ Size consistent (±50%)<br>✓ dr-restore.sh executable<br>✓ Cron job configured</font>" 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="<font style="font-size:11px;color:#888"><b>3 warstwy backupu</b> (lokalny godzinowy + lokalny dzienny + offsite PBS) &nbsp;|&nbsp; <b>RTO 15-60 min</b> &nbsp;|&nbsp; <b>RPO 1h</b> &nbsp;|&nbsp; Automatyczne testy zdrowia backupów</font>" 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>
|
||||
BIN
docs/architecture/diagrams/a8-backup-dr.png
Normal file
|
After Width: | Height: | Size: 668 KiB |
386
docs/architecture/diagrams/a9-detailed-it-architecture.drawio
Normal 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="<b style="font-size:16px;color:#1565C0">INTERNET / CHMURA</b>" 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="<b style="font-size:13px">Użytkownicy</b><br><font style="font-size:11px;color:#666">150 firm członkowskich<br>nordabiznes.pl (HTTPS)</font>" 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="<b style="font-size:13px">OVH DNS</b><br><font style="font-size:11px;color:#666">nordabiznes.pl<br>A → 85.237.177.83</font>" 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="<b style="font-size:13px;color:#0078D4">Microsoft Azure</b><br><font style="font-size:11px;color:#333">Entra ID (Azure AD)<br>Exchange Online (SMTP)<br>OneDrive for Business</font>" 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="<b style="font-size:13px">Let's Encrypt</b><br><font style="font-size:11px;color:#666">SSL/TLS auto-renewal<br>wildcard cert</font>" 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="<b style="font-size:13px;color:#4285F4">Google Cloud</b><br><font style="font-size:11px;color:#333">Gemini AI (NordaGPT)<br>Places API / PageSpeed<br>OAuth 2.0 / Search Console</font>" 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="<b style="font-size:13px">GitHub</b><br><font style="font-size:11px;color:#666">CI/CD (Actions)<br>Cloud backup repo</font>" 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="<b style="font-size:13px">API zewnętrzne</b><br><font style="font-size:11px;color:#666">KRS · Brave · Graph<br>YouTube · CrUX</font>" 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="<b style="font-size:13px">Hetzner Storage</b><br><font style="font-size:11px;color:#666">Backup offsite (nocny)<br>30-day retention<br>Geo-redundancy: DE</font>" 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="<b style="font-size:13px">Slack</b><br><font style="font-size:11px;color:#666">MCP Webhooks<br>Alerty · Deploy</font>" 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="<b style="font-size:13px">Dev (VPN)</b><br><font style="font-size:11px;color:#666">FortiClient SSL<br>10.212.134.x</font>" 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="<b style="font-size:16px;color:#C62828">FortiGate 500D</b><br><font style="font-size:12px;color:#333">85.237.177.83 | IPS/IDS | VPN | Web Filtering | NAT/PAT</font>" 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="<b style="font-size:16px;color:#333">SIEĆ LOKALNA INPI — 10.22.68.0/24 | Gateway: FortiGate 10.22.68.1</b>" 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="<b style="font-size:18px;color:#4527A0">SERWER FIZYCZNY 1: r11-pve-01</b><font style="font-size:13px;color:#666"> — IBM System x3550 M4 | IP: 10.22.68.121 | IPMI/IMM: 10.22.68.103</font>" 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="<font style="font-size:12px;color:#4527A0"><b>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)</b></font>" 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="<b style="font-size:15px;color:#2E7D32">VM 249 — NORDABIZ-01 (PRODUKCJA)</b><br><font style="font-size:11px;color:#666">10.22.68.249 | 4 vCPU | 4 GB RAM | 30 GB SSD (iSCSI)</font>" 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="<b style="font-size:13px">Flask 3.1 + Gunicorn</b><br><font style="font-size:11px;color:#666">18 blueprintów | 40+ serwisów<br>56+ endpointów REST API<br>1 557 linii app.py</font>" 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="<b style="font-size:13px">PostgreSQL 14</b><br><font style="font-size:11px;color:#666">89 tabel | FTS + fuzzy<br>~500 MB danych</font>" 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="<b style="font-size:12px;color:#F57F17">NordaGPT (AI)</b><br><font style="font-size:10px;color:#666">Gemini 3 Flash (primary)<br>Gemini 3 Pro (reasoning)<br>Thinking mode | 150 firm</font>" 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="<b style="font-size:12px">Audyty</b><br><font style="font-size:10px;color:#666">SEO | GBP | Social<br>KRS | CrUX</font>" 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="<b style="font-size:12px">Security</b><br><font style="font-size:10px;color:#666">RBAC 6 ról | 2FA<br>CSRF | Rate limit</font>" 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="<b style="font-size:12px">Forum + ZOPK</b><br><font style="font-size:10px;color:#666">KB · Timeline · Graf</font>" 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="<b style="font-size:12px;color:#0078D4">Email M365</b><br><font style="font-size:10px;color:#666">SMTP Azure</font>" 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="<b style="font-size:12px;color:#F57F17">Norda360</b><br><font style="font-size:10px;color:#666">SEO/GBP/Social</font>" 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="<b style="font-size:11px">Cron:</b><font style="font-size:10px;color:#666"> news · updater · backup</font>" 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="<b style="font-size:13px;color:#FF6F00">VM 248 — STAGING</b><br><font style="font-size:11px;color:#333">10.22.68.248 | 2 vCPU | 4 GB<br>staging.nordabiznes.pl</font>" 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="<b style="font-size:13px">VM 119 — R11-REVPROXY-01</b><br><font style="font-size:11px;color:#666">10.22.68.250 | NPM (Nginx Proxy Manager)<br>SSL termination | Let's Encrypt auto-renew</font>" 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="<b style="font-size:14px;color:#E65100">INFRASTRUKTURA KRYTYCZNA (na r11-pve-01)</b>" 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="<b style="font-size:12px">VM 122 — R11-DNS-01</b><br><font style="font-size:10px;color:#666">10.22.68.171 | 4 GB<br>Technitium PRIMARY<br>DNS + DHCP HA</font>" 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="<b style="font-size:12px">VM 175 — R11-DNS-02</b><br><font style="font-size:10px;color:#666">10.22.68.175 | 2 GB<br>Technitium SECONDARY</font>" 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="<b style="font-size:12px">VM 135 — Zabbix 7.0</b><br><font style="font-size:10px;color:#666">10.22.68.126 | <b>32 GB</b><br>Monitoring 43 hostów<br>Alerty: email + Slack</font>" 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="<b style="font-size:12px">VM 180 — Gitea</b><br><font style="font-size:10px;color:#666">10.22.68.180 | 8 GB<br>Git repo + deploy source<br>+ GitHub mirror</font>" 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="<b style="font-size:12px">VM 123 — phpIPAM</b><br><font style="font-size:10px;color:#666">10.22.68.172 | 4 GB<br>IP management</font>" 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="<b style="font-size:12px">VM 246 — Vaultwarden</b><br><font style="font-size:10px;color:#666">10.22.68.174 | 4 GB<br>Password manager</font>" 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="<b style="font-size:12px">VM 177 — Cortex</b><br><font style="font-size:10px;color:#666">Dashboard INPI<br>4 GB RAM</font>" 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="<b style="font-size:12px">VM 185 — N8N</b><br><font style="font-size:10px;color:#666">Automatyzacja<br>4 GB RAM</font>" 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="<b style="font-size:11px">VM 176</b><br><font style="font-size:10px;color:#666">CA (512 MB)</font>" 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="<b style="font-size:12px;color:#E65100">Pozostałe VM na r11-pve-01:</b><br><font style="font-size:10px;color:#666">VM 128: POMERANIA-PROD-01 (4 GB) | VM 252: INPI-WEB-01 (1 GB) | VM 253: INPI-WEB-02 (4 GB)<br>VM 254: SOCIALMEDIA-01 (4 GB) | VM 247: PROJECTS-01 (4 GB) | VM 241: DEV-ZABBIX-01 (32 GB)<br>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)</font>" 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="<font style="font-size:12px;color:#4527A0"><b>Łącznie pve-01:</b> 21 VM | ~180 GB / 256 GB RAM (70%) | 32 vCPU</font>" 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="<b style="font-size:16px;color:#7B1FA2">SERWER FIZYCZNY 2: r11-pve-02</b><font style="font-size:12px;color:#666"> — IBM System x3550 M4</font>" 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="<font style="font-size:12px;color:#7B1FA2"><b>2× Intel Xeon E5-26xx v2 | 32 vCPU | 256 GB ECC RAM</b> | IP: 10.22.68.122 | IPMI/IMM: 10.22.68.104</font>" 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="<b style="font-size:14px;color:#7B1FA2">STATUS: ONLINE — 0 VM (Standby / Failover)</b><br><font style="font-size:11px;color:#666">Dostępny dla migracji VM w razie awarii pve-01 lub pve-03<br>Automatyczny failover z Proxmox HA | Gotowy do rozbudowy w ciągu minut</font>" 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="<b style="font-size:18px;color:#006064">SERWER FIZYCZNY 3: r11-pve-03</b><font style="font-size:13px;color:#666"> — HPE ProLiant (najwydajniejszy węzeł) | IP: 10.22.68.123</font>" 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="<font style="font-size:13px;color:#006064"><b>2× Intel Xeon E5-2698 v4 @ 2.20 GHz | 80 vCPU (40 rdzeni / 80 wątków) | 503 GB ECC DDR4 RAM</b> | Proxmox VE 9.1.4</font>" 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="<b style="font-size:13px">VM 127 — R11-PBS-01</b><br><font style="font-size:11px;color:#666">10.22.68.127 | <b>24 GB RAM</b><br>Proxmox Backup Server<br>Snapshoty → Hetzner offsite<br>30-day retention</font>" 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="<b style="font-size:13px">VM 181 — HomeAssistant</b><br><font style="font-size:11px;color:#666">10.22.68.181 | 2 GB RAM<br>Smart Home Controller<br>vmbr1 (IoT bridge)</font>" 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="<b style="font-size:13px">VM 121 — SOLINPI-PROD-01</b><br><font style="font-size:11px;color:#666">10.22.68.211 | 8 GB RAM<br>Solplanet + Certbot</font>" 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="<font style="font-size:12px;color:#006064"><b>Łącznie pve-03:</b> 3 VM | ~35 GB / 503 GB RAM (7%) | 80 vCPU | <b>408 GB wolnego RAM</b> — rezerwa na rozbudowę</font>" 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="<b style="font-size:16px;color:#C62828">STORAGE — R11-ASUSTOR-01 (ASUSTOR AS6510T)</b><br><font style="font-size:12px;color:#666">10.22.68.162 | iSCSI shared storage dla całego klastra</font>" 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="<b style="font-size:14px">HDD RAID</b><br><font style="font-size:12px;color:#666">5 TB pojemności<br>~60% wykorzystania<br>Dane VM, backupy</font>" 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="<b style="font-size:14px">NVMe RAID1</b><br><font style="font-size:12px;color:#666">1 TB pojemności<br>~45% wykorzystania<br>Krytyczne VM</font>" 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="<b style="font-size:14px">SSD RAID10</b><br><font style="font-size:12px;color:#666">1 TB pojemności<br>~50% wykorzystania<br>NordaBiz PROD</font>" 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="<font style="font-size:12px;color:#C62828"><b>iSCSI Multipath:</b> 10.10.10.9 + 10.10.10.10 (vmbr11)<br><b>IQN:</b> iqn.2011-08.com.asustor:as6510t-848e77<br><b>Łącznie:</b> 7 TB raw storage (HDD 5TB + NVMe 1TB + SSD 1TB)</font>" 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="<b style="font-size:14px;color:#333">Netgear XS712Tv2</b><br><font style="font-size:12px;color:#666">R11-NETGEAR-10G | 10.22.68.3<br>12-port 10G SFP+ switch<br>iSCSI + VM migration backbone</font>" 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="<b style="font-size:15px;color:#283593">SIECI WIRTUALNE (vBridge)</b>" 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="<b>vmbr0</b> — Management<br><font color="#666">10.22.68.0/24 | Wszystkie VM</font>" 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="<b>vmbr10</b> — Migration 10G<br><font color="#666">10.10.10.64/26 | ~820 MiB/s</font>" 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="<b>vmbr11</b> — iSCSI Multipath<br><font color="#666">10.10.10.128/26 | MTU 9000</font>" 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="<b>vmbr1</b> — IoT Network<br><font color="#666">192.168.68.0/24 | pve-03 only</font>" 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="<font style="font-size:11px">HTTPS:443</font>" 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="<font style="font-size:11px">:5000</font>" 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="<font style="font-size:10px;color:#C62828">iSCSI 10G</font>" 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="<b style="font-size:16px;color:#D69E2E">3</b><font style="font-size:11px;color:#A0AEC0"> serwery fizyczne</font>" 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="<b style="font-size:16px;color:#D69E2E">144</b><font style="font-size:11px;color:#A0AEC0"> vCPU łącznie</font>" 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="<b style="font-size:16px;color:#D69E2E">1 015 GB</b><font style="font-size:11px;color:#A0AEC0"> RAM łącznie</font>" 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="<b style="font-size:16px;color:#D69E2E">7 TB</b><font style="font-size:11px;color:#A0AEC0"> storage (iSCSI)</font>" 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="<b style="font-size:16px;color:#D69E2E">24</b><font style="font-size:11px;color:#A0AEC0"> maszyny wirtualne</font>" 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="<b style="font-size:16px;color:#D69E2E">10 Gbps</b><font style="font-size:11px;color:#A0AEC0"> backbone</font>" 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="<b style="font-size:16px;color:#D69E2E">~305 000 zł</b><font style="font-size:11px;color:#A0AEC0"> wartość platformy</font>" 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="<font style="font-size:11px">🟢 NordaBiznes</font>" 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="<font style="font-size:11px">🟠 Infra INPI</font>" 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="<font style="font-size:11px">🔵 Cloud</font>" 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="<font style="font-size:11px">🟣 IBM pve-01/02</font>" 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="<font style="font-size:11px">🟦 HPE pve-03</font>" 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="<font style="font-size:11px">🔴 Storage/Security</font>" 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="<font style="font-size:11px;color:#283593"><b>Live migration:</b> ~820 MiB/s via 10G (vmbr10) | Downtime: 30-80 ms | <b>Energooszczędność:</b> konsolidacja VM → oszczędność ~2 600 zł/rok</font>" 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>
|
||||
BIN
docs/architecture/diagrams/a9-detailed-it-architecture.png
Normal file
|
After Width: | Height: | Size: 2.6 MiB |
133
docs/architecture/diagrams/b1-platform-overview.drawio
Normal 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="<b style="font-size:18px">NordaBiz</b><br><font style="font-size:11px;color:#555">nordabiznes.pl<br>150 firm członkowskich</font>" 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="💼" 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="<b style="font-size:15px">Katalog Firm</b>" 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="<font style="font-size:11px">• Profile 150 firm z Wejherowa<br>• Wyszukiwanie po branży i usługach<br>• Dane kontaktowe i lokalizacja<br>• Weryfikacja NIP/REGON/KRS</font>" 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="🤖" 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="<b style="font-size:15px">Sztuczna Inteligencja</b>" 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="<font style="font-size:11px">• NordaGPT — asystent AI<br>• Rekomendacje firm<br>• Automatyczna analiza danych<br>• Generowanie raportów</font>" 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="📊" 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="<b style="font-size:15px">Audyty Cyfrowe</b>" 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="<font style="font-size:11px">• Audyt SEO strony internetowej<br>• Audyt Google Moja Firma<br>• Monitoring social media<br>• Benchmarki branżowe</font>" 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="👥" 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="<b style="font-size:15px">Społeczność</b>" 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="<font style="font-size:11px">• Forum dyskusyjne<br>• Wiadomości prywatne<br>• Kalendarz wydarzeń<br>• Ogłoszenia i oferty</font>" 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="📚" 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="<b style="font-size:15px">Baza Wiedzy</b>" 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="<font style="font-size:11px">• ZOPK — monitoring prawny<br>• Szkolenia i edukacja<br>• Timeline zmian przepisów<br>• Analiza AI luk prawnych</font>" 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="🏆" 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="<b style="font-size:15px">Członkostwo i Korzyści</b>" 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="<font style="font-size:11px">• 3 pakiety: Starter / Premium / Business Pro<br>• Członek Izby = Starter za 1 zł<br>• Zarządzanie składkami i CRM<br>• Norda360, email @nordabiznes.pl</font>" 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="<font style="font-size:11px;color:#888">150 firm &nbsp;|&nbsp; 17 modułów &nbsp;|&nbsp; 375+ tras API &nbsp;|&nbsp; 27 serwisów &nbsp;|&nbsp; 40 tabel bazy danych &nbsp;|&nbsp; 8 integracji API</font>" 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>
|
||||
BIN
docs/architecture/diagrams/b1-platform-overview.png
Normal file
|
After Width: | Height: | Size: 626 KiB |
185
docs/architecture/diagrams/b2-user-journey.drawio
Normal 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="<b style="font-size:28px;color:#1565C0">1</b>" 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="<b style="font-size:14px;color:#1565C0">Rejestracja</b>" 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="📧 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="📝 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="🏆 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="🏢 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="<font style="font-size:10px;color:#888">~10 minut</font>" 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="<b style="font-size:28px;color:#2E7D32">2</b>" 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="<b style="font-size:14px;color:#2E7D32">Odkrywanie</b>" 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="🔍 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="🤖 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="📊 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="📚 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="<font style="font-size:10px;color:#888">Pierwszy tydzień</font>" 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="<b style="font-size:28px;color:#E65100">3</b>" 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="<b style="font-size:14px;color:#E65100">Networking</b>" 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="💬 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="✉️ 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="📅 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="📢 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="<font style="font-size:10px;color:#888">Pierwszy miesiąc</font>" 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="<b style="font-size:28px;color:#7B1FA2">4</b>" 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="<b style="font-size:14px;color:#7B1FA2">Optymalizacja</b>" 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="📈 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="🌐 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="📱 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="💪 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="<font style="font-size:10px;color:#888">Na bieżąco</font>" 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="<b style="font-size:28px;color:#C62828">5</b>" 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="<b style="font-size:14px;color:#C62828">Korzyści</b>" 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="💰 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="📈 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="📚 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="🤝 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="<font style="font-size:10px;color:#888">Długoterminowo</font>" 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="<font style="font-size:11px;color:#888">⏱️ <b>Oś czasu:</b> &nbsp; Rejestracja (10 min) → Odkrywanie (tydzień 1) → Networking (miesiąc 1) → Optymalizacja (ciągle) → Korzyści (długoterminowo)</font>" 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>
|
||||
BIN
docs/architecture/diagrams/b2-user-journey.png
Normal file
|
After Width: | Height: | Size: 409 KiB |
280
docs/architecture/diagrams/b3-feature-map.drawio
Normal 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="<b style="font-size:14px">💼 Katalog i Wyszukiwanie</b>" 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="<b style="font-size:14px">🤖 Sztuczna Inteligencja</b>" 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="<b style="font-size:14px">📊 Audyty Cyfrowe</b>" 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="<b style="font-size:14px">⚙️ Administracja</b>" 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="<b style="font-size:14px">👥 Społeczność i Komunikacja</b>" 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="<b style="font-size:14px">📚 Baza Wiedzy i Edukacja</b>" 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="<b style="font-size:14px">🏆 Członkostwo i Korzyści</b>" 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="<b style="font-size:14px">🔗 Integracje Zewnętrzne</b>" 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="<font style="font-size:11px;color:#888">8 obszarów funkcjonalnych &nbsp;|&nbsp; 64+ funkcje &nbsp;|&nbsp; 17 modułów &nbsp;|&nbsp; 8 integracji zewnętrznych</font>" 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>
|
||||
BIN
docs/architecture/diagrams/b3-feature-map.png
Normal file
|
After Width: | Height: | Size: 813 KiB |
202
docs/architecture/diagrams/b4-membership-model.drawio
Normal 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="<b style="font-size:22px;color:#1565C0">Starter</b>" 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="<b style="font-size:36px;color:#1565C0">1 zł</b><font style="font-size:12px;color:#888"> / miesiąc</font>" 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="<font style="font-size:10px;color:#1565C0">w ramach składki członkowskiej Izby</font>" 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="✅ 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="✅ 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="✅ 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="✅ 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="✅ 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="❌ 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="❌ 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="❌ 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="❌ 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="<font style="font-size:10px;color:#1565C0">Bariera wejścia ~0 PLN — max baza użytkowników</font>" 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="<b style="color:#fff;font-size:11px">⭐ REKOMENDOWANY</b>" 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="<b style="font-size:22px;color:#2E7D32">Premium</b>" 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="<b style="font-size:36px;color:#2E7D32">*</b><font style="font-size:12px;color:#888"><br>cena do ustalenia</font>" 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="<font style="font-size:10px;color:#2E7D32">rekomendowany dla większości firm</font>" 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="<font style="font-size:11px;color:#666">Wszystko ze Starter +</font>" 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="✅ 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="✅ 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="✅ 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="✅ 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="✅ 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="❌ 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="❌ 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="❌ 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="<font style="font-size:10px;color:#2E7D32">Target: ~66% firm członkowskich</font>" 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="<b style="color:#fff;font-size:10px">KOTWICA CENOWA</b>" 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="<b style="font-size:22px;color:#F57F17">Business Pro</b>" 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="<b style="font-size:36px;color:#F57F17">**</b><font style="font-size:12px;color:#888"><br>cena do ustalenia</font>" 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="<font style="font-size:10px;color:#F57F17">pełen pakiet narzędzi i usług</font>" 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="<font style="font-size:11px;color:#666">Wszystko z Premium +</font>" 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="✅ 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="<font style="font-size:10px;color:#888">SEO, Google Business, Social Media AI</font>" 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="✅ 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="✅ 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="<font style="font-size:11px;color:#F57F17"><b>Dodatkowe (wycena indywidualna):</b></font>" 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="➕ 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="➕ 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="<font style="font-size:10px;color:#F57F17">Pełen pakiet narzędzi dla wymagających firm</font>" 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="<b style="font-size:14px;color:#2E7D32">NAJLEPSZA WARTOŚĆ</b>" 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="<font style="font-size:12px">⚖️ <b>Wszystkie firmy traktowane równo</b> — brak wyróżnionych pozycji w katalogu.<br><font color="#888">Dodatkowe konta email i użytkowników — wycena indywidualna.</font></font>" 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="<font style="font-size:12px"><b>Subskrypcja biura Izby:</b> 1 000 - 1 500 PLN/mies.<br><font color="#888">Składki, wezwania, CRM, powiadomienia, statystyki, panel admin</font></font>" 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="<font style="font-size:10px;color:#888"><b>Strategia:</b> Ceny pakietów Premium (*) i Business Pro (**) do ustalenia wspólnie z Radą NORDA.<br>Usługi IT dla członków (monitoring, backup, email) — osobny katalog, ceny preferencyjne.</font>" 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>
|
||||
BIN
docs/architecture/diagrams/b4-membership-model.png
Normal file
|
After Width: | Height: | Size: 711 KiB |
134
docs/architecture/diagrams/b5-ai-capabilities.drawio
Normal 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="<b style="font-size:16px;color:#fff">🤖 Google Gemini AI</b><br><font style="font-size:10px;color:#ccc">Gemini 3 Flash (primary)<br>Gemini 3 Pro (reasoning)<br>Thinking mode | Fallback chain</font>" 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="<b style="font-size:16px">💬 NordaGPT — Asystent AI</b>" 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="<font style="font-size:11px">Czat z AI o firmach z katalogu</font>" 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="<font style="font-size:11px"><b>Przykład:</b> "Kto w Wejherowie robi strony WWW?"</font>" 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="<font style="font-size:11px">AI zna dane 150 firm i odpowiada kontekstowo</font>" 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="<font style="font-size:11px">Rekomendacje firm dopasowane do potrzeb</font>" 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="<b style="color:#fff;font-size:10px">Dostępne dla Premium</b>" 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="<b style="font-size:16px">📊 Audyt SEO z AI</b>" 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="<font style="font-size:11px">Automatyczna analiza strony internetowej</font>" 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="<font style="font-size:11px">Wyniki Google PageSpeed + Core Web Vitals</font>" 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="<font style="font-size:11px">AI generuje spersonalizowane rekomendacje</font>" 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="<font style="font-size:11px">Benchmarki: porównanie z innymi firmami</font>" 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="<b style="color:#fff;font-size:10px">Automatyczny raport</b>" 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="<b style="font-size:16px">📚 Baza Wiedzy ZOPK</b>" 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="<font style="font-size:11px">AI analizuje zmiany w prawie</font>" 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="<font style="font-size:11px">Wykrywa luki w roadmapie działań</font>" 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="<font style="font-size:11px">Timeline zmian przepisów z AI podsumowaniem</font>" 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="<font style="font-size:11px">Odpowiedzi AI z linkami do źródeł</font>" 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="<b style="color:#fff;font-size:10px">Monitoring prawny</b>" 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="<b style="font-size:16px">📱 Monitoring Cyfrowy</b>" 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="<font style="font-size:11px">Audyt Google Moja Firma (opinie, zdjęcia)</font>" 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="<font style="font-size:11px">Monitoring 6 platform social media</font>" 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="<font style="font-size:11px">Facebook, Instagram, LinkedIn, YouTube, TikTok, X</font>" 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="<font style="font-size:11px">AI analizuje aktywność i daje wskazówki</font>" 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="<b style="color:#fff;font-size:10px">6 platform</b>" 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="<font style="font-size:11px;color:#888">💰 Gemini 3 Flash: $0.50/1M input, $3.00/1M output | Gemini 3 Pro: $2.00/$12.00 | Thinking mode: dodatkowy koszt</font>" 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>
|
||||
BIN
docs/architecture/diagrams/b5-ai-capabilities.png
Normal file
|
After Width: | Height: | Size: 569 KiB |
163
docs/architecture/diagrams/b6-data-security.drawio
Normal 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="🔒" 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="<b style="font-size:15px">Szyfrowanie</b>" 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="✅ 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="✅ 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="✅ 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="🛡️" 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="<b style="font-size:15px">Ochrona przed atakami</b>" 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="✅ 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="✅ 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="✅ 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="🔑" 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="<b style="font-size:15px">Kontrola dostępu</b>" 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="✅ 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="✅ 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="✅ 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="💾" 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="<b style="font-size:15px">Kopie zapasowe</b>" 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="✅ 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="✅ 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="✅ 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="👤" 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="<b style="font-size:15px">Prywatność (RODO)</b>" 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="✅ 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="✅ 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="✅ 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="🏗️" 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="<b style="font-size:15px">Infrastruktura</b>" 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="✅ 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="✅ 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="✅ Ś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="👀" 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="<b style="font-size:15px">Monitoring</b>" 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="✅ 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="✅ 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="✅ 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="<font style="font-size:12px"><b>7 warstw ochrony</b> — od szyfrowania komunikacji, przez kontrolę dostępu, po codzienne kopie zapasowe i monitoring</font>" 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>
|
||||
BIN
docs/architecture/diagrams/b6-data-security.png
Normal file
|
After Width: | Height: | Size: 522 KiB |
122
docs/architecture/diagrams/b7-integration-ecosystem.drawio
Normal 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="<b style="font-size:18px;color:#fff">NordaBiz</b><br><font style="font-size:10px;color:#ccc">Platforma katalogowa<br>150 firm</font>" 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="<b style="font-size:16px;color:#4285F4">Google</b>" 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="<b>Gemini AI</b> — 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="<b>PageSpeed Insights</b> — 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="<b>Places API</b> — 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="<b>Search Console</b> — 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="<b>OAuth 2.0</b> — 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="<b style="font-size:16px;color:#C62828">Social Media</b>" 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="<b>Facebook</b> — 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="<b>Instagram</b> — 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="<b>LinkedIn</b> — 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="<b>YouTube</b> — 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="<b>TikTok + X (Twitter)</b> — 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="<b style="font-size:16px;color:#2E7D32">Rejestry Publiczne</b>" 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="<b>KRS</b> — 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="<b>CEIDG</b> — 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="<b>GUS (REGON)</b> — 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="<b style="font-size:16px;color:#E65100">Inne Serwisy</b>" 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="<b>Microsoft Graph</b> — 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="<b>Brave Search API</b> — 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="<b>Chrome UX Report</b> — 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="<font style="font-size:11px;color:#888"><b>17 integracji</b> z zewnętrznymi serwisami &nbsp;|&nbsp; Dane aktualizowane automatycznie &nbsp;|&nbsp; Wszystko w jednym miejscu</font>" 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>
|
||||
BIN
docs/architecture/diagrams/b7-integration-ecosystem.png
Normal file
|
After Width: | Height: | Size: 422 KiB |
258
docs/architecture/diagrams/b8-access-levels.drawio
Normal 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="👤" 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="<b style="font-size:14px">Gość</b>" 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="<font style="font-size:10px;color:#888">Bez logowania<br>Tylko przeglądanie</font>" 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="👨‍💼" 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="<b style="font-size:14px;color:#1565C0">Starter</b>" 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="<font style="font-size:10px;color:#888">1 zł/mies. (Izba Norda)<br>Forum, profil, aktualności</font>" 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="⭐" 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="<b style="font-size:14px;color:#2E7D32">Premium</b>" 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="<font style="font-size:10px;color:#888">cena do ustalenia *<br>+ NordaGPT, Norda360, email</font>" 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="🏢" 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="<b style="font-size:14px;color:#F57F17">Business Pro</b>" 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="<font style="font-size:10px;color:#888">cena do ustalenia **<br>+ Norda360, 5 email, konta</font>" 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="🛡️" 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="<b style="font-size:14px;color:#b85450">Admin Izby</b>" 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="<font style="font-size:10px;color:#888">1 000-1 500 PLN/mies.<br>Pełna kontrola + CRM</font>" 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="<b style="font-size:12px">FUNKCJA</b>" 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="<b>Przeglądanie katalogu firm</b>" 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="<b>Profil firmy w katalogu</b>" 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="<b>Forum + ogłoszenia</b>" 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="<b>Aktualności + kalendarz</b>" 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="<b>Zakupy grupowe (rabaty)</b>" 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="<b>Powiadomienia wielokanałowe</b>" 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="<b>NordaGPT — asystent AI</b>" 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="<b>Statystyki profilu firmy</b>" 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="<b>Norda360 (SEO/GBP/Social)</b>" 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="<b>Email @nordabiznes.pl (ilość)</b>" 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="<b>Projekt Kaszubia — dostęp</b>" 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="<b>Dodatkowe konta email</b>" 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="<b>Konta pracowników z rolami</b>" 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="<b>Zarządzanie składkami / CRM</b>" 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="<b>Wezwania do zapłaty</b>" 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="<b>Panel administracyjny</b>" 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="<b>Gość</b>" 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="<b style="color:#1565C0">Starter (1 zł)</b>" 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="<b style="color:#2E7D32">Premium *</b>" 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="<b style="color:#F57F17">Business Pro **</b>" 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="<b style="color:#b85450">Admin Izby</b>" 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="✅" 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="❌" 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="<font color="#aaa">tylko odczyt</font>" 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="<font color="#aaa">tylko odczyt</font>" 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="❌" 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="❌" 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="❌" 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="❌" 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="❌" 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="❌" 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="❌" 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="❌" 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="❌" 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="❌" 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="❌" 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="❌" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="❌" 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="❌" 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="❌" 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="❌" 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="❌" 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="❌" 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="❌" 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="❌" 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="❌" 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="❌" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="<font color="#2E7D32">50% zniżki</font>" 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="✅ <font color="#2E7D32" style="font-size:10px">1 konto</font>" 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="✅" 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="❌" 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="❌" 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="❌" 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="❌" 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="❌" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="<font color="#F57F17"><b>w cenie</b></font>" 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="✅ <font color="#F57F17" style="font-size:10px">5 kont</font>" 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="✅" 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="<font color="#F57F17" style="font-size:10px">wycena indywidualna</font>" 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="✅" 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="❌" 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="❌" 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="❌" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="✅" 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="<font style="font-size:11px">✅ = pełny dostęp &nbsp;&nbsp; ❌ = brak dostępu &nbsp;&nbsp; <font color="#aaa">ograniczone / tylko odczyt</font> = częściowy dostęp &nbsp;&nbsp; <font color="#2E7D32">50% zniżki / IMAP</font> = wariant pakietu</font>" 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>
|
||||
BIN
docs/architecture/diagrams/b8-access-levels.png
Normal file
|
After Width: | Height: | Size: 538 KiB |
410
docs/architecture/diagrams/system-architecture.drawio
Normal 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 &nbsp;|&nbsp; Platforma katalogowa Norda Biznes &nbsp;|&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="<b>Użytkownicy</b><br>(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="<b>Administrator</b><br>(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="<b>DNS</b><br>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="<b>FortiGate-500D</b><br>Zapora sieciowa / NAT<br><font style="font-size:9px;color:#888">85.237.177.83</font>" 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="<b>Serwer Proxy (NPM)</b><br>R11-REVPROXY-01 (VM 119)<br><font style="font-size:9px;color:#888">10.22.68.250 | SSL Let's Encrypt<br>Proxy Host #27 (prod) | #44 (staging)</font>" 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 &nbsp;|&nbsp; NORDABIZ-01 (VM 249) &nbsp;|&nbsp; 10.22.68.249 &nbsp;|&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="<b style="font-size:14px">Flask 3.0 + Gunicorn</b><br><font style="font-size:9px;color:#555">Port 5000 | 4 workery | www-data | Python 3.9+</font>" 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="<b>Moduły aplikacji</b> (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="<b>Katalog firm</b><br><font style="font-size:8px">Lista, profile, wyszukiwanie<br>~20 tras</font>" 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="<b>Panel administracyjny</b><br><font style="font-size:8px">~100 tras, 16 plików<br>Firmy, użytkownicy, dane</font>" 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="<b>Forum i społeczność</b><br><font style="font-size:8px">Dyskusje, wiadomości<br>~68 tras</font>" 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="<b>ZOPK</b><br><font style="font-size:8px">Baza wiedzy, timeline<br>~55 tras</font>" 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="<b>Czat AI (NordaGPT)</b><br><font style="font-size:8px">Asystent AI, 9 tras</font>" 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="<b>Audyt cyfrowy</b><br><font style="font-size:8px">SEO, IT, raporty</font>" 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="<b>Członkostwo</b><br><font style="font-size:8px">Składki, korzyści, edukacja</font>" 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="<b>API i autoryzacja</b><br><font style="font-size:8px">~73 tras, OAuth</font>" 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="<b>Usługi wewnętrzne</b> (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="<b>Wyszukiwarka</b><br><font style="font-size:8px">FTS + fuzzy + synonimy</font>" 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="<b>GeminiService</b><br><font style="font-size:8px">Sztuczna inteligencja</font>" 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="<b>NordaGPT</b><br><font style="font-size:8px">Czat AI + kontekst firm</font>" 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="<b>Bazy wiedzy</b><br><font style="font-size:8px">Norda + ZOPK Knowledge</font>" 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="<b>Audyt SEO</b><br><font style="font-size:8px">PageSpeed + CrUX + INP</font>" 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="<b>Google Moja Firma</b><br><font style="font-size:8px">Places API, opinie</font>" 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="<b>Media społecznościowe</b><br><font style="font-size:8px">FB, IG, LI, YT, TikTok</font>" 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="<b>Benchmarki</b><br><font style="font-size:8px">Średnie per kategoria</font>" 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="<b>Poczta e-mail</b><br><font style="font-size:8px">MS Graph OAuth</font>" 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="<b>KRS / CEIDG</b><br><font style="font-size:8px">Rejestry firm</font>" 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="<b>OAuth 2.0</b><br><font style="font-size:8px">Google + Meta</font>" 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="<b>Inne usługi</b><br><font style="font-size:8px">Pliki, YouTube, monitoring</font>" 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="<b>Bezpieczeństwo</b><br><font style="font-size:8px">Flask-Login | CSRF | Rate Limiter (200/dzień, 50/godz.)</font>" 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="<b>Szablony Jinja2</b><br><font style="font-size:8px">HTML5 + CSS3 + Vanilla JS</font>" 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="<b>SQLAlchemy 2.0</b><br><font style="font-size:8px">ORM + modele danych</font>" 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="<b style="font-size:13px">PostgreSQL 14</b><br><font style="font-size:9px;color:#555">localhost:5432<br>Baza: nordabiz<br>40 tabel | 11 domen<br>pg_trgm + uuid-ossp</font>" 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="<b>Domeny danych:</b>" 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="<font style="font-size:8px">Firmy (9 tabel)<br>Treści (10 tabel)<br>Forum (7 tabel)<br>Czat AI (4 tabele)<br>Audyt (3 tabele)<br>Członkostwo (2)<br>Ogłoszenia (3)<br>Kalendarz (2)<br>+ 3 inne domeny</font>" 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="<b>Zadania automatyczne</b>" 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="<font style="font-size:8px">⏰ Co godzinę: backup bazy<br>⏰ Co godzinę: ZOPK ekstrakcja<br>📅 Codziennie: pełny backup<br>📅 Codziennie: sync PBS<br>📆 Miesięcznie: aktualizacja stron</font>" 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="<b>Google Gemini AI</b><br><font style="font-size:8px">gemini-3-flash (sztuczna inteligencja)</font>" 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="<b>Google PageSpeed</b><br><font style="font-size:8px">Core Web Vitals + CrUX</font>" 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="<b>Google Places API</b><br><font style="font-size:8px">Google Moja Firma, opinie</font>" 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="<b>Google OAuth 2.0</b><br><font style="font-size:8px">GBP + Search Console</font>" 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="<b>Brave Search API</b><br><font style="font-size:8px">Wiadomości + social media</font>" 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="<b>KRS / CEIDG API</b><br><font style="font-size:8px">Publiczne rejestry firm</font>" 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="<b>Microsoft Graph</b><br><font style="font-size:8px">Poczta e-mail (OAuth 2.0)</font>" 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="<b>YouTube Data API v3</b><br><font style="font-size:8px">Statystyki kanałów</font>" 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) &nbsp;|&nbsp; VM 248 &nbsp;|&nbsp; 10.22.68.248 &nbsp;|&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="<b>Flask + Gunicorn</b><br><font style="font-size:8px;color:#555">Kopia produkcji<br>Port 5000</font>" 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="<b>PostgreSQL</b><br><font style="font-size:8px;color:#555">nordabiz_staging<br>localhost:5432</font>" 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="<font style="font-size:8px;color:#888">Obowiązkowy test przed<br>wdrożeniem na produkcję!</font>" 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 &nbsp;|&nbsp; macOS &nbsp;|&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="<b>Flask dev server</b><br><font style="font-size:8px;color:#555">python3 app.py<br>Port 5000 / 5001</font>" 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="<b>Docker PostgreSQL</b><br><font style="font-size:8px;color:#555">postgres:16<br>localhost:5433</font>" 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="<font style="font-size:8px;color:#555">VS Code + Claude Code<br>pytest | Docker Compose</font>" 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="<b>GitHub</b><br><font style="font-size:8px">pienczyn/nordabiz<br>Backup w chmurze + CI/CD</font>" 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="<b>Gitea (INPI)</b><br><font style="font-size:8px">10.22.68.180<br>Repozytorium wewnętrzne</font>" 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="<b>Przepływ wdrożenia:</b><br><font style="font-size:9px">1. git push (origin + inpi) → 2. Wdrożenie na staging → 3. Test manualny → 4. git pull na produkcji → 5. Migracje SQL → 6. Restart serwisu</font>" 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="<b>Legenda</b>" 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="<font style="font-size:9px">Zapora sieciowa</font>" 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="<font style="font-size:9px">Strefa DMZ / Proxy</font>" 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="<font style="font-size:9px">Aplikacja (produkcja)</font>" 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="<font style="font-size:9px">Usługi wewnętrzne</font>" 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="<font style="font-size:9px">Baza danych</font>" 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="<font style="font-size:9px">Staging (testowe)</font>" 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="<font style="font-size:9px">Stacja deweloperska</font>" 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>
|
||||
BIN
docs/architecture/diagrams/system-architecture.png
Normal file
|
After Width: | Height: | Size: 1.3 MiB |
3
docs/architecture/flows/CLAUDE.md
Normal file
@ -0,0 +1,3 @@
|
||||
<claude-mem-context>
|
||||
|
||||
</claude-mem-context>
|
||||
3
docs/meetings/CLAUDE.md
Normal file
@ -0,0 +1,3 @@
|
||||
<claude-mem-context>
|
||||
|
||||
</claude-mem-context>
|
||||
3
docs/notes/CLAUDE.md
Normal file
@ -0,0 +1,3 @@
|
||||
<claude-mem-context>
|
||||
|
||||
</claude-mem-context>
|
||||
103
docs/plans/2026-02-18-company-edit-wysiwyg-preview-design.md
Normal 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
|
||||
810
docs/plans/2026-02-18-company-edit-wysiwyg-preview.md
Normal 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: <p>, <strong>, <em>, <ul>, <li>, <a></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.
|
||||
BIN
downloaded/Kalendarz Izby NORDA 2026.docx
Normal file
BIN
downloaded/Lista Obecnosci Rady Izby 2026-01-07.jpg
Normal file
|
After Width: | Height: | Size: 63 KiB |
BIN
downloaded/Program Posiedzenia Rady Izby 2026-02-04.docx
Normal file
BIN
downloaded/Protokol Posiedzenia Rady Izby Nr 1-2026 Styczen.docx
Normal file
BIN
downloaded/Regulamin Konkursu Tytani Przedsiębiorczości.pdf
Normal file
BIN
downloaded/Rejs Chorwacja Wrzesień 2026 - Marina Sukosan.pdf
Normal file
53187
downloaded/Strategia Marki i Komunikacji NORDA 2026-2031.pdf
Normal file
BIN
downloaded/TourLider - Oferta Wyjazdow Biznesowych 2026.pdf
Normal file
1
node_modules/.bin/semver
generated
vendored
Symbolic link
@ -0,0 +1 @@
|
||||
../semver/bin/semver.js
|
||||
118
node_modules/.package-lock.json
generated
vendored
Normal 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
@ -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
@ -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
1
node_modules/@img/colour/index.cjs
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
module.exports = require("./color.cjs").default;
|
||||
45
node_modules/@img/colour/package.json
generated
vendored
Normal 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
@ -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
@ -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.
|
||||
BIN
node_modules/@img/sharp-darwin-arm64/lib/sharp-darwin-arm64.node
generated
vendored
Normal file
40
node_modules/@img/sharp-darwin-arm64/package.json
generated
vendored
Normal 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
@ -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
|
||||
220
node_modules/@img/sharp-libvips-darwin-arm64/lib/glib-2.0/include/glibconfig.h
generated
vendored
Normal 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__ */
|
||||
1
node_modules/@img/sharp-libvips-darwin-arm64/lib/index.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
module.exports = __dirname;
|
||||
BIN
node_modules/@img/sharp-libvips-darwin-arm64/lib/libvips-cpp.8.17.3.dylib
generated
vendored
Normal file
36
node_modules/@img/sharp-libvips-darwin-arm64/package.json
generated
vendored
Normal 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"
|
||||
]
|
||||
}
|
||||
30
node_modules/@img/sharp-libvips-darwin-arm64/versions.json
generated
vendored
Normal 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
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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
@ -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
@ -0,0 +1,5 @@
|
||||
'use strict'
|
||||
|
||||
const compare = require('./compare')
|
||||
const compareLoose = (a, b) => compare(a, b, true)
|
||||
module.exports = compareLoose
|
||||