From 5a290fcfa5ef2ee609103856fbaf31f66bffc99c Mon Sep 17 00:00:00 2001 From: Yuzu Date: Thu, 13 Aug 2026 02:32:16 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style:=20remove=20leftover=20tem?= =?UTF-8?q?plate=20comments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/FUNDING.yaml | 2 -- .github/dependabot.yaml | 9 ++------- apps/backend/README.md | 16 ++-------------- apps/backend/tsconfig.json | 7 ------- apps/web/README.md | 16 ++-------------- packages/api/README.md | 16 ++-------------- packages/api/tsconfig.json | 7 ------- packages/db/README.md | 14 +------------- packages/db/prisma/schema.prisma | 20 ++++++++++---------- packages/db/tsconfig.json | 7 ------- scripts/install.sh | 8 +------- 11 files changed, 20 insertions(+), 102 deletions(-) diff --git a/.github/FUNDING.yaml b/.github/FUNDING.yaml index 03c6114..f6ef6ed 100644 --- a/.github/FUNDING.yaml +++ b/.github/FUNDING.yaml @@ -1,3 +1 @@ -# These are supported funding model platforms - github: [YuzuZensai] diff --git a/.github/dependabot.yaml b/.github/dependabot.yaml index 5f0889c..aff82a1 100644 --- a/.github/dependabot.yaml +++ b/.github/dependabot.yaml @@ -1,11 +1,6 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file - version: 2 updates: - - package-ecosystem: "npm" # See documentation for possible values - directory: "/" # Location of package manifests + - package-ecosystem: "npm" + directory: "/" schedule: interval: "weekly" diff --git a/apps/backend/README.md b/apps/backend/README.md index c55dce9..c0a229a 100644 --- a/apps/backend/README.md +++ b/apps/backend/README.md @@ -1,15 +1,3 @@ -# backend +# @minikura/backend -To install dependencies: - -```bash -bun install -``` - -To run: - -```bash -bun run index.ts -``` - -This project was created using `bun init` in bun v1.1.28. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime. +Elysia API. From the repo root: `bun run dev`. diff --git a/apps/backend/tsconfig.json b/apps/backend/tsconfig.json index 238655f..53f0292 100644 --- a/apps/backend/tsconfig.json +++ b/apps/backend/tsconfig.json @@ -1,25 +1,18 @@ { "compilerOptions": { - // Enable latest features "lib": ["ESNext", "DOM"], "target": "ESNext", "module": "ESNext", "moduleDetection": "force", "jsx": "react-jsx", "allowJs": true, - - // Bundler mode "moduleResolution": "bundler", "allowImportingTsExtensions": true, "verbatimModuleSyntax": true, "noEmit": true, - - // Best practices "strict": true, "skipLibCheck": true, "noFallthroughCasesInSwitch": true, - - // Some stricter flags (disabled by default) "noUnusedLocals": false, "noUnusedParameters": false, "noPropertyAccessFromIndexSignature": false diff --git a/apps/web/README.md b/apps/web/README.md index e91038c..00a92a9 100644 --- a/apps/web/README.md +++ b/apps/web/README.md @@ -1,15 +1,3 @@ -# web +# @minikura/web -To install dependencies: - -```bash -bun install -``` - -To run: - -```bash -bun run index.ts -``` - -This project was created using `bun init` in bun v1.1.28. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime. +Next.js dashboard. From the repo root: `bun run web` or `bun run dev`. diff --git a/packages/api/README.md b/packages/api/README.md index 1a8d62b..066c53e 100644 --- a/packages/api/README.md +++ b/packages/api/README.md @@ -1,15 +1,3 @@ -# api +# @minikura/api -To install dependencies: - -```bash -bun install -``` - -To run: - -```bash -bun run src/index.ts -``` - -This project was created using `bun init` in bun v1.1.28. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime. +Shared API types and constants used by backend and web. diff --git a/packages/api/tsconfig.json b/packages/api/tsconfig.json index 238655f..53f0292 100644 --- a/packages/api/tsconfig.json +++ b/packages/api/tsconfig.json @@ -1,25 +1,18 @@ { "compilerOptions": { - // Enable latest features "lib": ["ESNext", "DOM"], "target": "ESNext", "module": "ESNext", "moduleDetection": "force", "jsx": "react-jsx", "allowJs": true, - - // Bundler mode "moduleResolution": "bundler", "allowImportingTsExtensions": true, "verbatimModuleSyntax": true, "noEmit": true, - - // Best practices "strict": true, "skipLibCheck": true, "noFallthroughCasesInSwitch": true, - - // Some stricter flags (disabled by default) "noUnusedLocals": false, "noUnusedParameters": false, "noPropertyAccessFromIndexSignature": false diff --git a/packages/db/README.md b/packages/db/README.md index ce1af97..6b3c988 100644 --- a/packages/db/README.md +++ b/packages/db/README.md @@ -1,15 +1,3 @@ # @minikura/db -To install dependencies: - -```bash -bun install -``` - -To run: - -```bash -bun run src/index.ts -``` - -This project was created using `bun init` in bun v1.1.28. [Bun](https://bun.sh) is a fast all-in-one JavaScript runtime. +Prisma schema and client. From the repo root: `bun run db:generate`, `bun run db:push`, `bun run db:studio`. diff --git a/packages/db/prisma/schema.prisma b/packages/db/prisma/schema.prisma index c83e72b..64cc5ff 100644 --- a/packages/db/prisma/schema.prisma +++ b/packages/db/prisma/schema.prisma @@ -104,9 +104,9 @@ model ReverseProxyServer { external_address String external_port Int listen_port Int @default(25565) - memory Int @default(512) // Memory in MB - cpu_request String? @default("250m") // CPU request, e.g., "250m", "1" - cpu_limit String? @default("500m") // CPU limit, e.g., "500m", "2" + memory Int @default(512) // MB + cpu_request String? @default("250m") + cpu_limit String? @default("500m") service_type ServiceType @default(LOAD_BALANCER) node_port Int? api_key String @unique @@ -130,19 +130,19 @@ model Server { type ServerType description String? listen_port Int @default(25565) - memory Int @default(2048) // Memory limit in MB - memory_request Int @default(1024) // Memory request in MB - cpu_request String? @default("500m") // CPU request, e.g., "500m", "1" - cpu_limit String? @default("2") // CPU limit, e.g., "2", "500m" + memory Int @default(2048) // MB limit + memory_request Int @default(1024) // MB request + cpu_request String? @default("500m") + cpu_limit String? @default("2") service_type ServiceType @default(CLUSTER_IP) node_port Int? env_variables CustomEnvironmentVariable[] @relation("ServerEnvVars") api_key String @unique jar_type MinecraftServerJarType @default(VANILLA) - minecraft_version String @default("LATEST") // e.g., "LATEST", "1.20.4", "SNAPSHOT" + minecraft_version String @default("LATEST") - jvm_opts String? // Custom JVM options + jvm_opts String? use_aikar_flags Boolean @default(false) use_meowice_flags Boolean @default(false) @@ -153,7 +153,7 @@ model Server { online_mode Boolean @default(true) motd String? level_seed String? - level_type String? // default, flat, largeBiomes, amplified + level_type String? // default | flat | largeBiomes | amplified created_at DateTime @default(now()) updated_at DateTime @updatedAt diff --git a/packages/db/tsconfig.json b/packages/db/tsconfig.json index 238655f..53f0292 100644 --- a/packages/db/tsconfig.json +++ b/packages/db/tsconfig.json @@ -1,25 +1,18 @@ { "compilerOptions": { - // Enable latest features "lib": ["ESNext", "DOM"], "target": "ESNext", "module": "ESNext", "moduleDetection": "force", "jsx": "react-jsx", "allowJs": true, - - // Bundler mode "moduleResolution": "bundler", "allowImportingTsExtensions": true, "verbatimModuleSyntax": true, "noEmit": true, - - // Best practices "strict": true, "skipLibCheck": true, "noFallthroughCasesInSwitch": true, - - // Some stricter flags (disabled by default) "noUnusedLocals": false, "noUnusedParameters": false, "noPropertyAccessFromIndexSignature": false diff --git a/scripts/install.sh b/scripts/install.sh index 98809d9..9341a82 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -1,6 +1,4 @@ #!/bin/bash -# Minikura Installer - set -e NAMESPACE="${KUBERNETES_NAMESPACE:-minikura}" @@ -12,7 +10,6 @@ echo "║ Minikura Kubernetes Installer ║" echo "╚════════════════════════════════════════════════╝" echo "" -# Check prerequisites echo "-> Checking prerequisites..." if ! command -v kubectl &> /dev/null; then echo "[WARN] kubectl not found. Skipping k8s setup." @@ -30,12 +27,10 @@ echo "[OK] kubectl found" echo "[OK] Connected to Kubernetes cluster" echo "" -# Create namespace echo "-> Creating namespace: $NAMESPACE" kubectl create namespace $NAMESPACE --dry-run=client -o yaml | kubectl apply -f - echo "" -# Apply CRDs and operator RBAC echo "-> Installing operator CRDs" make -C "$PROJECT_ROOT/operator" install-crds echo "[OK] CRDs installed" @@ -62,6 +57,5 @@ echo " [OK] ServiceAccount: minikura-operator" echo " [OK] ClusterRole + ClusterRoleBinding" echo "" echo "Next steps:" -echo " bun run dev - Start backend + web" -echo " bun run operator:dev - Start Go operator" +echo " bun run dev - Start backend, web, and Go operator" echo ""