projects
/
project
/
luci2
/
ui.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
luci2: implement initial backup / restore / flash view. Actual firmware flashing...
[project/luci2/ui.git]
/
luci2
/
htdocs
/
luci2
/
view
/
status.syslog.js
1
L.ui.view.extend({
2
title: L.tr('System Log'),
3
refresh: 5000,
4
execute: function() {
5
return L.system.getSystemLog().then(function(log) {
6
var ta = document.getElementById('syslog');
7
var lines = log.replace(/\n+$/, '').split(/\n/);
8
9
ta.rows = lines.length;
10
ta.value = lines.reverse().join("\n");
11
});
12
}
13
});