aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2025-07-01 01:28:09 -0700
committerGitHub <noreply@github.com>2025-07-01 01:28:09 -0700
commit1defee3d682d86c7e0cbc7db7ebdb9cae872a471 (patch)
treedae266bee79c36a74214a47d3d9e9274b322d49d /Makefile
parente5adc3872a79e062826a387e1e2bb68196f14014 (diff)
downloadseaweedfs-1defee3d682d86c7e0cbc7db7ebdb9cae872a471.tar.xz
seaweedfs-1defee3d682d86c7e0cbc7db7ebdb9cae872a471.zip
Add admin component (#6928)
* init version * relocate * add s3 bucket link * refactor handlers into weed/admin folder * fix login logout * adding favicon * remove fall back to http get topology * grpc dial option, disk total capacity * show filer count * fix each volume disk usage * add filers to dashboard * adding hosts, volumes, collections * refactor code and menu * remove "refresh" button * fix data for collections * rename cluster hosts into volume servers * add masters, filers * reorder * adding file browser * create folder and upload files * add filer version, created at time * remove mock data * remove fields * fix submenu item highlighting * fix bucket creation * purge files * delete multiple * fix bucket creation * remove region from buckets * add object store with buckets and users * rendering permission * refactor * get bucket objects and size * link to file browser * add file size and count for collections page * paginate the volumes * fix possible SSRF https://github.com/seaweedfs/seaweedfs/pull/6928/checks?check_run_id=45108469801 * Update weed/command/admin.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update weed/command/admin.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix build * import * remove filer CLI option * remove filer option * remove CLI options --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile42
1 files changed, 38 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 509f23e85..09db0766b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,19 +1,20 @@
-.PHONY: test
+.PHONY: test admin-generate admin-build admin-clean admin-dev admin-run admin-test admin-fmt admin-help
BINARY = weed
+ADMIN_DIR = weed/admin
SOURCE_DIR = .
debug ?= 0
all: install
-install:
+install: admin-generate
cd weed; go install
warp_install:
go install github.com/minio/warp@v0.7.6
-full_install:
+full_install: admin-generate
cd weed; go install -tags "elastic gocdk sqlite ydb tarantool tikv rclone"
server: install
@@ -33,5 +34,38 @@ benchmark: install warp_install
benchmark_with_pprof: debug = 1
benchmark_with_pprof: benchmark
-test:
+test: admin-generate
cd weed; go test -tags "elastic gocdk sqlite ydb tarantool tikv rclone" -v ./...
+
+# Admin component targets
+admin-generate:
+ @echo "Generating admin component templates..."
+ @cd $(ADMIN_DIR) && $(MAKE) generate
+
+admin-build: admin-generate
+ @echo "Building admin component..."
+ @cd $(ADMIN_DIR) && $(MAKE) build
+
+admin-clean:
+ @echo "Cleaning admin component..."
+ @cd $(ADMIN_DIR) && $(MAKE) clean
+
+admin-dev:
+ @echo "Starting admin development server..."
+ @cd $(ADMIN_DIR) && $(MAKE) dev
+
+admin-run:
+ @echo "Running admin server..."
+ @cd $(ADMIN_DIR) && $(MAKE) run
+
+admin-test:
+ @echo "Testing admin component..."
+ @cd $(ADMIN_DIR) && $(MAKE) test
+
+admin-fmt:
+ @echo "Formatting admin component..."
+ @cd $(ADMIN_DIR) && $(MAKE) fmt
+
+admin-help:
+ @echo "Admin component help..."
+ @cd $(ADMIN_DIR) && $(MAKE) help