@blogmcp/community 0.4.1 → 0.5.1
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/blogmcp-community-private.global.js +8 -0
- package/dist/blogmcp-community.global.js +3 -3
- package/dist/chunks/{mount-Ts_r2fwt.js → mount-SKmc4NgD.js} +39 -9
- package/dist/chunks/private-mount-BgfUSd3g.js +5548 -0
- package/dist/core/attrs.d.ts +15 -0
- package/dist/core/settings.d.ts +5 -0
- package/dist/index.js +2 -2
- package/dist/private/core/dock.d.ts +38 -0
- package/dist/private/core/push.d.ts +49 -0
- package/dist/private/core/realtime.d.ts +57 -0
- package/dist/private/core/setup.d.ts +43 -0
- package/dist/private/core/view.d.ts +179 -0
- package/dist/private/dm/composer.d.ts +34 -0
- package/dist/private/dm/controller.d.ts +162 -0
- package/dist/private/dm/index.d.ts +14 -0
- package/dist/private/dm/links.d.ts +33 -0
- package/dist/private/dm/muted.d.ts +37 -0
- package/dist/private/dm/search.d.ts +7 -0
- package/dist/private/dm/text.d.ts +27 -0
- package/dist/private/dm/ui/DmBlocks.vue.d.ts +8 -0
- package/dist/private/dm/ui/DmCases.vue.d.ts +8 -0
- package/dist/private/dm/ui/DmComposer.vue.d.ts +20 -0
- package/dist/private/dm/ui/DmInbox.vue.d.ts +12 -0
- package/dist/private/dm/ui/DmLinkWarning.vue.d.ts +8 -0
- package/dist/private/dm/ui/DmLocalAids.vue.d.ts +8 -0
- package/dist/private/dm/ui/DmMessageText.vue.d.ts +8 -0
- package/dist/private/dm/ui/DmNew.vue.d.ts +12 -0
- package/dist/private/dm/ui/DmReport.vue.d.ts +8 -0
- package/dist/private/dm/ui/DmRequests.vue.d.ts +12 -0
- package/dist/private/dm/ui/DmScreens.vue.d.ts +9 -0
- package/dist/private/dm/ui/DmThread.vue.d.ts +9 -0
- package/dist/private/element.d.ts +23 -0
- package/dist/private/global.d.ts +10 -0
- package/dist/private/i18n.d.ts +41 -0
- package/dist/private/index.d.ts +32 -0
- package/dist/private/index.js +57 -0
- package/dist/private/mount.d.ts +55 -0
- package/dist/private/pages/api.d.ts +44 -0
- package/dist/private/pages/element.d.ts +6 -0
- package/dist/private/pages/fragment.d.ts +43 -0
- package/dist/private/pages/i18n.d.ts +25 -0
- package/dist/private/pages/index.d.ts +1 -0
- package/dist/private/pages/pages.d.ts +276 -0
- package/dist/private/pages/proof.d.ts +36 -0
- package/dist/private/pages/provider-view.d.ts +33 -0
- package/dist/private/pages/setup.d.ts +42 -0
- package/dist/private/pages/ui/AccountPageRoot.vue.d.ts +9 -0
- package/dist/private/pages/ui/PageActivation.vue.d.ts +9 -0
- package/dist/private/pages/ui/PageAddress.vue.d.ts +8 -0
- package/dist/private/pages/ui/PageDeviceApprove.vue.d.ts +8 -0
- package/dist/private/pages/ui/PageDevices.vue.d.ts +8 -0
- package/dist/private/pages/ui/PageExport.vue.d.ts +8 -0
- package/dist/private/pages/ui/PageMessages.vue.d.ts +9 -0
- package/dist/private/react.d.ts +12 -0
- package/dist/private/react.js +36 -0
- package/dist/private/ui/ChatDockRoot.vue.d.ts +20 -0
- package/dist/private/ui/LegalBlocks.vue.d.ts +10 -0
- package/dist/private/ui/LegalRun.vue.d.ts +7 -0
- package/dist/private/ui/LegalRuns.vue.d.ts +6 -0
- package/dist/private/ui/LegalText.vue.d.ts +13 -0
- package/dist/private/ui/PrivateScreens.vue.d.ts +14 -0
- package/dist/private/ui/PrivateViewRoot.vue.d.ts +23 -0
- package/dist/private/ui/PromiseBlock.vue.d.ts +9 -0
- package/dist/private/ui/ProviderLine.vue.d.ts +8 -0
- package/dist/private/ui/ScreenActivation.vue.d.ts +8 -0
- package/dist/private/ui/ScreenAddress.vue.d.ts +8 -0
- package/dist/private/ui/ScreenApproval.vue.d.ts +8 -0
- package/dist/private/ui/ScreenDevices.vue.d.ts +8 -0
- package/dist/private/ui/ScreenHome.vue.d.ts +12 -0
- package/dist/private/ui/ScreenNotifications.vue.d.ts +8 -0
- package/dist/private/ui/ScreenReads.vue.d.ts +8 -0
- package/dist/private/ui/ScreenSettings.vue.d.ts +8 -0
- package/dist/private/ui/legal.d.ts +15 -0
- package/dist/private/ui/root.d.ts +35 -0
- package/dist/private/ui/text.d.ts +22 -0
- package/dist/private/vue.d.ts +88 -0
- package/dist/private/vue.js +72 -0
- package/dist/react.js +14 -14
- package/dist/vue.js +14 -14
- package/package.json +23 -6
- package/src/core/attrs.ts +19 -0
- package/src/core/settings.ts +55 -12
- package/src/private/core/dock.ts +105 -0
- package/src/private/core/push.ts +166 -0
- package/src/private/core/realtime.ts +109 -0
- package/src/private/core/setup.ts +75 -0
- package/src/private/core/view.ts +920 -0
- package/src/private/dm/composer.ts +74 -0
- package/src/private/dm/controller.ts +636 -0
- package/src/private/dm/index.ts +14 -0
- package/src/private/dm/links.ts +55 -0
- package/src/private/dm/muted.ts +160 -0
- package/src/private/dm/search.ts +18 -0
- package/src/private/dm/text.ts +60 -0
- package/src/private/dm/ui/DmBlocks.vue +27 -0
- package/src/private/dm/ui/DmCases.vue +58 -0
- package/src/private/dm/ui/DmComposer.vue +68 -0
- package/src/private/dm/ui/DmInbox.vue +34 -0
- package/src/private/dm/ui/DmLinkWarning.vue +27 -0
- package/src/private/dm/ui/DmLocalAids.vue +43 -0
- package/src/private/dm/ui/DmMessageText.vue +16 -0
- package/src/private/dm/ui/DmNew.vue +46 -0
- package/src/private/dm/ui/DmReport.vue +93 -0
- package/src/private/dm/ui/DmRequests.vue +50 -0
- package/src/private/dm/ui/DmScreens.vue +66 -0
- package/src/private/dm/ui/DmThread.vue +235 -0
- package/src/private/element.ts +90 -0
- package/src/private/global.ts +14 -0
- package/src/private/i18n.ts +127 -0
- package/src/private/index.ts +68 -0
- package/src/private/messages/cs.json +311 -0
- package/src/private/messages/en.json +319 -0
- package/src/private/mount.ts +103 -0
- package/src/private/pages/api.ts +96 -0
- package/src/private/pages/build.d.mts +2 -0
- package/src/private/pages/build.mjs +72 -0
- package/src/private/pages/element.ts +49 -0
- package/src/private/pages/fragment.ts +63 -0
- package/src/private/pages/i18n.ts +82 -0
- package/src/private/pages/index.ts +10 -0
- package/src/private/pages/messages/cs.json +97 -0
- package/src/private/pages/messages/en.json +97 -0
- package/src/private/pages/pages.ts +410 -0
- package/src/private/pages/proof.ts +110 -0
- package/src/private/pages/provider-view.ts +121 -0
- package/src/private/pages/setup.ts +79 -0
- package/src/private/pages/ui/AccountPageRoot.vue +45 -0
- package/src/private/pages/ui/PageActivation.vue +42 -0
- package/src/private/pages/ui/PageAddress.vue +39 -0
- package/src/private/pages/ui/PageDeviceApprove.vue +62 -0
- package/src/private/pages/ui/PageDevices.vue +84 -0
- package/src/private/pages/ui/PageExport.vue +35 -0
- package/src/private/pages/ui/PageMessages.vue +39 -0
- package/src/private/pages/ui/account.css +6 -0
- package/src/private/react.ts +49 -0
- package/src/private/shims.d.ts +6 -0
- package/src/private/ui/ChatDockRoot.vue +119 -0
- package/src/private/ui/LegalBlocks.vue +30 -0
- package/src/private/ui/LegalRun.vue +13 -0
- package/src/private/ui/LegalRuns.vue +20 -0
- package/src/private/ui/LegalText.vue +25 -0
- package/src/private/ui/PrivateScreens.vue +61 -0
- package/src/private/ui/PrivateViewRoot.vue +70 -0
- package/src/private/ui/PromiseBlock.vue +18 -0
- package/src/private/ui/ProviderLine.vue +20 -0
- package/src/private/ui/ScreenActivation.vue +82 -0
- package/src/private/ui/ScreenAddress.vue +37 -0
- package/src/private/ui/ScreenApproval.vue +71 -0
- package/src/private/ui/ScreenDevices.vue +42 -0
- package/src/private/ui/ScreenHome.vue +29 -0
- package/src/private/ui/ScreenNotifications.vue +44 -0
- package/src/private/ui/ScreenReads.vue +23 -0
- package/src/private/ui/ScreenSettings.vue +44 -0
- package/src/private/ui/legal.ts +29 -0
- package/src/private/ui/private.css +90 -0
- package/src/private/ui/root.ts +89 -0
- package/src/private/ui/text.ts +40 -0
- package/src/private/vue.ts +87 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/// <reference path="../shims.d.ts" />
|
|
2
|
+
/**
|
|
3
|
+
* `<blogmcp-account-page>` (m4-contracts.md §6.4): the one element every account page consists of, a Vue component in
|
|
4
|
+
* a shadow root with ONE inline stylesheet admitted by the CSP nonce — the private elements' pattern (`../element.ts`).
|
|
5
|
+
* kb-api answers each page with a fresh nonce in `style-src 'nonce-…'` and stamps it on the page's one script; the
|
|
6
|
+
* script build passes it here (`document.currentScript.nonce`), so the shadow root's `<style>` carries it. CSP's
|
|
7
|
+
* inline-style rule applies inside shadow trees: without the nonce every page would be unstyled with a violation.
|
|
8
|
+
*
|
|
9
|
+
* Attributes (kb-api's template sets them): `page`, and on `/zpravy` `kb-origin`, `handoff-url`, `site-name`; `lang`
|
|
10
|
+
* optional (else the document's).
|
|
11
|
+
*/
|
|
12
|
+
import { defineCustomElement } from 'vue'
|
|
13
|
+
import AccountPageRoot from './ui/AccountPageRoot.vue'
|
|
14
|
+
import privateCss from '../ui/private.css?inline'
|
|
15
|
+
import accountCss from './ui/account.css?inline'
|
|
16
|
+
|
|
17
|
+
export const ACCOUNT_PAGE_ELEMENT_TAG = 'blogmcp-account-page'
|
|
18
|
+
|
|
19
|
+
/** Vue's ESM build reads three compile-time flags as globals; give them Vue's defaults where no bundler did. */
|
|
20
|
+
function ensureVueFeatureFlags(): void {
|
|
21
|
+
const g = globalThis as Record<string, unknown>
|
|
22
|
+
const defaults: Record<string, boolean> = { __VUE_OPTIONS_API__: true, __VUE_PROD_DEVTOOLS__: false, __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: false }
|
|
23
|
+
for (const [flag, value] of Object.entries(defaults)) if (typeof g[flag] === 'undefined') g[flag] = value
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/** Register `<blogmcp-account-page>` once, its stylesheet carrying `nonce`. Browser only. */
|
|
27
|
+
export function defineAccountPageElement(opts: { nonce?: string; tag?: string } = {}): void {
|
|
28
|
+
const tag = opts.tag ?? ACCOUNT_PAGE_ELEMENT_TAG
|
|
29
|
+
if (typeof customElements === 'undefined' || customElements.get(tag)) return
|
|
30
|
+
ensureVueFeatureFlags()
|
|
31
|
+
const Base = defineCustomElement(AccountPageRoot as Parameters<typeof defineCustomElement>[0])
|
|
32
|
+
const nonce = opts.nonce
|
|
33
|
+
customElements.define(
|
|
34
|
+
tag,
|
|
35
|
+
class AccountPageElement extends Base {
|
|
36
|
+
override connectedCallback(): void {
|
|
37
|
+
const root = this.shadowRoot
|
|
38
|
+
if (root && !root.querySelector('style[data-bcm]')) {
|
|
39
|
+
const style = document.createElement('style')
|
|
40
|
+
style.setAttribute('data-bcm', '')
|
|
41
|
+
if (nonce) style.setAttribute('nonce', nonce)
|
|
42
|
+
style.textContent = `${privateCss}\n${accountCss}`
|
|
43
|
+
root.prepend(style)
|
|
44
|
+
}
|
|
45
|
+
super.connectedCallback()
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
)
|
|
49
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The capability an account page was opened with (m4-contracts.md §5.10 "The account surface"): it travels in the
|
|
3
|
+
* URL's fragment (`#t=kbda_…`), which no request carries, so neither kb-api's nor the ingress's logs ever see it. The
|
|
4
|
+
* page reads it once and removes it from the address bar (`history.replaceState`), so it is neither in the history nor
|
|
5
|
+
* in a bookmark, nor shown to whoever looks at the screen; from then on it lives in the page's memory only. A reload
|
|
6
|
+
* therefore starts without it: the member opens the e-mail's link again.
|
|
7
|
+
*
|
|
8
|
+
* The prefix names the capability's purpose (Appendix A.3), which tells a page what to do with it; kb-api decides
|
|
9
|
+
* whether it is usable.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
/** Each capability's purpose by its prefix (kb-api's ACCOUNT_TOKEN_POLICY, services/community/private/account.ts). */
|
|
13
|
+
export const CAPABILITY_PREFIXES = Object.freeze({
|
|
14
|
+
kbas_: 'address_set',
|
|
15
|
+
kbav_: 'address_verify',
|
|
16
|
+
kbaw_: 'address_change_verify',
|
|
17
|
+
kbax_: 'address_change_confirm',
|
|
18
|
+
kbda_: 'device_approve',
|
|
19
|
+
kbdl_: 'device_list',
|
|
20
|
+
kbae_: 'export_confirm',
|
|
21
|
+
kbad_: 'activation_dispute',
|
|
22
|
+
kbac_: 'contract_end_confirm',
|
|
23
|
+
} as const)
|
|
24
|
+
|
|
25
|
+
export type CapabilityPurpose = (typeof CAPABILITY_PREFIXES)[keyof typeof CAPABILITY_PREFIXES]
|
|
26
|
+
|
|
27
|
+
export interface Capability {
|
|
28
|
+
readonly token: string
|
|
29
|
+
readonly purpose: CapabilityPurpose
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/** A prefix and 32 random bytes in base64url, as kb-api mints them. */
|
|
33
|
+
const TOKEN_RE = /^(kb[a-z]{2}_)[A-Za-z0-9_-]{43}$/
|
|
34
|
+
|
|
35
|
+
/** The capability a token names, or null for any other shape. */
|
|
36
|
+
export function capabilityOf(token: unknown): Capability | null {
|
|
37
|
+
if (typeof token !== 'string') return null
|
|
38
|
+
const m = TOKEN_RE.exec(token)
|
|
39
|
+
if (!m) return null
|
|
40
|
+
const purpose = (CAPABILITY_PREFIXES as Readonly<Record<string, CapabilityPurpose>>)[m[1]!]
|
|
41
|
+
return purpose ? Object.freeze({ token, purpose }) : null
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export interface FragmentWindow {
|
|
45
|
+
location: { hash: string; pathname: string }
|
|
46
|
+
history: { replaceState(data: unknown, unused: string, url?: string): void }
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Read the fragment's `t` and remove the whole fragment from the address bar (whatever it held). Null when the page
|
|
51
|
+
* was opened without a usable capability.
|
|
52
|
+
*/
|
|
53
|
+
export function takeCapability(w: FragmentWindow = window as unknown as FragmentWindow): Capability | null {
|
|
54
|
+
const raw = w.location.hash.replace(/^#/, '')
|
|
55
|
+
if (raw !== '') {
|
|
56
|
+
try {
|
|
57
|
+
w.history.replaceState(null, '', w.location.pathname)
|
|
58
|
+
} catch {
|
|
59
|
+
// A page without history (a test) keeps going; the capability is still read.
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return capabilityOf(new URLSearchParams(raw).get('t'))
|
|
63
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/// <reference path="../shims.d.ts" />
|
|
2
|
+
/**
|
|
3
|
+
* The account pages' words (m4-contracts.md §6.4): a catalogue of their own, `messages/{cs,en}.json`, under the
|
|
4
|
+
* `account.` prefix. The pages are a bundle of their own, served by kb-api on the account host, so their texts stay out
|
|
5
|
+
* of the private view's catalogue and the public one alike; they are data (JSON), as the other catalogues are, and no
|
|
6
|
+
* page file holds a sentence (test/text-only.spec.ts and test/account-pages/catalogue.spec.ts scan them). The private
|
|
7
|
+
* view on `/zpravy` keeps its own words (`../i18n.ts`).
|
|
8
|
+
*/
|
|
9
|
+
import { formatWhen, type Lang } from '../i18n'
|
|
10
|
+
import cs from './messages/cs.json'
|
|
11
|
+
import en from './messages/en.json'
|
|
12
|
+
|
|
13
|
+
export type { Lang }
|
|
14
|
+
|
|
15
|
+
/** Both catalogues, flat (`'account.approve.title'`, …). */
|
|
16
|
+
export const ACCOUNT_MESSAGES: Readonly<Record<Lang, Readonly<Record<string, string>>>> = Object.freeze({ cs, en })
|
|
17
|
+
|
|
18
|
+
export type AccountParams = Record<string, string | number>
|
|
19
|
+
|
|
20
|
+
const has = (catalog: Readonly<Record<string, string>>, key: string): boolean => Object.prototype.hasOwnProperty.call(catalog, key)
|
|
21
|
+
|
|
22
|
+
/** Whether the catalogue has a text for `key` (Czech is the reference). */
|
|
23
|
+
export function hasAccountMessage(key: string): boolean {
|
|
24
|
+
return has(ACCOUNT_MESSAGES.cs, key)
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/** One text in `lang`; an unknown key falls back to Czech, then to the key itself. */
|
|
28
|
+
export function accountMessage(lang: Lang, key: string, params?: AccountParams): string {
|
|
29
|
+
const catalog = ACCOUNT_MESSAGES[lang]
|
|
30
|
+
const template = has(catalog, key) ? catalog[key]! : has(ACCOUNT_MESSAGES.cs, key) ? ACCOUNT_MESSAGES.cs[key]! : key
|
|
31
|
+
if (!params) return template
|
|
32
|
+
return template.replace(/\{(\w+)\}/g, (placeholder, name: string) => (Object.prototype.hasOwnProperty.call(params, name) && params[name] != null ? String(params[name]) : placeholder))
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/** The catalogue key of a refusal: the ones an account page meets by name, any other the generic sentence. */
|
|
36
|
+
export function accountErrorKey(code: string | null | undefined): string {
|
|
37
|
+
switch (code) {
|
|
38
|
+
case 'NOT_FOUND':
|
|
39
|
+
return 'account.error.notFound'
|
|
40
|
+
case 'NETWORK':
|
|
41
|
+
case 'BAD_ANSWER':
|
|
42
|
+
return 'account.error.network'
|
|
43
|
+
case 'TOO_FAST':
|
|
44
|
+
return 'account.error.tooFast'
|
|
45
|
+
case 'QUOTA_DAILY':
|
|
46
|
+
case 'QUOTA_IP_HOURLY':
|
|
47
|
+
return 'account.error.quota'
|
|
48
|
+
case 'VALIDATION':
|
|
49
|
+
return 'account.error.validation'
|
|
50
|
+
case 'ADDRESS_LOCKED':
|
|
51
|
+
return 'account.error.addressLocked'
|
|
52
|
+
case 'APPROVAL_INVALID':
|
|
53
|
+
return 'account.error.approvalInvalid'
|
|
54
|
+
case 'APPROVAL_EXHAUSTED':
|
|
55
|
+
return 'account.error.approvalExhausted'
|
|
56
|
+
case 'DEVICE_PENDING':
|
|
57
|
+
return 'account.error.devicePending'
|
|
58
|
+
case 'PRIVATE_RESTRICTED':
|
|
59
|
+
return 'account.error.restricted'
|
|
60
|
+
// A dark or not yet built operation (DM7b's export before wave 11) answers the unknown path.
|
|
61
|
+
case 'UNKNOWN_PATH':
|
|
62
|
+
case 'UNAVAILABLE':
|
|
63
|
+
return 'account.error.unavailable'
|
|
64
|
+
default:
|
|
65
|
+
return 'account.error.generic'
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export interface AccountText {
|
|
70
|
+
at(key: string, params?: AccountParams): string
|
|
71
|
+
/** A refusal's sentence. */
|
|
72
|
+
refusal(code: string | null | undefined): string
|
|
73
|
+
when(iso: string | null | undefined, withTime?: boolean): string
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function accountText(lang: Lang): AccountText {
|
|
77
|
+
return {
|
|
78
|
+
at: (key, params) => accountMessage(lang, key, params),
|
|
79
|
+
refusal: (code) => accountMessage(lang, accountErrorKey(code)),
|
|
80
|
+
when: (iso, withTime = true) => formatWhen(lang, iso, withTime),
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The account pages' script build (`/_account/account.js`, m4-contracts.md §6.4): one classic script — a module
|
|
3
|
+
* script has no `document.currentScript` — that registers `<blogmcp-account-page>` with its own CSP nonce. kb-api's
|
|
4
|
+
* template puts the element and this script on every account page; the element reads its page from its attributes and
|
|
5
|
+
* its capability from the URL's fragment. Built by `build.mjs`, never part of the package's own bundles.
|
|
6
|
+
*/
|
|
7
|
+
import { defineAccountPageElement } from './element'
|
|
8
|
+
|
|
9
|
+
const script = typeof document !== 'undefined' ? (document.currentScript as HTMLScriptElement | null) : null
|
|
10
|
+
defineAccountPageElement({ nonce: script?.nonce || undefined })
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"account.title": "Účet soukromých zpráv",
|
|
3
|
+
"account.provider": "Tuto stránku provozuje blogmcp, který soukromé zprávy zajišťuje, ne web, na kterém si píšete.",
|
|
4
|
+
"account.loading": "Načítám…",
|
|
5
|
+
"account.noToken": "Odkaz je neúplný. Otevřete ho prosím znovu přímo z e-mailu.",
|
|
6
|
+
"account.retry": "Zkusit znovu",
|
|
7
|
+
"account.cancel": "Zrušit",
|
|
8
|
+
"account.continue": "Pokračovat",
|
|
9
|
+
"account.confirmAgain": "Potvrďte to prosím ještě jednou.",
|
|
10
|
+
"account.error.notFound": "Odkaz už neplatí: byl použitý, vypršel, nebo ho nahradil novější. Požádejte o nový.",
|
|
11
|
+
"account.error.network": "Spojení se nepodařilo. Zkontrolujte připojení a zkuste to znovu.",
|
|
12
|
+
"account.error.tooFast": "Moc pokusů najednou. Zkuste to prosím za chvíli.",
|
|
13
|
+
"account.error.quota": "Další e-mail teď poslat nelze. Zkuste to prosím později.",
|
|
14
|
+
"account.error.validation": "Zadaná hodnota nemá správný tvar.",
|
|
15
|
+
"account.error.addressLocked": "Adresa už je ověřená. Změnit ji jde jen odkazem ze seznamu zařízení.",
|
|
16
|
+
"account.error.approvalInvalid": "Schválení se nepodařilo: kód nesouhlasí, nebo podpis zařízení neplatí. Zkuste to znovu.",
|
|
17
|
+
"account.error.approvalExhausted": "Špatných pokusů bylo příliš mnoho. Požádejte o schválení znovu z nového zařízení.",
|
|
18
|
+
"account.error.devicePending": "Tento krok jde udělat jen ze schváleného zařízení.",
|
|
19
|
+
"account.error.restricted": "Soukromé zprávy jsou teď omezené a tento krok nyní udělat nelze.",
|
|
20
|
+
"account.error.unavailable": "Tato funkce teď není dostupná.",
|
|
21
|
+
"account.error.generic": "Akce se nepodařila. Zkuste to prosím znovu.",
|
|
22
|
+
"account.address.title": "Adresa pro schvalování",
|
|
23
|
+
"account.address.setIntro": "Na tuto adresu vám blogmcp bude posílat upozornění na nová přihlášení a odkazy ke schválení zařízení. Adresu uchovává blogmcp; web, na kterém si píšete, ji nedostává.",
|
|
24
|
+
"account.address.emailLabel": "E-mailová adresa",
|
|
25
|
+
"account.address.submit": "Poslat ověřovací odkaz",
|
|
26
|
+
"account.address.sent": "Ověřovací odkaz jsme poslali na {email}. Platí do {time}.",
|
|
27
|
+
"account.address.verifyIntro": "Potvrďte, že tato adresa patří vám.",
|
|
28
|
+
"account.address.verify": "Ověřit adresu",
|
|
29
|
+
"account.address.verified": "Adresa je ověřená. Můžete se vrátit k soukromým zprávám.",
|
|
30
|
+
"account.address.changed": "Nová adresa je ověřená a nahradila tu původní.",
|
|
31
|
+
"account.address.confirmIntro": "Někdo požádal o změnu adresy pro schvalování. Potvrďte ji jen tehdy, když jste o ni žádali vy.",
|
|
32
|
+
"account.address.confirm": "Potvrdit změnu adresy",
|
|
33
|
+
"account.address.confirmed": "Změna je potvrzená. Na novou adresu jsme poslali ověřovací odkaz.",
|
|
34
|
+
"account.approve.title": "Schválení nového zařízení",
|
|
35
|
+
"account.approve.intro": "Toto zařízení žádá o přístup k celé historii vašich soukromých zpráv. Schvalte ho jen tehdy, když ho právě držíte v ruce.",
|
|
36
|
+
"account.approve.device": "Zařízení: {label}",
|
|
37
|
+
"account.approve.origin": "Web: {origin}",
|
|
38
|
+
"account.approve.created": "Přihlášeno: {time}",
|
|
39
|
+
"account.approve.network": "Síť přihlášení: {ip}",
|
|
40
|
+
"account.approve.mintKey": "Klíč webu: {key}",
|
|
41
|
+
"account.approve.expires": "Odkaz platí do {time}.",
|
|
42
|
+
"account.approve.otherNetwork": "Zařízení se přihlásilo z jiné sítě než tato stránka.",
|
|
43
|
+
"account.approve.codeLabel": "Opište kód, který vidíte na novém zařízení",
|
|
44
|
+
"account.approve.codeWhere": "Kód vám ukáže stránka soukromých zpráv na webu {site}, na zařízení, které schvalujete.",
|
|
45
|
+
"account.approve.submitCode": "Schválit zařízení",
|
|
46
|
+
"account.approve.keyIntro": "Schválení se podepíše klíčem zařízení, který je uložený v tomto prohlížeči.",
|
|
47
|
+
"account.approve.submitKey": "Schválit toto zařízení",
|
|
48
|
+
"account.approve.keyMissing": "Otevřete odkaz na zařízení, které schvalujete.",
|
|
49
|
+
"account.approve.clockHint": "Pokud to nejde ani na druhý pokus, zkontrolujte, že má toto zařízení správně nastavený čas: podpis zařízení platí jen pět minut kolem času serveru.",
|
|
50
|
+
"account.approve.approved": "Zařízení je schválené. Na něm teď uvidíte celou historii.",
|
|
51
|
+
"account.devices.title": "Zařízení se soukromými zprávami",
|
|
52
|
+
"account.devices.intro": "Tady vidíte všechna zařízení, která mají přístup k vašim soukromým zprávám. Zařízení, které neznáte, odhlaste.",
|
|
53
|
+
"account.devices.hostStep": "Pokud zařízení neznáte, změňte také heslo na webu, nebo požádejte web o odhlášení všude: jinak se může přihlásit znovu jako nové zařízení.",
|
|
54
|
+
"account.devices.state.first": "první zařízení",
|
|
55
|
+
"account.devices.state.approved": "schválené",
|
|
56
|
+
"account.devices.state.pending": "čeká na schválení",
|
|
57
|
+
"account.devices.origin": "Web: {origin}",
|
|
58
|
+
"account.devices.signedIn": "Přihlášeno {time} ze sítě {ip}",
|
|
59
|
+
"account.devices.lastSeen": "Naposledy použito {time}",
|
|
60
|
+
"account.devices.signOut": "Odhlásit",
|
|
61
|
+
"account.devices.signOutConfirm": "Odhlásit zařízení {label}? Ztratí přístup a bude se muset znovu přihlásit a schválit.",
|
|
62
|
+
"account.devices.signOutAll": "Odhlásit všechna zařízení",
|
|
63
|
+
"account.devices.signOutAllConfirm": "Odhlásit všechna zařízení? Každé se bude muset znovu přihlásit a schválit.",
|
|
64
|
+
"account.devices.signedOut": "Zařízení je odhlášené.",
|
|
65
|
+
"account.devices.signedOutAll": "Odhlášeno zařízení: {count}.",
|
|
66
|
+
"account.devices.empty": "Seznam zařízení je prázdný.",
|
|
67
|
+
"account.reads.title": "Záznam čtení",
|
|
68
|
+
"account.reads.intro": "Kolikrát které zařízení otevřelo soukromý obsah, po hodinách, za posledních 90 dní.",
|
|
69
|
+
"account.reads.show": "Zobrazit záznam čtení",
|
|
70
|
+
"account.reads.row": "{time} · {label}: {count}×",
|
|
71
|
+
"account.reads.empty": "Za posledních 90 dní je záznam prázdný.",
|
|
72
|
+
"account.reads.removedDevice": "odhlášené zařízení",
|
|
73
|
+
"account.change.title": "Změna adresy pro schvalování",
|
|
74
|
+
"account.change.intro": "Novou adresu potvrdíte odkazem, který přijde na vaši současnou adresu.",
|
|
75
|
+
"account.change.label": "Nová e-mailová adresa",
|
|
76
|
+
"account.change.submit": "Požádat o změnu",
|
|
77
|
+
"account.change.sent": "Na současnou adresu jsme poslali odkaz k potvrzení změny. Platí do {time}.",
|
|
78
|
+
"account.export.title": "Export soukromých zpráv",
|
|
79
|
+
"account.export.intro": "Stáhnete si kopii svých soukromých zpráv. Soubor se stáhne jen tady, na stránce blogmcp, a přes web, na kterém si píšete, neprochází.",
|
|
80
|
+
"account.export.confirm": "Potvrdit export",
|
|
81
|
+
"account.export.ready": "Export je připravený.",
|
|
82
|
+
"account.export.download": "Stáhnout soubor",
|
|
83
|
+
"account.export.downloaded": "Soubor je stažený.",
|
|
84
|
+
"account.dispute.title": "Nebyli jste to vy?",
|
|
85
|
+
"account.dispute.intro": "Pokud jste soukromé zprávy nezapínali vy, tuto aktivaci zpochybníte: odhlásíme všechna zařízení, ukončíme všechna přihlášení a souhlas z této aktivace označíme jako sporný.",
|
|
86
|
+
"account.dispute.submit": "Zpochybnit aktivaci",
|
|
87
|
+
"account.dispute.done": "Aktivace je zpochybněná. Odhlášeno zařízení: {count}.",
|
|
88
|
+
"account.end.title": "Ukončení smlouvy o soukromých zprávách",
|
|
89
|
+
"account.end.intro": "Potvrzením ukončíte smlouvu o soukromých zprávách a vaše soukromé zprávy budou hned smazány. Tento krok nejde vrátit.",
|
|
90
|
+
"account.end.submit": "Ukončit smlouvu a smazat soukromé zprávy",
|
|
91
|
+
"account.end.done.withdrawal": "Od smlouvy jste odstoupili. Soukromé zprávy jsou smazané.",
|
|
92
|
+
"account.end.done.termination": "Smlouva je vypovězená. Soukromé zprávy jsou smazané.",
|
|
93
|
+
"account.messages.opening": "Otevírám soukromé zprávy přes web {site}…",
|
|
94
|
+
"account.messages.signIn": "Nejdřív se přihlaste na webu {site}. Pak soukromé zprávy otevřete znovu.",
|
|
95
|
+
"account.messages.invalid": "Otevření se nepodařilo dokončit. Otevřete soukromé zprávy znovu.",
|
|
96
|
+
"account.messages.reopen": "Otevřít znovu"
|
|
97
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
{
|
|
2
|
+
"account.title": "Private messages account",
|
|
3
|
+
"account.provider": "This page is run by blogmcp, which provides the private messages, not by the website you write on.",
|
|
4
|
+
"account.loading": "Loading…",
|
|
5
|
+
"account.noToken": "The link is incomplete. Please open it again straight from the e-mail.",
|
|
6
|
+
"account.retry": "Try again",
|
|
7
|
+
"account.cancel": "Cancel",
|
|
8
|
+
"account.continue": "Continue",
|
|
9
|
+
"account.confirmAgain": "Please confirm this once more.",
|
|
10
|
+
"account.error.notFound": "The link is no longer valid: it was used, it expired, or a newer one replaced it. Ask for a new one.",
|
|
11
|
+
"account.error.network": "The connection failed. Check your connection and try again.",
|
|
12
|
+
"account.error.tooFast": "Too many attempts at once. Please try again in a moment.",
|
|
13
|
+
"account.error.quota": "Another e-mail cannot be sent right now. Please try again later.",
|
|
14
|
+
"account.error.validation": "The value entered is not in the right form.",
|
|
15
|
+
"account.error.addressLocked": "The address is already verified. It can only be changed through the link from the device list.",
|
|
16
|
+
"account.error.approvalInvalid": "The approval failed: the code does not match, or the device's signature is not valid. Try again.",
|
|
17
|
+
"account.error.approvalExhausted": "There were too many wrong attempts. Ask for approval again from the new device.",
|
|
18
|
+
"account.error.devicePending": "This step can only be taken from an approved device.",
|
|
19
|
+
"account.error.restricted": "Private messages are restricted at the moment, and this step cannot be taken now.",
|
|
20
|
+
"account.error.unavailable": "This feature is not available at the moment.",
|
|
21
|
+
"account.error.generic": "The action failed. Please try again.",
|
|
22
|
+
"account.address.title": "Approval address",
|
|
23
|
+
"account.address.setIntro": "blogmcp will send notices of new sign-ins and links to approve devices to this address. blogmcp keeps the address; the website you write on does not receive it.",
|
|
24
|
+
"account.address.emailLabel": "E-mail address",
|
|
25
|
+
"account.address.submit": "Send the verification link",
|
|
26
|
+
"account.address.sent": "We sent the verification link to {email}. It is valid until {time}.",
|
|
27
|
+
"account.address.verifyIntro": "Confirm that this address is yours.",
|
|
28
|
+
"account.address.verify": "Verify the address",
|
|
29
|
+
"account.address.verified": "The address is verified. You can go back to your private messages.",
|
|
30
|
+
"account.address.changed": "The new address is verified and has replaced the old one.",
|
|
31
|
+
"account.address.confirmIntro": "Someone asked to change the approval address. Confirm the change only if you asked for it.",
|
|
32
|
+
"account.address.confirm": "Confirm the address change",
|
|
33
|
+
"account.address.confirmed": "The change is confirmed. We sent a verification link to the new address.",
|
|
34
|
+
"account.approve.title": "Approve a new device",
|
|
35
|
+
"account.approve.intro": "This device asks for access to the whole history of your private messages. Approve it only if you are holding it right now.",
|
|
36
|
+
"account.approve.device": "Device: {label}",
|
|
37
|
+
"account.approve.origin": "Website: {origin}",
|
|
38
|
+
"account.approve.created": "Signed in: {time}",
|
|
39
|
+
"account.approve.network": "Sign-in network: {ip}",
|
|
40
|
+
"account.approve.mintKey": "Website key: {key}",
|
|
41
|
+
"account.approve.expires": "The link is valid until {time}.",
|
|
42
|
+
"account.approve.otherNetwork": "The device signed in from another network than this page.",
|
|
43
|
+
"account.approve.codeLabel": "Type the code you see on the new device",
|
|
44
|
+
"account.approve.codeWhere": "The code is shown by the private messages page on {site}, on the device you are approving.",
|
|
45
|
+
"account.approve.submitCode": "Approve the device",
|
|
46
|
+
"account.approve.keyIntro": "The approval is signed with the device key stored in this browser.",
|
|
47
|
+
"account.approve.submitKey": "Approve this device",
|
|
48
|
+
"account.approve.keyMissing": "Open the link on the device you are approving.",
|
|
49
|
+
"account.approve.clockHint": "If it fails again, check that this device’s clock is set correctly: the device’s signature is valid only within five minutes of the server’s time.",
|
|
50
|
+
"account.approve.approved": "The device is approved. It now shows the whole history.",
|
|
51
|
+
"account.devices.title": "Devices with private messages",
|
|
52
|
+
"account.devices.intro": "These are all the devices with access to your private messages. Sign out a device you do not recognise.",
|
|
53
|
+
"account.devices.hostStep": "If you do not recognise a device, also change your password on the website, or ask the website to sign you out everywhere: otherwise it can sign in again as a new device.",
|
|
54
|
+
"account.devices.state.first": "first device",
|
|
55
|
+
"account.devices.state.approved": "approved",
|
|
56
|
+
"account.devices.state.pending": "waiting for approval",
|
|
57
|
+
"account.devices.origin": "Website: {origin}",
|
|
58
|
+
"account.devices.signedIn": "Signed in {time} from network {ip}",
|
|
59
|
+
"account.devices.lastSeen": "Last used {time}",
|
|
60
|
+
"account.devices.signOut": "Sign out",
|
|
61
|
+
"account.devices.signOutConfirm": "Sign out the device {label}? It loses access and will have to sign in and be approved again.",
|
|
62
|
+
"account.devices.signOutAll": "Sign out every device",
|
|
63
|
+
"account.devices.signOutAllConfirm": "Sign out every device? Each will have to sign in and be approved again.",
|
|
64
|
+
"account.devices.signedOut": "The device is signed out.",
|
|
65
|
+
"account.devices.signedOutAll": "Devices signed out: {count}.",
|
|
66
|
+
"account.devices.empty": "The device list is empty.",
|
|
67
|
+
"account.reads.title": "Read log",
|
|
68
|
+
"account.reads.intro": "How many times each device opened private content, by hour, over the last 90 days.",
|
|
69
|
+
"account.reads.show": "Show the read log",
|
|
70
|
+
"account.reads.row": "{time} · {label}: {count}×",
|
|
71
|
+
"account.reads.empty": "The log is empty for the last 90 days.",
|
|
72
|
+
"account.reads.removedDevice": "a signed-out device",
|
|
73
|
+
"account.change.title": "Change the approval address",
|
|
74
|
+
"account.change.intro": "You confirm the new address through a link sent to your current address.",
|
|
75
|
+
"account.change.label": "New e-mail address",
|
|
76
|
+
"account.change.submit": "Ask for the change",
|
|
77
|
+
"account.change.sent": "We sent a link to confirm the change to your current address. It is valid until {time}.",
|
|
78
|
+
"account.export.title": "Export of private messages",
|
|
79
|
+
"account.export.intro": "Download a copy of your private messages. The file downloads only here, on the blogmcp page, and does not pass through the website you write on.",
|
|
80
|
+
"account.export.confirm": "Confirm the export",
|
|
81
|
+
"account.export.ready": "The export is ready.",
|
|
82
|
+
"account.export.download": "Download the file",
|
|
83
|
+
"account.export.downloaded": "The file is downloaded.",
|
|
84
|
+
"account.dispute.title": "Was it not you?",
|
|
85
|
+
"account.dispute.intro": "If you did not switch private messages on, dispute this activation: we sign out every device, end every session and mark the consent of this activation as disputed.",
|
|
86
|
+
"account.dispute.submit": "Dispute the activation",
|
|
87
|
+
"account.dispute.done": "The activation is disputed. Devices signed out: {count}.",
|
|
88
|
+
"account.end.title": "End the private messages contract",
|
|
89
|
+
"account.end.intro": "Confirming ends your private messages contract, and your private messages are deleted at once. This step cannot be undone.",
|
|
90
|
+
"account.end.submit": "End the contract and delete my private messages",
|
|
91
|
+
"account.end.done.withdrawal": "You withdrew from the contract. Your private messages are deleted.",
|
|
92
|
+
"account.end.done.termination": "The contract is terminated. Your private messages are deleted.",
|
|
93
|
+
"account.messages.opening": "Opening private messages through {site}…",
|
|
94
|
+
"account.messages.signIn": "First sign in on {site}. Then open your private messages again.",
|
|
95
|
+
"account.messages.invalid": "Opening could not be completed. Open your private messages again.",
|
|
96
|
+
"account.messages.reopen": "Open again"
|
|
97
|
+
}
|