infinity-forge 6.1.0 → 6.1.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.
|
@@ -41,24 +41,25 @@ var ui_1 = require("../../../ui/index.js");
|
|
|
41
41
|
var system_1 = require("../../../system/index.js");
|
|
42
42
|
function useLoadMenu() {
|
|
43
43
|
var _this = this;
|
|
44
|
+
var _a;
|
|
44
45
|
var InjectedRemotes = (0, system_1.useInfraInjection)().InjectedRemotes;
|
|
45
46
|
return (0, ui_1.useQuery)({
|
|
46
|
-
queryKey: 'RemoteMenu',
|
|
47
|
+
queryKey: 'RemoteMenu' + JSON.stringify(((_a = InjectedRemotes === null || InjectedRemotes === void 0 ? void 0 : InjectedRemotes.menu) === null || _a === void 0 ? void 0 : _a.menu) || {}),
|
|
47
48
|
queryFn: function () { return __awaiter(_this, void 0, void 0, function () {
|
|
48
49
|
var response;
|
|
49
|
-
var _a
|
|
50
|
-
return __generator(this, function (
|
|
51
|
-
switch (
|
|
50
|
+
var _a;
|
|
51
|
+
return __generator(this, function (_b) {
|
|
52
|
+
switch (_b.label) {
|
|
52
53
|
case 0:
|
|
53
|
-
if (
|
|
54
|
-
return [2 /*return*/, (
|
|
54
|
+
if (InjectedRemotes === null || InjectedRemotes === void 0 ? void 0 : InjectedRemotes.menu) {
|
|
55
|
+
return [2 /*return*/, (_a = InjectedRemotes === null || InjectedRemotes === void 0 ? void 0 : InjectedRemotes.menu) === null || _a === void 0 ? void 0 : _a.menu];
|
|
55
56
|
}
|
|
56
57
|
return [4 /*yield*/, (0, ui_1.api)({
|
|
57
58
|
url: 'Menu',
|
|
58
59
|
method: 'get',
|
|
59
60
|
})];
|
|
60
61
|
case 1:
|
|
61
|
-
response =
|
|
62
|
+
response = _b.sent();
|
|
62
63
|
return [2 /*return*/, response];
|
|
63
64
|
}
|
|
64
65
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-load-menu.js","sourceRoot":"","sources":["../../../../src/system/hooks/menu/use-load-menu.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,kCAmBC;AAjCD,2BAA0C;AAE1C,mCAA4C;AAY5C,SAAgB,WAAW;IAA3B,iBAmBC
|
|
1
|
+
{"version":3,"file":"use-load-menu.js","sourceRoot":"","sources":["../../../../src/system/hooks/menu/use-load-menu.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,kCAmBC;AAjCD,2BAA0C;AAE1C,mCAA4C;AAY5C,SAAgB,WAAW;IAA3B,iBAmBC;;IAlBS,IAAA,eAAe,GAAK,IAAA,0BAAiB,GAAE,gBAAxB,CAAwB;IAE/C,OAAO,IAAA,aAAQ,EAAC;QACd,QAAQ,EAAE,YAAY,GAAG,IAAI,CAAC,SAAS,CAAC,CAAA,MAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,IAAI,0CAAE,IAAI,KAAI,EAAE,CAAC;QAC1E,OAAO,EAAE;;;;;;wBACP,IAAI,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,IAAI,EAAE,CAAC;4BAC1B,sBAAO,MAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,IAAI,0CAAE,IAAI,EAAA;wBACpC,CAAC;wBAEgB,qBAAM,IAAA,QAAG,EAAC;gCACzB,GAAG,EAAE,MAAM;gCACX,MAAM,EAAE,KAAK;6BACd,CAAC,EAAA;;wBAHI,QAAQ,GAAG,SAGf;wBAEF,sBAAO,QAAsB,EAAA;;;aAC9B;QACD,WAAW,EAAE,IAAI;KAClB,CAAC,CAAA;AACJ,CAAC"}
|