Skip to content

Commit

Permalink
Simplify ID generation convention
Browse files Browse the repository at this point in the history
  • Loading branch information
sergehuber committed Feb 22, 2024
1 parent cabc42c commit 0c81382
Show file tree
Hide file tree
Showing 16 changed files with 18 additions and 21 deletions.
9 changes: 3 additions & 6 deletions src/server/templates/estate/EstateDefault.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,9 @@ export const EstateDefault = () => {
};

EstateDefault.jahiaComponent = {
id: 'luxeJahiaDemo_templates_estate_EstateDefault',
id: 'luxeJahiaDemo_templates_estate_default',
nodeType: 'luxe:estate',
name: 'main',
name: 'default',
displayName: 'Main',
componentType: 'template',
properties: {
default: 'true'
}
componentType: 'template'
};
2 changes: 1 addition & 1 deletion src/server/templates/page/PageDestination.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const PageDestination = () => {
};

PageDestination.jahiaComponent = {
id: 'luxeJahiaDemo_templates_page_PageDestination',
id: 'luxeJahiaDemo_templates_page_destination',
nodeType: 'jnt:page',
name: 'destination',
displayName: 'Destination',
Expand Down
2 changes: 1 addition & 1 deletion src/server/templates/page/PageDestinations.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const PageDestinations = () => {
};

PageDestinations.jahiaComponent = {
id: 'luxeJahiaDemo_templates_page_PageDestinations',
id: 'luxeJahiaDemo_templates_page_destinations',
nodeType: 'jnt:page',
name: 'destinations',
displayName: 'Destinations',
Expand Down
2 changes: 1 addition & 1 deletion src/server/templates/page/PageHome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const PageHome = () => {
};

PageHome.jahiaComponent = {
id: 'luxeJahiaDemo_templates_page_PageHome',
id: 'luxeJahiaDemo_templates_page_home',
nodeType: 'jnt:page',
name: 'home',
displayName: 'Home',
Expand Down
2 changes: 1 addition & 1 deletion src/server/views/cols/ColsDefault.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const ColsDefault = () => {
};

ColsDefault.jahiaComponent = {
id: 'luxeJahiaDemo_views_cols_ColsDefault',
id: 'luxeJahiaDemo_views_cols_default',
nodeType: 'luxe:cols',
name: 'default',
componentType: 'view'
Expand Down
2 changes: 1 addition & 1 deletion src/server/views/estate/EstateCm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const EstateCm = () => {
};

EstateCm.jahiaComponent = {
id: 'luxeJahiaDemo_views_estate_EstateCm',
id: 'luxeJahiaDemo_views_estate_cm',
nodeType: 'luxe:estate',
name: 'cm',
componentType: 'view'
Expand Down
2 changes: 1 addition & 1 deletion src/server/views/estate/EstateDefault.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const EstateDefault = () => {
};

EstateDefault.jahiaComponent = {
id: 'luxeJahiaDemo_views_estate_EstateDefault',
id: 'luxeJahiaDemo_views_estate_default',
nodeType: 'luxe:estate',
name: 'default',
componentType: 'view'
Expand Down
2 changes: 1 addition & 1 deletion src/server/views/estate/EstateFullPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const EstateFullPage = () => {
};

EstateFullPage.jahiaComponent = {
id: 'luxeJahiaDemo_views_estate_EstateFullPage',
id: 'luxeJahiaDemo_views_estate_fullPage',
nodeType: 'luxe:estate',
name: 'fullPage',
componentType: 'view'
Expand Down
2 changes: 1 addition & 1 deletion src/server/views/header/HeaderDefault.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const HeaderDefault = () => {
};

HeaderDefault.jahiaComponent = {
id: 'luxJahiaDemo_views_header_HeaderDefault',
id: 'luxJahiaDemo_views_header_default',
nodeType: 'luxe:header',
name: 'default',
componentType: 'view'
Expand Down
2 changes: 1 addition & 1 deletion src/server/views/header/HeaderTextDown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const HeaderTextDown = () => {
};

HeaderTextDown.jahiaComponent = {
id: 'luxJahiaDemo_views_header_HeaderTextDown',
id: 'luxJahiaDemo_views_header_textDown',
nodeType: 'luxe:header',
name: 'textDown',
componentType: 'view'
Expand Down
2 changes: 1 addition & 1 deletion src/server/views/header/HeaderTextUp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export const HeaderTextUp = () => {
};

HeaderTextUp.jahiaComponent = {
id: 'luxeJahiaDemo_views_header_HeaderTextUp',
id: 'luxeJahiaDemo_views_header_textUp',
nodeType: 'luxe:header',
name: 'textUp',
componentType: 'view'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ HighlightNumberDefault.propTypes = {
};

HighlightNumberDefault.jahiaComponent = {
id: 'luxeJahiaDemo_views_highlightNumber_HighlightNumberDefault',
id: 'luxeJahiaDemo_views_highlightNumber_default',
nodeType: 'luxe:highlightNumber',
displayName: 'Default',
componentType: 'view'
Expand Down
2 changes: 1 addition & 1 deletion src/server/views/navMenu.disabled/NavMenuDefault.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const NavMenuDefault = () => {
};

NavMenuDefault.jahiaComponent = {
id: 'luxeJahiaDemo_views_navMenu_NavMenuDefault',
id: 'luxeJahiaDemo_views_navMenu_default',
nodeType: 'luxe:navMenu',
displayName: 'Nav Menu',
componentType: 'view'
Expand Down
2 changes: 1 addition & 1 deletion src/server/views/navMenu/NavMenuDefault.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export const NavMenuDefault = () => {
};

NavMenuDefault.jahiaComponent = {
id: 'luxeJahiaDemo_views_navMenu_NavMenuDefault',
id: 'luxeJahiaDemo_views_navMenu_default',
nodeType: 'luxe:navMenu',
displayName: 'Nav Menu',
componentType: 'view'
Expand Down
2 changes: 1 addition & 1 deletion src/server/views/section/SectionDefault.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const SectionDefault = () => {
};

SectionDefault.jahiaComponent = {
id: 'luxJahiaDemo_views_section_SectionDefault',
id: 'luxJahiaDemo_views_section_default',
nodeType: 'luxe:section',
name: 'default',
componentType: 'view'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export const TextIllustratedDefault = () => {
};

TextIllustratedDefault.jahiaComponent = {
id: 'luxJahiaDemo_views_textIllustrated_TextIllustratedDefault',
id: 'luxJahiaDemo_views_textIllustrated_default',
nodeType: 'luxe:textIllustrated',
name: 'default',
componentType: 'view'
Expand Down

0 comments on commit 0c81382

Please sign in to comment.