-
-
Notifications
You must be signed in to change notification settings - Fork 641
Expand file tree
/
Copy pathlive_preview.php
More file actions
87 lines (72 loc) · 2.64 KB
/
Copy pathlive_preview.php
File metadata and controls
87 lines (72 loc) · 2.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?php
return [
/*
|--------------------------------------------------------------------------
| Devices
|--------------------------------------------------------------------------
|
| Live Preview displays a device selector for you to preview the page
| in predefined sizes. You are free to add or edit these presets.
|
*/
'devices' => [
'Laptop' => ['width' => 1440, 'height' => 900],
'Tablet' => ['width' => 1024, 'height' => 786],
'Mobile' => ['width' => 375, 'height' => 812],
],
/*
|--------------------------------------------------------------------------
| Additional Inputs
|--------------------------------------------------------------------------
|
| Additional fields may be added to the Live Preview header bar. You
| may define a list of Vue components to be injected. Their values
| will be added to the cascade on the front-end for you to use.
|
*/
'inputs' => [
//
],
/*
|--------------------------------------------------------------------------
| Debounce
|--------------------------------------------------------------------------
|
| The number of milliseconds to wait before updating Live Preview after
| content changes.
|
*/
'debounce_ms' => (int) env('STATAMIC_LIVE_PREVIEW_DEBOUNCE_MS', 150),
/*
|--------------------------------------------------------------------------
| Force Reload Javascript Modules
|--------------------------------------------------------------------------
|
| To force a reload, Live Preview appends a timestamp to the URL on
| script tags of type 'module'. You may disable this behavior here.
|
*/
'force_reload_js_modules' => true,
/*
|--------------------------------------------------------------------------
| Hot Reload Contents
|--------------------------------------------------------------------------
|
| Should the Live Preview embed be hot-reloaded when the content changes?
| Only applies when "Refresh" is disabled on the live preview target.
|
*/
'hot_reload_contents' => true,
/*
|--------------------------------------------------------------------------
| Shared Preview Links
|--------------------------------------------------------------------------
|
| How long shareable draft preview links should remain valid, in minutes.
| Set shared_link_banner to false to hide the "Draft preview" bar on
| shared frontend pages. Cascade still gets `shared_preview`.
|
*/
'shared_link_expiry' => 1440,
'shared_link_banner' => true,
];