summaryrefslogtreecommitdiffstats
path: root/applications/luci-app-lorawan-basicstation/htdocs/luci-static/resources/view/lorawan-basicstation/log.js
blob: 625333f67a1f1a07ff1aa1e56b71351b9aac084e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
'use strict';
'require fs';
'require view';

return view.extend({
    load: function() {
        return L.resolveDefault(fs.read_direct('/tmp/basicstation/log'), '');
    },

    render: function(log) {
        return E('div', { 'class': 'cbi-map', 'id': 'map' }, [
            E('h2', _('Log Messages')),
            E('div', { 'class': 'cbi-section' }, [
                E('pre', [ log ])
            ]),
        ])
    },

    handleSaveApply: null,
    handleSave: null,
    handleReset: null
})