-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #91 from jherdman/upgrade-ember-again
Upgrade ember again
- Loading branch information
Showing
12 changed files
with
1,055 additions
and
1,199 deletions.
There are no files selected for viewing
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ | |
/.env* | ||
/.eslintignore | ||
/.eslintrc.js | ||
/.git/ | ||
/.gitignore | ||
/.template-lintrc.js | ||
/.travis.yml | ||
|
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 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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { module, test } from 'qunit'; | ||
import { visit } from '@ember/test-helpers'; | ||
import { setupApplicationTest } from 'ember-qunit'; | ||
|
||
module('Acceptance | smoke tests', function(hooks) { | ||
setupApplicationTest(hooks); | ||
|
||
test('three charts are rendered', async function(assert) { | ||
await visit('/'); | ||
|
||
assert.dom('[data-test-selector="chart"]').exists({ count: 3 }); | ||
}); | ||
}); |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,14 @@ | ||
import Controller from '@ember/controller'; | ||
|
||
import { computed } from '@ember/object'; | ||
export default class ApplicationController extends Controller { | ||
chartResOptions = [ | ||
['screen and (min-width: 640px)', { | ||
showArea: true, | ||
lineSmooth: false, | ||
|
||
export default Controller.extend({ | ||
chartResOptions: computed(function() { | ||
return [ | ||
['screen and (min-width: 640px)', { | ||
showArea: true, | ||
lineSmooth: false, | ||
|
||
axisX: { | ||
showLabel: false | ||
} | ||
}] | ||
]; | ||
}), | ||
}); | ||
axisX: { | ||
showLabel: 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,20 @@ | ||
<div class="container"> | ||
{{chartist-chart | ||
type="bar" | ||
data=model.chartData | ||
responsiveOptions=chartResOptions | ||
}} | ||
|
||
{{chart-fish-over-time}} | ||
<ChartistChart | ||
@type="bar" | ||
@data={{this.model.chartData}} | ||
@responsiveOptions={{this.chartResOptions}} | ||
data-test-selector="chart" | ||
data-test-id="bar" | ||
/> | ||
|
||
{{pie-i-like}} | ||
<div class="container"> | ||
<ChartFishOverTime | ||
@data={{this.data}} | ||
data-test-selector="chart" | ||
data-test-id="fish" | ||
/> | ||
</div> | ||
|
||
<PieILike | ||
data-test-selector="chart" | ||
data-test-id="pie" | ||
/> |
Oops, something went wrong.