@abtnode/ux 1.16.25-beta-be3a37f4 → 1.16.25-beta-cfcab4af
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/es/actions.js +2 -4
- package/es/analytics/card.js +1 -2
- package/es/analytics/chart.js +1 -2
- package/es/analytics/disk.js +1 -2
- package/es/analytics/memory.js +1 -2
- package/es/analytics/runtime.js +1 -2
- package/es/analytics/traffic.js +1 -2
- package/es/blocklet/access/config-access.js +1 -3
- package/es/blocklet/access/index.js +1 -2
- package/es/blocklet/actions.js +1 -2
- package/es/blocklet/add-cert.js +1 -3
- package/es/blocklet/agreement-app.js +1 -2
- package/es/blocklet/agreement.js +1 -2
- package/es/blocklet/audit-logs.js +1 -2
- package/es/blocklet/blocklet-source.js +1 -2
- package/es/blocklet/component/add-component-button.js +1 -3
- package/es/blocklet/component/add-component-core.js +1 -3
- package/es/blocklet/component/component-cell.js +1 -2
- package/es/blocklet/component/configuration.js +1 -2
- package/es/blocklet/component/delete.js +1 -3
- package/es/blocklet/component/did-space/connect-to.js +1 -3
- package/es/blocklet/component/did-space/connected.js +1 -2
- package/es/blocklet/component/did-space/delete.js +1 -3
- package/es/blocklet/component/did-space/disconnect.js +1 -2
- package/es/blocklet/component/did-space/index.js +1 -2
- package/es/blocklet/component/did-space/item.js +1 -3
- package/es/blocklet/component/domain-list.js +1 -3
- package/es/blocklet/component/environment.js +1 -2
- package/es/blocklet/component/index.js +1 -3
- package/es/blocklet/component/navigation/locale-tabs.js +1 -3
- package/es/blocklet/component/navigation/navigation-actions.js +1 -2
- package/es/blocklet/component/navigation/navigation-dialog.js +1 -2
- package/es/blocklet/component/navigation/navigation-preview.js +1 -2
- package/es/blocklet/component/navigation/simple-select.js +1 -2
- package/es/blocklet/component/optional-component-cell.js +1 -2
- package/es/blocklet/component/related-components-dialog.js +1 -2
- package/es/blocklet/component/select-store.js +1 -3
- package/es/blocklet/component/selected/index.js +1 -2
- package/es/blocklet/component/sortable-tree.js +1 -3
- package/es/blocklet/component/space-connector.js +1 -3
- package/es/blocklet/component/space-selector.js +1 -2
- package/es/blocklet/component/step-actions.js +1 -2
- package/es/blocklet/component/store-blocklet-list.js +1 -3
- package/es/blocklet/config-navigation.js +1 -3
- package/es/blocklet/configuration.js +1 -2
- package/es/blocklet/disk-info.js +1 -2
- package/es/blocklet/install-from-url.js +1 -3
- package/es/blocklet/logo-uploader.js +1 -2
- package/es/blocklet/migration.js +1 -2
- package/es/blocklet/notification/email.js +1 -2
- package/es/blocklet/notification/index.js +1 -2
- package/es/blocklet/oauth/auth0.js +1 -2
- package/es/blocklet/oauth/common-settings.js +1 -2
- package/es/blocklet/oauth/federated-detail-dialog.js +1 -3
- package/es/blocklet/oauth/federated-invite-dialog.js +1 -2
- package/es/blocklet/oauth/federated-join-dialog.js +1 -2
- package/es/blocklet/oauth/federated-site-list.js +1 -3
- package/es/blocklet/oauth/federated.js +1 -3
- package/es/blocklet/oauth/index.js +1 -2
- package/es/blocklet/overview.js +1 -2
- package/es/blocklet/preferences/app-sk.js +1 -2
- package/es/blocklet/preferences/index.js +1 -2
- package/es/blocklet/publish/create-project.js +1 -2
- package/es/blocklet/publish/create-release.js +1 -3
- package/es/blocklet/publish/index.js +1 -2
- package/es/blocklet/publish/project-list.js +1 -2
- package/es/blocklet/publish/release-list.js +1 -3
- package/es/blocklet/publish/resource.js +1 -2
- package/es/blocklet/publish/select-components.js +1 -2
- package/es/blocklet/publish/tree.js +1 -2
- package/es/blocklet/purchase/common.js +1 -3
- package/es/blocklet/purchase/component-purchase.js +1 -3
- package/es/blocklet/router/action/add-domain-alias.js +1 -3
- package/es/blocklet/router/action/add-rule.js +13 -3
- package/es/blocklet/router/action/config-routing-rule.js +56 -7
- package/es/blocklet/router/action/delete-domain-alias.js +1 -3
- package/es/blocklet/router/action/delete-rule.js +1 -3
- package/es/blocklet/router/action/update-rule.js +13 -3
- package/es/blocklet/router/add-domain.js +1 -3
- package/es/blocklet/router/dns-tip.js +1 -2
- package/es/blocklet/router/domain-actions.js +1 -2
- package/es/blocklet/router/rule-actions.js +1 -2
- package/es/blocklet/router/rule-list.js +11 -4
- package/es/blocklet/runtime-info.js +1 -2
- package/es/blocklet/status.js +1 -2
- package/es/blocklet/storage/action.js +1 -3
- package/es/blocklet/storage/auto-check-update.js +1 -2
- package/es/blocklet/storage/backups.js +1 -3
- package/es/blocklet/storage/connect-to.js +1 -3
- package/es/blocklet/storage/connected.js +1 -2
- package/es/blocklet/storage/delete.js +1 -3
- package/es/blocklet/storage/disconnect.js +1 -2
- package/es/blocklet/storage/item.js +1 -3
- package/es/blocklet/storage/preview-nft.js +1 -3
- package/es/blocklet/transfer-owner.js +1 -3
- package/es/blocklet/version.js +1 -3
- package/es/certificate.js +1 -3
- package/es/clear-cache.js +1 -2
- package/es/confirm.js +1 -2
- package/es/delete-confirm.js +1 -2
- package/es/form/form-autocomplete-input.js +2 -5
- package/es/form/form-select-input.js +1 -3
- package/es/form/form-text-input.js +1 -3
- package/es/form/input-triggers.js +1 -3
- package/es/invitation/invitation-app.js +1 -2
- package/es/invitation/invitation-passport.js +1 -3
- package/es/invitation/invitation-receive.js +1 -2
- package/es/invitation/invitation-success.js +1 -2
- package/es/invitation/invitation-user.js +1 -2
- package/es/invitation/invitation.js +1 -3
- package/es/issue-passport.js +1 -2
- package/es/launch-blocklet/page-header.js +1 -2
- package/es/layout/addon.js +1 -2
- package/es/locales/ar.js +5 -1
- package/es/locales/de.js +5 -1
- package/es/locales/en.js +5 -1
- package/es/locales/es.js +5 -1
- package/es/locales/fr.js +5 -1
- package/es/locales/hi.js +5 -1
- package/es/locales/i18n.db +0 -0
- package/es/locales/id.js +5 -1
- package/es/locales/ja.js +5 -1
- package/es/locales/ko.js +5 -1
- package/es/locales/pt.js +5 -1
- package/es/locales/ru.js +5 -1
- package/es/locales/th.js +5 -1
- package/es/locales/vi.js +5 -1
- package/es/locales/zh-tw.js +5 -1
- package/es/locales/zh.js +5 -1
- package/es/logs/download.js +1 -2
- package/es/logs/log-terminal.js +1 -2
- package/es/lost-passport.js +1 -2
- package/es/nav-logo.js +1 -3
- package/es/notifications/addon.js +1 -2
- package/es/notifications/list.js +1 -3
- package/es/notifications/notification.js +1 -2
- package/es/notifications/page.js +1 -3
- package/es/passport-tag.js +1 -2
- package/es/schema-form/color-input.js +1 -2
- package/es/schema-form/index.js +1 -3
- package/es/schema-form/passport-input.js +1 -2
- package/es/store/add.js +1 -3
- package/es/store/delete.js +1 -3
- package/es/store/item.js +1 -2
- package/es/subscription.js +1 -3
- package/es/team/members/actions.js +1 -3
- package/es/team/members/index.js +1 -2
- package/es/team/members/invitations.js +1 -2
- package/es/team/members/invite-member.js +1 -3
- package/es/team/members/issue-passport.js +1 -3
- package/es/team/members/member.js +1 -2
- package/es/team/members/passport-issuances.js +1 -2
- package/es/team/members/passport-item.js +1 -2
- package/es/team/members/passports.js +1 -2
- package/es/team/members/toggle-user-approval.js +1 -3
- package/es/team/members/transfer-node.js +1 -3
- package/es/team/passports/color.js +1 -3
- package/es/team/passports/detail.js +1 -3
- package/es/team/passports/index.js +1 -3
- package/es/team/passports/mutate-role.js +1 -3
- package/es/team/passports/trusted-factories.js +1 -2
- package/es/team/passports/trusted-factory.js +1 -3
- package/es/team/passports/trusted-issuer.js +1 -3
- package/es/team/passports/trusted-issuers.js +1 -2
- package/lib/actions.js +1 -1
- package/lib/analytics/card.js +1 -1
- package/lib/analytics/chart.js +2 -2
- package/lib/analytics/disk.js +1 -1
- package/lib/analytics/runtime.js +1 -1
- package/lib/analytics/traffic.js +1 -1
- package/lib/blocklet/access/index.js +1 -1
- package/lib/blocklet/actions.js +6 -6
- package/lib/blocklet/add-cert.js +1 -1
- package/lib/blocklet/agreement-app.js +1 -1
- package/lib/blocklet/app-avatar.js +1 -1
- package/lib/blocklet/blocklet-source.js +1 -1
- package/lib/blocklet/bundle-avatar.js +1 -1
- package/lib/blocklet/component/add-component-core.js +14 -14
- package/lib/blocklet/component/button.js +1 -1
- package/lib/blocklet/component/component-cell.js +2 -2
- package/lib/blocklet/component/delete.js +1 -1
- package/lib/blocklet/component/did-space/connect-to.js +2 -2
- package/lib/blocklet/component/did-space/delete.js +3 -3
- package/lib/blocklet/component/did-space/disconnect.js +1 -1
- package/lib/blocklet/component/did-space/index.js +3 -3
- package/lib/blocklet/component/did-space/item.js +2 -2
- package/lib/blocklet/component/domain-list.js +4 -4
- package/lib/blocklet/component/environment.js +1 -1
- package/lib/blocklet/component/index.js +2 -2
- package/lib/blocklet/component/navigation/navigation-dialog.js +6 -6
- package/lib/blocklet/component/navigation/navigation-preview.js +3 -3
- package/lib/blocklet/component/navigation/simple-select.js +1 -1
- package/lib/blocklet/component/select-store.js +1 -1
- package/lib/blocklet/component/setting.js +1 -1
- package/lib/blocklet/component/sortable-tree.js +1 -1
- package/lib/blocklet/component/space-connector.js +9 -9
- package/lib/blocklet/component/space-selector.js +2 -2
- package/lib/blocklet/component/start.js +1 -1
- package/lib/blocklet/component/store-blocklet-list.js +2 -2
- package/lib/blocklet/component/switch-control.js +1 -1
- package/lib/blocklet/config-navigation.js +1 -1
- package/lib/blocklet/configuration.js +3 -3
- package/lib/blocklet/disk-info.js +1 -1
- package/lib/blocklet/install-from-url.js +1 -1
- package/lib/blocklet/log.js +1 -1
- package/lib/blocklet/logo-uploader.js +3 -3
- package/lib/blocklet/migration.js +1 -1
- package/lib/blocklet/mode.js +1 -1
- package/lib/blocklet/notification/email.js +6 -6
- package/lib/blocklet/oauth/auth0.js +6 -6
- package/lib/blocklet/oauth/common-settings.js +4 -4
- package/lib/blocklet/oauth/federated-detail-dialog.js +4 -4
- package/lib/blocklet/oauth/federated-invite-dialog.js +2 -2
- package/lib/blocklet/oauth/federated-join-dialog.js +3 -3
- package/lib/blocklet/oauth/federated-site-list.js +5 -5
- package/lib/blocklet/oauth/federated.js +6 -6
- package/lib/blocklet/overview.js +3 -3
- package/lib/blocklet/page-group.js +1 -1
- package/lib/blocklet/preferences/index.js +2 -2
- package/lib/blocklet/publish/create-project.js +2 -2
- package/lib/blocklet/publish/create-release.js +5 -5
- package/lib/blocklet/publish/index.js +1 -1
- package/lib/blocklet/publish/project-list.js +1 -1
- package/lib/blocklet/publish/release-list.js +1 -1
- package/lib/blocklet/publish/select-components.js +1 -1
- package/lib/blocklet/purchase/component-purchase.js +1 -1
- package/lib/blocklet/resource-type.js +2 -2
- package/lib/blocklet/router/action/add-domain-alias.js +1 -1
- package/lib/blocklet/router/action/add-rule.js +14 -2
- package/lib/blocklet/router/action/config-routing-rule.js +54 -5
- package/lib/blocklet/router/action/update-rule.js +14 -1
- package/lib/blocklet/router/add-domain.js +1 -1
- package/lib/blocklet/router/dns-tip.js +1 -1
- package/lib/blocklet/router/domain-actions.js +1 -1
- package/lib/blocklet/router/rule-actions.js +1 -1
- package/lib/blocklet/router/rule-list.js +11 -2
- package/lib/blocklet/runtime-info.js +1 -1
- package/lib/blocklet/status.js +1 -1
- package/lib/blocklet/storage/action.js +2 -2
- package/lib/blocklet/storage/auto-backup.js +1 -1
- package/lib/blocklet/storage/auto-check-update.js +1 -1
- package/lib/blocklet/storage/backups.js +1 -1
- package/lib/blocklet/storage/connect-to.js +2 -2
- package/lib/blocklet/storage/delete.js +4 -4
- package/lib/blocklet/storage/disconnect.js +1 -1
- package/lib/blocklet/storage/item.js +2 -2
- package/lib/blocklet/storage/preview-nft.js +2 -2
- package/lib/blocklet/util.js +2 -2
- package/lib/blocklet/version.js +1 -1
- package/lib/clear-cache.js +2 -2
- package/lib/click-to-copy.js +1 -1
- package/lib/confirm.js +1 -1
- package/lib/contexts/blocklet-storage.js +1 -1
- package/lib/contexts/node.js +1 -1
- package/lib/delete-confirm.js +1 -1
- package/lib/did-address.js +1 -1
- package/lib/empty-spinner.js +1 -1
- package/lib/exchange-passport.js +3 -3
- package/lib/form/form-autocomplete-input.js +2 -2
- package/lib/form/form-select-input.js +2 -2
- package/lib/form/form-text-input.js +2 -2
- package/lib/hooks/blocklet.js +15 -15
- package/lib/hooks/confirm.js +3 -3
- package/lib/hooks/url-evaluation.js +1 -1
- package/lib/hooks/use-app-logo.js +1 -1
- package/lib/hooks/use-auto-backup.js +1 -1
- package/lib/hooks/use-auto-check-update.js +1 -1
- package/lib/hooks/use-backup-progress.js +1 -1
- package/lib/hooks/use-backups.js +1 -1
- package/lib/hooks/use-blocklet-info-for-connect-did-spaces.js +3 -3
- package/lib/hooks/use-bundle-logo.js +1 -1
- package/lib/hooks/use-navigation.js +1 -1
- package/lib/hooks/use-space-gateways.js +3 -3
- package/lib/images.js +1 -1
- package/lib/invitation/invitation-app.js +1 -1
- package/lib/invitation/invitation-receive.js +5 -5
- package/lib/invitation/invitation.js +3 -3
- package/lib/issue-passport.js +2 -2
- package/lib/launch-blocklet/content-layout.js +1 -1
- package/lib/layout/addon.js +1 -1
- package/lib/locales/ar.js +5 -1
- package/lib/locales/de.js +5 -1
- package/lib/locales/en.js +5 -1
- package/lib/locales/es.js +5 -1
- package/lib/locales/fr.js +5 -1
- package/lib/locales/hi.js +5 -1
- package/lib/locales/i18n.db +0 -0
- package/lib/locales/id.js +5 -1
- package/lib/locales/index.js +1 -1
- package/lib/locales/ja.js +5 -1
- package/lib/locales/ko.js +5 -1
- package/lib/locales/pt.js +5 -1
- package/lib/locales/ru.js +5 -1
- package/lib/locales/th.js +5 -1
- package/lib/locales/vi.js +5 -1
- package/lib/locales/zh-tw.js +5 -1
- package/lib/locales/zh.js +5 -1
- package/lib/logs/log-terminal.js +1 -1
- package/lib/lost-passport.js +3 -3
- package/lib/nav-logo.js +1 -1
- package/lib/notifications/default-icon-variants.js +1 -1
- package/lib/notifications/notification.js +1 -1
- package/lib/notifications/tag.js +1 -1
- package/lib/passport-tag.js +1 -1
- package/lib/permission.js +1 -1
- package/lib/relative-time.js +1 -1
- package/lib/schema-form/index.js +1 -1
- package/lib/schema-form/passport-input.js +1 -1
- package/lib/schema-form/text-input.js +1 -1
- package/lib/subscription.js +1 -1
- package/lib/tag.js +1 -1
- package/lib/team/members/index.js +5 -5
- package/lib/team/members/invitations.js +1 -1
- package/lib/team/members/member.js +1 -1
- package/lib/team/members/passport-item.js +1 -1
- package/lib/team/members/passports.js +2 -2
- package/lib/team/passports/color.js +1 -1
- package/lib/team/passports/detail.js +1 -1
- package/lib/team/passports/index.js +1 -1
- package/lib/team/passports/trusted-factories.js +2 -2
- package/lib/team/passports/trusted-factory.js +1 -1
- package/lib/team/passports/trusted-issuer.js +2 -2
- package/lib/team/passports/trusted-issuers.js +2 -2
- package/lib/team/search-input.js +1 -1
- package/lib/util/index.js +7 -7
- package/lib/util/space-gateway.js +1 -1
- package/lib/util/spaces.js +3 -3
- package/lib/wrap-locale.js +1 -1
- package/package.json +17 -17
|
@@ -14,9 +14,7 @@ import isUrl from 'is-url';
|
|
|
14
14
|
import joinUrl from 'url-join';
|
|
15
15
|
import { useBlockletContext } from '../../contexts/blocklet';
|
|
16
16
|
import { useNodeContext } from '../../contexts/node';
|
|
17
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
20
18
|
const FederatedDetailDialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
21
19
|
const {
|
|
22
20
|
t
|
|
@@ -8,8 +8,7 @@ import Dialog from '@arcblock/ux/lib/Dialog';
|
|
|
8
8
|
import CodeBlock from '@arcblock/ux/lib/CodeBlock';
|
|
9
9
|
import copy from 'copy-to-clipboard';
|
|
10
10
|
import { useTheme } from '@arcblock/ux/lib/Theme';
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
12
|
const FederatedInviteDialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
14
13
|
const theme = useTheme();
|
|
15
14
|
const leavingScreen = theme?.transitions?.duration?.leavingScreen || 300;
|
|
@@ -10,8 +10,7 @@ import noop from 'lodash/noop';
|
|
|
10
10
|
import isUrl from 'is-url';
|
|
11
11
|
import { useBlockletContext } from '../../contexts/blocklet';
|
|
12
12
|
import { useNodeContext } from '../../contexts/node';
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
14
|
const FederatedJoinDialog = /*#__PURE__*/forwardRef((props, ref) => {
|
|
16
15
|
const {
|
|
17
16
|
t
|
|
@@ -16,9 +16,7 @@ import { useNodeContext } from '../../contexts/node';
|
|
|
16
16
|
import useConfirm from '../../hooks/confirm';
|
|
17
17
|
import FederatedDetailDialog from './federated-detail-dialog';
|
|
18
18
|
import FederatedInviteDialog from './federated-invite-dialog';
|
|
19
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
20
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
21
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
19
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
22
20
|
function FederatedSiteList({
|
|
23
21
|
mode
|
|
24
22
|
}) {
|
|
@@ -10,9 +10,7 @@ import { useBlockletContext } from '../../contexts/blocklet';
|
|
|
10
10
|
import FederatedSiteList from './federated-site-list';
|
|
11
11
|
import FederatedJoinDialog from './federated-join-dialog';
|
|
12
12
|
import FederatedInviteDialog from './federated-invite-dialog';
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
14
|
export default function FederatedLogin() {
|
|
17
15
|
const federatedInviteRef = useRef(null);
|
|
18
16
|
const federatedJoinRef = useRef(null);
|
|
@@ -7,8 +7,7 @@ import { useContext, useState } from 'react';
|
|
|
7
7
|
import OAuthAuth0 from './auth0';
|
|
8
8
|
import CommonSettings from './common-settings';
|
|
9
9
|
import FederatedLogin from './federated';
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
11
|
function OAuth() {
|
|
13
12
|
const {
|
|
14
13
|
t
|
package/es/blocklet/overview.js
CHANGED
|
@@ -15,8 +15,7 @@ import { formatToDatetime, getExplorerLink } from '../util';
|
|
|
15
15
|
import BlockletStatus from './status';
|
|
16
16
|
import { isServerless } from './util';
|
|
17
17
|
import DomainListWithPermission from './component/domain-list';
|
|
18
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
19
|
const WalletType = {
|
|
21
20
|
arcblock: 'ArcBlock',
|
|
22
21
|
ethereum: 'Ethereum'
|
|
@@ -13,8 +13,7 @@ import Confirm from '../../confirm';
|
|
|
13
13
|
import { useSessionContext } from '../../contexts/session';
|
|
14
14
|
import { useBlockletContext } from '../../contexts/blocklet';
|
|
15
15
|
import { isRunning } from '../../util';
|
|
16
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
17
|
export default function AppSk({
|
|
19
18
|
initialValue,
|
|
20
19
|
onChange,
|
|
@@ -23,8 +23,7 @@ import BlockletNotification from '../notification';
|
|
|
23
23
|
import Access from '../access/index';
|
|
24
24
|
import { useNodeContext } from '../../contexts/node';
|
|
25
25
|
import OAuth from '../oauth';
|
|
26
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
27
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
28
27
|
const addComponentTabs = ({
|
|
29
28
|
tabs,
|
|
30
29
|
blocklet,
|
|
@@ -15,8 +15,7 @@ import Toast from '@arcblock/ux/lib/Toast';
|
|
|
15
15
|
import { useNodeContext } from '../../contexts/node';
|
|
16
16
|
import { useBlockletContext } from '../../contexts/blocklet';
|
|
17
17
|
import { useSessionContext } from '../../contexts/session';
|
|
18
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
19
|
const Types = [{
|
|
21
20
|
label: {
|
|
22
21
|
en: 'Resource',
|
|
@@ -31,9 +31,7 @@ import ClickToCopy from '../../click-to-copy';
|
|
|
31
31
|
import { formatError } from '../../util';
|
|
32
32
|
import Resource from './resource';
|
|
33
33
|
import SelectComponents from './select-components';
|
|
34
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
35
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
36
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
34
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
37
35
|
const allowedFileTypes = ['image/*', '.jpg', '.jpeg', '.png', '.gif', '.svg'];
|
|
38
36
|
const maxFileSize = 1024 * 1024 * 10; // 10 MB
|
|
39
37
|
|
|
@@ -8,8 +8,7 @@ import ProjectList from './project-list';
|
|
|
8
8
|
import CreateProject from './create-project';
|
|
9
9
|
import ReleasesList from './release-list';
|
|
10
10
|
import CreateRelease from './create-release';
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
12
|
export default function BlockletPublish({
|
|
14
13
|
padding
|
|
15
14
|
}) {
|
|
@@ -17,8 +17,7 @@ import EmptySpinner from '../../empty-spinner';
|
|
|
17
17
|
import DidAddress from '../../did-address';
|
|
18
18
|
import Confirm from '../../confirm';
|
|
19
19
|
import BlockletBundleAvatar from '../bundle-avatar';
|
|
20
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
21
|
export default function ProjectList() {
|
|
23
22
|
const {
|
|
24
23
|
t,
|
|
@@ -22,9 +22,7 @@ import { useBlockletContext } from '../../contexts/blocklet';
|
|
|
22
22
|
import { useNodeContext } from '../../contexts/node';
|
|
23
23
|
import EmptySpinner from '../../empty-spinner';
|
|
24
24
|
import Confirm from '../../confirm';
|
|
25
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
25
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
28
26
|
export default function ReleaseList() {
|
|
29
27
|
const {
|
|
30
28
|
t,
|
|
@@ -10,8 +10,7 @@ import Toast from '@arcblock/ux/lib/Toast';
|
|
|
10
10
|
import Tree from './tree';
|
|
11
11
|
import { useNodeContext } from '../../contexts/node';
|
|
12
12
|
import { axios } from '../../util/api';
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
14
|
const fillParent = (nodes, parentId) => {
|
|
16
15
|
nodes.forEach(node => {
|
|
17
16
|
if (parentId) {
|
|
@@ -8,8 +8,7 @@ import Box from '@mui/material/Box';
|
|
|
8
8
|
import Datatable from '@arcblock/ux/lib/Datatable';
|
|
9
9
|
import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
|
|
10
10
|
import BlockletBundleAvatar from '../bundle-avatar';
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
12
|
export default function SelectComponents({
|
|
14
13
|
value,
|
|
15
14
|
app,
|
|
@@ -14,8 +14,7 @@ import { Icon } from '@iconify/react';
|
|
|
14
14
|
import Images from '../../images';
|
|
15
15
|
|
|
16
16
|
// BFS algorithm to find node by his ID
|
|
17
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
18
|
const bfsSearch = (graph, targetId) => {
|
|
20
19
|
const queue = [...graph];
|
|
21
20
|
while (queue.length > 0) {
|
|
@@ -9,9 +9,7 @@ import IconVerify from '@mui/icons-material/VerifiedUser';
|
|
|
9
9
|
import Button from '@arcblock/ux/lib/Button';
|
|
10
10
|
import colors from '@arcblock/ux/lib/Colors';
|
|
11
11
|
import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
|
|
12
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
15
13
|
const commonProps = {
|
|
16
14
|
meta: PropTypes.object.isRequired,
|
|
17
15
|
onCancel: PropTypes.func.isRequired
|
|
@@ -11,9 +11,7 @@ import { useNodeContext } from '../../contexts/node';
|
|
|
11
11
|
import { getWebWalletUrl, extractStatusUrlFromNextWorkflow } from '../../util';
|
|
12
12
|
import { api as $api, axios } from '../../util/api';
|
|
13
13
|
import { commonProps, CustomSelect } from './common';
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
16
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
15
|
export function ComponentPurchase({
|
|
18
16
|
meta,
|
|
19
17
|
onCancel,
|
|
@@ -11,9 +11,7 @@ import { useNodeContext } from '../../../contexts/node';
|
|
|
11
11
|
import { sleep } from '../../../util';
|
|
12
12
|
import AddDomain from '../add-domain';
|
|
13
13
|
import { parseDomainFromURL } from '../util';
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
17
15
|
function AddDomainAliasComponent({
|
|
18
16
|
id,
|
|
19
17
|
children,
|
|
@@ -15,9 +15,7 @@ import Confirm from '../../../confirm';
|
|
|
15
15
|
import { validateRule, validatePathPrefix } from '../util';
|
|
16
16
|
import ConfigRoutingRule from './config-routing-rule';
|
|
17
17
|
import { formatMountPoint } from '../../../util';
|
|
18
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
18
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
21
19
|
export default function AddRule({
|
|
22
20
|
children
|
|
23
21
|
}) {
|
|
@@ -65,6 +63,13 @@ export default function AddRule({
|
|
|
65
63
|
if (params.type === ROUTING_RULE_TYPES.GENERAL_REWRITE) {
|
|
66
64
|
rule.to.url = urlPathFriendly(params.url);
|
|
67
65
|
}
|
|
66
|
+
if (params.type === ROUTING_RULE_TYPES.DIRECT_RESPONSE) {
|
|
67
|
+
rule.to.response = {
|
|
68
|
+
status: 200,
|
|
69
|
+
contentType: params.responseType,
|
|
70
|
+
body: params.responseBody
|
|
71
|
+
};
|
|
72
|
+
}
|
|
68
73
|
await api.addRoutingRule({
|
|
69
74
|
input: {
|
|
70
75
|
id: siteId,
|
|
@@ -134,6 +139,9 @@ export default function AddRule({
|
|
|
134
139
|
if (params.type === ROUTING_RULE_TYPES.GENERAL_REWRITE && !params.url) {
|
|
135
140
|
disable = true;
|
|
136
141
|
}
|
|
142
|
+
if (params.type === ROUTING_RULE_TYPES.DIRECT_RESPONSE && (!params.responseType || !params.responseBody)) {
|
|
143
|
+
disable = true;
|
|
144
|
+
}
|
|
137
145
|
if (!e.target.value.trim()) {
|
|
138
146
|
disable = true;
|
|
139
147
|
setError(t('router.validation.pathPrefixRequired'));
|
|
@@ -167,6 +175,8 @@ export default function AddRule({
|
|
|
167
175
|
componentId: '',
|
|
168
176
|
pageGroup: '',
|
|
169
177
|
redirectCode: 302,
|
|
178
|
+
responseType: 'text/plain',
|
|
179
|
+
responseBody: '',
|
|
170
180
|
__disableConfirm: true
|
|
171
181
|
},
|
|
172
182
|
onConfirm,
|
|
@@ -3,13 +3,11 @@ import PropTypes from 'prop-types';
|
|
|
3
3
|
import TextField from '@mui/material/TextField';
|
|
4
4
|
import MenuItem from '@mui/material/MenuItem';
|
|
5
5
|
import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
|
|
6
|
-
import { ROUTING_RULE_TYPES } from '@abtnode/constant';
|
|
6
|
+
import { ROUTING_RULE_TYPES, ROUTING_RESPONSE_TYPES } from '@abtnode/constant';
|
|
7
7
|
import { BLOCKLET_INTERFACE_TYPE_WEB } from '@blocklet/constant';
|
|
8
8
|
import { findWebInterface, getDisplayName } from '@blocklet/meta/lib/util';
|
|
9
9
|
import { useBlockletContext } from '../../../contexts/blocklet';
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
11
|
const getComponents = blocklet => blocklet.children.filter(x => x.meta.interfaces.find(i => i.type === BLOCKLET_INTERFACE_TYPE_WEB));
|
|
14
12
|
export default function ConfigRoutingRule({
|
|
15
13
|
params,
|
|
@@ -194,18 +192,66 @@ export default function ConfigRoutingRule({
|
|
|
194
192
|
marginBottom: 32
|
|
195
193
|
},
|
|
196
194
|
onChange: e => {
|
|
195
|
+
const value = e.target.value.trim();
|
|
197
196
|
setParams({
|
|
198
197
|
...params,
|
|
199
198
|
url: e.target.value,
|
|
200
|
-
__disableConfirm: !
|
|
199
|
+
__disableConfirm: !value
|
|
201
200
|
});
|
|
202
|
-
if (!
|
|
201
|
+
if (!value) {
|
|
203
202
|
setError(t('router.validation.rewriteUrlRequired'));
|
|
204
203
|
} else {
|
|
205
204
|
setError('');
|
|
206
205
|
}
|
|
207
206
|
}
|
|
208
|
-
}, "url")
|
|
207
|
+
}, "url"), params.type === ROUTING_RULE_TYPES.DIRECT_RESPONSE && [/*#__PURE__*/_jsx(TextField, {
|
|
208
|
+
select: true,
|
|
209
|
+
label: t('router.rule.add.responseType'),
|
|
210
|
+
autoComplete: "off",
|
|
211
|
+
variant: "outlined",
|
|
212
|
+
name: "responseType",
|
|
213
|
+
fullWidth: true,
|
|
214
|
+
value: params.responseType,
|
|
215
|
+
onChange: e => setParams({
|
|
216
|
+
...params,
|
|
217
|
+
responseType: e.target.value
|
|
218
|
+
}),
|
|
219
|
+
style: {
|
|
220
|
+
marginBottom: 32
|
|
221
|
+
},
|
|
222
|
+
SelectProps: {},
|
|
223
|
+
children: ROUTING_RESPONSE_TYPES.map(x => /*#__PURE__*/_jsx(MenuItem, {
|
|
224
|
+
value: x.value,
|
|
225
|
+
children: x.text
|
|
226
|
+
}, x.value))
|
|
227
|
+
}, "responseType"), /*#__PURE__*/_jsx(TextField, {
|
|
228
|
+
label: t('router.rule.add.responseBody'),
|
|
229
|
+
autoComplete: "off",
|
|
230
|
+
variant: "outlined",
|
|
231
|
+
name: "responseBody",
|
|
232
|
+
"data-cy": "response-body-input",
|
|
233
|
+
fullWidth: true,
|
|
234
|
+
multiline: true,
|
|
235
|
+
minRows: 3,
|
|
236
|
+
value: params.responseBody,
|
|
237
|
+
helperText: t('router.rule.add.responseBodyTip'),
|
|
238
|
+
style: {
|
|
239
|
+
marginBottom: 32
|
|
240
|
+
},
|
|
241
|
+
onChange: e => {
|
|
242
|
+
const value = e.target.value.trim();
|
|
243
|
+
setParams({
|
|
244
|
+
...params,
|
|
245
|
+
responseBody: e.target.value,
|
|
246
|
+
__disableConfirm: !value
|
|
247
|
+
});
|
|
248
|
+
if (!value) {
|
|
249
|
+
setError(t('router.rule.add.responseBodyRequired'));
|
|
250
|
+
} else {
|
|
251
|
+
setError('');
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}, "response-body")]]
|
|
209
255
|
});
|
|
210
256
|
}
|
|
211
257
|
ConfigRoutingRule.propTypes = {
|
|
@@ -225,6 +271,9 @@ ConfigRoutingRule.defaultProps = {
|
|
|
225
271
|
}, {
|
|
226
272
|
name: 'Rewrite - Route traffic without redirect',
|
|
227
273
|
value: ROUTING_RULE_TYPES.GENERAL_REWRITE
|
|
274
|
+
}, {
|
|
275
|
+
name: 'Response - Response with provided content',
|
|
276
|
+
value: ROUTING_RULE_TYPES.DIRECT_RESPONSE
|
|
228
277
|
}, {
|
|
229
278
|
name: 'Component - Pass traffic to blocklet component',
|
|
230
279
|
value: ROUTING_RULE_TYPES.COMPONENT
|
|
@@ -8,9 +8,7 @@ import Toast from '@arcblock/ux/lib/Toast';
|
|
|
8
8
|
import Confirm from '../../../confirm';
|
|
9
9
|
import { useNodeContext } from '../../../contexts/node';
|
|
10
10
|
import { sleep } from '../../../util';
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
14
12
|
export default function DeleteDomainAlias(props) {
|
|
15
13
|
const {
|
|
16
14
|
t
|
|
@@ -8,9 +8,7 @@ import Toast from '@arcblock/ux/lib/Toast';
|
|
|
8
8
|
import { useNodeContext } from '../../../contexts/node';
|
|
9
9
|
import { useBlockletContext } from '../../../contexts/blocklet';
|
|
10
10
|
import DelConfirm from '../../../delete-confirm';
|
|
11
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
11
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
14
12
|
export default function DeleteRule({
|
|
15
13
|
id: ruleId,
|
|
16
14
|
from,
|
|
@@ -15,9 +15,7 @@ import Confirm from '../../../confirm';
|
|
|
15
15
|
import { validateRule } from '../util';
|
|
16
16
|
import ConfigRoutingRule from './config-routing-rule';
|
|
17
17
|
import { formatMountPoint } from '../../../util';
|
|
18
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
19
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
20
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
18
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
21
19
|
export default function UpdateRule({
|
|
22
20
|
id: ruleId,
|
|
23
21
|
from,
|
|
@@ -70,6 +68,13 @@ export default function UpdateRule({
|
|
|
70
68
|
if (params.type === ROUTING_RULE_TYPES.GENERAL_REWRITE) {
|
|
71
69
|
rule.to.url = urlPathFriendly(params.url);
|
|
72
70
|
}
|
|
71
|
+
if (params.type === ROUTING_RULE_TYPES.DIRECT_RESPONSE) {
|
|
72
|
+
rule.to.response = {
|
|
73
|
+
status: 200,
|
|
74
|
+
contentType: params.responseType,
|
|
75
|
+
body: params.responseBody
|
|
76
|
+
};
|
|
77
|
+
}
|
|
73
78
|
await api.updateRoutingRule({
|
|
74
79
|
input: {
|
|
75
80
|
id: siteId,
|
|
@@ -127,6 +132,9 @@ export default function UpdateRule({
|
|
|
127
132
|
if (params.type === ROUTING_RULE_TYPES.GENERAL_REWRITE && !params.url) {
|
|
128
133
|
disable = true;
|
|
129
134
|
}
|
|
135
|
+
if (params.type === ROUTING_RULE_TYPES.DIRECT_RESPONSE && (!params.responseType || !params.responseBody)) {
|
|
136
|
+
disable = true;
|
|
137
|
+
}
|
|
130
138
|
if (!e.target.value.trim()) {
|
|
131
139
|
disable = true;
|
|
132
140
|
setError(t('router.validation.pathPrefixRequired'));
|
|
@@ -162,6 +170,8 @@ export default function UpdateRule({
|
|
|
162
170
|
componentId: to.componentId || '',
|
|
163
171
|
pageGroup: to.pageGroup || '',
|
|
164
172
|
url: to.url || '',
|
|
173
|
+
responseType: to.response?.contentType || '',
|
|
174
|
+
responseBody: (to.response?.body || '').replace(/\\"/g, '"'),
|
|
165
175
|
__disableConfirm: false
|
|
166
176
|
},
|
|
167
177
|
onConfirm,
|
|
@@ -22,9 +22,7 @@ import { sleep, validateDomain } from '../../util';
|
|
|
22
22
|
import { axios } from '../../util/api';
|
|
23
23
|
import DNSTip from './dns-tip';
|
|
24
24
|
import { parseDomainFromURL } from './util';
|
|
25
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
26
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
27
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
25
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
28
26
|
export default function AddDomain({
|
|
29
27
|
siteId,
|
|
30
28
|
teamDid,
|
|
@@ -6,8 +6,7 @@ import Box from '@mui/material/Box';
|
|
|
6
6
|
import useTheme from '@mui/material/styles/useTheme';
|
|
7
7
|
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
8
8
|
import PropTypes from 'prop-types';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
export default function DNSTip({
|
|
12
11
|
domain,
|
|
13
12
|
resolvedTarget,
|
|
@@ -7,8 +7,7 @@ import DeleteIcon from '@mui/icons-material/Delete';
|
|
|
7
7
|
import Tooltip from '@mui/material/Tooltip';
|
|
8
8
|
import Actions from '../../actions';
|
|
9
9
|
import DeleteDomainAlias from './action/delete-domain-alias';
|
|
10
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
11
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
11
|
export default function DomainActions({
|
|
13
12
|
site,
|
|
14
13
|
domain,
|
|
@@ -10,8 +10,7 @@ import { useBlockletContext } from '../../contexts/blocklet';
|
|
|
10
10
|
import DeleteRule from './action/delete-rule';
|
|
11
11
|
import UpdateRule from './action/update-rule';
|
|
12
12
|
import { getBlockletUrlParams, getAccessUrl } from '../../util';
|
|
13
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
15
14
|
export default function RuleActions(rule) {
|
|
16
15
|
const {
|
|
17
16
|
locale
|
|
@@ -9,8 +9,9 @@ import IconButton from '@mui/material/IconButton';
|
|
|
9
9
|
import Avatar from '@mui/material/Avatar';
|
|
10
10
|
import LockIcon from '@arcblock/icons/lib/LockIcon';
|
|
11
11
|
import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
|
|
12
|
-
import { ROUTING_RULE_TYPES } from '@abtnode/constant';
|
|
12
|
+
import { ROUTING_RESPONSE_TYPES, ROUTING_RULE_TYPES } from '@abtnode/constant';
|
|
13
13
|
import { getDisplayName } from '@blocklet/meta/lib/util';
|
|
14
|
+
import { TextSnippetOutlined } from '@mui/icons-material';
|
|
14
15
|
import { getBlockletUrlParams, getAccessUrl, BlockletAdminRoles } from '../../util';
|
|
15
16
|
import { useBlockletContext } from '../../contexts/blocklet';
|
|
16
17
|
import { useNodeContext } from '../../contexts/node';
|
|
@@ -18,8 +19,7 @@ import { withPermission } from '../../permission';
|
|
|
18
19
|
import Line from '../component/line';
|
|
19
20
|
import RuleActions from './rule-actions';
|
|
20
21
|
import BlockletPageGroup from '../page-group';
|
|
21
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
22
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
23
23
|
function RedirectRule({
|
|
24
24
|
domain,
|
|
25
25
|
isHttps,
|
|
@@ -70,6 +70,13 @@ function RuleList({
|
|
|
70
70
|
avatar = rule.to.redirectCode;
|
|
71
71
|
} else if (rule.to.type === ROUTING_RULE_TYPES.GENERAL_REWRITE) {
|
|
72
72
|
avatar = 'R';
|
|
73
|
+
} else if (rule.to.type === ROUTING_RULE_TYPES.DIRECT_RESPONSE) {
|
|
74
|
+
avatar = /*#__PURE__*/_jsx(TextSnippetOutlined, {
|
|
75
|
+
sx: {
|
|
76
|
+
color: 'text.secondary',
|
|
77
|
+
fontSize: '45px'
|
|
78
|
+
}
|
|
79
|
+
});
|
|
73
80
|
} else if (rule.to.type === ROUTING_RULE_TYPES.COMPONENT) {
|
|
74
81
|
component = blocklet.children.find(x => x.meta.did === rule.to.componentId);
|
|
75
82
|
avatar = 'C';
|
|
@@ -127,7 +134,7 @@ function RuleList({
|
|
|
127
134
|
color: '#222',
|
|
128
135
|
fontSize: 16
|
|
129
136
|
},
|
|
130
|
-
children: [rule.to.type === ROUTING_RULE_TYPES.NONE && t('common.page404'), rule.to.type === ROUTING_RULE_TYPES.REDIRECT && t('common.redirect'), rule.to.type === ROUTING_RULE_TYPES.GENERAL_REWRITE && t('common.rewrite'), rule.to.type === ROUTING_RULE_TYPES.COMPONENT && getDisplayName(component, true)]
|
|
137
|
+
children: [rule.to.type === ROUTING_RULE_TYPES.NONE && t('common.page404'), rule.to.type === ROUTING_RULE_TYPES.REDIRECT && t('common.redirect'), rule.to.type === ROUTING_RULE_TYPES.GENERAL_REWRITE && t('common.rewrite'), rule.to.type === ROUTING_RULE_TYPES.DIRECT_RESPONSE && ROUTING_RESPONSE_TYPES.find(x => x.value === rule.to.response.contentType)?.text, rule.to.type === ROUTING_RULE_TYPES.COMPONENT && getDisplayName(component, true)]
|
|
131
138
|
}), /*#__PURE__*/_jsxs(Box, {
|
|
132
139
|
display: "flex",
|
|
133
140
|
alignItems: "center",
|
|
@@ -4,8 +4,7 @@ import Typography from '@mui/material/Typography';
|
|
|
4
4
|
import Grid from '@mui/material/Grid';
|
|
5
5
|
import CpuMonitor from '../analytics/cpu';
|
|
6
6
|
import MemoryMonitor from '../analytics/memory';
|
|
7
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
8
|
export default function BlockletRuntimeInfo({
|
|
10
9
|
blocklet,
|
|
11
10
|
cpuHistory,
|
package/es/blocklet/status.js
CHANGED
|
@@ -6,8 +6,7 @@ import { LocaleContext } from '@arcblock/ux/lib/Locale/context';
|
|
|
6
6
|
import { isInProgress } from '@blocklet/meta/lib/util';
|
|
7
7
|
import Dot from '../dot';
|
|
8
8
|
import Tag from '../tag';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
11
10
|
const colors = {
|
|
12
11
|
yellow: '#FFCF71',
|
|
13
12
|
grey: '#888888'
|
|
@@ -21,9 +21,7 @@ import DeleteDIDSpacesGateWay from './delete';
|
|
|
21
21
|
* } & import('@mui/material').IconButtonProps} { spaceGateway, onDelete, onConnect, enableSwitchToSpace, connected, ...rest }
|
|
22
22
|
* @return {React.Component}
|
|
23
23
|
*/
|
|
24
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
27
25
|
function SpaceItemAction({
|
|
28
26
|
spaceGateway,
|
|
29
27
|
connected,
|
|
@@ -14,8 +14,7 @@ import { useBlockletStorageContext } from '../../contexts/blocklet-storage';
|
|
|
14
14
|
* }} {...rest}
|
|
15
15
|
* @return {*}
|
|
16
16
|
*/
|
|
17
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
17
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
19
18
|
function AutoCheckUpdate({
|
|
20
19
|
children,
|
|
21
20
|
...rest
|
|
@@ -19,9 +19,7 @@ import { getDIDSpaceDidFromEndpoint } from '../../util/spaces';
|
|
|
19
19
|
* } & import('@mui/material').BoxProps} { progress, ...rest }
|
|
20
20
|
* @return {React.Component}
|
|
21
21
|
*/
|
|
22
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
23
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
22
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
25
23
|
function SpacesBackupRecords({
|
|
26
24
|
...rest
|
|
27
25
|
}) {
|
|
@@ -21,9 +21,7 @@ import { useBlockletStorageContext } from '../../contexts/blocklet-storage';
|
|
|
21
21
|
* @param {{}} { ...rest }
|
|
22
22
|
* @return {React.Component}
|
|
23
23
|
*/
|
|
24
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
27
25
|
function ConnectTo({
|
|
28
26
|
...rest
|
|
29
27
|
}) {
|
|
@@ -21,8 +21,7 @@ import AutoBackup from './auto-backup';
|
|
|
21
21
|
* loading?: boolean,
|
|
22
22
|
* }} SpaceGateway
|
|
23
23
|
*/
|
|
24
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
25
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
26
25
|
function Connected() {
|
|
27
26
|
const {
|
|
28
27
|
t
|
|
@@ -17,9 +17,7 @@ import { formatError } from '../../util';
|
|
|
17
17
|
* }} { spaceGateway, onDelete }
|
|
18
18
|
* @return {*}
|
|
19
19
|
*/
|
|
20
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
21
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
22
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
20
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
23
21
|
function DeleteDIDSpacesGateWay({
|
|
24
22
|
spaceGateway,
|
|
25
23
|
onDelete
|
|
@@ -202,8 +202,7 @@ EmptySpacesNFT.defaultProps = {
|
|
|
202
202
|
import { useBlockletContext } from '../../contexts/blocklet';
|
|
203
203
|
import ConnectTo from './connect-to';
|
|
204
204
|
import DiskInfo from '../disk-info';
|
|
205
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
206
|
-
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
205
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
207
206
|
function Disconnect() {
|
|
208
207
|
const {
|
|
209
208
|
t
|