This repository has been archived by the owner on Sep 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating package versioning and improvements to lightning compatibility
- Loading branch information
1 parent
2cc6d54
commit d64aeb9
Showing
23 changed files
with
161 additions
and
124 deletions.
There are no files selected for viewing
Binary file not shown.
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 |
---|---|---|
@@ -1,12 +1,60 @@ | ||
<aura:component access="global" implements="forceCommunity:availableForAllPageTypes" > | ||
<aura:attribute name="stateId" type="String" /> | ||
<aura:component controller="ManyWhoCurrentUserController" | ||
implements="forceCommunity:availableForAllPageTypes,force:hasRecordId" | ||
access="global"> | ||
<aura:attribute name="flowId" type="String" /> | ||
<aura:attribute name="tenantId" type="String" /> | ||
<aura:attribute name="flowVersionId" type="String" /> | ||
<aura:attribute name="navigationElementId" type="String" /> | ||
<aura:attribute name="userInfo" type="ManyWhoUserInfo" /> | ||
<aura:attribute name="mode" type="String" default="" /> | ||
<aura:attribute name="reportingMode" type="String" default="" /> | ||
<aura:attribute name="collaborationIsEnabled" type="Boolean" /> | ||
<aura:attribute name="navigationIsFixed" type="Boolean" /> | ||
<aura:attribute name="navigationIsWizard" type="Boolean" /> | ||
<aura:attribute name="collapsible" type="Boolean" /> | ||
<aura:attribute name="stateId" type="String" /> | ||
<aura:attribute name="objectId" type="String" /> | ||
<aura:attribute name="objectName" type="String" /> | ||
<ltng:require scripts="/resource/manywho_flow/js/vendor/jquery-2.1.4.min.js, | ||
/resource/manywho_flow/js/vendor/bootstrap-3.3.6.min.js, | ||
/resource/manywho_flow/js/vendor/react-0.14.6.min.js, | ||
/resource/manywho_flow/js/vendor/react-dom-0.14.6.min.js, | ||
/resource/manywho_flow/js/vendor/socket.io-1.4.5.js, | ||
/resource/manywho_flow/js/vendor/chosen.jquery-1.4.2.min.js, | ||
/resource/manywho_flow/js/vendor/moment-with-locales-2.10.6.min.js, | ||
/resource/manywho_flow/js/vendor/loglevel-1.4.0.min.js, | ||
/resource/manywho_flow/js/manywho/init.js, | ||
/resource/manywho_flow/js/manywho/compiled-6fbefb4c67.js" | ||
styles="/resource/manywho_flow/css/manywho/mw-bootstrap-2d0a35d387.css, | ||
/resource/manywho_flow/css/manywho/compiled-a5f8d32268.css, | ||
/resource/manywho_flow/css/themes/mw-sf1.css" | ||
afterScriptsLoaded="{!c.afterScriptsLoaded}"/> | ||
<aura:handler name="init" value="{!this}" action="{!c.doInit}"/> | ||
|
||
<div id="manywho"> | ||
<div id="loader" style="width: 100%; height: 100%; background: black; opacity: 1;"> | ||
<div style="position: absolute; width: 100%; top: 35%; left: 0; text-align: center; color: black; transform: translateY(-50%)"> | ||
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-size: 2em"> | ||
|
||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<lightning:container aura:id="ManyWhoFlowApp" | ||
src="https://manywhoos-dev-ed--c.na30.visual.force.com/resource/1487215709000/manywho_flow/index.html" | ||
onmessage="{!c.handleMessage}" | ||
onerror="{!c.handleError}" /> | ||
<div id="manywho-lightning-settings" | ||
data-tenant-id="{!v.userInfo.tenantId}" | ||
data-flow-id="{!v.flowId}" | ||
data-flow-version-id="{!v.flowVersionId}" | ||
data-navigation-element-id="{!v.navigationElementId}" | ||
data-session-token="{!v.userInfo.sessionId}" | ||
data-session-url="{!v.userInfo.sessionUrl}" | ||
data-mode="{!v.mode}" | ||
data-reporting-mode="{!v.reportingMode}" | ||
data-collaboration-is-enabled="{!v.collaborationIsEnabled}" | ||
data-navigation-is-fixed="{!v.navigationIsFixed}" | ||
data-navigation-is-wizard="{!v.navigationIsWizard}" | ||
data-collapsible="{!v.collapsible}" | ||
data-join="{!v.stateId}" | ||
data-object-id="{!v.objectId}" | ||
data-object-name="{!v.objectName}"> | ||
</div> | ||
</aura:component> |
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 |
---|---|---|
@@ -1,4 +1,9 @@ | ||
<design:component > | ||
<design:attribute name="tenantId" label="Tenant Id" description="The unique identifier of the ManyWho Tenant" /> | ||
<design:component label="ManyWho Flow"> | ||
<design:attribute name="flowId" label="Flow Id" description="The unique identifier of the Flow" /> | ||
<design:attribute name="navigationElementId" label="Navigation Element Id" description="(Optional) Use if you have more than one Navigation and wish to explicitly define the Navigation to use for this instance of the component" /> | ||
<design:attribute name="mode" label="Debug Mode" datasource=",DEBUG,DEBUG_STEPTHROUGH" default="" description="(Optional) Use if you want to debug the Flow" /> | ||
<design:attribute name="reportingMode" label="Reporting Mode" datasource=",PATH,VALUES,PATH_AND_VALUES" default="" description="(Optional) Use if you want to enable reporting and have configured Apex REST to receive the data" /> | ||
<design:attribute name="navigationIsWizard" label="Show Navigation as Chevrons" description="The Navigation can be shown as a menu (default) or as chevrons" /> | ||
<design:attribute name="collaborationIsEnabled" label="Enable Realtime Collaboration" description="ManyWho pages can support realtime co-edit and co-navigation, however LockerService will disable this feature" /> | ||
<design:attribute name="collapsible" label="Enable Collapsible Containers" description="Determines if a user can collapse labelled Containers in your Page Layouts" /> | ||
</design:component> |
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 |
---|---|---|
@@ -1,44 +1,20 @@ | ||
({ | ||
sendMessage : function(component, event, helper) { | ||
//var userAction = component.get("c.getUserInfo"); | ||
doInit: function(cmp) { | ||
//cmp.set("v.mode", "DEBUG"); | ||
cmp.set("v.provideSessionInfo", false); | ||
|
||
//userAction.setCallback(this, function(response){ | ||
// var state = response.getState(); | ||
|
||
// if (state === "SUCCESS") { | ||
// var userInfo = response.getReturnValue(); | ||
var resourceUrl = $A.get('$Resource.manywho_flow'); | ||
|
||
//userInfo.sessionUrl | ||
//userInfo.sessionId | ||
var startInfo = { | ||
tenantId: null, | ||
flowId: null, | ||
sessionId: null, | ||
sessionUrl: null, | ||
resourceUrl: resourceUrl | ||
}; | ||
|
||
component.find("ManyWhoFlowApp").message(startInfo); | ||
// } | ||
//}); | ||
|
||
var userAction = cmp.get("c.getUserInfo"); | ||
userAction.setCallback(this, function(response){ | ||
var state = response.getState(); | ||
if (state === "SUCCESS") { | ||
cmp.set("v.userInfo", response.getReturnValue()); | ||
} | ||
}); | ||
|
||
$A.enqueueAction(userAction); | ||
}, | ||
}, | ||
|
||
handleMessage: function(component, message, helper) { | ||
/*var payload = message.payload; | ||
var name = payload.name; | ||
if (name === "General") { | ||
var value = payload.value; | ||
component.set("v.messageReceived", value); | ||
} else if (name === "Foo") { | ||
// A different response | ||
}*/ | ||
}, | ||
|
||
handleError: function(component, error, helper) { | ||
var e = error; | ||
} | ||
}) | ||
afterScriptsLoaded : function(cmp, event, helper) { | ||
manywho.initialize(); | ||
} | ||
}) |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>36.0</apiVersion> | ||
<apiVersion>39.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>37.0</apiVersion> | ||
<apiVersion>39.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>36.0</apiVersion> | ||
<apiVersion>39.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>36.0</apiVersion> | ||
<apiVersion>39.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>37.0</apiVersion> | ||
<apiVersion>39.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>36.0</apiVersion> | ||
<apiVersion>39.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>37.0</apiVersion> | ||
<apiVersion>39.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>37.0</apiVersion> | ||
<apiVersion>39.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>36.0</apiVersion> | ||
<apiVersion>39.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>37.0</apiVersion> | ||
<apiVersion>39.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>36.0</apiVersion> | ||
<apiVersion>39.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ApexClass xmlns="http://soap.sforce.com/2006/04/metadata"> | ||
<apiVersion>36.0</apiVersion> | ||
<apiVersion>39.0</apiVersion> | ||
<status>Active</status> | ||
</ApexClass> |
Oops, something went wrong.