forked from trailheadapps/ebikes-lwc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summer '19 release (trailheadapps#51)
* Updating API and removing MD * [220] Implement custom Apex type instead of stringified JSON (trailheadapps#36) * VS Code extensions properly detect hasSampleData as boolean (trailheadapps#46) * Remove duplicate declaration of `products` property (trailheadapps#47) * Cleaning up acct metadata * Update lwc-jest to pre-release * Dependency updates (trailheadapps#52) * E-Bikes Communities repo migration (trailheadapps#53) * Summer '19 README updates (trailheadapps#54)
- Loading branch information
1 parent
48638b0
commit 3f6086a
Showing
266 changed files
with
86,160 additions
and
2,195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
**/lwc/**/*.svg | ||
**/lwc/**/*.xml | ||
.sfdx | ||
lcc-react-js-bike-model/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
DURATION=7 | ||
|
||
if [ "$#" -eq 1 ]; then | ||
DURATION=$1 | ||
fi | ||
|
||
sfdx force:org:create -a ebikes -s -f config/project-scratch-def.json -d $DURATION | ||
sfdx force:source:push | ||
sfdx force:user:permset:assign -n ebikes | ||
sfdx force:data:tree:import --plan ./data/sample-data-plan.json | ||
sfdx force:mdapi:deploy -u ebikes --deploydir mdapiDeploy/unpackaged -w 1 | ||
sfdx force:org:open -p /lightning/page/home | ||
echo "Org is set up" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
force-app/main/default/aura/bikeCustomizer/bikeCustomizer.cmp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<aura:component | ||
implements="flexipage:availableForAllPageTypes,forceCommunity:availableForAllPageTypes" | ||
access="global" | ||
> | ||
<lightning:container | ||
aura:id="jsApp" | ||
src="{!$Resource.lccEbikes + '/index.html'}" | ||
/> | ||
<c:bikeCustomizerButtonBar | ||
onchange="{!c.handleChange}" | ||
></c:bikeCustomizerButtonBar> | ||
</aura:component> |
5 changes: 5 additions & 0 deletions
5
force-app/main/default/aura/bikeCustomizer/bikeCustomizer.cmp-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<AuraDefinitionBundle xmlns="urn:metadata.tooling.soap.sforce.com" fqn="bikeCustomizer"> | ||
<apiVersion>46.0</apiVersion> | ||
<description>A Lightning Component Bundle</description> | ||
</AuraDefinitionBundle> |
8 changes: 8 additions & 0 deletions
8
force-app/main/default/aura/bikeCustomizer/bikeCustomizer.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.THIS { | ||
margin-bottom: 15px; | ||
} | ||
|
||
.THIS iframe { | ||
height: 400px; | ||
width: 100%; | ||
} |
1 change: 1 addition & 0 deletions
1
force-app/main/default/aura/bikeCustomizer/bikeCustomizer.design
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<design:component label="Bike Customizer"></design:component> |
26 changes: 26 additions & 0 deletions
26
force-app/main/default/aura/bikeCustomizer/bikeCustomizerController.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
({ | ||
handleChange: function(component, event) { | ||
var bikePart = event.getParam('bikePart'); | ||
var color = event.getParam('color'); | ||
|
||
if (color) { | ||
var changeColorMsg = { | ||
name: 'change-color', | ||
value: { | ||
detail: { | ||
meshName: bikePart, | ||
color: color | ||
} | ||
} | ||
}; | ||
component.find('jsApp').message(changeColorMsg); | ||
} | ||
var moveCameraMsg = { | ||
name: 'move-camera', | ||
value: { | ||
detail: bikePart | ||
} | ||
}; | ||
component.find('jsApp').message(moveCameraMsg); | ||
} | ||
}); |
7 changes: 7 additions & 0 deletions
7
force-app/main/default/aura/createAndRefreshCase/createAndRefreshCase.cmp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<aura:component | ||
access="global" | ||
implements="forceCommunity:availableForAllPageTypes" | ||
description="Aura Component wrapper around LWC to handle refreshView event. Create Case is the LWC component handling the create case form." | ||
> | ||
<c:createCase onrefresh="{!c.handleRefresh}" /> | ||
</aura:component> |
6 changes: 6 additions & 0 deletions
6
force-app/main/default/aura/createAndRefreshCase/createAndRefreshCase.cmp-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<AuraDefinitionBundle xmlns="urn:metadata.tooling.soap.sforce.com" fqn="createAndRefreshCase"> | ||
<apiVersion>46.0</apiVersion> | ||
<description>A Lightning Component Bundle</description> | ||
<masterLabel>Create and Refresh Case (Aura)</masterLabel> | ||
</AuraDefinitionBundle> |
7 changes: 7 additions & 0 deletions
7
force-app/main/default/aura/createAndRefreshCase/createAndRefreshCase.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions
5
force-app/main/default/aura/createAndRefreshCase/createAndRefreshCaseController.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
({ | ||
handleRefresh: function(component, event) { | ||
$A.get('e.force:refreshView').fire(); | ||
} | ||
}); |
Oops, something went wrong.