lib/vue/stores/analytics.js in lesli_audit-0.2.0 vs lib/vue/stores/analytics.js in lesli_audit-0.3.0

- old
+ new

@@ -37,27 +37,10 @@ }, { field: 'requests', label: 'Requests' }] }, - devices: { - loading: false, - pagination: {}, - records: [], - columns: [{ - field: 'device', - label: 'Device' - }, { - field: 'visits', - label: 'Visits' - }] - }, - resources: { - loading: false, - pagination: {}, - records: [] - }, visitors: { loading: false, pagination: {}, records: [] }, @@ -89,33 +72,15 @@ }).finally(() => { this.visitors.loading = false }) }, - fetchResources() { - this.resources.loading = true - this.http.get(this.url.audit("analytics/resourcess")).then(result => { - this.resources.records = result.reverse() - }).finally(() => { - this.resources.loading = false - }) - }, - fetchUsers() { this.users.loading = true this.http.get(this.url.audit("analytics/users")).then(result => { this.users.records = result }).finally(() => { this.users.loading = false - }) - }, - - fetchDevices() { - this.devices.loading = true - this.http.get(this.url.audit("analytics/devices")).then(result => { - this.devices.records = result - }).finally(() => { - this.devices.loading = false }) }, fetchControllers() { this.controllers.loading = true