mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 00:34: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'))
|
->label(trans('admin/setting.general.app_name'))
|
||||||
->required()
|
->required()
|
||||||
->default(env('APP_NAME', 'Pelican')),
|
->default(env('APP_NAME', 'Pelican')),
|
||||||
TextInput::make('APP_FAVICON')
|
Group::make()
|
||||||
->label(trans('admin/setting.general.app_favicon'))
|
->columns(2)
|
||||||
->hintIcon('tabler-question-mark')
|
->schema([
|
||||||
->hintIconTooltip(trans('admin/setting.general.app_favicon_help'))
|
TextInput::make('APP_LOGO')
|
||||||
->required()
|
->label(trans('admin/setting.general.app_logo'))
|
||||||
->default(env('APP_FAVICON', '/pelican.ico')),
|
->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'))
|
||||||
|
->placeholder('/pelican.ico'),
|
||||||
|
]),
|
||||||
Toggle::make('APP_DEBUG')
|
Toggle::make('APP_DEBUG')
|
||||||
->label(trans('admin/setting.general.debug_mode'))
|
->label(trans('admin/setting.general.debug_mode'))
|
||||||
->inline(false)
|
->inline(false)
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
return [
|
return [
|
||||||
|
|
||||||
'name' => env('APP_NAME', 'Pelican'),
|
'name' => env('APP_NAME', 'Pelican'),
|
||||||
'logo' => env('APP_LOGO', '/pelican.svg'),
|
'logo' => env('APP_LOGO'),
|
||||||
'favicon' => env('APP_FAVICON', '/pelican.ico'),
|
'favicon' => env('APP_FAVICON', '/pelican.ico'),
|
||||||
|
|
||||||
'version' => 'canary',
|
'version' => 'canary',
|
||||||
|
@ -14,8 +14,10 @@ return [
|
|||||||
],
|
],
|
||||||
'general' => [
|
'general' => [
|
||||||
'app_name' => 'App Name',
|
'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' => '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',
|
'debug_mode' => 'Debug Mode',
|
||||||
'navigation' => 'Navigation',
|
'navigation' => 'Navigation',
|
||||||
'sidebar' => 'Sidebar',
|
'sidebar' => 'Sidebar',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user