-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
131 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import Component from '@ember/component'; | ||
|
||
export default Component.extend({ | ||
|
||
willDestroy() { | ||
this._super(...arguments); | ||
|
||
this.get('action')(); | ||
} | ||
|
||
}); |
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
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,29 +1,29 @@ | ||
.m0 { margin: 0; } | ||
.m1 { margin: 1rem; } | ||
.m2 { margin: 2rem; } | ||
.m3 { margin: 3rem; } | ||
.m4 { margin: 4rem; } | ||
.m0 { margin: 0 !important; } | ||
.m1 { margin: 1rem !important; } | ||
.m2 { margin: 2rem !important; } | ||
.m3 { margin: 3rem !important; } | ||
.m4 { margin: 4rem !important; } | ||
|
||
.mt0 { margin-top: 0rem; } | ||
.mt1 { margin-top: 1rem; } | ||
.mt2 { margin-top: 2rem; } | ||
.mt3 { margin-top: 3rem; } | ||
.mt4 { margin-top: 4rem; } | ||
.mt0 { margin-top: 0rem !important; } | ||
.mt1 { margin-top: 1rem !important; } | ||
.mt2 { margin-top: 2rem !important; } | ||
.mt3 { margin-top: 3rem !important; } | ||
.mt4 { margin-top: 4rem !important; } | ||
|
||
.mr0 { margin-right: 0rem; } | ||
.mr1 { margin-right: 1rem; } | ||
.mr2 { margin-right: 2rem; } | ||
.mr3 { margin-right: 3rem; } | ||
.mr4 { margin-right: 4rem; } | ||
.mr0 { margin-right: 0rem !important; } | ||
.mr1 { margin-right: 1rem !important; } | ||
.mr2 { margin-right: 2rem !important; } | ||
.mr3 { margin-right: 3rem !important; } | ||
.mr4 { margin-right: 4rem !important; } | ||
|
||
.ml0 { margin-left: 0rem; } | ||
.ml1 { margin-left: 1rem; } | ||
.ml2 { margin-left: 2rem; } | ||
.ml3 { margin-left: 3rem; } | ||
.ml4 { margin-left: 4rem; } | ||
.ml0 { margin-left: 0rem !important; } | ||
.ml1 { margin-left: 1rem !important; } | ||
.ml2 { margin-left: 2rem !important; } | ||
.ml3 { margin-left: 3rem !important; } | ||
.ml4 { margin-left: 4rem !important; } | ||
|
||
.mb0 { margin-bottom: 0rem; } | ||
.mb1 { margin-bottom: 1rem; } | ||
.mb2 { margin-bottom: 2rem; } | ||
.mb3 { margin-bottom: 3rem; } | ||
.mb4 { margin-bottom: 4rem; } | ||
.mb0 { margin-bottom: 0rem !important; } | ||
.mb1 { margin-bottom: 1rem !important; } | ||
.mb2 { margin-bottom: 2rem !important; } | ||
.mb3 { margin-bottom: 3rem !important; } | ||
.mb4 { margin-bottom: 4rem !important; } |
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 @@ | ||
{{yield}} |
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
24 changes: 24 additions & 0 deletions
24
tests/integration/components/gloss-message-disposable-test.js
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,24 @@ | ||
import { moduleForComponent, test } from 'ember-qunit'; | ||
import hbs from 'htmlbars-inline-precompile'; | ||
|
||
moduleForComponent('gloss-message-disposable', 'Integration | Component | gloss message disposable', { | ||
integration: true | ||
}); | ||
|
||
test('it renders', function(assert) { | ||
// Set any properties with this.set('myProperty', 'value'); | ||
// Handle any actions with this.on('myAction', function(val) { ... }); | ||
|
||
this.render(hbs`{{gloss-message-disposable}}`); | ||
|
||
assert.equal(this.$().text().trim(), ''); | ||
|
||
// Template block usage: | ||
this.render(hbs` | ||
{{#gloss-message-disposable}} | ||
template block text | ||
{{/gloss-message-disposable}} | ||
`); | ||
|
||
assert.equal(this.$().text().trim(), 'template block text'); | ||
}); |