@commentkit/comment-kit 1.0.0-beta.0 → 1.0.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/CHANGELOG.md +83 -0
- package/README.md +99 -7
- package/SECURITY.md +7 -2
- package/dist/npm/chunks/Guest-VNoofLxw.js +157 -0
- package/dist/npm/chunks/MarkupEditor-DTXrS3DD.js +199 -0
- package/dist/npm/chunks/Panel-B88JYH52.js +438 -0
- package/dist/npm/chunks/Shortcuts-BSOKdMHt.js +56 -0
- package/dist/npm/chunks/ThreadCard-izybwXIC.js +817 -0
- package/dist/npm/chunks/ar-O7EPv0mI.js +222 -0
- package/dist/npm/chunks/art-DK1JwPIo.js +155 -0
- package/dist/npm/chunks/{client-D1vrh_5G.js → client-Iegfv6ZC.js} +95 -65
- package/dist/npm/chunks/de-PGyZVNHX.js +211 -0
- package/dist/npm/chunks/es-Bq1idl8M.js +211 -0
- package/dist/npm/chunks/extension-B7SelsS0.js +54 -0
- package/dist/npm/chunks/extension-DSA8S8Qz.js +26 -0
- package/dist/npm/chunks/format-B5tJGtPC.js +524 -0
- package/dist/npm/chunks/fr-BVB9GGco.js +211 -0
- package/dist/npm/chunks/hi-DyBvrjzQ.js +211 -0
- package/dist/npm/chunks/{html2canvas-_mjSRP3G.js → html2canvas-DfGb8yka.js} +1145 -1132
- package/dist/npm/chunks/it-BlMMMwZh.js +211 -0
- package/dist/npm/chunks/ja-lAioBCJv.js +211 -0
- package/dist/npm/chunks/live-YFyP1GnP.js +34 -0
- package/dist/npm/chunks/mount-Dx_8NhX3.js +1484 -0
- package/dist/npm/chunks/nl-DR8mLHnn.js +211 -0
- package/dist/npm/chunks/privacy-DLhezjyi.js +30 -0
- package/dist/npm/chunks/pt-BR-D7j6aDPx.js +211 -0
- package/dist/npm/chunks/{pusher-DRKlokR8.js → pusher-BSsQoE1K.js} +1 -1
- package/dist/npm/chunks/realtime-CBRW9BB3.js +34 -0
- package/dist/npm/chunks/report-DoDVi1qT.js +28 -0
- package/dist/npm/chunks/{rolldown-runtime-VHNaYcLd.js → rolldown-runtime-Y_bBpyJl.js} +10 -3
- package/dist/npm/chunks/src-C1Qp94nr.js +549 -0
- package/dist/npm/chunks/zh-CN-tzYg9NPH.js +211 -0
- package/dist/npm/element.js +28 -11
- package/dist/npm/headless.js +2 -2
- package/dist/npm/index.js +3 -3
- package/dist/npm/react.js +12 -3
- package/dist/npm/svelte.js +12 -3
- package/dist/npm/types/adapters/react.d.ts +2 -0
- package/dist/npm/types/adapters/svelte.d.ts +1 -1
- package/dist/npm/types/adapters/vue.d.ts +72 -0
- package/dist/npm/types/anchor/index.d.ts +0 -1
- package/dist/npm/types/core/api.d.ts +2 -0
- package/dist/npm/types/core/auth.d.ts +42 -5
- package/dist/npm/types/core/client.d.ts +22 -7
- package/dist/npm/types/core/types.d.ts +50 -6
- package/dist/npm/types/element.d.ts +4 -1
- package/dist/npm/types/index.d.ts +3 -1
- package/dist/npm/vue.js +46 -7
- package/package.json +8 -2
- package/dist/npm/chunks/mount-Ce1MZrcm.js +0 -2485
- package/dist/npm/chunks/realtime-5SvAvTUU.js +0 -23
- package/dist/npm/chunks/src-DJjfvVsa.js +0 -330
|
@@ -54,7 +54,7 @@ var i = class extends Error {
|
|
|
54
54
|
r(this, "baseUrl", void 0), r(this, "tokens", void 0), r(this, "sdkVersion", void 0), this.baseUrl = e, this.tokens = t, this.sdkVersion = n;
|
|
55
55
|
}
|
|
56
56
|
async request(e, t = {}) {
|
|
57
|
-
let n = t.method ?? "GET", r = t.idempotent ? crypto.randomUUID() : null, o = !1;
|
|
57
|
+
let n = t.method ?? "GET", r = t.idempotencyKey ?? (t.idempotent ? crypto.randomUUID() : null), o = !1;
|
|
58
58
|
for (let u = 0;; u++) {
|
|
59
59
|
let d = {
|
|
60
60
|
Accept: "application/json",
|
|
@@ -136,9 +136,9 @@ async function f(e) {
|
|
|
136
136
|
function p(e = navigator.userAgent) {
|
|
137
137
|
return /FBAN|FBAV|Instagram|Line\/|WhatsApp|Snapchat|LinkedInApp|Slack|Twitter|MicroMessenger|; wv\)|GSA\//i.test(e);
|
|
138
138
|
}
|
|
139
|
-
var m = "popup=yes,width=460,height=680,left=120,top=80", h =
|
|
139
|
+
var m = "popup=yes,width=460,height=680,left=120,top=80", h = 500, g = 6e5, _ = class {
|
|
140
140
|
constructor(e, t, n = location.origin) {
|
|
141
|
-
r(this, "endpoint", void 0), r(this, "projectKey", void 0), r(this, "origin", void 0), r(this, "access", null), r(this, "refreshing", null), r(this, "listeners", /* @__PURE__ */ new Set()), this.endpoint = e, this.projectKey = t, this.origin = n;
|
|
141
|
+
r(this, "endpoint", void 0), r(this, "projectKey", void 0), r(this, "origin", void 0), r(this, "access", null), r(this, "refreshing", null), r(this, "listeners", /* @__PURE__ */ new Set()), r(this, "remember", !0), r(this, "authorize", null), this.endpoint = e, this.projectKey = t, this.origin = n;
|
|
142
142
|
}
|
|
143
143
|
get storageKey() {
|
|
144
144
|
return `commentkit:v1:${this.projectKey}`;
|
|
@@ -150,7 +150,7 @@ var m = "popup=yes,width=460,height=680,left=120,top=80", h = 1500, g = 6e5, _ =
|
|
|
150
150
|
return this.listeners.add(e), () => this.listeners.delete(e);
|
|
151
151
|
}
|
|
152
152
|
async accessToken() {
|
|
153
|
-
return this.access && this.access.expiresAt - 3e4 > Date.now() ? this.access.token : this.readRefresh()
|
|
153
|
+
return this.access && this.access.expiresAt - 3e4 > Date.now() ? this.access.token : this.readRefresh() ? await this.refresh() ? this.access?.token ?? null : null : this.pending()?.token ?? null;
|
|
154
154
|
}
|
|
155
155
|
async recover() {
|
|
156
156
|
return this.access = null, this.refresh();
|
|
@@ -161,17 +161,18 @@ var m = "popup=yes,width=460,height=680,left=120,top=80", h = 1500, g = 6e5, _ =
|
|
|
161
161
|
let s = window.open(o.toString(), "commentkit-signin", m);
|
|
162
162
|
if (!s) return i === "auto" ? this.redirect(this.authorizeUrl(r, n, e.share ?? null, location.href), t, n) : "popup_blocked";
|
|
163
163
|
let c = await this.awaitCode(s, n);
|
|
164
|
-
|
|
164
|
+
return c ? await this.exchange(c, t) ? "signed_in" : "failed" : "cancelled";
|
|
165
|
+
}
|
|
166
|
+
async exchange(e, t) {
|
|
165
167
|
try {
|
|
166
|
-
|
|
168
|
+
return this.store(await this.post("/oauth/token", {
|
|
167
169
|
grant_type: "authorization_code",
|
|
168
170
|
client_id: this.projectKey,
|
|
169
|
-
code:
|
|
171
|
+
code: e,
|
|
170
172
|
code_verifier: t
|
|
171
|
-
});
|
|
172
|
-
return this.store(e), "signed_in";
|
|
173
|
+
})), !0;
|
|
173
174
|
} catch {
|
|
174
|
-
return
|
|
175
|
+
return !1;
|
|
175
176
|
}
|
|
176
177
|
}
|
|
177
178
|
async completeRedirect() {
|
|
@@ -184,24 +185,13 @@ var m = "popup=yes,width=460,height=680,left=120,top=80", h = 1500, g = 6e5, _ =
|
|
|
184
185
|
} catch {
|
|
185
186
|
return !1;
|
|
186
187
|
}
|
|
187
|
-
|
|
188
|
-
try {
|
|
189
|
-
let e = await this.post("/oauth/token", {
|
|
190
|
-
grant_type: "authorization_code",
|
|
191
|
-
client_id: this.projectKey,
|
|
192
|
-
code: t,
|
|
193
|
-
code_verifier: r.verifier
|
|
194
|
-
});
|
|
195
|
-
return this.store(e), !0;
|
|
196
|
-
} catch {
|
|
197
|
-
return !1;
|
|
198
|
-
}
|
|
188
|
+
return !r?.verifier || r.state !== n ? !1 : this.exchange(t, r.verifier);
|
|
199
189
|
}
|
|
200
190
|
get pkceKey() {
|
|
201
191
|
return `commentkit:pkce:${this.projectKey}`;
|
|
202
192
|
}
|
|
203
193
|
authorizeUrl(e, t, n, r) {
|
|
204
|
-
let i = new URL("/widget/connect", this.endpoint);
|
|
194
|
+
let i = new URL(this.authorize ?? "/widget/connect", this.endpoint);
|
|
205
195
|
return i.search = new URLSearchParams({
|
|
206
196
|
key: this.projectKey,
|
|
207
197
|
origin: this.origin,
|
|
@@ -228,27 +218,19 @@ var m = "popup=yes,width=460,height=680,left=120,top=80", h = 1500, g = 6e5, _ =
|
|
|
228
218
|
this.clear(), e && await this.post("/oauth/revoke", { refresh_token: e }).catch(() => void 0);
|
|
229
219
|
}
|
|
230
220
|
awaitCode(e, t) {
|
|
231
|
-
let n = new URL(this.endpoint).origin;
|
|
221
|
+
let n = [new URL(this.endpoint).origin, new URL(this.authorize ?? this.endpoint).origin];
|
|
232
222
|
return new Promise((r) => {
|
|
233
223
|
let i = !1, a = Date.now(), o = (e) => {
|
|
234
224
|
i || (i = !0, window.removeEventListener("message", s), clearInterval(l), r(e));
|
|
235
225
|
}, s = (e) => {
|
|
236
|
-
if (e.origin
|
|
226
|
+
if (!n.includes(e.origin)) return;
|
|
237
227
|
let r = e.data;
|
|
238
228
|
r?.type === "commentkit:auth" && r.state === t && typeof r.code == "string" && o(r.code);
|
|
239
229
|
};
|
|
240
230
|
window.addEventListener("message", s);
|
|
241
|
-
let c = null, l = setInterval(
|
|
231
|
+
let c = null, l = setInterval(() => {
|
|
242
232
|
if (Date.now() - a > g) return o(null);
|
|
243
|
-
e.closed && (c ?? (c = Date.now()));
|
|
244
|
-
try {
|
|
245
|
-
let e = await this.post("/oauth/poll", {
|
|
246
|
-
client_id: this.projectKey,
|
|
247
|
-
state: t
|
|
248
|
-
});
|
|
249
|
-
if (e?.status === "complete" && e.code) return o(e.code);
|
|
250
|
-
} catch {}
|
|
251
|
-
c !== null && Date.now() - c > 6e3 && o(null);
|
|
233
|
+
e.closed && (c ?? (c = Date.now())), c !== null && Date.now() - c > 1e3 && o(null);
|
|
252
234
|
}, h);
|
|
253
235
|
});
|
|
254
236
|
}
|
|
@@ -270,32 +252,66 @@ var m = "popup=yes,width=460,height=680,left=120,top=80", h = 1500, g = 6e5, _ =
|
|
|
270
252
|
}
|
|
271
253
|
})()), this.refreshing;
|
|
272
254
|
}
|
|
255
|
+
configure(e) {
|
|
256
|
+
let t = this.readRefresh();
|
|
257
|
+
this.remember = e?.remember !== !1, t && this.write(t);
|
|
258
|
+
try {
|
|
259
|
+
let t = new URL(e?.authorize_url ?? "");
|
|
260
|
+
this.authorize = /^https?:$/.test(t.protocol) ? t.origin + t.pathname : null;
|
|
261
|
+
} catch {
|
|
262
|
+
this.authorize = null;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
pending() {
|
|
266
|
+
try {
|
|
267
|
+
let e = JSON.parse(sessionStorage.getItem(this.pendingKey) ?? "null");
|
|
268
|
+
return e && e.expiresAt > Date.now() ? e : null;
|
|
269
|
+
} catch {
|
|
270
|
+
return null;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
setPending(e) {
|
|
274
|
+
try {
|
|
275
|
+
e ? sessionStorage.setItem(this.pendingKey, JSON.stringify(e)) : sessionStorage.removeItem(this.pendingKey);
|
|
276
|
+
} catch {}
|
|
277
|
+
}
|
|
278
|
+
get pendingKey() {
|
|
279
|
+
return `commentkit:pending:${this.projectKey}`;
|
|
280
|
+
}
|
|
281
|
+
adopt(e) {
|
|
282
|
+
this.setPending(null), this.store(e);
|
|
283
|
+
}
|
|
273
284
|
store(e) {
|
|
274
285
|
let t = this.hasSession();
|
|
275
286
|
this.access = {
|
|
276
287
|
token: e.access_token,
|
|
277
288
|
expiresAt: Date.now() + e.expires_in * 1e3
|
|
278
|
-
};
|
|
289
|
+
}, this.write(e.refresh_token), t || this.emit(!0);
|
|
290
|
+
}
|
|
291
|
+
write(e) {
|
|
292
|
+
this.stores().forEach((t, n) => {
|
|
293
|
+
try {
|
|
294
|
+
e && !n ? t.setItem(this.storageKey, JSON.stringify({ refresh_token: e })) : t.removeItem(this.storageKey);
|
|
295
|
+
} catch {}
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
stores() {
|
|
279
299
|
try {
|
|
280
|
-
|
|
281
|
-
} catch {
|
|
282
|
-
|
|
300
|
+
return this.remember ? [localStorage, sessionStorage] : [sessionStorage, localStorage];
|
|
301
|
+
} catch {
|
|
302
|
+
return [];
|
|
303
|
+
}
|
|
283
304
|
}
|
|
284
305
|
clear() {
|
|
285
306
|
let e = this.hasSession();
|
|
286
|
-
this.access = null;
|
|
287
|
-
try {
|
|
288
|
-
localStorage.removeItem(this.storageKey);
|
|
289
|
-
} catch {}
|
|
290
|
-
e && this.emit(!1);
|
|
307
|
+
this.access = null, this.write(null), e && this.emit(!1);
|
|
291
308
|
}
|
|
292
309
|
readRefresh() {
|
|
293
|
-
try {
|
|
294
|
-
let
|
|
295
|
-
|
|
296
|
-
} catch {
|
|
297
|
-
|
|
298
|
-
}
|
|
310
|
+
for (let e of this.stores()) try {
|
|
311
|
+
let t = JSON.parse(e.getItem(this.storageKey) ?? "null")?.refresh_token;
|
|
312
|
+
if (typeof t == "string") return t;
|
|
313
|
+
} catch {}
|
|
314
|
+
return null;
|
|
299
315
|
}
|
|
300
316
|
emit(e) {
|
|
301
317
|
for (let t of [...this.listeners]) t(e);
|
|
@@ -346,11 +362,11 @@ function v(e) {
|
|
|
346
362
|
}
|
|
347
363
|
//#endregion
|
|
348
364
|
//#region src/core/client.ts
|
|
349
|
-
var y = "1.0.0
|
|
365
|
+
var y = "1.0.0", b = "https://commentkit.dev", x = class {
|
|
350
366
|
constructor(e) {
|
|
351
|
-
r(this, "options", void 0), r(this, "auth", void 0), r(this, "api", void 0), r(this, "state", void 0), r(this, "listeners", /* @__PURE__ */ new Map()), r(this, "realtime", null), this.options = e;
|
|
352
|
-
let t = (e.endpoint ??
|
|
353
|
-
this.auth = new _(t, e.project), this.api = new o(t, this.auth, y), this.state = v({
|
|
367
|
+
r(this, "options", void 0), r(this, "auth", void 0), r(this, "api", void 0), r(this, "state", void 0), r(this, "listeners", /* @__PURE__ */ new Map()), r(this, "realtime", null), r(this, "endpoint", void 0), r(this, "configRead", !1), r(this, "reportNonce", void 0), this.options = e;
|
|
368
|
+
let t = (e.endpoint ?? b).replace(/\/+$/, "");
|
|
369
|
+
this.endpoint = t, this.auth = new _(t, e.project), this.api = new o(t, this.auth, y), this.state = v({
|
|
354
370
|
config: null,
|
|
355
371
|
session: null,
|
|
356
372
|
threads: [],
|
|
@@ -358,7 +374,9 @@ var y = "1.0.0-beta.0", b = class {
|
|
|
358
374
|
allBranches: !1,
|
|
359
375
|
unread: 0,
|
|
360
376
|
online: typeof navigator > "u" || navigator.onLine,
|
|
361
|
-
error: null
|
|
377
|
+
error: null,
|
|
378
|
+
here: 0,
|
|
379
|
+
opening: null
|
|
362
380
|
}), this.auth.onChange((e) => {
|
|
363
381
|
e || this.state.set({
|
|
364
382
|
session: null,
|
|
@@ -367,6 +385,9 @@ var y = "1.0.0-beta.0", b = class {
|
|
|
367
385
|
});
|
|
368
386
|
});
|
|
369
387
|
}
|
|
388
|
+
reportCrash(e, t = "crash") {
|
|
389
|
+
import("./report-DoDVi1qT.js").then((n) => n.reportCrash(this.endpoint, this.options.project, y, e, t, this.reportNonce)).catch(() => void 0);
|
|
390
|
+
}
|
|
370
391
|
on(e, t) {
|
|
371
392
|
let n = this.listeners.get(e) ?? /* @__PURE__ */ new Set();
|
|
372
393
|
return n.add(t), this.listeners.set(e, n), () => n.delete(t);
|
|
@@ -375,11 +396,14 @@ var y = "1.0.0-beta.0", b = class {
|
|
|
375
396
|
for (let n of this.listeners.get(e) ?? []) n(t);
|
|
376
397
|
}
|
|
377
398
|
async loadConfig() {
|
|
378
|
-
let e = await this.api.request("/widget/config", {
|
|
399
|
+
let e = this.configRead ? void 0 : { "X-CommentKit-Load": "1" }, t = await this.api.request("/widget/config", {
|
|
379
400
|
anonymous: !0,
|
|
380
|
-
query: { key: this.options.project }
|
|
401
|
+
query: { key: this.options.project },
|
|
402
|
+
headers: e
|
|
381
403
|
});
|
|
382
|
-
|
|
404
|
+
this.configRead = !0, t.reporting?.nonce && (this.reportNonce = t.reporting.nonce), delete t.reporting, this.auth.configure(t.auth);
|
|
405
|
+
let n = this.state.get().config;
|
|
406
|
+
return n && JSON.stringify(n) === JSON.stringify(t) ? n : (this.state.set({ config: t }), t);
|
|
383
407
|
}
|
|
384
408
|
async loadSession() {
|
|
385
409
|
if (!this.auth.hasSession()) return this.state.set({ session: null }), null;
|
|
@@ -404,7 +428,7 @@ var y = "1.0.0-beta.0", b = class {
|
|
|
404
428
|
threads: []
|
|
405
429
|
}), this.emit("session:change", { session: null });
|
|
406
430
|
}
|
|
407
|
-
async loadPageThreads(e =
|
|
431
|
+
async loadPageThreads(e = S()) {
|
|
408
432
|
this.state.set({ loadingThreads: !0 });
|
|
409
433
|
try {
|
|
410
434
|
let t = await this.api.request("/threads", { query: {
|
|
@@ -440,9 +464,10 @@ var y = "1.0.0-beta.0", b = class {
|
|
|
440
464
|
let { data: t } = await this.api.request("/threads", {
|
|
441
465
|
method: "POST",
|
|
442
466
|
idempotent: !0,
|
|
467
|
+
idempotencyKey: e.idempotencyKey,
|
|
443
468
|
body: {
|
|
444
469
|
page: {
|
|
445
|
-
url:
|
|
470
|
+
url: S(),
|
|
446
471
|
title: document.title.slice(0, 500) || null,
|
|
447
472
|
branch: this.options.branch ?? null,
|
|
448
473
|
commit_sha: this.options.commit ?? null,
|
|
@@ -478,6 +503,7 @@ var y = "1.0.0-beta.0", b = class {
|
|
|
478
503
|
let { data: r } = await this.api.request(`/threads/${encodeURIComponent(e)}/messages`, {
|
|
479
504
|
method: "POST",
|
|
480
505
|
idempotent: !0,
|
|
506
|
+
idempotencyKey: n.idempotencyKey,
|
|
481
507
|
body: {
|
|
482
508
|
body: t,
|
|
483
509
|
reply_to_id: n.replyTo ?? null,
|
|
@@ -505,6 +531,9 @@ var y = "1.0.0-beta.0", b = class {
|
|
|
505
531
|
watch(e, t) {
|
|
506
532
|
return this.api.request(`/threads/${encodeURIComponent(e)}/watch`, { method: t ? "PUT" : "DELETE" });
|
|
507
533
|
}
|
|
534
|
+
labels() {
|
|
535
|
+
return this.api.request("/labels").then((e) => e.data);
|
|
536
|
+
}
|
|
508
537
|
people() {
|
|
509
538
|
return this.api.request("/people").then((e) => e.data);
|
|
510
539
|
}
|
|
@@ -544,7 +573,7 @@ var y = "1.0.0-beta.0", b = class {
|
|
|
544
573
|
async connectRealtime(e) {
|
|
545
574
|
let t = this.state.get().config, n = this.state.get().session;
|
|
546
575
|
if (!t?.features.realtime || !t.realtime || !n || this.realtime) return;
|
|
547
|
-
let { connect: r } = await import("./realtime-
|
|
576
|
+
let { connect: r } = await import("./realtime-CBRW9BB3.js");
|
|
548
577
|
this.realtime = await r({
|
|
549
578
|
...t.realtime,
|
|
550
579
|
projectId: n.project.id,
|
|
@@ -557,7 +586,8 @@ var y = "1.0.0-beta.0", b = class {
|
|
|
557
586
|
}
|
|
558
587
|
}),
|
|
559
588
|
onFeedback: e,
|
|
560
|
-
onInbox: (e) => this.state.set({ unread: e })
|
|
589
|
+
onInbox: (e) => this.state.set({ unread: e }),
|
|
590
|
+
onPresence: (e) => this.state.set({ here: e })
|
|
561
591
|
});
|
|
562
592
|
}
|
|
563
593
|
async refreshThread(e) {
|
|
@@ -569,7 +599,7 @@ var y = "1.0.0-beta.0", b = class {
|
|
|
569
599
|
}
|
|
570
600
|
upsert(e) {
|
|
571
601
|
this.state.set((t) => {
|
|
572
|
-
let n = e.page.url ===
|
|
602
|
+
let n = e.page.url === S() && !["resolved", "closed"].includes(e.status), r = t.threads.filter((t) => t.id !== e.id);
|
|
573
603
|
return { threads: n ? [e, ...r] : r };
|
|
574
604
|
});
|
|
575
605
|
}
|
|
@@ -577,7 +607,7 @@ var y = "1.0.0-beta.0", b = class {
|
|
|
577
607
|
this.realtime?.disconnect(), this.realtime = null, this.listeners.clear();
|
|
578
608
|
}
|
|
579
609
|
};
|
|
580
|
-
function
|
|
610
|
+
function S() {
|
|
581
611
|
let e = new URL(location.href);
|
|
582
612
|
for (let t of [
|
|
583
613
|
"ck_thread",
|
|
@@ -587,4 +617,4 @@ function x() {
|
|
|
587
617
|
return e.hash && !e.hash.startsWith("#/") && !e.hash.startsWith("#!/") && (e.hash = ""), e.toString();
|
|
588
618
|
}
|
|
589
619
|
//#endregion
|
|
590
|
-
export {
|
|
620
|
+
export { f as a, i as c, _ as i, r as l, y as n, d as o, S as r, o as s, x as t };
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
//#region src/ui/locales/de.ts
|
|
2
|
+
var e = {
|
|
3
|
+
comment: "Kommentieren",
|
|
4
|
+
commentHint: "Klicken Sie auf eine beliebige Stelle der Seite, um sie zu kommentieren",
|
|
5
|
+
inbox: "Posteingang",
|
|
6
|
+
close: "Schließen",
|
|
7
|
+
cancel: "Abbrechen",
|
|
8
|
+
send: "Senden",
|
|
9
|
+
sending: "Wird gesendet…",
|
|
10
|
+
reply: "Antworten",
|
|
11
|
+
replyPlaceholder: "Antwort schreiben…",
|
|
12
|
+
composerPlaceholder: "Was soll hier anders werden? Gerne so genau wie möglich.",
|
|
13
|
+
modeBar: "Zum Kommentieren etwas anklicken · Ziehen, um einen Bereich zu markieren · Erst Text markieren, um ihn zu zitieren · Esc zum Beenden",
|
|
14
|
+
modeBarTouch: "Zum Kommentieren etwas antippen · Wie gewohnt scrollen · Text vorher markieren, um ihn zu zitieren",
|
|
15
|
+
commentOnPage: "Die ganze Seite kommentieren",
|
|
16
|
+
commentFocused: "Den ausgewählten Teil kommentieren",
|
|
17
|
+
attach: "Datei anhängen",
|
|
18
|
+
screenshot: "Screenshot",
|
|
19
|
+
screenshotIncluded: "Ein Screenshot Ihrer Ansicht wird automatisch mitgeschickt.",
|
|
20
|
+
screenshotRemove: "Ohne Screenshot",
|
|
21
|
+
screenshotAdd: "Screenshot mitschicken",
|
|
22
|
+
markup: "Auf dem Screenshot zeichnen",
|
|
23
|
+
markupDone: "Fertig",
|
|
24
|
+
tool_arrow: "Pfeil",
|
|
25
|
+
tool_rect: "Rechteck",
|
|
26
|
+
tool_pen: "Stift",
|
|
27
|
+
tool_blur: "Weichzeichnen",
|
|
28
|
+
tool_text: "Text",
|
|
29
|
+
markupTextPrompt: "Was soll in der Notiz stehen?",
|
|
30
|
+
undo: "Rückgängig",
|
|
31
|
+
color_red: "Rot",
|
|
32
|
+
color_orange: "Orange",
|
|
33
|
+
color_green: "Grün",
|
|
34
|
+
color_blue: "Blau",
|
|
35
|
+
color_black: "Schwarz",
|
|
36
|
+
capturing: "Screenshot wird erstellt…",
|
|
37
|
+
uploadFailed: "Die Datei konnte nicht angehängt werden. Sie können Ihren Kommentar trotzdem senden.",
|
|
38
|
+
signInToSend: "Ein letzter Schritt: Sagen Sie uns, wer Sie sind",
|
|
39
|
+
signInExplain: "Wir öffnen ein kleines Fenster, in dem Sie Ihre E-Mail-Adresse bestätigen. Das ist auf diesem Gerät nur einmal nötig.",
|
|
40
|
+
signIn: "Weiter",
|
|
41
|
+
signInMember: "Anmelden",
|
|
42
|
+
signOut: "Abmelden",
|
|
43
|
+
popupBlocked: "Ihr Browser hat das Anmeldefenster blockiert. Klicken Sie noch einmal auf den Button oder erlauben Sie Pop-ups für diese Website.",
|
|
44
|
+
signInCancelled: "Die Anmeldung wurde vorzeitig geschlossen. Ihr Kommentar ist noch da.",
|
|
45
|
+
sent: "Gesendet! Das Team wurde benachrichtigt.",
|
|
46
|
+
sentGuest: "Gesendet! Wir schreiben Ihnen eine E-Mail, sobald jemand antwortet.",
|
|
47
|
+
thisPage: "Diese Seite",
|
|
48
|
+
allPages: "Alle Seiten",
|
|
49
|
+
notifications: "Benachrichtigungen",
|
|
50
|
+
nothingHere: "Zu dieser Seite gibt es noch kein Feedback.",
|
|
51
|
+
nothingHereHint: "Klicken Sie auf Kommentieren und dann auf eine Stelle der Seite.",
|
|
52
|
+
nothingAnywhere: "Zu dieser Website gibt es noch kein Feedback.",
|
|
53
|
+
noMatch: "Kein Feedback passt zu Ihrer Suche oder Ihren Filtern.",
|
|
54
|
+
clearFilters: "Filter zurücksetzen",
|
|
55
|
+
allCaughtUp: "Sie sind auf dem neuesten Stand.",
|
|
56
|
+
search: "Feedback durchsuchen",
|
|
57
|
+
detached: "Diese Stelle ist auf der Seite nicht mehr zu finden. Die Seite hat sich seit dem Kommentar vielleicht geändert.",
|
|
58
|
+
moved: "Dieser Teil der Seite hat sich seit dem Kommentar geändert.",
|
|
59
|
+
status_open: "Offen",
|
|
60
|
+
status_in_progress: "In Arbeit",
|
|
61
|
+
status_in_review: "Bereit zur Prüfung",
|
|
62
|
+
status_resolved: "Erledigt",
|
|
63
|
+
status_closed: "Geschlossen",
|
|
64
|
+
resolve: "Erledigen",
|
|
65
|
+
resolveHint: "Als behoben markieren",
|
|
66
|
+
reopen: "Wieder öffnen",
|
|
67
|
+
markInProgress: "In Arbeit nehmen",
|
|
68
|
+
markInReview: "Bereit zur Prüfung",
|
|
69
|
+
closeThread: "Ohne Änderung schließen",
|
|
70
|
+
reviewAsk: "Das Team hält das für behoben. Passt es für Sie?",
|
|
71
|
+
looksGood: "Passt — erledigt",
|
|
72
|
+
notYet: "Noch nicht — antworten",
|
|
73
|
+
copyLink: "Link kopieren",
|
|
74
|
+
copied: "Kopiert",
|
|
75
|
+
copyForAgent: "Für KI-Agent kopieren",
|
|
76
|
+
copiedForAgent: "Kopiert. Fügen Sie es in Ihren KI-Coding-Agenten ein.",
|
|
77
|
+
delete: "Löschen",
|
|
78
|
+
deleteConfirm: "Dieses Feedback für alle löschen? Antworten und der Screenshot werden mitgelöscht.",
|
|
79
|
+
edit: "Bearbeiten",
|
|
80
|
+
edited: "bearbeitet",
|
|
81
|
+
save: "Speichern",
|
|
82
|
+
mute: "Benachrichtigungen aus",
|
|
83
|
+
unmute: "Benachrichtigungen ein",
|
|
84
|
+
unassigned: "Nicht zugewiesen",
|
|
85
|
+
readOnly: "Feedback ist gerade schreibgeschützt, weil das Abo Ihres Teams abgelaufen ist. Sie können weiterhin alles lesen.",
|
|
86
|
+
offline: "Sie sind offline. Ihr Entwurf bleibt erhalten, bis Sie wieder online sind.",
|
|
87
|
+
offlineSend: "Sie sind offline. Ihr Kommentar ist hier gespeichert; senden Sie ihn, sobald Sie wieder online sind.",
|
|
88
|
+
errorGeneric: "Etwas ist schiefgelaufen. Bitte versuchen Sie es noch einmal.",
|
|
89
|
+
loadFailed: "Das Feedback konnte nicht geladen werden. Prüfen Sie Ihre Verbindung und versuchen Sie es erneut.",
|
|
90
|
+
sendFailed: "Ihr Kommentar wurde noch nicht gesendet. Er ist noch da, Sie können es also erneut versuchen.",
|
|
91
|
+
retry: "Erneut versuchen",
|
|
92
|
+
loadingThread: "Unterhaltung wird geladen…",
|
|
93
|
+
readOnlyReply: "Sie können diese Unterhaltung lesen, aber Antworten sind gerade ausgeschaltet.",
|
|
94
|
+
noReplyAccess: "Sie können dieses Feedback lesen, aber nicht darauf antworten.",
|
|
95
|
+
notOnPage: "Nicht auf dieser Seite",
|
|
96
|
+
more: "Mehr",
|
|
97
|
+
allStatuses: "Alle",
|
|
98
|
+
markAllRead: "Alle als gelesen markieren",
|
|
99
|
+
messageCount: "{n} Nachrichten",
|
|
100
|
+
messageCount_one: "{n} Nachricht",
|
|
101
|
+
kind_mention: "{actor} hat Sie erwähnt",
|
|
102
|
+
kind_reply: "{actor} hat geantwortet",
|
|
103
|
+
kind_assigned: "{actor} hat es Ihnen zugewiesen",
|
|
104
|
+
kind_ready_for_review: "{actor} bittet Sie, eine Korrektur zu prüfen",
|
|
105
|
+
kind_reopened: "{actor} hat es wieder geöffnet",
|
|
106
|
+
kind_resolved: "{actor} hat es erledigt",
|
|
107
|
+
kind_closed: "{actor} hat es geschlossen",
|
|
108
|
+
kind_new_feedback: "{actor} hat Feedback gegeben",
|
|
109
|
+
kind_due_soon: "{actor} erinnert Sie: bald fällig",
|
|
110
|
+
kind_overdue: "{actor} erinnert Sie: überfällig",
|
|
111
|
+
kind_agent_request: "{actor} bittet um Ihre Freigabe",
|
|
112
|
+
personName: "{name}",
|
|
113
|
+
branchFilter: "Welche Version der Website angezeigt wird",
|
|
114
|
+
thisBranch: "Diese Version ({branch})",
|
|
115
|
+
allBranches: "Alle Versionen",
|
|
116
|
+
onBranch: "in Version {branch}",
|
|
117
|
+
leftOnBranch: "Hinterlassen in Version {branch}{commit}",
|
|
118
|
+
welcomeTitle: "Feedback zu {project} geben",
|
|
119
|
+
welcomeBody: "Klicken Sie auf Kommentieren und dann auf die Stelle, die sich ändern soll. Kein Konto nötig.",
|
|
120
|
+
gotIt: "Verstanden",
|
|
121
|
+
justNow: "gerade eben",
|
|
122
|
+
loadingEarlier: "Wird geladen…",
|
|
123
|
+
reactWith: "Mit {emoji} reagieren",
|
|
124
|
+
shortcutsTitle: "Tastenkürzel",
|
|
125
|
+
shortcutComment: "Etwas auf der Seite kommentieren",
|
|
126
|
+
shortcutNext: "Zum nächsten oder vorherigen Kommentar",
|
|
127
|
+
shortcutResolve: "Den offenen Kommentar erledigen",
|
|
128
|
+
shortcutClose: "Schließen oder zurück",
|
|
129
|
+
shortcutSend: "Das Geschriebene senden",
|
|
130
|
+
shortcutToggle: "CommentKit ein- oder ausblenden",
|
|
131
|
+
shortcutHelp: "Diese Liste anzeigen",
|
|
132
|
+
deleteReplyConfirm: "Diese Antwort für alle löschen?",
|
|
133
|
+
replyDeleted: "Antwort gelöscht",
|
|
134
|
+
peopleHere: "{n} Personen hier",
|
|
135
|
+
peopleHere_one: "{n} Person hier",
|
|
136
|
+
markupTextAdd: "Notiz hinzufügen",
|
|
137
|
+
includeDiagnostics: "Technische Details mitsenden, um dem Entwickler zu helfen",
|
|
138
|
+
filters: "Filter",
|
|
139
|
+
assignedToMe: "Mir zugewiesen",
|
|
140
|
+
assigneeFilter: "Zugewiesen an",
|
|
141
|
+
anyone: "Alle",
|
|
142
|
+
labelFilter: "Label",
|
|
143
|
+
anyLabel: "Alle Labels",
|
|
144
|
+
fileNotAllowed: "{name} kann nicht angehängt werden. Erlaubt sind Bilder, PDFs, Text, Videos und Office-Dateien.",
|
|
145
|
+
fileTooBig: "{name} ist zu groß zum Anhängen. Die Grenze liegt bei {size}.",
|
|
146
|
+
tooManyFiles: "Sie können bis zu {n} Dateien anhängen.",
|
|
147
|
+
tooManyFiles_one: "Sie können bis zu {n} Datei anhängen.",
|
|
148
|
+
removeFile: "{name} entfernen",
|
|
149
|
+
threadNotFound: "Dieses Feedback wurde gelöscht, oder Sie haben keinen Zugriff mehr darauf.",
|
|
150
|
+
readOnlyShort: "Schreibgeschützt: Sie können Feedback lesen, aber gerade nichts hinzufügen.",
|
|
151
|
+
guestExplain: "Wir senden Ihnen einen 6-stelligen Code per E-Mail. Ihr Kommentar erscheint, sobald Sie den Code eingeben.",
|
|
152
|
+
guestName: "Ihr Name",
|
|
153
|
+
guestEmail: "Ihre E-Mail-Adresse",
|
|
154
|
+
shareExpired: "Dieser Kundenlink ist abgelaufen. Bitten Sie das Team um einen neuen.",
|
|
155
|
+
verifyTitle: "Schauen Sie in Ihr Postfach",
|
|
156
|
+
verifyBody: "Geben Sie den 6-stelligen Code ein, um Ihren Kommentar zu veröffentlichen. Wir haben ihn an {email} gesendet.",
|
|
157
|
+
verifyCode: "6-stelliger Code",
|
|
158
|
+
verifyPublish: "Kommentar veröffentlichen",
|
|
159
|
+
verifyResend: "Neuen Code senden",
|
|
160
|
+
verifyResent: "Wir haben einen neuen Code gesendet. Es kann eine Minute dauern.",
|
|
161
|
+
verifyWait: "Bitte warten Sie eine Minute, bevor Sie einen neuen Code anfordern.",
|
|
162
|
+
verifyWrong: "Dieser Code stimmt nicht. Prüfen Sie die E-Mail oder fordern Sie einen neuen Code an.",
|
|
163
|
+
verifyDifferent: "Andere E-Mail-Adresse verwenden",
|
|
164
|
+
verifyExpired: "Dieser Code gilt nicht mehr. Ihr Kommentar ist weiterhin auf diesem Gerät gespeichert.",
|
|
165
|
+
welcomeBodyTouch: "Tippen Sie auf Kommentieren und dann auf die Stelle, die sich ändern soll. Kein Konto nötig.",
|
|
166
|
+
screen_phone: "Auf einem Bildschirm in Smartphone-Größe hinterlassen",
|
|
167
|
+
screen_tablet: "Auf einem Bildschirm in Tablet-Größe hinterlassen",
|
|
168
|
+
screen_wide: "Auf einem breiteren Bildschirm hinterlassen",
|
|
169
|
+
size_phone: "Smartphone",
|
|
170
|
+
size_tablet: "Tablet",
|
|
171
|
+
size_wide: "Breiter Bildschirm",
|
|
172
|
+
notYetPlaceholder: "Was muss sich noch ändern?",
|
|
173
|
+
muted: "Sie erhalten keine E-Mails mehr zu {ref}.",
|
|
174
|
+
followed: "Sie erhalten wieder E-Mails zu {ref}.",
|
|
175
|
+
readOnlyGuest: "Neues Feedback ist auf dieser Website gerade pausiert. Sie können weiterhin alles lesen.",
|
|
176
|
+
paused: "Feedback ist auf dieser Website gerade pausiert. Bitte schauen Sie später wieder vorbei.",
|
|
177
|
+
savedHere: "Ihr Kommentar ist auf diesem Gerät gespeichert.",
|
|
178
|
+
saving: "Wird gespeichert…",
|
|
179
|
+
statusFilter: "Status",
|
|
180
|
+
resolvedToast: "{ref} erledigt.",
|
|
181
|
+
guestIntro: "Ihr Name und Ihre E-Mail-Adresse, damit das Team antworten kann. Kein Konto nötig.",
|
|
182
|
+
guestNameMissing: "Geben Sie Ihren Namen ein, damit das Team weiß, von wem das ist.",
|
|
183
|
+
guestEmailInvalid: "Prüfen Sie Ihre E-Mail-Adresse, zum Beispiel name@firma.de.",
|
|
184
|
+
verifyLinkExpired: "Dieser Kundenlink ist abgelaufen. Bitten Sie die Person, die ihn geschickt hat, um einen neuen. Ihr Kommentar ist auf diesem Gerät gespeichert.",
|
|
185
|
+
verifyRemoved: "Das Team hat Ihren Zugriff auf diese Website entfernt. Bitten Sie es, Sie wieder hinzuzufügen.",
|
|
186
|
+
writeAgain: "Neu schreiben",
|
|
187
|
+
pendingNote: "Ihr Kommentar wartet auf den Code, den wir an {email} geschickt haben.",
|
|
188
|
+
enterCode: "Code eingeben",
|
|
189
|
+
feedbackRef: "Feedback {ref}",
|
|
190
|
+
networkError: "CommentKit ist nicht erreichbar. Prüfen Sie Ihre Verbindung: Ihr Text ist hier gespeichert, Sie können es erneut versuchen.",
|
|
191
|
+
noAccess: "Sie haben keinen Zugriff auf das Feedback auf dieser Website. Bitten Sie das Team, Sie erneut einzuladen.",
|
|
192
|
+
originNotAllowed: "Von dieser Webadresse kann noch kein Feedback gesendet werden. Bitten Sie das Team, sie zum Projekt hinzuzufügen.",
|
|
193
|
+
forbidden: "Dazu haben Sie keine Berechtigung.",
|
|
194
|
+
tooFast: "Das war zu viel auf einmal. Bitte warten Sie einen Moment und versuchen Sie es dann erneut.",
|
|
195
|
+
sentWithoutScreenshot: "Gesendet, aber ohne Screenshot: Er konnte nicht hochgeladen werden.",
|
|
196
|
+
sentWithoutFiles: "Gesendet, aber einige Dateien konnten nicht angehängt werden. Sie können sie in einer Antwort hinzufügen.",
|
|
197
|
+
replyFailed: "Ihre Antwort wurde noch nicht gesendet. Sie ist noch hier, Sie können es erneut versuchen.",
|
|
198
|
+
taskDetails: "Aufgabendetails",
|
|
199
|
+
priority: "Priorität",
|
|
200
|
+
priority_none: "Keine Priorität",
|
|
201
|
+
priority_low: "Niedrig",
|
|
202
|
+
priority_medium: "Mittel",
|
|
203
|
+
priority_high: "Hoch",
|
|
204
|
+
priority_urgent: "Dringend",
|
|
205
|
+
dueDate: "Fällig am",
|
|
206
|
+
dueOn: "Fällig am {date}",
|
|
207
|
+
labels: "Labels",
|
|
208
|
+
noLabels: "Keine Labels"
|
|
209
|
+
};
|
|
210
|
+
//#endregion
|
|
211
|
+
export { e as default };
|