-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
58 lines (58 loc) · 1.43 KB
/
index.js
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
panel.plugin("jenstornell/panelstats", {
fields: {
panelstats: {
props: {
label: String,
values: Array
},
template: `
<p-stats>
<table>
<tr>
<th>
<h2 class="k-headline">Files on site</h2>
</th>
</tr>
<tr>
<th>All</th>
<td>{{ this.values.files }}</td>
</tr>
<tr>
<th>Images</th>
<td>{{ this.values.site_images }}</td>
</tr>
<tr>
<th>Jpeg</th>
<td>{{ this.values.jpg }}</td>
</tr>
<tr>
<th>Png</th>
<td>{{ this.values.png }}</td>
</tr>
<tr>
<th>
<h2 class="k-headline">Pages</h2>
</th>
</tr>
<tr>
<th>Pages on site</th>
<td>{{ this.values.site_pages_count }}</td>
</tr>
<tr>
<th>Children on root</th>
<td>{{ this.values.site_pages_count_children }}</td>
</tr>
<tr>
<th>Children max</th>
<td>{{ this.values.children_max }}</td>
</tr>
<tr>
<th>Depth max</th>
<td>{{ this.values.site_depth }}</td>
</tr>
</table>
</p-stats>
`
}
}
});