diff --git a/cookbook/serializer.py b/cookbook/serializer.py index 69738a66..32fec231 100644 --- a/cookbook/serializer.py +++ b/cookbook/serializer.py @@ -191,7 +191,7 @@ class RecipeSerializer(WritableNestedModelSerializer): fields = ( 'id', 'name', 'image', 'keywords', 'steps', 'working_time', 'waiting_time', 'created_by', 'created_at', 'updated_at', - 'internal', 'nutrition', 'servings' + 'internal', 'nutrition', 'servings', 'file_path' ) read_only_fields = ['image', 'created_by', 'created_at'] diff --git a/cookbook/templates/test.html b/cookbook/templates/test.html index 26261a6e..0d7c6dd1 100644 --- a/cookbook/templates/test.html +++ b/cookbook/templates/test.html @@ -24,7 +24,7 @@ diff --git a/vue/src/components/PdfViewer.vue b/vue/src/components/PdfViewer.vue new file mode 100644 index 00000000..774b8e7f --- /dev/null +++ b/vue/src/components/PdfViewer.vue @@ -0,0 +1,28 @@ + + + diff --git a/vue/webpack-stats.json b/vue/webpack-stats.json index cda47fda..e87c3026 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"}]}} \ 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.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