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">
View VFPageMetrics.page
<apex:page >
<script type="text/javascript">
var __sfdcSessionId = '{!GETSESSIONID()}';
</script>
<script src="../../soap/ajax/40.0/connection.js"
type="text/javascript"></script>
<script type="text/javascript">
function getMetrics()
{
View UserFreezerApp.app
<aura:application >
<c:UserFreezer />
</aura:application>
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');
});
$A.enqueueAction(action);
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" />
<table>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Username</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 http://www.brightgen.com to see our latest vacancies.
*
View AccountWrappers.css
.THIS .cell {
padding: 5px 5px 5px 5px;
}
.THIS .head {
padding: 5px 5px 5px 5px;
font-weight: bold;
}
.THIS.big {
font-size: 20px;
font-weight: bold;
View AccountWrappersController.js
({
doInit : function(component, event, helper) {
helper.init(component, event);
},
getAccounts : function(component, event, helper) {
helper.getAccounts(component, event);
}
})