From 91632214f123adb168be22ec1018d39c9fb1b693 Mon Sep 17 00:00:00 2001 From: zumbiepig <121742281+zumbiepig@users.noreply.github.com> Date: Sat, 7 Sep 2024 08:25:55 -0700 Subject: [PATCH] format with prettier --- .github/workflows/build.yml | 2 + .prettierignore | 3 + .prettierrc.json | 2 +- .vscode/extensions.json | 6 +- .vscode/settings.json | 2 +- build.ts | 8 +- bun.lockb | Bin 113083 -> 113443 bytes package.json | 5 +- server.ts | 6 +- src/404.html | 24 ++- src/articles/index.html | 148 +++++++++++----- src/home/archive/index.html | 84 ++++++--- src/home/clients/index.html | 62 ++++--- src/home/downloads/index.html | 58 +++--- src/home/game/index.html | 62 ++++--- src/index.html | 12 +- src/mobile/index.html | 22 ++- src/mods/mods/index.html | 62 ++++--- src/mods/resourcepacks/index.html | 62 ++++--- src/offline.html | 24 ++- src/offline/index.html | 33 +++- src/resources/data/main.json | 10 +- .../scripts/eagler-launch/1.5.2/main.ts | 14 +- .../eagler-launch/1.8.8/eaglermobile-ef.ts | 166 +++++++++++------- .../eagler-launch/1.8.8/eaglerpocketmobile.ts | 114 ++++++------ src/resources/scripts/main.ts | 54 ++++-- src/resources/styles/themes/campfire.css | 4 +- .../styles/themes/cherry-blossom.css | 4 +- src/resources/styles/themes/default.css | 37 ++-- src/resources/styles/themes/hyperdark.css | 4 +- src/resources/styles/themes/light.css | 98 ++++++----- src/resources/styles/themes/nether.css | 4 +- src/resources/styles/themes/overworld.css | 4 +- src/resources/styles/themes/retro.css | 6 +- src/resources/styles/themes/starfall.css | 4 +- src/resources/styles/themes/the-end.css | 4 +- src/servers/index.html | 62 ++++--- src/settings/index.html | 62 ++++--- src/sw-full.ts | 8 +- src/sw.ts | 10 +- src/updates/index.html | 62 ++++--- src/welcome/index.html | 6 +- 42 files changed, 912 insertions(+), 512 deletions(-) create mode 100644 .prettierignore diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f6aa6ea..64fee6e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,6 +12,8 @@ jobs: uses: oven-sh/setup-bun@v2 - name: Install dependencies run: bun install --frozen-lockfile + - name: Check formatting + run: bun run format:check - name: Lint run: bun run lint - name: Build diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..b741d4f --- /dev/null +++ b/.prettierignore @@ -0,0 +1,3 @@ +src/game/ +!src/game/web/*.html +src/resources/mods/downloads/ diff --git a/.prettierrc.json b/.prettierrc.json index 8046dbd..655730a 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,5 +1,5 @@ { - "printWidth": 200, + "printWidth": 120, "useTabs": true, "singleQuote": true } diff --git a/.vscode/extensions.json b/.vscode/extensions.json index 8681482..c9cecf2 100644 --- a/.vscode/extensions.json +++ b/.vscode/extensions.json @@ -1,7 +1,3 @@ { - "recommendations": [ - "oven.bun-vscode", - "dbaeumer.vscode-eslint", - "esbenp.prettier-vscode" - ] + "recommendations": ["oven.bun-vscode", "dbaeumer.vscode-eslint", "esbenp.prettier-vscode"] } diff --git a/.vscode/settings.json b/.vscode/settings.json index d3281dd..b64498d 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,5 +1,5 @@ { "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.formatOnPaste": true, - "livePreview.serverRoot": "public", + "livePreview.serverRoot": "public" } diff --git a/build.ts b/build.ts index bdcd3d3..35bec60 100644 --- a/build.ts +++ b/build.ts @@ -70,7 +70,7 @@ if (!isDev) { minifyCSS: true, minifyJS: true, continueOnParseError: true, - }) + }), ); }); @@ -84,7 +84,7 @@ if (!isDev) { //optionsPreset: 'medium-obfuscation', target: 'browser', }) - .getObfuscatedCode() + .getObfuscatedCode(), ); }); } @@ -104,8 +104,8 @@ writeFileSync( JSON.stringify( getFiles(publicDir).map((asset) => { return asset.replace(new RegExp(`^${publicDir}`), '').replace(/\/index\.html$/, '/'); - }) - ) + }), + ), ); console.log(chalk.green('Build complete!\n')); diff --git a/bun.lockb b/bun.lockb index c3ae02ada466f968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:fix": "eslint --fix ./src/resources/scripts/ && tsc", "build": "NODE_ENV=production bun run ./build.ts", - "build:dev": "NODE_ENV=development bun run ./build.ts" + "build:dev": "NODE_ENV=development bun run ./build.ts", + "format": "prettier --write .", + "format:check": "prettier --check ." }, "dependencies": { "chalk": "^5.3.0", @@ -39,6 +41,7 @@ "eslint": "^9.9.1", "html-minifier": "^4.0.0", "javascript-obfuscator": "^4.1.1", + "prettier": "^3.3.3", "typescript-eslint": "^8.4.0" }, "peerDependencies": { diff --git a/server.ts b/server.ts index c13b916..309bdc8 100644 --- a/server.ts +++ b/server.ts @@ -28,7 +28,7 @@ debugLogger('Booting server.'); app.use( helmet({ contentSecurityPolicy: false, - }) + }), ); app.use(morgan(isDev ? 'dev' : 'combined')); @@ -64,7 +64,9 @@ app }) .on('error', (error) => { if (error.code === 'EADDRINUSE') { - console.error(chalk.red('EADDRINUSE') + chalk.gray(': ') + chalk.bold(`Failed to start server. Is port ${PORT} in use?`)); + console.error( + chalk.red('EADDRINUSE') + chalk.gray(': ') + chalk.bold(`Failed to start server. Is port ${PORT} in use?`), + ); process.exit(1); } }); diff --git a/src/404.html b/src/404.html index fe0a593..db21670 100644 --- a/src/404.html +++ b/src/404.html @@ -1,4 +1,4 @@ - + @@ -13,7 +13,14 @@
- +
@@ -31,7 +38,9 @@
- +
diff --git a/src/articles/index.html b/src/articles/index.html index fde1739..f2b0b6e 100644 --- a/src/articles/index.html +++ b/src/articles/index.html @@ -1,4 +1,4 @@ - + @@ -12,7 +12,14 @@
- +
@@ -21,32 +28,32 @@
@@ -60,14 +67,22 @@
How To Make An Eaglercraft Server -

Have you ever wondered how to make an Eaglercraft Server? Read this article to find out how!

+

+ Have you ever wondered how to make an Eaglercraft Server? Read this article to find out how! +

- +
Setting Up a Cloudflare Tunnel for an Eaglercraft Server -

This brief guide walks you through configuring a Cloudflare Tunnel for your Eaglercraft server.

+

+ This brief guide walks you through configuring a Cloudflare Tunnel for your Eaglercraft server. +

@@ -76,7 +91,9 @@
- +
@@ -96,16 +120,27 @@

Prerequisites

  • A server/computer with stable internet access and decent bandwidth
  • -
  • Java 17 installed (Get it from here)
  • +
  • + Java 17 installed (Get it from + here) +
  • Basic knowledge of your OS's command-line/terminal
  • Access to your network router (for port forwarding)

Step 1: Set Up Bungee

    -
  1. Download the latest version of Bungee from here.
  2. +
  3. + Download the latest version of Bungee from + here. +
  4. Create a new directory for your server and place the Bungee JAR file in it
  5. - Create a start script (e.g., start.bat for Windows or start.sh for Linux) with the following content: + Create a start script (e.g., start.bat for Windows or start.sh for Linux) with the + following content:
    java -Xms512M -Xmx512M -jar bungee.jar
  6. Run the start script to generate configuration files, then stop the server
  7. @@ -116,18 +151,30 @@
  8. Download a compatible Minecraft server JAR (e.g., Paper)
  9. Set up the backend server in a separate directory
  10. - Create a start script (e.g., start.bat for Windows or start.sh for Linux) with the following content: + Create a start script (e.g., start.bat for Windows or start.sh for Linux) with the + following content:
    java -Xms1024M -Xmx1024M -jar server.jar
  11. Configure server.properties (Disable online mode, change the port, etc.)
  12. Configure spigot.yml to have this: bungeecord: true
  13. -
  14. If your server is on a different version than 1.8.8, you need to download the ViaVersion plugins.
  15. -
  16. Add the backend server to your Bungee config.yml by scrolling to the servers section and editing/adding an entry for your server, such as localhost:port.
  17. +
  18. + If your server is on a different version than 1.8.8, you need to download the + ViaVersion plugins. +
  19. +
  20. + Add the backend server to your Bungee config.yml by scrolling to the servers section and + editing/adding an entry for your server, such as localhost:port. +

Step 3: Install EaglerXBungee Plugin

  1. - Download the EaglerXBungee plugin from here. + Download the EaglerXBungee plugin from + here.
  2. Place the downloaded JAR file in the Bungee server's plugins folder
  3. Restart the Bungee server to generate the plugin's configuration files
  4. @@ -144,7 +191,10 @@

    Step 5: Port Forwarding

    1. Access your router's admin panel
    2. -
    3. Set up port forwarding for port 8081 (or whichever port you configured for EaglerXBungee) to your server's local IP address
    4. +
    5. + Set up port forwarding for port 8081 (or whichever port you configured for EaglerXBungee) to + your server's local IP address +

    Step 6: Domain Configuration (Optional)

    If you want to use a custom domain:

    @@ -158,12 +208,18 @@
  5. Restart Caddy to apply these changes, using caddy stop and caddy start.

Step 7: Connecting to Your Server

-

Players can connect to your server using an Eaglercraft client such as MineXLauncher, and entering your server's IP address or domain and port.

+

+ Players can connect to your server using an Eaglercraft client such as MineXLauncher, and entering your + server's IP address or domain and port. +

Examples:

  • wss://localhost
  • wss://example.com
  • Security Considerations

    -

    Ensure you keep all software (especially the EaglerXBungee plugin) up to date and properly secure your server to protect against potential vulnerabilities.

    +

    + Ensure you keep all software (especially the EaglerXBungee plugin) up to date and properly secure your server + to protect against potential vulnerabilities. +

    @@ -171,7 +227,10 @@ ×

    Setting Up a Cloudflare Tunnel for an Eaglercraft Server

    Written by zumbiepig and SpeedSlicer
    -

    In this guide, we'll walk you through the steps to set up a Cloudflare Tunnel for your Eaglercraft server, which is running on ws://localhost:8081.

    +

    + In this guide, we'll walk you through the steps to set up a Cloudflare Tunnel for your Eaglercraft server, + which is running on ws://localhost:8081. +

    Prerequisites

    • An Eaglercraft server running on ws://localhost:8081
    • @@ -180,7 +239,10 @@

    Step 1: Access Cloudflare Tunnels

      -
    1. Go to the Dashboard and log in to your Cloudflare account.
    2. +
    3. + Go to the Dashboard and log in to your Cloudflare + account. +
    4. Navigate to the Zero Trust page using the navigation bar on the left.
    5. Sign up for Cloudflare Zero Trust with the Free Plan if you have not already.
    6. Once you are in the dashboard, navigate to Networks > Tunnels.
    7. @@ -190,7 +252,10 @@
    8. Click on Create a tunnel, and select Cloudflared.
    9. Click Next.
    10. Enter a name for the tunnel.
    11. -
    12. Follow the instructions provided on the site to install the tunnel.
      You should do these instructions on the computer that your Eaglercraft server is running on.
    13. +
    14. + Follow the instructions provided on the site to install the tunnel.
      You should do these instructions on + the computer that your Eaglercraft server is running on. +

    Step 3: Configure Domain/Subdomain

      @@ -202,7 +267,10 @@
      1. Start your Eaglercraft server.
      2. In Eaglercraft, connect to the domain or subdomain you set up.
      3. -
      4. You're all set! Players can now join your server using the domain that you linked your tunnel to.
        Example: wss://example.com
      5. +
      6. + You're all set! Players can now join your server using the domain that you linked your tunnel to.
        Example: + wss://example.com +
    diff --git a/src/home/archive/index.html b/src/home/archive/index.html index 950e609..94105ec 100644 --- a/src/home/archive/index.html +++ b/src/home/archive/index.html @@ -1,4 +1,4 @@ - + @@ -12,7 +12,14 @@
    - +
    @@ -21,32 +28,32 @@
    @@ -183,7 +190,6 @@ - @@ -205,15 +211,32 @@
    - - - + + +
    - +
    diff --git a/src/home/clients/index.html b/src/home/clients/index.html index 0b4f54a..91058fd 100644 --- a/src/home/clients/index.html +++ b/src/home/clients/index.html @@ -1,4 +1,4 @@ - + @@ -12,7 +12,14 @@
    - +
    @@ -21,32 +28,32 @@
    @@ -98,7 +105,9 @@
    - +
    diff --git a/src/home/downloads/index.html b/src/home/downloads/index.html index 67ac0a1..1ea645c 100644 --- a/src/home/downloads/index.html +++ b/src/home/downloads/index.html @@ -1,4 +1,4 @@ - + @@ -12,7 +12,14 @@
    - +
    @@ -21,32 +28,32 @@
    @@ -90,7 +97,14 @@
    - +
    diff --git a/src/home/game/index.html b/src/home/game/index.html index 88ee615..5e8bf2e 100644 --- a/src/home/game/index.html +++ b/src/home/game/index.html @@ -1,4 +1,4 @@ - + @@ -12,7 +12,14 @@
    - +
    @@ -21,32 +28,32 @@
    @@ -118,7 +125,9 @@
    - +
    diff --git a/src/index.html b/src/index.html index e570c26..f94cfbf 100644 --- a/src/index.html +++ b/src/index.html @@ -1,4 +1,4 @@ - + @@ -9,7 +9,10 @@ - + - + diff --git a/src/mobile/index.html b/src/mobile/index.html index 6e987df..3bd2655 100644 --- a/src/mobile/index.html +++ b/src/mobile/index.html @@ -1,4 +1,4 @@ - + @@ -18,12 +18,12 @@
    @@ -37,14 +37,22 @@