asab_webui_shell 28.1.0-alpha.3 → 28.1.0-alpha.4

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.
@@ -12,27 +12,14 @@ var _BrandImage = require("../../components/branding/BrandImage");
12
12
  var _reactstrap = require("reactstrap");
13
13
  var _jsxRuntime = require("react/jsx-runtime");
14
14
  function AboutScreen(props) {
15
- const theme = (0, _asab_webui_components.useAppSelector)(state => state.theme);
16
- const [brandImage, setBrandImage] = (0, _react.useState)(null);
17
- (0, _react.useLayoutEffect)(() => {
18
- setBrandImage((0, _BrandImage.getBrandImage)(props, theme));
19
- }, [theme]);
20
15
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Container, {
21
16
  className: "h-100",
22
17
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Row, {
23
- className: "justify-content-center h-100 pt-4",
18
+ className: "justify-content-center h-100",
24
19
  children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.Col, {
25
20
  md: "6",
26
- className: "d-flex flex-column gap-4 h-100 min-vh-0",
27
- children: [brandImage && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
28
- style: {
29
- height: '8rem'
30
- },
31
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
32
- src: brandImage.full,
33
- alt: "TeskaLabs logo"
34
- })
35
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(AboutCard, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
21
+ className: "d-flex flex-column gap-4",
22
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(AboutCard, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
36
23
  className: "flex-grow-1",
37
24
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(ApplicationManifestsCard, {
38
25
  app: props.app
@@ -46,7 +33,7 @@ var _default = exports.default = AboutScreen;
46
33
  /*
47
34
 
48
35
  Language localizations for AboutCard can be added to the translation.json files of
49
- public/locales/en & public/locales/cs
36
+ public/locales/en & public/locales/cs@
50
37
 
51
38
  Example:
52
39
 
@@ -143,7 +130,7 @@ function ApplicationManifestsCard({
143
130
  };
144
131
  const columns = [{
145
132
  title: t('General|Name'),
146
- tdStyle: {
133
+ thStyle: {
147
134
  width: '8rem',
148
135
  maxWidth: '12rem'
149
136
  },
@@ -159,7 +146,7 @@ function ApplicationManifestsCard({
159
146
  }
160
147
  }, {
161
148
  title: t('AboutCard|Tag'),
162
- tdStyle: {
149
+ thStyle: {
163
150
  width: '8rem',
164
151
  maxWidth: '12rem'
165
152
  },
@@ -168,14 +155,14 @@ function ApplicationManifestsCard({
168
155
  }) => {
169
156
  const tag = row.version ?? '';
170
157
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
171
- className: "d-block text-truncate",
158
+ className: "font-monospace d-block text-truncate",
172
159
  title: tag,
173
160
  children: tag
174
161
  });
175
162
  }
176
163
  }, {
177
164
  title: t('AboutCard|Built at'),
178
- tdStyle: {
165
+ thStyle: {
179
166
  width: '8rem',
180
167
  maxWidth: '12rem'
181
168
  },
@@ -186,7 +173,9 @@ function ApplicationManifestsCard({
186
173
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
187
174
  className: "d-block text-truncate",
188
175
  title: builtAt,
189
- children: builtAt
176
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_asab_webui_components.DateTime, {
177
+ value: builtAt
178
+ })
190
179
  });
191
180
  }
192
181
  }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asab_webui_shell",
3
- "version": "28.1.0-alpha.3",
3
+ "version": "28.1.0-alpha.4",
4
4
  "license": "BSD-3-Clause",
5
5
  "description": "TeskaLabs ASAB WebUI Shell Application",
6
6
  "contributors": [