-
Notifications
You must be signed in to change notification settings - Fork 4
/
remote.sp
60 lines (49 loc) · 886 Bytes
/
remote.sp
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
dashboard "Remote" {
tags = {
service = "Mastodon"
}
container {
text {
value = replace(
replace(
"${local.menu}",
"__HOST__",
"${local.host}"
),
"[Remote](${local.host}/mastodon.dashboard.Remote)",
"Remote"
)
}
}
container {
table {
width = 4
sql = <<EOQ
select
_ctx ->> 'connection_name' as connection,
name as server
from
mastodon_server
EOQ
}
input "limit" {
base = input.limit
}
}
container {
table {
title = "remote: recent toots"
query = query.timeline_federated
args = [ self.input.limit.value, "n/a" ]
column "person" {
wrap = "all"
}
column "toot" {
wrap = "all"
}
column "url" {
wrap = "all"
}
}
}
}