feature: customer service system

This commit is contained in:
tokumeikoi 2021-03-25 18:26:22 +09:00
parent 488eafdd67
commit b740998760
9 changed files with 16 additions and 8 deletions

View File

@ -110,7 +110,9 @@ class ConfigController extends Controller
'frontend_theme_header' => config('v2board.frontend_theme_header', 'dark'),
'frontend_theme_color' => config('v2board.frontend_theme_color', 'default'),
'frontend_background_url' => config('v2board.frontend_background_url'),
'frontend_admin_path' => config('v2board.frontend_admin_path', 'admin')
'frontend_admin_path' => config('v2board.frontend_admin_path', 'admin'),
'frontend_customer_service_method' => config('v2board.frontend_customer_service_method', 0),
'frontend_customer_service_id' => config('v2board.frontend_customer_service_id'),
],
'server' => [
'server_token' => config('v2board.server_token'),

View File

@ -87,6 +87,8 @@ class ConfigSave extends FormRequest
'frontend_theme_color' => 'in:default,darkblue,black',
'frontend_background_url' => 'nullable|url',
'frontend_admin_path' => '',
'frontend_customer_service_method' => '',
'frontend_customer_service_id' => '',
// tutorial
'apple_id' => 'nullable|email',
'apple_id_password' => '',

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -12,5 +12,7 @@ window.settings = {
color: 'default'
},
// 背景
background_url: ''
background_url: '',
// crisp
crisp_id: ''
}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -20,7 +20,8 @@
},
verison: '{{$verison}}',
background_url: '{{$backgroun_url}}',
description: '{{$description}}'
description: '{{$description}}',
crisp_id: '{{$crisp_id}}'
}
</script>
</head>

View File

@ -26,7 +26,8 @@ Route::get('/', function (Request $request) {
'theme_color' => config('v2board.frontend_theme_color', 'default'),
'backgroun_url' => config('v2board.frontend_background_url'),
'verison' => config('app.version'),
'description' => config('v2board.app_description', 'V2Board is best')
'description' => config('v2board.app_description', 'V2Board is best'),
'crisp_id' => config('v2board.frontend_customer_service_method') === 'crisp' ? config('v2board.frontend_customer_service_id') : ''
]);
});