mirror of
https://github.com/hykilpikonna/AquaDX.git
synced 2026-08-24 18:24:36 -05:00
chore: [AquaNet] update README, move userbox config to .env, and add check before build (#223)
Signed-off-by: Yonle <yonle@proton.me>
This commit is contained in:
@@ -1,14 +1,20 @@
|
||||
VITE_AQUA_HOST=https://aquadx.net/aqua
|
||||
|
||||
# Link to datas (eg, songid, information, etc).
|
||||
# Leave this as is if you do not have the data.
|
||||
VITE_DATA_HOST=https://aquadx.net
|
||||
|
||||
VITE_AQUA_CONNECTION=aquadx.hydev.org
|
||||
|
||||
VITE_TURNSTILE_SITE_KEY=0x4AAAAAAASGA2KQEIelo9P9
|
||||
VITE_DISCORD_INVITE=https://discord.gg/FNgveqFF7s
|
||||
VITE_TELEGRAM_INVITE=https://t.me/+zBL4RZdyfvUzZGU1
|
||||
VITE_QQ_INVITE=https://qm.qq.com/q/dpYmGoVHnG
|
||||
VITE_GITHUB_REPOSITORY=https://github.com/MewoLab/AquaDX
|
||||
|
||||
# Documentation for Userbox mode can be found in `docs/aquabox-url-mode.md`
|
||||
# Please note that if this is set, it must be manually unset by users in Chuni Settings -> Update Userbox -> Switch to URL mode -> (empty value) -> Enter key
|
||||
VITE_USERBOX_DEFAULT_URL=
|
||||
|
||||
# the following is used at some case where custom access code QR code URL has been done.
|
||||
# example:
|
||||
# https://aquadx.net/cards/#accesskey=....
|
||||
|
||||
@@ -9,12 +9,25 @@ This project uses Svelte (NOT SvelteKit) + TypeScript + Sass, built using Vite.
|
||||
|
||||
### Running locally
|
||||
|
||||
First, you would need to install Node.js and bun.
|
||||
Then, you would need to start your testing AquaDX server and configure the `aqua_host` in `src/libs/config.ts` to use your URL.
|
||||
Please leave `data_host` unchanged if you're not sure what it is.
|
||||
Finally, run:
|
||||
You will need to have Node.js (or equivalent) and `pnpm` installed, Start by installing dependencies by running:
|
||||
```
|
||||
pnpm install
|
||||
```
|
||||
|
||||
```shell
|
||||
Then, you would need to start your testing AquaDX server and configure the `VITE_AQUA_HOST` in `.env` (copy `.env.example` file to `.env`) to use your URL.
|
||||
Please leave `VITE_DATA_HOST` unchanged if you're not sure what it is.
|
||||
|
||||
Finally, run:
|
||||
```
|
||||
pnpm run dev
|
||||
```
|
||||
### Running locally (with bun)
|
||||
|
||||
Alternatively, If you prefer [Bun](https://bun.sh), You can do the same as above.
|
||||
Start by configuring the `VITE_AQUA_HOST` in `.env` (copy `.env.example` file to `.env`) to use your URL.
|
||||
|
||||
and finally:
|
||||
```
|
||||
bun install
|
||||
bun run dev
|
||||
```
|
||||
|
||||
9
AquaNet/buildcheck.js
Normal file
9
AquaNet/buildcheck.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { existsSync } from "fs"
|
||||
|
||||
if (!existsSync(".env")) {
|
||||
console.error(" I did not see .env being here. You sure it was there?")
|
||||
console.error(" Copy .env.example to .env, edit .env, and try again.\n")
|
||||
process.exit(1)
|
||||
}
|
||||
|
||||
process.exit(0)
|
||||
@@ -4,8 +4,8 @@
|
||||
"version": "1.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"dev": "node buildcheck.js && vite",
|
||||
"build": "node buildcheck.js && vite build",
|
||||
"preview": "vite preview",
|
||||
"check": "svelte-check --tsconfig ./tsconfig.json",
|
||||
"lint": "eslint . --ext ts,tsx,svelte --max-warnings 0 --fix"
|
||||
|
||||
@@ -20,9 +20,7 @@ export const DEFAULT_PFP = '/assets/imgs/no_profile.png'
|
||||
// Key name for access key scanned from QR code
|
||||
export const ACCESSCODE_QKEY = import.meta.env.VITE_ACCESSCODE_QKEY || "accesskey"
|
||||
|
||||
// Documentation for Userbox mode can be found in `docs/aquabox-url-mode.md`
|
||||
// Please note that if this is set, it must be manually unset by users in Chuni Settings -> Update Userbox -> Switch to URL mode -> (empty value) -> Enter key
|
||||
export const USERBOX_DEFAULT_URL = ""
|
||||
export const USERBOX_DEFAULT_URL = import.meta.env.VITE_USERBOX_DEFAULT_URL || ""
|
||||
|
||||
export const HAS_USERBOX_ASSETS = true
|
||||
|
||||
@@ -48,4 +46,4 @@ export const CHU3_MATCHINGS: ChusanMatchingOption[] = [
|
||||
reflector: "http://reflector.naominet.live:18080/",
|
||||
coop: ["RinNET", "MysteriaNET"],
|
||||
},
|
||||
]
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user