MMOframework
Why AI Playground Libraries Documentation Search Agency
FR EN
Index

mmo-hub-bar

1 symbol · generated 27 Oct 2026

element

mmo-hub-bar

mmo-hub-bar.jhs:1

A monitoring hub's bar (mmo.admin's docs/monitoring.md): when the fleet was last collected, a button collecting it now, and the page reloaded every refresh seconds while it is in view -- the readings it shows are the last collection's, which cron or php hub.php watch renews.

<mmo-hub-bar url collected refresh="60" can-collect></mmo-hub-bar>
Extends
CustomShadowElement
<mmo-hub-bar url="/api/hub" collected="1793024040" refresh="60" can-collect></mmo-hub-bar>

Index

urlHubController's api: .../api/hub
collectedwhen the last collection was, a unix timestamp (none: never)
refreshseconds between two reloads of the page; 0 for none
can-collectthe button: the page may collect (HubController's canCollect)
init()
disconnectedCallback()
tick()Say how old the readings are, and reload the page once they are older than refresh.
collect() asyncCollect every probe now, say what was found, and show it.
Ago(time) static
T(text, values) static

Attributes4

collected

mmo-hub-bar.jhs

when the last collection was, a unix timestamp (none: never)

collected

refresh

mmo-hub-bar.jhs

seconds between two reloads of the page; 0 for none

refresh="60"

can-collect

mmo-hub-bar.jhs

the button: the page may collect (HubController's canCollect)

can-collect

Methods6

tick()

mmo-hub-bar.jhs:36

Say how old the readings are, and reload the page once they are older than refresh.

tick()

collect()

asyncmmo-hub-bar.jhs:50

Collect every probe now, say what was found, and show it.

async collect()
returnsPromise<void>

Ago(time)

staticmmo-hub-bar.jhs:73
static Ago(time)
timenumber- a unix timestamp
returnsstringhow long ago, in words

T(text, values)

staticmmo-hub-bar.jhs:86
static T(text, values)
textstring- english, {name} where a value goes
valuesObject- name => value
returnsstringthe text translated, its values in it (MMO.i18n.$ translates, and takes no values)