asab_webui_shell 28.1.0-alpha.0 → 28.1.0-alpha.1
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.
|
@@ -31,8 +31,6 @@ function AboutScreen(props) {
|
|
|
31
31
|
}) : null
|
|
32
32
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(AboutCard, {
|
|
33
33
|
app: props.app
|
|
34
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(ApplicationManifestsCard, {
|
|
35
|
-
app: props.app
|
|
36
34
|
})]
|
|
37
35
|
})
|
|
38
36
|
})
|
|
@@ -54,7 +52,9 @@ var _default = exports.default = AboutScreen;
|
|
|
54
52
|
}
|
|
55
53
|
|
|
56
54
|
*/
|
|
57
|
-
function AboutCard(
|
|
55
|
+
function AboutCard({
|
|
56
|
+
app
|
|
57
|
+
}) {
|
|
58
58
|
const {
|
|
59
59
|
t
|
|
60
60
|
} = (0, _reactI18next.useTranslation)();
|
|
@@ -62,6 +62,7 @@ function AboutCard(props) {
|
|
|
62
62
|
const vendor = (0, _asab_webui_components.useAppSelector)(state => state.config?.vendor);
|
|
63
63
|
const website = (0, _asab_webui_components.useAppSelector)(state => state.config?.website);
|
|
64
64
|
const email = (0, _asab_webui_components.useAppSelector)(state => state.config?.email);
|
|
65
|
+
const manifests = app?.Services?.ManifestService?.getAll?.() ?? [];
|
|
65
66
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.Card, {
|
|
66
67
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.CardHeader, {
|
|
67
68
|
className: "card-header-flex",
|
|
@@ -111,33 +112,13 @@ function AboutCard(props) {
|
|
|
111
112
|
})
|
|
112
113
|
})]
|
|
113
114
|
})
|
|
114
|
-
})
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
function ApplicationManifestsCard({
|
|
119
|
-
app
|
|
120
|
-
}) {
|
|
121
|
-
const {
|
|
122
|
-
t
|
|
123
|
-
} = (0, _reactI18next.useTranslation)();
|
|
124
|
-
const manifests = app?.Services?.ManifestService?.getAll?.() ?? [];
|
|
125
|
-
if (manifests.length === 0) {
|
|
126
|
-
return null;
|
|
127
|
-
}
|
|
128
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.Card, {
|
|
129
|
-
className: "mt-4",
|
|
130
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.CardHeader, {
|
|
131
|
-
className: "card-header-flex",
|
|
132
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
133
|
-
className: "flex-fill",
|
|
134
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("h3", {
|
|
115
|
+
}), manifests.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("li", {
|
|
116
|
+
className: "list-group-item",
|
|
117
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("h5", {
|
|
118
|
+
className: "py-2 mb-0",
|
|
135
119
|
children: t('AboutCard|Application versions')
|
|
136
120
|
})
|
|
137
|
-
})
|
|
138
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("ul", {
|
|
139
|
-
className: "list-group list-group-flush",
|
|
140
|
-
children: manifests.map(entry => /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
121
|
+
}), manifests.map(entry => /*#__PURE__*/(0, _jsxRuntime.jsxs)("li", {
|
|
141
122
|
className: "list-group-item",
|
|
142
123
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.Row, {
|
|
143
124
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Col, {
|
|
@@ -154,7 +135,7 @@ function ApplicationManifestsCard({
|
|
|
154
135
|
children: entry.created_at
|
|
155
136
|
})]
|
|
156
137
|
})]
|
|
157
|
-
}, entry.id))
|
|
138
|
+
}, entry.id))]
|
|
158
139
|
})]
|
|
159
140
|
});
|
|
160
141
|
}
|