mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 08:13:12 +09:00
Fix accidentally duplicated imports
Import lib instead of lib/data in the messages files to avoid these getting packed with the web build.
This commit is contained in:
1 parent
04b46540fb
commit
790b03bc03
2 files changed
+5
-5
No files matched your search
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
const { jsonArray } = require("@clusterio/lib/data");
|
const { libData } = require("@clusterio/lib");
|
||||||
|
|
||||||
class ContributionEvent {
|
class ContributionEvent {
|
||||||
static type = "event";
|
static type = "event";
|
||||||
@@ -166,7 +166,7 @@ class SyncTechnologiesRequest {
|
|||||||
return new this(json.map(e => Technology.fromJSON(e)));
|
return new this(json.map(e => Technology.fromJSON(e)));
|
||||||
}
|
}
|
||||||
|
|
||||||
static Response = jsonArray(Technology);
|
static Response = libData.jsonArray(Technology);
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
const { jsonArray } = require("@clusterio/lib/data");
|
const { libData } = require("@clusterio/lib");
|
||||||
|
|
||||||
class Item {
|
class Item {
|
||||||
/** @type {string} */
|
/** @type {string} */
|
||||||
@@ -87,7 +87,7 @@ class RemoveRequest {
|
|||||||
return new this(json.items);
|
return new this(json.items);
|
||||||
}
|
}
|
||||||
|
|
||||||
static Response = jsonArray(Item);
|
static Response = libData.jsonArray(Item);
|
||||||
}
|
}
|
||||||
|
|
||||||
class GetStorageRequest {
|
class GetStorageRequest {
|
||||||
@@ -96,7 +96,7 @@ class GetStorageRequest {
|
|||||||
static dst = "controller";
|
static dst = "controller";
|
||||||
static plugin = "subspace_storage";
|
static plugin = "subspace_storage";
|
||||||
static permission = "subspace_storage.storage.view";
|
static permission = "subspace_storage.storage.view";
|
||||||
static Response = jsonArray(Item);
|
static Response = libData.jsonArray(Item);
|
||||||
}
|
}
|
||||||
|
|
||||||
class UpdateStorageEvent {
|
class UpdateStorageEvent {
|
||||||
|
|||||||
Reference in new issue
Block a user