From 72b4bd7e5cd55d29a592aa0f765ccede835152ee Mon Sep 17 00:00:00 2001 From: smilerz Date: Wed, 18 Aug 2021 16:57:55 -0500 Subject: [PATCH] finished food view --- cookbook/helper/recipe_search.py | 1 + cookbook/migrations/0148_food_to_tree.py | 2 +- cookbook/static/vue/css/food_list_view.css | 2 +- cookbook/static/vue/css/keyword_list_view.css | 2 +- cookbook/static/vue/js/food_list_view.js | 91 +++++++++---------- .../static/vue/js/import_response_view.js | 2 +- cookbook/static/vue/js/keyword_list_view.js | 75 ++++++++------- cookbook/static/vue/js/offline_view.js | 2 +- cookbook/static/vue/js/recipe_search_view.js | 2 +- cookbook/static/vue/js/recipe_view.js | 2 +- cookbook/static/vue/js/supermarket_view.js | 2 +- cookbook/static/vue/js/user_file_view.js | 2 +- vue/src/apps/FoodListView/FoodListView.vue | 65 +++++-------- .../apps/KeywordListView/KeywordListView.vue | 6 +- vue/src/components/FoodCard.vue | 2 +- vue/src/components/KeywordCard.vue | 2 +- vue/src/locales/en.json | 4 +- 17 files changed, 118 insertions(+), 146 deletions(-) diff --git a/cookbook/helper/recipe_search.py b/cookbook/helper/recipe_search.py index 8258ddaf..6e045493 100644 --- a/cookbook/helper/recipe_search.py +++ b/cookbook/helper/recipe_search.py @@ -12,6 +12,7 @@ from cookbook.models import Food, Keyword, Recipe, ViewLog # TODO create extensive tests to make sure ORs ANDs and various filters, sorting, etc work as expected +# TODO consider creating a simpleListRecipe API that only includes minimum of recipe info and minimal filtering def search_recipes(request, queryset, params): search_prefs = request.user.searchpreference search_string = params.get('query', '') diff --git a/cookbook/migrations/0148_food_to_tree.py b/cookbook/migrations/0148_food_to_tree.py index bfdcc351..210af252 100644 --- a/cookbook/migrations/0148_food_to_tree.py +++ b/cookbook/migrations/0148_food_to_tree.py @@ -34,7 +34,7 @@ class Migration(migrations.Migration): migrations.AddField( model_name='food', name='depth', - field=models.PositiveIntegerField(default=0), + field=models.PositiveIntegerField(default=1), preserve_default=False, ), migrations.AddField( diff --git a/cookbook/static/vue/css/food_list_view.css b/cookbook/static/vue/css/food_list_view.css index 78eb5989..0524b23c 100644 --- a/cookbook/static/vue/css/food_list_view.css +++ b/cookbook/static/vue/css/food_list_view.css @@ -1 +1 @@ -.shake[data-v-2ff37af5]{-webkit-animation:shake-data-v-2ff37af5 .82s cubic-bezier(.36,.07,.19,.97) both;animation:shake-data-v-2ff37af5 .82s cubic-bezier(.36,.07,.19,.97) both;transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden;perspective:1000px}@-webkit-keyframes shake-data-v-2ff37af5{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}@keyframes shake-data-v-2ff37af5{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}} \ No newline at end of file +.shake[data-v-153e0375]{-webkit-animation:shake-data-v-153e0375 .82s cubic-bezier(.36,.07,.19,.97) both;animation:shake-data-v-153e0375 .82s cubic-bezier(.36,.07,.19,.97) both;transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden;perspective:1000px}@-webkit-keyframes shake-data-v-153e0375{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}@keyframes shake-data-v-153e0375{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}} \ No newline at end of file diff --git a/cookbook/static/vue/css/keyword_list_view.css b/cookbook/static/vue/css/keyword_list_view.css index bb83ca13..96d5b18f 100644 --- a/cookbook/static/vue/css/keyword_list_view.css +++ b/cookbook/static/vue/css/keyword_list_view.css @@ -1 +1 @@ -.shake[data-v-eea8728a]{-webkit-animation:shake-data-v-eea8728a .82s cubic-bezier(.36,.07,.19,.97) both;animation:shake-data-v-eea8728a .82s cubic-bezier(.36,.07,.19,.97) both;transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden;perspective:1000px}@-webkit-keyframes shake-data-v-eea8728a{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}@keyframes shake-data-v-eea8728a{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}} \ No newline at end of file +.shake[data-v-bb84128a]{-webkit-animation:shake-data-v-bb84128a .82s cubic-bezier(.36,.07,.19,.97) both;animation:shake-data-v-bb84128a .82s cubic-bezier(.36,.07,.19,.97) both;transform:translateZ(0);-webkit-backface-visibility:hidden;backface-visibility:hidden;perspective:1000px}@-webkit-keyframes shake-data-v-bb84128a{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}}@keyframes shake-data-v-bb84128a{10%,90%{transform:translate3d(-1px,0,0)}20%,80%{transform:translate3d(2px,0,0)}30%,50%,70%{transform:translate3d(-4px,0,0)}40%,60%{transform:translate3d(4px,0,0)}} \ No newline at end of file diff --git a/cookbook/static/vue/js/food_list_view.js b/cookbook/static/vue/js/food_list_view.js index 1e788a74..c37b954a 100644 --- a/cookbook/static/vue/js/food_list_view.js +++ b/cookbook/static/vue/js/food_list_view.js @@ -177,12 +177,12 @@ var es_promise_finally = __webpack_require__("a79d"); // EXTERNAL MODULE: ./node_modules/vue/dist/vue.esm.js var vue_esm = __webpack_require__("a026"); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3096e903-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/apps/FoodListView/FoodListView.vue?vue&type=template&id=b81fb07c& -var FoodListViewvue_type_template_id_b81fb07c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"margin-bottom":"4vh"},attrs:{"id":"app"}},[_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-md-2 d-none d-md-block"}),_c('div',{staticClass:"col-xl-8 col-12"},[_c('div',{staticClass:"container-fluid d-flex flex-column flex-grow-1",class:{'vh-100' : _vm.show_split}},[_c('div',{staticClass:"row flex-shrink-0"},[_c('div',{staticClass:"col col-md-12"},[_c('b-collapse',{staticClass:"mt-2",attrs:{"id":"collapse_advanced"},model:{value:(_vm.advanced_visible),callback:function ($$v) {_vm.advanced_visible=$$v},expression:"advanced_visible"}},[_c('div',{staticClass:"card"},[_c('div',{staticClass:"card-body"},[_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-md-3",staticStyle:{"margin-top":"1vh"}},[_c('div',{staticClass:"btn btn-primary btn-block text-uppercase",on:{"click":function($event){return _vm.startAction({'action':'new'})}}},[_vm._v(" "+_vm._s(this.$t('New_Food'))+" ")])]),_c('div',{staticClass:"col-md-3",staticStyle:{"margin-top":"1vh"}},[_c('button',{staticClass:"btn btn-primary btn-block text-uppercase",on:{"click":_vm.resetSearch}},[_vm._v(" "+_vm._s(this.$t('Reset_Search'))+" ")])]),_c('div',{staticClass:"col-md-3",staticStyle:{"position":"relative","margin-top":"1vh"}},[_c('b-form-checkbox',{staticClass:"shadow-none",staticStyle:{"position":"relative","top":"50%","transform":"translateY(-50%)"},attrs:{"name":"check-button","switch":""},model:{value:(_vm.show_split),callback:function ($$v) {_vm.show_split=$$v},expression:"show_split"}},[_vm._v(" "+_vm._s(this.$t('show_split_screen'))+" ")])],1)])])])])],1)]),_c('div',{staticClass:"row flex-shrink-0"},[_c('div',{staticClass:"col col-md"},[_c('b-input-group',{staticClass:"mt-3"},[_c('b-input',{staticClass:"form-control",attrs:{"placeholder":this.$t('Search')},model:{value:(_vm.search_input),callback:function ($$v) {_vm.search_input=$$v},expression:"search_input"}}),_c('b-input-group-append',[_c('b-button',{directives:[{name:"b-toggle",rawName:"v-b-toggle.collapse_advanced",modifiers:{"collapse_advanced":true}}],staticClass:"shadow-none",attrs:{"variant":"primary"}},[(!_vm.advanced_visible)?_c('i',{staticClass:"fas fa-caret-down"}):_vm._e(),(_vm.advanced_visible)?_c('i',{staticClass:"fas fa-caret-up"}):_vm._e()])],1)],1)],1),(_vm.show_split)?_c('div',{staticClass:"col col-md"},[_c('b-input-group',{staticClass:"mt-3"},[_c('b-input',{staticClass:"form-control",attrs:{"placeholder":this.$t('Search')},model:{value:(_vm.search_input2),callback:function ($$v) {_vm.search_input2=$$v},expression:"search_input2"}})],1)],1):_vm._e()]),_c('div',{staticClass:"row",class:{'overflow-hidden' : _vm.show_split},staticStyle:{"margin-top":"2vh"}},[_c('div',{staticClass:"col col-md",class:{'mh-100 overflow-auto' : _vm.show_split}},[_vm._l((_vm.foods),function(f){return _c('food-card',{key:f.id,attrs:{"food":f,"draggable":true},on:{"item-action":function($event){return _vm.startAction($event, 'left')}}})}),_c('infinite-loading',{attrs:{"identifier":_vm.left,"spinner":"waveDots"},on:{"infinite":function($event){return _vm.infiniteHandler($event, 'left')}}})],2),(_vm.show_split)?_c('div',{staticClass:"col col-md mh-100 overflow-auto "},[_vm._l((_vm.foods2),function(f){return _c('food-card',{key:f.id,attrs:{"food":f,"draggable":"true"},on:{"item-action":function($event){return _vm.startAction($event, 'right')}}})}),_c('infinite-loading',{attrs:{"identifier":_vm.right,"spinner":"waveDots"},on:{"infinite":function($event){return _vm.infiniteHandler($event, 'right')}}})],2):_vm._e()])])]),_c('div',{staticClass:"col-md-2 d-none d-md-block"})]),_c('b-modal',{staticClass:"modal",attrs:{"id":'id_modal_food_edit',"title":this.$t('Edit_Food'),"ok-title":this.$t('Save'),"cancel-title":this.$t('Cancel')},on:{"ok":_vm.saveFood}},[_c('form',[_c('label',{attrs:{"for":"id_food_name_edit"}},[_vm._v(_vm._s(this.$t('Name')))]),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.this_item.name),expression:"this_item.name"}],staticClass:"form-control",attrs:{"type":"text","id":"id_food_name_edit"},domProps:{"value":(_vm.this_item.name)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.this_item, "name", $event.target.value)}}}),_c('label',{attrs:{"for":"id_food_description_edit"}},[_vm._v(_vm._s(this.$t('Description')))]),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.this_item.description),expression:"this_item.description"}],staticClass:"form-control",attrs:{"type":"text","id":"id_food_description_edit"},domProps:{"value":(_vm.this_item.description)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.this_item, "description", $event.target.value)}}}),_c('label',{attrs:{"for":"id_food_recipe_edit"}},[_vm._v(_vm._s(this.$t('Recipe')))]),_c('generic-multiselect',{staticStyle:{"flex-grow":"1","flex-shrink":"1","flex-basis":"0"},attrs:{"label":"name","initial_selection":[_vm.this_item.recipe],"search_function":"listRecipes","multiple":false,"sticky_options":[{'id': null,'name': _vm.$t('None')}],"placeholder":this.$t('Search')},on:{"change":function($event){_vm.this_item.recipe=$event.val}}}),_c('div',{staticClass:"form-group form-check"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.this_item.ignore_shopping),expression:"this_item.ignore_shopping"}],staticClass:"form-check-input",attrs:{"type":"checkbox","id":"id_food_ignore_edit"},domProps:{"checked":Array.isArray(_vm.this_item.ignore_shopping)?_vm._i(_vm.this_item.ignore_shopping,null)>-1:(_vm.this_item.ignore_shopping)},on:{"change":function($event){var $$a=_vm.this_item.ignore_shopping,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.this_item, "ignore_shopping", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.this_item, "ignore_shopping", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.this_item, "ignore_shopping", $$c)}}}}),_c('label',{staticClass:"form-check-label",attrs:{"for":"id_food_ignore_edit"}},[_vm._v(_vm._s(this.$t('Ignore_Shopping')))])]),_c('label',{attrs:{"for":"id_food_category_edit"}},[_vm._v(_vm._s(this.$t('Shopping_Category')))]),_c('generic-multiselect',{staticStyle:{"flex-grow":"1","flex-shrink":"1","flex-basis":"0"},attrs:{"label":"name","initial_selection":[_vm.this_item.supermarket_category],"search_function":"listSupermarketCategorys","multiple":false,"sticky_options":[{'id': null,'name': _vm.$t('None')}],"placeholder":this.$t('Shopping_Category')},on:{"change":function($event){_vm.this_item.supermarket_category=$event.val}}})],1)]),_c('b-modal',{staticClass:"modal",attrs:{"id":'id_modal_food_delete',"title":this.$t('Delete_Food'),"ok-title":this.$t('Delete'),"cancel-title":this.$t('Cancel')},on:{"ok":function($event){return _vm.delFood(_vm.this_item.id)}}},[_vm._v(" "+_vm._s(this.$t("delete_confimation", {'kw': _vm.this_item.name}))+" "+_vm._s(_vm.this_item.name)+" ")]),_c('b-modal',{staticClass:"modal",attrs:{"id":'id_modal_food_move',"title":this.$t('Move_Food'),"ok-title":this.$t('Move'),"cancel-title":this.$t('Cancel')},on:{"ok":function($event){return _vm.moveFood(_vm.this_item.id, _vm.this_item.target.id)}}},[_vm._v(" "+_vm._s(this.$t("move_selection", {'child': _vm.this_item.name}))+" "),_c('generic-multiselect',{staticStyle:{"flex-grow":"1","flex-shrink":"1","flex-basis":"0"},attrs:{"label":"name","search_function":"listFood","multiple":false,"sticky_options":[{'id': 0,'name': _vm.$t('Root')}],"tree_api":true,"placeholder":this.$t('Search')},on:{"change":function($event){_vm.this_item.target=$event.val}}})],1),_c('b-modal',{staticClass:"modal",attrs:{"id":'id_modal_food_merge',"title":this.$t('Merge_Food'),"ok-title":this.$t('Merge'),"cancel-title":this.$t('Cancel')},on:{"ok":function($event){return _vm.mergeFood(_vm.this_item.id, _vm.this_item.target.id)}}},[_vm._v(" "+_vm._s(this.$t("merge_selection", {'source': _vm.this_item.name, 'type': this.$t('food')}))+" "),_c('generic-multiselect',{staticStyle:{"flex-grow":"1","flex-shrink":"1","flex-basis":"0"},attrs:{"label":"name","search_function":"listFoods","multiple":false,"tree_api":true,"placeholder":this.$t('Search')},on:{"change":function($event){_vm.this_item.target=$event.val}}})],1)],1)} +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3096e903-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/apps/FoodListView/FoodListView.vue?vue&type=template&id=af992982& +var FoodListViewvue_type_template_id_af992982_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"margin-bottom":"4vh"},attrs:{"id":"app"}},[_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-md-2 d-none d-md-block"}),_c('div',{staticClass:"col-xl-8 col-12"},[_c('div',{staticClass:"container-fluid d-flex flex-column flex-grow-1",class:{'vh-100' : _vm.show_split}},[_c('div',{staticClass:"row flex-shrink-0"},[_c('div',{staticClass:"col col-md-12"},[_c('b-collapse',{staticClass:"mt-2",attrs:{"id":"collapse_advanced"},model:{value:(_vm.advanced_visible),callback:function ($$v) {_vm.advanced_visible=$$v},expression:"advanced_visible"}},[_c('div',{staticClass:"card"},[_c('div',{staticClass:"card-body"},[_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-md-3",staticStyle:{"margin-top":"1vh"}},[_c('div',{staticClass:"btn btn-primary btn-block text-uppercase",on:{"click":function($event){return _vm.startAction({'action':'new'})}}},[_vm._v(" "+_vm._s(this.$t('New_Food'))+" ")])]),_c('div',{staticClass:"col-md-3",staticStyle:{"margin-top":"1vh"}},[_c('button',{staticClass:"btn btn-primary btn-block text-uppercase",on:{"click":_vm.resetSearch}},[_vm._v(" "+_vm._s(this.$t('Reset_Search'))+" ")])]),_c('div',{staticClass:"col-md-3",staticStyle:{"position":"relative","margin-top":"1vh"}},[_c('b-form-checkbox',{staticClass:"shadow-none",staticStyle:{"position":"relative","top":"50%","transform":"translateY(-50%)"},attrs:{"name":"check-button","switch":""},model:{value:(_vm.show_split),callback:function ($$v) {_vm.show_split=$$v},expression:"show_split"}},[_vm._v(" "+_vm._s(this.$t('show_split_screen'))+" ")])],1)])])])])],1)]),_c('div',{staticClass:"row flex-shrink-0"},[_c('div',{staticClass:"col col-md"},[_c('b-input-group',{staticClass:"mt-3"},[_c('b-input',{staticClass:"form-control",attrs:{"placeholder":this.$t('Search')},model:{value:(_vm.search_input),callback:function ($$v) {_vm.search_input=$$v},expression:"search_input"}}),_c('b-input-group-append',[_c('b-button',{directives:[{name:"b-toggle",rawName:"v-b-toggle.collapse_advanced",modifiers:{"collapse_advanced":true}}],staticClass:"shadow-none",attrs:{"variant":"primary"}},[(!_vm.advanced_visible)?_c('i',{staticClass:"fas fa-caret-down"}):_vm._e(),(_vm.advanced_visible)?_c('i',{staticClass:"fas fa-caret-up"}):_vm._e()])],1)],1)],1),(_vm.show_split)?_c('div',{staticClass:"col col-md"},[_c('b-input-group',{staticClass:"mt-3"},[_c('b-input',{staticClass:"form-control",attrs:{"placeholder":this.$t('Search')},model:{value:(_vm.search_input2),callback:function ($$v) {_vm.search_input2=$$v},expression:"search_input2"}})],1)],1):_vm._e()]),_c('div',{staticClass:"row",class:{'overflow-hidden' : _vm.show_split},staticStyle:{"margin-top":"2vh"}},[_c('div',{staticClass:"col col-md",class:{'mh-100 overflow-auto' : _vm.show_split}},[_vm._l((_vm.foods),function(f){return _c('food-card',{key:f.id,attrs:{"food":f,"draggable":true},on:{"item-action":function($event){return _vm.startAction($event, 'left')}}})}),_c('infinite-loading',{attrs:{"identifier":_vm.left,"spinner":"waveDots"},on:{"infinite":function($event){return _vm.infiniteHandler($event, 'left')}}})],2),(_vm.show_split)?_c('div',{staticClass:"col col-md mh-100 overflow-auto "},[_vm._l((_vm.foods2),function(f){return _c('food-card',{key:f.id,attrs:{"food":f,"draggable":"true"},on:{"item-action":function($event){return _vm.startAction($event, 'right')}}})}),_c('infinite-loading',{attrs:{"identifier":_vm.right,"spinner":"waveDots"},on:{"infinite":function($event){return _vm.infiniteHandler($event, 'right')}}})],2):_vm._e()])])]),_c('div',{staticClass:"col-md-2 d-none d-md-block"})]),_c('b-modal',{staticClass:"modal",attrs:{"id":'id_modal_food_edit',"title":this.$t('Edit_Food'),"ok-title":this.$t('Save'),"cancel-title":this.$t('Cancel')},on:{"ok":_vm.saveFood}},[_c('form',[_c('label',{attrs:{"for":"id_food_name_edit"}},[_vm._v(_vm._s(this.$t('Name')))]),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.this_item.name),expression:"this_item.name"}],staticClass:"form-control",attrs:{"type":"text","id":"id_food_name_edit"},domProps:{"value":(_vm.this_item.name)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.this_item, "name", $event.target.value)}}}),_c('label',{attrs:{"for":"id_food_description_edit"}},[_vm._v(_vm._s(this.$t('Description')))]),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.this_item.description),expression:"this_item.description"}],staticClass:"form-control",attrs:{"type":"text","id":"id_food_description_edit"},domProps:{"value":(_vm.this_item.description)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.this_item, "description", $event.target.value)}}}),_c('label',{attrs:{"for":"id_food_recipe_edit"}},[_vm._v(_vm._s(this.$t('Recipe')))]),_c('generic-multiselect',{staticStyle:{"flex-grow":"1","flex-shrink":"1","flex-basis":"0"},attrs:{"label":"name","initial_selection":[_vm.this_item.recipe],"search_function":"listRecipes","multiple":false,"sticky_options":[{'id': null,'name': _vm.$t('None')}],"placeholder":this.$t('Search')},on:{"change":function($event){_vm.this_item.recipe=$event.val}}}),_c('div',{staticClass:"form-group form-check"},[_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.this_item.ignore_shopping),expression:"this_item.ignore_shopping"}],staticClass:"form-check-input",attrs:{"type":"checkbox","id":"id_food_ignore_edit"},domProps:{"checked":Array.isArray(_vm.this_item.ignore_shopping)?_vm._i(_vm.this_item.ignore_shopping,null)>-1:(_vm.this_item.ignore_shopping)},on:{"change":function($event){var $$a=_vm.this_item.ignore_shopping,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.$set(_vm.this_item, "ignore_shopping", $$a.concat([$$v])))}else{$$i>-1&&(_vm.$set(_vm.this_item, "ignore_shopping", $$a.slice(0,$$i).concat($$a.slice($$i+1))))}}else{_vm.$set(_vm.this_item, "ignore_shopping", $$c)}}}}),_c('label',{staticClass:"form-check-label",attrs:{"for":"id_food_ignore_edit"}},[_vm._v(_vm._s(this.$t('Ignore_Shopping')))])]),_c('label',{attrs:{"for":"id_food_category_edit"}},[_vm._v(_vm._s(this.$t('Shopping_Category')))]),_c('generic-multiselect',{staticStyle:{"flex-grow":"1","flex-shrink":"1","flex-basis":"0"},attrs:{"label":"name","initial_selection":[_vm.this_item.supermarket_category],"search_function":"listSupermarketCategorys","multiple":false,"sticky_options":[{'id': null,'name': _vm.$t('None')}],"placeholder":this.$t('Shopping_Category')},on:{"change":function($event){_vm.this_item.supermarket_category=$event.val}}})],1)]),_c('b-modal',{staticClass:"modal",attrs:{"id":'id_modal_food_delete',"title":this.$t('Delete_Food'),"ok-title":this.$t('Delete'),"cancel-title":this.$t('Cancel')},on:{"ok":function($event){return _vm.delFood(_vm.this_item.id)}}},[_vm._v(" "+_vm._s(this.$t("delete_confimation", {'kw': _vm.this_item.name}))+" "+_vm._s(_vm.this_item.name)+" ")]),_c('b-modal',{staticClass:"modal",attrs:{"id":'id_modal_food_move',"title":this.$t('Move_Food'),"ok-title":this.$t('Move'),"cancel-title":this.$t('Cancel')},on:{"ok":function($event){return _vm.moveFood(_vm.this_item.id, _vm.this_item.target.id)}}},[_vm._v(" "+_vm._s(this.$t("move_selection", {'child': _vm.this_item.name}))+" "),_c('generic-multiselect',{staticStyle:{"flex-grow":"1","flex-shrink":"1","flex-basis":"0"},attrs:{"label":"name","search_function":"listFoods","multiple":false,"sticky_options":[{'id': 0,'name': _vm.$t('Root')}],"tree_api":true,"placeholder":this.$t('Search')},on:{"change":function($event){_vm.this_item.target=$event.val}}})],1),_c('b-modal',{staticClass:"modal",attrs:{"id":'id_modal_food_merge',"title":this.$t('Merge_Food'),"ok-title":this.$t('Merge'),"cancel-title":this.$t('Cancel')},on:{"ok":function($event){return _vm.mergeFood(_vm.this_item.id, _vm.this_item.target.id)}}},[_vm._v(" "+_vm._s(this.$t("merge_selection", {'source': _vm.this_item.name, 'type': this.$t('food')}))+" "),_c('generic-multiselect',{staticStyle:{"flex-grow":"1","flex-shrink":"1","flex-basis":"0"},attrs:{"label":"name","search_function":"listFoods","multiple":false,"tree_api":true,"placeholder":this.$t('Search')},on:{"change":function($event){_vm.this_item.target=$event.val}}})],1)],1)} var staticRenderFns = [] -// CONCATENATED MODULE: ./src/apps/FoodListView/FoodListView.vue?vue&type=template&id=b81fb07c& +// CONCATENATED MODULE: ./src/apps/FoodListView/FoodListView.vue?vue&type=template&id=af992982& // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js + 2 modules var createForOfIteratorHelper = __webpack_require__("b85c"); @@ -225,12 +225,12 @@ var utils = __webpack_require__("fa7d"); // EXTERNAL MODULE: ./src/utils/openapi/api.ts + 2 modules var api = __webpack_require__("2b2d"); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3096e903-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FoodCard.vue?vue&type=template&id=2ff37af5&scoped=true& -var FoodCardvue_type_template_id_2ff37af5_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"row":""}},[_c('b-card',{class:{'border border-primary' : _vm.over, 'shake': _vm.isError},staticStyle:{"height":"10vh"},style:({'cursor:grab' : _vm.draggable}),attrs:{"no-body":"","d-flex":"","flex-column":"","refs":"foodCard","draggable":_vm.draggable},on:{"dragover":function($event){$event.preventDefault();},"dragenter":[function($event){$event.preventDefault();},function($event){return _vm.handleDragEnter($event)}],"dragstart":function($event){return _vm.handleDragStart($event)},"dragleave":function($event){return _vm.handleDragLeave($event)},"drop":function($event){return _vm.handleDragDrop($event)}}},[_c('b-row',{staticStyle:{"height":"inherit"},attrs:{"no-gutters":""}},[_c('b-col',{staticStyle:{"height":"inherit"},attrs:{"no-gutters":"","md":"3"}},[_c('b-card-img-lazy',{staticStyle:{"object-fit":"cover","height":"10vh"},attrs:{"src":_vm.food_image,"alt":_vm.$t('Recipe_Image')}})],1),_c('b-col',{staticStyle:{"height":"inherit"},attrs:{"no-gutters":"","md":"9"}},[_c('b-card-body',{staticClass:"m-0 py-0",staticStyle:{"height":"inherit"}},[_c('b-card-text',{staticClass:" h-100 my-0 d-flex flex-column",staticStyle:{"text-overflow":"ellipsis"}},[_c('h5',{staticClass:"m-0 mt-1 text-truncate"},[_vm._v(_vm._s(_vm.food.name))]),_c('div',{staticClass:"m-0 text-truncate"},[_vm._v(_vm._s(_vm.food.description))]),_c('div',{staticClass:"mt-auto mb-1 d-flex flex-row justify-content-end"},[(_vm.food.numchild !=0)?_c('div',{staticClass:"mx-2 btn btn-link btn-sm",staticStyle:{"z-index":"800"},on:{"click":function($event){return _vm.$emit('item-action',{'action':'get-children','source':_vm.food})}}},[(!_vm.food.expanded)?_c('div',[_vm._v(_vm._s(_vm.food.numchild)+" "+_vm._s(_vm.$t('Foods')))]):_c('div',[_vm._v(_vm._s(_vm.$t('Hide Foods')))])]):_vm._e(),_c('div',{staticClass:"mx-2 btn btn-link btn-sm",staticStyle:{"z-index":"800"},on:{"click":function($event){return _vm.$emit('item-action',{'action':'get-recipes','source':_vm.food})}}},[(!_vm.food.show_recipes)?_c('div',[_vm._v(_vm._s(_vm.food.numrecipe)+" "+_vm._s(_vm.$t('Recipes')))]):_c('div',[_vm._v(_vm._s(_vm.$t('Hide Recipes')))])])])])],1)],1),_c('div',{staticClass:"card-img-overlay justify-content-right h-25 m-0 p-0 text-right"},[(_vm.food.recipe)?_c('b-button',{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{"hover":true}}],staticClass:" btn fas fa-book-open p-0 border-0",attrs:{"title":_vm.food.recipe.name,"variant":"link","href":_vm.food.recipe.url}}):_vm._e(),_c('generic-context-menu',{staticClass:"p-0",attrs:{"show_merge":true,"show_move":true},on:{"item-action":function($event){return _vm.$emit('item-action', {'action': $event, 'source': _vm.food})}}})],1)],1)],1),(_vm.food.expanded)?_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-md-11 offset-md-1"},_vm._l((_vm.food.children),function(child){return _c('food-card',{key:child.id,attrs:{"food":child,"draggable":"true"},on:{"item-action":function($event){return _vm.$emit('item-action', $event)}}})}),1)]):_vm._e(),(_vm.food.show_recipes)?_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-md-11 offset-md-1"},[_c('div',{staticStyle:{"display":"grid","grid-template-columns":"repeat(auto-fit, minmax(200px, 1fr))","grid-gap":"1rem"}},_vm._l((_vm.food.recipes),function(r){return _c('recipe-card',{key:r.id,attrs:{"recipe":r}})}),1)])]):_vm._e(),_c('b-list-group',{directives:[{name:"show",rawName:"v-show",value:(_vm.show_menu),expression:"show_menu"},{name:"on-clickaway",rawName:"v-on-clickaway",value:(_vm.closeMenu),expression:"closeMenu"}],ref:"tooltip",staticStyle:{"z-index":"999","cursor":"pointer"},attrs:{"variant":"light"}},[_c('b-list-group-item',{attrs:{"action":""},on:{"click":function($event){_vm.$emit('item-action',{'action': 'move', 'target': _vm.food, 'source': _vm.source}); _vm.closeMenu()}}},[_vm._v(" "+_vm._s(_vm.$t('Move'))+": "+_vm._s(_vm.$t('move_confirmation', {'child': _vm.source.name,'parent':_vm.food.name}))+" ")]),_c('b-list-group-item',{attrs:{"action":""},on:{"click":function($event){_vm.$emit('item-action',{'action': 'merge', 'target': _vm.food, 'source': _vm.source}); _vm.closeMenu()}}},[_vm._v(" "+_vm._s(_vm.$t('Merge'))+": "+_vm._s(_vm.$t('merge_confirmation', {'source': _vm.source.name,'target':_vm.food.name}))+" ")]),_c('b-list-group-item',{attrs:{"action":""},on:{"click":function($event){return _vm.closeMenu()}}},[_vm._v(" "+_vm._s(_vm.$t('Cancel'))+" ")])],1)],1)} -var FoodCardvue_type_template_id_2ff37af5_scoped_true_staticRenderFns = [] +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3096e903-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/FoodCard.vue?vue&type=template&id=153e0375&scoped=true& +var FoodCardvue_type_template_id_153e0375_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"row":""}},[_c('b-card',{class:{'border border-primary' : _vm.over, 'shake': _vm.isError},staticStyle:{"height":"10vh"},style:({'cursor:grab' : _vm.draggable}),attrs:{"no-body":"","d-flex":"","flex-column":"","refs":"foodCard","draggable":_vm.draggable},on:{"dragover":function($event){$event.preventDefault();},"dragenter":[function($event){$event.preventDefault();},function($event){return _vm.handleDragEnter($event)}],"dragstart":function($event){return _vm.handleDragStart($event)},"dragleave":function($event){return _vm.handleDragLeave($event)},"drop":function($event){return _vm.handleDragDrop($event)}}},[_c('b-row',{staticStyle:{"height":"inherit"},attrs:{"no-gutters":""}},[_c('b-col',{staticStyle:{"height":"inherit"},attrs:{"no-gutters":"","md":"3"}},[_c('b-card-img-lazy',{staticStyle:{"object-fit":"cover","height":"10vh"},attrs:{"src":_vm.food_image,"alt":_vm.$t('Recipe_Image')}})],1),_c('b-col',{staticStyle:{"height":"inherit"},attrs:{"no-gutters":"","md":"9"}},[_c('b-card-body',{staticClass:"m-0 py-0",staticStyle:{"height":"inherit"}},[_c('b-card-text',{staticClass:" h-100 my-0 d-flex flex-column",staticStyle:{"text-overflow":"ellipsis"}},[_c('h5',{staticClass:"m-0 mt-1 text-truncate"},[_vm._v(_vm._s(_vm.food.name))]),_c('div',{staticClass:"m-0 text-truncate"},[_vm._v(_vm._s(_vm.food.description))]),_c('div',{staticClass:"mt-auto mb-1 d-flex flex-row justify-content-end"},[(_vm.food.numchild !=0)?_c('div',{staticClass:"mx-2 btn btn-link btn-sm",staticStyle:{"z-index":"800"},on:{"click":function($event){return _vm.$emit('item-action',{'action':'get-children','source':_vm.food})}}},[(!_vm.food.expanded)?_c('div',[_vm._v(_vm._s(_vm.food.numchild)+" "+_vm._s(_vm.$t('Foods')))]):_c('div',[_vm._v(_vm._s(_vm.$t('Hide Foods')))])]):_vm._e(),_c('div',{staticClass:"mx-2 btn btn-link btn-sm",staticStyle:{"z-index":"800"},on:{"click":function($event){return _vm.$emit('item-action',{'action':'get-recipes','source':_vm.food})}}},[(!_vm.food.show_recipes)?_c('div',[_vm._v(_vm._s(_vm.food.numrecipe)+" "+_vm._s(_vm.$t('Recipes')))]):_c('div',[_vm._v(_vm._s(_vm.$t('Hide Recipes')))])])])])],1)],1),_c('div',{staticClass:"card-img-overlay justify-content-right h-25 m-0 p-0 text-right"},[(_vm.food.recipe)?_c('b-button',{directives:[{name:"b-tooltip",rawName:"v-b-tooltip.hover",modifiers:{"hover":true}}],staticClass:" btn fas fa-book-open p-0 border-0",attrs:{"title":_vm.food.recipe.name,"variant":"link","href":_vm.food.recipe.url}}):_vm._e(),_c('generic-context-menu',{staticClass:"p-0",attrs:{"show_merge":true,"show_move":true},on:{"item-action":function($event){return _vm.$emit('item-action', {'action': $event, 'source': _vm.food})}}})],1)],1)],1),(_vm.food.expanded)?_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-md-11 offset-md-1"},_vm._l((_vm.food.children),function(child){return _c('food-card',{key:child.id,attrs:{"food":child,"draggable":"true"},on:{"item-action":function($event){return _vm.$emit('item-action', $event)}}})}),1)]):_vm._e(),(_vm.food.show_recipes)?_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-md-11 offset-md-1"},[_c('div',{staticStyle:{"display":"grid","grid-template-columns":"repeat(auto-fit, minmax(200px, 1fr))","grid-gap":"1rem"}},_vm._l((_vm.food.recipes),function(r){return _c('recipe-card',{key:r.id,attrs:{"recipe":r}})}),1)])]):_vm._e(),_c('b-list-group',{directives:[{name:"show",rawName:"v-show",value:(_vm.show_menu),expression:"show_menu"},{name:"on-clickaway",rawName:"v-on-clickaway",value:(_vm.closeMenu),expression:"closeMenu"}],ref:"tooltip",staticStyle:{"z-index":"999","cursor":"pointer"},attrs:{"variant":"light"}},[_c('b-list-group-item',{attrs:{"action":""},on:{"click":function($event){_vm.$emit('item-action',{'action': 'move', 'target': _vm.food, 'source': _vm.source}); _vm.closeMenu()}}},[_vm._v(" "+_vm._s(_vm.$t('Move'))+": "+_vm._s(_vm.$t('move_confirmation', {'child': _vm.source.name,'parent':_vm.food.name}))+" ")]),_c('b-list-group-item',{attrs:{"action":""},on:{"click":function($event){_vm.$emit('item-action',{'action': 'merge', 'target': _vm.food, 'source': _vm.source}); _vm.closeMenu()}}},[_vm._v(" "+_vm._s(_vm.$t('Merge'))+": "+_vm._s(_vm.$t('merge_confirmation', {'source': _vm.source.name,'target':_vm.food.name}))+" ")]),_c('b-list-group-item',{attrs:{"action":""},on:{"click":function($event){return _vm.closeMenu()}}},[_vm._v(" "+_vm._s(_vm.$t('Cancel'))+" ")])],1)],1)} +var FoodCardvue_type_template_id_153e0375_scoped_true_staticRenderFns = [] -// CONCATENATED MODULE: ./src/components/FoodCard.vue?vue&type=template&id=2ff37af5&scoped=true& +// CONCATENATED MODULE: ./src/components/FoodCard.vue?vue&type=template&id=153e0375&scoped=true& // EXTERNAL MODULE: ./src/components/GenericContextMenu.vue + 4 modules var GenericContextMenu = __webpack_require__("5eeb"); @@ -390,7 +390,7 @@ var lib_popper = __webpack_require__("39c3"); if (source.id != this.food.id) { this.source = source; var menuLocation = { - getBoundingClientRect: this.generateLocation(e.pageX, e.pageY) + getBoundingClientRect: this.generateLocation(e.clientX, e.clientY) }; this.show_menu = true; var popper = Object(lib_popper["a" /* createPopper */])(menuLocation, this.dragMenu, { @@ -440,8 +440,8 @@ var lib_popper = __webpack_require__("39c3"); }); // CONCATENATED MODULE: ./src/components/FoodCard.vue?vue&type=script&lang=js& /* harmony default export */ var components_FoodCardvue_type_script_lang_js_ = (FoodCardvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/components/FoodCard.vue?vue&type=style&index=0&id=2ff37af5&scoped=true&lang=css& -var FoodCardvue_type_style_index_0_id_2ff37af5_scoped_true_lang_css_ = __webpack_require__("f941"); +// EXTERNAL MODULE: ./src/components/FoodCard.vue?vue&type=style&index=0&id=153e0375&scoped=true&lang=css& +var FoodCardvue_type_style_index_0_id_153e0375_scoped_true_lang_css_ = __webpack_require__("45ab"); // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__("2877"); @@ -457,11 +457,11 @@ var componentNormalizer = __webpack_require__("2877"); var component = Object(componentNormalizer["a" /* default */])( components_FoodCardvue_type_script_lang_js_, - FoodCardvue_type_template_id_2ff37af5_scoped_true_render, - FoodCardvue_type_template_id_2ff37af5_scoped_true_staticRenderFns, + FoodCardvue_type_template_id_153e0375_scoped_true_render, + FoodCardvue_type_template_id_153e0375_scoped_true_staticRenderFns, false, null, - "2ff37af5", + "153e0375", null ) @@ -774,7 +774,6 @@ vue_esm["default"].use(esm["a" /* BootstrapVue */]); this.$bvModal.show('id_modal_food_edit'); } else if (e.action == 'edit') { this.this_item = source; - console.log('start edit', this.this_item); this.$bvModal.show('id_modal_food_edit'); } else if (e.action === 'move') { this.this_item = source; @@ -809,25 +808,20 @@ vue_esm["default"].use(esm["a" /* BootstrapVue */]); } }, saveFood: function saveFood() { - var _this$this_item$super, - _this$this_item$super2, - _this$this_item$super3, - _this$this_item$recip, + var _this$this_item$recip, _this$this_item$recip2, - _this$this_item$super4, - _this$this_item$super5, + _this$this_item$super, + _this$this_item$super2, _this = this; var apiClient = new api["a" /* ApiApiFactory */](); - console.log('this item', (_this$this_item$super = this.this_item.supermarket_category) === null || _this$this_item$super === void 0 ? void 0 : _this$this_item$super.id, (_this$this_item$super2 = (_this$this_item$super3 = this.this_item.supermarket_category) === null || _this$this_item$super3 === void 0 ? void 0 : _this$this_item$super3.id) !== null && _this$this_item$super2 !== void 0 ? _this$this_item$super2 : null); var food = { name: this.this_item.name, description: this.this_item.description, recipe: (_this$this_item$recip = (_this$this_item$recip2 = this.this_item.recipe) === null || _this$this_item$recip2 === void 0 ? void 0 : _this$this_item$recip2.id) !== null && _this$this_item$recip !== void 0 ? _this$this_item$recip : null, ignore_shopping: this.this_item.ignore_shopping, - supermarket_category: (_this$this_item$super4 = (_this$this_item$super5 = this.this_item.supermarket_category) === null || _this$this_item$super5 === void 0 ? void 0 : _this$this_item$super5.id) !== null && _this$this_item$super4 !== void 0 ? _this$this_item$super4 : null + supermarket_category: (_this$this_item$super = (_this$this_item$super2 = this.this_item.supermarket_category) === null || _this$this_item$super2 === void 0 ? void 0 : _this$this_item$super2.id) !== null && _this$this_item$super !== void 0 ? _this$this_item$super : null }; - console.log('food', food); if (!this.this_item.id) { // if there is no item id assume its a new item @@ -1109,19 +1103,16 @@ vue_esm["default"].use(esm["a" /* BootstrapVue */]); }); }, destroyCard: function destroyCard(id) { + var _fd$parent; + var fd = this.findFood(this.foods, id); var fd2 = this.findFood(this.foods2, id); var p_id = undefined; - - if (fd) { - p_id = fd.parent; - } else if (fd2) { - p_id = fd2.parent; - } + p_id = (_fd$parent = fd === null || fd === void 0 ? void 0 : fd.parent) !== null && _fd$parent !== void 0 ? _fd$parent : fd2.parent; if (p_id) { var parent = this.findFood(this.foods, p_id); - var parent2 = this.findFood(this.v2, p_id); + var parent2 = this.findFood(this.foods2, p_id); if (parent) { vue_esm["default"].set(parent, 'numchild', parent.numchild - 1); @@ -1172,7 +1163,7 @@ var vue_multiselect_minvue_type_style_index_0_lang_css_ = __webpack_require__("6 var FoodListView_component = Object(componentNormalizer["a" /* default */])( FoodListView_FoodListViewvue_type_script_lang_js_, - FoodListViewvue_type_template_id_b81fb07c_render, + FoodListViewvue_type_template_id_af992982_render, staticRenderFns, false, null, @@ -1203,6 +1194,13 @@ new vue_esm["default"]({ /***/ }), +/***/ "11e0": +/***/ (function(module, exports, __webpack_require__) { + +// extracted by mini-css-extract-plugin + +/***/ }), + /***/ "2b2d": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -5247,6 +5245,17 @@ common_assertParamExists('updateViewLog','id',id);localVarPath="/api/view-log/{i * @memberof ApiApi */ApiApi.prototype.updateViewLog=function(id,viewLog,options){var _this=this;return api_ApiApiFp(this.configuration).updateViewLog(id,viewLog,options).then(function(request){return request(_this.axios,_this.basePath);});};return ApiApi;}(base_BaseAPI); +/***/ }), + +/***/ "45ab": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FoodCard_vue_vue_type_style_index_0_id_153e0375_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("11e0"); +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FoodCard_vue_vue_type_style_index_0_id_153e0375_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FoodCard_vue_vue_type_style_index_0_id_153e0375_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__); +/* unused harmony reexport * */ + + /***/ }), /***/ "4678": @@ -6249,13 +6258,6 @@ var component = Object(componentNormalizer["a" /* default */])( /***/ }), -/***/ "90a7": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - /***/ "9225": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -6511,18 +6513,7 @@ module.exports = JSON.parse("{\"err_fetching_resource\":\"\",\"err_creating_reso /***/ "edd4": /***/ (function(module) { -module.exports = JSON.parse("{\"err_fetching_resource\":\"There was an error fetching a resource!\",\"err_creating_resource\":\"There was an error creating a resource!\",\"err_updating_resource\":\"There was an error updating a resource!\",\"err_deleting_resource\":\"There was an error deleting a resource!\",\"success_fetching_resource\":\"Successfully fetched a resource!\",\"success_creating_resource\":\"Successfully created a resource!\",\"success_updating_resource\":\"Successfully updated a resource!\",\"success_deleting_resource\":\"Successfully deleted a resource!\",\"import_running\":\"Import running, please wait!\",\"all_fields_optional\":\"All fields are optional and can be left empty.\",\"convert_internal\":\"Convert to internal recipe\",\"show_only_internal\":\"Show only internal recipes\",\"show_split_screen\":\"Show split view\",\"Log_Recipe_Cooking\":\"Log Recipe Cooking\",\"External_Recipe_Image\":\"External Recipe Image\",\"Add_to_Book\":\"Add to Book\",\"Add_to_Shopping\":\"Add to Shopping\",\"Add_to_Plan\":\"Add to Plan\",\"Step_start_time\":\"Step start time\",\"Sort_by_new\":\"Sort by new\",\"Recipes_per_page\":\"Recipes per Page\",\"Meal_Plan\":\"Meal Plan\",\"Select_Book\":\"Select Book\",\"Recipe_Image\":\"Recipe Image\",\"Import_finished\":\"Import finished\",\"View_Recipes\":\"View Recipes\",\"Log_Cooking\":\"Log Cooking\",\"New_Recipe\":\"New Recipe\",\"Url_Import\":\"Url Import\",\"Reset_Search\":\"Reset Search\",\"Recently_Viewed\":\"Recently Viewed\",\"Load_More\":\"Load More\",\"New_Keyword\":\"New Keyword\",\"Delete_Keyword\":\"Delete Keyword\",\"Edit_Keyword\":\"Edit Keyword\",\"Move_Keyword\":\"Move Keyword\",\"Merge_Keyword\":\"Merge Keyword\",\"Hide_Keywords\":\"Hide Keywords\",\"Hide_Recipes\":\"Hide Recipes\",\"Keywords\":\"Keywords\",\"Books\":\"Books\",\"Proteins\":\"Proteins\",\"Fats\":\"Fats\",\"Carbohydrates\":\"Carbohydrates\",\"Calories\":\"Calories\",\"Nutrition\":\"Nutrition\",\"Date\":\"Date\",\"Share\":\"Share\",\"Export\":\"Export\",\"Copy\":\"Copy\",\"Rating\":\"Rating\",\"Close\":\"Close\",\"Cancel\":\"Cancel\",\"Link\":\"Link\",\"Add\":\"Add\",\"New\":\"New\",\"Success\":\"Success\",\"Ingredients\":\"Ingredients\",\"Supermarket\":\"Supermarket\",\"Categories\":\"Categories\",\"Category\":\"Category\",\"Selected\":\"Selected\",\"min\":\"min\",\"Servings\":\"Servings\",\"Waiting\":\"Waiting\",\"Preparation\":\"Preparation\",\"External\":\"External\",\"Size\":\"Size\",\"Files\":\"Files\",\"File\":\"File\",\"Edit\":\"Edit\",\"Delete\":\"Delete\",\"Open\":\"Open\",\"Ok\":\"Open\",\"Save\":\"Save\",\"Step\":\"Step\",\"Search\":\"Search\",\"Import\":\"Import\",\"Print\":\"Print\",\"Settings\":\"Settings\",\"or\":\"or\",\"and\":\"and\",\"Information\":\"Information\",\"Advanced Search Settings\":\"Advanced Search Settings\",\"View\":\"View\",\"Recipes\":\"Recipes\",\"Move\":\"Move\",\"Merge\":\"Merge\",\"Parent\":\"Parent\",\"delete_confimation\":\"Are you sure that you want to delete {kw} and all of it's children?\",\"move_confirmation\":\"Move {child} to parent {parent}\",\"merge_confirmation\":\"Replace {source} with {target}\",\"move_selection\":\"Select a parent to move {child} to.\",\"merge_selection\":\"Replace all occurences of {source} with the selected {type}.\",\"Download\":\"Download\",\"Root\":\"Root\",\"Ignore_Shopping\":\"Ignore Shopping\",\"Shopping_Category\":\"Shopping Category\",\"Edit_Food\":\"Edit Food\"}"); - -/***/ }), - -/***/ "f941": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FoodCard_vue_vue_type_style_index_0_id_2ff37af5_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("90a7"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FoodCard_vue_vue_type_style_index_0_id_2ff37af5_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_FoodCard_vue_vue_type_style_index_0_id_2ff37af5_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__); -/* unused harmony reexport * */ - +module.exports = JSON.parse("{\"err_fetching_resource\":\"There was an error fetching a resource!\",\"err_creating_resource\":\"There was an error creating a resource!\",\"err_updating_resource\":\"There was an error updating a resource!\",\"err_deleting_resource\":\"There was an error deleting a resource!\",\"success_fetching_resource\":\"Successfully fetched a resource!\",\"success_creating_resource\":\"Successfully created a resource!\",\"success_updating_resource\":\"Successfully updated a resource!\",\"success_deleting_resource\":\"Successfully deleted a resource!\",\"import_running\":\"Import running, please wait!\",\"all_fields_optional\":\"All fields are optional and can be left empty.\",\"convert_internal\":\"Convert to internal recipe\",\"show_only_internal\":\"Show only internal recipes\",\"show_split_screen\":\"Show split view\",\"Log_Recipe_Cooking\":\"Log Recipe Cooking\",\"External_Recipe_Image\":\"External Recipe Image\",\"Add_to_Book\":\"Add to Book\",\"Add_to_Shopping\":\"Add to Shopping\",\"Add_to_Plan\":\"Add to Plan\",\"Step_start_time\":\"Step start time\",\"Sort_by_new\":\"Sort by new\",\"Recipes_per_page\":\"Recipes per Page\",\"Meal_Plan\":\"Meal Plan\",\"Select_Book\":\"Select Book\",\"Recipe_Image\":\"Recipe Image\",\"Import_finished\":\"Import finished\",\"View_Recipes\":\"View Recipes\",\"Log_Cooking\":\"Log Cooking\",\"New_Recipe\":\"New Recipe\",\"Url_Import\":\"Url Import\",\"Reset_Search\":\"Reset Search\",\"Recently_Viewed\":\"Recently Viewed\",\"Load_More\":\"Load More\",\"New_Keyword\":\"New Keyword\",\"Delete_Keyword\":\"Delete Keyword\",\"Edit_Keyword\":\"Edit Keyword\",\"Move_Keyword\":\"Move Keyword\",\"Merge_Keyword\":\"Merge Keyword\",\"Hide_Keywords\":\"Hide Keywords\",\"Hide_Recipes\":\"Hide Recipes\",\"Keywords\":\"Keywords\",\"Books\":\"Books\",\"Proteins\":\"Proteins\",\"Fats\":\"Fats\",\"Carbohydrates\":\"Carbohydrates\",\"Calories\":\"Calories\",\"Nutrition\":\"Nutrition\",\"Date\":\"Date\",\"Share\":\"Share\",\"Export\":\"Export\",\"Copy\":\"Copy\",\"Rating\":\"Rating\",\"Close\":\"Close\",\"Cancel\":\"Cancel\",\"Link\":\"Link\",\"Add\":\"Add\",\"New\":\"New\",\"Success\":\"Success\",\"Ingredients\":\"Ingredients\",\"Supermarket\":\"Supermarket\",\"Categories\":\"Categories\",\"Category\":\"Category\",\"Selected\":\"Selected\",\"min\":\"min\",\"Servings\":\"Servings\",\"Waiting\":\"Waiting\",\"Preparation\":\"Preparation\",\"External\":\"External\",\"Size\":\"Size\",\"Files\":\"Files\",\"File\":\"File\",\"Edit\":\"Edit\",\"Delete\":\"Delete\",\"Open\":\"Open\",\"Ok\":\"Open\",\"Save\":\"Save\",\"Step\":\"Step\",\"Search\":\"Search\",\"Import\":\"Import\",\"Print\":\"Print\",\"Settings\":\"Settings\",\"or\":\"or\",\"and\":\"and\",\"Information\":\"Information\",\"Advanced Search Settings\":\"Advanced Search Settings\",\"View\":\"View\",\"Recipes\":\"Recipes\",\"Move\":\"Move\",\"Merge\":\"Merge\",\"Parent\":\"Parent\",\"delete_confimation\":\"Are you sure that you want to delete {kw} and all of it's children?\",\"move_confirmation\":\"Move {child} to parent {parent}\",\"merge_confirmation\":\"Replace {source} with {target}\",\"move_selection\":\"Select a parent to move {child} to.\",\"merge_selection\":\"Replace all occurences of {source} with the selected {type}.\",\"Download\":\"Download\",\"Root\":\"Root\",\"Ignore_Shopping\":\"Ignore Shopping\",\"Shopping_Category\":\"Shopping Category\",\"Edit_Food\":\"Edit Food\",\"Move_Food\":\"Move Food\",\"New_Food\":\"New Food\"}"); /***/ }), diff --git a/cookbook/static/vue/js/import_response_view.js b/cookbook/static/vue/js/import_response_view.js index a6d3a668..f0f10e98 100644 --- a/cookbook/static/vue/js/import_response_view.js +++ b/cookbook/static/vue/js/import_response_view.js @@ -4564,7 +4564,7 @@ module.exports = JSON.parse("{\"err_fetching_resource\":\"\",\"err_creating_reso /***/ "edd4": /***/ (function(module) { -module.exports = JSON.parse("{\"err_fetching_resource\":\"There was an error fetching a resource!\",\"err_creating_resource\":\"There was an error creating a resource!\",\"err_updating_resource\":\"There was an error updating a resource!\",\"err_deleting_resource\":\"There was an error deleting a resource!\",\"success_fetching_resource\":\"Successfully fetched a resource!\",\"success_creating_resource\":\"Successfully created a resource!\",\"success_updating_resource\":\"Successfully updated a resource!\",\"success_deleting_resource\":\"Successfully deleted a resource!\",\"import_running\":\"Import running, please wait!\",\"all_fields_optional\":\"All fields are optional and can be left empty.\",\"convert_internal\":\"Convert to internal recipe\",\"show_only_internal\":\"Show only internal recipes\",\"show_split_screen\":\"Show split view\",\"Log_Recipe_Cooking\":\"Log Recipe Cooking\",\"External_Recipe_Image\":\"External Recipe Image\",\"Add_to_Book\":\"Add to Book\",\"Add_to_Shopping\":\"Add to Shopping\",\"Add_to_Plan\":\"Add to Plan\",\"Step_start_time\":\"Step start time\",\"Sort_by_new\":\"Sort by new\",\"Recipes_per_page\":\"Recipes per Page\",\"Meal_Plan\":\"Meal Plan\",\"Select_Book\":\"Select Book\",\"Recipe_Image\":\"Recipe Image\",\"Import_finished\":\"Import finished\",\"View_Recipes\":\"View Recipes\",\"Log_Cooking\":\"Log Cooking\",\"New_Recipe\":\"New Recipe\",\"Url_Import\":\"Url Import\",\"Reset_Search\":\"Reset Search\",\"Recently_Viewed\":\"Recently Viewed\",\"Load_More\":\"Load More\",\"New_Keyword\":\"New Keyword\",\"Delete_Keyword\":\"Delete Keyword\",\"Edit_Keyword\":\"Edit Keyword\",\"Move_Keyword\":\"Move Keyword\",\"Merge_Keyword\":\"Merge Keyword\",\"Hide_Keywords\":\"Hide Keywords\",\"Hide_Recipes\":\"Hide Recipes\",\"Keywords\":\"Keywords\",\"Books\":\"Books\",\"Proteins\":\"Proteins\",\"Fats\":\"Fats\",\"Carbohydrates\":\"Carbohydrates\",\"Calories\":\"Calories\",\"Nutrition\":\"Nutrition\",\"Date\":\"Date\",\"Share\":\"Share\",\"Export\":\"Export\",\"Copy\":\"Copy\",\"Rating\":\"Rating\",\"Close\":\"Close\",\"Cancel\":\"Cancel\",\"Link\":\"Link\",\"Add\":\"Add\",\"New\":\"New\",\"Success\":\"Success\",\"Ingredients\":\"Ingredients\",\"Supermarket\":\"Supermarket\",\"Categories\":\"Categories\",\"Category\":\"Category\",\"Selected\":\"Selected\",\"min\":\"min\",\"Servings\":\"Servings\",\"Waiting\":\"Waiting\",\"Preparation\":\"Preparation\",\"External\":\"External\",\"Size\":\"Size\",\"Files\":\"Files\",\"File\":\"File\",\"Edit\":\"Edit\",\"Delete\":\"Delete\",\"Open\":\"Open\",\"Ok\":\"Open\",\"Save\":\"Save\",\"Step\":\"Step\",\"Search\":\"Search\",\"Import\":\"Import\",\"Print\":\"Print\",\"Settings\":\"Settings\",\"or\":\"or\",\"and\":\"and\",\"Information\":\"Information\",\"Advanced Search Settings\":\"Advanced Search Settings\",\"View\":\"View\",\"Recipes\":\"Recipes\",\"Move\":\"Move\",\"Merge\":\"Merge\",\"Parent\":\"Parent\",\"delete_confimation\":\"Are you sure that you want to delete {kw} and all of it's children?\",\"move_confirmation\":\"Move {child} to parent {parent}\",\"merge_confirmation\":\"Replace {source} with {target}\",\"move_selection\":\"Select a parent to move {child} to.\",\"merge_selection\":\"Replace all occurences of {source} with the selected {type}.\",\"Download\":\"Download\",\"Root\":\"Root\",\"Ignore_Shopping\":\"Ignore Shopping\",\"Shopping_Category\":\"Shopping Category\",\"Edit_Food\":\"Edit Food\"}"); +module.exports = JSON.parse("{\"err_fetching_resource\":\"There was an error fetching a resource!\",\"err_creating_resource\":\"There was an error creating a resource!\",\"err_updating_resource\":\"There was an error updating a resource!\",\"err_deleting_resource\":\"There was an error deleting a resource!\",\"success_fetching_resource\":\"Successfully fetched a resource!\",\"success_creating_resource\":\"Successfully created a resource!\",\"success_updating_resource\":\"Successfully updated a resource!\",\"success_deleting_resource\":\"Successfully deleted a resource!\",\"import_running\":\"Import running, please wait!\",\"all_fields_optional\":\"All fields are optional and can be left empty.\",\"convert_internal\":\"Convert to internal recipe\",\"show_only_internal\":\"Show only internal recipes\",\"show_split_screen\":\"Show split view\",\"Log_Recipe_Cooking\":\"Log Recipe Cooking\",\"External_Recipe_Image\":\"External Recipe Image\",\"Add_to_Book\":\"Add to Book\",\"Add_to_Shopping\":\"Add to Shopping\",\"Add_to_Plan\":\"Add to Plan\",\"Step_start_time\":\"Step start time\",\"Sort_by_new\":\"Sort by new\",\"Recipes_per_page\":\"Recipes per Page\",\"Meal_Plan\":\"Meal Plan\",\"Select_Book\":\"Select Book\",\"Recipe_Image\":\"Recipe Image\",\"Import_finished\":\"Import finished\",\"View_Recipes\":\"View Recipes\",\"Log_Cooking\":\"Log Cooking\",\"New_Recipe\":\"New Recipe\",\"Url_Import\":\"Url Import\",\"Reset_Search\":\"Reset Search\",\"Recently_Viewed\":\"Recently Viewed\",\"Load_More\":\"Load More\",\"New_Keyword\":\"New Keyword\",\"Delete_Keyword\":\"Delete Keyword\",\"Edit_Keyword\":\"Edit Keyword\",\"Move_Keyword\":\"Move Keyword\",\"Merge_Keyword\":\"Merge Keyword\",\"Hide_Keywords\":\"Hide Keywords\",\"Hide_Recipes\":\"Hide Recipes\",\"Keywords\":\"Keywords\",\"Books\":\"Books\",\"Proteins\":\"Proteins\",\"Fats\":\"Fats\",\"Carbohydrates\":\"Carbohydrates\",\"Calories\":\"Calories\",\"Nutrition\":\"Nutrition\",\"Date\":\"Date\",\"Share\":\"Share\",\"Export\":\"Export\",\"Copy\":\"Copy\",\"Rating\":\"Rating\",\"Close\":\"Close\",\"Cancel\":\"Cancel\",\"Link\":\"Link\",\"Add\":\"Add\",\"New\":\"New\",\"Success\":\"Success\",\"Ingredients\":\"Ingredients\",\"Supermarket\":\"Supermarket\",\"Categories\":\"Categories\",\"Category\":\"Category\",\"Selected\":\"Selected\",\"min\":\"min\",\"Servings\":\"Servings\",\"Waiting\":\"Waiting\",\"Preparation\":\"Preparation\",\"External\":\"External\",\"Size\":\"Size\",\"Files\":\"Files\",\"File\":\"File\",\"Edit\":\"Edit\",\"Delete\":\"Delete\",\"Open\":\"Open\",\"Ok\":\"Open\",\"Save\":\"Save\",\"Step\":\"Step\",\"Search\":\"Search\",\"Import\":\"Import\",\"Print\":\"Print\",\"Settings\":\"Settings\",\"or\":\"or\",\"and\":\"and\",\"Information\":\"Information\",\"Advanced Search Settings\":\"Advanced Search Settings\",\"View\":\"View\",\"Recipes\":\"Recipes\",\"Move\":\"Move\",\"Merge\":\"Merge\",\"Parent\":\"Parent\",\"delete_confimation\":\"Are you sure that you want to delete {kw} and all of it's children?\",\"move_confirmation\":\"Move {child} to parent {parent}\",\"merge_confirmation\":\"Replace {source} with {target}\",\"move_selection\":\"Select a parent to move {child} to.\",\"merge_selection\":\"Replace all occurences of {source} with the selected {type}.\",\"Download\":\"Download\",\"Root\":\"Root\",\"Ignore_Shopping\":\"Ignore Shopping\",\"Shopping_Category\":\"Shopping Category\",\"Edit_Food\":\"Edit Food\",\"Move_Food\":\"Move Food\",\"New_Food\":\"New Food\"}"); /***/ }), diff --git a/cookbook/static/vue/js/keyword_list_view.js b/cookbook/static/vue/js/keyword_list_view.js index 2eb7ec3e..d9009205 100644 --- a/cookbook/static/vue/js/keyword_list_view.js +++ b/cookbook/static/vue/js/keyword_list_view.js @@ -155,17 +155,6 @@ /************************************************************************/ /******/ ({ -/***/ "1b26": -/***/ (function(module, __webpack_exports__, __webpack_require__) { - -"use strict"; -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KeywordCard_vue_vue_type_style_index_0_id_eea8728a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("a526"); -/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KeywordCard_vue_vue_type_style_index_0_id_eea8728a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KeywordCard_vue_vue_type_style_index_0_id_eea8728a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__); -/* unused harmony reexport * */ - - -/***/ }), - /***/ "2b2d": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -4666,12 +4655,12 @@ var es_promise_finally = __webpack_require__("a79d"); // EXTERNAL MODULE: ./node_modules/vue/dist/vue.esm.js var vue_esm = __webpack_require__("a026"); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3096e903-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/apps/KeywordListView/KeywordListView.vue?vue&type=template&id=08fd51d7& -var KeywordListViewvue_type_template_id_08fd51d7_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"margin-bottom":"4vh"},attrs:{"id":"app"}},[_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-md-2 d-none d-md-block"}),_c('div',{staticClass:"col-xl-8 col-12"},[_c('div',{staticClass:"container-fluid d-flex flex-column flex-grow-1",class:{'vh-100' : _vm.show_split}},[_c('div',{staticClass:"row flex-shrink-0"},[_c('div',{staticClass:"col col-md-12"},[_c('b-collapse',{staticClass:"mt-2",attrs:{"id":"collapse_advanced"},model:{value:(_vm.advanced_visible),callback:function ($$v) {_vm.advanced_visible=$$v},expression:"advanced_visible"}},[_c('div',{staticClass:"card"},[_c('div',{staticClass:"card-body"},[_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-md-3",staticStyle:{"margin-top":"1vh"}},[_c('div',{staticClass:"btn btn-primary btn-block text-uppercase",on:{"click":function($event){return _vm.startAction({'action':'new'})}}},[_vm._v(" "+_vm._s(this.$t('New_Keyword'))+" ")])]),_c('div',{staticClass:"col-md-3",staticStyle:{"margin-top":"1vh"}},[_c('button',{staticClass:"btn btn-primary btn-block text-uppercase",on:{"click":_vm.resetSearch}},[_vm._v(" "+_vm._s(this.$t('Reset_Search'))+" ")])]),_c('div',{staticClass:"col-md-3",staticStyle:{"position":"relative","margin-top":"1vh"}},[_c('b-form-checkbox',{staticClass:"shadow-none",staticStyle:{"position":"relative","top":"50%","transform":"translateY(-50%)"},attrs:{"name":"check-button","switch":""},model:{value:(_vm.show_split),callback:function ($$v) {_vm.show_split=$$v},expression:"show_split"}},[_vm._v(" "+_vm._s(this.$t('show_split_screen'))+" ")])],1)])])])])],1)]),_c('div',{staticClass:"row flex-shrink-0"},[_c('div',{staticClass:"col col-md"},[_c('b-input-group',{staticClass:"mt-3"},[_c('b-input',{staticClass:"form-control",attrs:{"placeholder":this.$t('Search')},model:{value:(_vm.search_input),callback:function ($$v) {_vm.search_input=$$v},expression:"search_input"}}),_c('b-input-group-append',[_c('b-button',{directives:[{name:"b-toggle",rawName:"v-b-toggle.collapse_advanced",modifiers:{"collapse_advanced":true}}],staticClass:"shadow-none",attrs:{"variant":"primary"}},[(!_vm.advanced_visible)?_c('i',{staticClass:"fas fa-caret-down"}):_vm._e(),(_vm.advanced_visible)?_c('i',{staticClass:"fas fa-caret-up"}):_vm._e()])],1)],1)],1),(_vm.show_split)?_c('div',{staticClass:"col col-md"},[_c('b-input-group',{staticClass:"mt-3"},[_c('b-input',{staticClass:"form-control",attrs:{"placeholder":this.$t('Search')},model:{value:(_vm.search_input2),callback:function ($$v) {_vm.search_input2=$$v},expression:"search_input2"}})],1)],1):_vm._e()]),_c('div',{staticClass:"row",class:{'overflow-hidden' : _vm.show_split},staticStyle:{"margin-top":"2vh"}},[_c('div',{staticClass:"col col-md",class:{'mh-100 overflow-auto' : _vm.show_split}},[_vm._l((_vm.keywords),function(k){return _c('keyword-card',{key:k.id,attrs:{"keyword":k,"draggable":true},on:{"item-action":function($event){return _vm.startAction($event, 'left')}}})}),_c('infinite-loading',{attrs:{"identifier":_vm.left,"spinner":"waveDots"},on:{"infinite":function($event){return _vm.infiniteHandler($event, 'left')}}})],2),(_vm.show_split)?_c('div',{staticClass:"col col-md mh-100 overflow-auto "},[_vm._l((_vm.keywords2),function(k){return _c('keyword-card',{key:k.id,attrs:{"keyword":k,"draggable":"true"},on:{"item-action":function($event){return _vm.startAction($event, 'right')}}})}),_c('infinite-loading',{attrs:{"identifier":_vm.right,"spinner":"waveDots"},on:{"infinite":function($event){return _vm.infiniteHandler($event, 'right')}}})],2):_vm._e()])])]),_c('div',{staticClass:"col-md-2 d-none d-md-block"})]),_c('b-modal',{staticClass:"modal",attrs:{"id":'id_modal_keyword_edit',"title":this.$t('Edit_Keyword'),"ok-title":this.$t('Save'),"cancel-title":this.$t('Cancel')},on:{"shown":_vm.prepareEmoji,"ok":_vm.saveKeyword}},[_c('form',[_c('label',{attrs:{"for":"id_keyword_name_edit"}},[_vm._v(_vm._s(this.$t('Name')))]),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.this_item.name),expression:"this_item.name"}],staticClass:"form-control",attrs:{"type":"text","id":"id_keyword_name_edit"},domProps:{"value":(_vm.this_item.name)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.this_item, "name", $event.target.value)}}}),_c('label',{attrs:{"for":"id_keyword_description_edit"}},[_vm._v(_vm._s(this.$t('Description')))]),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.this_item.description),expression:"this_item.description"}],staticClass:"form-control",attrs:{"type":"text","id":"id_keyword_description_edit"},domProps:{"value":(_vm.this_item.description)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.this_item, "description", $event.target.value)}}}),_c('label',{attrs:{"for":"id_keyword_icon_edit"}},[_vm._v(_vm._s(this.$t('Icon')))]),_c('twemoji-textarea',{ref:"_edit",attrs:{"id":"id_keyword_icon_edit","emojiData":_vm.emojiDataAll,"emojiGroups":_vm.emojiGroups,"triggerType":"hover","recentEmojisFeat":"true","recentEmojisStorage":"local"},on:{"contentChanged":_vm.setIcon}})],1)]),_c('b-modal',{staticClass:"modal",attrs:{"id":'id_modal_keyword_delete',"title":this.$t('Delete_Keyword'),"ok-title":this.$t('Delete'),"cancel-title":this.$t('Cancel')},on:{"ok":function($event){return _vm.delKeyword(_vm.this_item.id)}}},[_vm._v(" "+_vm._s(this.$t("delete_confimation", {'kw': _vm.this_item.name}))+" "+_vm._s(_vm.this_item.name)+" ")]),_c('b-modal',{staticClass:"modal",attrs:{"id":'id_modal_keyword_move',"title":this.$t('Move_Keyword'),"ok-title":this.$t('Move'),"cancel-title":this.$t('Cancel')},on:{"ok":function($event){return _vm.moveKeyword(_vm.this_item.id, _vm.this_item.target.id)}}},[_vm._v(" "+_vm._s(this.$t("move_selection", {'child': _vm.this_item.name}))+" "),_c('generic-multiselect',{staticStyle:{"flex-grow":"1","flex-shrink":"1","flex-basis":"0"},attrs:{"label":"name","search_function":"listKeywords","multiple":false,"sticky_options":[{'id': 0,'name': _vm.$t('Root')}],"tree_api":true,"placeholder":this.$t('Search')},on:{"change":function($event){_vm.this_item.target=$event.val}}})],1),_c('b-modal',{staticClass:"modal",attrs:{"id":'id_modal_keyword_merge',"title":this.$t('Merge_Keyword'),"ok-title":this.$t('Merge'),"cancel-title":this.$t('Cancel')},on:{"ok":function($event){return _vm.mergeKeyword(_vm.this_item.id, _vm.this_item.target.id)}}},[_vm._v(" "+_vm._s(this.$t("merge_selection", {'source': _vm.this_item.name, 'type': this.$t('keyword')}))+" "),_c('generic-multiselect',{staticStyle:{"flex-grow":"1","flex-shrink":"1","flex-basis":"0"},attrs:{"label":"name","search_function":"listKeywords","multiple":false,"tree_api":true,"placeholder":this.$t('Search')},on:{"change":function($event){_vm.this_item.target=$event.val}}})],1)],1)} +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3096e903-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/apps/KeywordListView/KeywordListView.vue?vue&type=template&id=798dcf78& +var KeywordListViewvue_type_template_id_798dcf78_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{"margin-bottom":"4vh"},attrs:{"id":"app"}},[_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-md-2 d-none d-md-block"}),_c('div',{staticClass:"col-xl-8 col-12"},[_c('div',{staticClass:"container-fluid d-flex flex-column flex-grow-1",class:{'vh-100' : _vm.show_split}},[_c('div',{staticClass:"row flex-shrink-0"},[_c('div',{staticClass:"col col-md-12"},[_c('b-collapse',{staticClass:"mt-2",attrs:{"id":"collapse_advanced"},model:{value:(_vm.advanced_visible),callback:function ($$v) {_vm.advanced_visible=$$v},expression:"advanced_visible"}},[_c('div',{staticClass:"card"},[_c('div',{staticClass:"card-body"},[_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-md-3",staticStyle:{"margin-top":"1vh"}},[_c('div',{staticClass:"btn btn-primary btn-block text-uppercase",on:{"click":function($event){return _vm.startAction({'action':'new'})}}},[_vm._v(" "+_vm._s(this.$t('New_Keyword'))+" ")])]),_c('div',{staticClass:"col-md-3",staticStyle:{"margin-top":"1vh"}},[_c('button',{staticClass:"btn btn-primary btn-block text-uppercase",on:{"click":_vm.resetSearch}},[_vm._v(" "+_vm._s(this.$t('Reset_Search'))+" ")])]),_c('div',{staticClass:"col-md-3",staticStyle:{"position":"relative","margin-top":"1vh"}},[_c('b-form-checkbox',{staticClass:"shadow-none",staticStyle:{"position":"relative","top":"50%","transform":"translateY(-50%)"},attrs:{"name":"check-button","switch":""},model:{value:(_vm.show_split),callback:function ($$v) {_vm.show_split=$$v},expression:"show_split"}},[_vm._v(" "+_vm._s(this.$t('show_split_screen'))+" ")])],1)])])])])],1)]),_c('div',{staticClass:"row flex-shrink-0"},[_c('div',{staticClass:"col col-md"},[_c('b-input-group',{staticClass:"mt-3"},[_c('b-input',{staticClass:"form-control",attrs:{"placeholder":this.$t('Search')},model:{value:(_vm.search_input),callback:function ($$v) {_vm.search_input=$$v},expression:"search_input"}}),_c('b-input-group-append',[_c('b-button',{directives:[{name:"b-toggle",rawName:"v-b-toggle.collapse_advanced",modifiers:{"collapse_advanced":true}}],staticClass:"shadow-none",attrs:{"variant":"primary"}},[(!_vm.advanced_visible)?_c('i',{staticClass:"fas fa-caret-down"}):_vm._e(),(_vm.advanced_visible)?_c('i',{staticClass:"fas fa-caret-up"}):_vm._e()])],1)],1)],1),(_vm.show_split)?_c('div',{staticClass:"col col-md"},[_c('b-input-group',{staticClass:"mt-3"},[_c('b-input',{staticClass:"form-control",attrs:{"placeholder":this.$t('Search')},model:{value:(_vm.search_input2),callback:function ($$v) {_vm.search_input2=$$v},expression:"search_input2"}})],1)],1):_vm._e()]),_c('div',{staticClass:"row",class:{'overflow-hidden' : _vm.show_split},staticStyle:{"margin-top":"2vh"}},[_c('div',{staticClass:"col col-md",class:{'mh-100 overflow-auto' : _vm.show_split}},[_vm._l((_vm.keywords),function(k){return _c('keyword-card',{key:k.id,attrs:{"keyword":k,"draggable":true},on:{"item-action":function($event){return _vm.startAction($event, 'left')}}})}),_c('infinite-loading',{attrs:{"identifier":_vm.left,"spinner":"waveDots"},on:{"infinite":function($event){return _vm.infiniteHandler($event, 'left')}}})],2),(_vm.show_split)?_c('div',{staticClass:"col col-md mh-100 overflow-auto "},[_vm._l((_vm.keywords2),function(k){return _c('keyword-card',{key:k.id,attrs:{"keyword":k,"draggable":"true"},on:{"item-action":function($event){return _vm.startAction($event, 'right')}}})}),_c('infinite-loading',{attrs:{"identifier":_vm.right,"spinner":"waveDots"},on:{"infinite":function($event){return _vm.infiniteHandler($event, 'right')}}})],2):_vm._e()])])]),_c('div',{staticClass:"col-md-2 d-none d-md-block"})]),_c('b-modal',{staticClass:"modal",attrs:{"id":'id_modal_keyword_edit',"title":this.$t('Edit_Keyword'),"ok-title":this.$t('Save'),"cancel-title":this.$t('Cancel')},on:{"shown":_vm.prepareEmoji,"ok":_vm.saveKeyword}},[_c('form',[_c('label',{attrs:{"for":"id_keyword_name_edit"}},[_vm._v(_vm._s(this.$t('Name')))]),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.this_item.name),expression:"this_item.name"}],staticClass:"form-control",attrs:{"type":"text","id":"id_keyword_name_edit"},domProps:{"value":(_vm.this_item.name)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.this_item, "name", $event.target.value)}}}),_c('label',{attrs:{"for":"id_keyword_description_edit"}},[_vm._v(_vm._s(this.$t('Description')))]),_c('input',{directives:[{name:"model",rawName:"v-model",value:(_vm.this_item.description),expression:"this_item.description"}],staticClass:"form-control",attrs:{"type":"text","id":"id_keyword_description_edit"},domProps:{"value":(_vm.this_item.description)},on:{"input":function($event){if($event.target.composing){ return; }_vm.$set(_vm.this_item, "description", $event.target.value)}}}),_c('label',{attrs:{"for":"id_keyword_icon_edit"}},[_vm._v(_vm._s(this.$t('Icon')))]),_c('twemoji-textarea',{ref:"_edit",attrs:{"id":"id_keyword_icon_edit","emojiData":_vm.emojiDataAll,"emojiGroups":_vm.emojiGroups,"triggerType":"hover","recentEmojisFeat":"true","recentEmojisStorage":"local"},on:{"contentChanged":_vm.setIcon}})],1)]),_c('b-modal',{staticClass:"modal",attrs:{"id":'id_modal_keyword_delete',"title":this.$t('Delete_Keyword'),"ok-title":this.$t('Delete'),"cancel-title":this.$t('Cancel')},on:{"ok":function($event){return _vm.delKeyword(_vm.this_item.id)}}},[_vm._v(" "+_vm._s(this.$t("delete_confimation", {'kw': _vm.this_item.name}))+" "+_vm._s(_vm.this_item.name)+" ")]),_c('b-modal',{staticClass:"modal",attrs:{"id":'id_modal_keyword_move',"title":this.$t('Move_Keyword'),"ok-title":this.$t('Move'),"cancel-title":this.$t('Cancel')},on:{"ok":function($event){return _vm.moveKeyword(_vm.this_item.id, _vm.this_item.target.id)}}},[_vm._v(" "+_vm._s(this.$t("move_selection", {'child': _vm.this_item.name}))+" "),_c('generic-multiselect',{staticStyle:{"flex-grow":"1","flex-shrink":"1","flex-basis":"0"},attrs:{"label":"name","search_function":"listKeywords","multiple":false,"sticky_options":[{'id': 0,'name': _vm.$t('Root')}],"tree_api":true,"placeholder":this.$t('Search')},on:{"change":function($event){_vm.this_item.target=$event.val}}})],1),_c('b-modal',{staticClass:"modal",attrs:{"id":'id_modal_keyword_merge',"title":this.$t('Merge_Keyword'),"ok-title":this.$t('Merge'),"cancel-title":this.$t('Cancel')},on:{"ok":function($event){return _vm.mergeKeyword(_vm.this_item.id, _vm.this_item.target.id)}}},[_vm._v(" "+_vm._s(this.$t("merge_selection", {'source': _vm.this_item.name, 'type': this.$t('keyword')}))+" "),_c('generic-multiselect',{staticStyle:{"flex-grow":"1","flex-shrink":"1","flex-basis":"0"},attrs:{"label":"name","search_function":"listKeywords","multiple":false,"tree_api":true,"placeholder":this.$t('Search')},on:{"change":function($event){_vm.this_item.target=$event.val}}})],1)],1)} var staticRenderFns = [] -// CONCATENATED MODULE: ./src/apps/KeywordListView/KeywordListView.vue?vue&type=template&id=08fd51d7& +// CONCATENATED MODULE: ./src/apps/KeywordListView/KeywordListView.vue?vue&type=template&id=798dcf78& // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js + 2 modules var createForOfIteratorHelper = __webpack_require__("b85c"); @@ -4714,12 +4703,12 @@ var utils = __webpack_require__("fa7d"); // EXTERNAL MODULE: ./src/utils/openapi/api.ts + 2 modules var api = __webpack_require__("2b2d"); -// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3096e903-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/KeywordCard.vue?vue&type=template&id=eea8728a&scoped=true& -var KeywordCardvue_type_template_id_eea8728a_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"row":""}},[_c('b-card',{class:{'border border-primary' : _vm.over, 'shake': _vm.isError},staticStyle:{"height":"10vh"},style:({'cursor:grab' : _vm.draggable}),attrs:{"no-body":"","d-flex":"","flex-column":"","refs":"keywordCard","draggable":_vm.draggable},on:{"dragover":function($event){$event.preventDefault();},"dragenter":[function($event){$event.preventDefault();},function($event){return _vm.handleDragEnter($event)}],"dragstart":function($event){return _vm.handleDragStart($event)},"dragleave":function($event){return _vm.handleDragLeave($event)},"drop":function($event){return _vm.handleDragDrop($event)}}},[_c('b-row',{staticStyle:{"height":"inherit"},attrs:{"no-gutters":""}},[_c('b-col',{staticStyle:{"height":"inherit"},attrs:{"no-gutters":"","md":"3"}},[_c('b-card-img-lazy',{staticStyle:{"object-fit":"cover","height":"10vh"},attrs:{"src":_vm.keyword_image,"alt":_vm.$t('Recipe_Image')}})],1),_c('b-col',{staticStyle:{"height":"inherit"},attrs:{"no-gutters":"","md":"9"}},[_c('b-card-body',{staticClass:"m-0 py-0",staticStyle:{"height":"inherit"}},[_c('b-card-text',{staticClass:" h-100 my-0 d-flex flex-column",staticStyle:{"text-overflow":"ellipsis"}},[_c('h5',{staticClass:"m-0 mt-1 text-truncate"},[_vm._v(_vm._s(_vm.keyword.name))]),_c('div',{staticClass:"m-0 text-truncate"},[_vm._v(_vm._s(_vm.keyword.description))]),_c('div',{staticClass:"mt-auto mb-1 d-flex flex-row justify-content-end"},[(_vm.keyword.numchild !=0)?_c('div',{staticClass:"mx-2 btn btn-link btn-sm",staticStyle:{"z-index":"800"},on:{"click":function($event){return _vm.$emit('item-action',{'action':'get-children','source':_vm.keyword})}}},[(!_vm.keyword.expanded)?_c('div',[_vm._v(_vm._s(_vm.keyword.numchild)+" "+_vm._s(_vm.$t('Keywords')))]):_c('div',[_vm._v(_vm._s(_vm.$t('Hide Keywords')))])]):_vm._e(),_c('div',{staticClass:"mx-2 btn btn-link btn-sm",staticStyle:{"z-index":"800"},on:{"click":function($event){return _vm.$emit('item-action',{'action':'get-recipes','source':_vm.keyword})}}},[(!_vm.keyword.show_recipes)?_c('div',[_vm._v(_vm._s(_vm.keyword.numrecipe)+" "+_vm._s(_vm.$t('Recipes')))]):_c('div',[_vm._v(_vm._s(_vm.$t('Hide Recipes')))])])])])],1)],1),_c('div',{staticClass:"card-img-overlay justify-content-right h-25 m-0 p-0 text-right"},[_c('generic-context-menu',{staticClass:"p-0",attrs:{"show_merge":true,"show_move":true},on:{"item-action":function($event){return _vm.$emit('item-action', {'action': $event, 'source': _vm.keyword})}}})],1)],1)],1),(_vm.keyword.expanded)?_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-md-11 offset-md-1"},_vm._l((_vm.keyword.children),function(child){return _c('keyword-card',{key:child.id,attrs:{"keyword":child,"draggable":"true"},on:{"item-action":function($event){return _vm.$emit('item-action', $event)}}})}),1)]):_vm._e(),(_vm.keyword.show_recipes)?_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-md-11 offset-md-1"},[_c('div',{staticStyle:{"display":"grid","grid-template-columns":"repeat(auto-fit, minmax(200px, 1fr))","grid-gap":"1rem"}},_vm._l((_vm.keyword.recipes),function(r){return _c('recipe-card',{key:r.id,attrs:{"recipe":r}})}),1)])]):_vm._e(),_c('b-list-group',{directives:[{name:"show",rawName:"v-show",value:(_vm.show_menu),expression:"show_menu"},{name:"on-clickaway",rawName:"v-on-clickaway",value:(_vm.closeMenu),expression:"closeMenu"}],ref:"tooltip",staticStyle:{"z-index":"999","cursor":"pointer"},attrs:{"variant":"light"}},[_c('b-list-group-item',{attrs:{"action":""},on:{"click":function($event){_vm.$emit('item-action',{'action': 'move', 'target': _vm.keyword, 'source': _vm.source}); _vm.closeMenu()}}},[_vm._v(" "+_vm._s(_vm.$t('Move'))+": "+_vm._s(_vm.$t('move_confirmation', {'child': _vm.source.name,'parent':_vm.keyword.name}))+" ")]),_c('b-list-group-item',{attrs:{"action":""},on:{"click":function($event){_vm.$emit('item-action',{'action': 'merge', 'target': _vm.keyword, 'source': _vm.source}); _vm.closeMenu()}}},[_vm._v(" "+_vm._s(_vm.$t('Merge'))+": "+_vm._s(_vm.$t('merge_confirmation', {'source': _vm.source.name,'target':_vm.keyword.name}))+" ")]),_c('b-list-group-item',{attrs:{"action":""},on:{"click":function($event){return _vm.closeMenu()}}},[_vm._v(" "+_vm._s(_vm.$t('Cancel'))+" ")])],1)],1)} -var KeywordCardvue_type_template_id_eea8728a_scoped_true_staticRenderFns = [] +// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"3096e903-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/KeywordCard.vue?vue&type=template&id=bb84128a&scoped=true& +var KeywordCardvue_type_template_id_bb84128a_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{attrs:{"row":""}},[_c('b-card',{class:{'border border-primary' : _vm.over, 'shake': _vm.isError},staticStyle:{"height":"10vh"},style:({'cursor:grab' : _vm.draggable}),attrs:{"no-body":"","d-flex":"","flex-column":"","refs":"keywordCard","draggable":_vm.draggable},on:{"dragover":function($event){$event.preventDefault();},"dragenter":[function($event){$event.preventDefault();},function($event){return _vm.handleDragEnter($event)}],"dragstart":function($event){return _vm.handleDragStart($event)},"dragleave":function($event){return _vm.handleDragLeave($event)},"drop":function($event){return _vm.handleDragDrop($event)}}},[_c('b-row',{staticStyle:{"height":"inherit"},attrs:{"no-gutters":""}},[_c('b-col',{staticStyle:{"height":"inherit"},attrs:{"no-gutters":"","md":"3"}},[_c('b-card-img-lazy',{staticStyle:{"object-fit":"cover","height":"10vh"},attrs:{"src":_vm.keyword_image,"alt":_vm.$t('Recipe_Image')}})],1),_c('b-col',{staticStyle:{"height":"inherit"},attrs:{"no-gutters":"","md":"9"}},[_c('b-card-body',{staticClass:"m-0 py-0",staticStyle:{"height":"inherit"}},[_c('b-card-text',{staticClass:" h-100 my-0 d-flex flex-column",staticStyle:{"text-overflow":"ellipsis"}},[_c('h5',{staticClass:"m-0 mt-1 text-truncate"},[_vm._v(_vm._s(_vm.keyword.name))]),_c('div',{staticClass:"m-0 text-truncate"},[_vm._v(_vm._s(_vm.keyword.description))]),_c('div',{staticClass:"mt-auto mb-1 d-flex flex-row justify-content-end"},[(_vm.keyword.numchild !=0)?_c('div',{staticClass:"mx-2 btn btn-link btn-sm",staticStyle:{"z-index":"800"},on:{"click":function($event){return _vm.$emit('item-action',{'action':'get-children','source':_vm.keyword})}}},[(!_vm.keyword.expanded)?_c('div',[_vm._v(_vm._s(_vm.keyword.numchild)+" "+_vm._s(_vm.$t('Keywords')))]):_c('div',[_vm._v(_vm._s(_vm.$t('Hide Keywords')))])]):_vm._e(),_c('div',{staticClass:"mx-2 btn btn-link btn-sm",staticStyle:{"z-index":"800"},on:{"click":function($event){return _vm.$emit('item-action',{'action':'get-recipes','source':_vm.keyword})}}},[(!_vm.keyword.show_recipes)?_c('div',[_vm._v(_vm._s(_vm.keyword.numrecipe)+" "+_vm._s(_vm.$t('Recipes')))]):_c('div',[_vm._v(_vm._s(_vm.$t('Hide Recipes')))])])])])],1)],1),_c('div',{staticClass:"card-img-overlay justify-content-right h-25 m-0 p-0 text-right"},[_c('generic-context-menu',{staticClass:"p-0",attrs:{"show_merge":true,"show_move":true},on:{"item-action":function($event){return _vm.$emit('item-action', {'action': $event, 'source': _vm.keyword})}}})],1)],1)],1),(_vm.keyword.expanded)?_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-md-11 offset-md-1"},_vm._l((_vm.keyword.children),function(child){return _c('keyword-card',{key:child.id,attrs:{"keyword":child,"draggable":"true"},on:{"item-action":function($event){return _vm.$emit('item-action', $event)}}})}),1)]):_vm._e(),(_vm.keyword.show_recipes)?_c('div',{staticClass:"row"},[_c('div',{staticClass:"col-md-11 offset-md-1"},[_c('div',{staticStyle:{"display":"grid","grid-template-columns":"repeat(auto-fit, minmax(200px, 1fr))","grid-gap":"1rem"}},_vm._l((_vm.keyword.recipes),function(r){return _c('recipe-card',{key:r.id,attrs:{"recipe":r}})}),1)])]):_vm._e(),_c('b-list-group',{directives:[{name:"show",rawName:"v-show",value:(_vm.show_menu),expression:"show_menu"},{name:"on-clickaway",rawName:"v-on-clickaway",value:(_vm.closeMenu),expression:"closeMenu"}],ref:"tooltip",staticStyle:{"z-index":"999","cursor":"pointer"},attrs:{"variant":"light"}},[_c('b-list-group-item',{attrs:{"action":""},on:{"click":function($event){_vm.$emit('item-action',{'action': 'move', 'target': _vm.keyword, 'source': _vm.source}); _vm.closeMenu()}}},[_vm._v(" "+_vm._s(_vm.$t('Move'))+": "+_vm._s(_vm.$t('move_confirmation', {'child': _vm.source.name,'parent':_vm.keyword.name}))+" ")]),_c('b-list-group-item',{attrs:{"action":""},on:{"click":function($event){_vm.$emit('item-action',{'action': 'merge', 'target': _vm.keyword, 'source': _vm.source}); _vm.closeMenu()}}},[_vm._v(" "+_vm._s(_vm.$t('Merge'))+": "+_vm._s(_vm.$t('merge_confirmation', {'source': _vm.source.name,'target':_vm.keyword.name}))+" ")]),_c('b-list-group-item',{attrs:{"action":""},on:{"click":function($event){return _vm.closeMenu()}}},[_vm._v(" "+_vm._s(_vm.$t('Cancel'))+" ")])],1)],1)} +var KeywordCardvue_type_template_id_bb84128a_scoped_true_staticRenderFns = [] -// CONCATENATED MODULE: ./src/components/KeywordCard.vue?vue&type=template&id=eea8728a&scoped=true& +// CONCATENATED MODULE: ./src/components/KeywordCard.vue?vue&type=template&id=bb84128a&scoped=true& // EXTERNAL MODULE: ./src/components/GenericContextMenu.vue + 4 modules var GenericContextMenu = __webpack_require__("5eeb"); @@ -4875,7 +4864,7 @@ var lib_popper = __webpack_require__("39c3"); if (source.id != this.keyword.id) { this.source = source; var menuLocation = { - getBoundingClientRect: this.generateLocation(e.pageX, e.pageY) + getBoundingClientRect: this.generateLocation(e.clientX, e.clientY) }; this.show_menu = true; var popper = Object(lib_popper["a" /* createPopper */])(menuLocation, this.dragMenu, { @@ -4925,8 +4914,8 @@ var lib_popper = __webpack_require__("39c3"); }); // CONCATENATED MODULE: ./src/components/KeywordCard.vue?vue&type=script&lang=js& /* harmony default export */ var components_KeywordCardvue_type_script_lang_js_ = (KeywordCardvue_type_script_lang_js_); -// EXTERNAL MODULE: ./src/components/KeywordCard.vue?vue&type=style&index=0&id=eea8728a&scoped=true&lang=css& -var KeywordCardvue_type_style_index_0_id_eea8728a_scoped_true_lang_css_ = __webpack_require__("1b26"); +// EXTERNAL MODULE: ./src/components/KeywordCard.vue?vue&type=style&index=0&id=bb84128a&scoped=true&lang=css& +var KeywordCardvue_type_style_index_0_id_bb84128a_scoped_true_lang_css_ = __webpack_require__("8f76"); // EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js var componentNormalizer = __webpack_require__("2877"); @@ -4942,11 +4931,11 @@ var componentNormalizer = __webpack_require__("2877"); var component = Object(componentNormalizer["a" /* default */])( components_KeywordCardvue_type_script_lang_js_, - KeywordCardvue_type_template_id_eea8728a_scoped_true_render, - KeywordCardvue_type_template_id_eea8728a_scoped_true_staticRenderFns, + KeywordCardvue_type_template_id_bb84128a_scoped_true_render, + KeywordCardvue_type_template_id_bb84128a_scoped_true_staticRenderFns, false, null, - "eea8728a", + "bb84128a", null ) @@ -5593,15 +5582,12 @@ vue_esm["default"].use(esm["a" /* BootstrapVue */]); }); }, destroyCard: function destroyCard(id) { + var _kw$parent; + var kw = this.findKeyword(this.keywords, id); var kw2 = this.findKeyword(this.keywords2, id); var p_id = undefined; - - if (kw) { - p_id = kw.parent; - } else if (kw2) { - p_id = kw2.parent; - } + p_id = (_kw$parent = kw === null || kw === void 0 ? void 0 : kw.parent) !== null && _kw$parent !== void 0 ? _kw$parent : kw2.parent; if (p_id) { var parent = this.findKeyword(this.keywords, p_id); @@ -5656,7 +5642,7 @@ var vue_multiselect_minvue_type_style_index_0_lang_css_ = __webpack_require__("6 var KeywordListView_component = Object(componentNormalizer["a" /* default */])( KeywordListView_KeywordListViewvue_type_script_lang_js_, - KeywordListViewvue_type_template_id_08fd51d7_render, + KeywordListViewvue_type_template_id_798dcf78_render, staticRenderFns, false, null, @@ -5873,6 +5859,13 @@ module.exports = JSON.parse("{\"Import\":\"Importieren\",\"import_running\":\"Im /***/ }), +/***/ "6e5b": +/***/ (function(module, exports, __webpack_require__) { + +// extracted by mini-css-extract-plugin + +/***/ }), + /***/ "7432": /***/ (function(module, __webpack_exports__, __webpack_require__) { @@ -6253,6 +6246,17 @@ var component = Object(componentNormalizer["a" /* default */])( /* harmony default export */ var LastCooked = __webpack_exports__["a"] = (component.exports); +/***/ }), + +/***/ "8f76": +/***/ (function(module, __webpack_exports__, __webpack_require__) { + +"use strict"; +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KeywordCard_vue_vue_type_style_index_0_id_bb84128a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("6e5b"); +/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KeywordCard_vue_vue_type_style_index_0_id_bb84128a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_KeywordCard_vue_vue_type_style_index_0_id_bb84128a_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__); +/* unused harmony reexport * */ + + /***/ }), /***/ "9225": @@ -6303,13 +6307,6 @@ function loadLocaleMessages() { /***/ }), -/***/ "a526": -/***/ (function(module, exports, __webpack_require__) { - -// extracted by mini-css-extract-plugin - -/***/ }), - /***/ "a625": /***/ (function(module) { @@ -6517,7 +6514,7 @@ module.exports = JSON.parse("{\"err_fetching_resource\":\"\",\"err_creating_reso /***/ "edd4": /***/ (function(module) { -module.exports = JSON.parse("{\"err_fetching_resource\":\"There was an error fetching a resource!\",\"err_creating_resource\":\"There was an error creating a resource!\",\"err_updating_resource\":\"There was an error updating a resource!\",\"err_deleting_resource\":\"There was an error deleting a resource!\",\"success_fetching_resource\":\"Successfully fetched a resource!\",\"success_creating_resource\":\"Successfully created a resource!\",\"success_updating_resource\":\"Successfully updated a resource!\",\"success_deleting_resource\":\"Successfully deleted a resource!\",\"import_running\":\"Import running, please wait!\",\"all_fields_optional\":\"All fields are optional and can be left empty.\",\"convert_internal\":\"Convert to internal recipe\",\"show_only_internal\":\"Show only internal recipes\",\"show_split_screen\":\"Show split view\",\"Log_Recipe_Cooking\":\"Log Recipe Cooking\",\"External_Recipe_Image\":\"External Recipe Image\",\"Add_to_Book\":\"Add to Book\",\"Add_to_Shopping\":\"Add to Shopping\",\"Add_to_Plan\":\"Add to Plan\",\"Step_start_time\":\"Step start time\",\"Sort_by_new\":\"Sort by new\",\"Recipes_per_page\":\"Recipes per Page\",\"Meal_Plan\":\"Meal Plan\",\"Select_Book\":\"Select Book\",\"Recipe_Image\":\"Recipe Image\",\"Import_finished\":\"Import finished\",\"View_Recipes\":\"View Recipes\",\"Log_Cooking\":\"Log Cooking\",\"New_Recipe\":\"New Recipe\",\"Url_Import\":\"Url Import\",\"Reset_Search\":\"Reset Search\",\"Recently_Viewed\":\"Recently Viewed\",\"Load_More\":\"Load More\",\"New_Keyword\":\"New Keyword\",\"Delete_Keyword\":\"Delete Keyword\",\"Edit_Keyword\":\"Edit Keyword\",\"Move_Keyword\":\"Move Keyword\",\"Merge_Keyword\":\"Merge Keyword\",\"Hide_Keywords\":\"Hide Keywords\",\"Hide_Recipes\":\"Hide Recipes\",\"Keywords\":\"Keywords\",\"Books\":\"Books\",\"Proteins\":\"Proteins\",\"Fats\":\"Fats\",\"Carbohydrates\":\"Carbohydrates\",\"Calories\":\"Calories\",\"Nutrition\":\"Nutrition\",\"Date\":\"Date\",\"Share\":\"Share\",\"Export\":\"Export\",\"Copy\":\"Copy\",\"Rating\":\"Rating\",\"Close\":\"Close\",\"Cancel\":\"Cancel\",\"Link\":\"Link\",\"Add\":\"Add\",\"New\":\"New\",\"Success\":\"Success\",\"Ingredients\":\"Ingredients\",\"Supermarket\":\"Supermarket\",\"Categories\":\"Categories\",\"Category\":\"Category\",\"Selected\":\"Selected\",\"min\":\"min\",\"Servings\":\"Servings\",\"Waiting\":\"Waiting\",\"Preparation\":\"Preparation\",\"External\":\"External\",\"Size\":\"Size\",\"Files\":\"Files\",\"File\":\"File\",\"Edit\":\"Edit\",\"Delete\":\"Delete\",\"Open\":\"Open\",\"Ok\":\"Open\",\"Save\":\"Save\",\"Step\":\"Step\",\"Search\":\"Search\",\"Import\":\"Import\",\"Print\":\"Print\",\"Settings\":\"Settings\",\"or\":\"or\",\"and\":\"and\",\"Information\":\"Information\",\"Advanced Search Settings\":\"Advanced Search Settings\",\"View\":\"View\",\"Recipes\":\"Recipes\",\"Move\":\"Move\",\"Merge\":\"Merge\",\"Parent\":\"Parent\",\"delete_confimation\":\"Are you sure that you want to delete {kw} and all of it's children?\",\"move_confirmation\":\"Move {child} to parent {parent}\",\"merge_confirmation\":\"Replace {source} with {target}\",\"move_selection\":\"Select a parent to move {child} to.\",\"merge_selection\":\"Replace all occurences of {source} with the selected {type}.\",\"Download\":\"Download\",\"Root\":\"Root\",\"Ignore_Shopping\":\"Ignore Shopping\",\"Shopping_Category\":\"Shopping Category\",\"Edit_Food\":\"Edit Food\"}"); +module.exports = JSON.parse("{\"err_fetching_resource\":\"There was an error fetching a resource!\",\"err_creating_resource\":\"There was an error creating a resource!\",\"err_updating_resource\":\"There was an error updating a resource!\",\"err_deleting_resource\":\"There was an error deleting a resource!\",\"success_fetching_resource\":\"Successfully fetched a resource!\",\"success_creating_resource\":\"Successfully created a resource!\",\"success_updating_resource\":\"Successfully updated a resource!\",\"success_deleting_resource\":\"Successfully deleted a resource!\",\"import_running\":\"Import running, please wait!\",\"all_fields_optional\":\"All fields are optional and can be left empty.\",\"convert_internal\":\"Convert to internal recipe\",\"show_only_internal\":\"Show only internal recipes\",\"show_split_screen\":\"Show split view\",\"Log_Recipe_Cooking\":\"Log Recipe Cooking\",\"External_Recipe_Image\":\"External Recipe Image\",\"Add_to_Book\":\"Add to Book\",\"Add_to_Shopping\":\"Add to Shopping\",\"Add_to_Plan\":\"Add to Plan\",\"Step_start_time\":\"Step start time\",\"Sort_by_new\":\"Sort by new\",\"Recipes_per_page\":\"Recipes per Page\",\"Meal_Plan\":\"Meal Plan\",\"Select_Book\":\"Select Book\",\"Recipe_Image\":\"Recipe Image\",\"Import_finished\":\"Import finished\",\"View_Recipes\":\"View Recipes\",\"Log_Cooking\":\"Log Cooking\",\"New_Recipe\":\"New Recipe\",\"Url_Import\":\"Url Import\",\"Reset_Search\":\"Reset Search\",\"Recently_Viewed\":\"Recently Viewed\",\"Load_More\":\"Load More\",\"New_Keyword\":\"New Keyword\",\"Delete_Keyword\":\"Delete Keyword\",\"Edit_Keyword\":\"Edit Keyword\",\"Move_Keyword\":\"Move Keyword\",\"Merge_Keyword\":\"Merge Keyword\",\"Hide_Keywords\":\"Hide Keywords\",\"Hide_Recipes\":\"Hide Recipes\",\"Keywords\":\"Keywords\",\"Books\":\"Books\",\"Proteins\":\"Proteins\",\"Fats\":\"Fats\",\"Carbohydrates\":\"Carbohydrates\",\"Calories\":\"Calories\",\"Nutrition\":\"Nutrition\",\"Date\":\"Date\",\"Share\":\"Share\",\"Export\":\"Export\",\"Copy\":\"Copy\",\"Rating\":\"Rating\",\"Close\":\"Close\",\"Cancel\":\"Cancel\",\"Link\":\"Link\",\"Add\":\"Add\",\"New\":\"New\",\"Success\":\"Success\",\"Ingredients\":\"Ingredients\",\"Supermarket\":\"Supermarket\",\"Categories\":\"Categories\",\"Category\":\"Category\",\"Selected\":\"Selected\",\"min\":\"min\",\"Servings\":\"Servings\",\"Waiting\":\"Waiting\",\"Preparation\":\"Preparation\",\"External\":\"External\",\"Size\":\"Size\",\"Files\":\"Files\",\"File\":\"File\",\"Edit\":\"Edit\",\"Delete\":\"Delete\",\"Open\":\"Open\",\"Ok\":\"Open\",\"Save\":\"Save\",\"Step\":\"Step\",\"Search\":\"Search\",\"Import\":\"Import\",\"Print\":\"Print\",\"Settings\":\"Settings\",\"or\":\"or\",\"and\":\"and\",\"Information\":\"Information\",\"Advanced Search Settings\":\"Advanced Search Settings\",\"View\":\"View\",\"Recipes\":\"Recipes\",\"Move\":\"Move\",\"Merge\":\"Merge\",\"Parent\":\"Parent\",\"delete_confimation\":\"Are you sure that you want to delete {kw} and all of it's children?\",\"move_confirmation\":\"Move {child} to parent {parent}\",\"merge_confirmation\":\"Replace {source} with {target}\",\"move_selection\":\"Select a parent to move {child} to.\",\"merge_selection\":\"Replace all occurences of {source} with the selected {type}.\",\"Download\":\"Download\",\"Root\":\"Root\",\"Ignore_Shopping\":\"Ignore Shopping\",\"Shopping_Category\":\"Shopping Category\",\"Edit_Food\":\"Edit Food\",\"Move_Food\":\"Move Food\",\"New_Food\":\"New Food\"}"); /***/ }), diff --git a/cookbook/static/vue/js/offline_view.js b/cookbook/static/vue/js/offline_view.js index 5df18cf4..9d340d87 100644 --- a/cookbook/static/vue/js/offline_view.js +++ b/cookbook/static/vue/js/offline_view.js @@ -780,7 +780,7 @@ module.exports = JSON.parse("{\"err_fetching_resource\":\"\",\"err_creating_reso /***/ "edd4": /***/ (function(module) { -module.exports = JSON.parse("{\"err_fetching_resource\":\"There was an error fetching a resource!\",\"err_creating_resource\":\"There was an error creating a resource!\",\"err_updating_resource\":\"There was an error updating a resource!\",\"err_deleting_resource\":\"There was an error deleting a resource!\",\"success_fetching_resource\":\"Successfully fetched a resource!\",\"success_creating_resource\":\"Successfully created a resource!\",\"success_updating_resource\":\"Successfully updated a resource!\",\"success_deleting_resource\":\"Successfully deleted a resource!\",\"import_running\":\"Import running, please wait!\",\"all_fields_optional\":\"All fields are optional and can be left empty.\",\"convert_internal\":\"Convert to internal recipe\",\"show_only_internal\":\"Show only internal recipes\",\"show_split_screen\":\"Show split view\",\"Log_Recipe_Cooking\":\"Log Recipe Cooking\",\"External_Recipe_Image\":\"External Recipe Image\",\"Add_to_Book\":\"Add to Book\",\"Add_to_Shopping\":\"Add to Shopping\",\"Add_to_Plan\":\"Add to Plan\",\"Step_start_time\":\"Step start time\",\"Sort_by_new\":\"Sort by new\",\"Recipes_per_page\":\"Recipes per Page\",\"Meal_Plan\":\"Meal Plan\",\"Select_Book\":\"Select Book\",\"Recipe_Image\":\"Recipe Image\",\"Import_finished\":\"Import finished\",\"View_Recipes\":\"View Recipes\",\"Log_Cooking\":\"Log Cooking\",\"New_Recipe\":\"New Recipe\",\"Url_Import\":\"Url Import\",\"Reset_Search\":\"Reset Search\",\"Recently_Viewed\":\"Recently Viewed\",\"Load_More\":\"Load More\",\"New_Keyword\":\"New Keyword\",\"Delete_Keyword\":\"Delete Keyword\",\"Edit_Keyword\":\"Edit Keyword\",\"Move_Keyword\":\"Move Keyword\",\"Merge_Keyword\":\"Merge Keyword\",\"Hide_Keywords\":\"Hide Keywords\",\"Hide_Recipes\":\"Hide Recipes\",\"Keywords\":\"Keywords\",\"Books\":\"Books\",\"Proteins\":\"Proteins\",\"Fats\":\"Fats\",\"Carbohydrates\":\"Carbohydrates\",\"Calories\":\"Calories\",\"Nutrition\":\"Nutrition\",\"Date\":\"Date\",\"Share\":\"Share\",\"Export\":\"Export\",\"Copy\":\"Copy\",\"Rating\":\"Rating\",\"Close\":\"Close\",\"Cancel\":\"Cancel\",\"Link\":\"Link\",\"Add\":\"Add\",\"New\":\"New\",\"Success\":\"Success\",\"Ingredients\":\"Ingredients\",\"Supermarket\":\"Supermarket\",\"Categories\":\"Categories\",\"Category\":\"Category\",\"Selected\":\"Selected\",\"min\":\"min\",\"Servings\":\"Servings\",\"Waiting\":\"Waiting\",\"Preparation\":\"Preparation\",\"External\":\"External\",\"Size\":\"Size\",\"Files\":\"Files\",\"File\":\"File\",\"Edit\":\"Edit\",\"Delete\":\"Delete\",\"Open\":\"Open\",\"Ok\":\"Open\",\"Save\":\"Save\",\"Step\":\"Step\",\"Search\":\"Search\",\"Import\":\"Import\",\"Print\":\"Print\",\"Settings\":\"Settings\",\"or\":\"or\",\"and\":\"and\",\"Information\":\"Information\",\"Advanced Search Settings\":\"Advanced Search Settings\",\"View\":\"View\",\"Recipes\":\"Recipes\",\"Move\":\"Move\",\"Merge\":\"Merge\",\"Parent\":\"Parent\",\"delete_confimation\":\"Are you sure that you want to delete {kw} and all of it's children?\",\"move_confirmation\":\"Move {child} to parent {parent}\",\"merge_confirmation\":\"Replace {source} with {target}\",\"move_selection\":\"Select a parent to move {child} to.\",\"merge_selection\":\"Replace all occurences of {source} with the selected {type}.\",\"Download\":\"Download\",\"Root\":\"Root\",\"Ignore_Shopping\":\"Ignore Shopping\",\"Shopping_Category\":\"Shopping Category\",\"Edit_Food\":\"Edit Food\"}"); +module.exports = JSON.parse("{\"err_fetching_resource\":\"There was an error fetching a resource!\",\"err_creating_resource\":\"There was an error creating a resource!\",\"err_updating_resource\":\"There was an error updating a resource!\",\"err_deleting_resource\":\"There was an error deleting a resource!\",\"success_fetching_resource\":\"Successfully fetched a resource!\",\"success_creating_resource\":\"Successfully created a resource!\",\"success_updating_resource\":\"Successfully updated a resource!\",\"success_deleting_resource\":\"Successfully deleted a resource!\",\"import_running\":\"Import running, please wait!\",\"all_fields_optional\":\"All fields are optional and can be left empty.\",\"convert_internal\":\"Convert to internal recipe\",\"show_only_internal\":\"Show only internal recipes\",\"show_split_screen\":\"Show split view\",\"Log_Recipe_Cooking\":\"Log Recipe Cooking\",\"External_Recipe_Image\":\"External Recipe Image\",\"Add_to_Book\":\"Add to Book\",\"Add_to_Shopping\":\"Add to Shopping\",\"Add_to_Plan\":\"Add to Plan\",\"Step_start_time\":\"Step start time\",\"Sort_by_new\":\"Sort by new\",\"Recipes_per_page\":\"Recipes per Page\",\"Meal_Plan\":\"Meal Plan\",\"Select_Book\":\"Select Book\",\"Recipe_Image\":\"Recipe Image\",\"Import_finished\":\"Import finished\",\"View_Recipes\":\"View Recipes\",\"Log_Cooking\":\"Log Cooking\",\"New_Recipe\":\"New Recipe\",\"Url_Import\":\"Url Import\",\"Reset_Search\":\"Reset Search\",\"Recently_Viewed\":\"Recently Viewed\",\"Load_More\":\"Load More\",\"New_Keyword\":\"New Keyword\",\"Delete_Keyword\":\"Delete Keyword\",\"Edit_Keyword\":\"Edit Keyword\",\"Move_Keyword\":\"Move Keyword\",\"Merge_Keyword\":\"Merge Keyword\",\"Hide_Keywords\":\"Hide Keywords\",\"Hide_Recipes\":\"Hide Recipes\",\"Keywords\":\"Keywords\",\"Books\":\"Books\",\"Proteins\":\"Proteins\",\"Fats\":\"Fats\",\"Carbohydrates\":\"Carbohydrates\",\"Calories\":\"Calories\",\"Nutrition\":\"Nutrition\",\"Date\":\"Date\",\"Share\":\"Share\",\"Export\":\"Export\",\"Copy\":\"Copy\",\"Rating\":\"Rating\",\"Close\":\"Close\",\"Cancel\":\"Cancel\",\"Link\":\"Link\",\"Add\":\"Add\",\"New\":\"New\",\"Success\":\"Success\",\"Ingredients\":\"Ingredients\",\"Supermarket\":\"Supermarket\",\"Categories\":\"Categories\",\"Category\":\"Category\",\"Selected\":\"Selected\",\"min\":\"min\",\"Servings\":\"Servings\",\"Waiting\":\"Waiting\",\"Preparation\":\"Preparation\",\"External\":\"External\",\"Size\":\"Size\",\"Files\":\"Files\",\"File\":\"File\",\"Edit\":\"Edit\",\"Delete\":\"Delete\",\"Open\":\"Open\",\"Ok\":\"Open\",\"Save\":\"Save\",\"Step\":\"Step\",\"Search\":\"Search\",\"Import\":\"Import\",\"Print\":\"Print\",\"Settings\":\"Settings\",\"or\":\"or\",\"and\":\"and\",\"Information\":\"Information\",\"Advanced Search Settings\":\"Advanced Search Settings\",\"View\":\"View\",\"Recipes\":\"Recipes\",\"Move\":\"Move\",\"Merge\":\"Merge\",\"Parent\":\"Parent\",\"delete_confimation\":\"Are you sure that you want to delete {kw} and all of it's children?\",\"move_confirmation\":\"Move {child} to parent {parent}\",\"merge_confirmation\":\"Replace {source} with {target}\",\"move_selection\":\"Select a parent to move {child} to.\",\"merge_selection\":\"Replace all occurences of {source} with the selected {type}.\",\"Download\":\"Download\",\"Root\":\"Root\",\"Ignore_Shopping\":\"Ignore Shopping\",\"Shopping_Category\":\"Shopping Category\",\"Edit_Food\":\"Edit Food\",\"Move_Food\":\"Move Food\",\"New_Food\":\"New Food\"}"); /***/ }), diff --git a/cookbook/static/vue/js/recipe_search_view.js b/cookbook/static/vue/js/recipe_search_view.js index 7826ece2..46ea60a1 100644 --- a/cookbook/static/vue/js/recipe_search_view.js +++ b/cookbook/static/vue/js/recipe_search_view.js @@ -6079,7 +6079,7 @@ module.exports = JSON.parse("{\"err_fetching_resource\":\"\",\"err_creating_reso /***/ "edd4": /***/ (function(module) { -module.exports = JSON.parse("{\"err_fetching_resource\":\"There was an error fetching a resource!\",\"err_creating_resource\":\"There was an error creating a resource!\",\"err_updating_resource\":\"There was an error updating a resource!\",\"err_deleting_resource\":\"There was an error deleting a resource!\",\"success_fetching_resource\":\"Successfully fetched a resource!\",\"success_creating_resource\":\"Successfully created a resource!\",\"success_updating_resource\":\"Successfully updated a resource!\",\"success_deleting_resource\":\"Successfully deleted a resource!\",\"import_running\":\"Import running, please wait!\",\"all_fields_optional\":\"All fields are optional and can be left empty.\",\"convert_internal\":\"Convert to internal recipe\",\"show_only_internal\":\"Show only internal recipes\",\"show_split_screen\":\"Show split view\",\"Log_Recipe_Cooking\":\"Log Recipe Cooking\",\"External_Recipe_Image\":\"External Recipe Image\",\"Add_to_Book\":\"Add to Book\",\"Add_to_Shopping\":\"Add to Shopping\",\"Add_to_Plan\":\"Add to Plan\",\"Step_start_time\":\"Step start time\",\"Sort_by_new\":\"Sort by new\",\"Recipes_per_page\":\"Recipes per Page\",\"Meal_Plan\":\"Meal Plan\",\"Select_Book\":\"Select Book\",\"Recipe_Image\":\"Recipe Image\",\"Import_finished\":\"Import finished\",\"View_Recipes\":\"View Recipes\",\"Log_Cooking\":\"Log Cooking\",\"New_Recipe\":\"New Recipe\",\"Url_Import\":\"Url Import\",\"Reset_Search\":\"Reset Search\",\"Recently_Viewed\":\"Recently Viewed\",\"Load_More\":\"Load More\",\"New_Keyword\":\"New Keyword\",\"Delete_Keyword\":\"Delete Keyword\",\"Edit_Keyword\":\"Edit Keyword\",\"Move_Keyword\":\"Move Keyword\",\"Merge_Keyword\":\"Merge Keyword\",\"Hide_Keywords\":\"Hide Keywords\",\"Hide_Recipes\":\"Hide Recipes\",\"Keywords\":\"Keywords\",\"Books\":\"Books\",\"Proteins\":\"Proteins\",\"Fats\":\"Fats\",\"Carbohydrates\":\"Carbohydrates\",\"Calories\":\"Calories\",\"Nutrition\":\"Nutrition\",\"Date\":\"Date\",\"Share\":\"Share\",\"Export\":\"Export\",\"Copy\":\"Copy\",\"Rating\":\"Rating\",\"Close\":\"Close\",\"Cancel\":\"Cancel\",\"Link\":\"Link\",\"Add\":\"Add\",\"New\":\"New\",\"Success\":\"Success\",\"Ingredients\":\"Ingredients\",\"Supermarket\":\"Supermarket\",\"Categories\":\"Categories\",\"Category\":\"Category\",\"Selected\":\"Selected\",\"min\":\"min\",\"Servings\":\"Servings\",\"Waiting\":\"Waiting\",\"Preparation\":\"Preparation\",\"External\":\"External\",\"Size\":\"Size\",\"Files\":\"Files\",\"File\":\"File\",\"Edit\":\"Edit\",\"Delete\":\"Delete\",\"Open\":\"Open\",\"Ok\":\"Open\",\"Save\":\"Save\",\"Step\":\"Step\",\"Search\":\"Search\",\"Import\":\"Import\",\"Print\":\"Print\",\"Settings\":\"Settings\",\"or\":\"or\",\"and\":\"and\",\"Information\":\"Information\",\"Advanced Search Settings\":\"Advanced Search Settings\",\"View\":\"View\",\"Recipes\":\"Recipes\",\"Move\":\"Move\",\"Merge\":\"Merge\",\"Parent\":\"Parent\",\"delete_confimation\":\"Are you sure that you want to delete {kw} and all of it's children?\",\"move_confirmation\":\"Move {child} to parent {parent}\",\"merge_confirmation\":\"Replace {source} with {target}\",\"move_selection\":\"Select a parent to move {child} to.\",\"merge_selection\":\"Replace all occurences of {source} with the selected {type}.\",\"Download\":\"Download\",\"Root\":\"Root\",\"Ignore_Shopping\":\"Ignore Shopping\",\"Shopping_Category\":\"Shopping Category\",\"Edit_Food\":\"Edit Food\"}"); +module.exports = JSON.parse("{\"err_fetching_resource\":\"There was an error fetching a resource!\",\"err_creating_resource\":\"There was an error creating a resource!\",\"err_updating_resource\":\"There was an error updating a resource!\",\"err_deleting_resource\":\"There was an error deleting a resource!\",\"success_fetching_resource\":\"Successfully fetched a resource!\",\"success_creating_resource\":\"Successfully created a resource!\",\"success_updating_resource\":\"Successfully updated a resource!\",\"success_deleting_resource\":\"Successfully deleted a resource!\",\"import_running\":\"Import running, please wait!\",\"all_fields_optional\":\"All fields are optional and can be left empty.\",\"convert_internal\":\"Convert to internal recipe\",\"show_only_internal\":\"Show only internal recipes\",\"show_split_screen\":\"Show split view\",\"Log_Recipe_Cooking\":\"Log Recipe Cooking\",\"External_Recipe_Image\":\"External Recipe Image\",\"Add_to_Book\":\"Add to Book\",\"Add_to_Shopping\":\"Add to Shopping\",\"Add_to_Plan\":\"Add to Plan\",\"Step_start_time\":\"Step start time\",\"Sort_by_new\":\"Sort by new\",\"Recipes_per_page\":\"Recipes per Page\",\"Meal_Plan\":\"Meal Plan\",\"Select_Book\":\"Select Book\",\"Recipe_Image\":\"Recipe Image\",\"Import_finished\":\"Import finished\",\"View_Recipes\":\"View Recipes\",\"Log_Cooking\":\"Log Cooking\",\"New_Recipe\":\"New Recipe\",\"Url_Import\":\"Url Import\",\"Reset_Search\":\"Reset Search\",\"Recently_Viewed\":\"Recently Viewed\",\"Load_More\":\"Load More\",\"New_Keyword\":\"New Keyword\",\"Delete_Keyword\":\"Delete Keyword\",\"Edit_Keyword\":\"Edit Keyword\",\"Move_Keyword\":\"Move Keyword\",\"Merge_Keyword\":\"Merge Keyword\",\"Hide_Keywords\":\"Hide Keywords\",\"Hide_Recipes\":\"Hide Recipes\",\"Keywords\":\"Keywords\",\"Books\":\"Books\",\"Proteins\":\"Proteins\",\"Fats\":\"Fats\",\"Carbohydrates\":\"Carbohydrates\",\"Calories\":\"Calories\",\"Nutrition\":\"Nutrition\",\"Date\":\"Date\",\"Share\":\"Share\",\"Export\":\"Export\",\"Copy\":\"Copy\",\"Rating\":\"Rating\",\"Close\":\"Close\",\"Cancel\":\"Cancel\",\"Link\":\"Link\",\"Add\":\"Add\",\"New\":\"New\",\"Success\":\"Success\",\"Ingredients\":\"Ingredients\",\"Supermarket\":\"Supermarket\",\"Categories\":\"Categories\",\"Category\":\"Category\",\"Selected\":\"Selected\",\"min\":\"min\",\"Servings\":\"Servings\",\"Waiting\":\"Waiting\",\"Preparation\":\"Preparation\",\"External\":\"External\",\"Size\":\"Size\",\"Files\":\"Files\",\"File\":\"File\",\"Edit\":\"Edit\",\"Delete\":\"Delete\",\"Open\":\"Open\",\"Ok\":\"Open\",\"Save\":\"Save\",\"Step\":\"Step\",\"Search\":\"Search\",\"Import\":\"Import\",\"Print\":\"Print\",\"Settings\":\"Settings\",\"or\":\"or\",\"and\":\"and\",\"Information\":\"Information\",\"Advanced Search Settings\":\"Advanced Search Settings\",\"View\":\"View\",\"Recipes\":\"Recipes\",\"Move\":\"Move\",\"Merge\":\"Merge\",\"Parent\":\"Parent\",\"delete_confimation\":\"Are you sure that you want to delete {kw} and all of it's children?\",\"move_confirmation\":\"Move {child} to parent {parent}\",\"merge_confirmation\":\"Replace {source} with {target}\",\"move_selection\":\"Select a parent to move {child} to.\",\"merge_selection\":\"Replace all occurences of {source} with the selected {type}.\",\"Download\":\"Download\",\"Root\":\"Root\",\"Ignore_Shopping\":\"Ignore Shopping\",\"Shopping_Category\":\"Shopping Category\",\"Edit_Food\":\"Edit Food\",\"Move_Food\":\"Move Food\",\"New_Food\":\"New Food\"}"); /***/ }), diff --git a/cookbook/static/vue/js/recipe_view.js b/cookbook/static/vue/js/recipe_view.js index dea87be1..bbc8ad63 100644 --- a/cookbook/static/vue/js/recipe_view.js +++ b/cookbook/static/vue/js/recipe_view.js @@ -2085,7 +2085,7 @@ module.exports = JSON.parse("{\"err_fetching_resource\":\"\",\"err_creating_reso /***/ "edd4": /***/ (function(module) { -module.exports = JSON.parse("{\"err_fetching_resource\":\"There was an error fetching a resource!\",\"err_creating_resource\":\"There was an error creating a resource!\",\"err_updating_resource\":\"There was an error updating a resource!\",\"err_deleting_resource\":\"There was an error deleting a resource!\",\"success_fetching_resource\":\"Successfully fetched a resource!\",\"success_creating_resource\":\"Successfully created a resource!\",\"success_updating_resource\":\"Successfully updated a resource!\",\"success_deleting_resource\":\"Successfully deleted a resource!\",\"import_running\":\"Import running, please wait!\",\"all_fields_optional\":\"All fields are optional and can be left empty.\",\"convert_internal\":\"Convert to internal recipe\",\"show_only_internal\":\"Show only internal recipes\",\"show_split_screen\":\"Show split view\",\"Log_Recipe_Cooking\":\"Log Recipe Cooking\",\"External_Recipe_Image\":\"External Recipe Image\",\"Add_to_Book\":\"Add to Book\",\"Add_to_Shopping\":\"Add to Shopping\",\"Add_to_Plan\":\"Add to Plan\",\"Step_start_time\":\"Step start time\",\"Sort_by_new\":\"Sort by new\",\"Recipes_per_page\":\"Recipes per Page\",\"Meal_Plan\":\"Meal Plan\",\"Select_Book\":\"Select Book\",\"Recipe_Image\":\"Recipe Image\",\"Import_finished\":\"Import finished\",\"View_Recipes\":\"View Recipes\",\"Log_Cooking\":\"Log Cooking\",\"New_Recipe\":\"New Recipe\",\"Url_Import\":\"Url Import\",\"Reset_Search\":\"Reset Search\",\"Recently_Viewed\":\"Recently Viewed\",\"Load_More\":\"Load More\",\"New_Keyword\":\"New Keyword\",\"Delete_Keyword\":\"Delete Keyword\",\"Edit_Keyword\":\"Edit Keyword\",\"Move_Keyword\":\"Move Keyword\",\"Merge_Keyword\":\"Merge Keyword\",\"Hide_Keywords\":\"Hide Keywords\",\"Hide_Recipes\":\"Hide Recipes\",\"Keywords\":\"Keywords\",\"Books\":\"Books\",\"Proteins\":\"Proteins\",\"Fats\":\"Fats\",\"Carbohydrates\":\"Carbohydrates\",\"Calories\":\"Calories\",\"Nutrition\":\"Nutrition\",\"Date\":\"Date\",\"Share\":\"Share\",\"Export\":\"Export\",\"Copy\":\"Copy\",\"Rating\":\"Rating\",\"Close\":\"Close\",\"Cancel\":\"Cancel\",\"Link\":\"Link\",\"Add\":\"Add\",\"New\":\"New\",\"Success\":\"Success\",\"Ingredients\":\"Ingredients\",\"Supermarket\":\"Supermarket\",\"Categories\":\"Categories\",\"Category\":\"Category\",\"Selected\":\"Selected\",\"min\":\"min\",\"Servings\":\"Servings\",\"Waiting\":\"Waiting\",\"Preparation\":\"Preparation\",\"External\":\"External\",\"Size\":\"Size\",\"Files\":\"Files\",\"File\":\"File\",\"Edit\":\"Edit\",\"Delete\":\"Delete\",\"Open\":\"Open\",\"Ok\":\"Open\",\"Save\":\"Save\",\"Step\":\"Step\",\"Search\":\"Search\",\"Import\":\"Import\",\"Print\":\"Print\",\"Settings\":\"Settings\",\"or\":\"or\",\"and\":\"and\",\"Information\":\"Information\",\"Advanced Search Settings\":\"Advanced Search Settings\",\"View\":\"View\",\"Recipes\":\"Recipes\",\"Move\":\"Move\",\"Merge\":\"Merge\",\"Parent\":\"Parent\",\"delete_confimation\":\"Are you sure that you want to delete {kw} and all of it's children?\",\"move_confirmation\":\"Move {child} to parent {parent}\",\"merge_confirmation\":\"Replace {source} with {target}\",\"move_selection\":\"Select a parent to move {child} to.\",\"merge_selection\":\"Replace all occurences of {source} with the selected {type}.\",\"Download\":\"Download\",\"Root\":\"Root\",\"Ignore_Shopping\":\"Ignore Shopping\",\"Shopping_Category\":\"Shopping Category\",\"Edit_Food\":\"Edit Food\"}"); +module.exports = JSON.parse("{\"err_fetching_resource\":\"There was an error fetching a resource!\",\"err_creating_resource\":\"There was an error creating a resource!\",\"err_updating_resource\":\"There was an error updating a resource!\",\"err_deleting_resource\":\"There was an error deleting a resource!\",\"success_fetching_resource\":\"Successfully fetched a resource!\",\"success_creating_resource\":\"Successfully created a resource!\",\"success_updating_resource\":\"Successfully updated a resource!\",\"success_deleting_resource\":\"Successfully deleted a resource!\",\"import_running\":\"Import running, please wait!\",\"all_fields_optional\":\"All fields are optional and can be left empty.\",\"convert_internal\":\"Convert to internal recipe\",\"show_only_internal\":\"Show only internal recipes\",\"show_split_screen\":\"Show split view\",\"Log_Recipe_Cooking\":\"Log Recipe Cooking\",\"External_Recipe_Image\":\"External Recipe Image\",\"Add_to_Book\":\"Add to Book\",\"Add_to_Shopping\":\"Add to Shopping\",\"Add_to_Plan\":\"Add to Plan\",\"Step_start_time\":\"Step start time\",\"Sort_by_new\":\"Sort by new\",\"Recipes_per_page\":\"Recipes per Page\",\"Meal_Plan\":\"Meal Plan\",\"Select_Book\":\"Select Book\",\"Recipe_Image\":\"Recipe Image\",\"Import_finished\":\"Import finished\",\"View_Recipes\":\"View Recipes\",\"Log_Cooking\":\"Log Cooking\",\"New_Recipe\":\"New Recipe\",\"Url_Import\":\"Url Import\",\"Reset_Search\":\"Reset Search\",\"Recently_Viewed\":\"Recently Viewed\",\"Load_More\":\"Load More\",\"New_Keyword\":\"New Keyword\",\"Delete_Keyword\":\"Delete Keyword\",\"Edit_Keyword\":\"Edit Keyword\",\"Move_Keyword\":\"Move Keyword\",\"Merge_Keyword\":\"Merge Keyword\",\"Hide_Keywords\":\"Hide Keywords\",\"Hide_Recipes\":\"Hide Recipes\",\"Keywords\":\"Keywords\",\"Books\":\"Books\",\"Proteins\":\"Proteins\",\"Fats\":\"Fats\",\"Carbohydrates\":\"Carbohydrates\",\"Calories\":\"Calories\",\"Nutrition\":\"Nutrition\",\"Date\":\"Date\",\"Share\":\"Share\",\"Export\":\"Export\",\"Copy\":\"Copy\",\"Rating\":\"Rating\",\"Close\":\"Close\",\"Cancel\":\"Cancel\",\"Link\":\"Link\",\"Add\":\"Add\",\"New\":\"New\",\"Success\":\"Success\",\"Ingredients\":\"Ingredients\",\"Supermarket\":\"Supermarket\",\"Categories\":\"Categories\",\"Category\":\"Category\",\"Selected\":\"Selected\",\"min\":\"min\",\"Servings\":\"Servings\",\"Waiting\":\"Waiting\",\"Preparation\":\"Preparation\",\"External\":\"External\",\"Size\":\"Size\",\"Files\":\"Files\",\"File\":\"File\",\"Edit\":\"Edit\",\"Delete\":\"Delete\",\"Open\":\"Open\",\"Ok\":\"Open\",\"Save\":\"Save\",\"Step\":\"Step\",\"Search\":\"Search\",\"Import\":\"Import\",\"Print\":\"Print\",\"Settings\":\"Settings\",\"or\":\"or\",\"and\":\"and\",\"Information\":\"Information\",\"Advanced Search Settings\":\"Advanced Search Settings\",\"View\":\"View\",\"Recipes\":\"Recipes\",\"Move\":\"Move\",\"Merge\":\"Merge\",\"Parent\":\"Parent\",\"delete_confimation\":\"Are you sure that you want to delete {kw} and all of it's children?\",\"move_confirmation\":\"Move {child} to parent {parent}\",\"merge_confirmation\":\"Replace {source} with {target}\",\"move_selection\":\"Select a parent to move {child} to.\",\"merge_selection\":\"Replace all occurences of {source} with the selected {type}.\",\"Download\":\"Download\",\"Root\":\"Root\",\"Ignore_Shopping\":\"Ignore Shopping\",\"Shopping_Category\":\"Shopping Category\",\"Edit_Food\":\"Edit Food\",\"Move_Food\":\"Move Food\",\"New_Food\":\"New Food\"}"); /***/ }), diff --git a/cookbook/static/vue/js/supermarket_view.js b/cookbook/static/vue/js/supermarket_view.js index 236d2139..07a3a20c 100644 --- a/cookbook/static/vue/js/supermarket_view.js +++ b/cookbook/static/vue/js/supermarket_view.js @@ -4661,7 +4661,7 @@ module.exports = JSON.parse("{\"err_fetching_resource\":\"\",\"err_creating_reso /***/ "edd4": /***/ (function(module) { -module.exports = JSON.parse("{\"err_fetching_resource\":\"There was an error fetching a resource!\",\"err_creating_resource\":\"There was an error creating a resource!\",\"err_updating_resource\":\"There was an error updating a resource!\",\"err_deleting_resource\":\"There was an error deleting a resource!\",\"success_fetching_resource\":\"Successfully fetched a resource!\",\"success_creating_resource\":\"Successfully created a resource!\",\"success_updating_resource\":\"Successfully updated a resource!\",\"success_deleting_resource\":\"Successfully deleted a resource!\",\"import_running\":\"Import running, please wait!\",\"all_fields_optional\":\"All fields are optional and can be left empty.\",\"convert_internal\":\"Convert to internal recipe\",\"show_only_internal\":\"Show only internal recipes\",\"show_split_screen\":\"Show split view\",\"Log_Recipe_Cooking\":\"Log Recipe Cooking\",\"External_Recipe_Image\":\"External Recipe Image\",\"Add_to_Book\":\"Add to Book\",\"Add_to_Shopping\":\"Add to Shopping\",\"Add_to_Plan\":\"Add to Plan\",\"Step_start_time\":\"Step start time\",\"Sort_by_new\":\"Sort by new\",\"Recipes_per_page\":\"Recipes per Page\",\"Meal_Plan\":\"Meal Plan\",\"Select_Book\":\"Select Book\",\"Recipe_Image\":\"Recipe Image\",\"Import_finished\":\"Import finished\",\"View_Recipes\":\"View Recipes\",\"Log_Cooking\":\"Log Cooking\",\"New_Recipe\":\"New Recipe\",\"Url_Import\":\"Url Import\",\"Reset_Search\":\"Reset Search\",\"Recently_Viewed\":\"Recently Viewed\",\"Load_More\":\"Load More\",\"New_Keyword\":\"New Keyword\",\"Delete_Keyword\":\"Delete Keyword\",\"Edit_Keyword\":\"Edit Keyword\",\"Move_Keyword\":\"Move Keyword\",\"Merge_Keyword\":\"Merge Keyword\",\"Hide_Keywords\":\"Hide Keywords\",\"Hide_Recipes\":\"Hide Recipes\",\"Keywords\":\"Keywords\",\"Books\":\"Books\",\"Proteins\":\"Proteins\",\"Fats\":\"Fats\",\"Carbohydrates\":\"Carbohydrates\",\"Calories\":\"Calories\",\"Nutrition\":\"Nutrition\",\"Date\":\"Date\",\"Share\":\"Share\",\"Export\":\"Export\",\"Copy\":\"Copy\",\"Rating\":\"Rating\",\"Close\":\"Close\",\"Cancel\":\"Cancel\",\"Link\":\"Link\",\"Add\":\"Add\",\"New\":\"New\",\"Success\":\"Success\",\"Ingredients\":\"Ingredients\",\"Supermarket\":\"Supermarket\",\"Categories\":\"Categories\",\"Category\":\"Category\",\"Selected\":\"Selected\",\"min\":\"min\",\"Servings\":\"Servings\",\"Waiting\":\"Waiting\",\"Preparation\":\"Preparation\",\"External\":\"External\",\"Size\":\"Size\",\"Files\":\"Files\",\"File\":\"File\",\"Edit\":\"Edit\",\"Delete\":\"Delete\",\"Open\":\"Open\",\"Ok\":\"Open\",\"Save\":\"Save\",\"Step\":\"Step\",\"Search\":\"Search\",\"Import\":\"Import\",\"Print\":\"Print\",\"Settings\":\"Settings\",\"or\":\"or\",\"and\":\"and\",\"Information\":\"Information\",\"Advanced Search Settings\":\"Advanced Search Settings\",\"View\":\"View\",\"Recipes\":\"Recipes\",\"Move\":\"Move\",\"Merge\":\"Merge\",\"Parent\":\"Parent\",\"delete_confimation\":\"Are you sure that you want to delete {kw} and all of it's children?\",\"move_confirmation\":\"Move {child} to parent {parent}\",\"merge_confirmation\":\"Replace {source} with {target}\",\"move_selection\":\"Select a parent to move {child} to.\",\"merge_selection\":\"Replace all occurences of {source} with the selected {type}.\",\"Download\":\"Download\",\"Root\":\"Root\",\"Ignore_Shopping\":\"Ignore Shopping\",\"Shopping_Category\":\"Shopping Category\",\"Edit_Food\":\"Edit Food\"}"); +module.exports = JSON.parse("{\"err_fetching_resource\":\"There was an error fetching a resource!\",\"err_creating_resource\":\"There was an error creating a resource!\",\"err_updating_resource\":\"There was an error updating a resource!\",\"err_deleting_resource\":\"There was an error deleting a resource!\",\"success_fetching_resource\":\"Successfully fetched a resource!\",\"success_creating_resource\":\"Successfully created a resource!\",\"success_updating_resource\":\"Successfully updated a resource!\",\"success_deleting_resource\":\"Successfully deleted a resource!\",\"import_running\":\"Import running, please wait!\",\"all_fields_optional\":\"All fields are optional and can be left empty.\",\"convert_internal\":\"Convert to internal recipe\",\"show_only_internal\":\"Show only internal recipes\",\"show_split_screen\":\"Show split view\",\"Log_Recipe_Cooking\":\"Log Recipe Cooking\",\"External_Recipe_Image\":\"External Recipe Image\",\"Add_to_Book\":\"Add to Book\",\"Add_to_Shopping\":\"Add to Shopping\",\"Add_to_Plan\":\"Add to Plan\",\"Step_start_time\":\"Step start time\",\"Sort_by_new\":\"Sort by new\",\"Recipes_per_page\":\"Recipes per Page\",\"Meal_Plan\":\"Meal Plan\",\"Select_Book\":\"Select Book\",\"Recipe_Image\":\"Recipe Image\",\"Import_finished\":\"Import finished\",\"View_Recipes\":\"View Recipes\",\"Log_Cooking\":\"Log Cooking\",\"New_Recipe\":\"New Recipe\",\"Url_Import\":\"Url Import\",\"Reset_Search\":\"Reset Search\",\"Recently_Viewed\":\"Recently Viewed\",\"Load_More\":\"Load More\",\"New_Keyword\":\"New Keyword\",\"Delete_Keyword\":\"Delete Keyword\",\"Edit_Keyword\":\"Edit Keyword\",\"Move_Keyword\":\"Move Keyword\",\"Merge_Keyword\":\"Merge Keyword\",\"Hide_Keywords\":\"Hide Keywords\",\"Hide_Recipes\":\"Hide Recipes\",\"Keywords\":\"Keywords\",\"Books\":\"Books\",\"Proteins\":\"Proteins\",\"Fats\":\"Fats\",\"Carbohydrates\":\"Carbohydrates\",\"Calories\":\"Calories\",\"Nutrition\":\"Nutrition\",\"Date\":\"Date\",\"Share\":\"Share\",\"Export\":\"Export\",\"Copy\":\"Copy\",\"Rating\":\"Rating\",\"Close\":\"Close\",\"Cancel\":\"Cancel\",\"Link\":\"Link\",\"Add\":\"Add\",\"New\":\"New\",\"Success\":\"Success\",\"Ingredients\":\"Ingredients\",\"Supermarket\":\"Supermarket\",\"Categories\":\"Categories\",\"Category\":\"Category\",\"Selected\":\"Selected\",\"min\":\"min\",\"Servings\":\"Servings\",\"Waiting\":\"Waiting\",\"Preparation\":\"Preparation\",\"External\":\"External\",\"Size\":\"Size\",\"Files\":\"Files\",\"File\":\"File\",\"Edit\":\"Edit\",\"Delete\":\"Delete\",\"Open\":\"Open\",\"Ok\":\"Open\",\"Save\":\"Save\",\"Step\":\"Step\",\"Search\":\"Search\",\"Import\":\"Import\",\"Print\":\"Print\",\"Settings\":\"Settings\",\"or\":\"or\",\"and\":\"and\",\"Information\":\"Information\",\"Advanced Search Settings\":\"Advanced Search Settings\",\"View\":\"View\",\"Recipes\":\"Recipes\",\"Move\":\"Move\",\"Merge\":\"Merge\",\"Parent\":\"Parent\",\"delete_confimation\":\"Are you sure that you want to delete {kw} and all of it's children?\",\"move_confirmation\":\"Move {child} to parent {parent}\",\"merge_confirmation\":\"Replace {source} with {target}\",\"move_selection\":\"Select a parent to move {child} to.\",\"merge_selection\":\"Replace all occurences of {source} with the selected {type}.\",\"Download\":\"Download\",\"Root\":\"Root\",\"Ignore_Shopping\":\"Ignore Shopping\",\"Shopping_Category\":\"Shopping Category\",\"Edit_Food\":\"Edit Food\",\"Move_Food\":\"Move Food\",\"New_Food\":\"New Food\"}"); /***/ }), diff --git a/cookbook/static/vue/js/user_file_view.js b/cookbook/static/vue/js/user_file_view.js index f6ce0a1c..4a4aa8a2 100644 --- a/cookbook/static/vue/js/user_file_view.js +++ b/cookbook/static/vue/js/user_file_view.js @@ -4321,7 +4321,7 @@ module.exports = JSON.parse("{\"err_fetching_resource\":\"\",\"err_creating_reso /***/ "edd4": /***/ (function(module) { -module.exports = JSON.parse("{\"err_fetching_resource\":\"There was an error fetching a resource!\",\"err_creating_resource\":\"There was an error creating a resource!\",\"err_updating_resource\":\"There was an error updating a resource!\",\"err_deleting_resource\":\"There was an error deleting a resource!\",\"success_fetching_resource\":\"Successfully fetched a resource!\",\"success_creating_resource\":\"Successfully created a resource!\",\"success_updating_resource\":\"Successfully updated a resource!\",\"success_deleting_resource\":\"Successfully deleted a resource!\",\"import_running\":\"Import running, please wait!\",\"all_fields_optional\":\"All fields are optional and can be left empty.\",\"convert_internal\":\"Convert to internal recipe\",\"show_only_internal\":\"Show only internal recipes\",\"show_split_screen\":\"Show split view\",\"Log_Recipe_Cooking\":\"Log Recipe Cooking\",\"External_Recipe_Image\":\"External Recipe Image\",\"Add_to_Book\":\"Add to Book\",\"Add_to_Shopping\":\"Add to Shopping\",\"Add_to_Plan\":\"Add to Plan\",\"Step_start_time\":\"Step start time\",\"Sort_by_new\":\"Sort by new\",\"Recipes_per_page\":\"Recipes per Page\",\"Meal_Plan\":\"Meal Plan\",\"Select_Book\":\"Select Book\",\"Recipe_Image\":\"Recipe Image\",\"Import_finished\":\"Import finished\",\"View_Recipes\":\"View Recipes\",\"Log_Cooking\":\"Log Cooking\",\"New_Recipe\":\"New Recipe\",\"Url_Import\":\"Url Import\",\"Reset_Search\":\"Reset Search\",\"Recently_Viewed\":\"Recently Viewed\",\"Load_More\":\"Load More\",\"New_Keyword\":\"New Keyword\",\"Delete_Keyword\":\"Delete Keyword\",\"Edit_Keyword\":\"Edit Keyword\",\"Move_Keyword\":\"Move Keyword\",\"Merge_Keyword\":\"Merge Keyword\",\"Hide_Keywords\":\"Hide Keywords\",\"Hide_Recipes\":\"Hide Recipes\",\"Keywords\":\"Keywords\",\"Books\":\"Books\",\"Proteins\":\"Proteins\",\"Fats\":\"Fats\",\"Carbohydrates\":\"Carbohydrates\",\"Calories\":\"Calories\",\"Nutrition\":\"Nutrition\",\"Date\":\"Date\",\"Share\":\"Share\",\"Export\":\"Export\",\"Copy\":\"Copy\",\"Rating\":\"Rating\",\"Close\":\"Close\",\"Cancel\":\"Cancel\",\"Link\":\"Link\",\"Add\":\"Add\",\"New\":\"New\",\"Success\":\"Success\",\"Ingredients\":\"Ingredients\",\"Supermarket\":\"Supermarket\",\"Categories\":\"Categories\",\"Category\":\"Category\",\"Selected\":\"Selected\",\"min\":\"min\",\"Servings\":\"Servings\",\"Waiting\":\"Waiting\",\"Preparation\":\"Preparation\",\"External\":\"External\",\"Size\":\"Size\",\"Files\":\"Files\",\"File\":\"File\",\"Edit\":\"Edit\",\"Delete\":\"Delete\",\"Open\":\"Open\",\"Ok\":\"Open\",\"Save\":\"Save\",\"Step\":\"Step\",\"Search\":\"Search\",\"Import\":\"Import\",\"Print\":\"Print\",\"Settings\":\"Settings\",\"or\":\"or\",\"and\":\"and\",\"Information\":\"Information\",\"Advanced Search Settings\":\"Advanced Search Settings\",\"View\":\"View\",\"Recipes\":\"Recipes\",\"Move\":\"Move\",\"Merge\":\"Merge\",\"Parent\":\"Parent\",\"delete_confimation\":\"Are you sure that you want to delete {kw} and all of it's children?\",\"move_confirmation\":\"Move {child} to parent {parent}\",\"merge_confirmation\":\"Replace {source} with {target}\",\"move_selection\":\"Select a parent to move {child} to.\",\"merge_selection\":\"Replace all occurences of {source} with the selected {type}.\",\"Download\":\"Download\",\"Root\":\"Root\",\"Ignore_Shopping\":\"Ignore Shopping\",\"Shopping_Category\":\"Shopping Category\",\"Edit_Food\":\"Edit Food\"}"); +module.exports = JSON.parse("{\"err_fetching_resource\":\"There was an error fetching a resource!\",\"err_creating_resource\":\"There was an error creating a resource!\",\"err_updating_resource\":\"There was an error updating a resource!\",\"err_deleting_resource\":\"There was an error deleting a resource!\",\"success_fetching_resource\":\"Successfully fetched a resource!\",\"success_creating_resource\":\"Successfully created a resource!\",\"success_updating_resource\":\"Successfully updated a resource!\",\"success_deleting_resource\":\"Successfully deleted a resource!\",\"import_running\":\"Import running, please wait!\",\"all_fields_optional\":\"All fields are optional and can be left empty.\",\"convert_internal\":\"Convert to internal recipe\",\"show_only_internal\":\"Show only internal recipes\",\"show_split_screen\":\"Show split view\",\"Log_Recipe_Cooking\":\"Log Recipe Cooking\",\"External_Recipe_Image\":\"External Recipe Image\",\"Add_to_Book\":\"Add to Book\",\"Add_to_Shopping\":\"Add to Shopping\",\"Add_to_Plan\":\"Add to Plan\",\"Step_start_time\":\"Step start time\",\"Sort_by_new\":\"Sort by new\",\"Recipes_per_page\":\"Recipes per Page\",\"Meal_Plan\":\"Meal Plan\",\"Select_Book\":\"Select Book\",\"Recipe_Image\":\"Recipe Image\",\"Import_finished\":\"Import finished\",\"View_Recipes\":\"View Recipes\",\"Log_Cooking\":\"Log Cooking\",\"New_Recipe\":\"New Recipe\",\"Url_Import\":\"Url Import\",\"Reset_Search\":\"Reset Search\",\"Recently_Viewed\":\"Recently Viewed\",\"Load_More\":\"Load More\",\"New_Keyword\":\"New Keyword\",\"Delete_Keyword\":\"Delete Keyword\",\"Edit_Keyword\":\"Edit Keyword\",\"Move_Keyword\":\"Move Keyword\",\"Merge_Keyword\":\"Merge Keyword\",\"Hide_Keywords\":\"Hide Keywords\",\"Hide_Recipes\":\"Hide Recipes\",\"Keywords\":\"Keywords\",\"Books\":\"Books\",\"Proteins\":\"Proteins\",\"Fats\":\"Fats\",\"Carbohydrates\":\"Carbohydrates\",\"Calories\":\"Calories\",\"Nutrition\":\"Nutrition\",\"Date\":\"Date\",\"Share\":\"Share\",\"Export\":\"Export\",\"Copy\":\"Copy\",\"Rating\":\"Rating\",\"Close\":\"Close\",\"Cancel\":\"Cancel\",\"Link\":\"Link\",\"Add\":\"Add\",\"New\":\"New\",\"Success\":\"Success\",\"Ingredients\":\"Ingredients\",\"Supermarket\":\"Supermarket\",\"Categories\":\"Categories\",\"Category\":\"Category\",\"Selected\":\"Selected\",\"min\":\"min\",\"Servings\":\"Servings\",\"Waiting\":\"Waiting\",\"Preparation\":\"Preparation\",\"External\":\"External\",\"Size\":\"Size\",\"Files\":\"Files\",\"File\":\"File\",\"Edit\":\"Edit\",\"Delete\":\"Delete\",\"Open\":\"Open\",\"Ok\":\"Open\",\"Save\":\"Save\",\"Step\":\"Step\",\"Search\":\"Search\",\"Import\":\"Import\",\"Print\":\"Print\",\"Settings\":\"Settings\",\"or\":\"or\",\"and\":\"and\",\"Information\":\"Information\",\"Advanced Search Settings\":\"Advanced Search Settings\",\"View\":\"View\",\"Recipes\":\"Recipes\",\"Move\":\"Move\",\"Merge\":\"Merge\",\"Parent\":\"Parent\",\"delete_confimation\":\"Are you sure that you want to delete {kw} and all of it's children?\",\"move_confirmation\":\"Move {child} to parent {parent}\",\"merge_confirmation\":\"Replace {source} with {target}\",\"move_selection\":\"Select a parent to move {child} to.\",\"merge_selection\":\"Replace all occurences of {source} with the selected {type}.\",\"Download\":\"Download\",\"Root\":\"Root\",\"Ignore_Shopping\":\"Ignore Shopping\",\"Shopping_Category\":\"Shopping Category\",\"Edit_Food\":\"Edit Food\",\"Move_Food\":\"Move Food\",\"New_Food\":\"New Food\"}"); /***/ }), diff --git a/vue/src/apps/FoodListView/FoodListView.vue b/vue/src/apps/FoodListView/FoodListView.vue index 665523a2..96ae733a 100644 --- a/vue/src/apps/FoodListView/FoodListView.vue +++ b/vue/src/apps/FoodListView/FoodListView.vue @@ -167,7 +167,7 @@ { // place all new foods at the top of the list - could sort instead @@ -365,14 +360,12 @@ export default { }, delFood: function (id) { let apiClient = new ApiApiFactory() - apiClient.destroyFood(id).then(response => { this.destroyCard(id) }).catch((err) => { console.log(err) this.this_item = {} }) - }, moveFood: function (source_id, target_id) { let apiClient = new ApiApiFactory() @@ -380,10 +373,8 @@ export default { if (target_id === 0) { let food = this.findFood(this.foods, source_id) || this.findFood(this.foods2, source_id) food.parent = null - if (this.show_split){ this.destroyCard(source_id) // order matters, destroy old card before adding it back in at root - this.foods = [food].concat(this.foods) this.foods2 = [JSON.parse(JSON.stringify(food))].concat(this.foods2) } else { @@ -395,7 +386,6 @@ export default { this.destroyCard(source_id) this.refreshCard(target_id) } - }).catch((err) => { // TODO none of the error checking works because the openapi generated functions don't throw an error? // or i'm capturing it incorrectly @@ -434,7 +424,6 @@ export default { Vue.set(parent, 'expanded', true) Vue.set(parent, 'show_recipes', false) } - }).catch((err) => { console.log(err) this.makeToast(this.$t('Error'), err.bodyText, 'danger') @@ -568,36 +557,32 @@ export default { $state.complete(); }) }, - destroyCard: function(id) { - let fd = this.findFood(this.foods, id) - let fd2 = this.findFood(this.foods2, id) - let p_id = undefined - if (fd) { - p_id = fd.parent - } else if (fd2) { - p_id = fd2.parent - } + destroyCard: function(id) { + let fd = this.findFood(this.foods, id) + let fd2 = this.findFood(this.foods2, id) + let p_id = undefined + p_id = fd?.parent ?? fd2.parent - if (p_id) { - let parent = this.findFood(this.foods, p_id) - let parent2 = this.findFood(this.v2, p_id) - if (parent){ - Vue.set(parent, 'numchild', parent.numchild - 1) - if (parent.expanded) { - let idx = parent.children.indexOf(parent.children.find(kw => kw.id === id)) - Vue.delete(parent.children, idx) + if (p_id) { + let parent = this.findFood(this.foods, p_id) + let parent2 = this.findFood(this.foods2, p_id) + if (parent){ + Vue.set(parent, 'numchild', parent.numchild - 1) + if (parent.expanded) { + let idx = parent.children.indexOf(parent.children.find(kw => kw.id === id)) + Vue.delete(parent.children, idx) + } + } + if (parent2){ + Vue.set(parent2, 'numchild', parent2.numchild - 1) + if (parent2.expanded) { + let idx = parent2.children.indexOf(parent2.children.find(kw => kw.id === id)) + Vue.delete(parent2.children, idx) + } } } - if (parent2){ - Vue.set(parent2, 'numchild', parent2.numchild - 1) - if (parent2.expanded) { - let idx = parent2.children.indexOf(parent2.children.find(kw => kw.id === id)) - Vue.delete(parent2.children, idx) - } - } - } - this.foods = this.foods.filter(kw => kw.id != id) - this.foods2 = this.foods2.filter(kw => kw.id != id) + this.foods = this.foods.filter(kw => kw.id != id) + this.foods2 = this.foods2.filter(kw => kw.id != id) }, } } diff --git a/vue/src/apps/KeywordListView/KeywordListView.vue b/vue/src/apps/KeywordListView/KeywordListView.vue index 10475ddc..aa300495 100644 --- a/vue/src/apps/KeywordListView/KeywordListView.vue +++ b/vue/src/apps/KeywordListView/KeywordListView.vue @@ -568,11 +568,7 @@ export default { let kw = this.findKeyword(this.keywords, id) let kw2 = this.findKeyword(this.keywords2, id) let p_id = undefined - if (kw) { - p_id = kw.parent - } else if (kw2) { - p_id = kw2.parent - } + p_id = kw?.parent ?? kw2.parent if (p_id) { let parent = this.findKeyword(this.keywords, p_id) diff --git a/vue/src/components/FoodCard.vue b/vue/src/components/FoodCard.vue index b0e0f274..1f0fbe83 100644 --- a/vue/src/components/FoodCard.vue +++ b/vue/src/components/FoodCard.vue @@ -136,7 +136,7 @@ export default { let source = JSON.parse(e.dataTransfer.getData('source')) if (source.id != this.food.id){ this.source = source - let menuLocation = {getBoundingClientRect: this.generateLocation(e.pageX, e.pageY),} + let menuLocation = {getBoundingClientRect: this.generateLocation(e.clientX, e.clientY),} this.show_menu = true let popper = createPopper( menuLocation, diff --git a/vue/src/components/KeywordCard.vue b/vue/src/components/KeywordCard.vue index 18090cb8..03e9a638 100644 --- a/vue/src/components/KeywordCard.vue +++ b/vue/src/components/KeywordCard.vue @@ -132,7 +132,7 @@ export default { let source = JSON.parse(e.dataTransfer.getData('source')) if (source.id != this.keyword.id){ this.source = source - let menuLocation = {getBoundingClientRect: this.generateLocation(e.pageX, e.pageY),} + let menuLocation = {getBoundingClientRect: this.generateLocation(e.clientX, e.clientY),} this.show_menu = true let popper = createPopper( menuLocation, diff --git a/vue/src/locales/en.json b/vue/src/locales/en.json index 9e0e508e..7748c96e 100644 --- a/vue/src/locales/en.json +++ b/vue/src/locales/en.json @@ -105,5 +105,7 @@ "Root": "Root", "Ignore_Shopping": "Ignore Shopping", "Shopping_Category": "Shopping Category", - "Edit_Food": "Edit Food" + "Edit_Food": "Edit Food", + "Move_Food": "Move Food", + "New_Food": "New Food" }