* 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>
2.1 KiB
2.1 KiB
Navigation Menu Test
Quick Test Guide
To verify that the S3 Buckets link appears in the navigation menu:
1. Start the Admin Server
# Start with minimal setup
weed admin -port=23646 -masters=localhost:9333 -filer=localhost:8888
# Or with dummy values for testing UI only
weed admin -port=23646 -masters=dummy:9333 -filer=dummy:8888
2. Open Browser
Navigate to: http://localhost:23646
3. Check Navigation Menu
Look for the sidebar navigation on the left side. You should see:
CLUSTER Section:
- Admin
- Cluster
- Volumes
MANAGEMENT Section:
- S3 Buckets ← This should be visible!
- File Browser
- Metrics
- Logs
SYSTEM Section:
- Configuration
- Maintenance
4. Test S3 Buckets Link
- Click on "S3 Buckets" in the sidebar
- Should navigate to
/s3/buckets - Should show the S3 bucket management page
- The "S3 Buckets" menu item should be highlighted as active
5. Expected Behavior
- Menu item has cube icon:
📦 S3 Buckets - Link points to
/s3/buckets - Active state highlighting works
- Page loads S3 bucket management interface
Troubleshooting
If the S3 Buckets link is not visible:
-
Check Template Generation:
cd weed/admin templ generate -
Rebuild Binary:
cd ../.. go build -o weed weed/weed.go -
Check Browser Console:
- Open Developer Tools (F12)
- Look for any JavaScript errors
- Check Network tab for failed requests
-
Verify File Structure:
ls -la weed/admin/view/layout/layout_templ.go -
Check Server Logs:
- Look for any error messages when starting admin server
- Check for template compilation errors
Files Modified
weed/admin/view/layout/layout.templ- Added S3 Buckets menu itemweed/admin/static/js/admin.js- Updated navigation highlightingweed/command/admin.go- Added S3 routes
Expected Navigation Structure
<ul class="nav flex-column">
<li class="nav-item">
<a class="nav-link" href="/s3/buckets">
<i class="fas fa-cube me-2"></i>S3 Buckets
</a>
</li>
<!-- ... other menu items ... -->
</ul>