BLUE
PHP 7.4.33
Path:
/var/www/nea-dev-frontend.wpress.dk/httpdocs/src/interfaces
Run
Logout
Edit File
Size: 3.86 KB
Close
/var/www/nea-dev-frontend.wpress.dk/httpdocs/src/interfaces/general.ts
Text
Base64
/** * * Common types coming in the header and footer */ // Single menu item export interface MenuItem { target?: string | undefined | null; label: string; path: string; } // Type for Mega Menu Card export interface MegaMenuCard { menuItem?: string[]; featuredPostImage: BaseImage; featuredPostTitle: string; featuredPostDescription: string; featuredPostLink: TextLink; } export interface MegaMenuCardWithDefaultLabel extends MegaMenuCard { defaultLabel?: string | null; } // Type for Dedicated Button type DedicatedButton = { buttonLink: string; buttonText: string; }; // Main Type for Provided Data export type ThemeHeaderSettings = { globalSiteLogo: BaseImage; megaMenuCards: MegaMenuCard[]; megaMenuCardLinkLabel: string; dedicatedButton: DedicatedButton; }; /** * * Image * */ export type MediaDetails = { height: number | null; width: number | null; }; export interface BaseImage { node: { altText: string | null; mediaDetails: MediaDetails; mediaItemUrl: string; }; } /** * * For the ACF link field * */ export type TextLink = { title: string | null | undefined; url: string; target?: string | null; }; /** * * For ACF bocks */ export interface BasicAcfBlock { name: string; } export interface AcfComponentMap<T> { [key: string]: { block: React.ComponentType<any>; themeGlobalSettings?: any; blockName: string; dataKey: keyof T; }; } // For taxonomy query export type TaxArray = { taxonomy: string | null; terms: string[]; operator: string; field: string; }; // export type TaxonomyTerm = { termTaxonomyId: number; slug: string; name: string }; export type TaxonomyTerms = { nodes: TaxonomyTerm[] } | null; export type TaxonomyTermsWithPrimaryOption = { edges: { isPrimary: boolean; node: TaxonomyTerm }[]; } | null; export type ImageNodeWithSizes = { node: { altText: string | null; mediaItemUrl: string | null; mediaDetails: { sizes: { name: string; sourceUrl: string; }[]; }; }; }; export interface BasicPostNode { id?: number; slug?: string; title: string; date: string; excerpt: string; uri: string; featuredImage: ImageNodeWithSizes | null; } export interface NewsPostNode extends BasicPostNode { contentTypeName: 'post'; newsAuthors: { nodes: { name: string }[] } | null; categories: TaxonomyTermsWithPrimaryOption; } export interface PressReleasePostNode extends BasicPostNode { contentTypeName: 'press-release'; pressCategories: TaxonomyTermsWithPrimaryOption; } /** * For cards * */ export type PostCardNode = NewsPostNode | PressReleasePostNode; type ContentType = 'post' | 'press_releases'; export type ContentPopulationMethod = 'content_type' | 'taxonomy' | 'manual'; // Mapped Type for selected taxonomy terms interface SelectedTaxonomyTerms { selectedAgeTerms?: TaxonomyTerms; selectedAudienceTerms?: TaxonomyTerms; selectedAuthorTerms?: TaxonomyTerms; selectedCategoryTerms?: TaxonomyTerms; selectedPersonaTerms?: TaxonomyTerms; selectedTagTerms?: TaxonomyTerms; selectedTopicTerms?: TaxonomyTerms; selectedTypeTerms?: TaxonomyTerms; selectedPressCategoryTerms?: TaxonomyTerms; } // Base Type for Card Data (Shared Fields) export interface BaseCardsData extends SelectedTaxonomyTerms { heading?: string; maximumNumberOfPressReleasesPosts?: number; byContentTypes?: ContentType[] | null; selectedContentType?: ContentType[] | null; selectedTaxonomyByTheNewsStories?: string[] | null; selectedTaxonomyByThePressReleases?: string[] | null; selectedPostsOrPressReleases?: { nodes: PostCardNode[] } | null; } // export type BasicComponentProps = { layoutWidth?: 'fullWidth' | 'contentWidth' }; // unknown export interface Linkable { link?: string | undefined | null; } export type Breadcrumb = { url: string; text: string; }; export type BreadcrumbData = { breadcrumbs: Breadcrumb[]; };
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 7
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
general.ts
3.86 KB
lrw-r--r--
2026-02-13 12:06:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.ts
304 B
lrw-r--r--
2025-08-12 08:52:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
mainmenu.ts
434 B
lrw-r--r--
2025-08-12 08:52:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
menuitem.ts
306 B
lrw-r--r--
2025-08-12 08:52:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
richtext-blocks.ts
1.33 KB
lrw-r--r--
2025-08-12 08:52:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
richtext-plain.ts
4.13 KB
lrw-r--r--
2025-08-12 08:52:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
topbarlinks.ts
90 B
lrw-r--r--
2025-08-12 08:52:38
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).