infinity-forge 1.5.1 → 1.5.3
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/dist/system/container/decorators/authorize-http-client-decorator.js +14 -8
- package/dist/system/container/decorators/authorize-http-client-decorator.js.map +1 -1
- package/dist/system/presentation/components/layout/component.js +0 -2
- package/dist/system/presentation/components/layout/component.js.map +1 -1
- package/dist/system/presentation/components/layout/styles.js +1 -1
- package/dist/system/presentation/components/layout/styles.js.map +1 -1
- package/package.json +1 -1
|
@@ -83,13 +83,19 @@ var AuthorizeHttpClientDecorator = /** @class */ (function () {
|
|
|
83
83
|
}
|
|
84
84
|
AuthorizeHttpClientDecorator.prototype.request = function (data) {
|
|
85
85
|
return __awaiter(this, void 0, void 0, function () {
|
|
86
|
-
var storageToken, token, httpResponse;
|
|
87
|
-
return __generator(this, function (
|
|
88
|
-
switch (
|
|
89
|
-
case 0:
|
|
86
|
+
var storageToken, _a, token, httpResponse;
|
|
87
|
+
return __generator(this, function (_b) {
|
|
88
|
+
switch (_b.label) {
|
|
89
|
+
case 0:
|
|
90
|
+
_a = process.browser;
|
|
91
|
+
if (!_a) return [3 /*break*/, 2];
|
|
92
|
+
return [4 /*yield*/, this.storage.get("token")];
|
|
90
93
|
case 1:
|
|
91
|
-
|
|
92
|
-
|
|
94
|
+
_a = (_b.sent());
|
|
95
|
+
_b.label = 2;
|
|
96
|
+
case 2:
|
|
97
|
+
storageToken = _a;
|
|
98
|
+
token = process.browser && (storageToken === null || storageToken === void 0 ? void 0 : storageToken.value);
|
|
93
99
|
Object.assign(data, {
|
|
94
100
|
headers: Object.assign(data.headers || {}, {
|
|
95
101
|
Authorization: "Bearer ".concat(token || ''),
|
|
@@ -97,8 +103,8 @@ var AuthorizeHttpClientDecorator = /** @class */ (function () {
|
|
|
97
103
|
}),
|
|
98
104
|
});
|
|
99
105
|
return [4 /*yield*/, this.httpClient.request(data)];
|
|
100
|
-
case
|
|
101
|
-
httpResponse =
|
|
106
|
+
case 3:
|
|
107
|
+
httpResponse = _b.sent();
|
|
102
108
|
return [2 /*return*/, httpResponse];
|
|
103
109
|
}
|
|
104
110
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorize-http-client-decorator.js","sourceRoot":"","sources":["../../../../src/system/container/decorators/authorize-http-client-decorator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA8C;AAE9C,oDAAuC;AACvC,sDAAyC;AAEzC,kCAAqC;AAGrC;IACE,sCAC+C,OAAsB,EACzB,UAA6B;QAD1B,YAAO,GAAP,OAAO,CAAe;QACzB,eAAU,GAAV,UAAU,CAAmB;IACtE,CAAC;IAEE,8CAAO,GAAb,UAAc,IAAwB
|
|
1
|
+
{"version":3,"file":"authorize-http-client-decorator.js","sourceRoot":"","sources":["../../../../src/system/container/decorators/authorize-http-client-decorator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA8C;AAE9C,oDAAuC;AACvC,sDAAyC;AAEzC,kCAAqC;AAGrC;IACE,sCAC+C,OAAsB,EACzB,UAA6B;QAD1B,YAAO,GAAP,OAAO,CAAe;QACzB,eAAU,GAAV,UAAU,CAAmB;IACtE,CAAC;IAEE,8CAAO,GAAb,UAAc,IAAwB;;;;;;wBAEf,KAAA,OAAO,CAAC,OAAO,CAAA;iCAAf,wBAAe;wBAAI,qBAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAA;;8BAA/B,SAA+B;;;wBAAjE,YAAY,KAAqD;wBAEjE,KAAK,GAAG,OAAO,CAAC,OAAO,KAAI,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,KAAK,CAAA,CAAC;wBAErD,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE;4BAClB,OAAO,EAAE,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,EAAE;gCACzC,aAAa,EAAE,iBAAU,KAAK,IAAI,EAAE,CAAE;gCACtC,IAAI,EAAE,OAAO;6BACd,CAAC;yBACH,CAAC,CAAC;wBAEkB,qBAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAA;;wBAAlD,YAAY,GAAG,SAAmC;wBAExD,sBAAO,YAAY,EAAC;;;;KACrB;IAtBU,4BAA4B;QADxC,IAAA,sBAAU,GAAE;QAGR,WAAA,IAAA,kBAAM,EAAC,kBAAU,CAAC,OAAO,CAAC,CAAA;QAC1B,WAAA,IAAA,kBAAM,EAAC,kBAAU,CAAC,IAAI,CAAC,CAAA;;OAHf,4BAA4B,CAuBxC;IAAD,mCAAC;CAAA,AAxBD,IAwBC;AAvBY,oEAA4B"}
|
|
@@ -37,11 +37,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.Layout = void 0;
|
|
38
38
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
39
39
|
var header_1 = require("./header/index.js");
|
|
40
|
-
var context_1 = require("../../context/index.js");
|
|
41
40
|
var menu_1 = require("../data/menu/index.js");
|
|
42
41
|
var S = __importStar(require("./styles.js"));
|
|
43
42
|
function Layout(props) {
|
|
44
|
-
var settings = (0, context_1.useMenu)().settings;
|
|
45
43
|
return ((0, jsx_runtime_1.jsxs)(S.Layout, { children: [(0, jsx_runtime_1.jsx)(header_1.Header, __assign({}, props)), (0, jsx_runtime_1.jsx)(menu_1.MenuSwitch, {}), props.children && (0, jsx_runtime_1.jsx)("main", { children: props.children })] }));
|
|
46
44
|
}
|
|
47
45
|
exports.Layout = Layout;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../src/system/presentation/components/layout/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAiC;AACjC,
|
|
1
|
+
{"version":3,"file":"component.js","sourceRoot":"","sources":["../../../../../src/system/presentation/components/layout/component.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAiC;AACjC,qCAAyC;AAIzC,0CAA6B;AAE7B,SAAgB,MAAM,CAAC,KAAc;IAEnC,OAAO,CACL,wBAAC,CAAC,CAAC,MAAM,eACP,uBAAC,eAAM,eAAK,KAAK,EAAI,EAErB,uBAAC,iBAAU,KAAG,EAEb,KAAK,CAAC,QAAQ,IAAI,2CAAO,KAAK,CAAC,QAAQ,GAAQ,IACvC,CACZ,CAAA;AACH,CAAC;AAXD,wBAWC"}
|
|
@@ -9,6 +9,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.Layout = void 0;
|
|
11
11
|
var styled_components_1 = __importDefault(require("styled-components"));
|
|
12
|
-
exports.Layout = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n --spacing: 30px;\n display: grid;\n grid-template-columns: max-content 1fr;\n grid-template-rows: max-content 1fr;\n grid-template-areas:\n 'header header'\n 'aside main';\n\n header,\n main {\n padding-left: var(--spacing);\n padding-right: var(--spacing);\n }\n\n header {\n grid-area: header;\n }\n\n aside {\n grid-area: aside;\n }\n\n main {\n grid-area: main;\n margin: var(--spacing) 0;\n position: relative;\n z-index: 1;\n height: 100%;\n
|
|
12
|
+
exports.Layout = (0, styled_components_1.default)('div')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n width: 100%;\n --spacing: 30px;\n display: grid;\n grid-template-columns: max-content 1fr;\n grid-template-rows: max-content 1fr;\n grid-template-areas:\n 'header header'\n 'aside main';\n\n header,\n main {\n padding-left: var(--spacing);\n padding-right: var(--spacing);\n }\n\n header {\n grid-area: header;\n }\n\n aside {\n grid-area: aside;\n }\n\n main {\n grid-area: main;\n margin: var(--spacing) 0;\n position: relative;\n z-index: 1;\n height: 100%;\n }\n"], ["\n width: 100%;\n --spacing: 30px;\n display: grid;\n grid-template-columns: max-content 1fr;\n grid-template-rows: max-content 1fr;\n grid-template-areas:\n 'header header'\n 'aside main';\n\n header,\n main {\n padding-left: var(--spacing);\n padding-right: var(--spacing);\n }\n\n header {\n grid-area: header;\n }\n\n aside {\n grid-area: aside;\n }\n\n main {\n grid-area: main;\n margin: var(--spacing) 0;\n position: relative;\n z-index: 1;\n height: 100%;\n }\n"])));
|
|
13
13
|
var templateObject_1;
|
|
14
14
|
//# sourceMappingURL=styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/system/presentation/components/layout/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,MAAM,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../../src/system/presentation/components/layout/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAEzB,QAAA,MAAM,GAAG,IAAA,2BAAM,EAAC,KAAK,CAAC,0kBAAA,ugBA+BlC,KAAA"}
|