Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use new component folder and update pages utilities types #194

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

timothejoubert
Copy link
Contributor

No description provided.

utils/roadiz/entity.ts Outdated Show resolved Hide resolved
utils/roadiz/entity.ts Outdated Show resolved Hide resolved
types/roadiz.d.ts Outdated Show resolved Hide resolved
nuxt.config.ts Outdated Show resolved Hide resolved
@manuelodelain manuelodelain marked this pull request as draft December 13, 2024 13:07
@timothejoubert timothejoubert marked this pull request as ready for review December 13, 2024 16:19
export type ReachableItem = RoadizNodesSources
export type ReachableItemMerged = Partial<UnionToIntersection<ReachableItem>>
export type PageComponentProps<T = ReachableItem> = {
item: T
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

item sounds really linked to RoadizWalker for me. Outside of this context, it seems not understandable. IMO we should keep entity (instead of item) because it refers to an abstract concept of Roadiz.

@@ -54,14 +53,14 @@ useHead({
const blocks = computed(() => (webResponse?.blocks && getBlockCollection(webResponse.blocks)) || [])

// Get default page entity
const defaultPageEntity = computed(() => item && isPageEntity(item) && item)
const pageItem = computed(() => item && item as AppPageItem)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

item should not be typed by default?

@manuelodelain manuelodelain marked this pull request as draft December 18, 2024 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants