Skip to content

Commit

Permalink
gitff
Browse files Browse the repository at this point in the history
  • Loading branch information
dvolk20 committed May 31, 2019
0 parents commit b479c2f
Show file tree
Hide file tree
Showing 65 changed files with 2,260 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .forceignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# List files or directories below to ignore them when running force:source:push, force:source:pull, and force:source:status
# More information: https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_exclude_source.htm
#

package.xml

# LWC configuration files
**/jsconfig.json
**/.eslintrc.json

# LWC Jest
**/__tests__/**
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.sfdx
.vscode
.DS_Store
assets/mdapi
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List files or directories below to ignore them when running prettier
# More information: https://prettier.io/docs/en/ignore.html
#

.sfdx
13 changes: 13 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"trailingComma": "none",
"overrides": [
{
"files": "**/lwc/**/*.html",
"options": { "parser": "lwc" }
},
{
"files": "*.{cmp,page,component}",
"options": { "parser": "html" }
}
]
}
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# SFDX App

## Dev, Build and Test

## Resources

## Description of Files and Directories

## Issues
420 changes: 420 additions & 0 deletions assets/data/Broker__c-Property__c.json

Large diffs are not rendered by default.

90 changes: 90 additions & 0 deletions assets/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>DreamHouseSampleDataController</members>
<members>DreamHouseSampleDataControllerTest</members>
<name>ApexClass</name>
</types>
<types>
<members>DreamHouseSampleData</members>
<name>ApexPage</name>
</types>
<types>
<members>Broker__c.Broker_Compact</members>
<members>Property__c.Property_Compact_Layout</members>
<name>CompactLayout</name>
</types>
<types>
<members>DreamhouseLogo</members>
<name>ContentAsset</name>
</types>
<types>
<members>Dreamhouse</members>
<name>CustomApplication</name>
</types>
<types>
<members>Broker__c.Email__c</members>
<members>Broker__c.Mobile_Phone__c</members>
<members>Broker__c.Phone__c</members>
<members>Broker__c.Picture_IMG__c</members>
<members>Broker__c.Picture__c</members>
<members>Broker__c.Title__c</members>
<members>Property__c.Address__c</members>
<members>Property__c.Assessed_Value__c</members>
<members>Property__c.Baths__c</members>
<members>Property__c.Beds__c</members>
<members>Property__c.Broker__c</members>
<members>Property__c.City__c</members>
<members>Property__c.Date_Agreement__c</members>
<members>Property__c.Date_Closed__c</members>
<members>Property__c.Date_Contracted__c</members>
<members>Property__c.Date_Listed__c</members>
<members>Property__c.Date_Pre_Market__c</members>
<members>Property__c.Days_On_Market__c</members>
<members>Property__c.Description__c</members>
<members>Property__c.Location__c</members>
<members>Property__c.Picture_IMG__c</members>
<members>Property__c.Picture__c</members>
<members>Property__c.Price__c</members>
<members>Property__c.Record_Link__c</members>
<members>Property__c.RemoveMe__c</members>
<members>Property__c.State__c</members>
<members>Property__c.Status__c</members>
<members>Property__c.Tags__c</members>
<members>Property__c.Thumbnail_IMG__c</members>
<members>Property__c.Thumbnail__c</members>
<members>Property__c.Title__c</members>
<members>Property__c.Zip__c</members>
<name>CustomField</name>
</types>
<types>
<members>Broker__c</members>
<members>Property__c</members>
<name>CustomObject</name>
</types>
<types>
<members>Broker__c</members>
<members>Property__c</members>
<members>Sample_Data_Import</members>
<name>CustomTab</name>
</types>
<types>
<members>Property_Record_Page</members>
<name>FlexiPage</name>
</types>
<types>
<members>Broker__c-Broker Layout</members>
<members>Property__c-Property Layout</members>
<name>Layout</name>
</types>
<types>
<members>Broker__c.All</members>
<members>Property__c.All</members>
<name>ListView</name>
</types>
<types>
<members>Dreamhouse</members>
<name>PermissionSet</name>
</types>
<version>43.0</version>
</Package>
10 changes: 10 additions & 0 deletions config/project-scratch-def.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"orgName": "Company",
"edition": "Developer",
"settings": {
"orgPreferenceSettings": {
"s1DesktopEnabled": true,
"s1EncryptedStoragePref2": false
}
}
}
30 changes: 30 additions & 0 deletions force-app/main/default/applications/Dreamhouse.app-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata">
<actionOverrides>
<actionName>View</actionName>
<comment>Action override created by Lightning App Builder during activation.</comment>
<content>Property_Record_Page</content>
<formFactor>Large</formFactor>
<skipRecordTypeSelect>false</skipRecordTypeSelect>
<type>Flexipage</type>
<pageOrSobjectType>Property__c</pageOrSobjectType>
</actionOverrides>
<brand>
<headerColor>#0070D2</headerColor>
<logo>DreamhouseLogo</logo>
<logoVersion>1</logoVersion>
<shouldOverrideOrgTheme>false</shouldOverrideOrgTheme>
</brand>
<description>DreamHouse helps you connect with your customers in a whole new way.</description>
<formFactors>Large</formFactors>
<isNavAutoTempTabsDisabled>false</isNavAutoTempTabsDisabled>
<isNavPersonalizationDisabled>false</isNavPersonalizationDisabled>
<label>Dreamhouse</label>
<navType>Standard</navType>
<tabs>standard-home</tabs>
<tabs>Property__c</tabs>
<tabs>Broker__c</tabs>
<tabs>standard-Contact</tabs>
<tabs>Sample_Data_Import</tabs>
<uiType>Lightning</uiType>
</CustomApplication>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
global with sharing class DreamHouseSampleDataController {

@RemoteAction
global static void deleteAll() {
DELETE [SELECT ID FROM property__c];
DELETE [SELECT ID FROM broker__c];
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>43.0</apiVersion>
<status>Active</status>
</ApexClass>
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
@isTest
private class DreamHouseSampleDataControllerTest {

@isTest
static void test_deleteAll() {

Property__c property = new Property__c();
Broker__c broker = new Broker__c();

insert property;
insert broker;

System.assertEquals( 1, [ SELECT count() FROM Property__c ] );
System.assertEquals( 1, [ SELECT count() FROM Broker__c ] );

Test.startTest();

DreamHouseSampleDataController.deleteAll();

Test.stopTest();

System.assertEquals( 0, [ SELECT count() FROM Property__c ] );
System.assertEquals( 0, [ SELECT count() FROM Broker__c ] );

}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>43.0</apiVersion>
<status>Active</status>
</ApexClass>
Binary file not shown.
17 changes: 17 additions & 0 deletions force-app/main/default/contentassets/DreamhouseLogo.asset-meta.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<ContentAsset xmlns="http://soap.sforce.com/2006/04/metadata">
<isVisibleByExternalUsers>false</isVisibleByExternalUsers>
<language>en_US</language>
<masterLabel>DreamhouseLogo</masterLabel>
<relationships>
<organization>
<access>VIEWER</access>
</organization>
</relationships>
<versions>
<version>
<number>1</number>
<pathOnClient>DreamhouseLogo.png</pathOnClient>
</version>
</versions>
</ContentAsset>
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
<?xml version="1.0" encoding="UTF-8"?>
<FlexiPage xmlns="http://soap.sforce.com/2006/04/metadata">
<flexiPageRegions>
<componentInstances>
<componentInstanceProperties>
<name>collapsed</name>
<value>false</value>
</componentInstanceProperties>
<componentName>force:highlightsPanel</componentName>
</componentInstances>
<mode>Replace</mode>
<name>header</name>
<type>Region</type>
</flexiPageRegions>
<flexiPageRegions>
<componentInstances>
<componentName>force:relatedListContainer</componentName>
</componentInstances>
<mode>Replace</mode>
<name>relatedTabContent</name>
<type>Facet</type>
</flexiPageRegions>
<flexiPageRegions>
<componentInstances>
<componentName>force:detailPanel</componentName>
</componentInstances>
<mode>Replace</mode>
<name>detailTabContent</name>
<type>Facet</type>
</flexiPageRegions>
<flexiPageRegions>
<componentInstances>
<componentInstanceProperties>
<name>body</name>
<value>relatedTabContent</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>title</name>
<value>Standard.Tab.relatedLists</value>
</componentInstanceProperties>
<componentName>flexipage:tab</componentName>
</componentInstances>
<componentInstances>
<componentInstanceProperties>
<name>active</name>
<value>true</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>body</name>
<value>detailTabContent</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>title</name>
<value>Standard.Tab.detail</value>
</componentInstanceProperties>
<componentName>flexipage:tab</componentName>
</componentInstances>
<mode>Replace</mode>
<name>maintabs</name>
<type>Facet</type>
</flexiPageRegions>
<flexiPageRegions>
<componentInstances>
<componentInstanceProperties>
<name>tabs</name>
<value>maintabs</value>
</componentInstanceProperties>
<componentName>flexipage:tabset</componentName>
</componentInstances>
<mode>Replace</mode>
<name>main</name>
<type>Region</type>
</flexiPageRegions>
<flexiPageRegions>
<componentInstances>
<componentName>runtime_sales_activities:activityPanel</componentName>
</componentInstances>
<mode>Replace</mode>
<name>activityTabContent</name>
<type>Facet</type>
</flexiPageRegions>
<flexiPageRegions>
<componentInstances>
<componentName>forceChatter:recordFeedContainer</componentName>
</componentInstances>
<mode>Replace</mode>
<name>feedTabContent</name>
<type>Facet</type>
</flexiPageRegions>
<flexiPageRegions>
<componentInstances>
<componentInstanceProperties>
<name>active</name>
<value>true</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>body</name>
<value>activityTabContent</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>title</name>
<value>Standard.Tab.activity</value>
</componentInstanceProperties>
<componentName>flexipage:tab</componentName>
</componentInstances>
<componentInstances>
<componentInstanceProperties>
<name>body</name>
<value>feedTabContent</value>
</componentInstanceProperties>
<componentInstanceProperties>
<name>title</name>
<value>Standard.Tab.collaborate</value>
</componentInstanceProperties>
<componentName>flexipage:tab</componentName>
</componentInstances>
<mode>Replace</mode>
<name>sidebartabs</name>
<type>Facet</type>
</flexiPageRegions>
<flexiPageRegions>
<componentInstances>
<componentInstanceProperties>
<name>tabs</name>
<value>sidebartabs</value>
</componentInstanceProperties>
<componentName>flexipage:tabset</componentName>
</componentInstances>
<mode>Replace</mode>
<name>sidebar</name>
<type>Region</type>
</flexiPageRegions>
<masterLabel>Property Record Page</masterLabel>
<parentFlexiPage>flexipage__default_rec_L</parentFlexiPage>
<sobjectType>Property__c</sobjectType>
<template>
<name>flexipage:recordHomeTemplateDesktop</name>
</template>
<type>RecordPage</type>
</FlexiPage>
Loading

0 comments on commit b479c2f

Please sign in to comment.