Skip to content

Commit bbf4576

Browse files
Use colocated components (#934)
* Start removing ember-get-config * Remove magic auto export, add adapters to app * Add api components to exports * Use colocated components * Fix imports * Reset lots of things * Update x-import-path.hbs * Fix lint
1 parent ed004b5 commit bbf4576

File tree

125 files changed

+210
-298
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

125 files changed

+210
-298
lines changed
File renamed without changes.

addon/components/api/x-class/component.js renamed to addon/components/api/x-class/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@ import config from 'ember-get-config';
77

88
const { showImportPaths } = config['ember-cli-addon-docs'];
99

10-
import layout from './template';
11-
1210
export default Component.extend({
13-
layout,
1411
tagName: '',
1512

1613
showImportPaths,

addon/components/api/x-component/component.js renamed to addon/components/api/x-component/index.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@ import { alias, or } from '@ember/object/computed';
44
import { capitalize } from '@ember/string';
55
import { memberFilter } from '../../../utils/computed';
66

7-
import layout from './template';
8-
97
export default Component.extend({
10-
layout,
118
tagName: '',
129

1310
showInherited: false,
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<div class="import-path docs-mb-6" data-test-import-path>
2+
<pre class="docs-md__code docs-whitespace-no-wrap">
3+
<span class="hljs-keyword">
4+
import
5+
</span>
6+
7+
{{#if (eq @item.exportType "default")}}
8+
{{@item.name}}
9+
{{else}}
10+
{ {{@item.name}} }
11+
{{/if}}
12+
13+
<span class="hljs-keyword">
14+
from
15+
</span>
16+
<span class="hljs-string">'{{@item.file}}'</span>;
17+
</pre>
18+
</div>

addon/components/api/x-import-path/component.js

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<h4 class="docs-mb-2 docs-text-grey docs-font-bold docs-tracking-wide docs-uppercase docs-text-xxs">
2+
{{yield}}
3+
</h4>

addon/components/api/x-meta-panel/header/component.js

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
1-
import { hbs } from 'ember-cli-htmlbars';
2-
import Component from '@ember/component';
3-
4-
export default Component.extend({
5-
tagName: '',
6-
layout: hbs`
71
<div class="docs-px-6 docs-pt-3 docs-mt-4 docs-border docs-border-grey-light docs-rounded docs-text-xs">
82
{{yield (hash
93
header=(component 'api/x-meta-panel/header')
104
)}}
11-
</div>
12-
`,
13-
});
5+
</div>

addon/components/api/x-module/component.js

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)