@expcluster/legacy 7.0.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.
Files changed (108) hide show
  1. package/LICENSE.md +21 -0
  2. package/dist/browser/package.json +40 -0
  3. package/dist/browser/tsconfig.browser.tsbuildinfo +1 -0
  4. package/dist/browser/web/index.d.ts +1 -0
  5. package/dist/browser/web/index.d.ts.map +1 -0
  6. package/dist/browser/web/index.js +2 -0
  7. package/dist/browser/web/index.js.map +1 -0
  8. package/dist/node/index.d.ts +3 -0
  9. package/dist/node/index.d.ts.map +1 -0
  10. package/dist/node/index.js +10 -0
  11. package/dist/node/index.js.map +1 -0
  12. package/dist/node/instance.d.ts +4 -0
  13. package/dist/node/instance.d.ts.map +1 -0
  14. package/dist/node/instance.js +8 -0
  15. package/dist/node/instance.js.map +1 -0
  16. package/dist/node/tsconfig.node.tsbuildinfo +1 -0
  17. package/dist/web/manifest.json +7 -0
  18. package/dist/web/static/exp_legacy.9b6538559ed5e689539c.js +355 -0
  19. package/dist/web/static/index_ts.8f9d451c8d3f7f293da6.js +22 -0
  20. package/dist/web/static/main.94e1b48804112ca8bdfc.js +118 -0
  21. package/dist/web/static/package_json.a83729efdb0697b12396.js +22 -0
  22. package/dist/web/static/web_index_tsx.e5a01ac0e4b0a6f6517f.js +21 -0
  23. package/index.ts +8 -0
  24. package/instance.ts +7 -0
  25. package/module/config/_file_loader.lua +29 -0
  26. package/module/config/advanced_start.lua +112 -0
  27. package/module/config/afk_kick.lua +14 -0
  28. package/module/config/bonus.lua +105 -0
  29. package/module/config/chat_reply.lua +136 -0
  30. package/module/config/compilatron.lua +25 -0
  31. package/module/config/death_logger.lua +15 -0
  32. package/module/config/deconlog.lua +11 -0
  33. package/module/config/discord_alerts.lua +25 -0
  34. package/module/config/expcore/permission_groups.lua +143 -0
  35. package/module/config/graftorio.lua +7 -0
  36. package/module/config/gui/autofill.lua +129 -0
  37. package/module/config/gui/player_list_actions.lua +201 -0
  38. package/module/config/gui/rockets.lua +47 -0
  39. package/module/config/gui/science.lua +21 -0
  40. package/module/config/gui/tasks.lua +13 -0
  41. package/module/config/gui/warps.lua +52 -0
  42. package/module/config/inventory_clear.lua +9 -0
  43. package/module/config/join_messages.lua +8 -0
  44. package/module/config/lawnmower.lua +6 -0
  45. package/module/config/logging.lua +30 -0
  46. package/module/config/miner.lua +8 -0
  47. package/module/config/module.lua +86 -0
  48. package/module/config/nukeprotect.lua +30 -0
  49. package/module/config/pollution_grading.lua +9 -0
  50. package/module/config/popup_messages.lua +10 -0
  51. package/module/config/preset_player_colours.lua +33 -0
  52. package/module/config/preset_player_quickbar.lua +6 -0
  53. package/module/config/protection.lua +17 -0
  54. package/module/config/repair.lua +8 -0
  55. package/module/config/research.lua +179 -0
  56. package/module/config/scorched_earth.lua +116 -0
  57. package/module/config/spawn_area.lua +255 -0
  58. package/module/config/station_auto_name.lua +11 -0
  59. package/module/config/statistics.lua +46 -0
  60. package/module/config/vlayer.lua +180 -0
  61. package/module/config/warnings.lua +38 -0
  62. package/module/control.lua +46 -0
  63. package/module/expcore/datastore.lua +884 -0
  64. package/module/expcore/external.lua +146 -0
  65. package/module/expcore/permission_groups.lua +355 -0
  66. package/module/expcore/player_data.lua +152 -0
  67. package/module/locale/en/addons.cfg +31 -0
  68. package/module/locale/en/data.cfg +114 -0
  69. package/module/locale/en/expcore.cfg +16 -0
  70. package/module/locale/en/gui.cfg +114 -0
  71. package/module/locale/zh-CN/addons.cfg +31 -0
  72. package/module/locale/zh-CN/data.cfg +114 -0
  73. package/module/locale/zh-CN/expcore.cfg +16 -0
  74. package/module/locale/zh-CN/gui.cfg +122 -0
  75. package/module/locale/zh-TW/addons.cfg +31 -0
  76. package/module/locale/zh-TW/data.cfg +114 -0
  77. package/module/locale/zh-TW/expcore.cfg +16 -0
  78. package/module/locale/zh-TW/gui.cfg +122 -0
  79. package/module/module.json +14 -0
  80. package/module/module_exports.lua +3 -0
  81. package/module/modules/control/jail.lua +119 -0
  82. package/module/modules/control/protection.lua +204 -0
  83. package/module/modules/control/reports.lua +225 -0
  84. package/module/modules/control/spectate.lua +173 -0
  85. package/module/modules/control/vlayer.lua +807 -0
  86. package/module/modules/control/warnings.lua +331 -0
  87. package/module/modules/control/warps.lua +488 -0
  88. package/module/modules/data/alt-view.lua +26 -0
  89. package/module/modules/data/greetings.lua +45 -0
  90. package/module/modules/data/language.lua +21 -0
  91. package/module/modules/data/player-colours.lua +63 -0
  92. package/module/modules/data/quickbar.lua +72 -0
  93. package/module/modules/data/statistics.lua +181 -0
  94. package/module/modules/data/tag.lua +82 -0
  95. package/module/modules/data/toolbar.lua +31 -0
  96. package/module/modules/graftorio/forcestats.lua +196 -0
  97. package/module/modules/graftorio/general.lua +63 -0
  98. package/module/modules/graftorio/require.lua +28 -0
  99. package/module/modules/graftorio/statics.lua +36 -0
  100. package/module/modules/gui/vlayer.lua +547 -0
  101. package/module/modules/gui/warp-list.lua +909 -0
  102. package/module/utils/event.lua +86 -0
  103. package/package.json +38 -0
  104. package/tsconfig.browser.json +4 -0
  105. package/tsconfig.json +7 -0
  106. package/tsconfig.node.json +5 -0
  107. package/web/index.tsx +0 -0
  108. package/webpack.config.js +29 -0
