Skip to content

Commit

Permalink
- Initial sync
Browse files Browse the repository at this point in the history
- Convert project to SFDX from https://github.com/iyeratl/SFDriveWealth
  • Loading branch information
[email protected] authored and [email protected] committed Oct 5, 2017
0 parents commit d021d69
Show file tree
Hide file tree
Showing 348 changed files with 16,263 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.idea/
.settings/
.sfdx/
mdapi/
.project
FSCDW_SFDX1.iml
Binary file not shown.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# SFDX App

## Dev, Build and Test


## Resources


## Description of Files and Directories


## Issues


30 changes: 30 additions & 0 deletions config/FSCDW_SFDX-scratch-def.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"edition": "Developer",
"features": "API;AuthorApex;Communities;CustomApps;CustomTabs;ForceComPlatform;SalesWave",
"orgPreferences": {
"enabled": [
"ChatterEnabled",
"LoginForensicsEnabled",
"NetworksEnabled",
"IsMiddleNameEnabled",
"IsNameSuffixEnabled",
"DocumentContentSearchEnabled",
"OptimizeSearchForCjkEnabled",
"RecentlyViewedUsersForBlankLookupEnabled",
"SidebarAutoCompleteEnabled",
"SidebarDropDownListEnabled",
"SidebarLimitToItemsIownEnabled",
"SingleSearchResultShortcutEnabled",
"SpellCorrectKnowledgeSearchEnabled"
],
"disabled": [
"IsOpportunityTeamEnabled",
"IsOrdersEnabled",
"IsExactTargetForSalesforceAppsEnabled",
"IsCascadeActivateToRelatedPricesEnabled",
"IsQuantityScheduleEnabled",
"IsRevenueScheduleEnabled",
"IsQuoteEnabled"
]
}
}
7 changes: 7 additions & 0 deletions config/project-scratch-def.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"orgName": "FSC Drive Wealth",
"edition": "Developer",
"orgPreferences" : {
"enabled": ["S1DesktopEnabled"]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<CustomApplication xmlns="http://soap.sforce.com/2006/04/metadata">
<defaultLandingTab>standard-home</defaultLandingTab>
<label>FSC DriveWealth</label>
<tab>standard-Account</tab>
<tab>DW_Session__c</tab>
<tab>DW_Account__c</tab>
<tab>DW_Order__c</tab>
</CustomApplication>
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?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>Account_Record_Page</content>
<formFactor>Large</formFactor>
<skipRecordTypeSelect>false</skipRecordTypeSelect>
<type>Flexipage</type>
<pageOrSobjectType>Account</pageOrSobjectType>
</actionOverrides>
<brand>
<headerColor>#0070D2</headerColor>
</brand>
<formFactors>Large</formFactors>
<label>FSC DriveWealth</label>
<navType>Standard</navType>
<tab>standard-home</tab>
<tab>standard-Account</tab>
<tab>DW_Session__c</tab>
<tab>DW_Account__c</tab>
<tab>DW_Order__c</tab>
<uiType>Lightning</uiType>
</CustomApplication>
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
<aura:component description="DWCreateAccountForm" implements="flexipage:availableForAllPageTypes,force:hasRecordId" access="global">

<!-- Workaround for strange bug where related records are not loaded the first time -->
<!-- https://org62.lightning.force.com/one/one.app#/sObject/0D50M000032hJOwSAM/view-->
<aura:attribute type="Account" name="acc" access="public"/>
<!-- Workaround -->

<!-- Instrument information for order -->
<!-- <aura:attribute name="instrument" type="DriveWealthJsonInstrument" access="public" />
-->

<!-- debug Apex code -->
<aura:attribute name="debug" type="Boolean" default="false" access="global"/>
<aura:attribute name="debugClient" type="Boolean" default="false" access="global" />


<!-- Store account if it was successfully created -->
<!-- this may not been needed
<aura:attribute name="account" type="DriveWealthJsonAccount" /> -->

<!-- For using ApexBridge Library -->
<!-- VI - utility for making apex controller calls from LC-->
<c:ETLC_ApexBridge aura:id="ApexBridge" debugServer="{!v.debug}" debugClient="{!v.debugClient}"/>

<!-- For using Utils library -->
<!-- VI - used to display error messages in the component - also used for logging/messaging -->
<c:Utils debugClient="{!v.debugClient}" aura:id="utils" />



<!--Setup initial information for creating an account -->
<aura:handler name="init" value="{!this}" action="{!c.doInit}" />

<aura:registerEvent name="cmpEvent" type="c:EvtAccountCreated" />




<aura:attribute name="fname" type="String" default="" />
<aura:attribute name="lname" type="String" default="" />
<aura:attribute name="uname" type="String" default="" />
<aura:attribute name="passwd" type="String" default="" />
<aura:attribute name="recordId" type="Id" access="global" default="" />


<!-- Input Form using components -->
<aura:if isTrue="{!v.acc.sfaip_fsc_dw__DW_Accounts__r}">
<lightning:card >
<aura:set attribute="title">
Drive Wealth Account Details
</aura:set>
</lightning:card>
<aura:set attribute="else">
<lightning:card >
<aura:set attribute="title">
Create DW Account
</aura:set>
<p class="slds-p-horizontal--small">
Create DW Account to start placing orders
</p>
</lightning:card>
</aura:set>
</aura:if>

<!-- ui:message will added in this div via createComponents() -->
<div aura:id="uiMessage"></div>

<ui:spinner aura:id="spinner" isVisible="false"/>


<!-- Input Form using components -->
<aura:if isTrue="{!v.acc.sfaip_fsc_dw__DW_Accounts__r}">
<div class="slds-box slds-theme--default" aura:id="showAccountForm">
<div class="slds-form-element slds-is-required">
<div class="slds-form-element__control">
<label class="slds-form-element__label" >DW Account Name</label>
<div class="slds-form-element__control">
<ui:outputText value="{!v.acc.sfaip_fsc_dw__DW_Accounts__r.records[0].Name}" />

</div>
</div>
<br/>

<div class="slds-form-element__control">
<label class="slds-form-element__label" >DW Account Number</label>
<div class="slds-form-element__control">
<ui:outputText value="{!v.acc.sfaip_fsc_dw__DW_Accounts__r.records[0].sfaip_fsc_dw__Account_No__c}" />

</div>
</div>
<br/>

<div class="slds-form-element__control">
<label class="slds-form-element__label" >DW Account Type</label>
<div class="slds-form-element__control">

<aura:If isTrue="{!v.acc.sfaip_fsc_dw__DW_Accounts__r.records[0].sfaip_fsc_dw__Account_Type__c==1}">
<ui:outputText value="Practice Account" />

</aura:If>

</div>
</div>
<br/>

<div class="slds-form-element__control">
<label class="slds-form-element__label" >When was this created</label>
<div class="slds-form-element__control">
<ui:outputText value="{!v.acc.sfaip_fsc_dw__DW_Accounts__r.records[0].sfaip_fsc_dw__Created_When__c}" />

</div>
</div>
<br/>
</div>

</div>
<aura:set attribute="else">
<div class="slds-box slds-theme--default" aura:id="createAccountForm">
<div class="slds-form-element">
<lightning:input required="true" label="First Name" aura:id="fname" name="fname" type="text" value="{!v.fname}" />

</div>

<div class="slds-form-element slds-is-required">
<div class="slds-form-element__control">
<lightning:input required="true" label="Last Name" aura:id="lname" name="lname" type="text" value="{!v.lname}"/>


</div>
</div>

<div class="slds-form-element slds-is-required">
<div class="slds-form-element__control">
<label class="slds-form-element__label" >Email</label>
<div class="slds-form-element__control">
<ui:outputText value="{!v.acc.sfaip_fsc_dw__Email__c}" />
</div>
</div>
</div>
<div class="slds-form-element">
<lightning:input required="true" label="User Name" aura:id="uname" name="uname" type="text" value="{!v.uname}" />

</div>

<div class="slds-form-element slds-is-required">
<div class="slds-form-element__control">
<lightning:input required="true" label="Password (Must be more than 8 characters and less than 90)" aura:id="passwd" name="passwd" type="text" value="{!v.passwd}"/>


</div>
</div>
<div class="slds-form-element">
<lightning:button label="Create Account" onclick="{!c.createAccount}" />
</div>
</div><!-- ./container-->
</aura:set>

</aura:if>
</aura:component>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>38.0</apiVersion>
<description>Create account form</description>
</AuraDefinitionBundle>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
<apiVersion>38.0</apiVersion>
<description>Create account form</description>
</AuraDefinitionBundle>
Loading

0 comments on commit d021d69

Please sign in to comment.