diff --git a/demo.html b/demo.html index 91922b8..9ead9aa 100644 --- a/demo.html +++ b/demo.html @@ -17,6 +17,8 @@
+ +

Loading... (If this takes too long it means there was a serious error!)

@@ -126,7 +128,7 @@
-
+
@@ -151,13 +153,7 @@ ({{format(getPointGen())}}/sec)
- - -
- -
-
- +
- +
` }) @@ -367,6 +367,20 @@ function loadVue() { ` }) + // Data is an array with the structure of the tree + Vue.component('tree', { + props: ['layer', 'data'], + template: `
+ + +
+ + +
+
+ + ` + }) // These are for buyables, data is the id of the corresponding buyable Vue.component('sell-one', { @@ -394,6 +408,36 @@ function loadVue() { ` }) + Vue.component('button-node', { + props: ['layer', 'abb', 'size'], + template: ` + + ` + }) + Vue.component('layer-node', { props: ['layer', 'abb', 'size'], template: ` @@ -422,7 +466,7 @@ function loadVue() { {{abb}} ` - }, + }) Vue.component('layer-tab', { props: ['layer', 'back'], @@ -461,7 +505,7 @@ function loadVue() { - ) + app = new Vue({