Skip to content

Commit b984cb2

Browse files
committed
update: bumped ember to 3.1
sysdig-CLA-1.0-signed-off-by: Roberto Scolaro <[email protected]> Signed-off-by: Roberto Scolaro <[email protected]>
1 parent cdad8e8 commit b984cb2

File tree

11 files changed

+27
-25
lines changed

11 files changed

+27
-25
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/blueprints/*/files/**/*.js

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module.exports = {
2222
files: [
2323
'ember-cli-build.js',
2424
'testem.js',
25+
'blueprints/*/index.js',
2526
'config/**/*.js',
2627
'lib/*/index.js'
2728
],

app/controllers/capture.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,12 @@ export default Controller.extend({
5252
actions: {
5353
openFileBrowser() {
5454
if (electronUtils.isElectron()) {
55-
this.get('application').send('openFileBrowser');
55+
this.application.send('openFileBrowser');
5656
}
5757
},
5858

5959
openFile(value) {
60-
this.get('application').send('openFile', value);
60+
this.application.send('openFile', value);
6161
},
6262
},
6363
});

app/controllers/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default Controller.extend({
2929

3030
actions: {
3131
openFileBrowser() {
32-
this.get('application').send('openFileBrowser');
32+
this.application.send('openFileBrowser');
3333
},
3434
},
3535
});

app/routes/application.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ export default Route.extend({
2828
setupController() {
2929
this._super(...arguments);
3030

31-
this.get('userTracking').set('platformInfo', electronUtils.getPlatformInfo());
31+
this.userTracking.set('platformInfo', electronUtils.getPlatformInfo());
3232

3333
electronUtils.addShortcut('mod+o', () => {
3434
this.send('openFileBrowser').openFile();
3535
});
3636

37-
const shortcuts = this.get('shortcutsService');
37+
const shortcuts = this.shortcutsService;
3838
shortcuts.setShortcuts(
3939
[
4040
shortcuts.defineCategory('general', 'General'),
@@ -74,7 +74,7 @@ export default Route.extend({
7474
]
7575
);
7676

77-
this.get('colorProvider').setDefaults({
77+
this.colorProvider.setDefaults({
7878
// http://www.color-hex.com/color/6b768e
7979
HISTOGRAM_COLUMN_EMPTY: '#E4E4E4',
8080
HISTOGRAM_COLUMN_DEFAULT: '#798399',

app/routes/capture.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ export default Route.extend({
4646
setupController(controller, model) {
4747
this._super(controller, model);
4848

49-
this.get('captureTimelines').setCurrent(
50-
this.get('captureTimelines').deserializeFromQueryParam(model.queryParams.metricTimelinesParam)
49+
this.captureTimelines.setCurrent(
50+
this.captureTimelines.deserializeFromQueryParam(model.queryParams.metricTimelinesParam)
5151
);
5252
},
5353

@@ -87,7 +87,7 @@ export default Route.extend({
8787
},
8888

8989
applyFilter(filter) {
90-
this.get('userTracking').action(this.get('userTracking').ACTIONS.INTERACTION, {
90+
this.userTracking.action(this.userTracking.ACTIONS.INTERACTION, {
9191
name: 'apply sysdig filter',
9292
'is set': isEmpty(filter) === false,
9393
});
@@ -118,7 +118,7 @@ export default Route.extend({
118118
}),
119119
});
120120
} else {
121-
this.get('userTracking').action(this.get('userTracking').ACTIONS.INTERACTION, {
121+
this.userTracking.action(this.userTracking.ACTIONS.INTERACTION, {
122122
name: 'reset timeline selection',
123123
});
124124

@@ -134,8 +134,8 @@ export default Route.extend({
134134
toggleMetricTimeline(metricName) {
135135
this.replaceWith('capture.views.view', this.controller.get('selectedViewId'), {
136136
queryParams: this.getCurrentQueryParams({
137-
metricTimelinesParam: this.get('captureTimelines').serializeToQueryParam(
138-
this.get('captureTimelines').toggle(metricName)
137+
metricTimelinesParam: this.captureTimelines.serializeToQueryParam(
138+
this.captureTimelines.toggle(metricName)
139139
),
140140
}),
141141
});
@@ -144,8 +144,8 @@ export default Route.extend({
144144
removeMetricTimeline(metricName) {
145145
this.replaceWith('capture.views.view', this.controller.get('selectedViewId'), {
146146
queryParams: this.getCurrentQueryParams({
147-
metricTimelinesParam: this.get('captureTimelines').serializeToQueryParam(
148-
this.get('captureTimelines').remove(metricName)
147+
metricTimelinesParam: this.captureTimelines.serializeToQueryParam(
148+
this.captureTimelines.remove(metricName)
149149
),
150150
}),
151151
});

app/routes/capture/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default Route.extend({
2626
const captureModel = this.modelFor('capture');
2727

2828
if (captureModel.queryParams.drilldownInfoParam) {
29-
const steps = this.get('drilldownManager').convertFromUrl({
29+
const steps = this.drilldownManager.convertFromUrl({
3030
drilldownInfoParam: captureModel.queryParams.drilldownInfoParam,
3131
});
3232

app/routes/capture/views/view.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ export default Route.extend({
4343
filter: model.filter,
4444
});
4545

46-
this.get('dataSearchService').setSearchPattern(model.searchPattern);
46+
this.dataSearchService.setSearchPattern(model.searchPattern);
4747

48-
this.get('viewsManager')
48+
this.viewsManager
4949
.findViewConfiguration(model.viewId)
5050
.then((view) => {
5151
document.title = `Sysdig Inspect - ${view.name} on ${model.capture.filePath}`;
@@ -58,12 +58,12 @@ export default Route.extend({
5858
},
5959

6060
trackVisit() {
61-
const drillDown = serializeDrillDown(this.get('drilldownManager'), this.get('controller.model.viewId'), this.get('controller.model.capture.queryParams.drilldownInfoParam'));
61+
const drillDown = serializeDrillDown(this.drilldownManager, this.get('controller.model.viewId'), this.get('controller.model.capture.queryParams.drilldownInfoParam'));
6262
const current = drillDown[drillDown.length - 1] || { viewId: 'overview', selection: null };
6363
const previous = drillDown[drillDown.length - 2];
6464
const filePath = this.get('controller.model.capture.filePath');
6565

66-
this.get('userTracking').visit({
66+
this.userTracking.visit({
6767
route: 'capture.views.view',
6868
file: filePath.startsWith('capture-samples/') ? filePath : 'n/a',
6969
timelines: serializeTimelines(this.get('controller.model.capture.queryParams.metricTimelinesParam')),

app/routes/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export default Route.extend({
2424
setupController() {
2525
this._super(...arguments);
2626

27-
this.get('userTracking').visit({
27+
this.userTracking.visit({
2828
route: 'index',
2929
});
3030
},

config/ember-cli-update.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"packages": [
44
{
55
"name": "ember-cli",
6-
"version": "3.0.4",
6+
"version": "3.1.4",
77
"blueprints": [
88
{
99
"name": "app",

0 commit comments

Comments
 (0)