Skip to content

v0.3.3 #39

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,16 @@

---

## [0.3.3] - 2025-02-10

### Changed
- Default color scheme is now set to light mode.

### Fixed
- Fixed cache issue in the app:configuration-system command.

---

## [0.3.2] - 2025-02-02

### Added
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pteroca/panel",
"description": "PteroCA.com is a free, open-source client area and management panel designed specifically for Pterodactyl server users and hosting providers. The platform simplifies and automates server management with a user-friendly interface and robust billing features.",
"version": "0.3.2",
"version": "0.3.3",
"type": "project",
"license": "MIT",
"minimum-stability": "stable",
Expand Down
5 changes: 4 additions & 1 deletion src/Core/Controller/Panel/DashboardController.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
use EasyCorp\Bundle\EasyAdminBundle\Config\Assets;
use EasyCorp\Bundle\EasyAdminBundle\Config\Dashboard;
use EasyCorp\Bundle\EasyAdminBundle\Config\MenuItem;
use EasyCorp\Bundle\EasyAdminBundle\Config\Option\ColorScheme;
use EasyCorp\Bundle\EasyAdminBundle\Config\UserMenu;
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractDashboardController;
use Symfony\Component\HttpFoundation\Response;
Expand Down Expand Up @@ -62,7 +63,9 @@ public function configureDashboard(): Dashboard
}
$logo = sprintf('<img src="%s" alt="%s" style="max-width: 90%%;">', $logoUrl, $title);
return Dashboard::new()
->setTitle($logo);
->setTitle($logo)
->setDefaultColorScheme(ColorScheme::LIGHT)
;
}

public function configureMenuItems(): iterable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
use App\Core\Enum\SettingEnum;
use App\Core\Enum\UserRoleEnum;
use App\Core\Repository\SettingRepository;
use App\Core\Service\SettingService;
use App\Core\Service\System\EnvironmentConfigurationService;
use Symfony\Component\Console\Style\SymfonyStyle;

readonly class SystemSettingConfiguratorHandler
{
public function __construct(
private SettingRepository $settingRepository,
private SettingService $settingService,
private EnvironmentConfigurationService $environmentConfigurationHandler,
) {}

Expand Down Expand Up @@ -194,6 +196,7 @@ private function saveSettings(array $settings): void
}
$setting->setValue($value['value']);
$this->settingRepository->save($setting);
$this->settingService->saveSettingInCache($key, $value['value']);
}
}
}
2 changes: 1 addition & 1 deletion src/Core/Resources/config/services.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
version: '0.3.2'
version: '0.3.3'
categories_base_path: '/uploads/categories'
categories_directory: 'public/uploads/categories'
products_base_path: '/uploads/products'
Expand Down
Loading