Skip to content

Commit

Permalink
footer preview
Browse files Browse the repository at this point in the history
  • Loading branch information
YudhistiraA committed Oct 4, 2024
1 parent 4a32cf5 commit fb6d952
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion resources/js/Components/Websites/Footer/Content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { data as dataFooter1, bluprintForm as bluprintForm1 } from '@/Component

export const getComponent = (componentName: string) => {
const components: Component = {
'footer1': Footer1,
'FooterTheme1': Footer1,
}

return components[componentName] ?? NotFoundComponents
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ const iframeSrc = ref(route('grp.websites.header.preview', [route().params['webs
const onPickTemplate = (footer: Object) => {
console.log(footer)
isModalOpen.value = false
usedTemplates.value = footer
}
Expand Down
12 changes: 6 additions & 6 deletions resources/js/Pages/Grp/Web/PreviewWorkshop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const debouncedSendUpdate = debounce((block) => sendBlockUpdate(block), 1000, {
const data = ref(cloneDeep(props.webpage))
const layout = reactive({
header: {...props.header.header},
footer: {...props.footer},
footer: {...props.footer.footer},
navigation: {...props.navigation},
colorThemed: usePage().props?.iris?.color ? usePage().props?.iris?.color : { color: [...useColorTheme[2]] }
});
Expand Down Expand Up @@ -66,7 +66,7 @@ onMounted(() => {
if (socketLayout) socketLayout.actions.subscribe((value) => {
console.log('sssd',value)
layout.header = value.header.header;
layout.footer = value.footer;
layout.footer = value.footer.footer;
layout.navigation = value.navigation;
});
});
Expand Down Expand Up @@ -118,12 +118,12 @@ console.log('preview',props)
</div>
</div>

<!-- <component
:is="getComponentFooter(usedTemplates.key)"
v-model="layout.footer.data"
<component
:is="getComponentFooter(layout.footer.code)"
v-model="layout.footer.data.footer"
:keyTemplate="layout.footer"
:previewMode="false"
:colorThemed="layout.colorThemed"
/> -->
/>
</div>
</template>

0 comments on commit fb6d952

Please sign in to comment.