From 1f1527de088096239c4915dd8421dd49b2c2aadb Mon Sep 17 00:00:00 2001 From: "Alex Pooley (@zuedev)" Date: Sun, 26 Jul 2026 13:16:16 +0100 Subject: better org --- 174bg/website/.gitignore | 1 + 174bg/website/assets/index.html | 65 ++++++++++++++++++++++++++++++++++++++++ 174bg/website/assets/logo.png | Bin 0 -> 47784 bytes 174bg/website/worker.js | 45 ++++++++++++++++++++++++++++ 174bg/website/wrangler.jsonc | 28 +++++++++++++++++ 174bg/www/.gitignore | 1 - 174bg/www/assets/index.html | 65 ---------------------------------------- 174bg/www/assets/logo.png | Bin 47784 -> 0 bytes 174bg/www/server/index.js | 45 ---------------------------- 174bg/www/wrangler.jsonc | 28 ----------------- 10 files changed, 139 insertions(+), 139 deletions(-) create mode 100644 174bg/website/.gitignore create mode 100644 174bg/website/assets/index.html create mode 100644 174bg/website/assets/logo.png create mode 100644 174bg/website/worker.js create mode 100644 174bg/website/wrangler.jsonc delete mode 100644 174bg/www/.gitignore delete mode 100644 174bg/www/assets/index.html delete mode 100644 174bg/www/assets/logo.png delete mode 100644 174bg/www/server/index.js delete mode 100644 174bg/www/wrangler.jsonc (limited to '174bg') diff --git a/174bg/website/.gitignore b/174bg/website/.gitignore new file mode 100644 index 0000000..0460e34 --- /dev/null +++ b/174bg/website/.gitignore @@ -0,0 +1 @@ +/.wrangler/ \ No newline at end of file diff --git a/174bg/website/assets/index.html b/174bg/website/assets/index.html new file mode 100644 index 0000000..2543ad5 --- /dev/null +++ b/174bg/website/assets/index.html @@ -0,0 +1,65 @@ + + + + + + 174th Battle Group - Star Citizen Military Organisation + + + + + +

+ We're a Star Citizen organisation that operates in the 'verse in a structured and organized manner. With a focus on small-team tactics and distributed operations, we aim to provide a rich and varied experience for our members. +

+ +

+ Our bigger sessions are held on Saturdays around 17-18:00 UTC and usually last for 4 hours. We also have smaller sessions during the week, utilizing an "on call" system to coordinate with members. We expect our members to attend at least one bigger session per two weeks, but we understand that real life comes first and will work with members to accommodate their schedules. +

+ +

+ We welcome anyone who is interested in joining our organisation, regardless of their experience level. However, we do have some requirements for new members. We expect our members to be respectful and professional in their interactions with others, and to adhere to our code of conduct. We also require that our members either have a working knowledge of Star Citizen and its mechanics or a willingness to learn and improve their skills. +

+ +

+ If you're interested in joining the 174th Battle Group, please reach out to us through our Discord server linked below. We look forward to welcoming you to our organisation and working together to achieve our goals in the 'verse. +

+ + + +

+ Discord: 174bg.net/discord +

+ + \ No newline at end of file diff --git a/174bg/website/assets/logo.png b/174bg/website/assets/logo.png new file mode 100644 index 0000000..082d182 Binary files /dev/null and b/174bg/website/assets/logo.png differ diff --git a/174bg/website/worker.js b/174bg/website/worker.js new file mode 100644 index 0000000..d5e2753 --- /dev/null +++ b/174bg/website/worker.js @@ -0,0 +1,45 @@ +const configuration = { + redirects: [ + { from: "/discord", to: "https://discord.gg/RGgSfVj4DD" }, + { from: "/handbook", to: "https://handbook.174bg.net" }, + { from: "/docs", to: "https://handbook.174bg.net" }, + { from: "/manager", to: "https://manager.174bg.net" }, + { from: "/login", to: "https://manager.174bg.net" }, + { from: "/database", to: "https://db.174bg.net" }, + { from: "/db", to: "https://db.174bg.net" }, + ], +}; + +export default { + /** + * Fetch event handler, this function will be called whenever a request is made to the worker. The function will parse the request and return a response based on the request path. + * + * @param {Request} request - the incoming request object + * @param {Environment} environment - the environment object + * @param {Context} context - the context object + * + * @returns {Response} a new Response object + */ + async fetch(request, environment, context) { + const url = new URL(request.url); + + if (configuration.redirects) { + for (const redirect of configuration.redirects) { + if ( + url.pathname === redirect.from || + url.pathname === redirect.from + "/" + ) { + return Response.redirect(redirect.to, 301); + } + } + } + + if (url.pathname.startsWith("/api")) { + return new Response("Hello from the API!", { + headers: { "Content-Type": "text/plain" }, + }); + } + + return environment.ASSETS.fetch(new Request(url, request)); + } +}; \ No newline at end of file diff --git a/174bg/website/wrangler.jsonc b/174bg/website/wrangler.jsonc new file mode 100644 index 0000000..d9cb044 --- /dev/null +++ b/174bg/website/wrangler.jsonc @@ -0,0 +1,28 @@ +{ + "$schema": "https://esm.sh/wrangler@4.90.1/config-schema.json", + "compatibility_flags": ["nodejs_compat"], + "compatibility_date": "2026-03-29", + "account_id": "424d9dabd39849818d9e22366a20e4d6", + "name": "www-174bg-net", + "main": "./worker.js", + "assets": { + "directory": "./assets/", + "not_found_handling": "single-page-application", + "binding": "ASSETS", + "run_worker_first": true, + }, + "minify": true, + "observability": { + "enabled": true, + }, + "routes": [ + { + "pattern": "174bg.net", + "custom_domain": true, + }, + { + "pattern": "www.174bg.net", + "custom_domain": true, + }, + ], +} diff --git a/174bg/www/.gitignore b/174bg/www/.gitignore deleted file mode 100644 index 0460e34..0000000 --- a/174bg/www/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/.wrangler/ \ No newline at end of file diff --git a/174bg/www/assets/index.html b/174bg/www/assets/index.html deleted file mode 100644 index 2543ad5..0000000 --- a/174bg/www/assets/index.html +++ /dev/null @@ -1,65 +0,0 @@ - - - - - - 174th Battle Group - Star Citizen Military Organisation - - - - - -

