Install and setup a windows machine for Salesforce Release Management
- Install Java
- Install Ant
- Salesforce Force Migration Tool
- git
public String getResourceContent(StaticResource resource, String fileName) { | |
String modStamp = String.valueOf(((DateTime)resource.SystemModStamp).getTime()); | |
List<String> path = new List<String>(); | |
path.add('/resource'); | |
path.add(modStamp); | |
path.add(resource.Name); | |
path.add(fileName); | |
String url = String.join(path, '/'); |
({ | |
validateForm: function(cmp) { | |
// Get All lightning:input elements with aura:id "input" | |
var inputs = cmp.find("input"); | |
// Iterate over array of input components | |
// `acc` is a local variable, defined as a boolean in this case | |
// `input` is the input component during iteration | |
var isValid = inputs.reduce(function(acc, input) { | |
input.showHelpMessageIfInvalid(); |
<aura:component description="Sample Record Form Issue" > | |
<lightning:card title="New Contact Compact"> | |
<lightning:recordForm | |
objectApiName="Contact" | |
layoutType="Compact" | |
mode="edit" | |
columns="2" /> | |
</lightning:card> | |
</aura:component> |
For Vue JS Javascript Development
node
and npm
.# Install Vue CLI
npm install --global @vue/cli
# Create new project from Template
Game.spawns['Spawn1'].spawnCreep( [WORK, CARRY, MOVE], 'Harvester1' ); | |
Game.spawns['Pekkerwood'].spawnCreep( [WORK, CARRY, MOVE], 'Harvester1', { memory: { role: 'harvester' } }); |
{ | |
"emmet.includeLanguages": { | |
"vue-html": "html", | |
"vue": "html" | |
}, | |
"standard.autoFixOnSave": true, | |
"standard.validate": [ | |
"javascript", | |
"javascriptreact", |
window.acumen = (function AppContext(acumen, window) { | |
var hasLightning = function() { | |
return window.$A | |
}; | |
var isMobile = function() { | |
var userAgent = window.navigator.userAgent.toLowerCase(); | |
return (-1 != userAgent.indexOf('mobile')); | |
}; |