-
-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start converting to native classes (#671)
* Start converting to native classes * Fix lint
- Loading branch information
1 parent
7fa76e7
commit e56e457
Showing
13 changed files
with
412 additions
and
153 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
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,13 +1,14 @@ | ||
import classic from 'ember-classic-decorator'; | ||
import { classNames, layout as templateLayout } from '@ember-decorators/component'; | ||
import Component from '@ember/component'; | ||
import layout from './template'; | ||
|
||
export default Component.extend({ | ||
layout, | ||
|
||
classNames: 'docs-p-4', | ||
|
||
@classic | ||
@templateLayout(layout) | ||
@classNames('docs-p-4') | ||
export default class XExample extends Component { | ||
init() { | ||
this._super(...arguments); | ||
super.init(...arguments); | ||
this.set('elementId', 'example-' + this.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
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
10 changes: 6 additions & 4 deletions
10
addon/components/docs-viewer/x-autogenerated-api-docs/module-nav/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 |
---|---|---|
@@ -1,10 +1,12 @@ | ||
import classic from 'ember-classic-decorator'; | ||
import { tagName, layout as templateLayout } from '@ember-decorators/component'; | ||
import Component from '@ember/component'; | ||
import layout from './template'; | ||
|
||
/* | ||
A component used to recursively render a nested structure of module nodes. | ||
*/ | ||
export default Component.extend({ | ||
layout, | ||
tagName: '' | ||
}); | ||
@classic | ||
@templateLayout(layout) | ||
@tagName('') | ||
export default class ModuleNav extends Component {} |
13 changes: 6 additions & 7 deletions
13
addon/components/docs-viewer/x-current-page-index/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 |
---|---|---|
@@ -1,10 +1,9 @@ | ||
import classic from 'ember-classic-decorator'; | ||
import { tagName, layout as templateLayout } from '@ember-decorators/component'; | ||
import Component from '@ember/component'; | ||
import layout from './template'; | ||
|
||
export default Component.extend({ | ||
|
||
layout, | ||
|
||
tagName: '', | ||
|
||
}); | ||
@classic | ||
@templateLayout(layout) | ||
@tagName('') | ||
export default class XCurrentPageIndex extends Component {} |
Oops, something went wrong.