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
/** | |
* @class App.view.GridPanel | |
* @extends Ext.grid.Panel | |
* @author Armando Gonzalez iam@armando.mx | |
* Esta es la definicion del grid que creara nuestro tablero de minas. | |
*/ | |
Ext.define('App.view.GridPanel', { | |
extend: 'Ext.grid.Panel', | |
alias :'widget.minegrid', | |
num : 8, // inicialmente el trablero consta de 8 x 8 minas y esta es la variable que modificaremos para aumentar o disminuir el tablero |
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 is the main code for the application | |
*/ | |
Ext.Loader.setConfig({ | |
enabled:true | |
}); | |
Ext.application({ | |
name: 'App', |
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
<link rel="import" href="../core-icon-button/core-icon-button.html"> | |
<link rel="import" href="../core-toolbar/core-toolbar.html"> | |
<link rel="import" href="../paper-button/paper-button.html"> | |
<link rel="import" href="../core-animated-pages/core-animated-pages.html"> | |
<link rel="import" href="../core-animated-pages/transitions/hero-transition.html"> | |
<link rel="import" href="../core-animated-pages/transitions/cross-fade.html"> | |
<link rel="import" href="../core-animated-pages/transitions/slide-down.html"> | |
<link rel="import" href="../core-animated-pages/transitions/slide-up.html"> | |
<link rel="import" href="../core-animated-pages/transitions/tile-cascade.html"> |
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
/* Used for bulk edit. Updates timelines from csv rows | |
* @key [String] Array of header/field names from csv | |
* @rows [[String]] Array of rows. Each row is array of field values | |
*/ | |
timelineSchema.statics.updateFromArray = function (key, rows, clientEngagementId, callback) { | |
var counter = rows.length, errors = []; | |
var keyLength = key.length; | |
var model = this, | |
indexKey, | |
entry = {}, |
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
configureSpotfire : function (props, url) { | |
var me = this, | |
baseUrl = TopBox.Util.globalURL + '/analytics/', | |
customization, | |
onError, | |
onOpened; | |
customization = new spotfire.webPlayer.Customization(); | |
customization.showTopHeader = false; | |
customization.showToolBar = false; |
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
{ | |
otherProps: { //this gets store to clientmetadatas collection | |
csvFileName: '20160205-143141-Optum-EI-ACQ.csv', | |
fileName: 'https://s3.amazonaws.com/topbox-extract-alorica-optumrx/optumrx-1/audio/203284002520160204-transcoded.mp3', | |
customerAddressZip: '117', | |
customerPhoneAreaPrefix: '631648', | |
date: '2/4/16 9:34:30', | |
duration: 310, | |
agentDispositionName: 'Inbound No scripts to Convert', | |
agentName: 'Patricia Henderson', |
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
{ | |
headers: [ | |
'csvFileName', | |
'fileName', | |
'customerAddressZip', | |
'customerPhoneAreaPrefix', | |
'date', | |
'duration', | |
'agentDispositionName', | |
'agentName', |
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
Ext.define("TopBox.view.plugin.NAField", { | |
extend: "Ext.AbstractPlugin", | |
alternateClassName: "Ext.ux.form.field.Icon", | |
alias: ["plugin.saki-ficn", "plugin.ux-ficn"], | |
iconBaseCls: "fa", | |
iconCls: "fa-info-circle", | |
iconMode: "font", | |
iconColor: "#5278FF", | |
iconWidth: 16, | |
iconHeight: 16, |
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
{ | |
xtype : 'component', | |
cls : 'data', | |
itemId: 'observationSummary', | |
tpl :[ | |
'<span class="prop">TopBox ID:</span><span class="value">{version}</span>', | |
'<tpl if="false">', | |
'<span class="prop js-pkey-label pkey">{pkeyLabel}:</span><span class="value js-pkey-value">{pkey}</span>', | |
'</tpl>', | |
'<span class="prop">Agent:</span><span class="value">{agent}</span>' |
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
temperature.on('medir', function () { | |
led.turnOn(); | |
}, 23); | |
light.on('medir', function () { | |
ledRGB1.turnOn('#FF0000'); | |
}, 12); | |
humidity.on('medir', function () { | |
ledRGB2.blink('#00FF00'); | |
}, 12); | |
distance.on('medir', function () { |
OlderNewer