Merged in feat/SW-2999-cleanup (pull request #2810)
feat(SW-2999): cleanup current web * feat(SW-2999): cleanup current web * Merge master * Removed unused fonts Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
import type { Asides } from "@/types/requests/currentBlockPage"
|
||||
|
||||
export type AsideProps = {
|
||||
blocks: Asides[]
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
import type { ContactNode } from "@/types/requests/asides/contact"
|
||||
import type { Node } from "@scandic-hotels/trpc/types/edges"
|
||||
|
||||
export type ContactsProps = { contacts: Node<ContactNode>[] }
|
||||
@@ -1,3 +0,0 @@
|
||||
import type { Puff } from "@/types/requests/puff"
|
||||
|
||||
export type PuffProps = Puff
|
||||
@@ -1,5 +0,0 @@
|
||||
import type { Blocks } from "@/types/requests/currentBlockPage"
|
||||
|
||||
export type BlocksProps = {
|
||||
blocks: Blocks[]
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
import type { Text } from "@/types/requests/blocks/text"
|
||||
|
||||
export type TextProps = Text
|
||||
@@ -1,7 +0,0 @@
|
||||
import type { Breadcrumb } from "@/types/requests/currentBlockPage"
|
||||
|
||||
export type BreadcrumbsProps = {
|
||||
breadcrumbs: Breadcrumb[]
|
||||
parent?: Breadcrumb
|
||||
title: string
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
import type { GetCurrentBlockPageData } from "@/types/requests/currentBlockPage"
|
||||
|
||||
export type ContentPageProps = {
|
||||
data: GetCurrentBlockPageData
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
import type { NavigationItem } from "@scandic-hotels/trpc/routers/contentstack/base/output"
|
||||
|
||||
export type FooterNavigationProps = {
|
||||
linkGroups: NavigationItem[]
|
||||
}
|
||||
@@ -1,19 +0,0 @@
|
||||
import type { Image } from "@scandic-hotels/trpc/types/image"
|
||||
import type { User } from "@scandic-hotels/trpc/types/user"
|
||||
|
||||
import type {
|
||||
CurrentHeaderLink,
|
||||
TopMenuHeaderLink,
|
||||
} from "@/types/requests/currentHeader"
|
||||
|
||||
export type MainMenuProps = {
|
||||
frontpageLinkText: string
|
||||
homeHref: string
|
||||
links: CurrentHeaderLink[]
|
||||
logo: Image
|
||||
topMenuMobileLinks: TopMenuHeaderLink[]
|
||||
languageSwitcher: React.ReactNode | null
|
||||
myPagesMobileDropdown: React.ReactNode | null
|
||||
bookingHref: string
|
||||
user: Pick<User, "firstName" | "lastName"> | null
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
import type { TopMenuHeaderLink } from "@/types/requests/currentHeader"
|
||||
|
||||
export type TopMenuProps = {
|
||||
frontpageLinkText: string
|
||||
homeHref: string
|
||||
links: TopMenuHeaderLink[]
|
||||
languageSwitcher: React.ReactNode | null
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
import type { Image } from "@scandic-hotels/trpc/types/image"
|
||||
|
||||
export type HeroProps = {
|
||||
images: {
|
||||
node: Image
|
||||
}[]
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
import type { LanguageSwitcherData } from "@scandic-hotels/trpc/types/languageSwitcher"
|
||||
|
||||
export type LanguageSwitcherLink = {
|
||||
href: string
|
||||
title: string
|
||||
}
|
||||
|
||||
export type LanguageSwitcherProps = {
|
||||
urls: LanguageSwitcherData
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
import type { Preamble } from "@/types/requests/preamble"
|
||||
import type { BreadcrumbsProps } from "./breadcrumbs"
|
||||
|
||||
export type PreambleProps = {
|
||||
breadcrumbs: BreadcrumbsProps["breadcrumbs"]
|
||||
breadcrumbParent: BreadcrumbsProps["parent"]
|
||||
breadcrumbTitle: BreadcrumbsProps["title"]
|
||||
preamble?: Preamble
|
||||
title: string
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
import type { Breadcrumb } from "@/types/requests/currentBlockPage"
|
||||
|
||||
export type SubnavMobileProps = {
|
||||
breadcrumbs: Breadcrumb[]
|
||||
parent?: Breadcrumb
|
||||
title: string
|
||||
}
|
||||
@@ -1,49 +0,0 @@
|
||||
import { BlocksTypenameEnum } from "./utils/typename"
|
||||
|
||||
import type { Contact } from "./asides/contact"
|
||||
import type { PuffAside } from "./asides/puff"
|
||||
import type { List } from "./blocks/list"
|
||||
import type { PuffBlock } from "./blocks/puff"
|
||||
import type { Text } from "./blocks/text"
|
||||
import type { Hero } from "./hero"
|
||||
import type { Preamble } from "./preamble"
|
||||
import type { AllRequestResponseWithTotal } from "./utils/all"
|
||||
import type { AsideTypenameEnum, Typename } from "./utils/typename"
|
||||
|
||||
export type Asides =
|
||||
| Typename<Contact, AsideTypenameEnum.CurrentBlocksPageAsideContact>
|
||||
| Typename<PuffAside, AsideTypenameEnum.CurrentBlocksPageAsidePuff>
|
||||
|
||||
export type Blocks =
|
||||
| Typename<List, BlocksTypenameEnum.CurrentBlocksPageBlocksList>
|
||||
| Typename<PuffBlock, BlocksTypenameEnum.CurrentBlocksPageBlocksPuffs>
|
||||
| Typename<Text, BlocksTypenameEnum.CurrentBlocksPageBlocksText>
|
||||
|
||||
export type Breadcrumb = {
|
||||
href: string
|
||||
title: string
|
||||
}
|
||||
|
||||
export type Breadcrumbs = {
|
||||
parents: Breadcrumb[]
|
||||
title: string
|
||||
}
|
||||
|
||||
export type BlockPage = {
|
||||
aside: Asides[]
|
||||
blocks: Blocks[]
|
||||
breadcrumbs: Breadcrumbs
|
||||
hero: Hero
|
||||
preamble: Preamble
|
||||
system: {
|
||||
created_at: string
|
||||
uid: string
|
||||
updated_at: string
|
||||
}
|
||||
title: string
|
||||
url: string
|
||||
}
|
||||
|
||||
export type GetCurrentBlockPageData = {
|
||||
all_current_blocks_page: AllRequestResponseWithTotal<BlockPage>
|
||||
}
|
||||
@@ -1,37 +0,0 @@
|
||||
import type { Edges } from "@scandic-hotels/trpc/types/edges"
|
||||
import type { Image } from "@scandic-hotels/trpc/types/image"
|
||||
|
||||
import type { AllRequestResponse } from "./utils/all"
|
||||
|
||||
export type CurrentHeaderLink = {
|
||||
href: string
|
||||
title: string
|
||||
}
|
||||
|
||||
export type TopMenuHeaderLink = {
|
||||
link: {
|
||||
href: string
|
||||
title: string
|
||||
}
|
||||
show_on_mobile: boolean
|
||||
sort_order_mobile: number
|
||||
}
|
||||
|
||||
export type CurrentHeaderLinks = {
|
||||
links: CurrentHeaderLink[]
|
||||
}
|
||||
|
||||
export type TopMenuCurrentHeaderLinks = {
|
||||
links: TopMenuHeaderLink[]
|
||||
}
|
||||
|
||||
export type CurrentHeader = {
|
||||
frontpage_link_text: string
|
||||
logoConnection: Edges<Image>
|
||||
menu: CurrentHeaderLinks
|
||||
top_menu: TopMenuCurrentHeaderLinks
|
||||
}
|
||||
|
||||
export type GetCurrentHeaderData = {
|
||||
all_current_header: AllRequestResponse<CurrentHeader>
|
||||
}
|
||||
Reference in New Issue
Block a user