tangled
alpha
login
or
join now
tree.fail
/
plcbundle-watch
9
fork
atom
this repo has no description
plcbundle-watch.pages.dev
9
fork
atom
overview
issues
pulls
1
pipelines
add plcbundle2.atscan.net
tree.fail
4 months ago
561d5c03
a0007439
1/1
deploy.yml
success
4mo ago
+14
-1
2 changed files
expand all
collapse all
unified
split
src
App.svelte
instances.json
+9
-1
src/App.svelte
reviewed
···
201
201
setTimeout(() => { canRefresh = true }, 500)
202
202
}
203
203
204
204
+
function normalizedVersion(version: string) {
205
205
+
const m = version.trim().match(/^([^\s]+)\.\d+\.\d+\-[0-9a-f]+\+dirty$/)
206
206
+
if (m) {
207
207
+
return `${m[1]}+dev`
208
208
+
}
209
209
+
return version
210
210
+
}
211
211
+
204
212
function updateTitle() {
205
213
const arr: string[] = []
206
214
if (lastUpdated) {
···
350
358
<td><span class="font-mono text-xs {instance.status ? (instance.status?.bundles?.root_hash === ROOT ? 'text-success-600' : 'text-error-600') : ''}">{#if instance.status?.bundles?.root_hash}{instance.status?.bundles?.root_hash.slice(0, 7)}{/if}</span></td>
351
359
{/if}
352
360
353
353
-
<td class="text-xs">{#if instance.status?.server?.version}{instance.status?.server?.version}{/if}</td>
361
361
+
<td class="text-xs">{#if instance.status?.server?.version}<span title={instance.status?.server?.version}>{normalizedVersion(instance.status?.server?.version)}</span>{/if}</td>
354
362
<td class="text-xs">{#if instance.status?.server?.websocket_enabled}✔︎{:else if instance.status}<span class="opacity-25">-</span>{/if}</td>
355
363
<td class="text-xs">{#if instance.status?.server?.uptime_seconds}{formatUptime(instance.status?.server?.uptime_seconds)}{/if}</td>
356
364
<td class="text-xs opacity-50">{#if instance.status?.latency}<a href="{instance.url}/status">{Math.round(instance.status?.latency)}ms</a>{/if}</td>
+5
src/instances.json
reviewed
···
5
5
"maintainer": "@tree.fail"
6
6
},
7
7
{
8
8
+
"url": "https://plcbundle2.atscan.net",
9
9
+
"country": "CZ",
10
10
+
"maintainer": "@tree.fail"
11
11
+
},
12
12
+
{
8
13
"url": "https://plc.j4ck.xyz"
9
14
},
10
15
{