@astral/features 3.345.4 → 3.345.6
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/AutoSaveIndicatorService/constants.js +1 -1
- package/cryproPro/components/SetupCryptoProWorkspaceModal/CryptoproviderInfo/CryptoproviderInfo.js +4 -7
- package/cryproPro/components/SetupCryptoProWorkspaceModal/PluginInfo/PluginInfo.js +2 -3
- package/cryproPro/services/WorkspaceSetupService/WorkspaceSetupService.js +1 -0
- package/cryproPro/stores/CryptoProStore/CryptoProStore.js +4 -1
- package/node/AutoSaveIndicatorService/constants.js +1 -1
- package/node/cryproPro/components/SetupCryptoProWorkspaceModal/CryptoproviderInfo/CryptoproviderInfo.js +4 -7
- package/node/cryproPro/components/SetupCryptoProWorkspaceModal/PluginInfo/PluginInfo.js +2 -3
- package/node/cryproPro/services/WorkspaceSetupService/WorkspaceSetupService.js +1 -0
- package/node/cryproPro/stores/CryptoProStore/CryptoProStore.js +4 -1
- package/package.json +2 -2
package/cryproPro/components/SetupCryptoProWorkspaceModal/CryptoproviderInfo/CryptoproviderInfo.js
CHANGED
|
@@ -7,18 +7,15 @@ export const CryptoproviderInfo = ({ workspaceSetupInfo }) => {
|
|
|
7
7
|
if (!workspaceSetupInfo.isPluginInstalled) {
|
|
8
8
|
return (_jsxs(_Fragment, { children: ["\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445", _jsx(Tooltip, { title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u043A\u0440\u0438\u043F\u0442\u043E\u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u0435 \u0431\u0443\u0434\u0443\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u044B \u043F\u043E\u0441\u043B\u0435\n \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u201C\u041A\u0440\u0438\u043F\u0442\u043E\u041F\u0440\u043E \u042D\u0426\u041F Browser plug-in\u201D \u0438 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", children: _jsx(IconWrapper, { children: _jsx(InfoFillSm, {}) }) })] }));
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
if (workspaceSetupInfo.hasCryptoProvider) {
|
|
11
11
|
return 'Установлен';
|
|
12
12
|
}
|
|
13
|
-
|
|
14
|
-
return 'Не установлен';
|
|
15
|
-
}
|
|
13
|
+
return 'Не установлен';
|
|
16
14
|
};
|
|
17
15
|
return (_jsxs(WorkspaceInfoItem, { children: [_jsxs(Description, { children: [_jsx(Description.Name, { children: "\u041A\u0440\u0438\u043F\u0442\u043E\u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440" }), _jsx(Description.Value, { children: workspaceSetupInfo.cspVersion
|
|
18
16
|
? `Крипто Про CSP v${workspaceSetupInfo.cspVersion}`
|
|
19
17
|
: getDescription() })] }), !workspaceSetupInfo.isPluginInstalled && (_jsx(Button, { variant: "link", endIcon: _jsx(OpenLinkOutlineMd, {}), href: "https://cryptopro.ru/downloads",
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
// @ts-ignore */
|
|
18
|
+
// biome-ignore lint/nursery/noTsIgnore: Проблемы с типами кнопки
|
|
19
|
+
// @ts-ignore
|
|
23
20
|
target: "_blank", rel: "noopener noreferrer", children: "\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C \u041A\u0440\u0438\u043F\u0442\u043E\u041F\u0440\u043E CSP" }))] }));
|
|
24
21
|
};
|
|
@@ -3,8 +3,7 @@ import { Button, Description, DownloadOutlineMd, Typography } from '@astral/ui';
|
|
|
3
3
|
import { WorkspaceInfoItem } from '../styles';
|
|
4
4
|
export const PluginInfo = ({ workspaceSetupInfo }) => {
|
|
5
5
|
return (_jsxs(WorkspaceInfoItem, { children: [_jsxs(Description, { children: [_jsx(Description.Name, { children: "\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), _jsx(Description.Value, { children: "\u041A\u0440\u0438\u043F\u0442\u043E\u041F\u0440\u043E \u042D\u0426\u041F Browser plug-in" })] }), workspaceSetupInfo.isPluginInstalled ? (_jsx(Typography, { color: "green", colorIntensity: "900", children: "\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E" })) : (_jsx(Button, { variant: "text", endIcon: _jsx(DownloadOutlineMd, {}), href: "https://www.cryptopro.ru/products/cades/plugin/get_2_0",
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
// @ts-ignore */
|
|
6
|
+
// biome-ignore lint/nursery/noTsIgnore: Проблемы с типами кнопки
|
|
7
|
+
// @ts-ignore
|
|
9
8
|
target: "_blank", rel: "noopener noreferrer", children: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C" }))] }));
|
|
10
9
|
};
|
|
@@ -85,6 +85,7 @@ export class WorkspaceSetupService {
|
|
|
85
85
|
};
|
|
86
86
|
// делаем из класса singleton
|
|
87
87
|
if (WorkspaceSetupService.instance) {
|
|
88
|
+
// biome-ignore lint/correctness/noConstructorReturn: <>
|
|
88
89
|
return WorkspaceSetupService.instance;
|
|
89
90
|
}
|
|
90
91
|
WorkspaceSetupService.instance = this;
|
|
@@ -50,7 +50,9 @@ export class CryptoProStore {
|
|
|
50
50
|
this.checkWorkspace = () => __awaiter(this, void 0, void 0, function* () {
|
|
51
51
|
this.workspaceSetupInfo = yield this.workspaceSetupService
|
|
52
52
|
.checkWorkspace()
|
|
53
|
-
.finally(() =>
|
|
53
|
+
.finally(() => {
|
|
54
|
+
this.isRequestSetupWorkspace = true;
|
|
55
|
+
});
|
|
54
56
|
this.isPluginInstalled = this.workspaceSetupInfo.isPluginInstalled;
|
|
55
57
|
});
|
|
56
58
|
/**
|
|
@@ -133,6 +135,7 @@ export class CryptoProStore {
|
|
|
133
135
|
});
|
|
134
136
|
// делаем из класса singleton
|
|
135
137
|
if (CryptoProStore.instance) {
|
|
138
|
+
// biome-ignore lint/correctness/noConstructorReturn: <>
|
|
136
139
|
return CryptoProStore.instance;
|
|
137
140
|
}
|
|
138
141
|
CryptoProStore.instance = this;
|
|
@@ -10,19 +10,16 @@ const CryptoproviderInfo = ({ workspaceSetupInfo }) => {
|
|
|
10
10
|
if (!workspaceSetupInfo.isPluginInstalled) {
|
|
11
11
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445", (0, jsx_runtime_1.jsx)(ui_1.Tooltip, { title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u043A\u0440\u0438\u043F\u0442\u043E\u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u0435 \u0431\u0443\u0434\u0443\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u044B \u043F\u043E\u0441\u043B\u0435\n \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u201C\u041A\u0440\u0438\u043F\u0442\u043E\u041F\u0440\u043E \u042D\u0426\u041F Browser plug-in\u201D \u0438 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", children: (0, jsx_runtime_1.jsx)(styles_2.IconWrapper, { children: (0, jsx_runtime_1.jsx)(ui_1.InfoFillSm, {}) }) })] }));
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
if (workspaceSetupInfo.hasCryptoProvider) {
|
|
14
14
|
return 'Установлен';
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
return 'Не установлен';
|
|
18
|
-
}
|
|
16
|
+
return 'Не установлен';
|
|
19
17
|
};
|
|
20
18
|
return ((0, jsx_runtime_1.jsxs)(styles_1.WorkspaceInfoItem, { children: [(0, jsx_runtime_1.jsxs)(ui_1.Description, { children: [(0, jsx_runtime_1.jsx)(ui_1.Description.Name, { children: "\u041A\u0440\u0438\u043F\u0442\u043E\u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440" }), (0, jsx_runtime_1.jsx)(ui_1.Description.Value, { children: workspaceSetupInfo.cspVersion
|
|
21
19
|
? `Крипто Про CSP v${workspaceSetupInfo.cspVersion}`
|
|
22
20
|
: getDescription() })] }), !workspaceSetupInfo.isPluginInstalled && ((0, jsx_runtime_1.jsx)(ui_1.Button, { variant: "link", endIcon: (0, jsx_runtime_1.jsx)(ui_1.OpenLinkOutlineMd, {}), href: "https://cryptopro.ru/downloads",
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
// @ts-ignore */
|
|
21
|
+
// biome-ignore lint/nursery/noTsIgnore: Проблемы с типами кнопки
|
|
22
|
+
// @ts-ignore
|
|
26
23
|
target: "_blank", rel: "noopener noreferrer", children: "\u0420\u0435\u043A\u043E\u043C\u0435\u043D\u0434\u0443\u0435\u043C \u041A\u0440\u0438\u043F\u0442\u043E\u041F\u0440\u043E CSP" }))] }));
|
|
27
24
|
};
|
|
28
25
|
exports.CryptoproviderInfo = CryptoproviderInfo;
|
|
@@ -6,9 +6,8 @@ const ui_1 = require("@astral/ui");
|
|
|
6
6
|
const styles_1 = require("../styles");
|
|
7
7
|
const PluginInfo = ({ workspaceSetupInfo }) => {
|
|
8
8
|
return ((0, jsx_runtime_1.jsxs)(styles_1.WorkspaceInfoItem, { children: [(0, jsx_runtime_1.jsxs)(ui_1.Description, { children: [(0, jsx_runtime_1.jsx)(ui_1.Description.Name, { children: "\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), (0, jsx_runtime_1.jsx)(ui_1.Description.Value, { children: "\u041A\u0440\u0438\u043F\u0442\u043E\u041F\u0440\u043E \u042D\u0426\u041F Browser plug-in" })] }), workspaceSetupInfo.isPluginInstalled ? ((0, jsx_runtime_1.jsx)(ui_1.Typography, { color: "green", colorIntensity: "900", children: "\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E" })) : ((0, jsx_runtime_1.jsx)(ui_1.Button, { variant: "text", endIcon: (0, jsx_runtime_1.jsx)(ui_1.DownloadOutlineMd, {}), href: "https://www.cryptopro.ru/products/cades/plugin/get_2_0",
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
// @ts-ignore */
|
|
9
|
+
// biome-ignore lint/nursery/noTsIgnore: Проблемы с типами кнопки
|
|
10
|
+
// @ts-ignore
|
|
12
11
|
target: "_blank", rel: "noopener noreferrer", children: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C" }))] }));
|
|
13
12
|
};
|
|
14
13
|
exports.PluginInfo = PluginInfo;
|
|
@@ -53,7 +53,9 @@ class CryptoProStore {
|
|
|
53
53
|
this.checkWorkspace = () => __awaiter(this, void 0, void 0, function* () {
|
|
54
54
|
this.workspaceSetupInfo = yield this.workspaceSetupService
|
|
55
55
|
.checkWorkspace()
|
|
56
|
-
.finally(() =>
|
|
56
|
+
.finally(() => {
|
|
57
|
+
this.isRequestSetupWorkspace = true;
|
|
58
|
+
});
|
|
57
59
|
this.isPluginInstalled = this.workspaceSetupInfo.isPluginInstalled;
|
|
58
60
|
});
|
|
59
61
|
/**
|
|
@@ -136,6 +138,7 @@ class CryptoProStore {
|
|
|
136
138
|
});
|
|
137
139
|
// делаем из класса singleton
|
|
138
140
|
if (CryptoProStore.instance) {
|
|
141
|
+
// biome-ignore lint/correctness/noConstructorReturn: <>
|
|
139
142
|
return CryptoProStore.instance;
|
|
140
143
|
}
|
|
141
144
|
CryptoProStore.instance = this;
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astral/features",
|
|
3
3
|
"main": "./node/index.js",
|
|
4
|
-
"version": "3.345.
|
|
4
|
+
"version": "3.345.6",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@astral/ui": "3.345.
|
|
6
|
+
"@astral/ui": "3.345.6",
|
|
7
7
|
"mobx": "^6.8.0",
|
|
8
8
|
"mobx-react-lite": "^3.4.0",
|
|
9
9
|
"@astral/cryptopro-cades": "^1.5.1"
|