@blogmcp/sdk 0.8.1 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/community/channels.d.ts +12 -0
- package/dist/community/channels.js +7 -0
- package/dist/community/client.d.ts +211 -0
- package/dist/community/client.js +188 -0
- package/dist/community/index.d.ts +34 -0
- package/dist/community/index.js +92 -0
- package/dist/community/links.d.ts +65 -0
- package/dist/community/links.js +81 -0
- package/dist/community/messages.cs.d.ts +331 -0
- package/dist/community/messages.cs.js +342 -0
- package/dist/community/messages.d.ts +40 -0
- package/dist/community/messages.en.d.ts +315 -0
- package/dist/community/messages.en.js +313 -0
- package/dist/community/messages.js +66 -0
- package/dist/community/outcome.d.ts +96 -0
- package/dist/community/outcome.js +211 -0
- package/dist/community/poll.d.ts +35 -0
- package/dist/community/poll.js +70 -0
- package/dist/community/routes.d.ts +110 -0
- package/dist/community/routes.js +66 -0
- package/dist/community/server/bff.d.ts +123 -0
- package/dist/community/server/bff.js +214 -0
- package/dist/community/server/env.d.ts +20 -0
- package/dist/community/server/env.js +16 -0
- package/dist/community/server/host-routes.d.ts +15 -0
- package/dist/community/server/host-routes.js +35 -0
- package/dist/community/server/http.d.ts +64 -0
- package/dist/community/server/http.js +90 -0
- package/dist/community/server/index.d.ts +45 -0
- package/dist/community/server/index.js +19 -0
- package/dist/community/server/route-decision.d.ts +70 -0
- package/dist/community/server/route-decision.js +89 -0
- package/dist/community/server/unknown-path.d.ts +21 -0
- package/dist/community/server/unknown-path.js +11 -0
- package/dist/community/shapes.d.ts +457 -0
- package/dist/community/shapes.js +51 -0
- package/dist/community/store.d.ts +183 -0
- package/dist/community/store.js +423 -0
- package/dist/community/transport.d.ts +42 -0
- package/dist/community/transport.js +59 -0
- package/dist/core/client.d.ts +17 -0
- package/dist/core/client.js +58 -55
- package/dist/core/comments-legacy.d.ts +19 -0
- package/dist/core/comments-legacy.js +18 -0
- package/dist/core/index.d.ts +3 -0
- package/dist/core/index.js +107 -101
- package/dist/core/queries.d.ts +46 -0
- package/dist/core/queries.js +128 -84
- package/dist/core/seo.js +40 -39
- package/dist/core/translations/cs.json.js +6 -6
- package/dist/core/translations/en.json.js +1 -1
- package/dist/core/types.d.ts +23 -1
- package/dist/core/view-model.d.ts +7 -0
- package/dist/core/view-model.js +29 -25
- package/dist/react/KbMdxContent.js +4 -3
- package/dist/vue/components/KbMdxContent.vue2.js +3 -2
- package/dist/vue/composables/useKbComments.d.ts +8 -0
- package/package.json +13 -4
- package/src/community/channels.ts +12 -0
- package/src/community/client.ts +437 -0
- package/src/community/index.ts +190 -0
- package/src/community/links.ts +166 -0
- package/src/community/messages.cs.ts +371 -0
- package/src/community/messages.en.ts +341 -0
- package/src/community/messages.ts +112 -0
- package/src/community/outcome.ts +317 -0
- package/src/community/poll.ts +154 -0
- package/src/community/routes.ts +139 -0
- package/src/community/server/bff.ts +530 -0
- package/src/community/server/env.ts +42 -0
- package/src/community/server/host-routes.ts +48 -0
- package/src/community/server/http.ts +175 -0
- package/src/community/server/index.ts +55 -0
- package/src/community/server/route-decision.ts +226 -0
- package/src/community/server/unknown-path.ts +32 -0
- package/src/community/shapes.ts +513 -0
- package/src/community/store.ts +786 -0
- package/src/community/transport.ts +111 -0
- package/src/core/client.ts +24 -1
- package/src/core/comments-legacy.ts +39 -0
- package/src/core/index.ts +8 -0
- package/src/core/queries.ts +93 -0
- package/src/core/seo.ts +5 -1
- package/src/core/translations/cs.json +3 -1
- package/src/core/translations/en.json +3 -1
- package/src/core/types.ts +19 -1
- package/src/core/view-model.ts +12 -1
- package/src/vue/composables/useKbComments.ts +8 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The community's deep links (docs/internal/m1-contracts.md §7.9, §10.2, §12): a statement of reasons, the
|
|
3
|
+
* „Moje komunita" panel, a notifier's status page — and the notifier's receipt, which travels in a link's
|
|
4
|
+
* FRAGMENT only (`#t=<receipt>`): a fragment never reaches a server's log, a `Referer` or a proxy, a path or a
|
|
5
|
+
* query would (community.md invariant 8). The page that reads it removes it from the address bar at once.
|
|
6
|
+
*
|
|
7
|
+
* The host's pages are the host's: a tenant names its own in `community.settings` (`statement_link_path` with
|
|
8
|
+
* `{id}`, `notice_status_link_path`, `my_community_link_path` — they come back in MyState.links) and an element
|
|
9
|
+
* takes them as attributes. Without them the managed blog's pages apply, COMMUNITY_ROUTES — the paths kb-api's
|
|
10
|
+
* deliveries fall back to (a drift spec pins them to kb-api's).
|
|
11
|
+
*
|
|
12
|
+
* Browser-safe; readReceiptFromHash is the one function that touches `window` (on call, never on import).
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
/** The managed blog's community pages (router-relative; the blog prepends its own base). */
|
|
16
|
+
export const COMMUNITY_ROUTES = Object.freeze({
|
|
17
|
+
/** The „Moje komunita" panel. */
|
|
18
|
+
myCommunity: '/community',
|
|
19
|
+
/** A statement of reasons and its appeal; `{id}` is the decision's id (statementPath). */
|
|
20
|
+
statement: '/community/statements/{id}',
|
|
21
|
+
/** The notice form (anyone, no sign-in needed). */
|
|
22
|
+
report: '/community/report',
|
|
23
|
+
/** A notifier's status page; the receipt goes in its fragment (noticeStatusLink). */
|
|
24
|
+
notices: '/community/notices',
|
|
25
|
+
/** The rules, rendered on the server without JavaScript. */
|
|
26
|
+
rules: '/community/rules',
|
|
27
|
+
} as const)
|
|
28
|
+
|
|
29
|
+
/** A decision's id (kb-api's UUIDs). */
|
|
30
|
+
const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i
|
|
31
|
+
|
|
32
|
+
/** A notifier's receipt: kb-api's `kbnt_` capability token (≤ 512 characters, base64url). */
|
|
33
|
+
export const COMMUNITY_RECEIPT_RE = /^kbnt_[A-Za-z0-9_-]{1,507}$/
|
|
34
|
+
|
|
35
|
+
/** The fragment key of the receipt (`#t=…`), kb-api's RECEIPT_FRAGMENT_KEY. */
|
|
36
|
+
const RECEIPT_KEY = 't'
|
|
37
|
+
|
|
38
|
+
/** A path on the host's own site: one leading `/` (never `//` or `/\`), no blank, control character or backslash. */
|
|
39
|
+
function isSitePath(path: unknown): path is string {
|
|
40
|
+
return typeof path === 'string' && /^\/(?![/\\])/.test(path) && !/[\s\\\u0000-\u001f\u007f]/.test(path)
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* A statement's page: `{id}` of the template filled with the decision's id. The template is the host's (its
|
|
45
|
+
* attribute, MyState.links.statementPath); absent, the managed blog's. Null for an id that is not a decision id, or
|
|
46
|
+
* a template that is no site path, lacks `{id}` or holds another brace — no link is built from arbitrary text.
|
|
47
|
+
*/
|
|
48
|
+
export function statementPath(template: string | null | undefined, decisionId: string): string | null {
|
|
49
|
+
const t = template === null || template === undefined || template === '' ? COMMUNITY_ROUTES.statement : template
|
|
50
|
+
if (!isSitePath(t) || !t.includes('{id}') || /[{}]/.test(t.split('{id}').join(''))) return null
|
|
51
|
+
if (typeof decisionId !== 'string' || !UUID_RE.test(decisionId)) return null
|
|
52
|
+
return t.split('{id}').join(decisionId.toLowerCase())
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** The „Moje komunita" page: the host's path when it is a site path, else the managed blog's. */
|
|
56
|
+
export function myCommunityPath(path?: string | null): string {
|
|
57
|
+
return isSitePath(path) ? path : COMMUNITY_ROUTES.myCommunity
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* A notifier's status link: the host's status page (absent: the managed blog's) with the receipt in the
|
|
62
|
+
* fragment. Null for a path that is no site path or already has a fragment, and for anything that is not a receipt.
|
|
63
|
+
*/
|
|
64
|
+
export function noticeStatusLink(path: string | null | undefined, receipt: string): string | null {
|
|
65
|
+
const p = path === null || path === undefined || path === '' ? COMMUNITY_ROUTES.notices : path
|
|
66
|
+
if (!isSitePath(p) || p.includes('#')) return null
|
|
67
|
+
if (typeof receipt !== 'string' || !COMMUNITY_RECEIPT_RE.test(receipt)) return null
|
|
68
|
+
return `${p}#${RECEIPT_KEY}=${receipt}`
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* The sign-in link for an anonymous viewer: `signInHref` with the page's path in the fragment (the storefront's
|
|
73
|
+
* rule: the sign-in page reads it and returns there). A `signInHref` that carries a fragment already is kept as it
|
|
74
|
+
* is; one that is no site path, or a `returnPath` that is none, gives the bare link (or null without a usable href).
|
|
75
|
+
*/
|
|
76
|
+
export function signInLink(signInHref: string | null | undefined, returnPath?: string | null): string | null {
|
|
77
|
+
if (!isSitePath(signInHref)) return null
|
|
78
|
+
if (signInHref.includes('#') || !isSitePath(returnPath) || returnPath.includes('#')) return signInHref
|
|
79
|
+
return `${signInHref}#${returnPath}`
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The receipt in a URL fragment (`#t=<receipt>`), or null. Nothing else is read from the fragment, and only
|
|
84
|
+
* kb-api's exact receipt shape is accepted: a link cut short by a mail client, or with a parameter appended, is
|
|
85
|
+
* "no receipt", never a token sent to the host.
|
|
86
|
+
*/
|
|
87
|
+
export function receiptFromHash(hash: string): string | null {
|
|
88
|
+
const match = /^#t=([^&]*)/.exec(typeof hash === 'string' ? hash : '')
|
|
89
|
+
const receipt = match?.[1] ?? ''
|
|
90
|
+
return COMMUNITY_RECEIPT_RE.test(receipt) ? receipt : null
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** The receipt each window's address bar carried, read once (the fragment is gone after the first read). */
|
|
94
|
+
const receipts = new WeakMap<Window, string | null>()
|
|
95
|
+
|
|
96
|
+
function browserWindow(): Window {
|
|
97
|
+
if (typeof window === 'undefined') {
|
|
98
|
+
throw new Error(
|
|
99
|
+
'[blogmcp-sdk] readReceiptFromHash reads the address bar — call it in the browser (onMounted / useEffect), ' +
|
|
100
|
+
'never while rendering on the server',
|
|
101
|
+
)
|
|
102
|
+
}
|
|
103
|
+
return window
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/** A plain object — a router's state record — not an array, a class instance or null. */
|
|
107
|
+
function isPlainRecord(value: unknown): value is Record<string, unknown> {
|
|
108
|
+
if (typeof value !== 'object' || value === null || Array.isArray(value)) return false
|
|
109
|
+
const proto = Object.getPrototypeOf(value)
|
|
110
|
+
return proto === Object.prototype || proto === null
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/** `value` without the fragment: cut where it starts, found as the address bar showed it and by the receipt itself. */
|
|
114
|
+
function withoutFragment(value: string, hash: string, receipt: string | null): string {
|
|
115
|
+
let out = value
|
|
116
|
+
const at = hash ? out.indexOf(hash) : -1
|
|
117
|
+
if (at >= 0) out = out.slice(0, at)
|
|
118
|
+
if (receipt !== null) {
|
|
119
|
+
for (let i = out.indexOf(receipt); i >= 0; i = out.indexOf(receipt)) {
|
|
120
|
+
const fragment = out.lastIndexOf('#', i)
|
|
121
|
+
out = fragment >= 0 ? out.slice(0, fragment) : out.slice(0, i) + out.slice(i + receipt.length)
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return out
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/**
|
|
128
|
+
* The router's history state without any copy of the fragment (vue-router keeps the full URL in
|
|
129
|
+
* `history.state.current`, `back` and `forward`): a SHALLOW copy where only top-level strings change.
|
|
130
|
+
*/
|
|
131
|
+
function scrubbedState(state: unknown, hash: string, receipt: string | null): unknown {
|
|
132
|
+
if (!isPlainRecord(state)) return state
|
|
133
|
+
let changed = false
|
|
134
|
+
const copy: Record<string, unknown> = { ...state }
|
|
135
|
+
for (const [key, value] of Object.entries(copy)) {
|
|
136
|
+
if (typeof value !== 'string') continue
|
|
137
|
+
const clean = withoutFragment(value, hash, receipt)
|
|
138
|
+
if (clean !== value) {
|
|
139
|
+
copy[key] = clean
|
|
140
|
+
changed = true
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
return changed ? copy : state
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* The notifier's receipt from the address bar, which is then cleared of it — the URL and the router's copy in
|
|
148
|
+
* `history.state` (`history.replaceState`, keeping the query string and the router's other state).
|
|
149
|
+
*
|
|
150
|
+
* The receipt opens the notifier's case: left in the address bar it ends up in the history, a bookmark, a shared
|
|
151
|
+
* link. Only a `#t=` fragment is cleared (a valid receipt or a cut one alike); the page's own anchors stay. It is
|
|
152
|
+
* remembered per window, so a second call (React StrictMode mounts twice, Vue remounts) still gets it from an
|
|
153
|
+
* address bar that is already clean; a later `#t=` link pasted into the same tab replaces it.
|
|
154
|
+
*
|
|
155
|
+
* ⚠️ In a vue-router app follow it with `router.replace({ hash: '' })`, so the router forgets the fragment too.
|
|
156
|
+
*/
|
|
157
|
+
export function readReceiptFromHash(win: Window = browserWindow()): string | null {
|
|
158
|
+
const hash = win.location.hash
|
|
159
|
+
const fresh = receiptFromHash(hash)
|
|
160
|
+
const first = !receipts.has(win)
|
|
161
|
+
if (hash.startsWith(`#${RECEIPT_KEY}=`)) {
|
|
162
|
+
win.history.replaceState(scrubbedState(win.history.state, hash, fresh), '', win.location.pathname + win.location.search)
|
|
163
|
+
}
|
|
164
|
+
if (first || fresh !== null) receipts.set(win, fresh)
|
|
165
|
+
return receipts.get(win) ?? null
|
|
166
|
+
}
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Czech texts of the community's elements and pages. Rules (the owner's, and test/community/messages.spec.ts
|
|
3
|
+
* enforces them): short and human; never tell readers what they may not write; no legal wording (that comes from
|
|
4
|
+
* the tenant's own texts and kb-api's statements); nothing tenant-specific; and no absolute promise — „nikdo",
|
|
5
|
+
* „nic", „nikdy", „žádný" only in a reviewed sentence (community.md §3.5).
|
|
6
|
+
*
|
|
7
|
+
* Plurals follow `Intl.PluralRules('cs')`: `_one`, `_few`, `_many` (fractions), `_other`. Parameters are `{name}`.
|
|
8
|
+
* Codes from kb-api name their key: `error.<CommunityUiCode>`, `need.<Need>`, `state.<MessageState>`,
|
|
9
|
+
* `note.<code>`, `category.<CaseCategory>`, `confirm.<code>`, `restriction.<restriction>`, `sanction.<kind>`,
|
|
10
|
+
* `basis.<basis>`, `caseStatus.<status>`, `appealStatus.<status>`, `notification.<code>`.
|
|
11
|
+
*/
|
|
12
|
+
export const COMMUNITY_MESSAGES_CS = {
|
|
13
|
+
// ── what a refusal tells the reader (error.<CommunityUiCode>) ──
|
|
14
|
+
'error.method': 'Tohle se takhle spustit nedá. Obnovte prosím stránku.',
|
|
15
|
+
'error.origin': 'Požadavek nepřišel z této stránky. Obnovte ji prosím a zkuste to znovu.',
|
|
16
|
+
'error.unavailable': 'Teď se to nepodařilo načíst ani uložit. Zkuste to prosím za chvíli.',
|
|
17
|
+
'error.invalid': 'Něco ve formuláři nesedí. Zkontrolujte ho prosím a zkuste to znovu.',
|
|
18
|
+
'error.signIn': 'K tomu je potřeba přihlásit se čtenářským účtem.',
|
|
19
|
+
'error.onboarding': 'Než začnete psát, dokončete prosím vstup do diskuse.',
|
|
20
|
+
'error.age': 'Diskuse je otevřená od vyššího věku, zapojit se do ní zatím nejde.',
|
|
21
|
+
'error.name': 'Tohle jméno použít nejde. Zkuste prosím jiné.',
|
|
22
|
+
'error.handle': 'Tohle uživatelské jméno je obsazené, nebo jste ho nedávno měnili. Zkuste prosím jiné, nebo později.',
|
|
23
|
+
'error.restricted': 'Psaní do diskuse máte teď omezené.',
|
|
24
|
+
'error.suspended': 'Váš účet v diskusi je teď pozastavený.',
|
|
25
|
+
'error.terminated': 'Váš účet v diskusi je zrušený.',
|
|
26
|
+
'error.links': 'V komentáři je víc odkazů, než se vejde. Některé prosím uberte.',
|
|
27
|
+
'error.fast': 'Jde to moc rychle za sebou. Chvilku počkejte a zkuste to znovu.',
|
|
28
|
+
'error.blocked': 'Komentář v téhle podobě zveřejnit nejde. Zkuste ho prosím upravit.',
|
|
29
|
+
'error.confirm': 'Než komentář odešlete, potvrďte prosím jednu věc.',
|
|
30
|
+
'error.removed': 'Tahle zpráva byla odstraněna, upravit ji už nejde.',
|
|
31
|
+
'error.quota': 'Posíláte toho hodně najednou. Zkuste to prosím později.',
|
|
32
|
+
'error.captcha': 'Nepodařilo se ověřit, že nejste robot. Počkejte prosím na nové ověření a odešlete to znovu.',
|
|
33
|
+
'error.notFound': 'Tohle jsme nenašli. Možná už není k dispozici.',
|
|
34
|
+
'error.surfaceOff': 'Diskuse tu teď není k dispozici.',
|
|
35
|
+
'error.notMoved': 'Diskusi teď připravujeme. Psát do ní půjde brzy.',
|
|
36
|
+
'error.ledger': 'Teď se to nepodařilo uložit a všechno zůstalo, jak bylo. Zkuste to prosím znovu.',
|
|
37
|
+
'error.submit': 'Nepovedlo se to. Obnovte prosím stránku a zkuste to znovu.',
|
|
38
|
+
|
|
39
|
+
// ── what the composer waits for (need.<Need>) ──
|
|
40
|
+
'need.sign_in': 'Do diskuse můžete psát po přihlášení.',
|
|
41
|
+
'need.onboarding': 'Před prvním komentářem si nastavte jméno a potvrďte pravidla diskuse.',
|
|
42
|
+
'need.reconsent_rules': 'Pravidla diskuse se změnila. Potvrďte prosím novou verzi.',
|
|
43
|
+
'need.art9_consent': 'Pro psaní do diskuse potřebujeme váš souhlas se zpracováním.',
|
|
44
|
+
|
|
45
|
+
// ── a message's state (state.<MessageState>) ──
|
|
46
|
+
'state.visible': 'Zveřejněno',
|
|
47
|
+
'state.held': 'Čeká na kontrolu',
|
|
48
|
+
'state.removed': 'Odstraněno',
|
|
49
|
+
'state.deleted': 'Smazáno',
|
|
50
|
+
// Not a state of its own: a `held` message of the author's that the art. 9 policy keeps from others (hiddenUntilConsent).
|
|
51
|
+
'state.hiddenUntilConsent': 'Čeká na váš souhlas',
|
|
52
|
+
|
|
53
|
+
// ── the filters' notes for the author (note.<code>) ──
|
|
54
|
+
'note.identification_safety':
|
|
55
|
+
'Podle fotky se houba spolehlivě určit nedá a o jedlosti tady nerozhodujeme. Při podezření na otravu volejte Toxikologické informační středisko: 224 919 293 (nonstop).',
|
|
56
|
+
'note.report_to_manufacturer':
|
|
57
|
+
'Jde-li o nežádoucí účinek přípravku, dejte nám o něm prosím vědět také v poradně, ať ho můžeme prověřit.',
|
|
58
|
+
|
|
59
|
+
// ── report and notice categories (category.<CaseCategory>) ──
|
|
60
|
+
'category.fraud_spam': 'Podvod nebo spam',
|
|
61
|
+
'category.harassment': 'Obtěžování',
|
|
62
|
+
'category.hate': 'Nenávistné projevy',
|
|
63
|
+
'category.threats': 'Výhrůžky',
|
|
64
|
+
'category.sexual_content': 'Sexuální obsah',
|
|
65
|
+
'category.child_at_risk': 'Ohrožené dítě',
|
|
66
|
+
'category.self_harm': 'Sebepoškozování',
|
|
67
|
+
'category.doxxing': 'Zveřejnění cizích osobních údajů',
|
|
68
|
+
'category.copyright': 'Porušení autorských práv',
|
|
69
|
+
'category.terrorism': 'Terorismus',
|
|
70
|
+
'category.drugs': 'Drogy',
|
|
71
|
+
'category.other_illegal': 'Jiný nezákonný obsah',
|
|
72
|
+
'category.rules': 'Porušení pravidel diskuse',
|
|
73
|
+
'category.adverse_event': 'Nežádoucí účinek přípravku',
|
|
74
|
+
'category.third_party_health_data': 'Cizí údaje o zdraví',
|
|
75
|
+
'category.suspected_minor': 'Autor je nejspíš mladší, než pravidla dovolují',
|
|
76
|
+
|
|
77
|
+
// ── what an author or a notifier confirms (confirm.<code>) ──
|
|
78
|
+
'confirm.title': 'Než to odešlete',
|
|
79
|
+
'confirm.about_self_or_consent': 'Píšu o sobě, nebo mám souhlas člověka, o kterém píšu.',
|
|
80
|
+
'confirm.good_faith': 'Potvrzuji, že podle mého nejlepšího vědomí je hlášení přesné a úplné.',
|
|
81
|
+
'confirm.other': 'Rozumím upozornění a chci komentář odeslat.',
|
|
82
|
+
'confirm.submit': 'Potvrdit a odeslat',
|
|
83
|
+
|
|
84
|
+
// ── warnings under a posted message (warning.*) ──
|
|
85
|
+
'warning.identifier': 'V komentáři je nejspíš e-mail, telefon nebo číslo účtu. Pokud tam být nemá, komentář upravte.',
|
|
86
|
+
'warning.invisible_chars': 'Z komentáře jsme odstranili neviditelné znaky.',
|
|
87
|
+
'warning.other': 'Komentář je zveřejněný, ale pravidla diskuse u něj na něco upozorňují. Projděte si ho prosím.',
|
|
88
|
+
|
|
89
|
+
// ── authors ──
|
|
90
|
+
'author.deleted': 'Smazaný uživatel',
|
|
91
|
+
'author.system': 'Oznámení webu',
|
|
92
|
+
'author.badge.team': 'Tým',
|
|
93
|
+
|
|
94
|
+
// ── the discussion ──
|
|
95
|
+
'discussion.title': 'Diskuse',
|
|
96
|
+
'discussion.count_one': '{count} komentář',
|
|
97
|
+
'discussion.count_few': '{count} komentáře',
|
|
98
|
+
'discussion.count_many': '{count} komentáře',
|
|
99
|
+
'discussion.count_other': '{count} komentářů',
|
|
100
|
+
'discussion.empty': 'Zatím tu nejsou komentáře. Začněte diskusi jako první.',
|
|
101
|
+
'discussion.loading': 'Načítám diskusi…',
|
|
102
|
+
'discussion.loadMore': 'Načíst další',
|
|
103
|
+
'discussion.newMessages': 'V diskusi přibyly nové komentáře.',
|
|
104
|
+
'discussion.refresh': 'Zobrazit',
|
|
105
|
+
'discussion.signInPrompt': 'Přihlaste se a zapojte se do diskuse.',
|
|
106
|
+
'discussion.reply': 'Odpovědět',
|
|
107
|
+
'discussion.edit': 'Upravit',
|
|
108
|
+
'discussion.delete': 'Smazat',
|
|
109
|
+
'discussion.deleteTitle': 'Smazat komentář?',
|
|
110
|
+
'discussion.deleteExplain': 'Komentář zmizí. Pokud na něj už někdo odpověděl, zůstane po něm prázdné místo.',
|
|
111
|
+
'discussion.deleteConfirm': 'Ano, smazat',
|
|
112
|
+
'discussion.report': 'Nahlásit',
|
|
113
|
+
'discussion.block': 'Blokovat autora',
|
|
114
|
+
'discussion.unblock': 'Odblokovat autora',
|
|
115
|
+
'discussion.blocked': 'Autora jste zablokovali. Jeho komentáře uvidíte sbalené.',
|
|
116
|
+
'discussion.unblocked': 'Autora jste odblokovali.',
|
|
117
|
+
'discussion.menu': 'Další akce',
|
|
118
|
+
'discussion.collapsed': 'Komentář autora, kterého jste zablokovali.',
|
|
119
|
+
'discussion.show': 'Zobrazit',
|
|
120
|
+
'discussion.hide': 'Skrýt',
|
|
121
|
+
'discussion.edited': 'upraveno',
|
|
122
|
+
'discussion.translated': 'Přeloženo automaticky',
|
|
123
|
+
'discussion.showOriginal': 'Zobrazit originál',
|
|
124
|
+
'discussion.showTranslation': 'Zobrazit překlad',
|
|
125
|
+
'discussion.showReplies_one': 'Zobrazit {count} odpověď',
|
|
126
|
+
'discussion.showReplies_few': 'Zobrazit {count} odpovědi',
|
|
127
|
+
'discussion.showReplies_many': 'Zobrazit {count} odpovědi',
|
|
128
|
+
'discussion.showReplies_other': 'Zobrazit {count} odpovědí',
|
|
129
|
+
'discussion.repliesTruncated': 'Odpovědí je tu víc, než se dá zobrazit najednou.',
|
|
130
|
+
'discussion.heldNote': 'Komentář čeká na kontrolu a zatím ho vidíte jen vy. Po kontrole se ukáže ostatním, nebo se v Moje komunita dozvíte, proč ne.',
|
|
131
|
+
'discussion.hiddenUntilConsentNote': 'Komentář zatím vidíte jen vy. Ostatním se ukáže, až udělíte souhlas se zpracováním.',
|
|
132
|
+
'discussion.giveConsent': 'Udělit souhlas',
|
|
133
|
+
'discussion.removedNote': 'Tenhle komentář jsme odstranili a ostatní ho nevidí.',
|
|
134
|
+
'discussion.why': 'Proč?',
|
|
135
|
+
'discussion.placeholderHeld': 'Komentář čeká na kontrolu.',
|
|
136
|
+
'discussion.placeholderRemoved': 'Komentář byl odstraněn.',
|
|
137
|
+
'discussion.placeholderDeleted': 'Komentář byl smazán.',
|
|
138
|
+
'discussion.pending': 'Odesílám…',
|
|
139
|
+
'discussion.reactions': 'Reakce',
|
|
140
|
+
'discussion.reactionCount': '{emoji} {count}',
|
|
141
|
+
'discussion.reactionAdd': 'Přidat reakci',
|
|
142
|
+
'discussion.reactionRemove': 'Odebrat reakci',
|
|
143
|
+
'discussion.reactionMine': 'Vaše reakce',
|
|
144
|
+
|
|
145
|
+
// ── the composer ──
|
|
146
|
+
'composer.label': 'Váš komentář',
|
|
147
|
+
'composer.replyLabel': 'Vaše odpověď',
|
|
148
|
+
'composer.editLabel': 'Úprava komentáře',
|
|
149
|
+
'composer.replyingTo': 'Odpovídáte: {name}',
|
|
150
|
+
'composer.placeholder': 'Napište komentář…',
|
|
151
|
+
'composer.counter': '{length} / {max} znaků',
|
|
152
|
+
'composer.tooLong': 'Komentář je moc dlouhý. Zkraťte ho prosím nejvýš na {max} znaků.',
|
|
153
|
+
'composer.linksNote_one': 'Do komentáře se vejde nejvýš {count} odkaz.',
|
|
154
|
+
'composer.linksNote_few': 'Do komentáře se vejdou nejvýš {count} odkazy.',
|
|
155
|
+
'composer.linksNote_many': 'Do komentáře se vejde nejvýš {count} odkazu.',
|
|
156
|
+
'composer.linksNote_other': 'Do komentáře se vejde nejvýš {count} odkazů.',
|
|
157
|
+
'composer.shortcut': 'Odeslat můžete i klávesami {keys}.',
|
|
158
|
+
'composer.submit': 'Odeslat',
|
|
159
|
+
'composer.sending': 'Odesílám…',
|
|
160
|
+
'composer.save': 'Uložit',
|
|
161
|
+
'composer.cancel': 'Zrušit',
|
|
162
|
+
'composer.posted': 'Komentář je zveřejněný.',
|
|
163
|
+
'composer.held': 'Komentář máme, teď čeká na kontrolu.',
|
|
164
|
+
'composer.cooldown_one': 'Další komentář můžete poslat za {count} sekundu.',
|
|
165
|
+
'composer.cooldown_few': 'Další komentář můžete poslat za {count} sekundy.',
|
|
166
|
+
'composer.cooldown_many': 'Další komentář můžete poslat za {count} sekundy.',
|
|
167
|
+
'composer.cooldown_other': 'Další komentář můžete poslat za {count} sekund.',
|
|
168
|
+
|
|
169
|
+
// ── sanctions in effect (sanction.<kind>) ──
|
|
170
|
+
'sanction.restriction': 'Psaní do diskuse máte omezené.',
|
|
171
|
+
'sanction.restrictionUntil': 'Psaní do diskuse máte omezené do {date}.',
|
|
172
|
+
'sanction.suspension': 'Váš účet v diskusi je pozastavený.',
|
|
173
|
+
'sanction.suspensionUntil': 'Váš účet v diskusi je pozastavený do {date}.',
|
|
174
|
+
'sanction.ban': 'Váš účet v diskusi je zrušený.',
|
|
175
|
+
'sanction.statement': 'Zobrazit odůvodnění',
|
|
176
|
+
|
|
177
|
+
// ── onboarding ──
|
|
178
|
+
'onboarding.title': 'Vítejte v diskusi',
|
|
179
|
+
'onboarding.lede': 'Než napíšete první komentář, potřebujeme od vás pár věcí. Zabere to chvilku.',
|
|
180
|
+
'onboarding.ageTitle': 'Kolik vám je let?',
|
|
181
|
+
'onboarding.age.16_17': '16–17 let',
|
|
182
|
+
'onboarding.age.18_plus': '18 let a víc',
|
|
183
|
+
'onboarding.ageHint': 'Ptáme se jen jednou a uložíme si jen věkovou skupinu.',
|
|
184
|
+
'onboarding.ageBelow': 'Diskuse je otevřená od {min} let. Číst ji ale můžete dál.',
|
|
185
|
+
'onboarding.rulesTitle': 'Pravidla diskuse',
|
|
186
|
+
'onboarding.rulesLede': 'Přečtěte si prosím, jak to v diskusi chodí.',
|
|
187
|
+
'onboarding.rulesLink': 'Celá pravidla',
|
|
188
|
+
'onboarding.rulesAccept': 'Souhlasím s pravidly diskuse.',
|
|
189
|
+
'onboarding.rulesChanged': 'Pravidla diskuse se od vaší poslední návštěvy změnila. Přečtěte si prosím novou verzi a potvrďte ji.',
|
|
190
|
+
'onboarding.art9Title': 'Souhlas se zpracováním',
|
|
191
|
+
'onboarding.art9Lede': 'Pro psaní do diskuse potřebujeme váš souhlas podle textu níže.',
|
|
192
|
+
'onboarding.art9Accept': 'Souhlasím se zpracováním podle textu výše.',
|
|
193
|
+
'onboarding.profileTitle': 'Jak vás uvidí ostatní',
|
|
194
|
+
'onboarding.displayName': 'Jméno v diskusi',
|
|
195
|
+
'onboarding.displayNameHint': 'Může to být i přezdívka. Uvidí ho všichni čtenáři.',
|
|
196
|
+
'onboarding.handle': 'Uživatelské jméno',
|
|
197
|
+
'onboarding.handleHint': 'Malá písmena, číslice a podtržítko, {min} až {max} znaků. Změnit ho jde jednou za {days} dní.',
|
|
198
|
+
'onboarding.handleSuggested': 'Navrhujeme: {handle}',
|
|
199
|
+
'onboarding.avatar': 'Obrázek u jména',
|
|
200
|
+
'onboarding.avatarNone': 'Bez obrázku',
|
|
201
|
+
'onboarding.continue': 'Pokračovat',
|
|
202
|
+
'onboarding.back': 'Zpět',
|
|
203
|
+
'onboarding.submit': 'Hotovo',
|
|
204
|
+
'onboarding.done': 'Hotovo, teď můžete psát.',
|
|
205
|
+
|
|
206
|
+
// ── reporting a message ──
|
|
207
|
+
'report.title': 'Nahlásit komentář',
|
|
208
|
+
'report.lede': 'Hlášení posoudí tým webu. Výsledek uvidíte v Moje komunita.',
|
|
209
|
+
'report.category': 'Co je na komentáři špatně?',
|
|
210
|
+
'report.rule': 'Které pravidlo porušuje?',
|
|
211
|
+
'report.ruleOther': 'Jiné pravidlo',
|
|
212
|
+
'report.note': 'Poznámka pro tým (nepovinné)',
|
|
213
|
+
'report.noteHint': 'Poznámku uvidí jen tým, který hlášení posuzuje.',
|
|
214
|
+
'report.counter': '{length} / {max} znaků',
|
|
215
|
+
'report.submit': 'Nahlásit',
|
|
216
|
+
'report.sending': 'Odesílám…',
|
|
217
|
+
'report.cancel': 'Zrušit',
|
|
218
|
+
'report.done': 'Díky, hlášení máme. Výsledek uvidíte v Moje komunita.',
|
|
219
|
+
|
|
220
|
+
// ── the „Moje komunita" panel ──
|
|
221
|
+
'panel.title': 'Moje komunita',
|
|
222
|
+
'panel.signIn': 'Moje komunita je dostupná po přihlášení.',
|
|
223
|
+
'panel.profile': 'Profil',
|
|
224
|
+
'panel.profileEdit': 'Upravit profil',
|
|
225
|
+
'panel.statements': 'Rozhodnutí o mém obsahu',
|
|
226
|
+
'panel.statementsEmpty': 'Rozhodnutí o vašem obsahu uvidíte tady.',
|
|
227
|
+
'panel.reports': 'Moje hlášení',
|
|
228
|
+
'panel.reportsEmpty': 'Hlášení, která pošlete, uvidíte tady.',
|
|
229
|
+
'panel.notifications': 'Oznámení',
|
|
230
|
+
'panel.notificationsEmpty': 'Nová oznámení uvidíte tady.',
|
|
231
|
+
'panel.unread_one': '{count} nepřečtené oznámení',
|
|
232
|
+
'panel.unread_few': '{count} nepřečtená oznámení',
|
|
233
|
+
'panel.unread_many': '{count} nepřečteného oznámení',
|
|
234
|
+
'panel.unread_other': '{count} nepřečtených oznámení',
|
|
235
|
+
'panel.markRead': 'Označit jako přečtené',
|
|
236
|
+
'panel.blocks': 'Zablokovaní autoři',
|
|
237
|
+
'panel.blocksEmpty': 'Autory, které zablokujete, uvidíte tady.',
|
|
238
|
+
'panel.consents': 'Souhlasy',
|
|
239
|
+
'panel.art9Given': 'Souhlas se zpracováním je udělený.',
|
|
240
|
+
'panel.art9NotGiven': 'Souhlas se zpracováním jste zatím nedali.',
|
|
241
|
+
'panel.art9Withdraw': 'Odvolat souhlas',
|
|
242
|
+
'panel.art9WithdrawTitle': 'Odvolat souhlas se zpracováním?',
|
|
243
|
+
'panel.art9WithdrawExplain': 'Diskusi můžete dál číst. Psát do ní půjde, až souhlas zase udělíte.',
|
|
244
|
+
'panel.art9WithdrawConfirm': 'Ano, odvolat souhlas',
|
|
245
|
+
'panel.art9WithdrawCancel': 'Ponechat souhlas',
|
|
246
|
+
'panel.art9Withdrawn': 'Souhlas jste odvolali.',
|
|
247
|
+
'panel.export': 'Stáhnout moje data',
|
|
248
|
+
'panel.exportHint': 'Soubor JSON s tím, co o vás v diskusi máme uložené.',
|
|
249
|
+
'panel.exporting': 'Připravuji soubor…',
|
|
250
|
+
'panel.exportFileName': 'moje-komunita',
|
|
251
|
+
'panel.erase': 'Smazat profil v diskusi',
|
|
252
|
+
'panel.eraseExplain':
|
|
253
|
+
'Po ochranné lhůtě smažeme váš profil v diskusi, vaše komentáře a reakce, pokud je nemusíme ze zákona uchovat. Účet na webu zůstane. Během lhůty to můžete zrušit.',
|
|
254
|
+
'panel.eraseTitle': 'Opravdu smazat profil v diskusi?',
|
|
255
|
+
'panel.eraseConfirm': 'Ano, smazat profil',
|
|
256
|
+
'panel.eraseKeep': 'Ponechat',
|
|
257
|
+
'panel.eraseScheduled': 'Profil v diskusi smažeme {date}. Do té doby to můžete zrušit.',
|
|
258
|
+
'panel.eraseCancel': 'Zrušit smazání',
|
|
259
|
+
'panel.eraseCancelled': 'Smazání jsme zrušili, profil zůstává.',
|
|
260
|
+
|
|
261
|
+
// ── a statement of reasons ──
|
|
262
|
+
'statement.title': 'Odůvodnění rozhodnutí',
|
|
263
|
+
'statement.decidedAt': 'Rozhodnuto {date}',
|
|
264
|
+
'statement.provider': 'Rozhoduje: {entity}',
|
|
265
|
+
'statement.restriction': 'Opatření',
|
|
266
|
+
'statement.until': 'Do {date}',
|
|
267
|
+
'statement.scope': 'Rozsah',
|
|
268
|
+
'statement.scopeAll': 'Všude',
|
|
269
|
+
'statement.basis': 'Podnět',
|
|
270
|
+
'statement.facts': 'Skutečnosti a okolnosti',
|
|
271
|
+
'statement.automation': 'Automatizace',
|
|
272
|
+
'statement.automatedDetection': 'Zjištěno automaticky',
|
|
273
|
+
'statement.automatedDecision': 'Rozhodnuto automaticky',
|
|
274
|
+
'statement.humanDecision': 'Rozhodl člověk',
|
|
275
|
+
'statement.legalGround': 'Právní důvod',
|
|
276
|
+
'statement.contractualGround': 'Pravidlo',
|
|
277
|
+
'statement.redress': 'Možnosti nápravy',
|
|
278
|
+
'statement.subject': 'Týká se',
|
|
279
|
+
'statement.subjectMessage': 'Komentáře',
|
|
280
|
+
'statement.subjectProfile': 'Profilu',
|
|
281
|
+
'statement.subjectArticle': 'Článku',
|
|
282
|
+
'statement.full': 'Celé odůvodnění',
|
|
283
|
+
'statement.appealTitle': 'Odvolání',
|
|
284
|
+
'statement.appealLede': 'Nesouhlasíte s rozhodnutím? Napište nám proč. Odvolání posoudí, kde to jde, jiný člověk než ten, kdo rozhodoval.',
|
|
285
|
+
'statement.appealUntil': 'Odvolat se můžete do {date}.',
|
|
286
|
+
'statement.appealBody': 'Proč s rozhodnutím nesouhlasíte?',
|
|
287
|
+
'statement.appealCounter': '{length} / {max} znaků',
|
|
288
|
+
'statement.appealSubmit': 'Odeslat odvolání',
|
|
289
|
+
'statement.appealSending': 'Odesílám…',
|
|
290
|
+
'statement.appealSent': 'Odvolání máme. Až ho posoudíme, dáme vám vědět.',
|
|
291
|
+
'statement.appealOpen': 'Vaše odvolání se posuzuje.',
|
|
292
|
+
'statement.appealWithdraw': 'Vzít odvolání zpět',
|
|
293
|
+
'statement.appealWithdrawn': 'Odvolání jste vzali zpět.',
|
|
294
|
+
'statement.appealClosed': 'Lhůta pro odvolání uplynula.',
|
|
295
|
+
'statement.appealUnavailable': 'Proti tomuto rozhodnutí se už odvolat nejde.',
|
|
296
|
+
|
|
297
|
+
// ── decisions, by code ──
|
|
298
|
+
'restriction.no_action': 'Bez opatření',
|
|
299
|
+
'restriction.warning': 'Upozornění',
|
|
300
|
+
'restriction.removal': 'Odstranění obsahu',
|
|
301
|
+
'restriction.visibility_restricted': 'Omezená viditelnost',
|
|
302
|
+
'restriction.posting_restricted': 'Omezené psaní',
|
|
303
|
+
'restriction.account_suspended': 'Pozastavený účet',
|
|
304
|
+
'restriction.account_terminated': 'Zrušený účet',
|
|
305
|
+
'basis.notice': 'Hlášení',
|
|
306
|
+
'basis.own_initiative': 'Vlastní kontrola',
|
|
307
|
+
'basis.order': 'Úřední příkaz',
|
|
308
|
+
'caseStatus.open': 'Posuzujeme',
|
|
309
|
+
'caseStatus.decided': 'Rozhodnuto',
|
|
310
|
+
'caseStatus.appealed': 'Probíhá odvolání',
|
|
311
|
+
'caseStatus.closed': 'Uzavřeno',
|
|
312
|
+
'appealStatus.open': 'Posuzujeme',
|
|
313
|
+
'appealStatus.upheld': 'Rozhodnutí platí',
|
|
314
|
+
'appealStatus.reversed': 'Rozhodnutí zrušeno',
|
|
315
|
+
'appealStatus.withdrawn': 'Vzato zpět',
|
|
316
|
+
'notification.decision': 'Máte nové rozhodnutí o svém obsahu.',
|
|
317
|
+
'notification.appeal_resolved': 'Vaše odvolání je vyřízené.',
|
|
318
|
+
'notification.erasure_scheduled': 'Smazání vašeho profilu v diskusi je naplánované.',
|
|
319
|
+
'notification.inactivity_warning': 'Dlouho jste v diskusi nebyli. Bez další aktivity váš profil po čase smažeme.',
|
|
320
|
+
|
|
321
|
+
// ── the notice form ──
|
|
322
|
+
'notice.title': 'Nahlásit obsah',
|
|
323
|
+
'notice.lede': 'Nahlásit můžete komentář, profil nebo článek, i bez přihlášení.',
|
|
324
|
+
'notice.noTarget': 'Hlášení otevřete přímo u obsahu, který chcete nahlásit: u komentáře zvolte „Nahlásit“.',
|
|
325
|
+
'notice.category': 'Proč obsah hlásíte?',
|
|
326
|
+
'notice.target': 'Co hlásíte',
|
|
327
|
+
'notice.targetMessage': 'Komentář',
|
|
328
|
+
'notice.targetProfile': 'Profil',
|
|
329
|
+
'notice.targetArticle': 'Článek',
|
|
330
|
+
'notice.rule': 'Které pravidlo obsah porušuje?',
|
|
331
|
+
'notice.description': 'Popis',
|
|
332
|
+
'notice.descriptionHint': 'Popište prosím, co je na obsahu špatně a proč.',
|
|
333
|
+
'notice.counter': '{length} / {max} znaků',
|
|
334
|
+
'notice.contactTitle': 'Kontakt (nepovinné)',
|
|
335
|
+
'notice.contactHint': 'Kontakt potřebujeme k potvrzení přijetí a k odeslání výsledku.',
|
|
336
|
+
'notice.name': 'Jméno',
|
|
337
|
+
'notice.email': 'E-mail',
|
|
338
|
+
'notice.childAtRisk': 'Hlášení o ohroženém dítěti přijímáme bez jména a e-mailu.',
|
|
339
|
+
'notice.submit': 'Odeslat hlášení',
|
|
340
|
+
'notice.sending': 'Odesílám…',
|
|
341
|
+
'notice.done': 'Díky, hlášení máme.',
|
|
342
|
+
'notice.receiptLede': 'Uložte si odkaz níže. Podle něj zjistíte, jak jsme hlášení vyřídili.',
|
|
343
|
+
'notice.statusLink': 'Stav hlášení',
|
|
344
|
+
'notice.noContactKept': 'Kontakt u tohoto hlášení neukládáme, výsledek vám proto e-mailem nepřijde. Zjistíte ho přes odkaz výše.',
|
|
345
|
+
'notice.captchaUnavailable':
|
|
346
|
+
'Ověření proti robotům se nenačetlo (možná ho blokuje rozšíření prohlížeče), takže formulář teď odeslat nejde. Zkuste prosím stránku obnovit.',
|
|
347
|
+
'notice.statusTitle': 'Stav hlášení',
|
|
348
|
+
'notice.submittedAt': 'Odesláno {date}',
|
|
349
|
+
'notice.decidedAt': 'Rozhodnuto {date}',
|
|
350
|
+
'notice.statement': 'Odůvodnění',
|
|
351
|
+
'notice.appealTitle': 'Odvolání',
|
|
352
|
+
'notice.appealLede': 'Nesouhlasíte s tím, jak jsme hlášení vyřídili? Napište nám proč.',
|
|
353
|
+
'notice.appealBody': 'Proč s rozhodnutím nesouhlasíte?',
|
|
354
|
+
'notice.appealSubmit': 'Odeslat odvolání',
|
|
355
|
+
'notice.appealSent': 'Odvolání máme.',
|
|
356
|
+
'notice.appealOpen': 'Vaše odvolání se posuzuje.',
|
|
357
|
+
'notice.appealWithdraw': 'Vzít odvolání zpět',
|
|
358
|
+
'notice.appealUntil': 'Odvolat se můžete do {date}.',
|
|
359
|
+
'notice.appealClosed': 'Lhůta pro odvolání uplynula.',
|
|
360
|
+
'notice.receiptMissing': 'V odkazu chybí číslo hlášení. Otevřete prosím celý odkaz z e-mailu.',
|
|
361
|
+
|
|
362
|
+
// ── common ──
|
|
363
|
+
'common.signIn': 'Přihlásit se',
|
|
364
|
+
'common.close': 'Zavřít',
|
|
365
|
+
'common.cancel': 'Zrušit',
|
|
366
|
+
'common.retry': 'Zkusit znovu',
|
|
367
|
+
'common.loading': 'Načítám…',
|
|
368
|
+
'common.back': 'Zpět',
|
|
369
|
+
'common.optional': 'nepovinné',
|
|
370
|
+
'common.needsJs': 'Tahle část stránky potřebuje zapnutý JavaScript. Zapněte ho prosím a stránku obnovte.',
|
|
371
|
+
} as const
|