Reticulum Network
@@ -60,8 +46,6 @@ export default {
data() {
return {
config: null,
- isLoading: false,
- loadingProgress: 0,
reloadInterval: null,
isShowingControls: true,
interfaces: [],
@@ -122,8 +106,6 @@ export default {
},
async init() {
- this.isLoading = true;
-
// create network ui
const container = document.getElementById("network");
this.network = new Network(container, {
@@ -169,30 +151,9 @@ export default {
},
});
- // update loading progress
- this.network.on("stabilizationProgress", (event) => {
-
- // calculate percentage stabilized
- this.loadingProgress = Math.floor((event.iterations / event.total) * 100);
-
- // hide loading once stabilized at least 50%
- if(this.loadingProgress >= 50){
- this.isLoading = false;
- }
-
- });
-
- // hide loading when stabilized
- this.network.on("stabilized", () => {
- this.isLoading = false;
- });
-
// update network
await this.update();
- // stabilise the network a bit after first load
- this.network.stabilize();
-
},
async update() {