Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into feat/SLB-306--info-grid
  • Loading branch information
HagerDakroury committed Jun 6, 2024
2 parents 2775021 + dd5b48d commit 9e1718d
Show file tree
Hide file tree
Showing 43 changed files with 1,057 additions and 486 deletions.
8 changes: 8 additions & 0 deletions apps/cms/config/sync/system.menu.meta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
uuid: ed03f628-2d83-4f82-aeb8-6c59d150757d
langcode: en
status: true
dependencies: { }
id: meta
label: Meta
description: 'Meta links.'
locked: false
1 change: 1 addition & 0 deletions apps/preview/.lagoon.env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
PROJECT_NAME="example"
DRUPAL_URL="https://nginx.${LAGOON_ENVIRONMENT}.${LAGOON_PROJECT}.ch4.amazee.io"
2 changes: 1 addition & 1 deletion apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@amazeelabs/gatsby-plugin-operations": "^1.1.3",
"@amazeelabs/gatsby-plugin-static-dirs": "^1.0.1",
"@amazeelabs/gatsby-source-silverback": "^1.14.0",
"@amazeelabs/publisher": "^2.4.17",
"@amazeelabs/publisher": "^2.4.30",
"@amazeelabs/strangler-netlify": "^1.1.9",
"@amazeelabs/token-auth-middleware": "^1.1.1",
"@custom/cms": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
_meta:
version: '1.0'
entity_type: menu_link_content
uuid: 4aa4a86f-8e0f-441d-8fcb-ac95b15ed13c
bundle: menu_link_content
default_langcode: en
default:
enabled:
-
value: true
title:
-
value: 'Meta item 2'
menu_name:
-
value: meta
link:
-
uri: 'internal:/'
title: ''
options: { }
external:
-
value: false
rediscover:
-
value: true
weight:
-
value: -49
expanded:
-
value: false
content_translation_source:
-
value: und
content_translation_outdated:
-
value: false
content_translation_uid:
-
target_id: 1
content_translation_status:
-
value: true
content_translation_created:
-
value: 1716899458
translations:
de:
title:
-
value: 'Meta item 2 DE'
content_translation_source:
-
value: en
content_translation_outdated:
-
value: false
content_translation_uid:
-
target_id: 1
content_translation_status:
-
value: true
content_translation_created:
-
value: 1716900493
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
_meta:
version: '1.0'
entity_type: menu_link_content
uuid: 679de789-7c88-494e-866d-062c2abf8fbb
bundle: menu_link_content
default_langcode: en
default:
enabled:
-
value: true
title:
-
value: 'Meta item 1'
menu_name:
-
value: meta
link:
-
uri: 'internal:/'
title: ''
options: { }
external:
-
value: false
rediscover:
-
value: true
weight:
-
value: -50
expanded:
-
value: false
content_translation_source:
-
value: und
content_translation_outdated:
-
value: false
content_translation_uid:
-
target_id: 1
content_translation_status:
-
value: true
content_translation_created:
-
value: 1716899070
translations:
de:
title:
-
value: 'Meta item 1 DE'
content_translation_source:
-
value: en
content_translation_outdated:
-
value: false
content_translation_uid:
-
target_id: 1
content_translation_status:
-
value: true
content_translation_created:
-
value: 1716900444
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
_meta:
version: '1.0'
entity_type: menu_link_content
uuid: 72904161-a94f-4934-98aa-f4b67e2dc9d5
bundle: menu_link_content
default_langcode: en
depends:
679de789-7c88-494e-866d-062c2abf8fbb: menu_link_content
default:
enabled:
-
value: true
title:
-
value: 'Meta item child - should be ignored'
menu_name:
-
value: meta
link:
-
uri: 'internal:/'
title: ''
options: { }
external:
-
value: false
rediscover:
-
value: true
weight:
-
value: -50
expanded:
-
value: false
parent:
-
value: 'menu_link_content:679de789-7c88-494e-866d-062c2abf8fbb'
content_translation_source:
-
value: und
content_translation_outdated:
-
value: false
content_translation_uid:
-
target_id: 1
content_translation_status:
-
value: true
content_translation_created:
-
value: 1716899647
translations:
de:
title:
-
value: 'Meta item child - should be ignored DE'
content_translation_source:
-
value: en
content_translation_outdated:
-
value: false
content_translation_uid:
-
target_id: 1
content_translation_status:
-
value: true
content_translation_created:
-
value: 1716900507
Original file line number Diff line number Diff line change
Expand Up @@ -11,43 +11,31 @@ _meta:
72187a1f-3e48-4b45-a9b7-189c6fd7ee26: media
default:
revision_uid:
-
target_id: 1
- target_id: 1
status:
-
value: true
- value: true
uid:
-
target_id: 1
- target_id: 1
title:
-
value: 'Blocks: complete'
- value: 'Blocks: complete'
created:
-
value: 1686759493
- value: 1686759493
promote:
-
value: false
- value: false
sticky:
-
value: false
- value: false
moderation_state:
-
value: published
- value: published
path:
-
alias: /blocks-complete
- alias: /blocks-complete
langcode: en
pathauto: 0
content_translation_source:
-
value: und
- value: und
content_translation_outdated:
-
value: false
- value: false
body:
-
value: |-
- value: |-
<!-- wp:custom/hero {"mediaEntityIds":["3a0fe860-a6d6-428a-9474-365bd57509aa"],"headline":"All kinds of blocks with maximum data","lead":"Lead text","ctaUrl":"https://example.com","ctaText":"CTA text","formId":"contact"} /-->
<!-- wp:custom/content -->
Expand Down Expand Up @@ -143,40 +131,29 @@ default:
translations:
de:
status:
-
value: true
- value: true
uid:
-
target_id: 1
- target_id: 1
title:
-
value: 'Blocks: complete DE'
- value: 'Blocks: complete DE'
created:
-
value: 1687338353
- value: 1687338353
promote:
-
value: false
- value: false
sticky:
-
value: false
- value: false
moderation_state:
-
value: published
- value: published
path:
-
alias: /blocks-complete
- alias: /blocks-complete
langcode: de
pathauto: 0
content_translation_source:
-
value: en
- value: en
content_translation_outdated:
-
value: false
- value: false
body:
-
value: |-
- value: |-
<!-- wp:custom/hero {"mediaEntityIds":["3a0fe860-a6d6-428a-9474-365bd57509aa"],"headline":"All kinds of blocks with maximum data DE","lead":"Lead text DE"} /-->
<!-- wp:custom/content -->
Expand Down Expand Up @@ -215,4 +192,4 @@ translations:
<!-- /wp:paragraph -->
<!-- /wp:custom/content -->
format: gutenberg
summary: ''
summary: ''
3 changes: 3 additions & 0 deletions packages/schema/src/operations/Frame.gql
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ query Frame {
}
}
}
metaNavigation: metaNavigations {
...Navigation
}
mainNavigation: mainNavigations {
...Navigation
}
Expand Down
21 changes: 21 additions & 0 deletions packages/schema/src/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ interface Navigation {
items: [NavigationItem]!
}