@@ -0,0 +1,355 @@
1
+ /*
2
+ * ATTENTION: An "eval-source-map" devtool has been used.
3
+ * This devtool is neither made for production nor for readable output files.
4
+ * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
5
+ * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
6
+ * or disable the default devtool with "devtool: false".
7
+ * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
8
+ */
9
+ /******/ (() => { // webpackBootstrap
10
+ /******/ "use strict";
11
+ /******/ var __webpack_modules__ = ({
12
+
13
+ /***/ 518
14
+ /*!***********************!*\
15
+ !*** container entry ***!
16
+ \***********************/
17
+ (__unused_webpack_module, exports, __webpack_require__) {
18
+
19
+ const moduleMap = {
20
+ "./": () => {
21
+ return __webpack_require__.e("index_ts").then(() => (() => ((__webpack_require__(/*! ./index.ts */ 566)))));
22
+ },
23
+ "./package.json": () => {
24
+ return __webpack_require__.e("package_json").then(() => (() => ((__webpack_require__(/*! ./package.json */ 330)))));
25
+ },
26
+ "./web": () => {
27
+ return __webpack_require__.e("web_index_tsx").then(() => (() => ((__webpack_require__(/*! ./web/index.tsx */ 769)))));
28
+ }
29
+ };
30
+ const get = (module, getScope) => {
31
+ __webpack_require__.R = getScope;
32
+ getScope = (
33
+ __webpack_require__.o(moduleMap, module)
34
+ ? moduleMap[module]()
35
+ : Promise.resolve().then(() => {
36
+ throw new Error('Module "' + module + '" does not exist in container.');
37
+ })
38
+ );
39
+ __webpack_require__.R = undefined;
40
+ return getScope;
41
+ };
42
+ const init = (shareScope, initScope) => {
43
+ if (!__webpack_require__.S) return;
44
+ const name = "default"
45
+ const oldScope = __webpack_require__.S[name];
46
+ if(oldScope && oldScope !== shareScope) throw new Error("Container initialization failed as it has already been initialized with a different share scope");
47
+ __webpack_require__.S[name] = shareScope;
48
+ return __webpack_require__.I(name, initScope);
49
+ };
50
+
51
+ // This exports getters to disallow modifications
52
+ __webpack_require__.d(exports, {
53
+ get: () => (get),
54
+ init: () => (init)
55
+ });
56
+
57
+ /***/ }
58
+
59
+ /******/ });
60
+ /************************************************************************/
61
+ /******/ // The module cache
62
+ /******/ const __webpack_module_cache__ = {};
63
+ /******/
64
+ /******/ // The require function
65
+ /******/ function __webpack_require__(moduleId) {
66
+ /******/ // Check if module is in cache
67
+ /******/ const cachedModule = __webpack_module_cache__[moduleId];
68
+ /******/ if (cachedModule !== undefined) {
69
+ /******/ return cachedModule.exports;
70
+ /******/ }
71
+ /******/ // Create a new module (and put it into the cache)
72
+ /******/ const module = __webpack_module_cache__[moduleId] = {
73
+ /******/ // no module.id needed
74
+ /******/ // no module.loaded needed
75
+ /******/ exports: {}
76
+ /******/ };
77
+ /******/
78
+ /******/ // Execute the module function
79
+ /******/ if (!(moduleId in __webpack_modules__)) {
80
+ /******/ delete __webpack_module_cache__[moduleId];
81
+ /******/ const e = new Error("Cannot find module '" + moduleId + "'");
82
+ /******/ e.code = 'MODULE_NOT_FOUND';
83
+ /******/ throw e;
84
+ /******/ }
85
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
86
+ /******/
87
+ /******/ // Return the exports of the module
88
+ /******/ return module.exports;
89
+ /******/ }
90
+ /******/
91
+ /******/ // expose the modules object (__webpack_modules__)
92
+ /******/ __webpack_require__.m = __webpack_modules__;
93
+ /******/
94
+ /******/ // expose the module cache
95
+ /******/ __webpack_require__.c = __webpack_module_cache__;
96
+ /******/
97
+ /************************************************************************/
98
+ /******/ /* webpack/runtime/define property getters */
99
+ /******/ // define getter/value functions for harmony exports
100
+ /******/ __webpack_require__.d = (exports, definition) => {
101
+ /******/ for(var key in definition) {
102
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
103
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
104
+ /******/ }
105
+ /******/ }
106
+ /******/ };
107
+ /******/
108
+ /******/ /* webpack/runtime/ensure chunk */
109
+ /******/ __webpack_require__.f = {};
110
+ /******/ // This file contains only the entry chunk.
111
+ /******/ // The chunk loading function for additional chunks
112
+ /******/ __webpack_require__.e = (chunkId) => {
113
+ /******/ return Promise.all(Object.keys(__webpack_require__.f).reduce((promises, key) => {
114
+ /******/ __webpack_require__.f[key](chunkId, promises);
115
+ /******/ return promises;
116
+ /******/ }, []));
117
+ /******/ };
118
+ /******/
119
+ /******/ /* webpack/runtime/get javascript chunk filename */
120
+ /******/ // This function allow to reference async chunks
121
+ /******/ __webpack_require__.u = (chunkId) => ("static/" + chunkId + "." + {"index_ts":"8f9d451c8d3f7f293da6","package_json":"a83729efdb0697b12396","web_index_tsx":"e5a01ac0e4b0a6f6517f"}[chunkId] + ".js");
122
+ /******/
123
+ /******/ /* webpack/runtime/global */
124
+ /******/ __webpack_require__.g = (function() {
125
+ /******/ if (typeof globalThis === 'object') return globalThis;
126
+ /******/ try {
127
+ /******/ return this || new Function('return this')();
128
+ /******/ } catch (e) {
129
+ /******/ if (typeof window === 'object') return window;
130
+ /******/ }
131
+ /******/ })();
132
+ /******/
133
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
134
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop));
135
+ /******/
136
+ /******/ /* webpack/runtime/load script */
137
+ /******/ (() => {
138
+ /******/ const inProgress = {};
139
+ /******/ const dataWebpackPrefix = "@expcluster/legacy:";
140
+ /******/ // loadScript function to load a script via script tag
141
+ /******/ __webpack_require__.l = (url, done, key, chunkId) => {
142
+ /******/ if(inProgress[url]) { inProgress[url].push(done); return; }
143
+ /******/ let script, needAttach;
144
+ /******/ if(key !== undefined) {
145
+ /******/ const scripts = document.getElementsByTagName("script");
146
+ /******/ for(var i = 0; i < scripts.length; i++) {
147
+ /******/ const s = scripts[i];
148
+ /******/ if(s.getAttribute("src") == url || s.getAttribute("data-webpack") == dataWebpackPrefix + key) { script = s; break; }
149
+ /******/ }
150
+ /******/ }
151
+ /******/ if(!script) {
152
+ /******/ needAttach = true;
153
+ /******/ script = document.createElement('script');
154
+ /******/
155
+ /******/ script.charset = 'utf-8';
156
+ /******/ if (__webpack_require__.nc) {
157
+ /******/ script.setAttribute("nonce", __webpack_require__.nc);
158
+ /******/ }
159
+ /******/ script.setAttribute("data-webpack", dataWebpackPrefix + key);
160
+ /******/
161
+ /******/ script.src = url;
162
+ /******/ }
163
+ /******/ inProgress[url] = [done];
164
+ /******/ const onScriptComplete = (prev, event) => {
165
+ /******/ // avoid mem leaks in IE.
166
+ /******/ script.onerror = script.onload = null;
167
+ /******/ clearTimeout(timeout);
168
+ /******/ const doneFns = inProgress[url];
169
+ /******/ delete inProgress[url];
170
+ /******/ script.parentNode?.removeChild(script);
171
+ /******/ doneFns?.forEach((fn) => (fn(event)));
172
+ /******/ if(prev) return prev(event);
173
+ /******/ }
174
+ /******/ const timeout = setTimeout(onScriptComplete.bind(null, undefined, { type: 'timeout', target: script }), 120000);
175
+ /******/ script.onerror = onScriptComplete.bind(null, script.onerror);
176
+ /******/ script.onload = onScriptComplete.bind(null, script.onload);
177
+ /******/ needAttach && document.head.appendChild(script);
178
+ /******/ };
179
+ /******/ })();
180
+ /******/
181
+ /******/ /* webpack/runtime/make namespace object */
182
+ /******/ // define __esModule on exports
183
+ /******/ __webpack_require__.r = (exports) => {
184
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
185
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
186
+ /******/ };
187
+ /******/
188
+ /******/ /* webpack/runtime/sharing */
189
+ /******/ (() => {
190
+ /******/ __webpack_require__.S = {};
191
+ /******/ const initPromises = {};
192
+ /******/ const initTokens = {};
193
+ /******/ __webpack_require__.I = (name, initScope) => {
194
+ /******/ if(!initScope) initScope = [];
195
+ /******/ // handling circular init calls
196
+ /******/ let initToken = initTokens[name];
197
+ /******/ if(!initToken) initToken = initTokens[name] = {};
198
+ /******/ if(initScope.indexOf(initToken) >= 0) return;
199
+ /******/ initScope.push(initToken);
200
+ /******/ // only runs once
201
+ /******/ if(initPromises[name]) return initPromises[name];
202
+ /******/ // creates a new share scope if needed
203
+ /******/ if(!__webpack_require__.o(__webpack_require__.S, name)) __webpack_require__.S[name] = {};
204
+ /******/ // runs all init snippets from all modules reachable
205
+ /******/ const scope = __webpack_require__.S[name];
206
+ /******/ const warn = (msg) => {
207
+ /******/ if (typeof console !== "undefined" && console.warn) console.warn(msg);
208
+ /******/ };
209
+ /******/ const uniqueName = "@expcluster/legacy";
210
+ /******/ const register = (name, version, factory, eager) => {
211
+ /******/ const versions = scope[name] = scope[name] || {};
212
+ /******/ const activeVersion = versions[version];
213
+ /******/ if(!activeVersion || (!activeVersion.loaded && (!eager != !activeVersion.eager ? eager : uniqueName > activeVersion.from))) versions[version] = { get: factory, from: uniqueName, eager: !!eager };
214
+ /******/ };
215
+ /******/ const initExternal = (id) => {
216
+ /******/ const handleError = (err) => (warn("Initialization of sharing external failed: " + err));
217
+ /******/ try {
218
+ /******/ const module = __webpack_require__(id);
219
+ /******/ if(!module) return;
220
+ /******/ const initFn = (module) => (module && module.init && module.init(__webpack_require__.S[name], initScope))
221
+ /******/ if(module.then) return promises.push(module.then(initFn, handleError));
222
+ /******/ const initResult = initFn(module);
223
+ /******/ if(initResult?.then) return promises.push(initResult['catch'](handleError));
224
+ /******/ } catch(err) { handleError(err); }
225
+ /******/ }
226
+ /******/ const promises = [];
227
+ /******/ switch(name) {
228
+ /******/ }
229
+ /******/ if(!promises.length) return initPromises[name] = 1;
230
+ /******/ return initPromises[name] = Promise.all(promises).then(() => (initPromises[name] = 1));
231
+ /******/ };
232
+ /******/ })();
233
+ /******/
234
+ /******/ /* webpack/runtime/publicPath */
235
+ /******/ (() => {
236
+ /******/ let scriptUrl;
237
+ /******/ if (__webpack_require__.g.importScripts) scriptUrl = __webpack_require__.g.location + "";
238
+ /******/ const document = __webpack_require__.g.document;
239
+ /******/ if (!scriptUrl && document) {
240
+ /******/ if (document.currentScript?.tagName.toUpperCase() === 'SCRIPT')
241
+ /******/ scriptUrl = document.currentScript.src;
242
+ /******/ if (!scriptUrl) {
243
+ /******/ const scripts = document.getElementsByTagName("script");
244
+ /******/ if(scripts.length) {
245
+ /******/ let i = scripts.length - 1;
246
+ /******/ while (i > -1 && (!scriptUrl || !/^https?:/.test(scriptUrl))) scriptUrl = scripts[i--].src;
247
+ /******/ }
248
+ /******/ }
249
+ /******/ }
250
+ /******/ // When supporting browsers where an automatic publicPath is not supported you must specify an output.publicPath manually via configuration
251
+ /******/ // or pass an empty string ("") and set the __webpack_public_path__ variable from your code to use your own logic.
252
+ /******/ if (!scriptUrl) throw new Error("Automatic publicPath is not supported in this browser");
253
+ /******/ scriptUrl = scriptUrl.replace(/^blob:|[?#].*$/g, "").replace(/\/[^/]+$/, "/");
254
+ /******/ __webpack_require__.p = scriptUrl + "../";
255
+ /******/ })();
256
+ /******/
257
+ /******/ /* webpack/runtime/jsonp chunk loading */
258
+ /******/ (() => {
259
+ /******/ // no baseURI
260
+ /******/
261
+ /******/ // object to store loaded and loading chunks
262
+ /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
263
+ /******/ // [resolve, reject, Promise] = chunk loading, 0 = chunk loaded
264
+ /******/ const installedChunks = {
265
+ /******/ "exp_legacy": 0
266
+ /******/ };
267
+ /******/
268
+ /******/ __webpack_require__.f.j = (chunkId, promises) => {
269
+ /******/ // JSONP chunk loading for javascript
270
+ /******/ let installedChunkData = __webpack_require__.o(installedChunks, chunkId) ? installedChunks[chunkId] : undefined;
271
+ /******/ if(installedChunkData !== 0) { // 0 means "already installed".
272
+ /******/
273
+ /******/ // a Promise means "currently loading".
274
+ /******/ if(installedChunkData) {
275
+ /******/ promises.push(installedChunkData[2]);
276
+ /******/ } else {
277
+ /******/ if(true) { // all chunks have JS
278
+ /******/ // setup Promise in chunk cache
279
+ /******/ const promise = new Promise((resolve, reject) => (installedChunkData = installedChunks[chunkId] = [resolve, reject]));
280
+ /******/ promises.push(installedChunkData[2] = promise);
281
+ /******/
282
+ /******/ // create error before stack unwound to get useful stacktrace later
283
+ /******/ const error = new Error();
284
+ /******/ const loadingEnded = (event) => {
285
+ /******/ if(__webpack_require__.o(installedChunks, chunkId)) {
286
+ /******/ installedChunkData = installedChunks[chunkId];
287
+ /******/ if(installedChunkData !== 0) installedChunks[chunkId] = undefined;
288
+ /******/ if(installedChunkData) {
289
+ /******/ const errorType = event && (event.type === 'load' ? 'missing' : event.type);
290
+ /******/ const realSrc = event && event.target && event.target.src;
291
+ /******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
292
+ /******/ error.name = 'ChunkLoadError';
293
+ /******/ error.type = errorType;
294
+ /******/ error.request = realSrc;
295
+ /******/ error.event = event;
296
+ /******/ installedChunkData[1](error);
297
+ /******/ }
298
+ /******/ }
299
+ /******/ };
300
+ /******/ __webpack_require__.l(__webpack_require__.p + __webpack_require__.u(chunkId), loadingEnded, "chunk-" + chunkId, chunkId);
301
+ /******/ }
302
+ /******/ }
303
+ /******/ }
304
+ /******/ };
305
+ /******/
306
+ /******/ // no prefetching
307
+ /******/
308
+ /******/ // no preloaded
309
+ /******/
310
+ /******/ // no HMR
311
+ /******/
312
+ /******/ // no HMR manifest
313
+ /******/
314
+ /******/ // no on chunks loaded
315
+ /******/
316
+ /******/ // install a JSONP callback for chunk loading
317
+ /******/ const webpackJsonpCallback = (parentChunkLoadingFunction, data) => {
318
+ /******/ let [chunkIds, moreModules, runtime] = data;
319
+ /******/ // add "moreModules" to the modules object,
320
+ /******/ // then flag all "chunkIds" as loaded and fire callback
321
+ /******/ var moduleId, chunkId, i = 0;
322
+ /******/ if(chunkIds.some((id) => (installedChunks[id] !== 0))) {
323
+ /******/ for(moduleId in moreModules) {
324
+ /******/ if(__webpack_require__.o(moreModules, moduleId)) {
325
+ /******/ __webpack_require__.m[moduleId] = moreModules[moduleId];
326
+ /******/ }
327
+ /******/ }
328
+ /******/ if(runtime) var result = runtime(__webpack_require__);
329
+ /******/ }
330
+ /******/ if(parentChunkLoadingFunction) parentChunkLoadingFunction(data);
331
+ /******/ for(;i < chunkIds.length; i++) {
332
+ /******/ chunkId = chunkIds[i];
333
+ /******/ if(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {
334
+ /******/ installedChunks[chunkId][0]();
335
+ /******/ }
336
+ /******/ installedChunks[chunkId] = 0;
337
+ /******/ }
338
+ /******/
339
+ /******/ }
340
+ /******/
341
+ /******/ const chunkLoadingGlobal = self["webpackChunk_expcluster_legacy"] = self["webpackChunk_expcluster_legacy"] || [];
342
+ /******/ chunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));
343
+ /******/ chunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));
344
+ /******/ })();
345
+ /******/
346
+ /************************************************************************/
347
+ /******/
348
+ /******/ // module cache are used so entry inlining is disabled
349
+ /******/ // startup
350
+ /******/ // Load entry module and return exports
351
+ /******/ let __webpack_exports__ = __webpack_require__(518);
352
+ /******/ window.plugin_exp_legacy = __webpack_exports__;
353
+ /******/
354
+ /******/ })()
355
+ ;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ /*
3
+ * ATTENTION: An "eval-source-map" devtool has been used.
4
+ * This devtool is neither made for production nor for readable output files.
5
+ * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
6
+ * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
7
+ * or disable the default devtool with "devtool: false".
8
+ * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
9
+ */
10
+ (self["webpackChunk_expcluster_legacy"] = self["webpackChunk_expcluster_legacy"] || []).push([["index_ts"],{
11
+
12
+ /***/ 566
13
+ /*!******************!*\
14
+ !*** ./index.ts ***!
15
+ \******************/
16
+ (__unused_webpack_module, __webpack_exports__, __webpack_require__) {
17
+
18
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ plugin: () => (/* binding */ plugin)\n/* harmony export */ });\nconst plugin = {\n name: \"exp_legacy\",\n title: \"exp_legacy\",\n description: \"Example Description. Plugin. Change me in index.ts\",\n instanceEntrypoint: \"./dist/node/instance\"\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiNTY2LmpzIiwibWFwcGluZ3MiOiI7Ozs7QUFFTyxNQUFNQSxTQUFnQztJQUM1Q0MsTUFBTTtJQUNOQyxPQUFPO0lBQ1BDLGFBQWE7SUFDYkMsb0JBQW9CO0FBQ3JCLEVBQUUiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9AZXhwY2x1c3Rlci9sZWdhY3kvLi9pbmRleC50cz9hOTU5Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIGxpYiBmcm9tIFwiQGNsdXN0ZXJpby9saWJcIjtcblxuZXhwb3J0IGNvbnN0IHBsdWdpbjogbGliLlBsdWdpbkRlY2xhcmF0aW9uID0ge1xuXHRuYW1lOiBcImV4cF9sZWdhY3lcIixcblx0dGl0bGU6IFwiZXhwX2xlZ2FjeVwiLFxuXHRkZXNjcmlwdGlvbjogXCJFeGFtcGxlIERlc2NyaXB0aW9uLiBQbHVnaW4uIENoYW5nZSBtZSBpbiBpbmRleC50c1wiLFxuXHRpbnN0YW5jZUVudHJ5cG9pbnQ6IFwiLi9kaXN0L25vZGUvaW5zdGFuY2VcIixcbn07XG4iXSwibmFtZXMiOlsicGx1Z2luIiwibmFtZSIsInRpdGxlIiwiZGVzY3JpcHRpb24iLCJpbnN0YW5jZUVudHJ5cG9pbnQiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///566\n\n}");
19
+
20
+ /***/ }
21
+
22
+ }]);
@@ -0,0 +1,118 @@
1
+ /*
2
+ * ATTENTION: An "eval-source-map" devtool has been used.
3
+ * This devtool is neither made for production nor for readable output files.
4
+ * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
5
+ * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
6
+ * or disable the default devtool with "devtool: false".
7
+ * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
8
+ */
9
+ /******/ (() => { // webpackBootstrap
10
+ /******/ var __webpack_modules__ = ({
11
+
12
+ /***/ 769
13
+ /*!***********************!*\
14
+ !*** ./web/index.tsx ***!
15
+ \***********************/
16
+ () {
17
+
18
+ eval("{//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIiLCJmaWxlIjoiNzY5LmpzIn0=\n//# sourceURL=webpack-internal:///769\n\n}");
19
+
20
+ /***/ }
21
+
22
+ /******/ });
23
+ /************************************************************************/
24
+ /******/ // The module cache
25
+ /******/ const __webpack_module_cache__ = {};
26
+ /******/
27
+ /******/ // The require function
28
+ /******/ function __webpack_require__(moduleId) {
29
+ /******/ // Check if module is in cache
30
+ /******/ const cachedModule = __webpack_module_cache__[moduleId];
31
+ /******/ if (cachedModule !== undefined) {
32
+ /******/ return cachedModule.exports;
33
+ /******/ }
34
+ /******/ // Create a new module (and put it into the cache)
35
+ /******/ const module = __webpack_module_cache__[moduleId] = {
36
+ /******/ // no module.id needed
37
+ /******/ // no module.loaded needed
38
+ /******/ exports: {}
39
+ /******/ };
40
+ /******/
41
+ /******/ // Execute the module function
42
+ /******/ if (!(moduleId in __webpack_modules__)) {
43
+ /******/ delete __webpack_module_cache__[moduleId];
44
+ /******/ const e = new Error("Cannot find module '" + moduleId + "'");
45
+ /******/ e.code = 'MODULE_NOT_FOUND';
46
+ /******/ throw e;
47
+ /******/ }
48
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
49
+ /******/
50
+ /******/ // Return the exports of the module
51
+ /******/ return module.exports;
52
+ /******/ }
53
+ /******/
54
+ /******/ // expose the modules object (__webpack_modules__)
55
+ /******/ __webpack_require__.m = __webpack_modules__;
56
+ /******/
57
+ /******/ // expose the module cache
58
+ /******/ __webpack_require__.c = __webpack_module_cache__;
59
+ /******/
60
+ /************************************************************************/
61
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
62
+ /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop));
63
+ /******/
64
+ /******/ /* webpack/runtime/sharing */
65
+ /******/ (() => {
66
+ /******/ __webpack_require__.S = {};
67
+ /******/ const initPromises = {};
68
+ /******/ const initTokens = {};
69
+ /******/ __webpack_require__.I = (name, initScope) => {
70
+ /******/ if(!initScope) initScope = [];
71
+ /******/ // handling circular init calls
72
+ /******/ let initToken = initTokens[name];
73
+ /******/ if(!initToken) initToken = initTokens[name] = {};
74
+ /******/ if(initScope.indexOf(initToken) >= 0) return;
75
+ /******/ initScope.push(initToken);
76
+ /******/ // only runs once
77
+ /******/ if(initPromises[name]) return initPromises[name];
78
+ /******/ // creates a new share scope if needed
79
+ /******/ if(!__webpack_require__.o(__webpack_require__.S, name)) __webpack_require__.S[name] = {};
80
+ /******/ // runs all init snippets from all modules reachable
81
+ /******/ const scope = __webpack_require__.S[name];
82
+ /******/ const warn = (msg) => {
83
+ /******/ if (typeof console !== "undefined" && console.warn) console.warn(msg);
84
+ /******/ };
85
+ /******/ const uniqueName = "@expcluster/legacy";
86
+ /******/ const register = (name, version, factory, eager) => {
87
+ /******/ const versions = scope[name] = scope[name] || {};
88
+ /******/ const activeVersion = versions[version];
89
+ /******/ if(!activeVersion || (!activeVersion.loaded && (!eager != !activeVersion.eager ? eager : uniqueName > activeVersion.from))) versions[version] = { get: factory, from: uniqueName, eager: !!eager };
90
+ /******/ };
91
+ /******/ const initExternal = (id) => {
92
+ /******/ const handleError = (err) => (warn("Initialization of sharing external failed: " + err));
93
+ /******/ try {
94
+ /******/ const module = __webpack_require__(id);
95
+ /******/ if(!module) return;
96
+ /******/ const initFn = (module) => (module && module.init && module.init(__webpack_require__.S[name], initScope))
97
+ /******/ if(module.then) return promises.push(module.then(initFn, handleError));
98
+ /******/ const initResult = initFn(module);
99
+ /******/ if(initResult?.then) return promises.push(initResult['catch'](handleError));
100
+ /******/ } catch(err) { handleError(err); }
101
+ /******/ }
102
+ /******/ const promises = [];
103
+ /******/ switch(name) {
104
+ /******/ }
105
+ /******/ if(!promises.length) return initPromises[name] = 1;
106
+ /******/ return initPromises[name] = Promise.all(promises).then(() => (initPromises[name] = 1));
107
+ /******/ };
108
+ /******/ })();
109
+ /******/
110
+ /************************************************************************/
111
+ /******/
112
+ /******/ // module cache are used so entry inlining is disabled
113
+ /******/ // startup
114
+ /******/ // Load entry module and return exports
115
+ /******/ let __webpack_exports__ = __webpack_require__(769);
116
+ /******/
117
+ /******/ })()
118
+ ;
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ /*
3
+ * ATTENTION: An "eval-source-map" devtool has been used.
4
+ * This devtool is neither made for production nor for readable output files.
5
+ * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
6
+ * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
7
+ * or disable the default devtool with "devtool: false".
8
+ * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
9
+ */
10
+ (self["webpackChunk_expcluster_legacy"] = self["webpackChunk_expcluster_legacy"] || []).push([["package_json"],{
11
+
12
+ /***/ 330
13
+ /*!**********************!*\
14
+ !*** ./package.json ***!
15
+ \**********************/
16
+ (module) {
17
+
18
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@expcluster/legacy","version":"7.0.1","description":"Clusterio plugin implementing the legacy v6 scenario updated for factorio 2.0","author":"Cooldude2606 <https://github.com/Cooldude2606>","license":"MIT","repository":"explosivegaming/ExpCluster","main":"dist/node/index.js","scripts":{"prepare":"tsc --build && webpack-cli --env production"},"engines":{"node":">=18"},"peerDependencies":{"@clusterio/lib":"workspace:^"},"devDependencies":{"@clusterio/lib":"workspace:^","@types/node":"catalog:","typescript":"catalog:","webpack":"catalog:","webpack-cli":"catalog:","webpack-merge":"catalog:"},"dependencies":{"@expcluster/lib_commands":"workspace:^","@expcluster/lib_util":"workspace:^","@expcluster/lib_gui":"workspace:^","@sinclair/typebox":"catalog:"},"publishConfig":{"access":"public"},"keywords":["clusterio","clusterio-plugin","factorio"]}');
19
+
20
+ /***/ }
21
+
22
+ }]);
@@ -0,0 +1,21 @@
1
+ /*
2
+ * ATTENTION: An "eval-source-map" devtool has been used.
3
+ * This devtool is neither made for production nor for readable output files.
4
+ * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
5
+ * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
6
+ * or disable the default devtool with "devtool: false".
7
+ * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
8
+ */
9
+ (self["webpackChunk_expcluster_legacy"] = self["webpackChunk_expcluster_legacy"] || []).push([["web_index_tsx"],{
10
+
11
+ /***/ 769
12
+ /*!***********************!*\
13
+ !*** ./web/index.tsx ***!
14
+ \***********************/
15
+ () {
16
+
17
+ eval("{//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZVJvb3QiOiIiLCJmaWxlIjoiNzY5LmpzIn0=\n//# sourceURL=webpack-internal:///769\n\n}");
18
+
19
+ /***/ }
20
+
21
+ }]);
package/index.ts ADDED
@@ -0,0 +1,8 @@
1
+ import * as lib from "@clusterio/lib";
2
+
3
+ export const plugin: lib.PluginDeclaration = {
4
+ name: "exp_legacy",
5
+ title: "exp_legacy",
6
+ description: "Example Description. Plugin. Change me in index.ts",
7
+ instanceEntrypoint: "./dist/node/instance",
8
+ };
package/instance.ts ADDED
@@ -0,0 +1,7 @@
1
+ import * as lib from "@clusterio/lib";
2
+ import { BaseInstancePlugin } from "@clusterio/host";
3
+
4
+ export class InstancePlugin extends BaseInstancePlugin {
5
+ // This class is empty because an instance plugin must be defined for a module to be injected
6
+ // This requirement may change in the future to allow for standalone modules
7
+ }
@@ -0,0 +1,29 @@
1
+ --- This contains a list of all files that will be loaded and the order they are loaded in;
2
+ -- to stop a file from loading add "--" in front of it, remove the "--" to have the file be loaded;
3
+ -- config files should be loaded after all modules are loaded;
4
+ -- core files should be required by modules and not be present in this list;
5
+ -- @config File-Loader
6
+ return {
7
+ "expcore.player_data", -- must be loaded first to register event handlers
8
+
9
+ -- Control
10
+ "modules.control.vlayer",
11
+
12
+ --- Data
13
+ "modules.data.statistics",
14
+ "modules.data.player-colours",
15
+ "modules.data.greetings",
16
+ "modules.data.quickbar",
17
+ "modules.data.alt-view",
18
+ "modules.data.tag",
19
+ "modules.data.language",
20
+ --"modules.data.toolbar",
21
+
22
+ --- GUI
23
+ "modules.gui.warp-list",
24
+ "modules.gui.vlayer",
25
+
26
+ "modules.graftorio.require", -- graftorio
27
+ --- Config Files
28
+ "config.expcore.permission_groups", -- loads some predefined permission groups
29
+ }