commit 119b53c5161a42d6c06d15a1d6760f58cefe2c9f
Author: 刘嘉伟 <8473136@qq.com>
Date: Mon Mar 2 17:40:35 2026 +0800
:tada: hello frpchub!!!
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..12dfb9c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,62 @@
+# Binaries for programs and plugins
+*.exe
+*.exe~
+*.dll
+*.so
+*.dylib
+
+# Test binary, built with `go test -c`
+*.test
+
+# Output of the go coverage tool, specifically when used with LiteIDE
+*.out
+
+# Dependency directories (remove the comment below to include it)
+# vendor/
+
+# Go workspace file
+go.work
+
+# IDE
+.idea/
+*.swp
+*.swo
+*~
+
+# OS
+.DS_Store
+Thumbs.db
+
+# Build output
+/bin/
+/dist/
+/pb_public/
+
+# PocketBase
+/pb_data/
+node_modules
+
+# Logs
+logs
+*.log
+npm-debug.log*
+yarn-debug.log*
+yarn-error.log*
+pnpm-debug.log*
+lerna-debug.log*
+
+node_modules
+dist
+dist-ssr
+*.local
+
+# Editor directories and files
+!.vscode/extensions.json
+.idea
+.DS_Store
+*.suo
+*.ntvs*
+*.njsproj
+*.sln
+*.sw?
+__debug*
\ No newline at end of file
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..af022bd
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,195 @@
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship made available under
+ the License, as indicated by a copyright notice that is included in
+ or attached to the work (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean, as submitted to the Licensor for inclusion
+ in the Work by the copyright owner or by an individual or Legal Entity
+ authorized to submit on behalf of the copyright owner. For the purposes
+ of this definition, "submitted" means any form of electronic, verbal,
+ or written communication sent to the Licensor or its representatives,
+ including but not limited to communication on electronic mailing lists,
+ source code control systems, and issue tracking systems that are managed
+ by, or on behalf of, the Licensor for the purpose of discussing and
+ improving the Work, but excluding communication that is conspicuously
+ marked or otherwise designated in writing by the copyright owner as
+ "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any Legal Entity on behalf of
+ whom a Contribution has been received by the Licensor and subsequently
+ incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a cross-claim
+ or counterclaim in a lawsuit) alleging that the Work or any
+ Contribution embodied within the Work constitutes direct or contributory
+ patent infringement, then any patent licenses granted to You under
+ this License for that Work shall terminate as of the date such
+ litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, You must include a readable copy of the
+ attribution notices contained within such NOTICE file, in
+ at least one of the following places: within a NOTICE text
+ file distributed as part of the Derivative Works; within
+ the Source form or documentation, if provided along with the
+ Derivative Works; or, within a display generated by the
+ Derivative Works, if and wherever such third-party notices
+ normally appear. The contents of the NOTICE file are for
+ informational purposes only and do not modify the License.
+ You may add Your own attribution notices within Derivative
+ Works that You distribute, alongside or as an addition to
+ the NOTICE text from the Work, provided that such additional
+ attribution notices cannot be construed as modifying the License.
+
+ You may add Your own license statement for Your modifications and
+ may provide additional grant of rights to use, copy, modify, merge,
+ publish, distribute, sublicense, and/or sell copies of the
+ Contribution, and to permit persons to whom the Software is
+ furnished to do so.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or reproducing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or exemplary damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or all other
+ commercial damages or losses), even if such Contributor has been
+ advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format in use. Also, it is recommended
+ that a file or directory name and description of purpose be included
+ on the same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright 2026 刘嘉伟
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..5ae71fe
--- /dev/null
+++ b/README.md
@@ -0,0 +1,50 @@
+
+
+
+[![Forks][forks-shield]][forks-url]
+[![Stargazers][stars-shield]][stars-url]
+[![Issues][issues-shield]][issues-url]
+[![MIT License][license-shield]][license-url]
+
+
+
+
+
+
+
+
Frpc-Hub
+
+
+ 🎉 Cross-platform desktop client for FRP, visual configuration, easily achieve intranet penetration!
+
+ Support all frp versions / Auto-start / Visual configuration / Free and open source
+
+
+
+
+## Milestones
+
+- 2026-02-28: Released v0.0.1
+
+
+## Star History
+
+[](https://www.star-history.com/#luckjiawei/frpc-desktop&Date)
+
+
+
+[forks-shield]: https://img.shields.io/github/forks/luckjiawei/frpc-hub.svg?style=for-the-badge
+
+[forks-url]: https://github.com/luckjiawei/frpc-hub/network/members
+
+[stars-shield]: https://img.shields.io/github/stars/luckjiawei/frpc-hub.svg?style=for-the-badge
+
+[stars-url]: https://github.com/luckjiawei/frpc-hub/stargazers
+
+[issues-shield]: https://img.shields.io/github/issues/luckjiawei/frpc-hub.svg?style=for-the-badge
+
+[issues-url]: https://github.com/luckjiawei/frpc-hub/issues
+
+[license-shield]: https://img.shields.io/github/license/luckjiawei/frpc-hub.svg?style=for-the-badge
+
+[license-url]: https://github.com/luckjiawei/frpc-hub/blob/master/LICENSE
\ No newline at end of file
diff --git a/build/.dockerignore b/build/.dockerignore
new file mode 100644
index 0000000..dc4a641
--- /dev/null
+++ b/build/.dockerignore
@@ -0,0 +1,67 @@
+# Git files
+.git
+.gitignore
+.gitattributes
+
+# IDE files
+.vscode
+.idea
+*.swp
+*.swo
+*~
+
+# Build output
+dist/
+build/dist/
+*.tar.gz
+*.zip
+frpc-hub
+frpc-hub.exe
+
+# Dependencies
+node_modules/
+site/node_modules/
+site/dist/
+
+# Database and runtime data
+pb_data/
+*.db
+*.db-shm
+*.db-wal
+
+# Logs
+*.log
+logs/
+
+# OS files
+.DS_Store
+Thumbs.db
+
+# Temporary files
+*.tmp
+*.temp
+tmp/
+temp/
+
+# Environment files
+.env
+.env.local
+.env.*.local
+
+# Documentation
+*.md
+!README.md
+docs/
+
+# CI/CD
+.github/
+.gitlab-ci.yml
+.travis.yml
+
+# Test files
+*_test.go
+test/
+tests/
+
+# Claude files
+.claude/
diff --git a/build/.dockerignore.runtime b/build/.dockerignore.runtime
new file mode 100644
index 0000000..0dc9f99
--- /dev/null
+++ b/build/.dockerignore.runtime
@@ -0,0 +1,5 @@
+# Minimal .dockerignore for runtime Docker build
+# Only the dist/ directory (pre-built binaries) is needed
+*
+!dist/
+!dist/frpc-hub-linux-*
diff --git a/build/Dockerfile b/build/Dockerfile
new file mode 100644
index 0000000..f0b6646
--- /dev/null
+++ b/build/Dockerfile
@@ -0,0 +1,84 @@
+# Multi-stage Dockerfile for frpc-hub
+# Stage 1: Build frontend
+FROM node:20-alpine AS frontend-builder
+
+WORKDIR /app
+
+# Copy frontend source
+COPY site/package*.json site/pnpm-lock.yaml* ./
+# Install dependencies (try pnpm first, fallback to npm)
+RUN if [ -f pnpm-lock.yaml ]; then \
+ npm install -g pnpm && pnpm install; \
+ else \
+ npm install; \
+ fi
+
+COPY site/ ./
+RUN if [ -f pnpm-lock.yaml ]; then \
+ pnpm run build; \
+ else \
+ npm run build; \
+ fi
+
+# Stage 2: Build backend
+FROM golang:1.25-alpine AS backend-builder
+
+WORKDIR /app
+
+# Install build dependencies
+RUN apk add --no-cache git
+
+# Copy go mod files
+COPY go.mod go.sum ./
+RUN go mod download
+
+# Copy source code
+COPY . .
+
+# Copy built frontend from previous stage
+COPY --from=frontend-builder /app/dist ./pb_public
+
+# Build the application
+ARG VERSION=dev
+ARG BUILD_TIME
+RUN CGO_ENABLED=0 GOOS=linux go build \
+ -trimpath \
+ -ldflags "-s -w -X main.Version=${VERSION} -X main.BuildTime=${BUILD_TIME}" \
+ -o frpc-hub \
+ main.go
+
+# Stage 3: Final runtime image
+FROM alpine:latest
+
+# Install runtime dependencies
+RUN apk add --no-cache \
+ ca-certificates \
+ tzdata \
+ && rm -rf /var/cache/apk/*
+
+# Create non-root user
+RUN addgroup -g 1000 frpchub && \
+ adduser -D -u 1000 -G frpchub frpchub
+
+WORKDIR /app
+
+# Copy binary from builder
+COPY --from=backend-builder /app/frpc-hub .
+
+# Create data directory
+RUN mkdir -p /app/pb_data && \
+ chown -R frpchub:frpchub /app
+
+# Switch to non-root user
+USER frpchub
+
+# Expose port
+EXPOSE 8090
+
+# Health check
+HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
+ CMD wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1
+
+# Run the application
+ENTRYPOINT ["/app/frpc-hub"]
+CMD ["serve", "--http", "0.0.0.0:8090"]
diff --git a/build/Dockerfile.runtime b/build/Dockerfile.runtime
new file mode 100644
index 0000000..6eaa102
--- /dev/null
+++ b/build/Dockerfile.runtime
@@ -0,0 +1,32 @@
+# Runtime-only Dockerfile - uses pre-built binaries from CI
+# Used in the second stage of the CI pipeline (after build:binary)
+FROM alpine:latest
+
+ARG TARGETARCH
+
+RUN apk add --no-cache \
+ ca-certificates \
+ tzdata \
+ && rm -rf /var/cache/apk/*
+
+RUN addgroup -g 1000 frpchub && \
+ adduser -D -u 1000 -G frpchub frpchub
+
+WORKDIR /app
+
+# Copy pre-built binary for target architecture
+COPY dist/frpc-hub-linux-${TARGETARCH} ./frpc-hub
+RUN chmod +x ./frpc-hub
+
+RUN mkdir -p /app/pb_data && \
+ chown -R frpchub:frpchub /app
+
+USER frpchub
+
+EXPOSE 8090
+
+HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
+ CMD wget --no-verbose --tries=1 --spider http://localhost:8090/api/health || exit 1
+
+ENTRYPOINT ["/app/frpc-hub"]
+CMD ["serve", "--http", "0.0.0.0:8090"]
diff --git a/build/build.sh b/build/build.sh
new file mode 100755
index 0000000..30040c3
--- /dev/null
+++ b/build/build.sh
@@ -0,0 +1,235 @@
+#!/bin/bash
+set -e
+
+# Build script for frpc-hub - Multi-architecture support
+# Usage: ./build.sh [options]
+# Options:
+# --arch Build for specific architecture (linux-amd64, linux-arm64, darwin-amd64, darwin-arm64, windows-amd64, all)
+# --output Output directory (default: ./dist)
+# --skip-frontend Skip frontend build
+# --help Show this help message
+
+# Configuration
+APP_NAME="frpc-hub"
+VERSION=${VERSION:-$(git describe --tags --always --dirty 2>/dev/null || echo "dev")}
+BUILD_TIME=$(date -u '+%Y-%m-%d_%H:%M:%S')
+SITE_DIR="../site"
+PUBLIC_DIR="../pb_public"
+OUTPUT_DIR="./dist"
+SKIP_FRONTEND=false
+
+# Color output
+RED='\033[0;31m'
+GREEN='\033[0;32m'
+YELLOW='\033[1;33m'
+BLUE='\033[0;34m'
+NC='\033[0m' # No Color
+
+# Platform configurations
+# Format: GOOS-GOARCH
+PLATFORMS=(
+ "linux-amd64"
+ "linux-arm64"
+ "linux-arm"
+ "darwin-amd64"
+ "darwin-arm64"
+ "windows-amd64"
+)
+
+# Parse command line arguments
+while [[ $# -gt 0 ]]; do
+ case $1 in
+ --arch)
+ SELECTED_ARCH="$2"
+ shift 2
+ ;;
+ --output)
+ OUTPUT_DIR="$2"
+ shift 2
+ ;;
+ --skip-frontend)
+ SKIP_FRONTEND=true
+ shift
+ ;;
+ --help)
+ echo "Usage: $0 [options]"
+ echo "Options:"
+ echo " --arch Build for specific architecture (linux-amd64, linux-arm64, darwin-amd64, darwin-arm64, windows-amd64, all)"
+ echo " --output Output directory (default: ./dist)"
+ echo " --skip-frontend Skip frontend build"
+ echo " --help Show this help message"
+ echo ""
+ echo "Available architectures:"
+ for platform in "${PLATFORMS[@]}"; do
+ echo " - $platform"
+ done
+ exit 0
+ ;;
+ *)
+ echo -e "${RED}Unknown option: $1${NC}"
+ exit 1
+ ;;
+ esac
+done
+
+# Functions
+print_header() {
+ echo -e "${BLUE}=========================================="
+ echo -e "$1"
+ echo -e "==========================================${NC}"
+}
+
+print_info() {
+ echo -e "${GREEN}[INFO]${NC} $1"
+}
+
+print_warn() {
+ echo -e "${YELLOW}[WARN]${NC} $1"
+}
+
+print_error() {
+ echo -e "${RED}[ERROR]${NC} $1"
+}
+
+# Build frontend
+build_frontend() {
+ if [ "$SKIP_FRONTEND" = true ]; then
+ print_warn "Skipping frontend build"
+ return
+ fi
+
+ print_header "Building Frontend"
+
+ if [ ! -d "$SITE_DIR" ]; then
+ print_error "Directory '$SITE_DIR' not found."
+ exit 1
+ fi
+
+ cd "$SITE_DIR"
+
+ # Check for package manager and build
+ if command -v pnpm &> /dev/null; then
+ print_info "Using pnpm..."
+ pnpm install
+ pnpm run build
+ elif command -v npm &> /dev/null; then
+ print_info "Using npm..."
+ npm install
+ npm run build
+ else
+ print_error "Neither npm nor pnpm found. Please install Node.js."
+ exit 1
+ fi
+
+ cd - > /dev/null
+
+ # Prepare static files
+ print_info "Preparing static files..."
+ rm -rf "$PUBLIC_DIR"
+ mkdir -p "$PUBLIC_DIR"
+
+ if [ -d "$SITE_DIR/dist" ]; then
+ cp -r "$SITE_DIR/dist/." "$PUBLIC_DIR/"
+ print_info "Frontend assets copied to $PUBLIC_DIR"
+ else
+ print_error "Frontend build directory '$SITE_DIR/dist' not found."
+ exit 1
+ fi
+}
+
+# Build binary for specific platform
+build_binary() {
+ local platform=$1
+ local goos=$(echo $platform | cut -d'-' -f1)
+ local goarch=$(echo $platform | cut -d'-' -f2)
+
+ local output_name="${APP_NAME}"
+ if [ "$goos" = "windows" ]; then
+ output_name="${output_name}.exe"
+ fi
+
+ local output_path="${OUTPUT_DIR}/${platform}/${output_name}"
+
+ print_info "Building for $platform..."
+
+ mkdir -p "${OUTPUT_DIR}/${platform}"
+
+ # Build with version information
+ GOOS=$goos GOARCH=$goarch CGO_ENABLED=0 go build \
+ -trimpath \
+ -ldflags "-s -w -X main.Version=${VERSION} -X main.BuildTime=${BUILD_TIME}" \
+ -o "$output_path" \
+ ../main.go
+
+ if [ $? -eq 0 ]; then
+ # Get file size
+ local size=$(du -h "$output_path" | cut -f1)
+ print_info "✓ Built $platform ($size): $output_path"
+
+ # Create archive
+ cd "${OUTPUT_DIR}/${platform}"
+ if [ "$goos" = "windows" ]; then
+ zip -q "${APP_NAME}-${VERSION}-${platform}.zip" "$output_name"
+ print_info "✓ Created ${APP_NAME}-${VERSION}-${platform}.zip"
+ else
+ tar -czf "${APP_NAME}-${VERSION}-${platform}.tar.gz" "$output_name"
+ print_info "✓ Created ${APP_NAME}-${VERSION}-${platform}.tar.gz"
+ fi
+ cd - > /dev/null
+ else
+ print_error "Failed to build for $platform"
+ return 1
+ fi
+}
+
+# Main build process
+main() {
+ print_header "Starting Build Process for ${APP_NAME} v${VERSION}"
+
+ # Navigate to project root
+ cd "$(dirname "$0")"
+
+ # Clean output directory
+ rm -rf "$OUTPUT_DIR"
+ mkdir -p "$OUTPUT_DIR"
+
+ # Build frontend
+ build_frontend
+
+ # Tidy go modules
+ print_info "Tidying Go modules..."
+ cd ..
+ go mod tidy
+ cd build
+
+ print_header "Building Binaries"
+
+ # Build for selected platforms
+ if [ -n "$SELECTED_ARCH" ]; then
+ if [ "$SELECTED_ARCH" = "all" ]; then
+ for platform in "${PLATFORMS[@]}"; do
+ build_binary "$platform"
+ done
+ else
+ build_binary "$SELECTED_ARCH"
+ fi
+ else
+ # Default: build for current platform
+ CURRENT_OS=$(go env GOOS)
+ CURRENT_ARCH=$(go env GOARCH)
+ build_binary "${CURRENT_OS}-${CURRENT_ARCH}"
+ fi
+
+ print_header "Build Complete!"
+ print_info "Output directory: $OUTPUT_DIR"
+ print_info "Version: $VERSION"
+ print_info "Build time: $BUILD_TIME"
+
+ # List all built archives
+ echo ""
+ print_info "Built packages:"
+ find "$OUTPUT_DIR" -type f \( -name "*.tar.gz" -o -name "*.zip" \) -exec ls -lh {} \;
+}
+
+# Run main
+main
diff --git a/build/docker-build.sh b/build/docker-build.sh
new file mode 100755
index 0000000..c339866
--- /dev/null
+++ b/build/docker-build.sh
@@ -0,0 +1,184 @@
+#!/bin/bash
+set -e
+
+# Docker build script for frpc-hub with multi-architecture support
+# Usage: ./docker-build.sh [options]
+
+# Configuration
+IMAGE_NAME="frpc-hub"
+VERSION=${VERSION:-$(git describe --tags --always --dirty 2>/dev/null || echo "latest")}
+BUILD_TIME=$(date -u '+%Y-%m-%d_%H:%M:%S')
+REGISTRY=${REGISTRY:-""} # Set your registry here, e.g., "docker.io/username"
+PLATFORMS="linux/amd64,linux/arm64"
+PUSH=false
+LATEST=false
+
+# Color output
+RED='\033[0;31m'
+GREEN='\033[0;32m'
+YELLOW='\033[1;33m'
+BLUE='\033[0;34m'
+NC='\033[0m'
+
+print_header() {
+ echo -e "${BLUE}=========================================="
+ echo -e "$1"
+ echo -e "==========================================${NC}"
+}
+
+print_info() {
+ echo -e "${GREEN}[INFO]${NC} $1"
+}
+
+print_warn() {
+ echo -e "${YELLOW}[WARN]${NC} $1"
+}
+
+print_error() {
+ echo -e "${RED}[ERROR]${NC} $1"
+}
+
+show_help() {
+ echo "Usage: $0 [options]"
+ echo ""
+ echo "Options:"
+ echo " -r, --registry Docker registry (e.g., docker.io/username)"
+ echo " -v, --version Image version tag (default: git tag or 'latest')"
+ echo " -p, --platforms Target platforms (default: linux/amd64,linux/arm64)"
+ echo " --push Push image to registry after build"
+ echo " --latest Also tag as 'latest'"
+ echo " --no-cache Build without cache"
+ echo " -h, --help Show this help message"
+ echo ""
+ echo "Examples:"
+ echo " $0 # Build for local use"
+ echo " $0 --push --latest # Build and push with latest tag"
+ echo " $0 -r docker.io/myuser -v 1.0.0 --push # Build and push to registry"
+ echo " $0 -p linux/amd64 # Build for specific platform"
+}
+
+# Parse command line arguments
+NO_CACHE=""
+while [[ $# -gt 0 ]]; do
+ case $1 in
+ -r|--registry)
+ REGISTRY="$2"
+ shift 2
+ ;;
+ -v|--version)
+ VERSION="$2"
+ shift 2
+ ;;
+ -p|--platforms)
+ PLATFORMS="$2"
+ shift 2
+ ;;
+ --push)
+ PUSH=true
+ shift
+ ;;
+ --latest)
+ LATEST=true
+ shift
+ ;;
+ --no-cache)
+ NO_CACHE="--no-cache"
+ shift
+ ;;
+ -h|--help)
+ show_help
+ exit 0
+ ;;
+ *)
+ print_error "Unknown option: $1"
+ show_help
+ exit 1
+ ;;
+ esac
+done
+
+# Construct full image name
+if [ -n "$REGISTRY" ]; then
+ FULL_IMAGE_NAME="${REGISTRY}/${IMAGE_NAME}"
+else
+ FULL_IMAGE_NAME="${IMAGE_NAME}"
+fi
+
+# Navigate to build directory
+cd "$(dirname "$0")"
+
+print_header "Docker Build for ${IMAGE_NAME}"
+print_info "Version: ${VERSION}"
+print_info "Build time: ${BUILD_TIME}"
+print_info "Platforms: ${PLATFORMS}"
+print_info "Image name: ${FULL_IMAGE_NAME}:${VERSION}"
+
+# Check if buildx is available
+if ! docker buildx version &> /dev/null; then
+ print_error "Docker buildx is not available. Please install it first."
+ exit 1
+fi
+
+# Create builder if it doesn't exist
+if ! docker buildx ls | grep -q "frpc-hub-builder"; then
+ print_info "Creating buildx builder..."
+ docker buildx create --name frpc-hub-builder --use
+else
+ print_info "Using existing buildx builder..."
+ docker buildx use frpc-hub-builder
+fi
+
+# Bootstrap builder
+docker buildx inspect --bootstrap
+
+# Prepare build arguments
+BUILD_ARGS=(
+ "--build-arg" "VERSION=${VERSION}"
+ "--build-arg" "BUILD_TIME=${BUILD_TIME}"
+ "--platform" "${PLATFORMS}"
+ "--file" "Dockerfile"
+ "--tag" "${FULL_IMAGE_NAME}:${VERSION}"
+)
+
+# Add latest tag if requested
+if [ "$LATEST" = true ]; then
+ BUILD_ARGS+=("--tag" "${FULL_IMAGE_NAME}:latest")
+ print_info "Also tagging as: ${FULL_IMAGE_NAME}:latest"
+fi
+
+# Add push flag if requested
+if [ "$PUSH" = true ]; then
+ BUILD_ARGS+=("--push")
+ print_warn "Images will be pushed to registry"
+else
+ BUILD_ARGS+=("--load")
+fi
+
+# Add no-cache flag if requested
+if [ -n "$NO_CACHE" ]; then
+ BUILD_ARGS+=("$NO_CACHE")
+fi
+
+# Build the image
+print_header "Building Docker Image"
+docker buildx build "${BUILD_ARGS[@]}" ..
+
+if [ $? -eq 0 ]; then
+ print_header "Build Successful!"
+ print_info "Image: ${FULL_IMAGE_NAME}:${VERSION}"
+
+ if [ "$PUSH" = true ]; then
+ print_info "Image pushed to registry"
+ else
+ print_info "Image loaded locally"
+ echo ""
+ print_info "To run the container:"
+ echo " docker run -d -p 8090:8090 -v frpc-hub-data:/app/pb_data ${FULL_IMAGE_NAME}:${VERSION}"
+ echo ""
+ print_info "Or use docker-compose:"
+ echo " docker-compose up -d"
+ fi
+else
+ print_error "Build failed!"
+ exit 1
+fi
diff --git a/deploy/docker-compose.build.yml b/deploy/docker-compose.build.yml
new file mode 100644
index 0000000..27c8147
--- /dev/null
+++ b/deploy/docker-compose.build.yml
@@ -0,0 +1,72 @@
+version: '3.8'
+
+# Local build version: build the Docker image from source code
+# Usage: docker compose -f docker-compose.build.yml up -d
+
+services:
+ frpc-hub:
+ build:
+ context: ..
+ dockerfile: build/Dockerfile
+ args:
+ VERSION: ${VERSION:-latest}
+ BUILD_TIME: ${BUILD_TIME:-$(date -u '+%Y-%m-%d_%H:%M:%S')}
+ image: frpc-hub:${VERSION:-latest}
+ container_name: frpc-hub
+ restart: unless-stopped
+
+ ports:
+ # Web UI and API
+ - "8090:8090"
+ # Add your frpc proxy ports here
+ # Example:
+ # - "7000:7000" # frps server port
+ # - "7500:7500" # frps dashboard port
+
+ volumes:
+ # Persistent data storage
+ - frpc-hub-data:/app/pb_data
+ # Optional: Mount custom frpc configurations
+ # - ./frpc-configs:/app/frpc-configs
+
+ environment:
+ # Timezone
+ - TZ=Asia/Shanghai
+ # Optional: Custom PocketBase settings
+ # - PB_ENCRYPTION_KEY=your-encryption-key
+
+ # Resource limits (optional)
+ deploy:
+ resources:
+ limits:
+ cpus: '2'
+ memory: 1G
+ reservations:
+ cpus: '0.5'
+ memory: 256M
+
+ # Network mode (optional)
+ # Uncomment if you need host network for better frpc performance
+ # network_mode: host
+
+ # Logging
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "10m"
+ max-file: "3"
+
+ healthcheck:
+ test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8090/api/health"]
+ interval: 30s
+ timeout: 3s
+ start_period: 10s
+ retries: 3
+
+volumes:
+ frpc-hub-data:
+ driver: local
+
+networks:
+ default:
+ name: frpc-hub-network
diff --git a/deploy/docker-compose.yml b/deploy/docker-compose.yml
new file mode 100644
index 0000000..08be071
--- /dev/null
+++ b/deploy/docker-compose.yml
@@ -0,0 +1,66 @@
+version: '3.8'
+
+# Public image version: use the pre-built Docker image from a registry
+# Usage: docker compose up -d
+
+services:
+ frpc-hub:
+ image: ${REGISTRY:-ghcr.io/your-username}/frpc-hub:${VERSION:-latest}
+ container_name: frpc-hub
+ restart: unless-stopped
+
+ ports:
+ # Web UI and API
+ - "8090:8090"
+ # Add your frpc proxy ports here
+ # Example:
+ # - "7000:7000" # frps server port
+ # - "7500:7500" # frps dashboard port
+
+ volumes:
+ # Persistent data storage
+ - frpc-hub-data:/app/pb_data
+ # Optional: Mount custom frpc configurations
+ # - ./frpc-configs:/app/frpc-configs
+
+ environment:
+ # Timezone
+ - TZ=Asia/Shanghai
+ # Optional: Custom PocketBase settings
+ # - PB_ENCRYPTION_KEY=your-encryption-key
+
+ # Resource limits (optional)
+ deploy:
+ resources:
+ limits:
+ cpus: '2'
+ memory: 1G
+ reservations:
+ cpus: '0.5'
+ memory: 256M
+
+ # Network mode (optional)
+ # Uncomment if you need host network for better frpc performance
+ # network_mode: host
+
+ # Logging
+ logging:
+ driver: "json-file"
+ options:
+ max-size: "10m"
+ max-file: "3"
+
+ healthcheck:
+ test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8090/api/health"]
+ interval: 30s
+ timeout: 3s
+ start_period: 10s
+ retries: 3
+
+volumes:
+ frpc-hub-data:
+ driver: local
+
+networks:
+ default:
+ name: frpc-hub-network
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..3f1db5d
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,80 @@
+module frpc-hub
+
+go 1.25.5
+
+require (
+ github.com/fatedier/frp v0.67.0
+ github.com/pelletier/go-toml/v2 v2.2.0
+ github.com/pocketbase/dbx v1.11.0
+ github.com/pocketbase/pocketbase v0.35.0
+ github.com/spf13/cobra v1.10.2
+)
+
+require (
+ github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 // indirect
+ github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 // indirect
+ github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 // indirect
+ github.com/coreos/go-oidc/v3 v3.14.1 // indirect
+ github.com/disintegration/imaging v1.6.2 // indirect
+ github.com/domodwyer/mailyak/v3 v3.6.2 // indirect
+ github.com/dustin/go-humanize v1.0.1 // indirect
+ github.com/fatedier/golib v0.5.1 // indirect
+ github.com/fatih/color v1.18.0 // indirect
+ github.com/gabriel-vasile/mimetype v1.4.12 // indirect
+ github.com/ganigeorgiev/fexpr v0.5.0 // indirect
+ github.com/go-jose/go-jose/v4 v4.0.5 // indirect
+ github.com/go-ozzo/ozzo-validation/v4 v4.3.0 // indirect
+ github.com/golang-jwt/jwt/v5 v5.3.0 // indirect
+ github.com/golang/snappy v0.0.4 // indirect
+ github.com/google/uuid v1.6.0 // indirect
+ github.com/gorilla/mux v1.8.1 // indirect
+ github.com/hashicorp/yamux v0.1.1 // indirect
+ github.com/inconshreveable/mousetrap v1.1.0 // indirect
+ github.com/klauspost/cpuid/v2 v2.2.6 // indirect
+ github.com/klauspost/reedsolomon v1.12.0 // indirect
+ github.com/mattn/go-colorable v0.1.14 // indirect
+ github.com/mattn/go-isatty v0.0.20 // indirect
+ github.com/ncruces/go-strftime v1.0.0 // indirect
+ github.com/pion/dtls/v2 v2.2.7 // indirect
+ github.com/pion/logging v0.2.2 // indirect
+ github.com/pion/stun/v2 v2.0.0 // indirect
+ github.com/pion/transport/v2 v2.2.1 // indirect
+ github.com/pion/transport/v3 v3.0.1 // indirect
+ github.com/pires/go-proxyproto v0.7.0 // indirect
+ github.com/pkg/errors v0.9.1 // indirect
+ github.com/quic-go/quic-go v0.55.0 // indirect
+ github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec // indirect
+ github.com/samber/lo v1.47.0 // indirect
+ github.com/songgao/water v0.0.0-20200317203138-2b4b6d7c09d8 // indirect
+ github.com/spf13/cast v1.10.0 // indirect
+ github.com/spf13/pflag v1.0.10 // indirect
+ github.com/templexxx/cpu v0.1.1 // indirect
+ github.com/templexxx/xorsimd v0.4.3 // indirect
+ github.com/tjfoc/gmsm v1.4.1 // indirect
+ github.com/vishvananda/netlink v1.3.0 // indirect
+ github.com/vishvananda/netns v0.0.4 // indirect
+ github.com/xtaci/kcp-go/v5 v5.6.13 // indirect
+ golang.org/x/crypto v0.46.0 // indirect
+ golang.org/x/exp v0.0.0-20251219203646-944ab1f22d93 // indirect
+ golang.org/x/image v0.34.0 // indirect
+ golang.org/x/mod v0.31.0 // indirect
+ golang.org/x/net v0.48.0 // indirect
+ golang.org/x/oauth2 v0.34.0 // indirect
+ golang.org/x/sync v0.19.0 // indirect
+ golang.org/x/sys v0.39.0 // indirect
+ golang.org/x/text v0.32.0 // indirect
+ golang.org/x/time v0.5.0 // indirect
+ golang.org/x/tools v0.40.0 // indirect
+ golang.zx2c4.com/wintun v0.0.0-20230126152724-0fa3db229ce2 // indirect
+ golang.zx2c4.com/wireguard v0.0.0-20231211153847-12269c276173 // indirect
+ gopkg.in/ini.v1 v1.67.0 // indirect
+ gopkg.in/yaml.v2 v2.4.0 // indirect
+ k8s.io/apimachinery v0.28.8 // indirect
+ k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 // indirect
+ modernc.org/libc v1.66.10 // indirect
+ modernc.org/mathutil v1.7.1 // indirect
+ modernc.org/memory v1.11.0 // indirect
+ modernc.org/sqlite v1.41.0 // indirect
+ sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd // indirect
+ sigs.k8s.io/yaml v1.3.0 // indirect
+)
diff --git a/go.sum b/go.sum
new file mode 100644
index 0000000..613b543
--- /dev/null
+++ b/go.sum
@@ -0,0 +1,326 @@
+cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
+github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 h1:mFRzDkZVAjdal+s7s0MwaRv9igoPqLRdzOLzw/8Xvq8=
+github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358/go.mod h1:chxPXzSsl7ZWRAuOIE23GDNzjWuZquvFlgA8xmpunjU=
+github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
+github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
+github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
+github.com/asaskevich/govalidator v0.0.0-20200108200545-475eaeb16496/go.mod h1:oGkLhpf+kjZl6xBf758TQhh5XrAeiJv/7FRz/2spLIg=
+github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2 h1:DklsrG3dyBCFEj5IhUbnKptjxatkF07cF2ak3yi77so=
+github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2/go.mod h1:WaHUgvxTVq04UNunO+XhnAqY/wQc+bxr74GqbsZ/Jqw=
+github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
+github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
+github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
+github.com/coreos/go-oidc/v3 v3.14.1 h1:9ePWwfdwC4QKRlCXsJGou56adA/owXczOzwKdOumLqk=
+github.com/coreos/go-oidc/v3 v3.14.1/go.mod h1:HaZ3szPaZ0e4r6ebqvsLWlk2Tn+aejfmrfah6hnSYEU=
+github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/disintegration/imaging v1.6.2 h1:w1LecBlG2Lnp8B3jk5zSuNqd7b4DXhcjwek1ei82L+c=
+github.com/disintegration/imaging v1.6.2/go.mod h1:44/5580QXChDfwIclfc/PCwrr44amcmDAg8hxG0Ewe4=
+github.com/domodwyer/mailyak/v3 v3.6.2 h1:x3tGMsyFhTCaxp6ycgR0FE/bu5QiNp+hetUuCOBXMn8=
+github.com/domodwyer/mailyak/v3 v3.6.2/go.mod h1:lOm/u9CyCVWHeaAmHIdF4RiKVxKUT/H5XX10lIKAL6c=
+github.com/dustin/go-humanize v1.0.1 h1:GzkhY7T5VNhEkwH0PVJgjz+fX1rhBrR7pRT3mDkpeCY=
+github.com/dustin/go-humanize v1.0.1/go.mod h1:Mu1zIs6XwVuF/gI1OepvI0qD18qycQx+mFykh5fBlto=
+github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
+github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
+github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
+github.com/fatedier/frp v0.67.0 h1:w6xHLkruAJcq+fZP9VOiY6w/FBy/wB1aPqA4frs98K8=
+github.com/fatedier/frp v0.67.0/go.mod h1:0Q3mAI0c9WtAsgMQpTQhinWTKa2Qp121YWsqaFu41Zg=
+github.com/fatedier/golib v0.5.1 h1:hcKAnaw5mdI/1KWRGejxR+i1Hn/NvbY5UsMKDr7o13M=
+github.com/fatedier/golib v0.5.1/go.mod h1:W6kIYkIFxHsTzbgqg5piCxIiDo4LzwgTY6R5W8l9NFQ=
+github.com/fatih/color v1.18.0 h1:S8gINlzdQ840/4pfAwic/ZE0djQEH3wM94VfqLTZcOM=
+github.com/fatih/color v1.18.0/go.mod h1:4FelSpRwEGDpQ12mAdzqdOukCy4u8WUtOY6lkT/6HfU=
+github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
+github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
+github.com/gabriel-vasile/mimetype v1.4.12 h1:e9hWvmLYvtp846tLHam2o++qitpguFiYCKbn0w9jyqw=
+github.com/gabriel-vasile/mimetype v1.4.12/go.mod h1:d+9Oxyo1wTzWdyVUPMmXFvp4F9tea18J8ufA774AB3s=
+github.com/ganigeorgiev/fexpr v0.5.0 h1:XA9JxtTE/Xm+g/JFI6RfZEHSiQlk+1glLvRK1Lpv/Tk=
+github.com/ganigeorgiev/fexpr v0.5.0/go.mod h1:RyGiGqmeXhEQ6+mlGdnUleLHgtzzu/VGO2WtJkF5drE=
+github.com/go-jose/go-jose/v4 v4.0.5 h1:M6T8+mKZl/+fNNuFHvGIzDz7BTLQPIounk/b9dw3AaE=
+github.com/go-jose/go-jose/v4 v4.0.5/go.mod h1:s3P1lRrkT8igV8D9OjyL4WRyHvjB6a4JSllnOrmmBOA=
+github.com/go-ozzo/ozzo-validation/v4 v4.3.0 h1:byhDUpfEwjsVQb1vBunvIjh2BHQ9ead57VkAEY4V+Es=
+github.com/go-ozzo/ozzo-validation/v4 v4.3.0/go.mod h1:2NKgrcHl3z6cJs+3Oo940FPRiTzuqKbvfrL2RxCj6Ew=
+github.com/go-sql-driver/mysql v1.4.1 h1:g24URVg0OFbNUTx9qqY1IRZ9D9z3iPyi5zKhQZpNwpA=
+github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
+github.com/golang-jwt/jwt/v5 v5.3.0 h1:pv4AsKCKKZuqlgs5sUmn4x8UlGa0kEVt/puTpKx9vvo=
+github.com/golang-jwt/jwt/v5 v5.3.0/go.mod h1:fxCRLWMO43lRc8nhHWY6LGqRcf+1gQWArsqaEUEa5bE=
+github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
+github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
+github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
+github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
+github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
+github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
+github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
+github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
+github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
+github.com/golang/snappy v0.0.4 h1:yAGX7huGHXlcLOEtBnF4w7FQwA26wojNCwOYAEhLjQM=
+github.com/golang/snappy v0.0.4/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
+github.com/google/btree v1.0.1 h1:gK4Kx5IaGY9CD5sPJ36FHiBJ6ZXl0kilRiiCj+jdYp4=
+github.com/google/btree v1.0.1/go.mod h1:xXMiIv4Fb/0kKde4SpL7qlzvu5cMJDRkFDxJfI9uaxA=
+github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
+github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
+github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
+github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8=
+github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU=
+github.com/google/pprof v0.0.0-20251007162407-5df77e3f7d1d h1:KJIErDwbSHjnp/SGzE5ed8Aol7JsKiI5X7yWKAtzhM0=
+github.com/google/pprof v0.0.0-20251007162407-5df77e3f7d1d/go.mod h1:I6V7YzU0XDpsHqbsyrghnFZLO1gwK6NPTNvmetQIk9U=
+github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
+github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
+github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY=
+github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ=
+github.com/hashicorp/yamux v0.1.1 h1:yrQxtgseBDrq9Y652vSRDvsKCJKOUD+GzTS4Y0Y8pvE=
+github.com/hashicorp/yamux v0.1.1/go.mod h1:CtWFDAQgb7dxtzFs4tWbplKIe2jSi3+5vKbgIO0SLnQ=
+github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
+github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
+github.com/klauspost/cpuid/v2 v2.2.6 h1:ndNyv040zDGIDh8thGkXYjnFtiN02M1PVVF+JE/48xc=
+github.com/klauspost/cpuid/v2 v2.2.6/go.mod h1:Lcz8mBdAVJIBVzewtcLocK12l3Y+JytZYpaMropDUws=
+github.com/klauspost/reedsolomon v1.12.0 h1:I5FEp3xSwVCcEh3F5A7dofEfhXdF/bWhQWPH+XwBFno=
+github.com/klauspost/reedsolomon v1.12.0/go.mod h1:EPLZJeh4l27pUGC3aXOjheaoh1I9yut7xTURiW3LQ9Y=
+github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
+github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
+github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
+github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
+github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE=
+github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8=
+github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
+github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
+github.com/ncruces/go-strftime v1.0.0 h1:HMFp8mLCTPp341M/ZnA4qaf7ZlsbTc+miZjCLOFAw7w=
+github.com/ncruces/go-strftime v1.0.0/go.mod h1:Fwc5htZGVVkseilnfgOVb9mKy6w1naJmn9CehxcKcls=
+github.com/pelletier/go-toml/v2 v2.2.0 h1:QLgLl2yMN7N+ruc31VynXs1vhMZa7CeHHejIeBAsoHo=
+github.com/pelletier/go-toml/v2 v2.2.0/go.mod h1:1t835xjRzz80PqgE6HHgN2JOsmgYu/h4qDAS4n929Rs=
+github.com/pion/dtls/v2 v2.2.7 h1:cSUBsETxepsCSFSxC3mc/aDo14qQLMSL+O6IjG28yV8=
+github.com/pion/dtls/v2 v2.2.7/go.mod h1:8WiMkebSHFD0T+dIU+UeBaoV7kDhOW5oDCzZ7WZ/F9s=
+github.com/pion/logging v0.2.2 h1:M9+AIj/+pxNsDfAT64+MAVgJO0rsyLnoJKCqf//DoeY=
+github.com/pion/logging v0.2.2/go.mod h1:k0/tDVsRCX2Mb2ZEmTqNa7CWsQPc+YYCB7Q+5pahoms=
+github.com/pion/stun/v2 v2.0.0 h1:A5+wXKLAypxQri59+tmQKVs7+l6mMM+3d+eER9ifRU0=
+github.com/pion/stun/v2 v2.0.0/go.mod h1:22qRSh08fSEttYUmJZGlriq9+03jtVmXNODgLccj8GQ=
+github.com/pion/transport/v2 v2.2.1 h1:7qYnCBlpgSJNYMbLCKuSY9KbQdBFoETvPNETv0y4N7c=
+github.com/pion/transport/v2 v2.2.1/go.mod h1:cXXWavvCnFF6McHTft3DWS9iic2Mftcz1Aq29pGcU5g=
+github.com/pion/transport/v3 v3.0.1 h1:gDTlPJwROfSfz6QfSi0ZmeCSkFcnWWiiR9ES0ouANiM=
+github.com/pion/transport/v3 v3.0.1/go.mod h1:UY7kiITrlMv7/IKgd5eTUcaahZx5oUN3l9SzK5f5xE0=
+github.com/pires/go-proxyproto v0.7.0 h1:IukmRewDQFWC7kfnb66CSomk2q/seBuilHBYFwyq0Hs=
+github.com/pires/go-proxyproto v0.7.0/go.mod h1:Vz/1JPY/OACxWGQNIRY2BeyDmpoaWmEP40O9LbuiFR4=
+github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
+github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/pocketbase/dbx v1.11.0 h1:LpZezioMfT3K4tLrqA55wWFw1EtH1pM4tzSVa7kgszU=
+github.com/pocketbase/dbx v1.11.0/go.mod h1:xXRCIAKTHMgUCyCKZm55pUOdvFziJjQfXaWKhu2vhMs=
+github.com/pocketbase/pocketbase v0.35.0 h1:MW905RYJnpwl8bvFDPCn+/5Y/TGKbf+kpdKiZmqx/1s=
+github.com/pocketbase/pocketbase v0.35.0/go.mod h1:eA9IKEvGYhdVbngBzgXPDZ2aNAGfDBkB6kcuLnHLTag=
+github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
+github.com/quic-go/quic-go v0.55.0 h1:zccPQIqYCXDt5NmcEabyYvOnomjs8Tlwl7tISjJh9Mk=
+github.com/quic-go/quic-go v0.55.0/go.mod h1:DR51ilwU1uE164KuWXhinFcKWGlEjzys2l8zUl5Ss1U=
+github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec h1:W09IVJc94icq4NjY3clb7Lk8O1qJ8BdBEF8z0ibU0rE=
+github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec/go.mod h1:qqbHyh8v60DhA7CoWK5oRCqLrMHRGoxYCSS9EjAz6Eo=
+github.com/rogpeppe/go-internal v1.10.0 h1:TMyTOH3F/DB16zRVcYyreMH6GnZZrwQVAoYjRBZyWFQ=
+github.com/rogpeppe/go-internal v1.10.0/go.mod h1:UQnix2H7Ngw/k4C5ijL5+65zddjncjaFoBhdsK/akog=
+github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
+github.com/samber/lo v1.47.0 h1:z7RynLwP5nbyRscyvcD043DWYoOcYRv3mV8lBeqOCLc=
+github.com/samber/lo v1.47.0/go.mod h1:RmDH9Ct32Qy3gduHQuKJ3gW1fMHAnE/fAzQuf6He5cU=
+github.com/songgao/water v0.0.0-20200317203138-2b4b6d7c09d8 h1:TG/diQgUe0pntT/2D9tmUCz4VNwm9MfrtPr0SU2qSX8=
+github.com/songgao/water v0.0.0-20200317203138-2b4b6d7c09d8/go.mod h1:P5HUIBuIWKbyjl083/loAegFkfbFNx5i2qEP4CNbm7E=
+github.com/spf13/cast v1.10.0 h1:h2x0u2shc1QuLHfxi+cTJvs30+ZAHOGRic8uyGTDWxY=
+github.com/spf13/cast v1.10.0/go.mod h1:jNfB8QC9IA6ZuY2ZjDp0KtFO2LZZlg4S/7bzP6qqeHo=
+github.com/spf13/cobra v1.10.2 h1:DMTTonx5m65Ic0GOoRY2c16WCbHxOOw6xxezuLaBpcU=
+github.com/spf13/cobra v1.10.2/go.mod h1:7C1pvHqHw5A4vrJfjNwvOdzYu0Gml16OCs2GRiTUUS4=
+github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
+github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
+github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
+github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
+github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
+github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
+github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
+github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
+github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
+github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
+github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
+github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
+github.com/templexxx/cpu v0.1.1 h1:isxHaxBXpYFWnk2DReuKkigaZyrjs2+9ypIdGP4h+HI=
+github.com/templexxx/cpu v0.1.1/go.mod h1:w7Tb+7qgcAlIyX4NhLuDKt78AHA5SzPmq0Wj6HiEnnk=
+github.com/templexxx/xorsimd v0.4.3 h1:9AQTFHd7Bhk3dIT7Al2XeBX5DWOvsUPZCuhyAtNbHjU=
+github.com/templexxx/xorsimd v0.4.3/go.mod h1:oZQcD6RFDisW2Am58dSAGwwL6rHjbzrlu25VDqfWkQg=
+github.com/tjfoc/gmsm v1.4.1 h1:aMe1GlZb+0bLjn+cKTPEvvn9oUEBlJitaZiiBwsbgho=
+github.com/tjfoc/gmsm v1.4.1/go.mod h1:j4INPkHWMrhJb38G+J6W4Tw0AbuN8Thu3PbdVYhVcTE=
+github.com/vishvananda/netlink v1.3.0 h1:X7l42GfcV4S6E4vHTsw48qbrV+9PVojNfIhZcwQdrZk=
+github.com/vishvananda/netlink v1.3.0/go.mod h1:i6NetklAujEcC6fK0JPjT8qSwWyO0HLn4UKG+hGqeJs=
+github.com/vishvananda/netns v0.0.4 h1:Oeaw1EM2JMxD51g9uhtC0D7erkIjgmj8+JZc26m1YX8=
+github.com/vishvananda/netns v0.0.4/go.mod h1:SpkAiCQRtJ6TvvxPnOSyH3BMl6unz3xZlaprSwhNNJM=
+github.com/xtaci/kcp-go/v5 v5.6.13 h1:FEjtz9+D4p8t2x4WjciGt/jsIuhlWjjgPCCWjrVR4Hk=
+github.com/xtaci/kcp-go/v5 v5.6.13/go.mod h1:75S1AKYYzNUSXIv30h+jPKJYZUwqpfvLshu63nCNSOM=
+github.com/xtaci/lossyconn v0.0.0-20200209145036-adba10fffc37 h1:EWU6Pktpas0n8lLQwDsRyZfmkPeRbdgPtW609es+/9E=
+github.com/xtaci/lossyconn v0.0.0-20200209145036-adba10fffc37/go.mod h1:HpMP7DB2CyokmAh4lp0EQnnWhmycP/TvwBGzvuie+H0=
+github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
+go.uber.org/mock v0.5.2 h1:LbtPTcP8A5k9WPXj54PPPbjcI4Y6lhyOZXn+VS7wNko=
+go.uber.org/mock v0.5.2/go.mod h1:wLlUxC2vVTPTaE3UD51E0BGOAElKrILxhVSDYQLld5o=
+go.yaml.in/yaml/v3 v3.0.4/go.mod h1:DhzuOOF2ATzADvBadXxruRBLzYTpT36CKvDb3+aBEFg=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
+golang.org/x/crypto v0.0.0-20201012173705-84dcc777aaee/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
+golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc=
+golang.org/x/crypto v0.8.0/go.mod h1:mRqEX+O9/h5TFCrQhkgjo2yKi0yYA+9ecGkdQoHrywE=
+golang.org/x/crypto v0.12.0/go.mod h1:NF0Gs7EO5K4qLn+Ylc+fih8BSTeIjAP05siRnAh98yw=
+golang.org/x/crypto v0.46.0 h1:cKRW/pmt1pKAfetfu+RCEvjvZkA9RimPbh7bhFjGVBU=
+golang.org/x/crypto v0.46.0/go.mod h1:Evb/oLKmMraqjZ2iQTwDwvCtJkczlDuTmdJXoZVzqU0=
+golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
+golang.org/x/exp v0.0.0-20251219203646-944ab1f22d93 h1:fQsdNF2N+/YewlRZiricy4P1iimyPKZ/xwniHj8Q2a0=
+golang.org/x/exp v0.0.0-20251219203646-944ab1f22d93/go.mod h1:EPRbTFwzwjXj9NpYyyrvenVh9Y+GFeEvMNh7Xuz7xgU=
+golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8/go.mod h1:FeLwcggjj3mMvU+oOTbSwawSJRM1uh48EjtB4UJZlP0=
+golang.org/x/image v0.34.0 h1:33gCkyw9hmwbZJeZkct8XyR11yH889EQt/QH4VmXMn8=
+golang.org/x/image v0.34.0/go.mod h1:2RNFBZRB+vnwwFil8GkMdRvrJOFd1AzdZI6vOY+eJVU=
+golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
+golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
+golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
+golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
+golang.org/x/mod v0.31.0 h1:HaW9xtz0+kOcWKwli0ZXy79Ix+UW/vOfmWI5QVd2tgI=
+golang.org/x/mod v0.31.0/go.mod h1:43JraMp9cGx1Rx3AqioxrbrhNsLl2l/iNAvuBkrezpg=
+golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
+golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20201010224723-4f7140c49acb/go.mod h1:sp8m0HH+o8qH0wwXwYZr8TS3Oi6o0r6Gce1SSxlDquU=
+golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
+golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
+golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
+golang.org/x/net v0.9.0/go.mod h1:d48xBJpPfHeWQsugry2m+kC02ZBRGRgulfHnEXEuWns=
+golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
+golang.org/x/net v0.14.0/go.mod h1:PpSgVXXLK0OxS0F31C1/tv6XNguvCrnXIDrFMspZIUI=
+golang.org/x/net v0.48.0 h1:zyQRTTrjc33Lhh0fBgT/H3oZq9WuvRR5gPC70xpDiQU=
+golang.org/x/net v0.48.0/go.mod h1:+ndRgGjkh8FGtu1w1FGbEC31if4VrNVMuKTgcAAnQRY=
+golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
+golang.org/x/oauth2 v0.34.0 h1:hqK/t4AKgbqWkdkcAeI8XLmbK+4m4G5YeQRrmiotGlw=
+golang.org/x/oauth2 v0.34.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA=
+golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.19.0 h1:vV+1eWNmZ5geRlYjzm2adRgW2/mcpevXNg50YZtPCE4=
+golang.org/x/sync v0.19.0/go.mod h1:9KTHXmSnoGruLpwFjVSX0lNNA75CykiMECbovNTZqGI=
+golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200930185726-fdedc70b468f/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.7.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.10.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.11.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.39.0 h1:CvCKL8MeisomCi6qNZ+wbb0DN9E5AATixKsvNtMoMFk=
+golang.org/x/sys v0.39.0/go.mod h1:OgkHotnGiDImocRcuBABYBEXf8A9a87e/uXjp9XT3ks=
+golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
+golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
+golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
+golang.org/x/term v0.7.0/go.mod h1:P32HKFT3hSsZrRxla30E9HqToFYAQPCMs/zFMBUFqPY=
+golang.org/x/term v0.8.0/go.mod h1:xPskH00ivmX89bAKVGSKKtLOWNx2+17Eiy94tnKShWo=
+golang.org/x/term v0.11.0/go.mod h1:zC9APTIj3jG3FdV/Ons+XE1riIZXG4aZ4GTHiPZJPIU=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
+golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
+golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
+golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
+golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE=
+golang.org/x/text v0.32.0 h1:ZD01bjUt1FQ9WJ0ClOL5vxgxOI/sVCNgX1YtKwcY0mU=
+golang.org/x/text v0.32.0/go.mod h1:o/rUWzghvpD5TXrTIBuJU77MTaN0ljMWE47kxGJQ7jY=
+golang.org/x/time v0.5.0 h1:o7cqy6amK/52YcAKIPlM3a+Fpj35zvRj2TP+e1xFSfk=
+golang.org/x/time v0.5.0/go.mod h1:3BpzKBy/shNhVucY/MWOyx10tF3SFh9QdLuxbVysPQM=
+golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
+golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
+golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
+golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
+golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
+golang.org/x/tools v0.40.0 h1:yLkxfA+Qnul4cs9QA3KnlFu0lVmd8JJfoq+E41uSutA=
+golang.org/x/tools v0.40.0/go.mod h1:Ik/tzLRlbscWpqqMRjyWYDisX8bG13FrdXp3o4Sr9lc=
+golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+golang.zx2c4.com/wintun v0.0.0-20230126152724-0fa3db229ce2 h1:B82qJJgjvYKsXS9jeunTOisW56dUokqW/FOteYJJ/yg=
+golang.zx2c4.com/wintun v0.0.0-20230126152724-0fa3db229ce2/go.mod h1:deeaetjYA+DHMHg+sMSMI58GrEteJUUzzw7en6TJQcI=
+golang.zx2c4.com/wireguard v0.0.0-20231211153847-12269c276173 h1:/jFs0duh4rdb8uIfPMv78iAJGcPKDeqAFnaLBropIC4=
+golang.zx2c4.com/wireguard v0.0.0-20231211153847-12269c276173/go.mod h1:tkCQ4FQXmpAgYVh++1cq16/dH4QJtmvpRv19DWGAHSA=
+google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
+google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
+google.golang.org/appengine v1.6.5 h1:tycE03LOZYQNhDpS27tcQdAzLCVMaj7QT2SXxebnpCM=
+google.golang.org/appengine v1.6.5/go.mod h1:8WjMMxjGQR8xUklV/ARdw2HLXBOI7O7uCIDZVag1xfc=
+google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
+google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
+google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
+google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
+google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
+google.golang.org/grpc v1.31.0/go.mod h1:N36X2cJ7JwdamYAgDz+s+rVMFjt3numwzf/HckM8pak=
+google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
+google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
+google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
+google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
+google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
+google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
+gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c/go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q=
+gopkg.in/ini.v1 v1.67.0 h1:Dgnx+6+nfE+IfzjUEISNeydPJh9AXNNsWbGP9KzCsOA=
+gopkg.in/ini.v1 v1.67.0/go.mod h1:pNLf8WUiyNEtQjuu5G5vTm06TEv9tsIgeAvK8hOrP4k=
+gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
+gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
+gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
+gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+gvisor.dev/gvisor v0.0.0-20230927004350-cbd86285d259 h1:TbRPT0HtzFP3Cno1zZo7yPzEEnfu8EjLfl6IU9VfqkQ=
+gvisor.dev/gvisor v0.0.0-20230927004350-cbd86285d259/go.mod h1:AVgIgHMwK63XvmAzWG9vLQ41YnVHN0du0tEC46fI7yY=
+honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+k8s.io/apimachinery v0.28.8 h1:hi/nrxHwk4QLV+W/SHve1bypTE59HCDorLY1stBIxKQ=
+k8s.io/apimachinery v0.28.8/go.mod h1:cBnwIM3fXoRo28SqbV/Ihxf/iviw85KyXOrzxvZQ83U=
+k8s.io/utils v0.0.0-20230406110748-d93618cff8a2 h1:qY1Ad8PODbnymg2pRbkyMT/ylpTrCM8P2RJ0yroCyIk=
+k8s.io/utils v0.0.0-20230406110748-d93618cff8a2/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0=
+modernc.org/cc/v4 v4.26.5 h1:xM3bX7Mve6G8K8b+T11ReenJOT+BmVqQj0FY5T4+5Y4=
+modernc.org/cc/v4 v4.26.5/go.mod h1:uVtb5OGqUKpoLWhqwNQo/8LwvoiEBLvZXIQ/SmO6mL0=
+modernc.org/ccgo/v4 v4.28.1 h1:wPKYn5EC/mYTqBO373jKjvX2n+3+aK7+sICCv4Fjy1A=
+modernc.org/ccgo/v4 v4.28.1/go.mod h1:uD+4RnfrVgE6ec9NGguUNdhqzNIeeomeXf6CL0GTE5Q=
+modernc.org/fileutil v1.3.40 h1:ZGMswMNc9JOCrcrakF1HrvmergNLAmxOPjizirpfqBA=
+modernc.org/fileutil v1.3.40/go.mod h1:HxmghZSZVAz/LXcMNwZPA/DRrQZEVP9VX0V4LQGQFOc=
+modernc.org/gc/v2 v2.6.5 h1:nyqdV8q46KvTpZlsw66kWqwXRHdjIlJOhG6kxiV/9xI=
+modernc.org/gc/v2 v2.6.5/go.mod h1:YgIahr1ypgfe7chRuJi2gD7DBQiKSLMPgBQe9oIiito=
+modernc.org/goabi0 v0.2.0 h1:HvEowk7LxcPd0eq6mVOAEMai46V+i7Jrj13t4AzuNks=
+modernc.org/goabi0 v0.2.0/go.mod h1:CEFRnnJhKvWT1c1JTI3Avm+tgOWbkOu5oPA8eH8LnMI=
+modernc.org/libc v1.66.10 h1:yZkb3YeLx4oynyR+iUsXsybsX4Ubx7MQlSYEw4yj59A=
+modernc.org/libc v1.66.10/go.mod h1:8vGSEwvoUoltr4dlywvHqjtAqHBaw0j1jI7iFBTAr2I=
+modernc.org/mathutil v1.7.1 h1:GCZVGXdaN8gTqB1Mf/usp1Y/hSqgI2vAGGP4jZMCxOU=
+modernc.org/mathutil v1.7.1/go.mod h1:4p5IwJITfppl0G4sUEDtCr4DthTaT47/N3aT6MhfgJg=
+modernc.org/memory v1.11.0 h1:o4QC8aMQzmcwCK3t3Ux/ZHmwFPzE6hf2Y5LbkRs+hbI=
+modernc.org/memory v1.11.0/go.mod h1:/JP4VbVC+K5sU2wZi9bHoq2MAkCnrt2r98UGeSK7Mjw=
+modernc.org/opt v0.1.4 h1:2kNGMRiUjrp4LcaPuLY2PzUfqM/w9N23quVwhKt5Qm8=
+modernc.org/opt v0.1.4/go.mod h1:03fq9lsNfvkYSfxrfUhZCWPk1lm4cq4N+Bh//bEtgns=
+modernc.org/sortutil v1.2.1 h1:+xyoGf15mM3NMlPDnFqrteY07klSFxLElE2PVuWIJ7w=
+modernc.org/sortutil v1.2.1/go.mod h1:7ZI3a3REbai7gzCLcotuw9AC4VZVpYMjDzETGsSMqJE=
+modernc.org/sqlite v1.41.0 h1:bJXddp4ZpsqMsNN1vS0jWo4IJTZzb8nWpcgvyCFG9Ck=
+modernc.org/sqlite v1.41.0/go.mod h1:9fjQZ0mB1LLP0GYrp39oOJXx/I2sxEnZtzCmEQIKvGE=
+modernc.org/strutil v1.2.1 h1:UneZBkQA+DX2Rp35KcM69cSsNES9ly8mQWD71HKlOA0=
+modernc.org/strutil v1.2.1/go.mod h1:EHkiggD70koQxjVdSBM3JKM7k6L0FbGE5eymy9i3B9A=
+modernc.org/token v1.1.0 h1:Xl7Ap9dKaEs5kLoOQeQmPWevfnk/DM5qcLcYlA8ys6Y=
+modernc.org/token v1.1.0/go.mod h1:UGzOrNV1mAFSEB63lOFHIpNRUVMvYTc6yu1SMY/XTDM=
+sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd h1:EDPBXCAspyGV4jQlpZSudPeMmr1bNJefnuqLsRAsHZo=
+sigs.k8s.io/json v0.0.0-20221116044647-bc3834ca7abd/go.mod h1:B8JuhiUyNFVKdsE8h686QcCxMaH6HrOAZj4vswFpcB0=
+sigs.k8s.io/yaml v1.3.0 h1:a2VclLzOGrwOHDiV8EfBGhvjHvP46CtW5j6POvhYGGo=
+sigs.k8s.io/yaml v1.3.0/go.mod h1:GeOyir5tyXNByN85N/dRIT9es5UQNerPYEKK56eTBm8=
diff --git a/internal/application/dashboard/service.go b/internal/application/dashboard/service.go
new file mode 100644
index 0000000..9829beb
--- /dev/null
+++ b/internal/application/dashboard/service.go
@@ -0,0 +1,130 @@
+package dashboard
+
+import (
+ proxyapp "frpc-hub/internal/application/proxy"
+ serverapp "frpc-hub/internal/application/server"
+ proxydomain "frpc-hub/internal/domain/proxy"
+ serverdomain "frpc-hub/internal/domain/server"
+ "time"
+
+ "github.com/pocketbase/pocketbase/core"
+)
+
+type DashboardStats struct {
+ RunningCount int64
+ StoppedCount int64
+ ProxiesEnabledCount int64
+ ProxiesDisabledCount int64
+ ProxiesOnlineCount int64
+ MaxLatency int64
+ ProxyTypeCounts map[string]int64
+ UptimeSeconds int64
+}
+
+type TopologyServerItem struct {
+ ID string `json:"id" db:"id"`
+ ServerName string `json:"serverName" db:"serverName"`
+ ServerAddr string `json:"serverAddr" db:"serverAddr"`
+ BootStatus string `json:"bootStatus" db:"bootStatus"`
+}
+
+type TopologyProxyItem struct {
+ ID string `json:"id" db:"id"`
+ Name string `json:"name" db:"name"`
+ ProxyType string `json:"proxyType" db:"proxyType"`
+ LocalIP string `json:"localIP" db:"localIP"`
+ LocalPort string `json:"localPort" db:"localPort"`
+ RemotePort string `json:"remotePort" db:"remotePort"`
+ Status string `json:"status" db:"status"`
+ BootStatus string `json:"bootStatus" db:"bootStatus"`
+ ServerID string `json:"serverId" db:"serverId"`
+}
+
+type TopologyData struct {
+ Servers []TopologyServerItem `json:"servers"`
+ Proxies []TopologyProxyItem `json:"proxies"`
+}
+
+type Service struct {
+ app core.App
+ serverService *serverapp.Service
+ proxyService *proxyapp.Service
+ startTime time.Time
+}
+
+func NewService(app core.App, serverService *serverapp.Service, proxyService *proxyapp.Service) *Service {
+ return &Service{
+ app: app,
+ serverService: serverService,
+ proxyService: proxyService,
+ startTime: time.Now(),
+ }
+}
+
+func (s *Service) GetStats() (*DashboardStats, error) {
+ runningCount, err := s.serverService.GetServerCountByStatus(serverdomain.ServerStatusRunning)
+ if err != nil {
+ return nil, err
+ }
+
+ stoppedCount, err := s.serverService.GetServerCountByStatus(serverdomain.ServerStatusStopped)
+ if err != nil {
+ return nil, err
+ }
+
+ proxiesEnabledCount, err := s.proxyService.GetProxyCountByStatus(proxydomain.ProxyStatusEnabled)
+ if err != nil {
+ return nil, err
+ }
+
+ proxiesDisabledCount, err := s.proxyService.GetProxyCountByStatus(proxydomain.ProxyStatusDisabled)
+ if err != nil {
+ return nil, err
+ }
+
+ proxiesOnlineCount, err := s.proxyService.GetProxyCountByBootStatus(proxydomain.ProxyBootStatusOnline)
+ if err != nil {
+ return nil, err
+ }
+
+ maxLatency, err := s.serverService.GetMaxLatency()
+ if err != nil {
+ return nil, err
+ }
+
+ proxyTypeCounts, err := s.proxyService.GetProxyCountsByType()
+ if err != nil {
+ return nil, err
+ }
+
+ return &DashboardStats{
+ RunningCount: runningCount,
+ StoppedCount: stoppedCount,
+ ProxiesEnabledCount: proxiesEnabledCount,
+ ProxiesDisabledCount: proxiesDisabledCount,
+ ProxiesOnlineCount: proxiesOnlineCount,
+ MaxLatency: maxLatency,
+ ProxyTypeCounts: proxyTypeCounts,
+ UptimeSeconds: int64(time.Since(s.startTime).Seconds()),
+ }, nil
+}
+
+func (s *Service) GetTopology() (*TopologyData, error) {
+ var servers []TopologyServerItem
+ if err := s.app.DB().Select("id", "serverName", "serverAddr", "bootStatus").From("fh_servers").All(&servers); err != nil {
+ return nil, err
+ }
+ if servers == nil {
+ servers = []TopologyServerItem{}
+ }
+
+ var proxies []TopologyProxyItem
+ if err := s.app.DB().Select("id", "name", "proxyType", "localIP", "localPort", "remotePort", "status", "bootStatus", "serverId").From("fh_proxies").All(&proxies); err != nil {
+ return nil, err
+ }
+ if proxies == nil {
+ proxies = []TopologyProxyItem{}
+ }
+
+ return &TopologyData{Servers: servers, Proxies: proxies}, nil
+}
diff --git a/internal/application/frpc/service.go b/internal/application/frpc/service.go
new file mode 100644
index 0000000..65abb90
--- /dev/null
+++ b/internal/application/frpc/service.go
@@ -0,0 +1,485 @@
+package frpc
+
+import (
+ "bufio"
+ "context"
+ "encoding/json"
+ "fmt"
+ "io"
+ "net/http"
+ "os"
+ "os/signal"
+ "path/filepath"
+ "syscall"
+ "time"
+
+ proxydomain "frpc-hub/internal/domain/proxy"
+ serverdomain "frpc-hub/internal/domain/server"
+ "frpc-hub/pkg/utils"
+
+ "github.com/fatedier/frp/client"
+ v1 "github.com/fatedier/frp/pkg/config/v1"
+ "github.com/fatedier/frp/pkg/util/log"
+ "github.com/pocketbase/pocketbase/core"
+)
+
+type Service struct {
+ app core.App
+ processes map[string]*client.Service
+ statusMonitors map[string]context.CancelFunc
+ serverRepo serverdomain.Repository
+ proxyRepo proxydomain.Repository
+}
+
+func NewService(app core.App, serverRepo serverdomain.Repository, proxyRepo proxydomain.Repository) *Service {
+ return &Service{
+ app: app,
+ processes: make(map[string]*client.Service),
+ statusMonitors: make(map[string]context.CancelFunc),
+ serverRepo: serverRepo,
+ proxyRepo: proxyRepo,
+ }
+}
+
+func (fs *Service) genCommonCfgs(id *string) (*v1.ClientCommonConfig, error) {
+ cfg := &v1.ClientCommonConfig{}
+
+ record, err := fs.app.FindRecordById("fh_servers", *id)
+ if err != nil {
+ return nil, err
+ }
+ // basic config
+ cfg.ServerAddr = record.GetString("serverAddr")
+ cfg.ServerPort = record.GetInt("serverPort")
+
+ logDirPath, _ := filepath.Abs("pb_data/frpc/" + *id + "/")
+ if err := os.MkdirAll(logDirPath, 0755); err != nil {
+ return nil, err
+ }
+
+ // log config
+ logStr := record.GetString("log")
+ mainPath := fs.getFrpMainPath(id)
+ var logConfig v1.LogConfig
+ err = json.Unmarshal([]byte(logStr), &logConfig)
+ if err != nil {
+ return nil, err
+ }
+ logPath := filepath.Join(mainPath, "logs", "frpc.log")
+ logConfig.To = logPath
+ cfg.Log = logConfig
+
+ // auth config
+ authStr := record.GetString("auth")
+ var authConfig v1.AuthClientConfig
+ err = json.Unmarshal([]byte(authStr), &authConfig)
+ if err != nil {
+ return nil, err
+ }
+ if authConfig.Method != "none" && authConfig.Method != "" {
+ cfg.Auth = authConfig
+ }
+
+ // transport config
+ transportStr := record.GetString("transport")
+ var transportConfig v1.ClientTransportConfig
+ err = json.Unmarshal([]byte(transportStr), &transportConfig)
+ if err != nil {
+ return nil, err
+ }
+ cfg.Transport = transportConfig
+ if *cfg.Transport.TLS.Enable {
+ tlsCertFile := filepath.Join(mainPath, "certs", "cert.pem")
+ tlsKeyFile := filepath.Join(mainPath, "certs", "key.pem")
+ tlsTrustedCaFile := filepath.Join(mainPath, "certs", "ca.pem")
+
+ if err := os.MkdirAll(filepath.Dir(tlsCertFile), 0755); err != nil {
+ return nil, err
+ }
+ if err := os.WriteFile(tlsCertFile, []byte(cfg.Transport.TLS.CertFile), 0644); err != nil {
+ return nil, err
+ }
+ if err := os.WriteFile(tlsKeyFile, []byte(cfg.Transport.TLS.KeyFile), 0600); err != nil {
+ return nil, err
+ }
+ if err := os.WriteFile(tlsTrustedCaFile, []byte(cfg.Transport.TLS.TrustedCaFile), 0644); err != nil {
+ return nil, err
+ }
+ cfg.Transport.TLS.CertFile = tlsCertFile
+ cfg.Transport.TLS.KeyFile = tlsKeyFile
+ cfg.Transport.TLS.TrustedCaFile = tlsTrustedCaFile
+ }
+
+ // metadata config
+ metadataStr := record.GetString("metadatas")
+ var metadataConfig map[string]string
+ err = json.Unmarshal([]byte(metadataStr), &metadataConfig)
+ if err != nil {
+ return nil, err
+ }
+ cfg.Metadatas = metadataConfig
+ return cfg, nil
+}
+
+func (fs *Service) genProxyCfgs(serverId *string) ([]v1.ProxyConfigurer, error) {
+ proxies, err := fs.proxyRepo.FindByServerID(*serverId)
+ if err != nil {
+ fs.app.Logger().Error("genProxyCfgs", "err", err)
+ return nil, err
+ }
+
+ var proxyCfgs []v1.ProxyConfigurer
+ for _, proxyMap := range proxies {
+ jsonData, err := json.Marshal(proxyMap)
+ if err != nil {
+ return nil, err
+ }
+
+ // Convert to map to manipulate fields
+ var proxyData map[string]interface{}
+ if err := json.Unmarshal(jsonData, &proxyData); err != nil {
+ return nil, err
+ }
+
+ if proxyMap.ProxyType == "http" || proxyMap.ProxyType == "https" {
+ delete(proxyData, "remotePort")
+ }
+ proxyData["name"] = proxyMap.Name + "-" + proxyMap.Id
+
+ jsonData, err = json.Marshal(proxyData)
+ if err != nil {
+ return nil, err
+ }
+
+ switch proxyMap.ProxyType {
+ case "tcp":
+ var tcpProxy v1.TCPProxyConfig
+ if err := json.Unmarshal(jsonData, &tcpProxy); err != nil {
+ return nil, err
+ }
+ proxyCfgs = append(proxyCfgs, &tcpProxy)
+ case "udp":
+ var udpProxy v1.UDPProxyConfig
+ if err := json.Unmarshal(jsonData, &udpProxy); err != nil {
+ return nil, err
+ }
+ proxyCfgs = append(proxyCfgs, &udpProxy)
+ case "http":
+ var httpProxy v1.HTTPProxyConfig
+ if err := json.Unmarshal(jsonData, &httpProxy); err != nil {
+ return nil, err
+ }
+ proxyCfgs = append(proxyCfgs, &httpProxy)
+ case "https":
+ var httpsProxy v1.HTTPSProxyConfig
+ if err := json.Unmarshal(jsonData, &httpsProxy); err != nil {
+ return nil, err
+ }
+ proxyCfgs = append(proxyCfgs, &httpsProxy)
+ }
+ }
+
+ return proxyCfgs, nil
+}
+
+func handleTermSignal(svr *client.Service) {
+ ch := make(chan os.Signal, 1)
+ signal.Notify(ch, syscall.SIGINT, syscall.SIGTERM)
+ <-ch
+ svr.GracefulClose(500 * time.Millisecond)
+}
+
+func (fs *Service) LaunchFrpc(serverId *string) error {
+ fs.app.Logger().Info("Launch frpc", "id", *serverId)
+ cfg, err := fs.genCommonCfgs(serverId)
+ if err != nil {
+ return err
+ }
+
+ proxyCfgs, err := fs.genProxyCfgs(serverId)
+ if err != nil {
+ return err
+ }
+
+ fs.app.Logger().Debug("Config", "cfg", cfg, "proxyCfgs", proxyCfgs)
+
+ cfg.Complete()
+ log.InitLogger(cfg.Log.To, cfg.Log.Level, int(cfg.Log.MaxDays), cfg.Log.DisablePrintColor)
+
+ svr, err := client.NewService(client.ServiceOptions{
+ Common: cfg,
+ ProxyCfgs: proxyCfgs,
+ })
+ if err != nil {
+ fs.app.Logger().Error("NewService", "err", err)
+ return err
+ }
+ shouldGracefulClose := cfg.Transport.Protocol == "kcp" || cfg.Transport.Protocol == "quic"
+ if shouldGracefulClose {
+ go handleTermSignal(svr)
+ }
+ fs.processes[*serverId] = svr
+
+ fs.serverRepo.UpdateBootStatus(*serverId, serverdomain.ServerStatusRunning)
+
+ ctx, cancel := context.WithCancel(context.Background())
+ fs.statusMonitors[*serverId] = cancel
+
+ done := make(chan error, 1)
+
+ go func() {
+ fs.app.Logger().Info("Frpc service starting execution", "id", *serverId)
+ err := svr.Run(ctx)
+ if err != nil {
+ fs.app.Logger().Error("Frpc service exited with error", "id", *serverId, "error", err)
+ } else {
+ fs.app.Logger().Info("Frpc service exited normally", "id", *serverId)
+ }
+ done <- err
+ }()
+
+ go fs.monitorServiceStatus(serverId, svr, ctx, done)
+
+ return nil
+}
+
+// monitorServiceStatus monitors service status and updates the database.
+func (fs *Service) monitorServiceStatus(id *string, svr *client.Service, ctx context.Context, done <-chan error) {
+ time.Sleep(2 * time.Second)
+
+ select {
+ case err := <-done:
+ fs.app.Logger().Error("Service exited during startup", "id", *id, "error", err)
+ fs.destroying(id)
+ return
+ case <-ctx.Done():
+ fs.app.Logger().Info("Service context cancelled during startup", "id", *id)
+ fs.destroying(id)
+ return
+ default:
+ fs.serverRepo.UpdateBootStatus(*id, serverdomain.ServerStatusRunning)
+ fs.app.Logger().Info("Service is running", "id", *id)
+ }
+
+ go fs.monitorProxyStatus(id, svr, ctx)
+
+ ticker := time.NewTicker(5 * time.Second)
+ defer ticker.Stop()
+
+ for {
+ select {
+ case err := <-done:
+ if err != nil {
+ fs.app.Logger().Error("Service exited with error", "id", *id, "error", err)
+ } else {
+ fs.app.Logger().Info("Service exited normally", "id", *id)
+ }
+ fs.destroying(id)
+ return
+ case <-ctx.Done():
+ fs.app.Logger().Info("Service stopped by user", "id", *id)
+ fs.destroying(id)
+ return
+ case <-ticker.C:
+ fs.app.Logger().Debug("Service status check", "id", *id, "status", "running")
+ }
+ }
+}
+
+func (fs *Service) destroying(id *string) {
+ fs.serverRepo.UpdateBootStatus(*id, serverdomain.ServerStatusStopped)
+ fs.proxyRepo.UpdateBootStatusByServerID(*id, proxydomain.ProxyBootStatusOffline)
+ delete(fs.processes, *id)
+ delete(fs.statusMonitors, *id)
+}
+
+// monitorProxyStatus monitors proxy status from frp and updates the database.
+func (fs *Service) monitorProxyStatus(serverId *string, svr *client.Service, ctx context.Context) {
+ fs.app.Logger().Info("Starting proxy status monitoring", "serverId", *serverId)
+
+ statusExporter := svr.StatusExporter()
+
+ ticker := time.NewTicker(5 * time.Second)
+ defer ticker.Stop()
+
+ for {
+ select {
+ case <-ctx.Done():
+ fs.app.Logger().Info("Proxy status monitoring stopped", "serverId", *serverId)
+ return
+ case <-ticker.C:
+ proxies, err := fs.proxyRepo.FindByServerID(*serverId)
+ if err != nil {
+ fs.app.Logger().Error("Failed to get proxies", "serverId", *serverId, "error", err)
+ continue
+ }
+
+ for _, proxy := range proxies {
+ proxyName := proxy.Name + "-" + proxy.Id
+ status, exists := statusExporter.GetProxyStatus(proxyName)
+
+ if exists {
+ var bootStatus proxydomain.ProxyBootStatus
+ switch status.Phase {
+ case "running":
+ bootStatus = proxydomain.ProxyBootStatusOnline
+ case "start error", "check failed", "closed":
+ bootStatus = proxydomain.ProxyBootStatusOffline
+ default:
+ bootStatus = proxydomain.ProxyBootStatusOffline
+ }
+ fs.proxyRepo.UpdateBootStatus(proxy.Id, bootStatus)
+ } else {
+ fs.app.Logger().Debug("Proxy not found in frp status", "serverId", *serverId, "proxyId", proxy.Id, "proxyName", proxyName)
+ }
+ }
+ }
+ }
+}
+
+// TerminateFrpc stops the specified frpc service.
+func (fs *Service) TerminateFrpc(id *string) error {
+ fs.app.Logger().Info("Stop frpc", "id", *id)
+
+ cancel, exists := fs.statusMonitors[*id]
+ if !exists {
+ return nil
+ }
+
+ cancel()
+
+ fs.app.Logger().Info("Frpc stop signal sent", "id", *id)
+ return nil
+}
+
+func (fs *Service) getFrpMainPath(id *string) string {
+ logDirPath, _ := filepath.Abs("pb_data/frpc/" + *id + "/")
+ return logDirPath
+}
+
+// StreamLog streams the frpc log file via SSE.
+// It sends the last 50 lines as initial content, then tails new lines every 500ms.
+func (fs *Service) StreamLog(serverId string, ctx context.Context, w http.ResponseWriter, flusher http.Flusher) {
+ mainPath := fs.getFrpMainPath(&serverId)
+ logPath := filepath.Join(mainPath, "logs", "frpc.log")
+
+ file, err := os.Open(logPath)
+ if err != nil {
+ fs.app.Logger().Warn("Log file not found", "serverId", serverId, "path", logPath, "error", err)
+ fmt.Fprintf(w, "data: [No log file found]\n\n")
+ flusher.Flush()
+ return
+ }
+ defer file.Close()
+
+ initialLines := utils.ReadLastNLines(file, 50)
+ fs.app.Logger().Info("Streaming log file", "serverId", serverId, "initialLines", len(initialLines))
+ for _, line := range initialLines {
+ fmt.Fprintf(w, "data: %s\n\n", line)
+ }
+ flusher.Flush()
+
+ offset, err := file.Seek(0, io.SeekEnd)
+ if err != nil {
+ return
+ }
+
+ ticker := time.NewTicker(500 * time.Millisecond)
+ defer ticker.Stop()
+
+ for {
+ select {
+ case <-ctx.Done():
+ return
+ case <-ticker.C:
+ fi, err := os.Stat(logPath)
+ if err != nil {
+ continue
+ }
+
+ if fi.Size() < offset {
+ file.Close()
+ file, err = os.Open(logPath)
+ if err != nil {
+ continue
+ }
+ offset = 0
+ }
+
+ file.Seek(offset, io.SeekStart)
+ scanner := bufio.NewScanner(file)
+ hasData := false
+ for scanner.Scan() {
+ line := scanner.Text()
+ if line != "" {
+ fmt.Fprintf(w, "data: %s\n\n", line)
+ hasData = true
+ }
+ }
+ newOffset, _ := file.Seek(0, io.SeekCurrent)
+ offset = newOffset
+
+ if hasData {
+ flusher.Flush()
+ }
+ }
+ }
+}
+
+func (fs *Service) ReloadFrpc(serverId *string) error {
+ fs.app.Logger().Info("Reload frpc", "id", *serverId)
+
+ proxyCfgs, err := fs.genProxyCfgs(serverId)
+ if err != nil {
+ return err
+ }
+
+ svr := fs.processes[*serverId]
+ // TODO 2026-02-08 reload visitorCfgs
+ svr.UpdateAllConfigurer(proxyCfgs, nil)
+
+ return nil
+}
+
+// IsServerRunning checks if a server is currently running.
+func (fs *Service) IsServerRunning(serverId string) bool {
+ _, exists := fs.processes[serverId]
+ return exists
+}
+
+// AutoStartServers automatically starts all servers with autoConnection=true.
+func (fs *Service) AutoStartServers() {
+ fs.app.Logger().Info("Auto-starting servers with autoConnection enabled")
+ fs.app.Logger().Info("Waiting for 10 seconds before auto-starting servers")
+ time.Sleep(10 * time.Second)
+
+ records, err := fs.serverRepo.FindAllWithAutoConnect()
+ if err != nil {
+ fs.app.Logger().Error("Failed to find auto-connection servers", "error", err)
+ return
+ }
+
+ count := 0
+ for _, record := range records {
+ serverId := record.ID
+ serverName := record.ServerName
+
+ fs.app.Logger().Info("Auto-starting server", "id", serverId, "name", serverName)
+
+ go func(id string) {
+ time.Sleep(time.Duration(count) * 500 * time.Millisecond)
+
+ if err := fs.LaunchFrpc(&id); err != nil {
+ fs.app.Logger().Error("Failed to auto-start server", "id", id, "error", err)
+ } else {
+ fs.app.Logger().Info("Successfully auto-started server", "id", id)
+ }
+ }(serverId)
+
+ count++
+ fs.app.Logger().Info("Waiting for 1s before auto-starting next server")
+ time.Sleep(1 * time.Second)
+ }
+
+ fs.app.Logger().Info("Auto-start initiated for servers", "count", count)
+}
diff --git a/internal/application/github/service.go b/internal/application/github/service.go
new file mode 100644
index 0000000..93e8037
--- /dev/null
+++ b/internal/application/github/service.go
@@ -0,0 +1,103 @@
+package github
+
+import (
+ "encoding/json"
+ "fmt"
+ "net/http"
+ "runtime"
+ "strings"
+ "time"
+
+ "github.com/pocketbase/pocketbase/core"
+)
+
+type Service struct {
+ app core.App
+}
+
+func NewService(app core.App) *Service {
+ return &Service{app: app}
+}
+
+// GithubRelease is the simplified release info returned to the frontend.
+type GithubRelease struct {
+ TagName string `json:"tag_name"`
+ Name string `json:"name"`
+ PublishedAt string `json:"published_at"`
+ HTMLURL string `json:"html_url"`
+ DownloadUrl string `json:"download_url"` // Download link automatically matched based on current system architecture
+}
+
+// githubInternalRelease used to parse raw GitHub API data
+type githubInternalRelease struct {
+ TagName string `json:"tag_name"`
+ Name string `json:"name"`
+ PublishedAt string `json:"published_at"`
+ HTMLURL string `json:"html_url"`
+ Assets []struct {
+ Name string `json:"name"`
+ BrowserDownloadUrl string `json:"browser_download_url"`
+ } `json:"assets"`
+}
+
+// GetFrpReleases fetches fatedier/frp releases and auto-matches a download link for the current OS/arch.
+func (s *Service) GetFrpReleases() ([]GithubRelease, error) {
+ url := "https://api.github.com/repos/fatedier/frp/releases"
+
+ client := &http.Client{
+ Timeout: 15 * time.Second,
+ }
+
+ req, err := http.NewRequest("GET", url, nil)
+ if err != nil {
+ return nil, err
+ }
+
+ req.Header.Set("User-Agent", "frpc-hub-server")
+
+ resp, err := client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ defer resp.Body.Close()
+
+ if resp.StatusCode != http.StatusOK {
+ return nil, fmt.Errorf("github api returned status: %d", resp.StatusCode)
+ }
+
+ var internalReleases []githubInternalRelease
+ if err := json.NewDecoder(resp.Body).Decode(&internalReleases); err != nil {
+ return nil, err
+ }
+
+ goos := runtime.GOOS
+ goarch := runtime.GOARCH
+
+ var releases []GithubRelease
+ for _, raw := range internalReleases {
+ release := GithubRelease{
+ TagName: raw.TagName,
+ Name: raw.Name,
+ PublishedAt: raw.PublishedAt,
+ HTMLURL: raw.HTMLURL,
+ }
+
+ for _, asset := range raw.Assets {
+ assetName := strings.ToLower(asset.Name)
+
+ if strings.Contains(assetName, goos) && strings.Contains(assetName, goarch) {
+ // Special handling for some overlapping cases, e.g., 386 and amd64
+ if goarch == "386" && strings.Contains(assetName, "amd64") {
+ continue
+ }
+
+ release.DownloadUrl = asset.BrowserDownloadUrl
+ break
+ }
+ }
+
+ releases = append(releases, release)
+ }
+
+ return releases, nil
+}
diff --git a/internal/application/importer/service.go b/internal/application/importer/service.go
new file mode 100644
index 0000000..811ad54
--- /dev/null
+++ b/internal/application/importer/service.go
@@ -0,0 +1,499 @@
+package importer
+
+import (
+ "encoding/json"
+ "fmt"
+
+ "github.com/pelletier/go-toml/v2"
+ "github.com/pocketbase/dbx"
+ "github.com/pocketbase/pocketbase/core"
+)
+
+// ==================== TOML Parse Types ====================
+
+type tomlFrpClientConfig struct {
+ ServerAddr string `toml:"serverAddr"`
+ ServerPort int `toml:"serverPort"`
+ Auth tomlAuthConfig `toml:"auth"`
+ Log tomlLogConfig `toml:"log"`
+ Transport tomlTransportConfig `toml:"transport"`
+ Metadatas map[string]string `toml:"metadatas"`
+ Proxies []tomlProxyConfig `toml:"proxies"`
+}
+
+type tomlAuthConfig struct {
+ Method string `toml:"method"`
+ Token string `toml:"token"`
+}
+
+type tomlLogConfig struct {
+ Level string `toml:"level"`
+ MaxDays int `toml:"maxDays"`
+}
+
+type tomlTransportConfig struct {
+ Protocol string `toml:"protocol"`
+ ProxyURL string `toml:"proxyURL"`
+ TLS tomlTLSConfig `toml:"tls"`
+}
+
+type tomlTLSConfig struct {
+ Enable bool `toml:"enable"`
+ DisableCustomTLSFirstByte bool `toml:"disableCustomTLSFirstByte"`
+ ServerName string `toml:"serverName"`
+ CertFile string `toml:"certFile"`
+ KeyFile string `toml:"keyFile"`
+ TrustedCaFile string `toml:"trustedCaFile"`
+}
+
+type tomlProxyConfig struct {
+ Name string `toml:"name"`
+ Type string `toml:"type"`
+ LocalIP string `toml:"localIP"`
+ LocalPort int `toml:"localPort"`
+ RemotePort int `toml:"remotePort"`
+ Subdomain string `toml:"subdomain"`
+ CustomDomains []string `toml:"customDomains"`
+ Transport map[string]interface{} `toml:"transport"`
+}
+
+// ==================== API Data Types ====================
+
+type ParseTomlRequest struct {
+ TomlContent string `json:"tomlContent"`
+}
+
+type ImportServerInfo struct {
+ Name string `json:"name"`
+ ServerAddr string `json:"serverAddr"`
+ ServerPort int `json:"serverPort"`
+ Auth map[string]interface{} `json:"auth"`
+ Log map[string]interface{} `json:"log"`
+ Transport map[string]interface{} `json:"transport"`
+ Metadatas map[string]string `json:"metadatas"`
+ IsDuplicate bool `json:"isDuplicate"`
+ ExistingId string `json:"existingId"`
+}
+
+type ImportProxyInfo struct {
+ Name string `json:"name"`
+ Type string `json:"type"`
+ LocalIP string `json:"localIP"`
+ LocalPort int `json:"localPort"`
+ RemotePort int `json:"remotePort"`
+ Subdomain string `json:"subdomain"`
+ CustomDomains []string `json:"customDomains"`
+ Transport map[string]interface{} `json:"transport"`
+ IsDuplicate bool `json:"isDuplicate"`
+ ExistingId string `json:"existingId"`
+}
+
+type ImportPreviewResponse struct {
+ Server ImportServerInfo `json:"server"`
+ Proxies []ImportProxyInfo `json:"proxies"`
+}
+
+type ProxyImportOption struct {
+ Name string `json:"name"`
+ Import bool `json:"import"`
+ Overwrite bool `json:"overwrite"`
+}
+
+type ExecuteImportRequest struct {
+ TomlContent string `json:"tomlContent"`
+ ServerName string `json:"serverName"`
+ ImportServer bool `json:"importServer"`
+ OverwriteServer bool `json:"overwriteServer"`
+ Proxies []ProxyImportOption `json:"proxies"`
+}
+
+type ImportResult struct {
+ ServerImported bool `json:"serverImported"`
+ ProxiesImported int `json:"proxiesImported"`
+ ProxiesSkipped int `json:"proxiesSkipped"`
+}
+
+// ==================== Service ====================
+
+type Service struct {
+ app core.App
+}
+
+func NewService(app core.App) *Service {
+ return &Service{app: app}
+}
+
+func (s *Service) ParseToml(req *ParseTomlRequest) (*ImportPreviewResponse, error) {
+ var cfg tomlFrpClientConfig
+ if err := toml.Unmarshal([]byte(req.TomlContent), &cfg); err != nil {
+ return nil, fmt.Errorf("TOML 解析失败: %w", err)
+ }
+
+ serverPort := cfg.ServerPort
+ if serverPort == 0 {
+ serverPort = 7000
+ }
+
+ // Check if server already exists (by addr + port)
+ var existingServerId string
+ var serverDuplicate bool
+ var existingServerRow struct {
+ Id string `db:"id"`
+ }
+ err := s.app.DB().
+ Select("id").
+ From("fh_servers").
+ Where(dbx.HashExp{
+ "serverAddr": cfg.ServerAddr,
+ "serverPort": serverPort,
+ }).
+ One(&existingServerRow)
+ if err == nil {
+ serverDuplicate = true
+ existingServerId = existingServerRow.Id
+ }
+
+ // Build auth map
+ authMap := map[string]interface{}{
+ "method": cfg.Auth.Method,
+ "token": cfg.Auth.Token,
+ }
+
+ // Build log map with defaults
+ logLevel := cfg.Log.Level
+ if logLevel == "" {
+ logLevel = "info"
+ }
+ logMaxDays := cfg.Log.MaxDays
+ if logMaxDays == 0 {
+ logMaxDays = 3
+ }
+ logMap := map[string]interface{}{
+ "level": logLevel,
+ "maxDays": logMaxDays,
+ }
+
+ // Build transport map with defaults
+ protocol := cfg.Transport.Protocol
+ if protocol == "" {
+ protocol = "tcp"
+ }
+ transportMap := map[string]interface{}{
+ "protocol": protocol,
+ "proxyURL": cfg.Transport.ProxyURL,
+ "tls": map[string]interface{}{
+ "enable": cfg.Transport.TLS.Enable,
+ "disableCustomTLSFirstByte": cfg.Transport.TLS.DisableCustomTLSFirstByte,
+ "serverName": cfg.Transport.TLS.ServerName,
+ "certFile": cfg.Transport.TLS.CertFile,
+ "keyFile": cfg.Transport.TLS.KeyFile,
+ "trustedCaFile": cfg.Transport.TLS.TrustedCaFile,
+ },
+ }
+
+ metadatas := cfg.Metadatas
+ if metadatas == nil {
+ metadatas = map[string]string{}
+ }
+
+ serverInfo := ImportServerInfo{
+ Name: fmt.Sprintf("%s:%d", cfg.ServerAddr, serverPort),
+ ServerAddr: cfg.ServerAddr,
+ ServerPort: serverPort,
+ Auth: authMap,
+ Log: logMap,
+ Transport: transportMap,
+ Metadatas: metadatas,
+ IsDuplicate: serverDuplicate,
+ ExistingId: existingServerId,
+ }
+
+ // Build proxy infos with duplicate detection
+ proxies := make([]ImportProxyInfo, 0, len(cfg.Proxies))
+ for _, p := range cfg.Proxies {
+ proxyType := p.Type
+ if proxyType == "" {
+ proxyType = "tcp"
+ }
+ customDomains := p.CustomDomains
+ if customDomains == nil {
+ customDomains = []string{}
+ }
+ proxyTransport := p.Transport
+ if proxyTransport == nil {
+ proxyTransport = map[string]interface{}{}
+ }
+
+ proxyInfo := ImportProxyInfo{
+ Name: p.Name,
+ Type: proxyType,
+ LocalIP: p.LocalIP,
+ LocalPort: p.LocalPort,
+ RemotePort: p.RemotePort,
+ Subdomain: p.Subdomain,
+ CustomDomains: customDomains,
+ Transport: proxyTransport,
+ }
+
+ // Check proxy duplicate: only meaningful if server already exists
+ if serverDuplicate && existingServerId != "" {
+ var existingProxyRow struct {
+ Id string `db:"id"`
+ }
+ perr := s.app.DB().
+ Select("id").
+ From("fh_proxies").
+ Where(dbx.HashExp{
+ "name": p.Name,
+ "serverId": existingServerId,
+ }).
+ One(&existingProxyRow)
+ if perr == nil {
+ proxyInfo.IsDuplicate = true
+ proxyInfo.ExistingId = existingProxyRow.Id
+ }
+ }
+
+ proxies = append(proxies, proxyInfo)
+ }
+
+ return &ImportPreviewResponse{
+ Server: serverInfo,
+ Proxies: proxies,
+ }, nil
+}
+
+func (s *Service) ExecuteImport(req *ExecuteImportRequest) (*ImportResult, error) {
+ var cfg tomlFrpClientConfig
+ if err := toml.Unmarshal([]byte(req.TomlContent), &cfg); err != nil {
+ return nil, fmt.Errorf("TOML 解析失败: %w", err)
+ }
+
+ serverPort := cfg.ServerPort
+ if serverPort == 0 {
+ serverPort = 7000
+ }
+
+ result := &ImportResult{}
+
+ err := s.app.RunInTransaction(func(txApp core.App) error {
+ serverId, err := s.handleServerImport(txApp, &cfg, serverPort, req, result)
+ if err != nil {
+ return err
+ }
+ if serverId == "" {
+ return nil
+ }
+ return s.handleProxyImport(txApp, &cfg, serverId, req.Proxies, result)
+ })
+
+ if err != nil {
+ return nil, err
+ }
+ return result, nil
+}
+
+// handleServerImport creates or updates a server record and returns its ID.
+// Returns empty string if server import was skipped.
+func (s *Service) handleServerImport(
+ txApp core.App,
+ cfg *tomlFrpClientConfig,
+ serverPort int,
+ req *ExecuteImportRequest,
+ result *ImportResult,
+) (string, error) {
+ var existingServerRow struct {
+ Id string `db:"id"`
+ }
+ serverExists := false
+ existErr := txApp.DB().
+ Select("id").
+ From("fh_servers").
+ Where(dbx.HashExp{
+ "serverAddr": cfg.ServerAddr,
+ "serverPort": serverPort,
+ }).
+ One(&existingServerRow)
+ if existErr == nil {
+ serverExists = true
+ }
+
+ // Server exists but we're not importing: use existing ID for proxies
+ if serverExists && !req.ImportServer {
+ return existingServerRow.Id, nil
+ }
+
+ // Not importing server and it doesn't exist: skip
+ if !req.ImportServer {
+ return "", nil
+ }
+
+ serverName := req.ServerName
+ if serverName == "" {
+ serverName = fmt.Sprintf("%s:%d", cfg.ServerAddr, serverPort)
+ }
+
+ logLevel := cfg.Log.Level
+ if logLevel == "" {
+ logLevel = "info"
+ }
+ logMaxDays := cfg.Log.MaxDays
+ if logMaxDays == 0 {
+ logMaxDays = 3
+ }
+ protocol := cfg.Transport.Protocol
+ if protocol == "" {
+ protocol = "tcp"
+ }
+ metadatas := cfg.Metadatas
+ if metadatas == nil {
+ metadatas = map[string]string{}
+ }
+
+ authJSON, _ := json.Marshal(map[string]interface{}{
+ "method": cfg.Auth.Method,
+ "token": cfg.Auth.Token,
+ })
+ logJSON, _ := json.Marshal(map[string]interface{}{
+ "level": logLevel,
+ "maxDays": logMaxDays,
+ })
+ transportJSON, _ := json.Marshal(map[string]interface{}{
+ "protocol": protocol,
+ "proxyURL": cfg.Transport.ProxyURL,
+ "tls": map[string]interface{}{
+ "enable": cfg.Transport.TLS.Enable,
+ "disableCustomTLSFirstByte": cfg.Transport.TLS.DisableCustomTLSFirstByte,
+ "serverName": cfg.Transport.TLS.ServerName,
+ "certFile": cfg.Transport.TLS.CertFile,
+ "keyFile": cfg.Transport.TLS.KeyFile,
+ "trustedCaFile": cfg.Transport.TLS.TrustedCaFile,
+ },
+ })
+ metadatasJSON, _ := json.Marshal(metadatas)
+
+ serversCollection, err := txApp.FindCollectionByNameOrId("fh_servers")
+ if err != nil {
+ return "", fmt.Errorf("找不到服务器集合: %w", err)
+ }
+
+ var serverRecord *core.Record
+ if serverExists && req.OverwriteServer {
+ serverRecord, err = txApp.FindRecordById(serversCollection, existingServerRow.Id)
+ if err != nil {
+ return "", fmt.Errorf("查找已有服务器失败: %w", err)
+ }
+ } else if serverExists && !req.OverwriteServer {
+ result.ServerImported = false
+ return existingServerRow.Id, nil
+ } else {
+ serverRecord = core.NewRecord(serversCollection)
+ }
+
+ serverRecord.Set("serverName", serverName)
+ serverRecord.Set("serverAddr", cfg.ServerAddr)
+ serverRecord.Set("serverPort", serverPort)
+ serverRecord.Set("serverVersion", "built-in")
+ serverRecord.Set("auth", string(authJSON))
+ serverRecord.Set("log", string(logJSON))
+ serverRecord.Set("transport", string(transportJSON))
+ serverRecord.Set("metadatas", string(metadatasJSON))
+ serverRecord.Set("bootStatus", "stopped")
+ serverRecord.Set("autoConnection", false)
+ serverRecord.Set("description", "")
+
+ if err := txApp.Save(serverRecord); err != nil {
+ return "", fmt.Errorf("保存服务器失败: %w", err)
+ }
+
+ result.ServerImported = true
+ return serverRecord.Id, nil
+}
+
+// handleProxyImport creates or updates proxy records under the given server.
+func (s *Service) handleProxyImport(
+ txApp core.App,
+ cfg *tomlFrpClientConfig,
+ serverId string,
+ proxyOpts []ProxyImportOption,
+ result *ImportResult,
+) error {
+ proxyOptMap := make(map[string]ProxyImportOption, len(proxyOpts))
+ for _, opt := range proxyOpts {
+ proxyOptMap[opt.Name] = opt
+ }
+
+ proxiesCollection, err := txApp.FindCollectionByNameOrId("fh_proxies")
+ if err != nil {
+ return fmt.Errorf("找不到代理集合: %w", err)
+ }
+
+ for _, p := range cfg.Proxies {
+ opt, ok := proxyOptMap[p.Name]
+ if !ok || !opt.Import {
+ result.ProxiesSkipped++
+ continue
+ }
+
+ var existingProxyRow struct {
+ Id string `db:"id"`
+ }
+ proxyExistsErr := txApp.DB().
+ Select("id").
+ From("fh_proxies").
+ Where(dbx.HashExp{
+ "name": p.Name,
+ "serverId": serverId,
+ }).
+ One(&existingProxyRow)
+
+ var proxyRecord *core.Record
+ if proxyExistsErr == nil && opt.Overwrite {
+ proxyRecord, err = txApp.FindRecordById(proxiesCollection, existingProxyRow.Id)
+ if err != nil {
+ return fmt.Errorf("查找已有代理 %s 失败: %w", p.Name, err)
+ }
+ } else if proxyExistsErr == nil && !opt.Overwrite {
+ result.ProxiesSkipped++
+ continue
+ } else {
+ proxyRecord = core.NewRecord(proxiesCollection)
+ }
+
+ proxyType := p.Type
+ if proxyType == "" {
+ proxyType = "tcp"
+ }
+ customDomains := p.CustomDomains
+ if customDomains == nil {
+ customDomains = []string{}
+ }
+ customDomainsJSON, _ := json.Marshal(customDomains)
+
+ proxyTransport := p.Transport
+ if proxyTransport == nil {
+ proxyTransport = map[string]interface{}{}
+ }
+ proxyTransportJSON, _ := json.Marshal(proxyTransport)
+
+ proxyRecord.Set("name", p.Name)
+ proxyRecord.Set("proxyType", proxyType)
+ proxyRecord.Set("serverId", serverId)
+ proxyRecord.Set("localIP", p.LocalIP)
+ proxyRecord.Set("localPort", p.LocalPort)
+ proxyRecord.Set("remotePort", p.RemotePort)
+ proxyRecord.Set("subdomain", p.Subdomain)
+ proxyRecord.Set("customDomains", string(customDomainsJSON))
+ proxyRecord.Set("transport", string(proxyTransportJSON))
+ proxyRecord.Set("status", "enabled")
+ proxyRecord.Set("bootStatus", "offline")
+ proxyRecord.Set("description", "")
+
+ if err := txApp.Save(proxyRecord); err != nil {
+ return fmt.Errorf("保存代理 %s 失败: %w", p.Name, err)
+ }
+ result.ProxiesImported++
+ }
+
+ return nil
+}
diff --git a/internal/application/monitoring/monitor.go b/internal/application/monitoring/monitor.go
new file mode 100644
index 0000000..c5b486c
--- /dev/null
+++ b/internal/application/monitoring/monitor.go
@@ -0,0 +1,202 @@
+package monitoring
+
+import (
+ "encoding/json"
+ "fmt"
+ "frpc-hub/pkg/utils"
+ "time"
+
+ "github.com/pocketbase/dbx"
+ "github.com/pocketbase/pocketbase/core"
+)
+
+// MonitorService is the background network monitoring service.
+type MonitorService struct {
+ app core.App
+ networkService *NetworkService
+ stopChan chan bool
+ latencyTicker *time.Ticker
+ geoTicker *time.Ticker
+}
+
+// NewMonitorService creates a new network monitoring service.
+func NewMonitorService(app core.App, networkService *NetworkService) *MonitorService {
+ return &MonitorService{
+ app: app,
+ networkService: networkService,
+ stopChan: make(chan bool),
+ }
+}
+
+// Start begins background monitoring.
+// latencyInterval: how often to check latency (e.g., 30s).
+// geoInterval: how often to check geolocation (e.g., 24h).
+func (s *MonitorService) Start(latencyInterval, geoInterval time.Duration) {
+ s.app.Logger().Info("Starting network monitor service",
+ "latencyInterval", latencyInterval,
+ "geoInterval", geoInterval)
+
+ // Execute immediately once
+ go s.updateAllServersLatency()
+ go s.updateAllServersGeoLocation()
+
+ s.latencyTicker = time.NewTicker(latencyInterval)
+ go func() {
+ for {
+ select {
+ case <-s.latencyTicker.C:
+ s.updateAllServersLatency()
+ case <-s.stopChan:
+ return
+ }
+ }
+ }()
+
+ s.geoTicker = time.NewTicker(geoInterval)
+ go func() {
+ for {
+ select {
+ case <-s.geoTicker.C:
+ s.updateAllServersGeoLocation()
+ case <-s.stopChan:
+ return
+ }
+ }
+ }()
+
+ s.app.Logger().Info("Network monitor service started successfully")
+}
+
+// Stop halts the background monitoring task.
+func (s *MonitorService) Stop() {
+ if s.latencyTicker != nil {
+ s.latencyTicker.Stop()
+ }
+ if s.geoTicker != nil {
+ s.geoTicker.Stop()
+ }
+ close(s.stopChan)
+}
+
+// updateAllServersLatency updates latency for all servers.
+func (s *MonitorService) updateAllServersLatency() {
+ s.app.Logger().Debug("Updating latency for all servers")
+
+ records, err := s.app.FindRecordsByFilter(
+ "fh_servers",
+ "",
+ "-created",
+ 500,
+ 0,
+ )
+ if err != nil {
+ s.app.Logger().Error("Failed to fetch servers for latency monitoring", "error", err)
+ return
+ }
+
+ s.app.Logger().Debug("Found servers to check latency", "count", len(records))
+
+ for _, record := range records {
+ go s.updateServerLatency(record.Id, record.GetString("serverAddr"), record.GetInt("serverPort"))
+ }
+}
+
+// updateAllServersGeoLocation updates geolocation for servers without geo data.
+func (s *MonitorService) updateAllServersGeoLocation() {
+ s.app.Logger().Info("Updating geolocation for servers without geo data")
+
+ records, err := s.app.FindRecordsByFilter(
+ "fh_servers",
+ "geoLocation = '' || geoLocation = null",
+ "-created",
+ 500,
+ 0,
+ )
+ if err != nil {
+ s.app.Logger().Error("Failed to fetch servers for geo monitoring", "error", err)
+ return
+ }
+
+ if len(records) == 0 {
+ s.app.Logger().Debug("All servers already have geolocation data")
+ return
+ }
+
+ s.app.Logger().Info("Found servers needing geolocation", "count", len(records))
+
+ for _, record := range records {
+ go s.updateServerGeoLocation(record.Id, record.GetString("serverAddr"))
+ }
+}
+
+// updateServerLatency updates latency for a single server.
+func (s *MonitorService) updateServerLatency(serverID string, serverAddr string, serverPort int) {
+ addr := fmt.Sprintf("%s:%d", serverAddr, serverPort)
+ pingResult := utils.PingHost(addr, 5*time.Second)
+
+ networkStatus := map[string]interface{}{
+ "latency": pingResult.Latency,
+ "reachable": pingResult.Reachable,
+ "lastCheckTime": time.Now().Format(time.RFC3339),
+ "error": pingResult.Error,
+ }
+
+ networkStatusJSON, _ := json.Marshal(networkStatus)
+
+ _, err := s.app.DB().
+ Update("fh_servers",
+ dbx.Params{"networkStatus": string(networkStatusJSON)},
+ dbx.HashExp{"id": serverID},
+ ).Execute()
+
+ if err != nil {
+ s.app.Logger().Error("Failed to update server latency", "serverId", serverID, "error", err)
+ return
+ }
+
+ s.app.Logger().Debug("Updated latency",
+ "serverId", serverID,
+ "addr", serverAddr,
+ "latency", pingResult.Latency,
+ "reachable", pingResult.Reachable,
+ )
+}
+
+// updateServerGeoLocation updates geolocation for a single server.
+func (s *MonitorService) updateServerGeoLocation(serverID string, serverAddr string) {
+ location, err := s.networkService.getGeoLocationWithCache(serverAddr)
+ if err != nil {
+ s.app.Logger().Warn("Failed to get geo location", "serverId", serverID, "addr", serverAddr, "error", err)
+ return
+ }
+
+ geoLocation := map[string]interface{}{
+ "country": location.Country,
+ "countryCode": location.CountryCode,
+ "region": location.Region,
+ "city": location.City,
+ "isp": location.ISP,
+ "lat": location.Latitude,
+ "lon": location.Longitude,
+ }
+
+ geoLocationJSON, _ := json.Marshal(geoLocation)
+
+ _, err = s.app.DB().
+ Update("fh_servers",
+ dbx.Params{"geoLocation": string(geoLocationJSON)},
+ dbx.HashExp{"id": serverID},
+ ).Execute()
+
+ if err != nil {
+ s.app.Logger().Error("Failed to update server geolocation", "serverId", serverID, "error", err)
+ return
+ }
+
+ s.app.Logger().Info("Updated geolocation",
+ "serverId", serverID,
+ "addr", serverAddr,
+ "city", location.City,
+ "isp", location.ISP,
+ )
+}
diff --git a/internal/application/monitoring/service.go b/internal/application/monitoring/service.go
new file mode 100644
index 0000000..8c3b756
--- /dev/null
+++ b/internal/application/monitoring/service.go
@@ -0,0 +1,131 @@
+package monitoring
+
+import (
+ "fmt"
+ "frpc-hub/pkg/utils"
+ "sync"
+ "time"
+
+ "github.com/pocketbase/pocketbase/core"
+)
+
+// NetworkService is the network diagnostic service.
+type NetworkService struct {
+ app core.App
+ geoCache map[string]*geoCacheItem // IP geolocation cache
+ geoCacheLock sync.RWMutex // Cache read-write lock
+}
+
+// geoCacheItem is a geolocation cache entry.
+type geoCacheItem struct {
+ Location *utils.GeoLocation
+ ExpiresAt time.Time
+}
+
+// ServerNetworkStatus holds network status for a server.
+type ServerNetworkStatus struct {
+ ServerID string `json:"serverId"`
+ ServerName string `json:"serverName"`
+ ServerAddr string `json:"serverAddr"`
+ ServerPort int `json:"serverPort"`
+ NetworkStatus *NetworkStatus `json:"networkStatus"`
+ GeoLocation *utils.GeoLocation `json:"geoLocation,omitempty"`
+}
+
+// NetworkStatus holds latency and reachability information.
+type NetworkStatus struct {
+ Latency int64 `json:"latency"` // Latency in milliseconds
+ Reachable bool `json:"reachable"` // Whether the host is reachable
+ LastCheckTime time.Time `json:"lastCheckTime"` // Last check timestamp
+ Error string `json:"error,omitempty"`
+}
+
+// NewNetworkService creates a new network diagnostic service.
+func NewNetworkService(app core.App) *NetworkService {
+ return &NetworkService{
+ app: app,
+ geoCache: make(map[string]*geoCacheItem),
+ }
+}
+
+// GetServerNetworkStatus retrieves server network status.
+func (s *NetworkService) GetServerNetworkStatus(serverID string) (*ServerNetworkStatus, error) {
+ record, err := s.app.FindRecordById("fh_servers", serverID)
+ if err != nil {
+ return nil, fmt.Errorf("server not found: %w", err)
+ }
+
+ serverName := record.GetString("name")
+ serverAddr := record.GetString("serverAddr")
+ serverPort := record.GetInt("serverPort")
+
+ addr := fmt.Sprintf("%s:%d", serverAddr, serverPort)
+ pingResult := utils.PingHost(addr, 5*time.Second)
+
+ networkStatus := &NetworkStatus{
+ Latency: pingResult.Latency,
+ Reachable: pingResult.Reachable,
+ LastCheckTime: time.Now(),
+ Error: pingResult.Error,
+ }
+
+ geoLocation, err := s.getGeoLocationWithCache(serverAddr)
+ if err != nil {
+ s.app.Logger().Warn("Failed to get geo location", "addr", serverAddr, "error", err)
+ }
+
+ return &ServerNetworkStatus{
+ ServerID: serverID,
+ ServerName: serverName,
+ ServerAddr: serverAddr,
+ ServerPort: serverPort,
+ NetworkStatus: networkStatus,
+ GeoLocation: geoLocation,
+ }, nil
+}
+
+// getGeoLocationWithCache retrieves geolocation information with a 24-hour cache.
+func (s *NetworkService) getGeoLocationWithCache(addr string) (*utils.GeoLocation, error) {
+ s.geoCacheLock.RLock()
+ if item, exists := s.geoCache[addr]; exists {
+ if time.Now().Before(item.ExpiresAt) {
+ s.geoCacheLock.RUnlock()
+ return item.Location, nil
+ }
+ }
+ s.geoCacheLock.RUnlock()
+
+ location, err := utils.GetGeoLocation(addr)
+ if err != nil {
+ return nil, err
+ }
+
+ s.geoCacheLock.Lock()
+ s.geoCache[addr] = &geoCacheItem{
+ Location: location,
+ ExpiresAt: time.Now().Add(24 * time.Hour),
+ }
+ s.geoCacheLock.Unlock()
+
+ return location, nil
+}
+
+// ClearGeoCache clears the geolocation cache.
+func (s *NetworkService) ClearGeoCache() {
+ s.geoCacheLock.Lock()
+ defer s.geoCacheLock.Unlock()
+ s.geoCache = make(map[string]*geoCacheItem)
+}
+
+// CleanExpiredCache removes expired entries from the geolocation cache.
+func (s *NetworkService) CleanExpiredCache() {
+ s.geoCacheLock.Lock()
+ defer s.geoCacheLock.Unlock()
+
+ now := time.Now()
+ for addr, item := range s.geoCache {
+ if now.After(item.ExpiresAt) {
+ delete(s.geoCache, addr)
+ }
+ }
+}
diff --git a/internal/application/proxy/service.go b/internal/application/proxy/service.go
new file mode 100644
index 0000000..75dcfd9
--- /dev/null
+++ b/internal/application/proxy/service.go
@@ -0,0 +1,42 @@
+package proxy
+
+import (
+ proxydomain "frpc-hub/internal/domain/proxy"
+
+ "github.com/pocketbase/pocketbase/core"
+)
+
+type Service struct {
+ app core.App
+ repo proxydomain.Repository
+}
+
+func NewService(app core.App, repo proxydomain.Repository) *Service {
+ return &Service{app: app, repo: repo}
+}
+
+func (s *Service) GetProxyCountByStatus(status proxydomain.ProxyStatus) (int64, error) {
+ return s.repo.CountByStatus(status)
+}
+
+func (s *Service) GetProxyCountByBootStatus(status proxydomain.ProxyBootStatus) (int64, error) {
+ return s.repo.CountByBootStatus(status)
+}
+
+func (s *Service) GetProxyCountsByType() (map[string]int64, error) {
+ return s.repo.CountByType()
+}
+
+func (s *Service) UpdateProxyBootStatus(proxyID string, status proxydomain.ProxyBootStatus) error {
+ return s.repo.UpdateBootStatus(proxyID, status)
+}
+
+func (s *Service) UpdateProxyBootStatusByServerID(serverID string, status proxydomain.ProxyBootStatus) error {
+ return s.repo.UpdateBootStatusByServerID(serverID, status)
+}
+
+func (s *Service) ResetAllProxyBootStatus() {
+ if err := s.repo.ResetAllBootStatus(); err != nil {
+ s.app.Logger().Error("ResetAllProxyBootStatus failed", "error", err)
+ }
+}
diff --git a/internal/application/server/service.go b/internal/application/server/service.go
new file mode 100644
index 0000000..2566bb7
--- /dev/null
+++ b/internal/application/server/service.go
@@ -0,0 +1,34 @@
+package server
+
+import (
+ serverdomain "frpc-hub/internal/domain/server"
+
+ "github.com/pocketbase/pocketbase/core"
+)
+
+type Service struct {
+ app core.App
+ repo serverdomain.Repository
+}
+
+func NewService(app core.App, repo serverdomain.Repository) *Service {
+ return &Service{app: app, repo: repo}
+}
+
+func (s *Service) GetServerCountByStatus(status serverdomain.ServerStatus) (int64, error) {
+ return s.repo.CountByBootStatus(status)
+}
+
+func (s *Service) UpdateServerBootStatus(serverID string, status serverdomain.ServerStatus) error {
+ return s.repo.UpdateBootStatus(serverID, status)
+}
+
+func (s *Service) ResetAllServerStatus() {
+ if err := s.repo.ResetAllBootStatus(); err != nil {
+ s.app.Logger().Error("ResetAllServerStatus failed", "error", err)
+ }
+}
+
+func (s *Service) GetMaxLatency() (int64, error) {
+ return s.repo.GetMaxLatency()
+}
diff --git a/internal/application/system/service.go b/internal/application/system/service.go
new file mode 100644
index 0000000..acf7911
--- /dev/null
+++ b/internal/application/system/service.go
@@ -0,0 +1,218 @@
+package system
+
+import (
+ "encoding/json"
+ "errors"
+ "fmt"
+ "net/http"
+ "time"
+
+ "frpc-hub/pkg/buildinfo"
+
+ "github.com/pocketbase/pocketbase/core"
+)
+
+const SettingsID = "wcstsqmz8hur331"
+
+type Service struct {
+ app core.App
+}
+
+type InitializeRequest struct {
+ Email string `json:"email"`
+ Password string `json:"password"`
+ Language string `json:"language"`
+}
+
+type SettingsResponse struct {
+ ID string `json:"id"`
+ Initialized bool `json:"initialized"`
+ General map[string]interface{} `json:"general"`
+}
+
+type UpdateSettingsRequest struct {
+ General map[string]interface{} `json:"general"`
+}
+
+func NewService(app core.App) *Service {
+ return &Service{app: app}
+}
+
+// CheckInitialized checks if the system has been initialized.
+func (s *Service) CheckInitialized() (bool, error) {
+ collection, err := s.app.FindCollectionByNameOrId("fh_settings")
+ if err != nil {
+ return false, fmt.Errorf("failed to find settings collection: %w", err)
+ }
+
+ record, err := s.app.FindRecordById(collection, SettingsID)
+ if err != nil {
+ // If record doesn't exist, system is not initialized
+ return false, nil
+ }
+
+ initialized := record.GetBool("initialized")
+ return initialized, nil
+}
+
+// GetSettings retrieves the system settings.
+func (s *Service) GetSettings() (*SettingsResponse, error) {
+ collection, err := s.app.FindCollectionByNameOrId("fh_settings")
+ if err != nil {
+ return nil, fmt.Errorf("failed to find settings collection: %w", err)
+ }
+
+ record, err := s.app.FindRecordById(collection, SettingsID)
+ if err != nil {
+ return nil, fmt.Errorf("failed to find settings record: %w", err)
+ }
+
+ general := make(map[string]interface{})
+ if generalField := record.Get("general"); generalField != nil {
+ if generalMap, ok := generalField.(map[string]interface{}); ok {
+ general = generalMap
+ } else if generalStr, ok := generalField.(string); ok {
+ if err := json.Unmarshal([]byte(generalStr), &general); err != nil {
+ s.app.Logger().Warn("Failed to unmarshal general settings", "error", err)
+ }
+ }
+ }
+
+ return &SettingsResponse{
+ ID: record.Id,
+ Initialized: record.GetBool("initialized"),
+ General: general,
+ }, nil
+}
+
+// UpdateSettings updates the system settings.
+func (s *Service) UpdateSettings(req *UpdateSettingsRequest) error {
+ if req.General == nil {
+ return errors.New("general settings cannot be nil")
+ }
+
+ generalJSON, err := json.Marshal(req.General)
+ if err != nil {
+ return fmt.Errorf("failed to marshal general settings: %w", err)
+ }
+
+ _, err = s.app.DB().NewQuery(`
+ UPDATE fh_settings
+ SET general = {:general}, updated = STRFTIME('%Y-%m-%d %H:%M:%S', 'now')
+ WHERE id = {:id}
+ `).Bind(map[string]interface{}{
+ "general": string(generalJSON),
+ "id": SettingsID,
+ }).Execute()
+
+ if err != nil {
+ return fmt.Errorf("failed to update settings: %w", err)
+ }
+
+ s.app.Logger().Info("Settings updated successfully")
+ return nil
+}
+
+// GetAppVersion returns the application version.
+func (s *Service) GetAppVersion() string {
+ return buildinfo.AppVersion
+}
+
+// LatestVersionResponse holds the latest release info from GitHub.
+type LatestVersionResponse struct {
+ TagName string `json:"tag_name"`
+ HTMLURL string `json:"html_url"`
+}
+
+// GetLatestVersion fetches the latest frpc-hub release from GitHub.
+func (s *Service) GetLatestVersion() (*LatestVersionResponse, error) {
+ client := &http.Client{Timeout: 10 * time.Second}
+
+ req, err := http.NewRequest("GET", "https://api.github.com/repos/luckjiawei/frpc-hub/releases/latest", nil)
+ if err != nil {
+ return nil, err
+ }
+ req.Header.Set("User-Agent", "frpc-hub-server")
+ req.Header.Set("Accept", "application/vnd.github+json")
+
+ resp, err := client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ defer resp.Body.Close()
+
+ if resp.StatusCode != http.StatusOK {
+ return nil, fmt.Errorf("github api returned status: %d", resp.StatusCode)
+ }
+
+ var release LatestVersionResponse
+ if err := json.NewDecoder(resp.Body).Decode(&release); err != nil {
+ return nil, err
+ }
+
+ return &release, nil
+}
+
+// InitializeSystem initializes the system with admin user and settings (with transaction).
+func (s *Service) InitializeSystem(req *InitializeRequest) error {
+ if req.Email == "" || req.Password == "" {
+ return errors.New("email and password are required")
+ }
+
+ if req.Language != "en" && req.Language != "zh" {
+ req.Language = "en"
+ }
+
+ initialized, err := s.CheckInitialized()
+ if err != nil {
+ return fmt.Errorf("failed to check initialization status: %w", err)
+ }
+
+ if initialized {
+ return errors.New("system is already initialized")
+ }
+
+ return s.app.RunInTransaction(func(txApp core.App) error {
+ usersCollection, err := txApp.FindCollectionByNameOrId("fh_users")
+ if err != nil {
+ return fmt.Errorf("failed to find users collection: %w", err)
+ }
+
+ userRecord := core.NewRecord(usersCollection)
+ userRecord.Set("email", req.Email)
+ userRecord.Set("password", req.Password)
+ userRecord.Set("passwordConfirm", req.Password)
+ userRecord.Set("emailVisibility", true)
+
+ if err := txApp.Save(userRecord); err != nil {
+ return fmt.Errorf("failed to create admin user: %w", err)
+ }
+
+ settingsCollection, err := txApp.FindCollectionByNameOrId("fh_settings")
+ if err != nil {
+ return fmt.Errorf("failed to find settings collection: %w", err)
+ }
+
+ settingsRecord, err := txApp.FindRecordById(settingsCollection, SettingsID)
+ if err != nil {
+ settingsRecord = core.NewRecord(settingsCollection)
+ settingsRecord.Set("id", SettingsID)
+ }
+
+ settingsRecord.Set("initialized", true)
+ settingsRecord.Set("general", map[string]interface{}{
+ "defaultLanguage": req.Language,
+ })
+
+ if err := txApp.Save(settingsRecord); err != nil {
+ return fmt.Errorf("failed to save settings: %w", err)
+ }
+
+ s.app.Logger().Info("System initialized successfully",
+ "email", req.Email,
+ "language", req.Language,
+ )
+
+ return nil
+ })
+}
diff --git a/internal/application/version/service.go b/internal/application/version/service.go
new file mode 100644
index 0000000..a2c5412
--- /dev/null
+++ b/internal/application/version/service.go
@@ -0,0 +1,30 @@
+package version
+
+import (
+ "runtime/debug"
+
+ "github.com/pocketbase/pocketbase/core"
+)
+
+type Service struct {
+ app core.App
+}
+
+func NewService(app core.App) *Service {
+ return &Service{app: app}
+}
+
+func (s *Service) GetFrpVersion() string {
+ info, ok := debug.ReadBuildInfo()
+ if !ok {
+ return "unknown"
+ }
+
+ for _, dep := range info.Deps {
+ if dep.Path == "github.com/fatedier/frp" {
+ return dep.Version
+ }
+ }
+
+ return "unknown"
+}
diff --git a/internal/domain/proxy/model.go b/internal/domain/proxy/model.go
new file mode 100644
index 0000000..4fac08f
--- /dev/null
+++ b/internal/domain/proxy/model.go
@@ -0,0 +1,33 @@
+package proxy
+
+import "frpc-hub/pkg/types"
+
+// Proxy represents a frpc proxy configuration record.
+type Proxy struct {
+ Id string `db:"id" json:"id"`
+ ServerId string `db:"serverId" json:"serverId"`
+ ProxyType string `db:"proxyType" json:"proxyType"`
+ Name string `db:"name" json:"name"`
+ LocalIP string `db:"localIP" json:"localIp"`
+ LocalPort types.NullableInt `db:"localPort" json:"localPort"`
+ RemotePort types.NullableInt `db:"remotePort" json:"remotePort,omitempty"`
+ Subdomain string `db:"subdomain" json:"subdomain"`
+ CustomDomains types.JSONStringArray `db:"customDomains" json:"customDomains"`
+ Transport types.JSONMap `db:"transport" json:"transport"`
+ Description string `db:"description" json:"description"`
+ Status string `db:"status" json:"status"`
+}
+
+type ProxyStatus string
+
+const (
+ ProxyStatusEnabled ProxyStatus = "enabled"
+ ProxyStatusDisabled ProxyStatus = "disabled"
+)
+
+type ProxyBootStatus string
+
+const (
+ ProxyBootStatusOnline ProxyBootStatus = "online"
+ ProxyBootStatusOffline ProxyBootStatus = "offline"
+)
diff --git a/internal/domain/proxy/repository.go b/internal/domain/proxy/repository.go
new file mode 100644
index 0000000..ae90332
--- /dev/null
+++ b/internal/domain/proxy/repository.go
@@ -0,0 +1,12 @@
+package proxy
+
+// Repository defines persistence operations for the proxy domain.
+type Repository interface {
+ CountByStatus(status ProxyStatus) (int64, error)
+ CountByBootStatus(status ProxyBootStatus) (int64, error)
+ CountByType() (map[string]int64, error)
+ UpdateBootStatus(id string, status ProxyBootStatus) error
+ UpdateBootStatusByServerID(serverID string, status ProxyBootStatus) error
+ ResetAllBootStatus() error
+ FindByServerID(serverID string) ([]Proxy, error)
+}
diff --git a/internal/domain/server/model.go b/internal/domain/server/model.go
new file mode 100644
index 0000000..610f3a4
--- /dev/null
+++ b/internal/domain/server/model.go
@@ -0,0 +1,14 @@
+package server
+
+type ServerStatus string
+
+const (
+ ServerStatusRunning ServerStatus = "running"
+ ServerStatusStopped ServerStatus = "stopped"
+)
+
+// ServerRecord is a lightweight struct for DB scanning operations.
+type ServerRecord struct {
+ ID string `db:"id"`
+ ServerName string `db:"serverName"`
+}
diff --git a/internal/domain/server/repository.go b/internal/domain/server/repository.go
new file mode 100644
index 0000000..bd7a0cb
--- /dev/null
+++ b/internal/domain/server/repository.go
@@ -0,0 +1,10 @@
+package server
+
+// Repository defines persistence operations for the server domain.
+type Repository interface {
+ CountByBootStatus(status ServerStatus) (int64, error)
+ UpdateBootStatus(id string, status ServerStatus) error
+ ResetAllBootStatus() error
+ GetMaxLatency() (int64, error)
+ FindAllWithAutoConnect() ([]ServerRecord, error)
+}
diff --git a/internal/infrastructure/persistence/proxy_repository.go b/internal/infrastructure/persistence/proxy_repository.go
new file mode 100644
index 0000000..d624d07
--- /dev/null
+++ b/internal/infrastructure/persistence/proxy_repository.go
@@ -0,0 +1,153 @@
+package persistence
+
+import (
+ "frpc-hub/internal/domain/proxy"
+
+ "github.com/pocketbase/dbx"
+ "github.com/pocketbase/pocketbase/core"
+)
+
+type ProxyRepository struct {
+ app core.App
+}
+
+func NewProxyRepository(app core.App) *ProxyRepository {
+ return &ProxyRepository{app: app}
+}
+
+func (r *ProxyRepository) CountByStatus(status proxy.ProxyStatus) (int64, error) {
+ var count int64
+ err := r.app.DB().
+ Select("COUNT(*)").
+ From("fh_proxies").
+ Where(dbx.HashExp{"status": string(status)}).
+ Row(&count)
+
+ if err != nil {
+ r.app.Logger().Error("Failed to get proxy count by status", "error", err)
+ return 0, err
+ }
+
+ return count, nil
+}
+
+func (r *ProxyRepository) CountByBootStatus(status proxy.ProxyBootStatus) (int64, error) {
+ var count int64
+ err := r.app.DB().
+ Select("COUNT(*)").
+ From("fh_proxies").
+ Where(dbx.HashExp{"bootStatus": string(status)}).
+ Row(&count)
+
+ if err != nil {
+ r.app.Logger().Error("Failed to get proxy count by bootStatus", "error", err)
+ return 0, err
+ }
+
+ return count, nil
+}
+
+func (r *ProxyRepository) CountByType() (map[string]int64, error) {
+ type proxyTypeCount struct {
+ ProxyType string `db:"proxyType"`
+ Count int64 `db:"count"`
+ }
+
+ var results []proxyTypeCount
+ err := r.app.DB().
+ Select("proxyType", "COUNT(*) as count").
+ From("fh_proxies").
+ GroupBy("proxyType").
+ All(&results)
+
+ if err != nil {
+ r.app.Logger().Error("Failed to get proxy counts by type", "error", err)
+ return nil, err
+ }
+
+ counts := make(map[string]int64)
+ for _, result := range results {
+ counts[result.ProxyType] = result.Count
+ }
+
+ return counts, nil
+}
+
+func (r *ProxyRepository) UpdateBootStatus(id string, status proxy.ProxyBootStatus) error {
+ r.app.Logger().Info("Update proxy boot status", "id", id, "status", status)
+
+ result, err := r.app.DB().
+ Update("fh_proxies", dbx.Params{
+ "bootStatus": string(status),
+ }, dbx.HashExp{
+ "id": id,
+ }).
+ Execute()
+
+ if err != nil {
+ r.app.Logger().Error("Failed to update proxy boot status", "id", id, "error", err)
+ return err
+ }
+
+ rowsAffected, _ := result.RowsAffected()
+ r.app.Logger().Info("Proxy boot status updated successfully", "id", id, "status", status, "rowsAffected", rowsAffected)
+ return nil
+}
+
+func (r *ProxyRepository) UpdateBootStatusByServerID(serverID string, status proxy.ProxyBootStatus) error {
+ r.app.Logger().Info("Update proxy boot status by server id", "id", serverID, "status", status)
+
+ result, err := r.app.DB().
+ Update("fh_proxies", dbx.Params{
+ "bootStatus": string(status),
+ }, dbx.HashExp{
+ "serverId": serverID,
+ }).
+ Execute()
+
+ if err != nil {
+ r.app.Logger().Error("Failed to update proxy boot status by server id", "serverID", serverID, "error", err)
+ return err
+ }
+
+ rowsAffected, _ := result.RowsAffected()
+ r.app.Logger().Info("Proxy boot status updated successfully", "serverID", serverID, "status", status, "count", rowsAffected)
+ return nil
+}
+
+func (r *ProxyRepository) ResetAllBootStatus() error {
+ r.app.Logger().Info("Resetting all proxy boot status to offline")
+
+ result, err := r.app.DB().
+ Update("fh_proxies", dbx.Params{
+ "bootStatus": string(proxy.ProxyBootStatusOffline),
+ }, dbx.Not(dbx.HashExp{
+ "bootStatus": string(proxy.ProxyBootStatusOffline),
+ })).
+ Execute()
+
+ if err != nil {
+ r.app.Logger().Error("Failed to reset proxy boot status", "error", err)
+ return err
+ }
+
+ rowsAffected, _ := result.RowsAffected()
+ r.app.Logger().Info("Proxy boot status reset completed", "count", rowsAffected)
+ return nil
+}
+
+func (r *ProxyRepository) FindByServerID(serverID string) ([]proxy.Proxy, error) {
+ var proxies []proxy.Proxy
+ err := r.app.DB().
+ Select("fh_proxies.*").
+ From("fh_proxies").
+ Where(dbx.HashExp{"serverId": serverID}).
+ All(&proxies)
+
+ if err != nil {
+ r.app.Logger().Error("Failed to find proxies by server id", "serverID", serverID, "error", err)
+ return nil, err
+ }
+
+ return proxies, nil
+}
diff --git a/internal/infrastructure/persistence/server_repository.go b/internal/infrastructure/persistence/server_repository.go
new file mode 100644
index 0000000..c80cd51
--- /dev/null
+++ b/internal/infrastructure/persistence/server_repository.go
@@ -0,0 +1,110 @@
+package persistence
+
+import (
+ "frpc-hub/internal/domain/server"
+
+ "github.com/pocketbase/dbx"
+ "github.com/pocketbase/pocketbase/core"
+)
+
+type ServerRepository struct {
+ app core.App
+}
+
+func NewServerRepository(app core.App) *ServerRepository {
+ return &ServerRepository{app: app}
+}
+
+func (r *ServerRepository) CountByBootStatus(status server.ServerStatus) (int64, error) {
+ var count int64
+ err := r.app.DB().
+ Select("COUNT(*)").
+ From("fh_servers").
+ Where(dbx.HashExp{"bootStatus": string(status)}).
+ Row(&count)
+
+ if err != nil {
+ r.app.Logger().Error("Failed to get server count by status", "error", err)
+ return 0, err
+ }
+
+ return count, nil
+}
+
+func (r *ServerRepository) UpdateBootStatus(id string, status server.ServerStatus) error {
+ r.app.Logger().Info("Update server boot status", "id", id, "status", status)
+
+ result, err := r.app.DB().
+ Update("fh_servers",
+ dbx.Params{"bootStatus": string(status)},
+ dbx.NewExp("id = {:id} AND bootStatus != {:status}", dbx.Params{
+ "id": id,
+ "status": string(status),
+ }),
+ ).Execute()
+
+ if err != nil {
+ r.app.Logger().Error("Failed to update server boot status", "id", id, "error", err)
+ return err
+ }
+
+ rowsAffected, _ := result.RowsAffected()
+ if rowsAffected > 0 {
+ r.app.Logger().Info("Server boot status updated successfully", "id", id, "status", status)
+ } else {
+ r.app.Logger().Debug("Server boot status unchanged", "id", id, "status", status)
+ }
+
+ return nil
+}
+
+func (r *ServerRepository) ResetAllBootStatus() error {
+ r.app.Logger().Info("Resetting all server status to stopped")
+
+ result, err := r.app.DB().
+ Update("fh_servers",
+ dbx.Params{"bootStatus": string(server.ServerStatusStopped)},
+ dbx.NewExp("bootStatus != {:status} AND bootStatus != ''", dbx.Params{"status": string(server.ServerStatusStopped)}),
+ ).Execute()
+
+ if err != nil {
+ r.app.Logger().Error("Failed to reset server status", "error", err)
+ return err
+ }
+
+ rowsAffected, _ := result.RowsAffected()
+ r.app.Logger().Info("Server status reset completed", "count", rowsAffected)
+ return nil
+}
+
+func (r *ServerRepository) GetMaxLatency() (int64, error) {
+ var maxLatency int64
+ err := r.app.DB().
+ Select("MAX(CAST(json_extract(networkStatus, '$.latency') AS INTEGER))").
+ From("fh_servers").
+ Where(dbx.NewExp("networkStatus IS NOT NULL AND networkStatus != ''")).
+ Row(&maxLatency)
+
+ if err != nil {
+ r.app.Logger().Error("Failed to get max latency", "error", err)
+ return 0, err
+ }
+
+ return maxLatency, nil
+}
+
+func (r *ServerRepository) FindAllWithAutoConnect() ([]server.ServerRecord, error) {
+ records, err := r.app.FindAllRecords("fh_servers", dbx.HashExp{"autoConnection": true})
+ if err != nil {
+ return nil, err
+ }
+
+ result := make([]server.ServerRecord, 0, len(records))
+ for _, rec := range records {
+ result = append(result, server.ServerRecord{
+ ID: rec.Id,
+ ServerName: rec.GetString("serverName"),
+ })
+ }
+ return result, nil
+}
diff --git a/internal/interfaces/http/dashboard_handler.go b/internal/interfaces/http/dashboard_handler.go
new file mode 100644
index 0000000..f2a58b3
--- /dev/null
+++ b/internal/interfaces/http/dashboard_handler.go
@@ -0,0 +1,54 @@
+package httphandler
+
+import (
+ "frpc-hub/internal/application/dashboard"
+ "frpc-hub/pkg/response"
+
+ "github.com/pocketbase/pocketbase/core"
+)
+
+type DashboardHandler struct {
+ dashboardService *dashboard.Service
+}
+
+type DashboardStatsVo struct {
+ RunningCount int64 `json:"runningCount"`
+ StoppedCount int64 `json:"stoppedCount"`
+ ProxiesEnabledCount int64 `json:"proxiesEnabledCount"`
+ ProxiesDisabledCount int64 `json:"proxiesDisabledCount"`
+ ProxiesOnlineCount int64 `json:"proxiesOnlineCount"`
+ MaxLatency int64 `json:"maxLatency"`
+ ProxyTypeCounts map[string]int64 `json:"proxyTypeCounts"`
+ UptimeSeconds int64 `json:"uptimeSeconds"`
+}
+
+func NewDashboardHandler(dashboardService *dashboard.Service) *DashboardHandler {
+ return &DashboardHandler{dashboardService: dashboardService}
+}
+
+func (dh *DashboardHandler) RegisterHandlers(e *core.ServeEvent) {
+ e.Router.GET("/api/dashboard/topology", func(e *core.RequestEvent) error {
+ data, err := dh.dashboardService.GetTopology()
+ if err != nil {
+ return e.JSON(500, response.Error(err))
+ }
+ return e.JSON(200, data)
+ })
+
+ e.Router.GET("/api/dashboard/stats", func(e *core.RequestEvent) error {
+ stats, err := dh.dashboardService.GetStats()
+ if err != nil {
+ return e.JSON(500, response.Error(err))
+ }
+ return e.JSON(200, DashboardStatsVo{
+ RunningCount: stats.RunningCount,
+ StoppedCount: stats.StoppedCount,
+ ProxiesEnabledCount: stats.ProxiesEnabledCount,
+ ProxiesDisabledCount: stats.ProxiesDisabledCount,
+ ProxiesOnlineCount: stats.ProxiesOnlineCount,
+ MaxLatency: stats.MaxLatency,
+ ProxyTypeCounts: stats.ProxyTypeCounts,
+ UptimeSeconds: stats.UptimeSeconds,
+ })
+ })
+}
diff --git a/internal/interfaces/http/frpc_handler.go b/internal/interfaces/http/frpc_handler.go
new file mode 100644
index 0000000..1eada48
--- /dev/null
+++ b/internal/interfaces/http/frpc_handler.go
@@ -0,0 +1,78 @@
+package httphandler
+
+import (
+ "frpc-hub/internal/application/frpc"
+ "net/http"
+
+ "github.com/pocketbase/pocketbase/core"
+)
+
+type FrpcHandler struct {
+ app core.App
+ service *frpc.Service
+}
+
+func NewFrpcHandler(app core.App, service *frpc.Service) *FrpcHandler {
+ return &FrpcHandler{
+ app: app,
+ service: service,
+ }
+}
+
+func (h *FrpcHandler) RegisterHandlers(e *core.ServeEvent) {
+ e.Router.POST("/api/frpc/launch", func(e *core.RequestEvent) error {
+ data := struct {
+ ID string `json:"id"`
+ }{}
+ if err := e.BindBody(&data); err != nil {
+ return e.JSON(400, map[string]string{"error": "invalid request body"})
+ }
+ id := data.ID
+ if id == "" {
+ return e.JSON(400, map[string]string{"error": "id is required"})
+ }
+ err := h.service.LaunchFrpc(&id)
+ if err != nil {
+ return e.JSON(500, map[string]string{"error": err.Error()})
+ }
+ return e.JSON(200, map[string]string{"message": "frpc started"})
+ })
+
+ e.Router.GET("/api/frpc/logs/stream", func(e *core.RequestEvent) error {
+ id := e.Request.URL.Query().Get("id")
+ if id == "" {
+ return e.JSON(400, map[string]string{"error": "id is required"})
+ }
+
+ w := e.Response
+ w.Header().Set("Content-Type", "text/event-stream")
+ w.Header().Set("Cache-Control", "no-cache")
+ w.Header().Set("Connection", "keep-alive")
+
+ flusher, ok := w.(http.Flusher)
+ if !ok {
+ return e.JSON(500, map[string]string{"error": "streaming not supported"})
+ }
+
+ h.service.StreamLog(id, e.Request.Context(), w, flusher)
+ return nil
+ })
+
+ e.Router.POST("/api/frpc/terminate", func(e *core.RequestEvent) error {
+ data := struct {
+ ID string `json:"id"`
+ }{}
+ if err := e.BindBody(&data); err != nil {
+ return e.JSON(400, map[string]string{"error": "invalid request body"})
+ }
+ id := data.ID
+ if id == "" {
+ return e.JSON(400, map[string]string{"error": "id is required"})
+ }
+ err := h.service.TerminateFrpc(&id)
+ if err != nil {
+ return e.JSON(500, map[string]string{"error": err.Error()})
+ }
+ return e.JSON(200, map[string]string{"message": "frpc terminated"})
+ })
+}
diff --git a/internal/interfaces/http/github_handler.go b/internal/interfaces/http/github_handler.go
new file mode 100644
index 0000000..fcdf9d4
--- /dev/null
+++ b/internal/interfaces/http/github_handler.go
@@ -0,0 +1,29 @@
+package httphandler
+
+import (
+ "frpc-hub/internal/application/github"
+
+ "github.com/pocketbase/pocketbase/core"
+)
+
+type GithubHandler struct {
+ app core.App
+ service *github.Service
+}
+
+func NewGithubHandler(app core.App, service *github.Service) *GithubHandler {
+ return &GithubHandler{
+ app: app,
+ service: service,
+ }
+}
+
+func (h *GithubHandler) RegisterHandlers(e *core.ServeEvent) {
+ e.Router.GET("/api/github/frp/releases", func(e *core.RequestEvent) error {
+ releases, err := h.service.GetFrpReleases()
+ if err != nil {
+ return e.JSON(500, map[string]string{"error": err.Error()})
+ }
+ return e.JSON(200, releases)
+ })
+}
diff --git a/internal/interfaces/http/import_handler.go b/internal/interfaces/http/import_handler.go
new file mode 100644
index 0000000..776f6a9
--- /dev/null
+++ b/internal/interfaces/http/import_handler.go
@@ -0,0 +1,70 @@
+package httphandler
+
+import (
+ "frpc-hub/internal/application/importer"
+ "net/http"
+
+ "github.com/pocketbase/pocketbase/core"
+)
+
+type ImportHandler struct {
+ app core.App
+ service *importer.Service
+}
+
+func NewImportHandler(app core.App, service *importer.Service) *ImportHandler {
+ return &ImportHandler{app: app, service: service}
+}
+
+func (h *ImportHandler) RegisterHandlers(e *core.ServeEvent) {
+ // Preview: parse TOML content and return server/proxy info with duplicate flags
+ e.Router.POST("/api/import/preview", func(e *core.RequestEvent) error {
+ var req importer.ParseTomlRequest
+ if err := e.BindBody(&req); err != nil {
+ return e.JSON(http.StatusBadRequest, map[string]interface{}{
+ "error": "invalid request body",
+ })
+ }
+ if req.TomlContent == "" {
+ return e.JSON(http.StatusBadRequest, map[string]interface{}{
+ "error": "TOML content cannot be empty",
+ })
+ }
+
+ preview, err := h.service.ParseToml(&req)
+ if err != nil {
+ return e.JSON(http.StatusBadRequest, map[string]interface{}{
+ "error": err.Error(),
+ })
+ }
+
+ return e.JSON(http.StatusOK, preview)
+ })
+
+ // Execute: import servers and proxies within a transaction
+ e.Router.POST("/api/import/execute", func(e *core.RequestEvent) error {
+ var req importer.ExecuteImportRequest
+ if err := e.BindBody(&req); err != nil {
+ return e.JSON(http.StatusBadRequest, map[string]interface{}{
+ "error": "invalid request body",
+ })
+ }
+ if req.TomlContent == "" {
+ return e.JSON(http.StatusBadRequest, map[string]interface{}{
+ "error": "TOML content cannot be empty",
+ })
+ }
+
+ result, err := h.service.ExecuteImport(&req)
+ if err != nil {
+ return e.JSON(http.StatusInternalServerError, map[string]interface{}{
+ "error": err.Error(),
+ })
+ }
+
+ return e.JSON(http.StatusOK, map[string]interface{}{
+ "message": "import successful",
+ "result": result,
+ })
+ })
+}
diff --git a/internal/interfaces/http/system_handler.go b/internal/interfaces/http/system_handler.go
new file mode 100644
index 0000000..e3b886e
--- /dev/null
+++ b/internal/interfaces/http/system_handler.go
@@ -0,0 +1,102 @@
+package httphandler
+
+import (
+ "frpc-hub/internal/application/system"
+ "net/http"
+
+ "github.com/pocketbase/pocketbase/core"
+)
+
+type SystemHandler struct {
+ app core.App
+ service *system.Service
+}
+
+func NewSystemHandler(app core.App, service *system.Service) *SystemHandler {
+ return &SystemHandler{
+ app: app,
+ service: service,
+ }
+}
+
+func (h *SystemHandler) RegisterHandlers(e *core.ServeEvent) {
+ e.Router.GET("/api/system/initialized", func(e *core.RequestEvent) error {
+ initialized, err := h.service.CheckInitialized()
+ if err != nil {
+ return e.JSON(http.StatusInternalServerError, map[string]interface{}{
+ "error": err.Error(),
+ })
+ }
+
+ return e.JSON(http.StatusOK, map[string]interface{}{
+ "initialized": initialized,
+ })
+ })
+
+ e.Router.GET("/api/system/settings", func(e *core.RequestEvent) error {
+ settings, err := h.service.GetSettings()
+ if err != nil {
+ return e.JSON(http.StatusInternalServerError, map[string]interface{}{
+ "error": err.Error(),
+ })
+ }
+
+ return e.JSON(http.StatusOK, settings)
+ })
+
+ // Update system settings
+ e.Router.PUT("/api/system/settings", func(e *core.RequestEvent) error {
+ var req system.UpdateSettingsRequest
+ if err := e.BindBody(&req); err != nil {
+ return e.JSON(http.StatusBadRequest, map[string]interface{}{
+ "error": "Invalid request body",
+ })
+ }
+
+ if err := h.service.UpdateSettings(&req); err != nil {
+ return e.JSON(http.StatusInternalServerError, map[string]interface{}{
+ "error": err.Error(),
+ })
+ }
+
+ return e.JSON(http.StatusOK, map[string]interface{}{
+ "message": "Settings updated successfully",
+ })
+ })
+
+ e.Router.GET("/api/system/version", func(e *core.RequestEvent) error {
+ return e.JSON(http.StatusOK, map[string]string{
+ "version": h.service.GetAppVersion(),
+ })
+ })
+
+ e.Router.GET("/api/system/latest-version", func(e *core.RequestEvent) error {
+ latest, err := h.service.GetLatestVersion()
+ if err != nil {
+ return e.JSON(http.StatusInternalServerError, map[string]interface{}{
+ "error": err.Error(),
+ })
+ }
+ return e.JSON(http.StatusOK, latest)
+ })
+
+ // Initialize system (create admin user and settings)
+ e.Router.POST("/api/system/initialize", func(e *core.RequestEvent) error {
+ var req system.InitializeRequest
+ if err := e.BindBody(&req); err != nil {
+ return e.JSON(http.StatusBadRequest, map[string]interface{}{
+ "error": "Invalid request body",
+ })
+ }
+
+ if err := h.service.InitializeSystem(&req); err != nil {
+ return e.JSON(http.StatusBadRequest, map[string]interface{}{
+ "error": err.Error(),
+ })
+ }
+
+ return e.JSON(http.StatusOK, map[string]interface{}{
+ "message": "System initialized successfully",
+ })
+ })
+}
diff --git a/internal/interfaces/http/version_handler.go b/internal/interfaces/http/version_handler.go
new file mode 100644
index 0000000..42bbdf4
--- /dev/null
+++ b/internal/interfaces/http/version_handler.go
@@ -0,0 +1,27 @@
+package httphandler
+
+import (
+ "frpc-hub/internal/application/version"
+
+ "github.com/pocketbase/pocketbase/core"
+)
+
+type VersionHandler struct {
+ app core.App
+ service *version.Service
+}
+
+func NewVersionHandler(app core.App, service *version.Service) *VersionHandler {
+ return &VersionHandler{
+ app: app,
+ service: service,
+ }
+}
+
+func (h *VersionHandler) RegisterHandlers(e *core.ServeEvent) {
+ e.Router.GET("/api/frp/version", func(e *core.RequestEvent) error {
+ return e.JSON(200, map[string]string{
+ "frp": h.service.GetFrpVersion(),
+ })
+ })
+}
diff --git a/main.go b/main.go
new file mode 100644
index 0000000..e4af2a5
--- /dev/null
+++ b/main.go
@@ -0,0 +1,166 @@
+package main
+
+import (
+ "embed"
+ "io/fs"
+ "log"
+ "time"
+
+ "github.com/spf13/cobra"
+
+ "frpc-hub/internal/application/dashboard"
+ "frpc-hub/internal/application/frpc"
+ "frpc-hub/internal/application/importer"
+ "frpc-hub/internal/application/monitoring"
+ "frpc-hub/internal/application/proxy"
+ "frpc-hub/internal/application/server"
+ "frpc-hub/internal/application/system"
+ "frpc-hub/internal/application/version"
+ "frpc-hub/internal/infrastructure/persistence"
+ httphandler "frpc-hub/internal/interfaces/http"
+ _ "frpc-hub/migrations"
+
+ "github.com/pocketbase/pocketbase"
+ "github.com/pocketbase/pocketbase/apis"
+ "github.com/pocketbase/pocketbase/core"
+ "github.com/pocketbase/pocketbase/plugins/migratecmd"
+)
+
+//go:embed all:pb_public
+var pbPublicDir embed.FS
+
+func main() {
+ app := pocketbase.New()
+
+ // enable auto creation of migration files when using the "migrate" command
+ migratecmd.MustRegister(app, app.RootCmd, migratecmd.Config{
+ Automigrate: true,
+ })
+
+ // Infrastructure (Repository implementations)
+ serverRepo := persistence.NewServerRepository(app)
+ proxyRepo := persistence.NewProxyRepository(app)
+
+ // Application Services
+ serverService := server.NewService(app, serverRepo)
+ proxyService := proxy.NewService(app, proxyRepo)
+ frpcService := frpc.NewService(app, serverRepo, proxyRepo)
+ dashboardService := dashboard.NewService(app, serverService, proxyService)
+ settingsService := system.NewService(app)
+ networkService := monitoring.NewNetworkService(app)
+ networkMonitorService := monitoring.NewMonitorService(app, networkService)
+ importService := importer.NewService(app)
+ versionService := version.NewService(app)
+ //githubService := github.NewService(app)
+
+ // HTTP Handlers
+ //githubHandler := httphandler.NewGithubHandler(app, githubService)
+ frpcHandler := httphandler.NewFrpcHandler(app, frpcService)
+ versionHandler := httphandler.NewVersionHandler(app, versionService)
+ dashboardHandler := httphandler.NewDashboardHandler(dashboardService)
+ systemHandler := httphandler.NewSystemHandler(app, settingsService)
+ importHandler := httphandler.NewImportHandler(app, importService)
+
+ // Hook: Reload frpc when proxy is updated
+ app.OnRecordAfterUpdateSuccess("fh_proxies").BindFunc(func(e *core.RecordEvent) error {
+ serverId := e.Record.GetString("serverId")
+ if serverId != "" {
+ // Check if the server is currently running
+ if frpcService.IsServerRunning(serverId) {
+ app.Logger().Info("Proxy updated, reloading frpc configuration", "proxyId", e.Record.Id, "serverId", serverId)
+ if err := frpcService.ReloadFrpc(&serverId); err != nil {
+ app.Logger().Error("Failed to reload frpc after proxy update", "error", err, "serverId", serverId)
+ }
+ }
+ }
+ return e.Next()
+ })
+
+ // register custom routes
+ app.OnServe().BindFunc(func(e *core.ServeEvent) error {
+ // Reset all server statuses to stopped on startup
+ serverService.ResetAllServerStatus()
+ // Reset all proxy statuses to offline on startup
+ proxyService.ResetAllProxyBootStatus()
+
+ // Auto-start servers with autoConnection enabled (non-blocking)
+ go frpcService.AutoStartServers()
+
+ // Start network monitoring service
+ // Latency check: every 30 seconds (frequent for real-time monitoring)
+ // Geolocation check: every 24 hours (only for servers without geo data)
+ networkMonitorService.Start(5*time.Second, 24*time.Hour)
+
+ // Register routes for each module
+ //githubHandler.RegisterHandlers(e)
+ frpcHandler.RegisterHandlers(e)
+ versionHandler.RegisterHandlers(e)
+ dashboardHandler.RegisterHandlers(e)
+ systemHandler.RegisterHandlers(e)
+ importHandler.RegisterHandlers(e)
+
+ // Serve static files from embedded FS
+ content, err := fs.Sub(pbPublicDir, "pb_public")
+ if err != nil {
+ return err
+ }
+
+ // Check if index.html exists to ensure frontend is properly embedded
+ if _, err := content.Open("index.html"); err != nil {
+ log.Printf("WARNING: index.html not found in embedded assets! Frontend may not load. Error: %v", err)
+ }
+
+ e.Router.GET("/{path...}", apis.Static(content, true))
+
+ return e.Next()
+ })
+
+ // Overwrite the default serve command to suppress the default startup banner
+ // and use our custom logs
+ for _, cmd := range app.RootCmd.Commands() {
+ if cmd.Use == "serve" {
+ cmd.Run = nil
+ cmd.RunE = func(cmd *cobra.Command, args []string) error {
+ domains := args
+
+ httpAddr, _ := cmd.Flags().GetString("http")
+ httpsAddr, _ := cmd.Flags().GetString("https")
+ origins, _ := cmd.Flags().GetStringSlice("origins")
+
+ // replicate default logic from pocketbase
+ if httpAddr == "" {
+ if len(domains) > 0 {
+ httpAddr = "0.0.0.0:80"
+ } else {
+ httpAddr = "127.0.0.1:8090"
+ }
+ }
+
+ if httpsAddr == "" {
+ if len(domains) > 0 {
+ httpsAddr = "0.0.0.0:443"
+ }
+ }
+
+ log.Println("Starting PocketBase server...")
+ log.Println("----------------------------------------------------------------")
+ log.Println("Frontend: http://" + httpAddr + "/")
+ log.Println("Admin UI: http://" + httpAddr + "/_/")
+ log.Println("----------------------------------------------------------------")
+
+ return apis.Serve(app, apis.ServeConfig{
+ HttpAddr: httpAddr,
+ HttpsAddr: httpsAddr,
+ ShowStartBanner: false,
+ AllowedOrigins: origins,
+ CertificateDomains: domains,
+ })
+ }
+ break
+ }
+ }
+
+ if err := app.Start(); err != nil {
+ log.Fatal(err)
+ }
+}
diff --git a/migrations/1772260919_collections_snapshot.go b/migrations/1772260919_collections_snapshot.go
new file mode 100644
index 0000000..15529cf
--- /dev/null
+++ b/migrations/1772260919_collections_snapshot.go
@@ -0,0 +1,1347 @@
+package migrations
+
+import (
+ "github.com/pocketbase/pocketbase/core"
+ m "github.com/pocketbase/pocketbase/migrations"
+)
+
+func init() {
+ m.Register(func(app core.App) error {
+ jsonData := `[
+ {
+ "createRule": null,
+ "deleteRule": null,
+ "fields": [
+ {
+ "autogeneratePattern": "[a-z0-9]{15}",
+ "hidden": false,
+ "id": "text3208210256",
+ "max": 15,
+ "min": 15,
+ "name": "id",
+ "pattern": "^[a-z0-9]+$",
+ "presentable": false,
+ "primaryKey": true,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text455797646",
+ "max": 0,
+ "min": 0,
+ "name": "collectionRef",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text127846527",
+ "max": 0,
+ "min": 0,
+ "name": "recordRef",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text1582905952",
+ "max": 0,
+ "min": 0,
+ "name": "method",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "hidden": false,
+ "id": "autodate2990389176",
+ "name": "created",
+ "onCreate": true,
+ "onUpdate": false,
+ "presentable": false,
+ "system": true,
+ "type": "autodate"
+ },
+ {
+ "hidden": false,
+ "id": "autodate3332085495",
+ "name": "updated",
+ "onCreate": true,
+ "onUpdate": true,
+ "presentable": false,
+ "system": true,
+ "type": "autodate"
+ }
+ ],
+ "id": "pbc_2279338944",
+ "indexes": [
+ "CREATE INDEX ` + "`" + `idx_mfas_collectionRef_recordRef` + "`" + ` ON ` + "`" + `_mfas` + "`" + ` (collectionRef,recordRef)"
+ ],
+ "listRule": "@request.auth.id != '' && recordRef = @request.auth.id && collectionRef = @request.auth.collectionId",
+ "name": "_mfas",
+ "system": true,
+ "type": "base",
+ "updateRule": null,
+ "viewRule": "@request.auth.id != '' && recordRef = @request.auth.id && collectionRef = @request.auth.collectionId"
+ },
+ {
+ "createRule": null,
+ "deleteRule": null,
+ "fields": [
+ {
+ "autogeneratePattern": "[a-z0-9]{15}",
+ "hidden": false,
+ "id": "text3208210256",
+ "max": 15,
+ "min": 15,
+ "name": "id",
+ "pattern": "^[a-z0-9]+$",
+ "presentable": false,
+ "primaryKey": true,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text455797646",
+ "max": 0,
+ "min": 0,
+ "name": "collectionRef",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text127846527",
+ "max": 0,
+ "min": 0,
+ "name": "recordRef",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "cost": 8,
+ "hidden": true,
+ "id": "password901924565",
+ "max": 0,
+ "min": 0,
+ "name": "password",
+ "pattern": "",
+ "presentable": false,
+ "required": true,
+ "system": true,
+ "type": "password"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": true,
+ "id": "text3866985172",
+ "max": 0,
+ "min": 0,
+ "name": "sentTo",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": false,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "hidden": false,
+ "id": "autodate2990389176",
+ "name": "created",
+ "onCreate": true,
+ "onUpdate": false,
+ "presentable": false,
+ "system": true,
+ "type": "autodate"
+ },
+ {
+ "hidden": false,
+ "id": "autodate3332085495",
+ "name": "updated",
+ "onCreate": true,
+ "onUpdate": true,
+ "presentable": false,
+ "system": true,
+ "type": "autodate"
+ }
+ ],
+ "id": "pbc_1638494021",
+ "indexes": [
+ "CREATE INDEX ` + "`" + `idx_otps_collectionRef_recordRef` + "`" + ` ON ` + "`" + `_otps` + "`" + ` (collectionRef, recordRef)"
+ ],
+ "listRule": "@request.auth.id != '' && recordRef = @request.auth.id && collectionRef = @request.auth.collectionId",
+ "name": "_otps",
+ "system": true,
+ "type": "base",
+ "updateRule": null,
+ "viewRule": "@request.auth.id != '' && recordRef = @request.auth.id && collectionRef = @request.auth.collectionId"
+ },
+ {
+ "createRule": null,
+ "deleteRule": "@request.auth.id != '' && recordRef = @request.auth.id && collectionRef = @request.auth.collectionId",
+ "fields": [
+ {
+ "autogeneratePattern": "[a-z0-9]{15}",
+ "hidden": false,
+ "id": "text3208210256",
+ "max": 15,
+ "min": 15,
+ "name": "id",
+ "pattern": "^[a-z0-9]+$",
+ "presentable": false,
+ "primaryKey": true,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text455797646",
+ "max": 0,
+ "min": 0,
+ "name": "collectionRef",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text127846527",
+ "max": 0,
+ "min": 0,
+ "name": "recordRef",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text2462348188",
+ "max": 0,
+ "min": 0,
+ "name": "provider",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text1044722854",
+ "max": 0,
+ "min": 0,
+ "name": "providerId",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "hidden": false,
+ "id": "autodate2990389176",
+ "name": "created",
+ "onCreate": true,
+ "onUpdate": false,
+ "presentable": false,
+ "system": true,
+ "type": "autodate"
+ },
+ {
+ "hidden": false,
+ "id": "autodate3332085495",
+ "name": "updated",
+ "onCreate": true,
+ "onUpdate": true,
+ "presentable": false,
+ "system": true,
+ "type": "autodate"
+ }
+ ],
+ "id": "pbc_2281828961",
+ "indexes": [
+ "CREATE UNIQUE INDEX ` + "`" + `idx_externalAuths_record_provider` + "`" + ` ON ` + "`" + `_externalAuths` + "`" + ` (collectionRef, recordRef, provider)",
+ "CREATE UNIQUE INDEX ` + "`" + `idx_externalAuths_collection_provider` + "`" + ` ON ` + "`" + `_externalAuths` + "`" + ` (collectionRef, provider, providerId)"
+ ],
+ "listRule": "@request.auth.id != '' && recordRef = @request.auth.id && collectionRef = @request.auth.collectionId",
+ "name": "_externalAuths",
+ "system": true,
+ "type": "base",
+ "updateRule": null,
+ "viewRule": "@request.auth.id != '' && recordRef = @request.auth.id && collectionRef = @request.auth.collectionId"
+ },
+ {
+ "createRule": null,
+ "deleteRule": "@request.auth.id != '' && recordRef = @request.auth.id && collectionRef = @request.auth.collectionId",
+ "fields": [
+ {
+ "autogeneratePattern": "[a-z0-9]{15}",
+ "hidden": false,
+ "id": "text3208210256",
+ "max": 15,
+ "min": 15,
+ "name": "id",
+ "pattern": "^[a-z0-9]+$",
+ "presentable": false,
+ "primaryKey": true,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text455797646",
+ "max": 0,
+ "min": 0,
+ "name": "collectionRef",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text127846527",
+ "max": 0,
+ "min": 0,
+ "name": "recordRef",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text4228609354",
+ "max": 0,
+ "min": 0,
+ "name": "fingerprint",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "hidden": false,
+ "id": "autodate2990389176",
+ "name": "created",
+ "onCreate": true,
+ "onUpdate": false,
+ "presentable": false,
+ "system": true,
+ "type": "autodate"
+ },
+ {
+ "hidden": false,
+ "id": "autodate3332085495",
+ "name": "updated",
+ "onCreate": true,
+ "onUpdate": true,
+ "presentable": false,
+ "system": true,
+ "type": "autodate"
+ }
+ ],
+ "id": "pbc_4275539003",
+ "indexes": [
+ "CREATE UNIQUE INDEX ` + "`" + `idx_authOrigins_unique_pairs` + "`" + ` ON ` + "`" + `_authOrigins` + "`" + ` (collectionRef, recordRef, fingerprint)"
+ ],
+ "listRule": "@request.auth.id != '' && recordRef = @request.auth.id && collectionRef = @request.auth.collectionId",
+ "name": "_authOrigins",
+ "system": true,
+ "type": "base",
+ "updateRule": null,
+ "viewRule": "@request.auth.id != '' && recordRef = @request.auth.id && collectionRef = @request.auth.collectionId"
+ },
+ {
+ "authAlert": {
+ "emailTemplate": {
+ "body": "Hello,
\nWe noticed a login to your {APP_NAME} account from a new location:
\n{ALERT_INFO}
\nIf this wasn't you, you should immediately change your {APP_NAME} account password to revoke access from all other locations.
\nIf this was you, you may disregard this email.
\n\n Thanks, \n {APP_NAME} team\n
",
+ "subject": "Login from a new location"
+ },
+ "enabled": true
+ },
+ "authRule": "",
+ "authToken": {
+ "duration": 86400
+ },
+ "confirmEmailChangeTemplate": {
+ "body": "Hello,
\nClick on the button below to confirm your new email address.
\n\n Confirm new email \n
\nIf you didn't ask to change your email address, you can ignore this email.
\n\n Thanks, \n {APP_NAME} team\n
",
+ "subject": "Confirm your {APP_NAME} new email address"
+ },
+ "createRule": null,
+ "deleteRule": null,
+ "emailChangeToken": {
+ "duration": 1800
+ },
+ "fields": [
+ {
+ "autogeneratePattern": "[a-z0-9]{15}",
+ "hidden": false,
+ "id": "text3208210256",
+ "max": 15,
+ "min": 15,
+ "name": "id",
+ "pattern": "^[a-z0-9]+$",
+ "presentable": false,
+ "primaryKey": true,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "cost": 0,
+ "hidden": true,
+ "id": "password901924565",
+ "max": 0,
+ "min": 8,
+ "name": "password",
+ "pattern": "",
+ "presentable": false,
+ "required": true,
+ "system": true,
+ "type": "password"
+ },
+ {
+ "autogeneratePattern": "[a-zA-Z0-9]{50}",
+ "hidden": true,
+ "id": "text2504183744",
+ "max": 60,
+ "min": 30,
+ "name": "tokenKey",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "exceptDomains": null,
+ "hidden": false,
+ "id": "email3885137012",
+ "name": "email",
+ "onlyDomains": null,
+ "presentable": false,
+ "required": true,
+ "system": true,
+ "type": "email"
+ },
+ {
+ "hidden": false,
+ "id": "bool1547992806",
+ "name": "emailVisibility",
+ "presentable": false,
+ "required": false,
+ "system": true,
+ "type": "bool"
+ },
+ {
+ "hidden": false,
+ "id": "bool256245529",
+ "name": "verified",
+ "presentable": false,
+ "required": false,
+ "system": true,
+ "type": "bool"
+ },
+ {
+ "hidden": false,
+ "id": "autodate2990389176",
+ "name": "created",
+ "onCreate": true,
+ "onUpdate": false,
+ "presentable": false,
+ "system": true,
+ "type": "autodate"
+ },
+ {
+ "hidden": false,
+ "id": "autodate3332085495",
+ "name": "updated",
+ "onCreate": true,
+ "onUpdate": true,
+ "presentable": false,
+ "system": true,
+ "type": "autodate"
+ }
+ ],
+ "fileToken": {
+ "duration": 180
+ },
+ "id": "pbc_3142635823",
+ "indexes": [
+ "CREATE UNIQUE INDEX ` + "`" + `idx_tokenKey_pbc_3142635823` + "`" + ` ON ` + "`" + `_superusers` + "`" + ` (` + "`" + `tokenKey` + "`" + `)",
+ "CREATE UNIQUE INDEX ` + "`" + `idx_email_pbc_3142635823` + "`" + ` ON ` + "`" + `_superusers` + "`" + ` (` + "`" + `email` + "`" + `) WHERE ` + "`" + `email` + "`" + ` != ''"
+ ],
+ "listRule": null,
+ "manageRule": null,
+ "mfa": {
+ "duration": 1800,
+ "enabled": false,
+ "rule": ""
+ },
+ "name": "_superusers",
+ "oauth2": {
+ "enabled": false,
+ "mappedFields": {
+ "avatarURL": "",
+ "id": "",
+ "name": "",
+ "username": ""
+ }
+ },
+ "otp": {
+ "duration": 180,
+ "emailTemplate": {
+ "body": "Hello,
\nYour one-time password is: {OTP}
\nIf you didn't ask for the one-time password, you can ignore this email.
\n\n Thanks, \n {APP_NAME} team\n
",
+ "subject": "OTP for {APP_NAME}"
+ },
+ "enabled": false,
+ "length": 8
+ },
+ "passwordAuth": {
+ "enabled": true,
+ "identityFields": [
+ "email"
+ ]
+ },
+ "passwordResetToken": {
+ "duration": 1800
+ },
+ "resetPasswordTemplate": {
+ "body": "Hello,
\nClick on the button below to reset your password.
\n\n Reset password \n
\nIf you didn't ask to reset your password, you can ignore this email.
\n\n Thanks, \n {APP_NAME} team\n
",
+ "subject": "Reset your {APP_NAME} password"
+ },
+ "system": true,
+ "type": "auth",
+ "updateRule": null,
+ "verificationTemplate": {
+ "body": "Hello,
\nThank you for joining us at {APP_NAME}.
\nClick on the button below to verify your email address.
\n\n Verify \n
\n\n Thanks, \n {APP_NAME} team\n
",
+ "subject": "Verify your {APP_NAME} email"
+ },
+ "verificationToken": {
+ "duration": 259200
+ },
+ "viewRule": null
+ },
+ {
+ "authAlert": {
+ "emailTemplate": {
+ "body": "Hello,
\nWe noticed a login to your {APP_NAME} account from a new location:
\n{ALERT_INFO}
\nIf this wasn't you, you should immediately change your {APP_NAME} account password to revoke access from all other locations.
\nIf this was you, you may disregard this email.
\n\n Thanks, \n {APP_NAME} team\n
",
+ "subject": "Login from a new location"
+ },
+ "enabled": true
+ },
+ "authRule": "",
+ "authToken": {
+ "duration": 604800
+ },
+ "confirmEmailChangeTemplate": {
+ "body": "Hello,
\nClick on the button below to confirm your new email address.
\n\n Confirm new email \n
\nIf you didn't ask to change your email address, you can ignore this email.
\n\n Thanks, \n {APP_NAME} team\n
",
+ "subject": "Confirm your {APP_NAME} new email address"
+ },
+ "createRule": "",
+ "deleteRule": "id = @request.auth.id",
+ "emailChangeToken": {
+ "duration": 1800
+ },
+ "fields": [
+ {
+ "autogeneratePattern": "[a-z0-9]{15}",
+ "hidden": false,
+ "id": "text3208210256",
+ "max": 15,
+ "min": 15,
+ "name": "id",
+ "pattern": "^[a-z0-9]+$",
+ "presentable": false,
+ "primaryKey": true,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "cost": 0,
+ "hidden": true,
+ "id": "password901924565",
+ "max": 0,
+ "min": 8,
+ "name": "password",
+ "pattern": "",
+ "presentable": false,
+ "required": true,
+ "system": true,
+ "type": "password"
+ },
+ {
+ "autogeneratePattern": "[a-zA-Z0-9]{50}",
+ "hidden": true,
+ "id": "text2504183744",
+ "max": 60,
+ "min": 30,
+ "name": "tokenKey",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "exceptDomains": null,
+ "hidden": false,
+ "id": "email3885137012",
+ "name": "email",
+ "onlyDomains": null,
+ "presentable": false,
+ "required": true,
+ "system": true,
+ "type": "email"
+ },
+ {
+ "hidden": false,
+ "id": "bool1547992806",
+ "name": "emailVisibility",
+ "presentable": false,
+ "required": false,
+ "system": true,
+ "type": "bool"
+ },
+ {
+ "hidden": false,
+ "id": "bool256245529",
+ "name": "verified",
+ "presentable": false,
+ "required": false,
+ "system": true,
+ "type": "bool"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text1579384326",
+ "max": 255,
+ "min": 0,
+ "name": "nickname",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": false,
+ "system": false,
+ "type": "text"
+ },
+ {
+ "hidden": false,
+ "id": "file376926767",
+ "maxSelect": 1,
+ "maxSize": 0,
+ "mimeTypes": [
+ "image/jpeg",
+ "image/png",
+ "image/svg+xml",
+ "image/gif",
+ "image/webp"
+ ],
+ "name": "avatar",
+ "presentable": false,
+ "protected": false,
+ "required": false,
+ "system": false,
+ "thumbs": null,
+ "type": "file"
+ },
+ {
+ "hidden": false,
+ "id": "date2655906744",
+ "max": "",
+ "min": "",
+ "name": "passwordChangedAt",
+ "presentable": false,
+ "required": false,
+ "system": false,
+ "type": "date"
+ },
+ {
+ "hidden": false,
+ "id": "autodate2990389176",
+ "name": "created",
+ "onCreate": true,
+ "onUpdate": false,
+ "presentable": false,
+ "system": false,
+ "type": "autodate"
+ },
+ {
+ "hidden": false,
+ "id": "autodate3332085495",
+ "name": "updated",
+ "onCreate": true,
+ "onUpdate": true,
+ "presentable": false,
+ "system": false,
+ "type": "autodate"
+ }
+ ],
+ "fileToken": {
+ "duration": 180
+ },
+ "id": "_pb_users_auth_",
+ "indexes": [
+ "CREATE UNIQUE INDEX ` + "`" + `idx_tokenKey__pb_users_auth_` + "`" + ` ON ` + "`" + `fh_users` + "`" + ` (` + "`" + `tokenKey` + "`" + `)",
+ "CREATE UNIQUE INDEX ` + "`" + `idx_email__pb_users_auth_` + "`" + ` ON ` + "`" + `fh_users` + "`" + ` (` + "`" + `email` + "`" + `) WHERE ` + "`" + `email` + "`" + ` != ''"
+ ],
+ "listRule": "id = @request.auth.id",
+ "manageRule": null,
+ "mfa": {
+ "duration": 1800,
+ "enabled": false,
+ "rule": ""
+ },
+ "name": "fh_users",
+ "oauth2": {
+ "enabled": false,
+ "mappedFields": {
+ "avatarURL": "avatar",
+ "id": "",
+ "name": "",
+ "username": ""
+ }
+ },
+ "otp": {
+ "duration": 180,
+ "emailTemplate": {
+ "body": "Hello,
\nYour one-time password is: {OTP}
\nIf you didn't ask for the one-time password, you can ignore this email.
\n\n Thanks, \n {APP_NAME} team\n
",
+ "subject": "OTP for {APP_NAME}"
+ },
+ "enabled": false,
+ "length": 8
+ },
+ "passwordAuth": {
+ "enabled": true,
+ "identityFields": [
+ "email"
+ ]
+ },
+ "passwordResetToken": {
+ "duration": 1800
+ },
+ "resetPasswordTemplate": {
+ "body": "Hello,
\nClick on the button below to reset your password.
\n\n Reset password \n
\nIf you didn't ask to reset your password, you can ignore this email.
\n\n Thanks, \n {APP_NAME} team\n
",
+ "subject": "Reset your {APP_NAME} password"
+ },
+ "system": false,
+ "type": "auth",
+ "updateRule": "id = @request.auth.id",
+ "verificationTemplate": {
+ "body": "Hello,
\nThank you for joining us at {APP_NAME}.
\nClick on the button below to verify your email address.
\n\n Verify \n
\n\n Thanks, \n {APP_NAME} team\n
",
+ "subject": "Verify your {APP_NAME} email"
+ },
+ "verificationToken": {
+ "duration": 259200
+ },
+ "viewRule": "id = @request.auth.id"
+ },
+ {
+ "createRule": "",
+ "deleteRule": "",
+ "fields": [
+ {
+ "autogeneratePattern": "[a-z0-9]{15}",
+ "hidden": false,
+ "id": "text3208210256",
+ "max": 15,
+ "min": 15,
+ "name": "id",
+ "pattern": "^[a-z0-9]+$",
+ "presentable": false,
+ "primaryKey": true,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text1579384326",
+ "max": 0,
+ "min": 0,
+ "name": "name",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": false,
+ "type": "text"
+ },
+ {
+ "hidden": false,
+ "id": "select2604291971",
+ "maxSelect": 1,
+ "name": "proxyType",
+ "presentable": false,
+ "required": true,
+ "system": false,
+ "type": "select",
+ "values": [
+ "tcp",
+ "udp",
+ "http",
+ "https"
+ ]
+ },
+ {
+ "cascadeDelete": false,
+ "collectionId": "pbc_3738798621",
+ "hidden": false,
+ "id": "relation2665642495",
+ "maxSelect": 1,
+ "minSelect": 0,
+ "name": "serverId",
+ "presentable": false,
+ "required": true,
+ "system": false,
+ "type": "relation"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text2127384167",
+ "max": 0,
+ "min": 0,
+ "name": "localIP",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": false,
+ "system": false,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text2990991660",
+ "max": 0,
+ "min": 0,
+ "name": "localPort",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": false,
+ "system": false,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text844425818",
+ "max": 0,
+ "min": 0,
+ "name": "remotePort",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": false,
+ "system": false,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text3252000302",
+ "max": 0,
+ "min": 0,
+ "name": "subdomain",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": false,
+ "system": false,
+ "type": "text"
+ },
+ {
+ "hidden": false,
+ "id": "json2388178310",
+ "maxSize": 0,
+ "name": "customDomains",
+ "presentable": false,
+ "required": false,
+ "system": false,
+ "type": "json"
+ },
+ {
+ "hidden": false,
+ "id": "json1722491182",
+ "maxSize": 0,
+ "name": "transport",
+ "presentable": false,
+ "required": false,
+ "system": false,
+ "type": "json"
+ },
+ {
+ "hidden": false,
+ "id": "select2063623452",
+ "maxSelect": 1,
+ "name": "status",
+ "presentable": false,
+ "required": true,
+ "system": false,
+ "type": "select",
+ "values": [
+ "enabled",
+ "disabled"
+ ]
+ },
+ {
+ "hidden": false,
+ "id": "select1774220776",
+ "maxSelect": 1,
+ "name": "bootStatus",
+ "presentable": false,
+ "required": true,
+ "system": false,
+ "type": "select",
+ "values": [
+ "online",
+ "offline"
+ ]
+ },
+ {
+ "hidden": false,
+ "id": "autodate2990389176",
+ "name": "created",
+ "onCreate": true,
+ "onUpdate": false,
+ "presentable": false,
+ "system": false,
+ "type": "autodate"
+ },
+ {
+ "hidden": false,
+ "id": "autodate3332085495",
+ "name": "updated",
+ "onCreate": true,
+ "onUpdate": true,
+ "presentable": false,
+ "system": false,
+ "type": "autodate"
+ }
+ ],
+ "id": "pbc_2245327697",
+ "indexes": [
+ "CREATE INDEX ` + "`" + `idx_gt75NqoejG` + "`" + ` ON ` + "`" + `fh_proxies` + "`" + ` (` + "`" + `serverId` + "`" + `)",
+ "CREATE INDEX ` + "`" + `idx_Xk5mWLcPl1` + "`" + ` ON ` + "`" + `fh_proxies` + "`" + ` (` + "`" + `proxyType` + "`" + `)",
+ "CREATE INDEX ` + "`" + `idx_4azMuuySpx` + "`" + ` ON ` + "`" + `fh_proxies` + "`" + ` (` + "`" + `status` + "`" + `)"
+ ],
+ "listRule": "",
+ "name": "fh_proxies",
+ "system": false,
+ "type": "base",
+ "updateRule": "",
+ "viewRule": ""
+ },
+ {
+ "createRule": "",
+ "deleteRule": "",
+ "fields": [
+ {
+ "autogeneratePattern": "[a-z0-9]{15}",
+ "hidden": false,
+ "id": "text3208210256",
+ "max": 15,
+ "min": 15,
+ "name": "id",
+ "pattern": "^[a-z0-9]+$",
+ "presentable": false,
+ "primaryKey": true,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text3584233446",
+ "max": 0,
+ "min": 0,
+ "name": "serverName",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": false,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text3642418133",
+ "max": 0,
+ "min": 0,
+ "name": "serverAddr",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": false,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text3356568620",
+ "max": 0,
+ "min": 0,
+ "name": "serverPort",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": false,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text1843675174",
+ "max": 0,
+ "min": 0,
+ "name": "description",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": false,
+ "system": false,
+ "type": "text"
+ },
+ {
+ "hidden": false,
+ "id": "json4175343705",
+ "maxSize": 0,
+ "name": "auth",
+ "presentable": false,
+ "required": false,
+ "system": false,
+ "type": "json"
+ },
+ {
+ "hidden": false,
+ "id": "json1722491182",
+ "maxSize": 0,
+ "name": "transport",
+ "presentable": false,
+ "required": false,
+ "system": false,
+ "type": "json"
+ },
+ {
+ "hidden": false,
+ "id": "json26939202",
+ "maxSize": 0,
+ "name": "metadatas",
+ "presentable": false,
+ "required": false,
+ "system": false,
+ "type": "json"
+ },
+ {
+ "hidden": false,
+ "id": "json2403297477",
+ "maxSize": 0,
+ "name": "log",
+ "presentable": false,
+ "required": false,
+ "system": false,
+ "type": "json"
+ },
+ {
+ "autogeneratePattern": "built-in",
+ "hidden": false,
+ "id": "text4042142746",
+ "max": 0,
+ "min": 0,
+ "name": "serverVersion",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": false,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "stopped",
+ "hidden": false,
+ "id": "text1774220776",
+ "max": 0,
+ "min": 0,
+ "name": "bootStatus",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": true,
+ "system": false,
+ "type": "text"
+ },
+ {
+ "hidden": false,
+ "id": "bool116529338",
+ "name": "autoConnection",
+ "presentable": false,
+ "required": false,
+ "system": false,
+ "type": "bool"
+ },
+ {
+ "hidden": false,
+ "id": "json1689683938",
+ "maxSize": 0,
+ "name": "geoLocation",
+ "presentable": false,
+ "required": false,
+ "system": false,
+ "type": "json"
+ },
+ {
+ "hidden": false,
+ "id": "json948844010",
+ "maxSize": 0,
+ "name": "networkStatus",
+ "presentable": false,
+ "required": false,
+ "system": false,
+ "type": "json"
+ },
+ {
+ "hidden": false,
+ "id": "autodate2990389176",
+ "name": "created",
+ "onCreate": true,
+ "onUpdate": false,
+ "presentable": false,
+ "system": false,
+ "type": "autodate"
+ },
+ {
+ "hidden": false,
+ "id": "autodate3332085495",
+ "name": "updated",
+ "onCreate": true,
+ "onUpdate": true,
+ "presentable": false,
+ "system": false,
+ "type": "autodate"
+ }
+ ],
+ "id": "pbc_3738798621",
+ "indexes": [
+ "CREATE INDEX ` + "`" + `idx_wNtroMytle` + "`" + ` ON ` + "`" + `fh_servers` + "`" + ` (` + "`" + `bootStatus` + "`" + `)"
+ ],
+ "listRule": "",
+ "name": "fh_servers",
+ "system": false,
+ "type": "base",
+ "updateRule": "",
+ "viewRule": ""
+ },
+ {
+ "createRule": null,
+ "deleteRule": null,
+ "fields": [
+ {
+ "autogeneratePattern": "[a-z0-9]{15}",
+ "hidden": false,
+ "id": "text3208210256",
+ "max": 15,
+ "min": 15,
+ "name": "id",
+ "pattern": "^[a-z0-9]+$",
+ "presentable": false,
+ "primaryKey": true,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text4013122050",
+ "max": 0,
+ "min": 0,
+ "name": "version_name",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": false,
+ "system": false,
+ "type": "text"
+ },
+ {
+ "autogeneratePattern": "",
+ "hidden": false,
+ "id": "text3125057291",
+ "max": 0,
+ "min": 0,
+ "name": "version_path",
+ "pattern": "",
+ "presentable": false,
+ "primaryKey": false,
+ "required": false,
+ "system": false,
+ "type": "text"
+ },
+ {
+ "hidden": false,
+ "id": "autodate2990389176",
+ "name": "created",
+ "onCreate": true,
+ "onUpdate": false,
+ "presentable": false,
+ "system": false,
+ "type": "autodate"
+ },
+ {
+ "hidden": false,
+ "id": "autodate3332085495",
+ "name": "updated",
+ "onCreate": true,
+ "onUpdate": true,
+ "presentable": false,
+ "system": false,
+ "type": "autodate"
+ }
+ ],
+ "id": "pbc_2282676922",
+ "indexes": [],
+ "listRule": null,
+ "name": "fh_version",
+ "system": false,
+ "type": "base",
+ "updateRule": null,
+ "viewRule": null
+ },
+ {
+ "createRule": "",
+ "deleteRule": "",
+ "fields": [
+ {
+ "autogeneratePattern": "[a-z0-9]{15}",
+ "hidden": false,
+ "id": "text3208210256",
+ "max": 15,
+ "min": 15,
+ "name": "id",
+ "pattern": "^[a-z0-9]+$",
+ "presentable": false,
+ "primaryKey": true,
+ "required": true,
+ "system": true,
+ "type": "text"
+ },
+ {
+ "hidden": false,
+ "id": "bool2612241710",
+ "name": "initialized",
+ "presentable": false,
+ "required": false,
+ "system": false,
+ "type": "bool"
+ },
+ {
+ "hidden": false,
+ "id": "autodate2990389176",
+ "name": "created",
+ "onCreate": true,
+ "onUpdate": false,
+ "presentable": false,
+ "system": false,
+ "type": "autodate"
+ },
+ {
+ "hidden": false,
+ "id": "json3458807370",
+ "maxSize": 0,
+ "name": "general",
+ "presentable": false,
+ "required": false,
+ "system": false,
+ "type": "json"
+ },
+ {
+ "hidden": false,
+ "id": "autodate3332085495",
+ "name": "updated",
+ "onCreate": true,
+ "onUpdate": true,
+ "presentable": false,
+ "system": false,
+ "type": "autodate"
+ }
+ ],
+ "id": "pbc_3433790316",
+ "indexes": [],
+ "listRule": "",
+ "name": "fh_settings",
+ "system": false,
+ "type": "base",
+ "updateRule": "",
+ "viewRule": ""
+ }
+ ]`
+
+ return app.ImportCollectionsByMarshaledJSON([]byte(jsonData), false)
+ }, func(app core.App) error {
+ return nil
+ })
+}
diff --git a/pkg/buildinfo/buildinfo.go b/pkg/buildinfo/buildinfo.go
new file mode 100644
index 0000000..1ce0284
--- /dev/null
+++ b/pkg/buildinfo/buildinfo.go
@@ -0,0 +1,5 @@
+package buildinfo
+
+// AppVersion is the single source of truth for the application version.
+// Update this value to release a new version.
+const AppVersion = "1.0.0"
diff --git a/pkg/response/err.go b/pkg/response/err.go
new file mode 100644
index 0000000..21c1982
--- /dev/null
+++ b/pkg/response/err.go
@@ -0,0 +1,13 @@
+package response
+
+type ErrorResponse struct {
+ Error string `json:"error"`
+}
+
+func InternalServerError() ErrorResponse {
+ return ErrorResponse{Error: "Internal Server Error"}
+}
+
+func Error(err error) ErrorResponse {
+ return ErrorResponse{Error: err.Error()}
+}
diff --git a/pkg/types/valuer.go b/pkg/types/valuer.go
new file mode 100644
index 0000000..c18b374
--- /dev/null
+++ b/pkg/types/valuer.go
@@ -0,0 +1,165 @@
+package types
+
+import (
+ "database/sql/driver"
+ "encoding/json"
+ "errors"
+ "fmt"
+)
+
+// NullableInt is a custom type for nullable int that can handle empty strings
+type NullableInt struct {
+ Int int
+ Valid bool // Valid is true if Int is not NULL
+}
+
+// Scan implements sql.Scanner interface
+func (n *NullableInt) Scan(value interface{}) error {
+ if value == nil {
+ n.Valid = false
+ n.Int = 0
+ return nil
+ }
+
+ switch v := value.(type) {
+ case int64:
+ n.Int = int(v)
+ n.Valid = true
+ return nil
+ case int:
+ n.Int = v
+ n.Valid = true
+ return nil
+ case string:
+ if v == "" {
+ n.Valid = false
+ n.Int = 0
+ return nil
+ }
+ // Try to parse string to int
+ var i int
+ _, err := fmt.Sscanf(v, "%d", &i)
+ if err != nil {
+ n.Valid = false
+ n.Int = 0
+ return nil
+ }
+ n.Int = i
+ n.Valid = true
+ return nil
+ default:
+ n.Valid = false
+ n.Int = 0
+ return nil
+ }
+}
+
+// Value implements driver.Valuer interface
+func (n NullableInt) Value() (driver.Value, error) {
+ if !n.Valid {
+ return nil, nil
+ }
+ return int64(n.Int), nil
+}
+
+// MarshalJSON implements json.Marshaler interface
+func (n NullableInt) MarshalJSON() ([]byte, error) {
+ if !n.Valid {
+ return []byte("null"), nil
+ }
+ return json.Marshal(n.Int)
+}
+
+// UnmarshalJSON implements json.Unmarshaler interface
+func (n *NullableInt) UnmarshalJSON(data []byte) error {
+ if string(data) == "null" || string(data) == "\"\"" {
+ n.Valid = false
+ n.Int = 0
+ return nil
+ }
+ var i int
+ if err := json.Unmarshal(data, &i); err != nil {
+ n.Valid = false
+ n.Int = 0
+ return nil
+ }
+ n.Int = i
+ n.Valid = true
+ return nil
+}
+
+// JSONStringArray is a custom type for []string that can be scanned from JSON
+type JSONStringArray []string
+
+// Scan implements sql.Scanner interface
+func (j *JSONStringArray) Scan(value interface{}) error {
+ if value == nil {
+ *j = []string{}
+ return nil
+ }
+
+ var bytes []byte
+ switch v := value.(type) {
+ case []byte:
+ bytes = v
+ case string:
+ bytes = []byte(v)
+ default:
+ return errors.New("type assertion to []byte or string failed")
+ }
+
+ var arr []string
+ if err := json.Unmarshal(bytes, &arr); err != nil {
+ return err
+ }
+
+ *j = arr
+ return nil
+}
+
+// Value implements driver.Valuer interface
+func (j JSONStringArray) Value() (driver.Value, error) {
+ if j == nil {
+ return "[]", nil
+ }
+ bytes, err := json.Marshal(j)
+ return string(bytes), err
+}
+
+// JSONMap is a custom type for map[string]interface{} that can be scanned from JSON
+type JSONMap map[string]interface{}
+
+// Scan implements sql.Scanner interface
+func (j *JSONMap) Scan(value interface{}) error {
+ if value == nil {
+ *j = map[string]interface{}{}
+ return nil
+ }
+
+ var bytes []byte
+ switch v := value.(type) {
+ case []byte:
+ bytes = v
+ case string:
+ bytes = []byte(v)
+ default:
+ return errors.New("type assertion to []byte or string failed")
+ }
+
+ var m map[string]interface{}
+ if err := json.Unmarshal(bytes, &m); err != nil {
+ return err
+ }
+
+ *j = m
+ return nil
+}
+
+// Value implements driver.Valuer interface
+func (j JSONMap) Value() (driver.Value, error) {
+ if j == nil {
+ return "{}", nil
+ }
+ bytes, err := json.Marshal(j)
+ return string(bytes), err
+}
diff --git a/pkg/utils/file.go b/pkg/utils/file.go
new file mode 100644
index 0000000..f94add0
--- /dev/null
+++ b/pkg/utils/file.go
@@ -0,0 +1,61 @@
+package utils
+
+import "os"
+
+// ReadLastNLines reads the last n lines from a file.
+func ReadLastNLines(file *os.File, n int) []string {
+ fi, err := file.Stat()
+ if err != nil || fi.Size() == 0 {
+ return nil
+ }
+
+ buf := make([]byte, 0, 4096)
+ pos := fi.Size()
+
+ for pos > 0 {
+ chunkSize := int64(4096)
+ if chunkSize > pos {
+ chunkSize = pos
+ }
+ pos -= chunkSize
+
+ chunk := make([]byte, chunkSize)
+ file.ReadAt(chunk, pos)
+ buf = append(chunk, buf...)
+
+ // Count newlines; stop reading more chunks once we have enough
+ count := 0
+ for _, b := range buf {
+ if b == '\n' {
+ count++
+ }
+ }
+ if count > n+1 {
+ break
+ }
+ }
+
+ // Parse lines from buf
+ var lines []string
+ start := 0
+ for i, b := range buf {
+ if b == '\n' {
+ line := string(buf[start:i])
+ if line != "" {
+ lines = append(lines, line)
+ }
+ start = i + 1
+ }
+ }
+ if start < len(buf) {
+ line := string(buf[start:])
+ if line != "" {
+ lines = append(lines, line)
+ }
+ }
+
+ if len(lines) > n {
+ lines = lines[len(lines)-n:]
+ }
+ return lines
+}
diff --git a/pkg/utils/format.go b/pkg/utils/format.go
new file mode 100644
index 0000000..e3d2aa2
--- /dev/null
+++ b/pkg/utils/format.go
@@ -0,0 +1,18 @@
+package utils
+
+import "fmt"
+
+// FormatBytes formats bytes to human readable format
+func FormatBytes(bytes uint64) string {
+ const unit = 1024
+ if bytes < unit {
+ return fmt.Sprintf("%d B", bytes)
+ }
+ div, exp := uint64(unit), 0
+ for n := bytes / unit; n >= unit; n /= unit {
+ div *= unit
+ exp++
+ }
+ units := []string{"KB", "MB", "GB", "TB", "PB", "EB"}
+ return fmt.Sprintf("%.2f %s", float64(bytes)/float64(div), units[exp])
+}
diff --git a/pkg/utils/network.go b/pkg/utils/network.go
new file mode 100644
index 0000000..966b942
--- /dev/null
+++ b/pkg/utils/network.go
@@ -0,0 +1,195 @@
+package utils
+
+import (
+ "encoding/json"
+ "fmt"
+ "net"
+ "net/http"
+ "strings"
+ "time"
+)
+
+// PingResult latency probe result
+type PingResult struct {
+ Latency int64 // Latency in milliseconds, -1 means unreachable
+ Reachable bool // Whether the host is reachable
+ Error string // Error message if any
+}
+
+// GeoLocation IP geolocation information
+type GeoLocation struct {
+ Country string `json:"country"` // Country name
+ CountryCode string `json:"countryCode"` // Country code (e.g., CN, US)
+ Region string `json:"region"` // Province/State/Region
+ City string `json:"city"` // City name
+ ISP string `json:"isp"` // Internet Service Provider
+ Latitude float64 `json:"lat"` // Latitude coordinate
+ Longitude float64 `json:"lon"` // Longitude coordinate
+}
+
+// PingHost tests host latency via TCP connection
+func PingHost(addr string, timeout time.Duration) PingResult {
+ if addr == "" {
+ return PingResult{
+ Latency: -1,
+ Reachable: false,
+ Error: "empty address",
+ }
+ }
+
+ // If address doesn't contain port, default to 7000
+ if !strings.Contains(addr, ":") {
+ addr = addr + ":7000"
+ }
+
+ start := time.Now()
+ conn, err := net.DialTimeout("tcp", addr, timeout)
+ elapsed := time.Since(start).Milliseconds()
+
+ if err != nil {
+ return PingResult{
+ Latency: -1,
+ Reachable: false,
+ Error: err.Error(),
+ }
+ }
+
+ conn.Close()
+ return PingResult{
+ Latency: elapsed,
+ Reachable: true,
+ Error: "",
+ }
+}
+
+// GetGeoLocation retrieves IP geolocation information (using free public API)
+func GetGeoLocation(addr string) (*GeoLocation, error) {
+ // Resolve IP address (resolve domain name if needed)
+ ip, err := resolveAddr(addr)
+ if err != nil {
+ return nil, fmt.Errorf("resolve address failed: %w", err)
+ }
+
+ // Return directly for private IP addresses
+ if isPrivateIP(ip) {
+ return &GeoLocation{
+ Country: "Private Network",
+ CountryCode: "LAN",
+ Region: "Local",
+ City: "Local",
+ ISP: "Private",
+ }, nil
+ }
+
+ // Query using ip-api.com (free, no key required, 45 requests/min)
+ return getGeoLocationFromAPI(ip)
+}
+
+// resolveAddr resolves address and extracts IP
+func resolveAddr(addr string) (string, error) {
+ // Remove port number
+ host := addr
+ if idx := strings.LastIndex(addr, ":"); idx != -1 {
+ host = addr[:idx]
+ }
+
+ // Return directly if already an IP address
+ if net.ParseIP(host) != nil {
+ return host, nil
+ }
+
+ // DNS resolution
+ ips, err := net.LookupIP(host)
+ if err != nil {
+ return "", err
+ }
+
+ if len(ips) == 0 {
+ return "", fmt.Errorf("no IP found for %s", host)
+ }
+
+ // Prefer IPv4 address
+ for _, ip := range ips {
+ if ipv4 := ip.To4(); ipv4 != nil {
+ return ipv4.String(), nil
+ }
+ }
+
+ // Return first IP if no IPv4 found
+ return ips[0].String(), nil
+}
+
+// isPrivateIP checks if an IP is private
+func isPrivateIP(ip string) bool {
+ parsedIP := net.ParseIP(ip)
+ if parsedIP == nil {
+ return false
+ }
+
+ // Private IP ranges
+ privateRanges := []string{
+ "10.0.0.0/8",
+ "172.16.0.0/12",
+ "192.168.0.0/16",
+ "127.0.0.0/8",
+ }
+
+ for _, cidr := range privateRanges {
+ _, subnet, _ := net.ParseCIDR(cidr)
+ if subnet.Contains(parsedIP) {
+ return true
+ }
+ }
+
+ return false
+}
+
+// getGeoLocationFromAPI retrieves geolocation information from ip-api.com
+func getGeoLocationFromAPI(ip string) (*GeoLocation, error) {
+ // ip-api.com API endpoint
+ url := fmt.Sprintf("http://ip-api.com/json/%s?fields=status,country,countryCode,region,regionName,city,isp,lat,lon", ip)
+
+ client := &http.Client{
+ Timeout: 5 * time.Second,
+ }
+
+ resp, err := client.Get(url)
+ if err != nil {
+ return nil, fmt.Errorf("API request failed: %w", err)
+ }
+ defer resp.Body.Close()
+
+ if resp.StatusCode != http.StatusOK {
+ return nil, fmt.Errorf("API returned status: %d", resp.StatusCode)
+ }
+
+ var apiResp struct {
+ Status string `json:"status"`
+ Country string `json:"country"`
+ CountryCode string `json:"countryCode"`
+ Region string `json:"region"`
+ RegionName string `json:"regionName"`
+ City string `json:"city"`
+ ISP string `json:"isp"`
+ Lat float64 `json:"lat"`
+ Lon float64 `json:"lon"`
+ }
+
+ if err := json.NewDecoder(resp.Body).Decode(&apiResp); err != nil {
+ return nil, fmt.Errorf("parse API response failed: %w", err)
+ }
+
+ if apiResp.Status != "success" {
+ return nil, fmt.Errorf("API query failed for IP: %s", ip)
+ }
+
+ return &GeoLocation{
+ Country: apiResp.Country,
+ CountryCode: apiResp.CountryCode,
+ Region: apiResp.RegionName, // Use RegionName (e.g., "Guangdong") instead of Region (e.g., "GD")
+ City: apiResp.City,
+ ISP: apiResp.ISP,
+ Latitude: apiResp.Lat,
+ Longitude: apiResp.Lon,
+ }, nil
+}
diff --git a/pkg/utils/time.go b/pkg/utils/time.go
new file mode 100644
index 0000000..956fbf3
--- /dev/null
+++ b/pkg/utils/time.go
@@ -0,0 +1,15 @@
+package utils
+
+import "time"
+
+// RoundDownTo10Minutes rounds down a time to the nearest 10-minute mark
+// Example: 10:07:30 -> 10:00:00, 10:15:45 -> 10:10:00, 10:20:00 -> 10:20:00
+func RoundDownTo10Minutes(t time.Time) time.Time {
+ minutes := t.Minute()
+ roundedMinutes := (minutes / 10) * 10
+ return time.Date(
+ t.Year(), t.Month(), t.Day(),
+ t.Hour(), roundedMinutes, 0, 0,
+ t.Location(),
+ )
+}
diff --git a/site/.env.development b/site/.env.development
new file mode 100644
index 0000000..b19ed03
--- /dev/null
+++ b/site/.env.development
@@ -0,0 +1 @@
+VITE_POCKETBASE_URL=/
diff --git a/site/.env.production b/site/.env.production
new file mode 100644
index 0000000..b19ed03
--- /dev/null
+++ b/site/.env.production
@@ -0,0 +1 @@
+VITE_POCKETBASE_URL=/
diff --git a/site/.prettierignore b/site/.prettierignore
new file mode 100644
index 0000000..c4cbfff
--- /dev/null
+++ b/site/.prettierignore
@@ -0,0 +1,3 @@
+dist
+node_modules
+pnpm-lock.yaml
diff --git a/site/.prettierrc b/site/.prettierrc
new file mode 100644
index 0000000..1773b14
--- /dev/null
+++ b/site/.prettierrc
@@ -0,0 +1,8 @@
+{
+ "semi": true,
+ "singleQuote": false,
+ "tabWidth": 2,
+ "trailingComma": "es5",
+ "printWidth": 100,
+ "plugins": ["prettier-plugin-tailwindcss"]
+}
diff --git a/site/README.md b/site/README.md
new file mode 100644
index 0000000..d2e7761
--- /dev/null
+++ b/site/README.md
@@ -0,0 +1,73 @@
+# React + TypeScript + Vite
+
+This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
+
+Currently, two official plugins are available:
+
+- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
+- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
+
+## React Compiler
+
+The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
+
+## Expanding the ESLint configuration
+
+If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
+
+```js
+export default defineConfig([
+ globalIgnores(['dist']),
+ {
+ files: ['**/*.{ts,tsx}'],
+ extends: [
+ // Other configs...
+
+ // Remove tseslint.configs.recommended and replace with this
+ tseslint.configs.recommendedTypeChecked,
+ // Alternatively, use this for stricter rules
+ tseslint.configs.strictTypeChecked,
+ // Optionally, add this for stylistic rules
+ tseslint.configs.stylisticTypeChecked,
+
+ // Other configs...
+ ],
+ languageOptions: {
+ parserOptions: {
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
+ tsconfigRootDir: import.meta.dirname,
+ },
+ // other options...
+ },
+ },
+])
+```
+
+You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
+
+```js
+// eslint.config.js
+import reactX from 'eslint-plugin-react-x'
+import reactDom from 'eslint-plugin-react-dom'
+
+export default defineConfig([
+ globalIgnores(['dist']),
+ {
+ files: ['**/*.{ts,tsx}'],
+ extends: [
+ // Other configs...
+ // Enable lint rules for React
+ reactX.configs['recommended-typescript'],
+ // Enable lint rules for React DOM
+ reactDom.configs.recommended,
+ ],
+ languageOptions: {
+ parserOptions: {
+ project: ['./tsconfig.node.json', './tsconfig.app.json'],
+ tsconfigRootDir: import.meta.dirname,
+ },
+ // other options...
+ },
+ },
+])
+```
diff --git a/site/eslint.config.js b/site/eslint.config.js
new file mode 100644
index 0000000..880ccac
--- /dev/null
+++ b/site/eslint.config.js
@@ -0,0 +1,25 @@
+import js from '@eslint/js'
+import globals from 'globals'
+import reactHooks from 'eslint-plugin-react-hooks'
+import reactRefresh from 'eslint-plugin-react-refresh'
+import tseslint from 'typescript-eslint'
+import { defineConfig, globalIgnores } from 'eslint/config'
+import prettier from 'eslint-config-prettier'
+
+export default defineConfig([
+ globalIgnores(['dist']),
+ {
+ files: ['**/*.{ts,tsx}'],
+ extends: [
+ js.configs.recommended,
+ tseslint.configs.recommended,
+ reactHooks.configs.flat.recommended,
+ reactRefresh.configs.vite,
+ prettier,
+ ],
+ languageOptions: {
+ ecmaVersion: 2020,
+ globals: globals.browser,
+ },
+ },
+])
diff --git a/site/index.html b/site/index.html
new file mode 100644
index 0000000..349c9b2
--- /dev/null
+++ b/site/index.html
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+ Frpc Hub
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/site/package.json b/site/package.json
new file mode 100644
index 0000000..376264f
--- /dev/null
+++ b/site/package.json
@@ -0,0 +1,52 @@
+{
+ "name": "site",
+ "private": true,
+ "version": "0.0.0",
+ "type": "module",
+ "scripts": {
+ "dev": "vite",
+ "build": "tsc -b && vite build",
+ "lint": "eslint .",
+ "preview": "vite preview",
+ "format": "prettier --write \"src/**/*.{ts,tsx,css,json}\"",
+ "format:check": "prettier --check \"src/**/*.{ts,tsx,css,json}\""
+ },
+ "dependencies": {
+ "@iconify/react": "^6.0.2",
+ "@radix-ui/themes": "^3.2.1",
+ "@xyflow/react": "^12.10.1",
+ "framer-motion": "^12.30.0",
+ "i18next": "^25.8.4",
+ "md5": "^2.3.0",
+ "pocketbase": "^0.26.5",
+ "react": "^19.2.0",
+ "react-dom": "^19.2.0",
+ "react-i18next": "^16.5.4",
+ "react-loading-indicators": "^1.0.1",
+ "react-router-dom": "^7.11.0",
+ "recharts": "^3.7.0",
+ "sonner": "^2.0.7",
+ "zustand": "^5.0.11"
+ },
+ "devDependencies": {
+ "@eslint/js": "^9.39.1",
+ "@tailwindcss/vite": "^4.1.18",
+ "@types/md5": "^2.3.6",
+ "@types/node": "^24.10.1",
+ "@types/react": "^19.2.5",
+ "@types/react-dom": "^19.2.3",
+ "@vitejs/plugin-react": "^5.1.1",
+ "eslint": "^9.39.1",
+ "eslint-config-prettier": "^10.1.8",
+ "eslint-plugin-react-hooks": "^7.0.1",
+ "eslint-plugin-react-refresh": "^0.4.24",
+ "globals": "^16.5.0",
+ "prettier": "^3.8.1",
+ "prettier-plugin-tailwindcss": "^0.7.2",
+ "tailwindcss": "^4.1.18",
+ "terser": "^5.46.0",
+ "typescript": "~5.9.3",
+ "typescript-eslint": "^8.46.4",
+ "vite": "^7.2.4"
+ }
+}
\ No newline at end of file
diff --git a/site/pnpm-lock.yaml b/site/pnpm-lock.yaml
new file mode 100644
index 0000000..6c66262
--- /dev/null
+++ b/site/pnpm-lock.yaml
@@ -0,0 +1,4956 @@
+lockfileVersion: '9.0'
+
+settings:
+ autoInstallPeers: true
+ excludeLinksFromLockfile: false
+
+importers:
+
+ .:
+ dependencies:
+ '@iconify/react':
+ specifier: ^6.0.2
+ version: 6.0.2(react@19.2.3)
+ '@radix-ui/themes':
+ specifier: ^3.2.1
+ version: 3.2.1(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@xyflow/react':
+ specifier: ^12.10.1
+ version: 12.10.1(@types/react@19.2.7)(immer@11.1.3)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ framer-motion:
+ specifier: ^12.30.0
+ version: 12.30.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ i18next:
+ specifier: ^25.8.4
+ version: 25.8.4(typescript@5.9.3)
+ md5:
+ specifier: ^2.3.0
+ version: 2.3.0
+ pocketbase:
+ specifier: ^0.26.5
+ version: 0.26.5
+ react:
+ specifier: ^19.2.0
+ version: 19.2.3
+ react-dom:
+ specifier: ^19.2.0
+ version: 19.2.3(react@19.2.3)
+ react-i18next:
+ specifier: ^16.5.4
+ version: 16.5.4(i18next@25.8.4(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3)
+ react-loading-indicators:
+ specifier: ^1.0.1
+ version: 1.0.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ react-router-dom:
+ specifier: ^7.11.0
+ version: 7.11.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ recharts:
+ specifier: ^3.7.0
+ version: 3.7.0(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react-is@19.2.4)(react@19.2.3)(redux@5.0.1)
+ sonner:
+ specifier: ^2.0.7
+ version: 2.0.7(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ zustand:
+ specifier: ^5.0.11
+ version: 5.0.11(@types/react@19.2.7)(immer@11.1.3)(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3))
+ devDependencies:
+ '@eslint/js':
+ specifier: ^9.39.1
+ version: 9.39.2
+ '@tailwindcss/vite':
+ specifier: ^4.1.18
+ version: 4.1.18(vite@7.3.0(@types/node@24.10.4)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.46.0))
+ '@types/md5':
+ specifier: ^2.3.6
+ version: 2.3.6
+ '@types/node':
+ specifier: ^24.10.1
+ version: 24.10.4
+ '@types/react':
+ specifier: ^19.2.5
+ version: 19.2.7
+ '@types/react-dom':
+ specifier: ^19.2.3
+ version: 19.2.3(@types/react@19.2.7)
+ '@vitejs/plugin-react':
+ specifier: ^5.1.1
+ version: 5.1.2(vite@7.3.0(@types/node@24.10.4)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.46.0))
+ eslint:
+ specifier: ^9.39.1
+ version: 9.39.2(jiti@2.6.1)
+ eslint-config-prettier:
+ specifier: ^10.1.8
+ version: 10.1.8(eslint@9.39.2(jiti@2.6.1))
+ eslint-plugin-react-hooks:
+ specifier: ^7.0.1
+ version: 7.0.1(eslint@9.39.2(jiti@2.6.1))
+ eslint-plugin-react-refresh:
+ specifier: ^0.4.24
+ version: 0.4.26(eslint@9.39.2(jiti@2.6.1))
+ globals:
+ specifier: ^16.5.0
+ version: 16.5.0
+ prettier:
+ specifier: ^3.8.1
+ version: 3.8.1
+ prettier-plugin-tailwindcss:
+ specifier: ^0.7.2
+ version: 0.7.2(prettier@3.8.1)
+ tailwindcss:
+ specifier: ^4.1.18
+ version: 4.1.18
+ terser:
+ specifier: ^5.46.0
+ version: 5.46.0
+ typescript:
+ specifier: ~5.9.3
+ version: 5.9.3
+ typescript-eslint:
+ specifier: ^8.46.4
+ version: 8.52.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)
+ vite:
+ specifier: ^7.2.4
+ version: 7.3.0(@types/node@24.10.4)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.46.0)
+
+packages:
+
+ '@babel/code-frame@7.27.1':
+ resolution: {integrity: sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/compat-data@7.28.5':
+ resolution: {integrity: sha512-6uFXyCayocRbqhZOB+6XcuZbkMNimwfVGFji8CTZnCzOHVGvDqzvitu1re2AU5LROliz7eQPhB8CpAMvnx9EjA==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/core@7.28.5':
+ resolution: {integrity: sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/generator@7.28.5':
+ resolution: {integrity: sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-compilation-targets@7.27.2':
+ resolution: {integrity: sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-globals@7.28.0':
+ resolution: {integrity: sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-module-imports@7.27.1':
+ resolution: {integrity: sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-module-transforms@7.28.3':
+ resolution: {integrity: sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0
+
+ '@babel/helper-plugin-utils@7.27.1':
+ resolution: {integrity: sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-string-parser@7.27.1':
+ resolution: {integrity: sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-validator-identifier@7.28.5':
+ resolution: {integrity: sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helper-validator-option@7.27.1':
+ resolution: {integrity: sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/helpers@7.28.4':
+ resolution: {integrity: sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/parser@7.28.5':
+ resolution: {integrity: sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==}
+ engines: {node: '>=6.0.0'}
+ hasBin: true
+
+ '@babel/plugin-transform-react-jsx-self@7.27.1':
+ resolution: {integrity: sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/plugin-transform-react-jsx-source@7.27.1':
+ resolution: {integrity: sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==}
+ engines: {node: '>=6.9.0'}
+ peerDependencies:
+ '@babel/core': ^7.0.0-0
+
+ '@babel/runtime@7.28.6':
+ resolution: {integrity: sha512-05WQkdpL9COIMz4LjTxGpPNCdlpyimKppYNoJ5Di5EUObifl8t4tuLuUBBZEpoLYOmfvIWrsp9fCl0HoPRVTdA==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/template@7.27.2':
+ resolution: {integrity: sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/traverse@7.28.5':
+ resolution: {integrity: sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==}
+ engines: {node: '>=6.9.0'}
+
+ '@babel/types@7.28.5':
+ resolution: {integrity: sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==}
+ engines: {node: '>=6.9.0'}
+
+ '@esbuild/aix-ppc64@0.27.2':
+ resolution: {integrity: sha512-GZMB+a0mOMZs4MpDbj8RJp4cw+w1WV5NYD6xzgvzUJ5Ek2jerwfO2eADyI6ExDSUED+1X8aMbegahsJi+8mgpw==}
+ engines: {node: '>=18'}
+ cpu: [ppc64]
+ os: [aix]
+
+ '@esbuild/android-arm64@0.27.2':
+ resolution: {integrity: sha512-pvz8ZZ7ot/RBphf8fv60ljmaoydPU12VuXHImtAs0XhLLw+EXBi2BLe3OYSBslR4rryHvweW5gmkKFwTiFy6KA==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [android]
+
+ '@esbuild/android-arm@0.27.2':
+ resolution: {integrity: sha512-DVNI8jlPa7Ujbr1yjU2PfUSRtAUZPG9I1RwW4F4xFB1Imiu2on0ADiI/c3td+KmDtVKNbi+nffGDQMfcIMkwIA==}
+ engines: {node: '>=18'}
+ cpu: [arm]
+ os: [android]
+
+ '@esbuild/android-x64@0.27.2':
+ resolution: {integrity: sha512-z8Ank4Byh4TJJOh4wpz8g2vDy75zFL0TlZlkUkEwYXuPSgX8yzep596n6mT7905kA9uHZsf/o2OJZubl2l3M7A==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [android]
+
+ '@esbuild/darwin-arm64@0.27.2':
+ resolution: {integrity: sha512-davCD2Zc80nzDVRwXTcQP/28fiJbcOwvdolL0sOiOsbwBa72kegmVU0Wrh1MYrbuCL98Omp5dVhQFWRKR2ZAlg==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@esbuild/darwin-x64@0.27.2':
+ resolution: {integrity: sha512-ZxtijOmlQCBWGwbVmwOF/UCzuGIbUkqB1faQRf5akQmxRJ1ujusWsb3CVfk/9iZKr2L5SMU5wPBi1UWbvL+VQA==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [darwin]
+
+ '@esbuild/freebsd-arm64@0.27.2':
+ resolution: {integrity: sha512-lS/9CN+rgqQ9czogxlMcBMGd+l8Q3Nj1MFQwBZJyoEKI50XGxwuzznYdwcav6lpOGv5BqaZXqvBSiB/kJ5op+g==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [freebsd]
+
+ '@esbuild/freebsd-x64@0.27.2':
+ resolution: {integrity: sha512-tAfqtNYb4YgPnJlEFu4c212HYjQWSO/w/h/lQaBK7RbwGIkBOuNKQI9tqWzx7Wtp7bTPaGC6MJvWI608P3wXYA==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@esbuild/linux-arm64@0.27.2':
+ resolution: {integrity: sha512-hYxN8pr66NsCCiRFkHUAsxylNOcAQaxSSkHMMjcpx0si13t1LHFphxJZUiGwojB1a/Hd5OiPIqDdXONia6bhTw==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [linux]
+
+ '@esbuild/linux-arm@0.27.2':
+ resolution: {integrity: sha512-vWfq4GaIMP9AIe4yj1ZUW18RDhx6EPQKjwe7n8BbIecFtCQG4CfHGaHuh7fdfq+y3LIA2vGS/o9ZBGVxIDi9hw==}
+ engines: {node: '>=18'}
+ cpu: [arm]
+ os: [linux]
+
+ '@esbuild/linux-ia32@0.27.2':
+ resolution: {integrity: sha512-MJt5BRRSScPDwG2hLelYhAAKh9imjHK5+NE/tvnRLbIqUWa+0E9N4WNMjmp/kXXPHZGqPLxggwVhz7QP8CTR8w==}
+ engines: {node: '>=18'}
+ cpu: [ia32]
+ os: [linux]
+
+ '@esbuild/linux-loong64@0.27.2':
+ resolution: {integrity: sha512-lugyF1atnAT463aO6KPshVCJK5NgRnU4yb3FUumyVz+cGvZbontBgzeGFO1nF+dPueHD367a2ZXe1NtUkAjOtg==}
+ engines: {node: '>=18'}
+ cpu: [loong64]
+ os: [linux]
+
+ '@esbuild/linux-mips64el@0.27.2':
+ resolution: {integrity: sha512-nlP2I6ArEBewvJ2gjrrkESEZkB5mIoaTswuqNFRv/WYd+ATtUpe9Y09RnJvgvdag7he0OWgEZWhviS1OTOKixw==}
+ engines: {node: '>=18'}
+ cpu: [mips64el]
+ os: [linux]
+
+ '@esbuild/linux-ppc64@0.27.2':
+ resolution: {integrity: sha512-C92gnpey7tUQONqg1n6dKVbx3vphKtTHJaNG2Ok9lGwbZil6DrfyecMsp9CrmXGQJmZ7iiVXvvZH6Ml5hL6XdQ==}
+ engines: {node: '>=18'}
+ cpu: [ppc64]
+ os: [linux]
+
+ '@esbuild/linux-riscv64@0.27.2':
+ resolution: {integrity: sha512-B5BOmojNtUyN8AXlK0QJyvjEZkWwy/FKvakkTDCziX95AowLZKR6aCDhG7LeF7uMCXEJqwa8Bejz5LTPYm8AvA==}
+ engines: {node: '>=18'}
+ cpu: [riscv64]
+ os: [linux]
+
+ '@esbuild/linux-s390x@0.27.2':
+ resolution: {integrity: sha512-p4bm9+wsPwup5Z8f4EpfN63qNagQ47Ua2znaqGH6bqLlmJ4bx97Y9JdqxgGZ6Y8xVTixUnEkoKSHcpRlDnNr5w==}
+ engines: {node: '>=18'}
+ cpu: [s390x]
+ os: [linux]
+
+ '@esbuild/linux-x64@0.27.2':
+ resolution: {integrity: sha512-uwp2Tip5aPmH+NRUwTcfLb+W32WXjpFejTIOWZFw/v7/KnpCDKG66u4DLcurQpiYTiYwQ9B7KOeMJvLCu/OvbA==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [linux]
+
+ '@esbuild/netbsd-arm64@0.27.2':
+ resolution: {integrity: sha512-Kj6DiBlwXrPsCRDeRvGAUb/LNrBASrfqAIok+xB0LxK8CHqxZ037viF13ugfsIpePH93mX7xfJp97cyDuTZ3cw==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [netbsd]
+
+ '@esbuild/netbsd-x64@0.27.2':
+ resolution: {integrity: sha512-HwGDZ0VLVBY3Y+Nw0JexZy9o/nUAWq9MlV7cahpaXKW6TOzfVno3y3/M8Ga8u8Yr7GldLOov27xiCnqRZf0tCA==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [netbsd]
+
+ '@esbuild/openbsd-arm64@0.27.2':
+ resolution: {integrity: sha512-DNIHH2BPQ5551A7oSHD0CKbwIA/Ox7+78/AWkbS5QoRzaqlev2uFayfSxq68EkonB+IKjiuxBFoV8ESJy8bOHA==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [openbsd]
+
+ '@esbuild/openbsd-x64@0.27.2':
+ resolution: {integrity: sha512-/it7w9Nb7+0KFIzjalNJVR5bOzA9Vay+yIPLVHfIQYG/j+j9VTH84aNB8ExGKPU4AzfaEvN9/V4HV+F+vo8OEg==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [openbsd]
+
+ '@esbuild/openharmony-arm64@0.27.2':
+ resolution: {integrity: sha512-LRBbCmiU51IXfeXk59csuX/aSaToeG7w48nMwA6049Y4J4+VbWALAuXcs+qcD04rHDuSCSRKdmY63sruDS5qag==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [openharmony]
+
+ '@esbuild/sunos-x64@0.27.2':
+ resolution: {integrity: sha512-kMtx1yqJHTmqaqHPAzKCAkDaKsffmXkPHThSfRwZGyuqyIeBvf08KSsYXl+abf5HDAPMJIPnbBfXvP2ZC2TfHg==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [sunos]
+
+ '@esbuild/win32-arm64@0.27.2':
+ resolution: {integrity: sha512-Yaf78O/B3Kkh+nKABUF++bvJv5Ijoy9AN1ww904rOXZFLWVc5OLOfL56W+C8F9xn5JQZa3UX6m+IktJnIb1Jjg==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [win32]
+
+ '@esbuild/win32-ia32@0.27.2':
+ resolution: {integrity: sha512-Iuws0kxo4yusk7sw70Xa2E2imZU5HoixzxfGCdxwBdhiDgt9vX9VUCBhqcwY7/uh//78A1hMkkROMJq9l27oLQ==}
+ engines: {node: '>=18'}
+ cpu: [ia32]
+ os: [win32]
+
+ '@esbuild/win32-x64@0.27.2':
+ resolution: {integrity: sha512-sRdU18mcKf7F+YgheI/zGf5alZatMUTKj/jNS6l744f9u3WFu4v7twcUI9vu4mknF4Y9aDlblIie0IM+5xxaqQ==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [win32]
+
+ '@eslint-community/eslint-utils@4.9.1':
+ resolution: {integrity: sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+ peerDependencies:
+ eslint: ^6.0.0 || ^7.0.0 || >=8.0.0
+
+ '@eslint-community/regexpp@4.12.2':
+ resolution: {integrity: sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==}
+ engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0}
+
+ '@eslint/config-array@0.21.1':
+ resolution: {integrity: sha512-aw1gNayWpdI/jSYVgzN5pL0cfzU02GT3NBpeT/DXbx1/1x7ZKxFPd9bwrzygx/qiwIQiJ1sw/zD8qY/kRvlGHA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/config-helpers@0.4.2':
+ resolution: {integrity: sha512-gBrxN88gOIf3R7ja5K9slwNayVcZgK6SOUORm2uBzTeIEfeVaIhOpCtTox3P6R7o2jLFwLFTLnC7kU/RGcYEgw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/core@0.17.0':
+ resolution: {integrity: sha512-yL/sLrpmtDaFEiUj1osRP4TI2MDz1AddJL+jZ7KSqvBuliN4xqYY54IfdN8qD8Toa6g1iloph1fxQNkjOxrrpQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/eslintrc@3.3.3':
+ resolution: {integrity: sha512-Kr+LPIUVKz2qkx1HAMH8q1q6azbqBAsXJUxBl/ODDuVPX45Z9DfwB8tPjTi6nNZ8BuM3nbJxC5zCAg5elnBUTQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/js@9.39.2':
+ resolution: {integrity: sha512-q1mjIoW1VX4IvSocvM/vbTiveKC4k9eLrajNEuSsmjymSDEbpGddtpfOoN7YGAqBK3NG+uqo8ia4PDTt8buCYA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/object-schema@2.1.7':
+ resolution: {integrity: sha512-VtAOaymWVfZcmZbp6E2mympDIHvyjXs/12LqWYjVw6qjrfF+VK+fyG33kChz3nnK+SU5/NeHOqrTEHS8sXO3OA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@eslint/plugin-kit@0.4.1':
+ resolution: {integrity: sha512-43/qtrDUokr7LJqoF2c3+RInu/t4zfrpYdoSDfYyhg52rwLV6TnOvdG4fXm7IkSB3wErkcmJS9iEhjVtOSEjjA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@floating-ui/core@1.7.3':
+ resolution: {integrity: sha512-sGnvb5dmrJaKEZ+LDIpguvdX3bDlEllmv4/ClQ9awcmCZrlx5jQyyMWFM5kBI+EyNOCDDiKk8il0zeuX3Zlg/w==}
+
+ '@floating-ui/dom@1.7.4':
+ resolution: {integrity: sha512-OOchDgh4F2CchOX94cRVqhvy7b3AFb+/rQXyswmzmGakRfkMgoWVjfnLWkRirfLEfuD4ysVW16eXzwt3jHIzKA==}
+
+ '@floating-ui/react-dom@2.1.6':
+ resolution: {integrity: sha512-4JX6rEatQEvlmgU80wZyq9RT96HZJa88q8hp0pBd+LrczeDI4o6uA2M+uvxngVHo4Ihr8uibXxH6+70zhAFrVw==}
+ peerDependencies:
+ react: '>=16.8.0'
+ react-dom: '>=16.8.0'
+
+ '@floating-ui/utils@0.2.10':
+ resolution: {integrity: sha512-aGTxbpbg8/b5JfU1HXSrbH3wXZuLPJcNEcZQFMxLs3oSzgtVu6nFPkbbGGUvBcUjKV2YyB9Wxxabo+HEH9tcRQ==}
+
+ '@humanfs/core@0.19.1':
+ resolution: {integrity: sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==}
+ engines: {node: '>=18.18.0'}
+
+ '@humanfs/node@0.16.7':
+ resolution: {integrity: sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==}
+ engines: {node: '>=18.18.0'}
+
+ '@humanwhocodes/module-importer@1.0.1':
+ resolution: {integrity: sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==}
+ engines: {node: '>=12.22'}
+
+ '@humanwhocodes/retry@0.4.3':
+ resolution: {integrity: sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==}
+ engines: {node: '>=18.18'}
+
+ '@iconify/react@6.0.2':
+ resolution: {integrity: sha512-SMmC2sactfpJD427WJEDN6PMyznTFMhByK9yLW0gOTtnjzzbsi/Ke/XqsumsavFPwNiXs8jSiYeZTmLCLwO+Fg==}
+ peerDependencies:
+ react: '>=16'
+
+ '@iconify/types@2.0.0':
+ resolution: {integrity: sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==}
+
+ '@jridgewell/gen-mapping@0.3.13':
+ resolution: {integrity: sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==}
+
+ '@jridgewell/remapping@2.3.5':
+ resolution: {integrity: sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==}
+
+ '@jridgewell/resolve-uri@3.1.2':
+ resolution: {integrity: sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==}
+ engines: {node: '>=6.0.0'}
+
+ '@jridgewell/source-map@0.3.11':
+ resolution: {integrity: sha512-ZMp1V8ZFcPG5dIWnQLr3NSI1MiCU7UETdS/A0G8V/XWHvJv3ZsFqutJn1Y5RPmAPX6F3BiE397OqveU/9NCuIA==}
+
+ '@jridgewell/sourcemap-codec@1.5.5':
+ resolution: {integrity: sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==}
+
+ '@jridgewell/trace-mapping@0.3.31':
+ resolution: {integrity: sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==}
+
+ '@radix-ui/colors@3.0.0':
+ resolution: {integrity: sha512-FUOsGBkHrYJwCSEtWRCIfQbZG7q1e6DgxCIOe1SUQzDe/7rXXeA47s8yCn6fuTNQAj1Zq4oTFi9Yjp3wzElcxg==}
+
+ '@radix-ui/number@1.1.1':
+ resolution: {integrity: sha512-MkKCwxlXTgz6CFoJx3pCwn07GKp36+aZyu/u2Ln2VrA5DcdyCZkASEDBTd8x5whTQQL5CiYf4prXKLcgQdv29g==}
+
+ '@radix-ui/primitive@1.1.3':
+ resolution: {integrity: sha512-JTF99U/6XIjCBo0wqkU5sK10glYe27MRRsfwoiq5zzOEZLHU3A3KCMa5X/azekYRCJ0HlwI0crAXS/5dEHTzDg==}
+
+ '@radix-ui/react-accessible-icon@1.1.7':
+ resolution: {integrity: sha512-XM+E4WXl0OqUJFovy6GjmxxFyx9opfCAIUku4dlKRd5YEPqt4kALOkQOp0Of6reHuUkJuiPBEc5k0o4z4lTC8A==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-accordion@1.2.12':
+ resolution: {integrity: sha512-T4nygeh9YE9dLRPhAHSeOZi7HBXo+0kYIPJXayZfvWOWA0+n3dESrZbjfDPUABkUNym6Hd+f2IR113To8D2GPA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-alert-dialog@1.1.15':
+ resolution: {integrity: sha512-oTVLkEw5GpdRe29BqJ0LSDFWI3qu0vR1M0mUkOQWDIUnY/QIkLpgDMWuKxP94c2NAC2LGcgVhG1ImF3jkZ5wXw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-arrow@1.1.7':
+ resolution: {integrity: sha512-F+M1tLhO+mlQaOWspE8Wstg+z6PwxwRd8oQ8IXceWz92kfAmalTRf0EjrouQeo7QssEPfCn05B4Ihs1K9WQ/7w==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-aspect-ratio@1.1.7':
+ resolution: {integrity: sha512-Yq6lvO9HQyPwev1onK1daHCHqXVLzPhSVjmsNjCa2Zcxy2f7uJD2itDtxknv6FzAKCwD1qQkeVDmX/cev13n/g==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-avatar@1.1.10':
+ resolution: {integrity: sha512-V8piFfWapM5OmNCXTzVQY+E1rDa53zY+MQ4Y7356v4fFz6vqCyUtIz2rUD44ZEdwg78/jKmMJHj07+C/Z/rcog==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-checkbox@1.3.3':
+ resolution: {integrity: sha512-wBbpv+NQftHDdG86Qc0pIyXk5IR3tM8Vd0nWLKDcX8nNn4nXFOFwsKuqw2okA/1D/mpaAkmuyndrPJTYDNZtFw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-collapsible@1.1.12':
+ resolution: {integrity: sha512-Uu+mSh4agx2ib1uIGPP4/CKNULyajb3p92LsVXmH2EHVMTfZWpll88XJ0j4W0z3f8NK1eYl1+Mf/szHPmcHzyA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-collection@1.1.7':
+ resolution: {integrity: sha512-Fh9rGN0MoI4ZFUNyfFVNU4y9LUz93u9/0K+yLgA2bwRojxM8JU1DyvvMBabnZPBgMWREAJvU2jjVzq+LrFUglw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-compose-refs@1.1.2':
+ resolution: {integrity: sha512-z4eqJvfiNnFMHIIvXP3CY57y2WJs5g2v3X0zm9mEJkrkNv4rDxu+sg9Jh8EkXyeqBkB7SOcboo9dMVqhyrACIg==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/react-context-menu@2.2.16':
+ resolution: {integrity: sha512-O8morBEW+HsVG28gYDZPTrT9UUovQUlJue5YO836tiTJhuIWBm/zQHc7j388sHWtdH/xUZurK9olD2+pcqx5ww==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-context@1.1.2':
+ resolution: {integrity: sha512-jCi/QKUM2r1Ju5a3J64TH2A5SpKAgh0LpknyqdQ4m6DCV0xJ2HG1xARRwNGPQfi1SLdLWZ1OJz6F4OMBBNiGJA==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/react-dialog@1.1.15':
+ resolution: {integrity: sha512-TCglVRtzlffRNxRMEyR36DGBLJpeusFcgMVD9PZEzAKnUs1lKCgX5u9BmC2Yg+LL9MgZDugFFs1Vl+Jp4t/PGw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-direction@1.1.1':
+ resolution: {integrity: sha512-1UEWRX6jnOA2y4H5WczZ44gOOjTEmlqv1uNW4GAJEO5+bauCBhv8snY65Iw5/VOS/ghKN9gr2KjnLKxrsvoMVw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/react-dismissable-layer@1.1.11':
+ resolution: {integrity: sha512-Nqcp+t5cTB8BinFkZgXiMJniQH0PsUt2k51FUhbdfeKvc4ACcG2uQniY/8+h1Yv6Kza4Q7lD7PQV0z0oicE0Mg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-dropdown-menu@2.1.16':
+ resolution: {integrity: sha512-1PLGQEynI/3OX/ftV54COn+3Sud/Mn8vALg2rWnBLnRaGtJDduNW/22XjlGgPdpcIbiQxjKtb7BkcjP00nqfJw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-focus-guards@1.1.3':
+ resolution: {integrity: sha512-0rFg/Rj2Q62NCm62jZw0QX7a3sz6QCQU0LpZdNrJX8byRGaGVTqbrW9jAoIAHyMQqsNpeZ81YgSizOt5WXq0Pw==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/react-focus-scope@1.1.7':
+ resolution: {integrity: sha512-t2ODlkXBQyn7jkl6TNaw/MtVEVvIGelJDCG41Okq/KwUsJBwQ4XVZsHAVUkK4mBv3ewiAS3PGuUWuY2BoK4ZUw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-form@0.1.8':
+ resolution: {integrity: sha512-QM70k4Zwjttifr5a4sZFts9fn8FzHYvQ5PiB19O2HsYibaHSVt9fH9rzB0XZo/YcM+b7t/p7lYCT/F5eOeF5yQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-hover-card@1.1.15':
+ resolution: {integrity: sha512-qgTkjNT1CfKMoP0rcasmlH2r1DAiYicWsDsufxl940sT2wHNEWWv6FMWIQXWhVdmC1d/HYfbhQx60KYyAtKxjg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-id@1.1.1':
+ resolution: {integrity: sha512-kGkGegYIdQsOb4XjsfM97rXsiHaBwco+hFI66oO4s9LU+PLAC5oJ7khdOVFxkhsmlbpUqDAvXw11CluXP+jkHg==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/react-label@2.1.7':
+ resolution: {integrity: sha512-YT1GqPSL8kJn20djelMX7/cTRp/Y9w5IZHvfxQTVHrOqa2yMl7i/UfMqKRU5V7mEyKTrUVgJXhNQPVCG8PBLoQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-menu@2.1.16':
+ resolution: {integrity: sha512-72F2T+PLlphrqLcAotYPp0uJMr5SjP5SL01wfEspJbru5Zs5vQaSHb4VB3ZMJPimgHHCHG7gMOeOB9H3Hdmtxg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-menubar@1.1.16':
+ resolution: {integrity: sha512-EB1FktTz5xRRi2Er974AUQZWg2yVBb1yjip38/lgwtCVRd3a+maUoGHN/xs9Yv8SY8QwbSEb+YrxGadVWbEutA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-navigation-menu@1.2.14':
+ resolution: {integrity: sha512-YB9mTFQvCOAQMHU+C/jVl96WmuWeltyUEpRJJky51huhds5W2FQr1J8D/16sQlf0ozxkPK8uF3niQMdUwZPv5w==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-one-time-password-field@0.1.8':
+ resolution: {integrity: sha512-ycS4rbwURavDPVjCb5iS3aG4lURFDILi6sKI/WITUMZ13gMmn/xGjpLoqBAalhJaDk8I3UbCM5GzKHrnzwHbvg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-password-toggle-field@0.1.3':
+ resolution: {integrity: sha512-/UuCrDBWravcaMix4TdT+qlNdVwOM1Nck9kWx/vafXsdfj1ChfhOdfi3cy9SGBpWgTXwYCuboT/oYpJy3clqfw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-popover@1.1.15':
+ resolution: {integrity: sha512-kr0X2+6Yy/vJzLYJUPCZEc8SfQcf+1COFoAqauJm74umQhta9M7lNJHP7QQS3vkvcGLQUbWpMzwrXYwrYztHKA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-popper@1.2.8':
+ resolution: {integrity: sha512-0NJQ4LFFUuWkE7Oxf0htBKS6zLkkjBH+hM1uk7Ng705ReR8m/uelduy1DBo0PyBXPKVnBA6YBlU94MBGXrSBCw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-portal@1.1.9':
+ resolution: {integrity: sha512-bpIxvq03if6UNwXZ+HTK71JLh4APvnXntDc6XOX8UVq4XQOVl7lwok0AvIl+b8zgCw3fSaVTZMpAPPagXbKmHQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-presence@1.1.5':
+ resolution: {integrity: sha512-/jfEwNDdQVBCNvjkGit4h6pMOzq8bHkopq458dPt2lMjx+eBQUohZNG9A7DtO/O5ukSbxuaNGXMjHicgwy6rQQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-primitive@2.1.3':
+ resolution: {integrity: sha512-m9gTwRkhy2lvCPe6QJp4d3G1TYEUHn/FzJUtq9MjH46an1wJU+GdoGC5VLof8RX8Ft/DlpshApkhswDLZzHIcQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-progress@1.1.7':
+ resolution: {integrity: sha512-vPdg/tF6YC/ynuBIJlk1mm7Le0VgW6ub6J2UWnTQ7/D23KXcPI1qy+0vBkgKgd38RCMJavBXpB83HPNFMTb0Fg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-radio-group@1.3.8':
+ resolution: {integrity: sha512-VBKYIYImA5zsxACdisNQ3BjCBfmbGH3kQlnFVqlWU4tXwjy7cGX8ta80BcrO+WJXIn5iBylEH3K6ZTlee//lgQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-roving-focus@1.1.11':
+ resolution: {integrity: sha512-7A6S9jSgm/S+7MdtNDSb+IU859vQqJ/QAtcYQcfFC6W8RS4IxIZDldLR0xqCFZ6DCyrQLjLPsxtTNch5jVA4lA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-scroll-area@1.2.10':
+ resolution: {integrity: sha512-tAXIa1g3sM5CGpVT0uIbUx/U3Gs5N8T52IICuCtObaos1S8fzsrPXG5WObkQN3S6NVl6wKgPhAIiBGbWnvc97A==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-select@2.2.6':
+ resolution: {integrity: sha512-I30RydO+bnn2PQztvo25tswPH+wFBjehVGtmagkU78yMdwTwVf12wnAOF+AeP8S2N8xD+5UPbGhkUfPyvT+mwQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-separator@1.1.7':
+ resolution: {integrity: sha512-0HEb8R9E8A+jZjvmFCy/J4xhbXy3TV+9XSnGJ3KvTtjlIUy/YQ/p6UYZvi7YbeoeXdyU9+Y3scizK6hkY37baA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-slider@1.3.6':
+ resolution: {integrity: sha512-JPYb1GuM1bxfjMRlNLE+BcmBC8onfCi60Blk7OBqi2MLTFdS+8401U4uFjnwkOr49BLmXxLC6JHkvAsx5OJvHw==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-slot@1.2.3':
+ resolution: {integrity: sha512-aeNmHnBxbi2St0au6VBVC7JXFlhLlOnvIIlePNniyUNAClzmtAUEY8/pBiK3iHjufOlwA+c20/8jngo7xcrg8A==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/react-switch@1.2.6':
+ resolution: {integrity: sha512-bByzr1+ep1zk4VubeEVViV592vu2lHE2BZY5OnzehZqOOgogN80+mNtCqPkhn2gklJqOpxWgPoYTSnhBCqpOXQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-tabs@1.1.13':
+ resolution: {integrity: sha512-7xdcatg7/U+7+Udyoj2zodtI9H/IIopqo+YOIcZOq1nJwXWBZ9p8xiu5llXlekDbZkca79a/fozEYQXIA4sW6A==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-toast@1.2.15':
+ resolution: {integrity: sha512-3OSz3TacUWy4WtOXV38DggwxoqJK4+eDkNMl5Z/MJZaoUPaP4/9lf81xXMe1I2ReTAptverZUpbPY4wWwWyL5g==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-toggle-group@1.1.11':
+ resolution: {integrity: sha512-5umnS0T8JQzQT6HbPyO7Hh9dgd82NmS36DQr+X/YJ9ctFNCiiQd6IJAYYZ33LUwm8M+taCz5t2ui29fHZc4Y6Q==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-toggle@1.1.10':
+ resolution: {integrity: sha512-lS1odchhFTeZv3xwHH31YPObmJn8gOg7Lq12inrr0+BH/l3Tsq32VfjqH1oh80ARM3mlkfMic15n0kg4sD1poQ==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-toolbar@1.1.11':
+ resolution: {integrity: sha512-4ol06/1bLoFu1nwUqzdD4Y5RZ9oDdKeiHIsntug54Hcr1pgaHiPqHFEaXI1IFP/EsOfROQZ8Mig9VTIRza6Tjg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-tooltip@1.2.8':
+ resolution: {integrity: sha512-tY7sVt1yL9ozIxvmbtN5qtmH2krXcBCfjEiCgKGLqunJHvgvZG2Pcl2oQ3kbcZARb1BGEHdkLzcYGO8ynVlieg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/react-use-callback-ref@1.1.1':
+ resolution: {integrity: sha512-FkBMwD+qbGQeMu1cOHnuGB6x4yzPjho8ap5WtbEJ26umhgqVXbhekKUQO+hZEL1vU92a3wHwdp0HAcqAUF5iDg==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/react-use-controllable-state@1.2.2':
+ resolution: {integrity: sha512-BjasUjixPFdS+NKkypcyyN5Pmg83Olst0+c6vGov0diwTEo6mgdqVR6hxcEgFuh4QrAs7Rc+9KuGJ9TVCj0Zzg==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/react-use-effect-event@0.0.2':
+ resolution: {integrity: sha512-Qp8WbZOBe+blgpuUT+lw2xheLP8q0oatc9UpmiemEICxGvFLYmHm9QowVZGHtJlGbS6A6yJ3iViad/2cVjnOiA==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/react-use-escape-keydown@1.1.1':
+ resolution: {integrity: sha512-Il0+boE7w/XebUHyBjroE+DbByORGR9KKmITzbR7MyQ4akpORYP/ZmbhAr0DG7RmmBqoOnZdy2QlvajJ2QA59g==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/react-use-is-hydrated@0.1.0':
+ resolution: {integrity: sha512-U+UORVEq+cTnRIaostJv9AGdV3G6Y+zbVd+12e18jQ5A3c0xL03IhnHuiU4UV69wolOQp5GfR58NW/EgdQhwOA==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/react-use-layout-effect@1.1.1':
+ resolution: {integrity: sha512-RbJRS4UWQFkzHTTwVymMTUv8EqYhOp8dOOviLj2ugtTiXRaRQS7GLGxZTLL1jWhMeoSCf5zmcZkqTl9IiYfXcQ==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/react-use-previous@1.1.1':
+ resolution: {integrity: sha512-2dHfToCj/pzca2Ck724OZ5L0EVrr3eHRNsG/b3xQJLA2hZpVCS99bLAX+hm1IHXDEnzU6by5z/5MIY794/a8NQ==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/react-use-rect@1.1.1':
+ resolution: {integrity: sha512-QTYuDesS0VtuHNNvMh+CjlKJ4LJickCMUAqjlE3+j8w+RlRpwyX3apEQKGFzbZGdo7XNG1tXa+bQqIE7HIXT2w==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/react-use-size@1.1.1':
+ resolution: {integrity: sha512-ewrXRDTAqAXlkl6t/fkXWNAhFX9I+CkKlw6zjEwk86RSPKwZr3xpBRso655aqYafwtnbpHLj6toFzmd6xdVptQ==}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ '@radix-ui/react-visually-hidden@1.2.3':
+ resolution: {integrity: sha512-pzJq12tEaaIhqjbzpCuv/OypJY/BPavOofm+dbab+MHLajy277+1lLm6JFcGgF5eskJ6mquGirhXY2GD/8u8Ug==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@radix-ui/rect@1.1.1':
+ resolution: {integrity: sha512-HPwpGIzkl28mWyZqG52jiqDJ12waP11Pa1lGoiyUkIEuMLBP0oeK/C89esbXrxsky5we7dfd8U58nm0SgAWpVw==}
+
+ '@radix-ui/themes@3.2.1':
+ resolution: {integrity: sha512-WJL2YKAGItkunwm3O4cLTFKCGJTfAfF6Hmq7f5bCo1ggqC9qJQ/wfg/25AAN72aoEM1yqXZQ+pslsw48AFR0Xg==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: 16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: 16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ '@reduxjs/toolkit@2.11.2':
+ resolution: {integrity: sha512-Kd6kAHTA6/nUpp8mySPqj3en3dm0tdMIgbttnQ1xFMVpufoj+ADi8pXLBsd4xzTRHQa7t/Jv8W5UnCuW4kuWMQ==}
+ peerDependencies:
+ react: ^16.9.0 || ^17.0.0 || ^18 || ^19
+ react-redux: ^7.2.1 || ^8.1.3 || ^9.0.0
+ peerDependenciesMeta:
+ react:
+ optional: true
+ react-redux:
+ optional: true
+
+ '@rolldown/pluginutils@1.0.0-beta.53':
+ resolution: {integrity: sha512-vENRlFU4YbrwVqNDZ7fLvy+JR1CRkyr01jhSiDpE1u6py3OMzQfztQU2jxykW3ALNxO4kSlqIDeYyD0Y9RcQeQ==}
+
+ '@rollup/rollup-android-arm-eabi@4.55.1':
+ resolution: {integrity: sha512-9R0DM/ykwfGIlNu6+2U09ga0WXeZ9MRC2Ter8jnz8415VbuIykVuc6bhdrbORFZANDmTDvq26mJrEVTl8TdnDg==}
+ cpu: [arm]
+ os: [android]
+
+ '@rollup/rollup-android-arm64@4.55.1':
+ resolution: {integrity: sha512-eFZCb1YUqhTysgW3sj/55du5cG57S7UTNtdMjCW7LwVcj3dTTcowCsC8p7uBdzKsZYa8J7IDE8lhMI+HX1vQvg==}
+ cpu: [arm64]
+ os: [android]
+
+ '@rollup/rollup-darwin-arm64@4.55.1':
+ resolution: {integrity: sha512-p3grE2PHcQm2e8PSGZdzIhCKbMCw/xi9XvMPErPhwO17vxtvCN5FEA2mSLgmKlCjHGMQTP6phuQTYWUnKewwGg==}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@rollup/rollup-darwin-x64@4.55.1':
+ resolution: {integrity: sha512-rDUjG25C9qoTm+e02Esi+aqTKSBYwVTaoS1wxcN47/Luqef57Vgp96xNANwt5npq9GDxsH7kXxNkJVEsWEOEaQ==}
+ cpu: [x64]
+ os: [darwin]
+
+ '@rollup/rollup-freebsd-arm64@4.55.1':
+ resolution: {integrity: sha512-+JiU7Jbp5cdxekIgdte0jfcu5oqw4GCKr6i3PJTlXTCU5H5Fvtkpbs4XJHRmWNXF+hKmn4v7ogI5OQPaupJgOg==}
+ cpu: [arm64]
+ os: [freebsd]
+
+ '@rollup/rollup-freebsd-x64@4.55.1':
+ resolution: {integrity: sha512-V5xC1tOVWtLLmr3YUk2f6EJK4qksksOYiz/TCsFHu/R+woubcLWdC9nZQmwjOAbmExBIVKsm1/wKmEy4z4u4Bw==}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@rollup/rollup-linux-arm-gnueabihf@4.55.1':
+ resolution: {integrity: sha512-Rn3n+FUk2J5VWx+ywrG/HGPTD9jXNbicRtTM11e/uorplArnXZYsVifnPPqNNP5BsO3roI4n8332ukpY/zN7rQ==}
+ cpu: [arm]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/rollup-linux-arm-musleabihf@4.55.1':
+ resolution: {integrity: sha512-grPNWydeKtc1aEdrJDWk4opD7nFtQbMmV7769hiAaYyUKCT1faPRm2av8CX1YJsZ4TLAZcg9gTR1KvEzoLjXkg==}
+ cpu: [arm]
+ os: [linux]
+ libc: [musl]
+
+ '@rollup/rollup-linux-arm64-gnu@4.55.1':
+ resolution: {integrity: sha512-a59mwd1k6x8tXKcUxSyISiquLwB5pX+fJW9TkWU46lCqD/GRDe9uDN31jrMmVP3feI3mhAdvcCClhV8V5MhJFQ==}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/rollup-linux-arm64-musl@4.55.1':
+ resolution: {integrity: sha512-puS1MEgWX5GsHSoiAsF0TYrpomdvkaXm0CofIMG5uVkP6IBV+ZO9xhC5YEN49nsgYo1DuuMquF9+7EDBVYu4uA==}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ '@rollup/rollup-linux-loong64-gnu@4.55.1':
+ resolution: {integrity: sha512-r3Wv40in+lTsULSb6nnoudVbARdOwb2u5fpeoOAZjFLznp6tDU8kd+GTHmJoqZ9lt6/Sys33KdIHUaQihFcu7g==}
+ cpu: [loong64]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/rollup-linux-loong64-musl@4.55.1':
+ resolution: {integrity: sha512-MR8c0+UxAlB22Fq4R+aQSPBayvYa3+9DrwG/i1TKQXFYEaoW3B5b/rkSRIypcZDdWjWnpcvxbNaAJDcSbJU3Lw==}
+ cpu: [loong64]
+ os: [linux]
+ libc: [musl]
+
+ '@rollup/rollup-linux-ppc64-gnu@4.55.1':
+ resolution: {integrity: sha512-3KhoECe1BRlSYpMTeVrD4sh2Pw2xgt4jzNSZIIPLFEsnQn9gAnZagW9+VqDqAHgm1Xc77LzJOo2LdigS5qZ+gw==}
+ cpu: [ppc64]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/rollup-linux-ppc64-musl@4.55.1':
+ resolution: {integrity: sha512-ziR1OuZx0vdYZZ30vueNZTg73alF59DicYrPViG0NEgDVN8/Jl87zkAPu4u6VjZST2llgEUjaiNl9JM6HH1Vdw==}
+ cpu: [ppc64]
+ os: [linux]
+ libc: [musl]
+
+ '@rollup/rollup-linux-riscv64-gnu@4.55.1':
+ resolution: {integrity: sha512-uW0Y12ih2XJRERZ4jAfKamTyIHVMPQnTZcQjme2HMVDAHY4amf5u414OqNYC+x+LzRdRcnIG1YodLrrtA8xsxw==}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/rollup-linux-riscv64-musl@4.55.1':
+ resolution: {integrity: sha512-u9yZ0jUkOED1BFrqu3BwMQoixvGHGZ+JhJNkNKY/hyoEgOwlqKb62qu+7UjbPSHYjiVy8kKJHvXKv5coH4wDeg==}
+ cpu: [riscv64]
+ os: [linux]
+ libc: [musl]
+
+ '@rollup/rollup-linux-s390x-gnu@4.55.1':
+ resolution: {integrity: sha512-/0PenBCmqM4ZUd0190j7J0UsQ/1nsi735iPRakO8iPciE7BQ495Y6msPzaOmvx0/pn+eJVVlZrNrSh4WSYLxNg==}
+ cpu: [s390x]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/rollup-linux-x64-gnu@4.55.1':
+ resolution: {integrity: sha512-a8G4wiQxQG2BAvo+gU6XrReRRqj+pLS2NGXKm8io19goR+K8lw269eTrPkSdDTALwMmJp4th2Uh0D8J9bEV1vg==}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ '@rollup/rollup-linux-x64-musl@4.55.1':
+ resolution: {integrity: sha512-bD+zjpFrMpP/hqkfEcnjXWHMw5BIghGisOKPj+2NaNDuVT+8Ds4mPf3XcPHuat1tz89WRL+1wbcxKY3WSbiT7w==}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ '@rollup/rollup-openbsd-x64@4.55.1':
+ resolution: {integrity: sha512-eLXw0dOiqE4QmvikfQ6yjgkg/xDM+MdU9YJuP4ySTibXU0oAvnEWXt7UDJmD4UkYialMfOGFPJnIHSe/kdzPxg==}
+ cpu: [x64]
+ os: [openbsd]
+
+ '@rollup/rollup-openharmony-arm64@4.55.1':
+ resolution: {integrity: sha512-xzm44KgEP11te3S2HCSyYf5zIzWmx3n8HDCc7EE59+lTcswEWNpvMLfd9uJvVX8LCg9QWG67Xt75AuHn4vgsXw==}
+ cpu: [arm64]
+ os: [openharmony]
+
+ '@rollup/rollup-win32-arm64-msvc@4.55.1':
+ resolution: {integrity: sha512-yR6Bl3tMC/gBok5cz/Qi0xYnVbIxGx5Fcf/ca0eB6/6JwOY+SRUcJfI0OpeTpPls7f194as62thCt/2BjxYN8g==}
+ cpu: [arm64]
+ os: [win32]
+
+ '@rollup/rollup-win32-ia32-msvc@4.55.1':
+ resolution: {integrity: sha512-3fZBidchE0eY0oFZBnekYCfg+5wAB0mbpCBuofh5mZuzIU/4jIVkbESmd2dOsFNS78b53CYv3OAtwqkZZmU5nA==}
+ cpu: [ia32]
+ os: [win32]
+
+ '@rollup/rollup-win32-x64-gnu@4.55.1':
+ resolution: {integrity: sha512-xGGY5pXj69IxKb4yv/POoocPy/qmEGhimy/FoTpTSVju3FYXUQQMFCaZZXJVidsmGxRioZAwpThl/4zX41gRKg==}
+ cpu: [x64]
+ os: [win32]
+
+ '@rollup/rollup-win32-x64-msvc@4.55.1':
+ resolution: {integrity: sha512-SPEpaL6DX4rmcXtnhdrQYgzQ5W2uW3SCJch88lB2zImhJRhIIK44fkUrgIV/Q8yUNfw5oyZ5vkeQsZLhCb06lw==}
+ cpu: [x64]
+ os: [win32]
+
+ '@standard-schema/spec@1.1.0':
+ resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==}
+
+ '@standard-schema/utils@0.3.0':
+ resolution: {integrity: sha512-e7Mew686owMaPJVNNLs55PUvgz371nKgwsc4vxE49zsODpJEnxgxRo2y/OKrqueavXgZNMDVj3DdHFlaSAeU8g==}
+
+ '@tailwindcss/node@4.1.18':
+ resolution: {integrity: sha512-DoR7U1P7iYhw16qJ49fgXUlry1t4CpXeErJHnQ44JgTSKMaZUdf17cfn5mHchfJ4KRBZRFA/Coo+MUF5+gOaCQ==}
+
+ '@tailwindcss/oxide-android-arm64@4.1.18':
+ resolution: {integrity: sha512-dJHz7+Ugr9U/diKJA0W6N/6/cjI+ZTAoxPf9Iz9BFRF2GzEX8IvXxFIi/dZBloVJX/MZGvRuFA9rqwdiIEZQ0Q==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [android]
+
+ '@tailwindcss/oxide-darwin-arm64@4.1.18':
+ resolution: {integrity: sha512-Gc2q4Qhs660bhjyBSKgq6BYvwDz4G+BuyJ5H1xfhmDR3D8HnHCmT/BSkvSL0vQLy/nkMLY20PQ2OoYMO15Jd0A==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [darwin]
+
+ '@tailwindcss/oxide-darwin-x64@4.1.18':
+ resolution: {integrity: sha512-FL5oxr2xQsFrc3X9o1fjHKBYBMD1QZNyc1Xzw/h5Qu4XnEBi3dZn96HcHm41c/euGV+GRiXFfh2hUCyKi/e+yw==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [darwin]
+
+ '@tailwindcss/oxide-freebsd-x64@4.1.18':
+ resolution: {integrity: sha512-Fj+RHgu5bDodmV1dM9yAxlfJwkkWvLiRjbhuO2LEtwtlYlBgiAT4x/j5wQr1tC3SANAgD+0YcmWVrj8R9trVMA==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [freebsd]
+
+ '@tailwindcss/oxide-linux-arm-gnueabihf@4.1.18':
+ resolution: {integrity: sha512-Fp+Wzk/Ws4dZn+LV2Nqx3IilnhH51YZoRaYHQsVq3RQvEl+71VGKFpkfHrLM/Li+kt5c0DJe/bHXK1eHgDmdiA==}
+ engines: {node: '>= 10'}
+ cpu: [arm]
+ os: [linux]
+
+ '@tailwindcss/oxide-linux-arm64-gnu@4.1.18':
+ resolution: {integrity: sha512-S0n3jboLysNbh55Vrt7pk9wgpyTTPD0fdQeh7wQfMqLPM/Hrxi+dVsLsPrycQjGKEQk85Kgbx+6+QnYNiHalnw==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ '@tailwindcss/oxide-linux-arm64-musl@4.1.18':
+ resolution: {integrity: sha512-1px92582HkPQlaaCkdRcio71p8bc8i/ap5807tPRDK/uw953cauQBT8c5tVGkOwrHMfc2Yh6UuxaH4vtTjGvHg==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ '@tailwindcss/oxide-linux-x64-gnu@4.1.18':
+ resolution: {integrity: sha512-v3gyT0ivkfBLoZGF9LyHmts0Isc8jHZyVcbzio6Wpzifg/+5ZJpDiRiUhDLkcr7f/r38SWNe7ucxmGW3j3Kb/g==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ '@tailwindcss/oxide-linux-x64-musl@4.1.18':
+ resolution: {integrity: sha512-bhJ2y2OQNlcRwwgOAGMY0xTFStt4/wyU6pvI6LSuZpRgKQwxTec0/3Scu91O8ir7qCR3AuepQKLU/kX99FouqQ==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ '@tailwindcss/oxide-wasm32-wasi@4.1.18':
+ resolution: {integrity: sha512-LffYTvPjODiP6PT16oNeUQJzNVyJl1cjIebq/rWWBF+3eDst5JGEFSc5cWxyRCJ0Mxl+KyIkqRxk1XPEs9x8TA==}
+ engines: {node: '>=14.0.0'}
+ cpu: [wasm32]
+ bundledDependencies:
+ - '@napi-rs/wasm-runtime'
+ - '@emnapi/core'
+ - '@emnapi/runtime'
+ - '@tybys/wasm-util'
+ - '@emnapi/wasi-threads'
+ - tslib
+
+ '@tailwindcss/oxide-win32-arm64-msvc@4.1.18':
+ resolution: {integrity: sha512-HjSA7mr9HmC8fu6bdsZvZ+dhjyGCLdotjVOgLA2vEqxEBZaQo9YTX4kwgEvPCpRh8o4uWc4J/wEoFzhEmjvPbA==}
+ engines: {node: '>= 10'}
+ cpu: [arm64]
+ os: [win32]
+
+ '@tailwindcss/oxide-win32-x64-msvc@4.1.18':
+ resolution: {integrity: sha512-bJWbyYpUlqamC8dpR7pfjA0I7vdF6t5VpUGMWRkXVE3AXgIZjYUYAK7II1GNaxR8J1SSrSrppRar8G++JekE3Q==}
+ engines: {node: '>= 10'}
+ cpu: [x64]
+ os: [win32]
+
+ '@tailwindcss/oxide@4.1.18':
+ resolution: {integrity: sha512-EgCR5tTS5bUSKQgzeMClT6iCY3ToqE1y+ZB0AKldj809QXk1Y+3jB0upOYZrn9aGIzPtUsP7sX4QQ4XtjBB95A==}
+ engines: {node: '>= 10'}
+
+ '@tailwindcss/vite@4.1.18':
+ resolution: {integrity: sha512-jVA+/UpKL1vRLg6Hkao5jldawNmRo7mQYrZtNHMIVpLfLhDml5nMRUo/8MwoX2vNXvnaXNNMedrMfMugAVX1nA==}
+ peerDependencies:
+ vite: ^5.2.0 || ^6 || ^7
+
+ '@types/babel__core@7.20.5':
+ resolution: {integrity: sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==}
+
+ '@types/babel__generator@7.27.0':
+ resolution: {integrity: sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==}
+
+ '@types/babel__template@7.4.4':
+ resolution: {integrity: sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==}
+
+ '@types/babel__traverse@7.28.0':
+ resolution: {integrity: sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==}
+
+ '@types/d3-array@3.2.2':
+ resolution: {integrity: sha512-hOLWVbm7uRza0BYXpIIW5pxfrKe0W+D5lrFiAEYR+pb6w3N2SwSMaJbXdUfSEv+dT4MfHBLtn5js0LAWaO6otw==}
+
+ '@types/d3-color@3.1.3':
+ resolution: {integrity: sha512-iO90scth9WAbmgv7ogoq57O9YpKmFBbmoEoCHDB2xMBY0+/KVrqAaCDyCE16dUspeOvIxFFRI+0sEtqDqy2b4A==}
+
+ '@types/d3-drag@3.0.7':
+ resolution: {integrity: sha512-HE3jVKlzU9AaMazNufooRJ5ZpWmLIoc90A37WU2JMmeq28w1FQqCZswHZ3xR+SuxYftzHq6WU6KJHvqxKzTxxQ==}
+
+ '@types/d3-ease@3.0.2':
+ resolution: {integrity: sha512-NcV1JjO5oDzoK26oMzbILE6HW7uVXOHLQvHshBUW4UMdZGfiY6v5BeQwh9a9tCzv+CeefZQHJt5SRgK154RtiA==}
+
+ '@types/d3-interpolate@3.0.4':
+ resolution: {integrity: sha512-mgLPETlrpVV1YRJIglr4Ez47g7Yxjl1lj7YKsiMCb27VJH9W8NVM6Bb9d8kkpG/uAQS5AmbA48q2IAolKKo1MA==}
+
+ '@types/d3-path@3.1.1':
+ resolution: {integrity: sha512-VMZBYyQvbGmWyWVea0EHs/BwLgxc+MKi1zLDCONksozI4YJMcTt8ZEuIR4Sb1MMTE8MMW49v0IwI5+b7RmfWlg==}
+
+ '@types/d3-scale@4.0.9':
+ resolution: {integrity: sha512-dLmtwB8zkAeO/juAMfnV+sItKjlsw2lKdZVVy6LRr0cBmegxSABiLEpGVmSJJ8O08i4+sGR6qQtb6WtuwJdvVw==}
+
+ '@types/d3-selection@3.0.11':
+ resolution: {integrity: sha512-bhAXu23DJWsrI45xafYpkQ4NtcKMwWnAC/vKrd2l+nxMFuvOT3XMYTIj2opv8vq8AO5Yh7Qac/nSeP/3zjTK0w==}
+
+ '@types/d3-shape@3.1.8':
+ resolution: {integrity: sha512-lae0iWfcDeR7qt7rA88BNiqdvPS5pFVPpo5OfjElwNaT2yyekbM0C9vK+yqBqEmHr6lDkRnYNoTBYlAgJa7a4w==}
+
+ '@types/d3-time@3.0.4':
+ resolution: {integrity: sha512-yuzZug1nkAAaBlBBikKZTgzCeA+k1uy4ZFwWANOfKw5z5LRhV0gNA7gNkKm7HoK+HRN0wX3EkxGk0fpbWhmB7g==}
+
+ '@types/d3-timer@3.0.2':
+ resolution: {integrity: sha512-Ps3T8E8dZDam6fUyNiMkekK3XUsaUEik+idO9/YjPtfj2qruF8tFBXS7XhtE4iIXBLxhmLjP3SXpLhVf21I9Lw==}
+
+ '@types/d3-transition@3.0.9':
+ resolution: {integrity: sha512-uZS5shfxzO3rGlu0cC3bjmMFKsXv+SmZZcgp0KD22ts4uGXp5EVYGzu/0YdwZeKmddhcAccYtREJKkPfXkZuCg==}
+
+ '@types/d3-zoom@3.0.8':
+ resolution: {integrity: sha512-iqMC4/YlFCSlO8+2Ii1GGGliCAY4XdeG748w5vQUbevlbDu0zSjH/+jojorQVBK/se0j6DUFNPBGSqD3YWYnDw==}
+
+ '@types/estree@1.0.8':
+ resolution: {integrity: sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==}
+
+ '@types/json-schema@7.0.15':
+ resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
+
+ '@types/md5@2.3.6':
+ resolution: {integrity: sha512-WD69gNXtRBnpknfZcb4TRQ0XJQbUPZcai/Qdhmka3sxUR3Et8NrXoeAoknG/LghYHTf4ve795rInVYHBTQdNVA==}
+
+ '@types/node@24.10.4':
+ resolution: {integrity: sha512-vnDVpYPMzs4wunl27jHrfmwojOGKya0xyM3sH+UE5iv5uPS6vX7UIoh6m+vQc5LGBq52HBKPIn/zcSZVzeDEZg==}
+
+ '@types/react-dom@19.2.3':
+ resolution: {integrity: sha512-jp2L/eY6fn+KgVVQAOqYItbF0VY/YApe5Mz2F0aykSO8gx31bYCZyvSeYxCHKvzHG5eZjc+zyaS5BrBWya2+kQ==}
+ peerDependencies:
+ '@types/react': ^19.2.0
+
+ '@types/react@19.2.7':
+ resolution: {integrity: sha512-MWtvHrGZLFttgeEj28VXHxpmwYbor/ATPYbBfSFZEIRK0ecCFLl2Qo55z52Hss+UV9CRN7trSeq1zbgx7YDWWg==}
+
+ '@types/use-sync-external-store@0.0.6':
+ resolution: {integrity: sha512-zFDAD+tlpf2r4asuHEj0XH6pY6i0g5NeAHPn+15wk3BV6JA69eERFXC1gyGThDkVa1zCyKr5jox1+2LbV/AMLg==}
+
+ '@typescript-eslint/eslint-plugin@8.52.0':
+ resolution: {integrity: sha512-okqtOgqu2qmZJ5iN4TWlgfF171dZmx2FzdOv2K/ixL2LZWDStL8+JgQerI2sa8eAEfoydG9+0V96m7V+P8yE1Q==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ '@typescript-eslint/parser': ^8.52.0
+ eslint: ^8.57.0 || ^9.0.0
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/parser@8.52.0':
+ resolution: {integrity: sha512-iIACsx8pxRnguSYhHiMn2PvhvfpopO9FXHyn1mG5txZIsAaB6F0KwbFnUQN3KCiG3Jcuad/Cao2FAs1Wp7vAyg==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ eslint: ^8.57.0 || ^9.0.0
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/project-service@8.52.0':
+ resolution: {integrity: sha512-xD0MfdSdEmeFa3OmVqonHi+Cciab96ls1UhIF/qX/O/gPu5KXD0bY9lu33jj04fjzrXHcuvjBcBC+D3SNSadaw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/scope-manager@8.52.0':
+ resolution: {integrity: sha512-ixxqmmCcc1Nf8S0mS0TkJ/3LKcC8mruYJPOU6Ia2F/zUUR4pApW7LzrpU3JmtePbRUTes9bEqRc1Gg4iyRnDzA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@typescript-eslint/tsconfig-utils@8.52.0':
+ resolution: {integrity: sha512-jl+8fzr/SdzdxWJznq5nvoI7qn2tNYV/ZBAEcaFMVXf+K6jmXvAFrgo/+5rxgnL152f//pDEAYAhhBAZGrVfwg==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/type-utils@8.52.0':
+ resolution: {integrity: sha512-JD3wKBRWglYRQkAtsyGz1AewDu3mTc7NtRjR/ceTyGoPqmdS5oCdx/oZMWD5Zuqmo6/MpsYs0wp6axNt88/2EQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ eslint: ^8.57.0 || ^9.0.0
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/types@8.52.0':
+ resolution: {integrity: sha512-LWQV1V4q9V4cT4H5JCIx3481iIFxH1UkVk+ZkGGAV1ZGcjGI9IoFOfg3O6ywz8QqCDEp7Inlg6kovMofsNRaGg==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@typescript-eslint/typescript-estree@8.52.0':
+ resolution: {integrity: sha512-XP3LClsCc0FsTK5/frGjolyADTh3QmsLp6nKd476xNI9CsSsLnmn4f0jrzNoAulmxlmNIpeXuHYeEQv61Q6qeQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/utils@8.52.0':
+ resolution: {integrity: sha512-wYndVMWkweqHpEpwPhwqE2lnD2DxC6WVLupU/DOt/0/v+/+iQbbzO3jOHjmBMnhu0DgLULvOaU4h4pwHYi2oRQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ eslint: ^8.57.0 || ^9.0.0
+ typescript: '>=4.8.4 <6.0.0'
+
+ '@typescript-eslint/visitor-keys@8.52.0':
+ resolution: {integrity: sha512-ink3/Zofus34nmBsPjow63FP5M7IGff0RKAgqR6+CFpdk22M7aLwC9gOcLGYqr7MczLPzZVERW9hRog3O4n1sQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ '@vitejs/plugin-react@5.1.2':
+ resolution: {integrity: sha512-EcA07pHJouywpzsoTUqNh5NwGayl2PPVEJKUSinGGSxFGYn+shYbqMGBg6FXDqgXum9Ou/ecb+411ssw8HImJQ==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ peerDependencies:
+ vite: ^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0
+
+ '@xyflow/react@12.10.1':
+ resolution: {integrity: sha512-5eSWtIK/+rkldOuFbOOz44CRgQRjtS9v5nufk77DV+XBnfCGL9HAQ8PG00o2ZYKqkEU/Ak6wrKC95Tu+2zuK3Q==}
+ peerDependencies:
+ react: '>=17'
+ react-dom: '>=17'
+
+ '@xyflow/system@0.0.75':
+ resolution: {integrity: sha512-iXs+AGFLi8w/VlAoc/iSxk+CxfT6o64Uw/k0CKASOPqjqz6E0rb5jFZgJtXGZCpfQI6OQpu5EnumP5fGxQheaQ==}
+
+ acorn-jsx@5.3.2:
+ resolution: {integrity: sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==}
+ peerDependencies:
+ acorn: ^6.0.0 || ^7.0.0 || ^8.0.0
+
+ acorn@8.15.0:
+ resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==}
+ engines: {node: '>=0.4.0'}
+ hasBin: true
+
+ ajv@6.12.6:
+ resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}
+
+ ansi-styles@4.3.0:
+ resolution: {integrity: sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==}
+ engines: {node: '>=8'}
+
+ argparse@2.0.1:
+ resolution: {integrity: sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==}
+
+ aria-hidden@1.2.6:
+ resolution: {integrity: sha512-ik3ZgC9dY/lYVVM++OISsaYDeg1tb0VtP5uL3ouh1koGOaUMDPpbFIei4JkFimWUFPn90sbMNMXQAIVOlnYKJA==}
+ engines: {node: '>=10'}
+
+ balanced-match@1.0.2:
+ resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==}
+
+ baseline-browser-mapping@2.9.11:
+ resolution: {integrity: sha512-Sg0xJUNDU1sJNGdfGWhVHX0kkZ+HWcvmVymJbj6NSgZZmW/8S9Y2HQ5euytnIgakgxN6papOAWiwDo1ctFDcoQ==}
+ hasBin: true
+
+ brace-expansion@1.1.12:
+ resolution: {integrity: sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==}
+
+ brace-expansion@2.0.2:
+ resolution: {integrity: sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==}
+
+ browserslist@4.28.1:
+ resolution: {integrity: sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==}
+ engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7}
+ hasBin: true
+
+ buffer-from@1.1.2:
+ resolution: {integrity: sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==}
+
+ callsites@3.1.0:
+ resolution: {integrity: sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==}
+ engines: {node: '>=6'}
+
+ caniuse-lite@1.0.30001762:
+ resolution: {integrity: sha512-PxZwGNvH7Ak8WX5iXzoK1KPZttBXNPuaOvI2ZYU7NrlM+d9Ov+TUvlLOBNGzVXAntMSMMlJPd+jY6ovrVjSmUw==}
+
+ chalk@4.1.2:
+ resolution: {integrity: sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==}
+ engines: {node: '>=10'}
+
+ charenc@0.0.2:
+ resolution: {integrity: sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==}
+
+ classcat@5.0.5:
+ resolution: {integrity: sha512-JhZUT7JFcQy/EzW605k/ktHtncoo9vnyW/2GspNYwFlN1C/WmjuV/xtS04e9SOkL2sTdw0VAZ2UGCcQ9lR6p6w==}
+
+ classnames@2.5.1:
+ resolution: {integrity: sha512-saHYOzhIQs6wy2sVxTM6bUDsQO4F50V9RQ22qBpEdCW+I+/Wmke2HOl6lS6dTpdxVhb88/I6+Hs+438c3lfUow==}
+
+ clsx@2.1.1:
+ resolution: {integrity: sha512-eYm0QWBtUrBWZWG0d386OGAw16Z995PiOVo2B7bjWSbHedGl5e0ZWaq65kOGgUSNesEIDkB9ISbTg/JK9dhCZA==}
+ engines: {node: '>=6'}
+
+ color-convert@2.0.1:
+ resolution: {integrity: sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==}
+ engines: {node: '>=7.0.0'}
+
+ color-name@1.1.4:
+ resolution: {integrity: sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==}
+
+ commander@2.20.3:
+ resolution: {integrity: sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==}
+
+ concat-map@0.0.1:
+ resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
+
+ convert-source-map@2.0.0:
+ resolution: {integrity: sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==}
+
+ cookie@1.1.1:
+ resolution: {integrity: sha512-ei8Aos7ja0weRpFzJnEA9UHJ/7XQmqglbRwnf2ATjcB9Wq874VKH9kfjjirM6UhU2/E5fFYadylyhFldcqSidQ==}
+ engines: {node: '>=18'}
+
+ cross-spawn@7.0.6:
+ resolution: {integrity: sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==}
+ engines: {node: '>= 8'}
+
+ crypt@0.0.2:
+ resolution: {integrity: sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==}
+
+ csstype@3.2.3:
+ resolution: {integrity: sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==}
+
+ d3-array@3.2.4:
+ resolution: {integrity: sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg==}
+ engines: {node: '>=12'}
+
+ d3-color@3.1.0:
+ resolution: {integrity: sha512-zg/chbXyeBtMQ1LbD/WSoW2DpC3I0mpmPdW+ynRTj/x2DAWYrIY7qeZIHidozwV24m4iavr15lNwIwLxRmOxhA==}
+ engines: {node: '>=12'}
+
+ d3-dispatch@3.0.1:
+ resolution: {integrity: sha512-rzUyPU/S7rwUflMyLc1ETDeBj0NRuHKKAcvukozwhshr6g6c5d8zh4c2gQjY2bZ0dXeGLWc1PF174P2tVvKhfg==}
+ engines: {node: '>=12'}
+
+ d3-drag@3.0.0:
+ resolution: {integrity: sha512-pWbUJLdETVA8lQNJecMxoXfH6x+mO2UQo8rSmZ+QqxcbyA3hfeprFgIT//HW2nlHChWeIIMwS2Fq+gEARkhTkg==}
+ engines: {node: '>=12'}
+
+ d3-ease@3.0.1:
+ resolution: {integrity: sha512-wR/XK3D3XcLIZwpbvQwQ5fK+8Ykds1ip7A2Txe0yxncXSdq1L9skcG7blcedkOX+ZcgxGAmLX1FrRGbADwzi0w==}
+ engines: {node: '>=12'}
+
+ d3-format@3.1.2:
+ resolution: {integrity: sha512-AJDdYOdnyRDV5b6ArilzCPPwc1ejkHcoyFarqlPqT7zRYjhavcT3uSrqcMvsgh2CgoPbK3RCwyHaVyxYcP2Arg==}
+ engines: {node: '>=12'}
+
+ d3-interpolate@3.0.1:
+ resolution: {integrity: sha512-3bYs1rOD33uo8aqJfKP3JWPAibgw8Zm2+L9vBKEHJ2Rg+viTR7o5Mmv5mZcieN+FRYaAOWX5SJATX6k1PWz72g==}
+ engines: {node: '>=12'}
+
+ d3-path@3.1.0:
+ resolution: {integrity: sha512-p3KP5HCf/bvjBSSKuXid6Zqijx7wIfNW+J/maPs+iwR35at5JCbLUT0LzF1cnjbCHWhqzQTIN2Jpe8pRebIEFQ==}
+ engines: {node: '>=12'}
+
+ d3-scale@4.0.2:
+ resolution: {integrity: sha512-GZW464g1SH7ag3Y7hXjf8RoUuAFIqklOAq3MRl4OaWabTFJY9PN/E1YklhXLh+OQ3fM9yS2nOkCoS+WLZ6kvxQ==}
+ engines: {node: '>=12'}
+
+ d3-selection@3.0.0:
+ resolution: {integrity: sha512-fmTRWbNMmsmWq6xJV8D19U/gw/bwrHfNXxrIN+HfZgnzqTHp9jOmKMhsTUjXOJnZOdZY9Q28y4yebKzqDKlxlQ==}
+ engines: {node: '>=12'}
+
+ d3-shape@3.2.0:
+ resolution: {integrity: sha512-SaLBuwGm3MOViRq2ABk3eLoxwZELpH6zhl3FbAoJ7Vm1gofKx6El1Ib5z23NUEhF9AsGl7y+dzLe5Cw2AArGTA==}
+ engines: {node: '>=12'}
+
+ d3-time-format@4.1.0:
+ resolution: {integrity: sha512-dJxPBlzC7NugB2PDLwo9Q8JiTR3M3e4/XANkreKSUxF8vvXKqm1Yfq4Q5dl8budlunRVlUUaDUgFt7eA8D6NLg==}
+ engines: {node: '>=12'}
+
+ d3-time@3.1.0:
+ resolution: {integrity: sha512-VqKjzBLejbSMT4IgbmVgDjpkYrNWUYJnbCGo874u7MMKIWsILRX+OpX/gTk8MqjpT1A/c6HY2dCA77ZN0lkQ2Q==}
+ engines: {node: '>=12'}
+
+ d3-timer@3.0.1:
+ resolution: {integrity: sha512-ndfJ/JxxMd3nw31uyKoY2naivF+r29V+Lc0svZxe1JvvIRmi8hUsrMvdOwgS1o6uBHmiz91geQ0ylPP0aj1VUA==}
+ engines: {node: '>=12'}
+
+ d3-transition@3.0.1:
+ resolution: {integrity: sha512-ApKvfjsSR6tg06xrL434C0WydLr7JewBB3V+/39RMHsaXTOG0zmt/OAXeng5M5LBm0ojmxJrpomQVZ1aPvBL4w==}
+ engines: {node: '>=12'}
+ peerDependencies:
+ d3-selection: 2 - 3
+
+ d3-zoom@3.0.0:
+ resolution: {integrity: sha512-b8AmV3kfQaqWAuacbPuNbL6vahnOJflOhexLzMMNLga62+/nh0JzvJ0aO/5a5MVgUFGS7Hu1P9P03o3fJkDCyw==}
+ engines: {node: '>=12'}
+
+ debug@4.4.3:
+ resolution: {integrity: sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==}
+ engines: {node: '>=6.0'}
+ peerDependencies:
+ supports-color: '*'
+ peerDependenciesMeta:
+ supports-color:
+ optional: true
+
+ decimal.js-light@2.5.1:
+ resolution: {integrity: sha512-qIMFpTMZmny+MMIitAB6D7iVPEorVw6YQRWkvarTkT4tBeSLLiHzcwj6q0MmYSFCiVpiqPJTJEYIrpcPzVEIvg==}
+
+ deep-is@0.1.4:
+ resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}
+
+ detect-libc@2.1.2:
+ resolution: {integrity: sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==}
+ engines: {node: '>=8'}
+
+ detect-node-es@1.1.0:
+ resolution: {integrity: sha512-ypdmJU/TbBby2Dxibuv7ZLW3Bs1QEmM7nHjEANfohJLvE0XVujisn1qPJcZxg+qDucsr+bP6fLD1rPS3AhJ7EQ==}
+
+ electron-to-chromium@1.5.267:
+ resolution: {integrity: sha512-0Drusm6MVRXSOJpGbaSVgcQsuB4hEkMpHXaVstcPmhu5LIedxs1xNK/nIxmQIU/RPC0+1/o0AVZfBTkTNJOdUw==}
+
+ enhanced-resolve@5.18.4:
+ resolution: {integrity: sha512-LgQMM4WXU3QI+SYgEc2liRgznaD5ojbmY3sb8LxyguVkIg5FxdpTkvk72te2R38/TGKxH634oLxXRGY6d7AP+Q==}
+ engines: {node: '>=10.13.0'}
+
+ es-toolkit@1.44.0:
+ resolution: {integrity: sha512-6penXeZalaV88MM3cGkFZZfOoLGWshWWfdy0tWw/RlVVyhvMaWSBTOvXNeiW3e5FwdS5ePW0LGEu17zT139ktg==}
+
+ esbuild@0.27.2:
+ resolution: {integrity: sha512-HyNQImnsOC7X9PMNaCIeAm4ISCQXs5a5YasTXVliKv4uuBo1dKrG0A+uQS8M5eXjVMnLg3WgXaKvprHlFJQffw==}
+ engines: {node: '>=18'}
+ hasBin: true
+
+ escalade@3.2.0:
+ resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}
+ engines: {node: '>=6'}
+
+ escape-string-regexp@4.0.0:
+ resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==}
+ engines: {node: '>=10'}
+
+ eslint-config-prettier@10.1.8:
+ resolution: {integrity: sha512-82GZUjRS0p/jganf6q1rEO25VSoHH0hKPCTrgillPjdI/3bgBhAE1QzHrHTizjpRvy6pGAvKjDJtk2pF9NDq8w==}
+ hasBin: true
+ peerDependencies:
+ eslint: '>=7.0.0'
+
+ eslint-plugin-react-hooks@7.0.1:
+ resolution: {integrity: sha512-O0d0m04evaNzEPoSW+59Mezf8Qt0InfgGIBJnpC0h3NH/WjUAR7BIKUfysC6todmtiZ/A0oUVS8Gce0WhBrHsA==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ eslint: ^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0 || ^9.0.0
+
+ eslint-plugin-react-refresh@0.4.26:
+ resolution: {integrity: sha512-1RETEylht2O6FM/MvgnyvT+8K21wLqDNg4qD51Zj3guhjt433XbnnkVttHMyaVyAFD03QSV4LPS5iE3VQmO7XQ==}
+ peerDependencies:
+ eslint: '>=8.40'
+
+ eslint-scope@8.4.0:
+ resolution: {integrity: sha512-sNXOfKCn74rt8RICKMvJS7XKV/Xk9kA7DyJr8mJik3S7Cwgy3qlkkmyS2uQB3jiJg6VNdZd/pDBJu0nvG2NlTg==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ eslint-visitor-keys@3.4.3:
+ resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==}
+ engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
+
+ eslint-visitor-keys@4.2.1:
+ resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ eslint@9.39.2:
+ resolution: {integrity: sha512-LEyamqS7W5HB3ujJyvi0HQK/dtVINZvd5mAAp9eT5S/ujByGjiZLCzPcHVzuXbpJDJF/cxwHlfceVUDZ2lnSTw==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ hasBin: true
+ peerDependencies:
+ jiti: '*'
+ peerDependenciesMeta:
+ jiti:
+ optional: true
+
+ espree@10.4.0:
+ resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+
+ esquery@1.7.0:
+ resolution: {integrity: sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==}
+ engines: {node: '>=0.10'}
+
+ esrecurse@4.3.0:
+ resolution: {integrity: sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==}
+ engines: {node: '>=4.0'}
+
+ estraverse@5.3.0:
+ resolution: {integrity: sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==}
+ engines: {node: '>=4.0'}
+
+ esutils@2.0.3:
+ resolution: {integrity: sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==}
+ engines: {node: '>=0.10.0'}
+
+ eventemitter3@5.0.4:
+ resolution: {integrity: sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw==}
+
+ fast-deep-equal@3.1.3:
+ resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==}
+
+ fast-json-stable-stringify@2.1.0:
+ resolution: {integrity: sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==}
+
+ fast-levenshtein@2.0.6:
+ resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}
+
+ fdir@6.5.0:
+ resolution: {integrity: sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==}
+ engines: {node: '>=12.0.0'}
+ peerDependencies:
+ picomatch: ^3 || ^4
+ peerDependenciesMeta:
+ picomatch:
+ optional: true
+
+ file-entry-cache@8.0.0:
+ resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==}
+ engines: {node: '>=16.0.0'}
+
+ find-up@5.0.0:
+ resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==}
+ engines: {node: '>=10'}
+
+ flat-cache@4.0.1:
+ resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==}
+ engines: {node: '>=16'}
+
+ flatted@3.3.3:
+ resolution: {integrity: sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==}
+
+ framer-motion@12.30.0:
+ resolution: {integrity: sha512-S7t3UjvghrFiJzFJ30ncX6keUipexw9f7DRpauhW9bXPNxg0dMxoPbNIDpLuxK1NvxF2wswFEMEm7WiNAcdELg==}
+ peerDependencies:
+ '@emotion/is-prop-valid': '*'
+ react: ^18.0.0 || ^19.0.0
+ react-dom: ^18.0.0 || ^19.0.0
+ peerDependenciesMeta:
+ '@emotion/is-prop-valid':
+ optional: true
+ react:
+ optional: true
+ react-dom:
+ optional: true
+
+ fsevents@2.3.3:
+ resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
+ engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
+ os: [darwin]
+
+ gensync@1.0.0-beta.2:
+ resolution: {integrity: sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==}
+ engines: {node: '>=6.9.0'}
+
+ get-nonce@1.0.1:
+ resolution: {integrity: sha512-FJhYRoDaiatfEkUK8HKlicmu/3SGFD51q3itKDGoSTysQJBnfOcxU5GxnhE1E6soB76MbT0MBtnKJuXyAx+96Q==}
+ engines: {node: '>=6'}
+
+ glob-parent@6.0.2:
+ resolution: {integrity: sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==}
+ engines: {node: '>=10.13.0'}
+
+ globals@14.0.0:
+ resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==}
+ engines: {node: '>=18'}
+
+ globals@16.5.0:
+ resolution: {integrity: sha512-c/c15i26VrJ4IRt5Z89DnIzCGDn9EcebibhAOjw5ibqEHsE1wLUgkPn9RDmNcUKyU87GeaL633nyJ+pplFR2ZQ==}
+ engines: {node: '>=18'}
+
+ graceful-fs@4.2.11:
+ resolution: {integrity: sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==}
+
+ has-flag@4.0.0:
+ resolution: {integrity: sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==}
+ engines: {node: '>=8'}
+
+ hermes-estree@0.25.1:
+ resolution: {integrity: sha512-0wUoCcLp+5Ev5pDW2OriHC2MJCbwLwuRx+gAqMTOkGKJJiBCLjtrvy4PWUGn6MIVefecRpzoOZ/UV6iGdOr+Cw==}
+
+ hermes-parser@0.25.1:
+ resolution: {integrity: sha512-6pEjquH3rqaI6cYAXYPcz9MS4rY6R4ngRgrgfDshRptUZIc3lw0MCIJIGDj9++mfySOuPTHB4nrSW99BCvOPIA==}
+
+ html-parse-stringify@3.0.1:
+ resolution: {integrity: sha512-KknJ50kTInJ7qIScF3jeaFRpMpE8/lfiTdzf/twXyPBLAGrLRTmkz3AdTnKeh40X8k9L2fdYwEp/42WGXIRGcg==}
+
+ i18next@25.8.4:
+ resolution: {integrity: sha512-a9A0MnUjKvzjEN/26ZY1okpra9kA8MEwzYEz1BNm+IyxUKPRH6ihf0p7vj8YvULwZHKHl3zkJ6KOt4hewxBecQ==}
+ peerDependencies:
+ typescript: ^5
+ peerDependenciesMeta:
+ typescript:
+ optional: true
+
+ ignore@5.3.2:
+ resolution: {integrity: sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==}
+ engines: {node: '>= 4'}
+
+ ignore@7.0.5:
+ resolution: {integrity: sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==}
+ engines: {node: '>= 4'}
+
+ immer@10.2.0:
+ resolution: {integrity: sha512-d/+XTN3zfODyjr89gM3mPq1WNX2B8pYsu7eORitdwyA2sBubnTl3laYlBk4sXY5FUa5qTZGBDPJICVbvqzjlbw==}
+
+ immer@11.1.3:
+ resolution: {integrity: sha512-6jQTc5z0KJFtr1UgFpIL3N9XSC3saRaI9PwWtzM2pSqkNGtiNkYY2OSwkOGDK2XcTRcLb1pi/aNkKZz0nxVH4Q==}
+
+ import-fresh@3.3.1:
+ resolution: {integrity: sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==}
+ engines: {node: '>=6'}
+
+ imurmurhash@0.1.4:
+ resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==}
+ engines: {node: '>=0.8.19'}
+
+ internmap@2.0.3:
+ resolution: {integrity: sha512-5Hh7Y1wQbvY5ooGgPbDaL5iYLAPzMTUrjMulskHLH6wnv/A+1q5rgEaiuqEjB+oxGXIVZs1FF+R/KPN3ZSQYYg==}
+ engines: {node: '>=12'}
+
+ is-buffer@1.1.6:
+ resolution: {integrity: sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==}
+
+ is-extglob@2.1.1:
+ resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
+ engines: {node: '>=0.10.0'}
+
+ is-glob@4.0.3:
+ resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
+ engines: {node: '>=0.10.0'}
+
+ isexe@2.0.0:
+ resolution: {integrity: sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==}
+
+ jiti@2.6.1:
+ resolution: {integrity: sha512-ekilCSN1jwRvIbgeg/57YFh8qQDNbwDb9xT/qu2DAHbFFZUicIl4ygVaAvzveMhMVr3LnpSKTNnwt8PoOfmKhQ==}
+ hasBin: true
+
+ js-tokens@4.0.0:
+ resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
+
+ js-yaml@4.1.1:
+ resolution: {integrity: sha512-qQKT4zQxXl8lLwBtHMWwaTcGfFOZviOJet3Oy/xmGk2gZH677CJM9EvtfdSkgWcATZhj/55JZ0rmy3myCT5lsA==}
+ hasBin: true
+
+ jsesc@3.1.0:
+ resolution: {integrity: sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==}
+ engines: {node: '>=6'}
+ hasBin: true
+
+ json-buffer@3.0.1:
+ resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==}
+
+ json-schema-traverse@0.4.1:
+ resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}
+
+ json-stable-stringify-without-jsonify@1.0.1:
+ resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==}
+
+ json5@2.2.3:
+ resolution: {integrity: sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==}
+ engines: {node: '>=6'}
+ hasBin: true
+
+ keyv@4.5.4:
+ resolution: {integrity: sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==}
+
+ levn@0.4.1:
+ resolution: {integrity: sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==}
+ engines: {node: '>= 0.8.0'}
+
+ lightningcss-android-arm64@1.30.2:
+ resolution: {integrity: sha512-BH9sEdOCahSgmkVhBLeU7Hc9DWeZ1Eb6wNS6Da8igvUwAe0sqROHddIlvU06q3WyXVEOYDZ6ykBZQnjTbmo4+A==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [android]
+
+ lightningcss-darwin-arm64@1.30.2:
+ resolution: {integrity: sha512-ylTcDJBN3Hp21TdhRT5zBOIi73P6/W0qwvlFEk22fkdXchtNTOU4Qc37SkzV+EKYxLouZ6M4LG9NfZ1qkhhBWA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [darwin]
+
+ lightningcss-darwin-x64@1.30.2:
+ resolution: {integrity: sha512-oBZgKchomuDYxr7ilwLcyms6BCyLn0z8J0+ZZmfpjwg9fRVZIR5/GMXd7r9RH94iDhld3UmSjBM6nXWM2TfZTQ==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [darwin]
+
+ lightningcss-freebsd-x64@1.30.2:
+ resolution: {integrity: sha512-c2bH6xTrf4BDpK8MoGG4Bd6zAMZDAXS569UxCAGcA7IKbHNMlhGQ89eRmvpIUGfKWNVdbhSbkQaWhEoMGmGslA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [freebsd]
+
+ lightningcss-linux-arm-gnueabihf@1.30.2:
+ resolution: {integrity: sha512-eVdpxh4wYcm0PofJIZVuYuLiqBIakQ9uFZmipf6LF/HRj5Bgm0eb3qL/mr1smyXIS1twwOxNWndd8z0E374hiA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm]
+ os: [linux]
+
+ lightningcss-linux-arm64-gnu@1.30.2:
+ resolution: {integrity: sha512-UK65WJAbwIJbiBFXpxrbTNArtfuznvxAJw4Q2ZGlU8kPeDIWEX1dg3rn2veBVUylA2Ezg89ktszWbaQnxD/e3A==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [glibc]
+
+ lightningcss-linux-arm64-musl@1.30.2:
+ resolution: {integrity: sha512-5Vh9dGeblpTxWHpOx8iauV02popZDsCYMPIgiuw97OJ5uaDsL86cnqSFs5LZkG3ghHoX5isLgWzMs+eD1YzrnA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [linux]
+ libc: [musl]
+
+ lightningcss-linux-x64-gnu@1.30.2:
+ resolution: {integrity: sha512-Cfd46gdmj1vQ+lR6VRTTadNHu6ALuw2pKR9lYq4FnhvgBc4zWY1EtZcAc6EffShbb1MFrIPfLDXD6Xprbnni4w==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [linux]
+ libc: [glibc]
+
+ lightningcss-linux-x64-musl@1.30.2:
+ resolution: {integrity: sha512-XJaLUUFXb6/QG2lGIW6aIk6jKdtjtcffUT0NKvIqhSBY3hh9Ch+1LCeH80dR9q9LBjG3ewbDjnumefsLsP6aiA==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [linux]
+ libc: [musl]
+
+ lightningcss-win32-arm64-msvc@1.30.2:
+ resolution: {integrity: sha512-FZn+vaj7zLv//D/192WFFVA0RgHawIcHqLX9xuWiQt7P0PtdFEVaxgF9rjM/IRYHQXNnk61/H/gb2Ei+kUQ4xQ==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [arm64]
+ os: [win32]
+
+ lightningcss-win32-x64-msvc@1.30.2:
+ resolution: {integrity: sha512-5g1yc73p+iAkid5phb4oVFMB45417DkRevRbt/El/gKXJk4jid+vPFF/AXbxn05Aky8PapwzZrdJShv5C0avjw==}
+ engines: {node: '>= 12.0.0'}
+ cpu: [x64]
+ os: [win32]
+
+ lightningcss@1.30.2:
+ resolution: {integrity: sha512-utfs7Pr5uJyyvDETitgsaqSyjCb2qNRAtuqUeWIAKztsOYdcACf2KtARYXg2pSvhkt+9NfoaNY7fxjl6nuMjIQ==}
+ engines: {node: '>= 12.0.0'}
+
+ locate-path@6.0.0:
+ resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==}
+ engines: {node: '>=10'}
+
+ lodash.merge@4.6.2:
+ resolution: {integrity: sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==}
+
+ lru-cache@5.1.1:
+ resolution: {integrity: sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==}
+
+ magic-string@0.30.21:
+ resolution: {integrity: sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==}
+
+ md5@2.3.0:
+ resolution: {integrity: sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==}
+
+ minimatch@3.1.2:
+ resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==}
+
+ minimatch@9.0.5:
+ resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==}
+ engines: {node: '>=16 || 14 >=14.17'}
+
+ motion-dom@12.30.0:
+ resolution: {integrity: sha512-p6Mp+lxm+mK4O86YVyL6KAlFDVCIqpmcBt+uMVapMBqltPXpwZ5Wj2crnN2VE7lwsas0ONCPIW9YVpMigu4F5g==}
+
+ motion-utils@12.29.2:
+ resolution: {integrity: sha512-G3kc34H2cX2gI63RqU+cZq+zWRRPSsNIOjpdl9TN4AQwC4sgwYPl/Q/Obf/d53nOm569T0fYK+tcoSV50BWx8A==}
+
+ ms@2.1.3:
+ resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
+
+ nanoid@3.3.11:
+ resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==}
+ engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
+ hasBin: true
+
+ natural-compare@1.4.0:
+ resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}
+
+ node-releases@2.0.27:
+ resolution: {integrity: sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==}
+
+ optionator@0.9.4:
+ resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==}
+ engines: {node: '>= 0.8.0'}
+
+ p-limit@3.1.0:
+ resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==}
+ engines: {node: '>=10'}
+
+ p-locate@5.0.0:
+ resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==}
+ engines: {node: '>=10'}
+
+ parent-module@1.0.1:
+ resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==}
+ engines: {node: '>=6'}
+
+ path-exists@4.0.0:
+ resolution: {integrity: sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==}
+ engines: {node: '>=8'}
+
+ path-key@3.1.1:
+ resolution: {integrity: sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==}
+ engines: {node: '>=8'}
+
+ picocolors@1.1.1:
+ resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
+
+ picomatch@4.0.3:
+ resolution: {integrity: sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==}
+ engines: {node: '>=12'}
+
+ pocketbase@0.26.5:
+ resolution: {integrity: sha512-SXcq+sRvVpNxfLxPB1C+8eRatL7ZY4o3EVl/0OdE3MeR9fhPyZt0nmmxLqYmkLvXCN9qp3lXWV/0EUYb3MmMXQ==}
+
+ postcss@8.5.6:
+ resolution: {integrity: sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==}
+ engines: {node: ^10 || ^12 || >=14}
+
+ prelude-ls@1.2.1:
+ resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==}
+ engines: {node: '>= 0.8.0'}
+
+ prettier-plugin-tailwindcss@0.7.2:
+ resolution: {integrity: sha512-LkphyK3Fw+q2HdMOoiEHWf93fNtYJwfamoKPl7UwtjFQdei/iIBoX11G6j706FzN3ymX9mPVi97qIY8328vdnA==}
+ engines: {node: '>=20.19'}
+ peerDependencies:
+ '@ianvs/prettier-plugin-sort-imports': '*'
+ '@prettier/plugin-hermes': '*'
+ '@prettier/plugin-oxc': '*'
+ '@prettier/plugin-pug': '*'
+ '@shopify/prettier-plugin-liquid': '*'
+ '@trivago/prettier-plugin-sort-imports': '*'
+ '@zackad/prettier-plugin-twig': '*'
+ prettier: ^3.0
+ prettier-plugin-astro: '*'
+ prettier-plugin-css-order: '*'
+ prettier-plugin-jsdoc: '*'
+ prettier-plugin-marko: '*'
+ prettier-plugin-multiline-arrays: '*'
+ prettier-plugin-organize-attributes: '*'
+ prettier-plugin-organize-imports: '*'
+ prettier-plugin-sort-imports: '*'
+ prettier-plugin-svelte: '*'
+ peerDependenciesMeta:
+ '@ianvs/prettier-plugin-sort-imports':
+ optional: true
+ '@prettier/plugin-hermes':
+ optional: true
+ '@prettier/plugin-oxc':
+ optional: true
+ '@prettier/plugin-pug':
+ optional: true
+ '@shopify/prettier-plugin-liquid':
+ optional: true
+ '@trivago/prettier-plugin-sort-imports':
+ optional: true
+ '@zackad/prettier-plugin-twig':
+ optional: true
+ prettier-plugin-astro:
+ optional: true
+ prettier-plugin-css-order:
+ optional: true
+ prettier-plugin-jsdoc:
+ optional: true
+ prettier-plugin-marko:
+ optional: true
+ prettier-plugin-multiline-arrays:
+ optional: true
+ prettier-plugin-organize-attributes:
+ optional: true
+ prettier-plugin-organize-imports:
+ optional: true
+ prettier-plugin-sort-imports:
+ optional: true
+ prettier-plugin-svelte:
+ optional: true
+
+ prettier@3.8.1:
+ resolution: {integrity: sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==}
+ engines: {node: '>=14'}
+ hasBin: true
+
+ punycode@2.3.1:
+ resolution: {integrity: sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==}
+ engines: {node: '>=6'}
+
+ radix-ui@1.4.3:
+ resolution: {integrity: sha512-aWizCQiyeAenIdUbqEpXgRA1ya65P13NKn/W8rWkcN0OPkRDxdBVLWnIEDsS2RpwCK2nobI7oMUSmexzTDyAmA==}
+ peerDependencies:
+ '@types/react': '*'
+ '@types/react-dom': '*'
+ react: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ react-dom: ^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ '@types/react-dom':
+ optional: true
+
+ react-dom@19.2.3:
+ resolution: {integrity: sha512-yELu4WmLPw5Mr/lmeEpox5rw3RETacE++JgHqQzd2dg+YbJuat3jH4ingc+WPZhxaoFzdv9y33G+F7Nl5O0GBg==}
+ peerDependencies:
+ react: ^19.2.3
+
+ react-i18next@16.5.4:
+ resolution: {integrity: sha512-6yj+dcfMncEC21QPhOTsW8mOSO+pzFmT6uvU7XXdvM/Cp38zJkmTeMeKmTrmCMD5ToT79FmiE/mRWiYWcJYW4g==}
+ peerDependencies:
+ i18next: '>= 25.6.2'
+ react: '>= 16.8.0'
+ react-dom: '*'
+ react-native: '*'
+ typescript: ^5
+ peerDependenciesMeta:
+ react-dom:
+ optional: true
+ react-native:
+ optional: true
+ typescript:
+ optional: true
+
+ react-is@19.2.4:
+ resolution: {integrity: sha512-W+EWGn2v0ApPKgKKCy/7s7WHXkboGcsrXE+2joLyVxkbyVQfO3MUEaUQDHoSmb8TFFrSKYa9mw64WZHNHSDzYA==}
+
+ react-loading-indicators@1.0.1:
+ resolution: {integrity: sha512-tmGHdzw4arI83y8VYirck1n7suvdh1LAkeLk2v2pYMAWhPesQWcexqWKh9x6jDz/XAaIX/wFKS9MdDV8sSdoVw==}
+ engines: {node: '>=12.0.0'}
+ peerDependencies:
+ react: '>=16.8.0'
+ react-dom: '>=16.8.0'
+
+ react-redux@9.2.0:
+ resolution: {integrity: sha512-ROY9fvHhwOD9ySfrF0wmvu//bKCQ6AeZZq1nJNtbDC+kk5DuSuNX/n6YWYF/SYy7bSba4D4FSz8DJeKY/S/r+g==}
+ peerDependencies:
+ '@types/react': ^18.2.25 || ^19
+ react: ^18.0 || ^19
+ redux: ^5.0.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ redux:
+ optional: true
+
+ react-refresh@0.18.0:
+ resolution: {integrity: sha512-QgT5//D3jfjJb6Gsjxv0Slpj23ip+HtOpnNgnb2S5zU3CB26G/IDPGoy4RJB42wzFE46DRsstbW6tKHoKbhAxw==}
+ engines: {node: '>=0.10.0'}
+
+ react-remove-scroll-bar@2.3.8:
+ resolution: {integrity: sha512-9r+yi9+mgU33AKcj6IbT9oRCO78WriSj6t/cF8DWBZJ9aOGPOTEDvdUDz1FwKim7QXWwmHqtdHnRJfhAxEG46Q==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ react-remove-scroll@2.7.2:
+ resolution: {integrity: sha512-Iqb9NjCCTt6Hf+vOdNIZGdTiH1QSqr27H/Ek9sv/a97gfueI/5h1s3yRi1nngzMUaOOToin5dI1dXKdXiF+u0Q==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ react-router-dom@7.11.0:
+ resolution: {integrity: sha512-e49Ir/kMGRzFOOrYQBdoitq3ULigw4lKbAyKusnvtDu2t4dBX4AGYPrzNvorXmVuOyeakai6FUPW5MmibvVG8g==}
+ engines: {node: '>=20.0.0'}
+ peerDependencies:
+ react: '>=18'
+ react-dom: '>=18'
+
+ react-router@7.11.0:
+ resolution: {integrity: sha512-uI4JkMmjbWCZc01WVP2cH7ZfSzH91JAZUDd7/nIprDgWxBV1TkkmLToFh7EbMTcMak8URFRa2YoBL/W8GWnCTQ==}
+ engines: {node: '>=20.0.0'}
+ peerDependencies:
+ react: '>=18'
+ react-dom: '>=18'
+ peerDependenciesMeta:
+ react-dom:
+ optional: true
+
+ react-style-singleton@2.2.3:
+ resolution: {integrity: sha512-b6jSvxvVnyptAiLjbkWLE/lOnR4lfTtDAl+eUC7RZy+QQWc6wRzIV2CE6xBuMmDxc2qIihtDCZD5NPOFl7fRBQ==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ react@19.2.3:
+ resolution: {integrity: sha512-Ku/hhYbVjOQnXDZFv2+RibmLFGwFdeeKHFcOTlrt7xplBnya5OGn/hIRDsqDiSUcfORsDC7MPxwork8jBwsIWA==}
+ engines: {node: '>=0.10.0'}
+
+ recharts@3.7.0:
+ resolution: {integrity: sha512-l2VCsy3XXeraxIID9fx23eCb6iCBsxUQDnE8tWm6DFdszVAO7WVY/ChAD9wVit01y6B2PMupYiMmQwhgPHc9Ew==}
+ engines: {node: '>=18'}
+ peerDependencies:
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
+ react-dom: ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
+ react-is: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
+
+ redux-thunk@3.1.0:
+ resolution: {integrity: sha512-NW2r5T6ksUKXCabzhL9z+h206HQw/NJkcLm1GPImRQ8IzfXwRGqjVhKJGauHirT0DAuyy6hjdnMZaRoAcy0Klw==}
+ peerDependencies:
+ redux: ^5.0.0
+
+ redux@5.0.1:
+ resolution: {integrity: sha512-M9/ELqF6fy8FwmkpnF0S3YKOqMyoWJ4+CS5Efg2ct3oY9daQvd/Pc71FpGZsVsbl3Cpb+IIcjBDUnnyBdQbq4w==}
+
+ reselect@5.1.1:
+ resolution: {integrity: sha512-K/BG6eIky/SBpzfHZv/dd+9JBFiS4SWV7FIujVyJRux6e45+73RaUHXLmIR1f7WOMaQ0U1km6qwklRQxpJJY0w==}
+
+ resolve-from@4.0.0:
+ resolution: {integrity: sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==}
+ engines: {node: '>=4'}
+
+ rollup@4.55.1:
+ resolution: {integrity: sha512-wDv/Ht1BNHB4upNbK74s9usvl7hObDnvVzknxqY/E/O3X6rW1U1rV1aENEfJ54eFZDTNo7zv1f5N4edCluH7+A==}
+ engines: {node: '>=18.0.0', npm: '>=8.0.0'}
+ hasBin: true
+
+ scheduler@0.27.0:
+ resolution: {integrity: sha512-eNv+WrVbKu1f3vbYJT/xtiF5syA5HPIMtf9IgY/nKg0sWqzAUEvqY/xm7OcZc/qafLx/iO9FgOmeSAp4v5ti/Q==}
+
+ semver@6.3.1:
+ resolution: {integrity: sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==}
+ hasBin: true
+
+ semver@7.7.3:
+ resolution: {integrity: sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==}
+ engines: {node: '>=10'}
+ hasBin: true
+
+ set-cookie-parser@2.7.2:
+ resolution: {integrity: sha512-oeM1lpU/UvhTxw+g3cIfxXHyJRc/uidd3yK1P242gzHds0udQBYzs3y8j4gCCW+ZJ7ad0yctld8RYO+bdurlvw==}
+
+ shebang-command@2.0.0:
+ resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==}
+ engines: {node: '>=8'}
+
+ shebang-regex@3.0.0:
+ resolution: {integrity: sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==}
+ engines: {node: '>=8'}
+
+ sonner@2.0.7:
+ resolution: {integrity: sha512-W6ZN4p58k8aDKA4XPcx2hpIQXBRAgyiWVkYhT7CvK6D3iAu7xjvVyhQHg2/iaKJZ1XVJ4r7XuwGL+WGEK37i9w==}
+ peerDependencies:
+ react: ^18.0.0 || ^19.0.0 || ^19.0.0-rc
+ react-dom: ^18.0.0 || ^19.0.0 || ^19.0.0-rc
+
+ source-map-js@1.2.1:
+ resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
+ engines: {node: '>=0.10.0'}
+
+ source-map-support@0.5.21:
+ resolution: {integrity: sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==}
+
+ source-map@0.6.1:
+ resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==}
+ engines: {node: '>=0.10.0'}
+
+ strip-json-comments@3.1.1:
+ resolution: {integrity: sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==}
+ engines: {node: '>=8'}
+
+ supports-color@7.2.0:
+ resolution: {integrity: sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==}
+ engines: {node: '>=8'}
+
+ tailwindcss@4.1.18:
+ resolution: {integrity: sha512-4+Z+0yiYyEtUVCScyfHCxOYP06L5Ne+JiHhY2IjR2KWMIWhJOYZKLSGZaP5HkZ8+bY0cxfzwDE5uOmzFXyIwxw==}
+
+ tapable@2.3.0:
+ resolution: {integrity: sha512-g9ljZiwki/LfxmQADO3dEY1CbpmXT5Hm2fJ+QaGKwSXUylMybePR7/67YW7jOrrvjEgL1Fmz5kzyAjWVWLlucg==}
+ engines: {node: '>=6'}
+
+ terser@5.46.0:
+ resolution: {integrity: sha512-jTwoImyr/QbOWFFso3YoU3ik0jBBDJ6JTOQiy/J2YxVJdZCc+5u7skhNwiOR3FQIygFqVUPHl7qbbxtjW2K3Qg==}
+ engines: {node: '>=10'}
+ hasBin: true
+
+ tiny-invariant@1.3.3:
+ resolution: {integrity: sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==}
+
+ tinyglobby@0.2.15:
+ resolution: {integrity: sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==}
+ engines: {node: '>=12.0.0'}
+
+ ts-api-utils@2.4.0:
+ resolution: {integrity: sha512-3TaVTaAv2gTiMB35i3FiGJaRfwb3Pyn/j3m/bfAvGe8FB7CF6u+LMYqYlDh7reQf7UNvoTvdfAqHGmPGOSsPmA==}
+ engines: {node: '>=18.12'}
+ peerDependencies:
+ typescript: '>=4.8.4'
+
+ tslib@2.8.1:
+ resolution: {integrity: sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==}
+
+ type-check@0.4.0:
+ resolution: {integrity: sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==}
+ engines: {node: '>= 0.8.0'}
+
+ typescript-eslint@8.52.0:
+ resolution: {integrity: sha512-atlQQJ2YkO4pfTVQmQ+wvYQwexPDOIgo+RaVcD7gHgzy/IQA+XTyuxNM9M9TVXvttkF7koBHmcwisKdOAf2EcA==}
+ engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
+ peerDependencies:
+ eslint: ^8.57.0 || ^9.0.0
+ typescript: '>=4.8.4 <6.0.0'
+
+ typescript@5.9.3:
+ resolution: {integrity: sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==}
+ engines: {node: '>=14.17'}
+ hasBin: true
+
+ undici-types@7.16.0:
+ resolution: {integrity: sha512-Zz+aZWSj8LE6zoxD+xrjh4VfkIG8Ya6LvYkZqtUQGJPZjYl53ypCaUwWqo7eI0x66KBGeRo+mlBEkMSeSZ38Nw==}
+
+ update-browserslist-db@1.2.3:
+ resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==}
+ hasBin: true
+ peerDependencies:
+ browserslist: '>= 4.21.0'
+
+ uri-js@4.4.1:
+ resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}
+
+ use-callback-ref@1.3.3:
+ resolution: {integrity: sha512-jQL3lRnocaFtu3V00JToYz/4QkNWswxijDaCVNZRiRTO3HQDLsdu1ZtmIUvV4yPp+rvWm5j0y0TG/S61cuijTg==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ use-sidecar@1.1.3:
+ resolution: {integrity: sha512-Fedw0aZvkhynoPYlA5WXrMCAMm+nSWdZt6lzJQ7Ok8S6Q+VsHmHpRWndVRJ8Be0ZbkfPc5LRYH+5XrzXcEeLRQ==}
+ engines: {node: '>=10'}
+ peerDependencies:
+ '@types/react': '*'
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0 || ^19.0.0-rc
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+
+ use-sync-external-store@1.6.0:
+ resolution: {integrity: sha512-Pp6GSwGP/NrPIrxVFAIkOQeyw8lFenOHijQWkUTrDvrF4ALqylP2C/KCkeS9dpUM3KvYRQhna5vt7IL95+ZQ9w==}
+ peerDependencies:
+ react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
+
+ victory-vendor@37.3.6:
+ resolution: {integrity: sha512-SbPDPdDBYp+5MJHhBCAyI7wKM3d5ivekigc2Dk2s7pgbZ9wIgIBYGVw4zGHBml/qTFbexrofXW6Gu4noGxrOwQ==}
+
+ vite@7.3.0:
+ resolution: {integrity: sha512-dZwN5L1VlUBewiP6H9s2+B3e3Jg96D0vzN+Ry73sOefebhYr9f94wwkMNN/9ouoU8pV1BqA1d1zGk8928cx0rg==}
+ engines: {node: ^20.19.0 || >=22.12.0}
+ hasBin: true
+ peerDependencies:
+ '@types/node': ^20.19.0 || >=22.12.0
+ jiti: '>=1.21.0'
+ less: ^4.0.0
+ lightningcss: ^1.21.0
+ sass: ^1.70.0
+ sass-embedded: ^1.70.0
+ stylus: '>=0.54.8'
+ sugarss: ^5.0.0
+ terser: ^5.16.0
+ tsx: ^4.8.1
+ yaml: ^2.4.2
+ peerDependenciesMeta:
+ '@types/node':
+ optional: true
+ jiti:
+ optional: true
+ less:
+ optional: true
+ lightningcss:
+ optional: true
+ sass:
+ optional: true
+ sass-embedded:
+ optional: true
+ stylus:
+ optional: true
+ sugarss:
+ optional: true
+ terser:
+ optional: true
+ tsx:
+ optional: true
+ yaml:
+ optional: true
+
+ void-elements@3.1.0:
+ resolution: {integrity: sha512-Dhxzh5HZuiHQhbvTW9AMetFfBHDMYpo23Uo9btPXgdYP+3T5S+p+jgNy7spra+veYhBP2dCSgxR/i2Y02h5/6w==}
+ engines: {node: '>=0.10.0'}
+
+ which@2.0.2:
+ resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==}
+ engines: {node: '>= 8'}
+ hasBin: true
+
+ word-wrap@1.2.5:
+ resolution: {integrity: sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==}
+ engines: {node: '>=0.10.0'}
+
+ yallist@3.1.1:
+ resolution: {integrity: sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==}
+
+ yocto-queue@0.1.0:
+ resolution: {integrity: sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==}
+ engines: {node: '>=10'}
+
+ zod-validation-error@4.0.2:
+ resolution: {integrity: sha512-Q6/nZLe6jxuU80qb/4uJ4t5v2VEZ44lzQjPDhYJNztRQ4wyWc6VF3D3Kb/fAuPetZQnhS3hnajCf9CsWesghLQ==}
+ engines: {node: '>=18.0.0'}
+ peerDependencies:
+ zod: ^3.25.0 || ^4.0.0
+
+ zod@4.3.5:
+ resolution: {integrity: sha512-k7Nwx6vuWx1IJ9Bjuf4Zt1PEllcwe7cls3VNzm4CQ1/hgtFUK2bRNG3rvnpPUhFjmqJKAKtjV576KnUkHocg/g==}
+
+ zustand@4.5.7:
+ resolution: {integrity: sha512-CHOUy7mu3lbD6o6LJLfllpjkzhHXSBlX8B9+qPddUsIfeF5S/UZ5q0kmCsnRqT1UHFQZchNFDDzMbQsuesHWlw==}
+ engines: {node: '>=12.7.0'}
+ peerDependencies:
+ '@types/react': '>=16.8'
+ immer: '>=9.0.6'
+ react: '>=16.8'
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ immer:
+ optional: true
+ react:
+ optional: true
+
+ zustand@5.0.11:
+ resolution: {integrity: sha512-fdZY+dk7zn/vbWNCYmzZULHRrss0jx5pPFiOuMZ/5HJN6Yv3u+1Wswy/4MpZEkEGhtNH+pwxZB8OKgUBPzYAGg==}
+ engines: {node: '>=12.20.0'}
+ peerDependencies:
+ '@types/react': '>=18.0.0'
+ immer: '>=9.0.6'
+ react: '>=18.0.0'
+ use-sync-external-store: '>=1.2.0'
+ peerDependenciesMeta:
+ '@types/react':
+ optional: true
+ immer:
+ optional: true
+ react:
+ optional: true
+ use-sync-external-store:
+ optional: true
+
+snapshots:
+
+ '@babel/code-frame@7.27.1':
+ dependencies:
+ '@babel/helper-validator-identifier': 7.28.5
+ js-tokens: 4.0.0
+ picocolors: 1.1.1
+
+ '@babel/compat-data@7.28.5': {}
+
+ '@babel/core@7.28.5':
+ dependencies:
+ '@babel/code-frame': 7.27.1
+ '@babel/generator': 7.28.5
+ '@babel/helper-compilation-targets': 7.27.2
+ '@babel/helper-module-transforms': 7.28.3(@babel/core@7.28.5)
+ '@babel/helpers': 7.28.4
+ '@babel/parser': 7.28.5
+ '@babel/template': 7.27.2
+ '@babel/traverse': 7.28.5
+ '@babel/types': 7.28.5
+ '@jridgewell/remapping': 2.3.5
+ convert-source-map: 2.0.0
+ debug: 4.4.3
+ gensync: 1.0.0-beta.2
+ json5: 2.2.3
+ semver: 6.3.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/generator@7.28.5':
+ dependencies:
+ '@babel/parser': 7.28.5
+ '@babel/types': 7.28.5
+ '@jridgewell/gen-mapping': 0.3.13
+ '@jridgewell/trace-mapping': 0.3.31
+ jsesc: 3.1.0
+
+ '@babel/helper-compilation-targets@7.27.2':
+ dependencies:
+ '@babel/compat-data': 7.28.5
+ '@babel/helper-validator-option': 7.27.1
+ browserslist: 4.28.1
+ lru-cache: 5.1.1
+ semver: 6.3.1
+
+ '@babel/helper-globals@7.28.0': {}
+
+ '@babel/helper-module-imports@7.27.1':
+ dependencies:
+ '@babel/traverse': 7.28.5
+ '@babel/types': 7.28.5
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/helper-module-transforms@7.28.3(@babel/core@7.28.5)':
+ dependencies:
+ '@babel/core': 7.28.5
+ '@babel/helper-module-imports': 7.27.1
+ '@babel/helper-validator-identifier': 7.28.5
+ '@babel/traverse': 7.28.5
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/helper-plugin-utils@7.27.1': {}
+
+ '@babel/helper-string-parser@7.27.1': {}
+
+ '@babel/helper-validator-identifier@7.28.5': {}
+
+ '@babel/helper-validator-option@7.27.1': {}
+
+ '@babel/helpers@7.28.4':
+ dependencies:
+ '@babel/template': 7.27.2
+ '@babel/types': 7.28.5
+
+ '@babel/parser@7.28.5':
+ dependencies:
+ '@babel/types': 7.28.5
+
+ '@babel/plugin-transform-react-jsx-self@7.27.1(@babel/core@7.28.5)':
+ dependencies:
+ '@babel/core': 7.28.5
+ '@babel/helper-plugin-utils': 7.27.1
+
+ '@babel/plugin-transform-react-jsx-source@7.27.1(@babel/core@7.28.5)':
+ dependencies:
+ '@babel/core': 7.28.5
+ '@babel/helper-plugin-utils': 7.27.1
+
+ '@babel/runtime@7.28.6': {}
+
+ '@babel/template@7.27.2':
+ dependencies:
+ '@babel/code-frame': 7.27.1
+ '@babel/parser': 7.28.5
+ '@babel/types': 7.28.5
+
+ '@babel/traverse@7.28.5':
+ dependencies:
+ '@babel/code-frame': 7.27.1
+ '@babel/generator': 7.28.5
+ '@babel/helper-globals': 7.28.0
+ '@babel/parser': 7.28.5
+ '@babel/template': 7.27.2
+ '@babel/types': 7.28.5
+ debug: 4.4.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@babel/types@7.28.5':
+ dependencies:
+ '@babel/helper-string-parser': 7.27.1
+ '@babel/helper-validator-identifier': 7.28.5
+
+ '@esbuild/aix-ppc64@0.27.2':
+ optional: true
+
+ '@esbuild/android-arm64@0.27.2':
+ optional: true
+
+ '@esbuild/android-arm@0.27.2':
+ optional: true
+
+ '@esbuild/android-x64@0.27.2':
+ optional: true
+
+ '@esbuild/darwin-arm64@0.27.2':
+ optional: true
+
+ '@esbuild/darwin-x64@0.27.2':
+ optional: true
+
+ '@esbuild/freebsd-arm64@0.27.2':
+ optional: true
+
+ '@esbuild/freebsd-x64@0.27.2':
+ optional: true
+
+ '@esbuild/linux-arm64@0.27.2':
+ optional: true
+
+ '@esbuild/linux-arm@0.27.2':
+ optional: true
+
+ '@esbuild/linux-ia32@0.27.2':
+ optional: true
+
+ '@esbuild/linux-loong64@0.27.2':
+ optional: true
+
+ '@esbuild/linux-mips64el@0.27.2':
+ optional: true
+
+ '@esbuild/linux-ppc64@0.27.2':
+ optional: true
+
+ '@esbuild/linux-riscv64@0.27.2':
+ optional: true
+
+ '@esbuild/linux-s390x@0.27.2':
+ optional: true
+
+ '@esbuild/linux-x64@0.27.2':
+ optional: true
+
+ '@esbuild/netbsd-arm64@0.27.2':
+ optional: true
+
+ '@esbuild/netbsd-x64@0.27.2':
+ optional: true
+
+ '@esbuild/openbsd-arm64@0.27.2':
+ optional: true
+
+ '@esbuild/openbsd-x64@0.27.2':
+ optional: true
+
+ '@esbuild/openharmony-arm64@0.27.2':
+ optional: true
+
+ '@esbuild/sunos-x64@0.27.2':
+ optional: true
+
+ '@esbuild/win32-arm64@0.27.2':
+ optional: true
+
+ '@esbuild/win32-ia32@0.27.2':
+ optional: true
+
+ '@esbuild/win32-x64@0.27.2':
+ optional: true
+
+ '@eslint-community/eslint-utils@4.9.1(eslint@9.39.2(jiti@2.6.1))':
+ dependencies:
+ eslint: 9.39.2(jiti@2.6.1)
+ eslint-visitor-keys: 3.4.3
+
+ '@eslint-community/regexpp@4.12.2': {}
+
+ '@eslint/config-array@0.21.1':
+ dependencies:
+ '@eslint/object-schema': 2.1.7
+ debug: 4.4.3
+ minimatch: 3.1.2
+ transitivePeerDependencies:
+ - supports-color
+
+ '@eslint/config-helpers@0.4.2':
+ dependencies:
+ '@eslint/core': 0.17.0
+
+ '@eslint/core@0.17.0':
+ dependencies:
+ '@types/json-schema': 7.0.15
+
+ '@eslint/eslintrc@3.3.3':
+ dependencies:
+ ajv: 6.12.6
+ debug: 4.4.3
+ espree: 10.4.0
+ globals: 14.0.0
+ ignore: 5.3.2
+ import-fresh: 3.3.1
+ js-yaml: 4.1.1
+ minimatch: 3.1.2
+ strip-json-comments: 3.1.1
+ transitivePeerDependencies:
+ - supports-color
+
+ '@eslint/js@9.39.2': {}
+
+ '@eslint/object-schema@2.1.7': {}
+
+ '@eslint/plugin-kit@0.4.1':
+ dependencies:
+ '@eslint/core': 0.17.0
+ levn: 0.4.1
+
+ '@floating-ui/core@1.7.3':
+ dependencies:
+ '@floating-ui/utils': 0.2.10
+
+ '@floating-ui/dom@1.7.4':
+ dependencies:
+ '@floating-ui/core': 1.7.3
+ '@floating-ui/utils': 0.2.10
+
+ '@floating-ui/react-dom@2.1.6(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@floating-ui/dom': 1.7.4
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+
+ '@floating-ui/utils@0.2.10': {}
+
+ '@humanfs/core@0.19.1': {}
+
+ '@humanfs/node@0.16.7':
+ dependencies:
+ '@humanfs/core': 0.19.1
+ '@humanwhocodes/retry': 0.4.3
+
+ '@humanwhocodes/module-importer@1.0.1': {}
+
+ '@humanwhocodes/retry@0.4.3': {}
+
+ '@iconify/react@6.0.2(react@19.2.3)':
+ dependencies:
+ '@iconify/types': 2.0.0
+ react: 19.2.3
+
+ '@iconify/types@2.0.0': {}
+
+ '@jridgewell/gen-mapping@0.3.13':
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.5.5
+ '@jridgewell/trace-mapping': 0.3.31
+
+ '@jridgewell/remapping@2.3.5':
+ dependencies:
+ '@jridgewell/gen-mapping': 0.3.13
+ '@jridgewell/trace-mapping': 0.3.31
+
+ '@jridgewell/resolve-uri@3.1.2': {}
+
+ '@jridgewell/source-map@0.3.11':
+ dependencies:
+ '@jridgewell/gen-mapping': 0.3.13
+ '@jridgewell/trace-mapping': 0.3.31
+
+ '@jridgewell/sourcemap-codec@1.5.5': {}
+
+ '@jridgewell/trace-mapping@0.3.31':
+ dependencies:
+ '@jridgewell/resolve-uri': 3.1.2
+ '@jridgewell/sourcemap-codec': 1.5.5
+
+ '@radix-ui/colors@3.0.0': {}
+
+ '@radix-ui/number@1.1.1': {}
+
+ '@radix-ui/primitive@1.1.3': {}
+
+ '@radix-ui/react-accessible-icon@1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/react-visually-hidden': 1.2.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-accordion@1.2.12(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-collapsible': 1.1.12(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-collection': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-direction': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-id': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-alert-dialog@1.1.15(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-dialog': 1.1.15(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-slot': 1.2.3(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-arrow@1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-aspect-ratio@1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-avatar@1.1.10(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-checkbox@1.3.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-previous': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-size': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-collapsible@1.1.12(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-id': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-collection@1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-slot': 1.2.3(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-compose-refs@1.1.2(@types/react@19.2.7)(react@19.2.3)':
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ '@radix-ui/react-context-menu@2.2.16(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-menu': 2.1.16(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-context@1.1.2(@types/react@19.2.7)(react@19.2.3)':
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ '@radix-ui/react-dialog@1.1.15(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-focus-guards': 1.1.3(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-focus-scope': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-id': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-portal': 1.1.9(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-slot': 1.2.3(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ aria-hidden: 1.2.6
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ react-remove-scroll: 2.7.2(@types/react@19.2.7)(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-direction@1.1.1(@types/react@19.2.7)(react@19.2.3)':
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ '@radix-ui/react-dismissable-layer@1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-escape-keydown': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-dropdown-menu@2.1.16(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-id': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-menu': 2.1.16(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-focus-guards@1.1.3(@types/react@19.2.7)(react@19.2.3)':
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ '@radix-ui/react-focus-scope@1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-form@0.1.8(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-id': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-label': 2.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-hover-card@1.1.15(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-popper': 1.2.8(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-portal': 1.1.9(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-id@1.1.1(@types/react@19.2.7)(react@19.2.3)':
+ dependencies:
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ '@radix-ui/react-label@2.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-menu@2.1.16(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-collection': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-direction': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-focus-guards': 1.1.3(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-focus-scope': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-id': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-popper': 1.2.8(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-portal': 1.1.9(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-roving-focus': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-slot': 1.2.3(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ aria-hidden: 1.2.6
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ react-remove-scroll: 2.7.2(@types/react@19.2.7)(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-menubar@1.1.16(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-collection': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-direction': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-id': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-menu': 2.1.16(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-roving-focus': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-navigation-menu@1.2.14(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-collection': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-direction': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-id': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-previous': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-visually-hidden': 1.2.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-one-time-password-field@0.1.8(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/number': 1.1.1
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-collection': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-direction': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-roving-focus': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-effect-event': 0.0.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-password-toggle-field@0.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-id': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-effect-event': 0.0.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-popover@1.1.15(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-focus-guards': 1.1.3(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-focus-scope': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-id': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-popper': 1.2.8(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-portal': 1.1.9(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-slot': 1.2.3(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ aria-hidden: 1.2.6
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ react-remove-scroll: 2.7.2(@types/react@19.2.7)(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-popper@1.2.8(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@floating-ui/react-dom': 2.1.6(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-arrow': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-rect': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-size': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/rect': 1.1.1
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-portal@1.1.9(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-presence@1.1.5(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-primitive@2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/react-slot': 1.2.3(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-progress@1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-radio-group@1.3.8(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-direction': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-roving-focus': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-previous': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-size': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-roving-focus@1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-collection': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-direction': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-id': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-scroll-area@1.2.10(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/number': 1.1.1
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-direction': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-select@2.2.6(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/number': 1.1.1
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-collection': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-direction': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-focus-guards': 1.1.3(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-focus-scope': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-id': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-popper': 1.2.8(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-portal': 1.1.9(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-slot': 1.2.3(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-previous': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-visually-hidden': 1.2.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ aria-hidden: 1.2.6
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ react-remove-scroll: 2.7.2(@types/react@19.2.7)(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-separator@1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-slider@1.3.6(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/number': 1.1.1
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-collection': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-direction': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-previous': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-size': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-slot@1.2.3(@types/react@19.2.7)(react@19.2.3)':
+ dependencies:
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ '@radix-ui/react-switch@1.2.6(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-previous': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-size': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-tabs@1.1.13(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-direction': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-id': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-roving-focus': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-toast@1.2.15(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-collection': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-portal': 1.1.9(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-visually-hidden': 1.2.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-toggle-group@1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-direction': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-roving-focus': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-toggle': 1.1.10(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-toggle@1.1.10(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-toolbar@1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-direction': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-roving-focus': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-separator': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-toggle-group': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-tooltip@1.2.8(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-id': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-popper': 1.2.8(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-portal': 1.1.9(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-slot': 1.2.3(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-visually-hidden': 1.2.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/react-use-callback-ref@1.1.1(@types/react@19.2.7)(react@19.2.3)':
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ '@radix-ui/react-use-controllable-state@1.2.2(@types/react@19.2.7)(react@19.2.3)':
+ dependencies:
+ '@radix-ui/react-use-effect-event': 0.0.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ '@radix-ui/react-use-effect-event@0.0.2(@types/react@19.2.7)(react@19.2.3)':
+ dependencies:
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ '@radix-ui/react-use-escape-keydown@1.1.1(@types/react@19.2.7)(react@19.2.3)':
+ dependencies:
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ '@radix-ui/react-use-is-hydrated@0.1.0(@types/react@19.2.7)(react@19.2.3)':
+ dependencies:
+ react: 19.2.3
+ use-sync-external-store: 1.6.0(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ '@radix-ui/react-use-layout-effect@1.1.1(@types/react@19.2.7)(react@19.2.3)':
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ '@radix-ui/react-use-previous@1.1.1(@types/react@19.2.7)(react@19.2.3)':
+ dependencies:
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ '@radix-ui/react-use-rect@1.1.1(@types/react@19.2.7)(react@19.2.3)':
+ dependencies:
+ '@radix-ui/rect': 1.1.1
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ '@radix-ui/react-use-size@1.1.1(@types/react@19.2.7)(react@19.2.3)':
+ dependencies:
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ react: 19.2.3
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ '@radix-ui/react-visually-hidden@1.2.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@radix-ui/rect@1.1.1': {}
+
+ '@radix-ui/themes@3.2.1(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@radix-ui/colors': 3.0.0
+ classnames: 2.5.1
+ radix-ui: 1.4.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ react-remove-scroll-bar: 2.3.8(@types/react@19.2.7)(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ '@reduxjs/toolkit@2.11.2(react-redux@9.2.0(@types/react@19.2.7)(react@19.2.3)(redux@5.0.1))(react@19.2.3)':
+ dependencies:
+ '@standard-schema/spec': 1.1.0
+ '@standard-schema/utils': 0.3.0
+ immer: 11.1.3
+ redux: 5.0.1
+ redux-thunk: 3.1.0(redux@5.0.1)
+ reselect: 5.1.1
+ optionalDependencies:
+ react: 19.2.3
+ react-redux: 9.2.0(@types/react@19.2.7)(react@19.2.3)(redux@5.0.1)
+
+ '@rolldown/pluginutils@1.0.0-beta.53': {}
+
+ '@rollup/rollup-android-arm-eabi@4.55.1':
+ optional: true
+
+ '@rollup/rollup-android-arm64@4.55.1':
+ optional: true
+
+ '@rollup/rollup-darwin-arm64@4.55.1':
+ optional: true
+
+ '@rollup/rollup-darwin-x64@4.55.1':
+ optional: true
+
+ '@rollup/rollup-freebsd-arm64@4.55.1':
+ optional: true
+
+ '@rollup/rollup-freebsd-x64@4.55.1':
+ optional: true
+
+ '@rollup/rollup-linux-arm-gnueabihf@4.55.1':
+ optional: true
+
+ '@rollup/rollup-linux-arm-musleabihf@4.55.1':
+ optional: true
+
+ '@rollup/rollup-linux-arm64-gnu@4.55.1':
+ optional: true
+
+ '@rollup/rollup-linux-arm64-musl@4.55.1':
+ optional: true
+
+ '@rollup/rollup-linux-loong64-gnu@4.55.1':
+ optional: true
+
+ '@rollup/rollup-linux-loong64-musl@4.55.1':
+ optional: true
+
+ '@rollup/rollup-linux-ppc64-gnu@4.55.1':
+ optional: true
+
+ '@rollup/rollup-linux-ppc64-musl@4.55.1':
+ optional: true
+
+ '@rollup/rollup-linux-riscv64-gnu@4.55.1':
+ optional: true
+
+ '@rollup/rollup-linux-riscv64-musl@4.55.1':
+ optional: true
+
+ '@rollup/rollup-linux-s390x-gnu@4.55.1':
+ optional: true
+
+ '@rollup/rollup-linux-x64-gnu@4.55.1':
+ optional: true
+
+ '@rollup/rollup-linux-x64-musl@4.55.1':
+ optional: true
+
+ '@rollup/rollup-openbsd-x64@4.55.1':
+ optional: true
+
+ '@rollup/rollup-openharmony-arm64@4.55.1':
+ optional: true
+
+ '@rollup/rollup-win32-arm64-msvc@4.55.1':
+ optional: true
+
+ '@rollup/rollup-win32-ia32-msvc@4.55.1':
+ optional: true
+
+ '@rollup/rollup-win32-x64-gnu@4.55.1':
+ optional: true
+
+ '@rollup/rollup-win32-x64-msvc@4.55.1':
+ optional: true
+
+ '@standard-schema/spec@1.1.0': {}
+
+ '@standard-schema/utils@0.3.0': {}
+
+ '@tailwindcss/node@4.1.18':
+ dependencies:
+ '@jridgewell/remapping': 2.3.5
+ enhanced-resolve: 5.18.4
+ jiti: 2.6.1
+ lightningcss: 1.30.2
+ magic-string: 0.30.21
+ source-map-js: 1.2.1
+ tailwindcss: 4.1.18
+
+ '@tailwindcss/oxide-android-arm64@4.1.18':
+ optional: true
+
+ '@tailwindcss/oxide-darwin-arm64@4.1.18':
+ optional: true
+
+ '@tailwindcss/oxide-darwin-x64@4.1.18':
+ optional: true
+
+ '@tailwindcss/oxide-freebsd-x64@4.1.18':
+ optional: true
+
+ '@tailwindcss/oxide-linux-arm-gnueabihf@4.1.18':
+ optional: true
+
+ '@tailwindcss/oxide-linux-arm64-gnu@4.1.18':
+ optional: true
+
+ '@tailwindcss/oxide-linux-arm64-musl@4.1.18':
+ optional: true
+
+ '@tailwindcss/oxide-linux-x64-gnu@4.1.18':
+ optional: true
+
+ '@tailwindcss/oxide-linux-x64-musl@4.1.18':
+ optional: true
+
+ '@tailwindcss/oxide-wasm32-wasi@4.1.18':
+ optional: true
+
+ '@tailwindcss/oxide-win32-arm64-msvc@4.1.18':
+ optional: true
+
+ '@tailwindcss/oxide-win32-x64-msvc@4.1.18':
+ optional: true
+
+ '@tailwindcss/oxide@4.1.18':
+ optionalDependencies:
+ '@tailwindcss/oxide-android-arm64': 4.1.18
+ '@tailwindcss/oxide-darwin-arm64': 4.1.18
+ '@tailwindcss/oxide-darwin-x64': 4.1.18
+ '@tailwindcss/oxide-freebsd-x64': 4.1.18
+ '@tailwindcss/oxide-linux-arm-gnueabihf': 4.1.18
+ '@tailwindcss/oxide-linux-arm64-gnu': 4.1.18
+ '@tailwindcss/oxide-linux-arm64-musl': 4.1.18
+ '@tailwindcss/oxide-linux-x64-gnu': 4.1.18
+ '@tailwindcss/oxide-linux-x64-musl': 4.1.18
+ '@tailwindcss/oxide-wasm32-wasi': 4.1.18
+ '@tailwindcss/oxide-win32-arm64-msvc': 4.1.18
+ '@tailwindcss/oxide-win32-x64-msvc': 4.1.18
+
+ '@tailwindcss/vite@4.1.18(vite@7.3.0(@types/node@24.10.4)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.46.0))':
+ dependencies:
+ '@tailwindcss/node': 4.1.18
+ '@tailwindcss/oxide': 4.1.18
+ tailwindcss: 4.1.18
+ vite: 7.3.0(@types/node@24.10.4)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.46.0)
+
+ '@types/babel__core@7.20.5':
+ dependencies:
+ '@babel/parser': 7.28.5
+ '@babel/types': 7.28.5
+ '@types/babel__generator': 7.27.0
+ '@types/babel__template': 7.4.4
+ '@types/babel__traverse': 7.28.0
+
+ '@types/babel__generator@7.27.0':
+ dependencies:
+ '@babel/types': 7.28.5
+
+ '@types/babel__template@7.4.4':
+ dependencies:
+ '@babel/parser': 7.28.5
+ '@babel/types': 7.28.5
+
+ '@types/babel__traverse@7.28.0':
+ dependencies:
+ '@babel/types': 7.28.5
+
+ '@types/d3-array@3.2.2': {}
+
+ '@types/d3-color@3.1.3': {}
+
+ '@types/d3-drag@3.0.7':
+ dependencies:
+ '@types/d3-selection': 3.0.11
+
+ '@types/d3-ease@3.0.2': {}
+
+ '@types/d3-interpolate@3.0.4':
+ dependencies:
+ '@types/d3-color': 3.1.3
+
+ '@types/d3-path@3.1.1': {}
+
+ '@types/d3-scale@4.0.9':
+ dependencies:
+ '@types/d3-time': 3.0.4
+
+ '@types/d3-selection@3.0.11': {}
+
+ '@types/d3-shape@3.1.8':
+ dependencies:
+ '@types/d3-path': 3.1.1
+
+ '@types/d3-time@3.0.4': {}
+
+ '@types/d3-timer@3.0.2': {}
+
+ '@types/d3-transition@3.0.9':
+ dependencies:
+ '@types/d3-selection': 3.0.11
+
+ '@types/d3-zoom@3.0.8':
+ dependencies:
+ '@types/d3-interpolate': 3.0.4
+ '@types/d3-selection': 3.0.11
+
+ '@types/estree@1.0.8': {}
+
+ '@types/json-schema@7.0.15': {}
+
+ '@types/md5@2.3.6': {}
+
+ '@types/node@24.10.4':
+ dependencies:
+ undici-types: 7.16.0
+
+ '@types/react-dom@19.2.3(@types/react@19.2.7)':
+ dependencies:
+ '@types/react': 19.2.7
+
+ '@types/react@19.2.7':
+ dependencies:
+ csstype: 3.2.3
+
+ '@types/use-sync-external-store@0.0.6': {}
+
+ '@typescript-eslint/eslint-plugin@8.52.0(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3))(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)':
+ dependencies:
+ '@eslint-community/regexpp': 4.12.2
+ '@typescript-eslint/parser': 8.52.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)
+ '@typescript-eslint/scope-manager': 8.52.0
+ '@typescript-eslint/type-utils': 8.52.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)
+ '@typescript-eslint/utils': 8.52.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)
+ '@typescript-eslint/visitor-keys': 8.52.0
+ eslint: 9.39.2(jiti@2.6.1)
+ ignore: 7.0.5
+ natural-compare: 1.4.0
+ ts-api-utils: 2.4.0(typescript@5.9.3)
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)':
+ dependencies:
+ '@typescript-eslint/scope-manager': 8.52.0
+ '@typescript-eslint/types': 8.52.0
+ '@typescript-eslint/typescript-estree': 8.52.0(typescript@5.9.3)
+ '@typescript-eslint/visitor-keys': 8.52.0
+ debug: 4.4.3
+ eslint: 9.39.2(jiti@2.6.1)
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/project-service@8.52.0(typescript@5.9.3)':
+ dependencies:
+ '@typescript-eslint/tsconfig-utils': 8.52.0(typescript@5.9.3)
+ '@typescript-eslint/types': 8.52.0
+ debug: 4.4.3
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/scope-manager@8.52.0':
+ dependencies:
+ '@typescript-eslint/types': 8.52.0
+ '@typescript-eslint/visitor-keys': 8.52.0
+
+ '@typescript-eslint/tsconfig-utils@8.52.0(typescript@5.9.3)':
+ dependencies:
+ typescript: 5.9.3
+
+ '@typescript-eslint/type-utils@8.52.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)':
+ dependencies:
+ '@typescript-eslint/types': 8.52.0
+ '@typescript-eslint/typescript-estree': 8.52.0(typescript@5.9.3)
+ '@typescript-eslint/utils': 8.52.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)
+ debug: 4.4.3
+ eslint: 9.39.2(jiti@2.6.1)
+ ts-api-utils: 2.4.0(typescript@5.9.3)
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/types@8.52.0': {}
+
+ '@typescript-eslint/typescript-estree@8.52.0(typescript@5.9.3)':
+ dependencies:
+ '@typescript-eslint/project-service': 8.52.0(typescript@5.9.3)
+ '@typescript-eslint/tsconfig-utils': 8.52.0(typescript@5.9.3)
+ '@typescript-eslint/types': 8.52.0
+ '@typescript-eslint/visitor-keys': 8.52.0
+ debug: 4.4.3
+ minimatch: 9.0.5
+ semver: 7.7.3
+ tinyglobby: 0.2.15
+ ts-api-utils: 2.4.0(typescript@5.9.3)
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/utils@8.52.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)':
+ dependencies:
+ '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@2.6.1))
+ '@typescript-eslint/scope-manager': 8.52.0
+ '@typescript-eslint/types': 8.52.0
+ '@typescript-eslint/typescript-estree': 8.52.0(typescript@5.9.3)
+ eslint: 9.39.2(jiti@2.6.1)
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ '@typescript-eslint/visitor-keys@8.52.0':
+ dependencies:
+ '@typescript-eslint/types': 8.52.0
+ eslint-visitor-keys: 4.2.1
+
+ '@vitejs/plugin-react@5.1.2(vite@7.3.0(@types/node@24.10.4)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.46.0))':
+ dependencies:
+ '@babel/core': 7.28.5
+ '@babel/plugin-transform-react-jsx-self': 7.27.1(@babel/core@7.28.5)
+ '@babel/plugin-transform-react-jsx-source': 7.27.1(@babel/core@7.28.5)
+ '@rolldown/pluginutils': 1.0.0-beta.53
+ '@types/babel__core': 7.20.5
+ react-refresh: 0.18.0
+ vite: 7.3.0(@types/node@24.10.4)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.46.0)
+ transitivePeerDependencies:
+ - supports-color
+
+ '@xyflow/react@12.10.1(@types/react@19.2.7)(immer@11.1.3)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)':
+ dependencies:
+ '@xyflow/system': 0.0.75
+ classcat: 5.0.5
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ zustand: 4.5.7(@types/react@19.2.7)(immer@11.1.3)(react@19.2.3)
+ transitivePeerDependencies:
+ - '@types/react'
+ - immer
+
+ '@xyflow/system@0.0.75':
+ dependencies:
+ '@types/d3-drag': 3.0.7
+ '@types/d3-interpolate': 3.0.4
+ '@types/d3-selection': 3.0.11
+ '@types/d3-transition': 3.0.9
+ '@types/d3-zoom': 3.0.8
+ d3-drag: 3.0.0
+ d3-interpolate: 3.0.1
+ d3-selection: 3.0.0
+ d3-zoom: 3.0.0
+
+ acorn-jsx@5.3.2(acorn@8.15.0):
+ dependencies:
+ acorn: 8.15.0
+
+ acorn@8.15.0: {}
+
+ ajv@6.12.6:
+ dependencies:
+ fast-deep-equal: 3.1.3
+ fast-json-stable-stringify: 2.1.0
+ json-schema-traverse: 0.4.1
+ uri-js: 4.4.1
+
+ ansi-styles@4.3.0:
+ dependencies:
+ color-convert: 2.0.1
+
+ argparse@2.0.1: {}
+
+ aria-hidden@1.2.6:
+ dependencies:
+ tslib: 2.8.1
+
+ balanced-match@1.0.2: {}
+
+ baseline-browser-mapping@2.9.11: {}
+
+ brace-expansion@1.1.12:
+ dependencies:
+ balanced-match: 1.0.2
+ concat-map: 0.0.1
+
+ brace-expansion@2.0.2:
+ dependencies:
+ balanced-match: 1.0.2
+
+ browserslist@4.28.1:
+ dependencies:
+ baseline-browser-mapping: 2.9.11
+ caniuse-lite: 1.0.30001762
+ electron-to-chromium: 1.5.267
+ node-releases: 2.0.27
+ update-browserslist-db: 1.2.3(browserslist@4.28.1)
+
+ buffer-from@1.1.2: {}
+
+ callsites@3.1.0: {}
+
+ caniuse-lite@1.0.30001762: {}
+
+ chalk@4.1.2:
+ dependencies:
+ ansi-styles: 4.3.0
+ supports-color: 7.2.0
+
+ charenc@0.0.2: {}
+
+ classcat@5.0.5: {}
+
+ classnames@2.5.1: {}
+
+ clsx@2.1.1: {}
+
+ color-convert@2.0.1:
+ dependencies:
+ color-name: 1.1.4
+
+ color-name@1.1.4: {}
+
+ commander@2.20.3: {}
+
+ concat-map@0.0.1: {}
+
+ convert-source-map@2.0.0: {}
+
+ cookie@1.1.1: {}
+
+ cross-spawn@7.0.6:
+ dependencies:
+ path-key: 3.1.1
+ shebang-command: 2.0.0
+ which: 2.0.2
+
+ crypt@0.0.2: {}
+
+ csstype@3.2.3: {}
+
+ d3-array@3.2.4:
+ dependencies:
+ internmap: 2.0.3
+
+ d3-color@3.1.0: {}
+
+ d3-dispatch@3.0.1: {}
+
+ d3-drag@3.0.0:
+ dependencies:
+ d3-dispatch: 3.0.1
+ d3-selection: 3.0.0
+
+ d3-ease@3.0.1: {}
+
+ d3-format@3.1.2: {}
+
+ d3-interpolate@3.0.1:
+ dependencies:
+ d3-color: 3.1.0
+
+ d3-path@3.1.0: {}
+
+ d3-scale@4.0.2:
+ dependencies:
+ d3-array: 3.2.4
+ d3-format: 3.1.2
+ d3-interpolate: 3.0.1
+ d3-time: 3.1.0
+ d3-time-format: 4.1.0
+
+ d3-selection@3.0.0: {}
+
+ d3-shape@3.2.0:
+ dependencies:
+ d3-path: 3.1.0
+
+ d3-time-format@4.1.0:
+ dependencies:
+ d3-time: 3.1.0
+
+ d3-time@3.1.0:
+ dependencies:
+ d3-array: 3.2.4
+
+ d3-timer@3.0.1: {}
+
+ d3-transition@3.0.1(d3-selection@3.0.0):
+ dependencies:
+ d3-color: 3.1.0
+ d3-dispatch: 3.0.1
+ d3-ease: 3.0.1
+ d3-interpolate: 3.0.1
+ d3-selection: 3.0.0
+ d3-timer: 3.0.1
+
+ d3-zoom@3.0.0:
+ dependencies:
+ d3-dispatch: 3.0.1
+ d3-drag: 3.0.0
+ d3-interpolate: 3.0.1
+ d3-selection: 3.0.0
+ d3-transition: 3.0.1(d3-selection@3.0.0)
+
+ debug@4.4.3:
+ dependencies:
+ ms: 2.1.3
+
+ decimal.js-light@2.5.1: {}
+
+ deep-is@0.1.4: {}
+
+ detect-libc@2.1.2: {}
+
+ detect-node-es@1.1.0: {}
+
+ electron-to-chromium@1.5.267: {}
+
+ enhanced-resolve@5.18.4:
+ dependencies:
+ graceful-fs: 4.2.11
+ tapable: 2.3.0
+
+ es-toolkit@1.44.0: {}
+
+ esbuild@0.27.2:
+ optionalDependencies:
+ '@esbuild/aix-ppc64': 0.27.2
+ '@esbuild/android-arm': 0.27.2
+ '@esbuild/android-arm64': 0.27.2
+ '@esbuild/android-x64': 0.27.2
+ '@esbuild/darwin-arm64': 0.27.2
+ '@esbuild/darwin-x64': 0.27.2
+ '@esbuild/freebsd-arm64': 0.27.2
+ '@esbuild/freebsd-x64': 0.27.2
+ '@esbuild/linux-arm': 0.27.2
+ '@esbuild/linux-arm64': 0.27.2
+ '@esbuild/linux-ia32': 0.27.2
+ '@esbuild/linux-loong64': 0.27.2
+ '@esbuild/linux-mips64el': 0.27.2
+ '@esbuild/linux-ppc64': 0.27.2
+ '@esbuild/linux-riscv64': 0.27.2
+ '@esbuild/linux-s390x': 0.27.2
+ '@esbuild/linux-x64': 0.27.2
+ '@esbuild/netbsd-arm64': 0.27.2
+ '@esbuild/netbsd-x64': 0.27.2
+ '@esbuild/openbsd-arm64': 0.27.2
+ '@esbuild/openbsd-x64': 0.27.2
+ '@esbuild/openharmony-arm64': 0.27.2
+ '@esbuild/sunos-x64': 0.27.2
+ '@esbuild/win32-arm64': 0.27.2
+ '@esbuild/win32-ia32': 0.27.2
+ '@esbuild/win32-x64': 0.27.2
+
+ escalade@3.2.0: {}
+
+ escape-string-regexp@4.0.0: {}
+
+ eslint-config-prettier@10.1.8(eslint@9.39.2(jiti@2.6.1)):
+ dependencies:
+ eslint: 9.39.2(jiti@2.6.1)
+
+ eslint-plugin-react-hooks@7.0.1(eslint@9.39.2(jiti@2.6.1)):
+ dependencies:
+ '@babel/core': 7.28.5
+ '@babel/parser': 7.28.5
+ eslint: 9.39.2(jiti@2.6.1)
+ hermes-parser: 0.25.1
+ zod: 4.3.5
+ zod-validation-error: 4.0.2(zod@4.3.5)
+ transitivePeerDependencies:
+ - supports-color
+
+ eslint-plugin-react-refresh@0.4.26(eslint@9.39.2(jiti@2.6.1)):
+ dependencies:
+ eslint: 9.39.2(jiti@2.6.1)
+
+ eslint-scope@8.4.0:
+ dependencies:
+ esrecurse: 4.3.0
+ estraverse: 5.3.0
+
+ eslint-visitor-keys@3.4.3: {}
+
+ eslint-visitor-keys@4.2.1: {}
+
+ eslint@9.39.2(jiti@2.6.1):
+ dependencies:
+ '@eslint-community/eslint-utils': 4.9.1(eslint@9.39.2(jiti@2.6.1))
+ '@eslint-community/regexpp': 4.12.2
+ '@eslint/config-array': 0.21.1
+ '@eslint/config-helpers': 0.4.2
+ '@eslint/core': 0.17.0
+ '@eslint/eslintrc': 3.3.3
+ '@eslint/js': 9.39.2
+ '@eslint/plugin-kit': 0.4.1
+ '@humanfs/node': 0.16.7
+ '@humanwhocodes/module-importer': 1.0.1
+ '@humanwhocodes/retry': 0.4.3
+ '@types/estree': 1.0.8
+ ajv: 6.12.6
+ chalk: 4.1.2
+ cross-spawn: 7.0.6
+ debug: 4.4.3
+ escape-string-regexp: 4.0.0
+ eslint-scope: 8.4.0
+ eslint-visitor-keys: 4.2.1
+ espree: 10.4.0
+ esquery: 1.7.0
+ esutils: 2.0.3
+ fast-deep-equal: 3.1.3
+ file-entry-cache: 8.0.0
+ find-up: 5.0.0
+ glob-parent: 6.0.2
+ ignore: 5.3.2
+ imurmurhash: 0.1.4
+ is-glob: 4.0.3
+ json-stable-stringify-without-jsonify: 1.0.1
+ lodash.merge: 4.6.2
+ minimatch: 3.1.2
+ natural-compare: 1.4.0
+ optionator: 0.9.4
+ optionalDependencies:
+ jiti: 2.6.1
+ transitivePeerDependencies:
+ - supports-color
+
+ espree@10.4.0:
+ dependencies:
+ acorn: 8.15.0
+ acorn-jsx: 5.3.2(acorn@8.15.0)
+ eslint-visitor-keys: 4.2.1
+
+ esquery@1.7.0:
+ dependencies:
+ estraverse: 5.3.0
+
+ esrecurse@4.3.0:
+ dependencies:
+ estraverse: 5.3.0
+
+ estraverse@5.3.0: {}
+
+ esutils@2.0.3: {}
+
+ eventemitter3@5.0.4: {}
+
+ fast-deep-equal@3.1.3: {}
+
+ fast-json-stable-stringify@2.1.0: {}
+
+ fast-levenshtein@2.0.6: {}
+
+ fdir@6.5.0(picomatch@4.0.3):
+ optionalDependencies:
+ picomatch: 4.0.3
+
+ file-entry-cache@8.0.0:
+ dependencies:
+ flat-cache: 4.0.1
+
+ find-up@5.0.0:
+ dependencies:
+ locate-path: 6.0.0
+ path-exists: 4.0.0
+
+ flat-cache@4.0.1:
+ dependencies:
+ flatted: 3.3.3
+ keyv: 4.5.4
+
+ flatted@3.3.3: {}
+
+ framer-motion@12.30.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3):
+ dependencies:
+ motion-dom: 12.30.0
+ motion-utils: 12.29.2
+ tslib: 2.8.1
+ optionalDependencies:
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+
+ fsevents@2.3.3:
+ optional: true
+
+ gensync@1.0.0-beta.2: {}
+
+ get-nonce@1.0.1: {}
+
+ glob-parent@6.0.2:
+ dependencies:
+ is-glob: 4.0.3
+
+ globals@14.0.0: {}
+
+ globals@16.5.0: {}
+
+ graceful-fs@4.2.11: {}
+
+ has-flag@4.0.0: {}
+
+ hermes-estree@0.25.1: {}
+
+ hermes-parser@0.25.1:
+ dependencies:
+ hermes-estree: 0.25.1
+
+ html-parse-stringify@3.0.1:
+ dependencies:
+ void-elements: 3.1.0
+
+ i18next@25.8.4(typescript@5.9.3):
+ dependencies:
+ '@babel/runtime': 7.28.6
+ optionalDependencies:
+ typescript: 5.9.3
+
+ ignore@5.3.2: {}
+
+ ignore@7.0.5: {}
+
+ immer@10.2.0: {}
+
+ immer@11.1.3: {}
+
+ import-fresh@3.3.1:
+ dependencies:
+ parent-module: 1.0.1
+ resolve-from: 4.0.0
+
+ imurmurhash@0.1.4: {}
+
+ internmap@2.0.3: {}
+
+ is-buffer@1.1.6: {}
+
+ is-extglob@2.1.1: {}
+
+ is-glob@4.0.3:
+ dependencies:
+ is-extglob: 2.1.1
+
+ isexe@2.0.0: {}
+
+ jiti@2.6.1: {}
+
+ js-tokens@4.0.0: {}
+
+ js-yaml@4.1.1:
+ dependencies:
+ argparse: 2.0.1
+
+ jsesc@3.1.0: {}
+
+ json-buffer@3.0.1: {}
+
+ json-schema-traverse@0.4.1: {}
+
+ json-stable-stringify-without-jsonify@1.0.1: {}
+
+ json5@2.2.3: {}
+
+ keyv@4.5.4:
+ dependencies:
+ json-buffer: 3.0.1
+
+ levn@0.4.1:
+ dependencies:
+ prelude-ls: 1.2.1
+ type-check: 0.4.0
+
+ lightningcss-android-arm64@1.30.2:
+ optional: true
+
+ lightningcss-darwin-arm64@1.30.2:
+ optional: true
+
+ lightningcss-darwin-x64@1.30.2:
+ optional: true
+
+ lightningcss-freebsd-x64@1.30.2:
+ optional: true
+
+ lightningcss-linux-arm-gnueabihf@1.30.2:
+ optional: true
+
+ lightningcss-linux-arm64-gnu@1.30.2:
+ optional: true
+
+ lightningcss-linux-arm64-musl@1.30.2:
+ optional: true
+
+ lightningcss-linux-x64-gnu@1.30.2:
+ optional: true
+
+ lightningcss-linux-x64-musl@1.30.2:
+ optional: true
+
+ lightningcss-win32-arm64-msvc@1.30.2:
+ optional: true
+
+ lightningcss-win32-x64-msvc@1.30.2:
+ optional: true
+
+ lightningcss@1.30.2:
+ dependencies:
+ detect-libc: 2.1.2
+ optionalDependencies:
+ lightningcss-android-arm64: 1.30.2
+ lightningcss-darwin-arm64: 1.30.2
+ lightningcss-darwin-x64: 1.30.2
+ lightningcss-freebsd-x64: 1.30.2
+ lightningcss-linux-arm-gnueabihf: 1.30.2
+ lightningcss-linux-arm64-gnu: 1.30.2
+ lightningcss-linux-arm64-musl: 1.30.2
+ lightningcss-linux-x64-gnu: 1.30.2
+ lightningcss-linux-x64-musl: 1.30.2
+ lightningcss-win32-arm64-msvc: 1.30.2
+ lightningcss-win32-x64-msvc: 1.30.2
+
+ locate-path@6.0.0:
+ dependencies:
+ p-locate: 5.0.0
+
+ lodash.merge@4.6.2: {}
+
+ lru-cache@5.1.1:
+ dependencies:
+ yallist: 3.1.1
+
+ magic-string@0.30.21:
+ dependencies:
+ '@jridgewell/sourcemap-codec': 1.5.5
+
+ md5@2.3.0:
+ dependencies:
+ charenc: 0.0.2
+ crypt: 0.0.2
+ is-buffer: 1.1.6
+
+ minimatch@3.1.2:
+ dependencies:
+ brace-expansion: 1.1.12
+
+ minimatch@9.0.5:
+ dependencies:
+ brace-expansion: 2.0.2
+
+ motion-dom@12.30.0:
+ dependencies:
+ motion-utils: 12.29.2
+
+ motion-utils@12.29.2: {}
+
+ ms@2.1.3: {}
+
+ nanoid@3.3.11: {}
+
+ natural-compare@1.4.0: {}
+
+ node-releases@2.0.27: {}
+
+ optionator@0.9.4:
+ dependencies:
+ deep-is: 0.1.4
+ fast-levenshtein: 2.0.6
+ levn: 0.4.1
+ prelude-ls: 1.2.1
+ type-check: 0.4.0
+ word-wrap: 1.2.5
+
+ p-limit@3.1.0:
+ dependencies:
+ yocto-queue: 0.1.0
+
+ p-locate@5.0.0:
+ dependencies:
+ p-limit: 3.1.0
+
+ parent-module@1.0.1:
+ dependencies:
+ callsites: 3.1.0
+
+ path-exists@4.0.0: {}
+
+ path-key@3.1.1: {}
+
+ picocolors@1.1.1: {}
+
+ picomatch@4.0.3: {}
+
+ pocketbase@0.26.5: {}
+
+ postcss@8.5.6:
+ dependencies:
+ nanoid: 3.3.11
+ picocolors: 1.1.1
+ source-map-js: 1.2.1
+
+ prelude-ls@1.2.1: {}
+
+ prettier-plugin-tailwindcss@0.7.2(prettier@3.8.1):
+ dependencies:
+ prettier: 3.8.1
+
+ prettier@3.8.1: {}
+
+ punycode@2.3.1: {}
+
+ radix-ui@1.4.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3):
+ dependencies:
+ '@radix-ui/primitive': 1.1.3
+ '@radix-ui/react-accessible-icon': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-accordion': 1.2.12(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-alert-dialog': 1.1.15(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-arrow': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-aspect-ratio': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-avatar': 1.1.10(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-checkbox': 1.3.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-collapsible': 1.1.12(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-collection': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-compose-refs': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context': 1.1.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-context-menu': 2.2.16(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-dialog': 1.1.15(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-direction': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-dismissable-layer': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-dropdown-menu': 2.1.16(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-focus-guards': 1.1.3(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-focus-scope': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-form': 0.1.8(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-hover-card': 1.1.15(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-label': 2.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-menu': 2.1.16(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-menubar': 1.1.16(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-navigation-menu': 1.2.14(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-one-time-password-field': 0.1.8(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-password-toggle-field': 0.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-popover': 1.1.15(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-popper': 1.2.8(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-portal': 1.1.9(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-presence': 1.1.5(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-primitive': 2.1.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-progress': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-radio-group': 1.3.8(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-roving-focus': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-scroll-area': 1.2.10(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-select': 2.2.6(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-separator': 1.1.7(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-slider': 1.3.6(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-slot': 1.2.3(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-switch': 1.2.6(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-tabs': 1.1.13(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-toast': 1.2.15(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-toggle': 1.1.10(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-toggle-group': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-toolbar': 1.1.11(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-tooltip': 1.2.8(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ '@radix-ui/react-use-callback-ref': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-controllable-state': 1.2.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-effect-event': 0.0.2(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-escape-keydown': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-is-hydrated': 0.1.0(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-layout-effect': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-use-size': 1.1.1(@types/react@19.2.7)(react@19.2.3)
+ '@radix-ui/react-visually-hidden': 1.2.3(@types/react-dom@19.2.3(@types/react@19.2.7))(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ '@types/react-dom': 19.2.3(@types/react@19.2.7)
+
+ react-dom@19.2.3(react@19.2.3):
+ dependencies:
+ react: 19.2.3
+ scheduler: 0.27.0
+
+ react-i18next@16.5.4(i18next@25.8.4(typescript@5.9.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)(typescript@5.9.3):
+ dependencies:
+ '@babel/runtime': 7.28.6
+ html-parse-stringify: 3.0.1
+ i18next: 25.8.4(typescript@5.9.3)
+ react: 19.2.3
+ use-sync-external-store: 1.6.0(react@19.2.3)
+ optionalDependencies:
+ react-dom: 19.2.3(react@19.2.3)
+ typescript: 5.9.3
+
+ react-is@19.2.4: {}
+
+ react-loading-indicators@1.0.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3):
+ dependencies:
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+
+ react-redux@9.2.0(@types/react@19.2.7)(react@19.2.3)(redux@5.0.1):
+ dependencies:
+ '@types/use-sync-external-store': 0.0.6
+ react: 19.2.3
+ use-sync-external-store: 1.6.0(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ redux: 5.0.1
+
+ react-refresh@0.18.0: {}
+
+ react-remove-scroll-bar@2.3.8(@types/react@19.2.7)(react@19.2.3):
+ dependencies:
+ react: 19.2.3
+ react-style-singleton: 2.2.3(@types/react@19.2.7)(react@19.2.3)
+ tslib: 2.8.1
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ react-remove-scroll@2.7.2(@types/react@19.2.7)(react@19.2.3):
+ dependencies:
+ react: 19.2.3
+ react-remove-scroll-bar: 2.3.8(@types/react@19.2.7)(react@19.2.3)
+ react-style-singleton: 2.2.3(@types/react@19.2.7)(react@19.2.3)
+ tslib: 2.8.1
+ use-callback-ref: 1.3.3(@types/react@19.2.7)(react@19.2.3)
+ use-sidecar: 1.1.3(@types/react@19.2.7)(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ react-router-dom@7.11.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3):
+ dependencies:
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ react-router: 7.11.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3)
+
+ react-router@7.11.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3):
+ dependencies:
+ cookie: 1.1.1
+ react: 19.2.3
+ set-cookie-parser: 2.7.2
+ optionalDependencies:
+ react-dom: 19.2.3(react@19.2.3)
+
+ react-style-singleton@2.2.3(@types/react@19.2.7)(react@19.2.3):
+ dependencies:
+ get-nonce: 1.0.1
+ react: 19.2.3
+ tslib: 2.8.1
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ react@19.2.3: {}
+
+ recharts@3.7.0(@types/react@19.2.7)(react-dom@19.2.3(react@19.2.3))(react-is@19.2.4)(react@19.2.3)(redux@5.0.1):
+ dependencies:
+ '@reduxjs/toolkit': 2.11.2(react-redux@9.2.0(@types/react@19.2.7)(react@19.2.3)(redux@5.0.1))(react@19.2.3)
+ clsx: 2.1.1
+ decimal.js-light: 2.5.1
+ es-toolkit: 1.44.0
+ eventemitter3: 5.0.4
+ immer: 10.2.0
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+ react-is: 19.2.4
+ react-redux: 9.2.0(@types/react@19.2.7)(react@19.2.3)(redux@5.0.1)
+ reselect: 5.1.1
+ tiny-invariant: 1.3.3
+ use-sync-external-store: 1.6.0(react@19.2.3)
+ victory-vendor: 37.3.6
+ transitivePeerDependencies:
+ - '@types/react'
+ - redux
+
+ redux-thunk@3.1.0(redux@5.0.1):
+ dependencies:
+ redux: 5.0.1
+
+ redux@5.0.1: {}
+
+ reselect@5.1.1: {}
+
+ resolve-from@4.0.0: {}
+
+ rollup@4.55.1:
+ dependencies:
+ '@types/estree': 1.0.8
+ optionalDependencies:
+ '@rollup/rollup-android-arm-eabi': 4.55.1
+ '@rollup/rollup-android-arm64': 4.55.1
+ '@rollup/rollup-darwin-arm64': 4.55.1
+ '@rollup/rollup-darwin-x64': 4.55.1
+ '@rollup/rollup-freebsd-arm64': 4.55.1
+ '@rollup/rollup-freebsd-x64': 4.55.1
+ '@rollup/rollup-linux-arm-gnueabihf': 4.55.1
+ '@rollup/rollup-linux-arm-musleabihf': 4.55.1
+ '@rollup/rollup-linux-arm64-gnu': 4.55.1
+ '@rollup/rollup-linux-arm64-musl': 4.55.1
+ '@rollup/rollup-linux-loong64-gnu': 4.55.1
+ '@rollup/rollup-linux-loong64-musl': 4.55.1
+ '@rollup/rollup-linux-ppc64-gnu': 4.55.1
+ '@rollup/rollup-linux-ppc64-musl': 4.55.1
+ '@rollup/rollup-linux-riscv64-gnu': 4.55.1
+ '@rollup/rollup-linux-riscv64-musl': 4.55.1
+ '@rollup/rollup-linux-s390x-gnu': 4.55.1
+ '@rollup/rollup-linux-x64-gnu': 4.55.1
+ '@rollup/rollup-linux-x64-musl': 4.55.1
+ '@rollup/rollup-openbsd-x64': 4.55.1
+ '@rollup/rollup-openharmony-arm64': 4.55.1
+ '@rollup/rollup-win32-arm64-msvc': 4.55.1
+ '@rollup/rollup-win32-ia32-msvc': 4.55.1
+ '@rollup/rollup-win32-x64-gnu': 4.55.1
+ '@rollup/rollup-win32-x64-msvc': 4.55.1
+ fsevents: 2.3.3
+
+ scheduler@0.27.0: {}
+
+ semver@6.3.1: {}
+
+ semver@7.7.3: {}
+
+ set-cookie-parser@2.7.2: {}
+
+ shebang-command@2.0.0:
+ dependencies:
+ shebang-regex: 3.0.0
+
+ shebang-regex@3.0.0: {}
+
+ sonner@2.0.7(react-dom@19.2.3(react@19.2.3))(react@19.2.3):
+ dependencies:
+ react: 19.2.3
+ react-dom: 19.2.3(react@19.2.3)
+
+ source-map-js@1.2.1: {}
+
+ source-map-support@0.5.21:
+ dependencies:
+ buffer-from: 1.1.2
+ source-map: 0.6.1
+
+ source-map@0.6.1: {}
+
+ strip-json-comments@3.1.1: {}
+
+ supports-color@7.2.0:
+ dependencies:
+ has-flag: 4.0.0
+
+ tailwindcss@4.1.18: {}
+
+ tapable@2.3.0: {}
+
+ terser@5.46.0:
+ dependencies:
+ '@jridgewell/source-map': 0.3.11
+ acorn: 8.15.0
+ commander: 2.20.3
+ source-map-support: 0.5.21
+
+ tiny-invariant@1.3.3: {}
+
+ tinyglobby@0.2.15:
+ dependencies:
+ fdir: 6.5.0(picomatch@4.0.3)
+ picomatch: 4.0.3
+
+ ts-api-utils@2.4.0(typescript@5.9.3):
+ dependencies:
+ typescript: 5.9.3
+
+ tslib@2.8.1: {}
+
+ type-check@0.4.0:
+ dependencies:
+ prelude-ls: 1.2.1
+
+ typescript-eslint@8.52.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3):
+ dependencies:
+ '@typescript-eslint/eslint-plugin': 8.52.0(@typescript-eslint/parser@8.52.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3))(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)
+ '@typescript-eslint/parser': 8.52.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)
+ '@typescript-eslint/typescript-estree': 8.52.0(typescript@5.9.3)
+ '@typescript-eslint/utils': 8.52.0(eslint@9.39.2(jiti@2.6.1))(typescript@5.9.3)
+ eslint: 9.39.2(jiti@2.6.1)
+ typescript: 5.9.3
+ transitivePeerDependencies:
+ - supports-color
+
+ typescript@5.9.3: {}
+
+ undici-types@7.16.0: {}
+
+ update-browserslist-db@1.2.3(browserslist@4.28.1):
+ dependencies:
+ browserslist: 4.28.1
+ escalade: 3.2.0
+ picocolors: 1.1.1
+
+ uri-js@4.4.1:
+ dependencies:
+ punycode: 2.3.1
+
+ use-callback-ref@1.3.3(@types/react@19.2.7)(react@19.2.3):
+ dependencies:
+ react: 19.2.3
+ tslib: 2.8.1
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ use-sidecar@1.1.3(@types/react@19.2.7)(react@19.2.3):
+ dependencies:
+ detect-node-es: 1.1.0
+ react: 19.2.3
+ tslib: 2.8.1
+ optionalDependencies:
+ '@types/react': 19.2.7
+
+ use-sync-external-store@1.6.0(react@19.2.3):
+ dependencies:
+ react: 19.2.3
+
+ victory-vendor@37.3.6:
+ dependencies:
+ '@types/d3-array': 3.2.2
+ '@types/d3-ease': 3.0.2
+ '@types/d3-interpolate': 3.0.4
+ '@types/d3-scale': 4.0.9
+ '@types/d3-shape': 3.1.8
+ '@types/d3-time': 3.0.4
+ '@types/d3-timer': 3.0.2
+ d3-array: 3.2.4
+ d3-ease: 3.0.1
+ d3-interpolate: 3.0.1
+ d3-scale: 4.0.2
+ d3-shape: 3.2.0
+ d3-time: 3.1.0
+ d3-timer: 3.0.1
+
+ vite@7.3.0(@types/node@24.10.4)(jiti@2.6.1)(lightningcss@1.30.2)(terser@5.46.0):
+ dependencies:
+ esbuild: 0.27.2
+ fdir: 6.5.0(picomatch@4.0.3)
+ picomatch: 4.0.3
+ postcss: 8.5.6
+ rollup: 4.55.1
+ tinyglobby: 0.2.15
+ optionalDependencies:
+ '@types/node': 24.10.4
+ fsevents: 2.3.3
+ jiti: 2.6.1
+ lightningcss: 1.30.2
+ terser: 5.46.0
+
+ void-elements@3.1.0: {}
+
+ which@2.0.2:
+ dependencies:
+ isexe: 2.0.0
+
+ word-wrap@1.2.5: {}
+
+ yallist@3.1.1: {}
+
+ yocto-queue@0.1.0: {}
+
+ zod-validation-error@4.0.2(zod@4.3.5):
+ dependencies:
+ zod: 4.3.5
+
+ zod@4.3.5: {}
+
+ zustand@4.5.7(@types/react@19.2.7)(immer@11.1.3)(react@19.2.3):
+ dependencies:
+ use-sync-external-store: 1.6.0(react@19.2.3)
+ optionalDependencies:
+ '@types/react': 19.2.7
+ immer: 11.1.3
+ react: 19.2.3
+
+ zustand@5.0.11(@types/react@19.2.7)(immer@11.1.3)(react@19.2.3)(use-sync-external-store@1.6.0(react@19.2.3)):
+ optionalDependencies:
+ '@types/react': 19.2.7
+ immer: 11.1.3
+ react: 19.2.3
+ use-sync-external-store: 1.6.0(react@19.2.3)
diff --git a/site/public/favicon.ico b/site/public/favicon.ico
new file mode 100644
index 0000000..4e3441c
Binary files /dev/null and b/site/public/favicon.ico differ
diff --git a/site/src/App.css b/site/src/App.css
new file mode 100644
index 0000000..b9d355d
--- /dev/null
+++ b/site/src/App.css
@@ -0,0 +1,42 @@
+#root {
+ max-width: 1280px;
+ margin: 0 auto;
+ padding: 2rem;
+ text-align: center;
+}
+
+.logo {
+ height: 6em;
+ padding: 1.5em;
+ will-change: filter;
+ transition: filter 300ms;
+}
+.logo:hover {
+ filter: drop-shadow(0 0 2em #646cffaa);
+}
+.logo.react:hover {
+ filter: drop-shadow(0 0 2em #61dafbaa);
+}
+
+@keyframes logo-spin {
+ from {
+ transform: rotate(0deg);
+ }
+ to {
+ transform: rotate(360deg);
+ }
+}
+
+@media (prefers-reduced-motion: no-preference) {
+ a:nth-of-type(2) .logo {
+ animation: logo-spin infinite 20s linear;
+ }
+}
+
+.card {
+ padding: 2em;
+}
+
+.read-the-docs {
+ color: #888;
+}
diff --git a/site/src/App.tsx b/site/src/App.tsx
new file mode 100644
index 0000000..e5764d7
--- /dev/null
+++ b/site/src/App.tsx
@@ -0,0 +1,78 @@
+import { BrowserRouter, Routes, Route, Navigate, Outlet } from "react-router-dom";
+import { lazy, Suspense } from "react";
+import { RequireAuth } from "./components/RequireAuth";
+import { RequireSetup } from "./components/RequireSetup";
+import { MainLayout } from "./layouts/MainLayout";
+import { Loading } from "./components/Loading";
+
+// 路由懒加载 - 按需加载页面组件
+const SetupPage = lazy(() => import("./pages/Setup").then((m) => ({ default: m.SetupPage })));
+const LoginPage = lazy(() => import("./pages/Login").then((m) => ({ default: m.LoginPage })));
+const ProxiesPage = lazy(() => import("./pages/Proxies").then((m) => ({ default: m.ProxiesPage })));
+const ServersPage = lazy(() => import("./pages/Servers").then((m) => ({ default: m.ServersPage })));
+const DashboardPage = lazy(() =>
+ import("./pages/Dashboard").then((m) => ({ default: m.DashboardPage }))
+);
+const SettingsPage = lazy(() =>
+ import("./pages/Settings").then((m) => ({ default: m.SettingsPage }))
+);
+const NotFoundPage = lazy(() =>
+ import("./pages/NotFound").then((m) => ({ default: m.NotFoundPage }))
+);
+const ServerDetailPage = lazy(() =>
+ import("./pages/ServerDetail").then((m) => ({ default: m.ServerDetailPage }))
+);
+const ImportPage = lazy(() => import("./pages/Import").then((m) => ({ default: m.ImportPage })));
+
+function AuthenticatedLayout() {
+ console.log("AuthenticatedLayout rendered");
+ return (
+
+
+
+
+
+
+
+ );
+}
+
+function App() {
+ return (
+
+ }>
+
+ {/* Setup Route - No authentication or initialization check required */}
+ } />
+
+ {/* Login Route - Requires system to be initialized */}
+
+
+
+ }
+ />
+
+ {/* Authenticated Routes with shared layout */}
+ }>
+ } />
+ } />
+ } />
+ } />
+ } />
+ } />
+ {/* } /> */}
+
+
+ } />
+ } />
+ } />
+
+
+
+ );
+}
+
+export default App;
diff --git a/site/src/assets/logo.png b/site/src/assets/logo.png
new file mode 100644
index 0000000..866d6ab
Binary files /dev/null and b/site/src/assets/logo.png differ
diff --git a/site/src/components/AnimateNumber.tsx b/site/src/components/AnimateNumber.tsx
new file mode 100644
index 0000000..8a0cd31
--- /dev/null
+++ b/site/src/components/AnimateNumber.tsx
@@ -0,0 +1,26 @@
+import { motion, useSpring, useTransform } from "framer-motion";
+import { useEffect } from "react";
+
+export function AnimateNumber({
+ value,
+ unit,
+ decimalPlaces = 2,
+}: {
+ value: number;
+ unit?: string;
+ rate?: number;
+ decimalPlaces?: number;
+}) {
+ const spring = useSpring(0, { mass: 0.8, stiffness: 75, damping: 15 });
+ const display = useTransform(spring, (current) => {
+ const factor = Math.pow(10, decimalPlaces);
+ const rounded = (Math.round(current * factor) / factor).toFixed(decimalPlaces);
+ return unit ? `${rounded} ${unit}` : rounded;
+ });
+
+ useEffect(() => {
+ spring.set(value);
+ }, [spring, value]);
+
+ return {display} ;
+}
diff --git a/site/src/components/EmptyState.tsx b/site/src/components/EmptyState.tsx
new file mode 100644
index 0000000..6983923
--- /dev/null
+++ b/site/src/components/EmptyState.tsx
@@ -0,0 +1,54 @@
+import { Box, Flex, Text, Button } from "@radix-ui/themes";
+import React from "react";
+import { Icon } from "@iconify/react";
+
+interface EmptyStateProps {
+ icon?: React.ReactNode;
+ title: string;
+ description: string | React.ReactNode;
+ actionText?: string;
+ onAction?: () => void;
+}
+
+export function EmptyState({ icon, title, description, actionText, onAction }: EmptyStateProps) {
+ return (
+
+
+
+ {icon || }
+
+
+
+ {title}
+
+
+ {description}
+
+
+ {actionText && onAction && (
+
+
+ {actionText}
+
+ )}
+
+
+ );
+}
diff --git a/site/src/components/FormItem.tsx b/site/src/components/FormItem.tsx
new file mode 100644
index 0000000..f25adef
--- /dev/null
+++ b/site/src/components/FormItem.tsx
@@ -0,0 +1,54 @@
+import { type ReactNode } from "react";
+import { Text, Box } from "@radix-ui/themes";
+import { motion, AnimatePresence } from "framer-motion";
+
+interface FormItemProps {
+ label: string;
+ error?: string;
+ required?: boolean;
+ animate?: boolean;
+ children: ReactNode;
+}
+
+function FormItem({ label, error, required, animate, children }: FormItemProps) {
+ const content = (
+
+
+ {label} {required && * }
+
+ {children}
+
+ {error && (
+
+
+ {error}
+
+
+ )}
+
+
+ );
+
+ if (animate) {
+ return (
+
+ {content}
+
+ );
+ }
+
+ return content;
+}
+
+export { FormItem, type FormItemProps };
diff --git a/site/src/components/LanguageSelector.tsx b/site/src/components/LanguageSelector.tsx
new file mode 100644
index 0000000..7d774e8
--- /dev/null
+++ b/site/src/components/LanguageSelector.tsx
@@ -0,0 +1,18 @@
+import { Select } from "@radix-ui/themes";
+import { useTranslation } from "react-i18next";
+import { useLanguage } from "../contexts/LanguageContext";
+
+export default function LanguageSelector() {
+ const { t } = useTranslation();
+ const { language, setLanguage } = useLanguage();
+
+ return (
+ setLanguage(value as "en" | "zh")}>
+
+
+ {t("language.en")}
+ {t("language.zh")}
+
+
+ );
+}
diff --git a/site/src/components/LanguageToggle.tsx b/site/src/components/LanguageToggle.tsx
new file mode 100644
index 0000000..d5e3c1b
--- /dev/null
+++ b/site/src/components/LanguageToggle.tsx
@@ -0,0 +1,53 @@
+import { motion, AnimatePresence } from "framer-motion";
+import { Icon } from "@iconify/react";
+import { useLanguage } from "../contexts/LanguageContext";
+
+interface LanguageToggleProps {
+ language?: "en" | "zh";
+ onChange?: (lang: "en" | "zh") => void;
+}
+
+export function LanguageToggle({ language: customLanguage, onChange }: LanguageToggleProps = {}) {
+ const context = useLanguage();
+
+ // Use custom language/onChange if provided, otherwise use context
+ const language = customLanguage ?? context.language;
+ const setLanguage = onChange ?? context.setLanguage;
+
+ const toggleLanguage = () => {
+ const newLang = language === "en" ? "zh" : "en";
+ setLanguage(newLang);
+ };
+
+ return (
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/site/src/components/Loading.tsx b/site/src/components/Loading.tsx
new file mode 100644
index 0000000..701933c
--- /dev/null
+++ b/site/src/components/Loading.tsx
@@ -0,0 +1,107 @@
+import { Flex, Text } from "@radix-ui/themes";
+import { motion } from "framer-motion";
+import { Icon } from "@iconify/react";
+
+interface LoadingProps {
+ text?: string;
+ size?: "small" | "medium" | "large";
+ minHeight?: string | number;
+ fullscreen?: boolean;
+}
+
+const sizeMap = {
+ small: 24,
+ medium: 32,
+ large: 48,
+};
+
+export function Loading({
+ text = "Loading...",
+ size = "medium",
+ minHeight,
+ fullscreen = false,
+}: LoadingProps) {
+ const iconSize = sizeMap[size];
+
+ const containerStyle = fullscreen
+ ? {
+ position: "fixed" as const,
+ top: 0,
+ left: 0,
+ right: 0,
+ bottom: 0,
+ width: "100vw",
+ height: "100vh",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ backgroundColor: "var(--gray-2)",
+ zIndex: 9999,
+ }
+ : {
+ minHeight: minHeight || "100%",
+ display: "flex",
+ alignItems: "center",
+ justifyContent: "center",
+ };
+
+ if (fullscreen) {
+ return (
+
+
+
+ {text && (
+
+ {text}
+
+ )}
+
+
+ );
+ }
+
+ return (
+
+
+
+ {text && (
+
+ {text}
+
+ )}
+
+
+ );
+}
diff --git a/site/src/components/PageHeader.tsx b/site/src/components/PageHeader.tsx
new file mode 100644
index 0000000..cd6c111
--- /dev/null
+++ b/site/src/components/PageHeader.tsx
@@ -0,0 +1,32 @@
+import { Box, Flex, Heading, Text } from "@radix-ui/themes";
+import { motion } from "framer-motion";
+import type { ReactNode } from "react";
+
+interface PageHeaderProps {
+ title: string;
+ description?: string;
+ extra?: ReactNode;
+ visible?: boolean;
+}
+
+export function PageHeader({ title, description, extra, visible = true }: PageHeaderProps) {
+ return (
+
+
+
+ {title}
+ {description && (
+
+ {description}
+
+ )}
+
+ {extra && {extra} }
+
+
+ );
+}
diff --git a/site/src/components/PageTransition.tsx b/site/src/components/PageTransition.tsx
new file mode 100644
index 0000000..2c34bda
--- /dev/null
+++ b/site/src/components/PageTransition.tsx
@@ -0,0 +1,23 @@
+import { motion, type HTMLMotionProps } from "framer-motion";
+import type { ReactNode } from "react";
+
+interface PageTransitionProps extends HTMLMotionProps<"div"> {
+ children: ReactNode;
+}
+
+export function PageTransition({ children, ...props }: PageTransitionProps) {
+ return (
+
+ {children}
+
+ );
+}
diff --git a/site/src/components/RequireAuth.tsx b/site/src/components/RequireAuth.tsx
new file mode 100644
index 0000000..06699d4
--- /dev/null
+++ b/site/src/components/RequireAuth.tsx
@@ -0,0 +1,26 @@
+import { Navigate, useLocation } from "react-router-dom";
+import pb from "../lib/pocketbase";
+
+interface RequireAuthProps {
+ children: React.ReactNode;
+}
+
+/**
+ * Route guard component
+ * Check if user is logged in and token is not expired
+ * If not logged in or token expired, redirect to login page
+ */
+export function RequireAuth({ children }: RequireAuthProps) {
+ const location = useLocation();
+
+ // Check for valid authentication info
+ const isAuthenticated = pb.authStore.isValid;
+
+ if (!isAuthenticated) {
+ // Not logged in or token expired, redirect to login page
+ // Save current path to redirect back after login
+ return ;
+ }
+
+ return <>{children}>;
+}
diff --git a/site/src/components/RequireSetup.tsx b/site/src/components/RequireSetup.tsx
new file mode 100644
index 0000000..0cd5321
--- /dev/null
+++ b/site/src/components/RequireSetup.tsx
@@ -0,0 +1,52 @@
+import { Navigate, useLocation } from "react-router-dom";
+import { useEffect, useState } from "react";
+import { Loading } from "./Loading";
+import { useSystemStore } from "../stores/systemStore";
+
+interface RequireSetupProps {
+ children: React.ReactNode;
+}
+
+/**
+ * Route guard component
+ * Check if system has been initialized by checking the settings table
+ * If not initialized, redirect to setup page
+ */
+export function RequireSetup({ children }: RequireSetupProps) {
+ const location = useLocation();
+ const { checkInitialized } = useSystemStore();
+ const [isInitialized, setIsInitialized] = useState(null);
+ const [isLoading, setIsLoading] = useState(true);
+
+ console.log("RequireSetup component rendered");
+
+ useEffect(() => {
+ console.log("RequireSetup useEffect triggered");
+ checkInitialization();
+ }, []);
+
+ const checkInitialization = async () => {
+ console.log("checkInitialization called");
+ try {
+ const initialized = await checkInitialized();
+ console.log("Initialization status:", initialized);
+ setIsInitialized(initialized);
+ } catch (error: any) {
+ console.error("Failed to check initialization status:", error);
+ setIsInitialized(false);
+ } finally {
+ setIsLoading(false);
+ }
+ };
+
+ if (isLoading) {
+ return ;
+ }
+
+ if (!isInitialized) {
+ // Not initialized, redirect to setup page
+ return ;
+ }
+
+ return <>{children}>;
+}
diff --git a/site/src/components/ServerLatency.tsx b/site/src/components/ServerLatency.tsx
new file mode 100644
index 0000000..c5a7ac1
--- /dev/null
+++ b/site/src/components/ServerLatency.tsx
@@ -0,0 +1,48 @@
+import { Flex, Text, Badge } from "@radix-ui/themes";
+import { Icon } from "@iconify/react";
+
+interface NetworkStatus {
+ reachable: boolean;
+ latency: number;
+}
+
+interface ServerLatencyProps {
+ networkStatus?: NetworkStatus;
+ size?: "1" | "2" | "3";
+}
+
+export function ServerLatency({ networkStatus, size = "2" }: ServerLatencyProps) {
+ if (!networkStatus) {
+ return (
+
+ -
+
+ );
+ }
+
+ if (!networkStatus.reachable) {
+ return (
+
+
+ Unreachable
+
+ );
+ }
+
+ const getLatencyColor = (latency: number) => {
+ if (latency < 50) return "var(--green-11)";
+ if (latency < 150) return "var(--amber-11)";
+ return "var(--red-11)";
+ };
+
+ const color = getLatencyColor(networkStatus.latency);
+
+ return (
+
+
+
+ {networkStatus.latency}ms
+
+
+ );
+}
diff --git a/site/src/components/ServerLocation.tsx b/site/src/components/ServerLocation.tsx
new file mode 100644
index 0000000..abe26fd
--- /dev/null
+++ b/site/src/components/ServerLocation.tsx
@@ -0,0 +1,43 @@
+import { Flex, Text } from "@radix-ui/themes";
+import { Icon } from "@iconify/react";
+
+interface GeoLocation {
+ city?: string;
+ region?: string;
+ country?: string;
+ isp?: string;
+}
+
+interface ServerLocationProps {
+ geoLocation?: GeoLocation;
+ size?: "1" | "2" | "3";
+ showISP?: boolean;
+}
+
+export function ServerLocation({ geoLocation, size = "2", showISP = true }: ServerLocationProps) {
+ if (!geoLocation) {
+ return (
+
+ -
+
+ );
+ }
+
+ const locationText = geoLocation.city || geoLocation.region || geoLocation.country;
+
+ return (
+
+
+
+
+ {locationText || "Unknown"}
+
+
+ {showISP && geoLocation.isp && (
+
+ {geoLocation.isp}
+
+ )}
+
+ );
+}
diff --git a/site/src/components/StatCard.tsx b/site/src/components/StatCard.tsx
new file mode 100644
index 0000000..dfdaf78
--- /dev/null
+++ b/site/src/components/StatCard.tsx
@@ -0,0 +1,57 @@
+import { Box, Card, Flex, Text } from "@radix-ui/themes";
+import React from "react";
+
+export function StatCard({
+ title,
+ value,
+ subtitle,
+ icon,
+ color = "gray",
+}: {
+ title: string;
+ value: React.ReactNode;
+ subtitle?: string;
+ icon: React.ReactNode;
+ color?: "green" | "red" | "blue" | "orange" | "gray";
+}) {
+ const colorMap = {
+ green: "var(--green-9)",
+ red: "var(--red-9)",
+ blue: "var(--blue-9)",
+ orange: "var(--orange-9)",
+ gray: "var(--gray-9)",
+ };
+
+ return (
+
+
+
+ {icon}
+
+
+
+ {title}
+
+
+
+ {value}
+
+
+ {subtitle && (
+
+ {subtitle}
+
+ )}
+
+
+
+ );
+}
diff --git a/site/src/components/ThemeToggle.tsx b/site/src/components/ThemeToggle.tsx
new file mode 100644
index 0000000..66a0ea4
--- /dev/null
+++ b/site/src/components/ThemeToggle.tsx
@@ -0,0 +1,39 @@
+import { motion, AnimatePresence } from "framer-motion";
+import { Icon } from "@iconify/react";
+import { useTheme } from "../contexts/ThemeContext";
+
+export function ThemeToggle() {
+ const { theme, toggleTheme } = useTheme();
+
+ return (
+
+
+
+
+ {theme === "light" ? (
+
+ ) : (
+
+ )}
+
+
+
+
+ );
+}
diff --git a/site/src/contexts/LanguageContext.tsx b/site/src/contexts/LanguageContext.tsx
new file mode 100644
index 0000000..541d1ed
--- /dev/null
+++ b/site/src/contexts/LanguageContext.tsx
@@ -0,0 +1,86 @@
+import React, { createContext, useContext, useEffect, useState, useCallback } from "react";
+import type { ReactNode } from "react";
+import { useTranslation } from "react-i18next";
+
+type Language = "en" | "zh";
+
+const USER_LANG_KEY = "user-language";
+
+function getBrowserLanguage(): Language {
+ const lang = navigator.language || "en";
+ return lang.startsWith("zh") ? "zh" : "en";
+}
+
+function readUserLanguage(): Language | null {
+ try {
+ const val = localStorage.getItem(USER_LANG_KEY);
+ if (val === "en" || val === "zh") return val;
+ } catch {}
+ return null;
+}
+
+interface LanguageContextType {
+ language: Language;
+ isManuallySet: boolean;
+ setLanguage: (lang: Language) => void;
+ resetToDefault: () => void;
+}
+
+const LanguageContext = createContext(undefined);
+
+export const LanguageProvider: React.FC<{ children: ReactNode }> = ({ children }) => {
+ const { i18n } = useTranslation();
+ const [userLanguage, setUserLanguageState] = useState(readUserLanguage);
+
+ const setUserLanguage = useCallback((lang: Language | null) => {
+ setUserLanguageState(lang);
+ try {
+ if (lang === null) {
+ localStorage.removeItem(USER_LANG_KEY);
+ } else {
+ localStorage.setItem(USER_LANG_KEY, lang);
+ }
+ } catch {}
+ }, []);
+
+ const language: Language = userLanguage ?? getBrowserLanguage();
+
+ useEffect(() => {
+ i18n.changeLanguage(language);
+ }, [language, i18n]);
+
+ const setLanguage = useCallback(
+ (lang: Language) => {
+ setUserLanguage(lang);
+ i18n.changeLanguage(lang);
+ },
+ [i18n, setUserLanguage]
+ );
+
+ // 重置为浏览器默认语言(清除用户的手动设置)
+ const resetToDefault = useCallback(() => {
+ setUserLanguage(null);
+ i18n.changeLanguage(getBrowserLanguage());
+ }, [i18n, setUserLanguage]);
+
+ return (
+
+ {children}
+
+ );
+};
+
+export const useLanguage = () => {
+ const context = useContext(LanguageContext);
+ if (context === undefined) {
+ throw new Error("useLanguage must be used within a LanguageProvider");
+ }
+ return context;
+};
diff --git a/site/src/contexts/ThemeContext.tsx b/site/src/contexts/ThemeContext.tsx
new file mode 100644
index 0000000..0c7e3b1
--- /dev/null
+++ b/site/src/contexts/ThemeContext.tsx
@@ -0,0 +1,44 @@
+import { createContext, useContext, useState, useEffect, type ReactNode } from "react";
+
+type Theme = "light" | "dark";
+
+interface ThemeContextType {
+ theme: Theme;
+ toggleTheme: () => void;
+}
+
+const ThemeContext = createContext(undefined);
+
+export function ThemeProvider({ children }: { children: ReactNode }) {
+ const [theme, setTheme] = useState(() => {
+ // Read saved theme from localStorage, default to light
+ if (typeof window !== "undefined") {
+ const saved = localStorage.getItem("theme") as Theme;
+ if (saved) return saved;
+ // Check system preference
+ if (window.matchMedia("(prefers-color-scheme: dark)").matches) {
+ return "dark";
+ }
+ }
+ return "light";
+ });
+
+ useEffect(() => {
+ // Save theme to localStorage
+ localStorage.setItem("theme", theme);
+ }, [theme]);
+
+ const toggleTheme = () => {
+ setTheme((prev) => (prev === "light" ? "dark" : "light"));
+ };
+
+ return {children} ;
+}
+
+export function useTheme() {
+ const context = useContext(ThemeContext);
+ if (context === undefined) {
+ throw new Error("useTheme must be used within a ThemeProvider");
+ }
+ return context;
+}
diff --git a/site/src/i18n.ts b/site/src/i18n.ts
new file mode 100644
index 0000000..981e28d
--- /dev/null
+++ b/site/src/i18n.ts
@@ -0,0 +1,30 @@
+import i18n from "i18next";
+import { initReactI18next } from "react-i18next";
+import en from "./locales/en.json";
+import zh from "./locales/zh.json";
+
+let initialLanguage = "en";
+try {
+ const userLang = localStorage.getItem("user-language");
+ if (userLang === "en" || userLang === "zh") {
+ initialLanguage = userLang;
+ }
+} catch {}
+
+i18n.use(initReactI18next).init({
+ resources: {
+ en: {
+ translation: en,
+ },
+ zh: {
+ translation: zh,
+ },
+ },
+ lng: initialLanguage,
+ fallbackLng: "en",
+ interpolation: {
+ escapeValue: false,
+ },
+});
+
+export default i18n;
diff --git a/site/src/index.css b/site/src/index.css
new file mode 100644
index 0000000..98dd359
--- /dev/null
+++ b/site/src/index.css
@@ -0,0 +1,38 @@
+@import "tailwindcss";
+
+/* Status Indicator Dot Animation */
+@keyframes status-blink {
+ 0%,
+ 100% {
+ opacity: 1;
+ transform: scale(1);
+ }
+ 50% {
+ opacity: 0.3;
+ transform: scale(0.85);
+ }
+}
+
+.status-dot {
+ display: inline-block;
+ width: 8px;
+ height: 8px;
+ border-radius: 50%;
+ margin-right: 6px;
+ animation: status-blink 2s ease-in-out infinite;
+}
+
+.status-dot-green {
+ background-color: var(--green-9);
+ box-shadow: 0 0 8px var(--green-a7);
+}
+
+.status-dot-red {
+ background-color: var(--red-9);
+ box-shadow: 0 0 8px var(--red-a7);
+}
+
+.status-dot-gray {
+ background-color: var(--gray-9);
+ box-shadow: 0 0 8px var(--gray-a7);
+}
diff --git a/site/src/layouts/MainLayout.tsx b/site/src/layouts/MainLayout.tsx
new file mode 100644
index 0000000..63b4696
--- /dev/null
+++ b/site/src/layouts/MainLayout.tsx
@@ -0,0 +1,453 @@
+import { Avatar, Box, DropdownMenu, Flex, Popover, Text } from "@radix-ui/themes";
+import { type ReactNode, useEffect, useState } from "react";
+import { Link, useLocation } from "react-router-dom";
+import { useTranslation } from "react-i18next";
+import pb from "../lib/pocketbase";
+import { getGravatarUrl } from "../lib/gravatar";
+import { motion, AnimatePresence } from "framer-motion";
+import { PageTransition } from "../components/PageTransition";
+import { ThemeToggle } from "../components/ThemeToggle";
+import { LanguageToggle } from "../components/LanguageToggle";
+import logo from "../assets/logo.png";
+import { Icon } from "@iconify/react";
+
+interface MainLayoutProps {
+ children: ReactNode;
+}
+
+// Detect mobile by user agent OR viewport width < 640px (sm breakpoint).
+// Uses matchMedia so the layout re-evaluates only when the threshold is crossed,
+// not on every pixel change.
+function useIsMobile() {
+ const isUA = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(
+ navigator.userAgent,
+ );
+
+ const [isSmall, setIsSmall] = useState(() => window.matchMedia("(max-width: 639px)").matches);
+
+ useEffect(() => {
+ const mq = window.matchMedia("(max-width: 639px)");
+ const handler = (e: MediaQueryListEvent) => setIsSmall(e.matches);
+ mq.addEventListener("change", handler);
+ return () => mq.removeEventListener("change", handler);
+ }, []);
+
+ return isUA || isSmall;
+}
+
+function isNewerVersion(latest: string, current: string): boolean {
+ const clean = (v: string) => v.replace(/^v/, "");
+ const parts = (v: string) => clean(v).split(".").map(Number);
+ const [la, lb, lc] = parts(latest);
+ const [ca, cb, cc] = parts(current);
+ if (la !== ca) return la > ca;
+ if (lb !== cb) return lb > cb;
+ return lc > cc;
+}
+
+const navItems = [
+ {
+ labelKey: "nav.dashboard",
+ path: "/dashboard",
+ icon: ,
+ },
+ {
+ labelKey: "nav.servers",
+ path: "/servers",
+ icon: ,
+ },
+ {
+ labelKey: "nav.proxies",
+ path: "/proxies",
+ icon: ,
+ },
+];
+
+const mobileBottomNavItems = navItems;
+
+const handleLogout = () => {
+ pb.authStore.clear();
+ window.location.href = "/login";
+};
+
+const handleGotoProfile = () => {
+ window.location.href = "/settings?tab=profile";
+};
+
+export function MainLayout({ children }: MainLayoutProps) {
+ const { t } = useTranslation();
+ const location = useLocation();
+ const isMobile = useIsMobile();
+
+ const [appVersion, setAppVersion] = useState("");
+ const [latestVersion, setLatestVersion] = useState("");
+ const [releaseUrl, setReleaseUrl] = useState("");
+ const updateAvailable = appVersion && latestVersion ? isNewerVersion(latestVersion, appVersion) : false;
+
+ useEffect(() => {
+ fetch("/api/system/version")
+ .then((res) => res.json())
+ .then((data) => data.version && setAppVersion(data.version))
+ .catch(() => {});
+
+ fetch("/api/system/latest-version")
+ .then((res) => res.json())
+ .then((data) => {
+ if (data.tag_name) setLatestVersion(data.tag_name);
+ if (data.html_url) setReleaseUrl(data.html_url);
+ })
+ .catch(() => {});
+ }, []);
+
+ // Get current user info from PocketBase authStore
+ const currentUser = pb.authStore.record;
+ const userEmail = currentUser?.email || "";
+ const userNickName = currentUser?.nickname || "";
+ const gravatarUrl = currentUser?.avatar
+ ? pb.files.getURL(currentUser, currentUser.avatar)
+ : getGravatarUrl(userEmail, 80);
+
+ return (
+
+ {/* Top Navigation */}
+
+
+
+ {/* Left: Logo + Desktop Nav */}
+
+ {/* Logo */}
+
+
+
+
+
+ Frpc Hub
+
+
+
+
+
+ {/* Desktop Navigation Menu */}
+ {!isMobile && (
+
+ {navItems.map((item) => {
+ const isActive = location.pathname === item.path;
+ return (
+
+
+
+ {item.icon}
+
+ {t(item.labelKey)}
+
+
+ {isActive && (
+
+ )}
+
+
+ );
+ })}
+
+ )}
+
+
+ {/* Right: Controls */}
+
+ {/* Theme Toggle */}
+
+
+ {/* Language Toggle */}
+
+
+ {/* Update Available Badge */}
+ {updateAvailable && (
+
+
+
+
+
+
+
+
+
+
+
+
+ {t("version.updateAvailable")}
+
+
+
+
+ {t("version.current")}
+ v{appVersion}
+
+
+ {t("version.latest")}
+ {latestVersion}
+
+
+ {releaseUrl && (
+
+
+
+ {t("version.updateNow")}
+
+
+ )}
+
+
+
+ )}
+
+ {/* Settings */}
+
+
+
+
+
+
+
+
+ {/* User Dropdown */}
+
+
+
+
+
+ {/* Show name/email only on desktop */}
+ {!isMobile && (
+
+
+ {userNickName}
+
+
+ {userEmail}
+
+
+ )}
+
+
+
+
+
+ {t("settings.profile")}
+
+
+
+ {t("nav.logout")}
+
+
+
+
+
+
+
+
+ {/* Main Content */}
+
+
+
+ {children}
+
+
+
+
+ {/* Footer — desktop only */}
+ {!isMobile && (
+
+
+
+ {/* Left: Copyright */}
+
+
+ © 2026 Frpc Hub. All rights reserved.
+
+
+
+ {/* Center: Version & Author */}
+
+
+
+ Version: {appVersion ? `v${appVersion}` : "—"}
+
+ {updateAvailable && releaseUrl && (
+
+
+
+ {latestVersion}
+
+
+ )}
+
+
+
+ Author:
+
+
+
+
+ liujiawei
+
+
+
+
+
+ {/* Right: Links */}
+
+
+
+
+ Frpc Hub
+
+
+
+
+
+
+ )}
+
+ {/* Mobile Bottom Navigation */}
+ {isMobile && (
+
+
+ {mobileBottomNavItems.map((item) => {
+ const isActive = location.pathname.startsWith(item.path);
+ return (
+
+
+ {item.icon}
+
+ {t(item.labelKey)}
+
+
+
+ );
+ })}
+
+
+ )}
+
+ );
+}
+
+export default MainLayout;
diff --git a/site/src/lib/format.ts b/site/src/lib/format.ts
new file mode 100644
index 0000000..f871016
--- /dev/null
+++ b/site/src/lib/format.ts
@@ -0,0 +1,39 @@
+export const formatBytes = (bytes: number): { value: number; unit: string } => {
+ if (bytes === 0) return { value: 0, unit: "B" };
+ const k = 1024;
+ const sizes = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
+
+ const i = Math.floor(Math.log(bytes) / Math.log(k));
+ return { value: bytes / Math.pow(k, i), unit: sizes[i] };
+};
+
+/**
+ * Format a timestamp into a human-readable "time ago" string
+ * @param timestamp - ISO date string or Date object
+ * @returns Formatted string like "5 minutes ago", "2 days ago", etc.
+ */
+export const getTimeAgo = (timestamp: string | Date | null | undefined): string => {
+ if (!timestamp) return "Never";
+
+ const date = new Date(timestamp);
+ const now = new Date();
+ const diffMs = now.getTime() - date.getTime();
+
+ // Handle future dates
+ if (diffMs < 0) return "Just now";
+
+ const diffMinutes = Math.floor(diffMs / (1000 * 60));
+ const diffHours = Math.floor(diffMs / (1000 * 60 * 60));
+ const diffDays = Math.floor(diffMs / (1000 * 60 * 60 * 24));
+
+ if (diffMinutes < 1) return "Just now";
+ if (diffMinutes < 60) return `${diffMinutes} minute${diffMinutes > 1 ? "s" : ""} ago`;
+ if (diffHours < 24) return `${diffHours} hour${diffHours > 1 ? "s" : ""} ago`;
+ if (diffDays < 30) return `${diffDays} day${diffDays > 1 ? "s" : ""} ago`;
+ if (diffDays < 365) {
+ const months = Math.floor(diffDays / 30);
+ return `${months} month${months > 1 ? "s" : ""} ago`;
+ }
+ const years = Math.floor(diffDays / 365);
+ return `${years} year${years > 1 ? "s" : ""} ago`;
+};
diff --git a/site/src/lib/gravatar.ts b/site/src/lib/gravatar.ts
new file mode 100644
index 0000000..01e612c
--- /dev/null
+++ b/site/src/lib/gravatar.ts
@@ -0,0 +1,21 @@
+import md5 from "md5";
+
+/**
+ * Generate Gravatar URL from email address
+ * @param email - User's email address
+ * @param size - Image size in pixels (default: 80)
+ * @param defaultImage - Default image type if email has no gravatar
+ * Options: 'mp' (mystery person), 'identicon', 'monsterid', 'wavatar', 'retro', 'robohash', 'blank'
+ * @returns Gravatar URL
+ */
+export function getGravatarUrl(
+ email: string,
+ size: number = 80,
+ defaultImage: string = "mp"
+): string {
+ const trimmedEmail = email?.trim().toLowerCase() || "";
+ const hash = md5(trimmedEmail);
+ return `https://www.gravatar.com/avatar/${hash}?s=${size}&d=${defaultImage}`;
+}
+
+export default getGravatarUrl;
diff --git a/site/src/lib/pocketbase.ts b/site/src/lib/pocketbase.ts
new file mode 100644
index 0000000..02e45f6
--- /dev/null
+++ b/site/src/lib/pocketbase.ts
@@ -0,0 +1,5 @@
+import PocketBase from "pocketbase";
+
+const pb = new PocketBase(import.meta.env.VITE_POCKETBASE_URL || "/api");
+
+export default pb;
diff --git a/site/src/lib/regex.ts b/site/src/lib/regex.ts
new file mode 100644
index 0000000..ba38dbd
--- /dev/null
+++ b/site/src/lib/regex.ts
@@ -0,0 +1,13 @@
+export const REGEX = {
+ // IPv4 or IPv6 address
+ IP: /^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,
+ // IP or Hostname
+ IP_OR_HOSTNAME:
+ /^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$|^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,
+ // Port number (1-65535)
+ PORT: /^([1-9][0-9]{0,3}|[1-5][0-9]{4}|6[0-4][0-9]{3}|65[0-4][0-9]{2}|655[0-2][0-9]|6553[0-5])$/,
+ // Proxy name (alphanumeric, hyphens, underscores)
+ PROXY_NAME: /^[a-zA-Z0-9_-]+$/,
+ // Server name (alphanumeric, Chinese, spaces, dots, underscores, hyphens)
+ SERVER_NAME: /^[a-zA-Z0-9\u4e00-\u9fa5\s._-]+$/,
+};
diff --git a/site/src/locales/en.json b/site/src/locales/en.json
new file mode 100644
index 0000000..20a13f4
--- /dev/null
+++ b/site/src/locales/en.json
@@ -0,0 +1,443 @@
+{
+ "common": {
+ "confirm": "Confirm",
+ "cancel": "Cancel",
+ "save": "Save",
+ "delete": "Delete",
+ "edit": "Edit",
+ "add": "Add",
+ "search": "Search",
+ "loading": "Loading...",
+ "success": "Success",
+ "error": "Error",
+ "warning": "Warning",
+ "info": "Info",
+ "actions": "Actions",
+ "name": "Name",
+ "type": "Type",
+ "status": "Status",
+ "created": "Created",
+ "updated": "Updated",
+ "description": "Description",
+ "close": "Close",
+ "submit": "Submit",
+ "reset": "Reset",
+ "discardChanges": "Discard Changes?",
+ "discardChangesDesc": "You have unsaved changes. Are you sure you want to discard them?",
+ "discard": "Discard",
+ "keepEditing": "Keep Editing",
+ "back": "Back"
+ },
+ "nav": {
+ "dashboard": "Dashboard",
+ "servers": "Servers",
+ "proxies": "Proxies",
+ "settings": "Settings",
+ "logout": "Logout",
+ "version": "Version",
+ "import": "Import"
+ },
+ "auth": {
+ "login": "Login",
+ "signIn": "Sign In",
+ "signingIn": "Signing in...",
+ "username": "Username",
+ "email": "Email",
+ "password": "Password",
+ "rememberMe": "Remember me",
+ "forgotPassword": "Forgot password?",
+ "loginSuccess": "Login successful",
+ "loginFailed": "Login failed",
+ "signInToAccount": "Sign in to your Frpc Hub account",
+ "enterEmail": "Enter your email",
+ "enterPassword": "Enter your password"
+ },
+ "dashboard": {
+ "title": "Dashboard",
+ "welcome": "Welcome to Frpc Hub",
+ "overview": "Overview of your Frpc Hub",
+ "systemOverview": "System Overview",
+ "totalServers": "Total Servers",
+ "runningServers": "Running Servers",
+ "runningProxies": "Running Proxies",
+ "onlineServers": "Online Servers",
+ "totalProxies": "Total Proxies",
+ "onlineProxies": "Online Proxies",
+ "activeProxies": "Active Proxies",
+ "trafficIn": "Traffic In",
+ "trafficOut": "Traffic Out",
+ "recentActivity": "Recent Activity",
+ "quickActions": "Quick Actions",
+ "systemStatus": "System Status",
+ "maxLatency": "Max Latency",
+ "systemUptime": "System Uptime",
+ "runningSinceStartup": "Running since startup",
+ "proxyTypeDistribution": "Proxy Type Distribution",
+ "topology": "Network Topology",
+ "topologyDesc": "Server and proxy relationship overview",
+ "topologyEmpty": "No servers configured",
+ "topologyEmptyDesc": "Add a server to visualize the network topology",
+ "topologyVisitors": "Visitors",
+ "topologyInternet": "Internet",
+ "topologyLocalService": "Local Service",
+ "noProxies": "No proxies configured",
+ "noProxiesDesc": "Add a proxy to see the type distribution",
+ "quickActions": "Quick Actions",
+ "qaServersDesc": "Manage server connections",
+ "qaProxiesDesc": "Configure proxy tunnels",
+ "qaImportDesc": "Import from TOML config",
+ "qaSettingsDesc": "App preferences & profile"
+ },
+ "server": {
+ "title": "Servers",
+ "addServer": "Add Server",
+ "addServerDesc": "Add a new FRP server connection",
+ "editServer": "Edit Server",
+ "updateServerDesc": "Update server connection details",
+ "serverName": "Server Name",
+ "serverAddr": "Server Address",
+ "serverPort": "Server Port",
+ "status": "Status",
+ "running": "Running",
+ "stopped": "Stopped",
+ "start": "Start",
+ "stop": "Stop",
+ "reload": "Reload",
+ "delete": "Delete",
+ "edit": "Edit",
+ "view": "View",
+ "launch": "Launch",
+ "autoConnection": "Auto Connection",
+ "autoConnectionDesc": "Automatically start this server when the application launches",
+ "basic": "Basic",
+ "auth": "Authentication",
+ "log": "Log",
+ "transport": "Transport",
+ "metadatas": "Metadatas",
+ "details": "Server Details",
+ "detailsAndLogs": "Server Details & Logs",
+ "configuration": "Configuration",
+ "noServers": "No Servers Configured",
+ "addFirstServer": "Add your first FRP server to get started. You'll need this to Manage your proxy configurations.",
+ "addYourFirstServer": "Add Your First Server",
+ "latency": "Latency",
+ "location": "Location",
+ "tls": "TLS",
+ "enabled": "Enabled",
+ "disabled": "Disabled",
+ "manageServers": "Manage your FRP server connections",
+ "allServers": "All Servers",
+ "searchServers": "Search servers...",
+ "refresh": "Refresh",
+ "totalServers": "Total Servers",
+ "noResultsFound": "No results found",
+ "noServersMatch": "No servers match your search query",
+ "clearSearch": "Clear Search",
+ "confirmDeletion": "Confirm Deletion",
+ "deleteConfirmMessage": "Are you sure you want to delete this server? This action cannot be undone.",
+ "host": "Host",
+ "port": "Port",
+ "bootStatus": "BootStatus",
+ "basicInformation": "Basic Information",
+ "hostAddress": "Host Address",
+ "createdAt": "Created At",
+ "lastUpdated": "Last Updated",
+ "protocol": "Protocol",
+ "noDescription": "No description provided.",
+ "proxyURL": "Proxy URL",
+ "connectionLogs": "Connection Logs",
+ "clear": "Clear",
+ "noLogsAvailable": "No logs available.",
+ "failedToLoad": "Failed to load server",
+ "backToServers": "Back to Servers",
+ "serverNamePlaceholder": "e.g. Production Server",
+ "hostAddressLabel": "Host Address",
+ "hostAddressPlaceholder": "e.g. frps.example.com",
+ "portLabel": "Port",
+ "portPlaceholder": "7000",
+ "version": "Version",
+ "selectVersion": "Select version",
+ "builtIn": "Built-in",
+ "authentication": "Authentication",
+ "selectAuthMethod": "Select authentication method",
+ "authMethodNone": "None",
+ "authMethodToken": "Token",
+ "authMethodOidc": "OIDC (Coming Soon)",
+ "token": "Token",
+ "tokenPlaceholder": "Authentication token",
+ "clientId": "Client ID",
+ "clientIdPlaceholder": "OIDC Client ID",
+ "clientSecret": "Client Secret",
+ "clientSecretPlaceholder": "OIDC Client Secret",
+ "audience": "Audience",
+ "audiencePlaceholder": "OIDC Audience",
+ "tokenEndpoint": "Token Endpoint",
+ "tokenEndpointPlaceholder": "https://idp.example.com/oauth/token",
+ "descriptionLabel": "Description",
+ "descriptionPlaceholder": "Add some notes about this server...",
+ "logLevel": "Log Level",
+ "logLevelTrace": "Trace",
+ "logLevelDebug": "Debug",
+ "logLevelInfo": "Info",
+ "logLevelWarn": "Warn",
+ "logLevelError": "Error",
+ "logFile": "Log File Path",
+ "logFilePlaceholder": "./frpc.log",
+ "maxDays": "Max Days",
+ "maxDaysPlaceholder": "3",
+ "protocolTcp": "TCP",
+ "protocolKcp": "KCP",
+ "protocolQuic": "QUIC",
+ "protocolWebsocket": "WebSocket",
+ "protocolWss": "WebSocket Secure",
+ "tlsEnable": "Enable TLS",
+ "disableCustomTLSFirstByte": "Disable Custom TLS First Byte",
+ "serverNameSNI": "Server Name (SNI)",
+ "serverNameSNIPlaceholder": "e.g. example.com",
+ "certFileContent": "Cert File Content",
+ "certFilePlaceholder": "Paste certificate content or upload file...",
+ "keyFileContent": "Key File Content",
+ "keyFilePlaceholder": "Paste key content or upload file...",
+ "trustedCAContent": "Trusted CA Content",
+ "trustedCAPlaceholder": "Paste CA certificate content or upload file...",
+ "loadFromFile": "Load from File",
+ "tlsServerName": "TLS Server Name",
+ "tlsServerNamePlaceholder": "frps.example.com",
+ "proxyUrl": "Proxy URL",
+ "proxyUrlPlaceholder": "http://user:pass@192.168.1.1:8080",
+ "dialTimeout": "Dial Timeout",
+ "dialTimeoutPlaceholder": "10s",
+ "poolCount": "Pool Count",
+ "poolCountPlaceholder": "5",
+ "tcpMux": "TCP Mux",
+ "tcpMuxKeepaliveInterval": "Keepalive Interval",
+ "tcpMuxKeepaliveIntervalPlaceholder": "60",
+ "heartbeatInterval": "Heartbeat Interval",
+ "heartbeatIntervalPlaceholder": "30",
+ "heartbeatTimeout": "Heartbeat Timeout",
+ "heartbeatTimeoutPlaceholder": "90",
+ "general": "General",
+ "addMetadata": "Add Metadata",
+ "metadataKey": "Key",
+ "metadataValue": "Value",
+ "metadataKeyPlaceholder": "e.g. environment",
+ "metadataValuePlaceholder": "e.g. production",
+ "noMetadata": "No metadata",
+ "saving": "Saving...",
+ "adding": "Adding...",
+ "saveChanges": "Save Changes",
+ "errorInvalidIP": "Invalid IP address or domain name",
+ "errorInvalidPort": "Port must be between 1 and 65535",
+ "errorInvalidServerName": "Only letters, numbers, Chinese characters, spaces, dots, underscores, and hyphens are allowed"
+ },
+ "proxy": {
+ "title": "Proxies",
+ "addProxy": "Add Proxy",
+ "addProxyDesc": "Configure a new proxy service",
+ "editProxy": "Edit Proxy",
+ "updateProxyDesc": "Update proxy configuration",
+ "proxyName": "Proxy Name",
+ "proxyType": "Proxy Type",
+ "localIP": "Local IP",
+ "localPort": "Local Port",
+ "remotePort": "Remote Port",
+ "customDomains": "Custom Domains",
+ "status": "Status",
+ "online": "Online",
+ "offline": "Offline",
+ "edit": "Edit",
+ "delete": "Delete",
+ "noProxies": "No Proxies Found",
+ "addFirstProxy": "Connect your local services to the world. Add your first proxy configuration to get started.",
+ "createYourFirstProxy": "Create Your First Proxy",
+ "server": "Server",
+ "bootStatus": "Boot Status",
+ "manageProxies": "Manage your proxy configurations",
+ "allProxies": "All Proxies",
+ "searchProxies": "Search proxies...",
+ "refresh": "Refresh",
+ "totalProxies": "Total Proxies",
+ "confirmDeletion": "Confirm Deletion",
+ "deleteConfirmMessage": "Are you sure you want to delete this proxy? This action cannot be undone.",
+ "remotePortOrDomain": "Remote Port / Domain",
+ "selectServer": "Select Server",
+ "selectServerPlaceholder": "Select a server",
+ "noServersAvailable": "No servers available",
+ "goAddServer": "Add a server",
+ "proxyNamePlaceholder": "e.g. my-web-service",
+ "localAddress": "Local Address",
+ "localAddressPlaceholder": "127.0.0.1",
+ "localPortPlaceholder": "8080",
+ "customDomainsLabel": "Custom Domains",
+ "customDomainsPlaceholder": "example.com, www.example.com",
+ "customDomainsDesc": "Multiple domains separated by commas",
+ "subdomain": "Subdomain",
+ "subdomainPlaceholder": "myapp",
+ "subdomainDesc": "Subdomain for the proxy",
+ "remotePortLabel": "Remote Port",
+ "remotePortPlaceholder": "6000",
+ "remotePortDesc": "Port exposed on server side",
+ "descriptionLabel": "Description",
+ "descriptionPlaceholder": "Add some description...",
+ "encryption": "Encryption",
+ "compression": "Compression",
+ "bandwidthLimit": "Bandwidth Limit",
+ "bandwidthLimitPlaceholder": "1MB",
+ "basicConfig": "Basic Config",
+ "advancedOptions": "Advanced Options",
+ "transportEncryption": "Transport Encryption",
+ "transportEncryptionDesc": "Enable to encrypt data during transport",
+ "dataCompression": "Data Compression",
+ "dataCompressionDesc": "Enable to compress data during transport",
+ "saving": "Saving...",
+ "adding": "Adding...",
+ "saveChanges": "Save Changes",
+ "enabled": "Enabled",
+ "disabled": "Disabled",
+ "errorInvalidName": "Invalid name (use alphanumeric, - or _)",
+ "errorInvalidIP": "Invalid IP or hostname",
+ "errorInvalidPort": "Invalid port (1-65535)"
+ },
+ "settings": {
+ "title": "Settings",
+ "language": "Language",
+ "interfaceLanguage": "Interface Language",
+ "chooseLanguage": "Choose the language for the dashboard",
+ "theme": "Theme",
+ "profile": "Profile",
+ "general": "General",
+ "generalSettings": "General Settings",
+ "configureApp": "Configure how Frpc Hub looks and behaves",
+ "saveSuccess": "Settings saved successfully",
+ "saveFailed": "Failed to save settings",
+ "preferences": "Preferences",
+ "manageWorkspace": "Manage your workspace preferences and system configuration",
+ "personalLanguageOverride": "You have a personal language preference set",
+ "resetToDefault": "Reset to default",
+ "monitorSettings": "Monitor Settings",
+ "latencyCheckInterval": "Latency Check Interval",
+ "latencyCheckIntervalDesc": "How often to check server latency (10-300 seconds)",
+ "locationCheckInterval": "Location Check Interval",
+ "locationCheckIntervalDesc": "How often to check server location and IP (30-600 seconds)",
+ "seconds": "seconds",
+ "userProfile": "User Profile",
+ "managePersonalInfo": "Manage your personal information and account settings",
+ "active": "Active",
+ "personalInformation": "Personal Information",
+ "displayName": "Display Name",
+ "enterDisplayName": "Enter your display name",
+ "emailAddress": "Email Address",
+ "emailPlaceholder": "your.email@example.com",
+ "emailDescription": "Your email is used for notifications and account recovery",
+ "security": "Security",
+ "password": "Password",
+ "lastChanged": "Last changed",
+ "changePassword": "Change Password",
+ "saving": "Saving...",
+ "saveChanges": "Save Changes",
+ "changePasswordTitle": "Change Password",
+ "changePasswordDesc": "Enter your current password and a new password to update your account security.",
+ "currentPassword": "Current Password",
+ "enterCurrentPassword": "Enter current password",
+ "newPassword": "New Password",
+ "enterNewPassword": "Enter new password",
+ "confirmNewPassword": "Confirm New Password",
+ "confirmNewPasswordPlaceholder": "Confirm new password",
+ "updating": "Updating...",
+ "updatePassword": "Update Password",
+ "fillAllFields": "Please fill in all fields",
+ "passwordsDoNotMatch": "New passwords do not match",
+ "passwordTooShort": "Password must be at least 8 characters long",
+ "incorrectPassword": "Current password is incorrect",
+ "passwordUpdateSuccess": "Password updated successfully! Please sign in again."
+ },
+ "language": {
+ "en": "English",
+ "zh": "中文"
+ },
+ "version": {
+ "title": "Version",
+ "current": "Current Version",
+ "latest": "Latest Version",
+ "checkUpdate": "Check for Updates",
+ "upToDate": "You are up to date",
+ "updateAvailable": "Update Available",
+ "updateNow": "View Release"
+ },
+ "import": {
+ "title": "Import",
+ "description": "Import servers and proxies from a FRP TOML config file",
+ "step1Label": "Input",
+ "step2Label": "Preview",
+ "step3Label": "Done",
+ "inputTomlTitle": "Paste or Upload TOML Config",
+ "inputTomlDesc": "Paste the content of your frpc.toml file, or upload it directly. Supports standard FRP v1 client configuration format.",
+ "uploadFile": "Upload File",
+ "tomlPlaceholder": "# frpc.toml\nserverAddr = \"x.x.x.x\"\nserverPort = 7000\n\n[auth]\nmethod = \"token\"\ntoken = \"your-token\"\n\n[[proxies]]\nname = \"ssh\"\ntype = \"tcp\"\nlocalIP = \"127.0.0.1\"\nlocalPort = 22\nremotePort = 6000",
+ "parseAndPreview": "Parse & Preview",
+ "parsing": "Parsing...",
+ "errorEmptyContent": "TOML content cannot be empty",
+ "errorParseFailed": "Failed to parse TOML content. Please check the format.",
+ "serverSection": "Server",
+ "proxySection": "Proxies",
+ "serverName": "Server Name",
+ "serverNamePlaceholder": "e.g. My Server",
+ "serverAddr": "Address",
+ "authMethod": "Auth Method",
+ "duplicate": "Duplicate",
+ "exists": "Exists",
+ "new": "New",
+ "serverDuplicateWarning": "A server with this address and port already exists. You can overwrite it or keep the existing one and only import proxies.",
+ "importServer": "Import Server",
+ "overwriteServer": "Overwrite existing server",
+ "noProxies": "No proxies found in this config file.",
+ "local": "Local",
+ "remote": "Remote",
+ "overwrite": "Overwrite",
+ "selectAll": "Select All",
+ "deselectAll": "Deselect All",
+ "selectedCount": "{{count}} proxy(s) selected",
+ "back": "Back",
+ "confirmImport": "Confirm Import",
+ "importing": "Importing...",
+ "errorImportFailed": "Import failed. Please try again.",
+ "successTitle": "Import Successful!",
+ "successDesc": "Your servers and proxies have been imported.",
+ "serverResult": "Server",
+ "proxiesImported": "Proxies Imported",
+ "proxiesSkipped": "Proxies Skipped",
+ "imported": "Imported",
+ "skipped": "Skipped",
+ "importAnother": "Import Another",
+ "viewServers": "View Servers",
+ "importSuccess": "Import completed successfully"
+ },
+ "error": {
+ "notFound": "Page Not Found",
+ "goHome": "Go to Home",
+ "somethingWrong": "Something went wrong",
+ "tryAgain": "Try Again"
+ },
+ "setup": {
+ "title": "System Initialization",
+ "description": "Set up the administrator account and default language",
+ "language": "Default Language",
+ "adminEmail": "Administrator Email",
+ "enterAdminEmail": "Enter admin email",
+ "password": "Password",
+ "enterPassword": "At least 8 characters",
+ "confirmPassword": "Confirm Password",
+ "enterPasswordAgain": "Enter password again",
+ "complete": "Complete Setup",
+ "initializing": "Initializing...",
+ "success": "System initialized successfully! Please login.",
+ "error": {
+ "allFieldsRequired": "All fields are required",
+ "passwordTooShort": "Password must be at least 8 characters",
+ "passwordMismatch": "Passwords do not match",
+ "invalidEmail": "Invalid email address",
+ "setupFailed": "Failed to initialize system. Please try again.",
+ "settingsCreateFailed": "Failed to initialize system settings"
+ }
+ }
+}
diff --git a/site/src/locales/zh.json b/site/src/locales/zh.json
new file mode 100644
index 0000000..6b5f257
--- /dev/null
+++ b/site/src/locales/zh.json
@@ -0,0 +1,443 @@
+{
+ "common": {
+ "confirm": "确认",
+ "cancel": "取消",
+ "save": "保存",
+ "delete": "删除",
+ "edit": "编辑",
+ "add": "添加",
+ "search": "搜索",
+ "loading": "加载中...",
+ "success": "成功",
+ "error": "错误",
+ "warning": "警告",
+ "info": "信息",
+ "actions": "操作",
+ "name": "名称",
+ "type": "类型",
+ "status": "状态",
+ "created": "创建时间",
+ "updated": "更新时间",
+ "description": "描述",
+ "close": "关闭",
+ "submit": "提交",
+ "reset": "重置",
+ "discardChanges": "放弃更改?",
+ "discardChangesDesc": "您有未保存的更改。确定要放弃它们吗?",
+ "discard": "放弃",
+ "keepEditing": "继续编辑",
+ "back": "返回"
+ },
+ "nav": {
+ "dashboard": "仪表板",
+ "servers": "服务器",
+ "proxies": "代理",
+ "settings": "设置",
+ "logout": "退出登录",
+ "version": "版本",
+ "import": "导入"
+ },
+ "auth": {
+ "login": "登录",
+ "signIn": "登录",
+ "signingIn": "登录中...",
+ "username": "用户名",
+ "email": "邮箱",
+ "password": "密码",
+ "rememberMe": "记住我",
+ "forgotPassword": "忘记密码?",
+ "loginSuccess": "登录成功",
+ "loginFailed": "登录失败",
+ "signInToAccount": "登录到您的 Frpc Hub 账户",
+ "enterEmail": "输入您的邮箱",
+ "enterPassword": "输入您的密码"
+ },
+ "dashboard": {
+ "title": "仪表板",
+ "welcome": "欢迎使用 Frpc Hub",
+ "overview": "您的 Frpc Hub 概览",
+ "systemOverview": "系统概览",
+ "totalServers": "服务器总数",
+ "runningServers": "运行中的服务器",
+ "runningProxies": "运行中的代理",
+ "onlineServers": "在线服务器",
+ "totalProxies": "代理总数",
+ "onlineProxies": "在线代理",
+ "activeProxies": "活跃代理",
+ "trafficIn": "入站流量",
+ "trafficOut": "出站流量",
+ "recentActivity": "最近活动",
+ "quickActions": "快捷操作",
+ "systemStatus": "系统状态",
+ "maxLatency": "最大延迟",
+ "systemUptime": "系统运行时间",
+ "runningSinceStartup": "自启动以来运行",
+ "proxyTypeDistribution": "代理类型分布",
+ "topology": "网络拓扑",
+ "topologyDesc": "服务器与代理的关系总览",
+ "topologyEmpty": "暂无服务器配置",
+ "topologyEmptyDesc": "添加服务器后即可查看网络拓扑图",
+ "topologyVisitors": "访问者",
+ "topologyInternet": "互联网",
+ "topologyLocalService": "本地服务",
+ "noProxies": "暂无代理配置",
+ "noProxiesDesc": "添加代理后即可查看类型分布",
+ "quickActions": "快速操作",
+ "qaServersDesc": "管理服务器连接",
+ "qaProxiesDesc": "配置代理隧道",
+ "qaImportDesc": "从 TOML 配置文件导入",
+ "qaSettingsDesc": "应用设置与个人资料"
+ },
+ "server": {
+ "title": "服务器",
+ "addServer": "添加服务器",
+ "addServerDesc": "添加一个新的 FRP 服务器连接",
+ "editServer": "编辑服务器",
+ "updateServerDesc": "更新服务器连接详情",
+ "serverName": "服务器名称",
+ "serverAddr": "服务器地址",
+ "serverPort": "服务器端口",
+ "status": "状态",
+ "running": "运行中",
+ "stopped": "已停止",
+ "start": "启动",
+ "stop": "停止",
+ "reload": "重载",
+ "delete": "删除",
+ "edit": "编辑",
+ "view": "查看",
+ "launch": "启动",
+ "autoConnection": "自动连接",
+ "autoConnectionDesc": "应用程序启动时自动启动此服务器",
+ "basic": "基础",
+ "auth": "认证",
+ "log": "日志",
+ "transport": "传输",
+ "metadatas": "元数据",
+ "details": "服务器详情",
+ "detailsAndLogs": "服务器详情和日志",
+ "configuration": "配置",
+ "noServers": "未配置服务器",
+ "addFirstServer": "添加您的第一个 FRP 服务器以开始使用。您需要它来管理您的代理配置。",
+ "addYourFirstServer": "添加您的第一个服务器",
+ "latency": "延迟",
+ "location": "位置",
+ "tls": "TLS",
+ "enabled": "已启用",
+ "disabled": "已禁用",
+ "manageServers": "管理您的 FRP 服务器连接",
+ "allServers": "所有服务器",
+ "searchServers": "搜索服务器...",
+ "refresh": "刷新",
+ "totalServers": "服务器总数",
+ "noResultsFound": "未找到结果",
+ "noServersMatch": "没有服务器匹配您的搜索查询",
+ "clearSearch": "清除搜索",
+ "confirmDeletion": "确认删除",
+ "deleteConfirmMessage": "您确定要删除此服务器吗?此操作无法撤消。",
+ "host": "主机",
+ "port": "端口",
+ "bootStatus": "启动状态",
+ "basicInformation": "基本信息",
+ "hostAddress": "主机地址",
+ "createdAt": "创建时间",
+ "lastUpdated": "最后更新",
+ "protocol": "协议",
+ "noDescription": "未提供描述。",
+ "proxyURL": "代理 URL",
+ "connectionLogs": "连接日志",
+ "clear": "清除",
+ "noLogsAvailable": "没有可用的日志。",
+ "failedToLoad": "加载服务器失败",
+ "backToServers": "返回服务器列表",
+ "serverNamePlaceholder": "例如:生产服务器",
+ "hostAddressLabel": "主机地址",
+ "hostAddressPlaceholder": "例如:frps.example.com",
+ "portLabel": "端口",
+ "portPlaceholder": "7000",
+ "version": "版本",
+ "selectVersion": "选择版本",
+ "builtIn": "内置",
+ "authentication": "认证",
+ "selectAuthMethod": "选择认证方式",
+ "authMethodNone": "无",
+ "authMethodToken": "令牌",
+ "authMethodOidc": "OIDC(即将推出)",
+ "token": "令牌",
+ "tokenPlaceholder": "认证令牌",
+ "clientId": "客户端 ID",
+ "clientIdPlaceholder": "OIDC 客户端 ID",
+ "clientSecret": "客户端密钥",
+ "clientSecretPlaceholder": "OIDC 客户端密钥",
+ "audience": "受众",
+ "audiencePlaceholder": "OIDC 受众",
+ "tokenEndpoint": "令牌端点",
+ "tokenEndpointPlaceholder": "https://idp.example.com/oauth/token",
+ "descriptionLabel": "描述",
+ "descriptionPlaceholder": "添加一些关于此服务器的备注...",
+ "logLevel": "日志级别",
+ "logLevelTrace": "跟踪",
+ "logLevelDebug": "调试",
+ "logLevelInfo": "信息",
+ "logLevelWarn": "警告",
+ "logLevelError": "错误",
+ "logFile": "日志文件路径",
+ "logFilePlaceholder": "./frpc.log",
+ "maxDays": "最大天数",
+ "maxDaysPlaceholder": "3",
+ "protocolTcp": "TCP",
+ "protocolKcp": "KCP",
+ "protocolQuic": "QUIC",
+ "protocolWebsocket": "WebSocket",
+ "protocolWss": "WebSocket 安全",
+ "tlsEnable": "启用 TLS",
+ "disableCustomTLSFirstByte": "禁用自定义 TLS 首字节",
+ "serverNameSNI": "服务器名称(SNI)",
+ "serverNameSNIPlaceholder": "例如:example.com",
+ "certFileContent": "证书文件内容",
+ "certFilePlaceholder": "粘贴证书内容或上传文件...",
+ "keyFileContent": "密钥文件内容",
+ "keyFilePlaceholder": "粘贴密钥内容或上传文件...",
+ "trustedCAContent": "受信任的 CA 内容",
+ "trustedCAPlaceholder": "粘贴 CA 证书内容或上传文件...",
+ "loadFromFile": "从文件加载",
+ "tlsServerName": "TLS 服务器名称",
+ "tlsServerNamePlaceholder": "frps.example.com",
+ "proxyUrl": "代理 URL",
+ "proxyUrlPlaceholder": "http://user:pass@192.168.1.1:8080",
+ "dialTimeout": "拨号超时",
+ "dialTimeoutPlaceholder": "10s",
+ "poolCount": "连接池数量",
+ "poolCountPlaceholder": "5",
+ "tcpMux": "TCP 复用",
+ "tcpMuxKeepaliveInterval": "保活间隔",
+ "tcpMuxKeepaliveIntervalPlaceholder": "60",
+ "heartbeatInterval": "心跳间隔",
+ "heartbeatIntervalPlaceholder": "30",
+ "heartbeatTimeout": "心跳超时",
+ "heartbeatTimeoutPlaceholder": "90",
+ "general": "常规",
+ "addMetadata": "添加元数据",
+ "metadataKey": "键",
+ "metadataValue": "值",
+ "metadataKeyPlaceholder": "例如:environment",
+ "metadataValuePlaceholder": "例如:production",
+ "noMetadata": "无元数据",
+ "saving": "保存中...",
+ "adding": "添加中...",
+ "saveChanges": "保存更改",
+ "errorInvalidIP": "无效的 IP 地址或域名",
+ "errorInvalidPort": "端口必须在 1 到 65535 之间",
+ "errorInvalidServerName": "仅允许字母、数字、中文字符、空格、点、下划线和连字符"
+ },
+ "proxy": {
+ "title": "代理",
+ "addProxy": "添加代理",
+ "addProxyDesc": "配置一个新的代理服务",
+ "editProxy": "编辑代理",
+ "updateProxyDesc": "更新代理配置",
+ "proxyName": "代理名称",
+ "proxyType": "代理类型",
+ "localIP": "本地 IP",
+ "localPort": "本地端口",
+ "remotePort": "远程端口",
+ "customDomains": "自定义域名",
+ "status": "状态",
+ "online": "在线",
+ "offline": "离线",
+ "edit": "编辑",
+ "delete": "删除",
+ "noProxies": "未找到代理",
+ "addFirstProxy": "将您的本地服务连接到世界。添加您的第一个代理配置以开始使用。",
+ "createYourFirstProxy": "创建您的第一个代理",
+ "server": "服务器",
+ "bootStatus": "启动状态",
+ "manageProxies": "管理您的代理配置",
+ "allProxies": "所有代理",
+ "searchProxies": "搜索代理...",
+ "refresh": "刷新",
+ "totalProxies": "代理总数",
+ "confirmDeletion": "确认删除",
+ "deleteConfirmMessage": "您确定要删除此代理吗?此操作无法撤消。",
+ "remotePortOrDomain": "远程端口 / 域名",
+ "selectServer": "选择服务器",
+ "selectServerPlaceholder": "选择一个服务器",
+ "noServersAvailable": "没有可用的服务器",
+ "goAddServer": "去添加服务器",
+ "proxyNamePlaceholder": "例如:my-web-service",
+ "localAddress": "本地地址",
+ "localAddressPlaceholder": "127.0.0.1",
+ "localPortPlaceholder": "8080",
+ "customDomainsLabel": "自定义域名",
+ "customDomainsPlaceholder": "example.com, www.example.com",
+ "customDomainsDesc": "多个域名用逗号分隔",
+ "subdomain": "子域名",
+ "subdomainPlaceholder": "myapp",
+ "subdomainDesc": "代理的子域名",
+ "remotePortLabel": "远程端口",
+ "remotePortPlaceholder": "6000",
+ "remotePortDesc": "在服务器端暴露的端口",
+ "descriptionLabel": "描述",
+ "descriptionPlaceholder": "添加一些描述...",
+ "encryption": "加密",
+ "compression": "压缩",
+ "bandwidthLimit": "带宽限制",
+ "bandwidthLimitPlaceholder": "1MB",
+ "basicConfig": "基础配置",
+ "advancedOptions": "高级选项",
+ "transportEncryption": "传输加密",
+ "transportEncryptionDesc": "启用以在传输过程中加密数据",
+ "dataCompression": "数据压缩",
+ "dataCompressionDesc": "启用以在传输过程中压缩数据",
+ "saving": "保存中...",
+ "adding": "添加中...",
+ "saveChanges": "保存更改",
+ "enabled": "已启用",
+ "disabled": "已禁用",
+ "errorInvalidName": "无效的名称(使用字母数字、- 或 _)",
+ "errorInvalidIP": "无效的 IP 或主机名",
+ "errorInvalidPort": "无效的端口(1-65535)"
+ },
+ "settings": {
+ "title": "设置",
+ "language": "语言",
+ "interfaceLanguage": "界面语言",
+ "chooseLanguage": "选择仪表板的语言",
+ "theme": "主题",
+ "profile": "个人资料",
+ "general": "常规",
+ "generalSettings": "常规设置",
+ "configureApp": "配置 Frpc Hub 的外观和行为",
+ "saveSuccess": "设置保存成功",
+ "saveFailed": "设置保存失败",
+ "preferences": "偏好设置",
+ "manageWorkspace": "管理您的工作区偏好和系统配置",
+ "personalLanguageOverride": "您已设置个人语言偏好",
+ "resetToDefault": "恢复默认",
+ "monitorSettings": "监控设置",
+ "latencyCheckInterval": "延迟检测间隔",
+ "latencyCheckIntervalDesc": "检查服务器延迟的频率(10-300 秒)",
+ "locationCheckInterval": "位置检查间隔",
+ "locationCheckIntervalDesc": "检查服务器位置和 IP 的频率(30-600 秒)",
+ "seconds": "秒",
+ "userProfile": "用户资料",
+ "managePersonalInfo": "管理您的个人信息和账户设置",
+ "active": "活跃",
+ "personalInformation": "个人信息",
+ "displayName": "显示名称",
+ "enterDisplayName": "输入您的显示名称",
+ "emailAddress": "电子邮箱",
+ "emailPlaceholder": "your.email@example.com",
+ "emailDescription": "您的邮箱用于通知和账户恢复",
+ "security": "安全",
+ "password": "密码",
+ "lastChanged": "上次修改",
+ "changePassword": "修改密码",
+ "saving": "保存中...",
+ "saveChanges": "保存更改",
+ "changePasswordTitle": "修改密码",
+ "changePasswordDesc": "输入您的当前密码和新密码以更新账户安全。",
+ "currentPassword": "当前密码",
+ "enterCurrentPassword": "输入当前密码",
+ "newPassword": "新密码",
+ "enterNewPassword": "输入新密码",
+ "confirmNewPassword": "确认新密码",
+ "confirmNewPasswordPlaceholder": "确认新密码",
+ "updating": "更新中...",
+ "updatePassword": "更新密码",
+ "fillAllFields": "请填写所有字段",
+ "passwordsDoNotMatch": "新密码不匹配",
+ "passwordTooShort": "密码长度至少为 8 个字符",
+ "incorrectPassword": "当前密码不正确",
+ "passwordUpdateSuccess": "密码更新成功!请重新登录。"
+ },
+ "language": {
+ "en": "English",
+ "zh": "中文"
+ },
+ "version": {
+ "title": "版本",
+ "current": "当前版本",
+ "latest": "最新版本",
+ "checkUpdate": "检查更新",
+ "upToDate": "已是最新版本",
+ "updateAvailable": "有可用更新",
+ "updateNow": "查看发布"
+ },
+ "import": {
+ "title": "导入",
+ "description": "从 FRP TOML 配置文件导入服务器和代理",
+ "step1Label": "输入",
+ "step2Label": "预览",
+ "step3Label": "完成",
+ "inputTomlTitle": "粘贴或上传 TOML 配置",
+ "inputTomlDesc": "粘贴您的 frpc.toml 文件内容,或直接上传文件。支持标准 FRP v1 客户端配置格式。",
+ "uploadFile": "上传文件",
+ "tomlPlaceholder": "# frpc.toml\nserverAddr = \"x.x.x.x\"\nserverPort = 7000\n\n[auth]\nmethod = \"token\"\ntoken = \"your-token\"\n\n[[proxies]]\nname = \"ssh\"\ntype = \"tcp\"\nlocalIP = \"127.0.0.1\"\nlocalPort = 22\nremotePort = 6000",
+ "parseAndPreview": "解析并预览",
+ "parsing": "解析中...",
+ "errorEmptyContent": "TOML 内容不能为空",
+ "errorParseFailed": "TOML 内容解析失败,请检查格式是否正确。",
+ "serverSection": "服务器",
+ "proxySection": "代理",
+ "serverName": "服务器名称",
+ "serverNamePlaceholder": "例如:我的服务器",
+ "serverAddr": "地址",
+ "authMethod": "认证方式",
+ "duplicate": "重复",
+ "exists": "已存在",
+ "new": "新建",
+ "serverDuplicateWarning": "已存在相同地址和端口的服务器。您可以覆盖它,或保留现有服务器并仅导入代理。",
+ "importServer": "导入服务器",
+ "overwriteServer": "覆盖已有服务器",
+ "noProxies": "配置文件中未找到代理。",
+ "local": "本地",
+ "remote": "远端",
+ "overwrite": "覆盖",
+ "selectAll": "全选",
+ "deselectAll": "取消全选",
+ "selectedCount": "已选 {{count}} 个代理",
+ "back": "返回",
+ "confirmImport": "确认导入",
+ "importing": "导入中...",
+ "errorImportFailed": "导入失败,请重试。",
+ "successTitle": "导入成功!",
+ "successDesc": "您的服务器和代理已导入完成。",
+ "serverResult": "服务器",
+ "proxiesImported": "代理导入数",
+ "proxiesSkipped": "代理跳过数",
+ "imported": "已导入",
+ "skipped": "已跳过",
+ "importAnother": "继续导入",
+ "viewServers": "查看服务器",
+ "importSuccess": "导入完成"
+ },
+ "error": {
+ "notFound": "页面未找到",
+ "goHome": "返回首页",
+ "somethingWrong": "出了点问题",
+ "tryAgain": "重试"
+ },
+ "setup": {
+ "title": "系统初始化",
+ "description": "设置管理员账户和默认语言",
+ "language": "默认语言",
+ "adminEmail": "管理员邮箱",
+ "enterAdminEmail": "输入管理员邮箱",
+ "password": "密码",
+ "enterPassword": "至少 8 个字符",
+ "confirmPassword": "确认密码",
+ "enterPasswordAgain": "再次输入密码",
+ "complete": "完成设置",
+ "initializing": "初始化中...",
+ "success": "系统初始化成功!请登录。",
+ "error": {
+ "allFieldsRequired": "所有字段都是必填的",
+ "passwordTooShort": "密码长度至少为 8 个字符",
+ "passwordMismatch": "密码不匹配",
+ "invalidEmail": "无效的邮箱地址",
+ "setupFailed": "系统初始化失败。请重试。",
+ "settingsCreateFailed": "初始化系统设置失败"
+ }
+ }
+}
diff --git a/site/src/main.tsx b/site/src/main.tsx
new file mode 100644
index 0000000..e32282a
--- /dev/null
+++ b/site/src/main.tsx
@@ -0,0 +1,31 @@
+import { StrictMode } from "react";
+import { createRoot } from "react-dom/client";
+import { Theme } from "@radix-ui/themes";
+import { Toaster } from "sonner";
+import "@radix-ui/themes/styles.css";
+import "./index.css";
+import "./i18n";
+import App from "./App.tsx";
+import { ThemeProvider, useTheme } from "./contexts/ThemeContext";
+import { LanguageProvider } from "./contexts/LanguageContext";
+
+function ThemedApp() {
+ const { theme } = useTheme();
+
+ return (
+
+
+
+
+ );
+}
+
+createRoot(document.getElementById("root")!).render(
+
+
+
+
+
+
+
+);
diff --git a/site/src/pages/Dashboard/DashboardPage.css b/site/src/pages/Dashboard/DashboardPage.css
new file mode 100644
index 0000000..2fe0ccf
--- /dev/null
+++ b/site/src/pages/Dashboard/DashboardPage.css
@@ -0,0 +1,11 @@
+.recharts-legend-wrapper {
+ outline: none !important;
+}
+
+.recharts-legend-wrapper * {
+ outline: none !important;
+}
+
+.recharts-surface {
+ outline: none !important;
+}
diff --git a/site/src/pages/Dashboard/DashboardPage.view.tsx b/site/src/pages/Dashboard/DashboardPage.view.tsx
new file mode 100644
index 0000000..7cefc11
--- /dev/null
+++ b/site/src/pages/Dashboard/DashboardPage.view.tsx
@@ -0,0 +1,339 @@
+import { Box, Card, Flex, Text } from "@radix-ui/themes";
+import type {
+ DashboardStats,
+ RecentActivity,
+ TopologyData,
+ TrafficHistoryPoint,
+} from "./useDashboard";
+import { TopologyChart } from "./TopologyChart";
+import { PieChart, Pie, Cell, Tooltip, ResponsiveContainer, Legend } from "recharts";
+import { Icon } from "@iconify/react";
+import { PageHeader } from "../../components/PageHeader";
+import { useState, useEffect } from "react";
+import { Link } from "react-router-dom";
+import { motion } from "framer-motion";
+import { AnimateNumber } from "../../components/AnimateNumber";
+import { useTranslation } from "react-i18next";
+import "./DashboardPage.css";
+
+interface DashboardViewProps {
+ stats: DashboardStats;
+ activities: RecentActivity[];
+ trafficHistory: TrafficHistoryPoint[];
+ topology: TopologyData;
+ loading: boolean;
+}
+
+import { StatCard } from "../../components/StatCard";
+
+// Helper function to format uptime
+function formatUptime(seconds: number): string {
+ const days = Math.floor(seconds / 86400);
+ const hours = Math.floor((seconds % 86400) / 3600);
+ const minutes = Math.floor((seconds % 3600) / 60);
+
+ if (days > 0) {
+ return `${days}d ${hours}h ${minutes}m`;
+ } else if (hours > 0) {
+ return `${hours}h ${minutes}m`;
+ } else {
+ return `${minutes}m`;
+ }
+}
+
+export function DashboardView({ stats, topology }: DashboardViewProps) {
+ const { t } = useTranslation();
+ const [mounted, setMounted] = useState(false);
+
+ useEffect(() => {
+ const timer = setTimeout(() => setMounted(true), 100);
+ return () => clearTimeout(timer);
+ }, []);
+
+ return (
+
+ {/* Header */}
+
+
+ {/* Stats Cards Row 1 */}
+
+
+
+
+
+ / {stats.totalProxies}
+
+ >
+ }
+ color="green"
+ icon={ }
+ />
+
+
+
+
+
+ / {stats.totalServers}
+
+ >
+ }
+ color="blue"
+ icon={ }
+ />
+
+
+
+
+
+ ms
+
+ >
+ }
+ color="orange"
+ icon={ }
+ />
+
+ {/*
+
+ }
+ color="orange"
+ icon={
+
+ }
+ />
+ */}
+
+
+ {/* Quick Actions */}
+
+
+
+ {t("dashboard.quickActions")}
+
+
+ {(
+ [
+ { to: "/servers", icon: "lucide:server", color: "var(--blue-9)", bg: "var(--blue-3)", titleKey: "nav.servers", descKey: "dashboard.qaServersDesc" },
+ { to: "/proxies", icon: "lucide:network", color: "var(--green-9)", bg: "var(--green-3)", titleKey: "nav.proxies", descKey: "dashboard.qaProxiesDesc" },
+ { to: "/import", icon: "lucide:file-input", color: "var(--orange-9)", bg: "var(--orange-3)", titleKey: "nav.import", descKey: "dashboard.qaImportDesc" },
+ { to: "/settings", icon: "lucide:settings-2", color: "var(--purple-9)", bg: "var(--purple-3)", titleKey: "nav.settings", descKey: "dashboard.qaSettingsDesc" },
+ ] as const
+ ).map(({ to, icon, color, bg, titleKey, descKey }) => (
+
+
+
+
+
+
+
+
+ {t(titleKey)}
+
+
+ {t(descKey)}
+
+
+
+
+
+
+
+
+ ))}
+
+
+
+
+ {/* Proxy Type Distribution & System Uptime */}
+
+ {/* Proxy Type Pie Chart */}
+
+
+
+ {/*
+ Proxy Type Distribution
+ */}
+
+
+ {Object.keys(stats.proxyTypeCounts).length === 0 ? (
+
+
+
+
+ {t("dashboard.noProxies")}
+
+
+ {t("dashboard.noProxiesDesc")}
+
+
+
+ ) : (
+
+
+ ({
+ name: type.toUpperCase(),
+ value: count,
+ }))}
+ cx="50%"
+ cy="50%"
+ labelLine={false}
+ label={({ name, percent }) => `${name} ${((percent || 0) * 100).toFixed(0)}%`}
+ outerRadius={100}
+ fill="#8884d8"
+ dataKey="value"
+ >
+ {Object.keys(stats.proxyTypeCounts).map((type, index) => {
+ const colors = {
+ tcp: "var(--blue-9)",
+ udp: "var(--green-9)",
+ http: "var(--orange-9)",
+ https: "var(--purple-9)",
+ };
+ return (
+ |
+ );
+ })}
+
+
+
+
+
+ )}
+
+
+
+
+
+ {/* System Uptime */}
+
+
+
+
+
+
+ {t("dashboard.systemUptime")}
+
+
+ {formatUptime(stats.uptimeSeconds)}
+
+
+ {t("dashboard.runningSinceStartup")}
+
+
+
+
+
+
+
+ {/* Network Topology */}
+
+
+
+
+
+ {t("dashboard.topology")}
+
+
+ {t("dashboard.topologyDesc")}
+
+
+
+
+
+
+
+
+
+ );
+}
diff --git a/site/src/pages/Dashboard/TopologyChart.tsx b/site/src/pages/Dashboard/TopologyChart.tsx
new file mode 100644
index 0000000..a0d974d
--- /dev/null
+++ b/site/src/pages/Dashboard/TopologyChart.tsx
@@ -0,0 +1,520 @@
+import { useMemo } from "react";
+import {
+ ReactFlow,
+ Background,
+ BackgroundVariant,
+ Handle,
+ Position,
+ type Node,
+ type Edge,
+} from "@xyflow/react";
+import "@xyflow/react/dist/style.css";
+import { Flex, Text, useThemeContext } from "@radix-ui/themes";
+import { Icon } from "@iconify/react";
+import { useTranslation } from "react-i18next";
+import type { TopologyData } from "./useDashboard";
+
+// ── Layout ────────────────────────────────────────────────────────────────────
+const VISITOR_W = 112;
+const VISITOR_H = 90;
+const SERVER_W = 158;
+const SERVER_H = 92;
+const PROXY_W = 150;
+const PROXY_H = 92;
+const LOCAL_W = 140;
+const LOCAL_H = 68;
+const ROW_H = 112; // row height (node height + gap)
+
+// Column left-edge X positions
+const COL = {
+ visitor: 0,
+ server: 160, // VISITOR_W + 48
+ proxy: 400, // server + SERVER_W + 82
+ local: 638, // proxy + PROXY_W + 88
+};
+
+// ── Colours ───────────────────────────────────────────────────────────────────
+const C = {
+ // edge colours
+ eVisitor: "#6366f1", // visitor → server : indigo (decorative)
+ eOn: "#22c55e", // any active edge : green
+ eOff: "#71717a", // any inactive edge: gray
+
+ // status
+ online: "#22c55e",
+ offline: "#ef4444",
+
+ // proxy type
+ tcp: "#3b82f6",
+ udp: "#22c55e",
+ http: "#f97316",
+ https: "#a855f7",
+} as const;
+
+function typeColor(t: string): string {
+ return (C as Record)[t.toLowerCase()] ?? "#6b7280";
+}
+
+// Theme
+const LIGHT = {
+ bg: "#ffffff",
+ text: "#111827",
+ sub: "#6b7280",
+ border: "#e5e7eb",
+ pageBg: "#f3f4f6",
+ dot: "#d1d5db",
+};
+const DARK = {
+ bg: "#1c1c2e",
+ text: "#f0f0f0",
+ sub: "#9ca3af",
+ border: "#2d2d44",
+ pageBg: "#13131f",
+ dot: "#3d3d55",
+};
+type Palette = typeof LIGHT;
+
+// Shared
+function StatusPill({
+ online,
+ labels = ["Online", "Offline"],
+}: {
+ online: boolean;
+ labels?: [string, string];
+}) {
+ const color = online ? C.online : C.offline;
+ return (
+
+
+ {online ? labels[0] : labels[1]}
+
+ );
+}
+
+function NodeCard({
+ w,
+ h,
+ accentColor,
+ children,
+ targetPos,
+ targetColor,
+ sourcePos,
+ sourceColor,
+ p: palette,
+}: {
+ w: number;
+ h: number;
+ accentColor: string;
+ children: React.ReactNode;
+ targetPos?: Position;
+ targetColor?: string;
+ sourcePos?: Position;
+ sourceColor?: string;
+ p: Palette;
+}) {
+ return (
+
+ {targetPos !== undefined && (
+
+ )}
+ {sourcePos !== undefined && (
+
+ )}
+ {children}
+
+ );
+}
+
+// Visitor Node
+function VisitorNode({ data }: { data: Record }) {
+ const { t } = useTranslation();
+ const p = data.isDark === "1" ? DARK : LIGHT;
+ return (
+
+
+
+
+
+
+
+ {t("dashboard.topologyVisitors")}
+
+
{t("dashboard.topologyInternet")}
+
+
+ );
+}
+
+// Server Node
+function ServerNode({ data }: { data: Record }) {
+ const p = data.isDark === "1" ? DARK : LIGHT;
+ const online = data.bootStatus === "running";
+ const accent = online ? C.online : C.eOff;
+ const handleColor = online ? C.eOn : C.eOff;
+ return (
+
+
+
+
+ {data.serverName}
+
+
+
+ {data.serverAddr}
+
+
+
+ );
+}
+
+// Proxy Node
+function ProxyNode({ data }: { data: Record }) {
+ const p = data.isDark === "1" ? DARK : LIGHT;
+ const online = data.bootStatus === "online";
+ const tc = typeColor(data.proxyType);
+ const handleColor = online ? C.eOn : C.eOff;
+ return (
+
+ {/* icon + name */}
+
+
+
+ {data.name}
+
+
+ {/* protocol + port */}
+
+ {data.proxyType.toUpperCase()}
+ {data.remotePort && :{data.remotePort} }
+
+ {/* status */}
+
+
+ );
+}
+
+// ── Local Service Node ────────────────────────────────────────────────────────
+function LocalServiceNode({ data }: { data: Record }) {
+ const { t } = useTranslation();
+ const p = data.isDark === "1" ? DARK : LIGHT;
+ return (
+
+
+
+
+ {t("dashboard.topologyLocalService")}
+
+
+
+ {data.localIP}:{data.localPort}
+
+
+ );
+}
+
+const nodeTypes = {
+ visitor: VisitorNode,
+ server: ServerNode,
+ proxy: ProxyNode,
+ localService: LocalServiceNode,
+};
+
+// Edge
+function mkEdge(id: string, source: string, target: string, color: string, active: boolean): Edge {
+ return {
+ id,
+ source,
+ target,
+ type: "smoothstep",
+ animated: active,
+ style: {
+ stroke: active ? color : C.eOff,
+ strokeWidth: active ? 2 : 1.5,
+ strokeDasharray: active ? undefined : "5 4",
+ },
+ };
+}
+
+// Main
+interface TopologyChartProps {
+ topology: TopologyData;
+}
+
+export function TopologyChart({ topology }: TopologyChartProps) {
+ const { t } = useTranslation();
+ const themeCtx = useThemeContext();
+ const isDark = themeCtx.appearance === "dark";
+ const p = isDark ? DARK : LIGHT;
+ const { servers, proxies } = topology;
+
+ const { nodes, edges, totalRows } = useMemo(() => {
+ if (servers.length === 0) return { nodes: [], edges: [], totalRows: 0 };
+
+ // group proxies by server
+ const groups = new Map();
+ for (const px of proxies) {
+ if (!groups.has(px.serverId)) groups.set(px.serverId, []);
+ groups.get(px.serverId)!.push(px);
+ }
+
+ // build row assignments
+ const serverRows: Array<{
+ server: (typeof servers)[0];
+ sProxies: typeof proxies;
+ startRow: number;
+ rowCount: number;
+ }> = [];
+ let row = 0;
+ for (const server of servers) {
+ const sProxies = groups.get(server.id) ?? [];
+ const rowCount = Math.max(sProxies.length, 1);
+ serverRows.push({ server, sProxies, startRow: row, rowCount });
+ row += rowCount;
+ }
+ const totalRows = row;
+
+ const nodes: Node[] = [];
+ const edges: Edge[] = [];
+ const dk = isDark ? "1" : "0";
+
+ // Visitor node — vertically centred over all content
+ const visitorY = (totalRows * ROW_H) / 2 - VISITOR_H / 2;
+ nodes.push({
+ id: "visitor",
+ type: "visitor",
+ position: { x: COL.visitor, y: visitorY },
+ data: { isDark: dk },
+ draggable: false,
+ });
+
+ for (const { server, sProxies, startRow, rowCount } of serverRows) {
+ const serverOnline = server.bootStatus === "running";
+ const serverCY = (startRow + rowCount / 2) * ROW_H;
+ const serverY = serverCY - SERVER_H / 2;
+
+ // Server node
+ nodes.push({
+ id: server.id,
+ type: "server",
+ position: { x: COL.server, y: serverY },
+ data: {
+ serverName: server.serverName,
+ serverAddr: server.serverAddr,
+ bootStatus: server.bootStatus,
+ isDark: dk,
+ },
+ draggable: false,
+ });
+
+ // Visitor → Server
+ edges.push(mkEdge(`e-vis-${server.id}`, "visitor", server.id, C.eOn, serverOnline));
+
+ if (sProxies.length === 0) continue;
+
+ sProxies.forEach((px, pi) => {
+ const proxyOnline = px.bootStatus === "online";
+ const rowCY = (startRow + pi) * ROW_H + ROW_H / 2;
+ const proxyY = rowCY - PROXY_H / 2;
+ const localY = rowCY - LOCAL_H / 2;
+ const localId = `local-${px.id}`;
+
+ // Proxy node
+ nodes.push({
+ id: px.id,
+ type: "proxy",
+ position: { x: COL.proxy, y: proxyY },
+ data: {
+ name: px.name,
+ proxyType: px.proxyType,
+ remotePort: px.remotePort,
+ status: px.status,
+ bootStatus: px.bootStatus,
+ isDark: dk,
+ },
+ draggable: false,
+ });
+
+ // Local service node
+ nodes.push({
+ id: localId,
+ type: "localService",
+ position: { x: COL.local, y: localY },
+ data: {
+ localIP: px.localIP,
+ localPort: px.localPort,
+ bootStatus: px.bootStatus,
+ isDark: dk,
+ },
+ draggable: false,
+ });
+
+ // Server → Proxy (tunnel)
+ edges.push(
+ mkEdge(`e-${server.id}-${px.id}`, server.id, px.id, C.eOn, serverOnline && proxyOnline)
+ );
+ // Proxy → Local Service
+ edges.push(mkEdge(`e-${px.id}-${localId}`, px.id, localId, C.eOn, proxyOnline));
+ });
+ }
+
+ return { nodes, edges, totalRows };
+ }, [servers, proxies, isDark]);
+
+ if (servers.length === 0) {
+ return (
+
+
+
+
+ {t("dashboard.topologyEmpty")}
+
+
+ {t("dashboard.topologyEmptyDesc")}
+
+
+
+ );
+ }
+
+ const containerH = Math.max(480, Math.min(900, totalRows * ROW_H + 80));
+
+ return (
+
+
+
+
+
+ );
+}
diff --git a/site/src/pages/Dashboard/index.tsx b/site/src/pages/Dashboard/index.tsx
new file mode 100644
index 0000000..f5ff531
--- /dev/null
+++ b/site/src/pages/Dashboard/index.tsx
@@ -0,0 +1,17 @@
+import { DashboardView } from "./DashboardPage.view";
+import { useDashboard } from "./useDashboard";
+
+export function DashboardPage() {
+ // @ts-ignore
+ const { stats, activities, trafficHistory, topology, loading } = useDashboard();
+
+ return (
+
+ );
+}
diff --git a/site/src/pages/Dashboard/useDashboard.ts b/site/src/pages/Dashboard/useDashboard.ts
new file mode 100644
index 0000000..b13add3
--- /dev/null
+++ b/site/src/pages/Dashboard/useDashboard.ts
@@ -0,0 +1,143 @@
+import { useState, useEffect } from "react";
+
+export interface DashboardStats {
+ totalProxies: number;
+ runningProxies: number;
+ stoppedProxies: number;
+ totalServers: number;
+ onlineServers: number;
+ offlineServers: number;
+ maxLatency: number;
+ uptime: string;
+ proxyTypeCounts: Record;
+ uptimeSeconds: number;
+}
+
+export interface TopologyServer {
+ id: string;
+ serverName: string;
+ serverAddr: string;
+ bootStatus: string;
+}
+
+export interface TopologyProxy {
+ id: string;
+ name: string;
+ proxyType: string;
+ localIP: string;
+ localPort: string;
+ remotePort: string;
+ status: string;
+ bootStatus: string;
+ serverId: string;
+}
+
+export interface TopologyData {
+ servers: TopologyServer[];
+ proxies: TopologyProxy[];
+}
+
+export interface RecentActivity {
+ id: string;
+ type:
+ | "proxy_started"
+ | "proxy_stopped"
+ | "server_connected"
+ | "server_disconnected"
+ | "config_updated";
+ message: string;
+ timestamp: Date;
+}
+
+export interface TrafficHistoryPoint {
+ time: string;
+ trafficIn: number;
+ trafficOut: number;
+}
+
+export function useDashboard() {
+ const [stats, setStats] = useState({
+ totalProxies: 0,
+ runningProxies: 0,
+ stoppedProxies: 0,
+ totalServers: 0,
+ onlineServers: 0,
+ offlineServers: 0,
+ maxLatency: 0,
+ uptime: "0h 0m",
+ proxyTypeCounts: {},
+ uptimeSeconds: 0,
+ });
+ const [activities] = useState([]);
+ const [trafficHistory, setTrafficHistory] = useState([]);
+ const [topology, setTopology] = useState({ servers: [], proxies: [] });
+
+ useEffect(() => {
+ // Format traffic data
+
+ const loadDashboard = async () => {
+ try {
+ // Fetch dashboard stats from API
+ const response = await fetch(`/api/dashboard/stats`, {});
+
+ if (!response.ok) {
+ throw new Error("Failed to fetch dashboard stats");
+ }
+
+ const data = await response.json();
+
+ setStats({
+ totalProxies: data.proxiesEnabledCount + data.proxiesDisabledCount,
+ runningProxies: data.proxiesOnlineCount ?? 0,
+ stoppedProxies: data.proxiesDisabledCount,
+ totalServers: data.runningCount + data.stoppedCount,
+ onlineServers: data.runningCount,
+ offlineServers: data.stoppedCount,
+ maxLatency: data.maxLatency || 0,
+ // totalTrafficOut: formatBytes(data.totalSent).value,
+ // totalTrafficOutUnit: formatBytes(data.totalSent).unit,
+ uptime: "N/A",
+ proxyTypeCounts: data.proxyTypeCounts || {},
+ uptimeSeconds: data.uptimeSeconds || 0,
+ });
+
+ // Fetch topology from API
+ try {
+ const topoResponse = await fetch(`/api/dashboard/topology`);
+ if (topoResponse.ok) {
+ const topoData = await topoResponse.json();
+ setTopology(topoData);
+ }
+ } catch (topoErr) {
+ console.error("Failed to load topology:", topoErr);
+ }
+
+ // Fetch traffic history from API
+ try {
+ const historyResponse = await fetch(`/api/dashboard/traffic-history?hours=24`);
+ if (historyResponse.ok) {
+ const historyData = await historyResponse.json();
+ setTrafficHistory(historyData);
+ } else {
+ // If API fails, set empty array
+ setTrafficHistory([]);
+ }
+ } catch (historyErr) {
+ console.error("Failed to load traffic history:", historyErr);
+ // Set empty array on error
+ setTrafficHistory([]);
+ }
+ } catch (err) {
+ console.error("Failed to load dashboard data:", err);
+ }
+ };
+
+ loadDashboard();
+
+ // Poll for updates every 30 seconds
+ const interval = setInterval(loadDashboard, 30000);
+ return () => clearInterval(interval);
+ }, []);
+
+ return { stats, activities, trafficHistory, topology };
+}
diff --git a/site/src/pages/Import/ImportPage.view.tsx b/site/src/pages/Import/ImportPage.view.tsx
new file mode 100644
index 0000000..f83a79f
--- /dev/null
+++ b/site/src/pages/Import/ImportPage.view.tsx
@@ -0,0 +1,711 @@
+import {
+ Box,
+ Button,
+ Card,
+ Flex,
+ Text,
+ Badge,
+ TextArea,
+ TextField,
+ Separator,
+ Switch,
+ Checkbox,
+ Table,
+ Callout,
+ Tabs,
+} from "@radix-ui/themes";
+import { Icon } from "@iconify/react";
+import { motion } from "framer-motion";
+import { useTranslation } from "react-i18next";
+import { PageHeader } from "../../components/PageHeader";
+import type { useImport } from "./useImport";
+
+type ImportViewProps = ReturnType & { visible: boolean };
+
+// ────────────────────────────────────────────────────────────
+// Step indicator
+// ────────────────────────────────────────────────────────────
+function StepIndicator({ current }: { current: number }) {
+ const { t } = useTranslation();
+ const steps = [
+ { label: t("import.step1Label"), icon: "lucide:file-text" },
+ { label: t("import.step2Label"), icon: "lucide:eye" },
+ { label: t("import.step3Label"), icon: "lucide:check-circle" },
+ ];
+ return (
+
+ {steps.map((s, i) => {
+ const idx = i + 1;
+ const done = current > idx;
+ const active = current === idx;
+ return (
+
+
+
+ {done ? (
+
+ ) : (
+
+ )}
+
+
+ {s.label}
+
+
+ {i < steps.length - 1 && (
+
+ )}
+
+ );
+ })}
+
+ );
+}
+
+// ────────────────────────────────────────────────────────────
+// Step 1: Input TOML
+// ────────────────────────────────────────────────────────────
+function Step1({
+ tomlContent,
+ setTomlContent,
+ parseError,
+ parsing,
+ handleFileUpload,
+ handleParse,
+ }: Pick<
+ ImportViewProps,
+ "tomlContent" | "setTomlContent" | "parseError" | "parsing" | "handleFileUpload" | "handleParse"
+>) {
+ const { t } = useTranslation();
+ return (
+
+
+
+ {t("import.inputTomlTitle")}
+
+
+
+ document.getElementById("toml-file-input")?.click()}
+ >
+
+ {t("import.uploadFile")}
+
+
+
+
+
+ {t("import.inputTomlDesc")}
+
+
+
+ );
+}
+
+// ────────────────────────────────────────────────────────────
+// Step 2: Preview
+// ────────────────────────────────────────────────────────────
+function Step2({
+ preview,
+ serverName,
+ setServerName,
+ importServer,
+ setImportServer,
+ overwriteServer,
+ setOverwriteServer,
+ proxySelections,
+ updateProxySelection,
+ selectAllProxies,
+ selectedProxiesCount,
+ importing,
+ handleExecute,
+ goBack,
+ }: Pick<
+ ImportViewProps,
+ | "preview"
+ | "serverName"
+ | "setServerName"
+ | "importServer"
+ | "setImportServer"
+ | "overwriteServer"
+ | "setOverwriteServer"
+ | "proxySelections"
+ | "updateProxySelection"
+ | "selectAllProxies"
+ | "selectedProxiesCount"
+ | "importing"
+ | "handleExecute"
+ | "goBack"
+>) {
+ const { t } = useTranslation();
+ if (!preview) return null;
+
+ const allSelected = proxySelections.length > 0 && proxySelections.every((s) => s.import);
+ const someSelected = proxySelections.some((s) => s.import);
+
+ const tls = preview.server.transport.tls as Record | undefined;
+
+ return (
+
+ {/* ── Server Section ── */}
+
+
+ {/* Header */}
+
+
+
+ {t("import.serverSection")}
+
+ {preview.server.isDuplicate && (
+
+
+ {t("import.duplicate")}
+
+ )}
+
+
+
+
+ {/* Duplicate warning */}
+ {preview.server.isDuplicate && (
+
+
+
+
+ {t("import.serverDuplicateWarning")}
+
+ )}
+
+ {/* Tabs */}
+
+
+ {t("server.general")}
+ {t("server.log")}
+ {t("server.transport")}
+ {t("server.metadatas")}
+
+
+
+ {/* General */}
+
+
+
+
+
+ {t("import.serverName")}
+
+ setServerName(e.target.value)}
+ placeholder={t("import.serverNamePlaceholder")}
+ />
+
+
+
+ {t("import.serverAddr")}
+
+
+ {preview.server.serverAddr}:{preview.server.serverPort}
+
+
+
+
+
+
+ {t("import.authMethod")}
+
+
+ {(preview.server.auth.method as string) || "none"}
+
+
+ {(preview.server.auth.method as string) === "token" && (
+
+
+ {t("server.token")}
+
+
+ ••••••••
+
+
+ )}
+
+
+
+
+ {/* Log */}
+
+
+
+
+ {t("server.logLevel")}
+
+
+ {(preview.server.log.level as string) || "info"}
+
+
+
+
+ {t("server.maxDays")}
+
+ {String(preview.server.log.maxDays ?? 3)}
+
+
+
+
+ {/* Transport */}
+
+
+
+
+
+ {t("server.protocol")}
+
+
+ {(preview.server.transport.protocol as string) || "tcp"}
+
+
+
+
+ {t("server.proxyUrl")}
+
+ {(preview.server.transport.proxyURL as string) || "—"}
+
+
+
+
+
+ {t("server.tlsEnable")}
+
+
+ {tls?.enable ? t("server.enabled") : t("server.disabled")}
+
+
+ {(tls?.enable && tls?.serverName) ? (
+
+
+ {t("server.serverNameSNI")}
+
+
+ {tls.serverName as string}
+
+
+ ) : (
)}
+
+
+
+
+ {/* Metadatas */}
+
+ {Object.keys(preview.server.metadatas).length === 0 ? (
+
+ {t("server.noMetadata")}
+
+ ) : (
+
+
+
+ {t("server.metadataKey")}
+ {t("server.metadataValue")}
+
+
+
+ {Object.entries(preview.server.metadatas).map(([k, v]) => (
+
+ {k}
+ {v}
+
+ ))}
+
+
+ )}
+
+
+
+
+ {/* Import controls */}
+
+
+
+
+ {t("import.importServer")}
+
+ {importServer && preview.server.isDuplicate && (
+
+
+
+ {t("import.overwriteServer")}
+
+
+ )}
+
+
+
+
+ {/* ── Proxy Section ── */}
+
+
+
+
+
+
+ {t("import.proxySection")}
+
+
+ {preview.proxies.length}
+
+
+
+ selectAllProxies(true)}>
+ {t("import.selectAll")}
+
+ selectAllProxies(false)}>
+ {t("import.deselectAll")}
+
+
+
+
+
+
+ {preview.proxies.length === 0 ? (
+
+ {t("import.noProxies")}
+
+ ) : (
+
+
+
+
+ selectAllProxies(v === true)}
+ />
+
+ {t("common.name")}
+ {t("common.type")}
+ {t("import.local")}
+ {t("import.remote")}
+ {t("common.status")}
+ {t("import.overwrite")}
+
+
+
+ {preview.proxies.map((proxy) => {
+ const sel = proxySelections.find((s) => s.name === proxy.name);
+ const isImport = sel?.import ?? true;
+ const isOverwrite = sel?.overwrite ?? false;
+ return (
+
+
+
+ updateProxySelection(proxy.name, "import", v === true)
+ }
+ />
+
+
+
+
+ {proxy.name}
+
+ {proxy.isDuplicate && (
+
+
+ {t("import.duplicate")}
+
+ )}
+
+
+
+
+ {proxy.type}
+
+
+
+
+ {proxy.localIP || "127.0.0.1"}:{proxy.localPort || "-"}
+
+
+
+
+ {proxy.remotePort || proxy.subdomain || proxy.customDomains?.[0] || "-"}
+
+
+
+ {proxy.isDuplicate ? (
+
+ {t("import.exists")}
+
+ ) : (
+
+ {t("import.new")}
+
+ )}
+
+
+ {proxy.isDuplicate && isImport ? (
+
+ updateProxySelection(proxy.name, "overwrite", v)
+ }
+ />
+ ) : (
+
+ —
+
+ )}
+
+
+ );
+ })}
+
+
+ )}
+
+
+
+ {t("import.selectedCount", { count: selectedProxiesCount })}
+
+
+
+
+
+ {/* ── Actions ── */}
+
+
+
+ {t("common.back")}
+
+
+ {importing ? (
+
+ ) : (
+
+ )}
+ {importing ? t("import.importing") : t("import.confirmImport")}
+
+
+
+ );
+}
+
+// ────────────────────────────────────────────────────────────
+// Step 3: Result
+// ────────────────────────────────────────────────────────────
+function Step3({ result, handleReset }: Pick) {
+ const { t } = useTranslation();
+ if (!result) return null;
+ return (
+
+
+
+
+
+
+
+ {t("import.successTitle")}
+
+
+ {t("import.successDesc")}
+
+
+
+
+
+
+
+
+ {t("import.serverResult")}
+
+
+ {result.serverImported ? t("import.imported") : t("import.skipped")}
+
+
+
+
+
+
+ {t("import.proxiesImported")}
+
+
+ {result.proxiesImported}
+
+
+
+
+
+ {t("import.proxiesSkipped")}
+
+
+ {result.proxiesSkipped}
+
+
+
+
+
+
+
+
+ {t("import.importAnother")}
+
+ (window.location.href = "/servers")}
+ style={{
+ background: "linear-gradient(135deg, var(--accent-9) 0%, var(--accent-10) 100%)",
+ color: "white",
+ }}
+ >
+
+ {t("import.viewServers")}
+
+
+
+ );
+}
+
+// ────────────────────────────────────────────────────────────
+// Main View
+// ────────────────────────────────────────────────────────────
+export function ImportPageView(props: ImportViewProps) {
+ const { t } = useTranslation();
+ const { step, visible } = props;
+
+ return (
+
+
+
+
+
+
+
+
+ {step === 1 && (
+
+ )}
+
+ {step === 2 && (
+
+ )}
+
+ {step === 3 && }
+
+
+
+
+ );
+}
diff --git a/site/src/pages/Import/index.tsx b/site/src/pages/Import/index.tsx
new file mode 100644
index 0000000..e7764da
--- /dev/null
+++ b/site/src/pages/Import/index.tsx
@@ -0,0 +1,15 @@
+import { useState, useEffect } from "react";
+import { useImport } from "./useImport";
+import { ImportPageView } from "./ImportPage.view";
+
+export function ImportPage() {
+ const importState = useImport();
+ const [visible, setVisible] = useState(false);
+
+ useEffect(() => {
+ const timer = setTimeout(() => setVisible(true), 100);
+ return () => clearTimeout(timer);
+ }, []);
+
+ return ;
+}
diff --git a/site/src/pages/Import/useImport.ts b/site/src/pages/Import/useImport.ts
new file mode 100644
index 0000000..58d37ee
--- /dev/null
+++ b/site/src/pages/Import/useImport.ts
@@ -0,0 +1,202 @@
+import { useState, useCallback } from "react";
+import { toast } from "sonner";
+import { useTranslation } from "react-i18next";
+
+export interface ImportServerInfo {
+ name: string;
+ serverAddr: string;
+ serverPort: number;
+ auth: Record;
+ log: Record;
+ transport: Record;
+ metadatas: Record;
+ isDuplicate: boolean;
+ existingId: string;
+}
+
+export interface ImportProxyInfo {
+ name: string;
+ type: string;
+ localIP: string;
+ localPort: number;
+ remotePort: number;
+ subdomain: string;
+ customDomains: string[];
+ transport: Record;
+ isDuplicate: boolean;
+ existingId: string;
+}
+
+export interface ImportPreview {
+ server: ImportServerInfo;
+ proxies: ImportProxyInfo[];
+}
+
+export interface ProxySelection {
+ name: string;
+ import: boolean;
+ overwrite: boolean;
+}
+
+export interface ImportResult {
+ serverImported: boolean;
+ proxiesImported: number;
+ proxiesSkipped: number;
+}
+
+export type ImportStep = 1 | 2 | 3;
+
+export function useImport() {
+ const { t } = useTranslation();
+
+ const [step, setStep] = useState(1);
+ const [tomlContent, setTomlContent] = useState("");
+ const [preview, setPreview] = useState(null);
+ const [serverName, setServerName] = useState("");
+ const [importServer, setImportServer] = useState(true);
+ const [overwriteServer, setOverwriteServer] = useState(false);
+ const [proxySelections, setProxySelections] = useState([]);
+ const [parsing, setParsing] = useState(false);
+ const [importing, setImporting] = useState(false);
+ const [parseError, setParseError] = useState(null);
+ const [result, setResult] = useState(null);
+
+ const handleFileUpload = useCallback((e: React.ChangeEvent) => {
+ const file = e.target.files?.[0];
+ if (!file) return;
+ const reader = new FileReader();
+ reader.onload = (event) => {
+ const content = event.target?.result as string;
+ if (typeof content === "string") {
+ setTomlContent(content);
+ setParseError(null);
+ }
+ };
+ reader.readAsText(file);
+ e.target.value = "";
+ }, []);
+
+ const handleParse = useCallback(async () => {
+ if (!tomlContent.trim()) {
+ setParseError(t("import.errorEmptyContent"));
+ return;
+ }
+ setParsing(true);
+ setParseError(null);
+ try {
+ const res = await fetch("/api/import/preview", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({ tomlContent }),
+ });
+ const data = await res.json();
+ if (!res.ok) {
+ setParseError(data.error || t("import.errorParseFailed"));
+ return;
+ }
+ setPreview(data as ImportPreview);
+ // Initialize server name from preview
+ setServerName(data.server.name);
+ // Initialize proxy selections – import all by default
+ const selections: ProxySelection[] = (data.proxies as ImportProxyInfo[]).map((p) => ({
+ name: p.name,
+ import: true,
+ overwrite: false,
+ }));
+ setProxySelections(selections);
+ setStep(2);
+ } catch {
+ setParseError(t("import.errorParseFailed"));
+ } finally {
+ setParsing(false);
+ }
+ }, [tomlContent, t]);
+
+ const updateProxySelection = useCallback(
+ (name: string, field: "import" | "overwrite", value: boolean) => {
+ setProxySelections((prev) =>
+ prev.map((s) => (s.name === name ? { ...s, [field]: value } : s))
+ );
+ },
+ []
+ );
+
+ const selectAllProxies = useCallback((selected: boolean) => {
+ setProxySelections((prev) => prev.map((s) => ({ ...s, import: selected })));
+ }, []);
+
+ const handleExecute = useCallback(async () => {
+ if (!preview) return;
+ setImporting(true);
+ try {
+ const res = await fetch("/api/import/execute", {
+ method: "POST",
+ headers: { "Content-Type": "application/json" },
+ body: JSON.stringify({
+ tomlContent,
+ serverName,
+ importServer,
+ overwriteServer,
+ proxies: proxySelections,
+ }),
+ });
+ const data = await res.json();
+ if (!res.ok) {
+ toast.error(data.error || t("import.errorImportFailed"));
+ return;
+ }
+ setResult(data.result as ImportResult);
+ setStep(3);
+ toast.success(t("import.importSuccess"));
+ } catch {
+ toast.error(t("import.errorImportFailed"));
+ } finally {
+ setImporting(false);
+ }
+ }, [preview, tomlContent, serverName, importServer, overwriteServer, proxySelections, t]);
+
+ const handleReset = useCallback(() => {
+ setStep(1);
+ setTomlContent("");
+ setPreview(null);
+ setServerName("");
+ setImportServer(true);
+ setOverwriteServer(false);
+ setProxySelections([]);
+ setParseError(null);
+ setResult(null);
+ }, []);
+
+ const goBack = useCallback(() => {
+ setStep((prev) => (prev > 1 ? ((prev - 1) as ImportStep) : prev));
+ }, []);
+
+ // Derived: count selected proxies
+ const selectedProxiesCount = proxySelections.filter((s) => s.import).length;
+
+ return {
+ step,
+ tomlContent,
+ setTomlContent,
+ preview,
+ serverName,
+ setServerName,
+ importServer,
+ setImportServer,
+ overwriteServer,
+ setOverwriteServer,
+ proxySelections,
+ parsing,
+ importing,
+ parseError,
+ result,
+ selectedProxiesCount,
+ handleFileUpload,
+ handleParse,
+ updateProxySelection,
+ selectAllProxies,
+ handleExecute,
+ handleReset,
+ goBack,
+ };
+}
diff --git a/site/src/pages/Login/LoginPage.view.tsx b/site/src/pages/Login/LoginPage.view.tsx
new file mode 100644
index 0000000..f28d78e
--- /dev/null
+++ b/site/src/pages/Login/LoginPage.view.tsx
@@ -0,0 +1,194 @@
+import { useState } from "react";
+import { Button, Callout, Flex, Heading, Text, TextField } from "@radix-ui/themes";
+import { AnimatePresence, motion } from "framer-motion";
+import { PageTransition } from "../../components/PageTransition";
+import { ThemeToggle } from "../../components/ThemeToggle";
+import { LanguageToggle } from "../../components/LanguageToggle";
+import { Icon } from "@iconify/react";
+import logo from "../../assets/logo.png";
+import { useTranslation } from "react-i18next";
+
+interface LoginViewProps {
+ email: string;
+ setEmail: (value: string) => void;
+ password: string;
+ setPassword: (value: string) => void;
+ loading: boolean;
+ error: string;
+ handleSubmit: (e: React.FormEvent) => void;
+}
+
+export function LoginView({
+ email,
+ setEmail,
+ password,
+ setPassword,
+ loading,
+ error,
+ handleSubmit,
+}: LoginViewProps) {
+ const { t } = useTranslation();
+ const [showPassword, setShowPassword] = useState(false);
+
+ return (
+
+
+
+
+
+
+
+ {/* */}
+
+ {/* */}
+
+
+ );
+}
diff --git a/site/src/pages/Login/index.tsx b/site/src/pages/Login/index.tsx
new file mode 100644
index 0000000..4bc2754
--- /dev/null
+++ b/site/src/pages/Login/index.tsx
@@ -0,0 +1,10 @@
+import { useLogin } from "./useLogin";
+import { LoginView } from "./LoginPage.view";
+
+export function LoginPage() {
+ const loginState = useLogin();
+
+ return ;
+}
+
+export default LoginPage;
diff --git a/site/src/pages/Login/useLogin.ts b/site/src/pages/Login/useLogin.ts
new file mode 100644
index 0000000..00311df
--- /dev/null
+++ b/site/src/pages/Login/useLogin.ts
@@ -0,0 +1,42 @@
+import { useState } from "react";
+import { useNavigate, useLocation } from "react-router-dom";
+import pb from "../../lib/pocketbase";
+
+export function useLogin() {
+ const [email, setEmail] = useState("");
+ const [password, setPassword] = useState("");
+ const [loading, setLoading] = useState(false);
+ const [error, setError] = useState("");
+ const navigate = useNavigate();
+ const location = useLocation();
+
+ // Get the page to visit before login, default to dashboard
+ const from = (location.state as { from?: { pathname: string } })?.from?.pathname || "/dashboard";
+
+ const handleSubmit = async (e: React.FormEvent) => {
+ e.preventDefault();
+ setLoading(true);
+ setError("");
+
+ try {
+ await pb.collection("fh_users").authWithPassword(email, password);
+ // Redirect back to previous page after successful login
+ navigate(from, { replace: true });
+ } catch (err: any) {
+ console.error("Login error:", err);
+ setError(err?.message || "Invalid email or password");
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ return {
+ email,
+ setEmail,
+ password,
+ setPassword,
+ loading,
+ error,
+ handleSubmit,
+ };
+}
diff --git a/site/src/pages/NotFound/index.tsx b/site/src/pages/NotFound/index.tsx
new file mode 100644
index 0000000..50ec9f1
--- /dev/null
+++ b/site/src/pages/NotFound/index.tsx
@@ -0,0 +1,99 @@
+import { Box, Button, Flex, Heading, Text } from "@radix-ui/themes";
+import { Link } from "react-router-dom";
+import { useTranslation } from "react-i18next";
+
+export function NotFoundPage() {
+ const { t } = useTranslation();
+ return (
+
+
+ {/* 404 Illustration */}
+
+
+ 404
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {/* Text Content */}
+
+ {t("error.notFound")}
+
+ {t("error.somethingWrong")}
+
+
+
+ {/* Actions */}
+
+
+
+
+
+
+
+ {t("error.goHome")}
+
+
+ window.history.back()}>
+
+
+
+
+ {t("common.cancel")}
+
+
+
+
+ );
+}
diff --git a/site/src/pages/Proxies/AddProxyDialog.tsx b/site/src/pages/Proxies/AddProxyDialog.tsx
new file mode 100644
index 0000000..d2358d0
--- /dev/null
+++ b/site/src/pages/Proxies/AddProxyDialog.tsx
@@ -0,0 +1,635 @@
+import { useState } from "react";
+import { useNavigate } from "react-router-dom";
+import {
+ Dialog,
+ Button,
+ Flex,
+ Text,
+ TextField,
+ Box,
+ Separator,
+ IconButton,
+ Switch,
+ TextArea,
+ Tabs,
+ Select,
+ AlertDialog,
+ Callout,
+} from "@radix-ui/themes";
+import { REGEX } from "../../lib/regex";
+import pb from "../../lib/pocketbase";
+import { toast } from "sonner";
+import { useEffect } from "react";
+import { FormItem } from "../../components/FormItem";
+import { motion, AnimatePresence } from "framer-motion";
+import { Icon } from "@iconify/react";
+import { useTranslation } from "react-i18next";
+
+interface AddProxyDialogProps {
+ open: boolean;
+ onOpenChange: (open: boolean) => void;
+ onSubmit?: (data: ProxyFormData) => Promise;
+ initialData?: ProxyFormData | null;
+}
+
+export interface ProxyFormData {
+ serverId: string;
+ name: string;
+ type: "tcp" | "udp" | "http" | "https" | "stcp" | "xtcp";
+ localIp: string;
+ localPort: string;
+ remotePort: string;
+ customDomains?: string;
+ subdomain?: string;
+ encryption: boolean;
+ compression: boolean;
+ description?: string;
+}
+
+const proxyTypes = [
+ {
+ value: "tcp",
+ label: "TCP",
+ description: "TCP Port Forwarding",
+ },
+ {
+ value: "udp",
+ label: "UDP",
+ description: "UDP Port Forwarding",
+ },
+ {
+ value: "http",
+ label: "HTTP",
+ description: "HTTP Reverse Proxy",
+ },
+ {
+ value: "https",
+ label: "HTTPS",
+ description: "HTTPS Reverse Proxy",
+ },
+ {
+ value: "stcp",
+ label: "STCP",
+ description: "Secure TCP Tunnel",
+ disabled: true,
+ },
+ {
+ value: "xtcp",
+ label: "XTCP",
+ description: "P2P TCP Tunnel",
+ disabled: true,
+ },
+];
+
+export function AddProxyDialog({ open, onOpenChange, onSubmit, initialData }: AddProxyDialogProps) {
+ const { t } = useTranslation();
+ const navigate = useNavigate();
+ // @ts-ignore
+ const [loading, setLoading] = useState(false);
+ const [showDiscardAlert, setShowDiscardAlert] = useState(false);
+
+ const [formData, setFormData] = useState({
+ serverId: "",
+ name: "",
+ type: "tcp",
+ localIp: "127.0.0.1",
+ localPort: "",
+ remotePort: "",
+ customDomains: "",
+ subdomain: "",
+ encryption: false,
+ compression: false,
+ description: "",
+ });
+
+ useEffect(() => {
+ if (open && initialData) {
+ setFormData(initialData);
+ } else if (open && !initialData) {
+ setFormData({
+ serverId: servers.length > 0 ? servers[0].id : "",
+ name: "",
+ type: "tcp",
+ localIp: "127.0.0.1",
+ localPort: "",
+ remotePort: "",
+ customDomains: "",
+ subdomain: "",
+ encryption: false,
+ compression: false,
+ description: "",
+ });
+ }
+ }, [open, initialData]);
+
+ const [servers, setServers] = useState<{ id: string; serverName: string }[]>([]);
+ const [loadingServers, setLoadingServers] = useState(false);
+ // @ts-ignore
+ const [submitting, setSubmitting] = useState(false);
+
+ useEffect(() => {
+ if (open) {
+ const fetchServers = async () => {
+ try {
+ setLoadingServers(true);
+ const records = await pb.collection("fh_servers").getFullList({
+ sort: "-created",
+ fields: "id,serverName",
+ });
+ setServers(records.map((r) => ({ id: r.id, serverName: r.serverName })));
+ if (records.length > 0 && !formData.serverId) {
+ setFormData((prev) => ({ ...prev, serverId: records[0].id }));
+ }
+ } catch (err) {
+ console.error("Failed to fetch servers:", err);
+ toast.error("Failed to fetch servers");
+ } finally {
+ setLoadingServers(false);
+ }
+ };
+ fetchServers();
+ }
+ }, [open]);
+
+ const [errors, setErrors] = useState>>({});
+
+ const [activeTab, setActiveTab] = useState("basic");
+
+ const handleChange = (field: keyof ProxyFormData, value: string | boolean) => {
+ setFormData((prev) => ({ ...prev, [field]: value }));
+
+ // Validate on change
+ if (typeof value === "string") {
+ validateField(field, value);
+ }
+ };
+
+ const validateField = (field: keyof ProxyFormData, value: string) => {
+ let error = "";
+ if (value) {
+ switch (field) {
+ case "name":
+ if (!REGEX.PROXY_NAME.test(value)) {
+ error = t("proxy.errorInvalidName");
+ }
+ break;
+ case "localIp":
+ if (!REGEX.IP_OR_HOSTNAME.test(value)) {
+ error = t("proxy.errorInvalidIP");
+ }
+ break;
+ case "localPort":
+ case "remotePort":
+ if (!REGEX.PORT.test(value)) {
+ error = t("proxy.errorInvalidPort");
+ }
+ break;
+ }
+ }
+ setErrors((prev) => ({ ...prev, [field]: error }));
+ };
+
+ const handleSubmit = async () => {
+ try {
+ setSubmitting(true);
+ await onSubmit?.(formData);
+ onOpenChange(false);
+ // Reset form
+ setFormData({
+ serverId: servers.length > 0 ? servers[0].id : "",
+ name: "",
+ type: "tcp",
+ localIp: "127.0.0.1",
+ localPort: "",
+ remotePort: "",
+ customDomains: "",
+ subdomain: "",
+ encryption: false,
+ compression: false,
+ description: "",
+ });
+ setErrors({});
+ } catch (err) {
+ console.error("Submit error:", err);
+ toast.error(err instanceof Error ? err.message : "Failed to add proxy");
+ } finally {
+ setSubmitting(false);
+ }
+ };
+
+ const handleOpenChange = (newOpen: boolean) => {
+ if (!newOpen) {
+ // Check if form has unsaved changes
+ const initialFormData = initialData || {
+ serverId: servers.length > 0 ? servers[0].id : "",
+ name: "",
+ type: "tcp",
+ localIp: "127.0.0.1",
+ localPort: "",
+ remotePort: "",
+ customDomains: "",
+ subdomain: "",
+ encryption: false,
+ compression: false,
+ description: "",
+ };
+
+ const isDirty = JSON.stringify(formData) !== JSON.stringify(initialFormData);
+ if (isDirty) {
+ setShowDiscardAlert(true);
+ return;
+ }
+ }
+ onOpenChange(newOpen);
+ };
+
+ const confirmDiscard = () => {
+ setShowDiscardAlert(false);
+ onOpenChange(false);
+ };
+
+ const isHttpType = formData.type === "http" || formData.type === "https";
+
+ const isEditing = !!initialData;
+
+ return (
+ <>
+
+
+ {/* Header */}
+
+
+
+
+
+
+
+ {initialData ? t("proxy.editProxy") : t("proxy.addProxy")}
+
+
+ {initialData ? t("proxy.updateProxyDesc") : t("proxy.addProxyDesc")}
+
+
+
+
+
+
+
+
+
+
+
+
+ {/* Tabs */}
+
+
+ {t("proxy.basicConfig")}
+ {t("proxy.advancedOptions")}
+
+
+ {/* Basic Tab */}
+
+
+
+ {/* Server Selection */}
+
+ handleChange("serverId", value)}
+ disabled={loadingServers || servers.length === 0}
+ >
+
+
+ {servers.map((server) => (
+
+ {server.serverName}
+
+ ))}
+
+
+ {servers.length === 0 && !loadingServers && (
+
+
+
+
+
+
+ {t("proxy.noServersAvailable")}
+ {
+ onOpenChange(false);
+ navigate("/servers");
+ }}
+ >
+ {t("proxy.goAddServer")}
+
+
+
+
+
+ )}
+
+
+ {/* Proxy Name */}
+
+ handleChange("name", e.target.value)}
+ color={errors.name ? "red" : undefined}
+ />
+
+
+ {/* Proxy Type Selection */}
+
+
+ {proxyTypes.map((type) => (
+
+ !type.disabled &&
+ handleChange("type", type.value as ProxyFormData["type"])
+ }
+ className={`box-border min-w-[64px] rounded-lg border-2 px-3 py-2 text-center transition-all duration-200 ${
+ type.disabled
+ ? "cursor-not-allowed opacity-50"
+ : "cursor-pointer opacity-100"
+ } ${
+ formData.type === type.value
+ ? "border-[var(--accent-9)] bg-[var(--accent-3)]"
+ : "border-[var(--gray-5)] bg-[var(--gray-2)]"
+ }`}
+ >
+
+ {type.label}
+
+
+ ))}
+
+
+
+ {/* Local Settings */}
+
+
+
+ handleChange("localIp", e.target.value)}
+ color={errors.localIp ? "red" : undefined}
+ />
+
+
+
+
+ handleChange("localPort", e.target.value)}
+ color={errors.localPort ? "red" : undefined}
+ />
+
+
+
+
+ {/* Remote Port or Custom Domains */}
+ {isHttpType ? (
+ <>
+
+ handleChange("customDomains", e.target.value)}
+ />
+
+ {t("proxy.customDomainsDesc")}
+
+
+
+ handleChange("subdomain", e.target.value)}
+ />
+
+ {t("proxy.subdomainDesc")}
+
+
+ >
+ ) : (
+
+ handleChange("remotePort", e.target.value)}
+ color={errors.remotePort ? "red" : undefined}
+ />
+
+ {t("proxy.remotePortDesc")}
+
+
+ )}
+ {/* Description */}
+
+
+
+
+
+ {/* Advanced Tab */}
+
+
+
+ {/* Encryption & Compression */}
+
+
+
+
+ {t("proxy.transportEncryption")}
+
+
+ {t("proxy.transportEncryptionDesc")}
+
+
+ handleChange("encryption", checked)}
+ />
+
+
+
+
+
+ {t("proxy.dataCompression")}
+
+
+ {t("proxy.dataCompressionDesc")}
+
+
+ handleChange("compression", checked)}
+ />
+
+
+
+
+
+
+
+
+
+
+ {/* Footer Actions */}
+
+
+
+
+ {t("common.cancel")}
+
+
+
+ {loading ? (
+ isEditing ? (
+
+ ) : (
+
+ )
+ ) : isEditing ? (
+
+ ) : (
+
+ )}
+ {loading
+ ? isEditing
+ ? t("proxy.saving")
+ : t("proxy.adding")
+ : isEditing
+ ? t("proxy.saveChanges")
+ : t("proxy.addProxy")}
+
+
+
+
+
+
+
+ {t("common.discardChanges")}
+
+ {t("common.discardChangesDesc")}
+
+
+
+
+ {t("common.keepEditing")}
+
+
+
+
+ {t("common.discard")}
+
+
+
+
+
+ >
+ );
+}
diff --git a/site/src/pages/Proxies/ProxiesPage.view.tsx b/site/src/pages/Proxies/ProxiesPage.view.tsx
new file mode 100644
index 0000000..a497051
--- /dev/null
+++ b/site/src/pages/Proxies/ProxiesPage.view.tsx
@@ -0,0 +1,342 @@
+import { Icon } from "@iconify/react";
+import { Badge, Button, Card, Flex, Table, Text, TextField, AlertDialog } from "@radix-ui/themes";
+import { useState, useEffect } from "react";
+import { Link, useNavigate } from "react-router-dom";
+import { motion } from "framer-motion";
+import { EmptyState } from "../../components/EmptyState";
+import { AddProxyDialog, type ProxyFormData } from "./AddProxyDialog";
+import { type Proxy } from "./useProxies";
+import { PageHeader } from "../../components/PageHeader";
+import { StatCard } from "../../components/StatCard";
+import { useTranslation } from "react-i18next";
+
+interface ProxiesViewProps {
+ proxies: Proxy[];
+ loading: boolean;
+ refreshing: boolean;
+ stats: {
+ total: number;
+ online: number;
+ offline: number;
+ };
+ isDialogOpen: boolean;
+ onOpenChange: (open: boolean) => void;
+ editingProxy: Proxy | null;
+ onCreateProxy: (data: any) => Promise;
+ onUpdateProxy: (id: string, data: any) => Promise;
+ onDeleteProxy: (id: string) => Promise;
+ onEditClick: (proxy: Proxy | null) => void;
+ refreshProxies: () => void;
+}
+
+export function ProxiesView({
+ proxies,
+ loading: _loading,
+ refreshing,
+ stats,
+ isDialogOpen,
+ onOpenChange,
+ editingProxy,
+ onCreateProxy,
+ onUpdateProxy,
+ onDeleteProxy,
+ onEditClick,
+ refreshProxies,
+}: ProxiesViewProps) {
+ const { t } = useTranslation();
+ const navigate = useNavigate();
+ const [deleteId, setDeleteId] = useState(null);
+ const [mounted, setMounted] = useState(false);
+
+ useEffect(() => {
+ const timer = setTimeout(() => setMounted(true), 100);
+ return () => clearTimeout(timer);
+ }, []);
+
+ const handleAction = async (data: ProxyFormData) => {
+ const payload = {
+ serverId: data.serverId,
+ proxyType: data.type,
+ name: data.name,
+ localIP: data.localIp,
+ localPort: data.localPort,
+ remotePort: data.remotePort,
+ customDomains: data.customDomains ? data.customDomains.split(",").map((d) => d.trim()) : [],
+ transport: {
+ use_encryption: data.encryption,
+ use_compression: data.compression,
+ },
+ description: data.description,
+ status: "enabled",
+ };
+
+ if (editingProxy) {
+ await onUpdateProxy(editingProxy.id, payload);
+ } else {
+ await onCreateProxy(payload);
+ }
+ };
+
+ const initialFormData: ProxyFormData | null = editingProxy
+ ? {
+ serverId: (editingProxy as any).serverId,
+ name: editingProxy.name || "",
+ type: (editingProxy as any).proxyType as any,
+ localIp: (editingProxy as any).localIP || "127.0.0.1",
+ localPort: String(editingProxy.localPort || ""),
+ remotePort: String(editingProxy.remotePort || ""),
+ customDomains: (editingProxy as any).customDomains?.join(", ") || "",
+ encryption: (editingProxy as any).transport?.use_encryption || false,
+ compression: (editingProxy as any).transport?.use_compression || false,
+ description: (editingProxy as any).description || "",
+ }
+ : null;
+
+ return (
+ <>
+
+
+
+ {/* Header */}
+
+
+ {/* Stats Cards */}
+
+
+ }
+ />
+
+
+ {stats.online}}
+ color="green"
+ icon={
+
+ }
+ />
+
+
+ {stats.offline}}
+ color="red"
+ icon={ }
+ />
+
+
+
+ {/* Proxies Table */}
+
+
+
+
+
+ {t("proxy.allProxies")}
+
+
+
+
+
+
+
+
+
+ {t("proxy.refresh")}
+
+ navigate("/import")}>
+
+ {t("nav.import")}
+
+ onEditClick(null)}>
+
+ {t("proxy.addProxy")}
+
+
+
+
+
+ {proxies.length === 0 ? (
+ onEditClick(null)}
+ />
+ ) : (
+
+
+
+
+ {t("common.name")}
+ {t("common.type")}
+ {t("proxy.server")}
+ {t("proxy.localIP")}
+ {t("proxy.localPort")}
+ {t("proxy.remotePortOrDomain")}
+ {t("proxy.bootStatus")}
+ {t("common.status")}
+ {t("common.actions")}
+
+
+
+ {proxies.map((proxy) => (
+
+
+ {proxy.name}
+
+
+ {proxy.proxyType.toUpperCase()}
+
+
+ {(proxy as any).expand?.serverId ? (
+
+
+ {(proxy as any).expand.serverId.serverName}
+
+
+ ) : (
+
+ -
+
+ )}
+
+
+
+ {(proxy as any).localIP || "127.0.0.1"}
+
+
+ {proxy.localPort}
+
+ {proxy.proxyType === "http" || proxy.proxyType === "https"
+ ? (proxy as any).customDomains?.length > 0
+ ? (proxy as any).customDomains.join(", ")
+ : (proxy as any).subdomain || "-"
+ : proxy.remotePort || "-"}
+
+
+
+
+ {proxy.bootStatus === "online" ? t("proxy.online") : t("proxy.offline")}
+
+
+
+
+ {proxy.status === "enabled" ? t("proxy.enabled") : t("proxy.disabled")}
+
+
+
+
+ onEditClick(proxy)}>
+
+ {t("common.edit")}
+
+ setDeleteId(proxy.id)}
+ >
+
+ {t("common.delete")}
+
+
+
+
+ ))}
+
+
+
+ )}
+
+
+
+
+ setDeleteId(null)}>
+
+ {t("proxy.confirmDeletion")}
+
+ {t("proxy.deleteConfirmMessage")}
+
+
+
+
+
+ {t("common.cancel")}
+
+
+
+ {
+ if (deleteId) {
+ onDeleteProxy(deleteId);
+ setDeleteId(null);
+ }
+ }}
+ >
+
+ {t("common.delete")}
+
+
+
+
+
+ >
+ );
+}
diff --git a/site/src/pages/Proxies/index.tsx b/site/src/pages/Proxies/index.tsx
new file mode 100644
index 0000000..896e837
--- /dev/null
+++ b/site/src/pages/Proxies/index.tsx
@@ -0,0 +1,38 @@
+import { useProxies } from "./useProxies";
+import { ProxiesView } from "./ProxiesPage.view";
+
+export function ProxiesPage() {
+ const {
+ proxies,
+ loading,
+ refreshing,
+ stats,
+ createProxy,
+ updateProxy,
+ deleteProxy,
+ isDialogOpen,
+ openDialog,
+ closeDialog,
+ editingProxy,
+ refreshProxies,
+ } = useProxies();
+
+ return (
+ (open ? openDialog() : closeDialog())}
+ editingProxy={editingProxy as any}
+ onCreateProxy={createProxy}
+ onUpdateProxy={updateProxy}
+ onDeleteProxy={deleteProxy}
+ onEditClick={(proxy) => openDialog(proxy || undefined)}
+ refreshProxies={refreshProxies}
+ />
+ );
+}
+
+export default ProxiesPage;
diff --git a/site/src/pages/Proxies/useProxies.ts b/site/src/pages/Proxies/useProxies.ts
new file mode 100644
index 0000000..9647830
--- /dev/null
+++ b/site/src/pages/Proxies/useProxies.ts
@@ -0,0 +1,202 @@
+import { useState, useEffect, useCallback } from "react";
+import pb from "../../lib/pocketbase";
+import { toast } from "sonner";
+
+export interface Proxy {
+ id: string;
+ serverId: string;
+ proxyType: "tcp" | "udp" | "http" | "https";
+ name?: string;
+ localIP?: string;
+ localPort?: string;
+ remotePort?: string;
+ subdomain?: string;
+ customDomains?: string[];
+ transport?: Record;
+ description?: string;
+ status: "enabled" | "disabled";
+ bootStatus: "online" | "offline";
+ created: string;
+ updated: string;
+}
+
+export interface CreateProxyForm {
+ serverId: string;
+ proxyType: "tcp" | "udp" | "http" | "https";
+ name?: string;
+ localIP?: string;
+ localPort?: string;
+ remotePort?: string;
+ subdomain?: string;
+ customDomains?: string[];
+ transport?: Record;
+ description?: string;
+}
+
+export function useProxies() {
+ const [proxies, setProxies] = useState([]);
+ const [loading, setLoading] = useState(true);
+ const [refreshing, setRefreshing] = useState(false);
+ const [isDialogOpen, setIsDialogOpen] = useState(false);
+ const [formData, setFormData] = useState({
+ serverId: "",
+ proxyType: "tcp",
+ localIP: "127.0.0.1",
+ localPort: "",
+ remotePort: "",
+ subdomain: "",
+ customDomains: [],
+ transport: {},
+ });
+ const [submitting, setSubmitting] = useState(false);
+
+ const [page, setPage] = useState(1);
+ const [totalPages, setTotalPages] = useState(1);
+ const PER_PAGE = 10;
+
+ const [editingProxy, setEditingProxy] = useState(null);
+
+ const fetchProxies = useCallback(
+ async (isRefresh = false) => {
+ try {
+ // Only show loading spinner on initial load, not on refresh
+ if (!isRefresh && proxies.length === 0) {
+ setLoading(true);
+ } else if (isRefresh) {
+ setRefreshing(true);
+ }
+
+ const result = await pb.collection("fh_proxies").getList(page, PER_PAGE, {
+ sort: "-created",
+ expand: "serverId",
+ });
+ setProxies(result.items);
+ setTotalPages(result.totalPages);
+ } catch (err) {
+ if ((err as any)?.isAbort) return;
+ toast.error(err instanceof Error ? err.message : "Failed to fetch proxies");
+ } finally {
+ setLoading(false);
+ setRefreshing(false);
+ }
+ },
+ [page, proxies.length]
+ );
+
+ useEffect(() => {
+ fetchProxies();
+ }, [fetchProxies]);
+
+ // Auto-refresh proxy status every 5 seconds
+ useEffect(() => {
+ const interval = setInterval(() => {
+ fetchProxies(true); // Pass true to indicate this is a refresh
+ }, 5000);
+ return () => clearInterval(interval);
+ }, [fetchProxies]);
+
+ const openDialog = (proxy?: Proxy) => {
+ if (proxy) {
+ setEditingProxy(proxy);
+ } else {
+ setEditingProxy(null);
+ setFormData({
+ serverId: "",
+ proxyType: "tcp",
+ localIP: "127.0.0.1",
+ localPort: "",
+ remotePort: "",
+ subdomain: "",
+ customDomains: [],
+ transport: {},
+ });
+ }
+ setIsDialogOpen(true);
+ };
+
+ const closeDialog = () => {
+ setIsDialogOpen(false);
+ setEditingProxy(null);
+ };
+
+ const updateFormField = (field: keyof CreateProxyForm, value: any) => {
+ setFormData((prev) => ({ ...prev, [field]: value }));
+ };
+
+ const createProxy = async (data?: CreateProxyForm) => {
+ try {
+ setSubmitting(true);
+ const body = data || formData;
+
+ await pb.collection("fh_proxies").create(body);
+
+ await fetchProxies();
+ closeDialog();
+ toast.success("Proxy created successfully");
+ } catch (err) {
+ toast.error(err instanceof Error ? err.message : "Failed to create proxy");
+ } finally {
+ setSubmitting(false);
+ }
+ };
+
+ const updateProxy = async (id: string, data: CreateProxyForm) => {
+ try {
+ setSubmitting(true);
+
+ await pb.collection("fh_proxies").update(id, data);
+
+ await fetchProxies();
+ closeDialog();
+ toast.success("Proxy updated successfully");
+ } catch (err) {
+ toast.error(err instanceof Error ? err.message : "Failed to update proxy");
+ } finally {
+ setSubmitting(false);
+ }
+ };
+
+ const deleteProxy = async (id: string) => {
+ try {
+ await pb.collection("fh_proxies").delete(id);
+ await fetchProxies();
+ toast.success("Proxy deleted successfully");
+ } catch (err) {
+ toast.error(err instanceof Error ? err.message : "Failed to delete proxy");
+ }
+ };
+
+ const stats = {
+ total: proxies.length,
+ online: proxies.filter((p) => p.bootStatus === "online").length,
+ offline: proxies.filter((p) => p.bootStatus === "offline").length,
+ // tcp: proxies.filter((p) => p.proxyType === "tcp").length,
+ // udp: proxies.filter((p) => p.proxyType === "udp").length,
+ // http: proxies.filter((p) => p.proxyType === "http").length,
+ // https: proxies.filter((p) => p.proxyType === "https").length,
+ };
+
+ const isEmpty = !loading && proxies.length === 0;
+
+ return {
+ proxies,
+ loading,
+ refreshing,
+ isEmpty,
+ isDialogOpen,
+ formData,
+ submitting,
+ editingProxy,
+ openDialog,
+ closeDialog,
+ updateFormField,
+ createProxy,
+ updateProxy,
+ deleteProxy,
+ page,
+ setPage,
+ totalPages,
+ stats,
+ refreshProxies: () => fetchProxies(true),
+ };
+}
diff --git a/site/src/pages/ServerDetail/ServerDetailPage.view.tsx b/site/src/pages/ServerDetail/ServerDetailPage.view.tsx
new file mode 100644
index 0000000..0239c21
--- /dev/null
+++ b/site/src/pages/ServerDetail/ServerDetailPage.view.tsx
@@ -0,0 +1,337 @@
+import { useEffect, useRef, useState } from "react";
+import { useParams, useNavigate } from "react-router-dom";
+import { Card, Flex, Text, Badge, Grid, Button, Heading, Box } from "@radix-ui/themes";
+import { Icon } from "@iconify/react";
+import { PageHeader } from "../../components/PageHeader";
+import { Loading } from "../../components/Loading";
+import pb from "../../lib/pocketbase";
+import type { Server } from "../Servers/useServers";
+import { toast } from "sonner";
+import { motion } from "framer-motion";
+import { ServerLatency } from "../../components/ServerLatency";
+import { ServerLocation } from "../../components/ServerLocation";
+import { useTranslation } from "react-i18next";
+
+export function ServerDetailPage() {
+ const { t } = useTranslation();
+ const { id } = useParams<{ id: string }>();
+ const navigate = useNavigate();
+ const [server, setServer] = useState(null);
+ const [loading, setLoading] = useState(true);
+ const [error, setError] = useState(null);
+ const [logs, setLogs] = useState([]);
+ const logContainerRef = useRef(null);
+ const [mounted, setMounted] = useState(false);
+
+ useEffect(() => {
+ // Wait for PageTransition to complete before triggering animations
+ const timer = setTimeout(() => setMounted(true), 100);
+ return () => clearTimeout(timer);
+ }, []);
+
+ useEffect(() => {
+ if (!id) return;
+
+ const fetchServer = async () => {
+ try {
+ setLoading(true);
+ const record = await pb.collection("fh_servers").getOne(id);
+ setServer(record);
+ } catch (err: any) {
+ if (err.isAbort) return;
+ console.error("Failed to load server details:", err);
+ setError(err.message || t("server.failedToLoad"));
+ toast.error(t("server.failedToLoad"));
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ fetchServer();
+ }, [id, navigate]);
+
+ // SSE log streaming
+ useEffect(() => {
+ if (!id) return;
+
+ const es = new EventSource(`/api/frpc/logs/stream?id=${id}`);
+
+ es.onmessage = (event) => {
+ setLogs((prev) => [...prev, event.data]);
+ };
+
+ es.onerror = () => {
+ es.close();
+ };
+
+ return () => {
+ es.close();
+ };
+ }, [id]);
+
+ // Auto-scroll to bottom when new logs arrive
+ useEffect(() => {
+ if (logContainerRef.current) {
+ logContainerRef.current.scrollTop = logContainerRef.current.scrollHeight;
+ }
+ }, [logs]);
+
+ const getStatusColor = (status: string) => {
+ switch (status) {
+ case "running":
+ return "green";
+ case "stopped":
+ return "red";
+ default:
+ return "gray";
+ }
+ };
+
+ if (loading) {
+ return (
+
+
+
+ );
+ }
+
+ if (error) {
+ return (
+
+
+
+ {t("server.failedToLoad")}
+
+ {error}
+ navigate("/servers")}>
+ {t("server.backToServers")}
+
+
+ );
+ }
+
+ if (!server) return null;
+
+ return (
+
+ {/* Header */}
+
+ {/**/}
+ {/* */}
+ {/* */}
+ {/* navigate("/servers")}>*/}
+ {/* */}
+ {/* Back to Servers*/}
+ {/* */}
+ {/* */}
+ {/* */}
+ {/* */}
+
+
+ {/* Basic Info Card */}
+
+
+
+ {t("server.basicInformation")}
+
+
+
+
+ {t("server.hostAddress")}
+
+
+ {server.serverAddr}
+
+
+
+
+ {t("server.port")}
+
+
+ {server.serverPort}
+
+
+
+
+ {t("server.latency")}
+
+
+
+
+
+
+
+ {t("server.location")}
+
+
+
+
+
+
+
+ {t("common.status")}
+
+
+
+
+ {server.bootStatus === "running"
+ ? t("server.running")
+ : server.bootStatus === "stopped"
+ ? t("server.stopped")
+ : t("common.status")}
+
+
+
+
+
+ {t("server.protocol")}
+
+
+ {server.transport?.protocol || "TCP"}
+
+
+
+
+ {t("server.createdAt")}
+
+
+ {new Date(server.created).toLocaleString()}
+
+
+
+
+ {t("server.lastUpdated")}
+
+
+ {new Date(server.updated).toLocaleString()}
+
+
+
+
+
+
+
+ {/* Configuration Summary or Other Info */}
+
+
+
+ {t("server.configuration")}
+
+
+ {t("common.description")}
+
+
+ {server.description || t("server.noDescription")}
+
+
+
+ {server.transport?.tls?.enable && (
+
+
+ {t("server.tls")}
+
+
+ {t("server.enabled")}
+
+
+ )}
+
+ {server.transport?.proxyURL && (
+
+
+ {t("server.proxyURL")}
+
+
+ {server.transport.proxyURL}
+
+
+ )}
+
+
+
+
+
+ {/* Logs Section */}
+
+
+
+ {t("server.connectionLogs")}
+
+ setLogs([])}>
+ {t("server.clear")}
+
+
+
+
+
+ {logs.length > 0 ? (
+ logs.map((log, index) => (
+
+ {log}
+
+ ))
+ ) : (
+
+ {t("server.noLogsAvailable")}
+
+ )}
+
+
+
+
+ );
+}
diff --git a/site/src/pages/ServerDetail/index.tsx b/site/src/pages/ServerDetail/index.tsx
new file mode 100644
index 0000000..5406169
--- /dev/null
+++ b/site/src/pages/ServerDetail/index.tsx
@@ -0,0 +1 @@
+export * from "./ServerDetailPage.view";
diff --git a/site/src/pages/Servers/AddServerDialog.tsx b/site/src/pages/Servers/AddServerDialog.tsx
new file mode 100644
index 0000000..6261444
--- /dev/null
+++ b/site/src/pages/Servers/AddServerDialog.tsx
@@ -0,0 +1,928 @@
+import { useState, useEffect } from "react";
+import { AnimatePresence } from "framer-motion";
+import {
+ Dialog,
+ Button,
+ Flex,
+ Text,
+ TextField,
+ Box,
+ Separator,
+ IconButton,
+ TextArea,
+ AlertDialog,
+ Select,
+ Tabs,
+ Switch,
+ Table,
+} from "@radix-ui/themes";
+import { REGEX } from "../../lib/regex";
+import { Icon } from "@iconify/react";
+import { useTranslation } from "react-i18next";
+
+import { FormItem } from "../../components/FormItem";
+
+export interface ServerFormData {
+ serverName: string;
+ serverAddr: string;
+ serverPort: number;
+ serverVersion: string;
+ description: string;
+ autoConnection: boolean;
+ auth: {
+ method: "none" | "token" | "oidc";
+ token: string;
+ oidcClientId: string;
+ oidcClientSecret: string;
+ oidcAudience: string;
+ oidcTokenEndpoint: string;
+ };
+ log: {
+ level: "trace" | "debug" | "info" | "warn" | "error";
+ maxDays: number;
+ // to: string;
+ };
+ transport: {
+ protocol: "tcp" | "kcp" | "quic" | "websocket" | "wss";
+ tls: {
+ enable: boolean;
+ disableCustomTLSFirstByte: boolean;
+ certFile: string;
+ keyFile: string;
+ trustedCaFile: string;
+ serverName: string;
+ };
+ proxyURL: string;
+ };
+ metadatas: Record;
+}
+
+interface AddServerDialogProps {
+ open: boolean;
+ onOpenChange: (open: boolean) => void;
+ onSubmit: (data: ServerFormData) => Promise;
+ initialData?: Partial;
+}
+
+export function AddServerDialog({
+ open,
+ onOpenChange,
+ onSubmit,
+ initialData,
+}: AddServerDialogProps) {
+ const { t } = useTranslation();
+ const [loading, setLoading] = useState(false);
+ const [showDiscardAlert, setShowDiscardAlert] = useState(false);
+ const [appVersion, setAppVersion] = useState("");
+ const [showToken, setShowToken] = useState(false);
+ const [showOidcClientSecret, setShowOidcClientSecret] = useState(false);
+
+ useEffect(() => {
+ fetch("/api/frp/version")
+ .then((res) => res.json())
+ .then((data) => {
+ if (data.frp) {
+ setAppVersion(data.frp);
+ }
+ })
+ .catch(console.error);
+ }, []);
+
+ const defaultData: ServerFormData = {
+ serverName: "",
+ serverAddr: "",
+ serverPort: 7000,
+ serverVersion: "built-in",
+ description: "",
+ autoConnection: false,
+ auth: {
+ method: "none",
+ token: "",
+ oidcClientId: "",
+ oidcClientSecret: "",
+ oidcAudience: "",
+ oidcTokenEndpoint: "",
+ },
+ log: {
+ level: "info",
+ maxDays: 3,
+ // to: "./frpc.log",
+ },
+ transport: {
+ protocol: "tcp",
+ tls: {
+ enable: true,
+ disableCustomTLSFirstByte: false,
+ certFile: "",
+ keyFile: "",
+ trustedCaFile: "",
+ serverName: "",
+ },
+ proxyURL: "",
+ },
+ metadatas: {},
+ };
+
+ const [formData, setFormData] = useState(defaultData);
+ const [errors, setErrors] = useState<{ [key: string]: string }>({});
+
+ const validateServerAddr = (value: string) => {
+ if (!value) return "";
+ if (!REGEX.IP_OR_HOSTNAME.test(value)) {
+ return t("server.errorInvalidIP");
+ }
+ return "";
+ };
+
+ const validateServerPort = (value: number) => {
+ if (!value || !REGEX.PORT.test(value.toString())) {
+ return t("server.errorInvalidPort");
+ }
+ return "";
+ };
+
+ const validateServerName = (value: string) => {
+ if (!value) return "";
+ if (!REGEX.SERVER_NAME.test(value)) {
+ return t("server.errorInvalidServerName");
+ }
+ return "";
+ };
+
+ // Reset form when dialog opens
+ useEffect(() => {
+ if (open) {
+ if (initialData) {
+ setFormData({
+ ...defaultData,
+ ...initialData,
+ auth: {
+ ...defaultData.auth,
+ ...(initialData.auth || {}),
+ },
+ log: {
+ ...defaultData.log,
+ ...(initialData.log || {}),
+ },
+ transport: {
+ ...defaultData.transport,
+ ...(initialData.transport || {}),
+ tls: {
+ ...defaultData.transport.tls,
+ ...(initialData.transport?.tls || {}),
+ },
+ },
+ metadatas: initialData.metadatas || {},
+ });
+ if (initialData.serverName) {
+ const error = validateServerName(initialData.serverName);
+ setErrors((prev) => ({ ...prev, serverName: error }));
+ }
+ if (initialData.serverAddr) {
+ const error = validateServerAddr(initialData.serverAddr);
+ setErrors((prev) => ({ ...prev, serverAddr: error }));
+ }
+ if (initialData.serverPort) {
+ const error = validateServerPort(initialData.serverPort);
+ setErrors((prev) => ({ ...prev, serverPort: error }));
+ }
+ } else {
+ setFormData(defaultData);
+ setErrors({});
+ }
+ setLoading(false);
+ }
+ }, [open, initialData]);
+
+ const handleChange = (
+ field: keyof Omit,
+ value: string | number | boolean
+ ) => {
+ setFormData((prev) => ({ ...prev, [field]: value }));
+
+ if (field === "serverAddr") {
+ const error = validateServerAddr(value as string);
+ setErrors((prev) => ({ ...prev, serverAddr: error }));
+ }
+
+ if (field === "serverPort") {
+ const error = validateServerPort(value as number);
+ setErrors((prev) => ({ ...prev, serverPort: error }));
+ }
+
+ if (field === "serverName") {
+ const error = validateServerName(value as string);
+ setErrors((prev) => ({ ...prev, serverName: error }));
+ }
+ };
+
+ const handleAuthChange = (field: keyof ServerFormData["auth"], value: string) => {
+ setFormData((prev) => ({
+ ...prev,
+ auth: {
+ ...prev.auth,
+ [field]: value,
+ },
+ }));
+ };
+
+ const handleOpenChange = (newOpen: boolean) => {
+ if (!newOpen) {
+ // Check if dirty
+ const currentInitial = initialData
+ ? {
+ ...defaultData,
+ ...initialData,
+ auth: {
+ ...defaultData.auth,
+ ...(initialData.auth || {}),
+ },
+ log: {
+ ...defaultData.log,
+ ...(initialData.log || {}),
+ },
+ transport: {
+ ...defaultData.transport,
+ ...(initialData.transport || {}),
+ tls: {
+ ...defaultData.transport.tls,
+ ...(initialData.transport?.tls || {}),
+ },
+ },
+ metadatas: initialData.metadatas || {},
+ }
+ : defaultData;
+
+ const isDirty = JSON.stringify(formData) !== JSON.stringify(currentInitial);
+ if (isDirty) {
+ setShowDiscardAlert(true);
+ return;
+ }
+ }
+ onOpenChange(newOpen);
+ };
+
+ const confirmDiscard = () => {
+ setShowDiscardAlert(false);
+ onOpenChange(false);
+ };
+
+ const handleSubmit = async () => {
+ try {
+ setLoading(true);
+ await onSubmit(formData);
+ onOpenChange(false);
+ } catch (error) {
+ console.error("Failed to submit server form:", error);
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ const handleLogChange = (field: keyof ServerFormData["log"], value: any) => {
+ setFormData((prev) => ({
+ ...prev,
+ log: {
+ ...prev.log,
+ [field]: value,
+ },
+ }));
+ };
+
+ const handleTransportChange = (field: keyof ServerFormData["transport"], value: any) => {
+ setFormData((prev) => ({
+ ...prev,
+ transport: {
+ ...prev.transport,
+ [field]: value,
+ },
+ }));
+ };
+
+ const handleTlsChange = (field: keyof ServerFormData["transport"]["tls"], value: boolean) => {
+ setFormData((prev) => ({
+ ...prev,
+ transport: {
+ ...prev.transport,
+ tls: {
+ ...prev.transport.tls,
+ [field]: value,
+ },
+ },
+ }));
+ };
+
+ const handleTlsStringChange = (field: string, value: string) => {
+ setFormData((prev) => ({
+ ...prev,
+ transport: {
+ ...prev.transport,
+ tls: {
+ ...prev.transport.tls,
+ [field]: value,
+ },
+ },
+ }));
+ };
+
+ const handleFileUpload = (field: string, e: React.ChangeEvent) => {
+ const file = e.target.files?.[0];
+ if (!file) return;
+ const reader = new FileReader();
+ reader.onload = (event) => {
+ const content = event.target?.result as string;
+ if (typeof content === "string") {
+ handleTlsStringChange(field, content);
+ }
+ };
+ reader.readAsText(file);
+ // Reset input value to allow selecting same file again
+ e.target.value = "";
+ };
+
+ // Metadata state
+ const [newMetaKey, setNewMetaKey] = useState("");
+ const [newMetaValue, setNewMetaValue] = useState("");
+
+ const handleAddMetadata = () => {
+ if (!newMetaKey) return;
+ setFormData((prev) => ({
+ ...prev,
+ metadatas: {
+ ...prev.metadatas,
+ [newMetaKey]: newMetaValue,
+ },
+ }));
+ setNewMetaKey("");
+ setNewMetaValue("");
+ };
+
+ const handleRemoveMetadata = (key: string) => {
+ setFormData((prev) => {
+ const newMetadatas = { ...prev.metadatas };
+ delete newMetadatas[key];
+ return { ...prev, metadatas: newMetadatas };
+ });
+ };
+
+ const isEditing = !!initialData;
+
+ return (
+ <>
+
+
+ {/* Header */}
+
+
+
+
+
+
+
+ {isEditing ? t("server.editServer") : t("server.addServer")}
+
+
+ {isEditing ? t("server.updateServerDesc") : t("server.addServerDesc")}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {t("server.general")}
+ {t("server.log")}
+ {t("server.transport")}
+ {t("server.metadatas")}
+
+
+
+
+
+
+ handleChange("serverName", e.target.value)}
+ color={errors.serverName ? "red" : undefined}
+ />
+
+
+ {/* Host & Port */}
+
+
+
+ handleChange("serverAddr", e.target.value)}
+ color={errors.serverAddr ? "red" : undefined}
+ />
+
+
+
+
+
+ handleChange("serverPort", parseInt(e.target.value) || 0)
+ }
+ color={errors.serverPort ? "red" : undefined}
+ />
+
+
+
+
+ {/* Version */}
+
+ handleChange("serverVersion", value)}
+ >
+
+
+
+ {t("server.builtIn")} {appVersion && `(${appVersion})`}
+
+
+
+
+
+ {/* Authentication */}
+
+
+
+ handleAuthChange("method", value as "none" | "token" | "oidc")
+ }
+ >
+
+
+ {t("server.authMethodNone")}
+ {t("server.authMethodToken")}
+
+ {t("server.authMethodOidc")}
+
+
+
+
+
+
+ {formData.auth.method === "token" && (
+
+ handleAuthChange("token", e.target.value)}
+ >
+
+ setShowToken(!showToken)}
+ />
+
+
+
+ )}
+
+
+ {formData.auth.method === "oidc" && (
+
+
+ handleAuthChange("oidcClientId", e.target.value)}
+ />
+
+
+ handleAuthChange("oidcClientSecret", e.target.value)}
+ >
+
+ setShowOidcClientSecret(!showOidcClientSecret)}
+ />
+
+
+
+
+ handleAuthChange("oidcAudience", e.target.value)}
+ />
+
+
+ handleAuthChange("oidcTokenEndpoint", e.target.value)}
+ />
+
+
+ )}
+
+
+ {/* Description */}
+
+
+
+ {/* Auto Connection */}
+
+
+
+ {t("server.autoConnection")}
+
+
+ {t("server.autoConnectionDesc")}
+
+
+ handleChange("autoConnection", checked)}
+ />
+
+
+
+
+
+
+
+ handleLogChange("level", value)}
+ >
+
+
+ {t("server.logLevelTrace")}
+ {t("server.logLevelDebug")}
+ {t("server.logLevelInfo")}
+ {t("server.logLevelWarn")}
+ {t("server.logLevelError")}
+
+
+
+
+ {/*
+ handleLogChange("to", e.target.value)}
+ />
+ */}
+
+
+ handleLogChange("maxDays", parseInt(e.target.value) || 0)}
+ />
+
+
+
+
+
+
+
+ handleTransportChange("protocol", value)}
+ >
+
+
+ {t("server.protocolTcp")}
+ {t("server.protocolKcp")}
+ {t("server.protocolQuic")}
+ {t("server.protocolWebsocket")}
+ {t("server.protocolWss")}
+
+
+
+
+
+ {t("server.tlsEnable")}
+ handleTlsChange("enable", checked)}
+ />
+
+
+
+ {t("server.disableCustomTLSFirstByte")}
+
+ handleTlsChange("disableCustomTLSFirstByte", checked)
+ }
+ />
+
+
+ {formData.transport.tls.enable && (
+
+
+ handleTlsStringChange("serverName", e.target.value)}
+ />
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ )}
+
+
+ handleTransportChange("proxyURL", e.target.value)}
+ />
+
+
+
+
+
+
+
+
+
+ {t("server.metadataKey")}
+ {t("server.metadataValue")}
+
+
+
+
+ {Object.entries(formData.metadatas).map(([key, value]) => (
+
+ {key}
+ {value}
+
+ handleRemoveMetadata(key)}
+ >
+
+
+
+
+ ))}
+ {Object.keys(formData.metadatas).length === 0 && (
+
+
+
+ {t("server.noMetadata")}
+
+
+
+ )}
+
+
+
+
+ setNewMetaKey(e.target.value)}
+ style={{ flex: 1 }}
+ />
+ setNewMetaValue(e.target.value)}
+ style={{ flex: 1 }}
+ />
+
+
+ {t("common.add")}
+
+
+
+
+
+
+
+
+
+ {/* Footer Actions */}
+
+
+
+
+ {t("common.cancel")}
+
+
+
+ {loading ? (
+ isEditing ? (
+
+ ) : (
+
+ )
+ ) : isEditing ? (
+
+ ) : (
+
+ )}
+ {loading
+ ? isEditing
+ ? t("server.saving")
+ : t("server.adding")
+ : isEditing
+ ? t("server.saveChanges")
+ : t("server.addServer")}
+
+
+
+
+
+
+
+ {t("common.discardChanges")}
+
+ {t("common.discardChangesDesc")}
+
+
+
+
+ {t("common.keepEditing")}
+
+
+
+
+ {t("common.discard")}
+
+
+
+
+
+ >
+ );
+}
diff --git a/site/src/pages/Servers/ServersPage.view.tsx b/site/src/pages/Servers/ServersPage.view.tsx
new file mode 100644
index 0000000..20e2811
--- /dev/null
+++ b/site/src/pages/Servers/ServersPage.view.tsx
@@ -0,0 +1,475 @@
+import {
+ Button,
+ Card,
+ Flex,
+ Heading,
+ Text,
+ Badge,
+ Table,
+ TextField,
+ AlertDialog,
+} from "@radix-ui/themes";
+import { Link, useNavigate } from "react-router-dom";
+import { useState, useEffect } from "react";
+import { Icon } from "@iconify/react";
+import { motion, AnimatePresence } from "framer-motion";
+import { AnimateNumber } from "../../components/AnimateNumber";
+import { EmptyState } from "../../components/EmptyState";
+import { AddServerDialog } from "./AddServerDialog";
+import type { ServerFormData } from "./AddServerDialog";
+import type { Server, CreateServerForm } from "./useServers";
+import { PageHeader } from "../../components/PageHeader";
+import { Loading } from "../../components/Loading";
+import { StatCard } from "../../components/StatCard";
+import { ServerLatency } from "../../components/ServerLatency";
+import { ServerLocation } from "../../components/ServerLocation";
+import { useTranslation } from "react-i18next";
+
+interface ServersViewProps {
+ servers: Server[];
+ loading?: boolean;
+ refreshing: boolean;
+ isDialogOpen: boolean;
+ formData: CreateServerForm;
+ submitting: boolean;
+ editingServer: Server | null;
+ openDialog: (server?: Server) => void;
+ closeDialog: () => void;
+ updateFormField: (field: keyof CreateServerForm, value: string | number) => void;
+ createServer: (data?: CreateServerForm) => Promise;
+ updateServer: (id: string, data: CreateServerForm) => Promise;
+ deleteServer: (id: string) => void;
+ launchServer: (id: string) => void;
+ terminateServer: (id: string) => void;
+ search: string;
+ setSearch: (value: string) => void;
+ refreshServers: () => void;
+}
+
+export function ServersView({
+ servers,
+ loading,
+ refreshing,
+ isDialogOpen,
+ // formData,
+ // submitting,
+ editingServer,
+ openDialog,
+ closeDialog,
+ // updateFormField,
+ createServer,
+ updateServer,
+ deleteServer,
+ launchServer,
+ terminateServer,
+ search,
+ setSearch,
+ refreshServers,
+}: ServersViewProps) {
+ const { t } = useTranslation();
+ const navigate = useNavigate();
+ const getStatusColor = (status: string) => {
+ switch (status) {
+ case "running":
+ return "green";
+ case "stopped":
+ return "red";
+ default:
+ return "gray";
+ }
+ };
+
+ const [deleteId, setDeleteId] = useState(null);
+ const [mounted, setMounted] = useState(false);
+
+ useEffect(() => {
+ // Wait for PageTransition to complete before triggering animations
+ const timer = setTimeout(() => setMounted(true), 100);
+ return () => clearTimeout(timer);
+ }, []);
+
+ const handleSave = async (data: ServerFormData) => {
+ if (editingServer) {
+ await updateServer(editingServer.id, data);
+ } else {
+ await createServer(data);
+ }
+ };
+
+ return (
+ <>
+ !open && closeDialog()}
+ onSubmit={handleSave}
+ initialData={editingServer as any}
+ />
+
+
+ {/* Header */}
+
+ {/* Stats Cards */}
+
+
+ }
+ color="gray"
+ icon={ }
+ />
+
+
+
+ s.bootStatus === "running").length}
+ decimalPlaces={0}
+ />
+
+ }
+ color="green"
+ icon={ }
+ />
+
+
+
+ s.bootStatus === "stopped").length}
+ decimalPlaces={0}
+ />
+
+ }
+ color="red"
+ icon={ }
+ />
+
+
+ {/* Servers Table */}
+
+
+
+
+
+ {t("server.allServers")}
+
+
+ setSearch(e.target.value)}
+ >
+
+
+
+ {search && (
+ setSearch("")}
+ style={{ cursor: "pointer" }}
+ >
+
+
+ )}
+
+
+
+ {t("server.refresh")}
+
+ navigate("/import")}>
+
+ {t("import.title")}
+
+ openDialog()}>
+
+ {t("server.addServer")}
+
+
+
+
+
+
+ {loading ? (
+
+
+
+
+
+ ) : servers.length === 0 ? (
+ search ? (
+
+
+
+ {t("server.noResultsFound")}
+
+ {t("server.noServersMatch")} "{search}"
+
+ setSearch("")}>
+ {t("server.clearSearch")}
+
+
+
+ ) : (
+
+
+ openDialog()}
+ />
+
+
+ )
+ ) : (
+
+
+
+
+
+ {t("common.name")}
+ {t("server.host")}
+ {t("server.port")}
+ {t("server.latency")}
+ {t("server.location")}
+ {t("server.bootStatus")}
+
+ {t("common.actions")}
+
+
+
+ {servers.map((server) => (
+
+
+
+
+ {server.serverName}
+
+
+
+
+
+ {server.serverAddr}
+
+
+
+ {server.serverPort}
+
+
+
+
+
+
+
+
+
+
+ {server.bootStatus === "running"
+ ? t("server.running")
+ : server.bootStatus === "stopped"
+ ? t("server.stopped")
+ : t("common.status")}
+
+
+
+
+
+ {server.bootStatus === "running" ? (
+ {
+ terminateServer(server.id);
+ }}
+ >
+
+ {t("server.stop")}
+
+ ) : (
+ launchServer(server.id)}
+ >
+
+ {t("server.launch")}
+
+ )}
+
+
+
+
+ {t("server.view")}
+
+
+
+ openDialog(server)}
+ >
+
+ {t("common.edit")}
+
+
+ setDeleteId(server.id)}
+ >
+
+ {t("common.delete")}
+
+
+
+
+ ))}
+
+
+
+
+ )}
+
+
+
+
+
+ setDeleteId(null)}>
+
+ {t("server.confirmDeletion")}
+
+ {t("server.deleteConfirmMessage")}
+
+
+
+
+ {t("common.cancel")}
+
+
+
+ {
+ if (deleteId) {
+ deleteServer(deleteId);
+ setDeleteId(null);
+ }
+ }}
+ >
+ {t("common.delete")}
+
+
+
+
+
+ >
+ );
+}
diff --git a/site/src/pages/Servers/index.tsx b/site/src/pages/Servers/index.tsx
new file mode 100644
index 0000000..1f3d611
--- /dev/null
+++ b/site/src/pages/Servers/index.tsx
@@ -0,0 +1,10 @@
+import { useServers } from "./useServers";
+import { ServersView } from "./ServersPage.view";
+
+export function ServersPage() {
+ const state = useServers();
+
+ return ;
+}
+
+export default ServersPage;
diff --git a/site/src/pages/Servers/useServers.ts b/site/src/pages/Servers/useServers.ts
new file mode 100644
index 0000000..7c69ea5
--- /dev/null
+++ b/site/src/pages/Servers/useServers.ts
@@ -0,0 +1,322 @@
+import { useState, useEffect, useCallback } from "react";
+import pb from "../../lib/pocketbase";
+import { toast } from "sonner";
+
+export interface Server {
+ id: string;
+ serverName: string;
+ serverAddr: string;
+ serverPort: number;
+ description: string;
+ bootStatus: string;
+ autoConnection: boolean;
+ created: string;
+ updated: string;
+ sendRate: number;
+ recvRate: number;
+ // Network status
+ networkStatus?: {
+ latency: number;
+ reachable: boolean;
+ lastCheckTime: string;
+ error?: string;
+ };
+ geoLocation?: {
+ country: string;
+ countryCode: string;
+ region: string;
+ city: string;
+ isp: string;
+ lat: number;
+ lon: number;
+ };
+ // Extended fields
+ log?: {
+ level: "trace" | "debug" | "info" | "warn" | "error";
+ maxDays: number;
+ to?: string;
+ };
+ auth?: {
+ method: "none" | "token" | "oidc";
+ token: string;
+ oidcClientId: string;
+ oidcClientSecret: string;
+ oidcAudience: string;
+ oidcTokenEndpoint: string;
+ };
+ transport?: {
+ protocol: "tcp" | "kcp" | "quic" | "websocket" | "wss";
+ tls: {
+ enable: boolean;
+ disableCustomTLSFirstByte: boolean;
+ certFile: string;
+ keyFile: string;
+ trustedCaFile: string;
+ serverName: string;
+ };
+ proxyURL: string;
+ };
+ metadatas?: Record;
+}
+
+export interface CreateServerForm {
+ serverName: string;
+ serverAddr: string;
+ serverPort: number;
+ description: string;
+ autoConnection: boolean;
+ auth: {
+ method: "none" | "token" | "oidc";
+ token: string;
+ oidcClientId: string;
+ oidcClientSecret: string;
+ oidcAudience: string;
+ oidcTokenEndpoint: string;
+ };
+ log?: {
+ level: "trace" | "debug" | "info" | "warn" | "error";
+ maxDays: number;
+ to?: string;
+ };
+ transport?: {
+ protocol: "tcp" | "kcp" | "quic" | "websocket" | "wss";
+ tls: {
+ enable: boolean;
+ disableCustomTLSFirstByte: boolean;
+ certFile: string;
+ keyFile: string;
+ trustedCaFile: string;
+ serverName: string;
+ };
+ proxyURL: string;
+ };
+ metadatas?: Record;
+}
+
+export function useServers() {
+ const [servers, setServers] = useState([]);
+ const [loading, setLoading] = useState(true);
+ const [refreshing, setRefreshing] = useState(false);
+ const [isDialogOpen, setIsDialogOpen] = useState(false);
+ const [formData, setFormData] = useState({
+ serverName: "",
+ serverAddr: "",
+ serverPort: 7000,
+ description: "",
+ autoConnection: false,
+ auth: {
+ method: "token",
+ token: "",
+ oidcClientId: "",
+ oidcClientSecret: "",
+ oidcAudience: "",
+ oidcTokenEndpoint: "",
+ },
+ });
+ const [submitting, setSubmitting] = useState(false);
+
+ const [page, setPage] = useState(1);
+ const [totalPages, setTotalPages] = useState(1);
+ const PER_PAGE = 10;
+
+ const [editingServer, setEditingServer] = useState(null);
+ const [search, setSearch] = useState("");
+
+ const fetchServers = useCallback(
+ async (isRefresh = false) => {
+ try {
+ // Only show loading spinner on initial load, not on refresh
+ if (!isRefresh && servers.length === 0) {
+ setLoading(true);
+ } else if (isRefresh) {
+ setRefreshing(true);
+ }
+
+ const options: any = {
+ sort: "-created",
+ };
+
+ if (search) {
+ options.filter = `serverName ~ "${search}" || serverAddr ~ "${search}" || description ~ "${search}"`;
+ }
+
+ const result = await pb.collection("fh_servers").getList(page, PER_PAGE, options);
+
+ // Network status is already stored in database, no need to fetch separately
+ setServers(result.items);
+ setTotalPages(result.totalPages);
+ } catch (err) {
+ if ((err as any)?.isAbort) return;
+ toast.error(err instanceof Error ? err.message : "Failed to fetch servers");
+ } finally {
+ setLoading(false);
+ setRefreshing(false);
+ }
+ },
+ [page, search, servers.length]
+ );
+
+ useEffect(() => {
+ setPage(1);
+ }, [search]);
+
+ useEffect(() => {
+ const timer = setTimeout(() => {
+ fetchServers();
+ }, 300); // Simple debounce
+ return () => clearTimeout(timer);
+ }, [fetchServers]);
+
+ // Auto-refresh server status every 5 seconds
+ useEffect(() => {
+ const interval = setInterval(() => {
+ fetchServers(true); // Pass true to indicate this is a refresh
+ }, 5000);
+ return () => clearInterval(interval);
+ }, [fetchServers]);
+
+ const openDialog = (server?: Server) => {
+ if (server) {
+ setEditingServer(server);
+ // Pre-fill form data if we were using the hook's state, but we're seemingly not.
+ // But we might need to if we want the hook's formData to match.
+ // However, the View doesn't seem to use hook's formData for the dialog anymore.
+ // We will let the Dialog handle its own state based on editingServer prop.
+ } else {
+ setEditingServer(null);
+ setFormData({
+ serverName: "",
+ serverAddr: "",
+ serverPort: 7000,
+ description: "",
+ autoConnection: false,
+ auth: {
+ method: "token",
+ token: "",
+ oidcClientId: "",
+ oidcClientSecret: "",
+ oidcAudience: "",
+ oidcTokenEndpoint: "",
+ },
+ });
+ }
+ setIsDialogOpen(true);
+ };
+
+ const closeDialog = () => {
+ setIsDialogOpen(false);
+ setEditingServer(null);
+ };
+
+ const updateFormField = (field: keyof CreateServerForm, value: any) => {
+ setFormData((prev) => ({ ...prev, [field]: value }));
+ };
+
+ const createServer = async (data?: CreateServerForm) => {
+ try {
+ setSubmitting(true);
+ const body = data || formData;
+ // Ensure port is a number
+ const payload = {
+ ...body,
+ serverPort: Number(body.serverPort),
+ bootStatus: "stopped", // Default status
+ };
+
+ await pb.collection("fh_servers").create(payload);
+
+ await fetchServers();
+ closeDialog();
+ toast.success("Server created successfully");
+ } catch (err) {
+ toast.error(err instanceof Error ? err.message : "Failed to create server");
+ } finally {
+ setSubmitting(false);
+ }
+ };
+
+ const updateServer = async (id: string, data: CreateServerForm) => {
+ try {
+ setSubmitting(true);
+ // Ensure port is a number
+ const payload = {
+ ...data,
+ serverPort: Number(data.serverPort),
+ };
+
+ await pb.collection("fh_servers").update(id, payload);
+
+ await fetchServers();
+ closeDialog();
+ toast.success("Server updated successfully");
+ } catch (err) {
+ toast.error(err instanceof Error ? err.message : "Failed to update server");
+ } finally {
+ setSubmitting(false);
+ }
+ };
+
+ const deleteServer = async (id: string) => {
+ try {
+ await pb.collection("fh_servers").delete(id);
+ await fetchServers();
+ toast.success("Server deleted successfully");
+ } catch (err) {
+ toast.error(err instanceof Error ? err.message : "Failed to delete server");
+ }
+ };
+
+ const launchServer = async (id: string) => {
+ console.log("launching server", id);
+ const response = await fetch("/api/frpc/launch", {
+ method: "POST",
+ headers: {
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify({ id }),
+ });
+ if (response.ok) {
+ await fetchServers();
+ toast.success("Server launched successfully");
+ }
+ };
+
+ const terminateServer = async (id: string) => {
+ console.log("terminating server", id);
+ const response = await fetch("/api/frpc/terminate", {
+ method: "POST",
+ headers: {
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify({ id }),
+ });
+ if (response.ok) {
+ await fetchServers();
+ toast.success("Server launched successfully");
+ }
+ };
+
+ return {
+ servers,
+ loading,
+ refreshing,
+ isDialogOpen,
+ formData,
+ submitting,
+ editingServer,
+ openDialog,
+ closeDialog,
+ updateFormField,
+ createServer,
+ updateServer,
+ deleteServer,
+ page,
+ setPage,
+ totalPages,
+ launchServer,
+ terminateServer,
+ search,
+ setSearch,
+ refreshServers: () => fetchServers(true),
+ };
+}
diff --git a/site/src/pages/Settings/ChangePasswordDialog.tsx b/site/src/pages/Settings/ChangePasswordDialog.tsx
new file mode 100644
index 0000000..7e82a3a
--- /dev/null
+++ b/site/src/pages/Settings/ChangePasswordDialog.tsx
@@ -0,0 +1,200 @@
+import { useState } from "react";
+import { Dialog, Button, Flex, TextField, Callout } from "@radix-ui/themes";
+import { AnimatePresence, motion } from "framer-motion";
+import { Icon } from "@iconify/react";
+import { useNavigate } from "react-router-dom";
+import { FormItem } from "../../components/FormItem";
+import pb from "../../lib/pocketbase";
+import { toast } from "sonner";
+import { useTranslation } from "react-i18next";
+
+export function ChangePasswordDialog({
+ open,
+ onOpenChange,
+}: {
+ open: boolean;
+ onOpenChange: (open: boolean) => void;
+}) {
+ const { t } = useTranslation();
+ const navigate = useNavigate();
+ const [oldPassword, setOldPassword] = useState("");
+ const [newPassword, setNewPassword] = useState("");
+ const [confirmPassword, setConfirmPassword] = useState("");
+ const [loading, setLoading] = useState(false);
+ const [error, setError] = useState("");
+ const [showOldPassword, setShowOldPassword] = useState(false);
+ const [showNewPassword, setShowNewPassword] = useState(false);
+ const [showConfirmPassword, setShowConfirmPassword] = useState(false);
+
+ const handleSubmit = async () => {
+ setError("");
+ if (!oldPassword || !newPassword || !confirmPassword) {
+ setError(t("settings.fillAllFields"));
+ return;
+ }
+
+ if (newPassword !== confirmPassword) {
+ setError(t("settings.passwordsDoNotMatch"));
+ return;
+ }
+
+ if (newPassword.length < 8) {
+ setError(t("settings.passwordTooShort"));
+ return;
+ }
+
+ setLoading(true);
+ try {
+ if (!pb.authStore.record) throw new Error("User not authenticated");
+
+ const userEmail = pb.authStore.record.email;
+ const collectionName = pb.authStore.record.collectionName || "fh_users";
+
+ console.log("Updating password for user:", pb.authStore.record.id);
+ console.log("Collection:", collectionName);
+
+ // First, verify the old password by attempting to re-authenticate
+ try {
+ await pb.collection(collectionName).authWithPassword(userEmail, oldPassword);
+ console.log("Old password verified successfully");
+ } catch (authErr: any) {
+ console.error("Old password verification failed:", authErr);
+ setError(t("settings.incorrectPassword"));
+ setLoading(false);
+ return;
+ }
+
+ // Now update the password
+ await pb.collection(collectionName).update(pb.authStore.record.id, {
+ oldPassword: oldPassword,
+ password: newPassword,
+ passwordConfirm: confirmPassword,
+ passwordChangedAt: new Date().toISOString(),
+ });
+
+ setOldPassword("");
+ setNewPassword("");
+ setConfirmPassword("");
+ toast.success(t("settings.passwordUpdateSuccess"));
+ onOpenChange(false);
+
+ // Logout and redirect to login page
+ pb.authStore.clear();
+ navigate("/login", { replace: true });
+ } catch (err: any) {
+ console.error("Password update error:", err);
+
+ // Handle PocketBase validation errors
+ if (err.response?.data) {
+ const data = err.response.data;
+ if (data.oldPassword) {
+ setError(t("settings.incorrectPassword"));
+ } else if (data.password) {
+ setError(data.password.message || t("settings.passwordsDoNotMatch"));
+ } else if (data.passwordConfirm) {
+ setError(data.passwordConfirm.message || t("settings.passwordsDoNotMatch"));
+ } else {
+ setError(err.message || t("settings.saveFailed"));
+ }
+ } else {
+ setError(err.message || t("settings.saveFailed"));
+ }
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ return (
+
+
+ {t("settings.changePasswordTitle")}
+
+ {t("settings.changePasswordDesc")}
+
+
+
+ {/* Error Message */}
+
+ {error && (
+
+
+
+
+
+ {error}
+
+
+ )}
+
+
+
+ setOldPassword(e.target.value)}
+ >
+
+ setShowOldPassword(!showOldPassword)}
+ />
+
+
+
+
+
+ setNewPassword(e.target.value)}
+ >
+
+ setShowNewPassword(!showNewPassword)}
+ />
+
+
+
+
+
+ setConfirmPassword(e.target.value)}
+ >
+
+ setShowConfirmPassword(!showConfirmPassword)}
+ />
+
+
+
+
+
+
+
+
+ {t("common.cancel")}
+
+
+
+ {loading ? t("settings.updating") : t("settings.updatePassword")}
+
+
+
+
+ );
+}
diff --git a/site/src/pages/Settings/GeneralSettings.tsx b/site/src/pages/Settings/GeneralSettings.tsx
new file mode 100644
index 0000000..a2fdc53
--- /dev/null
+++ b/site/src/pages/Settings/GeneralSettings.tsx
@@ -0,0 +1,179 @@
+import { useState, useEffect } from "react";
+import { Box, Flex, Heading, Text, Separator, TextField, Button } from "@radix-ui/themes";
+import { Icon } from "@iconify/react";
+import { FormItem } from "../../components/FormItem";
+import { useTranslation } from "react-i18next";
+import { toast } from "sonner";
+
+interface GeneralSettingsData {
+ latencyCheckInterval: number;
+ locationCheckInterval: number;
+}
+
+export function GeneralSettings() {
+ const { t } = useTranslation();
+
+ const [settings, setSettings] = useState({
+ latencyCheckInterval: 30,
+ locationCheckInterval: 60,
+ });
+
+ const [saving, setSaving] = useState(false);
+ const [loading, setLoading] = useState(true);
+
+ // Load settings from backend
+ useEffect(() => {
+ const loadSettings = async () => {
+ try {
+ const response = await fetch("/api/system/settings");
+ if (response.ok) {
+ const data = await response.json();
+ if (data.general) {
+ setSettings({
+ latencyCheckInterval: data.general.latencyCheckInterval || 30,
+ locationCheckInterval: data.general.locationCheckInterval || 60,
+ });
+ }
+ }
+ } catch (error) {
+ console.error("Failed to load settings:", error);
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ loadSettings();
+ }, []);
+
+ const handleSave = async () => {
+ setSaving(true);
+ try {
+ const response = await fetch("/api/system/settings", {
+ method: "PUT",
+ headers: {
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify({
+ general: settings,
+ }),
+ });
+
+ if (!response.ok) {
+ throw new Error("Failed to save settings");
+ }
+
+ toast.success(t("settings.saveSuccess"));
+ } catch (error) {
+ console.error("Failed to save settings:", error);
+ toast.error(t("settings.saveFailed"));
+ } finally {
+ setSaving(false);
+ }
+ };
+
+ const handleReset = () => {
+ setSettings({
+ latencyCheckInterval: 30,
+ locationCheckInterval: 60,
+ });
+ };
+
+ if (loading) {
+ return (
+
+
+
+ );
+ }
+
+ return (
+
+
+
+ {t("settings.generalSettings")}
+
+
+ {t("settings.configureApp")}
+
+
+
+
+
+ {/* Monitor Settings */}
+
+
+ {t("settings.monitorSettings")}
+
+
+
+
+
+
+ setSettings({
+ ...settings,
+ latencyCheckInterval: parseInt(e.target.value) || 30,
+ })
+ }
+ size="2"
+ style={{ flex: 1 }}
+ />
+
+ {t("settings.seconds")}
+
+
+
+ {t("settings.latencyCheckIntervalDesc")}
+
+
+
+
+
+
+ setSettings({
+ ...settings,
+ locationCheckInterval: parseInt(e.target.value) || 60,
+ })
+ }
+ size="2"
+ style={{ flex: 1 }}
+ />
+
+ {t("settings.seconds")}
+
+
+
+ {t("settings.locationCheckIntervalDesc")}
+
+
+
+
+
+
+
+ {/* Save Button */}
+
+
+ {t("common.reset")}
+
+
+ {saving ? (
+
+ ) : (
+
+ )}
+ {saving ? t("settings.saving") : t("settings.saveChanges")}
+
+
+
+ );
+}
diff --git a/site/src/pages/Settings/ProfileSettings.tsx b/site/src/pages/Settings/ProfileSettings.tsx
new file mode 100644
index 0000000..b0c28f7
--- /dev/null
+++ b/site/src/pages/Settings/ProfileSettings.tsx
@@ -0,0 +1,292 @@
+import { useState, useRef } from "react";
+import {
+ Box,
+ Flex,
+ Heading,
+ Text,
+ Separator,
+ TextField,
+ Button,
+ Avatar,
+ Badge,
+} from "@radix-ui/themes";
+import { Icon } from "@iconify/react";
+import { FormItem } from "../../components/FormItem";
+import pb from "../../lib/pocketbase";
+import { getGravatarUrl } from "../../lib/gravatar";
+import { getTimeAgo } from "../../lib/format";
+import { ChangePasswordDialog } from "./ChangePasswordDialog";
+import { useTranslation } from "react-i18next";
+
+export function ProfileSettings() {
+ const { t } = useTranslation();
+ const [nickname, setNickname] = useState(
+ pb.authStore.record?.name || pb.authStore.record?.nickname || ""
+ );
+ const [email, setEmail] = useState(pb.authStore.record?.email || "");
+ const [avatarFile, setAvatarFile] = useState(null);
+ const [avatarPreview, setAvatarPreview] = useState(null);
+ const [isPasswordDialogOpen, setIsPasswordDialogOpen] = useState(false);
+ const [saving, setSaving] = useState(false);
+
+ const fileInputRef = useRef(null);
+
+ // Get the timestamp for password last changed
+ const getPasswordChangeTimestamp = () => {
+ const record = pb.authStore.record;
+ if (!record) return null;
+
+ // Use passwordChangedAt if available, otherwise fall back to updated
+ return record.passwordChangedAt || record.updated || null;
+ };
+
+ // Helper to get current avatar URL
+ const getAvatarUrl = () => {
+ if (avatarPreview) return avatarPreview;
+ if (pb.authStore.record?.avatar) {
+ return pb.files.getURL(pb.authStore.record, pb.authStore.record.avatar);
+ }
+ return getGravatarUrl(pb.authStore.record?.email || "", 200);
+ };
+
+ const handleAvatarClick = () => {
+ fileInputRef.current?.click();
+ };
+
+ const handleFileChange = (e: React.ChangeEvent) => {
+ const file = e.target.files?.[0];
+ if (file) {
+ setAvatarFile(file);
+ setAvatarPreview(URL.createObjectURL(file));
+ }
+ };
+
+ const handleSave = async () => {
+ if (!pb.authStore.model) return;
+ setSaving(true);
+ try {
+ const formData = new FormData();
+ formData.append("name", nickname); // Common field for name/nickname
+ formData.append("nickname", nickname); // Just in case schema uses nickname
+ // Email updates often require verification in PB, but we'll try updating it.
+ // If email changes, PB might require token re-auth or email confirm.
+ if (email !== pb.authStore.model.email) {
+ formData.append("email", email);
+ }
+
+ if (avatarFile) {
+ formData.append("avatar", avatarFile);
+ }
+
+ await pb.collection("fh_users").update(pb.authStore.record!.id, formData);
+
+ // Force refresh/reload might be needed or just let PB auth store update reactively
+ window.location.reload(); // Simple way to refresh state across app
+ } catch (error) {
+ console.error("Failed to update profile", error);
+ alert("Failed to update profile. Please try again.");
+ } finally {
+ setSaving(false);
+ }
+ };
+
+ return (
+
+
+
+ {t("settings.userProfile")}
+
+
+ {t("settings.managePersonalInfo")}
+
+
+
+
+
+ {/* Profile Header Card */}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {nickname || "User"}
+
+
+
+ {t("settings.active")}
+
+
+
+
+ {email || ""}
+
+
+
+
+
+ {/* Personal Information */}
+
+
+ {t("settings.personalInformation")}
+
+
+
+
+ setNickname(e.target.value)}
+ size="2"
+ />
+
+
+
+ setEmail(e.target.value)}
+ size="2"
+ type="email"
+ />
+
+ {t("settings.emailDescription")}
+
+
+
+
+
+
+
+ {/* Security Settings */}
+
+
+ {t("settings.security")}
+
+
+
+
+
+
+
+ {t("settings.password")}
+
+
+ {t("settings.lastChanged")} {getTimeAgo(getPasswordChangeTimestamp())}
+
+
+ setIsPasswordDialogOpen(true)}>
+ {t("settings.changePassword")}
+
+
+
+
+
+
+
+
+ {/* Save Button */}
+
+ window.location.reload()}>
+ {t("common.cancel")}
+
+
+ {saving ? (
+
+ ) : (
+
+ )}
+ {saving ? t("settings.saving") : t("settings.saveChanges")}
+
+
+
+
+
+ );
+}
diff --git a/site/src/pages/Settings/SettingsPage.css b/site/src/pages/Settings/SettingsPage.css
new file mode 100644
index 0000000..5bfe2fd
--- /dev/null
+++ b/site/src/pages/Settings/SettingsPage.css
@@ -0,0 +1,66 @@
+.settings-container {
+ max-width: 1200px;
+ margin: 0 auto;
+}
+
+.settings-card {
+ padding: 0;
+ overflow: hidden;
+}
+
+.settings-sidebar {
+ width: 240px;
+ background-color: var(--gray-1);
+ border-right: 1px solid var(--gray-5);
+ padding: 20px 16px;
+}
+
+.settings-nav {
+ border-bottom: none;
+}
+
+.settings-content {
+ flex: 1;
+ padding: 24px 32px;
+ min-height: 500px;
+}
+
+.nav-item {
+ all: unset;
+ box-sizing: border-box !important;
+ user-select: none !important;
+ display: flex !important;
+ align-items: center !important;
+ justify-content: flex-start !important;
+ width: 100% !important;
+ padding: 10px 12px !important;
+ border-radius: 8px !important;
+ cursor: pointer !important;
+ transition: all 0.15s ease !important;
+ color: var(--gray-11) !important;
+}
+
+/* Disable default Radix tab indicators/pseudos */
+.nav-item::before,
+.nav-item::after {
+ display: none !important;
+}
+
+.nav-item:hover {
+ background-color: var(--gray-3) !important;
+ /* Reset potential Radix hover bleeds */
+ color: var(--gray-11) !important;
+ box-shadow: none !important;
+ text-decoration: none !important;
+}
+
+.nav-item[data-state="active"] {
+ background-color: var(--accent-3) !important;
+ color: var(--accent-11) !important;
+ font-weight: 500 !important;
+}
+
+.avatar-edit-btn:hover {
+ transform: scale(1.1) !important;
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
+}
diff --git a/site/src/pages/Settings/SettingsPage.view.tsx b/site/src/pages/Settings/SettingsPage.view.tsx
new file mode 100644
index 0000000..ea05021
--- /dev/null
+++ b/site/src/pages/Settings/SettingsPage.view.tsx
@@ -0,0 +1,103 @@
+import { Box, Card, Flex, Text } from "@radix-ui/themes";
+import { useState, useEffect } from "react";
+import { useSearchParams } from "react-router-dom";
+import { motion, AnimatePresence } from "framer-motion";
+import { useTranslation } from "react-i18next";
+import { PageHeader } from "../../components/PageHeader";
+import { Icon } from "@iconify/react";
+import { ProfileSettings } from "./ProfileSettings";
+import { GeneralSettings } from "./GeneralSettings";
+import "./SettingsPage.css";
+
+export function SettingsView() {
+ const { t } = useTranslation();
+ const [searchParams, setSearchParams] = useSearchParams();
+ const tabParam = searchParams.get("tab");
+ const [activeTab, setActiveTab] = useState(tabParam || "general");
+
+ useEffect(() => {
+ const tab = searchParams.get("tab");
+ if (tab && tab !== activeTab) {
+ setActiveTab(tab);
+ }
+ }, [searchParams]);
+
+ const handleTabChange = (tab: string) => {
+ setActiveTab(tab);
+ setSearchParams({ tab });
+ };
+
+ return (
+ <>
+
+ {/* Header Section */}
+
+
+
+
+ {/* Main Interface */}
+
+
+ {/* Modern Navigation Sidebar */}
+
+
+ handleTabChange("general")}
+ >
+
+
+
+ {t("settings.general")}
+
+
+
+ handleTabChange("profile")}
+ >
+
+
+
+ {t("settings.profile")}
+
+
+
+
+
+
+ {/* Content Area */}
+
+
+ {activeTab === "general" && (
+
+
+
+ )}
+ {activeTab === "profile" && (
+
+
+
+ )}
+
+
+
+
+
+ >
+ );
+}
diff --git a/site/src/pages/Settings/index.tsx b/site/src/pages/Settings/index.tsx
new file mode 100644
index 0000000..4e5f28e
--- /dev/null
+++ b/site/src/pages/Settings/index.tsx
@@ -0,0 +1,7 @@
+import { SettingsView } from "./SettingsPage.view";
+
+export function SettingsPage() {
+ return ;
+}
+
+export default SettingsPage;
diff --git a/site/src/pages/Setup/SetupPage.view.tsx b/site/src/pages/Setup/SetupPage.view.tsx
new file mode 100644
index 0000000..b6ddc28
--- /dev/null
+++ b/site/src/pages/Setup/SetupPage.view.tsx
@@ -0,0 +1,273 @@
+import { useState } from "react";
+import { Button, Callout, Flex, Heading, Text, TextField, Select } from "@radix-ui/themes";
+import { AnimatePresence, motion } from "framer-motion";
+import { PageTransition } from "../../components/PageTransition";
+import { Loading } from "../../components/Loading";
+import { ThemeToggle } from "../../components/ThemeToggle";
+import { LanguageToggle } from "../../components/LanguageToggle";
+import { Icon } from "@iconify/react";
+import logo from "../../assets/logo.png";
+import { useTranslation } from "react-i18next";
+
+interface SetupViewProps {
+ email: string;
+ setEmail: (value: string) => void;
+ password: string;
+ setPassword: (value: string) => void;
+ confirmPassword: string;
+ setConfirmPassword: (value: string) => void;
+ language: "en" | "zh";
+ handleLanguageChange: (lang: "en" | "zh") => void;
+ loading: boolean;
+ error: string;
+ handleSubmit: (e: React.FormEvent) => void;
+ checking: boolean;
+}
+
+export function SetupView({
+ email,
+ setEmail,
+ password,
+ setPassword,
+ confirmPassword,
+ setConfirmPassword,
+ language,
+ handleLanguageChange,
+ loading,
+ error,
+ handleSubmit,
+ checking,
+}: SetupViewProps) {
+ const { t } = useTranslation();
+ const [showPassword, setShowPassword] = useState(false);
+ const [showConfirmPassword, setShowConfirmPassword] = useState(false);
+
+ if (checking) {
+ return ;
+ }
+
+ if (loading) {
+ return ;
+ }
+
+ return (
+
+
+ {/* Theme & Language Toggle Buttons */}
+
+
+
+
+
+ {/* Setup Form */}
+
+
+
+ );
+}
diff --git a/site/src/pages/Setup/index.tsx b/site/src/pages/Setup/index.tsx
new file mode 100644
index 0000000..2cedfdd
--- /dev/null
+++ b/site/src/pages/Setup/index.tsx
@@ -0,0 +1,10 @@
+import { useSetup } from "./useSetup";
+import { SetupView } from "./SetupPage.view";
+
+export function SetupPage() {
+ const setupState = useSetup();
+
+ return ;
+}
+
+export default SetupPage;
diff --git a/site/src/pages/Setup/useSetup.ts b/site/src/pages/Setup/useSetup.ts
new file mode 100644
index 0000000..806de94
--- /dev/null
+++ b/site/src/pages/Setup/useSetup.ts
@@ -0,0 +1,130 @@
+import { useState, useEffect } from "react";
+import { useNavigate } from "react-router-dom";
+import { toast } from "sonner";
+import { useTranslation } from "react-i18next";
+import { useSystemStore } from "../../stores/systemStore";
+
+export function useSetup() {
+ const { t, i18n } = useTranslation();
+ const navigate = useNavigate();
+ const { checkInitialized } = useSystemStore();
+ const [email, setEmail] = useState("");
+ const [password, setPassword] = useState("");
+ const [confirmPassword, setConfirmPassword] = useState("");
+ const [language, setLanguage] = useState<"en" | "zh">(
+ (localStorage.getItem("language") as "en" | "zh") || "en"
+ );
+ const [loading, setLoading] = useState(false);
+ const [error, setError] = useState("");
+ const [checking, setChecking] = useState(true);
+
+ useEffect(() => {
+ checkInitialized()
+ .then((initialized) => {
+ if (initialized) {
+ navigate("/", { replace: true });
+ } else {
+ setChecking(false);
+ }
+ })
+ .catch(() => {
+ setChecking(false);
+ });
+ }, []);
+
+ const handleLanguageChange = async (lang: "en" | "zh") => {
+ setLanguage(lang);
+ await i18n.changeLanguage(lang);
+ localStorage.setItem("language", lang);
+ };
+
+ const validateForm = () => {
+ if (!email || !password || !confirmPassword) {
+ setError(t("setup.error.allFieldsRequired", "All fields are required"));
+ return false;
+ }
+
+ if (password.length < 8) {
+ setError(t("setup.error.passwordTooShort", "Password must be at least 8 characters"));
+ return false;
+ }
+
+ if (password !== confirmPassword) {
+ setError(t("setup.error.passwordMismatch", "Passwords do not match"));
+ return false;
+ }
+
+ // Email validation
+ const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
+ if (!emailRegex.test(email)) {
+ setError(t("setup.error.invalidEmail", "Invalid email address"));
+ return false;
+ }
+
+ return true;
+ };
+
+ const handleSubmit = async (e: React.FormEvent) => {
+ e.preventDefault();
+ setError("");
+
+ if (!validateForm()) {
+ return;
+ }
+
+ setLoading(true);
+
+ try {
+ // Call backend API to initialize system (creates admin user and settings in transaction)
+ const response = await fetch("/api/system/initialize", {
+ method: "POST",
+ headers: {
+ "Content-Type": "application/json",
+ },
+ body: JSON.stringify({
+ email: email,
+ password: password,
+ language: language,
+ }),
+ });
+
+ const data = await response.json();
+
+ if (!response.ok) {
+ throw new Error(data.error || "Failed to initialize system");
+ }
+
+ console.log("System initialized:", data);
+
+ toast.success(t("setup.success", "System initialized successfully! Please login."));
+
+ // Redirect to login page
+ setTimeout(() => {
+ navigate("/login");
+ }, 1500);
+ } catch (err: any) {
+ console.error("Setup error:", err);
+ setError(
+ err.message ||
+ t("setup.error.setupFailed", "Failed to initialize system. Please try again.")
+ );
+ } finally {
+ setLoading(false);
+ }
+ };
+
+ return {
+ email,
+ setEmail,
+ password,
+ setPassword,
+ confirmPassword,
+ setConfirmPassword,
+ language,
+ handleLanguageChange,
+ loading,
+ error,
+ handleSubmit,
+ checking,
+ };
+}
diff --git a/site/src/pages/Version/VersionPage.view.tsx b/site/src/pages/Version/VersionPage.view.tsx
new file mode 100644
index 0000000..a6aa36a
--- /dev/null
+++ b/site/src/pages/Version/VersionPage.view.tsx
@@ -0,0 +1,115 @@
+import {
+ Box,
+ Card,
+ Flex,
+ Heading,
+ Text,
+ Badge,
+ Button,
+ Spinner,
+ Callout,
+ Table,
+} from "@radix-ui/themes";
+// import { MainLayout } from "../../layouts/MainLayout";
+import type { GithubRelease } from "./useVersion";
+
+interface VersionViewProps {
+ releases: GithubRelease[];
+ loading: boolean;
+ error: string | null;
+}
+
+export function VersionView({ releases, loading, error }: VersionViewProps) {
+ return (
+ <>
+
+
+
+ FRP Versions
+
+ Available releases from fatedier/frp
+
+
+ {loading && }
+
+
+ {error && (
+
+ {error}
+
+ )}
+
+ {!loading && !error && releases.length > 0 && (
+
+
+
+
+ Version
+ Release Date
+ Download
+ Github
+
+
+
+ {releases.map((release) => (
+
+
+
+ {release.tag_name}
+
+
+
+ {new Date(release.published_at).toLocaleDateString()}
+
+
+ {release.download_url ? (
+ window.open(release.download_url)}
+ >
+
+
+
+
+
+ Download for Current Arch
+
+ ) : (
+
+ Not found
+
+ )}
+
+
+ window.open(release.html_url)}
+ >
+ View on Github
+
+
+
+ ))}
+
+
+
+ )}
+
+ {!loading && !error && releases.length === 0 && (
+
+ No releases found.
+
+ )}
+
+ >
+ );
+}
diff --git a/site/src/pages/Version/index.tsx b/site/src/pages/Version/index.tsx
new file mode 100644
index 0000000..13007c0
--- /dev/null
+++ b/site/src/pages/Version/index.tsx
@@ -0,0 +1,10 @@
+import { useVersion } from "./useVersion";
+import { VersionView } from "./VersionPage.view";
+
+export function VersionPage() {
+ const state = useVersion();
+
+ return ;
+}
+
+export default VersionPage;
diff --git a/site/src/pages/Version/useVersion.ts b/site/src/pages/Version/useVersion.ts
new file mode 100644
index 0000000..7d4eca5
--- /dev/null
+++ b/site/src/pages/Version/useVersion.ts
@@ -0,0 +1,41 @@
+import { useState, useEffect } from "react";
+
+export interface GithubRelease {
+ tag_name: string;
+ name: string;
+ published_at: string;
+ html_url: string;
+ download_url: string;
+}
+
+export function useVersion() {
+ const [releases, setReleases] = useState([]);
+ const [loading, setLoading] = useState(true);
+ const [error, setError] = useState(null);
+
+ useEffect(() => {
+ async function fetchReleases() {
+ try {
+ setLoading(true);
+ const response = await fetch("/api/github/frp/releases");
+ if (!response.ok) {
+ throw new Error("Failed to fetch releases");
+ }
+ const data = await response.json();
+ setReleases(data);
+ } catch (err) {
+ setError(err instanceof Error ? err.message : "Unknown error");
+ } finally {
+ setLoading(false);
+ }
+ }
+
+ fetchReleases();
+ }, []);
+
+ return {
+ releases,
+ loading,
+ error,
+ };
+}
diff --git a/site/src/stores/systemStore.ts b/site/src/stores/systemStore.ts
new file mode 100644
index 0000000..30dce77
--- /dev/null
+++ b/site/src/stores/systemStore.ts
@@ -0,0 +1,83 @@
+import { create } from "zustand";
+import { persist } from "zustand/middleware";
+
+interface SystemSettings {
+ initialized: boolean;
+ defaultLanguage: "en" | "zh";
+}
+
+interface SystemStore {
+ settings: SystemSettings | null;
+ isLoading: boolean;
+ error: string | null;
+
+ // Actions
+ checkInitialized: () => Promise;
+ getSettings: () => Promise;
+ setSettings: (settings: SystemSettings) => void;
+ clearSettings: () => void;
+}
+
+export const useSystemStore = create()(
+ persist(
+ (set, _get) => ({
+ settings: null,
+ isLoading: false,
+ error: null,
+
+ checkInitialized: async () => {
+ set({ isLoading: true, error: null });
+ try {
+ const response = await fetch("/api/system/initialized");
+ const data = await response.json();
+
+ if (!response.ok) {
+ throw new Error(data.error || "Failed to check initialization");
+ }
+
+ return data.initialized;
+ } catch (error: any) {
+ set({ error: error.message });
+ return false;
+ } finally {
+ set({ isLoading: false });
+ }
+ },
+
+ getSettings: async () => {
+ set({ isLoading: true, error: null });
+ try {
+ const response = await fetch("/api/system/settings");
+ const data = await response.json();
+
+ if (!response.ok) {
+ throw new Error(data.error || "Failed to get settings");
+ }
+
+ set({
+ settings: {
+ initialized: data.initialized,
+ defaultLanguage: data.general?.defaultLanguage || "en",
+ },
+ });
+ } catch (error: any) {
+ set({ error: error.message });
+ } finally {
+ set({ isLoading: false });
+ }
+ },
+
+ setSettings: (settings) => {
+ set({ settings });
+ },
+
+ clearSettings: () => {
+ set({ settings: null, error: null });
+ },
+ }),
+ {
+ name: "system-storage",
+ partialize: (state) => ({ settings: state.settings }),
+ }
+ )
+);
diff --git a/site/tsconfig.app.json b/site/tsconfig.app.json
new file mode 100644
index 0000000..a9b5a59
--- /dev/null
+++ b/site/tsconfig.app.json
@@ -0,0 +1,28 @@
+{
+ "compilerOptions": {
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.app.tsbuildinfo",
+ "target": "ES2022",
+ "useDefineForClassFields": true,
+ "lib": ["ES2022", "DOM", "DOM.Iterable"],
+ "module": "ESNext",
+ "types": ["vite/client"],
+ "skipLibCheck": true,
+
+ /* Bundler mode */
+ "moduleResolution": "bundler",
+ "allowImportingTsExtensions": true,
+ "verbatimModuleSyntax": true,
+ "moduleDetection": "force",
+ "noEmit": true,
+ "jsx": "react-jsx",
+
+ /* Linting */
+ "strict": true,
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "erasableSyntaxOnly": true,
+ "noFallthroughCasesInSwitch": true,
+ "noUncheckedSideEffectImports": true
+ },
+ "include": ["src"]
+}
diff --git a/site/tsconfig.json b/site/tsconfig.json
new file mode 100644
index 0000000..1ffef60
--- /dev/null
+++ b/site/tsconfig.json
@@ -0,0 +1,7 @@
+{
+ "files": [],
+ "references": [
+ { "path": "./tsconfig.app.json" },
+ { "path": "./tsconfig.node.json" }
+ ]
+}
diff --git a/site/tsconfig.node.json b/site/tsconfig.node.json
new file mode 100644
index 0000000..8a67f62
--- /dev/null
+++ b/site/tsconfig.node.json
@@ -0,0 +1,26 @@
+{
+ "compilerOptions": {
+ "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
+ "target": "ES2023",
+ "lib": ["ES2023"],
+ "module": "ESNext",
+ "types": ["node"],
+ "skipLibCheck": true,
+
+ /* Bundler mode */
+ "moduleResolution": "bundler",
+ "allowImportingTsExtensions": true,
+ "verbatimModuleSyntax": true,
+ "moduleDetection": "force",
+ "noEmit": true,
+
+ /* Linting */
+ "strict": true,
+ "noUnusedLocals": true,
+ "noUnusedParameters": true,
+ "erasableSyntaxOnly": true,
+ "noFallthroughCasesInSwitch": true,
+ "noUncheckedSideEffectImports": true
+ },
+ "include": ["vite.config.ts"]
+}
diff --git a/site/vite.config.ts b/site/vite.config.ts
new file mode 100644
index 0000000..afdea62
--- /dev/null
+++ b/site/vite.config.ts
@@ -0,0 +1,65 @@
+import { defineConfig } from 'vite'
+import react from '@vitejs/plugin-react'
+import tailwindcss from '@tailwindcss/vite'
+
+// https://vite.dev/config/
+export default defineConfig({
+ plugins: [react(), tailwindcss()],
+ server: {
+ host: '0.0.0.0',
+ proxy: {
+ '/api': {
+ target: 'http://127.0.0.1:8090',
+ changeOrigin: true,
+ }
+ }
+ },
+ build: {
+ // 代码分割优化
+ rollupOptions: {
+ output: {
+ manualChunks: {
+ // 将 React 相关库单独打包
+ 'react-vendor': ['react', 'react-dom', 'react-router-dom'],
+ // UI 组件库单独打包
+ 'ui-vendor': ['@radix-ui/themes', 'sonner', 'framer-motion'],
+ // 图表库单独打包
+ 'chart-vendor': ['recharts'],
+ // 工具库单独打包
+ 'utils-vendor': ['i18next', 'react-i18next', 'pocketbase'],
+ },
+ // 优化资源文件名
+ chunkFileNames: 'assets/js/[name]-[hash].js',
+ entryFileNames: 'assets/js/[name]-[hash].js',
+ assetFileNames: 'assets/[ext]/[name]-[hash].[ext]',
+ },
+ },
+ // 压缩优化
+ minify: 'terser',
+ terserOptions: {
+ compress: {
+ drop_console: true, // 移除 console
+ drop_debugger: true, // 移除 debugger
+ pure_funcs: ['console.log'], // 移除特定函数
+ },
+ },
+ // 启用 CSS 代码分割
+ cssCodeSplit: true,
+ // 设置 chunk 大小警告限制
+ chunkSizeWarningLimit: 600,
+ // 生成 sourcemap(生产环境可以设为 false)
+ sourcemap: false,
+ },
+ // 依赖优化
+ optimizeDeps: {
+ include: [
+ 'react',
+ 'react-dom',
+ 'react-router-dom',
+ '@radix-ui/themes',
+ 'pocketbase',
+ 'i18next',
+ 'react-i18next',
+ ],
+ },
+})