Migrate backend to Porto architecture and fix minor bugs
- Fully transitioned the backend to the Porto architectural pattern - Improved code organization and maintainability - Fixed minor bugs and inconsistencies
This commit is contained in:
@@ -52,17 +52,15 @@ import SortingByFilter from "@/componentss/shared/filter/filters/SortingByFilter
|
||||
|
||||
export default {
|
||||
name: "Page",
|
||||
data() {
|
||||
return {
|
||||
headerNavs: this.page.data.content.filter(block => block.type === 'heading').map(block => ({
|
||||
id: block.data.id,
|
||||
text: block.data.content
|
||||
})),
|
||||
settings: this.page.data.settings
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
data() {
|
||||
return {
|
||||
headerNavs: (this.page?.data?.content || []).filter(block => block?.type === 'heading').map(block => ({
|
||||
id: block?.data?.id,
|
||||
text: block?.data?.content
|
||||
})),
|
||||
settings: this.page?.data?.settings || {}
|
||||
}
|
||||
},
|
||||
props: {
|
||||
navigation: {
|
||||
type: Object,
|
||||
|
||||
Reference in New Issue
Block a user