feat: 1.4.0 second firewall, egress analysis and HTML report
CI / Docker image (build and smoke test) (push) Skipped
CI / Format and vet (push) Successful in 28s
CI / Dependency audit (push) Successful in 16s
CI / Tests (Linux, race detector) (push) Successful in 1m3s
Release / Plan (reuse the published image?) (push) Successful in 4s
Release / ci (push) Skipped
Release / Build image (amd64) (push) Skipped
Release / Build image (arm64) (push) Skipped
Release / Publish tags (push) Successful in 13s
Release / Gitea release (push) Successful in 3s
CI / Docker image (build and smoke test) (push) Skipped
CI / Format and vet (push) Successful in 28s
CI / Dependency audit (push) Successful in 16s
CI / Tests (Linux, race detector) (push) Successful in 1m3s
Release / Plan (reuse the published image?) (push) Successful in 4s
Release / ci (push) Skipped
Release / Build image (amd64) (push) Skipped
Release / Build image (arm64) (push) Skipped
Release / Publish tags (push) Successful in 13s
Release / Gitea release (push) Successful in 3s
Optional second firewall (URUTAU_ENFORCE off/observe/on) through the host fail2ban, outbound traffic analysis (beaconing, mining, spam, DNS bypass, unauthorised scans) with authorised scanner workloads, host kit in deploy/host and a printable HTML report. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3adaa007ec
commit
c33cca22e3
59 files changed
+7364
-24
No files matched your search
@@ -44,7 +44,76 @@
|
||||
'df.disabled': 'The event registry is off',
|
||||
'df.disabled.sub': 'Defense is computed from the event registry; enable it to see this page.',
|
||||
'df.partial': 'Partial result: the study hit its time or size limit.',
|
||||
'df.admin': 'your account'
|
||||
'df.admin': 'your account',
|
||||
'df.en.title': 'Second firewall',
|
||||
'df.en.hint': 'Urutau can also block attackers by itself, as a safety net next to fail2ban.',
|
||||
'df.en.mode': 'Mode',
|
||||
'df.en.mode.off': 'Off',
|
||||
'df.en.mode.observe': 'Observing only',
|
||||
'df.en.mode.on': 'Active',
|
||||
'df.en.mode.off.sub': 'Urutau does not block anyone. Nothing is written; the coverage below shows what you would gain by turning it on.',
|
||||
'df.en.mode.observe.sub': 'Urutau decides who it would block and records it, but blocks nobody. Use it to check the decisions before trusting them.',
|
||||
'df.en.mode.on.sub': 'Urutau blocks the attackers it recognises, on its own, for a limited time.',
|
||||
'df.en.mode.where': 'The mode is chosen at deploy time with the variable URUTAU_ENFORCE (off, observe or on). It cannot be changed from this page.',
|
||||
'df.en.how.title': 'How to turn it on',
|
||||
'df.en.how.body': 'Set URUTAU_ENFORCE=observe on the server and restart Urutau. Watch the decisions for a few days; when they look right, change it to on.',
|
||||
'df.en.share': 'Sharing with peers',
|
||||
'df.en.share.on': 'on: bans are shared with other servers',
|
||||
'df.en.share.off': 'off: bans stay on this server',
|
||||
'df.en.threshold': 'Blocks from score {n}',
|
||||
'df.en.nolog.title': 'Blocks are not being saved',
|
||||
'df.en.nolog.body': 'The mode is active but the block file cannot be written, so nobody is really blocked. Check the permissions of the folder where Urutau writes the blocklist.',
|
||||
'df.en.lead': '{b} of {a} attacking addresses were blocked {range}',
|
||||
'df.en.lead.sub': '{fw} by the server firewall, {ur} by Urutau, {wb} would be blocked in observation mode and {un} got through.',
|
||||
'df.en.lead.none': 'No attacking addresses {range}',
|
||||
'df.en.lead.none.sub': 'Nothing to block in this window.',
|
||||
'df.en.cov': 'Who was blocked',
|
||||
'df.en.cov.hint': 'Each attacking address counted once, by the first line of defense that stopped it.',
|
||||
'df.en.cov.center': 'addresses',
|
||||
'df.en.cov.fw': 'Blocked by the server firewall',
|
||||
'df.en.cov.ur': 'Blocked by Urutau',
|
||||
'df.en.cov.wb': 'Would be blocked (observation mode)',
|
||||
'df.en.cov.un': 'Got through without a block',
|
||||
'df.en.counts': 'What Urutau decided',
|
||||
'df.en.counts.hint': 'Counts in this window. "Skipped" are attackers it deliberately left alone.',
|
||||
'df.en.c.decided': 'Decisions',
|
||||
'df.en.c.written': 'Blocks written',
|
||||
'df.en.c.dropped': 'Dropped by rate limit',
|
||||
'df.en.c.already': 'Already blocked',
|
||||
'df.en.recent': 'Recent decisions',
|
||||
'df.en.recent.hint': 'The latest decisions, newest first.',
|
||||
'df.en.recent.none': 'No decisions in this window.',
|
||||
'df.en.col.time': 'Time',
|
||||
'df.en.col.ip': 'Address',
|
||||
'df.en.col.cc': 'Country',
|
||||
'df.en.col.reason': 'Reason',
|
||||
'df.en.col.score': 'Score',
|
||||
'df.en.col.ttl': 'Duration',
|
||||
'df.en.col.action': 'Action',
|
||||
'df.en.col.src': 'Origin',
|
||||
'df.en.act.ban': 'Blocked',
|
||||
'df.en.act.would_ban': 'Would block',
|
||||
'df.en.act.skip': 'Not blocked',
|
||||
'df.en.src.local': 'this server',
|
||||
'df.en.src.peer': 'peer {n}',
|
||||
'df.en.skip.trusted': 'Trusted address (your own list)',
|
||||
'df.en.skip.private': 'Private network (not on the internet)',
|
||||
'df.en.skip.crawler': 'Verified search engine',
|
||||
'df.en.skip.legit_visitor': 'Looks like a legitimate visitor',
|
||||
'df.en.skip.peer': 'Peer server (yours)',
|
||||
'df.en.reason.scanner-flood': 'Many vulnerability probes in a short time',
|
||||
'df.en.reason.exploit-flood': 'Repeated exploit attempts',
|
||||
'df.en.reason.web-bruteforce': 'Password guessing on a website',
|
||||
'df.en.reason.wp-bruteforce': 'Password guessing on WordPress',
|
||||
'df.en.reason.ssh-bruteforce': 'Password guessing on SSH',
|
||||
'df.en.reason.rce': 'Attempt to run commands on the server',
|
||||
'df.en.reason.path-traversal': 'Attempt to read files outside the site',
|
||||
'df.en.reason.env-probe': 'Hunting for secret configuration files (.env)',
|
||||
'df.en.reason.vcs-probe': 'Hunting for source code history (.git)',
|
||||
'df.en.reason.webshell': 'Looking for or uploading a backdoor (webshell)',
|
||||
'df.en.reason.sqli': 'Attempt to tamper with the database (SQL injection)',
|
||||
'df.en.reason.log4shell': 'Log4Shell exploit attempt',
|
||||
'df.en.error': 'Could not load the second firewall data.'
|
||||
},
|
||||
'pt-BR': {
|
||||
'df.title': 'Defesa',
|
||||
@@ -79,7 +148,76 @@
|
||||
'df.disabled': 'O registro de eventos está desligado',
|
||||
'df.disabled.sub': 'A defesa é calculada a partir do registro de eventos; ative-o para ver esta página.',
|
||||
'df.partial': 'Resultado parcial: o estudo atingiu o limite de tempo ou de tamanho.',
|
||||
'df.admin': 'sua conta'
|
||||
'df.admin': 'sua conta',
|
||||
'df.en.title': 'Segundo firewall',
|
||||
'df.en.hint': 'O Urutau também pode bloquear atacantes por conta própria, como uma rede de segurança ao lado do fail2ban.',
|
||||
'df.en.mode': 'Modo',
|
||||
'df.en.mode.off': 'Desligado',
|
||||
'df.en.mode.observe': 'Só observando',
|
||||
'df.en.mode.on': 'Ativo',
|
||||
'df.en.mode.off.sub': 'O Urutau não bloqueia ninguém e não grava nada. A cobertura abaixo mostra o quanto você ganharia ao ligá-lo.',
|
||||
'df.en.mode.observe.sub': 'O Urutau decide quem bloquearia e registra, mas não bloqueia ninguém. Use para conferir as decisões antes de confiar nelas.',
|
||||
'df.en.mode.on.sub': 'O Urutau bloqueia sozinho os atacantes que reconhece, por tempo limitado.',
|
||||
'df.en.mode.where': 'O modo é escolhido no deploy, pela variável URUTAU_ENFORCE (off, observe ou on). Não dá para mudá-lo por esta página.',
|
||||
'df.en.how.title': 'Como ligar',
|
||||
'df.en.how.body': 'Defina URUTAU_ENFORCE=observe no servidor e reinicie o Urutau. Acompanhe as decisões por alguns dias; quando estiverem certas, troque para on.',
|
||||
'df.en.share': 'Compartilhamento com parceiros',
|
||||
'df.en.share.on': 'ligado: os bloqueios são compartilhados com outros servidores',
|
||||
'df.en.share.off': 'desligado: os bloqueios ficam só neste servidor',
|
||||
'df.en.threshold': 'Bloqueia a partir da pontuação {n}',
|
||||
'df.en.nolog.title': 'Os bloqueios não estão sendo salvos',
|
||||
'df.en.nolog.body': 'O modo está ativo, mas o arquivo de bloqueios não pode ser gravado; na prática ninguém está sendo bloqueado. Confira as permissões da pasta onde o Urutau grava a blocklist.',
|
||||
'df.en.lead': '{b} de {a} endereços atacantes foram bloqueados {range}',
|
||||
'df.en.lead.sub': '{fw} pelo firewall do servidor, {ur} pelo Urutau, {wb} seriam bloqueados no modo observação e {un} passaram.',
|
||||
'df.en.lead.none': 'Nenhum endereço atacante {range}',
|
||||
'df.en.lead.none.sub': 'Nada a bloquear nesta janela.',
|
||||
'df.en.cov': 'Quem foi bloqueado',
|
||||
'df.en.cov.hint': 'Cada endereço atacante conta uma vez, pela primeira linha de defesa que o barrou.',
|
||||
'df.en.cov.center': 'endereços',
|
||||
'df.en.cov.fw': 'Bloqueado pelo firewall do servidor',
|
||||
'df.en.cov.ur': 'Bloqueado pelo Urutau',
|
||||
'df.en.cov.wb': 'Seria bloqueado (modo observação)',
|
||||
'df.en.cov.un': 'Passou sem bloqueio',
|
||||
'df.en.counts': 'O que o Urutau decidiu',
|
||||
'df.en.counts.hint': 'Contagens desta janela. "Ignorados" são atacantes que ele deixou passar de propósito.',
|
||||
'df.en.c.decided': 'Decisões',
|
||||
'df.en.c.written': 'Bloqueios gravados',
|
||||
'df.en.c.dropped': 'Descartados pelo limite de ritmo',
|
||||
'df.en.c.already': 'Já estavam bloqueados',
|
||||
'df.en.recent': 'Decisões recentes',
|
||||
'df.en.recent.hint': 'As últimas decisões, da mais nova para a mais antiga.',
|
||||
'df.en.recent.none': 'Nenhuma decisão nesta janela.',
|
||||
'df.en.col.time': 'Hora',
|
||||
'df.en.col.ip': 'Endereço',
|
||||
'df.en.col.cc': 'País',
|
||||
'df.en.col.reason': 'Motivo',
|
||||
'df.en.col.score': 'Pontuação',
|
||||
'df.en.col.ttl': 'Duração',
|
||||
'df.en.col.action': 'Ação',
|
||||
'df.en.col.src': 'Origem',
|
||||
'df.en.act.ban': 'Bloqueado',
|
||||
'df.en.act.would_ban': 'Bloquearia',
|
||||
'df.en.act.skip': 'Não bloqueado',
|
||||
'df.en.src.local': 'este servidor',
|
||||
'df.en.src.peer': 'parceiro {n}',
|
||||
'df.en.skip.trusted': 'Endereço confiável (sua própria lista)',
|
||||
'df.en.skip.private': 'Rede privada (fora da internet)',
|
||||
'df.en.skip.crawler': 'Buscador verificado',
|
||||
'df.en.skip.legit_visitor': 'Parece um visitante legítimo',
|
||||
'df.en.skip.peer': 'Servidor parceiro (seu)',
|
||||
'df.en.reason.scanner-flood': 'Muitas sondagens de vulnerabilidade em pouco tempo',
|
||||
'df.en.reason.exploit-flood': 'Tentativas repetidas de exploração',
|
||||
'df.en.reason.web-bruteforce': 'Tentativa de adivinhar senha num site',
|
||||
'df.en.reason.wp-bruteforce': 'Tentativa de adivinhar senha no WordPress',
|
||||
'df.en.reason.ssh-bruteforce': 'Tentativa de adivinhar senha no SSH',
|
||||
'df.en.reason.rce': 'Tentativa de executar comandos no servidor',
|
||||
'df.en.reason.path-traversal': 'Tentativa de ler arquivos fora do site',
|
||||
'df.en.reason.env-probe': 'Caça a arquivos de configuração secretos (.env)',
|
||||
'df.en.reason.vcs-probe': 'Caça ao histórico do código-fonte (.git)',
|
||||
'df.en.reason.webshell': 'Procura ou envio de porta dos fundos (webshell)',
|
||||
'df.en.reason.sqli': 'Tentativa de adulterar o banco de dados (injeção de SQL)',
|
||||
'df.en.reason.log4shell': 'Tentativa de explorar o Log4Shell',
|
||||
'df.en.error': 'Não foi possível carregar os dados do segundo firewall.'
|
||||
}
|
||||
});
|
||||
|
||||
@@ -172,7 +310,122 @@
|
||||
root.appendChild(grid);
|
||||
}
|
||||
|
||||
|
||||
var enData = null, enSeq = 0, enBox = null;
|
||||
function ttlTxt(s) { return s > 0 ? dur(s) : '-'; }
|
||||
function reasonTxt(r) {
|
||||
if (!r) return '-';
|
||||
var k = 'df.en.reason.' + r;
|
||||
if (t(k) !== k) return t(k);
|
||||
var parts = String(r).split(/[-_:]/);
|
||||
for (var i = 0; i < parts.length; i++) { var c = 'df.en.reason.' + parts[i]; if (t(c) !== c) return t(c) + ' (' + r + ')'; }
|
||||
return r;
|
||||
}
|
||||
function tbl(cols, rows) {
|
||||
var tb = el('tbody');
|
||||
rows.forEach(function (r) { tb.appendChild(el('tr', null, r.map(function (c, i) { return el('td', { class: cols[i].cls || '' }, c); }))); });
|
||||
return el('div', { class: 'df-scroll' }, el('table', { class: 'df-table' },
|
||||
el('thead', null, el('tr', null, cols.map(function (c) { return el('th', { class: c.cls || '' }, c.label); }))), tb));
|
||||
}
|
||||
function paintEnforce() {
|
||||
if (!enBox) return;
|
||||
clear(enBox);
|
||||
if (!enData) return;
|
||||
var e = enData, cv = e.coverage || {}, cn = e.counts || {}, sk = cn.skipped || {}, range = U.rangeLabel({ inline: true });
|
||||
var mode = /^(off|observe|on)$/.test(e.mode) ? e.mode : 'off';
|
||||
var head = el('div', { class: 'df-en-head' });
|
||||
var mt = el('h2', { class: 'df-en-title' }, t('df.en.title'));
|
||||
if (U.help) U.help(mt, 'term.second_firewall');
|
||||
head.appendChild(mt);
|
||||
head.appendChild(el('p', { class: 'hint' }, t('df.en.hint')));
|
||||
enBox.appendChild(head);
|
||||
|
||||
var grid = el('div', { class: 'grid-12' });
|
||||
var mp = U.ui.panel({ title: t('df.en.mode'), cls: 'span-4', help: mode === 'observe' ? 'term.observe_mode' : null });
|
||||
var tone = mode === 'on' ? 'ok' : mode === 'observe' ? 'info' : 'warn';
|
||||
mp.body.appendChild(el('p', { class: 'df-mode' }, U.ui.badge(t('df.en.mode.' + mode), tone)));
|
||||
mp.body.appendChild(el('p', { class: 'df-en-p' }, t('df.en.mode.' + mode + '.sub')));
|
||||
mp.body.appendChild(el('p', { class: 'hint' }, t('df.en.mode.where')));
|
||||
var meta = el('p', { class: 'hint df-en-meta' }, t('df.en.threshold', { n: nf(e.threshold || 0) }) + ' · ' + t('df.en.share') + ': ' + (e.share === 'on' ? t('df.en.share.on') : t('df.en.share.off')));
|
||||
if (U.help) U.help(meta, 'term.ban_ttl');
|
||||
mp.body.appendChild(meta);
|
||||
if (mode === 'on' && e.log_writable === false) mp.body.appendChild(el('div', { class: 'state-error' }, el('strong', null, t('df.en.nolog.title')), el('span', null, t('df.en.nolog.body'))));
|
||||
if (mode === 'off') {
|
||||
mp.body.appendChild(el('p', { class: 'df-en-how' }, el('strong', null, t('df.en.how.title') + ': '), t('df.en.how.body')));
|
||||
}
|
||||
grid.appendChild(mp);
|
||||
|
||||
var total = (cv.blocked_by_firewall || 0) + (cv.blocked_by_urutau || 0) + (cv.would_block || 0) + (cv.unblocked || 0);
|
||||
var cp = U.ui.panel({ title: t('df.en.cov'), hint: t('df.en.cov.hint'), cls: 'span-8' });
|
||||
var rows = [
|
||||
{ key: 'fw', label: t('df.en.cov.fw'), value: cv.blocked_by_firewall || 0, color: '--ok' },
|
||||
{ key: 'ur', label: t('df.en.cov.ur'), value: cv.blocked_by_urutau || 0, color: '--info' },
|
||||
{ key: 'wb', label: t('df.en.cov.wb'), value: cv.would_block || 0, color: '--warn' },
|
||||
{ key: 'un', label: t('df.en.cov.un'), value: cv.unblocked || 0, color: '--danger' }
|
||||
];
|
||||
var blocked = (cv.blocked_by_firewall || 0) + (cv.blocked_by_urutau || 0);
|
||||
cp.body.appendChild(el('p', { class: 'df-en-sum' }, total ? t('df.en.lead', { b: nf(blocked), a: nf(cv.attack_ips || total), range: range }) : t('df.en.lead.none', { range: range })));
|
||||
if (total) {
|
||||
cp.body.appendChild(el('p', { class: 'hint' }, t('df.en.lead.sub', { fw: nf(rows[0].value), ur: nf(rows[1].value), wb: nf(rows[2].value), un: nf(rows[3].value) })));
|
||||
if (U.charts && U.charts.donut) {
|
||||
cp.body.appendChild(U.charts.donut(rows, { title: t('df.en.cov'), centerLabel: t('df.en.cov.center'), format: nf, colors: rows.map(function (r) { return r.color; }) }));
|
||||
if (U.help) { var lis = cp.body.querySelectorAll('.vz-legend li'); if (lis[2]) U.help(lis[2], 'term.observe_mode'); }
|
||||
}
|
||||
} else cp.body.appendChild(U.ui.empty(t('df.en.lead.none', { range: range }), t('df.en.lead.none.sub')));
|
||||
grid.appendChild(cp);
|
||||
|
||||
var np = U.ui.panel({ title: t('df.en.counts'), hint: t('df.en.counts.hint'), cls: 'span-12' });
|
||||
var kp = el('div', { class: 'grid-12 df-kpis' });
|
||||
function k(node) { node.classList.add('span-3'); kp.appendChild(node); }
|
||||
k(U.ui.metric(t('df.en.c.decided'), nf(cn.decided || 0)));
|
||||
k(U.ui.metric(t('df.en.c.written'), nf(cn.written || 0), { tone: 'ok' }));
|
||||
k(U.ui.metric(t('df.en.c.dropped'), nf(cn.dropped_rate || 0), { tone: cn.dropped_rate ? 'warn' : 'neutral' }));
|
||||
k(U.ui.metric(t('df.en.c.already'), nf(cn.already_blocked || 0)));
|
||||
np.body.appendChild(kp);
|
||||
var skl = el('ul', { class: 'df-skips' });
|
||||
['trusted', 'private', 'crawler', 'legit_visitor', 'peer'].forEach(function (key) {
|
||||
if (!sk[key]) return;
|
||||
skl.appendChild(el('li', null, el('span', { class: 'num' }, nf(sk[key])), ' ' + t('df.en.skip.' + key)));
|
||||
});
|
||||
if (skl.firstChild) np.body.appendChild(skl);
|
||||
grid.appendChild(np);
|
||||
|
||||
var rp = U.ui.panel({ title: t('df.en.recent'), hint: t('df.en.recent.hint'), cls: 'span-12', variant: 'list' });
|
||||
var rec = e.recent || [];
|
||||
if (!rec.length) rp.body.appendChild(U.ui.empty(t('df.en.recent.none')));
|
||||
else {
|
||||
var cols = [{ label: t('df.en.col.time') }, { label: t('df.en.col.ip'), cls: 'mono' }, { label: t('df.en.col.cc') }, { label: t('df.en.col.reason') },
|
||||
{ label: t('df.en.col.score'), cls: 'num' }, { label: t('df.en.col.ttl'), cls: 'num' }, { label: t('df.en.col.action') }, { label: t('df.en.col.src') }];
|
||||
rp.body.appendChild(tbl(cols, rec.map(function (r) {
|
||||
var act = /^(ban|would_ban|skip)$/.test(r.action) ? r.action : 'skip';
|
||||
var actNode = el('span', { class: 'df-act' }, U.ui.badge(t('df.en.act.' + act), act === 'ban' ? 'ok' : act === 'would_ban' ? 'warn' : 'neutral'));
|
||||
if (act === 'skip' && r.skip_reason) {
|
||||
var sk2 = 'df.en.skip.' + r.skip_reason;
|
||||
actNode.appendChild(el('small', { class: 'df-skipwhy' }, t(sk2) !== sk2 ? t(sk2) : r.skip_reason));
|
||||
}
|
||||
var peer = String(r.src || 'local');
|
||||
var src = peer.indexOf('peer:') === 0 ? t('df.en.src.peer', { n: peer.slice(5) }) : t('df.en.src.local');
|
||||
return [el('span', { class: 'df-nowrap' }, U.fmt.clock(r.t)), el('a', { href: U.href('ip', [r.ip]) }, r.ip), (r.cc ? U.fmt.flag(r.cc) + ' ' : '') + (r.cc || '-'),
|
||||
reasonTxt(r.reason), nf(r.score || 0), ttlTxt(r.ttl || 0), actNode, src];
|
||||
})));
|
||||
}
|
||||
grid.appendChild(rp);
|
||||
enBox.appendChild(grid);
|
||||
}
|
||||
function loadEnforce() {
|
||||
var my = ++enSeq;
|
||||
U.api('/api/v1/enforce', Object.assign(U.rangeParams(), ctx && ctx.host && ctx.host !== 'all' ? { host: ctx.host } : {})).then(function (d) {
|
||||
if (!alive || my !== enSeq) return;
|
||||
enData = d; paintEnforce();
|
||||
}).catch(function () {
|
||||
if (!alive || my !== enSeq || enData || !enBox) return;
|
||||
clear(enBox);
|
||||
enBox.appendChild(el('div', { class: 'state-error' }, el('strong', null, t('df.en.error'))));
|
||||
});
|
||||
}
|
||||
|
||||
function load() {
|
||||
loadEnforce();
|
||||
var my = ++seq;
|
||||
U.api('/api/v1/defense', Object.assign(U.rangeParams(), ctx && ctx.host && ctx.host !== 'all' ? { host: ctx.host } : {})).then(function (d) {
|
||||
if (!alive || my !== seq) return;
|
||||
@@ -187,10 +440,10 @@
|
||||
U.registerPage({
|
||||
id: 'defense', group: 'operate', titleKey: 'df.title',
|
||||
icon: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor"><path d="M12 3l8 3v6c0 4.5-3.2 7.8-8 9-4.8-1.2-8-4.5-8-9V6z"/><path d="M9 12l2 2 4-4"/></svg>',
|
||||
mount: function (node, cx) { root = el('div', { class: 'df-page' }); node.appendChild(root); ctx = cx; alive = true; data = null; paint(); load(); },
|
||||
mount: function (node, cx) { root = el('div', { class: 'df-page' }); node.appendChild(root); enBox = el('div', { class: 'df-page df-en' }); node.appendChild(enBox); ctx = cx; alive = true; data = null; enData = null; paint(); load(); },
|
||||
update: function (cx) { ctx = cx; load(); },
|
||||
refresh: function () { load(); },
|
||||
unmount: function () { alive = false; seq++; if (root && root.parentNode) root.parentNode.removeChild(root); root = null; data = null; }
|
||||
unmount: function () { alive = false; seq++; enSeq++; if (root && root.parentNode) root.parentNode.removeChild(root); if (enBox && enBox.parentNode) enBox.parentNode.removeChild(enBox); root = null; enBox = null; data = null; enData = null; }
|
||||
});
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user