chore(ui): standardize controls and component sizing

This commit is contained in:
johnnyjoygh
2026-11-14 15:00:04 +08:00
parent d0c6e2a7af
commit 063fafb818
79 changed files with 635 additions and 781 deletions
+2
View File
@@ -131,6 +131,8 @@ Black-box service tests live in `server/api/test/`, unit tests next to the code.
components). Controls come from the package; build a part it lacks on Base UI as its `custom-components.md` describes.
- Use a package component when one fits (`Button`, `Link`, `Spinner`, `Badge`). Its class functions (`buttonClasses()`,
`menuClasses()`, `badgeClasses()`) are for elements it can't render, such as a router link or a Base UI trigger.
- Action menus use `md`, including custom rows styled with `menuClasses()`. Compact three-dot trigger buttons keep `sm`.
- Field text follows its component size on every device; do not add touch-specific font sizing.
- Style with Tailwind CSS v4 and the package's `mu-` utilities (`bg-mu-surface`, `text-mu-text-secondary`, `rounded-mu-md`),
text with its type classes (`mu-caption`, `mu-body`, `mu-label`, `mu-title`), and `cn()` for class merging. No Tailwind
text sizes or old color names (`muted-foreground`, `destructive`, `popover`). The exceptions are the brand wordmark and
+1 -1
View File
@@ -28,7 +28,7 @@
"@tanstack/react-query-devtools": "^5.100.9",
"@usememos/canvas": "26.11.2",
"@usememos/editor": "26.11.3",
"@usememos/ui": "26.11.18",
"@usememos/ui": "26.11.20",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"copy-to-clipboard": "^4.0.2",
+5 -5
View File
@@ -45,8 +45,8 @@ importers:
specifier: 26.11.3
version: 26.11.3(react-dom@19.2.6(react@19.2.6))(react@19.2.6)
'@usememos/ui':
specifier: 26.11.18
version: 26.11.18(@base-ui/react@1.9.0(@types/react@19.2.14)(react-dom@19.2.6(react@19.2.6))(react@19.2.6))(lucide-react@1.34.0(react@19.2.6))(react-dom@19.2.6(react@19.2.6))(react@19.2.6)
specifier: 26.11.20
version: 26.11.20(@base-ui/react@1.9.0(@types/react@19.2.14)(react-dom@19.2.6(react@19.2.6))(react@19.2.6))(lucide-react@1.34.0(react@19.2.6))(react-dom@19.2.6(react@19.2.6))(react@19.2.6)
class-variance-authority:
specifier: ^0.7.1
version: 0.7.1
@@ -973,8 +973,8 @@ packages:
react-dom:
optional: true
'@usememos/ui@26.11.18':
resolution: {integrity: sha512-+KaFiHeKSDhyDBxyhHysbfroAMOBq+fsOhbbq8EZIO0r68+pb2XKAxGnn+/6ZbXkb0zcvomf0gd01MGxX2U1+Q==}
'@usememos/ui@26.11.20':
resolution: {integrity: sha512-jm2Il+Xa1/o381n2JJo/X3nozPunKMXsfWudnYNkqWfKSrOMitJNPcvgL6S8+/3+DM8beKssLdRz17o7CdVNqw==}
peerDependencies:
'@base-ui/react': 1.9.0
lucide-react: '>=1.0.0'
@@ -2392,7 +2392,7 @@ snapshots:
react: 19.2.6
react-dom: 19.2.6(react@19.2.6)
'@usememos/ui@26.11.18(@base-ui/react@1.9.0(@types/react@19.2.14)(react-dom@19.2.6(react@19.2.6))(react@19.2.6))(lucide-react@1.34.0(react@19.2.6))(react-dom@19.2.6(react@19.2.6))(react@19.2.6)':
'@usememos/ui@26.11.20(@base-ui/react@1.9.0(@types/react@19.2.14)(react-dom@19.2.6(react@19.2.6))(react@19.2.6))(lucide-react@1.34.0(react@19.2.6))(react-dom@19.2.6(react@19.2.6))(react@19.2.6)':
dependencies:
'@base-ui/react': 1.9.0(@types/react@19.2.14)(react-dom@19.2.6(react@19.2.6))(react@19.2.6)
lucide-react: 1.34.0(react@19.2.6)
@@ -1,4 +1,4 @@
import { Button, Dialog, Textarea, Toggle, ToggleGroup, Tooltip } from "@usememos/ui";
import { Button, Dialog, Input, Textarea, Toggle, ToggleGroup, Tooltip } from "@usememos/ui";
import { CornerDownLeftIcon, SearchIcon } from "lucide-react";
import { type ChangeEvent, type FormEvent, type KeyboardEvent, useEffect, useId, useState } from "react";
import { useLocation, useNavigate } from "react-router-dom";
@@ -205,22 +205,23 @@ const QuickFindDialog = () => {
</div>
</div>
) : (
<div className="flex h-[52px] shrink-0 items-center gap-2.5 px-4">
<SearchIcon className="mu-icon size-[17px] shrink-0 text-mu-text-secondary" />
{/* The dialog's own field, focused whenever it is open: the caret marks focus, as in a
command palette, so it draws no outline around the borderless header. */}
<input
<div className="px-4 py-3">
<Input
{...fieldProps}
className="h-10 min-w-0 flex-1 bg-transparent mu-body outline-none placeholder:text-mu-text-secondary"
prefix={<SearchIcon />}
placeholder={`${t("common.search")} ${compactScopeLabel}`}
aria-label={`${t("common.search")} ${scopeLabel}`}
suffix={
<Tooltip.Root>
<Tooltip.Trigger
render={
<Button type="submit" variant="ghost" size="sm" aria-label={t("common.search")} icon={<CornerDownLeftIcon />} />
}
/>
<Tooltip.Popup>{t("common.search")}</Tooltip.Popup>
</Tooltip.Root>
}
/>
<Tooltip.Root>
<Tooltip.Trigger
render={<Button type="submit" variant="ghost" size="sm" aria-label={t("common.search")} icon={<CornerDownLeftIcon />} />}
/>
<Tooltip.Popup>{t("common.search")}</Tooltip.Popup>
</Tooltip.Root>
</div>
)}
</form>
@@ -96,7 +96,7 @@ const TagsSection = ({ tagCount, onSelect, scope }: Props) => {
<SidebarSection
label={t("common.tags")}
action={
<Menu.Root modal={false} size="sm">
<Menu.Root modal={false} size="md">
<Tooltip.Root>
<Tooltip.Trigger
render={
@@ -106,7 +106,7 @@ const ViewsSection = ({ manageActive = false }: { manageActive?: boolean }) => {
</span>
<span className="min-w-0 flex-1 truncate">{memoView.title}</span>
</button>
<Menu.Root modal={false} size="sm">
<Menu.Root modal={false} size="md">
<Menu.Trigger
nativeButton={false}
render={
+19 -20
View File
@@ -1,4 +1,4 @@
import { Button, Dialog, Field, Fieldset, Input, Radio, RadioGroup, Textarea } from "@usememos/ui";
import { Button, Dialog, Field, Input, Select, Textarea } from "@usememos/ui";
import copy from "copy-to-clipboard";
import React, { useEffect, useState } from "react";
import { userServiceClient } from "@/connect";
@@ -62,12 +62,6 @@ function CreateAccessTokenDialog({ open, onOpenChange, onSuccess }: Props) {
});
};
const handleRoleInputChange = (value: string) => {
setPartialState({
expiration: Number(value),
});
};
const handleSaveBtnClick = async () => {
if (!state.description) {
fieldErrors.set("description", t("message.description-is-required"));
@@ -139,20 +133,25 @@ function CreateAccessTokenDialog({ open, onOpenChange, onSuccess }: Props) {
{fieldErrors.errors.description && <Field.Error match>{fieldErrors.errors.description}</Field.Error>}
</Field.Root>
<Field.Root>
<Fieldset.Root
render={<RadioGroup value={state.expiration.toString()} onValueChange={handleRoleInputChange} orientation="horizontal" />}
<Field.Label>
{t("setting.access-token.create-dialog.expiration")} <span className="text-mu-danger">*</span>
</Field.Label>
<Select.Root
items={expirationOptions}
value={state.expiration}
onValueChange={(expiration) => expiration !== null && setPartialState({ expiration })}
>
<Fieldset.Legend>
{t("setting.access-token.create-dialog.expiration")} <span className="text-mu-danger">*</span>
</Fieldset.Legend>
{expirationOptions.map((option) => (
<Field.Item key={option.value}>
<Field.Label>
<Radio value={option.value.toString()} /> {option.label}
</Field.Label>
</Field.Item>
))}
</Fieldset.Root>
<Select.Trigger>
<Select.Value />
</Select.Trigger>
<Select.Popup>
{expirationOptions.map((option) => (
<Select.Item key={option.value} value={option.value}>
{option.label}
</Select.Item>
))}
</Select.Popup>
</Select.Root>
</Field.Root>
</div>
)}
+22 -22
View File
@@ -1,6 +1,6 @@
import { create } from "@bufbuild/protobuf";
import { FieldMaskSchema } from "@bufbuild/protobuf/wkt";
import { Button, Dialog, Field, Fieldset, Input, Radio, RadioGroup } from "@usememos/ui";
import { Button, Dialog, Field, Input, Select } from "@usememos/ui";
import { useEffect, useState } from "react";
import { userServiceClient } from "@/connect";
import { isFieldManaged, useManagedResource } from "@/hooks/useConfigurationQueries";
@@ -29,6 +29,10 @@ function CreateUserDialog({ open, onOpenChange, user: initialUser, onSuccess }:
const isCreating = !initialUser;
// The password is write-only, so configuration never locks it.
const managed = useManagedResource(initialUser?.name ?? "");
const roleOptions = [
{ value: User_Role.USER, label: t("setting.member.user") },
{ value: User_Role.ADMIN, label: t("setting.member.admin") },
];
useEffect(() => {
if (initialUser) {
@@ -127,28 +131,24 @@ function CreateUserDialog({ open, onOpenChange, user: initialUser, onSuccess }:
{fieldErrors.errors.password && <Field.Error match>{fieldErrors.errors.password}</Field.Error>}
</Field.Root>
<Field.Root>
<Fieldset.Root
render={
<RadioGroup
disabled={isFieldManaged(managed, "role")}
value={String(user.role)}
onValueChange={(value) => setPartialUser({ role: Number(value) as User_Role })}
orientation="horizontal"
/>
}
<Field.Label>{t("common.role")}</Field.Label>
<Select.Root
items={roleOptions}
disabled={isFieldManaged(managed, "role")}
value={user.role}
onValueChange={(role) => role !== null && setPartialUser({ role })}
>
<Fieldset.Legend>{t("common.role")}</Fieldset.Legend>
<Field.Item>
<Field.Label>
<Radio value={String(User_Role.USER)} /> {t("setting.member.user")}
</Field.Label>
</Field.Item>
<Field.Item>
<Field.Label>
<Radio value={String(User_Role.ADMIN)} /> {t("setting.member.admin")}
</Field.Label>
</Field.Item>
</Fieldset.Root>
<Select.Trigger>
<Select.Value />
</Select.Trigger>
<Select.Popup>
{roleOptions.map((option) => (
<Select.Item key={option.value} value={option.value}>
{option.label}
</Select.Item>
))}
</Select.Popup>
</Select.Root>
</Field.Root>
</div>
<Dialog.Footer>
+1 -1
View File
@@ -205,7 +205,7 @@ function CreateWebhookDialog({ open, onOpenChange, webhookName, onSuccess }: Pro
<Button
type="button"
variant="neutral"
size="sm"
size="md"
onClick={handleRevealSecret}
disabled={secretState.isLoading}
icon={<EyeIcon />}
@@ -32,7 +32,7 @@ import type { MemoActionMenuProps } from "./types";
* only Restore and Delete, and a viewer only Open and Copy.
*/
/** The open link is a real link, so its row takes the package's menu row classes. */
const MENU_ROW_CLASSES = menuClasses({ size: "sm" });
const MENU_ROW_CLASSES = menuClasses({ size: "md" });
const MemoActionMenu = (props: MemoActionMenuProps) => {
const { memo, parentPage, readonly } = props;
@@ -163,7 +163,7 @@ const MemoActionMenu = (props: MemoActionMenuProps) => {
};
return (
<Menu.Root modal={false} size="sm">
<Menu.Root modal={false} size="md">
<Tooltip.Root>
<Tooltip.Trigger
render={<Menu.Trigger render={<Button variant="ghost" size="sm" aria-label={t("common.more")} icon={<MoreVerticalIcon />} />} />}
@@ -59,7 +59,7 @@ function MemoDisplaySettingsContent() {
</ToggleGroup>
{/* Selects, not segmented rows: the two labels of a pair don't fit side by side in every language. */}
<Field.Root orientation="horizontal" size="sm">
<Field.Root orientation="horizontal" size="md">
<Field.Label>{t("memo.order-by")}</Field.Label>
<Select.Root
items={timeBasisOptions}
@@ -75,7 +75,7 @@ function MemoDisplaySettingsContent() {
</Select.Popup>
</Select.Root>
</Field.Root>
<Field.Root orientation="horizontal" size="sm">
<Field.Root orientation="horizontal" size="md">
<Field.Label>{t("memo.direction")}</Field.Label>
<Select.Root
items={sortOrderOptions}
@@ -94,7 +94,7 @@ function MemoDisplaySettingsContent() {
<Separator />
<Field.Root orientation="horizontal" size="sm">
<Field.Root orientation="horizontal" size="md">
<Field.Label>{t("memo.compact-mode")}</Field.Label>
{/* Wraps inside the width the controls set, so the hint never widens the popup. */}
{compactLocked && <Field.Description className="w-0 min-w-full">{t("memo.grid-compact-hint")}</Field.Description>}
@@ -42,7 +42,7 @@ const AudienceMenu = ({ value, onChange, space, onSpaceChange, disabled }: Audie
];
return (
<Menu.Root modal={false} size="sm">
<Menu.Root modal={false} size="md">
{/* The trigger starts with an icon (a space mark or the lock) inside a span, so it takes the
package's icon-side padding itself; its gaps are the md icon gap, like a Button's. */}
<Menu.Trigger
@@ -105,7 +105,7 @@ export const EditorToolbar: FC<EditorToolbarProps> = ({
return (
// md controls with mu-compact: 14px labels and 16px icons at 28px, the sidebar's height.
// The menus they open are portaled outside, so they stay sm.
// The portaled menus use the regular md row.
<div className="mu-compact flex w-full min-w-0 flex-row items-center justify-between gap-1">
<div className="flex min-w-0 flex-1 flex-row items-center justify-start gap-1">
<InsertMenu
@@ -146,7 +146,7 @@ const InsertMenu = (props: InsertMenuProps) => {
return (
<>
<Menu.Root modal={false} size="sm">
<Menu.Root modal={false} size="md">
<Tooltip.Root>
<Tooltip.Trigger
render={
@@ -1,5 +1,5 @@
import { Popover } from "@usememos/ui";
import { type FC, useId, useRef, useState } from "react";
import { Field, Input, Popover } from "@usememos/ui";
import { type FC, useRef, useState } from "react";
import { MEMO_TIME_CONTROL_CLASSES } from "@/components/MemoView/constants";
import i18n from "@/i18n";
import { useTranslate } from "@/utils/i18n";
@@ -27,7 +27,6 @@ const TimestampInput: FC<{
date: Date | undefined;
onChange: (date: Date) => void;
}> = ({ label, date, onChange }) => {
const id = useId();
const initialValue = useRef(date ? formatDate(date) : "");
const [value, setValue] = useState(initialValue.current);
const [invalid, setInvalid] = useState(false);
@@ -44,23 +43,21 @@ const TimestampInput: FC<{
};
return (
<div className="space-y-1">
<label htmlFor={id} className="mu-label-sm text-mu-text-secondary">
<Field.Root invalid={invalid}>
<Field.Label>
{label}
{value !== initialValue.current && <span className="text-mu-primary ml-0.5">*</span>}
</label>
<input
id={id}
</Field.Label>
<Input
type="text"
className="block w-full rounded-mu-md border border-mu-line bg-mu-canvas px-2 py-1 mu-body font-mono data-[invalid=true]:border-mu-danger"
data-invalid={invalid}
className="font-mono"
aria-invalid={invalid}
placeholder={DATETIME_FORMAT}
value={value}
onChange={(e) => handleChange(e.target.value)}
onBlur={() => setInvalid(!parseDate(value))}
/>
</div>
</Field.Root>
);
};
@@ -224,7 +224,7 @@ const AttachmentTile: FC<{
))}
</div>
<div className="hidden pointer-coarse:flex">
<Menu.Root modal={false} size="sm">
<Menu.Root modal={false} size="md">
<Menu.Trigger
render={<Button variant="neutral" size="sm" icon={<EllipsisIcon />} aria-label={t("common.more")} onClick={stop} />}
/>
@@ -66,7 +66,7 @@ const ReactionSelector = ({ memo, trigger }: Props) => {
aria-label={t("setting.memo.add-reaction")}
className="mu-compact w-max p-[calc(var(--mu-space-2)-1px)] transition-none"
>
<div className="grid max-h-[var(--mu-list-height)] grid-flow-col gap-0.5 overflow-y-auto max-sm:grid-flow-row max-sm:grid-cols-[repeat(4,max-content)] [@media(pointer:coarse)]:grid-flow-row [@media(pointer:coarse)]:grid-cols-[repeat(4,max-content)]">
<div className="grid max-h-[var(--mu-list-height)] grid-flow-col gap-0.5 overflow-y-auto max-sm:grid-flow-row max-sm:grid-cols-[repeat(4,max-content)]">
{memoRelatedSetting.reactions.map((reactionType) => (
<Toggle
key={reactionType}
@@ -84,15 +84,7 @@ const MemoHeader: React.FC<MemoHeaderProps> = ({ timeDisplay = "relative", showC
{isNew && <NewBadge />}
</div>
<div
data-slot="memo-header-actions"
// The same 4px gaps on touch screens, so the actions read as one group. Each square's hit
// area keeps its 44px height but narrows to the 28px pitch, so neighbors meet halfway
// instead of a later square's area covering the edge of the one before it. The selector only
// resizes the package's touch-screen pseudo-element; Tailwind's `after:` would also create
// one on desktop, where it sits beside the icon and pushes it off center.
className="flex shrink-0 select-none flex-row items-center justify-end gap-1 [&_.mu-hit::after]:w-7"
>
<div data-slot="memo-header-actions" className="flex shrink-0 select-none flex-row items-center justify-end gap-1">
{currentUser && !isArchived && (
// On desktop the picker's trigger shows only while the card is engaged or the picker is open.
<span className="flex sm:hidden sm:group-hover:flex sm:group-focus-within:flex sm:has-[[data-popup-open]]:flex">
@@ -1,4 +1,4 @@
import { Badge, Button } from "@usememos/ui";
import { Badge, Button, List } from "@usememos/ui";
import { useEffect, useMemo, useState } from "react";
import InfoChip from "@/components/Settings/InfoChip";
import { getIdentityProviderTypeLabel, getSSOProviderUid } from "@/components/Settings/sso-display";
@@ -14,9 +14,9 @@ import { useTranslate } from "@/utils/i18n";
import { storeOAuthState } from "@/utils/oauth";
import ManagedByConfigurationChip from "./ManagedByConfigurationChip";
import SettingGroup from "./SettingGroup";
import SettingTable from "./SettingTable";
import { SettingList } from "./SettingList";
interface LinkedIdentityRow extends Record<string, unknown> {
interface LinkedIdentityRow {
name: string;
providerUid: string;
title: string;
@@ -144,29 +144,20 @@ const LinkedIdentitySection = () => {
return (
<SettingGroup showSeparator title={t("setting.sso.accounts-title")} description={t("setting.sso.accounts-description")}>
<SettingTable<LinkedIdentityRow>
variant="info-flow"
columns={[
{
key: "title",
header: t("setting.sso.provider"),
render: (_, row: LinkedIdentityRow) => (
<div className="flex min-w-[16rem] flex-col gap-2">
{rows.length === 0 ? (
<p className="py-6 text-center mu-body text-mu-text-secondary">{t("setting.sso.no-sso-found")}</p>
) : (
<SettingList>
{rows.map((row) => (
<List.Item key={row.name} className="flex items-start gap-3">
<div className="min-w-0 flex-1 space-y-2">
<div className="flex flex-wrap items-center gap-2">
<span className="mu-label text-mu-text">{row.title}</span>
<span className="min-w-0 mu-label break-words text-mu-text">{row.title}</span>
<Badge>{row.typeLabel}</Badge>
</div>
<div className="flex flex-wrap items-center gap-2">
<InfoChip label={t("setting.sso.provider-uid")} value={row.providerUid} />
</div>
</div>
),
},
{
key: "externalUid",
header: t("setting.sso.account"),
render: (_, row: LinkedIdentityRow) => (
<div className="flex min-w-[22rem] flex-col gap-2">
<div className="flex flex-wrap items-center gap-2">
<Badge tone={row.isLinked ? "neutral" : "outline"}>
{row.isLinked ? t("setting.sso.linked") : t("setting.sso.not-linked")}
@@ -180,32 +171,24 @@ const LinkedIdentitySection = () => {
{row.isLinked ? t("setting.sso.extern-uid-description") : t("setting.sso.not-linked-description")}
</p>
</div>
),
},
{
key: "actions",
header: "",
className: "w-px",
alignEnd: true,
render: (_, row: LinkedIdentityRow) =>
row.linkedIdentity ? (
// A link the configuration declares is unlinked in its file, not here.
findManagedResource(configurationStatus, row.linkedIdentity.name) ? null : (
<Button variant="neutral" onClick={() => handleUnlinkIdentityProvider(row)}>
{t("common.unlink")}
<div className="shrink-0">
{row.linkedIdentity ? (
// A link the configuration declares is unlinked in its file, not here.
findManagedResource(configurationStatus, row.linkedIdentity.name) ? null : (
<Button variant="neutral" onClick={() => handleUnlinkIdentityProvider(row)}>
{t("common.unlink")}
</Button>
)
) : (
<Button variant="neutral" onClick={() => handleLinkIdentityProvider(row.identityProvider)}>
{t("common.link")}
</Button>
)
) : (
<Button variant="neutral" onClick={() => handleLinkIdentityProvider(row.identityProvider)}>
{t("common.link")}
</Button>
),
},
]}
data={rows}
emptyMessage={t("setting.sso.no-sso-found")}
getRowKey={(row) => row.name}
/>
)}
</div>
</List.Item>
))}
</SettingList>
)}
</SettingGroup>
);
};
+78 -87
View File
@@ -1,6 +1,6 @@
import { create } from "@bufbuild/protobuf";
import { FieldMaskSchema } from "@bufbuild/protobuf/wkt";
import { Badge, Button, Menu, Tooltip } from "@usememos/ui";
import { Badge, Button, List, Menu, Tooltip } from "@usememos/ui";
import { sortBy } from "lodash-es";
import { MoreVerticalIcon, PlusIcon } from "lucide-react";
import { useMemo, useState } from "react";
@@ -19,8 +19,8 @@ import { User, User_Role } from "@/types/proto/api/user_service_pb";
import { useTranslate } from "@/utils/i18n";
import CreateUserDialog from "../CreateUserDialog";
import ManagedByConfigurationChip from "./ManagedByConfigurationChip";
import { SettingList } from "./SettingList";
import SettingSection from "./SettingSection";
import SettingTable from "./SettingTable";
import { useExportMemos } from "./useExportMemos";
const MemberSection = () => {
@@ -117,95 +117,86 @@ const MemberSection = () => {
</Button>
}
>
<SettingTable
variant="info-flow"
columns={[
{
key: "member",
header: t("setting.member.member-column"),
render: (_, user: User) => (
<div className="flex min-w-[18rem] items-start gap-3">
<UserAvatar className="h-10 w-10 shrink-0" avatarUrl={user.avatarUrl} name={user.displayName || user.username} />
<div className="flex min-w-0 flex-1 flex-col">
<div className="flex flex-wrap items-center gap-x-2 gap-y-1">
<span className={user.displayName ? "mu-label text-mu-text" : "mu-label text-mu-text-secondary italic"}>
{user.displayName || t("common.empty-placeholder")}
</span>
{currentUser?.name === user.name ? (
<span className="mu-caption text-mu-text-secondary">{t("common.yourself")}</span>
) : null}
{sortedUsers.length === 0 ? (
<p className="py-6 text-center mu-body text-mu-text-secondary">{t("setting.member.no-members-found")}</p>
) : (
<SettingList aria-label={t("setting.member.list-title")}>
{sortedUsers.map((user) => (
<List.Item key={user.name} className="flex items-start gap-3">
<div className="min-w-0 flex-1 space-y-2">
<div className="flex min-w-0 items-start gap-3">
<UserAvatar className="h-10 w-10 shrink-0" avatarUrl={user.avatarUrl} name={user.displayName || user.username} />
<div className="flex min-w-0 flex-1 flex-col">
<div className="flex flex-wrap items-center gap-x-2 gap-y-1">
<span
className={
user.displayName ? "min-w-0 mu-label break-words text-mu-text" : "mu-label text-mu-text-secondary italic"
}
>
{user.displayName || t("common.empty-placeholder")}
</span>
{currentUser?.name === user.name ? (
<span className="mu-caption text-mu-text-secondary">{t("common.yourself")}</span>
) : null}
</div>
<span className="truncate mu-caption text-mu-text-secondary">@{user.username}</span>
</div>
<span className="truncate mu-caption text-mu-text-secondary">@{user.username}</span>
</div>
<div className="flex min-w-0 flex-col gap-2">
<div className="flex flex-wrap items-center gap-2">
<Badge>{stringifyUserRole(user.role)}</Badge>
<Badge tone={user.state === State.ARCHIVED ? "outline" : "neutral"}>
{user.state === State.ARCHIVED ? t("setting.member.archived") : t("setting.member.active")}
</Badge>
</div>
{user.email || findManagedResource(configurationStatus, user.name) ? (
<div className="flex flex-wrap gap-2">
{user.email ? <InfoChip label={t("common.email")} value={user.email} tooltip={user.email} /> : null}
<ManagedByConfigurationChip resource={findManagedResource(configurationStatus, user.name)} />
</div>
) : null}
</div>
</div>
),
},
{
key: "summary",
header: t("setting.member.summary-column"),
render: (_, user: User) => (
<div className="flex min-w-[18rem] flex-col gap-2">
<div className="flex flex-wrap items-center gap-2">
<Badge>{stringifyUserRole(user.role)}</Badge>
<Badge tone={user.state === State.ARCHIVED ? "outline" : "neutral"}>
{user.state === State.ARCHIVED ? t("setting.member.archived") : t("setting.member.active")}
</Badge>
{currentUser?.name === user.name ? null : (
<div className="shrink-0">
<Menu.Root modal={false}>
<Tooltip.Root>
<Tooltip.Trigger
render={
<Menu.Trigger
render={
<Button variant="ghost" aria-label={`${t("common.more")}: ${user.username}`} icon={<MoreVerticalIcon />} />
}
/>
}
/>
<Tooltip.Popup>{t("common.more")}</Tooltip.Popup>
</Tooltip.Root>
<Menu.Popup align="end">
<Menu.Item onClick={() => handleEditUser(user)}>{t("common.update")}</Menu.Item>
<Menu.Item disabled={exporting} onClick={() => exportMemos(user.username)}>
{t("setting.member.export-memos")}
</Menu.Item>
{user.state === State.NORMAL ? (
<Menu.Item onClick={() => handleArchiveUserClick(user)}>{t("setting.member.archive-member")}</Menu.Item>
) : (
<>
<Menu.Item onClick={() => handleRestoreUserClick(user)}>{t("common.restore")}</Menu.Item>
{findManagedResource(configurationStatus, user.name) ? null : (
<Menu.Item onClick={() => handleDeleteUserClick(user)} danger>
{t("setting.member.delete-member")}
</Menu.Item>
)}
</>
)}
</Menu.Popup>
</Menu.Root>
</div>
{user.email || findManagedResource(configurationStatus, user.name) ? (
<div className="flex flex-wrap gap-2">
{user.email ? <InfoChip label={t("common.email")} value={user.email} tooltip={user.email} /> : null}
<ManagedByConfigurationChip resource={findManagedResource(configurationStatus, user.name)} />
</div>
) : null}
</div>
),
},
{
key: "actions",
header: "",
className: "w-px",
alignEnd: true,
render: (_, user: User) =>
currentUser?.name === user.name ? null : (
<Menu.Root modal={false}>
<Tooltip.Root>
<Tooltip.Trigger
render={
<Menu.Trigger
render={
<Button variant="ghost" aria-label={`${t("common.more")}: ${user.username}`} icon={<MoreVerticalIcon />} />
}
/>
}
/>
<Tooltip.Popup>{t("common.more")}</Tooltip.Popup>
</Tooltip.Root>
<Menu.Popup align="end">
<Menu.Item onClick={() => handleEditUser(user)}>{t("common.update")}</Menu.Item>
<Menu.Item disabled={exporting} onClick={() => exportMemos(user.username)}>
{t("setting.member.export-memos")}
</Menu.Item>
{user.state === State.NORMAL ? (
<Menu.Item onClick={() => handleArchiveUserClick(user)}>{t("setting.member.archive-member")}</Menu.Item>
) : (
<>
<Menu.Item onClick={() => handleRestoreUserClick(user)}>{t("common.restore")}</Menu.Item>
{findManagedResource(configurationStatus, user.name) ? null : (
<Menu.Item onClick={() => handleDeleteUserClick(user)} danger>
{t("setting.member.delete-member")}
</Menu.Item>
)}
</>
)}
</Menu.Popup>
</Menu.Root>
),
},
]}
data={sortedUsers}
emptyMessage={t("setting.member.no-members-found")}
getRowKey={(user) => user.name}
/>
)}
</List.Item>
))}
</SettingList>
)}
{/* Create User Dialog */}
<CreateUserDialog open={createDialog.isOpen} onOpenChange={createDialog.setOpen} onSuccess={refetchUsers} />
@@ -21,7 +21,7 @@ import {
import { useTranslate } from "@/utils/i18n";
import ManagedByConfigurationChip from "./ManagedByConfigurationChip";
import SettingGroup from "./SettingGroup";
import SettingRow from "./SettingRow";
import { SettingList, SettingListItem } from "./SettingList";
import SettingSection from "./SettingSection";
import useInstanceSettingUpdater, { buildInstanceSettingName } from "./useInstanceSettingUpdater";
@@ -187,134 +187,139 @@ const NotificationSection = () => {
description={t("setting.notification.email-description")}
actions={EMAIL_FIELDS.some(emailLocked) ? <ManagedByConfigurationChip resource={managed} /> : undefined}
>
<SettingRow label={t("setting.notification.email-enabled")} description={t("setting.notification.email-enabled-description")}>
<Checkbox
disabled={emailLocked("enabled")}
checked={emailSetting.enabled}
onCheckedChange={(enabled) => updateEmailSetting({ enabled })}
/>
</SettingRow>
<SettingList>
<SettingListItem
label={t("setting.notification.email-enabled")}
description={t("setting.notification.email-enabled-description")}
>
<Checkbox
disabled={emailLocked("enabled")}
checked={emailSetting.enabled}
onCheckedChange={(enabled) => updateEmailSetting({ enabled })}
/>
</SettingListItem>
<SettingRow
label={fieldLabel(t("setting.notification.smtp-host"), "required")}
description={t("setting.notification.smtp-host-description")}
>
<Input
className="w-full sm:w-80"
value={emailSetting.smtpHost}
disabled={emailLocked("smtpHost")}
placeholder="smtp.gmail.com"
aria-required={emailSetting.enabled}
onChange={(e) => updateEmailSetting({ smtpHost: e.target.value })}
/>
</SettingRow>
<SettingListItem
label={fieldLabel(t("setting.notification.smtp-host"), "required")}
description={t("setting.notification.smtp-host-description")}
>
<Input
className="w-full max-w-full sm:w-80"
value={emailSetting.smtpHost}
disabled={emailLocked("smtpHost")}
placeholder="smtp.gmail.com"
aria-required={emailSetting.enabled}
onChange={(e) => updateEmailSetting({ smtpHost: e.target.value })}
/>
</SettingListItem>
<SettingRow
label={fieldLabel(t("setting.notification.smtp-port"), "required")}
description={t("setting.notification.smtp-port-description")}
>
<Input
className="w-28 font-mono"
type="number"
min={1}
max={65535}
value={emailSetting.smtpPort}
disabled={emailLocked("smtpPort")}
placeholder="587"
aria-required={emailSetting.enabled}
onChange={handlePortChanged}
/>
</SettingRow>
<SettingListItem
label={fieldLabel(t("setting.notification.smtp-port"), "required")}
description={t("setting.notification.smtp-port-description")}
>
<Input
className="w-28 font-mono"
type="number"
min={1}
max={65535}
value={emailSetting.smtpPort}
disabled={emailLocked("smtpPort")}
placeholder="587"
aria-required={emailSetting.enabled}
onChange={handlePortChanged}
/>
</SettingListItem>
<SettingRow
label={fieldLabel(t("setting.notification.smtp-username"), "gmail")}
description={t("setting.notification.smtp-username-description")}
>
<Input
className="w-full sm:w-80"
type="email"
value={emailSetting.smtpUsername}
disabled={emailLocked("smtpUsername")}
placeholder="your.name@gmail.com"
autoComplete="username"
onChange={(e) => updateEmailSetting({ smtpUsername: e.target.value })}
/>
</SettingRow>
<SettingListItem
label={fieldLabel(t("setting.notification.smtp-username"), "gmail")}
description={t("setting.notification.smtp-username-description")}
>
<Input
className="w-full max-w-full sm:w-80"
type="email"
value={emailSetting.smtpUsername}
disabled={emailLocked("smtpUsername")}
placeholder="your.name@gmail.com"
autoComplete="username"
onChange={(e) => updateEmailSetting({ smtpUsername: e.target.value })}
/>
</SettingListItem>
<SettingRow
label={fieldLabel(t("setting.notification.smtp-password"), "gmail")}
description={
hasExistingEmailSetting
? t("setting.notification.smtp-password-preserve-description")
: t("setting.notification.smtp-password-description")
}
>
<Input
className="w-full sm:w-80"
type="password"
value={emailSetting.smtpPassword}
disabled={emailLocked("smtpPassword")}
placeholder={hasExistingEmailSetting ? t("setting.notification.smtp-password-placeholder-existing") : "abcd efgh ijkl mnop"}
autoComplete="new-password"
onChange={(e) => updateEmailSetting({ smtpPassword: e.target.value })}
/>
</SettingRow>
<SettingListItem
label={fieldLabel(t("setting.notification.smtp-password"), "gmail")}
description={
hasExistingEmailSetting
? t("setting.notification.smtp-password-preserve-description")
: t("setting.notification.smtp-password-description")
}
>
<Input
className="w-full max-w-full sm:w-80"
type="password"
value={emailSetting.smtpPassword}
disabled={emailLocked("smtpPassword")}
placeholder={hasExistingEmailSetting ? t("setting.notification.smtp-password-placeholder-existing") : "abcd efgh ijkl mnop"}
autoComplete="new-password"
onChange={(e) => updateEmailSetting({ smtpPassword: e.target.value })}
/>
</SettingListItem>
<SettingRow
label={fieldLabel(t("setting.notification.from-email"), "required")}
description={t("setting.notification.from-email-description")}
>
<Input
className="w-full sm:w-80"
type="email"
value={emailSetting.fromEmail}
disabled={emailLocked("fromEmail")}
placeholder="your.name@gmail.com"
aria-required={emailSetting.enabled}
onChange={(e) => updateEmailSetting({ fromEmail: e.target.value })}
/>
</SettingRow>
<SettingListItem
label={fieldLabel(t("setting.notification.from-email"), "required")}
description={t("setting.notification.from-email-description")}
>
<Input
className="w-full max-w-full sm:w-80"
type="email"
value={emailSetting.fromEmail}
disabled={emailLocked("fromEmail")}
placeholder="your.name@gmail.com"
aria-required={emailSetting.enabled}
onChange={(e) => updateEmailSetting({ fromEmail: e.target.value })}
/>
</SettingListItem>
<SettingRow
label={fieldLabel(t("setting.notification.from-name"), "optional")}
description={t("setting.notification.from-name-description")}
>
<Input
className="w-full sm:w-80"
value={emailSetting.fromName}
disabled={emailLocked("fromName")}
placeholder="Memos"
onChange={(e) => updateEmailSetting({ fromName: e.target.value })}
/>
</SettingRow>
<SettingListItem
label={fieldLabel(t("setting.notification.from-name"), "optional")}
description={t("setting.notification.from-name-description")}
>
<Input
className="w-full max-w-full sm:w-80"
value={emailSetting.fromName}
disabled={emailLocked("fromName")}
placeholder="Memos"
onChange={(e) => updateEmailSetting({ fromName: e.target.value })}
/>
</SettingListItem>
<SettingRow
label={fieldLabel(t("setting.notification.reply-to"), "optional")}
description={t("setting.notification.reply-to-description")}
>
<Input
className="w-full sm:w-80"
type="email"
value={emailSetting.replyTo}
disabled={emailLocked("replyTo")}
placeholder="support@example.com"
onChange={(e) => updateEmailSetting({ replyTo: e.target.value })}
/>
</SettingRow>
<SettingListItem
label={fieldLabel(t("setting.notification.reply-to"), "optional")}
description={t("setting.notification.reply-to-description")}
>
<Input
className="w-full max-w-full sm:w-80"
type="email"
value={emailSetting.replyTo}
disabled={emailLocked("replyTo")}
placeholder="support@example.com"
onChange={(e) => updateEmailSetting({ replyTo: e.target.value })}
/>
</SettingListItem>
<SettingRow
label={fieldLabel(t("setting.notification.use-tls"), "recommended")}
description={t("setting.notification.use-tls-description")}
>
<Checkbox disabled={emailLocked("useTls")} checked={emailSetting.useTls} onCheckedChange={handleUseTLSChanged} />
</SettingRow>
<SettingListItem
label={fieldLabel(t("setting.notification.use-tls"), "recommended")}
description={t("setting.notification.use-tls-description")}
>
<Checkbox disabled={emailLocked("useTls")} checked={emailSetting.useTls} onCheckedChange={handleUseTLSChanged} />
</SettingListItem>
<SettingRow
label={fieldLabel(t("setting.notification.use-ssl"), "optional")}
description={t("setting.notification.use-ssl-description")}
>
<Checkbox disabled={emailLocked("useSsl")} checked={emailSetting.useSsl} onCheckedChange={handleUseSSLChanged} />
</SettingRow>
<SettingListItem
label={fieldLabel(t("setting.notification.use-ssl"), "optional")}
description={t("setting.notification.use-ssl-description")}
>
<Checkbox disabled={emailLocked("useSsl")} checked={emailSetting.useSsl} onCheckedChange={handleUseSSLChanged} />
</SettingListItem>
</SettingList>
</SettingGroup>
<div className="w-full flex flex-col justify-end gap-2 sm:flex-row">
+41 -59
View File
@@ -1,4 +1,4 @@
import { Badge, Button, Menu, Tooltip } from "@usememos/ui";
import { Badge, Button, List, Menu, Tooltip } from "@usememos/ui";
import { MoreVerticalIcon, PlusIcon } from "lucide-react";
import { useEffect, useMemo, useState } from "react";
import ConfirmDialog from "@/components/ConfirmDialog";
@@ -19,10 +19,10 @@ import { useTranslate } from "@/utils/i18n";
import CreateIdentityProviderDialog from "../CreateIdentityProviderDialog";
import LearnMore from "../LearnMore";
import ManagedByConfigurationChip from "./ManagedByConfigurationChip";
import { SettingList } from "./SettingList";
import SettingSection from "./SettingSection";
import SettingTable from "./SettingTable";
interface IdentityProviderRow extends Record<string, unknown> {
interface IdentityProviderRow {
name: string;
providerUid: string;
title: string;
@@ -121,30 +121,21 @@ const SSOSection = () => {
</Button>
}
>
<SettingTable
variant="info-flow"
columns={[
{
key: "title",
header: t("setting.sso.provider"),
render: (_, row: IdentityProviderRow) => (
<div className="flex min-w-[16rem] flex-col gap-2">
{rows.length === 0 ? (
<p className="py-6 text-center mu-body text-mu-text-secondary">{t("setting.sso.no-sso-found")}</p>
) : (
<SettingList aria-label={t("setting.sso.sso-list")}>
{rows.map((row) => (
<List.Item key={row.name} className="flex items-start gap-3">
<div className="min-w-0 flex-1 space-y-2">
<div className="flex flex-wrap items-center gap-2">
<span className="mu-label text-mu-text">{row.title}</span>
<span className="min-w-0 mu-label break-words text-mu-text">{row.title}</span>
<Badge>{row.typeLabel}</Badge>
</div>
<div className="flex flex-wrap items-center gap-2">
<InfoChip label={t("setting.sso.provider-uid")} value={row.providerUid} />
<ManagedByConfigurationChip resource={findManagedResource(configurationStatus, row.name)} />
</div>
</div>
),
},
{
key: "summaryItems",
header: t("setting.sso.configuration"),
render: (_, row: IdentityProviderRow) => (
<div className="flex min-w-[24rem] flex-col gap-2">
<p className="mu-caption text-mu-text-secondary">{t("setting.sso.configuration-summary-description")}</p>
<div className="flex flex-wrap gap-2">
{row.summaryItems.map((item) => (
@@ -152,46 +143,37 @@ const SSOSection = () => {
))}
</div>
</div>
),
},
{
key: "actions",
header: "",
className: "w-px",
alignEnd: true,
render: (_, row: IdentityProviderRow) => (
<Menu.Root modal={false}>
<Tooltip.Root>
<Tooltip.Trigger
render={
<Menu.Trigger
render={<Button variant="ghost" aria-label={`${t("common.more")}: ${row.title}`} icon={<MoreVerticalIcon />} />}
/>
}
/>
<Tooltip.Popup>{t("common.more")}</Tooltip.Popup>
</Tooltip.Root>
<Menu.Popup align="end">
<Menu.Item
disabled={!!findManagedResource(configurationStatus, row.name)}
onClick={() => handleEditIdentityProvider(row.provider)}
>
{t("common.edit")}
</Menu.Item>
{findManagedResource(configurationStatus, row.name) ? null : (
<Menu.Item onClick={() => handleDeleteIdentityProvider(row.provider)} danger>
{t("common.delete")}
<div className="shrink-0">
<Menu.Root modal={false}>
<Tooltip.Root>
<Tooltip.Trigger
render={
<Menu.Trigger
render={<Button variant="ghost" aria-label={`${t("common.more")}: ${row.title}`} icon={<MoreVerticalIcon />} />}
/>
}
/>
<Tooltip.Popup>{t("common.more")}</Tooltip.Popup>
</Tooltip.Root>
<Menu.Popup align="end">
<Menu.Item
disabled={!!findManagedResource(configurationStatus, row.name)}
onClick={() => handleEditIdentityProvider(row.provider)}
>
{t("common.edit")}
</Menu.Item>
)}
</Menu.Popup>
</Menu.Root>
),
},
]}
data={rows}
emptyMessage={t("setting.sso.no-sso-found")}
getRowKey={(row) => row.name}
/>
{findManagedResource(configurationStatus, row.name) ? null : (
<Menu.Item onClick={() => handleDeleteIdentityProvider(row.provider)} danger>
{t("common.delete")}
</Menu.Item>
)}
</Menu.Popup>
</Menu.Root>
</div>
</List.Item>
))}
</SettingList>
)}
<CreateIdentityProviderDialog
open={idpDialog.isOpen}
+14 -4
View File
@@ -1,5 +1,6 @@
import { Field, List, Textarea } from "@usememos/ui";
import { createContext, type ReactNode, useContext } from "react";
import { cn } from "@/lib/utils";
/** The id of the enclosing SettingGroup's title, so a SettingList inside it is named by that title. */
export const SettingGroupTitleContext = createContext<string | undefined>(undefined);
@@ -25,15 +26,24 @@ export const SettingList = ({ children, ...props }: SettingListProps) => {
interface SettingListItemProps {
label: ReactNode;
description?: ReactNode;
orientation?: "horizontal" | "vertical";
/** The row's one control, placed at the end of the row. */
children?: ReactNode;
}
/** A settings row: a horizontal Field, so the label and description name the one control at the end. */
export const SettingListItem = ({ label, description, children }: SettingListItemProps) => {
/** A labeled settings control; wide controls stack when the row has little room. */
export const SettingListItem = ({ label, description, children, orientation = "horizontal" }: SettingListItemProps) => {
return (
<List.Item>
<Field.Root orientation="horizontal">
<List.Item className="@container">
<Field.Root
orientation={orientation}
className={cn(
"@max-sm:has-[.mu-input-root,.mu-textarea,.mu-select-trigger,.mu-combobox-input]:flex",
"@max-sm:has-[.mu-input-root,.mu-textarea,.mu-select-trigger,.mu-combobox-input]:flex-col",
"@max-sm:has-[.mu-input-root,.mu-textarea,.mu-select-trigger,.mu-combobox-input]:items-stretch",
"@max-sm:has-[.mu-input-root,.mu-textarea,.mu-select-trigger,.mu-combobox-input]:gap-2",
)}
>
<Field.Label>{label}</Field.Label>
{description && <Field.Description>{description}</Field.Description>}
{children}
@@ -1,25 +0,0 @@
import { Field } from "@usememos/ui";
import type React from "react";
import { cn } from "@/lib/utils";
interface SettingRowProps {
label: React.ReactNode;
description?: string;
children: React.ReactNode;
vertical?: boolean;
}
/** One setting: its label and description name the single control beside them. */
const SettingRow: React.FC<SettingRowProps> = ({ label, description, children, vertical = false }) => {
return (
<Field.Root className={cn("w-full gap-3", !vertical && "sm:flex-row sm:items-center sm:justify-between")}>
<div className={cn("flex min-w-0 flex-col gap-1", vertical ? "w-full" : "flex-1")}>
<Field.Label>{label}</Field.Label>
{description && <Field.Description>{description}</Field.Description>}
</div>
<div className={cn("flex min-w-0 items-center", vertical ? "w-full" : "w-full sm:w-auto sm:shrink-0")}>{children}</div>
</Field.Root>
);
};
export default SettingRow;
+81 -77
View File
@@ -21,7 +21,7 @@ import {
import { useTranslate } from "@/utils/i18n";
import ManagedByConfigurationChip from "./ManagedByConfigurationChip";
import SettingGroup from "./SettingGroup";
import SettingRow from "./SettingRow";
import { SettingList, SettingListItem } from "./SettingList";
import SettingSection from "./SettingSection";
import useInstanceSettingUpdater, { buildInstanceSettingName } from "./useInstanceSettingUpdater";
@@ -330,19 +330,21 @@ const StorageSection = () => {
</div>
{selectedStorageType !== InstanceSetting_StorageType.DATABASE && (
<SettingRow
label={t("setting.storage.filepath-template")}
description={t("setting.storage.filepath-template-description")}
vertical
>
<Input
className="w-full max-w-lg font-mono"
value={instanceStorageSetting.filepathTemplate}
disabled={templateLocked}
placeholder={DEFAULT_FILEPATH_TEMPLATE}
onChange={handleFilepathTemplateChanged}
/>
</SettingRow>
<SettingList>
<SettingListItem
label={t("setting.storage.filepath-template")}
description={t("setting.storage.filepath-template-description")}
orientation="vertical"
>
<Input
className="w-full max-w-lg font-mono"
value={instanceStorageSetting.filepathTemplate}
disabled={templateLocked}
placeholder={DEFAULT_FILEPATH_TEMPLATE}
onChange={handleFilepathTemplateChanged}
/>
</SettingListItem>
</SettingList>
)}
</SettingGroup>
@@ -352,75 +354,77 @@ const StorageSection = () => {
description={t("setting.storage.s3-configuration-description")}
showSeparator
>
<SettingRow label={t("setting.storage.accesskey")} description={t("setting.storage.accesskey-description")}>
<Input
className="w-64"
value={selectedS3Config?.accessKeyId ?? ""}
disabled={registryLocked}
onChange={(e) => handleS3FieldChange("accessKeyId", e.target.value)}
/>
</SettingRow>
<SettingList>
<SettingListItem label={t("setting.storage.accesskey")} description={t("setting.storage.accesskey-description")}>
<Input
className="w-full max-w-full sm:w-64"
value={selectedS3Config?.accessKeyId ?? ""}
disabled={registryLocked}
onChange={(e) => handleS3FieldChange("accessKeyId", e.target.value)}
/>
</SettingListItem>
<SettingRow
label={t("setting.storage.secretkey")}
description={
canReuseSelectedS3Secret ? t("setting.storage.secretkey-preserve-description") : t("setting.storage.secretkey-description")
}
>
<Input
className="w-64"
type="password"
value={selectedS3Config?.accessKeySecret ?? ""}
disabled={registryLocked}
onChange={(e) => handleS3FieldChange("accessKeySecret", e.target.value)}
/>
</SettingRow>
<SettingListItem
label={t("setting.storage.secretkey")}
description={
canReuseSelectedS3Secret ? t("setting.storage.secretkey-preserve-description") : t("setting.storage.secretkey-description")
}
>
<Input
className="w-full max-w-full sm:w-64"
type="password"
value={selectedS3Config?.accessKeySecret ?? ""}
disabled={registryLocked}
onChange={(e) => handleS3FieldChange("accessKeySecret", e.target.value)}
/>
</SettingListItem>
<SettingRow label={t("setting.storage.endpoint")} description={t("setting.storage.endpoint-description")}>
<Input
className="w-64"
value={selectedS3Config?.endpoint ?? ""}
disabled={registryLocked}
onChange={(e) => handleS3FieldChange("endpoint", e.target.value)}
/>
</SettingRow>
<SettingListItem label={t("setting.storage.endpoint")} description={t("setting.storage.endpoint-description")}>
<Input
className="w-full max-w-full sm:w-64"
value={selectedS3Config?.endpoint ?? ""}
disabled={registryLocked}
onChange={(e) => handleS3FieldChange("endpoint", e.target.value)}
/>
</SettingListItem>
<SettingRow label={t("setting.storage.region")} description={t("setting.storage.region-description")}>
<Input
className="w-64"
value={selectedS3Config?.region ?? ""}
disabled={registryLocked}
onChange={(e) => handleS3FieldChange("region", e.target.value)}
/>
</SettingRow>
<SettingListItem label={t("setting.storage.region")} description={t("setting.storage.region-description")}>
<Input
className="w-full max-w-full sm:w-64"
value={selectedS3Config?.region ?? ""}
disabled={registryLocked}
onChange={(e) => handleS3FieldChange("region", e.target.value)}
/>
</SettingListItem>
<SettingRow label={t("setting.storage.bucket")} description={t("setting.storage.bucket-description")}>
<Input
className="w-64"
value={selectedS3Config?.bucket ?? ""}
disabled={registryLocked}
onChange={(e) => handleS3FieldChange("bucket", e.target.value)}
/>
</SettingRow>
<SettingListItem label={t("setting.storage.bucket")} description={t("setting.storage.bucket-description")}>
<Input
className="w-full max-w-full sm:w-64"
value={selectedS3Config?.bucket ?? ""}
disabled={registryLocked}
onChange={(e) => handleS3FieldChange("bucket", e.target.value)}
/>
</SettingListItem>
<SettingRow label={t("setting.storage.use-path-style")} description={t("setting.storage.use-path-style-description")}>
<Checkbox
checked={selectedS3Config?.usePathStyle ?? false}
disabled={registryLocked}
onCheckedChange={(checked) => handleS3FieldChange("usePathStyle", checked)}
/>
</SettingRow>
<SettingListItem label={t("setting.storage.use-path-style")} description={t("setting.storage.use-path-style-description")}>
<Checkbox
checked={selectedS3Config?.usePathStyle ?? false}
disabled={registryLocked}
onCheckedChange={(checked) => handleS3FieldChange("usePathStyle", checked)}
/>
</SettingListItem>
<SettingRow
label={t("setting.storage.insecure-skip-tls-verify")}
description={t("setting.storage.insecure-skip-tls-verify-description")}
>
<Checkbox
checked={selectedS3Config?.insecureSkipTlsVerify ?? false}
disabled={registryLocked}
onCheckedChange={(checked) => handleS3FieldChange("insecureSkipTlsVerify", checked)}
/>
</SettingRow>
<SettingListItem
label={t("setting.storage.insecure-skip-tls-verify")}
description={t("setting.storage.insecure-skip-tls-verify-description")}
>
<Checkbox
checked={selectedS3Config?.insecureSkipTlsVerify ?? false}
disabled={registryLocked}
onCheckedChange={(checked) => handleS3FieldChange("insecureSkipTlsVerify", checked)}
/>
</SettingListItem>
</SettingList>
</SettingGroup>
)}
+3 -3
View File
@@ -192,7 +192,7 @@ const TagsSection = () => {
{newTagError && <Field.Error match>{newTagError}</Field.Error>}
</Field.Root>
<div className="flex h-8 items-center gap-2 rounded-mu-md border border-mu-line bg-mu-canvas px-2 mu-body text-mu-text-secondary">
<div className="flex min-h-8 flex-wrap items-center gap-2 rounded-mu-md border border-mu-line bg-mu-canvas px-2 py-1 mu-body text-mu-text-secondary">
<PaletteIcon className="mu-icon" />
<span>{t("setting.tags.background-color")}</span>
<input
@@ -202,7 +202,7 @@ const TagsSection = () => {
onChange={(e) => setNewTagColor(e.target.value)}
aria-label={t("setting.tags.background-color")}
/>
<Button variant="ghost" size="xs" onClick={() => setNewTagColor(undefined)} disabled={!newTagColor}>
<Button variant="ghost" size="md" onClick={() => setNewTagColor(undefined)} disabled={!newTagColor}>
{t("common.clear")}
</Button>
</div>
@@ -259,7 +259,7 @@ const TagsSection = () => {
onChange={(e) => handleColorChange(row.name, e.target.value)}
aria-label={t("setting.tags.background-color")}
/>
<Button variant="ghost" size="sm" onClick={() => handleClearColor(row.name)} disabled={!localTags[row.name].color}>
<Button variant="ghost" size="md" onClick={() => handleClearColor(row.name)} disabled={!localTags[row.name].color}>
{localTags[row.name].color ?? t("setting.tags.default-color")}
</Button>
</div>
+18 -32
View File
@@ -1,4 +1,4 @@
import { Button, Table, Tooltip } from "@usememos/ui";
import { Button, List, Tooltip } from "@usememos/ui";
import { PencilIcon, PlusIcon, TrashIcon } from "lucide-react";
import { useEffect, useState } from "react";
import ConfirmDialog from "@/components/ConfirmDialog";
@@ -9,8 +9,8 @@ import { UserWebhook } from "@/types/proto/api/user_service_pb";
import { useTranslate } from "@/utils/i18n";
import CreateWebhookDialog from "../CreateWebhookDialog";
import LearnMore from "../LearnMore";
import { SettingList } from "./SettingList";
import SettingSection from "./SettingSection";
import SettingTable from "./SettingTable";
const WebhookSection = () => {
const t = useTranslate();
@@ -77,28 +77,17 @@ const WebhookSection = () => {
</Button>
}
>
<SettingTable
columns={[
{
key: "displayName",
header: t("common.name"),
render: (_, webhook: UserWebhook) => <span className="text-mu-text">{webhook.displayName}</span>,
},
{
key: "url",
header: t("setting.webhook.url"),
render: (_, webhook: UserWebhook) => (
<span className="block max-w-[300px] truncate text-mu-text" title={webhook.url}>
{webhook.url}
</span>
),
},
{
key: "actions",
header: "",
alignEnd: true,
render: (_, webhook: UserWebhook) => (
<Table.Actions className="pointer-coarse:gap-5">
{webhooks.length === 0 ? (
<p className="py-6 text-center mu-body text-mu-text-secondary">{t("setting.webhook.no-webhooks-found")}</p>
) : (
<SettingList aria-label={t("setting.webhook.title")}>
{webhooks.map((webhook) => (
<List.Item key={webhook.name} className="flex items-start gap-3">
<div className="min-w-0 flex-1">
<p className="mu-label break-words">{webhook.displayName}</p>
<p className="mt-1 break-all mu-caption text-mu-text-secondary">{webhook.url}</p>
</div>
<div className="flex shrink-0 items-center gap-1">
<Tooltip.Root>
<Tooltip.Trigger
render={
@@ -125,14 +114,11 @@ const WebhookSection = () => {
/>
<Tooltip.Popup>{t("common.delete")}</Tooltip.Popup>
</Tooltip.Root>
</Table.Actions>
),
},
]}
data={webhooks}
emptyMessage={t("setting.webhook.no-webhooks-found")}
getRowKey={(webhook) => webhook.name}
/>
</div>
</List.Item>
))}
</SettingList>
)}
<CreateWebhookDialog
open={isCreateWebhookDialogOpen}
-5
View File
@@ -490,9 +490,7 @@
"list-title": "قائمة الأعضاء",
"no-members-found": "لم يتم العثور على أعضاء",
"archived": "المؤرشفة",
"member-column": "عضو",
"active": "نشط",
"summary-column": "ملخص",
"export-memos": "تصدير الملاحظات",
"username-password-required": "لا يمكن ترك اسم المستخدم وكلمة المرور فارغين",
"create-success": "تم إنشاء المستخدم",
@@ -691,7 +689,6 @@
"basic-settings": "الإعدادات الأساسية",
"basic-settings-description": "حدد هوية الموفر، واسم العرض، وقواعد المعرف الاختيارية قبل إدخال تفاصيل OAuth.",
"client-secret-optional-description": "اترك هذا الحقل فارغًا للحفاظ على سر العميل الحالي دون تغيير.",
"configuration": "التكوين",
"configuration-summary-description": "اعرض المعلومات الأساسية التي تساعد في تحديد الموفر ومراجعته دون عرض التكوين الكامل.",
"create-sso-description": "أنشئ موفر هوية جديدًا لتسجيل الدخول الموحد المُدار من قِبل المسؤول.",
"endpoints": "نقاط النهاية",
@@ -713,7 +710,6 @@
"not-linked-description": "لم يتم ربط أي هوية خارجية حتى الآن. يُمكنك ربط هذا المزوّد لتسجيل الدخول به لاحقًا.",
"oauth-configuration": "إعدادات OAuth",
"oauth-configuration-description": "أدخل بيانات اعتماد العميل OAuth ونقاط نهاية الموفر المستخدمة أثناء تسجيل الدخول.",
"provider": "الموفر",
"provider-id": "معرّف الموفر",
"provider-id-description": "الأحرف الصغيرة والأرقام والواصلات فقط. تصبح هذه القيمة جزءًا من اسم مورد الموفر.",
"redirect-url-description": "سجّل عنوان URL لإعادة التوجيه هذا مع موفر الهوية الخاص بك حتى يكتمل تدفق رمز التفويض.",
@@ -937,7 +933,6 @@
},
"no-webhooks-found": "لم يتم العثور على Webhooks.",
"title": "Webhooks",
"url": "الرابط",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -724,9 +724,7 @@
"delete-warning-description": "BU ƏMƏLİYYAT GERİ QAYTARILA BİLMƏZ",
"label": "Üzv",
"list-title": "Üzv siyahısı",
"member-column": "Üzv",
"restore-success": "{{username}} uğurla bərpa edildi",
"summary-column": "Xülasə",
"user": "İstifadəçi",
"no-members-found": "Üzv tapılmadı",
"export-memos": "Qeydləri ixrac et",
@@ -1078,7 +1076,6 @@
"client-id": "Client ID",
"client-secret": "Client secret",
"client-secret-optional-description": "Mövcud client secret dəyişməz qalsın deyə boş buraxın.",
"configuration": "Konfiqurasiya",
"configuration-summary-description": "Tam konfiqurasiyanı sətir içində açmadan provayderi tanımağa və yoxlamağa kömək edən əsas məlumatları göstərir.",
"confirm-delete": "`{{name}}` SSO konfiqurasiyasını silmək istədiyinizə əminsiniz? BU ƏMƏLİYYAT GERİ QAYTARILA BİLMƏZ",
"create-sso": "SSO yarat",
@@ -1107,7 +1104,6 @@
"not-linked-description": "Hələ heç bir xarici kimlik bağlanmayıb. Sonradan onunla daxil olmaq üçün bu provayderi qoşa bilərsiniz.",
"oauth-configuration": "OAuth konfiqurasiyası",
"oauth-configuration-description": "Giriş zamanı istifadə olunan OAuth müştəri məlumatlarını və provayder endpoint-lərini doldurun.",
"provider": "Provayder",
"provider-id": "Provayder ID-si",
"provider-id-description": "Yalnız kiçik hərflər, rəqəmlər və defislər. Bu dəyər provayder resursunun adının bir hissəsinə çevrilir.",
"provider-uid": "UID",
@@ -1255,7 +1251,6 @@
},
"no-webhooks-found": "Webhook tapılmadı.",
"title": "Webhook-lar",
"url": "URL",
"label": "Webhook-lar"
},
"tags": {
-5
View File
@@ -646,9 +646,7 @@
"delete-warning-description": "ТОВА ДЕЙСТВИЕ Е НЕОБРАТИМО",
"label": "Член",
"list-title": "Списък с членове",
"member-column": "Член",
"restore-success": "{{username}} възстановен успешно",
"summary-column": "Резюме",
"user": "Потребител",
"no-members-found": "Няма намерени членове",
"export-memos": "Експортиране на бележки",
@@ -877,7 +875,6 @@
"client-id": "ID на клиента",
"client-secret": "Тайна на клиента",
"client-secret-optional-description": "Оставете празно, за да запазите съществуващата клиентска тайна непроменена.",
"configuration": "Конфигурация",
"configuration-summary-description": "Покажете най-важното, което помага за идентифицирането и одита на доставчик, без да излагате пълната конфигурация на място.",
"confirm-delete": "Сигурни ли сте, че искате да изтриете `{{name}}` SSO конфигурацията? ТОВА ДЕЙСТВИЕ Е НЕОБРАТИМО",
"create-sso": "Създайте SSO",
@@ -906,7 +903,6 @@
"not-linked-description": "Все още няма свързана външна самоличност. Можете да свържете този доставчик, за да влезете с него по-късно.",
"oauth-configuration": "OAuth конфигурация",
"oauth-configuration-description": "Попълнете идентификационните данни на клиента OAuth и крайните точки на доставчика, използвани по време на влизане.",
"provider": "Доставчик",
"provider-id": "ID на доставчика",
"provider-id-description": "Само малки букви, цифри и тирета. Тази стойност става част от името на ресурса на доставчика.",
"provider-uid": "UID",
@@ -1054,7 +1050,6 @@
},
"no-webhooks-found": "Няма намерени уебкукички.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -569,8 +569,6 @@
"no-members-found": "No s'han trobat membres",
"active": "Actius",
"archived": "Arxivat",
"member-column": "Membre",
"summary-column": "Resum",
"export-memos": "Exportar notes",
"username-password-required": "El nom d'usuari i la contrasenya no poden estar buits",
"create-success": "S'ha creat l'usuari",
@@ -778,7 +776,6 @@
"basic-settings": "Configuració bàsica",
"basic-settings-description": "Establiu la identitat del proveïdor, el nom de visualització i les regles d'identificació opcionals abans d'emplenar els detalls de OAuth.",
"client-secret-optional-description": "Deixeu-lo en blanc per mantenir el secret del client existent sense canvis.",
"configuration": "Configuració",
"configuration-summary-description": "Mostra els elements essencials que ajuden a identificar i auditar un proveïdor sense exposar la configuració completa en línia.",
"create-sso-description": "Creeu un proveïdor d'identitat nou per a l'inici de sessió únic gestionat per l'administrador.",
"endpoints": "Punts finals",
@@ -800,7 +797,6 @@
"not-linked-description": "Encara no hi ha cap identitat externa vinculada. Podeu connectar aquest proveïdor per iniciar-hi la sessió més tard.",
"oauth-configuration": "Configuració OAuth",
"oauth-configuration-description": "Empleneu les credencials del client OAuth i els punts finals del proveïdor utilitzats durant l'inici de sessió.",
"provider": "Proveïdor",
"provider-id": "Identificador del proveïdor",
"provider-id-description": "Només lletres minúscules, números i guions. Aquest valor passa a formar part del nom del recurs del proveïdor.",
"provider-uid": "UID",
@@ -939,7 +935,6 @@
},
"no-webhooks-found": "No s'han trobat webhooks.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -570,8 +570,6 @@
"no-members-found": "Nebyli nalezeni žádní členové",
"active": "Aktivní",
"archived": "Archivováno",
"member-column": "Člen",
"summary-column": "Shrnutí",
"export-memos": "Exportovat poznámky",
"username-password-required": "Uživatelské jméno a heslo nesmí být prázdné",
"create-success": "Uživatel byl vytvořen",
@@ -779,7 +777,6 @@
"basic-settings": "Základní nastavení",
"basic-settings-description": "Před vyplněním podrobností OAuth nastavte identitu poskytovatele, zobrazovaný název a volitelná pravidla pro identifikátory.",
"client-secret-optional-description": "Ponechte prázdné, chcete-li zachovat tajemství stávajícího klienta beze změny.",
"configuration": "Konfigurace",
"configuration-summary-description": "Ukažte základní informace, které pomáhají identifikovat a auditovat poskytovatele, aniž byste odhalili celou přímou konfiguraci.",
"create-sso-description": "Vytvořte nového poskytovatele identity pro jednotné přihlášení spravované správcem.",
"endpoints": "Koncové body",
@@ -801,7 +798,6 @@
"not-linked-description": "Zatím není propojena žádná externí identita. K tomuto poskytovateli se můžete připojit a přihlásit se k němu později.",
"oauth-configuration": "Konfigurace OAuth",
"oauth-configuration-description": "Vyplňte přihlašovací údaje klienta OAuth a koncové body poskytovatele použité během přihlašování.",
"provider": "Poskytovatel",
"provider-id": "ID poskytovatele",
"provider-id-description": "Pouze malá písmena, čísla a pomlčky. Tato hodnota se stane součástí názvu prostředku poskytovatele.",
"provider-uid": "UID",
@@ -941,7 +937,6 @@
},
"no-webhooks-found": "Žádné webhooky nenalezeny.",
"title": "Webhooky",
"url": "URL",
"label": "Webhooky"
},
"tags": {
-5
View File
@@ -646,9 +646,7 @@
"delete-warning-description": "DENNE HANDLING ER IRREVERSIBEL",
"label": "Medlem",
"list-title": "Medlemsliste",
"member-column": "Medlem",
"restore-success": "{{username}} gendannet med succes",
"summary-column": "Oversigt",
"user": "Bruger",
"no-members-found": "Ingen medlemmer fundet",
"export-memos": "Eksportér noter",
@@ -877,7 +875,6 @@
"client-id": "Klient-id",
"client-secret": "Klientens hemmelighed",
"client-secret-optional-description": "Lad stå tomt for at holde den eksisterende klienthemmelighed uændret.",
"configuration": "Konfiguration",
"configuration-summary-description": "Vis det væsentlige, der hjælper med at identificere og revidere en udbyder uden at afsløre hele konfigurationen inline.",
"confirm-delete": "Er du sikker på, at du vil slette `{{name}}` SSO-konfigurationen? DENNE HANDLING ER IRREVERSIBEL",
"create-sso": "Opret SSO",
@@ -906,7 +903,6 @@
"not-linked-description": "Der er endnu ikke knyttet nogen ekstern identitet. Du kan oprette forbindelse til denne udbyder for at logge ind med den senere.",
"oauth-configuration": "OAuth konfiguration",
"oauth-configuration-description": "Udfyld OAuth-klientens legitimationsoplysninger og udbyderens slutpunkter, der bruges under login.",
"provider": "Udbyder",
"provider-id": "Udbyder-id",
"provider-id-description": "Kun små bogstaver, tal og bindestreger. Denne værdi bliver en del af udbyderens ressourcenavn.",
"provider-uid": "UID",
@@ -1054,7 +1050,6 @@
},
"no-webhooks-found": "Ingen webhooks fundet.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -568,8 +568,6 @@
"no-members-found": "Keine Mitglieder gefunden",
"active": "Aktiv",
"archived": "Archiviert",
"member-column": "Mitglied",
"summary-column": "Zusammenfassung",
"export-memos": "Memos exportieren",
"username-password-required": "Benutzername und Passwort dürfen nicht leer sein",
"create-success": "Benutzer erstellt",
@@ -777,7 +775,6 @@
"basic-settings": "Grundeinstellungen",
"basic-settings-description": "Legen Sie die Anbieteridentität, den Anzeigenamen und optionale Kennungsregeln fest, bevor Sie die OAuth-Details eingeben.",
"client-secret-optional-description": "Lassen Sie das Feld leer, um das bestehende Client-Geheimnis unverändert zu lassen.",
"configuration": "Konfiguration",
"configuration-summary-description": "Zeigen Sie die wesentlichen Elemente auf, die bei der Identifizierung und Prüfung eines Anbieters helfen, ohne die vollständige Konfiguration inline offenzulegen.",
"create-sso-description": "Erstellen Sie einen neuen Identitätsanbieter für vom Administrator verwaltetes Single Sign-On.",
"endpoints": "Endpunkte",
@@ -799,7 +796,6 @@
"not-linked-description": "Es ist noch keine externe Identität verknüpft. Sie können diesen Anbieter verbinden, um sich später bei ihm anzumelden.",
"oauth-configuration": "OAuth-Konfiguration",
"oauth-configuration-description": "Geben Sie die OAuth-Client-Anmeldeinformationen und die bei der Anmeldung verwendeten Anbieterendpunkte ein.",
"provider": "Anbieterin",
"provider-id": "Anbieter-ID",
"provider-id-description": "Nur Kleinbuchstaben, Zahlen und Bindestriche. Dieser Wert wird Teil des Anbieterressourcennamens.",
"provider-uid": "UID",
@@ -938,7 +934,6 @@
},
"no-webhooks-found": "Keine Webhooks gefunden.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -646,9 +646,7 @@
"delete-warning-description": "ΑΥΤΗ Η ΕΝΕΡΓΕΙΑ ΕΙΝΑΙ ΜΗ ΑΝΤΙΣΤΡΕΦΗ",
"label": "Μέλος",
"list-title": "Λίστα μελών",
"member-column": "Μέλος",
"restore-success": "Το {{username}} αποκαταστάθηκε με επιτυχία",
"summary-column": "Περίληψη",
"user": "Μεταχειριζόμενος",
"no-members-found": "Δεν βρέθηκαν μέλη",
"export-memos": "Εξαγωγή σημειώσεων",
@@ -877,7 +875,6 @@
"client-id": "Αναγνωριστικό πελάτη",
"client-secret": "Μυστικό πελάτη",
"client-secret-optional-description": "Αφήστε το κενό για να διατηρήσετε το υπάρχον μυστικό του πελάτη αμετάβλητο.",
"configuration": "Διαμόρφωση",
"configuration-summary-description": "Εμφάνιση των βασικών στοιχείων που βοηθούν στον εντοπισμό και τον έλεγχο ενός παρόχου χωρίς να εκτίθεται η πλήρης διαμόρφωση ενσωματωμένη.",
"confirm-delete": "Είστε βέβαιοι ότι θέλετε να διαγράψετε τη διαμόρφωση `{{name}}` SSO; ΑΥΤΗ Η ΕΝΕΡΓΕΙΑ ΕΙΝΑΙ ΜΗ ΑΝΤΙΣΤΡΕΦΗ",
"create-sso": "Δημιουργήστε το SSO",
@@ -906,7 +903,6 @@
"not-linked-description": "Καμία εξωτερική ταυτότητα δεν έχει συνδεθεί ακόμα. Μπορείτε να συνδέσετε αυτόν τον πάροχο για να συνδεθείτε με αυτόν αργότερα.",
"oauth-configuration": "Διαμόρφωση OAuth",
"oauth-configuration-description": "Συμπληρώστε τα διαπιστευτήρια πελάτη OAuth και τα τελικά σημεία παρόχου που χρησιμοποιούνται κατά τη σύνδεση.",
"provider": "Προμηθευτής",
"provider-id": "Αναγνωριστικό παρόχου",
"provider-id-description": "Μόνο πεζά γράμματα, αριθμοί και παύλες. Αυτή η τιμή γίνεται μέρος του ονόματος του πόρου του παρόχου.",
"provider-uid": "UID",
@@ -1054,7 +1050,6 @@
},
"no-webhooks-found": "Δεν βρέθηκαν webhook.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -568,8 +568,6 @@
"no-members-found": "No members found",
"active": "Active",
"archived": "Archived",
"member-column": "Member",
"summary-column": "Summary",
"export-memos": "Export memos",
"username-password-required": "Username and password cannot be empty",
"create-success": "User created",
@@ -777,7 +775,6 @@
"basic-settings": "Basic settings",
"basic-settings-description": "Set the provider identity, display name, and optional identifier rules before filling in the OAuth details.",
"client-secret-optional-description": "Leave blank to keep the existing client secret unchanged.",
"configuration": "Configuration",
"configuration-summary-description": "Show the essentials that help identify and audit a provider without exposing the full configuration inline.",
"create-sso-description": "Create a new identity provider for administrator-managed single sign-on.",
"endpoints": "Endpoints",
@@ -799,7 +796,6 @@
"not-linked-description": "No external identity is linked yet. You can connect this provider to sign in with it later.",
"oauth-configuration": "OAuth configuration",
"oauth-configuration-description": "Fill in the OAuth client credentials and the provider endpoints used during sign-in.",
"provider": "Provider",
"provider-id": "Provider ID",
"provider-id-description": "Lowercase letters, numbers, and hyphens only. This value becomes part of the provider resource name.",
"provider-uid": "UID",
@@ -938,7 +934,6 @@
},
"no-webhooks-found": "No webhooks found.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -724,9 +724,7 @@
"delete-warning-description": "THIS ACTION IS IRREVERSIBLE",
"label": "Member",
"list-title": "Member list",
"member-column": "Member",
"restore-success": "{{username}} restored successfully",
"summary-column": "Summary",
"user": "User",
"no-members-found": "No members found",
"export-memos": "Export memos",
@@ -1078,7 +1076,6 @@
"client-id": "Client ID",
"client-secret": "Client secret",
"client-secret-optional-description": "Leave blank to keep the existing client secret unchanged.",
"configuration": "Configuration",
"configuration-summary-description": "Show the essentials that help identify and audit a provider without exposing the full configuration inline.",
"confirm-delete": "Are you sure you want to delete `{{name}}` SSO configuration? THIS ACTION IS IRREVERSIBLE",
"create-sso": "Create SSO",
@@ -1107,7 +1104,6 @@
"not-linked-description": "No external identity is linked yet. You can connect this provider to sign in with it later.",
"oauth-configuration": "OAuth configuration",
"oauth-configuration-description": "Fill in the OAuth client credentials and the provider endpoints used during sign-in.",
"provider": "Provider",
"provider-id": "Provider ID",
"provider-id-description": "Lowercase letters, numbers, and hyphens only. This value becomes part of the provider resource name.",
"provider-uid": "UID",
@@ -1255,7 +1251,6 @@
},
"no-webhooks-found": "No webhooks found.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -569,8 +569,6 @@
"no-members-found": "No se encontraron miembros",
"active": "Activa",
"archived": "Archivada",
"member-column": "Miembro",
"summary-column": "Resumen",
"export-memos": "Exportar notas",
"username-password-required": "El nombre de usuario y la contraseña no pueden estar vacíos",
"create-success": "Usuario creado",
@@ -778,7 +776,6 @@
"basic-settings": "Configuraciones básicas",
"basic-settings-description": "Establezca la identidad del proveedor, el nombre para mostrar y las reglas de identificador opcionales antes de completar los detalles de OAuth.",
"client-secret-optional-description": "Déjelo en blanco para mantener el secreto del cliente existente sin cambios.",
"configuration": "Configuración",
"configuration-summary-description": "Muestre los elementos esenciales que ayudan a identificar y auditar a un proveedor sin exponer la configuración completa en línea.",
"create-sso-description": "Cree un nuevo proveedor de identidad para el inicio de sesión único administrado por el administrador.",
"endpoints": "Puntos finales",
@@ -800,7 +797,6 @@
"not-linked-description": "Ninguna identidad externa está vinculada todavía. Puede conectar este proveedor para iniciar sesión con él más tarde.",
"oauth-configuration": "Configuración OAuth",
"oauth-configuration-description": "Complete las credenciales del cliente OAuth y los puntos finales del proveedor utilizados durante el inicio de sesión.",
"provider": "Proveedora",
"provider-id": "ID del proveedor",
"provider-id-description": "Sólo letras minúsculas, números y guiones. Este valor pasa a formar parte del nombre del recurso del proveedor.",
"provider-uid": "UID",
@@ -939,7 +935,6 @@
},
"no-webhooks-found": "No se encontraron webhooks.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -646,9 +646,7 @@
"delete-warning-description": "SEE TEGEVUS ON Pöördumatu",
"label": "liige",
"list-title": "Liikmete nimekiri",
"member-column": "liige",
"restore-success": "{{username}} taastati edukalt",
"summary-column": "Kokkuvõte",
"user": "Kasutaja",
"no-members-found": "Ühtegi liiget ei leitud",
"export-memos": "Ekspordi märkmed",
@@ -877,7 +875,6 @@
"client-id": "Kliendi ID",
"client-secret": "Kliendi saladus",
"client-secret-optional-description": "Jätke tühjaks, et olemasoleva kliendi saladus jääks muutumatuks.",
"configuration": "Seadistamine",
"configuration-summary-description": "Näidake olulisi elemente, mis aitavad teenusepakkujat tuvastada ja auditeerida ilma kogu konfiguratsiooni tekstisiseselt paljastamata.",
"confirm-delete": "Kas olete kindel, et soovite `{{name}}` SSO konfiguratsiooni kustutada? SEE TEGEVUS ON Pöördumatu",
"create-sso": "Looge SSO",
@@ -906,7 +903,6 @@
"not-linked-description": "Välist identiteeti pole veel lingitud. Saate selle teenusepakkujaga ühendada, et sellega hiljem sisse logida.",
"oauth-configuration": "OAuth konfiguratsioon",
"oauth-configuration-description": "Sisestage OAuth kliendi mandaadid ja sisselogimisel kasutatud pakkuja lõpp-punktid.",
"provider": "Pakkuja",
"provider-id": "Pakkuja ID",
"provider-id-description": "Ainult väikesed tähed, numbrid ja sidekriipsud. Sellest väärtusest saab osa pakkuja ressursi nimest.",
"provider-uid": "UID",
@@ -1054,7 +1050,6 @@
},
"no-webhooks-found": "Veebihaake ei leitud.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -486,9 +486,7 @@
"list-title": "لیست اعضا",
"no-members-found": "هیچ عضوی پیدا نشد",
"archived": "آرشیو شده",
"member-column": "عضو",
"active": "فعال",
"summary-column": "خلاصه",
"export-memos": "خروجی گرفتن از یادداشت‌ها",
"username-password-required": "نام کاربری و رمز عبور نمی‌توانند خالی باشند",
"create-success": "کاربر ایجاد شد",
@@ -687,7 +685,6 @@
"basic-settings": "تنظیمات اولیه",
"basic-settings-description": "قبل از پر کردن جزئیات OAuth، هویت ارائه‌دهنده، نام نمایشی و قوانین شناسه اختیاری را تنظیم کنید.",
"client-secret-optional-description": "برای حفظ حریم خصوصی کلاینت موجود، آن را خالی بگذارید.",
"configuration": "پیکربندی",
"configuration-summary-description": "موارد ضروری را که به شناسایی و ممیزی یک ارائه‌دهنده بدون افشای کل پیکربندی درون‌خطی کمک می‌کنند، نمایش دهید.",
"create-sso-description": "یک ارائه‌دهنده هویت جدید برای ورود یکپارچه تحت مدیریت مدیر ایجاد کنید.",
"endpoints": "نقاط پایانی",
@@ -709,7 +706,6 @@
"not-linked-description": "هنوز هیچ هویت خارجی پیوند داده نشده است. می‌توانید این ارائه‌دهنده را برای ورود به سیستم بعداً متصل کنید. پیکربندی",
"oauth-configuration": "OAuth",
"oauth-configuration-description": "اطلاعات احراز هویت کلاینت OAuth و نقاط پایانی ارائه‌دهنده مورد استفاده در هنگام ورود به سیستم را وارد کنید.",
"provider": "ارائه‌دهنده",
"provider-id": "شناسه ارائه‌دهنده",
"provider-id-description": "فقط حروف کوچک، اعداد و خط فاصله. این مقدار بخشی از نام منبع ارائه‌دهنده می‌شود.",
"redirect-url-description": "این URL پاسخ به تماس را با ارائه‌دهنده هویت خود ثبت کنید تا جریان کد مجوز بتواند تکمیل شود.",
@@ -933,7 +929,6 @@
},
"no-webhooks-found": "وب‌هوکی یافت نشد.",
"title": "وب‌هوک‌ها",
"url": "آدرس",
"label": "وب‌هوک‌ها"
},
"tags": {
-5
View File
@@ -646,9 +646,7 @@
"delete-warning-description": "TÄMÄ TOIMINTA ON PERUUTTAMATON",
"label": "Jäsen",
"list-title": "Jäsenluettelo",
"member-column": "Jäsen",
"restore-success": "{{username}} palautettiin onnistuneesti",
"summary-column": "Yhteenveto",
"user": "Käyttäjä",
"no-members-found": "Jäseniä ei löytynyt",
"export-memos": "Vie muistiinpanot",
@@ -877,7 +875,6 @@
"client-id": "Asiakastunnus",
"client-secret": "Asiakkaan salaisuus",
"client-secret-optional-description": "Jätä tyhjäksi, jotta nykyisen asiakkaan salaisuus pysyy muuttumattomana.",
"configuration": "Kokoonpano",
"configuration-summary-description": "Näytä olennaiset asiat, jotka auttavat tunnistamaan ja tarkastamaan palveluntarjoajan paljastamatta koko määritystä.",
"confirm-delete": "Haluatko varmasti poistaa `{{name}}` SSO -kokoonpanon? TÄMÄ TOIMINTA ON PERUUTTAMATON",
"create-sso": "Luo SSO",
@@ -906,7 +903,6 @@
"not-linked-description": "Ulkoista identiteettiä ei ole vielä linkitetty. Voit yhdistää tämän palveluntarjoajan kirjautuaksesi siihen myöhemmin.",
"oauth-configuration": "OAuth-kokoonpano",
"oauth-configuration-description": "Täytä OAuth-asiakastunnistetiedot ja sisäänkirjautumisen aikana käytetyt palveluntarjoajan päätepisteet.",
"provider": "Palveluntarjoaja",
"provider-id": "Palveluntarjoajan tunnus",
"provider-id-description": "Vain pienet kirjaimet, numerot ja yhdysmerkit. Tästä arvosta tulee osa toimittajan resurssin nimeä.",
"provider-uid": "UID",
@@ -1054,7 +1050,6 @@
},
"no-webhooks-found": "Webhookeja ei löytynyt.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -569,8 +569,6 @@
"no-members-found": "Aucun membre trouvé",
"active": "Active",
"archived": "Archivé",
"member-column": "Membre",
"summary-column": "Résumé",
"export-memos": "Exporter les mémos",
"username-password-required": "Le nom d'utilisateur et le mot de passe ne peuvent pas être vides",
"create-success": "Utilisateur créé",
@@ -778,7 +776,6 @@
"basic-settings": "Paramètres de base",
"basic-settings-description": "Définissez les règles d'identité du fournisseur, de nom d'affichage et d'identifiant facultatif avant de remplir les détails OAuth.",
"client-secret-optional-description": "Laissez vide pour conserver le secret client existant inchangé.",
"configuration": "Configuration",
"configuration-summary-description": "Présentez les éléments essentiels qui permettent d’identifier et d’auditer un fournisseur sans exposer la configuration complète en ligne.",
"create-sso-description": "Créez un nouveau fournisseur d'identité pour l'authentification unique gérée par l'administrateur.",
"endpoints": "Points de terminaison",
@@ -800,7 +797,6 @@
"not-linked-description": "Aucune identité externe n'est encore liée. Vous pouvez connecter ce fournisseur pour vous y connecter ultérieurement.",
"oauth-configuration": "Configuration OAuth",
"oauth-configuration-description": "Remplissez les informations d'identification du client OAuth et les points de terminaison du fournisseur utilisés lors de la connexion.",
"provider": "Fournisseuse",
"provider-id": "Identifiant du fournisseur",
"provider-id-description": "Lettres minuscules, chiffres et traits d'union uniquement. Cette valeur fait partie du nom de la ressource du fournisseur.",
"provider-uid": "UID",
@@ -939,7 +935,6 @@
},
"no-webhooks-found": "Aucun webhook trouvé.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -568,8 +568,6 @@
"no-members-found": "Non se atopou ningún membro",
"active": "Activo",
"archived": "Arquivado",
"member-column": "Membro",
"summary-column": "Resumo",
"export-memos": "Exportar notas",
"username-password-required": "O nome de usuario e o contrasinal non poden estar baleiros",
"create-success": "Usuario creado",
@@ -777,7 +775,6 @@
"basic-settings": "Configuración básica",
"basic-settings-description": "Establece a identidade do provedor, o nome para mostrar e as regras de identificador opcionais antes de cubrir os detalles do OAuth.",
"client-secret-optional-description": "Deixa en branco para manter o segredo do cliente existente sen cambios.",
"configuration": "Configuración",
"configuration-summary-description": "Mostra os elementos esenciais que axudan a identificar e auditar un provedor sen expor a configuración completa en liña.",
"create-sso-description": "Crea un novo provedor de identidade para o inicio de sesión único xestionado polo administrador.",
"endpoints": "Puntos finais",
@@ -799,7 +796,6 @@
"not-linked-description": "Aínda non hai ningunha identidade externa vinculada. Podes conectar este provedor para iniciar sesión con el máis tarde.",
"oauth-configuration": "Configuración OAuth",
"oauth-configuration-description": "Encha as credenciais do cliente OAuth e os puntos finais do provedor utilizados durante o inicio de sesión.",
"provider": "Provedor",
"provider-id": "ID do provedor",
"provider-id-description": "Só letras minúsculas, números e guións. Este valor pasa a formar parte do nome do recurso do provedor.",
"provider-uid": "UID",
@@ -938,7 +934,6 @@
},
"no-webhooks-found": "Non hai webhooks.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -679,9 +679,7 @@
"delete-warning-description": "פעולה זו אינה הפיכה",
"label": "חבר",
"list-title": "רשימת חברים",
"member-column": "חבר",
"restore-success": "{{username}} שוחזר/ה בהצלחה",
"summary-column": "סיכום",
"user": "משתמש",
"no-members-found": "לא נמצאו חברים",
"export-memos": "ייצוא פתקים",
@@ -910,7 +908,6 @@
"client-id": "מזהה לקוח",
"client-secret": "סוד לקוח",
"client-secret-optional-description": "השאירו ריק כדי להשאיר את סוד הלקוח הקיים ללא שינוי.",
"configuration": "הגדרה",
"configuration-summary-description": "הציגו את הפרטים החיוניים לזיהוי וביקורת של ספק בלי לחשוף את התצורה המלאה בתוך השורה.",
"confirm-delete": "האם אתם בטוחים שברצונכם למחוק את הגדרת ה־SSO \"{{name}}\"? פעולה זו אינה הפיכה",
"create-sso": "צור SSO",
@@ -939,7 +936,6 @@
"not-linked-description": "עדיין לא קושרה זהות חיצונית. תוכלו לחבר את הספק הזה כדי להתחבר באמצעותו מאוחר יותר.",
"oauth-configuration": "הגדרת OAuth",
"oauth-configuration-description": "מלאו את פרטי הכניסה של לקוח OAuth ואת נקודות הקצה של הספק המשמשות בעת ההתחברות.",
"provider": "ספק",
"provider-id": "מזהה ספק",
"provider-id-description": "מותר להשתמש באותיות קטנות, מספרים ומקפים בלבד. ערך זה יהפוך לחלק משם המשאב של הספק.",
"provider-uid": "UID",
@@ -1087,7 +1083,6 @@
},
"no-webhooks-found": "לא נמצאו Webhooks.",
"title": "Webhooks",
"url": "כתובת",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -486,9 +486,7 @@
"list-title": "सदस्य सूची",
"no-members-found": "कोई सदस्य नहीं मिला",
"archived": "संग्रहीत",
"member-column": "सदस्य",
"active": "एक्टिव",
"summary-column": "समरी",
"export-memos": "मेमो निर्यात करें",
"username-password-required": "उपयोगकर्ता नाम और पासवर्ड खाली नहीं हो सकते",
"create-success": "उपयोगकर्ता बनाया गया",
@@ -687,7 +685,6 @@
"basic-settings": "बेसिक सेटिंग्स",
"basic-settings-description": "OAuth डिटेल्स भरने से पहले प्रोवाइडर आइडेंटिटी, डिस्प्ले नेम और ऑप्शनल आइडेंटिफायर रूल्स सेट करें।",
"client-secret-optional-description": "मौजूदा क्लाइंट सीक्रेट को बिना बदले रखने के लिए खाली छोड़ दें।",
"configuration": "कॉन्फ़िगरेशन",
"configuration-summary-description": "वे ज़रूरी चीज़ें दिखाएँ जो पूरे कॉन्फ़िगरेशन को इनलाइन दिखाए बिना प्रोवाइडर को पहचानने और ऑडिट करने में मदद करती हैं।",
"create-sso-description": "एडमिनिस्ट्रेटर-मैनेज्ड सिंगल साइन-ऑन के लिए एक नया आइडेंटिटी प्रोवाइडर बनाएँ।",
"endpoints": "एंडपॉइंट्स",
@@ -709,7 +706,6 @@
"not-linked-description": "अभी तक कोई एक्सटर्नल आइडेंटिटी लिंक नहीं है। आप बाद में साइन इन करने के लिए इस प्रोवाइडर को कनेक्ट कर सकते हैं।",
"oauth-configuration": "OAuth कॉन्फ़िगरेशन",
"oauth-configuration-description": "साइन-इन के दौरान इस्तेमाल किए गए OAuth क्लाइंट क्रेडेंशियल और प्रोवाइडर एंडपॉइंट भरें।",
"provider": "प्रोवाइडर",
"provider-id": "प्रोवाइडर ID",
"provider-id-description": "सिर्फ़ लोअरकेस अक्षर, नंबर और हाइफ़न। यह वैल्यू प्रोवाइडर रिसोर्स नाम का हिस्सा बन जाती है।",
"redirect-url-description": "इस कॉलबैक URL को अपने आइडेंटिटी प्रोवाइडर के साथ रजिस्टर करें ताकि ऑथराइज़ेशन कोड फ़्लो पूरा हो सके।",
@@ -933,7 +929,6 @@
},
"no-webhooks-found": "कोई वेबहुक नहीं मिला।",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -569,8 +569,6 @@
"no-members-found": "Nema pronađenih članova",
"active": "Aktivan",
"archived": "Arhivirano",
"member-column": "Član",
"summary-column": "Sažetak",
"export-memos": "Izvezi bilješke",
"username-password-required": "Korisničko ime i lozinka ne smiju biti prazni",
"create-success": "Korisnik je stvoren",
@@ -778,7 +776,6 @@
"basic-settings": "Osnovne postavke",
"basic-settings-description": "Postavite identitet pružatelja usluga, ime za prikaz i izborna pravila identifikatora prije ispunjavanja pojedinosti OAuth.",
"client-secret-optional-description": "Ostavite prazno kako bi postojeća klijentska tajna ostala nepromijenjena.",
"configuration": "Konfiguracija",
"configuration-summary-description": "Pokažite bitne elemente koji pomažu u identificiranju i reviziji davatelja bez izlaganja pune konfiguracije.",
"create-sso-description": "Stvorite novog davatelja identiteta za jedinstvenu prijavu kojom upravlja administrator.",
"endpoints": "Krajnje točke",
@@ -800,7 +797,6 @@
"not-linked-description": "Nijedan vanjski identitet još nije povezan. Možete povezati ovog pružatelja usluga da biste se kasnije prijavili s njim.",
"oauth-configuration": "OAuth konfiguracija",
"oauth-configuration-description": "Ispunite OAuth vjerodajnice klijenta i krajnje točke pružatelja korištene tijekom prijave.",
"provider": "Davatelj",
"provider-id": "ID davatelja usluga",
"provider-id-description": "Samo mala slova, brojke i crtice. Ova vrijednost postaje dio naziva resursa pružatelja.",
"provider-uid": "UID",
@@ -939,7 +935,6 @@
},
"no-webhooks-found": "Nema pronađenih webhooks.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -568,8 +568,6 @@
"no-members-found": "Nem találhatók tagok",
"active": "Aktív",
"archived": "Archivált",
"member-column": "Tag",
"summary-column": "Összegzés",
"export-memos": "Jegyzetek exportálása",
"username-password-required": "A felhasználónév és a jelszó nem lehet üres",
"create-success": "Felhasználó létrehozva",
@@ -777,7 +775,6 @@
"basic-settings": "Alapbeállítások",
"basic-settings-description": "Az OAuth adatok kitöltése előtt állítsa be a szolgáltató azonosítóját, a megjelenített nevet és az opcionális azonosító szabályokat.",
"client-secret-optional-description": "Hagyja üresen, hogy a meglévő ügyfél titkossága változatlan maradjon.",
"configuration": "Konfiguráció",
"configuration-summary-description": "Mutassa meg azokat a lényeges dolgokat, amelyek segítenek azonosítani és ellenőrizni a szolgáltatót anélkül, hogy a teljes konfigurációt soron belül felfedné.",
"create-sso-description": "Hozzon létre egy új identitásszolgáltatót a rendszergazda által kezelt egyszeri bejelentkezéshez.",
"endpoints": "Végpontok",
@@ -799,7 +796,6 @@
"not-linked-description": "Még nincs külső személyazonosság összekapcsolva. Csatlakoztathatja ezt a szolgáltatót, hogy később bejelentkezhessen vele.",
"oauth-configuration": "OAuth konfiguráció",
"oauth-configuration-description": "Töltse ki az OAuth ügyfél hitelesítő adatait és a bejelentkezés során használt szolgáltatói végpontokat.",
"provider": "Szolgáltató",
"provider-id": "Szolgáltató azonosítója",
"provider-id-description": "Csak kisbetűk, számok és kötőjelek. Ez az érték a szolgáltatói erőforrás nevének részévé válik.",
"provider-uid": "UID",
@@ -938,7 +934,6 @@
},
"no-webhooks-found": "Nincs webhook.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -486,9 +486,7 @@
"list-title": "Daftar Anggota",
"no-members-found": "Tidak ada anggota yang ditemukan",
"archived": "Diarsipkan",
"member-column": "Anggota",
"active": "Aktif",
"summary-column": "Ringkasan",
"export-memos": "Ekspor memo",
"username-password-required": "Nama pengguna dan kata sandi tidak boleh kosong",
"create-success": "Pengguna dibuat",
@@ -687,7 +685,6 @@
"basic-settings": "Pengaturan dasar",
"basic-settings-description": "Tetapkan identitas penyedia, nama tampilan, dan aturan pengidentifikasi opsional sebelum mengisi detail OAuth.",
"client-secret-optional-description": "Biarkan kosong untuk menjaga agar rahasia klien yang ada tetap tidak berubah.",
"configuration": "Konfigurasi",
"configuration-summary-description": "Tampilkan hal-hal penting yang membantu mengidentifikasi dan mengaudit penyedia tanpa mengekspos konfigurasi lengkap secara langsung.",
"create-sso-description": "Buat penyedia identitas baru untuk single sign-on yang dikelola administrator.",
"endpoints": "Endpoint",
@@ -709,7 +706,6 @@
"not-linked-description": "Belum ada identitas eksternal yang tertaut. Anda dapat menghubungkan penyedia ini untuk masuk dengannya nanti.",
"oauth-configuration": "Konfigurasi OAuth",
"oauth-configuration-description": "Isi kredensial klien OAuth dan titik akhir penyedia yang digunakan selama masuk.",
"provider": "Penyedia",
"provider-id": "ID Penyedia",
"provider-id-description": "Hanya huruf kecil, angka, dan tanda hubung. Nilai ini menjadi bagian dari nama sumber daya penyedia.",
"redirect-url-description": "Daftarkan URL callback ini dengan penyedia identitas Anda agar alur kode otorisasi dapat diselesaikan.",
@@ -933,7 +929,6 @@
},
"no-webhooks-found": "Tidak ada webhook yang ditemukan.",
"title": "Webhook",
"url": "URL",
"label": "Webhook"
},
"tags": {
-5
View File
@@ -569,8 +569,6 @@
"no-members-found": "Nessun membro trovato",
"active": "Attiva",
"archived": "Archiviata",
"member-column": "Membro",
"summary-column": "Riepilogo",
"export-memos": "Esporta note",
"username-password-required": "Nome utente e password non possono essere vuoti",
"create-success": "Utente creato",
@@ -778,7 +776,6 @@
"basic-settings": "Impostazioni di base",
"basic-settings-description": "Imposta l'identità del provider, il nome visualizzato e le regole dell'identificatore facoltativo prima di compilare i dettagli OAuth.",
"client-secret-optional-description": "Lascia vuoto per mantenere invariato il segreto client esistente.",
"configuration": "Configurazione",
"configuration-summary-description": "Mostra gli elementi essenziali che aiutano a identificare e controllare un fornitore senza esporre l'intera configurazione in linea.",
"create-sso-description": "Creare un nuovo provider di identità per il Single Sign-On gestito dall'amministratore.",
"endpoints": "Endpoint",
@@ -800,7 +797,6 @@
"not-linked-description": "Nessuna identità esterna è ancora collegata. Puoi connettere questo provider per accedervi in ​​un secondo momento.",
"oauth-configuration": "Configurazione OAuth",
"oauth-configuration-description": "Compila le credenziali del client OAuth e gli endpoint del provider utilizzati durante l'accesso.",
"provider": "Fornitrice",
"provider-id": "Identificativo del fornitore",
"provider-id-description": "Solo lettere minuscole, numeri e trattini. Questo valore diventa parte del nome della risorsa del provider.",
"provider-uid": "UID",
@@ -939,7 +935,6 @@
},
"no-webhooks-found": "Nessun webhook trovato.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -568,8 +568,6 @@
"no-members-found": "メンバーが見つかりません",
"active": "アクティブ",
"archived": "アーカイブ済み",
"member-column": "メンバー",
"summary-column": "まとめ",
"export-memos": "メモをエクスポート",
"username-password-required": "ユーザー名とパスワードは必須です",
"create-success": "ユーザーを作成しました",
@@ -777,7 +775,6 @@
"basic-settings": "基本設定",
"basic-settings-description": "OAuth の詳細を入力する前に、プロバイダー ID、表示名、およびオプションの ID ルールを設定します。",
"client-secret-optional-description": "既存のクライアント シークレットを変更しない場合は、空白のままにします。",
"configuration": "構成",
"configuration-summary-description": "完全な構成をインラインで公開することなく、プロバイダーの識別と監査に役立つ重要な要素を示します。",
"create-sso-description": "管理者が管理するシングル サインオン用の新しい ID プロバイダーを作成します。",
"endpoints": "エンドポイント",
@@ -799,7 +796,6 @@
"not-linked-description": "外部 ID はまだリンクされていません。 このプロバイダーに接続して、後でサインインできます。",
"oauth-configuration": "OAuthの構成",
"oauth-configuration-description": "OAuth クライアントの資格情報と、サインイン時に使用されるプロバイダー エンドポイントを入力します。",
"provider": "プロバイダー",
"provider-id": "プロバイダーID",
"provider-id-description": "小文字、数字、ハイフンのみ。 この値はプロバイダー リソース名の一部になります。",
"provider-uid": "UID",
@@ -938,7 +934,6 @@
},
"no-webhooks-found": "Webhookが見つかりません。",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -568,8 +568,6 @@
"no-members-found": "წევრები ვერ მოიძებნა",
"active": "აქტიური",
"archived": "დაარქივებულია",
"member-column": "წევრი",
"summary-column": "რეზიუმე",
"export-memos": "ჩანაწერების ექსპორტი",
"username-password-required": "მომხმარებლის სახელი და პაროლი არ შეიძლება იყოს ცარიელი",
"create-success": "მომხმარებელი შეიქმნა",
@@ -777,7 +775,6 @@
"basic-settings": "ძირითადი პარამეტრები",
"basic-settings-description": "დააყენეთ პროვაიდერის ვინაობა, საჩვენებელი სახელი და არჩევითი იდენტიფიკატორის წესები OAuth დეტალების შევსებამდე.",
"client-secret-optional-description": "დატოვეთ ცარიელი, რომ არსებული კლიენტის საიდუმლო უცვლელი იყოს.",
"configuration": "კონფიგურაცია",
"configuration-summary-description": "აჩვენეთ ის არსებითი ელემენტები, რომლებიც გეხმარებათ პროვაიდერის იდენტიფიცირებასა და აუდიტში, სრული კონფიგურაციის ხაზში გამოვლენის გარეშე.",
"create-sso-description": "შექმენით ახალი საიდენტიფიკაციო პროვაიდერი ადმინისტრატორის მიერ მართული ერთჯერადი შესვლისთვის.",
"endpoints": "ბოლო წერტილები",
@@ -799,7 +796,6 @@
"not-linked-description": "გარე იდენტიფიკაცია ჯერ არ არის დაკავშირებული. შეგიძლიათ დაუკავშირდეთ ამ პროვაიდერს, რათა მოგვიანებით შეხვიდეთ მასთან.",
"oauth-configuration": "OAuth კონფიგურაცია",
"oauth-configuration-description": "შეავსეთ OAuth კლიენტის სერთიფიკატები და პროვაიდერის ბოლო წერტილები, რომლებიც გამოიყენება შესვლისას.",
"provider": "პროვაიდერი",
"provider-id": "პროვაიდერის ID",
"provider-id-description": "მხოლოდ მცირე ასოები, რიცხვები და დეფისები. ეს მნიშვნელობა ხდება პროვაიდერის რესურსის სახელის ნაწილი.",
"provider-uid": "UID",
@@ -938,7 +934,6 @@
},
"no-webhooks-found": "Webhook-ები ვერ მოიძებნა.",
"title": "Webhook-ები",
"url": "URL",
"label": "Webhook-ები"
},
"tags": {
-5
View File
@@ -486,9 +486,7 @@
"list-title": "멤버 목록",
"no-members-found": "회원을 찾을 수 없습니다.",
"archived": "보관 목록",
"member-column": "멤버",
"active": "활성",
"summary-column": "요약",
"export-memos": "메모 내보내기",
"username-password-required": "사용자 이름과 비밀번호는 비워 둘 수 없습니다",
"create-success": "사용자를 만들었습니다",
@@ -687,7 +685,6 @@
"basic-settings": "기본 설정",
"basic-settings-description": "OAuth 세부 정보를 입력하기 전에 공급자 ID, 표시 이름 및 선택적 식별자 규칙을 설정하십시오.",
"client-secret-optional-description": "기존 클라이언트 암호를 변경하지 않으려면 비워 두십시오.",
"configuration": "구성",
"configuration-summary-description": "전체 구성을 인라인으로 노출하지 않고 공급자를 식별하고 감사하는 데 도움이 되는 필수 정보를 표시합니다.",
"create-sso-description": "관리자가 관리하는 싱글 사인온(SSO)을 위한 새 ID 공급자를 생성합니다.",
"endpoints": "엔드포인트",
@@ -709,7 +706,6 @@
"not-linked-description": "아직 외부 ID가 연결되지 않았습니다. 나중에 이 공급자를 연결하여 로그인할 수 있습니다.",
"oauth-configuration": "OAuth 구성",
"oauth-configuration-description": "OAuth 클라이언트 자격 증명과 로그인 시 사용되는 공급자 엔드포인트를 입력합니다.",
"provider": "공급자",
"provider-id": "공급자 ID",
"provider-id-description": "소문자, 숫자 및 하이픈만 사용 가능합니다. 이 값은 공급자 리소스 이름의 일부가 됩니다.",
"redirect-url-description": "인증 코드 흐름을 완료할 수 있도록 이 콜백 URL을 ID 공급자에 등록합니다.",
@@ -933,7 +929,6 @@
},
"no-webhooks-found": "Webhook이 없습니다.",
"title": "Webhook",
"url": "URL",
"label": "Webhook"
},
"tags": {
-5
View File
@@ -648,9 +648,7 @@
"delete-warning-description": "ŠIS VEIKSMAS YRA NEGRĮŽTAMAS",
"label": "narys",
"list-title": "Narių sąrašas",
"member-column": "narys",
"restore-success": "{{username}} sėkmingai atkurtas",
"summary-column": "Santrauka",
"user": "Vartotojas",
"no-members-found": "Narių nerasta",
"export-memos": "Eksportuoti užrašus",
@@ -879,7 +877,6 @@
"client-id": "Kliento ID",
"client-secret": "Kliento paslaptis",
"client-secret-optional-description": "Palikite tuščią, kad esamo kliento paslaptis liktų nepakitusi.",
"configuration": "Konfigūracija",
"configuration-summary-description": "Parodykite esminius dalykus, kurie padeda identifikuoti ir tikrinti teikėją, neatskleidžiant visos konfigūracijos.",
"confirm-delete": "Ar tikrai norite ištrinti `{{name}}` SSO konfigūraciją? ŠIS VEIKSMAS YRA NEGRĮŽTAMAS",
"create-sso": "Sukurkite SSO",
@@ -908,7 +905,6 @@
"not-linked-description": "Jokia išorinė tapatybė dar nesusieta. Galite prisijungti prie šio teikėjo, kad prisijungtumėte prie jo vėliau.",
"oauth-configuration": "OAuth konfigūracija",
"oauth-configuration-description": "Įveskite OAuth kliento kredencialus ir teikėjo galinius taškus, naudojamus prisijungiant.",
"provider": "Teikėjas",
"provider-id": "Teikėjo ID",
"provider-id-description": "Tik mažosios raidės, skaičiai ir brūkšneliai. Ši reikšmė tampa teikėjo ištekliaus pavadinimo dalimi.",
"provider-uid": "UID",
@@ -1056,7 +1052,6 @@
},
"no-webhooks-found": "Žiniatinklio kabliukų nerasta.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -647,9 +647,7 @@
"delete-warning-description": "ŠĪ DARBĪBA IR NEATgriezeniska",
"label": "Biedrs",
"list-title": "Dalībnieku saraksts",
"member-column": "Biedrs",
"restore-success": "{{username}} ir veiksmīgi atjaunots",
"summary-column": "Kopsavilkums",
"user": "Lietotājs",
"no-members-found": "Nav atrasts neviens dalībnieks",
"export-memos": "Eksportēt piezīmes",
@@ -878,7 +876,6 @@
"client-id": "Klienta ID",
"client-secret": "Klienta noslēpums",
"client-secret-optional-description": "Atstājiet tukšu, lai saglabātu esošā klienta noslēpumu nemainīgu.",
"configuration": "Konfigurācija",
"configuration-summary-description": "Parādiet būtisko informāciju, kas palīdz identificēt un pārbaudīt pakalpojumu sniedzēju, neatklājot visu konfigurāciju.",
"confirm-delete": "Vai tiešām vēlaties dzēst `{{name}}` SSO konfigurāciju? ŠĪ DARBĪBA IR NEATgriezeniska",
"create-sso": "Izveidojiet SSO",
@@ -907,7 +904,6 @@
"not-linked-description": "Ārēja identitāte vēl nav saistīta. Varat izveidot savienojumu ar šo pakalpojumu sniedzēju, lai vēlāk pierakstītos.",
"oauth-configuration": "OAuth konfigurācija",
"oauth-configuration-description": "Ievadiet OAuth klienta akreditācijas datus un nodrošinātāja galapunktus, kas izmantoti pierakstīšanās laikā.",
"provider": "Pakalpojumu sniedzējs",
"provider-id": "Pakalpojumu sniedzēja ID",
"provider-id-description": "Tikai mazie burti, cipari un defises. Šī vērtība kļūst par daļu no nodrošinātāja resursa nosaukuma.",
"provider-uid": "UID",
@@ -1055,7 +1051,6 @@
},
"no-webhooks-found": "Tīmekļa aizķeres netika atrastas.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -486,9 +486,7 @@
"list-title": "सदस्य यादी",
"no-members-found": "कोणतेही सदस्य आढळले नाहीत",
"archived": "संग्रहित",
"member-column": "सदस्य",
"active": "सक्रिय",
"summary-column": "सारांश",
"export-memos": "मेमो निर्यात करा",
"username-password-required": "वापरकर्तानाव आणि पासवर्ड रिकामे असू शकत नाहीत",
"create-success": "वापरकर्ता तयार केला",
@@ -687,7 +685,6 @@
"basic-settings": "मूलभूत सेटिंग्ज",
"basic-settings-description": "OAuth तपशील भरण्यापूर्वी प्रदाता ओळख, प्रदर्शित नाव आणि पर्यायी ओळखकर्ता नियम सेट करा.",
"client-secret-optional-description": "विद्यमान क्लायंट सिक्रेट अपरिवर्तित ठेवण्यासाठी रिकामे सोडा.",
"configuration": "कॉन्फिगरेशन",
"configuration-summary-description": "संपूर्ण कॉन्फिगरेशन थेट न दाखवता, प्रदात्याला ओळखण्यासाठी आणि त्याचे ऑडिट करण्यासाठी मदत करणाऱ्या आवश्यक गोष्टी दाखवा.",
"create-sso-description": "प्रशासक-व्यवस्थापित सिंगल साइन-ऑनसाठी एक नवीन ओळख प्रदाता तयार करा.",
"endpoints": "एंडपॉइंट्स",
@@ -709,7 +706,6 @@
"not-linked-description": "अद्याप कोणतीही बाह्य ओळख लिंक केलेली नाही. तुम्ही नंतर साइन इन करण्यासाठी हा प्रोव्हायडर कनेक्ट करू शकता.",
"oauth-configuration": "OAuth कॉन्फिगरेशन",
"oauth-configuration-description": "साइन-इन दरम्यान वापरलेले OAuth क्लायंट क्रेडेंशियल्स आणि प्रोव्हायडर एंडपॉइंट्स भरा.",
"provider": "प्रोव्हायडर",
"provider-id": "प्रोव्हायडर आयडी",
"provider-id-description": "फक्त लहान लिपीतील अक्षरे, अंक आणि हायफन वापरा. ​​हे मूल्य प्रोव्हायडर रिसोर्स नावाचा भाग बनते.",
"redirect-url-description": "हा कॉलबॅक URL तुमच्या आयडेंटिटी प्रोव्हायडरकडे नोंदवा जेणेकरून ऑथोरायझेशन कोड फ्लो पूर्ण होऊ शकेल.",
@@ -933,7 +929,6 @@
},
"no-webhooks-found": "कोणतेही वेबहुक आढळले नाहीत.",
"title": "वेबहुक्स",
"url": "URL",
"label": "वेबहुक्स"
},
"tags": {
-5
View File
@@ -568,8 +568,6 @@
"no-members-found": "Ingen medlemmer funnet",
"active": "Aktiv",
"archived": "Arkivert",
"member-column": "Medlem",
"summary-column": "Sammendrag",
"export-memos": "Eksporter notater",
"username-password-required": "Brukernavn og passord kan ikke være tomme",
"create-success": "Bruker opprettet",
@@ -777,7 +775,6 @@
"basic-settings": "Grunnleggende innstillinger",
"basic-settings-description": "Angi leverandørens identitet, visningsnavn og valgfrie identifikatorregler før du fyller ut OAuth-detaljene.",
"client-secret-optional-description": "La stå tomt for å beholde den eksisterende klienthemmeligheten uendret.",
"configuration": "Konfigurasjon",
"configuration-summary-description": "Vis det essensielle som hjelper til med å identifisere og revidere en leverandør uten å avsløre hele konfigurasjonen inline.",
"create-sso-description": "Opprett en ny identitetsleverandør for administratoradministrert enkel pålogging.",
"endpoints": "Endepunkter",
@@ -799,7 +796,6 @@
"not-linked-description": "Ingen ekstern identitet er knyttet ennå. Du kan koble til denne leverandøren for å logge på med den senere.",
"oauth-configuration": "OAuth-konfigurasjon",
"oauth-configuration-description": "Fyll inn OAuth-klientlegitimasjonen og leverandørendepunktene som ble brukt under pålogging.",
"provider": "Leverandør",
"provider-id": "Leverandør-ID",
"provider-id-description": "Bare små bokstaver, tall og bindestreker. Denne verdien blir en del av leverandørressursnavnet.",
"provider-uid": "UID",
@@ -938,7 +934,6 @@
},
"no-webhooks-found": "Ingen webhooks funnet.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -568,8 +568,6 @@
"no-members-found": "Geen leden gevonden",
"active": "Actief",
"archived": "Gearchiveerd",
"member-column": "Lid",
"summary-column": "Samenvatting",
"export-memos": "Memo's exporteren",
"username-password-required": "Gebruikersnaam en wachtwoord mogen niet leeg zijn",
"create-success": "Gebruiker aangemaakt",
@@ -777,7 +775,6 @@
"basic-settings": "Basisinstellingen",
"basic-settings-description": "Stel de identiteit van de provider, de weergavenaam en de optionele identificatieregels in voordat u de OAuth-gegevens invult.",
"client-secret-optional-description": "Laat dit veld leeg om het bestaande klantgeheim ongewijzigd te laten.",
"configuration": "Configuratie",
"configuration-summary-description": "Toon de essentie die helpt bij het identificeren en controleren van een provider zonder de volledige inline configuratie bloot te leggen.",
"create-sso-description": "Maak een nieuwe identiteitsprovider voor door de beheerder beheerde eenmalige aanmelding.",
"endpoints": "Eindpunten",
@@ -799,7 +796,6 @@
"not-linked-description": "Er is nog geen externe identiteit gekoppeld. Je kunt deze provider koppelen om er later mee in te loggen.",
"oauth-configuration": "OAuth-configuratie",
"oauth-configuration-description": "Vul de OAuth-clientreferenties in en de providereindpunten die zijn gebruikt tijdens het inloggen.",
"provider": "Aanbieder",
"provider-id": "Provider-ID",
"provider-id-description": "Alleen kleine letters, cijfers en koppeltekens. Deze waarde wordt onderdeel van de resourcenaam van de provider.",
"provider-uid": "UID",
@@ -938,7 +934,6 @@
},
"no-webhooks-found": "Geen webhooks gevonden.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
+1 -6
View File
@@ -724,10 +724,8 @@
"delete-warning-description": "DENNE HANDLINGA KAN IKKJE GJERAST OM",
"label": "Medlem",
"list-title": "Medlemsliste",
"member-column": "Medlem",
"no-members-found": "Ingen medlemer funne",
"restore-success": "{{username}} er gjenoppretta",
"summary-column": "Samandrag",
"user": "Brukar",
"export-memos": "Eksporter notat",
"username-password-required": "Brukarnamn og passord kan ikkje vere tomme",
@@ -1096,7 +1094,6 @@
"client-id": "Klient-ID",
"client-secret": "Klientløyndom",
"client-secret-optional-description": "Lat feltet stå tomt for å halda på den noverande klientløyndomen.",
"configuration": "Oppsett",
"configuration-summary-description": "Vis dei viktigaste opplysningane for å kjenne att og kontrollere ein tilbydar, utan å vise heile oppsettet direkte.",
"confirm-delete": "Er du viss på at du vil slette SSO-oppsettet `{{name}}`? DENNE HANDLINGA KAN IKKJE GJERAST OM",
"create-sso": "Opprett SSO",
@@ -1125,7 +1122,6 @@
"not-linked-description": "Ingen ekstern identitet er knytt til kontoen din enno. Du kan knyte til denne tilbydaren for å logge inn med han seinare.",
"oauth-configuration": "OAuth-oppsett",
"oauth-configuration-description": "Fyll ut OAuth-klientlegitimasjonen og endepunkta til tilbydaren som vert nytta ved innlogging.",
"provider": "Tilbydar",
"provider-id": "Tilbydar-ID",
"provider-id-description": "Berre små bokstavar, tal og bindestrekar. Denne verdien vert ein del av ressursnamnet til tilbydaren.",
"provider-uid": "UID",
@@ -1290,8 +1286,7 @@
},
"label": "Vevkrokar",
"no-webhooks-found": "Ingen vevkrokar funne.",
"title": "Vevkrokar",
"url": "Adresse"
"title": "Vevkrokar"
}
},
"space": {
-5
View File
@@ -570,8 +570,6 @@
"no-members-found": "Nie znaleziono żadnych członków",
"active": "Aktywny",
"archived": "Zarchiwizowane",
"member-column": "Członek",
"summary-column": "Streszczenie",
"export-memos": "Eksportuj notatki",
"username-password-required": "Nazwa użytkownika i hasło nie mogą być puste",
"create-success": "Utworzono użytkownika",
@@ -779,7 +777,6 @@
"basic-settings": "Podstawowe ustawienia",
"basic-settings-description": "Przed wypełnieniem szczegółów OAuth ustaw tożsamość dostawcy, nazwę wyświetlaną i opcjonalne reguły identyfikatora.",
"client-secret-optional-description": "Pozostaw puste, aby zachować istniejący klucz tajny klienta bez zmian.",
"configuration": "Konfiguracja",
"configuration-summary-description": "Pokaż najważniejsze elementy, które pomagają zidentyfikować i przeprowadzić audyt dostawcy, bez ujawniania pełnej konfiguracji.",
"create-sso-description": "Utwórz nowego dostawcę tożsamości na potrzeby pojedynczego logowania zarządzanego przez administratora.",
"endpoints": "Endpointy",
@@ -801,7 +798,6 @@
"not-linked-description": "Żadna tożsamość zewnętrzna nie jest jeszcze połączona. Możesz połączyć się z tym dostawcą, aby zalogować się u niego później.",
"oauth-configuration": "Konfiguracja OAuth",
"oauth-configuration-description": "Wprowadź poświadczenia klienta OAuth i punkty końcowe dostawcy używane podczas logowania.",
"provider": "Dostawca",
"provider-id": "Identyfikator dostawcy",
"provider-id-description": "Tylko małe litery, cyfry i łączniki. Ta wartość staje się częścią nazwy zasobu dostawcy.",
"provider-uid": "UID",
@@ -940,7 +936,6 @@
},
"no-webhooks-found": "Nie znaleziono webhooków.",
"title": "Webhooki",
"url": "URL",
"label": "Webhooki"
},
"tags": {
-5
View File
@@ -487,9 +487,7 @@
"list-title": "Lista de membros",
"no-members-found": "Nenhum membro encontrado",
"archived": "Arquivo",
"member-column": "Membro",
"active": "Ativo",
"summary-column": "Resumo",
"export-memos": "Exportar memos",
"username-password-required": "Nome de usuário e senha não podem ficar vazios",
"create-success": "Usuário criado",
@@ -688,7 +686,6 @@
"basic-settings": "Configurações básicas",
"basic-settings-description": "Defina a identidade do provedor, o nome de exibição e as regras de identificação opcionais antes de preencher os detalhes OAuth.",
"client-secret-optional-description": "Deixe em branco para manter o segredo do cliente existente inalterado.",
"configuration": "Configuração",
"configuration-summary-description": "Mostre os itens essenciais que ajudam a identificar e auditar um provedor sem expor a configuração completa em linha.",
"create-sso-description": "Crie um novo provedor de identidade para logon único gerenciado pelo administrador.",
"endpoints": "Pontos de extremidade",
@@ -710,7 +707,6 @@
"not-linked-description": "Nenhuma identidade externa está vinculada ainda. Você pode conectar este provedor para fazer login com ele posteriormente.",
"oauth-configuration": "Configuração OAuth",
"oauth-configuration-description": "Preencha as credenciais do cliente OAuth e os endpoints do provedor usados ​​durante o login.",
"provider": "Provedor",
"provider-id": "ID do Provedor",
"provider-id-description": "Somente letras minúsculas, números e hífens. Este valor se torna parte do nome do recurso do provedor.",
"redirect-url-description": "Registre este URL de retorno de chamada com seu provedor de identidade para que o fluxo do código de autorização possa ser concluído.",
@@ -934,7 +930,6 @@
},
"no-webhooks-found": "Nenhum webhook encontrado.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -569,8 +569,6 @@
"no-members-found": "Nenhum membro encontrado",
"active": "Ativa",
"archived": "Arquivada",
"member-column": "Membro",
"summary-column": "Resumo",
"export-memos": "Exportar memos",
"username-password-required": "O nome de utilizador e a palavra-passe não podem estar vazios",
"create-success": "Utilizador criado",
@@ -778,7 +776,6 @@
"basic-settings": "Configurações básicas",
"basic-settings-description": "Defina a identidade do provedor, o nome de exibição e as regras de identificador opcional antes de preencher os detalhes do OAuth.",
"client-secret-optional-description": "Deixe em branco para manter o segredo do cliente existente inalterado.",
"configuration": "Configuração",
"configuration-summary-description": "Mostre os fundamentos que ajudam a identificar e auditar um provedor sem expor toda a configuração in-line.",
"create-sso-description": "Crie um novo provedor de identidade para logon único gerenciado pelo administrador.",
"endpoints": "Pontos finais",
@@ -800,7 +797,6 @@
"not-linked-description": "Nenhuma identidade externa está vinculada ainda. Você pode conectar este provedor para fazer login mais tarde.",
"oauth-configuration": "Configuração OAuth",
"oauth-configuration-description": "Preencha as credenciais do cliente OAuth e os pontos finais do fornecedor utilizados durante o login.",
"provider": "Provedor",
"provider-id": "ID do provedor",
"provider-id-description": "Apenas letras minúsculas, números e hifens. Esse valor passa a fazer parte do nome do recurso do provedor.",
"provider-uid": "UID",
@@ -939,7 +935,6 @@
},
"no-webhooks-found": "Nenhum webhook encontrado.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -647,9 +647,7 @@
"delete-warning-description": "ACEASTA ACȚIUNE ESTE IRREVERSIBILĂ",
"label": "Membru",
"list-title": "Lista de membri",
"member-column": "Membru",
"restore-success": "{{username}} a fost restaurat cu succes",
"summary-column": "Rezumat",
"user": "Utilizator",
"no-members-found": "Nu s-au găsit membri",
"export-memos": "Exportă notițele",
@@ -878,7 +876,6 @@
"client-id": "ID client",
"client-secret": "Secretul clientului",
"client-secret-optional-description": "Lăsați necompletat pentru a păstra secretul clientului existent neschimbat.",
"configuration": "Configurare",
"configuration-summary-description": "Afișați elementele esențiale care ajută la identificarea și auditarea unui furnizor fără a expune configurația completă în linie.",
"confirm-delete": "Sigur doriți să ștergeți configurația `{{name}}` SSO? ACEASTA ACȚIUNE ESTE IRREVERSIBILĂ",
"create-sso": "Creați SSO",
@@ -907,7 +904,6 @@
"not-linked-description": "Nicio identitate externă nu este încă legată. Puteți conecta acest furnizor pentru a vă conecta mai târziu.",
"oauth-configuration": "Configurația OAuth",
"oauth-configuration-description": "Completați acreditările clientului OAuth și punctele finale ale furnizorului utilizate în timpul conectării.",
"provider": "Furnizor",
"provider-id": "ID furnizor",
"provider-id-description": "Numai litere mici, cifre și cratime. Această valoare devine parte din numele resursei furnizorului.",
"provider-uid": "UID",
@@ -1055,7 +1051,6 @@
},
"no-webhooks-found": "Nu s-au găsit webhooks.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -570,8 +570,6 @@
"no-members-found": "Участники не найдены",
"active": "Активный",
"archived": "В архиве",
"member-column": "Член",
"summary-column": "Краткое содержание",
"export-memos": "Экспортировать заметки",
"username-password-required": "Имя пользователя и пароль не могут быть пустыми",
"create-success": "Пользователь создан",
@@ -779,7 +777,6 @@
"basic-settings": "Основные настройки",
"basic-settings-description": "Прежде чем заполнять данные OAuth, установите правила идентификации поставщика, отображаемого имени и дополнительных идентификаторов.",
"client-secret-optional-description": "Оставьте пустым, чтобы сохранить существующий секрет клиента без изменений.",
"configuration": "Конфигурация",
"configuration-summary-description": "Покажите основные сведения, которые помогут идентифицировать и проверить поставщика, не раскрывая полную конфигурацию в режиме реального времени.",
"create-sso-description": "Создайте нового поставщика удостоверений для единого входа, управляемого администратором.",
"endpoints": "Конечные точки",
@@ -801,7 +798,6 @@
"not-linked-description": "Никакие внешние идентификаторы пока не связаны. Вы можете подключить этого провайдера, чтобы войти в систему позже.",
"oauth-configuration": "Конфигурация OAuth",
"oauth-configuration-description": "Введите учетные данные клиента OAuth и конечные точки поставщика, используемые при входе в систему.",
"provider": "Поставщик",
"provider-id": "Идентификатор поставщика",
"provider-id-description": "Только строчные буквы, цифры и дефисы. Это значение становится частью имени ресурса поставщика.",
"provider-uid": "UID",
@@ -940,7 +936,6 @@
},
"no-webhooks-found": "Нет вебхуков",
"title": "Вебхуки",
"url": "Ссылка",
"label": "Вебхуки"
},
"tags": {
-5
View File
@@ -648,9 +648,7 @@
"delete-warning-description": "TÁTO AKCIA JE NEVRATNÁ",
"label": "člen",
"list-title": "Zoznam členov",
"member-column": "člen",
"restore-success": "{{username}} bol úspešne obnovený",
"summary-column": "Zhrnutie",
"user": "Používateľ",
"no-members-found": "Nenašli sa žiadni členovia",
"export-memos": "Exportovať poznámky",
@@ -879,7 +877,6 @@
"client-id": "ID klienta",
"client-secret": "Tajomstvo klienta",
"client-secret-optional-description": "Ak chcete zachovať tajomstvo existujúceho klienta bez zmeny, nechajte pole prázdne.",
"configuration": "Konfigurácia",
"configuration-summary-description": "Ukážte základy, ktoré pomáhajú identifikovať a auditovať poskytovateľa bez toho, aby ste odhalili celú konfiguráciu.",
"confirm-delete": "Naozaj chcete vymazať konfiguráciu `{{name}}` SSO? TÁTO AKCIA JE NEVRATNÁ",
"create-sso": "Vytvorte SSO",
@@ -908,7 +905,6 @@
"not-linked-description": "Zatiaľ nie je prepojená žiadna externá identita. Môžete pripojiť tohto poskytovateľa a prihlásiť sa s ním neskôr.",
"oauth-configuration": "Konfigurácia OAuth",
"oauth-configuration-description": "Vyplňte poverenia klienta OAuth a koncové body poskytovateľa použité počas prihlásenia.",
"provider": "Poskytovateľ",
"provider-id": "ID poskytovateľa",
"provider-id-description": "Len malé písmená, čísla a spojovníky. Táto hodnota sa stane súčasťou názvu prostriedku poskytovateľa.",
"provider-uid": "UID",
@@ -1056,7 +1052,6 @@
},
"no-webhooks-found": "Nenašli sa žiadne webhooky.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -570,8 +570,6 @@
"no-members-found": "Ni članov",
"active": "Aktiven",
"archived": "Arhivirano",
"member-column": "član",
"summary-column": "Povzetek",
"export-memos": "Izvozi zapiske",
"username-password-required": "Uporabniško ime in geslo ne smeta biti prazna",
"create-success": "Uporabnik ustvarjen",
@@ -779,7 +777,6 @@
"basic-settings": "Osnovne nastavitve",
"basic-settings-description": "Nastavite identiteto ponudnika, prikazno ime in pravila izbirnega identifikatorja, preden izpolnite podrobnosti OAuth.",
"client-secret-optional-description": "Pustite prazno, da obstoječa skrivnost odjemalca ostane nespremenjena.",
"configuration": "Konfiguracija",
"configuration-summary-description": "Prikažite bistvene elemente, ki pomagajo identificirati in revidirati ponudnika, ne da bi pri tem izpostavili celotno konfiguracijo.",
"create-sso-description": "Ustvarite novega ponudnika identitete za enotno prijavo, ki jo upravlja skrbnik.",
"endpoints": "Končne točke",
@@ -801,7 +798,6 @@
"not-linked-description": "Nobena zunanja identiteta še ni povezana. Tega ponudnika lahko povežete, da se pozneje prijavite z njim.",
"oauth-configuration": "konfiguracija OAuth",
"oauth-configuration-description": "Izpolnite poverilnice odjemalca OAuth in končne točke ponudnika, uporabljene med prijavo.",
"provider": "Ponudnik",
"provider-id": "ID ponudnika",
"provider-id-description": "Samo male črke, številke in vezaji. Ta vrednost postane del imena vira ponudnika.",
"provider-uid": "UID",
@@ -940,7 +936,6 @@
},
"no-webhooks-found": "Ne najdem nobenega webhooka.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -647,9 +647,7 @@
"delete-warning-description": "ОВА АКЦИЈА ЈЕ НЕПОВРАТНА",
"label": "Члан",
"list-title": "Списак чланова",
"member-column": "Члан",
"restore-success": "{{username}} је успешно враћен",
"summary-column": "Резиме",
"user": "Корисник",
"no-members-found": "Није пронађен ниједан члан",
"export-memos": "Извези белешке",
@@ -878,7 +876,6 @@
"client-id": "ИД клијента",
"client-secret": "Тајна клијента",
"client-secret-optional-description": "Оставите празно да би постојећа тајна клијента остала непромењена.",
"configuration": "Конфигурација",
"configuration-summary-description": "Прикажите основне ствари које помажу у идентификацији и ревизији добављача без излагања потпуне конфигурације на линији.",
"confirm-delete": "Да ли сте сигурни да желите да избришете `{{name}}` SSO конфигурацију? ОВА АКЦИЈА ЈЕ НЕПОВРАТНА",
"create-sso": "Креирајте SSO",
@@ -907,7 +904,6 @@
"not-linked-description": "Ниједан спољни идентитет још увек није повезан. Можете да повежете овог провајдера да бисте се касније пријавили са њим.",
"oauth-configuration": "OAuth конфигурација",
"oauth-configuration-description": "Попуните акредитиве клијента OAuth и крајње тачке добављача које се користе током пријављивања.",
"provider": "Провајдер",
"provider-id": "ИД провајдера",
"provider-id-description": "Само мала слова, бројеви и цртице. Ова вредност постаје део имена ресурса добављача.",
"provider-uid": "UID",
@@ -1055,7 +1051,6 @@
},
"no-webhooks-found": "Није пронађен ниједан веб-хук.",
"title": "КСК0Кс",
"url": "URL",
"label": "КСК0Кс"
},
"tags": {
-5
View File
@@ -568,8 +568,6 @@
"no-members-found": "Inga medlemmar hittades",
"active": "Aktiv",
"archived": "Arkiverad",
"member-column": "Medlem",
"summary-column": "Sammanfattning",
"export-memos": "Exportera anteckningar",
"username-password-required": "Användarnamn och lösenord får inte vara tomma",
"create-success": "Användaren har skapats",
@@ -777,7 +775,6 @@
"basic-settings": "Grundinställningar",
"basic-settings-description": "Ställ in leverantörens identitet, visningsnamn och valfria identifierare innan du fyller i OAuth-informationen.",
"client-secret-optional-description": "Lämna tomt för att behålla den befintliga klientens hemlighet oförändrad.",
"configuration": "Konfiguration",
"configuration-summary-description": "Visa det väsentliga som hjälper till att identifiera och granska en leverantör utan att exponera hela konfigurationen inline.",
"create-sso-description": "Skapa en ny identitetsleverantör för administratörshanterad enkel inloggning.",
"endpoints": "Slutpunkter",
@@ -799,7 +796,6 @@
"not-linked-description": "Ingen extern identitet är länkad ännu. Du kan ansluta den här leverantören för att logga in med den senare.",
"oauth-configuration": "OAuth-konfiguration",
"oauth-configuration-description": "Fyll i OAuth-klientens autentiseringsuppgifter och leverantörens slutpunkter som används under inloggningen.",
"provider": "Leverantör",
"provider-id": "Leverantörs-ID",
"provider-id-description": "Endast små bokstäver, siffror och bindestreck. Detta värde blir en del av leverantörens resursnamn.",
"provider-uid": "UID",
@@ -938,7 +934,6 @@
},
"no-webhooks-found": "Inga webhooks hittades.",
"title": "Webhooks",
"url": "URL",
"label": "Webhooks"
},
"tags": {
-5
View File
@@ -486,9 +486,7 @@
"list-title": "รายชื่อสมาชิก",
"no-members-found": "ไม่พบสมาชิก",
"archived": "เก็บถาวรแล้ว",
"member-column": "สมาชิก",
"active": "ใช้งานอยู่",
"summary-column": "สรุป",
"export-memos": "ส่งออกบันทึก",
"username-password-required": "ชื่อผู้ใช้และรหัสผ่านต้องไม่ว่างเปล่า",
"create-success": "สร้างผู้ใช้แล้ว",
@@ -687,7 +685,6 @@
"basic-settings": "การตั้งค่าพื้นฐาน",
"basic-settings-description": "ตั้งค่าข้อมูลประจำตัวผู้ให้บริการ ชื่อที่แสดง และกฎตัวระบุเพิ่มเติมก่อนกรอกรายละเอียด OAuth",
"client-secret-optional-description": "เว้นว่างไว้เพื่อคงรหัสลับไคลเอ็นต์ที่มีอยู่ไว้",
"configuration": "การกำหนดค่า",
"configuration-summary-description": "แสดงข้อมูลสำคัญที่ช่วยระบุและตรวจสอบผู้ให้บริการโดยไม่ต้องแสดงการกำหนดค่าทั้งหมดแบบอินไลน์",
"create-sso-description": "สร้างผู้ให้บริการข้อมูลประจำตัวใหม่สำหรับการลงชื่อเข้าใช้ครั้งเดียวที่จัดการโดยผู้ดูแลระบบ",
"endpoints": "จุดเชื่อมต่อ",
@@ -709,7 +706,6 @@
"not-linked-description": "ยังไม่มีการเชื่อมโยงข้อมูลประจำตัวภายนอก คุณสามารถเชื่อมต่อผู้ให้บริการนี้เพื่อเข้าสู่ระบบในภายหลังได้",
"oauth-configuration": "การกำหนดค่า OAuth",
"oauth-configuration-description": "กรอกข้อมูลประจำตัวไคลเอ็นต์ OAuth และปลายทางของผู้ให้บริการที่ใช้ระหว่างการลงชื่อเข้าใช้",
"provider": "ผู้ให้บริการ",
"provider-id": "รหัสผู้ให้บริการ",
"provider-id-description": "ใช้เฉพาะตัวอักษรพิมพ์เล็ก ตัวเลข และเครื่องหมายขีดกลางเท่านั้น ค่านี้จะกลายเป็นส่วนหนึ่งของชื่อทรัพยากรผู้ให้บริการ",
"redirect-url-description": "ลงทะเบียน URL การเรียกกลับนี้กับผู้ให้บริการข้อมูลประจำตัวของคุณ เพื่อให้กระบวนการรหัสการอนุญาตเสร็จสมบูรณ์",
@@ -933,7 +929,6 @@
},
"no-webhooks-found": "ไม่พบ webhook",
"title": "Webhook",
"url": "URL",
"label": "Webhook"
},
"tags": {
-5
View File
@@ -613,8 +613,6 @@
"no-members-found": "Üye bulunamadı",
"active": "Aktif",
"archived": "Arşivlendi",
"member-column": "Üye",
"summary-column": "Özet",
"export-memos": "Notları dışa aktar",
"username-password-required": "Kullanıcı adı ve parola boş olamaz",
"create-success": "Kullanıcı oluşturuldu",
@@ -945,7 +943,6 @@
"basic-settings": "Temel ayarlar",
"basic-settings-description": "OAuth ayrıntılarını doldurmadan önce sağlayıcı kimliğini, görünen adı ve isteğe bağlı tanımlayıcı kurallarını ayarlayın.",
"client-secret-optional-description": "Mevcut istemci sırrını değiştirmeden tutmak için boş bırakın.",
"configuration": "Yapılandırma",
"configuration-summary-description": "Tam yapılandırmayı satır içi olarak açığa çıkarmadan bir sağlayıcının tanımlanmasına ve denetlenmesine yardımcı olan temel bilgileri gösterin.",
"create-sso-description": "Yönetici tarafından yönetilen çoklu oturum açma için yeni bir kimlik sağlayıcı oluşturun.",
"endpoints": "Uç noktalar",
@@ -967,7 +964,6 @@
"not-linked-description": "Henüz hiçbir harici kimlik bağlantılı değil. Daha sonra oturum açmak için bu sağlayıcıya bağlanabilirsiniz.",
"oauth-configuration": "OAuth yapılandırması",
"oauth-configuration-description": "Oturum açma sırasında kullanılan OAuth istemci kimlik bilgilerini ve sağlayıcı uç noktalarını girin.",
"provider": "sağlayıcı",
"provider-id": "Sağlayıcı kimliği",
"provider-id-description": "Yalnızca küçük harfler, sayılar ve kısa çizgiler. Bu değer, sağlayıcı kaynak adının bir parçası haline gelir.",
"provider-uid": "UID",
@@ -1106,7 +1102,6 @@
},
"no-webhooks-found": "Webhook bulunamadı.",
"title": "Webhook'lar",
"url": "URL",
"label": "Webhook'lar"
},
"tags": {
-5
View File
@@ -570,8 +570,6 @@
"no-members-found": "Учасників не знайдено",
"active": "Активний",
"archived": "Архівовано",
"member-column": "Член",
"summary-column": "Резюме",
"export-memos": "Експортувати нотатки",
"username-password-required": "Ім’я користувача та пароль не можуть бути порожніми",
"create-success": "Користувача створено",
@@ -779,7 +777,6 @@
"basic-settings": "Основні налаштування",
"basic-settings-description": "Встановіть ідентифікатор постачальника, відображуване ім’я та додаткові правила ідентифікатора перед заповненням деталей OAuth.",
"client-secret-optional-description": "Залиште поле порожнім, щоб зберегти існуючий секрет клієнта без змін.",
"configuration": "Конфігурація",
"configuration-summary-description": "Покажіть основні елементи, які допоможуть ідентифікувати та перевірити постачальника, не розкриваючи повну вбудовану конфігурацію.",
"create-sso-description": "Створіть нового постачальника посвідчень для єдиного входу, керованого адміністратором.",
"endpoints": "Кінцеві точки",
@@ -801,7 +798,6 @@
"not-linked-description": "Зовнішня ідентифікація ще не пов’язана. Ви можете підключити цього постачальника, щоб увійти з ним пізніше.",
"oauth-configuration": "Конфігурація OAuth",
"oauth-configuration-description": "Заповніть облікові дані клієнта OAuth і кінцеві точки постачальника, які використовувалися під час входу.",
"provider": "Провайдер",
"provider-id": "ID постачальника",
"provider-id-description": "Лише малі літери, цифри та дефіси. Це значення стає частиною імені ресурсу постачальника.",
"provider-uid": "UID",
@@ -940,7 +936,6 @@
},
"no-webhooks-found": "Вебхуків не знайдено.",
"title": "Вебхуки",
"url": "Посилання",
"label": "Вебхуки"
},
"tags": {
-5
View File
@@ -486,9 +486,7 @@
"list-title": "Danh sách thành viên",
"no-members-found": "Không tìm thấy thành viên nào",
"archived": "Đã lưu trữ",
"member-column": "Thành viên",
"active": "Đang hoạt động",
"summary-column": "Tóm tắt",
"export-memos": "Xuất ghi chú",
"username-password-required": "Tên người dùng và mật khẩu không được để trống",
"create-success": "Đã tạo người dùng",
@@ -687,7 +685,6 @@
"basic-settings": "Cài đặt cơ bản",
"basic-settings-description": "Đặt danh tính nhà cung cấp, tên hiển thị và các quy tắc định danh tùy chọn trước khi điền thông tin chi tiết OAuth.",
"client-secret-optional-description": "Để trống để giữ nguyên mã bí mật máy khách hiện có.",
"configuration": "Cấu hình",
"configuration-summary-description": "Hiển thị các thông tin cần thiết giúp xác định và kiểm toán nhà cung cấp mà không hiển thị toàn bộ cấu hình trực tiếp.",
"create-sso-description": "Tạo nhà cung cấp danh tính mới cho đăng nhập một lần do quản trị viên quản lý.",
"endpoints": "Điểm cuối",
@@ -709,7 +706,6 @@
"not-linked-description": "Chưa có định danh bên ngoài nào được liên kết. Bạn có thể kết nối nhà cung cấp này để đăng nhập sau.",
"oauth-configuration": "Cấu hình OAuth",
"oauth-configuration-description": "Điền thông tin đăng nhập máy khách OAuth và các điểm cuối của nhà cung cấp được sử dụng trong quá trình đăng nhập.",
"provider": "Nhà cung cấp",
"provider-id": "ID nhà cung cấp",
"provider-id-description": "Chỉ chữ cái viết thường, số và dấu gạch ngang. Giá trị này trở thành một phần của tên tài nguyên nhà cung cấp.",
"redirect-url-description": "Đăng ký URL gọi lại này với nhà cung cấp danh tính của bạn để luồng mã ủy quyền có thể hoàn tất.",
@@ -933,7 +929,6 @@
},
"no-webhooks-found": "Không tìm thấy webhook nào.",
"title": "Webhook",
"url": "Url",
"label": "Webhook"
},
"tags": {
-5
View File
@@ -522,8 +522,6 @@
"user": "普通用户",
"label": "成员",
"list-title": "成员列表",
"member-column": "成员",
"summary-column": "摘要",
"no-members-found": "没有找到会员",
"export-memos": "导出备忘录",
"username-password-required": "用户名和密码不能为空",
@@ -749,7 +747,6 @@
"client-id": "客户端ID(Client ID)",
"client-secret": "客户端密钥(Client Secret)",
"client-secret-optional-description": "留空则保留现有的客户端密钥,不会覆盖。",
"configuration": "配置摘要",
"configuration-summary-description": "这里只展示便于识别和审查 provider 的关键信息,完整配置仍然通过编辑入口查看。",
"confirm-delete": "您确定要删除“{{name}}”单点登录配置吗?(此操作不可逆)",
"create-sso": "创建单点登录",
@@ -770,7 +767,6 @@
"not-linked": "未绑定",
"oauth-configuration": "OAuth 配置",
"oauth-configuration-description": "填写 OAuth 客户端凭据,以及登录流程中使用的 provider 端点。",
"provider": "提供程序",
"provider-id": "供应商 ID",
"provider-id-description": "仅支持小写字母、数字和连字符。该值会成为 provider 资源名的一部分。",
"provider-uid": "用户 UID",
@@ -1012,7 +1008,6 @@
},
"no-webhooks-found": "没有 Webhook。",
"title": "Webhook",
"url": "链接",
"label": "Webhook"
},
"tags": {
-5
View File
@@ -687,9 +687,7 @@
"delete-warning-description": "此操作無法恢復。",
"label": "使用者",
"list-title": "使用者列表",
"member-column": "成員",
"restore-success": "{{username}} 恢復成功",
"summary-column": "摘要",
"user": "使用者",
"no-members-found": "沒有找到成員",
"export-memos": "匯出備忘錄",
@@ -918,7 +916,6 @@
"client-id": "用戶端 ID(Client ID)",
"client-secret": "客戶端金鑰(Client Secret)",
"client-secret-optional-description": "留空以保留現有的客戶端金鑰不變。",
"configuration": "設定",
"configuration-summary-description": "顯示有助於識別和稽核身分識別提供者的基本資訊,而不會內嵌揭露完整設定。",
"confirm-delete": "您確定要刪除 `{{name}}` 的單一登入(SSO)設定嗎?此操作無法復原。",
"create-sso": "新增 SSO",
@@ -947,7 +944,6 @@
"not-linked-description": "尚未連結外部身分。您可以連接此身分識別提供者,以便日後使用它登入。",
"oauth-configuration": "OAuth 設定",
"oauth-configuration-description": "填寫 OAuth 用戶端憑證及登入時使用的身分識別提供者端點。",
"provider": "身分識別提供者",
"provider-id": "提供者 ID",
"provider-id-description": "僅限小寫字母、數字和連字號。此值將成為身分識別提供者資源名稱的一部分。",
"provider-uid": "UID",
@@ -1176,7 +1172,6 @@
},
"no-webhooks-found": "尚未建立任何 Webhook。",
"title": "Webhook",
"url": "網址",
"label": "Webhook"
},
"tags": {
+2 -2
View File
@@ -601,7 +601,7 @@ describe("App sidebar logo", () => {
expect(sidebarState.setMobileOpen).toHaveBeenCalledWith(false);
});
it("uses compact text-only actions for a saved view", async () => {
it("uses md text-only actions for a saved view", async () => {
authState.memoViews = [{ name: "memoViews/1", title: "testgp" }];
render(
<MemoryRouter initialEntries={["/"]}>
@@ -612,7 +612,7 @@ describe("App sidebar logo", () => {
fireEvent.click(screen.getByRole("button", { name: "common.edit testgp" }));
const menu = await screen.findByRole("menu");
expect(menu.closest(".mu-s-sm") ?? menu.querySelector(".mu-s-sm")).not.toBeNull();
expect(menu.closest(".mu-s-md") ?? menu.querySelector(".mu-s-md")).not.toBeNull();
const editItem = screen.getByRole("menuitem", { name: "common.edit" });
const deleteItem = screen.getByRole("menuitem", { name: "common.delete" });
expect(editItem.querySelector("svg")).toBeNull();
+22 -1
View File
@@ -34,7 +34,9 @@ describe("CreateAccessTokenDialog", () => {
it("creates a non-expiring token by default", async () => {
render(<CreateAccessTokenDialog open onOpenChange={vi.fn()} onSuccess={vi.fn()} />);
expect(screen.getByRole("radio", { name: "setting.access-token.create-dialog.duration-never" })).toBeChecked();
expect(screen.getByRole("combobox", { name: /setting.access-token.create-dialog.expiration/ })).toHaveTextContent(
"setting.access-token.create-dialog.duration-never",
);
fireEvent.change(screen.getByRole("textbox"), { target: { value: "CLI token" } });
fireEvent.click(screen.getByRole("button", { name: "common.create" }));
@@ -46,4 +48,23 @@ describe("CreateAccessTokenDialog", () => {
}),
);
});
it("creates a token with the selected expiration", async () => {
render(<CreateAccessTokenDialog open onOpenChange={vi.fn()} onSuccess={vi.fn()} />);
fireEvent.click(screen.getByRole("combobox", { name: /setting.access-token.create-dialog.expiration/ }));
const option = await screen.findByRole("option", { name: "setting.access-token.create-dialog.duration-90d" });
fireEvent.pointerDown(option, { pointerType: "mouse" });
fireEvent.click(option);
fireEvent.change(screen.getByRole("textbox"), { target: { value: "CLI token" } });
fireEvent.click(screen.getByRole("button", { name: "common.create" }));
await waitFor(() =>
expect(createPersonalAccessToken).toHaveBeenCalledWith({
parent: "users/alice",
description: "CLI token",
expiresInDays: 90,
}),
);
});
});
+64
View File
@@ -0,0 +1,64 @@
import { create } from "@bufbuild/protobuf";
import { fireEvent, render, screen, waitFor } from "@testing-library/react";
import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
import CreateUserDialog from "@/components/CreateUserDialog";
import { User_Role, UserSchema } from "@/types/proto/api/user_service_pb";
const state = vi.hoisted(() => ({
updateUser: vi.fn(),
managed: false,
}));
vi.mock("@/connect", () => ({
userServiceClient: { updateUser: state.updateUser },
}));
vi.mock("@/hooks/useConfigurationQueries", () => ({
useManagedResource: () => undefined,
isFieldManaged: (_resource: unknown, field: string) => state.managed && field === "role",
}));
vi.mock("@/utils/i18n", () => ({
useTranslate: () => (key: string) => key,
}));
describe("CreateUserDialog", () => {
beforeAll(() => {
Element.prototype.scrollIntoView = vi.fn();
Element.prototype.hasPointerCapture = vi.fn(() => false);
Element.prototype.setPointerCapture = vi.fn();
Element.prototype.releasePointerCapture = vi.fn();
});
beforeEach(() => {
state.managed = false;
state.updateUser.mockReset().mockResolvedValue(undefined);
});
const user = create(UserSchema, { name: "users/alice", username: "alice", role: User_Role.USER });
it("updates only the role after selecting an admin", async () => {
render(<CreateUserDialog open onOpenChange={vi.fn()} user={user} />);
fireEvent.click(screen.getByRole("combobox", { name: "common.role" }));
const option = await screen.findByRole("option", { name: "setting.member.admin" });
fireEvent.pointerDown(option, { pointerType: "mouse" });
fireEvent.click(option);
fireEvent.click(screen.getByRole("button", { name: "common.confirm" }));
await waitFor(() =>
expect(state.updateUser).toHaveBeenCalledWith({
user: expect.objectContaining({ name: "users/alice", role: User_Role.ADMIN }),
updateMask: expect.objectContaining({ paths: ["role"] }),
}),
);
});
it("keeps a role managed by configuration disabled", () => {
state.managed = true;
render(<CreateUserDialog open onOpenChange={vi.fn()} user={user} />);
expect(screen.getByRole("combobox", { name: "common.role" })).toBeDisabled();
expect(screen.getByRole("combobox", { name: "common.role" })).toHaveTextContent("setting.member.user");
});
});
+15 -1
View File
@@ -50,6 +50,20 @@ describe("memo editor timestamps", () => {
clients.updateMemo.mockImplementation(async ({ memo }: { memo: Memo }) => memo);
});
it("associates the input label and clears its invalid state after a valid edit", () => {
renderEditor();
const input = screen.getByRole("textbox", { name: "common.created-at" });
expect(screen.getByText("common.created-at")).toHaveAttribute("for", input.id);
fireEvent.change(input, { target: { value: "invalid" } });
fireEvent.blur(input);
expect(input).toHaveAttribute("aria-invalid", "true");
fireEvent.change(input, { target: { value: "2024-02-29 12:34:56" } });
expect(input).toHaveAttribute("aria-invalid", "false");
expect(editor.getState().timestamps.createTime).toEqual(customTime);
});
it.each([
[0, "createTime", "create_time"],
[1, "updateTime", "update_time"],
@@ -79,7 +93,7 @@ describe("memo editor timestamps", () => {
const input = screen.getAllByRole("textbox")[0];
fireEvent.change(input, { target: { value } });
fireEvent.blur(input);
expect(input).toHaveAttribute("data-invalid", "true");
expect(input).toHaveAttribute("aria-invalid", "true");
expect(editor.getState().timestamps.createTime).toEqual(originalCreate);
await memoService.save(editor.getState(), { memoName: memo.name }, ops);
expect(clients.updateMemo).not.toHaveBeenCalled();
+10
View File
@@ -100,6 +100,16 @@ describe("Quick Find navigation", () => {
};
const openQuickFind = () => fireEvent.click(screen.getByRole("button", { name: "Open Quick Find" }));
it("submits a text query from the input's search action", async () => {
renderSearch();
openQuickFind();
fireEvent.change(await screen.findByRole("textbox"), { target: { value: "roadmap" } });
fireEvent.click(screen.getByRole("button", { name: "common.search" }));
expect(state.setFilters).toHaveBeenCalledWith([{ factor: "contentSearch", value: "roadmap" }]);
await waitFor(() => expect(screen.queryByRole("dialog")).not.toBeInTheDocument());
});
it("preserves the draft when changing modes and submits CEL with Enter", async () => {
renderSearch();
openQuickFind();
+48
View File
@@ -0,0 +1,48 @@
import { fireEvent, render, screen, within } from "@testing-library/react";
import { Input, Switch } from "@usememos/ui";
import { useState } from "react";
import { describe, expect, it, vi } from "vitest";
import SettingGroup from "@/components/Settings/SettingGroup";
import { SettingList, SettingListItem } from "@/components/Settings/SettingList";
describe("setting rows", () => {
it("associates a list, input and description with their visible labels", () => {
render(
<SettingGroup title="Storage">
<SettingList>
<SettingListItem label="Bucket" description="The bucket used for uploads.">
<Input defaultValue="memos" />
</SettingListItem>
<SettingListItem label="File path" description="The path for new uploads." orientation="vertical">
<Input defaultValue="uploads/{filename}" />
</SettingListItem>
</SettingList>
</SettingGroup>,
);
const list = screen.getByRole("list", { name: "Storage" });
expect(within(list).getAllByRole("listitem")).toHaveLength(2);
expect(within(list).getByRole("textbox", { name: "Bucket" })).toHaveAccessibleDescription("The bucket used for uploads.");
expect(within(list).getByRole("textbox", { name: "File path" })).toHaveAccessibleDescription("The path for new uploads.");
});
it("toggles a setting through its label", () => {
const changed = vi.fn();
const Harness = () => {
const [checked, setChecked] = useState(false);
return (
<SettingList aria-label="Preferences">
<SettingListItem label="Link previews" description="Show previews of linked pages.">
<Switch checked={checked} onCheckedChange={(value) => (setChecked(value), changed(value))} />
</SettingListItem>
</SettingList>
);
};
render(<Harness />);
fireEvent.click(screen.getByText("Link previews"));
expect(screen.getByRole("switch", { name: "Link previews" })).toBeChecked();
expect(changed).toHaveBeenCalledWith(true);
});
});