minhnt-dev: only ssr

This commit is contained in:
MoreStrive
2024-06-21 09:56:34 +07:00
parent 229155b24a
commit 6a275c354e
18 changed files with 84 additions and 1003 deletions
@@ -1,6 +1,6 @@
<script setup lang="ts">
import isEmpty from "lodash/isEmpty";
import { COLLECTION_QUERY_DROP, getValueStringWithKeyAndColon, getInputValue } from "@/utils/parseSQL";
import { isEmpty } from "@/utils/lodash";
const emit = defineEmits(["dropData", "selectComponent"]);
@@ -1,7 +1,6 @@
<script setup lang="ts">
import DynamicComponent from "~/components/dynamic-page/page-component/templates/index.vue";
import { COLLECTION_QUERY_DROP, getValueStringWithKeyAndColon, getInputValue } from "@/utils/parseSQL";
import { isEmpty, groupBy } from "lodash";
import { breakpoint } from "~/definitions";
import { useWindowSize } from "@vueuse/core";
const { width } = useWindowSize()
@@ -15,7 +15,7 @@ const definedDynamicComponent: Record<string, any> = {
[enumPageComponentTemplates.ADVERTISING]: Dynamic_Advertising,
[enumPageComponentTemplates.NAVIGATION]: Dynamic_Navigation,
};
// console.log(_props.settings.template, 'template')
const getCurrentComponent = computed(() => `${_props.settings.template}`);
const GET_PROPS = computed(() => {
return () => {
@@ -41,7 +41,6 @@ const SETTING_OPTIONS = {
h4 {
font-size: 14px;
font-weight: normal;
text-align: center;
cursor: pointer;
}
}
@@ -1,5 +1,4 @@
<script setup lang="ts">
import isEmpty from "lodash/isEmpty";
// import DynamicComponent from "~/components/cms/page-component/templates/index.vue";
// import { getInputValue } from "@/utils/cms/page/parseSQL";
@@ -11,18 +10,17 @@ import isEmpty from "lodash/isEmpty";
// component?: any;
// }>();
// const SETTING_OPTIONS = {
// MAX_ELEMENT: 10,
// };
const SETTING_OPTIONS = {
MAX_ELEMENT: 10,
};
</script>
<template>
ád
<!-- <section>
<section>
<div v-for="navItem, index in Array(SETTING_OPTIONS.MAX_ELEMENT).fill({})" :key="index">
<div class="empty"></div>
</div>
</section> -->
</section>
</template>
<style lang="scss" scoped>
@@ -1,5 +1,5 @@
<script setup lang="ts">
import isEmpty from "lodash/isEmpty";
import { isEmpty } from "@/utils/lodash";
import DynamicComponent from "~/components/dynamic-page/page-component/templates/index.vue";
import { COLLECTION_PAGING_QUERY_DROP, getInputValue } from "@/utils/parseSQL";
const router = useRouter();
@@ -51,7 +51,7 @@ onBeforeMount(() => {
});
const loadPage = (page: string | number) => {
console.log(`Loading page ${page}`);
// console.log(`Loading page ${page}`);
// listArticleByCategory.value =
};
@@ -1,5 +1,5 @@
<script setup lang="ts">
import isEmpty from "lodash/isEmpty";
import { isEmpty } from "@/utils/lodash";
import DynamicComponent from "~/components/dynamic-page/page-component/templates/index.vue";
import { COLLECTION_PAGING_QUERY_DROP, getInputValue } from "@/utils/parseSQL";
const router = useRouter();
@@ -72,7 +72,7 @@ onBeforeMount(() => {
});
const loadPage = (page: string | number) => {
console.log(`Loading page ${page}`);
// console.log(`Loading page ${page}`);
// listArticleByCategory.value =
};