Skip to content

Commit

Permalink
chore: wip - starting on smart bar framework
Browse files Browse the repository at this point in the history
  • Loading branch information
amunchet committed Sep 17, 2023
1 parent 4829c0e commit 40d8417
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion frontend/labyrinth/src/views/Dashboard.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<template>
<div class="dashboard">
<pre
class="text-left"
>{{parsed_data}}</pre>
<!-- Modals -->
<div class="overflow-hidden mb-4 pb-2">
<CreateEditSubnet :inp_subnet="selected_subnet" @update="loadData()" />
Expand Down Expand Up @@ -60,7 +63,7 @@
<div
:class="'outer ' + (subnet.minimized ? 'minimized' : '')"
:style="findClass(subnet)"
v-for="(subnet, i) in sortSubnets(full_data)"
v-for="(subnet, i) in parsed_data"
v-bind:key="i"
>
<div
Expand Down Expand Up @@ -262,6 +265,12 @@ export default {
DoughnutChart,
},
computed: {
parsed_data: function(){
let data = this.full_data
return this.sortSubnets(data)
},
all_ips_computed: function(){
let retval = new Set()
this.full_data.forEach(subnet=>{
Expand Down Expand Up @@ -326,6 +335,12 @@ export default {
}
});
},
parseCommandLine: function(){
// Parses the command line
},
loadThemes: /* istanbul ignore next */ function () {
let auth = this.$auth;
Helper.apiCall("themes", "", auth)
Expand Down

0 comments on commit 40d8417

Please sign in to comment.