Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
stopRecording: function(evt) {
this.$('.stopRecording').prop('disabled', true);
var operator = this.model;
var operatorId = operator.get('id');
var appId = operator.get('appId');
// Get the recording
this.dataSource.stopOpRecording({
appId: appId,
operatorId: operatorId
});
},
template: kt.make(__dirname+'/OpActionWidget.html','_')
});
exports = module.exports = OpActionWidget;
}
var step = $target.data('action');
if (step) {
//this.steps.setActive(step);
this.go(step);
}
},
// base markup for the wizard
template: kt.make(__dirname+'/ConfigWelcomeWidget.html','_'),
navStates: {
WelcomeView: {
view: WelcomeView,
template: kt.make(__dirname+'/WelcomeView.html'),
indicator: 'welcome'
},
LicenseInfoView: {
view: LicenseInfoView,
template: kt.make(__dirname+'/LicenseInfoView.html'),
indicator: 'license'
},
// LicenseRegisterView: {
// view: LicenseRegisterView,
// template: kt.make(__dirname+'/LicenseRegisterView.html'),
// indicator: 'license'
// },
LicenseUploadView: {
view: LicenseUploadView,
template: kt.make(__dirname+'/LicenseUploadView.html'),
indicator: 'license'
// Override this to pass html into body of modal
body: function() {
return 'I ain\'t got no body';
},
onConfirm: function(evt) {
evt.preventDefault();
this.destroy();
},
onCancel: function(evt) {
evt.preventDefault();
this.destroy();
},
BASE_MODAL_TEMPLATE: kt.make(__dirname+'/ModalView.html','_')
});
exports = module.exports = ModalView;
},
_toggleHighlight: function(highlighted) {
this.$el[ highlighted ? 'addClass' : 'removeClass' ]('highlighted');
},
remove: function() {
if (typeof this.onRemove === 'function') {
this.onRemove();
}
BaseView.prototype.remove.apply(this, arguments);
},
// @final
BASE_TEMPLATE: kt.make(__dirname+'/WidgetView.html','_')
});
exports = module.exports = WidgetView;
},
events: {
'click .killApplication': 'killApplication',
'click .shutdownApplication': 'shutdownApplication'
},
killApplication: function(evt) {
this.model.kill(this.dataSource);
},
shutdownApplication: function(evt) {
this.model.shutdown(this.dataSource);
},
template: kt.make(__dirname+'/InstanceActionWidget.html','_')
});
exports = module.exports = InstanceActionWidget;
initialize: function() {
BaseView.prototype.initialize.apply(this, arguments);
this.listenTo(this.model, 'change:containerLogsUrl', this.renderContent);
},
events: {
'click .killCtnr': 'killCtnr'
},
killCtnr: function() {
this.$('.killCtnr').prop('disabled', true);
this.model.kill();
},
template: kt.make(__dirname+'/CtnrActionWidget.html','_')
});
exports = module.exports = CtnrActionWidget;
var html = this.template(json);
return html;
},
events: {
'click .cancelBtn': 'onCancel',
'click .confirmBtn': 'onConfirm'
},
confirmText: text('close'),
cancelText: false,
confirmText: false,
template: kt.make(__dirname + '/RestartModalView.html', '_')
});
exports = module.exports = RestartModalView;
return result;
},
assignments: function() {
var assignments = {
'.table-target': 'tabled'
}
if (this.subview('palette')) {
assignments['.palette-target'] = 'palette';
}
return assignments;
},
template: kt.make(__dirname+'/ListWidget.html','_'),
});
exports = module.exports = ListWidget;
this.subview('issues', new IssuesSubView({}));
this.subview('info', new InfoSubView({}));
},
render: function() {
var json = {};
var html = this.template(json);
this.$el.html(html);
this.assign({
'.diagnostic-issues': 'issues',
'.diagnostic-info': 'info'
});
return this;
},
template: kt.make(__dirname+'/DiagnosticsPageView.html')
});
exports = module.exports = DiagnosticsPageView;
});
});
this.license = options.app.license;
this.listenTo(this.license.get('agent'), 'sync', this.render);
},
render: function() {
var json = this.license.toJSON()
var html = this.template(json);
this.$el.html(html);
this.assign('.file-upload-target', 'file-upload');
return this;
},
template: kt.make(__dirname+'/LicensePageView.html')
});
exports = module.exports = LicensePageView;