From bea56159ec6277aa6290c85a6bf99e137741dc5b Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 17:30:41 -0800 Subject: [PATCH 01/41] chore(deps-dev): bump eslint-import-resolver-typescript from 3.6.3 to 3.7.0 (#8096) Bumps [eslint-import-resolver-typescript](https://github.com/import-js/eslint-import-resolver-typescript) from 3.6.3 to 3.7.0. - [Release notes](https://github.com/import-js/eslint-import-resolver-typescript/releases) - [Changelog](https://github.com/import-js/eslint-import-resolver-typescript/blob/master/CHANGELOG.md) - [Commits](https://github.com/import-js/eslint-import-resolver-typescript/compare/v3.6.3...v3.7.0) --- updated-dependencies: - dependency-name: eslint-import-resolver-typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 21 +++++++++++++-------- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index fa5b42c5f3..c6f4c83896 100644 --- a/package.json +++ b/package.json @@ -333,7 +333,7 @@ "discord-api-types": "^0.37.102", "eslint": "^8.57.0", "eslint-config-prettier": "^8.10.0", - "eslint-import-resolver-typescript": "^3.6.3", + "eslint-import-resolver-typescript": "^3.7.0", "eslint-plugin-es": "^4.1.0", "eslint-plugin-import": "^2.29.1", "eslint-plugin-jsx-a11y": "^6.10.2", diff --git a/yarn.lock b/yarn.lock index 2201a8d5d2..ed58a95aac 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7549,7 +7549,7 @@ de-indent@^1.0.2: resolved "https://registry.yarnpkg.com/de-indent/-/de-indent-1.0.2.tgz#b2038e846dc33baa5796128d0804b455b8c1e21d" integrity "sha1-sgOOhG3DO6pXlhKNCAS0VbjB4h0= sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==" -debug@4, debug@4.3.4, debug@4.3.7, debug@^2.2.0, debug@^2.6.8, debug@^3.1.0, debug@^3.2.7, debug@^4, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4, debug@^4.3.5, debug@^4.3.6, debug@~4.3.1, debug@~4.3.2: +debug@4, debug@4.3.4, debug@4.3.7, debug@^2.2.0, debug@^2.6.8, debug@^3.1.0, debug@^3.2.7, debug@^4, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4, debug@^4.3.6, debug@^4.3.7, debug@~4.3.1, debug@~4.3.2: version "4.3.4" resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" integrity "sha1-Exn2V5NX8jONMzfSzdSRS7XcyGU= sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==" @@ -8310,21 +8310,21 @@ eslint-import-resolver-node@^0.3.9: is-core-module "^2.13.0" resolve "^1.22.4" -eslint-import-resolver-typescript@^3.6.3: - version "3.6.3" - resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.6.3.tgz#bb8e388f6afc0f940ce5d2c5fd4a3d147f038d9e" - integrity sha512-ud9aw4szY9cCT1EWWdGv1L1XR6hh2PaRWif0j2QjQ0pgTY/69iw+W0Z4qZv5wHahOl8isEr+k/JnyAqNQkLkIA== +eslint-import-resolver-typescript@^3.7.0: + version "3.7.0" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-typescript/-/eslint-import-resolver-typescript-3.7.0.tgz#e69925936a771a9cb2de418ccebc4cdf6c0818aa" + integrity sha512-Vrwyi8HHxY97K5ebydMtffsWAn1SCR9eol49eCd5fJS4O1WV7PaAjbcjmbfJJSMz/t4Mal212Uz/fQZrOB8mow== dependencies: "@nolyfill/is-core-module" "1.0.39" - debug "^4.3.5" + debug "^4.3.7" enhanced-resolve "^5.15.0" - eslint-module-utils "^2.8.1" fast-glob "^3.3.2" get-tsconfig "^4.7.5" is-bun-module "^1.0.2" is-glob "^4.0.3" + stable-hash "^0.0.4" -eslint-module-utils@^2.8.0, eslint-module-utils@^2.8.1: +eslint-module-utils@^2.8.0: version "2.8.2" resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.8.2.tgz#2ecad69d71e1fa81f17f7f24d5d3e46b168de663" integrity sha512-3XnC5fDyc8M4J2E8pt8pmSVRX2M+5yWMCfI/kDZwauQeFgzQOuhcRBFKjTeJagqgk4sFKxe1mvNVnaWwImx/Tg== @@ -14297,6 +14297,11 @@ sprintf-js@~1.0.2: resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" integrity "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw= sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==" +stable-hash@^0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/stable-hash/-/stable-hash-0.0.4.tgz#55ae7dadc13e4b3faed13601587cec41859b42f7" + integrity sha512-LjdcbuBeLcdETCrPn9i8AYAZ1eCtu4ECAWtP7UleOiZ9LzVxRzzUZEoZ8zB24nhkQnDWyET0I+3sWokSDS3E7g== + stack-trace@0.0.x: version "0.0.10" resolved "https://registry.yarnpkg.com/stack-trace/-/stack-trace-0.0.10.tgz#547c70b347e8d32b4e108ea1a2a159e5fdde19c0" From 569a7876ae259755d7f8cbbb0b67b0f44152ec17 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 17:31:03 -0800 Subject: [PATCH 02/41] chore(deps): bump utility-types from 3.10.0 to 3.11.0 (#8093) Bumps [utility-types](https://github.com/piotrwitek/utility-types) from 3.10.0 to 3.11.0. - [Release notes](https://github.com/piotrwitek/utility-types/releases) - [Commits](https://github.com/piotrwitek/utility-types/compare/v3.10.0...v3.11.0) --- updated-dependencies: - dependency-name: utility-types dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index c6f4c83896..d0447763fd 100644 --- a/package.json +++ b/package.json @@ -237,7 +237,7 @@ "tmp": "^0.2.3", "turndown": "^7.2.0", "umzug": "^3.8.1", - "utility-types": "^3.10.0", + "utility-types": "^3.11.0", "uuid": "^8.3.2", "validator": "13.12.0", "vite": "^5.4.11", diff --git a/yarn.lock b/yarn.lock index ed58a95aac..98cb3c7e82 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15287,10 +15287,10 @@ util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1: resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" integrity "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8= sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" -utility-types@^3.10.0: - version "3.10.0" - resolved "https://registry.yarnpkg.com/utility-types/-/utility-types-3.10.0.tgz#ea4148f9a741015f05ed74fd615e1d20e6bed82b" - integrity "sha1-6kFI+adBAV8F7XT9YV4dIOa+2Cs= sha512-O11mqxmi7wMKCo6HKFt5AhO4BwY3VV68YU07tgxfz8zJTIxr4BpsezN49Ffwy9j3ZpwwJp4fkRwjRzq3uWE6Rg==" +utility-types@^3.11.0: + version "3.11.0" + resolved "https://registry.yarnpkg.com/utility-types/-/utility-types-3.11.0.tgz#607c40edb4f258915e901ea7995607fdf319424c" + integrity sha512-6Z7Ma2aVEWisaL6TvBCy7P8rm2LQoPv6dJ7ecIaIixHcwfbJ0x7mWdbcwlIM5IGQxPZSFYeqRCqlOOeKoJYMkw== utils-merge@1.x.x, utils-merge@^1.0.1: version "1.0.1" From 6fddb29ff69628c086e9d01c1abcfbd6b53e28d7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 17:37:36 -0800 Subject: [PATCH 03/41] chore(deps): bump nanoid from 3.3.7 to 3.3.8 (#8098) Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.7 to 3.3.8. - [Release notes](https://github.com/ai/nanoid/releases) - [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md) - [Commits](https://github.com/ai/nanoid/compare/3.3.7...3.3.8) --- updated-dependencies: - dependency-name: nanoid dependency-type: indirect ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- yarn.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yarn.lock b/yarn.lock index 98cb3c7e82..4bea794b7f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11872,9 +11872,9 @@ mz@^2.4.0: thenify-all "^1.0.0" nanoid@^3.3.7: - version "3.3.7" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.7.tgz#d0c301a691bc8d54efa0a2226ccf3fe2fd656bd8" - integrity "sha1-0MMBppG8jVTvoKIibM8/4v1la9g= sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g==" + version "3.3.8" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.8.tgz#b1be3030bee36aaff18bacb375e5cce521684baf" + integrity sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w== natural-compare@^1.4.0: version "1.4.0" From e3b0f7db8689f78cee4a212da76ff90961b71883 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 9 Dec 2024 20:42:36 -0500 Subject: [PATCH 04/41] fix: Parsing of grist links with utm parameters, closes #8082 --- shared/editor/embeds/index.tsx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/shared/editor/embeds/index.tsx b/shared/editor/embeds/index.tsx index 1ca025e8b2..8cc01ce1a8 100644 --- a/shared/editor/embeds/index.tsx +++ b/shared/editor/embeds/index.tsx @@ -404,11 +404,20 @@ const embeds: EmbedDescriptor[] = [ transformMatch: (matches: RegExpMatchArray) => { const input = matches.input ?? matches[0]; - if (input.includes("style=singlePage")) { - return input; + try { + const url = new URL(input); + const params = new URLSearchParams(url.search); + if (params.has("embed") || params.get("style") === "singlePage") { + return input; + } + + params.append("embed", "true"); + return `${url.origin}${url.pathname}?${params.toString()}`; + } catch (e) { + // } - return input.replace(/(\?embed=true)?$/, "?embed=true"); + return input; }, icon: Grist, }), From 40b1e3c8c6fec294fc9ab5de54e66f89eaeab897 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 17:43:04 -0800 Subject: [PATCH 05/41] chore(deps): bump prosemirror-model from 1.23.0 to 1.24.0 (#8092) * chore(deps): bump prosemirror-model from 1.23.0 to 1.24.0 Bumps [prosemirror-model](https://github.com/prosemirror/prosemirror-model) from 1.23.0 to 1.24.0. - [Changelog](https://github.com/ProseMirror/prosemirror-model/blob/master/CHANGELOG.md) - [Commits](https://github.com/prosemirror/prosemirror-model/compare/1.23.0...1.24.0) --- updated-dependencies: - dependency-name: prosemirror-model dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * tsc * tsc --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tom Moor --- package.json | 2 +- server/models/helpers/ProsemirrorHelper.tsx | 4 +--- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index d0447763fd..8b6270b1c2 100644 --- a/package.json +++ b/package.json @@ -179,7 +179,7 @@ "prosemirror-inputrules": "^1.4.0", "prosemirror-keymap": "^1.2.2", "prosemirror-markdown": "^1.13.1", - "prosemirror-model": "^1.23.0", + "prosemirror-model": "^1.24.0", "prosemirror-schema-list": "^1.4.1", "prosemirror-state": "^1.4.3", "prosemirror-tables": "^1.4.0", diff --git a/server/models/helpers/ProsemirrorHelper.tsx b/server/models/helpers/ProsemirrorHelper.tsx index a7b6dd1d9f..51d35d9df3 100644 --- a/server/models/helpers/ProsemirrorHelper.tsx +++ b/server/models/helpers/ProsemirrorHelper.tsx @@ -67,7 +67,6 @@ export class ProsemirrorHelper { // the server we need to mimic this behavior. function urlsToEmbeds(node: Node): Node { if (node.type.name === "paragraph") { - // @ts-expect-error content for (const textNode of node.content.content) { for (const embed of embeds) { if ( @@ -89,8 +88,7 @@ export class ProsemirrorHelper { if (node.content) { const contentAsArray = node.content instanceof Fragment - ? // @ts-expect-error content - node.content.content + ? node.content.content : node.content; // @ts-expect-error content node.content = Fragment.fromArray(contentAsArray.map(urlsToEmbeds)); diff --git a/yarn.lock b/yarn.lock index 4bea794b7f..baf06ae87e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12934,10 +12934,10 @@ prosemirror-markdown@^1.13.1: markdown-it "^14.0.0" prosemirror-model "^1.20.0" -prosemirror-model@^1.0.0, prosemirror-model@^1.20.0, prosemirror-model@^1.21.0, prosemirror-model@^1.23.0, prosemirror-model@^1.8.1: - version "1.23.0" - resolved "https://registry.yarnpkg.com/prosemirror-model/-/prosemirror-model-1.23.0.tgz#652058182ed90dc15c8f0f2cf2df488306fa1dcd" - integrity sha512-Q/fgsgl/dlOAW9ILu4OOhYWQbc7TQd4BwKH/RwmUjyVf8682Be4zj3rOYdLnYEcGzyg8LL9Q5IWYKD8tdToreQ== +prosemirror-model@^1.0.0, prosemirror-model@^1.20.0, prosemirror-model@^1.21.0, prosemirror-model@^1.24.0, prosemirror-model@^1.8.1: + version "1.24.0" + resolved "https://registry.yarnpkg.com/prosemirror-model/-/prosemirror-model-1.24.0.tgz#01fd4fdfd32b196d2a073066b25c232bcf946aa4" + integrity sha512-Ft7epNnycoQSM+2ObF35SBbBX+5WY39v8amVlrtlAcpglhlHs2tCTnWl7RX5tbp/PsMKcRcWV9cXPuoBWq0AIQ== dependencies: orderedmap "^2.0.0" From fa117870a21cce5ebcfb072bb8b462a96246ee29 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 9 Dec 2024 21:52:32 -0500 Subject: [PATCH 06/41] perf: One less query in documents.info --- server/routes/api/documents/documents.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/server/routes/api/documents/documents.ts b/server/routes/api/documents/documents.ts index 2e9b06f3d6..2c20b97fb2 100644 --- a/server/routes/api/documents/documents.ts +++ b/server/routes/api/documents/documents.ts @@ -573,12 +573,13 @@ router.post( teamId: teamFromCtx?.id, }); const isPublic = cannot(user, "read", document); - const serializedDocument = await presentDocument(ctx, document, { - isPublic, - shareId, - }); - - const team = await document.$get("team"); + const [serializedDocument, team] = await Promise.all([ + presentDocument(ctx, document, { + isPublic, + shareId, + }), + teamFromCtx?.id === document.teamId ? teamFromCtx : document.$get("team"), + ]); // Passing apiVersion=2 has a single effect, to change the response payload to // include top level keys for document, sharedTree, and team. From dd8f6a987c7b0ac563962cdc21d62d81b23687dd Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Mon, 9 Dec 2024 22:13:04 -0500 Subject: [PATCH 07/41] perf: Avoid iterating child documents in documents.info when direct descendant --- server/commands/documentLoader.ts | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/server/commands/documentLoader.ts b/server/commands/documentLoader.ts index 4262e54b06..24132ce9a0 100644 --- a/server/commands/documentLoader.ts +++ b/server/commands/documentLoader.ts @@ -171,15 +171,19 @@ export default async function loadDocument({ throw AuthorizationError(); } - const childDocumentIds = - (await share.document?.findAllChildDocumentIds({ - archivedAt: { - [Op.is]: null, - }, - })) ?? []; + // If the document is not a direct child of the shared document then we + // need to check if it is nested within the shared document somewhere. + if (document.parentDocumentId !== share.documentId) { + const childDocumentIds = + (await share.document?.findAllChildDocumentIds({ + archivedAt: { + [Op.is]: null, + }, + })) ?? []; - if (!childDocumentIds.includes(document.id)) { - throw AuthorizationError(); + if (!childDocumentIds.includes(document.id)) { + throw AuthorizationError(); + } } } From c063709f1c7a276f3c77542a395669a05e83f811 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 11 Dec 2024 20:39:02 -0500 Subject: [PATCH 08/41] Allow resizing final table column --- shared/editor/nodes/Table.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/shared/editor/nodes/Table.ts b/shared/editor/nodes/Table.ts index 399bfb1e69..94b463f9a8 100644 --- a/shared/editor/nodes/Table.ts +++ b/shared/editor/nodes/Table.ts @@ -112,7 +112,6 @@ export default class Table extends Node { // Note: Important to register columnResizing before tableEditing columnResizing({ View: TableView, - lastColumnResizable: false, }), tableEditing(), new FixTablesPlugin(), From 6dfe7d707ae6cb48addd7227bc18bb4985511322 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 11 Dec 2024 21:07:15 -0500 Subject: [PATCH 09/41] fix: Token type not supported by Markdown parser, closes #8101 --- shared/editor/lib/markdown/rules.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shared/editor/lib/markdown/rules.ts b/shared/editor/lib/markdown/rules.ts index d0259e409f..dd8948f320 100644 --- a/shared/editor/lib/markdown/rules.ts +++ b/shared/editor/lib/markdown/rules.ts @@ -32,6 +32,9 @@ export default function makeRules({ if (!schema?.nodes.hr) { markdownIt.disable("hr"); } + if (!schema?.nodes.heading) { + markdownIt.disable("heading"); + } plugins.forEach((plugin) => markdownIt.use(plugin)); return markdownIt; From df03a6da8c125ce99d6f88ae422a5ebd429958d7 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 12 Dec 2024 08:15:45 -0500 Subject: [PATCH 10/41] fix: Markdown escape characters left in titles on import (#8102) --- server/commands/documentImporter.ts | 6 +---- server/utils/turndown/index.ts | 33 ++---------------------- shared/utils/markdown.ts | 40 +++++++++++++++++++++++++++++ shared/utils/parseTitle.test.ts | 9 +++++++ shared/utils/parseTitle.ts | 3 ++- 5 files changed, 54 insertions(+), 37 deletions(-) create mode 100644 shared/utils/markdown.ts diff --git a/server/commands/documentImporter.ts b/server/commands/documentImporter.ts index 432d343968..d8d1d3138e 100644 --- a/server/commands/documentImporter.ts +++ b/server/commands/documentImporter.ts @@ -1,5 +1,4 @@ import emojiRegex from "emoji-regex"; -import escapeRegExp from "lodash/escapeRegExp"; import truncate from "lodash/truncate"; import parseTitle from "@shared/utils/parseTitle"; import { DocumentValidation } from "@shared/validations"; @@ -51,10 +50,7 @@ async function documentImporter({ if (text.trim().startsWith("# ")) { const result = parseTitle(text); title = result.title; - text = text - .trim() - .replace(new RegExp(`#\\s+${escapeRegExp(title)}`), "") - .trimStart(); + text = text.replace(/^.+(\n|$)/, ""); } // Replace any
generated by the turndown plugin with escaped newlines diff --git a/server/utils/turndown/index.ts b/server/utils/turndown/index.ts index a3ca5a8627..87362b6130 100644 --- a/server/utils/turndown/index.ts +++ b/server/utils/turndown/index.ts @@ -1,5 +1,6 @@ import { taskListItems, strikethrough } from "@joplin/turndown-plugin-gfm"; import TurndownService from "turndown"; +import { escape } from "@shared/utils/markdown"; import breaks from "./breaks"; import emptyLists from "./emptyLists"; import emptyParagraph from "./emptyParagraph"; @@ -41,36 +42,6 @@ const service = new TurndownService({ .use(breaks) .use(emptyLists); -const escapes: [RegExp, string][] = [ - [/\\/g, "\\\\"], - [/\*/g, "\\*"], - [/^-/g, "\\-"], - [/^\+ /g, "\\+ "], - [/^(=+)/g, "\\$1"], - [/^(#{1,6}) /g, "\\$1 "], - [/`/g, "\\`"], - [/^~~~/g, "\\~~~"], - [/\[/g, "\\["], - [/\]/g, "\\]"], - [/\(/g, "\\("], // OLN-91 - [/\)/g, "\\)"], // OLN-91 - [/^>/g, "\\>"], - [/_/g, "\\_"], - [/^(\d+)\. /g, "$1\\. "], - [/\$/g, "\\$"], -]; - -/** - * Overrides the Markdown escaping, as documented here: - * https://github.com/mixmark-io/turndown/blob/4499b5c313d30a3189a58fdd74fc4ed4b2428afd/README.md#overriding-turndownserviceprototypeescape - * - * @param text The string to escape - * @returns A string with Markdown syntax escaped - */ -service.escape = function (text) { - return escapes.reduce(function (accumulator, escape) { - return accumulator.replace(escape[0], escape[1]); - }, text); -}; +service.escape = escape; export default service; diff --git a/shared/utils/markdown.ts b/shared/utils/markdown.ts new file mode 100644 index 0000000000..9565fdfaa0 --- /dev/null +++ b/shared/utils/markdown.ts @@ -0,0 +1,40 @@ +const escapes: [RegExp, string][] = [ + [/\\/g, "\\\\"], + [/\*/g, "\\*"], + [/^-/g, "\\-"], + [/^\+ /g, "\\+ "], + [/^(=+)/g, "\\$1"], + [/^(#{1,6}) /g, "\\$1 "], + [/`/g, "\\`"], + [/^~~~/g, "\\~~~"], + [/\[/g, "\\["], + [/\]/g, "\\]"], + [/\(/g, "\\("], // OLN-91 + [/\)/g, "\\)"], // OLN-91 + [/^>/g, "\\>"], + [/_/g, "\\_"], + [/^(\d+)\. /g, "$1\\. "], + [/\$/g, "\\$"], +]; + +/** + * Escape markdown characters in a string + * + * @param text - The text to escape + * @returns The escaped text + */ +export const escape = function (text: string) { + return escapes.reduce(function (accumulator, esc) { + return accumulator.replace(esc[0], esc[1]); + }, text); +}; + +/** + * Unescape markdown characters in a string + * + * @param text - The text to unescape + * @returns The unescaped text + */ +export const unescape = function (text: string) { + return text.replace(/\\([\\*+-\d.])/g, "$1"); +}; diff --git a/shared/utils/parseTitle.test.ts b/shared/utils/parseTitle.test.ts index c0af2ba033..77dbfb41fb 100644 --- a/shared/utils/parseTitle.test.ts +++ b/shared/utils/parseTitle.test.ts @@ -3,14 +3,23 @@ import parseTitle from "./parseTitle"; it("should trim the title", () => { expect(parseTitle(`# Lots of space `).title).toBe("Lots of space"); }); + +it("should remove escaped characters", () => { + expect(parseTitle(`# 1\\. Title`).title).toBe("1. Title"); + expect(parseTitle(`# 12\\. Title`).title).toBe("12. Title"); + expect(parseTitle(`# 1\\.2 Title`).title).toBe("1.2 Title"); +}); + it("should extract first title", () => { expect(parseTitle(`# Title one\n# Title two`).title).toBe("Title one"); }); + it("should parse emoji if first character", () => { const parsed = parseTitle(`# 😀 Title`); expect(parsed.title).toBe("😀 Title"); expect(parsed.emoji).toBe("😀"); }); + it("should not parse emoji if not first character", () => { const parsed = parseTitle(`# Title 🌈`); expect(parsed.title).toBe("Title 🌈"); diff --git a/shared/utils/parseTitle.ts b/shared/utils/parseTitle.ts index 23ecb556b6..759345bb13 100644 --- a/shared/utils/parseTitle.ts +++ b/shared/utils/parseTitle.ts @@ -1,11 +1,12 @@ import emojiRegex from "emoji-regex"; +import { unescape } from "./markdown"; export default function parseTitle(text = "") { const regex = emojiRegex(); // find and extract title const firstLine = text.trim().split(/\r?\n/)[0]; - const title = firstLine.replace(/^#/, "").trim(); + const title = unescape(firstLine.replace(/^#/, "").trim()); // find and extract first emoji const matches = regex.exec(title); From a458690bfcf854ddab8b1131fc3d20366a966cb3 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 12 Dec 2024 11:39:19 -0500 Subject: [PATCH 11/41] fix: Non-unique key parameter, closes #8104 --- app/components/Tooltip.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/Tooltip.tsx b/app/components/Tooltip.tsx index c155ed58e0..caa7e058fa 100644 --- a/app/components/Tooltip.tsx +++ b/app/components/Tooltip.tsx @@ -47,8 +47,8 @@ function Tooltip({ {typeof shortcut === "string" ? ( shortcut .split("+") - .map((key) => ( - + .map((key, i) => ( + {key.length === 1 ? key.toUpperCase() : key} )) From e89c32424f7cada6920a93b705b930fa3645b8e5 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 15 Dec 2024 20:37:20 -0500 Subject: [PATCH 12/41] fix: Subscribe to document automatically on share (#8108) --- .../processors/DocumentUserAddedProcessor.ts | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 server/queues/processors/DocumentUserAddedProcessor.ts diff --git a/server/queues/processors/DocumentUserAddedProcessor.ts b/server/queues/processors/DocumentUserAddedProcessor.ts new file mode 100644 index 0000000000..df5fe2d623 --- /dev/null +++ b/server/queues/processors/DocumentUserAddedProcessor.ts @@ -0,0 +1,27 @@ +import subscriptionCreator from "@server/commands/subscriptionCreator"; +import { User } from "@server/models"; +import { sequelize } from "@server/storage/database"; +import { DocumentUserEvent, Event } from "@server/types"; +import BaseProcessor from "./BaseProcessor"; + +export default class DocumentUserAddedProcessor extends BaseProcessor { + static applicableEvents: Event["name"][] = ["documents.add_user"]; + + async perform(event: DocumentUserEvent) { + const user = await User.findByPk(event.userId); + if (!user) { + return; + } + + await sequelize.transaction(async (transaction) => { + await subscriptionCreator({ + user, + documentId: event.documentId, + event: "documents.update", + resubscribe: false, + transaction, + ip: event.ip, + }); + }); + } +} From 8b15cc45b00a74a758c0d493811b1b124f4ae3dc Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Sun, 15 Dec 2024 23:53:06 -0500 Subject: [PATCH 13/41] fix: Permissions checks on notification emails do not take into account shares (#8109) * fix: Comment notifications not sent on drafts outside collection, shared docs * fix: DocumentPublishedOrUpdatedEmail not sent for drafts * tsc --- server/emails/templates/CommentCreatedEmail.tsx | 14 +++++--------- .../DocumentPublishedOrUpdatedEmail.tsx | 14 +++++++------- server/models/helpers/NotificationHelper.ts | 16 +++++++++------- 3 files changed, 21 insertions(+), 23 deletions(-) diff --git a/server/emails/templates/CommentCreatedEmail.tsx b/server/emails/templates/CommentCreatedEmail.tsx index cc90937d53..3396caa272 100644 --- a/server/emails/templates/CommentCreatedEmail.tsx +++ b/server/emails/templates/CommentCreatedEmail.tsx @@ -24,7 +24,7 @@ type InputProps = EmailProps & { type BeforeSend = { document: Document; - collection: Collection; + collection: Collection | null; body: string | undefined; isFirstComment: boolean; isReply: boolean; @@ -52,14 +52,10 @@ export default class CommentCreatedEmail extends BaseEmail< return false; } - const collection = await document.$get("collection"); - if (!collection) { - return false; - } - - const [comment, team] = await Promise.all([ + const [comment, team, collection] = await Promise.all([ Comment.findByPk(commentId), document.$get("team"), + document.$get("collection"), ]); if (!comment || !team) { return false; @@ -129,7 +125,7 @@ export default class CommentCreatedEmail extends BaseEmail< return ` ${actorName} ${isReply ? "replied to a thread in" : "commented on"} "${ document.title - }"${collection.name ? `in the ${collection.name} collection` : ""}. + }"${collection?.name ? `in the ${collection.name} collection` : ""}. Open Thread: ${teamUrl}${document.url}?commentId=${commentId} `; @@ -160,7 +156,7 @@ Open Thread: ${teamUrl}${document.url}?commentId=${commentId}

{actorName} {isReply ? "replied to a thread in" : "commented on"}{" "} {document.title}{" "} - {collection.name ? `in the ${collection.name} collection` : ""}. + {collection?.name ? `in the ${collection.name} collection` : ""}.

{body && ( <> diff --git a/server/emails/templates/DocumentPublishedOrUpdatedEmail.tsx b/server/emails/templates/DocumentPublishedOrUpdatedEmail.tsx index f5d4b34fc0..87057dcff5 100644 --- a/server/emails/templates/DocumentPublishedOrUpdatedEmail.tsx +++ b/server/emails/templates/DocumentPublishedOrUpdatedEmail.tsx @@ -31,7 +31,7 @@ type InputProps = EmailProps & { type BeforeSend = { document: Document; - collection: Collection; + collection: Collection | null; unsubscribeUrl: string; body: string | undefined; }; @@ -63,9 +63,6 @@ export default class DocumentPublishedOrUpdatedEmail extends BaseEmail< document.$get("collection"), document.$get("team"), ]); - if (!collection) { - return false; - } let body; if (revisionId && team?.getPreference(TeamPreference.PreviewsInEmails)) { @@ -149,7 +146,9 @@ export default class DocumentPublishedOrUpdatedEmail extends BaseEmail< return ` "${document.title}" ${eventName} -${actorName} ${eventName} the document "${document.title}", in the ${collection.name} collection. +${actorName} ${eventName} the document "${document.title}"${ + collection?.name ? `, in the ${collection.name} collection` : "" + }. Open Document: ${teamUrl}${document.url} `; @@ -181,8 +180,9 @@ Open Document: ${teamUrl}${document.url}

{actorName} {eventName} the document{" "} - {document.title}, in the{" "} - {collection.name} collection. + {document.title} + {collection?.name ? <>, in the {collection.name} collection : ""} + .

{body && ( <> diff --git a/server/models/helpers/NotificationHelper.ts b/server/models/helpers/NotificationHelper.ts index 88475fe046..1b932a74a1 100644 --- a/server/models/helpers/NotificationHelper.ts +++ b/server/models/helpers/NotificationHelper.ts @@ -9,6 +9,7 @@ import { Comment, View, } from "@server/models"; +import { can } from "@server/policies"; export default class NotificationHelper { /** @@ -161,17 +162,18 @@ export default class NotificationHelper { const filtered = []; for (const recipient of recipients) { - const collectionIds = await recipient.collectionIds(); + if (!recipient.email || recipient.isSuspended) { + continue; + } // Check the recipient has access to the collection this document is in. Just // because they are subscribed doesn't mean they still have access to read // the document. - if ( - recipient.email && - !recipient.isSuspended && - document.collectionId && - collectionIds.includes(document.collectionId) - ) { + const doc = await Document.findByPk(document.id, { + userId: recipient.id, + }); + + if (can(recipient, "read", doc)) { filtered.push(recipient); } } From ec1eacaeeabed18c971eb58bac3ea4a674199cf3 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Tue, 17 Dec 2024 13:36:32 +0900 Subject: [PATCH 14/41] fix: Cannot leave overlapping comments (#8107) --- app/editor/menus/formatting.tsx | 6 +++++- shared/editor/marks/Comment.ts | 12 +++++++++--- shared/editor/queries/isMarkActive.ts | 18 ++++++++++++++---- 3 files changed, 28 insertions(+), 8 deletions(-) diff --git a/app/editor/menus/formatting.tsx b/app/editor/menus/formatting.tsx index 283cd9b3ee..3baf9e0044 100644 --- a/app/editor/menus/formatting.tsx +++ b/app/editor/menus/formatting.tsx @@ -241,7 +241,11 @@ export default function formattingMenuItems( shortcut: `${metaDisplay}+⌥+M`, icon: , label: isCodeBlock ? dictionary.comment : undefined, - active: isMarkActive(schema.marks.comment, { resolved: false }), + active: isMarkActive( + schema.marks.comment, + { resolved: false }, + { exact: true } + ), visible: !isMobile || !isEmpty, }, { diff --git a/shared/editor/marks/Comment.ts b/shared/editor/marks/Comment.ts index df0fc4a1d4..8b28778807 100644 --- a/shared/editor/marks/Comment.ts +++ b/shared/editor/marks/Comment.ts @@ -16,6 +16,8 @@ export default class Comment extends Mark { get schema(): MarkSpec { return { + // Allow multiple comments to overlap + excludes: "", attrs: { id: {}, userId: {}, @@ -97,9 +99,13 @@ export default class Comment extends Mark { return this.options.onCreateCommentMark ? (): Command => (state, dispatch) => { if ( - isMarkActive(state.schema.marks.comment, { - resolved: false, - })(state) + isMarkActive( + state.schema.marks.comment, + { + resolved: false, + }, + { exact: true } + )(state) ) { return false; } diff --git a/shared/editor/queries/isMarkActive.ts b/shared/editor/queries/isMarkActive.ts index 9010deb732..2969e67f0b 100644 --- a/shared/editor/queries/isMarkActive.ts +++ b/shared/editor/queries/isMarkActive.ts @@ -3,15 +3,21 @@ import { EditorState } from "prosemirror-state"; import { Primitive } from "utility-types"; import { getMarksBetween } from "./getMarksBetween"; +type Options = { + /** Only return match if the range and attrs is exact */ + exact?: boolean; +}; + /** * Checks if a mark is active in the current selection or not. * * @param type The mark type to check. * @param attrs The attributes to check. + * @param options The options to use. * @returns A function that checks if a mark is active in the current selection or not. */ export const isMarkActive = - (type: MarkType, attrs?: Record) => + (type: MarkType, attrs?: Record, options?: Options) => (state: EditorState): boolean => { if (!type) { return false; @@ -25,12 +31,16 @@ export const isMarkActive = if (!hasMark) { return false; } - if (attrs) { + if (attrs || options) { const results = getMarksBetween(from, to, state); return results.some( - ({ mark }) => + ({ mark, start, end }) => mark.type === type && - Object.keys(attrs).every((key) => mark.attrs[key] === attrs[key]) + (!attrs || + Object.keys(attrs).every( + (key) => mark.attrs[key] === attrs[key] + )) && + (!options?.exact || (start === from && end === to)) ); } From 742c138b3df70bd2be7a4093dd44ba7c0c774ea0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 20:36:59 -0800 Subject: [PATCH 15/41] chore(deps): bump mermaid from 11.4.0 to 11.4.1 (#8117) Bumps [mermaid](https://github.com/mermaid-js/mermaid) from 11.4.0 to 11.4.1. - [Release notes](https://github.com/mermaid-js/mermaid/releases) - [Changelog](https://github.com/mermaid-js/mermaid/blob/develop/CHANGELOG.md) - [Commits](https://github.com/mermaid-js/mermaid/compare/mermaid@11.4.0...mermaid@11.4.1) --- updated-dependencies: - dependency-name: mermaid dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 30 ++++++++++++------------------ 2 files changed, 13 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 8b6270b1c2..d6dfa69000 100644 --- a/package.json +++ b/package.json @@ -150,7 +150,7 @@ "markdown-it": "^13.0.2", "markdown-it-container": "^3.0.0", "markdown-it-emoji": "^2.0.0", - "mermaid": "11.4.0", + "mermaid": "11.4.1", "mime-types": "^2.1.35", "mobx": "^4.15.4", "mobx-react": "^6.3.1", diff --git a/yarn.lock b/yarn.lock index baf06ae87e..d3d4711262 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4661,13 +4661,6 @@ resolved "https://registry.yarnpkg.com/@types/diff/-/diff-5.0.9.tgz#31977962175079c2048315febeb8fd5f520192c6" integrity sha512-RWVEhh/zGXpAVF/ZChwNnv7r4rvqzJ7lYNSmZSVTxjV0PBLf6Qu7RNg+SUtkpzxmiNkjCx0Xn2tPp7FIkshJwQ== -"@types/dompurify@^3.0.5": - version "3.0.5" - resolved "https://registry.yarnpkg.com/@types/dompurify/-/dompurify-3.0.5.tgz#02069a2fcb89a163bacf1a788f73cb415dd75cb7" - integrity sha512-1Wg0g3BtQF7sSb27fJQAKck1HECM6zV1EB66j8JH9i3LCjYabJa0FSdiSgsD5K/RbrsR0SiraKacLB+T8ZVYAg== - dependencies: - "@types/trusted-types" "*" - "@types/dotenv@^8.2.3": version "8.2.3" resolved "https://registry.yarnpkg.com/@types/dotenv/-/dotenv-8.2.3.tgz#c97b3c5b2e97ff3873793a000999e86cd66ff354" @@ -5344,7 +5337,7 @@ resolved "https://registry.yarnpkg.com/@types/triple-beam/-/triple-beam-1.3.2.tgz#38ecb64f01aa0d02b7c8f4222d7c38af6316fef8" integrity "sha1-OOy2TwGqDQK3yPQiLXw4r2MW/vg= sha512-txGIh+0eDFzKGC25zORnswy+br1Ha7hj5cMVwKIU7+s0U2AxxJru/jZSMU6OC9MJWP6+pc/hc6ZjyZShpsyY2g==" -"@types/trusted-types@*", "@types/trusted-types@^2.0.2": +"@types/trusted-types@^2.0.2", "@types/trusted-types@^2.0.7": version "2.0.7" resolved "https://registry.yarnpkg.com/@types/trusted-types/-/trusted-types-2.0.7.tgz#baccb07a970b91707df3a3e8ba6896c57ead2d11" integrity sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw== @@ -7786,10 +7779,12 @@ domhandler@^5.0.1, domhandler@^5.0.2, domhandler@^5.0.3: dependencies: domelementtype "^2.3.0" -"dompurify@^3.0.11 <3.1.7": - version "3.1.6" - resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-3.1.6.tgz#43c714a94c6a7b8801850f82e756685300a027e2" - integrity sha512-cTOAhc36AalkjtBpfG6O8JimdTMWNXjiePT2xQH/ppBGi/4uIpmj8eKyIkMJErXWARyINV/sB38yf8JCLF5pbQ== +dompurify@^3.2.1: + version "3.2.3" + resolved "https://registry.yarnpkg.com/dompurify/-/dompurify-3.2.3.tgz#05dd2175225324daabfca6603055a09b2382a4cd" + integrity sha512-U1U5Hzc2MO0oW3DF+G9qYN0aT7atAou4AgI0XjWz061nyBPbdxkfdhfy5uMgGn6+oLFCfn44ZGbdDqCzVmlOWA== + optionalDependencies: + "@types/trusted-types" "^2.0.7" domutils@^3.0.1: version "3.0.1" @@ -11652,16 +11647,15 @@ merge2@^1.3.0, merge2@^1.4.1: resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" integrity "sha1-Q2iJL4hekHRVpv19xVwMnUBJkK4= sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==" -mermaid@11.4.0: - version "11.4.0" - resolved "https://registry.yarnpkg.com/mermaid/-/mermaid-11.4.0.tgz#e510f45700ed4b31e1dc327b3a405ad9f6907ca3" - integrity sha512-mxCfEYvADJqOiHfGpJXLs4/fAjHz448rH0pfY5fAoxiz70rQiDSzUUy4dNET2T08i46IVpjohPd6WWbzmRHiPA== +mermaid@11.4.1: + version "11.4.1" + resolved "https://registry.yarnpkg.com/mermaid/-/mermaid-11.4.1.tgz#577fad5c31a01a06d9f793e298d411f1379eecc8" + integrity sha512-Mb01JT/x6CKDWaxigwfZYuYmDZ6xtrNwNlidKZwkSrDaY9n90tdrJTV5Umk+wP1fZscGptmKFXHsXMDEVZ+Q6A== dependencies: "@braintree/sanitize-url" "^7.0.1" "@iconify/utils" "^2.1.32" "@mermaid-js/parser" "^0.3.0" "@types/d3" "^7.4.3" - "@types/dompurify" "^3.0.5" cytoscape "^3.29.2" cytoscape-cose-bilkent "^4.1.0" cytoscape-fcose "^2.2.0" @@ -11669,7 +11663,7 @@ mermaid@11.4.0: d3-sankey "^0.12.3" dagre-d3-es "7.0.11" dayjs "^1.11.10" - dompurify "^3.0.11 <3.1.7" + dompurify "^3.2.1" katex "^0.16.9" khroma "^2.1.0" lodash-es "^4.17.21" From 4af07ab6c41e6d2f48899973e3868ee4dd6f43af Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 16:22:49 -0800 Subject: [PATCH 16/41] chore(deps-dev): bump eslint-plugin-import from 2.29.1 to 2.31.0 (#8116) Bumps [eslint-plugin-import](https://github.com/import-js/eslint-plugin-import) from 2.29.1 to 2.31.0. - [Release notes](https://github.com/import-js/eslint-plugin-import/releases) - [Changelog](https://github.com/import-js/eslint-plugin-import/blob/main/CHANGELOG.md) - [Commits](https://github.com/import-js/eslint-plugin-import/compare/v2.29.1...v2.31.0) --- updated-dependencies: - dependency-name: eslint-plugin-import dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 106 +++++++++++++++++++++++---------------------------- 2 files changed, 49 insertions(+), 59 deletions(-) diff --git a/package.json b/package.json index d6dfa69000..b7ddf52f7d 100644 --- a/package.json +++ b/package.json @@ -335,7 +335,7 @@ "eslint-config-prettier": "^8.10.0", "eslint-import-resolver-typescript": "^3.7.0", "eslint-plugin-es": "^4.1.0", - "eslint-plugin-import": "^2.29.1", + "eslint-plugin-import": "^2.31.0", "eslint-plugin-jsx-a11y": "^6.10.2", "eslint-plugin-lodash": "^7.4.0", "eslint-plugin-node": "^11.1.0", diff --git a/yarn.lock b/yarn.lock index d3d4711262..bbf9d7ec38 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3570,6 +3570,11 @@ resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.5.1.tgz#0e79117bacb5817ff9a88ab19cb59df839638d6d" integrity "sha1-DnkRe6y1gX/5qIqxnLWd+DljjW0= sha512-5I3Nz4Sb9TYOtkRwlH0ow+BhMH2vnh38tZ4J4mggE48M/YyJyp/0sPSxhw1UeS1+oBgQ8q7maFtSeKpeRJu41Q==" +"@rtsao/scc@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@rtsao/scc/-/scc-1.1.0.tgz#927dd2fae9bc3361403ac2c7a00c32ddce9ad7e8" + integrity sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g== + "@rushstack/ts-command-line@^4.12.2": version "4.13.2" resolved "https://registry.yarnpkg.com/@rushstack/ts-command-line/-/ts-command-line-4.13.2.tgz#2dfdcf418d58256671433b1da4a3b67e1814cc7a" @@ -5706,7 +5711,7 @@ array-buffer-byte-length@^1.0.0, array-buffer-byte-length@^1.0.1: call-bind "^1.0.5" is-array-buffer "^3.0.4" -array-includes@^3.1.6, array-includes@^3.1.7, array-includes@^3.1.8: +array-includes@^3.1.6, array-includes@^3.1.8: version "3.1.8" resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.8.tgz#5e370cbe172fdd5dd6530c1d4aadda25281ba97d" integrity sha512-itaWrbYbqpGXkGhZPGUulwnhVf5Hpy1xiCFsGqyIGglbBxmG5vSjxQen3/WGOjPpNEv1RtBLKxbmVXm8HpJStQ== @@ -5723,17 +5728,6 @@ array-union@^2.1.0: resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" integrity "sha1-t5hCCtvrHego2ErNii4j0+/oXo0= sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==" -array.prototype.filter@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/array.prototype.filter/-/array.prototype.filter-1.0.3.tgz#423771edeb417ff5914111fff4277ea0624c0d0e" - integrity sha512-VizNcj/RGJiUyQBgzwxzE5oHdeuXY5hSbbmKMlphj1cy1Vl7Pn2asCGbSrru6hSQjmCzqTBPVWAF/whmEOVHbw== - dependencies: - call-bind "^1.0.2" - define-properties "^1.2.0" - es-abstract "^1.22.1" - es-array-method-boxes-properly "^1.0.0" - is-string "^1.0.7" - array.prototype.findlast@^1.2.5: version "1.2.5" resolved "https://registry.yarnpkg.com/array.prototype.findlast/-/array.prototype.findlast-1.2.5.tgz#3e4fbcb30a15a7f5bf64cf2faae22d139c2e4904" @@ -5746,16 +5740,17 @@ array.prototype.findlast@^1.2.5: es-object-atoms "^1.0.0" es-shim-unscopables "^1.0.2" -array.prototype.findlastindex@^1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.3.tgz#b37598438f97b579166940814e2c0493a4f50207" - integrity sha512-LzLoiOMAxvy+Gd3BAq3B7VeIgPdo+Q8hthvKtXybMvRV0jrXfJM/t8mw7nNlpEcVlVUnCnM2KSX4XU5HmpodOA== +array.prototype.findlastindex@^1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.5.tgz#8c35a755c72908719453f87145ca011e39334d0d" + integrity sha512-zfETvRFA8o7EiNn++N5f/kaCw221hrpGsDmcpndVupkPzEc1Wuf3VgC0qby1BbHs7f5DVYjgtEU2LLh5bqeGfQ== dependencies: - call-bind "^1.0.2" - define-properties "^1.2.0" - es-abstract "^1.22.1" - es-shim-unscopables "^1.0.0" - get-intrinsic "^1.2.1" + call-bind "^1.0.7" + define-properties "^1.2.1" + es-abstract "^1.23.2" + es-errors "^1.3.0" + es-object-atoms "^1.0.0" + es-shim-unscopables "^1.0.2" array.prototype.flat@^1.3.1, array.prototype.flat@^1.3.2: version "1.3.2" @@ -8066,11 +8061,6 @@ es-abstract@^1.17.5, es-abstract@^1.22.1, es-abstract@^1.22.3, es-abstract@^1.23 unbox-primitive "^1.0.2" which-typed-array "^1.1.15" -es-array-method-boxes-properly@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/es-array-method-boxes-properly/-/es-array-method-boxes-properly-1.0.0.tgz#873f3e84418de4ee19c5be752990b2e44718d09e" - integrity sha512-wd6JXUmyHmt8T5a2xreUwKcGPq6f1f+WwIJkijUqiGcJz1qqnZgP6XIK+QyIWU5lT7imeNxUll48bziG+TSYcA== - es-define-property@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" @@ -8078,7 +8068,7 @@ es-define-property@^1.0.0: dependencies: get-intrinsic "^1.2.4" -es-errors@^1.0.0, es-errors@^1.2.1, es-errors@^1.3.0: +es-errors@^1.2.1, es-errors@^1.3.0: version "1.3.0" resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== @@ -8319,10 +8309,10 @@ eslint-import-resolver-typescript@^3.7.0: is-glob "^4.0.3" stable-hash "^0.0.4" -eslint-module-utils@^2.8.0: - version "2.8.2" - resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.8.2.tgz#2ecad69d71e1fa81f17f7f24d5d3e46b168de663" - integrity sha512-3XnC5fDyc8M4J2E8pt8pmSVRX2M+5yWMCfI/kDZwauQeFgzQOuhcRBFKjTeJagqgk4sFKxe1mvNVnaWwImx/Tg== +eslint-module-utils@^2.12.0: + version "2.12.0" + resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.12.0.tgz#fe4cfb948d61f49203d7b08871982b65b9af0b0b" + integrity sha512-wALZ0HFoytlyh/1+4wuZ9FJCD/leWHQzzrxJ8+rebyReSLk7LApMyd3WJaLVoN+D5+WIdJyDK1c6JnE65V4Zyg== dependencies: debug "^3.2.7" @@ -8342,27 +8332,29 @@ eslint-plugin-es@^4.1.0: eslint-utils "^2.0.0" regexpp "^3.0.0" -eslint-plugin-import@^2.29.1: - version "2.29.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz#d45b37b5ef5901d639c15270d74d46d161150643" - integrity sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw== +eslint-plugin-import@^2.31.0: + version "2.31.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.31.0.tgz#310ce7e720ca1d9c0bb3f69adfd1c6bdd7d9e0e7" + integrity sha512-ixmkI62Rbc2/w8Vfxyh1jQRTdRTF52VxwRVHl/ykPAmqG+Nb7/kNn+byLP0LxPgI7zWA16Jt82SybJInmMia3A== dependencies: - array-includes "^3.1.7" - array.prototype.findlastindex "^1.2.3" + "@rtsao/scc" "^1.1.0" + array-includes "^3.1.8" + array.prototype.findlastindex "^1.2.5" array.prototype.flat "^1.3.2" array.prototype.flatmap "^1.3.2" debug "^3.2.7" doctrine "^2.1.0" eslint-import-resolver-node "^0.3.9" - eslint-module-utils "^2.8.0" - hasown "^2.0.0" - is-core-module "^2.13.1" + eslint-module-utils "^2.12.0" + hasown "^2.0.2" + is-core-module "^2.15.1" is-glob "^4.0.3" minimatch "^3.1.2" - object.fromentries "^2.0.7" - object.groupby "^1.0.1" - object.values "^1.1.7" + object.fromentries "^2.0.8" + object.groupby "^1.0.3" + object.values "^1.2.0" semver "^6.3.1" + string.prototype.trimend "^1.0.8" tsconfig-paths "^3.15.0" eslint-plugin-jsx-a11y@^6.10.2: @@ -9823,12 +9815,12 @@ is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.7: resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" integrity "sha1-O8KoXqdC2eNiBdys3XLKH9xRsFU= sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA==" -is-core-module@^2.13.0, is-core-module@^2.13.1: - version "2.13.1" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.1.tgz#ad0d7532c6fea9da1ebdc82742d74525c6273384" - integrity sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw== +is-core-module@^2.13.0, is-core-module@^2.15.1: + version "2.16.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.16.0.tgz#6c01ffdd5e33c49c1d2abfa93334a85cb56bd81c" + integrity sha512-urTSINYfAYgcbLb0yDQ6egFm6h3Mo1DcF9EkyXSRjjzdHbsulg01qhwWuXdOoUBuTkbQ80KDboXa0vFJ+BDH+g== dependencies: - hasown "^2.0.0" + hasown "^2.0.2" is-data-view@^1.0.1: version "1.0.1" @@ -12087,7 +12079,7 @@ object.entries@^1.1.8: define-properties "^1.2.1" es-object-atoms "^1.0.0" -object.fromentries@^2.0.7, object.fromentries@^2.0.8: +object.fromentries@^2.0.8: version "2.0.8" resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.8.tgz#f7195d8a9b97bd95cbc1999ea939ecd1a2b00c65" integrity sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ== @@ -12097,18 +12089,16 @@ object.fromentries@^2.0.7, object.fromentries@^2.0.8: es-abstract "^1.23.2" es-object-atoms "^1.0.0" -object.groupby@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/object.groupby/-/object.groupby-1.0.2.tgz#494800ff5bab78fd0eff2835ec859066e00192ec" - integrity sha512-bzBq58S+x+uo0VjurFT0UktpKHOZmv4/xePiOA1nbB9pMqpGK7rUPNgf+1YC+7mE+0HzhTMqNUuCqvKhj6FnBw== +object.groupby@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/object.groupby/-/object.groupby-1.0.3.tgz#9b125c36238129f6f7b61954a1e7176148d5002e" + integrity sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ== dependencies: - array.prototype.filter "^1.0.3" - call-bind "^1.0.5" + call-bind "^1.0.7" define-properties "^1.2.1" - es-abstract "^1.22.3" - es-errors "^1.0.0" + es-abstract "^1.23.2" -object.values@^1.1.6, object.values@^1.1.7, object.values@^1.2.0: +object.values@^1.1.6, object.values@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.2.0.tgz#65405a9d92cee68ac2d303002e0b8470a4d9ab1b" integrity sha512-yBYjY9QX2hnRmZHAjG/f13MzmBzxzYgQhFrke06TTyKY5zSTEqkOeukBzIdVA3j3ulu8Qa3MbVFShV7T2RmGtQ== From c8cbb9ef9c17d10d3b99df39192c6017ee3b9d53 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 18 Dec 2024 09:49:28 +0900 Subject: [PATCH 17/41] Add HEIC to supported mimes, closes #8122 --- shared/validations.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/validations.ts b/shared/validations.ts index 2110bddc4b..47aa863ee4 100644 --- a/shared/validations.ts +++ b/shared/validations.ts @@ -16,6 +16,7 @@ export const AttachmentValidation = { "image/svg+xml", "image/bmp", "image/tiff", + "image/heic", ], }; From cc8ec28a396eb9f3e5454ad23c94e4906eced5d6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 18 Dec 2024 09:56:31 +0900 Subject: [PATCH 18/41] chore(deps-dev): bump typescript from 5.6.3 to 5.7.2 (#8118) * chore(deps-dev): bump typescript from 5.6.3 to 5.7.2 Bumps [typescript](https://github.com/microsoft/TypeScript) from 5.6.3 to 5.7.2. - [Release notes](https://github.com/microsoft/TypeScript/releases) - [Changelog](https://github.com/microsoft/TypeScript/blob/main/azure-pipelines.release.yml) - [Commits](https://github.com/microsoft/TypeScript/compare/v5.6.3...v5.7.2) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * tsc --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tom Moor --- app/utils/viewTransition.ts | 2 +- package.json | 2 +- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/utils/viewTransition.ts b/app/utils/viewTransition.ts index 95dcef9461..586e84fb5f 100644 --- a/app/utils/viewTransition.ts +++ b/app/utils/viewTransition.ts @@ -4,7 +4,7 @@ * * @param callback The callback to call inside the view transition. */ -export const startViewTransition = (callback: UpdateCallback) => { +export const startViewTransition = (callback: ViewTransitionUpdateCallback) => { if (self.document.startViewTransition) { self.document.startViewTransition(callback); } else { diff --git a/package.json b/package.json index b7ddf52f7d..a08e8c0c03 100644 --- a/package.json +++ b/package.json @@ -355,7 +355,7 @@ "rimraf": "^2.5.4", "rollup-plugin-webpack-stats": "^0.4.1", "terser": "^5.36.0", - "typescript": "^5.6.3", + "typescript": "^5.7.2", "vite-plugin-static-copy": "^0.17.0", "yarn-deduplicate": "^6.0.2" }, diff --git a/yarn.lock b/yarn.lock index bbf9d7ec38..5f8ee92437 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15061,10 +15061,10 @@ typescript@^4.2.4: resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235" integrity "sha1-GohZbRz0fVlQehvN+1ud/k1IgjU= sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==" -typescript@^5.6.3: - version "5.6.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.6.3.tgz#5f3449e31c9d94febb17de03cc081dd56d81db5b" - integrity sha512-hjcS1mhfuyi4WW8IWtjP7brDrG2cuDZukyrYrSauoXGNgx0S7zceP07adYkJycEr56BOUTNPzbInooiN3fn1qw== +typescript@^5.7.2: + version "5.7.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.2.tgz#3169cf8c4c8a828cde53ba9ecb3d2b1d5dd67be6" + integrity sha512-i5t66RHxDvVN40HfDd1PsEThGNnlMCMT3jMUuoh9/0TaqWevNontacunWyN02LA9/fIbEWlcHZcgTKb9QoaLfg== uc.micro@^1.0.1, uc.micro@^1.0.5: version "1.0.6" From 0dd14cdf1ac1521013102bf085ef44f36249d459 Mon Sep 17 00:00:00 2001 From: Translate-O-Tron <75237327+outline-translations@users.noreply.github.com> Date: Wed, 18 Dec 2024 01:56:43 +0100 Subject: [PATCH 19/41] New Crowdin updates (#8058) --- shared/i18n/locales/cs_CZ/translation.json | 13 +++++--- shared/i18n/locales/da_DK/translation.json | 13 +++++--- shared/i18n/locales/de_DE/translation.json | 15 ++++++--- shared/i18n/locales/es_ES/translation.json | 13 +++++--- shared/i18n/locales/fa_IR/translation.json | 13 +++++--- shared/i18n/locales/fr_FR/translation.json | 13 +++++--- shared/i18n/locales/he_IL/translation.json | 13 +++++--- shared/i18n/locales/hu_HU/translation.json | 13 +++++--- shared/i18n/locales/id_ID/translation.json | 13 +++++--- shared/i18n/locales/it_IT/translation.json | 13 +++++--- shared/i18n/locales/ja_JP/translation.json | 13 +++++--- shared/i18n/locales/ko_KR/translation.json | 39 ++++++++++++---------- shared/i18n/locales/nb_NO/translation.json | 13 +++++--- shared/i18n/locales/nl_NL/translation.json | 13 +++++--- shared/i18n/locales/pl_PL/translation.json | 13 +++++--- shared/i18n/locales/pt_BR/translation.json | 13 +++++--- shared/i18n/locales/pt_PT/translation.json | 13 +++++--- shared/i18n/locales/sv_SE/translation.json | 13 +++++--- shared/i18n/locales/th_TH/translation.json | 13 +++++--- shared/i18n/locales/tr_TR/translation.json | 13 +++++--- shared/i18n/locales/uk_UA/translation.json | 13 +++++--- shared/i18n/locales/vi_VN/translation.json | 13 +++++--- shared/i18n/locales/zh_CN/translation.json | 13 +++++--- shared/i18n/locales/zh_TW/translation.json | 13 +++++--- 24 files changed, 230 insertions(+), 110 deletions(-) diff --git a/shared/i18n/locales/cs_CZ/translation.json b/shared/i18n/locales/cs_CZ/translation.json index 8f651eb35f..474e4de4b1 100644 --- a/shared/i18n/locales/cs_CZ/translation.json +++ b/shared/i18n/locales/cs_CZ/translation.json @@ -497,7 +497,7 @@ "Could not import file": "Soubor nelze importovat", "Unsubscribed from document": "Upozornění vypnuta", "Account": "Účet", - "API": "API", + "API Keys": "API Keys", "Details": "Podrobnosti", "Security": "Zabezpečení", "Features": "Funkce", @@ -557,6 +557,7 @@ "created the collection": "vytvořil sbírku", "mentioned you in": "zmínil vás v", "left a comment on": "zanechal komentář k", + "resolved a comment on": "resolved a comment on", "shared": "sdíleno", "invited you to": "vás pozval/a do", "Choose a date": "Vybrat datum", @@ -829,11 +830,12 @@ "Something went wrong": "Something went wrong", "Please try again or contact support if the problem persists": "Please try again or contact support if the problem persists", "No documents found for your search filters.": "Pro zadaný požadavek nebyly nalezeny žádné dokumenty.", - "API key copied to clipboard": "Klíč API byl zkopírován do schránky", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Vytvořte si osobní API klíče pro ověření pomocí API rozhraní a ovládejte programově\n data vašeho pracovního prostoru. API klíče mají stejná oprávnění jako váš uživatelský účet.\n Další detaily naleznete ve vývojářské dokumentaci.", - "Personal keys": "Osobní klíče", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Naposledy použito", "No expiry": "Bez vypršení platnosti", + "API key copied to clipboard": "Klíč API byl zkopírován do schránky", "Copied": "Zkopírováno", "Revoking": "Odvolávání", "Are you sure you want to revoke the {{ tokenName }} token?": "Skutečně chcete zrušit token {{ tokenName }}?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Obdržet upozornění, když dokument, k jehož odběru jste přihlášeni, nebo vlákno, jehož jste se účastnili, obdrží komentář", "Mentioned": "Zmínky", "Receive a notification when someone mentions you in a document or comment": "Dostávat upozornění, když se o vás někdo zmíní v dokumentu nebo komentáři", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "Sbírka vytvořena", "Receive a notification whenever a new collection is created": "Přijímat oznámení, když bude vytvořena nová sbírka", "Invite accepted": "Pozvánka přijata", @@ -958,6 +961,8 @@ "Email address": "E-mailová adresa", "Your email address should be updated in your SSO provider.": "Vaše e-mailová adresa by měla být aktualizována u vašeho poskytovatele jednotného přihlášení.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "Integrace e-mailu je momentálně zakázána. Nastavte přidružené proměnné parametry a restartujte server, abyste povolili oznámení.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Vytvořte si osobní API klíče pro ověření pomocí API rozhraní a ovládejte programově\n data vašeho pracovního prostoru. API klíče mají stejná oprávnění jako váš uživatelský účet.\n Další detaily naleznete ve vývojářské dokumentaci.", + "Personal keys": "Osobní klíče", "Preferences saved": "Nastavení uložena", "Delete account": "Odstranit účet", "Manage settings that affect your personal experience.": "Spravujte nastavení, která ovlivňují vaše uživatelské rozhraní.", diff --git a/shared/i18n/locales/da_DK/translation.json b/shared/i18n/locales/da_DK/translation.json index 568935092e..730f7816ab 100644 --- a/shared/i18n/locales/da_DK/translation.json +++ b/shared/i18n/locales/da_DK/translation.json @@ -497,7 +497,7 @@ "Could not import file": "Could not import file", "Unsubscribed from document": "Unsubscribed from document", "Account": "Account", - "API": "API", + "API Keys": "API Keys", "Details": "Details", "Security": "Security", "Features": "Features", @@ -557,6 +557,7 @@ "created the collection": "created the collection", "mentioned you in": "mentioned you in", "left a comment on": "left a comment on", + "resolved a comment on": "resolved a comment on", "shared": "shared", "invited you to": "invited you to", "Choose a date": "Choose a date", @@ -829,11 +830,12 @@ "Something went wrong": "Something went wrong", "Please try again or contact support if the problem persists": "Please try again or contact support if the problem persists", "No documents found for your search filters.": "No documents found for your search filters.", - "API key copied to clipboard": "API key copied to clipboard", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", - "Personal keys": "Personal keys", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Last used", "No expiry": "No expiry", + "API key copied to clipboard": "API key copied to clipboard", "Copied": "Copied", "Revoking": "Revoking", "Are you sure you want to revoke the {{ tokenName }} token?": "Are you sure you want to revoke the {{ tokenName }} token?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment", "Mentioned": "Mentioned", "Receive a notification when someone mentions you in a document or comment": "Receive a notification when someone mentions you in a document or comment", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "Collection created", "Receive a notification whenever a new collection is created": "Receive a notification whenever a new collection is created", "Invite accepted": "Invite accepted", @@ -958,6 +961,8 @@ "Email address": "Email address", "Your email address should be updated in your SSO provider.": "Your email address should be updated in your SSO provider.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", + "Personal keys": "Personal keys", "Preferences saved": "Preferences saved", "Delete account": "Delete account", "Manage settings that affect your personal experience.": "Manage settings that affect your personal experience.", diff --git a/shared/i18n/locales/de_DE/translation.json b/shared/i18n/locales/de_DE/translation.json index f2e3df6f80..ccc64e0958 100644 --- a/shared/i18n/locales/de_DE/translation.json +++ b/shared/i18n/locales/de_DE/translation.json @@ -12,7 +12,7 @@ "Star": "Favorisieren", "Unstar": "Aus den Favoriten entfernen", "Archive": "Archiv", - "Archive collection": "Archive collection", + "Archive collection": "Private Sammlung", "Collection archived": "Collection archived", "Archiving": "Archiviere", "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.": "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.", @@ -497,7 +497,7 @@ "Could not import file": "Datei konnte nicht importiert werden", "Unsubscribed from document": "Dokument nicht abonniert", "Account": "Konto", - "API": "API", + "API Keys": "API Keys", "Details": "Details", "Security": "Sicherheit", "Features": "Funktionen", @@ -557,6 +557,7 @@ "created the collection": "Sammlung erstellt", "mentioned you in": "erwähnte dich in", "left a comment on": "hat einen Kommentar geschrieben zu", + "resolved a comment on": "resolved a comment on", "shared": "geteilt", "invited you to": "hat dich eingeladen zu", "Choose a date": "Datum auswählen", @@ -829,11 +830,12 @@ "Something went wrong": "Something went wrong", "Please try again or contact support if the problem persists": "Please try again or contact support if the problem persists", "No documents found for your search filters.": "Keine Dokumente für diese Suchfilter gefunden.", - "API key copied to clipboard": "API-Schlüssel wurde in die Zwischenablage kopiert", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Erstelle persönliche API-Schlüssel, um dich mit der API zu authentifizieren und\n die Daten deines Arbeitsbereichs programmiert zu kontrollieren. API-Schlüssel haben die gleichen Berechtigungen wie Ihr Benutzerkonto.\n Weitere Details finden Sie in der Entwicklerdokumentation.", - "Personal keys": "Persönliche Schlüssel", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Zuletzt verwendet", "No expiry": "Kein Verfall", + "API key copied to clipboard": "API-Schlüssel wurde in die Zwischenablage kopiert", "Copied": "Kopiert", "Revoking": "Wird widerrufen", "Are you sure you want to revoke the {{ tokenName }} token?": "Sind Sie sicher, den Token {{ tokenName }} zu widerrufen?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Erhalten Sie eine Benachrichtigung, wenn ein Dokument, das Sie abonniert haben oder ein Thread an dem Sie teilgenommen haben, einen Kommentar erhält", "Mentioned": "Erwähnt", "Receive a notification when someone mentions you in a document or comment": "Erhalten Sie eine Benachrichtigung, wenn jemand Sie in einem Dokument oder einem Kommentar erwähnt", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "Sammlung erstellt", "Receive a notification whenever a new collection is created": "Erhalten Sie eine Benachrichtigung, wenn eine neue Sammlung erstellt wird", "Invite accepted": "Einladung angenommen", @@ -958,6 +961,8 @@ "Email address": "E-Mail Adresse", "Your email address should be updated in your SSO provider.": "Ihre E-Mail-Adresse sollte in Ihrem SSO-Anbieter aktualisiert werden.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "Die E-Mail-Integration ist derzeit deaktiviert. Legen Sie die zugehörigen Umgebungsvariablen fest und starten Sie den Server neu, um Benachrichtigungen zu aktivieren.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Erstelle persönliche API-Schlüssel, um dich mit der API zu authentifizieren und\n die Daten deines Arbeitsbereichs programmiert zu kontrollieren. API-Schlüssel haben die gleichen Berechtigungen wie Ihr Benutzerkonto.\n Weitere Details finden Sie in der Entwicklerdokumentation.", + "Personal keys": "Persönliche Schlüssel", "Preferences saved": "Einstellungen gespeichert", "Delete account": "Konto löschen", "Manage settings that affect your personal experience.": "Verwalten Sie Einstellungen, die Ihr persönliches Erlebnis beeinflussen.", diff --git a/shared/i18n/locales/es_ES/translation.json b/shared/i18n/locales/es_ES/translation.json index eacdd18ea5..1150dc5bc6 100644 --- a/shared/i18n/locales/es_ES/translation.json +++ b/shared/i18n/locales/es_ES/translation.json @@ -497,7 +497,7 @@ "Could not import file": "No se pudo importar el archivo", "Unsubscribed from document": "Desuscrito del documento", "Account": "Cuenta", - "API": "API", + "API Keys": "API Keys", "Details": "Detalles", "Security": "Seguridad", "Features": "Características", @@ -557,6 +557,7 @@ "created the collection": "creó la colección", "mentioned you in": "te mencionó en", "left a comment on": "dejó un comentario en", + "resolved a comment on": "resolved a comment on", "shared": "compartido", "invited you to": "te invitó a", "Choose a date": "Elige una fecha", @@ -829,11 +830,12 @@ "Something went wrong": "Algo ha salido mal", "Please try again or contact support if the problem persists": "Por favor, inténtelo de nuevo o póngase en contacto con el soporte técnico si el problema persiste", "No documents found for your search filters.": "No se encontraron documentos para tus filtros de búsqueda.", - "API key copied to clipboard": "Clave API copiada al portapapeles", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Crea claves API personales para autenticarte con la API y controlar programáticamente\n los datos de tu área de trabajo. Las claves de API tienen los mismos permisos que tu cuenta de usuario.\n Para más detalles vea la documentación de desarrollador.", - "Personal keys": "Claves personales", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Utilizado por última vez", "No expiry": "No expira", + "API key copied to clipboard": "Clave API copiada al portapapeles", "Copied": "Copiado", "Revoking": "Revocando", "Are you sure you want to revoke the {{ tokenName }} token?": "¿Estás seguro de que quieres revocar el token {{ tokenName }}?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Recibir una notificación cuando un documento al que estás suscrito o un hilo en el que has participado recibe un comentario", "Mentioned": "Mencionado", "Receive a notification when someone mentions you in a document or comment": "Recibir una notificación cuando alguien te mencione en un documento o comentario", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "Colección creada", "Receive a notification whenever a new collection is created": "Recibir notificaciones cuando se cree una nueva colección", "Invite accepted": "Invitación aceptada", @@ -958,6 +961,8 @@ "Email address": "Correo electrónico", "Your email address should be updated in your SSO provider.": "Tu dirección de correo electrónico debe ser actualizada en tu proveedor de SSO.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "La integración de correo electrónico está deshabilitada actualmente. Configura las variables de entorno asociadas y reinicia el servidor para habilitar las notificaciones.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Crea claves API personales para autenticarte con la API y controlar programáticamente\n los datos de tu área de trabajo. Las claves de API tienen los mismos permisos que tu cuenta de usuario.\n Para más detalles vea la documentación de desarrollador.", + "Personal keys": "Claves personales", "Preferences saved": "Preferencias guardadas", "Delete account": "Eliminar cuenta", "Manage settings that affect your personal experience.": "Administra las configuraciones que afectan tu experiencia personal.", diff --git a/shared/i18n/locales/fa_IR/translation.json b/shared/i18n/locales/fa_IR/translation.json index fab9b51fdc..11a8a207e8 100644 --- a/shared/i18n/locales/fa_IR/translation.json +++ b/shared/i18n/locales/fa_IR/translation.json @@ -497,7 +497,7 @@ "Could not import file": "نمی‌توان فایل را وارد کرد", "Unsubscribed from document": "Unsubscribed from document", "Account": "حساب", - "API": "API", + "API Keys": "API Keys", "Details": "جزئیات", "Security": "امنیت", "Features": "امکانات", @@ -557,6 +557,7 @@ "created the collection": "created the collection", "mentioned you in": "mentioned you in", "left a comment on": "left a comment on", + "resolved a comment on": "resolved a comment on", "shared": "shared", "invited you to": "invited you to", "Choose a date": "Choose a date", @@ -829,11 +830,12 @@ "Something went wrong": "Something went wrong", "Please try again or contact support if the problem persists": "Please try again or contact support if the problem persists", "No documents found for your search filters.": "سندی برای فیلترهای جستجوی شما پیدا نشد.", - "API key copied to clipboard": "API key copied to clipboard", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", - "Personal keys": "Personal keys", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Last used", "No expiry": "No expiry", + "API key copied to clipboard": "API key copied to clipboard", "Copied": "Copied", "Revoking": "Revoking", "Are you sure you want to revoke the {{ tokenName }} token?": "Are you sure you want to revoke the {{ tokenName }} token?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment", "Mentioned": "Mentioned", "Receive a notification when someone mentions you in a document or comment": "Receive a notification when someone mentions you in a document or comment", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "ایجاد مجموعه", "Receive a notification whenever a new collection is created": "هر زمان مجموعه جدیدی ایجاد شد، اعلانی دریافت کنید", "Invite accepted": "Invite accepted", @@ -958,6 +961,8 @@ "Email address": "آدرس ایمیل", "Your email address should be updated in your SSO provider.": "Your email address should be updated in your SSO provider.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "ادغام ایمیلی غیرفعال است. لطفاً متغیرهای محیطی مربوطه را تنظیم کرده و سرور را دوباره راه‌اندازی کنید تا اعلان‌ها را فعال کنید.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", + "Personal keys": "Personal keys", "Preferences saved": "Preferences saved", "Delete account": "حذف حساب", "Manage settings that affect your personal experience.": "Manage settings that affect your personal experience.", diff --git a/shared/i18n/locales/fr_FR/translation.json b/shared/i18n/locales/fr_FR/translation.json index 3ed2fcd4c7..987b9c7be5 100644 --- a/shared/i18n/locales/fr_FR/translation.json +++ b/shared/i18n/locales/fr_FR/translation.json @@ -497,7 +497,7 @@ "Could not import file": "Le fichier n'a pas pu être importé", "Unsubscribed from document": "Se désabonner du document", "Account": "Compte", - "API": "API", + "API Keys": "API Keys", "Details": "Détails", "Security": "Sécurité", "Features": "Fonctionnalités", @@ -557,6 +557,7 @@ "created the collection": "a créé la collection", "mentioned you in": "vous a mentionné dans", "left a comment on": "a laissé un commentaire sur", + "resolved a comment on": "resolved a comment on", "shared": "partagé", "invited you to": "vous a invité à", "Choose a date": "Choisissez une date", @@ -829,11 +830,12 @@ "Something went wrong": "Un problème est survenu", "Please try again or contact support if the problem persists": "Veuillez réessayer ou contacter le support si le problème persiste", "No documents found for your search filters.": "Aucun document trouvé pour vos critères de recherche.", - "API key copied to clipboard": "Clé API copiée dans le presse-papier", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Créez des clés d'API personnelles pour vous authentifier avec l'API et contrôlez par programmation\n les données de votre espace de travail. Les clés API ont les mêmes autorisations que votre compte utilisateur.\n Pour plus de détails, voir la documentation développeur.", - "Personal keys": "Clés personnelles", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Dernier utilisé", "No expiry": "Pas d'expiration", + "API key copied to clipboard": "Clé API copiée dans le presse-papier", "Copied": "Copié", "Revoking": "Supression en cours", "Are you sure you want to revoke the {{ tokenName }} token?": "Voulez-vous vraiment supprimer le jeton {{ tokenName }}?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Recevez une notification lorsqu'un commentaire est déposé sur un document auquel vous êtes abonné ou dans un fil de discussion auquel vous avez participé", "Mentioned": "Mentionné", "Receive a notification when someone mentions you in a document or comment": "Recevez une notification lorsque quelqu'un vous mentionne dans un document ou commentaire", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "Collection créée", "Receive a notification whenever a new collection is created": "Recevez une notification à chaque fois qu'une nouvelle collection est créée", "Invite accepted": "Invitation acceptée", @@ -958,6 +961,8 @@ "Email address": "Adresse email", "Your email address should be updated in your SSO provider.": "Votre adresse e-mail doit être mise à jour auprès de votre fournisseur de SSO.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "L'intégration des e-mails est actuellement désactivée. Veuillez définir les variables d'environnement associées et redémarrer le serveur pour activer les notifications.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Créez des clés d'API personnelles pour vous authentifier avec l'API et contrôlez par programmation\n les données de votre espace de travail. Les clés API ont les mêmes autorisations que votre compte utilisateur.\n Pour plus de détails, voir la documentation développeur.", + "Personal keys": "Clés personnelles", "Preferences saved": "Préférences enregistrées", "Delete account": "Supprimer compte", "Manage settings that affect your personal experience.": "Gérer les paramètres qui affectent votre expérience utilisateur.", diff --git a/shared/i18n/locales/he_IL/translation.json b/shared/i18n/locales/he_IL/translation.json index 83810416f7..b81196ae5f 100644 --- a/shared/i18n/locales/he_IL/translation.json +++ b/shared/i18n/locales/he_IL/translation.json @@ -497,7 +497,7 @@ "Could not import file": "Could not import file", "Unsubscribed from document": "Unsubscribed from document", "Account": "Account", - "API": "API", + "API Keys": "API Keys", "Details": "Details", "Security": "Security", "Features": "Features", @@ -557,6 +557,7 @@ "created the collection": "created the collection", "mentioned you in": "mentioned you in", "left a comment on": "left a comment on", + "resolved a comment on": "resolved a comment on", "shared": "shared", "invited you to": "invited you to", "Choose a date": "Choose a date", @@ -829,11 +830,12 @@ "Something went wrong": "Something went wrong", "Please try again or contact support if the problem persists": "Please try again or contact support if the problem persists", "No documents found for your search filters.": "No documents found for your search filters.", - "API key copied to clipboard": "API key copied to clipboard", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", - "Personal keys": "Personal keys", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Last used", "No expiry": "No expiry", + "API key copied to clipboard": "API key copied to clipboard", "Copied": "Copied", "Revoking": "Revoking", "Are you sure you want to revoke the {{ tokenName }} token?": "Are you sure you want to revoke the {{ tokenName }} token?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment", "Mentioned": "Mentioned", "Receive a notification when someone mentions you in a document or comment": "Receive a notification when someone mentions you in a document or comment", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "Collection created", "Receive a notification whenever a new collection is created": "Receive a notification whenever a new collection is created", "Invite accepted": "Invite accepted", @@ -958,6 +961,8 @@ "Email address": "Email address", "Your email address should be updated in your SSO provider.": "Your email address should be updated in your SSO provider.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", + "Personal keys": "Personal keys", "Preferences saved": "Preferences saved", "Delete account": "Delete account", "Manage settings that affect your personal experience.": "Manage settings that affect your personal experience.", diff --git a/shared/i18n/locales/hu_HU/translation.json b/shared/i18n/locales/hu_HU/translation.json index ab57b30389..3283f78121 100644 --- a/shared/i18n/locales/hu_HU/translation.json +++ b/shared/i18n/locales/hu_HU/translation.json @@ -497,7 +497,7 @@ "Could not import file": "Fájl importálása nem lehetséges", "Unsubscribed from document": "Leiratkozott a dokumentumról", "Account": "Fiók", - "API": "API", + "API Keys": "API Keys", "Details": "Megjelenés", "Security": "Biztonság", "Features": "Funkciók", @@ -557,6 +557,7 @@ "created the collection": "létrehozta a gyűjteményt", "mentioned you in": "megemlített téged itt:", "left a comment on": "hozzászólt ehhez:", + "resolved a comment on": "resolved a comment on", "shared": "megosztva", "invited you to": "invited you to", "Choose a date": "Choose a date", @@ -829,11 +830,12 @@ "Something went wrong": "Something went wrong", "Please try again or contact support if the problem persists": "Please try again or contact support if the problem persists", "No documents found for your search filters.": "No documents found for your search filters.", - "API key copied to clipboard": "API key copied to clipboard", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", - "Personal keys": "Personal keys", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Last used", "No expiry": "No expiry", + "API key copied to clipboard": "API key copied to clipboard", "Copied": "Copied", "Revoking": "Revoking", "Are you sure you want to revoke the {{ tokenName }} token?": "Are you sure you want to revoke the {{ tokenName }} token?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment", "Mentioned": "Mentioned", "Receive a notification when someone mentions you in a document or comment": "Receive a notification when someone mentions you in a document or comment", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "Collection created", "Receive a notification whenever a new collection is created": "Receive a notification whenever a new collection is created", "Invite accepted": "Meghívás elfogadva", @@ -958,6 +961,8 @@ "Email address": "E-mail cím", "Your email address should be updated in your SSO provider.": "Your email address should be updated in your SSO provider.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", + "Personal keys": "Personal keys", "Preferences saved": "Beállítások elmentve", "Delete account": "Fiók törlése", "Manage settings that affect your personal experience.": "Manage settings that affect your personal experience.", diff --git a/shared/i18n/locales/id_ID/translation.json b/shared/i18n/locales/id_ID/translation.json index ad027a5ca1..c49b304643 100644 --- a/shared/i18n/locales/id_ID/translation.json +++ b/shared/i18n/locales/id_ID/translation.json @@ -497,7 +497,7 @@ "Could not import file": "Tidak dapat mengimpor berkas", "Unsubscribed from document": "Unsubscribed from document", "Account": "Akun", - "API": "API", + "API Keys": "API Keys", "Details": "Rincian", "Security": "Keamanan", "Features": "Fitur", @@ -557,6 +557,7 @@ "created the collection": "created the collection", "mentioned you in": "mentioned you in", "left a comment on": "left a comment on", + "resolved a comment on": "resolved a comment on", "shared": "shared", "invited you to": "invited you to", "Choose a date": "Choose a date", @@ -829,11 +830,12 @@ "Something went wrong": "Something went wrong", "Please try again or contact support if the problem persists": "Please try again or contact support if the problem persists", "No documents found for your search filters.": "Tidak ada dokumen yang ditemukan untuk filter pencarian Anda.", - "API key copied to clipboard": "API key copied to clipboard", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", - "Personal keys": "Personal keys", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Last used", "No expiry": "No expiry", + "API key copied to clipboard": "API key copied to clipboard", "Copied": "Disalin", "Revoking": "Mencabut", "Are you sure you want to revoke the {{ tokenName }} token?": "Apakah Anda yakin ingin mencabut token {{ tokenName }}?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Terima pemberitahuan saat dokumen langganan Anda atau utas yang Anda ikuti menerima komentar", "Mentioned": "Di-mention", "Receive a notification when someone mentions you in a document or comment": "Terima pemberitahuan ketika seseorang me-mention Anda dalam dokumen atau komentar", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "Koleksi dibuat", "Receive a notification whenever a new collection is created": "Terima pemberitahuan setiap kali koleksi baru dibuat", "Invite accepted": "Undangan diterima", @@ -958,6 +961,8 @@ "Email address": "Alamat surel", "Your email address should be updated in your SSO provider.": "Alamat surel Anda harus diperbarui di penyedia SSO Anda.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "Integrasi email saat ini dinonaktifkan. Harap setel variabel environment terkait dan mulai ulang server untuk mengaktifkan notifikasi.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", + "Personal keys": "Personal keys", "Preferences saved": "Preferensi disimpan", "Delete account": "Hapus akun", "Manage settings that affect your personal experience.": "Kelola pengaturan yang memengaruhi pengalaman pribadi Anda.", diff --git a/shared/i18n/locales/it_IT/translation.json b/shared/i18n/locales/it_IT/translation.json index 91d570f99e..b98490be7d 100644 --- a/shared/i18n/locales/it_IT/translation.json +++ b/shared/i18n/locales/it_IT/translation.json @@ -497,7 +497,7 @@ "Could not import file": "Impossibile importare il file", "Unsubscribed from document": "Unsubscribed from document", "Account": "Account", - "API": "API", + "API Keys": "API Keys", "Details": "Dettagli", "Security": "Sicurezza", "Features": "Caratteristiche", @@ -557,6 +557,7 @@ "created the collection": "created the collection", "mentioned you in": "mentioned you in", "left a comment on": "left a comment on", + "resolved a comment on": "resolved a comment on", "shared": "shared", "invited you to": "invited you to", "Choose a date": "Choose a date", @@ -829,11 +830,12 @@ "Something went wrong": "Something went wrong", "Please try again or contact support if the problem persists": "Please try again or contact support if the problem persists", "No documents found for your search filters.": "Nessun documento trovato per i tuoi filtri.", - "API key copied to clipboard": "API key copied to clipboard", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", - "Personal keys": "Personal keys", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Last used", "No expiry": "No expiry", + "API key copied to clipboard": "API key copied to clipboard", "Copied": "Copiato", "Revoking": "Sto revocando", "Are you sure you want to revoke the {{ tokenName }} token?": "Sei sicuro di voler revocare il token {{ tokenName }}?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Ricevi una notifica quando un documento a cui sei iscritto o un argomento a cui hai partecipato riceve un commento", "Mentioned": "Ha menzionato", "Receive a notification when someone mentions you in a document or comment": "Ricevi una notifica quando qualcuno ti menziona in un documento o in un commento", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "Raccolta creata", "Receive a notification whenever a new collection is created": "Ricevi una notifica ogni volta che viene creata una nuova raccolta", "Invite accepted": "Invito accettato", @@ -958,6 +961,8 @@ "Email address": "Indirizzo email", "Your email address should be updated in your SSO provider.": "Il tuo indirizzo email deve essere aggiornato nel tuo provider SSO.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "L'integrazione email è attualmente disabilitata. Imposta le variabili di ambiente associate e riavvia il server per abilitare le notifiche.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", + "Personal keys": "Personal keys", "Preferences saved": "Impostazioni salvate", "Delete account": "Elimina l'account", "Manage settings that affect your personal experience.": "Gestisci le impostazioni che influenzano la tua esperienza personale.", diff --git a/shared/i18n/locales/ja_JP/translation.json b/shared/i18n/locales/ja_JP/translation.json index 4d3833b3a0..2b1c0064a8 100644 --- a/shared/i18n/locales/ja_JP/translation.json +++ b/shared/i18n/locales/ja_JP/translation.json @@ -497,7 +497,7 @@ "Could not import file": "ファイルをインポートできませんでした", "Unsubscribed from document": "ドキュメントの通知を解除しました", "Account": "アカウント", - "API": "API", + "API Keys": "API Keys", "Details": "詳細情報", "Security": "セキュリティ", "Features": "機能", @@ -557,6 +557,7 @@ "created the collection": "コレクションを作成しました", "mentioned you in": "あなたがメンションされました", "left a comment on": "がコメントを残しました", + "resolved a comment on": "resolved a comment on", "shared": "共有済み", "invited you to": "あなたを招待しました", "Choose a date": "日付を選択", @@ -829,11 +830,12 @@ "Something went wrong": "エラーが発生しました", "Please try again or contact support if the problem persists": "問題が解決しない場合は、もう一度やり直すか、サポートにお問い合わせください", "No documents found for your search filters.": "検索条件に該当するドキュメントは見つかりませんでした", - "API key copied to clipboard": "API キーをクリップボードにコピーしました", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "あなたのワークスペースのデータをプログラムで制御するためにパーソナル API キーを作成します。\nAPI キーはあなたのアカウントと同じ権限を持ちます。詳しくは 開発者向けドキュメント を参照してください。", - "Personal keys": "パーソナルキー", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "最終使用日", "No expiry": "無期限", + "API key copied to clipboard": "API キーをクリップボードにコピーしました", "Copied": "コピーしました", "Revoking": "無効化しています", "Are you sure you want to revoke the {{ tokenName }} token?": "トークン {{ tokenName }} を失効します\nよろしいですか?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "通知を有効にしているドキュメントや参加したスレッドにコメントされたときに通知を受け取る", "Mentioned": "メンション", "Receive a notification when someone mentions you in a document or comment": "誰かがあなたをドキュメントやコメントでメンションしたときに通知を受け取る", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "コレクションが作成されました", "Receive a notification whenever a new collection is created": "新しいコレクションが作成されたときに通知を受け取る", "Invite accepted": "招待が承認されました", @@ -958,6 +961,8 @@ "Email address": "メールアドレス", "Your email address should be updated in your SSO provider.": "SSO プロバイダーの設定でメールアドレスを更新する必要があります。", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "現在、メールとの連携は無効になっています。\n通知を有効にするためには、関連する環境変数を正しく設定し、サーバーを再起動してください。", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "あなたのワークスペースのデータをプログラムで制御するためにパーソナル API キーを作成します。\nAPI キーはあなたのアカウントと同じ権限を持ちます。詳しくは 開発者向けドキュメント を参照してください。", + "Personal keys": "パーソナルキー", "Preferences saved": "設定を保存しました", "Delete account": "アカウントの削除", "Manage settings that affect your personal experience.": "個人的な体験を設定します。", diff --git a/shared/i18n/locales/ko_KR/translation.json b/shared/i18n/locales/ko_KR/translation.json index 14173530ec..db2d381b58 100644 --- a/shared/i18n/locales/ko_KR/translation.json +++ b/shared/i18n/locales/ko_KR/translation.json @@ -17,7 +17,7 @@ "Archiving": "보관", "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.": "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.", "Restore": "복원하기", - "Collection restored": "Collection restored", + "Collection restored": "컬렉션 복구됨", "Delete": "삭제", "Delete collection": "컬렉션 삭제", "New template": "새 템플릿", @@ -25,8 +25,8 @@ "Mark as resolved": "해결됨으로 표시", "Thread resolved": "스레드 해결됨", "Mark as unresolved": "미해결로 표시", - "View reactions": "View reactions", - "Reactions": "Reactions", + "View reactions": "컬렉션 보기", + "Reactions": "반응", "Copy ID": "ID 복사", "Clear IndexedDB cache": "IndexedDB 캐시 삭제", "IndexedDB cache cleared": "IndexedDB 캐시 삭제됨", @@ -81,7 +81,7 @@ "Move": "이동", "Move to collection": "컬렉션으로 이동", "Move {{ documentType }}": "{{ documentType }} 문서 이동", - "Are you sure you want to archive this document?": "Are you sure you want to archive this document?", + "Are you sure you want to archive this document?": "정말로 이 문서를 아카이브 하시겠습니까?", "Document archived": "문서가 보관되었습니다", "Archiving this document will remove it from the collection and search results.": "Archiving this document will remove it from the collection and search results.", "Delete {{ documentName }}": "{{ documentName }} 삭제", @@ -94,9 +94,9 @@ "Insights": "문서 정보", "Disable viewer insights": "뷰어 정보 비활성화", "Enable viewer insights": "뷰어 정보 활성화", - "Leave document": "Leave document", - "You have left the shared document": "You have left the shared document", - "Could not leave document": "Could not leave document", + "Leave document": "문서 나가기", + "You have left the shared document": "공유 문서 나갔습니다", + "Could not leave document": "문서를 나갈 수 없습니다", "Home": "홈", "Drafts": "임시 보관함", "Trash": "휴지통", @@ -196,8 +196,8 @@ "Install now": "지금 설치", "Deleted Collection": "삭제 된 콜렉션", "Unpin": "고정 해제", - "Select a location to copy": "Select a location to copy", - "Document copied": "Document copied", + "Select a location to copy": "복사할 위치 선택\n", + "Document copied": "문서가 복사되었습니다", "Couldn’t copy the document, try again?": "Couldn’t copy the document, try again?", "Include nested documents": "중첩된 문서 포함", "Copy to {{ location }}": "Copy to {{ location }}", @@ -310,7 +310,7 @@ "{{ firstUsername }} and {{ secondUsername }} reacted with {{ emoji }}": "{{ firstUsername }} and {{ secondUsername }} reacted with {{ emoji }}", "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}": "{{ firstUsername }} and {{ count }} other reacted with {{ emoji }}", "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}_plural": "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}", - "Add reaction": "Add reaction", + "Add reaction": "리액션 추가", "Reaction picker": "Reaction picker", "Could not load reactions": "Could not load reactions", "Reaction": "Reaction", @@ -497,7 +497,7 @@ "Could not import file": "파일을 가져올 수 없음", "Unsubscribed from document": "문서 구독이 취소됨", "Account": "계정", - "API": "API", + "API Keys": "API Keys", "Details": "세부 정보", "Security": "보안", "Features": "실험적 기능", @@ -557,6 +557,7 @@ "created the collection": "컬렉션 만들기", "mentioned you in": "당신을 언급했습니다", "left a comment on": "댓글을 남겼습니다", + "resolved a comment on": "resolved a comment on", "shared": "공유됨", "invited you to": "당신을 초대하였습니다:", "Choose a date": "날짜를 선택하세요", @@ -601,9 +602,9 @@ "No comments yet": "아직 댓글이 없습니다.", "New comments": "New comments", "Sort comments": "Sort comments", - "Most recent": "Most recent", - "Order in doc": "Order in doc", - "Resolved": "Resolved", + "Most recent": "최신 순", + "Order in doc": "문서 내 정렬", + "Resolved": "해결 됨", "Show {{ count }} reply": "Show {{ count }} reply", "Show {{ count }} reply_plural": "Show {{ count }} replies", "Error updating comment": "댓글을 업데이트하는 중에 오류가 발생했습니다.", @@ -829,11 +830,12 @@ "Something went wrong": "문제가 발생했습니다", "Please try again or contact support if the problem persists": "다시 한 번 시도해 보시고 문제가 계속된다면 문의해주세요", "No documents found for your search filters.": "검색조건과 맞는 문서를 찾을 수 없습니다.", - "API key copied to clipboard": "API 키가 클립보드에 복사됨", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "개인 API 키를 만들어 API 인증 후 워크스페이스 데이터를\n 프로그래밍 방식으로 제어하세요. API 키는 사용자 계정과 동일한 권한을 가집니다.\n 자세한 내용은 개발자 문서를 참조하세요.", - "Personal keys": "개인 키", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "최근 사용", "No expiry": "만료 없음", + "API key copied to clipboard": "API 키가 클립보드에 복사됨", "Copied": "복사됨", "Revoking": "취소", "Are you sure you want to revoke the {{ tokenName }} token?": "{{ tokenName }} 토큰을 취소하시겠습니까?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "구독 중인 문서 또는 참여한 스레드가 댓글을 받으면 알림을 받습니다.", "Mentioned": "언급됨", "Receive a notification when someone mentions you in a document or comment": "다른 사람이 문서나 댓글에서 나를 언급하면 알림을 받습니다.", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "컬렉션 생성됨", "Receive a notification whenever a new collection is created": "새 컬렉션이 생성될 때마다 알림을 받습니다", "Invite accepted": "초대 수락됨", @@ -958,6 +961,8 @@ "Email address": "이메일 주소", "Your email address should be updated in your SSO provider.": "SSO 공급자에서 이메일 주소를 업데이트해야 합니다.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "이메일 통합은 현재 비활성화되어 있습니다. 관련 환경 변수를 설정하고 서버를 다시 시작하여 알림을 활성화하십시오.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "개인 API 키를 만들어 API 인증 후 워크스페이스 데이터를\n 프로그래밍 방식으로 제어하세요. API 키는 사용자 계정과 동일한 권한을 가집니다.\n 자세한 내용은 개발자 문서를 참조하세요.", + "Personal keys": "개인 키", "Preferences saved": "설정 저장됨", "Delete account": "계정 삭제", "Manage settings that affect your personal experience.": "개인 경험에 영향을 미치는 설정을 관리합니다.", diff --git a/shared/i18n/locales/nb_NO/translation.json b/shared/i18n/locales/nb_NO/translation.json index 82bfdbb463..ee8dce4f0d 100644 --- a/shared/i18n/locales/nb_NO/translation.json +++ b/shared/i18n/locales/nb_NO/translation.json @@ -497,7 +497,7 @@ "Could not import file": "Kunne ikke importere fil", "Unsubscribed from document": "Avsluttet abonnement fra dokument", "Account": "Konto", - "API": "API", + "API Keys": "API Keys", "Details": "Detaljer", "Security": "Sikkerhet", "Features": "Funksjoner", @@ -557,6 +557,7 @@ "created the collection": "opprettet samlingen", "mentioned you in": "nevnte deg i", "left a comment on": "la igjen en kommentar på", + "resolved a comment on": "resolved a comment on", "shared": "delt", "invited you to": "inviterte deg til", "Choose a date": "Velg en dato", @@ -829,11 +830,12 @@ "Something went wrong": "Noe gikk galt", "Please try again or contact support if the problem persists": "Prøv igjen eller kontakt kundestøtte hvis problemet vedvarer", "No documents found for your search filters.": "Ingen dokumenter funnet for søkefiltrene dine.", - "API key copied to clipboard": "API-nøkkel kopiert til utklippstavlen", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Opprett en personlig API-nøkkel for å legitimere deg ved bruk av APIet. API-nøkler har samme tilgang som din brukerkonto. For mer informasjon se utviklerdokumentasjonen.", - "Personal keys": "Personlige nøkler", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Sist brukt", "No expiry": "Ingen utløpsdato", + "API key copied to clipboard": "API-nøkkel kopiert til utklippstavlen", "Copied": "Kopiert", "Revoking": "Tilbakekaller", "Are you sure you want to revoke the {{ tokenName }} token?": "Er du sikker på at du vil tilbakekalle {{ tokenName }} token?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Motta en varsling når et dokument du abonnerer på eller en tråd du har deltatt i mottar en kommentar", "Mentioned": "Nevnt", "Receive a notification when someone mentions you in a document or comment": "Motta en varsling når noen nevner deg i et dokument eller en kommentar", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "Samling opprettet", "Receive a notification whenever a new collection is created": "Motta en varsling når en ny samling opprettes", "Invite accepted": "Invitasjon akseptert", @@ -958,6 +961,8 @@ "Email address": "E-postadresse", "Your email address should be updated in your SSO provider.": "Din e-postadresse kan bare endres hos SSO-leverandøren du bruker til å logge inn med.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "E-postintegrasjonen er for øyeblikket deaktivert. Vennligst sett de tilhørende miljøvariablene og start serveren på nytt for å aktivere varslinger.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Opprett en personlig API-nøkkel for å legitimere deg ved bruk av APIet. API-nøkler har samme tilgang som din brukerkonto. For mer informasjon se utviklerdokumentasjonen.", + "Personal keys": "Personlige nøkler", "Preferences saved": "Preferanser lagret", "Delete account": "Slett konto", "Manage settings that affect your personal experience.": "Administrer innstillinger som påvirker din personlige opplevelse.", diff --git a/shared/i18n/locales/nl_NL/translation.json b/shared/i18n/locales/nl_NL/translation.json index 1b19ce1496..c7e2d147d8 100644 --- a/shared/i18n/locales/nl_NL/translation.json +++ b/shared/i18n/locales/nl_NL/translation.json @@ -497,7 +497,7 @@ "Could not import file": "Kon bestand niet importeren", "Unsubscribed from document": "Afgemeld voor document", "Account": "Account", - "API": "API", + "API Keys": "API Keys", "Details": "Details", "Security": "Beveiliging", "Features": "Features", @@ -557,6 +557,7 @@ "created the collection": "maakte de collectie", "mentioned you in": "vermeldde je", "left a comment on": "liet een reactie achter op", + "resolved a comment on": "resolved a comment on", "shared": "gedeeld", "invited you to": "heeft je uitgenodigd voor", "Choose a date": "Kies een datum", @@ -829,11 +830,12 @@ "Something went wrong": "Something went wrong", "Please try again or contact support if the problem persists": "Please try again or contact support if the problem persists", "No documents found for your search filters.": "Geen documenten gevonden voor je zoekfilters.", - "API key copied to clipboard": "API key copied to clipboard", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", - "Personal keys": "Persoonlijke sleutels", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Laatst gebruikt", "No expiry": "Geen vervaldatum", + "API key copied to clipboard": "API key copied to clipboard", "Copied": "Gekopieerd", "Revoking": "Intrekken", "Are you sure you want to revoke the {{ tokenName }} token?": "Weet je zeker dat je de {{ tokenName }} token wilt intrekken?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Ontvang een melding wanneer een document waarop je geabonneerd bent, of een thread waaraan je hebt deelgenomen, een opmerking ontvangt", "Mentioned": "Vermeld", "Receive a notification when someone mentions you in a document or comment": "Ontvang een melding wanneer iemand je vermeldt in een document of opmerking", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "Collectie aangemaakt", "Receive a notification whenever a new collection is created": "Ontvang een melding wanneer een nieuwe collectie wordt gemaakt", "Invite accepted": "Uitnodiging geaccepteerd", @@ -958,6 +961,8 @@ "Email address": "E-mailadres", "Your email address should be updated in your SSO provider.": "Je e-mailadres moet worden bijgewerkt in je SSO-provider.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "De e-mailintegratie is momenteel uitgeschakeld. Stel de bijbehorende omgevingsvariabelen in en herstart de server om meldingen in te schakelen.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", + "Personal keys": "Persoonlijke sleutels", "Preferences saved": "Voorkeuren opgeslagen", "Delete account": "Verwijder account", "Manage settings that affect your personal experience.": "Beheer instellingen die van invloed zijn op je persoonlijke ervaring.", diff --git a/shared/i18n/locales/pl_PL/translation.json b/shared/i18n/locales/pl_PL/translation.json index 26ef6a15d3..adcf014981 100644 --- a/shared/i18n/locales/pl_PL/translation.json +++ b/shared/i18n/locales/pl_PL/translation.json @@ -497,7 +497,7 @@ "Could not import file": "Nie można zaimportować pliku", "Unsubscribed from document": "Wypisano z dokumentu", "Account": "Konto", - "API": "API", + "API Keys": "API Keys", "Details": "Szczegóły", "Security": "Bezpieczeństwo", "Features": "Funkcje", @@ -557,6 +557,7 @@ "created the collection": "utworzył kolekcję", "mentioned you in": "wspomniał o tobie w", "left a comment on": "zostawił komentarz na", + "resolved a comment on": "resolved a comment on", "shared": "udostępnione", "invited you to": "zaprosił cię do", "Choose a date": "Wybierz datę", @@ -829,11 +830,12 @@ "Something went wrong": "Coś poszło nie tak", "Please try again or contact support if the problem persists": "Spróbuj ponownie lub skontaktuj się z pomocą techniczną, jeśli problem będzie się powtarzał.", "No documents found for your search filters.": "Nie znaleziono dokumentów dla Twoich filtrów wyszukiwania.", - "API key copied to clipboard": "Klucz API został skopiowany do schowka", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Utwórz osobiste klucze API, aby uwierzytelnić się z API i programowo kontrolować\n dane swojego obszaru roboczego. Klucze API mają takie same uprawnienia jak Twoje konto użytkownika.\n Aby uzyskać więcej szczegółów, zobacz dokumentację API .", - "Personal keys": "Klucze prywatne", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Ostatnio używane", "No expiry": "Brak terminu ważności", + "API key copied to clipboard": "Klucz API został skopiowany do schowka", "Copied": "Skopiowano", "Revoking": "Unieważnianie...", "Are you sure you want to revoke the {{ tokenName }} token?": "Czy na pewno chcesz unieważnić token {{ tokenName }}?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Otrzymuj powiadomienie, gdy dokument, który subskrybujesz, lub wątek, w którym uczestniczyłeś, otrzyma komentarz", "Mentioned": "Wspomniany", "Receive a notification when someone mentions you in a document or comment": "Otrzymuj powiadomienie, gdy ktoś wspomni o Tobie w dokumencie lub komentarzu", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "Kolekcja utworzona", "Receive a notification whenever a new collection is created": "Otrzymuj powiadomienie o każdym utworzeniu nowej kolekcji", "Invite accepted": "Zaproszenie przyjęte", @@ -958,6 +961,8 @@ "Email address": "Adres e-mail", "Your email address should be updated in your SSO provider.": "Twój adres e-mail powinien zostać zaktualizowany u dostawcy usługi SSO.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "Integracja e-mail jest obecnie wyłączona. Ustaw powiązane zmienne środowiskowe i uruchom ponownie serwer, aby włączyć powiadomienia.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Utwórz osobiste klucze API, aby uwierzytelnić się z API i programowo kontrolować\n dane swojego obszaru roboczego. Klucze API mają takie same uprawnienia jak Twoje konto użytkownika.\n Aby uzyskać więcej szczegółów, zobacz dokumentację API .", + "Personal keys": "Klucze prywatne", "Preferences saved": "Preferencje zostały zapisane", "Delete account": "Usuń konto", "Manage settings that affect your personal experience.": "Zarządzaj ustawieniami, które wpływają na Twoje osobiste doświadczenia.", diff --git a/shared/i18n/locales/pt_BR/translation.json b/shared/i18n/locales/pt_BR/translation.json index d15b55fd34..2bbf2c347b 100644 --- a/shared/i18n/locales/pt_BR/translation.json +++ b/shared/i18n/locales/pt_BR/translation.json @@ -497,7 +497,7 @@ "Could not import file": "Não foi possível importar o arquivo", "Unsubscribed from document": "Cancelada inscrição do documento", "Account": "Conta", - "API": "API", + "API Keys": "API Keys", "Details": "Detalhes", "Security": "Segurança", "Features": "Funcionalidades", @@ -557,6 +557,7 @@ "created the collection": "criou a coleção", "mentioned you in": "mencionou você em", "left a comment on": "deixou um comentário em", + "resolved a comment on": "resolved a comment on", "shared": "compartilhado", "invited you to": "convidou você para", "Choose a date": "Escolhar uma data", @@ -829,11 +830,12 @@ "Something went wrong": "Algo deu errado", "Please try again or contact support if the problem persists": "Tente novamente ou entre em contato com o suporte se o problema persistir", "No documents found for your search filters.": "Nenhum documento encontrado para seus filtros de pesquisa.", - "API key copied to clipboard": "Chave da API copiada para a área de transferência", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Crie chaves de API pessoais para autenticar com a API e controlar programaticamente os dados de\n do espaço de trabalho. Chaves API têm as mesmas permissões que a sua conta de usuário.\n Para mais detalhes, consulte a documentação para desenvolvedores.", - "Personal keys": "Chaves pessoais", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Última utilização", "No expiry": "Não expira", + "API key copied to clipboard": "Chave da API copiada para a área de transferência", "Copied": "Copiado", "Revoking": "Revogando", "Are you sure you want to revoke the {{ tokenName }} token?": "Tem certeza de que deseja revogar a chave de api {{ tokenName }}?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Receber uma notificação quando um documento que você está inscrito ou um tópico em que você participou recebe um comentário", "Mentioned": "Mencionado", "Receive a notification when someone mentions you in a document or comment": "Receba uma notificação quando alguém mencionar você em um documento ou comentário", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "Coleção criada", "Receive a notification whenever a new collection is created": "Receba uma notificação sempre que uma nova coleção for criada", "Invite accepted": "Convite aceito", @@ -958,6 +961,8 @@ "Email address": "Endereço de Email", "Your email address should be updated in your SSO provider.": "Seu endereço de e-mail deve ser atualizado no seu provedor SSO.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "A integração de e-mail está atualmente desativada. Defina as variáveis de ambiente associadas e reinicie o servidor para ativar as notificações.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Crie chaves de API pessoais para autenticar com a API e controlar programaticamente os dados de\n do espaço de trabalho. Chaves API têm as mesmas permissões que a sua conta de usuário.\n Para mais detalhes, consulte a documentação para desenvolvedores.", + "Personal keys": "Chaves pessoais", "Preferences saved": "Preferências salvas", "Delete account": "Excluir a conta", "Manage settings that affect your personal experience.": "Gerencie as configurações que afetam sua experiência pessoal.", diff --git a/shared/i18n/locales/pt_PT/translation.json b/shared/i18n/locales/pt_PT/translation.json index fa01271943..bdf546b856 100644 --- a/shared/i18n/locales/pt_PT/translation.json +++ b/shared/i18n/locales/pt_PT/translation.json @@ -497,7 +497,7 @@ "Could not import file": "Não foi possível importar o ficheiro", "Unsubscribed from document": "Desinscrever do documento", "Account": "Conta", - "API": "API", + "API Keys": "API Keys", "Details": "Detalhes", "Security": "Segurança", "Features": "Funcionalidades", @@ -557,6 +557,7 @@ "created the collection": "criar coleção", "mentioned you in": "mencionou-te em", "left a comment on": "deixou um comentário em", + "resolved a comment on": "resolved a comment on", "shared": "partilhado", "invited you to": "convidou-o para", "Choose a date": "Escolher data", @@ -829,11 +830,12 @@ "Something went wrong": "Ocorreu um erro", "Please try again or contact support if the problem persists": "Tente novamente ou contate o suporte se o problema persistir", "No documents found for your search filters.": "Nenhum documento encontrado para os seus filtros.", - "API key copied to clipboard": "A chave API foi copiada para a área de transferência", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Crie chaves de API pessoais para autenticar com a API e controlar programaticamente os dados de\n da área de trabalho. Chaves API têm as mesmas permissões que a sua conta de usuário.\n Para mais detalhes, consulte a documentação de desenvolvedor do.", - "Personal keys": "Chaves pessoais", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Última utilização", "No expiry": "Sem expiração", + "API key copied to clipboard": "A chave API foi copiada para a área de transferência", "Copied": "Copiado", "Revoking": "A revogar", "Are you sure you want to revoke the {{ tokenName }} token?": "Tem certeza que quer revogar o token {{ tokenName }}?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Receber notificação quando um documento em que está inscrito ou um tópico em que participou receber um comentário", "Mentioned": "Mencionado", "Receive a notification when someone mentions you in a document or comment": "Receber notificação quando alguém o mencionar num documento ou comentário", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "Coleção criada", "Receive a notification whenever a new collection is created": "Receber notificação sempre que novo documento for publicado", "Invite accepted": "Convite aceite", @@ -958,6 +961,8 @@ "Email address": "Endereço de e-mail", "Your email address should be updated in your SSO provider.": "O seu endereço de e-mail deve ser atualizado no provedor SSO.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "A integração de e-mail está inativa. Por favor, defina as variáveis de ambiente associadas e reinicie o servidor para habilitar notificações.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Crie chaves de API pessoais para autenticar com a API e controlar programaticamente os dados de\n da área de trabalho. Chaves API têm as mesmas permissões que a sua conta de usuário.\n Para mais detalhes, consulte a documentação de desenvolvedor do.", + "Personal keys": "Chaves pessoais", "Preferences saved": "Preferências guardadas", "Delete account": "Apagar conta", "Manage settings that affect your personal experience.": "Faça a gestão das configurações que afetam a sua experiência pessoal.", diff --git a/shared/i18n/locales/sv_SE/translation.json b/shared/i18n/locales/sv_SE/translation.json index 7297d3e92c..649c1f78e8 100644 --- a/shared/i18n/locales/sv_SE/translation.json +++ b/shared/i18n/locales/sv_SE/translation.json @@ -497,7 +497,7 @@ "Could not import file": "Kan inte importera fil", "Unsubscribed from document": "Prenumeration avslutad från dokument", "Account": "Konto", - "API": "API", + "API Keys": "API Keys", "Details": "Detaljer", "Security": "Säkerhet", "Features": "Funktioner", @@ -557,6 +557,7 @@ "created the collection": "skapade samlingen", "mentioned you in": "nämnde dig i", "left a comment on": "lämnade en kommentar på", + "resolved a comment on": "resolved a comment on", "shared": "delad", "invited you to": "bjöd in dig till", "Choose a date": "Välj ett datum", @@ -829,11 +830,12 @@ "Something went wrong": "Något gick fel", "Please try again or contact support if the problem persists": "Vänligen försök igen eller kontakta supporten om problemet kvarstår", "No documents found for your search filters.": "Inga dokument funna för dina sökfilter.", - "API key copied to clipboard": "API-nyckel kopierad till urklipp", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Skapa personliga API-nycklar för att autentisera dig med API:et och styra din arbetsytas data på ett systematiskt sätt. API-nycklar har samma behörigheter som ditt användarkonto. För mer information se utvecklardokumentationen.", - "Personal keys": "Personliga nycklar", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Senast använd", "No expiry": "Ingen utgång", + "API key copied to clipboard": "API-nyckel kopierad till urklipp", "Copied": "Kopierad", "Revoking": "Återkallar", "Are you sure you want to revoke the {{ tokenName }} token?": "Är du säker på att du vill återkalla {{ tokenName }} -token?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Få ett meddelande när ett dokument du prenumererar på eller en tråd du deltog i får en kommentar", "Mentioned": "Omnämnd", "Receive a notification when someone mentions you in a document or comment": "Få ett meddelande när någon nämner dig i ett dokument eller en kommentar", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "Samling skapad", "Receive a notification whenever a new collection is created": "Få ett meddelande när en ny samling skapas", "Invite accepted": "Inbjudan: accepterad", @@ -958,6 +961,8 @@ "Email address": "E-postadress", "Your email address should be updated in your SSO provider.": "Din e-postadress måste uppdateras i din SSO-leverantör.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "E-postintegrationen är för närvarande inaktiverad. Ställ in de associerade miljövariablerna och starta om servern för att aktivera aviseringar.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Skapa personliga API-nycklar för att autentisera dig med API:et och styra din arbetsytas data på ett systematiskt sätt. API-nycklar har samma behörigheter som ditt användarkonto. För mer information se utvecklardokumentationen.", + "Personal keys": "Personliga nycklar", "Preferences saved": "Inställningar sparade", "Delete account": "Radera konto", "Manage settings that affect your personal experience.": "Hantera inställningar som påverkar din personliga upplevelse.", diff --git a/shared/i18n/locales/th_TH/translation.json b/shared/i18n/locales/th_TH/translation.json index 8e02619798..5cfccec8bd 100644 --- a/shared/i18n/locales/th_TH/translation.json +++ b/shared/i18n/locales/th_TH/translation.json @@ -497,7 +497,7 @@ "Could not import file": "ไม่สามารถนำเข้าไฟล์ได้", "Unsubscribed from document": "Unsubscribed from document", "Account": "บัญชีผู้ใช้", - "API": "API", + "API Keys": "API Keys", "Details": "ราย​ละเอียด", "Security": "ความปลอดภัย", "Features": "คุณสมบัติ", @@ -557,6 +557,7 @@ "created the collection": "created the collection", "mentioned you in": "mentioned you in", "left a comment on": "left a comment on", + "resolved a comment on": "resolved a comment on", "shared": "shared", "invited you to": "invited you to", "Choose a date": "Choose a date", @@ -829,11 +830,12 @@ "Something went wrong": "Something went wrong", "Please try again or contact support if the problem persists": "Please try again or contact support if the problem persists", "No documents found for your search filters.": "No documents found for your search filters.", - "API key copied to clipboard": "API key copied to clipboard", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", - "Personal keys": "Personal keys", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Last used", "No expiry": "No expiry", + "API key copied to clipboard": "API key copied to clipboard", "Copied": "Copied", "Revoking": "Revoking", "Are you sure you want to revoke the {{ tokenName }} token?": "Are you sure you want to revoke the {{ tokenName }} token?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment", "Mentioned": "Mentioned", "Receive a notification when someone mentions you in a document or comment": "Receive a notification when someone mentions you in a document or comment", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "Collection created", "Receive a notification whenever a new collection is created": "Receive a notification whenever a new collection is created", "Invite accepted": "Invite accepted", @@ -958,6 +961,8 @@ "Email address": "Email address", "Your email address should be updated in your SSO provider.": "Your email address should be updated in your SSO provider.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", + "Personal keys": "Personal keys", "Preferences saved": "Preferences saved", "Delete account": "Delete account", "Manage settings that affect your personal experience.": "Manage settings that affect your personal experience.", diff --git a/shared/i18n/locales/tr_TR/translation.json b/shared/i18n/locales/tr_TR/translation.json index 06ac236e67..eef05d30ce 100644 --- a/shared/i18n/locales/tr_TR/translation.json +++ b/shared/i18n/locales/tr_TR/translation.json @@ -497,7 +497,7 @@ "Could not import file": "Dosya içe aktarılamadı", "Unsubscribed from document": "Unsubscribed from document", "Account": "Hesap", - "API": "API", + "API Keys": "API Keys", "Details": "Ayrıntılar", "Security": "Güvenlik", "Features": "Özellikler", @@ -557,6 +557,7 @@ "created the collection": "created the collection", "mentioned you in": "mentioned you in", "left a comment on": "left a comment on", + "resolved a comment on": "resolved a comment on", "shared": "shared", "invited you to": "invited you to", "Choose a date": "Choose a date", @@ -829,11 +830,12 @@ "Something went wrong": "Something went wrong", "Please try again or contact support if the problem persists": "Please try again or contact support if the problem persists", "No documents found for your search filters.": "Arama filtreleriniz için belge bulunamadı.", - "API key copied to clipboard": "API key copied to clipboard", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", - "Personal keys": "Personal keys", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Last used", "No expiry": "No expiry", + "API key copied to clipboard": "API key copied to clipboard", "Copied": "Copied", "Revoking": "Revoking", "Are you sure you want to revoke the {{ tokenName }} token?": "Are you sure you want to revoke the {{ tokenName }} token?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment", "Mentioned": "Mentioned", "Receive a notification when someone mentions you in a document or comment": "Receive a notification when someone mentions you in a document or comment", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "Koleksiyon oluşturuldu", "Receive a notification whenever a new collection is created": "Yeni bir koleksiyon oluşturulduğunda bildirim alın", "Invite accepted": "Invite accepted", @@ -958,6 +961,8 @@ "Email address": "E-posta adresi", "Your email address should be updated in your SSO provider.": "E-posta adresiniz SSO sağlayıcınızda güncellenmelidir.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "E-posta entegrasyonu şu anda devre dışı. Lütfen ilişkili ortam değişkenlerini ayarlayın ve bildirimleri etkinleştirmek için sunucuyu yeniden başlatın.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", + "Personal keys": "Personal keys", "Preferences saved": "Preferences saved", "Delete account": "Hesabı sil", "Manage settings that affect your personal experience.": "Manage settings that affect your personal experience.", diff --git a/shared/i18n/locales/uk_UA/translation.json b/shared/i18n/locales/uk_UA/translation.json index 02f83b27e5..5ee0374090 100644 --- a/shared/i18n/locales/uk_UA/translation.json +++ b/shared/i18n/locales/uk_UA/translation.json @@ -497,7 +497,7 @@ "Could not import file": "Не вдалося імпортувати файл", "Unsubscribed from document": "Unsubscribed from document", "Account": "Обліковий запис", - "API": "API", + "API Keys": "API Keys", "Details": "Деталі", "Security": "Безпека", "Features": "Фічі", @@ -557,6 +557,7 @@ "created the collection": "створено колекцію", "mentioned you in": "згадав вас у", "left a comment on": "залишив коментар до", + "resolved a comment on": "resolved a comment on", "shared": "shared", "invited you to": "invited you to", "Choose a date": "Choose a date", @@ -829,11 +830,12 @@ "Something went wrong": "Something went wrong", "Please try again or contact support if the problem persists": "Please try again or contact support if the problem persists", "No documents found for your search filters.": "Не знайдено жодного документу за вашими фільтрами.", - "API key copied to clipboard": "API key copied to clipboard", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", - "Personal keys": "Personal keys", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Last used", "No expiry": "No expiry", + "API key copied to clipboard": "API key copied to clipboard", "Copied": "Скопійовано", "Revoking": "Анулювання", "Are you sure you want to revoke the {{ tokenName }} token?": "Ви впевнені, що хочете відкликати {{ tokenName }} токен?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Отримувати сповіщення, коли документ, на який ви підписані, або ланцюжок, у якому ви брали участь, отримує коментар", "Mentioned": "Згадано", "Receive a notification when someone mentions you in a document or comment": "Отримувати сповіщення, коли хтось згадує вас у документі чи коментарі", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "Колекція створена", "Receive a notification whenever a new collection is created": "Отримувати сповіщення щоразу, коли публікується новий документ", "Invite accepted": "Запрошення прийнято", @@ -958,6 +961,8 @@ "Email address": "Адреса електронної пошти", "Your email address should be updated in your SSO provider.": "Вашу адресу електронної пошти слід оновити в системі єдиного входу вашого провайдера SSO.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "Інтеграцію електронної пошти наразі вимкнено. Встановіть відповідні змінні середовища та перезапустіть сервер, щоб увімкнути сповіщення.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", + "Personal keys": "Personal keys", "Preferences saved": "Налаштування збережено", "Delete account": "Видалити обліковий запис", "Manage settings that affect your personal experience.": "Керувати налаштуваннями, які впливають на ваш особистий досвід.", diff --git a/shared/i18n/locales/vi_VN/translation.json b/shared/i18n/locales/vi_VN/translation.json index c41b3a83ff..a5cad9adda 100644 --- a/shared/i18n/locales/vi_VN/translation.json +++ b/shared/i18n/locales/vi_VN/translation.json @@ -497,7 +497,7 @@ "Could not import file": "Không thể nhập file", "Unsubscribed from document": "Unsubscribed from document", "Account": "Tài khoản", - "API": "API", + "API Keys": "API Keys", "Details": "Chi tiết", "Security": "Bảo mật", "Features": "Các tính năng", @@ -557,6 +557,7 @@ "created the collection": "created the collection", "mentioned you in": "mentioned you in", "left a comment on": "left a comment on", + "resolved a comment on": "resolved a comment on", "shared": "được chia sẻ", "invited you to": "invited you to", "Choose a date": "Choose a date", @@ -829,11 +830,12 @@ "Something went wrong": "Something went wrong", "Please try again or contact support if the problem persists": "Please try again or contact support if the problem persists", "No documents found for your search filters.": "Không tìm thấy tài liệu nào cho bộ lọc tìm kiếm của bạn.", - "API key copied to clipboard": "API key copied to clipboard", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", - "Personal keys": "Personal keys", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "Last used", "No expiry": "No expiry", + "API key copied to clipboard": "API key copied to clipboard", "Copied": "\u001dĐã sao chép", "Revoking": "Đang thu hồi", "Are you sure you want to revoke the {{ tokenName }} token?": "Bạn có chắc chắn muốn thu hồi Token {{ tokenName }} không?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "Nhận thông báo khi tài liệu bạn đã đăng ký hoặc chủ đề bạn tham gia nhận được nhận xét", "Mentioned": "Được nhắc đến", "Receive a notification when someone mentions you in a document or comment": "Nhận thông báo khi ai đó đề cập đến bạn trong tài liệu hoặc nhận xét", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "Bộ sưu tập đã được tạo", "Receive a notification whenever a new collection is created": "Nhận thông báo bất cứ khi nào một bộ sưu tập mới được tạo", "Invite accepted": "Đã chấp nhận Lời mời", @@ -958,6 +961,8 @@ "Email address": "Địa chỉ email", "Your email address should be updated in your SSO provider.": "Địa chỉ email của bạn phải được cập nhật trong nhà cung cấp SSO của bạn.", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "Tích hợp email hiện đã bị vô hiệu hóa. Vui lòng đặt các biến môi trường được liên kết và khởi động lại máy chủ để bật thông báo.", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", + "Personal keys": "Personal keys", "Preferences saved": "Lưu tùy chọn", "Delete account": "Xoá tài khoản", "Manage settings that affect your personal experience.": "Quản lý cài đặt ảnh hưởng đến trải nghiệm cá nhân của bạn.", diff --git a/shared/i18n/locales/zh_CN/translation.json b/shared/i18n/locales/zh_CN/translation.json index 4707625b5c..53b86e832f 100644 --- a/shared/i18n/locales/zh_CN/translation.json +++ b/shared/i18n/locales/zh_CN/translation.json @@ -497,7 +497,7 @@ "Could not import file": "无法导入文件", "Unsubscribed from document": "取消订阅文档", "Account": "账号", - "API": "API", + "API Keys": "API Keys", "Details": "详情", "Security": "安全性", "Features": "功能", @@ -557,6 +557,7 @@ "created the collection": "文档集已创建", "mentioned you in": "提及你在", "left a comment on": "留下评论在", + "resolved a comment on": "resolved a comment on", "shared": "已共享", "invited you to": "邀请你加入", "Choose a date": "选择一个日期", @@ -829,11 +830,12 @@ "Something went wrong": "出现了一些错误", "Please try again or contact support if the problem persists": "如果问题持续存在,请重试或联系支持人员。", "No documents found for your search filters.": "没有为你的搜索筛选找到文档。", - "API key copied to clipboard": "API key 已复制到剪贴板", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "创建个人的 API key 以通过 API 进行身份验证并在程序上控制\n 你的工作区数据。 API key 与你的用户帐户具有相同的权限。\n 关于更多详细信息,请参阅 开发者文档。", - "Personal keys": "私人 keys", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "最后使用的", "No expiry": "没有到期", + "API key copied to clipboard": "API key 已复制到剪贴板", "Copied": "已复制", "Revoking": "吊销中", "Are you sure you want to revoke the {{ tokenName }} token?": "确认吊销这个 {{ tokenName }} token 吗?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "每当你订阅的文档或参与的话题收到评论时收到通知", "Mentioned": "被提及", "Receive a notification when someone mentions you in a document or comment": "每当有人在文档或评论中提及你时收到通知", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "已创建文档集", "Receive a notification whenever a new collection is created": "每当创建新文档集时收到通知", "Invite accepted": "邀请已被接受", @@ -958,6 +961,8 @@ "Email address": "电子邮件地址", "Your email address should be updated in your SSO provider.": "你的电子邮件地址应该在你的 SSO 提供商中更新。", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "电子邮件集成当前已禁用。请设置相关的环境变量并重新启动服务器以启用通知。", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "创建个人的 API key 以通过 API 进行身份验证并在程序上控制\n 你的工作区数据。 API key 与你的用户帐户具有相同的权限。\n 关于更多详细信息,请参阅 开发者文档。", + "Personal keys": "私人 keys", "Preferences saved": "首选项已保存", "Delete account": "删除账户", "Manage settings that affect your personal experience.": "管理影响你个人体验的设置。", diff --git a/shared/i18n/locales/zh_TW/translation.json b/shared/i18n/locales/zh_TW/translation.json index 5692582a33..e3879fdc10 100644 --- a/shared/i18n/locales/zh_TW/translation.json +++ b/shared/i18n/locales/zh_TW/translation.json @@ -497,7 +497,7 @@ "Could not import file": "無法匯入檔案", "Unsubscribed from document": "取消訂閱文件", "Account": "帳號", - "API": "API", + "API Keys": "API Keys", "Details": "詳細", "Security": "安全性", "Features": "功能特色", @@ -557,6 +557,7 @@ "created the collection": "建立文件集", "mentioned you in": "提到了您:", "left a comment on": "發表評論", + "resolved a comment on": "resolved a comment on", "shared": "已分享", "invited you to": "邀請您到", "Choose a date": "選擇日期", @@ -829,11 +830,12 @@ "Something went wrong": "發生了某些錯誤", "Please try again or contact support if the problem persists": "Please try again or contact support if the problem persists", "No documents found for your search filters.": "沒有符合篩選條件的文件。", - "API key copied to clipboard": "API 金鑰已複製到剪貼簿", - "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", - "Personal keys": "個人金鑰", + "API": "API", + "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.": "API keys can be used to authenticate with the API and programatically control\n your workspace's data. For more details see the developer documentation.", + "by {{ name }}": "by {{ name }}", "Last used": "最近使用", "No expiry": "永久有效", + "API key copied to clipboard": "API 金鑰已複製到剪貼簿", "Copied": "已複製", "Revoking": "撤銷中", "Are you sure you want to revoke the {{ tokenName }} token?": "您確定要撤銷 {{ tokenName }} 權杖嗎?", @@ -938,6 +940,7 @@ "Receive a notification when a document you are subscribed to or a thread you participated in receives a comment": "當您訂閱的文件或參與的話題收到評論時收到通知", "Mentioned": "提及到", "Receive a notification when someone mentions you in a document or comment": "當有人在文件或評論中提及您時收到通知", + "Receive a notification when a comment thread you were involved in is resolved": "Receive a notification when a comment thread you were involved in is resolved", "Collection created": "文件集已建立", "Receive a notification whenever a new collection is created": "當新的文件集建立時接收通知", "Invite accepted": "邀請已被接受", @@ -958,6 +961,8 @@ "Email address": "電子郵件地址", "Your email address should be updated in your SSO provider.": "您應在您的 SSO 服務供應商中更新您的的電子郵件地址。", "The email integration is currently disabled. Please set the associated environment variables and restart the server to enable notifications.": "電子郵件整合目前已停用,若要啟用通知,請設定相關的環境變數並重新啟動伺服器", + "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.": "Create personal API keys to authenticate with the API and programatically control\n your workspace's data. API keys have the same permissions as your user account.\n For more details see the developer documentation.", + "Personal keys": "個人金鑰", "Preferences saved": "已保存偏好設定", "Delete account": "刪除帳號", "Manage settings that affect your personal experience.": "管理影響您個人體驗的設定。", From 133db9c22cb75c1a6ba72058ac732c3284b9d643 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 18 Dec 2024 10:18:09 +0900 Subject: [PATCH 20/41] Improve error message when database URI contains invalid characters, closes #8110 --- server/storage/database.ts | 62 +++++++++++++++++++++++--------------- 1 file changed, 38 insertions(+), 24 deletions(-) diff --git a/server/storage/database.ts b/server/storage/database.ts index 3bb8134995..c3d3c0055c 100644 --- a/server/storage/database.ts +++ b/server/storage/database.ts @@ -21,30 +21,44 @@ export function createDatabaseInstance( InferCreationAttributes >; } -) { - return new Sequelize(databaseUrl, { - logging: (msg) => - process.env.DEBUG?.includes("database") && Logger.debug("database", msg), - typeValidation: true, - logQueryParameters: env.isDevelopment, - dialectOptions: { - ssl: - env.isProduction && !isSSLDisabled - ? { - // Ref.: https://github.com/brianc/node-postgres/issues/2009 - rejectUnauthorized: false, - } - : false, - }, - models: Object.values(input), - pool: { - max: poolMax, - min: poolMin, - acquire: 30000, - idle: 10000, - }, - schema, - }); +): Sequelize { + try { + return new Sequelize(databaseUrl, { + logging: (msg) => + process.env.DEBUG?.includes("database") && + Logger.debug("database", msg), + typeValidation: true, + logQueryParameters: env.isDevelopment, + dialectOptions: { + ssl: + env.isProduction && !isSSLDisabled + ? { + // Ref.: https://github.com/brianc/node-postgres/issues/2009 + rejectUnauthorized: false, + } + : false, + }, + models: Object.values(input), + pool: { + max: poolMax, + min: poolMin, + acquire: 30000, + idle: 10000, + }, + schema, + }); + } catch (error) { + if (error instanceof URIError) { + Logger.fatal( + "Could not connect to database", + new Error( + `Failed to parse: ${databaseUrl}, ensure special characters in database URL are properly encoded` + ) + ); + process.exit(1); + } + throw error; + } } /** From 2397196be880be79ec791a055ae22405dfd8c752 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 18 Dec 2024 10:27:26 +0900 Subject: [PATCH 21/41] fix: Shared document header always in mobile styling, closes #8121 --- app/scenes/Document/components/Header.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/app/scenes/Document/components/Header.tsx b/app/scenes/Document/components/Header.tsx index 9bbe3b1626..e8ca318dcc 100644 --- a/app/scenes/Document/components/Header.tsx +++ b/app/scenes/Document/components/Header.tsx @@ -199,6 +199,7 @@ function DocumentHeader({ if (shareId) { return ( From f17926f912749a5422dcdb45cc3c4bb79831ec8a Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 18 Dec 2024 10:46:06 +0900 Subject: [PATCH 22/41] fix: Update slate to WCAG AA compliant, closes #8113 --- shared/styles/theme.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/styles/theme.ts b/shared/styles/theme.ts index 67d2a2dbde..6d30f5a3d5 100644 --- a/shared/styles/theme.ts +++ b/shared/styles/theme.ts @@ -8,7 +8,7 @@ const defaultColors: Colors = { lightBlack: "#2F3336", almostWhite: "#E6E6E6", veryDarkBlue: "#08090C", - slate: "#9BA6B2", + slate: "#66778F", slateLight: "#DAE1E9", slateDark: "#394351", smoke: "#F4F7FA", From 9b68e6835e3970bd05b5f0a4d4a045712991f09e Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 18 Dec 2024 11:07:39 +0900 Subject: [PATCH 23/41] fix: Reduce visual strength of collection in doc breadcrumb --- app/components/DocumentMeta.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/components/DocumentMeta.tsx b/app/components/DocumentMeta.tsx index bc4160461f..5eee8d17dd 100644 --- a/app/components/DocumentMeta.tsx +++ b/app/components/DocumentMeta.tsx @@ -185,9 +185,9 @@ const DocumentMeta: React.FC = ({ {showCollection && collection && (  {t("in")}  - + - + )} {showParentDocuments && nestedDocumentsCount > 0 && ( @@ -210,6 +210,10 @@ const DocumentMeta: React.FC = ({ ); }; +const Strong = styled.strong` + font-weight: 550; +`; + const Container = styled(Flex)<{ rtl?: boolean }>` justify-content: ${(props) => (props.rtl ? "flex-end" : "flex-start")}; color: ${s("textTertiary")}; From 1e5d2818709572f9b772a33b45dc22271d222ba9 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 19 Dec 2024 06:57:05 +0900 Subject: [PATCH 24/41] chore: Improve warning for SMTP_FROM_EMAIL not set, closes #8125 --- server/emails/templates/BaseEmail.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/emails/templates/BaseEmail.tsx b/server/emails/templates/BaseEmail.tsx index 13c9e1a4a9..0744bfb51f 100644 --- a/server/emails/templates/BaseEmail.tsx +++ b/server/emails/templates/BaseEmail.tsx @@ -55,7 +55,7 @@ export default abstract class BaseEmail< if (!env.SMTP_FROM_EMAIL) { Logger.info( "email", - `Email ${this.constructor.name} not sent due to missing SMTP configuration` + `Email ${this.constructor.name} not sent due to missing SMTP_FROM_EMAIL configuration` ); return; } From 77e8dbefd670043615d6e526bba9bc8ee68db3b1 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 19 Dec 2024 09:43:49 +0900 Subject: [PATCH 25/41] fix: Ensure signed urls on shared documents are valid longer than 60s --- server/presenters/document.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/presenters/document.ts b/server/presenters/document.ts index 792095363f..201239429b 100644 --- a/server/presenters/document.ts +++ b/server/presenters/document.ts @@ -1,3 +1,4 @@ +import { Hour } from "@shared/utils/time"; import { traceFunction } from "@server/logging/tracing"; import { Document } from "@server/models"; import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; @@ -31,7 +32,7 @@ async function presentDocument( document, options.isPublic ? { - signedUrls: 60, + signedUrls: Hour.seconds, teamId: document.teamId, removeMarks: ["comment"], internalUrlBase: `/s/${options.shareId}`, From 02aa4c2928018795427bf0f6a824efe4c411bee3 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 19 Dec 2024 09:48:21 +0900 Subject: [PATCH 26/41] fix: Consider CDN urls to not be internal --- shared/utils/urls.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/shared/utils/urls.ts b/shared/utils/urls.ts index 6860539736..e6b110cb35 100644 --- a/shared/utils/urls.ts +++ b/shared/utils/urls.ts @@ -121,7 +121,12 @@ export const creatingUrlPrefix = "creating#"; * @returns True if the url is external, false otherwise. */ export function isExternalUrl(url: string) { - return !!url && !isInternalUrl(url) && !url.startsWith(creatingUrlPrefix); + return ( + !!url && + !isInternalUrl(url) && + !url.startsWith(creatingUrlPrefix) && + (!env.CDN_URL || !url.startsWith(env.CDN_URL)) + ); } /** From b9f0f67fb2c5a8c5fef6cd5276f5095d4976686f Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 19 Dec 2024 14:39:16 +0900 Subject: [PATCH 27/41] chore: Tidy mention menu, remove unneccessary component --- app/components/ContextMenu/MenuItem.tsx | 2 ++ app/editor/components/MentionMenu.tsx | 5 ++--- app/editor/components/MentionMenuItem.tsx | 18 ------------------ app/editor/components/SuggestionsMenuItem.tsx | 9 +++++++++ shared/editor/types/index.ts | 1 + 5 files changed, 14 insertions(+), 21 deletions(-) delete mode 100644 app/editor/components/MentionMenuItem.tsx diff --git a/app/components/ContextMenu/MenuItem.tsx b/app/components/ContextMenu/MenuItem.tsx index 2a3e76dd56..96d8c964c1 100644 --- a/app/components/ContextMenu/MenuItem.tsx +++ b/app/components/ContextMenu/MenuItem.tsx @@ -109,6 +109,8 @@ const Title = styled.div` ${ellipsis()} flex-grow: 1; display: flex; + align-items: center; + gap: 8px; `; type MenuAnchorProps = { diff --git a/app/editor/components/MentionMenu.tsx b/app/editor/components/MentionMenu.tsx index 5e676d92be..8f7c33028d 100644 --- a/app/editor/components/MentionMenu.tsx +++ b/app/editor/components/MentionMenu.tsx @@ -13,10 +13,10 @@ import Flex from "~/components/Flex"; import useRequest from "~/hooks/useRequest"; import useStores from "~/hooks/useStores"; import { client } from "~/utils/ApiClient"; -import MentionMenuItem from "./MentionMenuItem"; import SuggestionsMenu, { Props as SuggestionsMenuProps, } from "./SuggestionsMenu"; +import SuggestionsMenuItem from "./SuggestionsMenuItem"; interface MentionItem extends MenuItem { name: string; @@ -122,11 +122,10 @@ function MentionMenu({ search, isActive, ...rest }: Props) { search={search} onSelect={handleSelect} renderMenuItem={(item, _index, options) => ( - & { - label: string; -}; - -export default function MentionMenuItem({ - label, - ...rest -}: MentionMenuItemProps) { - return ; -} diff --git a/app/editor/components/SuggestionsMenuItem.tsx b/app/editor/components/SuggestionsMenuItem.tsx index 4aa57a62d2..a64d4a8df6 100644 --- a/app/editor/components/SuggestionsMenuItem.tsx +++ b/app/editor/components/SuggestionsMenuItem.tsx @@ -15,6 +15,8 @@ export type Props = { icon?: React.ReactElement; /** The title of the item */ title: React.ReactNode; + /** An optional subtitle for the item */ + subtitle?: React.ReactNode; /** A string representing the keyboard shortcut for the item */ shortcut?: string; }; @@ -24,6 +26,7 @@ function SuggestionsMenuItem({ disabled, onClick, title, + subtitle, shortcut, icon, }: Props) { @@ -53,11 +56,17 @@ function SuggestionsMenuItem({ icon={icon} > {title} + {subtitle && {subtitle}} {shortcut && {shortcut}} ); } +const Subtitle = styled.span<{ $active?: boolean }>` + color: ${(props) => + props.$active ? props.theme.white50 : props.theme.textTertiary}; +`; + const Shortcut = styled.span<{ $active?: boolean }>` color: ${(props) => props.$active ? props.theme.white50 : props.theme.textTertiary}; diff --git a/shared/editor/types/index.ts b/shared/editor/types/index.ts index 7267ab448e..17b3623524 100644 --- a/shared/editor/types/index.ts +++ b/shared/editor/types/index.ts @@ -19,6 +19,7 @@ export type MenuItem = { icon?: React.ReactElement; name?: string; title?: string; + subtitle?: string; shortcut?: string; keywords?: string; tooltip?: string; From ce55719626cf8340f102e17fe91ee03019b41c22 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Thu, 19 Dec 2024 17:07:10 +0900 Subject: [PATCH 28/41] chore: Print emails to console when Ethereal unavailable (offline) --- server/emails/mailer.tsx | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/server/emails/mailer.tsx b/server/emails/mailer.tsx index 1141fca96f..b2a1296ed7 100644 --- a/server/emails/mailer.tsx +++ b/server/emails/mailer.tsx @@ -125,7 +125,18 @@ export class Mailer { if (!transporter) { Logger.info( "email", - `Attempted to send email "${data.subject}" to ${data.to} but no transport configured.` + [ + `Attempted to send email but no transport configured.`, + ``, + `--------------`, + `From: ${data.from.address}`, + `To: ${data.to}`, + `Subject: ${data.subject}`, + `Preview: ${data.previewText}`, + `--------------`, + ``, + data.text, + ].join("\n") ); return; } From 2b4c8d981cd9599e24b94a7433625739386e8fc6 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 24 Dec 2024 09:30:23 -0800 Subject: [PATCH 29/41] chore(deps-dev): bump nodemon from 3.1.7 to 3.1.9 (#8135) Bumps [nodemon](https://github.com/remy/nodemon) from 3.1.7 to 3.1.9. - [Release notes](https://github.com/remy/nodemon/releases) - [Commits](https://github.com/remy/nodemon/compare/v3.1.7...v3.1.9) --- updated-dependencies: - dependency-name: nodemon dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index a08e8c0c03..245d80229c 100644 --- a/package.json +++ b/package.json @@ -348,7 +348,7 @@ "jest-environment-jsdom": "^29.7.0", "jest-fetch-mock": "^3.0.3", "lint-staged": "^13.3.0", - "nodemon": "^3.1.7", + "nodemon": "^3.1.9", "postinstall-postinstall": "^2.1.0", "prettier": "^2.8.8", "react-refresh": "^0.14.2", diff --git a/yarn.lock b/yarn.lock index 5f8ee92437..e72d75ea22 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11939,10 +11939,10 @@ nodemailer@^6.9.14: resolved "https://registry.yarnpkg.com/nodemailer/-/nodemailer-6.9.14.tgz#845fda981f9fd5ac264f4446af908a7c78027f75" integrity sha512-Dobp/ebDKBvz91sbtRKhcznLThrKxKt97GI2FAlAyy+fk19j73Uz3sBXolVtmcXjaorivqsbbbjDY+Jkt4/bQA== -nodemon@^3.1.7: - version "3.1.7" - resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-3.1.7.tgz#07cb1f455f8bece6a499e0d72b5e029485521a54" - integrity sha512-hLj7fuMow6f0lbB0cD14Lz2xNjwsyruH251Pk4t/yIitCFJbmY1myuLlHm/q06aST4jg6EgAh74PIBBrRqpVAQ== +nodemon@^3.1.9: + version "3.1.9" + resolved "https://registry.yarnpkg.com/nodemon/-/nodemon-3.1.9.tgz#df502cdc3b120e1c3c0c6e4152349019efa7387b" + integrity sha512-hdr1oIb2p6ZSxu3PB2JWWYS7ZQ0qvaZsc3hK8DR8f02kRzc8rjYmxAIvdz+aYC+8F2IjNaB7HMcSDg8nQpJxyg== dependencies: chokidar "^3.5.2" debug "^4" From 1fa0a5ea98038f5ee6789a5bbf359a1cbafa1995 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 24 Dec 2024 09:30:57 -0800 Subject: [PATCH 30/41] chore(deps): bump i18next-fs-backend from 2.3.2 to 2.6.0 (#8136) Bumps [i18next-fs-backend](https://github.com/i18next/i18next-fs-backend) from 2.3.2 to 2.6.0. - [Changelog](https://github.com/i18next/i18next-fs-backend/blob/master/CHANGELOG.md) - [Commits](https://github.com/i18next/i18next-fs-backend/compare/v2.3.2...v2.6.0) --- updated-dependencies: - dependency-name: i18next-fs-backend dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 245d80229c..80f16c0c2f 100644 --- a/package.json +++ b/package.json @@ -124,7 +124,7 @@ "glob": "^8.1.0", "http-errors": "2.0.0", "i18next": "^22.5.1", - "i18next-fs-backend": "^2.3.2", + "i18next-fs-backend": "^2.6.0", "i18next-http-backend": "^2.5.0", "invariant": "^2.2.4", "ioredis": "^5.4.1", diff --git a/yarn.lock b/yarn.lock index e72d75ea22..1c1c33e70f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9499,10 +9499,10 @@ husky@^8.0.3: resolved "https://registry.yarnpkg.com/husky/-/husky-8.0.3.tgz#4936d7212e46d1dea28fef29bb3a108872cd9184" integrity sha512-+dQSyqPh4x1hlO1swXBiNb2HzTDN1I2IGLQx1GrBuiqFJfoMrnZWwVmatvSiO+Iz8fBUnf+lekwNo4c2LlXItg== -i18next-fs-backend@^2.3.2: - version "2.3.2" - resolved "https://registry.yarnpkg.com/i18next-fs-backend/-/i18next-fs-backend-2.3.2.tgz#580b91c9a306b452112e0a1ad3b07e9fd266e567" - integrity sha512-LIwUlkqDZnUI8lnUxBnEj8K/FrHQTT/Sc+1rvDm9E8YvvY5YxzoEAASNx+W5M9DfD5s77lI5vSAFWeTp26B/3Q== +i18next-fs-backend@^2.6.0: + version "2.6.0" + resolved "https://registry.yarnpkg.com/i18next-fs-backend/-/i18next-fs-backend-2.6.0.tgz#7b6b54c5ffc2a5073e47eda0673c002376fa1a3c" + integrity sha512-3ZlhNoF9yxnM8pa8bWp5120/Ob6t4lVl1l/tbLmkml/ei3ud8IWySCHt2lrY5xWRlSU5D9IV2sm5bEbGuTqwTw== i18next-http-backend@^2.5.0: version "2.5.0" From 85b62d31467a616aaac6abc7df903d12a57dfa01 Mon Sep 17 00:00:00 2001 From: Translate-O-Tron <75237327+outline-translations@users.noreply.github.com> Date: Tue, 24 Dec 2024 18:38:02 +0100 Subject: [PATCH 31/41] New Crowdin updates (#8132) * fix: New Dutch translations from Crowdin [ci skip] * fix: New Korean translations from Crowdin [ci skip] --- shared/i18n/locales/ko_KR/translation.json | 20 ++++++++++---------- shared/i18n/locales/nl_NL/translation.json | 14 +++++++------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/shared/i18n/locales/ko_KR/translation.json b/shared/i18n/locales/ko_KR/translation.json index db2d381b58..b6df89798c 100644 --- a/shared/i18n/locales/ko_KR/translation.json +++ b/shared/i18n/locales/ko_KR/translation.json @@ -12,10 +12,10 @@ "Star": "중요 문서 표시", "Unstar": "중요 문서 해제", "Archive": "보관", - "Archive collection": "Archive collection", - "Collection archived": "Collection archived", + "Archive collection": "아카이브 컬렉션", + "Collection archived": "컬렉션 아카이브됨", "Archiving": "보관", - "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.": "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.", + "Archiving this collection will also archive all documents within it. Documents from the collection will no longer be visible in search results.": "이 컬렉션을 아카이브하면 컬렉션에 포함된 문서 또한 아카이브됩니다. 컬렉션의 문서는 더 이상 검색 결과에 표시되지 않습니다.", "Restore": "복원하기", "Collection restored": "컬렉션 복구됨", "Delete": "삭제", @@ -173,7 +173,7 @@ "Are you sure you want to permanently delete this entire comment thread?": "이 쓰레드에 있는 댓글들을 영구적으로 삭제하시겠습니까?", "Are you sure you want to permanently delete this comment?": "정말로 이 댓글을 영구적으로 삭제하시겠습니까?", "Confirm": "확인", - "manage access": "manage access", + "manage access": "접근 관리", "view and edit access": "보기 및 편집 액세스", "view only access": "보기 전용 액세스", "no access": "접근 불가", @@ -313,7 +313,7 @@ "Add reaction": "리액션 추가", "Reaction picker": "Reaction picker", "Could not load reactions": "Could not load reactions", - "Reaction": "Reaction", + "Reaction": "리액션", "Results": "결과", "No results for {{query}}": "{{query}} 에 대한 검색결과가 없습니다.", "Manage": "관리", @@ -477,7 +477,7 @@ "Sort ascending": "오름차순 정렬", "Sort descending": "내림차순 정렬", "Table": "표", - "Export as CSV": "Export as CSV", + "Export as CSV": "CSV로 내보내기", "Toggle header": "토글 제목", "Math inline (LaTeX)": "인라인 수식 (LaTeX)", "Math block (LaTeX)": "수식 블록 (LaTeX)", @@ -515,8 +515,8 @@ "Export collection": "컬렉션 내보내기", "Rename": "이름변경", "Sort in sidebar": "사이드바 정렬", - "A-Z sort": "A-Z sort", - "Z-A sort": "Z-A sort", + "A-Z sort": "오름차순", + "Z-A sort": "내림차순", "Manual sort": "수동 정렬", "Comment options": "댓글 옵션", "Show document menu": "Show document menu", @@ -1089,8 +1089,8 @@ "Link your account in {{ appName }} settings to search from Slack": "Slack으로부터 검색하기 위하여 {{ appName }} 설정에서 계정을 연결하세요", "Configure a Umami installation to send views and analytics from the workspace to your own Umami instance.": "Configure a Umami installation to send views and analytics from the workspace to your own Umami instance.", "The URL of your Umami instance. If you are using Umami Cloud it will begin with {{ url }}": "The URL of your Umami instance. If you are using Umami Cloud it will begin with {{ url }}", - "Script name": "Script name", - "The name of the script file that Umami uses to track analytics.": "The name of the script file that Umami uses to track analytics.", + "Script name": "스크립트 이름", + "The name of the script file that Umami uses to track analytics.": "Umami가 분석을 추적하는 데 사용하는 스크립트 파일의 이름입니다.", "An ID that uniquely identifies the website in your Umami instance.": "An ID that uniquely identifies the website in your Umami instance.", "Are you sure you want to delete the {{ name }} webhook?": "{{ name }} 웹훅을 삭제하시겠습니까?", "Webhook updated": "웹훅 업데이트됨", diff --git a/shared/i18n/locales/nl_NL/translation.json b/shared/i18n/locales/nl_NL/translation.json index c7e2d147d8..5858aa2946 100644 --- a/shared/i18n/locales/nl_NL/translation.json +++ b/shared/i18n/locales/nl_NL/translation.json @@ -25,8 +25,8 @@ "Mark as resolved": "Markeer als opgelost", "Thread resolved": "Thread opgelost", "Mark as unresolved": "Markeer als onopgelost", - "View reactions": "View reactions", - "Reactions": "Reactions", + "View reactions": "Bekijk reacties", + "Reactions": "Reacties", "Copy ID": "Kopieer ID", "Clear IndexedDB cache": "Wis IndexedDB-cache", "IndexedDB cache cleared": "IndexedDB-cache gewist", @@ -310,7 +310,7 @@ "{{ firstUsername }} and {{ secondUsername }} reacted with {{ emoji }}": "{{ firstUsername }} and {{ secondUsername }} reacted with {{ emoji }}", "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}": "{{ firstUsername }} and {{ count }} other reacted with {{ emoji }}", "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}_plural": "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}", - "Add reaction": "Add reaction", + "Add reaction": "Voeg een reactie toe", "Reaction picker": "Reaction picker", "Could not load reactions": "Could not load reactions", "Reaction": "Reaction", @@ -326,7 +326,7 @@ "{{ count }} people and {{ count2 }} groups added to the collection": "{{ count }} people and {{ count2 }} groups added to the collection", "{{ count }} people and {{ count2 }} groups added to the collection_plural": "{{ count }} people and {{ count2 }} groups added to the collection", "Add": "Toevoegen", - "Add or invite": "Add or invite", + "Add or invite": "Toevoegen of uitnodigen", "Viewer": "Kijker", "Editor": "Bewerker", "Suggestions for invitation": "Suggestions for invitation", @@ -356,7 +356,7 @@ "Anyone with the link can access because the parent document, <2>{{documentTitle}}, is shared": "Iedereen met de link heeft toegang, omdat het bovenliggend document <2>{{documentTitle}} wordt gedeeld", "Allow anyone with the link to access": "Geef iedereen met de link toegang", "Publish to internet": "Publiceer op internet", - "Search engine indexing": "Search engine indexing", + "Search engine indexing": "Indexering zoekmachine", "Disable this setting to discourage search engines from indexing the page": "Disable this setting to discourage search engines from indexing the page", "Nested documents are not shared on the web. Toggle sharing to enable access, this will be the default behavior in the future": "Geneste documenten worden niet gedeeld op het web, schakel hiervoor delen in. Dit zal in de toekomst de standaardinstelling zijn.", "{{ userName }} was added to the document": "{{ userName }} was added to the document", @@ -493,11 +493,11 @@ "Indent": "Inspringen", "Outdent": "Uitspringen", "Video": "Video", - "None": "None", + "None": "Geen", "Could not import file": "Kon bestand niet importeren", "Unsubscribed from document": "Afgemeld voor document", "Account": "Account", - "API Keys": "API Keys", + "API Keys": "API-sleutels", "Details": "Details", "Security": "Beveiliging", "Features": "Features", From 86cfd62afa23b0ea40f7f0030d68e4b7bab710b5 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Wed, 25 Dec 2024 19:58:26 +0900 Subject: [PATCH 32/41] feat: Allow users to change email in-app (#8119) --- app/components/ConfirmationDialog.tsx | 9 +- app/components/UserDialogs.tsx | 74 ++++++++++- app/menus/UserMenu.tsx | 26 +++- app/scenes/Settings/Notifications.tsx | 17 +-- app/scenes/Settings/Profile.tsx | 26 +++- server/commands/userProvisioner.test.ts | 2 +- server/commands/userProvisioner.ts | 4 +- .../emails/templates/ConfirmUpdateEmail.tsx | 73 +++++++++++ server/errors.ts | 2 +- server/models/Team.ts | 12 +- server/models/User.ts | 29 +++++ server/routes/api/teams/teams.ts | 14 ++- .../users/__snapshots__/users.test.ts.snap | 27 ++++ server/routes/api/users/schema.ts | 20 +++ server/routes/api/users/users.test.ts | 82 ++++++++++++ server/routes/api/users/users.ts | 119 +++++++++++++++++- server/utils/jwt.ts | 33 +++++ shared/i18n/locales/en_US/translation.json | 10 +- shared/utils/routeHelpers.ts | 4 + 19 files changed, 543 insertions(+), 40 deletions(-) create mode 100644 server/emails/templates/ConfirmUpdateEmail.tsx diff --git a/app/components/ConfirmationDialog.tsx b/app/components/ConfirmationDialog.tsx index 299ebd3964..7475dfbf58 100644 --- a/app/components/ConfirmationDialog.tsx +++ b/app/components/ConfirmationDialog.tsx @@ -8,8 +8,8 @@ import Text from "~/components/Text"; import useStores from "~/hooks/useStores"; type Props = { - /** Callback when the dialog is submitted */ - onSubmit: () => Promise | void; + /** Callback when the dialog is submitted. Return false to prevent closing. */ + onSubmit: () => Promise | void; /** Text to display on the submit button */ submitText?: string; /** Text to display while the form is saving */ @@ -38,7 +38,10 @@ const ConfirmationDialog: React.FC = ({ ev.preventDefault(); setIsSaving(true); try { - await onSubmit(); + const res = await onSubmit(); + if (res === false) { + return; + } dialogs.closeAllModals(); } catch (err) { toast.error(err.message); diff --git a/app/components/UserDialogs.tsx b/app/components/UserDialogs.tsx index 74aac725eb..cbf6028583 100644 --- a/app/components/UserDialogs.tsx +++ b/app/components/UserDialogs.tsx @@ -1,10 +1,14 @@ import * as React from "react"; -import { useTranslation } from "react-i18next"; +import { Trans, useTranslation } from "react-i18next"; +import { toast } from "sonner"; import { UserRole } from "@shared/types"; import User from "~/models/User"; import ConfirmationDialog from "~/components/ConfirmationDialog"; import Input from "~/components/Input"; +import useCurrentUser from "~/hooks/useCurrentUser"; import useStores from "~/hooks/useStores"; +import { client } from "~/utils/ApiClient"; +import Text from "./Text"; type Props = { user: User; @@ -85,7 +89,11 @@ export function UserSuspendDialog({ user, onSubmit }: Props) { }; return ( - + {t( "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.", { @@ -123,6 +131,68 @@ export function UserChangeNameDialog({ user, onSubmit }: Props) { onChange={handleChange} error={!name ? t("Name can't be empty") : undefined} value={name} + autoSelect + required + flex + /> + + ); +} + +export function UserChangeEmailDialog({ user, onSubmit }: Props) { + const { t } = useTranslation(); + const actor = useCurrentUser(); + const [email, setEmail] = React.useState(user.email); + const [error, setError] = React.useState(); + + const handleSubmit = async () => { + try { + await client.post(`/users.updateEmail`, { id: user.id, email }); + onSubmit(); + toast.info( + actor.id === user.id + ? t("Check your email to verify the new address.") + : t("The email will be changed once verified.") + ); + return true; + } catch (err) { + setError(err.message); + return false; + } + }; + + const handleChange = (ev: React.ChangeEvent) => { + setEmail(ev.target.value); + }; + + return ( + + + {actor.id === user.id ? ( + + You will receive an email to verify your new address. It must be + unique in the workspace. + + ) : ( + + A confirmation email will be sent to the new address before it is + changed. + + )} + + diff --git a/app/menus/UserMenu.tsx b/app/menus/UserMenu.tsx index 8a1026c24e..5cc58638da 100644 --- a/app/menus/UserMenu.tsx +++ b/app/menus/UserMenu.tsx @@ -11,6 +11,7 @@ import Template from "~/components/ContextMenu/Template"; import { UserSuspendDialog, UserChangeNameDialog, + UserChangeEmailDialog, } from "~/components/UserDialogs"; import { actionToMenuItem } from "~/actions"; import { @@ -49,6 +50,22 @@ function UserMenu({ user }: Props) { [dialogs, t, user] ); + const handleChangeEmail = React.useCallback( + (ev: React.SyntheticEvent) => { + ev.preventDefault(); + dialogs.openModal({ + title: t("Change email"), + content: ( + + ), + }); + }, + [dialogs, t, user] + ); + const handleSuspend = React.useCallback( (ev: React.SyntheticEvent) => { ev.preventDefault(); @@ -117,7 +134,13 @@ function UserMenu({ user }: Props) { type: "button", title: `${t("Change name")}…`, onClick: handleChangeName, - visible: can.update && user.role !== "admin", + visible: can.update, + }, + { + type: "button", + title: `${t("Change email")}…`, + onClick: handleChangeEmail, + visible: can.update, }, { type: "button", @@ -144,6 +167,7 @@ function UserMenu({ user }: Props) { { type: "button", title: `${t("Suspend user")}…`, + dangerous: true, onClick: handleSuspend, visible: !user.isInvited && !user.isSuspended, }, diff --git a/app/scenes/Settings/Notifications.tsx b/app/scenes/Settings/Notifications.tsx index 162b09d825..479c6564eb 100644 --- a/app/scenes/Settings/Notifications.tsx +++ b/app/scenes/Settings/Notifications.tsx @@ -19,19 +19,22 @@ import { toast } from "sonner"; import { NotificationEventType } from "@shared/types"; import Flex from "~/components/Flex"; import Heading from "~/components/Heading"; -import Input from "~/components/Input"; import Notice from "~/components/Notice"; import Scene from "~/components/Scene"; import Switch from "~/components/Switch"; import Text from "~/components/Text"; import env from "~/env"; +import useCurrentTeam from "~/hooks/useCurrentTeam"; import useCurrentUser from "~/hooks/useCurrentUser"; +import usePolicy from "~/hooks/usePolicy"; import isCloudHosted from "~/utils/isCloudHosted"; import SettingRow from "./components/SettingRow"; function Notifications() { const user = useCurrentUser(); + const team = useCurrentTeam(); const { t } = useTranslation(); + const can = usePolicy(team.id); const options = [ { @@ -161,17 +164,7 @@ function Notifications() { Manage when and where you receive email notifications. - {env.EMAIL_ENABLED ? ( - - - - ) : ( + {env.EMAIL_ENABLED && can.manage && ( The email integration is currently disabled. Please set the diff --git a/app/scenes/Settings/Profile.tsx b/app/scenes/Settings/Profile.tsx index 5c5f127b53..cc04c58f09 100644 --- a/app/scenes/Settings/Profile.tsx +++ b/app/scenes/Settings/Profile.tsx @@ -8,14 +8,18 @@ import Heading from "~/components/Heading"; import Input from "~/components/Input"; import Scene from "~/components/Scene"; import Text from "~/components/Text"; +import { UserChangeEmailDialog } from "~/components/UserDialogs"; +import env from "~/env"; import useCurrentUser from "~/hooks/useCurrentUser"; +import useStores from "~/hooks/useStores"; import ImageInput from "./components/ImageInput"; import SettingRow from "./components/SettingRow"; const Profile = () => { const user = useCurrentUser(); + const { dialogs } = useStores(); const form = React.useRef(null); - const [name, setName] = React.useState(user.name || ""); + const [name, setName] = React.useState(user.name); const { t } = useTranslation(); const handleSubmit = async (ev: React.SyntheticEvent) => { @@ -29,6 +33,15 @@ const Profile = () => { } }; + const handleChangeEmail = () => { + dialogs.openModal({ + title: t("Change email"), + content: ( + + ), + }); + }; + const handleNameChange = (ev: React.ChangeEvent) => { setName(ev.target.value); }; @@ -81,6 +94,17 @@ const Profile = () => { /> + {env.EMAIL_ENABLED && ( + + + + )} + diff --git a/server/commands/userProvisioner.test.ts b/server/commands/userProvisioner.test.ts index f4ac0920be..88bc6259f8 100644 --- a/server/commands/userProvisioner.test.ts +++ b/server/commands/userProvisioner.test.ts @@ -437,7 +437,7 @@ describe("userProvisioner", () => { } expect(error && error.toString()).toContain( - "The domain is not allowed for this team" + "The domain is not allowed for this workspace" ); }); }); diff --git a/server/commands/userProvisioner.ts b/server/commands/userProvisioner.ts index 905bddbef0..f6221358a7 100644 --- a/server/commands/userProvisioner.ts +++ b/server/commands/userProvisioner.ts @@ -1,6 +1,5 @@ import { InferCreationAttributes } from "sequelize"; import { UserRole } from "@shared/types"; -import { parseEmail } from "@shared/utils/email"; import InviteAcceptedEmail from "@server/emails/templates/InviteAcceptedEmail"; import { DomainNotAllowedError, @@ -227,8 +226,7 @@ export default async function userProvisioner({ // If the team settings do not allow this domain, // throw an error and fail user creation. - const { domain } = parseEmail(email); - if (team && !(await team.isDomainAllowed(domain))) { + if (team && !(await team.isDomainAllowed(email))) { throw DomainNotAllowedError(); } diff --git a/server/emails/templates/ConfirmUpdateEmail.tsx b/server/emails/templates/ConfirmUpdateEmail.tsx new file mode 100644 index 0000000000..05b903513b --- /dev/null +++ b/server/emails/templates/ConfirmUpdateEmail.tsx @@ -0,0 +1,73 @@ +import * as React from "react"; +import env from "@server/env"; +import BaseEmail, { EmailMessageCategory, EmailProps } from "./BaseEmail"; +import Body from "./components/Body"; +import Button from "./components/Button"; +import EmailTemplate from "./components/EmailLayout"; +import EmptySpace from "./components/EmptySpace"; +import Footer from "./components/Footer"; +import Header from "./components/Header"; +import Heading from "./components/Heading"; + +type Props = EmailProps & { + code: string; + previous: string | null; + teamUrl: string; +}; + +/** + * Email sent to a user when they request to change their email. + */ +export default class ConfirmUpdateEmail extends BaseEmail { + protected get category() { + return EmailMessageCategory.Authentication; + } + + protected subject() { + return `Your email update request`; + } + + protected preview() { + return `Here’s your email change confirmation.`; + } + + protected renderAsText({ teamUrl, code, previous, to }: Props): string { + return ` +You requested to update your ${env.APP_NAME} account email. Please +follow the link below to confirm the change ${ + previous ? `from ${previous} ` : "" + }to ${to}. + + ${this.updateLink(teamUrl, code)} + `; + } + + protected render({ teamUrl, code, previous, to }: Props) { + return ( + +
+ + + Your email update request +

+ You requested to update your {env.APP_NAME} account email. Please + click below to confirm the change{" "} + {previous ? `from ${previous} ` : ""}to {to}. +

+ +

+ +

+ + +