From 03ca9c660334cb6fc4e6e777fabf73f4fbbb13bb Mon Sep 17 00:00:00 2001 From: MoreStrive Date: Mon, 1 Jul 2024 14:51:57 +0700 Subject: [PATCH] minhnt-dev: fix bugs --- .../templates/advertisings/index.vue | 1 - .../templates/articles/cards/Audio.vue | 21 +--------------- .../templates/articles/cards/Card.vue | 23 ------------------ .../templates/articles/details/General.vue | 19 +-------------- .../templates/articles/details/Image.vue | 1 - .../categories/categories/Default.vue | 2 +- .../categories/categories/Vertical.vue | 4 +--- .../templates/collections/articles/Audio.vue | 5 ++-- .../collections/articles/Default.vue | 5 ++-- .../navigations/directions/Default.vue | 2 -- .../templates/sections/articles/Default.vue | 21 +--------------- .../templates/articles/Default.vue | 6 ----- .../page-section/templates/none/Default.vue | 2 -- definitions/cms/page.type.ts | 24 +++++++++---------- definitions/enum/page.enum.ts | 14 +++++++++++ pages/index.vue | 2 +- utils/lodash.ts | 6 ++--- utils/parseSQL.ts | 3 +-- 18 files changed, 40 insertions(+), 121 deletions(-) diff --git a/components/dynamic-page/page-component/templates/advertisings/index.vue b/components/dynamic-page/page-component/templates/advertisings/index.vue index 8528e9e..114a0e3 100644 --- a/components/dynamic-page/page-component/templates/advertisings/index.vue +++ b/components/dynamic-page/page-component/templates/advertisings/index.vue @@ -12,7 +12,6 @@ const definedDynamicComponent: Record = { }; const getCurrentComponent = computed(() => `${_props.settings.layout}`); -console.log(definedDynamicComponent, "vào rrassd", getCurrentComponent.value); const GET_PROPS = computed(() => { return () => { let props: any = {}; diff --git a/components/dynamic-page/page-component/templates/articles/cards/Audio.vue b/components/dynamic-page/page-component/templates/articles/cards/Audio.vue index 03e351a..a06a25f 100644 --- a/components/dynamic-page/page-component/templates/articles/cards/Audio.vue +++ b/components/dynamic-page/page-component/templates/articles/cards/Audio.vue @@ -17,12 +17,6 @@ const LAYOUT_PARSE = computed(() => { return Object.assign({}, designObject); }); -const emit = defineEmits(["selectComponent", "dropData"]); - -const selectComponent = () => { - emit("selectComponent"); -}; - const parseData = computed(() => { if (!props.dataResult) return; const result = getInputValue(props.dataResult, "OBJECT"); @@ -55,22 +49,9 @@ const parseData = computed(() => { } return result; }); - -const drop = (e: any) => { - if (e.dataTransfer.getData(`${enumPageComponentTemplates.ARTICLE}`)) { - const data = e.dataTransfer.getData(`${enumPageComponentTemplates.ARTICLE}`); - const { dataType, dataResult } = JSON.parse(data); - const dataQuery = DEFAULT_QUERY_DROP(dataType, dataResult.id); - emit("dropData", { - dataType, - dataResult, - dataQuery: dataQuery, - }); - } -};