- We're a Star Citizen organisation that operates in the 'verse in a structured and organized manner. With a focus on small-team tactics and distributed operations, we aim to provide a rich and varied experience for our members. -

- -

- Our bigger sessions are held on Saturdays around 17-18:00 UTC and usually last for 4 hours. We also have smaller sessions during the week, utilizing an "on call" system to coordinate with members. We expect our members to attend at least one bigger session per two weeks, but we understand that real life comes first and will work with members to accommodate their schedules. -

- -

- We welcome anyone who is interested in joining our organisation, regardless of their experience level. However, we do have some requirements for new members. We expect our members to be respectful and professional in their interactions with others, and to adhere to our code of conduct. We also require that our members either have a working knowledge of Star Citizen and its mechanics or a willingness to learn and improve their skills. -

- -

- If you're interested in joining the 174th Battle Group, please reach out to us through our Discord server linked below. We look forward to welcoming you to our organisation and working together to achieve our goals in the 'verse. -

- - - -

- Discord: 174bg.net/discord -

- - \ No newline at end of file diff --git a/174bg/www/assets/logo.png b/174bg/www/assets/logo.png deleted file mode 100644 index 082d182..0000000 Binary files a/174bg/www/assets/logo.png and /dev/null differ diff --git a/174bg/www/server/index.js b/174bg/www/server/index.js deleted file mode 100644 index d5e2753..0000000 --- a/174bg/www/server/index.js +++ /dev/null @@ -1,45 +0,0 @@ -const configuration = { - redirects: [ - { from: "/discord", to: "https://discord.gg/RGgSfVj4DD" }, - { from: "/handbook", to: "https://handbook.174bg.net" }, - { from: "/docs", to: "https://handbook.174bg.net" }, - { from: "/manager", to: "https://manager.174bg.net" }, - { from: "/login", to: "https://manager.174bg.net" }, - { from: "/database", to: "https://db.174bg.net" }, - { from: "/db", to: "https://db.174bg.net" }, - ], -}; - -export default { - /** - * Fetch event handler, this function will be called whenever a request is made to the worker. The function will parse the request and return a response based on the request path. - * - * @param {Request} request - the incoming request object - * @param {Environment} environment - the environment object - * @param {Context} context - the context object - * - * @returns {Response} a new Response object - */ - async fetch(request, environment, context) { - const url = new URL(request.url); - - if (configuration.redirects) { - for (const redirect of configuration.redirects) { - if ( - url.pathname === redirect.from || - url.pathname === redirect.from + "/" - ) { - return Response.redirect(redirect.to, 301); - } - } - } - - if (url.pathname.startsWith("/api")) { - return new Response("Hello from the API!", { - headers: { "Content-Type": "text/plain" }, - }); - } - - return environment.ASSETS.fetch(new Request(url, request)); - } -}; \ No newline at end of file diff --git a/174bg/www/wrangler.jsonc b/174bg/www/wrangler.jsonc deleted file mode 100644 index d1a7276..0000000 --- a/174bg/www/wrangler.jsonc +++ /dev/null @@ -1,28 +0,0 @@ -{ - "$schema": "https://esm.sh/wrangler@4.90.1/config-schema.json", - "compatibility_flags": ["nodejs_compat"], - "compatibility_date": "2026-03-29", - "account_id": "424d9dabd39849818d9e22366a20e4d6", - "name": "174bg-www", - "main": "./server/index.js", - "assets": { - "directory": "./assets/", - "not_found_handling": "single-page-application", - "binding": "ASSETS", - "run_worker_first": true, - }, - "minify": true, - "observability": { - "enabled": true, - }, - "routes": [ - { - "pattern": "174bg.net", - "custom_domain": true, - }, - { - "pattern": "www.174bg.net", - "custom_domain": true, - }, - ], -} -- cgit v1.2.3