const usage = await api.hosts.usage();
if (!usage.maxHosts) {
// This plan has no hosting. Show the limit, with a link to the plans.
}usage = api.hosts.usage()
if not usage["maxHosts"]:
pass # This plan has no hosting. Show the limit, with a link to the plans.packstringQual plan.
hosts · maxHostsintegerQuantes egìn, e quantes egìn il plan permetiu.
usedBytesintegerQued'hosts mantene on line.
quotaBytesintegerQuota de stoccaggio de objetos del cont.
Legî il zero
La stessa forma di maxeMailboxes: 0 per mail. Legga il numero invecès di corrispondere al nome di un plan — il giorno in cui i plans cambia, la pagina che coincide è quella che mente.
quotaBytes non è un'indennità di ospitant
E 'o stoccaggio de objetos del cont - condivisa con files, caixas de postas e tutto o resto custode per il cont. cloud.usage() mostra il medesimo numero da oltre lattura, con object.hostingBytes dicindu quanta di esso ospita.
A mostrarlo
const u = await api.hosts.usage();
if (!u.maxHosts) return showPlanLimit();
if (u.hosts >= u.maxHosts) return showAtLimit();
return showCreateButton();def hosting_screen():
u = api.hosts.usage()
if not u["maxHosts"]:
return show_plan_limit()
if u["hosts"] >= u["maxHosts"]:
return show_at_limit()
return show_create_button()