-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Refactor <RenderMobiledoc> component to Glimmer - Drop ember-wormhole in favor of in-element helper (via ember-in-element-polyfill) - Drop support for looking up DOM document on old Ember versions - Update dependencies - Convert tests to use Glimmer components for cards and atoms - Drop dependencies on ember-fetch, rsvp and chai
- Loading branch information
Showing
27 changed files
with
279 additions
and
556 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
12 changes: 7 additions & 5 deletions
12
...templates/components/render-mobiledoc.hbs → .../components/render-mobiledoc/template.hbs
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,12 +1,14 @@ | ||
{{this.renderedMobiledoc}} | ||
<div ...attributes> | ||
{{this.renderedMobiledoc}} | ||
</div> | ||
|
||
{{#each this._componentCards as |card|}} | ||
{{#ember-wormhole to=card.destinationElementId}} | ||
{{#in-element card.destinationElement}} | ||
{{component card.componentName options=(readonly card.options) payload=(readonly card.payload)}} | ||
{{/ember-wormhole}} | ||
{{/in-element}} | ||
{{/each}} | ||
{{#each this._componentAtoms as |atom|}} | ||
{{#ember-wormhole to=atom.destinationElementId}} | ||
{{#in-element atom.destinationElement}} | ||
{{component atom.componentName options=(readonly atom.options) payload=(readonly atom.payload) value=(readonly atom.value)}} | ||
{{/ember-wormhole}} | ||
{{/in-element}} | ||
{{/each}} |
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 @@ | ||
export { default } from 'ember-mobiledoc-dom-renderer/components/render-mobiledoc/component'; |
2 changes: 1 addition & 1 deletion
2
app/components/render-mobiledoc.js → app/components/render-mobiledoc/template.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 |
---|---|---|
@@ -1 +1 @@ | ||
export { default } from 'ember-mobiledoc-dom-renderer/components/render-mobiledoc'; | ||
export { default } from 'ember-mobiledoc-dom-renderer/components/render-mobiledoc/template'; |
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,14 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "es6", | ||
"experimentalDecorators": true | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"bower_components", | ||
"tmp", | ||
"vendor", | ||
".git", | ||
"dist" | ||
] | ||
} |
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
8 changes: 8 additions & 0 deletions
8
tests/dummy/app/components/destroy-notifying-renderer/component.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,8 @@ | ||
import Component from 'ember-mobiledoc-dom-renderer/components/render-mobiledoc/component'; | ||
|
||
export default class extends Component { | ||
willDestroy() { | ||
this.args.onWillDestroy(); | ||
super.willDestroy(...arguments); | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
tests/dummy/app/components/destroy-notifying-renderer/template.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 @@ | ||
export { default } from 'ember-mobiledoc-dom-renderer/components/render-mobiledoc/template'; |
10 changes: 10 additions & 0 deletions
10
tests/dummy/app/components/name-changing-renderer/component.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,10 @@ | ||
import Component from 'ember-mobiledoc-dom-renderer/components/render-mobiledoc/component'; | ||
|
||
export default class extends Component { | ||
cardNameToComponentName(cardName) { | ||
return cardName.replace('sample', 'sample-changed-name'); | ||
} | ||
atomNameToComponentName(cardName) { | ||
return cardName.replace('sample', 'sample-changed-name'); | ||
} | ||
} |
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 @@ | ||
export { default } from 'ember-mobiledoc-dom-renderer/components/render-mobiledoc/template'; |
This file was deleted.
Oops, something went wrong.
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,3 @@ | ||
<div> | ||
<h3>sample!!!!!!! foo: {{@payload.foo}}</h3> | ||
</div> |
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.