Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example site pages #5

Merged
merged 2 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,22 @@ Copy the `force-app/lwc/signals` folder to your project.
> code you can either modify the resulting JS code, or you can grab the Typescript files from the `src` folder
> and set up your project to compile them.

## Examples

To see a live example, clone this repository, create a scratch org and push the code to it.

The org comes with a pre-built Experience Site that contains the examples.

Go to:

- Setup
- All Sites
- Locate the `examples` site
- Click on `Builder`
- Publish the site

You can then access the examples by going to the URL of the site.

# Usage

## Introduction
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"apiName" : "Apex_Resource__c",
"type" : "sfdc_cms__route",
"path" : "routes"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"type" : "sfdc_cms__route",
"title" : "Apex Resource",
"contentBody" : {
"activeViewId" : "Apex_Resource",
"configurationTags" : [ ],
"pageAccess" : "UseParent",
"routeType" : "custom-apex-resource",
"urlPrefix" : "apex-resource"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"apiName" : "Count_Tracking__c",
"type" : "sfdc_cms__route",
"path" : "routes"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"type" : "sfdc_cms__route",
"title" : "Count Tracking",
"contentBody" : {
"activeViewId" : "Count_Tracking",
"configurationTags" : [ ],
"pageAccess" : "UseParent",
"routeType" : "custom-count-tracking",
"urlPrefix" : "count-tracking"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"apiName" : "Form__c",
"type" : "sfdc_cms__route",
"path" : "routes"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"type" : "sfdc_cms__route",
"title" : "Form",
"contentBody" : {
"activeViewId" : "Form",
"configurationTags" : [ ],
"pageAccess" : "UseParent",
"routeType" : "custom-form",
"urlPrefix" : "form"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"apiName" : "Apex_Resource",
"type" : "sfdc_cms__view",
"path" : "views"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"type" : "sfdc_cms__view",
"title" : "Apex Resource",
"contentBody" : {
"component" : {
"children" : [ {
"children" : [ {
"attributes" : {
"backgroundImageConfig" : "",
"backgroundImageOverlay" : "rgba(0,0,0,0)",
"componentSpacerSize" : "",
"maxContentWidth" : "",
"sectionColumnGutterWidth" : "",
"sectionConfig" : "{\"UUID\":\"dbcd6107-50a3-41a6-99ee-9055e58472e2\",\"columns\":[{\"UUID\":\"2a39bf1f-19f0-4e1d-b1cd-720683f337e6\",\"columnName\":\"Column 1\",\"columnKey\":\"col1\",\"columnWidth\":\"12\",\"seedComponents\":[]}]}"
},
"children" : [ {
"children" : [ {
"attributes" : { },
"definition" : "c:listAccounts",
"id" : "9ab462db-15a0-487a-9366-b76e47f85256",
"type" : "component"
}, {
"attributes" : { },
"definition" : "c:displaySelectedAccount",
"id" : "cbce4af0-08f6-484f-ac5f-7a54675d8ee4",
"type" : "component"
} ],
"id" : "2a39bf1f-19f0-4e1d-b1cd-720683f337e6",
"name" : "col1",
"title" : "Column 1",
"type" : "region"
} ],
"definition" : "community_layout:section",
"id" : "dbcd6107-50a3-41a6-99ee-9055e58472e2",
"type" : "component"
} ],
"id" : "d58b05d7-ce2c-4c09-af8d-22518e58b348",
"name" : "content",
"title" : "Content",
"type" : "region"
}, {
"children" : [ {
"attributes" : {
"customHeadTags" : "",
"description" : "",
"pageTitle" : "Apex Resource",
"recordId" : "{!recordId}"
},
"definition" : "community_builder:seoAssistant",
"id" : "1b5a027b-51f8-4eb5-a21b-216429516209",
"type" : "component"
} ],
"id" : "a91dc8c6-d472-48c3-b5a2-390cafe8b8eb",
"name" : "sfdcHiddenRegion",
"title" : "sfdcHiddenRegion",
"type" : "region"
} ],
"definition" : "community_layout:sldsFlexibleLayout",
"id" : "6fa5f4dd-543a-4e91-bc80-f82b348826a7",
"type" : "component"
},
"dataProviders" : [ ],
"themeLayoutType" : "Inner",
"viewType" : "custom-apex-resource"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"apiName" : "Count_Tracking",
"type" : "sfdc_cms__view",
"path" : "views"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"type" : "sfdc_cms__view",
"title" : "Count Tracking",
"contentBody" : {
"component" : {
"children" : [ {
"children" : [ {
"attributes" : {
"backgroundImageConfig" : "",
"backgroundImageOverlay" : "rgba(0,0,0,0)",
"componentSpacerSize" : "",
"maxContentWidth" : "",
"sectionColumnGutterWidth" : "",
"sectionConfig" : "{\"UUID\":\"9b7ae578-5e28-4319-8a6f-fa7cd8c1f4d8\",\"columns\":[{\"UUID\":\"2df6bc38-298b-4ff6-9156-78171c206e5e\",\"columnName\":\"Column 1\",\"columnKey\":\"col1\",\"columnWidth\":\"12\",\"seedComponents\":[]}]}"
},
"children" : [ {
"children" : [ {
"attributes" : { },
"definition" : "c:countChanger",
"id" : "b3dc33ba-e99b-4f29-99f6-891c2828b06a",
"type" : "component"
}, {
"attributes" : { },
"definition" : "c:countTracker",
"id" : "c2889059-3ba8-49c3-82a7-e5b21d40a139",
"type" : "component"
} ],
"id" : "2df6bc38-298b-4ff6-9156-78171c206e5e",
"name" : "col1",
"title" : "Column 1",
"type" : "region"
} ],
"definition" : "community_layout:section",
"id" : "9b7ae578-5e28-4319-8a6f-fa7cd8c1f4d8",
"type" : "component"
} ],
"id" : "e65e4212-e898-4d16-adf4-06b15f519d4d",
"name" : "content",
"title" : "Content",
"type" : "region"
}, {
"children" : [ {
"attributes" : {
"customHeadTags" : "",
"description" : "",
"pageTitle" : "Count Tracking",
"recordId" : "{!recordId}"
},
"definition" : "community_builder:seoAssistant",
"id" : "c7b74b85-2f00-45ca-9d81-887326f8c45c",
"type" : "component"
} ],
"id" : "29ca1fda-3e18-4f4b-8cff-860da879d90f",
"name" : "sfdcHiddenRegion",
"title" : "sfdcHiddenRegion",
"type" : "region"
} ],
"definition" : "community_layout:sldsFlexibleLayout",
"id" : "2770faec-6a2e-48f8-9422-23c789a9ff47",
"type" : "component"
},
"dataProviders" : [ ],
"themeLayoutType" : "Inner",
"viewType" : "custom-count-tracking"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"apiName" : "Form",
"type" : "sfdc_cms__view",
"path" : "views"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
{
"type" : "sfdc_cms__view",
"title" : "Form",
"contentBody" : {
"component" : {
"children" : [ {
"children" : [ {
"attributes" : {
"backgroundImageConfig" : "",
"backgroundImageOverlay" : "rgba(0,0,0,0)",
"componentSpacerSize" : "",
"maxContentWidth" : "",
"sectionColumnGutterWidth" : "",
"sectionConfig" : "{\"UUID\":\"ac575fc9-e8bd-4d71-9a95-64bbd334e075\",\"columns\":[{\"UUID\":\"bc5013f2-6be5-4192-8ff2-e2fe1ab10507\",\"columnName\":\"Column 1\",\"columnKey\":\"col1\",\"columnWidth\":\"12\",\"seedComponents\":[]}]}"
},
"children" : [ {
"children" : [ {
"attributes" : { },
"definition" : "c:contactInfoForm",
"id" : "c983b67a-fb8c-4096-935f-98c9372681d2",
"type" : "component"
}, {
"attributes" : { },
"definition" : "c:businessCard",
"id" : "7649b790-013f-4f2b-9ea0-dc6333eb48fa",
"type" : "component"
} ],
"id" : "bc5013f2-6be5-4192-8ff2-e2fe1ab10507",
"name" : "col1",
"title" : "Column 1",
"type" : "region"
} ],
"definition" : "community_layout:section",
"id" : "ac575fc9-e8bd-4d71-9a95-64bbd334e075",
"type" : "component"
} ],
"id" : "a59ecd35-9aaf-4abf-b118-64226b8e443b",
"name" : "content",
"title" : "Content",
"type" : "region"
}, {
"children" : [ {
"attributes" : {
"customHeadTags" : "",
"description" : "",
"pageTitle" : "Form",
"recordId" : "{!recordId}"
},
"definition" : "community_builder:seoAssistant",
"id" : "4dce028e-2be8-418d-9293-0ec7227f2902",
"type" : "component"
} ],
"id" : "d0cf6c30-dd08-4be3-a78e-fe3957d691b2",
"name" : "sfdcHiddenRegion",
"title" : "sfdcHiddenRegion",
"type" : "region"
} ],
"definition" : "community_layout:sldsFlexibleLayout",
"id" : "c0a678a7-9ec0-43bc-b9e8-851c708b9e71",
"type" : "component"
},
"dataProviders" : [ ],
"themeLayoutType" : "Inner",
"viewType" : "custom-form"
}
}
Loading
Loading