progress
This commit is contained in:
parent
89fe535109
commit
62ccfceb46
|
@ -7,6 +7,7 @@ use EasyCorp\Bundle\EasyAdminBundle\Config\MenuItem;
|
|||
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractDashboardController;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Attribute\Route;
|
||||
use EasyCorp\Bundle\EasyAdminBundle\Dto\LocaleDto;
|
||||
|
||||
class DashboardController extends AbstractDashboardController
|
||||
{
|
||||
|
@ -35,7 +36,50 @@ class DashboardController extends AbstractDashboardController
|
|||
public function configureDashboard(): Dashboard
|
||||
{
|
||||
return Dashboard::new()
|
||||
->setTitle('داشبورد مدیریت محتوای حسابیکس');
|
||||
// the name visible to end users
|
||||
->setTitle('ACME Corp.')
|
||||
// you can include HTML contents too (e.g. to link to an image)
|
||||
->setTitle('<img src="..."> ACME <span class="text-small">Corp.</span>')
|
||||
|
||||
// by default EasyAdmin displays a black square as its default favicon;
|
||||
// use this method to display a custom favicon: the given path is passed
|
||||
// "as is" to the Twig asset() function:
|
||||
// <link rel="shortcut icon" href="{{ asset('...') }}">
|
||||
->setFaviconPath('favicon.svg')
|
||||
|
||||
// the domain used by default is 'messages'
|
||||
->setTranslationDomain('my-custom-domain')
|
||||
|
||||
// there's no need to define the "text direction" explicitly because
|
||||
// its default value is inferred dynamically from the user locale
|
||||
->setTextDirection('ltr')
|
||||
|
||||
// set this option if you prefer the page content to span the entire
|
||||
// browser width, instead of the default design which sets a max width
|
||||
->renderContentMaximized()
|
||||
|
||||
// set this option if you prefer the sidebar (which contains the main menu)
|
||||
// to be displayed as a narrow column instead of the default expanded design
|
||||
->renderSidebarMinimized()
|
||||
|
||||
// by default, users can select between a "light" and "dark" mode for the
|
||||
// backend interface. Call this method if you prefer to disable the "dark"
|
||||
// mode for any reason (e.g. if your interface customizations are not ready for it)
|
||||
->disableDarkMode()
|
||||
|
||||
// by default, the UI color scheme is 'auto', which means that the backend
|
||||
// will use the same mode (light/dark) as the operating system and will
|
||||
// change in sync when the OS mode changes.
|
||||
// Use this option to set which mode ('light', 'dark' or 'auto') will users see
|
||||
// by default in the backend (users can change it via the color scheme selector)
|
||||
->setDefaultColorScheme('dark')
|
||||
// instead of magic strings, you can use constants as the value of
|
||||
// this option: EasyCorp\Bundle\EasyAdminBundle\Config\Option\ColorScheme::DARK
|
||||
|
||||
// by default, all backend URLs are generated as absolute URLs. If you
|
||||
// need to generate relative URLs instead, call this method
|
||||
->generateRelativeUrls()
|
||||
;
|
||||
}
|
||||
|
||||
public function configureMenuItems(): iterable
|
||||
|
|
Loading…
Reference in a new issue