diff --git a/app/js/components/item-info.js b/app/js/components/item-info.js index 22e2cdd..4908824 100644 --- a/app/js/components/item-info.js +++ b/app/js/components/item-info.js @@ -10,22 +10,48 @@ Vue.component("item-info", { } }, template: /*html*/` -
-
-
- -
-
- -
-
+
-
- +
+
+
+ Preview +
+
+ +
+
+
+
+
+
+ Details +
+
+ +
+
+
+
+
+
+
+
+ Recipes +
+
+
+
+ +
+
+
+
+Debug
 {{ JSON.stringify(item, null, '\t') }}
 {{ JSON.stringify(recipes, null, '\t') }}
 				
diff --git a/app/js/components/item-preview.js b/app/js/components/item-preview.js index 8e82914..9c52ab9 100644 --- a/app/js/components/item-preview.js +++ b/app/js/components/item-preview.js @@ -43,7 +43,7 @@ Vue.component("item-preview-inventoryimage", { computed: { imgsrc: function(){ if (this.item.inventory_image) - return `textures/${this.item.inventory_image}`; + return `textures/${mtinfo.stripimagetransforms(this.item.inventory_image)}`; else return "pics/unknown_node.png"; } diff --git a/app/js/components/recipe-info.js b/app/js/components/recipe-info.js index dec088a..b7886c8 100644 --- a/app/js/components/recipe-info.js +++ b/app/js/components/recipe-info.js @@ -3,12 +3,33 @@ Vue.component("recipe-info", { props: ["recipe"], template: /*html*/` -
- +
+
+ {{ recipe.type }} +
+
+ + + Output: {{ recipe.output }} +
` }); +Vue.component("recipe-info-cooking", { + props: ["recipe"], + computed: { + item: function(){ + return mtinfo.items[this.recipe.items[0]]; + } + }, + template: /*html*/` +
+ + Cook-time: {{ recipe.width }} +
+ ` +}); Vue.component("recipe-info-normal", { props: ["recipe"],