type MetaNavigation implements Navigation @menu(menu_id: "meta") {
locale: Locale! @resolveEntityLanguage
items: [NavigationItem]! @lang @resolveMenuItems(max_level: 1)
}

type MainNavigation implements Navigation @menu(menu_id: "main") {
locale: Locale! @resolveEntityLanguage
items: [NavigationItem]! @lang @resolveMenuItems
Expand Down Expand Up @@ -277,6 +282,18 @@ enum CTAIconPosition {
BEFORE
}

type BlockImageWithText @type(id: "custom/image-with-text") {
image: MediaImage @resolveEditorBlockMedia
textContent: BlockMarkup @resolveEditorBlockChildren @seek(pos: 0)
}

type BlockQuote @type(id: "custom/quote") {
quote: Markup @resolveEditorBlockAttribute(key: "quote")
author: String @resolveEditorBlockAttribute(key: "author")
role: String @resolveEditorBlockAttribute(key: "role")
image: MediaImage @resolveEditorBlockMedia
}

type BlockImageWithText @type(id: "custom/image-with-text") {
image: MediaImage @resolveEditorBlockMedia
imagePosition: ImagePosition!
Expand Down Expand Up @@ -328,6 +345,10 @@ type Query {
previewDrupalPage(id: ID!, rid: ID, locale: String!): DrupalPage
@fetchEntity(type: "node", id: "$id", rid: "$rid", language: "$locale")

metaNavigations: [MetaNavigation]
@gatsbyNodes(type: "MetaNavigation")
@menuTranslations(menu_id: "meta")

mainNavigations: [MainNavigation]
@gatsbyNodes(type: "MainNavigation")
@menuTranslations(menu_id: "main")
Expand Down
Loading

0 comments on commit 9e1718d

Please sign in to comment.