diff --git a/.claude/skills/verify-outline/journeys/search-filters.mjs b/.claude/skills/verify-outline/journeys/search-filters.mjs new file mode 100644 index 0000000000..e18ddd8b48 --- /dev/null +++ b/.claude/skills/verify-outline/journeys/search-filters.mjs @@ -0,0 +1,156 @@ +// Drive the search filter bar: pinned chips, the "Filter" add menu, a pending +// chip that opens its options, a toggle filter, and removing a filter. +// Args: query= (a word in a document title, required), collection= (required). +export default async ({ page, click, step, args, log, psql, literal }) => { + if (!args.query || !args.collection) { + throw new Error("query= and collection= are required"); + } + await page.goto("/search"); + await page.waitForLoadState("networkidle"); + await step("empty"); + + // Every filter is available before a query is typed. + for (const name of [/^Collection$/, /^Edited by$/, /^Status/]) { + await page.getByRole("button", { name }).waitFor(); + } + await click(page.getByRole("button", { name: "More filters" })); + for (const name of ["Updated", "Created by", "Created", "Template", "Title only"]) { + await page.getByRole("menuitem", { name, exact: true }).waitFor(); + } + await step("empty-add-menu"); + await page.keyboard.press("Escape"); + + // A filter alone, with no query, lists results. + await click(page.getByRole("button", { name: "More filters" })); + await click(page.getByRole("menuitem", { name: "Updated", exact: true })); + await click(page.getByRole("menuitem", { name: "Past week" })); + await page.waitForURL(/updatedAt\.gte=-P1W/); + await page.getByRole("link", { name: new RegExp(args.query) }).last().waitFor(); + await step("filter-without-query"); + await click(page.getByRole("button", { name: "Remove filter" })); + await page.waitForURL((url) => !url.search.includes("updatedAt")); + + // A toggle filter alone, with no query, lists results. + await click(page.getByRole("button", { name: "More filters" })); + await click(page.getByRole("menuitem", { name: "Title only" })); + await page.waitForURL(/titleOnly=true/); + await page.getByRole("link", { name: new RegExp(args.query) }).last().waitFor(); + await step("title-only-without-query"); + await click(page.getByRole("button", { name: "Remove filter" })); + await page.waitForURL((url) => !url.search.includes("titleOnly")); + + // A document scope alone, with no query, lists results. + const [documentId] = await psql( + `select id from documents where title like ${literal(`%${args.query}%`)}` + ); + await page.goto(`/search?documentId=${documentId}`); + await page.getByRole("link", { name: new RegExp(args.query) }).last().waitFor(); + await step("document-scope-without-query"); + await page.goto("/search"); + + const box = page.getByRole("searchbox"); + await box.fill(args.query); + await box.press("Enter"); + await page.getByRole("link", { name: new RegExp(args.query) }).last().waitFor(); + await page.getByText("1 result", { exact: true }).waitFor(); + await step("results"); + + // Pinned chip: pick a collection. + await click(page.getByRole("button", { name: "Collection", exact: true })); + await click(page.getByRole("menuitem", { name: args.collection })); + await page.waitForURL(/collectionId\.eq=/); + await page.getByRole("link", { name: new RegExp(args.query) }).last().waitFor(); + await step("collection-chip"); + + // Extra filter: add "Created by", its options open on their own. + await click(page.getByRole("button", { name: "More filters" })); + await step("add-menu-open"); + await click(page.getByRole("menuitem", { name: "Created by" })); + const menu = page.getByRole("menu"); + await menu.waitFor({ timeout: 5000 }); + await step("created-by-options-open"); + await click(menu.getByRole("menuitem").first()); + await page.waitForURL(/createdById\.eq=/); + await page.getByRole("link", { name: new RegExp(args.query) }).last().waitFor(); + await step("created-by-chip"); + + // Toggle filter: "Title only" adds a chip with no options. + await click(page.getByRole("button", { name: "More filters" })); + await click(page.getByRole("menuitem", { name: "Title only" })); + await page.waitForURL(/titleOnly=true/); + await page.getByRole("link", { name: new RegExp(args.query) }).last().waitFor(); + await step("title-only-chip"); + + // Add a filter, then close its options without a value: the chip goes away. + await click(page.getByRole("button", { name: "More filters" })); + await click(page.getByRole("menuitem", { name: "Template" })); + await page.getByRole("menu").waitFor({ timeout: 5000 }); + await page.keyboard.press("Escape"); + await page.getByRole("menu").waitFor({ state: "detached", timeout: 5000 }); + const templateChips = await page + .getByRole("button", { name: /^Template/ }) + .count(); + if (templateChips !== 0) { + throw new Error("pending Template chip stayed after closing with no value"); + } + await step("pending-chip-removed"); + + // Remove filters with their × buttons. + const removeButtons = page.getByRole("button", { name: "Remove filter" }); + const before = await removeButtons.count(); + await click(removeButtons.last()); + await page.waitForURL((url) => !url.search.includes("titleOnly")); + const after = await removeButtons.count(); + if (after !== before - 1) { + throw new Error(`expected ${before - 1} remove buttons, saw ${after}`); + } + await step("title-only-removed"); + + await page.reload(); + await page.getByRole("link", { name: new RegExp(args.query) }).last().waitFor(); + await step("after-reload"); + // Legacy URLs still apply their filters. + const searchBodies = []; + let searchTitleCalls = 0; + page.on("request", (req) => { + if (req.url().endsWith("/api/documents.search_titles")) { + searchTitleCalls += 1; + searchBodies.push(req.postDataJSON()); + } + }); + await page.goto(`/search?q=${args.query}&dateFilter=week&titleFilter=true`); + await page.getByRole("button", { name: /^Updated\s*Past week/ }).waitFor(); + await page.getByText("Title only", { exact: true }).waitFor(); + await page.getByRole("link", { name: new RegExp(args.query) }).last().waitFor(); + const legacyFilters = JSON.stringify(searchBodies.at(-1)?.filters ?? []); + if (!legacyFilters.includes('"field":"updatedAt","operator":"gte","value":"-P1W"')) { + throw new Error(`legacy dateFilter not sent to the API: ${legacyFilters}`); + } + if (!searchTitleCalls) { + throw new Error("legacy titleFilter did not use title search"); + } + await step("legacy-url"); + await page.goBack(); + await page.getByRole("link", { name: new RegExp(args.query) }).last().waitFor(); + + const finalUrl = page.url(); + log("final url:", finalUrl); + + // Narrow viewport: chips wrap and sort moves to the header. + await page.setViewportSize({ width: 390, height: 844 }); + await page.waitForTimeout(300); + await step("mobile"); + await page.setViewportSize({ width: 1280, height: 800 }); + + // Drafts and Trash reuse the shared option hooks. + await page.goto("/drafts"); + await page.getByRole("button", { name: "Any collection" }).waitFor(); + await click(page.getByRole("button", { name: "Any collection" })); + await page.getByRole("menuitem", { name: args.collection }).waitFor(); + await step("drafts-collection-filter"); + await page.keyboard.press("Escape"); + await page.goto("/trash"); + await page.getByRole("button", { name: "Any time" }).waitFor(); + await step("trash-filters"); + return { url: finalUrl }; +}; diff --git a/.github/workflows/docker-nightly.yml b/.github/workflows/docker-nightly.yml index fa54b4b378..6313071363 100644 --- a/.github/workflows/docker-nightly.yml +++ b/.github/workflows/docker-nightly.yml @@ -19,3 +19,50 @@ jobs: type=raw,value=nightly type=raw,value=nightly-{{date 'YYYYMMDD'}} type=sha,prefix=nightly-,format=short + + cleanup: + runs-on: ubuntu-latest + needs: + - publish + environment: dockerhub-nightly + env: + REPOSITORY: outlinewiki/outline + RETENTION_DAYS: 30 + steps: + - name: Delete old nightly tags + env: + DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} + DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} + run: | + set -euo pipefail + + token=$(jq -n --arg id "$DOCKERHUB_USERNAME" --arg secret "$DOCKERHUB_TOKEN" \ + '{identifier: $id, secret: $secret}' \ + | curl -fsS -X POST -H "Content-Type: application/json" -d @- \ + https://hub.docker.com/v2/auth/token \ + | jq -r '.access_token') + echo "::add-mask::$token" + + # Collect all matching tags before deleting so pagination stays stable. + tags=() + url="https://hub.docker.com/v2/repositories/${REPOSITORY}/tags?page_size=100&name=nightly-" + while [ -n "$url" ] && [ "$url" != "null" ]; do + page=$(curl -fsS -H "Authorization: Bearer $token" "$url") + while IFS= read -r tag; do + if [ -n "$tag" ]; then + tags+=("$tag") + fi + done < <(jq -r --argjson days "$RETENTION_DAYS" ' + .results[] + | select(.name | startswith("nightly-")) + | select((.last_updated | sub("\\.[0-9]+Z$"; "Z") | fromdateiso8601) < (now - $days * 86400)) + | .name' <<< "$page") + url=$(jq -r '.next' <<< "$page") + done + + echo "Deleting ${#tags[@]} tags older than ${RETENTION_DAYS} days" + for tag in "${tags[@]}"; do + echo "Deleting ${REPOSITORY}:${tag}" + curl -fsS -X DELETE -H "Authorization: Bearer $token" \ + "https://hub.docker.com/v2/repositories/${REPOSITORY}/tags/${tag}/" + done diff --git a/Dockerfile b/Dockerfile index f05c05a291..e704d2e430 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ARG APP_PATH WORKDIR $APP_PATH # --- -FROM node:26.13.0-slim AS runner +FROM node:26.13.1-slim AS runner LABEL org.opencontainers.image.source="https://github.com/outline/outline" diff --git a/Dockerfile.base b/Dockerfile.base index 2ea5c1d12c..3267b7cd08 100644 --- a/Dockerfile.base +++ b/Dockerfile.base @@ -1,5 +1,5 @@ ARG APP_PATH=/opt/outline -FROM node:26.13.0 AS deps +FROM node:26.13.1 AS deps ARG APP_PATH WORKDIR $APP_PATH diff --git a/LICENSE b/LICENSE index 8d7168ef0a..be00ba934b 100644 --- a/LICENSE +++ b/LICENSE @@ -3,7 +3,7 @@ Business Source License 1.1 Parameters Licensor: General Outline, Inc. -Licensed Work: Outline 1.12.0 +Licensed Work: Outline 1.13.0 The Licensed Work is (c) 2026 General Outline, Inc. Additional Use Grant: You may make use of the Licensed Work, provided that you may not use the Licensed Work for a Document @@ -15,7 +15,7 @@ Additional Use Grant: You may make use of the Licensed Work, provided that Licensed Work by creating teams and documents controlled by such third parties. -Change Date: 2030-10-23 +Change Date: 2030-11-15 Change License: Apache License, Version 2.0 diff --git a/app/actions/definitions/documents.tsx b/app/actions/definitions/documents.tsx index 1739ea3098..62d5c83f8a 100644 --- a/app/actions/definitions/documents.tsx +++ b/app/actions/definitions/documents.tsx @@ -1815,11 +1815,10 @@ export const toggleDocumentStats = createAction({ return; } - user.setPreference( + await user.savePreference( UserPreference.ShowDocumentStats, !user.getPreference(UserPreference.ShowDocumentStats) ); - await user.save(); }, }); @@ -1865,8 +1864,7 @@ const changeHeadingPrefixFactory = (style: HeadingPrefixStyle) => if (!document) { return; } - document.setPreference(DocumentPreference.HeadingPrefix, style); - await document.save(); + await document.savePreference(DocumentPreference.HeadingPrefix, style); }, }); diff --git a/app/actions/definitions/shares.tsx b/app/actions/definitions/shares.tsx index de89f4d00c..8c3503e2ad 100644 --- a/app/actions/definitions/shares.tsx +++ b/app/actions/definitions/shares.tsx @@ -1,15 +1,23 @@ import copy from "copy-to-clipboard"; +import { addDays, endOfDay } from "date-fns"; import Share from "~/models/Share"; -import { createAction, createInternalLinkAction } from ".."; +import { + ActionSeparator, + createAction, + createActionWithChildren, + createInternalLinkAction, +} from ".."; import { everyActiveModel, performBatchOnActiveModels, } from "~/actions/definitions/common"; -import { ArrowIcon, CopyIcon, TrashIcon } from "outline-icons"; +import { ArrowIcon, CalendarIcon, CopyIcon, TrashIcon } from "outline-icons"; import { ShareSection } from "../sections"; import type { ActionContext } from "~/types"; import env from "~/env"; import { toast } from "sonner"; +import { errToString } from "@shared/utils/error"; +import { ShareExpiryDialog } from "~/components/Sharing/components/ShareExpiryDialog"; export const copyShareUrl = createAction({ name: ({ t }) => t("Copy link"), @@ -51,6 +59,70 @@ export const goToShareSource = createInternalLinkAction({ }, }); +export const customShareExpiry = createAction({ + name: ({ t }) => `${t("Custom")}…`, + analyticsName: "Set custom share expiry", + section: ShareSection, + perform: (context) => { + const share = singleActiveShare(context); + if (!share) { + return; + } + + const { dialogs } = context.stores; + dialogs.openModal({ + title: context.t("Set expiry"), + width: "600px", + content: ( + + ), + }); + }, +}); + +export const removeShareExpiry = createAction({ + name: ({ t }) => t("Remove expiry"), + analyticsName: "Remove share expiry", + section: ShareSection, + visible: (context) => !!singleActiveShare(context)?.expiresAt, + perform: (context) => + saveShareExpiry(context, null, context.t("Expiry removed")), +}); + +export const setShareExpiry = createActionWithChildren({ + name: ({ t }) => t("Set expiry"), + analyticsName: "Set share expiry", + section: ShareSection, + icon: , + visible: (context) => { + const { auth, policies } = context.stores; + const share = singleActiveShare(context); + return ( + !!share && + !!policies.abilities(auth.team?.id || "").share && + !!policies.abilities(share.id).update + ); + }, + children: [ + ...[1, 7, 30].map((days) => + createAction({ + name: ({ t }) => t("{{ count }} days", { count: days }), + analyticsName: "Set share expiry preset", + section: ShareSection, + perform: (context) => + saveShareExpiry( + context, + endOfDay(addDays(new Date(), days)), + context.t("Expiry updated") + ), + }) + ), + customShareExpiry, + ActionSeparator, + removeShareExpiry, + ], +}); + export const revokeShare = createAction({ name: ({ t }) => t("Revoke link"), analyticsName: "Revoke share", @@ -86,6 +158,24 @@ export const revokeShare = createAction({ }, }); +const saveShareExpiry = async ( + context: ActionContext, + date: Date | null, + message: string +) => { + const share = singleActiveShare(context); + if (!share) { + return; + } + + try { + await share.save({ expiresAt: date ? date.toISOString() : null }); + toast.success(message); + } catch (err) { + toast.error(errToString(err)); + } +}; + const singleActiveShare = ({ getActiveModels }: ActionContext) => { const shares = getActiveModels(Share); return shares.length === 1 ? shares[0] : undefined; diff --git a/app/components/ExpiryDatePicker.tsx b/app/components/ExpiryDatePicker.tsx index b71797e3c2..56961b5e61 100644 --- a/app/components/ExpiryDatePicker.tsx +++ b/app/components/ExpiryDatePicker.tsx @@ -70,14 +70,16 @@ const ExpiryDatePicker = ({ side="right" shrink > - + + + {selectedDate && onClear && ( @@ -96,6 +98,10 @@ const ExpiryDatePicker = ({ ); }; +const CalendarPadding = styled.div` + padding: 12px; +`; + const Wrapper = styled.div` position: relative; display: inline-flex; diff --git a/app/components/FilterOptions.tsx b/app/components/FilterOptions.tsx index 058807c49c..00b1712e4d 100644 --- a/app/components/FilterOptions.tsx +++ b/app/components/FilterOptions.tsx @@ -25,7 +25,7 @@ import { Menu, MenuContent, MenuTrigger, MenuButton } from "./primitives/Menu"; import * as MenuComponents from "./primitives/components/Menu"; import { MenuIconWrapper } from "./primitives/components/Menu"; -interface TFilterOption extends PaginatedItem { +export interface TFilterOption extends PaginatedItem { key: string; label: string; icon?: React.ReactNode; @@ -42,6 +42,12 @@ type Props = { fetchQuery?: (options: FetchPageParams) => Promise; fetchQueryOptions?: Record; disclosure?: boolean; + /** Custom element that opens the options, defaults to a button showing the selection. */ + trigger?: React.ReactElement; + /** Whether the options are open when the component mounts. */ + defaultOpen?: boolean; + /** Callback when the options open or close. */ + onOpenChange?: (open: boolean) => void; }; const FilterOptions = ({ @@ -54,13 +60,28 @@ const FilterOptions = ({ fetchQuery, fetchQueryOptions, disclosure = true, + trigger: customTrigger, + defaultOpen = false, + onOpenChange, ...rest }: Props) => { const { t } = useTranslation(); const isMobile = useMobile(); const searchInputRef = React.useRef(null); const listRef = React.useRef(null); - const [open, setOpen] = React.useState(false); + const [open, setOpenState] = React.useState(defaultOpen); + // A menu that mounts open shows at once; later opens animate as usual. + const [skipAnimation, setSkipAnimation] = React.useState(defaultOpen); + const setOpen = React.useCallback( + (value: boolean) => { + setOpenState(value); + if (!value) { + setSkipAnimation(false); + } + onOpenChange?.(value); + }, + [onOpenChange] + ); const selectedItems = options.filter((option) => selectedKeys.includes(option.key) ); @@ -111,7 +132,7 @@ const FilterOptions = ({ /> ); }, - [onSelect, showIcons, selectedKeys, isMobile] + [onSelect, setOpen, showIcons, selectedKeys, isMobile] ); const handleFilter = React.useCallback( @@ -193,7 +214,7 @@ const FilterOptions = ({ break; } }, - [filteredOptions, onSelect] + [filteredOptions, onSelect, setOpen] ); const handleEscapeFromList = React.useCallback((ev: React.KeyboardEvent) => { @@ -219,7 +240,7 @@ const FilterOptions = ({ const showFilterInput = showFilter || options.length > 10; const defaultLabel = rest.defaultLabel || t("Filter options"); - const trigger = ( + const trigger = customTrigger ?? ( {trigger} - + {list} {showFilterInput && ( + + + + + ); +} diff --git a/app/components/Menu/ContextMenu.tsx b/app/components/Menu/ContextMenu.tsx index e9f734b4be..8c209b8996 100644 --- a/app/components/Menu/ContextMenu.tsx +++ b/app/components/Menu/ContextMenu.tsx @@ -4,6 +4,7 @@ import useActionContext from "~/hooks/useActionContext"; import useMobile from "~/hooks/useMobile"; import type { ActionFactory, ActionVariant, ActionWithChildren } from "~/types"; import { preventDefault } from "~/utils/events"; +import { MenuFilter, MenuFilterEmpty, useMenuFilter } from "./MenuFilter"; import { toMenuItems } from "./transformer"; import { observer } from "mobx-react"; import { useComputed } from "~/hooks/useComputed"; @@ -31,6 +32,13 @@ export const ContextMenu = observer( const actionContext = useActionContext({ isMenu: true, }); + const { + query, + setQuery, + handleKeyDownCapture, + handleEscapeKeyDown, + reset: resetFilter, + } = useMenuFilter(); // Menu items are only built while the menu is open. const menuItems = useComputed(() => { @@ -54,12 +62,13 @@ export const ContextMenu = observer( (open: boolean) => { setOpen(open); if (open) { + resetFilter(); onOpen?.(); } else { onClose?.(); } }, - [onOpen, onClose] + [onOpen, onClose, resetFilter] ); const enablePointerEvents = React.useCallback(() => { @@ -86,7 +95,7 @@ export const ContextMenu = observer( return <>{children}; } - const content = open ? toMenuItems(menuItems) : null; + const content = open ? toMenuItems(menuItems, query) : null; return ( @@ -97,8 +106,11 @@ export const ContextMenu = observer( onAnimationStart={disablePointerEvents} onAnimationEnd={enablePointerEvents} onCloseAutoFocus={preventDefault} + onEscapeKeyDown={handleEscapeKeyDown} + onKeyDownCapture={handleKeyDownCapture} > - {content} + + {content ?? (query ? : null)} diff --git a/app/components/Menu/DropdownMenu.tsx b/app/components/Menu/DropdownMenu.tsx index 313e1629b0..9a5036c772 100644 --- a/app/components/Menu/DropdownMenu.tsx +++ b/app/components/Menu/DropdownMenu.tsx @@ -20,6 +20,7 @@ import type { MenuItem, MenuItemWithChildren, } from "~/types"; +import { MenuFilter, MenuFilterEmpty, useMenuFilter } from "./MenuFilter"; import { toMenuItems, toMobileMenuItems } from "./transformer"; import { observer } from "mobx-react"; import { useComputed } from "~/hooks/useComputed"; @@ -65,6 +66,13 @@ export const DropdownMenu = observer(function DropdownMenu({ const actionContext = useActionContext({ isMenu: true, }); + const { + query, + setQuery, + handleKeyDownCapture, + handleEscapeKeyDown, + reset: resetFilter, + } = useMenuFilter(); const menuItems = useComputed(() => { if (!open) { @@ -93,12 +101,13 @@ export const DropdownMenu = observer(function DropdownMenu({ (open: boolean) => { setOpen(open); if (open) { + resetFilter(); onOpen?.(); } else { onClose?.(); } }, - [onOpen, onClose] + [onOpen, onClose, resetFilter] ); const enablePointerEvents = React.useCallback(() => { @@ -130,7 +139,7 @@ export const DropdownMenu = observer(function DropdownMenu({ ); } - const content = toMenuItems(menuItems); + const content = toMenuItems(menuItems, query); return ( @@ -144,9 +153,12 @@ export const DropdownMenu = observer(function DropdownMenu({ onAnimationStart={disablePointerEvents} onAnimationEnd={enablePointerEvents} onCloseAutoFocus={preventDefault} + onEscapeKeyDown={handleEscapeKeyDown} + onKeyDownCapture={handleKeyDownCapture} > - {content} - {append} + + {content ?? (query ? : null)} + {query ? null : append} diff --git a/app/components/Menu/MenuFilter.tsx b/app/components/Menu/MenuFilter.tsx new file mode 100644 index 0000000000..6fae2db542 --- /dev/null +++ b/app/components/Menu/MenuFilter.tsx @@ -0,0 +1,330 @@ +import { VISUALLY_HIDDEN_STYLES } from "@radix-ui/react-visually-hidden"; +import * as React from "react"; +import { useTranslation } from "react-i18next"; +import styled from "styled-components"; +import { s } from "@shared/styles"; +import { breakpoint } from "@shared/styles/breakpoint"; +import isTextInput from "~/utils/isTextInput"; + +interface MenuFilterState { + /** The current filter query, or undefined when the filter is hidden. */ + query: string | undefined; + /** Sets the filter query. */ + setQuery: (query: string) => void; + /** Capture-phase keydown handler to attach to the menu content. */ + handleKeyDownCapture: (event: React.KeyboardEvent) => void; + /** Escape handler to attach to the menu content. */ + handleEscapeKeyDown: (event: KeyboardEvent) => void; + /** Hides the filter and clears the query. */ + reset: () => void; +} + +/** + * Lets the user filter a menu by typing. When a key that types text is pressed + * on a menu item, focus moves to the filter input, which then receives the + * text. + * + * @returns the filter query and the handlers to attach to the menu content. + */ +export function useMenuFilter(): MenuFilterState { + const [query, setQuery] = React.useState(); + const contentRef = React.useRef(null); + const highlightRef = React.useRef(null); + + const reset = React.useCallback(() => { + contentRef.current = null; + highlightRef.current = null; + setQuery(undefined); + }, []); + + const handleKeyDownCapture = React.useCallback( + (event: React.KeyboardEvent) => { + const { target, currentTarget } = event; + if ( + !(target instanceof HTMLElement) || + target.closest("[data-radix-menu-content]") !== currentTarget || + (isTextInput(target) && !target.matches('[role^="menuitem"]')) || + target.isContentEditable + ) { + return; + } + + const input = currentTarget.querySelector( + `[${INPUT_ATTRIBUTE}]` + ); + + // AltGr is reported as Ctrl+Alt on Windows, but it types a character. + const isShortcut = + (event.ctrlKey || event.metaKey || event.altKey) && + !event.getModifierState("AltGraph"); + if (!input || isShortcut) { + return; + } + + // Move up from the first item to the input while the filter is visible. + if ( + event.key === "ArrowUp" && + query !== undefined && + target === currentTarget.querySelector(ITEM_SELECTOR) + ) { + event.preventDefault(); + event.stopPropagation(); + highlightRef.current = highlightItem(currentTarget, target); + input.focus(); + return; + } + + const isText = + Array.from(event.key).length === 1 || + (event.key === "Backspace" && !!query); + if (!isText) { + return; + } + + // Space selects the focused item until there is a query to add it to. + if (event.key === " " && !query) { + return; + } + + // The default action is kept, so the browser types into the input. Radix + // typeahead, item selection and global shortcuts must not handle the key. + event.stopPropagation(); + contentRef.current = currentTarget; + if (target.matches(ITEM_SELECTOR)) { + highlightRef.current = target; + } + if (query === undefined) { + lockLayout(currentTarget); + } + input.focus(); + }, + [query] + ); + + const handleEscapeKeyDown = React.useCallback( + (event: KeyboardEvent) => { + if (query === undefined) { + return; + } + event.preventDefault(); + setQuery(undefined); + }, + [query] + ); + + // While the input has focus, highlight the item that had focus before, or + // the first match if it was filtered out. Otherwise move focus to the first + // item if the focused item was filtered out, or if the filter was hidden + // while it had focus. A passive effect runs after Radix removes unmounted + // items from its collection. + React.useEffect(() => { + const content = contentRef.current; + if (!content) { + return; + } + + const active = document.activeElement; + if (query !== undefined && active?.hasAttribute(INPUT_ATTRIBUTE)) { + highlightRef.current = highlightItem(content, highlightRef.current); + return; + } + if ( + active && + content.contains(active) && + active.getAttribute("role")?.startsWith("menuitem") + ) { + return; + } + + const first = content.querySelector(ITEM_SELECTOR); + (first ?? content).focus(); + }, [query]); + + return { query, setQuery, handleKeyDownCapture, handleEscapeKeyDown, reset }; +} + +interface Props { + /** The current filter query, or undefined when the filter is hidden. */ + query: string | undefined; + /** Called when the user changes the query. */ + onChange: (query: string) => void; +} + +/** + * Displays the filter input at the top of a menu. The input is always + * rendered, so that it can receive focus before the first character is typed, + * but it is only visible while there is a query. + */ +export function MenuFilter({ query, onChange }: Props) { + const { t } = useTranslation(); + const isActive = query !== undefined; + + const handleChange = React.useCallback( + (event: React.ChangeEvent) => { + onChange(event.target.value); + }, + [onChange] + ); + + const handleKeyDown = React.useCallback( + (event: React.KeyboardEvent) => { + // Radix typeahead must not handle keys typed into the input, but Tab + // must reach the menu so that focus stays in it. + if (event.key !== "Tab") { + event.stopPropagation(); + } + if (event.nativeEvent.isComposing) { + return; + } + + const content = event.currentTarget.closest("[data-radix-menu-content]"); + const items = content + ? Array.from(content.querySelectorAll(ITEM_SELECTOR)) + : []; + const highlighted = + content?.querySelector(`[${HIGHLIGHT_ATTRIBUTE}]`) ?? + items[0]; + + if (event.key === "ArrowDown") { + event.preventDefault(); + highlighted?.focus(); + } else if (event.key === "ArrowUp") { + event.preventDefault(); + items[items.length - 1]?.focus(); + } else if (event.key === "Enter") { + event.preventDefault(); + highlighted?.click(); + } + }, + [] + ); + + return ( + + + + ); +} + +/** + * Displays a message when no menu items match the filter query. + */ +export function MenuFilterEmpty() { + const { t } = useTranslation(); + return {t("No results")}; +} + +/** + * Records the current width and position of the menu. The filter row applies + * them, so that the menu does not move while the items are filtered. + */ +function lockLayout(content: HTMLElement) { + // The computed width is not changed by the scale of the open animation. + content.style.setProperty( + "--menu-filter-width", + getComputedStyle(content).width + ); + content.setAttribute(LOCKED_ATTRIBUTE, ""); + + const wrapper = content.closest( + "[data-radix-popper-content-wrapper]" + ); + if (wrapper?.style.transform) { + wrapper.style.setProperty( + "--menu-filter-transform", + wrapper.style.transform + ); + wrapper.setAttribute(LOCKED_ATTRIBUTE, ""); + } +} + +/** + * Marks the item that Enter selects while the filter input has focus. + * + * @param content the menu content. + * @param preferred the item to mark if it is still in the menu. + * @returns the marked item, or null if the menu has no items. + */ +function highlightItem(content: HTMLElement, preferred: HTMLElement | null) { + const item = + preferred?.isConnected && + content.contains(preferred) && + preferred.matches(ITEM_SELECTOR) + ? preferred + : content.querySelector(ITEM_SELECTOR); + + content + .querySelectorAll(`[${HIGHLIGHT_ATTRIBUTE}]`) + .forEach((element) => element.removeAttribute(HIGHLIGHT_ATTRIBUTE)); + item?.setAttribute(HIGHLIGHT_ATTRIBUTE, ""); + return item; +} + +const ITEM_SELECTOR = '[role^="menuitem"]:not([data-disabled])'; + +const HIGHLIGHT_ATTRIBUTE = "data-menu-filter-highlighted"; + +const LOCKED_ATTRIBUTE = "data-menu-filter-locked"; + +const INPUT_ATTRIBUTE = "data-menu-filter-input"; + +const Wrapper = styled.label` + position: sticky; + top: 0; + z-index: 1; + display: flex; + align-items: center; + min-height: 40px; + margin: -6px -6px 6px; + padding: 8px 18px; + cursor: text; + background: ${s("menuBackground")}; + border-bottom: 1px solid ${s("divider")}; + + // Keep the size and position that the menu had before filtering. This rule + // overrides the inline transform that Radix changes when the menu resizes. + [data-radix-menu-content][${LOCKED_ATTRIBUTE}]:has(&) { + width: var(--menu-filter-width); + } + + [data-radix-popper-content-wrapper][${LOCKED_ATTRIBUTE}]:has(&) { + transform: var(--menu-filter-transform) !important; + } +`; + +const Input = styled.input` + flex: 1; + min-width: 0; + margin: 0; + padding: 0; + border: 0; + outline: none; + background: none; + font: inherit; + font-size: 16px; + color: ${s("text")}; + + &::placeholder { + color: ${s("placeholder")}; + } + + ${breakpoint("tablet")` + font-size: 14px; + `} +`; + +const Empty = styled.div` + padding: 4px 12px; + font-size: 14px; + color: ${s("textTertiary")}; +`; diff --git a/app/components/Menu/transformer.test.tsx b/app/components/Menu/transformer.test.tsx new file mode 100644 index 0000000000..379aca1681 --- /dev/null +++ b/app/components/Menu/transformer.test.tsx @@ -0,0 +1,50 @@ +import type { ReactElement } from "react"; +import type { MenuItem } from "~/types"; +import { toMenuItems } from "./transformer"; + +const noop = () => undefined; + +const items: MenuItem[] = [ + { type: "button", title: "Team", onClick: noop }, + { type: "button", title: "Due date", onClick: noop }, + { type: "separator" }, + { + type: "submenu", + title: "Move to", + items: [ + { type: "button", title: "Engineering", onClick: noop }, + { type: "button", title: "Design", onClick: noop }, + ], + }, + { type: "button", title: "Hidden date", visible: false, onClick: noop }, +]; + +function render(query?: string) { + return (toMenuItems(items, query) ?? []).filter( + (element): element is ReactElement => !!element + ); +} + +describe("toMenuItems", () => { + it("returns all visible items without a query", () => { + expect(render().map((element) => element.key)).toEqual([ + "button-0", + "button-1", + "separator-2", + "submenu-3", + ]); + }); + + it("returns only matching items and keeps their keys", () => { + expect(render("DATE").map((element) => element.key)).toEqual(["button-1"]); + }); + + it("keeps a submenu when one of its items matches", () => { + const [submenu] = render("design"); + expect(submenu.key).toEqual("submenu-3"); + }); + + it("returns null when nothing matches", () => { + expect(toMenuItems(items, "zzz")).toBeNull(); + }); +}); diff --git a/app/components/Menu/transformer.tsx b/app/components/Menu/transformer.tsx index 2ac0c4bf97..2dadb495ae 100644 --- a/app/components/Menu/transformer.tsx +++ b/app/components/Menu/transformer.tsx @@ -14,11 +14,27 @@ import type { MenuItem } from "~/types"; import { MouseSafeArea } from "~/components/MouseSafeArea"; import { createRef } from "react"; -export function toMenuItems(items: MenuItem[]) { +/** + * Converts menu items to menu elements. + * + * @param items the menu items to convert. + * @param query an optional filter query, only matching items are returned. + * @returns the menu elements, or null if there are none. + */ +export function toMenuItems(items: MenuItem[], query?: string) { const filteredItems = filterMenuItems(items); const parentRef = createRef(); + const normalizedQuery = query?.toLocaleLowerCase(); - if (!filteredItems.length) { + // Keys use the index before the query is applied, so that the focused item + // keeps its element while the query changes. + const entries = filteredItems + .map((item, index) => ({ item, index })) + .filter( + ({ item }) => !normalizedQuery || matchesQuery(item, normalizedQuery) + ); + + if (!entries.length) { return null; } @@ -31,13 +47,19 @@ export function toMenuItems(items: MenuItem[]) { !!item.icon ); - return filteredItems.map((item, index) => { + return entries.map(({ item, index }) => { const icon = showIcon ? ( {"icon" in item ? item.icon : null} ) : undefined; + // Children are filtered too, unless the parent title itself matches. + const childQuery = + normalizedQuery && !titleMatches(item, normalizedQuery) + ? normalizedQuery + : undefined; + switch (item.type) { case "button": return ( @@ -85,7 +107,7 @@ export function toMenuItems(items: MenuItem[]) { ); case "submenu": { - const submenuItems = toMenuItems(item.items); + const submenuItems = toMenuItems(item.items, childQuery); if (!submenuItems?.length) { return null; @@ -116,7 +138,7 @@ export function toMenuItems(items: MenuItem[]) { } case "group": { - const groupItems = toMenuItems(item.items); + const groupItems = toMenuItems(item.items, childQuery); if (!groupItems?.length) { return null; @@ -287,6 +309,35 @@ export function toMobileMenuItems( }); } +function titleMatches(item: MenuItem, query: string): boolean { + return ( + "title" in item && + typeof item.title === "string" && + item.title.toLocaleLowerCase().includes(query) + ); +} + +function matchesQuery(item: MenuItem, query: string): boolean { + if (item.visible === false) { + return false; + } + + switch (item.type) { + case "button": + case "route": + case "link": + return titleMatches(item, query); + case "submenu": + case "group": + return ( + titleMatches(item, query) || + item.items.some((child) => matchesQuery(child, query)) + ); + default: + return false; + } +} + function filterMenuItems(items: MenuItem[]): MenuItem[] { return items .filter((item) => item.visible !== false) diff --git a/app/components/Sharing/components/ShareExpiryDialog.tsx b/app/components/Sharing/components/ShareExpiryDialog.tsx new file mode 100644 index 0000000000..8d88ff7bcb --- /dev/null +++ b/app/components/Sharing/components/ShareExpiryDialog.tsx @@ -0,0 +1,84 @@ +import { addWeeks, endOfDay } from "date-fns"; +import { observer } from "mobx-react"; +import { useCallback, useState } from "react"; +import { useTranslation } from "react-i18next"; +import { toast } from "sonner"; +import { Calendar } from "@shared/components/Calendar"; +import { dateLocale } from "@shared/utils/date"; +import type Share from "~/models/Share"; +import Button from "~/components/Button"; +import Flex from "~/components/Flex"; +import useUserLocale from "~/hooks/useUserLocale"; +import { showErrorToast } from "./toasts"; + +interface Props { + /** The share to change the expiry of. */ + share: Share; + /** Called after the expiry is saved. */ + onSubmit: () => void; +} + +/** + * Dialog content to choose the date after which a public link stops working. + */ +export const ShareExpiryDialog = observer(function ShareExpiryDialog({ + share, + onSubmit, +}: Props) { + const { t } = useTranslation(); + const userLocale = useUserLocale(); + const [date, setDate] = useState(() => { + if (!share.expiresAt) { + return undefined; + } + + // A past date cannot be selected, so suggest a week from today instead. + return share.isExpired + ? addWeeks(new Date(), 1) + : new Date(share.expiresAt); + }); + const [isSaving, setIsSaving] = useState(false); + + const handleSubmit = useCallback( + async (ev: React.FormEvent) => { + ev.preventDefault(); + if (!date) { + return; + } + + setIsSaving(true); + try { + await share.save({ expiresAt: endOfDay(date).toISOString() }); + toast.success(t("Expiry updated")); + onSubmit(); + } catch (err) { + showErrorToast(err); + } finally { + setIsSaving(false); + } + }, + [date, share, onSubmit, t] + ); + + return ( +
+ + + + + + +
+ ); +}); diff --git a/app/components/Sidebar/components/Disclosure.tsx b/app/components/Sidebar/components/Disclosure.tsx index 0a2dad9004..60c457da46 100644 --- a/app/components/Sidebar/components/Disclosure.tsx +++ b/app/components/Sidebar/components/Disclosure.tsx @@ -2,7 +2,7 @@ import { CollapsedIcon } from "outline-icons"; import * as React from "react"; import { useTranslation } from "react-i18next"; import styled from "styled-components"; -import { extraArea, s } from "@shared/styles"; +import { extraArea, hover, s } from "@shared/styles"; import NudeButton from "~/components/NudeButton"; type Props = React.ComponentProps & { @@ -34,7 +34,7 @@ const Button = styled(NudeButton)` margin: 2px; ${extraArea(4)} - &:hover { + &:${hover} { color: ${s("text")}; background: ${s("sidebarControlHoverBackground")}; } diff --git a/app/components/Sidebar/components/DraggableSection.tsx b/app/components/Sidebar/components/DraggableSection.tsx index 5cc1db89e4..4968e0aa94 100644 --- a/app/components/Sidebar/components/DraggableSection.tsx +++ b/app/components/Sidebar/components/DraggableSection.tsx @@ -165,8 +165,7 @@ function DraggableSection({ section, children }: Props) { target ); if (newOrder) { - user.setPreference(UserPreference.SidebarSectionOrder, newOrder); - void user.save(); + void user.savePreference(UserPreference.SidebarSectionOrder, newOrder); } }, [findVisibleSibling, section, user] diff --git a/app/components/Sidebar/components/NewChildInput.tsx b/app/components/Sidebar/components/NewChildInput.tsx index ec3929014b..182cbbe7a6 100644 --- a/app/components/Sidebar/components/NewChildInput.tsx +++ b/app/components/Sidebar/components/NewChildInput.tsx @@ -1,4 +1,5 @@ import * as React from "react"; +import { flushSync } from "react-dom"; import { useTranslation } from "react-i18next"; import { DocumentValidation, @@ -53,7 +54,9 @@ export function NewChildInput({ } else { await onCreateChild(value); } - onClose(); + + // Remove the input in the same paint as the new tree item. + flushSync(onClose); }, [t, onCreateChild, onCreateChildLink, onClose] ); diff --git a/app/components/Sidebar/components/SidebarActions.tsx b/app/components/Sidebar/components/SidebarActions.tsx index d4552ca886..571950b193 100644 --- a/app/components/Sidebar/components/SidebarActions.tsx +++ b/app/components/Sidebar/components/SidebarActions.tsx @@ -1,14 +1,15 @@ import styled, { css } from "styled-components"; import EventBoundary from "@shared/components/EventBoundary"; -import { s } from "@shared/styles"; +import { hover, s } from "@shared/styles"; import NudeButton from "~/components/NudeButton"; /** * Selector list matching a sidebar row that is hovered, pressed, or has one * of its menus open. Radix marks the open trigger with `data-state="open"`: - * the row itself for a context menu, a descendant button for a dropdown. + * the row itself for a context menu, a descendant button for a dropdown. On + * touch devices `:hover` sticks after a tap, so only `:active` is matched. */ -export const hoveredOrMenuOpen = `&:hover, &:active, &[data-state="open"], &:has([data-state="open"])`; +export const hoveredOrMenuOpen = `&:${hover}, &:active, &[data-state="open"], &:has([data-state="open"])`; /** * Trailing action buttons for a sidebar row. Hidden until the row reveals diff --git a/app/components/Sidebar/hooks/useDragAndDrop.tsx b/app/components/Sidebar/hooks/useDragAndDrop.tsx index aea56eae46..aedfaa5b0d 100644 --- a/app/components/Sidebar/hooks/useDragAndDrop.tsx +++ b/app/components/Sidebar/hooks/useDragAndDrop.tsx @@ -200,8 +200,7 @@ export function useDropToReorderSidebarSection( drop: (item) => { const order = getNewOrder(item.id); if (order) { - user.setPreference(UserPreference.SidebarSectionOrder, order); - void user.save(); + void user.savePreference(UserPreference.SidebarSectionOrder, order); } }, canDrop: (item) => !!getNewOrder(item.id), diff --git a/app/components/UserDialogs.tsx b/app/components/UserDialogs.tsx index 7f37426a1e..c804cca53c 100644 --- a/app/components/UserDialogs.tsx +++ b/app/components/UserDialogs.tsx @@ -13,6 +13,7 @@ import Input from "~/components/Input"; import useCurrentUser from "~/hooks/useCurrentUser"; import useStores from "~/hooks/useStores"; import ImageInput from "~/scenes/Settings/components/ImageInput"; +import type { ImageUploadHandle } from "~/scenes/Settings/components/ImageUpload"; import { performBatch } from "~/actions/definitions/common"; import { client } from "~/utils/ApiClient"; import Text from "./Text"; @@ -183,6 +184,11 @@ export const UserChangeAvatarDialog = observer(function UserChangeAvatarDialog({ onSubmit, }: Props) { const { t } = useTranslation(); + const imageRef = React.useRef(null); + + const handleReplace = () => { + imageRef.current?.open(); + }; const handleAvatarChange = async (avatarUrl: string | null) => { try { @@ -205,15 +211,21 @@ export const UserChangeAvatarDialog = observer(function UserChangeAvatarDialog({ onSuccess={handleAvatarChange} onError={handleAvatarError} model={user} - showRemoveOption={false} + showActions={false} + ref={imageRef} /> - - {user.avatarUrl && ( - - )} + {user.avatarUrl && ( + + )} + diff --git a/app/components/primitives/Menu/index.tsx b/app/components/primitives/Menu/index.tsx index ffaf031601..83256de854 100644 --- a/app/components/primitives/Menu/index.tsx +++ b/app/components/primitives/Menu/index.tsx @@ -78,11 +78,15 @@ type ContentProps = React.ComponentPropsWithoutRef< > & React.ComponentPropsWithoutRef & { ref?: React.Ref>; + /** The largest height of the menu, defaults to 85vh. */ + maxHeight?: string; + /** Show the menu at once, without the opening animation. */ + skipAnimation?: boolean; }; function MenuContent(props: ContentProps) { const { variant } = useMenuContext(); - const { ref, children, ...rest } = props; + const { ref, children, maxHeight, skipAnimation, ...rest } = props; const Portal = variant === "dropdown" @@ -111,7 +115,12 @@ function MenuContent(props: ContentProps) { return ( - + {children} diff --git a/app/components/primitives/components/Menu.tsx b/app/components/primitives/components/Menu.tsx index eb41ac9314..3df5883027 100644 --- a/app/components/primitives/components/Menu.tsx +++ b/app/components/primitives/components/Menu.tsx @@ -68,7 +68,9 @@ const BaseMenuItemCSS = css` ` &[data-highlighted], &[data-state="open"], - &:focus-visible { + &:focus-visible, + [data-radix-menu-content]:has([data-menu-filter-input]:focus) + &[data-menu-filter-highlighted] { color: ${props.theme.accentText}; background: ${props.$dangerous ? props.theme.danger : props.theme.accent}; outline-color: ${ @@ -192,6 +194,10 @@ export const MenuShortcut = styled.span` type MenuContentProps = { maxHeightVar: string; transformOriginVar: string; + /** The largest height of the menu, defaults to 85vh. */ + maxHeight?: string; + /** Show the menu at once, without the opening animation. */ + $skipAnimation?: boolean; }; export const MenuContent = styled(Scrollable).attrs( @@ -205,7 +211,8 @@ export const MenuContent = styled(Scrollable).attrs( min-width: 180px; max-width: 320px; min-height: 44px; - max-height: ${({ maxHeightVar }) => `min(85vh, var(${maxHeightVar}))`}; + max-height: ${({ maxHeight = "85vh", maxHeightVar }) => + `min(${maxHeight}, var(${maxHeightVar}))`}; font-weight: normal; background: ${s("menuBackground")}; @@ -225,9 +232,13 @@ export const MenuContent = styled(Scrollable).attrs( transform-origin: ${({ transformOriginVar }) => `var(${transformOriginVar})`}; - &[data-state="open"] { - animation: ${fadeAndScaleIn} 150ms ease-out; - } + ${({ $skipAnimation }) => + !$skipAnimation && + css` + &[data-state="open"] { + animation: ${fadeAndScaleIn} 150ms ease-out; + } + `} @media print { display: none; diff --git a/app/editor/components/LinkEditor.tsx b/app/editor/components/LinkEditor.tsx index 8306052d6a..dc63b272a0 100644 --- a/app/editor/components/LinkEditor.tsx +++ b/app/editor/components/LinkEditor.tsx @@ -19,9 +19,9 @@ import DocumentBreadcrumb from "~/components/DocumentBreadcrumb"; import Flex from "~/components/Flex"; import { ResizingHeightContainer } from "~/components/ResizingHeightContainer"; import Scrollable from "~/components/Scrollable"; +import useDebouncedValue from "~/hooks/useDebouncedValue"; import useRequest from "~/hooks/useRequest"; import useStores from "~/hooks/useStores"; -import { client } from "~/utils/ApiClient"; import Input from "./Input"; import SuggestionsMenuItem from "./SuggestionsMenuItem"; import ToolbarButton from "./ToolbarButton"; @@ -29,6 +29,9 @@ import Tooltip from "./Tooltip"; import useOnClickOutside from "~/hooks/useOnClickOutside"; import { useEditor } from "./EditorContext"; +/** The time in milliseconds the query must stay the same before it is sent. */ +const RequestDelay = 100; + type Props = { mark?: Mark; view: EditorView; @@ -67,18 +70,30 @@ const LinkEditor: React.FC = ({ ? documents.findByQuery(trimmedQuery, { maxResults: 25 }) : []; + // Results from the store show at once, the server is only asked for more + // when the user stops typing. + const requestQuery = useDebouncedValue(trimmedQuery, RequestDelay); + const { request } = useRequest( - React.useCallback(async () => { - const res = await client.post("/suggestions.mention", { query }); - res.data.documents.map(documents.add); - }, [documents, query]) + React.useCallback( + () => + documents.searchTitles({ + query: requestQuery, + limit: 25, + filters: [ + { field: "archivedAt", operator: "isNull" }, + { field: "publishedAt", operator: "isNotNull" }, + ], + }), + [documents, requestQuery] + ) ); useEffect(() => { - if (trimmedQuery) { + if (requestQuery) { void request(); } - }, [trimmedQuery, request]); + }, [requestQuery, request]); // Focus imperatively rather than with the autoFocus attribute, which only // applies on mount – the editor can already be open when focus is requested. diff --git a/app/editor/components/MentionMenu.tsx b/app/editor/components/MentionMenu.tsx index 5f45ceafca..8fe1ced1ad 100644 --- a/app/editor/components/MentionMenu.tsx +++ b/app/editor/components/MentionMenu.tsx @@ -1,7 +1,7 @@ import { observer } from "mobx-react"; import { v4 as uuidv4 } from "uuid"; import { runInAction } from "mobx"; -import { useState, useCallback, useEffect } from "react"; +import { useState, useCallback, useEffect, useRef } from "react"; import { useTranslation } from "react-i18next"; import { toast } from "sonner"; import { MentionType } from "@shared/types"; @@ -25,6 +25,7 @@ import { groupMentionItem, userMentionItem, } from "~/editor/menus/mention"; +import useDebouncedValue from "~/hooks/useDebouncedValue"; import useRequest from "~/hooks/useRequest"; import useStores from "~/hooks/useStores"; import useUserLocale from "~/hooks/useUserLocale"; @@ -36,6 +37,9 @@ import type { Props as SuggestionsMenuProps } from "./SuggestionsMenu"; import SuggestionsMenu from "./SuggestionsMenu"; import SuggestionsMenuItem from "./SuggestionsMenuItem"; +/** The time in milliseconds the search must stay the same before it is sent. */ +const RequestDelay = 100; + type Props = Omit< SuggestionsMenuProps, "renderMenuItem" | "items" | "embeds" @@ -122,13 +126,24 @@ function MentionMenu({ search = "", isActive, ...rest }: Props) { ]; } + // Results from the store show at once, the server is only asked for more + // when the user stops typing. + const requestSearch = useDebouncedValue(search, RequestDelay); + const latestRequestId = useRef(0); + const { loading, request } = useRequest( useCallback(async () => { + const requestId = ++latestRequestId.current; const res = await client.post("/suggestions.mention", { - query: search, - limit: maxResultsInSection, + query: requestSearch, + limit: requestSearch ? 25 : 5, }); + // A newer request was sent while this one was in progress. + if (requestId !== latestRequestId.current) { + return; + } + runInAction(() => { res.data.documents.map(documents.add); res.data.users.map(users.add); @@ -143,7 +158,7 @@ function MentionMenu({ search = "", isActive, ...rest }: Props) { ...Object.entries(res.data.familiarity ?? {}), ]) ); - }, [search, documents, users, collections, groups, maxResultsInSection]) + }, [requestSearch, documents, users, collections, groups]) ); // Suggestions that the current user is familiar with, for example a member of diff --git a/app/editor/components/ToolbarMenu.tsx b/app/editor/components/ToolbarMenu.tsx index 48942118b1..fa67f235d0 100644 --- a/app/editor/components/ToolbarMenu.tsx +++ b/app/editor/components/ToolbarMenu.tsx @@ -16,6 +16,11 @@ import ToolbarButton from "./ToolbarButton"; import ToolbarSeparator from "./ToolbarSeparator"; import Tooltip from "./Tooltip"; import { toMenuItems } from "~/components/Menu/transformer"; +import { + MenuFilter, + MenuFilterEmpty, + useMenuFilter, +} from "~/components/Menu/MenuFilter"; import { MenuContent } from "~/components/primitives/Menu"; import { MenuProvider } from "~/components/primitives/Menu/MenuContext"; import { Menu, MenuTrigger } from "~/components/primitives/Menu"; @@ -44,10 +49,23 @@ function ToolbarDropdown(props: ToolbarDropdownProps) { const { item, shortcut, tooltip } = props; const { state } = view; const [isOpen, setIsOpen] = useState(false); + const { + query, + setQuery, + handleKeyDownCapture, + handleEscapeKeyDown, + reset: resetFilter, + } = useMenuFilter(); - const handleOpenChange = useCallback((open: boolean) => { - setIsOpen(open); - }, []); + const handleOpenChange = useCallback( + (open: boolean) => { + setIsOpen(open); + if (open) { + resetFilter(); + } + }, + [resetFilter] + ); const items: TMenuItem[] = useMemo(() => { if (!isOpen) { @@ -86,8 +104,14 @@ function ToolbarDropdown(props: ToolbarDropdownProps) { align="end" aria-label={item.tooltip || t("More options")} onCloseAutoFocus={handleCloseAutoFocus} + onEscapeKeyDown={handleEscapeKeyDown} + onKeyDownCapture={handleKeyDownCapture} > - {toMenuItems(items)} + + + {toMenuItems(items, query) ?? + (query ? : null)} + diff --git a/app/editor/extensions/DragHandle.ts b/app/editor/extensions/DragHandle.ts index 703530f153..62ba35274a 100644 --- a/app/editor/extensions/DragHandle.ts +++ b/app/editor/extensions/DragHandle.ts @@ -37,7 +37,7 @@ const hoverPluginKey = new PluginKey(HOVER_META_KEY); /** * Renders a floating drag handle to the left of block-level nodes when the - * user hovers within the editor, and lets the user drag the block to reorder + * user hovers near the side of the editor, and lets the user drag the block to reorder * it. The handle is a real, always-draggable DOM element rather than a CSS * pseudo on the block, which keeps drag-and-drop working uniformly across * node types regardless of whether the schema declares `draggable: true`. diff --git a/app/editor/plugins/DragTarget.ts b/app/editor/plugins/DragTarget.ts index 9ba2e6d499..95dd87febd 100644 --- a/app/editor/plugins/DragTarget.ts +++ b/app/editor/plugins/DragTarget.ts @@ -18,12 +18,13 @@ export interface ResolvedDragTarget { const LIST_TYPES = ["bullet_list", "ordered_list", "checkbox_list"]; -// Distance outside the content column in which the cursor still finds a block. -const GUTTER_HIT_WIDTH = 60; - // Inset from the content edges, so that posAtCoords lands inside the block. const CONTENT_INSET = 1; +// Fraction of the content width, from the handle side, in which hover shows +// the handle. +const HOVER_ZONE_RATIO = 0.25; + /** * A block in the editor that the drag handle can attach to. Holds the * position of the block in the document and the DOM element that the handle @@ -46,8 +47,9 @@ export class DragTarget { } /** - * Finds the block under the cursor, also when the cursor is in the gutter - * to the side of the content. + * Finds the block at the cursor's height when the cursor is on the side + * where the handle renders, either outside the content or in the first 25% + * of the content width. * * @param view - the editor view. * @param event - the mouse event. @@ -61,17 +63,20 @@ export class DragTarget { if (event.clientY < rect.top || event.clientY > rect.bottom) { return null; } + + // Ignore the cursor over other regions, such as the sidebar or a modal. + const region = view.dom.closest("[role='main']"); + if ( + region && + !(event.target instanceof Node && region.contains(event.target)) + ) { + return null; + } const style = window.getComputedStyle(view.dom); const paddingLeft = parseFloat(style.paddingLeft) || 0; const paddingRight = parseFloat(style.paddingRight) || 0; const contentLeft = rect.left + paddingLeft + CONTENT_INSET; const contentRight = rect.right - paddingRight - CONTENT_INSET; - if ( - event.clientX < contentLeft - GUTTER_HIT_WIDTH || - event.clientX > contentRight + GUTTER_HIT_WIDTH - ) { - return null; - } const projectedX = Math.max( contentLeft, Math.min(contentRight, event.clientX) @@ -80,27 +85,20 @@ export class DragTarget { // Mermaid diagrams hide their source code block and render an SVG widget // next to it — target the underlying code block but anchor the handle to // the visible diagram element. - const mermaid = this.mermaidFromEvent(view, event, projectedX); - if (mermaid) { - return mermaid; + const target = + this.mermaidFromEvent(view, event, projectedX) ?? + this.blockFromCoords(view, projectedX, event.clientY); + if (!target) { + return null; } - const coords = view.posAtCoords({ - left: projectedX, - top: event.clientY, - }); - if (!coords) { - return null; - } - const resolved = this.resolvePos(view.state, coords.pos); - if (!resolved) { - return null; - } - const dom = view.nodeDOM(resolved.pos); - if (!(dom instanceof HTMLElement)) { - return null; - } - return new DragTarget(resolved.pos, dom, resolved.kind); + // Only show the handle when the cursor is on the side it renders on. + const zoneWidth = (contentRight - contentLeft) * HOVER_ZONE_RATIO; + const isRTL = window.getComputedStyle(target.element).direction === "rtl"; + const inZone = isRTL + ? event.clientX >= contentRight - zoneWidth + : event.clientX <= contentLeft + zoneWidth; + return inZone ? target : null; } /** @@ -258,6 +256,26 @@ export class DragTarget { return found; } + private static blockFromCoords( + view: EditorView, + left: number, + top: number + ): DragTarget | null { + const coords = view.posAtCoords({ left, top }); + if (!coords) { + return null; + } + const resolved = this.resolvePos(view.state, coords.pos); + if (!resolved) { + return null; + } + const dom = view.nodeDOM(resolved.pos); + if (!(dom instanceof HTMLElement)) { + return null; + } + return new DragTarget(resolved.pos, dom, resolved.kind); + } + private static mermaidFromEvent( view: EditorView, event: MouseEvent, diff --git a/app/hooks/useDebouncedValue.ts b/app/hooks/useDebouncedValue.ts new file mode 100644 index 0000000000..f1892d3b28 --- /dev/null +++ b/app/hooks/useDebouncedValue.ts @@ -0,0 +1,20 @@ +import { useEffect, useState } from "react"; + +/** + * Returns a value that only changes after the given value has stayed the same + * for the wait time. The first value is returned at once. + * + * @param value the value to debounce. + * @param wait the time in milliseconds the value must stay the same. + * @returns the last value that stayed the same for the wait time. + */ +export default function useDebouncedValue(value: T, wait: number): T { + const [debounced, setDebounced] = useState(value); + + useEffect(() => { + const timeout = setTimeout(() => setDebounced(value), wait); + return () => clearTimeout(timeout); + }, [value, wait]); + + return debounced; +} diff --git a/app/hooks/useLastVisitedPath.test.ts b/app/hooks/useLastVisitedPath.test.ts new file mode 100644 index 0000000000..091f76bbbc --- /dev/null +++ b/app/hooks/useLastVisitedPath.test.ts @@ -0,0 +1,32 @@ +import { getCookie, removeCookie } from "tiny-cookie"; +import { setPostLoginPath } from "./useLastVisitedPath"; + +const key = "postLoginRedirectPath"; + +describe("setPostLoginPath", () => { + beforeEach(() => { + sessionStorage.clear(); + removeCookie(key); + }); + + it("stores the path in session storage and the shared cookie", () => { + setPostLoginPath("/doc/a"); + + expect(sessionStorage.getItem(key)).toBe("/doc/a"); + expect(getCookie(key)).toBe("/doc/a"); + }); + + it("does not change the shared cookie when tabOnly is set", () => { + setPostLoginPath("/doc/a"); + setPostLoginPath("/doc/b", { tabOnly: true }); + + expect(sessionStorage.getItem(key)).toBe("/doc/b"); + expect(getCookie(key)).toBe("/doc/a"); + }); + + it("ignores paths that are not allowed as a login redirect", () => { + setPostLoginPath("/home", { tabOnly: true }); + + expect(sessionStorage.getItem(key)).toBeNull(); + }); +}); diff --git a/app/hooks/useLastVisitedPath.tsx b/app/hooks/useLastVisitedPath.tsx index e7f29b6135..a8b25bbfbc 100644 --- a/app/hooks/useLastVisitedPath.tsx +++ b/app/hooks/useLastVisitedPath.tsx @@ -56,12 +56,19 @@ export function useTrackLastVisitedPath(currentPath: string): void { * Sets the path that the user visited before being asked to login. * * @param path The path to set as the post login path. + * @param options.tabOnly Whether to store the path for the current tab only, rather than + * also sharing it with other tabs through a cookie. */ -export function setPostLoginPath(path: string) { +export function setPostLoginPath( + path: string, + options: { tabOnly?: boolean } = {} +) { const key = "postLoginRedirectPath"; if (isAllowedLoginRedirect(path)) { - setCookie(key, path, { expires: 1 }); + if (!options.tabOnly) { + setCookie(key, path, { expires: 1 }); + } try { sessionStorage.setItem(key, path); diff --git a/app/hooks/useShareMenuActions.tsx b/app/hooks/useShareMenuActions.tsx index 531851c54a..536e1efd3d 100644 --- a/app/hooks/useShareMenuActions.tsx +++ b/app/hooks/useShareMenuActions.tsx @@ -4,6 +4,7 @@ import { copyShareUrl, goToShareSource, revokeShare, + setShareExpiry, } from "~/actions/definitions/shares"; import { useMenuAction } from "~/hooks/useMenuAction"; @@ -15,7 +16,13 @@ import { useMenuAction } from "~/hooks/useMenuAction"; */ export function useShareMenuActions() { const actions = useMemo( - () => [copyShareUrl, goToShareSource, ActionSeparator, revokeShare], + () => [ + copyShareUrl, + goToShareSource, + setShareExpiry, + ActionSeparator, + revokeShare, + ], [] ); diff --git a/app/index.tsx b/app/index.tsx index aff036a6ab..2d3546cc65 100644 --- a/app/index.tsx +++ b/app/index.tsx @@ -33,7 +33,8 @@ import { ActionContextProvider } from "./hooks/useActionContext"; // Load plugins as soon as possible void PluginManager.loadPlugins(); -initI18n(env.DEFAULT_LANGUAGE); +// Start with the language of the stored user to prevent a second fetch. +initI18n(stores.auth.user?.language ?? env.DEFAULT_LANGUAGE); // Register ahead of rendering so the capture-phase listeners run before any // React-mounted listener, such as kbar's Enter handler. diff --git a/app/menus/DocumentMenu.tsx b/app/menus/DocumentMenu.tsx index 8f6bc827a8..66cbcaec9b 100644 --- a/app/menus/DocumentMenu.tsx +++ b/app/menus/DocumentMenu.tsx @@ -115,9 +115,7 @@ function DocumentMenu({ const handleFullWidthToggle = React.useCallback( (checked: boolean) => { - user.setPreference(UserPreference.FullWidthDocuments, checked); - void user.save(); - document.fullWidth = checked; + void user.savePreference(UserPreference.FullWidthDocuments, checked); void document.save({ fullWidth: checked }); }, [user, document] diff --git a/app/models/Collection.ts b/app/models/Collection.ts index b64a5accee..cf224fc5d5 100644 --- a/app/models/Collection.ts +++ b/app/models/Collection.ts @@ -21,6 +21,7 @@ import { } from "@shared/utils/collections"; import type CollectionsStore from "~/stores/CollectionsStore"; import type Document from "~/models/Document"; +import { CoalescedFetch } from "~/models/base/CoalescedFetch"; import ParanoidModel from "~/models/base/ParanoidModel"; import { client } from "~/utils/ApiClient"; import type User from "./User"; @@ -285,15 +286,11 @@ export default class Collection extends ParanoidModel { } fetchDocuments = async (options?: { force: boolean }) => { - if (this.isFetching) { - return; - } if (this.documents && options?.force !== true) { return; } - try { - this.isFetching = true; + await this.documentsFetch.run(async () => { const res = await client.post("/collections.documents", { id: this.id, }); @@ -302,9 +299,7 @@ export default class Collection extends ParanoidModel { runInAction(() => { this.documents = res.data; }); - } finally { - this.isFetching = false; - } + }, options?.force); }; /** @@ -513,5 +508,5 @@ export default class Collection extends ParanoidModel { } } - private isFetching = false; + private documentsFetch = new CoalescedFetch(); } diff --git a/app/models/Document.ts b/app/models/Document.ts index 1bf115d44d..cc0b10e16a 100644 --- a/app/models/Document.ts +++ b/app/models/Document.ts @@ -41,7 +41,6 @@ import type { Searchable } from "./interfaces/Searchable"; type SaveOptions = JSONObject & { publish?: boolean; - done?: boolean; autosave?: boolean; }; @@ -508,20 +507,20 @@ export default class Document extends ArchivableModel implements Searchable { } /** - * Set the value for a specific display preference key. + * Set the value for a specific display preference key and save it to the + * server. The value is applied at once and reverted if the request fails. * - * @param key The DocumentPreference key to set - * @param value The value to set + * @param key The DocumentPreference key to set. + * @param value The value to set. + * @returns a promise that resolves when the preference is saved. */ - @action - setPreference( + savePreference( key: K, value: NonNullable ) { - this.preferences = { - ...this.preferences, - [key]: value, - }; + return this.save({ + preferences: { ...this.preferences, [key]: value }, + }); } /** @@ -628,12 +627,14 @@ export default class Document extends ArchivableModel implements Searchable { @action save = async ( - fields?: Properties, + fields?: Properties, options?: SaveOptions ): Promise => { const params = fields ?? this.toAPI(); this.isSaving = true; + const settle = this.applyOptimistic(fields ?? {}); + try { const model = await this.store.save( { ...params, ...fields, id: this.id }, @@ -644,8 +645,12 @@ export default class Document extends ArchivableModel implements Searchable { set(this, Object.assign({}, params, model)); this.persistedAttributes = this.toAPI(); + settle(true); return model; + } catch (err) { + settle(false); + throw err; } finally { this.isSaving = false; } diff --git a/app/models/Notification.ts b/app/models/Notification.ts index e925f3193d..5f92b48a55 100644 --- a/app/models/Notification.ts +++ b/app/models/Notification.ts @@ -160,8 +160,7 @@ class Notification extends Model { */ @action toggleRead() { - this.viewedAt = this.viewedAt ? null : new Date(); - return this.save(); + return this.save({ viewedAt: this.viewedAt ? null : new Date() }); } /** @@ -175,8 +174,7 @@ class Notification extends Model { return; } - this.viewedAt = new Date(); - return this.save(); + return this.save({ viewedAt: new Date() }); } /** @@ -190,8 +188,7 @@ class Notification extends Model { return; } - this.archivedAt = new Date(); - return this.save(); + return this.save({ archivedAt: new Date() }); } /** diff --git a/app/models/Team.ts b/app/models/Team.ts index 81625041de..fe3571923e 100644 --- a/app/models/Team.ts +++ b/app/models/Team.ts @@ -156,16 +156,17 @@ class Team extends Model { } /** - * Set the value for a specific preference key. + * Set the value for a specific preference key and save it to the server. + * The value is applied at once and reverted if the request fails. * * @param key The TeamPreference key to set. * @param value The value to set. + * @returns a promise that resolves when the preference is saved. */ - setPreference(key: T, value: TeamPreferences[T]) { - this.preferences = { - ...this.preferences, - [key]: value, - }; + savePreference(key: T, value: TeamPreferences[T]) { + return this.save({ + preferences: { ...this.preferences, [key]: value }, + }); } } diff --git a/app/models/User.test.ts b/app/models/User.test.ts index 9800ecafc8..9f39ee4572 100644 --- a/app/models/User.test.ts +++ b/app/models/User.test.ts @@ -1,5 +1,10 @@ +import { vi } from "vitest"; +import { UserPreference } from "@shared/types"; import User from "./User"; import stores from "~/stores"; +import { client } from "~/utils/ApiClient"; + +const post = vi.mocked(client.post); describe("User model", () => { const users = stores.users; @@ -266,4 +271,54 @@ describe("User model", () => { ]); }); }); + + describe("savePreference", () => { + beforeEach(() => { + post.mockReset(); + }); + + it("should send only preferences and keep other values", async () => { + const user = users.add({ + id: "pref-success", + name: "Alice", + preferences: { [UserPreference.RememberLastPath]: true }, + }); + post.mockResolvedValueOnce({ data: { id: "pref-success" } }); + + const promise = user.savePreference( + UserPreference.UseCursorPointer, + false + ); + expect(user.getPreference(UserPreference.UseCursorPointer)).toBe(false); + await promise; + + expect(post).toHaveBeenCalledWith("/users.update", { + id: "pref-success", + preferences: { + [UserPreference.RememberLastPath]: true, + [UserPreference.UseCursorPointer]: false, + }, + }); + expect(user.getPreference(UserPreference.UseCursorPointer)).toBe(false); + expect(user.getPreference(UserPreference.RememberLastPath)).toBe(true); + }); + + it("should revert the preference on failure", async () => { + const user = users.add({ + id: "pref-failure", + name: "Alice", + preferences: { [UserPreference.UseCursorPointer]: true }, + }); + post.mockRejectedValueOnce(new Error("server error")); + + const promise = user.savePreference( + UserPreference.UseCursorPointer, + false + ); + expect(user.getPreference(UserPreference.UseCursorPointer)).toBe(false); + + await expect(promise).rejects.toThrow("server error"); + expect(user.getPreference(UserPreference.UseCursorPointer)).toBe(true); + }); + }); }); diff --git a/app/models/User.ts b/app/models/User.ts index fbff30f53a..71a96acf02 100644 --- a/app/models/User.ts +++ b/app/models/User.ts @@ -302,20 +302,20 @@ class User extends ParanoidModel implements Searchable { } /** - * Set the value for a specific preference key. + * Set the value for a specific preference key and save it to the server. + * The value is applied at once and reverted if the request fails. * - * @param key The UserPreference key to retrieve - * @param value The value to set + * @param key The UserPreference key to set. + * @param value The value to set. + * @returns a promise that resolves when the preference is saved. */ - @action - setPreference( + savePreference( key: K, value: NonNullable ) { - this.preferences = { - ...this.preferences, - [key]: value, - }; + return this.save({ + preferences: { ...this.preferences, [key]: value }, + }); } getMembership(document: Document) { diff --git a/app/models/base/CoalescedFetch.test.ts b/app/models/base/CoalescedFetch.test.ts new file mode 100644 index 0000000000..8773c82219 --- /dev/null +++ b/app/models/base/CoalescedFetch.test.ts @@ -0,0 +1,110 @@ +import { CoalescedFetch, KeyedCoalescedFetch } from "./CoalescedFetch"; + +function deferred() { + let resolve = () => {}; + let reject = (_err: Error) => {}; + const promise = new Promise((res, rej) => { + resolve = res; + reject = rej; + }); + return { promise, resolve, reject }; +} + +describe("CoalescedFetch", () => { + it("should share an in-flight request with unforced calls", async () => { + const queue = new CoalescedFetch(); + const request = deferred(); + const fetch = vi.fn(() => request.promise); + + const first = queue.run(fetch); + const second = queue.run(fetch); + request.resolve(); + await Promise.all([first, second]); + + expect(fetch).toHaveBeenCalledTimes(1); + }); + + it("should run one more request after an in-flight request when forced", async () => { + const queue = new CoalescedFetch(); + const requests = [deferred(), deferred()]; + let calls = 0; + const fetch = vi.fn(() => requests[calls++].promise); + + const first = queue.run(fetch); + const forced = queue.run(fetch, true); + const forcedAgain = queue.run(fetch, true); + expect(fetch).toHaveBeenCalledTimes(1); + + requests[0].resolve(); + await first; + await vi.waitFor(() => expect(fetch).toHaveBeenCalledTimes(2)); + + let settled = false; + void forced.then(() => { + settled = true; + }); + await Promise.resolve(); + expect(settled).toBe(false); + + requests[1].resolve(); + await Promise.all([forced, forcedAgain]); + expect(fetch).toHaveBeenCalledTimes(2); + }); + + it("should run the forced request when the in-flight request fails", async () => { + const queue = new CoalescedFetch(); + const failed = deferred(); + const fetch = vi + .fn<() => Promise>() + .mockReturnValueOnce(failed.promise) + .mockResolvedValueOnce(undefined); + + const first = queue.run(fetch); + const forced = queue.run(fetch, true); + failed.reject(new Error("Network error")); + + await expect(first).rejects.toThrow("Network error"); + await expect(forced).resolves.toBeUndefined(); + expect(fetch).toHaveBeenCalledTimes(2); + }); + + it("should start a new request after the previous one completes", async () => { + const queue = new CoalescedFetch(); + const fetch = vi.fn(() => Promise.resolve()); + + await queue.run(fetch); + await queue.run(fetch); + + expect(fetch).toHaveBeenCalledTimes(2); + }); +}); + +describe("KeyedCoalescedFetch", () => { + it("should share requests for the same key only", async () => { + const fetches = new KeyedCoalescedFetch(); + const fetch = vi.fn((value: string) => Promise.resolve(value)); + + const results = await Promise.all([ + fetches.run("a", () => fetch("a1")), + fetches.run("a", () => fetch("a2")), + fetches.run("b", () => fetch("b1")), + ]); + + expect(results).toEqual(["a1", "a1", "b1"]); + expect(fetch).toHaveBeenCalledTimes(2); + }); + + it("should return the result of the follow-up request to a forced call", async () => { + const fetches = new KeyedCoalescedFetch(); + let calls = 0; + const fetch = () => Promise.resolve(++calls); + + const results = await Promise.all([ + fetches.run("a", fetch), + fetches.run("a", fetch, true), + ]); + + expect(results).toEqual([1, 2]); + expect(await fetches.run("a", fetch)).toBe(3); + }); +}); diff --git a/app/models/base/CoalescedFetch.ts b/app/models/base/CoalescedFetch.ts new file mode 100644 index 0000000000..16f983ed54 --- /dev/null +++ b/app/models/base/CoalescedFetch.ts @@ -0,0 +1,76 @@ +/** + * Runs an async fetch so that concurrent calls share one request. A forced + * call made while a request is in flight runs one more request after it, so + * the result is never older than the forced call. + */ +export class CoalescedFetch { + /** Whether no request is in flight or queued. */ + get isIdle(): boolean { + return !this.current && !this.next; + } + + /** + * Runs the fetch, or joins the request that is in flight. + * + * @param fetch the function that performs the request. + * @param force whether the result must start after this call. + * @returns a promise that resolves with the result of the request. + */ + run(fetch: () => Promise, force = false): Promise { + if (!this.current) { + this.current = fetch().finally(() => { + this.current = undefined; + }); + return this.current; + } + + if (!force) { + return this.current; + } + + this.next ??= this.current + .catch(() => undefined) + .then(() => { + this.next = undefined; + return this.run(fetch, true); + }); + return this.next; + } + + private current?: Promise; + private next?: Promise; +} + +/** + * Runs a separate {@link CoalescedFetch} for each key, and discards it when + * its requests are complete. + */ +export class KeyedCoalescedFetch { + /** + * Runs the fetch for the key, or joins the request for the key that is in + * flight. + * + * @param key the key that identifies the resource. + * @param fetch the function that performs the request. + * @param force whether the result must start after this call. + * @returns a promise that resolves with the result of the request. + */ + run(key: string, fetch: () => Promise, force = false): Promise { + let entry = this.entries.get(key); + if (!entry) { + entry = new CoalescedFetch(); + this.entries.set(key, entry); + } + + const promise = entry.run(fetch, force); + const cleanup = () => { + if (entry.isIdle && this.entries.get(key) === entry) { + this.entries.delete(key); + } + }; + void promise.then(cleanup, cleanup); + return promise; + } + + private entries = new Map>(); +} diff --git a/app/models/base/Model.test.ts b/app/models/base/Model.test.ts index 3c8478331b..c3e8134743 100644 --- a/app/models/base/Model.test.ts +++ b/app/models/base/Model.test.ts @@ -1,5 +1,289 @@ import { autorun, isAction, isObservableProp } from "mobx"; +import { vi } from "vitest"; +import { CollectionPermission } from "@shared/types"; +import Collection from "~/models/Collection"; import stores from "~/stores"; +import { client } from "~/utils/ApiClient"; + +const post = vi.mocked(client.post); + +const defer = () => { + let resolve!: (value: unknown) => void; + let reject!: (error: unknown) => void; + const promise = new Promise((res, rej) => { + resolve = res; + reject = rej; + }); + return { promise, resolve, reject }; +}; + +describe("Model#save", () => { + beforeEach(() => { + post.mockReset(); + }); + + it("should apply params before the server responds and keep them on success", async () => { + const collection = stores.collections.add({ + id: "success", + name: "Before", + }); + const request = defer(); + post.mockReturnValueOnce(request.promise); + + const promise = collection.save({ name: "After" }); + + expect(collection.name).toBe("After"); + expect(collection.isSaving).toBe(true); + expect(collection.isDirty()).toBe(true); + + request.resolve({ data: { id: "success", name: "After" }, policies: [] }); + await promise; + + expect(collection.name).toBe("After"); + expect(collection.isSaving).toBe(false); + expect(collection.isDirty()).toBe(false); + }); + + it("should revert params on failure", async () => { + const collection = stores.collections.add({ + id: "failure", + name: "Before", + }); + post.mockRejectedValueOnce(new Error("server error")); + + const promise = collection.save({ name: "After" }); + expect(collection.name).toBe("After"); + + await expect(promise).rejects.toThrow("server error"); + + expect(collection.name).toBe("Before"); + expect(collection.isSaving).toBe(false); + expect(collection.isDirty()).toBe(false); + }); + + it("should not apply params that are not fields", async () => { + const collection = stores.collections.add({ + id: "non-field", + name: "Before", + }); + const request = defer(); + post.mockReturnValueOnce(request.promise); + + const promise = collection.save({ name: "After", publish: true }); + expect("publish" in collection).toBe(false); + + request.reject(new Error("server error")); + await expect(promise).rejects.toThrow("server error"); + }); + + it("should keep unsaved changes when saving without params fails", async () => { + const collection = stores.collections.add({ id: "direct", name: "Before" }); + collection.name = "Edited"; + const request = defer(); + post.mockReturnValueOnce(request.promise); + + const promise = collection.save(); + collection.name = "Edited again"; + request.reject(new Error("server error")); + await expect(promise).rejects.toThrow("server error"); + + expect(collection.name).toBe("Edited again"); + expect(collection.isDirty()).toBe(true); + }); + + it("should keep changes made to a document while a failed save was in flight", async () => { + const document = stores.documents.add({ id: "document", title: "Before" }); + document.title = "Edited"; + const request = defer(); + post.mockReturnValueOnce(request.promise); + + const promise = document.save(); + document.title = "Edited again"; + request.reject(new Error("server error")); + await expect(promise).rejects.toThrow("server error"); + + expect(document.title).toBe("Edited again"); + }); + + it("should revert document fields on failure", async () => { + const document = stores.documents.add({ + id: "document-fields", + title: "Before", + }); + post.mockRejectedValueOnce(new Error("server error")); + + const promise = document.save({ title: "After" }); + expect(document.title).toBe("After"); + + await expect(promise).rejects.toThrow("server error"); + expect(document.title).toBe("Before"); + }); + + it("should keep a newer successful save when an older one fails", async () => { + const collection = stores.collections.add({ id: "stale", name: "Before" }); + const first = defer(); + const second = defer(); + post.mockReturnValueOnce(first.promise).mockReturnValueOnce(second.promise); + + const firstSave = collection.save({ name: "One" }); + const secondSave = collection.save({ name: "Two" }); + + second.resolve({ data: { id: "stale", name: "Two" }, policies: [] }); + await secondSave; + first.reject(new Error("server error")); + await expect(firstSave).rejects.toThrow("server error"); + + expect(collection.name).toBe("Two"); + expect(collection.isDirty()).toBe(false); + }); + + it("should revert to the confirmed value when overlapping saves all fail", async () => { + const collection = stores.collections.add({ + id: "overlap", + name: "Before", + }); + const first = defer(); + const second = defer(); + post.mockReturnValueOnce(first.promise).mockReturnValueOnce(second.promise); + + const firstSave = collection.save({ name: "One" }); + const secondSave = collection.save({ name: "Two" }); + + first.reject(new Error("server error")); + await expect(firstSave).rejects.toThrow("server error"); + expect(collection.name).toBe("Two"); + + second.reject(new Error("server error")); + await expect(secondSave).rejects.toThrow("server error"); + expect(collection.name).toBe("Before"); + expect(collection.isDirty()).toBe(false); + }); + + it("should keep an update received while a failed save was in flight", async () => { + const collection = stores.collections.add({ id: "remote", name: "Before" }); + const request = defer(); + post.mockReturnValueOnce(request.promise); + + const promise = collection.save({ name: "Mine" }); + stores.collections.add({ id: "remote", name: "Theirs" }); + request.reject(new Error("server error")); + await expect(promise).rejects.toThrow("server error"); + + expect(collection.name).toBe("Theirs"); + expect(collection.isDirty()).toBe(false); + }); + + it("should stay clean when an unrelated update arrives before a failure", async () => { + const collection = stores.collections.add({ + id: "unrelated", + name: "Before", + icon: "one", + }); + const request = defer(); + post.mockReturnValueOnce(request.promise); + + const promise = collection.save({ name: "Mine" }); + stores.collections.add({ id: "unrelated", icon: "two" }); + request.reject(new Error("server error")); + await expect(promise).rejects.toThrow("server error"); + + expect(collection.name).toBe("Before"); + expect(collection.icon).toBe("two"); + expect(collection.isDirty()).toBe(false); + }); + + it("should run change hooks when the server confirms, not before", async () => { + const collection = stores.collections.add({ + id: "hooks", + name: "Hooks", + permission: undefined, + }); + stores.documents.add({ + id: "hooks-doc", + title: "t", + collectionId: "hooks", + }); + stores.policies.add({ id: "hooks-doc", abilities: {} }); + const request = defer(); + post.mockReturnValueOnce(request.promise); + + const promise = collection.save({ permission: CollectionPermission.Read }); + expect(stores.policies.get("hooks-doc")).toBeDefined(); + + request.resolve({ + data: { id: "hooks", name: "Hooks", permission: "read" }, + policies: [], + }); + await promise; + + expect(stores.policies.get("hooks-doc")).toBeUndefined(); + }); + + it("should not run change hooks for an unrelated update during a save", async () => { + const collection = stores.collections.add({ + id: "hooks-unrelated", + name: "Hooks", + icon: "one", + permission: undefined, + }); + stores.documents.add({ + id: "hooks-unrelated-doc", + title: "t", + collectionId: "hooks-unrelated", + }); + stores.policies.add({ id: "hooks-unrelated-doc", abilities: {} }); + const request = defer(); + post.mockReturnValueOnce(request.promise); + + const promise = collection.save({ permission: CollectionPermission.Read }); + stores.collections.add({ id: "hooks-unrelated", icon: "two" }); + expect(stores.policies.get("hooks-unrelated-doc")).toBeDefined(); + + request.reject(new Error("server error")); + await expect(promise).rejects.toThrow("server error"); + + expect(collection.permission).toBeUndefined(); + expect(stores.policies.get("hooks-unrelated-doc")).toBeDefined(); + }); + + it("should not run change hooks when the save fails", async () => { + const collection = stores.collections.add({ + id: "hooks-failure", + name: "Hooks", + permission: undefined, + }); + stores.documents.add({ + id: "hooks-failure-doc", + title: "t", + collectionId: "hooks-failure", + }); + stores.policies.add({ id: "hooks-failure-doc", abilities: {} }); + post.mockRejectedValueOnce(new Error("server error")); + + await expect( + collection.save({ permission: CollectionPermission.Read }) + ).rejects.toThrow("server error"); + + expect(collection.permission).toBeUndefined(); + expect(stores.policies.get("hooks-failure-doc")).toBeDefined(); + }); + + it("should leave a new model new and out of the store on failure", async () => { + const collection = new Collection({ name: "Draft" }, stores.collections); + expect(collection.isNew).toBe(true); + post.mockRejectedValueOnce(new Error("server error")); + + const promise = collection.save({ name: "Named" }); + expect(collection.name).toBe("Named"); + await expect(promise).rejects.toThrow("server error"); + + expect(collection.name).toBe("Draft"); + expect(collection.isNew).toBe(true); + expect( + Array.from(stores.collections.data.values()).includes(collection) + ).toBe(false); + }); +}); describe("Model observability", () => { it("annotates fields declared on the base class and on subclasses", () => { diff --git a/app/models/base/Model.ts b/app/models/base/Model.ts index 53f5e4febb..3d6fa5dc5c 100644 --- a/app/models/base/Model.ts +++ b/app/models/base/Model.ts @@ -1,5 +1,5 @@ import { isEqual, pick } from "es-toolkit/compat"; -import { action, makeObservable, observable, toJS } from "mobx"; +import { action, makeObservable, observable, runInAction, toJS } from "mobx"; import type { JSONObject } from "@shared/types"; import type Store from "~/stores/base/Store"; import type { PartialExcept } from "~/types"; @@ -47,6 +47,16 @@ function getAnnotatedKeysForModel(target: Model): (string | symbol)[] { return []; } +interface PendingField { + /** The last value known to be accepted by the server. */ + confirmed: unknown; + /** The number of requests in flight that wrote to the field. */ + count: number; +} + +/** Fields on each model that have an optimistic write in flight. */ +const pendingFields = new WeakMap>(); + export default abstract class Model { static modelName: string; @@ -128,50 +138,46 @@ export default abstract class Model { this: Model, options: { withoutPolicies?: boolean } = {} ): Promise { - // this is to ensure that multiple loads don’t happen in parallel - if (this.loadingRelations) { - return this.loadingRelations; - } + return this.store.relationFetches.run(this.id, () => { + const promises = []; - const promises = []; + const relations = getRelationsForModelClass( + this.constructor as typeof Model + ); - const relations = getRelationsForModelClass( - this.constructor as typeof Model - ); - - if (relations) { - for (const properties of relations.values()) { - const store = this.store.rootStore.getStoreForModelName( - properties.relationClassResolver().modelName - ); - if ("canFetchById" in store && store.canFetchById) { - const id = this[properties.idKey]; - if (id) { - promises.push(store.fetch(id as string)); + if (relations) { + for (const properties of relations.values()) { + const store = this.store.rootStore.getStoreForModelName( + properties.relationClassResolver().modelName + ); + if ("canFetchById" in store && store.canFetchById) { + const id = this[properties.idKey]; + if (id) { + promises.push(store.fetch(id as string)); + } } } } - } - const policy = this.store.rootStore.policies.get(this.id); - if (!policy && !options.withoutPolicies && this.store.canFetchById) { - promises.push(this.store.fetch(this.id, { force: true })); - } + const policy = this.store.rootStore.policies.get(this.id); + if (!policy && !options.withoutPolicies && this.store.canFetchById) { + promises.push(this.store.fetch(this.id, { force: true })); + } - try { - this.loadingRelations = Promise.all(promises); - return await this.loadingRelations; - } finally { - this.loadingRelations = undefined; - } + return Promise.all(promises); + }); } /** - * Persists the model to the server API + * Persists the model to the server API. + * + * Fields passed as params are applied optimistically, and reverted if the + * request fails. * * @param params Specific fields to save, if not provided the model will be serialized * @param options Options to pass to the store * @returns A promise that resolves with the updated model + * @throws The original error if the request fails. */ save = async ( params?: Record, @@ -179,22 +185,25 @@ export default abstract class Model { ): Promise => { const isNew = this.isNew; this.isSaving = true; + let settle: ((success: boolean) => void) | undefined; try { - // ensure that the id is passed if the document has one - if (!params) { - params = this.toAPI(); - } - if (isNew) { LifecycleManager.executeHooks(this.constructor, "beforeCreate", this); } else { LifecycleManager.executeHooks(this.constructor, "beforeUpdate", this); } + if (params) { + settle = this.applyOptimistic(params); + } else { + params = this.toAPI(); + } + const model = await this.store.save( { ...params, + // ensure that the id is passed if the document has one id: this.id, }, { @@ -205,6 +214,7 @@ export default abstract class Model { // if saving is successful set the new values on the model itself this.updateData(Object.assign({}, params, model)); + settle?.(true); if (isNew) { LifecycleManager.executeHooks(this.constructor, "afterCreate", this); @@ -213,17 +223,89 @@ export default abstract class Model { } return model; + } catch (err) { + settle?.(false); + throw err; } finally { this.isSaving = false; } }; + /** + * Sets declared fields on the model ahead of a request to the server, so + * that observers update without waiting for the response. + * + * @param params the values being saved. + * @returns a function to call once when the request settles. On failure each + * field still holding its optimistic value is reverted to the last value + * confirmed by the server. + */ + protected applyOptimistic( + params: Record + ): (success: boolean) => void { + const fields = getFieldsForModel(this); + const keys = Object.keys(params).filter((key) => fields.includes(key)); + const pending = pendingFields.get(this) ?? new Map(); + pendingFields.set(this, pending); + + runInAction(() => { + for (const key of keys) { + const entry = pending.get(key); + if (entry) { + entry.count++; + } else { + pending.set(key, { confirmed: Reflect.get(this, key), count: 1 }); + } + Reflect.set(this, key, params[key]); + } + }); + + let settled = false; + + return action((success: boolean) => { + if (settled) { + return; + } + settled = true; + + for (const key of keys) { + const entry = pending.get(key); + if (!entry) { + continue; + } + + // A value changed since the optimistic write is newer, so it is kept. + if (!success && isEqual(toJS(Reflect.get(this, key)), params[key])) { + Reflect.set(this, key, entry.confirmed); + + if ( + isEqual(Reflect.get(this.persistedAttributes, key), params[key]) + ) { + Reflect.set(this.persistedAttributes, key, toJS(entry.confirmed)); + } + } + + if (--entry.count === 0) { + pending.delete(key); + } + } + }); + } + updateData = action((data: Record) => { if (this.initialized) { LifecycleManager.executeHooks(this.constructor, "beforeChange", this); } + // Change hooks compare incoming fields against confirmed values, not + // optimistic ones. + const pending = pendingFields.get(this); const previousAttributes = this.toAPI(); + pending?.forEach((entry, key) => { + if (key in data) { + Reflect.set(previousAttributes, key, entry.confirmed); + } + }); let addedKeys = false; for (const key in data) { @@ -232,6 +314,10 @@ export default abstract class Model { if (key === "initialized") { continue; } + const entry = pending?.get(key); + if (entry) { + entry.confirmed = data[key]; + } if (isEqual(toJS(Reflect.get(this, key)), data[key])) { continue; } @@ -348,9 +434,6 @@ export default abstract class Model { protected persistedAttributes: Partial = {}; - /** A promise that resolves when all relations have been loaded. */ - private loadingRelations: Promise | undefined; - /** A boolean representing if the constructor has been called. */ private initialized = false; } diff --git a/app/models/base/NavigableModel.ts b/app/models/base/NavigableModel.ts index 06d4525408..34c7068643 100644 --- a/app/models/base/NavigableModel.ts +++ b/app/models/base/NavigableModel.ts @@ -1,6 +1,7 @@ import { action, computed, observable, runInAction } from "mobx"; import type { JSONObject, NavigationNode } from "@shared/types"; import { client } from "~/utils/ApiClient"; +import { CoalescedFetch } from "./CoalescedFetch"; import Model from "./Model"; import type Document from "../Document"; import type DocumentsStore from "~/stores/DocumentsStore"; @@ -59,7 +60,7 @@ export default abstract class NavigableModel extends Model { }); } - private isFetching = false; + private documentsFetch = new CoalescedFetch(); /** The document ID associated with this model. */ documentId?: string; @@ -74,24 +75,17 @@ export default abstract class NavigableModel extends Model { params: JSONObject; force?: boolean; }) { - if (this.isFetching) { - return; - } - if (this.documents && options.force !== true) { return; } - try { - this.isFetching = true; + await this.documentsFetch.run(async () => { const res = await client.post(options.path, options.params); runInAction(() => { this.node = res.data; }); - } finally { - this.isFetching = false; - } + }, options.force); } /** diff --git a/app/scenes/Document/components/Comments/CommentSortMenu.tsx b/app/scenes/Document/components/Comments/CommentSortMenu.tsx index 782e3e93a2..42ace129e9 100644 --- a/app/scenes/Document/components/Comments/CommentSortMenu.tsx +++ b/app/scenes/Document/components/Comments/CommentSortMenu.tsx @@ -31,11 +31,10 @@ const CommentSortMenu = ({ viewingResolved, onChange }: Props) => { (val: CommentSortType | "resolved") => { if (val !== "resolved") { if (val !== preferredSortType) { - user.setPreference( + void user.savePreference( UserPreference.SortCommentsByOrderInDocument, val === CommentSortType.OrderInDocument ); - void user.save(); } } diff --git a/app/scenes/Document/components/Comments/CommentThreadItem.tsx b/app/scenes/Document/components/Comments/CommentThreadItem.tsx index edf49fff8d..8882c4b6f5 100644 --- a/app/scenes/Document/components/Comments/CommentThreadItem.tsx +++ b/app/scenes/Document/components/Comments/CommentThreadItem.tsx @@ -1,5 +1,4 @@ import { differenceInMilliseconds } from "date-fns"; -import { runInAction } from "mobx"; import { observer } from "mobx-react"; import { DoneIcon } from "outline-icons"; import { darken } from "polished"; @@ -184,8 +183,7 @@ function CommentThreadItem({ try { handleSetReadOnly(); - runInAction(() => (comment.data = data)); - await comment.save(); + await comment.save({ data }); } catch (_err) { setEditing(); toast.error(t("Error updating comment")); diff --git a/app/scenes/Document/hooks/useDocumentSave.ts b/app/scenes/Document/hooks/useDocumentSave.ts index 5181d4047c..ba30a17bf6 100644 --- a/app/scenes/Document/hooks/useDocumentSave.ts +++ b/app/scenes/Document/hooks/useDocumentSave.ts @@ -165,7 +165,10 @@ export function useDocumentSave({ setIsPublishing(!!options.publish); try { - const savedDocument = await document.save(undefined, options); + const savedDocument = await document.save(undefined, { + publish: options.publish, + autosave: options.autosave, + }); isEditorDirtyRef.current = false; setIsEditorDirty(false); diff --git a/app/scenes/Search/Search.tsx b/app/scenes/Search/Search.tsx index 7dd9c6b8f0..b7af234e8e 100644 --- a/app/scenes/Search/Search.tsx +++ b/app/scenes/Search/Search.tsx @@ -8,13 +8,10 @@ import styled from "styled-components"; import { breakpoint } from "@shared/styles/breakpoint"; import { Pagination } from "@shared/constants"; import type { Filter } from "@shared/helpers/FilterHelper"; -import { DURATION_BY_DATE_FILTER } from "@shared/helpers/FilterHelper"; import type { SortFilter as TSortFilter, DirectionFilter as TDirectionFilter, - DateFilter as TDateFilter, } from "@shared/types"; -import { StatusFilter as TStatusFilter } from "@shared/types"; import ArrowKeyNavigation from "~/components/ArrowKeyNavigation"; import DocumentListItem from "~/components/DocumentListItem"; import DocumentSelectionToolbar from "~/components/DocumentSelectionToolbar"; @@ -24,31 +21,39 @@ import LoadingIndicator from "~/components/LoadingIndicator"; import { ModelSelectionProvider } from "~/components/ModelSelectionContext"; import RegisterKeyDown from "~/components/RegisterKeyDown"; import Scene from "~/components/Scene"; -import Switch from "~/components/Switch"; import Text from "~/components/Text"; import { Waypoint } from "~/components/Waypoint"; import usePaginatedRequest from "~/hooks/usePaginatedRequest"; import useQuery from "~/hooks/useQuery"; import useStores from "~/hooks/useStores"; +import useUserLocale from "~/hooks/useUserLocale"; +import { PAGINATION_SYMBOL } from "~/stores/base/Store"; import type { PaginationParams, SearchResult } from "~/types"; import { preventDefault } from "~/utils/events"; import { searchPath } from "~/utils/routeHelpers"; -import { decodeURIComponentSafe, isTruthyQueryValue } from "~/utils/urls"; -import CollectionFilter from "./components/CollectionFilter"; -import DateFilter from "./components/DateFilter"; +import { decodeURIComponentSafe } from "~/utils/urls"; +import { AddFilterButton } from "./components/AddFilterButton"; import { DocumentFilter } from "./components/DocumentFilter"; -import DocumentTypeFilter from "./components/DocumentTypeFilter"; import RecentSearches from "./components/RecentSearches"; import SearchInput from "./components/SearchInput"; import { SortInput } from "./components/SortInput"; -import UserFilter from "./components/UserFilter"; -import { HStack } from "~/components/primitives/HStack"; -import useMobile from "~/hooks/useMobile"; +import { SearchFilterChip } from "./components/SearchFilterChip"; +import { DateRangeDialog } from "./components/DateRangeDialog"; +import type { DateRange, SearchFilter } from "./searchFilters"; +import { + TOGGLE_ON, + formatDateRange, + getDateRange, + getDateRangeParamChanges, + getFilterParamChanges, + readFilter, + useSearchFilters, +} from "./searchFilters"; function Search() { const { t } = useTranslation(); - const { documents, searches, policies } = useStores(); - const isMobile = useMobile(); + const { documents, searches, policies, dialogs } = useStores(); + const userLocale = useUserLocale(); // routing const params = useQuery(); @@ -66,99 +71,79 @@ function Search() { routeMatch.params.query ?? params.get("q") ?? params.get("query") ?? "" ).trim(); const query = decodedQuery !== "" ? decodedQuery : undefined; - const collectionId = params.get("collectionId") ?? ""; - const userId = params.get("userId") ?? ""; - const documentId = params.get("documentId") ?? undefined; - const dateFilter = (params.get("dateFilter") as TDateFilter) ?? ""; - // Keyed on the serialized value so the array keeps a stable identity between - // renders and can be used directly as a dependency. - const statusFilterKey = params.getAll("statusFilter").join(","); - const statusFilter = React.useMemo( - () => - statusFilterKey - ? (statusFilterKey.split(",") as TStatusFilter[]) - : [TStatusFilter.Published, TStatusFilter.Draft], - [statusFilterKey] - ); - const titleFilter = isTruthyQueryValue(params.get("titleFilter")); + const documentId = + params.get("documentId") ?? params.get("documentId.eq") ?? undefined; const sort = (params.get("sort") as TSortFilter) ?? ""; const direction = (params.get("direction") as TDirectionFilter) ?? ""; - - const isSearchable = !!(query || collectionId || userId); - const document = documentId ? documents.get(documentId) : undefined; - const filterVisibility = { - document: !!document, - collection: !document, - user: !document || !!(document && query), - documentType: isSearchable, - date: isSearchable, - title: !!query && !document, - sort: isSearchable, - }; + const searchFilters = useSearchFilters(); + // A filter added from the "More" menu shows while its options are open. + const [pendingFilterId, setPendingFilterId] = React.useState(); + // A filter stays shown while its custom date range dialog is open. + const [rangeFilterId, setRangeFilterId] = React.useState(); - const filters = React.useMemo(() => { - const children: Filter[] = []; - if (collectionId) { - children.push({ - field: "collectionId", - operator: "eq", - value: collectionId, - }); - } - if (userId) { - children.push({ field: "userId", operator: "eq", value: userId }); - } - if (documentId) { - children.push({ - field: "documentId", - operator: "eq", - value: documentId, - }); - } - if (dateFilter) { - const duration = DURATION_BY_DATE_FILTER[dateFilter]; - if (duration) { - children.push({ field: "updatedAt", operator: "gte", value: duration }); + const { isSearchable, visibleFilters, filterStates, filters, titleFilter } = + React.useMemo(() => { + const visible = searchFilters.filter( + (filter) => filter.isAvailable?.({ document }) ?? true + ); + const states = new Map( + visible.map((filter) => [filter.id, readFilter(filter, params)]) + ); + const setStates = [...states.values()]; + + const expressions = setStates + .map((state) => state.apiFilter) + .filter((filter): filter is Filter => !!filter); + if (documentId) { + expressions.push({ + field: "documentId", + operator: "eq", + value: documentId, + }); } - } - if (statusFilter.length > 0) { - const statusShape = (status: TStatusFilter): Filter => { - if (status === TStatusFilter.Archived) { - return { field: "archivedAt", operator: "isNotNull" }; - } - if (status === TStatusFilter.Published) { - return { - operator: "AND", - filters: [ - { field: "archivedAt", operator: "isNull" }, - { field: "publishedAt", operator: "isNotNull" }, - ], - }; - } - return { - operator: "AND", - filters: [ - { field: "archivedAt", operator: "isNull" }, - { field: "publishedAt", operator: "isNull" }, - ], - }; + + return { + // Show results when there is a query or at least one filter is set. + isSearchable: + !!query || !!documentId || setStates.some((state) => state.isSet), + visibleFilters: visible, + filterStates: states, + filters: expressions.length > 0 ? expressions : undefined, + // An empty query matches every title, so list all results without one. + titleFilter: !!query && !!states.get("titleOnly")?.isSet, }; - const statusGroup = - statusFilter.length === 1 - ? statusShape(statusFilter[0]) - : ({ - operator: "OR", - filters: statusFilter.map(statusShape), - } as Filter); - children.push(statusGroup); - } - if (children.length === 0) { - return undefined; - } - return children; - }, [collectionId, userId, documentId, dateFilter, statusFilter]); + }, [searchFilters, params, query, document, documentId]); + + const rangeLabels = React.useMemo( + () => + new Map( + [...filterStates].map(([id, state]) => [ + id, + state.range ? formatDateRange(state.range, t, userLocale) : undefined, + ]) + ), + [filterStates, t, userLocale] + ); + + const isCollectionScoped = !!filterStates.get("collectionId")?.isSet; + + const { shownFilters, addableFilters } = React.useMemo(() => { + const shown = visibleFilters.filter( + (filter) => + filter.pinned || + filterStates.get(filter.id)?.isSet || + pendingFilterId === filter.id || + rangeFilterId === filter.id + ); + return { + shownFilters: shown, + addableFilters: visibleFilters.filter( + (filter) => !shown.includes(filter) + ), + }; + }, [visibleFilters, filterStates, pendingFilterId, rangeFilterId]); const requestParams = React.useMemo( () => ({ @@ -171,6 +156,17 @@ function Search() { [query, titleFilter, sort, direction, filters] ); + const [resultCount, setResultCount] = React.useState<{ + params: typeof requestParams; + total: number; + }>(); + + // Responses from earlier searches must not replace the current count. + const currentRequestParams = React.useRef(requestParams); + React.useEffect(() => { + currentRequestParams.current = requestParams; + }, [requestParams]); + const requestFn = React.useMemo(() => { // Add to the searches store so this search can immediately appear in the recent searches list // without a flash of loading. @@ -188,15 +184,26 @@ function Search() { offset: params?.offset, limit: params?.limit, }; - return titleFilter - ? await documents.searchTitles({ - ...requestParams, - ...paginationParams, - }) - : await documents.search({ - ...requestParams, - ...paginationParams, - }); + if (titleFilter) { + return await documents.searchTitles({ + ...requestParams, + ...paginationParams, + }); + } + + const results = await documents.search({ + ...requestParams, + ...paginationParams, + }); + const total = results[PAGINATION_SYMBOL]?.total; + if ( + !params?.offset && + total !== undefined && + currentRequestParams.current === requestParams + ) { + setResultCount({ params: requestParams, total }); + } + return results; }; } @@ -207,6 +214,10 @@ function Search() { limit: Pagination.defaultLimit, }); + // Keep the previous count on screen, disabled, until the new one arrives. + const isResultCountStale = resultCount?.params !== requestParams; + const total = titleFilter || error ? undefined : resultCount?.total; + // Only updatable documents are selectable, matching the per-item checkboxes. const itemIds = React.useMemo( () => @@ -233,33 +244,96 @@ function Search() { }); }; - // All filters go through the query string so that searches are bookmarkable, which neccesitates - // some complexity as the query string is the source of truth for the filters. - const handleFilterChange = (search: { - collectionId?: string | undefined; - documentId?: string | undefined; - userId?: string | undefined; - dateFilter?: TDateFilter; - statusFilter?: TStatusFilter[]; - titleFilter?: boolean | undefined; - sort?: string | undefined; - direction?: string | undefined; - }) => { - if (search.sort === "relevance") { - search.sort = undefined; - search.direction = undefined; - } + // All filters go through the query string so that searches are bookmarkable, + // which means the query string is the source of truth for the filters. + const replaceParams = React.useCallback( + ( + getChanges: ( + current: URLSearchParams + ) => Record + ) => { + const { search } = history.location; + history.replace({ + pathname: history.location.pathname, + search: queryString.stringify( + { + ...queryString.parse(search), + ...getChanges(new URLSearchParams(search)), + }, + { skipEmptyString: true, arrayFormat: "comma" } + ), + }); + }, + [history] + ); - history.replace({ - pathname: history.location.pathname, - search: queryString.stringify( - { ...queryString.parse(history.location.search), ...search }, - { - skipEmptyString: true, - } + const handleChangeFilter = React.useCallback( + (filter: SearchFilter, values: string[] | undefined) => + replaceParams((current) => + getFilterParamChanges(filter, values, current) ), - }); - }; + [replaceParams] + ); + + const handleCustomRange = React.useCallback( + (filter: SearchFilter) => { + const handleSubmit = (range: Required) => { + replaceParams((current) => + getDateRangeParamChanges(filter, range, current) + ); + setRangeFilterId(undefined); + dialogs.closeAllModals(); + }; + + setRangeFilterId(filter.id); + dialogs.openModal({ + title: filter.label, + width: "600px", + onClose: () => setRangeFilterId(undefined), + content: ( + + ), + }); + }, + [dialogs, history, replaceParams] + ); + + const handleAddFilter = React.useCallback( + (id: string) => { + const filter = searchFilters.find((item) => item.id === id); + if (filter?.type === "toggle") { + handleChangeFilter(filter, [TOGGLE_ON]); + return; + } + setPendingFilterId(id); + }, + [searchFilters, handleChangeFilter] + ); + + const handleFilterOpenChange = React.useCallback( + (filter: SearchFilter, open: boolean) => { + if (!open) { + setPendingFilterId((id) => (id === filter.id ? undefined : id)); + } + }, + [] + ); + + const handleSort = React.useCallback( + (sort: string, direction: string) => + replaceParams(() => + sort === "relevance" + ? { sort: undefined, direction: undefined } + : { sort, direction } + ), + [replaceParams] + ); const handleKeyDown = (ev: React.KeyboardEvent) => { if (ev.nativeEvent.isComposing) { @@ -309,21 +383,28 @@ function Search() { }; const handleEscape = () => searchInputRef.current?.focus(); - const showEmpty = !loading && query && data?.length === 0; + const showEmpty = !loading && isSearchable && data?.length === 0; - const sortInput = filterVisibility.sort ? ( - handleFilterChange({ sort, direction })} + const renderFilterChip = (filter: SearchFilter) => ( + + ); + + const sortInput = isSearchable ? ( + ) : null; return ( - + {loading && } @@ -335,66 +416,50 @@ function Search() { placeholder={`${ documentId ? t("Search in document") - : collectionId + : isCollectionScoped ? t("Search in collection") : t("Search") }…`} onKeyDown={handleKeyDown} defaultValue={query ?? ""} /> - - - {filterVisibility.document && ( - { - handleFilterChange({ documentId: undefined }); - }} - /> + + {document && ( + + replaceParams(() => ({ + documentId: undefined, + "documentId.eq": undefined, + })) + } + /> + )} + {shownFilters.map(renderFilterChip)} + {addableFilters.length > 0 && ( + + )} + + {sortInput && ( + + {total !== undefined && ( + <> + {t("{{ count }} result", { count: total })} + · + )} - {filterVisibility.collection && ( - - handleFilterChange({ collectionId }) - } - /> - )} - {filterVisibility.user && ( - handleFilterChange({ userId })} - /> - )} - {filterVisibility.documentType && ( - - handleFilterChange({ statusFilter }) - } - /> - )} - {filterVisibility.date && ( - handleFilterChange({ dateFilter })} - /> - )} - {filterVisibility.title && ( - { - handleFilterChange({ titleFilter: checked }); - }} - checked={titleFilter} - inForm={false} - /> - )} - - {isMobile ? null : sortInput} - + {sortInput} + + )} {isSearchable ? ( <> @@ -451,7 +516,7 @@ function Search() { - ) : documentId ? null : ( + ) : ( )} @@ -482,24 +547,39 @@ const StyledArrowKeyNavigation = styled(ArrowKeyNavigation)` flex: 1; `; -const Filters = styled(HStack)` - flex-wrap: wrap; - justify-content: space-between; +const FilterChips = styled(Flex)` + row-gap: 8px; margin-bottom: 12px; - transition: opacity 100ms ease-in-out; - padding: 8px 0; + padding-top: 4px; - ${breakpoint("tablet")` - padding: 0; + ${breakpoint("mobile", "tablet")` + flex-wrap: nowrap; + overflow-x: auto; + scrollbar-width: none; + margin-inline: -16px; + padding: 4px 16px 0; + + & > * { + flex-shrink: 0; + } `}; `; -const SearchTitlesFilter = styled(Switch)` - white-space: nowrap; - margin-left: 8px; - font-size: 14px; - font-weight: 400; - height: 28px; +const ResultsMeta = styled(Text)<{ $disabled: boolean }>` + display: flex; + align-items: center; + gap: 6px; + margin-bottom: 8px; + transition: opacity 100ms ease-out; + + ${(props) => + props.$disabled && + ` + opacity: 0.8; + pointer-events: none; + `} `; +const EMPTY_VALUES: string[] = []; + export default observer(Search); diff --git a/app/scenes/Search/components/AddFilterButton.tsx b/app/scenes/Search/components/AddFilterButton.tsx new file mode 100644 index 0000000000..a1398860a3 --- /dev/null +++ b/app/scenes/Search/components/AddFilterButton.tsx @@ -0,0 +1,59 @@ +import { useCallback, useMemo } from "react"; +import { useTranslation } from "react-i18next"; +import FilterOptions from "~/components/FilterOptions"; +import { FilterIcon } from "~/components/Icons/FilterIcon"; +import type { SearchFilter } from "../searchFilters"; +import { Chip, ChipButton, ChipContent } from "./FilterChip"; + +interface Props { + /** The filters that can be added. */ + filters: SearchFilter[]; + /** Callback when a filter is picked. */ + onSelect: (id: string) => void; +} + +/** + * A button that opens a list of the filters that are not shown yet. + * + * @param props the button props. + * @returns the add filter button. + */ +export function AddFilterButton({ filters, onSelect }: Props) { + const { t } = useTranslation(); + const handleSelect = useCallback( + (key: string | null | undefined) => { + if (key) { + onSelect(key); + } + }, + [onSelect] + ); + + const options = useMemo( + () => + filters.map((filter) => ({ + key: filter.id, + label: filter.label, + icon: filter.icon, + })), + [filters] + ); + + return ( + + + } label={t("More")} disclosure /> + + } + /> + + ); +} + +const NO_SELECTION: string[] = []; diff --git a/app/scenes/Search/components/CollectionFilter.tsx b/app/scenes/Search/components/CollectionFilter.tsx index f61c65ef6a..0e16160112 100644 --- a/app/scenes/Search/components/CollectionFilter.tsx +++ b/app/scenes/Search/components/CollectionFilter.tsx @@ -3,8 +3,7 @@ import { CollectionIcon as SVGCollectionIcon } from "outline-icons"; import { useMemo } from "react"; import { useTranslation } from "react-i18next"; import FilterOptions from "~/components/FilterOptions"; -import CollectionIcon from "~/components/Icons/CollectionIcon"; -import useStores from "~/hooks/useStores"; +import { useCollectionOptions } from "../filterOptions"; type Props = { /** The currently selected collection ID */ @@ -15,23 +14,19 @@ type Props = { function CollectionFilter(props: Props) { const { t } = useTranslation(); - const { collections } = useStores(); const { onSelect, collectionId } = props; - const options = useMemo(() => { - const collectionOptions = collections.orderedData.map((collection) => ({ - key: collection.id, - label: collection.displayName, - icon: , - })); - return [ + const source = useCollectionOptions(); + const options = useMemo( + () => [ { key: "", label: t("Any collection"), icon: , }, - ...collectionOptions, - ]; - }, [collections.orderedData, t]); + ...source.options, + ], + [source.options, t] + ); return ( { const { t } = useTranslation(); + const source = useDateOptions(); const options = useMemo( - () => [ - { - key: "", - label: t("All time"), - }, - { - key: "day", - label: t("Past day"), - }, - { - key: "week", - label: t("Past week"), - }, - { - key: "month", - label: t("Past month"), - }, - { - key: "year", - label: t("Past year"), - }, - ], - [t] + () => [{ key: "", label: t("All time") }, ...source.options], + [source.options, t] ); return ( diff --git a/app/scenes/Search/components/DateRangeDialog.tsx b/app/scenes/Search/components/DateRangeDialog.tsx new file mode 100644 index 0000000000..9b0f5104ba --- /dev/null +++ b/app/scenes/Search/components/DateRangeDialog.tsx @@ -0,0 +1,99 @@ +import { subMonths } from "date-fns"; +import { useCallback, useState } from "react"; +import type { DateRange as DayPickerRange } from "react-day-picker"; +import { useTranslation } from "react-i18next"; +import { Calendar } from "@shared/components/Calendar"; +import { + dateLocale, + dateRangeToReadable, + parseISODate, + toISODate, +} from "@shared/utils/date"; +import Button from "~/components/Button"; +import Flex from "~/components/Flex"; +import Text from "~/components/Text"; +import useUserLocale from "~/hooks/useUserLocale"; +import type { DateRange } from "../searchFilters"; + +interface Props { + /** The range to show as selected when the dialog opens. */ + defaultRange?: DateRange; + /** Called with the chosen range as ISO dates. */ + onSubmit: (range: Required) => void; +} + +/** + * Dialog content to choose the first and last day of a date filter. + */ +export function DateRangeDialog({ defaultRange, onSubmit }: Props) { + const { t } = useTranslation(); + const userLocale = useUserLocale(); + const [today] = useState(() => new Date()); + const [range, setRange] = useState(() => { + const from = defaultRange?.from ? parseISODate(defaultRange.from) : null; + const to = defaultRange?.to ? parseISODate(defaultRange.to) : null; + if (!from && !to) { + return undefined; + } + return { from: from ?? to ?? undefined, to: to ?? undefined }; + }); + + // Show the last day of the range in the right month, so that future months + // (which cannot be picked) are not shown. + const [defaultMonth] = useState(() => subMonths(range?.to ?? today, 1)); + + // When a whole range is selected, the next click starts a new range. + const handleSelect = useCallback( + (next: DayPickerRange | undefined, selectedDay: Date) => { + setRange((current) => + current?.from && current.to ? { from: selectedDay } : next + ); + }, + [] + ); + + const handleSubmit = useCallback( + (ev: React.FormEvent) => { + ev.preventDefault(); + if (!range?.from) { + return; + } + onSubmit({ + from: toISODate(range.from), + to: toISODate(range.to ?? range.from), + }); + }, + [range, onSubmit] + ); + + return ( +
+ + + + + {range?.from + ? dateRangeToReadable( + range.from, + range.to ?? range.from, + userLocale + ) + : t("Choose the first and last day")} + + + + +
+ ); +} diff --git a/app/scenes/Search/components/DocumentFilter.tsx b/app/scenes/Search/components/DocumentFilter.tsx index 5416d5a370..252b174230 100644 --- a/app/scenes/Search/components/DocumentFilter.tsx +++ b/app/scenes/Search/components/DocumentFilter.tsx @@ -1,27 +1,31 @@ -import { CloseIcon } from "outline-icons"; -import * as React from "react"; +import { DocumentIcon } from "outline-icons"; import { useTranslation } from "react-i18next"; import type Document from "~/models/Document"; -import { StyledButton } from "~/components/FilterOptions"; -import Tooltip from "~/components/Tooltip"; +import { Chip, ChipContent, ChipRemoveButton, ChipStatic } from "./FilterChip"; type Props = { /** The currently selected document */ document: Document; /** Callback to remove the document filter */ - onClick: React.MouseEventHandler; + onRemove: () => void; }; export function DocumentFilter(props: Props) { const { t } = useTranslation(); return ( -
- - } neutral> - {props.document.displayTitle} - - -
+ + + } + label={t("Document")} + value={props.document.displayTitle} + /> + + + ); } diff --git a/app/scenes/Search/components/DocumentTypeFilter.tsx b/app/scenes/Search/components/DocumentTypeFilter.tsx deleted file mode 100644 index 5ec6155a7f..0000000000 --- a/app/scenes/Search/components/DocumentTypeFilter.tsx +++ /dev/null @@ -1,54 +0,0 @@ -import { useMemo } from "react"; -import { useTranslation } from "react-i18next"; -import { StatusFilter as TStatusFilter } from "@shared/types"; -import FilterOptions from "~/components/FilterOptions"; - -type Props = { - /** The selected status filters */ - statusFilter: TStatusFilter[]; - /** Callback when a status filter is selected */ - onSelect: (option: { statusFilter: TStatusFilter[] }) => void; -}; - -const DocumentTypeFilter = ({ statusFilter, onSelect }: Props) => { - const { t } = useTranslation(); - const options = useMemo( - () => [ - { - key: TStatusFilter.Published, - label: t("Published"), - }, - { - key: TStatusFilter.Archived, - label: t("Archived"), - }, - { - key: TStatusFilter.Draft, - label: t("Drafts"), - }, - ], - [t] - ); - - const handleSelect = (key: TStatusFilter) => { - let modifiedStatusFilter; - if (statusFilter.includes(key)) { - modifiedStatusFilter = statusFilter.filter((status) => status !== key); - } else { - modifiedStatusFilter = [...statusFilter, key]; - } - - onSelect({ statusFilter: modifiedStatusFilter }); - }; - - return ( - - ); -}; - -export default DocumentTypeFilter; diff --git a/app/scenes/Search/components/FilterChip.tsx b/app/scenes/Search/components/FilterChip.tsx new file mode 100644 index 0000000000..607cace7ae --- /dev/null +++ b/app/scenes/Search/components/FilterChip.tsx @@ -0,0 +1,189 @@ +import { CloseIcon, DisclosureIcon } from "outline-icons"; +import styled from "styled-components"; +import { hover, s } from "@shared/styles"; +import { breakpoint } from "@shared/styles/breakpoint"; +import NudeButton from "~/components/NudeButton"; +import Text from "~/components/Text"; +import Tooltip from "~/components/Tooltip"; + +interface ChipContentProps { + /** Icon shown before the label. */ + icon?: React.ReactNode; + /** Name of the filter. */ + label: string; + /** The selected value, omitted when there is no value. */ + value?: string; + /** Whether to show a disclosure arrow after the content. */ + disclosure?: boolean; +} + +/** + * The icon, filter name and selected value shown inside a filter chip. + * + * @param props the content props. + * @returns the chip content. + */ +export function ChipContent({ + icon, + label, + value, + disclosure, +}: ChipContentProps) { + return ( + <> + {icon && {icon}} + {label} + {value && ( + + {value} + + )} + {disclosure && } + + ); +} + +interface ChipRemoveButtonProps { + /** Accessible label and tooltip for the button. */ + label: string; + /** Callback when the button is clicked. */ + onClick: () => void; +} + +/** + * A button at the end of a filter chip that removes the filter. + * + * @param props the button props. + * @returns the remove button. + */ +export function ChipRemoveButton({ label, onClick }: ChipRemoveButtonProps) { + return ( + + + + + + ); +} + +/** Outlined container for a filter chip. */ +export const Chip = styled.div` + display: inline-flex; + align-items: stretch; + max-width: 100%; + height: 28px; + border: 1px solid ${s("buttonNeutralBorder")}; + border-radius: 8px; + overflow: hidden; + user-select: none; + font-size: 13px; + font-weight: 450; + color: ${s("text")}; + + &:has(:focus-visible) { + border-color: ${s("inputBorderFocused")}; + } + + ${breakpoint("mobile", "tablet")` + height: 36px; + font-size: 15px; + `}; +`; + +/** The button inside a chip that opens the options of the filter. */ +export const ChipButton = styled.button` + display: inline-flex; + align-items: center; + gap: 4px; + min-width: 0; + height: 100%; + padding: 0 4px 0 7px; + margin: 0; + border: 0; + background: none; + color: inherit; + font: inherit; + cursor: var(--pointer); + transition: background 100ms ease-out; + + &:${hover}, + &[aria-expanded="true"] { + background: ${s("buttonNeutralHoverBackground")}; + } + + &:focus-visible { + outline: none; + } +`; + +/** A part of a chip that only shows content, for filters without options. */ +export const ChipStatic = styled.span` + display: inline-flex; + align-items: center; + gap: 4px; + min-width: 0; + padding: 0 4px 0 6px; +`; + +const ChipIcon = styled.span` + display: inline-flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + width: 18px; + height: 18px; + margin-inline-start: -2px; + color: ${s("textTertiary")}; + + svg { + width: 18px; + height: 18px; + } +`; + +const ChipLabel = styled(Text)` + flex-shrink: 0; + white-space: nowrap; +`; + +const ChipValue = styled(Text)` + max-width: 240px; +`; + +const RemoveButton = styled(NudeButton)` + display: inline-flex; + align-items: center; + justify-content: center; + flex-shrink: 0; + width: 24px; + height: auto; + padding-inline-end: 2px; + border-radius: 0; + border-inline-start: 1px solid transparent; + color: ${s("textTertiary")}; + transition: + background 100ms ease-out, + border-color 100ms ease-out, + color 100ms ease-out; + + &:${hover}, + &:focus-visible { + color: ${s("text")}; + background: ${s("buttonNeutralHoverBackground")}; + border-color: ${s("buttonNeutralBorder")}; + } + + &:focus-visible { + outline: none; + } + + ${breakpoint("mobile", "tablet")` + width: 32px; + `}; +`; + +const Disclosure = styled(DisclosureIcon)` + flex-shrink: 0; + margin-inline-start: -3px; + color: ${s("textTertiary")}; +`; diff --git a/app/scenes/Search/components/SearchFilterChip.tsx b/app/scenes/Search/components/SearchFilterChip.tsx new file mode 100644 index 0000000000..f320e6ca23 --- /dev/null +++ b/app/scenes/Search/components/SearchFilterChip.tsx @@ -0,0 +1,154 @@ +import { observer } from "mobx-react"; +import { useCallback, useMemo } from "react"; +import { useTranslation } from "react-i18next"; +import FilterOptions from "~/components/FilterOptions"; +import type { SearchFilter, SelectSearchFilter } from "../searchFilters"; +import { CUSTOM_RANGE } from "../searchFilters"; +import { + Chip, + ChipButton, + ChipContent, + ChipRemoveButton, + ChipStatic, +} from "./FilterChip"; + +interface Props { + /** The filter to show. */ + filter: SearchFilter; + /** The selected values, including defaults. */ + values: string[]; + /** Whether the URL sets the filter, as opposed to using its defaults. */ + isSet: boolean; + /** Whether the options are open when the chip mounts. */ + defaultOpen?: boolean; + /** Callback when the selected values change, undefined removes the filter. */ + onChange: (filter: SearchFilter, values: string[] | undefined) => void; + /** Callback when the options open or close. */ + onOpenChange?: (filter: SearchFilter, open: boolean) => void; + /** Label of a custom date range, shown in place of an option label. */ + rangeLabel?: string; + /** Callback when the user asks to choose a custom date range. */ + onCustomRange?: (filter: SearchFilter) => void; +} + +/** + * A chip that shows the value of one search filter and lets the user change + * or remove it. + * + * @param props the chip props. + * @returns the filter chip. + */ +export function SearchFilterChip(props: Props) { + const { t } = useTranslation(); + const { filter, onChange } = props; + + if (filter.type === "select") { + return ; + } + + return ( + + + + + onChange(filter, undefined)} + /> + + ); +} + +const SelectFilterChip = observer(function SelectFilterChip_({ + filter, + values, + isSet, + defaultOpen, + onChange, + onOpenChange, + rangeLabel, + onCustomRange, +}: Props & { filter: SelectSearchFilter }) { + const { t } = useTranslation(); + const source = filter.useOptions(); + const { multiple } = filter; + const allowsRange = filter.selection === "date" && !!onCustomRange; + + const options = useMemo( + () => + allowsRange + ? [...source.options, { key: CUSTOM_RANGE, label: `${t("Custom")}…` }] + : source.options, + [allowsRange, source.options, t] + ); + + const selected = useMemo( + () => source.options.filter((option) => values.includes(option.key)), + [source.options, values] + ); + + const handleSelect = useCallback( + (key: string | null | undefined) => { + if (!key) { + return; + } + if (key === CUSTOM_RANGE) { + onCustomRange?.(filter); + return; + } + if (!multiple) { + onChange(filter, [key]); + return; + } + const next = values.includes(key) + ? values.filter((value) => value !== key) + : [...values, key]; + onChange(filter, next.length ? next : undefined); + }, + [filter, multiple, values, onChange, onCustomRange] + ); + + const handleOpenChange = useCallback( + (open: boolean) => onOpenChange?.(filter, open), + [filter, onOpenChange] + ); + + // Default values are implied, so only show values that the user picked. + const shown = isSet ? selected : []; + const icon = + shown.length === 1 && shown[0].icon ? shown[0].icon : filter.icon; + + return ( + + + option.label).join(", ") + } + disclosure={!isSet} + /> + + } + /> + {isSet && ( + onChange(filter, undefined)} + /> + )} + + ); +}); diff --git a/app/scenes/Search/components/SearchInput.tsx b/app/scenes/Search/components/SearchInput.tsx index df61fa074e..1d64e47273 100644 --- a/app/scenes/Search/components/SearchInput.tsx +++ b/app/scenes/Search/components/SearchInput.tsx @@ -1,8 +1,8 @@ import { SearchIcon } from "outline-icons"; import * as React from "react"; -import styled, { useTheme } from "styled-components"; +import styled from "styled-components"; import { s } from "@shared/styles"; -import Flex from "~/components/Flex"; +import Input, { NativeInput, Outline } from "~/components/Input"; interface Props extends React.InputHTMLAttributes { name: string; @@ -11,77 +11,58 @@ interface Props extends React.InputHTMLAttributes { } function SearchInput({ defaultValue, ref, ...rest }: Props) { - const theme = useTheme(); - const focusInput = React.useCallback(() => { - ref.current?.focus(); - }, [ref]); - React.useEffect(() => { // ensure that focus is placed at end of input const len = (defaultValue || "").length; ref.current?.setSelectionRange(len, len); const timeoutId = setTimeout(() => { - focusInput(); + ref.current?.focus(); }, 100); // arbitrary number return () => { clearTimeout(timeoutId); }; - }, [ref, defaultValue, focusInput]); + }, [ref, defaultValue]); return ( - - - - + } + defaultValue={defaultValue} + ref={ref} + spellCheck="false" + margin="0 0 12px" + autoFocus + /> ); } -const Wrapper = styled(Flex)` - position: relative; - margin-bottom: 8px; -`; +const StyledInput = styled(Input)` + ${Outline} { + border-color: transparent; + border-radius: 10px; + background: ${s("backgroundSecondary")}; + transition: + background 100ms ease-out, + border-color 100ms ease-out; + } -const StyledInput = styled.input` - width: 100%; - padding-block: 10px 10px; - padding-inline: 60px 10px; - font-size: 30px; - font-weight: 400; - outline: none; - border: 0; - background: ${s("inputBackground")}; - border-radius: 4px; - color: ${s("text")}; + &:focus-within ${Outline} { + border-color: ${s("inputBorderFocused")}; + background: ${s("background")}; + } - &::-webkit-search-cancel-button { - -webkit-appearance: none; - } - &::-webkit-input-placeholder { - color: ${s("placeholder")}; - } - &:-moz-placeholder { - color: ${s("placeholder")}; - } - &::-moz-placeholder { - color: ${s("placeholder")}; - } - &:-ms-input-placeholder { - color: ${s("placeholder")}; + ${NativeInput} { + height: 46px; + padding-inline-start: 12px; + font-size: 17px; } `; -const StyledIcon = styled(SearchIcon)` - position: absolute; - inset-inline-start: 8px; - opacity: 0.7; +const StyledSearchIcon = styled(SearchIcon)` + margin-inline-start: 4px; + color: ${s("textTertiary")}; `; export default SearchInput; diff --git a/app/scenes/Search/components/SortInput.tsx b/app/scenes/Search/components/SortInput.tsx index e59a4e3c11..354a0c9e4a 100644 --- a/app/scenes/Search/components/SortInput.tsx +++ b/app/scenes/Search/components/SortInput.tsx @@ -1,7 +1,13 @@ import type { DirectionFilter, SortFilter as TSortFilter } from "@shared/types"; -import { SortAscendingIcon, SortDescendingIcon } from "outline-icons"; +import { + DisclosureIcon, + SortAscendingIcon, + SortDescendingIcon, +} from "outline-icons"; import { useMemo } from "react"; import { useTranslation } from "react-i18next"; +import styled from "styled-components"; +import { hover, s } from "@shared/styles"; import FilterOptions from "~/components/FilterOptions"; type Props = { @@ -64,15 +70,56 @@ export const SortInput = ({ sort, direction, onSelect }: Props) => { onSelect(sortField, sortDirection); }; + const selectedLabel = + options.find((option) => option.key === selectedKey)?.label ?? + t("Relevance"); + return ( - + + {t("Sorted by")} + + {selectedLabel} + + + } + /> + ); }; + +const Wrapper = styled.div` + display: flex; + align-items: center; + gap: 4px; +`; + +const Trigger = styled.button` + display: inline-flex; + align-items: center; + margin: 0; + padding: 0 0 0 2px; + border: 0; + border-radius: 4px; + background: none; + font: inherit; + font-weight: 500; + color: ${s("text")}; + cursor: var(--pointer); + + &:${hover}, + &[aria-expanded="true"] { + text-decoration: underline; + } +`; + +const Disclosure = styled(DisclosureIcon)` + color: ${s("textTertiary")}; +`; diff --git a/app/scenes/Search/components/UserFilter.tsx b/app/scenes/Search/components/UserFilter.tsx index fd16b4e774..30bd6f63bb 100644 --- a/app/scenes/Search/components/UserFilter.tsx +++ b/app/scenes/Search/components/UserFilter.tsx @@ -2,12 +2,8 @@ import { observer } from "mobx-react"; import { UserIcon } from "outline-icons"; import { useMemo } from "react"; import { useTranslation } from "react-i18next"; -import styled from "styled-components"; -import { Avatar, AvatarSize } from "~/components/Avatar"; import FilterOptions from "~/components/FilterOptions"; -import useCurrentTeam from "~/hooks/useCurrentTeam"; -import usePolicy from "~/hooks/usePolicy"; -import useStores from "~/hooks/useStores"; +import { useUserOptions } from "../filterOptions"; type Props = { /** The currently selected user ID */ @@ -18,31 +14,23 @@ type Props = { onSelect: (key: string | undefined) => void; }; -const fetchQueryOptions = { sort: "name", direction: "ASC" }; - function UserFilter(props: Props) { const { onSelect, userId } = props; const { t } = useTranslation(); - const { users } = useStores(); - const team = useCurrentTeam(); - const can = usePolicy(team); + const source = useUserOptions(); const anyLabel = props.anyLabel ?? t("Any author"); - const options = useMemo(() => { - const userOptions = users.all.map((user) => ({ - key: user.id, - label: user.name, - icon: , - })); - return [ + const options = useMemo( + () => [ { key: "", label: anyLabel, icon: , }, - ...userOptions, - ]; - }, [users.all, anyLabel]); + ...source.options, + ], + [source.options, anyLabel] + ); return ( ); } -const StyledAvatar = styled(Avatar)` - margin: 2px; -`; - export default observer(UserFilter); diff --git a/app/scenes/Search/filterOptions.tsx b/app/scenes/Search/filterOptions.tsx new file mode 100644 index 0000000000..0644b1aa14 --- /dev/null +++ b/app/scenes/Search/filterOptions.tsx @@ -0,0 +1,177 @@ +import { NewDocumentIcon } from "outline-icons"; +import { useMemo } from "react"; +import { useTranslation } from "react-i18next"; +import styled from "styled-components"; +import Icon from "@shared/components/Icon"; +import { durationForDateFilter } from "@shared/helpers/FilterHelper"; +import { StatusFilter } from "@shared/types"; +import { Avatar, AvatarSize } from "~/components/Avatar"; +import type { TFilterOption } from "~/components/FilterOptions"; +import CollectionIcon from "~/components/Icons/CollectionIcon"; +import type { PaginatedItem } from "~/components/PaginatedList"; +import useCurrentTeam from "~/hooks/useCurrentTeam"; +import useCurrentUser from "~/hooks/useCurrentUser"; +import usePolicy from "~/hooks/usePolicy"; +import useStores from "~/hooks/useStores"; +import type { FetchPageParams } from "~/stores/base/Store"; + +/** The options a filter picks from, and how to load more of them. */ +export interface FilterOptionSource { + /** The options to pick from. */ + options: TFilterOption[]; + /** Loads more options from the server as the user types. */ + fetchQuery?: (options: FetchPageParams) => Promise; + /** Extra parameters to send with fetchQuery. */ + fetchQueryOptions?: Record; + /** Whether to show the filter input even for a short list. */ + showFilter?: boolean; +} + +const userFetchQueryOptions = { sort: "name", direction: "ASC" }; + +/** + * Options for each collection the user can see. + * + * @returns the collection options. + */ +export function useCollectionOptions(): FilterOptionSource { + const { collections } = useStores(); + + return useMemo( + () => ({ + options: collections.orderedData.map((collection) => ({ + key: collection.id, + label: collection.displayName, + icon: , + })), + showFilter: true, + }), + [collections.orderedData] + ); +} + +/** + * Options for each user in the workspace, loaded from the server as needed. + * The current user is the first option. + * + * @returns the user options. + */ +export function useUserOptions(): FilterOptionSource { + const { users } = useStores(); + const team = useCurrentTeam(); + const currentUserId = useCurrentUser({ rejectOnEmpty: false })?.id; + const can = usePolicy(team); + const fetchQuery = can.listUsers ? users.fetchPage : undefined; + + return useMemo( + () => ({ + options: [ + ...users.all.filter((user) => user.id === currentUserId), + ...users.all.filter((user) => user.id !== currentUserId), + ].map((user) => ({ + key: user.id, + label: user.name, + icon: , + })), + fetchQuery, + fetchQueryOptions: userFetchQueryOptions, + showFilter: true, + }), + [users.all, currentUserId, fetchQuery] + ); +} + +/** + * Options for each template, loaded from the server as needed. + * + * @returns the template options. + */ +export function useTemplateOptions(): FilterOptionSource { + const { templates } = useStores(); + + return useMemo( + () => ({ + options: templates.all.map((template) => ({ + key: template.id, + label: template.displayTitle, + icon: template.icon ? ( + + ) : ( + + ), + })), + fetchQuery: templates.fetchPage, + showFilter: true, + }), + [templates.all, templates.fetchPage] + ); +} + +/** + * Options for a relative date range, from the past day to the past year. + * + * @returns the date options. + */ +export function useDateOptions(): FilterOptionSource { + const { t } = useTranslation(); + + return useMemo( + () => ({ + options: [ + { key: "day", label: t("Past day") }, + { key: "week", label: t("Past week") }, + { key: "month", label: t("Past month") }, + { key: "year", label: t("Past year") }, + ], + }), + [t] + ); +} + +/** + * Options for a relative date range, keyed by the ISO 8601 duration that the + * API accepts as a lower bound. + * + * @returns the relative date options. + */ +export function useRelativeDateOptions(): FilterOptionSource { + const source = useDateOptions(); + + return useMemo( + () => ({ + options: source.options.map((option) => ({ + ...option, + key: durationForDateFilter(option.key) ?? option.key, + })), + }), + [source.options] + ); +} + +/** + * Options for the status of a document. + * + * @returns the status options. + */ +export function useStatusOptions(): FilterOptionSource { + const { t } = useTranslation(); + + return useMemo( + () => ({ + options: [ + { key: StatusFilter.Published, label: t("Published") }, + { key: StatusFilter.Archived, label: t("Archived") }, + { key: StatusFilter.Draft, label: t("Drafts") }, + ], + }), + [t] + ); +} + +const StyledAvatar = styled(Avatar)` + margin: 2px; +`; diff --git a/app/scenes/Search/searchFilters.test.ts b/app/scenes/Search/searchFilters.test.ts new file mode 100644 index 0000000000..c48e9a2a39 --- /dev/null +++ b/app/scenes/Search/searchFilters.test.ts @@ -0,0 +1,387 @@ +import { endOfDay, startOfDay } from "date-fns"; +import i18next from "i18next"; +import { StatusFilter } from "@shared/types"; +import type { SearchFilter, SelectSearchFilter } from "./searchFilters"; +import { + createSearchFilters, + formatDateRange, + getApiFilter, + getDateRange, + getDateRangeParamChanges, + getFilterConditions, + getFilterParamChanges, + getFilterValues, + isFilterSet, + parseKey, +} from "./searchFilters"; + +const filters = createSearchFilters(i18next.t); + +const collectionA = "9f1b8c2e-3a4d-4e5f-8a6b-7c8d9e0f1a2b"; +const collectionB = "1a2b3c4d-5e6f-4a8b-9c0d-1e2f3a4b5c6d"; + +function getFilter(id: string): SearchFilter { + const filter = filters.find((item) => item.id === id); + if (!filter) { + throw new Error(`Missing filter ${id}`); + } + return filter; +} + +function getSelectFilter(id: string): SelectSearchFilter { + const filter = getFilter(id); + if (filter.type !== "select") { + throw new Error(`Filter ${id} is not a select filter`); + } + return filter; +} + +function params(search: string) { + return new URLSearchParams(search); +} + +describe("searchFilters", () => { + it("has a unique id for each filter", () => { + const ids = filters.map((filter) => filter.id); + expect(new Set(ids).size).toBe(ids.length); + }); + + it("offers every filter without a query", () => { + const available = filters.filter( + (filter) => filter.isAvailable?.({}) ?? true + ); + expect(available).toEqual(filters); + }); + + describe("parseKey", () => { + it("reads a bare key as eq", () => { + expect(parseKey("collectionId")).toEqual({ + field: "collectionId", + operator: "eq", + }); + }); + + it("splits the field and operator", () => { + expect(parseKey("updatedAt.gte")).toEqual({ + field: "updatedAt", + operator: "gte", + }); + }); + + it("rejects an unknown operator", () => { + expect(parseKey("updatedAt.after")).toBeUndefined(); + }); + }); + + describe("getFilterConditions", () => { + it("reads bare, eq and in keys", () => { + const collection = getSelectFilter("collectionId"); + + expect( + getFilterConditions(collection, params(`collectionId=${collectionA}`)) + ).toEqual({ eq: [collectionA] }); + expect( + getFilterConditions( + collection, + params(`collectionId.in=${collectionA},${collectionB}`) + ) + ).toEqual({ in: [collectionA, collectionB] }); + }); + + it("drops operators the filter does not allow", () => { + expect( + getFilterConditions( + getSelectFilter("userId"), + params(`userId.neq=${collectionA}`) + ) + ).toEqual({}); + }); + + it("drops values that are not valid", () => { + expect( + getFilterConditions( + getSelectFilter("collectionId"), + params("collectionId=not-a-uuid") + ) + ).toEqual({}); + expect( + getFilterConditions( + getSelectFilter("updatedAt"), + params("updatedAt.gte=yesterday") + ) + ).toEqual({}); + }); + + it("reads date ranges with durations and dates", () => { + expect( + getFilterConditions( + getSelectFilter("createdAt"), + params("createdAt.gte=2026-03-01&createdAt.lte=2026-04-15") + ) + ).toEqual({ gte: ["2026-03-01"], lte: ["2026-04-15"] }); + }); + + it("reads legacy parameters", () => { + expect( + getFilterConditions( + getSelectFilter("updatedAt"), + params("dateFilter=week") + ) + ).toEqual({ gte: ["-P1W"] }); + expect( + getFilterConditions( + getSelectFilter("status"), + params("statusFilter=archived&statusFilter=draft") + ) + ).toEqual({ in: [StatusFilter.Archived, StatusFilter.Draft] }); + expect( + getFilterConditions( + getSelectFilter("status"), + params("statusFilter=archived,draft") + ) + ).toEqual({ in: [StatusFilter.Archived, StatusFilter.Draft] }); + }); + + it("prefers the current format over a legacy parameter", () => { + expect( + getFilterConditions( + getSelectFilter("updatedAt"), + params("updatedAt.gte=-P1D&dateFilter=week") + ) + ).toEqual({ gte: ["-P1D"] }); + }); + }); + + describe("getFilterValues", () => { + it("falls back to default values", () => { + const status = getFilter("status"); + + expect(isFilterSet(status, params(""))).toBe(false); + expect(getFilterValues(status, params(""))).toEqual([ + StatusFilter.Published, + StatusFilter.Draft, + ]); + }); + + it("reads toggle filters, including the legacy parameter", () => { + const title = getFilter("titleOnly"); + + expect(isFilterSet(title, params("titleOnly=true"))).toBe(true); + expect(isFilterSet(title, params("titleFilter=true"))).toBe(true); + expect(isFilterSet(title, params("titleOnly=false"))).toBe(false); + }); + }); + + describe("getApiFilter", () => { + it("matches one or many values", () => { + const createdBy = getFilter("createdById"); + + expect(getApiFilter(createdBy, params(""))).toBeUndefined(); + expect( + getApiFilter(createdBy, params(`createdById.eq=${collectionA}`)) + ).toEqual({ field: "createdById", operator: "eq", value: collectionA }); + expect( + getApiFilter( + createdBy, + params(`createdById.in=${collectionA},${collectionB}`) + ) + ).toEqual({ + field: "createdById", + operator: "in", + value: [collectionA, collectionB], + }); + }); + + it("supports exclusion", () => { + expect( + getApiFilter( + getFilter("collectionId"), + params(`collectionId.neq=${collectionA}`) + ) + ).toEqual({ field: "collectionId", operator: "neq", value: collectionA }); + }); + + it("sends a date range as whole local days, combined with AND", () => { + expect( + getApiFilter( + getFilter("publishedAt"), + params("publishedAt.gte=2026-03-01&publishedAt.lte=2026-04-15") + ) + ).toEqual({ + operator: "AND", + filters: [ + { + field: "publishedAt", + operator: "lte", + value: endOfDay(new Date(2026, 3, 15)).toISOString(), + }, + { + field: "publishedAt", + operator: "gte", + value: startOfDay(new Date(2026, 2, 1)).toISOString(), + }, + ], + }); + }); + + it("sends durations and full timestamps without change", () => { + expect( + getApiFilter(getFilter("updatedAt"), params("updatedAt.gte=-P1W")) + ).toEqual({ field: "updatedAt", operator: "gte", value: "-P1W" }); + expect( + getApiFilter( + getFilter("updatedAt"), + params("updatedAt.lt=2026-03-01T10:00:00Z") + ) + ).toEqual({ + field: "updatedAt", + operator: "lt", + value: "2026-03-01T10:00:00Z", + }); + }); + + it("combines default statuses with OR", () => { + expect(getApiFilter(getFilter("status"), params(""))).toEqual({ + operator: "OR", + filters: [ + { + operator: "AND", + filters: [ + { field: "archivedAt", operator: "isNull" }, + { field: "publishedAt", operator: "isNotNull" }, + ], + }, + { + operator: "AND", + filters: [ + { field: "archivedAt", operator: "isNull" }, + { field: "publishedAt", operator: "isNull" }, + ], + }, + ], + }); + expect( + getApiFilter(getFilter("status"), params("status.eq=archived")) + ).toEqual({ field: "archivedAt", operator: "isNotNull" }); + }); + + it("adds no condition for toggle filters", () => { + expect( + getApiFilter(getFilter("titleOnly"), params("titleOnly=true")) + ).toBeUndefined(); + }); + }); + + describe("getFilterParamChanges", () => { + it("writes one value as eq and many as in", () => { + const collection = getFilter("collectionId"); + + expect( + getFilterParamChanges(collection, [collectionA], params("")) + ).toEqual({ "collectionId.eq": collectionA }); + expect( + getFilterParamChanges( + collection, + [collectionA, collectionB], + params(`collectionId.eq=${collectionA}`) + ) + ).toEqual({ + "collectionId.eq": undefined, + "collectionId.in": [collectionA, collectionB], + }); + }); + + it("writes dates as a lower bound and clears the legacy parameter", () => { + expect( + getFilterParamChanges( + getFilter("updatedAt"), + ["-P1M"], + params("dateFilter=week") + ) + ).toEqual({ dateFilter: undefined, "updatedAt.gte": "-P1M" }); + }); + + it("clears every key of a removed filter", () => { + expect( + getFilterParamChanges( + getFilter("createdAt"), + undefined, + params("createdAt.gte=2026-03-01&createdAt.lte=2026-04-15&q=x") + ) + ).toEqual({ "createdAt.gte": undefined, "createdAt.lte": undefined }); + }); + + it("round trips through the URL", () => { + const status = getFilter("status"); + const changes = getFilterParamChanges( + status, + [StatusFilter.Archived, StatusFilter.Draft], + params("") + ); + const next = new URLSearchParams(); + for (const [key, value] of Object.entries(changes)) { + if (value !== undefined) { + next.set(key, Array.isArray(value) ? value.join(",") : value); + } + } + + expect(getFilterValues(status, next)).toEqual([ + StatusFilter.Archived, + StatusFilter.Draft, + ]); + }); + + it("writes toggles and clears the legacy parameter", () => { + expect( + getFilterParamChanges( + getFilter("titleOnly"), + ["true"], + params("titleFilter=true") + ) + ).toEqual({ titleFilter: undefined, titleOnly: "true" }); + }); + }); + + describe("date ranges", () => { + it("reads a custom range and ignores presets", () => { + const updated = getFilter("updatedAt"); + + expect( + getDateRange( + updated, + params("updatedAt.gte=2026-03-01&updatedAt.lte=2026-04-15") + ) + ).toEqual({ from: "2026-03-01", to: "2026-04-15" }); + expect( + getDateRange(updated, params("updatedAt.gte=-P1W")) + ).toBeUndefined(); + expect( + getDateRange(getFilter("collectionId"), params("")) + ).toBeUndefined(); + }); + + it("replaces a preset with a range", () => { + expect( + getDateRangeParamChanges( + getFilter("updatedAt"), + { from: "2026-03-01", to: "2026-04-15" }, + params("updatedAt.gte=-P1W&dateFilter=week") + ) + ).toEqual({ + dateFilter: undefined, + "updatedAt.gte": "2026-03-01", + "updatedAt.lte": "2026-04-15", + }); + }); + + it("labels ranges with one bound", () => { + expect(formatDateRange({ from: "2026-03-01" }, i18next.t)).toMatch( + /^From / + ); + expect(formatDateRange({ to: "2026-03-01" }, i18next.t)).toMatch( + /^Until / + ); + expect(formatDateRange({ from: "bad" }, i18next.t)).toBeUndefined(); + }); + }); +}); diff --git a/app/scenes/Search/searchFilters.tsx b/app/scenes/Search/searchFilters.tsx new file mode 100644 index 0000000000..80fbf82565 --- /dev/null +++ b/app/scenes/Search/searchFilters.tsx @@ -0,0 +1,635 @@ +import { + CalendarIcon, + CollectionIcon, + DoneIcon, + EditIcon, + NewDocumentIcon, + CaseSensitiveIcon, + UserIcon, +} from "outline-icons"; +import { endOfDay, startOfDay } from "date-fns"; +import { uniq } from "es-toolkit/compat"; +import { useMemo } from "react"; +import type { TFunction } from "i18next"; +import { useTranslation } from "react-i18next"; +import type { Filter } from "@shared/helpers/FilterHelper"; +import { + ComparisonOperator, + durationForDateFilter, + RANGE_OPERATORS, + scalarMatchesKind, + statusToFilter, +} from "@shared/helpers/FilterHelper"; +import { StatusFilter } from "@shared/types"; +import { + dateRangeToReadable, + isISODate, + parseISODate, +} from "@shared/utils/date"; +import type { locales } from "@shared/utils/date"; +import type Document from "~/models/Document"; +import { isTruthyQueryValue } from "~/utils/urls"; +import type { FilterOptionSource } from "./filterOptions"; +import { + useCollectionOptions, + useRelativeDateOptions, + useStatusOptions, + useTemplateOptions, + useUserOptions, +} from "./filterOptions"; + +/** The state of the search page that controls which filters can show. */ +interface SearchFilterContext { + /** The document that the search is limited to, if there is one. */ + document?: Document; +} + +/** The values of a filter for each operator, as read from the URL. */ +export type FilterConditions = Partial>; + +/** A URL parameter from before the `.` format. */ +interface LegacyParam { + /** The name of the URL parameter. */ + param: string; + /** The operator that the parameter stands for. */ + operator: ComparisonOperator; + /** Converts a legacy value to the current format, undefined drops it. */ + map?: (value: string) => string | undefined; +} + +interface BaseSearchFilter { + /** + * Unique identifier and the field name in the URL, which is + * `.=`. A bare `=` is read as `eq`. + */ + id: string; + /** Name of the filter, shown on the chip and in the add menu. */ + label: string; + /** Icon shown in the add menu and on the chip when there is no value icon. */ + icon: React.ReactNode; + /** Pinned filters always show, others are added from the "More" menu. */ + pinned?: boolean; + /** Whether the filter can be used in the given context, defaults to always. */ + isAvailable?: (context: SearchFilterContext) => boolean; +} + +/** A filter where the user picks one or more values from a list. */ +export interface SelectSearchFilter extends BaseSearchFilter { + type: "select"; + /** Operators that the URL may use for this filter, others are dropped. */ + operators: readonly ComparisonOperator[]; + /** Whether a URL value is valid for the operator, others are dropped. */ + isValidValue: (value: string, operator: ComparisonOperator) => boolean; + /** + * How a selection is written to the URL: "match" writes one value as `eq` + * and many as `in`, "date" writes a preset as a `gte` lower bound and a + * custom range as `gte` and `lte` dates. + */ + selection: "match" | "date"; + /** Whether more than one value can be selected. */ + multiple?: boolean; + /** Values that apply when the URL does not include the filter. */ + defaultValues?: string[]; + /** Hook that returns the options to pick from. */ + useOptions: () => FilterOptionSource; + /** A URL parameter from before the current format, still read. */ + legacy?: LegacyParam; + /** Builds the API expression, defaults to one condition per operator. */ + toFilter?: (conditions: FilterConditions) => Filter | undefined; +} + +/** A filter that is either on or off, and is not an API condition. */ +export interface ToggleSearchFilter extends BaseSearchFilter { + type: "toggle"; + /** A URL parameter from before the current format, still read. */ + legacyParam?: string; +} + +/** A filter that can be applied on the search page. */ +export type SearchFilter = SelectSearchFilter | ToggleSearchFilter; + +/** A custom date range, as ISO dates (yyyy-MM-dd) in local time. */ +export interface DateRange { + /** The first day of the range. */ + from?: string; + /** The last day of the range. */ + to?: string; +} + +/** The URL value that turns a toggle filter on. */ +export const TOGGLE_ON = "true"; + +/** The option key that opens the custom date range picker. */ +export const CUSTOM_RANGE = "custom"; + +/** + * Hook that returns every filter that can be applied on the search page. + * + * @returns the search filters. + */ +export function useSearchFilters(): SearchFilter[] { + const { t } = useTranslation(); + return useMemo(() => createSearchFilters(t), [t]); +} + +/** + * Create every filter that can be applied on the search page, in display + * order. To add a filter, add a definition to this list. + * + * @param t the translation function. + * @returns the search filters. + */ +export function createSearchFilters(t: TFunction): SearchFilter[] { + return [ + { + type: "select", + id: "collectionId", + label: t("Collection"), + icon: , + pinned: true, + isAvailable: ({ document }) => !document, + ...matchSelection, + useOptions: useCollectionOptions, + }, + { + type: "select", + id: "userId", + label: t("Edited by"), + icon: , + pinned: true, + ...matchSelection, + // The API only supports membership checks for these fields. + operators: ["eq", "in"], + useOptions: useUserOptions, + }, + { + type: "select", + id: "status", + label: t("Status"), + icon: , + pinned: true, + operators: ["eq", "in"], + isValidValue: isStatus, + selection: "match", + multiple: true, + defaultValues: [StatusFilter.Published, StatusFilter.Draft], + useOptions: useStatusOptions, + legacy: { param: "statusFilter", operator: "in" }, + toFilter: (conditions) => + statusesToFilter([...(conditions.eq ?? []), ...(conditions.in ?? [])]), + }, + { + type: "select", + id: "updatedAt", + label: t("Updated"), + icon: , + ...dateSelection, + legacy: { + param: "dateFilter", + operator: "gte", + map: durationForDateFilter, + }, + }, + { + type: "select", + id: "createdById", + label: t("Created by"), + icon: , + ...matchSelection, + // The API only supports membership checks for these fields. + operators: ["eq", "in"], + useOptions: useUserOptions, + }, + { + type: "select", + id: "createdAt", + label: t("Created"), + icon: , + ...dateSelection, + }, + { + type: "select", + id: "publishedAt", + label: t("Published"), + icon: , + ...dateSelection, + }, + { + type: "select", + id: "templateId", + label: t("Template"), + icon: , + ...matchSelection, + useOptions: useTemplateOptions, + }, + { + type: "toggle", + id: "titleOnly", + label: t("Title only"), + icon: , + legacyParam: "titleFilter", + }, + ]; +} + +/** + * Read the conditions of a filter that the URL sets, from both the + * `.` format and any legacy parameter. Keys with an unknown + * operator, an operator the filter does not allow, or a value that is not + * valid are dropped. + * + * @param filter the filter to read. + * @param params the URL query parameters. + * @returns the conditions, empty when the URL does not set the filter. + */ +export function getFilterConditions( + filter: SelectSearchFilter, + params: URLSearchParams +): FilterConditions { + const conditions: FilterConditions = {}; + const add = (operator: ComparisonOperator, raw: string) => { + if (!filter.operators.includes(operator)) { + return; + } + const values = splitValues(operator, raw).filter((value) => + filter.isValidValue(value, operator) + ); + if (values.length > 0 || isNullOperator(operator)) { + conditions[operator] = [...(conditions[operator] ?? []), ...values]; + } + }; + + for (const [key, raw] of params.entries()) { + const parsed = parseKey(key); + if (parsed?.field === filter.id) { + add(parsed.operator, raw); + } + } + + const { legacy } = filter; + if (legacy && Object.keys(conditions).length === 0) { + for (const raw of params.getAll(legacy.param)) { + for (const value of raw.split(",").filter(Boolean)) { + const mapped = legacy.map ? legacy.map(value) : value; + if (mapped) { + add(legacy.operator, mapped); + } + } + } + } + + return conditions; +} + +/** The state of one filter, read from the URL in one pass. */ +export interface FilterState { + /** Whether the URL sets the filter, as opposed to it using its defaults. */ + isSet: boolean; + /** The selected option keys, including defaults. */ + values: string[]; + /** The API expression, undefined when the filter adds no condition. */ + apiFilter?: Filter; + /** A custom date range, for date filters only. */ + range?: DateRange; +} + +/** + * Read the full state of a filter from the URL, parsing it once. + * + * @param filter the filter to read. + * @param params the URL query parameters. + * @returns the state of the filter. + */ +export function readFilter( + filter: SearchFilter, + params: URLSearchParams +): FilterState { + if (filter.type === "toggle") { + const isSet = + isTruthyQueryValue(params.get(filter.id)) || + (!!filter.legacyParam && + isTruthyQueryValue(params.get(filter.legacyParam))); + return { isSet, values: isSet ? [TOGGLE_ON] : [] }; + } + + const set = getFilterConditions(filter, params); + const isSet = Object.keys(set).length > 0; + const isDate = filter.selection === "date"; + const selected = isDate + ? (set.gte ?? []) + : uniq([...(set.eq ?? []), ...(set.in ?? [])]); + const conditions = + isSet || !filter.defaultValues ? set : { in: filter.defaultValues }; + const apiFilter = filter.toFilter + ? filter.toFilter(conditions) + : conditionsToFilter( + filter.id, + isDate ? toLocalDayBounds(conditions) : conditions + ); + const from = set.gte?.find(isISODate); + const to = set.lte?.find(isISODate); + + return { + isSet, + values: selected.length > 0 ? selected : (filter.defaultValues ?? []), + apiFilter, + range: isDate && (from || to) ? { from, to } : undefined, + }; +} + +/** + * Whether the URL sets a value for the filter, as opposed to the filter using + * its default values. + * + * @param filter the filter to check. + * @param params the URL query parameters. + * @returns true if the URL sets the filter. + */ +export function isFilterSet( + filter: SearchFilter, + params: URLSearchParams +): boolean { + return readFilter(filter, params).isSet; +} + +/** + * Read the selected values of a filter from the URL, falling back to its + * defaults. These are the option keys that the chip shows as selected. + * + * @param filter the filter to read. + * @param params the URL query parameters. + * @returns the selected values. + */ +export function getFilterValues( + filter: SearchFilter, + params: URLSearchParams +): string[] { + return readFilter(filter, params).values; +} + +/** + * Convert the state of a filter in the URL to an API filter expression. + * + * @param filter the filter to convert. + * @param params the URL query parameters. + * @returns the expression, or undefined when the filter adds no condition. + */ +export function getApiFilter( + filter: SearchFilter, + params: URLSearchParams +): Filter | undefined { + return readFilter(filter, params).apiFilter; +} + +/** + * Read a custom date range of a date filter from the URL. + * + * @param filter the filter to read. + * @param params the URL query parameters. + * @returns the range as ISO dates, or undefined when the filter has none. + */ +export function getDateRange( + filter: SearchFilter, + params: URLSearchParams +): DateRange | undefined { + return readFilter(filter, params).range; +} + +/** + * Build the URL parameter changes that replace the state of a filter. Every + * key the filter uses now is cleared, including legacy parameters. + * + * @param filter the filter to change. + * @param values the new selected values, or undefined to remove the filter. + * @param params the current URL query parameters. + * @returns a map of parameter name to new value, undefined removes the key + * and an array is a comma separated list. + */ +export function getFilterParamChanges( + filter: SearchFilter, + values: string[] | undefined, + params: URLSearchParams +): Record { + if (filter.type === "toggle") { + const changes = clearFilterParams(filter, params); + changes[filter.id] = values?.length ? TOGGLE_ON : undefined; + return changes; + } + + if (!values?.length) { + return clearFilterParams(filter, params); + } + if (filter.selection === "date") { + return getConditionParamChanges(filter, { gte: [values[0]] }, params); + } + return getConditionParamChanges( + filter, + values.length === 1 ? { eq: values } : { in: values }, + params + ); +} + +/** + * Format a custom date range as a short label, for example "Mar 1 – 15, 2026". + * A range with one bound is labelled "From …" or "Until …". + * + * @param range the range as ISO dates. + * @param t the translation function. + * @param language the user's language preference. + * @returns the label, or undefined when the range has no valid date. + */ +export function formatDateRange( + range: DateRange, + t: TFunction, + language?: keyof typeof locales | null +): string | undefined { + const from = range.from ? parseISODate(range.from) : null; + const to = range.to ? parseISODate(range.to) : null; + if (from && to) { + return dateRangeToReadable(from, to, language); + } + if (from) { + return t("From {{ date }}", { + date: dateRangeToReadable(from, null, language), + }); + } + if (to) { + return t("Until {{ date }}", { + date: dateRangeToReadable(null, to, language), + }); + } + return undefined; +} + +/** + * Build the URL parameter changes that set a custom date range on a date + * filter, replacing any value it has now. + * + * @param filter the date filter to change. + * @param range the range as ISO dates. + * @param params the current URL query parameters. + * @returns a map of parameter name to new value, undefined removes the key. + */ +export function getDateRangeParamChanges( + filter: SearchFilter, + range: Required, + params: URLSearchParams +): Record { + return getConditionParamChanges( + filter, + { gte: [range.from], lte: [range.to] }, + params + ); +} + +/** + * Split a URL key in the `.` format. A key without an + * operator is read as `eq`. + * + * @param key the URL parameter name. + * @returns the field and operator, or undefined if the operator is unknown. + */ +export function parseKey( + key: string +): { field: string; operator: ComparisonOperator } | undefined { + const dot = key.lastIndexOf("."); + if (dot === -1) { + return { field: key, operator: "eq" }; + } + const operator = ComparisonOperator.safeParse(key.slice(dot + 1)); + return operator.success + ? { field: key.slice(0, dot), operator: operator.data } + : undefined; +} + +const matchSelection = { + operators: ["eq", "neq", "in", "notIn"], + isValidValue: (value: string, operator: ComparisonOperator) => + scalarMatchesKind("uuid", value, operator), + selection: "match", +} as const; + +const dateSelection = { + operators: [...RANGE_OPERATORS], + isValidValue: (value: string, operator: ComparisonOperator) => + scalarMatchesKind("date", value, operator), + selection: "date", + useOptions: useRelativeDateOptions, +} as const; + +function clearFilterParams( + filter: SearchFilter, + params: URLSearchParams +): Record { + const changes: Record = {}; + for (const key of params.keys()) { + if (parseKey(key)?.field === filter.id) { + changes[key] = undefined; + } + } + const legacyParam = + filter.type === "toggle" ? filter.legacyParam : filter.legacy?.param; + if (legacyParam) { + changes[legacyParam] = undefined; + } + return changes; +} + +function getConditionParamChanges( + filter: SearchFilter, + conditions: FilterConditions, + params: URLSearchParams +): Record { + const changes = clearFilterParams(filter, params); + for (const operator of ComparisonOperator.options) { + const values = conditions[operator]; + if (values?.length) { + changes[`${filter.id}.${operator}`] = isListOperator(operator) + ? values + : values[0]; + } + } + return changes; +} + +/** + * Convert date-only bounds to the start or end of that day in local time, so + * that a range includes the whole of its first and last day. + */ +function toLocalDayBounds(conditions: FilterConditions): FilterConditions { + const result: FilterConditions = { ...conditions }; + for (const operator of RANGE_OPERATORS) { + result[operator] = conditions[operator]?.map((value) => { + const date = isISODate(value) ? parseISODate(value) : null; + if (!date) { + return value; + } + const bound = + operator === "gt" || operator === "gte" + ? startOfDay(date) + : endOfDay(date); + return bound.toISOString(); + }); + } + return result; +} + +function isNullOperator(operator: ComparisonOperator) { + return operator === "isNull" || operator === "isNotNull"; +} + +function isListOperator(operator: ComparisonOperator) { + return operator === "in" || operator === "notIn"; +} + +function splitValues(operator: ComparisonOperator, raw: string): string[] { + if (isNullOperator(operator)) { + return []; + } + return isListOperator(operator) ? raw.split(",").filter(Boolean) : [raw]; +} + +function conditionsToFilter( + field: string, + conditions: FilterConditions +): Filter | undefined { + const leaves = ComparisonOperator.options.flatMap((operator): Filter[] => { + const values = conditions[operator]; + if (!values) { + return []; + } + if (isNullOperator(operator)) { + return [{ field, operator }]; + } + if (isListOperator(operator)) { + return [{ field, operator, value: values }]; + } + if (values.length > 1 && (operator === "eq" || operator === "neq")) { + return [ + { + field, + operator: operator === "eq" ? "in" : "notIn", + value: values, + }, + ]; + } + return values.map((value) => ({ field, operator, value })); + }); + + if (leaves.length === 0) { + return undefined; + } + return leaves.length === 1 ? leaves[0] : { operator: "AND", filters: leaves }; +} + +function statusesToFilter(values: string[]): Filter | undefined { + const shapes = uniq(values).filter(isStatus).map(statusToFilter); + if (shapes.length === 0) { + return undefined; + } + return shapes.length === 1 ? shapes[0] : { operator: "OR", filters: shapes }; +} + +function isStatus(value: string): value is StatusFilter { + return Object.values(StatusFilter).includes(value); +} diff --git a/app/scenes/Settings/AI.tsx b/app/scenes/Settings/AI.tsx index fa3261de67..dcbb9a194d 100644 --- a/app/scenes/Settings/AI.tsx +++ b/app/scenes/Settings/AI.tsx @@ -11,6 +11,7 @@ import Switch from "~/components/Switch"; import Text from "~/components/Text"; import useCurrentTeam from "~/hooks/useCurrentTeam"; import SettingRow from "./components/SettingRow"; +import { SettingsSection } from "./components/SettingsSection"; import Input from "~/components/Input"; import Tooltip from "~/components/Tooltip"; import CopyToClipboard from "~/components/CopyToClipboard"; @@ -24,8 +25,7 @@ function AI() { const handleMCPChange = React.useCallback( async (checked: boolean) => { - team.setPreference(TeamPreference.MCP, checked); - await team.save(); + await team.savePreference(TeamPreference.MCP, checked); toast.success(t("Settings saved")); }, [team, t] @@ -56,102 +56,102 @@ function AI() { Control how AI features are used in the workspace. - {t("MCP server")} - - - {t( - "Let members connect AI assistants and other apps to this workspace. Connected apps can read and edit content with the same permissions as the member who connects them." - )} - - {team.getPreference(TeamPreference.MCP) && ( - <> - - - ), - }} - /> - - - - - - - - - - - - )} - - } - > - - - - {team.getPreference(TeamPreference.MCP) && ( + -
+ {t( - "Optional instructions that are sent to connected AI apps, for example how your workspace is organized or where to find important information." + "Let members connect AI assistants and other apps to this workspace. Connected apps can read and edit content with the same permissions as the member who connects them." )} -
- + + {team.getPreference(TeamPreference.MCP) && ( + <> + + + ), + }} + /> + + + + + + + + + + + + )} } - /> - )} + > + +
- {t("AI answers")} - +
+ {t( + "Optional instructions that are sent to connected AI apps, for example how your workspace is organized or where to find important information." + )} +
+ + + } + /> )} - border={false} - > - -
+
+ + + + + +
); } diff --git a/app/scenes/Settings/Authentication.tsx b/app/scenes/Settings/Authentication.tsx index cef6030c9d..71e701064c 100644 --- a/app/scenes/Settings/Authentication.tsx +++ b/app/scenes/Settings/Authentication.tsx @@ -21,6 +21,7 @@ import usePolicy from "~/hooks/usePolicy"; import useRequest from "~/hooks/useRequest"; import useStores from "~/hooks/useStores"; import SettingRow from "./components/SettingRow"; +import { SettingsSection } from "./components/SettingsSection"; import { setPostLoginPath } from "~/hooks/useLastVisitedPath"; import { getRedirectUrl, toRelative } from "~/utils/urls"; import { settingsPath } from "~/utils/routeHelpers"; @@ -193,188 +194,188 @@ function Authentication() { - {t("Sign in")} + + {authenticationProviders.orderedData.map((provider) => { + // Group sync can still be disabled after losing the entitlement. + const showGroupSync = + provider.isActive && + provider.groupSyncSupported && + (!!can.externalGroupSync || !!provider.settings?.groupSyncEnabled); - {authenticationProviders.orderedData.map((provider) => { - // Group sync can still be disabled after losing the entitlement. - const showGroupSync = - provider.isActive && - provider.groupSyncSupported && - (!!can.externalGroupSync || !!provider.settings?.groupSyncEnabled); - - return ( - - - {provider.displayName} - - } - name={provider.name} - description={ - provider.isConnected - ? t("Allow members to sign in with {{ authProvider }}", { - authProvider: provider.displayName, - }) - : t( - "Connect {{ authProvider }} to allow members to sign in", - { + return ( + + + {provider.displayName} + + } + name={provider.name} + description={ + provider.isConnected + ? t("Allow members to sign in with {{ authProvider }}", { authProvider: provider.displayName, - } - ) - } - border={!showGroupSync} - > - - {provider.isConnected ? ( - + }) + : t( + "Connect {{ authProvider }} to allow members to sign in", + { + authProvider: provider.displayName, + } + ) + } + border={!showGroupSync} + > + + {provider.isConnected ? ( + + + + {provider.providerId} + + + ) : ( - - {provider.providerId} - - - ) : ( - - )} - - - {showGroupSync && ( - - {provider.groupSyncRequiresSetup && - !provider.settings?.groupSyncEnabled ? ( - - ) : ( - - handleToggleGroupSync(provider, checked) - } - /> - )} - - )} - {showGroupSync && - provider.groupSyncUsesClaim && - provider.settings?.groupSyncEnabled && ( - + + {showGroupSync && ( + - ) => { - const value = ev.target.value.trim(); - if (value !== (provider.settings?.groupClaim ?? "")) { - void handleGroupClaimChange(provider, value); + {provider.groupSyncRequiresSetup && + !provider.settings?.groupSyncEnabled ? ( + + ) : ( + + handleToggleGroupSync(provider, checked) } - }} - /> + /> + )} )} - - ); - })} - - {t("Email")} - - } - name="guestSignin" - description={ - env.EMAIL_ENABLED - ? t("Allow members to sign in using their email address") - : t("The server must have SMTP configured to enable this setting") - } - border={false} - > - - + {showGroupSync && + provider.groupSyncUsesClaim && + provider.settings?.groupSyncEnabled && ( + + ) => { + const value = ev.target.value.trim(); + if (value !== (provider.settings?.groupClaim ?? "")) { + void handleGroupClaimChange(provider, value); + } + }} + /> + + )} + + ); + })} + + {t("Email")} + + } + name="guestSignin" + description={ + env.EMAIL_ENABLED + ? t("Allow members to sign in using their email address") + : t("The server must have SMTP configured to enable this setting") + } + > + + - - {t("Passkeys")} - - } - name="passkeysEnabled" - description={t("Allow members to sign in with a WebAuthn passkey")} - > - { - try { - await team.save({ passkeysEnabled: checked }); - toast.success(t("Settings saved")); - } catch (err) { - toast.error(errToString(err)); - } - }} - /> - + + {t("Passkeys")} + + } + name="passkeysEnabled" + description={t("Allow members to sign in with a WebAuthn passkey")} + > + { + try { + await team.save({ passkeysEnabled: checked }); + toast.success(t("Settings saved")); + } catch (err) { + toast.error(errToString(err)); + } + }} + /> + + - {t("Restrictions")} - + + +
); } diff --git a/app/scenes/Settings/Details.tsx b/app/scenes/Settings/Details.tsx index bfb3d72f05..ee3f03bf50 100644 --- a/app/scenes/Settings/Details.tsx +++ b/app/scenes/Settings/Details.tsx @@ -1,18 +1,19 @@ import { isHexColor } from "class-validator"; -import { pickBy } from "es-toolkit/compat"; +import { debounce, pickBy } from "es-toolkit/compat"; import { observer } from "mobx-react"; import { TeamIcon } from "outline-icons"; -import { useRef, useState } from "react"; +import { useState } from "react"; import * as React from "react"; import { useTranslation, Trans } from "react-i18next"; import { toast } from "sonner"; import { ThemeProvider } from "styled-components"; import { errToString } from "@shared/utils/error"; import { buildDarkTheme, buildLightTheme } from "@shared/styles/theme"; -import type { CustomTheme } from "@shared/types"; +import type { CustomTheme, TeamPreferences } from "@shared/types"; import { TOCPosition, TeamPreference, UserPreference } from "@shared/types"; import { getBaseDomain } from "@shared/utils/domains"; import { TeamValidation } from "@shared/validations"; +import { AvatarVariant } from "~/components/Avatar/Avatar"; import Button from "~/components/Button"; import ButtonLink from "~/components/ButtonLink"; import DefaultCollectionInputSelect from "~/components/DefaultCollectionInputSelect"; @@ -27,13 +28,18 @@ import useCurrentTeam from "~/hooks/useCurrentTeam"; import useCurrentUser from "~/hooks/useCurrentUser"; import usePolicy from "~/hooks/usePolicy"; import useStores from "~/hooks/useStores"; +import type Team from "~/models/Team"; import isCloudHosted from "~/utils/isCloudHosted"; import TeamDelete from "../TeamDelete"; -import { ActionRow } from "./components/ActionRow"; import ImageInput from "./components/ImageInput"; import SettingRow from "./components/SettingRow"; +import { SettingsSection } from "./components/SettingsSection"; import { ThemeColorInputs } from "./components/ThemeColorInputs"; +type TeamUpdate = Partial< + Pick +> & { preferences?: TeamPreferences }; + function Details() { const { dialogs, ui } = useStores(); const { t } = useTranslation(); @@ -41,7 +47,6 @@ function Details() { const user = useCurrentUser(); const can = usePolicy(team); - const form = useRef(null); const [accent, setAccent] = useState( team.preferences?.customTheme?.accent ); @@ -51,12 +56,6 @@ function Details() { const [name, setName] = useState(team.name); const [description, setDescription] = useState(team.description || ""); const [subdomain, setSubdomain] = useState(team.subdomain); - const [publicBranding, setPublicBranding] = useState( - team.preferences?.publicBranding - ); - const [defaultCollectionId, setDefaultCollectionId] = useState( - team.defaultCollectionId - ); const customTheme: Partial = React.useMemo( () => @@ -70,10 +69,6 @@ function Details() { [accent, accentText] ); - const [tocPosition, setTocPosition] = useState( - team.getPreference(TeamPreference.TocPosition) as TOCPosition - ); - const tocPositionOptions: Option[] = React.useMemo( () => [ @@ -91,47 +86,103 @@ function Details() { [t] ); - const handleTocPositionChange = React.useCallback((position: string) => { - setTocPosition(position as TOCPosition); - }, []); - - const handleSubmit = React.useCallback( - async (event?: React.SyntheticEvent) => { - if (event) { - event.preventDefault(); - } - - try { - await team.save({ - name, - description, - subdomain, - defaultCollectionId, - preferences: { - ...team.preferences, - publicBranding, - customTheme, - tocPosition, - }, - }); + const showSuccessMessage = React.useMemo( + () => + debounce(() => { toast.success(t("Settings saved")); + }, 250), + [t] + ); + + const saveData = React.useCallback( + async (data: TeamUpdate) => { + try { + await team.save(data); + showSuccessMessage(); + return true; } catch (err) { toast.error(errToString(err)); + return false; } }, - [ - tocPosition, - team, - name, - description, - subdomain, - defaultCollectionId, - publicBranding, - customTheme, - t, - ] + [team, showSuccessMessage] ); + const savePreference = React.useCallback( + (key: T, value: TeamPreferences[T]) => + saveData({ preferences: { [key]: value } }), + [saveData] + ); + + const saveTheme = React.useMemo( + () => + debounce((theme: Partial) => { + void savePreference(TeamPreference.CustomTheme, theme); + }, 500), + [savePreference] + ); + + // Save a pending theme change when the user leaves the page. + React.useEffect(() => () => saveTheme.flush(), [saveTheme]); + + const handleThemeChange = React.useCallback( + ( + nextAccent: string | null | undefined, + nextText: string | null | undefined + ) => { + // Wait until every entered color is complete or empty before saving. + const isReady = (value: string | null | undefined) => + !value || value === "#" || isHexColor(value); + if (!isReady(nextAccent) || !isReady(nextText)) { + return; + } + saveTheme( + pickBy({ accent: nextAccent, accentText: nextText }, isHexColor) + ); + }, + [saveTheme] + ); + + const handleAccentChange = React.useCallback( + (value: string) => { + setAccent(value); + handleThemeChange(value, accentText); + }, + [accentText, handleThemeChange] + ); + + const handleAccentTextChange = React.useCallback( + (value: string) => { + setAccentText(value); + handleThemeChange(accent, value); + }, + [accent, handleThemeChange] + ); + + const handleResetTheme = React.useCallback(() => { + setAccent(null); + setAccentText(null); + saveTheme.cancel(); + void savePreference(TeamPreference.CustomTheme, {}); + }, [saveTheme, savePreference]); + + const handleSubmit = React.useCallback((ev: React.FormEvent) => { + ev.preventDefault(); + }, []); + + const handleKeyDown = React.useCallback((ev: React.KeyboardEvent) => { + // Text fields save on blur, so Enter saves the focused field. + if ( + ev.key === "Enter" && + !ev.nativeEvent.isComposing && + ev.target instanceof HTMLInputElement && + ev.currentTarget.contains(ev.target) + ) { + ev.preventDefault(); + ev.target.blur(); + } + }, []); + const handleNameChange = React.useCallback( (ev: React.ChangeEvent) => { setName(ev.target.value); @@ -139,6 +190,31 @@ function Details() { [] ); + const handleNameBlur = React.useCallback(async () => { + if (name === team.name) { + return; + } + if (!name.trim() || !(await saveData({ name }))) { + setName(team.name); + } + }, [name, team, saveData]); + + const handleDescriptionChange = React.useCallback( + (ev: React.ChangeEvent) => { + setDescription(ev.target.value); + }, + [] + ); + + const handleDescriptionBlur = React.useCallback(async () => { + if (description === (team.description || "")) { + return; + } + if (!(await saveData({ description }))) { + setDescription(team.description || ""); + } + }, [description, team, saveData]); + const handleSubdomainChange = React.useCallback( (ev: React.ChangeEvent) => { setSubdomain(ev.target.value.toLowerCase()); @@ -146,6 +222,33 @@ function Details() { [] ); + const handleSubdomainBlur = React.useCallback(async () => { + if (subdomain === team.subdomain) { + return; + } + if (!(await saveData({ subdomain }))) { + setSubdomain(team.subdomain); + } + }, [subdomain, team, saveData]); + + const handlePublicBrandingChange = React.useCallback( + (checked: boolean) => + savePreference(TeamPreference.PublicBranding, checked), + [savePreference] + ); + + const handleTocPositionChange = React.useCallback( + (position: string) => + savePreference(TeamPreference.TocPosition, position as TOCPosition), + [savePreference] + ); + + const handleSelectCollection = React.useCallback( + (value: string) => + saveData({ defaultCollectionId: value === "home" ? null : value }), + [saveData] + ); + const handleAvatarChange = async (avatarUrl: string | null) => { await team.save({ avatarUrl }); toast.success(t("Logo updated")); @@ -165,28 +268,24 @@ function Details() { }); }; - const onSelectCollection = React.useCallback((value: string) => { - const selectedValue = value === "home" ? null : value; - setDefaultCollectionId(selectedValue); - }, []); - const handleSeamlessEditChange = React.useCallback( async (checked: boolean) => { - team.setPreference(TeamPreference.SeamlessEdit, !checked); - await team.save(); + if (!(await savePreference(TeamPreference.SeamlessEdit, !checked))) { + return; + } // Enabling separate editing also applies it to the current user. if (checked) { - user.setPreference(UserPreference.SeamlessEdit, false); - await user.save(); + try { + await user.savePreference(UserPreference.SeamlessEdit, false); + } catch (err) { + toast.error(errToString(err)); + } } - toast.success(t("Settings saved")); }, - [team, user, t] + [savePreference, user] ); - const isValid = form.current?.checkValidity(); - const newTheme = React.useMemo( () => ui.resolvedTheme === "light" @@ -206,206 +305,192 @@ function Details() { -
- {t("Appearance")} - - - - - - - - ) => { - setDescription(ev.target.value); - }} - maxLength={TeamValidation.maxDescriptionLength} - showCharacterCount - /> - - - {t("Customize the interface look and feel.")}{" "} - {accent && ( - <> - { - setAccent(null); - setAccentText(null); - }} - > + + + + + + + + + + + + + {t("Customize the interface look and feel.")}{" "} + {accent && ( + {t("Reset theme")} - + )} + + } + > + + + {(team.avatarUrl || team.description) && ( + - } - > - - - {(team.avatarUrl || team.description) && ( + > + + + )} + + + + + + + Your workspace will be accessible at{" "} + + {subdomain}.{getBaseDomain()} + + + ) : ( + t( + "Choose a subdomain to enable a login page just for your team." + ) + ) + } + > + + + + + + setPublicBranding(checked)} + id={TeamPreference.SeamlessEdit} + name={TeamPreference.SeamlessEdit} + checked={!team.getPreference(TeamPreference.SeamlessEdit)} + onChange={handleSeamlessEditChange} /> - )} - - - - - {t("Behavior")} - - - Your workspace will be accessible at{" "} - - {subdomain}.{getBaseDomain()} - - - ) : ( - t( - "Choose a subdomain to enable a login page just for your team." - ) - ) - } - > - - - - - - - - - - - - - - {can.delete && ( - <> -

 

- - {t("Danger")} - - - - - - - )} +
+ + {can.delete && ( + + + + + + + + )} ); diff --git a/app/scenes/Settings/Embeds.tsx b/app/scenes/Settings/Embeds.tsx index f12209ed56..811cd7a691 100644 --- a/app/scenes/Settings/Embeds.tsx +++ b/app/scenes/Settings/Embeds.tsx @@ -12,6 +12,7 @@ import Text from "~/components/Text"; import useCurrentTeam from "~/hooks/useCurrentTeam"; import { IntegrationScene } from "./components/IntegrationScene"; import SettingRow from "./components/SettingRow"; +import { SettingsSection } from "./components/SettingsSection"; import { HStack } from "~/components/primitives/HStack"; /** List of embed providers available for configuration. */ @@ -57,9 +58,11 @@ function Embeds() { ? disabledEmbeds.filter((t) => t !== id) : [...disabledEmbeds, id]; - team.setPreference(TeamPreference.DisabledEmbeds, updated); await saveData({ - preferences: { ...team.preferences }, + preferences: { + ...team.preferences, + [TeamPreference.DisabledEmbeds]: updated, + }, }); }, [team, saveData] @@ -69,9 +72,11 @@ function Embeds() { async (enabled: boolean) => { const updated = enabled ? [] : providers.map((e) => e.id); - team.setPreference(TeamPreference.DisabledEmbeds, updated); await saveData({ - preferences: { ...team.preferences }, + preferences: { + ...team.preferences, + [TeamPreference.DisabledEmbeds]: updated, + }, }); }, [team, saveData] @@ -99,15 +104,16 @@ function Embeds() { {team.documentEmbeds && ( - <> - {t("Providers")} - + Enabled providers will appear in the editor slash menu and embed automatically when a compatible link is pasted. Existing embeds in documents will continue to display regardless of these settings. - + } + > ); })} - + )} ); diff --git a/app/scenes/Settings/Preferences.tsx b/app/scenes/Settings/Preferences.tsx index 1530a2f8b2..8341eb214b 100644 --- a/app/scenes/Settings/Preferences.tsx +++ b/app/scenes/Settings/Preferences.tsx @@ -24,6 +24,7 @@ import useStores from "~/hooks/useStores"; import UserDelete from "../UserDelete"; import { AutoLaunchSetting } from "./components/AutoLaunchSetting"; import SettingRow from "./components/SettingRow"; +import { SettingsSection } from "./components/SettingsSection"; function Preferences() { const { t } = useTranslation(); @@ -57,8 +58,7 @@ function Preferences() { const handleUseCursorPointerChange = React.useCallback( async (checked: boolean) => { - user.setPreference(UserPreference.UseCursorPointer, checked); - await user.save(); + await user.savePreference(UserPreference.UseCursorPointer, checked); toast.success(t("Preferences saved")); }, [user, t] @@ -66,8 +66,7 @@ function Preferences() { const handleCodeBlockLineNumbersChange = React.useCallback( async (checked: boolean) => { - user.setPreference(UserPreference.CodeBlockLineNumers, checked); - await user.save(); + await user.savePreference(UserPreference.CodeBlockLineNumers, checked); toast.success(t("Preferences saved")); }, [user, t] @@ -75,8 +74,7 @@ function Preferences() { const handleCommentsInGutterChange = React.useCallback( async (checked: boolean) => { - user.setPreference(UserPreference.CommentsInGutter, checked); - await user.save(); + await user.savePreference(UserPreference.CommentsInGutter, checked); toast.success(t("Preferences saved")); }, [user, t] @@ -84,8 +82,7 @@ function Preferences() { const handleShowDocumentStatsChange = React.useCallback( async (checked: boolean) => { - user.setPreference(UserPreference.ShowDocumentStats, checked); - await user.save(); + await user.savePreference(UserPreference.ShowDocumentStats, checked); toast.success(t("Preferences saved")); }, [user, t] @@ -93,8 +90,7 @@ function Preferences() { const handleSeamlessEditChange = React.useCallback( async (checked: boolean) => { - user.setPreference(UserPreference.SeamlessEdit, !checked); - await user.save(); + await user.savePreference(UserPreference.SeamlessEdit, !checked); toast.success(t("Preferences saved")); }, [user, t] @@ -102,8 +98,7 @@ function Preferences() { const handleRememberLastPathChange = React.useCallback( async (checked: boolean) => { - user.setPreference(UserPreference.RememberLastPath, checked); - await user.save(); + await user.savePreference(UserPreference.RememberLastPath, checked); toast.success(t("Preferences saved")); }, [user, t] @@ -111,8 +106,7 @@ function Preferences() { const handleEnableSmartTextChange = React.useCallback( async (checked: boolean) => { - user.setPreference(UserPreference.EnableSmartText, checked); - await user.save(); + await user.savePreference(UserPreference.EnableSmartText, checked); toast.success(t("Preferences saved")); }, [user, t] @@ -141,11 +135,10 @@ function Preferences() { const handleNotificationBadgeChange = React.useCallback( async (value: string) => { - user.setPreference( + await user.savePreference( UserPreference.NotificationBadge, value as NotificationBadgeType ); - await user.save(); toast.success(t("Preferences saved")); }, [user, t] @@ -181,173 +174,172 @@ function Preferences() { Manage settings that affect your personal experience. - {t("Appearance")} - - - Choose the interface language. Community translations are accepted - through our{" "} - - translation portal - - . - - - } - > - + - - - - - - - - - - - - - - - - - - {t("Behavior")} - - + + Choose the interface language. Community translations are + accepted through our{" "} + + translation portal + + . + + } - onChange={handleSeamlessEditChange} - /> - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - - - + + + + - + description={t( + "Choose how unread notifications are indicated on the app icon." + )} + > + + + {can.delete && ( - <> - {t("Danger")} + - + )} ); diff --git a/app/scenes/Settings/Profile.tsx b/app/scenes/Settings/Profile.tsx index 4ee6b30051..13d0303754 100644 --- a/app/scenes/Settings/Profile.tsx +++ b/app/scenes/Settings/Profile.tsx @@ -4,7 +4,6 @@ import * as React from "react"; import { Trans, useTranslation } from "react-i18next"; import { toast } from "sonner"; import { errToString } from "@shared/utils/error"; -import Button from "~/components/Button"; import Heading from "~/components/Heading"; import Input from "~/components/Input"; import Scene from "~/components/Scene"; @@ -20,17 +19,40 @@ 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 { t } = useTranslation(); - const handleSubmit = async (ev: React.SyntheticEvent) => { + const handleSubmit = (ev: React.FormEvent) => { ev.preventDefault(); + }; + + const handleKeyDown = (ev: React.KeyboardEvent) => { + // The name saves on blur, so Enter saves it. + if ( + ev.key === "Enter" && + !ev.nativeEvent.isComposing && + ev.target instanceof HTMLInputElement && + ev.currentTarget.contains(ev.target) + ) { + ev.preventDefault(); + ev.target.blur(); + } + }; + + const handleNameBlur = async () => { + if (name === user.name) { + return; + } + if (!name.trim()) { + setName(user.name); + return; + } try { await user.save({ name }); toast.success(t("Profile saved")); } catch (err) { + setName(user.name); toast.error(errToString(err)); } }; @@ -57,9 +79,6 @@ const Profile = () => { toast.error(error || t("Unable to upload new profile picture")); }; - const isValid = form.current?.checkValidity(); - const { isSaving } = user; - return ( }> {t("Profile")} @@ -67,7 +86,7 @@ const Profile = () => { Manage how you appear to other members of the workspace. -
+ { autoComplete="name" value={name} onChange={handleNameChange} + onBlur={handleNameBlur} maxLength={UserValidation.maxNameLength} showCharacterCount required @@ -109,10 +129,6 @@ const Profile = () => { /> )} - -
); diff --git a/app/scenes/Settings/Security.tsx b/app/scenes/Settings/Security.tsx index 5a7a5462be..bb7b092a42 100644 --- a/app/scenes/Settings/Security.tsx +++ b/app/scenes/Settings/Security.tsx @@ -21,6 +21,7 @@ import usePolicy from "~/hooks/usePolicy"; import useStores from "~/hooks/useStores"; import isCloudHosted from "~/utils/isCloudHosted"; import SettingRow from "./components/SettingRow"; +import { SettingsSection } from "./components/SettingsSection"; function Security() { const { dialogs } = useStores(); @@ -280,186 +281,189 @@ function Security() { - {t("Invites")} - - - - {isCloudHosted && ( + - )} - - {!data.inviteRequired && ( - - - - )} - - {t("Behavior")} - - - - {can.setDefaultShareExpiry && ( - - + + + )} + + {!data.inviteRequired && ( + + + + )} + + + + + + + {can.setDefaultShareExpiry && ( + + + + )} + + + + + + + + - )} - - - - - - - - - - - - - - - - - - - {isCloudHosted && ( - - )} + + + + + + + {isCloudHosted && ( + + + + )} + ); } diff --git a/app/scenes/Settings/components/ImageInput.tsx b/app/scenes/Settings/components/ImageInput.tsx index 8f30f1af83..f17f02f383 100644 --- a/app/scenes/Settings/components/ImageInput.tsx +++ b/app/scenes/Settings/components/ImageInput.tsx @@ -1,13 +1,19 @@ -import { EditIcon } from "outline-icons"; +import { observer } from "mobx-react"; +import { EditIcon, ExportIcon, TrashIcon } from "outline-icons"; +import * as React from "react"; import { useTranslation } from "react-i18next"; import styled from "styled-components"; import { s } from "@shared/styles"; import type { IAvatar } from "~/components/Avatar"; import { Avatar, AvatarSize } from "~/components/Avatar"; import { AvatarVariant } from "~/components/Avatar/Avatar"; -import Button from "~/components/Button"; import Flex from "~/components/Flex"; -import type { Props as ImageUploadProps } from "./ImageUpload"; +import NudeButton from "~/components/NudeButton"; +import Tooltip from "~/components/Tooltip"; +import type { + ImageUploadHandle, + Props as ImageUploadProps, +} from "./ImageUpload"; import ImageUpload from "./ImageUpload"; type Props = ImageUploadProps & { @@ -15,26 +21,48 @@ type Props = ImageUploadProps & { model: IAvatar; /** Alt text for the avatar image. */ alt: string; + /** The shape of the avatar preview. Defaults to round. */ + variant?: AvatarVariant; /** - * Whether to render the inline "Remove" button when the model has an - * existing avatar. Defaults to true. + * Whether to render the change and remove buttons below the image. Hide + * them when the parent provides its own controls. Defaults to true. */ - showRemoveOption?: boolean; + showActions?: boolean; + /** Handle to open the file picker from the parent. */ + ref?: React.Ref; }; -export default function ImageInput({ +function ImageInput({ model, onSuccess, alt, - showRemoveOption = true, + variant = AvatarVariant.Round, + showActions = true, + ref, ...rest }: Props) { const { t } = useTranslation(); + const uploadRef = React.useRef(null); + + React.useImperativeHandle( + ref, + () => ({ open: () => uploadRef.current?.open() }), + [] + ); + + const handleChange = React.useCallback(() => { + uploadRef.current?.open(); + }, []); + + const handleRemove = React.useCallback(() => { + void onSuccess(null); + }, [onSuccess]); return ( - - + + - + - {model.avatarUrl && showRemoveOption && ( - + {showActions && ( + + + + + + + {model.avatarUrl && ( + + + + + + )} + )} - + ); } +export default observer(ImageInput); + +const Wrapper = styled(Flex)` + width: fit-content; +`; + +const Actions = styled(Flex)` + color: ${s("textSecondary")}; + + button:hover, + button:focus-visible { + color: ${s("text")}; + } +`; + const avatarStyles = ` width: ${AvatarSize.Upload}px; height: ${AvatarSize.Upload}px; `; -const ImageBox = styled(Flex)` +const ImageBox = styled(Flex)<{ $variant: AvatarVariant }>` ${avatarStyles}; position: relative; font-size: 14px; - border-radius: 50%; + border-radius: ${(props) => + props.$variant === AvatarVariant.Round + ? "50%" + : `${AvatarSize.Upload / 8}px`}; box-shadow: 0 0 0 1px ${s("backgroundSecondary")}; background: ${s("background")}; overflow: hidden; diff --git a/app/scenes/Settings/components/ImageUpload.tsx b/app/scenes/Settings/components/ImageUpload.tsx index bc5c1a76d9..b007bb5ec6 100644 --- a/app/scenes/Settings/components/ImageUpload.tsx +++ b/app/scenes/Settings/components/ImageUpload.tsx @@ -26,13 +26,20 @@ export type Props = { children?: React.ReactNode; }; -const ImageUpload: React.FC = ({ +/** Imperative handle exposed by ImageUpload. */ +export interface ImageUploadHandle { + /** Opens the file picker. */ + open: () => void; +} + +const ImageUpload = ({ onSuccess, onError, submitText, borderRadius, children, -}) => { + ref, +}: Props & { ref?: React.Ref }) => { const { dialogs } = useStores(); const { t } = useTranslation(); @@ -110,11 +117,13 @@ const ImageUpload: React.FC = ({ [t, dialogs, handleUpload, handleClose, onError, borderRadius, submitText] ); - const { getRootProps, getInputProps } = useDropzone({ + const { getRootProps, getInputProps, open } = useDropzone({ accept: avatarAccept, onDropAccepted, }); + React.useImperativeHandle(ref, () => ({ open }), [open]); + if (isCropping) { return null; // onDropAccepted would have opened a modal for cropping the image. } diff --git a/app/scenes/Settings/components/SettingRow.tsx b/app/scenes/Settings/components/SettingRow.tsx index bdb3921027..729f9be42c 100644 --- a/app/scenes/Settings/components/SettingRow.tsx +++ b/app/scenes/Settings/components/SettingRow.tsx @@ -28,6 +28,18 @@ const Row = styled(Flex)<{ $border?: boolean; $compact?: boolean }>` border-bottom: 0; } + /* Center switches, unless the text column also holds a field. */ + &:has(> :last-child > [role="switch"]):not( + :has(> :first-child :is(input, textarea)) + ) { + align-items: center; + } + + /* A switch column is only as wide as the switch. */ + &:has(> :last-child > [role="switch"]) > :last-child { + flex: 0 0 auto; + } + ${breakpoint("mobile", "tablet")` &:has([role="switch"]) { gap: 16px; @@ -73,11 +85,10 @@ const Column = styled.div` align-self: flex-end; } - ${breakpoint("tablet")` - > * { - align-self: initial; - } - `} + /* Text fields and selects fill the column. */ + > :has(input:not([type="file"]), textarea, [role="combobox"]) { + align-self: stretch; + } } ${breakpoint("tablet")` diff --git a/app/scenes/Settings/components/SettingsSection.tsx b/app/scenes/Settings/components/SettingsSection.tsx new file mode 100644 index 0000000000..586571f3a8 --- /dev/null +++ b/app/scenes/Settings/components/SettingsSection.tsx @@ -0,0 +1,74 @@ +import { transparentize } from "polished"; +import * as React from "react"; +import styled, { css } from "styled-components"; +import { breakpoint } from "@shared/styles/breakpoint"; +import Text from "~/components/Text"; + +interface Props { + /** The section heading. */ + title: React.ReactNode; + /** Optional text shown below the heading. */ + description?: React.ReactNode; + /** Whether the section holds destructive actions. */ + danger?: boolean; + /** The rows in the section, usually SettingRow components. */ + children: React.ReactNode; +} + +/** + * A titled group of setting rows on a settings screen. + * + * @param props the section props. + * @returns the section element. + */ +export function SettingsSection({ + title, + description, + danger, + children, +}: Props) { + const titleId = React.useId(); + + return ( +
+ {title} + {description && ( + + {description} + + )} + {children} +
+ ); +} + +const Section = styled.section` + margin-top: 32px; + + ${breakpoint("tablet")` + margin-top: 48px; + `} +`; + +const Title = styled.h2` + font-size: 20px; + font-weight: 600; + margin: 0; +`; + +const Description = styled(Text)` + margin: 4px 0 8px; +`; + +const Rows = styled.div<{ $danger?: boolean }>` + ${(props) => + props.$danger && + css` + /* Inset by the shadow width so the shadow aligns with the content. */ + margin: 24px 8px 8px; + padding: 0 16px; + border: 1px solid ${transparentize(0.6, props.theme.danger)}; + border-radius: 8px; + box-shadow: 0 0 0 8px ${transparentize(0.9, props.theme.danger)}; + `} +`; diff --git a/app/scenes/Settings/components/SharesTable.tsx b/app/scenes/Settings/components/SharesTable.tsx index 473e0a5816..bbc7cbbf6e 100644 --- a/app/scenes/Settings/components/SharesTable.tsx +++ b/app/scenes/Settings/components/SharesTable.tsx @@ -1,8 +1,10 @@ +import { format as formatDate } from "date-fns"; import { compact } from "es-toolkit/compat"; import { observer } from "mobx-react"; import * as React from "react"; import { useMemo, useCallback } from "react"; import { useTranslation } from "react-i18next"; +import { dateLocale } from "@shared/utils/date"; import type Share from "~/models/Share"; import Badge from "~/components/Badge"; import { HEADER_HEIGHT } from "~/components/Header"; @@ -11,6 +13,7 @@ import { SortableTable, } from "~/components/SortableTable"; import { type Column as TableColumn } from "~/components/Table"; +import Text from "~/components/Text"; import { UserLabel } from "~/components/UserLabel"; import { ContextMenu } from "~/components/Menu/ContextMenu"; import { ActionContextProvider } from "~/hooks/useActionContext"; @@ -19,6 +22,7 @@ import Time from "~/components/Time"; import ShareMenu from "~/menus/ShareMenu"; import { useFormatNumber } from "~/hooks/useFormatNumber"; import useStores from "~/hooks/useStores"; +import useUserLocale from "~/hooks/useUserLocale"; import ShareSelectionToolbar from "./ShareSelectionToolbar"; const ROW_HEIGHT = 50; @@ -50,6 +54,7 @@ export function SharesTable({ data, canManage, ...rest }: Props) { const { t } = useTranslation(); const formatNumber = useFormatNumber(); const { policies } = useStores(); + const userLocale = useUserLocale(); const hasDomain = data.some((share) => share.domain); const isRowSelectable = useCallback( @@ -115,6 +120,29 @@ export function SharesTable({ data, canManage, ...rest }: Props) { ) : null, width: "2fr", }, + { + type: "data", + id: "expiresAt", + header: t("Expires"), + accessor: (share) => share.expiresAt, + component: (share) => + !share.expiresAt ? ( + {t("No expiry")} + ) : share.isExpired ? ( + + {t("Expired")} + ) : ( + + + + ), + width: "2fr", + }, hasDomain ? { type: "data", @@ -143,7 +171,7 @@ export function SharesTable({ data, canManage, ...rest }: Props) { } : undefined, ]), - [t, hasDomain, canManage, formatNumber] + [t, userLocale, hasDomain, canManage, formatNumber] ); return ( diff --git a/app/stores/AuthStore.ts b/app/stores/AuthStore.ts index b26df6547f..f576ac34b0 100644 --- a/app/stores/AuthStore.ts +++ b/app/stores/AuthStore.ts @@ -130,7 +130,7 @@ export default class AuthStore extends Store { if (this.authenticated) { if (isNil(newData.user)) { void this.logout({ - savePath: false, + savePath: "tab", clearCache: false, revokeToken: false, }); @@ -338,7 +338,8 @@ export default class AuthStore extends Store { * * @param clearCache Whether to clear the IndexedDB databases used for document caching. * @param revokeToken Whether the auth token should attempt to be revoked, this should be - * @param savePath Whether the current path should be saved and returned to after login. + * @param savePath Whether the current path should be saved and returned to after login, + * "tab" saves it for the current tab only. * @param userInitiated Whether the logout was initiated by the user. * disabled with requests from ApiClient to prevent infinite loops. */ @@ -351,13 +352,15 @@ export default class AuthStore extends Store { }: { clearCache?: boolean; revokeToken?: boolean; - savePath?: boolean; + savePath?: boolean | "tab"; userInitiated?: boolean; }) => { // if this logout was forced from an authenticated route then // save the current path so we can go back there once signed in if (savePath) { - setPostLoginPath(window.location.pathname + window.location.search); + setPostLoginPath(window.location.pathname + window.location.search, { + tabOnly: savePath === "tab", + }); } if (revokeToken) { diff --git a/app/stores/DocumentsStore.ts b/app/stores/DocumentsStore.ts index 0fdec64fc5..4d125e909a 100644 --- a/app/stores/DocumentsStore.ts +++ b/app/stores/DocumentsStore.ts @@ -21,7 +21,8 @@ import { subtractDate } from "@shared/utils/date"; import { bytesToHumanReadable } from "@shared/utils/files"; import naturalSort from "@shared/utils/naturalSort"; import type RootStore from "~/stores/RootStore"; -import Store from "~/stores/base/Store"; +import type { PaginatedResponse } from "~/stores/base/Store"; +import Store, { PAGINATION_SYMBOL } from "~/stores/base/Store"; import Document from "~/models/Document"; import env from "~/env"; import type { @@ -510,7 +511,9 @@ export default class DocumentsStore extends Store { }; @action - search = async (options: SearchParams): Promise => { + search = async ( + options: SearchParams + ): Promise> => { const compactedOptions = omitBy(options, (o) => !o); const res = await client.post("/documents.search", { ...compactedOptions, @@ -525,7 +528,7 @@ export default class DocumentsStore extends Store { // store a reference to the document model in the search cache instead // of the original result from the API. - const results: SearchResult[] = compact( + const results: PaginatedResponse = compact( res.data.map((result: SearchResult) => { const document = this.data.get(result.document.id); if (!document) { @@ -539,6 +542,7 @@ export default class DocumentsStore extends Store { }; }) ); + results[PAGINATION_SYMBOL] = res.pagination; return results; }; diff --git a/app/stores/RevisionsStore.ts b/app/stores/RevisionsStore.ts index 9073956727..16a4747aca 100644 --- a/app/stores/RevisionsStore.ts +++ b/app/stores/RevisionsStore.ts @@ -47,19 +47,7 @@ export default class RevisionsStore extends Store { */ fetchLatest = async (documentId: string): Promise => { const id = RevisionHelper.latestId(documentId); - const inflight = this.requests.get(id); - if (inflight) { - return inflight; - } - - const promise = this.requestLatest(documentId); - this.requests.set(id, promise); - - try { - return await promise; - } finally { - this.requests.delete(id); - } + return this.fetches.run(id, () => this.requestLatest(documentId)); }; private async requestLatest(documentId: string): Promise { diff --git a/app/stores/base/Store.ts b/app/stores/base/Store.ts index 5dc46734b2..71774c5e3d 100644 --- a/app/stores/base/Store.ts +++ b/app/stores/base/Store.ts @@ -22,6 +22,7 @@ import { type JSONObject } from "@shared/types"; import type RootStore from "~/stores/RootStore"; import type Policy from "~/models/Policy"; import type ArchivableModel from "~/models/base/ArchivableModel"; +import { KeyedCoalescedFetch } from "~/models/base/CoalescedFetch"; import type Model from "~/models/base/Model"; import { LifecycleManager } from "~/models/decorators/Lifecycle"; import { getInverseRelationsForModelClass } from "~/models/decorators/Relation"; @@ -89,8 +90,8 @@ export default abstract class Store { @observable isLoaded = false; - // oxlint-disable-next-line no-explicit-any - requests: Map> = new Map(); + /** Calls to `Model.loadRelations` that are in flight, keyed by model id. */ + relationFetches = new KeyedCoalescedFetch(); model: ModelClass; @@ -488,25 +489,24 @@ export default abstract class Store { return item; } - if (this.requests.has(id)) { - return this.requests.get(id); - } + return this.fetches.run( + id, + async () => { + runInAction(() => { + this.isFetching = true; + }); - this.isFetching = true; + try { + const res = await client.post(`/${this.apiEndpoint}.info`, { + id, + }); - const promise = new Promise((resolve, reject) => { - client - .post(`/${this.apiEndpoint}.info`, { - id, - }) - .then((res) => - runInAction(() => { + return runInAction(() => { invariant(res?.data, "Data should be available"); this.addPolicies(res.policies); - resolve(this.add(accessor(res))); - }) - ) - .catch((err) => { + return this.add(accessor(res)); + }); + } catch (err) { if ( err instanceof AuthorizationError || err instanceof NotFoundError @@ -514,16 +514,15 @@ export default abstract class Store { this.remove(id); } - reject(err); - }) - .finally(() => { - this.requests.delete(id); - this.isFetching = false; - }); - }); - - this.requests.set(id, promise); - return promise; + throw err; + } finally { + runInAction(() => { + this.isFetching = false; + }); + } + }, + Boolean(options.force) + ); } // Not annotated: subclasses replace this field, and MobX makes an annotated @@ -686,6 +685,9 @@ export default abstract class Store { } } + /** Requests by `fetch` that are in flight, keyed by model id. */ + protected fetches = new KeyedCoalescedFetch(); + /** Results of `fetchAll` calls keyed by their params, see `fetchAllIfNeeded`. */ private fetchAllResults = new Map>(); } diff --git a/app/utils/i18n.test.ts b/app/utils/i18n.test.ts index 14cc5b267f..18a3a02c63 100644 --- a/app/utils/i18n.test.ts +++ b/app/utils/i18n.test.ts @@ -1,5 +1,6 @@ import i18n from "i18next"; import de_DE from "../../shared/i18n/locales/de_DE/translation.json"; +import en_GB from "../../shared/i18n/locales/en_GB/translation.json"; import en_US from "../../shared/i18n/locales/en_US/translation.json"; import pt_PT from "../../shared/i18n/locales/pt_PT/translation.json"; @@ -87,3 +88,27 @@ describe("i18n env is pt-PT", () => { expect(i18n.t("Saving")).toBe("Speichert"); }); }); + +describe("translations without entries that match their key", () => { + beforeAll(async () => { + i18n.addResources( + "en-GB", + "translation", + Object.fromEntries( + Object.entries(en_GB).filter(([key, value]) => key !== value) + ) + ); + await i18n.changeLanguage("en-GB"); + }); + + it("should show the key", () => expect(i18n.t("Saving")).toBe("Saving")); + + it("should keep plurals", () => { + expect(i18n.t("{{ count }} document starred", { count: 1 })).toBe( + "1 document marked with a star" + ); + expect(i18n.t("{{ count }} document starred", { count: 2 })).toBe( + "2 documents marked with a star" + ); + }); +}); diff --git a/app/utils/i18n.ts b/app/utils/i18n.ts index d20fe802a5..a8f2ad5f59 100644 --- a/app/utils/i18n.ts +++ b/app/utils/i18n.ts @@ -42,7 +42,10 @@ export function initI18n(defaultLanguage = "en_US") { useSuspense: false, }, lng, - fallbackLng: lng, + + // Keys are the English strings, and the server omits entries that match + // their key, so a missing entry must show the key. + fallbackLng: false, supportedLngs: languages.map(unicodeCLDRtoBCP47), keySeparator: false, returnNull: false, diff --git a/app/utils/language.test.ts b/app/utils/language.test.ts index aba790488e..f162327780 100644 --- a/app/utils/language.test.ts +++ b/app/utils/language.test.ts @@ -1,4 +1,6 @@ -import { detectLanguage } from "./language"; +import i18n from "i18next"; +import Desktop from "./Desktop"; +import { changeLanguage, detectLanguage } from "./language"; describe("detectLanguage", () => { const mockLanguage = (language: string) => @@ -32,3 +34,33 @@ describe("detectLanguage", () => { expect(detectLanguage()).toBe("zh_TW"); }); }); + +describe("changeLanguage", () => { + const setSpellCheckerLanguages = vi.fn(); + const bridge = Desktop.bridge; + + beforeEach(() => { + setSpellCheckerLanguages.mockClear(); + i18n.addResourceBundle("de-DE", "translation", {}); + Desktop.bridge = { + setSpellCheckerLanguages, + } as unknown as typeof Desktop.bridge; + }); + + afterEach(() => { + Desktop.bridge = bridge; + }); + + it("should set the spellchecker when the language is unchanged", async () => { + await i18n.changeLanguage("de-DE"); + await changeLanguage("de_DE", i18n); + expect(setSpellCheckerLanguages).toHaveBeenCalledWith(["en-US", "de-DE"]); + }); + + it("should keep the current language for an unsupported language", async () => { + await i18n.changeLanguage("de-DE"); + await changeLanguage("ar_EG", i18n); + expect(i18n.languages).toEqual(["de-DE"]); + expect(setSpellCheckerLanguages).not.toHaveBeenCalled(); + }); +}); diff --git a/app/utils/language.ts b/app/utils/language.ts index b5418108d3..e6417d6ad5 100644 --- a/app/utils/language.ts +++ b/app/utils/language.ts @@ -1,4 +1,5 @@ import type { i18n } from "i18next"; +import { languages } from "@shared/i18n"; import type { locales } from "@shared/utils/date"; import { unicodeCLDRtoBCP47 } from "@shared/utils/date"; import { isRTLLanguage } from "@shared/utils/rtl"; @@ -27,7 +28,7 @@ export function detectLanguage() { /** * Changes the language of the app, and updates the spellchecker language - * if running in the desktop shell. + * if running in the desktop shell. An unsupported language is ignored. * * @param locale The locale to change to, in CLDR format (en_US) * @param instance The i18n instance to use @@ -36,16 +37,25 @@ export async function changeLanguage( locale: string | null | undefined, instance: i18n ) { + const language = languages.find((value) => value === locale); + + // An unsupported language keeps the current language. + if (!language) { + return; + } + // Languages are stored in en_US format in the database, however the // frontend translation framework (i18next) expects en-US - const localeBCP = locale ? unicodeCLDRtoBCP47(locale) : undefined; + const localeBCP = unicodeCLDRtoBCP47(language); - if (localeBCP && instance.languages?.[0] !== localeBCP) { + if (instance.languages?.[0] !== localeBCP) { await instance.changeLanguage(localeBCP); - await Desktop.bridge?.setSpellCheckerLanguages(["en-US", localeBCP]); } + // i18n can start in this locale, so set the spellchecker in all cases. + await Desktop.bridge?.setSpellCheckerLanguages(["en-US", localeBCP]); + if (typeof document !== "undefined") { - document.documentElement.dir = isRTLLanguage(locale) ? "rtl" : "ltr"; + document.documentElement.dir = isRTLLanguage(language) ? "rtl" : "ltr"; } } diff --git a/docker-compose.yml b/docker-compose.yml index 1974f02c82..2eb671108d 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -2,12 +2,14 @@ services: redis: image: redis ports: - - "127.0.0.1:6379:6379" + # Set REDIS_PORT in .env to run alongside another checkout. + - "127.0.0.1:${REDIS_PORT:-6379}:6379" user: "redis:redis" postgres: image: postgres ports: - - "127.0.0.1:5432:5432" + # Set POSTGRES_PORT in .env to run alongside another checkout. + - "127.0.0.1:${POSTGRES_PORT:-5432}:5432" environment: POSTGRES_USER: user POSTGRES_PASSWORD: pass diff --git a/package.json b/package.json index 60b1e6f727..a2db6e8d99 100644 --- a/package.json +++ b/package.json @@ -42,7 +42,7 @@ "url": "https://github.com/sponsors/outline" }, "engines": { - "node": ">=22.23.4 <23 || >=24.22.1 <25 || >=26.12.1 <27" + "node": ">=22.23.5 <23 || >=24.22.3 <25 || >=26.13.1 <27" }, "repository": { "type": "git", @@ -52,12 +52,12 @@ "> 0.25%, not dead" ], "dependencies": { - "@aws-sdk/client-s3": "^3.1159.0", - "@aws-sdk/cloudfront-signer": "^3.1157.0", - "@aws-sdk/lib-storage": "^3.1159.0", - "@aws-sdk/s3-presigned-post": "^3.1159.0", - "@aws-sdk/s3-request-presigner": "^3.1159.0", - "@aws-sdk/signature-v4-crt": "^3.1159.0", + "@aws-sdk/client-s3": "^3.1162.0", + "@aws-sdk/cloudfront-signer": "^3.1161.0", + "@aws-sdk/lib-storage": "^3.1162.0", + "@aws-sdk/s3-presigned-post": "^3.1162.0", + "@aws-sdk/s3-request-presigner": "^3.1162.0", + "@aws-sdk/signature-v4-crt": "^3.1162.0", "@benrbray/prosemirror-math": "^0.2.2", "@bull-board/api": "^6.21.3", "@bull-board/koa": "^6.21.3", @@ -70,13 +70,12 @@ "@emoji-mart/data": "^1.2.1", "@emotion/is-prop-valid": "^1.4.0", "@fast-csv/parse": "^5.0.8", - "@firecrawl/pdf-inspector": "^1.11.2", + "@firecrawl/pdf-inspector": "^1.25.2", "@fortawesome/fontawesome-svg-core": "^7.3.1", "@fortawesome/free-brands-svg-icons": "^7.3.1", "@fortawesome/free-solid-svg-icons": "^7.3.1", "@fortawesome/react-fontawesome": "^3.5.0", "@getoutline/react-roving-tabindex": "^3.2.4", - "@gitbeaker/rest": "^43.8.0", "@hocuspocus/extension-redis": "1.1.3", "@hocuspocus/extension-throttle": "1.1.3", "@hocuspocus/provider": "1.1.3", @@ -113,7 +112,7 @@ "@simplewebauthn/server": "^13.3.3", "@socket.io/redis-adapter": "^8.3.0", "@tanstack/react-table": "^8.21.3", - "@tanstack/react-virtual": "^3.14.23", + "@tanstack/react-virtual": "^3.14.26", "@types/mailparser": "^3.9.0", "@vitejs/plugin-react": "^6.1.2", "async-sema": "^3.1.1", @@ -151,8 +150,8 @@ "http-proxy-agent": "^7.0.2", "https-proxy-agent": "^7.0.6", "i18next": "^22.5.1", - "i18next-fs-backend": "^2.6.9", - "i18next-http-backend": "^4.0.9", + "i18next-fs-backend": "^2.6.10", + "i18next-http-backend": "^4.0.10", "invariant": "^2.2.4", "ioredis": "^5.11.1", "ipaddr.js": "^2.5.0", @@ -183,7 +182,7 @@ "mobx-utils": "^6.1.1", "natural-sort": "^1.0.0", "node-fetch": "2.7.0", - "nodemailer": "^10.0.9", + "nodemailer": "^10.3.1", "octokit": "^5.0.5", "outline-icons": "^4.6.0", "pako": "^3.0.2", @@ -217,20 +216,20 @@ "proxy-from-env": "^1.1.0", "query-string": "^9.5.0", "rate-limiter-flexible": "^11.2.3", - "react": "^19.3.0", + "react": "^19.3.1", "react-avatar-editor": "^15.1.0", - "react-colorful": "^5.8.0", + "react-colorful": "^5.8.1", "react-day-picker": "^8.10.2", - "react-dom": "^19.3.0", + "react-dom": "^19.3.1", "react-dropzone": "^20.1.4", "react-hook-form": "^7.85.0", "react-i18next": "^12.3.1", - "react-is": "^19.3.0", + "react-is": "^19.3.1", "react-merge-refs": "^3.0.2", "react-remove-scroll": "^2.7.2", "react-router-dom": "^5.3.4", "react-use-measure": "^2.1.7", - "react-window": "^2.3.4", + "react-window": "^2.5.3", "react-zoom-pan-pinch": "^3.7.0", "reflect-metadata": "^0.2.2", "refractor": "^5.0.0", @@ -272,7 +271,7 @@ "@faker-js/faker": "^10.6.0", "@relative-ci/agent": "^4.3.1", "@swc/cli": "^0.8.2", - "@swc/core": "^1.16.20", + "@swc/core": "^1.16.22", "@types/cookie": "0.6.0", "@types/diff": "^5.0.9", "@types/escape-html": "^1.0.4", @@ -321,7 +320,7 @@ "browserslist-to-esbuild": "^1.2.0", "concurrently": "^8.2.2", "discord-api-types": "^0.38.48", - "fake-indexeddb": "^6.2.6", + "fake-indexeddb": "^6.2.8", "husky": "^9.1.7", "i18next-parser": "^9.4.0", "ioredis-mock": "^8.13.1", @@ -329,7 +328,7 @@ "msw": "^2.15.0", "oxfmt": "0.73.0", "oxlint": "1.90.0", - "oxlint-tsgolint": "7.0.2005", + "oxlint-tsgolint": "7.0.2006", "react-refresh": "^0.19.0", "rimraf": "^6.1.3", "rollup-plugin-webpack-stats": "^3.1.3", @@ -354,6 +353,6 @@ "deepmerge-ts@npm:^7.1.5": "^8.0.1", "i18next-parser/i18next": "^23.16.8" }, - "version": "1.12.0", + "version": "1.13.0", "packageManager": "yarn@4.18.0" } diff --git a/plugins/azure/server/auth/azure.ts b/plugins/azure/server/auth/azure.ts index 40b6394f5d..50c89c26ea 100644 --- a/plugins/azure/server/auth/azure.ts +++ b/plugins/azure/server/auth/azure.ts @@ -23,10 +23,7 @@ import { import config from "../../plugin.json"; import env from "../env"; import { createContext } from "@server/context"; -import fetch from "@server/utils/fetch"; import UploadUserAvatarTask from "@server/queues/tasks/UploadUserAvatarTask"; -import AttachmentHelper from "@server/models/helpers/AttachmentHelper"; -import { AttachmentPreset } from "@shared/types"; import { UserFlag } from "@server/models/User"; import { getEmailVerified } from "./getEmailVerified"; import { MicrosoftGraphError } from "../errors"; @@ -34,45 +31,6 @@ import { MicrosoftGraphError } from "../errors"; const router = new Router(); const scopes: string[] = []; -/** - * Loads the user's profile photo from the Microsoft Graph API and encodes it as - * a data URL. Entra ID does not emit a `picture` claim in the ID token, so the - * photo is only available via Graph. Requires no additional permissions beyond - * the delegated `User.Read` already used to load the profile. - * - * @param accessToken The delegated access token for the Microsoft Graph API. - * @returns A base64 encoded data URL for the photo, or undefined if not set. - */ -async function requestPhoto(accessToken: string): Promise { - try { - const response = await fetch( - "https://graph.microsoft.com/v1.0/me/photo/$value", - { - method: "GET", - allowPrivateIPAddress: true, - // Cap how long we'll wait and how many bytes we'll buffer so a slow or - // oversized response can never stall the login callback. - timeout: 10000, - size: AttachmentHelper.presetToMaxUploadSize(AttachmentPreset.Avatar), - headers: { - Authorization: `Bearer ${accessToken}`, - }, - } - ); - - // A missing photo returns 404, which we can safely ignore. - if (!response.ok) { - return undefined; - } - - const contentType = response.headers.get("content-type") ?? "image/jpeg"; - const buffer = await response.buffer(); - return `data:${contentType};base64,${buffer.toString("base64")}`; - } catch (_err) { - return undefined; - } -} - if (env.AZURE_CLIENT_ID && env.AZURE_CLIENT_SECRET) { const strategy = new AzureStrategy( { @@ -194,22 +152,18 @@ if (env.AZURE_CLIENT_ID && env.AZURE_CLIENT_SECRET) { scopes, }, }); - // Entra ID does not include the photo in the token, so it must be - // fetched separately from Graph. To avoid the extra round-trip on every - // sign-in we only do so when the user has no avatar yet and hasn't set - // one manually — this also backfills accounts created before avatar - // syncing was supported, and stops once an avatar is stored. + // Entra ID does not include the photo in the token, so it is loaded + // from Graph in the background when the user has no avatar yet. if ( + result.authentication && !result.user.avatarUrl && !result.user.getFlag(UserFlag.AvatarUpdated) ) { - const avatarUrl = await requestPhoto(accessToken); - if (avatarUrl) { - await new UploadUserAvatarTask().schedule({ - userId: result.user.id, - avatarUrl, - }); - } + await new UploadUserAvatarTask().schedule({ + userId: result.user.id, + avatarUrl: "https://graph.microsoft.com/v1.0/me/photo/$value", + userAuthenticationId: result.authentication.id, + }); } return done(null, result.user, { ...result, client }); diff --git a/plugins/github/server/GitHubIssueProvider.ts b/plugins/github/server/GitHubIssueProvider.ts index bc1f86d58f..9a6b9209cf 100644 --- a/plugins/github/server/GitHubIssueProvider.ts +++ b/plugins/github/server/GitHubIssueProvider.ts @@ -131,7 +131,7 @@ export class GitHubIssueProvider extends BaseIssueProvider { required: true, }, transaction, - lock: transaction.LOCK.UPDATE, + lock: { level: transaction.LOCK.NO_KEY_UPDATE, of: Integration }, }); const authentication = integration.authentication; @@ -172,7 +172,7 @@ export class GitHubIssueProvider extends BaseIssueProvider { "settings.github.installation.id": installationId, }, transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, }); if (!integration) { @@ -241,7 +241,7 @@ export class GitHubIssueProvider extends BaseIssueProvider { "settings.github.installation.id": installationId, }, transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, }); if (!integration) { diff --git a/plugins/gitlab/server/GitLabIssueProvider.ts b/plugins/gitlab/server/GitLabIssueProvider.ts index f5225eb626..26464c8c01 100644 --- a/plugins/gitlab/server/GitLabIssueProvider.ts +++ b/plugins/gitlab/server/GitLabIssueProvider.ts @@ -142,7 +142,7 @@ export class GitLabIssueProvider extends BaseIssueProvider { const integration = (await Integration.findOne({ where, replacements: { jsonCondition }, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, transaction, })) as Integration; @@ -213,7 +213,7 @@ export class GitLabIssueProvider extends BaseIssueProvider { const integrations = (await Integration.findAll({ where: whereCondition, replacements, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, transaction, })) as Integration[]; @@ -257,7 +257,7 @@ export class GitLabIssueProvider extends BaseIssueProvider { replacements: { projectJson: JSON.stringify([{ id: String(payload.project_id) }]), }, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, transaction, }); @@ -303,7 +303,7 @@ export class GitLabIssueProvider extends BaseIssueProvider { ...(teamId ? { teamId } : {}), "settings.gitlab.installation.account.id": payload.user_id, }, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, transaction, })) as Integration; @@ -354,7 +354,7 @@ export class GitLabIssueProvider extends BaseIssueProvider { replacements: { projectJson: JSON.stringify([{ id: String(payload.project_id) }]), }, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, transaction, }); diff --git a/plugins/gitlab/server/api/gitlab.ts b/plugins/gitlab/server/api/gitlab.ts index 79043a6fe2..bb36262043 100644 --- a/plugins/gitlab/server/api/gitlab.ts +++ b/plugins/gitlab/server/api/gitlab.ts @@ -269,7 +269,7 @@ router.get( account: { id: userInfo.id, name: userInfo.username, - avatarUrl: userInfo.avatar_url, + avatarUrl: userInfo.avatar_url ?? "", }, }, }, diff --git a/plugins/gitlab/server/gitlab.test.ts b/plugins/gitlab/server/gitlab.test.ts new file mode 100644 index 0000000000..d0dc83a937 --- /dev/null +++ b/plugins/gitlab/server/gitlab.test.ts @@ -0,0 +1,238 @@ +import { randomUUID } from "node:crypto"; +import { addHours, subHours } from "date-fns"; +import { http, HttpResponse } from "msw"; +import { IntegrationService, IntegrationType } from "@shared/types"; +import { Integration, IntegrationAuthentication } from "@server/models"; +import { buildUser } from "@server/test/factories"; +import { server } from "@server/test/msw"; +import { GitLab } from "./gitlab"; + +const author = { id: 7, username: "octo", avatar_url: "https://a.test/a.png" }; + +const buildBaseUrl = () => `https://${randomUUID()}.example.com`; + +async function buildGitLabIntegration({ + teamId, + userId, + url, + expiresAt = addHours(new Date(), 1), +}: { + teamId: string; + userId: string; + url: string; + expiresAt?: Date; +}) { + const authentication = await IntegrationAuthentication.create({ + service: IntegrationService.GitLab, + userId, + teamId, + clientId: "client-id", + clientSecret: "client-secret", + token: "token", + refreshToken: "refresh", + expiresAt, + }); + + const integration = await Integration.create({ + service: IntegrationService.GitLab, + type: IntegrationType.Embed, + userId, + teamId, + authenticationId: authentication.id, + settings: { gitlab: { url } }, + }); + return { integration, authentication }; +} + +describe("GitLab", () => { + describe("getIssue", () => { + it("should request the issue with an encoded project path", async () => { + const customUrl = buildBaseUrl(); + let requestUrl: URL | undefined; + let authorization: string | null = null; + server.use( + http.get( + `${customUrl}/api/v4/projects/:project/issues`, + ({ request }) => { + requestUrl = new URL(request.url); + authorization = request.headers.get("authorization"); + return HttpResponse.json([ + { + iid: 12, + title: "Fix it", + description: "Details", + web_url: `${customUrl}/group/repo/-/issues/12`, + state: "opened", + author, + labels: [{ name: "bug", color: "#ff0000" }], + created_at: "2026-01-01T00:00:00Z", + }, + ]); + } + ) + ); + + const issue = await GitLab.getIssue({ + accessToken: "token", + customUrl, + path: "group/repo", + id: 12, + }); + + expect(issue.title).toEqual("Fix it"); + expect(requestUrl?.pathname).toEqual( + "/api/v4/projects/group%2Frepo/issues" + ); + expect(requestUrl?.searchParams.get("iids[]")).toEqual("12"); + expect(authorization).toEqual("Bearer token"); + }); + }); + + describe("getProjects", () => { + it("should follow pagination", async () => { + const user = await buildUser(); + const pages: (string | null)[] = []; + server.use( + http.get("https://gitlab.com/api/v4/projects", ({ request }) => { + const page = new URL(request.url).searchParams.get("page"); + pages.push(page); + return HttpResponse.json( + [ + { + id: Number(page), + name: `project-${page}`, + namespace: { id: 1, full_path: "group" }, + }, + ], + { headers: { "x-next-page": page === "1" ? "2" : "" } } + ); + }) + ); + + const projects = await GitLab.getProjects({ + accessToken: "token", + teamId: user.teamId, + }); + + expect(pages).toEqual(["1", "2"]); + expect(projects.map((project) => project.name)).toEqual([ + "project-1", + "project-2", + ]); + }); + }); + + describe("unfurl", () => { + it("should refresh an expired token and use the new token", async () => { + const user = await buildUser(); + const customUrl = buildBaseUrl(); + const { authentication } = await buildGitLabIntegration({ + teamId: user.teamId, + userId: user.id, + url: customUrl, + expiresAt: subHours(new Date(), 1), + }); + let tokenRequest: Record | undefined; + let authorization: string | null = null; + server.use( + http.post(`${customUrl}/oauth/token`, async ({ request }) => { + tokenRequest = (await request.json()) as Record; + return HttpResponse.json({ + access_token: "new-token", + token_type: "Bearer", + expires_in: 7200, + refresh_token: "new-refresh", + scope: "read_api read_user", + created_at: 0, + }); + }), + http.get( + `${customUrl}/api/v4/projects/:project/merge_requests/5`, + ({ request }) => { + authorization = request.headers.get("authorization"); + return HttpResponse.json({ + iid: 5, + title: "Change", + web_url: `${customUrl}/group/repo/-/merge_requests/5`, + state: "opened", + author, + created_at: "2026-01-01T00:00:00Z", + }); + } + ) + ); + + const result = await GitLab.unfurl( + `${customUrl}/group/repo/-/merge_requests/5`, + user + ); + + expect(result).toMatchObject({ title: "Change" }); + expect(tokenRequest).toMatchObject({ + grant_type: "refresh_token", + refresh_token: "refresh", + client_id: "client-id", + client_secret: "client-secret", + }); + expect(authorization).toEqual("Bearer new-token"); + + await authentication.reload(); + expect(authentication.token).toEqual("new-token"); + expect(authentication.refreshToken).toEqual("new-refresh"); + }); + + it("should unfurl a project without progress when statistics fail", async () => { + const user = await buildUser(); + const customUrl = buildBaseUrl(); + await buildGitLabIntegration({ + teamId: user.teamId, + userId: user.id, + url: customUrl, + }); + server.use( + http.get(`${customUrl}/api/v4/projects/:project`, () => + HttpResponse.json({ + id: 1, + name: "repo", + web_url: `${customUrl}/group/repo`, + visibility: "public", + created_at: "2026-01-01T00:00:00Z", + }) + ), + http.get( + `${customUrl}/api/v4/projects/:project/issues_statistics`, + () => HttpResponse.json({}, { status: 500 }) + ) + ); + + const result = await GitLab.unfurl(`${customUrl}/group/repo`, user); + + expect(result).toMatchObject({ name: "repo", progress: undefined }); + }); + + it("should not return the response body of a failed request", async () => { + const user = await buildUser(); + const customUrl = buildBaseUrl(); + await buildGitLabIntegration({ + teamId: user.teamId, + userId: user.id, + url: customUrl, + }); + server.use( + http.get(`${customUrl}/api/v4/projects/:project/merge_requests/5`, () => + HttpResponse.json({ message: "secret" }, { status: 500 }) + ) + ); + + const result = await GitLab.unfurl( + `${customUrl}/group/repo/-/merge_requests/5`, + user + ); + + expect(result).toEqual({ + error: + "Error while requesting /projects/group%2Frepo/merge_requests/5 from GitLab; status: 500", + }); + }); + }); +}); diff --git a/plugins/gitlab/server/gitlab.ts b/plugins/gitlab/server/gitlab.ts index 63edcaac72..97e075408e 100644 --- a/plugins/gitlab/server/gitlab.ts +++ b/plugins/gitlab/server/gitlab.ts @@ -1,12 +1,3 @@ -import { Gitlab } from "@gitbeaker/rest"; -import type { - EpicSchema, - IssueSchemaWithExpandedLabels, - MergeRequestSchema, - ProjectSchema, - SimpleLabelSchema, - StatisticsSchema, -} from "@gitbeaker/rest"; import z from "zod"; import { type IntegrationType, @@ -14,6 +5,7 @@ import { UnfurlResourceType, } from "@shared/types"; import { toError, errToString } from "@shared/utils/error"; +import { Second } from "@shared/utils/time"; import Logger from "@server/logging/Logger"; import type { User } from "@server/models"; import { Integration, IntegrationAuthentication } from "@server/models"; @@ -22,8 +14,7 @@ import type { UnfurlProject, UnfurlSignature, } from "@server/types"; -import fetch from "@server/utils/fetch"; -import { validateUrlNotPrivate } from "@server/utils/url"; +import fetch, { type Headers } from "@server/utils/fetch"; import { GitLabUtils } from "../shared/GitLabUtils"; import env from "./env"; @@ -36,10 +27,97 @@ const AccessTokenResponseSchema = z.object({ created_at: z.number(), }); -export class GitLab { - private static clientSecret = env.GITLAB_CLIENT_SECRET; - private static clientId = env.GITLAB_CLIENT_ID; +const UserSchema = z.object({ + id: z.number(), + username: z.string(), + avatar_url: z.string().nullish(), +}); +const LabelSchema = z.object({ + name: z.string(), + color: z.string(), +}); + +const IssueSchema = z.object({ + iid: z.number(), + title: z.string(), + description: z.string().nullish(), + web_url: z.string(), + state: z.string(), + author: UserSchema.nullish(), + labels: z.array(LabelSchema), + created_at: z.string(), +}); + +// Epics are returned without label color details. +const EpicSchema = IssueSchema.extend({ + labels: z.array(z.string()), +}); + +const MergeRequestSchema = z.object({ + iid: z.number(), + title: z.string(), + description: z.string().nullish(), + web_url: z.string(), + state: z.string(), + author: UserSchema, + draft: z.boolean().nullish(), + merged_at: z.string().nullish(), + created_at: z.string(), +}); + +const NamespaceSchema = z.object({ + id: z.number(), + full_path: z.string(), +}); + +const SimpleProjectSchema = z.object({ + id: z.number(), + name: z.string(), + namespace: NamespaceSchema, +}); + +const ProjectSchema = z.object({ + id: z.number(), + name: z.string(), + description: z.string().nullish(), + web_url: z.string(), + avatar_url: z.string().nullish(), + visibility: z.string().nullish(), + owner: z + .object({ name: z.string(), avatar_url: z.string().nullish() }) + .nullish(), + topics: z.array(z.string()).nullish(), + created_at: z.string(), +}); + +const IssueStatisticsSchema = z.object({ + statistics: z.object({ + counts: z.object({ + opened: z.number(), + closed: z.number(), + }), + }), +}); + +type Issue = z.infer; +type Epic = z.infer; +type MergeRequest = z.infer; +type SimpleProject = z.infer; +type Project = z.infer; +type IssueStatistics = z.infer; + +interface RequestParams { + accessToken: string; + customUrl?: string; +} + +interface ResourceParams extends RequestParams { + path: string; + id: number; +} + +export class GitLab { /** * Fetches the custom GitLab URL for a team from the first matching * integration, falling back to the default. @@ -58,93 +136,90 @@ export class GitLab { return url || GitLabUtils.defaultGitlabUrl; } - /** - * Creates a Gitbeaker client instance. - * - * @param accessToken - The access token for authentication. - * @param customUrl - Optional custom GitLab URL from integration settings. - * @returns A configured Gitbeaker client. - */ - public static async createClient(accessToken: string, customUrl?: string) { - const host = customUrl || GitLabUtils.defaultGitlabUrl; - - // Validate the URL to prevent SSRF as GitLab instance does not use our - // fetch wrapper which has built-in SSRF protection. - await validateUrlNotPrivate(host); - - return new Gitlab({ - host, - oauthToken: accessToken, - }); - } - /** * Fetches an issue from a GitLab project. * - * @param accessToken - The access token for authentication. - * @param projectPath - The project path (owner/repo). - * @param issueIid - The issue IID (internal ID within the project). - * @param customUrl - Optional custom GitLab URL from integration settings. + * @param params.accessToken - The access token for authentication. + * @param params.customUrl - Optional custom GitLab URL from integration settings. + * @param params.path - The project path (owner/repo). + * @param params.id - The issue IID (internal ID within the project). * @returns The issue data. + * @throws If the issue does not exist. */ - public static async getIssue( - accessToken: string, - projectPath: string, - issueIid: number, - customUrl?: string - ) { - const client = await this.createClient(accessToken, customUrl); - - const issues = await client.Issues.all({ - projectId: projectPath, - iids: [issueIid], - withLabelsDetails: true, + public static async getIssue({ path, id, ...params }: ResourceParams) { + const { data } = await this.request({ + ...params, + path: `/projects/${encodeURIComponent(path)}/issues?iids[]=${id}&with_labels_details=true`, + schema: z.array(IssueSchema), }); - if (!issues || issues.length === 0) { - throw new Error(`Issue ${issueIid} not found in project ${projectPath}`); + if (data.length === 0) { + throw new Error(`Issue ${id} not found in project ${path}`); } - return issues[0]; + return data[0]; } /** * Fetches an epic from a GitLab group. * - * @param accessToken - The access token for authentication. - * @param groupPath - The full path of the group. - * @param epicIid - The epic IID (internal ID within the group). - * @param customUrl - Optional custom GitLab URL from integration settings. + * @param params.accessToken - The access token for authentication. + * @param params.customUrl - Optional custom GitLab URL from integration settings. + * @param params.path - The full path of the group. + * @param params.id - The epic IID (internal ID within the group). * @returns The epic data. */ - public static async getEpic( - accessToken: string, - groupPath: string, - epicIid: number, - customUrl?: string - ) { - const client = await this.createClient(accessToken, customUrl); - return client.Epics.show(groupPath, epicIid); + public static async getEpic({ path, id, ...params }: ResourceParams) { + const { data } = await this.request({ + ...params, + path: `/groups/${encodeURIComponent(path)}/epics/${id}`, + schema: EpicSchema, + }); + return data; } /** * Fetches a merge request from a GitLab project. * - * @param accessToken - The access token for authentication. - * @param projectPath - The project path (owner/repo). - * @param mrIid - The merge request IID (internal ID within the project). - * @param customUrl - Optional custom GitLab URL from integration settings. + * @param params.accessToken - The access token for authentication. + * @param params.customUrl - Optional custom GitLab URL from integration settings. + * @param params.path - The project path (owner/repo). + * @param params.id - The merge request IID (internal ID within the project). * @returns The merge request data. */ - public static async getMergeRequest( - accessToken: string, - projectPath: string, - mrIid: number, - customUrl?: string - ) { - const client = await this.createClient(accessToken, customUrl); - const mr = await client.MergeRequests.show(projectPath, mrIid); - return mr; + public static async getMergeRequest({ path, id, ...params }: ResourceParams) { + const { data } = await this.request({ + ...params, + path: `/projects/${encodeURIComponent(path)}/merge_requests/${id}`, + schema: MergeRequestSchema, + }); + return data; + } + + /** + * Fetches a GitLab project and its issue statistics. + * + * @param params.accessToken - The access token for authentication. + * @param params.customUrl - Optional custom GitLab URL from integration settings. + * @param params.path - The project path (owner/repo). + * @returns The project data and its issue statistics, if available. + */ + public static async getProject({ + path, + ...params + }: RequestParams & { path: string }) { + const projectPath = `/projects/${encodeURIComponent(path)}`; + const [project, issueStats] = await Promise.all([ + this.request({ ...params, path: projectPath, schema: ProjectSchema }), + // Statistics can be slow for projects with many issues, so they are optional. + this.request({ + ...params, + path: `${projectPath}/issues_statistics`, + schema: IssueStatisticsSchema, + }).catch(() => undefined), + ]); + + return { project: project.data, issueStats: issueStats?.data }; } /** @@ -154,26 +229,21 @@ export class GitLab { * @param params.customUrl - Optional custom GitLab URL. Falls back to default. * @returns User information including the resolved URL. */ - public static async getCurrentUser({ - accessToken, - customUrl, - }: { - accessToken: string; - customUrl?: string; - }) { - const url = customUrl || GitLabUtils.defaultGitlabUrl; - const client = await this.createClient(accessToken, url); - - const userData = await client.Users.showCurrentUser({ - showExpanded: false, + public static async getCurrentUser(params: RequestParams) { + const url = params.customUrl || GitLabUtils.defaultGitlabUrl; + const { data } = await this.request({ + ...params, + path: "/user", + schema: UserSchema, }); - return { ...userData, url }; + return { ...data, url }; } /** - * Fetches projects accessible to the user. + * Fetches projects that the user can maintain. * - * @param accessToken - Access token for authentication. + * @param params.accessToken - Access token for authentication. + * @param params.teamId - The team ID used to find the GitLab URL. * @returns Array of projects. */ public static async getProjects({ @@ -184,13 +254,22 @@ export class GitLab { teamId: string; }) { const customUrl = await this.getGitLabUrl(teamId); - const client = await this.createClient(accessToken, customUrl); + const projects: SimpleProject[] = []; + let page: string | null = "1"; + + for (let i = 0; i < this.maxPages && page; i++) { + const res: { data: SimpleProject[]; headers: Headers } = + await this.request({ + accessToken, + customUrl, + // At least Maintainer access to reduce the sheer volume of projects. + path: `/projects?simple=true&min_access_level=40&per_page=100&page=${page}`, + schema: z.array(SimpleProjectSchema), + }); + projects.push(...res.data); + page = res.headers.get("x-next-page"); + } - const projects = await client.Projects.all({ - simple: true, - perPage: 100, - minAccessLevel: 40, // At least Maintainer access to reduce the sheer volume of projects - }); return projects; } @@ -250,7 +329,7 @@ export class GitLab { try { const customUrl = matchedIntegration.settings?.gitlab?.url; const { authentication } = matchedIntegration; - const token = await authentication.refreshTokenIfNeeded( + const accessToken = await authentication.refreshTokenIfNeeded( async (refreshToken: string) => GitLab.refreshToken({ refreshToken, @@ -265,41 +344,41 @@ export class GitLab { resource.type === UnfurlResourceType.Issue && resource.scope === "group" ) { - const epic = await this.getEpic( - token, - resource.owner, - resource.id, - customUrl - ); + const epic = await this.getEpic({ + accessToken, + customUrl, + path: resource.owner, + id: resource.id, + }); return this.transformIssue(epic); } - const projectPath = `${resource.owner}/${resource.repo}`; + const path = `${resource.owner}/${resource.repo}`; if (resource.type === UnfurlResourceType.Issue) { - const issue = await this.getIssue( - token, - projectPath, - resource.id, - customUrl - ); + const issue = await this.getIssue({ + accessToken, + customUrl, + path, + id: resource.id, + }); return this.transformIssue(issue); } else if (resource.type === UnfurlResourceType.PR) { - const mr = await this.getMergeRequest( - token, - projectPath, - resource.id, - customUrl - ); + const mr = await this.getMergeRequest({ + accessToken, + customUrl, + path, + id: resource.id, + }); return this.transformMR(mr); } else if (resource.type === UnfurlResourceType.Project) { - const client = await this.createClient(token, customUrl); - const [project, issueStats] = await Promise.all([ - client.Projects.show(projectPath), - client.IssuesStatistics.all({ projectId: projectPath }), - ]); + const { project, issueStats } = await this.getProject({ + accessToken, + customUrl, + path, + }); return this.transformProject(project, issueStats); } @@ -321,7 +400,7 @@ export class GitLab { * @param params.clientSecret - Optional custom client secret (falls back to env var). * @returns The parsed access token response. */ - public static oauthAccess = async ({ + public static async oauthAccess({ code, customUrl, clientId, @@ -331,30 +410,61 @@ export class GitLab { customUrl?: string; clientId?: string; clientSecret?: string; - }) => { - const url = customUrl || GitLabUtils.defaultGitlabUrl; - const res = await fetch(GitLabUtils.getOauthUrl(url) + "/token", { - method: "POST", + }) { + return this.requestToken(customUrl, { + code: code ?? "", + client_id: clientId || this.clientId || "", + client_secret: clientSecret || this.clientSecret || "", + grant_type: "authorization_code", + redirect_uri: GitLabUtils.callbackUrl(), + }); + } + + /** The time to wait for a response from a GitLab instance. */ + private static timeout = 10 * Second.ms; + + /** The maximum number of pages to fetch from a paginated endpoint. */ + private static maxPages = 10; + + private static clientSecret = env.GITLAB_CLIENT_SECRET; + + private static clientId = env.GITLAB_CLIENT_ID; + + /** + * Makes an authenticated GET request to the GitLab API. + * + * @param params.accessToken - The access token for authentication. + * @param params.customUrl - Optional custom GitLab URL from integration settings. + * @param params.path - The API path, starting with a slash. + * @param params.schema - The schema to parse the response body with. + * @returns The parsed body and the response headers. + * @throws If the response status is not successful. + */ + private static async request({ + accessToken, + customUrl, + path, + schema, + }: RequestParams & { path: string; schema: T }) { + const baseUrl = customUrl || GitLabUtils.defaultGitlabUrl; + const res = await fetch(`${baseUrl}/api/v4${path}`, { + timeout: this.timeout, headers: { - "Content-Type": "application/json", + Accept: "application/json", + Authorization: `Bearer ${accessToken}`, }, - body: JSON.stringify({ - code, - client_id: clientId || this.clientId, - client_secret: clientSecret || this.clientSecret, - grant_type: "authorization_code", - redirect_uri: GitLabUtils.callbackUrl(), - }), }); - if (res.status !== 200) { + if (!res.ok) { throw new Error( - `Error while validating oauth code from GitLab; status: ${res.status}` + `Error while requesting ${path} from GitLab; status: ${res.status}` ); } - return AccessTokenResponseSchema.parse(await res.json()); - }; + // Read the body at once, a body left unread while awaiting other requests + // can be closed early. + return { data: schema.parse(await res.json()), headers: res.headers }; + } private static async refreshToken({ refreshToken, @@ -367,39 +477,40 @@ export class GitLab { clientId?: string; clientSecret?: string; }) { - const queryParams = new URLSearchParams({ - client_id: clientId || this.clientId!, - client_secret: clientSecret || this.clientSecret!, - grant_type: "refresh_token", + return this.requestToken(customUrl, { refresh_token: refreshToken, + client_id: clientId || this.clientId || "", + client_secret: clientSecret || this.clientSecret || "", + grant_type: "refresh_token", redirect_uri: GitLabUtils.callbackUrl(), }); + } + + private static async requestToken( + customUrl: string | undefined, + body: Record + ) { + const res = await fetch(`${GitLabUtils.getOauthUrl(customUrl)}/token`, { + method: "POST", + timeout: this.timeout, + headers: { + "Content-Type": "application/json", + Accept: "application/json", + }, + body: JSON.stringify(body), + }); - const res = await fetch( - `${GitLabUtils.getOauthUrl(customUrl)}/token?${queryParams.toString()}`, - { - method: "POST", - headers: { - "Content-Type": "application/x-www-form-urlencoded", - Accept: "application/json", - }, - } - ); - const resJson = await res.json(); if (res.status !== 200) { - Logger.error("failed to refresh access token from GitLab", resJson); throw new Error( - `Error while refreshing access token from GitLab; status: ${res.status}` + `Error while requesting access token from GitLab; status: ${res.status}` ); } - return AccessTokenResponseSchema.parse(resJson); + return AccessTokenResponseSchema.parse(await res.json()); } - private static transformIssue( - issue: IssueSchemaWithExpandedLabels | EpicSchema - ) { - const labels: (string | SimpleLabelSchema)[] = issue.labels; + private static transformIssue(issue: Issue | Epic) { + const labels: (string | z.infer)[] = issue.labels; return { type: UnfurlResourceType.Issue, @@ -411,7 +522,6 @@ export class GitLab { name: issue.author?.username ?? "", avatarUrl: issue.author?.avatar_url ?? "", }, - // Epics are returned without label color details. labels: labels.map((label) => typeof label === "string" ? { name: label, color: GitLabUtils.defaultLabelColor } @@ -425,8 +535,10 @@ export class GitLab { } satisfies UnfurlIssueOrPR; } - private static transformMR(mr: MergeRequestSchema) { + private static transformMR(mr: MergeRequest) { const mrState = mr.merged_at ? "merged" : mr.state; + const draft = !!mr.draft; + return { type: UnfurlResourceType.PR, url: mr.web_url, @@ -435,28 +547,30 @@ export class GitLab { description: GitLabUtils.sanitizeGitLabMarkdown(mr.description) ?? "", author: { name: mr.author.username, - avatarUrl: mr.author.avatar_url, + avatarUrl: mr.author.avatar_url ?? "", }, state: { name: mrState, - color: GitLabUtils.getColorForStatus(mrState, !!mr.draft), - draft: mr.draft, + color: GitLabUtils.getColorForStatus(mrState, draft), + draft, }, createdAt: mr.created_at, } satisfies UnfurlIssueOrPR; } private static transformProject( - project: ProjectSchema, - issueStats: StatisticsSchema + project: Project, + issueStats?: IssueStatistics ) { const visibility = project.visibility ?? "private"; - const owner = project.owner as - | { name: string; avatar_url?: string } - | undefined; - const { opened, closed } = issueStats.statistics.counts; - const total = opened + closed; - const progress = total > 0 ? closed / total : 0; + const { owner } = project; + const counts = issueStats?.statistics.counts; + let progress: number | undefined; + + if (counts) { + const total = counts.opened + counts.closed; + progress = total > 0 ? counts.closed / total : 0; + } return { type: UnfurlResourceType.Project, @@ -477,7 +591,7 @@ export class GitLab { name: visibility.charAt(0).toUpperCase() + visibility.slice(1), color: GitLabUtils.getColorForVisibility(visibility), }, - labels: (project.topics ?? []).map((topic: string) => ({ + labels: (project.topics ?? []).map((topic) => ({ name: topic, color: GitLabUtils.defaultLabelColor, })), diff --git a/plugins/notion/server/index.ts b/plugins/notion/server/index.ts index 7ad7cbe433..d79f645a7e 100644 --- a/plugins/notion/server/index.ts +++ b/plugins/notion/server/index.ts @@ -13,7 +13,7 @@ PluginManager.add({ type: Hook.ImportSchema, value: IntegrationImportBodySchema.extend({ service: z.literal(IntegrationService.Notion), - input: z.array(NotionImportInputItemSchema), + input: z.array(NotionImportInputItemSchema).min(1), }), }); diff --git a/plugins/passkeys/server/auth/passkeys.test.ts b/plugins/passkeys/server/auth/passkeys.test.ts index d5dea1113f..5bf0fc249a 100644 --- a/plugins/passkeys/server/auth/passkeys.test.ts +++ b/plugins/passkeys/server/auth/passkeys.test.ts @@ -259,6 +259,38 @@ describe("#passkeys.verifyRegistration", () => { expect(body.message).toEqual("Invalid authentication type"); }); + it("should consume the challenge on a failed attempt", async () => { + const team = await buildTeam({ passkeysEnabled: true }); + const user = await buildUser({ teamId: team.id }); + + const options = await server.post( + "/auth/passkeys.generateRegistrationOptions", + user + ); + const { data } = await options.json(); + + const failed = await server.post( + "/auth/passkeys.verifyRegistration", + user, + { + body: buildNoneAttestationResponse( + isoBase64URL.fromBuffer(randomBytes(32)), + data.rp.id + ), + } + ); + expect(failed.status).toEqual(400); + + const res = await server.post("/auth/passkeys.verifyRegistration", user, { + body: buildNoneAttestationResponse(data.challenge, data.rp.id), + }); + const body = await res.json(); + expect(res.status).toEqual(400); + expect(body.message).toEqual( + "No registration challenge found or challenge expired" + ); + }); + it("should record the registration in the audit log", async () => { const planSpy = vi .spyOn(Team.prototype, "plan", "get") @@ -290,3 +322,40 @@ describe("#passkeys.verifyRegistration", () => { planSpy.mockRestore(); }); }); + +describe("#passkeys.verifyAuthentication", () => { + it("should consume the challenge on a failed attempt", async () => { + const options = await server.post( + "/auth/passkeys.generateAuthenticationOptions", + { body: {} } + ); + const { data } = await options.json(); + const body = { + challengeId: data.challengeId, + id: "unknown", + rawId: "unknown", + response: { + authenticatorData: "", + clientDataJSON: "", + signature: "", + }, + type: "public-key", + }; + + const failed = await server.post("/auth/passkeys.verifyAuthentication", { + body, + }); + const failedBody = await failed.json(); + expect(failed.status).toEqual(400); + expect(failedBody.message).toContain("Passkey not found"); + + const res = await server.post("/auth/passkeys.verifyAuthentication", { + body, + }); + const resBody = await res.json(); + expect(res.status).toEqual(400); + expect(resBody.message).toEqual( + "No authentication challenge found or challenge expired" + ); + }); +}); diff --git a/plugins/passkeys/server/auth/passkeys.ts b/plugins/passkeys/server/auth/passkeys.ts index af18d42291..e2717cf2d7 100644 --- a/plugins/passkeys/server/auth/passkeys.ts +++ b/plugins/passkeys/server/auth/passkeys.ts @@ -157,8 +157,8 @@ router.post( const body = ctx.input.body; authorize(user, "createUserPasskey", user.team); - // Retrieve challenge from Redis - const expectedChallenge = await Redis.defaultClient.get( + // Consume the challenge atomically so it can only be used once + const expectedChallenge = await Redis.defaultClient.getdel( getRegistrationChallengeKey(user.id) ); @@ -238,8 +238,6 @@ router.post( }); } - // Delete challenge from Redis - await Redis.defaultClient.del(getRegistrationChallengeKey(user.id)); ctx.body = { data: { verified: true } }; } else { throw ValidationError("Verification failed"); @@ -301,8 +299,8 @@ router.post( const body = ctx.input.body; const { challengeId, client = Client.Web } = body; - // Retrieve challenge from Redis - const expectedChallenge = await Redis.defaultClient.get( + // Consume the challenge atomically so it can only be used once + const expectedChallenge = await Redis.defaultClient.getdel( getAuthenticationChallengeKey(challengeId) ); @@ -371,9 +369,6 @@ router.post( passkey.lastActiveAt = new Date(); await passkey.save({ silent: true }); - // Delete challenge from Redis - await Redis.defaultClient.del(getAuthenticationChallengeKey(challengeId)); - // Use the signIn utility which handles all sign-in logic await signIn(ctx, "passkeys", { user, diff --git a/plugins/slack/client/components/SlackListItem.tsx b/plugins/slack/client/components/SlackListItem.tsx index 1e1d27be0c..dd9b5a4c54 100644 --- a/plugins/slack/client/components/SlackListItem.tsx +++ b/plugins/slack/client/components/SlackListItem.tsx @@ -1,5 +1,4 @@ import { uniq } from "es-toolkit/compat"; -import { runInAction } from "mobx"; import { observer } from "mobx-react"; import { Trans, useTranslation } from "react-i18next"; import { toast } from "sonner"; @@ -30,16 +29,12 @@ function SlackListItem({ integration, collection }: Props) { const { t } = useTranslation(); const handleChange = (eventName: string) => async (checked: boolean) => { - runInAction(() => { - if (checked) { - integration.events = uniq([...integration.events, eventName]); - } else { - integration.events = integration.events.filter((n) => n !== eventName); - } + await integration.save({ + events: checked + ? uniq([...integration.events, eventName]) + : integration.events.filter((n) => n !== eventName), }); - await integration.save(); - toast.success(t("Settings saved")); }; diff --git a/plugins/webhooks/server/api/webhookSubscriptions.ts b/plugins/webhooks/server/api/webhookSubscriptions.ts index 699ecb5637..9b8024fee9 100644 --- a/plugins/webhooks/server/api/webhookSubscriptions.ts +++ b/plugins/webhooks/server/api/webhookSubscriptions.ts @@ -121,7 +121,7 @@ router.post( const webhookSubscription = await WebhookSubscription.findByPk(id, { rejectOnEmpty: true, - lock: transaction.LOCK.UPDATE, + lock: { level: transaction.LOCK.NO_KEY_UPDATE, of: WebhookSubscription }, transaction, }); @@ -152,7 +152,7 @@ router.post( const webhookSubscription = await WebhookSubscription.findByPk(id, { rejectOnEmpty: true, - lock: transaction.LOCK.UPDATE, + lock: { level: transaction.LOCK.NO_KEY_UPDATE, of: WebhookSubscription }, transaction, }); diff --git a/plugins/webhooks/server/tasks/DeliverWebhookTask.test.ts b/plugins/webhooks/server/tasks/DeliverWebhookTask.test.ts index 1c95657913..0dc042a881 100644 --- a/plugins/webhooks/server/tasks/DeliverWebhookTask.test.ts +++ b/plugins/webhooks/server/tasks/DeliverWebhookTask.test.ts @@ -137,6 +137,67 @@ describe("DeliverWebhookTask", () => { expect(delivery.responseBody).toEqual("SUCCESS"); }); + it("should truncate stored response bodies", async () => { + const subscription = await buildWebhookSubscription({ + url: "http://example.com", + events: ["*"], + }); + const signedInUser = await buildUser({ teamId: subscription.teamId }); + captureWebhook( + "http://example.com", + () => new HttpResponse("a".repeat(5000), { status: 200 }) + ); + + await new DeliverWebhookTask().perform({ + subscriptionId: subscription.id, + event: { + name: "users.signin", + userId: signedInUser.id, + teamId: subscription.teamId, + actorId: signedInUser.id, + ip, + }, + }); + + const delivery = await WebhookDelivery.findOne({ + where: { webhookSubscriptionId: subscription.id }, + rejectOnEmpty: true, + }); + expect(delivery.status).toBe("success"); + expect(delivery.responseBody).toEqual("a".repeat(1024)); + }); + + it("should not read response bodies over the size limit", async () => { + const subscription = await buildWebhookSubscription({ + url: "http://example.com", + events: ["*"], + }); + const signedInUser = await buildUser({ teamId: subscription.teamId }); + captureWebhook( + "http://example.com", + () => new HttpResponse("a".repeat(128 * 1024), { status: 200 }) + ); + + await new DeliverWebhookTask().perform({ + subscriptionId: subscription.id, + event: { + name: "users.signin", + userId: signedInUser.id, + teamId: subscription.teamId, + actorId: signedInUser.id, + ip, + }, + }); + + const delivery = await WebhookDelivery.findOne({ + where: { webhookSubscriptionId: subscription.id }, + rejectOnEmpty: true, + }); + expect(delivery.status).toBe("success"); + expect(delivery.statusCode).toBe(200); + expect(delivery.responseBody).toEqual(""); + }); + it("should hit the subscription url with signature header", async () => { const subscription = await buildWebhookSubscription({ url: "http://example.com", diff --git a/plugins/webhooks/server/tasks/DeliverWebhookTask.ts b/plugins/webhooks/server/tasks/DeliverWebhookTask.ts index b7906d0c59..b502af36cb 100644 --- a/plugins/webhooks/server/tasks/DeliverWebhookTask.ts +++ b/plugins/webhooks/server/tasks/DeliverWebhookTask.ts @@ -799,9 +799,12 @@ export default class DeliverWebhookTask extends BaseTask { }); } - /** Maximum number of bytes to read from webhook response bodies. */ + /** Maximum number of bytes to store from webhook response bodies. */ private static readonly MAX_RESPONSE_BODY_SIZE = 1024; + /** Maximum number of bytes to read from webhook response bodies. */ + private static readonly MAX_RESPONSE_READ_SIZE = 64 * 1024; + private async sendWebhook({ event, subscription, @@ -842,6 +845,7 @@ export default class DeliverWebhookTask extends BaseTask { body: JSON.stringify(requestBody), redirect: "error", timeout: 5000, + size: DeliverWebhookTask.MAX_RESPONSE_READ_SIZE, }); status = response.ok ? "success" : "failed"; } catch (err) { @@ -862,7 +866,6 @@ export default class DeliverWebhookTask extends BaseTask { if (response) { try { - // TODO: Use stream to avoid buffering large responses in memory. const text = await response.text(); responseBody = text.slice(0, DeliverWebhookTask.MAX_RESPONSE_BODY_SIZE); } catch (err) { diff --git a/server/collaboration/PersistenceExtension.ts b/server/collaboration/PersistenceExtension.ts index 7548e0544c..af8c8a9bd9 100644 --- a/server/collaboration/PersistenceExtension.ts +++ b/server/collaboration/PersistenceExtension.ts @@ -66,7 +66,7 @@ export default class PersistenceExtension implements Extension { const document = await Document.unscoped().findOne({ attributes: ["id", "state", "content", "text"], transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, rejectOnEmpty: true, where: { id: documentId, diff --git a/server/collaboration/ViewsExtension.test.ts b/server/collaboration/ViewsExtension.test.ts index cb1fe11004..84b03712c4 100644 --- a/server/collaboration/ViewsExtension.test.ts +++ b/server/collaboration/ViewsExtension.test.ts @@ -1,6 +1,7 @@ import type { onChangePayload } from "@hocuspocus/server"; import { subMinutes } from "date-fns"; -import { User } from "@server/models"; +import { DatabaseError } from "sequelize"; +import { User, View } from "@server/models"; import { buildDocument, buildUser } from "@server/test/factories"; import { ViewsExtension } from "./ViewsExtension"; @@ -35,4 +36,22 @@ describe("ViewsExtension", () => { const reloaded = await User.findByPk(user.id, { rejectOnEmpty: true }); expect(reloaded.lastActiveAt).toEqual(recent); }); + + it("should not throw when the database is read-only", async () => { + const user = await buildUser(); + const document = await buildDocument({ teamId: user.teamId }); + const spy = vi.spyOn(View, "touch").mockRejectedValue( + new DatabaseError( + Object.assign(new Error("read-only transaction"), { + sql: "", + code: "25006", + }) + ) + ); + + await expect( + change(user, document.id, "socket-1") + ).resolves.toBeUndefined(); + spy.mockRestore(); + }); }); diff --git a/server/collaboration/ViewsExtension.ts b/server/collaboration/ViewsExtension.ts index ddfa9f1d22..e4b441a901 100644 --- a/server/collaboration/ViewsExtension.ts +++ b/server/collaboration/ViewsExtension.ts @@ -7,6 +7,7 @@ import { Minute } from "@shared/utils/time"; import Logger from "@server/logging/Logger"; import { trace } from "@server/logging/tracing"; import { View } from "@server/models"; +import { optionalWrite } from "@server/storage/database"; import type { withContext } from "./types"; @trace() @@ -27,7 +28,8 @@ export class ViewsExtension implements Extension { context, socketId, }: withContext) { - if (!context.user) { + const { user } = context; + if (!user) { return; } @@ -37,14 +39,13 @@ export class ViewsExtension implements Extension { if (!lastUpdate || Date.now() - lastUpdate.getTime() > Minute.ms) { this.lastViewBySocket.set(socketId, new Date()); - Logger.debug( - "multiplayer", - `User ${context.user.id} viewed "${documentName}"` + Logger.debug("multiplayer", `User ${user.id} viewed "${documentName}"`); + await optionalWrite(() => + Promise.all([ + View.touch(documentId, user.id, true), + user.updateActiveAt(), + ]) ); - await Promise.all([ - View.touch(documentId, context.user.id, true), - context.user.updateActiveAt(), - ]); } } diff --git a/server/commands/accountProvisioner.ts b/server/commands/accountProvisioner.ts index 5356b271b2..3b1de34b6e 100644 --- a/server/commands/accountProvisioner.ts +++ b/server/commands/accountProvisioner.ts @@ -9,7 +9,7 @@ import { AuthenticationProviderDisabledError, } from "@server/errors"; import { traceFunction } from "@server/logging/tracing"; -import type { User } from "@server/models"; +import type { User, UserAuthentication } from "@server/models"; import { AuthenticationProvider, Collection, @@ -84,6 +84,8 @@ export type AccountProvisionerResult = { team: Team; isNewTeam: boolean; isNewUser: boolean; + /** The stored authentication for this sign-in, if one was saved. */ + authentication?: UserAuthentication; }; async function accountProvisioner( @@ -254,6 +256,7 @@ async function accountProvisioner( team, isNewUser, isNewTeam, + authentication: result.authentication ?? undefined, }; } diff --git a/server/commands/documentCollaborativeUpdater.test.ts b/server/commands/documentCollaborativeUpdater.test.ts index 154aad7e96..368c40ba35 100644 --- a/server/commands/documentCollaborativeUpdater.test.ts +++ b/server/commands/documentCollaborativeUpdater.test.ts @@ -3,6 +3,7 @@ import { prosemirrorToYDoc } from "y-prosemirror"; import { schema } from "@server/editor"; import { createContext } from "@server/context"; import { Document, Event, Revision } from "@server/models"; +import { sequelize } from "@server/storage/database"; import { buildDocument, buildUser } from "@server/test/factories"; import documentCollaborativeUpdater from "./documentCollaborativeUpdater"; @@ -231,4 +232,48 @@ describe("documentCollaborativeUpdater", () => { ); ydoc.destroy(); }); + + it("does not wait for a concurrent foreign key insert on the document", async () => { + const user = await buildUser(); + const document = await buildDocument({ + teamId: user.teamId, + userId: user.id, + }); + const ydoc = buildYDoc([ + { + type: "paragraph", + content: [{ type: "text", text: "Saved while referenced" }], + }, + ]); + + // A foreign key check on insert takes FOR KEY SHARE on the parent row. + const other = await sequelize.transaction(); + try { + await sequelize.query( + `SELECT id FROM documents WHERE id = :id FOR KEY SHARE`, + { replacements: { id: document.id }, transaction: other } + ); + + const save = documentCollaborativeUpdater({ + documentId: document.id, + ydoc, + collaborators: { ids: [user.id] }, + isLastConnection: true, + clientVersion: null, + }).then(() => "saved"); + const timeout = new Promise((resolve) => + setTimeout(() => resolve("blocked"), 2000) + ); + + await expect(Promise.race([save, timeout])).resolves.toBe("saved"); + } finally { + await other.rollback(); + } + + await document.reload(); + expect(document.content?.content?.[0]?.content?.[0]?.text).toBe( + "Saved while referenced" + ); + ydoc.destroy(); + }); }); diff --git a/server/commands/documentCollaborativeUpdater.ts b/server/commands/documentCollaborativeUpdater.ts index f3122b8929..959b39e466 100644 --- a/server/commands/documentCollaborativeUpdater.ts +++ b/server/commands/documentCollaborativeUpdater.ts @@ -89,7 +89,7 @@ export default async function documentCollaborativeUpdater({ transaction, lock: { of: Document, - level: transaction.LOCK.UPDATE, + level: transaction.LOCK.NO_KEY_UPDATE, }, rejectOnEmpty: true, paranoid: false, diff --git a/server/commands/documentUpdater.ts b/server/commands/documentUpdater.ts index ba176a0590..a7d16f22ba 100644 --- a/server/commands/documentUpdater.ts +++ b/server/commands/documentUpdater.ts @@ -1,6 +1,6 @@ import type { DocumentPreferences, TextEditMode } from "@shared/types"; import { DocumentConflictError, ValidationError } from "@server/errors"; -import { Event, Document } from "@server/models"; +import { Document } from "@server/models"; import { DocumentHelper } from "@server/models/helpers/DocumentHelper"; import { TextHelper } from "@server/models/helpers/TextHelper"; import type { APIContext } from "@server/types"; @@ -16,8 +16,6 @@ type Props = { color?: string | null; /** The new text content */ text?: string; - /** Whether the editing session is complete */ - done?: boolean; /** The version of the client editor that was used */ editorVersion?: string; /** The ID of the template that was used */ @@ -68,7 +66,6 @@ export default async function documentUpdater( publish, collectionId, deprecatedReason, - done, }: Props ): Promise { const { user } = ctx.state.auth; @@ -104,7 +101,7 @@ export default async function documentUpdater( // Serialize concurrent updates to the same document by taking a row-level // lock before writing. The wait is already bounded by the transaction's - // statement_timeout. When lastRevision is provided it becomes part of the + // lock_timeout. When lastRevision is provided it becomes part of the // predicate, so a document modified since that revision matches no row. if (transaction) { const locked = await Document.unscoped().findOne({ @@ -114,7 +111,7 @@ export default async function documentUpdater( ...(lastRevision !== undefined && { revisionCount: lastRevision }), }, transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, paranoid: false, }); @@ -138,31 +135,17 @@ export default async function documentUpdater( } const changed = document.changed(); - const eventData = done !== undefined ? { done } : undefined; const { collection } = document; - const event = { - name: "documents.update", - documentId: document.id, - collectionId: cId, - data: eventData, - }; - if (publish && cId) { if (!document.collectionId) { document.collectionId = cId; } - await document.publish(ctx, { collectionId: cId, data: eventData }); + await document.publish(ctx, { collectionId: cId }); } else if (changed) { document.lastModifiedById = user.id; document.updatedBy = user; - await document.saveWithCtx(ctx, undefined, { data: eventData }); - } else if (done) { - await Event.schedule({ - ...event, - actorId: user.id, - teamId: document.teamId, - }); + await document.saveWithCtx(ctx); } // Publishing can move the document to another collection, and the save diff --git a/server/errors.ts b/server/errors.ts index 1c60e9f95e..c9c1512d88 100644 --- a/server/errors.ts +++ b/server/errors.ts @@ -251,6 +251,30 @@ export function RequestTimeoutError( }); } +export function ServiceUnavailableError( + message = "The service is temporarily unavailable. Try again shortly." +) { + return httpErrors(503, message, { + id: "service_unavailable", + isReportable: false, + headers: { + "Retry-After": "30", + }, + }); +} + +export function DatabaseReadOnlyError( + message = "Changes cannot be saved during maintenance. Try again shortly." +) { + return httpErrors(503, message, { + id: "database_read_only", + isReportable: false, + headers: { + "Retry-After": "30", + }, + }); +} + export function ClientClosedRequestError( message = "Client closed request before response was received" ) { diff --git a/server/logging/sentry.ts b/server/logging/sentry.ts index 816b15069e..ec5f3e85bd 100644 --- a/server/logging/sentry.ts +++ b/server/logging/sentry.ts @@ -59,6 +59,10 @@ function loadSentry(dsn: string): typeof SentryNode { environment: env.ENVIRONMENT, release: env.RELEASE, maxBreadcrumbs: 0, + integrations: [ + // Request bodies can contain document content and credentials. + sentry.httpIntegration({ maxIncomingRequestBodySize: "none" }), + ], ignoreErrors: [ // These errors are expected in normal running of the application and // don't need to be reported. @@ -80,6 +84,8 @@ function loadSentry(dsn: string): typeof SentryNode { "Premature close", ], beforeSend(event) { + scrubRequest(event); + try { switch (event.level) { case "warning": @@ -97,3 +103,29 @@ function loadSentry(dsn: string): typeof SentryNode { }); return sentry; } + +const SensitiveHeaderPattern = + /auth|cookie|token|secret|key|session|signature/i; + +/** + * Removes the request body, cookies, and sensitive headers from an event. + * + * @param event the event to scrub in place. + */ +function scrubRequest(event: SentryNode.ErrorEvent) { + const { request } = event; + if (!request) { + return; + } + + delete request.data; + delete request.cookies; + + if (request.headers) { + request.headers = Object.fromEntries( + Object.entries(request.headers).filter( + ([name]) => !SensitiveHeaderPattern.test(name) + ) + ); + } +} diff --git a/server/mcp/tools/comments.ts b/server/mcp/tools/comments.ts index 2be394845a..0dea86d6d4 100644 --- a/server/mcp/tools/comments.ts +++ b/server/mcp/tools/comments.ts @@ -219,7 +219,7 @@ export function commentTools(server: McpServer, scopes: string[]) { where: { id: document.id }, attributes: ["id"], transaction, - lock: Transaction.LOCK.UPDATE, + lock: Transaction.LOCK.NO_KEY_UPDATE, }); // Reload under the lock, with the state needed for the mark. diff --git a/server/mcp/tools/documents.ts b/server/mcp/tools/documents.ts index 0e17092dad..1feb16d42a 100644 --- a/server/mcp/tools/documents.ts +++ b/server/mcp/tools/documents.ts @@ -697,21 +697,26 @@ export function documentTools(server: McpServer, scopes: string[]) { const ctx = buildAPIContext(context); const { user } = ctx.state.auth; - const document = await Document.findByPk(input.id, { - userId: user.id, - includeState: true, - rejectOnEmpty: true, - }); + // Returns null when the update persisted nothing. + const updated = await sequelize.transaction(async (transaction) => { + ctx.state.transaction = transaction; + ctx.context.transaction = transaction; - let updated; - - if (input.publish === false) { - authorize(user, "unpublish", document); - - updated = await document.unpublishWithCtx(ctx, { - detach: false, + const document = await Document.findByPk(input.id, { + userId: user.id, + includeState: true, + rejectOnEmpty: true, + transaction, }); - } else { + + if (input.publish === false) { + authorize(user, "unpublish", document); + + return document.unpublishWithCtx(ctx, { + detach: false, + }); + } + authorize(user, "update", document); // The collection is only used when publishing a draft that has @@ -735,7 +740,7 @@ export function documentTools(server: McpServer, scopes: string[]) { const { revisionCount } = document; - updated = await documentUpdater(ctx, { + const result = await documentUpdater(ctx, { document, ...input, collectionId, @@ -746,11 +751,13 @@ export function documentTools(server: McpServer, scopes: string[]) { // the caller would read as a completed write — the request either // carried no recognized fields or values identical to the current // document. - if (updated.revisionCount === revisionCount) { - return error( - "The update resulted in no changes to the document. Ensure at least one field is provided and differs from the current document." - ); - } + return result.revisionCount === revisionCount ? null : result; + }); + + if (!updated) { + return error( + "The update resulted in no changes to the document. Ensure at least one field is provided and differs from the current document." + ); } // A patch only rewrites part of the document, so the resulting diff --git a/server/middlewares/appHeaders.ts b/server/middlewares/appHeaders.ts new file mode 100644 index 0000000000..4095359882 --- /dev/null +++ b/server/middlewares/appHeaders.ts @@ -0,0 +1,31 @@ +import type { Context, Next } from "koa"; +import env from "@server/env"; + +/** + * Middleware that sets the response headers that are needed when serving the + * web application. + * + * @returns the middleware function. + */ +export default function appHeaders() { + // Sentry needs this header to report all performance metrics, see: + // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Timing-Allow-Origin + const timingOrigins = [env.URL]; + + if (env.SENTRY_DSN) { + timingOrigins.push("https://sentry.io"); + } + + const timingAllowOrigin = timingOrigins.join(", "); + + return async function appHeadersMiddleware(ctx: Context, next: Next) { + ctx.set("Timing-Allow-Origin", timingAllowOrigin); + + // Allow the JS Self-Profiling API to be used for local performance work. + if (env.isDevelopment) { + ctx.set("Document-Policy", "js-profiling"); + } + + await next(); + }; +} diff --git a/server/middlewares/authentication.test.ts b/server/middlewares/authentication.test.ts index a0c0eb4cb8..c52c1f3ff1 100644 --- a/server/middlewares/authentication.test.ts +++ b/server/middlewares/authentication.test.ts @@ -348,24 +348,47 @@ describe("Authentication middleware", () => { ); }); - it("should allow passing transfer token as a GET param", async () => { + it("should not accept transfer token as a GET param", async () => { const state = {} as DefaultState; const user = await buildUser(); const authMiddleware = auth(); - await authMiddleware( - buildMockContext({ - request: { - get: vi.fn(() => null), - query: { - token: user.getTransferToken(), + + await expect( + authMiddleware( + buildMockContext({ + request: { + get: vi.fn(() => null), + query: { + token: user.getTransferToken(), + }, }, - }, - state, - cache: {}, - }), - vi.fn() + state, + cache: {}, + }), + vi.fn() + ) + ).rejects.toThrow( + "Session token must be passed in the cookie or Authorization header" ); - expect(state.auth.user.id).toEqual(user.id); + }); + + it("should not accept transfer token in the Authorization header", async () => { + const state = {} as DefaultState; + const user = await buildUser(); + const authMiddleware = auth(); + + await expect( + authMiddleware( + buildMockContext({ + request: { + get: vi.fn(() => `Bearer ${user.getTransferToken()}`), + }, + state, + cache: {}, + }), + vi.fn() + ) + ).rejects.toThrow("Invalid token"); }); it("should return an error for suspended users", async () => { diff --git a/server/middlewares/authentication.ts b/server/middlewares/authentication.ts index 21f259f848..89f0ad2643 100644 --- a/server/middlewares/authentication.ts +++ b/server/middlewares/authentication.ts @@ -8,9 +8,10 @@ import tracer, { getRootSpanFromRequestContext, } from "@server/logging/tracer"; import { User, Team, ApiKey, OAuthAuthentication } from "@server/models"; +import { optionalWrite } from "@server/storage/database"; import type { AppContext } from "@server/types"; import { AuthenticationType } from "@server/types"; -import { getJWTPayload, getUserForJWT } from "@server/utils/jwt"; +import { getUserForJWT } from "@server/utils/jwt"; import { AuthenticationError, AuthorizationError, @@ -62,10 +63,9 @@ export default function auth(options: AuthenticationOptions = {}) { const { type, token, user, service, scope } = await validateAuthentication(ctx, options); - await Promise.all([ - user.updateActiveAt(ctx), - user.team?.updateActiveAt(), - ]); + await optionalWrite(() => + Promise.all([user.updateActiveAt(ctx), user.team?.updateActiveAt()]) + ); ctx.state.auth = { user, @@ -229,7 +229,7 @@ async function validateAuthentication( } scope = authentication.scope; - await authentication.updateActiveAt(); + await optionalWrite(authentication.updateActiveAt); } else if (ApiKey.match(token)) { if (transport === "cookie") { throw AuthenticationError("API key must not be passed in the cookie"); @@ -271,19 +271,14 @@ async function validateAuthentication( } scope = apiKey.scope ?? ["*"]; - await apiKey.updateActiveAt(); + await optionalWrite(apiKey.updateActiveAt); } else { // Session tokens are long-lived, so keep them out of transports that end up - // in browser history, referrers, and request logs. Short-lived single-use - // tokens such as transfer are still accepted from anywhere. + // in browser history, referrers, and request logs. if (transport !== "cookie" && transport !== "header") { - const payload = getJWTPayload(token); - - if (payload.type === "session") { - throw AuthenticationError( - "Session token must be passed in the cookie or Authorization header" - ); - } + throw AuthenticationError( + "Session token must be passed in the cookie or Authorization header" + ); } type = AuthenticationType.APP; diff --git a/server/migrations/20261112120000-add-pending-created-at-index-to-import-tasks.js b/server/migrations/20261112120000-add-pending-created-at-index-to-import-tasks.js new file mode 100644 index 0000000000..a3241f42fd --- /dev/null +++ b/server/migrations/20261112120000-add-pending-created-at-index-to-import-tasks.js @@ -0,0 +1,17 @@ +"use strict"; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface) { + // Covers the scan for stuck import tasks, which pages by createdAt. + await queryInterface.sequelize.query( + `CREATE INDEX CONCURRENTLY IF NOT EXISTS "import_tasks_pending_created_at" ON "import_tasks" ("createdAt", "id") WHERE "state" IN ('created', 'in_progress');` + ); + }, + + async down(queryInterface) { + await queryInterface.sequelize.query( + 'DROP INDEX CONCURRENTLY IF EXISTS "import_tasks_pending_created_at";' + ); + }, +}; diff --git a/server/migrations/20261112160000-add-group-permissions-sourced-index.js b/server/migrations/20261112160000-add-group-permissions-sourced-index.js new file mode 100644 index 0000000000..82b8c6d201 --- /dev/null +++ b/server/migrations/20261112160000-add-group-permissions-sourced-index.js @@ -0,0 +1,18 @@ +"use strict"; + +/** @type {import('sequelize-cli').Migration} */ +module.exports = { + async up(queryInterface) { + // Covers lookups of inherited group permissions by document and group. + // Partial so it only indexes rows that are sourced from a parent. + await queryInterface.sequelize.query( + 'CREATE INDEX CONCURRENTLY IF NOT EXISTS "group_permissions_document_id_group_id_sourced" ON "group_permissions" ("documentId", "groupId") WHERE "sourceId" IS NOT NULL AND "deletedAt" IS NULL;' + ); + }, + + async down(queryInterface) { + await queryInterface.sequelize.query( + 'DROP INDEX CONCURRENTLY IF EXISTS "group_permissions_document_id_group_id_sourced";' + ); + }, +}; diff --git a/server/models/Collection.ts b/server/models/Collection.ts index c014fdc530..6b4e879a22 100644 --- a/server/models/Collection.ts +++ b/server/models/Collection.ts @@ -991,7 +991,7 @@ class Collection extends ParanoidModel< attributes: ["id"], where: { id: this.id }, transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, rejectOnEmpty: true, }); } diff --git a/server/models/Comment.ts b/server/models/Comment.ts index c89b08eddb..4660393819 100644 --- a/server/models/Comment.ts +++ b/server/models/Comment.ts @@ -293,7 +293,7 @@ class Comment extends ParanoidModel< }, transaction: options.transaction, lock: options.transaction - ? { level: options.transaction.LOCK.UPDATE, of: this } + ? { level: options.transaction.LOCK.NO_KEY_UPDATE, of: this } : undefined, }); if (!parent) { diff --git a/server/models/GroupMembership.ts b/server/models/GroupMembership.ts index a519c0b813..df0d176bda 100644 --- a/server/models/GroupMembership.ts +++ b/server/models/GroupMembership.ts @@ -164,7 +164,7 @@ class GroupMembership extends ParanoidModel< return this.findOne({ ...options, where: collectionId ? { groupId, collectionId } : { groupId, documentId }, - lock: options.transaction.LOCK.UPDATE, + lock: options.transaction.LOCK.NO_KEY_UPDATE, }); } diff --git a/server/models/Import.ts b/server/models/Import.ts index ddab94b8ae..f4a0b2da10 100644 --- a/server/models/Import.ts +++ b/server/models/Import.ts @@ -44,6 +44,20 @@ class Import extends ParanoidModel< InferAttributes>, Partial>> > { + /** States in which an import is still running and can be canceled. */ + public static readonly activeStates: readonly ImportState[] = [ + ImportState.Created, + ImportState.InProgress, + ImportState.Processed, + ]; + + /** States in which an import has stopped and will not change again. */ + public static readonly terminalStates: readonly ImportState[] = [ + ImportState.Completed, + ImportState.Errored, + ImportState.Canceled, + ]; + @NotContainsUrl @Length({ max: ImportValidation.maxNameLength, @@ -137,11 +151,7 @@ class Import extends ParanoidModel< const inProgress = await this.count({ where: { teamId: model.teamId, - state: [ - ImportState.Created, - ImportState.InProgress, - ImportState.Processed, - ], + state: [...Import.activeStates], }, transaction, }); diff --git a/server/models/IntegrationAuthentication.ts b/server/models/IntegrationAuthentication.ts index 7b08ab4880..654661c6d1 100644 --- a/server/models/IntegrationAuthentication.ts +++ b/server/models/IntegrationAuthentication.ts @@ -117,7 +117,7 @@ class IntegrationAuthentication extends IdModel< this.constructor as typeof IntegrationAuthentication ).findByPk(this.id, { transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, rejectOnEmpty: true, }); diff --git a/server/models/Reaction.ts b/server/models/Reaction.ts index 3c0ade42de..f3ede25206 100644 --- a/server/models/Reaction.ts +++ b/server/models/Reaction.ts @@ -61,7 +61,7 @@ class Reaction extends IdModel< const lock = transaction ? { - level: transaction.LOCK.UPDATE, + level: transaction.LOCK.NO_KEY_UPDATE, of: Comment, } : undefined; @@ -112,7 +112,7 @@ class Reaction extends IdModel< const lock = transaction ? { - level: transaction.LOCK.UPDATE, + level: transaction.LOCK.NO_KEY_UPDATE, of: Comment, } : undefined; diff --git a/server/models/UserMembership.ts b/server/models/UserMembership.ts index 0678bfd87e..bde81a2beb 100644 --- a/server/models/UserMembership.ts +++ b/server/models/UserMembership.ts @@ -171,7 +171,7 @@ class UserMembership extends IdModel< return this.findOne({ ...options, where: collectionId ? { userId, collectionId } : { userId, documentId }, - lock: options.transaction.LOCK.UPDATE, + lock: options.transaction.LOCK.NO_KEY_UPDATE, }); } diff --git a/server/models/helpers/Filters.ts b/server/models/helpers/Filters.ts index 6095e4487f..3223d85163 100644 --- a/server/models/helpers/Filters.ts +++ b/server/models/helpers/Filters.ts @@ -9,9 +9,10 @@ import { createFilterSchema, DURATION_BY_DATE_FILTER, RANGE_OPERATORS, + statusToFilter, } from "@shared/helpers/FilterHelper"; import type { DateFilter, StatusFilter } from "@shared/types"; -import { StatusFilter as StatusFilterEnum, UserRole } from "@shared/types"; +import { UserRole } from "@shared/types"; import { Collection } from "@server/models"; import type User from "@server/models/User"; import { authorize } from "@server/policies"; @@ -314,29 +315,6 @@ interface LegacyParams { statusFilter?: StatusFilter[]; } -function statusToFilter(status: StatusFilter): Filter { - if (status === StatusFilterEnum.Archived) { - return { field: "archivedAt", operator: "isNotNull" }; - } - if (status === StatusFilterEnum.Published) { - return { - operator: "AND", - filters: [ - { field: "archivedAt", operator: "isNull" }, - { field: "publishedAt", operator: "isNotNull" }, - ], - }; - } - // Draft - return { - operator: "AND", - filters: [ - { field: "archivedAt", operator: "isNull" }, - { field: "publishedAt", operator: "isNull" }, - ], - }; -} - /** * Translate deprecated top-level params into an equivalent filter expression. * Callers pass only the subset of params their route accepts; each one becomes diff --git a/server/onerror.ts b/server/onerror.ts index 91a6a92f59..b5b1231c14 100644 --- a/server/onerror.ts +++ b/server/onerror.ts @@ -7,12 +7,19 @@ import { escape, isNil, snakeCase } from "es-toolkit/compat"; import env from "@server/env"; import { ClientClosedRequestError, + DatabaseReadOnlyError, InternalError, InvalidRequestError, RequestTimeoutError, + ServiceUnavailableError, } from "@server/errors"; +import Metrics from "@server/logging/Metrics"; import { requestErrorHandler } from "@server/logging/sentry"; -import { isQueryCanceledError } from "@server/storage/database"; +import { + isDatabaseReadOnlyError, + isDatabaseUnavailableError, + isQueryCanceledError, +} from "@server/storage/database"; import type { AppContext } from "@server/types"; let errorHtmlCache: Buffer | undefined; @@ -45,6 +52,12 @@ export default function onerror(app: Koa) { err = ClientClosedRequestError(); } else if (isQueryCanceledError(err)) { err = RequestTimeoutError(); + } else if (isDatabaseReadOnlyError(err)) { + Metrics.increment("database.read_only", { source: "http" }); + err = DatabaseReadOnlyError(); + } else if (isDatabaseUnavailableError(err)) { + Metrics.increment("database.unavailable", { source: "http" }); + err = ServiceUnavailableError(); } else if (isDecompressionError(err)) { err = InvalidRequestError("Request body could not be decompressed"); } diff --git a/server/policies/import.ts b/server/policies/import.ts index a017e3007f..02780dbb36 100644 --- a/server/policies/import.ts +++ b/server/policies/import.ts @@ -1,13 +1,6 @@ -import { ImportState } from "@shared/types"; import { User, Team, Import } from "@server/models"; import { allow, can } from "./cancan"; -import { and, isTeamAdmin, isTeamMutable, or } from "./utils"; - -const TerminalStates = [ - ImportState.Completed, - ImportState.Errored, - ImportState.Canceled, -]; +import { and, isTeamAdmin, isTeamMutable } from "./utils"; allow(User, ["createImport", "listImports"], Team, (actor, team) => and(isTeamAdmin(actor, team), isTeamMutable(actor)) @@ -20,7 +13,7 @@ allow(User, "read", Import, (actor, importModel) => allow(User, "delete", Import, (actor, importModel) => and( can(actor, "read", importModel), - !!importModel && TerminalStates.includes(importModel.state) + !!importModel && Import.terminalStates.includes(importModel.state) ) ); @@ -28,10 +21,6 @@ allow(User, "cancel", Import, (actor, importModel) => and( can(actor, "read", importModel), importModel?.createdById === actor.id, - or( - importModel?.state === ImportState.Created, - importModel?.state === ImportState.InProgress, - importModel?.state === ImportState.Processed - ) + !!importModel && Import.activeStates.includes(importModel.state) ) ); diff --git a/server/queues/processors/CollectionsProcessor.ts b/server/queues/processors/CollectionsProcessor.ts index 869a3a587b..75432730b2 100644 --- a/server/queues/processors/CollectionsProcessor.ts +++ b/server/queues/processors/CollectionsProcessor.ts @@ -22,7 +22,7 @@ export default class CollectionsProcessor extends BaseProcessor { await sequelize.transaction(async (transaction) => { const team = await Team.findByPk(event.teamId, { transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, }); if (team?.defaultCollectionId === event.collectionId) { diff --git a/server/queues/processors/ImportsProcessor.ts b/server/queues/processors/ImportsProcessor.ts index 285c939c67..6f6bc4ba79 100644 --- a/server/queues/processors/ImportsProcessor.ts +++ b/server/queues/processors/ImportsProcessor.ts @@ -88,7 +88,7 @@ export default abstract class ImportsProcessor< rejectOnEmpty: true, paranoid: false, transaction, - lock: transaction.LOCK.UPDATE, + lock: { level: transaction.LOCK.NO_KEY_UPDATE, of: Import }, }); if ( @@ -167,11 +167,20 @@ export default abstract class ImportsProcessor< * @returns Promise that resolves when the creation flow setup is done. */ private async onCreation(importModel: Import, transaction: Transaction) { - if (!importModel.input.length) { + const tasksInput = importModel.input.length + ? await this.buildTasksInput(importModel, transaction) + : []; + + // Without tasks nothing would move the import out of its current state. + if (!tasksInput.length) { + importModel.state = ImportState.Errored; + importModel.error = "Nothing to import"; + await importModel.saveWithCtx( + createContext({ user: importModel.createdBy, transaction }) + ); return; } - const tasksInput = await this.buildTasksInput(importModel, transaction); const phase = this.getInitialPhase(); const importTasks = await Promise.all( @@ -197,9 +206,7 @@ export default abstract class ImportsProcessor< importModel.state = ImportState.InProgress; await importModel.save({ transaction }); - if (importTasks.length > 0) { - await afterCommit(transaction, () => this.scheduleTask(importTasks[0])); - } + await afterCommit(transaction, () => this.scheduleTask(importTasks[0])); } /** @@ -606,9 +613,10 @@ export default abstract class ImportsProcessor< const rootNode = rootNodesByExternalId[externalId]; + // documentId is set for root pages too. const attachments = await Attachment.findAll({ attributes: ["id", "size"], - where: { documentId: externalId }, // This will be set for root pages too + where: { documentId: externalId, teamId: importModel.teamId }, transaction, }); @@ -690,7 +698,11 @@ export default abstract class ImportsProcessor< // Unset documentId for attachments in collection overview. await Attachment.update( { documentId: null }, - { where: { documentId: externalId }, silent: true, transaction } + { + where: { documentId: externalId, teamId: importModel.teamId }, + silent: true, + transaction, + } ); continue; @@ -832,7 +844,11 @@ export default abstract class ImportsProcessor< // Update document id for attachments in document content. await Attachment.update( { documentId: internalId }, - { where: { documentId: externalId }, silent: true, transaction } + { + where: { documentId: externalId, teamId: importModel.teamId }, + silent: true, + transaction, + } ); } } diff --git a/server/queues/processors/JSONImportsProcessor.test.ts b/server/queues/processors/JSONImportsProcessor.test.ts new file mode 100644 index 0000000000..ace00200a2 --- /dev/null +++ b/server/queues/processors/JSONImportsProcessor.test.ts @@ -0,0 +1,28 @@ +import { ImportState, IntegrationService } from "@shared/types"; +import { ImportTask } from "@server/models"; +import { buildImport } from "@server/test/factories"; +import JSONImportsProcessor from "./JSONImportsProcessor"; + +describe("JSONImportsProcessor", () => { + it("should error an import with no input", async () => { + const importModel = await buildImport({ + service: IntegrationService.JSON, + input: [], + }); + + await new JSONImportsProcessor().perform({ + name: "imports.create", + modelId: importModel.id, + teamId: importModel.teamId, + actorId: importModel.createdById, + ip: "127.0.0.1", + }); + + await importModel.reload(); + expect(importModel.state).toEqual(ImportState.Errored); + expect(importModel.error).toEqual("Nothing to import"); + expect( + await ImportTask.count({ where: { importId: importModel.id } }) + ).toEqual(0); + }); +}); diff --git a/server/queues/tasks/APIImportTask.test.ts b/server/queues/tasks/APIImportTask.test.ts new file mode 100644 index 0000000000..ce2d0c1bb7 --- /dev/null +++ b/server/queues/tasks/APIImportTask.test.ts @@ -0,0 +1,128 @@ +import { randomUUID } from "node:crypto"; +import { describe, expect, it } from "vitest"; +import { + ImportState, + ImportTaskPhase, + ImportTaskState, + IntegrationService, +} from "@shared/types"; +import { Import, ImportTask } from "@server/models"; +import { buildImport } from "@server/test/factories"; +import type { ProcessOutput } from "./APIImportTask"; +import APIImportTask from "./APIImportTask"; + +type Service = IntegrationService.JSON; + +class TestImportTask extends APIImportTask { + public onAllTasksCompletedCallback?: () => Promise; + + protected processPage(): Promise> { + return Promise.resolve({ taskOutput: [], childTasksInput: [] }); + } + + protected scheduleNextTask(): Promise { + return Promise.resolve(); + } + + protected async onAllTasksCompleted(): Promise { + await this.onAllTasksCompletedCallback?.(); + } +} + +async function buildImportTask( + importState: ImportState, + taskState: ImportTaskState +) { + const importModel = await buildImport({ + service: IntegrationService.JSON, + state: importState, + }); + const importTask = await ImportTask.create>({ + state: taskState, + phase: ImportTaskPhase.Page, + input: [{ externalId: randomUUID() }], + importId: importModel.id, + }); + return { importModel, importTask }; +} + +describe("APIImportTask", () => { + describe("onCompletion", () => { + it("marks the import as processed", async () => { + const { importModel, importTask } = await buildImportTask( + ImportState.InProgress, + ImportTaskState.Completed + ); + + await new TestImportTask().perform({ importTaskId: importTask.id }); + + await importModel.reload(); + expect(importModel.state).toBe(ImportState.Processed); + }); + + it("does not overwrite a cancel that commits while the task runs", async () => { + const { importModel, importTask } = await buildImportTask( + ImportState.InProgress, + ImportTaskState.Completed + ); + + const task = new TestImportTask(); + task.onAllTasksCompletedCallback = async () => { + await Import.update( + { state: ImportState.Canceled }, + { where: { id: importModel.id } } + ); + }; + await task.perform({ importTaskId: importTask.id }); + + await importModel.reload(); + expect(importModel.state).toBe(ImportState.Canceled); + }); + }); + + describe("onFailed", () => { + it("marks the task and import as errored", async () => { + const { importModel, importTask } = await buildImportTask( + ImportState.InProgress, + ImportTaskState.InProgress + ); + await importTask.update({ error: "Boom" }); + + await new TestImportTask().onFailed({ importTaskId: importTask.id }); + + await importModel.reload(); + await importTask.reload(); + expect(importTask.state).toBe(ImportTaskState.Errored); + expect(importModel.state).toBe(ImportState.Errored); + expect(importModel.error).toBe("Boom"); + }); + + it("does not change a canceled import", async () => { + const { importModel, importTask } = await buildImportTask( + ImportState.Canceled, + ImportTaskState.InProgress + ); + + await new TestImportTask().onFailed({ importTaskId: importTask.id }); + + await importModel.reload(); + await importTask.reload(); + expect(importModel.state).toBe(ImportState.Canceled); + expect(importTask.state).toBe(ImportTaskState.InProgress); + }); + + it("does not change a completed task", async () => { + const { importModel, importTask } = await buildImportTask( + ImportState.InProgress, + ImportTaskState.Completed + ); + + await new TestImportTask().onFailed({ importTaskId: importTask.id }); + + await importModel.reload(); + await importTask.reload(); + expect(importTask.state).toBe(ImportTaskState.Completed); + expect(importModel.state).toBe(ImportState.Errored); + }); + }); +}); diff --git a/server/queues/tasks/APIImportTask.ts b/server/queues/tasks/APIImportTask.ts index 2e63fd460c..6aecf57217 100644 --- a/server/queues/tasks/APIImportTask.ts +++ b/server/queues/tasks/APIImportTask.ts @@ -40,13 +40,6 @@ export type ProcessOutput = { childTasksInput: ImportTaskInput; }; -const FinishedImportStates = [ - ImportState.Processed, - ImportState.Completed, - ImportState.Errored, - ImportState.Canceled, -]; - type Props = { /** id of the import_task */ importTaskId: string; @@ -78,9 +71,8 @@ export default abstract class APIImportTask< return; } - // Don't process any further when the associated import is canceled by the - // user or has already finished. - if (FinishedImportStates.includes(importTask.import.state)) { + // Stop when the import has ended, or its tasks are all processed already. + if (this.isFinished(importTask.import.state)) { if (importTask.state !== ImportTaskState.Completed) { importTask.state = ImportTaskState.Canceled; await importTask.save(); @@ -142,15 +134,8 @@ export default abstract class APIImportTask< const importTask = await ImportTask.findByPk>( importTaskId, { - include: [ - { - model: Import, - as: "import", - required: true, - }, - ], transaction, - lock: Transaction.LOCK.UPDATE, + lock: { level: Transaction.LOCK.NO_KEY_UPDATE, of: ImportTask }, } ); @@ -158,10 +143,24 @@ export default abstract class APIImportTask< return; } - importTask.state = ImportTaskState.Errored; - await importTask.save({ transaction }); + const associatedImport = await this.lockImport( + importTask.importId, + transaction + ); + if (!associatedImport) { + return; + } + + // Keep the outcome of a cancel or of a finished import. + if (this.isFinished(associatedImport.state)) { + return; + } + + if (importTask.state !== ImportTaskState.Completed) { + importTask.state = ImportTaskState.Errored; + await importTask.save({ transaction }); + } - const associatedImport = importTask.import; associatedImport.error = importTask.error; // copy error from ImportTask that caused the failure. associatedImport.state = ImportState.Errored; await associatedImport.saveWithCtx( @@ -267,7 +266,16 @@ export default abstract class APIImportTask< await this.onAllTasksCompleted(importTask); await sequelize.transaction(async (transaction) => { - const associatedImport = importTask.import; + const associatedImport = await this.lockImport( + importTask.importId, + transaction + ); + + // The import may have been canceled while this task was running. + if (!associatedImport || this.isFinished(associatedImport.state)) { + return; + } + associatedImport.state = ImportState.Processed; await associatedImport.saveWithCtx( createContext({ @@ -280,6 +288,32 @@ export default abstract class APIImportTask< }); } + /** + * Whether the import has ended, or its tasks are all processed already. + * + * @param state state of the import. + * @returns true if no more import tasks should change the import. + */ + private isFinished(state: ImportState) { + return ( + state === ImportState.Processed || Import.terminalStates.includes(state) + ); + } + + /** + * Load the import with a row lock so that concurrent state changes are not lost. + * + * @param importId id of the import. + * @param transaction transaction to hold the lock in. + * @returns the locked import, or null if it does not exist. + */ + private lockImport(importId: string, transaction: Transaction) { + return Import.findByPk>(importId, { + transaction, + lock: { level: transaction.LOCK.NO_KEY_UPDATE, of: Import }, + }); + } + /** * Whether the base class should create Attachment rows and upload S3 blobs * per page during `onProcess`. Defaults to `true` for sources whose diff --git a/server/queues/tasks/CacheIssueSourcesTask.ts b/server/queues/tasks/CacheIssueSourcesTask.ts index bbd05375f1..90faad5d05 100644 --- a/server/queues/tasks/CacheIssueSourcesTask.ts +++ b/server/queues/tasks/CacheIssueSourcesTask.ts @@ -27,7 +27,10 @@ export default class CacheIssueSourcesTask extends BaseTask { const sources = await plugin.value.fetchSources(integration); await sequelize.transaction(async (transaction) => { - await integration.reload({ transaction, lock: transaction.LOCK.UPDATE }); + await integration.reload({ + transaction, + lock: transaction.LOCK.NO_KEY_UPDATE, + }); integration.issueSources = sources; await integration.save({ transaction }); }); diff --git a/server/queues/tasks/CleanupDemotedUserTask.ts b/server/queues/tasks/CleanupDemotedUserTask.ts index cb45ae25f8..08e2b8be72 100644 --- a/server/queues/tasks/CleanupDemotedUserTask.ts +++ b/server/queues/tasks/CleanupDemotedUserTask.ts @@ -32,7 +32,10 @@ export default class CleanupDemotedUserTask extends BaseTask { enabled: true, }, transaction, - lock: transaction.LOCK.UPDATE, + lock: { + level: transaction.LOCK.NO_KEY_UPDATE, + of: WebhookSubscription, + }, }); await Promise.all( subscriptions.map((subscription) => diff --git a/server/queues/tasks/CleanupOldImportsTask.ts b/server/queues/tasks/CleanupOldImportsTask.ts index b4cd0c8871..3b57ede2c3 100644 --- a/server/queues/tasks/CleanupOldImportsTask.ts +++ b/server/queues/tasks/CleanupOldImportsTask.ts @@ -1,6 +1,5 @@ import { subDays } from "date-fns"; import { Op } from "sequelize"; -import { ImportState } from "@shared/types"; import Logger from "@server/logging/Logger"; import { Import, ImportTask } from "@server/models"; import { TaskPriority } from "./base/BaseTask"; @@ -22,11 +21,7 @@ export default class CleanupOldImportsTask extends CronTask { { attributes: ["id"], where: { - state: [ - ImportState.Completed, - ImportState.Errored, - ImportState.Canceled, - ], + state: [...Import.terminalStates], createdAt: { [Op.lt]: cutoffDate, }, diff --git a/server/queues/tasks/InviteReminderTask.ts b/server/queues/tasks/InviteReminderTask.ts index 4a84e95aae..aea9d454e9 100644 --- a/server/queues/tasks/InviteReminderTask.ts +++ b/server/queues/tasks/InviteReminderTask.ts @@ -24,7 +24,7 @@ export default class InviteReminderTask extends CronTask { await sequelize.transaction(async (transaction) => { const user = await User.scope("withTeam").findByPk(userId, { lock: { - level: transaction.LOCK.UPDATE, + level: transaction.LOCK.NO_KEY_UPDATE, of: User, }, transaction, diff --git a/server/queues/tasks/JSONAPIImportTask.ts b/server/queues/tasks/JSONAPIImportTask.ts index 7fd1223a1b..88e7024500 100644 --- a/server/queues/tasks/JSONAPIImportTask.ts +++ b/server/queues/tasks/JSONAPIImportTask.ts @@ -24,6 +24,7 @@ import type { ImportTask } from "@server/models"; import { Attachment } from "@server/models"; import AttachmentHelper from "@server/models/helpers/AttachmentHelper"; import { ProsemirrorDataHelper } from "@shared/utils/ProsemirrorDataHelper"; +import { ImportValidation } from "@shared/validations"; import { sequelize } from "@server/storage/database"; import FileStorage from "@server/storage/files"; import type { @@ -240,6 +241,11 @@ export default class JSONAPIImportTask extends APIImportTask { `Could not parse ${node.name}. ${err instanceof Error ? err.message : "unknown error"}` ); } + }, + // Text read from the archive may not exceed the upload size limit. + { + maxEntries: ImportValidation.maxZipEntries, + maxTotalSize: maxJSONSize, } ); diff --git a/server/queues/tasks/MarkdownAPIImportTask.ts b/server/queues/tasks/MarkdownAPIImportTask.ts index a05f8c2d4a..032ed1feb4 100644 --- a/server/queues/tasks/MarkdownAPIImportTask.ts +++ b/server/queues/tasks/MarkdownAPIImportTask.ts @@ -5,7 +5,11 @@ import mime from "mime-types"; import type { Node } from "prosemirror-model"; import { UniqueConstraintError } from "sequelize"; import { replaceMarkdownLinks } from "@shared/utils/markdown"; -import { CollectionValidation, DocumentValidation } from "@shared/validations"; +import { + CollectionValidation, + DocumentValidation, + ImportValidation, +} from "@shared/validations"; import type { ImportTaskInput, ImportTaskOutput, @@ -288,6 +292,13 @@ export default class MarkdownAPIImportTask extends APIImportTask { ); markdownByNode.set(node, buffer.toString("utf8")); } + }, + // Text read from the archive may not exceed the upload size limit. + { + maxEntries: ImportValidation.maxZipEntries, + maxTotalSize: AttachmentHelper.presetToMaxUploadSize( + AttachmentPreset.WorkspaceImport + ), } ); diff --git a/server/queues/tasks/UpdateDocumentsPopularityScoreTask.test.ts b/server/queues/tasks/UpdateDocumentsPopularityScoreTask.test.ts index 31cac930ad..66380ca518 100644 --- a/server/queues/tasks/UpdateDocumentsPopularityScoreTask.test.ts +++ b/server/queues/tasks/UpdateDocumentsPopularityScoreTask.test.ts @@ -347,4 +347,34 @@ describe("UpdateDocumentsPopularityScoreTask", () => { expect(Number(updatedDraft?.popularityScore)).toEqual(0); expect(Number(updatedDeleted?.popularityScore)).toEqual(0); }); + + it("should update documents that hold a key share lock", async () => { + const team = await buildTeam(); + const document = await buildDocument({ + teamId: team.id, + publishedAt: new Date(), + }); + await DocumentInsight.create({ + documentId: document.id, + teamId: team.id, + date: dayStr(new Date()), + revisionCount: 1, + }); + + // Inserts into tables that reference documents take this lock. + const transaction = await sequelize.transaction(); + try { + await sequelize.query( + `SELECT id FROM documents WHERE id = :id FOR KEY SHARE`, + { replacements: { id: document.id }, transaction } + ); + + await task.perform(props); + } finally { + await transaction.rollback(); + } + + const updated = await Document.findByPk(document.id); + expect(Number(updated?.popularityScore)).toBeGreaterThan(0); + }); }); diff --git a/server/queues/tasks/UpdateDocumentsPopularityScoreTask.ts b/server/queues/tasks/UpdateDocumentsPopularityScoreTask.ts index d4f7aef286..fee8093e9e 100644 --- a/server/queues/tasks/UpdateDocumentsPopularityScoreTask.ts +++ b/server/queues/tasks/UpdateDocumentsPopularityScoreTask.ts @@ -418,10 +418,11 @@ export default class UpdateDocumentsPopularityScoreTask extends CronTask { // Update documents in a single batch to improve performance and reduce round-trips. // We use unnest with multiple arrays to ensure the IDs and scores stay aligned. // We also use SKIP LOCKED to avoid waiting on locked rows from other concurrent tasks. + // NO KEY UPDATE does not block the KEY SHARE locks taken by inserts that reference documents. await sequelize.query( ` WITH lockable AS ( - SELECT id FROM documents WHERE id = ANY(ARRAY[:ids]::uuid[]) FOR UPDATE SKIP LOCKED + SELECT id FROM documents WHERE id = ANY(ARRAY[:ids]::uuid[]) FOR NO KEY UPDATE SKIP LOCKED ) UPDATE documents AS d SET "popularityScore" = s.score diff --git a/server/queues/tasks/UploadUserAvatarTask.test.ts b/server/queues/tasks/UploadUserAvatarTask.test.ts new file mode 100644 index 0000000000..5d18f06345 --- /dev/null +++ b/server/queues/tasks/UploadUserAvatarTask.test.ts @@ -0,0 +1,83 @@ +import { UserAuthentication } from "@server/models"; +import FileStorage from "@server/storage/files"; +import { buildUser } from "@server/test/factories"; +import UploadUserAvatarTask from "./UploadUserAvatarTask"; + +const avatarUrl = "https://graph.microsoft.com/v1.0/me/photo/$value"; + +describe("UploadUserAvatarTask", () => { + afterEach(() => { + vi.restoreAllMocks(); + }); + + it("should fetch the avatar with the stored access token", async () => { + const storeFromUrl = vi + .spyOn(FileStorage, "storeFromUrl") + .mockResolvedValue({ + url: "https://example.com/avatar.png", + contentType: "image/png", + contentLength: 100, + }); + const user = await buildUser(); + const authentication = await UserAuthentication.findOne({ + where: { userId: user.id }, + rejectOnEmpty: true, + }); + await authentication.update({ accessToken: "token" }); + + await new UploadUserAvatarTask().perform({ + userId: user.id, + avatarUrl, + userAuthenticationId: authentication.id, + }); + + expect(storeFromUrl).toHaveBeenCalledWith( + avatarUrl, + expect.any(String), + expect.any(String), + { headers: { Authorization: "Bearer token" } }, + expect.any(Object) + ); + await user.reload(); + expect(user.avatarUrl).toContain("attachments.redirect"); + }); + + it("should not fetch with the authentication of another user", async () => { + const storeFromUrl = vi.spyOn(FileStorage, "storeFromUrl"); + const user = await buildUser(); + const other = await buildUser({ teamId: user.teamId }); + const authentication = await UserAuthentication.findOne({ + where: { userId: other.id }, + rejectOnEmpty: true, + }); + await authentication.update({ accessToken: "token" }); + + await new UploadUserAvatarTask().perform({ + userId: user.id, + avatarUrl, + userAuthenticationId: authentication.id, + }); + + expect(storeFromUrl).not.toHaveBeenCalled(); + }); + + it("should fetch without authorization when no authentication is given", async () => { + const storeFromUrl = vi + .spyOn(FileStorage, "storeFromUrl") + .mockResolvedValue(undefined); + const user = await buildUser(); + + await new UploadUserAvatarTask().perform({ + userId: user.id, + avatarUrl: "https://example.com/avatar.png", + }); + + expect(storeFromUrl).toHaveBeenCalledWith( + "https://example.com/avatar.png", + expect.any(String), + expect.any(String), + undefined, + expect.any(Object) + ); + }); +}); diff --git a/server/queues/tasks/UploadUserAvatarTask.ts b/server/queues/tasks/UploadUserAvatarTask.ts index 9d11bb016a..ac4c380e55 100644 --- a/server/queues/tasks/UploadUserAvatarTask.ts +++ b/server/queues/tasks/UploadUserAvatarTask.ts @@ -2,7 +2,7 @@ import { createHash } from "node:crypto"; import { AttachmentPreset } from "@shared/types"; import attachmentCreator from "@server/commands/attachmentCreator"; import { createContext } from "@server/context"; -import { Attachment, User } from "@server/models"; +import { Attachment, User, UserAuthentication } from "@server/models"; import { BaseTask, TaskPriority } from "./base/BaseTask"; type Props = { @@ -10,11 +10,17 @@ type Props = { userId: string; /** The original avatarUrl from the SSO provider */ avatarUrl: string; + /** + * The user authentication whose access token is sent as a bearer token when + * fetching the avatarUrl, for providers that require authorization. + */ + userAuthenticationId?: string; }; /** * A task that uploads the provided avatarUrl to S3 storage and updates the - * user's record with the new url. + * user's record with the new url. When a user authentication is provided, its + * access token is used to authorize the download. */ export default class UploadUserAvatarTask extends BaseTask { public async perform(props: Props) { @@ -42,12 +48,26 @@ export default class UploadUserAvatarTask extends BaseTask { } } + let fetchOptions; + if (props.userAuthenticationId) { + const authentication = await UserAuthentication.findOne({ + where: { id: props.userAuthenticationId, userId: user.id }, + }); + if (!authentication?.accessToken) { + return; + } + fetchOptions = { + headers: { Authorization: `Bearer ${authentication.accessToken}` }, + }; + } + const attachment = await attachmentCreator({ name: hash, url: props.avatarUrl, user, preset: AttachmentPreset.Avatar, ctx: createContext({ user }), + fetchOptions, }); if (attachment) { diff --git a/server/routes/api/accessRequests/accessRequests.ts b/server/routes/api/accessRequests/accessRequests.ts index 4cac8af61a..3ab19d5d6b 100644 --- a/server/routes/api/accessRequests/accessRequests.ts +++ b/server/routes/api/accessRequests/accessRequests.ts @@ -99,7 +99,7 @@ router.post( const accessRequest = await AccessRequest.findByPk(id, { rejectOnEmpty: true, transaction, - lock: { level: transaction.LOCK.UPDATE, of: AccessRequest }, + lock: { level: transaction.LOCK.NO_KEY_UPDATE, of: AccessRequest }, }); const document = await Document.findByPk(accessRequest.documentId, { @@ -151,7 +151,7 @@ router.post( const accessRequest = await AccessRequest.findByPk(id, { rejectOnEmpty: true, transaction, - lock: { level: transaction.LOCK.UPDATE, of: AccessRequest }, + lock: { level: transaction.LOCK.NO_KEY_UPDATE, of: AccessRequest }, }); const document = await Document.findByPk(accessRequest.documentId, { diff --git a/server/routes/api/authenticationProviders/authenticationProviders.ts b/server/routes/api/authenticationProviders/authenticationProviders.ts index 63d0bcca83..34580ecff0 100644 --- a/server/routes/api/authenticationProviders/authenticationProviders.ts +++ b/server/routes/api/authenticationProviders/authenticationProviders.ts @@ -48,7 +48,7 @@ router.post( const authenticationProvider = await AuthenticationProvider.findByPk(id, { transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, }); authorize(user, "update", authenticationProvider); diff --git a/server/routes/api/batch/batch.test.ts b/server/routes/api/batch/batch.test.ts index 594f30da4e..c4d487afab 100644 --- a/server/routes/api/batch/batch.test.ts +++ b/server/routes/api/batch/batch.test.ts @@ -1,6 +1,7 @@ import { RateLimiterRes } from "rate-limiter-flexible"; +import { DatabaseError } from "sequelize"; import env from "@server/env"; -import { Collection } from "@server/models"; +import { Collection, Document as DocumentModel } from "@server/models"; import type { Document, User } from "@server/models"; import { buildAdmin, @@ -270,6 +271,34 @@ describe("#batch", () => { expect(body.data[0].error).toEqual("not_found"); }); + it("should return a request timeout when a sub-request waits too long for a lock", async () => { + const parent = Object.assign( + new Error("canceling statement due to lock timeout"), + { code: "55P03", sql: "" } + ); + vi.spyOn(DocumentModel, "findByPk").mockRejectedValueOnce( + new DatabaseError(parent) + ); + + const res = await server.post("/api/batch", user, { + body: { + requests: [ + { + method: "documents.update", + body: { id: documentOne.id, title: "Updated" }, + }, + ], + }, + }); + const body = await res.json(); + vi.restoreAllMocks(); + + expect(res.status).toEqual(200); + expect(body.data[0].ok).toBe(false); + expect(body.data[0].status).toEqual(503); + expect(body.data[0].error).toEqual("request_timeout"); + }); + it("should surface per-request validation errors", async () => { const res = await server.post("/api/batch", user, { body: { diff --git a/server/routes/api/collections/collections.test.ts b/server/routes/api/collections/collections.test.ts index 8a32822258..63464f91b7 100644 --- a/server/routes/api/collections/collections.test.ts +++ b/server/routes/api/collections/collections.test.ts @@ -1875,7 +1875,7 @@ describe("#collections.memberships", () => { it("should allow filtering members in collection by name", async () => { const team = await buildTeam(); - const user = await buildUser({ teamId: team.id }); + const user = await buildUser({ teamId: team.id, name: "Alice Smith" }); const collection = await buildCollection({ userId: user.id, teamId: team.id, diff --git a/server/routes/api/comments/comments.ts b/server/routes/api/comments/comments.ts index 6cf475741f..84041db547 100644 --- a/server/routes/api/comments/comments.ts +++ b/server/routes/api/comments/comments.ts @@ -51,7 +51,7 @@ router.post( where: { id: documentId }, attributes: ["id"], transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, }); } @@ -230,7 +230,7 @@ router.post( transaction, rejectOnEmpty: true, lock: { - level: transaction.LOCK.UPDATE, + level: transaction.LOCK.NO_KEY_UPDATE, of: Comment, }, }); @@ -306,7 +306,7 @@ router.post( transaction, rejectOnEmpty: true, lock: { - level: transaction.LOCK.UPDATE, + level: transaction.LOCK.NO_KEY_UPDATE, of: Comment, }, }); @@ -340,7 +340,7 @@ router.post( transaction, rejectOnEmpty: true, lock: { - level: transaction.LOCK.UPDATE, + level: transaction.LOCK.NO_KEY_UPDATE, of: Comment, }, }); @@ -376,7 +376,7 @@ router.post( transaction, rejectOnEmpty: true, lock: { - level: transaction.LOCK.UPDATE, + level: transaction.LOCK.NO_KEY_UPDATE, of: Comment, }, }); @@ -413,7 +413,7 @@ router.post( transaction, rejectOnEmpty: true, lock: { - level: transaction.LOCK.UPDATE, + level: transaction.LOCK.NO_KEY_UPDATE, of: Comment, }, }); @@ -469,7 +469,7 @@ router.post( transaction, rejectOnEmpty: true, lock: { - level: transaction.LOCK.UPDATE, + level: transaction.LOCK.NO_KEY_UPDATE, of: Comment, }, }); diff --git a/server/routes/api/documents/documents.ts b/server/routes/api/documents/documents.ts index ad40cfcb62..2da6e2e078 100644 --- a/server/routes/api/documents/documents.ts +++ b/server/routes/api/documents/documents.ts @@ -2119,7 +2119,7 @@ router.post( groupId, }, transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, rejectOnEmpty: true, }); diff --git a/server/routes/api/documents/schema.ts b/server/routes/api/documents/schema.ts index 4948645c95..149aa5415c 100644 --- a/server/routes/api/documents/schema.ts +++ b/server/routes/api/documents/schema.ts @@ -450,9 +450,6 @@ export const DocumentsUpdateSchema = BaseSchema.extend({ /** @deprecated Version of the API to be used, remove in a few releases */ apiVersion: z.number().optional(), - - /** Whether the editing session is complete */ - done: z.boolean().optional(), }), }) .refine( diff --git a/server/routes/api/fileOperations/fileOperations.ts b/server/routes/api/fileOperations/fileOperations.ts index 60901391fb..a710c609c6 100644 --- a/server/routes/api/fileOperations/fileOperations.ts +++ b/server/routes/api/fileOperations/fileOperations.ts @@ -136,7 +136,7 @@ router.post( const fileOperation = await FileOperation.unscoped().findByPk(id, { rejectOnEmpty: true, transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, }); authorize(user, "delete", fileOperation); diff --git a/server/routes/api/groups/groups.ts b/server/routes/api/groups/groups.ts index 537bcfa89f..58ade1b0ba 100644 --- a/server/routes/api/groups/groups.ts +++ b/server/routes/api/groups/groups.ts @@ -286,7 +286,7 @@ router.post( externalGroupInclude, ], lock: { - level: transaction.LOCK.UPDATE, + level: transaction.LOCK.NO_KEY_UPDATE, of: Group, }, }); @@ -334,7 +334,7 @@ router.post( transaction, include: [externalGroupInclude], lock: { - level: transaction.LOCK.UPDATE, + level: transaction.LOCK.NO_KEY_UPDATE, of: Group, }, }); @@ -380,7 +380,7 @@ router.post( const groups = await Group.findAll({ where: { id: groupIds, teamId: user.teamId }, transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, }); // Each group is destroyed individually so that a delete event is diff --git a/server/routes/api/imports/imports.ts b/server/routes/api/imports/imports.ts index 809c5e8bbb..0d674f6481 100644 --- a/server/routes/api/imports/imports.ts +++ b/server/routes/api/imports/imports.ts @@ -209,7 +209,7 @@ router.post( const importModel = await Import.findByPk(id, { rejectOnEmpty: true, transaction, - lock: transaction.LOCK.UPDATE, + lock: { level: transaction.LOCK.NO_KEY_UPDATE, of: Import }, }); authorize(user, "delete", importModel); @@ -234,7 +234,7 @@ router.post( let importModel = await Import.findByPk(id, { rejectOnEmpty: true, transaction, - lock: transaction.LOCK.UPDATE, + lock: { level: transaction.LOCK.NO_KEY_UPDATE, of: Import }, }); authorize(user, "cancel", importModel); diff --git a/server/routes/api/imports/schema.ts b/server/routes/api/imports/schema.ts index dedd7fdf5b..cd3ef2a909 100644 --- a/server/routes/api/imports/schema.ts +++ b/server/routes/api/imports/schema.ts @@ -32,7 +32,7 @@ export const AttachmentImportBodySchema = z.object({ export const IntegrationImportBodySchema = z.object({ service: z.enum(ImportableIntegrationService), integrationId: z.uuid(), - input: z.array(BaseImportInputItemSchema), + input: z.array(BaseImportInputItemSchema).min(1), ...DestinationShape, }); diff --git a/server/routes/api/integrations/integrations.ts b/server/routes/api/integrations/integrations.ts index c528327807..b31b0038a7 100644 --- a/server/routes/api/integrations/integrations.ts +++ b/server/routes/api/integrations/integrations.ts @@ -130,7 +130,7 @@ router.post( const integration = await Integration.findByPk(id, { transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, }); authorize(user, "update", integration); @@ -166,7 +166,7 @@ router.post( const integration = await Integration.findByPk(id, { rejectOnEmpty: true, transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, }); authorize(user, "delete", integration); diff --git a/server/routes/api/middlewares/apiErrorHandler.ts b/server/routes/api/middlewares/apiErrorHandler.ts index 9b5499e9ce..0b99206c49 100644 --- a/server/routes/api/middlewares/apiErrorHandler.ts +++ b/server/routes/api/middlewares/apiErrorHandler.ts @@ -7,9 +7,18 @@ import { } from "sequelize"; import { AuthorizationError, + DatabaseReadOnlyError, NotFoundError, + RequestTimeoutError, + ServiceUnavailableError, ValidationError, } from "@server/errors"; +import Metrics from "@server/logging/Metrics"; +import { + isDatabaseReadOnlyError, + isDatabaseUnavailableError, + isQueryCanceledError, +} from "@server/storage/database"; /** Postgres codes for a requested date the database cannot represent. */ const DATE_RANGE_ERROR_CODES = new Set(["22008", "22015"]); @@ -62,6 +71,20 @@ export default function apiErrorHandler() { ); } + if (isQueryCanceledError(err)) { + transformedErr = RequestTimeoutError(); + } + + if (isDatabaseReadOnlyError(err)) { + Metrics.increment("database.read_only", { source: "api" }); + transformedErr = DatabaseReadOnlyError(); + } + + if (isDatabaseUnavailableError(err)) { + Metrics.increment("database.unavailable", { source: "api" }); + transformedErr = ServiceUnavailableError(); + } + if ( (err instanceof Error && "code" in err && err.code === "ENOENT") || err instanceof SequelizeEmptyResultError || diff --git a/server/routes/api/notifications/notifications.ts b/server/routes/api/notifications/notifications.ts index 811a1d1d1b..af56d48591 100644 --- a/server/routes/api/notifications/notifications.ts +++ b/server/routes/api/notifications/notifications.ts @@ -49,7 +49,7 @@ const unsubscribe = async (ctx: APIContext) => { const user = await User.scope("withTeam").findByPk(userId, { rejectOnEmpty: true, - lock: transaction.LOCK.UPDATE, + lock: { level: transaction.LOCK.NO_KEY_UPDATE, of: User }, transaction, }); diff --git a/server/routes/api/oauthClients/oauthClients.ts b/server/routes/api/oauthClients/oauthClients.ts index 0afd6c400f..1e78cf8aac 100644 --- a/server/routes/api/oauthClients/oauthClients.ts +++ b/server/routes/api/oauthClients/oauthClients.ts @@ -154,7 +154,7 @@ router.post( const oauthClient = await OAuthClient.findByPk(id, { transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, rejectOnEmpty: true, }); authorize(user, "update", oauthClient); @@ -183,7 +183,7 @@ router.post( const oauthClient = await OAuthClient.findByPk(id, { transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, rejectOnEmpty: true, }); authorize(user, "update", oauthClient); @@ -212,7 +212,7 @@ router.post( const oauthClient = await OAuthClient.findByPk(id, { transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, rejectOnEmpty: true, }); authorize(user, "delete", oauthClient); diff --git a/server/routes/api/revisions/revisions.ts b/server/routes/api/revisions/revisions.ts index 2db08d82dd..86b6912bb6 100644 --- a/server/routes/api/revisions/revisions.ts +++ b/server/routes/api/revisions/revisions.ts @@ -111,7 +111,7 @@ router.post( transaction, lock: { of: Revision, - level: transaction.LOCK.UPDATE, + level: transaction.LOCK.NO_KEY_UPDATE, }, }); const document = await Document.findByPk(revision.documentId, { diff --git a/server/routes/api/shares/shares.test.ts b/server/routes/api/shares/shares.test.ts index 8b1f22e393..a223e655aa 100644 --- a/server/routes/api/shares/shares.test.ts +++ b/server/routes/api/shares/shares.test.ts @@ -59,6 +59,24 @@ describe("#shares.list", () => { expect(body.data[0].documentTitle).toBe(document.title); }); + it("should return the update policy for document shares", async () => { + const admin = await buildAdmin(); + const document = await buildDocument({ + userId: admin.id, + teamId: admin.teamId, + }); + const share = await buildShare({ + documentId: document.id, + teamId: admin.teamId, + userId: admin.id, + }); + const res = await server.post("/api/shares.list", admin); + const body = await res.json(); + expect(res.status).toEqual(200); + expect(body.policies[0].id).toEqual(share.id); + expect(body.policies[0].abilities.update).toBeTruthy(); + }); + it("should allow filtering by document title", async () => { const user = await buildUser(); const document = await buildDocument({ diff --git a/server/routes/api/shares/shares.ts b/server/routes/api/shares/shares.ts index 42ce87d989..ccb3bd8da3 100644 --- a/server/routes/api/shares/shares.ts +++ b/server/routes/api/shares/shares.ts @@ -212,18 +212,14 @@ router.post( required: false, }, { - model: Document, + // Memberships are needed to compute the share policies. + model: Document.scope([ + "defaultScope", + { method: ["withMembership", user.id] }, + ]), required: false, paranoid: true, as: "document", - include: [ - { - model: Collection.scope({ - method: ["withMembership", user.id], - }), - as: "collection", - }, - ], }, { model: User, diff --git a/server/routes/api/suggestions/suggestions.test.ts b/server/routes/api/suggestions/suggestions.test.ts index f368ca0768..cb3b36fdc3 100644 --- a/server/routes/api/suggestions/suggestions.test.ts +++ b/server/routes/api/suggestions/suggestions.test.ts @@ -7,6 +7,7 @@ import { buildUser, } from "@server/test/factories"; import { getTestServer } from "@server/test/support"; +import SearchProviderManager from "@server/utils/SearchProviderManager"; const server = getTestServer(); @@ -116,6 +117,27 @@ describe("#suggestions.mention", () => { expect(body.data.users).toEqual([]); }); + it("should return the other sections when a section is too slow", async () => { + const user = await buildUser(); + const other = await buildUser({ teamId: user.teamId, name: "Elizabeth" }); + const spy = vi + .spyOn(SearchProviderManager.getProvider(), "searchTitlesForUser") + .mockReturnValue(new Promise(() => undefined)); + + try { + const res = await server.post("/api/suggestions.mention", user); + const body = await res.json(); + + expect(res.status).toEqual(200); + expect(body.data.documents).toEqual([]); + expect(body.data.users.map((u: { id: string }) => u.id)).toContain( + other.id + ); + } finally { + spy.mockRestore(); + } + }); + it("should require authentication", async () => { const res = await server.post("/api/suggestions.mention"); expect(res.status).toEqual(401); diff --git a/server/routes/api/suggestions/suggestions.ts b/server/routes/api/suggestions/suggestions.ts index 28b94bd1b2..ed674ee9ed 100644 --- a/server/routes/api/suggestions/suggestions.ts +++ b/server/routes/api/suggestions/suggestions.ts @@ -1,6 +1,9 @@ import Router from "@koa/router"; import { Op } from "sequelize"; import { Sequelize } from "sequelize-typescript"; +import { Second } from "@shared/utils/time"; +import { withinTimeLimit } from "@shared/utils/timers"; +import { addTags, getRootSpanFromRequestContext } from "@server/logging/tracer"; import auth from "@server/middlewares/authentication"; import validate from "@server/middlewares/validate"; import { Group, User } from "@server/models"; @@ -22,6 +25,9 @@ import * as T from "./schema"; const router = new Router(); +/** The time each section of the suggestions may take before it is left out. */ +const sectionTimeLimit = Second.ms; + router.post( "suggestions.mention", auth(), @@ -80,23 +86,51 @@ router.post( }; }; + const timedOut: string[] = []; + const withinLimit = ( + section: string, + run: () => Promise, + fallback: T + ) => + withinTimeLimit(run, sectionTimeLimit, fallback, () => { + timedOut.push(section); + }); + + // Presentation is part of each section, as presenters can also query. const [documents, { users, familiarity }, groups, collections] = await Promise.all([ - SearchProviderManager.getProvider().searchTitlesForUser(actor, { - query, - offset, - limit, - filter: { - operator: "AND", - filters: [ - { field: "archivedAt", operator: "isNull" }, - { field: "publishedAt", operator: "isNotNull" }, - ], - }, - }), - suggestUsers(), - can(actor, "listGroups", actor.team) - ? Group.findAll({ + withinLimit( + "documents", + async () => + presentDocuments( + ctx, + await SearchProviderManager.getProvider().searchTitlesForUser( + actor, + { + query, + offset, + limit, + filter: { + operator: "AND", + filters: [ + { field: "archivedAt", operator: "isNull" }, + { field: "publishedAt", operator: "isNotNull" }, + ], + }, + } + ) + ), + [] + ), + withinLimit("users", suggestUsers, { users: [], familiarity: {} }), + withinLimit( + "groups", + async () => { + if (!can(actor, "listGroups", actor.team)) { + return []; + } + + const found = await Group.findAll({ where: { teamId: actor.teamId, disableMentions: false, @@ -107,34 +141,49 @@ router.post( : {}, }, order: [["name", "ASC"]], - replacements: { query: QueryHelper.likeContains(query ?? "") }, + replacements: { + query: QueryHelper.likeContains(query ?? ""), + }, offset, limit, - }) - : [], - SearchProviderManager.getProvider().searchCollectionsForUser(actor, { - query, - offset, - limit, - }), + }); + return Promise.all(found.map((group) => presentGroup(group))); + }, + [] + ), + withinLimit( + "collections", + () => + SearchProviderManager.getProvider().searchCollectionsForUser( + actor, + { + query, + offset, + limit, + } + ), + [] + ), ]); - const [presentedDocuments, presentedGroups] = await Promise.all([ - presentDocuments(ctx, documents), - Promise.all(groups.map((group) => presentGroup(group))), - ]); + if (timedOut.length) { + addTags( + { "suggestions.timedOut": timedOut.join(",") }, + getRootSpanFromRequestContext(ctx) + ); + } ctx.body = { pagination: ctx.state.pagination, data: { - documents: presentedDocuments, + documents, users: users.map((user) => presentUser(user, { includeEmail: !!can(actor, "readEmail", user), includeDetails: !!can(actor, "readDetails", user), }) ), - groups: presentedGroups, + groups, collections, familiarity, }, diff --git a/server/routes/api/teams/teams.ts b/server/routes/api/teams/teams.ts index 2d2e7061c0..6746a617ff 100644 --- a/server/routes/api/teams/teams.ts +++ b/server/routes/api/teams/teams.ts @@ -24,7 +24,7 @@ const handleTeamUpdate = async (ctx: APIContext) => { const { user } = ctx.state.auth; const team = await Team.findByPk(user.teamId, { include: [{ model: TeamDomain, separate: true }], - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, transaction, }); authorize(user, "update", team); diff --git a/server/routes/api/userMemberships/userMemberships.ts b/server/routes/api/userMemberships/userMemberships.ts index bcbe96b939..9127ea0e64 100644 --- a/server/routes/api/userMemberships/userMemberships.ts +++ b/server/routes/api/userMemberships/userMemberships.ts @@ -97,7 +97,7 @@ router.post( const membership = await UserMembership.scope("withUser").findByPk(id, { transaction, lock: { - level: transaction.LOCK.UPDATE, + level: transaction.LOCK.NO_KEY_UPDATE, of: UserMembership, }, rejectOnEmpty: true, diff --git a/server/routes/api/users/users.ts b/server/routes/api/users/users.ts index 40129ca80d..ec5b1d8300 100644 --- a/server/routes/api/users/users.ts +++ b/server/routes/api/users/users.ts @@ -237,7 +237,7 @@ router.get( try { const res = await getDetailsForEmailUpdateToken(code as string, { transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, }); user = res.user; email = res.email; @@ -281,7 +281,7 @@ router.post( user = await User.findByPk(id, { rejectOnEmpty: true, transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, }); } authorize(actor, "update", user); @@ -382,13 +382,13 @@ async function updateRole(ctx: APIContext) { const user = await User.findByPk(userId, { transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, }); authorize(actor, "update", user); await Team.findByPk(user.teamId, { transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, }); let name; @@ -435,7 +435,7 @@ router.post( const user = await User.findByPk(userId, { rejectOnEmpty: true, transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, }); authorize(actor, "suspend", user); @@ -472,7 +472,7 @@ router.post( const user = await User.findByPk(userId, { rejectOnEmpty: true, transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, }); authorize(actor, "activate", user); @@ -539,7 +539,7 @@ router.post( const actor = auth.user; const user = await User.findByPk(id, { - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, transaction, }); authorize(actor, "resendInvite", user); @@ -618,7 +618,7 @@ router.post( user = await User.findByPk(id, { rejectOnEmpty: true, transaction, - lock: transaction.LOCK.UPDATE, + lock: transaction.LOCK.NO_KEY_UPDATE, }); } else { user = actor; diff --git a/server/routes/app.ts b/server/routes/app.ts index 8e6324a384..f07e251ae5 100644 --- a/server/routes/app.ts +++ b/server/routes/app.ts @@ -1,6 +1,7 @@ import fs from "node:fs"; import path from "node:path"; import util from "node:util"; +import Router from "@koa/router"; import type { Context, Next } from "koa"; import { escape } from "es-toolkit/compat"; import { isbot } from "isbot"; @@ -26,7 +27,28 @@ import { getTeamFromContext } from "@server/utils/passport"; import prefetchTags from "@server/utils/prefetchTags"; import readManifestFile from "@server/utils/readManifestFile"; import { RedisPrefixHelper } from "@server/utils/RedisPrefixHelper"; +import { isInvalidAppPath } from "@server/utils/url"; import { loadPublicShare } from "@server/commands/shareLoader"; +import { + getWorkspaceRedirectUrl, + getWorkspaceRenderOptions, +} from "./workspace"; + +/** Options used to render the app shell. */ +export interface AppRenderOptions { + title?: string; + description?: string; + content?: string; + canonical?: string; + shortcutIcon?: string; + image?: string; + siteName?: string; + rootShareId?: string; + isShare?: boolean; + markdownUrl?: string; + analytics?: Integration[]; + allowIndexing?: boolean; +} const readFile = util.promisify(fs.readFile); const entry = "app/index.tsx"; @@ -139,20 +161,7 @@ const readIndexFile = async (): Promise => { export const renderApp = async ( ctx: Context, next: Next, - options: { - title?: string; - description?: string; - content?: string; - canonical?: string; - shortcutIcon?: string; - image?: string; - siteName?: string; - rootShareId?: string; - isShare?: boolean; - markdownUrl?: string; - analytics?: Integration[]; - allowIndexing?: boolean; - } = {} + options: AppRenderOptions = {} ) => { const { title = env.APP_NAME, @@ -444,3 +453,23 @@ export const renderShare = async (ctx: Context, next: Next) => { markdownUrl: document || collection ? markdownUrl : undefined, }); }; + +const router = new Router(); + +router.get("{/*path}", async (ctx, next) => { + if (isInvalidAppPath(ctx.path)) { + ctx.status = 404; + return; + } + + const team = await getTeamFromContext(ctx); + const redirectUrl = await getWorkspaceRedirectUrl(ctx, team); + if (redirectUrl) { + ctx.redirect(redirectUrl); + return; + } + + return renderApp(ctx, next, await getWorkspaceRenderOptions(team)); +}); + +export default router; diff --git a/server/routes/assets.ts b/server/routes/assets.ts new file mode 100644 index 0000000000..9520b079e7 --- /dev/null +++ b/server/routes/assets.ts @@ -0,0 +1,151 @@ +import crypto from "node:crypto"; +import { readFile } from "node:fs/promises"; +import path from "node:path"; +import Router from "@koa/router"; +import { send } from "@koa/send"; +import { languages } from "@shared/i18n"; +import { Day } from "@shared/utils/time"; +import env from "@server/env"; +import { NotFoundError } from "@server/errors"; + +const router = new Router(); + +router.get( + ["/images/{*path}", "/email/{*path}", "/fonts/{*path}"], + async (ctx, next) => { + let sent; + + try { + sent = await send(ctx, ctx.path, { + root: path.resolve(__dirname, "../../../public"), + // 7 day expiry, these assets are mostly static but do not contain a hash + maxAge: Day.ms * 7, + setHeaders: (res) => { + res.setHeader("Access-Control-Allow-Origin", "*"); + }, + }); + } catch (err) { + if (!isNotFound(err)) { + throw err; + } + } + + if (!sent) { + await next(); + } + } +); + +if (env.isProduction) { + router.get("/static/{*path}", async (ctx) => { + try { + const pathname = ctx.path.substring(8); + if (!pathname) { + throw NotFoundError(); + } + + await send(ctx, pathname, { + root: path.join(__dirname, "../../app/"), + // Hashed static assets get 1 year expiry plus immutable flag + maxAge: Day.ms * 365, + immutable: true, + setHeaders: (res, filePath) => { + res.setHeader("Service-Worker-Allowed", "/"); + res.setHeader("Access-Control-Allow-Origin", "*"); + + // The service worker is not hashed and must always be revalidated + // so that browsers detect and install new versions. + if (path.basename(filePath) === "sw.js") { + res.setHeader("Cache-Control", "no-cache"); + } + }, + }); + } catch (err) { + // Serve a bad request instead of not found if the file doesn't exist, + // this prevents CDNs from caching the response and allows them to + // continue serving old file versions. + if (isNotFound(err)) { + ctx.status = 400; + return; + } + + throw err; + } + }); +} + +router.get("/locales/:lng.json", async (ctx) => { + const lng = languages.find((language) => language === ctx.params.lng); + + if (!lng) { + ctx.status = 404; + return; + } + + const locale = await loadClientLocale(lng); + + ctx.set("Cache-Control", `public, max-age=${7 * Day.seconds}`); + ctx.set("ETag", locale.etag); + ctx.set("Access-Control-Allow-Origin", "*"); + ctx.type = "application/json"; + ctx.status = 200; + + if (ctx.fresh) { + ctx.status = 304; + return; + } + + ctx.body = locale.body; +}); + +type Language = (typeof languages)[number]; + +interface ClientLocale { + body: string; + etag: string; +} + +const clientLocales = new Map(); + +/** + * Loads a translation file for the client, without the entries that match + * their key. The client shows the key when an entry is missing, so the result + * does not change. + * + * @param lng A supported language in CLDR format (en_US). + * @returns the JSON body and its ETag. + */ +async function loadClientLocale(lng: Language): Promise { + const cached = clientLocales.get(lng); + if (cached) { + return cached; + } + + const file = path.join( + __dirname, + "../../shared/i18n/locales", + lng, + "translation.json" + ); + const translations: Record = JSON.parse( + await readFile(file, "utf8") + ); + const body = JSON.stringify( + Object.fromEntries( + Object.entries(translations).filter(([key, value]) => key !== value) + ) + ); + const locale = { + body, + etag: `"${crypto.createHash("md5").update(body).digest("hex")}"`, + }; + + clientLocales.set(lng, locale); + return locale; +} + +function isNotFound(err: unknown): boolean { + return err instanceof Error && "status" in err && err.status === 404; +} + +export default router; diff --git a/server/routes/auth/index.test.ts b/server/routes/auth/index.test.ts index adade4cd10..67804cda76 100644 --- a/server/routes/auth/index.test.ts +++ b/server/routes/auth/index.test.ts @@ -82,6 +82,31 @@ describe("auth/redirect", () => { expect(res.status).toEqual(401); }); + + it("should not accept a transfer token twice", async () => { + const user = await buildUser(); + const token = user.getTransferToken(); + + const first = await server.get(`/auth/redirect?token=${token}`, { + redirect: "manual", + }); + expect(first.status).toEqual(302); + + const second = await server.get(`/auth/redirect?token=${token}`, { + redirect: "manual", + }); + expect(second.status).toEqual(401); + }); + + it("should not accept a transfer token on the API", async () => { + const user = await buildUser(); + const res = await server.post("/api/auth.info", { + headers: { + Authorization: `Bearer ${user.getTransferToken()}`, + }, + }); + expect(res.status).toEqual(401); + }); }); describe("auth provider routes", () => { diff --git a/server/routes/auth/index.ts b/server/routes/auth/index.ts index 089badbad3..5d7352a12a 100644 --- a/server/routes/auth/index.ts +++ b/server/routes/auth/index.ts @@ -8,11 +8,10 @@ import authMiddleware from "@server/middlewares/authentication"; import coalesceBody from "@server/middlewares/coaleseBody"; import { Collection, Team, View } from "@server/models"; import AuthenticationHelper from "@server/models/helpers/AuthenticationHelper"; -import type { AppState, AppContext, APIContext } from "@server/types"; -import { AuthenticationType } from "@server/types"; +import type { AppState, AppContext } from "@server/types"; import { verifyCSRFToken } from "@server/middlewares/csrf"; import { clearCSRFCookie } from "@server/utils/csrf"; -import { getJWTPayload } from "@server/utils/jwt"; +import { getUserForJWT } from "@server/utils/jwt"; const app = new Koa(); const router = new Router(); @@ -36,64 +35,61 @@ void (async () => { } })(); -router.get( - "/redirect", - authMiddleware({ type: AuthenticationType.APP }), - async (ctx: APIContext) => { - const { user, service } = ctx.state.auth; - - const payload = getJWTPayload(ctx.state.auth.token); - if (payload.type !== "transfer") { - throw AuthenticationError("Cannot extend token"); - } - - const expires = addMonths(new Date(), 3); - const jwtToken = user.getSessionToken(expires, service); - - // ensure that the lastActiveAt on user is updated to prevent replay requests - await user.updateActiveAt(ctx, true); - - ctx.cookies.set("accessToken", jwtToken, { - sameSite: "lax", - expires, - }); - clearCSRFCookie(ctx); - const [team, collection, view] = await Promise.all([ - Team.findByPk(user.teamId), - Collection.findFirstCollectionForUser(user), - View.findOne({ - where: { - userId: user.id, - }, - }), - ]); - - const defaultCollectionId = team?.defaultCollectionId; - - if (defaultCollectionId) { - const collection = await Collection.findOne({ - where: { - id: defaultCollectionId, - teamId: team.id, - ownerId: null, - }, - }); - - if (collection) { - ctx.redirect(`${team.url}${collection.path}`); - return; - } - } - - const hasViewedDocuments = !!view; - - ctx.redirect( - !hasViewedDocuments && collection - ? `${team?.url}${collection.path}/recent` - : `${team?.url}/home` - ); +router.get("/redirect", async (ctx: AppContext) => { + const { token } = ctx.request.query; + if (typeof token !== "string") { + throw AuthenticationError("Missing token"); } -); + + // Transfer tokens are only accepted here, to be exchanged for a session. + const { user, service } = await getUserForJWT(token, ["transfer"]); + + const expires = addMonths(new Date(), 3); + const jwtToken = user.getSessionToken(expires, service); + + // ensure that the lastActiveAt on user is updated to prevent replay requests + await user.updateActiveAt(ctx, true); + + ctx.cookies.set("accessToken", jwtToken, { + sameSite: "lax", + expires, + }); + clearCSRFCookie(ctx); + const [team, collection, view] = await Promise.all([ + Team.findByPk(user.teamId), + Collection.findFirstCollectionForUser(user), + View.findOne({ + where: { + userId: user.id, + }, + }), + ]); + + const defaultCollectionId = team?.defaultCollectionId; + + if (defaultCollectionId) { + const collection = await Collection.findOne({ + where: { + id: defaultCollectionId, + teamId: team.id, + ownerId: null, + }, + }); + + if (collection) { + ctx.redirect(`${team.url}${collection.path}`); + return; + } + } + + const hasViewedDocuments = !!view; + + ctx.redirect( + !hasViewedDocuments && collection + ? `${team?.url}${collection.path}/recent` + : `${team?.url}/home` + ); +}); app.use(bodyParser()); app.use(coalesceBody()); diff --git a/server/routes/embeds.ts b/server/routes/embeds.ts index 92943ead7f..598299a838 100644 --- a/server/routes/embeds.ts +++ b/server/routes/embeds.ts @@ -1,3 +1,4 @@ +import Router from "@koa/router"; import escape from "escape-html"; import type { Context, Next } from "koa"; import env from "@server/env"; @@ -224,3 +225,12 @@ ${resizeObserverScript(ctx)} return next(); }; + +const router = new Router(); + +router.get( + ["/embeds/gitlab", "/embeds/github", "/embeds/dropbox", "/embeds/pinterest"], + renderEmbed +); + +export default router; diff --git a/server/routes/index.test.ts b/server/routes/index.test.ts index fe262bee79..d85e54be38 100644 --- a/server/routes/index.test.ts +++ b/server/routes/index.test.ts @@ -480,12 +480,36 @@ describe("/locales/:lng.json", () => { expect(res.headers.get("content-type")).toContain("application/json"); expect(res.headers.get("cache-control")).toEqual("public, max-age=604800"); expect(res.headers.get("etag")).toBeTruthy(); - expect(res.headers.get("last-modified")).toBeTruthy(); expect(res.headers.get("access-control-allow-origin")).toEqual("*"); const body = await res.json(); expect(typeof body).toEqual("object"); }); + it("should omit entries that match their key", async () => { + const res = await server.get("/locales/en_US.json"); + const body: Record = await res.json(); + expect(body.Saving).toBeUndefined(); + expect(Object.entries(body).length).toBeGreaterThan(0); + for (const [key, value] of Object.entries(body)) { + expect(value).not.toEqual(key); + } + }); + + it("should keep translated entries", async () => { + const res = await server.get("/locales/de_DE.json"); + const body: Record = await res.json(); + expect(body.Saving).toEqual("Speichert"); + }); + + it("should return 304 when the ETag matches", async () => { + const res = await server.get("/locales/de_DE.json"); + const etag = res.headers.get("etag") ?? ""; + const cached = await server.get("/locales/de_DE.json", { + headers: { "If-None-Match": etag }, + }); + expect(cached.status).toEqual(304); + }); + it("should return 404 for an unknown language", async () => { const res = await server.get("/locales/xx_XX.json"); expect(res.status).toEqual(404); diff --git a/server/routes/index.ts b/server/routes/index.ts index d5cd833862..64dfcb836a 100644 --- a/server/routes/index.ts +++ b/server/routes/index.ts @@ -1,275 +1,29 @@ -import crypto from "node:crypto"; -import path from "node:path"; -import { formatRFC7231 } from "date-fns"; import Koa from "koa"; -import Router from "@koa/router"; -import { send } from "@koa/send"; -import { languages } from "@shared/i18n"; -import { TeamPreference } from "@shared/types"; -import { parseDomain } from "@shared/utils/domains"; -import { Day } from "@shared/utils/time"; import env from "@server/env"; -import { NotFoundError } from "@server/errors"; -import shareDomains from "@server/middlewares/shareDomains"; -import { Integration } from "@server/models"; -import { getSessionRedirectUrl } from "@server/utils/authentication"; -import { SessionsCookieHelper } from "@server/utils/SessionsCookieHelper"; -import { getTeamFromContext } from "@server/utils/passport"; -import { isInvalidAppPath } from "@server/utils/url"; -import apexRedirect from "../middlewares/apexRedirect"; -import { renderApp, renderShare } from "./app"; +import apexRedirect from "@server/middlewares/apexRedirect"; +import appHeaders from "@server/middlewares/appHeaders"; +import app from "./app"; +import assets from "./assets"; import discovery from "./discovery"; -import { renderEmbed } from "./embeds"; +import embeds from "./embeds"; import errors from "./errors"; +import shares from "./shares"; const koa = new Koa(); -const router = new Router(); - -// serve public assets -router.use( - ["/images/{*path}", "/email/{*path}", "/fonts/{*path}"], - async (ctx, next) => { - let done; - - if (ctx.method === "HEAD" || ctx.method === "GET") { - try { - done = await send(ctx, ctx.path, { - root: path.resolve(__dirname, "../../../public"), - // 7 day expiry, these assets are mostly static but do not contain a hash - maxAge: Day.ms * 7, - setHeaders: (res) => { - res.setHeader("Access-Control-Allow-Origin", "*"); - }, - }); - } catch (err) { - if (!(err instanceof Error && "status" in err && err.status === 404)) { - throw err; - } - } - } - - if (!done) { - await next(); - } - } -); - -router.use( - [ - "/share/:shareId", - "/share/:shareId/doc/:documentSlug", - "/share/:shareId/{*path}", - ], - (ctx) => { - const redirectPath = ctx.path.replace(/^\/share/, "/s"); - ctx.redirect(redirectPath + ctx.request.URL.search); - ctx.status = 301; - } -); - -if (env.isProduction) { - router.get("/static/{*path}", async (ctx) => { - try { - const pathname = ctx.path.substring(8); - if (!pathname) { - throw NotFoundError(); - } - - await send(ctx, pathname, { - root: path.join(__dirname, "../../app/"), - // Hashed static assets get 1 year expiry plus immutable flag - maxAge: Day.ms * 365, - immutable: true, - setHeaders: (res, filePath) => { - res.setHeader("Service-Worker-Allowed", "/"); - res.setHeader("Access-Control-Allow-Origin", "*"); - - // The service worker is not hashed and must always be revalidated - // so that browsers detect and install new versions. - if (path.basename(filePath) === "sw.js") { - res.setHeader("Cache-Control", "no-cache"); - } - }, - }); - } catch (err) { - if (err instanceof Error && "status" in err && err.status === 404) { - // Serve a bad request instead of not found if the file doesn't exist - // This prevents CDN's from caching the response, allowing them to continue - // serving old file versions - ctx.status = 400; - return; - } - - throw err; - } - }); -} - -router.get("/locales/:lng.json", async (ctx) => { - const { lng } = ctx.params; - - if (!languages.includes(lng as (typeof languages)[number])) { - ctx.status = 404; - return; - } - - await send(ctx, path.join(lng, "translation.json"), { - setHeaders: (res, _, stats) => { - res.setHeader("Last-Modified", formatRFC7231(stats.mtime)); - res.setHeader("Cache-Control", `public, max-age=${7 * Day.seconds}`); - res.setHeader( - "ETag", - crypto.createHash("md5").update(stats.mtime.toISOString()).digest("hex") - ); - res.setHeader("Access-Control-Allow-Origin", "*"); - }, - root: path.join(__dirname, "../../shared/i18n/locales"), - }); -}); - -router.use(discovery.routes()); - -router.get("/s/:shareId.:format", shareDomains(), renderShare); -router.get("/s/:shareId", shareDomains(), renderShare); -router.get( - "/s/:shareId/doc/:documentSlug.:format", - shareDomains(), - renderShare -); -router.get("/s/:shareId/doc/:documentSlug", shareDomains(), renderShare); -router.get("/s/:shareId/{*path}", shareDomains(), renderShare); - -router.get("/embeds/gitlab", renderEmbed); -router.get("/embeds/github", renderEmbed); -router.get("/embeds/dropbox", renderEmbed); -router.get("/embeds/pinterest", renderEmbed); - -router.use(shareDomains()); - -router.get("/doc/:documentSlug", async (ctx, next) => { - if (ctx.state?.rootShare) { - return renderShare(ctx, next); - } - return next(); -}); - -router.get("/sitemap.xml", async (ctx) => { - if (ctx.state?.rootShare) { - ctx.redirect(`/api/shares.sitemap?id=${ctx.state?.rootShare.id}`); - } else { - ctx.status = 404; - } -}); - -// Client routes that render without an authenticated session. -const publicAppPaths = [ - "/", - "/create", - "/logout", - "/desktop-redirect", - "/oauth/authorize", -]; - -function isPublicAppPath(path: string) { - return publicAppPaths.includes(path.replace(/\/+$/, "") || "/"); -} - -// catch all for application -router.get("{/*path}", async (ctx, next) => { - if (isInvalidAppPath(ctx.path)) { - ctx.status = 404; - return; - } - - if (ctx.state?.rootShare) { - // Only allow root path for root share domains, return 404 for other paths. - // Valid paths like /doc/:documentSlug and /sitemap.xml are handled above. - if (ctx.path !== "/") { - ctx.status = 404; - return; - } - return renderShare(ctx, next); - } - - const team = await getTeamFromContext(ctx); - - if (env.isCloudHosted) { - // Redirect to main domain if no team is found - if (!team || team.isSuspended) { - if (env.isProduction && ctx.hostname !== parseDomain(env.URL).host) { - ctx.redirect(env.URL); - return; - } - - if (!team) { - const teams = await SessionsCookieHelper.reconcile(ctx); - - // Links to app paths on the root domain, such as those in emails, are - // sent on to the workspace the browser is signed in to. - if (!isPublicAppPath(ctx.path)) { - const url = getSessionRedirectUrl(ctx, teams); - if (url) { - ctx.redirect(url); - return; - } - } - } - } - - // Redirect to the team's canonical url, taking into account custom domains - // and hosted subdomains, if the request arrived on a different host. - else if (team && !team.isTeamUrl(ctx.href)) { - const url = new URL(team.url); - url.pathname = ctx.path; - url.search = ctx.search; - ctx.redirect(url.toString()); - return; - } - } - - const analytics = await Integration.findAnalyticsIntegrationsForTeam( - team?.id - ); - - const publicBranding = - team?.getPreference(TeamPreference.PublicBranding) ?? false; - - return renderApp(ctx, next, { - title: publicBranding && team?.name ? team.name : undefined, - description: - publicBranding && team?.description ? team.description : undefined, - analytics, - shortcutIcon: - publicBranding && team?.avatarUrl - ? ((await team.publicAvatarUrl()) ?? undefined) - : undefined, - }); -}); - -// In order to report all possible performance metrics to Sentry this header -// must be provided when serving the application, see: -// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Timing-Allow-Origin -const timingOrigins = [env.URL]; - -if (env.SENTRY_DSN) { - timingOrigins.push("https://sentry.io"); -} - -koa.use(async (ctx, next) => { - ctx.set("Timing-Allow-Origin", timingOrigins.join(", ")); - - // Allow the JS Self-Profiling API to be used for local performance work. - if (env.isDevelopment) { - ctx.set("Document-Policy", "js-profiling"); - } - await next(); -}); +koa.use(appHeaders()); koa.use(apexRedirect()); + if (env.ENVIRONMENT === "test") { koa.use(errors.routes()); } -koa.use(router.routes()); +koa.use(assets.routes()); +koa.use(discovery.routes()); +koa.use(embeds.routes()); +koa.use(shares.routes()); + +// The app router has a catch-all route, so it must be last. +koa.use(app.routes()); export default koa; diff --git a/server/routes/oauth/middlewares/registrationAuth.ts b/server/routes/oauth/middlewares/registrationAuth.ts index d64f30d5c9..3a766e4bfc 100644 --- a/server/routes/oauth/middlewares/registrationAuth.ts +++ b/server/routes/oauth/middlewares/registrationAuth.ts @@ -23,7 +23,7 @@ export default function registrationAuth() { const client = await OAuthClient.findByRegistrationAccessToken(token, { transaction: ctx.state.transaction, - lock: ctx.state.transaction?.LOCK.UPDATE, + lock: ctx.state.transaction?.LOCK.NO_KEY_UPDATE, }); if (!client) { throw AuthenticationError("Invalid registration access token"); diff --git a/server/routes/shares.ts b/server/routes/shares.ts new file mode 100644 index 0000000000..573bf394a8 --- /dev/null +++ b/server/routes/shares.ts @@ -0,0 +1,61 @@ +import Router from "@koa/router"; +import shareDomains from "@server/middlewares/shareDomains"; +import { renderShare } from "./app"; + +const router = new Router(); + +// Legacy share urls. +router.get( + [ + "/share/:shareId", + "/share/:shareId/doc/:documentSlug", + "/share/:shareId/{*path}", + ], + (ctx) => { + const redirectPath = ctx.path.replace(/^\/share/, "/s"); + ctx.redirect(redirectPath + ctx.request.URL.search); + ctx.status = 301; + } +); + +router.use(shareDomains()); + +router.get( + [ + "/s/:shareId.:format", + "/s/:shareId", + "/s/:shareId/doc/:documentSlug.:format", + "/s/:shareId/doc/:documentSlug", + "/s/:shareId/{*path}", + ], + renderShare +); + +// Routes below are only served for a share on its own custom domain. +router.get("/doc/:documentSlug", (ctx, next) => { + if (ctx.state.rootShare) { + return renderShare(ctx, next); + } + return next(); +}); + +router.get("/sitemap.xml", (ctx) => { + if (ctx.state.rootShare) { + ctx.redirect(`/api/shares.sitemap?id=${ctx.state.rootShare.id}`); + } else { + ctx.status = 404; + } +}); + +router.get("{/*path}", (ctx, next) => { + if (!ctx.state.rootShare) { + return next(); + } + if (ctx.path !== "/") { + ctx.status = 404; + return; + } + return renderShare(ctx, next); +}); + +export default router; diff --git a/server/routes/workspace.test.ts b/server/routes/workspace.test.ts new file mode 100644 index 0000000000..0191afcfb7 --- /dev/null +++ b/server/routes/workspace.test.ts @@ -0,0 +1,99 @@ +import { randomUUID } from "node:crypto"; +import { IncomingMessage, ServerResponse } from "node:http"; +import { Socket } from "node:net"; +import Koa from "koa"; +import { TeamPreference } from "@shared/types"; +import { buildTeam } from "@server/test/factories"; +import { setSelfHosted } from "@server/test/support"; +import { + getWorkspaceRedirectUrl, + getWorkspaceRenderOptions, +} from "./workspace"; + +function buildContext(url: string) { + const { host, pathname, search } = new URL(url); + const req = new IncomingMessage(new Socket()); + req.method = "GET"; + req.url = pathname + search; + req.headers = { host }; + return new Koa().createContext(req, new ServerResponse(req)); +} + +describe("getWorkspaceRedirectUrl", () => { + it("should return undefined on the canonical host", async () => { + const subdomain = `canonical-${randomUUID()}`; + const team = await buildTeam({ subdomain }); + const ctx = buildContext(`https://${subdomain}.outline.dev/search`); + + expect(await getWorkspaceRedirectUrl(ctx, team)).toBeUndefined(); + }); + + it("should return the canonical url with the path and query", async () => { + const id = randomUUID(); + const team = await buildTeam({ + subdomain: `current-${id}`, + previousSubdomains: [`previous-${id}`], + }); + const ctx = buildContext( + `https://previous-${id}.outline.dev/search?query=hello` + ); + + expect(await getWorkspaceRedirectUrl(ctx, team)).toEqual( + `https://current-${id}.outline.dev/search?query=hello` + ); + }); + + it("should not redirect a suspended workspace to its canonical url", async () => { + const id = randomUUID(); + const team = await buildTeam({ + subdomain: `current-${id}`, + previousSubdomains: [`previous-${id}`], + suspendedAt: new Date(), + }); + const ctx = buildContext(`https://previous-${id}.outline.dev/search`); + + expect(await getWorkspaceRedirectUrl(ctx, team)).toBeUndefined(); + }); + + it("should return undefined without a workspace or sessions", async () => { + const ctx = buildContext("https://app.outline.dev/settings"); + + expect(await getWorkspaceRedirectUrl(ctx, undefined)).toBeUndefined(); + }); + + it("should return undefined when self hosted", async () => { + setSelfHosted(); + const team = await buildTeam({ subdomain: `self-${randomUUID()}` }); + const ctx = buildContext("https://other.example.com/search"); + + expect(await getWorkspaceRedirectUrl(ctx, team)).toBeUndefined(); + }); +}); + +describe("getWorkspaceRenderOptions", () => { + it("should return only analytics without public branding", async () => { + const team = await buildTeam({ description: "A description" }); + + expect(await getWorkspaceRenderOptions(team)).toEqual({ analytics: [] }); + }); + + it("should return only analytics without a workspace", async () => { + expect(await getWorkspaceRenderOptions(undefined)).toEqual({ + analytics: [], + }); + }); + + it("should return the workspace name and description with public branding", async () => { + const team = await buildTeam({ + description: "A description", + preferences: { [TeamPreference.PublicBranding]: true }, + }); + + expect(await getWorkspaceRenderOptions(team)).toEqual({ + analytics: [], + title: team.name, + description: "A description", + shortcutIcon: undefined, + }); + }); +}); diff --git a/server/routes/workspace.ts b/server/routes/workspace.ts new file mode 100644 index 0000000000..6e3f44ed7a --- /dev/null +++ b/server/routes/workspace.ts @@ -0,0 +1,95 @@ +import type { Context } from "koa"; +import { TeamPreference } from "@shared/types"; +import { parseDomain } from "@shared/utils/domains"; +import env from "@server/env"; +import { Integration, type Team } from "@server/models"; +import { getSessionRedirectUrl } from "@server/utils/authentication"; +import { SessionsCookieHelper } from "@server/utils/SessionsCookieHelper"; +import type { AppRenderOptions } from "./app"; + +/** + * Returns the URL to redirect an app request to when the request did not + * arrive on the canonical host of a usable workspace. When no workspace is + * found, the sessions cookie is reconciled. + * + * @param ctx the request context. + * @param team the workspace for the request host, if any. + * @returns the URL to redirect to, or undefined to render the app. + */ +export async function getWorkspaceRedirectUrl( + ctx: Context, + team: Team | null | undefined +): Promise { + if (!env.isCloudHosted) { + return; + } + + if (team && !team.isSuspended) { + if (team.isTeamUrl(ctx.href)) { + return; + } + + const url = new URL(team.url); + url.pathname = ctx.path; + url.search = ctx.search; + return url.toString(); + } + + if (env.isProduction && ctx.hostname !== parseDomain(env.URL).host) { + return env.URL; + } + + if (team) { + return; + } + + const teams = await SessionsCookieHelper.reconcile(ctx); + + // Links to app paths on the root domain, such as those in emails, are sent + // on to the workspace the browser is signed in to. + if (isPublicAppPath(ctx.path)) { + return; + } + + return getSessionRedirectUrl(ctx, teams); +} + +/** + * Returns the options used to render the app shell for a workspace. + * + * @param team the workspace for the request host, if any. + * @returns the render options. + */ +export async function getWorkspaceRenderOptions( + team: Team | null | undefined +): Promise { + const analytics = await Integration.findAnalyticsIntegrationsForTeam( + team?.id + ); + + if (!team?.getPreference(TeamPreference.PublicBranding)) { + return { analytics }; + } + + return { + analytics, + title: team.name || undefined, + description: team.description || undefined, + shortcutIcon: team.avatarUrl + ? ((await team.publicAvatarUrl()) ?? undefined) + : undefined, + }; +} + +// Client routes that render without an authenticated session. +const publicAppPaths = [ + "/", + "/create", + "/logout", + "/desktop-redirect", + "/oauth/authorize", +]; + +function isPublicAppPath(pathname: string) { + return publicAppPaths.includes(pathname.replace(/\/+$/, "") || "/"); +} diff --git a/server/scripts/reset-encrypted-data.ts b/server/scripts/reset-encrypted-data.ts index 681ea1f3dc..21cd230108 100644 --- a/server/scripts/reset-encrypted-data.ts +++ b/server/scripts/reset-encrypted-data.ts @@ -56,7 +56,7 @@ export default async function main() { }); const webhooks = await WebhookSubscription.findAll({ - lock: Transaction.LOCK.UPDATE, + lock: { level: Transaction.LOCK.UPDATE, of: WebhookSubscription }, transaction, }); diff --git a/server/services/websockets.ts b/server/services/websockets.ts index f98c71b5c0..6a35d304db 100644 --- a/server/services/websockets.ts +++ b/server/services/websockets.ts @@ -14,6 +14,7 @@ import * as Tracing from "@server/logging/tracer"; import { traceFunction } from "@server/logging/tracing"; import type { User } from "@server/models"; import { rejectUpgrade } from "@server/onupgrade"; +import { isDatabaseUnavailableError } from "@server/storage/database"; import Redis from "@server/storage/redis"; import { ShutdownHelper, ShutdownOrder } from "@server/utils/ShutdownHelper"; import { getUserForJWT } from "@server/utils/jwt"; @@ -101,13 +102,12 @@ export default function init( Metrics.increment("websockets.connected"); Metrics.gaugePerInstance("websockets.count", io.engine.clientsCount); - // If the socket didn't authenticate after connection, disconnect it + // If the socket didn't authenticate after connection, close the transport + // without a disconnect packet so the client reconnects. const authTimeout = setTimeout(function () { if (!socket.client.auth) { Logger.debug("websockets", `Disconnecting socket ${socket.id}`); - - // @ts-expect-error should be boolean - socket.disconnect("unauthorized"); + socket.conn.close(); } }, 1000); @@ -142,6 +142,13 @@ export default function init( socket.disconnect(); }); } catch (err) { + // Close the transport without a disconnect packet so the client reconnects. + if (isDatabaseUnavailableError(err)) { + Metrics.increment("database.unavailable", { source: "websockets" }); + socket.conn.close(); + return; + } + const message = errToString(err); Logger.debug("websockets", `Authentication error socket ${socket.id}`, { error: message, diff --git a/server/storage/database.test.ts b/server/storage/database.test.ts index eca8674e65..53f7144513 100644 --- a/server/storage/database.test.ts +++ b/server/storage/database.test.ts @@ -1,4 +1,4 @@ -import { QueryTypes } from "sequelize"; +import { DatabaseError, QueryTypes } from "sequelize"; import type { Transaction } from "sequelize"; import type { Sequelize } from "sequelize-typescript"; import Document from "@server/models/Document"; @@ -7,8 +7,33 @@ import env from "@server/env"; import { applyStatementTimeoutToTransactions, createDatabaseInstance, + optionalWrite, } from "./database"; +const databaseError = (message: string, code?: string) => + new DatabaseError(Object.assign(new Error(message), { sql: "", code })); + +describe("optionalWrite", () => { + it("should skip a write when the database is read-only", async () => { + await expect( + optionalWrite(() => Promise.reject(databaseError("", "25006"))) + ).resolves.toBeUndefined(); + }); + + it("should skip a write when the database is unavailable", async () => { + await expect( + optionalWrite(() => Promise.reject(databaseError("", "57P03"))) + ).resolves.toBeUndefined(); + }); + + it("should rethrow other errors", async () => { + const error = databaseError("", "22008"); + await expect(optionalWrite(() => Promise.reject(error))).rejects.toBe( + error + ); + }); +}); + describe("read replica transactions", () => { let replica: Sequelize; @@ -57,7 +82,8 @@ describe("applyStatementTimeoutToTransactions", () => { beforeAll(() => { instance = applyStatementTimeoutToTransactions( createDatabaseInstance(env.DATABASE_URL ?? "", {}), - 1234 + 1234, + 567 ); }); @@ -69,6 +95,12 @@ describe("applyStatementTimeoutToTransactions", () => { vi.restoreAllMocks(); }); + const showLockTimeout = (transaction?: Transaction) => + instance.query<{ lock_timeout: string }>("SHOW lock_timeout", { + type: QueryTypes.SELECT, + transaction, + }); + const showTimeout = (transaction?: Transaction) => instance.query<{ statement_timeout: string }>("SHOW statement_timeout", { type: QueryTypes.SELECT, @@ -82,12 +114,18 @@ describe("applyStatementTimeoutToTransactions", () => { expect(rows).toEqual([{ statement_timeout: "1234ms" }]); expect(spy.mock.calls.map(([sql]) => sql)).toEqual([ - "START TRANSACTION; SET LOCAL statement_timeout = 1234;", + "START TRANSACTION; SET LOCAL statement_timeout = 1234; SET LOCAL lock_timeout = 567;", "SHOW statement_timeout", "COMMIT;", ]); }); + it("should set the lock timeout in the transaction", async () => { + const rows = await instance.transaction(showLockTimeout); + + expect(rows).toEqual([{ lock_timeout: "567ms" }]); + }); + it("should not set the timeout again for a savepoint", async () => { const spy = vi.spyOn(instance, "query"); @@ -109,5 +147,6 @@ describe("applyStatementTimeoutToTransactions", () => { const rows = await showTimeout(); expect(rows).not.toEqual([{ statement_timeout: "1234ms" }]); + expect(await showLockTimeout()).not.toEqual([{ lock_timeout: "567ms" }]); }); }); diff --git a/server/storage/database.ts b/server/storage/database.ts index 25e3f7888a..e8a4870364 100644 --- a/server/storage/database.ts +++ b/server/storage/database.ts @@ -1,6 +1,11 @@ import cluster from "node:cluster"; import path from "node:path"; -import { DatabaseError, UniqueConstraintError } from "sequelize"; +import { + ConnectionAcquireTimeoutError, + ConnectionError, + DatabaseError, + UniqueConstraintError, +} from "sequelize"; import type { InferAttributes, InferCreationAttributes, @@ -16,6 +21,7 @@ import env from "@server/env"; import { ClientClosedRequestError } from "@server/errors"; import type Model from "@server/models/base/Model"; import Logger from "../logging/Logger"; +import Metrics from "../logging/Metrics"; import * as models from "../models"; import { requestContext } from "./requestContext"; import { getConnectionName } from "./utils"; @@ -46,12 +52,27 @@ function getDatabaseConfig() { ); } -/** Postgres error code for `query_canceled`. */ -const QueryCanceledErrorCode = "57014"; +/** Postgres error codes for `query_canceled` and `lock_not_available`. */ +const QueryCanceledErrorCodes = ["57014", "55P03"]; + +/** Postgres error code for a write in a read-only transaction. */ +const ReadOnlyErrorCode = "25006"; + +/** + * Postgres error codes for a server that is shutting down or starting, in + * addition to the connection exception (`08`) class. + */ +const UnavailableErrorCodes = ["57P01", "57P02", "57P03"]; + +/** Message of the pg driver when the server closes the connection mid-query. */ +const ConnectionTerminatedMessage = "Connection terminated unexpectedly"; /** Headroom between the statement timeout and the HTTP request timeout. */ const StatementTimeoutMargin = 500; +/** Maximum time a statement in a request transaction waits for a lock. */ +const LockTimeout = 5000; + /** Sequelize types the query generator as unknown; this narrows to the single * method used to begin a transaction. */ interface QueryGeneratorWithTransaction { @@ -91,21 +112,80 @@ const statementTimeout = : undefined; /** - * Whether an error was caused by Postgres canceling a query, most commonly - * because it exceeded the configured `statement_timeout`. + * Whether an error was caused by Postgres canceling a query because it + * exceeded the configured `statement_timeout` or `lock_timeout`. * * @param err the error to inspect. * @returns true if the query was canceled by the database. */ export function isQueryCanceledError(err: unknown): boolean { - return ( + const code = databaseErrorCode(err); + return !!code && QueryCanceledErrorCodes.includes(code); +} + +/** + * Whether an error was caused by a write while the database is read-only, for + * example during maintenance. Reads continue to work in this state. + * + * @param err the error to inspect. + * @returns true if the database rejected a write because it is read-only. + */ +export function isDatabaseReadOnlyError(err: unknown): boolean { + return databaseErrorCode(err) === ReadOnlyErrorCode; +} + +/** + * Whether an error was caused by the database being temporarily unavailable + * for reads and writes, for example while it restarts during maintenance. + * + * @param err the error to inspect. + * @returns true if the database could not run the query. + */ +export function isDatabaseUnavailableError(err: unknown): boolean { + if (err instanceof ConnectionAcquireTimeoutError) { + return false; + } + if (err instanceof ConnectionError) { + return true; + } + if ( err instanceof DatabaseError && - !!err.parent && - "code" in err.parent && - err.parent.code === QueryCanceledErrorCode + err.parent?.message === ConnectionTerminatedMessage + ) { + return true; + } + + const code = databaseErrorCode(err); + return ( + !!code && (UnavailableErrorCodes.includes(code) || code.startsWith("08")) ); } +/** + * Runs an optional write, such as an activity timestamp, and skips it when the + * database is read-only or unavailable so that the operation which triggered it + * can continue. + * + * @param fn the function that performs the write. + * @returns a promise that resolves when the write completes or is skipped. + * @throws any error that is not caused by the database state. + */ +export async function optionalWrite(fn: () => Promise): Promise { + try { + await fn(); + } catch (err) { + if (isDatabaseReadOnlyError(err)) { + Metrics.increment("database.read_only", { source: "optional_write" }); + return; + } + if (isDatabaseUnavailableError(err)) { + Metrics.increment("database.unavailable", { source: "optional_write" }); + return; + } + throw err; + } +} + /** * Run the given function, retrying it when it fails due to a unique constraint * violation. Useful for operations that choose a unique value based on a prior @@ -200,7 +280,8 @@ export function createDatabaseInstance( if (statementTimeout) { instance = applyStatementTimeoutToTransactions( instance, - Number(statementTimeout) + Number(statementTimeout), + LockTimeout ); } @@ -331,19 +412,21 @@ export function createMigrationRunner( } /** - * Appends `SET LOCAL statement_timeout` to the statement that begins each - * transaction, so that both are sent in a single round trip. Using `SET LOCAL` - * scopes the value to the transaction, preventing it from leaking to other - * consumers (e.g. background workers) sharing the same underlying connection - * via pgbouncer's transaction pooling. + * Appends `SET LOCAL statement_timeout` and `lock_timeout` to the statement + * that begins each transaction, so that all are sent in a single round trip. + * Using `SET LOCAL` scopes the values to the transaction, preventing them from + * leaking to other consumers (e.g. background workers) sharing the same + * underlying connection via pgbouncer's transaction pooling. * * @param instance the Sequelize instance to modify. * @param timeoutMs the statement timeout in milliseconds. + * @param lockTimeoutMs the lock timeout in milliseconds. * @returns the modified Sequelize instance. */ export function applyStatementTimeoutToTransactions( instance: Sequelize, - timeoutMs: number + timeoutMs: number, + lockTimeoutMs: number ) { const queryGenerator = instance.getQueryInterface() .queryGenerator as QueryGeneratorWithTransaction; @@ -353,11 +436,11 @@ export function applyStatementTimeoutToTransactions( queryGenerator.startTransactionQuery = (transaction) => { const sql = origStartTransactionQuery(transaction); - // Savepoints inherit the value set when the outer transaction began. + // Savepoints inherit the values set when the outer transaction began. if (transaction.parent) { return sql; } - return `${sql} SET LOCAL statement_timeout = ${timeoutMs};`; + return `${sql} SET LOCAL statement_timeout = ${timeoutMs}; SET LOCAL lock_timeout = ${lockTimeoutMs};`; }; return instance; @@ -419,3 +502,19 @@ export const migrations = createMigrationRunner(sequelize, [ "migrations/*.js", { cwd: path.resolve("server") }, ]); + +/** + * Reads the SQLSTATE code from the driver error that a DatabaseError wraps. + * + * @param err the error to inspect. + * @returns the SQLSTATE code, or undefined if there is none. + */ +function databaseErrorCode(err: unknown): string | undefined { + if (!(err instanceof DatabaseError) || !err.parent) { + return undefined; + } + const { parent } = err; + return "code" in parent && typeof parent.code === "string" + ? parent.code + : undefined; +} diff --git a/server/storage/files/S3Storage.test.ts b/server/storage/files/S3Storage.test.ts index f024a59645..1b6eacd19a 100644 --- a/server/storage/files/S3Storage.test.ts +++ b/server/storage/files/S3Storage.test.ts @@ -1,10 +1,31 @@ +import { createPresignedPost } from "@aws-sdk/s3-presigned-post"; import { vi } from "vitest"; import { Week, Day } from "@shared/utils/time"; +import { createContext } from "@server/context"; import Logger from "@server/logging/Logger"; import BaseStorage from "./BaseStorage"; import S3Storage from "./S3Storage"; describe("S3Storage", () => { + describe("getPresignedPost", () => { + it("requires an exact Content-Type match", async () => { + const storage = new S3Storage(); + await storage.getPresignedPost( + createContext({}), + "uploads/user/id/photo.png", + "private", + 1000, + "image/png" + ); + + const options = vi.mocked(createPresignedPost).mock.lastCall?.[1]; + expect(options?.Fields?.["Content-Type"]).toBe("image/png"); + expect(options?.Conditions).not.toContainEqual( + expect.arrayContaining(["$Content-Type"]) + ); + }); + }); + describe("getFileStream", () => { afterEach(() => { vi.restoreAllMocks(); diff --git a/server/storage/files/S3Storage.ts b/server/storage/files/S3Storage.ts index cd272e8c20..075cb30a48 100644 --- a/server/storage/files/S3Storage.ts +++ b/server/storage/files/S3Storage.ts @@ -34,10 +34,11 @@ export default class S3Storage extends BaseStorage { Key: key, Conditions: compact([ ["content-length-range", 0, maxUploadSize], - ["starts-with", "$Content-Type", contentType], ["starts-with", "$Cache-Control", ""], ]), + // Each field is signed as an exact-match condition. Fields: { + "Content-Type": contentType, "Content-Disposition": this.getContentDisposition( contentType, AttachmentHelper.parseKey(key).fileName diff --git a/server/utils/ZipHelper.test.ts b/server/utils/ZipHelper.test.ts index 23d07fd7d5..5ec4c30235 100644 --- a/server/utils/ZipHelper.test.ts +++ b/server/utils/ZipHelper.test.ts @@ -262,6 +262,58 @@ describe("ZipHelper.walk", () => { ).rejects.toThrow("Collection/page.md is too large"); }); + it("rejects an archive with more entries than allowed", async () => { + const buffer = await buildZip({ "a.md": "a", "b.md": "b", "c.md": "c" }); + const onEntry = vi.fn(); + + await expect( + ZipHelper.walk(buffer, onEntry, { maxEntries: 2 }) + ).rejects.toMatchObject({ + id: "import_error", + message: "The archive contains too many files - the maximum is 2", + }); + expect(onEntry).not.toHaveBeenCalled(); + }); + + it("rejects reads that exceed the total size across entries", async () => { + const buffer = await buildZip({ + "a.md": "x".repeat(600), + "b.md": "x".repeat(600), + }); + + await expect( + ZipHelper.walk( + buffer, + async (entry) => { + await entry.readBuffer(1024); + }, + { maxTotalSize: 1024 } + ) + ).rejects.toMatchObject({ + id: "import_error", + message: expect.stringContaining("too large when uncompressed"), + }); + }); + + it("does not count skipped entries toward the total size", async () => { + const buffer = await buildZip({ + "a.md": "x".repeat(600), + "b.png": "x".repeat(600), + }); + + await expect( + ZipHelper.walk( + buffer, + async (entry) => { + if (entry.fileName.endsWith(".md")) { + await entry.readBuffer(1024); + } + }, + { maxTotalSize: 1024 } + ) + ).resolves.toBeUndefined(); + }); + it("rejects a file that is not a zip archive as an import error", async () => { const filePath = tmp.fileSync({ postfix: ".zip" }).name; await fs.writeFile(filePath, "not a zip file"); diff --git a/server/utils/ZipHelper.ts b/server/utils/ZipHelper.ts index 63b3825213..25266c562e 100644 --- a/server/utils/ZipHelper.ts +++ b/server/utils/ZipHelper.ts @@ -28,6 +28,13 @@ export interface ZipEntryHandle { readBuffer(maxSize: number): Promise; } +export interface ZipWalkOptions { + /** Maximum number of entries the archive may contain. */ + maxEntries?: number; + /** Maximum total bytes that may be read into memory across all entries. */ + maxTotalSize?: number; +} + export interface ZipTreeNode { /** The file name (last path segment) including extension. */ name: string; @@ -110,15 +117,20 @@ export default class ZipHelper { * the zip contents already in memory. * @param onEntry Handler invoked for each entry. Skip an entry by returning * without calling `entry.readBuffer(maxSize)`. + * @param options Limits on the entry count and total bytes read. * @returns Promise that resolves once the archive has been fully walked. - * @throws {FileImportError} if the source is not a readable zip archive. + * @throws {FileImportError} if the source is not a readable zip archive, or + * exceeds the given limits. */ public static walk( source: string | Buffer, - onEntry: (entry: ZipEntryHandle) => Promise | void + onEntry: (entry: ZipEntryHandle) => Promise | void, + options: ZipWalkOptions = {} ): Promise { + const { maxEntries = Infinity, maxTotalSize = Infinity } = options; + return new Promise((resolve, reject) => { - const options = { + const openOptions = { lazyEntries: true, autoClose: true, decodeStrings: false, @@ -132,7 +144,19 @@ export default class ZipHelper { return reject(ZipHelper.toArchiveError(err)); } + // The count comes from the central directory, so it is known before + // any entry is read. + if (zipfile.entryCount > maxEntries) { + zipfile.close(); + return reject( + FileImportError( + `The archive contains too many files - the maximum is ${maxEntries.toLocaleString()}` + ) + ); + } + let settled = false; + let totalRead = 0; const fail = (error: Error) => { if (settled) { return; @@ -157,8 +181,15 @@ export default class ZipHelper { isDirectory: fileName.endsWith("/"), readBuffer: (maxSize) => new Promise((res, rej) => { - if (entry.uncompressedSize > maxSize) { - return rej(ZipHelper.entryTooLargeError(fileName, maxSize)); + const remaining = maxTotalSize - totalRead; + const limit = Math.min(maxSize, remaining); + const tooLargeError = () => + maxSize <= remaining + ? ZipHelper.entryTooLargeError(fileName, maxSize) + : ZipHelper.archiveTooLargeError(maxTotalSize); + + if (entry.uncompressedSize > limit) { + return rej(tooLargeError()); } zipfile.openReadStream(entry, (rErr, readStream) => { @@ -170,10 +201,8 @@ export default class ZipHelper { let settled = false; readStream.on("data", (chunk: Buffer) => { bytesRead += chunk.length; - if (bytesRead > maxSize) { - readStream.destroy( - ZipHelper.entryTooLargeError(fileName, maxSize) - ); + if (bytesRead > limit) { + readStream.destroy(tooLargeError()); return; } chunks.push(chunk); @@ -181,6 +210,7 @@ export default class ZipHelper { readStream.on("end", () => { if (!settled) { settled = true; + totalRead += bytesRead; res(Buffer.concat(chunks)); } }); @@ -236,9 +266,9 @@ export default class ZipHelper { }; if (typeof source === "string") { - yauzl.open(source, options, onOpen); + yauzl.open(source, openOptions, onOpen); } else { - yauzl.fromBuffer(source, options, onOpen); + yauzl.fromBuffer(source, openOptions, onOpen); } }); } @@ -256,12 +286,16 @@ export default class ZipHelper { * * @param filePath Local filesystem path to the zip. * @param onFile Optional per-file hook; not called for directory entries. + * @param options Limits on the entry count and total bytes read. * @returns A synthetic root node whose `children` are the zip's top-level * entries. + * @throws {FileImportError} if the archive is unreadable or exceeds the + * given limits. */ public static async toFileTree( filePath: string, - onFile?: (node: ZipTreeNode, entry: ZipEntryHandle) => Promise | void + onFile?: (node: ZipTreeNode, entry: ZipEntryHandle) => Promise | void, + options?: ZipWalkOptions ): Promise { const root: ZipTreeNode = { name: "", @@ -312,15 +346,19 @@ export default class ZipHelper { return current; }; - await this.walk(filePath, async (entry) => { - const node = resolveNode(entry.fileName); - if (!node || entry.isDirectory) { - return; - } - if (onFile) { - await onFile(node, entry); - } - }); + await this.walk( + filePath, + async (entry) => { + const node = resolveNode(entry.fileName); + if (!node || entry.isDirectory) { + return; + } + if (onFile) { + await onFile(node, entry); + } + }, + options + ); return root; } @@ -333,6 +371,14 @@ export default class ZipHelper { return FileImportError("The file is not a valid zip archive"); } + private static archiveTooLargeError(maxTotalSize: number): Error { + return FileImportError( + `The archive is too large when uncompressed - the maximum is ${bytesToHumanReadable( + maxTotalSize + )}` + ); + } + private static entryTooLargeError(fileName: string, maxSize: number): Error { return ValidationError( `${fileName} is too large - the maximum size is ${bytesToHumanReadable( diff --git a/server/utils/jwt.test.ts b/server/utils/jwt.test.ts index cbb452910a..15916c662c 100644 --- a/server/utils/jwt.test.ts +++ b/server/utils/jwt.test.ts @@ -1,8 +1,8 @@ import { subMinutes } from "date-fns"; import JWT from "jsonwebtoken"; import type { Context } from "koa"; -import { buildUser } from "@server/test/factories"; -import { getUserForEmailSigninToken } from "./jwt"; +import { buildAdmin, buildUser } from "@server/test/factories"; +import { getUserForEmailSigninToken, getUserForJWT } from "./jwt"; /** * Minimal Koa context stub exposing only the request IP. @@ -94,3 +94,39 @@ describe("getUserForEmailSigninToken", () => { ); }); }); + +describe("getUserForJWT", () => { + it("should return the user for a valid token", async () => { + const user = await buildUser(); + const token = user.getSessionToken(); + + const result = await getUserForJWT(token); + expect(result.user.id).toEqual(user.id); + }); + + it("should reject a token with a wrong signature for a suspended user", async () => { + const admin = await buildAdmin(); + const user = await buildUser({ + teamId: admin.teamId, + suspendedAt: new Date(), + suspendedById: admin.id, + }); + const token = JWT.sign({ id: user.id, type: "session" }, "wrong-secret"); + + await expect(getUserForJWT(token)).rejects.toThrow("Invalid token"); + }); + + it("should reject a valid token for a suspended user", async () => { + const admin = await buildAdmin(); + const user = await buildUser({ + teamId: admin.teamId, + suspendedAt: new Date(), + suspendedById: admin.id, + }); + const token = user.getSessionToken(); + + await expect(getUserForJWT(token)).rejects.toMatchObject({ + id: "user_suspended", + }); + }); +}); diff --git a/server/utils/jwt.ts b/server/utils/jwt.ts index ca608a2b11..18a9f95515 100644 --- a/server/utils/jwt.ts +++ b/server/utils/jwt.ts @@ -40,14 +40,14 @@ export function getJWTPayload(token: string) { * Retrieves the user associated with a JWT token, validating the token's type and expiration. * * @param token The JWT token to validate and extract the user from. - * @param allowedTypes An array of allowed token types (default: ["session", "transfer"]). The token's type must be included in this array to be considered valid. + * @param allowedTypes An array of allowed token types (default: ["session"]). The token's type must be included in this array to be considered valid. * @returns An object containing the user associated with the token, an optional service string if included in the token's payload, and the time the token expires at if it has one. * @throws AuthenticationError if the token is missing, invalid, expired, or if the token's type is not allowed. * @throws UserSuspendedError if the user associated with the token is suspended. */ export async function getUserForJWT( token: string, - allowedTypes = ["session", "transfer"] + allowedTypes = ["session"] ): Promise<{ user: User; service?: string; expiresAt?: Date }> { const payload = getJWTPayload(token); const expiresAt = payload.expiresAt ? new Date(payload.expiresAt) : undefined; @@ -74,6 +74,12 @@ export async function getUserForJWT( throw AuthenticationError("Invalid token"); } + try { + JWT.verify(token, user.jwtSecret); + } catch (_err) { + throw AuthenticationError("Invalid token"); + } + if (user.isSuspended) { const suspendingAdmin = user.suspendedById ? await User.findByPk(user.suspendedById) @@ -95,12 +101,6 @@ export async function getUserForJWT( } } - try { - JWT.verify(token, user.jwtSecret); - } catch (_err) { - throw AuthenticationError("Invalid token"); - } - return { user, service: payload.service as string | undefined, diff --git a/shared/components/Calendar.tsx b/shared/components/Calendar.tsx index 344ec814ad..e1f6da5e3f 100644 --- a/shared/components/Calendar.tsx +++ b/shared/components/Calendar.tsx @@ -25,7 +25,6 @@ export function Calendar(props: Props) { } const Wrapper = styled.div` - padding: 12px; color: ${s("text")}; .rdp { @@ -46,15 +45,23 @@ const Wrapper = styled.div` appearance: none; } + .rdp-months { + display: flex; + flex-wrap: wrap; + justify-content: center; + gap: 24px; + } + + /* Months sit side by side, and stack when there is not enough space. */ .rdp-month { - width: 100%; + flex: 1 1 252px; } .rdp-caption { display: flex; align-items: center; justify-content: space-between; - padding: 0 2px 8px; + padding: 0 0 8px; } .rdp-caption_label { diff --git a/shared/editor/components/DateMentionPicker.tsx b/shared/editor/components/DateMentionPicker.tsx index fb36dc0c7a..0108f4bd9a 100644 --- a/shared/editor/components/DateMentionPicker.tsx +++ b/shared/editor/components/DateMentionPicker.tsx @@ -98,6 +98,7 @@ export default function DateMentionPicker({ const DatePopoverContent = styled.div` z-index: ${depths.modal}; + padding: 12px; background: ${s("menuBackground")}; box-shadow: ${s("menuShadow")}; ${borderRadius(8)} diff --git a/shared/helpers/FilterHelper.ts b/shared/helpers/FilterHelper.ts index 1e460da5ab..855f7c749e 100644 --- a/shared/helpers/FilterHelper.ts +++ b/shared/helpers/FilterHelper.ts @@ -1,8 +1,45 @@ import { z } from "zod"; import type { DateFilter } from "../types"; +import { StatusFilter } from "../types"; import { isISO8601Duration } from "../utils/date"; import { FilterValidation } from "../validations"; +/** + * Look up the ISO 8601 duration for a coarse date filter name. + * + * @param value the date filter name, such as "week". + * @returns the duration, or undefined if the value is not a date filter. + */ +export function durationForDateFilter(value: string): string | undefined { + return isDateFilter(value) ? DURATION_BY_DATE_FILTER[value] : undefined; +} + +function isDateFilter(value: string): value is DateFilter { + return Object.hasOwn(DURATION_BY_DATE_FILTER, value); +} + +/** + * Build the filter expression that matches documents with a status. + * + * @param status the document status. + * @returns the filter expression for the status. + */ +export function statusToFilter(status: StatusFilter): Filter { + if (status === StatusFilter.Archived) { + return { field: "archivedAt", operator: "isNotNull" }; + } + return { + operator: "AND", + filters: [ + { field: "archivedAt", operator: "isNull" }, + { + field: "publishedAt", + operator: status === StatusFilter.Published ? "isNotNull" : "isNull", + }, + ], + }; +} + /** The ISO 8601 duration each coarse date filter corresponds to. */ export const DURATION_BY_DATE_FILTER: Record = { day: "-P1D", @@ -134,7 +171,7 @@ export const RANGE_OPERATORS = new Set([ * @param operator the operator the value is used with. * @returns true if the value is a valid input for the field. */ -function scalarMatchesKind( +export function scalarMatchesKind( kind: FieldKind, value: unknown, operator: ComparisonOperator diff --git a/shared/i18n/index.ts b/shared/i18n/index.ts index d8d08552d7..0b34fc3577 100644 --- a/shared/i18n/index.ts +++ b/shared/i18n/index.ts @@ -48,6 +48,10 @@ export const languageOptions: LanguageOption[] = [ label: "Deutsch (German)", value: "de_DE", }, + { + label: "Ελληνικά (Greek)", + value: "el_GR", + }, { label: "עברית (Hebrew)", value: "he_IL", diff --git a/shared/i18n/locales/ca_ES/translation.json b/shared/i18n/locales/ca_ES/translation.json index 1611659332..689731fcdc 100644 --- a/shared/i18n/locales/ca_ES/translation.json +++ b/shared/i18n/locales/ca_ES/translation.json @@ -215,6 +215,13 @@ "Share link copied": "S'ha copiat l'enllaç per compartir", "Go to collection": "Ves a la col·lecció", "Go to document": "Ves al document", + "Custom": "Personalitzat", + "Set expiry": "Estableix la caducitat", + "Remove expiry": "Elimina la caducitat", + "Expiry removed": "S'ha eliminat la caducitat", + "{{ count }} days": "{{ count }} dia", + "{{ count }} days_plural": "{{ count }} dies", + "Expiry updated": "S'ha actualitzat la caducitat", "Revoke link": "Anul·la l'enllaç", "Share link revoked": "S'ha anul·lat l'enllaç compartit", "{{ count }} share link revoked": "S'ha anul·lat {{ count }} enllaç compartit", @@ -430,6 +437,8 @@ "our engineers have been notified": "els nostres enginyers han estat notificats", "Clear cache + reload": "Neteja la memòria cau + recàrrega", "Show detail": "Mostra el detall", + "Choose a date": "Trieu una data", + "Remove expiration": "Elimina la data de venciment", "Exporting the collection may take some time.": "L'exportació de la col·lecció pot trigar una estona.", "You will receive an email when it’s complete.": "Rebreu un correu electrònic quan s'hagi completat.", "Include attachments": "Inclou els adjunts", @@ -469,7 +478,6 @@ "Objects": "Objectes", "Symbols": "Símbols", "Flags": "Banderes", - "Custom": "Personalitzat", "Word": "Word", "Plain text": "Text sense format", "Email": "Correu electrònic", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Tothom a l'espai de treball", "{{ count }} member": "{{ count }} membre", "{{ count }} member_plural": "{{ count }} membres", - "Public link copied to clipboard": "Enllaç públic copiat al porta-retalls", "Only lowercase letters, digits and dashes allowed": "Només es permeten lletres en minúscula, dígits i guions", "Sorry, this link has already been used": "Aquest enllaç ja s'ha utilitzat", "Publish to web": "Publicar al web", @@ -639,6 +646,8 @@ "Logo": "Logo", "Add": "Afegeix", "Add or invite": "Afegeix o convida", + "This link expired on {{ date }} and can no longer be accessed.": "Aquest enllaç va caducar el {{ date }} i ja no s'hi pot accedir.", + "Update expiry": "Actualitza la data de venciment", "Sharing settings updated": "Les preferències d'ús compartit s'han actualitzat", "Customize how the published document is displayed": "Personalitza com es mostra el document publicat", "Image options": "Opcions de la imatge", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Desactiva aquesta configuració per a desincentivar que els motors de cerca indexin la pàgina", "Email subscriptions": "Subscripcions per correu electrònic", "Allow viewers to subscribe and receive email notifications when documents are updated": "Permet als lectors subscriure's i rebre notificacions per correu electrònic quan s'actualitzen els documents", + "Expiration": "Caducitat", + "The public link will stop working after the selected date": "L'enllaç públic deixarà de funcionar després de la data seleccionada", + "No expiry": "Sense caducitat", "Something went wrong": "Alguna cosa ha anat malament", "Check your email to confirm your subscription": "Comprova el teu correu electrònic per confirmar la teva subscripció", "Get notified when this document is updated": "Notificar quan s'actualitzi aquest document", @@ -662,6 +674,7 @@ "Editor": "Editor", "Suggestions for invitation": "Suggeriments per invitació", "No matches": "Sense coincidències", + "Public link copied to clipboard": "Enllaç públic copiat al porta-retalls", "Created the document": "Document creat", "Can view": "Pot veure", "Everyone in the collection": "Tothom a la col·lecció", @@ -924,11 +937,9 @@ "a document": "un document", "a collection": "una col·lecció", "a group": "un grup", - "Choose a date": "Trieu una data", "API key created. Please copy the value now as it will not be shown again.": "S'ha creat la clau API. Si us plau, copieu el valor ara, ja que no es tornarà a mostrar.", "Scopes": "Àmbits", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "Els àmbits separats per espais restringeixen l'accés d'aquesta clau API a parts específiques de l'API. Deixeu-ho en blanc per tenir accés complet.", - "Expiration": "Caducitat", "Never expires": "Mai caduca", "7 days": "7 dies", "30 days": "30 dies", @@ -1052,8 +1063,6 @@ "Last edited": "Darrera edició", "Previously edited": "S'ha editat prèviament", "Sorry, the last change could not be persisted – please reload the page": "L'últim canvi no s'ha pogut guardar – torneu a carregar la pàgina", - "{{ count }} days": "{{ count }} dia", - "{{ count }} days_plural": "{{ count }} dies", "This document will be permanently deleted in <2> unless restored.": "Aquest document s'eliminarà permanentment el <2> llevat que es restauri.", "Deleted by {{userName}}": "Eliminat per {{userName}}", "Observing {{ userName }}": "Observant {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "Llegeix totes les dades", "Write all data": "Escriu totes les dades", "Create all data": "Crear totes les dades", + "More filters": "Més filtres", + "More": "Més", "Any collection": "Qualsevol col·lecció", "All time": "Des de sempre", - "Past day": "El darrer dia", - "Past week": "La darrera setmana", - "Past month": "El darrer mes", - "Past year": "El darrer any", "Any time": "En qualsevol moment", + "Choose the first and last day": "Trieu el primer i l'últim dia", + "Apply": "Aplica", "Remove document filter": "Elimina el filtre de document", - "Any status": "Qualsevol estat", "Remove search": "Elimina la cerca", + "Remove filter": "Elimina el filtre", "Relevance": "Rellevància", "Newest": "Més nous", "Oldest": "Més antics", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "Ordenat per", "Any author": "Qualsevol autor", - "Search titles only": "Cerca només per títol", + "Past day": "El darrer dia", + "Past week": "La darrera setmana", + "Past month": "El darrer mes", + "Past year": "El darrer any", + "{{ count }} result": "{{ count }} resultat", + "{{ count }} result_plural": "{{ count }} resultats", "Please try again or contact support if the problem persists": "Torneu-ho a provar o contacteu amb el suport si el problema persisteix", "No documents found for your search filters.": "No s'ha trobat cap document per als filtres de cerca.", + "Edited by": "Editat per", + "Status": "Estat", + "Updated": "Actualitzat", + "Created by": "Creat per", + "Title only": "Només el títol", + "From {{ date }}": "Des de {{ date }}", + "Until {{ date }}": "Fins a {{ date }}", "Settings saved": "Configuració desada", "Copied to clipboard": "S'ha copiat al porta-retalls", "Control how AI features are used in the workspace.": "Controleu com s'utilitzen les funcions d'IA a l'espai de treball.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "per {{ name }}", "Expired": "Caducat", "Last used": "Darrer ús", - "No expiry": "Sense caducitat", "Restricted scope": "Àmbit restringit", "API key copied to clipboard": "Clau API copiada al porta-retalls", "Copied": "Copiada", "Revoking": "Revocant", "Are you sure you want to revoke the {{ tokenName }} token?": "Esteu segur que voleu revocar el token {{ tokenName }}?", "Key": "Clau", - "Created by": "Creat per", "Never": "Mai", "Expires": "Venç", "Could not load preference": "No s'ha pogut carregar la preferència", @@ -1383,6 +1403,8 @@ "Synced <2>": "Sincronitzat <2>", "Date created": "Data de creació", "Crop image": "Retalla la imatge", + "Change image": "Canvia la imatge", + "Remove image": "Elimina la imatge", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "El vostre navegador no pot llegir imatges HEIC; primer convertiu la imatge a JPEG o PNG", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "Podeu importar un fitxer ZIP que s'ha exportat prèviament des de l'opció JSON en una altra instància. A {{ appName }}, obriu Exporta a la barra lateral de configuració i feu clic a Exporta les dades.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Arrossegueu i deixeu anar el fitxer ZIP des de l'opció d'exportació JSON a {{appName}}, o feu clic per penjar", @@ -1422,6 +1444,7 @@ "Editors": "Editors", "Invited by": "Convidat per", "Joined": "S'ha unit", + "Any status": "Qualsevol estat", "Active": "Actiu", "Could not load emojis": "No s'han pogut carregar els emojis", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Els emojis personalitzats es poden utilitzar en tot el vostre espai de treball en documents, comentaris i reaccions.", @@ -1548,6 +1571,8 @@ "Default role": "Rol predeterminat", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "El rol d'usuari predeterminat per als comptes nous. Canviar aquesta configuració no afecta els comptes d'usuari existents.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Quan està activat, els documents poden ser compartits públicament a Internet per qualsevol membre de l'espai de treball", + "Default link expiration": "Venciment predeterminat dels enllaços", + "New public links will expire after this period. Existing links are not affected.": "Els enllaços públics nous caducaran després d'aquest període. Els enllaços existents no es veuran afectats.", "Viewer document exports": "Els lectors poden exportar documents", "When enabled, viewers can see download options for documents": "Quan està habilitat, els lectors poden veure les opcions de baixada dels documents", "Users can delete account": "Els usuaris poden eliminar el compte", @@ -1601,6 +1626,8 @@ "Expires today": "Caduca avui", "Expires tomorrow": "Caduca demà", "Expires {{ date }}": "Caduca {{ date }}", + "Expires in {{ count }} day": "Caduca d'aquí a {{ count }} dia", + "Expires in {{ count }} day_plural": "Caduca d'aquí a {{ count }} dies", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configura un URL d'instal·lació personalitzat de Diagrams.net per utilitzar la vostra pròpia instància d'allotjament per incrustar diagrames en els vostres documents.", "Installation URL": "URL d'instal·lació", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "L'URL de la vostra instal·lació de Diagrams.net. Deixeu-ho buit per utilitzar app.diagrams.net allotjada al núvol", diff --git a/shared/i18n/locales/cs_CZ/translation.json b/shared/i18n/locales/cs_CZ/translation.json index dce04732cb..0136bda92e 100644 --- a/shared/i18n/locales/cs_CZ/translation.json +++ b/shared/i18n/locales/cs_CZ/translation.json @@ -215,6 +215,13 @@ "Share link copied": "Odkaz ke sdílení byl zkopírován", "Go to collection": "Přejít do kolekce", "Go to document": "Přejít do dokumentu", + "Custom": "Vlastní", + "Set expiry": "Nastavit platnost", + "Remove expiry": "Odstranit platnost", + "Expiry removed": "Platnost odstraněna", + "{{ count }} days": "{{count}} den", + "{{ count }} days_plural": "{{ count }} dní", + "Expiry updated": "Platnost aktualizována", "Revoke link": "Zrušit odkaz", "Share link revoked": "Odkaz ke sdílení byl zrušen", "{{ count }} share link revoked": "{{ count }} odkaz ke sdílení byl zrušen", @@ -430,6 +437,8 @@ "our engineers have been notified": "technici byli o chybě informováni", "Clear cache + reload": "Vymazat mezipaměť a obnovit", "Show detail": "Zobrazit podrobnosti", + "Choose a date": "Vybrat datum", + "Remove expiration": "Odstranit datum vypršení platnosti", "Exporting the collection may take some time.": "Export kolekce může chvíli trvat.", "You will receive an email when it’s complete.": "Po dokončení obdržíte e-mail.", "Include attachments": "Zahrnout přílohy", @@ -469,7 +478,6 @@ "Objects": "Předměty", "Symbols": "Symboly", "Flags": "Vlajky", - "Custom": "Vlastní", "Word": "Word", "Plain text": "Prostý text", "Email": "E-mail", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Všichni v pracovním prostoru", "{{ count }} member": "{{ count }} člen", "{{ count }} member_plural": "Členové: {{ count }}", - "Public link copied to clipboard": "Veřejný odkaz byl zkopírován do schránky", "Only lowercase letters, digits and dashes allowed": "Jsou povolena pouze malá písmena, číslice a pomlčky", "Sorry, this link has already been used": "Odkaz již byl použit.", "Publish to web": "Zveřejnit na webu", @@ -639,6 +646,8 @@ "Logo": "Logo", "Add": "Přidat", "Add or invite": "Přidat nebo pozvat", + "This link expired on {{ date }} and can no longer be accessed.": "Platnost tohoto odkazu vypršela {{ date }} a již k němu nelze přistupovat.", + "Update expiry": "Aktualizovat datum vypršení platnosti", "Sharing settings updated": "Nastavení sdílení bylo aktualizováno", "Customize how the published document is displayed": "Přizpůsobit zobrazení zveřejněného dokumentu", "Image options": "Možnosti obrázku", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Vypnutím tohoto nastavení zabráníte vyhledávačům v indexování stránky.", "Email subscriptions": "E-mailové odběry", "Allow viewers to subscribe and receive email notifications when documents are updated": "Povolit čtenářům odběr e-mailových upozornění na aktualizace dokumentů", + "Expiration": "Vypršení platnosti", + "The public link will stop working after the selected date": "Veřejný odkaz přestane fungovat po zvoleném datu", + "No expiry": "Bez vypršení platnosti", "Something went wrong": "Něco se pokazilo", "Check your email to confirm your subscription": "Zkontrolujte svůj e-mail a potvrďte odběr", "Get notified when this document is updated": "Dostat oznámení o aktualizaci tohoto dokumentu", @@ -662,6 +674,7 @@ "Editor": "Editor", "Suggestions for invitation": "Návrhy na pozvání", "No matches": "Žádné shody", + "Public link copied to clipboard": "Veřejný odkaz byl zkopírován do schránky", "Created the document": "Dokument vytvořen", "Can view": "Může prohlížet", "Everyone in the collection": "Všichni v kolekci", @@ -924,11 +937,9 @@ "a document": "dokument", "a collection": "kolekci", "a group": "skupinu", - "Choose a date": "Vybrat datum", "API key created. Please copy the value now as it will not be shown again.": "API klíč byl vytvořen. Hodnotu si ihned zkopírujte, znovu se již nezobrazí.", "Scopes": "Rozsahy", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "Rozsahy oddělené mezerou omezují přístup tohoto klíče API ke konkrétním částem API. Pro plný přístup ponechte pole prázdné.", - "Expiration": "Vypršení platnosti", "Never expires": "Nikdy nevyprší", "7 days": "7 dní", "30 days": "30 dní", @@ -1052,8 +1063,6 @@ "Last edited": "Naposledy upraveno", "Previously edited": "Dříve upraveno", "Sorry, the last change could not be persisted – please reload the page": "Poslední změnu se nepodařilo uložit. Obnovte prosím stránku.", - "{{ count }} days": "{{count}} den", - "{{ count }} days_plural": "{{ count }} dní", "This document will be permanently deleted in <2> unless restored.": "Dokument bude trvale odstraněn za <2>, pokud nebude obnoven.", "Deleted by {{userName}}": "Odstranil {{userName}}", "Observing {{ userName }}": "Sledování uživatele {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "Číst všechna data", "Write all data": "Zapisovat všechna data", "Create all data": "Vytvářet všechna data", + "More filters": "Další filtry", + "More": "Více", "Any collection": "Jakákoliv kolekce", "All time": "Celá doba", - "Past day": "Posledních 24 hodin", - "Past week": "Poslední týden", - "Past month": "Poslední měsíc", - "Past year": "Poslední rok", "Any time": "Kdykoli", + "Choose the first and last day": "Vyberte první a poslední den", + "Apply": "Použít", "Remove document filter": "Odebrat filtr dokumentů", - "Any status": "Jakýkoliv stav", "Remove search": "Zrušit vyhledávání", + "Remove filter": "Odebrat filtr", "Relevance": "Význam", "Newest": "Nejnovější", "Oldest": "Nejstarší", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "Seřazeno podle", "Any author": "Jakýkoliv autor", - "Search titles only": "Hledat pouze v názvech", + "Past day": "Posledních 24 hodin", + "Past week": "Poslední týden", + "Past month": "Poslední měsíc", + "Past year": "Poslední rok", + "{{ count }} result": "{{ count }} výsledek", + "{{ count }} result_plural": "{{ count }} výsledků", "Please try again or contact support if the problem persists": "Zkuste to znovu, nebo v případě přetrvávajících potíží kontaktujte podporu.", "No documents found for your search filters.": "Pro vybrané filtry nebyly nalezeny žádné dokumenty.", + "Edited by": "Upravil", + "Status": "Stav", + "Updated": "Aktualizováno", + "Created by": "Vytvořil(a)", + "Title only": "Pouze název", + "From {{ date }}": "Od {{ date }}", + "Until {{ date }}": "Do {{ date }}", "Settings saved": "Nastavení bylo uloženo", "Copied to clipboard": "Zkopírováno do schránky", "Control how AI features are used in the workspace.": "Nastavte, jak se v pracovním prostoru používají funkce AI.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "od {{ name }}", "Expired": "Platnost vypršela", "Last used": "Naposledy použito", - "No expiry": "Bez vypršení platnosti", "Restricted scope": "Omezený rozsah", "API key copied to clipboard": "API klíč byl zkopírován do schránky", "Copied": "Zkopírováno", "Revoking": "Odebírání…", "Are you sure you want to revoke the {{ tokenName }} token?": "Opravdu chcete odebrat token {{ tokenName }}?", "Key": "Klíč", - "Created by": "Vytvořil(a)", "Never": "Nikdy", "Expires": "Vyprší", "Could not load preference": "Předvolbu se nepodařilo načíst", @@ -1383,6 +1403,8 @@ "Synced <2>": "Synchronizováno <2>", "Date created": "Datum vytvoření", "Crop image": "Oříznout obrázek", + "Change image": "Změnit obrázek", + "Remove image": "Odebrat obrázek", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "Váš prohlížeč neumí číst obrázky HEIC – nejprve obrázek převeďte do formátu JPEG nebo PNG", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "Můžete importovat soubor ZIP, který byl dříve exportován pomocí možnosti JSON z jiné instance. V {{ appName }} otevřete Export v postranním panelu Nastavení a klikněte na Exportovat data.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Přetáhněte ZIP soubor z exportu JSON aplikace {{appName}}, nebo jej nahrajte kliknutím.", @@ -1422,6 +1444,7 @@ "Editors": "Editoři", "Invited by": "Pozván uživatelem", "Joined": "Připojeno", + "Any status": "Jakýkoliv stav", "Active": "Aktivní", "Could not load emojis": "Emoji se nepodařilo načíst", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Vlastní emoji můžete používat v dokumentech, komentářích a reakcích po celém pracovním prostoru.", @@ -1548,6 +1571,8 @@ "Default role": "Výchozí role", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "Výchozí role pro nové účty. Změna se nedotkne stávajících uživatelů.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Je-li povoleno, dokumenty může veřejně sdílet kterýkoli člen pracovního prostoru.", + "Default link expiration": "Výchozí doba platnosti odkazu", + "New public links will expire after this period. Existing links are not affected.": "Platnost nových veřejných odkazů vyprší po uplynutí této doby. Stávající odkazy nejsou ovlivněny.", "Viewer document exports": "Exporty dokumentů pro čtenáře", "When enabled, viewers can see download options for documents": "Po zapnutí uvidí možnosti stažení dokumentů také čtenáři.", "Users can delete account": "Uživatelé mohou odstranit účet", @@ -1601,6 +1626,8 @@ "Expires today": "Platnost vyprší dnes", "Expires tomorrow": "Platnost vyprší zítra", "Expires {{ date }}": "Platnost vyprší {{ date }}", + "Expires in {{ count }} day": "Platnost vyprší za {{ count }} den", + "Expires in {{ count }} day_plural": "Vyprší za {{ count }} dní", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Nastavte vlastní URL instalace Diagrams.net pro vkládání diagramů z vlastní instance.", "Installation URL": "URL instalace", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "Adresa URL vaší instalace Diagrams.net. Ponechte prázdné, chcete-li používat cloudově hostovanou aplikaci app.diagrams.net", diff --git a/shared/i18n/locales/da_DK/translation.json b/shared/i18n/locales/da_DK/translation.json index 99b77539e8..8d929408aa 100644 --- a/shared/i18n/locales/da_DK/translation.json +++ b/shared/i18n/locales/da_DK/translation.json @@ -215,6 +215,13 @@ "Share link copied": "Delelink kopieret!", "Go to collection": "Gå til samling", "Go to document": "Gå til dokument", + "Custom": "Brugerdefinerede", + "Set expiry": "Angiv udløb", + "Remove expiry": "Fjern udløb", + "Expiry removed": "Udløb fjernet", + "{{ count }} days": "{{ count }} dag", + "{{ count }} days_plural": "{{ count }} dage", + "Expiry updated": "Udløb opdateret", "Revoke link": "Ophæv link", "Share link revoked": "Delelink ophævet", "{{ count }} share link revoked": "{{ count }} delelink ophævet", @@ -430,6 +437,8 @@ "our engineers have been notified": "vores ingeniører er blevet underrettet", "Clear cache + reload": "Ryd cache + genindlæs", "Show detail": "Vis detaljer", + "Choose a date": "Vælg en dato", + "Remove expiration": "Fjern udløbslimitten", "Exporting the collection may take some time.": "Eksport af samlingen kan tage lidt tid.", "You will receive an email when it’s complete.": "Du modtager en e-mail, når det er færdigt.", "Include attachments": "Inkludér vedhæftede filer", @@ -469,7 +478,6 @@ "Objects": "Objekter", "Symbols": "Symboler", "Flags": "Flag ", - "Custom": "Brugerdefinerede", "Word": "Word", "Plain text": "Ren tekst", "Email": "E-mail", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Alle i arbejdsområdet", "{{ count }} member": "{{ count }} medlem", "{{ count }} member_plural": "{{ count }} medlemmer", - "Public link copied to clipboard": "Link kopieret til udklipsholder", "Only lowercase letters, digits and dashes allowed": "Kun små bogstaver, cifre og bindestreger tilladt", "Sorry, this link has already been used": "Beklager, dette link er allerede blevet brugt", "Publish to web": "Udgiv på nettet", @@ -639,6 +646,8 @@ "Logo": "Logo", "Add": "Tilføj", "Add or invite": "Tilføj eller invitér", + "This link expired on {{ date }} and can no longer be accessed.": "Dette link udløb den {{ date }} og kan ikke længere tilgås.", + "Update expiry": "Opdater udløbsdato", "Sharing settings updated": "Delingsindstillinger opdateret", "Customize how the published document is displayed": "Tilpas, hvordan det udgivne dokument vises", "Image options": "Billedindstillinger", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Deaktivér denne indstilling for at forhindre søgemaskiner i at indeksere siden", "Email subscriptions": "Mailabonnementer", "Allow viewers to subscribe and receive email notifications when documents are updated": "Tillad seere at abonnere og modtage mailnotifikationer, når dokumenter opdateres", + "Expiration": "Udløb", + "The public link will stop working after the selected date": "Det offentlige link holder op med at virke efter den valgte dato", + "No expiry": "Intet udløb", "Something went wrong": "Noget gik galt", "Check your email to confirm your subscription": "Tjek din mail for at bekræfte dit abonnement", "Get notified when this document is updated": "Få besked, når dette dokument opdateres", @@ -662,6 +674,7 @@ "Editor": "Redaktør", "Suggestions for invitation": "Forslag til invitation", "No matches": "Ingen resultater", + "Public link copied to clipboard": "Link kopieret til udklipsholder", "Created the document": "Oprettede dokumentet", "Can view": "Kan se", "Everyone in the collection": "Alle i samlingen", @@ -924,11 +937,9 @@ "a document": "et dokument", "a collection": "en samling", "a group": "en gruppe", - "Choose a date": "Vælg en dato", "API key created. Please copy the value now as it will not be shown again.": "API-nøgle oprettet. Kopiér værdien nu, da den ikke vises igen.", "Scopes": "Omfang", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "Mellemrumadskilte scopes begrænser denne API-nøgles adgang til bestemte dele af API'et. Lad feltet være tomt for fuld adgang.", - "Expiration": "Udløb", "Never expires": "Udløber aldrig", "7 days": "7 dage", "30 days": "30 dage", @@ -1052,8 +1063,6 @@ "Last edited": "Senest redigeret", "Previously edited": "Tidligere redigeret", "Sorry, the last change could not be persisted – please reload the page": "Beklager, den seneste ændring kunne ikke gemmes – genindlæs siden", - "{{ count }} days": "{{ count }} dag", - "{{ count }} days_plural": "{{ count }} dage", "This document will be permanently deleted in <2> unless restored.": "Dette dokument slettes permanent om <2>, medmindre det gendannes.", "Deleted by {{userName}}": "Slettet af {{userName}}", "Observing {{ userName }}": "Observerer {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "Læs alle data", "Write all data": "Skriv alle data", "Create all data": "Opret alle data", + "More filters": "Flere filtre", + "More": "Mere", "Any collection": "Enhver samling", "All time": "Al tid", - "Past day": "Seneste dag", - "Past week": "Seneste uge", - "Past month": "Seneste måned", - "Past year": "Seneste år", "Any time": "Når som helst", + "Choose the first and last day": "Vælg den første og sidste dag", + "Apply": "Anvend", "Remove document filter": "Fjern dokumentfilter", - "Any status": "Enhver status", "Remove search": "Fjern søgning", + "Remove filter": "Fjern filter", "Relevance": "Relevans", "Newest": "Nyeste", "Oldest": "Ældste", "A → Z": "A til Z", "Z → A": "Z til A", + "Sorted by": "Sorteret efter", "Any author": "Enhver forfatter", - "Search titles only": "Søg kun i titler", + "Past day": "Seneste dag", + "Past week": "Seneste uge", + "Past month": "Seneste måned", + "Past year": "Seneste år", + "{{ count }} result": "{{ count }} resultat", + "{{ count }} result_plural": "{{ count }} resultater", "Please try again or contact support if the problem persists": "Prøv igen, eller kontakt support, hvis problemet fortsætter", "No documents found for your search filters.": "Ingen dokumenter fundet for dine søgefiltre.", + "Edited by": "Redigeret af", + "Status": "Status", + "Updated": "Opdateret", + "Created by": "Oprettet af", + "Title only": "Kun titel", + "From {{ date }}": "Fra {{ date }}", + "Until {{ date }}": "Indtil {{ date }}", "Settings saved": "Indstillinger gemt", "Copied to clipboard": "Kopieret til udklipsholder", "Control how AI features are used in the workspace.": "Styr, hvordan AI-funktioner bruges i arbejdsområdet.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "af {{ name }}", "Expired": "Udløbet", "Last used": "Senest brugt", - "No expiry": "Intet udløb", "Restricted scope": "Begrænset omfang", "API key copied to clipboard": "API-nøgle kopieret til udklipsholder", "Copied": "Kopieret", "Revoking": "Tilbagekalder", "Are you sure you want to revoke the {{ tokenName }} token?": "Er du sikker på, at du vil tilbagekalde tokenet {{ tokenName }}?", "Key": "Nøgle", - "Created by": "Oprettet af", "Never": "Aldrig", "Expires": "Udløber", "Could not load preference": "Kunne ikke indlæse præference", @@ -1383,6 +1403,8 @@ "Synced <2>": "Synkroniseret <2>", "Date created": "Oprettelsesdato", "Crop image": "Beskær billede", + "Change image": "Skift billede", + "Remove image": "Fjern billede", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "Din browser kan ikke læse HEIC-billeder – konvertér først billedet til JPEG eller PNG", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "Du kan importere en zip-fil, der tidligere er eksporteret fra JSON-indstillingen i en anden instans. I {{ appName }} skal du åbne Eksportér i sidepanelet Indstillinger og klikke på Eksportér data.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Træk og slip zip-filen fra JSON-eksportindstillingen i {{appName}}, eller klik for at uploade", @@ -1422,6 +1444,7 @@ "Editors": "Redaktører", "Invited by": "Inviteret af", "Joined": "Tilmeldt", + "Any status": "Enhver status", "Active": "Aktiv", "Could not load emojis": "Kunne ikke indlæse emoji", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Brugerdefinerede emoji kan bruges i hele dit arbejdsområde i dokumenter, kommentarer og reaktioner.", @@ -1548,6 +1571,8 @@ "Default role": "Standardrolle", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "Standardrollen for nye konti. Ændring af denne indstilling påvirker ikke eksisterende brugerkonti.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Når aktiveret, kan dokumenter deles offentligt på internettet af ethvert medlem af arbejdsrummet", + "Default link expiration": "Standardudløb for link", + "New public links will expire after this period. Existing links are not affected.": "Nye offentlige links udløber efter denne periode. Eksisterende links påvirkes ikke.", "Viewer document exports": "Læser dokument eksport", "When enabled, viewers can see download options for documents": "Når aktiveret, kan læsere se download-muligheder for dokumenter", "Users can delete account": "Brugere kan slette konto", @@ -1601,6 +1626,8 @@ "Expires today": "Udløber i dag", "Expires tomorrow": "Udløber i morgen", "Expires {{ date }}": "Udløber {{ date }}", + "Expires in {{ count }} day": "Udløber om {{ count }} dag", + "Expires in {{ count }} day_plural": "Udløber om {{ count }} dage", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Konfigurer en brugerdefineret Diagrams.net installations URL til at bruge din egen selvhostede instans til indlejring diagrammer i dine dokumenter.", "Installation URL": "Installations URL", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "Webadressen på din Diagrams.net-installation. Lad feltet være tomt for at bruge den cloud-hostede app.diagrams.net", diff --git a/shared/i18n/locales/de_DE/translation.json b/shared/i18n/locales/de_DE/translation.json index e2a28cbf4c..6759972a5a 100644 --- a/shared/i18n/locales/de_DE/translation.json +++ b/shared/i18n/locales/de_DE/translation.json @@ -215,6 +215,13 @@ "Share link copied": "Freigabelink wurde kopiert", "Go to collection": "Gehe zur Sammlung", "Go to document": "Zum Dokument gehen", + "Custom": "Benutzerdefiniert", + "Set expiry": "Ablaufdatum festlegen", + "Remove expiry": "Ablaufdatum entfernen", + "Expiry removed": "Ablaufdatum entfernt", + "{{ count }} days": "{{ count }} Tag", + "{{ count }} days_plural": "{{ count }} Tage", + "Expiry updated": "Ablaufdatum aktualisiert", "Revoke link": "Link widerrufen", "Share link revoked": "Freigabelink widerrufen", "{{ count }} share link revoked": "{{ count }} Freigabelink widerrufen", @@ -430,6 +437,8 @@ "our engineers have been notified": "unsere Entwickler wurden benachrichtigt", "Clear cache + reload": "Cache leeren + neu laden", "Show detail": "Details anzeigen", + "Choose a date": "Datum auswählen", + "Remove expiration": "Ablaufdatum entfernen", "Exporting the collection may take some time.": "Der Export der Sammlung kann einige Zeit in Anspruch nehmen.", "You will receive an email when it’s complete.": "Du erhältst eine E-Mail, sobald der Vorgang abgeschlossen ist.", "Include attachments": "Anhänge beifügen", @@ -469,7 +478,6 @@ "Objects": "Objekte", "Symbols": "Symbole", "Flags": "Flaggen", - "Custom": "Benutzerdefiniert", "Word": "Word", "Plain text": "Reiner Text", "Email": "E-Mail", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Alle im Arbeitsbereich", "{{ count }} member": "{{ count }} Mitglied", "{{ count }} member_plural": "{{ count }} Mitglieder", - "Public link copied to clipboard": "Öffentlicher Link in Zwischenablage kopiert", "Only lowercase letters, digits and dashes allowed": "Nur Kleinbuchstaben, Ziffern und Bindestriche zulässig", "Sorry, this link has already been used": "Entschuldige, dieser Link wurde bereits verwendet", "Publish to web": "Im Web veröffentlichen", @@ -639,6 +646,8 @@ "Logo": "Logo", "Add": "Hinzufügen", "Add or invite": "Hinzufügen oder einladen", + "This link expired on {{ date }} and can no longer be accessed.": "Dieser Link ist am {{ date }} abgelaufen und kann nicht mehr aufgerufen werden.", + "Update expiry": "Ablaufdatum aktualisieren", "Sharing settings updated": "Freigabeeinstellungen aktualisiert", "Customize how the published document is displayed": "Anpassen, wie das veröffentlichte Dokument angezeigt wird", "Image options": "Bildoptionen", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Deaktivieren Sie diese Einstellung, um Suchmaschinen davon abzuhalten, die Seite zu indizieren", "Email subscriptions": "E-Mail-Abonnements", "Allow viewers to subscribe and receive email notifications when documents are updated": "Beobachtern erlauben, E-Mail-Benachrichtigungen zu abonnieren und zu erhalten, wenn Dokumente aktualisiert werden", + "Expiration": "Ablaufdatum", + "The public link will stop working after the selected date": "Der öffentliche Link funktioniert nach dem ausgewählten Datum nicht mehr", + "No expiry": "Kein Verfall", "Something went wrong": "Etwas ist schiefgelaufen", "Check your email to confirm your subscription": "Überprüfen Sie Ihr E-Mail-Postfach, um Ihr Abonnement zu bestätigen", "Get notified when this document is updated": "Lassen Sie sich benachrichtigen, wenn das Dokument aktualisiert wurde", @@ -662,6 +674,7 @@ "Editor": "Editor", "Suggestions for invitation": "Vorschläge für Einladungen", "No matches": "Keine Treffer", + "Public link copied to clipboard": "Öffentlicher Link in Zwischenablage kopiert", "Created the document": "Dokument wurde erstellt", "Can view": "Darf anzeigen", "Everyone in the collection": "Alle in der Sammlung", @@ -924,11 +937,9 @@ "a document": "ein Dokument", "a collection": "eine Sammlung", "a group": "eine Gruppe", - "Choose a date": "Datum auswählen", "API key created. Please copy the value now as it will not be shown again.": "API-Schlüssel erstellt. Bitte kopieren Sie den Wert jetzt, da er nicht wieder angezeigt werden kann.", "Scopes": "Bereiche", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "Durch Leerzeichen getrennte Bereiche beschränken den Zugriff dieses API-Schlüssels auf bestimmte Teile der API. Für vollen Zugriff leer lassen.", - "Expiration": "Ablaufdatum", "Never expires": "Läuft nie ab", "7 days": "7 Tage", "30 days": "30 Tage", @@ -1052,8 +1063,6 @@ "Last edited": "Zuletzt bearbeitet", "Previously edited": "Zuvor bearbeitet", "Sorry, the last change could not be persisted – please reload the page": "Die letzte Änderung konnte leider nicht übernommen werden – bitte lade die Seite neu", - "{{ count }} days": "{{ count }} Tag", - "{{ count }} days_plural": "{{ count }} Tage", "This document will be permanently deleted in <2> unless restored.": "Dieses Dokument wird dauerhaft in <2> gelöscht, wenn es nicht wiederhergestellt wird.", "Deleted by {{userName}}": "Gelöscht von {{userName}}", "Observing {{ userName }}": "Beobachte {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "Alle Daten lesen", "Write all data": "Alle Daten schreiben", "Create all data": "Alle Daten erstellen", + "More filters": "Weitere Filter", + "More": "Mehr", "Any collection": "Beliebige Sammlung", "All time": "Gesamter Zeitraum", - "Past day": "Letzter Tag", - "Past week": "Letzte Woche", - "Past month": "Letzten Monat", - "Past year": "Letztes Jahr", "Any time": "Jederzeit", + "Choose the first and last day": "Ersten und letzten Tag auswählen", + "Apply": "Anwenden", "Remove document filter": "Dokumenten-Filter entfernen", - "Any status": "Jeder Status", "Remove search": "Suche entfernen", + "Remove filter": "Filter entfernen", "Relevance": "Relevanz", "Newest": "Neueste", "Oldest": "Älteste", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "Sortiert nach", "Any author": "Alle Autoren", - "Search titles only": "Nur Titel durchsuchen", + "Past day": "Letzter Tag", + "Past week": "Letzte Woche", + "Past month": "Letzten Monat", + "Past year": "Letztes Jahr", + "{{ count }} result": "{{ count }} Ergebnis", + "{{ count }} result_plural": "{{ count }} Ergebnisse", "Please try again or contact support if the problem persists": "Bitte versuchen Sie es erneut oder wenden Sie sich an den Support, falls das Problem weiterhin besteht", "No documents found for your search filters.": "Keine Dokumente für diese Suchfilter gefunden.", + "Edited by": "Bearbeitet von", + "Status": "Status", + "Updated": "Aktualisiert", + "Created by": "Erstellt von", + "Title only": "Nur Titel", + "From {{ date }}": "Ab {{ date }}", + "Until {{ date }}": "Bis {{ date }}", "Settings saved": "Einstellungen gespeichert", "Copied to clipboard": "In die Zwischenablage kopiert", "Control how AI features are used in the workspace.": "Lege fest, wie KI-Funktionen im Arbeitsbereich verwendet werden.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "von {{ name }}", "Expired": "Abgelaufen", "Last used": "Zuletzt verwendet", - "No expiry": "Kein Verfall", "Restricted scope": "Eingeschränkter Bereich", "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?", "Key": "Schlüssel", - "Created by": "Erstellt von", "Never": "Niemals", "Expires": "Läuft ab", "Could not load preference": "Konnte Einstellungen nicht laden", @@ -1383,6 +1403,8 @@ "Synced <2>": "Synchronisiert <2>", "Date created": "Erstellungsdatum", "Crop image": "Bild zuschneiden", + "Change image": "Bild ändern", + "Remove image": "Bild entfernen", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "Ihr Browser kann HEIC-Bilder nicht lesen – bitte konvertieren Sie das Bild zuerst in JPEG oder PNG", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "Du kannst eine ZIP-Datei importieren, die zuvor über die JSON-Exportoption in einer anderen Instanz exportiert wurde. Öffne in {{ appName }} Exportieren in der Seitenleiste „Einstellungen“ und klicke auf Daten exportieren.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Drag-and-Drop die Zip-Datei von JSON-Export Funktion in {{appName}}, oder klicke auf Upload", @@ -1422,6 +1444,7 @@ "Editors": "Redakteure", "Invited by": "Eingeladen von", "Joined": "Beigetreten", + "Any status": "Jeder Status", "Active": "Aktiv", "Could not load emojis": "Emojis konnten nicht geladen werden", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Benutzerdefinierte Emojis können im gesamten Arbeitsbereich in Dokumenten, Kommentaren und Reaktionen verwendet werden.", @@ -1548,6 +1571,8 @@ "Default role": "Standard-Rolle", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "Die Standardrolle für neue Benutzer. Das Ändern dieser Einstellung wirkt sich nicht auf bestehende Benutzerkonten aus.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Wenn diese Option aktiviert ist, können Dokumente von jedem Arbeitsbereichs-Mitglied öffentlich im Internet geteilt werden", + "Default link expiration": "Standardablaufdatum für Links", + "New public links will expire after this period. Existing links are not affected.": "Neue öffentliche Links laufen nach diesem Zeitraum ab. Bestehende Links sind nicht betroffen.", "Viewer document exports": "Betrachter können Dokumente exportieren", "When enabled, viewers can see download options for documents": "Wenn diese Option aktiviert ist, können Betrachter Download-Optionen für Dokumente sehen", "Users can delete account": "Benutzer können Konto löschen", @@ -1601,6 +1626,8 @@ "Expires today": "Läuft heute ab", "Expires tomorrow": "Läuft morgen ab", "Expires {{ date }}": "Läuft am {{ date }} ab", + "Expires in {{ count }} day": "Läuft in {{ count }} Tag ab", + "Expires in {{ count }} day_plural": "Läuft in {{ count }} Tagen ab", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Konfigurieren Sie eine benutzerdefinierte Diagrams.net-Installations-URL, um Ihre eigene Instanz zum Einbinden von Diagrammen in Ihre Dokumente zu verwenden.", "Installation URL": "URL der Installation", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "Die URL Ihrer Diagrams.net-Installation. Leer lassen, um die in der Cloud gehostete app.diagrams.net zu verwenden", diff --git a/shared/i18n/locales/el_GR/translation.json b/shared/i18n/locales/el_GR/translation.json new file mode 100644 index 0000000000..c0acc1ce46 --- /dev/null +++ b/shared/i18n/locales/el_GR/translation.json @@ -0,0 +1,2017 @@ +{ + "New API key": "Νέο κλειδί API", + "Copy": "Αντιγραφή", + "API key copied": "Το κλειδί API αντιγράφηκε", + "Delete": "Διαγραφή", + "Revoke": "Ανάκληση", + "Revoke API key": "Ανάκληση κλειδιού API", + "Revoke token": "Ανάκληση token", + "Open collection": "Άνοιγμα συλλογής", + "New collection": "Νέα συλλογή", + "Create a collection": "Δημιουργία συλλογής", + "Edit": "Επεξεργασία", + "Edit collection": "Επεξεργασία συλλογής", + "Permissions": "Δικαιώματα", + "Collection permissions": "Δικαιώματα συλλογής", + "Share this collection": "Κοινοποίηση αυτής της συλλογής", + "Duplicate": "Δημιουργία αντιγράφου", + "Duplicate collection": "Αντίγραφο συλλογής", + "Import documents": "Εισαγωγή εγγράφων", + "Sort in sidebar": "Ταξινόμηση στην πλαϊνή στήλη", + "A-Z sort": "Ταξινόμηση Α-Ω", + "Z-A sort": "Ταξινόμηση Ω-Α", + "Manual sort": "Χειροκίνητη ταξινόμηση", + "Open in split view": "Άνοιγμα σε διαιρεμένη προβολή", + "Search in collection": "Αναζήτηση στη συλλογή", + "Star": "Αγαπημένο", + "Unstar": "Αφαίρεση από αγαπημένα", + "Subscribe": "Εγγραφή", + "Subscribed to document notifications": "Εγγραφήκατε στις ειδοποιήσεις του εγγράφου", + "Unsubscribe": "Κατάργηση εγγραφής", + "Unsubscribed from document notifications": "Καταργήθηκε η εγγραφή στις ειδοποιήσεις του εγγράφου", + "Archive": "Αρχειοθέτηση", + "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.": "Η αρχειοθέτηση αυτής της συλλογής θα αρχειοθετήσει και όλα τα έγγραφά της. Τα έγγραφα της συλλογής δεν θα εμφανίζονται πλέον στα αποτελέσματα αναζήτησης.", + "Restore": "Επαναφορά", + "Collection restored": "Η συλλογή επαναφέρθηκε", + "Delete collection": "Διαγραφή συλλογής", + "Export": "Εξαγωγή", + "Export collection": "Εξαγωγή συλλογής", + "New document": "Νέο έγγραφο", + "New template": "Νέο πρότυπο", + "Delete comment": "Διαγραφή σχολίου", + "Mark as resolved": "Σήμανση ως επιλυμένο", + "Thread resolved": "Η συζήτηση επιλύθηκε", + "Mark as unresolved": "Σήμανση ως μη επιλυμένο", + "Copy link": "Αντιγραφή συνδέσμου", + "Link copied to clipboard": "Ο σύνδεσμος αντιγράφηκε στο πρόχειρο", + "View reactions": "Προβολή αντιδράσεων", + "Reactions": "Αντιδράσεις", + "Rename": "Μετονομασία", + "Copy ID": "Αντιγραφή ID", + "Clear IndexedDB cache": "Εκκαθάριση cache IndexedDB", + "IndexedDB cache cleared": "Η cache IndexedDB εκκαθαρίστηκε", + "Clear local storage": "Εκκαθάριση τοπικής αποθήκευσης", + "Local storage cleared": "Η τοπική αποθήκευση εκκαθαρίστηκε", + "Toggle debug logging": "Εναλλαγή καταγραφής αποσφαλμάτωσης", + "Debug logging enabled": "Η καταγραφή αποσφαλμάτωσης ενεργοποιήθηκε", + "Debug logging disabled": "Η καταγραφή αποσφαλμάτωσης απενεργοποιήθηκε", + "Development": "Ανάπτυξη", + "Open document": "Άνοιγμα εγγράφου", + "New draft": "Νέο πρόχειρο", + "Nested document": "Ένθετο έγγραφο", + "Before": "Πριν", + "After": "Μετά", + "{{ count }} document starred": "{{ count }} έγγραφο προστέθηκε στα αγαπημένα", + "{{ count }} document starred_plural": "{{ count }} έγγραφα προστέθηκαν στα αγαπημένα", + "{{ count }} document unstarred": "{{ count }} έγγραφο αφαιρέθηκε από τα αγαπημένα", + "{{ count }} document unstarred_plural": "{{ count }} έγγραφα αφαιρέθηκαν από τα αγαπημένα", + "Publish": "Δημοσίευση", + "Published {{ documentName }}": "Δημοσιεύτηκε το {{ documentName }}", + "Publish document": "Δημοσίευση εγγράφου", + "Unpublish": "Κατάργηση δημοσίευσης", + "Unpublished {{ documentName }}": "Καταργήθηκε η δημοσίευση του {{ documentName }}", + "{{ count }} document unpublished": "Καταργήθηκε η δημοσίευση {{ count }} εγγράφου", + "{{ count }} document unpublished_plural": "Καταργήθηκε η δημοσίευση {{ count }} εγγράφων", + "Subscription inherited from collection": "Η εγγραφή κληρονομείται από τη συλλογή", + "Share document": "Κοινοποίηση εγγράφου", + "Markdown": "Γλώσσα Markdown", + "Download as Markdown": "Λήψη ως Markdown", + "HTML": "Κώδικας HTML", + "Download as HTML": "Λήψη ως HTML", + "TextBundle": "Μορφή TextBundle", + "Download as TextBundle": "Λήψη ως TextBundle", + "PDF": "Αρχείο PDF", + "Download as PDF": "Λήψη ως PDF", + "Copy as Markdown": "Αντιγραφή ως Markdown", + "Markdown copied to clipboard": "Το Markdown αντιγράφηκε στο πρόχειρο", + "Copy as text": "Αντιγραφή ως κείμενο", + "Text copied to clipboard": "Το κείμενο αντιγράφηκε στο πρόχειρο", + "Copy public link": "Αντιγραφή δημόσιου συνδέσμου", + "Duplicate document": "Αντίγραφο εγγράφου", + "Pin to {{collectionName}}": "Καρφίτσωμα στο {{collectionName}}", + "Pin": "Καρφίτσωμα", + "Pinned to collection": "Καρφιτσώθηκε στη συλλογή", + "{{ count }} document pinned": "{{ count }} έγγραφο καρφιτσώθηκε", + "{{ count }} document pinned_plural": "{{ count }} έγγραφα καρφιτσώθηκαν", + "Pin to home": "Καρφίτσωμα στην αρχική", + "Pinned to home": "Καρφιτσώθηκε στην αρχική", + "Unpin": "Ξεκαρφίτσωμα", + "Unpinned": "Ξεκαρφιτσώθηκε", + "{{ count }} document unpinned": "{{ count }} έγγραφο ξεκαρφιτσώθηκε", + "{{ count }} document unpinned_plural": "{{ count }} έγγραφα ξεκαρφιτσώθηκαν", + "Search in document": "Αναζήτηση στο έγγραφο", + "Print": "Εκτύπωση", + "Print document": "Εκτύπωση εγγράφου", + "Export document": "Εξαγωγή εγγράφου", + "Open in desktop app": "Άνοιγμα στην εφαρμογή υπολογιστή", + "Present": "Παρουσίαση", + "Present document": "Παρουσίαση εγγράφου", + "Templatize": "Μετατροπή σε πρότυπο", + "Create template": "Δημιουργία προτύπου", + "Open random document": "Άνοιγμα τυχαίου εγγράφου", + "Search documents for “{{ searchQuery }}”": "Αναζήτηση εγγράφων για «{{ searchQuery }}»", + "Move": "Μετακίνηση", + "Move {{ documentType }}": "Μετακίνηση: {{ documentType }}", + "Move {{ count }} document": "Μετακίνηση {{ count }} εγγράφου", + "Move {{ count }} document_plural": "Μετακίνηση {{ count }} εγγράφων", + "Are you sure you want to archive this document?": "Είστε βέβαιοι ότι θέλετε να αρχειοθετήσετε αυτό το έγγραφο;", + "Are you sure you want to archive {{ count }} documents?": "Είστε βέβαιοι ότι θέλετε να αρχειοθετήσετε {{ count }} έγγραφο;", + "Are you sure you want to archive {{ count }} documents?_plural": "Είστε βέβαιοι ότι θέλετε να αρχειοθετήσετε {{ count }} έγγραφα;", + "Document archived": "Το έγγραφο αρχειοθετήθηκε", + "{{ count }} document archived": "{{ count }} έγγραφο αρχειοθετήθηκε", + "{{ count }} document archived_plural": "{{ count }} έγγραφα αρχειοθετήθηκαν", + "{{ documentName }} restored": "Το {{ documentName }} επαναφέρθηκε", + "{{ count }} document restored": "{{ count }} έγγραφο επαναφέρθηκε", + "{{ count }} document restored_plural": "{{ count }} έγγραφα επαναφέρθηκαν", + "Choose a collection": "Επιλέξτε συλλογή", + "Delete {{ documentName }}": "Διαγραφή {{ documentName }}", + "Delete {{ count }} documents": "Διαγραφή {{ count }} εγγράφου", + "Delete {{ count }} documents_plural": "Διαγραφή {{ count }} εγγράφων", + "Deleting": "Διαγραφή", + "{{ count }} document moved to trash": "{{ count }} έγγραφο μεταφέρθηκε στον κάδο", + "{{ count }} document moved to trash_plural": "{{ count }} έγγραφα μεταφέρθηκαν στον κάδο", + "Deleting these documents will move them to the trash.": "Η διαγραφή αυτών των εγγράφων θα τα μεταφέρει στον κάδο.", + "Permanently delete": "Οριστική διαγραφή", + "Permanently delete {{ documentName }}": "Οριστική διαγραφή {{ documentName }}", + "Empty trash": "Άδειασμα κάδου", + "Permanently delete documents in trash": "Οριστική διαγραφή των εγγράφων του κάδου", + "Comments": "Σχόλια", + "History": "Ιστορικό", + "Insights": "Στατιστικά", + "Show editing stats": "Εμφάνιση στατιστικών επεξεργασίας", + "None": "Κανένα", + "Multi-level decimal": "Πολυεπίπεδη δεκαδική", + "Alphanumeric": "Αλφαριθμητική", + "Harvard": "Πανεπιστήμιο Harvard", + "Heading numbering": "Αρίθμηση επικεφαλίδων", + "Leave document": "Αποχώρηση από το έγγραφο", + "You have left the shared document": "Αποχωρήσατε από το κοινόχρηστο έγγραφο", + "Could not leave document": "Δεν ήταν δυνατή η αποχώρηση από το έγγραφο", + "Apply template": "Εφαρμογή προτύπου", + "New emoji": "Νέο emoji", + "Upload emoji": "Μεταφόρτωση emoji", + "Replace": "Αντικατάσταση", + "Replace image": "Αντικατάσταση εικόνας", + "Delete emoji": "Διαγραφή emoji", + "Members": "Μέλη", + "Edit group": "Επεξεργασία ομάδας", + "Delete group": "Διαγραφή ομάδας", + "Delete {{ count }} group": "Διαγραφή {{ count }} ομάδας", + "Delete {{ count }} group_plural": "Διαγραφή {{ count }} ομάδων", + "Add people": "Προσθήκη ατόμων", + "Add people to {{groupName}}": "Προσθήκη ατόμων στο {{groupName}}", + "{{ count }} member updated": "{{ count }} μέλος ενημερώθηκε", + "{{ count }} member updated_plural": "{{ count }} μέλη ενημερώθηκαν", + "Change role": "Αλλαγή ρόλου", + "Leave group": "Αποχώρηση από την ομάδα", + "Remove user": "Αφαίρεση χρήστη", + "Remove users": "Αφαίρεση χρηστών", + "{{ count }} member removed from the group": "{{ count }} μέλος αφαιρέθηκε από την ομάδα", + "{{ count }} member removed from the group_plural": "{{ count }} μέλη αφαιρέθηκαν από την ομάδα", + "You have left the group": "Αποχωρήσατε από την ομάδα", + "{{userName}} was removed from the group": "Ο χρήστης {{userName}} αφαιρέθηκε από την ομάδα", + "Disconnect": "Αποσύνδεση", + "Disconnect analytics": "Αποσύνδεση analytics", + "Home": "Αρχική", + "Drafts": "Πρόχειρα", + "Search": "Αναζήτηση", + "Trash": "Κάδος", + "Settings": "Ρυθμίσεις", + "Import docs": "Εισαγωγή εγγράφων", + "Profile": "Προφίλ", + "Notification settings": "Ρυθμίσεις ειδοποιήσεων", + "Notifications": "Ειδοποιήσεις", + "Preferences": "Προτιμήσεις", + "Documentation": "Τεκμηρίωση", + "API documentation": "Τεκμηρίωση API", + "Toggle sidebar": "Εναλλαγή πλαϊνής στήλης", + "Send us feedback": "Στείλτε μας σχόλια", + "Report a bug": "Αναφορά σφάλματος", + "Changelog": "Αρχείο αλλαγών", + "Keyboard shortcuts": "Συντομεύσεις πληκτρολογίου", + "Download {{ platform }} app": "Λήψη εφαρμογής {{ platform }}", + "Log out": "Αποσύνδεση", + "Mark notifications as read": "Σήμανση ειδοποιήσεων ως αναγνωσμένων", + "Archive all notifications": "Αρχειοθέτηση όλων των ειδοποιήσεων", + "Mark as read": "Σήμανση ως αναγνωσμένο", + "Mark as unread": "Σήμανση ως μη αναγνωσμένο", + "Revoke {{ appName }}": "Ανάκληση {{ appName }}", + "New App": "Νέα εφαρμογή", + "New Application": "Νέα εφαρμογή", + "Delete app": "Διαγραφή εφαρμογής", + "This version of the document was deleted": "Αυτή η έκδοση του εγγράφου διαγράφηκε", + "Exporting": "Εξαγωγή", + "Export revision": "Εξαγωγή έκδοσης", + "Dark": "Σκούρο", + "Light": "Ανοιχτό", + "Toggle theme": "Εναλλαγή θέματος", + "System": "Σύστημα", + "Appearance": "Εμφάνιση", + "Change theme": "Αλλαγή θέματος", + "Change theme to": "Αλλαγή θέματος σε", + "Share link copied": "Ο σύνδεσμος κοινοποίησης αντιγράφηκε", + "Go to collection": "Μετάβαση στη συλλογή", + "Go to document": "Μετάβαση στο έγγραφο", + "Custom": "Προσαρμοσμένα", + "Set expiry": "Ορισμός λήξης", + "Remove expiry": "Κατάργηση λήξης", + "Expiry removed": "Η λήξη καταργήθηκε", + "{{ count }} days": "{{ count }} ημέρα", + "{{ count }} days_plural": "{{ count }} ημέρες", + "Expiry updated": "Η λήξη ενημερώθηκε", + "Revoke link": "Ανάκληση συνδέσμου", + "Share link revoked": "Ο σύνδεσμος κοινοποίησης ανακλήθηκε", + "{{ count }} share link revoked": "{{ count }} σύνδεσμος κοινοποίησης ανακλήθηκε", + "{{ count }} share link revoked_plural": "{{ count }} σύνδεσμοι κοινοποίησης ανακλήθηκαν", + "Could not revoke {{ count }} share link": "Δεν ήταν δυνατή η ανάκληση {{ count }} συνδέσμου κοινοποίησης", + "Could not revoke {{ count }} share link_plural": "Δεν ήταν δυνατή η ανάκληση {{ count }} συνδέσμων κοινοποίησης", + "Logged out": "Αποσυνδεθήκατε", + "Switch workspace": "Αλλαγή χώρου εργασίας", + "Select a workspace": "Επιλέξτε χώρο εργασίας", + "New workspace": "Νέος χώρος εργασίας", + "Create a workspace": "Δημιουργία χώρου εργασίας", + "Log in to workspace": "Σύνδεση στον χώρο εργασίας", + "Manage templates": "Διαχείριση προτύπων", + "Delete template": "Διαγραφή προτύπου", + "Delete {{ count }} template": "Διαγραφή {{ count }} προτύπου", + "Delete {{ count }} template_plural": "Διαγραφή {{ count }} προτύπων", + "Template deleted": "Το πρότυπο διαγράφηκε", + "{{ count }} template deleted": "{{ count }} πρότυπο διαγράφηκε", + "{{ count }} template deleted_plural": "{{ count }} πρότυπα διαγράφηκαν", + "Are you sure about that? Deleting the {{ templateName }} template is permanent.": "Είστε βέβαιοι; Η διαγραφή του προτύπου {{ templateName }} είναι οριστική.", + "Are you sure about that? Deleting {{ count }} template is permanent.": "Είστε βέβαιοι; Η διαγραφή {{ count }} προτύπου είναι οριστική.", + "Are you sure about that? Deleting {{ count }} template is permanent._plural": "Είστε βέβαιοι; Η διαγραφή {{ count }} προτύπων είναι οριστική.", + "A template must have content": "Ένα πρότυπο πρέπει να έχει περιεχόμενο", + "Template published": "Το πρότυπο δημοσιεύτηκε", + "{{ count }} template published": "{{ count }} πρότυπο δημοσιεύτηκε", + "{{ count }} template published_plural": "{{ count }} πρότυπα δημοσιεύτηκαν", + "Could not publish {{ count }} template": "Δεν ήταν δυνατή η δημοσίευση {{ count }} προτύπου", + "Could not publish {{ count }} template_plural": "Δεν ήταν δυνατή η δημοσίευση {{ count }} προτύπων", + "Move to workspace": "Μετακίνηση στον χώρο εργασίας", + "Template moved": "Το πρότυπο μετακινήθηκε", + "Couldn’t move the template. Try again?": "Δεν ήταν δυνατή η μετακίνηση του προτύπου. Δοκιμή ξανά;", + "Move to collection": "Μετακίνηση σε συλλογή", + "Move template": "Μετακίνηση προτύπου", + "{{ count }} template duplicated": "{{ count }} πρότυπο αντιγράφηκε", + "{{ count }} template duplicated_plural": "{{ count }} πρότυπα αντιγράφηκαν", + "Print template": "Εκτύπωση προτύπου", + "Invite people": "Πρόσκληση ατόμων", + "Invite to workspace": "Πρόσκληση στον χώρο εργασίας", + "Update role": "Ενημέρωση ρόλου", + "Change profile picture": "Αλλαγή φωτογραφίας προφίλ", + "Change name": "Αλλαγή ονόματος", + "Change email": "Αλλαγή email", + "Suspend user": "Αναστολή χρήστη", + "Suspend {{ count }} user": "Αναστολή {{ count }} χρήστη", + "Suspend {{ count }} user_plural": "Αναστολή {{ count }} χρηστών", + "Activate user": "Ενεργοποίηση χρήστη", + "{{ count }} user activated": "{{ count }} χρήστης ενεργοποιήθηκε", + "{{ count }} user activated_plural": "{{ count }} χρήστες ενεργοποιήθηκαν", + "Resend invite": "Επαναποστολή πρόσκλησης", + "Invite was resent to {{ userName }}": "Η πρόσκληση στάλθηκε ξανά στον χρήστη {{ userName }}", + "{{ count }} invite resent": "{{ count }} πρόσκληση στάλθηκε ξανά", + "{{ count }} invite resent_plural": "{{ count }} προσκλήσεις στάλθηκαν ξανά", + "Could not resend {{ count }} invite": "Δεν ήταν δυνατή η επαναποστολή {{ count }} πρόσκλησης", + "Could not resend {{ count }} invite_plural": "Δεν ήταν δυνατή η επαναποστολή {{ count }} προσκλήσεων", + "Revoke invite": "Ανάκληση πρόσκλησης", + "{{ count }} invite revoked": "{{ count }} πρόσκληση ανακλήθηκε", + "{{ count }} invite revoked_plural": "{{ count }} προσκλήσεις ανακλήθηκαν", + "Delete user": "Διαγραφή χρήστη", + "Delete {{ count }} user": "Διαγραφή {{ count }} χρήστη", + "Delete {{ count }} user_plural": "Διαγραφή {{ count }} χρηστών", + "Collection": "Συλλογή", + "Collections": "Συλλογές", + "Debug": "Αποσφαλμάτωση", + "Date": "Ημερομηνία", + "Document": "Έγγραφο", + "Search results": "Αποτελέσματα αναζήτησης", + "Documents": "Έγγραφα", + "Template": "Πρότυπο", + "Recently viewed": "Πρόσφατα προβεβλημένα", + "Revision": "Έκδοση", + "Navigation": "Πλοήγηση", + "Notification": "Ειδοποίηση", + "Groups": "Ομάδες", + "Emoji": "Εικονίδιο emoji", + "People": "Άτομα", + "Share": "Κοινοποίηση", + "Workspace": "Χώρος εργασίας", + "Recent searches": "Πρόσφατες αναζητήσεις", + "currently editing": "επεξεργάζεται τώρα", + "currently viewing": "βλέπει τώρα", + "previously edited": "επεξεργάστηκε πρόσφατα", + "You": "Εσείς", + "Avatar of {{ name }}": "Avatar του χρήστη {{ name }}", + "Viewers": "Θεατές", + "Managers": "Διαχειριστές", + "Choose who can create and edit templates in this collection.": "Επιλέξτε ποιοι μπορούν να δημιουργούν και να επεξεργάζονται πρότυπα σε αυτή τη συλλογή.", + "Public document sharing": "Δημόσια κοινοποίηση εγγράφων", + "Allow documents within this collection to be shared publicly on the internet.": "Να επιτρέπεται η δημόσια κοινοποίηση των εγγράφων αυτής της συλλογής στο διαδίκτυο.", + "Commenting": "Σχολιασμός", + "Allow commenting on documents within this collection.": "Να επιτρέπεται ο σχολιασμός στα έγγραφα αυτής της συλλογής.", + "Collections are used to group documents and choose permissions": "Οι συλλογές χρησιμοποιούνται για την ομαδοποίηση εγγράφων και τον ορισμό δικαιωμάτων", + "Name": "Όνομα", + "The default access for workspace members. You can share with more users or groups later.": "Η προεπιλεγμένη πρόσβαση για τα μέλη του χώρου εργασίας. Μπορείτε να κοινοποιήσετε σε περισσότερους χρήστες ή ομάδες αργότερα.", + "Advanced options": "Επιλογές για προχωρημένους", + "Saving": "Αποθήκευση", + "Save": "Αποθήκευση", + "Creating": "Δημιουργία", + "Create": "Δημιουργία", + "Collection deleted": "Η συλλογή διαγράφηκε", + "I’m sure – Delete": "Είμαι βέβαιος – Διαγραφή", + "Are you sure about that? Deleting the {{collectionName}} collection is permanent and cannot be restored, but all published documents within will be moved to the trash.": "Είστε βέβαιοι; Η διαγραφή της συλλογής {{collectionName}} είναι οριστική και δεν μπορεί να ανακτηθεί, όμως όλα τα δημοσιευμένα έγγραφα που περιέχει θα μεταφερθούν στον κάδο απορριμμάτων.", + "Also, {{collectionName}} is being used as the start view – deleting it will reset the start view to the Home page.": "Επίσης, η {{collectionName}} χρησιμοποιείται ως αρχική προβολή – η διαγραφή της θα επαναφέρει την αρχική προβολή στην Αρχική σελίδα.", + "Duplicating collection": "Δημιουργία αντιγράφου συλλογής", + "A copy of the collection and the documents within it will be created.": "Θα δημιουργηθεί αντίγραφο της συλλογής και των εγγράφων της.", + "Duplicating": "Δημιουργία αντιγράφου", + "Type a command or search": "Πληκτρολογήστε εντολή ή αναζήτηση", + "Untitled": "Χωρίς τίτλο", + "New from template": "Νέο από πρότυπο", + "Choose a template": "Επιλέξτε πρότυπο", + "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": "πρόσβαση διαχείρισης", + "view and edit access": "πρόσβαση προβολής και επεξεργασίας", + "view only access": "πρόσβαση μόνο προβολής", + "no access": "χωρίς πρόσβαση", + "You do not have permission to move {{ documentName }} to the {{ collectionName }} collection": "Δεν έχετε δικαίωμα να μετακινήσετε το {{ documentName }} στη συλλογή {{ collectionName }}", + "Move document": "Μετακίνηση εγγράφου", + "Moving": "Μετακίνηση", + "Moving the document {{ title }} to the {{ newCollectionName }} collection will change permission for all workspace members from {{ prevPermission }} to {{ newPermission }}.": "Η μετακίνηση του εγγράφου {{ title }} στη συλλογή {{ newCollectionName }} θα αλλάξει τα δικαιώματα όλων των μελών του χώρου εργασίας από {{ prevPermission }} σε {{ newPermission }}.", + "Collections could not be loaded – please reload the app": "Δεν ήταν δυνατή η φόρτωση των συλλογών – φορτώστε ξανά την εφαρμογή", + "Start view": "Αρχική προβολή", + "Reason saved": "Η αιτιολογία αποθηκεύτηκε", + "The reason could not be saved. Please try again.": "Δεν ήταν δυνατή η αποθήκευση της αιτιολογίας. Δοκιμάστε ξανά.", + "Reason for archiving or deleting": "Αιτιολογία αρχειοθέτησης ή διαγραφής", + "Add a reason": "Προσθήκη αιτιολογίας", + "An update is ready to install.": "Μια ενημέρωση είναι έτοιμη για εγκατάσταση.", + "Install now": "Εγκατάσταση τώρα", + "Archiving this document will remove it from the collection and search results.": "Η αρχειοθέτηση αυτού του εγγράφου θα το αφαιρέσει από τη συλλογή και τα αποτελέσματα αναζήτησης.", + "Archiving these documents will remove them from their collections and search results.": "Η αρχειοθέτηση αυτών των εγγράφων θα τα αφαιρέσει από τις συλλογές τους και τα αποτελέσματα αναζήτησης.", + "Reason (optional)": "Αιτιολογία (προαιρετικά)", + "Deleted collection": "Διαγραμμένη συλλογή", + "Collection options": "Επιλογές συλλογής", + "Document options": "Επιλογές εγγράφου", + "Select a location to copy": "Επιλέξτε θέση για αντιγραφή", + "Document copied": "Το έγγραφο αντιγράφηκε", + "Couldn’t copy the document. Try again?": "Δεν ήταν δυνατή η αντιγραφή του εγγράφου. Δοκιμή ξανά;", + "Include nested documents": "Συμπερίληψη ένθετων εγγράφων", + "Copy to {{ location }}": "Αντιγραφή σε {{ location }}", + "Copying": "Αντιγραφή", + "Search collections & documents": "Αναζήτηση συλλογών και εγγράφων", + "Search collections": "Αναζήτηση συλλογών", + "No results found": "Δεν βρέθηκαν αποτελέσματα", + "Select a location to move": "Επιλέξτε θέση για μετακίνηση", + "Document moved": "Το έγγραφο μετακινήθηκε", + "Couldn’t move the document. Try again?": "Δεν ήταν δυνατή η μετακίνηση του εγγράφου. Δοκιμή ξανά;", + "{{ count }} document moved": "{{ count }} έγγραφο μετακινήθηκε", + "{{ count }} document moved_plural": "{{ count }} έγγραφα μετακινήθηκαν", + "Move to {{ location }}": "Μετακίνηση σε {{ location }}", + "Select": "Επιλογή", + "New": "Νέο", + "Only visible to you": "Ορατό μόνο σε εσάς", + "Draft": "Πρόχειρο", + "You updated": "Ενημερώσατε", + "{{ userName }} updated": "Ο/Η {{ userName }} ενημέρωσε", + "You deleted": "Διαγράψατε", + "{{ userName }} deleted": "Ο/Η {{ userName }} διέγραψε", + "You archived": "Αρχειοθετήσατε", + "{{ userName }} archived": "Ο/Η {{ userName }} αρχειοθέτησε", + "Imported": "Εισήχθη", + "You created": "Δημιουργήσατε", + "{{ userName }} created": "Ο/Η {{ userName }} δημιούργησε", + "You published": "Δημοσιεύσατε", + "{{ userName }} published": "Ο/Η {{ userName }} δημοσίευσε", + "Never viewed": "Δεν έχει προβληθεί ποτέ", + "Viewed": "Προβλήθηκε", + "in": "σε", + "nested document": "ένθετο έγγραφο", + "nested document_plural": "ένθετα έγγραφα", + "{{ total }} task": "{{ total }} εργασία", + "{{ total }} task_plural": "{{ total }} εργασίες", + "{{ completed }} task done": "{{ completed }} εργασία ολοκληρώθηκε", + "{{ completed }} task done_plural": "{{ completed }} εργασίες ολοκληρώθηκαν", + "{{ completed }} of {{ total }} tasks": "{{ completed }} από {{ total }} εργασίες", + "Currently editing": "Επεξεργάζεται τώρα", + "Currently viewing": "Βλέπει τώρα", + "Viewed {{ timeAgo }}": "Προβλήθηκε {{ timeAgo }}", + "Download complete": "Η λήψη ολοκληρώθηκε", + "Show in Finder": "Εμφάνιση στο Finder", + "Show in Explorer": "Εμφάνιση στην Εξερεύνηση", + "Show in folder": "Εμφάνιση στον φάκελο", + "Open": "Άνοιγμα", + "Picked up {{ title }}": "Επιλέχθηκε το {{ title }}", + "Dropped {{ title }}": "Αφέθηκε το {{ title }}", + "Canceled dragging {{ title }}": "Ακυρώθηκε η μεταφορά του {{ title }}", + "File type not supported. Please use PNG, JPG, GIF, or WebP.": "Ο τύπος αρχείου δεν υποστηρίζεται. Χρησιμοποιήστε PNG, JPG, GIF ή WebP.", + "File size too large. Maximum size is {{ size }}.": "Το αρχείο είναι πολύ μεγάλο. Μέγιστο μέγεθος: {{ size }}.", + "Click or drag to replace": "Κάντε κλικ ή σύρετε για αντικατάσταση", + "Drop the image here": "Αφήστε την εικόνα εδώ", + "Click, drop, or paste an image here": "Κάντε κλικ, αφήστε ή επικολλήστε μια εικόνα εδώ", + "PNG, JPG, GIF, or WebP up to {{ size }}": "PNG, JPG, GIF ή WebP έως {{ size }}", + "Please enter a name for the emoji": "Εισαγάγετε όνομα για το emoji", + "Please select an image file": "Επιλέξτε αρχείο εικόνας", + "Emoji created successfully": "Το emoji δημιουργήθηκε", + "Uploading": "Μεταφόρτωση", + "Add emoji": "Προσθήκη emoji", + "Square images with transparent backgrounds work best. If your image is too large, we’ll try to resize it for you.": "Οι τετράγωνες εικόνες με διαφανές φόντο λειτουργούν καλύτερα. Αν η εικόνα σας είναι πολύ μεγάλη, θα προσπαθήσουμε να την προσαρμόσουμε.", + "Upload an image": "Μεταφόρτωση εικόνας", + "Choose a name": "Επιλέξτε όνομα", + "Name can only contain lowercase letters, numbers, and underscores.": "Το όνομα μπορεί να περιέχει μόνο πεζά γράμματα, αριθμούς και κάτω παύλες.", + "This emoji will be available as": "Αυτό το emoji θα είναι διαθέσιμο ως", + "Emoji deleted": "Το emoji διαγράφηκε", + "Are you sure you want to delete the {{emojiName}} emoji? You will no longer be able to use it in your documents or collections.": "Είστε βέβαιοι ότι θέλετε να διαγράψετε το emoji {{emojiName}}; Δεν θα μπορείτε πλέον να το χρησιμοποιείτε στα έγγραφα ή τις συλλογές σας.", + "Emoji replaced": "Το emoji αντικαταστάθηκε", + "Upload a new image to replace the current one for {{emojiName}}. All existing uses of this emoji will be updated automatically.": "Μεταφορτώστε νέα εικόνα για να αντικαταστήσετε την τρέχουσα του {{emojiName}}. Όλες οι υπάρχουσες χρήσεις αυτού του emoji θα ενημερωθούν αυτόματα.", + "Module failed to load": "Αποτυχία φόρτωσης λειτουργικής μονάδας", + "Loading failed": "Η φόρτωση απέτυχε", + "Sorry, part of the application failed to load. This may be because it was updated since you opened the tab or because of a failed network request. Please try reloading.": "Λυπούμαστε, ένα μέρος της εφαρμογής δεν φορτώθηκε. Αυτό μπορεί να οφείλεται σε ενημέρωση από τότε που ανοίξατε την καρτέλα ή σε αποτυχημένο αίτημα δικτύου. Δοκιμάστε να φορτώσετε ξανά.", + "Reload": "Επαναφόρτωση", + "Something unexpected happened": "Συνέβη κάτι απρόσμενο", + "An error has occurred multiple times recently. If it continues, please try clearing the cache or using a different browser.": "Παρουσιάστηκε σφάλμα πολλές φορές πρόσφατα. Αν συνεχιστεί, δοκιμάστε να εκκαθαρίσετε την προσωρινή μνήμη ή να χρησιμοποιήσετε διαφορετικό πρόγραμμα περιήγησης.", + "Sorry, an unrecoverable error occurred{{notified}}. Please try reloading the page – it may have been a temporary glitch.": "Λυπούμαστε, παρουσιάστηκε μη ανακτήσιμο σφάλμα{{notified}}. Δοκιμάστε να φορτώσετε ξανά τη σελίδα – ίσως ήταν προσωρινό πρόβλημα.", + "our engineers have been notified": "οι μηχανικοί μας έχουν ενημερωθεί", + "Clear cache + reload": "Εκκαθάριση cache και επαναφόρτωση", + "Show detail": "Εμφάνιση λεπτομερειών", + "Choose a date": "Επιλέξτε ημερομηνία", + "Remove expiration": "Κατάργηση λήξης", + "Exporting the collection may take some time.": "Η εξαγωγή της συλλογής μπορεί να διαρκέσει λίγο.", + "You will receive an email when it’s complete.": "Θα λάβετε email όταν ολοκληρωθεί.", + "Include attachments": "Συμπερίληψη συνημμένων", + "Include uploaded images and files in the exported data": "Συμπερίληψη μεταφορτωμένων εικόνων και αρχείων στα εξαγόμενα δεδομένα", + "Include private collections": "Συμπερίληψη ιδιωτικών συλλογών", + "As an admin, you can export collections you are not currently a member of": "Ως διαχειριστής, μπορείτε να εξαγάγετε συλλογές των οποίων δεν είστε επί του παρόντος μέλος", + "{{count}} more user": "{{count}} ακόμη χρήστης", + "{{count}} more user_plural": "{{count}} ακόμη χρήστες", + "Filter options": "Επιλογές φίλτρου", + "Filter": "Φίλτρο", + "No results": "Κανένα αποτέλεσμα", + "Expand sidebar": "Ανάπτυξη πλαϊνής στήλης", + "Close pane": "Κλείσιμο πλαισίου", + "{{ count }} members": "{{ count }} μέλος", + "{{ count }} members_plural": "{{ count }} μέλη", + "{{authorName}} created <3>": "Ο/Η {{authorName}} δημιούργησε <3>", + "Lead": "Υπεύθυνος", + "Target date": "Ημερομηνία-στόχος", + "Labels": "Ετικέτες", + "{{authorName}} opened <3>": "Ο/Η {{authorName}} άνοιξε <3>", + "Search emoji": "Αναζήτηση emoji", + "Search icons": "Αναζήτηση εικονιδίων", + "Choose default skin tone": "Επιλογή προεπιλεγμένου τόνου δέρματος", + "Show menu": "Εμφάνιση μενού", + "Icon Picker": "Επιλογή εικονιδίου", + "Icons": "Εικονίδια", + "Emojis": "Emoji", + "Remove": "Αφαίρεση", + "All": "Όλα", + "Frequently Used": "Συχνά χρησιμοποιούμενα", + "Search Results": "Αποτελέσματα αναζήτησης", + "Smileys & People": "Φατσούλες και άνθρωποι", + "Animals & Nature": "Ζώα και φύση", + "Food & Drink": "Φαγητό και ποτό", + "Activity": "Δραστηριότητες", + "Travel & Places": "Ταξίδια και τοποθεσίες", + "Objects": "Αντικείμενα", + "Symbols": "Σύμβολα", + "Flags": "Σημαίες", + "Word": "Microsoft Word", + "Plain text": "Απλό κείμενο", + "Email": "Ηλεκτρονικό ταχυδρομείο", + "This file type is not supported": "Αυτός ο τύπος αρχείου δεν υποστηρίζεται", + "Drag and drop files here, or click to choose from your computer": "Σύρετε και αφήστε αρχεία εδώ ή κάντε κλικ για να επιλέξετε από τον υπολογιστή σας", + "Supported formats": "Υποστηριζόμενες μορφές", + "View only": "Μόνο προβολή", + "Can edit": "Επεξεργασία", + "No access": "Χωρίς πρόσβαση", + "Permission": "Δικαίωμα", + "or": "ή", + "plus": "συν", + "then": "μετά", + "Open command menu": "Άνοιγμα μενού εντολών", + "Back": "Πίσω", + "Forward": "Εμπρός", + "Previous document in sidebar": "Προηγούμενο έγγραφο στην πλαϊνή στήλη", + "Next document in sidebar": "Επόμενο έγγραφο στην πλαϊνή στήλη", + "Edit current document": "Επεξεργασία τρέχοντος εγγράφου", + "Move current document": "Μετακίνηση τρέχοντος εγγράφου", + "Open document history": "Άνοιγμα ιστορικού εγγράφου", + "Jump to search": "Μετάβαση στην αναζήτηση", + "Jump to home": "Μετάβαση στην αρχική", + "Table of contents": "Πίνακας περιεχομένων", + "Toggle statistics": "Εναλλαγή στατιστικών", + "Focus search input": "Εστίαση στο πεδίο αναζήτησης", + "Open this guide": "Άνοιγμα αυτού του οδηγού", + "Go to link": "Μετάβαση στον σύνδεσμο", + "Publish document and exit": "Δημοσίευση εγγράφου και έξοδος", + "Cancel editing": "Ακύρωση επεξεργασίας", + "Collaboration": "Συνεργασία", + "Comment": "Σχόλιο", + "Formatting": "Μορφοποίηση", + "Paragraph": "Παράγραφος", + "Big heading": "Μεγάλη επικεφαλίδα", + "Medium heading": "Μεσαία επικεφαλίδα", + "Small heading": "Μικρή επικεφαλίδα", + "Code block": "Μπλοκ κώδικα", + "Bold": "Έντονα", + "Code": "Κώδικας", + "Highlight": "Επισήμανση", + "Italic": "Πλάγια", + "Link": "Σύνδεσμος", + "Strikethrough": "Διακριτή διαγραφή", + "Underline": "Υπογράμμιση", + "Undo": "Αναίρεση", + "Redo": "Επανάληψη", + "Move block up": "Μετακίνηση μπλοκ πάνω", + "Move block down": "Μετακίνηση μπλοκ κάτω", + "Lists": "Λίστες", + "Todo list": "Λίστα εργασιών", + "Bulleted list": "Λίστα με κουκκίδες", + "Ordered list": "Αριθμημένη λίστα", + "Toggle task list item": "Εναλλαγή στοιχείου λίστας εργασιών", + "Indent list item": "Αύξηση εσοχής στοιχείου λίστας", + "Outdent list item": "Μείωση εσοχής στοιχείου λίστας", + "Move list item up": "Μετακίνηση στοιχείου λίστας πάνω", + "Move list item down": "Μετακίνηση στοιχείου λίστας κάτω", + "Toggle blocks": "Πτυσσόμενα μπλοκ", + "Open / close": "Άνοιγμα / κλείσιμο", + "Indent item": "Αύξηση εσοχής στοιχείου", + "Outdent item": "Μείωση εσοχής στοιχείου", + "Tables": "Πίνακες", + "Insert row": "Εισαγωγή γραμμής", + "Next cell": "Επόμενο κελί", + "Previous cell": "Προηγούμενο κελί", + "Numbered list": "Αριθμημένη λίστα", + "Blockquote": "Παράθεση", + "Horizontal divider": "Οριζόντια διαχωριστική γραμμή", + "Table": "Πίνακας", + "LaTeX block": "Μπλοκ LaTeX", + "Toggle block": "Πτυσσόμενο μπλοκ", + "Info notice": "Πλαίσιο πληροφοριών", + "Inline code": "Ενσωματωμένος κώδικας", + "Inline LaTeX": "Ενσωματωμένο LaTeX", + "Triggers": "Ενεργοποιητές", + "Mention users and more": "Αναφορά χρηστών και άλλα", + "Insert block": "Εισαγωγή μπλοκ", + "Change language": "Αλλαγή γλώσσας", + "Dismiss": "Απόρριψη", + "Unable to download image": "Δεν ήταν δυνατή η λήψη της εικόνας", + "Lightbox": "Προβολή εικόνων", + "View, navigate, or download images in the document": "Προβολή, πλοήγηση ή λήψη εικόνων του εγγράφου", + "Zoom in": "Μεγέθυνση", + "Zoom out": "Σμίκρυνση", + "Download": "Λήψη", + "Edit diagram": "Επεξεργασία διαγράμματος", + "Close": "Κλείσιμο", + "Previous": "Προηγούμενο", + "Next": "Επόμενο", + "Image failed to load": "Η εικόνα δεν φορτώθηκε", + "You’re offline.": "Είστε εκτός σύνδεσης.", + "Sorry, an error occurred.": "Λυπούμαστε, προέκυψε σφάλμα.", + "Click to retry": "Κάντε κλικ για νέα προσπάθεια", + "Working…": "Επεξεργασία…", + "{{ count }} selected": "{{ count }} επιλεγμένο", + "{{ count }} selected_plural": "{{ count }} επιλεγμένα", + "Clear selection": "Εκκαθάριση επιλογής", + "Can view the document": "Μπορεί να δει το έγγραφο", + "Can view and edit the document": "Μπορεί να δει και να επεξεργαστεί το έγγραφο", + "Manage": "Διαχείριση", + "Full access including sharing": "Πλήρης πρόσβαση, συμπεριλαμβανομένης της κοινοποίησης", + "Permissions for {{ userName }} updated": "Τα δικαιώματα του χρήστη {{ userName }} ενημερώθηκαν", + "Failed to approve access request": "Αποτυχία έγκρισης αιτήματος πρόσβασης", + "Access request dismissed": "Το αίτημα πρόσβασης απορρίφθηκε", + "Failed to dismiss access request": "Αποτυχία απόρριψης αιτήματος πρόσβασης", + "Approve": "Έγκριση", + "Notification options": "Επιλογές ειδοποιήσεων", + "Unknown": "Άγνωστο", + "Mentions": "Αναφορές", + "Comments and replies": "Σχόλια και απαντήσεις", + "Document events": "Συμβάντα εγγράφων", + "Collection events": "Συμβάντα συλλογών", + "Mark all as read": "Σήμανση όλων ως αναγνωσμένων", + "You’re all caught up": "Δεν υπάρχει τίποτα νέο", + "Client type": "Τύπος client", + "Confidential": "Εμπιστευτικός", + "Suitable for server-side applications": "Κατάλληλος για εφαρμογές στην πλευρά του διακομιστή", + "Public": "Δημόσιος", + "Suitable for client-side or mobile applications": "Κατάλληλος για εφαρμογές στην πλευρά του client ή για κινητά", + "Icon": "Εικονίδιο", + "OAuth client icon": "Εικονίδιο OAuth client", + "My App": "Η εφαρμογή μου", + "Tagline": "Σύνθημα", + "A short description": "Σύντομη περιγραφή", + "Callback URLs": "URLs επιστροφής (callback)", + "Published": "Δημοσιευμένο", + "Allow this app to be installed by other workspaces": "Να επιτρέπεται η εγκατάσταση αυτής της εφαρμογής από άλλους χώρους εργασίας", + "Expand": "Ανάπτυξη", + "Collapse": "Σύμπτυξη", + "{{ username }} reacted with {{ emoji }}": "Ο/Η {{ username }} αντέδρασε με {{ emoji }}", + "{{ firstUsername }} and {{ secondUsername }} reacted with {{ emoji }}": "Οι {{ firstUsername }} και {{ secondUsername }} αντέδρασαν με {{ emoji }}", + "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}": "Ο/Η {{ firstUsername }} και {{ count }} ακόμη αντέδρασαν με {{ emoji }}", + "{{ firstUsername }} and {{ count }} others reacted with {{ emoji }}_plural": "Ο/Η {{ firstUsername }} και {{ count }} ακόμη αντέδρασαν με {{ emoji }}", + "Add reaction": "Προσθήκη αντίδρασης", + "Reaction picker": "Επιλογή αντίδρασης", + "Could not load reactions": "Δεν ήταν δυνατή η φόρτωση των αντιδράσεων", + "Reaction": "Αντίδραση", + "{{ hours }}h {{ minutes }}m read": "{{ hours }}ω {{ minutes }}λ ανάγνωση", + "{{ hours }}h read": "{{ hours }}ω ανάγνωση", + "{{ minutes }}m read": "{{ minutes }}λ ανάγνωση", + "Archived": "Αρχειοθετημένο", + "All members": "Όλα τα μέλη", + "Everyone in the workspace": "Όλοι στον χώρο εργασίας", + "{{ count }} member": "{{ count }} μέλος", + "{{ count }} member_plural": "{{ count }} μέλη", + "Only lowercase letters, digits and dashes allowed": "Επιτρέπονται μόνο πεζά γράμματα, ψηφία και παύλες", + "Sorry, this link has already been used": "Λυπούμαστε, αυτός ο σύνδεσμος χρησιμοποιείται ήδη", + "Publish to web": "Δημοσίευση στο web", + "Allow anyone with the link to access": "Πρόσβαση για όποιον έχει τον σύνδεσμο", + "Publish to internet": "Δημοσίευση στο διαδίκτυο", + "All documents in this collection will be shared on the web, including any new documents added later": "Όλα τα έγγραφα αυτής της συλλογής θα κοινοποιηθούν στο web, συμπεριλαμβανομένων όσων προστεθούν αργότερα", + "Invite": "Πρόσκληση", + "{{ userName }} was added to the collection": "Ο/Η {{ userName }} προστέθηκε στη συλλογή", + "{{ count }} people added to the collection": "{{ count }} άτομο προστέθηκε στη συλλογή", + "{{ count }} people added to the collection_plural": "{{ count }} άτομα προστέθηκαν στη συλλογή", + "{{ count }} people and a group added to the collection": "{{ count }} άτομο και μία ομάδα προστέθηκαν στη συλλογή", + "{{ count }} people and a group added to the collection_plural": "{{ count }} άτομα και μία ομάδα προστέθηκαν στη συλλογή", + "{{ count }} people and {{ count2 }} groups added to the collection": "{{ count }} άτομο και {{ count2 }} ομάδες προστέθηκαν στη συλλογή", + "{{ count }} people and {{ count2 }} groups added to the collection_plural": "{{ count }} άτομα και {{ count2 }} ομάδες προστέθηκαν στη συλλογή", + "Switch to dark": "Μετάβαση σε σκούρο", + "Switch to light": "Μετάβαση σε ανοιχτό", + "Subscribe to updates": "Εγγραφή σε ενημερώσεις", + "Display settings": "Ρυθμίσεις εμφάνισης", + "Edit {{noun}}": "Επεξεργασία: {{noun}}", + "Logo": "Λογότυπο", + "Add": "Προσθήκη", + "Add or invite": "Προσθήκη ή πρόσκληση", + "This link expired on {{ date }} and can no longer be accessed.": "Αυτός ο σύνδεσμος έληξε στις {{ date }} και δεν είναι πλέον προσβάσιμος.", + "Update expiry": "Ενημέρωση λήξης", + "Sharing settings updated": "Οι ρυθμίσεις κοινοποίησης ενημερώθηκαν", + "Customize how the published document is displayed": "Προσαρμόστε τον τρόπο εμφάνισης του δημοσιευμένου εγγράφου", + "Image options": "Επιλογές εικόνας", + "Upload": "Μεταφόρτωση", + "Site title": "Τίτλος ιστότοπου", + "Show last modified": "Εμφάνιση τελευταίας τροποποίησης", + "Display the last modified timestamp on the shared page": "Εμφάνιση της ώρας τελευταίας τροποποίησης στην κοινόχρηστη σελίδα", + "More information": "Περισσότερες πληροφορίες", + "Show table of contents": "Εμφάνιση πίνακα περιεχομένων", + "Display the table of contents on documents by default": "Εμφάνιση του πίνακα περιεχομένων στα έγγραφα από προεπιλογή", + "Behavior": "Συμπεριφορά", + "Search engine indexing": "Ευρετηρίαση από μηχανές αναζήτησης", + "Disable this setting to discourage search engines from indexing the page": "Απενεργοποιήστε αυτή τη ρύθμιση για να αποτρέψετε τις μηχανές αναζήτησης από την ευρετηρίαση της σελίδας", + "Email subscriptions": "Συνδρομές email", + "Allow viewers to subscribe and receive email notifications when documents are updated": "Να επιτρέπεται στους αναγνώστες να εγγράφονται και να λαμβάνουν ειδοποιήσεις email όταν ενημερώνονται τα έγγραφα", + "Expiration": "Λήξη", + "The public link will stop working after the selected date": "Ο δημόσιος σύνδεσμος θα πάψει να λειτουργεί μετά την επιλεγμένη ημερομηνία", + "No expiry": "Χωρίς λήξη", + "Something went wrong": "Κάτι πήγε στραβά", + "Check your email to confirm your subscription": "Ελέγξτε το email σας για να επιβεβαιώσετε την εγγραφή σας", + "Get notified when this document is updated": "Λάβετε ειδοποίηση όταν ενημερωθεί αυτό το έγγραφο", + "Email address": "Διεύθυνση email", + "Viewer": "Αναγνώστης", + "Editor": "Συντάκτης", + "Suggestions for invitation": "Προτάσεις για πρόσκληση", + "No matches": "Καμία αντιστοιχία", + "Public link copied to clipboard": "Ο δημόσιος σύνδεσμος αντιγράφηκε στο πρόχειρο", + "Created the document": "Δημιούργησε το έγγραφο", + "Can view": "Προβολή", + "Everyone in the collection": "Όλοι στη συλλογή", + "You have full access": "Έχετε πλήρη πρόσβαση", + "Owner": "Κάτοχος", + "This document is in their personal space": "Αυτό το έγγραφο βρίσκεται στον προσωπικό του χώρο", + "Other people": "Άλλα άτομα", + "Other workspace members may have access": "Ενδέχεται να έχουν πρόσβαση και άλλα μέλη του χώρου εργασίας", + "This document may be shared with more workspace members through a parent document or collection you do not have access to": "Αυτό το έγγραφο μπορεί να είναι κοινόχρηστο με περισσότερα μέλη του χώρου εργασίας μέσω γονικού εγγράφου ή συλλογής στα οποία δεν έχετε πρόσβαση", + "Access inherited from collection": "Πρόσβαση που κληρονομείται από τη συλλογή", + "{{ userName }} was removed from the document": "Ο/Η {{ userName }} αφαιρέθηκε από το έγγραφο", + "Could not remove user": "Δεν ήταν δυνατή η αφαίρεση του χρήστη", + "Could not update user": "Δεν ήταν δυνατή η ενημέρωση του χρήστη", + "Has access through <2>parent": "Έχει πρόσβαση μέσω του <2>γονικού", + "Suspended": "Σε αναστολή", + "Invited": "Προσκεκλημένος", + "Active <1> ago": "Ενεργός πριν από <1>", + "Never signed in": "Δεν έχει συνδεθεί ποτέ", + "Leave": "Αποχώρηση", + "Anyone with the link can access because the containing collection, {{ sourceTitle }}, is shared": "Όποιος έχει τον σύνδεσμο έχει πρόσβαση επειδή η συλλογή που το περιέχει, {{ sourceTitle }}, είναι κοινόχρηστη", + "Anyone with the link can access because the parent document, {{ sourceTitle }}, is shared": "Όποιος έχει τον σύνδεσμο έχει πρόσβαση επειδή το γονικό έγγραφο, {{ sourceTitle }}, είναι κοινόχρηστο", + "Nested documents are not shared on the web. Toggle sharing to enable access. This will be the default behavior in the future.": "Τα ένθετα έγγραφα δεν κοινοποιούνται στο web. Ενεργοποιήστε την κοινοποίηση για να επιτρέψετε την πρόσβαση. Αυτή θα είναι η προεπιλεγμένη συμπεριφορά στο μέλλον.", + "{{ userName }} was added to the document": "Ο/Η {{ userName }} προστέθηκε στο έγγραφο", + "{{ count }} people added to the document": "{{ count }} άτομο προστέθηκε στο έγγραφο", + "{{ count }} people added to the document_plural": "{{ count }} άτομα προστέθηκαν στο έγγραφο", + "{{ count }} groups added to the document": "{{ count }} ομάδα προστέθηκε στο έγγραφο", + "{{ count }} groups added to the document_plural": "{{ count }} ομάδες προστέθηκαν στο έγγραφο", + "Collapse sidebar": "Σύμπτυξη πλαϊνής στήλης", + "Archived collections": "Αρχειοθετημένες συλλογές", + "Empty": "Κενό", + "New doc": "Νέο έγγραφο", + "New nested document": "Νέο ένθετο έγγραφο", + "No collections": "Δεν υπάρχουν συλλογές", + "Hide": "Απόκρυψη", + "Starred": "Αγαπημένα", + "Shared with me": "Κοινοποιήθηκαν σε εμένα", + "Personal": "Προσωπικά", + "Move up": "Μετακίνηση πάνω", + "Move down": "Μετακίνηση κάτω", + "Import files": "Εισαγωγή αρχείων", + "Section options": "Επιλογές ενότητας", + "Recent": "Πρόσφατα", + "Go back": "Πίσω", + "Go forward": "Εμπρός", + "Could not load shared documents": "Δεν ήταν δυνατή η φόρτωση των κοινόχρηστων εγγράφων", + "Show more": "Εμφάνιση περισσότερων", + "Link options": "Επιλογές συνδέσμου", + "Could not load starred documents": "Δεν ήταν δυνατή η φόρτωση των αγαπημένων εγγράφων", + "Up to date": "Ενημερωμένο", + "{{ releasesBehind }} versions behind": "{{ releasesBehind }} έκδοση πίσω", + "{{ releasesBehind }} versions behind_plural": "{{ releasesBehind }} εκδόσεις πίσω", + "Change permissions?": "Αλλαγή δικαιωμάτων;", + "{{ documentName }} cannot be moved within {{ parentDocumentName }}": "Το {{ documentName }} δεν μπορεί να μετακινηθεί μέσα στο {{ parentDocumentName }}", + "You can’t reorder documents in an alphabetically sorted collection": "Δεν μπορείτε να αναδιατάξετε έγγραφα σε συλλογή με αλφαβητική ταξινόμηση", + "{{ documentName }} cannot be moved here": "Το {{ documentName }} δεν μπορεί να μετακινηθεί εδώ", + "Integrations": "Ενσωματώσεις", + "Back to app": "Πίσω στην εφαρμογή", + "Installation": "Εγκατάσταση", + "Split pane": "Δευτερεύον πλαίσιο", + "Main pane": "Κύριο πλαίσιο", + "Unstar document": "Αφαίρεση εγγράφου από τα αγαπημένα", + "Star document": "Προσθήκη εγγράφου στα αγαπημένα", + "Select a color": "Επιλέξτε χρώμα", + "Select all": "Επιλογή όλων", + "Columns": "Στήλες", + "Your changes couldn’t be saved.\nAre you sure you want to leave?": "Δεν ήταν δυνατή η αποθήκευση των αλλαγών σας.\nΕίστε βέβαιοι ότι θέλετε να φύγετε;", + "Highlight some text and use the <1> control to add placeholders that can be filled out when creating new documents": "Επισημάνετε κείμενο και χρησιμοποιήστε το στοιχείο <1> για να προσθέσετε πεδία που θα συμπληρώνονται κατά τη δημιουργία νέων εγγράφων", + "You’re editing a template": "Επεξεργάζεστε ένα πρότυπο", + "Template created – go ahead and customize it": "Το πρότυπο δημιουργήθηκε – προσαρμόστε το όπως θέλετε", + "Creating a template is a non-destructive action – we’ll make a copy of the document and turn it into a template that can be used as a starting point for new documents.": "Η δημιουργία προτύπου δεν επηρεάζει το αρχικό έγγραφο – θα δημιουργήσουμε αντίγραφο του εγγράφου και θα το μετατρέψουμε σε πρότυπο που μπορεί να χρησιμοποιηθεί ως αφετηρία για νέα έγγραφα.", + "Enable other members to use the template immediately": "Να μπορούν τα άλλα μέλη να χρησιμοποιούν αμέσως το πρότυπο", + "Location": "Θέση", + "Admins can manage the workspace and access billing.": "Οι διαχειριστές μπορούν να διαχειρίζονται τον χώρο εργασίας και τη χρέωση.", + "Editors can create, edit, and comment on documents.": "Οι συντάκτες μπορούν να δημιουργούν, να επεξεργάζονται και να σχολιάζουν έγγραφα.", + "Viewers can only view and comment on documents.": "Οι αναγνώστες μπορούν μόνο να βλέπουν και να σχολιάζουν έγγραφα.", + "Are you sure you want to change the role of {{ userName }} to {{ role }}?": "Είστε βέβαιοι ότι θέλετε να αλλάξετε τον ρόλο του χρήστη {{ userName }} σε {{ role }};", + "Are you sure you want to change the role of {{ count }} user to {{ role }}?": "Είστε βέβαιοι ότι θέλετε να αλλάξετε τον ρόλο {{ count }} χρήστη σε {{ role }};", + "Are you sure you want to change the role of {{ count }} user to {{ role }}?_plural": "Είστε βέβαιοι ότι θέλετε να αλλάξετε τον ρόλο {{ count }} χρηστών σε {{ role }};", + "I understand, delete": "Κατανοώ, διαγραφή", + "Are you sure you want to permanently delete {{ userName }}? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending the user instead.": "Είστε βέβαιοι ότι θέλετε να διαγράψετε οριστικά τον χρήστη {{ userName }}; Η ενέργεια δεν αναιρείται. Όλα τα κλειδιά API, webhooks και ενσωματώσεις που δημιούργησε θα σταματήσουν να λειτουργούν — εξετάστε την αναστολή του χρήστη.", + "Are you sure you want to permanently delete {{ count }} user? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending them instead.": "Είστε βέβαιοι ότι θέλετε να διαγράψετε οριστικά {{ count }} χρήστη; Η ενέργεια δεν αναιρείται. Όλα τα κλειδιά API, webhooks και ενσωματώσεις που δημιούργησε θα σταματήσουν να λειτουργούν — εξετάστε την αναστολή του.", + "Are you sure you want to permanently delete {{ count }} user? This operation is unrecoverable. Any API keys, webhooks, and integrations they created will stop working — consider suspending them instead._plural": "Είστε βέβαιοι ότι θέλετε να διαγράψετε οριστικά {{ count }} χρήστες; Η ενέργεια δεν αναιρείται. Όλα τα κλειδιά API, webhooks και ενσωματώσεις που δημιούργησαν θα σταματήσουν να λειτουργούν — εξετάστε την αναστολή τους.", + "Are you sure you want to suspend {{ userName }}? Suspended users will be prevented from logging in.": "Είστε βέβαιοι ότι θέλετε να θέσετε σε αναστολή τον χρήστη {{ userName }}; Οι χρήστες σε αναστολή δεν μπορούν να συνδεθούν.", + "Are you sure you want to suspend {{ count }} user? Suspended users will be prevented from logging in.": "Είστε βέβαιοι ότι θέλετε να θέσετε σε αναστολή {{ count }} χρήστη; Οι χρήστες σε αναστολή δεν μπορούν να συνδεθούν.", + "Are you sure you want to suspend {{ count }} user? Suspended users will be prevented from logging in._plural": "Είστε βέβαιοι ότι θέλετε να θέσετε σε αναστολή {{ count }} χρήστες; Οι χρήστες σε αναστολή δεν μπορούν να συνδεθούν.", + "New name": "Νέο όνομα", + "Name can’t be empty": "Το όνομα δεν μπορεί να είναι κενό", + "Profile picture updated": "Η φωτογραφία προφίλ ενημερώθηκε", + "Unable to upload new profile picture": "Δεν ήταν δυνατή η μεταφόρτωση νέας φωτογραφίας προφίλ", + "Profile picture": "Φωτογραφία προφίλ", + "Done": "Τέλος", + "Check your email to verify the new address.": "Ελέγξτε το email σας για να επαληθεύσετε τη νέα διεύθυνση.", + "The email will be changed once verified.": "Το email θα αλλάξει μόλις επαληθευτεί.", + "You will receive an email to verify your new address. It must be unique in the workspace.": "Θα λάβετε email για να επαληθεύσετε τη νέα σας διεύθυνση. Πρέπει να είναι μοναδική στον χώρο εργασίας.", + "A confirmation email will be sent to the new address before it is changed.": "Θα σταλεί email επιβεβαίωσης στη νέα διεύθυνση πριν από την αλλαγή.", + "New email": "Νέο email", + "Email can’t be empty": "Το email δεν μπορεί να είναι κενό", + "Admin": "Διαχειριστής", + "Guest": "Επισκέπτης", + "Online": "Συνδεδεμένος", + "Last seen": "Τελευταία εμφάνιση", + "{{ time }} local time": "{{ time }} τοπική ώρα", + "Your import completed": "Η εισαγωγή σας ολοκληρώθηκε", + "Templates": "Πρότυπα", + "View comment thread": "Προβολή συζήτησης σχολίων", + "Previous match": "Προηγούμενη αντιστοιχία", + "Next match": "Επόμενη αντιστοιχία", + "Replace options": "Επιλογές αντικατάστασης", + "Find and replace": "Εύρεση και αντικατάσταση", + "Find": "Εύρεση", + "Match case": "Διάκριση πεζών-κεφαλαίων", + "Enable regex": "Ενεργοποίηση regex", + "Replacement": "Αντικατάσταση με", + "Replace all": "Αντικατάσταση όλων", + "Options": "Επιλογές", + "Open link": "Άνοιγμα συνδέσμου", + "Remove link": "Αφαίρεση συνδέσμου", + "Formatting controls": "Στοιχεία μορφοποίησης", + "Search or paste a link": "Αναζητήστε ή επικολλήστε σύνδεσμο", + "Image width": "Πλάτος εικόνας", + "Width": "Πλάτος", + "Image height": "Ύψος εικόνας", + "Height": "Ύψος", + "Paste a link": "Επικολλήστε σύνδεσμο", + "Delete embed": "Διαγραφή ενσωμάτωσης", + "Delete video": "Διαγραφή βίντεο", + "Delete image": "Διαγραφή εικόνας", + "{{ userName }} won’t be notified, as they do not have access to this document": "Ο/Η {{ userName }} δεν θα ειδοποιηθεί, επειδή δεν έχει πρόσβαση σε αυτό το έγγραφο", + "Members of “{{ groupName }}” with access to this document will be notified": "Τα μέλη της ομάδας “{{ groupName }}” με πρόσβαση σε αυτό το έγγραφο θα ειδοποιηθούν", + "Keep as link": "Διατήρηση ως σύνδεσμος", + "Mention": "Αναφορά", + "Card": "Κάρτα", + "Embed": "Ενσωμάτωση", + "Not supported": "Δεν υποστηρίζεται", + "Sorry, that link won’t work for this embed type": "Λυπούμαστε, αυτός ο σύνδεσμος δεν λειτουργεί για αυτόν τον τύπο ενσωμάτωσης", + "Upload file": "Μεταφόρτωση αρχείου", + "Paste a link from {{service}}…": "Επικολλήστε έναν σύνδεσμο από το {{service}}…", + "Suggestions": "Προτάσεις", + "More options": "Περισσότερες επιλογές", + "Type '/' to insert": "Πληκτρολογήστε '/' για εισαγωγή", + "Keep typing to filter": "Συνεχίστε να πληκτρολογείτε για φιλτράρισμα", + "Drag to reorder": "Σύρετε για αναδιάταξη", + "Replace file": "Αντικατάσταση αρχείου", + "Delete file": "Διαγραφή αρχείου", + "Show preview": "Εμφάνιση προεπισκόπησης", + "Extra small heading": "Πολύ μικρή επικεφαλίδα", + "Image": "Εικόνα", + "Video": "Βίντεο", + "Embed PDF": "Ενσωμάτωση PDF", + "File attachment": "Συνημμένο αρχείο", + "Quote": "Παράθεση", + "Math block (LaTeX)": "Μπλοκ μαθηματικών (LaTeX)", + "Divider": "Διαχωριστικό", + "Page break": "Αλλαγή σελίδας", + "Current date": "Τρέχουσα ημερομηνία", + "Big toggle heading": "Μεγάλη πτυσσόμενη επικεφαλίδα", + "Medium toggle heading": "Μεσαία πτυσσόμενη επικεφαλίδα", + "Small toggle heading": "Μικρή πτυσσόμενη επικεφαλίδα", + "Extra small toggle heading": "Πολύ μικρή πτυσσόμενη επικεφαλίδα", + "Success notice": "Πλαίσιο επιτυχίας", + "Warning notice": "Πλαίσιο προειδοποίησης", + "Tip notice": "Πλαίσιο συμβουλής", + "Wrap text": "Αναδίπλωση κειμένου", + "Heading": "Επικεφαλίδα", + "Subheading": "Υπότιτλος", + "Merge cells": "Συγχώνευση κελιών", + "Split cell": "Διαίρεση κελιού", + "Outdent": "Μείωση εσοχής", + "Indent": "Αύξηση εσοχής", + "Placeholder": "Πεδίο συμπλήρωσης", + "Background color": "Χρώμα φόντου", + "Create link": "Δημιουργία συνδέσμου", + "Align left": "Στοίχιση αριστερά", + "Align center": "Στοίχιση στο κέντρο", + "Align right": "Στοίχιση δεξιά", + "Full width": "Πλήρες πλάτος", + "Download image": "Λήψη εικόνας", + "Edit image URL": "Επεξεργασία URL εικόνας", + "Create a new doc": "Δημιουργία νέου εγγράφου", + "Create a nested doc": "Δημιουργία ένθετου εγγράφου", + "Default width": "Προεπιλεγμένο πλάτος", + "Distribute columns": "Ομοιόμορφη κατανομή στηλών", + "Export as CSV": "Εξαγωγή ως CSV", + "Delete table": "Διαγραφή πίνακα", + "Align": "Στοίχιση", + "Sort": "Ταξινόμηση", + "Sort ascending": "Αύξουσα ταξινόμηση", + "Sort descending": "Φθίνουσα ταξινόμηση", + "Background": "Φόντο", + "Toggle header": "Εναλλαγή κεφαλίδας", + "Insert after": "Εισαγωγή μετά", + "Insert before": "Εισαγωγή πριν", + "Move left": "Μετακίνηση αριστερά", + "Move right": "Μετακίνηση δεξιά", + "Download video": "Λήψη βίντεο", + "Replace video": "Αντικατάσταση βίντεο", + "Upload a video": "Μεταφόρτωση βίντεο", + "Edit video URL": "Επεξεργασία URL βίντεο", + "Could not import file": "Δεν ήταν δυνατή η εισαγωγή του αρχείου", + "Unsubscribed from document": "Καταργήθηκε η εγγραφή από το έγγραφο", + "Unsubscribed from collection": "Καταργήθηκε η εγγραφή από τη συλλογή", + "Subscription successful": "Η εγγραφή ολοκληρώθηκε", + "Unsubscribed": "Η εγγραφή καταργήθηκε", + "Account": "Λογαριασμός", + "API & Access": "API και πρόσβαση", + "General": "Γενικά", + "Users": "Χρήστες", + "Authentication": "Ταυτοποίηση", + "Security": "Ασφάλεια", + "AI": "Τεχνητή νοημοσύνη (AI)", + "Shared links": "Κοινόχρηστοι σύνδεσμοι", + "Import": "Εισαγωγή", + "Embeds": "Ενσωματώσεις περιεχομένου", + "Configure which embed providers are available in the editor.": "Ρυθμίστε ποιοι πάροχοι ενσωμάτωσης είναι διαθέσιμοι στον επεξεργαστή.", + "Install": "Εγκατάσταση", + "API keys": "Κλειδιά API", + "Developer": "Προγραμματιστής", + "Applications": "Εφαρμογές", + "API key": "Κλειδί API", + "Show path to document": "Εμφάνιση διαδρομής προς το έγγραφο", + "Comment options": "Επιλογές σχολίου", + "Enable viewer insights": "Ενεργοποίηση στατιστικών αναγνωστών", + "Enable embeds": "Ενεργοποίηση ενσωματώσεων", + "Emoji options": "Επιλογές emoji", + "File": "Αρχείο", + "Group member options": "Επιλογές μέλους ομάδας", + "Group options": "Επιλογές ομάδας", + "Cancel": "Ακύρωση", + "Import menu options": "Επιλογές μενού εισαγωγής", + "collection": "συλλογή", + "New document in {{ collectionName }}": "Νέο έγγραφο στη συλλογή {{ collectionName }}", + "New child document": "Νέο θυγατρικό έγγραφο", + "Save in workspace": "Αποθήκευση στον χώρο εργασίας", + "Revision options": "Επιλογές έκδοσης", + "Share options": "Επιλογές κοινοποίησης", + "Headings you add to the document will appear here": "Οι επικεφαλίδες που προσθέτετε στο έγγραφο θα εμφανίζονται εδώ", + "Contents": "Περιεχόμενα", + "Template options": "Επιλογές προτύπου", + "Trash options": "Επιλογές κάδου", + "User options": "Επιλογές χρήστη", + "document": "έγγραφο", + "Export complete": "Η εξαγωγή ολοκληρώθηκε", + "Export failed": "Η εξαγωγή απέτυχε", + "An unexpected error occurred": "Προέκυψε απρόσμενο σφάλμα", + "published": "δημοσίευσε", + "edited": "επεξεργάστηκε", + "created the collection": "δημιούργησε τη συλλογή", + "mentioned you in": "σας ανέφερε στο", + "mentioned your group in": "ανέφερε την ομάδα σας στο", + "left a comment on": "σχολίασε στο", + "resolved a comment on": "επέλυσε ένα σχόλιο στο", + "reacted {{ emoji }} to your comment on": "αντέδρασε με {{ emoji }} στο σχόλιό σας στο", + "shared": "κοινοποίησε", + "invited you to": "σας προσκάλεσε στο", + "added you to the group": "σας πρόσθεσε στην ομάδα", + "removed you from the group": "σας αφαίρεσε από την ομάδα", + "was granted access to": "απέκτησε πρόσβαση στο", + "requested access to": "ζήτησε πρόσβαση στο", + "is requesting access to": "ζητά πρόσβαση στο", + "a document": "ένα έγγραφο", + "a collection": "μια συλλογή", + "a group": "μια ομάδα", + "API key created. Please copy the value now as it will not be shown again.": "Το κλειδί API δημιουργήθηκε. Αντιγράψτε την τιμή τώρα, γιατί δεν θα εμφανιστεί ξανά.", + "Scopes": "Εμβέλειες (scopes)", + "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "Οι εμβέλειες, χωρισμένες με κενά, περιορίζουν την πρόσβαση αυτού του κλειδιού API σε συγκεκριμένα μέρη του API. Αφήστε κενό για πλήρη πρόσβαση.", + "Never expires": "Δεν λήγει ποτέ", + "7 days": "7 ημέρες", + "30 days": "30 ημέρες", + "60 days": "60 ημέρες", + "90 days": "90 ημέρες", + "No expiration": "Χωρίς λήξη", + "The document archive is empty at the moment.": "Το αρχείο εγγράφων είναι κενό αυτή τη στιγμή.", + "Done editing": "Τέλος επεξεργασίας", + "Only members with access can view": "Μόνο τα μέλη με πρόσβαση μπορούν να το δουν", + "All members in the workspace can view": "Όλα τα μέλη του χώρου εργασίας μπορούν να το δουν", + "Private": "Ιδιωτικό", + "Anyone with the link can view": "Όποιος έχει τον σύνδεσμο μπορεί να το δει", + "Publicly shared": "Δημόσια κοινόχρηστο", + "{{ count }} document": "{{ count }} έγγραφο", + "{{ count }} document_plural": "{{ count }} έγγραφα", + "Drop documents to import": "Αφήστε έγγραφα εδώ για εισαγωγή", + "{{ collectionName }} doesn’t contain any documents yet.": "Η συλλογή {{ collectionName }} δεν περιέχει ακόμη έγγραφα.", + "{{ usersCount }} users and {{ groupsCount }} groups with access": "{{ usersCount }} χρήστης και {{ groupsCount }} ομάδες με πρόσβαση", + "{{ usersCount }} users and {{ groupsCount }} groups with access_plural": "{{ usersCount }} χρήστες και {{ groupsCount }} ομάδες με πρόσβαση", + "{{ usersCount }} users and a group have access": "{{ usersCount }} χρήστης και μία ομάδα έχουν πρόσβαση", + "{{ usersCount }} users and a group have access_plural": "{{ usersCount }} χρήστες και μία ομάδα έχουν πρόσβαση", + "{{ usersCount }} users with access": "{{ usersCount }} χρήστης με πρόσβαση", + "{{ usersCount }} users with access_plural": "{{ usersCount }} χρήστες με πρόσβαση", + "{{ groupsCount }} groups with access": "{{ groupsCount }} ομάδα με πρόσβαση", + "{{ groupsCount }} groups with access_plural": "{{ groupsCount }} ομάδες με πρόσβαση", + "Overview": "Επισκόπηση", + "Popular": "Δημοφιλή", + "Recently updated": "Πρόσφατα ενημερωμένα", + "Recently published": "Πρόσφατα δημοσιευμένα", + "Least recently updated": "Λιγότερο πρόσφατα ενημερωμένα", + "A–Z": "Α–Ω", + "Archived by {{userName}}": "Αρχειοθετήθηκε από τον/την {{userName}}", + "Sorry, an error occurred saving the collection": "Λυπούμαστε, προέκυψε σφάλμα κατά την αποθήκευση της συλλογής", + "Add a description": "Προσθήκη περιγραφής", + "{{ current }} of {{ count }} changes": "{{ current }} από {{ count }} αλλαγή", + "{{ current }} of {{ count }} changes_plural": "{{ current }} από {{ count }} αλλαγές", + "{{ count }} changes": "{{ count }} αλλαγή", + "{{ count }} changes_plural": "{{ count }} αλλαγές", + "Previous change": "Προηγούμενη αλλαγή", + "Next change": "Επόμενη αλλαγή", + "Error creating comment": "Σφάλμα κατά τη δημιουργία σχολίου", + "Add a comment": "Προσθήκη σχολίου", + "Add a reply": "Προσθήκη απάντησης", + "Reply": "Απάντηση", + "Post": "Δημοσίευση", + "Upload image": "Μεταφόρτωση εικόνας", + "No resolved comments": "Δεν υπάρχουν επιλυμένα σχόλια", + "No comments yet": "Δεν υπάρχουν σχόλια ακόμη", + "New comments": "Νέα σχόλια", + "Most recent": "Πιο πρόσφατα", + "Order in doc": "Σειρά στο έγγραφο", + "Resolved": "Επιλυμένα", + "Sort comments": "Ταξινόμηση σχολίων", + "Show {{ count }} reply": "Εμφάνιση {{ count }} απάντησης", + "Show {{ count }} reply_plural": "Εμφάνιση {{ count }} απαντήσεων", + "Error updating comment": "Σφάλμα κατά την ενημέρωση του σχολίου", + "Document is too large": "Το έγγραφο είναι πολύ μεγάλο", + "This document has reached the maximum size and can no longer be edited": "Αυτό το έγγραφο έφτασε το μέγιστο μέγεθος και δεν μπορεί πλέον να επεξεργαστεί", + "Authentication failed": "Η ταυτοποίηση απέτυχε", + "Please try logging out and back in again": "Δοκιμάστε να αποσυνδεθείτε και να συνδεθείτε ξανά", + "Authorization failed": "Η εξουσιοδότηση απέτυχε", + "You may have lost access to this document – try reloading": "Μπορεί να χάσατε την πρόσβαση σε αυτό το έγγραφο – δοκιμάστε να το φορτώσετε ξανά", + "Too many users connected to document": "Πάρα πολλοί χρήστες συνδεδεμένοι στο έγγραφο", + "Your edits will sync once other users leave the document": "Οι αλλαγές σας θα συγχρονιστούν μόλις άλλοι χρήστες αποχωρήσουν από το έγγραφο", + "New version available": "Διαθέσιμη νέα έκδοση", + "Please reload the page to update to the latest version": "Φορτώστε ξανά τη σελίδα για ενημέρωση στην τελευταία έκδοση", + "Server connection lost": "Η σύνδεση με τον διακομιστή χάθηκε", + "Edits you make will sync once you’re online": "Οι αλλαγές σας θα συγχρονιστούν μόλις συνδεθείτε", + "Offline": "Εκτός σύνδεσης", + "Document restored": "Το έγγραφο επαναφέρθηκε", + "Images are still uploading.\nAre you sure you want to discard them?": "Οι εικόνες μεταφορτώνονται ακόμη.\nΕίστε βέβαιοι ότι θέλετε να τις απορρίψετε;", + "{{ count }} comment": "{{ count }} σχόλιο", + "{{ count }} comment_plural": "{{ count }} σχόλια", + "Viewed by": "Προβλήθηκε από", + "only you": "μόνο εσάς", + "person": "άτομο", + "people": "άτομα", + "{{ number }} words selected": "{{ number }} λέξη επιλεγμένη", + "{{ number }} words selected_plural": "{{ number }} λέξεις επιλεγμένες", + "{{ number }} characters selected": "{{ number }} χαρακτήρας επιλεγμένος", + "{{ number }} characters selected_plural": "{{ number }} χαρακτήρες επιλεγμένοι", + "{{ number }} words": "{{ number }} λέξη", + "{{ number }} words_plural": "{{ number }} λέξεις", + "{{ number }} characters": "{{ number }} χαρακτήρας", + "{{ number }} characters_plural": "{{ number }} χαρακτήρες", + "{{ number }} paragraphs": "{{ number }} παράγραφος", + "{{ number }} paragraphs_plural": "{{ number }} παράγραφοι", + "{{ number }} minute read": "{{ number }} λεπτά ανάγνωσης", + "Document title": "Τίτλος εγγράφου", + "Last updated": "Τελευταία ενημέρωση", + "Type '/' to insert, or start writing…": "Πληκτρολογήστε '/' για εισαγωγή ή αρχίστε να γράφετε…", + "Hide contents": "Απόκρυψη περιεχομένων", + "Show contents": "Εμφάνιση περιεχομένων", + "available when headings are added": "διαθέσιμο όταν προστεθούν επικεφαλίδες", + "Save draft": "Αποθήκευση προχείρου", + "Restore version": "Επαναφορά έκδοσης", + "{{userName}} archived": "Ο/Η {{userName}} αρχειοθέτησε", + "{{userName}} restored": "Ο/Η {{userName}} επανέφερε", + "{{userName}} deleted": "Ο/Η {{userName}} διέγραψε", + "{{userName}} added {{addedUserName}}": "Ο/Η {{userName}} πρόσθεσε τον/την {{addedUserName}}", + "{{userName}} removed {{removedUserName}}": "Ο/Η {{userName}} αφαίρεσε τον/την {{removedUserName}}", + "{{userName}} moved from trash": "Ο/Η {{userName}} το μετέφερε από τον κάδο", + "{{userName}} published": "Ο/Η {{userName}} δημοσίευσε", + "{{userName}} unpublished": "Ο/Η {{userName}} κατάργησε τη δημοσίευση", + "{{userName}} moved": "Ο/Η {{userName}} μετακίνησε", + "Previous version": "Προηγούμενη έκδοση", + "Highlight changes": "Επισήμανση αλλαγών", + "Compare to": "Σύγκριση με", + "No history yet": "Δεν υπάρχει ιστορικό ακόμη", + "Revision deleted": "Η έκδοση διαγράφηκε", + "Current version": "Τρέχουσα έκδοση", + "{{userName}} edited": "Ο/Η {{userName}} επεξεργάστηκε", + "via {{ authType }}": "μέσω {{ authType }}", + "{{count}} people": "{{count}} άτομο", + "{{count}} people_plural": "{{count}} άτομα", + "Source": "Πηγή", + "Created": "Δημιουργήθηκε", + "Imported from {{ source }}": "Εισήχθη από {{ source }}", + "Contributors": "Συντελεστές", + "Creator": "Δημιουργός", + "Last edited": "Τελευταία επεξεργασία", + "Previously edited": "Προηγούμενη επεξεργασία", + "Sorry, the last change could not be persisted – please reload the page": "Λυπούμαστε, η τελευταία αλλαγή δεν αποθηκεύτηκε – φορτώστε ξανά τη σελίδα", + "This document will be permanently deleted in <2> unless restored.": "Αυτό το έγγραφο θα διαγραφεί οριστικά σε <2>, εκτός αν επαναφερθεί.", + "Deleted by {{userName}}": "Διαγράφηκε από τον/την {{userName}}", + "Observing {{ userName }}": "Παρακολούθηση του/της {{ userName }}", + "Previous slide": "Προηγούμενη διαφάνεια", + "Next slide": "Επόμενη διαφάνεια", + "Toggle fullscreen": "Εναλλαγή πλήρους οθόνης", + "Create your presentation": "Δημιουργήστε την παρουσίασή σας", + "Add content to your document, then use headings or dividers to separate it into slides.": "Προσθέστε περιεχόμενο στο έγγραφο και χρησιμοποιήστε επικεφαλίδες ή διαχωριστικά για να το χωρίσετε σε διαφάνειες.", + "Learn more": "Μάθετε περισσότερα", + "Backlinks": "Αναφορές από άλλα έγγραφα", + "Clear search highlight": "Εκκαθάριση επισήμανσης αναζήτησης", + "Warning": "Προειδοποίηση", + "This document is large, which may affect performance": "Αυτό το έγγραφο είναι μεγάλο, κάτι που μπορεί να επηρεάσει την απόδοση", + "Are you sure about that? Deleting the {{ documentTitle }} document will delete all of its history.": "Είστε βέβαιοι; Η διαγραφή του εγγράφου {{ documentTitle }} θα διαγράψει όλο το ιστορικό του.", + "Are you sure about that? Deleting the {{ documentTitle }} document will delete all of its history and {{ any }} nested document.": "Είστε βέβαιοι; Η διαγραφή του εγγράφου {{ documentTitle }} θα διαγράψει όλο το ιστορικό του και {{ any }} ένθετο έγγραφο.", + "Are you sure about that? Deleting the {{ documentTitle }} document will delete all of its history and {{ any }} nested document._plural": "Είστε βέβαιοι; Η διαγραφή του εγγράφου {{ documentTitle }} θα διαγράψει όλο το ιστορικό του και {{ any }} ένθετα έγγραφα.", + "If you’d like the option of referencing or restoring the {{noun}} in the future, consider archiving it instead.": "Αν θέλετε να μπορείτε να ανατρέξετε ή να επαναφέρετε το στοιχείο ({{noun}}) στο μέλλον, εξετάστε την αρχειοθέτηση.", + "Couldn’t create the document. Try again?": "Δεν ήταν δυνατή η δημιουργία του εγγράφου. Δοκιμή ξανά;", + "Document permanently deleted": "Το έγγραφο διαγράφηκε οριστικά", + "Are you sure you want to permanently delete the {{ documentTitle }} document? This action is immediate and cannot be undone.": "Είστε βέβαιοι ότι θέλετε να διαγράψετε οριστικά το έγγραφο {{ documentTitle }}; Η ενέργεια είναι άμεση και δεν αναιρείται.", + "Select a location to publish": "Επιλέξτε θέση δημοσίευσης", + "Document published": "Το έγγραφο δημοσιεύτηκε", + "Couldn’t publish the document. Try again?": "Δεν ήταν δυνατή η δημοσίευση του εγγράφου. Δοκιμή ξανά;", + "Publish in {{ location }}": "Δημοσίευση σε {{ location }}", + "Search documents": "Αναζήτηση εγγράφων", + "No documents found for your filters.": "Δεν βρέθηκαν έγγραφα για τα φίλτρα σας.", + "You don’t have any drafts at the moment.": "Δεν έχετε πρόχειρα αυτή τη στιγμή.", + "Payment Required": "Απαιτείται πληρωμή", + "Access request sent": "Το αίτημα πρόσβασης στάλθηκε", + "No access to this doc": "Δεν έχετε πρόσβαση σε αυτό το έγγραφο", + "Your request to access this document has been sent. You will be notified once access is granted.": "Το αίτημά σας για πρόσβαση σε αυτό το έγγραφο στάλθηκε. Θα ειδοποιηθείτε μόλις σας δοθεί πρόσβαση.", + "It doesn’t look like you have permission to access this document. You can request access.": "Φαίνεται ότι δεν έχετε δικαίωμα πρόσβασης σε αυτό το έγγραφο. Μπορείτε να ζητήσετε πρόσβαση.", + "Access requested": "Ζητήθηκε πρόσβαση", + "Requesting…": "Αποστολή αιτήματος…", + "Request access": "Αίτημα πρόσβασης", + "Not found": "Δεν βρέθηκε", + "The page you’re looking for cannot be found. It might have been deleted or the link is incorrect.": "Η σελίδα που αναζητάτε δεν βρέθηκε. Ίσως έχει διαγραφεί ή ο σύνδεσμος είναι λανθασμένος.", + "We were unable to load the document while offline.": "Δεν ήταν δυνατή η φόρτωση του εγγράφου χωρίς σύνδεση.", + "Your account has been suspended": "Ο λογαριασμός σας έχει τεθεί σε αναστολή", + "Warning Sign": "Σήμα προειδοποίησης", + "A workspace admin ({{ suspendedContactEmail }}) has suspended your account. To re-activate your account, please reach out to them directly.": "Ένας διαχειριστής του χώρου εργασίας ({{ suspendedContactEmail }}) έθεσε τον λογαριασμό σας σε αναστολή. Για να τον ενεργοποιήσετε ξανά, επικοινωνήστε απευθείας μαζί του.", + "Sorry, an unknown error occurred loading the page. Please try again or contact support if the issue persists.": "Λυπούμαστε, προέκυψε άγνωστο σφάλμα κατά τη φόρτωση της σελίδας. Δοκιμάστε ξανά ή επικοινωνήστε με την υποστήριξη αν το πρόβλημα συνεχιστεί.", + "Documents you’ve recently viewed will be here for easy access": "Τα έγγραφα που είδατε πρόσφατα θα εμφανίζονται εδώ για εύκολη πρόσβαση", + "Edited by me": "Επεξεργάστηκα εγώ", + "Weird, this shouldn’t ever be empty": "Περίεργο, αυτό δεν θα έπρεπε να είναι ποτέ κενό", + "Documents with recent activity will appear here": "Τα έγγραφα με πρόσφατη δραστηριότητα θα εμφανίζονται εδώ", + "You haven’t edited any documents yet": "Δεν έχετε επεξεργαστεί ακόμη έγγραφα", + "{{ count }} invites sent": "{{ count }} πρόσκληση στάλθηκε", + "{{ count }} invites sent_plural": "{{ count }} προσκλήσεις στάλθηκαν", + "Those email addresses are already invited": "Αυτές οι διευθύνσεις email έχουν ήδη προσκληθεί", + "Sorry, you can only send {{MAX_INVITES}} invites at a time": "Λυπούμαστε, μπορείτε να στείλετε μόνο {{MAX_INVITES}} προσκλήσεις κάθε φορά", + "Invited {{roleName}} will receive access to": "Οι προσκεκλημένοι με ρόλο {{roleName}} θα αποκτήσουν πρόσβαση σε", + "{{ count }} collection": "{{ count }} συλλογή", + "{{ count }} collection_plural": "{{ count }} συλλογές", + "Can manage all workspace settings": "Μπορεί να διαχειρίζεται όλες τις ρυθμίσεις του χώρου εργασίας", + "Can create, edit, and delete documents": "Μπορεί να δημιουργεί, να επεξεργάζεται και να διαγράφει έγγραφα", + "Can view and comment": "Μπορεί να βλέπει και να σχολιάζει", + "Invite people to join your workspace. They can sign in with {{signinMethods}} or use their email address.": "Προσκαλέστε άτομα στον χώρο εργασίας σας. Μπορούν να συνδεθούν με {{signinMethods}} ή με τη διεύθυνση email τους.", + "Invite members to join your workspace. They will need to sign in with {{signinMethods}}.": "Προσκαλέστε μέλη στον χώρο εργασίας σας. Θα πρέπει να συνδεθούν με {{signinMethods}}.", + "As an admin, you can also <2>enable email sign-in.": "Ως διαχειριστής, μπορείτε επίσης να <2>ενεργοποιήσετε τη σύνδεση με email.", + "Invite as": "Πρόσκληση ως", + "Add another": "Προσθήκη άλλου", + "Inviting": "Αποστολή προσκλήσεων", + "Send invites": "Αποστολή προσκλήσεων", + "Sign In": "Σύνδεση", + "Continue with Email": "Συνέχεια με email", + "Continue with {{ authProviderName }}": "Συνέχεια με {{ authProviderName }}", + "Back to home": "Επιστροφή στην αρχική", + "Open in Gmail": "Άνοιγμα στο Gmail", + "Open in Outlook": "Άνοιγμα στο Outlook", + "The workspace could not be found": "Ο χώρος εργασίας δεν βρέθηκε", + "To continue, enter your workspace’s subdomain.": "Για να συνεχίσετε, εισαγάγετε τον υποτομέα (subdomain) του χώρου εργασίας σας.", + "subdomain": "υποτομέας", + "Continue": "Συνέχεια", + "Sorry, the code you entered is invalid or has expired.": "Λυπούμαστε, ο κωδικός που εισαγάγατε δεν είναι έγκυρος ή έχει λήξει.", + "The domain associated with your email address has not been allowed for this workspace.": "Ο τομέας της διεύθυνσης email σας δεν επιτρέπεται σε αυτόν τον χώρο εργασίας.", + "Unable to sign in. Please navigate to your workspace’s custom URL, then try to sign in again.<1>If you were invited to a workspace, you will find a link to it in the invite email.": "Δεν ήταν δυνατή η σύνδεση. Μεταβείτε στο προσαρμοσμένο URL του χώρου εργασίας σας και δοκιμάστε ξανά.<1>Αν έχετε προσκληθεί σε χώρο εργασίας, θα βρείτε τον σύνδεσμο στο email πρόσκλησης.", + "Sorry, a new account cannot be created with a personal Gmail address.<1>Please use a Google Workspace account instead.": "Λυπούμαστε, δεν μπορεί να δημιουργηθεί νέος λογαριασμός με προσωπική διεύθυνση Gmail.<1>Χρησιμοποιήστε λογαριασμό Google Workspace.", + "The workspace associated with your user is scheduled for deletion and cannot be accessed at this time.": "Ο χώρος εργασίας του χρήστη σας έχει προγραμματιστεί για διαγραφή και δεν είναι προσβάσιμος αυτή τη στιγμή.", + "The workspace you authenticated with is not authorized on this installation. Try another?": "Ο χώρος εργασίας με τον οποίο συνδεθήκατε δεν είναι εξουσιοδοτημένος σε αυτή την εγκατάσταση. Δοκιμάστε άλλον;", + "We could not read the user info supplied by your identity provider.": "Δεν ήταν δυνατή η ανάγνωση των στοιχείων χρήστη από τον πάροχο ταυτότητάς σας.", + "Your account uses email sign-in. Please sign in with email to continue.": "Ο λογαριασμός σας χρησιμοποιεί σύνδεση με email. Συνδεθείτε με email για να συνεχίσετε.", + "An email sign-in link was recently sent. Please check your inbox or try again in a few minutes.": "Ένας σύνδεσμος σύνδεσης μέσω email στάλθηκε πρόσφατα. Ελέγξτε τα εισερχόμενά σας ή δοκιμάστε ξανά σε λίγα λεπτά.", + "Authentication failed – we were unable to sign you in at this time. Please try again.": "Η ταυτοποίηση απέτυχε – δεν ήταν δυνατή η σύνδεσή σας αυτή τη στιγμή. Δοκιμάστε ξανά.", + "Authentication failed – you do not have permission to access this workspace.": "Η ταυτοποίηση απέτυχε – δεν έχετε δικαίωμα πρόσβασης σε αυτόν τον χώρο εργασίας.", + "Sorry, it looks like that sign-in link is no longer valid. Please try requesting another.": "Λυπούμαστε, φαίνεται ότι αυτός ο σύνδεσμος σύνδεσης δεν είναι πλέον έγκυρος. Δοκιμάστε να ζητήσετε άλλον.", + "Your account has been suspended. To re-activate your account, please contact a workspace admin.": "Ο λογαριασμός σας έχει τεθεί σε αναστολή. Για να τον ενεργοποιήσετε ξανά, επικοινωνήστε με έναν διαχειριστή του χώρου εργασίας.", + "This workspace has been suspended. Please contact support to restore access.": "Αυτός ο χώρος εργασίας έχει τεθεί σε αναστολή. Επικοινωνήστε με την υποστήριξη για να αποκαταστήσετε την πρόσβαση.", + "Authentication failed – this login method was disabled by a workspace admin.": "Η ταυτοποίηση απέτυχε – αυτή η μέθοδος σύνδεσης απενεργοποιήθηκε από διαχειριστή του χώρου εργασίας.", + "The workspace you are trying to join requires an invite before you can create an account.<1>Please request an invite from your workspace admin and try again.": "Ο χώρος εργασίας στον οποίο προσπαθείτε να συμμετάσχετε απαιτεί πρόσκληση πριν από τη δημιουργία λογαριασμού.<1>Ζητήστε πρόσκληση από τον διαχειριστή του χώρου εργασίας και δοκιμάστε ξανά.", + "Sorry, an unknown error occurred.": "Λυπούμαστε, προέκυψε άγνωστο σφάλμα.", + "Continue with Passkey": "Συνέχεια με passkey", + "Use a passkey from your browser": "Χρησιμοποιήστε ένα passkey από το πρόγραμμα περιήγησής σας", + "Signing in": "Σύνδεση σε εξέλιξη", + "You can safely close this window once the Outline desktop app has opened": "Μπορείτε να κλείσετε αυτό το παράθυρο μόλις ανοίξει η εφαρμογή Outline για υπολογιστή", + "Choose workspace": "Επιλογή χώρου εργασίας", + "Enter the address of an Outline workspace to connect": "Εισαγάγετε τη διεύθυνση ενός χώρου εργασίας Outline για σύνδεση", + "This doesn’t appear to be a valid installation": "Δεν φαίνεται να είναι έγκυρη εγκατάσταση", + "Choose a workspace": "Επιλέξτε χώρο εργασίας", + "Choose an {{ appName }} workspace or log in to continue": "Επιλέξτε έναν χώρο εργασίας {{ appName }} ή συνδεθείτε για να συνεχίσετε", + "Create workspace": "Δημιουργία χώρου εργασίας", + "Set up your workspace by providing a name and details for admin login. You can change these later.": "Ρυθμίστε τον χώρο εργασίας σας δίνοντας όνομα και στοιχεία για τη σύνδεση του διαχειριστή. Μπορείτε να τα αλλάξετε αργότερα.", + "Workspace name": "Όνομα χώρου εργασίας", + "Admin name": "Όνομα διαχειριστή", + "Admin email": "Email διαχειριστή", + "Login": "Σύνδεση", + "Error": "Σφάλμα", + "Failed to load configuration.": "Αποτυχία φόρτωσης ρυθμίσεων.", + "Check the network requests and server logs for full details of the error.": "Ελέγξτε τα αιτήματα δικτύου και τα αρχεία καταγραφής του διακομιστή για πλήρεις λεπτομέρειες του σφάλματος.", + "Custom domain setup": "Ρύθμιση προσαρμοσμένου τομέα", + "Almost there": "Σχεδόν έτοιμο", + "Your custom domain is successfully pointing at Outline. To complete the setup process, please contact support.": "Ο προσαρμοσμένος τομέας σας δείχνει επιτυχώς στο Outline. Για να ολοκληρώσετε τη διαδικασία ρύθμισης, επικοινωνήστε με την υποστήριξη.", + "This login method requires choosing your workspace to continue": "Αυτή η μέθοδος σύνδεσης απαιτεί να επιλέξετε τον χώρο εργασίας σας για να συνεχίσετε", + "Check your email": "Ελέγξτε το email σας", + "Enter the sign-in code sent to the email {{ emailLinkSentTo }}": "Εισαγάγετε τον κωδικό σύνδεσης που στάλθηκε στο email {{ emailLinkSentTo }}", + "A magic sign-in link has been sent to the email {{ emailLinkSentTo }} if an account exists.": "Αν υπάρχει λογαριασμός, στάλθηκε σύνδεσμος σύνδεσης στο email {{ emailLinkSentTo }}.", + "Back to login": "Επιστροφή στη σύνδεση", + "Get started by choosing a sign-in method for your new workspace below…": "Ξεκινήστε επιλέγοντας παρακάτω μια μέθοδο σύνδεσης για τον νέο σας χώρο εργασίας…", + "Log in to {{ authProviderName }}": "Σύνδεση στο {{ authProviderName }}", + "You signed in with {{ authProviderName }} last time.": "Την τελευταία φορά συνδεθήκατε με {{ authProviderName }}.", + "Or": "Ή", + "Already have an account? Go to <1>login.": "Έχετε ήδη λογαριασμό; Μεταβείτε στη <1>σύνδεση.", + "Choose an {{ appName }} workspace or log in to continue connecting this app": "Επιλέξτε χώρο εργασίας {{ appName }} ή συνδεθείτε για να συνεχίσετε τη σύνδεση αυτής της εφαρμογής", + "An error occurred": "Προέκυψε σφάλμα", + "The OAuth client could not be found – please check the provided client ID": "Δεν βρέθηκε το πρόγραμμα-πελάτης OAuth – ελέγξτε το παρεχόμενο αναγνωριστικό προγράμματος-πελάτη", + "The OAuth client could not be loaded – please check that the redirect URI is valid": "Δεν ήταν δυνατή η φόρτωση του προγράμματος-πελάτη OAuth – ελέγξτε ότι το URI ανακατεύθυνσης είναι έγκυρο", + "The OAuth client could not be loaded from its metadata document": "Δεν ήταν δυνατή η φόρτωση του OAuth client από το έγγραφο μεταδεδομένων του", + "The OAuth client could not be loaded – please check that your workspace subdomain is correct": "Δεν ήταν δυνατή η φόρτωση του προγράμματος-πελάτη OAuth – ελέγξτε ότι ο υποτομέας του χώρου εργασίας σας είναι σωστός", + "Required OAuth parameters are missing": "Λείπουν απαιτούμενες παράμετροι OAuth", + "Authorize": "Εξουσιοδότηση", + "{{ appName }} wants to access {{ teamName }}": "Η εφαρμογή {{ appName }} ζητά πρόσβαση στο {{ teamName }}", + "By {{ developerName }}": "Από {{ developerName }}", + "App details from {{ clientHost }}": "Στοιχεία εφαρμογής από {{ clientHost }}", + "{{ appName }} will be able to access your account and perform the following actions": "Η εφαρμογή {{ appName }} θα μπορεί να έχει πρόσβαση στον λογαριασμό σας και να εκτελεί τις παρακάτω ενέργειες", + "You will be redirected to a local application that {{ clientHost }} cannot verify. Only continue if you started this connection.": "Θα ανακατευθυνθείτε σε τοπική εφαρμογή που το {{ clientHost }} δεν μπορεί να επαληθεύσει. Συνεχίστε μόνο αν ξεκινήσατε εσείς αυτή τη σύνδεση.", + "You will be redirected to a local application after authorizing.": "Θα ανακατευθυνθείτε σε τοπική εφαρμογή μετά την εξουσιοδότηση.", + "You will be redirected to {{ redirectUri }} after authorizing. Make sure you trust this URL.": "Θα ανακατευθυνθείτε στο {{ redirectUri }} μετά την εξουσιοδότηση. Βεβαιωθείτε ότι εμπιστεύεστε αυτό το URL.", + "read": "ανάγνωση", + "write": "εγγραφή", + "create": "δημιουργία", + "read and write": "ανάγνωση και εγγραφή", + "attachments": "συνημμένα", + "collections": "συλλογές", + "comments": "σχόλια", + "documents": "έγγραφα", + "events": "συμβάντα", + "groups": "ομάδες", + "integrations": "ενσωματώσεις", + "notifications": "ειδοποιήσεις", + "reactions": "αντιδράσεις", + "pins": "καρφιτσώματα", + "shares": "κοινοποιήσεις", + "users": "χρήστες", + "teams": "ομάδες εργασίας", + "workspace": "χώρος εργασίας", + "Full access": "Πλήρης πρόσβαση", + "Read all data": "Ανάγνωση όλων των δεδομένων", + "Write all data": "Εγγραφή όλων των δεδομένων", + "Create all data": "Δημιουργία όλων των δεδομένων", + "More filters": "Περισσότερα φίλτρα", + "More": "Περισσότερα", + "Any collection": "Οποιαδήποτε συλλογή", + "All time": "Όλο το διάστημα", + "Any time": "Οποτεδήποτε", + "Choose the first and last day": "Επιλέξτε την πρώτη και την τελευταία ημέρα", + "Apply": "Εφαρμογή", + "Remove document filter": "Αφαίρεση φίλτρου εγγράφου", + "Remove search": "Αφαίρεση αναζήτησης", + "Remove filter": "Αφαίρεση φίλτρου", + "Relevance": "Συνάφεια", + "Newest": "Νεότερα", + "Oldest": "Παλαιότερα", + "A → Z": "Α → Ω", + "Z → A": "Ω → Α", + "Sorted by": "Ταξινόμηση κατά", + "Any author": "Οποιοσδήποτε συντάκτης", + "Past day": "Τελευταία ημέρα", + "Past week": "Τελευταία εβδομάδα", + "Past month": "Τελευταίος μήνας", + "Past year": "Τελευταίο έτος", + "{{ count }} result": "{{ count }} αποτέλεσμα", + "{{ count }} result_plural": "{{ count }} αποτελέσματα", + "Please try again or contact support if the problem persists": "Δοκιμάστε ξανά ή επικοινωνήστε με την υποστήριξη αν το πρόβλημα συνεχιστεί", + "No documents found for your search filters.": "Δεν βρέθηκαν έγγραφα για τα φίλτρα αναζήτησής σας.", + "Edited by": "Επεξεργασία από", + "Status": "Κατάσταση", + "Updated": "Ενημερώθηκε", + "Created by": "Δημιουργήθηκε από", + "Title only": "Μόνο τίτλος", + "From {{ date }}": "Από {{ date }}", + "Until {{ date }}": "Έως {{ date }}", + "Settings saved": "Οι ρυθμίσεις αποθηκεύτηκαν", + "Copied to clipboard": "Αντιγράφηκε στο πρόχειρο", + "Control how AI features are used in the workspace.": "Ελέγξτε πώς χρησιμοποιούνται οι λειτουργίες AI στον χώρο εργασίας.", + "MCP server": "Διακομιστής MCP", + "Enabled": "Ενεργό", + "Let members connect AI assistants and other apps to this workspace. Connected apps can read and edit content with the same permissions as the member who connects them.": "Επιτρέψτε στα μέλη να συνδέουν βοηθούς AI και άλλες εφαρμογές σε αυτόν τον χώρο εργασίας. Οι συνδεδεμένες εφαρμογές μπορούν να διαβάζουν και να επεξεργάζονται περιεχόμενο με τα ίδια δικαιώματα με το μέλος που τις συνδέει.", + "Use this URL in your MCP client. See the setup guide for more details.": "Χρησιμοποιήστε αυτό το URL στον MCP client σας. Δείτε τον οδηγό ρύθμισης για περισσότερες λεπτομέρειες.", + "Copy URL": "Αντιγραφή URL", + "Custom instructions": "Προσαρμοσμένες οδηγίες", + "Optional instructions that are sent to connected AI apps, for example how your workspace is organized or where to find important information.": "Προαιρετικές οδηγίες που αποστέλλονται στις συνδεδεμένες εφαρμογές AI, για παράδειγμα πώς είναι οργανωμένος ο χώρος εργασίας σας ή πού θα βρουν σημαντικές πληροφορίες.", + "AI answers": "Απαντήσεις AI", + "Show AI-generated answers to questions in search, based on content in your workspace. Requires a paid license.": "Εμφάνιση απαντήσεων AI σε ερωτήσεις στην αναζήτηση, με βάση το περιεχόμενο του χώρου εργασίας σας. Απαιτεί επί πληρωμή άδεια.", + "Personal keys": "Προσωπικά κλειδιά", + "Create personal API keys to authenticate with the API and programmatically control your workspace’s data. For more details, see the developer documentation.": "Δημιουργήστε προσωπικά κλειδιά API για ταυτοποίηση με το API και προγραμματικό έλεγχο των δεδομένων του χώρου εργασίας σας. Για περισσότερες λεπτομέρειες, δείτε την τεκμηρίωση προγραμματιστή.", + "API keys have been disabled by an admin for your account": "Τα κλειδιά API έχουν απενεργοποιηθεί από διαχειριστή για τον λογαριασμό σας", + "Application access": "Πρόσβαση εφαρμογών", + "Manage which third-party and internal applications have been granted access to your {{ appName }} account.": "Διαχειριστείτε ποιες εξωτερικές και εσωτερικές εφαρμογές έχουν πρόσβαση στον λογαριασμό σας {{ appName }}.", + "Could not load API keys": "Δεν ήταν δυνατή η φόρτωση των κλειδιών API", + "API": "Διεπαφή προγραμματισμού εφαρμογών (API)", + "API keys can be used to authenticate with the API and programmatically control your workspace’s data. For more details, see the developer documentation.": "Τα κλειδιά API μπορούν να χρησιμοποιηθούν για ταυτοποίηση με το API και προγραμματικό έλεγχο των δεδομένων του χώρου εργασίας σας. Για περισσότερες λεπτομέρειες, δείτε την τεκμηρίωση προγραμματιστή.", + "Application published": "Η εφαρμογή δημοσιεύτηκε", + "Application updated": "Η εφαρμογή ενημερώθηκε", + "Client secret rotated": "Το μυστικό του client ανανεώθηκε", + "Rotate secret": "Ανανέωση μυστικού", + "Rotating the client secret will invalidate the current secret. Make sure to update any applications using these credentials.": "Η ανανέωση του μυστικού του client θα ακυρώσει το τρέχον μυστικό. Φροντίστε να ενημερώσετε όσες εφαρμογές χρησιμοποιούν αυτά τα διαπιστευτήρια.", + "Displayed to users when authorizing": "Εμφανίζεται στους χρήστες κατά την εξουσιοδότηση", + "Application icon": "Εικονίδιο εφαρμογής", + "Confidential clients can securely store a secret": "Οι εμπιστευτικοί clients μπορούν να αποθηκεύουν με ασφάλεια ένα μυστικό", + "Details": "Λεπτομέρειες", + "Developer information shown to users when authorizing": "Στοιχεία προγραμματιστή που εμφανίζονται στους χρήστες κατά την εξουσιοδότηση", + "Developer name": "Όνομα προγραμματιστή", + "Developer URL": "URL προγραμματιστή", + "Allow users from other workspaces to authorize this app": "Να επιτρέπεται σε χρήστες άλλων χώρων εργασίας να εξουσιοδοτούν αυτή την εφαρμογή", + "Credentials": "Διαπιστευτήρια", + "OAuth client ID": "Αναγνωριστικό προγράμματος-πελάτη OAuth", + "The public identifier for this app": "Το δημόσιο αναγνωριστικό αυτής της εφαρμογής", + "OAuth client secret": "Μυστικό προγράμματος-πελάτη OAuth", + "Store this value securely – do not expose it publicly": "Αποθηκεύστε αυτή την τιμή με ασφάλεια – μην την εκθέτετε δημόσια", + "Where users are redirected after authorizing this app": "Πού ανακατευθύνονται οι χρήστες μετά την εξουσιοδότηση αυτής της εφαρμογής", + "Authorization URL": "URL εξουσιοδότησης", + "Where users are redirected to authorize this app": "Πού ανακατευθύνονται οι χρήστες για να εξουσιοδοτήσουν αυτή την εφαρμογή", + "Applications allow you to build internal or public integrations with Outline and provide secure access via OAuth. For more details, see the developer documentation.": "Οι εφαρμογές σάς επιτρέπουν να δημιουργείτε εσωτερικές ή δημόσιες ενσωματώσεις με το Outline και να παρέχετε ασφαλή πρόσβαση μέσω OAuth. Για περισσότερες λεπτομέρειες, δείτε την τεκμηρίωση προγραμματιστή.", + "Group sync connected": "Ο συγχρονισμός ομάδων συνδέθηκε", + "Could not connect group sync": "Δεν ήταν δυνατή η σύνδεση του συγχρονισμού ομάδων", + "Are you sure?": "Είστε βέβαιοι;", + "Removing": "Αφαίρεση", + "Removing this authentication provider will prevent members from signing in with {{ authProvider }}.": "Η αφαίρεση αυτού του παρόχου ταυτοποίησης θα εμποδίσει τα μέλη να συνδέονται με {{ authProvider }}.", + "Disable group sync": "Απενεργοποίηση συγχρονισμού ομάδων", + "Manage how members sign in to your workspace and which authentication providers are enabled.": "Διαχειριστείτε πώς συνδέονται τα μέλη στον χώρο εργασίας σας και ποιοι πάροχοι ταυτοποίησης είναι ενεργοί.", + "Sign in": "Σύνδεση", + "Allow members to sign in with {{ authProvider }}": "Να επιτρέπεται στα μέλη η σύνδεση με {{ authProvider }}", + "Connect {{ authProvider }} to allow members to sign in": "Συνδέστε το {{ authProvider }} για να επιτρέψετε στα μέλη να συνδέονται", + "Connected": "Συνδεδεμένο", + "Disabled": "Ανενεργό", + "Connect": "Σύνδεση", + "Group sync": "Συγχρονισμός ομάδων", + "An administrator of {{ authProvider }} must approve group access for this workspace": "Ένας διαχειριστής του {{ authProvider }} πρέπει να εγκρίνει την πρόσβαση στις ομάδες για αυτόν τον χώρο εργασίας", + "Sync group memberships from {{ authProvider }} on each sign-in": "Συγχρονισμός συμμετοχής σε ομάδες από το {{ authProvider }} σε κάθε σύνδεση", + "Set up group sync": "Ρύθμιση συγχρονισμού ομάδων", + "Group claim": "Claim ομάδων", + "The claim in the provider response that contains group names (e.g. groups, roles)": "Το claim στην απάντηση του παρόχου που περιέχει τα ονόματα των ομάδων (π.χ. groups, roles)", + "Allow members to sign in using their email address": "Να επιτρέπεται στα μέλη η σύνδεση με τη διεύθυνση email τους", + "The server must have SMTP configured to enable this setting": "Ο διακομιστής πρέπει να έχει ρυθμισμένο SMTP για να ενεργοποιηθεί αυτή η ρύθμιση", + "Passkeys": "Κλειδιά πρόσβασης", + "Allow members to sign in with a WebAuthn passkey": "Να επιτρέπεται στα μέλη η σύνδεση με passkey WebAuthn", + "Restrictions": "Περιορισμοί", + "Keep synced groups": "Διατήρηση συγχρονισμένων ομάδων", + "Groups will remain but no longer update": "Οι ομάδες θα παραμείνουν αλλά δεν θα ενημερώνονται πλέον", + "Delete synced groups": "Διαγραφή συγχρονισμένων ομάδων", + "Remove all groups created by sync": "Αφαίρεση όλων των ομάδων που δημιουργήθηκαν από τον συγχρονισμό", + "Group memberships will no longer be synced from {{ authProvider }} when members sign in.": "Η συμμετοχή σε ομάδες δεν θα συγχρονίζεται πλέον από το {{ authProvider }} κατά τη σύνδεση των μελών.", + "Existing groups": "Υπάρχουσες ομάδες", + "Disabling": "Απενεργοποίηση", + "Disable": "Απενεργοποίηση", + "by {{ name }}": "από τον/την {{ name }}", + "Expired": "Έληξε", + "Last used": "Τελευταία χρήση", + "Restricted scope": "Περιορισμένη εμβέλεια", + "API key copied to clipboard": "Το κλειδί API αντιγράφηκε στο πρόχειρο", + "Copied": "Αντιγράφηκε", + "Revoking": "Ανάκληση", + "Are you sure you want to revoke the {{ tokenName }} token?": "Είστε βέβαιοι ότι θέλετε να ανακαλέσετε το token {{ tokenName }};", + "Key": "Κλειδί", + "Never": "Ποτέ", + "Expires": "Λήγει", + "Could not load preference": "Δεν ήταν δυνατή η φόρτωση της προτίμησης", + "Preferences saved": "Οι προτιμήσεις αποθηκεύτηκαν", + "Could not save preference": "Δεν ήταν δυνατή η αποθήκευση της προτίμησης", + "Open on startup": "Άνοιγμα κατά την εκκίνηση", + "Automatically launch {{ appName }} when you sign in to your computer.": "Αυτόματη εκκίνηση του {{ appName }} όταν συνδέεστε στον υπολογιστή σας.", + "Disconnect integration": "Αποσύνδεση ενσωμάτωσης", + "Disconnecting": "Αποσύνδεση", + "Are you sure you want to disconnect the {{ service }} integration?": "Είστε βέβαιοι ότι θέλετε να αποσυνδέσετε την ενσωμάτωση {{ service }};", + "This will stop sending analytics events to the configured instance.": "Θα σταματήσει η αποστολή συμβάντων analytics στην ρυθμισμένη υπηρεσία.", + "Allowed domains": "Επιτρεπόμενοι τομείς", + "The domains which should be allowed to create new accounts using SSO. Changing this setting does not affect existing user accounts.": "Οι τομείς από τους οποίους επιτρέπεται η δημιουργία νέων λογαριασμών μέσω SSO. Η αλλαγή αυτής της ρύθμισης δεν επηρεάζει τους υπάρχοντες λογαριασμούς χρηστών.", + "Remove domain": "Αφαίρεση τομέα", + "Add a domain": "Προσθήκη τομέα", + "Save changes": "Αποθήκευση αλλαγών", + "Please choose a single file to import": "Επιλέξτε ένα μόνο αρχείο για εισαγωγή", + "Your import is being processed – you can safely leave this page": "Η εισαγωγή σας επεξεργάζεται – μπορείτε με ασφάλεια να φύγετε από αυτή τη σελίδα", + "File not supported – please upload a valid ZIP file": "Το αρχείο δεν υποστηρίζεται – μεταφορτώστε έγκυρο αρχείο ZIP", + "Uploading {{progress}}%": "Μεταφόρτωση {{progress}}%", + "Added by": "Προστέθηκε από", + "Date added": "Ημερομηνία προσθήκης", + "Users exported successfully": "Οι χρήστες εξήχθησαν", + "Failed to export users": "Αποτυχία εξαγωγής χρηστών", + "Download CSV": "Λήψη CSV", + "Processing": "Σε επεξεργασία", + "Completed": "Ολοκληρώθηκε", + "Failed": "Απέτυχε", + "All collections": "Όλες οι συλλογές", + "Import deleted": "Η εισαγωγή διαγράφηκε", + "Export deleted": "Η εξαγωγή διαγράφηκε", + "Are you sure you want to delete this import?": "Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτή την εισαγωγή;", + "Deleting this import will also delete all collections and documents that were created from it. This cannot be undone.": "Η διαγραφή αυτής της εισαγωγής θα διαγράψει και όλες τις συλλογές και τα έγγραφα που δημιουργήθηκαν από αυτήν. Η ενέργεια δεν αναιρείται.", + "Check server logs for more details.": "Ελέγξτε τα αρχεία καταγραφής του διακομιστή για περισσότερες λεπτομέρειες.", + "{{userName}} requested": "Ο/Η {{userName}} ζήτησε", + "Groups are for organizing your team. They work best when centered around a function or a responsibility — Support or Engineering, for example.": "Οι ομάδες χρησιμοποιούνται για την οργάνωση της ομάδας σας. Λειτουργούν καλύτερα όταν επικεντρώνονται σε μια λειτουργία ή ευθύνη — για παράδειγμα, Υποστήριξη ή Μηχανική.", + "Description": "Περιγραφή", + "Optional": "Προαιρετικό", + "You’ll be able to add people to the group next.": "Στη συνέχεια θα μπορείτε να προσθέσετε άτομα στην ομάδα.", + "This group is managed by an external authentication provider. The name and description are synced automatically and cannot be changed.": "Αυτή η ομάδα διαχειρίζεται από εξωτερικό πάροχο ταυτοποίησης. Το όνομα και η περιγραφή συγχρονίζονται αυτόματα και δεν μπορούν να αλλάξουν.", + "You can edit the name of this group at any time, but doing so too often might confuse your teammates.": "Μπορείτε να επεξεργαστείτε το όνομα αυτής της ομάδας ανά πάσα στιγμή, αλλά αν το κάνετε πολύ συχνά, ίσως μπερδέψετε τους συναδέλφους σας.", + "Hidden": "Κρυφή", + "Prevent this group from being mentionable in documents or comments": "Να μην μπορεί αυτή η ομάδα να αναφέρεται σε έγγραφα ή σχόλια", + "Are you sure about that? Deleting the {{groupName}} group will cause its members to lose access to collections and documents that it is associated with.": "Είστε βέβαιοι; Η διαγραφή της ομάδας {{groupName}} θα κάνει τα μέλη της να χάσουν την πρόσβαση στις συλλογές και τα έγγραφα με τα οποία συνδέεται.", + "Are you sure about that? Deleting {{ count }} group will cause its members to lose access to collections and documents that it is associated with.": "Είστε βέβαιοι; Η διαγραφή {{ count }} ομάδας θα κάνει τα μέλη της να χάσουν την πρόσβαση σε συλλογές και έγγραφα με τα οποία σχετίζεται.", + "Are you sure about that? Deleting {{ count }} group will cause its members to lose access to collections and documents that it is associated with._plural": "Είστε βέβαιοι; Η διαγραφή {{ count }} ομάδων θα κάνει τα μέλη τους να χάσουν την πρόσβαση σε συλλογές και έγγραφα με τα οποία σχετίζονται.", + "{{userName}} was added to the group": "Ο/Η {{userName}} προστέθηκε στην ομάδα", + "Could not add user": "Δεν ήταν δυνατή η προσθήκη του χρήστη", + "Add members below to give them access to the group. Need to add someone who’s not yet a member?": "Προσθέστε μέλη παρακάτω για να τους δώσετε πρόσβαση στην ομάδα. Χρειάζεται να προσθέσετε κάποιον που δεν είναι ακόμη μέλος;", + "Invite them to {{teamName}}": "Προσκαλέστε τον στο {{teamName}}", + "Ask an admin to invite them first": "Ζητήστε πρώτα από έναν διαχειριστή να τον προσκαλέσει", + "Search by name": "Αναζήτηση με όνομα", + "Search people": "Αναζήτηση ατόμων", + "No people matching your search": "Κανένα άτομο δεν ταιριάζει με την αναζήτησή σας", + "No people left to add": "Δεν υπάρχουν άλλα άτομα για προσθήκη", + "Last active": "Τελ. δραστηριότητα", + "Added": "Προστέθηκε", + "Added by {{ userName }}": "Προστέθηκε από τον/την {{ userName }}", + "Role": "Ρόλος", + "All permissions": "Όλα τα δικαιώματα", + "All sources": "Όλες οι πηγές", + "Manual": "Χειροκίνητα", + "This group is hidden": "Αυτή η ομάδα είναι κρυφή", + "Synced <2>": "Συγχρονίστηκε <2>", + "Date created": "Ημερομηνία δημιουργίας", + "Crop image": "Περικοπή εικόνας", + "Change image": "Αλλαγή εικόνας", + "Remove image": "Αφαίρεση εικόνας", + "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "Το πρόγραμμα περιήγησής σας δεν μπορεί να διαβάσει εικόνες HEIC – μετατρέψτε πρώτα την εικόνα σε JPEG ή PNG", + "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "Μπορείτε να εισαγάγετε αρχείο zip που εξήχθη προηγουμένως με την επιλογή JSON από άλλη εγκατάσταση. Στο {{ appName }}, ανοίξτε την Εξαγωγή στην πλαϊνή στήλη των Ρυθμίσεων και κάντε κλικ στην Εξαγωγή δεδομένων.", + "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Σύρετε και αφήστε το αρχείο zip της εξαγωγής JSON από το {{appName}} ή κάντε κλικ για μεταφόρτωση", + "Canceled": "Ακυρώθηκε", + "Import canceled": "Η εισαγωγή ακυρώθηκε", + "Are you sure you want to cancel this import?": "Είστε βέβαιοι ότι θέλετε να ακυρώσετε αυτή την εισαγωγή;", + "Canceling": "Ακύρωση", + "Canceling this import will discard any progress made. This cannot be undone.": "Η ακύρωση αυτής της εισαγωγής θα απορρίψει την πρόοδο που έχει γίνει. Η ενέργεια δεν αναιρείται.", + "{{ total }} document imported": "{{ total }} έγγραφο εισήχθη", + "{{ total }} document imported_plural": "{{ total }} έγγραφα εισήχθησαν", + "You can import a zip file that was previously exported from an Outline installation – collections, documents, and images will be imported. In Outline, open Export in the Settings sidebar and click on Export data.": "Μπορείτε να εισαγάγετε αρχείο zip που εξήχθη προηγουμένως από εγκατάσταση Outline – θα εισαχθούν συλλογές, έγγραφα και εικόνες. Στο Outline, ανοίξτε την Εξαγωγή στην πλαϊνή στήλη των Ρυθμίσεων και κάντε κλικ στην Εξαγωγή δεδομένων.", + "Drag and drop the zip file from the Markdown export option in {{appName}}, or click to upload": "Σύρετε και αφήστε το αρχείο zip της εξαγωγής Markdown από το {{appName}} ή κάντε κλικ για μεταφόρτωση", + "You can import a zip file of an Open Knowledge Format (OKF) bundle – folders become collections and documents, and document titles are read from YAML frontmatter.": "Μπορείτε να εισαγάγετε αρχείο zip ενός πακέτου Open Knowledge Format (OKF) – οι φάκελοι γίνονται συλλογές και έγγραφα και οι τίτλοι των εγγράφων διαβάζονται από το YAML frontmatter.", + "Drag and drop a zip file of the OKF bundle, or click to upload": "Σύρετε και αφήστε το αρχείο zip του πακέτου OKF ή κάντε κλικ για μεταφόρτωση", + "Choose an existing location to import into, or new collections will be created.": "Επιλέξτε μια υπάρχουσα τοποθεσία για εισαγωγή, διαφορετικά θα δημιουργηθούν νέες συλλογές.", + "Set the default permission level for collections created from the import": "Ορίστε το προεπιλεγμένο επίπεδο δικαιωμάτων για τις συλλογές που θα δημιουργηθούν από την εισαγωγή", + "Configure": "Ρύθμιση", + "Never used": "Δεν έχει χρησιμοποιηθεί ποτέ", + "Are you sure you want to revoke access?": "Είστε βέβαιοι ότι θέλετε να ανακαλέσετε την πρόσβαση;", + "Are you sure you want to delete the {{ appName }} application? This cannot be undone.": "Είστε βέβαιοι ότι θέλετε να διαγράψετε την εφαρμογή {{ appName }}; Η ενέργεια δεν αναιρείται.", + "Title": "Τίτλος", + "Shared by": "Κοινοποιήθηκε από", + "Date shared": "Ημερομηνία κοινοποίησης", + "Last accessed": "Τελευταία πρόσβαση", + "Domain": "Τομέας", + "Views": "Προβολές", + "Visibility": "Ορατότητα", + "Updated by": "Ενημερώθηκε από", + "This color has low contrast in light and dark mode": "Αυτό το χρώμα έχει χαμηλή αντίθεση σε ανοιχτή και σκούρα λειτουργία", + "This color has low contrast in light mode": "Αυτό το χρώμα έχει χαμηλή αντίθεση σε ανοιχτή λειτουργία", + "This color has low contrast in dark mode": "Αυτό το χρώμα έχει χαμηλή αντίθεση σε σκούρα λειτουργία", + "This color has low contrast against the accent color": "Αυτό το χρώμα έχει χαμηλή αντίθεση σε σχέση με το χρώμα έμφασης", + "Accent color": "Χρώμα έμφασης", + "Accent text color": "Χρώμα κειμένου έμφασης", + "All roles": "Όλοι οι ρόλοι", + "Admins": "Διαχειριστές", + "Editors": "Συντάκτες", + "Invited by": "Πρόσκληση από", + "Joined": "Εντάχθηκε", + "Any status": "Οποιαδήποτε κατάσταση", + "Active": "Ενεργός", + "Could not load emojis": "Δεν ήταν δυνατή η φόρτωση των emoji", + "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Τα προσαρμοσμένα emoji μπορούν να χρησιμοποιούνται σε όλο τον χώρο εργασίας σας, σε έγγραφα, σχόλια και αντιδράσεις.", + "Left": "Αριστερά", + "Right": "Δεξιά", + "Logo updated": "Το λογότυπο ενημερώθηκε", + "Unable to upload new logo": "Δεν ήταν δυνατή η μεταφόρτωση νέου λογότυπου", + "Delete workspace": "Διαγραφή χώρου εργασίας", + "These settings affect the way that your workspace appears to everyone on the team.": "Αυτές οι ρυθμίσεις επηρεάζουν τον τρόπο που εμφανίζεται ο χώρος εργασίας σας σε όλους.", + "The logo is displayed at the top left of the application.": "Το λογότυπο εμφανίζεται πάνω αριστερά στην εφαρμογή.", + "Workspace logo": "Λογότυπο χώρου εργασίας", + "The workspace name, usually the same as your company name.": "Το όνομα του χώρου εργασίας, συνήθως ίδιο με το όνομα της εταιρείας σας.", + "A short description of your workspace.": "Σύντομη περιγραφή του χώρου εργασίας σας.", + "Theme": "Θέμα", + "Customize the interface look and feel.": "Προσαρμόστε την εμφάνιση της διεπαφής.", + "Reset theme": "Επαναφορά θέματος", + "Public branding": "Δημόσια εταιρική ταυτότητα", + "Show your workspace logo, description, and branding on publicly shared pages.": "Εμφάνιση του λογότυπου, της περιγραφής και της ταυτότητας του χώρου εργασίας σας στις δημόσια κοινόχρηστες σελίδες.", + "Table of contents position": "Θέση πίνακα περιεχομένων", + "The side to display the table of contents in relation to the main content.": "Η πλευρά στην οποία εμφανίζεται ο πίνακας περιεχομένων σε σχέση με το κύριο περιεχόμενο.", + "Subdomain": "Υποτομέας", + "Your workspace will be accessible at": "Ο χώρος εργασίας σας θα είναι προσβάσιμος στη διεύθυνση", + "Choose a subdomain to enable a login page just for your team.": "Επιλέξτε υποτομέα για να ενεργοποιήσετε σελίδα σύνδεσης ειδικά για την ομάδα σας.", + "This is the screen that workspace members will first see when they sign in.": "Αυτή είναι η οθόνη που βλέπουν πρώτα τα μέλη του χώρου εργασίας όταν συνδέονται.", + "Separate editing": "Ξεχωριστή επεξεργασία", + "When enabled, documents have a separate editing mode by default instead of being always editable. This setting can be overridden by user preferences.": "Όταν είναι ενεργό, τα έγγραφα έχουν από προεπιλογή ξεχωριστή λειτουργία επεξεργασίας αντί να είναι πάντα επεξεργάσιμα. Η ρύθμιση μπορεί να παρακαμφθεί από τις προτιμήσεις του χρήστη.", + "Danger": "Επικίνδυνη ζώνη", + "You can delete this entire workspace including collections, documents, and users.": "Μπορείτε να διαγράψετε ολόκληρο τον χώρο εργασίας, μαζί με τις συλλογές, τα έγγραφα και τους χρήστες.", + "Allow supported providers to be inserted as interactive embeds in documents.": "Να επιτρέπεται η εισαγωγή υποστηριζόμενων παρόχων ως διαδραστικές ενσωματώσεις στα έγγραφα.", + "Providers": "Πάροχοι", + "Enabled providers will appear in the editor slash menu and embed automatically when a compatible link is pasted. Existing embeds in documents will continue to display regardless of these settings.": "Οι ενεργοί πάροχοι θα εμφανίζονται στο μενού «/» του επεξεργαστή και θα ενσωματώνονται αυτόματα όταν επικολλάται συμβατός σύνδεσμος. Οι υπάρχουσες ενσωματώσεις στα έγγραφα θα συνεχίσουν να εμφανίζονται ανεξάρτητα από αυτές τις ρυθμίσεις.", + "All providers": "Όλοι οι πάροχοι", + "Export data": "Εξαγωγή δεδομένων", + "A full export might take some time. Consider exporting a single document or collection. You may leave this page once the export has started – if you have notifications enabled, we will email a link to {{ userEmail }} when it’s complete.": "Η πλήρης εξαγωγή μπορεί να διαρκέσει αρκετή ώρα. Σκεφτείτε να εξαγάγετε ένα μόνο έγγραφο ή συλλογή. Μπορείτε να φύγετε από αυτή τη σελίδα μόλις ξεκινήσει η εξαγωγή – αν έχετε ενεργοποιήσει τις ειδοποιήσεις, θα στείλουμε με email έναν σύνδεσμο στο {{ userEmail }} όταν ολοκληρωθεί.", + "Recent exports": "Πρόσφατες εξαγωγές", + "Could not load group members": "Δεν ήταν δυνατή η φόρτωση των μελών της ομάδας", + "Synced to {{ provider }}": "Συγχρονισμένη με {{ provider }}", + "No description": "Χωρίς περιγραφή", + "Create a group": "Δημιουργία ομάδας", + "Could not load groups": "Δεν ήταν δυνατή η φόρτωση των ομάδων", + "New group": "Νέα ομάδα", + "Groups can be used to organize and manage the people on your team.": "Οι ομάδες χρησιμοποιούνται για την οργάνωση και διαχείριση των ατόμων του οργανισμού σας.", + "No groups have been created yet": "Δεν έχουν δημιουργηθεί ακόμη ομάδες", + "Import a zip file of Markdown documents (exported from version 0.67.0 or earlier)": "Εισαγωγή αρχείου zip με έγγραφα Markdown (εξαγωγή από την έκδοση 0.67.0 ή παλαιότερη)", + "Import data": "Εισαγωγή δεδομένων", + "Import a zip file of Markdown documents in the Open Knowledge Format": "Εισαγωγή αρχείου zip με έγγραφα Markdown σε Open Knowledge Format", + "Import a JSON data file exported from another {{ appName }} instance": "Εισαγωγή αρχείου δεδομένων JSON που εξήχθη από άλλη εγκατάσταση {{ appName }}", + "Import pages from a Confluence instance": "Εισαγωγή σελίδων από εγκατάσταση Confluence", + "Enterprise": "Εταιρικό", + "Quickly transfer your existing documents, pages, and files from other tools and services into {{appName}}. You can also drag and drop any HTML, Markdown, and text documents directly into Collections in the app.": "Μεταφέρετε γρήγορα τα υπάρχοντα έγγραφα, σελίδες και αρχεία σας από άλλα εργαλεία και υπηρεσίες στο {{appName}}. Μπορείτε επίσης να σύρετε και να αφήσετε έγγραφα HTML, Markdown και κειμένου απευθείας σε Συλλογές μέσα στην εφαρμογή.", + "Recent imports": "Πρόσφατες εισαγωγές", + "Configure a variety of integrations with third-party services.": "Ρυθμίστε διάφορες ενσωματώσεις με εξωτερικές υπηρεσίες.", + "Receive a notification whenever a new document is published": "Λάβετε ειδοποίηση κάθε φορά που δημοσιεύεται νέο έγγραφο", + "Document updated": "Το έγγραφο ενημερώθηκε", + "Receive a notification when a document you are subscribed to is edited": "Λάβετε ειδοποίηση όταν επεξεργάζεται ένα έγγραφο στο οποίο έχετε εγγραφεί", + "Comment posted": "Δημοσιεύτηκε σχόλιο", + "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": "Λάβετε ειδοποίηση όταν κάποιος σας αναφέρει σε έγγραφο ή σχόλιο", + "Group mentions": "Αναφορές σε ομάδες", + "Receive a notification when someone mentions a group you are a member of in a document or comment": "Λάβετε ειδοποίηση όταν κάποιος αναφέρει μια ομάδα στην οποία ανήκετε σε έγγραφο ή σχόλιο", + "Receive a notification when a comment thread you were involved in is resolved": "Λάβετε ειδοποίηση όταν επιλύεται μια συζήτηση σχολίων στην οποία συμμετείχατε", + "Reaction added": "Προστέθηκε αντίδραση", + "Receive a notification when someone reacts to your comment": "Λάβετε ειδοποίηση όταν κάποιος αντιδρά στο σχόλιό σας", + "Collection created": "Δημιουργήθηκε συλλογή", + "Receive a notification whenever a new collection is created": "Λάβετε ειδοποίηση κάθε φορά που δημιουργείται νέα συλλογή", + "Invite accepted": "Η πρόσκληση έγινε αποδεκτή", + "Receive a notification when someone you invited creates an account": "Λάβετε ειδοποίηση όταν κάποιος που προσκαλέσατε δημιουργεί λογαριασμό", + "Invited to document": "Πρόσκληση σε έγγραφο", + "Receive a notification when a document is shared with you": "Λάβετε ειδοποίηση όταν ένα έγγραφο κοινοποιείται σε εσάς", + "Invited to collection": "Πρόσκληση σε συλλογή", + "Receive a notification when you are given access to a collection": "Λάβετε ειδοποίηση όταν σας δίνεται πρόσβαση σε συλλογή", + "Group membership": "Συμμετοχή σε ομάδες", + "Receive a notification when you are added to or removed from a group": "Λάβετε ειδοποίηση όταν προστίθεστε ή αφαιρείστε από ομάδα", + "Export completed": "Η εξαγωγή ολοκληρώθηκε", + "Receive a notification when an export you requested has been completed": "Λάβετε ειδοποίηση όταν ολοκληρωθεί μια εξαγωγή που ζητήσατε", + "Document access requested": "Αίτημα πρόσβασης σε έγγραφο", + "Receive a notification when a user requests access to a document you manage": "Λάβετε ειδοποίηση όταν ένας χρήστης ζητά πρόσβαση σε έγγραφο που διαχειρίζεστε", + "Getting started": "Πρώτα βήματα", + "Tips on getting started with features and functionality": "Συμβουλές για να ξεκινήσετε με τις λειτουργίες και τις δυνατότητες", + "New features": "Νέες λειτουργίες", + "Receive an email when new features of note are added": "Λάβετε email όταν προστίθενται σημαντικές νέες λειτουργίες", + "Notifications saved": "Οι ειδοποιήσεις αποθηκεύτηκαν", + "Unsubscription successful. Your notification settings were updated": "Η κατάργηση εγγραφής ολοκληρώθηκε. Οι ρυθμίσεις ειδοποιήσεών σας ενημερώθηκαν", + "Manage when and where you receive email notifications.": "Διαχειριστείτε πότε και πού λαμβάνετε ειδοποιήσεις email.", + "All notifications": "Όλες οι ειδοποιήσεις", + "Unread count": "Αριθμός μη αναγνωσμένων", + "Unread indicator": "Ένδειξη μη αναγνωσμένων", + "Delete account": "Διαγραφή λογαριασμού", + "Manage settings that affect your personal experience.": "Διαχειριστείτε τις ρυθμίσεις που επηρεάζουν την προσωπική σας εμπειρία.", + "Language": "Γλώσσα", + "Choose the interface language. Community translations are accepted through our <2>translation portal.": "Επιλέξτε τη γλώσσα της διεπαφής. Οι μεταφράσεις της κοινότητας γίνονται δεκτές μέσω της <2>πύλης μετάφρασης.", + "Choose your preferred interface color scheme.": "Επιλέξτε τον χρωματικό συνδυασμό της διεπαφής που προτιμάτε.", + "Use pointer cursor": "Χρήση δείκτη χεριού", + "Show a hand cursor when hovering over interactive elements.": "Εμφάνιση δείκτη χεριού όταν ο δείκτης βρίσκεται πάνω από διαδραστικά στοιχεία.", + "Show line numbers": "Εμφάνιση αριθμών γραμμών", + "Show line numbers on code blocks in documents.": "Εμφάνιση αριθμών γραμμών στα μπλοκ κώδικα των εγγράφων.", + "Show comment marker": "Εμφάνιση δείκτη σχολίων", + "Display a marker beside lines in the editor that contain comments.": "Εμφάνιση δείκτη δίπλα στις γραμμές του επεξεργαστή που περιέχουν σχόλια.", + "Display live word, character, and paragraph counts while editing.": "Εμφάνιση ζωντανής καταμέτρησης λέξεων, χαρακτήρων και παραγράφων κατά την επεξεργασία.", + "When enabled, documents have a separate editing mode. When disabled, documents are always editable when you have permission.": "Όταν είναι ενεργό, τα έγγραφα έχουν ξεχωριστή λειτουργία επεξεργασίας. Όταν είναι ανενεργό, τα έγγραφα είναι πάντα επεξεργάσιμα αν έχετε δικαίωμα.", + "Remember previous location": "Απομνημόνευση προηγούμενης θέσης", + "Automatically return to the document you were last viewing when the app is reopened.": "Αυτόματη επιστροφή στο έγγραφο που βλέπατε τελευταία όταν ανοίγει ξανά η εφαρμογή.", + "Smart text replacements": "Έξυπνες αντικαταστάσεις κειμένου", + "Auto-format text by replacing shortcuts with symbols, dashes, smart quotes, and other typographical elements.": "Αυτόματη μορφοποίηση κειμένου με αντικατάσταση συντομεύσεων από σύμβολα, παύλες, εισαγωγικά και άλλα τυπογραφικά στοιχεία.", + "Notification badge": "Σήμα ειδοποιήσεων", + "Choose how unread notifications are indicated on the app icon.": "Επιλέξτε πώς υποδεικνύονται οι μη αναγνωσμένες ειδοποιήσεις στο εικονίδιο της εφαρμογής.", + "You may delete your account at any time. Note that this cannot be undone.": "Μπορείτε να διαγράψετε τον λογαριασμό σας οποτεδήποτε. Σημειώστε ότι η ενέργεια δεν αναιρείται.", + "Profile saved": "Το προφίλ αποθηκεύτηκε", + "Manage how you appear to other members of the workspace.": "Διαχειριστείτε πώς εμφανίζεστε στα άλλα μέλη του χώρου εργασίας.", + "Photo": "Φωτογραφία", + "Choose a photo or image to represent yourself.": "Επιλέξτε φωτογραφία ή εικόνα που σας αντιπροσωπεύει.", + "This could be your real name, or a nickname — however you’d like people to refer to you.": "Μπορεί να είναι το πραγματικό σας όνομα ή ένα ψευδώνυμο — όπως θέλετε να σας αποκαλούν.", + "Members and guests": "Μέλη και επισκέπτες", + "No one": "Κανείς", + "Are you sure you want to require invites?": "Είστε βέβαιοι ότι θέλετε να απαιτούνται προσκλήσεις;", + "New users will first need to be invited to create an account. Default role and Allowed domains will no longer apply.": "Οι νέοι χρήστες θα πρέπει πρώτα να προσκληθούν για να δημιουργήσουν λογαριασμό. Ο Προεπιλεγμένος ρόλος και οι Επιτρεπόμενοι τομείς δεν θα ισχύουν πλέον.", + "Settings that impact the access, security, and content of your workspace.": "Ρυθμίσεις που επηρεάζουν την πρόσβαση, την ασφάλεια και το περιεχόμενο του χώρου εργασίας σας.", + "Invites": "Προσκλήσεις", + "Allow users to send invites": "Να επιτρέπεται στους χρήστες η αποστολή προσκλήσεων", + "Allow editors to invite other people to the workspace": "Να επιτρέπεται στους συντάκτες να προσκαλούν άλλα άτομα στον χώρο εργασίας", + "Require invites": "Απαίτηση πρόσκλησης", + "Require members to be invited to the workspace before they can create an account using SSO.": "Τα μέλη πρέπει να έχουν προσκληθεί στον χώρο εργασίας πριν δημιουργήσουν λογαριασμό μέσω SSO.", + "Default role": "Προεπιλεγμένος ρόλος", + "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "Ο προεπιλεγμένος ρόλος χρήστη για νέους λογαριασμούς. Η αλλαγή αυτής της ρύθμισης δεν επηρεάζει τους υπάρχοντες λογαριασμούς.", + "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Όταν είναι ενεργό, τα έγγραφα μπορούν να κοινοποιούνται δημόσια στο διαδίκτυο από οποιοδήποτε μέλος του χώρου εργασίας", + "Default link expiration": "Προεπιλεγμένη λήξη συνδέσμου", + "New public links will expire after this period. Existing links are not affected.": "Οι νέοι δημόσιοι σύνδεσμοι θα λήγουν μετά από αυτή την περίοδο. Οι υπάρχοντες σύνδεσμοι δεν επηρεάζονται.", + "Viewer document exports": "Εξαγωγή εγγράφων από αναγνώστες", + "When enabled, viewers can see download options for documents": "Όταν είναι ενεργό, οι αναγνώστες βλέπουν επιλογές λήψης για τα έγγραφα", + "Users can delete account": "Οι χρήστες μπορούν να διαγράψουν τον λογαριασμό τους", + "When enabled, users can delete their own account from the workspace": "Όταν είναι ενεργό, οι χρήστες μπορούν να διαγράψουν τον λογαριασμό τους από τον χώρο εργασίας", + "Email address visibility": "Ορατότητα διευθύνσεων email", + "Controls who can see user email addresses in the workspace": "Ορίζει ποιοι μπορούν να βλέπουν τις διευθύνσεις email των χρηστών στον χώρο εργασίας", + "Controls who can add comments to documents": "Ορίζει ποιοι μπορούν να προσθέτουν σχόλια στα έγγραφα", + "Personal documents": "Προσωπικά έγγραφα", + "Allow editors to create personal documents that are only visible to themselves and the people they share them with": "Να επιτρέπεται στους συντάκτες να δημιουργούν προσωπικά έγγραφα, ορατά μόνο σε αυτούς και σε όσους τα κοινοποιούν", + "Collection creation": "Δημιουργία συλλογών", + "Allow editors to create new collections within the workspace": "Να επιτρέπεται στους συντάκτες να δημιουργούν νέες συλλογές στον χώρο εργασίας", + "Workspace creation": "Δημιουργία χώρων εργασίας", + "Allow editors to create new workspaces": "Να επιτρέπεται στους συντάκτες να δημιουργούν νέους χώρους εργασίας", + "Could not load shares": "Δεν ήταν δυνατή η φόρτωση των κοινοποιήσεων", + "Sharing is currently disabled.": "Η κοινοποίηση είναι προς το παρόν απενεργοποιημένη.", + "You can globally enable and disable public document sharing in the security settings.": "Μπορείτε να ενεργοποιήσετε ή να απενεργοποιήσετε συνολικά τη δημόσια κοινοποίηση εγγράφων στις ρυθμίσεις ασφαλείας.", + "Documents that have been shared are listed below. Anyone with the public link can access a read-only version of the document until the link has been revoked.": "Τα έγγραφα που έχουν κοινοποιηθεί παρατίθενται παρακάτω. Οποιοσδήποτε έχει τον δημόσιο σύνδεσμο μπορεί να αποκτήσει πρόσβαση σε μια έκδοση του εγγράφου μόνο για ανάγνωση, έως ότου ανακληθεί ο σύνδεσμος.", + "Couldn’t create the template. Try again?": "Δεν ήταν δυνατή η δημιουργία του προτύπου. Να προσπαθήσουμε ξανά;", + "Could not load templates": "Δεν ήταν δυνατή η φόρτωση των προτύπων", + "Templates help your team create consistent and accurate documentation.": "Τα πρότυπα βοηθούν την ομάδα σας να δημιουργεί συνεπή και ακριβή τεκμηρίωση.", + "No templates have been created yet": "Δεν έχουν δημιουργηθεί ακόμη πρότυπα", + "Could not load users": "Δεν ήταν δυνατή η φόρτωση των χρηστών", + "Everyone who has signed in to {{appName}} is listed here. It’s possible that there are other users who have access through {{signinMethods}} but haven’t signed in yet.": "Όλοι όσοι έχουν συνδεθεί στο {{appName}} παρατίθενται εδώ. Είναι πιθανό να υπάρχουν άλλοι χρήστες που έχουν πρόσβαση μέσω {{signinMethods}}, αλλά δεν έχουν συνδεθεί ακόμη.", + "{{ teamName }} is using {{ appName }} to share documents. Please log in to continue.": "Η ομάδα {{ teamName }} χρησιμοποιεί το {{ appName }} για να κοινοποιεί έγγραφα. Συνδεθείτε για να συνεχίσετε.", + "A confirmation code has been sent to your email address. Please enter the code below to permanently destroy this workspace.": "Ένας κωδικός επιβεβαίωσης έχει σταλεί στη διεύθυνση email σας. Εισαγάγετε τον παρακάτω κωδικό για να διαγράψετε οριστικά αυτόν τον χώρο εργασίας.", + "Deleting the <1>{{workspaceName}} workspace will destroy all collections, documents, users, and associated data. You will be immediately logged out of {{appName}}.": "Η διαγραφή του χώρου εργασίας <1>{{workspaceName}} θα καταστρέψει όλες τις συλλογές, τα έγγραφα, τους χρήστες και τα σχετικά δεδομένα. Θα αποσυνδεθείτε αμέσως από το {{appName}}.", + "Please note that workspaces are completely separate. They can have a different domain, settings, users, and billing.": "Σημειώστε ότι οι χώροι εργασίας είναι εντελώς ανεξάρτητοι. Μπορούν να έχουν διαφορετικό τομέα, ρυθμίσεις, χρήστες και χρέωση.", + "You are creating a new workspace using your current account — {{email}}": "Δημιουργείτε νέο χώρο εργασίας με τον τρέχοντα λογαριασμό σας — {{email}}", + "To create a workspace under another email, please sign up from the homepage": "Για να δημιουργήσετε έναν χώρο εργασίας με άλλη διεύθυνση email, εγγραφείτε από την αρχική σελίδα", + "Trash emptied": "Ο κάδος άδειασε", + "Are you sure you want to permanently delete all the documents in Trash? This action is immediate and cannot be undone.": "Είστε βέβαιοι ότι θέλετε να διαγράψετε οριστικά όλα τα έγγραφα του κάδου; Η ενέργεια είναι άμεση και δεν αναιρείται.", + "You haven’t deleted any documents.": "Δεν έχετε διαγράψει κανένα έγγραφο.", + "This user has not deleted any documents.": "Αυτός ο χρήστης δεν έχει διαγράψει κανένα έγγραφο.", + "Trash is empty at the moment.": "Ο κάδος είναι κενός αυτή τη στιγμή.", + "Recently deleted": "Πρόσφατα διαγραμμένα", + "Deleted by anyone": "Διαγράφηκαν από οποιονδήποτε", + "A confirmation code has been sent to your email address. Please enter the code below to permanently destroy your account.": "Ένας κωδικός επιβεβαίωσης έχει σταλεί στη διεύθυνση email σας. Εισαγάγετε τον παρακάτω κωδικό για να διαγράψετε οριστικά τον λογαριασμό σας.", + "Are you sure? Deleting your account will destroy identifying data associated with your user and cannot be undone. You will be immediately logged out of {{appName}} and all your API tokens will be revoked.": "Είστε βέβαιοι; Η διαγραφή του λογαριασμού σας θα καταστρέψει τα δεδομένα ταυτοποίησης του χρήστη σας και δεν αναιρείται. Θα αποσυνδεθείτε αμέσως από το {{appName}} και όλα τα tokens API σας θα ανακληθούν.", + "Delete my account": "Διαγραφή του λογαριασμού μου", + "Export started": "Η εξαγωγή ξεκίνησε", + "A link to your file will be sent through email soon": "Σύντομα θα σας σταλεί με email σύνδεσμος προς το αρχείο σας", + "Preparing your download": "Προετοιμασία της λήψης σας", + "Today": "Σήμερα", + "Yesterday": "Χθες", + "Last week": "Την προηγούμενη εβδομάδα", + "This month": "Αυτόν τον μήνα", + "Last month": "Τον προηγούμενο μήνα", + "This year": "Φέτος", + "Expired yesterday": "Έληξε χθες", + "Expired {{ date }}": "Έληξε {{ date }}", + "Expires today": "Λήγει σήμερα", + "Expires tomorrow": "Λήγει αύριο", + "Expires {{ date }}": "Λήγει {{ date }}", + "Expires in {{ count }} day": "Λήγει σε {{ count }} ημέρα", + "Expires in {{ count }} day_plural": "Λήγει σε {{ count }} ημέρες", + "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Ρυθμίστε προσαρμοσμένο URL εγκατάστασης Diagrams.net για να χρησιμοποιείτε τη δική σας εγκατάσταση για την ενσωμάτωση διαγραμμάτων στα έγγραφά σας.", + "Installation URL": "URL εγκατάστασης", + "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "Το URL της εγκατάστασης Diagrams.net. Αφήστε κενό για να χρησιμοποιηθεί το app.diagrams.net στο cloud", + "New attribute": "Νέο χαρακτηριστικό", + "Paper size": "Μέγεθος χαρτιού", + "Ask AI “{{ question }}”": "Ερώτηση στο AI «{{ question }}»", + "Are you sure you want to delete?": "Είστε βέβαιοι ότι θέλετε να το διαγράψετε;", + "Deleting this version of the document will permanently and irrevocably remove it from the history.": "Η διαγραφή αυτής της έκδοσης του εγγράφου θα την αφαιρέσει οριστικά και αμετάκλητα από το ιστορικό.", + "Format": "Μορφή", + "Add option": "Προσθήκη επιλογής", + "Choose a size for your exported document": "Επιλέξτε μέγεθος για το εξαγόμενο έγγραφο", + "Revision renamed": "Η έκδοση μετονομάστηκε", + "Failed to save revision": "Αποτυχία αποθήκευσης έκδοσης", + "Invite to document": "Πρόσκληση στο έγγραφο", + "Sorry, invalid embed link": "Λυπούμαστε, μη έγκυρος σύνδεσμος ενσωμάτωσης", + "Data Attributes": "Χαρακτηριστικά δεδομένων", + "Edit attribute": "Επεξεργασία χαρακτηριστικού", + "Property": "Ιδιότητα", + "Yes": "Ναι", + "No": "Όχι", + "Search or ask a question": "Αναζήτηση ή ερώτηση", + "Invited {{roleName}} will not receive access to any collections or documents unless explicitly shared.": "Οι προσκεκλημένοι με ρόλο {{roleName}} δεν θα αποκτήσουν πρόσβαση σε συλλογές ή έγγραφα, εκτός αν τους κοινοποιηθούν ρητά.", + "Can view only what is explicitly shared": "Μπορεί να βλέπει μόνο ό,τι του κοινοποιείται ρητά", + "SAML assertion was invalid or missing fields – please check your configuration": "Ο ισχυρισμός SAML δεν ήταν έγκυρος ή έλειπαν πεδία – ελέγξτε τη διαμόρφωσή σας", + "AI-generated answer based on related documents in your workspace": "Απάντηση που δημιουργήθηκε από AI βάσει σχετικών εγγράφων στον χώρο εργασίας σας", + "References": "Παραπομπές", + "Enable AI answers to get direct answers to searched questions.": "Ενεργοποιήστε τις απαντήσεις AI για να λαμβάνετε άμεσες απαντήσεις σε ερωτήσεις αναζήτησης.", + "Go to settings": "Μετάβαση στις ρυθμίσεις", + "Where do I find the file?": "Πού θα βρω το αρχείο;", + "In a Confluence space, navigate to Space Settings -> Manage space -> Export space and choose to export as HTML with the \"Normal Export\" option.": "Σε έναν χώρο Confluence, μεταβείτε στο Space Settings -> Manage space -> Export space και επιλέξτε εξαγωγή ως HTML με την επιλογή \"Normal Export\".", + "Drag and drop the zip file from Confluence’s HTML export option, or click to upload": "Σύρετε και αφήστε το αρχείο zip της εξαγωγής HTML του Confluence ή κάντε κλικ για μεταφόρτωση", + "Guests": "Επισκέπτες", + "New Attribute": "Νέο χαρακτηριστικό", + "Attributes allow you to define data to be stored with your documents. They can be used to store custom properties, metadata, or any other structured information that is common across documents.": "Τα χαρακτηριστικά σάς επιτρέπουν να ορίζετε δεδομένα που αποθηκεύονται μαζί με τα έγγραφά σας. Μπορούν να χρησιμοποιηθούν για προσαρμοσμένες ιδιότητες, μεταδεδομένα ή άλλες δομημένες πληροφορίες κοινές σε πολλά έγγραφα.", + "Custom domain": "Προσαρμοσμένος τομέας", + "Use AI to directly answer searched questions using content in your workspace.": "Χρήση AI για άμεσες απαντήσεις σε ερωτήσεις αναζήτησης με βάση το περιεχόμενο του χώρου εργασίας σας.", + "API access": "Πρόσβαση API", + "Allow members to create API keys for programmatic access": "Να επιτρέπεται στα μέλη η δημιουργία κλειδιών API για προγραμματιστική πρόσβαση", + "Public document embedding": "Ενσωμάτωση δημόσιων εγγράφων", + "When enabled, publicly shared documents can be embedded in third-party websites": "Όταν είναι ενεργό, τα δημόσια κοινόχρηστα έγγραφα μπορούν να ενσωματώνονται σε εξωτερικούς ιστότοπους", + "Include previews in emails": "Προεπισκόπηση στα email", + "When enabled, email notifications will include content previews": "Όταν είναι ενεργό, οι ειδοποιήσεις email θα περιλαμβάνουν προεπισκόπηση του περιεχομένου", + "Boolean": "Λογική τιμή", + "Number": "Αριθμός", + "Text": "Κείμενο", + "List": "Λίστα", + "Could not load events": "Δεν ήταν δυνατή η φόρτωση των συμβάντων", + "Audit Log": "Αρχείο ελέγχου", + "The audit log details the history of security-related and other events across your knowledge base.": "Το αρχείο καταγραφής ελέγχου περιγράφει λεπτομερώς το ιστορικό συμβάντων που σχετίζονται με την ασφάλεια και άλλων συμβάντων στη βάση γνώσεών σας.", + "IP address": "Διεύθυνση IP", + "Actor": "Χρήστης", + "Event": "Συμβάν", + "Timestamp": "Χρονική σήμανση", + "IP": "Διεύθυνση IP", + "All users": "Όλοι οι χρήστες", + "View and edit": "Προβολή και επεξεργασία", + "Sharing enabled": "Η κοινοποίηση ενεργοποιήθηκε", + "Date archived": "Ημερομηνία αρχειοθέτησης", + "Could not load collections": "Δεν ήταν δυνατή η φόρτωση των συλλογών", + "Manage the permissions and settings of all collections in the knowledge base. As a workspace admin, you can also administer private collections.": "Διαχειριστείτε τα δικαιώματα και τις ρυθμίσεις όλων των συλλογών στη βάση γνώσεων. Ως διαχειριστής χώρου εργασίας, μπορείτε επίσης να διαχειρίζεστε ιδιωτικές συλλογές.", + "Automatically index and search document content from {{appName}} inside <4>Glean in real time.": "Αυτόματη ευρετηρίαση και αναζήτηση περιεχομένου εγγράφων από το {{appName}} στο <4>Glean σε πραγματικό χρόνο.", + "API Endpoint": "Τελικό σημείο API", + "API Secret": "Μυστικό API", + "Datasource": "Πηγή δεδομένων", + "Details of the current {{appName}} license. To arrange contract renewal as expiry or seat limits approach, or to increase licensed seats, please contact your account manager or email <4>priority@getoutline.com.": "Λεπτομέρειες της τρέχουσας άδειας χρήσης του {{appName}}. Για να κανονίσετε την ανανέωση του συμβολαίου καθώς πλησιάζουν η λήξη ή τα όρια θέσεων ή για να αυξήσετε τις αδειοδοτημένες θέσεις, επικοινωνήστε με τον διαχειριστή λογαριασμού σας ή στείλτε email στο <4>priority@getoutline.com.", + "Sorry, an answer could not be found in the collection. Try widening your search.": "Λυπούμαστε, δεν βρέθηκε απάντηση στη συλλογή. Δοκιμάστε να διευρύνετε την αναζήτησή σας.", + "Sorry, an answer could not be found in the workspace. Try widening your search.": "Λυπούμαστε, δεν βρέθηκε απάντηση στον χώρο εργασίας. Δοκιμάστε να διευρύνετε την αναζήτησή σας.", + "Looking for answers": "Αναζήτηση απαντήσεων", + "Answer to “{{ query }}”": "Απάντηση στο «{{ query }}»", + "Whoops, you need to accept the permissions in Figma to connect {{appName}} to your workspace. Try again?": "Ωχ, πρέπει να αποδεχτείτε τα δικαιώματα στο Figma για να συνδέσετε το {{appName}} με τον χώρο εργασίας σας. Δοκιμάστε ξανά;", + "Something went wrong while authenticating your request. Please try logging in again.": "Κάτι πήγε στραβά κατά την ταυτοποίηση του αιτήματός σας. Δοκιμάστε να συνδεθείτε ξανά.", + "Something went wrong while processing your request. Please try again.": "Κάτι πήγε στραβά κατά την επεξεργασία του αιτήματός σας. Δοκιμάστε ξανά.", + "Link your {{appName}} account to Figma to enable previews of design files you have access to, directly within documents.": "Συνδέστε τον λογαριασμό σας {{appName}} με το Figma για να βλέπετε προεπισκοπήσεις των αρχείων σχεδίασης στα οποία έχετε πρόσβαση, απευθείας μέσα στα έγγραφα.", + "Enabled on": "Ενεργοποιήθηκε στις", + "Disconnecting will prevent previewing Figma design files from this account in documents. Are you sure?": "Η αποσύνδεση θα σταματήσει την προεπισκόπηση αρχείων σχεδίασης Figma από αυτόν τον λογαριασμό στα έγγραφα. Είστε βέβαιοι;", + "The Figma integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "Η ενσωμάτωση Figma είναι προς το παρόν απενεργοποιημένη. Ορίστε τις σχετικές μεταβλητές περιβάλλοντος και επανεκκινήστε τον διακομιστή για να την ενεργοποιήσετε.", + "Connect Gitea": "Σύνδεση Gitea", + "Create an OAuth2 application in the settings of your Gitea or Forgejo instance with the redirect URI below, then enter its details.": "Δημιουργήστε μια εφαρμογή OAuth2 στις ρυθμίσεις της παρουσίας Gitea ή Forgejo με το παρακάτω URI ανακατεύθυνσης και έπειτα εισαγάγετε τα στοιχεία της.", + "Redirect URI": "URI ανακατεύθυνσης", + "Gitea URL": "URL Gitea", + "URL must start with https": "Το URL πρέπει να ξεκινά με https", + "Client ID": "Αναγνωριστικό προγράμματος-πελάτη", + "OAuth application ID": "ID εφαρμογής OAuth", + "Client secret": "Μυστικό προγράμματος-πελάτη", + "OAuth application secret": "Μυστικό εφαρμογής OAuth", + "Connecting": "Σύνδεση", + "You need to accept the permissions in Gitea to connect {{appName}} to your workspace. Try again?": "Πρέπει να αποδεχτείτε τα δικαιώματα στο Gitea για να συνδέσετε το {{appName}} με τον χώρο εργασίας σας. Δοκιμή ξανά;", + "Something went wrong while authenticating your request. Please try again.": "Κάτι πήγε στραβά κατά την ταυτοποίηση του αιτήματός σας. Δοκιμάστε ξανά.", + "Enable previews of Gitea issues, pull requests, and repositories in documents by connecting a Gitea or Forgejo instance to {{appName}}.": "Ενεργοποιήστε προεπισκοπήσεις ζητημάτων, αιτημάτων έλξης και αποθετηρίων Gitea σε έγγραφα συνδέοντας μια παρουσία Gitea ή Forgejo με το {{appName}}.", + "Enabled by {{integrationCreatedBy}}": "Ενεργοποιήθηκε από τον/την {{integrationCreatedBy}}", + "Disconnecting will prevent previewing links from Gitea in documents. Are you sure?": "Η αποσύνδεση θα αποτρέψει την προεπισκόπηση συνδέσμων από το Gitea σε έγγραφα. Είστε βέβαιοι;", + "Whoops, you need to accept the permissions in GitHub to connect {{appName}} to your workspace. Try again?": "Ωχ, πρέπει να αποδεχτείτε τα δικαιώματα στο GitHub για να συνδέσετε το {{appName}} με τον χώρο εργασίας σας. Δοκιμάστε ξανά;", + "Only an owner of the GitHub account or organization can connect it to {{appName}}.": "Μόνο ο ιδιοκτήτης του λογαριασμού ή του οργανισμού GitHub μπορεί να τον συνδέσει με το {{appName}}.", + "The GitHub app needs new permissions for the organization. Ask an owner of the organization to accept them in GitHub, then try again.": "Η εφαρμογή GitHub χρειάζεται νέα δικαιώματα για τον οργανισμό. Ζητήστε από έναν ιδιοκτήτη του οργανισμού να τα αποδεχτεί στο GitHub και δοκιμάστε ξανά.", + "The GitHub app needs the “Members” read permission for the organization. Add this permission to your GitHub app, then ask an owner of the organization to accept it in GitHub and try again.": "Η εφαρμογή GitHub χρειάζεται το δικαίωμα ανάγνωσης “Μέλη” για τον οργανισμό. Προσθέστε αυτό το δικαίωμα στην εφαρμογή GitHub σας, έπειτα ζητήστε από έναν ιδιοκτήτη του οργανισμού να το αποδεχτεί στο GitHub και δοκιμάστε ξανά.", + "The owner of the GitHub account has been requested to install the {{githubAppName}} GitHub app. Once approved, previews will be shown for the respective links.": "Ζητήθηκε από τον κάτοχο του λογαριασμού GitHub να εγκαταστήσει την εφαρμογή GitHub {{githubAppName}}. Μόλις εγκριθεί, θα εμφανίζονται προεπισκοπήσεις για τους αντίστοιχους συνδέσμους.", + "Enable previews of GitHub issues and pull requests in documents by connecting a GitHub organization or specific repositories to {{appName}}.": "Ενεργοποιήστε προεπισκοπήσεις των issues και pull requests του GitHub στα έγγραφα, συνδέοντας έναν οργανισμό GitHub ή συγκεκριμένα αποθετήρια με το {{appName}}.", + "Disconnecting will prevent previewing GitHub links from this organization in documents. Are you sure?": "Η αποσύνδεση θα σταματήσει την προεπισκόπηση συνδέσμων GitHub από αυτόν τον οργανισμό στα έγγραφα. Είστε βέβαιοι;", + "The GitHub integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "Η ενσωμάτωση GitHub είναι προς το παρόν απενεργοποιημένη. Ορίστε τις σχετικές μεταβλητές περιβάλλοντος και επανεκκινήστε τον διακομιστή για να την ενεργοποιήσετε.", + "Connect GitLab": "Σύνδεση GitLab", + "Enter the details for your GitLab instance.": "Εισαγάγετε τα στοιχεία της εγκατάστασης GitLab.", + "GitLab URL": "URL GitLab", + "Choose which GitLab instance to connect to.": "Επιλέξτε σε ποια εγκατάσταση GitLab θα συνδεθείτε.", + "GitLab Cloud": "Υπηρεσία GitLab Cloud", + "Connect to your account on gitlab.com": "Σύνδεση με τον λογαριασμό σας στο gitlab.com", + "GitLab Cloud credentials are not configured": "Τα διαπιστευτήρια του GitLab Cloud δεν έχουν ρυθμιστεί", + "Self-managed": "Ιδιόκτητη εγκατάσταση", + "Connect to a custom GitLab installation": "Σύνδεση με προσαρμοσμένη εγκατάσταση GitLab", + "You need to accept the permissions in GitLab to connect {{appName}} to your workspace. Try again?": "Πρέπει να αποδεχτείτε τα δικαιώματα στο GitLab για να συνδέσετε το {{appName}} με τον χώρο εργασίας σας. Δοκιμάστε ξανά;", + "The GitLab account is already connected to this workspace.": "Ο λογαριασμός GitLab είναι ήδη συνδεδεμένος με αυτόν τον χώρο εργασίας.", + "The owner of the GitLab account has been requested to install the application. Once approved, the connection will be completed.": "Ζητήθηκε από τον κάτοχο του λογαριασμού GitLab να εγκαταστήσει την εφαρμογή. Μόλις εγκριθεί, η σύνδεση θα ολοκληρωθεί.", + "Enable previews of GitLab issues, merge requests, and projects in documents by connecting a GitLab group or specific projects to {{appName}}.": "Ενεργοποιήστε προεπισκοπήσεις ζητημάτων, αιτημάτων συγχώνευσης και έργων GitLab σε έγγραφα συνδέοντας μια ομάδα GitLab ή συγκεκριμένα έργα με το {{appName}}.", + "Disconnecting will prevent previewing links from GitLab in documents. Are you sure?": "Η αποσύνδεση θα σταματήσει την προεπισκόπηση συνδέσμων GitLab στα έγγραφα. Είστε βέβαιοι;", + "Google Analytics": "Υπηρεσία Google Analytics", + "Add a Google Analytics 4 measurement ID to send document views and analytics from the workspace to your own Google Analytics account.": "Προσθέστε ένα measurement ID του Google Analytics 4 για να στέλνετε τις προβολές εγγράφων και τα analytics του χώρου εργασίας στον δικό σας λογαριασμό Google Analytics.", + "Measurement ID": "Αναγνωριστικό μέτρησης", + "Create a “Web” stream in your Google Analytics admin dashboard and copy the measurement ID from the generated code snippet to install.": "Δημιουργήστε μια ροή «Web» στον πίνακα διαχείρισης του Google Analytics και αντιγράψτε το measurement ID από το παραγόμενο απόσπασμα κώδικα.", + "Whoops, you need to accept the permissions in Linear to connect {{appName}} to your workspace. Try again?": "Ωχ, πρέπει να αποδεχτείτε τα δικαιώματα στο Linear για να συνδέσετε το {{appName}} με τον χώρο εργασίας σας. Δοκιμάστε ξανά;", + "Enable previews of Linear issues in documents by connecting a Linear workspace to {{appName}}.": "Ενεργοποιήστε προεπισκοπήσεις των issues του Linear στα έγγραφα, συνδέοντας έναν χώρο εργασίας Linear με το {{appName}}.", + "Disconnecting will prevent previewing Linear links from this workspace in documents. Are you sure?": "Η αποσύνδεση θα σταματήσει την προεπισκόπηση συνδέσμων Linear από αυτόν τον χώρο εργασίας στα έγγραφα. Είστε βέβαιοι;", + "The Linear integration is currently disabled. Please set the associated environment variables and restart the server to enable the integration.": "Η ενσωμάτωση Linear είναι προς το παρόν απενεργοποιημένη. Ορίστε τις σχετικές μεταβλητές περιβάλλοντος και επανεκκινήστε τον διακομιστή για να την ενεργοποιήσετε.", + "Configure a Matomo installation to send views and analytics from the workspace to your own Matomo instance.": "Ρυθμίστε μια εγκατάσταση Matomo για να στέλνετε τις προβολές και τα analytics του χώρου εργασίας στη δική σας εγκατάσταση Matomo.", + "Instance URL": "URL εγκατάστασης", + "The URL of your Matomo instance. If you are using Matomo Cloud, it will end in matomo.cloud/": "Το URL της παρουσίας Matomo σας. Αν χρησιμοποιείτε το Matomo Cloud, θα τελειώνει σε matomo.cloud/", + "Site ID": "Αναγνωριστικό ιστότοπου", + "An ID that uniquely identifies the website in your Matomo instance.": "Ένα ID που προσδιορίζει μοναδικά τον ιστότοπο στην εγκατάσταση Matomo.", + "Whoops, you need to accept the permissions in Notion to connect {{ appName }} to your workspace. Try again?": "Ωχ, πρέπει να αποδεχτείτε τα δικαιώματα στο Notion για να συνδέσετε το {{ appName }} με τον χώρο εργασίας σας. Δοκιμάστε ξανά;", + "Import pages from Notion": "Εισαγωγή σελίδων από το Notion", + "Passkey options": "Επιλογές passkey", + "Registered {{ timeAgo }}": "Καταχωρίστηκε {{ timeAgo }}", + "Passkey updated": "Το passkey ενημερώθηκε", + "Failed to update passkey. Please try again.": "Αποτυχία ενημέρωσης του passkey. Δοκιμάστε ξανά.", + "Give your passkey a memorable name to easily identify it.": "Δώστε στο passkey ένα όνομα που θα θυμάστε για να το αναγνωρίζετε εύκολα.", + "Enter passkey name": "Εισαγάγετε όνομα passkey", + "Failed to load passkeys": "Αποτυχία φόρτωσης των passkeys", + "Passkey added successfully": "Το passkey προστέθηκε", + "Failed to register passkey. Please try again.": "Αποτυχία καταχώρισης του passkey. Δοκιμάστε ξανά.", + "Rename passkey": "Μετονομασία passkey", + "Delete passkey": "Διαγραφή passkey", + "Passkey deleted successfully": "Το passkey διαγράφηκε", + "Failed to delete passkey. Please try again.": "Αποτυχία διαγραφής του passkey. Δοκιμάστε ξανά.", + "Are you sure you want to delete this passkey? You will no longer be able to use it to sign in.": "Είστε βέβαιοι ότι θέλετε να διαγράψετε αυτό το passkey; Δεν θα μπορείτε πλέον να το χρησιμοποιείτε για σύνδεση.", + "Registering": "Καταχώριση", + "Add passkey": "Προσθήκη passkey", + "Passkeys allow you to sign in safely without a password using your device’s biometric authentication (Face ID, Touch ID, Windows Hello) or security key.": "Τα passkeys σάς επιτρέπουν να συνδέεστε με ασφάλεια χωρίς κωδικό πρόσβασης, χρησιμοποιώντας τη βιομετρική ταυτοποίηση της συσκευής σας (Face ID, Touch ID, Windows Hello) ή κλειδί ασφαλείας.", + "Passkey sign-in is currently disabled for this workspace.": "Η σύνδεση με passkey είναι προς το παρόν απενεργοποιημένη σε αυτόν τον χώρο εργασίας.", + "Enable for all users in Settings → Authentication.": "Ενεργοποιήστε τη για όλους τους χρήστες στις Ρυθμίσεις → Ταυτοποίηση.", + "Contact a workspace admin to enable it.": "Επικοινωνήστε με έναν διαχειριστή του χώρου εργασίας για να την ενεργοποιήσει.", + "Passkeys cannot be added in the desktop app on this device. Use a web browser to add a passkey.": "Δεν μπορούν να προστεθούν passkeys στην εφαρμογή υπολογιστή σε αυτή τη συσκευή. Χρησιμοποιήστε πρόγραμμα περιήγησης για να προσθέσετε passkey.", + "You don’t have any passkeys yet.": "Δεν έχετε ακόμη passkeys.", + "New passkey added to your {{ appName }} account": "Προστέθηκε νέο passkey στον λογαριασμό σας {{ appName }}", + "A new passkey was created for your account.": "Δημιουργήθηκε νέο passkey για τον λογαριασμό σας.", + "New Passkey Created": "Δημιουργήθηκε νέο passkey", + "A new passkey has been added to your {{ appName }} account": "Προστέθηκε νέο passkey στον λογαριασμό σας {{ appName }}", + "Passkeys provide a secure, passwordless way to sign in to your account. If you did not create this passkey, please review your account security settings immediately.": "Τα passkeys προσφέρουν ασφαλή σύνδεση στον λογαριασμό σας χωρίς κωδικό πρόσβασης. Αν δεν δημιουργήσατε εσείς αυτό το passkey, ελέγξτε αμέσως τις ρυθμίσεις ασφαλείας του λογαριασμού σας.", + "You can manage your passkeys at any time": "Μπορείτε να διαχειρίζεστε τα passkeys σας οποτεδήποτε", + "If you have any concerns about your account security, please contact a workspace admin.": "Αν έχετε οποιαδήποτε ανησυχία για την ασφάλεια του λογαριασμού σας, επικοινωνήστε με έναν διαχειριστή του χώρου εργασίας.", + "Manage Passkeys": "Διαχείριση passkeys", + "Import a zip file of Markdown documents exported from Slab – collections, posts, images, and attachments will be imported. In Slab, open the admin settings and use the <1>Export option to download an archive of your content.": "Εισαγάγετε αρχείο zip με έγγραφα Markdown που εξήχθησαν από το Slab – θα εισαχθούν συλλογές, δημοσιεύσεις, εικόνες και συνημμένα. Στο Slab, ανοίξτε τις ρυθμίσεις διαχείρισης και χρησιμοποιήστε την επιλογή <1>Export για να κατεβάσετε ένα αρχείο του περιεχομένου σας.", + "Drag and drop the zip file exported from Slab, or click to upload": "Σύρετε και αφήστε το αρχείο zip που εξήχθη από το Slab ή κάντε κλικ για μεταφόρτωση", + "Import a zip file of Markdown documents exported from Slab": "Εισαγωγή αρχείου zip με έγγραφα Markdown που εξήχθησαν από το Slab", + "Add to Slack": "Προσθήκη στο Slack", + "document published": "δημοσίευση εγγράφου", + "document updated": "ενημέρωση εγγράφου", + "Posting to the {{ channelName }} channel on": "Δημοσίευση στο κανάλι {{ channelName }} στο", + "These events should be posted to Slack": "Αυτά τα συμβάντα θα δημοσιεύονται στο Slack", + "This will prevent any future updates from being posted to this Slack channel. Are you sure?": "Αυτό θα σταματήσει τη δημοσίευση μελλοντικών ενημερώσεων σε αυτό το κανάλι Slack. Είστε βέβαιοι;", + "Whoops, you need to accept the permissions in Slack to connect {{appName}} to your workspace. Try again?": "Ωχ, πρέπει να αποδεχτείτε τα δικαιώματα στο Slack για να συνδέσετε το {{appName}} με τον χώρο εργασίας σας. Δοκιμάστε ξανά;", + "Personal account": "Προσωπικός λογαριασμός", + "Link your {{appName}} account to Slack to enable searching and previewing the documents you have access to, directly within chat.": "Συνδέστε τον λογαριασμό σας {{appName}} με το Slack για να αναζητάτε και να βλέπετε προεπισκοπήσεις των εγγράφων στα οποία έχετε πρόσβαση, απευθείας μέσα στη συνομιλία.", + "Disconnecting your personal account will prevent searching for documents from Slack. Are you sure?": "Η αποσύνδεση του προσωπικού σας λογαριασμού θα σταματήσει την αναζήτηση εγγράφων από το Slack. Είστε βέβαιοι;", + "Slash command": "Εντολή slash", + "Get rich previews of {{ appName }} links shared in Slack and use the {{ command }} slash command to search for documents without leaving your chat.": "Λάβετε πλούσιες προεπισκοπήσεις των συνδέσμων {{ appName }} που κοινοποιούνται στο Slack και χρησιμοποιήστε την εντολή {{ command }} για να αναζητάτε έγγραφα χωρίς να φύγετε από τη συνομιλία.", + "This will remove the Outline slash command from your Slack workspace. Are you sure?": "Αυτό θα αφαιρέσει την εντολή slash του Outline από τον χώρο εργασίας σας στο Slack. Είστε βέβαιοι;", + "Connect {{appName}} collections to Slack channels. Messages will be automatically posted to Slack when documents are published or updated.": "Συνδέστε συλλογές του {{appName}} με κανάλια Slack. Θα δημοσιεύονται αυτόματα μηνύματα στο Slack όταν δημοσιεύονται ή ενημερώνονται έγγραφα.", + "Comment by {{ author }} on “{{ title }}”": "Σχόλιο του/της {{ author }} στο «{{ title }}»", + "You do not have access to this document": "Δεν έχετε πρόσβαση σε αυτό το έγγραφο", + "How to use {{ command }}": "Πώς να χρησιμοποιήσετε το {{ command }}", + "To search your workspace, use {{ command }}.\nType {{ command2 }} help to display this help text.": "Για να αναζητήσετε στον χώρο εργασίας σας, χρησιμοποιήστε το {{ command }}.\nΠληκτρολογήστε {{ command2 }} help για να εμφανίσετε αυτό το κείμενο βοήθειας.", + "Post to Channel": "Δημοσίευση στο κανάλι", + "This is what we found for “{{ term }}”": "Αυτά βρήκαμε για «{{ term }}»", + "No results for “{{ term }}”": "Κανένα αποτέλεσμα για «{{ term }}»", + "It looks like you haven’t linked your {{ appName }} account to Slack yet": "Φαίνεται ότι δεν έχετε συνδέσει ακόμη τον λογαριασμό σας {{ appName }} με το Slack", + "Link your account": "Συνδέστε τον λογαριασμό σας", + "Link your account in {{ appName }} settings to search from Slack": "Συνδέστε τον λογαριασμό σας στις ρυθμίσεις του {{ appName }} για να αναζητάτε από το Slack", + "Configure an Umami installation to send views and analytics from the workspace to your own Umami instance.": "Ρυθμίστε μια εγκατάσταση Umami για να στέλνετε τις προβολές και τα analytics του χώρου εργασίας στη δική σας εγκατάσταση Umami.", + "The URL of your Umami instance. If you are using Umami Cloud, it will begin with {{ url }}": "Το URL της παρουσίας Umami σας. Αν χρησιμοποιείτε το Umami Cloud, θα ξεκινά με {{ url }}", + "Script name": "Όνομα script", + "The name of the script file that Umami uses to track analytics.": "Το όνομα του αρχείου script που χρησιμοποιεί το Umami για την καταγραφή των analytics.", + "An ID that uniquely identifies the website in your Umami instance.": "Ένα ID που προσδιορίζει μοναδικά τον ιστότοπο στην εγκατάσταση Umami.", + "New webhook": "Νέο webhook", + "Edit webhook": "Επεξεργασία webhook", + "Delete webhook": "Διαγραφή webhook", + "Are you sure you want to delete the {{ name }} webhook?": "Είστε βέβαιοι ότι θέλετε να διαγράψετε το webhook {{ name }};", + "Webhook updated": "Το webhook ενημερώθηκε", + "Update": "Ενημέρωση", + "Updating": "Ενημέρωση", + "Provide a descriptive name for this webhook and the URL we should send a POST request to when matching events are created.": "Δώστε ένα περιγραφικό όνομα για αυτό το webhook και το URL στο οποίο θα στέλνουμε αίτημα POST όταν δημιουργούνται αντίστοιχα συμβάντα.", + "A memorable identifier": "Ένα αναγνωριστικό που θα θυμάστε", + "URL": "Διεύθυνση URL", + "Webhook delivery over http is insecure – use https if possible": "Η παράδοση webhook μέσω http δεν είναι ασφαλής – χρησιμοποιήστε https αν είναι δυνατόν", + "Signing secret": "Μυστικό υπογραφής", + "Subscribe to all events, groups, or individual events. We recommend only subscribing to the minimum number of events that your application needs to function.": "Εγγραφείτε σε όλα τα συμβάντα, τις ομάδες ή μεμονωμένα συμβάντα. Συνιστούμε να εγγραφείτε μόνο στον ελάχιστο αριθμό συμβάντων που χρειάζεται η εφαρμογή σας για να λειτουργεί.", + "All events": "Όλα τα συμβάντα", + "All {{ groupName }} events": "Όλα τα συμβάντα {{ groupName }}", + "Webhook": "Άγκιστρο ιστού (webhook)", + "Webhook created": "Το webhook δημιουργήθηκε", + "Could not load webhooks": "Δεν ήταν δυνατή η φόρτωση των webhooks", + "Webhooks": "Webhook", + "Webhooks can be used to notify your application when events happen in {{appName}}. Events are sent as an HTTPS request with a JSON payload in near real-time.": "Τα webhooks μπορούν να ειδοποιούν την εφαρμογή σας όταν συμβαίνουν γεγονότα στο {{appName}}. Τα συμβάντα αποστέλλονται ως αίτημα HTTPS με περιεχόμενο JSON σχεδόν σε πραγματικό χρόνο.", + "Zapier is a platform that allows {{appName}} to easily integrate with thousands of other business tools. Automate your workflows, sync data, and more.": "Το Zapier είναι μια πλατφόρμα που επιτρέπει στο {{appName}} να ενσωματώνεται εύκολα με χιλιάδες άλλα επιχειρηματικά εργαλεία. Αυτοματοποιήστε τις ροές εργασίας σας, συγχρονίστε δεδομένα και άλλα.", + "This notification was delayed and may be out of date.": "Αυτή η ειδοποίηση καθυστέρησε και μπορεί να μην είναι ενημερωμένη.", + "“{{ collectionName }}” created": "Δημιουργήθηκε η συλλογή «{{ collectionName }}»", + "{{ userName }} created a collection": "Ο/Η {{ userName }} δημιούργησε μια συλλογή", + "{{ userName }} created the collection “{{ collectionName }}”": "Ο/Η {{ userName }} δημιούργησε τη συλλογή «{{ collectionName }}»", + "Open Collection": "Άνοιγμα συλλογής", + "View Collection": "Προβολή συλλογής", + "{{ userName }} created the collection “{{ collectionName }}”.": "Ο/Η {{ userName }} δημιούργησε τη συλλογή «{{ collectionName }}».", + "Unsubscribe from these emails": "Κατάργηση εγγραφής από αυτά τα email", + "{{ actorName }} invited you to the “{{ collectionName }}” collection": "Ο/Η {{ actorName }} σας προσκάλεσε στη συλλογή «{{ collectionName }}»", + "{{ actorName }} invited you to a collection": "Ο/Η {{ actorName }} σας προσκάλεσε σε μια συλλογή", + "{{ actorName }} invited you to the “{{ collectionName }}” collection.": "Ο/Η {{ actorName }} σας προσκάλεσε στη συλλογή «{{ collectionName }}».", + "view and edit": "βλέπετε και να επεξεργάζεστε", + "manage": "διαχειρίζεστε", + "view": "βλέπετε", + "{{ actorName }} invited you to {{ permission }} documents in the": "Ο/Η {{ actorName }} σας προσκάλεσε να {{ permission }} έγγραφα στη συλλογή", + "Re": "Απ", + "New comment on “{{ documentTitle }}” – {{ trimmedText }}": "Νέο σχόλιο στο «{{ documentTitle }}» – {{ trimmedText }}", + "{{ actorName }} replied in a thread": "Ο/Η {{ actorName }} απάντησε σε μια συζήτηση", + "{{ actorName }} commented on the document": "Ο/Η {{ actorName }} σχολίασε το έγγραφο", + "{{ actorName }} replied to a thread in “{{ documentTitle }}”": "Ο/Η {{ actorName }} απάντησε σε συζήτηση στο «{{ documentTitle }}»", + "{{ actorName }} commented on “{{ documentTitle }}”": "Ο/Η {{ actorName }} σχολίασε στο «{{ documentTitle }}»", + "in the {{ collectionName }} collection": "στη συλλογή {{ collectionName }}", + "Open Thread": "Άνοιγμα συζήτησης", + "View Thread": "Προβολή συζήτησης", + "{{ actorName }} replied to a thread in": "Ο/Η {{ actorName }} απάντησε σε συζήτηση στο", + "{{ actorName }} commented on": "Ο/Η {{ actorName }} σχολίασε στο", + "Unsubscribe from this doc": "Κατάργηση εγγραφής από αυτό το έγγραφο", + "Mentioned you in “{{ documentTitle }}”": "Σας ανέφερε στο «{{ documentTitle }}»", + "{{ actorName }} mentioned you in a thread": "Ο/Η {{ actorName }} σας ανέφερε σε μια συζήτηση", + "{{ actorName }} mentioned you in a comment on “{{ documentTitle }}”": "Ο/Η {{ actorName }} σας ανέφερε σε σχόλιο στο «{{ documentTitle }}»", + "{{ actorName }} mentioned you in a comment on": "Ο/Η {{ actorName }} σας ανέφερε σε σχόλιο στο", + "Resolved a comment thread in “{{ documentTitle }}”": "Επιλύθηκε μια συζήτηση σχολίων στο «{{ documentTitle }}»", + "{{ actorName }} resolved a comment thread": "Ο/Η {{ actorName }} επέλυσε μια συζήτηση σχολίων", + "{{ actorName }} resolved a comment thread on “{{ documentTitle }}”": "Ο/Η {{ actorName }} επέλυσε μια συζήτηση σχολίων στο «{{ documentTitle }}»", + "{{ actorName }} resolved a comment on": "Ο/Η {{ actorName }} επέλυσε ένα σχόλιο στο", + "Your workspace deletion request": "Το αίτημα διαγραφής του χώρου εργασίας σας", + "Your requested workspace deletion code": "Ο κωδικός διαγραφής χώρου εργασίας που ζητήσατε", + "You requested to permanently delete your {{ appName }} workspace. Please enter the code below to confirm your workspace deletion.": "Ζητήσατε την οριστική διαγραφή του χώρου εργασίας σας στο {{ appName }}. Εισαγάγετε τον παρακάτω κωδικό για να επιβεβαιώσετε τη διαγραφή.", + "Your email update request": "Το αίτημα αλλαγής email σας", + "Here’s your email change confirmation.": "Ακολουθεί η επιβεβαίωση αλλαγής του email σας.", + "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change from {{ previous }} to {{ to }}.": "Ζητήσατε την αλλαγή του email του λογαριασμού σας στο {{ appName }}. Ακολουθήστε τον παρακάτω σύνδεσμο για να επιβεβαιώσετε την αλλαγή από {{ previous }} σε {{ to }}.", + "You requested to update your {{ appName }} account email. Please follow the link below to confirm the change to {{ to }}.": "Ζητήσατε την αλλαγή του email του λογαριασμού σας στο {{ appName }}. Ακολουθήστε τον παρακάτω σύνδεσμο για να επιβεβαιώσετε την αλλαγή σε {{ to }}.", + "You requested to update your {{ appName }} account email. Please click below to confirm the change from {{ previous }} to": "Ζητήσατε την αλλαγή του email του λογαριασμού σας στο {{ appName }}. Κάντε κλικ παρακάτω για να επιβεβαιώσετε την αλλαγή από {{ previous }} σε", + "You requested to update your {{ appName }} account email. Please click below to confirm the change to": "Ζητήσατε την αλλαγή του email του λογαριασμού σας στο {{ appName }}. Κάντε κλικ παρακάτω για να επιβεβαιώσετε την αλλαγή σε", + "Confirm Change": "Επιβεβαίωση αλλαγής", + "Your account deletion request": "Το αίτημα διαγραφής του λογαριασμού σας", + "Your requested account deletion code": "Ο κωδικός διαγραφής λογαριασμού που ζητήσατε", + "You requested to permanently delete your {{ appName }} user account in the {{ teamName }} workspace. Please enter the code below to confirm your account deletion.": "Ζητήσατε την οριστική διαγραφή του λογαριασμού χρήστη σας στο {{ appName }}, στον χώρο εργασίας {{ teamName }}. Εισαγάγετε τον παρακάτω κωδικό για να επιβεβαιώσετε τη διαγραφή του λογαριασμού σας.", + "You requested to permanently delete your {{ appName }} user account in the": "Ζητήσατε την οριστική διαγραφή του λογαριασμού χρήστη σας στο {{ appName }}, στον χώρο εργασίας", + "workspace. Please enter the code below to confirm your account deletion.": "– εισαγάγετε τον παρακάτω κωδικό για να επιβεβαιώσετε τη διαγραφή του λογαριασμού σας.", + "{{ actorName }} is requesting access to “{{ documentTitle }}”": "Ο/Η {{ actorName }} ζητά πρόσβαση στο «{{ documentTitle }}»", + "{{ actorName }} is requesting access to a document": "Ο/Η {{ actorName }} ζητά πρόσβαση σε ένα έγγραφο", + "{{ actorName }} is requesting access to “{{ documentTitle }}”.": "Ο/Η {{ actorName }} ζητά πρόσβαση στο «{{ documentTitle }}».", + "Open the document to share it with them": "Ανοίξτε το έγγραφο για να του το κοινοποιήσετε", + "View Document": "Προβολή εγγράφου", + "{{ actorName }} is requesting access to the": "Ο/Η {{ actorName }} ζητά πρόσβαση στο έγγραφο", + "{{ actorName }} mentioned you": "Ο/Η {{ actorName }} σας ανέφερε", + "You were mentioned": "Αναφερθήκατε", + "{{ actorName }} mentioned you in the document “{{ documentTitle }}”.": "Ο/Η {{ actorName }} σας ανέφερε στο έγγραφο «{{ documentTitle }}».", + "Open Document": "Άνοιγμα εγγράφου", + "{{ actorName }} mentioned you in the document": "Ο/Η {{ actorName }} σας ανέφερε στο έγγραφο", + "updated": "ενημέρωσε", + "“{{ documentTitle }}” {{ eventName }}": "«{{ documentTitle }}» ({{ eventName }})", + "{{ actorName }} {{ eventName }} a document": "Ο/Η {{ actorName }} {{ eventName }} ένα έγγραφο", + "{{ actorName }} {{ eventName }} a document_plural": "Ο/Η {{ actorName }} {{ eventName }} ένα έγγραφο", + "{{ actorName }} {{ eventName }} the document “{{ documentTitle }}”": "Ο/Η {{ actorName }} {{ eventName }} το έγγραφο «{{ documentTitle }}»", + "{{ actorName }} {{ eventName }} the document “{{ documentTitle }}”_plural": "Ο/Η {{ actorName }} {{ eventName }} το έγγραφο «{{ documentTitle }}»", + "{{ actorName }} {{ eventName }} the document": "Ο/Η {{ actorName }} {{ eventName }} το έγγραφο", + "{{ actorName }} {{ eventName }} the document_plural": "Ο/Η {{ actorName }} {{ eventName }} το έγγραφο", + "{{ actorName }} shared “{{ documentTitle }}” with you": "Ο/Η {{ actorName }} σας κοινοποίησε το «{{ documentTitle }}»", + "{{ actorName }} shared a document": "Ο/Η {{ actorName }} κοινοποίησε ένα έγγραφο", + "{{ actorName }} shared “{{ documentTitle }}” with you.": "Ο/Η {{ actorName }} σας κοινοποίησε το «{{ documentTitle }}».", + "edit": "επεξεργάζεστε", + "{{ actorName }} invited you to {{ permission }} the": "Ο/Η {{ actorName }} σας προσκάλεσε να {{ permission }} το έγγραφο", + "Your account email was changed": "Το email του λογαριασμού σας άλλαξε", + "The email address on your {{ appName }} account changed.": "Η διεύθυνση email του λογαριασμού σας στο {{ appName }} άλλαξε.", + "The email address for your {{ appName }} account in the {{ teamName }} workspace was changed to {{ email }}. This address will no longer receive emails for the account.": "Η διεύθυνση email του λογαριασμού σας στο {{ appName }}, στον χώρο εργασίας {{ teamName }}, άλλαξε σε {{ email }}. Αυτή η διεύθυνση δεν θα λαμβάνει πλέον email για τον λογαριασμό.", + "If you did not expect this change, contact your workspace admin immediately to secure your account. Otherwise, no action is required.": "Αν δεν περιμένατε αυτή την αλλαγή, επικοινωνήστε αμέσως με τον διαχειριστή του χώρου εργασίας σας για να ασφαλίσετε τον λογαριασμό σας. Διαφορετικά, δεν απαιτείται καμία ενέργεια.", + "The email address for your {{ appName }} account in the": "Η διεύθυνση email του λογαριασμού σας στο {{ appName }}, στον χώρο εργασίας", + "workspace was changed to": "άλλαξε σε", + "This address will no longer receive emails for the account.": "Αυτή η διεύθυνση δεν θα λαμβάνει πλέον email για τον λογαριασμό.", + "Your requested export": "Η εξαγωγή που ζητήσατε", + "Sorry, your requested data export has failed": "Λυπούμαστε, η εξαγωγή δεδομένων που ζητήσατε απέτυχε", + "Your Data Export": "Η εξαγωγή των δεδομένων σας", + "Sorry, your requested data export has failed. Please visit the admin section to try again – if the problem persists, please contact support.": "Λυπούμαστε, η εξαγωγή δεδομένων που ζητήσατε απέτυχε. Επισκεφθείτε την ενότητα διαχείρισης για να προσπαθήσετε ξανά – αν το πρόβλημα παραμένει, επικοινωνήστε με την υποστήριξη.", + "Sorry, your requested data export has failed. Please visit the": "Λυπούμαστε, η εξαγωγή δεδομένων που ζητήσατε απέτυχε. Επισκεφθείτε την", + "admin section": "ενότητα διαχείρισης", + "to try again – if the problem persists, please contact support.": "για να προσπαθήσετε ξανά – αν το πρόβλημα παραμένει, επικοινωνήστε με την υποστήριξη.", + "Go to export": "Μετάβαση στην εξαγωγή", + "Here’s your requested data export from {{ appName }}": "Η εξαγωγή δεδομένων που ζητήσατε από το {{ appName }}", + "Your requested data export is complete. You can download it from the link below in a browser that is logged in to your account.": "Η εξαγωγή δεδομένων που ζητήσατε ολοκληρώθηκε. Μπορείτε να τη λάβετε από τον παρακάτω σύνδεσμο σε ένα πρόγραμμα περιήγησης στο οποίο έχετε συνδεθεί στον λογαριασμό σας.", + "This export will be available to download for {{ days }} days.": "Η εξαγωγή θα είναι διαθέσιμη για λήψη για {{ days }} ημέρες.", + "Download export": "Λήψη εξαγωγής", + "The {{ groupName }} group was mentioned in “{{ documentTitle }}”": "Η ομάδα {{ groupName }} αναφέρθηκε στο «{{ documentTitle }}»", + "{{ actorName }} mentioned the “{{ groupName }}” group in a thread": "Ο/Η {{ actorName }} ανέφερε την ομάδα «{{ groupName }}» σε μια συζήτηση", + "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on “{{ documentTitle }}”": "Ο/Η {{ actorName }} ανέφερε την ομάδα «{{ groupName }}» σε σχόλιο στο «{{ documentTitle }}»", + "{{ actorName }} mentioned the “{{ groupName }}” group in a comment on": "Ο/Η {{ actorName }} ανέφερε την ομάδα «{{ groupName }}» σε σχόλιο στο", + "{{ actorName }} mentioned the “{{ groupName }}” group": "Ο/Η {{ actorName }} ανέφερε την ομάδα «{{ groupName }}»", + "{{ actorName }} mentioned the “{{ groupName }}” group in the document “{{ documentTitle }}”.": "Ο/Η {{ actorName }} ανέφερε την ομάδα «{{ groupName }}» στο έγγραφο «{{ documentTitle }}».", + "Your group was mentioned": "Η ομάδα σας αναφέρθηκε", + "{{ actorName }} mentioned the “{{ groupName }}” group in the document": "Ο/Η {{ actorName }} ανέφερε την ομάδα «{{ groupName }}» στο έγγραφο", + "{{ invitedName }} has joined your {{ appName }} team": "Ο/Η {{ invitedName }} εντάχθηκε στην ομάδα σας στο {{ appName }}", + "Great news, {{ invitedName }} accepted your invitation": "Καλά νέα, ο/η {{ invitedName }} αποδέχτηκε την πρόσκλησή σας", + "Great news, {{ invitedName }} just accepted your invitation and has created an account. You can now start collaborating on documents.": "Καλά νέα, ο/η {{ invitedName }} μόλις αποδέχτηκε την πρόσκλησή σας και δημιούργησε λογαριασμό. Μπορείτε πλέον να συνεργάζεστε σε έγγραφα.", + "Open {{ appName }}": "Άνοιγμα {{ appName }}", + "{{ invitedName }} has joined your team": "Ο/Η {{ invitedName }} εντάχθηκε στην ομάδα σας", + "{{ actorName }} invited you to join {{ teamName }}’s workspace": "Ο/Η {{ actorName }} σας προσκάλεσε στον χώρο εργασίας {{ teamName }}", + "{{ appName }} is a place for your team to build and share knowledge.": "Το {{ appName }} είναι ο χώρος όπου η ομάδα σας δημιουργεί και μοιράζεται γνώση.", + "Join {{ teamName }} on {{ appName }}": "Συμμετοχή στο {{ teamName }} στο {{ appName }}", + "has invited you to join {{ appName }}, a place for your team to build and share knowledge.": "σας προσκάλεσε στο {{ appName }}, τον χώρο όπου η ομάδα σας δημιουργεί και μοιράζεται γνώση.", + "Join now": "Συμμετοχή τώρα", + "Reminder": "Υπενθύμιση", + "This is just a quick reminder that {{ actorName }} {{ actorEmail }} invited you to join them in the {{ teamName }} team on {{ appName }}, a place for your team to build and share knowledge.": "Μια σύντομη υπενθύμιση ότι ο/η {{ actorName }} {{ actorEmail }} σας προσκάλεσε στην ομάδα {{ teamName }} στο {{ appName }}, τον χώρο όπου η ομάδα σας δημιουργεί και μοιράζεται γνώση.", + "We only send a reminder once.": "Στέλνουμε υπενθύμιση μόνο μία φορά.", + "If you haven’t signed up yet, you can do so here": "Αν δεν έχετε εγγραφεί ακόμη, μπορείτε να το κάνετε εδώ", + "“{{ documentTitle }}” updated": "Το «{{ documentTitle }}» ενημερώθηκε", + "“{{ documentTitle }}” has been updated.": "Το «{{ documentTitle }}» ενημερώθηκε.", + "A document you subscribed to has been updated.": "Ένα έγγραφο στο οποίο έχετε εγγραφεί ενημερώθηκε.", + "Click below to view the latest version.": "Κάντε κλικ παρακάτω για να δείτε την τελευταία έκδοση.", + "Confirm your subscription": "Επιβεβαιώστε την εγγραφή σας", + "Confirm your subscription to receive updates when “{{ documentTitle }}” changes.": "Επιβεβαιώστε την εγγραφή σας για να λαμβάνετε ενημερώσεις όταν αλλάζει το «{{ documentTitle }}».", + "You requested to receive email notifications when “{{ documentTitle }}” is updated on {{ appName }}. Please confirm your subscription by following the link below.": "Ζητήσατε να λαμβάνετε ειδοποιήσεις email όταν ενημερώνεται το «{{ documentTitle }}» στο {{ appName }}. Επιβεβαιώστε την εγγραφή σας ακολουθώντας τον παρακάτω σύνδεσμο.", + "Confirm Subscription": "Επιβεβαίωση εγγραφής", + "This link will expire in 24 hours.": "Αυτός ο σύνδεσμος θα λήξει σε 24 ώρες.", + "You requested to receive email notifications when “{{ documentTitle }}” is updated on {{ appName }}.": "Ζητήσατε να λαμβάνετε ειδοποιήσεις email όταν ενημερώνεται το «{{ documentTitle }}» στο {{ appName }}.", + "Please confirm your subscription by clicking the button below.": "Επιβεβαιώστε την εγγραφή σας κάνοντας κλικ στο παρακάτω κουμπί.", + "Magic Sign-in Link": "Σύνδεσμος άμεσης σύνδεσης", + "Sign-in verification code": "Κωδικός επαλήθευσης σύνδεσης", + "Here’s your link to sign in to {{ appName }}.": "Ακολουθεί ο σύνδεσμός σας για σύνδεση στο {{ appName }}.", + "Use the link below to sign in": "Χρησιμοποιήστε τον παρακάτω σύνδεσμο για να συνδεθείτε", + "If the link expired, you can request a new one from your team’s sign-in page at": "Αν ο σύνδεσμος έχει λήξει, μπορείτε να ζητήσετε νέο από τη σελίδα σύνδεσης της ομάδας σας στη διεύθυνση", + "Enter this verification code": "Εισαγάγετε αυτόν τον κωδικό επαλήθευσης", + "If the code expired, you can request a new one from your team’s sign-in page at": "Αν ο κωδικός έχει λήξει, μπορείτε να ζητήσετε νέο από τη σελίδα σύνδεσης της ομάδας σας στη διεύθυνση", + "Click the button below to sign in to {{ appName }}.": "Κάντε κλικ στο παρακάτω κουμπί για να συνδεθείτε στο {{ appName }}.", + "Sign-in Code": "Κωδικός σύνδεσης", + "Enter this code on your team’s sign-in page to continue.": "Εισαγάγετε αυτόν τον κωδικό στη σελίδα σύνδεσης της ομάδας σας για να συνεχίσετε.", + "Webhook disabled": "Το webhook απενεργοποιήθηκε", + "Your webhook ({{ webhookName }}) has been disabled": "Το webhook σας ({{ webhookName }}) απενεργοποιήθηκε", + "Your webhook ({{ webhookName }}) has been automatically disabled due to a high failure rate in recent delivery attempts. You can re-enable it by editing the webhook.": "Το webhook σας ({{ webhookName }}) απενεργοποιήθηκε αυτόματα λόγω υψηλού ποσοστού αποτυχιών στις πρόσφατες προσπάθειες παράδοσης. Μπορείτε να το ενεργοποιήσετε ξανά επεξεργαζόμενοι το webhook.", + "Webhook settings": "Ρυθμίσεις webhook", + "Welcome to {{ appName }}!": "Καλώς ήρθατε στο {{ appName }}!", + "To get started, head to the home screen and try creating a collection to help document your processes, create playbooks, or plan your team’s work.": "Για να ξεκινήσετε, μεταβείτε στην αρχική οθόνη και δημιουργήστε μια συλλογή για να τεκμηριώσετε τις διαδικασίες σας, να δημιουργήσετε οδηγούς ή να σχεδιάσετε τη δουλειά της ομάδας σας.", + "Or, learn more about everything {{ appName }} can do in the guide": "Ή μάθετε περισσότερα για όλα όσα μπορεί να κάνει το {{ appName }} στον οδηγό", + "Or, learn more about everything {{ appName }} can do in": "Ή μάθετε περισσότερα για όλα όσα μπορεί να κάνει το {{ appName }} στον", + "the guide": "οδηγό", + "Never logged in": "Δεν έχει συνδεθεί ποτέ", + "Online now": "Συνδεδεμένος τώρα", + "Online {{ timeAgo }}": "Συνδεδεμένος {{ timeAgo }}", + "Viewed just now": "Προβλήθηκε μόλις τώρα", + "You updated {{ timeAgo }}": "Ενημερώσατε {{ timeAgo }}", + "{{ user }} updated {{ timeAgo }}": "Ο/Η {{ user }} ενημέρωσε {{ timeAgo }}", + "You created {{ timeAgo }}": "Δημιουργήσατε {{ timeAgo }}", + "{{ user }} created {{ timeAgo }}": "Ο/Η {{ user }} δημιούργησε {{ timeAgo }}", + "Sorry, an error occurred uploading the file": "Λυπούμαστε, προέκυψε σφάλμα κατά τη μεταφόρτωση του αρχείου", + "Sorry, that type of link is not supported": "Λυπούμαστε, αυτός ο τύπος συνδέσμου δεν υποστηρίζεται", + "Caption": "Λεζάντα", + "Click to copy": "Κάντε κλικ για αντιγραφή", + "Empty diagram": "Κενό διάγραμμα", + "Double-click to edit": "Κάντε διπλό κλικ για επεξεργασία", + "in {{ collectionName }}": "στη συλλογή {{ collectionName }}", + "Loading": "Φόρτωση", + "Error loading data": "Σφάλμα φόρτωσης δεδομένων", + "Uploading {{ name }}": "Μεταφόρτωση {{ name }}", + "Show {{ count }} completed": "Εμφάνιση {{ count }} ολοκληρωμένης", + "Show {{ count }} completed_plural": "Εμφάνιση {{ count }} ολοκληρωμένων", + "Hide completed": "Απόκρυψη ολοκληρωμένων", + "Sorry, the link could not be copied": "Λυπούμαστε, δεν ήταν δυνατή η αντιγραφή του συνδέσμου", + "Write a caption": "Γράψτε λεζάντα", + "Display as mention": "Εμφάνιση ως αναφορά", + "Display as card": "Εμφάνιση ως κάρτα", + "Add title": "Προσθήκη τίτλου", + "Add content": "Προσθήκη περιεχομένου", + "Tomorrow": "Αύριο", + "Group admin": "Διαχειριστής ομάδας", + "Member": "Μέλος" +} diff --git a/shared/i18n/locales/en_GB/translation.json b/shared/i18n/locales/en_GB/translation.json index 0494cea6e8..25849a9c8d 100644 --- a/shared/i18n/locales/en_GB/translation.json +++ b/shared/i18n/locales/en_GB/translation.json @@ -215,6 +215,13 @@ "Share link copied": "Share link copied", "Go to collection": "Go to collection", "Go to document": "Go to document", + "Custom": "Custom", + "Set expiry": "Set an expiry date", + "Remove expiry": "Remove the expiry date", + "Expiry removed": "Expiry date removed", + "{{ count }} days": "{{ count }} day", + "{{ count }} days_plural": "{{ count }} days", + "Expiry updated": "Expiry date updated", "Revoke link": "Revoke link", "Share link revoked": "Share link revoked", "{{ count }} share link revoked": "{{ count }} share link revoked", @@ -430,6 +437,8 @@ "our engineers have been notified": "our engineers have been notified", "Clear cache + reload": "Clear cache + reload", "Show detail": "Show detail", + "Choose a date": "Choose a date", + "Remove expiration": "Remove expiry", "Exporting the collection may take some time.": "Exporting the collection may take some time.", "You will receive an email when it’s complete.": "You will receive an email when it’s complete.", "Include attachments": "Include attachments", @@ -469,7 +478,6 @@ "Objects": "Objects", "Symbols": "Symbols", "Flags": "Flags", - "Custom": "Custom", "Word": "Word", "Plain text": "Plain text", "Email": "Email", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Everyone in the workspace", "{{ count }} member": "{{ count }} member", "{{ count }} member_plural": "{{ count }} members", - "Public link copied to clipboard": "Public link copied to clipboard", "Only lowercase letters, digits and dashes allowed": "Only lowercase letters, digits and dashes allowed", "Sorry, this link has already been used": "Sorry, this link has already been used", "Publish to web": "Publish to web", @@ -639,6 +646,8 @@ "Logo": "Logo", "Add": "Add", "Add or invite": "Add or invite", + "This link expired on {{ date }} and can no longer be accessed.": "This link expired on {{ date }} and is no longer accessible.", + "Update expiry": "Update expiry", "Sharing settings updated": "Sharing settings updated", "Customize how the published document is displayed": "Customize how the published document is displayed", "Image options": "Image options", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Disable this setting to discourage search engines from indexing the page", "Email subscriptions": "Email subscriptions", "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", + "Expiration": "Expiration", + "The public link will stop working after the selected date": "The public link will no longer work after the selected date.", + "No expiry": "No expiry", "Something went wrong": "Something went wrong", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -662,6 +674,7 @@ "Editor": "Editor", "Suggestions for invitation": "Suggestions for invitation", "No matches": "No matches", + "Public link copied to clipboard": "Public link copied to clipboard", "Created the document": "Created the document", "Can view": "Can view", "Everyone in the collection": "Everyone in the collection", @@ -924,11 +937,9 @@ "a document": "one document", "a collection": "one collection", "a group": "a group", - "Choose a date": "Choose a date", "API key created. Please copy the value now as it will not be shown again.": "API key created. Please copy the value now as it will not be shown again.", "Scopes": "Scopes", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "Space-separated scopes restrict this API key's access to specific parts of the API. Leave blank for full access.", - "Expiration": "Expiration", "Never expires": "Never expires", "7 days": "7 days", "30 days": "30 days", @@ -1052,8 +1063,6 @@ "Last edited": "Last edited", "Previously edited": "Previously edited", "Sorry, the last change could not be persisted – please reload the page": "Sorry, the last change could not be persisted – please reload the page", - "{{ count }} days": "{{ count }} day", - "{{ count }} days_plural": "{{ count }} days", "This document will be permanently deleted in <2> unless restored.": "This document will be permanently deleted in <2> unless restored.", "Deleted by {{userName}}": "Deleted by {{userName}}", "Observing {{ userName }}": "Observing {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "Read all data", "Write all data": "Write all data", "Create all data": "Create all data", + "More filters": "Additional filters", + "More": "Show more", "Any collection": "Any collection", "All time": "All time", - "Past day": "Past day", - "Past week": "Past week", - "Past month": "Past month", - "Past year": "Past year", "Any time": "Any time", + "Choose the first and last day": "Select the start and end dates", + "Apply": "Apply filters", "Remove document filter": "Remove document filter", - "Any status": "Any status", "Remove search": "Remove search", + "Remove filter": "Clear filter", "Relevance": "Relevance", "Newest": "Newest", "Oldest": "Oldest", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "Sort order:", "Any author": "Any author", - "Search titles only": "Search titles only", + "Past day": "Past day", + "Past week": "Past week", + "Past month": "Past month", + "Past year": "Past year", + "{{ count }} result": "{{ count }} result", + "{{ count }} result_plural": "{{ count }} results", "Please try again or contact support if the problem persists": "Something went wrong", "No documents found for your search filters.": "No documents found for your search filters.", + "Edited by": "Edited by", + "Status": "Status", + "Updated": "Updated", + "Created by": "Created by", + "Title only": "Title only", + "From {{ date }}": "From {{ date }}", + "Until {{ date }}": "Until {{ date }}", "Settings saved": "Settings saved", "Copied to clipboard": "Copied to clipboard", "Control how AI features are used in the workspace.": "Control how AI features are used in this workspace.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "by {{ name }}", "Expired": "Expired", "Last used": "Last used", - "No expiry": "No expiry", "Restricted scope": "Restricted scope", "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?", "Key": "Key", - "Created by": "Created by", "Never": "Never", "Expires": "Expires", "Could not load preference": "Could not load preference", @@ -1383,6 +1403,8 @@ "Synced <2>": "Synced <2>", "Date created": "Date created", "Crop image": "Crop image", + "Change image": "Change image", + "Remove image": "Remove image", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "Your browser cannot open HEIC images – please convert the image to JPEG or PNG first", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "You can import a ZIP file that was previously exported using the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click Export data.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload", @@ -1422,6 +1444,7 @@ "Editors": "Editors", "Invited by": "Invited by", "Joined": "Joined", + "Any status": "Any status", "Active": "Active", "Could not load emojis": "Could not load emojis", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Custom emojis can be used throughout your workspace in documents, comments, and reactions.", @@ -1548,6 +1571,8 @@ "Default role": "Default role", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "The default user role for new accounts. Changing this setting does not affect existing user accounts.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "When enabled, documents can be shared publicly on the internet by any member of the workspace", + "Default link expiration": "Default link expiry", + "New public links will expire after this period. Existing links are not affected.": "New public links will expire after this period. Existing links are unaffected.", "Viewer document exports": "Viewer document exports", "When enabled, viewers can see download options for documents": "When enabled, viewers can see download options for documents", "Users can delete account": "Users can delete account", @@ -1601,6 +1626,8 @@ "Expires today": "Expires today", "Expires tomorrow": "Expires tomorrow", "Expires {{ date }}": "Expires {{ date }}", + "Expires in {{ count }} day": "Expires in {{ count }} day", + "Expires in {{ count }} day_plural": "Expires in {{ count }} days", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.", "Installation URL": "Installation URL", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "The URL of your Diagrams.net installation. Leave this blank to use the cloud-hosted app.diagrams.net.", diff --git a/shared/i18n/locales/en_US/translation.json b/shared/i18n/locales/en_US/translation.json index 5cc1631d97..4d9e0f9fd8 100644 --- a/shared/i18n/locales/en_US/translation.json +++ b/shared/i18n/locales/en_US/translation.json @@ -219,6 +219,13 @@ "Share link copied": "Share link copied", "Go to collection": "Go to collection", "Go to document": "Go to document", + "Custom": "Custom", + "Set expiry": "Set expiry", + "Remove expiry": "Remove expiry", + "Expiry removed": "Expiry removed", + "{{ count }} days": "{{ count }} day", + "{{ count }} days_plural": "{{ count }} days", + "Expiry updated": "Expiry updated", "Revoke link": "Revoke link", "Share link revoked": "Share link revoked", "{{ count }} share link revoked": "{{ count }} share link revoked", @@ -475,7 +482,6 @@ "Objects": "Objects", "Symbols": "Symbols", "Flags": "Flags", - "Custom": "Custom", "Word": "Word", "Plain text": "Plain text", "Email": "Email", @@ -1065,8 +1071,6 @@ "Last edited": "Last edited", "Previously edited": "Previously edited", "Sorry, the last change could not be persisted – please reload the page": "Sorry, the last change could not be persisted – please reload the page", - "{{ count }} days": "{{ count }} day", - "{{ count }} days_plural": "{{ count }} days", "This document will be permanently deleted in <2> unless restored.": "This document will be permanently deleted in <2> unless restored.", "Deleted by {{userName}}": "Deleted by {{userName}}", "Observing {{ userName }}": "Observing {{ userName }}", @@ -1226,25 +1230,38 @@ "Read all data": "Read all data", "Write all data": "Write all data", "Create all data": "Create all data", + "More filters": "More filters", + "More": "More", "Any collection": "Any collection", "All time": "All time", - "Past day": "Past day", - "Past week": "Past week", - "Past month": "Past month", - "Past year": "Past year", "Any time": "Any time", + "Choose the first and last day": "Choose the first and last day", + "Apply": "Apply", "Remove document filter": "Remove document filter", - "Any status": "Any status", "Remove search": "Remove search", + "Remove filter": "Remove filter", "Relevance": "Relevance", "Newest": "Newest", "Oldest": "Oldest", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "Sorted by", "Any author": "Any author", - "Search titles only": "Search titles only", + "Past day": "Past day", + "Past week": "Past week", + "Past month": "Past month", + "Past year": "Past year", + "{{ count }} result": "{{ count }} result", + "{{ count }} result_plural": "{{ count }} results", "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.", + "Edited by": "Edited by", + "Status": "Status", + "Updated": "Updated", + "Created by": "Created by", + "Title only": "Title only", + "From {{ date }}": "From {{ date }}", + "Until {{ date }}": "Until {{ date }}", "Settings saved": "Settings saved", "Copied to clipboard": "Copied to clipboard", "Control how AI features are used in the workspace.": "Control how AI features are used in the workspace.", @@ -1328,7 +1345,6 @@ "Revoking": "Revoking", "Are you sure you want to revoke the {{ tokenName }} token?": "Are you sure you want to revoke the {{ tokenName }} token?", "Key": "Key", - "Created by": "Created by", "Never": "Never", "Expires": "Expires", "Could not load preference": "Could not load preference", @@ -1395,6 +1411,8 @@ "Synced <2>": "Synced <2>", "Date created": "Date created", "Crop image": "Crop image", + "Change image": "Change image", + "Remove image": "Remove image", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload", @@ -1433,6 +1451,7 @@ "Editors": "Editors", "Invited by": "Invited by", "Joined": "Joined", + "Any status": "Any status", "Active": "Active", "Could not load emojis": "Could not load emojis", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Custom emojis can be used throughout your workspace in documents, comments, and reactions.", diff --git a/shared/i18n/locales/es_ES/translation.json b/shared/i18n/locales/es_ES/translation.json index c226c82872..d01b09459b 100644 --- a/shared/i18n/locales/es_ES/translation.json +++ b/shared/i18n/locales/es_ES/translation.json @@ -215,6 +215,13 @@ "Share link copied": "Enlace para compartir copiado", "Go to collection": "Ir a la colección", "Go to document": "Ir al documento", + "Custom": "Personalizado", + "Set expiry": "Establecer caducidad", + "Remove expiry": "Eliminar caducidad", + "Expiry removed": "Caducidad eliminada", + "{{ count }} days": "{{ count }} día", + "{{ count }} days_plural": "{{ count }} días", + "Expiry updated": "Caducidad actualizada", "Revoke link": "Revocar enlace", "Share link revoked": "Enlace para compartir revocado", "{{ count }} share link revoked": "{{ count }} enlace para compartir revocado", @@ -430,6 +437,8 @@ "our engineers have been notified": "nuestros ingenieros han sido notificados", "Clear cache + reload": "Limpiar caché + recargar", "Show detail": "Mostrar detalle", + "Choose a date": "Elige una fecha", + "Remove expiration": "Eliminar expiración", "Exporting the collection may take some time.": "La exportación de la colección შეიძლება tardar algún tiempo.", "You will receive an email when it’s complete.": "Recibirás un correo electrónico cuando se complete.", "Include attachments": "Incluir archivos adjuntos", @@ -469,7 +478,6 @@ "Objects": "Objetos", "Symbols": "Símbolos", "Flags": "Banderas", - "Custom": "Personalizado", "Word": "Word", "Plain text": "Texto sin formato", "Email": "Correo electrónico", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Todos en el espacio de trabajo", "{{ count }} member": "{{ count }} miembro", "{{ count }} member_plural": "{{ count }} miembros", - "Public link copied to clipboard": "Enlace público copiado al portapapeles", "Only lowercase letters, digits and dashes allowed": "Solo se permiten letras minúsculas, dígitos y guiones", "Sorry, this link has already been used": "Lo sentimos, este enlace ya ha sido utilizado", "Publish to web": "Publicar en la web", @@ -639,6 +646,8 @@ "Logo": "Logo", "Add": "Agregar", "Add or invite": "Añadir o invitar", + "This link expired on {{ date }} and can no longer be accessed.": "Este enlace caducó el {{ date }} y ya no se puede acceder a él.", + "Update expiry": "Actualizar vencimiento", "Sharing settings updated": "Ajustes de uso compartido actualizados", "Customize how the published document is displayed": "Personalizar cómo se muestra el documento publicado", "Image options": "Opciones de imagen", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Desactivar esta opción para desalentar que los motores de búsqueda indexen la página", "Email subscriptions": "Suscripciones de correo", "Allow viewers to subscribe and receive email notifications when documents are updated": "Permitir a los espectadores suscribirse y recibir notificaciones por correo electrónico cuando se actualicen los documentos", + "Expiration": "Expiración", + "The public link will stop working after the selected date": "El enlace público dejará de funcionar después de la fecha seleccionada", + "No expiry": "No expira", "Something went wrong": "Algo ha salido mal", "Check your email to confirm your subscription": "Revisa tu correo electrónico para confirmar tu suscripción.", "Get notified when this document is updated": "Notificar cuando se actualice este documento", @@ -662,6 +674,7 @@ "Editor": "Editor", "Suggestions for invitation": "Sugerencias para invitar", "No matches": "No hay coincidencias", + "Public link copied to clipboard": "Enlace público copiado al portapapeles", "Created the document": "Documento creado", "Can view": "Puede visualizar", "Everyone in the collection": "Todos en la colección", @@ -924,11 +937,9 @@ "a document": "un documento", "a collection": "una colección", "a group": "un grupo", - "Choose a date": "Elige una fecha", "API key created. Please copy the value now as it will not be shown again.": "Clave API creada. Por favor, copia el valor ahora, ya que no se mostrará de nuevo.", "Scopes": "Ámbitos", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "Los ámbitos separados por espacios restringen el acceso de esta clave de API a partes específicas de la API. Déjalo en blanco para obtener acceso completo.", - "Expiration": "Expiración", "Never expires": "Nunca expira", "7 days": "7 días", "30 days": "30 días", @@ -1052,8 +1063,6 @@ "Last edited": "Última edición", "Previously edited": "Ha editado previamente", "Sorry, the last change could not be persisted – please reload the page": "Lo sentimos, el último cambio no se pudo guardar – por favor recarga la página", - "{{ count }} days": "{{ count }} día", - "{{ count }} days_plural": "{{ count }} días", "This document will be permanently deleted in <2> unless restored.": "Este documento se eliminará permanentemente en <2> a menos de que se restaure.", "Deleted by {{userName}}": "Eliminado por {{userName}}", "Observing {{ userName }}": "Observando {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "Leer todos los datos", "Write all data": "Escribir todos los datos", "Create all data": "Crear todos los datos", + "More filters": "Más filtros", + "More": "Más", "Any collection": "Cualquier colección", "All time": "Desde siempre", - "Past day": "Último día", - "Past week": "Última semana", - "Past month": "Último mes", - "Past year": "Último año", "Any time": "Cualquier momento", + "Choose the first and last day": "Elige el primer y el último día", + "Apply": "Aplicar", "Remove document filter": "Eliminar filtro de documentos", - "Any status": "Cualquier estado", "Remove search": "Eliminar búsqueda", + "Remove filter": "Eliminar filtro", "Relevance": "Relevancia", "Newest": "Más reciente", "Oldest": "Más antiguo", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "Ordenado por", "Any author": "Cualquier autor", - "Search titles only": "Buscar solamente títulos", + "Past day": "Último día", + "Past week": "Última semana", + "Past month": "Último mes", + "Past year": "Último año", + "{{ count }} result": "{{ count }} resultado", + "{{ count }} result_plural": "{{ count }} resultados", "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.", + "Edited by": "Editado por", + "Status": "Estado", + "Updated": "Actualizado", + "Created by": "Creado por", + "Title only": "Solo el título", + "From {{ date }}": "Desde el {{ date }}", + "Until {{ date }}": "Hasta el {{ date }}", "Settings saved": "Configuración guardada", "Copied to clipboard": "Copiado al portapapeles", "Control how AI features are used in the workspace.": "Controla cómo se usan las funciones de IA en el área de trabajo.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "por {{ name }}", "Expired": "Expirado", "Last used": "Utilizado por última vez", - "No expiry": "No expira", "Restricted scope": "Ámbito restringido", "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 }}?", "Key": "Clave", - "Created by": "Creado por", "Never": "Nunca", "Expires": "Caduca", "Could not load preference": "No se ha podido cargar la preferencia", @@ -1383,6 +1403,8 @@ "Synced <2>": "Sincronizado <2>", "Date created": "Fecha de creación", "Crop image": "Recortar imagen", + "Change image": "Cambiar imagen", + "Remove image": "Eliminar imagen", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "Tu navegador no puede leer imágenes HEIC; primero convierte la imagen a JPEG o PNG", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "Puedes importar un archivo zip que se exportó previamente desde la opción JSON en otra instancia. En {{ appName }}, abre Exportar en la barra lateral de configuración y haz clic en Exportar datos.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Arrastra y suelta el archivo zip de la opción de exportación JSON de {{appName}}, o haz clic para cargarlo", @@ -1422,6 +1444,7 @@ "Editors": "Editores", "Invited by": "Invitado por", "Joined": "Unido", + "Any status": "Cualquier estado", "Active": "Activo", "Could not load emojis": "No se pudieron cargar los emojis", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Los emojis personalizados pueden utilizarse en todo su espacio de trabajo en documentos, comentarios y reacciones.", @@ -1548,6 +1571,8 @@ "Default role": "Rol predeterminado", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "El rol de usuario predeterminado para cuentas nuevas. Cambiar esta configuración no afecta a las cuentas de usuario existentes.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Cuando está activado, los documentos pueden ser compartidos públicamente en Internet por cualquier miembro del espacio de trabajo", + "Default link expiration": "Vencimiento predeterminado de enlaces", + "New public links will expire after this period. Existing links are not affected.": "Los nuevos enlaces públicos caducarán después de este período. Los enlaces existentes no se verán afectados.", "Viewer document exports": "Lectores pueden exportar documentos", "When enabled, viewers can see download options for documents": "Cuando está habilitado, los lectores pueden ver las opciones de descarga de documentos", "Users can delete account": "Los usuarios pueden eliminar la cuenta", @@ -1601,6 +1626,8 @@ "Expires today": "Expira hoy", "Expires tomorrow": "Expira mañana", "Expires {{ date }}": "Expira el {{ date }}", + "Expires in {{ count }} day": "Caduca en {{ count }} día", + "Expires in {{ count }} day_plural": "Caduca en {{ count }} días", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configure una URL de instalación personalizada de Diagrams.net para usar su propia instancia autoalojada para incrustar diagramas en sus documentos.", "Installation URL": "URL de instalación", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "La URL de tu instalación de Diagrams.net. Déjala vacía para usar la aplicación app.diagrams.net alojada en la nube", diff --git a/shared/i18n/locales/fa_IR/translation.json b/shared/i18n/locales/fa_IR/translation.json index 0878024f37..1cd0fa555b 100644 --- a/shared/i18n/locales/fa_IR/translation.json +++ b/shared/i18n/locales/fa_IR/translation.json @@ -215,6 +215,13 @@ "Share link copied": "لینک اشتراک‌گذاری کپی شد", "Go to collection": "رفتن به مجموعه", "Go to document": "رفتن به سند", + "Custom": "سفارشی", + "Set expiry": "تنظیم انقضا", + "Remove expiry": "حذف انقضا", + "Expiry removed": "انقضا حذف شد", + "{{ count }} days": "{{ count }} روز", + "{{ count }} days_plural": "{{ count }} روز", + "Expiry updated": "انقضا به‌روزرسانی شد", "Revoke link": "حذف لینک", "Share link revoked": "لینک اشتراک‌گذاری حذف شد", "{{ count }} share link revoked": "{{ count }} share link revoked", @@ -430,6 +437,8 @@ "our engineers have been notified": "به مهندسان ما اطلاع‌رسانی شد", "Clear cache + reload": "پاک‌کردن کش و بارگذاری مجدد", "Show detail": "نمایش جزئیات", + "Choose a date": "یک تاریخ انتخاب کنید", + "Remove expiration": "حذف تاریخ انقضا", "Exporting the collection may take some time.": "صادر کردن مجموعه ممکن است مدتی طول بکشد.", "You will receive an email when it’s complete.": "پس از تکمیل شدن، ایمیلی دریافت خواهید کرد.", "Include attachments": "ضمیمه‌ها را شامل کن", @@ -469,7 +478,6 @@ "Objects": "اشیاء", "Symbols": "نمادها", "Flags": "علامت‌ها", - "Custom": "سفارشی", "Word": "ورد", "Plain text": "متن ساده", "Email": "ایمیل", @@ -616,7 +624,6 @@ "Everyone in the workspace": "همه اعضای فضای کار", "{{ count }} member": "{{ count }} عضو", "{{ count }} member_plural": "{{ count }} عضو", - "Public link copied to clipboard": "لینک عمومی کپی شد", "Only lowercase letters, digits and dashes allowed": "فقط حروف کوچک، اعداد و خط تیره مجاز است", "Sorry, this link has already been used": "متاسفیم، این لینک قبلاً استفاده شده است", "Publish to web": "Publish to web", @@ -639,6 +646,8 @@ "Logo": "لوگو", "Add": "افزودن", "Add or invite": "افزودن یا دعوت", + "This link expired on {{ date }} and can no longer be accessed.": "این پیوند در {{ date }} منقضی شده است و دیگر قابل دسترسی نیست.", + "Update expiry": "به‌روزرسانی تاریخ انقضا", "Sharing settings updated": "Sharing settings updated", "Customize how the published document is displayed": "Customize how the published document is displayed", "Image options": "Image options", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "این تنظیم را غیرفعال کنید تا موتورهای جستجو را از ایندکس این صفحه منصرف کنید", "Email subscriptions": "Email subscriptions", "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", + "Expiration": "انقضا", + "The public link will stop working after the selected date": "پیوند عمومی پس از تاریخ انتخاب‌شده دیگر کار نخواهد کرد", + "No expiry": "بدون انقضا", "Something went wrong": "مشکلی پیش آمد", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -662,6 +674,7 @@ "Editor": "ویرایشگر", "Suggestions for invitation": "پیشنهادها برای دعوت", "No matches": "موردی یافت نشد", + "Public link copied to clipboard": "لینک عمومی کپی شد", "Created the document": "سند ایجاد شد", "Can view": "قابلیت مشاهده دارد", "Everyone in the collection": "همه در این مجموعه", @@ -924,11 +937,9 @@ "a document": "یک سند", "a collection": "یک مجموعه", "a group": "یک گروه", - "Choose a date": "یک تاریخ انتخاب کنید", "API key created. Please copy the value now as it will not be shown again.": "کلید API ایجاد شد. لطفاً مقدار را اکنون کپی کنید چون دوباره نمایش داده نخواهد شد", "Scopes": "محدوده‌ها", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "محدوده‌های جداشده با فاصله، دسترسی این کلید API را به بخش‌های خاصی از API محدود می‌کنند. برای دسترسی کامل، خالی بگذارید.", - "Expiration": "انقضا", "Never expires": "هرگز منقضی نمی‌شود", "7 days": "7 روز", "30 days": "30 روز", @@ -1052,8 +1063,6 @@ "Last edited": "آخرین ویرایش", "Previously edited": "ویرایش‌های قبلی", "Sorry, the last change could not be persisted – please reload the page": "متأسفیم، آخرین تغییر ذخیره نشد – لطفاً صفحه را دوباره بارگذاری کنید", - "{{ count }} days": "{{ count }} روز", - "{{ count }} days_plural": "{{ count }} روز", "This document will be permanently deleted in <2> unless restored.": "این سند برای همیشه در <2> حذف خواهد شد، مگر اینکه بازیابی شود.", "Deleted by {{userName}}": "حذف شده توسط {{userName}}", "Observing {{ userName }}": "مشاهده {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "خواندن تمام داده‌ها", "Write all data": "نوشتن تمام داده‌ها", "Create all data": "Create all data", + "More filters": "فیلترهای بیشتر", + "More": "بیشتر", "Any collection": "هر مجموعه‌ای", "All time": "تمام زمان‌ها", - "Past day": "روز گذشته", - "Past week": "هفته گذشته", - "Past month": "ماه گذشته", - "Past year": "سال گذشته", "Any time": "هر زمانی", + "Choose the first and last day": "روز اول و آخر را انتخاب کنید", + "Apply": "اعمال", "Remove document filter": "حذف فیلتر سند", - "Any status": "هر وضعیتی", "Remove search": "جستجو را حذف کن", + "Remove filter": "حذف فیلتر", "Relevance": "Relevance", "Newest": "Newest", "Oldest": "Oldest", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "مرتب‌شده بر اساس", "Any author": "هر نگارنده", - "Search titles only": "فقط عناوین را جستجو کن", + "Past day": "روز گذشته", + "Past week": "هفته گذشته", + "Past month": "ماه گذشته", + "Past year": "سال گذشته", + "{{ count }} result": "{{ count }} نتیجه", + "{{ count }} result_plural": "{{ count }} نتیجه", "Please try again or contact support if the problem persists": "لطفاً دوباره تلاش کنید یا در صورت ادامه مشکل با پشتیبانی تماس بگیرید", "No documents found for your search filters.": "سندی برای فیلترهای جستجوی شما پیدا نشد.", + "Edited by": "ویرایش‌شده توسط", + "Status": "وضعیت", + "Updated": "به‌روزرسانی‌شده", + "Created by": "Created by", + "Title only": "فقط عنوان", + "From {{ date }}": "از {{ date }}", + "Until {{ date }}": "تا {{ date }}", "Settings saved": "تنظیمات ذخیره شد", "Copied to clipboard": "در کلیپ‌بورد کپی شد", "Control how AI features are used in the workspace.": "نحوه استفاده از قابلیت‌های هوش مصنوعی در فضای کاری را کنترل کنید.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "توسط {{ name }}", "Expired": "منقضی شده", "Last used": "آخرین بار استفاده شده", - "No expiry": "بدون انقضا", "Restricted scope": "دامنه محدود", "API key copied to clipboard": "کلید API کپی شد", "Copied": "کپی شد", "Revoking": "در حال لغو", "Are you sure you want to revoke the {{ tokenName }} token?": "آیا مطمئن هستید که می‌خواهید توکن {{ tokenName }} را لغو کنید؟", "Key": "Key", - "Created by": "Created by", "Never": "Never", "Expires": "Expires", "Could not load preference": "Could not load preference", @@ -1383,6 +1403,8 @@ "Synced <2>": "Synced <2>", "Date created": "تاریخ ایجاد", "Crop image": "برش تصویر", + "Change image": "تغییر تصویر", + "Remove image": "حذف تصویر", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "مرورگر شما نمی‌تواند تصاویر HEIC را بخواند؛ لطفاً ابتدا تصویر را به JPEG یا PNG تبدیل کنید", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "می‌توانید یک فایل zip را که پیش‌تر از گزینه JSON در نمونه‌ای دیگر صادر شده است وارد کنید. در {{ appName }}، صادر کردن را در نوار کناری تنظیمات باز کنید و روی صادر کردن داده‌ها کلیک کنید.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "فایل zip را از گزینه خروجی ها JSON در {{appName}} بکشید و رها کنید یا برای بارگذاری کلیک کنید", @@ -1422,6 +1444,7 @@ "Editors": "ویرایشگران", "Invited by": "دعوت‌شده توسط", "Joined": "پیوست", + "Any status": "هر وضعیتی", "Active": "فعال", "Could not load emojis": "Could not load emojis", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Custom emojis can be used throughout your workspace in documents, comments, and reactions.", @@ -1548,6 +1571,8 @@ "Default role": "نقش پیش‌فرض", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "نقش پیش‌فرض کاربر برای حساب‌های جدید. تغییر این تنظیمات بر حساب‌های کاربری موجود تأثیری نخواهد داشت.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "هنگامی که فعال باشد، هر عضو فضای کاری می‌تواند اسناد را به صورت عمومی در اینترنت به اشتراک بگذارد.", + "Default link expiration": "انقضای پیش‌فرض پیوند", + "New public links will expire after this period. Existing links are not affected.": "پیوندهای عمومی جدید پس از این مدت منقضی می‌شوند. پیوندهای موجود تحت تأثیر قرار نمی‌گیرند.", "Viewer document exports": "خروجی ها اسناد برای مشاهده‌گران", "When enabled, viewers can see download options for documents": "هنگامی که فعال باشد، مشاهده‌گران می‌توانند گزینه‌های دانلود برای اسناد را ببینند.", "Users can delete account": "کاربران می‌توانند حساب خود را حذف کنند.", @@ -1601,6 +1626,8 @@ "Expires today": "امروز منقضی می شود", "Expires tomorrow": "فردا منقضی می شود", "Expires {{ date }}": "منقضی می شود {{ date }}", + "Expires in {{ count }} day": "تا {{ count }} روز دیگر منقضی می‌شود", + "Expires in {{ count }} day_plural": "تا {{ count }} روز دیگر منقضی می‌شود", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.", "Installation URL": "Installation URL", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "نشانی اینترنتی نصب Diagrams.net شما. برای استفاده از app.diagrams.net میزبانی‌شده در فضای ابری، این قسمت را خالی بگذارید", diff --git a/shared/i18n/locales/fr_FR/translation.json b/shared/i18n/locales/fr_FR/translation.json index f01eef8084..b5913d8b40 100644 --- a/shared/i18n/locales/fr_FR/translation.json +++ b/shared/i18n/locales/fr_FR/translation.json @@ -215,6 +215,13 @@ "Share link copied": "Lien de partage copié", "Go to collection": "Aller à la collection", "Go to document": "Accéder au document", + "Custom": "Personnalisé", + "Set expiry": "Définir l’expiration", + "Remove expiry": "Supprimer l’expiration", + "Expiry removed": "Expiration supprimée", + "{{ count }} days": "{{ count }} jour", + "{{ count }} days_plural": "{{ count }} jours", + "Expiry updated": "Expiration mise à jour", "Revoke link": "Révoquer le lien", "Share link revoked": "Lien de partage révoqué", "{{ count }} share link revoked": "{{ count }} lien de partage révoqué", @@ -430,6 +437,8 @@ "our engineers have been notified": "nos ingénieurs ont été notifiés", "Clear cache + reload": "Vider le cache et recharger", "Show detail": "Afficher détail", + "Choose a date": "Choisissez une date", + "Remove expiration": "Supprimer l’expiration", "Exporting the collection may take some time.": "L'exportation de la collection peut prendre un certain temps.", "You will receive an email when it’s complete.": "Vous recevrez un e-mail lorsque l’opération sera terminée.", "Include attachments": "Inclure les pièces jointes", @@ -469,7 +478,6 @@ "Objects": "Objets", "Symbols": "Symboles", "Flags": "Drapeaux", - "Custom": "Personnalisé", "Word": "Word", "Plain text": "Texte brut", "Email": "E-mail", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Tout le monde dans l'espace de travail", "{{ count }} member": "{{ count }} membre", "{{ count }} member_plural": "{{ count }} membres", - "Public link copied to clipboard": "Lien public copié dans le presse-papier", "Only lowercase letters, digits and dashes allowed": "Seuls les lettres minuscules, les chiffres et le tiret sont autorisés", "Sorry, this link has already been used": "Désolé, ce lien a déjà été utilisé", "Publish to web": "Publier sur le web", @@ -639,6 +646,8 @@ "Logo": "Logo", "Add": "Ajouter", "Add or invite": "Ajouter ou inviter", + "This link expired on {{ date }} and can no longer be accessed.": "Ce lien a expiré le {{ date }} et n’est plus accessible.", + "Update expiry": "Mettre à jour l’expiration", "Sharing settings updated": "Paramètres de partage mis à jour", "Customize how the published document is displayed": "Personnalisez l’affichage du document publié", "Image options": "Options d'image", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Désactivez ce paramètre pour empêcher les moteurs de recherche d'indexer la page.", "Email subscriptions": "Abonnements email", "Allow viewers to subscribe and receive email notifications when documents are updated": "Autoriser les lecteurs à s’abonner et à recevoir des notifications par e-mail lorsque les documents sont mis à jour", + "Expiration": "Expiration", + "The public link will stop working after the selected date": "Le lien public cessera de fonctionner après la date sélectionnée", + "No expiry": "Pas d'expiration", "Something went wrong": "Un problème est survenu", "Check your email to confirm your subscription": "Vérifiez votre e-mail pour confirmer votre abonnement", "Get notified when this document is updated": "Recevoir une notification lorsque ce document est mis à jour", @@ -662,6 +674,7 @@ "Editor": "Éditeur", "Suggestions for invitation": "Suggestions d'invitation", "No matches": "Aucune correspondance", + "Public link copied to clipboard": "Lien public copié dans le presse-papier", "Created the document": "A créé le document", "Can view": "Peut voir", "Everyone in the collection": "Tout le monde dans la collection", @@ -924,11 +937,9 @@ "a document": "un document", "a collection": "une collection", "a group": "un groupe", - "Choose a date": "Choisissez une date", "API key created. Please copy the value now as it will not be shown again.": "Clé d'API créée. Veuillez copier la valeur maintenant car elle ne sera plus affichée.", "Scopes": "portée", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "Les portées séparées par des espaces limitent l’accès de cette clé API à des parties spécifiques de l’API. Laissez vide pour un accès complet.", - "Expiration": "Expiration", "Never expires": "N'expire jamais", "7 days": "7 jours", "30 days": "30 jours", @@ -1052,8 +1063,6 @@ "Last edited": "Dernière modification", "Previously edited": "Modifié précédemment", "Sorry, the last change could not be persisted – please reload the page": "Désolé, la dernière modification n'a pas pu être enregistrée - veuillez recharger la page", - "{{ count }} days": "{{ count }} jour", - "{{ count }} days_plural": "{{ count }} jours", "This document will be permanently deleted in <2> unless restored.": "Ce document sera définitivement supprimé dans <2> sauf s'il est restauré.", "Deleted by {{userName}}": "Supprimé par {{userName}}", "Observing {{ userName }}": "Observation de {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "Lire toutes les données", "Write all data": "Écrire toutes les données", "Create all data": "Créer toutes les données", + "More filters": "Plus de filtres", + "More": "Plus", "Any collection": "Toutes les collections", "All time": "Tout l'historique", - "Past day": "Hier", - "Past week": "La semaine dernière", - "Past month": "Le mois dernier", - "Past year": "L'année dernière", "Any time": "N'importe quand", + "Choose the first and last day": "Choisissez le premier et le dernier jour", + "Apply": "Appliquer", "Remove document filter": "Supprimer le filtre du document", - "Any status": "Tous les statuts", "Remove search": "Supprimer la recherche", + "Remove filter": "Supprimer le filtre", "Relevance": "Pertinence", "Newest": "Le plus récent", "Oldest": "Le plus ancien", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "Trié par", "Any author": "Tous les auteurs", - "Search titles only": "Chercher uniquement dans les titres", + "Past day": "Hier", + "Past week": "La semaine dernière", + "Past month": "Le mois dernier", + "Past year": "L'année dernière", + "{{ count }} result": "{{ count }} résultat", + "{{ count }} result_plural": "{{ count }} résultats", "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.", + "Edited by": "Modifié par", + "Status": "Statut", + "Updated": "Mis à jour", + "Created by": "Créé par", + "Title only": "Titre uniquement", + "From {{ date }}": "À partir du {{ date }}", + "Until {{ date }}": "Jusqu’au {{ date }}", "Settings saved": "Paramètres enregistrés", "Copied to clipboard": "Copié dans le presse-papier", "Control how AI features are used in the workspace.": "Contrôlez la manière dont les fonctionnalités d’IA sont utilisées dans l’espace de travail.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "par {{ name }}", "Expired": "Expiré", "Last used": "Dernier utilisé", - "No expiry": "Pas d'expiration", "Restricted scope": "Portée restreinte", "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 }}?", "Key": "Clé", - "Created by": "Créé par", "Never": "Jamais", "Expires": "Expire", "Could not load preference": "Impossible de charger les préférences", @@ -1383,6 +1403,8 @@ "Synced <2>": "Synchronisé <2>", "Date created": "Créé le", "Crop image": "Rogner l’image", + "Change image": "Modifier l’image", + "Remove image": "Supprimer l’image", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "Votre navigateur ne peut pas lire les images HEIC : veuillez d'abord convertir l'image au format JPEG ou PNG", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "Vous pouvez importer un fichier zip précédemment exporté à partir de l’option JSON d’une autre instance. Dans {{ appName }}, ouvrez Exporter dans la barre latérale Paramètres et cliquez sur Exporter les données.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Glissez et déposez le fichier zip provenant d'un export JSON de {{appName}}, ou cliquez pour le téléverser", @@ -1422,6 +1444,7 @@ "Editors": "Éditeurs", "Invited by": "Invité par", "Joined": "Rejoint", + "Any status": "Tous les statuts", "Active": "Actif", "Could not load emojis": "Impossible de charger les émoticônes.", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "\"Les émoticônes personnalisées peuvent être utilisés dans tout votre espace de travail dans des documents, des commentaires et des réactions.\"", @@ -1548,6 +1571,8 @@ "Default role": "Rôle par défaut", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "Rôle utilisateur donné par défaut aux nouveaux comptes. La modification de ce paramètre n'affecte pas les comptes existants.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Lorsque cette option est activée, les documents peuvent être partagés publiquement sur Internet par n'importe quel membre de l'espace de travail", + "Default link expiration": "Expiration par défaut des liens", + "New public links will expire after this period. Existing links are not affected.": "Les nouveaux liens publics expireront après cette période. Les liens existants ne sont pas concernés.", "Viewer document exports": "Export de documents pour les lecteurs", "When enabled, viewers can see download options for documents": "Lorsque cette option est activée, les utilisateurs peuvent voir les options de téléchargement des documents", "Users can delete account": "Les utilisateurs peuvent supprimer leur compte", @@ -1601,6 +1626,8 @@ "Expires today": "Expire aujourd'hui", "Expires tomorrow": "Expire demain", "Expires {{ date }}": "Expire le {{ date }}", + "Expires in {{ count }} day": "Expire dans {{ count }} jour", + "Expires in {{ count }} day_plural": "Expire dans {{ count }} jours", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "\"Configurez une URL d'installation personnalisée de Diagrams.net pour utiliser votre propre instance autohébergée pour intégrer des diagrammes dans vos documents.\"", "Installation URL": "URL d'installation", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "L’URL de votre installation Diagrams.net. Laissez ce champ vide pour utiliser app.diagrams.net hébergée dans le cloud", diff --git a/shared/i18n/locales/he_IL/translation.json b/shared/i18n/locales/he_IL/translation.json index 87af1d582b..14e0be6684 100644 --- a/shared/i18n/locales/he_IL/translation.json +++ b/shared/i18n/locales/he_IL/translation.json @@ -215,6 +215,13 @@ "Share link copied": "קישור השיתוף הועתק", "Go to collection": "עבור לאוסף", "Go to document": "עבור למסמך", + "Custom": "מִנְהָג", + "Set expiry": "הגדרת תפוגה", + "Remove expiry": "הסרת תפוגה", + "Expiry removed": "התפוגה הוסרה", + "{{ count }} days": "{{ count }} יום", + "{{ count }} days_plural": "{{ count }} ימים", + "Expiry updated": "התפוגה עודכנה", "Revoke link": "בטל קישור", "Share link revoked": "קישור השיתוף בוטל", "{{ count }} share link revoked": "{{ count }} קישור שיתוף בוטל", @@ -430,6 +437,8 @@ "our engineers have been notified": "המהנדסים שלנו קיבלו הודעה", "Clear cache + reload": "נקה מטמון + טען מחדש", "Show detail": "הצג פרטים", + "Choose a date": "בחר תאריך", + "Remove expiration": "הסר תפוגה", "Exporting the collection may take some time.": "ייצוא האוסף עשוי להימשך זמן מה.", "You will receive an email when it’s complete.": "תקבל הודעת אימייל כשהתהליך יושלם.", "Include attachments": "כלול קבצים מצורפים", @@ -469,7 +478,6 @@ "Objects": "חפצים", "Symbols": "סמלים", "Flags": "דגלים", - "Custom": "מִנְהָג", "Word": "וורד", "Plain text": "טקסט פשוט", "Email": "אֶלֶקטרוֹנִי", @@ -616,7 +624,6 @@ "Everyone in the workspace": "כולם בסביבת העבודה", "{{ count }} member": "חבר {{ count }}", "{{ count }} member_plural": "{{ count }} חברים", - "Public link copied to clipboard": "הקישור הציבורי הועתק ללוח", "Only lowercase letters, digits and dashes allowed": "מותרים רק אותיות קטנות, ספרות ומקפים", "Sorry, this link has already been used": "מצטערים, הקישור הזה כבר היה בשימוש", "Publish to web": "Publish to web", @@ -639,6 +646,8 @@ "Logo": "סֵמֶל", "Add": "לְהוֹסִיף", "Add or invite": "הוסף או הזמן", + "This link expired on {{ date }} and can no longer be accessed.": "תוקף הקישור פג ב-{{ date }} ואין עוד אפשרות לגשת אליו.", + "Update expiry": "עדכן תפוגה", "Sharing settings updated": "Sharing settings updated", "Customize how the published document is displayed": "Customize how the published document is displayed", "Image options": "Image options", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "השבת הגדרה זו כדי למנוע ממנועי חיפוש להוסיף את הדף לאינדקס", "Email subscriptions": "מנויי אימייל", "Allow viewers to subscribe and receive email notifications when documents are updated": "אפשר לצופים להירשם ולקבל התראות באימייל כאשר מסמכים מתעדכנים", + "Expiration": "פְּקִיעָה", + "The public link will stop working after the selected date": "הקישור הציבורי יפסיק לפעול לאחר התאריך שנבחר", + "No expiry": "אין תפוגה", "Something went wrong": "משהו השתבש", "Check your email to confirm your subscription": "בדוק את האימייל שלך כדי לאשר את המנוי שלך", "Get notified when this document is updated": "קבל הודעה כאשר מסמך זה מתעדכן", @@ -662,6 +674,7 @@ "Editor": "עוֹרֵך", "Suggestions for invitation": "הצעות להזמנה", "No matches": "אין התאמות", + "Public link copied to clipboard": "הקישור הציבורי הועתק ללוח", "Created the document": "יצר את המסמך", "Can view": "יכול לצפות", "Everyone in the collection": "כולם באוסף", @@ -924,11 +937,9 @@ "a document": "מסמך", "a collection": "אוסף", "a group": "קבוצה", - "Choose a date": "בחר תאריך", "API key created. Please copy the value now as it will not be shown again.": "מפתח API נוצר. אנא העתק את הערך כעת מכיוון שהוא לא יוצג שוב.", "Scopes": "היקפים", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "היקפים המופרדים ברווחים מגבילים את הגישה של מפתח API זה לחלקים מסוימים של ה-API. יש להשאיר ריק לגישה מלאה.", - "Expiration": "פְּקִיעָה", "Never expires": "לעולם לא יפוג", "7 days": "7 ימים", "30 days": "30 ימים", @@ -1052,8 +1063,6 @@ "Last edited": "נערך לאחרונה", "Previously edited": "נערך בעבר", "Sorry, the last change could not be persisted – please reload the page": "מצטערים, לא ניתן היה להמשיך את השינוי האחרון - אנא טען מחדש את הדף", - "{{ count }} days": "{{ count }} יום", - "{{ count }} days_plural": "{{ count }} ימים", "This document will be permanently deleted in <2> unless restored.": "מסמך זה יימחק לצמיתות ב-<2> אלא אם ישוחזר.", "Deleted by {{userName}}": "נמחק על ידי {{userName}}", "Observing {{ userName }}": "צופה ב-{{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "קרא את כל הנתונים", "Write all data": "כתוב את כל הנתונים", "Create all data": "Create all data", + "More filters": "מסננים נוספים", + "More": "עוד", "Any collection": "כל אוסף", "All time": "כל הזמן", - "Past day": "היום שעבר", - "Past week": "שבוע שעבר", - "Past month": "החודש האחרון", - "Past year": "שנה שעברה", "Any time": "בכל זמן", + "Choose the first and last day": "בחרו את היום הראשון והאחרון", + "Apply": "החלה", "Remove document filter": "הסר מסנן מסמכים", - "Any status": "כל סטטוס", "Remove search": "הסר את החיפוש", + "Remove filter": "הסר מסנן", "Relevance": "רלוונטיות", "Newest": "הכי חדש", "Oldest": "הכי ותיק", "A → Z": "א → ת", "Z → A": "Z → א", + "Sorted by": "ממוין לפי", "Any author": "כל מחבר", - "Search titles only": "חיפוש כותרות בלבד", + "Past day": "היום שעבר", + "Past week": "שבוע שעבר", + "Past month": "החודש האחרון", + "Past year": "שנה שעברה", + "{{ count }} result": "{{ count }} תוצאה", + "{{ count }} result_plural": "{{ count }} תוצאות", "Please try again or contact support if the problem persists": "אנא נסה שוב או פנה לתמיכה אם הבעיה נמשכת", "No documents found for your search filters.": "לא נמצאו מסמכים עבור מסנני החיפוש שלך.", + "Edited by": "נערך על ידי", + "Status": "סטטוס", + "Updated": "מעודכן", + "Created by": "Created by", + "Title only": "כותרת בלבד", + "From {{ date }}": "החל מ־{{ date }}", + "Until {{ date }}": "עד {{ date }}", "Settings saved": "ההגדרות נשמרו", "Copied to clipboard": "הועתק ללוח", "Control how AI features are used in the workspace.": "שלוט באופן השימוש בתכונות AI בסביבת העבודה.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "מאת {{ name }}", "Expired": "פג תוקף", "Last used": "בשימוש אחרון", - "No expiry": "אין תפוגה", "Restricted scope": "היקף מוגבל", "API key copied to clipboard": "מפתח API הועתק ללוח", "Copied": "מוּעֲתָק", "Revoking": "מבטל", "Are you sure you want to revoke the {{ tokenName }} token?": "האם אתה בטוח שברצונך לבטל את האסימון {{ tokenName }}?", "Key": "Key", - "Created by": "Created by", "Never": "Never", "Expires": "Expires", "Could not load preference": "Could not load preference", @@ -1383,6 +1403,8 @@ "Synced <2>": "מסונכרן <2>", "Date created": "תאריך יצירה", "Crop image": "חתוך תמונה", + "Change image": "שנה תמונה", + "Remove image": "הסר תמונה", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "הדפדפן שלך אינו יכול לקרוא תמונות HEIC – המר תחילה את התמונה ל-JPEG או PNG", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "ניתן לייבא קובץ zip שיוצא בעבר מאפשרות ה-JSON במופע אחר. ב-{{ appName }}, פתח את ייצוא בסרגל הצד של ההגדרות ולחץ על ייצוא נתונים.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "גרור ושחרר את קובץ ה-zip מאפשרות הייצוא של JSON ב-{{appName}}, או לחץ כדי להעלות", @@ -1422,6 +1444,7 @@ "Editors": "עורכים", "Invited by": "הוזמן על ידי", "Joined": "הצטרף", + "Any status": "כל סטטוס", "Active": "פָּעִיל", "Could not load emojis": "לא ניתן לטעון אמוג'י", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "ניתן להשתמש באימוג'י מותאמים אישית בכל סביבת העבודה שלך במסמכים, הערות ותגובות.", @@ -1548,6 +1571,8 @@ "Default role": "תפקיד ברירת מחדל", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "תפקיד המשתמש המוגדר כברירת מחדל עבור חשבונות חדשים. שינוי הגדרה זו אינו משפיע על חשבונות משתמש קיימים.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "כאשר מופעל, מסמכים יכולים להיות משותפים באופן ציבורי באינטרנט על ידי כל חבר בסביבת העבודה", + "Default link expiration": "תפוגת קישור כברירת מחדל", + "New public links will expire after this period. Existing links are not affected.": "תוקפם של קישורים ציבוריים חדשים יפוג לאחר תקופה זו. קישורים קיימים אינם מושפעים.", "Viewer document exports": "ייצוא מסמכים של הצופה", "When enabled, viewers can see download options for documents": "כאשר מופעל, הצופים יכולים לראות אפשרויות הורדה של מסמכים", "Users can delete account": "משתמשים יכולים למחוק חשבון", @@ -1601,6 +1626,8 @@ "Expires today": "יפוג היום", "Expires tomorrow": "יפוג מחר", "Expires {{ date }}": "פג תוקף {{ date }}", + "Expires in {{ count }} day": "יפוג בעוד {{ count }} ימים", + "Expires in {{ count }} day_plural": "יפוג בעוד {{ count }} ימים", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "הגדר כתובת אתר להתקנת Diagrams.net מותאמת אישית כדי להשתמש במופע המתארח בעצמך להטמעת דיאגרמות במסמכים שלך.", "Installation URL": "כתובת אתר להתקנה", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "כתובת ה-URL של התקנת Diagrams.net שלך. השאר ריק כדי להשתמש ב-app.diagrams.net המתארח בענן", diff --git a/shared/i18n/locales/hu_HU/translation.json b/shared/i18n/locales/hu_HU/translation.json index 4ad401ef0d..c1ab571e5d 100644 --- a/shared/i18n/locales/hu_HU/translation.json +++ b/shared/i18n/locales/hu_HU/translation.json @@ -215,6 +215,13 @@ "Share link copied": "Megosztási hivatkozás másolva", "Go to collection": "Irány a gyűjteményhez", "Go to document": "Tovább a dokumentumhoz", + "Custom": "Egyedi", + "Set expiry": "Lejárat beállítása", + "Remove expiry": "Lejárat eltávolítása", + "Expiry removed": "Lejárat eltávolítva", + "{{ count }} days": "{{ count }} szó", + "{{ count }} days_plural": "{{ count }} szó", + "Expiry updated": "Lejárat frissítve", "Revoke link": "Hivatkozás visszavonása", "Share link revoked": "Hivatkozás megosztás visszavonva", "{{ count }} share link revoked": "{{ count }} megosztási hivatkozás visszavonva", @@ -430,6 +437,8 @@ "our engineers have been notified": "a mérnökeinket éretsítettük", "Clear cache + reload": "Cache törlése és újratöltés", "Show detail": "Részletek mutatása", + "Choose a date": "Válassz dátumot", + "Remove expiration": "Lejárat eltávolítása", "Exporting the collection may take some time.": "A gyűjtemény exportálása eltarthat egy ideig.", "You will receive an email when it’s complete.": "E-mailt fog kapni, amikor elkészül.", "Include attachments": "Csatolmányokkal együtt", @@ -469,7 +478,6 @@ "Objects": "Tárgyak", "Symbols": "Szimbólumok", "Flags": "Zászlók", - "Custom": "Egyedi", "Word": "Word", "Plain text": "Egyszerű szöveg", "Email": "Email", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Mindenki a munkaterületen", "{{ count }} member": "{{ count }} tag", "{{ count }} member_plural": "{{ count }} tag", - "Public link copied to clipboard": "A nyilvános link a vágólapra lett másolva", "Only lowercase letters, digits and dashes allowed": "Csak kisbetűk, számok és kötőjelek használhatók", "Sorry, this link has already been used": "Elnézést, ez a hivatkozás már használatban van", "Publish to web": "Publish to web", @@ -639,6 +646,8 @@ "Logo": "Logó", "Add": "Hozzáadás", "Add or invite": "Hozzáadás vagy meghívás", + "This link expired on {{ date }} and can no longer be accessed.": "Ez a hivatkozás {{ date }} dátumán lejárt, és már nem érhető el.", + "Update expiry": "Lejárat frissítése", "Sharing settings updated": "Sharing settings updated", "Customize how the published document is displayed": "Customize how the published document is displayed", "Image options": "Image options", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Kapcsold ki ezt a beállítást, hogy megakadályozzd a keresőmotorokat az oldal indexelésében.", "Email subscriptions": "Email subscriptions", "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", + "Expiration": "Expiration", + "The public link will stop working after the selected date": "A nyilvános hivatkozás a kiválasztott dátum után nem fog működni", + "No expiry": "No expiry", "Something went wrong": "Something went wrong", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -662,6 +674,7 @@ "Editor": "Szerkesztő", "Suggestions for invitation": "Javaslatok meghíváshoz", "No matches": "Nincs találat", + "Public link copied to clipboard": "A nyilvános link a vágólapra lett másolva", "Created the document": "Dokumentum létrehozása", "Can view": "Megtekintheti", "Everyone in the collection": "Mindenki a gyűjteményben", @@ -924,11 +937,9 @@ "a document": "egy dokumentum", "a collection": "egy gyűjtemény", "a group": "a group", - "Choose a date": "Válassz dátumot", "API key created. Please copy the value now as it will not be shown again.": "API-kulcs létrehozva. Most másolja ki az értéket, mivel ez többé nem jelenik meg.", "Scopes": "Hatáskörök", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "A szóközzel elválasztott hatókörök az API-kulcs hozzáférését az API meghatározott részeire korlátozzák. A teljes hozzáféréshez hagyd üresen.", - "Expiration": "Expiration", "Never expires": "Never expires", "7 days": "7 nap", "30 days": "30 nap", @@ -1052,8 +1063,6 @@ "Last edited": "Utoljára szerkesztve", "Previously edited": "Korábban szerkesztve", "Sorry, the last change could not be persisted – please reload the page": "Elnézést, az utolsó változás nem menthető – kérem töltse újra az oldalt", - "{{ count }} days": "{{ count }} szó", - "{{ count }} days_plural": "{{ count }} szó", "This document will be permanently deleted in <2> unless restored.": "Ez a dokumentum véglegesen törölve lesz <2>, hacsak nem álítja vissza.", "Deleted by {{userName}}": "Törölte: {{userName}}", "Observing {{ userName }}": "Vizsgálja: {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "Read all data", "Write all data": "Write all data", "Create all data": "Create all data", + "More filters": "További szűrők", + "More": "Továbbiak", "Any collection": "Bármelyik gyűjtemény", "All time": "Bármikor", - "Past day": "Elmúlt nap", - "Past week": "Elmúlt hét", - "Past month": "Elmúlt hónap", - "Past year": "Elmúlt év", "Any time": "Bármikor", + "Choose the first and last day": "Válassza ki az első és az utolsó napot", + "Apply": "Alkalmaz", "Remove document filter": "Remove document filter", - "Any status": "Bármilyen állapot", "Remove search": "Remove search", + "Remove filter": "Szűrő eltávolítása", "Relevance": "Relevance", "Newest": "Newest", "Oldest": "Oldest", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "Rendezés alapja", "Any author": "Bármely szerző", - "Search titles only": "Keresés csak címekben", + "Past day": "Elmúlt nap", + "Past week": "Elmúlt hét", + "Past month": "Elmúlt hónap", + "Past year": "Elmúlt év", + "{{ count }} result": "{{ count }} találat", + "{{ count }} result_plural": "{{ count }} találat", "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.", + "Edited by": "Szerkesztette", + "Status": "Állapot", + "Updated": "Frissítve", + "Created by": "Created by", + "Title only": "Csak a cím", + "From {{ date }}": "Ettől: {{ date }}", + "Until {{ date }}": "Eddig: {{ date }}", "Settings saved": "Beállítások elmentve", "Copied to clipboard": "Vágólapra másolva", "Control how AI features are used in the workspace.": "Szabályozza, hogyan használhatók az AI-funkciók a munkaterületen.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "by {{ name }}", "Expired": "Lejárt", "Last used": "Last used", - "No expiry": "No expiry", "Restricted scope": "Restricted scope", "API key copied to clipboard": "API-kulcs a vágólapra másolva", "Copied": "Copied", "Revoking": "Revoking", "Are you sure you want to revoke the {{ tokenName }} token?": "Are you sure you want to revoke the {{ tokenName }} token?", "Key": "Key", - "Created by": "Created by", "Never": "Never", "Expires": "Expires", "Could not load preference": "Could not load preference", @@ -1383,6 +1403,8 @@ "Synced <2>": "Synced <2>", "Date created": "Létrehozás dátuma", "Crop image": "Crop image", + "Change image": "Kép módosítása", + "Remove image": "Kép eltávolítása", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "A böngészője nem tudja olvasni a HEIC-képeket – először alakítsa át a képet JPEG- vagy PNG-formátumra", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "Importálhat egy ZIP-fájlt, amelyet korábban egy másik példányban a JSON lehetőséggel exportáltak. A(z) {{ appName }} alkalmazásban nyissa meg a Beállítások oldalsáv Exportálás elemét, majd kattintson az Adatok exportálása lehetőségre.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload", @@ -1422,6 +1444,7 @@ "Editors": "Szerkesztők", "Invited by": "Meghívta", "Joined": "Csatlakozott", + "Any status": "Bármilyen állapot", "Active": "Aktív", "Could not load emojis": "Could not load emojis", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Custom emojis can be used throughout your workspace in documents, comments, and reactions.", @@ -1548,6 +1571,8 @@ "Default role": "Alapértelmezett szerep", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "The default user role for new accounts. Changing this setting does not affect existing user accounts.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "When enabled, documents can be shared publicly on the internet by any member of the workspace", + "Default link expiration": "Alapértelmezett hivatkozáslejárat", + "New public links will expire after this period. Existing links are not affected.": "Az új nyilvános hivatkozások ezen időszak után lejárnak. A meglévő hivatkozásokat ez nem érinti.", "Viewer document exports": "Viewer document exports", "When enabled, viewers can see download options for documents": "When enabled, viewers can see download options for documents", "Users can delete account": "Users can delete account", @@ -1601,6 +1626,8 @@ "Expires today": "Expires today", "Expires tomorrow": "Expires tomorrow", "Expires {{ date }}": "Expires {{ date }}", + "Expires in {{ count }} day": "{{ count }} nap múlva lejár", + "Expires in {{ count }} day_plural": "{{ count }} nap múlva lejár", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.", "Installation URL": "Installation URL", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "A Diagrams.net-telepítés URL-címe. Hagyja üresen a felhőben üzemeltetett app.diagrams.net használatához", diff --git a/shared/i18n/locales/id_ID/translation.json b/shared/i18n/locales/id_ID/translation.json index dad4cb5c4d..ea37cc206a 100644 --- a/shared/i18n/locales/id_ID/translation.json +++ b/shared/i18n/locales/id_ID/translation.json @@ -215,6 +215,13 @@ "Share link copied": "Tautan berbagi disalin", "Go to collection": "Go to collection", "Go to document": "Menuju ke dokumen", + "Custom": "Custom", + "Set expiry": "Atur masa berlaku", + "Remove expiry": "Hapus masa berlaku", + "Expiry removed": "Masa berlaku dihapus", + "{{ count }} days": "{{ count }} day", + "{{ count }} days_plural": "{{ count }} days", + "Expiry updated": "Masa berlaku diperbarui", "Revoke link": "Lepas tautan", "Share link revoked": "Tautan berbagi dicabut", "{{ count }} share link revoked": "{{ count }} tautan berbagi dicabut", @@ -430,6 +437,8 @@ "our engineers have been notified": "teknisi kami telah diberitahu", "Clear cache + reload": "Clear cache + reload", "Show detail": "Show detail", + "Choose a date": "Choose a date", + "Remove expiration": "Hapus masa berlaku", "Exporting the collection may take some time.": "Mengekspor koleksi mungkin memerlukan waktu.", "You will receive an email when it’s complete.": "Anda akan menerima email setelah selesai.", "Include attachments": "Include attachments", @@ -469,7 +478,6 @@ "Objects": "Objects", "Symbols": "Symbols", "Flags": "Flags", - "Custom": "Custom", "Word": "Word", "Plain text": "Teks biasa", "Email": "Surel", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Everyone in the workspace", "{{ count }} member": "{{ count }} anggota", "{{ count }} member_plural": "{{ count }} anggota", - "Public link copied to clipboard": "Public link copied to clipboard", "Only lowercase letters, digits and dashes allowed": "Hanya huruf kecil, angka, dan tanda hubung diperbolehkan", "Sorry, this link has already been used": "Maaf, tautan ini telah digunakan", "Publish to web": "Publish to web", @@ -639,6 +646,8 @@ "Logo": "Logo", "Add": "Tambahkan", "Add or invite": "Add or invite", + "This link expired on {{ date }} and can no longer be accessed.": "Tautan ini kedaluwarsa pada {{ date }} dan tidak dapat diakses lagi.", + "Update expiry": "Perbarui masa berlaku", "Sharing settings updated": "Sharing settings updated", "Customize how the published document is displayed": "Customize how the published document is displayed", "Image options": "Image options", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Disable this setting to discourage search engines from indexing the page", "Email subscriptions": "Email subscriptions", "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", + "Expiration": "Expiration", + "The public link will stop working after the selected date": "Tautan publik akan berhenti berfungsi setelah tanggal yang dipilih", + "No expiry": "No expiry", "Something went wrong": "Something went wrong", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -662,6 +674,7 @@ "Editor": "Editor", "Suggestions for invitation": "Suggestions for invitation", "No matches": "No matches", + "Public link copied to clipboard": "Public link copied to clipboard", "Created the document": "Created the document", "Can view": "Can view", "Everyone in the collection": "Everyone in the collection", @@ -924,11 +937,9 @@ "a document": "sebuah dokumen", "a collection": "sebuah koleksi", "a group": "a group", - "Choose a date": "Choose a date", "API key created. Please copy the value now as it will not be shown again.": "API key created. Please copy the value now as it will not be shown again.", "Scopes": "Scopes", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "Cakupan yang dipisahkan spasi membatasi akses kunci API ini ke bagian tertentu dari API. Kosongkan untuk akses penuh.", - "Expiration": "Expiration", "Never expires": "Never expires", "7 days": "7 days", "30 days": "30 days", @@ -1052,8 +1063,6 @@ "Last edited": "Terakhir disunting", "Previously edited": "Sebelumnya diedit", "Sorry, the last change could not be persisted – please reload the page": "Maaf, perubahan terakhir tidak dapat disimpan – muat ulang halaman", - "{{ count }} days": "{{ count }} day", - "{{ count }} days_plural": "{{ count }} days", "This document will be permanently deleted in <2> unless restored.": "Dokumen ini akan dihapus secara permanen di <2> kecuali dipulihkan.", "Deleted by {{userName}}": "Dihapus oleh {{userName}}", "Observing {{ userName }}": "Mengamati {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "Read all data", "Write all data": "Write all data", "Create all data": "Create all data", + "More filters": "Filter lainnya", + "More": "Lainnya", "Any collection": "Semua koleksi", "All time": "All time", - "Past day": "Kemarin", - "Past week": "Minggu lalu", - "Past month": "Bulan lalu", - "Past year": "Tahun lalu", "Any time": "Kapan pun", + "Choose the first and last day": "Pilih hari pertama dan terakhir", + "Apply": "Terapkan", "Remove document filter": "Remove document filter", - "Any status": "Any status", "Remove search": "Hapus pencarian", + "Remove filter": "Hapus filter", "Relevance": "Relevance", "Newest": "Newest", "Oldest": "Oldest", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "Diurutkan berdasarkan", "Any author": "Semua penulis", - "Search titles only": "Cari judul saja", + "Past day": "Kemarin", + "Past week": "Minggu lalu", + "Past month": "Bulan lalu", + "Past year": "Tahun lalu", + "{{ count }} result": "{{ count }} hasil", + "{{ count }} result_plural": "{{ count }} hasil", "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.", + "Edited by": "Diedit oleh", + "Status": "Status", + "Updated": "Diperbarui", + "Created by": "Created by", + "Title only": "Hanya judul", + "From {{ date }}": "Dari {{ date }}", + "Until {{ date }}": "Hingga {{ date }}", "Settings saved": "Pengaturan disimpan", "Copied to clipboard": "Disalin ke papan klip", "Control how AI features are used in the workspace.": "Kontrol cara fitur AI digunakan di ruang kerja.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "oleh {{ name }}", "Expired": "Kedaluwarsa", "Last used": "Last used", - "No expiry": "No expiry", "Restricted scope": "Restricted scope", "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 }}?", "Key": "Key", - "Created by": "Created by", "Never": "Never", "Expires": "Expires", "Could not load preference": "Could not load preference", @@ -1383,6 +1403,8 @@ "Synced <2>": "Synced <2>", "Date created": "Date created", "Crop image": "Crop image", + "Change image": "Ganti gambar", + "Remove image": "Hapus gambar", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "Browser Anda tidak dapat membaca gambar HEIC – silakan ubah gambar menjadi JPEG atau PNG terlebih dahulu", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "Anda dapat mengimpor file zip yang sebelumnya diekspor dari opsi JSON di instans lain. Di {{ appName }}, buka Ekspor di bilah sisi Pengaturan dan klik Ekspor data.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Drag and drop file zip dari opsi ekspor JSON di {{appName}}, atau klik untuk mengunggah", @@ -1422,6 +1444,7 @@ "Editors": "Editors", "Invited by": "Diundang oleh", "Joined": "Bergabung", + "Any status": "Any status", "Active": "Aktif", "Could not load emojis": "Could not load emojis", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Custom emojis can be used throughout your workspace in documents, comments, and reactions.", @@ -1548,6 +1571,8 @@ "Default role": "Peran default", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "Peran pengguna default untuk akun baru. Mengubah setelan ini tidak memengaruhi akun pengguna yang ada.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Saat diaktifkan, dokumen dapat dibagikan secara publik di internet oleh anggota workspace mana pun", + "Default link expiration": "Masa berlaku tautan default", + "New public links will expire after this period. Existing links are not affected.": "Tautan publik baru akan kedaluwarsa setelah periode ini. Tautan yang ada tidak terpengaruh.", "Viewer document exports": "Ekspor dokumen oleh viewer", "When enabled, viewers can see download options for documents": "Saat diaktifkan, viewer dapat melihat opsi unduhan untuk dokumen", "Users can delete account": "Users can delete account", @@ -1601,6 +1626,8 @@ "Expires today": "Expires today", "Expires tomorrow": "Expires tomorrow", "Expires {{ date }}": "Expires {{ date }}", + "Expires in {{ count }} day": "Kedaluwarsa dalam {{ count }} hari", + "Expires in {{ count }} day_plural": "Kedaluwarsa dalam {{ count }} hari", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.", "Installation URL": "Installation URL", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "URL instalasi Diagrams.net Anda. Biarkan kosong untuk menggunakan app.diagrams.net yang dihosting di cloud", diff --git a/shared/i18n/locales/it_IT/translation.json b/shared/i18n/locales/it_IT/translation.json index d47e507a01..77c0d0de65 100644 --- a/shared/i18n/locales/it_IT/translation.json +++ b/shared/i18n/locales/it_IT/translation.json @@ -215,6 +215,13 @@ "Share link copied": "Link di condivisione copiato", "Go to collection": "Vai alla raccolta", "Go to document": "Vai al documento", + "Custom": "Personalizzato", + "Set expiry": "Imposta scadenza", + "Remove expiry": "Rimuovi scadenza", + "Expiry removed": "Scadenza rimossa", + "{{ count }} days": "{{ count }} giorno", + "{{ count }} days_plural": "{{ count }} giorni", + "Expiry updated": "Scadenza aggiornata", "Revoke link": "Revoca il link", "Share link revoked": "Link condivisione revocato", "{{ count }} share link revoked": "{{ count }} link di condivisione revocato", @@ -430,6 +437,8 @@ "our engineers have been notified": "i nostri ingegneri sono stati informati", "Clear cache + reload": "Pulisci la cache e aggiorna", "Show detail": "Mostra dettagli", + "Choose a date": "Seleziona una data", + "Remove expiration": "Rimuovi scadenza", "Exporting the collection may take some time.": "L'esportazione della raccolta potrebbe richiedere del tempo.", "You will receive an email when it’s complete.": "Riceverai un'email quando sarà completato.", "Include attachments": "Includi allegati", @@ -469,7 +478,6 @@ "Objects": "Oggetti", "Symbols": "Simboli", "Flags": "Bandiere", - "Custom": "Personalizzato", "Word": "Word", "Plain text": "Testo normale", "Email": "Email", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Tutti nel workspace", "{{ count }} member": "{{ count }} membro", "{{ count }} member_plural": "{{ count }} membri", - "Public link copied to clipboard": "Link pubblico copiato negli appunti", "Only lowercase letters, digits and dashes allowed": "Sono consentite solo lettere minuscole, cifre e trattini", "Sorry, this link has already been used": "Spiacenti, questo link è già stato utilizzato", "Publish to web": "Pubblica su web", @@ -639,6 +646,8 @@ "Logo": "Logo", "Add": "Aggiungi", "Add or invite": "Aggiungi o invita", + "This link expired on {{ date }} and can no longer be accessed.": "Questo link è scaduto il {{ date }} e non è più accessibile.", + "Update expiry": "Aggiorna scadenza", "Sharing settings updated": "Impostazioni di condivisione aggiornate", "Customize how the published document is displayed": "Personalizza come viene visualizzato il documento pubblicato", "Image options": "Opzioni dell'immagine", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Disabilita questa impostazione per scoraggiare i motori di ricerca dall'indicizzare la pagina", "Email subscriptions": "Iscrizioni via email", "Allow viewers to subscribe and receive email notifications when documents are updated": "Consenti agli utenti di iscriversi e ricevere notifiche via email quando i documenti vengono aggiornati", + "Expiration": "Scadenza", + "The public link will stop working after the selected date": "Il link pubblico smetterà di funzionare dopo la data selezionata", + "No expiry": "Nessuna scadenza", "Something went wrong": "Qualcosa è andato storto", "Check your email to confirm your subscription": "Controlla la tua email per confermare la tua iscrizione", "Get notified when this document is updated": "Ricevi una notifica quando questo documento viene aggiornat", @@ -662,6 +674,7 @@ "Editor": "Editor", "Suggestions for invitation": "Suggerimenti per l'invito", "No matches": "Nessun risultato", + "Public link copied to clipboard": "Link pubblico copiato negli appunti", "Created the document": "ha creato il documento", "Can view": "Può visualizzare", "Everyone in the collection": "Tutti nella collezione", @@ -924,11 +937,9 @@ "a document": "un documento", "a collection": "una raccolta", "a group": "un gruppo", - "Choose a date": "Seleziona una data", "API key created. Please copy the value now as it will not be shown again.": "Chiave API creata. Si prega di copiare il valore ora perché non verrà mostrato di nuovo.", "Scopes": "Ambiti", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "Gli ambiti separati da spazi limitano l'accesso di questa chiave API a parti specifiche dell'API. Lascia vuoto per l'accesso completo.", - "Expiration": "Scadenza", "Never expires": "Non scade mai", "7 days": "7 giorni", "30 days": "30 giorni", @@ -1052,8 +1063,6 @@ "Last edited": "Ultima modifica", "Previously edited": "Modificato precedentemente", "Sorry, the last change could not be persisted – please reload the page": "Spiacenti, non è stato possibile mantenere l'ultima modifica. Si prega di ricaricare la pagina", - "{{ count }} days": "{{ count }} giorno", - "{{ count }} days_plural": "{{ count }} giorni", "This document will be permanently deleted in <2> unless restored.": "Questo documento verrà eliminato definitivamente tra <2> salvo ripristino.", "Deleted by {{userName}}": "Eliminato da {{userName}}", "Observing {{ userName }}": "Osservazione di {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "Leggi tutti i dati", "Write all data": "Scrivi tutti i dati", "Create all data": "Crea tutti i dati", + "More filters": "Altri filtri", + "More": "Altro", "Any collection": "Qualsiasi raccolta", "All time": "Sempre", - "Past day": "Ieri", - "Past week": "Settimana scorsa", - "Past month": "Mese scorso", - "Past year": "Anno scorso", "Any time": "Qualsiasi momento", + "Choose the first and last day": "Scegli il primo e l'ultimo giorno", + "Apply": "Applica", "Remove document filter": "Rimuovi filtro documento", - "Any status": "Qualsiasi stato", "Remove search": "Rimuovi ricerca", + "Remove filter": "Rimuovi filtro", "Relevance": "Rilevanza", "Newest": "Il più recente", "Oldest": "Meno recente", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "Ordinato per", "Any author": "Qualsiasi autore", - "Search titles only": "Cerca solo nei titoli", + "Past day": "Ieri", + "Past week": "Settimana scorsa", + "Past month": "Mese scorso", + "Past year": "Anno scorso", + "{{ count }} result": "{{ count }} risultato", + "{{ count }} result_plural": "{{ count }} risultati", "Please try again or contact support if the problem persists": "Riprova o contatta l'assistenza se il problema persiste", "No documents found for your search filters.": "Nessun documento trovato per i tuoi filtri.", + "Edited by": "Modificato da", + "Status": "Stato", + "Updated": "Aggiornato", + "Created by": "Creato da", + "Title only": "Solo titolo", + "From {{ date }}": "Dal {{ date }}", + "Until {{ date }}": "Fino al {{ date }}", "Settings saved": "Impostazioni salvate", "Copied to clipboard": "Copiato negli appunti", "Control how AI features are used in the workspace.": "Controlla come vengono utilizzate le funzionalità di IA nello spazio di lavoro.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "di {{ name }}", "Expired": "Scaduto", "Last used": "Ultimo utilizzo", - "No expiry": "Nessuna scadenza", "Restricted scope": "Campo limitato", "API key copied to clipboard": "Chiave API copiata negli appunti", "Copied": "Copiato", "Revoking": "Sto revocando", "Are you sure you want to revoke the {{ tokenName }} token?": "Sei sicuro di voler revocare il token {{ tokenName }}?", "Key": "Chiave", - "Created by": "Creato da", "Never": "Mai", "Expires": "Scadenza", "Could not load preference": "Impossibile caricare le preferenze", @@ -1383,6 +1403,8 @@ "Synced <2>": "Sincronizzato <2>", "Date created": "Data creazione", "Crop image": "Ritaglia immagine", + "Change image": "Cambia immagine", + "Remove image": "Rimuovi immagine", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "Il tuo browser non può leggere le immagini HEIC: prima converti l'immagine in JPEG o PNG", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "Puoi importare un file ZIP precedentemente esportato con l'opzione JSON in un'altra istanza. In {{ appName }}, apri Esporta nella barra laterale delle impostazioni e fai clic su Esporta dati.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Trascina e rilascia il file zip dall'export JSON in {{appName}} o fai clic per caricarlo", @@ -1422,6 +1444,7 @@ "Editors": "Editor", "Invited by": "Invitato da", "Joined": "Iscritto", + "Any status": "Qualsiasi stato", "Active": "Attivo", "Could not load emojis": "Impossibile caricare le emoji", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Gli emoji personalizzati possono essere utilizzati in tutto lo spazio di lavoro, nei documenti, nei commenti e nelle reazioni.", @@ -1548,6 +1571,8 @@ "Default role": "Ruolo predefinito", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "Il ruolo utente predefinito per i nuovi account. La modifica di questa impostazione non influisce sugli account utente esistenti.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Se abilitato, i documenti possono essere condivisi pubblicamente su Internet da qualsiasi membro dell'area di lavoro", + "Default link expiration": "Scadenza predefinita del link", + "New public links will expire after this period. Existing links are not affected.": "I nuovi link pubblici scadranno dopo questo periodo. I link esistenti non saranno interessati.", "Viewer document exports": "Esportazioni di documenti per visualizzatori", "When enabled, viewers can see download options for documents": "Se abilitato, i visualizzatori possono vedere le opzioni di download per i documenti", "Users can delete account": "Gli utenti possono eliminare l'account", @@ -1601,6 +1626,8 @@ "Expires today": "Scade oggi", "Expires tomorrow": "Scade domani", "Expires {{ date }}": "Scade {{ date }}", + "Expires in {{ count }} day": "Scade tra {{ count }} giorno", + "Expires in {{ count }} day_plural": "Scade tra {{ count }} giorni", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configura un URL di installazione Diagrams.net personalizzato per utilizzare la tua istanza self-hosted per incorporare diagrammi nei tuoi documenti.", "Installation URL": "URL installazione", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "L'URL della tua installazione di Diagrams.net. Lascia vuoto per utilizzare l'applicazione app.diagrams.net ospitata nel cloud", diff --git a/shared/i18n/locales/ja_JP/translation.json b/shared/i18n/locales/ja_JP/translation.json index df4038e419..d46daee55e 100644 --- a/shared/i18n/locales/ja_JP/translation.json +++ b/shared/i18n/locales/ja_JP/translation.json @@ -215,6 +215,13 @@ "Share link copied": "共有リンクをコピーしました", "Go to collection": "コレクションに移動", "Go to document": "ドキュメントに移動", + "Custom": "カスタム", + "Set expiry": "有効期限を設定", + "Remove expiry": "有効期限を削除", + "Expiry removed": "有効期限を削除しました", + "{{ count }} days": "{{ count }} 日", + "{{ count }} days_plural": "{{ count }} 日", + "Expiry updated": "有効期限を更新しました", "Revoke link": "リンクを無効化", "Share link revoked": "共有リンクを無効にしました", "{{ count }} share link revoked": "{{ count }} 件の共有リンクを取り消しました", @@ -430,6 +437,8 @@ "our engineers have been notified": "開発者に通知されました", "Clear cache + reload": "キャッシュをクリアしてリロードする", "Show detail": "詳細を表示", + "Choose a date": "日付を選択", + "Remove expiration": "有効期限を削除する", "Exporting the collection may take some time.": "コレクションのエクスポートには時間がかかる場合があります。", "You will receive an email when it’s complete.": "完了するとメールが届きます。", "Include attachments": "添付ファイルを含める", @@ -469,7 +478,6 @@ "Objects": "オブジェクト", "Symbols": "シンボル", "Flags": "フラグ", - "Custom": "カスタム", "Word": "Word", "Plain text": "プレーンテキスト", "Email": "メール", @@ -616,7 +624,6 @@ "Everyone in the workspace": "ワークスペースにいる全ての人", "{{ count }} member": "{{ count }} 人のメンバー", "{{ count }} member_plural": "{{ count }} 人のメンバー", - "Public link copied to clipboard": "公開リンクをクリップボードにコピーしました", "Only lowercase letters, digits and dashes allowed": "小文字、数字、ダッシュのみ使用できます", "Sorry, this link has already been used": "このリンクは既に使用されています", "Publish to web": "ウェブに公開", @@ -639,6 +646,8 @@ "Logo": "ロゴ", "Add": "追加", "Add or invite": "追加または招待", + "This link expired on {{ date }} and can no longer be accessed.": "このリンクは {{ date }} に有効期限が切れたため、アクセスできなくなりました。", + "Update expiry": "有効期限を更新", "Sharing settings updated": "共有設定を更新しました", "Customize how the published document is displayed": "公開したドキュメントの表示方法をカスタマイズ", "Image options": "画像オプション", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "この設定を無効にすると、検索エンジンのインデックス化を防ぐことができます", "Email subscriptions": "メール購読", "Allow viewers to subscribe and receive email notifications when documents are updated": "閲覧者が購読し、ドキュメントの更新時にメール通知を受け取れるようにする", + "Expiration": "有効期限", + "The public link will stop working after the selected date": "公開リンクは選択した日付以降、利用できなくなります", + "No expiry": "無期限", "Something went wrong": "エラーが発生しました", "Check your email to confirm your subscription": "メールを確認して購読を確認してください", "Get notified when this document is updated": "このドキュメントが更新されたときに通知を受け取る", @@ -662,6 +674,7 @@ "Editor": "編集者", "Suggestions for invitation": "招待の候補", "No matches": "見つかりませんでした", + "Public link copied to clipboard": "公開リンクをクリップボードにコピーしました", "Created the document": "ドキュメントを作成しました", "Can view": "閲覧可能", "Everyone in the collection": "コレクション内の全てのメンバー", @@ -924,11 +937,9 @@ "a document": "ドキュメント", "a collection": "コレクション", "a group": "グループ", - "Choose a date": "日付を選択", "API key created. Please copy the value now as it will not be shown again.": "API キーが作成されました。再度表示されないため、今すぐ値をコピーしてください。", "Scopes": "スコープ", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "スペースで区切られたスコープは、この API キーのアクセスを API の特定の部分に制限します。フルアクセスするには空白のままにしてください。", - "Expiration": "有効期限", "Never expires": "無期限", "7 days": "7日", "30 days": "30日", @@ -1052,8 +1063,6 @@ "Last edited": "最終更新", "Previously edited": "編集済み", "Sorry, the last change could not be persisted – please reload the page": "申し訳ありませんが、最後の変更を保持できませんでした。\nページをリロードしてください。", - "{{ count }} days": "{{ count }} 日", - "{{ count }} days_plural": "{{ count }} 日", "This document will be permanently deleted in <2> unless restored.": "このドキュメントは復元されない限り、<2> 後に、永久に削除されます。", "Deleted by {{userName}}": "{{userName}} が削除しました", "Observing {{ userName }}": "{{ userName }} を観察中", @@ -1213,25 +1222,38 @@ "Read all data": "すべてのデータを読み取る", "Write all data": "すべてのデータを書き込む", "Create all data": "すべてのデータを作成", + "More filters": "フィルターをさらに表示", + "More": "もっと見る", "Any collection": "コレクション", "All time": "全期間", - "Past day": "一日前", - "Past week": "直近1週間", - "Past month": "直近1ヶ月", - "Past year": "直近1年", "Any time": "全期間", + "Choose the first and last day": "開始日と終了日を選択", + "Apply": "適用", "Remove document filter": "フィルターを解除する", - "Any status": "全てのステータス", "Remove search": "検索履歴を削除", + "Remove filter": "フィルターを削除", "Relevance": "関連性", "Newest": "新しい順", "Oldest": "古い順", "A → Z": "昇順(A → Z)", "Z → A": "降順(Z → A)", + "Sorted by": "並べ替え", "Any author": "全ての作成者", - "Search titles only": "タイトルのみ検索", + "Past day": "一日前", + "Past week": "直近1週間", + "Past month": "直近1ヶ月", + "Past year": "直近1年", + "{{ count }} result": "{{ count }}件の結果", + "{{ count }} result_plural": "{{ count }}件の結果", "Please try again or contact support if the problem persists": "問題が解決しない場合は、もう一度やり直すか、サポートにお問い合わせください", "No documents found for your search filters.": "検索条件に該当するドキュメントは見つかりませんでした", + "Edited by": "編集者", + "Status": "ステータス", + "Updated": "更新済み", + "Created by": "作成者", + "Title only": "タイトルのみ", + "From {{ date }}": "{{ date }}から", + "Until {{ date }}": "{{ date }}まで", "Settings saved": "設定が保存されました", "Copied to clipboard": "クリップボードにコピー", "Control how AI features are used in the workspace.": "ワークスペースでのAI機能の使用方法を管理します。", @@ -1309,14 +1331,12 @@ "by {{ name }}": "{{ name }}", "Expired": "期限切れ", "Last used": "最終使用日", - "No expiry": "無期限", "Restricted scope": "制限付きスコープ", "API key copied to clipboard": "API キーをクリップボードにコピーしました", "Copied": "コピーしました", "Revoking": "無効化しています", "Are you sure you want to revoke the {{ tokenName }} token?": "トークン {{ tokenName }} を失効します\nよろしいですか?", "Key": "キー", - "Created by": "作成者", "Never": "なし", "Expires": "有効期限", "Could not load preference": "設定を読み込めませんでした", @@ -1383,6 +1403,8 @@ "Synced <2>": "同期済み <2>", "Date created": "作成日時", "Crop image": "画像を切り取る", + "Change image": "画像を変更", + "Remove image": "画像を削除", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "ご使用のブラウザではHEIC画像を読み込めません。まず画像をJPEGまたはPNGに変換してください", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "別のインスタンスの JSON オプションから以前にエクスポートした zip ファイルをインポートできます。{{ appName }} で、設定サイドバーの エクスポート を開き、データをエクスポート をクリックします。", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "{{appName}} の JSON エクスポートオプションから zip ファイルをドラッグ&ドロップするか、クリックしてアップロードします", @@ -1422,6 +1444,7 @@ "Editors": "編集者", "Invited by": "招待者", "Joined": "参加しました", + "Any status": "全てのステータス", "Active": "アクティブ", "Could not load emojis": "絵文字を読み込めませんでした", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "カスタム絵文字は、ドキュメント、コメント、およびリアクションなどワークスペース全体で使用できます。", @@ -1548,6 +1571,8 @@ "Default role": "デフォルトのロール", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "新規アカウントのデフォルトのユーザーロールです。この設定を変更しても、既存のユーザーアカウントには影響しません。", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "この設定を有効にすると、チームメンバーなら誰でもインターネット上でドキュメントを公開することができます。", + "Default link expiration": "リンクのデフォルトの有効期限", + "New public links will expire after this period. Existing links are not affected.": "新しい公開リンクは、この期間を過ぎると有効期限が切れます。既存のリンクには影響しません。", "Viewer document exports": "閲覧者によるドキュメントのエクスポート", "When enabled, viewers can see download options for documents": "有効にすると、閲覧者はドキュメントのダウンロードオプションを表示できます", "Users can delete account": "ユーザーはアカウントを削除できます。", @@ -1601,6 +1626,8 @@ "Expires today": "今日で期限切れ", "Expires tomorrow": "明日で期限切れ", "Expires {{ date }}": "期限: {{ date }}", + "Expires in {{ count }} day": "{{ count }} 日後に有効期限が切れます", + "Expires in {{ count }} day_plural": "有効期限まであと {{ count }} 日です", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "セルフホストしたDiagrams.netを用いて、ドキュメント内にダイアグラムを埋め込むためにインストール先URLを設定することができます。", "Installation URL": "インストールURL", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "Diagrams.net のインストール URL。クラウドホスト型の app.diagrams.net を使用する場合は空欄のままにしてください", diff --git a/shared/i18n/locales/ko_KR/translation.json b/shared/i18n/locales/ko_KR/translation.json index e626696167..8040f9a84c 100644 --- a/shared/i18n/locales/ko_KR/translation.json +++ b/shared/i18n/locales/ko_KR/translation.json @@ -215,6 +215,13 @@ "Share link copied": "공유 할 링크가 복사되었습니다.", "Go to collection": "컬렉션으로 이동", "Go to document": "문서로 이동", + "Custom": "사용자 지정", + "Set expiry": "만료 설정", + "Remove expiry": "만료 제거", + "Expiry removed": "만료가 제거됨", + "{{ count }} days": "{{ count }} 일", + "{{ count }} days_plural": "{{ count }} 일", + "Expiry updated": "만료가 업데이트됨", "Revoke link": "링크 폐기", "Share link revoked": "링크 공유가 취소되었습니다.", "{{ count }} share link revoked": "{{ count }}개의 공유 링크가 취소됨", @@ -430,6 +437,8 @@ "our engineers have been notified": "저희 엔지니어들에게 전달되었습니다", "Clear cache + reload": "캐시 지우기 + 새로고침", "Show detail": "자세히 보기", + "Choose a date": "날짜를 선택하세요", + "Remove expiration": "만료 제거", "Exporting the collection may take some time.": "컬렉션을 내보내는 데 시간이 걸릴 수 있습니다.", "You will receive an email when it’s complete.": "완료되면 이메일을 받게 됩니다.", "Include attachments": "첨부파일 포함", @@ -469,7 +478,6 @@ "Objects": "사물", "Symbols": "상징", "Flags": "깃발", - "Custom": "사용자 지정", "Word": "Word", "Plain text": "일반 텍스트", "Email": "이메일", @@ -616,7 +624,6 @@ "Everyone in the workspace": "워크스페이스의 모든 구성원", "{{ count }} member": "{{ count }}명", "{{ count }} member_plural": "{{ count }}명", - "Public link copied to clipboard": "공개 링크를 클립보드에 복사했습니다", "Only lowercase letters, digits and dashes allowed": "소문자, 숫자, 대시만 허용됩니다.", "Sorry, this link has already been used": "죄송하지만, 이 링크는 이미 사용중입니다.", "Publish to web": "웹에 게시", @@ -639,6 +646,8 @@ "Logo": "로고", "Add": "추가", "Add or invite": "추가 또는 초대", + "This link expired on {{ date }} and can no longer be accessed.": "이 링크는 {{ date }}에 만료되어 더 이상 액세스할 수 없습니다.", + "Update expiry": "만료일 업데이트", "Sharing settings updated": "공유 설정이 업데이트되었습니다", "Customize how the published document is displayed": "게시된 문서의 표시 방식을 사용자 지정합니다", "Image options": "이미지 옵션", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "검색 엔진이 페이지를 인덱싱하지 못하도록 하려면 이 옵션을 비활성화 합니다", "Email subscriptions": "이메일 구독", "Allow viewers to subscribe and receive email notifications when documents are updated": "시청자가 구독하고 문서가 업데이트될 때 이메일 알림을 받을 수 있도록 허용합니다.", + "Expiration": "만료", + "The public link will stop working after the selected date": "공개 링크는 선택한 날짜 이후에 작동하지 않습니다", + "No expiry": "만료 없음", "Something went wrong": "문제가 발생했습니다", "Check your email to confirm your subscription": "이메일 확인해서 구독을 확정하세요", "Get notified when this document is updated": "이 문서가 갱신되었을 때 알림을 받습니다", @@ -662,6 +674,7 @@ "Editor": "편집기", "Suggestions for invitation": "초대 제안", "No matches": "일치하는 결과 없음", + "Public link copied to clipboard": "공개 링크를 클립보드에 복사했습니다", "Created the document": "문서를 만들었습니다", "Can view": "보기 가능", "Everyone in the collection": "컬렉션의 모든 구성원", @@ -924,11 +937,9 @@ "a document": "문서", "a collection": "컬렉션", "a group": "그룹", - "Choose a date": "날짜를 선택하세요", "API key created. Please copy the value now as it will not be shown again.": "API 키가 생성되었습니다. 지금 값을 복사해 두세요. 이후에는 다시 표시되지 않습니다.", "Scopes": "범위", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "공백으로 구분된 범위는 이 API 키의 액세스를 API의 특정 부분으로 제한합니다. 전체 액세스를 위해 비워 두세요.", - "Expiration": "만료", "Never expires": "만료 없음", "7 days": "7일", "30 days": "30일", @@ -1052,8 +1063,6 @@ "Last edited": "마지막으로 수정됨", "Previously edited": "이전에 수정됨", "Sorry, the last change could not be persisted – please reload the page": "죄송합니다. 마지막 변경 사항을 유지할 수 없습니다. 페이지를 새로고침하세요.", - "{{ count }} days": "{{ count }} 일", - "{{ count }} days_plural": "{{ count }} 일", "This document will be permanently deleted in <2> unless restored.": "이 문서는 복원하지 않으면 <2> 에서 영구적으로 삭제됩니다.", "Deleted by {{userName}}": "{{userName}} 에 의해 삭제됨", "Observing {{ userName }}": "{{ userName }} 관찰중", @@ -1213,25 +1222,38 @@ "Read all data": "모든 데이터 읽기", "Write all data": "모든 데이터 쓰기", "Create all data": "모든 데이터 생성", + "More filters": "필터 더 보기", + "More": "더 보기", "Any collection": "모든 컬렉션", "All time": "모든 시간", - "Past day": "어제", - "Past week": "지난 주", - "Past month": "지난 달", - "Past year": "작년", "Any time": "모든 시간", + "Choose the first and last day": "시작일과 종료일을 선택하세요", + "Apply": "적용", "Remove document filter": "문서 검색 필터 제거", - "Any status": "모든 상태", "Remove search": "검색 기록 제거", + "Remove filter": "필터 제거", "Relevance": "관련성", "Newest": "최신순", "Oldest": "오래된순", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "정렬 기준", "Any author": "모든 작성자", - "Search titles only": "제목에서만 찾기", + "Past day": "어제", + "Past week": "지난 주", + "Past month": "지난 달", + "Past year": "작년", + "{{ count }} result": "결과 {{ count }}개", + "{{ count }} result_plural": "결과 {{ count }}개", "Please try again or contact support if the problem persists": "다시 한 번 시도해 보시고 문제가 계속된다면 문의해주세요", "No documents found for your search filters.": "검색조건과 맞는 문서를 찾을 수 없습니다.", + "Edited by": "편집자", + "Status": "상태", + "Updated": "업데이트됨", + "Created by": "생성자", + "Title only": "제목만", + "From {{ date }}": "{{ date }}부터", + "Until {{ date }}": "{{ date }}까지", "Settings saved": "설정이 저장되었습니다", "Copied to clipboard": "클립보드에 복사되었습니다", "Control how AI features are used in the workspace.": "작업공간에서 AI 기능을 사용하는 방식을 제어합니다.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "{{ name }} 에 의해", "Expired": "만료", "Last used": "최근 사용됨", - "No expiry": "만료 없음", "Restricted scope": "제한된 범위", "API key copied to clipboard": "API 키가 클립보드에 복사됨", "Copied": "복사됨", "Revoking": "취소", "Are you sure you want to revoke the {{ tokenName }} token?": "{{ tokenName }} 토큰을 폐기하시겠습니까?", "Key": "키", - "Created by": "생성자", "Never": "없음", "Expires": "만료일", "Could not load preference": "환경설정을 불러올 수 없습니다", @@ -1383,6 +1403,8 @@ "Synced <2>": "동기화됨<2>", "Date created": "생성 일자", "Crop image": "이미지 자르기", + "Change image": "이미지 변경", + "Remove image": "이미지 삭제", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "브라우저에서 HEIC 이미지를 읽을 수 없습니다. 먼저 이미지를 JPEG 또는 PNG로 변환하세요", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "다른 인스턴스의 JSON 옵션에서 이전에 내보낸 ZIP 파일을 가져올 수 있습니다. {{ appName }}에서 설정 사이드바의 내보내기를 열고 데이터 내보내기를 클릭하세요.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "{{appName}}의 JSON 내보내기 옵션에서 zip 파일을 드래그 앤 드롭하거나 클릭하여 업로드", @@ -1422,6 +1444,7 @@ "Editors": "에디터", "Invited by": "초대한 사람", "Joined": "참여함", + "Any status": "모든 상태", "Active": "활성", "Could not load emojis": "이모지를 불러올 수 없습니다", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "사용자 지정 이모지는 문서, 댓글, 반응 등 작업 공간 전체에서 사용할 수 있습니다.", @@ -1548,6 +1571,8 @@ "Default role": "기본 역할", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "새 계정의 기본 사용자 역할입니다. 이 설정을 변경해도 기존 사용자 계정에는 영향을 미치지 않습니다.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "활성화되면 워크스페이스에 모든 멤버가 문서를 인터넷에 공유 할 수 있습니다", + "Default link expiration": "기본 링크 만료", + "New public links will expire after this period. Existing links are not affected.": "새 공개 링크는 이 기간 후에 만료됩니다. 기존 링크에는 영향을 주지 않습니다.", "Viewer document exports": "뷰어 문서 내보내기", "When enabled, viewers can see download options for documents": "사용하도록 설정하면 보는 사람이 문서의 다운로드 옵션을 볼 수 있습니다.", "Users can delete account": "사용자는 계정을 삭제할 수 있음", @@ -1601,6 +1626,8 @@ "Expires today": "오늘 만료", "Expires tomorrow": "내일 만료", "Expires {{ date }}": "{{ date }} 에 만료", + "Expires in {{ count }} day": "{{ count }}일 후 만료", + "Expires in {{ count }} day_plural": "만료까지 {{ count }}일 남음", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "문서에 다이어그램을 삽입하기 위해 자체 호스팅 인스턴스를 사용하도록 Diagrams.net 설치 URL을 사용자 지정으로 구성하세요.", "Installation URL": "설치 URL", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "Diagrams.net 설치 URL입니다. 클라우드 호스팅 app.diagrams.net을 사용하려면 비워 두세요", diff --git a/shared/i18n/locales/nb_NO/translation.json b/shared/i18n/locales/nb_NO/translation.json index 2b2adfd589..1b0572ed82 100644 --- a/shared/i18n/locales/nb_NO/translation.json +++ b/shared/i18n/locales/nb_NO/translation.json @@ -215,6 +215,13 @@ "Share link copied": "Delingslenke kopiert", "Go to collection": "Gå til samling", "Go to document": "Gå til dokument", + "Custom": "Egendefinert", + "Set expiry": "Angi utløpsdato", + "Remove expiry": "Fjern utløpsdato", + "Expiry removed": "Utløpsdato fjernet", + "{{ count }} days": "{{ count }} dag", + "{{ count }} days_plural": "{{ count }} dager", + "Expiry updated": "Utløpsdato oppdatert", "Revoke link": "Opphev lenke", "Share link revoked": "Delingslenke opphevet", "{{ count }} share link revoked": "{{ count }} share link revoked", @@ -430,6 +437,8 @@ "our engineers have been notified": "våre teknologer har blitt varslet", "Clear cache + reload": "Tøm cache + last på nytt", "Show detail": "Vis detaljer", + "Choose a date": "Velg en dato", + "Remove expiration": "Fjern utløpsdato", "Exporting the collection may take some time.": "Eksport av samlingen kan ta litt tid.", "You will receive an email when it’s complete.": "Du vil motta en e-post når det er ferdig.", "Include attachments": "Inkluder vedlegg", @@ -469,7 +478,6 @@ "Objects": "Gjenstander", "Symbols": "Symboler", "Flags": "Flagg", - "Custom": "Egendefinert", "Word": "Word", "Plain text": "Ren tekst", "Email": "E-post", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Alle i arbeidsområdet", "{{ count }} member": "{{ count }} medlem", "{{ count }} member_plural": "{{ count }} medlemmer", - "Public link copied to clipboard": "Offentlig lenke kopiert til utklippstavlen", "Only lowercase letters, digits and dashes allowed": "Kun små bokstaver, sifre og bindestreker tillatt", "Sorry, this link has already been used": "Beklager, denne lenken har allerede blitt brukt", "Publish to web": "Publish to web", @@ -639,6 +646,8 @@ "Logo": "Logo", "Add": "Legg til", "Add or invite": "Legg til eller inviter", + "This link expired on {{ date }} and can no longer be accessed.": "Denne lenken utløp {{ date }} og kan ikke lenger åpnes.", + "Update expiry": "Oppdater utløpsdato", "Sharing settings updated": "Sharing settings updated", "Customize how the published document is displayed": "Customize how the published document is displayed", "Image options": "Image options", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Deaktiver denne innstillingen for å fraråde søkemotorer til å indeksere denne siden", "Email subscriptions": "Email subscriptions", "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", + "Expiration": "Utløper", + "The public link will stop working after the selected date": "Den offentlige lenken slutter å fungere etter den valgte datoen", + "No expiry": "Ingen utløpsdato", "Something went wrong": "Noe gikk galt", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -662,6 +674,7 @@ "Editor": "Redaktør", "Suggestions for invitation": "Forslag til invitasjon", "No matches": "Ingen treff", + "Public link copied to clipboard": "Offentlig lenke kopiert til utklippstavlen", "Created the document": "Opprett et dokument", "Can view": "Kan se", "Everyone in the collection": "Alle i samlingen", @@ -924,11 +937,9 @@ "a document": "et dokument", "a collection": "en samling", "a group": "a group", - "Choose a date": "Velg en dato", "API key created. Please copy the value now as it will not be shown again.": "API-nøkkel opprettet. Kopier verdien nå, da den ikke vil bli vist igjen.", "Scopes": "Scopes", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "Omfang adskilt med mellomrom begrenser denne API-nøkkelens tilgang til bestemte deler av API-et. La feltet stå tomt for full tilgang.", - "Expiration": "Utløper", "Never expires": "Utløper aldri", "7 days": "7 dager", "30 days": "30 dager", @@ -1052,8 +1063,6 @@ "Last edited": "Sist redigert", "Previously edited": "Tidligere redigert", "Sorry, the last change could not be persisted – please reload the page": "Beklager, den siste endringen kunne ikke lagres – vennligst last inn siden på nytt", - "{{ count }} days": "{{ count }} dag", - "{{ count }} days_plural": "{{ count }} dager", "This document will be permanently deleted in <2> unless restored.": "Dette dokumentet vil bli slettet permanent innen <2> med mindre det gjenopprettes.", "Deleted by {{userName}}": "Slettet av {{userName}}", "Observing {{ userName }}": "Observerer {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "Lese alle data", "Write all data": "Skrive alle data", "Create all data": "Create all data", + "More filters": "Flere filtre", + "More": "Mer", "Any collection": "Enhver samling", "All time": "Når som helst", - "Past day": "Siste dag", - "Past week": "Siste uke", - "Past month": "Siste måned", - "Past year": "Siste år", "Any time": "Når som helst", + "Choose the first and last day": "Velg første og siste dag", + "Apply": "Bruk", "Remove document filter": "Fjern dokumentfilter", - "Any status": "Valgfri status", "Remove search": "Fjern søk", + "Remove filter": "Fjern filter", "Relevance": "Relevance", "Newest": "Newest", "Oldest": "Oldest", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "Sortert etter", "Any author": "Enhver forfatter", - "Search titles only": "Søk kun i titler", + "Past day": "Siste dag", + "Past week": "Siste uke", + "Past month": "Siste måned", + "Past year": "Siste år", + "{{ count }} result": "{{ count }} resultat", + "{{ count }} result_plural": "{{ count }} resultater", "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.", + "Edited by": "Redigert av", + "Status": "Status", + "Updated": "Oppdatert", + "Created by": "Created by", + "Title only": "Kun tittel", + "From {{ date }}": "Fra {{ date }}", + "Until {{ date }}": "Til {{ date }}", "Settings saved": "Innstillinger lagret", "Copied to clipboard": "Kopiert til utklippstavlen", "Control how AI features are used in the workspace.": "Kontroller hvordan KI-funksjoner brukes i arbeidsområdet.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "av {{ name }}", "Expired": "Utløpt", "Last used": "Sist brukt", - "No expiry": "Ingen utløpsdato", "Restricted scope": "Begrenset scope", "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?", "Key": "Key", - "Created by": "Created by", "Never": "Never", "Expires": "Expires", "Could not load preference": "Could not load preference", @@ -1383,6 +1403,8 @@ "Synced <2>": "Synced <2>", "Date created": "Dato opprettet", "Crop image": "Beskjær bilde", + "Change image": "Endre bilde", + "Remove image": "Fjern bilde", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "Nettleseren din kan ikke lese HEIC-bilder – konverter bildet til JPEG eller PNG først", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "Du kan importere en zip-fil som tidligere ble eksportert fra JSON-alternativet i en annen instans. I {{ appName }} åpner du Eksport i innstillingssidefeltet og klikker på Eksporter data.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Dra og slipp zip-filen fra JSON-eksportalternativet i {{appName}}, eller klikk for å laste opp", @@ -1422,6 +1444,7 @@ "Editors": "Redaktører", "Invited by": "Invitert av", "Joined": "Ble med", + "Any status": "Valgfri status", "Active": "Aktiv", "Could not load emojis": "Could not load emojis", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Custom emojis can be used throughout your workspace in documents, comments, and reactions.", @@ -1548,6 +1571,8 @@ "Default role": "Standardrolle", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "Standardbrukerrollen for nye kontoer. Endring av denne innstillingen påvirker ikke eksisterende brukerkontoer.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Når aktivert, kan dokumenter deles offentlig på internett av ethvert medlem av arbeidsområdet", + "Default link expiration": "Standard utløpsdato for lenker", + "New public links will expire after this period. Existing links are not affected.": "Nye offentlige lenker utløper etter denne perioden. Eksisterende lenker påvirkes ikke.", "Viewer document exports": "Eksport av dokumentvisning", "When enabled, viewers can see download options for documents": "Når aktivert, kan seere se nedlastingsalternativer for dokumenter", "Users can delete account": "Brukere kan slette kontoen", @@ -1601,6 +1626,8 @@ "Expires today": "Utløper i dag", "Expires tomorrow": "Utløper i morgen", "Expires {{ date }}": "Utløper {{ date }}", + "Expires in {{ count }} day": "Utløper om {{ count }} dag", + "Expires in {{ count }} day_plural": "Utløper om {{ count }} dager", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.", "Installation URL": "Installation URL", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "Nettadressen til Diagrams.net-installasjonen din. La feltet stå tomt for å bruke den skybaserte app.diagrams.net", diff --git a/shared/i18n/locales/nl_NL/translation.json b/shared/i18n/locales/nl_NL/translation.json index 103b3481b6..ae11e3d384 100644 --- a/shared/i18n/locales/nl_NL/translation.json +++ b/shared/i18n/locales/nl_NL/translation.json @@ -215,6 +215,13 @@ "Share link copied": "Deel-link gekopieerd", "Go to collection": "Ga naar collectie", "Go to document": "Ga naar document", + "Custom": "Aangepast", + "Set expiry": "Vervaldatum instellen", + "Remove expiry": "Vervaldatum verwijderen", + "Expiry removed": "Vervaldatum verwijderd", + "{{ count }} days": "{{ count }} dag", + "{{ count }} days_plural": "{{ count }} dagen", + "Expiry updated": "Vervaldatum bijgewerkt", "Revoke link": "Link intrekken", "Share link revoked": "Deel-link ingetrokken", "{{ count }} share link revoked": "{{ count }} gedeelde link ingetrokken", @@ -430,6 +437,8 @@ "our engineers have been notified": "onze technici zijn op de hoogte gebracht", "Clear cache + reload": "Cache wissen + herladen", "Show detail": "Toon detail", + "Choose a date": "Kies een datum", + "Remove expiration": "Vervaldatum verwijderen", "Exporting the collection may take some time.": "Het exporteren van de collectie kan enige tijd duren.", "You will receive an email when it’s complete.": "Je ontvangt een e-mail wanneer het is voltooid.", "Include attachments": "Bijlagen toevoegen", @@ -469,7 +478,6 @@ "Objects": "Objecten", "Symbols": "Symbolen", "Flags": "Vlaggen", - "Custom": "Aangepast", "Word": "Word", "Plain text": "Platte tekst", "Email": "E-mailadres", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Iedereen in de werkruimte", "{{ count }} member": "{{ count }} lid", "{{ count }} member_plural": "{{ count }} leden", - "Public link copied to clipboard": "Openbare link gekopieerd naar klembord", "Only lowercase letters, digits and dashes allowed": "Alleen kleine letters, cijfers en streepjes zijn toegestaan", "Sorry, this link has already been used": "Sorry, deze link is al in gebruik", "Publish to web": "Publiceren op het web", @@ -639,6 +646,8 @@ "Logo": "Logo", "Add": "Toevoegen", "Add or invite": "Toevoegen of uitnodigen", + "This link expired on {{ date }} and can no longer be accessed.": "Deze link is verlopen op {{ date }} en kan niet langer worden geopend.", + "Update expiry": "Vervaldatum bijwerken", "Sharing settings updated": "Deelinstellingen bijgewerkt", "Customize how the published document is displayed": "Pas aan hoe het gepubliceerde document wordt weergegeven", "Image options": "Afbeeldingsopties", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Schakel deze instelling uit om zoekmachines te ontmoedigen bij het indexeren van de pagina", "Email subscriptions": "E-mailabonnementen", "Allow viewers to subscribe and receive email notifications when documents are updated": "Sta kijkers toe zich te abonneren en e-mailmeldingen te ontvangen wanneer documenten worden bijgewerkt", + "Expiration": "Vervaldatum", + "The public link will stop working after the selected date": "De openbare link werkt niet meer na de geselecteerde datum", + "No expiry": "Geen vervaldatum", "Something went wrong": "Er ging iets mis", "Check your email to confirm your subscription": "Controleer je e-mail om je abonnement te bevestigen", "Get notified when this document is updated": "Ontvang een melding wanneer dit document wordt bijgewerkt", @@ -662,6 +674,7 @@ "Editor": "Redacteur", "Suggestions for invitation": "Suggesties voor uitnodiging", "No matches": "Geen overeenkomsten", + "Public link copied to clipboard": "Openbare link gekopieerd naar klembord", "Created the document": "Heeft het document gemaakt", "Can view": "Kan bekijken", "Everyone in the collection": "Iedereen in de collectie", @@ -924,11 +937,9 @@ "a document": "een document", "a collection": "een collectie", "a group": "een groep", - "Choose a date": "Kies een datum", "API key created. Please copy the value now as it will not be shown again.": "API-sleutel gemaakt. Kopieer de waarde nu omdat deze niet meer zal worden getoond.", "Scopes": "Werkingssferen", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "Door spaties gescheiden scopes beperken de toegang van deze API-sleutel tot specifieke delen van de API. Laat leeg voor volledige toegang.", - "Expiration": "Vervaldatum", "Never expires": "Verloopt nooit", "7 days": "7 dagen", "30 days": "30 dagen", @@ -1052,8 +1063,6 @@ "Last edited": "Laatst gewijzigd", "Previously edited": "Eerder gewijzigd", "Sorry, the last change could not be persisted – please reload the page": "Sorry, de laatste wijziging kon niet worden bewaard - laad de pagina opnieuw", - "{{ count }} days": "{{ count }} dag", - "{{ count }} days_plural": "{{ count }} dagen", "This document will be permanently deleted in <2> unless restored.": "Dit document wordt definitief verwijderd over <2> als dit niet wordt hersteld.", "Deleted by {{userName}}": "Verwijderd door {{userName}}", "Observing {{ userName }}": "Observeer {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "Lees alle gegevens", "Write all data": "Schrijf alle gegevens", "Create all data": "Alle gegevens maken", + "More filters": "Meer filters", + "More": "Meer", "Any collection": "Elke collectie", "All time": "Gehele tijd", - "Past day": "Afgelopen dag", - "Past week": "Afgelopen week", - "Past month": "Afgelopen maand", - "Past year": "Afgelopen jaar", "Any time": "Elke tijd", + "Choose the first and last day": "Kies de eerste en laatste dag", + "Apply": "Toepassen", "Remove document filter": "Verwijder documentfilter", - "Any status": "Elke status", "Remove search": "Zoekopdracht verwijderen", + "Remove filter": "Filter verwijderen", "Relevance": "Relevantie", "Newest": "Nieuwste", "Oldest": "Oudste", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "Gesorteerd op", "Any author": "Elke auteur", - "Search titles only": "Zoek alleen titels", + "Past day": "Afgelopen dag", + "Past week": "Afgelopen week", + "Past month": "Afgelopen maand", + "Past year": "Afgelopen jaar", + "{{ count }} result": "{{ count }} resultaat", + "{{ count }} result_plural": "{{ count }} resultaten", "Please try again or contact support if the problem persists": "Probeer het opnieuw of neem contact op met support als het probleem aanhoudt", "No documents found for your search filters.": "Geen documenten gevonden voor je zoekfilters.", + "Edited by": "Bewerkt door", + "Status": "Status", + "Updated": "Bijgewerkt", + "Created by": "Gemaakt door", + "Title only": "Alleen titel", + "From {{ date }}": "Vanaf {{ date }}", + "Until {{ date }}": "Tot {{ date }}", "Settings saved": "Instellingen opgeslagen", "Copied to clipboard": "Gekopieerd naar het klembord", "Control how AI features are used in the workspace.": "Bepaal hoe AI-functies in de werkruimte worden gebruikt.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "door {{ name }}", "Expired": "Verlopen", "Last used": "Laatst gebruikt", - "No expiry": "Geen vervaldatum", "Restricted scope": "Beperkt bereik", "API key copied to clipboard": "API-sleutel naar klembord gekopieerd", "Copied": "Gekopieerd", "Revoking": "Intrekken", "Are you sure you want to revoke the {{ tokenName }} token?": "Weet je zeker dat je de token {{ tokenName }} wilt intrekken?", "Key": "Sleutel", - "Created by": "Gemaakt door", "Never": "Nooit", "Expires": "Verloopt", "Could not load preference": "Kon voorkeur niet laden", @@ -1383,6 +1403,8 @@ "Synced <2>": "Gesynchroniseerd <2>", "Date created": "Aanmaakdatum", "Crop image": "Afbeelding bijsnijden", + "Change image": "Afbeelding wijzigen", + "Remove image": "Afbeelding verwijderen", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "Je browser kan HEIC-afbeeldingen niet lezen – converteer de afbeelding eerst naar JPEG of PNG", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "Je kunt een zipbestand importeren dat eerder is geëxporteerd vanuit de JSON-optie in een andere instantie. Open in {{ appName }} Exporteren in de zijbalk Instellingen en klik op Gegevens exporteren.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Sleep het zip-bestand vanuit de JSON exportoptie in {{appName}}, of klik om te uploaden", @@ -1422,6 +1444,7 @@ "Editors": "Redacteurs", "Invited by": "Uitgenodigd door", "Joined": "Lid geworden", + "Any status": "Elke status", "Active": "Actief", "Could not load emojis": "Kon emoji's niet laden", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Aangepaste emoji's kunnen worden gebruikt in je hele werkruimte in documenten, opmerkingen en reacties.", @@ -1548,6 +1571,8 @@ "Default role": "Standaard rol", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "De standaard gebruikersrol voor nieuwe accounts. Het wijzigen van deze instelling heeft geen invloed op bestaande gebruikersaccounts.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Wanneer ingeschakeld, kunnen documenten publiekelijk worden gedeeld op het internet door elk lid van de werkruimte", + "Default link expiration": "Standaardvervaldatum voor links", + "New public links will expire after this period. Existing links are not affected.": "Nieuwe openbare links verlopen na deze periode. Bestaande links worden niet beïnvloed.", "Viewer document exports": "Bekijkers kunnen documenten exporteren", "When enabled, viewers can see download options for documents": "Wanneer ingeschakeld, kunnen kijkers downloadopties voor documenten zien", "Users can delete account": "Gebruikers kunnen account verwijderen", @@ -1601,6 +1626,8 @@ "Expires today": "Verloopt vandaag", "Expires tomorrow": "Verloopt morgen", "Expires {{ date }}": "Verlopen {{ date }}", + "Expires in {{ count }} day": "Verloopt over {{ count }} dag", + "Expires in {{ count }} day_plural": "Verloopt over {{ count }} dagen", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configureer een aangepaste Diagrams.net installatie-URL om je eigen zelfgehoste instantie te gebruiken voor het insluiten van diagrammen in uw documenten.", "Installation URL": "Installatie-URL", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "De URL van je Diagrams.net-installatie. Laat dit leeg om de in de cloud gehoste app.diagrams.net te gebruiken", diff --git a/shared/i18n/locales/pl_PL/translation.json b/shared/i18n/locales/pl_PL/translation.json index 0c1cba2c73..069ffe827b 100644 --- a/shared/i18n/locales/pl_PL/translation.json +++ b/shared/i18n/locales/pl_PL/translation.json @@ -215,6 +215,13 @@ "Share link copied": "Skopiowano link udostępnienia", "Go to collection": "Przejdź do kolekcji", "Go to document": "Przejdź do dokumentu", + "Custom": "Niestandardowy", + "Set expiry": "Ustaw termin ważności", + "Remove expiry": "Usuń termin ważności", + "Expiry removed": "Termin ważności usunięty", + "{{ count }} days": "{{ count }} dzień", + "{{ count }} days_plural": "{{ count }} dni", + "Expiry updated": "Termin ważności zaktualizowany", "Revoke link": "Unieważnij link", "Share link revoked": "Unieważniono link udostępniania", "{{ count }} share link revoked": "Unieważniono {{ count }} link udostępniania", @@ -430,6 +437,8 @@ "our engineers have been notified": "nasi inżynierowie zostali powiadomieni", "Clear cache + reload": "Wyczyść pamięć podręczną + przeładuj", "Show detail": "Pokaż szczegóły", + "Choose a date": "Wybierz datę", + "Remove expiration": "Usuń datę wygaśnięcia", "Exporting the collection may take some time.": "Eksportowanie kolekcji może zająć trochę czasu.", "You will receive an email when it’s complete.": "Po zakończeniu otrzymasz wiadomość e-mail.", "Include attachments": "Dołącz załączniki", @@ -469,7 +478,6 @@ "Objects": "Obiekty", "Symbols": "Symbole", "Flags": "Flagi", - "Custom": "Niestandardowy", "Word": "Word", "Plain text": "Zwykły tekst", "Email": "E-mail", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Wszyscy w projekcie", "{{ count }} member": "{{ count }} członek", "{{ count }} member_plural": "{{ count }} członków", - "Public link copied to clipboard": "Publiczny link skopiowany do schowka", "Only lowercase letters, digits and dashes allowed": "Dozwolone są tylko małe litery, cyfry i myślniki", "Sorry, this link has already been used": "Przepraszamy, ten link został już użyty", "Publish to web": "Publish to web", @@ -639,6 +646,8 @@ "Logo": "Logo", "Add": "Dodaj", "Add or invite": "Dodaj lub zaproś", + "This link expired on {{ date }} and can no longer be accessed.": "Ten link wygasł {{ date }} i nie jest już dostępny.", + "Update expiry": "Zaktualizuj datę wygaśnięcia", "Sharing settings updated": "Sharing settings updated", "Customize how the published document is displayed": "Customize how the published document is displayed", "Image options": "Image options", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Wyłącz to ustawienie, aby zniechęcać wyszukiwarki do indeksowania strony", "Email subscriptions": "Email subscriptions", "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", + "Expiration": "Data wygaśnięcia", + "The public link will stop working after the selected date": "Link publiczny przestanie działać po wybranej dacie", + "No expiry": "Brak terminu ważności", "Something went wrong": "Coś poszło nie tak", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -662,6 +674,7 @@ "Editor": "Edytor", "Suggestions for invitation": "Sugestie do zaproszenia", "No matches": "Brak dopasowań", + "Public link copied to clipboard": "Publiczny link skopiowany do schowka", "Created the document": "Utworzono dokument", "Can view": "Może wyświetlić", "Everyone in the collection": "Wszyscy w kolekcji", @@ -924,11 +937,9 @@ "a document": "dokument", "a collection": "kolekcja", "a group": "grupa", - "Choose a date": "Wybierz datę", "API key created. Please copy the value now as it will not be shown again.": "Klucz API został utworzony. Skopiuj wartość teraz, ponieważ nie będzie wyświetlany ponownie.", "Scopes": "Zakresy", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "Zakresy oddzielone spacjami ograniczają dostęp tego klucza API do określonych części interfejsu API. Pozostaw puste, aby uzyskać pełny dostęp.", - "Expiration": "Data wygaśnięcia", "Never expires": "Nigdy nie wygasa", "7 days": "7 dni", "30 days": "30 dni", @@ -1052,8 +1063,6 @@ "Last edited": "Ostatnio edytowano", "Previously edited": "Poprzednio edytowane", "Sorry, the last change could not be persisted – please reload the page": "Przepraszamy, nie udało się zachować ostatniej zmiany – proszę odświeżyć stronę", - "{{ count }} days": "{{ count }} dzień", - "{{ count }} days_plural": "{{ count }} dni", "This document will be permanently deleted in <2> unless restored.": "Ten dokument zostanie trwale usunięty w <2> chyba że zostanie przywrócony.", "Deleted by {{userName}}": "Usunięte przez {{userName}}", "Observing {{ userName }}": "Obserwowanie {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "Odczyt wszystkich danych", "Write all data": "Zapis wszystkich danych", "Create all data": "Create all data", + "More filters": "Więcej filtrów", + "More": "Więcej", "Any collection": "Dowolna kolekcja", "All time": "Przez cały czas", - "Past day": "Poprzedni dzień", - "Past week": "Poprzedni tydzień", - "Past month": "Poprzedni miesiąc", - "Past year": "Poprzedni rok", "Any time": "W dowolnym czasie", + "Choose the first and last day": "Wybierz pierwszy i ostatni dzień", + "Apply": "Zastosuj", "Remove document filter": "Usuń filtr dokumentów", - "Any status": "Dowolny status", "Remove search": "Usuń wyszukiwanie", + "Remove filter": "Usuń filtr", "Relevance": "Relevance", "Newest": "Newest", "Oldest": "Oldest", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "Sortuj według", "Any author": "Dowolny autor", - "Search titles only": "Szukaj tylko w tytułach", + "Past day": "Poprzedni dzień", + "Past week": "Poprzedni tydzień", + "Past month": "Poprzedni miesiąc", + "Past year": "Poprzedni rok", + "{{ count }} result": "{{ count }} wynik", + "{{ count }} result_plural": "{{ count }} wyników", "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.", + "Edited by": "Edytowane przez", + "Status": "Status", + "Updated": "Zaktualizowano", + "Created by": "Created by", + "Title only": "Tylko tytuł", + "From {{ date }}": "Od {{ date }}", + "Until {{ date }}": "Do {{ date }}", "Settings saved": "Ustawienia zapisane", "Copied to clipboard": "Skopiowane do schowka", "Control how AI features are used in the workspace.": "Kontroluj sposób używania funkcji AI w obszarze roboczym.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "przez {{ name }}", "Expired": "Ważność wygasła", "Last used": "Ostatnio używane", - "No expiry": "Brak terminu ważności", "Restricted scope": "Ograniczony zakres", "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 }}?", "Key": "Key", - "Created by": "Created by", "Never": "Never", "Expires": "Expires", "Could not load preference": "Could not load preference", @@ -1383,6 +1403,8 @@ "Synced <2>": "Synced <2>", "Date created": "Data utworzenia", "Crop image": "Przytnij obraz", + "Change image": "Zmień obraz", + "Remove image": "Usuń obraz", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "Twoja przeglądarka nie może odczytać obrazów HEIC – najpierw przekonwertuj obraz na format JPEG lub PNG", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "Możesz zaimportować plik ZIP, który został wcześniej wyeksportowany z opcji JSON w innej instancji. W {{ appName }} otwórz Eksport na pasku bocznym Ustawień i kliknij Eksportuj dane.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Przeciągnij i upuść plik zip z opcji eksportu JSON w {{appName}} lub kliknij, aby wybrać plik do przesłania", @@ -1422,6 +1444,7 @@ "Editors": "Edytory", "Invited by": "Zaproszony przez", "Joined": "Dołączył", + "Any status": "Dowolny status", "Active": "Aktywne", "Could not load emojis": "Could not load emojis", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Custom emojis can be used throughout your workspace in documents, comments, and reactions.", @@ -1548,6 +1571,8 @@ "Default role": "Domyślna rola", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "Domyślna rola użytkownika dla nowych kont. Zmiana tego ustawienia nie ma wpływu na istniejące konta użytkowników.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Po włączeniu dokumenty mogą być udostępniane publicznie w Internecie przez dowolnego członka obszaru roboczego", + "Default link expiration": "Domyślna data wygaśnięcia linku", + "New public links will expire after this period. Existing links are not affected.": "Nowe linki publiczne wygasną po tym okresie. Istniejące linki pozostaną bez zmian.", "Viewer document exports": "Widz może eksportować dokumenty", "When enabled, viewers can see download options for documents": "Po włączeniu członkowie z uprawnieniami widza mogą zobaczyć opcje pobierania dokumentów", "Users can delete account": "Użytkownicy mogą usunąć konto", @@ -1601,6 +1626,8 @@ "Expires today": "Wygasa dzisiaj", "Expires tomorrow": "Wygasa jutro", "Expires {{ date }}": "Wygasa {{ date }}", + "Expires in {{ count }} day": "Wygasa za {{ count }} dzień", + "Expires in {{ count }} day_plural": "Wygasa za {{ count }} dni", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.", "Installation URL": "Installation URL", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "Adres URL instalacji Diagrams.net. Pozostaw puste, aby użyć hostowanej w chmurze aplikacji app.diagrams.net", diff --git a/shared/i18n/locales/pt_BR/translation.json b/shared/i18n/locales/pt_BR/translation.json index 6837df748e..09d50aa858 100644 --- a/shared/i18n/locales/pt_BR/translation.json +++ b/shared/i18n/locales/pt_BR/translation.json @@ -215,6 +215,13 @@ "Share link copied": "Link de compartilhamento copiado", "Go to collection": "Ir para a coleção", "Go to document": "Ir para o documento", + "Custom": "Personalizado", + "Set expiry": "Definir expiração", + "Remove expiry": "Remover expiração", + "Expiry removed": "Expiração removida", + "{{ count }} days": "{{ count }} dia", + "{{ count }} days_plural": "{{ count }} dias", + "Expiry updated": "Expiração atualizada", "Revoke link": "Revogar link", "Share link revoked": "Link de compartilhamento revogado", "{{ count }} share link revoked": "{{ count }} link de compartilhamento revogado", @@ -430,6 +437,8 @@ "our engineers have been notified": "nossos engenheiros foram notificados", "Clear cache + reload": "Limpar cache e recarregar", "Show detail": "Exibir detalhes", + "Choose a date": "Escolha uma data", + "Remove expiration": "Remover expiração", "Exporting the collection may take some time.": "A exportação da coleção pode levar algum tempo.", "You will receive an email when it’s complete.": "Você receberá um e-mail quando estiver concluído.", "Include attachments": "Incluir anexos", @@ -469,7 +478,6 @@ "Objects": "Objetos", "Symbols": "Símbolos", "Flags": "Bandeiras", - "Custom": "Personalizado", "Word": "Word", "Plain text": "Texto simples", "Email": "Email", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Todos no espaço de trabalho", "{{ count }} member": "{{ count }} membro", "{{ count }} member_plural": "{{ count }} membros", - "Public link copied to clipboard": "Link público copiado para área de transferência", "Only lowercase letters, digits and dashes allowed": "Somente letras minúsculas, dígitos e travessões são permitidos", "Sorry, this link has already been used": "Desculpe, este link já foi utilizado", "Publish to web": "Publicar na ‘web’", @@ -639,6 +646,8 @@ "Logo": "Logotipo", "Add": "Adicionar", "Add or invite": "Adicionar ou convidar", + "This link expired on {{ date }} and can no longer be accessed.": "Este link expirou em {{ date }} e não pode mais ser acessado.", + "Update expiry": "Atualizar expiração", "Sharing settings updated": "Configurações de compartilhamento atualizadas", "Customize how the published document is displayed": "Personalize como o documento publicado é exibido", "Image options": "Opções de imagem", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Desativar essa configuração para desencorajar os motores de busca de indexar a página", "Email subscriptions": "Assinaturas por e-mail", "Allow viewers to subscribe and receive email notifications when documents are updated": "Permitir que os visualizadores se inscrevam e recebam notificações por e-mail quando documentos forem atualizados", + "Expiration": "Expiração", + "The public link will stop working after the selected date": "O link público deixará de funcionar após a data selecionada", + "No expiry": "Não expira", "Something went wrong": "Algo deu errado", "Check your email to confirm your subscription": "Verifique seu endereço eletrônico para confirmar sua inscrição", "Get notified when this document is updated": "Seja notificado quando este documento for atualizado", @@ -662,6 +674,7 @@ "Editor": "Editor", "Suggestions for invitation": "Sugestões para convites", "No matches": "Nenhum resultado", + "Public link copied to clipboard": "Link público copiado para área de transferência", "Created the document": "Criou o documento", "Can view": "Pode visualizar", "Everyone in the collection": "Todos na coleção", @@ -924,11 +937,9 @@ "a document": "um documento", "a collection": "uma coleção", "a group": "um grupo", - "Choose a date": "Escolha uma data", "API key created. Please copy the value now as it will not be shown again.": "Chave de API criada. Por favor, copie o valor agora, pois ele não será mostrado novamente.", "Scopes": "Escopos", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "Os escopos separados por espaços restringem o acesso desta chave de API a partes específicas da API. Deixe em branco para ter acesso total.", - "Expiration": "Expiração", "Never expires": "Nunca expira", "7 days": "7 dias", "30 days": "30 dias", @@ -1052,8 +1063,6 @@ "Last edited": "Última edição", "Previously edited": "Editou anteriormente", "Sorry, the last change could not be persisted – please reload the page": "Desculpe, a última alteração não pôde ser salva — por favor, recarregue a página", - "{{ count }} days": "{{ count }} dia", - "{{ count }} days_plural": "{{ count }} dias", "This document will be permanently deleted in <2> unless restored.": "Este documento será excluído permanentemente em <2>, a menos que seja restaurado.", "Deleted by {{userName}}": "Excluído por {{userName}}", "Observing {{ userName }}": "Observando {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "Ler todos os dados", "Write all data": "Escrever todos os dados", "Create all data": "Create all data", + "More filters": "Mais filtros", + "More": "Mais", "Any collection": "Qualquer coleção", "All time": "Desde o início", - "Past day": "Dia anterior", - "Past week": "Semana passada", - "Past month": "Mês passado", - "Past year": "Ano passado", "Any time": "A qualquer momento", + "Choose the first and last day": "Escolha o primeiro e o último dia", + "Apply": "Aplicar", "Remove document filter": "Remover filtro de documento", - "Any status": "Qualquer status", "Remove search": "Remover pesquisa", + "Remove filter": "Remover filtro", "Relevance": "Relevance", "Newest": "Newest", "Oldest": "Oldest", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "Ordenado por", "Any author": "Qualquer autor", - "Search titles only": "Pesquisar apenas em títulos", + "Past day": "Dia anterior", + "Past week": "Semana passada", + "Past month": "Mês passado", + "Past year": "Ano passado", + "{{ count }} result": "{{ count }} resultado", + "{{ count }} result_plural": "{{ count }} resultados", "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.", + "Edited by": "Editado por", + "Status": "Status", + "Updated": "Atualizado", + "Created by": "Criado por", + "Title only": "Somente título", + "From {{ date }}": "De {{ date }}", + "Until {{ date }}": "Até {{ date }}", "Settings saved": "Configurações salvas", "Copied to clipboard": "Copiado para a área de transferência", "Control how AI features are used in the workspace.": "Controle como os recursos de IA são usados no espaço de trabalho.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "por {{ name }}", "Expired": "Expirado", "Last used": "Última utilização", - "No expiry": "Não expira", "Restricted scope": "Escopo restrito", "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 }}?", "Key": "Chave", - "Created by": "Criado por", "Never": "Nunca", "Expires": "Expira", "Could not load preference": "Não foi possível carregar a preferência", @@ -1383,6 +1403,8 @@ "Synced <2>": "Sincronizado <2>", "Date created": "Data de criação", "Crop image": "Cortar imagem", + "Change image": "Alterar imagem", + "Remove image": "Remover imagem", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "Seu navegador não consegue ler imagens HEIC – primeiro, converta a imagem para JPEG ou PNG", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "Você pode importar um arquivo zip que foi exportado anteriormente da opção JSON em outra instância. Em {{ appName }}, abra Exportar na barra lateral de Configurações e clique em Exportar dados.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Arraste e solte o arquivo zip da opção de exportação JSON em {{appName}}, ou clique para realizar o upload", @@ -1422,6 +1444,7 @@ "Editors": "Editores", "Invited by": "Convidado por", "Joined": "Entrou", + "Any status": "Qualquer status", "Active": "Ativo", "Could not load emojis": "Não foi possível carregar Emojis", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Emojis personalizados podem ser usados no seu espaço de trabalho em documentos, comentários e reações.", @@ -1548,6 +1571,8 @@ "Default role": "Função padrão", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "A função de usuário padrão para novas contas. A alteração desta configuração não afeta as contas de usuário existentes.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Quando habilitado, os documentos podem ser compartilhados publicamente na internet por qualquer membro do espaço de trabalho", + "Default link expiration": "Expiração padrão do link", + "New public links will expire after this period. Existing links are not affected.": "Novos links públicos expirarão após este período. Os links existentes não serão afetados.", "Viewer document exports": "Permitir visualizadores realizar exportação de documentos", "When enabled, viewers can see download options for documents": "Quando ativado, os visualizadores podem ver opções de download de documentos", "Users can delete account": "Os usuários podem excluir conta", @@ -1601,6 +1626,8 @@ "Expires today": "Vence hoje", "Expires tomorrow": "Vence amanhã", "Expires {{ date }}": "Vence em {{ date }}", + "Expires in {{ count }} day": "Expira em {{ count }} dia", + "Expires in {{ count }} day_plural": "Expira em {{ count }} dias", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.", "Installation URL": "Installation URL", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "A URL da sua instalação do Diagrams.net. Deixe em branco para usar o app.diagrams.net hospedado na nuvem", diff --git a/shared/i18n/locales/pt_PT/translation.json b/shared/i18n/locales/pt_PT/translation.json index 913e75c6bc..2a75e7bcb6 100644 --- a/shared/i18n/locales/pt_PT/translation.json +++ b/shared/i18n/locales/pt_PT/translation.json @@ -215,6 +215,13 @@ "Share link copied": "Link de partilha foi copiado", "Go to collection": "Ir para a coleção", "Go to document": "Ir para documento", + "Custom": "Personalizado", + "Set expiry": "Definir expiração", + "Remove expiry": "Remover expiração", + "Expiry removed": "Expiração removida", + "{{ count }} days": "{{ count }} dia", + "{{ count }} days_plural": "{{ count }} dias", + "Expiry updated": "Expiração atualizada", "Revoke link": "Revogar link", "Share link revoked": "Link de partilha foi revogado", "{{ count }} share link revoked": "{{ count }} link de compartilhamento revogado", @@ -430,6 +437,8 @@ "our engineers have been notified": "os nossos engenheiros foram notificados", "Clear cache + reload": "Limpar cache + recarregar", "Show detail": "Mostrar detalhe", + "Choose a date": "Escolher data", + "Remove expiration": "Remover expiração", "Exporting the collection may take some time.": "A exportação da coleção pode levar algum tempo.", "You will receive an email when it’s complete.": "Receberá um e-mail quando estiver concluído.", "Include attachments": "Incluir anexos", @@ -469,7 +478,6 @@ "Objects": "Objetos", "Symbols": "Símbolos", "Flags": "Bandeiras", - "Custom": "Personalizado", "Word": "Word", "Plain text": "Texto simples", "Email": "E-mail", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Todos no espaço de trabalho", "{{ count }} member": "{{ count }} membro", "{{ count }} member_plural": "{{ count }} membros", - "Public link copied to clipboard": "Ligação pública copiada para a área de transferência", "Only lowercase letters, digits and dashes allowed": "Apenas letras minúsculas, dígitos e traços permitidos", "Sorry, this link has already been used": "Desculpe, esta ligação já foi utilizada", "Publish to web": "Publish to web", @@ -639,6 +646,8 @@ "Logo": "Logótipo", "Add": "Adicionar", "Add or invite": "Adicionar ou convidar", + "This link expired on {{ date }} and can no longer be accessed.": "Este link expirou em {{ date }} e já não pode ser acedido.", + "Update expiry": "Atualizar expiração", "Sharing settings updated": "Sharing settings updated", "Customize how the published document is displayed": "Customize how the published document is displayed", "Image options": "Image options", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Disable this setting to discourage search engines from indexing the page", "Email subscriptions": "Email subscriptions", "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", + "Expiration": "Expiração", + "The public link will stop working after the selected date": "O link público deixará de funcionar após a data selecionada", + "No expiry": "Sem expiração", "Something went wrong": "Ocorreu um erro", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -662,6 +674,7 @@ "Editor": "Editor", "Suggestions for invitation": "Sugestões para convite", "No matches": "Sem resultados", + "Public link copied to clipboard": "Ligação pública copiada para a área de transferência", "Created the document": "Documento criado", "Can view": "Pode ver", "Everyone in the collection": "Todos na coleção", @@ -924,11 +937,9 @@ "a document": "um documento", "a collection": "uma coleção", "a group": "a group", - "Choose a date": "Escolher data", "API key created. Please copy the value now as it will not be shown again.": "API key created. Please copy the value now as it will not be shown again.", "Scopes": "Scopes", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "Os âmbitos separados por espaços restringem o acesso desta chave de API a partes específicas da API. Deixe em branco para acesso completo.", - "Expiration": "Expiração", "Never expires": "Nunca expira", "7 days": "7 dias", "30 days": "30 dias", @@ -1052,8 +1063,6 @@ "Last edited": "Última alteração", "Previously edited": "Alterado anteriormente", "Sorry, the last change could not be persisted – please reload the page": "Não foi possível manter a última alteração — recarregue a página", - "{{ count }} days": "{{ count }} dia", - "{{ count }} days_plural": "{{ count }} dias", "This document will be permanently deleted in <2> unless restored.": "Este documento será permanentemente eliminado em <2>, se não for reposto.", "Deleted by {{userName}}": "Eliminado por {{userName}}", "Observing {{ userName }}": "A ver {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "Read all data", "Write all data": "Write all data", "Create all data": "Create all data", + "More filters": "Mais filtros", + "More": "Mais", "Any collection": "Qualquer coleção", "All time": "All time", - "Past day": "Último dia", - "Past week": "Última semana", - "Past month": "Último mês", - "Past year": "Último ano", "Any time": "A qualquer altura", + "Choose the first and last day": "Escolha o primeiro e o último dia", + "Apply": "Aplicar", "Remove document filter": "Remover filtro de documento", - "Any status": "Qualquer estado", "Remove search": "Excluir pesquisa", + "Remove filter": "Remover filtro", "Relevance": "Relevance", "Newest": "Newest", "Oldest": "Oldest", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "Ordenado por", "Any author": "Qualquer autor", - "Search titles only": "Pesquisar apenas títulos", + "Past day": "Último dia", + "Past week": "Última semana", + "Past month": "Último mês", + "Past year": "Último ano", + "{{ count }} result": "{{ count }} resultado", + "{{ count }} result_plural": "{{ count }} resultados", "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.", + "Edited by": "Editado por", + "Status": "Estado", + "Updated": "Atualizado", + "Created by": "Created by", + "Title only": "Apenas título", + "From {{ date }}": "A partir de {{ date }}", + "Until {{ date }}": "Até {{ date }}", "Settings saved": "Configurações guardadas", "Copied to clipboard": "Copiado para o clipboard", "Control how AI features are used in the workspace.": "Controle como os recursos de IA são usados no espaço de trabalho.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "by {{ name }}", "Expired": "Expirado", "Last used": "Última utilização", - "No expiry": "Sem expiração", "Restricted scope": "Restricted scope", "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 }}?", "Key": "Key", - "Created by": "Created by", "Never": "Never", "Expires": "Expires", "Could not load preference": "Could not load preference", @@ -1383,6 +1403,8 @@ "Synced <2>": "Synced <2>", "Date created": "Date created", "Crop image": "Crop image", + "Change image": "Alterar imagem", + "Remove image": "Remover imagem", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "O seu navegador não consegue ler imagens HEIC – converta primeiro a imagem para JPEG ou PNG", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "Pode importar um ficheiro ZIP que foi exportado anteriormente a partir da opção JSON de outra instância. Em {{ appName }}, abra Exportar na barra lateral de Definições e clique em Exportar dados.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Arraste e solte o ficheiro ZIP da opção de exportação JSON em {{appName}}ou clique para carregar", @@ -1422,6 +1444,7 @@ "Editors": "Editores", "Invited by": "Convidado por", "Joined": "Entrou", + "Any status": "Qualquer estado", "Active": "Activo", "Could not load emojis": "Could not load emojis", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Custom emojis can be used throughout your workspace in documents, comments, and reactions.", @@ -1548,6 +1571,8 @@ "Default role": "Papel por defeito", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "O papel por defeito de utilizadores para novas contas. Alterar esta configuração não afeta contas existentes.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Quando ativo, documentos pode ser partilhados publicamente na Internet por qualquer membro da área de trabalho", + "Default link expiration": "Expiração predefinida do link", + "New public links will expire after this period. Existing links are not affected.": "Os novos links públicos expirarão após este período. Os links existentes não são afetados.", "Viewer document exports": "Documentos exportados de Leitor", "When enabled, viewers can see download options for documents": "Quando ativo, leitores podem ver e descarregar opções para documentos", "Users can delete account": "Utilizador podem eliminar conta", @@ -1601,6 +1626,8 @@ "Expires today": "Expira hoje", "Expires tomorrow": "Expira amanhã", "Expires {{ date }}": "Expira em {{ date }}", + "Expires in {{ count }} day": "Expira em {{ count }} dia", + "Expires in {{ count }} day_plural": "Expira em {{ count }} dias", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.", "Installation URL": "Installation URL", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "A URL da sua instalação do Diagrams.net. Deixe em branco para usar o app.diagrams.net hospedado na nuvem", diff --git a/shared/i18n/locales/sv_SE/translation.json b/shared/i18n/locales/sv_SE/translation.json index 84f67d8842..9fd99a4630 100644 --- a/shared/i18n/locales/sv_SE/translation.json +++ b/shared/i18n/locales/sv_SE/translation.json @@ -215,6 +215,13 @@ "Share link copied": "Delningslänken är kopierad", "Go to collection": "Gå till samling", "Go to document": "Gå till dokument", + "Custom": "Egendefinerad", + "Set expiry": "Ange utgångsdatum", + "Remove expiry": "Ta bort utgångsdatum", + "Expiry removed": "Utgångsdatum borttaget", + "{{ count }} days": "{{ count }} dag", + "{{ count }} days_plural": "{{ count }} dagar", + "Expiry updated": "Utgångsdatum uppdaterat", "Revoke link": "Återkalla länk", "Share link revoked": "Delningslänk återkallad", "{{ count }} share link revoked": "{{ count }} delningslänk återkallad", @@ -430,6 +437,8 @@ "our engineers have been notified": "våra ingenjörer har underrättats", "Clear cache + reload": "Rensa cache + ladda om", "Show detail": "Visa detaljer", + "Choose a date": "Välj ett datum", + "Remove expiration": "Ta bort utgångsdatum", "Exporting the collection may take some time.": "Det kan ta lite tid att exportera samlingen.", "You will receive an email when it’s complete.": "Du får ett e-postmeddelande när det är klart.", "Include attachments": "Inkludera bilagor", @@ -469,7 +478,6 @@ "Objects": "Objekt", "Symbols": "Symbol", "Flags": "Flaggor", - "Custom": "Egendefinerad", "Word": "Word", "Plain text": "Oformaterad text", "Email": "E-post", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Alla i arbetsytan", "{{ count }} member": "{{ count }} medlem", "{{ count }} member_plural": "{{ count }} medlemmar", - "Public link copied to clipboard": "Offentlig länk har kopierats till urklipp", "Only lowercase letters, digits and dashes allowed": "Endast små bokstäver, siffror och bindestreck tillåts", "Sorry, this link has already been used": "Tyvärr, denna länk har redan använts", "Publish to web": "Publicera till webben", @@ -639,6 +646,8 @@ "Logo": "Logo", "Add": "Lägg till", "Add or invite": "Lägg till eller bjud in", + "This link expired on {{ date }} and can no longer be accessed.": "Den här länken upphörde att gälla den {{ date }} och kan inte längre nås.", + "Update expiry": "Uppdatera utgångsdatum", "Sharing settings updated": "Delningsinställningar uppdaterade", "Customize how the published document is displayed": "Anpassa hur det publicerade dokumentet ska visas", "Image options": "Bildalternativ", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Inaktivera denna inställning för att begära att sökmotorer inte indexerar sidan", "Email subscriptions": "E-postprenumerationer", "Allow viewers to subscribe and receive email notifications when documents are updated": "Tillåt läsare att prenumerera och ta emot e-postnotifikationer när dokument uppdateras", + "Expiration": "Utgång", + "The public link will stop working after the selected date": "Den offentliga länken slutar fungera efter det valda datumet", + "No expiry": "Ingen utgång", "Something went wrong": "Något gick fel", "Check your email to confirm your subscription": "Kolla din e-post för att godkänna prenumerationen", "Get notified when this document is updated": "Få notifikationer när detta dokument uppdateras", @@ -662,6 +674,7 @@ "Editor": "Redigerare", "Suggestions for invitation": "Förslag på inbjudan", "No matches": "Inga träffar", + "Public link copied to clipboard": "Offentlig länk har kopierats till urklipp", "Created the document": "Skapade dokumentet", "Can view": "Kan se", "Everyone in the collection": "Alla i samlingen", @@ -924,11 +937,9 @@ "a document": "ett dokument", "a collection": "en samling", "a group": "en grupp", - "Choose a date": "Välj ett datum", "API key created. Please copy the value now as it will not be shown again.": "API-nyckel skapad. Kopiera värdet nu eftersom det inte visas igen.", "Scopes": "Scopes", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "Scope-värden separerade med mellanslag begränsar åtkomsten för denna API-nyckel till specifika delar av API:t. Lämna tomt för full åtkomst.", - "Expiration": "Utgång", "Never expires": "Utgår aldrig", "7 days": "7 dagar", "30 days": "30 dagar", @@ -1052,8 +1063,6 @@ "Last edited": "Senast ändrad", "Previously edited": "Tidigare redigerad", "Sorry, the last change could not be persisted – please reload the page": "Tyvärr, den senaste ändringen kunde inte sparas– ladda om sidan", - "{{ count }} days": "{{ count }} dag", - "{{ count }} days_plural": "{{ count }} dagar", "This document will be permanently deleted in <2> unless restored.": "Detta dokument kommer att raderas permanent i <2> om det inte återställs.", "Deleted by {{userName}}": "Borttagen av {{userName}}", "Observing {{ userName }}": "Observerar {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "Läs all data", "Write all data": "Skriv all data", "Create all data": "Skapa all data", + "More filters": "Fler filter", + "More": "Mer", "Any collection": "Valfri samling", "All time": "Alltid", - "Past day": "Föregående dag", - "Past week": "Senaste veckan", - "Past month": "Senaste månaden", - "Past year": "Senaste året", "Any time": "När som helst", + "Choose the first and last day": "Välj första och sista dagen", + "Apply": "Tillämpa", "Remove document filter": "Ta bort dokumentfilter", - "Any status": "Valfri status", "Remove search": "Ta bort sökning", + "Remove filter": "Ta bort filter", "Relevance": "Relevans", "Newest": "Nyast", "Oldest": "Äldst", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "Sorterat efter", "Any author": "Alla författare", - "Search titles only": "Sök endast rubriker", + "Past day": "Föregående dag", + "Past week": "Senaste veckan", + "Past month": "Senaste månaden", + "Past year": "Senaste året", + "{{ count }} result": "{{ count }} resultat", + "{{ count }} result_plural": "{{ count }} resultat", "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.", + "Edited by": "Redigerad av", + "Status": "Status", + "Updated": "Uppdaterad", + "Created by": "Skapad av", + "Title only": "Endast titel", + "From {{ date }}": "Från {{ date }}", + "Until {{ date }}": "Till {{ date }}", "Settings saved": "Inställningarna sparades", "Copied to clipboard": "Kopierat till urklipp", "Control how AI features are used in the workspace.": "Styr hur AI-funktioner används i arbetsytan.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "av {{ name }}", "Expired": "Utgånget", "Last used": "Senast använd", - "No expiry": "Ingen utgång", "Restricted scope": "Begränsad räckvidd", "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?", "Key": "Nyckel", - "Created by": "Skapad av", "Never": "Aldrig", "Expires": "Slutar gälla", "Could not load preference": "Kunde inte ladda preferenser", @@ -1383,6 +1403,8 @@ "Synced <2>": "Synkroniserad <2>", "Date created": "Datum skapad", "Crop image": "Beskär bild", + "Change image": "Ändra bild", + "Remove image": "Ta bort bild", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "Din webbläsare kan inte läsa HEIC-bilder – konvertera bilden till JPEG eller PNG först", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "Du kan importera en zip-fil som tidigare exporterats från JSON-alternativet i en annan instans. I {{ appName }} öppnar du Exportera i sidofältet Inställningar och klickar på Exportera data.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Dra och släpp zip-filen från JSON-exportalternativet i {{appName}}, eller klicka för att ladda upp", @@ -1422,6 +1444,7 @@ "Editors": "Redigerare", "Invited by": "Inbjuden av", "Joined": "Gick med", + "Any status": "Valfri status", "Active": "Aktiv", "Could not load emojis": "Kunde inte ladda emoji", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Unika emoji kan användas i hela arbetsytan i dokument, kommentarer och reaktioner.", @@ -1548,6 +1571,8 @@ "Default role": "Standardroll", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "Standardroll för nya konton. Ändring av denna inställning påverkar inte befintliga användarkonton.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "När detta är aktiverat kan dokument delas offentligt på internet av någon medlem i arbetsytan", + "Default link expiration": "Standardutgångsdatum för länk", + "New public links will expire after this period. Existing links are not affected.": "Nya offentliga länkar upphör att gälla efter denna period. Befintliga länkar påverkas inte.", "Viewer document exports": "Export för visningsdokument", "When enabled, viewers can see download options for documents": "När detta är aktiverat kan läsare se hämtningsalternativ för dokument", "Users can delete account": "Användare kan ta bort konto", @@ -1601,6 +1626,8 @@ "Expires today": "Går ut idag", "Expires tomorrow": "Går ut imorgon", "Expires {{ date }}": "Utgår {{ date }}", + "Expires in {{ count }} day": "Upphör att gälla om {{ count }} dag", + "Expires in {{ count }} day_plural": "Upphör om {{ count }} dagar", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Konfigurera en egen installations-URL för Diagrams.net för att använda din egen självhostade instans för att bädda in diagram i dina dokument.", "Installation URL": "URL för installation", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "Webbadressen till din Diagrams.net-installation. Lämna tomt om du vill använda den molnbaserade app.diagrams.net", diff --git a/shared/i18n/locales/th_TH/translation.json b/shared/i18n/locales/th_TH/translation.json index b141164998..9731fc8838 100644 --- a/shared/i18n/locales/th_TH/translation.json +++ b/shared/i18n/locales/th_TH/translation.json @@ -215,6 +215,13 @@ "Share link copied": "Share link copied", "Go to collection": "Go to collection", "Go to document": "Go to document", + "Custom": "Custom", + "Set expiry": "กำหนดวันหมดอายุ", + "Remove expiry": "ลบวันหมดอายุ", + "Expiry removed": "ลบวันหมดอายุแล้ว", + "{{ count }} days": "{{ count }} day", + "{{ count }} days_plural": "{{ count }} days", + "Expiry updated": "อัปเดตวันหมดอายุแล้ว", "Revoke link": "Revoke link", "Share link revoked": "Share link revoked", "{{ count }} share link revoked": "ลิงก์แชร์ {{ count }} รายการถูกเพิกถอน", @@ -430,6 +437,8 @@ "our engineers have been notified": "วิศวกรของเราได้รับแจ้งแล้ว", "Clear cache + reload": "Clear cache + reload", "Show detail": "แสดงรายละเอียด", + "Choose a date": "Choose a date", + "Remove expiration": "ยกเลิกการหมดอายุ", "Exporting the collection may take some time.": "การส่งออกคอลเลกชันอาจใช้เวลาสักครู่", "You will receive an email when it’s complete.": "คุณจะได้รับอีเมลเมื่อดำเนินการเสร็จสิ้น", "Include attachments": "Include attachments", @@ -469,7 +478,6 @@ "Objects": "Objects", "Symbols": "Symbols", "Flags": "Flags", - "Custom": "Custom", "Word": "Word", "Plain text": "ข้อความล้วน", "Email": "Email", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Everyone in the workspace", "{{ count }} member": "{{ count }} member", "{{ count }} member_plural": "{{ count }} members", - "Public link copied to clipboard": "Public link copied to clipboard", "Only lowercase letters, digits and dashes allowed": "Only lowercase letters, digits and dashes allowed", "Sorry, this link has already been used": "Sorry, this link has already been used", "Publish to web": "Publish to web", @@ -639,6 +646,8 @@ "Logo": "โลโก้", "Add": "เพิ่ม", "Add or invite": "Add or invite", + "This link expired on {{ date }} and can no longer be accessed.": "ลิงก์นี้หมดอายุเมื่อ {{ date }} และไม่สามารถเข้าถึงได้อีกต่อไป", + "Update expiry": "อัปเดตวันหมดอายุ", "Sharing settings updated": "Sharing settings updated", "Customize how the published document is displayed": "Customize how the published document is displayed", "Image options": "Image options", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Disable this setting to discourage search engines from indexing the page", "Email subscriptions": "Email subscriptions", "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", + "Expiration": "Expiration", + "The public link will stop working after the selected date": "ลิงก์สาธารณะจะใช้งานไม่ได้หลังจากวันที่เลือก", + "No expiry": "No expiry", "Something went wrong": "Something went wrong", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -662,6 +674,7 @@ "Editor": "Editor", "Suggestions for invitation": "Suggestions for invitation", "No matches": "No matches", + "Public link copied to clipboard": "Public link copied to clipboard", "Created the document": "Created the document", "Can view": "Can view", "Everyone in the collection": "Everyone in the collection", @@ -924,11 +937,9 @@ "a document": "เอกสาร", "a collection": "คอลเลกชัน", "a group": "a group", - "Choose a date": "Choose a date", "API key created. Please copy the value now as it will not be shown again.": "API key created. Please copy the value now as it will not be shown again.", "Scopes": "Scopes", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "ขอบเขตที่คั่นด้วยช่องว่างจะจำกัดสิทธิ์เข้าถึงของคีย์ API นี้ให้เฉพาะบางส่วนของ API เว้นว่างไว้เพื่อให้เข้าถึงได้อย่างเต็มรูปแบบ", - "Expiration": "Expiration", "Never expires": "Never expires", "7 days": "7 days", "30 days": "30 days", @@ -1052,8 +1063,6 @@ "Last edited": "Last edited", "Previously edited": "Previously edited", "Sorry, the last change could not be persisted – please reload the page": "Sorry, the last change could not be persisted – please reload the page", - "{{ count }} days": "{{ count }} day", - "{{ count }} days_plural": "{{ count }} days", "This document will be permanently deleted in <2> unless restored.": "This document will be permanently deleted in <2> unless restored.", "Deleted by {{userName}}": "Deleted by {{userName}}", "Observing {{ userName }}": "Observing {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "Read all data", "Write all data": "Write all data", "Create all data": "Create all data", + "More filters": "ตัวกรองเพิ่มเติม", + "More": "เพิ่มเติม", "Any collection": "Any collection", "All time": "All time", - "Past day": "Past day", - "Past week": "Past week", - "Past month": "Past month", - "Past year": "Past year", "Any time": "Any time", + "Choose the first and last day": "เลือกวันแรกและวันสุดท้าย", + "Apply": "นำไปใช้", "Remove document filter": "Remove document filter", - "Any status": "Any status", "Remove search": "Remove search", + "Remove filter": "ลบตัวกรอง", "Relevance": "Relevance", "Newest": "Newest", "Oldest": "Oldest", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "เรียงลำดับตาม", "Any author": "Any author", - "Search titles only": "Search titles only", + "Past day": "Past day", + "Past week": "Past week", + "Past month": "Past month", + "Past year": "Past year", + "{{ count }} result": "ผลลัพธ์ {{ count }} รายการ", + "{{ count }} result_plural": "ผลลัพธ์ {{ count }} รายการ", "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.", + "Edited by": "แก้ไขโดย", + "Status": "สถานะ", + "Updated": "อัปเดตแล้ว", + "Created by": "Created by", + "Title only": "เฉพาะชื่อเรื่อง", + "From {{ date }}": "ตั้งแต่ {{ date }}", + "Until {{ date }}": "ถึง {{ date }}", "Settings saved": "Settings saved", "Copied to clipboard": "คัดลอกไปยังคลิปบอร์ดแล้ว", "Control how AI features are used in the workspace.": "ควบคุมวิธีใช้ฟีเจอร์ AI ในเวิร์กสเปซ", @@ -1309,14 +1331,12 @@ "by {{ name }}": "by {{ name }}", "Expired": "Expired", "Last used": "Last used", - "No expiry": "No expiry", "Restricted scope": "Restricted scope", "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?", "Key": "Key", - "Created by": "Created by", "Never": "Never", "Expires": "Expires", "Could not load preference": "Could not load preference", @@ -1383,6 +1403,8 @@ "Synced <2>": "Synced <2>", "Date created": "Date created", "Crop image": "Crop image", + "Change image": "เปลี่ยนรูปภาพ", + "Remove image": "ลบรูปภาพ", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "เบราว์เซอร์ของคุณไม่สามารถอ่านรูปภาพ HEIC ได้ โปรดแปลงรูปภาพเป็น JPEG หรือ PNG ก่อน", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "คุณสามารถนำเข้าไฟล์ zip ที่ส่งออกไว้ก่อนหน้านี้จากตัวเลือก JSON ในอินสแตนซ์อื่นได้ ใน {{ appName }} ให้เปิด ส่งออก ในแถบด้านข้างการตั้งค่า แล้วคลิก ส่งออกข้อมูล", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload", @@ -1422,6 +1444,7 @@ "Editors": "Editors", "Invited by": "ได้รับเชิญโดย", "Joined": "เข้าร่วมแล้ว", + "Any status": "Any status", "Active": "Active", "Could not load emojis": "Could not load emojis", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Custom emojis can be used throughout your workspace in documents, comments, and reactions.", @@ -1548,6 +1571,8 @@ "Default role": "Default role", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "The default user role for new accounts. Changing this setting does not affect existing user accounts.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "When enabled, documents can be shared publicly on the internet by any member of the workspace", + "Default link expiration": "การหมดอายุเริ่มต้นของลิงก์", + "New public links will expire after this period. Existing links are not affected.": "ลิงก์สาธารณะใหม่จะหมดอายุหลังจากระยะเวลานี้ ลิงก์ที่มีอยู่จะไม่ได้รับผลกระทบ", "Viewer document exports": "Viewer document exports", "When enabled, viewers can see download options for documents": "When enabled, viewers can see download options for documents", "Users can delete account": "Users can delete account", @@ -1601,6 +1626,8 @@ "Expires today": "Expires today", "Expires tomorrow": "Expires tomorrow", "Expires {{ date }}": "Expires {{ date }}", + "Expires in {{ count }} day": "หมดอายุใน {{ count }} วัน", + "Expires in {{ count }} day_plural": "จะหมดอายุในอีก {{ count }} วัน", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.", "Installation URL": "Installation URL", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "URL ของการติดตั้ง Diagrams.net ของคุณ ปล่อยว่างไว้เพื่อใช้ app.diagrams.net ที่โฮสต์บนคลาวด์", diff --git a/shared/i18n/locales/tr_TR/translation.json b/shared/i18n/locales/tr_TR/translation.json index 76d4da5022..c3507f257a 100644 --- a/shared/i18n/locales/tr_TR/translation.json +++ b/shared/i18n/locales/tr_TR/translation.json @@ -215,6 +215,13 @@ "Share link copied": "Paylaşım bağlantısı kopyalandı", "Go to collection": "Koleksiyona git", "Go to document": "Belgeye geri dön", + "Custom": "Özel", + "Set expiry": "Sona erme tarihi ayarla", + "Remove expiry": "Sona erme tarihini kaldır", + "Expiry removed": "Sona erme tarihi kaldırıldı", + "{{ count }} days": "{{ count }} gün", + "{{ count }} days_plural": "{{ count }} gün", + "Expiry updated": "Sona erme tarihi güncellendi", "Revoke link": "Bağlantıyı iptal et", "Share link revoked": "Paylaşım bağlantısı iptal edildi", "{{ count }} share link revoked": "{{ count }} paylaşım bağlantısı iptal edildi", @@ -430,6 +437,8 @@ "our engineers have been notified": "mühendislerimiz bilgilendirildi", "Clear cache + reload": "Önbelleği temizle + yeniden yükle", "Show detail": "Detayı göster", + "Choose a date": "Bir tarih seçin", + "Remove expiration": "Sona ermeyi kaldır", "Exporting the collection may take some time.": "Koleksiyonu dışa aktarmak biraz zaman alabilir.", "You will receive an email when it’s complete.": "Tamamlandığında bir e-posta alacaksınız.", "Include attachments": "Eklentileri dahil et", @@ -469,7 +478,6 @@ "Objects": "Nesneler", "Symbols": "Semboller", "Flags": "Bayraklar", - "Custom": "Özel", "Word": "Word", "Plain text": "Düz metin", "Email": "E-posta", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Çalışma alanındaki herkes", "{{ count }} member": "{{ count }} üye", "{{ count }} member_plural": "{{ count }} üye", - "Public link copied to clipboard": "Genel bağlantı panoya kopyalandı", "Only lowercase letters, digits and dashes allowed": "Yalnızca küçük harfler, rakamlar ve kısa çizgiler izin verilir", "Sorry, this link has already been used": "Üzgünüz, bu bağlantı zaten kullanılmış", "Publish to web": "Web'de paylaş", @@ -639,6 +646,8 @@ "Logo": "Logo", "Add": "Ekle", "Add or invite": "Ekle veya davet et", + "This link expired on {{ date }} and can no longer be accessed.": "Bu bağlantının süresi {{ date }} tarihinde doldu ve artık erişilemez.", + "Update expiry": "Sona erme tarihini güncelle", "Sharing settings updated": "Paylaşım ayarları güncellendi", "Customize how the published document is displayed": "Yayınlanan belgenin görünümünü özelleştirin", "Image options": "Görsel seçenekleri", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Arama motorlarının sayfayı indekslemesini engellemek için bu ayarı devre dışı bırakın", "Email subscriptions": "E-posta abonelikleri", "Allow viewers to subscribe and receive email notifications when documents are updated": "Görüntüleyicilerin abone olmasına ve belgeler güncellendiğinde e-posta bildirimleri almasına izin ver", + "Expiration": "Sona Erme", + "The public link will stop working after the selected date": "Herkese açık bağlantı, seçilen tarihten sonra çalışmayı durduracak", + "No expiry": "Sona erme yok", "Something went wrong": "Bir şeyler yanlış gitti", "Check your email to confirm your subscription": "Aboneliğinizi onaylamak için e-postanızı kontrol edin", "Get notified when this document is updated": "Bu belge güncellendiğinde bildirim al", @@ -662,6 +674,7 @@ "Editor": "Düzenleyici", "Suggestions for invitation": "Davet için öneriler", "No matches": "Eşleşme yok", + "Public link copied to clipboard": "Genel bağlantı panoya kopyalandı", "Created the document": "Belgeyi oluşturdu", "Can view": "Görüntüleyebilir", "Everyone in the collection": "Koleksiyondaki herkes", @@ -924,11 +937,9 @@ "a document": "bir belge", "a collection": "bir koleksiyon", "a group": "bir grup", - "Choose a date": "Bir tarih seçin", "API key created. Please copy the value now as it will not be shown again.": "API anahtarı oluşturuldu. Lütfen değeri şimdi kopyalayın, tekrar gösterilmeyecektir.", "Scopes": "Kapsamlar", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "Boşlukla ayrılmış kapsamlar, bu API anahtarının erişimini API'nin belirli bölümleriyle sınırlandırır. Tam erişim için boş bırakın.", - "Expiration": "Sona Erme", "Never expires": "Asla sona ermez", "7 days": "7 gün", "30 days": "30 gün", @@ -1052,8 +1063,6 @@ "Last edited": "Son düzenleme", "Previously edited": "Önceden düzenlenmiş", "Sorry, the last change could not be persisted – please reload the page": "Üzgünüz, son değişiklik kalıcı hale getirilemedi – lütfen sayfayı yeniden yükleyin", - "{{ count }} days": "{{ count }} gün", - "{{ count }} days_plural": "{{ count }} gün", "This document will be permanently deleted in <2> unless restored.": "Bu belge, geri yüklenmedikçe <2> içinde kalıcı olarak silinecektir.", "Deleted by {{userName}}": "{{userName}} tarafından silindi", "Observing {{ userName }}": "{{ userName }} gözlemliyor", @@ -1213,25 +1222,38 @@ "Read all data": "Tüm verileri oku", "Write all data": "Tüm verileri yaz", "Create all data": "Tüm verileri oluştur", + "More filters": "Daha fazla filtre", + "More": "Daha fazla", "Any collection": "Herhangi bir koleksiyon", "All time": "Tüm zamanlar", - "Past day": "Geçen gün", - "Past week": "Geçen hafta", - "Past month": "Geçen ay", - "Past year": "Geçen yıl", "Any time": "Herhangi bir zaman", + "Choose the first and last day": "İlk ve son günü seçin", + "Apply": "Uygula", "Remove document filter": "Belge filtresini kaldır", - "Any status": "Herhangi bir durum", "Remove search": "Aramayı kaldır", + "Remove filter": "Filtreyi kaldır", "Relevance": "İlgi", "Newest": "En yeni", "Oldest": "En eski", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "Sıralama ölçütü", "Any author": "Herhangi bir yazar", - "Search titles only": "Sadece başlıklarda ara", + "Past day": "Geçen gün", + "Past week": "Geçen hafta", + "Past month": "Geçen ay", + "Past year": "Geçen yıl", + "{{ count }} result": "{{ count }} sonuç", + "{{ count }} result_plural": "{{ count }} sonuç", "Please try again or contact support if the problem persists": "Lütfen tekrar deneyin veya sorun devam ederse destek ile iletişime geçin", "No documents found for your search filters.": "Arama filtreleriniz için belge bulunamadı.", + "Edited by": "Düzenleyen", + "Status": "Durum", + "Updated": "Güncellendi", + "Created by": "Oluşturan", + "Title only": "Yalnızca başlık", + "From {{ date }}": "{{ date }} tarihinden itibaren", + "Until {{ date }}": "{{ date }} tarihine kadar", "Settings saved": "Ayarlar kaydedildi", "Copied to clipboard": "Panoya kopyalandı", "Control how AI features are used in the workspace.": "Yapay zeka özelliklerinin çalışma alanında nasıl kullanılacağını kontrol edin.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "geliştirici: {{ name }}", "Expired": "Süresi doldu", "Last used": "Son kullanım", - "No expiry": "Sona erme yok", "Restricted scope": "Kısıtlı kapsam", "API key copied to clipboard": "API anahtarı panoya kopyalandı", "Copied": "Kopyalandı", "Revoking": "İptal ediliyor", "Are you sure you want to revoke the {{ tokenName }} token?": "{{ tokenName }} belirtecini iptal etmek istediğinizden emin misiniz?", "Key": "Anahtar", - "Created by": "Oluşturan", "Never": "Asla", "Expires": "Sona erme", "Could not load preference": "Tercih yüklenemedi", @@ -1383,6 +1403,8 @@ "Synced <2>": "Eşitlendi <2>", "Date created": "Oluşturulma tarihi", "Crop image": "Görseli kırp", + "Change image": "Resmi değiştir", + "Remove image": "Resmi kaldır", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "Tarayıcınız HEIC görsellerini okuyamıyor – lütfen önce görseli JPEG veya PNG'ye dönüştürün", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "Daha önce başka bir örnekteki JSON seçeneğinden dışa aktarılmış bir zip dosyasını içe aktarabilirsiniz. {{ appName }} uygulamasında, Ayarlar kenar çubuğunda Dışa Aktar'ı açın ve Verileri Dışa Aktar'a tıklayın.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "{{appName}} uygulamasındaki JSON dışa aktarma seçeneğinden zip dosyasını sürükleyip bırakın veya yüklemek için tıklayın", @@ -1422,6 +1444,7 @@ "Editors": "Düzenleyiciler", "Invited by": "Davet eden", "Joined": "Katıldı", + "Any status": "Herhangi bir durum", "Active": "Aktif", "Could not load emojis": "Emojiler yüklenemedi", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Özel emojiler çalışma alanınızdaki belgelerde, yorumlarda ve tepkilerde kullanılabilir.", @@ -1548,6 +1571,8 @@ "Default role": "Varsayılan rol", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "Yeni hesaplar için varsayılan kullanıcı rolü. Bu ayarın değiştirilmesi mevcut kullanıcı hesaplarını etkilemez.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Etkinleştirildiğinde, belgeler çalışma alanının herhangi bir üyesi tarafından internet üzerinde herkese açık olarak paylaşılabilir", + "Default link expiration": "Varsayılan bağlantı sona erme süresi", + "New public links will expire after this period. Existing links are not affected.": "Yeni herkese açık bağlantıların süresi bu süreden sonra dolar. Mevcut bağlantılar etkilenmez.", "Viewer document exports": "Görüntüleyici belge dışa aktarmaları", "When enabled, viewers can see download options for documents": "Etkinleştirildiğinde, görüntüleyiciler belgeler için indirme seçeneklerini görebilir", "Users can delete account": "Kullanıcılar hesabı silebilir", @@ -1601,6 +1626,8 @@ "Expires today": "Bugün sona eriyor", "Expires tomorrow": "Yarın sona eriyor", "Expires {{ date }}": "{{ date }} tarihinde sona eriyor", + "Expires in {{ count }} day": "Süresi {{ count }} gün içinde dolar", + "Expires in {{ count }} day_plural": "Süresi {{ count }} gün içinde doluyor", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Belgelerinize diyagram yerleştirmek için kendi barındırdığınız Diagrams.net örneğini kullanmak üzere özel kurulum URL'si yapılandırın.", "Installation URL": "Kurulum URL'si", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "Diagrams.net kurulumunuzun URL'si. Bulutta barındırılan app.diagrams.net'i kullanmak için boş bırakın", diff --git a/shared/i18n/locales/uk_UA/translation.json b/shared/i18n/locales/uk_UA/translation.json index 4e4ce7efa4..b36451363c 100644 --- a/shared/i18n/locales/uk_UA/translation.json +++ b/shared/i18n/locales/uk_UA/translation.json @@ -215,6 +215,13 @@ "Share link copied": "Посилання скопійоване", "Go to collection": "Перейти до колекції", "Go to document": "Перейти до документа", + "Custom": "Користувацький", + "Set expiry": "Установити термін дії", + "Remove expiry": "Скасувати термін дії", + "Expiry removed": "Термін дії скасовано", + "{{ count }} days": "{{ count }} день", + "{{ count }} days_plural": "{{ count }} днів", + "Expiry updated": "Термін дії оновлено", "Revoke link": "Відкликати посилання", "Share link revoked": "Посилання для спільного доступу скасовано", "{{ count }} share link revoked": "{{ count }} посилання для спільного доступу відкликано", @@ -430,6 +437,8 @@ "our engineers have been notified": "наші інженери були повідомлені", "Clear cache + reload": "Очистити кеш + перезавантажити", "Show detail": "Показати деталі", + "Choose a date": "Обрати дату", + "Remove expiration": "Скасувати термін дії", "Exporting the collection may take some time.": "Експорт колекції може зайняти деякий час.", "You will receive an email when it’s complete.": "Ви отримаєте електронний лист, коли все буде завершено.", "Include attachments": "Включити вкладення", @@ -469,7 +478,6 @@ "Objects": "Об'єкти", "Symbols": "Символи", "Flags": "Прапори", - "Custom": "Користувацький", "Word": "Word", "Plain text": "Звичайний текст", "Email": "Електронна пошта", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Усі у робочому середовищі", "{{ count }} member": "{{ count }} учасник", "{{ count }} member_plural": "{{ count }} учасників", - "Public link copied to clipboard": "Публічне посилання скопійовано в буфер обміну", "Only lowercase letters, digits and dashes allowed": "Допускаються тільки маленькі літери, цифри і дефіси", "Sorry, this link has already been used": "Вибачте, це посилання вже використано", "Publish to web": "Опублікувати в інтернеті", @@ -639,6 +646,8 @@ "Logo": "Лого", "Add": "Додати", "Add or invite": "Додати або запросити", + "This link expired on {{ date }} and can no longer be accessed.": "Термін дії цього посилання закінчився {{ date }}, і воно більше недоступне.", + "Update expiry": "Змінити термін дії", "Sharing settings updated": "Налаштування спільного доступу оновлено", "Customize how the published document is displayed": "Налаштуйте, як відображається опублікований документ", "Image options": "Параметри зображення", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Вимкніть цей параметр, щоб заборонити пошуковій системі індексувати сторінку", "Email subscriptions": "Підписки електронної пошти", "Allow viewers to subscribe and receive email notifications when documents are updated": "Дозволити переглядачам підписуватися та отримувати сповіщення електронною поштою, коли документи оновлюються", + "Expiration": "Дійсний до", + "The public link will stop working after the selected date": "Публічне посилання перестане працювати після вибраної дати", + "No expiry": "Без терміну дії", "Something went wrong": "Щось пішло не так", "Check your email to confirm your subscription": "Перевірте свою електронну пошту, щоб підтвердити підписку", "Get notified when this document is updated": "Отримуйте сповіщення, коли цей документ оновлюється", @@ -662,6 +674,7 @@ "Editor": "Редактор", "Suggestions for invitation": "Пропозиції щодо запрошення", "No matches": "Немає збігів", + "Public link copied to clipboard": "Публічне посилання скопійовано в буфер обміну", "Created the document": "Створено документ", "Can view": "Може переглядати", "Everyone in the collection": "Усі у колекції", @@ -924,11 +937,9 @@ "a document": "документ", "a collection": "колекцію", "a group": "a group", - "Choose a date": "Обрати дату", "API key created. Please copy the value now as it will not be shown again.": "Ключ API створено. Будь ласка, скопіюйте значення зараз, оскільки він більше не буде показуватись.", "Scopes": "Область дії", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "Області дії, розділені пробілами, обмежують доступ цього ключа API до певних частин API. Залиште поле порожнім для повного доступу.", - "Expiration": "Дійсний до", "Never expires": "Необмежений термін дії", "7 days": "7 днів", "30 days": "За 30 днів", @@ -1052,8 +1063,6 @@ "Last edited": "Востаннє редаговано", "Previously edited": "Відредаговано раніше", "Sorry, the last change could not be persisted – please reload the page": "На жаль, не вдалося зберегти останню зміну – перезавантажте сторінку", - "{{ count }} days": "{{ count }} день", - "{{ count }} days_plural": "{{ count }} днів", "This document will be permanently deleted in <2> unless restored.": "Цей шаблон буде остаточно видалено через <2> якщо не буде відновлено.", "Deleted by {{userName}}": "Видалено {{userName}}", "Observing {{ userName }}": "Переглядається {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "Read all data", "Write all data": "Write all data", "Create all data": "Create all data", + "More filters": "Більше фільтрів", + "More": "Більше", "Any collection": "Будь-яка колекція", "All time": "Увесь час", - "Past day": "Учора", - "Past week": "Минулого тижня", - "Past month": "Минулого місяця", - "Past year": "Минулого року", "Any time": "Будь-який час", + "Choose the first and last day": "Виберіть перший і останній день", + "Apply": "Застосувати", "Remove document filter": "Remove document filter", - "Any status": "Будь-який статус", "Remove search": "Видалити пошук", + "Remove filter": "Видалити фільтр", "Relevance": "Relevance", "Newest": "Найновіші", "Oldest": "Найстаріші", "A → Z": "А → Я", "Z → A": "Я → А", + "Sorted by": "Відсортовано за", "Any author": "Будь-який автор", - "Search titles only": "Шукати тільки в назві", + "Past day": "Учора", + "Past week": "Минулого тижня", + "Past month": "Минулого місяця", + "Past year": "Минулого року", + "{{ count }} result": "{{ count }} результат", + "{{ count }} result_plural": "{{ count }} результатів", "Please try again or contact support if the problem persists": "Будь ласка, повторіть спробу або зверніться до служби підтримки, якщо проблема не зникне", "No documents found for your search filters.": "Не знайдено жодного документу за вашими фільтрами.", + "Edited by": "Ким відредаговано", + "Status": "Статус", + "Updated": "Оновлено", + "Created by": "Created by", + "Title only": "Лише заголовок", + "From {{ date }}": "Від {{ date }}", + "Until {{ date }}": "До {{ date }}", "Settings saved": "Налаштування збережено", "Copied to clipboard": "Скопійовано в буфер обміну", "Control how AI features are used in the workspace.": "Керуйте використанням функцій ШІ в робочому просторі.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "{{ name }}", "Expired": "Термін дії минув", "Last used": "Last used", - "No expiry": "Без терміну дії", "Restricted scope": "Restricted scope", "API key copied to clipboard": "API key copied to clipboard", "Copied": "Скопійовано", "Revoking": "Анулювання", "Are you sure you want to revoke the {{ tokenName }} token?": "Ви впевнені, що хочете відкликати {{ tokenName }} токен?", "Key": "Key", - "Created by": "Created by", "Never": "Never", "Expires": "Expires", "Could not load preference": "Could not load preference", @@ -1383,6 +1403,8 @@ "Synced <2>": "Synced <2>", "Date created": "Дата створення", "Crop image": "Обрізати зображення", + "Change image": "Змінити зображення", + "Remove image": "Видалити зображення", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "Ваш браузер не може читати зображення HEIC — спочатку перетворіть зображення на JPEG або PNG", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "Ви можете імпортувати ZIP-файл, раніше експортований за допомогою опції JSON в іншому екземплярі. У {{ appName }} відкрийте Експорт на бічній панелі налаштувань і натисніть Експортувати дані.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Перетягніть файл zip із опції експорту JSON у {{appName}} або натисніть, щоб завантажити", @@ -1422,6 +1444,7 @@ "Editors": "Редактори", "Invited by": "Запросив(-ла)", "Joined": "Приєднався(-лася)", + "Any status": "Будь-який статус", "Active": "Активний", "Could not load emojis": "Не вдалося завантажити емодзі", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Користувацькі емодзі можуть бути використані в усіх ваших робочих областях для документів, коментарів та реакцій.", @@ -1548,6 +1571,8 @@ "Default role": "Роль за замовчуванням", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "Роль користувача за замовчуванням для нових облікових записів. Зміна цього налаштування не впливає на існуючі облікові записи.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Коли цей параметр увімкнено, будь-який учасник робочого простору може публічно ділитися документами в інтернеті", + "Default link expiration": "Стандартний термін дії посилання", + "New public links will expire after this period. Existing links are not affected.": "Термін дії нових публічних посилань закінчуватиметься після цього періоду. Це не вплине на наявні посилання.", "Viewer document exports": "Чи може переглядач експортувати документи?", "When enabled, viewers can see download options for documents": "Якщо ввімкнено, глядачі можуть бачити параметри завантаження документів", "Users can delete account": "Users can delete account", @@ -1601,6 +1626,8 @@ "Expires today": "Expires today", "Expires tomorrow": "Термін дії закінчується завтра", "Expires {{ date }}": "Expires {{ date }}", + "Expires in {{ count }} day": "Термін дії закінчується через {{ count }} день", + "Expires in {{ count }} day_plural": "Термін дії закінчується через {{ count }} днів", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.", "Installation URL": "Installation URL", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "URL-адреса вашої інсталяції Diagrams.net. Залиште поле порожнім, щоб використовувати хмарний app.diagrams.net", diff --git a/shared/i18n/locales/vi_VN/translation.json b/shared/i18n/locales/vi_VN/translation.json index 3900f4b776..b905bdc04b 100644 --- a/shared/i18n/locales/vi_VN/translation.json +++ b/shared/i18n/locales/vi_VN/translation.json @@ -215,6 +215,13 @@ "Share link copied": "Đã sao chép Link chia sẻ", "Go to collection": "Go to collection", "Go to document": "Đi đến tài liệu", + "Custom": "Tuỳ chỉnh", + "Set expiry": "Đặt ngày hết hạn", + "Remove expiry": "Xóa ngày hết hạn", + "Expiry removed": "Đã xóa ngày hết hạn", + "{{ count }} days": "{{ count }} day", + "{{ count }} days_plural": "{{ count }} days", + "Expiry updated": "Đã cập nhật ngày hết hạn", "Revoke link": "Gỡ bỏ Link", "Share link revoked": "Đã thu hồi Link chia sẻ", "{{ count }} share link revoked": "Đã thu hồi {{ count }} liên kết chia sẻ", @@ -430,6 +437,8 @@ "our engineers have been notified": "các kỹ sư của chúng tôi đã được thông báo", "Clear cache + reload": "Clear cache + reload", "Show detail": "Hiển thị chi tiết", + "Choose a date": "Chọn ngày", + "Remove expiration": "Xóa ngày hết hạn", "Exporting the collection may take some time.": "Quá trình xuất bộ sưu tập có thể mất chút thời gian.", "You will receive an email when it’s complete.": "Bạn sẽ nhận được email khi hoàn tất.", "Include attachments": "Bao gồm tập tin đính kèm", @@ -469,7 +478,6 @@ "Objects": "Đối tượng", "Symbols": "Biểu tượng", "Flags": "Cờ", - "Custom": "Tuỳ chỉnh", "Word": "Word", "Plain text": "Văn bản thuần túy", "Email": "Email", @@ -616,7 +624,6 @@ "Everyone in the workspace": "Người tham gia không gian làm việc", "{{ count }} member": "{{ count }} Thành viên", "{{ count }} member_plural": "{{ count }} Thành viên", - "Public link copied to clipboard": "Public link copied to clipboard", "Only lowercase letters, digits and dashes allowed": "Chỉ cho phép chữ thường, chữ số và dấu gạch ngang", "Sorry, this link has already been used": "Xin lỗi, liên kết này đã được sử dụng", "Publish to web": "Publish to web", @@ -639,6 +646,8 @@ "Logo": "Logo", "Add": "Thêm", "Add or invite": "Thêm hoặc gửi lời mời", + "This link expired on {{ date }} and can no longer be accessed.": "Liên kết này đã hết hạn vào {{ date }} và không thể truy cập được nữa.", + "Update expiry": "Cập nhật ngày hết hạn", "Sharing settings updated": "Sharing settings updated", "Customize how the published document is displayed": "Customize how the published document is displayed", "Image options": "Image options", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "Disable this setting to discourage search engines from indexing the page", "Email subscriptions": "Email subscriptions", "Allow viewers to subscribe and receive email notifications when documents are updated": "Allow viewers to subscribe and receive email notifications when documents are updated", + "Expiration": "Expiration", + "The public link will stop working after the selected date": "Liên kết công khai sẽ ngừng hoạt động sau ngày đã chọn", + "No expiry": "No expiry", "Something went wrong": "Something went wrong", "Check your email to confirm your subscription": "Check your email to confirm your subscription", "Get notified when this document is updated": "Get notified when this document is updated", @@ -662,6 +674,7 @@ "Editor": "Biên tập viên", "Suggestions for invitation": "Gợi ý cho lời mời", "No matches": "Không có kết quả nào phù hợp", + "Public link copied to clipboard": "Public link copied to clipboard", "Created the document": "Tạo tài liệu", "Can view": "Có thể xem", "Everyone in the collection": "Người tham gia bộ sưu tập", @@ -924,11 +937,9 @@ "a document": "một tài liệu", "a collection": "một bộ sưu tập", "a group": "a group", - "Choose a date": "Chọn ngày", "API key created. Please copy the value now as it will not be shown again.": "API key created. Please copy the value now as it will not be shown again.", "Scopes": "Scopes", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "Các phạm vi được phân tách bằng dấu cách sẽ giới hạn quyền truy cập của khóa API này vào các phần cụ thể của API. Để trống để có toàn quyền truy cập.", - "Expiration": "Expiration", "Never expires": "Never expires", "7 days": "7 ngày", "30 days": "30 ngày", @@ -1052,8 +1063,6 @@ "Last edited": "Sửa lần cuối", "Previously edited": "Chỉnh sửa trước đó", "Sorry, the last change could not be persisted – please reload the page": "Xin lỗi, không thể tiếp tục thay đổi cuối cùng - vui lòng tải lại trang", - "{{ count }} days": "{{ count }} day", - "{{ count }} days_plural": "{{ count }} days", "This document will be permanently deleted in <2> unless restored.": "Tài liệu này sẽ bị xóa vĩnh viễn sau <2> trừ khi được khôi phục.", "Deleted by {{userName}}": "Đã xóa bởi {{userName}}", "Observing {{ userName }}": "Quan sát {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "Read all data", "Write all data": "Write all data", "Create all data": "Create all data", + "More filters": "Thêm bộ lọc", + "More": "Thêm", "Any collection": "Tất cả bộ sưu tập", "All time": "All time", - "Past day": "Ngày hôm qua", - "Past week": "Tuần qua", - "Past month": "Tháng trước", - "Past year": "Năm qua", "Any time": "Bất cứ lúc nào", + "Choose the first and last day": "Chọn ngày đầu và ngày cuối", + "Apply": "Áp dụng", "Remove document filter": "Remove document filter", - "Any status": "Any status", "Remove search": "Xóa tìm kiếm", + "Remove filter": "Xóa bộ lọc", "Relevance": "Relevance", "Newest": "Newest", "Oldest": "Oldest", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "Sắp xếp theo", "Any author": "Mọi tác giả", - "Search titles only": "Chỉ tìm tiêu đề", + "Past day": "Ngày hôm qua", + "Past week": "Tuần qua", + "Past month": "Tháng trước", + "Past year": "Năm qua", + "{{ count }} result": "{{ count }} kết quả", + "{{ count }} result_plural": "{{ count }} kết quả", "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.", + "Edited by": "Được chỉnh sửa bởi", + "Status": "Trạng thái", + "Updated": "Đã cập nhật", + "Created by": "Created by", + "Title only": "Chỉ tiêu đề", + "From {{ date }}": "Từ {{ date }}", + "Until {{ date }}": "Đến {{ date }}", "Settings saved": "Đã lưu cài đặt", "Copied to clipboard": "Chép vào bộ nhớ tạm", "Control how AI features are used in the workspace.": "Kiểm soát cách các tính năng AI được sử dụng trong không gian làm việc.", @@ -1309,14 +1331,12 @@ "by {{ name }}": "bằng {{ name }}", "Expired": "Hết hạn", "Last used": "Last used", - "No expiry": "No expiry", "Restricted scope": "Restricted scope", "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?", "Key": "Key", - "Created by": "Created by", "Never": "Never", "Expires": "Expires", "Could not load preference": "Could not load preference", @@ -1383,6 +1403,8 @@ "Synced <2>": "Synced <2>", "Date created": "Date created", "Crop image": "Crop image", + "Change image": "Thay đổi hình ảnh", + "Remove image": "Xóa hình ảnh", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "Trình duyệt của bạn không thể đọc ảnh HEIC – vui lòng chuyển đổi ảnh sang JPEG hoặc PNG trước", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "Bạn có thể nhập tệp zip đã được xuất trước đó từ tùy chọn JSON trong một phiên bản khác. Trong {{ appName }}, mở Xuất trong thanh bên Cài đặt và nhấp vào Xuất dữ liệu.", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "Kéo và thả tệp zip từ tùy chọn xuất JSON trong {{appName}} hoặc nhấp để tải lên", @@ -1422,6 +1444,7 @@ "Editors": "Editors", "Invited by": "Được mời bởi", "Joined": "Đã tham gia", + "Any status": "Any status", "Active": "Hoạt động", "Could not load emojis": "Could not load emojis", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "Custom emojis can be used throughout your workspace in documents, comments, and reactions.", @@ -1548,6 +1571,8 @@ "Default role": "Vai trò mặc định", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "Vai trò người dùng mặc định cho các tài khoản mới. Việc thay đổi cài đặt này không ảnh hưởng đến các tài khoản người dùng hiện có.", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "Khi được bật, tài liệu có thể được chia sẻ công khai trên internet bởi bất kỳ thành viên nào trong không gian làm việc", + "Default link expiration": "Thời hạn liên kết mặc định", + "New public links will expire after this period. Existing links are not affected.": "Các liên kết công khai mới sẽ hết hạn sau khoảng thời gian này. Các liên kết hiện có sẽ không bị ảnh hưởng.", "Viewer document exports": "Xuất tài liệu của người xem", "When enabled, viewers can see download options for documents": "Khi được bật, người xem có thể thấy các tùy chọn tải xuống tài liệu", "Users can delete account": "Users can delete account", @@ -1601,6 +1626,8 @@ "Expires today": "Expires today", "Expires tomorrow": "Expires tomorrow", "Expires {{ date }}": "Expires {{ date }}", + "Expires in {{ count }} day": "Hết hạn sau {{ count }} ngày", + "Expires in {{ count }} day_plural": "Hết hạn sau {{ count }} ngày", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.", "Installation URL": "Installation URL", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "URL của bản cài đặt Diagrams.net của bạn. Để trống để sử dụng app.diagrams.net được lưu trữ trên đám mây", diff --git a/shared/i18n/locales/zh_CN/translation.json b/shared/i18n/locales/zh_CN/translation.json index 31c772a15b..f93c7a9131 100644 --- a/shared/i18n/locales/zh_CN/translation.json +++ b/shared/i18n/locales/zh_CN/translation.json @@ -215,6 +215,13 @@ "Share link copied": "分享链接已复制", "Go to collection": "转到文档集", "Go to document": "转到文档", + "Custom": "自定义", + "Set expiry": "设置到期时间", + "Remove expiry": "移除到期时间", + "Expiry removed": "已移除到期时间", + "{{ count }} days": "{{ count }} 天", + "{{ count }} days_plural": "{{ count }} 天", + "Expiry updated": "已更新到期时间", "Revoke link": "撤消链接", "Share link revoked": "分享链接已被取消", "{{ count }} share link revoked": "{{ count }} 个共享链接已撤销", @@ -430,6 +437,8 @@ "our engineers have been notified": "已通知我们的工程师", "Clear cache + reload": "清理缓存并重启", "Show detail": "显示详情", + "Choose a date": "选择一个日期", + "Remove expiration": "移除过期时间", "Exporting the collection may take some time.": "导出文档集可能需要一些时间。", "You will receive an email when it’s complete.": "完成后,您将收到一封电子邮件。", "Include attachments": "包含附件", @@ -469,7 +478,6 @@ "Objects": "物品", "Symbols": "符号", "Flags": "标志", - "Custom": "自定义", "Word": "Word", "Plain text": "纯文本", "Email": "电子邮件", @@ -616,7 +624,6 @@ "Everyone in the workspace": "工作区中的所有人", "{{ count }} member": "{{ count }} 位成员", "{{ count }} member_plural": "{{ count }} 位成员", - "Public link copied to clipboard": "公开链接已复制到剪贴板", "Only lowercase letters, digits and dashes allowed": "只允许使用小写字母、数字和破折号", "Sorry, this link has already been used": "抱歉,该链接已被占用", "Publish to web": "发布至网络", @@ -639,6 +646,8 @@ "Logo": "网站图标", "Add": "添加", "Add or invite": "添加或邀请", + "This link expired on {{ date }} and can no longer be accessed.": "此链接已于 {{ date }} 过期,无法再访问。", + "Update expiry": "更新过期时间", "Sharing settings updated": "共享设置已更新", "Customize how the published document is displayed": "自定义已发布文档的显示方式", "Image options": "图像选项", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "禁用此设置以阻止搜索引擎对该页建立索引", "Email subscriptions": "电子邮件订阅", "Allow viewers to subscribe and receive email notifications when documents are updated": "允许查看者在文档更新时订阅和接收电子邮件通知", + "Expiration": "过期时间", + "The public link will stop working after the selected date": "该公开链接将在所选日期后失效", + "No expiry": "没有到期", "Something went wrong": "出现了一些错误", "Check your email to confirm your subscription": "检查您的电子邮件以确认您的订阅", "Get notified when this document is updated": "当此文档更新时获得通知", @@ -662,6 +674,7 @@ "Editor": "编辑者", "Suggestions for invitation": "对邀请的建议", "No matches": "无匹配项", + "Public link copied to clipboard": "公开链接已复制到剪贴板", "Created the document": "已创建文档", "Can view": "可浏览", "Everyone in the collection": "文档集中的所有人", @@ -924,11 +937,9 @@ "a document": "一份文档", "a collection": "一个文档集", "a group": "一组", - "Choose a date": "选择一个日期", "API key created. Please copy the value now as it will not be shown again.": "API 密钥已创建。请现在复制值,因为它不会再次显示。", "Scopes": "作用域", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "以空格分隔的作用域可将此 API 密钥的访问权限限制为 API 的特定部分。留空则拥有完全访问权限。", - "Expiration": "过期时间", "Never expires": "永不过期", "7 days": "7 天", "30 days": "30 天", @@ -1052,8 +1063,6 @@ "Last edited": "最后编辑者", "Previously edited": "上次编辑", "Sorry, the last change could not be persisted – please reload the page": "抱歉,无法保存上次更改 - 请重新载入页面", - "{{ count }} days": "{{ count }} 天", - "{{ count }} days_plural": "{{ count }} 天", "This document will be permanently deleted in <2> unless restored.": "此文档将在 <2> 后永久删除,除非手动恢复。", "Deleted by {{userName}}": "已被 {{userName}} 删除", "Observing {{ userName }}": "观察 {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "读所有数据", "Write all data": "写所有数据", "Create all data": "创建所有数据", + "More filters": "更多筛选条件", + "More": "更多", "Any collection": "文档集", "All time": "所有时间", - "Past day": "过去一天", - "Past week": "上周", - "Past month": "上个月", - "Past year": "去年", "Any time": "任何时间", + "Choose the first and last day": "选择第一天和最后一天", + "Apply": "应用", "Remove document filter": "移除文档过滤", - "Any status": "任何状态", "Remove search": "移除搜索", + "Remove filter": "移除筛选条件", "Relevance": "相关", "Newest": "最新", "Oldest": "最早", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "排序方式", "Any author": "任何作者", - "Search titles only": "仅搜索标题", + "Past day": "过去一天", + "Past week": "上周", + "Past month": "上个月", + "Past year": "去年", + "{{ count }} result": "{{ count }} 个结果", + "{{ count }} result_plural": "{{ count }} 个结果", "Please try again or contact support if the problem persists": "如果问题持续存在,请重试或联系支持人员。", "No documents found for your search filters.": "未找到符合当前筛选条件的文档。", + "Edited by": "编辑者", + "Status": "状态", + "Updated": "已更新", + "Created by": "创建者", + "Title only": "仅标题", + "From {{ date }}": "自 {{ date }} 起", + "Until {{ date }}": "至 {{ date }}", "Settings saved": "设置已保存", "Copied to clipboard": "已复制到剪切板", "Control how AI features are used in the workspace.": "控制 AI 功能在工作区中的使用方式。", @@ -1309,14 +1331,12 @@ "by {{ name }}": "由 {{ name }}创建", "Expired": "已过期", "Last used": "最后使用的", - "No expiry": "没有到期", "Restricted scope": "受限作用域", "API key copied to clipboard": "API key 已复制到剪贴板", "Copied": "已复制", "Revoking": "吊销中", "Are you sure you want to revoke the {{ tokenName }} token?": "确认吊销这个 {{ tokenName }} token 吗?", "Key": "密钥", - "Created by": "创建者", "Never": "从不", "Expires": "到期日", "Could not load preference": "无法加载偏好", @@ -1383,6 +1403,8 @@ "Synced <2>": "已同步 <2>", "Date created": "创建日期", "Crop image": "裁剪图像", + "Change image": "更换图片", + "Remove image": "删除图片", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "您的浏览器无法读取 HEIC 图片,请先将图片转换为 JPEG 或 PNG", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "您可以导入之前从另一个实例的 JSON 选项导出的 ZIP 文件。在 {{ appName }} 中,打开设置侧边栏中的导出,然后点击导出数据。", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "拖放或单击上传从 {{appName}} 的 JSON 导出选项导出的 zip 文件", @@ -1422,6 +1444,7 @@ "Editors": "编辑者", "Invited by": "邀请人", "Joined": "已加入", + "Any status": "任何状态", "Active": "活跃的", "Could not load emojis": "无法加载表情", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "自定义表情可以在您的工作区内用于文档、注释和回应。", @@ -1548,6 +1571,8 @@ "Default role": "默认权限", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "新帐户的默认用户角色。更改此设置不会影响现有用户帐户。", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "启用后,工作区的任何成员都可以在互联网上公开共享文档", + "Default link expiration": "默认链接过期时间", + "New public links will expire after this period. Existing links are not affected.": "新的公开链接将在此期限后过期。现有链接不受影响。", "Viewer document exports": "浏览者文档导出", "When enabled, viewers can see download options for documents": "启用时,浏览者可以看到文档的下载选项", "Users can delete account": "用户可以删除账号", @@ -1601,6 +1626,8 @@ "Expires today": "今天过期", "Expires tomorrow": "明天过期", "Expires {{ date }}": "{{date}} 到期", + "Expires in {{ count }} day": "将在 {{ count }} 天后过期", + "Expires in {{ count }} day_plural": "将在 {{ count }} 天后过期", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "配置一个自定义的 Diagrams.net 安装URL来使用您自己的实例在您的文档中嵌入图表。", "Installation URL": "安装 URL", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "您的 Diagrams.net 安装的 URL。留空以使用云托管的 app.diagrams.net", diff --git a/shared/i18n/locales/zh_TW/translation.json b/shared/i18n/locales/zh_TW/translation.json index 1ec4e3100c..a931bcdc46 100644 --- a/shared/i18n/locales/zh_TW/translation.json +++ b/shared/i18n/locales/zh_TW/translation.json @@ -215,6 +215,13 @@ "Share link copied": "分享網址已複製", "Go to collection": "移至文件集", "Go to document": "跳轉到文件", + "Custom": "自訂", + "Set expiry": "設定到期日", + "Remove expiry": "移除到期日", + "Expiry removed": "已移除到期日", + "{{ count }} days": "{{ count }} 天", + "{{ count }} days_plural": "{{ count }} 天", + "Expiry updated": "已更新到期日", "Revoke link": "註銷連結", "Share link revoked": "分享連結已註銷", "{{ count }} share link revoked": "已撤銷 {{ count }} 個分享連結", @@ -430,6 +437,8 @@ "our engineers have been notified": "我們的工程師已經收到通知", "Clear cache + reload": "清除快取並重新整理", "Show detail": "顯示詳情", + "Choose a date": "選擇日期", + "Remove expiration": "移除到期日", "Exporting the collection may take some time.": "匯出文件集可能需要一些時間。", "You will receive an email when it’s complete.": "完成後,您將收到電子郵件。", "Include attachments": "包含附件", @@ -469,7 +478,6 @@ "Objects": "物品", "Symbols": "符號", "Flags": "旗幟", - "Custom": "自訂", "Word": "Word", "Plain text": "純文字", "Email": "電子郵件", @@ -616,7 +624,6 @@ "Everyone in the workspace": "工作區裡的所有人", "{{ count }} member": "{{ count }} 位成員", "{{ count }} member_plural": "{{ count }} 位成員", - "Public link copied to clipboard": "已將連結複製到剪貼簿", "Only lowercase letters, digits and dashes allowed": "僅允許小寫字母、數字和連字號", "Sorry, this link has already been used": "抱歉,此連結已被使用", "Publish to web": "發布到網頁", @@ -639,6 +646,8 @@ "Logo": "Logo", "Add": "新增", "Add or invite": "新增或邀請", + "This link expired on {{ date }} and can no longer be accessed.": "此連結已於 {{ date }} 到期,無法再存取。", + "Update expiry": "更新到期日", "Sharing settings updated": "分享設定已更新", "Customize how the published document is displayed": "自訂已發布文件的顯示方式", "Image options": "圖片選項", @@ -654,6 +663,9 @@ "Disable this setting to discourage search engines from indexing the page": "停用此設定可避免搜尋引擎索引此頁面", "Email subscriptions": "電子郵件訂閱", "Allow viewers to subscribe and receive email notifications when documents are updated": "允許檢視者訂閱,並在文件更新時收到電子郵件通知", + "Expiration": "到期日", + "The public link will stop working after the selected date": "公開連結將在所選日期後停止運作", + "No expiry": "永久有效", "Something went wrong": "發生了某些錯誤", "Check your email to confirm your subscription": "請檢視電子郵件以確認訂閱", "Get notified when this document is updated": "在此文件更新時接收通知", @@ -662,6 +674,7 @@ "Editor": "編輯者", "Suggestions for invitation": "建議邀請", "No matches": "沒有符合項目", + "Public link copied to clipboard": "已將連結複製到剪貼簿", "Created the document": "建立文件", "Can view": "可以檢視", "Everyone in the collection": "文件集中的所有人", @@ -924,11 +937,9 @@ "a document": "一份文件", "a collection": "一個文件集", "a group": "群組", - "Choose a date": "選擇日期", "API key created. Please copy the value now as it will not be shown again.": "API 金鑰已建立。請立即複製該值,因為它不會再次顯示。", "Scopes": "範圍", "Space-separated scopes restrict the access of this API key to specific parts of the API. Leave blank for full access.": "以空格分隔的範圍會將此 API 金鑰的存取權限制在 API 的特定部分。留空表示完整存取權。", - "Expiration": "到期日", "Never expires": "永不過期", "7 days": "7 天", "30 days": "30 天", @@ -1052,8 +1063,6 @@ "Last edited": "最後編輯於", "Previously edited": "先前編輯過", "Sorry, the last change could not be persisted – please reload the page": "抱歉,無法保存上次變更,請重新載入頁面", - "{{ count }} days": "{{ count }} 天", - "{{ count }} days_plural": "{{ count }} 天", "This document will be permanently deleted in <2> unless restored.": "文件若未於 <2> 還原,將被永久刪除。", "Deleted by {{userName}}": "已由 {{userName}} 刪除", "Observing {{ userName }}": "正在觀看 {{ userName }}", @@ -1213,25 +1222,38 @@ "Read all data": "讀取所有資料", "Write all data": "寫入所有資料", "Create all data": "建立所有資料", + "More filters": "更多篩選條件", + "More": "更多", "Any collection": "任何文件集", "All time": "所有時間", - "Past day": "過去一天", - "Past week": "過去一週", - "Past month": "過去一個月", - "Past year": "過去一年", "Any time": "任何時間", + "Choose the first and last day": "選擇第一天和最後一天", + "Apply": "套用", "Remove document filter": "移除文件篩選器", - "Any status": "任何狀態", "Remove search": "移除搜尋", + "Remove filter": "移除篩選條件", "Relevance": "相關", "Newest": "最新", "Oldest": "最舊", "A → Z": "A → Z", "Z → A": "Z → A", + "Sorted by": "排序依據", "Any author": "任何作者", - "Search titles only": "僅搜尋標題", + "Past day": "過去一天", + "Past week": "過去一週", + "Past month": "過去一個月", + "Past year": "過去一年", + "{{ count }} result": "{{ count }} 個結果", + "{{ count }} result_plural": "{{ count }} 個結果", "Please try again or contact support if the problem persists": "請再試一次;如果問題持續發生,請聯絡支援團隊", "No documents found for your search filters.": "沒有符合篩選條件的文件。", + "Edited by": "編輯者", + "Status": "狀態", + "Updated": "已更新", + "Created by": "建立者", + "Title only": "僅標題", + "From {{ date }}": "自 {{ date }} 起", + "Until {{ date }}": "至 {{ date }} 止", "Settings saved": "設定已儲存", "Copied to clipboard": "已複製到剪貼簿", "Control how AI features are used in the workspace.": "控制 AI 功能在工作區中的使用方式。", @@ -1309,14 +1331,12 @@ "by {{ name }}": "来自 {{ name }}", "Expired": "已逾時", "Last used": "最近使用", - "No expiry": "永久有效", "Restricted scope": "範圍受限", "API key copied to clipboard": "API 金鑰已複製到剪貼簿", "Copied": "已複製", "Revoking": "撤銷中", "Are you sure you want to revoke the {{ tokenName }} token?": "您確定要撤銷 {{ tokenName }} 權杖嗎?", "Key": "金鑰", - "Created by": "建立者", "Never": "永不", "Expires": "到期日", "Could not load preference": "無法載入偏好設定", @@ -1383,6 +1403,8 @@ "Synced <2>": "已同步 <2>", "Date created": "建立日期", "Crop image": "裁切影像", + "Change image": "變更圖片", + "Remove image": "移除圖片", "Your browser cannot read HEIC images – please convert the image to JPEG or PNG first": "您的瀏覽器無法讀取 HEIC 圖片,請先將圖片轉換為 JPEG 或 PNG", "You can import a zip file that was previously exported from the JSON option in another instance. In {{ appName }}, open Export in the Settings sidebar and click on Export data.": "您可以匯入先前從另一個執行個體的 JSON 選項匯出的 ZIP 檔案。在 {{ appName }} 中,開啟設定側邊欄的匯出,然後點選匯出資料。", "Drag and drop the zip file from the JSON export option in {{appName}}, or click to upload": "將從 {{appName}} JSON 匯出選項取得的 ZIP 檔案拖放到此處,或點選上傳", @@ -1422,6 +1444,7 @@ "Editors": "編輯者", "Invited by": "邀請者", "Joined": "已加入", + "Any status": "任何狀態", "Active": "上線", "Could not load emojis": "無法載入表情符號", "Custom emojis can be used throughout your workspace in documents, comments, and reactions.": "自訂表情符號可在整個工作區的文件、留言與回應中使用。", @@ -1548,6 +1571,8 @@ "Default role": "預設角色", "The default user role for new accounts. Changing this setting does not affect existing user accounts.": "預設角色設定只會套用到新的使用者帳號。改變此設定並不會影響現有使用者帳號。", "When enabled, documents can be shared publicly on the internet by any member of the workspace": "啟用後,工作區中的任何成員都可以在網際網絡上公開共享工作區中的文件", + "Default link expiration": "預設連結到期日", + "New public links will expire after this period. Existing links are not affected.": "新的公開連結將在此期限後到期。現有連結不受影響。", "Viewer document exports": "檢視者可匯出文件", "When enabled, viewers can see download options for documents": "啓用時,檢視者可以看到文件的下載選項", "Users can delete account": "使用者可以刪除帳號", @@ -1601,6 +1626,8 @@ "Expires today": "今天到期", "Expires tomorrow": "明天到期", "Expires {{ date }}": "{{ date }} 到期", + "Expires in {{ count }} day": "將於 {{ count }} 天後到期", + "Expires in {{ count }} day_plural": "將於 {{ count }} 天後到期", "Configure a custom Diagrams.net installation URL to use your own self-hosted instance for embedding diagrams in your documents.": "設定自訂 Diagrams.net 安裝 URL,以使用您自行託管的執行個體在文件中嵌入圖表。", "Installation URL": "安裝 URL", "The URL of your Diagrams.net installation. Leave empty to use the cloud-hosted app.diagrams.net": "您的 Diagrams.net 安裝 URL。留空則使用雲端託管的 app.diagrams.net", diff --git a/shared/styles/theme.ts b/shared/styles/theme.ts index a4b727c158..0005fe70a2 100644 --- a/shared/styles/theme.ts +++ b/shared/styles/theme.ts @@ -28,7 +28,7 @@ const defaultColors: Colors = { yellow: "#EDBA07", warmGrey: "hsl(212 31% 95% / 1)", danger: "#ed2651", - warning: "#f08a24", + warning: "#f05a28", success: "#3ad984", info: "#a0d3e8", brand: { diff --git a/shared/utils/date.ts b/shared/utils/date.ts index 365f3667e8..4020b395c9 100644 --- a/shared/utils/date.ts +++ b/shared/utils/date.ts @@ -22,6 +22,7 @@ import { ca } from "date-fns/locale/ca"; import { cs } from "date-fns/locale/cs"; import { da } from "date-fns/locale/da"; import { de } from "date-fns/locale/de"; +import { el } from "date-fns/locale/el"; import { enGB } from "date-fns/locale/en-GB"; import { enUS } from "date-fns/locale/en-US"; import { es } from "date-fns/locale/es"; @@ -304,6 +305,7 @@ const locales = { cs_CZ: cs, da_DK: da, de_DE: de, + el_GR: el, en_GB: enGB, en_US: enUS, es_ES: es, @@ -365,6 +367,16 @@ export function toISODateTime(date: Date): string { const isoDateRegex = /^\d{4}-\d{2}-\d{2}$/; const isoDateTimeRegex = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}$/; +/** + * Whether a string is a date-only ISO value (yyyy-MM-dd). + * + * @param value The string to check. + * @returns true when the value is a date-only ISO string. + */ +export function isISODate(value: string): boolean { + return isoDateRegex.test(value); +} + /** * Whether a date mention's stored ISO value carries a time component. * diff --git a/shared/utils/files.test.ts b/shared/utils/files.test.ts index 0bec54a907..1b480eddd4 100644 --- a/shared/utils/files.test.ts +++ b/shared/utils/files.test.ts @@ -1,4 +1,9 @@ -import { bytesToHumanReadable, getFileNameFromUrl } from "./files"; +import { + bytesToHumanReadable, + dataUrlToBlob, + dataUrlToFile, + getFileNameFromUrl, +} from "./files"; // Mock the browser detection with a mutable value let mockIsMacValue = false; @@ -101,3 +106,69 @@ describe("getFileNameFromUrl", () => { ); }); }); + +describe("dataUrlToBlob", () => { + it.each(["data:image/png;base64,AP/+", "data:image/png;base64,AP%2F%2B"])( + "decodes base64 binary data: %s", + async (url) => { + const blob = dataUrlToBlob(url); + expect(blob.type).toBe("image/png"); + expect(await readBlobBytes(blob)).toEqual([0, 255, 254]); + } + ); + + it("decodes an empty payload", async () => { + expect( + await readBlobBytes(dataUrlToBlob("data:image/png;base64,")) + ).toEqual([]); + }); + + it.each([ + "data:image/svg+xml,%3Csvg%3E%3Ctext%3EHello%2C%20%E4%B8%96%E7%95%8C%3C%2Ftext%3E%3C%2Fsvg%3E", + "data:image/svg+xml,Hello, 世界", + ])("decodes SVG data without base64 encoding: %s", async (url) => { + const blob = dataUrlToBlob(url); + expect(blob.type).toBe("image/svg+xml"); + expect(await readBlobBytes(blob)).toEqual( + Array.from( + new TextEncoder().encode("Hello, 世界") + ) + ); + }); + + it.each(["https://example.com/image.png", "data:image/png;base64"])( + "rejects an invalid data URL: %s", + (url) => { + expect(() => dataUrlToBlob(url)).toThrow("Invalid data URL"); + } + ); +}); + +describe("dataUrlToFile", () => { + it("preserves the MIME type and content of a non-base64 image", async () => { + const url = "data:image/svg+xml,%3Csvg%2F%3E"; + const file = dataUrlToFile(url, "pasted-image"); + expect(file.name).toBe("pasted-image"); + expect(file.type).toBe("image/svg+xml"); + expect(await readBlobBytes(file)).toEqual([60, 115, 118, 103, 47, 62]); + }); +}); + +async function readBlobBytes(blob: Blob): Promise { + if (typeof FileReader === "undefined") { + return Array.from(new Uint8Array(await blob.arrayBuffer())); + } + + return new Promise((resolve, reject) => { + const reader = new FileReader(); + reader.onload = () => { + if (reader.result instanceof ArrayBuffer) { + resolve(Array.from(new Uint8Array(reader.result))); + } else { + reject(new Error("Expected an ArrayBuffer")); + } + }; + reader.onerror = () => reject(reader.error); + reader.readAsArrayBuffer(blob); + }); +} diff --git a/shared/utils/files.ts b/shared/utils/files.ts index f358628e36..cb47b77d4a 100644 --- a/shared/utils/files.ts +++ b/shared/utils/files.ts @@ -1,5 +1,5 @@ import { isMac } from "./browser"; -import { isBase64Url, isUrl } from "./urls"; +import { isUrl } from "./urls"; /** * Converts bytes to human readable string for display @@ -151,37 +151,39 @@ export function getFileNameFromUrl(url: string) { } /** - * Convert a data URL to a Blob + * Converts a base64 or percent-encoded data URL to a Blob. * - * @param dataURL The data URL to convert - * @returns The Blob + * @param dataURL the data URL to convert. + * @returns the decoded Blob. + * @throws Error if the data URL is invalid. */ export const dataUrlToBlob = (dataURL: string): Blob => { - const parts = dataURL.split(","); - const match = dataURL.match(/:(.*?);/); - const mime = match ? match[1] : "image/png"; - const blobBin = atob(parts[1]); - const array = []; - - for (let i = 0; i < blobBin.length; i++) { - array.push(blobBin.charCodeAt(i)); + const comma = dataURL.indexOf(","); + if (!dataURL.startsWith("data:") || comma === -1) { + throw new Error("Invalid data URL"); } - return new Blob([new Uint8Array(array)], { + const metadata = dataURL.slice(5, comma); + const mime = metadata.split(";")[0] || "image/png"; + const data = decodeURIComponent(dataURL.slice(comma + 1)); + const bytes = /;base64$/i.test(metadata) + ? Uint8Array.from(atob(data), (char) => char.charCodeAt(0)) + : new TextEncoder().encode(data); + + return new Blob([bytes], { type: mime, }); }; /** - * Convert a data URL to a File + * Converts a data URL to a File. * - * @param dataURL The data URL to convert - * @param filename The filename to use - * @returns The File + * @param dataURL the data URL to convert. + * @param filename the filename to use. + * @returns the decoded File. + * @throws Error if the data URL is invalid. */ export const dataUrlToFile = (dataURL: string, filename: string): File => { - const match = isBase64Url(dataURL); - const mime = match ? match[1] : "image/png"; const blob = dataUrlToBlob(dataURL); - return new File([blob], filename, { type: mime }); + return new File([blob], filename, { type: blob.type }); }; diff --git a/shared/utils/timers.test.ts b/shared/utils/timers.test.ts new file mode 100644 index 0000000000..8f68e5d167 --- /dev/null +++ b/shared/utils/timers.test.ts @@ -0,0 +1,50 @@ +import { withinTimeLimit } from "./timers"; + +describe("withinTimeLimit", () => { + it("should return the result when the function finishes in time", async () => { + const onTimeout = vi.fn(); + + const result = await withinTimeLimit( + async () => "done", + 100, + "fallback", + onTimeout + ); + + expect(result).toEqual("done"); + expect(onTimeout).not.toHaveBeenCalled(); + }); + + it("should return the fallback when the function is too slow", async () => { + vi.useFakeTimers(); + + try { + const onTimeout = vi.fn(); + const promise = withinTimeLimit( + () => new Promise(() => undefined), + 100, + "fallback", + onTimeout + ); + + await vi.advanceTimersByTimeAsync(100); + + await expect(promise).resolves.toEqual("fallback"); + expect(onTimeout).toHaveBeenCalledTimes(1); + } finally { + vi.useRealTimers(); + } + }); + + it("should throw the error of a function that fails in time", async () => { + await expect( + withinTimeLimit( + async () => { + throw new Error("failed"); + }, + 100, + "fallback" + ) + ).rejects.toThrow("failed"); + }); +}); diff --git a/shared/utils/timers.ts b/shared/utils/timers.ts index 1620d79a1c..7caf3112ed 100644 --- a/shared/utils/timers.ts +++ b/shared/utils/timers.ts @@ -1,3 +1,5 @@ +import { TimeoutError, withTimeout } from "es-toolkit"; + /** * Returns a promise that resolves after a specified number of milliseconds. * @@ -6,3 +8,37 @@ export function sleep(ms = 1) { return new Promise((resolve) => setTimeout(resolve, ms)); } + +/** + * Runs an async function with a time limit, and returns a fallback value when + * the function takes too long. The function is not canceled, its result is + * ignored when it settles after the time limit. + * + * @param run the function to run. + * @param ms the time limit in milliseconds. + * @param fallback the value to return when the time limit is reached. + * @param onTimeout called when the time limit is reached. + * @returns the result of the function, or the fallback. + * @throws the error of the function, when it fails within the time limit. + */ +export async function withinTimeLimit( + run: () => Promise, + ms: number, + fallback: T, + onTimeout?: () => void +): Promise { + const controller = new AbortController(); + + try { + return await withTimeout(run, ms, { signal: controller.signal }); + } catch (err) { + if (err instanceof TimeoutError) { + onTimeout?.(); + return fallback; + } + throw err; + } finally { + // Clears the timer when the function finished within the time limit. + controller.abort(); + } +} diff --git a/shared/validations.ts b/shared/validations.ts index 3610922827..616490407e 100644 --- a/shared/validations.ts +++ b/shared/validations.ts @@ -108,6 +108,9 @@ export const GroupValidation = { export const ImportValidation = { /** The maximum length of the import name */ maxNameLength: 100, + + /** The maximum number of entries in an imported zip archive */ + maxZipEntries: 250_000, }; export const OAuthClientValidation = { diff --git a/yarn.lock b/yarn.lock index 61df2dc480..01e80f44cd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -43,51 +43,51 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/checksums@npm:^3.1001.7": - version: 3.1002.1 - resolution: "@aws-sdk/checksums@npm:3.1002.1" +"@aws-sdk/checksums@npm:^3.1002.2": + version: 3.1002.3 + resolution: "@aws-sdk/checksums@npm:3.1002.3" dependencies: - "@aws-sdk/core": "npm:^3.979.1" + "@aws-sdk/core": "npm:^3.980.1" "@aws-sdk/types": "npm:^3.975.0" "@smithy/core": "npm:^3.38.0" "@smithy/types": "npm:^4.19.0" tslib: "npm:^2.6.2" - checksum: 10c0/723318277a52280d9390674494e48bd3e440e7b81682a11297197d9e08923f05b5cb8af9a4568f426f36053c694940d2bd24981774545b8e299a70d3688ba7f7 + checksum: 10c0/e6fef833446cca106538bbc7c9f20eef54b53e41781201688d1857289bbc3c0b7c453ea5698f83a26af022c345f82e58af1d6dc554e04af98a634d6c7ceb4dde languageName: node linkType: hard -"@aws-sdk/client-s3@npm:3.1159.0, @aws-sdk/client-s3@npm:^3.1159.0": - version: 3.1159.0 - resolution: "@aws-sdk/client-s3@npm:3.1159.0" +"@aws-sdk/client-s3@npm:3.1162.0, @aws-sdk/client-s3@npm:^3.1162.0": + version: 3.1162.0 + resolution: "@aws-sdk/client-s3@npm:3.1162.0" dependencies: - "@aws-sdk/checksums": "npm:^3.1001.7" - "@aws-sdk/core": "npm:^3.978.7" - "@aws-sdk/credential-provider-node": "npm:^3.972.90" - "@aws-sdk/middleware-sdk-s3": "npm:^3.972.83" - "@aws-sdk/signature-v4-multi-region": "npm:^3.996.50" + "@aws-sdk/checksums": "npm:^3.1002.2" + "@aws-sdk/core": "npm:^3.980.0" + "@aws-sdk/credential-provider-node": "npm:^3.972.93" + "@aws-sdk/middleware-sdk-s3": "npm:^3.972.86" + "@aws-sdk/signature-v4-multi-region": "npm:^3.996.51" "@aws-sdk/types": "npm:^3.975.0" - "@smithy/core": "npm:^3.37.0" + "@smithy/core": "npm:^3.38.0" "@smithy/fetch-http-handler": "npm:^5.8.0" - "@smithy/node-http-handler": "npm:^4.13.0" + "@smithy/node-http-handler": "npm:^4.14.0" "@smithy/types": "npm:^4.19.0" tslib: "npm:^2.6.2" - checksum: 10c0/3c972c3e528eb0abbc16411cd279094f6f025c755fe681bf1f017e942763ce04af07582e4374a60b39e2216aec1fac2f7cc0a9888071cd5e333ff380480cc1ba + checksum: 10c0/63d67b0a311cc9b66005ed2c0f1636ca813d8847d1ac21a855e5d3752123c3206f7a7b8831d38480349cbbf9147a053d605be779b59166241969c5eb96267a61 languageName: node linkType: hard -"@aws-sdk/cloudfront-signer@npm:^3.1157.0": - version: 3.1157.0 - resolution: "@aws-sdk/cloudfront-signer@npm:3.1157.0" +"@aws-sdk/cloudfront-signer@npm:^3.1161.0": + version: 3.1161.0 + resolution: "@aws-sdk/cloudfront-signer@npm:3.1161.0" dependencies: - "@smithy/core": "npm:^3.37.0" + "@smithy/core": "npm:^3.38.0" tslib: "npm:^2.6.2" - checksum: 10c0/6ce3bfc9fb0eb7ada3156251b08c7a4db70895f09de40688359e781f48dddf7322f18b844f679601e31c68086381a7b4d5273f7b30cc7652afe781484ded7ada + checksum: 10c0/0bf305a911d107324c198fff9ed5266471cf6a36387a7cc67d8cf9efac5c4454f37fe8331afbbcb27f5f29504f40145801d62c7a15177e0f4ca302cdfbfca8c4 languageName: node linkType: hard -"@aws-sdk/core@npm:^3.978.7, @aws-sdk/core@npm:^3.979.1": - version: 3.979.1 - resolution: "@aws-sdk/core@npm:3.979.1" +"@aws-sdk/core@npm:^3.980.0, @aws-sdk/core@npm:^3.980.1": + version: 3.980.1 + resolution: "@aws-sdk/core@npm:3.980.1" dependencies: "@aws-sdk/types": "npm:^3.975.0" "@aws-sdk/xml-builder": "npm:^3.972.42" @@ -97,180 +97,180 @@ __metadata: "@smithy/types": "npm:^4.19.0" bowser: "npm:^2.11.0" tslib: "npm:^2.6.2" - checksum: 10c0/f44ffe99a8aa440445447cf9a4a73d9939fbee38d42a105cce188b740798e2a8c2bc0acdb847d010feef63ca8380783dfb247944c650419a9f8fe69a579fcacc + checksum: 10c0/1bd2c77c1d492807f6d45cfac2aff8cb6d4f40cf72148c43eaa59d3c9d5fbb079b6539481d6e3ae7640fe433ae2da97409b69455d0b95503df0fa4fb47c9c1a3 languageName: node linkType: hard -"@aws-sdk/credential-provider-env@npm:^3.972.80": - version: 3.972.80 - resolution: "@aws-sdk/credential-provider-env@npm:3.972.80" +"@aws-sdk/credential-provider-env@npm:^3.972.82": + version: 3.972.82 + resolution: "@aws-sdk/credential-provider-env@npm:3.972.82" dependencies: - "@aws-sdk/core": "npm:^3.979.1" + "@aws-sdk/core": "npm:^3.980.1" "@aws-sdk/types": "npm:^3.975.0" "@smithy/core": "npm:^3.38.0" "@smithy/types": "npm:^4.19.0" tslib: "npm:^2.6.2" - checksum: 10c0/9a2448d4d7d4b0ef5dd6863f0efdc891a24fcaae6b92c9d7b650adb3ceb0ebf93bd481c9691ce5f4ccd258f0c941fa4d0c4babef629ca4bc5b77d6e4ea12bdcd + checksum: 10c0/0f1fff896c3fee90c7d3c2d4b87f53b72c82dee0ff23cf779b158020d8c1983ce418f73bd49521f2cc667448c122657cfcbd4d3ad9048ea88b656fa0f699c518 languageName: node linkType: hard -"@aws-sdk/credential-provider-http@npm:^3.972.82": - version: 3.972.82 - resolution: "@aws-sdk/credential-provider-http@npm:3.972.82" +"@aws-sdk/credential-provider-http@npm:^3.972.84": + version: 3.972.84 + resolution: "@aws-sdk/credential-provider-http@npm:3.972.84" dependencies: - "@aws-sdk/core": "npm:^3.979.1" + "@aws-sdk/core": "npm:^3.980.1" "@aws-sdk/types": "npm:^3.975.0" "@smithy/core": "npm:^3.38.0" "@smithy/fetch-http-handler": "npm:^5.8.0" "@smithy/node-http-handler": "npm:^4.14.0" "@smithy/types": "npm:^4.19.0" tslib: "npm:^2.6.2" - checksum: 10c0/8f335e42e9415c1f00b705d0778264d157accae051fb06e85c9d463865443cabadf10fd239d8f69b436d6f29a7fc8e347e264b1a42e0c708f557ac47938e257e + checksum: 10c0/556a952fc2aecb6e39564f1aa9bf35d1aea443eb9a7808c3f4861b0c6403ad5c13ea6067a49db027c9087225faccc78caa5288394e9fa6bf4fdca6ebebec46fb languageName: node linkType: hard -"@aws-sdk/credential-provider-ini@npm:^3.973.25": - version: 3.973.25 - resolution: "@aws-sdk/credential-provider-ini@npm:3.973.25" +"@aws-sdk/credential-provider-ini@npm:^3.973.27": + version: 3.973.27 + resolution: "@aws-sdk/credential-provider-ini@npm:3.973.27" dependencies: - "@aws-sdk/core": "npm:^3.979.1" - "@aws-sdk/credential-provider-env": "npm:^3.972.80" - "@aws-sdk/credential-provider-http": "npm:^3.972.82" - "@aws-sdk/credential-provider-login": "npm:^3.972.87" - "@aws-sdk/credential-provider-process": "npm:^3.972.80" - "@aws-sdk/credential-provider-sso": "npm:^3.973.24" - "@aws-sdk/credential-provider-web-identity": "npm:^3.972.86" - "@aws-sdk/nested-clients": "npm:^3.997.54" + "@aws-sdk/core": "npm:^3.980.1" + "@aws-sdk/credential-provider-env": "npm:^3.972.82" + "@aws-sdk/credential-provider-http": "npm:^3.972.84" + "@aws-sdk/credential-provider-login": "npm:^3.972.89" + "@aws-sdk/credential-provider-process": "npm:^3.972.82" + "@aws-sdk/credential-provider-sso": "npm:^3.973.26" + "@aws-sdk/credential-provider-web-identity": "npm:^3.972.88" + "@aws-sdk/nested-clients": "npm:^3.998.1" "@aws-sdk/types": "npm:^3.975.0" "@smithy/core": "npm:^3.38.0" "@smithy/credential-provider-imds": "npm:^4.5.2" "@smithy/types": "npm:^4.19.0" tslib: "npm:^2.6.2" - checksum: 10c0/9e703efbc4b0542dbcb6d23b914712dc40b8749c74cc1df2b03759220edce941a307c703c084cccdae4df9008d56ea25d3de4e0c2c66bab31bbf16643c68c23e + checksum: 10c0/55c49b6922ca8948964f0eb491ab6a62f78decbdbdfb38c2c0f6f0748674a3c616160d6563d5af367d119d0fab1de73c8b9dd930d5d1bb89b9777c1a67f7f435 languageName: node linkType: hard -"@aws-sdk/credential-provider-login@npm:^3.972.87": - version: 3.972.87 - resolution: "@aws-sdk/credential-provider-login@npm:3.972.87" +"@aws-sdk/credential-provider-login@npm:^3.972.89": + version: 3.972.89 + resolution: "@aws-sdk/credential-provider-login@npm:3.972.89" dependencies: - "@aws-sdk/core": "npm:^3.979.1" - "@aws-sdk/nested-clients": "npm:^3.997.54" + "@aws-sdk/core": "npm:^3.980.1" + "@aws-sdk/nested-clients": "npm:^3.998.1" "@aws-sdk/types": "npm:^3.975.0" "@smithy/core": "npm:^3.38.0" "@smithy/types": "npm:^4.19.0" tslib: "npm:^2.6.2" - checksum: 10c0/7b8bd91d41257b5fde4926e47628eed10e4f40a2234eafc3151fdd3da96810b38d1f054854a537a33c9a7f712906972eb14c5ce0f9a92f154120e46bd9a59028 + checksum: 10c0/1c34644fa39993c71c86bf3da513d0b8f665e8e3be817158d7569108427e2075f8beeab59d69a9581f352e3d72906fa5245e11164e7da19af9f9aa03531c02b5 languageName: node linkType: hard -"@aws-sdk/credential-provider-node@npm:^3.972.90": - version: 3.972.92 - resolution: "@aws-sdk/credential-provider-node@npm:3.972.92" +"@aws-sdk/credential-provider-node@npm:^3.972.93": + version: 3.972.94 + resolution: "@aws-sdk/credential-provider-node@npm:3.972.94" dependencies: - "@aws-sdk/credential-provider-env": "npm:^3.972.80" - "@aws-sdk/credential-provider-http": "npm:^3.972.82" - "@aws-sdk/credential-provider-ini": "npm:^3.973.25" - "@aws-sdk/credential-provider-process": "npm:^3.972.80" - "@aws-sdk/credential-provider-sso": "npm:^3.973.24" - "@aws-sdk/credential-provider-web-identity": "npm:^3.972.86" + "@aws-sdk/credential-provider-env": "npm:^3.972.82" + "@aws-sdk/credential-provider-http": "npm:^3.972.84" + "@aws-sdk/credential-provider-ini": "npm:^3.973.27" + "@aws-sdk/credential-provider-process": "npm:^3.972.82" + "@aws-sdk/credential-provider-sso": "npm:^3.973.26" + "@aws-sdk/credential-provider-web-identity": "npm:^3.972.88" "@aws-sdk/types": "npm:^3.975.0" "@smithy/core": "npm:^3.38.0" "@smithy/credential-provider-imds": "npm:^4.5.2" "@smithy/types": "npm:^4.19.0" tslib: "npm:^2.6.2" - checksum: 10c0/9a144dbe8c16690e53fe54e5d6ce63fad0882756deb5ab360a66c735e91ccfde9ebf4062f7e17205a1ec1c0871e04eaa5838be3e9fe7c47c8db009703c73f32e + checksum: 10c0/3fc97bfa65a69f9c12e2c63ac8a249d0fc9e614e7dfc6dfa56354e8bb0d58c65f8eae1e659ebac200092fb13d8bb13ee8d7149f11e99323a9cadd408d4e5e9b0 languageName: node linkType: hard -"@aws-sdk/credential-provider-process@npm:^3.972.80": - version: 3.972.80 - resolution: "@aws-sdk/credential-provider-process@npm:3.972.80" +"@aws-sdk/credential-provider-process@npm:^3.972.82": + version: 3.972.82 + resolution: "@aws-sdk/credential-provider-process@npm:3.972.82" dependencies: - "@aws-sdk/core": "npm:^3.979.1" + "@aws-sdk/core": "npm:^3.980.1" "@aws-sdk/types": "npm:^3.975.0" "@smithy/core": "npm:^3.38.0" "@smithy/types": "npm:^4.19.0" tslib: "npm:^2.6.2" - checksum: 10c0/113d17b374159505fcc2ff66eab03530c2b3b2eb2026d318734666f5b9950acc56b3fae9b8c1740e6be38e3134bcd676a06a02526a61421250b03b3fe16fe535 + checksum: 10c0/ea05707f0f5c78bb0d0c09fe1b755c4aedf0215e24898fcda9bc4ba24d708fc7ecd745f504aaf03645402f5e5674625fcac57280a44bd37524a0c22cd520ec27 languageName: node linkType: hard -"@aws-sdk/credential-provider-sso@npm:^3.973.24": - version: 3.973.24 - resolution: "@aws-sdk/credential-provider-sso@npm:3.973.24" +"@aws-sdk/credential-provider-sso@npm:^3.973.26": + version: 3.973.26 + resolution: "@aws-sdk/credential-provider-sso@npm:3.973.26" dependencies: - "@aws-sdk/core": "npm:^3.979.1" - "@aws-sdk/nested-clients": "npm:^3.997.54" - "@aws-sdk/token-providers": "npm:3.1161.0" + "@aws-sdk/core": "npm:^3.980.1" + "@aws-sdk/nested-clients": "npm:^3.998.1" + "@aws-sdk/token-providers": "npm:3.1164.0" "@aws-sdk/types": "npm:^3.975.0" "@smithy/core": "npm:^3.38.0" "@smithy/types": "npm:^4.19.0" tslib: "npm:^2.6.2" - checksum: 10c0/635d6d4e3d34264308522352b21433f0c562517a798ae79541b5113de7179549c1d4a6287b894d5160e9b58bafac4be325d60e16ba799f60b2475942df2c4c77 + checksum: 10c0/b67c6088f7a4912c6e57ce96bc2136500b2f57ffa32eeb3d06ccc8cf8789068d9df9a9fcb9bcf819c0168d3046fb84fa154caddcc43037b7164f2f642472758f languageName: node linkType: hard -"@aws-sdk/credential-provider-web-identity@npm:^3.972.86": +"@aws-sdk/credential-provider-web-identity@npm:^3.972.88": + version: 3.972.88 + resolution: "@aws-sdk/credential-provider-web-identity@npm:3.972.88" + dependencies: + "@aws-sdk/core": "npm:^3.980.1" + "@aws-sdk/nested-clients": "npm:^3.998.1" + "@aws-sdk/types": "npm:^3.975.0" + "@smithy/core": "npm:^3.38.0" + "@smithy/types": "npm:^4.19.0" + tslib: "npm:^2.6.2" + checksum: 10c0/198c3955ee469e666c2547e9a61b7fcdab9fde1c163f179f9d1aed8b42b906b8e2d25500e75a5e27951b09b5aa9f88854bf510f092d43d20472d1061c2bb1793 + languageName: node + linkType: hard + +"@aws-sdk/crt-loader@npm:^3.972.85": version: 3.972.86 - resolution: "@aws-sdk/credential-provider-web-identity@npm:3.972.86" + resolution: "@aws-sdk/crt-loader@npm:3.972.86" dependencies: - "@aws-sdk/core": "npm:^3.979.1" - "@aws-sdk/nested-clients": "npm:^3.997.54" - "@aws-sdk/types": "npm:^3.975.0" - "@smithy/core": "npm:^3.38.0" - "@smithy/types": "npm:^4.19.0" - tslib: "npm:^2.6.2" - checksum: 10c0/ccda6e70c7c40b47e63e930844c4631cf2ceb259e088d55cfdf33f1276c803605b068354cf76eefff55cc8c741a7d70a27158197eea4fbdb1eadc95b70a23bc8 - languageName: node - linkType: hard - -"@aws-sdk/crt-loader@npm:^3.972.82": - version: 3.972.84 - resolution: "@aws-sdk/crt-loader@npm:3.972.84" - dependencies: - "@aws-sdk/core": "npm:^3.979.1" + "@aws-sdk/core": "npm:^3.980.1" aws-crt: "npm:^1.31.0" tslib: "npm:^2.6.2" - checksum: 10c0/7fdb62596178d4f3b9ba80cb5baaf19f7387c38787cc84bd9d2f9e2b96530c64ff8b4c20e1a834397c17ec2dbb8e382e090402125195fc514e2dee879805c02e + checksum: 10c0/c7abdd35079a1e3ec371143daed6098ebd4b5d345554c51de8efb6c28ee14ac675e6f409a084096dffdb95b146b172e8c4f709bbface4d4a757878b08b2025c5 languageName: node linkType: hard -"@aws-sdk/lib-storage@npm:^3.1159.0": - version: 3.1159.0 - resolution: "@aws-sdk/lib-storage@npm:3.1159.0" +"@aws-sdk/lib-storage@npm:^3.1162.0": + version: 3.1162.0 + resolution: "@aws-sdk/lib-storage@npm:3.1162.0" dependencies: - "@smithy/core": "npm:^3.37.0" + "@smithy/core": "npm:^3.38.0" "@smithy/types": "npm:^4.19.0" buffer: "npm:5.6.0" events: "npm:3.3.0" stream-browserify: "npm:3.0.0" tslib: "npm:^2.6.2" peerDependencies: - "@aws-sdk/client-s3": ^3.1159.0 - checksum: 10c0/15bf017ad341ffa1fb63d4429005d6f095a181236898d40fcd5654fd7403e0e2101f0541575a44918afe9c736a3b12f58efa4b76f625a00080a28f4afc03905f + "@aws-sdk/client-s3": ^3.1162.0 + checksum: 10c0/e8ad819c6e3fb22dc27f7c9a40f449a31be182caf75561cc198d1343363e23d75845eed84b35e11b9fa6275532185e882275177c5ef90252375d55fc4de89ecc languageName: node linkType: hard -"@aws-sdk/middleware-sdk-s3@npm:^3.972.83": - version: 3.972.85 - resolution: "@aws-sdk/middleware-sdk-s3@npm:3.972.85" +"@aws-sdk/middleware-sdk-s3@npm:^3.972.86": + version: 3.972.87 + resolution: "@aws-sdk/middleware-sdk-s3@npm:3.972.87" dependencies: - "@aws-sdk/core": "npm:^3.979.1" + "@aws-sdk/core": "npm:^3.980.1" "@aws-sdk/signature-v4-multi-region": "npm:^3.996.51" "@aws-sdk/types": "npm:^3.975.0" "@smithy/core": "npm:^3.38.0" "@smithy/types": "npm:^4.19.0" tslib: "npm:^2.6.2" - checksum: 10c0/75048bb8453e6f5f501e05ae9687c4fed00692e7121c41aec06c21589821e9a0fc1f67592f9f74483b5c7254b60da79760859f71a85d8f4ce7cb3aa9b93f5848 + checksum: 10c0/c1d0ee377dce8480aac7b6b0c6a5b9e2188ab1800bffc9cb3a9fe314200c0eee21cb0769e62e559c20ec2e40ce31ac23966c2d199e31ea76d6160179563680dc languageName: node linkType: hard -"@aws-sdk/nested-clients@npm:^3.997.54": - version: 3.997.54 - resolution: "@aws-sdk/nested-clients@npm:3.997.54" +"@aws-sdk/nested-clients@npm:^3.998.1": + version: 3.998.1 + resolution: "@aws-sdk/nested-clients@npm:3.998.1" dependencies: - "@aws-sdk/core": "npm:^3.979.1" + "@aws-sdk/core": "npm:^3.980.1" "@aws-sdk/signature-v4-multi-region": "npm:^3.996.51" "@aws-sdk/types": "npm:^3.975.0" "@smithy/core": "npm:^3.38.0" @@ -278,55 +278,55 @@ __metadata: "@smithy/node-http-handler": "npm:^4.14.0" "@smithy/types": "npm:^4.19.0" tslib: "npm:^2.6.2" - checksum: 10c0/68ae3d1d1b9eef88fdf2dcaf66fe0dabe35086a7b6b57459d10a48a03cc1c5d4d3eb241df94cf3dc765ab636ce21135174439eb767243a3940d021c8c6115eb5 + checksum: 10c0/c0a170e6a1a0aabacb5fbc7d3de89c981cc578a7b24ddd17e32bdbee0690e092f07a14f2d8ca5948927fbc5fd315bcec684f18a431944e2ab6c28168ec06f37d languageName: node linkType: hard -"@aws-sdk/s3-presigned-post@npm:^3.1159.0": - version: 3.1159.0 - resolution: "@aws-sdk/s3-presigned-post@npm:3.1159.0" +"@aws-sdk/s3-presigned-post@npm:^3.1162.0": + version: 3.1162.0 + resolution: "@aws-sdk/s3-presigned-post@npm:3.1162.0" dependencies: - "@aws-sdk/client-s3": "npm:3.1159.0" - "@aws-sdk/core": "npm:^3.978.7" + "@aws-sdk/client-s3": "npm:3.1162.0" + "@aws-sdk/core": "npm:^3.980.0" "@aws-sdk/types": "npm:^3.975.0" - "@smithy/core": "npm:^3.37.0" - "@smithy/signature-v4": "npm:^5.7.4" + "@smithy/core": "npm:^3.38.0" + "@smithy/signature-v4": "npm:^5.7.5" "@smithy/types": "npm:^4.19.0" tslib: "npm:^2.6.2" - checksum: 10c0/3c86b166a1071441d123ded7a7fbf84d806d40fa65fac2368db261c185b15288c54f12f14ed3ff6998233dbdea6bc07502e7556e616feac91d0e26ae549b61ef + checksum: 10c0/93a0e171412c358b1f31aee61fea5de0317b2532e993cfad3c4b98f871e26a7decd212413acf929bfcc5ba76c5ec45b2ea27926d711bc9d569ef0311a9705963 languageName: node linkType: hard -"@aws-sdk/s3-request-presigner@npm:^3.1159.0": - version: 3.1159.0 - resolution: "@aws-sdk/s3-request-presigner@npm:3.1159.0" +"@aws-sdk/s3-request-presigner@npm:^3.1162.0": + version: 3.1162.0 + resolution: "@aws-sdk/s3-request-presigner@npm:3.1162.0" dependencies: - "@aws-sdk/core": "npm:^3.978.7" - "@aws-sdk/signature-v4-multi-region": "npm:^3.996.50" + "@aws-sdk/core": "npm:^3.980.0" + "@aws-sdk/signature-v4-multi-region": "npm:^3.996.51" "@aws-sdk/types": "npm:^3.975.0" - "@smithy/core": "npm:^3.37.0" + "@smithy/core": "npm:^3.38.0" "@smithy/types": "npm:^4.19.0" tslib: "npm:^2.6.2" - checksum: 10c0/9bc80b2c992d4c717bd22038679cf01aa2d880a54780bb9a3dd9de15c878eb59bcdb430b4f4f0ae27f6207aa1f9d8831164cf51ab1cfa7f8008b56afa1b2b90e + checksum: 10c0/54945677b34b266277c0e7f2c005636eb7d1cfd58afa01e12603b0769593b69d14803831470099335ab896697f6abaaa6e5a4ff9615ad5d64859e0c9ca77df43 languageName: node linkType: hard -"@aws-sdk/signature-v4-crt@npm:^3.1159.0": - version: 3.1159.0 - resolution: "@aws-sdk/signature-v4-crt@npm:3.1159.0" +"@aws-sdk/signature-v4-crt@npm:^3.1162.0": + version: 3.1162.0 + resolution: "@aws-sdk/signature-v4-crt@npm:3.1162.0" dependencies: - "@aws-sdk/crt-loader": "npm:^3.972.82" - "@aws-sdk/signature-v4-multi-region": "npm:^3.996.50" + "@aws-sdk/crt-loader": "npm:^3.972.85" + "@aws-sdk/signature-v4-multi-region": "npm:^3.996.51" "@aws-sdk/types": "npm:^3.975.0" - "@smithy/core": "npm:^3.37.0" - "@smithy/signature-v4": "npm:^5.7.4" + "@smithy/core": "npm:^3.38.0" + "@smithy/signature-v4": "npm:^5.7.5" "@smithy/types": "npm:^4.19.0" tslib: "npm:^2.6.2" - checksum: 10c0/21a4f532f9277359da64775a3142686bd9f85026057a14350aa0c519dd03eb50d41e214afc9fc2874c944ed52ba0d64a19221a0c369d390921fbeaa3e6e3f2ae + checksum: 10c0/39afc3574136d0543c83008417ea35a1eb8bdeb589dec4059119fbca2c5697301df5945a6aa4764692985222a0b9f149508002b6219ed2faf2f08670edc37f44 languageName: node linkType: hard -"@aws-sdk/signature-v4-multi-region@npm:^3.996.50, @aws-sdk/signature-v4-multi-region@npm:^3.996.51": +"@aws-sdk/signature-v4-multi-region@npm:^3.996.51": version: 3.996.51 resolution: "@aws-sdk/signature-v4-multi-region@npm:3.996.51" dependencies: @@ -338,17 +338,17 @@ __metadata: languageName: node linkType: hard -"@aws-sdk/token-providers@npm:3.1161.0": - version: 3.1161.0 - resolution: "@aws-sdk/token-providers@npm:3.1161.0" +"@aws-sdk/token-providers@npm:3.1164.0": + version: 3.1164.0 + resolution: "@aws-sdk/token-providers@npm:3.1164.0" dependencies: - "@aws-sdk/core": "npm:^3.979.1" - "@aws-sdk/nested-clients": "npm:^3.997.54" + "@aws-sdk/core": "npm:^3.980.1" + "@aws-sdk/nested-clients": "npm:^3.998.1" "@aws-sdk/types": "npm:^3.975.0" "@smithy/core": "npm:^3.38.0" "@smithy/types": "npm:^4.19.0" tslib: "npm:^2.6.2" - checksum: 10c0/ac80ff7462553f5066bc0c730163b8d9848ac1d5b297822971020642bd7915cca87cb3bf7639242360b09334c2efa83e56824d7dc4db1d4f67ffdb97f5c9bff4 + checksum: 10c0/f0ef3a36a0789533d72a721bfcc98c9cd01d612f456fcfc1751a4b37626022356b4e5f2ca9e97426ea337f4ac086972f1e02fe46d363ee947460ba858ba57818 languageName: node linkType: hard @@ -2116,44 +2116,74 @@ __metadata: languageName: node linkType: hard -"@firecrawl/pdf-inspector-darwin-arm64@npm:1.11.2": - version: 1.11.2 - resolution: "@firecrawl/pdf-inspector-darwin-arm64@npm:1.11.2" +"@firecrawl/pdf-inspector-darwin-arm64@npm:1.25.2": + version: 1.25.2 + resolution: "@firecrawl/pdf-inspector-darwin-arm64@npm:1.25.2" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@firecrawl/pdf-inspector-linux-x64-gnu@npm:1.11.2": - version: 1.11.2 - resolution: "@firecrawl/pdf-inspector-linux-x64-gnu@npm:1.11.2" +"@firecrawl/pdf-inspector-linux-arm64-gnu@npm:1.25.2": + version: 1.25.2 + resolution: "@firecrawl/pdf-inspector-linux-arm64-gnu@npm:1.25.2" + conditions: os=linux & cpu=arm64 & libc=glibc + languageName: node + linkType: hard + +"@firecrawl/pdf-inspector-linux-arm64-musl@npm:1.25.2": + version: 1.25.2 + resolution: "@firecrawl/pdf-inspector-linux-arm64-musl@npm:1.25.2" + conditions: os=linux & cpu=arm64 & libc=musl + languageName: node + linkType: hard + +"@firecrawl/pdf-inspector-linux-x64-gnu@npm:1.25.2": + version: 1.25.2 + resolution: "@firecrawl/pdf-inspector-linux-x64-gnu@npm:1.25.2" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@firecrawl/pdf-inspector-win32-x64-msvc@npm:1.11.2": - version: 1.11.2 - resolution: "@firecrawl/pdf-inspector-win32-x64-msvc@npm:1.11.2" +"@firecrawl/pdf-inspector-linux-x64-musl@npm:1.25.2": + version: 1.25.2 + resolution: "@firecrawl/pdf-inspector-linux-x64-musl@npm:1.25.2" + conditions: os=linux & cpu=x64 & libc=musl + languageName: node + linkType: hard + +"@firecrawl/pdf-inspector-win32-x64-msvc@npm:1.25.2": + version: 1.25.2 + resolution: "@firecrawl/pdf-inspector-win32-x64-msvc@npm:1.25.2" conditions: os=win32 & cpu=x64 languageName: node linkType: hard -"@firecrawl/pdf-inspector@npm:^1.11.2": - version: 1.11.2 - resolution: "@firecrawl/pdf-inspector@npm:1.11.2" +"@firecrawl/pdf-inspector@npm:^1.25.2": + version: 1.25.2 + resolution: "@firecrawl/pdf-inspector@npm:1.25.2" dependencies: - "@firecrawl/pdf-inspector-darwin-arm64": "npm:1.11.2" - "@firecrawl/pdf-inspector-linux-x64-gnu": "npm:1.11.2" - "@firecrawl/pdf-inspector-win32-x64-msvc": "npm:1.11.2" + "@firecrawl/pdf-inspector-darwin-arm64": "npm:1.25.2" + "@firecrawl/pdf-inspector-linux-arm64-gnu": "npm:1.25.2" + "@firecrawl/pdf-inspector-linux-arm64-musl": "npm:1.25.2" + "@firecrawl/pdf-inspector-linux-x64-gnu": "npm:1.25.2" + "@firecrawl/pdf-inspector-linux-x64-musl": "npm:1.25.2" + "@firecrawl/pdf-inspector-win32-x64-msvc": "npm:1.25.2" dependenciesMeta: "@firecrawl/pdf-inspector-darwin-arm64": optional: true + "@firecrawl/pdf-inspector-linux-arm64-gnu": + optional: true + "@firecrawl/pdf-inspector-linux-arm64-musl": + optional: true "@firecrawl/pdf-inspector-linux-x64-gnu": optional: true + "@firecrawl/pdf-inspector-linux-x64-musl": + optional: true "@firecrawl/pdf-inspector-win32-x64-msvc": optional: true bin: pdf-inspector: bin/pdf-inspector.mjs - checksum: 10c0/8470dac3f3b5b7b74e7e4df3f3783d3d1537765c6b578eaf96750b83abc7ec85c3cc4c7836285b73ba9e5638d2fb7ed634410e05c76ee5a3e1913f0780f998a9 + checksum: 10c0/93ab7e1063d05e7327cdf45a567f7ff96da7880c37227b64b09c567c2a1fc636736cf04dd330a3cab71fdfda5e3a314659970bd3d08debb7cb5ab417b1af0987 languageName: node linkType: hard @@ -2251,39 +2281,6 @@ __metadata: languageName: node linkType: hard -"@gitbeaker/core@npm:^43.8.0": - version: 43.8.0 - resolution: "@gitbeaker/core@npm:43.8.0" - dependencies: - "@gitbeaker/requester-utils": "npm:^43.8.0" - qs: "npm:^6.14.0" - xcase: "npm:^2.0.1" - checksum: 10c0/5913aea8ae89b30f37693093fe68a94fbe4ab2737e661ba6795b3d22463ffa63806076b392b938d4c662d691c0114facc022bcdde29297e7b6617b146c449ff6 - languageName: node - linkType: hard - -"@gitbeaker/requester-utils@npm:^43.8.0": - version: 43.8.0 - resolution: "@gitbeaker/requester-utils@npm:43.8.0" - dependencies: - picomatch-browser: "npm:^2.2.6" - qs: "npm:^6.14.0" - rate-limiter-flexible: "npm:^8.0.1" - xcase: "npm:^2.0.1" - checksum: 10c0/07fd5af56fa3b577009bac6fc59a9b54b3e188a8b412c926b253b21528fb46f8ab02dbeba5c032a9a77d169a69208550147a099c71681d5b9193c87224db8d19 - languageName: node - linkType: hard - -"@gitbeaker/rest@npm:^43.8.0": - version: 43.8.0 - resolution: "@gitbeaker/rest@npm:43.8.0" - dependencies: - "@gitbeaker/core": "npm:^43.8.0" - "@gitbeaker/requester-utils": "npm:^43.8.0" - checksum: 10c0/f3b25c6a67c25f9d5aac4674bacd36321c06bedd55e4fe859cba569e6c0121ac00d41838094ca7e19dc3158f59e57f8bae7d565b2e7d308904a3bbe234152b8b - languageName: node - linkType: hard - "@graphql-typed-document-node/core@npm:^3.2.0": version: 3.2.0 resolution: "@graphql-typed-document-node/core@npm:3.2.0" @@ -3867,44 +3864,44 @@ __metadata: languageName: node linkType: hard -"@oxlint-tsgolint/darwin-arm64@npm:7.0.2005": - version: 7.0.2005 - resolution: "@oxlint-tsgolint/darwin-arm64@npm:7.0.2005" +"@oxlint-tsgolint/darwin-arm64@npm:7.0.2006": + version: 7.0.2006 + resolution: "@oxlint-tsgolint/darwin-arm64@npm:7.0.2006" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@oxlint-tsgolint/darwin-x64@npm:7.0.2005": - version: 7.0.2005 - resolution: "@oxlint-tsgolint/darwin-x64@npm:7.0.2005" +"@oxlint-tsgolint/darwin-x64@npm:7.0.2006": + version: 7.0.2006 + resolution: "@oxlint-tsgolint/darwin-x64@npm:7.0.2006" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@oxlint-tsgolint/linux-arm64@npm:7.0.2005": - version: 7.0.2005 - resolution: "@oxlint-tsgolint/linux-arm64@npm:7.0.2005" +"@oxlint-tsgolint/linux-arm64@npm:7.0.2006": + version: 7.0.2006 + resolution: "@oxlint-tsgolint/linux-arm64@npm:7.0.2006" conditions: os=linux & cpu=arm64 languageName: node linkType: hard -"@oxlint-tsgolint/linux-x64@npm:7.0.2005": - version: 7.0.2005 - resolution: "@oxlint-tsgolint/linux-x64@npm:7.0.2005" +"@oxlint-tsgolint/linux-x64@npm:7.0.2006": + version: 7.0.2006 + resolution: "@oxlint-tsgolint/linux-x64@npm:7.0.2006" conditions: os=linux & cpu=x64 languageName: node linkType: hard -"@oxlint-tsgolint/win32-arm64@npm:7.0.2005": - version: 7.0.2005 - resolution: "@oxlint-tsgolint/win32-arm64@npm:7.0.2005" +"@oxlint-tsgolint/win32-arm64@npm:7.0.2006": + version: 7.0.2006 + resolution: "@oxlint-tsgolint/win32-arm64@npm:7.0.2006" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@oxlint-tsgolint/win32-x64@npm:7.0.2005": - version: 7.0.2005 - resolution: "@oxlint-tsgolint/win32-x64@npm:7.0.2005" +"@oxlint-tsgolint/win32-x64@npm:7.0.2006": + version: 7.0.2006 + resolution: "@oxlint-tsgolint/win32-x64@npm:7.0.2006" conditions: os=win32 & cpu=x64 languageName: node linkType: hard @@ -5752,7 +5749,7 @@ __metadata: languageName: node linkType: hard -"@smithy/core@npm:^3.33.2, @smithy/core@npm:^3.33.3, @smithy/core@npm:^3.37.0, @smithy/core@npm:^3.38.0, @smithy/core@npm:^3.38.1": +"@smithy/core@npm:^3.33.2, @smithy/core@npm:^3.33.3, @smithy/core@npm:^3.38.0, @smithy/core@npm:^3.38.1": version: 3.38.1 resolution: "@smithy/core@npm:3.38.1" dependencies: @@ -5784,7 +5781,7 @@ __metadata: languageName: node linkType: hard -"@smithy/node-http-handler@npm:^4.13.0, @smithy/node-http-handler@npm:^4.14.0": +"@smithy/node-http-handler@npm:^4.14.0": version: 4.14.1 resolution: "@smithy/node-http-handler@npm:4.14.1" dependencies: @@ -5795,7 +5792,7 @@ __metadata: languageName: node linkType: hard -"@smithy/signature-v4@npm:^5.7.4, @smithy/signature-v4@npm:^5.7.5": +"@smithy/signature-v4@npm:^5.7.5": version: 5.7.5 resolution: "@smithy/signature-v4@npm:5.7.5" dependencies: @@ -5880,106 +5877,106 @@ __metadata: languageName: node linkType: hard -"@swc/core-darwin-arm64@npm:1.16.20": - version: 1.16.20 - resolution: "@swc/core-darwin-arm64@npm:1.16.20" +"@swc/core-darwin-arm64@npm:1.16.22": + version: 1.16.22 + resolution: "@swc/core-darwin-arm64@npm:1.16.22" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@swc/core-darwin-x64@npm:1.16.20": - version: 1.16.20 - resolution: "@swc/core-darwin-x64@npm:1.16.20" +"@swc/core-darwin-x64@npm:1.16.22": + version: 1.16.22 + resolution: "@swc/core-darwin-x64@npm:1.16.22" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@swc/core-linux-arm-gnueabihf@npm:1.16.20": - version: 1.16.20 - resolution: "@swc/core-linux-arm-gnueabihf@npm:1.16.20" +"@swc/core-linux-arm-gnueabihf@npm:1.16.22": + version: 1.16.22 + resolution: "@swc/core-linux-arm-gnueabihf@npm:1.16.22" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@swc/core-linux-arm64-gnu@npm:1.16.20": - version: 1.16.20 - resolution: "@swc/core-linux-arm64-gnu@npm:1.16.20" +"@swc/core-linux-arm64-gnu@npm:1.16.22": + version: 1.16.22 + resolution: "@swc/core-linux-arm64-gnu@npm:1.16.22" conditions: os=linux & cpu=arm64 & libc=glibc languageName: node linkType: hard -"@swc/core-linux-arm64-musl@npm:1.16.20": - version: 1.16.20 - resolution: "@swc/core-linux-arm64-musl@npm:1.16.20" +"@swc/core-linux-arm64-musl@npm:1.16.22": + version: 1.16.22 + resolution: "@swc/core-linux-arm64-musl@npm:1.16.22" conditions: os=linux & cpu=arm64 & libc=musl languageName: node linkType: hard -"@swc/core-linux-ppc64-gnu@npm:1.16.20": - version: 1.16.20 - resolution: "@swc/core-linux-ppc64-gnu@npm:1.16.20" +"@swc/core-linux-ppc64-gnu@npm:1.16.22": + version: 1.16.22 + resolution: "@swc/core-linux-ppc64-gnu@npm:1.16.22" conditions: os=linux & cpu=ppc64 & libc=glibc languageName: node linkType: hard -"@swc/core-linux-s390x-gnu@npm:1.16.20": - version: 1.16.20 - resolution: "@swc/core-linux-s390x-gnu@npm:1.16.20" +"@swc/core-linux-s390x-gnu@npm:1.16.22": + version: 1.16.22 + resolution: "@swc/core-linux-s390x-gnu@npm:1.16.22" conditions: os=linux & cpu=s390x & libc=glibc languageName: node linkType: hard -"@swc/core-linux-x64-gnu@npm:1.16.20": - version: 1.16.20 - resolution: "@swc/core-linux-x64-gnu@npm:1.16.20" +"@swc/core-linux-x64-gnu@npm:1.16.22": + version: 1.16.22 + resolution: "@swc/core-linux-x64-gnu@npm:1.16.22" conditions: os=linux & cpu=x64 & libc=glibc languageName: node linkType: hard -"@swc/core-linux-x64-musl@npm:1.16.20": - version: 1.16.20 - resolution: "@swc/core-linux-x64-musl@npm:1.16.20" +"@swc/core-linux-x64-musl@npm:1.16.22": + version: 1.16.22 + resolution: "@swc/core-linux-x64-musl@npm:1.16.22" conditions: os=linux & cpu=x64 & libc=musl languageName: node linkType: hard -"@swc/core-win32-arm64-msvc@npm:1.16.20": - version: 1.16.20 - resolution: "@swc/core-win32-arm64-msvc@npm:1.16.20" +"@swc/core-win32-arm64-msvc@npm:1.16.22": + version: 1.16.22 + resolution: "@swc/core-win32-arm64-msvc@npm:1.16.22" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@swc/core-win32-ia32-msvc@npm:1.16.20": - version: 1.16.20 - resolution: "@swc/core-win32-ia32-msvc@npm:1.16.20" +"@swc/core-win32-ia32-msvc@npm:1.16.22": + version: 1.16.22 + resolution: "@swc/core-win32-ia32-msvc@npm:1.16.22" conditions: os=win32 & cpu=ia32 languageName: node linkType: hard -"@swc/core-win32-x64-msvc@npm:1.16.20": - version: 1.16.20 - resolution: "@swc/core-win32-x64-msvc@npm:1.16.20" +"@swc/core-win32-x64-msvc@npm:1.16.22": + version: 1.16.22 + resolution: "@swc/core-win32-x64-msvc@npm:1.16.22" conditions: os=win32 & cpu=x64 languageName: node linkType: hard -"@swc/core@npm:^1.16.20": - version: 1.16.20 - resolution: "@swc/core@npm:1.16.20" +"@swc/core@npm:^1.16.22": + version: 1.16.22 + resolution: "@swc/core@npm:1.16.22" dependencies: - "@swc/core-darwin-arm64": "npm:1.16.20" - "@swc/core-darwin-x64": "npm:1.16.20" - "@swc/core-linux-arm-gnueabihf": "npm:1.16.20" - "@swc/core-linux-arm64-gnu": "npm:1.16.20" - "@swc/core-linux-arm64-musl": "npm:1.16.20" - "@swc/core-linux-ppc64-gnu": "npm:1.16.20" - "@swc/core-linux-s390x-gnu": "npm:1.16.20" - "@swc/core-linux-x64-gnu": "npm:1.16.20" - "@swc/core-linux-x64-musl": "npm:1.16.20" - "@swc/core-win32-arm64-msvc": "npm:1.16.20" - "@swc/core-win32-ia32-msvc": "npm:1.16.20" - "@swc/core-win32-x64-msvc": "npm:1.16.20" + "@swc/core-darwin-arm64": "npm:1.16.22" + "@swc/core-darwin-x64": "npm:1.16.22" + "@swc/core-linux-arm-gnueabihf": "npm:1.16.22" + "@swc/core-linux-arm64-gnu": "npm:1.16.22" + "@swc/core-linux-arm64-musl": "npm:1.16.22" + "@swc/core-linux-ppc64-gnu": "npm:1.16.22" + "@swc/core-linux-s390x-gnu": "npm:1.16.22" + "@swc/core-linux-x64-gnu": "npm:1.16.22" + "@swc/core-linux-x64-musl": "npm:1.16.22" + "@swc/core-win32-arm64-msvc": "npm:1.16.22" + "@swc/core-win32-ia32-msvc": "npm:1.16.22" + "@swc/core-win32-x64-msvc": "npm:1.16.22" "@swc/counter": "npm:^0.1.3" "@swc/types": "npm:^0.1.28" peerDependencies: @@ -6012,7 +6009,7 @@ __metadata: peerDependenciesMeta: "@swc/helpers": optional: true - checksum: 10c0/1dae88a3c5c9c78ed463ad6b166943249f8af3705dc523d59545811dd02a738f69f31e399e8ea0e24f64ecb9b94ded57dc2e189618e544f4dbcaa430417cc813 + checksum: 10c0/1fecb6764b2b9ad3b5e5ce14fcc78ba8eb6226ef23e51df28f485f3ca207d9587732a61a4a4ec3c439e3fe80955128d9d4780f1976757b7d05f40d803f106781 languageName: node linkType: hard @@ -6044,15 +6041,15 @@ __metadata: languageName: node linkType: hard -"@tanstack/react-virtual@npm:^3.14.23, @tanstack/react-virtual@npm:^3.14.9": - version: 3.14.23 - resolution: "@tanstack/react-virtual@npm:3.14.23" +"@tanstack/react-virtual@npm:^3.14.26, @tanstack/react-virtual@npm:^3.14.9": + version: 3.14.26 + resolution: "@tanstack/react-virtual@npm:3.14.26" dependencies: - "@tanstack/virtual-core": "npm:3.19.8" + "@tanstack/virtual-core": "npm:3.19.11" peerDependencies: react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 - checksum: 10c0/cd39e337ba5d450be5cade885dd0a043ef9149abd95331c533b588a626573af4a48b0d4e78d2bcf36b4ffa1267921dfae7203dec8aa8aa7f128014accd2e4ff5 + checksum: 10c0/71291177ac4c4b067a40351d46c69af0d5fc9dfcc6cb328cb87717b29209501a7193e92e75e599273ee423fff6c55c88157bd238684846b0d926dfa73b5d6dac languageName: node linkType: hard @@ -6063,10 +6060,10 @@ __metadata: languageName: node linkType: hard -"@tanstack/virtual-core@npm:3.19.8": - version: 3.19.8 - resolution: "@tanstack/virtual-core@npm:3.19.8" - checksum: 10c0/eac7a1edd843d8c0f1b07343a7804ac393fb152cb046581331c1c912b7dc518f484c5bca69cae2637739f447cffc86f779b3f4ca7b227872ed7cd5dc8fe5d28b +"@tanstack/virtual-core@npm:3.19.11": + version: 3.19.11 + resolution: "@tanstack/virtual-core@npm:3.19.11" + checksum: 10c0/61558882fd09f64020104ecd94bacaa2a6ccbb0745247610ede7683d709cf8d134cc3f6d1ee2d22203cb881e531bc4a3bb92e4657c08edf923ab6d5c39a958ec languageName: node linkType: hard @@ -9976,10 +9973,10 @@ __metadata: languageName: node linkType: hard -"fake-indexeddb@npm:^6.2.6": - version: 6.2.6 - resolution: "fake-indexeddb@npm:6.2.6" - checksum: 10c0/d55b3155548f08da1c9d7552314eed30fd1880c1f7643654c8b0c1fdf80591682d9f88e7a5c481113f48b994cb09820d61eee0dd8b966ca4f4497fce0eb748de +"fake-indexeddb@npm:^6.2.8": + version: 6.2.8 + resolution: "fake-indexeddb@npm:6.2.8" + checksum: 10c0/69a85018a3a714e81ae88d9294ab54ed73f83a23dd28b926d41dabf892a939dd029207e8f2dca1238ed5ebde75f1971a7a8ab14f773d5fad396923e117b6e8fe languageName: node linkType: hard @@ -11175,17 +11172,17 @@ __metadata: languageName: node linkType: hard -"i18next-fs-backend@npm:^2.6.9": - version: 2.6.9 - resolution: "i18next-fs-backend@npm:2.6.9" - checksum: 10c0/881432a5fd1c75cd44db09968807d3d517dec2ac5312629b751f7d0974ec29f6d08018da78f69becb3b43f50d539cb43f4583dd32afcf80691ce90bd6e901b23 +"i18next-fs-backend@npm:^2.6.10": + version: 2.6.10 + resolution: "i18next-fs-backend@npm:2.6.10" + checksum: 10c0/39282b0730c8551cf7f43c0d1f52e9b3a83a30812b72fb80993d903c81a6aba11557ce26c0fc4d1fbe1ba76857e787d4c6d53cd08de1cc1d1c0d1cb9f66a8afc languageName: node linkType: hard -"i18next-http-backend@npm:^4.0.9": - version: 4.0.9 - resolution: "i18next-http-backend@npm:4.0.9" - checksum: 10c0/5092b498e7d682a473ef60b38a6bfb69843d7c570be3b213696763b84b7c6a85036d5eff3685fb54652fb8b4ca249099d63b6461a9b99573ba5f9ff4496b5566 +"i18next-http-backend@npm:^4.0.10": + version: 4.0.10 + resolution: "i18next-http-backend@npm:4.0.10" + checksum: 10c0/9bf54abbbe2daa7d6f4b3c263625b897801d9ddb2fe203c663c22dfae99e4232f8da11fd75db66732e0ad33509c74edff85d0da5d7a90fa08cd41f80cfeeb566 languageName: node linkType: hard @@ -13699,13 +13696,20 @@ __metadata: languageName: node linkType: hard -"nodemailer@npm:10.1.7, nodemailer@npm:^10.0.9": +"nodemailer@npm:10.1.7": version: 10.1.7 resolution: "nodemailer@npm:10.1.7" checksum: 10c0/1bac1f2fb7a60ffa889973cfd1e71da2bdecacd82eb263a612a587a0c06cec43a9a7452fcbd830c39c3a047ef99eb101cb5cf2c6a0a9523624c38f1ae7f01bcb languageName: node linkType: hard +"nodemailer@npm:^10.3.1": + version: 10.3.1 + resolution: "nodemailer@npm:10.3.1" + checksum: 10c0/a960ba9e7cb8f7135b828fb72bcdfd061bb914c6357578ed6613dd5303e8461710a1151210e95a92542461128e900038dd0794fc27bd74b297bd822013cfe8e8 + languageName: node + linkType: hard + "nopt@npm:^7.2.1": version: 7.2.1 resolution: "nopt@npm:7.2.1" @@ -13996,12 +14000,12 @@ __metadata: version: 0.0.0-use.local resolution: "outline@workspace:." dependencies: - "@aws-sdk/client-s3": "npm:^3.1159.0" - "@aws-sdk/cloudfront-signer": "npm:^3.1157.0" - "@aws-sdk/lib-storage": "npm:^3.1159.0" - "@aws-sdk/s3-presigned-post": "npm:^3.1159.0" - "@aws-sdk/s3-request-presigner": "npm:^3.1159.0" - "@aws-sdk/signature-v4-crt": "npm:^3.1159.0" + "@aws-sdk/client-s3": "npm:^3.1162.0" + "@aws-sdk/cloudfront-signer": "npm:^3.1161.0" + "@aws-sdk/lib-storage": "npm:^3.1162.0" + "@aws-sdk/s3-presigned-post": "npm:^3.1162.0" + "@aws-sdk/s3-request-presigner": "npm:^3.1162.0" + "@aws-sdk/signature-v4-crt": "npm:^3.1162.0" "@benrbray/prosemirror-math": "npm:^0.2.2" "@bull-board/api": "npm:^6.21.3" "@bull-board/koa": "npm:^6.21.3" @@ -14015,13 +14019,12 @@ __metadata: "@emotion/is-prop-valid": "npm:^1.4.0" "@faker-js/faker": "npm:^10.6.0" "@fast-csv/parse": "npm:^5.0.8" - "@firecrawl/pdf-inspector": "npm:^1.11.2" + "@firecrawl/pdf-inspector": "npm:^1.25.2" "@fortawesome/fontawesome-svg-core": "npm:^7.3.1" "@fortawesome/free-brands-svg-icons": "npm:^7.3.1" "@fortawesome/free-solid-svg-icons": "npm:^7.3.1" "@fortawesome/react-fontawesome": "npm:^3.5.0" "@getoutline/react-roving-tabindex": "npm:^3.2.4" - "@gitbeaker/rest": "npm:^43.8.0" "@hocuspocus/extension-redis": "npm:1.1.3" "@hocuspocus/extension-throttle": "npm:1.1.3" "@hocuspocus/provider": "npm:1.1.3" @@ -14059,9 +14062,9 @@ __metadata: "@simplewebauthn/server": "npm:^13.3.3" "@socket.io/redis-adapter": "npm:^8.3.0" "@swc/cli": "npm:^0.8.2" - "@swc/core": "npm:^1.16.20" + "@swc/core": "npm:^1.16.22" "@tanstack/react-table": "npm:^8.21.3" - "@tanstack/react-virtual": "npm:^3.14.23" + "@tanstack/react-virtual": "npm:^3.14.26" "@types/cookie": "npm:0.6.0" "@types/diff": "npm:^5.0.9" "@types/escape-html": "npm:^1.0.4" @@ -14129,7 +14132,7 @@ __metadata: emoji-regex: "npm:^10.6.0" es-toolkit: "npm:^1.53.0" express-useragent: "npm:^1.0.15" - fake-indexeddb: "npm:^6.2.6" + fake-indexeddb: "npm:^6.2.8" fast-deep-equal: "npm:^3.1.3" fast-myers-diff: "npm:^3.2.0" fetch-retry: "npm:^5.0.6" @@ -14149,8 +14152,8 @@ __metadata: https-proxy-agent: "npm:^7.0.6" husky: "npm:^9.1.7" i18next: "npm:^22.5.1" - i18next-fs-backend: "npm:^2.6.9" - i18next-http-backend: "npm:^4.0.9" + i18next-fs-backend: "npm:^2.6.10" + i18next-http-backend: "npm:^4.0.10" i18next-parser: "npm:^9.4.0" invariant: "npm:^2.2.4" ioredis: "npm:^5.11.1" @@ -14185,12 +14188,12 @@ __metadata: msw: "npm:^2.15.0" natural-sort: "npm:^1.0.0" node-fetch: "npm:2.7.0" - nodemailer: "npm:^10.0.9" + nodemailer: "npm:^10.3.1" octokit: "npm:^5.0.5" outline-icons: "npm:^4.6.0" oxfmt: "npm:0.73.0" oxlint: "npm:1.90.0" - oxlint-tsgolint: "npm:7.0.2005" + oxlint-tsgolint: "npm:7.0.2006" pako: "npm:^3.0.2" passport: "npm:^0.7.0" passport-google-oauth2: "npm:^0.2.0" @@ -14222,21 +14225,21 @@ __metadata: proxy-from-env: "npm:^1.1.0" query-string: "npm:^9.5.0" rate-limiter-flexible: "npm:^11.2.3" - react: "npm:^19.3.0" + react: "npm:^19.3.1" react-avatar-editor: "npm:^15.1.0" - react-colorful: "npm:^5.8.0" + react-colorful: "npm:^5.8.1" react-day-picker: "npm:^8.10.2" - react-dom: "npm:^19.3.0" + react-dom: "npm:^19.3.1" react-dropzone: "npm:^20.1.4" react-hook-form: "npm:^7.85.0" react-i18next: "npm:^12.3.1" - react-is: "npm:^19.3.0" + react-is: "npm:^19.3.1" react-merge-refs: "npm:^3.0.2" react-refresh: "npm:^0.19.0" react-remove-scroll: "npm:^2.7.2" react-router-dom: "npm:^5.3.4" react-use-measure: "npm:^2.1.7" - react-window: "npm:^2.3.4" + react-window: "npm:^2.5.3" react-zoom-pan-pinch: "npm:^3.7.0" reflect-metadata: "npm:^0.2.2" refractor: "npm:^5.0.0" @@ -14451,16 +14454,16 @@ __metadata: languageName: node linkType: hard -"oxlint-tsgolint@npm:7.0.2005": - version: 7.0.2005 - resolution: "oxlint-tsgolint@npm:7.0.2005" +"oxlint-tsgolint@npm:7.0.2006": + version: 7.0.2006 + resolution: "oxlint-tsgolint@npm:7.0.2006" dependencies: - "@oxlint-tsgolint/darwin-arm64": "npm:7.0.2005" - "@oxlint-tsgolint/darwin-x64": "npm:7.0.2005" - "@oxlint-tsgolint/linux-arm64": "npm:7.0.2005" - "@oxlint-tsgolint/linux-x64": "npm:7.0.2005" - "@oxlint-tsgolint/win32-arm64": "npm:7.0.2005" - "@oxlint-tsgolint/win32-x64": "npm:7.0.2005" + "@oxlint-tsgolint/darwin-arm64": "npm:7.0.2006" + "@oxlint-tsgolint/darwin-x64": "npm:7.0.2006" + "@oxlint-tsgolint/linux-arm64": "npm:7.0.2006" + "@oxlint-tsgolint/linux-x64": "npm:7.0.2006" + "@oxlint-tsgolint/win32-arm64": "npm:7.0.2006" + "@oxlint-tsgolint/win32-x64": "npm:7.0.2006" dependenciesMeta: "@oxlint-tsgolint/darwin-arm64": optional: true @@ -14476,7 +14479,7 @@ __metadata: optional: true bin: tsgolint: ./bin/tsgolint.js - checksum: 10c0/a4e3e61bf3b2307f0ca5e52f102507d9e3e8199a85d7442c47a4492a9e47152766efd455a65a15455d731827df2279089cbeb09347ab9109ac96b65d873582ce + checksum: 10c0/ee532b7ca42bc373b019eaa79bf899e925b86ad74d3fe4368528b950a397991e0ac78562d1a01b6fe5f6083d12588c18a69b9a0410ae240bf8cddf8e2e6c117f languageName: node linkType: hard @@ -15073,13 +15076,6 @@ __metadata: languageName: node linkType: hard -"picomatch-browser@npm:^2.2.6": - version: 2.2.6 - resolution: "picomatch-browser@npm:2.2.6" - checksum: 10c0/bf97d3e6f77dee776fe4cc7728037931b681c56e1fd964023ed797de341a0e32dcc1e90a5552cc74923cb97566464870a37be188b09e3db7279f9e9a9b12d977 - languageName: node - linkType: hard - "picomatch@npm:^2.0.4, picomatch@npm:^2.3.1": version: 2.3.2 resolution: "picomatch@npm:2.3.2" @@ -15548,7 +15544,7 @@ __metadata: languageName: node linkType: hard -"qs@npm:^6.14.0, qs@npm:^6.5.2": +"qs@npm:^6.5.2": version: 6.16.1 resolution: "qs@npm:6.16.1" dependencies: @@ -15594,13 +15590,6 @@ __metadata: languageName: node linkType: hard -"rate-limiter-flexible@npm:^8.0.1": - version: 8.3.0 - resolution: "rate-limiter-flexible@npm:8.3.0" - checksum: 10c0/30b0aad1128b5a5cff44b289c6083be6ee782389015c1a93f854b1f07a682e539fcd48a3b983c828271b8f8ade3c930055edc2cf376915a3300a0d572d911244 - languageName: node - linkType: hard - "raw-body@npm:^2.3.3": version: 2.5.3 resolution: "raw-body@npm:2.5.3" @@ -15623,13 +15612,13 @@ __metadata: languageName: node linkType: hard -"react-colorful@npm:^5.8.0": - version: 5.8.0 - resolution: "react-colorful@npm:5.8.0" +"react-colorful@npm:^5.8.1": + version: 5.8.1 + resolution: "react-colorful@npm:5.8.1" peerDependencies: react: ">=16.8.0" react-dom: ">=16.8.0" - checksum: 10c0/852ee03ad7751d748e2232ad3bd089de6620de6a06582ee26177377802104b259bf5630d205e875dba4406d601d0e00ddd0912bb0d763da2a053b51c7c57b3a4 + checksum: 10c0/cd1705cdb218f9f43d376f36306968aa304e0d8018dcff198c798c2c56bf4873ea918580a57a0cceaab62ba7621663234ffad35f3d4ebd9198e65f926f9ec8fe languageName: node linkType: hard @@ -15643,14 +15632,14 @@ __metadata: languageName: node linkType: hard -"react-dom@npm:^19.3.0": - version: 19.3.0 - resolution: "react-dom@npm:19.3.0" +"react-dom@npm:^19.3.1": + version: 19.3.1 + resolution: "react-dom@npm:19.3.1" dependencies: scheduler: "npm:^0.28.0" peerDependencies: - react: ^19.3.0 - checksum: 10c0/c513044b724dd6bfe9500a9682d60973e7f8a48cffba00b6b16d3e910e27dcc459bf71bf0a5c33d7d62a3843ca30de1bd1e2098058aa4ed71f618a24b6061da5 + react: ^19.3.1 + checksum: 10c0/382700916313b2ebc46acee80642f300bb8601eac6a9e7fefade5b8b30e66b05bf3aaa56a3c964589fcd578d27b486e847470c2697d879264e766661ff49fac7 languageName: node linkType: hard @@ -15704,10 +15693,10 @@ __metadata: languageName: node linkType: hard -"react-is@npm:^19.3.0": - version: 19.3.0 - resolution: "react-is@npm:19.3.0" - checksum: 10c0/99b16fc1009222ec0bbe05286566c865908430778ea6ba90dd418c7a11594c6cbb8db58432735b9203e3c6463e3eef5a399df1317ee2d75fd96b3a88cfaa662e +"react-is@npm:^19.3.1": + version: 19.3.1 + resolution: "react-is@npm:19.3.1" + checksum: 10c0/428e02d986d56f1859c57756084489f6d2900fd686905003c405b32f1168738b78772bfa4bb6c706f5ac821199171522c28bf6434281f524f901459390a19606 languageName: node linkType: hard @@ -15830,13 +15819,17 @@ __metadata: languageName: node linkType: hard -"react-window@npm:^2.3.4": - version: 2.3.4 - resolution: "react-window@npm:2.3.4" +"react-window@npm:^2.5.3": + version: 2.5.3 + resolution: "react-window@npm:2.5.3" peerDependencies: + "@types/react": ^18.2.6 || ^19.0.0 react: ^18.0.0 || ^19.0.0 react-dom: ^18.0.0 || ^19.0.0 - checksum: 10c0/6990fe8e2933c621407a5eaa5be928c1c414b19184c6f5054e5f2be510aa5f54a44d9addf76f64381919cde0839e788163a6dec3ef67824eb8ec0c5859c4fb60 + peerDependenciesMeta: + "@types/react": + optional: true + checksum: 10c0/f491036d005ba570b1abb904179d27bfd4b8faac59514f278f0552f7eb61404e96f2c41173a8e52f0b631d46f67984dfe666e8da1c07904cc86f05d3dbc5530e languageName: node linkType: hard @@ -15850,10 +15843,10 @@ __metadata: languageName: node linkType: hard -"react@npm:^19.3.0": - version: 19.3.0 - resolution: "react@npm:19.3.0" - checksum: 10c0/dd3099c3c43a7122bc01223bb26b0f8d5ba13cca569af6fb94a005fb54fa73223c9cb203bb226d40cfd49a82cbeef2e36ce84062a3a6d5b9fe8f4437694c7b52 +"react@npm:^19.3.1": + version: 19.3.1 + resolution: "react@npm:19.3.1" + checksum: 10c0/f0ed036d1223562c09c8347858ca712733ea6e27a30db709ee9c3f3f176d3e9e767afce735d59956addf3d030102e256bba82dea635fc1bdb0e01107e98fef10 languageName: node linkType: hard @@ -19404,13 +19397,6 @@ __metadata: languageName: node linkType: hard -"xcase@npm:^2.0.1": - version: 2.0.1 - resolution: "xcase@npm:2.0.1" - checksum: 10c0/11b8ae8f6734b29d442a5acf1dff3a896cabbf49e7ffa01472ff6fa687a6e6f6a25889d06c10a41950e7a90fe89239fa78d95eab0c5eb654ca75f0ccd71ba8ed - languageName: node - linkType: hard - "xml-name-validator@npm:^5.0.0": version: 5.0.0 resolution: "xml-name-validator@npm:5.0.0"