Lance Pioch
4f5e9a6c30
Merge branch 'main' into issue/68
...
# Conflicts:
# app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php
# app/Filament/Resources/ServerResource/Pages/CreateServer.php
# app/Filament/Resources/ServerResource/Pages/EditServer.php
# app/Filament/Resources/ServerResource/RelationManagers/AllocationsRelationManager.php
# app/Filament/Resources/UserResource/Pages/EditProfile.php
# app/Models/Node.php
# app/Models/Objects/DeploymentObject.php
# app/Services/Allocations/AssignmentService.php
# app/Services/Servers/ServerCreationService.php
# app/Services/Servers/TransferServerService.php
# pint.json
2024-10-20 15:14:08 -04:00
Lance Pioch
64943aa50c
Merge branch 'main' into lance/pint-fixes
2024-10-20 11:53:10 -04:00
Lance Pioch
81c75f7966
Merge branch 'main' into lance/phpstan-return-types
2024-10-20 11:39:04 -04:00
Lance Pioch
2be8168468
Merge pull request #637 from pelican-dev/lance/enforce-di
...
Enforce Dependency Injection
2024-10-20 10:03:14 -04:00
Lance Pioch
71aed151d9
Redirect to configuration file tab after creating the node
2024-10-19 22:11:24 -04:00
Lance Pioch
deb6603840
Revert "Add concat_space rule"
...
This reverts commit 96acd268bee7005fe1691b572a4674575604d437.
2024-10-19 21:14:41 -04:00
Lance Pioch
c7a307af6e
Enforce return and parameter types
2024-10-19 21:02:49 -04:00
Lance Pioch
96acd268be
Add concat_space rule
2024-10-19 18:30:34 -04:00
Lance Pioch
c0a41acf1f
Add class_attributes_separation
2024-10-19 18:29:44 -04:00
Lance Pioch
54ea55d426
Enforce DI
2024-10-19 17:22:03 -04:00
Lance Pioch
a42cb193a3
Thank you merge conflict
2024-10-18 22:45:54 -04:00
Lance Pioch
5353d38302
Merge branch 'main' into issue/68
...
# Conflicts:
# app/Filament/Resources/NodeResource/Pages/CreateNode.php
# app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php
# app/Filament/Resources/NodeResource/RelationManagers/NodesRelationManager.php
# app/Filament/Resources/ServerResource/Pages/CreateServer.php
# app/Filament/Resources/ServerResource/Pages/EditServer.php
# app/Filament/Resources/ServerResource/Pages/ListServers.php
# app/Filament/Resources/ServerResource/RelationManagers/AllocationsRelationManager.php
# app/Filament/Resources/UserResource/RelationManagers/ServersRelationManager.php
# app/Transformers/Api/Client/ServerTransformer.php
# composer.lock
# config/panel.php
2024-10-18 21:18:48 -04:00
Boy132
207d875df8
Fix default value for dns check on EditNode ( #635 )
2024-10-18 08:24:49 +02:00
Boy132
3c5da1cd70
Replace all number_format
with Number::format
( #617 )
2024-10-12 16:12:56 +02:00
Boy132
b003404aea
Collection of small admin area changes ( #604 )
...
* enable tags for nodes
* update icon for cpu column
* disable inline for "force outgoing ip" label
* change label for database hosts resource
* add custom empty state for database hosts & api keys
* add icons to egg tabs
* fix typo
* rename node "Automatic Allocation" to avoid confusion
* run code cleanup
* remove regex for node name
* only check count for application api keys
* replace "New" with "Create"
* change sidebar width to fit "Database Hosts"
2024-10-04 01:15:08 +02:00
Boy132
fc643f57f9
Admin Roles ( #502 )
...
* add spatie/permissions
* add policies
* add role resource
* add root admin role handling
* replace some "root_admin" with function
* add model specific permissions
* make permission selection nicer
* fix user creation
* fix tests
* add back subuser checks in server policy
* add custom model for role
* assign new users to role if root_admin is set
* add api for roles
* fix phpstan
* add permissions for settings page
* remove "restore" and "forceDelete" permissions
* add user count to list
* prevent deletion if role has users
* update user list
* fix server policy
* remove old `root_admin` column
* small refactor
* fix tests
* forgot can checks here
* forgot use
* disable editing own roles & disable assigning root admin
* don't allow to rename root admin role
* remove php bombing exception handler
* fix role assignment when creating a user
* fix disableOptionWhen
* fix missing `root_admin` attribute on react frontend
* add permission check for bulk delete
* rename viewAny to viewList
* improve canAccessPanel check
* fix admin not displaying for non-root admins
* make sure non root admins can't edit root admins
* fix import
* fix settings page permission check
* fix server permissions for non-subusers
* fix settings page permission check v2
* small cleanup
* cleanup config file
* move consts from resouce into enum & model
* Update database/migrations/2024_08_01_114538_remove_root_admin_column.php
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
* fix config
* fix phpstan
* fix phpstan 2.0
---------
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
2024-09-21 12:27:41 +02:00
Lance Pioch
0a6b846230
Merge branch 'main' into issue/68
...
# Conflicts:
# app/Filament/Resources/ServerResource/Pages/CreateServer.php
# app/Filament/Resources/ServerResource/Pages/EditServer.php
# app/Filament/Resources/ServerResource/RelationManagers/AllocationsRelationManager.php
# app/Services/Allocations/AssignmentService.php
# database/Seeders/eggs/minecraft/egg-bungeecord.json
# database/Seeders/eggs/minecraft/egg-forge-minecraft.json
# database/Seeders/eggs/minecraft/egg-paper.json
# database/Seeders/eggs/minecraft/egg-sponge-sponge-vanilla.json
# database/Seeders/eggs/minecraft/egg-vanilla-minecraft.json
# database/Seeders/eggs/rust/egg-rust.json
# database/Seeders/eggs/source-engine/egg-counter-strike-global-offensive.json
# database/Seeders/eggs/source-engine/egg-custom-source-engine-game.json
# database/Seeders/eggs/source-engine/egg-garrys-mod.json
# database/Seeders/eggs/source-engine/egg-insurgency.json
# database/Seeders/eggs/source-engine/egg-team-fortress2.json
# database/Seeders/eggs/voice-servers/egg-mumble-server.json
# database/Seeders/eggs/voice-servers/egg-teamspeak3-server.json
2024-09-18 22:21:55 -04:00
MartinOscar
56b4938dc2
Fix #489 ( #490 )
...
* Fix #489
* Update app/Filament/Resources/NodeResource/Pages/EditNode.php
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
* Update app/Filament/Resources/NodeResource/Pages/EditNode.php
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
* Update app/Filament/Resources/NodeResource/Pages/EditNode.php
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
---------
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
2024-07-17 16:22:12 -04:00
Charles
1fdff43ae7
Add Node CPU/Memory Graphs ( #459 )
...
* Update Node Stats
Soon TM
* Update
* Make these smaller
* Change graphs
* Remove this.
Didn't work anyways.
* Update Graphs
* Use User TZ and config var
* Fix math
* Change to per thread.
2024-07-14 16:48:14 -04:00
Lance Pioch
f2eca17480
Use constants
2024-07-02 11:50:46 -04:00
Lance Pioch
d86843977b
Run pint
2024-07-01 14:55:17 -04:00
Lance Pioch
5b468c21ae
Merge branch 'main' into issue/68
...
# Conflicts:
# app/Filament/Resources/DatabaseHostResource/Pages/CreateDatabaseHost.php
# app/Filament/Resources/DatabaseHostResource/Pages/EditDatabaseHost.php
# app/Filament/Resources/EggResource/RelationManagers/ServersRelationManager.php
# app/Filament/Resources/NodeResource.php
# app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php
# app/Filament/Resources/NodeResource/RelationManagers/NodesRelationManager.php
# app/Filament/Resources/ServerResource/Pages/CreateServer.php
2024-07-01 14:54:12 -04:00
notCharles
40819cf171
Use correct action
2024-06-29 18:02:53 -04:00
Charles
82c0568129
Reduce Reuse ( #443 )
...
* Reduce Reuse
Reduce the repetitiveness of \Form\Component\Blah along with all the others...
* PHPStan Fix
2024-06-29 17:38:18 -04:00
Lance Pioch
45fcc2a09a
Merge branch 'main' into issue/68
...
# Conflicts:
# app/Filament/Resources/DatabaseHostResource/Pages/CreateDatabaseHost.php
# app/Filament/Resources/DatabaseHostResource/Pages/EditDatabaseHost.php
# app/Filament/Resources/ServerResource/Pages/CreateServer.php
# app/Filament/Resources/ServerResource/Pages/EditServer.php
# app/Filament/Resources/ServerResource/Pages/ListServers.php
# app/Http/Requests/Admin/Node/AllocationFormRequest.php
# app/Http/Requests/Api/Application/Allocations/StoreAllocationRequest.php
# app/Models/AuditLog.php
# app/Models/Server.php
2024-06-26 21:52:05 -04:00
MartinOscar
276b51f477
Remove locationId in MakeNodeCommand ( #405 )
...
* Concat + Default
* Concat + Default + Enforce scheme
* fix typo
---------
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
2024-06-17 08:51:04 -04:00
MartinOscar
87dc8066c9
Update required ( #401 )
2024-06-16 14:01:27 -04:00
MartinOscar
aa08e774a1
Fix varchar(191) by replacing with 255 #135 ( #376 )
...
* Add Nullable
* Edit filament & AppServiceProvider
* Pint
* Patch tests
* Actually patching tests
* Actually patching tests
* Remove length
* Remove defaultStringLength
* Let’s see the differences
---------
Co-authored-by: Lance Pioch <git@lance.sh>
2024-06-16 13:56:18 -04:00
Lance Pioch
0bd2935885
Merge branch 'main' into issue/68
...
# Conflicts:
# app/Filament/Resources/EggResource/RelationManagers/ServersRelationManager.php
# app/Filament/Resources/NodeResource/RelationManagers/AllocationsRelationManager.php
# app/Filament/Resources/NodeResource/RelationManagers/NodesRelationManager.php
# app/Filament/Resources/ServerResource/Pages/CreateServer.php
# app/Filament/Resources/ServerResource/Pages/ListServers.php
# app/Filament/Resources/ServerResource/RelationManagers/AllocationsRelationManager.php
# app/Filament/Resources/UserResource/RelationManagers/ServersRelationManager.php
# app/Models/Allocation.php
# app/Models/ApiKey.php
# app/Models/Server.php
# app/Models/User.php
2024-06-15 05:21:58 -04:00
Lance Pioch
36e2fa8e2b
Wip
2024-06-13 11:31:58 -04:00
Boy132
cd4fc1a95d
Add config variable to change between MiB
and MB
( #374 )
2024-06-13 08:22:29 +02:00
Djordy Koert
1d66d4c320
PHPStan workflow + PHPStan fixes ( #339 )
...
* add PHPStan to workflow
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
Co-authored-by: Djordy <djordy@lap-0394-djordy-koert.local>
Co-authored-by: Lance Pioch <lancepioch@gmail.com>
2024-06-11 15:00:51 -04:00
MartinOscar
58bfa12280
Cleanup unused vars ( #366 )
...
* Update app/Exceptions/Handler.php
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
2024-06-11 12:22:37 -04:00
MartinOscar
8e5660a1b9
Add default for Automatic Allocation in CreateNode ( #367 )
...
* Update CreateNode.php
* Update app/Filament/Resources/NodeResource/Pages/CreateNode.php
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
2024-06-11 12:21:51 -04:00
Lance Pioch
0895bd2be5
Remove relation managers
2024-06-10 20:35:36 -04:00
Charles
9114685680
Use Wizard for server/node create pages ( #352 )
...
* Update create server flow
* Update create node & buttons
* Remove duplicate
* Composer Update
Update some of the packages <3
* Small adjustments
* pint
---------
Co-authored-by: Lance Pioch <git@lance.sh>
2024-06-09 15:07:33 -04:00
Boy132
8f2261f6cd
add alias for node sftp address
2024-06-04 09:17:36 +02:00
Lance Pioch
5a3b50b31f
Apply suggestions from code review
2024-06-03 10:34:08 -04:00
MartinOscar
f3171939a4
Update AllocationsRelationManager.php
...
Remove useless range order
2024-06-03 07:11:09 +02:00
MartinOscar
189d564f87
Update AllocationsRelationManager.php
2024-06-03 06:30:05 +02:00
Lance Pioch
8eb2c23420
Fix creating new node
2024-05-31 16:03:12 -04:00
Charles
97ac0fe54b
Add Reset Daemon Key Button ( #298 ) closes #292
2024-05-31 01:41:21 -04:00
notCharles
e980877bbc
Fix Node Creation
...
Add missing defaults
2024-05-29 18:28:21 -04:00
Boy132
4dd833562b
Add CPU limit to node ( #239 ) to resolve #233
...
* add node cpu limit to backend
* update makenodecommand
* add node cpu limit to frontend
* add migration and update mysql schema
* run pint
* fix typo in mysql schema
* forgot this assert
* forgot to setCpu here
* run pint
* adjust migration
* Fix db migration
* make cpu optional
* set default value for cpu in node deployment
* update mysql schema
---------
Co-authored-by: notCharles <charles@pelican.dev>
2024-05-22 02:34:43 -04:00
notCharles
0c61a63191
Add id to allocation table
2024-05-19 20:23:59 -04:00
notCharles
597f74f105
reload form data after save
...
closes https://github.com/pelican-dev/panel/issues/251
2024-05-18 18:08:55 -04:00
notCharles
5344d99a40
Update Mobile View
2024-05-18 17:47:33 -04:00
Boy132
921b76f1e1
add default for disk/ memory and overallocation
2024-05-16 08:43:09 +02:00
notCharles
98ba2c1b8b
Update node pages
2024-05-14 19:22:14 -04:00
Boy132
af797b3018
run pint
2024-05-14 11:40:01 +02:00