From 6ff0e3b7b31a26a956ca4594967581ed6c34d774 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Wed, 13 Jan 2021 03:13:07 +0100 Subject: [PATCH] slowly looking somewhat decently --- cookbook/templates/test.html | 28 +++++++- cookbook/views/views.py | 4 +- vue/src/apps/RecipeView/RecipeView.vue | 90 +++++++++++++++++++------- vue/src/components/Nutrition.vue | 69 ++++++++++++++++++++ vue/src/components/ScalableNumber.vue | 1 - vue/webpack-stats.json | 2 +- 6 files changed, 166 insertions(+), 28 deletions(-) create mode 100644 vue/src/components/Nutrition.vue diff --git a/cookbook/templates/test.html b/cookbook/templates/test.html index 0d7c6dd1f..69878df87 100644 --- a/cookbook/templates/test.html +++ b/cookbook/templates/test.html @@ -1,10 +1,36 @@ {% extends "base.html" %} {% load render_bundle from webpack_loader %} {% load static %} +{% load i18n %} +{% load l10n %} +{% load custom_tags %} {% block title %}{{ recipe.name }}{% endblock %} {% block content %} + {% recipe_rating recipe request.user as rating %} +
@@ -24,7 +50,7 @@ diff --git a/vue/src/components/ScalableNumber.vue b/vue/src/components/ScalableNumber.vue index ee6438931..3f1184b5b 100644 --- a/vue/src/components/ScalableNumber.vue +++ b/vue/src/components/ScalableNumber.vue @@ -18,7 +18,6 @@ export default { }, methods: { calculateAmount: function (x) { - console.log("calculated amount") return calculateAmount(x, this.factor) } } diff --git a/vue/webpack-stats.json b/vue/webpack-stats.json index e87c30262..1a11948de 100644 --- a/vue/webpack-stats.json +++ b/vue/webpack-stats.json @@ -1 +1 @@ -{"status":"done","publicPath":"http://localhost:8080/","chunks":{"chunk-vendors":[{"name":"js/chunk-vendors.js","publicPath":"http://localhost:8080/js/chunk-vendors.js","path":"F:\\Developement\\Django\\recipes\\cookbook\\static\\vue\\js\\chunk-vendors.js"}],"recipe_view":[{"name":"js/recipe_view.js","publicPath":"http://localhost:8080/js/recipe_view.js","path":"F:\\Developement\\Django\\recipes\\cookbook\\static\\vue\\js\\recipe_view.js"},{"name":"recipe_view.c7f91f91728c11ba84da.hot-update.js","publicPath":"http://localhost:8080/recipe_view.c7f91f91728c11ba84da.hot-update.js","path":"F:\\Developement\\Django\\recipes\\cookbook\\static\\vue\\recipe_view.c7f91f91728c11ba84da.hot-update.js"}]},"error":"ModuleError","message":"Module Error (from ./node_modules/eslint-loader/index.js):\n\nF:\\Developement\\Django\\recipes\\vue\\src\\components\\ImageViewer.vue\n 25:50 error 'resolveDjangoUrl' is not defined no-undef\n\n✖ 1 problem (1 error, 0 warnings)\n"} \ No newline at end of file +{"status":"done","publicPath":"http://localhost:8080/","chunks":{"chunk-vendors":[{"name":"js/chunk-vendors.js","publicPath":"http://localhost:8080/js/chunk-vendors.js","path":"F:\\Developement\\Django\\recipes\\cookbook\\static\\vue\\js\\chunk-vendors.js"}],"recipe_view":[{"name":"js/recipe_view.js","publicPath":"http://localhost:8080/js/recipe_view.js","path":"F:\\Developement\\Django\\recipes\\cookbook\\static\\vue\\js\\recipe_view.js"},{"name":"recipe_view.33bad90b2fb6debcf069.hot-update.js","publicPath":"http://localhost:8080/recipe_view.33bad90b2fb6debcf069.hot-update.js","path":"F:\\Developement\\Django\\recipes\\cookbook\\static\\vue\\recipe_view.33bad90b2fb6debcf069.hot-update.js"}]},"error":"ModuleError","message":"Module Error (from ./node_modules/eslint-loader/index.js):\n\nF:\\Developement\\Django\\recipes\\vue\\src\\components\\ImageViewer.vue\n 25:50 error 'resolveDjangoUrl' is not defined no-undef\n\n✖ 1 problem (1 error, 0 warnings)\n"} \ No newline at end of file