* Make sure we are talking to the right wings using `getSystemInformation` as a gate keeper
* Re use method
Co-authored-by: Lance Pioch <git@lance.sh>
---------
Co-authored-by: Lance Pioch <git@lance.sh>
* Not found property rule
* Make these “better”
* Day 1
* Day 2
* Day 3
* Dat 4
* Remove disabled check
* Day 4 continued
* Run pint
* Final changes hopefully
* Pint fixes
* Fix again
* Reset these
* Update app/Filament/Admin/Pages/Health.php
Co-authored-by: MartinOscar <40749467+rmartinoscar@users.noreply.github.com>
* Update app/Traits/CheckMigrationsTrait.php
Co-authored-by: MartinOscar <40749467+rmartinoscar@users.noreply.github.com>
---------
Co-authored-by: MartinOscar <40749467+rmartinoscar@users.noreply.github.com>
* Add php 8.4
* Update ide helper
* Add php 8.4
* Update laravel sanctum
* Update laravel framework
* Hash rounds were increased
* This is always false
* Extend model now
* This does nothing
* Move model validation methods to trait
* Remove base model
* Backup routes were previously referenced by uuids
* Remove commented code
* Upgrade laravel/framework
* Fix migration
* Update ide helper
* Update sanctum
* Add version to composer
* Add this back in, fixed
* Make this protected to be safer
* Fix these
* Update phpstan
* Transform these into their identifiers instead
* Fix custom rule
* License is wrong
* Update these
* Pint fixes
* Fix this
* Consolidate these
* Never supported PHP 7
* Better evaluation
* Fixes
* Don’t need ignore
* Replace trait with service
* Subusers are simply the many to many relationship between Servers and Users
* Adjust to remove ignores
* Use new query builder instead!
* wip
* Update composer
* Quick fixes
* Use realtime facade
* Small fixes
* Convert to static to avoid new
* Update to statics
* Don’t modify protected properties directly
* Run pint
* Change to correct method
* Give up and use the facade
* Make sure this route is available
* Filament hasn’t been loaded yet
* This can be readonly
* Typehint
* These are no longer used
* Quick fixes
* Need doc block help
* Always true
* We use caddy with docker
* Pint
* Fix phpstan issues
* Remove unused import
---------
Co-authored-by: MartinOscar <40749467+RMartinOscar@users.noreply.github.com>
* Change TextInputColumn to SelectColumn
* Discard cache if wings is offline
* Return 0.0.0.0 instead of an empty array
* Adjustment & remove dns resolve
* Fix 500 on duplicate ports
This should also address N+1 issues from the last PR
* Combine into one method
* Pint
* Add missing type
* Add 0.0.0.0
* Add notifications to help the user
* Pint
* Too verbose
* Show notification here
* Simplify code
* Reset the ports if the ip changes
* Don’t limit these anymore
---------
Co-authored-by: Lance Pioch <git@lance.sh>
* Add Create Database btn on admin side
* Remove unused function
* readd function
* replace refreshform function
* add authorize, remove database limit check
* add random words, use proper name function, catch exceptions on creation
* add validation, match old client area more
* Add more authorize to Database tab
* Add confirmation to delete
* make password hidden / revealable
* better clarification
* Set default and remove placeholder.
* Remove server import, add database model to auth
* Make same changes for the database host page
* Update app/Filament/Resources/ServerResource/Pages/EditServer.php
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
* Update app/Filament/Resources/DatabaseHostResource/RelationManagers/DatabasesRelationManager.php
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
* Update app/Filament/Resources/DatabaseHostResource/RelationManagers/DatabasesRelationManager.php
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
* Remove each hidden
* Return nothing if user has no perms
* This is the way... Im done messing with it...
* Fix view permission for relationship manager
* Update app/Filament/Resources/DatabaseHostResource/RelationManagers/DatabasesRelationManager.php
* Pint
---------
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
Co-authored-by: MartinOscar <40749467+RMartinOscar@users.noreply.github.com>
* use RESOURCE_NAME for requests
* use RESOURCE_NAME for transformers
* add permissions field to api key
* add migration for new permissions field
* update tests
* remove debug log
* set column type to "json"
* remove default attribute to fix tests
* fix default value for permissions
* fix after merge
* fix after merge
* allow to "register" custom permissions
* add "role" to default resource names
* fix after merge
* fix phpstan
* fix migrations
* 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"
* 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>