@blogmcp/sdk 0.10.0 → 0.11.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 +3 -2
- package/dist/community/client.d.ts +129 -2
- package/dist/community/client.js +231 -161
- package/dist/community/forum.d.ts +82 -0
- package/dist/community/forum.js +96 -0
- package/dist/community/index.d.ts +14 -7
- package/dist/community/index.js +185 -121
- package/dist/community/links.d.ts +38 -0
- package/dist/community/links.js +98 -71
- package/dist/community/messages.cs.d.ts +160 -1
- package/dist/community/messages.cs.js +178 -1
- package/dist/community/messages.d.ts +19 -1
- package/dist/community/messages.en.d.ts +150 -1
- package/dist/community/messages.en.js +161 -1
- package/dist/community/messages.js +37 -28
- package/dist/community/outcome.d.ts +8 -3
- package/dist/community/outcome.js +64 -20
- package/dist/community/poll.d.ts +28 -4
- package/dist/community/poll.js +70 -47
- package/dist/community/realtime/index.d.ts +19 -3
- package/dist/community/realtime/index.js +175 -145
- package/dist/community/routes.d.ts +36 -1
- package/dist/community/routes.js +51 -21
- package/dist/community/server/bff.d.ts +25 -2
- package/dist/community/server/bff.js +135 -118
- package/dist/community/server/host-routes.d.ts +3 -0
- package/dist/community/server/host-routes.js +17 -0
- package/dist/community/server/index.d.ts +5 -1
- package/dist/community/shapes.d.ts +634 -7
- package/dist/community/shapes.js +92 -61
- package/dist/community/store.d.ts +15 -0
- package/dist/community/store.js +65 -61
- package/dist/community/topic.d.ts +173 -0
- package/dist/community/topic.js +225 -0
- package/package.json +3 -3
- package/src/community/channels.ts +3 -2
- package/src/community/client.ts +209 -5
- package/src/community/forum.ts +209 -0
- package/src/community/index.ts +146 -2
- package/src/community/links.ts +64 -4
- package/src/community/messages.cs.ts +179 -1
- package/src/community/messages.en.ts +162 -1
- package/src/community/messages.ts +25 -2
- package/src/community/outcome.ts +50 -1
- package/src/community/poll.ts +79 -17
- package/src/community/realtime/index.ts +124 -48
- package/src/community/routes.ts +42 -1
- package/src/community/server/bff.ts +89 -30
- package/src/community/server/host-routes.ts +20 -0
- package/src/community/server/index.ts +5 -1
- package/src/community/shapes.ts +662 -6
- package/src/community/store.ts +11 -5
- package/src/community/topic.ts +521 -0
package/src/community/index.ts
CHANGED
|
@@ -11,6 +11,10 @@
|
|
|
11
11
|
* module's pages and the digest's unsubscribe token in the fragment;
|
|
12
12
|
* communityMentionSpans `@handle` in a body as text spans a page links (never HTML).
|
|
13
13
|
*
|
|
14
|
+
* M3, the forum (m3-contracts.md §5.2): the client's `forum.*`, `me.follows.*` and `moderation.*`; createTopicStore
|
|
15
|
+
* (a topic over the discussion store, with its header) and pollTopicHead; the forum's helpers (follow targets, the
|
|
16
|
+
* search query, surfaces, away mode, moderators); the forum's paths (categoryPath, topicPath, topicMessageLink).
|
|
17
|
+
*
|
|
14
18
|
* Browser-safe: nothing here takes a key, a session, a cookie or an IP, and nothing imports `node:*`. This entry
|
|
15
19
|
* never reaches the server entries (`@blogmcp/sdk/community/server`, `@blogmcp/sdk/consultations/server`), the
|
|
16
20
|
* adapter client or the delegated-identity minter — test/community/entry-boundary.spec.ts walks its import graph.
|
|
@@ -41,6 +45,16 @@ export {
|
|
|
41
45
|
COMMUNITY_NOTICE_TURNSTILE_ACTION,
|
|
42
46
|
COMMUNITY_GOOD_FAITH,
|
|
43
47
|
COMMUNITY_CLIENT_MSG_ID_RE,
|
|
48
|
+
COMMUNITY_TOPIC_TITLE_MAX,
|
|
49
|
+
COMMUNITY_TOPICS_PAGE_SIZE,
|
|
50
|
+
COMMUNITY_TOPICS_PAGE_MAX,
|
|
51
|
+
COMMUNITY_HEAD_TOPICS_MAX,
|
|
52
|
+
COMMUNITY_SEARCH_QUERY_MIN,
|
|
53
|
+
COMMUNITY_SEARCH_QUERY_MAX,
|
|
54
|
+
COMMUNITY_SEARCH_PAGE_SIZE,
|
|
55
|
+
COMMUNITY_SEARCH_PAGES_MAX,
|
|
56
|
+
COMMUNITY_FOLLOWS_MAX,
|
|
57
|
+
COMMUNITY_CATEGORY_SLUG_RE,
|
|
44
58
|
} from './routes'
|
|
45
59
|
export type { CommunityOp, CommunityOpName, CommunitySurface } from './routes'
|
|
46
60
|
|
|
@@ -83,6 +97,9 @@ export {
|
|
|
83
97
|
REALTIME_EVENT_KINDS,
|
|
84
98
|
CASE_CATEGORIES,
|
|
85
99
|
CATEGORY_WITHOUT_NOTIFIER,
|
|
100
|
+
ESCALATION_CATEGORIES,
|
|
101
|
+
ADVERSE_EVENT_OUTCOMES,
|
|
102
|
+
isKnownAdverseEventOutcome,
|
|
86
103
|
AGE_BANDS,
|
|
87
104
|
LEGAL_TEXT_KINDS,
|
|
88
105
|
isKnownState,
|
|
@@ -103,6 +120,28 @@ export {
|
|
|
103
120
|
art9ControllersOf,
|
|
104
121
|
TRUST_LABELS,
|
|
105
122
|
isKnownTrustLabel,
|
|
123
|
+
// M3: the forum's vocabularies (open where kb-api may add values).
|
|
124
|
+
FORUM_CATEGORY_KINDS,
|
|
125
|
+
FORUM_CATEGORY_MODES,
|
|
126
|
+
TOPIC_CREATIONS,
|
|
127
|
+
TOPIC_STATES,
|
|
128
|
+
TOPIC_ITEM_KINDS,
|
|
129
|
+
FORUM_SORTS,
|
|
130
|
+
FORUM_SPACES,
|
|
131
|
+
SEARCH_RESULT_KINDS,
|
|
132
|
+
FOLLOW_TARGET_KINDS,
|
|
133
|
+
BRAKE_SURFACES,
|
|
134
|
+
MODERATION_ITEM_KINDS,
|
|
135
|
+
MODERATION_CASE_STATUSES,
|
|
136
|
+
MODERATION_SOURCES,
|
|
137
|
+
MODERATION_RESTRICTIONS,
|
|
138
|
+
MODERATION_BASES,
|
|
139
|
+
MODERATOR_TOPIC_STATES,
|
|
140
|
+
PREMOD_OUTCOMES,
|
|
141
|
+
isKnownForumCategoryKind,
|
|
142
|
+
isKnownForumCategoryMode,
|
|
143
|
+
isKnownTopicState,
|
|
144
|
+
isKnownBrakeSurface,
|
|
106
145
|
} from './shapes'
|
|
107
146
|
export type {
|
|
108
147
|
KnownMessageState,
|
|
@@ -137,6 +176,8 @@ export type {
|
|
|
137
176
|
PushStatusAnswer,
|
|
138
177
|
MemberCaps,
|
|
139
178
|
CaseCategory,
|
|
179
|
+
KnownAdverseEventOutcome,
|
|
180
|
+
AdverseEventOutcome,
|
|
140
181
|
AgeBand,
|
|
141
182
|
LegalTextKind,
|
|
142
183
|
AcceptanceState,
|
|
@@ -160,6 +201,7 @@ export type {
|
|
|
160
201
|
OwnProfile,
|
|
161
202
|
MyState,
|
|
162
203
|
NotificationItem,
|
|
204
|
+
NotificationConversationKind,
|
|
163
205
|
CommunityPage,
|
|
164
206
|
DecisionSummary,
|
|
165
207
|
StatementSubject,
|
|
@@ -184,6 +226,79 @@ export type {
|
|
|
184
226
|
OnboardInput,
|
|
185
227
|
ProfileUpdateInput,
|
|
186
228
|
NoticeSubmitInput,
|
|
229
|
+
// M3: the forum's shapes, inputs and answers.
|
|
230
|
+
MessagePostFields,
|
|
231
|
+
ArticleMessagePostInput,
|
|
232
|
+
TopicMessagePostInput,
|
|
233
|
+
SurfaceBrake,
|
|
234
|
+
SurfaceInfo,
|
|
235
|
+
ModuleSurfaces,
|
|
236
|
+
CommunityAway,
|
|
237
|
+
ModeratorInfo,
|
|
238
|
+
KnownForumCategoryKind,
|
|
239
|
+
ForumCategoryKind,
|
|
240
|
+
KnownForumCategoryMode,
|
|
241
|
+
ForumCategoryMode,
|
|
242
|
+
KnownTopicCreation,
|
|
243
|
+
TopicCreation,
|
|
244
|
+
KnownTopicState,
|
|
245
|
+
TopicState,
|
|
246
|
+
KnownTopicItemKind,
|
|
247
|
+
TopicItemKind,
|
|
248
|
+
ForumSort,
|
|
249
|
+
KnownForumSpace,
|
|
250
|
+
ForumSpace,
|
|
251
|
+
KnownSearchResultKind,
|
|
252
|
+
SearchResultKind,
|
|
253
|
+
KnownFollowTargetKind,
|
|
254
|
+
FollowTargetKind,
|
|
255
|
+
KnownBrakeSurface,
|
|
256
|
+
BrakeSurface,
|
|
257
|
+
KnownModerationItemKind,
|
|
258
|
+
ModerationItemKind,
|
|
259
|
+
KnownModerationCaseStatus,
|
|
260
|
+
ModerationCaseStatus,
|
|
261
|
+
KnownModerationSource,
|
|
262
|
+
ModerationSource,
|
|
263
|
+
ModerationRestriction,
|
|
264
|
+
ModerationBasis,
|
|
265
|
+
ModeratorTopicState,
|
|
266
|
+
PremodOutcome,
|
|
267
|
+
ForumCategoryRef,
|
|
268
|
+
ForumCategory,
|
|
269
|
+
ForumTopicItem,
|
|
270
|
+
ForumArticleItem,
|
|
271
|
+
UnknownTopicItem,
|
|
272
|
+
KnownTopicItem,
|
|
273
|
+
TopicItem,
|
|
274
|
+
ForumTopicsPage,
|
|
275
|
+
Topic,
|
|
276
|
+
TopicViewerState,
|
|
277
|
+
TopicThread,
|
|
278
|
+
TopicHead,
|
|
279
|
+
ForumSearchResult,
|
|
280
|
+
ForumSearchPage,
|
|
281
|
+
FollowTarget,
|
|
282
|
+
Follow,
|
|
283
|
+
FollowsPage,
|
|
284
|
+
ModerationItem,
|
|
285
|
+
ModerationQueuePage,
|
|
286
|
+
ModerationCaseItem,
|
|
287
|
+
ModerationCase,
|
|
288
|
+
ModerationDecideAnswer,
|
|
289
|
+
ModerationRemovalAnswer,
|
|
290
|
+
PremodReviewAnswer,
|
|
291
|
+
TopicCreateAnswer,
|
|
292
|
+
ForumTopicsListInput,
|
|
293
|
+
ForumTopicGetInput,
|
|
294
|
+
ForumTopicCreateInput,
|
|
295
|
+
ForumSearchInput,
|
|
296
|
+
FollowSetInput,
|
|
297
|
+
ModerationQueueInput,
|
|
298
|
+
ModerationDecideInput,
|
|
299
|
+
ModerationRemoveInput,
|
|
300
|
+
ModerationEscalateInput,
|
|
301
|
+
PremodReviewInput,
|
|
187
302
|
} from './shapes'
|
|
188
303
|
|
|
189
304
|
export {
|
|
@@ -207,8 +322,29 @@ export type {
|
|
|
207
322
|
ViewerNeeds,
|
|
208
323
|
} from './store'
|
|
209
324
|
|
|
210
|
-
export { pollDiscussionHead, POLL_INTERVAL_MS, POLL_MAX_BACKOFF_MS } from './poll'
|
|
211
|
-
export type { PollDiscussionHeadOptions, DiscussionHeadPoller } from './poll'
|
|
325
|
+
export { pollDiscussionHead, pollTopicHead, POLL_INTERVAL_MS, POLL_MAX_BACKOFF_MS } from './poll'
|
|
326
|
+
export type { PollDiscussionHeadOptions, DiscussionHeadPoller, PollHeadOptions, PollTopicHeadOptions, TopicHeadPoller } from './poll'
|
|
327
|
+
|
|
328
|
+
// M3 (m3-contracts.md §5.2): a forum topic — the discussion store under the topic's header — and its loaders.
|
|
329
|
+
export { createTopicStore, refreshTopic, loadMoreTopic, settleTopicFailure, isTopicOpen, isTopicStore, topicHeaderOf, topicTitleOf } from './topic'
|
|
330
|
+
export type { TopicStore, TopicStoreState, TopicHeader, TopicViewer, TopicTitle } from './topic'
|
|
331
|
+
|
|
332
|
+
// M3: the forum's helpers — follow targets, the search query, a category's rows, surfaces, away mode, moderators.
|
|
333
|
+
export {
|
|
334
|
+
followTargetOf,
|
|
335
|
+
followTargetParts,
|
|
336
|
+
followKeyOf,
|
|
337
|
+
forumTopicTitleOf,
|
|
338
|
+
topicTitleLength,
|
|
339
|
+
forumSearchQueryOf,
|
|
340
|
+
nextSearchPage,
|
|
341
|
+
isKnownTopicItem,
|
|
342
|
+
knownTopicItemsOf,
|
|
343
|
+
surfaceInfoOf,
|
|
344
|
+
communityAwayOf,
|
|
345
|
+
isCategoryModerator,
|
|
346
|
+
brakedSurfaceOf,
|
|
347
|
+
} from './forum'
|
|
212
348
|
|
|
213
349
|
export { COMMUNITY_CHANNELS } from './channels'
|
|
214
350
|
|
|
@@ -226,10 +362,16 @@ export {
|
|
|
226
362
|
communityMessageAnchor,
|
|
227
363
|
communityMessageSeqFromHash,
|
|
228
364
|
communityMessageLink,
|
|
365
|
+
// M3 FX (R20): an article's page (the „Články" rows).
|
|
366
|
+
communityArticleLink,
|
|
229
367
|
COMMUNITY_DIGEST_TOKEN_RE,
|
|
230
368
|
digestTokenFromHash,
|
|
231
369
|
readDigestTokenFromHash,
|
|
232
370
|
forgetDigestToken,
|
|
371
|
+
// M3 (§5.1): the forum's pages.
|
|
372
|
+
categoryPath,
|
|
373
|
+
topicPath,
|
|
374
|
+
topicMessageLink,
|
|
233
375
|
} from './links'
|
|
234
376
|
|
|
235
377
|
// M2 T8 (m2-contracts.md §3.3): `@handle` in a body as spans — text, and mentions a page links to profilePath.
|
|
@@ -245,6 +387,8 @@ export {
|
|
|
245
387
|
confirmMessageKey,
|
|
246
388
|
noteMessageKey,
|
|
247
389
|
notificationMessageKey,
|
|
390
|
+
notificationItemMessageKey,
|
|
248
391
|
trustLabelMessageKey,
|
|
392
|
+
adverseOutcomeMessageKey,
|
|
249
393
|
} from './messages'
|
|
250
394
|
export type { CommunityMessageKey, CommunityMessageLanguage } from './messages'
|
package/src/community/links.ts
CHANGED
|
@@ -12,11 +12,15 @@
|
|
|
12
12
|
* M2 T8: the module's pages (profile, settings, welcome, notifications, discussions) and the digest's unsubscribe
|
|
13
13
|
* token, which travels in the fragment of the settings page's link (`#u=<kbun_…>`) by the receipt's rule.
|
|
14
14
|
*
|
|
15
|
+
* M3 (m3-contracts.md §5.1, D-M3-12): the forum's pages — the forum, a category by its slug, a topic by its
|
|
16
|
+
* conversation id (a message by its anchor in the fragment), search. The storefront names its own (`/komunita/forum`,
|
|
17
|
+
* `/komunita/c/:slug`, `/komunita/t/:id`, `/komunita/hledat`) as templates.
|
|
18
|
+
*
|
|
15
19
|
* Browser-safe; readReceiptFromHash and readDigestTokenFromHash are the functions that touch `window` (on call,
|
|
16
20
|
* never on import).
|
|
17
21
|
*/
|
|
18
22
|
|
|
19
|
-
import { COMMUNITY_HANDLE_RE } from './routes'
|
|
23
|
+
import { COMMUNITY_CATEGORY_SLUG_RE, COMMUNITY_HANDLE_RE } from './routes'
|
|
20
24
|
|
|
21
25
|
/**
|
|
22
26
|
* The managed blog's community pages (router-relative; the blog prepends its own base). The three legal pages —
|
|
@@ -49,6 +53,15 @@ export const COMMUNITY_ROUTES = Object.freeze({
|
|
|
49
53
|
welcome: '/community/welcome',
|
|
50
54
|
/** The notification centre (kb-api's fallback for `notifications_link_path`). */
|
|
51
55
|
notifications: '/community/notifications',
|
|
56
|
+
// M3 F10 (m3-contracts.md §5.1, D-M3-12): the forum's pages — members only, noindex, in no sitemap.
|
|
57
|
+
/** The forum: its categories with their latest topics, and the search box. */
|
|
58
|
+
forum: '/community/forum',
|
|
59
|
+
/** A category's topics; `{slug}` is the category's slug (categoryPath). */
|
|
60
|
+
category: '/community/c/{slug}',
|
|
61
|
+
/** A topic; `{id}` is its conversation id (topicPath), a message's anchor in the fragment (topicMessageLink). */
|
|
62
|
+
topic: '/community/t/{id}',
|
|
63
|
+
/** The forum's search. */
|
|
64
|
+
search: '/community/search',
|
|
52
65
|
} as const)
|
|
53
66
|
|
|
54
67
|
/** A decision's id (kb-api's UUIDs). */
|
|
@@ -90,6 +103,41 @@ export function profilePath(template: string | null | undefined, handle: string)
|
|
|
90
103
|
return t.split('{handle}').join(h)
|
|
91
104
|
}
|
|
92
105
|
|
|
106
|
+
/**
|
|
107
|
+
* M3: a forum category's page — `{slug}` of the template (the host's `categoryPath`; absent, the managed blog's) filled
|
|
108
|
+
* with the category's slug. Null for a slug that is no category slug (COMMUNITY_CATEGORY_SLUG_RE), or a template that is
|
|
109
|
+
* no site path, holds a fragment, lacks `{slug}` or holds another brace — no link from arbitrary text.
|
|
110
|
+
*/
|
|
111
|
+
export function categoryPath(template: string | null | undefined, slug: string): string | null {
|
|
112
|
+
const t = template === null || template === undefined || template === '' ? COMMUNITY_ROUTES.category : template
|
|
113
|
+
if (!isSitePath(t) || t.includes('#') || !t.includes('{slug}') || /[{}]/.test(t.split('{slug}').join(''))) return null
|
|
114
|
+
if (typeof slug !== 'string' || !COMMUNITY_CATEGORY_SLUG_RE.test(slug)) return null
|
|
115
|
+
return t.split('{slug}').join(slug)
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* M3: a forum topic's page — `{id}` of the template (the host's `topicPath`; absent, the managed blog's) filled with the
|
|
120
|
+
* topic's conversation id (lower case). Null for an id that is no conversation id (a UUID), or a template that is no
|
|
121
|
+
* site path, holds a fragment, lacks `{id}` or holds another brace.
|
|
122
|
+
*/
|
|
123
|
+
export function topicPath(template: string | null | undefined, conversationId: string): string | null {
|
|
124
|
+
const t = template === null || template === undefined || template === '' ? COMMUNITY_ROUTES.topic : template
|
|
125
|
+
if (!isSitePath(t) || t.includes('#') || !t.includes('{id}') || /[{}]/.test(t.split('{id}').join(''))) return null
|
|
126
|
+
if (typeof conversationId !== 'string' || !UUID_RE.test(conversationId)) return null
|
|
127
|
+
return t.split('{id}').join(conversationId.toLowerCase())
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* M3: one message on its topic's page — topicPath with the message's anchor in the fragment (`#bcm-msg-<seq>`, the row
|
|
132
|
+
* id the discussion view gives it and reads back with communityMessageSeqFromHash). Null where topicPath is, and for a
|
|
133
|
+
* seq that is none (an optimistic row's).
|
|
134
|
+
*/
|
|
135
|
+
export function topicMessageLink(template: string | null | undefined, conversationId: string, seq: number): string | null {
|
|
136
|
+
const path = topicPath(template, conversationId)
|
|
137
|
+
const anchor = communityMessageAnchor(seq)
|
|
138
|
+
return path === null || anchor === null ? null : `${path}#${anchor}`
|
|
139
|
+
}
|
|
140
|
+
|
|
93
141
|
/**
|
|
94
142
|
* M2 T10: the id `<blogmcp-discussion>` gives a message's row — `bcm-msg-<seq>` (the seq is the message's number in
|
|
95
143
|
* its conversation, the same for every reader) — and the fragment a link to that message carries. The element
|
|
@@ -118,13 +166,25 @@ export function communityMessageSeqFromHash(hash: string): number | null {
|
|
|
118
166
|
* a fragment, lacks `{slug}` or holds another brace, and for a slug or seq that is none — no link from arbitrary text.
|
|
119
167
|
*/
|
|
120
168
|
export function communityMessageLink(articlePath: string | null | undefined, articleSlug: string | null | undefined, seq: number | null | undefined): string | null {
|
|
169
|
+
const page = communityArticleLink(articlePath, articleSlug)
|
|
170
|
+
const anchor = communityMessageAnchor(seq as number)
|
|
171
|
+
if (page === null || anchor === null) return null
|
|
172
|
+
return `${page}#${anchor}`
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
/**
|
|
176
|
+
* M3 FX (m3-contracts.md §5.3; the review of wave 1, R20): an article's page — the host's article template
|
|
177
|
+
* (`articlePath`, one `{slug}`) filled with the article's slug (URL-encoded), no fragment: the „Články" category's row
|
|
178
|
+
* of an article discussion (`ForumArticleItem.articleSlug`) links the article its discussion is under. Null as
|
|
179
|
+
* communityMessageLink is (no template, a template that is no site path, holds a fragment, lacks `{slug}` or holds
|
|
180
|
+
* another brace, a slug that is none) — no link from arbitrary text.
|
|
181
|
+
*/
|
|
182
|
+
export function communityArticleLink(articlePath: string | null | undefined, articleSlug: string | null | undefined): string | null {
|
|
121
183
|
const t = articlePath
|
|
122
184
|
if (!isSitePath(t) || t.includes('#') || !t.includes('{slug}') || /[{}]/.test(t.split('{slug}').join(''))) return null
|
|
123
185
|
if (typeof articleSlug !== 'string' || articleSlug === '' || articleSlug.length > 512 || articleSlug === '.' || articleSlug === '..') return null
|
|
124
186
|
if (/[\u0000-\u001f\u007f]/.test(articleSlug)) return null
|
|
125
|
-
|
|
126
|
-
if (anchor === null) return null
|
|
127
|
-
return `${t.split('{slug}').join(encodeURIComponent(articleSlug))}#${anchor}`
|
|
187
|
+
return t.split('{slug}').join(encodeURIComponent(articleSlug))
|
|
128
188
|
}
|
|
129
189
|
|
|
130
190
|
/** The „Moje komunita" page: the host's path when it is a site path, else the managed blog's. */
|
|
@@ -39,6 +39,11 @@ export const COMMUNITY_MESSAGES_CS = {
|
|
|
39
39
|
'error.mentionLimit': 'V jednom příspěvku jste zmínili víc lidí, než zatím jde. Některé zmínky odeberte a pošlete znovu.',
|
|
40
40
|
'error.pushRefused': 'V tomhle prohlížeči upozornění zapnout nejde. Zkuste jiný prohlížeč, nebo sledujte stránku s upozorněními.',
|
|
41
41
|
'error.realtimeOff': 'Nové příspěvky se tu teď neukazují hned. Diskuse se obnovuje sama každou chvíli.',
|
|
42
|
+
// M3 (m3-contracts.md §1.2): the forum's refusals.
|
|
43
|
+
'error.membersOnly': 'Fórum je otevřené členům komunity. Po přihlášení a vstupu do komunity ho uvidíte.',
|
|
44
|
+
'error.topicLocked': 'Téma je uzavřené, psát do něj už nejde. Číst ho můžete dál.',
|
|
45
|
+
'error.topicCreationClosed': 'V téhle kategorii nové téma založit nejde. Zkuste prosím jinou.',
|
|
46
|
+
'error.followLimit': 'Sledujete toho už hodně. Něco prosím přestaňte sledovat a zkuste to znovu.',
|
|
42
47
|
'error.submit': 'Nepovedlo se to. Obnovte prosím stránku a zkuste to znovu.',
|
|
43
48
|
|
|
44
49
|
// ── what the composer waits for (need.<Need>) ──
|
|
@@ -325,6 +330,10 @@ export const COMMUNITY_MESSAGES_CS = {
|
|
|
325
330
|
'appealStatus.upheld': 'Rozhodnutí platí',
|
|
326
331
|
'appealStatus.reversed': 'Rozhodnutí zrušeno',
|
|
327
332
|
'appealStatus.withdrawn': 'Vzato zpět',
|
|
333
|
+
// M3 F6/F9 (m3-contracts.md §3.5, §4.7): what the team recorded on an adverse-event case (adverseOutcomeMessageKey).
|
|
334
|
+
'adverseOutcome.recorded': 'Posouzeno jako možný nežádoucí účinek a zaznamenáno do evidence.',
|
|
335
|
+
'adverseOutcome.reported_to_authority': 'Posouzeno jako možný nežádoucí účinek a ohlášeno příslušnému úřadu.',
|
|
336
|
+
'adverseOutcome.not_adverse': 'Posouzeno: o nežádoucí účinek nejde.',
|
|
328
337
|
'notification.decision': 'Máte nové rozhodnutí o svém obsahu.',
|
|
329
338
|
'notification.appeal_resolved': 'Vaše odvolání je vyřízené.',
|
|
330
339
|
'notification.erasure_scheduled': 'Smazání vašeho profilu v diskusi je naplánované.',
|
|
@@ -335,6 +344,11 @@ export const COMMUNITY_MESSAGES_CS = {
|
|
|
335
344
|
'notification.mention': 'Někdo vás zmínil v diskusi.',
|
|
336
345
|
'notification.module_push_reset': 'Upozornění v prohlížeči je potřeba znovu zapnout v nastavení komunity.',
|
|
337
346
|
'notification.age_limit_changed': 'Komunita je nově jen pro dospělé, váš profil je proto jen ke čtení. Podrobnosti najdete na stránce Moje komunita.',
|
|
347
|
+
// M3 F3 (§4.3): a followed topic or article discussion has a new message; a followed category a new topic.
|
|
348
|
+
'notification.topic_update': 'V diskusi, kterou sledujete, přibyl nový příspěvek.',
|
|
349
|
+
'notification.category_topic': 'V kategorii, kterou sledujete, je nové téma.',
|
|
350
|
+
// M3 F3 (the wave 2 integration): `category_topic` of the „Články" category — a discussion new to its listing.
|
|
351
|
+
'notification.category_topic.article': 'V kategorii, kterou sledujete, je nová diskuse pod článkem.',
|
|
338
352
|
|
|
339
353
|
// ── M2 T8: the notification centre (centre.*) and the header badge (badge.*) ──
|
|
340
354
|
'centre.title': 'Upozornění',
|
|
@@ -385,7 +399,9 @@ export const COMMUNITY_MESSAGES_CS = {
|
|
|
385
399
|
'trust.0': 'Nový člen',
|
|
386
400
|
'trust.1': 'Člen',
|
|
387
401
|
'trust.2': 'Stálý člen',
|
|
388
|
-
|
|
402
|
+
// M3 (D-M3-7): TL3 is „Důvěryhodný člen"; „Moderátor" names an appointment (role.moderator), shown in its categories only.
|
|
403
|
+
'trust.3': 'Důvěryhodný člen',
|
|
404
|
+
'role.moderator': 'Moderátor',
|
|
389
405
|
|
|
390
406
|
// ── M2 T8: the welcome page (welcome.*) ──
|
|
391
407
|
'welcome.title': 'Vítejte v komunitě',
|
|
@@ -401,6 +417,165 @@ export const COMMUNITY_MESSAGES_CS = {
|
|
|
401
417
|
// discussion stays writable — only a brake (`state.braked`) stops its writes — so the composer stays enabled.
|
|
402
418
|
'state.readOnly': 'Rozšířené funkce komunity jsou teď vypnuté. Diskuse pod článkem běží dál.',
|
|
403
419
|
'state.braked': 'Psaní je teď na chvíli pozastavené. Číst můžete dál.',
|
|
420
|
+
// M3 (§4.8, D-M3-9): the team's away mode, while it lasts (communityAwayOf).
|
|
421
|
+
'state.away': 'Tým je teď nepřítomen; nová témata počkají na kontrolu.',
|
|
422
|
+
// M3 (§3.2): a topic whose opening post was deleted (its title went with it).
|
|
423
|
+
'topic.deleted': 'Smazané téma',
|
|
424
|
+
// M3 (§3.1, B06): a title §3.1's placeholder rule keeps from the viewer (held, removed or held back) — never a deletion,
|
|
425
|
+
// wherever a title reads: a topic, a category's row, a search hit, a moderator's package (M3 FX2, S12: a deleted
|
|
426
|
+
// opening post reads `topic.deleted` in each — topicTitleOf over `openingState`).
|
|
427
|
+
'topic.withheld': 'Název tématu není k dispozici',
|
|
428
|
+
// M3 F9 (§3.3, B16): the follow button — following needs a target the member may read now; unfollowing never fails.
|
|
429
|
+
'follow.follow': 'Sledovat',
|
|
430
|
+
'follow.following': 'Sledujete',
|
|
431
|
+
'follow.followed': 'Sledujete. Novinky uvidíte v upozorněních.',
|
|
432
|
+
'follow.unfollowed': 'Už nesledujete.',
|
|
433
|
+
'follow.unavailable': 'Tohle teď sledovat nejde.',
|
|
434
|
+
|
|
435
|
+
// ── M3 F9: the forum's elements (forum.*, forumCategory.*, topic.*, search.*, moderation.*; m3-contracts.md §5.3) ──
|
|
436
|
+
'forum.title': 'Fórum',
|
|
437
|
+
'forum.loading': 'Načítám fórum…',
|
|
438
|
+
'forum.empty': 'Kategorie fóra tu zatím nejsou.',
|
|
439
|
+
'forum.topicCount_one': '{count} téma',
|
|
440
|
+
'forum.topicCount_few': '{count} témata',
|
|
441
|
+
'forum.topicCount_many': '{count} tématu',
|
|
442
|
+
'forum.topicCount_other': '{count} témat',
|
|
443
|
+
'forum.discussionCount_one': '{count} diskuse',
|
|
444
|
+
'forum.discussionCount_few': '{count} diskuse',
|
|
445
|
+
'forum.discussionCount_many': '{count} diskuse',
|
|
446
|
+
'forum.discussionCount_other': '{count} diskusí',
|
|
447
|
+
'forum.lastActivity': 'Naposledy {date}',
|
|
448
|
+
'forum.latest': 'Nejnovější témata',
|
|
449
|
+
'forum.allTopics': 'Všechna témata',
|
|
450
|
+
'forum.allCategories': 'Všechny kategorie',
|
|
451
|
+
'forum.search': 'Hledat ve fóru',
|
|
452
|
+
'forum.searchSubmit': 'Hledat',
|
|
453
|
+
'forum.modePre': 'Nové příspěvky tu před zveřejněním čekají na kontrolu.',
|
|
454
|
+
'forum.teamTopics': 'Témata tady zakládá tým.',
|
|
455
|
+
'forum.join': 'Vstoupit do komunity',
|
|
456
|
+
'forum.back': 'Zpět na fórum',
|
|
457
|
+
// The forum's own brake (§4.9): its writes pause, the article discussions go on.
|
|
458
|
+
'state.forumBraked': 'Psaní ve fóru je teď na chvíli pozastavené. Číst můžete dál.',
|
|
459
|
+
'forumCategory.notFound': 'Tuhle kategorii jsme nenašli.',
|
|
460
|
+
'forumCategory.empty': 'V téhle kategorii zatím nejsou témata.',
|
|
461
|
+
'forumCategory.articlesEmpty': 'Diskuse pod články tu zatím nejsou.',
|
|
462
|
+
'forumCategory.sort': 'Řazení',
|
|
463
|
+
'forumCategory.sortActivity': 'Podle aktivity',
|
|
464
|
+
'forumCategory.sortNew': 'Nejnovější',
|
|
465
|
+
'forumCategory.newTopic': 'Nové téma',
|
|
466
|
+
'topic.loading': 'Načítám téma…',
|
|
467
|
+
'topic.notFound': 'Tohle téma jsme nenašli. Možná už není k dispozici.',
|
|
468
|
+
'topic.count_one': '{count} příspěvek',
|
|
469
|
+
'topic.count_few': '{count} příspěvky',
|
|
470
|
+
'topic.count_many': '{count} příspěvku',
|
|
471
|
+
'topic.count_other': '{count} příspěvků',
|
|
472
|
+
'topic.locked': 'Uzavřené',
|
|
473
|
+
'topic.archived': 'Archivované',
|
|
474
|
+
'topic.pinned': 'Připnuté',
|
|
475
|
+
'topic.titleLabel': 'Název tématu',
|
|
476
|
+
'topic.titleMissing': 'Napište prosím název tématu.',
|
|
477
|
+
'topic.titleTooLong': 'Název je moc dlouhý. Zkraťte ho prosím nejvýš na {max} znaků.',
|
|
478
|
+
'topic.bodyLabel': 'Úvodní příspěvek',
|
|
479
|
+
'topic.create': 'Založit téma',
|
|
480
|
+
'topic.created': 'Téma je založené.',
|
|
481
|
+
'topic.createdHeld': 'Téma máme, teď čeká na kontrolu.',
|
|
482
|
+
'topic.open': 'Otevřít téma',
|
|
483
|
+
// A topic's thread reads the discussion's texts with these words of the forum's (the topic element maps the keys).
|
|
484
|
+
'forumText.composer.label': 'Váš příspěvek',
|
|
485
|
+
'forumText.composer.editLabel': 'Úprava příspěvku',
|
|
486
|
+
'forumText.composer.placeholder': 'Napište příspěvek…',
|
|
487
|
+
'forumText.composer.tooLong': 'Příspěvek je moc dlouhý. Zkraťte ho prosím nejvýš na {max} znaků.',
|
|
488
|
+
'forumText.composer.linksNote_one': 'Do příspěvku se vejde nejvýš {count} odkaz.',
|
|
489
|
+
'forumText.composer.linksNote_few': 'Do příspěvku se vejdou nejvýš {count} odkazy.',
|
|
490
|
+
'forumText.composer.linksNote_many': 'Do příspěvku se vejde nejvýš {count} odkazu.',
|
|
491
|
+
'forumText.composer.linksNote_other': 'Do příspěvku se vejde nejvýš {count} odkazů.',
|
|
492
|
+
'forumText.composer.posted': 'Příspěvek je zveřejněný.',
|
|
493
|
+
'forumText.composer.held': 'Příspěvek máme, teď čeká na kontrolu.',
|
|
494
|
+
'forumText.composer.cooldown_one': 'Další příspěvek můžete poslat za {count} sekundu.',
|
|
495
|
+
'forumText.composer.cooldown_few': 'Další příspěvek můžete poslat za {count} sekundy.',
|
|
496
|
+
'forumText.composer.cooldown_many': 'Další příspěvek můžete poslat za {count} sekundy.',
|
|
497
|
+
'forumText.composer.cooldown_other': 'Další příspěvek můžete poslat za {count} sekund.',
|
|
498
|
+
'forumText.discussion.empty': 'Zatím tu nejsou odpovědi. Odpovězte jako první.',
|
|
499
|
+
'forumText.discussion.deleteTitle': 'Smazat příspěvek?',
|
|
500
|
+
'forumText.discussion.deleteExplain': 'Příspěvek zmizí. Pokud na něj už někdo odpověděl, zůstane po něm prázdné místo.',
|
|
501
|
+
'forumText.discussion.collapsed': 'Příspěvek autora, kterého jste zablokovali.',
|
|
502
|
+
'forumText.discussion.heldNote': 'Příspěvek č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.',
|
|
503
|
+
'forumText.discussion.hiddenUntilConsentNote': 'Příspěvek zatím vidíte jen vy. Ostatním se ukáže, až udělíte souhlas se zpracováním.',
|
|
504
|
+
'forumText.discussion.removedNote': 'Tenhle příspěvek jsme odstranili a ostatní ho nevidí.',
|
|
505
|
+
'forumText.discussion.placeholderHeld': 'Příspěvek čeká na kontrolu.',
|
|
506
|
+
'forumText.discussion.placeholderRemoved': 'Příspěvek byl odstraněn.',
|
|
507
|
+
'forumText.discussion.placeholderDeleted': 'Příspěvek byl smazán.',
|
|
508
|
+
'forumText.report.title': 'Nahlásit příspěvek',
|
|
509
|
+
'forumText.report.category': 'Co je na příspěvku špatně?',
|
|
510
|
+
'forumText.error.links': 'V příspěvku je víc odkazů, než se vejde. Některé prosím uberte.',
|
|
511
|
+
'forumText.error.blocked': 'Příspěvek v téhle podobě zveřejnit nejde. Zkuste ho prosím upravit.',
|
|
512
|
+
'forumText.error.confirm': 'Než příspěvek odešlete, potvrďte prosím jednu věc.',
|
|
513
|
+
'forumText.confirm.other': 'Rozumím upozornění a chci příspěvek odeslat.',
|
|
514
|
+
'forumText.warning.identifier': 'V příspěvku je nejspíš e-mail, telefon nebo číslo účtu. Pokud tam být nemá, příspěvek upravte.',
|
|
515
|
+
'forumText.warning.other': 'Příspěvek je zveřejněný, ale pravidla diskuse u něj na něco upozorňují. Projděte si ho prosím.',
|
|
516
|
+
'forumText.need.onboarding': 'Před prvním příspěvkem si nastavte jméno a potvrďte pravidla diskuse.',
|
|
517
|
+
'forumText.need.art9_consent': 'Pro psaní ve fóru potřebujeme váš souhlas se zpracováním.',
|
|
518
|
+
'search.title': 'Hledání ve fóru',
|
|
519
|
+
'search.label': 'Co hledáte?',
|
|
520
|
+
'search.submit': 'Hledat',
|
|
521
|
+
'search.searching': 'Hledám…',
|
|
522
|
+
'search.tooShort': 'Napište prosím aspoň {min} znaky.',
|
|
523
|
+
'search.tooLong': 'Hledaný text je moc dlouhý. Zkraťte ho prosím nejvýš na {max} znaků.',
|
|
524
|
+
'search.empty': 'K tomu jsme nenašli výsledky. Zkuste jiná slova.',
|
|
525
|
+
'search.more': 'Další výsledky',
|
|
526
|
+
'search.lastPage': 'Další výsledky už nezobrazíme. Zkuste hledání upřesnit.',
|
|
527
|
+
'search.space': 'Kde hledat',
|
|
528
|
+
'search.spaceAll': 'Všude',
|
|
529
|
+
'search.spaceForum': 'Ve fóru',
|
|
530
|
+
'search.spaceArticle': 'V diskusích pod články',
|
|
531
|
+
'search.category': 'Kategorie',
|
|
532
|
+
'search.topic': 'Téma',
|
|
533
|
+
'search.message': 'Příspěvek',
|
|
534
|
+
'search.inArticle': 'Diskuse pod článkem',
|
|
535
|
+
'moderation.title': 'Moderování',
|
|
536
|
+
'moderation.loading': 'Načítám frontu…',
|
|
537
|
+
'moderation.empty': 'Fronta je teď prázdná.',
|
|
538
|
+
'moderation.source.member_report': 'Nahlásil člen',
|
|
539
|
+
'moderation.source.filter': 'Zachytil filtr',
|
|
540
|
+
'moderation.source.staff': 'Od týmu',
|
|
541
|
+
'moderation.premod': 'Čeká na schválení',
|
|
542
|
+
'moderation.heldBySystem': 'Zatím skryté automaticky',
|
|
543
|
+
'moderation.deadline': 'Vyřídit do {date}',
|
|
544
|
+
'moderation.open': 'Posoudit',
|
|
545
|
+
'moderation.package': 'Obsah k posouzení',
|
|
546
|
+
// M3 F4 (the wave 2 integration): a message of the package other than the case's subject that others cannot see now.
|
|
547
|
+
'moderation.itemWithheld': 'Tenhle příspěvek teď ostatní nevidí, a tak ho tu neukazujeme.',
|
|
548
|
+
'moderation.restriction': 'Rozhodnutí',
|
|
549
|
+
'moderation.factsHint': 'Popište, co jste u obsahu zjistili. Text bude součástí odůvodnění pro autora.',
|
|
550
|
+
'moderation.ruleRequired': 'Vyberte prosím pravidlo, o které se rozhodnutí opírá.',
|
|
551
|
+
'moderation.preview': 'Náhled odůvodnění',
|
|
552
|
+
'moderation.previewTitle': 'Takhle odůvodnění uvidí autor',
|
|
553
|
+
'moderation.decide': 'Rozhodnout',
|
|
554
|
+
'moderation.decided': 'Rozhodnuto.',
|
|
555
|
+
'moderation.escalate': 'Předat týmu',
|
|
556
|
+
'moderation.escalateLede': 'Jde podle vás o protiprávní obsah? Předejte ho týmu webu, posoudí ho sám.',
|
|
557
|
+
'moderation.escalateCategory': 'O co jde?',
|
|
558
|
+
'moderation.escalated': 'Předáno týmu.',
|
|
559
|
+
'moderation.remove': 'Odstranit jako moderátor',
|
|
560
|
+
'moderation.removeLede': 'Příspěvek zmizí a autor dostane odůvodnění, proti kterému se může odvolat.',
|
|
561
|
+
'moderation.removed': 'Odstraněno. Autor dostal odůvodnění.',
|
|
562
|
+
'moderation.approve': 'Zveřejnit',
|
|
563
|
+
'moderation.approved': 'Zveřejněno.',
|
|
564
|
+
'moderation.reject': 'Zamítnout',
|
|
565
|
+
'moderation.rejected': 'Zamítnuto. Autor dostal odůvodnění.',
|
|
566
|
+
'moderation.gone': 'Tahle položka už ve frontě není.',
|
|
567
|
+
// M3 FX (R3): a pre-moderated text the author edited while it was being reviewed.
|
|
568
|
+
'moderation.textChanged': 'Autor text mezitím upravil. Přečtěte si novou verzi a rozhodněte znovu.',
|
|
569
|
+
'moderation.lock': 'Uzavřít téma',
|
|
570
|
+
'moderation.unlock': 'Znovu otevřít téma',
|
|
571
|
+
'moderation.pin': 'Připnout téma',
|
|
572
|
+
'moderation.unpin': 'Odepnout téma',
|
|
573
|
+
'moderation.move': 'Přesunout téma',
|
|
574
|
+
'moderation.moveTo': 'Kam téma přesunout?',
|
|
575
|
+
'moderation.done': 'Hotovo.',
|
|
576
|
+
'moderation.openTopic': 'Zobrazit v tématu',
|
|
577
|
+
// A member's profile: the categories they moderate now (PublicProfile.moderates; „Moderátor" is role.moderator).
|
|
578
|
+
'profile.moderates': 'V kategoriích',
|
|
404
579
|
'mention.limit': 'V jednom příspěvku jste zmínili víc lidí, než zatím jde.',
|
|
405
580
|
|
|
406
581
|
// ── the notice form ──
|
|
@@ -433,6 +608,9 @@ export const COMMUNITY_MESSAGES_CS = {
|
|
|
433
608
|
'notice.submittedAt': 'Odesláno {date}',
|
|
434
609
|
'notice.decidedAt': 'Rozhodnuto {date}',
|
|
435
610
|
'notice.statement': 'Odůvodnění',
|
|
611
|
+
// M3 F6/F9: a notice closed by an adverse-event outcome alone — the outcome in plain words and the redress line.
|
|
612
|
+
'notice.outcome': 'Výsledek',
|
|
613
|
+
'notice.redress': 'Pokud s vyřízením nesouhlasíte, můžete se obrátit na soud nebo využít mimosoudní řešení sporu.',
|
|
436
614
|
'notice.appealTitle': 'Odvolání',
|
|
437
615
|
'notice.appealLede': 'Nesouhlasíte s tím, jak jsme hlášení vyřídili? Napište nám proč.',
|
|
438
616
|
'notice.appealBody': 'Proč s rozhodnutím nesouhlasíte?',
|