mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-19 21:04:44 +02:00
Add App Logo (#1104)
* Add `app.logo` to `Settings` * Use `app.name` if `app.logo` is null
This commit is contained in:
parent
0b3dce132f
commit
f2f3ee548f
@ -117,12 +117,23 @@ class Settings extends Page implements HasForms
|
||||
->label(trans('admin/setting.general.app_name'))
|
||||
->required()
|
||||
->default(env('APP_NAME', 'Pelican')),
|
||||
Group::make()
|
||||
->columns(2)
|
||||
->schema([
|
||||
TextInput::make('APP_LOGO')
|
||||
->label(trans('admin/setting.general.app_logo'))
|
||||
->hintIcon('tabler-question-mark')
|
||||
->hintIconTooltip(trans('admin/setting.general.app_logo_help'))
|
||||
->default(env('APP_LOGO'))
|
||||
->placeholder('/pelican.svg'),
|
||||
TextInput::make('APP_FAVICON')
|
||||
->label(trans('admin/setting.general.app_favicon'))
|
||||
->hintIcon('tabler-question-mark')
|
||||
->hintIconTooltip(trans('admin/setting.general.app_favicon_help'))
|
||||
->required()
|
||||
->default(env('APP_FAVICON', '/pelican.ico')),
|
||||
->default(env('APP_FAVICON', '/pelican.ico'))
|
||||
->placeholder('/pelican.ico'),
|
||||
]),
|
||||
Toggle::make('APP_DEBUG')
|
||||
->label(trans('admin/setting.general.debug_mode'))
|
||||
->inline(false)
|
||||
|
@ -3,7 +3,7 @@
|
||||
return [
|
||||
|
||||
'name' => env('APP_NAME', 'Pelican'),
|
||||
'logo' => env('APP_LOGO', '/pelican.svg'),
|
||||
'logo' => env('APP_LOGO'),
|
||||
'favicon' => env('APP_FAVICON', '/pelican.ico'),
|
||||
|
||||
'version' => 'canary',
|
||||
|
@ -14,8 +14,10 @@ return [
|
||||
],
|
||||
'general' => [
|
||||
'app_name' => 'App Name',
|
||||
'app_logo' => 'App Logo',
|
||||
'app_logo_help' => 'Logo should be placed in the public folder located in the root panel directory. Leave blank to use App Name instead.',
|
||||
'app_favicon' => 'App Favicon',
|
||||
'app_favicon_help' => 'Favicons should be placed in the public folder, located in the root panel directory.',
|
||||
'app_favicon_help' => 'Favicon should be placed in the public folder located in the root panel directory.',
|
||||
'debug_mode' => 'Debug Mode',
|
||||
'navigation' => 'Navigation',
|
||||
'sidebar' => 'Sidebar',
|
||||
|
Loading…
x
Reference in New Issue
Block a user