Skip to content

Commit cd0b48b

Browse files
committed
style: run deno fmt
1 parent 8c1e35f commit cd0b48b

34 files changed

Lines changed: 93 additions & 100 deletions

compose.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@ export interface GamePort {
1313

1414
export const GAME_CONTAINER_NAME = "nodebyte-game";
1515

16-
export const escapeComposeValue = (value: string): string =>
17-
value.replaceAll('"', '\\"');
16+
export const escapeComposeValue = (value: string): string => value.replaceAll('"', '\\"');
1817

1918
const formatRange = (port: GamePort): string =>
2019
port.from === port.to ? `${port.from}` : `${port.from}:${port.to}`;
2120

2221
export const buildUfwRules = (ports: readonly GamePort[]): string[] =>
2322
ports.map(
24-
(port) => `ufw allow ${formatRange(port)}/${port.protocol} || true`
23+
(port) => `ufw allow ${formatRange(port)}/${port.protocol} || true`,
2524
);

cs2/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ const buildCompose = (config: ComposeConfig, raw: unknown): string =>
99

1010
export const cs2 = {
1111
buildCompose,
12-
description:
13-
"The legendary tactical FPS. Plant the bomb, defuse it, or just frag your friends.",
12+
description: "The legendary tactical FPS. Plant the bomb, defuse it, or just frag your friends.",
1413
dockerImage,
1514
enabled: true,
1615
gamedigId: "cs2",

cs2/install.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const dockerImage = "joedwards32/cs2:latest";
66

77
export const buildCs2Compose = (
88
config: ComposeConfig,
9-
settings: Cs2Settings
9+
settings: Cs2Settings,
1010
): string => {
1111
const timezone = config.timezone ?? "UTC";
1212
const escape = escapeComposeValue;

cs2/settings.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ export const cs2Settings = defineSettings({
6565
},
6666
steamToken: {
6767
default: "",
68-
help: "Steam Game Server Login Token (GSLT). Required for public servers — get one at steamcommunity.com/dev/managegameservers (App ID 730).",
68+
help:
69+
"Steam Game Server Login Token (GSLT). Required for public servers — get one at steamcommunity.com/dev/managegameservers (App ID 730).",
6970
label: "Steam GSLT",
7071
maxLength: 64,
7172
type: "string",

dontstarvetogether/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { dontStarveTogetherSettings } from "./settings";
77
const buildCompose = (config: ComposeConfig, raw: unknown): string =>
88
buildDontStarveTogetherCompose(
99
config,
10-
resolveSettings(dontStarveTogetherSettings, raw)
10+
resolveSettings(dontStarveTogetherSettings, raw),
1111
);
1212

1313
export const dontStarveTogether = {

dontstarvetogether/install.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const dockerImage = "webhippie/dst:latest";
66

77
export const buildDontStarveTogetherCompose = (
88
config: ComposeConfig,
9-
settings: DontStarveTogetherSettings
9+
settings: DontStarveTogetherSettings,
1010
): string => {
1111
const timezone = config.timezone ?? "UTC";
1212
const escape = escapeComposeValue;

enshrouded/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ const buildCompose = (config: ComposeConfig, raw: unknown): string =>
99

1010
export const enshrouded = {
1111
buildCompose,
12-
description:
13-
"A game of survival, crafting, and action on a sprawling voxel-based continent.",
12+
description: "A game of survival, crafting, and action on a sprawling voxel-based continent.",
1413
dockerImage,
1514
enabled: true,
1615
gamedigId: "enshrouded",

enshrouded/install.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export const dockerImage = "mornedhels/enshrouded-server:latest";
66

77
export const buildEnshroudedCompose = (
88
config: ComposeConfig,
9-
settings: EnshroudedSettings
9+
settings: EnshroudedSettings,
1010
): string => {
1111
const timezone = config.timezone ?? "UTC";
1212
const escape = escapeComposeValue;

fivem/install.ts

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const yamlBlock = (lines: string[], indent = 10) =>
1414

1515
export const buildFivemCompose = (
1616
config: ComposeConfig,
17-
settings: FivemSettings
17+
settings: FivemSettings,
1818
): string => {
1919
const timezone = config.timezone ?? "UTC";
2020
const escape = escapeComposeValue;
@@ -75,9 +75,7 @@ export const buildFivemCompose = (
7575
// When txAdmin is disabled, +exec server.cfg is passed so the server reads
7676
// configuration on startup. When txAdmin is enabled, txAdmin handles that
7777
// itself — omitting +exec server.cfg lets txAdmin take over.
78-
const noTxAdminSuffix = settings.enableTxAdmin
79-
? ""
80-
: " \\\n +exec server.cfg";
78+
const noTxAdminSuffix = settings.enableTxAdmin ? "" : " \\\n +exec server.cfg";
8179
const startupLines = [
8280
`exec ${DATA}/alpine/opt/cfx-server/ld-musl-x86_64.so.1 \\`,
8381
` --library-path "${DATA}/alpine/usr/lib/v8/:${DATA}/alpine/lib/:${DATA}/alpine/usr/lib/" \\`,
@@ -92,16 +90,14 @@ export const buildFivemCompose = (
9290
// txAdmin requires its own port and additional env vars.
9391
const txAdminEnvLines = settings.enableTxAdmin
9492
? [
95-
` TXADMIN_ENABLE: "1"`,
96-
` TXHOST_GAME_NAME: "fivem"`,
97-
` TXHOST_TXA_PORT: "40120"`,
98-
` TXHOST_DATA_PATH: "${DATA}/txData"`,
99-
].join("\n")
93+
` TXADMIN_ENABLE: "1"`,
94+
` TXHOST_GAME_NAME: "fivem"`,
95+
` TXHOST_TXA_PORT: "40120"`,
96+
` TXHOST_DATA_PATH: "${DATA}/txData"`,
97+
].join("\n")
10098
: ` TXADMIN_ENABLE: "0"`;
10199

102-
const txAdminPort = settings.enableTxAdmin
103-
? `\n - "40120:40120/tcp"`
104-
: "";
100+
const txAdminPort = settings.enableTxAdmin ? `\n - "40120:40120/tcp"` : "";
105101

106102
return `services:
107103
# Bootstrap: downloads FXServer + cfx-server-data on first deploy.

fivem/settings.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,23 @@ import type { SettingsValues } from "../settings";
44
export const fivemSettings = defineSettings({
55
enableTxAdmin: {
66
default: false,
7-
help: "Enables the txAdmin web panel. Your server will not go online until it is started from txAdmin on first run. Exposes port 40120 for the txAdmin UI.",
7+
help:
8+
"Enables the txAdmin web panel. Your server will not go online until it is started from txAdmin on first run. Exposes port 40120 for the txAdmin UI.",
89
label: "Enable txAdmin",
910
type: "boolean",
1011
},
1112
fivemVersion: {
1213
default: "recommended",
13-
help: 'FiveM artifact version to install. Use "recommended", "latest", or a specific build ID such as "6013-d8ae399d". Find builds at runtime.fivem.net/artifacts/fivem/build_proot_linux/master/',
14+
help:
15+
'FiveM artifact version to install. Use "recommended", "latest", or a specific build ID such as "6013-d8ae399d". Find builds at runtime.fivem.net/artifacts/fivem/build_proot_linux/master/',
1416
label: "FiveM version",
1517
maxLength: 50,
1618
type: "string",
1719
},
1820
license: {
1921
default: "",
20-
help: "Your FiveM server license key from portal.cfx.re (keymaster.fivem.net). Required to start the server.",
22+
help:
23+
"Your FiveM server license key from portal.cfx.re (keymaster.fivem.net). Required to start the server.",
2124
label: "FiveM license key",
2225
maxLength: 33,
2326
required: true,
@@ -39,7 +42,8 @@ export const fivemSettings = defineSettings({
3942
},
4043
steamWebApiKey: {
4144
default: "none",
42-
help: 'Steam Web API key for player identification. Leave as "none" to disable. Get one at steamcommunity.com/dev/apikey.',
45+
help:
46+
'Steam Web API key for player identification. Leave as "none" to disable. Get one at steamcommunity.com/dev/apikey.',
4347
label: "Steam Web API key",
4448
type: "string",
4549
},

0 commit comments

Comments
 (0)