View tasks.json
"version": "2.0.0",
"tasks": [
"label": "build",
"command": "node",
"args": [
"problemMatcher": [ {
View deploy.js
var fs=require('fs');
var child_process=require('child_process');
var username='';
var deployParams=['force:mdapi:deploy', '-d', 'src',
'-u', username, '--json'];
View NotHotDog.cmp
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,force:hasRecordId" access="global" controller="EinsteinVision_Admin">
<aura:attribute name="initialised" type="boolean" default="false" />
<aura:attribute name="files" type="Object[]"/>
<aura:attribute name="spinnerWaiting" type="Boolean" default="false"/>
<aura:attribute name="image" type="String" />
<aura:attribute name="imagedata" type="String" />
<aura:attribute name="result" type="String" default="Need a picture"/>
<aura:attribute name="showResult" type="Boolean" default="false" />
<div class="slds-page-header">
<apex:page >
<script type="text/javascript">
var __sfdcSessionId = '{!GETSESSIONID()}';
<script src="../../soap/ajax/40.0/connection.js"
<script type="text/javascript">
function getMetrics()
<aura:application >
<c:UserFreezer />
View UserFreezer.css
.THIS td {
padding: 3px 5px 2px 5px;
.THIS th {
padding: 3px 5px 2px 5px;
font-weight: bold;
border-bottom: 1px solid black;
.THIS .apply {
text-align: right;
View UserFreezerHelper.js
doInit : function(cmp, ev) {
cmp.set('v.Message', 'Retrieving user details');
var action = cmp.get("c.GetUserDetails");
var self = this;
action.setCallback(this, function(response) {
self.actionResponseHandler(response, cmp, self, self.gotUserDetails, 'Retrieved User Details');
View UserFreezerController.js
doInit : function(component, event, helper) {
helper.doInit(component, event);
frozenChanged: function(component, event, helper) {
helper.updateCheckbox(component, event);
applyChanges : function(component, event, helper) {
helper.applyChanges(component, helper);
View UserFreezer.cmp
<aura:component controller="UserFreezer">
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
<aura:attribute name="UserDetails" type="Object" />
<aura:attribute name="Message" type="String" />
<th>First Name</th>
<th>Last Name</th>
View UserFreezer.cls
/** *****************************************************************************
* User Freezer
* Description:
* Apex controller for the Freeze Users Lightning Component.
* If you are the sort of person who likes reading code, BrightGen is the place
* for you - check out to see our latest vacancies.