infinity-forge 1.9.7 → 1.9.9
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.
|
@@ -83,31 +83,32 @@ 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, _a, token, httpResponse;
|
|
87
|
-
var _b, _c
|
|
88
|
-
return __generator(this, function (
|
|
89
|
-
switch (
|
|
86
|
+
var storageToken, _a, token, isPainel, httpResponse;
|
|
87
|
+
var _b, _c;
|
|
88
|
+
return __generator(this, function (_d) {
|
|
89
|
+
switch (_d.label) {
|
|
90
90
|
case 0:
|
|
91
91
|
_a = process.browser;
|
|
92
92
|
if (!_a) return [3 /*break*/, 2];
|
|
93
93
|
return [4 /*yield*/, this.storage.get("token")];
|
|
94
94
|
case 1:
|
|
95
|
-
_a = (
|
|
96
|
-
|
|
95
|
+
_a = (_d.sent());
|
|
96
|
+
_d.label = 2;
|
|
97
97
|
case 2:
|
|
98
98
|
storageToken = _a;
|
|
99
99
|
token = process.browser && (storageToken === null || storageToken === void 0 ? void 0 : storageToken.value);
|
|
100
|
-
|
|
100
|
+
isPainel = ((_b = data === null || data === void 0 ? void 0 : data.headers) === null || _b === void 0 ? void 0 : _b.painel) ? (_c = data === null || data === void 0 ? void 0 : data.headers) === null || _c === void 0 ? void 0 : _c.painel : process.env.painel ? process.env.painel : undefined;
|
|
101
|
+
console.log(isPainel, process.env, "IsPainel");
|
|
101
102
|
Object.assign(data, {
|
|
102
103
|
headers: Object.assign(data.headers || {}, {
|
|
103
104
|
Authorization: "Bearer ".concat(token || ''),
|
|
104
105
|
flag: 'token',
|
|
105
|
-
painel:
|
|
106
|
+
painel: isPainel
|
|
106
107
|
}),
|
|
107
108
|
});
|
|
108
109
|
return [4 /*yield*/, this.httpClient.request(data)];
|
|
109
110
|
case 3:
|
|
110
|
-
httpResponse =
|
|
111
|
+
httpResponse = _d.sent();
|
|
111
112
|
return [2 /*return*/, httpResponse];
|
|
112
113
|
}
|
|
113
114
|
});
|
|
@@ -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;;;;;;;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;
|
|
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,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D,mCAAC;CAAA,AA7BD,IA6BC;AA5BY,oEAA4B"}
|
|
@@ -26,8 +26,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
26
26
|
exports.THeadItem = void 0;
|
|
27
27
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
28
|
var router_1 = require("next/router");
|
|
29
|
-
var ui_1 = require("../../../../../../../../ui");
|
|
30
|
-
var S = __importStar(require("./styles"));
|
|
29
|
+
var ui_1 = require("../../../../../../../../ui/index.js");
|
|
30
|
+
var S = __importStar(require("./styles.js"));
|
|
31
31
|
function THeadItem(_a) {
|
|
32
32
|
var colunm = _a.colunm, disableOrdenationTable = _a.disableOrdenationTable;
|
|
33
33
|
var router = (0, router_1.useRouter)();
|