Initial commit

This commit is contained in:
janisslsm committed 2026-07-27 16:20:00 +03:00
commit af3b49f756
16065 files changed
+2938410

No files matched your search

@@ -0,0 +1,76 @@
/* Metro module 14603; source: modules/premium/game_server/mocks/GameServerMocks.tsx; dependencies: [8261, 14604, 2] */
function _fun110416(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#110416, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14800:6, offset: 0x02378872, size: 1078 bytes, params: 8, frame: 22
const env0_0 = require;
const closure = createMockGame;
const Object = global.Object;
Object.defineProperty(exports, '__esModule', {value: true});
const items2 = [{'id': '1', 'name': 'GameServer #1', 'cost': 3, specifications: [{'title': '2',
'description': 'GB'}, {'title': '1', 'description': 'vCPU'}, {'title': '25', 'description': 'GB'}]}];
items2[1] = {'id': '2', 'name': 'GameServer #2', 'cost': 6, specifications: [{'title': '2', 'description': 'GB'},
{'title': '1', 'description': 'vCPU'}, {'title': '25', 'description': 'GB'}]};
items2[2] = {'id': '3', 'name': 'GameServer #3', 'cost': 12, specifications: [{'title': '2', 'description': 'GB'},
{'title': '1', 'description': 'vCPU'}, {'title': '25', 'description': 'GB'}]};
items = [closure('1', 'GameServer Test #1'), closure('2', 'GameServer Test #2'), closure('3', 'GameServer Test #3'),
closure('4', 'GameServer Test #4'), closure('5', 'GameServer Test #5'), closure('6', 'GameServer Test #6'),
closure('7', 'GameServer Test #7'), closure('8', 'GameServer Test #8'), closure('9', 'GameServer Test #9'),
closure('10', 'GameServer Test #10'), closure('11', 'GameServer Test #11'), closure('12',
'GameServer Test #12')];
const object3 = {'id': '1', 'gameId': '1', 'name': 'GameServer Test #1', 'port': '25565', 'regionId': 'us-east',
'regionName': 'US East', 'planId': null, 'planName': null, 'onlineConnectionsCount': 0,
'maxConnectionsCount': 10, 'status': null, 'serverIP': '127.0.0.1', 'gameServerPanelUrl': 'https://google.com',
'entitlementId': '1'};
object3.planId = items2[1].id;
object3.planName = items2[1].name;
const GameServerStatus = (require(14604) /* metro dependency 14604: GameServerStatus */).GameServerStatus;
let ONLINE = GameServerStatus.ONLINE;
object3.status = ONLINE;
const items5 = [object3];
ONLINE = GameServerStatus.ONLINE;
items5[1] = {'id': '2', 'gameId': '2', 'name': 'GameServer Test #2', 'port': '25565', 'regionId': 'us-east',
'regionName': 'US East', 'planId': null, 'planName': null, 'onlineConnectionsCount': 0,
'maxConnectionsCount': 10, 'status': null, 'serverIP': '127.0.0.1', 'gameServerPanelUrl': 'https://google.com',
'entitlementId': '2', planId: items2[1].id, planName: items2[1].name, status: ONLINE};
ONLINE = GameServerStatus.ONLINE;
items5[2] = {'id': '3', 'gameId': '3', 'name': 'GameServer Test #3', 'port': '25565', 'regionId': 'us-east',
'regionName': 'US East', 'planId': null, 'planName': null, 'onlineConnectionsCount': 0,
'maxConnectionsCount': 10, 'status': null, 'serverIP': '127.0.0.1', 'gameServerPanelUrl': 'https://google.com',
'entitlementId': '3', planId: items2[1].id, planName: items2[1].name, status: ONLINE};
ONLINE = GameServerStatus.ONLINE;
items5[3] = {'id': '4', 'gameId': '4', 'name': 'GameServer Test #4', 'port': '25565', 'regionId': 'us-east',
'regionName': 'US East', 'planId': null, 'planName': null, 'onlineConnectionsCount': 0,
'maxConnectionsCount': 10, 'status': null, 'serverIP': '127.0.0.1', 'gameServerPanelUrl': 'https://google.com',
'entitlementId': '4', planId: items2[1].id, planName: items2[1].name, status: ONLINE};
ONLINE = GameServerStatus.ONLINE;
items5[4] = {'id': '5', 'gameId': '5', 'name': 'GameServer Test #5', 'port': '25565', 'regionId': 'us-east',
'regionName': 'US East', 'planId': null, 'planName': null, 'onlineConnectionsCount': 0,
'maxConnectionsCount': 10, 'status': null, 'serverIP': '127.0.0.1', 'gameServerPanelUrl': 'https://google.com',
'entitlementId': '5', planId: items2[1].id, planName: items2[1].name, status: ONLINE};
ONLINE = GameServerStatus.ONLINE;
items5[5] = {'id': '6', 'gameId': '6', 'name': 'GameServer Test #6', 'port': '25565', 'regionId': 'us-east',
'regionName': 'US East', 'planId': null, 'planName': null, 'onlineConnectionsCount': 0,
'maxConnectionsCount': 10, 'status': null, 'serverIP': '127.0.0.1', 'gameServerPanelUrl': 'https://google.com',
'entitlementId': '6', planId: items2[1].id, planName: items2[1].name, status: ONLINE};
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/premium/game_server/mocks/GameServerMocks.tsx');
exports.GAME_SERVER_GAME_MOCKS = items;
exports.GAME_SERVER_INSTANCE_MOCKS = items5;
}
function createMockGame(a0, a1) { // fn#110417, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:14800:533, offset: 0x02378ca8, size: 146 bytes, params: 3, frame: 17
const object2 = {id: a0, name: a1};
const GameServerProviderType = (require(8261) /* metro dependency 8261: GameServerProviderType */).GameServerProviderType;
const SHOCKBYTE = GameServerProviderType.SHOCKBYTE;
object2.provider = SHOCKBYTE;
object2.plans = env0_2;
const Math = global.Math;
const min = Math.min;
const binding = env0_2;
const value = binding.map(function(a0) {
return a0.cost;
});
const items2 = [];
arraySpread(items2, value, 0, binding);
object2.baseCost = apply(min, items2, Math, binding);
object2.gameId = '1';
return object2;
}