mirror of
https://github.com/YuzuZensai/Minikura.git
synced 2026-09-13 10:49:21 +00:00
🎨 style: remove leftover template comments
This commit is contained in:
@@ -1,3 +1 @@
|
||||
# These are supported funding model platforms
|
||||
|
||||
github: [YuzuZensai]
|
||||
|
||||
@@ -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"
|
||||
|
||||
+2
-14
@@ -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`.
|
||||
|
||||
@@ -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
|
||||
|
||||
+2
-14
@@ -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`.
|
||||
|
||||
+2
-14
@@ -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.
|
||||
|
||||
@@ -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
|
||||
|
||||
+1
-13
@@ -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`.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
+1
-7
@@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user