File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed
resources/views/components Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change
1
+ @use (' Cachet\Cachet' )
1
2
<!DOCTYPE html>
2
3
<html lang =" {{ str_replace (' _' , ' -' , app ()-> getLocale ()) } }" class =" bg-background-light text-base-light dark:bg-background-dark dark:text-base-dark" >
3
4
<head >
8
9
<link rel =" apple-touch-icon" href =" {{ asset (' vendor/cachethq/cachet/apple-touch-icon.png' ) } }" />
9
10
10
11
<title >{{ $title ?: config (' cachet.title' , ' Cachet' ) } } </title >
12
+ <meta name =" title" content =" {{ $title ?: config (' cachet.title' , ' Cachet' ) } }" />
13
+ <meta name =" description" content =" Status page for {{ $site_name } } ." />
14
+
15
+ <!-- Open Graph / Facebook -->
16
+ <meta property =" og:type" content =" website" />
17
+ <meta property =" og:url" content =" {{ url (Cachet:: path ()) } }" />
18
+ <meta property =" og:title" content =" {{ $title ?: config (' cachet.title' , ' Cachet' ) } }" />
19
+ <meta property =" og:description" content =" Status page for {{ $site_name } } ." />
20
+
21
+ <!-- Twitter -->
22
+ <meta property =" twitter:card" content =" summary_large_image" />
23
+ <meta property =" twitter:url" content =" {{ url (Cachet:: path ()) } }" />
24
+ <meta property =" twitter:title" content =" {{ $title ?: config (' cachet.title' , ' Cachet' ) } }" />
25
+ <meta property =" twitter:description" content =" Status page for {{ $site_name } } ." />
11
26
12
27
@vite ([' resources/css/cachet.css' , ' resources/js/cachet.js' ], ' vendor/cachethq/cachet/build' )
13
28
@filamentStyles
Original file line number Diff line number Diff line change @@ -14,12 +14,12 @@ class Cachet extends Component
14
14
* Create a new component instance.
15
15
*/
16
16
public function __construct (
17
- private AppSettings $ appSettings ,
18
- private CustomizationSettings $ customizationSettings ,
17
+ private readonly AppSettings $ appSettings ,
18
+ private readonly CustomizationSettings $ customizationSettings ,
19
19
private ?string $ title = null
20
20
) {
21
21
if ($ this ->title ) {
22
- $ this ->title .= ' - ' . ($ this ->appSettings ->name ?: config ('cachet.title ' ));
22
+ $ this ->title .= ' - ' . ($ this ->appSettings ->name ?: config ('cachet.title ' ));
23
23
}
24
24
25
25
$ this ->title ??= ($ this ->appSettings ->name ?? config ('cachet.title ' ));
@@ -32,6 +32,7 @@ public function render(): View|Closure|string
32
32
{
33
33
return view ('cachet::components.cachet ' , [
34
34
'title ' => $ this ->title ,
35
+ 'site_name ' => $ this ->appSettings ->name ,
35
36
'cachet_header ' => $ this ->customizationSettings ->header ,
36
37
'cachet_css ' => $ this ->customizationSettings ->stylesheet ,
37
38
'cachet_footer ' => $ this ->customizationSettings ->footer ,
You can’t perform that action at this time.
0 commit comments