|
|
@ -1,7 +1,5 @@ |
|
|
|
'use strict' |
|
|
|
'use strict' |
|
|
|
var DropdownPanel = require('./DropdownPanel') |
|
|
|
var DropdownPanel = require('./DropdownPanel') |
|
|
|
var remixLib = require('remix-lib') |
|
|
|
|
|
|
|
var ui = remixLib.helpers.ui |
|
|
|
|
|
|
|
var yo = require('yo-yo') |
|
|
|
var yo = require('yo-yo') |
|
|
|
|
|
|
|
|
|
|
|
function StackPanel (_parent, _traceManager) { |
|
|
|
function StackPanel (_parent, _traceManager) { |
|
|
@ -26,19 +24,10 @@ StackPanel.prototype.init = function () { |
|
|
|
self.basicPanel.update({}) |
|
|
|
self.basicPanel.update({}) |
|
|
|
console.log(error) |
|
|
|
console.log(error) |
|
|
|
} else if (self.parent.currentStepIndex === index) { |
|
|
|
} else if (self.parent.currentStepIndex === index) { |
|
|
|
self.basicPanel.update(self.format(stack)) |
|
|
|
self.basicPanel.update(stack) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
StackPanel.prototype.format = function (stack) { |
|
|
|
|
|
|
|
var ret = [] |
|
|
|
|
|
|
|
stack.map(function (item, i) { |
|
|
|
|
|
|
|
var hex = ui.normalizeHex(item) |
|
|
|
|
|
|
|
ret.push(hex) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
return ret |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = StackPanel |
|
|
|
module.exports = StackPanel |
|
|
|