* Remove open in new tab since both are on filament now.
Removing the open in new tab since both are on filament now. And the tenant: null was function default so not needed aswell
* Rework permission tab loading
Reworked permission tab loading to make it easier to expand on it in the future. This is way more friendly if extensions are planned in the future.
* Rework permission tab loading
Reworked permission tab loading to make it easier to expand on it in the future. This is way more friendly if extensions are planned in the future.
* Rework permission tab loading
Reworked permission tab loading to make it easier to expand on it in the future. This is way more friendly if extensions are planned in the future.
* Update UserResource.php
Used wrong name. It's not the name, the label has to be checked there.
* Fix: wrong name used
Used wrong name. It's not the name, the label has to be checked there.
* Update permission loading
Moved permission list to app/Models/Permission.php and made UserResource.php and ListUsers.php use it.
* Fix Pint and PHPStan error
Added comments
* Update array key
Updated array key using the lowercase name. Suggested by https://github.com/Boy132
* Correct array key
Updated array key using the lowercase. Suggested by https://github.com/Boy132
* Revert/correct array key
Updated array key using the lowercase and the correct label.
* Add 'user' key
In the old $permission array was user an entry witch is missing in permissionTabs()
* Style and return
Added @return and removed empty lines
* pin
fix pint
* fix pint
remove @return
* fix pint
add () since pint is still not happy
* remove mb_strtolower
mb_strtolower is not necessary
* remove schema for control
remove ->schema for control tab.
* Remove import
Remove unused import
* correct translation key
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
* make columns optional,
checkboxList => columns is now optional and default to 2
* move user and control registration
removed control registration since it was duplicate and move user registration to permissionTabs
* update @return on permissionTabs()
* Fix array key warning
* simplify permissions data
* revert this
* fix edit modal
* update icons
---------
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
Co-authored-by: Boy132 <mail@boy132.de>
* Just skip this table because it no longer exists
* Add postgresql
* This no longer needs to be there
* These are the same output in mysql, but different in postgresql
* Fix these migrations for postgresql
* This table no longer exists
* This is expected to be a json column for json operations, required for postgresql
* Shoot for the stars
* Fix pint
* Why was this missing
* Updates
* Restore this
* This needs to be explicit
* Don’t like strings
* Fix these classes
* Use different method to compare dates
* Apparently postgresql doesn’t like case insensitivity
* Postgresql orders it backwards
* Ordered different by postgresql
* Unnecessary and breaking
* Make sure the order is correct for postresql
* Fix this with the order too
* Remove this
* Force email to be lowercased
* Update app/Models/User.php
* 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>
* Add address field to display `host:port` to enduser on `ListDatabases` & `EditServer`
* Add `CopyAction` to `EditServer`
* Update databaseHost `display_name_help`
* Replace `string` with `enum`
* Add title
* Allow sendCommand on `Starting` or `Running` servers
* refactor: Use Filament interfaces
* Use `getLabel` instead of `str->headline`
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
---------
Co-authored-by: Boy132 <Boy132@users.noreply.github.com>
* 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>
* Convert route options to fluent methods
Laravel 8 adopts the tuple syntax for controller actions. Since the old options array is incompatible with this syntax, Shift converted them to use modern, fluent methods.
* Slim `lang` files
* Shift core files
* Validate via object directly within Controllers
* Use `Gate` facade for controller authorization
* Dispatch jobs directly
* Remove base controller inheritance
* Default config files
In an effort to make upgrading the constantly changing config files easier, Shift defaulted them and merged your true customizations - where ENV variables may not be used.
* Set new `ENV` variables
* Add new Laravel `composer run dev` script
* Add `storage/app/private` folder
* Bump Composer dependencies
* Convert `$casts` property to method
* Adopt Laravel type hints
* Shift cleanup
* Apply suggestions from code review
Co-authored-by: MartinOscar <40749467+rmartinoscar@users.noreply.github.com>
* Add old key as backup
* Update composer
* Remove extra line
* Update this
---------
Co-authored-by: Shift <shift@laravelshift.com>
Co-authored-by: MartinOscar <40749467+rmartinoscar@users.noreply.github.com>
* Fix copy paste AllocationsRelationManager
* We shouldn't let the user know if the user is correct but the password isn't
* Add missing `trans()` `EditServer`
* Add missing `trans()` User `ServersRelationManager`
* Replace every `__()` with `trans()` helper
* Fix `exceptions` `User` Model
* Replace `Translator->get()` with `trans()` helper
* Revert "We shouldn't let the user know if the user is correct but the password isn't"
This reverts commit e156ee4b38e9e969662a532648c78fdc1e9b0166.
that's stock laravel, therefore it needs to stay
* 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
* handle "server:crashed" log
* update activity log list
* add event filter
* add email to user column
* fix phpstan
* only show the email if the actor is the server owner/ a subuser or if the viewing user is an admin
* Apply same logic from ViewAction & make sure user is admi for url
* Add pagination to avoid showing 2000 records at once
* update can check & pagination
---------
Co-authored-by: RMartinOscar <40749467+RMartinOscar@users.noreply.github.com>
* fix translations for activity logs
* add backwards compatibility for old logs
* update lang file
* small cleanup
* fix singular/ plural for "file"
* fix for "rename" + disable bulk move (because it's not working)
* 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>
* add alert banner
* replace old server conflict banner with alert banner
* improve color and icon size
* add alert for websocket errors
* update file loading error to alert banner
* remove old events
* add back `console-status` event
* move @php block under @isset
* remove phpstan ignore
so I'm not getting force choked