MMOframework
Pourquoi l'IA Playground Bibliothèques Documentation Rechercher Agence
FR EN
Index

mmo-hub-bar

1 symbole · générée le 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>
Étend
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

Attributs4

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

Méthodes6

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()
retournePromise<void>

Ago(time)

staticmmo-hub-bar.jhs:73
static Ago(time)
timenumber- a unix timestamp
retournestringhow 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
retournestringthe text translated, its values in it (MMO.i18n.$ translates, and takes no values)