@arcblock/ux 2.11.12 → 2.11.14

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.
@@ -26,6 +26,7 @@ declare const colors: {
26
26
  lineBorderStrong: string;
27
27
  lineBorderBase: string;
28
28
  borderBase: string;
29
+ dividerColor: string;
29
30
  buttonsButtonNeutral: string;
30
31
  buttonsButtonNeutralHover: string;
31
32
  buttonsButtonInverted: string;
@@ -30,6 +30,7 @@ const colors = {
30
30
  lineBorderStrong: 'rgba(18, 22, 24, 0.12)',
31
31
  lineBorderBase: 'rgba(18, 22, 24, 0.06)',
32
32
  borderBase: 'rgba(18, 22, 24, 0.06)',
33
+ dividerColor: 'rgba(239, 241, 245, 1)',
33
34
  // button
34
35
  buttonsButtonNeutral: 'rgba(255, 255, 255, 1)',
35
36
  buttonsButtonNeutralHover: 'rgba(243, 244, 246, 1)',
@@ -0,0 +1,7 @@
1
+ import { BoxProps } from '@mui/material';
2
+ import { Locale, Session } from '../../type';
3
+ export interface DidSpaceProps extends BoxProps {
4
+ session: Session;
5
+ locale: Locale;
6
+ }
7
+ export default function DidSpace({ session, locale, ...rest }: DidSpaceProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,103 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import React from "react";
3
+ import { useMemoizedFn } from 'ahooks';
4
+ import { MenuItem, Divider } from '@mui/material';
5
+ import { Icon } from '@iconify/react';
6
+ import LensIcon from '@iconify-icons/material-symbols/lens';
7
+ import { temp as colors } from '../../Colors';
8
+ import { translate } from '../../Locale/util';
9
+ import { translations } from '../libs/translation';
10
+ var DIDSpaceIcon = function DIDSpaceIcon(props) {
11
+ return /*#__PURE__*/_jsxs("svg", {
12
+ ...props,
13
+ children: [/*#__PURE__*/_jsx("path", {
14
+ fillRule: "evenodd",
15
+ clipRule: "evenodd",
16
+ d: "M5.2 7.4C3.6536 7.4 2.4 8.6536 2.4 10.2V10.4754H0V10.2C0 7.32812 2.32812 5 5.2 5H39.6378C42.5096 5 44.8378 7.32812 44.8378 10.2V32.0303C44.8378 34.9022 42.5096 37.2303 39.6378 37.2303H5.2C2.32812 37.2303 0 34.9022 0 32.0303V31.8928H2.4V32.0303C2.4 33.5767 3.6536 34.8303 5.2 34.8303H39.6378C41.1842 34.8303 42.4378 33.5767 42.4378 32.0303V10.2C42.4378 8.6536 41.1842 7.4 39.6378 7.4H5.2ZM25.2352 13.5986C26.718 13.5986 28.0023 13.9107 29.088 14.5349C30.1869 15.1448 31.0409 16.0102 31.6499 17.1308C32.2589 18.2515 32.5635 19.5708 32.5635 21.0886C32.5635 22.5923 32.2589 23.8974 31.6499 25.0039C31.0409 26.1104 30.1869 26.9686 29.088 27.5786C28.0023 28.1886 26.718 28.4935 25.2352 28.4935H20.0517V13.5986H25.2352ZM25.1557 26.0891C26.6518 26.0891 27.8037 25.6493 28.6113 24.7698C29.419 23.8761 29.8228 22.6491 29.8228 21.0886C29.8228 19.514 29.419 18.2728 28.6113 17.3649C27.8037 16.457 26.6518 16.0031 25.1557 16.0031H22.7328V26.0891H25.1557ZM17.3404 13.5986H14.6593V28.4935H17.3404V13.5986ZM5.29778 13.5986C6.78066 13.5986 8.06493 13.9107 9.15061 14.5349C10.2495 15.1449 11.1035 16.0102 11.7125 17.1309C12.3216 18.2515 12.6261 19.5708 12.6261 21.0887C12.6261 22.5923 12.3216 23.8974 11.7125 25.0039C11.1035 26.1104 10.2495 26.9686 9.15061 27.5786C8.06493 28.1886 6.78066 28.4936 5.29778 28.4936H0.114344V13.5986H5.29778ZM5.21834 26.0891C6.71446 26.0891 7.86633 25.6493 8.67397 24.7698C9.4816 23.8761 9.88542 22.6491 9.88542 21.0887C9.88542 19.5141 9.4816 18.2728 8.67397 17.3649C7.86633 16.457 6.71446 16.0031 5.21834 16.0031H2.79543V26.0891H5.21834ZM38.1144 17.6999C38.1144 18.5284 37.4428 19.1999 36.6144 19.1999C35.786 19.1999 35.1144 18.5284 35.1144 17.6999C35.1144 16.8715 35.786 16.1999 36.6144 16.1999C37.4428 16.1999 38.1144 16.8715 38.1144 17.6999ZM38.1144 24.6999C38.1144 25.5284 37.4428 26.1999 36.6144 26.1999C35.786 26.1999 35.1144 25.5284 35.1144 24.6999C35.1144 23.8715 35.786 23.1999 36.6144 23.1999C37.4428 23.1999 38.1144 23.8715 38.1144 24.6999Z",
17
+ fill: "#4598FA"
18
+ }), /*#__PURE__*/_jsx("path", {
19
+ d: "M62.8644 14.9281C62.7878 15.0608 62.7075 15.1584 62.6232 15.2209C62.539 15.2833 62.4318 15.3146 62.3017 15.3146C62.1639 15.3146 62.007 15.2521 61.8309 15.1272C61.6548 14.9944 61.4328 14.85 61.1648 14.6938C60.9045 14.5298 60.5906 14.3854 60.2232 14.2605C59.8557 14.1277 59.4155 14.0613 58.9026 14.0613C58.4202 14.0613 57.9954 14.1277 57.6279 14.2605C57.2681 14.3854 56.9657 14.5611 56.7207 14.7875C56.4757 15.0061 56.2881 15.2677 56.158 15.5722C56.0355 15.8689 55.9742 16.193 55.9742 16.5443C55.9742 16.9972 56.0853 17.372 56.3073 17.6687C56.5369 17.9654 56.8355 18.2192 57.203 18.43C57.5705 18.6408 57.9877 18.8243 58.4547 18.9805C58.9217 19.1366 59.4002 19.3006 59.8901 19.4724C60.3801 19.6364 60.8586 19.8277 61.3256 20.0463C61.7926 20.2649 62.2098 20.5421 62.5773 20.8779C62.9448 21.2058 63.2395 21.6118 63.4615 22.0959C63.6912 22.5722 63.806 23.1578 63.806 23.8528C63.806 24.5945 63.6797 25.2895 63.4271 25.9375C63.1821 26.5856 62.8223 27.1517 62.3476 27.6358C61.873 28.1199 61.2873 28.5025 60.5906 28.7836C59.9016 29.0569 59.1169 29.1935 58.2365 29.1935C57.7083 29.1935 57.1953 29.1389 56.6977 29.0296C56.2001 28.9281 55.7293 28.7836 55.2852 28.5962C54.8412 28.401 54.424 28.1707 54.0335 27.9052C53.6507 27.6319 53.3062 27.3274 53 26.9916L53.7005 25.797C53.7694 25.7033 53.8498 25.6252 53.9417 25.5627C54.0412 25.5003 54.1522 25.469 54.2747 25.469C54.4354 25.469 54.6192 25.5549 54.8259 25.7267C55.0402 25.8985 55.3005 26.0898 55.6068 26.3006C55.9207 26.5036 56.292 26.691 56.7207 26.8628C57.1571 27.0346 57.6853 27.1205 58.3054 27.1205C58.8107 27.1205 59.2624 27.0541 59.6605 26.9214C60.0586 26.7808 60.3916 26.5856 60.6595 26.3357C60.9352 26.0781 61.1457 25.7697 61.2911 25.4105C61.4366 25.0513 61.5093 24.6531 61.5093 24.2158C61.5093 23.7239 61.3983 23.3218 61.1763 23.0095C60.9543 22.6972 60.6595 22.4356 60.2921 22.2248C59.9246 22.0139 59.5074 21.8344 59.0404 21.686C58.5734 21.5376 58.0949 21.3854 57.6049 21.2292C57.1149 21.0653 56.6365 20.8779 56.1695 20.667C55.7025 20.4562 55.2852 20.1829 54.9178 19.8472C54.5503 19.5036 54.2555 19.0781 54.0335 18.5706C53.8115 18.0552 53.7005 17.4228 53.7005 16.6732C53.7005 16.0719 53.8153 15.4902 54.045 14.9281C54.2747 14.3659 54.6077 13.87 55.0441 13.4406C55.4881 13.0033 56.0317 12.6559 56.6747 12.3982C57.3178 12.1327 58.0528 12 58.8796 12C59.8059 12 60.6557 12.1523 61.4289 12.4568C62.2098 12.7535 62.8874 13.1829 63.4615 13.7451L62.8644 14.9281Z",
20
+ fill: "#25292F"
21
+ }), /*#__PURE__*/_jsx("path", {
22
+ d: "M68.3582 26.0781C68.7257 26.57 69.12 26.9136 69.541 27.1088C69.9697 27.304 70.4482 27.4016 70.9765 27.4016C72.0023 27.4016 72.7947 27.0268 73.3536 26.2772C73.9201 25.5198 74.2033 24.4189 74.2033 22.9743C74.2033 22.217 74.1383 21.5728 74.0081 21.0418C73.8856 20.5031 73.7019 20.0658 73.4569 19.7301C73.2196 19.3865 72.9248 19.1366 72.5727 18.9805C72.2205 18.8165 71.8224 18.7345 71.3784 18.7345C70.7277 18.7345 70.1611 18.8829 69.6788 19.1796C69.2042 19.4763 68.764 19.8979 68.3582 20.4445V26.0781ZM68.2434 18.8868C68.4884 18.5901 68.7486 18.3207 69.0243 18.0786C69.3075 17.8288 69.6099 17.618 69.9315 17.4462C70.253 17.2666 70.5937 17.1299 70.9535 17.0363C71.321 16.9347 71.7114 16.884 72.1248 16.884C72.7909 16.884 73.3918 17.0167 73.9277 17.2822C74.4713 17.5477 74.9345 17.9381 75.3173 18.4534C75.7 18.9688 75.9948 19.6051 76.2015 20.3625C76.4158 21.1199 76.523 21.9905 76.523 22.9743C76.523 23.8567 76.4044 24.6765 76.167 25.4339C75.9374 26.1835 75.6043 26.8355 75.168 27.3898C74.7392 27.9442 74.211 28.3815 73.5832 28.7016C72.9631 29.0139 72.2626 29.1701 71.4817 29.1701C70.7851 29.1701 70.1879 29.053 69.6903 28.8187C69.1927 28.5845 68.7486 28.2566 68.3582 27.8349V33H66.1189V17.1065H67.4625C67.7764 17.1065 67.9716 17.2588 68.0482 17.5633L68.2434 18.8868Z",
23
+ fill: "#25292F"
24
+ }), /*#__PURE__*/_jsx("path", {
25
+ d: "M85.308 23.7239C84.3969 23.7552 83.6237 23.8293 82.9883 23.9465C82.3529 24.0558 81.8361 24.2041 81.438 24.3915C81.0399 24.5789 80.7528 24.8014 80.5767 25.0591C80.4006 25.309 80.3126 25.5901 80.3126 25.9024C80.3126 26.1991 80.3585 26.4568 80.4504 26.6754C80.5499 26.8862 80.6801 27.0619 80.8409 27.2025C81.0093 27.3352 81.2045 27.4328 81.4265 27.4953C81.6485 27.5577 81.8897 27.589 82.15 27.589C82.4945 27.589 82.8084 27.5538 83.0916 27.4835C83.3826 27.4133 83.6543 27.3157 83.907 27.1907C84.1596 27.058 84.4008 26.8979 84.6304 26.7105C84.8601 26.5231 85.0859 26.3084 85.308 26.0664V23.7239ZM78.7394 18.7697C79.3901 18.1372 80.0944 17.6648 80.8523 17.3525C81.6179 17.0402 82.4562 16.884 83.3672 16.884C84.0333 16.884 84.6228 16.9972 85.1357 17.2236C85.6486 17.4423 86.0812 17.7507 86.4334 18.1489C86.7855 18.5471 87.0496 19.0234 87.2257 19.5778C87.4095 20.1322 87.5013 20.7451 87.5013 21.4166V29.0061H86.5023C86.2802 29.0061 86.1118 28.971 85.997 28.9007C85.8821 28.8226 85.7903 28.6821 85.7214 28.4791L85.4802 27.4367C85.1816 27.7178 84.8869 27.9677 84.596 28.1863C84.3051 28.3971 83.9988 28.5806 83.6773 28.7368C83.3634 28.8851 83.0266 28.9983 82.6667 29.0764C82.3069 29.1545 81.9088 29.1935 81.4724 29.1935C81.0131 29.1935 80.5806 29.1311 80.1748 29.0061C79.7767 28.8734 79.4284 28.6743 79.1298 28.4088C78.8312 28.1433 78.5939 27.8115 78.4178 27.4133C78.2494 27.0151 78.1652 26.5505 78.1652 26.0195C78.1652 25.551 78.2877 25.1021 78.5327 24.6726C78.7853 24.2354 79.191 23.845 79.7499 23.5014C80.3164 23.1578 81.0514 22.8767 81.9548 22.6581C82.8658 22.4395 83.9835 22.3146 85.308 22.2833V21.4166C85.308 20.5187 85.1204 19.8472 84.7453 19.4021C84.3701 18.9571 83.8189 18.7345 83.0916 18.7345C82.6017 18.7345 82.1883 18.797 81.8514 18.9219C81.5222 19.0468 81.2351 19.1874 80.9901 19.3436C80.7528 19.4919 80.5423 19.6286 80.3585 19.7535C80.1825 19.8784 79.9987 19.9409 79.8073 19.9409C79.6542 19.9409 79.5202 19.8979 79.4054 19.812C79.2982 19.7262 79.2102 19.6247 79.1413 19.5075L78.7394 18.7697Z",
26
+ fill: "#25292F"
27
+ }), /*#__PURE__*/_jsx("path", {
28
+ d: "M98.6754 19.3318C98.6065 19.4177 98.5376 19.488 98.4687 19.5427C98.4074 19.5895 98.3156 19.6129 98.1931 19.6129C98.0706 19.6129 97.9404 19.5661 97.8026 19.4724C97.6725 19.3709 97.5041 19.2655 97.2974 19.1562C97.0983 19.039 96.8533 18.9336 96.5624 18.8399C96.2791 18.7384 95.927 18.6877 95.5059 18.6877C94.9547 18.6877 94.4686 18.7892 94.0475 18.9922C93.6264 19.1952 93.2743 19.4841 92.991 19.8589C92.7154 20.2337 92.5049 20.6905 92.3594 21.2292C92.214 21.768 92.1412 22.3731 92.1412 23.0446C92.1412 23.7395 92.2178 24.3603 92.3709 24.9069C92.524 25.4456 92.7422 25.9024 93.0255 26.2772C93.3087 26.6442 93.6532 26.9253 94.059 27.1205C94.4647 27.3079 94.9164 27.4016 95.4141 27.4016C95.8964 27.4016 96.2945 27.343 96.6083 27.2259C96.9222 27.1009 97.1825 26.9682 97.3892 26.8277C97.5959 26.6871 97.7682 26.5583 97.906 26.4412C98.0438 26.3162 98.1854 26.2538 98.3309 26.2538C98.5146 26.2538 98.6562 26.324 98.7558 26.4646L99.3989 27.3079C99.1309 27.6436 98.8285 27.9286 98.4916 28.1629C98.1625 28.3971 97.8103 28.5884 97.4352 28.7368C97.06 28.8851 96.6658 28.9944 96.2523 29.0647C95.8466 29.135 95.4332 29.1701 95.0121 29.1701C94.2848 29.1701 93.6035 29.0335 92.968 28.7602C92.3403 28.4869 91.7929 28.0887 91.3259 27.5655C90.8666 27.0424 90.5029 26.4021 90.235 25.6447C89.967 24.8795 89.833 24.0128 89.833 23.0446C89.833 22.1623 89.9517 21.3463 90.189 20.5968C90.434 19.8472 90.79 19.203 91.257 18.6642C91.7316 18.1177 92.3135 17.6921 93.0025 17.3876C93.6915 17.0753 94.4801 16.9191 95.3681 16.9191C96.2026 16.9191 96.9375 17.0558 97.573 17.3291C98.2084 17.6023 98.7749 17.9888 99.2725 18.4886L98.6754 19.3318Z",
29
+ fill: "#25292F"
30
+ }), /*#__PURE__*/_jsx("path", {
31
+ d: "M109.016 21.7328C109.016 21.28 108.951 20.8622 108.821 20.4796C108.698 20.097 108.514 19.7652 108.269 19.4841C108.024 19.203 107.726 18.9844 107.374 18.8282C107.021 18.6721 106.616 18.594 106.156 18.594C105.215 18.594 104.472 18.8712 103.929 19.4255C103.393 19.9799 103.052 20.749 102.907 21.7328H109.016ZM110.865 27.3079C110.589 27.6358 110.271 27.9208 109.912 28.1629C109.552 28.3971 109.169 28.5884 108.763 28.7368C108.357 28.8851 107.936 28.9944 107.5 29.0647C107.071 29.135 106.646 29.1701 106.225 29.1701C105.421 29.1701 104.675 29.0335 103.986 28.7602C103.305 28.4791 102.711 28.0731 102.206 27.5421C101.708 27.0033 101.318 26.3397 101.035 25.551C100.759 24.7546 100.621 23.841 100.621 22.8104C100.621 21.9827 100.748 21.2136 101 20.5031C101.253 19.7847 101.613 19.1601 102.08 18.6291C102.554 18.0982 103.132 17.6804 103.814 17.3759C104.495 17.0714 105.261 16.9191 106.11 16.9191C106.822 16.9191 107.477 17.0402 108.074 17.2822C108.679 17.5165 109.2 17.86 109.636 18.3129C110.072 18.7658 110.413 19.324 110.658 19.9877C110.911 20.6514 111.037 21.4088 111.037 22.2599C111.037 22.6113 110.999 22.8494 110.922 22.9743C110.846 23.0915 110.704 23.15 110.497 23.15H102.849C102.872 23.8606 102.972 24.4813 103.148 25.0123C103.324 25.5354 103.565 25.9727 103.871 26.324C104.185 26.6754 104.556 26.937 104.985 27.1088C105.414 27.2805 105.892 27.3664 106.421 27.3664C106.918 27.3664 107.347 27.3079 107.707 27.1907C108.074 27.0736 108.388 26.9487 108.648 26.816C108.916 26.6754 109.138 26.5466 109.314 26.4294C109.498 26.3123 109.659 26.2538 109.797 26.2538C109.98 26.2538 110.122 26.324 110.222 26.4646L110.865 27.3079Z",
32
+ fill: "#25292F"
33
+ }), /*#__PURE__*/_jsx("path", {
34
+ d: "M120.322 19.1562C120.261 19.2577 120.196 19.3318 120.127 19.3787C120.058 19.4177 119.97 19.4373 119.863 19.4373C119.741 19.4373 119.603 19.3943 119.45 19.3084C119.304 19.2225 119.124 19.1288 118.91 19.0273C118.703 18.9258 118.458 18.8321 118.175 18.7462C117.892 18.6603 117.555 18.6174 117.164 18.6174C116.843 18.6174 116.548 18.6603 116.28 18.7462C116.02 18.8243 115.798 18.9375 115.614 19.0859C115.43 19.2264 115.289 19.3982 115.189 19.6012C115.09 19.7964 115.04 20.0072 115.04 20.2337C115.04 20.5304 115.124 20.7764 115.293 20.9716C115.469 21.1668 115.695 21.3346 115.97 21.4752C116.253 21.6157 116.571 21.7446 116.923 21.8617C117.283 21.971 117.647 22.0881 118.014 22.213C118.389 22.338 118.753 22.4824 119.105 22.6464C119.465 22.8026 119.783 23.0017 120.058 23.2437C120.342 23.478 120.567 23.763 120.736 24.0987C120.912 24.4345 121 24.8444 121 25.3285C121 25.8829 120.9 26.3982 120.701 26.8745C120.51 27.343 120.223 27.749 119.84 28.0926C119.465 28.4361 118.998 28.7055 118.439 28.9007C117.88 29.0959 117.241 29.1935 116.521 29.1935C115.718 29.1935 114.975 29.0569 114.294 28.7836C113.612 28.5103 113.042 28.1629 112.583 27.7412L113.111 26.8628C113.172 26.7535 113.249 26.6715 113.34 26.6168C113.432 26.5544 113.555 26.5231 113.708 26.5231C113.853 26.5231 114.003 26.5778 114.156 26.6871C114.309 26.7964 114.493 26.9175 114.707 27.0502C114.921 27.1751 115.182 27.2922 115.488 27.4016C115.794 27.5031 116.177 27.5538 116.636 27.5538C117.019 27.5538 117.352 27.507 117.635 27.4133C117.919 27.3118 118.152 27.179 118.336 27.0151C118.527 26.8433 118.669 26.6481 118.761 26.4294C118.853 26.2108 118.899 25.9805 118.899 25.7384C118.899 25.4261 118.81 25.1684 118.634 24.9654C118.466 24.7546 118.24 24.575 117.957 24.4267C117.681 24.2783 117.364 24.1495 117.004 24.0402C116.644 23.9308 116.276 23.8137 115.901 23.6888C115.526 23.5639 115.159 23.4194 114.799 23.2554C114.439 23.0915 114.118 22.8846 113.834 22.6347C113.559 22.3848 113.333 22.0803 113.157 21.7211C112.988 21.362 112.904 20.9247 112.904 20.4094C112.904 19.9487 112.996 19.5075 113.18 19.0859C113.371 18.6642 113.643 18.2934 113.995 17.9732C114.355 17.6531 114.795 17.3993 115.316 17.2119C115.844 17.0167 116.445 16.9191 117.119 16.9191C117.892 16.9191 118.588 17.0441 119.209 17.2939C119.836 17.5438 120.372 17.8873 120.816 18.3246L120.322 19.1562Z",
35
+ fill: "#25292F"
36
+ })]
37
+ });
38
+ };
39
+ DIDSpaceIcon.defaultProps = {
40
+ width: "121",
41
+ height: "41",
42
+ viewBox: "0 0 121 41",
43
+ fill: "none",
44
+ xmlns: "http://www.w3.org/2000/svg"
45
+ };
46
+ import { DID_SPACE_URL } from '../../Util/constant';
47
+ import { TBox } from '../../MuiWrap';
48
+ export default function DidSpace({
49
+ session,
50
+ locale = 'en',
51
+ ...rest
52
+ }) {
53
+ const t = useMemoizedFn((key, data = {}) => {
54
+ return translate(translations, key, locale, 'en', data);
55
+ });
56
+ const didSpace = session.user?.didSpace ?? {};
57
+ return /*#__PURE__*/_jsxs(_Fragment, {
58
+ children: [/*#__PURE__*/_jsx(TBox, {
59
+ component: "a",
60
+ href: DID_SPACE_URL,
61
+ sx: {
62
+ p: 0.5,
63
+ display: 'block',
64
+ textDecoration: 'none'
65
+ },
66
+ ...rest,
67
+ children: /*#__PURE__*/_jsxs(MenuItem, {
68
+ sx: {
69
+ display: 'flex',
70
+ alignItems: 'center',
71
+ gap: 1,
72
+ '&:hover': {
73
+ backgroundColor: `${colors.surfacePrimarySubtitle} !important`
74
+ },
75
+ py: 1
76
+ },
77
+ children: [/*#__PURE__*/_jsx(DIDSpaceIcon, {
78
+ style: {
79
+ height: '24px',
80
+ marginLeft: '-24px',
81
+ marginRight: '-24px'
82
+ }
83
+ }), /*#__PURE__*/_jsxs("span", {
84
+ style: {
85
+ flexGrow: 1,
86
+ minWidth: 0,
87
+ color: didSpace.did ? colors.foregroundsFgSubtile : colors.textMuted
88
+ },
89
+ children: [": ", didSpace.did ? didSpace.name : t('disconnected')]
90
+ }), /*#__PURE__*/_jsx(Icon, {
91
+ icon: LensIcon,
92
+ fontSize: 8,
93
+ color: didSpace.did ? colors.surfaceSuccess : colors.gray6
94
+ })]
95
+ })
96
+ }), /*#__PURE__*/_jsx(Divider, {
97
+ sx: {
98
+ m: '0!important',
99
+ borderColor: colors.strokeSep
100
+ }
101
+ })]
102
+ });
103
+ }
@@ -18,6 +18,7 @@ import { DASHBOARD_URL, PROFILE_URL } from '../../Util/constant';
18
18
  import SessionPermission from '../../SessionPermission';
19
19
  import { translations } from '../libs/translation';
20
20
  import { translate } from '../../Locale/util';
21
+ import DidSpace from './did-space';
21
22
  const getInviteLink = inviter => {
22
23
  const url = new URL(window.location.href);
23
24
  url.searchParams.set('inviter', inviter);
@@ -186,6 +187,9 @@ export default function LoggedIn({
186
187
  m: '0!important',
187
188
  borderColor: colors.strokeSep
188
189
  }
190
+ }), /*#__PURE__*/_jsx(DidSpace, {
191
+ session: session,
192
+ locale: locale
189
193
  })]
190
194
  }) : null, /*#__PURE__*/_jsx(SessionMenuItem, {
191
195
  icon: AccountCircleOffOutlineRoundedIcon,
@@ -0,0 +1,23 @@
1
+ <svg width="121" height="41" viewBox="0 0 121 41" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd"
3
+ d="M5.2 7.4C3.6536 7.4 2.4 8.6536 2.4 10.2V10.4754H0V10.2C0 7.32812 2.32812 5 5.2 5H39.6378C42.5096 5 44.8378 7.32812 44.8378 10.2V32.0303C44.8378 34.9022 42.5096 37.2303 39.6378 37.2303H5.2C2.32812 37.2303 0 34.9022 0 32.0303V31.8928H2.4V32.0303C2.4 33.5767 3.6536 34.8303 5.2 34.8303H39.6378C41.1842 34.8303 42.4378 33.5767 42.4378 32.0303V10.2C42.4378 8.6536 41.1842 7.4 39.6378 7.4H5.2ZM25.2352 13.5986C26.718 13.5986 28.0023 13.9107 29.088 14.5349C30.1869 15.1448 31.0409 16.0102 31.6499 17.1308C32.2589 18.2515 32.5635 19.5708 32.5635 21.0886C32.5635 22.5923 32.2589 23.8974 31.6499 25.0039C31.0409 26.1104 30.1869 26.9686 29.088 27.5786C28.0023 28.1886 26.718 28.4935 25.2352 28.4935H20.0517V13.5986H25.2352ZM25.1557 26.0891C26.6518 26.0891 27.8037 25.6493 28.6113 24.7698C29.419 23.8761 29.8228 22.6491 29.8228 21.0886C29.8228 19.514 29.419 18.2728 28.6113 17.3649C27.8037 16.457 26.6518 16.0031 25.1557 16.0031H22.7328V26.0891H25.1557ZM17.3404 13.5986H14.6593V28.4935H17.3404V13.5986ZM5.29778 13.5986C6.78066 13.5986 8.06493 13.9107 9.15061 14.5349C10.2495 15.1449 11.1035 16.0102 11.7125 17.1309C12.3216 18.2515 12.6261 19.5708 12.6261 21.0887C12.6261 22.5923 12.3216 23.8974 11.7125 25.0039C11.1035 26.1104 10.2495 26.9686 9.15061 27.5786C8.06493 28.1886 6.78066 28.4936 5.29778 28.4936H0.114344V13.5986H5.29778ZM5.21834 26.0891C6.71446 26.0891 7.86633 25.6493 8.67397 24.7698C9.4816 23.8761 9.88542 22.6491 9.88542 21.0887C9.88542 19.5141 9.4816 18.2728 8.67397 17.3649C7.86633 16.457 6.71446 16.0031 5.21834 16.0031H2.79543V26.0891H5.21834ZM38.1144 17.6999C38.1144 18.5284 37.4428 19.1999 36.6144 19.1999C35.786 19.1999 35.1144 18.5284 35.1144 17.6999C35.1144 16.8715 35.786 16.1999 36.6144 16.1999C37.4428 16.1999 38.1144 16.8715 38.1144 17.6999ZM38.1144 24.6999C38.1144 25.5284 37.4428 26.1999 36.6144 26.1999C35.786 26.1999 35.1144 25.5284 35.1144 24.6999C35.1144 23.8715 35.786 23.1999 36.6144 23.1999C37.4428 23.1999 38.1144 23.8715 38.1144 24.6999Z"
4
+ fill="#4598FA" />
5
+ <path
6
+ d="M62.8644 14.9281C62.7878 15.0608 62.7075 15.1584 62.6232 15.2209C62.539 15.2833 62.4318 15.3146 62.3017 15.3146C62.1639 15.3146 62.007 15.2521 61.8309 15.1272C61.6548 14.9944 61.4328 14.85 61.1648 14.6938C60.9045 14.5298 60.5906 14.3854 60.2232 14.2605C59.8557 14.1277 59.4155 14.0613 58.9026 14.0613C58.4202 14.0613 57.9954 14.1277 57.6279 14.2605C57.2681 14.3854 56.9657 14.5611 56.7207 14.7875C56.4757 15.0061 56.2881 15.2677 56.158 15.5722C56.0355 15.8689 55.9742 16.193 55.9742 16.5443C55.9742 16.9972 56.0853 17.372 56.3073 17.6687C56.5369 17.9654 56.8355 18.2192 57.203 18.43C57.5705 18.6408 57.9877 18.8243 58.4547 18.9805C58.9217 19.1366 59.4002 19.3006 59.8901 19.4724C60.3801 19.6364 60.8586 19.8277 61.3256 20.0463C61.7926 20.2649 62.2098 20.5421 62.5773 20.8779C62.9448 21.2058 63.2395 21.6118 63.4615 22.0959C63.6912 22.5722 63.806 23.1578 63.806 23.8528C63.806 24.5945 63.6797 25.2895 63.4271 25.9375C63.1821 26.5856 62.8223 27.1517 62.3476 27.6358C61.873 28.1199 61.2873 28.5025 60.5906 28.7836C59.9016 29.0569 59.1169 29.1935 58.2365 29.1935C57.7083 29.1935 57.1953 29.1389 56.6977 29.0296C56.2001 28.9281 55.7293 28.7836 55.2852 28.5962C54.8412 28.401 54.424 28.1707 54.0335 27.9052C53.6507 27.6319 53.3062 27.3274 53 26.9916L53.7005 25.797C53.7694 25.7033 53.8498 25.6252 53.9417 25.5627C54.0412 25.5003 54.1522 25.469 54.2747 25.469C54.4354 25.469 54.6192 25.5549 54.8259 25.7267C55.0402 25.8985 55.3005 26.0898 55.6068 26.3006C55.9207 26.5036 56.292 26.691 56.7207 26.8628C57.1571 27.0346 57.6853 27.1205 58.3054 27.1205C58.8107 27.1205 59.2624 27.0541 59.6605 26.9214C60.0586 26.7808 60.3916 26.5856 60.6595 26.3357C60.9352 26.0781 61.1457 25.7697 61.2911 25.4105C61.4366 25.0513 61.5093 24.6531 61.5093 24.2158C61.5093 23.7239 61.3983 23.3218 61.1763 23.0095C60.9543 22.6972 60.6595 22.4356 60.2921 22.2248C59.9246 22.0139 59.5074 21.8344 59.0404 21.686C58.5734 21.5376 58.0949 21.3854 57.6049 21.2292C57.1149 21.0653 56.6365 20.8779 56.1695 20.667C55.7025 20.4562 55.2852 20.1829 54.9178 19.8472C54.5503 19.5036 54.2555 19.0781 54.0335 18.5706C53.8115 18.0552 53.7005 17.4228 53.7005 16.6732C53.7005 16.0719 53.8153 15.4902 54.045 14.9281C54.2747 14.3659 54.6077 13.87 55.0441 13.4406C55.4881 13.0033 56.0317 12.6559 56.6747 12.3982C57.3178 12.1327 58.0528 12 58.8796 12C59.8059 12 60.6557 12.1523 61.4289 12.4568C62.2098 12.7535 62.8874 13.1829 63.4615 13.7451L62.8644 14.9281Z"
7
+ fill="#25292F" />
8
+ <path
9
+ d="M68.3582 26.0781C68.7257 26.57 69.12 26.9136 69.541 27.1088C69.9697 27.304 70.4482 27.4016 70.9765 27.4016C72.0023 27.4016 72.7947 27.0268 73.3536 26.2772C73.9201 25.5198 74.2033 24.4189 74.2033 22.9743C74.2033 22.217 74.1383 21.5728 74.0081 21.0418C73.8856 20.5031 73.7019 20.0658 73.4569 19.7301C73.2196 19.3865 72.9248 19.1366 72.5727 18.9805C72.2205 18.8165 71.8224 18.7345 71.3784 18.7345C70.7277 18.7345 70.1611 18.8829 69.6788 19.1796C69.2042 19.4763 68.764 19.8979 68.3582 20.4445V26.0781ZM68.2434 18.8868C68.4884 18.5901 68.7486 18.3207 69.0243 18.0786C69.3075 17.8288 69.6099 17.618 69.9315 17.4462C70.253 17.2666 70.5937 17.1299 70.9535 17.0363C71.321 16.9347 71.7114 16.884 72.1248 16.884C72.7909 16.884 73.3918 17.0167 73.9277 17.2822C74.4713 17.5477 74.9345 17.9381 75.3173 18.4534C75.7 18.9688 75.9948 19.6051 76.2015 20.3625C76.4158 21.1199 76.523 21.9905 76.523 22.9743C76.523 23.8567 76.4044 24.6765 76.167 25.4339C75.9374 26.1835 75.6043 26.8355 75.168 27.3898C74.7392 27.9442 74.211 28.3815 73.5832 28.7016C72.9631 29.0139 72.2626 29.1701 71.4817 29.1701C70.7851 29.1701 70.1879 29.053 69.6903 28.8187C69.1927 28.5845 68.7486 28.2566 68.3582 27.8349V33H66.1189V17.1065H67.4625C67.7764 17.1065 67.9716 17.2588 68.0482 17.5633L68.2434 18.8868Z"
10
+ fill="#25292F" />
11
+ <path
12
+ d="M85.308 23.7239C84.3969 23.7552 83.6237 23.8293 82.9883 23.9465C82.3529 24.0558 81.8361 24.2041 81.438 24.3915C81.0399 24.5789 80.7528 24.8014 80.5767 25.0591C80.4006 25.309 80.3126 25.5901 80.3126 25.9024C80.3126 26.1991 80.3585 26.4568 80.4504 26.6754C80.5499 26.8862 80.6801 27.0619 80.8409 27.2025C81.0093 27.3352 81.2045 27.4328 81.4265 27.4953C81.6485 27.5577 81.8897 27.589 82.15 27.589C82.4945 27.589 82.8084 27.5538 83.0916 27.4835C83.3826 27.4133 83.6543 27.3157 83.907 27.1907C84.1596 27.058 84.4008 26.8979 84.6304 26.7105C84.8601 26.5231 85.0859 26.3084 85.308 26.0664V23.7239ZM78.7394 18.7697C79.3901 18.1372 80.0944 17.6648 80.8523 17.3525C81.6179 17.0402 82.4562 16.884 83.3672 16.884C84.0333 16.884 84.6228 16.9972 85.1357 17.2236C85.6486 17.4423 86.0812 17.7507 86.4334 18.1489C86.7855 18.5471 87.0496 19.0234 87.2257 19.5778C87.4095 20.1322 87.5013 20.7451 87.5013 21.4166V29.0061H86.5023C86.2802 29.0061 86.1118 28.971 85.997 28.9007C85.8821 28.8226 85.7903 28.6821 85.7214 28.4791L85.4802 27.4367C85.1816 27.7178 84.8869 27.9677 84.596 28.1863C84.3051 28.3971 83.9988 28.5806 83.6773 28.7368C83.3634 28.8851 83.0266 28.9983 82.6667 29.0764C82.3069 29.1545 81.9088 29.1935 81.4724 29.1935C81.0131 29.1935 80.5806 29.1311 80.1748 29.0061C79.7767 28.8734 79.4284 28.6743 79.1298 28.4088C78.8312 28.1433 78.5939 27.8115 78.4178 27.4133C78.2494 27.0151 78.1652 26.5505 78.1652 26.0195C78.1652 25.551 78.2877 25.1021 78.5327 24.6726C78.7853 24.2354 79.191 23.845 79.7499 23.5014C80.3164 23.1578 81.0514 22.8767 81.9548 22.6581C82.8658 22.4395 83.9835 22.3146 85.308 22.2833V21.4166C85.308 20.5187 85.1204 19.8472 84.7453 19.4021C84.3701 18.9571 83.8189 18.7345 83.0916 18.7345C82.6017 18.7345 82.1883 18.797 81.8514 18.9219C81.5222 19.0468 81.2351 19.1874 80.9901 19.3436C80.7528 19.4919 80.5423 19.6286 80.3585 19.7535C80.1825 19.8784 79.9987 19.9409 79.8073 19.9409C79.6542 19.9409 79.5202 19.8979 79.4054 19.812C79.2982 19.7262 79.2102 19.6247 79.1413 19.5075L78.7394 18.7697Z"
13
+ fill="#25292F" />
14
+ <path
15
+ d="M98.6754 19.3318C98.6065 19.4177 98.5376 19.488 98.4687 19.5427C98.4074 19.5895 98.3156 19.6129 98.1931 19.6129C98.0706 19.6129 97.9404 19.5661 97.8026 19.4724C97.6725 19.3709 97.5041 19.2655 97.2974 19.1562C97.0983 19.039 96.8533 18.9336 96.5624 18.8399C96.2791 18.7384 95.927 18.6877 95.5059 18.6877C94.9547 18.6877 94.4686 18.7892 94.0475 18.9922C93.6264 19.1952 93.2743 19.4841 92.991 19.8589C92.7154 20.2337 92.5049 20.6905 92.3594 21.2292C92.214 21.768 92.1412 22.3731 92.1412 23.0446C92.1412 23.7395 92.2178 24.3603 92.3709 24.9069C92.524 25.4456 92.7422 25.9024 93.0255 26.2772C93.3087 26.6442 93.6532 26.9253 94.059 27.1205C94.4647 27.3079 94.9164 27.4016 95.4141 27.4016C95.8964 27.4016 96.2945 27.343 96.6083 27.2259C96.9222 27.1009 97.1825 26.9682 97.3892 26.8277C97.5959 26.6871 97.7682 26.5583 97.906 26.4412C98.0438 26.3162 98.1854 26.2538 98.3309 26.2538C98.5146 26.2538 98.6562 26.324 98.7558 26.4646L99.3989 27.3079C99.1309 27.6436 98.8285 27.9286 98.4916 28.1629C98.1625 28.3971 97.8103 28.5884 97.4352 28.7368C97.06 28.8851 96.6658 28.9944 96.2523 29.0647C95.8466 29.135 95.4332 29.1701 95.0121 29.1701C94.2848 29.1701 93.6035 29.0335 92.968 28.7602C92.3403 28.4869 91.7929 28.0887 91.3259 27.5655C90.8666 27.0424 90.5029 26.4021 90.235 25.6447C89.967 24.8795 89.833 24.0128 89.833 23.0446C89.833 22.1623 89.9517 21.3463 90.189 20.5968C90.434 19.8472 90.79 19.203 91.257 18.6642C91.7316 18.1177 92.3135 17.6921 93.0025 17.3876C93.6915 17.0753 94.4801 16.9191 95.3681 16.9191C96.2026 16.9191 96.9375 17.0558 97.573 17.3291C98.2084 17.6023 98.7749 17.9888 99.2725 18.4886L98.6754 19.3318Z"
16
+ fill="#25292F" />
17
+ <path
18
+ d="M109.016 21.7328C109.016 21.28 108.951 20.8622 108.821 20.4796C108.698 20.097 108.514 19.7652 108.269 19.4841C108.024 19.203 107.726 18.9844 107.374 18.8282C107.021 18.6721 106.616 18.594 106.156 18.594C105.215 18.594 104.472 18.8712 103.929 19.4255C103.393 19.9799 103.052 20.749 102.907 21.7328H109.016ZM110.865 27.3079C110.589 27.6358 110.271 27.9208 109.912 28.1629C109.552 28.3971 109.169 28.5884 108.763 28.7368C108.357 28.8851 107.936 28.9944 107.5 29.0647C107.071 29.135 106.646 29.1701 106.225 29.1701C105.421 29.1701 104.675 29.0335 103.986 28.7602C103.305 28.4791 102.711 28.0731 102.206 27.5421C101.708 27.0033 101.318 26.3397 101.035 25.551C100.759 24.7546 100.621 23.841 100.621 22.8104C100.621 21.9827 100.748 21.2136 101 20.5031C101.253 19.7847 101.613 19.1601 102.08 18.6291C102.554 18.0982 103.132 17.6804 103.814 17.3759C104.495 17.0714 105.261 16.9191 106.11 16.9191C106.822 16.9191 107.477 17.0402 108.074 17.2822C108.679 17.5165 109.2 17.86 109.636 18.3129C110.072 18.7658 110.413 19.324 110.658 19.9877C110.911 20.6514 111.037 21.4088 111.037 22.2599C111.037 22.6113 110.999 22.8494 110.922 22.9743C110.846 23.0915 110.704 23.15 110.497 23.15H102.849C102.872 23.8606 102.972 24.4813 103.148 25.0123C103.324 25.5354 103.565 25.9727 103.871 26.324C104.185 26.6754 104.556 26.937 104.985 27.1088C105.414 27.2805 105.892 27.3664 106.421 27.3664C106.918 27.3664 107.347 27.3079 107.707 27.1907C108.074 27.0736 108.388 26.9487 108.648 26.816C108.916 26.6754 109.138 26.5466 109.314 26.4294C109.498 26.3123 109.659 26.2538 109.797 26.2538C109.98 26.2538 110.122 26.324 110.222 26.4646L110.865 27.3079Z"
19
+ fill="#25292F" />
20
+ <path
21
+ d="M120.322 19.1562C120.261 19.2577 120.196 19.3318 120.127 19.3787C120.058 19.4177 119.97 19.4373 119.863 19.4373C119.741 19.4373 119.603 19.3943 119.45 19.3084C119.304 19.2225 119.124 19.1288 118.91 19.0273C118.703 18.9258 118.458 18.8321 118.175 18.7462C117.892 18.6603 117.555 18.6174 117.164 18.6174C116.843 18.6174 116.548 18.6603 116.28 18.7462C116.02 18.8243 115.798 18.9375 115.614 19.0859C115.43 19.2264 115.289 19.3982 115.189 19.6012C115.09 19.7964 115.04 20.0072 115.04 20.2337C115.04 20.5304 115.124 20.7764 115.293 20.9716C115.469 21.1668 115.695 21.3346 115.97 21.4752C116.253 21.6157 116.571 21.7446 116.923 21.8617C117.283 21.971 117.647 22.0881 118.014 22.213C118.389 22.338 118.753 22.4824 119.105 22.6464C119.465 22.8026 119.783 23.0017 120.058 23.2437C120.342 23.478 120.567 23.763 120.736 24.0987C120.912 24.4345 121 24.8444 121 25.3285C121 25.8829 120.9 26.3982 120.701 26.8745C120.51 27.343 120.223 27.749 119.84 28.0926C119.465 28.4361 118.998 28.7055 118.439 28.9007C117.88 29.0959 117.241 29.1935 116.521 29.1935C115.718 29.1935 114.975 29.0569 114.294 28.7836C113.612 28.5103 113.042 28.1629 112.583 27.7412L113.111 26.8628C113.172 26.7535 113.249 26.6715 113.34 26.6168C113.432 26.5544 113.555 26.5231 113.708 26.5231C113.853 26.5231 114.003 26.5778 114.156 26.6871C114.309 26.7964 114.493 26.9175 114.707 27.0502C114.921 27.1751 115.182 27.2922 115.488 27.4016C115.794 27.5031 116.177 27.5538 116.636 27.5538C117.019 27.5538 117.352 27.507 117.635 27.4133C117.919 27.3118 118.152 27.179 118.336 27.0151C118.527 26.8433 118.669 26.6481 118.761 26.4294C118.853 26.2108 118.899 25.9805 118.899 25.7384C118.899 25.4261 118.81 25.1684 118.634 24.9654C118.466 24.7546 118.24 24.575 117.957 24.4267C117.681 24.2783 117.364 24.1495 117.004 24.0402C116.644 23.9308 116.276 23.8137 115.901 23.6888C115.526 23.5639 115.159 23.4194 114.799 23.2554C114.439 23.0915 114.118 22.8846 113.834 22.6347C113.559 22.3848 113.333 22.0803 113.157 21.7211C112.988 21.362 112.904 20.9247 112.904 20.4094C112.904 19.9487 112.996 19.5075 113.18 19.0859C113.371 18.6642 113.643 18.2934 113.995 17.9732C114.355 17.6531 114.795 17.3993 115.316 17.2119C115.844 17.0167 116.445 16.9191 117.119 16.9191C117.892 16.9191 118.588 17.0441 119.209 17.2939C119.836 17.5438 120.372 17.8873 120.816 18.3246L120.322 19.1562Z"
22
+ fill="#25292F" />
23
+ </svg>
@@ -9,7 +9,8 @@ export const translations = {
9
9
  inviteCopied: 'Your invite link has been copied to the clipboard. Send it to your friends to complete the invitation',
10
10
  dashboard: 'Dashboard',
11
11
  logout: 'Sign Out',
12
- addAnotherAccount: 'Add another account'
12
+ addAnotherAccount: 'Add another account',
13
+ disconnected: 'Disconnected'
13
14
  },
14
15
  zh: {
15
16
  connectDIDWallet: '连接你的 DID Wallet 获得更高的安全性',
@@ -19,6 +20,7 @@ export const translations = {
19
20
  inviteCopied: '你的专属链接已经复制到剪贴板,发送给朋友即可完成邀请',
20
21
  dashboard: '控制台',
21
22
  logout: '退出登录',
22
- addAnotherAccount: '添加账户'
23
+ addAnotherAccount: '添加账户',
24
+ disconnected: '未连接'
23
25
  }
24
26
  };
@@ -8,6 +8,7 @@ export declare const RELAY_SOCKET_PREFIX = "/.well-known/service";
8
8
  export declare const API_DID_PREFIX = "/api/did";
9
9
  export declare const DASHBOARD_URL = "/.well-known/service/admin";
10
10
  export declare const PROFILE_URL = "/.well-known/service/user";
11
+ export declare const DID_SPACE_URL = "/.well-known/service/user/settings";
11
12
  export declare const NAVIGATION_URL = "/.well-known/service/admin/navigation";
12
13
  export declare const DID_PREFIX = "did:abt:";
13
14
  export declare const PASSPORT_STATUS: {
@@ -8,6 +8,7 @@ export const RELAY_SOCKET_PREFIX = '/.well-known/service';
8
8
  export const API_DID_PREFIX = '/api/did';
9
9
  export const DASHBOARD_URL = `${AUTH_SERVICE_PREFIX}/admin`;
10
10
  export const PROFILE_URL = `${AUTH_SERVICE_PREFIX}/user`;
11
+ export const DID_SPACE_URL = `${AUTH_SERVICE_PREFIX}/user/settings`;
11
12
  export const NAVIGATION_URL = `${AUTH_SERVICE_PREFIX}/admin/navigation`;
12
13
  export const DID_PREFIX = 'did:abt:';
13
14
  export const PASSPORT_STATUS = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcblock/ux",
3
- "version": "2.11.12",
3
+ "version": "2.11.14",
4
4
  "description": "Common used react components for arcblock products",
5
5
  "keywords": [
6
6
  "react",
@@ -68,12 +68,12 @@
68
68
  "react": ">=18.2.0",
69
69
  "react-router-dom": ">=6.22.3"
70
70
  },
71
- "gitHead": "b8f74102e7f4a6918743f6b256485a9888c91af0",
71
+ "gitHead": "6e1596d1a8ab9b74fd0588be21beb80eaeb68e35",
72
72
  "dependencies": {
73
73
  "@arcblock/did-motif": "^1.1.13",
74
- "@arcblock/icons": "^2.11.12",
75
- "@arcblock/nft-display": "^2.11.12",
76
- "@arcblock/react-hooks": "^2.11.12",
74
+ "@arcblock/icons": "^2.11.14",
75
+ "@arcblock/nft-display": "^2.11.14",
76
+ "@arcblock/react-hooks": "^2.11.14",
77
77
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
78
78
  "@fontsource/inter": "^5.0.16",
79
79
  "@fontsource/ubuntu-mono": "^5.0.18",
@@ -34,6 +34,7 @@ const colors = {
34
34
  lineBorderStrong: 'rgba(18, 22, 24, 0.12)',
35
35
  lineBorderBase: 'rgba(18, 22, 24, 0.06)',
36
36
  borderBase: 'rgba(18, 22, 24, 0.06)',
37
+ dividerColor: 'rgba(239, 241, 245, 1)',
37
38
 
38
39
  // button
39
40
  buttonsButtonNeutral: 'rgba(255, 255, 255, 1)',
@@ -0,0 +1,53 @@
1
+ import { useMemoizedFn } from 'ahooks';
2
+ import { MenuItem, BoxProps, Divider } from '@mui/material';
3
+ import { Icon } from '@iconify/react';
4
+ import LensIcon from '@iconify-icons/material-symbols/lens';
5
+ import { temp as colors } from '../../Colors';
6
+ import { Locale, Session } from '../../type';
7
+ import { translate } from '../../Locale/util';
8
+ import { translations } from '../libs/translation';
9
+ import DIDSpaceIcon from '../images/did-spaces.svg?react';
10
+ import { DID_SPACE_URL } from '../../Util/constant';
11
+ import { TBox } from '../../MuiWrap';
12
+
13
+ export interface DidSpaceProps extends BoxProps {
14
+ session: Session;
15
+ locale: Locale;
16
+ }
17
+
18
+ export default function DidSpace({ session, locale = 'en', ...rest }: DidSpaceProps) {
19
+ const t = useMemoizedFn((key, data = {}) => {
20
+ return translate(translations, key, locale, 'en', data);
21
+ });
22
+
23
+ const didSpace = session.user?.didSpace ?? {};
24
+
25
+ return (
26
+ <>
27
+ <TBox component="a" href={DID_SPACE_URL} sx={{ p: 0.5, display: 'block', textDecoration: 'none' }} {...rest}>
28
+ <MenuItem
29
+ sx={{
30
+ display: 'flex',
31
+ alignItems: 'center',
32
+ gap: 1,
33
+ '&:hover': {
34
+ backgroundColor: `${colors.surfacePrimarySubtitle} !important`,
35
+ },
36
+ py: 1,
37
+ }}>
38
+ <DIDSpaceIcon style={{ height: '24px', marginLeft: '-24px', marginRight: '-24px' }} />
39
+ <span
40
+ style={{
41
+ flexGrow: 1,
42
+ minWidth: 0,
43
+ color: didSpace.did ? colors.foregroundsFgSubtile : colors.textMuted,
44
+ }}>
45
+ : {didSpace.did ? didSpace.name : t('disconnected')}
46
+ </span>
47
+ <Icon icon={LensIcon} fontSize={8} color={didSpace.did ? colors.surfaceSuccess : colors.gray6} />
48
+ </MenuItem>
49
+ </TBox>
50
+ <Divider sx={{ m: '0!important', borderColor: colors.strokeSep }} />
51
+ </>
52
+ );
53
+ }
@@ -30,6 +30,7 @@ import SessionPermission from '../../SessionPermission';
30
30
  import { translations } from '../libs/translation';
31
31
  import { translate } from '../../Locale/util';
32
32
  import type { Locale, Session } from '../../type';
33
+ import DidSpace from './did-space';
33
34
 
34
35
  const getInviteLink = (inviter: string) => {
35
36
  const url = new URL(window.location.href);
@@ -189,6 +190,7 @@ export default function LoggedIn({
189
190
  />
190
191
  )}
191
192
  <Divider sx={{ m: '0!important', borderColor: colors.strokeSep }} />
193
+ <DidSpace session={session} locale={locale} />
192
194
  </>
193
195
  ) : null}
194
196
  <SessionMenuItem
@@ -0,0 +1,23 @@
1
+ <svg width="121" height="41" viewBox="0 0 121 41" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <path fill-rule="evenodd" clip-rule="evenodd"
3
+ d="M5.2 7.4C3.6536 7.4 2.4 8.6536 2.4 10.2V10.4754H0V10.2C0 7.32812 2.32812 5 5.2 5H39.6378C42.5096 5 44.8378 7.32812 44.8378 10.2V32.0303C44.8378 34.9022 42.5096 37.2303 39.6378 37.2303H5.2C2.32812 37.2303 0 34.9022 0 32.0303V31.8928H2.4V32.0303C2.4 33.5767 3.6536 34.8303 5.2 34.8303H39.6378C41.1842 34.8303 42.4378 33.5767 42.4378 32.0303V10.2C42.4378 8.6536 41.1842 7.4 39.6378 7.4H5.2ZM25.2352 13.5986C26.718 13.5986 28.0023 13.9107 29.088 14.5349C30.1869 15.1448 31.0409 16.0102 31.6499 17.1308C32.2589 18.2515 32.5635 19.5708 32.5635 21.0886C32.5635 22.5923 32.2589 23.8974 31.6499 25.0039C31.0409 26.1104 30.1869 26.9686 29.088 27.5786C28.0023 28.1886 26.718 28.4935 25.2352 28.4935H20.0517V13.5986H25.2352ZM25.1557 26.0891C26.6518 26.0891 27.8037 25.6493 28.6113 24.7698C29.419 23.8761 29.8228 22.6491 29.8228 21.0886C29.8228 19.514 29.419 18.2728 28.6113 17.3649C27.8037 16.457 26.6518 16.0031 25.1557 16.0031H22.7328V26.0891H25.1557ZM17.3404 13.5986H14.6593V28.4935H17.3404V13.5986ZM5.29778 13.5986C6.78066 13.5986 8.06493 13.9107 9.15061 14.5349C10.2495 15.1449 11.1035 16.0102 11.7125 17.1309C12.3216 18.2515 12.6261 19.5708 12.6261 21.0887C12.6261 22.5923 12.3216 23.8974 11.7125 25.0039C11.1035 26.1104 10.2495 26.9686 9.15061 27.5786C8.06493 28.1886 6.78066 28.4936 5.29778 28.4936H0.114344V13.5986H5.29778ZM5.21834 26.0891C6.71446 26.0891 7.86633 25.6493 8.67397 24.7698C9.4816 23.8761 9.88542 22.6491 9.88542 21.0887C9.88542 19.5141 9.4816 18.2728 8.67397 17.3649C7.86633 16.457 6.71446 16.0031 5.21834 16.0031H2.79543V26.0891H5.21834ZM38.1144 17.6999C38.1144 18.5284 37.4428 19.1999 36.6144 19.1999C35.786 19.1999 35.1144 18.5284 35.1144 17.6999C35.1144 16.8715 35.786 16.1999 36.6144 16.1999C37.4428 16.1999 38.1144 16.8715 38.1144 17.6999ZM38.1144 24.6999C38.1144 25.5284 37.4428 26.1999 36.6144 26.1999C35.786 26.1999 35.1144 25.5284 35.1144 24.6999C35.1144 23.8715 35.786 23.1999 36.6144 23.1999C37.4428 23.1999 38.1144 23.8715 38.1144 24.6999Z"
4
+ fill="#4598FA" />
5
+ <path
6
+ d="M62.8644 14.9281C62.7878 15.0608 62.7075 15.1584 62.6232 15.2209C62.539 15.2833 62.4318 15.3146 62.3017 15.3146C62.1639 15.3146 62.007 15.2521 61.8309 15.1272C61.6548 14.9944 61.4328 14.85 61.1648 14.6938C60.9045 14.5298 60.5906 14.3854 60.2232 14.2605C59.8557 14.1277 59.4155 14.0613 58.9026 14.0613C58.4202 14.0613 57.9954 14.1277 57.6279 14.2605C57.2681 14.3854 56.9657 14.5611 56.7207 14.7875C56.4757 15.0061 56.2881 15.2677 56.158 15.5722C56.0355 15.8689 55.9742 16.193 55.9742 16.5443C55.9742 16.9972 56.0853 17.372 56.3073 17.6687C56.5369 17.9654 56.8355 18.2192 57.203 18.43C57.5705 18.6408 57.9877 18.8243 58.4547 18.9805C58.9217 19.1366 59.4002 19.3006 59.8901 19.4724C60.3801 19.6364 60.8586 19.8277 61.3256 20.0463C61.7926 20.2649 62.2098 20.5421 62.5773 20.8779C62.9448 21.2058 63.2395 21.6118 63.4615 22.0959C63.6912 22.5722 63.806 23.1578 63.806 23.8528C63.806 24.5945 63.6797 25.2895 63.4271 25.9375C63.1821 26.5856 62.8223 27.1517 62.3476 27.6358C61.873 28.1199 61.2873 28.5025 60.5906 28.7836C59.9016 29.0569 59.1169 29.1935 58.2365 29.1935C57.7083 29.1935 57.1953 29.1389 56.6977 29.0296C56.2001 28.9281 55.7293 28.7836 55.2852 28.5962C54.8412 28.401 54.424 28.1707 54.0335 27.9052C53.6507 27.6319 53.3062 27.3274 53 26.9916L53.7005 25.797C53.7694 25.7033 53.8498 25.6252 53.9417 25.5627C54.0412 25.5003 54.1522 25.469 54.2747 25.469C54.4354 25.469 54.6192 25.5549 54.8259 25.7267C55.0402 25.8985 55.3005 26.0898 55.6068 26.3006C55.9207 26.5036 56.292 26.691 56.7207 26.8628C57.1571 27.0346 57.6853 27.1205 58.3054 27.1205C58.8107 27.1205 59.2624 27.0541 59.6605 26.9214C60.0586 26.7808 60.3916 26.5856 60.6595 26.3357C60.9352 26.0781 61.1457 25.7697 61.2911 25.4105C61.4366 25.0513 61.5093 24.6531 61.5093 24.2158C61.5093 23.7239 61.3983 23.3218 61.1763 23.0095C60.9543 22.6972 60.6595 22.4356 60.2921 22.2248C59.9246 22.0139 59.5074 21.8344 59.0404 21.686C58.5734 21.5376 58.0949 21.3854 57.6049 21.2292C57.1149 21.0653 56.6365 20.8779 56.1695 20.667C55.7025 20.4562 55.2852 20.1829 54.9178 19.8472C54.5503 19.5036 54.2555 19.0781 54.0335 18.5706C53.8115 18.0552 53.7005 17.4228 53.7005 16.6732C53.7005 16.0719 53.8153 15.4902 54.045 14.9281C54.2747 14.3659 54.6077 13.87 55.0441 13.4406C55.4881 13.0033 56.0317 12.6559 56.6747 12.3982C57.3178 12.1327 58.0528 12 58.8796 12C59.8059 12 60.6557 12.1523 61.4289 12.4568C62.2098 12.7535 62.8874 13.1829 63.4615 13.7451L62.8644 14.9281Z"
7
+ fill="#25292F" />
8
+ <path
9
+ d="M68.3582 26.0781C68.7257 26.57 69.12 26.9136 69.541 27.1088C69.9697 27.304 70.4482 27.4016 70.9765 27.4016C72.0023 27.4016 72.7947 27.0268 73.3536 26.2772C73.9201 25.5198 74.2033 24.4189 74.2033 22.9743C74.2033 22.217 74.1383 21.5728 74.0081 21.0418C73.8856 20.5031 73.7019 20.0658 73.4569 19.7301C73.2196 19.3865 72.9248 19.1366 72.5727 18.9805C72.2205 18.8165 71.8224 18.7345 71.3784 18.7345C70.7277 18.7345 70.1611 18.8829 69.6788 19.1796C69.2042 19.4763 68.764 19.8979 68.3582 20.4445V26.0781ZM68.2434 18.8868C68.4884 18.5901 68.7486 18.3207 69.0243 18.0786C69.3075 17.8288 69.6099 17.618 69.9315 17.4462C70.253 17.2666 70.5937 17.1299 70.9535 17.0363C71.321 16.9347 71.7114 16.884 72.1248 16.884C72.7909 16.884 73.3918 17.0167 73.9277 17.2822C74.4713 17.5477 74.9345 17.9381 75.3173 18.4534C75.7 18.9688 75.9948 19.6051 76.2015 20.3625C76.4158 21.1199 76.523 21.9905 76.523 22.9743C76.523 23.8567 76.4044 24.6765 76.167 25.4339C75.9374 26.1835 75.6043 26.8355 75.168 27.3898C74.7392 27.9442 74.211 28.3815 73.5832 28.7016C72.9631 29.0139 72.2626 29.1701 71.4817 29.1701C70.7851 29.1701 70.1879 29.053 69.6903 28.8187C69.1927 28.5845 68.7486 28.2566 68.3582 27.8349V33H66.1189V17.1065H67.4625C67.7764 17.1065 67.9716 17.2588 68.0482 17.5633L68.2434 18.8868Z"
10
+ fill="#25292F" />
11
+ <path
12
+ d="M85.308 23.7239C84.3969 23.7552 83.6237 23.8293 82.9883 23.9465C82.3529 24.0558 81.8361 24.2041 81.438 24.3915C81.0399 24.5789 80.7528 24.8014 80.5767 25.0591C80.4006 25.309 80.3126 25.5901 80.3126 25.9024C80.3126 26.1991 80.3585 26.4568 80.4504 26.6754C80.5499 26.8862 80.6801 27.0619 80.8409 27.2025C81.0093 27.3352 81.2045 27.4328 81.4265 27.4953C81.6485 27.5577 81.8897 27.589 82.15 27.589C82.4945 27.589 82.8084 27.5538 83.0916 27.4835C83.3826 27.4133 83.6543 27.3157 83.907 27.1907C84.1596 27.058 84.4008 26.8979 84.6304 26.7105C84.8601 26.5231 85.0859 26.3084 85.308 26.0664V23.7239ZM78.7394 18.7697C79.3901 18.1372 80.0944 17.6648 80.8523 17.3525C81.6179 17.0402 82.4562 16.884 83.3672 16.884C84.0333 16.884 84.6228 16.9972 85.1357 17.2236C85.6486 17.4423 86.0812 17.7507 86.4334 18.1489C86.7855 18.5471 87.0496 19.0234 87.2257 19.5778C87.4095 20.1322 87.5013 20.7451 87.5013 21.4166V29.0061H86.5023C86.2802 29.0061 86.1118 28.971 85.997 28.9007C85.8821 28.8226 85.7903 28.6821 85.7214 28.4791L85.4802 27.4367C85.1816 27.7178 84.8869 27.9677 84.596 28.1863C84.3051 28.3971 83.9988 28.5806 83.6773 28.7368C83.3634 28.8851 83.0266 28.9983 82.6667 29.0764C82.3069 29.1545 81.9088 29.1935 81.4724 29.1935C81.0131 29.1935 80.5806 29.1311 80.1748 29.0061C79.7767 28.8734 79.4284 28.6743 79.1298 28.4088C78.8312 28.1433 78.5939 27.8115 78.4178 27.4133C78.2494 27.0151 78.1652 26.5505 78.1652 26.0195C78.1652 25.551 78.2877 25.1021 78.5327 24.6726C78.7853 24.2354 79.191 23.845 79.7499 23.5014C80.3164 23.1578 81.0514 22.8767 81.9548 22.6581C82.8658 22.4395 83.9835 22.3146 85.308 22.2833V21.4166C85.308 20.5187 85.1204 19.8472 84.7453 19.4021C84.3701 18.9571 83.8189 18.7345 83.0916 18.7345C82.6017 18.7345 82.1883 18.797 81.8514 18.9219C81.5222 19.0468 81.2351 19.1874 80.9901 19.3436C80.7528 19.4919 80.5423 19.6286 80.3585 19.7535C80.1825 19.8784 79.9987 19.9409 79.8073 19.9409C79.6542 19.9409 79.5202 19.8979 79.4054 19.812C79.2982 19.7262 79.2102 19.6247 79.1413 19.5075L78.7394 18.7697Z"
13
+ fill="#25292F" />
14
+ <path
15
+ d="M98.6754 19.3318C98.6065 19.4177 98.5376 19.488 98.4687 19.5427C98.4074 19.5895 98.3156 19.6129 98.1931 19.6129C98.0706 19.6129 97.9404 19.5661 97.8026 19.4724C97.6725 19.3709 97.5041 19.2655 97.2974 19.1562C97.0983 19.039 96.8533 18.9336 96.5624 18.8399C96.2791 18.7384 95.927 18.6877 95.5059 18.6877C94.9547 18.6877 94.4686 18.7892 94.0475 18.9922C93.6264 19.1952 93.2743 19.4841 92.991 19.8589C92.7154 20.2337 92.5049 20.6905 92.3594 21.2292C92.214 21.768 92.1412 22.3731 92.1412 23.0446C92.1412 23.7395 92.2178 24.3603 92.3709 24.9069C92.524 25.4456 92.7422 25.9024 93.0255 26.2772C93.3087 26.6442 93.6532 26.9253 94.059 27.1205C94.4647 27.3079 94.9164 27.4016 95.4141 27.4016C95.8964 27.4016 96.2945 27.343 96.6083 27.2259C96.9222 27.1009 97.1825 26.9682 97.3892 26.8277C97.5959 26.6871 97.7682 26.5583 97.906 26.4412C98.0438 26.3162 98.1854 26.2538 98.3309 26.2538C98.5146 26.2538 98.6562 26.324 98.7558 26.4646L99.3989 27.3079C99.1309 27.6436 98.8285 27.9286 98.4916 28.1629C98.1625 28.3971 97.8103 28.5884 97.4352 28.7368C97.06 28.8851 96.6658 28.9944 96.2523 29.0647C95.8466 29.135 95.4332 29.1701 95.0121 29.1701C94.2848 29.1701 93.6035 29.0335 92.968 28.7602C92.3403 28.4869 91.7929 28.0887 91.3259 27.5655C90.8666 27.0424 90.5029 26.4021 90.235 25.6447C89.967 24.8795 89.833 24.0128 89.833 23.0446C89.833 22.1623 89.9517 21.3463 90.189 20.5968C90.434 19.8472 90.79 19.203 91.257 18.6642C91.7316 18.1177 92.3135 17.6921 93.0025 17.3876C93.6915 17.0753 94.4801 16.9191 95.3681 16.9191C96.2026 16.9191 96.9375 17.0558 97.573 17.3291C98.2084 17.6023 98.7749 17.9888 99.2725 18.4886L98.6754 19.3318Z"
16
+ fill="#25292F" />
17
+ <path
18
+ d="M109.016 21.7328C109.016 21.28 108.951 20.8622 108.821 20.4796C108.698 20.097 108.514 19.7652 108.269 19.4841C108.024 19.203 107.726 18.9844 107.374 18.8282C107.021 18.6721 106.616 18.594 106.156 18.594C105.215 18.594 104.472 18.8712 103.929 19.4255C103.393 19.9799 103.052 20.749 102.907 21.7328H109.016ZM110.865 27.3079C110.589 27.6358 110.271 27.9208 109.912 28.1629C109.552 28.3971 109.169 28.5884 108.763 28.7368C108.357 28.8851 107.936 28.9944 107.5 29.0647C107.071 29.135 106.646 29.1701 106.225 29.1701C105.421 29.1701 104.675 29.0335 103.986 28.7602C103.305 28.4791 102.711 28.0731 102.206 27.5421C101.708 27.0033 101.318 26.3397 101.035 25.551C100.759 24.7546 100.621 23.841 100.621 22.8104C100.621 21.9827 100.748 21.2136 101 20.5031C101.253 19.7847 101.613 19.1601 102.08 18.6291C102.554 18.0982 103.132 17.6804 103.814 17.3759C104.495 17.0714 105.261 16.9191 106.11 16.9191C106.822 16.9191 107.477 17.0402 108.074 17.2822C108.679 17.5165 109.2 17.86 109.636 18.3129C110.072 18.7658 110.413 19.324 110.658 19.9877C110.911 20.6514 111.037 21.4088 111.037 22.2599C111.037 22.6113 110.999 22.8494 110.922 22.9743C110.846 23.0915 110.704 23.15 110.497 23.15H102.849C102.872 23.8606 102.972 24.4813 103.148 25.0123C103.324 25.5354 103.565 25.9727 103.871 26.324C104.185 26.6754 104.556 26.937 104.985 27.1088C105.414 27.2805 105.892 27.3664 106.421 27.3664C106.918 27.3664 107.347 27.3079 107.707 27.1907C108.074 27.0736 108.388 26.9487 108.648 26.816C108.916 26.6754 109.138 26.5466 109.314 26.4294C109.498 26.3123 109.659 26.2538 109.797 26.2538C109.98 26.2538 110.122 26.324 110.222 26.4646L110.865 27.3079Z"
19
+ fill="#25292F" />
20
+ <path
21
+ d="M120.322 19.1562C120.261 19.2577 120.196 19.3318 120.127 19.3787C120.058 19.4177 119.97 19.4373 119.863 19.4373C119.741 19.4373 119.603 19.3943 119.45 19.3084C119.304 19.2225 119.124 19.1288 118.91 19.0273C118.703 18.9258 118.458 18.8321 118.175 18.7462C117.892 18.6603 117.555 18.6174 117.164 18.6174C116.843 18.6174 116.548 18.6603 116.28 18.7462C116.02 18.8243 115.798 18.9375 115.614 19.0859C115.43 19.2264 115.289 19.3982 115.189 19.6012C115.09 19.7964 115.04 20.0072 115.04 20.2337C115.04 20.5304 115.124 20.7764 115.293 20.9716C115.469 21.1668 115.695 21.3346 115.97 21.4752C116.253 21.6157 116.571 21.7446 116.923 21.8617C117.283 21.971 117.647 22.0881 118.014 22.213C118.389 22.338 118.753 22.4824 119.105 22.6464C119.465 22.8026 119.783 23.0017 120.058 23.2437C120.342 23.478 120.567 23.763 120.736 24.0987C120.912 24.4345 121 24.8444 121 25.3285C121 25.8829 120.9 26.3982 120.701 26.8745C120.51 27.343 120.223 27.749 119.84 28.0926C119.465 28.4361 118.998 28.7055 118.439 28.9007C117.88 29.0959 117.241 29.1935 116.521 29.1935C115.718 29.1935 114.975 29.0569 114.294 28.7836C113.612 28.5103 113.042 28.1629 112.583 27.7412L113.111 26.8628C113.172 26.7535 113.249 26.6715 113.34 26.6168C113.432 26.5544 113.555 26.5231 113.708 26.5231C113.853 26.5231 114.003 26.5778 114.156 26.6871C114.309 26.7964 114.493 26.9175 114.707 27.0502C114.921 27.1751 115.182 27.2922 115.488 27.4016C115.794 27.5031 116.177 27.5538 116.636 27.5538C117.019 27.5538 117.352 27.507 117.635 27.4133C117.919 27.3118 118.152 27.179 118.336 27.0151C118.527 26.8433 118.669 26.6481 118.761 26.4294C118.853 26.2108 118.899 25.9805 118.899 25.7384C118.899 25.4261 118.81 25.1684 118.634 24.9654C118.466 24.7546 118.24 24.575 117.957 24.4267C117.681 24.2783 117.364 24.1495 117.004 24.0402C116.644 23.9308 116.276 23.8137 115.901 23.6888C115.526 23.5639 115.159 23.4194 114.799 23.2554C114.439 23.0915 114.118 22.8846 113.834 22.6347C113.559 22.3848 113.333 22.0803 113.157 21.7211C112.988 21.362 112.904 20.9247 112.904 20.4094C112.904 19.9487 112.996 19.5075 113.18 19.0859C113.371 18.6642 113.643 18.2934 113.995 17.9732C114.355 17.6531 114.795 17.3993 115.316 17.2119C115.844 17.0167 116.445 16.9191 117.119 16.9191C117.892 16.9191 118.588 17.0441 119.209 17.2939C119.836 17.5438 120.372 17.8873 120.816 18.3246L120.322 19.1562Z"
22
+ fill="#25292F" />
23
+ </svg>
@@ -12,6 +12,7 @@ export const translations: Translations = {
12
12
  dashboard: 'Dashboard',
13
13
  logout: 'Sign Out',
14
14
  addAnotherAccount: 'Add another account',
15
+ disconnected: 'Disconnected',
15
16
  },
16
17
  zh: {
17
18
  connectDIDWallet: '连接你的 DID Wallet 获得更高的安全性',
@@ -22,5 +23,6 @@ export const translations: Translations = {
22
23
  dashboard: '控制台',
23
24
  logout: '退出登录',
24
25
  addAnotherAccount: '添加账户',
26
+ disconnected: '未连接',
25
27
  },
26
28
  };
@@ -10,6 +10,7 @@ export const API_DID_PREFIX = '/api/did';
10
10
 
11
11
  export const DASHBOARD_URL = `${AUTH_SERVICE_PREFIX}/admin`;
12
12
  export const PROFILE_URL = `${AUTH_SERVICE_PREFIX}/user`;
13
+ export const DID_SPACE_URL = `${AUTH_SERVICE_PREFIX}/user/settings`;
13
14
  export const NAVIGATION_URL = `${AUTH_SERVICE_PREFIX}/admin/navigation`;
14
15
 
15
16
  export const DID_PREFIX = 'did:abt:';