Skip to content

Commit

Permalink
Re-config Vite with Reactjs & Typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
tannguyen04 committed Nov 14, 2024
1 parent eb6c309 commit bd5e59c
Show file tree
Hide file tree
Showing 46 changed files with 3,121 additions and 548 deletions.
20 changes: 20 additions & 0 deletions config/sync/block.block.fstheme_tabs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
uuid: b073a08d-4113-4331-bbbb-f6679a51bc21
langcode: en
status: true
dependencies:
theme:
- fstheme
id: fstheme_tabs
theme: fstheme
region: content_above
weight: 0
provider: null
plugin: local_tasks_block
settings:
id: local_tasks_block
label: Tabs
label_display: '0'
provider: core
primary: true
secondary: true
visibility: { }
24 changes: 24 additions & 0 deletions config/sync/core.entity_form_display.node.article.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ langcode: en
status: true
dependencies:
config:
- field.field.node.article.article_type
- field.field.node.article.duration
- field.field.node.article.hero
- field.field.node.article.lead
- field.field.node.article.markup
- field.field.node.article.media_video
- field.field.node.article.tags
- node.type.article
module:
Expand Down Expand Up @@ -69,12 +72,26 @@ targetEntityType: node
bundle: article
mode: default
content:
article_type:
type: options_select
weight: 51
region: content
settings: { }
third_party_settings: { }
created:
type: datetime_timestamp
weight: 5
region: content
settings: { }
third_party_settings: { }
duration:
type: string_textfield
weight: 53
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
hero:
type: media_library_widget
weight: 2
Expand All @@ -98,6 +115,13 @@ content:
rows: 5
placeholder: ''
third_party_settings: { }
media_video:
type: media_library_widget
weight: 52
region: content
settings:
media_types: { }
third_party_settings: { }
path:
type: path
weight: 9
Expand Down
4 changes: 3 additions & 1 deletion config/sync/core.entity_form_display.node.page.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ status: true
dependencies:
config:
- field.field.node.page.hero
- field.field.node.page.layout_builder__layout
- field.field.node.page.lead
- field.field.node.page.markup
- node.type.page
Expand Down Expand Up @@ -151,4 +152,5 @@ content:
region: content
settings: { }
third_party_settings: { }
hidden: { }
hidden:
layout_builder__layout: true
28 changes: 28 additions & 0 deletions config/sync/core.entity_view_display.node.article.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@ langcode: en
status: true
dependencies:
config:
- field.field.node.article.article_type
- field.field.node.article.duration
- field.field.node.article.hero
- field.field.node.article.lead
- field.field.node.article.markup
- field.field.node.article.media_video
- field.field.node.article.tags
- node.type.article
module:
- options
- text
- user
_core:
Expand All @@ -18,6 +22,21 @@ targetEntityType: node
bundle: article
mode: default
content:
article_type:
type: list_default
label: above
settings: { }
third_party_settings: { }
weight: 3
region: content
duration:
type: string
label: above
settings:
link_to_entity: false
third_party_settings: { }
weight: 5
region: content
lead:
type: text_default
label: hidden
Expand All @@ -32,6 +51,15 @@ content:
third_party_settings: { }
weight: 1
region: content
media_video:
type: entity_reference_entity_view
label: above
settings:
view_mode: default
link: false
third_party_settings: { }
weight: 4
region: content
tags:
type: entity_reference_label
label: above
Expand Down
6 changes: 6 additions & 0 deletions config/sync/core.entity_view_display.node.article.rss.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ status: false
dependencies:
config:
- core.entity_view_mode.node.rss
- field.field.node.article.article_type
- field.field.node.article.duration
- field.field.node.article.hero
- field.field.node.article.lead
- field.field.node.article.markup
- field.field.node.article.media_video
- field.field.node.article.tags
- node.type.article
module:
Expand All @@ -22,8 +25,11 @@ content:
weight: 100
region: content
hidden:
article_type: true
duration: true
hero: true
lead: true
markup: true
media_video: true
search_api_excerpt: true
tags: true
6 changes: 6 additions & 0 deletions config/sync/core.entity_view_display.node.article.teaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ status: true
dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.article.article_type
- field.field.node.article.duration
- field.field.node.article.hero
- field.field.node.article.lead
- field.field.node.article.markup
- field.field.node.article.media_video
- field.field.node.article.tags
- node.type.article
module:
Expand Down Expand Up @@ -39,7 +42,10 @@ content:
weight: 0
region: content
hidden:
article_type: true
duration: true
links: true
markup: true
media_video: true
search_api_excerpt: true
tags: true
45 changes: 45 additions & 0 deletions config/sync/core.entity_view_display.node.page.default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,56 @@ status: true
dependencies:
config:
- field.field.node.page.hero
- field.field.node.page.layout_builder__layout
- field.field.node.page.lead
- field.field.node.page.markup
- node.type.page
module:
- layout_builder
- layout_discovery
- text
- user
third_party_settings:
layout_builder:
enabled: true
allow_custom: true
sections:
-
layout_id: layout_onecol
layout_settings:
label: ''
components:
5f6607c6-f329-4e65-b23c-79b0ff8f8237:
uuid: 5f6607c6-f329-4e65-b23c-79b0ff8f8237
region: content
configuration:
id: 'field_block:node:page:lead'
label_display: '0'
context_mapping:
entity: layout_builder.entity
formatter:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 0
additional: { }
707a2ebc-4a32-400a-87a3-d45390b2b88a:
uuid: 707a2ebc-4a32-400a-87a3-d45390b2b88a
region: content
configuration:
id: 'field_block:node:page:markup'
label_display: '0'
context_mapping:
entity: layout_builder.entity
formatter:
type: text_default
label: hidden
settings: { }
third_party_settings: { }
weight: 1
additional: { }
third_party_settings: { }
_core:
default_config_hash: M_Y8L5tfmhx7DR143E05YyZSpvgil6VFvqcfBWykalg
id: node.page.default
Expand All @@ -33,5 +77,6 @@ content:
region: content
hidden:
hero: true
layout_builder__layout: true
links: true
search_api_excerpt: true
2 changes: 2 additions & 0 deletions config/sync/core.entity_view_display.node.page.teaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dependencies:
config:
- core.entity_view_mode.node.teaser
- field.field.node.page.hero
- field.field.node.page.layout_builder__layout
- field.field.node.page.lead
- field.field.node.page.markup
- node.type.page
Expand All @@ -22,6 +23,7 @@ content:
region: content
hidden:
hero: true
layout_builder__layout: true
lead: true
markup: true
search_api_excerpt: true
5 changes: 5 additions & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ module:
gin_login: 0
gin_toolbar: 0
image: 0
jquery_ui: 0
jquery_ui_autocomplete: 0
jquery_ui_menu: 0
layout_builder: 0
layout_discovery: 0
link: 0
Expand All @@ -47,6 +50,8 @@ module:
path_alias: 0
redirect: 0
search_api: 0
search_api_lunr: 0
serialization: 0
simple_sitemap: 0
system: 0
taxonomy: 0
Expand Down
23 changes: 23 additions & 0 deletions config/sync/field.field.node.article.article_type.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
uuid: 08b66a5e-e871-4d9a-9d13-36d9454a4a5c
langcode: en
status: true
dependencies:
config:
- field.storage.node.article_type
- node.type.article
module:
- options
id: node.article.article_type
field_name: article_type
entity_type: node
bundle: article
label: Type
description: ''
required: true
translatable: false
default_value:
-
value: blog
default_value_callback: ''
settings: { }
field_type: list_string
19 changes: 19 additions & 0 deletions config/sync/field.field.node.article.duration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 7f88dd37-d3ef-49a7-8f71-3d0600fe9003
langcode: en
status: true
dependencies:
config:
- field.storage.node.duration
- node.type.article
id: node.article.duration
field_name: duration
entity_type: node
bundle: article
label: Duration
description: ''
required: true
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
29 changes: 29 additions & 0 deletions config/sync/field.field.node.article.media_video.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
uuid: 77876924-48e7-48db-b0fc-c2ffd95dccb6
langcode: en
status: true
dependencies:
config:
- field.storage.node.media_video
- media.type.stream
- node.type.article
id: node.article.media_video
field_name: media_video
entity_type: node
bundle: article
label: 'Media video'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
handler: 'default:media'
handler_settings:
target_bundles:
stream: stream
sort:
field: _none
direction: ASC
auto_create: false
auto_create_bundle: ''
field_type: entity_reference
21 changes: 21 additions & 0 deletions config/sync/field.field.node.page.layout_builder__layout.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: ec3c4826-2360-4f73-b93f-2f9c5518edee
langcode: en
status: true
dependencies:
config:
- field.storage.node.layout_builder__layout
- node.type.page
module:
- layout_builder
id: node.page.layout_builder__layout
field_name: layout_builder__layout
entity_type: node
bundle: page
label: Layout
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: layout_section
Loading

0 comments on commit bd5e59c

Please sign in to comment.