log.js 500 B

12345678910111213141516171819202122
  1. 'use strict';
  2. 'require fs';
  3. 'require view';
  4. return view.extend({
  5. load: function() {
  6. return L.resolveDefault(fs.read_direct('/tmp/basicstation/log'), '');
  7. },
  8. render: function(log) {
  9. return E('div', { 'class': 'cbi-map', 'id': 'map' }, [
  10. E('h2', _('Log Messages')),
  11. E('div', { 'class': 'cbi-section' }, [
  12. E('pre', [ log ])
  13. ]),
  14. ])
  15. },
  16. handleSaveApply: null,
  17. handleSave: null,
  18. handleReset: null
  19. })