diff --git a/app.js b/app.js index 82d1f89..79db40a 100644 --- a/app.js +++ b/app.js @@ -1,3 +1,10 @@ +/** + * WIN System Log Tail / Who's Talking? + * + * @author Rob Vella KK9ROB + * @type {Vue} + */ + Vue.component('lt-node-link', { template: `{{ node }}`, props: ['node', 'type'], @@ -75,6 +82,7 @@ let App = new Vue({ axios.get(this.uri + '?cmd=log').then(({data}) => { this.lastData = data; this.parseLogData(); + this.logs = this.logs.slice(0,500); }); }, @@ -91,7 +99,7 @@ let App = new Vue({ parseLogData() { let rows = this.lastData.split("\n"); - rows.forEach(async (v) => { + rows.forEach((v) => { let match = v.match(/([A-Za-z]+ [0-9]+ [0-9]+\:[0-9]+\:[0-9]+) (rpt|stn)([A-Za-z0-9]+) .*? (?:\[(?:via) ([0-9]+))?/); if (!match) return; diff --git a/package.json b/package.json index 43f83e8..b41bfcc 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "ajax-logtail", "version": "1.0.0", "main": "app.js", - "author": "Rob Vella", + "author": "Rob Vella KK9ROB ", "license": "MIT", "dependencies": { "moment": "^2.27.0"