5
5
use Cachet \Enums \ComponentGroupVisibilityEnum ;
6
6
use Cachet \Enums \ComponentStatusEnum ;
7
7
use Cachet \Enums \IncidentStatusEnum ;
8
+ use Cachet \Enums \IncidentTemplateEngineEnum ;
8
9
use Cachet \Enums \MetricTypeEnum ;
9
10
use Cachet \Enums \MetricViewEnum ;
10
11
use Cachet \Enums \ResourceVisibilityEnum ;
11
12
use Cachet \Enums \ScheduleStatusEnum ;
12
13
use Cachet \Models \Component ;
13
14
use Cachet \Models \ComponentGroup ;
14
15
use Cachet \Models \Incident ;
16
+ use Cachet \Models \IncidentTemplate ;
15
17
use Cachet \Models \Metric ;
16
18
use Cachet \Models \Schedule ;
17
19
use Cachet \Settings \AppSettings ;
18
20
use Cachet \Settings \CustomizationSettings ;
21
+ use Cachet \Settings \ThemeSettings ;
19
22
use Illuminate \Database \Seeder ;
20
23
use Illuminate \Support \Arr ;
21
24
use Illuminate \Support \Facades \DB ;
@@ -151,14 +154,15 @@ public function run(): void
151
154
'message ' => 'We \'ve identified the issue and are working on a fix. ' ,
152
155
]);
153
156
154
- // IncidentTemplate::create([
155
- // 'name' => 'Third-Party Service Outage',
156
- // 'slug' => 'third-party-service-outage',
157
- // 'template' => 'We\'re investigating an issue with a third-party provider ({{ name }}) causing our services to be offline.',
158
- // 'engine' => IncidentTemplateEngineEnum::twig,
159
- // ]);
157
+ IncidentTemplate::create ([
158
+ 'name ' => 'Third-Party Service Outage ' ,
159
+ 'slug ' => 'third-party-service-outage ' ,
160
+ 'template ' => 'We \'re investigating an issue with a third-party provider ({{ name }}) causing our services to be offline. ' ,
161
+ 'engine ' => IncidentTemplateEngineEnum::twig,
162
+ ]);
160
163
161
164
$ appSettings = app (AppSettings::class);
165
+ $ appSettings ->name = 'Cachet v3.x Demo ' ;
162
166
$ appSettings ->about = <<<'ABOUT'
163
167
Cachet is a **beautiful** and **powerful** open-source status page system.
164
168
@@ -168,13 +172,13 @@ public function run(): void
168
172
169
173
Please [consider sponsoring](https://github.com/cachethq/cachet?sponsor=1) the continued development of Cachet.
170
174
ABOUT;
171
- $ appSettings ->name = 'Cachet v3.x Demo ' ;
172
- $ appSettings ->refresh_rate = null ;
173
175
$ appSettings ->show_support = true ;
174
- $ appSettings ->show_timezone = true ;
176
+ $ appSettings ->timezone = 'UTC ' ;
177
+ $ appSettings ->show_timezone = false ;
175
178
$ appSettings ->only_disrupted_days = false ;
176
179
$ appSettings ->incident_days = 7 ;
177
- $ appSettings ->timezone = 'UTC ' ;
180
+ $ appSettings ->refresh_rate = null ;
181
+ $ appSettings ->dashboard_login_link = true ;
178
182
$ appSettings ->major_outage_threshold = 25 ;
179
183
$ appSettings ->save ();
180
184
@@ -185,5 +189,9 @@ public function run(): void
185
189
$ customizationSettings ->footer = '' ;
186
190
$ customizationSettings ->stylesheet = '' ;
187
191
$ customizationSettings ->save ();
192
+
193
+ $ themeSettings = app (ThemeSettings::class);
194
+ $ themeSettings ->app_banner = '' ;
195
+ $ themeSettings ->save ();
188
196
}
189
197
}
0 commit comments