mirror of
https://github.com/pelican-dev/panel.git
synced 2026-05-04 18:00:48 +03:00
[PR #1563] [MERGED] Cleanup formatResource
#1456
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/pelican-dev/panel/pull/1563
Author: @Boy132
Created: 7/29/2025
Status: ✅ Merged
Merged: 8/1/2025
Merged by: @Boy132
Base:
main← Head:boy132/fix-format-resource📝 Commits (7)
a54b397cleanup formatResourcefefa4e6bring backServerResourceTypeto remove magic string9376df7fix typosf5f0428fix typo part two9a250c5do not convert cpu limit...24b9aeaanother typo...80d7daaadd "loading" status to placeholder📊 Changes
6 files changed (+80 additions, -45 deletions)
View changed files
📝
app/Enums/ServerResourceType.php(+45 -4)📝
app/Enums/ServerState.php(+1 -4)📝
app/Filament/App/Resources/ServerResource/Pages/ListServers.php(+7 -7)📝
app/Livewire/ServerEntry.php(+9 -6)📝
app/Models/Server.php(+11 -17)📝
resources/views/livewire/server-entry.blade.php(+7 -7)📄 Description
Simplifies
formatResourceand also fixes wrong unit conversion for limits when using decimal prefix.(Also updates the css of the placeholder ServerEntry to match the "real" entry.)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.