authscape 1.0.244 → 1.0.245
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/index.js +18 -5
- package/package.json +1 -1
- package/src/services/setupOEMProps.js +25 -6
package/index.js
CHANGED
|
@@ -3356,7 +3356,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
3356
3356
|
Object.defineProperty(exports, "__esModule", {
|
|
3357
3357
|
value: true
|
|
3358
3358
|
});
|
|
3359
|
-
exports.
|
|
3359
|
+
exports.HeaderRecords = HeaderRecords;
|
|
3360
3360
|
exports.setupOEMProps = void 0;
|
|
3361
3361
|
var _react = _interopRequireWildcard(require("react"));
|
|
3362
3362
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -3399,12 +3399,25 @@ var setupOEMProps = /*#__PURE__*/function () {
|
|
|
3399
3399
|
};
|
|
3400
3400
|
}();
|
|
3401
3401
|
exports.setupOEMProps = setupOEMProps;
|
|
3402
|
-
function
|
|
3402
|
+
function HeaderRecords(_ref3) {
|
|
3403
3403
|
var pageProps = _ref3.pageProps;
|
|
3404
|
-
return pageProps != null && pageProps.host != null && /*#__PURE__*/_react["default"].createElement("link", {
|
|
3405
|
-
href: process.env.apiUri + "/api/
|
|
3404
|
+
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, pageProps != null && pageProps.host != null && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("link", {
|
|
3405
|
+
href: process.env.apiUri + "/api/WhiteLabel/GetDataFromRecord?domain=" + pageProps.host,
|
|
3406
3406
|
rel: "stylesheet"
|
|
3407
|
-
})
|
|
3407
|
+
}), /*#__PURE__*/_react["default"].createElement("link", {
|
|
3408
|
+
rel: "manifest",
|
|
3409
|
+
href: "/manifest.json"
|
|
3410
|
+
}), /*#__PURE__*/_react["default"].createElement("link", {
|
|
3411
|
+
href: "/icons/favicon-16x16.png",
|
|
3412
|
+
rel: "icon",
|
|
3413
|
+
type: "image/png",
|
|
3414
|
+
sizes: "16x16"
|
|
3415
|
+
}), /*#__PURE__*/_react["default"].createElement("link", {
|
|
3416
|
+
href: "/icons/favicon-32x32.png",
|
|
3417
|
+
rel: "icon",
|
|
3418
|
+
type: "image/png",
|
|
3419
|
+
sizes: "32x32"
|
|
3420
|
+
})));
|
|
3408
3421
|
}
|
|
3409
3422
|
"use strict";
|
|
3410
3423
|
|
package/package.json
CHANGED
|
@@ -21,13 +21,32 @@ export const setupOEMProps = async ({Component, ctx}) => {
|
|
|
21
21
|
return pageProps;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
export function
|
|
24
|
+
export function HeaderRecords({pageProps})
|
|
25
25
|
{
|
|
26
26
|
return (
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
27
|
+
<>
|
|
28
|
+
{(pageProps != null && pageProps.host != null) &&
|
|
29
|
+
<>
|
|
30
|
+
<link
|
|
31
|
+
href={process.env.apiUri + "/api/WhiteLabel/GetDataFromRecord?domain=" + pageProps.host}
|
|
32
|
+
rel="stylesheet"
|
|
33
|
+
/>
|
|
34
|
+
|
|
35
|
+
<link rel="manifest" href="/manifest.json" />
|
|
36
|
+
<link
|
|
37
|
+
href="/icons/favicon-16x16.png"
|
|
38
|
+
rel="icon"
|
|
39
|
+
type="image/png"
|
|
40
|
+
sizes="16x16"
|
|
41
|
+
/>
|
|
42
|
+
<link
|
|
43
|
+
href="/icons/favicon-32x32.png"
|
|
44
|
+
rel="icon"
|
|
45
|
+
type="image/png"
|
|
46
|
+
sizes="32x32"
|
|
47
|
+
/>
|
|
48
|
+
</>
|
|
49
|
+
}
|
|
50
|
+
</>
|
|
32
51
|
)
|
|
33
52
|
}
|