Skip to content

Commit

Permalink
fix more references and backward compatability
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielHindi committed Aug 20, 2017
1 parent 0457665 commit 69c868d
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 14 deletions.
8 changes: 4 additions & 4 deletions pluginTester/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<link href="../styles/loading.css" rel="stylesheet">
<link href="../styles/helper.css" rel="stylesheet">
<link href="../styles/siteIcons.css" rel="stylesheet">
<link href="http://app.buildfire.com/styles/siteScreen.css" rel="stylesheet">
<link href="https://app.buildfire.com/styles/siteScreen.css" rel="stylesheet">

<link href="styles/pulldown.css" rel="stylesheet">

Expand Down Expand Up @@ -65,7 +65,7 @@
</a>
</li>
<li>
<a ng-href="http://dev.buildfire.com" target="_blank"
<a ng-href="https://dev.buildfire.com" target="_blank"
class="parent primary-color-hover transition-third">
<p class="text margin-zero ellipsis transition-third">Submit Plugin</p>
<span class="icon icon-check-square transition-third"></span>
Expand All @@ -79,7 +79,7 @@
</li>
<li>
<a target="_blank" class="parent primary-color-hover transition-third"
href="http://app.buildfire.com">
href="https://app.buildfire.com">
<p class="text margin-zero ellipsis transition-third">Control Panel</p>
<span class="icon icon-window transition-third"></span>
</a>
Expand Down Expand Up @@ -182,6 +182,6 @@
<script type="text/javascript" src="scripts/pullDownToRefresh.js"></script>


<link href="http://app.buildfire.com/styles/bootstrapIcons.css" rel="stylesheet">
<link href="https://app.buildfire.com/styles/bootstrapIcons.css" rel="stylesheet">
</body>
</html>
2 changes: 1 addition & 1 deletion pluginTester/pages/controllers/indexCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $app.controller('indexCtrl', ['$scope', function ($scope) {
$scope.recentPlugins = recentPlugins;


$scope.dataTracer = "http://dev.buildfire.com/#/dataTracer/" + window.appContext.currentApp.appId
$scope.dataTracer = "https://dev.buildfire.com/#/dataTracer/" + window.appContext.currentApp.appId
+ "/" + window.appContext.currentPlugin.pluginPath
+ "/" + window.appContext.currentPlugin.instanceId
+ "/" + window.appContext.currentApp.keys.datastoreKey;
Expand Down
2 changes: 1 addition & 1 deletion pluginTester/pages/controllers/loginCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
if ($scope.validate()) {
$scope.loggingIn = true;

$http.post('http://app.buildfire.com/api/login/controlPanel/', {
$http.post('https://app.buildfire.com/api/login/controlPanel/', {
email: $scope.username,
password: $scope.password
}, {bypassInterceptorForStatus: 404})
Expand Down
2 changes: 1 addition & 1 deletion pluginTester/pages/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
</button>
</div>
<div class="bottom">
<a href="http://app.buildfire.com/pages/forgotPassword.html" class="access">I can't access my account.</a>
<a href="https://app.buildfire.com/pages/forgotPassword.html" class="access">I can't access my account.</a>
</div>
</form>
</div>
2 changes: 1 addition & 1 deletion pluginTester/scripts/loadScripts.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function _ScriptLoader(){
this.domain="http://app.buildfire.com/";
this.domain="https://app.buildfire.com/";
window._appRoot = 'app/';

this.scripts = [
Expand Down
6 changes: 3 additions & 3 deletions pluginTester/scripts/siteConfig.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
window.siteConfig = {
appId: 202
, endPoints: {
datastoreHost: 'http://datastore.buildfire.com',
datastoreHost: 'https://datastore.buildfire.com',
appHost: 'https://app.buildfire.com',
auth: "auth.buildfire.com",
authHost: "http://auth.buildfire.com",
authHost: "https://auth.buildfire.com",
pluginHost : "http://s3-us-west-2.amazonaws.com/pluginserver.prod/plugins",
socialHost : "http://social.buildfire.com"
socialHost : "https://social.buildfire.com"
}
, keys: {
datastoreKey: '123-ASD-TEST'
Expand Down
9 changes: 6 additions & 3 deletions scripts/buildfire.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,14 +179,14 @@ var buildfire = {
//alert('parent sent: ' + packet.data);
}
}
, _resendAttempts:0
//, _resendAttempts:0
, _sendPacket: function (packet, callback) {
if (typeof (callback) != "function")// handels better on response
callback = function (err, result) {
//console.info('buildfire.js ignored callback ' + JSON.stringify(arguments));
};

var retryInterval = 1000,
var retryInterval = 1500,
command = packet.cmd,
maxResendAttempts = 15,
resendAttempts = 0;
Expand All @@ -205,7 +205,7 @@ var buildfire = {

var resend = function(){
if(resendAttempts < maxResendAttempts) {
console.log("calling " + packet.cmd + ' again. total overall resend attempts ' + resendAttempts);
console.error("calling " + packet.cmd + ' again. total overall resend attempts ' + resendAttempts);
buildfire._sendPacket(packet, function (e, d) {
resendAttempts--;
callback(e, d);
Expand Down Expand Up @@ -269,6 +269,9 @@ var buildfire = {
*/
navigateTo: function (pluginData) {

if(pluginData.pluginTypeId && !pluginData.pluginId)
pluginData.pluginId=pluginData.pluginTypeId;

if (pluginData.pluginId
&& pluginData.instanceId
&& pluginData.folderName) {
Expand Down

0 comments on commit 69c868d

Please sign in to comment.