@abpjs/ui 0.2.0-next.13 → 0.2.0-next.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +23 -0
- package/dist/guard.d.ts +1547 -0
- package/dist/guard.js +3566 -0
- package/dist/guard.js.map +1 -0
- package/dist/index.d.ts +108 -97
- package/dist/index.js +957 -915
- package/dist/index.js.map +1 -1
- package/package.json +6 -1
package/dist/guard.js
ADDED
|
@@ -0,0 +1,3566 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
// src/areas/guard/AccountEmailsPanel.tsx
|
|
4
|
+
import { useState } from "react";
|
|
5
|
+
import { HStack, Input, Stack, Text } from "@chakra-ui/react";
|
|
6
|
+
import { Button, DataTable, InlineAlert, notify, Panel, StatusPill, useApiAction, useAreaRequest, useFormatters } from "@abpjs/ui";
|
|
7
|
+
|
|
8
|
+
// src/areas/guard/texts.ts
|
|
9
|
+
import { Fragment, createElement, useCallback } from "react";
|
|
10
|
+
import { createAreaTexts } from "@abpjs/ui";
|
|
11
|
+
|
|
12
|
+
// src/areas/guard/texts/ar.json
|
|
13
|
+
var ar_default = {
|
|
14
|
+
"directories.title": "\u0627\u0644\u0623\u062F\u0644\u0629",
|
|
15
|
+
"directories.subtitle": "\u0623\u062F\u0644\u0629 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u064A\u0646 \u0645\u0631\u062A\u0628\u0629 \u062D\u0633\u0628 \u0627\u0644\u0623\u0633\u0628\u0642\u064A\u0629. \u0625\u0630\u0627 \u0639\u0631\u0641 \u062F\u0644\u064A\u0644\u0627\u0646 \u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0646\u0641\u0633\u0647\u060C \u0641\u0647\u0648 \u0644\u0623\u0648\u0644 \u062F\u0644\u064A\u0644 \u0646\u0634\u0637 \u0645\u0646\u0647\u0645\u0627.",
|
|
16
|
+
"directories.add": "\u0625\u0636\u0627\u0641\u0629 \u062F\u0644\u064A\u0644",
|
|
17
|
+
"directories.empty": "\u0644\u0627 \u062A\u0648\u062C\u062F \u0623\u062F\u0644\u0629.",
|
|
18
|
+
"directories.signIn": "\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644",
|
|
19
|
+
"directories.lastSync": "\u0622\u062E\u0631 \u0645\u0632\u0627\u0645\u0646\u0629",
|
|
20
|
+
"directories.syncNow": "\u0645\u0632\u0627\u0645\u0646\u0629 \u0627\u0644\u0622\u0646",
|
|
21
|
+
"directories.moveUp": "\u0646\u0642\u0644 {name} \u0625\u0644\u0649 \u0627\u0644\u0623\u0639\u0644\u0649",
|
|
22
|
+
"directories.moveDown": "\u0646\u0642\u0644 {name} \u0625\u0644\u0649 \u0627\u0644\u0623\u0633\u0641\u0644",
|
|
23
|
+
"directories.connectorDisabled": "\u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0645\u0648\u0635\u0644 \u0645\u0639\u0637\u0651\u0644\u0629",
|
|
24
|
+
"directories.pluginDisabledHint": "\u0627\u0644\u0625\u0636\u0627\u0641\u0629 {plugin} \u0645\u0639\u0637\u0651\u0644\u0629",
|
|
25
|
+
"directories.synced": "\u062A\u0645\u062A \u0645\u0632\u0627\u0645\u0646\u0629 {name}: \u0623\u064F\u0636\u064A\u0641 {added}\u060C \u0648\u062D\u064F\u062F\u0651\u062B {updated}\u060C \u0648\u0639\u064F\u0637\u0651\u0644 {deactivated}\u060C \u0648{groups} \u0645\u062C\u0645\u0648\u0639\u0629\u060C \u0648{memberships} \u0639\u0636\u0648\u064A\u0629.",
|
|
26
|
+
"directories.syncFailed": "\u0641\u0634\u0644\u062A \u0645\u0632\u0627\u0645\u0646\u0629 {name}: {error}",
|
|
27
|
+
"directories.internalType": "\u062F\u0627\u062E\u0644\u064A (\u064A\u062D\u0641\u0638\u0647 {product})",
|
|
28
|
+
"directories.warnings": "{count, plural, one {\u062A\u062D\u0630\u064A\u0631} two {\u062A\u062D\u0630\u064A\u0631\u0627\u0646} few {# \u062A\u062D\u0630\u064A\u0631\u0627\u062A} many {# \u062A\u062D\u0630\u064A\u0631\u064B\u0627} other {# \u062A\u062D\u0630\u064A\u0631}}",
|
|
29
|
+
"directories.addedWithWarnings": "\u0623\u064F\u0636\u064A\u0641 {name}. \u0641\u064A \u0625\u0639\u062F\u0627\u062F\u0627\u062A\u0647 \u062A\u062D\u0630\u064A\u0631\u0627\u062A:",
|
|
30
|
+
"directoryDetail.notFound": "\u0627\u0644\u062F\u0644\u064A\u0644 \u063A\u064A\u0631 \u0645\u0648\u062C\u0648\u062F",
|
|
31
|
+
"directoryDetail.back": "\u0627\u0644\u0639\u0648\u062F\u0629 \u0625\u0644\u0649 \u0627\u0644\u0623\u062F\u0644\u0629",
|
|
32
|
+
"directoryDetail.order": "\u0627\u0644\u062A\u0631\u062A\u064A\u0628 {order}",
|
|
33
|
+
"directoryDetail.signInEnabled": "\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0645\u0641\u0639\u0651\u0644",
|
|
34
|
+
"directoryDetail.signInDisabled": "\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0645\u0639\u0637\u0651\u0644",
|
|
35
|
+
"directoryDetail.connectorDisabled": "\u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0645\u0648\u0635\u0644 \u0645\u0639\u0637\u0651\u0644\u0629",
|
|
36
|
+
"directoryDetail.testConnection": "\u0627\u062E\u062A\u0628\u0627\u0631 \u0627\u0644\u0627\u062A\u0635\u0627\u0644",
|
|
37
|
+
"directoryDetail.syncNow": "\u0645\u0632\u0627\u0645\u0646\u0629 \u0627\u0644\u0622\u0646",
|
|
38
|
+
"directoryDetail.connectionSucceeded": "\u0646\u062C\u062D \u0627\u0644\u0627\u062A\u0635\u0627\u0644.",
|
|
39
|
+
"directoryDetail.connectionFailed": "\u0641\u0634\u0644 \u0627\u0644\u0627\u062A\u0635\u0627\u0644.",
|
|
40
|
+
"directoryDetail.found": "(\u0639\u064F\u062B\u0631 \u0639\u0644\u0649 {users} \u0645\u0633\u062A\u062E\u062F\u0645 \u0648{groups} \u0645\u062C\u0645\u0648\u0639\u0629)",
|
|
41
|
+
"directoryDetail.syncCompleted": "\u0627\u0643\u062A\u0645\u0644\u062A \u0627\u0644\u0645\u0632\u0627\u0645\u0646\u0629.",
|
|
42
|
+
"directoryDetail.syncFailed": "\u0641\u0634\u0644\u062A \u0627\u0644\u0645\u0632\u0627\u0645\u0646\u0629: {error}",
|
|
43
|
+
"directoryDetail.deleteTitle": "\u062D\u0630\u0641 \u0627\u0644\u062F\u0644\u064A\u0644 \xAB{name}\xBB\u061F",
|
|
44
|
+
"directoryDetail.deleteDescription": "\u0633\u062A\u064F\u062D\u0630\u0641 \u0627\u0644\u062D\u0633\u0627\u0628\u0627\u062A \u0648\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0627\u0644\u062A\u064A \u062C\u0631\u062A \u0645\u0632\u0627\u0645\u0646\u062A\u0647\u0627 \u0645\u0646\u0647.",
|
|
45
|
+
"directoryDetail.settings": "\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A",
|
|
46
|
+
"directoryDetail.saved": "\u062A\u0645 \u0627\u0644\u062D\u0641\u0638.",
|
|
47
|
+
"directoryDetail.summary": "\u0627\u0644\u0645\u0644\u062E\u0635",
|
|
48
|
+
"directoryDetail.syncInterval": "\u0641\u062A\u0631\u0629 \u0627\u0644\u0645\u0632\u0627\u0645\u0646\u0629",
|
|
49
|
+
"directoryDetail.minutes": "{count, plural, zero {# \u062F\u0642\u064A\u0642\u0629} one {\u062F\u0642\u064A\u0642\u0629 \u0648\u0627\u062D\u062F\u0629} two {\u062F\u0642\u064A\u0642\u062A\u0627\u0646} few {# \u062F\u0642\u0627\u0626\u0642} many {# \u062F\u0642\u064A\u0642\u0629} other {# \u062F\u0642\u064A\u0642\u0629}}",
|
|
50
|
+
"directoryDetail.onDemand": "\u0639\u0646\u062F \u0627\u0644\u0637\u0644\u0628",
|
|
51
|
+
"directoryDetail.plugin": "\u0627\u0644\u0625\u0636\u0627\u0641\u0629",
|
|
52
|
+
"directoryDetail.builtIn": "\u0645\u062F\u0645\u062C",
|
|
53
|
+
"directoryDetail.lastSync": "\u0622\u062E\u0631 \u0645\u0632\u0627\u0645\u0646\u0629",
|
|
54
|
+
"directoryDetail.testLogin": "\u0627\u062E\u062A\u0628\u0627\u0631 \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644",
|
|
55
|
+
"directoryDetail.testLoginHint": "\u064A\u062A\u062D\u0642\u0642 \u0645\u0646 \u0643\u0644 \u062E\u0637\u0648\u0629 \u0645\u0646 \u062E\u0637\u0648\u0627\u062A \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0639\u0628\u0631 \u0647\u0630\u0627 \u0627\u0644\u062F\u0644\u064A\u0644.",
|
|
56
|
+
"directoryDetail.runTest": "\u062A\u0634\u063A\u064A\u0644 \u0627\u0644\u0627\u062E\u062A\u0628\u0627\u0631",
|
|
57
|
+
"directoryDetail.testSteps": "\u062E\u0637\u0648\u0627\u062A \u0627\u062E\u062A\u0628\u0627\u0631 \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644",
|
|
58
|
+
"directoryDetail.steps.Connection": "\u0627\u0644\u0627\u062A\u0635\u0627\u0644 \u0628\u0627\u0644\u062F\u0644\u064A\u0644",
|
|
59
|
+
"directoryDetail.steps.FindUser": "\u0627\u0644\u0639\u062B\u0648\u0631 \u0639\u0644\u0649 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645",
|
|
60
|
+
"directoryDetail.steps.Authenticate": "\u0627\u0644\u062A\u062D\u0642\u0642 \u0645\u0646 \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",
|
|
61
|
+
"directoryDetail.steps.Precedence": "\u0627\u0644\u062F\u0644\u064A\u0644 \u064A\u0645\u0644\u0643 \u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 (\u0627\u0644\u0623\u0633\u0628\u0642\u064A\u0629)",
|
|
62
|
+
"directoryDetail.syncRuns": "\u0639\u0645\u0644\u064A\u0627\u062A \u0627\u0644\u0645\u0632\u0627\u0645\u0646\u0629",
|
|
63
|
+
"directoryDetail.noRuns": "\u0644\u0627 \u062A\u0648\u062C\u062F \u0639\u0645\u0644\u064A\u0627\u062A \u0645\u0632\u0627\u0645\u0646\u0629 \u0628\u0639\u062F.",
|
|
64
|
+
"directoryDetail.started": "\u0627\u0644\u0628\u062F\u0621",
|
|
65
|
+
"directoryDetail.finished": "\u0627\u0644\u0627\u0646\u062A\u0647\u0627\u0621",
|
|
66
|
+
"directoryDetail.result": "\u0627\u0644\u0646\u062A\u064A\u062C\u0629",
|
|
67
|
+
"directoryDetail.added": "\u0627\u0644\u0645\u064F\u0636\u0627\u0641",
|
|
68
|
+
"directoryDetail.updated": "\u0627\u0644\u0645\u064F\u062D\u062F\u064E\u0651\u062B",
|
|
69
|
+
"directoryDetail.deactivated": "\u0627\u0644\u0645\u064F\u0639\u0637\u064E\u0651\u0644",
|
|
70
|
+
"directoryDetail.memberships": "\u0627\u0644\u0639\u0636\u0648\u064A\u0627\u062A",
|
|
71
|
+
"directoryDetail.error": "\u0627\u0644\u062E\u0637\u0623",
|
|
72
|
+
"directoryDetail.warningsTitle": "\u0641\u064A \u0625\u0639\u062F\u0627\u062F\u0627\u062A\u0647 \u062A\u062D\u0630\u064A\u0631\u0627\u062A",
|
|
73
|
+
"directoryForm.name": "\u0627\u0644\u0627\u0633\u0645",
|
|
74
|
+
"directoryForm.type": "\u0627\u0644\u0646\u0648\u0639",
|
|
75
|
+
"directoryForm.selectType": "\u0627\u062E\u062A\u0631 \u0646\u0648\u0639\u064B\u0627",
|
|
76
|
+
"directoryForm.typeFromPlugin": "{name} (\u0627\u0644\u0625\u0636\u0627\u0641\u0629 {plugin})",
|
|
77
|
+
"directoryForm.syncInterval": "\u0641\u062A\u0631\u0629 \u0627\u0644\u0645\u0632\u0627\u0645\u0646\u0629 (\u0628\u0627\u0644\u062F\u0642\u0627\u0626\u0642)",
|
|
78
|
+
"directoryForm.syncIntervalHint": "\u0627\u062A\u0631\u0643\u0647 \u0641\u0627\u0631\u063A\u064B\u0627 \u0644\u0644\u0645\u0632\u0627\u0645\u0646\u0629 \u0639\u0646\u062F \u0627\u0644\u0637\u0644\u0628 \u0641\u0642\u0637.",
|
|
79
|
+
"directoryForm.active": "\u0646\u0634\u0637",
|
|
80
|
+
"directoryForm.signInEnabled": "\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0645\u0641\u0639\u0651\u0644",
|
|
81
|
+
"directoryForm.capabilities": "\u0627\u0644\u0642\u062F\u0631\u0627\u062A: {list}",
|
|
82
|
+
"directoryForm.connectionSettings": "\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u0627\u062A\u0635\u0627\u0644",
|
|
83
|
+
"directoryForm.fillFromPreset": "\u062A\u0639\u0628\u0626\u0629 \u0645\u0646 \u0625\u0639\u062F\u0627\u062F \u062C\u0627\u0647\u0632",
|
|
84
|
+
"directoryForm.choosePreset": "\u0627\u062E\u062A\u0631 \u0625\u0639\u062F\u0627\u062F\u064B\u0627 \u062C\u0627\u0647\u0632\u064B\u0627",
|
|
85
|
+
"directoryForm.loadingPresets": "\u062C\u0627\u0631\u064D \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062C\u0627\u0647\u0632\u0629",
|
|
86
|
+
"directoryForm.presetsUnavailable": "\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062C\u0627\u0647\u0632\u0629 \u063A\u064A\u0631 \u0645\u062A\u0627\u062D\u0629: {error}",
|
|
87
|
+
"directoryForm.keepSecret": "\u0627\u062A\u0631\u0643\u0647 \u0641\u0627\u0631\u063A\u064B\u0627 \u0644\u0644\u0625\u0628\u0642\u0627\u0621 \u0639\u0644\u0649 \u0627\u0644\u0642\u064A\u0645\u0629 \u0627\u0644\u0645\u062D\u0641\u0648\u0638\u0629",
|
|
88
|
+
"directoryForm.create": "\u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u062F\u0644\u064A\u0644",
|
|
89
|
+
"directoryForm.save": "\u062D\u0641\u0638 \u0627\u0644\u062A\u063A\u064A\u064A\u0631\u0627\u062A",
|
|
90
|
+
"accounts.title": "\u0627\u0644\u062D\u0633\u0627\u0628\u0627\u062A",
|
|
91
|
+
"accounts.subtitle": "\u0627\u0644\u062D\u0633\u0627\u0628\u0627\u062A \u0627\u0644\u0645\u0633\u0645\u0648\u062D \u0644\u0643 \u0628\u0631\u0624\u064A\u062A\u0647\u0627. \u062A\u062D\u062F\u062F \u0635\u0644\u0627\u062D\u064A\u0627\u062A\u0643 \u0627\u0644\u0623\u062F\u0644\u0629 \u0627\u0644\u0645\u0634\u0645\u0648\u0644\u0629.",
|
|
92
|
+
"accounts.create": "\u0625\u0646\u0634\u0627\u0621 \u062D\u0633\u0627\u0628 \u062F\u0627\u062E\u0644\u064A",
|
|
93
|
+
"accounts.createTitle": "\u0625\u0646\u0634\u0627\u0621 \u062D\u0633\u0627\u0628 \u062F\u0627\u062E\u0644\u064A",
|
|
94
|
+
"accounts.createHint": "\u062A\u064F\u062D\u0641\u0638 \u0627\u0644\u062D\u0633\u0627\u0628\u0627\u062A \u0627\u0644\u062F\u0627\u062E\u0644\u064A\u0629 \u0641\u064A \u062F\u0644\u064A\u0644 {product} \u0648\u062A\u0633\u062C\u0651\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0628\u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631.",
|
|
95
|
+
"accounts.createSubmit": "\u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u062D\u0633\u0627\u0628",
|
|
96
|
+
"accounts.created": "\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u062D\u0633\u0627\u0628 {username}.",
|
|
97
|
+
"accounts.search": "\u0627\u0644\u0628\u062D\u062B \u0641\u064A \u0627\u0644\u062D\u0633\u0627\u0628\u0627\u062A",
|
|
98
|
+
"accounts.searchPlaceholder": "\u0627\u0628\u062D\u062B \u0628\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0623\u0648 \u0627\u0644\u0627\u0633\u0645 \u0623\u0648 \u0627\u0644\u0628\u0631\u064A\u062F",
|
|
99
|
+
"accounts.allStatuses": "\u0643\u0644 \u0627\u0644\u062D\u0627\u0644\u0627\u062A",
|
|
100
|
+
"accounts.empty": "\u0644\u0627 \u062A\u0648\u062C\u062F \u062D\u0633\u0627\u0628\u0627\u062A \u0645\u0637\u0627\u0628\u0642\u0629.",
|
|
101
|
+
"accountDetail.account": "\u0627\u0644\u062D\u0633\u0627\u0628",
|
|
102
|
+
"accountDetail.owningDirectory": "\u0627\u0644\u062F\u0644\u064A\u0644 \u0627\u0644\u0645\u0627\u0644\u0643",
|
|
103
|
+
"accountDetail.lock": "\u0642\u0641\u0644",
|
|
104
|
+
"accountDetail.unlock": "\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0642\u0641\u0644",
|
|
105
|
+
"accountDetail.identities": "\u0627\u0644\u0647\u0648\u064A\u0627\u062A ({count})",
|
|
106
|
+
"accountDetail.identitiesHint": "\u0635\u0641 \u0644\u0643\u0644 \u062F\u0644\u064A\u0644 \u064A\u0639\u0631\u0641 \u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0647\u0630\u0627. \u064A\u0641\u0648\u0632 \u0623\u0648\u0644 \u062F\u0644\u064A\u0644 \u0646\u0634\u0637 \u062D\u0633\u0628 \u062A\u0631\u062A\u064A\u0628 \u0627\u0644\u0623\u0633\u0628\u0642\u064A\u0629\u060C \u0648\u062A\u064F\u062D\u062C\u0628 \u0627\u0644\u0628\u0642\u064A\u0629.",
|
|
107
|
+
"accountDetail.noIdentities": "\u0644\u0627 \u062A\u0648\u062C\u062F \u0647\u0648\u064A\u0627\u062A \u0641\u064A \u0627\u0644\u0623\u062F\u0644\u0629.",
|
|
108
|
+
"accountDetail.externalId": "\u0627\u0644\u0645\u0639\u0631\u0651\u0641 \u0627\u0644\u062E\u0627\u0631\u062C\u064A",
|
|
109
|
+
"accountDetail.lastSynced": "\u0622\u062E\u0631 \u0645\u0632\u0627\u0645\u0646\u0629",
|
|
110
|
+
"accountDetail.precedence": "\u0627\u0644\u0623\u0633\u0628\u0642\u064A\u0629",
|
|
111
|
+
"accountDetail.winning": "\u0627\u0644\u0641\u0627\u0626\u0632",
|
|
112
|
+
"accountDetail.shadowed": "\u0645\u062D\u062C\u0648\u0628",
|
|
113
|
+
"accountDetail.effectiveGroups": "\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0627\u0644\u0641\u0639\u0644\u064A\u0629 ({count})",
|
|
114
|
+
"accountDetail.noGroups": "\u0644\u064A\u0633 \u0639\u0636\u0648\u064B\u0627 \u0641\u064A \u0623\u064A \u0645\u062C\u0645\u0648\u0639\u0629.",
|
|
115
|
+
"accountDetail.secondFactor.title": "\u0627\u0644\u062A\u062D\u0642\u0642 \u0628\u062E\u0637\u0648\u062A\u064A\u0646",
|
|
116
|
+
"accountDetail.secondFactor.asked": "\u064A\u064F\u0637\u0644\u0628 \u0639\u0646\u062F \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644",
|
|
117
|
+
"accountDetail.secondFactor.notAsked": "\u0644\u0627 \u064A\u064F\u0637\u0644\u0628",
|
|
118
|
+
"accountDetail.secondFactor.mode": "\u0645\u0646 \u0645\u062C\u0645\u0648\u0639\u0627\u062A\u0647",
|
|
119
|
+
"accountDetail.secondFactor.factors": "\u0645\u0627 \u0623\u064F\u0639\u062F\u0651",
|
|
120
|
+
"accountDetail.secondFactor.none": "\u0644\u0645 \u064A\u064F\u0639\u062F\u0651 \u0634\u064A\u0621",
|
|
121
|
+
"accountDetail.secondFactor.recoveryLeft": "\u0631\u0645\u0648\u0632 \u0627\u0644\u0627\u0633\u062A\u0631\u062F\u0627\u062F \u0627\u0644\u0645\u062A\u0628\u0642\u064A\u0629",
|
|
122
|
+
"accountDetail.secondFactor.reset": "\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646 \u0627\u0644\u062A\u062D\u0642\u0642 \u0628\u062E\u0637\u0648\u062A\u064A\u0646",
|
|
123
|
+
"accountDetail.secondFactor.resetTitle": "\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646 \u0627\u0644\u062A\u062D\u0642\u0642 \u0628\u062E\u0637\u0648\u062A\u064A\u0646 \u0644\u0640 {name}\u061F",
|
|
124
|
+
"accountDetail.secondFactor.resetHint": "\u062A\u062A\u0648\u0642\u0641 \u062A\u0637\u0628\u064A\u0642\u0627\u062A \u0627\u0644\u0645\u0635\u0627\u062F\u0642\u0629 \u0648\u0631\u0645\u0648\u0632 \u0627\u0644\u0627\u0633\u062A\u0631\u062F\u0627\u062F \u0627\u0644\u062E\u0627\u0635\u0629 \u0628\u0647 \u0639\u0646 \u0627\u0644\u0639\u0645\u0644. \u0625\u0646 \u0643\u0627\u0646\u062A \u0625\u062D\u062F\u0649 \u0645\u062C\u0645\u0648\u0639\u0627\u062A\u0647 \u062A\u0634\u062A\u0631\u0637 \u0639\u0627\u0645\u0644\u064B\u0627 \u062B\u0627\u0646\u064A\u064B\u0627\u060C \u0641\u0633\u064A\u0639\u062F\u0651 \u0648\u0627\u062D\u062F\u064B\u0627 \u0645\u0646 \u062C\u062F\u064A\u062F \u0639\u0646\u062F \u062A\u0633\u062C\u064A\u0644 \u062F\u062E\u0648\u0644\u0647 \u0627\u0644\u062A\u0627\u0644\u064A. \u0644\u0627 \u062A\u0641\u0639\u0644 \u0630\u0644\u0643 \u0625\u0644\u0627 \u0628\u0639\u062F \u0627\u0644\u062A\u0623\u0643\u062F \u0645\u0646 \u0623\u0646\u0647 \u0647\u0648 \u0645\u0646 \u064A\u0637\u0644\u0628.",
|
|
125
|
+
"accountDetail.secondFactor.resetDone": "\u0623\u064F\u0639\u064A\u062F \u062A\u0639\u064A\u064A\u0646 \u0627\u0644\u062A\u062D\u0642\u0642 \u0628\u062E\u0637\u0648\u062A\u064A\u0646.",
|
|
126
|
+
"accountName.change": "\u062A\u063A\u064A\u064A\u0631",
|
|
127
|
+
"accountName.label": "\u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0645\u0639\u0631\u0648\u0636",
|
|
128
|
+
"accountName.save": "\u0627\u062D\u0641\u0638 \u0627\u0644\u0627\u0633\u0645",
|
|
129
|
+
"accountName.cancel": "\u0625\u0644\u063A\u0627\u0621",
|
|
130
|
+
"accountName.saved": "\u0623\u0635\u0628\u062D \u0627\u0644\u0627\u0633\u0645 {name}\u060C \u0623\u064A\u0646\u0645\u0627 \u0638\u0647\u0631.",
|
|
131
|
+
"accountName.languagesHint": "\u0627\u0643\u062A\u0628 \u0627\u0633\u0645\u0643 \u0628\u0643\u0644 \u0644\u063A\u0629 \u0645\u0646 \u0644\u063A\u0627\u062A \u0627\u0644\u0645\u0648\u0642\u0639: \u064A\u0631\u0627\u0647 \u0645\u0646 \u064A\u0642\u0631\u0623 \u0628\u062A\u0644\u0643 \u0627\u0644\u0644\u063A\u0629. \u0648\u064A\u0628\u0642\u0649 \u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0625\u0646\u062C\u0644\u064A\u0632\u064A \u0641\u064A \u0627\u0644\u0633\u062C\u0644.",
|
|
132
|
+
"groups.title": "\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A",
|
|
133
|
+
"groups.subtitle": "\u062A\u064F\u0646\u0634\u0623 \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0627\u0644\u0645\u062D\u0644\u064A\u0629 \u0641\u064A {product}\u060C \u0648\u062A\u0623\u062A\u064A \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0627\u0644\u0645\u062A\u0632\u0627\u0645\u0646\u0629 \u0645\u0646 \u062F\u0644\u064A\u0644. \u064A\u0645\u0643\u0646 \u0623\u0646 \u062A\u062D\u062A\u0648\u064A \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629 \u0639\u0644\u0649 \u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0623\u062E\u0631\u0649.",
|
|
134
|
+
"groups.create": "\u0625\u0646\u0634\u0627\u0621 \u0645\u062C\u0645\u0648\u0639\u0629",
|
|
135
|
+
"groups.created": "\u062A\u0645 \u0625\u0646\u0634\u0627\u0621 \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629 {name}.",
|
|
136
|
+
"groups.searchPlaceholder": "\u0627\u0644\u0628\u062D\u062B \u0641\u064A \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A",
|
|
137
|
+
"groups.allDirectories": "\u0643\u0644 \u0627\u0644\u0623\u062F\u0644\u0629",
|
|
138
|
+
"groups.empty": "\u0644\u0627 \u062A\u0648\u062C\u062F \u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0645\u0637\u0627\u0628\u0642\u0629.",
|
|
139
|
+
"groups.local": "\u0645\u062D\u0644\u064A\u0629",
|
|
140
|
+
"groups.synced": "\u0645\u062A\u0632\u0627\u0645\u0646\u0629",
|
|
141
|
+
"groups.readOnly": "\u0644\u0644\u0642\u0631\u0627\u0621\u0629 \u0641\u0642\u0637",
|
|
142
|
+
"groups.directMembers": "\u0627\u0644\u0623\u0639\u0636\u0627\u0621 \u0627\u0644\u0645\u0628\u0627\u0634\u0631\u0648\u0646",
|
|
143
|
+
"groups.memberGroups": "\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0627\u0644\u0623\u0639\u0636\u0627\u0621",
|
|
144
|
+
"groups.directoryHint": "\u0627\u0644\u0627\u0641\u062A\u0631\u0627\u0636\u064A \u0647\u0648 \u0627\u0644\u062F\u0644\u064A\u0644 \u0627\u0644\u062F\u0627\u062E\u0644\u064A.",
|
|
145
|
+
"groups.internalDefault": "\u062F\u0627\u062E\u0644\u064A (\u0627\u0641\u062A\u0631\u0627\u0636\u064A)",
|
|
146
|
+
"groups.kind": "\u0627\u0644\u0646\u0648\u0639",
|
|
147
|
+
"groups.kindHint": "\u0627\u0644\u0645\u0624\u0633\u0633\u0629 \u0645\u062C\u0645\u0648\u0639\u0629 \u064A\u0646\u062A\u0645\u064A \u0625\u0644\u064A\u0647\u0627 \u0627\u0644\u0639\u0645\u0644\u0627\u0621\u060C \u064A\u062F\u0648\u064A\u064B\u0627 \u0623\u0648 \u0628\u0646\u0637\u0627\u0642 \u0628\u0631\u064A\u062F\u0647\u0645.",
|
|
148
|
+
"groups.kinds.standard": "\u0645\u062C\u0645\u0648\u0639\u0629",
|
|
149
|
+
"groups.kinds.directory": "\u0643\u0644 \u0645\u0646 \u0641\u064A \u062F\u0644\u064A\u0644",
|
|
150
|
+
"groups.kinds.ou": "\u0648\u062D\u062F\u0629 \u062A\u0646\u0638\u064A\u0645\u064A\u0629",
|
|
151
|
+
"groups.kinds.organization": "\u0645\u0624\u0633\u0633\u0629",
|
|
152
|
+
"groups.domains": "\u0646\u0637\u0627\u0642\u0627\u062A \u0627\u0644\u0628\u0631\u064A\u062F",
|
|
153
|
+
"groups.domainsHint": "\u064A\u0646\u0636\u0645 \u0625\u0644\u064A\u0647\u0627 \u0645\u0646 \u0628\u0631\u064A\u062F\u0647 \u0641\u064A \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u0646\u0637\u0627\u0642\u0627\u062A (acme.com). \u0627\u0641\u0635\u0644 \u0628\u064A\u0646\u0647\u0627 \u0628\u0641\u0648\u0627\u0635\u0644.",
|
|
154
|
+
"groupDetail.delete": "\u062D\u0630\u0641 \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629",
|
|
155
|
+
"groupDetail.deleteTitle": "\u062D\u0630\u0641 \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629 \xAB{name}\xBB\u061F",
|
|
156
|
+
"groupDetail.writable": "\u0642\u0627\u0628\u0644\u0629 \u0644\u0644\u062A\u0639\u062F\u064A\u0644",
|
|
157
|
+
"groupDetail.directMembers": "\u0627\u0644\u0623\u0639\u0636\u0627\u0621 \u0627\u0644\u0645\u0628\u0627\u0634\u0631\u0648\u0646 ({count})",
|
|
158
|
+
"groupDetail.noMembers": "\u0644\u0627 \u064A\u0648\u062C\u062F \u0623\u0639\u0636\u0627\u0621 \u0645\u0628\u0627\u0634\u0631\u0648\u0646.",
|
|
159
|
+
"groupDetail.fromDirectory": "\u0645\u0646 \u0627\u0644\u062F\u0644\u064A\u0644",
|
|
160
|
+
"groupDetail.manual": "\u064A\u062F\u0648\u064A",
|
|
161
|
+
"groupDetail.remove": "\u0625\u0632\u0627\u0644\u0629",
|
|
162
|
+
"groupDetail.memberOf": "\u0639\u0636\u0648 \u0641\u064A ({count})",
|
|
163
|
+
"groupDetail.notNested": "\u0644\u064A\u0633\u062A \u0636\u0645\u0646 \u0623\u064A \u0645\u062C\u0645\u0648\u0639\u0629.",
|
|
164
|
+
"groupDetail.nestedGroups": "\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0627\u0644\u0645\u062A\u062F\u0627\u062E\u0644\u0629",
|
|
165
|
+
"groupDetail.readOnlyNotice": "\u0647\u0630\u0647 \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629 \u0644\u0644\u0642\u0631\u0627\u0621\u0629 \u0641\u0642\u0637 \u0641\u064A {product}: \u0623\u0639\u0636\u0627\u0624\u0647\u0627 \u064A\u0623\u062A\u0648\u0646 \u0645\u0646 \u0645\u0632\u0627\u0645\u0646\u0629 \u0627\u0644\u062F\u0644\u064A\u0644.",
|
|
166
|
+
"groupDetail.effectiveMembers": "\u0627\u0644\u0623\u0639\u0636\u0627\u0621 \u0627\u0644\u0641\u0639\u0644\u064A\u0648\u0646 ({count})",
|
|
167
|
+
"groupDetail.noEffectiveMembers": "\u0644\u0627 \u064A\u0635\u0644 \u0623\u064A \u062D\u0633\u0627\u0628 \u0625\u0644\u0649 \u0647\u0630\u0647 \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629.",
|
|
168
|
+
"groupDetail.addMember": "\u0625\u0636\u0627\u0641\u0629 \u0639\u0636\u0648",
|
|
169
|
+
"groupDetail.searchMembers": "\u0627\u0628\u062D\u062B \u0639\u0646 \u062D\u0633\u0627\u0628\u0627\u062A \u0623\u0648 \u0645\u062C\u0645\u0648\u0639\u0627\u062A",
|
|
170
|
+
"groupDetail.noMatches": "\u0644\u0627 \u062A\u0648\u062C\u062F \u0646\u062A\u0627\u0626\u062C \u0645\u0637\u0627\u0628\u0642\u0629.",
|
|
171
|
+
"groupDetail.alreadyMember": "\u0639\u0636\u0648 \u0628\u0627\u0644\u0641\u0639\u0644",
|
|
172
|
+
"groupDetail.add": "\u0625\u0636\u0627\u0641\u0629",
|
|
173
|
+
"groupDetail.accountCount": "{count, plural, zero {\u0644\u0627 \u062D\u0633\u0627\u0628\u0627\u062A} one {\u062D\u0633\u0627\u0628 \u0648\u0627\u062D\u062F} two {\u062D\u0633\u0627\u0628\u0627\u0646} few {# \u062D\u0633\u0627\u0628\u0627\u062A} many {# \u062D\u0633\u0627\u0628\u064B\u0627} other {# \u062D\u0633\u0627\u0628}}",
|
|
174
|
+
"groupDetail.expand": "\u062A\u0648\u0633\u064A\u0639 {name}",
|
|
175
|
+
"groupDetail.collapse": "\u0637\u064A\u0651 {name}",
|
|
176
|
+
"groupDetail.cycle": "\u062D\u0644\u0642\u0629",
|
|
177
|
+
"groupDetail.loadingTree": "\u062C\u0627\u0631\u064D \u0627\u0644\u062A\u062D\u0645\u064A\u0644",
|
|
178
|
+
"groupDetail.byDomain": "\u0628\u0646\u0637\u0627\u0642 \u0627\u0644\u0628\u0631\u064A\u062F",
|
|
179
|
+
"groupDetail.fromImport": "\u0645\u0646 \u0627\u0633\u062A\u064A\u0631\u0627\u062F",
|
|
180
|
+
"groupDetail.directoryNotice": "\u064A\u0636\u0639 {product} \u0641\u064A \u0647\u0630\u0647 \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629 \u0643\u0644 \u0645\u0646 \u064A\u0623\u062A\u064A \u062D\u0633\u0627\u0628\u0647 \u0645\u0646 \u0647\u0630\u0627 \u0627\u0644\u062F\u0644\u064A\u0644. \u0627\u0645\u0646\u062D\u0647\u0627 \u062F\u0648\u0631\u064B\u0627 \u0644\u062A\u0645\u0646\u062D\u0647 \u0644\u0644\u062F\u0644\u064A\u0644 \u0643\u0644\u0647\u060C \u0623\u0648 \u0636\u0639\u0647\u0627 \u062F\u0627\u062E\u0644 \u0645\u062C\u0645\u0648\u0639\u0629 \u0623\u062E\u0631\u0649.",
|
|
181
|
+
"groupDetail.ouNotice": "\u0643\u0644 \u0645\u0646 \u062A\u062D\u062A \u0647\u0630\u0647 \u0627\u0644\u0648\u062D\u062F\u0629 \u0627\u0644\u062A\u0646\u0638\u064A\u0645\u064A\u0629 \u0641\u064A \u0627\u0644\u062F\u0644\u064A\u0644\u060C \u0639\u0644\u0649 \u0623\u064A \u0639\u0645\u0642\u060C \u062D\u0633\u0628 \u0622\u062E\u0631 \u0645\u0632\u0627\u0645\u0646\u0629. \u063A\u064A\u0651\u0631 \u0627\u0644\u0648\u062D\u062F\u0627\u062A \u0645\u0646 \u0625\u0639\u062F\u0627\u062F\u0627\u062A \u0627\u0644\u062F\u0644\u064A\u0644.",
|
|
182
|
+
"groupDetail.organization": "\u0627\u0644\u0645\u0624\u0633\u0633\u0629",
|
|
183
|
+
"groupDetail.organizationHint": "\u064A\u0645\u0643\u0646 \u0644\u0639\u0645\u0644\u0627\u0621 \u0627\u0644\u0645\u0624\u0633\u0633\u0629 \u0645\u0634\u0627\u0631\u0643\u0629 \u0637\u0644\u0628\u0627\u062A\u0647\u0645 \u0641\u064A\u0645\u0627 \u0628\u064A\u0646\u0647\u0645 \u062D\u064A\u062B \u064A\u0633\u0645\u062D \u0646\u0648\u0639 \u0627\u0644\u0637\u0644\u0628 \u0628\u0630\u0644\u0643.",
|
|
184
|
+
"groupDetail.attributes": "\u0627\u0644\u0633\u0645\u0627\u062A",
|
|
185
|
+
"groupDetail.attributesHint": "\u0633\u0645\u0629 \u0641\u064A \u0643\u0644 \u0633\u0637\u0631: \u0627\u0644\u0627\u0633\u0645 = \u0627\u0644\u0642\u064A\u0645\u0629 (\u0631\u0642\u0645 \u0627\u0644\u0639\u0645\u064A\u0644 = 1042).",
|
|
186
|
+
"groupDetail.organizationSaved": "\u062D\u064F\u0641\u0638\u062A \u0627\u0644\u0645\u0624\u0633\u0633\u0629.",
|
|
187
|
+
"groupDetail.saveOrganization": "\u0627\u062D\u0641\u0638 \u0627\u0644\u0645\u0624\u0633\u0633\u0629",
|
|
188
|
+
"groupDetail.twoFactor.title": "\u0627\u0644\u062A\u062D\u0642\u0642 \u0628\u062E\u0637\u0648\u062A\u064A\u0646",
|
|
189
|
+
"groupDetail.twoFactor.hint": "\u0647\u0644 \u064A\u064F\u0637\u0644\u0628 \u0645\u0646 \u0627\u0644\u0623\u0639\u0636\u0627\u0621 \u0639\u0627\u0645\u0644 \u062B\u0627\u0646\u064D. \u064A\u062A\u0628\u0639 \u0643\u0644 \u0634\u062E\u0635 \u0627\u0644\u0623\u0634\u062F \u0628\u064A\u0646 \u062C\u0645\u064A\u0639 \u0645\u062C\u0645\u0648\u0639\u0627\u062A\u0647\u060C \u0628\u0645\u0627 \u0641\u064A\u0647\u0627 \u0627\u0644\u0645\u062A\u062F\u0627\u062E\u0644\u0629.",
|
|
190
|
+
"groupDetail.twoFactor.modes.off": "\u0645\u062A\u0648\u0642\u0641",
|
|
191
|
+
"groupDetail.twoFactor.modes.optional": "\u0645\u062A\u0627\u062D",
|
|
192
|
+
"groupDetail.twoFactor.modes.required": "\u0645\u0637\u0644\u0648\u0628",
|
|
193
|
+
"groupDetail.twoFactor.modes.strong": "\u0642\u0648\u064A",
|
|
194
|
+
"groupDetail.twoFactor.modeHints.off": "\u0644\u0627 \u064A\u064F\u0637\u0644\u0628 \u0645\u0646 \u0627\u0644\u0623\u0639\u0636\u0627\u0621\u060C \u0625\u0644\u0627 \u0645\u0646 \u0623\u0639\u062F\u0651 \u0648\u0627\u062D\u062F\u064B\u0627 \u0628\u0646\u0641\u0633\u0647.",
|
|
195
|
+
"groupDetail.twoFactor.modeHints.optional": "\u064A\u064F\u062A\u0627\u062D \u0639\u0646\u062F \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0648\u0644\u0627 \u064A\u064F\u0634\u062A\u0631\u0637\u061B \u0648\u0645\u0646 \u0623\u0639\u062F\u0651 \u0648\u0627\u062D\u062F\u064B\u0627 \u064A\u064F\u0637\u0644\u0628 \u0645\u0646\u0647.",
|
|
196
|
+
"groupDetail.twoFactor.modeHints.required": "\u064A\u064F\u0639\u062F\u0651 \u0627\u0644\u0623\u0639\u0636\u0627\u0621 \u0639\u0627\u0645\u0644\u064B\u0627 \u062B\u0627\u0646\u064A\u064B\u0627 \u0648\u064A\u064F\u062F\u062E\u0644\u0648\u0646 \u0631\u0645\u0632\u064B\u0627 \u0639\u0646\u062F \u0643\u0644 \u062A\u0633\u062C\u064A\u0644 \u062F\u062E\u0648\u0644.",
|
|
197
|
+
"groupDetail.twoFactor.modeHints.strong": "\u0643\u0627\u0644\u0645\u0637\u0644\u0648\u0628\u060C \u0648\u0628\u062A\u0637\u0628\u064A\u0642 \u0645\u0635\u0627\u062F\u0642\u0629 \u0641\u0642\u0637\u060C \u0644\u0627 \u0628\u0631\u0645\u0648\u0632 \u0627\u0644\u0628\u0631\u064A\u062F \u0623\u0648 \u0627\u0644\u0631\u0633\u0627\u0626\u0644 \u0627\u0644\u0646\u0635\u064A\u0629.",
|
|
198
|
+
"groupDetail.twoFactor.saved": "\u0627\u0644\u062A\u062D\u0642\u0642 \u0628\u062E\u0637\u0648\u062A\u064A\u0646 \u0644\u0640 {name}: {mode}.",
|
|
199
|
+
"groupDetail.twoFactor.pill": "\u0627\u0644\u062A\u062D\u0642\u0642 \u0628\u062E\u0637\u0648\u062A\u064A\u0646: {mode}",
|
|
200
|
+
"groupDetail.names": "\u0627\u0644\u0627\u0633\u0645 \u0628\u0643\u0644 \u0644\u063A\u0629",
|
|
201
|
+
"groupDetail.namesHint": "\u064A\u0631\u0649 \u0645\u0646 \u064A\u0642\u0631\u0623 \u0628\u0644\u063A\u0629\u064D \u0627\u0633\u0645\u064E \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0629 \u0628\u0647\u0627. \u0648\u064A\u0628\u0642\u0649 \u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0625\u0646\u062C\u0644\u064A\u0632\u064A \u0641\u064A \u0627\u0644\u0633\u062C\u0644 \u0648\u0641\u064A \u0627\u0644\u062F\u0644\u064A\u0644.",
|
|
202
|
+
"groupDetail.saveNames": "\u0627\u062D\u0641\u0638 \u0627\u0644\u0623\u0633\u0645\u0627\u0621",
|
|
203
|
+
"signUpSettings.title": "\u0627\u0644\u062A\u0633\u062C\u064A\u0644",
|
|
204
|
+
"signUpSettings.subtitle": "\u0647\u0644 \u064A\u0645\u0643\u0646 \u0644\u0644\u0646\u0627\u0633 \u0625\u0646\u0634\u0627\u0621 \u062D\u0633\u0627\u0628\u0627\u062A\u0647\u0645 \u0628\u0623\u0646\u0641\u0633\u0647\u0645. \u064A\u0624\u0643\u062F\u0648\u0646 \u0628\u0631\u064A\u062F\u0647\u0645 \u0623\u0648\u0644\u064B\u0627\u061B \u0648\u0645\u0627 \u064A\u0645\u0643\u0646\u0647\u0645 \u0627\u0633\u062A\u062E\u062F\u0627\u0645\u0647 \u062A\u062D\u062F\u062F\u0647 \u0627\u0644\u0623\u062F\u0648\u0627\u0631 \u0627\u0644\u062A\u064A \u062A\u0645\u0646\u062D\u0647\u0627.",
|
|
205
|
+
"signUpSettings.enabled": "\u064A\u0645\u0643\u0646 \u0644\u0644\u0646\u0627\u0633 \u0627\u0644\u062A\u0633\u062C\u064A\u0644",
|
|
206
|
+
"signUpSettings.directory": "\u0627\u0644\u062F\u0644\u064A\u0644",
|
|
207
|
+
"signUpSettings.directoryHint": "\u062A\u064F\u0646\u0634\u0623 \u0627\u0644\u062D\u0633\u0627\u0628\u0627\u062A \u0641\u064A \u0647\u0630\u0627 \u0627\u0644\u062F\u0644\u064A\u0644 \u0627\u0644\u062F\u0627\u062E\u0644\u064A. \u0623\u0636\u0641 \u062F\u0644\u064A\u0644\u064B\u0627 \u0645\u062B\u0644 \u0627\u0644\u0639\u0645\u0644\u0627\u0621 \u0645\u0646 \u0627\u0644\u0623\u062F\u0644\u0629.",
|
|
208
|
+
"signUpSettings.chooseDirectory": "\u0627\u062E\u062A\u0631 \u062F\u0644\u064A\u0644\u064B\u0627",
|
|
209
|
+
"signUpSettings.domains": "\u0646\u0637\u0627\u0642\u0627\u062A \u0627\u0644\u0628\u0631\u064A\u062F",
|
|
210
|
+
"signUpSettings.domainsHint": "\u0644\u0627 \u064A\u0633\u062C\u0644 \u0625\u0644\u0627 \u0623\u0635\u062D\u0627\u0628 \u0647\u0630\u0647 \u0627\u0644\u0646\u0637\u0627\u0642\u0627\u062A\u061B \u0627\u0644\u0641\u0627\u0631\u063A \u064A\u0642\u0628\u0644 \u0623\u064A\u064B\u0627 \u0645\u0646\u0647\u0627. \u0627\u0641\u0635\u0644 \u0628\u064A\u0646\u0647\u0627 \u0628\u0641\u0648\u0627\u0635\u0644.",
|
|
211
|
+
"signUpSettings.grantHint": "\u0644\u062A\u0645\u0646\u062D \u0627\u0644\u0645\u0633\u062C\u0651\u0644\u064A\u0646 \u0645\u0634\u0631\u0648\u0639\u064B\u0627\u060C \u0627\u0645\u0646\u062D \u062F\u0648\u0631 \u0627\u0644\u0639\u0645\u064A\u0644 \u0641\u064A\u0647 \u0644\u0644\u0645\u062C\u0645\u0648\u0639\u0629 {group} \u0645\u0646 \u0623\u0639\u0636\u0627\u0621 \u0627\u0644\u0645\u0634\u0631\u0648\u0639.",
|
|
212
|
+
"signUpSettings.save": "\u062D\u0641\u0638",
|
|
213
|
+
"signUpSettings.saved": "\u062D\u064F\u0641\u0638 \u0627\u0644\u062A\u0633\u062C\u064A\u0644.",
|
|
214
|
+
"anonymousAccess.title": "\u0627\u0644\u0648\u0635\u0648\u0644 \u0627\u0644\u0645\u062C\u0647\u0648\u0644",
|
|
215
|
+
"anonymousAccess.subtitle": "\u0643\u0644 \u062F\u0648\u0631 \u0645\u064F\u0646\u062D \u0644\u0644\u0632\u0648\u0627\u0631 \u0627\u0644\u0645\u062C\u0647\u0648\u0644\u064A\u0646. \u064A\u062D\u0635\u0644 \u0639\u0644\u064A\u0647\u0627 \u0623\u064A \u0634\u062E\u0635 \u0639\u0644\u0649 \u0627\u0644\u0625\u0646\u062A\u0631\u0646\u062A\u060C \u0641\u0623\u0628\u0642\u0647\u0627 \u0642\u0644\u064A\u0644\u0629.",
|
|
216
|
+
"anonymousAccess.role": "\u0627\u0644\u062F\u0648\u0631",
|
|
217
|
+
"anonymousAccess.scope": "\u0623\u064A\u0646",
|
|
218
|
+
"anonymousAccess.since": "\u0645\u0646\u0630",
|
|
219
|
+
"anonymousAccess.revoke": "\u0625\u0644\u063A\u0627\u0621",
|
|
220
|
+
"anonymousAccess.revokeTitle": "\u0625\u0644\u063A\u0627\u0621 {role} \u0641\u064A {scope} \u0644\u0644\u0632\u0648\u0627\u0631 \u0627\u0644\u0645\u062C\u0647\u0648\u0644\u064A\u0646\u061F",
|
|
221
|
+
"anonymousAccess.revoked": "\u0623\u064F\u0644\u063A\u064A.",
|
|
222
|
+
"anonymousAccess.empty": "\u0644\u064A\u0633 \u0644\u0644\u0632\u0648\u0627\u0631 \u0627\u0644\u0645\u062C\u0647\u0648\u0644\u064A\u0646 \u0623\u064A \u062F\u0648\u0631.",
|
|
223
|
+
"merge.mergeInto": "\u062F\u0645\u062C \u0641\u064A \u062D\u0633\u0627\u0628 \u0622\u062E\u0631",
|
|
224
|
+
"merge.pageTitle": "\u062F\u0645\u062C \u0641\u064A \u062D\u0633\u0627\u0628 \u0622\u062E\u0631",
|
|
225
|
+
"merge.pageHint": "\u0643\u0644 \u0645\u0627 \u0641\u0639\u0644\u0647 {username} \u0623\u0648 \u064A\u0645\u0644\u0643\u0647 \u0623\u0648 \u0630\u064F\u0643\u0631 \u0641\u064A\u0647 \u064A\u0646\u062A\u0642\u0644 \u0625\u0644\u0649 \u0627\u0644\u062D\u0633\u0627\u0628 \u0627\u0644\u0630\u064A \u062A\u062E\u062A\u0627\u0631\u0647: \u0627\u0644\u0633\u062C\u0644\u0627\u062A \u0648\u0627\u0644\u062A\u0639\u0644\u064A\u0642\u0627\u062A \u0648\u0627\u0644\u0633\u062C\u0644 \u0627\u0644\u062A\u0627\u0631\u064A\u062E\u064A \u0648\u0627\u0644\u0635\u0644\u0627\u062D\u064A\u0627\u062A \u0648\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A \u0648\u0627\u0644\u0639\u0631\u0648\u0636 \u0648\u0644\u0648\u062D\u0627\u062A \u0627\u0644\u0645\u0639\u0644\u0648\u0645\u0627\u062A \u0648\u0627\u0644\u0627\u0634\u062A\u0631\u0627\u0643\u0627\u062A \u0648\u0645\u0627 \u062A\u062D\u0641\u0638\u0647 \u0627\u0644\u0625\u0636\u0627\u0641\u0627\u062A. \u064A\u0628\u0642\u0649 {username} \u062D\u0633\u0627\u0628\u064B\u0627 \u063A\u064A\u0631 \u0641\u0639\u0651\u0627\u0644 \u0644\u0627 \u064A\u0645\u0643\u0646\u0647 \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644.",
|
|
226
|
+
"merge.alreadyMerged": "\u062F\u064F\u0645\u062C \u0647\u0630\u0627 \u0627\u0644\u062D\u0633\u0627\u0628 \u0641\u064A {survivor} \u0645\u0646 \u0642\u0628\u0644.",
|
|
227
|
+
"merge.chooseTitle": "\u0627\u0644\u062D\u0633\u0627\u0628 \u0627\u0644\u0630\u064A \u064A\u0628\u0642\u0649",
|
|
228
|
+
"merge.chooseHint": "\u0639\u0627\u062F\u0629\u064B \u0627\u0644\u062D\u0633\u0627\u0628 \u0627\u0644\u062D\u0642\u064A\u0642\u064A \u0644\u0644\u0634\u062E\u0635: \u0627\u0644\u0630\u064A \u064A\u0633\u062C\u0651\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0628\u0647.",
|
|
229
|
+
"merge.survivor": "\u0627\u0644\u062F\u0645\u062C \u0641\u064A",
|
|
230
|
+
"merge.searchPlaceholder": "\u0627\u0628\u062D\u062B \u0628\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645 \u0623\u0648 \u0627\u0644\u0627\u0633\u0645 \u0623\u0648 \u0627\u0644\u0628\u0631\u064A\u062F",
|
|
231
|
+
"merge.searching": "\u062C\u0627\u0631\u064D \u0627\u0644\u0628\u062D\u062B\u2026",
|
|
232
|
+
"merge.noMatches": "\u0644\u0627 \u062D\u0633\u0627\u0628 \u064A\u0637\u0627\u0628\u0642.",
|
|
233
|
+
"merge.sourceTitle": "\u064A\u064F\u062F\u0645\u062C",
|
|
234
|
+
"merge.sourceHint": "\u064A\u0628\u0642\u0649 \u062D\u0633\u0627\u0628\u064B\u0627 \u063A\u064A\u0631 \u0641\u0639\u0651\u0627\u0644 \u0645\u062F\u0645\u0648\u062C\u064B\u0627 \u0641\u064A \u0627\u0644\u0622\u062E\u0631.",
|
|
235
|
+
"merge.survivorTitle": "\u064A\u0628\u0642\u0649",
|
|
236
|
+
"merge.survivorHint": "\u064A\u062D\u0635\u0644 \u0639\u0644\u0649 \u0643\u0644 \u0634\u064A\u0621.",
|
|
237
|
+
"merge.previewTitle": "\u0645\u0627 \u0633\u064A\u0646\u062A\u0642\u0644",
|
|
238
|
+
"merge.previewHint": "\u0645\u0639\u062F\u0648\u062F \u0627\u0644\u0622\u0646\u061B \u062A\u0646\u0642\u0644 \u0648\u062D\u062F\u0627\u062A {product} \u0628\u064A\u0627\u0646\u0627\u062A\u0647\u0627 \u0641\u064A \u0645\u0639\u0627\u0645\u0644\u0629 \u0648\u0627\u062D\u062F\u0629\u060C \u062B\u0645 \u0627\u0644\u0625\u0636\u0627\u0641\u0627\u062A \u0645\u0628\u0627\u0634\u0631\u0629.",
|
|
239
|
+
"merge.nothing": "\u0644\u0627 \u0634\u064A\u0621 \u0644\u0646\u0642\u0644\u0647.",
|
|
240
|
+
"merge.pluginError": "\u062A\u0639\u0630\u0651\u0631 \u0639\u0644\u0649 \u0647\u0630\u0647 \u0627\u0644\u0625\u0636\u0627\u0641\u0629 \u0627\u0644\u0625\u062C\u0627\u0628\u0629: {error}",
|
|
241
|
+
"merge.confirmTitle": "\u0627\u0644\u062F\u0645\u062C",
|
|
242
|
+
"merge.activeWarning": "\u064A\u0645\u0643\u0646 \u0644\u0640 {username} \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644. \u0628\u0639\u062F \u0627\u0644\u062F\u0645\u062C \u0644\u0646 \u064A\u0645\u0643\u0646\u0647 \u0630\u0644\u0643: \u064A\u0633\u062C\u0651\u0644 \u0635\u0627\u062D\u0628\u0647 \u0627\u0644\u062F\u062E\u0648\u0644 \u0628\u0627\u0644\u062D\u0633\u0627\u0628 \u0627\u0644\u0622\u062E\u0631.",
|
|
243
|
+
"merge.activeOtherDirectory": "\u064A\u0645\u0643\u0646 \u0644\u0640 {username} \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0645\u0646 \u062F\u0644\u064A\u0644 \u0622\u062E\u0631. \u0628\u0639\u062F \u0627\u0644\u062F\u0645\u062C \u0644\u0646 \u064A\u0645\u0643\u0646\u0647 \u0630\u0644\u0643: \u064A\u0633\u062C\u0651\u0644 \u0635\u0627\u062D\u0628\u0647 \u0627\u0644\u062F\u062E\u0648\u0644 \u0628\u0627\u0644\u062D\u0633\u0627\u0628 \u0627\u0644\u0622\u062E\u0631. \u0644\u0627 \u062A\u062F\u0645\u062C \u0625\u0644\u0627 \u0625\u0646 \u0643\u0627\u0646\u0627 \u0627\u0644\u0634\u062E\u0635 \u0646\u0641\u0633\u0647.",
|
|
244
|
+
"merge.typeUsername": "\u0627\u0643\u062A\u0628 {username} \u0644\u0644\u062A\u0623\u0643\u064A\u062F",
|
|
245
|
+
"merge.noUndo": "\u0644\u0627 \u064A\u0645\u0643\u0646 \u0627\u0644\u062A\u0631\u0627\u062C\u0639 \u0639\u0646 \u0627\u0644\u062F\u0645\u062C. \u064A\u064F\u0633\u062C\u064E\u0651\u0644 \u0641\u064A \u0627\u0644\u062D\u0633\u0627\u0628\u064A\u0646.",
|
|
246
|
+
"merge.mergeButton": "\u062F\u0645\u062C {source} \u0641\u064A {survivor}",
|
|
247
|
+
"merge.merged": "\u062F\u064F\u0645\u062C {source} \u0641\u064A {survivor}.",
|
|
248
|
+
"merge.mergedIncomplete": "\u062F\u064F\u0645\u062C {source} \u0641\u064A {survivor}\u060C \u0644\u0643\u0646 \u0625\u0636\u0627\u0641\u0629 \u0644\u0645 \u062A\u064F\u0643\u0645\u0644 \u0639\u0645\u0644\u0647\u0627: \u0627\u0633\u062A\u0623\u0646\u0641\u0647\u0627 \u0645\u0646 \u0639\u0645\u0644\u064A\u0627\u062A \u062F\u0645\u062C \u0627\u0644\u062D\u0633\u0627\u0628.",
|
|
249
|
+
"merge.mergedBanner": "\u062F\u064F\u0645\u062C \u0647\u0630\u0627 \u0627\u0644\u062D\u0633\u0627\u0628 \u0641\u064A <survivor></survivor>: \u0639\u0645\u0644\u0647 \u0648\u0635\u0644\u0627\u062D\u064A\u0627\u062A\u0647 \u0648\u0639\u0646\u0627\u0648\u064A\u0646\u0647 \u0647\u0646\u0627\u0643 \u0627\u0644\u0622\u0646. \u0644\u0627 \u064A\u0645\u0643\u0646\u0647 \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644.",
|
|
250
|
+
"merge.title": "\u0639\u0645\u0644\u064A\u0627\u062A \u0627\u0644\u062F\u0645\u062C ({count})",
|
|
251
|
+
"merge.hint": "\u062D\u0633\u0627\u0628\u0627\u062A \u062F\u064F\u0645\u062C\u062A \u0641\u064A \u0647\u0630\u0627 \u0627\u0644\u062D\u0633\u0627\u0628\u060C \u0623\u0648 \u062F\u064F\u0645\u062C \u0647\u0648 \u0641\u064A \u063A\u064A\u0631\u0647. \u0644\u0627 \u064A\u0645\u0643\u0646 \u0627\u0644\u062A\u0631\u0627\u062C\u0639 \u0639\u0646 \u0634\u064A\u0621 \u0647\u0646\u0627.",
|
|
252
|
+
"merge.none": "\u0644\u0627 \u0639\u0645\u0644\u064A\u0627\u062A \u062F\u0645\u062C.",
|
|
253
|
+
"merge.when": "\u0645\u062A\u0649",
|
|
254
|
+
"merge.what": "\u0645\u0627\u0630\u0627",
|
|
255
|
+
"merge.who": "\u0628\u0648\u0627\u0633\u0637\u0629",
|
|
256
|
+
"merge.moved": "\u0645\u0627 \u0627\u0646\u062A\u0642\u0644",
|
|
257
|
+
"merge.state": "\u0627\u0644\u062D\u0627\u0644\u0629",
|
|
258
|
+
"merge.done": "\u062A\u0645",
|
|
259
|
+
"merge.incomplete": "\u063A\u064A\u0631 \u0645\u0643\u062A\u0645\u0644",
|
|
260
|
+
"merge.resume": "\u0627\u0633\u062A\u0626\u0646\u0627\u0641",
|
|
261
|
+
"merge.someone": "\u0645\u0633\u0624\u0648\u0644",
|
|
262
|
+
"merge.mergedInto": "\u062F\u064F\u0645\u062C \u0641\u064A <survivor></survivor>",
|
|
263
|
+
"merge.mergedFrom": "\u062F\u064F\u0645\u062C <source></source> ({name}) \u0641\u064A \u0647\u0630\u0627 \u0627\u0644\u062D\u0633\u0627\u0628",
|
|
264
|
+
"merge.reason.admin": "\u0628\u0648\u0627\u0633\u0637\u0629 \u0645\u0633\u0624\u0648\u0644",
|
|
265
|
+
"merge.reason.sign-up": "\u062A\u0644\u0642\u0627\u0626\u064A: \u0633\u062C\u0651\u0644 \u062D\u0633\u0627\u0628\u064B\u0627",
|
|
266
|
+
"merge.reason.confirmed-address": "\u062A\u0644\u0642\u0627\u0626\u064A: \u0623\u0643\u0651\u062F \u0639\u0646\u0648\u0627\u0646\u0647",
|
|
267
|
+
"merge.reason.account-created": "\u062A\u0644\u0642\u0627\u0626\u064A: \u0623\u064F\u0646\u0634\u0626 \u0627\u0644\u062D\u0633\u0627\u0628",
|
|
268
|
+
"merge.reason.directory-sync": "\u062A\u0644\u0642\u0627\u0626\u064A: \u0645\u0632\u0627\u0645\u0646\u0629 \u0627\u0644\u062F\u0644\u064A\u0644",
|
|
269
|
+
"merge.reason.address-added": "\u062A\u0644\u0642\u0627\u0626\u064A: \u0623\u064F\u0636\u064A\u0641 \u0639\u0646\u0648\u0627\u0646",
|
|
270
|
+
"merge.step.failed": "\u0641\u0634\u0644",
|
|
271
|
+
"merge.step.pending": "\u0644\u0645 \u064A\u0643\u062A\u0645\u0644",
|
|
272
|
+
"merge.step.off": "\u0645\u062A\u0648\u0642\u0641",
|
|
273
|
+
"merge.plugin": "\u0627\u0644\u0625\u0636\u0627\u0641\u0629 {key}",
|
|
274
|
+
"merge.part.guard": "\u0627\u0644\u062D\u0633\u0627\u0628\u0627\u062A \u0648\u0627\u0644\u0635\u0644\u0627\u062D\u064A\u0627\u062A",
|
|
275
|
+
"merge.count.grants": "{count, plural, one {\u0645\u0646\u062D \u062F\u0648\u0631 \u0648\u0627\u062D\u062F} other {# \u0645\u0646 \u0645\u0646\u062D \u0627\u0644\u0623\u062F\u0648\u0627\u0631}}",
|
|
276
|
+
"merge.count.memberships": "{count, plural, one {\u0639\u0636\u0648\u064A\u0629 \u0645\u062C\u0645\u0648\u0639\u0629 \u0648\u0627\u062D\u062F\u0629} other {# \u0645\u0646 \u0639\u0636\u0648\u064A\u0627\u062A \u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A}}",
|
|
277
|
+
"merge.count.addresses": "{count, plural, one {\u0639\u0646\u0648\u0627\u0646 \u0648\u0627\u062D\u062F} other {# \u0645\u0646 \u0627\u0644\u0639\u0646\u0627\u0648\u064A\u0646}}",
|
|
278
|
+
"merge.count.tokens": "{count, plural, one {\u0631\u0645\u0632 \u0648\u0635\u0648\u0644 \u0648\u0627\u062D\u062F \u0623\u064F\u0644\u063A\u064A} other {# \u0645\u0646 \u0631\u0645\u0648\u0632 \u0627\u0644\u0648\u0635\u0648\u0644 \u0623\u064F\u0644\u063A\u064A\u062A}}",
|
|
279
|
+
"duplicates.title": "\u062D\u0633\u0627\u0628\u0627\u062A \u0645\u0643\u0631\u0631\u0629 \u0645\u062D\u062A\u0645\u0644\u0629 ({count})",
|
|
280
|
+
"duplicates.hint": "\u062D\u0633\u0627\u0628\u0627\u062A \u062A\u0634\u062A\u0631\u0643 \u0641\u064A \u0639\u0646\u0648\u0627\u0646: \u063A\u0627\u0644\u0628\u064B\u0627 \u0627\u0644\u0634\u062E\u0635 \u0646\u0641\u0633\u0647 \u0645\u0631\u062A\u064A\u0646\u060C \u0643\u0634\u062E\u0635 \u0644\u0645 \u064A\u0637\u0627\u0628\u0642\u0647 \u0627\u0633\u062A\u064A\u0631\u0627\u062F \u0645\u0646 Jira. \u0627\u062F\u0645\u062C\u0647\u0627 \u0644\u062A\u0635\u0628\u062D \u062D\u0633\u0627\u0628\u064B\u0627 \u0648\u0627\u062D\u062F\u064B\u0627.",
|
|
281
|
+
"duplicates.address": "\u0627\u0644\u0639\u0646\u0648\u0627\u0646",
|
|
282
|
+
"duplicates.accounts": "\u0627\u0644\u062D\u0633\u0627\u0628\u0627\u062A",
|
|
283
|
+
"duplicates.merge": "\u0627\u0644\u062F\u0645\u062C",
|
|
284
|
+
"duplicates.mergeInto": "\u062F\u0645\u062C {source} \u0641\u064A {survivor}",
|
|
285
|
+
"addresses.title": "\u0639\u0646\u0627\u0648\u064A\u0646 \u0627\u0644\u0628\u0631\u064A\u062F ({count})",
|
|
286
|
+
"addresses.adminHint": "\u0643\u0644 \u0639\u0646\u0648\u0627\u0646 \u0645\u0624\u0643\u064E\u0651\u062F \u064A\u062F\u0644 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u062D\u0633\u0627\u0628: \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0648\u0627\u0631\u062F \u0648\u0627\u0644\u0645\u0634\u0627\u0631\u0643\u0648\u0646 \u0648\u0627\u0644\u062A\u0633\u062C\u064A\u0644 \u0648\u0627\u0644\u0645\u0646\u0638\u0645\u0627\u062A \u062D\u0633\u0628 \u0627\u0644\u0646\u0637\u0627\u0642. \u0627\u0644\u0639\u0646\u0627\u0648\u064A\u0646 \u0627\u0644\u062A\u064A \u062A\u0636\u064A\u0641\u0647\u0627 \u062A\u064F\u0624\u0643\u064E\u0651\u062F \u0641\u0648\u0631\u064B\u0627\u061B \u0648\u064A\u0630\u0647\u0628 \u0627\u0644\u0628\u0631\u064A\u062F \u0625\u0644\u0649 \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0645\u062E\u062A\u0627\u0631.",
|
|
287
|
+
"addresses.selfHint": "\u0643\u0644 \u0639\u0646\u0648\u0627\u0646 \u0645\u0624\u0643\u064E\u0651\u062F \u064A\u062F\u0644 \u0639\u0644\u0649 \u062D\u0633\u0627\u0628\u0643: \u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0630\u064A \u062A\u0631\u0633\u0644\u0647 \u0648\u0627\u0644\u0637\u0644\u0628\u0627\u062A \u0627\u0644\u0645\u0634\u062A\u0631\u0643\u0629 \u0645\u0639\u0643 \u0648\u0627\u0644\u0645\u0646\u0638\u0645\u0627\u062A \u062D\u0633\u0628 \u0627\u0644\u0646\u0637\u0627\u0642. \u0646\u0631\u0633\u0644 \u0631\u0627\u0628\u0637\u064B\u0627 \u0625\u0644\u0649 \u0643\u0644 \u0639\u0646\u0648\u0627\u0646 \u062A\u0636\u064A\u0641\u0647\u060C \u0648\u064A\u064F\u0639\u062A\u0645\u062F \u0639\u0646\u062F \u0641\u062A\u062D\u0647.",
|
|
288
|
+
"addresses.address": "\u0627\u0644\u0639\u0646\u0648\u0627\u0646",
|
|
289
|
+
"addresses.from": "\u0627\u0644\u0645\u0635\u062F\u0631",
|
|
290
|
+
"addresses.source.directory": "\u0627\u0644\u062F\u0644\u064A\u0644",
|
|
291
|
+
"addresses.source.admin": "\u0623\u0636\u0627\u0641\u0647 \u0645\u0633\u0624\u0648\u0644",
|
|
292
|
+
"addresses.source.person": "\u0623\u0636\u0627\u0641\u0647 \u0635\u0627\u062D\u0628\u0647",
|
|
293
|
+
"addresses.source.merge": "\u0645\u0646 \u062D\u0633\u0627\u0628 \u0645\u062F\u0645\u0648\u062C",
|
|
294
|
+
"addresses.state": "\u0627\u0644\u062D\u0627\u0644\u0629",
|
|
295
|
+
"addresses.confirmed": "\u0645\u0624\u0643\u064E\u0651\u062F",
|
|
296
|
+
"addresses.waiting": "\u0628\u0627\u0646\u062A\u0638\u0627\u0631 \u0627\u0644\u0631\u0627\u0628\u0637",
|
|
297
|
+
"addresses.addedAt": "\u0623\u064F\u0636\u064A\u0641",
|
|
298
|
+
"addresses.mail": "\u0627\u0644\u0628\u0631\u064A\u062F",
|
|
299
|
+
"addresses.mailGoesHere": "\u064A\u0630\u0647\u0628 \u0627\u0644\u0628\u0631\u064A\u062F \u0625\u0644\u064A\u0647",
|
|
300
|
+
"addresses.sendHere": "\u0623\u0631\u0633\u0644 \u0627\u0644\u0628\u0631\u064A\u062F \u0625\u0644\u064A\u0647",
|
|
301
|
+
"addresses.remove": "\u0625\u0632\u0627\u0644\u0629",
|
|
302
|
+
"addresses.removeLabel": "\u0625\u0632\u0627\u0644\u0629 {email}",
|
|
303
|
+
"addresses.none": "\u0644\u0627 \u0639\u0646\u0627\u0648\u064A\u0646.",
|
|
304
|
+
"addresses.placeholder": "someone@example.com",
|
|
305
|
+
"addresses.newAddress": "\u0639\u0646\u0648\u0627\u0646 \u062C\u062F\u064A\u062F",
|
|
306
|
+
"addresses.add": "\u0625\u0636\u0627\u0641\u0629 \u0639\u0646\u0648\u0627\u0646",
|
|
307
|
+
"addresses.addAndSend": "\u0625\u0636\u0627\u0641\u0629 \u0648\u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0631\u0627\u0628\u0637",
|
|
308
|
+
"addresses.addedToast": "\u0623\u064F\u0636\u064A\u0641 {email} \u0648\u0623\u064F\u0643\u0650\u0651\u062F.",
|
|
309
|
+
"addresses.linkSent": "\u0623\u0631\u0633\u0644\u0646\u0627 \u0631\u0627\u0628\u0637\u064B\u0627 \u0625\u0644\u0649 {email}. \u064A\u064F\u0639\u062A\u0645\u062F \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0639\u0646\u062F \u0641\u062A\u062D\u0647.",
|
|
310
|
+
"addresses.verifyTitle": "\u062A\u0623\u0643\u064A\u062F \u0639\u0646\u0648\u0627\u0646",
|
|
311
|
+
"addresses.verified": "\u062A\u0623\u0643\u064E\u0651\u062F {email} \u0644\u0644\u062D\u0633\u0627\u0628 {username}.",
|
|
312
|
+
"addresses.toAccount": "\u0627\u0630\u0647\u0628 \u0625\u0644\u0649 \u062D\u0633\u0627\u0628\u0643",
|
|
313
|
+
"addresses.primary": "\u0631\u0626\u064A\u0633\u064A",
|
|
314
|
+
"addresses.makePrimary": "\u0627\u062C\u0639\u0644\u0647 \u0631\u0626\u064A\u0633\u064A\u064B\u0627",
|
|
315
|
+
"addresses.makePrimaryLabel": "\u0627\u062C\u0639\u0644 {email} \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0631\u0626\u064A\u0633\u064A",
|
|
316
|
+
"addresses.primaryChanged": "\u0623\u0635\u0628\u062D {email} \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0631\u0626\u064A\u0633\u064A. \u0648\u064A\u0628\u0642\u0649 \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0633\u0627\u0628\u0642 \u0645\u0624\u0643\u064E\u0651\u062F\u064B\u0627\u060C \u0648\u0642\u062F \u0623\u064F\u0628\u0644\u063A.",
|
|
317
|
+
"addresses.fromDirectory": "\u064A\u0623\u062A\u064A \u0627\u0644\u0627\u0633\u0645 \u0648\u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0631\u0626\u064A\u0633\u064A \u0645\u0646 {directory}: \u063A\u064A\u0651\u0631\u0647\u0645\u0627 \u0647\u0646\u0627\u0643\u060C \u0648\u062A\u0646\u0642\u0644\u0647\u0645\u0627 \u0627\u0644\u0645\u0632\u0627\u0645\u0646\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629 \u0625\u0644\u0649 \u0647\u0646\u0627.",
|
|
318
|
+
"status.account.Active": "\u0646\u0634\u0637",
|
|
319
|
+
"status.account.Inactive": "\u063A\u064A\u0631 \u0646\u0634\u0637",
|
|
320
|
+
"status.account.Locked": "\u0645\u0642\u0641\u0644",
|
|
321
|
+
"status.plugin.Enabled": "\u0645\u0641\u0639\u0651\u0644\u0629",
|
|
322
|
+
"status.plugin.Disabled": "\u0645\u0639\u0637\u0651\u0644\u0629",
|
|
323
|
+
"status.plugin.Installed": "\u0645\u062B\u0628\u0651\u062A\u0629",
|
|
324
|
+
"status.plugin.Failed": "\u0641\u0634\u0644\u062A",
|
|
325
|
+
"status.check.notRun": "\u0644\u0645 \u064A\u064F\u0646\u0641\u064E\u0651\u0630",
|
|
326
|
+
"status.check.pass": "\u0646\u062C\u062D",
|
|
327
|
+
"status.check.fail": "\u0641\u0634\u0644",
|
|
328
|
+
"status.sync.running": "\u0642\u064A\u062F \u0627\u0644\u062A\u0646\u0641\u064A\u0630",
|
|
329
|
+
"status.sync.succeeded": "\u0646\u062C\u062D\u062A",
|
|
330
|
+
"status.sync.failed": "\u0641\u0634\u0644\u062A",
|
|
331
|
+
"status.sync.never": "\u0644\u0645 \u062A\u062A\u0645 \u0627\u0644\u0645\u0632\u0627\u0645\u0646\u0629 \u0642\u0637",
|
|
332
|
+
"common.account": "\u062D\u0633\u0627\u0628",
|
|
333
|
+
"common.actions": "\u0627\u0644\u0625\u062C\u0631\u0627\u0621\u0627\u062A",
|
|
334
|
+
"common.active": "\u0646\u0634\u0637",
|
|
335
|
+
"common.cancel": "\u0625\u0644\u063A\u0627\u0621",
|
|
336
|
+
"common.delete": "\u062D\u0630\u0641",
|
|
337
|
+
"common.description": "\u0627\u0644\u0648\u0635\u0641",
|
|
338
|
+
"common.direct": "\u0645\u0628\u0627\u0634\u0631\u0629",
|
|
339
|
+
"common.directory": "\u0627\u0644\u062F\u0644\u064A\u0644",
|
|
340
|
+
"common.disabled": "\u0645\u0639\u0637\u0651\u0644",
|
|
341
|
+
"common.displayName": "\u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0645\u0639\u0631\u0648\u0636",
|
|
342
|
+
"common.email": "\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",
|
|
343
|
+
"common.enabled": "\u0645\u0641\u0639\u0651\u0644",
|
|
344
|
+
"common.group": "\u0645\u062C\u0645\u0648\u0639\u0629",
|
|
345
|
+
"common.groups": "\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A",
|
|
346
|
+
"common.inactive": "\u063A\u064A\u0631 \u0646\u0634\u0637",
|
|
347
|
+
"common.lastSignIn": "\u0622\u062E\u0631 \u062A\u0633\u062C\u064A\u0644 \u062F\u062E\u0648\u0644",
|
|
348
|
+
"common.membership": "\u0627\u0644\u0639\u0636\u0648\u064A\u0629",
|
|
349
|
+
"common.name": "\u0627\u0644\u0627\u0633\u0645",
|
|
350
|
+
"common.nested": "\u0645\u062A\u062F\u0627\u062E\u0644\u0629",
|
|
351
|
+
"common.no": "\u0644\u0627",
|
|
352
|
+
"common.optional": "(\u0627\u062E\u062A\u064A\u0627\u0631\u064A)",
|
|
353
|
+
"common.order": "\u0627\u0644\u062A\u0631\u062A\u064A\u0628",
|
|
354
|
+
"common.password": "\u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631",
|
|
355
|
+
"common.path": "\u0627\u0644\u0645\u0633\u0627\u0631",
|
|
356
|
+
"common.product": "{product}",
|
|
357
|
+
"common.source": "\u0627\u0644\u0645\u0635\u062F\u0631",
|
|
358
|
+
"common.status": "\u0627\u0644\u062D\u0627\u0644\u0629",
|
|
359
|
+
"common.type": "\u0627\u0644\u0646\u0648\u0639",
|
|
360
|
+
"common.unknownError": "\u062E\u0637\u0623 \u063A\u064A\u0631 \u0645\u0639\u0631\u0648\u0641",
|
|
361
|
+
"common.username": "\u0627\u0633\u0645 \u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645",
|
|
362
|
+
"common.users": "\u0627\u0644\u0645\u0633\u062A\u062E\u062F\u0645\u0648\u0646",
|
|
363
|
+
"common.yes": "\u0646\u0639\u0645",
|
|
364
|
+
"nav.accounts": "\u0627\u0644\u062D\u0633\u0627\u0628\u0627\u062A",
|
|
365
|
+
"nav.groups": "\u0627\u0644\u0645\u062C\u0645\u0648\u0639\u0627\u062A",
|
|
366
|
+
"nav.directories": "\u0627\u0644\u0623\u062F\u0644\u0629",
|
|
367
|
+
"nav.signup": "\u0627\u0644\u062A\u0633\u062C\u064A\u0644",
|
|
368
|
+
"nav.anonymous": "\u0627\u0644\u0648\u0635\u0648\u0644 \u0627\u0644\u0645\u062C\u0647\u0648\u0644",
|
|
369
|
+
"secondFactor.disabled": "\u0623\u0648\u0642\u0641 \u0645\u0634\u063A\u0651\u0644 \u0647\u0630\u0627 \u0627\u0644\u0645\u0648\u0642\u0639 \u0627\u0644\u062A\u062D\u0642\u0642 \u0628\u062E\u0637\u0648\u062A\u064A\u0646 \u0645\u0624\u0642\u062A\u064B\u0627: \u0644\u0627 \u064A\u064F\u0637\u0644\u0628 \u0631\u0645\u0632 \u0645\u0646 \u0623\u062D\u062F.",
|
|
370
|
+
"secondFactor.kinds.app": "\u062A\u0637\u0628\u064A\u0642 \u0645\u0635\u0627\u062F\u0642\u0629",
|
|
371
|
+
"secondFactor.kinds.email": "\u0627\u0644\u0628\u0631\u064A\u062F \u0627\u0644\u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",
|
|
372
|
+
"secondFactor.kinds.sms": "\u0631\u0633\u0627\u0644\u0629 \u0646\u0635\u064A\u0629",
|
|
373
|
+
"secondFactor.kinds.whatsapp": "\u0648\u0627\u062A\u0633\u0627\u0628",
|
|
374
|
+
"secondFactor.kinds.passkey": "\u0645\u0641\u062A\u0627\u062D \u0645\u0631\u0648\u0631",
|
|
375
|
+
"secondFactor.title": "\u0627\u0644\u062A\u062D\u0642\u0642 \u0628\u062E\u0637\u0648\u062A\u064A\u0646",
|
|
376
|
+
"secondFactor.panelHint": "\u0645\u0641\u062A\u0627\u062D \u0645\u0631\u0648\u0631\u060C \u0623\u0648 \u0631\u0645\u0632 \u0645\u0646 \u062A\u0637\u0628\u064A\u0642 \u0639\u0644\u0649 \u0647\u0627\u062A\u0641\u0643\u060C \u0628\u0639\u062F \u0643\u0644\u0645\u0629 \u0627\u0644\u0645\u0631\u0648\u0631\u060C \u0641\u0644\u0627 \u062A\u0643\u0641\u064A \u0643\u0644\u0645\u0629 \u0645\u0631\u0648\u0631 \u0645\u0633\u0631\u0648\u0642\u0629 \u0648\u062D\u062F\u0647\u0627 \u0644\u062F\u062E\u0648\u0644 \u0623\u062D\u062F.",
|
|
377
|
+
"secondFactor.on": "\u0645\u0641\u0639\u0651\u0644",
|
|
378
|
+
"secondFactor.off": "\u0645\u062A\u0648\u0642\u0641",
|
|
379
|
+
"secondFactor.modeHint.off": "\u0644\u0627 \u062A\u0637\u0644\u0628 \u0645\u062C\u0645\u0648\u0639\u0627\u062A\u0643 \u0639\u0627\u0645\u0644\u064B\u0627 \u062B\u0627\u0646\u064A\u064B\u0627. \u0625\u0646 \u0623\u0639\u062F\u062F\u062A \u0648\u0627\u062D\u062F\u064B\u0627 \u0641\u0633\u064A\u064F\u0637\u0644\u0628 \u0645\u0646\u0643 \u0639\u0646\u062F \u0643\u0644 \u062A\u0633\u062C\u064A\u0644 \u062F\u062E\u0648\u0644.",
|
|
380
|
+
"secondFactor.modeHint.optional": "\u062A\u062A\u064A\u062D \u0645\u062C\u0645\u0648\u0639\u0627\u062A\u0643 \u0639\u0627\u0645\u0644\u064B\u0627 \u062B\u0627\u0646\u064A\u064B\u0627. \u0625\u0646 \u0623\u0639\u062F\u062F\u062A \u0648\u0627\u062D\u062F\u064B\u0627 \u0641\u0633\u064A\u064F\u0637\u0644\u0628 \u0645\u0646\u0643 \u0639\u0646\u062F \u0643\u0644 \u062A\u0633\u062C\u064A\u0644 \u062F\u062E\u0648\u0644.",
|
|
381
|
+
"secondFactor.modeHint.required": "\u062A\u0634\u062A\u0631\u0637 \u0645\u062C\u0645\u0648\u0639\u0627\u062A\u0643 \u0639\u0627\u0645\u0644\u064B\u0627 \u062B\u0627\u0646\u064A\u064B\u0627 \u0639\u0646\u062F \u0643\u0644 \u062A\u0633\u062C\u064A\u0644 \u062F\u062E\u0648\u0644.",
|
|
382
|
+
"secondFactor.modeHint.strong": "\u062A\u0634\u062A\u0631\u0637 \u0645\u062C\u0645\u0648\u0639\u0627\u062A\u0643 \u0639\u0627\u0645\u0644\u064B\u0627 \u062B\u0627\u0646\u064A\u064B\u0627 \u0639\u0646\u062F \u0643\u0644 \u062A\u0633\u062C\u064A\u0644 \u062F\u062E\u0648\u0644\u060C \u0645\u0646 \u062A\u0637\u0628\u064A\u0642 \u0645\u0635\u0627\u062F\u0642\u0629.",
|
|
383
|
+
"secondFactor.added": "\u0623\u064F\u0636\u064A\u0641",
|
|
384
|
+
"secondFactor.lastUsed": "\u0622\u062E\u0631 \u0627\u0633\u062A\u062E\u062F\u0627\u0645",
|
|
385
|
+
"secondFactor.never": "\u0644\u0645 \u064A\u064F\u0633\u062A\u062E\u062F\u0645 \u0628\u0639\u062F",
|
|
386
|
+
"secondFactor.none": "\u0644\u0645 \u064A\u064F\u0639\u062F\u0651 \u0639\u0627\u0645\u0644 \u062B\u0627\u0646\u064D \u0628\u0639\u062F.",
|
|
387
|
+
"secondFactor.remove": "\u0625\u0632\u0627\u0644\u0629",
|
|
388
|
+
"secondFactor.removeTitle": "\u0625\u0632\u0627\u0644\u0629 \u062A\u0637\u0628\u064A\u0642 \u0627\u0644\u0645\u0635\u0627\u062F\u0642\u0629 \u0647\u0630\u0627\u061F",
|
|
389
|
+
"secondFactor.removeHint": "\u062A\u062A\u0648\u0642\u0641 \u0631\u0645\u0648\u0632\u0647 \u0639\u0646 \u0627\u0644\u0639\u0645\u0644. \u0648\u0625\u0646 \u0644\u0645 \u064A\u0628\u0642\u064E \u0644\u0643 \u0639\u0627\u0645\u0644 \u062B\u0627\u0646\u064D\u060C \u062A\u062A\u0648\u0642\u0641 \u0631\u0645\u0648\u0632 \u0627\u0644\u0627\u0633\u062A\u0631\u062F\u0627\u062F \u0623\u064A\u0636\u064B\u0627.",
|
|
390
|
+
"secondFactor.removed": "\u0623\u064F\u0632\u064A\u0644 \u062A\u0637\u0628\u064A\u0642 \u0627\u0644\u0645\u0635\u0627\u062F\u0642\u0629.",
|
|
391
|
+
"secondFactor.setUp": "\u0625\u0639\u062F\u0627\u062F \u062A\u0637\u0628\u064A\u0642 \u0645\u0635\u0627\u062F\u0642\u0629",
|
|
392
|
+
"secondFactor.addAnother": "\u0625\u0636\u0627\u0641\u0629 \u062A\u0637\u0628\u064A\u0642 \u0645\u0635\u0627\u062F\u0642\u0629 \u0622\u062E\u0631",
|
|
393
|
+
"secondFactor.recoveryLeft": "{count, plural, =0 {\u0644\u0645 \u062A\u0628\u0642\u064E \u0631\u0645\u0648\u0632 \u0627\u0633\u062A\u0631\u062F\u0627\u062F} one {\u0628\u0642\u064A \u0631\u0645\u0632 \u0627\u0633\u062A\u0631\u062F\u0627\u062F \u0648\u0627\u062D\u062F} two {\u0628\u0642\u064A \u0631\u0645\u0632\u0627 \u0627\u0633\u062A\u0631\u062F\u0627\u062F} few {\u0628\u0642\u064A\u062A # \u0631\u0645\u0648\u0632 \u0627\u0633\u062A\u0631\u062F\u0627\u062F} many {\u0628\u0642\u064A # \u0631\u0645\u0632 \u0627\u0633\u062A\u0631\u062F\u0627\u062F} other {\u0628\u0642\u064A # \u0631\u0645\u0632 \u0627\u0633\u062A\u0631\u062F\u0627\u062F}}",
|
|
394
|
+
"secondFactor.renew": "\u0631\u0645\u0648\u0632 \u0627\u0633\u062A\u0631\u062F\u0627\u062F \u062C\u062F\u064A\u062F\u0629",
|
|
395
|
+
"secondFactor.renewTitle": "\u0625\u0646\u0634\u0627\u0621 \u0631\u0645\u0648\u0632 \u0627\u0633\u062A\u0631\u062F\u0627\u062F \u062C\u062F\u064A\u062F\u0629\u061F",
|
|
396
|
+
"secondFactor.renewHint": "\u062A\u062A\u0648\u0642\u0641 \u0631\u0645\u0648\u0632 \u0627\u0644\u0627\u0633\u062A\u0631\u062F\u0627\u062F \u0627\u0644\u0642\u062F\u064A\u0645\u0629 \u0639\u0646 \u0627\u0644\u0639\u0645\u0644.",
|
|
397
|
+
"secondFactor.setup.scan": "\u0627\u0645\u0633\u062D \u0631\u0645\u0632 QR \u0647\u0630\u0627 \u0628\u062A\u0637\u0628\u064A\u0642 \u0645\u0635\u0627\u062F\u0642\u0629\u060C \u0645\u062B\u0644 Microsoft Authenticator \u0623\u0648 Google Authenticator \u0623\u0648 1Password.",
|
|
398
|
+
"secondFactor.setup.qrAlt": "\u0631\u0645\u0632 QR \u0644\u062A\u0637\u0628\u064A\u0642 \u0627\u0644\u0645\u0635\u0627\u062F\u0642\u0629",
|
|
399
|
+
"secondFactor.setup.cantScan": "\u0644\u0627 \u064A\u0645\u0643\u0646\u0643 \u0645\u0633\u062D\u0647\u061F \u0623\u062F\u062E\u0644 \u0647\u0630\u0627 \u0627\u0644\u0645\u0641\u062A\u0627\u062D \u0641\u064A \u0627\u0644\u062A\u0637\u0628\u064A\u0642 \u0628\u062F\u0644\u064B\u0627 \u0645\u0646 \u0630\u0644\u0643:",
|
|
400
|
+
"secondFactor.setup.onThisDevice": "\u0627\u0641\u062A\u062D\u0647 \u0641\u064A \u062A\u0637\u0628\u064A\u0642 \u0645\u0635\u0627\u062F\u0642\u0629 \u0639\u0644\u0649 \u0647\u0630\u0627 \u0627\u0644\u062C\u0647\u0627\u0632",
|
|
401
|
+
"secondFactor.setup.code": "\u0627\u0644\u0631\u0645\u0632 \u0645\u0646 \u0627\u0644\u062A\u0637\u0628\u064A\u0642",
|
|
402
|
+
"secondFactor.setup.codeHint": "\u0627\u0644\u0623\u0631\u0642\u0627\u0645 \u0627\u0644\u0633\u062A\u0629 \u0627\u0644\u062A\u064A \u064A\u0639\u0631\u0636\u0647\u0627 \u0627\u0644\u062A\u0637\u0628\u064A\u0642 \u0627\u0644\u0622\u0646.",
|
|
403
|
+
"secondFactor.setup.verify": "\u062A\u062D\u0642\u0642",
|
|
404
|
+
"secondFactor.setup.wrongCode": "\u0644\u0645 \u064A\u062A\u0637\u0627\u0628\u0642 \u0627\u0644\u0631\u0645\u0632. \u062A\u062D\u0642\u0642 \u0645\u0646 \u0627\u0644\u0648\u0642\u062A \u0639\u0644\u0649 \u0647\u0627\u062A\u0641\u0643\u060C \u0648\u0623\u062F\u062E\u0644 \u0627\u0644\u0631\u0645\u0632 \u0627\u0644\u0630\u064A \u064A\u0639\u0631\u0636\u0647 \u0627\u0644\u062A\u0637\u0628\u064A\u0642 \u0627\u0644\u0622\u0646.",
|
|
405
|
+
"secondFactor.setup.cancel": "\u0625\u0644\u063A\u0627\u0621",
|
|
406
|
+
"secondFactor.setup.done": "\u0623\u064F\u0639\u062F\u0651 \u062A\u0637\u0628\u064A\u0642 \u0627\u0644\u0645\u0635\u0627\u062F\u0642\u0629.",
|
|
407
|
+
"secondFactor.recovery.title": "\u0631\u0645\u0648\u0632 \u0627\u0644\u0627\u0633\u062A\u0631\u062F\u0627\u062F",
|
|
408
|
+
"secondFactor.recovery.hint": "\u0643\u0644 \u0631\u0645\u0632 \u064A\u064F\u062F\u062E\u0644\u0643 \u0645\u0631\u0629 \u0648\u0627\u062D\u062F\u0629 \u0625\u0646 \u0641\u0642\u062F\u062A \u0647\u0627\u062A\u0641\u0643. \u0627\u062D\u0641\u0638\u0647\u0627 \u0641\u064A \u0645\u0643\u0627\u0646 \u0622\u0645\u0646: \u0644\u0646 \u062A\u064F\u0639\u0631\u0636 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649.",
|
|
409
|
+
"secondFactor.recovery.copy": "\u0646\u0633\u062E",
|
|
410
|
+
"secondFactor.recovery.download": "\u062A\u0646\u0632\u064A\u0644",
|
|
411
|
+
"secondFactor.recovery.copied": "\u0646\u064F\u0633\u062E\u062A \u0631\u0645\u0648\u0632 \u0627\u0644\u0627\u0633\u062A\u0631\u062F\u0627\u062F.",
|
|
412
|
+
"secondFactor.recovery.copyFailed": "\u062A\u0639\u0630\u0651\u0631 \u0627\u0644\u0646\u0633\u062E: \u062D\u062F\u0651\u062F\u0647\u0627 \u0648\u0627\u0646\u0633\u062E\u0647\u0627 \u0628\u0646\u0641\u0633\u0643.",
|
|
413
|
+
"secondFactor.recovery.saved": "\u062D\u0641\u0638\u062A\u0647\u0627",
|
|
414
|
+
"secondFactor.recovery.fileHeader": "\u0631\u0645\u0648\u0632 \u0627\u0644\u0627\u0633\u062A\u0631\u062F\u0627\u062F \u0644\u0640 {site}. \u0643\u0644 \u0631\u0645\u0632 \u064A\u064F\u062F\u062E\u0644\u0643 \u0645\u0631\u0629 \u0648\u0627\u062D\u062F\u0629.",
|
|
415
|
+
"secondFactor.alsoBy": "\u064A\u0645\u0643\u0646\u0643 \u0623\u064A\u0636\u064B\u0627 \u0627\u0644\u062D\u0635\u0648\u0644 \u0639\u0644\u0649 \u0631\u0645\u0632 \u0639\u0628\u0631 {list}.",
|
|
416
|
+
"secondFactor.addPasskey": "\u0623\u0636\u0641 \u0645\u0641\u062A\u0627\u062D \u0645\u0631\u0648\u0631",
|
|
417
|
+
"secondFactor.passkeyHint": "\u0633\u0645\u0650\u0651\u0647 \u0628\u0627\u0633\u0645 \u0627\u0644\u062C\u0647\u0627\u0632\u060C \u062B\u0645 \u0627\u062A\u0628\u0639 \u0645\u0627 \u064A\u0637\u0644\u0628\u0647.",
|
|
418
|
+
"secondFactor.passkeyName": "\u0627\u0633\u0645 \u0645\u0641\u062A\u0627\u062D \u0627\u0644\u0645\u0631\u0648\u0631",
|
|
419
|
+
"secondFactor.passkeyNameDefault": "\u0645\u0641\u062A\u0627\u062D \u0645\u0631\u0648\u0631",
|
|
420
|
+
"secondFactor.passkeyCreate": "\u0623\u0646\u0634\u0626 \u0645\u0641\u062A\u0627\u062D \u0627\u0644\u0645\u0631\u0648\u0631",
|
|
421
|
+
"secondFactor.passkeyAdded": "\u0623\u064F\u0636\u064A\u0641 \u0645\u0641\u062A\u0627\u062D \u0627\u0644\u0645\u0631\u0648\u0631.",
|
|
422
|
+
"secondFactor.passkeyCancelled": "\u0644\u0645 \u064A\u064F\u0646\u0634\u0623 \u0645\u0641\u062A\u0627\u062D \u0627\u0644\u0645\u0631\u0648\u0631.",
|
|
423
|
+
"secondFactor.passkeyRemoved": "\u0623\u064F\u0632\u064A\u0644 \u0645\u0641\u062A\u0627\u062D \u0627\u0644\u0645\u0631\u0648\u0631.",
|
|
424
|
+
"secondFactor.removePasskeyTitle": "\u0625\u0632\u0627\u0644\u0629 \u0645\u0641\u062A\u0627\u062D \u0627\u0644\u0645\u0631\u0648\u0631 \u0647\u0630\u0627\u061F",
|
|
425
|
+
"secondFactor.removePasskeyHint": "\u0644\u0646 \u064A\u0639\u0645\u0644 \u0628\u0639\u062F \u0630\u0644\u0643 \u0644\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0623\u0648 \u0644\u062A\u0623\u0643\u064A\u062F \u0647\u0648\u064A\u062A\u0643.",
|
|
426
|
+
"secondFactor.rename": "\u0625\u0639\u0627\u062F\u0629 \u062A\u0633\u0645\u064A\u0629",
|
|
427
|
+
"secondFactor.renameTitle": "\u0625\u0639\u0627\u062F\u0629 \u062A\u0633\u0645\u064A\u0629 \u0645\u0641\u062A\u0627\u062D \u0627\u0644\u0645\u0631\u0648\u0631",
|
|
428
|
+
"secondFactor.save": "\u062D\u0641\u0638",
|
|
429
|
+
"secondFactor.cancel": "\u0625\u0644\u063A\u0627\u0621",
|
|
430
|
+
"secondFactor.required.title": "\u0623\u0639\u062F\u0651 \u0645\u0641\u062A\u0627\u062D \u0645\u0631\u0648\u0631 \u0623\u0648 \u062A\u0637\u0628\u064A\u0642 \u0645\u0635\u0627\u062F\u0642\u0629",
|
|
431
|
+
"secondFactor.required.by": "\u064A\u062D\u062A\u0627\u062C \u0645\u062F\u064A\u0631\u0648 \u0627\u0644\u0645\u0648\u0642\u0639 \u0625\u0644\u0649 \u0623\u062D\u062F\u0647\u0645\u0627. \u0623\u0639\u062F\u0651\u0647 \u0642\u0628\u0644 {date}\u061B \u0628\u0639\u062F \u0630\u0644\u0643 \u064A\u0637\u0644\u0628\u0647 \u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644 \u0623\u0648\u0644\u064B\u0627.",
|
|
432
|
+
"secondFactor.required.overdue": "\u064A\u062D\u062A\u0627\u062C \u0645\u062F\u064A\u0631\u0648 \u0627\u0644\u0645\u0648\u0642\u0639 \u0625\u0644\u0649 \u0623\u062D\u062F\u0647\u0645\u0627\u060C \u0648\u0642\u062F \u0645\u0636\u0649 \u0627\u0644\u0645\u0648\u0639\u062F: \u0623\u0639\u062F\u0651\u0647 \u0627\u0644\u0622\u0646.",
|
|
433
|
+
"secondFactor.required.setUp": "\u0623\u0639\u062F\u0651\u0647"
|
|
434
|
+
};
|
|
435
|
+
|
|
436
|
+
// src/areas/guard/texts/en.json
|
|
437
|
+
var en_default = {
|
|
438
|
+
"directories.title": "Directories",
|
|
439
|
+
"directories.subtitle": "User directories in precedence order. When two directories know the same username, the first active one owns it.",
|
|
440
|
+
"directories.add": "Add directory",
|
|
441
|
+
"directories.empty": "No directories.",
|
|
442
|
+
"directories.signIn": "Sign-in",
|
|
443
|
+
"directories.lastSync": "Last sync",
|
|
444
|
+
"directories.syncNow": "Sync now",
|
|
445
|
+
"directories.moveUp": "Move {name} up",
|
|
446
|
+
"directories.moveDown": "Move {name} down",
|
|
447
|
+
"directories.connectorDisabled": "Connector plugin disabled",
|
|
448
|
+
"directories.pluginDisabledHint": "Plugin {plugin} is disabled",
|
|
449
|
+
"directories.synced": "Synced {name}: {added} added, {updated} updated, {deactivated} deactivated, {groups} groups, {memberships} memberships.",
|
|
450
|
+
"directories.syncFailed": "Sync of {name} failed: {error}",
|
|
451
|
+
"directories.internalType": "Internal (kept by {product})",
|
|
452
|
+
"directories.warnings": "{count, plural, one {A warning} other {# warnings}}",
|
|
453
|
+
"directories.addedWithWarnings": "{name} is added. Its settings have warnings:",
|
|
454
|
+
"directoryDetail.notFound": "Directory not found",
|
|
455
|
+
"directoryDetail.back": "Back to directories",
|
|
456
|
+
"directoryDetail.order": "Order {order}",
|
|
457
|
+
"directoryDetail.signInEnabled": "Sign-in enabled",
|
|
458
|
+
"directoryDetail.signInDisabled": "Sign-in disabled",
|
|
459
|
+
"directoryDetail.connectorDisabled": "Connector plugin disabled",
|
|
460
|
+
"directoryDetail.testConnection": "Test connection",
|
|
461
|
+
"directoryDetail.syncNow": "Sync now",
|
|
462
|
+
"directoryDetail.connectionSucceeded": "Connection succeeded.",
|
|
463
|
+
"directoryDetail.connectionFailed": "Connection failed.",
|
|
464
|
+
"directoryDetail.found": "({users} users, {groups} groups found)",
|
|
465
|
+
"directoryDetail.syncCompleted": "Sync completed.",
|
|
466
|
+
"directoryDetail.syncFailed": "Sync failed: {error}",
|
|
467
|
+
"directoryDetail.deleteTitle": "Delete directory \u201C{name}\u201D?",
|
|
468
|
+
"directoryDetail.deleteDescription": "Its synced accounts and groups are removed.",
|
|
469
|
+
"directoryDetail.settings": "Settings",
|
|
470
|
+
"directoryDetail.saved": "Saved.",
|
|
471
|
+
"directoryDetail.summary": "Summary",
|
|
472
|
+
"directoryDetail.syncInterval": "Sync interval",
|
|
473
|
+
"directoryDetail.minutes": "{count, plural, one {# minute} other {# minutes}}",
|
|
474
|
+
"directoryDetail.onDemand": "On demand",
|
|
475
|
+
"directoryDetail.plugin": "Plugin",
|
|
476
|
+
"directoryDetail.builtIn": "Built in",
|
|
477
|
+
"directoryDetail.lastSync": "Last sync",
|
|
478
|
+
"directoryDetail.testLogin": "Test login",
|
|
479
|
+
"directoryDetail.testLoginHint": "Checks each step of signing in against this directory.",
|
|
480
|
+
"directoryDetail.runTest": "Run test",
|
|
481
|
+
"directoryDetail.testSteps": "Test login steps",
|
|
482
|
+
"directoryDetail.steps.Connection": "Connect to the directory",
|
|
483
|
+
"directoryDetail.steps.FindUser": "Find the user",
|
|
484
|
+
"directoryDetail.steps.Authenticate": "Verify the password",
|
|
485
|
+
"directoryDetail.steps.Precedence": "Directory owns this username (precedence)",
|
|
486
|
+
"directoryDetail.syncRuns": "Sync runs",
|
|
487
|
+
"directoryDetail.noRuns": "No sync runs yet.",
|
|
488
|
+
"directoryDetail.started": "Started",
|
|
489
|
+
"directoryDetail.finished": "Finished",
|
|
490
|
+
"directoryDetail.result": "Result",
|
|
491
|
+
"directoryDetail.added": "Added",
|
|
492
|
+
"directoryDetail.updated": "Updated",
|
|
493
|
+
"directoryDetail.deactivated": "Deactivated",
|
|
494
|
+
"directoryDetail.memberships": "Memberships",
|
|
495
|
+
"directoryDetail.error": "Error",
|
|
496
|
+
"directoryDetail.warningsTitle": "Its settings have warnings",
|
|
497
|
+
"directoryForm.name": "Name",
|
|
498
|
+
"directoryForm.type": "Type",
|
|
499
|
+
"directoryForm.selectType": "Select a type",
|
|
500
|
+
"directoryForm.typeFromPlugin": "{name} (plugin {plugin})",
|
|
501
|
+
"directoryForm.syncInterval": "Sync interval (minutes)",
|
|
502
|
+
"directoryForm.syncIntervalHint": "Leave blank to sync only on demand.",
|
|
503
|
+
"directoryForm.active": "Active",
|
|
504
|
+
"directoryForm.signInEnabled": "Sign-in enabled",
|
|
505
|
+
"directoryForm.capabilities": "Capabilities: {list}",
|
|
506
|
+
"directoryForm.connectionSettings": "Connection settings",
|
|
507
|
+
"directoryForm.fillFromPreset": "Fill from preset",
|
|
508
|
+
"directoryForm.choosePreset": "Choose a preset",
|
|
509
|
+
"directoryForm.loadingPresets": "Loading presets",
|
|
510
|
+
"directoryForm.presetsUnavailable": "Presets unavailable: {error}",
|
|
511
|
+
"directoryForm.keepSecret": "Leave blank to keep the stored value",
|
|
512
|
+
"directoryForm.create": "Create directory",
|
|
513
|
+
"directoryForm.save": "Save changes",
|
|
514
|
+
"accounts.title": "Accounts",
|
|
515
|
+
"accounts.subtitle": "The accounts you may see. Your rules decide which directories are included.",
|
|
516
|
+
"accounts.create": "Create internal account",
|
|
517
|
+
"accounts.createTitle": "Create internal account",
|
|
518
|
+
"accounts.createHint": "Internal accounts live in the {product} directory and sign in with a password.",
|
|
519
|
+
"accounts.createSubmit": "Create account",
|
|
520
|
+
"accounts.created": "Account {username} created.",
|
|
521
|
+
"accounts.search": "Search accounts",
|
|
522
|
+
"accounts.searchPlaceholder": "Search username, name or email",
|
|
523
|
+
"accounts.allStatuses": "All statuses",
|
|
524
|
+
"accounts.empty": "No accounts match.",
|
|
525
|
+
"accountDetail.account": "Account",
|
|
526
|
+
"accountDetail.owningDirectory": "Owning directory",
|
|
527
|
+
"accountDetail.lock": "Lock",
|
|
528
|
+
"accountDetail.unlock": "Unlock",
|
|
529
|
+
"accountDetail.identities": "Identities ({count})",
|
|
530
|
+
"accountDetail.identitiesHint": "One row per directory that knows this username. The first active directory in precedence order wins; the others are shadowed.",
|
|
531
|
+
"accountDetail.noIdentities": "No directory identities.",
|
|
532
|
+
"accountDetail.externalId": "External ID",
|
|
533
|
+
"accountDetail.lastSynced": "Last synced",
|
|
534
|
+
"accountDetail.precedence": "Precedence",
|
|
535
|
+
"accountDetail.winning": "Winning",
|
|
536
|
+
"accountDetail.shadowed": "Shadowed",
|
|
537
|
+
"accountDetail.effectiveGroups": "Effective groups ({count})",
|
|
538
|
+
"accountDetail.noGroups": "Not a member of any group.",
|
|
539
|
+
"accountDetail.secondFactor.title": "Two-factor sign-in",
|
|
540
|
+
"accountDetail.secondFactor.asked": "Asked at sign-in",
|
|
541
|
+
"accountDetail.secondFactor.notAsked": "Not asked",
|
|
542
|
+
"accountDetail.secondFactor.mode": "From their groups",
|
|
543
|
+
"accountDetail.secondFactor.factors": "Set up",
|
|
544
|
+
"accountDetail.secondFactor.none": "Nothing set up",
|
|
545
|
+
"accountDetail.secondFactor.recoveryLeft": "Recovery codes left",
|
|
546
|
+
"accountDetail.secondFactor.reset": "Reset two-factor sign-in",
|
|
547
|
+
"accountDetail.secondFactor.resetTitle": "Reset {name}'s two-factor sign-in?",
|
|
548
|
+
"accountDetail.secondFactor.resetHint": "Their authenticator apps and recovery codes stop working. If a group of theirs requires a second factor, they set one up again at their next sign-in. Do this only once you're sure it's really them asking.",
|
|
549
|
+
"accountDetail.secondFactor.resetDone": "Two-factor sign-in reset.",
|
|
550
|
+
"accountName.change": "Change",
|
|
551
|
+
"accountName.label": "Display name",
|
|
552
|
+
"accountName.save": "Save name",
|
|
553
|
+
"accountName.cancel": "Cancel",
|
|
554
|
+
"accountName.saved": "The name is {name} now, wherever it shows.",
|
|
555
|
+
"accountName.languagesHint": "Give your name in each of the site's languages: people reading in that language see it. The English one is kept in history.",
|
|
556
|
+
"groups.title": "Groups",
|
|
557
|
+
"groups.subtitle": "Local groups are created in {product}; synced groups come from a directory. Groups can contain other groups.",
|
|
558
|
+
"groups.create": "Create group",
|
|
559
|
+
"groups.created": "Group {name} created.",
|
|
560
|
+
"groups.searchPlaceholder": "Search groups",
|
|
561
|
+
"groups.allDirectories": "All directories",
|
|
562
|
+
"groups.empty": "No groups match.",
|
|
563
|
+
"groups.local": "Local",
|
|
564
|
+
"groups.synced": "Synced",
|
|
565
|
+
"groups.readOnly": "Read-only",
|
|
566
|
+
"groups.directMembers": "Direct members",
|
|
567
|
+
"groups.memberGroups": "Member groups",
|
|
568
|
+
"groups.directoryHint": "Defaults to the internal directory.",
|
|
569
|
+
"groups.internalDefault": "Internal (default)",
|
|
570
|
+
"groups.kind": "Kind",
|
|
571
|
+
"groups.kindHint": "An organization is a group customers belong to, by hand or by their email\u2019s domain.",
|
|
572
|
+
"groups.kinds.standard": "Group",
|
|
573
|
+
"groups.kinds.directory": "Everyone in a directory",
|
|
574
|
+
"groups.kinds.ou": "OU",
|
|
575
|
+
"groups.kinds.organization": "Organization",
|
|
576
|
+
"groups.domains": "Email domains",
|
|
577
|
+
"groups.domainsHint": "People whose email is in one of these domains join it (acme.com). Separate them with commas.",
|
|
578
|
+
"groupDetail.delete": "Delete group",
|
|
579
|
+
"groupDetail.deleteTitle": "Delete group \u201C{name}\u201D?",
|
|
580
|
+
"groupDetail.writable": "Writable",
|
|
581
|
+
"groupDetail.directMembers": "Direct members ({count})",
|
|
582
|
+
"groupDetail.noMembers": "No direct members.",
|
|
583
|
+
"groupDetail.fromDirectory": "Directory",
|
|
584
|
+
"groupDetail.manual": "Manual",
|
|
585
|
+
"groupDetail.remove": "Remove",
|
|
586
|
+
"groupDetail.memberOf": "Member of ({count})",
|
|
587
|
+
"groupDetail.notNested": "Not nested in any group.",
|
|
588
|
+
"groupDetail.nestedGroups": "Nested groups",
|
|
589
|
+
"groupDetail.readOnlyNotice": "This group is read-only in {product}: its members come from directory sync.",
|
|
590
|
+
"groupDetail.effectiveMembers": "Effective members ({count})",
|
|
591
|
+
"groupDetail.noEffectiveMembers": "No accounts reach this group.",
|
|
592
|
+
"groupDetail.addMember": "Add member",
|
|
593
|
+
"groupDetail.searchMembers": "Search accounts or groups",
|
|
594
|
+
"groupDetail.noMatches": "No matches.",
|
|
595
|
+
"groupDetail.alreadyMember": "Already a member",
|
|
596
|
+
"groupDetail.add": "Add",
|
|
597
|
+
"groupDetail.accountCount": "{count, plural, one {# account} other {# accounts}}",
|
|
598
|
+
"groupDetail.expand": "Expand {name}",
|
|
599
|
+
"groupDetail.collapse": "Collapse {name}",
|
|
600
|
+
"groupDetail.cycle": "Cycle",
|
|
601
|
+
"groupDetail.loadingTree": "Loading",
|
|
602
|
+
"groupDetail.byDomain": "By email domain",
|
|
603
|
+
"groupDetail.fromImport": "From an import",
|
|
604
|
+
"groupDetail.directoryNotice": "{product} puts everyone whose account comes from this directory in this group. Grant it a role to give it to the whole directory, or nest it in another group.",
|
|
605
|
+
"groupDetail.ouNotice": "Everyone under this OU in the directory, at any depth, from the last sync. Change the OUs in the directory\u2019s settings.",
|
|
606
|
+
"groupDetail.organization": "Organization",
|
|
607
|
+
"groupDetail.organizationHint": "Customers in an organization can share their requests with each other where a request type allows it.",
|
|
608
|
+
"groupDetail.attributes": "Attributes",
|
|
609
|
+
"groupDetail.attributesHint": "One per line: name = value (customer number = 1042).",
|
|
610
|
+
"groupDetail.organizationSaved": "Organization saved.",
|
|
611
|
+
"groupDetail.saveOrganization": "Save organization",
|
|
612
|
+
"groupDetail.twoFactor.title": "Two-factor sign-in",
|
|
613
|
+
"groupDetail.twoFactor.hint": "Whether members are asked for a second factor. Each person follows the strictest of all their groups, nested ones too.",
|
|
614
|
+
"groupDetail.twoFactor.modes.off": "Off",
|
|
615
|
+
"groupDetail.twoFactor.modes.optional": "Offered",
|
|
616
|
+
"groupDetail.twoFactor.modes.required": "Required",
|
|
617
|
+
"groupDetail.twoFactor.modes.strong": "Strong",
|
|
618
|
+
"groupDetail.twoFactor.modeHints.off": "Members aren't asked, unless they set one up themselves.",
|
|
619
|
+
"groupDetail.twoFactor.modeHints.optional": "Offered at sign-in and never asked; members who set one up are asked.",
|
|
620
|
+
"groupDetail.twoFactor.modeHints.required": "Members set up a second factor and enter a code at every sign-in.",
|
|
621
|
+
"groupDetail.twoFactor.modeHints.strong": "As Required, and only with an authenticator app, not codes by email or SMS.",
|
|
622
|
+
"groupDetail.twoFactor.saved": "Two-factor sign-in for {name}: {mode}.",
|
|
623
|
+
"groupDetail.twoFactor.pill": "Two-factor: {mode}",
|
|
624
|
+
"groupDetail.names": "Name in each language",
|
|
625
|
+
"groupDetail.namesHint": "People reading in a language see the group's name in it. The English one is kept in history and by the directory.",
|
|
626
|
+
"groupDetail.saveNames": "Save names",
|
|
627
|
+
"signUpSettings.title": "Sign-up",
|
|
628
|
+
"signUpSettings.subtitle": "Whether people may create their own accounts. They confirm their email first; what they may use is up to the roles you grant.",
|
|
629
|
+
"signUpSettings.enabled": "People may sign up",
|
|
630
|
+
"signUpSettings.directory": "Directory",
|
|
631
|
+
"signUpSettings.directoryHint": "Sign-ups are created in this internal directory. Add one such as Customers under Directories.",
|
|
632
|
+
"signUpSettings.chooseDirectory": "Choose a directory",
|
|
633
|
+
"signUpSettings.domains": "Email domains",
|
|
634
|
+
"signUpSettings.domainsHint": "Only these domains may sign up; empty takes any. Separate them with commas.",
|
|
635
|
+
"signUpSettings.grantHint": "To give sign-ups a project, grant its Customer role to the group {group} in the project\u2019s members.",
|
|
636
|
+
"signUpSettings.save": "Save",
|
|
637
|
+
"signUpSettings.saved": "Sign-up saved.",
|
|
638
|
+
"anonymousAccess.title": "Anonymous access",
|
|
639
|
+
"anonymousAccess.subtitle": "Every role given to anonymous visitors. Anyone on the internet gets these, so keep them few.",
|
|
640
|
+
"anonymousAccess.role": "Role",
|
|
641
|
+
"anonymousAccess.scope": "Where",
|
|
642
|
+
"anonymousAccess.since": "Since",
|
|
643
|
+
"anonymousAccess.revoke": "Revoke",
|
|
644
|
+
"anonymousAccess.revokeTitle": "Revoke {role} in {scope} for anonymous visitors?",
|
|
645
|
+
"anonymousAccess.revoked": "Revoked.",
|
|
646
|
+
"anonymousAccess.empty": "Anonymous visitors have no roles anywhere.",
|
|
647
|
+
"merge.mergeInto": "Merge into another account",
|
|
648
|
+
"merge.pageTitle": "Merge into another account",
|
|
649
|
+
"merge.pageHint": "Everything {username} did, owns or is named in moves to the account you choose: records, comments, history, grants, groups, views, dashboards, subscriptions and what plugins keep. {username} stays, inactive, and can't sign in.",
|
|
650
|
+
"merge.alreadyMerged": "This account was merged into {survivor} already.",
|
|
651
|
+
"merge.chooseTitle": "The account that stays",
|
|
652
|
+
"merge.chooseHint": "Usually the person's real account: the one they sign in with.",
|
|
653
|
+
"merge.survivor": "Merge into",
|
|
654
|
+
"merge.searchPlaceholder": "Search by username, name or email",
|
|
655
|
+
"merge.searching": "Searching\u2026",
|
|
656
|
+
"merge.noMatches": "No account matches.",
|
|
657
|
+
"merge.sourceTitle": "Goes",
|
|
658
|
+
"merge.sourceHint": "Stays as an inactive account, merged into the other.",
|
|
659
|
+
"merge.survivorTitle": "Stays",
|
|
660
|
+
"merge.survivorHint": "Gets everything.",
|
|
661
|
+
"merge.previewTitle": "What moves",
|
|
662
|
+
"merge.previewHint": "Counted now; {product}'s own modules move in one transaction, plugins right after.",
|
|
663
|
+
"merge.nothing": "Nothing to move.",
|
|
664
|
+
"merge.pluginError": "This plugin couldn't say: {error}",
|
|
665
|
+
"merge.confirmTitle": "Merge",
|
|
666
|
+
"merge.activeWarning": "{username} can sign in. After the merge it can't: its owner signs in with the other account.",
|
|
667
|
+
"merge.activeOtherDirectory": "{username} can sign in, from another directory. After the merge it can't: its owner signs in with the other account. Merge only if they're the same person.",
|
|
668
|
+
"merge.typeUsername": "Type {username} to confirm",
|
|
669
|
+
"merge.noUndo": "A merge can't be undone. It's recorded on both accounts.",
|
|
670
|
+
"merge.mergeButton": "Merge {source} into {survivor}",
|
|
671
|
+
"merge.merged": "{source} merged into {survivor}.",
|
|
672
|
+
"merge.mergedIncomplete": "{source} merged into {survivor}, but a plugin didn't finish: resume it from the account's merges.",
|
|
673
|
+
"merge.mergedBanner": "This account was merged into <survivor></survivor>: its work, rights and addresses are there now. It can't sign in.",
|
|
674
|
+
"merge.title": "Merges ({count})",
|
|
675
|
+
"merge.hint": "Accounts merged into this one, or this one into another. Nothing here can be undone.",
|
|
676
|
+
"merge.none": "No merges.",
|
|
677
|
+
"merge.when": "When",
|
|
678
|
+
"merge.what": "What",
|
|
679
|
+
"merge.who": "By",
|
|
680
|
+
"merge.moved": "What moved",
|
|
681
|
+
"merge.state": "State",
|
|
682
|
+
"merge.done": "Done",
|
|
683
|
+
"merge.incomplete": "Incomplete",
|
|
684
|
+
"merge.resume": "Resume",
|
|
685
|
+
"merge.someone": "An administrator",
|
|
686
|
+
"merge.mergedInto": "Merged into <survivor></survivor>",
|
|
687
|
+
"merge.mergedFrom": "<source></source> ({name}) merged into this account",
|
|
688
|
+
"merge.reason.admin": "By an administrator",
|
|
689
|
+
"merge.reason.sign-up": "Automatic: signed up",
|
|
690
|
+
"merge.reason.confirmed-address": "Automatic: confirmed their address",
|
|
691
|
+
"merge.reason.account-created": "Automatic: account created",
|
|
692
|
+
"merge.reason.directory-sync": "Automatic: directory sync",
|
|
693
|
+
"merge.reason.address-added": "Automatic: address added",
|
|
694
|
+
"merge.step.failed": "failed",
|
|
695
|
+
"merge.step.pending": "not finished",
|
|
696
|
+
"merge.step.off": "off",
|
|
697
|
+
"merge.plugin": "Plugin {key}",
|
|
698
|
+
"merge.part.guard": "Accounts and permissions",
|
|
699
|
+
"merge.count.grants": "{count, plural, one {# role grant} other {# role grants}}",
|
|
700
|
+
"merge.count.memberships": "{count, plural, one {# group membership} other {# group memberships}}",
|
|
701
|
+
"merge.count.addresses": "{count, plural, one {# address} other {# addresses}}",
|
|
702
|
+
"merge.count.tokens": "{count, plural, one {# access token revoked} other {# access tokens revoked}}",
|
|
703
|
+
"duplicates.title": "Possible duplicates ({count})",
|
|
704
|
+
"duplicates.hint": "Accounts that share an address: often one person twice, such as someone a Jira import couldn't match. Merge them to make one.",
|
|
705
|
+
"duplicates.address": "Address",
|
|
706
|
+
"duplicates.accounts": "Accounts",
|
|
707
|
+
"duplicates.merge": "Merge",
|
|
708
|
+
"duplicates.mergeInto": "Merge {source} into {survivor}",
|
|
709
|
+
"addresses.title": "Email addresses ({count})",
|
|
710
|
+
"addresses.adminHint": "Every confirmed address finds this account: mail in, participants, sign-up and organizations by domain. Addresses you add are confirmed at once; mail goes to the one chosen.",
|
|
711
|
+
"addresses.selfHint": "Every confirmed address finds your account: mail you send in, requests shared with you, organizations by domain. We mail a link to each address you add; it counts once you follow it.",
|
|
712
|
+
"addresses.address": "Address",
|
|
713
|
+
"addresses.from": "From",
|
|
714
|
+
"addresses.source.directory": "Directory",
|
|
715
|
+
"addresses.source.admin": "Added by an administrator",
|
|
716
|
+
"addresses.source.person": "Added by its owner",
|
|
717
|
+
"addresses.source.merge": "From a merged account",
|
|
718
|
+
"addresses.state": "State",
|
|
719
|
+
"addresses.confirmed": "Confirmed",
|
|
720
|
+
"addresses.waiting": "Waiting for the link",
|
|
721
|
+
"addresses.addedAt": "Added",
|
|
722
|
+
"addresses.mail": "Mail",
|
|
723
|
+
"addresses.mailGoesHere": "Mail goes here",
|
|
724
|
+
"addresses.sendHere": "Send mail here",
|
|
725
|
+
"addresses.remove": "Remove",
|
|
726
|
+
"addresses.removeLabel": "Remove {email}",
|
|
727
|
+
"addresses.none": "No addresses.",
|
|
728
|
+
"addresses.placeholder": "someone@example.com",
|
|
729
|
+
"addresses.newAddress": "New address",
|
|
730
|
+
"addresses.add": "Add address",
|
|
731
|
+
"addresses.addAndSend": "Add and send link",
|
|
732
|
+
"addresses.addedToast": "{email} added and confirmed.",
|
|
733
|
+
"addresses.linkSent": "We sent a link to {email}. It counts once you follow it.",
|
|
734
|
+
"addresses.verifyTitle": "Confirm an address",
|
|
735
|
+
"addresses.verified": "{email} is confirmed for {username}.",
|
|
736
|
+
"addresses.toAccount": "Go to your account",
|
|
737
|
+
"addresses.primary": "Primary",
|
|
738
|
+
"addresses.makePrimary": "Make primary",
|
|
739
|
+
"addresses.makePrimaryLabel": "Make {email} the primary address",
|
|
740
|
+
"addresses.primaryChanged": "{email} is the primary address now. The one before stays confirmed, and was told.",
|
|
741
|
+
"addresses.fromDirectory": "The name and primary address come from {directory}: change them there, and the next sync brings them here.",
|
|
742
|
+
"status.account.Active": "Active",
|
|
743
|
+
"status.account.Inactive": "Inactive",
|
|
744
|
+
"status.account.Locked": "Locked",
|
|
745
|
+
"status.plugin.Enabled": "Enabled",
|
|
746
|
+
"status.plugin.Disabled": "Disabled",
|
|
747
|
+
"status.plugin.Installed": "Installed",
|
|
748
|
+
"status.plugin.Failed": "Failed",
|
|
749
|
+
"status.check.notRun": "Not run",
|
|
750
|
+
"status.check.pass": "Pass",
|
|
751
|
+
"status.check.fail": "Fail",
|
|
752
|
+
"status.sync.running": "Running",
|
|
753
|
+
"status.sync.succeeded": "Succeeded",
|
|
754
|
+
"status.sync.failed": "Failed",
|
|
755
|
+
"status.sync.never": "Never synced",
|
|
756
|
+
"common.account": "Account",
|
|
757
|
+
"common.actions": "Actions",
|
|
758
|
+
"common.active": "Active",
|
|
759
|
+
"common.cancel": "Cancel",
|
|
760
|
+
"common.delete": "Delete",
|
|
761
|
+
"common.description": "Description",
|
|
762
|
+
"common.direct": "Direct",
|
|
763
|
+
"common.directory": "Directory",
|
|
764
|
+
"common.disabled": "Disabled",
|
|
765
|
+
"common.displayName": "Display name",
|
|
766
|
+
"common.email": "Email",
|
|
767
|
+
"common.enabled": "Enabled",
|
|
768
|
+
"common.group": "Group",
|
|
769
|
+
"common.groups": "Groups",
|
|
770
|
+
"common.inactive": "Inactive",
|
|
771
|
+
"common.lastSignIn": "Last sign-in",
|
|
772
|
+
"common.membership": "Membership",
|
|
773
|
+
"common.name": "Name",
|
|
774
|
+
"common.nested": "Nested",
|
|
775
|
+
"common.no": "No",
|
|
776
|
+
"common.optional": "(optional)",
|
|
777
|
+
"common.order": "Order",
|
|
778
|
+
"common.password": "Password",
|
|
779
|
+
"common.path": "Path",
|
|
780
|
+
"common.product": "{product}",
|
|
781
|
+
"common.source": "Source",
|
|
782
|
+
"common.status": "Status",
|
|
783
|
+
"common.type": "Type",
|
|
784
|
+
"common.unknownError": "unknown error",
|
|
785
|
+
"common.username": "Username",
|
|
786
|
+
"common.users": "Users",
|
|
787
|
+
"common.yes": "Yes",
|
|
788
|
+
"nav.accounts": "Accounts",
|
|
789
|
+
"nav.groups": "Groups",
|
|
790
|
+
"nav.directories": "Directories",
|
|
791
|
+
"nav.signup": "Sign-up",
|
|
792
|
+
"nav.anonymous": "Anonymous access",
|
|
793
|
+
"secondFactor.disabled": "This site's operator has switched two-factor sign-in off for now: nobody is asked for a code.",
|
|
794
|
+
"secondFactor.kinds.app": "Authenticator app",
|
|
795
|
+
"secondFactor.kinds.email": "email",
|
|
796
|
+
"secondFactor.kinds.sms": "SMS",
|
|
797
|
+
"secondFactor.kinds.whatsapp": "WhatsApp",
|
|
798
|
+
"secondFactor.kinds.passkey": "Passkey",
|
|
799
|
+
"secondFactor.title": "Two-factor sign-in",
|
|
800
|
+
"secondFactor.panelHint": "A passkey, or a code from an app on your phone, after your password, so a stolen password alone doesn't get anyone in.",
|
|
801
|
+
"secondFactor.on": "On",
|
|
802
|
+
"secondFactor.off": "Off",
|
|
803
|
+
"secondFactor.modeHint.off": "Your groups don't ask for a second factor. Set one up and you'll be asked for it at every sign-in.",
|
|
804
|
+
"secondFactor.modeHint.optional": "Your groups offer a second factor. Set one up and you'll be asked for it at every sign-in.",
|
|
805
|
+
"secondFactor.modeHint.required": "Your groups require a second factor at every sign-in.",
|
|
806
|
+
"secondFactor.modeHint.strong": "Your groups require a second factor at every sign-in, from an authenticator app.",
|
|
807
|
+
"secondFactor.added": "Added",
|
|
808
|
+
"secondFactor.lastUsed": "Last used",
|
|
809
|
+
"secondFactor.never": "Not yet",
|
|
810
|
+
"secondFactor.none": "No second factor set up yet.",
|
|
811
|
+
"secondFactor.remove": "Remove",
|
|
812
|
+
"secondFactor.removeTitle": "Remove this authenticator app?",
|
|
813
|
+
"secondFactor.removeHint": "Its codes stop working. With no second factor left, your recovery codes stop working too.",
|
|
814
|
+
"secondFactor.removed": "Authenticator app removed.",
|
|
815
|
+
"secondFactor.setUp": "Set up an authenticator app",
|
|
816
|
+
"secondFactor.addAnother": "Add another authenticator app",
|
|
817
|
+
"secondFactor.recoveryLeft": "{count, plural, =0 {No recovery codes left} one {# recovery code left} other {# recovery codes left}}",
|
|
818
|
+
"secondFactor.renew": "New recovery codes",
|
|
819
|
+
"secondFactor.renewTitle": "Make new recovery codes?",
|
|
820
|
+
"secondFactor.renewHint": "Your old recovery codes stop working.",
|
|
821
|
+
"secondFactor.setup.scan": "Scan this QR code with an authenticator app, such as Microsoft Authenticator, Google Authenticator or 1Password.",
|
|
822
|
+
"secondFactor.setup.qrAlt": "QR code for your authenticator app",
|
|
823
|
+
"secondFactor.setup.cantScan": "Can't scan it? Enter this key in the app instead:",
|
|
824
|
+
"secondFactor.setup.onThisDevice": "Open in an authenticator app on this device",
|
|
825
|
+
"secondFactor.setup.code": "Code from the app",
|
|
826
|
+
"secondFactor.setup.codeHint": "The six digits the app shows now.",
|
|
827
|
+
"secondFactor.setup.verify": "Verify",
|
|
828
|
+
"secondFactor.setup.wrongCode": "That code didn't match. Check the time on your phone, and enter the code the app shows now.",
|
|
829
|
+
"secondFactor.setup.cancel": "Cancel",
|
|
830
|
+
"secondFactor.setup.done": "Authenticator app set up.",
|
|
831
|
+
"secondFactor.recovery.title": "Your recovery codes",
|
|
832
|
+
"secondFactor.recovery.hint": "Each code signs you in once if you lose your phone. Keep them somewhere safe: they won't be shown again.",
|
|
833
|
+
"secondFactor.recovery.copy": "Copy",
|
|
834
|
+
"secondFactor.recovery.download": "Download",
|
|
835
|
+
"secondFactor.recovery.copied": "Recovery codes copied.",
|
|
836
|
+
"secondFactor.recovery.copyFailed": "Couldn't copy: select them and copy them yourself.",
|
|
837
|
+
"secondFactor.recovery.saved": "I've saved them",
|
|
838
|
+
"secondFactor.recovery.fileHeader": "Recovery codes for {site}. Each signs you in once.",
|
|
839
|
+
"secondFactor.alsoBy": "You can also get a code by {list}.",
|
|
840
|
+
"secondFactor.addPasskey": "Add a passkey",
|
|
841
|
+
"secondFactor.passkeyHint": "Name it after the device, then follow its prompt.",
|
|
842
|
+
"secondFactor.passkeyName": "Name for this passkey",
|
|
843
|
+
"secondFactor.passkeyNameDefault": "Passkey",
|
|
844
|
+
"secondFactor.passkeyCreate": "Create the passkey",
|
|
845
|
+
"secondFactor.passkeyAdded": "Passkey added.",
|
|
846
|
+
"secondFactor.passkeyCancelled": "The passkey wasn't created.",
|
|
847
|
+
"secondFactor.passkeyRemoved": "Passkey removed.",
|
|
848
|
+
"secondFactor.removePasskeyTitle": "Remove this passkey?",
|
|
849
|
+
"secondFactor.removePasskeyHint": "It stops working for signing in and confirming it's you.",
|
|
850
|
+
"secondFactor.rename": "Rename",
|
|
851
|
+
"secondFactor.renameTitle": "Rename this passkey",
|
|
852
|
+
"secondFactor.save": "Save",
|
|
853
|
+
"secondFactor.cancel": "Cancel",
|
|
854
|
+
"secondFactor.required.title": "Set up a passkey or an authenticator app",
|
|
855
|
+
"secondFactor.required.by": "Site admins need one. Set it up by {date}; after that, signing in asks you to first.",
|
|
856
|
+
"secondFactor.required.overdue": "Site admins need one, and the date has passed: set it up now.",
|
|
857
|
+
"secondFactor.required.setUp": "Set it up"
|
|
858
|
+
};
|
|
859
|
+
|
|
860
|
+
// src/areas/guard/texts.ts
|
|
861
|
+
var useGuardTexts = createAreaTexts("guard", { en: en_default, ar: ar_default });
|
|
862
|
+
function useGuardNs(namespace) {
|
|
863
|
+
const t = useGuardTexts();
|
|
864
|
+
return useCallback((key, values) => t(`${namespace}.${key}`, values), [t, namespace]);
|
|
865
|
+
}
|
|
866
|
+
function withParts(text, parts) {
|
|
867
|
+
const pieces = text.split(/<(\w+)><\/\1>/);
|
|
868
|
+
return createElement(Fragment, null, ...pieces.map((piece, i) => i % 2 === 0 ? piece : createElement(Fragment, { key: i }, parts[piece] ?? null)));
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
// src/areas/guard/AccountEmailsPanel.tsx
|
|
872
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
873
|
+
function AccountEmailsPanel({ addresses, base, canEdit, onChange }) {
|
|
874
|
+
const t = useGuardNs("addresses");
|
|
875
|
+
const fmt = useFormatters();
|
|
876
|
+
const request = useAreaRequest("guard");
|
|
877
|
+
const action = useApiAction();
|
|
878
|
+
const [email, setEmail] = useState("");
|
|
879
|
+
const self = base === "/me";
|
|
880
|
+
const rows = [
|
|
881
|
+
...addresses.directoryEmail ? [{ id: "directory", email: addresses.directoryEmail, source: "directory", verified: true, mailGoesHere: addresses.directoryMailGoesHere, addedAt: null }] : [],
|
|
882
|
+
...(addresses.addresses ?? []).map((a) => ({
|
|
883
|
+
id: a.id,
|
|
884
|
+
email: a.email,
|
|
885
|
+
source: a.source,
|
|
886
|
+
verified: a.verifiedAt != null,
|
|
887
|
+
mailGoesHere: a.mailGoesHere,
|
|
888
|
+
addedAt: a.addedAt ?? null
|
|
889
|
+
}))
|
|
890
|
+
];
|
|
891
|
+
async function add(e) {
|
|
892
|
+
e.preventDefault();
|
|
893
|
+
const added = email.trim();
|
|
894
|
+
const updated = await action.run(() => request(`${base}/emails`, { method: "POST", body: { email: added } }));
|
|
895
|
+
if (updated) {
|
|
896
|
+
setEmail("");
|
|
897
|
+
onChange(updated);
|
|
898
|
+
notify.success(self ? t("linkSent", { email: added }) : t("addedToast", { email: added }));
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
async function mailTo(row) {
|
|
902
|
+
const updated = await action.run(
|
|
903
|
+
() => request(`${base}/mail-to`, { method: "PUT", body: { email: row.source === "directory" ? null : row.email } })
|
|
904
|
+
);
|
|
905
|
+
if (updated) onChange(updated);
|
|
906
|
+
}
|
|
907
|
+
async function primary(row) {
|
|
908
|
+
const updated = await action.run(() => request(`${base}/emails/${row.id}/primary`, { method: "POST" }));
|
|
909
|
+
if (updated) {
|
|
910
|
+
onChange(updated);
|
|
911
|
+
notify.success(t("primaryChanged", { email: row.email }));
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
async function remove(row) {
|
|
915
|
+
const updated = await action.run(() => request(`${base}/emails/${row.id}`, { method: "DELETE" }));
|
|
916
|
+
if (updated) onChange(updated);
|
|
917
|
+
}
|
|
918
|
+
const columns = [
|
|
919
|
+
{
|
|
920
|
+
id: "email",
|
|
921
|
+
header: t("address"),
|
|
922
|
+
sortValue: (r) => r.email,
|
|
923
|
+
cell: (r) => /* @__PURE__ */ jsx(Text, { as: "span", fontWeight: r.mailGoesHere ? "medium" : void 0, dir: "ltr", wordBreak: "break-all", children: r.email })
|
|
924
|
+
},
|
|
925
|
+
{ id: "source", header: t("from"), sortValue: (r) => r.source, cell: (r) => t(`source.${r.source}`) },
|
|
926
|
+
{
|
|
927
|
+
id: "state",
|
|
928
|
+
header: t("state"),
|
|
929
|
+
sortValue: (r) => r.verified ? 0 : 1,
|
|
930
|
+
cell: (r) => r.verified ? /* @__PURE__ */ jsx(StatusPill, { tone: "success", children: t("confirmed") }) : /* @__PURE__ */ jsx(StatusPill, { tone: "warning", children: t("waiting") })
|
|
931
|
+
},
|
|
932
|
+
{ id: "added", header: t("addedAt"), nowrap: true, sortValue: (r) => r.addedAt ? new Date(r.addedAt) : null, cell: (r) => fmt.dateTime(r.addedAt) },
|
|
933
|
+
{
|
|
934
|
+
id: "mail",
|
|
935
|
+
header: t("mail"),
|
|
936
|
+
cell: (r) => r.mailGoesHere ? /* @__PURE__ */ jsx(StatusPill, { tone: "info", children: t("mailGoesHere") }) : canEdit && r.verified ? /* @__PURE__ */ jsx(Button, { size: "sm", onClick: () => mailTo(r), disabled: action.busy, children: t("sendHere") }) : null
|
|
937
|
+
},
|
|
938
|
+
{
|
|
939
|
+
id: "actions",
|
|
940
|
+
header: "",
|
|
941
|
+
cell: (r) => r.source === "directory" ? addresses.correctable ? /* @__PURE__ */ jsx(StatusPill, { tone: "accent", children: t("primary") }) : null : canEdit ? /* @__PURE__ */ jsxs(HStack, { gap: "2", justify: "flex-end", children: [
|
|
942
|
+
addresses.correctable && r.verified && /* @__PURE__ */ jsx(Button, { size: "sm", onClick: () => primary(r), disabled: action.busy, "aria-label": t("makePrimaryLabel", { email: r.email }), children: t("makePrimary") }),
|
|
943
|
+
/* @__PURE__ */ jsx(Button, { size: "sm", danger: true, onClick: () => remove(r), disabled: action.busy, "aria-label": t("removeLabel", { email: r.email }), children: t("remove") })
|
|
944
|
+
] }) : null
|
|
945
|
+
}
|
|
946
|
+
];
|
|
947
|
+
return /* @__PURE__ */ jsx(Panel, { title: t("title", { count: rows.length }), description: self ? t("selfHint") : t("adminHint"), "data-testid": "addresses", children: /* @__PURE__ */ jsxs(Stack, { gap: "field", children: [
|
|
948
|
+
/* @__PURE__ */ jsx(InlineAlert, { tone: "danger", children: action.error }),
|
|
949
|
+
!addresses.correctable && addresses.directory && /* @__PURE__ */ jsx(Text, { textStyle: "caption", color: "fg.muted", children: t("fromDirectory", { directory: addresses.directory }) }),
|
|
950
|
+
/* @__PURE__ */ jsx(DataTable, { "aria-label": t("title", { count: rows.length }), size: "sm", columns, rows, getRowId: (r) => r.id, empty: t("none") }),
|
|
951
|
+
canEdit && /* @__PURE__ */ jsx("form", { onSubmit: add, children: /* @__PURE__ */ jsxs(HStack, { gap: "2", align: "flex-end", wrap: "wrap", children: [
|
|
952
|
+
/* @__PURE__ */ jsx(
|
|
953
|
+
Input,
|
|
954
|
+
{
|
|
955
|
+
type: "email",
|
|
956
|
+
value: email,
|
|
957
|
+
onChange: (e) => setEmail(e.target.value),
|
|
958
|
+
placeholder: t("placeholder"),
|
|
959
|
+
"aria-label": t("newAddress"),
|
|
960
|
+
maxW: "sm",
|
|
961
|
+
dir: "ltr"
|
|
962
|
+
}
|
|
963
|
+
),
|
|
964
|
+
/* @__PURE__ */ jsx(Button, { type: "submit", loading: action.busy, disabled: !email.trim(), children: self ? t("addAndSend") : t("add") })
|
|
965
|
+
] }) })
|
|
966
|
+
] }) });
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
// src/areas/guard/AccountNameEditor.tsx
|
|
970
|
+
import { useState as useState2 } from "react";
|
|
971
|
+
import { HStack as HStack2, Text as Text2 } from "@chakra-ui/react";
|
|
972
|
+
import { Button as Button2, notify as notify2, TranslatedInput, useApiAction as useApiAction2, useAreaRequest as useAreaRequest2 } from "@abpjs/ui";
|
|
973
|
+
|
|
974
|
+
// src/areas/guard/names.ts
|
|
975
|
+
import { useCallback as useCallback2 } from "react";
|
|
976
|
+
import { useAbpLocale, useHostLanguages } from "@abpjs/ui";
|
|
977
|
+
import { languageChain, pickName } from "@abpjs/ui/rules";
|
|
978
|
+
function useWrittenName() {
|
|
979
|
+
const { locale } = useAbpLocale();
|
|
980
|
+
const languages = useHostLanguages();
|
|
981
|
+
const fallback = languages[0]?.code;
|
|
982
|
+
return useCallback2(
|
|
983
|
+
(name, names) => pickName(languageChain(locale, fallback), { ...names ?? {}, en: name }, name),
|
|
984
|
+
[locale, fallback]
|
|
985
|
+
);
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
// src/areas/guard/AccountNameEditor.tsx
|
|
989
|
+
import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
990
|
+
function AccountNameEditor({ name, names, base, correctable, onRenamed }) {
|
|
991
|
+
const t = useGuardNs("accountName");
|
|
992
|
+
const written = useWrittenName();
|
|
993
|
+
const request = useAreaRequest2("guard");
|
|
994
|
+
const action = useApiAction2();
|
|
995
|
+
const [editing, setEditing] = useState2(false);
|
|
996
|
+
const start = () => ({ ...names ?? {}, en: name });
|
|
997
|
+
const [value, setValue] = useState2(start);
|
|
998
|
+
const typed = (value.en ?? "").trim();
|
|
999
|
+
const others = (v) => Object.fromEntries(Object.entries(v).filter(([code, n]) => code !== "en" && n && n.trim()).map(([code, n]) => [code, n.trim()]));
|
|
1000
|
+
const unchanged = typed === name && JSON.stringify(others(value)) === JSON.stringify(others(names ?? {}));
|
|
1001
|
+
async function save(e) {
|
|
1002
|
+
e.preventDefault();
|
|
1003
|
+
const saved = await action.run(
|
|
1004
|
+
() => request(`${base}/name`, {
|
|
1005
|
+
method: "PUT",
|
|
1006
|
+
body: { displayName: typed, displayNames: others(value) }
|
|
1007
|
+
})
|
|
1008
|
+
);
|
|
1009
|
+
if (saved) {
|
|
1010
|
+
setEditing(false);
|
|
1011
|
+
onRenamed(saved.displayName);
|
|
1012
|
+
notify2.success(t("saved", { name: written(saved.displayName, saved.displayNames) }));
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
if (!editing) {
|
|
1016
|
+
return /* @__PURE__ */ jsxs2(HStack2, { gap: "2", children: [
|
|
1017
|
+
/* @__PURE__ */ jsx2(Text2, { as: "span", children: written(name, names) }),
|
|
1018
|
+
correctable && /* @__PURE__ */ jsx2(
|
|
1019
|
+
Button2,
|
|
1020
|
+
{
|
|
1021
|
+
size: "xs",
|
|
1022
|
+
variant: "ghost",
|
|
1023
|
+
onClick: () => {
|
|
1024
|
+
setValue(start());
|
|
1025
|
+
setEditing(true);
|
|
1026
|
+
},
|
|
1027
|
+
children: t("change")
|
|
1028
|
+
}
|
|
1029
|
+
)
|
|
1030
|
+
] });
|
|
1031
|
+
}
|
|
1032
|
+
return /* @__PURE__ */ jsxs2("form", { onSubmit: save, children: [
|
|
1033
|
+
/* @__PURE__ */ jsxs2(HStack2, { gap: "2", wrap: "wrap", align: "start", children: [
|
|
1034
|
+
/* @__PURE__ */ jsx2(TranslatedInput, { size: "sm", value, onChange: setValue, fallback: name, "aria-label": t("label"), suggest: false, autoFocus: true }),
|
|
1035
|
+
/* @__PURE__ */ jsx2(Button2, { size: "sm", type: "submit", loading: action.busy, disabled: !typed || unchanged, children: t("save") }),
|
|
1036
|
+
/* @__PURE__ */ jsx2(Button2, { size: "sm", variant: "ghost", onClick: () => setEditing(false), children: t("cancel") }),
|
|
1037
|
+
action.error && /* @__PURE__ */ jsx2(Text2, { as: "span", textStyle: "caption", color: "fg.error", children: action.error })
|
|
1038
|
+
] }),
|
|
1039
|
+
/* @__PURE__ */ jsx2(Text2, { textStyle: "caption", color: "fg.muted", mt: "1", children: t("languagesHint") })
|
|
1040
|
+
] });
|
|
1041
|
+
}
|
|
1042
|
+
|
|
1043
|
+
// src/areas/guard/AccountScreen.tsx
|
|
1044
|
+
import { HStack as HStack5, Stack as Stack4, Text as Text6 } from "@chakra-ui/react";
|
|
1045
|
+
import {
|
|
1046
|
+
AppLink as AppLink2,
|
|
1047
|
+
Button as Button5,
|
|
1048
|
+
DataTable as DataTable3,
|
|
1049
|
+
EMPTY_VALUE as EMPTY_VALUE2,
|
|
1050
|
+
HostSlot,
|
|
1051
|
+
InlineAlert as InlineAlert4,
|
|
1052
|
+
Loading,
|
|
1053
|
+
PageHeader,
|
|
1054
|
+
Panel as Panel4,
|
|
1055
|
+
PathChips,
|
|
1056
|
+
PropertyList as PropertyList2,
|
|
1057
|
+
RecordKey,
|
|
1058
|
+
StatusPill as StatusPill5,
|
|
1059
|
+
TextSlot,
|
|
1060
|
+
useApiAction as useApiAction5,
|
|
1061
|
+
useApiQuery as useApiQuery2,
|
|
1062
|
+
useAreaRequest as useAreaRequest5,
|
|
1063
|
+
useCan,
|
|
1064
|
+
useFormatters as useFormatters4,
|
|
1065
|
+
useMe,
|
|
1066
|
+
useNavigate
|
|
1067
|
+
} from "@abpjs/ui";
|
|
1068
|
+
|
|
1069
|
+
// src/areas/guard/AccountSecondFactorPanel.tsx
|
|
1070
|
+
import { HStack as HStack3, Text as Text3 } from "@chakra-ui/react";
|
|
1071
|
+
import { Button as Button3, EMPTY_VALUE, InlineAlert as InlineAlert2, notify as notify3, Panel as Panel2, PropertyList, StatusPill as StatusPill2, useApiAction as useApiAction3, useApiQuery, useAreaRequest as useAreaRequest3, useConfirm } from "@abpjs/ui";
|
|
1072
|
+
|
|
1073
|
+
// src/areas/guard/types.ts
|
|
1074
|
+
var num = (value) => value == null || value === "" ? 0 : typeof value === "number" ? value : Number(value);
|
|
1075
|
+
|
|
1076
|
+
// src/areas/guard/AccountSecondFactorPanel.tsx
|
|
1077
|
+
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
1078
|
+
function AccountSecondFactorPanel({ accountId, name, canReset }) {
|
|
1079
|
+
const t = useGuardNs("accountDetail.secondFactor");
|
|
1080
|
+
const tf = useGuardNs("groupDetail.twoFactor");
|
|
1081
|
+
const ts = useGuardNs("secondFactor");
|
|
1082
|
+
const confirm = useConfirm();
|
|
1083
|
+
const request = useAreaRequest3("guard");
|
|
1084
|
+
const state = useApiQuery("guard", `/accounts/${accountId}/second-factors`);
|
|
1085
|
+
const action = useApiAction3();
|
|
1086
|
+
const data = state.data;
|
|
1087
|
+
const factors = data?.factors ?? [];
|
|
1088
|
+
async function reset() {
|
|
1089
|
+
if (!await confirm({ title: t("resetTitle", { name }), description: t("resetHint"), confirmLabel: t("reset"), danger: true })) return;
|
|
1090
|
+
const ok = await action.run(async () => {
|
|
1091
|
+
await request(`/accounts/${accountId}/second-factors`, { method: "DELETE" });
|
|
1092
|
+
return true;
|
|
1093
|
+
});
|
|
1094
|
+
if (ok) {
|
|
1095
|
+
notify3.success(t("resetDone"));
|
|
1096
|
+
await state.reload();
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
return /* @__PURE__ */ jsxs3(
|
|
1100
|
+
Panel2,
|
|
1101
|
+
{
|
|
1102
|
+
title: t("title"),
|
|
1103
|
+
actions: canReset && factors.length > 0 && /* @__PURE__ */ jsx3(Button3, { size: "sm", danger: true, onClick: () => void reset(), loading: action.busy, "data-testid": "reset-second-factor", children: t("reset") }),
|
|
1104
|
+
"data-testid": "account-second-factor",
|
|
1105
|
+
children: [
|
|
1106
|
+
/* @__PURE__ */ jsx3(InlineAlert2, { tone: "danger", children: state.error ?? action.error }),
|
|
1107
|
+
data?.disabled && /* @__PURE__ */ jsx3(InlineAlert2, { tone: "neutral", children: ts("disabled") }),
|
|
1108
|
+
/* @__PURE__ */ jsx3(
|
|
1109
|
+
PropertyList,
|
|
1110
|
+
{
|
|
1111
|
+
items: [
|
|
1112
|
+
{
|
|
1113
|
+
label: t("mode"),
|
|
1114
|
+
value: data && /* @__PURE__ */ jsxs3(HStack3, { gap: "2", children: [
|
|
1115
|
+
/* @__PURE__ */ jsx3(Text3, { as: "span", children: tf(`modes.${data.mode}`) }),
|
|
1116
|
+
data.asked ? /* @__PURE__ */ jsx3(StatusPill2, { tone: "success", children: t("asked") }) : /* @__PURE__ */ jsx3(StatusPill2, { children: t("notAsked") })
|
|
1117
|
+
] })
|
|
1118
|
+
},
|
|
1119
|
+
{ label: t("factors"), value: data && (factors.length ? factors.map((f) => ts(`kinds.${f.kind}`)).join(", ") : t("none")) },
|
|
1120
|
+
{ label: t("recoveryLeft"), value: data && (factors.length ? String(num(data.recoveryCodesLeft)) : EMPTY_VALUE) }
|
|
1121
|
+
]
|
|
1122
|
+
}
|
|
1123
|
+
)
|
|
1124
|
+
]
|
|
1125
|
+
}
|
|
1126
|
+
);
|
|
1127
|
+
}
|
|
1128
|
+
|
|
1129
|
+
// src/areas/guard/MergeParts.tsx
|
|
1130
|
+
import { HStack as HStack4, Stack as Stack2, Text as Text4 } from "@chakra-ui/react";
|
|
1131
|
+
import { AppLink, Button as Button4, DataTable as DataTable2, InlineAlert as InlineAlert3, Panel as Panel3, StatusPill as StatusPill3, useApiAction as useApiAction4, useAreaRequest as useAreaRequest4, useFormatters as useFormatters2 } from "@abpjs/ui";
|
|
1132
|
+
|
|
1133
|
+
// src/areas/guard/routes.ts
|
|
1134
|
+
function guardRoutes(base = "/admin") {
|
|
1135
|
+
const root = base.replace(/\/$/, "");
|
|
1136
|
+
const one = (kind) => (id) => `${root}/${kind}/${encodeURIComponent(id)}`;
|
|
1137
|
+
return {
|
|
1138
|
+
directories: `${root}/directories`,
|
|
1139
|
+
directory: one("directories"),
|
|
1140
|
+
accounts: `${root}/accounts`,
|
|
1141
|
+
account: one("accounts"),
|
|
1142
|
+
accountMerge: (id) => `${one("accounts")(id)}/merge`,
|
|
1143
|
+
groups: `${root}/groups`,
|
|
1144
|
+
group: one("groups")
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
// src/areas/guard/MergeParts.tsx
|
|
1149
|
+
import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1150
|
+
function useCountLabel() {
|
|
1151
|
+
const t = useGuardNs("merge");
|
|
1152
|
+
return (c) => {
|
|
1153
|
+
const key = `count.${c.key.replace(/\./g, "_")}`;
|
|
1154
|
+
const text = t(key, { count: c.count });
|
|
1155
|
+
return text === `merge.${key}` ? `${c.label ?? c.key}: ${c.count}` : text;
|
|
1156
|
+
};
|
|
1157
|
+
}
|
|
1158
|
+
function usePartLabel() {
|
|
1159
|
+
const t = useGuardNs("merge");
|
|
1160
|
+
return (key, plugin) => {
|
|
1161
|
+
if (plugin) return t("plugin", { key });
|
|
1162
|
+
const text = t(`part.${key}`);
|
|
1163
|
+
return text === `merge.part.${key}` ? key : text;
|
|
1164
|
+
};
|
|
1165
|
+
}
|
|
1166
|
+
function CountList({ counts }) {
|
|
1167
|
+
const label = useCountLabel();
|
|
1168
|
+
const t = useGuardNs("merge");
|
|
1169
|
+
if (counts.length === 0) return /* @__PURE__ */ jsx4(Text4, { color: "fg.muted", children: t("nothing") });
|
|
1170
|
+
return /* @__PURE__ */ jsx4(Stack2, { gap: "0.5", as: "ul", listStyleType: "none", ps: "0", m: "0", children: counts.map((c) => /* @__PURE__ */ jsx4(Text4, { as: "li", textStyle: "body.sm", children: label(c) }, c.key)) });
|
|
1171
|
+
}
|
|
1172
|
+
function MergesPanel({ accountId, merges, onChange, routes = guardRoutes() }) {
|
|
1173
|
+
const t = useGuardNs("merge");
|
|
1174
|
+
const fmt = useFormatters2();
|
|
1175
|
+
const partLabel = usePartLabel();
|
|
1176
|
+
const request = useAreaRequest4("guard");
|
|
1177
|
+
const action = useApiAction4();
|
|
1178
|
+
async function resume(m) {
|
|
1179
|
+
if (await action.run(() => request(`/merges/${m.id}/resume`, { method: "POST" }))) await onChange();
|
|
1180
|
+
}
|
|
1181
|
+
const columns = [
|
|
1182
|
+
{ id: "when", header: t("when"), nowrap: true, sortValue: (m) => new Date(m.startedAt), cell: (m) => fmt.dateTime(m.startedAt) },
|
|
1183
|
+
{
|
|
1184
|
+
id: "what",
|
|
1185
|
+
header: t("what"),
|
|
1186
|
+
cell: (m) => m.sourceId === accountId ? /* @__PURE__ */ jsx4(Text4, { as: "span", children: withParts(t("mergedInto"), {
|
|
1187
|
+
survivor: /* @__PURE__ */ jsx4(AppLink, { href: routes.account(m.survivorId), fontWeight: "medium", children: m.survivorUsername })
|
|
1188
|
+
}) }) : /* @__PURE__ */ jsx4(Text4, { as: "span", children: withParts(t("mergedFrom", { name: m.sourceDisplayName ?? "" }), {
|
|
1189
|
+
source: /* @__PURE__ */ jsx4(AppLink, { href: routes.account(m.sourceId), fontWeight: "medium", children: m.sourceUsername })
|
|
1190
|
+
}) })
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
id: "who",
|
|
1194
|
+
header: t("who"),
|
|
1195
|
+
cell: (m) => m.automatic ? /* @__PURE__ */ jsx4(StatusPill3, { tone: "accent", children: t(`reason.${m.reason}`) }) : m.actorUsername ?? t("someone")
|
|
1196
|
+
},
|
|
1197
|
+
{
|
|
1198
|
+
id: "moved",
|
|
1199
|
+
header: t("moved"),
|
|
1200
|
+
cell: (m) => /* @__PURE__ */ jsx4(Stack2, { gap: "1", children: m.steps.filter((s) => s.counts.length > 0 || s.state !== "done").map((s) => /* @__PURE__ */ jsxs4(Stack2, { gap: "0", children: [
|
|
1201
|
+
/* @__PURE__ */ jsxs4(Text4, { textStyle: "caption", color: "fg.muted", children: [
|
|
1202
|
+
partLabel(s.key, s.plugin),
|
|
1203
|
+
s.state !== "done" && ` \xB7 ${t(`step.${s.state}`)}`
|
|
1204
|
+
] }),
|
|
1205
|
+
s.error && /* @__PURE__ */ jsx4(Text4, { textStyle: "caption", color: "fg.danger", children: s.error }),
|
|
1206
|
+
/* @__PURE__ */ jsx4(CountList, { counts: s.counts })
|
|
1207
|
+
] }, s.key)) })
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
id: "state",
|
|
1211
|
+
header: t("state"),
|
|
1212
|
+
cell: (m) => m.state === "done" ? /* @__PURE__ */ jsx4(StatusPill3, { tone: "success", children: t("done") }) : /* @__PURE__ */ jsxs4(HStack4, { gap: "2", wrap: "wrap", children: [
|
|
1213
|
+
/* @__PURE__ */ jsx4(StatusPill3, { tone: "warning", children: t("incomplete") }),
|
|
1214
|
+
/* @__PURE__ */ jsx4(Button4, { size: "sm", onClick: () => resume(m), loading: action.busy, children: t("resume") })
|
|
1215
|
+
] })
|
|
1216
|
+
}
|
|
1217
|
+
];
|
|
1218
|
+
return /* @__PURE__ */ jsxs4(Panel3, { title: t("title", { count: merges.length }), description: t("hint"), flush: true, "data-testid": "merges", children: [
|
|
1219
|
+
/* @__PURE__ */ jsx4(InlineAlert3, { tone: "danger", children: action.error }),
|
|
1220
|
+
/* @__PURE__ */ jsx4(
|
|
1221
|
+
DataTable2,
|
|
1222
|
+
{
|
|
1223
|
+
"aria-label": t("title", { count: merges.length }),
|
|
1224
|
+
columns,
|
|
1225
|
+
rows: merges,
|
|
1226
|
+
getRowId: (m) => m.id,
|
|
1227
|
+
defaultSort: { columnId: "when", direction: "desc" },
|
|
1228
|
+
empty: t("none")
|
|
1229
|
+
}
|
|
1230
|
+
)
|
|
1231
|
+
] });
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
// src/areas/guard/status.tsx
|
|
1235
|
+
import { Stack as Stack3, Text as Text5 } from "@chakra-ui/react";
|
|
1236
|
+
import { StatusPill as StatusPill4, useFormatters as useFormatters3 } from "@abpjs/ui";
|
|
1237
|
+
import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
1238
|
+
var accountTone = { Active: "success", Inactive: "neutral", Locked: "danger" };
|
|
1239
|
+
function AccountStatusPill({ status }) {
|
|
1240
|
+
const t = useGuardNs("status.account");
|
|
1241
|
+
const known = Object.hasOwn(accountTone, status) ? status : null;
|
|
1242
|
+
return /* @__PURE__ */ jsx5(StatusPill4, { tone: known ? accountTone[known] : "neutral", children: known ? t(known) : status });
|
|
1243
|
+
}
|
|
1244
|
+
var pluginTone = { Enabled: "success", Disabled: "neutral", Installed: "info", Failed: "danger" };
|
|
1245
|
+
function PluginStatePill({ state }) {
|
|
1246
|
+
const t = useGuardNs("status.plugin");
|
|
1247
|
+
const known = Object.hasOwn(pluginTone, state) ? state : null;
|
|
1248
|
+
return /* @__PURE__ */ jsx5(StatusPill4, { tone: known ? pluginTone[known] : "neutral", children: known ? t(known) : state });
|
|
1249
|
+
}
|
|
1250
|
+
function FlagPill({ value, yes, no }) {
|
|
1251
|
+
return /* @__PURE__ */ jsx5(StatusPill4, { tone: value ? "success" : "neutral", children: value ? yes : no });
|
|
1252
|
+
}
|
|
1253
|
+
function PassFail({ ok }) {
|
|
1254
|
+
const t = useGuardNs("status.check");
|
|
1255
|
+
if (ok == null) return /* @__PURE__ */ jsx5(StatusPill4, { children: t("notRun") });
|
|
1256
|
+
return /* @__PURE__ */ jsx5(StatusPill4, { tone: ok ? "success" : "danger", children: ok ? t("pass") : t("fail") });
|
|
1257
|
+
}
|
|
1258
|
+
function SyncResultPill({ succeeded }) {
|
|
1259
|
+
const t = useGuardNs("status.sync");
|
|
1260
|
+
if (succeeded == null) return /* @__PURE__ */ jsx5(StatusPill4, { tone: "warning", children: t("running") });
|
|
1261
|
+
return /* @__PURE__ */ jsx5(StatusPill4, { tone: succeeded ? "success" : "danger", children: succeeded ? t("succeeded") : t("failed") });
|
|
1262
|
+
}
|
|
1263
|
+
function SyncStatus({ d }) {
|
|
1264
|
+
const t = useGuardNs("status.sync");
|
|
1265
|
+
const fmt = useFormatters3();
|
|
1266
|
+
if (!d.lastSyncAt) return /* @__PURE__ */ jsx5(StatusPill4, { children: t("never") });
|
|
1267
|
+
return /* @__PURE__ */ jsxs5(Stack3, { gap: "0.5", align: "flex-start", minW: "0", maxW: "full", children: [
|
|
1268
|
+
/* @__PURE__ */ jsx5(SyncResultPill, { succeeded: d.lastSyncSucceeded ?? null }),
|
|
1269
|
+
/* @__PURE__ */ jsx5(Text5, { textStyle: "caption", color: "fg.muted", children: fmt.dateTime(d.lastSyncAt) }),
|
|
1270
|
+
d.lastSyncMessage && /* @__PURE__ */ jsx5(Text5, { textStyle: "caption", color: "fg.muted", maxW: "full", truncate: true, dir: "auto", title: d.lastSyncMessage, children: d.lastSyncMessage })
|
|
1271
|
+
] });
|
|
1272
|
+
}
|
|
1273
|
+
|
|
1274
|
+
// src/areas/guard/AccountScreen.tsx
|
|
1275
|
+
import { Fragment as Fragment2, jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1276
|
+
function useAccountCan(detail) {
|
|
1277
|
+
const can = useCan();
|
|
1278
|
+
return (action) => detail?.can?.[action] ?? can("guard.site.admin");
|
|
1279
|
+
}
|
|
1280
|
+
var NO_ADDRESSES = { directoryEmail: null, directoryMailGoesHere: false, mailTo: null, addresses: [] };
|
|
1281
|
+
function AccountScreen({ id, routes = guardRoutes() }) {
|
|
1282
|
+
const t = useGuardNs("accountDetail");
|
|
1283
|
+
const tm = useGuardNs("merge");
|
|
1284
|
+
const tc = useGuardNs("common");
|
|
1285
|
+
const tn = useGuardNs("nav");
|
|
1286
|
+
const fmt = useFormatters4();
|
|
1287
|
+
const navigate = useNavigate();
|
|
1288
|
+
const me = useMe();
|
|
1289
|
+
const request = useAreaRequest5("guard");
|
|
1290
|
+
const detail = useApiQuery2("guard", `/accounts/${id}`);
|
|
1291
|
+
const action = useApiAction5();
|
|
1292
|
+
const may = useAccountCan(detail.data);
|
|
1293
|
+
async function setLocked(lock) {
|
|
1294
|
+
const updated = await action.run(() => request(`/accounts/${id}/${lock ? "lock" : "unlock"}`, { method: "POST" }));
|
|
1295
|
+
if (updated) await detail.reload();
|
|
1296
|
+
}
|
|
1297
|
+
if (detail.error && !detail.data) return /* @__PURE__ */ jsx6(InlineAlert4, { tone: "danger", children: detail.error });
|
|
1298
|
+
const data = detail.data;
|
|
1299
|
+
const account = data?.account;
|
|
1300
|
+
const merged = account?.mergedIntoId != null;
|
|
1301
|
+
const slotContext = { account, detail: data, reload: detail.reload };
|
|
1302
|
+
const identityColumns = [
|
|
1303
|
+
{ id: "order", header: tc("order"), numeric: true, sortValue: (i) => i.directoryOrder, cell: (i) => i.directoryOrder },
|
|
1304
|
+
{
|
|
1305
|
+
id: "directory",
|
|
1306
|
+
header: tc("directory"),
|
|
1307
|
+
sortValue: (i) => i.directoryName,
|
|
1308
|
+
cell: (i) => /* @__PURE__ */ jsx6(AppLink2, { href: routes.directory(i.directoryId), fontWeight: i.isWinning ? "medium" : void 0, children: i.directoryName })
|
|
1309
|
+
},
|
|
1310
|
+
{ id: "username", header: tc("username"), sortValue: (i) => i.username, cell: (i) => /* @__PURE__ */ jsx6(RecordKey, { value: i.username }), skeleton: "key" },
|
|
1311
|
+
{
|
|
1312
|
+
id: "externalId",
|
|
1313
|
+
header: t("externalId"),
|
|
1314
|
+
cell: (i) => /* @__PURE__ */ jsx6(Text6, { as: "span", textStyle: "code", color: "fg.muted", wordBreak: "break-all", dir: "ltr", children: i.externalId })
|
|
1315
|
+
},
|
|
1316
|
+
{ id: "displayName", header: tc("displayName"), sortValue: (i) => i.displayName, cell: (i) => i.displayName ?? EMPTY_VALUE2, skeleton: "person" },
|
|
1317
|
+
{ id: "email", header: tc("email"), sortValue: (i) => i.email, cell: (i) => i.email ?? EMPTY_VALUE2 },
|
|
1318
|
+
{
|
|
1319
|
+
id: "active",
|
|
1320
|
+
header: tc("active"),
|
|
1321
|
+
sortValue: (i) => i.isActive,
|
|
1322
|
+
cell: (i) => i.isActive ? /* @__PURE__ */ jsx6(StatusPill5, { tone: "success", children: tc("active") }) : /* @__PURE__ */ jsx6(StatusPill5, { children: tc("inactive") }),
|
|
1323
|
+
skeleton: "pill"
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
id: "synced",
|
|
1327
|
+
header: t("lastSynced"),
|
|
1328
|
+
nowrap: true,
|
|
1329
|
+
sortValue: (i) => i.lastSyncedAt ? new Date(i.lastSyncedAt) : null,
|
|
1330
|
+
cell: (i) => fmt.dateTime(i.lastSyncedAt),
|
|
1331
|
+
skeleton: "date",
|
|
1332
|
+
skeletonWidth: 17
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
id: "precedence",
|
|
1336
|
+
header: t("precedence"),
|
|
1337
|
+
sortValue: (i) => i.isWinning,
|
|
1338
|
+
cell: (i) => i.isWinning ? /* @__PURE__ */ jsx6(StatusPill5, { tone: "success", children: t("winning") }) : /* @__PURE__ */ jsx6(StatusPill5, { children: t("shadowed") }),
|
|
1339
|
+
skeleton: "pill"
|
|
1340
|
+
}
|
|
1341
|
+
];
|
|
1342
|
+
const groupColumns = [
|
|
1343
|
+
{
|
|
1344
|
+
id: "group",
|
|
1345
|
+
header: tc("group"),
|
|
1346
|
+
sortValue: (g) => g.name,
|
|
1347
|
+
cell: (g) => /* @__PURE__ */ jsx6(AppLink2, { href: routes.group(g.groupId), fontWeight: "medium", children: g.name })
|
|
1348
|
+
},
|
|
1349
|
+
{ id: "directory", header: tc("directory"), sortValue: (g) => g.directoryName, cell: (g) => g.directoryName },
|
|
1350
|
+
{
|
|
1351
|
+
id: "membership",
|
|
1352
|
+
header: tc("membership"),
|
|
1353
|
+
sortValue: (g) => g.direct ? 0 : 1,
|
|
1354
|
+
cell: (g) => g.direct ? /* @__PURE__ */ jsx6(StatusPill5, { tone: "info", children: tc("direct") }) : /* @__PURE__ */ jsx6(StatusPill5, { children: tc("nested") }),
|
|
1355
|
+
skeleton: "pill"
|
|
1356
|
+
},
|
|
1357
|
+
{ id: "path", header: tc("path"), sortValue: (g) => g.path.length, cell: (g) => /* @__PURE__ */ jsx6(PathChips, { path: g.path }), skeleton: () => /* @__PURE__ */ jsx6(PathChips, { path: [], loading: true }) }
|
|
1358
|
+
];
|
|
1359
|
+
return /* @__PURE__ */ jsxs6(Loading, { when: !data, children: [
|
|
1360
|
+
/* @__PURE__ */ jsx6(
|
|
1361
|
+
PageHeader,
|
|
1362
|
+
{
|
|
1363
|
+
breadcrumbs: [{ label: tn("accounts"), href: routes.accounts }, { label: account?.username }],
|
|
1364
|
+
title: account && (account.displayName || account.username),
|
|
1365
|
+
meta: /* @__PURE__ */ jsxs6(Fragment2, { children: [
|
|
1366
|
+
account ? /* @__PURE__ */ jsx6(AccountStatusPill, { status: account.status }) : /* @__PURE__ */ jsx6(StatusPill5, {}),
|
|
1367
|
+
/* @__PURE__ */ jsx6(RecordKey, { value: account?.username, variant: "muted" }),
|
|
1368
|
+
/* @__PURE__ */ jsx6(Text6, { as: "span", children: /* @__PURE__ */ jsx6(TextSlot, { width: 12, children: account?.directoryName }) }),
|
|
1369
|
+
account?.statusReason && /* @__PURE__ */ jsx6(Text6, { as: "span", children: account.statusReason })
|
|
1370
|
+
] }),
|
|
1371
|
+
actions: !merged && /* @__PURE__ */ jsxs6(HStack5, { gap: "2", children: [
|
|
1372
|
+
account && /* @__PURE__ */ jsx6(HostSlot, { name: "guard.account.actions", context: slotContext }),
|
|
1373
|
+
may("merge") && /* @__PURE__ */ jsx6(Button5, { onClick: () => navigate(routes.accountMerge(account?.id ?? id)), children: tm("mergeInto") }),
|
|
1374
|
+
account?.status === "Locked" ? may("unlock") && /* @__PURE__ */ jsx6(Button5, { onClick: () => setLocked(false), loading: action.busy, children: t("unlock") }) : may("lock") && /* @__PURE__ */ jsx6(Button5, { danger: true, onClick: () => setLocked(true), loading: action.busy, children: t("lock") })
|
|
1375
|
+
] })
|
|
1376
|
+
}
|
|
1377
|
+
),
|
|
1378
|
+
/* @__PURE__ */ jsxs6(Stack4, { gap: "section", children: [
|
|
1379
|
+
/* @__PURE__ */ jsx6(InlineAlert4, { tone: "danger", children: action.error }),
|
|
1380
|
+
merged && /* @__PURE__ */ jsx6(InlineAlert4, { tone: "info", "data-testid": "merged", children: withParts(tm("mergedBanner"), {
|
|
1381
|
+
survivor: /* @__PURE__ */ jsx6(AppLink2, { href: routes.account(account?.mergedIntoId ?? ""), fontWeight: "medium", children: data?.mergedIntoUsername ?? account?.mergedIntoId })
|
|
1382
|
+
}) }),
|
|
1383
|
+
account && /* @__PURE__ */ jsx6(HostSlot, { name: "guard.account.notices", context: slotContext }),
|
|
1384
|
+
/* @__PURE__ */ jsx6(Panel4, { title: t("account"), children: /* @__PURE__ */ jsx6(
|
|
1385
|
+
PropertyList2,
|
|
1386
|
+
{
|
|
1387
|
+
items: [
|
|
1388
|
+
{
|
|
1389
|
+
label: tc("displayName"),
|
|
1390
|
+
value: account && /* @__PURE__ */ jsx6(
|
|
1391
|
+
AccountNameEditor,
|
|
1392
|
+
{
|
|
1393
|
+
name: account.displayName || account.username,
|
|
1394
|
+
names: account.displayNames,
|
|
1395
|
+
base: `/accounts/${account.id}`,
|
|
1396
|
+
correctable: (data?.addresses?.correctable ?? false) && may("update"),
|
|
1397
|
+
onRenamed: () => void detail.reload()
|
|
1398
|
+
}
|
|
1399
|
+
)
|
|
1400
|
+
},
|
|
1401
|
+
{ label: tc("email"), value: account && (account.email ?? EMPTY_VALUE2) },
|
|
1402
|
+
{ label: t("owningDirectory"), value: account?.directoryName },
|
|
1403
|
+
{ label: tc("lastSignIn"), value: account && fmt.dateTime(account.lastLoginAt) }
|
|
1404
|
+
]
|
|
1405
|
+
}
|
|
1406
|
+
) }),
|
|
1407
|
+
!merged && account && /* @__PURE__ */ jsx6(
|
|
1408
|
+
AccountSecondFactorPanel,
|
|
1409
|
+
{
|
|
1410
|
+
accountId: account.id,
|
|
1411
|
+
name: account.displayName || account.username,
|
|
1412
|
+
canReset: may("resetSecondFactor") && account.id !== me?.accountId
|
|
1413
|
+
}
|
|
1414
|
+
),
|
|
1415
|
+
!merged && /* @__PURE__ */ jsx6(
|
|
1416
|
+
AccountEmailsPanel,
|
|
1417
|
+
{
|
|
1418
|
+
addresses: data?.addresses ?? NO_ADDRESSES,
|
|
1419
|
+
base: `/accounts/${account?.id ?? id}`,
|
|
1420
|
+
canEdit: may("update"),
|
|
1421
|
+
onChange: (updated) => data && detail.setData({ ...data, addresses: updated })
|
|
1422
|
+
}
|
|
1423
|
+
),
|
|
1424
|
+
account && /* @__PURE__ */ jsx6(HostSlot, { name: "guard.account.panels", context: slotContext }),
|
|
1425
|
+
/* @__PURE__ */ jsx6(
|
|
1426
|
+
Panel4,
|
|
1427
|
+
{
|
|
1428
|
+
title: /* @__PURE__ */ jsx6(TextSlot, { width: 14, children: t("identities", { count: data?.identities.length ?? 0 }) }),
|
|
1429
|
+
description: t("identitiesHint"),
|
|
1430
|
+
flush: true,
|
|
1431
|
+
children: /* @__PURE__ */ jsx6(
|
|
1432
|
+
DataTable3,
|
|
1433
|
+
{
|
|
1434
|
+
"aria-label": t("identities", { count: data?.identities.length ?? 0 }),
|
|
1435
|
+
size: "sm",
|
|
1436
|
+
columns: identityColumns,
|
|
1437
|
+
rows: data?.identities,
|
|
1438
|
+
skeletonRows: 1,
|
|
1439
|
+
getRowId: (i) => `${i.directoryId}:${i.externalId}`,
|
|
1440
|
+
defaultSort: { columnId: "order", direction: "asc" },
|
|
1441
|
+
rowProps: (i) => i.isWinning ? { "data-selected": "" } : void 0,
|
|
1442
|
+
empty: t("noIdentities")
|
|
1443
|
+
}
|
|
1444
|
+
)
|
|
1445
|
+
}
|
|
1446
|
+
),
|
|
1447
|
+
/* @__PURE__ */ jsx6(Panel4, { title: /* @__PURE__ */ jsx6(TextSlot, { width: 20, children: t("effectiveGroups", { count: data?.groups.length ?? 0 }) }), flush: true, children: /* @__PURE__ */ jsx6(
|
|
1448
|
+
DataTable3,
|
|
1449
|
+
{
|
|
1450
|
+
"aria-label": t("effectiveGroups", { count: data?.groups.length ?? 0 }),
|
|
1451
|
+
columns: groupColumns,
|
|
1452
|
+
rows: data?.groups,
|
|
1453
|
+
getRowId: (g) => g.groupId,
|
|
1454
|
+
defaultSort: { columnId: "path", direction: "asc" },
|
|
1455
|
+
empty: t("noGroups")
|
|
1456
|
+
}
|
|
1457
|
+
) }),
|
|
1458
|
+
data && (data.merges.length > 0 || may("merge")) && /* @__PURE__ */ jsx6(MergesPanel, { accountId: data.account.id, merges: data.merges, onChange: detail.reload, routes })
|
|
1459
|
+
] })
|
|
1460
|
+
] });
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
// src/areas/guard/AccountsScreen.tsx
|
|
1464
|
+
import { useState as useState3 } from "react";
|
|
1465
|
+
import { HStack as HStack7, Input as Input2, SimpleGrid, Stack as Stack6, Text as Text8 } from "@chakra-ui/react";
|
|
1466
|
+
import {
|
|
1467
|
+
Button as Button6,
|
|
1468
|
+
DataTable as DataTable5,
|
|
1469
|
+
EMPTY_VALUE as EMPTY_VALUE3,
|
|
1470
|
+
errorText,
|
|
1471
|
+
Field,
|
|
1472
|
+
InlineAlert as InlineAlert5,
|
|
1473
|
+
ListFooter,
|
|
1474
|
+
notify as notify4,
|
|
1475
|
+
PageHeader as PageHeader2,
|
|
1476
|
+
Panel as Panel6,
|
|
1477
|
+
RecordKey as RecordKey3,
|
|
1478
|
+
SearchInput,
|
|
1479
|
+
SelectField,
|
|
1480
|
+
useApiQuery as useApiQuery4,
|
|
1481
|
+
useAreaListSource,
|
|
1482
|
+
useAreaRequest as useAreaRequest6,
|
|
1483
|
+
useCan as useCan2,
|
|
1484
|
+
useFormatters as useFormatters5,
|
|
1485
|
+
useListState
|
|
1486
|
+
} from "@abpjs/ui";
|
|
1487
|
+
|
|
1488
|
+
// src/areas/guard/DuplicatesPanel.tsx
|
|
1489
|
+
import { HStack as HStack6, Stack as Stack5, Text as Text7 } from "@chakra-ui/react";
|
|
1490
|
+
import { AppLink as AppLink3, DataTable as DataTable4, Panel as Panel5, RecordKey as RecordKey2, useApiQuery as useApiQuery3 } from "@abpjs/ui";
|
|
1491
|
+
import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
1492
|
+
function DuplicatesPanel({ routes = guardRoutes() }) {
|
|
1493
|
+
const t = useGuardNs("duplicates");
|
|
1494
|
+
const duplicates = useApiQuery3("guard", "/accounts/duplicates");
|
|
1495
|
+
const rows = duplicates.data ?? [];
|
|
1496
|
+
if (rows.length === 0) return null;
|
|
1497
|
+
const columns = [
|
|
1498
|
+
{
|
|
1499
|
+
id: "email",
|
|
1500
|
+
header: t("address"),
|
|
1501
|
+
sortValue: (d) => d.email,
|
|
1502
|
+
cell: (d) => /* @__PURE__ */ jsx7(Text7, { as: "span", dir: "ltr", wordBreak: "break-all", children: d.email })
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
id: "accounts",
|
|
1506
|
+
header: t("accounts"),
|
|
1507
|
+
cell: (d) => /* @__PURE__ */ jsx7(Stack5, { gap: "1", children: d.accounts.map((a) => /* @__PURE__ */ jsxs7(HStack6, { gap: "2", wrap: "wrap", children: [
|
|
1508
|
+
/* @__PURE__ */ jsx7(RecordKey2, { value: a.username, href: routes.account(a.id) }),
|
|
1509
|
+
/* @__PURE__ */ jsx7(Text7, { as: "span", textStyle: "caption", color: "fg.muted", children: a.directoryName }),
|
|
1510
|
+
/* @__PURE__ */ jsx7(AccountStatusPill, { status: a.status })
|
|
1511
|
+
] }, a.id)) })
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
id: "merge",
|
|
1515
|
+
header: t("merge"),
|
|
1516
|
+
cell: (d) => /* @__PURE__ */ jsx7(Stack5, { gap: "1", children: d.accounts.slice(1).map((a) => /* @__PURE__ */ jsx7(AppLink3, { href: `${routes.accountMerge(a.id)}?into=${d.accounts[0].id}`, children: t("mergeInto", { source: a.username, survivor: d.accounts[0].username }) }, a.id)) })
|
|
1517
|
+
}
|
|
1518
|
+
];
|
|
1519
|
+
return /* @__PURE__ */ jsx7(Panel5, { title: t("title", { count: rows.length }), description: t("hint"), flush: true, "data-testid": "duplicates", children: /* @__PURE__ */ jsx7(
|
|
1520
|
+
DataTable4,
|
|
1521
|
+
{
|
|
1522
|
+
"aria-label": t("title", { count: rows.length }),
|
|
1523
|
+
columns,
|
|
1524
|
+
rows,
|
|
1525
|
+
getRowId: (d) => d.email,
|
|
1526
|
+
defaultSort: { columnId: "email", direction: "asc" }
|
|
1527
|
+
}
|
|
1528
|
+
) });
|
|
1529
|
+
}
|
|
1530
|
+
|
|
1531
|
+
// src/areas/guard/AccountsScreen.tsx
|
|
1532
|
+
import { Fragment as Fragment3, jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1533
|
+
var INTERNAL_DIRECTORY = "00000000-0000-0000-0000-00000000d001";
|
|
1534
|
+
var STATUSES = ["Active", "Inactive", "Locked"];
|
|
1535
|
+
function AccountsScreen({ routes = guardRoutes(), source }) {
|
|
1536
|
+
const t = useGuardNs("accounts");
|
|
1537
|
+
const tc = useGuardNs("common");
|
|
1538
|
+
const ts = useGuardNs("status.account");
|
|
1539
|
+
const fmt = useFormatters5();
|
|
1540
|
+
const can = useCan2();
|
|
1541
|
+
const admin = can("guard.site.admin");
|
|
1542
|
+
const served = useAreaListSource("guard", "/accounts/page", { sortFields: { lastSignIn: "lastLoginAt" } });
|
|
1543
|
+
const list = useListState(source ?? served, { initial: { sort: { columnId: "username", direction: "asc" } } });
|
|
1544
|
+
const [creating, setCreating] = useState3(false);
|
|
1545
|
+
const columns = [
|
|
1546
|
+
{ id: "username", header: tc("username"), sortValue: (a) => a.username, cell: (a) => /* @__PURE__ */ jsx8(RecordKey3, { value: a.username, href: routes.account(a.id) }), skeleton: "key" },
|
|
1547
|
+
{ id: "displayName", header: tc("displayName"), sortValue: (a) => a.displayName, cell: (a) => a.displayName || EMPTY_VALUE3, skeleton: "person" },
|
|
1548
|
+
{
|
|
1549
|
+
id: "email",
|
|
1550
|
+
header: tc("email"),
|
|
1551
|
+
sortValue: (a) => a.email,
|
|
1552
|
+
cell: (a) => a.email ? /* @__PURE__ */ jsx8(Text8, { as: "span", color: "fg.muted", dir: "ltr", wordBreak: "break-all", children: a.email }) : EMPTY_VALUE3
|
|
1553
|
+
},
|
|
1554
|
+
{ id: "directory", header: tc("directory"), cell: (a) => a.directoryName },
|
|
1555
|
+
{ id: "status", header: tc("status"), sortValue: (a) => a.status, cell: (a) => /* @__PURE__ */ jsx8(AccountStatusPill, { status: a.status }), skeleton: "pill" },
|
|
1556
|
+
{
|
|
1557
|
+
id: "lastSignIn",
|
|
1558
|
+
header: tc("lastSignIn"),
|
|
1559
|
+
nowrap: true,
|
|
1560
|
+
sortValue: (a) => a.lastLoginAt ? new Date(a.lastLoginAt) : null,
|
|
1561
|
+
cell: (a) => /* @__PURE__ */ jsx8(Text8, { as: "span", color: "fg.muted", children: fmt.dateTime(a.lastLoginAt) }),
|
|
1562
|
+
skeleton: "date"
|
|
1563
|
+
}
|
|
1564
|
+
];
|
|
1565
|
+
return /* @__PURE__ */ jsxs8(Fragment3, { children: [
|
|
1566
|
+
/* @__PURE__ */ jsx8(
|
|
1567
|
+
PageHeader2,
|
|
1568
|
+
{
|
|
1569
|
+
title: t("title"),
|
|
1570
|
+
description: t("subtitle"),
|
|
1571
|
+
actions: !creating && admin && /* @__PURE__ */ jsx8(Button6, { variant: "primary", onClick: () => setCreating(true), children: t("create") })
|
|
1572
|
+
}
|
|
1573
|
+
),
|
|
1574
|
+
/* @__PURE__ */ jsxs8(Stack6, { gap: "section", children: [
|
|
1575
|
+
creating && /* @__PURE__ */ jsx8(
|
|
1576
|
+
CreateAccount,
|
|
1577
|
+
{
|
|
1578
|
+
onDone: (created) => {
|
|
1579
|
+
setCreating(false);
|
|
1580
|
+
notify4.success(t("created", { username: created.username }));
|
|
1581
|
+
list.reload();
|
|
1582
|
+
},
|
|
1583
|
+
onCancel: () => setCreating(false)
|
|
1584
|
+
}
|
|
1585
|
+
),
|
|
1586
|
+
/* @__PURE__ */ jsxs8(Stack6, { gap: "field", children: [
|
|
1587
|
+
/* @__PURE__ */ jsxs8(HStack7, { gap: "2", wrap: "wrap", children: [
|
|
1588
|
+
/* @__PURE__ */ jsx8(
|
|
1589
|
+
SearchInput,
|
|
1590
|
+
{
|
|
1591
|
+
size: "sm",
|
|
1592
|
+
maxW: "sm",
|
|
1593
|
+
value: list.query.search,
|
|
1594
|
+
onChange: (e) => list.setSearch(e.target.value),
|
|
1595
|
+
placeholder: t("searchPlaceholder"),
|
|
1596
|
+
"aria-label": t("search")
|
|
1597
|
+
}
|
|
1598
|
+
),
|
|
1599
|
+
/* @__PURE__ */ jsx8(
|
|
1600
|
+
SelectField,
|
|
1601
|
+
{
|
|
1602
|
+
size: "sm",
|
|
1603
|
+
maxW: "12rem",
|
|
1604
|
+
"aria-label": tc("status"),
|
|
1605
|
+
value: list.query.filters.status ?? "",
|
|
1606
|
+
onChange: (e) => list.setFilter("status", e.target.value || null),
|
|
1607
|
+
options: [{ value: "", label: t("allStatuses") }, ...STATUSES.map((s) => ({ value: s, label: ts(s) }))]
|
|
1608
|
+
}
|
|
1609
|
+
)
|
|
1610
|
+
] }),
|
|
1611
|
+
/* @__PURE__ */ jsx8(DataTable5, { "aria-label": t("title"), columns, getRowId: (a) => a.id, empty: t("empty"), ...list.table }),
|
|
1612
|
+
/* @__PURE__ */ jsx8(ListFooter, { list })
|
|
1613
|
+
] }),
|
|
1614
|
+
admin && /* @__PURE__ */ jsx8(DuplicatesPanel, { routes })
|
|
1615
|
+
] })
|
|
1616
|
+
] });
|
|
1617
|
+
}
|
|
1618
|
+
function CreateAccount({ onDone, onCancel }) {
|
|
1619
|
+
const t = useGuardNs("accounts");
|
|
1620
|
+
const tc = useGuardNs("common");
|
|
1621
|
+
const request = useAreaRequest6("guard");
|
|
1622
|
+
const [form, setForm] = useState3({ username: "", displayName: "", email: "", password: "" });
|
|
1623
|
+
const [directoryId, setDirectoryId] = useState3("");
|
|
1624
|
+
const [error, setError] = useState3(null);
|
|
1625
|
+
const [busy, setBusy] = useState3(false);
|
|
1626
|
+
const internal = (useApiQuery4("guard", "/directories").data ?? []).filter((d) => d.type === "internal");
|
|
1627
|
+
async function submit(e) {
|
|
1628
|
+
e.preventDefault();
|
|
1629
|
+
setBusy(true);
|
|
1630
|
+
setError(null);
|
|
1631
|
+
try {
|
|
1632
|
+
const created = await request("/accounts", { method: "POST", body: { ...form, ...directoryId ? { directoryId } : {} } });
|
|
1633
|
+
onDone(created);
|
|
1634
|
+
} catch (err) {
|
|
1635
|
+
setError(errorText(err));
|
|
1636
|
+
} finally {
|
|
1637
|
+
setBusy(false);
|
|
1638
|
+
}
|
|
1639
|
+
}
|
|
1640
|
+
const set = (k) => (e) => setForm((f) => ({ ...f, [k]: e.target.value }));
|
|
1641
|
+
return /* @__PURE__ */ jsx8(Panel6, { title: t("createTitle"), description: t("createHint"), children: /* @__PURE__ */ jsx8("form", { onSubmit: submit, children: /* @__PURE__ */ jsxs8(Stack6, { gap: "field", children: [
|
|
1642
|
+
/* @__PURE__ */ jsxs8(SimpleGrid, { columns: { base: 1, md: 2 }, gap: "field", children: [
|
|
1643
|
+
/* @__PURE__ */ jsx8(Field, { label: tc("username"), required: true, children: /* @__PURE__ */ jsx8(Input2, { value: form.username, onChange: set("username"), autoComplete: "off" }) }),
|
|
1644
|
+
/* @__PURE__ */ jsx8(Field, { label: tc("displayName"), required: true, children: /* @__PURE__ */ jsx8(Input2, { value: form.displayName, onChange: set("displayName") }) }),
|
|
1645
|
+
/* @__PURE__ */ jsx8(
|
|
1646
|
+
Field,
|
|
1647
|
+
{
|
|
1648
|
+
label: tc("email"),
|
|
1649
|
+
optionalText: /* @__PURE__ */ jsx8(Text8, { as: "span", color: "fg.subtle", children: tc("optional") }),
|
|
1650
|
+
children: /* @__PURE__ */ jsx8(Input2, { type: "email", value: form.email, onChange: set("email"), dir: "ltr" })
|
|
1651
|
+
}
|
|
1652
|
+
),
|
|
1653
|
+
/* @__PURE__ */ jsx8(Field, { label: tc("password"), required: true, children: /* @__PURE__ */ jsx8(Input2, { type: "password", value: form.password, onChange: set("password"), autoComplete: "new-password" }) }),
|
|
1654
|
+
internal.length > 1 && /* @__PURE__ */ jsx8(Field, { label: tc("directory"), children: /* @__PURE__ */ jsx8(
|
|
1655
|
+
SelectField,
|
|
1656
|
+
{
|
|
1657
|
+
value: directoryId,
|
|
1658
|
+
onChange: (e) => setDirectoryId(e.target.value),
|
|
1659
|
+
options: internal.map((d) => ({ value: d.id === INTERNAL_DIRECTORY ? "" : d.id, label: d.name }))
|
|
1660
|
+
}
|
|
1661
|
+
) })
|
|
1662
|
+
] }),
|
|
1663
|
+
/* @__PURE__ */ jsx8(InlineAlert5, { tone: "danger", children: error }),
|
|
1664
|
+
/* @__PURE__ */ jsxs8(HStack7, { gap: "2", children: [
|
|
1665
|
+
/* @__PURE__ */ jsx8(Button6, { type: "submit", variant: "primary", loading: busy, children: t("createSubmit") }),
|
|
1666
|
+
/* @__PURE__ */ jsx8(Button6, { onClick: onCancel, children: tc("cancel") })
|
|
1667
|
+
] })
|
|
1668
|
+
] }) }) });
|
|
1669
|
+
}
|
|
1670
|
+
|
|
1671
|
+
// src/areas/guard/AnonymousScreen.tsx
|
|
1672
|
+
import { Text as Text9 } from "@chakra-ui/react";
|
|
1673
|
+
import { Trash2 } from "lucide-react";
|
|
1674
|
+
import { AppLink as AppLink4, DataTable as DataTable6, IconButton, InlineAlert as InlineAlert6, notify as notify5, PageHeader as PageHeader3, Panel as Panel7, errorText as errorText2, useApiQuery as useApiQuery5, useAreaRequest as useAreaRequest7, useConfirm as useConfirm2, useFormatters as useFormatters6 } from "@abpjs/ui";
|
|
1675
|
+
import { Fragment as Fragment4, jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1676
|
+
function AnonymousScreen({ roleName }) {
|
|
1677
|
+
const t = useGuardNs("anonymousAccess");
|
|
1678
|
+
const fmt = useFormatters6();
|
|
1679
|
+
const confirm = useConfirm2();
|
|
1680
|
+
const request = useAreaRequest7("guard");
|
|
1681
|
+
const grants = useApiQuery5("guard", "/anonymous");
|
|
1682
|
+
const role = (g) => roleName?.(g.roleKey, g.roleName) ?? g.roleName;
|
|
1683
|
+
async function revoke(g) {
|
|
1684
|
+
if (!await confirm({ title: t("revokeTitle", { role: role(g), scope: g.scope ?? "" }), confirmLabel: t("revoke"), danger: true })) return;
|
|
1685
|
+
try {
|
|
1686
|
+
await request(`/anonymous/${g.id}`, { method: "DELETE" });
|
|
1687
|
+
notify5.success(t("revoked"));
|
|
1688
|
+
await grants.reload();
|
|
1689
|
+
} catch (e) {
|
|
1690
|
+
notify5.error(errorText2(e));
|
|
1691
|
+
}
|
|
1692
|
+
}
|
|
1693
|
+
return /* @__PURE__ */ jsxs9(Fragment4, { children: [
|
|
1694
|
+
/* @__PURE__ */ jsx9(PageHeader3, { title: t("title"), description: t("subtitle") }),
|
|
1695
|
+
/* @__PURE__ */ jsx9(InlineAlert6, { tone: "danger", children: grants.error }),
|
|
1696
|
+
/* @__PURE__ */ jsx9(Panel7, { flush: true, children: /* @__PURE__ */ jsx9(
|
|
1697
|
+
DataTable6,
|
|
1698
|
+
{
|
|
1699
|
+
"aria-label": t("title"),
|
|
1700
|
+
rows: grants.data,
|
|
1701
|
+
loading: grants.loading,
|
|
1702
|
+
getRowId: (g) => g.id,
|
|
1703
|
+
empty: /* @__PURE__ */ jsx9(Text9, { color: "fg.muted", children: t("empty") }),
|
|
1704
|
+
columns: [
|
|
1705
|
+
{ id: "role", header: t("role"), cell: (g) => role(g) },
|
|
1706
|
+
{ id: "scope", header: t("scope"), cell: (g) => g.href ? /* @__PURE__ */ jsx9(AppLink4, { href: g.href, children: g.scope }) : g.scope },
|
|
1707
|
+
{ id: "since", header: t("since"), nowrap: true, cell: (g) => fmt.dateTime(g.createdAt) },
|
|
1708
|
+
{
|
|
1709
|
+
id: "actions",
|
|
1710
|
+
header: /* @__PURE__ */ jsx9(Text9, { as: "span", srOnly: true, children: t("revoke") }),
|
|
1711
|
+
align: "end",
|
|
1712
|
+
cell: (g) => /* @__PURE__ */ jsx9(IconButton, { size: "sm", variant: "ghost", "aria-label": t("revoke"), onClick: () => void revoke(g), children: /* @__PURE__ */ jsx9(Trash2, {}) })
|
|
1713
|
+
}
|
|
1714
|
+
]
|
|
1715
|
+
}
|
|
1716
|
+
) })
|
|
1717
|
+
] });
|
|
1718
|
+
}
|
|
1719
|
+
|
|
1720
|
+
// src/areas/guard/DirectoriesScreen.tsx
|
|
1721
|
+
import { useState as useState5 } from "react";
|
|
1722
|
+
import { HStack as HStack9, Stack as Stack8 } from "@chakra-ui/react";
|
|
1723
|
+
import { ArrowDown, ArrowUp, RefreshCw } from "lucide-react";
|
|
1724
|
+
import {
|
|
1725
|
+
AppLink as AppLink5,
|
|
1726
|
+
Button as Button8,
|
|
1727
|
+
DataTable as DataTable7,
|
|
1728
|
+
IconButton as IconButton2,
|
|
1729
|
+
InlineAlert as InlineAlert8,
|
|
1730
|
+
Loading as Loading2,
|
|
1731
|
+
PageHeader as PageHeader4,
|
|
1732
|
+
Panel as Panel8,
|
|
1733
|
+
StatusPill as StatusPill6,
|
|
1734
|
+
Tooltip,
|
|
1735
|
+
useApiAction as useApiAction6,
|
|
1736
|
+
useApiQuery as useApiQuery6,
|
|
1737
|
+
useAreaRequest as useAreaRequest8
|
|
1738
|
+
} from "@abpjs/ui";
|
|
1739
|
+
|
|
1740
|
+
// src/areas/guard/DirectoryForm.tsx
|
|
1741
|
+
import { useState as useState4 } from "react";
|
|
1742
|
+
import { Fieldset, HStack as HStack8, Input as Input3, SimpleGrid as SimpleGrid2, Stack as Stack7, Text as Text10 } from "@chakra-ui/react";
|
|
1743
|
+
import { Button as Button7, CheckboxField, errorText as errorText3, Field as Field2, HostSlot as HostSlot2, InlineAlert as InlineAlert7, SelectField as SelectField2, TranslatedInput as TranslatedInput2 } from "@abpjs/ui";
|
|
1744
|
+
import { fromNamesValue, toNamesValue } from "@abpjs/ui/rules";
|
|
1745
|
+
import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
1746
|
+
function defaultsFor(type) {
|
|
1747
|
+
const out = {};
|
|
1748
|
+
for (const s of type?.settings ?? []) out[s.name] = s.defaultValue ?? "";
|
|
1749
|
+
return out;
|
|
1750
|
+
}
|
|
1751
|
+
function DirectoryForm({ mode, types, initial, onSubmit, onCancel, fallbackSettings }) {
|
|
1752
|
+
const t = useGuardNs("directoryForm");
|
|
1753
|
+
const tc = useGuardNs("common");
|
|
1754
|
+
const [input, setInput] = useState4(initial);
|
|
1755
|
+
const [error, setError] = useState4(null);
|
|
1756
|
+
const [busy, setBusy] = useState4(false);
|
|
1757
|
+
const type = types.find((x) => x.type === input.type);
|
|
1758
|
+
const definitions = type?.settings ?? fallbackSettings ?? [];
|
|
1759
|
+
function set(key, value) {
|
|
1760
|
+
setInput((prev) => ({ ...prev, [key]: value }));
|
|
1761
|
+
}
|
|
1762
|
+
function setSetting(name, value) {
|
|
1763
|
+
setInput((prev) => ({ ...prev, settings: { ...prev.settings, [name]: value } }));
|
|
1764
|
+
}
|
|
1765
|
+
function changeType(next) {
|
|
1766
|
+
const nextType = types.find((x) => x.type === next);
|
|
1767
|
+
setInput((prev) => ({ ...prev, type: next, settings: defaultsFor(nextType) }));
|
|
1768
|
+
}
|
|
1769
|
+
function applyPreset(settings) {
|
|
1770
|
+
setInput((prev) => ({ ...prev, settings: { ...prev.settings, ...settings } }));
|
|
1771
|
+
}
|
|
1772
|
+
async function submit(e) {
|
|
1773
|
+
e.preventDefault();
|
|
1774
|
+
setBusy(true);
|
|
1775
|
+
setError(null);
|
|
1776
|
+
try {
|
|
1777
|
+
await onSubmit(input);
|
|
1778
|
+
} catch (err) {
|
|
1779
|
+
setError(errorText3(err));
|
|
1780
|
+
} finally {
|
|
1781
|
+
setBusy(false);
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
return /* @__PURE__ */ jsx10("form", { onSubmit: submit, children: /* @__PURE__ */ jsxs10(Stack7, { gap: "field", children: [
|
|
1785
|
+
/* @__PURE__ */ jsxs10(SimpleGrid2, { columns: { base: 1, md: 2 }, gap: "field", children: [
|
|
1786
|
+
/* @__PURE__ */ jsx10(Field2, { label: t("name"), required: true, children: /* @__PURE__ */ jsx10(
|
|
1787
|
+
TranslatedInput2,
|
|
1788
|
+
{
|
|
1789
|
+
value: toNamesValue(input.name, input.names),
|
|
1790
|
+
"aria-label": t("name"),
|
|
1791
|
+
onChange: (v) => {
|
|
1792
|
+
const { name, names } = fromNamesValue(v);
|
|
1793
|
+
setInput({ ...input, name, names });
|
|
1794
|
+
}
|
|
1795
|
+
}
|
|
1796
|
+
) }),
|
|
1797
|
+
/* @__PURE__ */ jsx10(Field2, { label: t("type"), required: true, children: mode === "create" ? /* @__PURE__ */ jsx10(
|
|
1798
|
+
SelectField2,
|
|
1799
|
+
{
|
|
1800
|
+
value: input.type,
|
|
1801
|
+
onChange: (e) => changeType(e.target.value),
|
|
1802
|
+
options: [
|
|
1803
|
+
{ value: "", label: t("selectType"), disabled: true },
|
|
1804
|
+
...types.map((x) => ({
|
|
1805
|
+
value: x.type,
|
|
1806
|
+
label: x.pluginKey ? t("typeFromPlugin", { name: x.displayName, plugin: x.pluginKey }) : x.displayName
|
|
1807
|
+
}))
|
|
1808
|
+
]
|
|
1809
|
+
}
|
|
1810
|
+
) : /* @__PURE__ */ jsx10(Input3, { value: type?.displayName ?? input.type, readOnly: true }) }),
|
|
1811
|
+
/* @__PURE__ */ jsx10(Field2, { label: t("syncInterval"), helperText: t("syncIntervalHint"), children: /* @__PURE__ */ jsx10(
|
|
1812
|
+
Input3,
|
|
1813
|
+
{
|
|
1814
|
+
type: "number",
|
|
1815
|
+
min: 1,
|
|
1816
|
+
value: input.syncIntervalMinutes ?? "",
|
|
1817
|
+
onChange: (e) => set("syncIntervalMinutes", e.target.value === "" ? null : Number(e.target.value))
|
|
1818
|
+
}
|
|
1819
|
+
) }),
|
|
1820
|
+
/* @__PURE__ */ jsxs10(Stack7, { gap: "2", justify: "flex-end", pb: "1", children: [
|
|
1821
|
+
/* @__PURE__ */ jsx10(CheckboxField, { label: t("active"), checked: input.isActive, onCheckedChange: (v) => set("isActive", v) }),
|
|
1822
|
+
/* @__PURE__ */ jsx10(CheckboxField, { label: t("signInEnabled"), checked: input.authenticationEnabled, onCheckedChange: (v) => set("authenticationEnabled", v) })
|
|
1823
|
+
] })
|
|
1824
|
+
] }),
|
|
1825
|
+
type && type.capabilities.length > 0 && /* @__PURE__ */ jsx10(Text10, { textStyle: "caption", color: "fg.muted", children: t("capabilities", { list: type.capabilities.join(", ") }) }),
|
|
1826
|
+
definitions.length > 0 && /* @__PURE__ */ jsxs10(Fieldset.Root, { layerStyle: "sunken", p: "panel", children: [
|
|
1827
|
+
/* @__PURE__ */ jsx10(Fieldset.Legend, { textStyle: "label", px: "1", children: t("connectionSettings") }),
|
|
1828
|
+
/* @__PURE__ */ jsxs10(Fieldset.Content, { gap: "field", children: [
|
|
1829
|
+
input.type && /* @__PURE__ */ jsx10(HostSlot2, { name: "guard.directory.presets", context: { type: input.type, apply: applyPreset } }),
|
|
1830
|
+
/* @__PURE__ */ jsx10(SimpleGrid2, { columns: { base: 1, md: 2 }, gap: "field", children: definitions.map((d) => /* @__PURE__ */ jsx10(Field2, { label: d.label || d.name, helperText: d.help ?? void 0, required: d.required && !(d.secret && mode === "edit"), children: /* @__PURE__ */ jsx10(
|
|
1831
|
+
Input3,
|
|
1832
|
+
{
|
|
1833
|
+
type: d.secret ? "password" : "text",
|
|
1834
|
+
autoComplete: d.secret ? "new-password" : "off",
|
|
1835
|
+
value: input.settings?.[d.name] ?? "",
|
|
1836
|
+
placeholder: d.secret && mode === "edit" ? t("keepSecret") : d.defaultValue ?? "",
|
|
1837
|
+
dir: "auto",
|
|
1838
|
+
onChange: (e) => setSetting(d.name, e.target.value)
|
|
1839
|
+
}
|
|
1840
|
+
) }, d.name)) })
|
|
1841
|
+
] })
|
|
1842
|
+
] }),
|
|
1843
|
+
/* @__PURE__ */ jsx10(InlineAlert7, { tone: "danger", children: error }),
|
|
1844
|
+
/* @__PURE__ */ jsxs10(HStack8, { gap: "2", children: [
|
|
1845
|
+
/* @__PURE__ */ jsx10(Button7, { type: "submit", variant: "primary", loading: busy, disabled: !input.type, children: mode === "create" ? t("create") : t("save") }),
|
|
1846
|
+
onCancel && /* @__PURE__ */ jsx10(Button7, { onClick: onCancel, children: tc("cancel") })
|
|
1847
|
+
] })
|
|
1848
|
+
] }) });
|
|
1849
|
+
}
|
|
1850
|
+
function DirectoryWarnings({ title, warnings }) {
|
|
1851
|
+
if (!warnings || warnings.length === 0) return null;
|
|
1852
|
+
return /* @__PURE__ */ jsx10(InlineAlert7, { tone: "warning", title, "data-testid": "directory-warnings", children: /* @__PURE__ */ jsx10(Stack7, { gap: "0.5", as: "ul", listStyle: "none", children: warnings.map((w) => /* @__PURE__ */ jsx10("li", { children: /* @__PURE__ */ jsx10(Text10, { dir: "auto", children: w }) }, w)) }) });
|
|
1853
|
+
}
|
|
1854
|
+
|
|
1855
|
+
// src/areas/guard/DirectoriesScreen.tsx
|
|
1856
|
+
import { Fragment as Fragment5, jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
1857
|
+
var EMPTY_INPUT = {
|
|
1858
|
+
name: "",
|
|
1859
|
+
type: "",
|
|
1860
|
+
isActive: true,
|
|
1861
|
+
authenticationEnabled: true,
|
|
1862
|
+
syncIntervalMinutes: 60,
|
|
1863
|
+
settings: {}
|
|
1864
|
+
};
|
|
1865
|
+
function DirectoriesScreen({ routes = guardRoutes() }) {
|
|
1866
|
+
const t = useGuardNs("directories");
|
|
1867
|
+
const tc = useGuardNs("common");
|
|
1868
|
+
const request = useAreaRequest8("guard");
|
|
1869
|
+
const dirs = useApiQuery6("guard", "/directories");
|
|
1870
|
+
const types = useApiQuery6("guard", "/directory-types");
|
|
1871
|
+
const action = useApiAction6();
|
|
1872
|
+
const [adding, setAdding] = useState5(false);
|
|
1873
|
+
const [notice, setNotice] = useState5(null);
|
|
1874
|
+
const [syncing, setSyncing] = useState5(null);
|
|
1875
|
+
const [added, setAdded] = useState5(null);
|
|
1876
|
+
const list = dirs.data ?? [];
|
|
1877
|
+
async function move(index, delta) {
|
|
1878
|
+
const target = index + delta;
|
|
1879
|
+
if (target < 0 || target >= list.length) return;
|
|
1880
|
+
const ids = list.map((d) => d.id);
|
|
1881
|
+
[ids[index], ids[target]] = [ids[target], ids[index]];
|
|
1882
|
+
const result = await action.run(() => request("/directories/reorder", { method: "POST", body: { directoryIds: ids } }));
|
|
1883
|
+
if (result) dirs.setData(result);
|
|
1884
|
+
}
|
|
1885
|
+
async function sync(d) {
|
|
1886
|
+
setSyncing(d.id);
|
|
1887
|
+
setNotice(null);
|
|
1888
|
+
const run = await action.run(() => request(`/directories/${d.id}/sync`, { method: "POST" }));
|
|
1889
|
+
setSyncing(null);
|
|
1890
|
+
if (run) {
|
|
1891
|
+
setNotice(
|
|
1892
|
+
run.succeeded === false ? { ok: false, text: t("syncFailed", { name: d.name, error: run.error ?? tc("unknownError") }) } : {
|
|
1893
|
+
ok: true,
|
|
1894
|
+
text: t("synced", {
|
|
1895
|
+
name: d.name,
|
|
1896
|
+
added: run.usersAdded,
|
|
1897
|
+
updated: run.usersUpdated,
|
|
1898
|
+
deactivated: run.usersDeactivated,
|
|
1899
|
+
groups: run.groupsSynced,
|
|
1900
|
+
memberships: run.membershipsSynced
|
|
1901
|
+
})
|
|
1902
|
+
}
|
|
1903
|
+
);
|
|
1904
|
+
}
|
|
1905
|
+
await dirs.reload();
|
|
1906
|
+
}
|
|
1907
|
+
async function create(input) {
|
|
1908
|
+
const made = await request("/directories", { method: "POST", body: input });
|
|
1909
|
+
setAdded((made.warnings ?? []).length > 0 ? made : null);
|
|
1910
|
+
setAdding(false);
|
|
1911
|
+
await dirs.reload();
|
|
1912
|
+
}
|
|
1913
|
+
const columns = [
|
|
1914
|
+
{ id: "order", header: tc("order"), numeric: true, width: "16", cell: (d) => d.order },
|
|
1915
|
+
{
|
|
1916
|
+
id: "name",
|
|
1917
|
+
header: tc("name"),
|
|
1918
|
+
cell: (d) => /* @__PURE__ */ jsxs11(Stack8, { gap: "1", align: "flex-start", children: [
|
|
1919
|
+
/* @__PURE__ */ jsx11(AppLink5, { href: routes.directory(d.id), fontWeight: "medium", children: d.name }),
|
|
1920
|
+
!d.connectorAvailable && /* @__PURE__ */ jsx11(StatusPill6, { tone: "warning", title: d.pluginKey ? t("pluginDisabledHint", { plugin: d.pluginKey }) : void 0, children: t("connectorDisabled") }),
|
|
1921
|
+
d.warnings && d.warnings.length > 0 && /* @__PURE__ */ jsx11(StatusPill6, { tone: "warning", title: d.warnings.join("\n"), children: t("warnings", { count: d.warnings.length }) })
|
|
1922
|
+
] })
|
|
1923
|
+
},
|
|
1924
|
+
{ id: "type", header: tc("type"), cell: (d) => d.typeDisplayName || d.type },
|
|
1925
|
+
{ id: "active", header: tc("active"), cell: (d) => /* @__PURE__ */ jsx11(FlagPill, { value: d.isActive, yes: tc("active"), no: tc("inactive") }), skeleton: "pill" },
|
|
1926
|
+
{ id: "signIn", header: t("signIn"), cell: (d) => /* @__PURE__ */ jsx11(FlagPill, { value: d.authenticationEnabled, yes: tc("enabled"), no: tc("disabled") }), skeleton: "pill" },
|
|
1927
|
+
{ id: "users", header: tc("users"), numeric: true, cell: (d) => d.userCount },
|
|
1928
|
+
{ id: "groups", header: tc("groups"), numeric: true, cell: (d) => d.groupCount },
|
|
1929
|
+
{ id: "lastSync", header: t("lastSync"), cell: (d) => /* @__PURE__ */ jsx11(SyncStatus, { d }), skeleton: "pill" },
|
|
1930
|
+
{
|
|
1931
|
+
id: "actions",
|
|
1932
|
+
header: tc("actions"),
|
|
1933
|
+
align: "end",
|
|
1934
|
+
nowrap: true,
|
|
1935
|
+
// Its buttons as their ghosts while the list loads, so a placeholder row is as tall as a real one.
|
|
1936
|
+
skeleton: () => /* @__PURE__ */ jsx11(Loading2, { when: true, children: /* @__PURE__ */ jsxs11(HStack9, { gap: "1", justify: "flex-end", children: [
|
|
1937
|
+
/* @__PURE__ */ jsx11(IconButton2, { size: "sm", "aria-label": t("moveUp", { name: "" }), children: /* @__PURE__ */ jsx11(ArrowUp, {}) }),
|
|
1938
|
+
/* @__PURE__ */ jsx11(IconButton2, { size: "sm", "aria-label": t("moveDown", { name: "" }), children: /* @__PURE__ */ jsx11(ArrowDown, {}) }),
|
|
1939
|
+
/* @__PURE__ */ jsxs11(Button8, { size: "sm", children: [
|
|
1940
|
+
/* @__PURE__ */ jsx11(RefreshCw, {}),
|
|
1941
|
+
t("syncNow")
|
|
1942
|
+
] })
|
|
1943
|
+
] }) }),
|
|
1944
|
+
cell: (d) => {
|
|
1945
|
+
const i = list.indexOf(d);
|
|
1946
|
+
return /* @__PURE__ */ jsxs11(HStack9, { gap: "1", justify: "flex-end", children: [
|
|
1947
|
+
/* @__PURE__ */ jsx11(IconButton2, { size: "sm", "aria-label": t("moveUp", { name: d.name }), disabled: i === 0 || action.busy, onClick: () => move(i, -1), children: /* @__PURE__ */ jsx11(ArrowUp, {}) }),
|
|
1948
|
+
/* @__PURE__ */ jsx11(IconButton2, { size: "sm", "aria-label": t("moveDown", { name: d.name }), disabled: i === list.length - 1 || action.busy, onClick: () => move(i, 1), children: /* @__PURE__ */ jsx11(ArrowDown, {}) }),
|
|
1949
|
+
/* @__PURE__ */ jsx11(Tooltip, { content: t("connectorDisabled"), disabled: d.connectorAvailable, children: /* @__PURE__ */ jsxs11(Button8, { size: "sm", disabled: syncing != null || !d.connectorAvailable, loading: syncing === d.id, onClick: () => sync(d), children: [
|
|
1950
|
+
/* @__PURE__ */ jsx11(RefreshCw, {}),
|
|
1951
|
+
t("syncNow")
|
|
1952
|
+
] }) })
|
|
1953
|
+
] });
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
];
|
|
1957
|
+
return /* @__PURE__ */ jsxs11(Fragment5, { children: [
|
|
1958
|
+
/* @__PURE__ */ jsx11(
|
|
1959
|
+
PageHeader4,
|
|
1960
|
+
{
|
|
1961
|
+
title: t("title"),
|
|
1962
|
+
description: t("subtitle"),
|
|
1963
|
+
actions: !adding && /* @__PURE__ */ jsx11(Button8, { variant: "primary", onClick: () => {
|
|
1964
|
+
setAdded(null);
|
|
1965
|
+
setAdding(true);
|
|
1966
|
+
}, children: t("add") })
|
|
1967
|
+
}
|
|
1968
|
+
),
|
|
1969
|
+
/* @__PURE__ */ jsxs11(Stack8, { gap: "section", children: [
|
|
1970
|
+
adding && /* @__PURE__ */ jsx11(Panel8, { title: t("add"), children: types.error ? /* @__PURE__ */ jsx11(InlineAlert8, { tone: "danger", children: types.error }) : (
|
|
1971
|
+
// The form is there while the types load, its fields as their ghosts.
|
|
1972
|
+
/* @__PURE__ */ jsx11(Loading2, { when: !types.data, children: /* @__PURE__ */ jsx11(
|
|
1973
|
+
DirectoryForm,
|
|
1974
|
+
{
|
|
1975
|
+
mode: "create",
|
|
1976
|
+
types: [
|
|
1977
|
+
// An internal directory, kept by the site itself: the accounts people make by signing up.
|
|
1978
|
+
{ type: "internal", displayName: t("internalType"), capabilities: ["Authenticate"], settings: [], pluginKey: null },
|
|
1979
|
+
...types.data ?? []
|
|
1980
|
+
],
|
|
1981
|
+
initial: EMPTY_INPUT,
|
|
1982
|
+
onSubmit: create,
|
|
1983
|
+
onCancel: () => setAdding(false)
|
|
1984
|
+
}
|
|
1985
|
+
) })
|
|
1986
|
+
) }),
|
|
1987
|
+
/* @__PURE__ */ jsx11(InlineAlert8, { tone: "danger", children: action.error }),
|
|
1988
|
+
added && /* @__PURE__ */ jsx11(DirectoryWarnings, { title: t("addedWithWarnings", { name: added.name }), warnings: added.warnings }),
|
|
1989
|
+
notice && /* @__PURE__ */ jsx11(InlineAlert8, { tone: notice.ok ? "success" : "warning", children: notice.text }),
|
|
1990
|
+
/* @__PURE__ */ jsx11(Panel8, { flush: true, children: /* @__PURE__ */ jsx11(
|
|
1991
|
+
DataTable7,
|
|
1992
|
+
{
|
|
1993
|
+
"aria-label": t("title"),
|
|
1994
|
+
columns,
|
|
1995
|
+
rows: dirs.data,
|
|
1996
|
+
getRowId: (d) => d.id,
|
|
1997
|
+
loading: dirs.loading,
|
|
1998
|
+
skeletonRows: 2,
|
|
1999
|
+
error: dirs.error,
|
|
2000
|
+
empty: t("empty")
|
|
2001
|
+
}
|
|
2002
|
+
) })
|
|
2003
|
+
] })
|
|
2004
|
+
] });
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
// src/areas/guard/DirectoryScreen.tsx
|
|
2008
|
+
import { useMemo, useState as useState6 } from "react";
|
|
2009
|
+
import { Box, Grid, HStack as HStack10, Input as Input4, List, Stack as Stack9, Text as Text11 } from "@chakra-ui/react";
|
|
2010
|
+
import {
|
|
2011
|
+
AppLink as AppLink6,
|
|
2012
|
+
Button as Button9,
|
|
2013
|
+
DataTable as DataTable8,
|
|
2014
|
+
errorText as errorText4,
|
|
2015
|
+
Field as Field3,
|
|
2016
|
+
HostSlot as HostSlot3,
|
|
2017
|
+
InlineAlert as InlineAlert9,
|
|
2018
|
+
Loading as Loading3,
|
|
2019
|
+
PageHeader as PageHeader5,
|
|
2020
|
+
Panel as Panel9,
|
|
2021
|
+
PropertyList as PropertyList3,
|
|
2022
|
+
StatusPill as StatusPill7,
|
|
2023
|
+
TextSlot as TextSlot2,
|
|
2024
|
+
useApiAction as useApiAction7,
|
|
2025
|
+
useApiQuery as useApiQuery7,
|
|
2026
|
+
useAreaRequest as useAreaRequest9,
|
|
2027
|
+
useConfirm as useConfirm3,
|
|
2028
|
+
useFormatters as useFormatters7,
|
|
2029
|
+
useNavigate as useNavigate2
|
|
2030
|
+
} from "@abpjs/ui";
|
|
2031
|
+
import { Fragment as Fragment6, jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
2032
|
+
var STEPS = ["Connection", "FindUser", "Authenticate", "Precedence"];
|
|
2033
|
+
var PLACEHOLDER = { name: "", type: "", isActive: true, authenticationEnabled: true, syncIntervalMinutes: 60, settings: {} };
|
|
2034
|
+
function DirectoryScreen({ id, routes = guardRoutes() }) {
|
|
2035
|
+
const t = useGuardNs("directoryDetail");
|
|
2036
|
+
const tc = useGuardNs("common");
|
|
2037
|
+
const tn = useGuardNs("nav");
|
|
2038
|
+
const fmt = useFormatters7();
|
|
2039
|
+
const confirm = useConfirm3();
|
|
2040
|
+
const navigate = useNavigate2();
|
|
2041
|
+
const request = useAreaRequest9("guard");
|
|
2042
|
+
const dirs = useApiQuery7("guard", "/directories");
|
|
2043
|
+
const types = useApiQuery7("guard", "/directory-types");
|
|
2044
|
+
const runs = useApiQuery7("guard", `/directories/${id}/sync-runs`);
|
|
2045
|
+
const action = useApiAction7();
|
|
2046
|
+
const [saved, setSaved] = useState6(false);
|
|
2047
|
+
const [formKey, setFormKey] = useState6(0);
|
|
2048
|
+
const [test, setTest] = useState6(null);
|
|
2049
|
+
const [syncMsg, setSyncMsg] = useState6(null);
|
|
2050
|
+
const dir = dirs.data?.find((d) => d.id === id);
|
|
2051
|
+
const type = types.data?.find((x) => x.type === dir?.type);
|
|
2052
|
+
const secretNames = useMemo(() => new Set((type?.settings ?? []).filter((s) => s.secret).map((s) => s.name)), [type]);
|
|
2053
|
+
const initial = useMemo(() => {
|
|
2054
|
+
if (!dir) return null;
|
|
2055
|
+
const settings = {};
|
|
2056
|
+
for (const [k, v] of Object.entries(dir.settings)) settings[k] = secretNames.has(k) || v === "********" ? "" : v;
|
|
2057
|
+
return {
|
|
2058
|
+
name: dir.name,
|
|
2059
|
+
names: dir.names,
|
|
2060
|
+
type: dir.type,
|
|
2061
|
+
isActive: dir.isActive,
|
|
2062
|
+
authenticationEnabled: dir.authenticationEnabled,
|
|
2063
|
+
syncIntervalMinutes: dir.syncIntervalMinutes,
|
|
2064
|
+
settings
|
|
2065
|
+
};
|
|
2066
|
+
}, [dir, secretNames]);
|
|
2067
|
+
const fallbackSettings = useMemo(
|
|
2068
|
+
() => Object.keys(dir?.settings ?? {}).map((name) => ({
|
|
2069
|
+
name,
|
|
2070
|
+
label: name,
|
|
2071
|
+
required: false,
|
|
2072
|
+
secret: dir?.settings[name] === "********",
|
|
2073
|
+
defaultValue: null,
|
|
2074
|
+
help: null
|
|
2075
|
+
})),
|
|
2076
|
+
[dir]
|
|
2077
|
+
);
|
|
2078
|
+
async function save(input) {
|
|
2079
|
+
setSaved(false);
|
|
2080
|
+
const updated = await request(`/directories/${id}`, { method: "PUT", body: input });
|
|
2081
|
+
if (dirs.data) dirs.setData(dirs.data.map((d) => d.id === updated.id ? updated : d));
|
|
2082
|
+
await dirs.reload();
|
|
2083
|
+
setFormKey((k) => k + 1);
|
|
2084
|
+
setSaved(true);
|
|
2085
|
+
}
|
|
2086
|
+
async function testConnection() {
|
|
2087
|
+
setTest(null);
|
|
2088
|
+
const r = await action.run(() => request(`/directories/${id}/test`, { method: "POST" }));
|
|
2089
|
+
if (r) setTest(r);
|
|
2090
|
+
}
|
|
2091
|
+
async function syncNow() {
|
|
2092
|
+
setSyncMsg(null);
|
|
2093
|
+
const run = await action.run(() => request(`/directories/${id}/sync`, { method: "POST" }));
|
|
2094
|
+
if (run)
|
|
2095
|
+
setSyncMsg(
|
|
2096
|
+
run.succeeded === false ? { ok: false, text: t("syncFailed", { error: run.error ?? tc("unknownError") }) } : { ok: true, text: t("syncCompleted") }
|
|
2097
|
+
);
|
|
2098
|
+
await Promise.all([runs.reload(), dirs.reload()]);
|
|
2099
|
+
}
|
|
2100
|
+
async function remove() {
|
|
2101
|
+
if (!dir) return;
|
|
2102
|
+
const ok = await confirm({ title: t("deleteTitle", { name: dir.name }), description: t("deleteDescription"), confirmLabel: tc("delete"), danger: true });
|
|
2103
|
+
if (!ok) return;
|
|
2104
|
+
const done = await action.run(async () => {
|
|
2105
|
+
await request(`/directories/${id}`, { method: "DELETE" });
|
|
2106
|
+
return true;
|
|
2107
|
+
});
|
|
2108
|
+
if (done) navigate(routes.directories);
|
|
2109
|
+
}
|
|
2110
|
+
if (dirs.error) return /* @__PURE__ */ jsx12(InlineAlert9, { tone: "danger", children: dirs.error });
|
|
2111
|
+
const loading = !dirs.data || !types.data;
|
|
2112
|
+
if (!loading && (!dir || !initial))
|
|
2113
|
+
return /* @__PURE__ */ jsxs12(Fragment6, { children: [
|
|
2114
|
+
/* @__PURE__ */ jsx12(PageHeader5, { breadcrumbs: [{ label: tn("directories"), href: routes.directories }], title: t("notFound") }),
|
|
2115
|
+
/* @__PURE__ */ jsx12(AppLink6, { href: routes.directories, children: t("back") })
|
|
2116
|
+
] });
|
|
2117
|
+
const runColumns = [
|
|
2118
|
+
{ id: "started", header: t("started"), nowrap: true, cell: (r) => fmt.dateTime(r.startedAt), skeleton: "date", skeletonWidth: 17 },
|
|
2119
|
+
{ id: "finished", header: t("finished"), nowrap: true, cell: (r) => fmt.dateTime(r.finishedAt), skeleton: "date", skeletonWidth: 17 },
|
|
2120
|
+
{ id: "result", header: t("result"), cell: (r) => /* @__PURE__ */ jsx12(SyncResultPill, { succeeded: r.succeeded ?? null }), skeleton: "pill" },
|
|
2121
|
+
{ id: "added", header: t("added"), numeric: true, cell: (r) => r.usersAdded },
|
|
2122
|
+
{ id: "updated", header: t("updated"), numeric: true, cell: (r) => r.usersUpdated },
|
|
2123
|
+
{ id: "deactivated", header: t("deactivated"), numeric: true, cell: (r) => r.usersDeactivated },
|
|
2124
|
+
{ id: "groups", header: tc("groups"), numeric: true, cell: (r) => r.groupsSynced },
|
|
2125
|
+
{ id: "memberships", header: t("memberships"), numeric: true, cell: (r) => r.membershipsSynced },
|
|
2126
|
+
{
|
|
2127
|
+
id: "error",
|
|
2128
|
+
header: t("error"),
|
|
2129
|
+
cell: (r) => r.error && /* @__PURE__ */ jsx12(Text11, { as: "span", textStyle: "caption", color: "fg.danger", wordBreak: "break-word", maxW: "xs", display: "block", children: r.error })
|
|
2130
|
+
}
|
|
2131
|
+
];
|
|
2132
|
+
return /* @__PURE__ */ jsxs12(Loading3, { when: loading, children: [
|
|
2133
|
+
/* @__PURE__ */ jsx12(
|
|
2134
|
+
PageHeader5,
|
|
2135
|
+
{
|
|
2136
|
+
breadcrumbs: [{ label: tn("directories"), href: routes.directories }, { label: dir?.name }],
|
|
2137
|
+
title: dir?.name,
|
|
2138
|
+
meta: /* @__PURE__ */ jsxs12(Fragment6, { children: [
|
|
2139
|
+
/* @__PURE__ */ jsx12(Text11, { as: "span", children: /* @__PURE__ */ jsx12(TextSlot2, { width: 8, children: dir && (dir.typeDisplayName || dir.type) }) }),
|
|
2140
|
+
/* @__PURE__ */ jsx12(Text11, { as: "span", children: /* @__PURE__ */ jsx12(TextSlot2, { width: 8, children: dir && t("order", { order: dir.order }) }) }),
|
|
2141
|
+
dir ? /* @__PURE__ */ jsx12(FlagPill, { value: dir.isActive, yes: tc("active"), no: tc("inactive") }) : /* @__PURE__ */ jsx12(StatusPill7, {}),
|
|
2142
|
+
dir ? /* @__PURE__ */ jsx12(FlagPill, { value: dir.authenticationEnabled, yes: t("signInEnabled"), no: t("signInDisabled") }) : /* @__PURE__ */ jsx12(StatusPill7, {}),
|
|
2143
|
+
dir && !dir.connectorAvailable && /* @__PURE__ */ jsx12(StatusPill7, { tone: "warning", children: t("connectorDisabled") })
|
|
2144
|
+
] }),
|
|
2145
|
+
actions: /* @__PURE__ */ jsxs12(Fragment6, { children: [
|
|
2146
|
+
/* @__PURE__ */ jsx12(Button9, { onClick: testConnection, disabled: action.busy || dir?.connectorAvailable === false, children: t("testConnection") }),
|
|
2147
|
+
/* @__PURE__ */ jsx12(Button9, { onClick: syncNow, disabled: action.busy || dir?.connectorAvailable === false, children: t("syncNow") }),
|
|
2148
|
+
dir?.type !== "internal" && /* @__PURE__ */ jsx12(Button9, { danger: true, onClick: remove, disabled: action.busy, children: tc("delete") })
|
|
2149
|
+
] })
|
|
2150
|
+
}
|
|
2151
|
+
),
|
|
2152
|
+
/* @__PURE__ */ jsxs12(Stack9, { gap: "section", children: [
|
|
2153
|
+
/* @__PURE__ */ jsx12(InlineAlert9, { tone: "danger", children: action.error }),
|
|
2154
|
+
dir && /* @__PURE__ */ jsx12(DirectoryWarnings, { title: t("warningsTitle"), warnings: dir.warnings }),
|
|
2155
|
+
test && /* @__PURE__ */ jsxs12(InlineAlert9, { tone: test.succeeded ? "success" : "warning", title: test.succeeded ? t("connectionSucceeded") : t("connectionFailed"), children: [
|
|
2156
|
+
test.message,
|
|
2157
|
+
test.succeeded && test.usersFound != null && test.groupsFound != null && ` ${t("found", { users: num(test.usersFound), groups: num(test.groupsFound) })}`
|
|
2158
|
+
] }),
|
|
2159
|
+
syncMsg && /* @__PURE__ */ jsx12(InlineAlert9, { tone: syncMsg.ok ? "success" : "warning", children: syncMsg.text }),
|
|
2160
|
+
/* @__PURE__ */ jsxs12(Grid, { templateColumns: { base: "minmax(0, 1fr)", lg: "minmax(0, 1fr) {sizes.sidePanel}" }, gap: "section", alignItems: "start", children: [
|
|
2161
|
+
/* @__PURE__ */ jsx12(Panel9, { title: t("settings"), children: /* @__PURE__ */ jsxs12(Stack9, { gap: "field", children: [
|
|
2162
|
+
saved && /* @__PURE__ */ jsx12(InlineAlert9, { tone: "success", children: t("saved") }),
|
|
2163
|
+
/* @__PURE__ */ jsx12(
|
|
2164
|
+
DirectoryForm,
|
|
2165
|
+
{
|
|
2166
|
+
mode: "edit",
|
|
2167
|
+
types: types.data ?? [],
|
|
2168
|
+
initial: initial ?? PLACEHOLDER,
|
|
2169
|
+
onSubmit: save,
|
|
2170
|
+
fallbackSettings
|
|
2171
|
+
},
|
|
2172
|
+
loading ? "loading" : formKey
|
|
2173
|
+
)
|
|
2174
|
+
] }) }),
|
|
2175
|
+
/* @__PURE__ */ jsxs12(Stack9, { gap: "section", children: [
|
|
2176
|
+
/* @__PURE__ */ jsx12(Panel9, { title: t("summary"), children: /* @__PURE__ */ jsx12(
|
|
2177
|
+
PropertyList3,
|
|
2178
|
+
{
|
|
2179
|
+
size: "sm",
|
|
2180
|
+
items: [
|
|
2181
|
+
{ label: tc("users"), value: dir && fmt.number(num(dir.userCount)) },
|
|
2182
|
+
{ label: tc("groups"), value: dir && fmt.number(num(dir.groupCount)) },
|
|
2183
|
+
{
|
|
2184
|
+
label: t("syncInterval"),
|
|
2185
|
+
value: dir && (dir.syncIntervalMinutes ? t("minutes", { count: num(dir.syncIntervalMinutes) }) : t("onDemand"))
|
|
2186
|
+
},
|
|
2187
|
+
{ label: t("plugin"), value: dir && (dir.pluginKey ?? t("builtIn")) },
|
|
2188
|
+
{ label: t("lastSync"), value: dir && /* @__PURE__ */ jsx12(SyncStatus, { d: dir }) }
|
|
2189
|
+
]
|
|
2190
|
+
}
|
|
2191
|
+
) }),
|
|
2192
|
+
/* @__PURE__ */ jsx12(TestLoginPanel, { directoryId: id, disabled: dir?.connectorAvailable === false })
|
|
2193
|
+
] })
|
|
2194
|
+
] }),
|
|
2195
|
+
dir && /* @__PURE__ */ jsx12(HostSlot3, { name: "guard.directory.panel", context: { directoryId: dir.id, directoryType: dir.type } }),
|
|
2196
|
+
/* @__PURE__ */ jsx12(Panel9, { title: t("syncRuns"), flush: true, children: /* @__PURE__ */ jsx12(
|
|
2197
|
+
DataTable8,
|
|
2198
|
+
{
|
|
2199
|
+
"aria-label": t("syncRuns"),
|
|
2200
|
+
size: "sm",
|
|
2201
|
+
columns: runColumns,
|
|
2202
|
+
rows: runs.data,
|
|
2203
|
+
getRowId: (r) => r.id,
|
|
2204
|
+
loading: runs.loading,
|
|
2205
|
+
error: runs.error,
|
|
2206
|
+
empty: t("noRuns"),
|
|
2207
|
+
stickyHeader: true,
|
|
2208
|
+
maxHeight: "md"
|
|
2209
|
+
}
|
|
2210
|
+
) })
|
|
2211
|
+
] })
|
|
2212
|
+
] });
|
|
2213
|
+
}
|
|
2214
|
+
function TestLoginPanel({ directoryId, disabled }) {
|
|
2215
|
+
const t = useGuardNs("directoryDetail");
|
|
2216
|
+
const tc = useGuardNs("common");
|
|
2217
|
+
const ts = useGuardNs("directoryDetail.steps");
|
|
2218
|
+
const request = useAreaRequest9("guard");
|
|
2219
|
+
const [username, setUsername] = useState6("");
|
|
2220
|
+
const [password, setPassword] = useState6("");
|
|
2221
|
+
const [result, setResult] = useState6(null);
|
|
2222
|
+
const [error, setError] = useState6(null);
|
|
2223
|
+
const [busy, setBusy] = useState6(false);
|
|
2224
|
+
async function submit(e) {
|
|
2225
|
+
e.preventDefault();
|
|
2226
|
+
setBusy(true);
|
|
2227
|
+
setError(null);
|
|
2228
|
+
setResult(null);
|
|
2229
|
+
try {
|
|
2230
|
+
setResult(await request(`/directories/${directoryId}/test-login`, { method: "POST", body: { username, password } }));
|
|
2231
|
+
} catch (err) {
|
|
2232
|
+
setError(errorText4(err));
|
|
2233
|
+
} finally {
|
|
2234
|
+
setBusy(false);
|
|
2235
|
+
}
|
|
2236
|
+
}
|
|
2237
|
+
const known = new Set(STEPS);
|
|
2238
|
+
const rows = result ? [
|
|
2239
|
+
...STEPS.map((step) => ({ step, label: ts(step), r: result.steps.find((s) => s.step === step) })),
|
|
2240
|
+
...result.steps.filter((s) => !known.has(s.step)).map((s) => ({ step: s.step, label: s.step, r: s }))
|
|
2241
|
+
] : [];
|
|
2242
|
+
return /* @__PURE__ */ jsx12(Panel9, { title: t("testLogin"), description: t("testLoginHint"), children: /* @__PURE__ */ jsxs12(Stack9, { gap: "stack", children: [
|
|
2243
|
+
/* @__PURE__ */ jsx12("form", { onSubmit: submit, children: /* @__PURE__ */ jsxs12(Stack9, { gap: "stack", children: [
|
|
2244
|
+
/* @__PURE__ */ jsx12(Field3, { label: tc("username"), required: true, children: /* @__PURE__ */ jsx12(Input4, { size: "sm", value: username, onChange: (e) => setUsername(e.target.value), autoComplete: "off" }) }),
|
|
2245
|
+
/* @__PURE__ */ jsx12(Field3, { label: tc("password"), required: true, children: /* @__PURE__ */ jsx12(Input4, { size: "sm", type: "password", value: password, onChange: (e) => setPassword(e.target.value), autoComplete: "new-password" }) }),
|
|
2246
|
+
/* @__PURE__ */ jsx12(Button9, { type: "submit", size: "sm", w: "full", loading: busy, disabled, children: t("runTest") })
|
|
2247
|
+
] }) }),
|
|
2248
|
+
/* @__PURE__ */ jsx12(InlineAlert9, { tone: "danger", size: "sm", children: error }),
|
|
2249
|
+
result && /* @__PURE__ */ jsx12(List.Root, { as: "ol", gap: "2", listStyle: "none", "aria-label": t("testSteps"), children: rows.map(({ step, label, r }) => /* @__PURE__ */ jsx12(List.Item, { layerStyle: "sunken", px: "3", py: "2", children: /* @__PURE__ */ jsxs12(Box, { w: "full", children: [
|
|
2250
|
+
/* @__PURE__ */ jsxs12(HStack10, { justify: "space-between", gap: "2", children: [
|
|
2251
|
+
/* @__PURE__ */ jsx12(Text11, { textStyle: "label", children: label }),
|
|
2252
|
+
/* @__PURE__ */ jsx12(PassFail, { ok: r ? r.succeeded : null })
|
|
2253
|
+
] }),
|
|
2254
|
+
r?.message && /* @__PURE__ */ jsx12(Text11, { textStyle: "caption", color: "fg.muted", mt: "1", children: r.message })
|
|
2255
|
+
] }) }, step)) })
|
|
2256
|
+
] }) });
|
|
2257
|
+
}
|
|
2258
|
+
|
|
2259
|
+
// src/areas/guard/GroupScreen.tsx
|
|
2260
|
+
import { useEffect, useState as useState9 } from "react";
|
|
2261
|
+
import { Grid as Grid2, HStack as HStack13, Input as Input5, List as List3, Stack as Stack11, Text as Text14, Textarea } from "@chakra-ui/react";
|
|
2262
|
+
import {
|
|
2263
|
+
AppLink as AppLink8,
|
|
2264
|
+
Button as Button10,
|
|
2265
|
+
DataTable as DataTable9,
|
|
2266
|
+
errorText as errorText7,
|
|
2267
|
+
Field as Field4,
|
|
2268
|
+
InlineAlert as InlineAlert11,
|
|
2269
|
+
Loading as Loading4,
|
|
2270
|
+
notify as notify7,
|
|
2271
|
+
PageHeader as PageHeader6,
|
|
2272
|
+
Panel as Panel11,
|
|
2273
|
+
PathChips as PathChips2,
|
|
2274
|
+
RecordKey as RecordKey4,
|
|
2275
|
+
SearchInput as SearchInput2,
|
|
2276
|
+
StatusPill as StatusPill9,
|
|
2277
|
+
TextBone,
|
|
2278
|
+
TextSlot as TextSlot3,
|
|
2279
|
+
TranslatedInput as TranslatedInput3,
|
|
2280
|
+
useApiAction as useApiAction8,
|
|
2281
|
+
useApiQuery as useApiQuery8,
|
|
2282
|
+
useAreaRequest as useAreaRequest12,
|
|
2283
|
+
useConfirm as useConfirm4,
|
|
2284
|
+
useNavigate as useNavigate3,
|
|
2285
|
+
useSettledValue
|
|
2286
|
+
} from "@abpjs/ui";
|
|
2287
|
+
import { fromNamesValue as fromNamesValue2, splitList, toNamesValue as toNamesValue2 } from "@abpjs/ui/rules";
|
|
2288
|
+
|
|
2289
|
+
// src/areas/guard/GroupTree.tsx
|
|
2290
|
+
import { useState as useState7 } from "react";
|
|
2291
|
+
import { Box as Box2, HStack as HStack11, List as List2, Text as Text12 } from "@chakra-ui/react";
|
|
2292
|
+
import { ChevronDown, ChevronRight } from "lucide-react";
|
|
2293
|
+
import { AppLink as AppLink7, DirectionalIcon, errorText as errorText5, IconButton as IconButton3, StatusPill as StatusPill8, useAreaRequest as useAreaRequest10 } from "@abpjs/ui";
|
|
2294
|
+
import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
2295
|
+
function GroupTree({ rootId, rootName, rootMembers, routes = guardRoutes() }) {
|
|
2296
|
+
return /* @__PURE__ */ jsxs13(Box2, { textStyle: "md", role: "tree", "aria-label": rootName, children: [
|
|
2297
|
+
/* @__PURE__ */ jsx13(Text12, { fontWeight: "medium", children: rootName }),
|
|
2298
|
+
/* @__PURE__ */ jsx13(Children, { members: rootMembers, ancestors: [rootId], routes })
|
|
2299
|
+
] });
|
|
2300
|
+
}
|
|
2301
|
+
function Children({ members, ancestors, routes }) {
|
|
2302
|
+
const t = useGuardNs("groupDetail");
|
|
2303
|
+
const groups = members.filter((m) => m.memberType === "Group");
|
|
2304
|
+
const accountCount = members.length - groups.length;
|
|
2305
|
+
return /* @__PURE__ */ jsxs13(List2.Root, { role: "group", listStyle: "none", ms: "2", ps: "3", borderInlineStartWidth: "1px", borderColor: "border", gap: "0.5", py: "0.5", children: [
|
|
2306
|
+
groups.map((g) => /* @__PURE__ */ jsx13(Node, { member: g, ancestors, routes }, g.memberId)),
|
|
2307
|
+
accountCount > 0 && /* @__PURE__ */ jsx13(List2.Item, { textStyle: "caption", color: "fg.muted", ps: "6", children: t("accountCount", { count: accountCount }) })
|
|
2308
|
+
] });
|
|
2309
|
+
}
|
|
2310
|
+
function Node({ member, ancestors, routes }) {
|
|
2311
|
+
const t = useGuardNs("groupDetail");
|
|
2312
|
+
const request = useAreaRequest10("guard");
|
|
2313
|
+
const [open, setOpen] = useState7(false);
|
|
2314
|
+
const [detail, setDetail] = useState7(null);
|
|
2315
|
+
const [error, setError] = useState7(null);
|
|
2316
|
+
const cyclic = ancestors.includes(member.memberId);
|
|
2317
|
+
async function toggle() {
|
|
2318
|
+
const next = !open;
|
|
2319
|
+
setOpen(next);
|
|
2320
|
+
if (next && !detail) {
|
|
2321
|
+
try {
|
|
2322
|
+
setError(null);
|
|
2323
|
+
setDetail(await request(`/groups/${member.memberId}`));
|
|
2324
|
+
} catch (e) {
|
|
2325
|
+
setError(errorText5(e));
|
|
2326
|
+
}
|
|
2327
|
+
}
|
|
2328
|
+
}
|
|
2329
|
+
return /* @__PURE__ */ jsxs13(List2.Item, { role: "treeitem", "aria-expanded": cyclic ? void 0 : open, display: "block", children: [
|
|
2330
|
+
/* @__PURE__ */ jsxs13(HStack11, { gap: "1", children: [
|
|
2331
|
+
cyclic ? /* @__PURE__ */ jsx13(Box2, { boxSize: "control.xs", flexShrink: "0" }) : /* @__PURE__ */ jsx13(
|
|
2332
|
+
IconButton3,
|
|
2333
|
+
{
|
|
2334
|
+
size: "xs",
|
|
2335
|
+
"aria-label": open ? t("collapse", { name: member.name }) : t("expand", { name: member.name }),
|
|
2336
|
+
onClick: toggle,
|
|
2337
|
+
children: open ? /* @__PURE__ */ jsx13(ChevronDown, {}) : /* @__PURE__ */ jsx13(DirectionalIcon, { children: /* @__PURE__ */ jsx13(ChevronRight, {}) })
|
|
2338
|
+
}
|
|
2339
|
+
),
|
|
2340
|
+
/* @__PURE__ */ jsx13(AppLink7, { href: routes.group(member.memberId), children: member.name }),
|
|
2341
|
+
cyclic && /* @__PURE__ */ jsx13(StatusPill8, { tone: "warning", children: t("cycle") })
|
|
2342
|
+
] }),
|
|
2343
|
+
open && !cyclic && /* @__PURE__ */ jsxs13(Box2, { children: [
|
|
2344
|
+
error && /* @__PURE__ */ jsx13(Text12, { textStyle: "caption", color: "fg.danger", ms: "7", children: error }),
|
|
2345
|
+
!detail && !error && /* @__PURE__ */ jsx13(Text12, { textStyle: "caption", color: "fg.muted", ms: "7", children: t("loadingTree") }),
|
|
2346
|
+
detail && /* @__PURE__ */ jsx13(Children, { members: detail.members, ancestors: [...ancestors, member.memberId], routes })
|
|
2347
|
+
] })
|
|
2348
|
+
] });
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
// src/areas/guard/GroupTwoFactorPanel.tsx
|
|
2352
|
+
import { useState as useState8 } from "react";
|
|
2353
|
+
import { Box as Box3, chakra, HStack as HStack12, Stack as Stack10, Text as Text13 } from "@chakra-ui/react";
|
|
2354
|
+
import { errorText as errorText6, Indicator, InlineAlert as InlineAlert10, notify as notify6, Panel as Panel10, useAreaRequest as useAreaRequest11 } from "@abpjs/ui";
|
|
2355
|
+
import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2356
|
+
var TWO_FACTOR_MODES = ["off", "optional", "required", "strong"];
|
|
2357
|
+
function GroupTwoFactorPanel({ group, onSaved }) {
|
|
2358
|
+
const t = useGuardNs("groupDetail.twoFactor");
|
|
2359
|
+
const request = useAreaRequest11("guard");
|
|
2360
|
+
const [mode, setMode] = useState8(group.twoFactor ?? "off");
|
|
2361
|
+
const [error, setError] = useState8(null);
|
|
2362
|
+
async function choose(next) {
|
|
2363
|
+
if (next === mode) return;
|
|
2364
|
+
const before = mode;
|
|
2365
|
+
setMode(next);
|
|
2366
|
+
setError(null);
|
|
2367
|
+
try {
|
|
2368
|
+
const updated = await request(`/groups/${group.id}/two-factor`, { method: "PUT", body: { mode: next } });
|
|
2369
|
+
notify6.success(t("saved", { name: group.name, mode: t(`modes.${next}`) }));
|
|
2370
|
+
onSaved(updated);
|
|
2371
|
+
} catch (e) {
|
|
2372
|
+
setMode(before);
|
|
2373
|
+
setError(errorText6(e));
|
|
2374
|
+
}
|
|
2375
|
+
}
|
|
2376
|
+
return /* @__PURE__ */ jsx14(Panel10, { title: t("title"), description: t("hint"), "data-testid": "group-two-factor", children: /* @__PURE__ */ jsxs14(Stack10, { gap: "2", children: [
|
|
2377
|
+
/* @__PURE__ */ jsx14(InlineAlert10, { tone: "danger", children: error }),
|
|
2378
|
+
/* @__PURE__ */ jsx14(HStack12, { gap: "1", p: "1", rounded: "l2", bg: "bg.subtle", w: "fit-content", maxW: "full", wrap: "wrap", role: "radiogroup", "aria-label": t("title"), children: TWO_FACTOR_MODES.map((choice) => /* @__PURE__ */ jsxs14(
|
|
2379
|
+
chakra.button,
|
|
2380
|
+
{
|
|
2381
|
+
type: "button",
|
|
2382
|
+
role: "radio",
|
|
2383
|
+
"aria-checked": mode === choice,
|
|
2384
|
+
position: "relative",
|
|
2385
|
+
px: "3",
|
|
2386
|
+
py: "1.5",
|
|
2387
|
+
rounded: "l1",
|
|
2388
|
+
textStyle: "body.sm",
|
|
2389
|
+
fontWeight: "medium",
|
|
2390
|
+
color: mode === choice ? "fg" : "fg.muted",
|
|
2391
|
+
cursor: "pointer",
|
|
2392
|
+
focusVisibleRing: "inside",
|
|
2393
|
+
onClick: () => void choose(choice),
|
|
2394
|
+
"data-testid": `two-factor-${choice}`,
|
|
2395
|
+
children: [
|
|
2396
|
+
mode === choice && /* @__PURE__ */ jsx14(Indicator, { group: `two-factor-${group.id}`, css: { position: "absolute", inset: 0, rounded: "l1", bg: "bg.panel", boxShadow: "xs" } }),
|
|
2397
|
+
/* @__PURE__ */ jsx14(Box3, { as: "span", position: "relative", children: t(`modes.${choice}`) })
|
|
2398
|
+
]
|
|
2399
|
+
},
|
|
2400
|
+
choice
|
|
2401
|
+
)) }),
|
|
2402
|
+
/* @__PURE__ */ jsx14(Text13, { textStyle: "body.sm", color: "fg.muted", "aria-live": "polite", children: t(`modeHints.${mode}`) })
|
|
2403
|
+
] }) });
|
|
2404
|
+
}
|
|
2405
|
+
|
|
2406
|
+
// src/areas/guard/GroupScreen.tsx
|
|
2407
|
+
import { Fragment as Fragment7, jsx as jsx15, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
2408
|
+
function GroupScreen({ id, routes = guardRoutes() }) {
|
|
2409
|
+
const t = useGuardNs("groupDetail");
|
|
2410
|
+
const tg = useGuardNs("groups");
|
|
2411
|
+
const tc = useGuardNs("common");
|
|
2412
|
+
const tn = useGuardNs("nav");
|
|
2413
|
+
const tf = useGuardNs("groupDetail.twoFactor");
|
|
2414
|
+
const written = useWrittenName();
|
|
2415
|
+
const confirm = useConfirm4();
|
|
2416
|
+
const navigate = useNavigate3();
|
|
2417
|
+
const request = useAreaRequest12("guard");
|
|
2418
|
+
const detail = useApiQuery8("guard", `/groups/${id}`);
|
|
2419
|
+
const action = useApiAction8();
|
|
2420
|
+
const [treeKey, setTreeKey] = useState9(0);
|
|
2421
|
+
async function reload() {
|
|
2422
|
+
await detail.reload();
|
|
2423
|
+
setTreeKey((k) => k + 1);
|
|
2424
|
+
}
|
|
2425
|
+
async function removeMember(m) {
|
|
2426
|
+
const ok = await action.run(async () => {
|
|
2427
|
+
await request(`/groups/${id}/members/${m.memberType}/${m.memberId}`, { method: "DELETE" });
|
|
2428
|
+
return true;
|
|
2429
|
+
});
|
|
2430
|
+
if (ok) await reload();
|
|
2431
|
+
}
|
|
2432
|
+
async function deleteGroup() {
|
|
2433
|
+
if (!detail.data) return;
|
|
2434
|
+
const yes = await confirm({ title: t("deleteTitle", { name: detail.data.group.name }), confirmLabel: tc("delete"), danger: true });
|
|
2435
|
+
if (!yes) return;
|
|
2436
|
+
const ok = await action.run(async () => {
|
|
2437
|
+
await request(`/groups/${id}`, { method: "DELETE" });
|
|
2438
|
+
return true;
|
|
2439
|
+
});
|
|
2440
|
+
if (ok) navigate(routes.groups);
|
|
2441
|
+
}
|
|
2442
|
+
if (detail.error && !detail.data) return /* @__PURE__ */ jsx15(InlineAlert11, { tone: "danger", children: detail.error });
|
|
2443
|
+
const group = detail.data?.group;
|
|
2444
|
+
const members = detail.data?.members;
|
|
2445
|
+
const parents = detail.data?.parents;
|
|
2446
|
+
const effectiveMembers = detail.data?.effectiveMembers;
|
|
2447
|
+
const hasGroupMembers = members?.some((m) => m.memberType === "Group") ?? false;
|
|
2448
|
+
const memberColumns = [
|
|
2449
|
+
{
|
|
2450
|
+
id: "type",
|
|
2451
|
+
header: tc("type"),
|
|
2452
|
+
sortValue: (m) => m.memberType === "Group" ? 0 : 1,
|
|
2453
|
+
cell: (m) => m.memberType === "Group" ? /* @__PURE__ */ jsx15(StatusPill9, { tone: "info", children: tc("group") }) : /* @__PURE__ */ jsx15(StatusPill9, { children: tc("account") }),
|
|
2454
|
+
skeleton: "pill"
|
|
2455
|
+
},
|
|
2456
|
+
{
|
|
2457
|
+
id: "name",
|
|
2458
|
+
header: tc("name"),
|
|
2459
|
+
sortValue: (m) => m.name,
|
|
2460
|
+
cell: (m) => /* @__PURE__ */ jsxs15(HStack13, { gap: "2", wrap: "wrap", children: [
|
|
2461
|
+
m.memberType === "Group" ? /* @__PURE__ */ jsx15(AppLink8, { href: routes.group(m.memberId), fontWeight: "medium", children: m.name }) : /* @__PURE__ */ jsx15(RecordKey4, { value: m.name, href: routes.account(m.memberId) }),
|
|
2462
|
+
m.displayName && m.displayName !== m.name && /* @__PURE__ */ jsx15(Text14, { as: "span", textStyle: "caption", color: "fg.muted", children: m.displayName })
|
|
2463
|
+
] }),
|
|
2464
|
+
skeleton: "key"
|
|
2465
|
+
},
|
|
2466
|
+
{ id: "directory", header: tc("directory"), sortValue: (m) => m.directoryName, cell: (m) => m.directoryName },
|
|
2467
|
+
{
|
|
2468
|
+
id: "source",
|
|
2469
|
+
header: tc("source"),
|
|
2470
|
+
sortValue: (m) => m.source,
|
|
2471
|
+
cell: (m) => m.source === "Directory" ? /* @__PURE__ */ jsx15(StatusPill9, { tone: "info", children: t("fromDirectory") }) : m.source === "Domain" ? /* @__PURE__ */ jsx15(StatusPill9, { tone: "info", children: t("byDomain") }) : m.source === "Import" ? /* @__PURE__ */ jsx15(StatusPill9, { tone: "info", children: t("fromImport") }) : /* @__PURE__ */ jsx15(StatusPill9, { tone: "accent", children: t("manual") }),
|
|
2472
|
+
skeleton: "pill"
|
|
2473
|
+
},
|
|
2474
|
+
{
|
|
2475
|
+
id: "actions",
|
|
2476
|
+
header: /* @__PURE__ */ jsx15(Text14, { as: "span", srOnly: true, children: tc("actions") }),
|
|
2477
|
+
align: "end",
|
|
2478
|
+
cell: (m) => m.removable && /* @__PURE__ */ jsx15(Button10, { size: "sm", variant: "ghost", danger: true, onClick: () => removeMember(m), disabled: action.busy, children: t("remove") }),
|
|
2479
|
+
skeleton: () => /* @__PURE__ */ jsx15(Button10, { size: "sm", variant: "ghost", danger: true, children: t("remove") })
|
|
2480
|
+
}
|
|
2481
|
+
];
|
|
2482
|
+
const effectiveColumns = [
|
|
2483
|
+
{
|
|
2484
|
+
id: "username",
|
|
2485
|
+
header: tc("username"),
|
|
2486
|
+
sortValue: (m) => m.username,
|
|
2487
|
+
cell: (m) => /* @__PURE__ */ jsx15(RecordKey4, { value: m.username, href: routes.account(m.accountId) }),
|
|
2488
|
+
skeleton: "key"
|
|
2489
|
+
},
|
|
2490
|
+
{ id: "displayName", header: tc("displayName"), sortValue: (m) => m.displayName, cell: (m) => m.displayName, skeleton: "person" },
|
|
2491
|
+
{ id: "path", header: tc("path"), sortValue: (m) => m.path.length, cell: (m) => /* @__PURE__ */ jsx15(PathChips2, { path: m.path }), skeleton: () => /* @__PURE__ */ jsx15(PathChips2, { path: [], loading: true }) }
|
|
2492
|
+
];
|
|
2493
|
+
return /* @__PURE__ */ jsxs15(Loading4, { when: !detail.data, children: [
|
|
2494
|
+
/* @__PURE__ */ jsx15(
|
|
2495
|
+
PageHeader6,
|
|
2496
|
+
{
|
|
2497
|
+
breadcrumbs: [{ label: tn("groups"), href: routes.groups }, { label: group && written(group.name, group.names) }],
|
|
2498
|
+
title: group && written(group.name, group.names),
|
|
2499
|
+
description: group?.description ?? void 0,
|
|
2500
|
+
meta: /* @__PURE__ */ jsxs15(Fragment7, { children: [
|
|
2501
|
+
/* @__PURE__ */ jsx15(Text14, { as: "span", children: /* @__PURE__ */ jsx15(TextSlot3, { width: 10, children: group?.directoryName }) }),
|
|
2502
|
+
/* @__PURE__ */ jsx15(StatusPill9, { dot: false, children: group && tg(`kinds.${group.kind}`) }),
|
|
2503
|
+
!group ? /* @__PURE__ */ jsx15(StatusPill9, {}) : group.isLocal ? /* @__PURE__ */ jsx15(StatusPill9, { tone: "accent", children: tg("local") }) : /* @__PURE__ */ jsx15(StatusPill9, { tone: "info", children: tg("synced") }),
|
|
2504
|
+
!group ? /* @__PURE__ */ jsx15(StatusPill9, {}) : group.writable ? /* @__PURE__ */ jsx15(StatusPill9, { tone: "success", children: t("writable") }) : /* @__PURE__ */ jsx15(StatusPill9, { children: tg("readOnly") }),
|
|
2505
|
+
group && group.twoFactor && group.twoFactor !== "off" && /* @__PURE__ */ jsx15(StatusPill9, { tone: "accent", "data-testid": "group-two-factor-pill", children: tf("pill", { mode: tf(`modes.${group.twoFactor}`) }) })
|
|
2506
|
+
] }),
|
|
2507
|
+
actions: (!group || group.isLocal && !group.computed) && /* @__PURE__ */ jsx15(Button10, { danger: true, onClick: deleteGroup, disabled: action.busy, children: t("delete") })
|
|
2508
|
+
}
|
|
2509
|
+
),
|
|
2510
|
+
/* @__PURE__ */ jsxs15(Stack11, { gap: "section", children: [
|
|
2511
|
+
/* @__PURE__ */ jsx15(InlineAlert11, { tone: "danger", children: action.error }),
|
|
2512
|
+
group && group.writable && group.isLocal && /* @__PURE__ */ jsx15(GroupNames, { group, onSaved: reload }),
|
|
2513
|
+
/* @__PURE__ */ jsxs15(Grid2, { templateColumns: { base: "minmax(0, 1fr)", lg: "minmax(0, 1fr) {sizes.sidePanel}" }, gap: "section", alignItems: "start", children: [
|
|
2514
|
+
/* @__PURE__ */ jsx15(Panel11, { title: /* @__PURE__ */ jsx15(TextSlot3, { width: 18, children: t("directMembers", { count: members?.length ?? 0 }) }), flush: true, children: /* @__PURE__ */ jsx15(
|
|
2515
|
+
DataTable9,
|
|
2516
|
+
{
|
|
2517
|
+
"aria-label": t("directMembers", { count: members?.length ?? 0 }),
|
|
2518
|
+
columns: memberColumns,
|
|
2519
|
+
rows: members,
|
|
2520
|
+
getRowId: (m) => `${m.memberType}:${m.memberId}`,
|
|
2521
|
+
defaultSort: { columnId: "type", direction: "asc" },
|
|
2522
|
+
empty: t("noMembers")
|
|
2523
|
+
}
|
|
2524
|
+
) }),
|
|
2525
|
+
/* @__PURE__ */ jsxs15(Stack11, { gap: "section", children: [
|
|
2526
|
+
/* @__PURE__ */ jsx15(Panel11, { title: /* @__PURE__ */ jsx15(TextSlot3, { width: 14, children: t("memberOf", { count: parents?.length ?? 0 }) }), children: !parents ? /* @__PURE__ */ jsx15(Text14, { textStyle: "body", children: /* @__PURE__ */ jsx15(TextBone, { width: t("notNested").length }) }) : parents.length === 0 ? /* @__PURE__ */ jsx15(Text14, { textStyle: "body", color: "fg.muted", children: t("notNested") }) : /* @__PURE__ */ jsx15(List3.Root, { listStyle: "none", gap: "1.5", children: parents.map((p) => /* @__PURE__ */ jsx15(List3.Item, { children: /* @__PURE__ */ jsxs15(HStack13, { justify: "space-between", gap: "2", w: "full", children: [
|
|
2527
|
+
/* @__PURE__ */ jsx15(AppLink8, { href: routes.group(p.id), children: written(p.name, p.names) }),
|
|
2528
|
+
/* @__PURE__ */ jsx15(Text14, { as: "span", textStyle: "caption", color: "fg.muted", children: p.directoryName })
|
|
2529
|
+
] }) }, p.id)) }) }),
|
|
2530
|
+
group && detail.data && /* @__PURE__ */ jsx15(GroupTwoFactorPanel, { group, onSaved: (updated) => detail.data && detail.setData({ ...detail.data, group: updated }) }, group.id),
|
|
2531
|
+
group && members && hasGroupMembers && /* @__PURE__ */ jsx15(Panel11, { title: t("nestedGroups"), children: /* @__PURE__ */ jsx15(GroupTree, { rootId: group.id, rootName: group.name, rootMembers: members, routes }, treeKey) })
|
|
2532
|
+
] })
|
|
2533
|
+
] }),
|
|
2534
|
+
group?.kind === "organization" && /* @__PURE__ */ jsx15(OrganizationPanel, { group, onSaved: reload }),
|
|
2535
|
+
!group || group.writable ? /* @__PURE__ */ jsx15(AddMember, { groupId: group?.id ?? id, existing: members ?? [], onAdded: reload }) : /* @__PURE__ */ jsx15(InlineAlert11, { tone: "neutral", children: group.computed ? t(group.kind === "ou" ? "ouNotice" : "directoryNotice") : t("readOnlyNotice") }),
|
|
2536
|
+
/* @__PURE__ */ jsx15(Panel11, { title: /* @__PURE__ */ jsx15(TextSlot3, { width: 22, children: t("effectiveMembers", { count: effectiveMembers?.length ?? 0 }) }), flush: true, children: /* @__PURE__ */ jsx15(
|
|
2537
|
+
DataTable9,
|
|
2538
|
+
{
|
|
2539
|
+
"aria-label": t("effectiveMembers", { count: effectiveMembers?.length ?? 0 }),
|
|
2540
|
+
columns: effectiveColumns,
|
|
2541
|
+
rows: effectiveMembers,
|
|
2542
|
+
getRowId: (m) => `${m.accountId}:${m.path.join(">")}`,
|
|
2543
|
+
defaultSort: { columnId: "path", direction: "asc" },
|
|
2544
|
+
empty: t("noEffectiveMembers")
|
|
2545
|
+
}
|
|
2546
|
+
) })
|
|
2547
|
+
] })
|
|
2548
|
+
] });
|
|
2549
|
+
}
|
|
2550
|
+
function OrganizationPanel({ group, onSaved }) {
|
|
2551
|
+
const t = useGuardNs("groupDetail");
|
|
2552
|
+
const tg = useGuardNs("groups");
|
|
2553
|
+
const request = useAreaRequest12("guard");
|
|
2554
|
+
const [domains, setDomains] = useState9(group.emailDomains.join(", "));
|
|
2555
|
+
const [attributes, setAttributes] = useState9(
|
|
2556
|
+
Object.entries(group.attributes).map(([k, v]) => `${k} = ${v}`).join("\n")
|
|
2557
|
+
);
|
|
2558
|
+
const action = useApiAction8();
|
|
2559
|
+
async function save() {
|
|
2560
|
+
const parsed = {};
|
|
2561
|
+
for (const line of attributes.split("\n").map((l) => l.trim()).filter(Boolean)) {
|
|
2562
|
+
const at = line.indexOf("=");
|
|
2563
|
+
if (at > 0) parsed[line.slice(0, at).trim()] = line.slice(at + 1).trim();
|
|
2564
|
+
}
|
|
2565
|
+
const ok = await action.run(async () => {
|
|
2566
|
+
await request(`/groups/${group.id}`, {
|
|
2567
|
+
method: "PUT",
|
|
2568
|
+
body: { name: group.name, description: group.description, emailDomains: splitList(domains), attributes: parsed }
|
|
2569
|
+
});
|
|
2570
|
+
return true;
|
|
2571
|
+
});
|
|
2572
|
+
if (ok) {
|
|
2573
|
+
notify7.success(t("organizationSaved"));
|
|
2574
|
+
await onSaved();
|
|
2575
|
+
}
|
|
2576
|
+
}
|
|
2577
|
+
return /* @__PURE__ */ jsx15(Panel11, { title: t("organization"), description: t("organizationHint"), "data-testid": "organization", children: /* @__PURE__ */ jsxs15(Stack11, { gap: "field", maxW: "2xl", children: [
|
|
2578
|
+
/* @__PURE__ */ jsx15(Field4, { label: tg("domains"), helperText: tg("domainsHint"), children: /* @__PURE__ */ jsx15(Input5, { value: domains, onChange: (e) => setDomains(e.target.value), dir: "ltr", placeholder: "acme.com" }) }),
|
|
2579
|
+
/* @__PURE__ */ jsx15(Field4, { label: t("attributes"), helperText: t("attributesHint"), children: /* @__PURE__ */ jsx15(Textarea, { value: attributes, onChange: (e) => setAttributes(e.target.value), rows: 4, fontFamily: "mono", fontSize: "sm" }) }),
|
|
2580
|
+
/* @__PURE__ */ jsx15(InlineAlert11, { tone: "danger", children: action.error }),
|
|
2581
|
+
/* @__PURE__ */ jsx15(HStack13, { children: /* @__PURE__ */ jsx15(Button10, { onClick: () => void save(), loading: action.busy, children: t("saveOrganization") }) })
|
|
2582
|
+
] }) });
|
|
2583
|
+
}
|
|
2584
|
+
function AddMember({ groupId, existing, onAdded }) {
|
|
2585
|
+
const t = useGuardNs("groupDetail");
|
|
2586
|
+
const tc = useGuardNs("common");
|
|
2587
|
+
const request = useAreaRequest12("guard");
|
|
2588
|
+
const [query, setQuery] = useState9("");
|
|
2589
|
+
const settled = useSettledValue(query.trim());
|
|
2590
|
+
const [accounts, setAccounts] = useState9([]);
|
|
2591
|
+
const [groups, setGroups] = useState9([]);
|
|
2592
|
+
const [searchError, setSearchError] = useState9(null);
|
|
2593
|
+
const [error, setError] = useState9(null);
|
|
2594
|
+
const [busyId, setBusyId] = useState9(null);
|
|
2595
|
+
useEffect(() => {
|
|
2596
|
+
if (!settled) {
|
|
2597
|
+
setAccounts([]);
|
|
2598
|
+
setGroups([]);
|
|
2599
|
+
return;
|
|
2600
|
+
}
|
|
2601
|
+
let cancelled = false;
|
|
2602
|
+
const search = new URLSearchParams({ search: settled });
|
|
2603
|
+
Promise.all([request(`/accounts?${search}`), request(`/groups?${search}`)]).then(([a, g]) => {
|
|
2604
|
+
if (cancelled) return;
|
|
2605
|
+
setAccounts(a.slice(0, 10));
|
|
2606
|
+
setGroups(g.filter((x) => x.id !== groupId).slice(0, 10));
|
|
2607
|
+
setSearchError(null);
|
|
2608
|
+
}).catch((e) => !cancelled && setSearchError(errorText7(e)));
|
|
2609
|
+
return () => {
|
|
2610
|
+
cancelled = true;
|
|
2611
|
+
};
|
|
2612
|
+
}, [settled, groupId, request]);
|
|
2613
|
+
const isMember = (type, id) => existing.some((m) => m.memberType === type && m.memberId === id);
|
|
2614
|
+
async function add(body, key) {
|
|
2615
|
+
setBusyId(key);
|
|
2616
|
+
setError(null);
|
|
2617
|
+
try {
|
|
2618
|
+
await request(`/groups/${groupId}/members`, { method: "POST", body });
|
|
2619
|
+
await onAdded();
|
|
2620
|
+
} catch (e) {
|
|
2621
|
+
setError(errorText7(e));
|
|
2622
|
+
} finally {
|
|
2623
|
+
setBusyId(null);
|
|
2624
|
+
}
|
|
2625
|
+
}
|
|
2626
|
+
const candidates = [
|
|
2627
|
+
...groups.map((g) => ({ kind: "Group", group: g })),
|
|
2628
|
+
...accounts.map((a) => ({ kind: "Account", account: a }))
|
|
2629
|
+
];
|
|
2630
|
+
const keyOf = (c) => c.kind === "Group" ? `g:${c.group.id}` : `a:${c.account.id}`;
|
|
2631
|
+
const columns = [
|
|
2632
|
+
{
|
|
2633
|
+
id: "type",
|
|
2634
|
+
header: tc("type"),
|
|
2635
|
+
width: "24",
|
|
2636
|
+
cell: (c) => c.kind === "Group" ? /* @__PURE__ */ jsx15(StatusPill9, { tone: "info", children: tc("group") }) : /* @__PURE__ */ jsx15(StatusPill9, { children: tc("account") })
|
|
2637
|
+
},
|
|
2638
|
+
{
|
|
2639
|
+
id: "name",
|
|
2640
|
+
header: tc("name"),
|
|
2641
|
+
cell: (c) => c.kind === "Group" ? /* @__PURE__ */ jsx15(Text14, { as: "span", fontWeight: "medium", children: c.group.name }) : /* @__PURE__ */ jsxs15(HStack13, { gap: "2", children: [
|
|
2642
|
+
/* @__PURE__ */ jsx15(RecordKey4, { value: c.account.username }),
|
|
2643
|
+
/* @__PURE__ */ jsx15(Text14, { as: "span", textStyle: "caption", color: "fg.muted", children: c.account.displayName })
|
|
2644
|
+
] })
|
|
2645
|
+
},
|
|
2646
|
+
{ id: "directory", header: tc("directory"), cell: (c) => c.kind === "Group" ? c.group.directoryName : c.account.directoryName },
|
|
2647
|
+
{
|
|
2648
|
+
id: "add",
|
|
2649
|
+
header: /* @__PURE__ */ jsx15(Text14, { as: "span", srOnly: true, children: tc("actions") }),
|
|
2650
|
+
align: "end",
|
|
2651
|
+
cell: (c) => {
|
|
2652
|
+
const member = c.kind === "Group" ? isMember("Group", c.group.id) : isMember("Account", c.account.id);
|
|
2653
|
+
if (member)
|
|
2654
|
+
return /* @__PURE__ */ jsx15(Text14, { as: "span", textStyle: "caption", color: "fg.muted", children: t("alreadyMember") });
|
|
2655
|
+
const key = keyOf(c);
|
|
2656
|
+
return /* @__PURE__ */ jsx15(
|
|
2657
|
+
Button10,
|
|
2658
|
+
{
|
|
2659
|
+
size: "sm",
|
|
2660
|
+
disabled: busyId != null,
|
|
2661
|
+
loading: busyId === key,
|
|
2662
|
+
onClick: () => add(c.kind === "Group" ? { groupId: c.group.id } : { accountId: c.account.id }, key),
|
|
2663
|
+
children: t("add")
|
|
2664
|
+
}
|
|
2665
|
+
);
|
|
2666
|
+
}
|
|
2667
|
+
}
|
|
2668
|
+
];
|
|
2669
|
+
return /* @__PURE__ */ jsx15(Panel11, { title: t("addMember"), children: /* @__PURE__ */ jsxs15(Stack11, { gap: "stack", children: [
|
|
2670
|
+
/* @__PURE__ */ jsx15(SearchInput2, { maxW: "md", placeholder: t("searchMembers"), value: query, onChange: (e) => setQuery(e.target.value), "aria-label": t("searchMembers") }),
|
|
2671
|
+
/* @__PURE__ */ jsx15(InlineAlert11, { tone: "danger", children: error }),
|
|
2672
|
+
/* @__PURE__ */ jsx15(InlineAlert11, { tone: "danger", children: searchError }),
|
|
2673
|
+
settled && candidates.length === 0 && !searchError && /* @__PURE__ */ jsx15(Text14, { textStyle: "body", color: "fg.muted", children: t("noMatches") }),
|
|
2674
|
+
candidates.length > 0 && /* @__PURE__ */ jsx15(Panel11, { flush: true, children: /* @__PURE__ */ jsx15(DataTable9, { size: "sm", "aria-label": t("addMember"), columns, rows: candidates, getRowId: keyOf }) })
|
|
2675
|
+
] }) });
|
|
2676
|
+
}
|
|
2677
|
+
function GroupNames({ group, onSaved }) {
|
|
2678
|
+
const t = useGuardNs("groupDetail");
|
|
2679
|
+
const tc = useGuardNs("common");
|
|
2680
|
+
const request = useAreaRequest12("guard");
|
|
2681
|
+
const action = useApiAction8();
|
|
2682
|
+
const [value, setValue] = useState9(() => toNamesValue2(group.name, group.names));
|
|
2683
|
+
const { name, names } = fromNamesValue2(value);
|
|
2684
|
+
const unchanged = name === group.name && JSON.stringify(names) === JSON.stringify(fromNamesValue2(toNamesValue2(group.name, group.names)).names);
|
|
2685
|
+
async function save(e) {
|
|
2686
|
+
e.preventDefault();
|
|
2687
|
+
const ok = await action.run(async () => {
|
|
2688
|
+
await request(`/groups/${group.id}`, {
|
|
2689
|
+
method: "PUT",
|
|
2690
|
+
body: { name, description: group.description, names, attributes: group.attributes, emailDomains: group.emailDomains }
|
|
2691
|
+
});
|
|
2692
|
+
return true;
|
|
2693
|
+
});
|
|
2694
|
+
if (ok) await onSaved();
|
|
2695
|
+
}
|
|
2696
|
+
return /* @__PURE__ */ jsx15(Panel11, { title: t("names"), description: t("namesHint"), children: /* @__PURE__ */ jsxs15("form", { onSubmit: save, children: [
|
|
2697
|
+
/* @__PURE__ */ jsxs15(HStack13, { gap: "2", align: "start", wrap: "wrap", children: [
|
|
2698
|
+
/* @__PURE__ */ jsx15(TranslatedInput3, { value, onChange: setValue, "aria-label": tc("name"), suggest: false }),
|
|
2699
|
+
/* @__PURE__ */ jsx15(Button10, { type: "submit", loading: action.busy, disabled: !name || unchanged, children: t("saveNames") })
|
|
2700
|
+
] }),
|
|
2701
|
+
/* @__PURE__ */ jsx15(InlineAlert11, { tone: "danger", children: action.error })
|
|
2702
|
+
] }) });
|
|
2703
|
+
}
|
|
2704
|
+
|
|
2705
|
+
// src/areas/guard/GroupsScreen.tsx
|
|
2706
|
+
import { useState as useState10 } from "react";
|
|
2707
|
+
import { HStack as HStack14, Input as Input6, SimpleGrid as SimpleGrid3, Stack as Stack12, Text as Text15 } from "@chakra-ui/react";
|
|
2708
|
+
import {
|
|
2709
|
+
AppLink as AppLink9,
|
|
2710
|
+
Button as Button11,
|
|
2711
|
+
DataTable as DataTable10,
|
|
2712
|
+
EMPTY_VALUE as EMPTY_VALUE4,
|
|
2713
|
+
errorText as errorText8,
|
|
2714
|
+
Field as Field5,
|
|
2715
|
+
InlineAlert as InlineAlert12,
|
|
2716
|
+
ListFooter as ListFooter2,
|
|
2717
|
+
notify as notify8,
|
|
2718
|
+
PageHeader as PageHeader7,
|
|
2719
|
+
Panel as Panel12,
|
|
2720
|
+
SearchInput as SearchInput3,
|
|
2721
|
+
SelectField as SelectField3,
|
|
2722
|
+
StatusPill as StatusPill10,
|
|
2723
|
+
TranslatedInput as TranslatedInput4,
|
|
2724
|
+
useApiQuery as useApiQuery9,
|
|
2725
|
+
useAreaListSource as useAreaListSource2,
|
|
2726
|
+
useAreaRequest as useAreaRequest13,
|
|
2727
|
+
useCan as useCan3,
|
|
2728
|
+
useListState as useListState2
|
|
2729
|
+
} from "@abpjs/ui";
|
|
2730
|
+
import { fromNamesValue as fromNamesValue3, splitList as splitList2 } from "@abpjs/ui/rules";
|
|
2731
|
+
import { Fragment as Fragment8, jsx as jsx16, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
2732
|
+
var KINDS = ["standard", "directory", "ou", "organization"];
|
|
2733
|
+
function GroupsScreen({ routes = guardRoutes(), source }) {
|
|
2734
|
+
const t = useGuardNs("groups");
|
|
2735
|
+
const tc = useGuardNs("common");
|
|
2736
|
+
const written = useWrittenName();
|
|
2737
|
+
const can = useCan3();
|
|
2738
|
+
const admin = can("guard.site.admin");
|
|
2739
|
+
const dirs = useApiQuery9("guard", "/directories");
|
|
2740
|
+
const served = useAreaListSource2("guard", "/groups/page");
|
|
2741
|
+
const list = useListState2(source ?? served, { initial: { sort: { columnId: "name", direction: "asc" } } });
|
|
2742
|
+
const [creating, setCreating] = useState10(false);
|
|
2743
|
+
const columns = [
|
|
2744
|
+
{
|
|
2745
|
+
id: "name",
|
|
2746
|
+
header: tc("name"),
|
|
2747
|
+
sortValue: (g) => g.name,
|
|
2748
|
+
cell: (g) => /* @__PURE__ */ jsx16(AppLink9, { href: routes.group(g.id), fontWeight: "medium", children: written(g.name, g.names) })
|
|
2749
|
+
},
|
|
2750
|
+
{ id: "kind", header: t("kind"), sortValue: (g) => g.kind, cell: (g) => /* @__PURE__ */ jsx16(StatusPill10, { dot: false, children: t(`kinds.${g.kind}`) }), skeleton: "pill" },
|
|
2751
|
+
{
|
|
2752
|
+
id: "description",
|
|
2753
|
+
header: tc("description"),
|
|
2754
|
+
cell: (g) => g.description ? /* @__PURE__ */ jsx16(Text15, { as: "span", color: "fg.muted", children: g.description }) : EMPTY_VALUE4
|
|
2755
|
+
},
|
|
2756
|
+
{ id: "directory", header: tc("directory"), sortValue: (g) => g.directoryName, cell: (g) => g.directoryName },
|
|
2757
|
+
{
|
|
2758
|
+
id: "source",
|
|
2759
|
+
header: tc("source"),
|
|
2760
|
+
cell: (g) => g.isLocal ? /* @__PURE__ */ jsx16(StatusPill10, { tone: "accent", children: t("local") }) : /* @__PURE__ */ jsx16(StatusPill10, { tone: "info", children: t("synced") }),
|
|
2761
|
+
skeleton: "pill"
|
|
2762
|
+
},
|
|
2763
|
+
{ id: "members", header: t("directMembers"), numeric: true, cell: (g) => num(g.directMemberCount) },
|
|
2764
|
+
{ id: "memberGroups", header: t("memberGroups"), numeric: true, cell: (g) => num(g.memberGroupCount) }
|
|
2765
|
+
];
|
|
2766
|
+
return /* @__PURE__ */ jsxs16(Fragment8, { children: [
|
|
2767
|
+
/* @__PURE__ */ jsx16(
|
|
2768
|
+
PageHeader7,
|
|
2769
|
+
{
|
|
2770
|
+
title: t("title"),
|
|
2771
|
+
description: t("subtitle"),
|
|
2772
|
+
actions: !creating && admin && /* @__PURE__ */ jsx16(Button11, { variant: "primary", onClick: () => setCreating(true), children: t("create") })
|
|
2773
|
+
}
|
|
2774
|
+
),
|
|
2775
|
+
/* @__PURE__ */ jsxs16(Stack12, { gap: "section", children: [
|
|
2776
|
+
creating && /* @__PURE__ */ jsx16(
|
|
2777
|
+
CreateGroup,
|
|
2778
|
+
{
|
|
2779
|
+
directories: dirs.data ?? [],
|
|
2780
|
+
onCancel: () => setCreating(false),
|
|
2781
|
+
onDone: (created) => {
|
|
2782
|
+
setCreating(false);
|
|
2783
|
+
notify8.success(t("created", { name: created.name }));
|
|
2784
|
+
list.reload();
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
),
|
|
2788
|
+
/* @__PURE__ */ jsxs16(Stack12, { gap: "field", children: [
|
|
2789
|
+
/* @__PURE__ */ jsxs16(HStack14, { gap: "2", wrap: "wrap", children: [
|
|
2790
|
+
/* @__PURE__ */ jsx16(
|
|
2791
|
+
SearchInput3,
|
|
2792
|
+
{
|
|
2793
|
+
size: "sm",
|
|
2794
|
+
maxW: "sm",
|
|
2795
|
+
value: list.query.search,
|
|
2796
|
+
onChange: (e) => list.setSearch(e.target.value),
|
|
2797
|
+
placeholder: t("searchPlaceholder"),
|
|
2798
|
+
"aria-label": t("searchPlaceholder")
|
|
2799
|
+
}
|
|
2800
|
+
),
|
|
2801
|
+
/* @__PURE__ */ jsx16(
|
|
2802
|
+
SelectField3,
|
|
2803
|
+
{
|
|
2804
|
+
size: "sm",
|
|
2805
|
+
maxW: "14rem",
|
|
2806
|
+
"aria-label": tc("directory"),
|
|
2807
|
+
value: list.query.filters.directoryId ?? "",
|
|
2808
|
+
onChange: (e) => list.setFilter("directoryId", e.target.value || null),
|
|
2809
|
+
options: [{ value: "", label: t("allDirectories") }, ...(dirs.data ?? []).map((d) => ({ value: d.id, label: d.name }))]
|
|
2810
|
+
}
|
|
2811
|
+
),
|
|
2812
|
+
/* @__PURE__ */ jsx16(
|
|
2813
|
+
SelectField3,
|
|
2814
|
+
{
|
|
2815
|
+
size: "sm",
|
|
2816
|
+
maxW: "14rem",
|
|
2817
|
+
"aria-label": t("kind"),
|
|
2818
|
+
value: list.query.filters.kind ?? "",
|
|
2819
|
+
onChange: (e) => list.setFilter("kind", e.target.value || null),
|
|
2820
|
+
options: [{ value: "", label: t("kind") }, ...KINDS.map((k) => ({ value: k, label: t(`kinds.${k}`) }))]
|
|
2821
|
+
}
|
|
2822
|
+
)
|
|
2823
|
+
] }),
|
|
2824
|
+
/* @__PURE__ */ jsx16(DataTable10, { "aria-label": t("title"), columns, getRowId: (g) => g.id, empty: t("empty"), ...list.table }),
|
|
2825
|
+
/* @__PURE__ */ jsx16(ListFooter2, { list })
|
|
2826
|
+
] })
|
|
2827
|
+
] })
|
|
2828
|
+
] });
|
|
2829
|
+
}
|
|
2830
|
+
function CreateGroup({ directories, onDone, onCancel }) {
|
|
2831
|
+
const t = useGuardNs("groups");
|
|
2832
|
+
const tc = useGuardNs("common");
|
|
2833
|
+
const request = useAreaRequest13("guard");
|
|
2834
|
+
const [nameValue, setNameValue] = useState10({});
|
|
2835
|
+
const { name, names } = fromNamesValue3(nameValue);
|
|
2836
|
+
const [description, setDescription] = useState10("");
|
|
2837
|
+
const [directoryId, setDirectoryId] = useState10("");
|
|
2838
|
+
const [kind, setKind] = useState10("standard");
|
|
2839
|
+
const [domains, setDomains] = useState10("");
|
|
2840
|
+
const [error, setError] = useState10(null);
|
|
2841
|
+
const [busy, setBusy] = useState10(false);
|
|
2842
|
+
async function submit(e) {
|
|
2843
|
+
e.preventDefault();
|
|
2844
|
+
setBusy(true);
|
|
2845
|
+
setError(null);
|
|
2846
|
+
try {
|
|
2847
|
+
const created = await request("/groups", {
|
|
2848
|
+
method: "POST",
|
|
2849
|
+
body: {
|
|
2850
|
+
name,
|
|
2851
|
+
names,
|
|
2852
|
+
description: description || null,
|
|
2853
|
+
...directoryId ? { directoryId } : {},
|
|
2854
|
+
kind,
|
|
2855
|
+
...kind === "organization" ? { emailDomains: splitList2(domains) } : {}
|
|
2856
|
+
}
|
|
2857
|
+
});
|
|
2858
|
+
onDone(created);
|
|
2859
|
+
} catch (err) {
|
|
2860
|
+
setError(errorText8(err));
|
|
2861
|
+
} finally {
|
|
2862
|
+
setBusy(false);
|
|
2863
|
+
}
|
|
2864
|
+
}
|
|
2865
|
+
return /* @__PURE__ */ jsx16(Panel12, { title: t("create"), children: /* @__PURE__ */ jsx16("form", { onSubmit: submit, children: /* @__PURE__ */ jsxs16(Stack12, { gap: "field", children: [
|
|
2866
|
+
/* @__PURE__ */ jsxs16(SimpleGrid3, { columns: { base: 1, md: 3 }, gap: "field", children: [
|
|
2867
|
+
/* @__PURE__ */ jsx16(Field5, { label: tc("name"), required: true, children: /* @__PURE__ */ jsx16(TranslatedInput4, { value: nameValue, onChange: setNameValue, "aria-label": tc("name") }) }),
|
|
2868
|
+
/* @__PURE__ */ jsx16(Field5, { label: tc("description"), children: /* @__PURE__ */ jsx16(Input6, { value: description, onChange: (e) => setDescription(e.target.value) }) }),
|
|
2869
|
+
/* @__PURE__ */ jsx16(Field5, { label: tc("directory"), helperText: t("directoryHint"), children: /* @__PURE__ */ jsx16(
|
|
2870
|
+
SelectField3,
|
|
2871
|
+
{
|
|
2872
|
+
value: directoryId,
|
|
2873
|
+
onChange: (e) => setDirectoryId(e.target.value),
|
|
2874
|
+
options: [
|
|
2875
|
+
{ value: "", label: t("internalDefault") },
|
|
2876
|
+
...directories.filter((d) => d.type !== "internal").map((d) => ({ value: d.id, label: d.name }))
|
|
2877
|
+
]
|
|
2878
|
+
}
|
|
2879
|
+
) }),
|
|
2880
|
+
/* @__PURE__ */ jsx16(Field5, { label: t("kind"), helperText: t("kindHint"), children: /* @__PURE__ */ jsx16(
|
|
2881
|
+
SelectField3,
|
|
2882
|
+
{
|
|
2883
|
+
value: kind,
|
|
2884
|
+
onChange: (e) => setKind(e.target.value),
|
|
2885
|
+
options: ["standard", "organization"].map((k) => ({ value: k, label: t(`kinds.${k}`) }))
|
|
2886
|
+
}
|
|
2887
|
+
) }),
|
|
2888
|
+
kind === "organization" && /* @__PURE__ */ jsx16(Field5, { label: t("domains"), helperText: t("domainsHint"), children: /* @__PURE__ */ jsx16(Input6, { value: domains, onChange: (e) => setDomains(e.target.value), dir: "ltr", placeholder: "acme.com" }) })
|
|
2889
|
+
] }),
|
|
2890
|
+
/* @__PURE__ */ jsx16(InlineAlert12, { tone: "danger", children: error }),
|
|
2891
|
+
/* @__PURE__ */ jsxs16(HStack14, { gap: "2", children: [
|
|
2892
|
+
/* @__PURE__ */ jsx16(Button11, { type: "submit", variant: "primary", loading: busy, children: t("create") }),
|
|
2893
|
+
/* @__PURE__ */ jsx16(Button11, { onClick: onCancel, children: tc("cancel") })
|
|
2894
|
+
] })
|
|
2895
|
+
] }) }) });
|
|
2896
|
+
}
|
|
2897
|
+
|
|
2898
|
+
// src/areas/guard/MergeScreen.tsx
|
|
2899
|
+
import { useEffect as useEffect2, useState as useState11 } from "react";
|
|
2900
|
+
import { HStack as HStack15, Input as Input7, SimpleGrid as SimpleGrid4, Stack as Stack13, Text as Text16 } from "@chakra-ui/react";
|
|
2901
|
+
import {
|
|
2902
|
+
boneWidth,
|
|
2903
|
+
Button as Button12,
|
|
2904
|
+
EMPTY_VALUE as EMPTY_VALUE5,
|
|
2905
|
+
Field as Field6,
|
|
2906
|
+
InlineAlert as InlineAlert13,
|
|
2907
|
+
Loading as Loading5,
|
|
2908
|
+
notify as notify9,
|
|
2909
|
+
PageHeader as PageHeader8,
|
|
2910
|
+
Panel as Panel13,
|
|
2911
|
+
PropertyList as PropertyList4,
|
|
2912
|
+
RecordKey as RecordKey5,
|
|
2913
|
+
SearchPicker,
|
|
2914
|
+
StatusPill as StatusPill11,
|
|
2915
|
+
TextBone as TextBone2,
|
|
2916
|
+
TextSlot as TextSlot4,
|
|
2917
|
+
useApiAction as useApiAction9,
|
|
2918
|
+
useApiQuery as useApiQuery10,
|
|
2919
|
+
useAreaRequest as useAreaRequest14,
|
|
2920
|
+
useFormatters as useFormatters8,
|
|
2921
|
+
useNavigate as useNavigate4
|
|
2922
|
+
} from "@abpjs/ui";
|
|
2923
|
+
import { Fragment as Fragment9, jsx as jsx17, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
2924
|
+
function MergeScreen({ id, into, routes = guardRoutes() }) {
|
|
2925
|
+
const t = useGuardNs("merge");
|
|
2926
|
+
const tn = useGuardNs("nav");
|
|
2927
|
+
const tc = useGuardNs("common");
|
|
2928
|
+
const navigate = useNavigate4();
|
|
2929
|
+
const request = useAreaRequest14("guard");
|
|
2930
|
+
const source = useApiQuery10("guard", `/accounts/${id}`);
|
|
2931
|
+
const [survivor, setSurvivor] = useState11(null);
|
|
2932
|
+
const [preview, setPreview] = useState11(null);
|
|
2933
|
+
const [confirm, setConfirm] = useState11("");
|
|
2934
|
+
const loading = useApiAction9();
|
|
2935
|
+
const merging = useApiAction9();
|
|
2936
|
+
useEffect2(() => {
|
|
2937
|
+
if (!into) return;
|
|
2938
|
+
request(`/accounts/${into}`).then(
|
|
2939
|
+
(d) => setSurvivor(d.account),
|
|
2940
|
+
() => void 0
|
|
2941
|
+
);
|
|
2942
|
+
}, [into, request]);
|
|
2943
|
+
useEffect2(() => {
|
|
2944
|
+
setPreview(null);
|
|
2945
|
+
setConfirm("");
|
|
2946
|
+
if (!survivor) return;
|
|
2947
|
+
void loading.run(
|
|
2948
|
+
() => request(`/accounts/${id}/merge/preview`, { method: "POST", body: { survivorId: survivor.id } }).then(setPreview)
|
|
2949
|
+
);
|
|
2950
|
+
}, [id, survivor]);
|
|
2951
|
+
if (source.error && !source.data) return /* @__PURE__ */ jsx17(InlineAlert13, { tone: "danger", children: source.error });
|
|
2952
|
+
const account = source.data?.account;
|
|
2953
|
+
const confirmed = !preview?.needsConfirmation || confirm.trim().toLowerCase() === account?.username.toLowerCase();
|
|
2954
|
+
async function merge() {
|
|
2955
|
+
if (!survivor) return;
|
|
2956
|
+
const done = await merging.run(
|
|
2957
|
+
() => request(`/accounts/${id}/merge`, {
|
|
2958
|
+
method: "POST",
|
|
2959
|
+
body: { survivorId: survivor.id, confirm: preview?.needsConfirmation ? confirm.trim() : null }
|
|
2960
|
+
})
|
|
2961
|
+
);
|
|
2962
|
+
if (done) {
|
|
2963
|
+
if (done.state === "done") notify9.success(t("merged", { source: done.sourceUsername, survivor: done.survivorUsername }));
|
|
2964
|
+
else notify9.warning(t("mergedIncomplete", { source: done.sourceUsername, survivor: done.survivorUsername }));
|
|
2965
|
+
navigate(routes.account(done.survivorId));
|
|
2966
|
+
}
|
|
2967
|
+
}
|
|
2968
|
+
const search = async (text) => (await request(`/accounts?${new URLSearchParams({ search: text })}`)).filter((a) => a.id !== account?.id && !a.mergedIntoId);
|
|
2969
|
+
return /* @__PURE__ */ jsxs17(Loading5, { when: !source.data, children: [
|
|
2970
|
+
/* @__PURE__ */ jsx17(
|
|
2971
|
+
PageHeader8,
|
|
2972
|
+
{
|
|
2973
|
+
breadcrumbs: [
|
|
2974
|
+
{ label: tn("accounts"), href: routes.accounts },
|
|
2975
|
+
{ label: account?.username, href: routes.account(account?.id ?? id) },
|
|
2976
|
+
{ label: t("pageTitle") }
|
|
2977
|
+
],
|
|
2978
|
+
title: t("pageTitle"),
|
|
2979
|
+
description: /* @__PURE__ */ jsx17(TextSlot4, { width: t("pageHint", { username: "" }).length + 16, children: t("pageHint", { username: account?.username ?? "" }) })
|
|
2980
|
+
}
|
|
2981
|
+
),
|
|
2982
|
+
/* @__PURE__ */ jsxs17(Stack13, { gap: "section", children: [
|
|
2983
|
+
account?.mergedIntoId ? /* @__PURE__ */ jsx17(InlineAlert13, { tone: "warning", children: t("alreadyMerged", { survivor: source.data?.mergedIntoUsername ?? "" }) }) : /* @__PURE__ */ jsx17(Panel13, { title: t("chooseTitle"), description: t("chooseHint"), children: /* @__PURE__ */ jsx17(Field6, { label: t("survivor"), children: /* @__PURE__ */ jsx17(
|
|
2984
|
+
SearchPicker,
|
|
2985
|
+
{
|
|
2986
|
+
"aria-label": t("survivor"),
|
|
2987
|
+
value: survivor,
|
|
2988
|
+
onChange: setSurvivor,
|
|
2989
|
+
search,
|
|
2990
|
+
known: [],
|
|
2991
|
+
getId: (a) => a.id,
|
|
2992
|
+
label: (a) => `${a.displayName} (@${a.username})`,
|
|
2993
|
+
renderOption: (a) => /* @__PURE__ */ jsxs17(Fragment9, { children: [
|
|
2994
|
+
/* @__PURE__ */ jsx17(Text16, { as: "span", textStyle: "body.sm", fontWeight: "medium", children: a.displayName }),
|
|
2995
|
+
" ",
|
|
2996
|
+
/* @__PURE__ */ jsxs17(Text16, { as: "span", textStyle: "caption", color: "fg.muted", dir: "ltr", children: [
|
|
2997
|
+
"@",
|
|
2998
|
+
a.username,
|
|
2999
|
+
" \xB7 ",
|
|
3000
|
+
a.directoryName,
|
|
3001
|
+
" \xB7 ",
|
|
3002
|
+
a.status
|
|
3003
|
+
] })
|
|
3004
|
+
] }),
|
|
3005
|
+
messages: { placeholder: t("searchPlaceholder"), searching: t("searching"), noMatches: t("noMatches"), noKnown: t("noMatches") }
|
|
3006
|
+
}
|
|
3007
|
+
) }) }),
|
|
3008
|
+
/* @__PURE__ */ jsx17(InlineAlert13, { tone: "danger", children: loading.error }),
|
|
3009
|
+
survivor && (preview || loading.busy) && /* @__PURE__ */ jsxs17(Loading5, { when: !preview, children: [
|
|
3010
|
+
/* @__PURE__ */ jsxs17(SimpleGrid4, { columns: { base: 1, md: 2 }, gap: "section", children: [
|
|
3011
|
+
/* @__PURE__ */ jsx17(Side, { title: t("sourceTitle"), hint: t("sourceHint"), account: preview?.source, routes }),
|
|
3012
|
+
/* @__PURE__ */ jsx17(Side, { title: t("survivorTitle"), hint: t("survivorHint"), account: preview?.survivor, routes })
|
|
3013
|
+
] }),
|
|
3014
|
+
/* @__PURE__ */ jsx17(Panel13, { title: t("previewTitle"), description: t("previewHint"), "data-testid": "merge-preview", children: preview ? /* @__PURE__ */ jsx17(Parts, { preview }) : /* @__PURE__ */ jsx17(PartsComing, {}) }),
|
|
3015
|
+
/* @__PURE__ */ jsx17(Panel13, { title: t("confirmTitle"), children: /* @__PURE__ */ jsxs17(Stack13, { gap: "field", maxW: "xl", children: [
|
|
3016
|
+
preview?.needsConfirmation && /* @__PURE__ */ jsxs17(Fragment9, { children: [
|
|
3017
|
+
/* @__PURE__ */ jsx17(InlineAlert13, { tone: "warning", children: preview.sameDirectory ? t("activeWarning", { username: account?.username ?? "" }) : t("activeOtherDirectory", { username: account?.username ?? "" }) }),
|
|
3018
|
+
/* @__PURE__ */ jsx17(Field6, { label: t("typeUsername", { username: account?.username ?? "" }), children: /* @__PURE__ */ jsx17(Input7, { value: confirm, onChange: (e) => setConfirm(e.target.value), autoComplete: "off", dir: "ltr" }) })
|
|
3019
|
+
] }),
|
|
3020
|
+
/* @__PURE__ */ jsx17(Text16, { textStyle: "body.sm", color: "fg.muted", children: t("noUndo") }),
|
|
3021
|
+
/* @__PURE__ */ jsx17(InlineAlert13, { tone: "danger", children: merging.error }),
|
|
3022
|
+
/* @__PURE__ */ jsxs17(HStack15, { gap: "2", children: [
|
|
3023
|
+
/* @__PURE__ */ jsx17(Button12, { variant: "primary", danger: true, onClick: merge, loading: merging.busy, disabled: !confirmed, children: t("mergeButton", {
|
|
3024
|
+
source: preview?.source.username ?? account?.username ?? "",
|
|
3025
|
+
survivor: preview?.survivor.username ?? survivor.username
|
|
3026
|
+
}) }),
|
|
3027
|
+
/* @__PURE__ */ jsx17(Button12, { onClick: () => navigate(routes.account(account?.id ?? id)), children: tc("cancel") })
|
|
3028
|
+
] })
|
|
3029
|
+
] }) })
|
|
3030
|
+
] })
|
|
3031
|
+
] })
|
|
3032
|
+
] });
|
|
3033
|
+
}
|
|
3034
|
+
function Side({ title, hint, account, routes }) {
|
|
3035
|
+
const tc = useGuardNs("common");
|
|
3036
|
+
const fmt = useFormatters8();
|
|
3037
|
+
return /* @__PURE__ */ jsx17(Panel13, { title, description: hint, children: /* @__PURE__ */ jsx17(
|
|
3038
|
+
PropertyList4,
|
|
3039
|
+
{
|
|
3040
|
+
items: [
|
|
3041
|
+
{ label: tc("username"), value: /* @__PURE__ */ jsx17(RecordKey5, { value: account?.username, href: account && routes.account(account.id) }) },
|
|
3042
|
+
{ label: tc("displayName"), value: account?.displayName },
|
|
3043
|
+
{ label: tc("email"), value: account && (account.email ?? EMPTY_VALUE5) },
|
|
3044
|
+
{ label: tc("directory"), value: account?.directoryName },
|
|
3045
|
+
{ label: tc("status"), value: account ? /* @__PURE__ */ jsx17(AccountStatusPill, { status: account.status }) : /* @__PURE__ */ jsx17(StatusPill11, {}) },
|
|
3046
|
+
{ label: tc("lastSignIn"), value: account && fmt.dateTime(account.lastLoginAt) }
|
|
3047
|
+
]
|
|
3048
|
+
}
|
|
3049
|
+
) });
|
|
3050
|
+
}
|
|
3051
|
+
function PartsComing() {
|
|
3052
|
+
return /* @__PURE__ */ jsx17(SimpleGrid4, { columns: { base: 1, md: 3 }, gap: "field", children: [0, 1, 2].map((i) => /* @__PURE__ */ jsxs17(Stack13, { gap: "1", children: [
|
|
3053
|
+
/* @__PURE__ */ jsx17(Text16, { fontWeight: "medium", children: /* @__PURE__ */ jsx17(TextBone2, { width: boneWidth(i, 8, 14) }) }),
|
|
3054
|
+
/* @__PURE__ */ jsx17(Text16, { textStyle: "body.sm", children: /* @__PURE__ */ jsx17(TextBone2, { width: boneWidth(i + 3, 12, 22) }) })
|
|
3055
|
+
] }, i)) });
|
|
3056
|
+
}
|
|
3057
|
+
function Parts({ preview }) {
|
|
3058
|
+
const t = useGuardNs("merge");
|
|
3059
|
+
const partLabel = usePartLabel();
|
|
3060
|
+
const moving = preview.parts.filter((p) => p.counts.length > 0 || p.error);
|
|
3061
|
+
if (moving.length === 0) return /* @__PURE__ */ jsx17(Text16, { color: "fg.muted", children: t("nothing") });
|
|
3062
|
+
return /* @__PURE__ */ jsx17(SimpleGrid4, { columns: { base: 1, md: 3 }, gap: "field", children: moving.map((p) => /* @__PURE__ */ jsxs17(Stack13, { gap: "1", children: [
|
|
3063
|
+
/* @__PURE__ */ jsx17(Text16, { fontWeight: "medium", children: partLabel(p.key, p.plugin) }),
|
|
3064
|
+
p.error ? /* @__PURE__ */ jsx17(InlineAlert13, { tone: "warning", children: t("pluginError", { error: p.error }) }) : /* @__PURE__ */ jsx17(CountList, { counts: p.counts })
|
|
3065
|
+
] }, p.key)) });
|
|
3066
|
+
}
|
|
3067
|
+
|
|
3068
|
+
// src/areas/guard/MySecondFactorsPanel.tsx
|
|
3069
|
+
import { useEffect as useEffect4, useState as useState13 } from "react";
|
|
3070
|
+
import { HStack as HStack17, Input as Input9, Stack as Stack15, Text as Text18 } from "@chakra-ui/react";
|
|
3071
|
+
import {
|
|
3072
|
+
AbpApiError,
|
|
3073
|
+
Button as Button14,
|
|
3074
|
+
createPasskey,
|
|
3075
|
+
DataTable as DataTable11,
|
|
3076
|
+
errorText as errorText10,
|
|
3077
|
+
Field as Field8,
|
|
3078
|
+
FormDialog,
|
|
3079
|
+
InlineAlert as InlineAlert15,
|
|
3080
|
+
notify as notify11,
|
|
3081
|
+
Panel as Panel14,
|
|
3082
|
+
passkeysSupported,
|
|
3083
|
+
StatusPill as StatusPill12,
|
|
3084
|
+
useApiQuery as useApiQuery11,
|
|
3085
|
+
useAreaRequest as useAreaRequest15,
|
|
3086
|
+
useConfirm as useConfirm5,
|
|
3087
|
+
useFormatters as useFormatters9
|
|
3088
|
+
} from "@abpjs/ui";
|
|
3089
|
+
|
|
3090
|
+
// src/areas/guard/SecondFactorParts.tsx
|
|
3091
|
+
import { useEffect as useEffect3, useState as useState12 } from "react";
|
|
3092
|
+
import { Box as Box4, chakra as chakra2, Grid as Grid3, HStack as HStack16, Image, Input as Input8, Stack as Stack14, Text as Text17 } from "@chakra-ui/react";
|
|
3093
|
+
import { AppLink as AppLink10, Button as Button13, errorText as errorText9, Field as Field7, InlineAlert as InlineAlert14, looksLikeCode, notify as notify10 } from "@abpjs/ui";
|
|
3094
|
+
import { jsx as jsx18, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3095
|
+
function groupedKey(secret) {
|
|
3096
|
+
return secret.replace(/(.{4})/g, "$1 ").trim();
|
|
3097
|
+
}
|
|
3098
|
+
function useSenderName() {
|
|
3099
|
+
const t = useGuardNs("secondFactor");
|
|
3100
|
+
return (sender) => {
|
|
3101
|
+
const key = `sender.${sender.method.replace(/\W/g, "_")}`;
|
|
3102
|
+
const own = t(key);
|
|
3103
|
+
if (own !== `secondFactor.${key}`) return own;
|
|
3104
|
+
return sender.method === "email" ? t("kinds.email") : sender.name;
|
|
3105
|
+
};
|
|
3106
|
+
}
|
|
3107
|
+
function CodeInput({
|
|
3108
|
+
recovery,
|
|
3109
|
+
value,
|
|
3110
|
+
onChange,
|
|
3111
|
+
autoFocus = true
|
|
3112
|
+
}) {
|
|
3113
|
+
return /* @__PURE__ */ jsx18(
|
|
3114
|
+
Input8,
|
|
3115
|
+
{
|
|
3116
|
+
value,
|
|
3117
|
+
onChange: (e) => onChange(e.target.value),
|
|
3118
|
+
autoFocus,
|
|
3119
|
+
autoComplete: "one-time-code",
|
|
3120
|
+
inputMode: recovery ? "text" : "numeric",
|
|
3121
|
+
maxLength: recovery ? 16 : 7,
|
|
3122
|
+
dir: "ltr",
|
|
3123
|
+
textAlign: "start",
|
|
3124
|
+
fontFamily: "mono",
|
|
3125
|
+
letterSpacing: recovery ? void 0 : "0.2em",
|
|
3126
|
+
width: recovery ? "48" : "32",
|
|
3127
|
+
"data-testid": "second-factor-code"
|
|
3128
|
+
}
|
|
3129
|
+
);
|
|
3130
|
+
}
|
|
3131
|
+
function AppSetup({ start, confirm, onDone, onCancel }) {
|
|
3132
|
+
const t = useGuardNs("secondFactor.setup");
|
|
3133
|
+
const [enrolment, setEnrolment] = useState12(null);
|
|
3134
|
+
const [code, setCode] = useState12("");
|
|
3135
|
+
const [error, setError] = useState12(null);
|
|
3136
|
+
const [busy, setBusy] = useState12(false);
|
|
3137
|
+
useEffect3(() => {
|
|
3138
|
+
let live = true;
|
|
3139
|
+
start().then(
|
|
3140
|
+
(e) => live && setEnrolment(e),
|
|
3141
|
+
(e) => live && setError(errorText9(e))
|
|
3142
|
+
);
|
|
3143
|
+
return () => {
|
|
3144
|
+
live = false;
|
|
3145
|
+
};
|
|
3146
|
+
}, []);
|
|
3147
|
+
async function verify(e) {
|
|
3148
|
+
e.preventDefault();
|
|
3149
|
+
setBusy(true);
|
|
3150
|
+
setError(null);
|
|
3151
|
+
try {
|
|
3152
|
+
const result = await confirm(code.replace(/\D/g, ""));
|
|
3153
|
+
if (result === false) {
|
|
3154
|
+
setError(t("wrongCode"));
|
|
3155
|
+
setCode("");
|
|
3156
|
+
return;
|
|
3157
|
+
}
|
|
3158
|
+
onDone(result);
|
|
3159
|
+
} catch (e2) {
|
|
3160
|
+
setError(errorText9(e2));
|
|
3161
|
+
} finally {
|
|
3162
|
+
setBusy(false);
|
|
3163
|
+
}
|
|
3164
|
+
}
|
|
3165
|
+
return /* @__PURE__ */ jsx18("form", { onSubmit: (e) => void verify(e), "data-testid": "app-setup", children: /* @__PURE__ */ jsxs18(Stack14, { gap: "field", children: [
|
|
3166
|
+
/* @__PURE__ */ jsx18(Text17, { color: "fg.muted", children: t("scan") }),
|
|
3167
|
+
/* @__PURE__ */ jsxs18(Grid3, { templateColumns: { base: "1fr", sm: "auto minmax(0, 1fr)" }, gap: "5", alignItems: "center", children: [
|
|
3168
|
+
/* @__PURE__ */ jsx18(Box4, { bg: "white", p: "2", rounded: "l2", borderWidth: "1px", w: "fit-content", children: enrolment ? /* @__PURE__ */ jsx18(Image, { src: enrolment.qr, alt: t("qrAlt"), width: "44", height: "44", "data-testid": "app-setup-qr" }) : /* @__PURE__ */ jsx18(Box4, { width: "44", height: "44" }) }),
|
|
3169
|
+
/* @__PURE__ */ jsxs18(Stack14, { gap: "2", minW: "0", children: [
|
|
3170
|
+
/* @__PURE__ */ jsx18(Text17, { textStyle: "body.sm", color: "fg.muted", children: t("cantScan") }),
|
|
3171
|
+
/* @__PURE__ */ jsx18(
|
|
3172
|
+
Box4,
|
|
3173
|
+
{
|
|
3174
|
+
as: "code",
|
|
3175
|
+
dir: "ltr",
|
|
3176
|
+
textAlign: "start",
|
|
3177
|
+
fontFamily: "mono",
|
|
3178
|
+
fontSize: "sm",
|
|
3179
|
+
bg: "bg.muted",
|
|
3180
|
+
p: "2",
|
|
3181
|
+
rounded: "l2",
|
|
3182
|
+
wordBreak: "break-all",
|
|
3183
|
+
"data-testid": "app-setup-secret",
|
|
3184
|
+
children: enrolment ? groupedKey(enrolment.secret) : " "
|
|
3185
|
+
}
|
|
3186
|
+
),
|
|
3187
|
+
enrolment && /* @__PURE__ */ jsx18(AppLink10, { href: enrolment.address, textStyle: "body.sm", children: t("onThisDevice") })
|
|
3188
|
+
] })
|
|
3189
|
+
] }),
|
|
3190
|
+
/* @__PURE__ */ jsx18(Field7, { label: t("code"), helperText: t("codeHint"), children: /* @__PURE__ */ jsx18(CodeInput, { value: code, onChange: setCode, autoFocus: false }) }),
|
|
3191
|
+
/* @__PURE__ */ jsx18(InlineAlert14, { tone: "danger", children: error }),
|
|
3192
|
+
/* @__PURE__ */ jsxs18(HStack16, { children: [
|
|
3193
|
+
/* @__PURE__ */ jsx18(Button13, { type: "submit", loading: busy, disabled: !enrolment || !looksLikeCode(code, false), children: t("verify") }),
|
|
3194
|
+
onCancel && /* @__PURE__ */ jsx18(Button13, { variant: "secondary", onClick: onCancel, disabled: busy, children: t("cancel") })
|
|
3195
|
+
] })
|
|
3196
|
+
] }) });
|
|
3197
|
+
}
|
|
3198
|
+
function RecoveryCodes({ codes, onSaved, savedLabel }) {
|
|
3199
|
+
const t = useGuardNs("secondFactor.recovery");
|
|
3200
|
+
function text() {
|
|
3201
|
+
const site = typeof window === "undefined" ? "" : window.location.host;
|
|
3202
|
+
return `${t("fileHeader", { site })}
|
|
3203
|
+
|
|
3204
|
+
${codes.join("\n")}
|
|
3205
|
+
`;
|
|
3206
|
+
}
|
|
3207
|
+
async function copy() {
|
|
3208
|
+
try {
|
|
3209
|
+
await navigator.clipboard.writeText(text());
|
|
3210
|
+
notify10.success(t("copied"));
|
|
3211
|
+
} catch {
|
|
3212
|
+
notify10.error(t("copyFailed"));
|
|
3213
|
+
}
|
|
3214
|
+
}
|
|
3215
|
+
function download() {
|
|
3216
|
+
const url = URL.createObjectURL(new Blob([text()], { type: "text/plain" }));
|
|
3217
|
+
const link = document.createElement("a");
|
|
3218
|
+
link.href = url;
|
|
3219
|
+
link.download = `${window.location.hostname}-recovery-codes.txt`;
|
|
3220
|
+
link.click();
|
|
3221
|
+
URL.revokeObjectURL(url);
|
|
3222
|
+
}
|
|
3223
|
+
return /* @__PURE__ */ jsxs18(Stack14, { gap: "field", "data-testid": "recovery-codes", children: [
|
|
3224
|
+
/* @__PURE__ */ jsx18(InlineAlert14, { tone: "warning", children: t("hint") }),
|
|
3225
|
+
/* @__PURE__ */ jsx18(Grid3, { templateColumns: "repeat(2, max-content)", columnGap: "6", rowGap: "1.5", dir: "ltr", bg: "bg.muted", p: "3", rounded: "l2", w: "fit-content", children: codes.map((c) => /* @__PURE__ */ jsx18(chakra2.code, { fontFamily: "mono", fontSize: "sm", children: c }, c)) }),
|
|
3226
|
+
/* @__PURE__ */ jsxs18(HStack16, { wrap: "wrap", children: [
|
|
3227
|
+
/* @__PURE__ */ jsx18(Button13, { variant: "secondary", onClick: () => void copy(), children: t("copy") }),
|
|
3228
|
+
/* @__PURE__ */ jsx18(Button13, { variant: "secondary", onClick: download, children: t("download") }),
|
|
3229
|
+
/* @__PURE__ */ jsx18(Button13, { onClick: onSaved, "data-testid": "recovery-codes-saved", children: savedLabel ?? t("saved") })
|
|
3230
|
+
] })
|
|
3231
|
+
] });
|
|
3232
|
+
}
|
|
3233
|
+
|
|
3234
|
+
// src/areas/guard/MySecondFactorsPanel.tsx
|
|
3235
|
+
import { Fragment as Fragment10, jsx as jsx19, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3236
|
+
function MySecondFactorsPanel({ setUpNow = false, onSetUpChosen, onChange }) {
|
|
3237
|
+
const t = useGuardNs("secondFactor");
|
|
3238
|
+
const fmt = useFormatters9();
|
|
3239
|
+
const confirm = useConfirm5();
|
|
3240
|
+
const request = useAreaRequest15("guard");
|
|
3241
|
+
const mine = useApiQuery11("guard", "/me/second-factors");
|
|
3242
|
+
const nameOf = useSenderName();
|
|
3243
|
+
const [choice, setChoice] = useState13(null);
|
|
3244
|
+
const settingUp = choice ?? setUpNow;
|
|
3245
|
+
const [codes, setCodes] = useState13(null);
|
|
3246
|
+
const [error, setError] = useState13(null);
|
|
3247
|
+
const canPasskey = passkeysSupported();
|
|
3248
|
+
const [addingPasskey, setAddingPasskey] = useState13(false);
|
|
3249
|
+
const [passkeyName, setPasskeyName] = useState13("");
|
|
3250
|
+
const [busy, setBusy] = useState13(false);
|
|
3251
|
+
const [renaming, setRenaming] = useState13(null);
|
|
3252
|
+
const [newName, setNewName] = useState13("");
|
|
3253
|
+
const data = mine.data;
|
|
3254
|
+
const factors = data?.factors ?? [];
|
|
3255
|
+
useEffect4(() => {
|
|
3256
|
+
if (setUpNow) document.getElementById("second-factor")?.scrollIntoView({ block: "start" });
|
|
3257
|
+
}, [setUpNow]);
|
|
3258
|
+
function setSettingUp(next) {
|
|
3259
|
+
onSetUpChosen?.(next);
|
|
3260
|
+
setChoice(next);
|
|
3261
|
+
}
|
|
3262
|
+
async function remove(factor) {
|
|
3263
|
+
const passkey = factor.kind === "passkey";
|
|
3264
|
+
const yes = await confirm({
|
|
3265
|
+
title: passkey ? t("removePasskeyTitle") : t("removeTitle"),
|
|
3266
|
+
description: passkey ? t("removePasskeyHint") : t("removeHint"),
|
|
3267
|
+
confirmLabel: t("remove"),
|
|
3268
|
+
danger: true
|
|
3269
|
+
});
|
|
3270
|
+
if (!yes) return;
|
|
3271
|
+
setError(null);
|
|
3272
|
+
try {
|
|
3273
|
+
await request(`/me/second-factors/${factor.id}`, { method: "DELETE" });
|
|
3274
|
+
notify11.success(passkey ? t("passkeyRemoved") : t("removed"));
|
|
3275
|
+
await mine.reload();
|
|
3276
|
+
onChange?.();
|
|
3277
|
+
} catch (e) {
|
|
3278
|
+
setError(errorText10(e));
|
|
3279
|
+
}
|
|
3280
|
+
}
|
|
3281
|
+
async function renew() {
|
|
3282
|
+
if (!await confirm({ title: t("renewTitle"), description: t("renewHint"), confirmLabel: t("renew") })) return;
|
|
3283
|
+
setError(null);
|
|
3284
|
+
try {
|
|
3285
|
+
setCodes((await request("/me/second-factors/recovery-codes", { method: "POST" })).recoveryCodes);
|
|
3286
|
+
await mine.reload();
|
|
3287
|
+
} catch (e) {
|
|
3288
|
+
setError(errorText10(e));
|
|
3289
|
+
}
|
|
3290
|
+
}
|
|
3291
|
+
async function addPasskey() {
|
|
3292
|
+
setBusy(true);
|
|
3293
|
+
setError(null);
|
|
3294
|
+
try {
|
|
3295
|
+
const options = await request("/me/passkeys/options", { method: "POST" });
|
|
3296
|
+
const credential = await createPasskey(options);
|
|
3297
|
+
if (!credential) {
|
|
3298
|
+
setError(t("passkeyCancelled"));
|
|
3299
|
+
return;
|
|
3300
|
+
}
|
|
3301
|
+
const added = await request("/me/passkeys", {
|
|
3302
|
+
method: "POST",
|
|
3303
|
+
body: { name: passkeyName.trim() || t("passkeyNameDefault"), credential }
|
|
3304
|
+
});
|
|
3305
|
+
setAddingPasskey(false);
|
|
3306
|
+
notify11.success(t("passkeyAdded"));
|
|
3307
|
+
if (added.recoveryCodes?.length) setCodes(added.recoveryCodes);
|
|
3308
|
+
await mine.reload();
|
|
3309
|
+
onChange?.();
|
|
3310
|
+
} catch (e) {
|
|
3311
|
+
setError(errorText10(e));
|
|
3312
|
+
} finally {
|
|
3313
|
+
setBusy(false);
|
|
3314
|
+
}
|
|
3315
|
+
}
|
|
3316
|
+
async function rename() {
|
|
3317
|
+
if (!renaming) return;
|
|
3318
|
+
await request(`/me/passkeys/${renaming.id}`, { method: "PUT", body: { name: newName.trim() } });
|
|
3319
|
+
setRenaming(null);
|
|
3320
|
+
await mine.reload();
|
|
3321
|
+
}
|
|
3322
|
+
async function confirmCode(code) {
|
|
3323
|
+
try {
|
|
3324
|
+
return (await request("/me/second-factors/app/confirm", { method: "POST", body: { code } })).recoveryCodes;
|
|
3325
|
+
} catch (e) {
|
|
3326
|
+
if (e instanceof AbpApiError && e.code === "second_factor_failed") return false;
|
|
3327
|
+
throw e;
|
|
3328
|
+
}
|
|
3329
|
+
}
|
|
3330
|
+
const hasApp = factors.some((f) => f.kind === "app");
|
|
3331
|
+
const actions = !settingUp && !addingPasskey && !codes && data && !data.disabled && /* @__PURE__ */ jsxs19(HStack17, { gap: "2", wrap: "wrap", children: [
|
|
3332
|
+
canPasskey && /* @__PURE__ */ jsx19(
|
|
3333
|
+
Button14,
|
|
3334
|
+
{
|
|
3335
|
+
size: "sm",
|
|
3336
|
+
variant: factors.length ? "secondary" : "primary",
|
|
3337
|
+
onClick: () => {
|
|
3338
|
+
setPasskeyName(t("passkeyNameDefault"));
|
|
3339
|
+
setError(null);
|
|
3340
|
+
setAddingPasskey(true);
|
|
3341
|
+
},
|
|
3342
|
+
"data-testid": "passkey-add",
|
|
3343
|
+
children: t("addPasskey")
|
|
3344
|
+
}
|
|
3345
|
+
),
|
|
3346
|
+
/* @__PURE__ */ jsx19(Button14, { size: "sm", variant: factors.length || canPasskey ? "secondary" : "primary", onClick: () => setSettingUp(true), "data-testid": "second-factor-set-up", children: hasApp ? t("addAnother") : t("setUp") })
|
|
3347
|
+
] });
|
|
3348
|
+
return /* @__PURE__ */ jsxs19(Panel14, { id: "second-factor", title: t("title"), description: t("panelHint"), actions, "data-testid": "second-factor", children: [
|
|
3349
|
+
/* @__PURE__ */ jsxs19(Stack15, { gap: "field", children: [
|
|
3350
|
+
/* @__PURE__ */ jsx19(InlineAlert15, { tone: "danger", children: mine.error ?? error }),
|
|
3351
|
+
data?.disabled && /* @__PURE__ */ jsx19(InlineAlert15, { tone: "neutral", children: t("disabled") }),
|
|
3352
|
+
data && /* @__PURE__ */ jsxs19(HStack17, { gap: "2", wrap: "wrap", children: [
|
|
3353
|
+
factors.length > 0 && !data.disabled ? /* @__PURE__ */ jsx19(StatusPill12, { tone: "success", children: t("on") }) : /* @__PURE__ */ jsx19(StatusPill12, { children: t("off") }),
|
|
3354
|
+
/* @__PURE__ */ jsx19(Text18, { color: "fg.muted", textStyle: "body.sm", "data-testid": "second-factor-mode", children: t(`modeHint.${data.mode}`) })
|
|
3355
|
+
] }),
|
|
3356
|
+
data?.senders && data.senders.length > 0 && /* @__PURE__ */ jsx19(Text18, { color: "fg.muted", textStyle: "body.sm", "data-testid": "second-factor-senders", children: t("alsoBy", { list: data.senders.map((s) => `${nameOf(s)} (${s.to})`).join(", ") }) }),
|
|
3357
|
+
settingUp && /* @__PURE__ */ jsx19(
|
|
3358
|
+
AppSetup,
|
|
3359
|
+
{
|
|
3360
|
+
start: () => request("/me/second-factors/app", { method: "POST" }),
|
|
3361
|
+
confirm: confirmCode,
|
|
3362
|
+
onCancel: () => setSettingUp(false),
|
|
3363
|
+
onDone: (made) => {
|
|
3364
|
+
setSettingUp(false);
|
|
3365
|
+
notify11.success(t("setup.done"));
|
|
3366
|
+
setCodes(made);
|
|
3367
|
+
void mine.reload();
|
|
3368
|
+
onChange?.();
|
|
3369
|
+
}
|
|
3370
|
+
}
|
|
3371
|
+
),
|
|
3372
|
+
addingPasskey && /* @__PURE__ */ jsx19(
|
|
3373
|
+
"form",
|
|
3374
|
+
{
|
|
3375
|
+
onSubmit: (e) => {
|
|
3376
|
+
e.preventDefault();
|
|
3377
|
+
void addPasskey();
|
|
3378
|
+
},
|
|
3379
|
+
"data-testid": "passkey-add-form",
|
|
3380
|
+
children: /* @__PURE__ */ jsxs19(Stack15, { gap: "field", maxW: "md", children: [
|
|
3381
|
+
/* @__PURE__ */ jsx19(Text18, { color: "fg.muted", textStyle: "body.sm", children: t("passkeyHint") }),
|
|
3382
|
+
/* @__PURE__ */ jsx19(Field8, { label: t("passkeyName"), children: /* @__PURE__ */ jsx19(Input9, { value: passkeyName, maxLength: 64, autoFocus: true, onChange: (e) => setPasskeyName(e.target.value), "data-testid": "passkey-name" }) }),
|
|
3383
|
+
/* @__PURE__ */ jsxs19(HStack17, { children: [
|
|
3384
|
+
/* @__PURE__ */ jsx19(Button14, { type: "submit", loading: busy, "data-testid": "passkey-create", children: t("passkeyCreate") }),
|
|
3385
|
+
/* @__PURE__ */ jsx19(Button14, { variant: "secondary", onClick: () => setAddingPasskey(false), disabled: busy, children: t("cancel") })
|
|
3386
|
+
] })
|
|
3387
|
+
] })
|
|
3388
|
+
}
|
|
3389
|
+
),
|
|
3390
|
+
codes && /* @__PURE__ */ jsx19(RecoveryCodes, { codes, onSaved: () => setCodes(null) }),
|
|
3391
|
+
!settingUp && !addingPasskey && !codes && /* @__PURE__ */ jsxs19(Fragment10, { children: [
|
|
3392
|
+
/* @__PURE__ */ jsx19(
|
|
3393
|
+
DataTable11,
|
|
3394
|
+
{
|
|
3395
|
+
"aria-label": t("title"),
|
|
3396
|
+
size: "sm",
|
|
3397
|
+
rows: data?.factors,
|
|
3398
|
+
loading: mine.loading,
|
|
3399
|
+
skeletonRows: 1,
|
|
3400
|
+
getRowId: (f) => f.id,
|
|
3401
|
+
empty: t("none"),
|
|
3402
|
+
columns: [
|
|
3403
|
+
{
|
|
3404
|
+
id: "kind",
|
|
3405
|
+
header: t("title"),
|
|
3406
|
+
cell: (f) => f.kind === "passkey" ? /* @__PURE__ */ jsxs19(Stack15, { gap: "0", children: [
|
|
3407
|
+
/* @__PURE__ */ jsx19(Text18, { fontWeight: "medium", children: f.name || t("kinds.passkey") }),
|
|
3408
|
+
/* @__PURE__ */ jsx19(Text18, { textStyle: "caption", color: "fg.muted", children: f.provider ? `${t("kinds.passkey")} \xB7 ${f.provider}` : t("kinds.passkey") })
|
|
3409
|
+
] }) : /* @__PURE__ */ jsx19(Text18, { fontWeight: "medium", children: t(`kinds.${f.kind}`) })
|
|
3410
|
+
},
|
|
3411
|
+
{ id: "added", header: t("added"), nowrap: true, cell: (f) => fmt.dateTime(f.createdAt) },
|
|
3412
|
+
{ id: "used", header: t("lastUsed"), nowrap: true, cell: (f) => f.lastUsedAt ? fmt.dateTime(f.lastUsedAt) : t("never") },
|
|
3413
|
+
{
|
|
3414
|
+
id: "remove",
|
|
3415
|
+
header: "",
|
|
3416
|
+
cell: (f) => /* @__PURE__ */ jsxs19(HStack17, { gap: "2", justify: "flex-end", children: [
|
|
3417
|
+
f.kind === "passkey" && /* @__PURE__ */ jsx19(
|
|
3418
|
+
Button14,
|
|
3419
|
+
{
|
|
3420
|
+
size: "sm",
|
|
3421
|
+
variant: "ghost",
|
|
3422
|
+
onClick: () => {
|
|
3423
|
+
setNewName(f.name ?? "");
|
|
3424
|
+
setRenaming(f);
|
|
3425
|
+
},
|
|
3426
|
+
children: t("rename")
|
|
3427
|
+
}
|
|
3428
|
+
),
|
|
3429
|
+
/* @__PURE__ */ jsx19(Button14, { size: "sm", variant: "secondary", onClick: () => void remove(f), children: t("remove") })
|
|
3430
|
+
] })
|
|
3431
|
+
}
|
|
3432
|
+
]
|
|
3433
|
+
}
|
|
3434
|
+
),
|
|
3435
|
+
factors.length > 0 && /* @__PURE__ */ jsxs19(HStack17, { justify: "space-between", wrap: "wrap", gap: "2", children: [
|
|
3436
|
+
/* @__PURE__ */ jsx19(Text18, { textStyle: "body.sm", color: "fg.muted", "data-testid": "recovery-left", children: t("recoveryLeft", { count: num(data?.recoveryCodesLeft ?? 0) }) }),
|
|
3437
|
+
/* @__PURE__ */ jsx19(Button14, { size: "sm", variant: "secondary", onClick: () => void renew(), children: t("renew") })
|
|
3438
|
+
] })
|
|
3439
|
+
] })
|
|
3440
|
+
] }),
|
|
3441
|
+
/* @__PURE__ */ jsx19(
|
|
3442
|
+
FormDialog,
|
|
3443
|
+
{
|
|
3444
|
+
open: renaming != null,
|
|
3445
|
+
onOpenChange: (open) => !open && setRenaming(null),
|
|
3446
|
+
title: t("renameTitle"),
|
|
3447
|
+
submitLabel: t("save"),
|
|
3448
|
+
onSubmit: rename,
|
|
3449
|
+
submitDisabled: !newName.trim(),
|
|
3450
|
+
children: /* @__PURE__ */ jsx19(Field8, { label: t("passkeyName"), required: true, children: /* @__PURE__ */ jsx19(Input9, { value: newName, maxLength: 64, required: true, onChange: (e) => setNewName(e.target.value), "data-testid": "passkey-rename" }) })
|
|
3451
|
+
}
|
|
3452
|
+
)
|
|
3453
|
+
] });
|
|
3454
|
+
}
|
|
3455
|
+
|
|
3456
|
+
// src/areas/guard/SignUpScreen.tsx
|
|
3457
|
+
import { useEffect as useEffect5, useState as useState14 } from "react";
|
|
3458
|
+
import { HStack as HStack18, Input as Input10, Stack as Stack16 } from "@chakra-ui/react";
|
|
3459
|
+
import { Button as Button15, Field as Field9, InlineAlert as InlineAlert16, notify as notify12, PageHeader as PageHeader9, Panel as Panel15, SelectField as SelectField4, SwitchField, useApiAction as useApiAction10, useApiQuery as useApiQuery12, useAreaRequest as useAreaRequest16 } from "@abpjs/ui";
|
|
3460
|
+
import { splitList as splitList3 } from "@abpjs/ui/rules";
|
|
3461
|
+
import { jsx as jsx20, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
3462
|
+
function SignUpScreen() {
|
|
3463
|
+
const t = useGuardNs("signUpSettings");
|
|
3464
|
+
const request = useAreaRequest16("guard");
|
|
3465
|
+
const settings = useApiQuery12("guard", "/signup/settings");
|
|
3466
|
+
const directories = useApiQuery12("guard", "/directories");
|
|
3467
|
+
const action = useApiAction10();
|
|
3468
|
+
const [form, setForm] = useState14({ enabled: false, directoryId: "", domains: "" });
|
|
3469
|
+
useEffect5(() => {
|
|
3470
|
+
const s = settings.data;
|
|
3471
|
+
if (s) setForm({ enabled: s.enabled, directoryId: s.directoryId ?? "", domains: s.emailDomains.join(", ") });
|
|
3472
|
+
}, [settings.data]);
|
|
3473
|
+
if (settings.error) return /* @__PURE__ */ jsx20(InlineAlert16, { tone: "danger", children: settings.error });
|
|
3474
|
+
const internal = (directories.data ?? []).filter((d) => d.type === "internal");
|
|
3475
|
+
const chosen = internal.find((d) => d.id === form.directoryId);
|
|
3476
|
+
async function save() {
|
|
3477
|
+
const saved = await action.run(
|
|
3478
|
+
() => request("/signup/settings", {
|
|
3479
|
+
method: "PUT",
|
|
3480
|
+
body: { enabled: form.enabled, directoryId: form.directoryId || null, emailDomains: splitList3(form.domains) }
|
|
3481
|
+
})
|
|
3482
|
+
);
|
|
3483
|
+
if (saved) {
|
|
3484
|
+
settings.setData(saved);
|
|
3485
|
+
notify12.success(t("saved"));
|
|
3486
|
+
}
|
|
3487
|
+
}
|
|
3488
|
+
return /* @__PURE__ */ jsxs20(Stack16, { gap: "section", children: [
|
|
3489
|
+
/* @__PURE__ */ jsx20(PageHeader9, { title: t("title"), description: t("subtitle") }),
|
|
3490
|
+
/* @__PURE__ */ jsx20(Panel15, { "data-testid": "signup-settings", loading: !settings.data, children: /* @__PURE__ */ jsxs20(Stack16, { gap: "field", maxW: "2xl", children: [
|
|
3491
|
+
/* @__PURE__ */ jsx20(SwitchField, { label: t("enabled"), checked: form.enabled, onCheckedChange: (c) => setForm({ ...form, enabled: c }) }),
|
|
3492
|
+
/* @__PURE__ */ jsx20(Field9, { label: t("directory"), helperText: t("directoryHint"), children: /* @__PURE__ */ jsx20(
|
|
3493
|
+
SelectField4,
|
|
3494
|
+
{
|
|
3495
|
+
value: form.directoryId,
|
|
3496
|
+
onChange: (e) => setForm({ ...form, directoryId: e.target.value }),
|
|
3497
|
+
options: [{ value: "", label: t("chooseDirectory") }, ...internal.map((d) => ({ value: d.id, label: d.name }))]
|
|
3498
|
+
}
|
|
3499
|
+
) }),
|
|
3500
|
+
/* @__PURE__ */ jsx20(Field9, { label: t("domains"), helperText: t("domainsHint"), children: /* @__PURE__ */ jsx20(Input10, { value: form.domains, onChange: (e) => setForm({ ...form, domains: e.target.value }), dir: "ltr", placeholder: "acme.com, example.org" }) }),
|
|
3501
|
+
chosen && /* @__PURE__ */ jsx20(InlineAlert16, { tone: "info", children: t("grantHint", { group: `${chosen.name} (everyone)` }) }),
|
|
3502
|
+
/* @__PURE__ */ jsx20(InlineAlert16, { tone: "danger", children: action.error }),
|
|
3503
|
+
/* @__PURE__ */ jsx20(HStack18, { children: /* @__PURE__ */ jsx20(Button15, { onClick: () => void save(), loading: action.busy, children: t("save") }) })
|
|
3504
|
+
] }) })
|
|
3505
|
+
] });
|
|
3506
|
+
}
|
|
3507
|
+
|
|
3508
|
+
// src/areas/guard/StrongFactorBanner.tsx
|
|
3509
|
+
import { Box as Box5 } from "@chakra-ui/react";
|
|
3510
|
+
import { AppLink as AppLink11, InlineAlert as InlineAlert17, useFormatters as useFormatters10 } from "@abpjs/ui";
|
|
3511
|
+
import { jsx as jsx21, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
3512
|
+
function StrongFactorBanner({ strongFactor, setUpHref }) {
|
|
3513
|
+
const t = useGuardTexts();
|
|
3514
|
+
const fmt = useFormatters10();
|
|
3515
|
+
if (!strongFactor || strongFactor.has || !strongFactor.requiredBy) return null;
|
|
3516
|
+
return /* @__PURE__ */ jsx21(Box5, { mb: "section", "data-testid": "strong-factor-banner", children: /* @__PURE__ */ jsxs21(InlineAlert17, { tone: strongFactor.overdue ? "danger" : "warning", title: t("secondFactor.required.title"), children: [
|
|
3517
|
+
t(strongFactor.overdue ? "secondFactor.required.overdue" : "secondFactor.required.by", { date: fmt.dateTime(strongFactor.requiredBy) }),
|
|
3518
|
+
" ",
|
|
3519
|
+
/* @__PURE__ */ jsx21(AppLink11, { href: setUpHref, children: t("secondFactor.required.setUp") })
|
|
3520
|
+
] }) });
|
|
3521
|
+
}
|
|
3522
|
+
export {
|
|
3523
|
+
AccountEmailsPanel,
|
|
3524
|
+
AccountNameEditor,
|
|
3525
|
+
AccountScreen,
|
|
3526
|
+
AccountSecondFactorPanel,
|
|
3527
|
+
AccountStatusPill,
|
|
3528
|
+
AccountsScreen,
|
|
3529
|
+
AnonymousScreen,
|
|
3530
|
+
AppSetup,
|
|
3531
|
+
CodeInput,
|
|
3532
|
+
CountList,
|
|
3533
|
+
DirectoriesScreen,
|
|
3534
|
+
DirectoryForm,
|
|
3535
|
+
DirectoryScreen,
|
|
3536
|
+
DirectoryWarnings,
|
|
3537
|
+
DuplicatesPanel,
|
|
3538
|
+
FlagPill,
|
|
3539
|
+
GroupScreen,
|
|
3540
|
+
GroupTree,
|
|
3541
|
+
GroupTwoFactorPanel,
|
|
3542
|
+
GroupsScreen,
|
|
3543
|
+
MergeScreen,
|
|
3544
|
+
MergesPanel,
|
|
3545
|
+
MySecondFactorsPanel,
|
|
3546
|
+
PassFail,
|
|
3547
|
+
PluginStatePill,
|
|
3548
|
+
RecoveryCodes,
|
|
3549
|
+
SignUpScreen,
|
|
3550
|
+
StrongFactorBanner,
|
|
3551
|
+
SyncResultPill,
|
|
3552
|
+
SyncStatus,
|
|
3553
|
+
TWO_FACTOR_MODES,
|
|
3554
|
+
groupedKey,
|
|
3555
|
+
guardRoutes,
|
|
3556
|
+
num,
|
|
3557
|
+
useAccountCan,
|
|
3558
|
+
useCountLabel,
|
|
3559
|
+
useGuardNs,
|
|
3560
|
+
useGuardTexts,
|
|
3561
|
+
usePartLabel,
|
|
3562
|
+
useSenderName,
|
|
3563
|
+
useWrittenName,
|
|
3564
|
+
withParts
|
|
3565
|
+
};
|
|
3566
|
+
//# sourceMappingURL=guard.js.map
|