Skip to content

Commit 22c730c

Browse files
committed
rename all components. routes to cp.
1 parent 268dde7 commit 22c730c

File tree

18 files changed

+134
-137
lines changed

18 files changed

+134
-137
lines changed

showcase/app/controllers/components/code-block.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ func main2() {
5757
}
5858

5959
routeDidChange() {
60-
if (this.router.currentRoute.name === 'components.code-block') {
60+
if (this.router.currentRoute.name === 'cp.code-block') {
6161
// eslint-disable-next-line ember/no-runloop
6262
scheduleOnce('afterRender', this, replaceMockCopyStatus);
6363
}

showcase/app/controllers/components/copy/button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default class CopyButtonController extends Controller {
3636
}
3737

3838
routeDidChange() {
39-
if (this.router.currentRoute.name === 'components.copy.button') {
39+
if (this.router.currentRoute.name === 'cp.copy.button') {
4040
// eslint-disable-next-line ember/no-runloop
4141
scheduleOnce('afterRender', this, replaceMockCopyStatus);
4242
}

showcase/app/controllers/components/copy/snippet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export default class CopySnippetController extends Controller {
3333
}
3434

3535
routeDidChange() {
36-
if (this.router.currentRoute.name === 'components.copy.snippet') {
36+
if (this.router.currentRoute.name === 'cp.copy.snippet') {
3737
// eslint-disable-next-line ember/no-runloop
3838
scheduleOnce('afterRender', this, replaceMockCopyStatus);
3939
}

showcase/app/controllers/components/pagination/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export default class PaginationController extends Controller {
9999
// =============================
100100

101101
get demoRouteName() {
102-
// eg. 'components.pagination';
102+
// eg. 'cp.pagination';
103103
return this.router.currentRouteName;
104104
}
105105

showcase/app/templates/cp/advanced-table.hbs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -408,11 +408,11 @@
408408
<B.Td @align="right">
409409
<Hds::Dropdown @isInline={{true}} as |dd|>
410410
<dd.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
411-
<dd.Interactive @route="components.table">Create</dd.Interactive>
412-
<dd.Interactive @route="components.table">Read</dd.Interactive>
413-
<dd.Interactive @route="components.table">Update</dd.Interactive>
411+
<dd.Interactive @route="cp.table">Create</dd.Interactive>
412+
<dd.Interactive @route="cp.table">Read</dd.Interactive>
413+
<dd.Interactive @route="cp.table">Update</dd.Interactive>
414414
<dd.Separator />
415-
<dd.Interactive @route="components.table" @color="critical" @icon="trash">Delete</dd.Interactive>
415+
<dd.Interactive @route="cp.table" @color="critical" @icon="trash">Delete</dd.Interactive>
416416
</Hds::Dropdown>
417417
</B.Td>
418418
</B.Tr>
@@ -455,11 +455,11 @@
455455
<B.Td @align="right">
456456
<Hds::Dropdown @isInline={{true}} as |dd|>
457457
<dd.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
458-
<dd.Interactive @route="components.table">Create</dd.Interactive>
459-
<dd.Interactive @route="components.table">Read</dd.Interactive>
460-
<dd.Interactive @route="components.table">Update</dd.Interactive>
458+
<dd.Interactive @route="cp.table">Create</dd.Interactive>
459+
<dd.Interactive @route="cp.table">Read</dd.Interactive>
460+
<dd.Interactive @route="cp.table">Update</dd.Interactive>
461461
<dd.Separator />
462-
<dd.Interactive @route="components.table" @color="critical" @icon="trash">Delete</dd.Interactive>
462+
<dd.Interactive @route="cp.table" @color="critical" @icon="trash">Delete</dd.Interactive>
463463
</Hds::Dropdown>
464464
</B.Td>
465465
</B.Tr>
@@ -918,11 +918,11 @@
918918
<B.Td @align="right">
919919
<Hds::Dropdown @isInline={{true}} as |dd|>
920920
<dd.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
921-
<dd.Interactive @route="components.table">Create</dd.Interactive>
922-
<dd.Interactive @route="components.table">Read</dd.Interactive>
923-
<dd.Interactive @route="components.table">Update</dd.Interactive>
921+
<dd.Interactive @route="cp.table">Create</dd.Interactive>
922+
<dd.Interactive @route="cp.table">Read</dd.Interactive>
923+
<dd.Interactive @route="cp.table">Update</dd.Interactive>
924924
<dd.Separator />
925-
<dd.Interactive @route="components.table" @color="critical" @icon="trash">Delete</dd.Interactive>
925+
<dd.Interactive @route="cp.table" @color="critical" @icon="trash">Delete</dd.Interactive>
926926
</Hds::Dropdown>
927927
</B.Td>
928928
</B.Tr>
@@ -1692,19 +1692,19 @@
16921692
<Hds::AdvancedTable::Td @align="left">
16931693
<Hds::Dropdown @isInline={{true}} @listPosition="bottom-right" as |dd|>
16941694
<dd.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
1695-
<dd.Interactive @route="components.table">Dropdown</dd.Interactive>
1695+
<dd.Interactive @route="cp.table">Dropdown</dd.Interactive>
16961696
</Hds::Dropdown>
16971697
</Hds::AdvancedTable::Td>
16981698
<Hds::AdvancedTable::Td @align="center">
16991699
<Hds::Dropdown @isInline={{true}} @listPosition="bottom-right" as |dd|>
17001700
<dd.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
1701-
<dd.Interactive @route="components.table">Dropdown</dd.Interactive>
1701+
<dd.Interactive @route="cp.table">Dropdown</dd.Interactive>
17021702
</Hds::Dropdown>
17031703
</Hds::AdvancedTable::Td>
17041704
<Hds::AdvancedTable::Td @align="right">
17051705
<Hds::Dropdown @isInline={{true}} @listPosition="bottom-right" as |dd|>
17061706
<dd.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
1707-
<dd.Interactive @route="components.table">Dropdown</dd.Interactive>
1707+
<dd.Interactive @route="cp.table">Dropdown</dd.Interactive>
17081708
</Hds::Dropdown>
17091709
</Hds::AdvancedTable::Td>
17101710
</div>
@@ -1767,7 +1767,7 @@
17671767
<Hds::AdvancedTable::Td>
17681768
<Hds::Dropdown as |D|>
17691769
<D.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
1770-
<D.Interactive @route="components.table">Dropdown</D.Interactive>
1770+
<D.Interactive @route="cp.table">Dropdown</D.Interactive>
17711771
</Hds::Dropdown>
17721772
</Hds::AdvancedTable::Td>
17731773
<Hds::AdvancedTable::Td>
@@ -1816,7 +1816,7 @@
18161816
<Hds::AdvancedTable::Td>
18171817
<Hds::Dropdown as |D|>
18181818
<D.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
1819-
<D.Interactive @route="components.table">Dropdown</D.Interactive>
1819+
<D.Interactive @route="cp.table">Dropdown</D.Interactive>
18201820
</Hds::Dropdown>
18211821
</Hds::AdvancedTable::Td>
18221822
<Hds::AdvancedTable::Td>
@@ -1865,7 +1865,7 @@
18651865
<Hds::AdvancedTable::Td>
18661866
<Hds::Dropdown as |D|>
18671867
<D.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
1868-
<D.Interactive @route="components.table">Dropdown</D.Interactive>
1868+
<D.Interactive @route="cp.table">Dropdown</D.Interactive>
18691869
</Hds::Dropdown>
18701870
</Hds::AdvancedTable::Td>
18711871
<Hds::AdvancedTable::Td>

showcase/app/templates/cp/code-block.hbs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
<section data-test-percy>
1111
<Shw::Text::H2>Content</Shw::Text::H2>
1212

13-
1413
<Shw::Grid @columns={{2}} @gap="2rem" as |SG|>
1514
<SG.Item @label="one line">
1615
<Hds::CodeBlock @language="javascript" @ariaLabel="one line" @value="console.log('I am JavaScript code');" />

showcase/app/templates/cp/dropdown.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -541,7 +541,7 @@
541541
</SFI.Label>
542542
<div class="hds-dropdown__content">
543543
<ul class="hds-dropdown__list">
544-
<Hds::Dropdown::ListItem::Interactive @route="components.dropdown">
544+
<Hds::Dropdown::ListItem::Interactive @route="cp.dropdown">
545545
Lorem ipsum dolor
546546
</Hds::Dropdown::ListItem::Interactive>
547547
</ul>

showcase/app/templates/cp/link/standalone.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
<Shw::Flex as |SF|>
6161
{{#each @model.SIZES as |size|}}
6262
<SF.Item @label={{capitalize size}}>
63-
<Hds::Link::Standalone @icon="plus" @text="Lorem ipsum" @size={{size}} @route="components.link" />
63+
<Hds::Link::Standalone @icon="plus" @text="Lorem ipsum" @size={{size}} @route="cp.link" />
6464
</SF.Item>
6565
{{/each}}
6666
</Shw::Flex>

showcase/app/templates/cp/table.hbs

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,11 @@
184184
<B.Td @align="right">
185185
<Hds::Dropdown @isInline={{true}} as |dd|>
186186
<dd.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
187-
<dd.Interactive @route="components.table">Create</dd.Interactive>
188-
<dd.Interactive @route="components.table">Read</dd.Interactive>
189-
<dd.Interactive @route="components.table">Update</dd.Interactive>
187+
<dd.Interactive @route="cp.table">Create</dd.Interactive>
188+
<dd.Interactive @route="cp.table">Read</dd.Interactive>
189+
<dd.Interactive @route="cp.table">Update</dd.Interactive>
190190
<dd.Separator />
191-
<dd.Interactive @route="components.table" @color="critical" @icon="trash">Delete</dd.Interactive>
191+
<dd.Interactive @route="cp.table" @color="critical" @icon="trash">Delete</dd.Interactive>
192192
</Hds::Dropdown>
193193
</B.Td>
194194
</B.Tr>
@@ -235,11 +235,11 @@
235235
<B.Td @align="right">
236236
<Hds::Dropdown @isInline={{true}} as |dd|>
237237
<dd.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
238-
<dd.Interactive @route="components.table">Create</dd.Interactive>
239-
<dd.Interactive @route="components.table">Read</dd.Interactive>
240-
<dd.Interactive @route="components.table">Update</dd.Interactive>
238+
<dd.Interactive @route="cp.table">Create</dd.Interactive>
239+
<dd.Interactive @route="cp.table">Read</dd.Interactive>
240+
<dd.Interactive @route="cp.table">Update</dd.Interactive>
241241
<dd.Separator />
242-
<dd.Interactive @route="components.table" @color="critical" @icon="trash">Delete</dd.Interactive>
242+
<dd.Interactive @route="cp.table" @color="critical" @icon="trash">Delete</dd.Interactive>
243243
</Hds::Dropdown>
244244
</B.Td>
245245
</B.Tr>
@@ -295,11 +295,11 @@
295295
<B.Td @align="right">
296296
<Hds::Dropdown @isInline={{true}} as |dd|>
297297
<dd.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
298-
<dd.Interactive @route="components.table">Create</dd.Interactive>
299-
<dd.Interactive @route="components.table">Read</dd.Interactive>
300-
<dd.Interactive @route="components.table">Update</dd.Interactive>
298+
<dd.Interactive @route="cp.table">Create</dd.Interactive>
299+
<dd.Interactive @route="cp.table">Read</dd.Interactive>
300+
<dd.Interactive @route="cp.table">Update</dd.Interactive>
301301
<dd.Separator />
302-
<dd.Interactive @route="components.table" @color="critical" @icon="trash">Delete</dd.Interactive>
302+
<dd.Interactive @route="cp.table" @color="critical" @icon="trash">Delete</dd.Interactive>
303303
</Hds::Dropdown>
304304
</B.Td>
305305
</B.Tr>
@@ -357,11 +357,11 @@
357357
<B.Td @align="right">
358358
<Hds::Dropdown @isInline={{true}} as |dd|>
359359
<dd.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
360-
<dd.Interactive @route="components.table">Create</dd.Interactive>
361-
<dd.Interactive @route="components.table">Read</dd.Interactive>
362-
<dd.Interactive @route="components.table">Update</dd.Interactive>
360+
<dd.Interactive @route="cp.table">Create</dd.Interactive>
361+
<dd.Interactive @route="cp.table">Read</dd.Interactive>
362+
<dd.Interactive @route="cp.table">Update</dd.Interactive>
363363
<dd.Separator />
364-
<dd.Interactive @route="components.table" @color="critical" @icon="trash">Delete</dd.Interactive>
364+
<dd.Interactive @route="cp.table" @color="critical" @icon="trash">Delete</dd.Interactive>
365365
</Hds::Dropdown>
366366
</B.Td>
367367
</B.Tr>
@@ -968,11 +968,11 @@
968968
<B.Td @align="right">
969969
<Hds::Dropdown @isInline={{true}} as |dd|>
970970
<dd.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
971-
<dd.Interactive @route="components.table">Create</dd.Interactive>
972-
<dd.Interactive @route="components.table">Read</dd.Interactive>
973-
<dd.Interactive @route="components.table">Update</dd.Interactive>
971+
<dd.Interactive @route="cp.table">Create</dd.Interactive>
972+
<dd.Interactive @route="cp.table">Read</dd.Interactive>
973+
<dd.Interactive @route="cp.table">Update</dd.Interactive>
974974
<dd.Separator />
975-
<dd.Interactive @route="components.table" @color="critical" @icon="trash">Delete</dd.Interactive>
975+
<dd.Interactive @route="cp.table" @color="critical" @icon="trash">Delete</dd.Interactive>
976976
</Hds::Dropdown>
977977
</B.Td>
978978
</B.Tr>
@@ -1665,19 +1665,19 @@
16651665
<B.Td @align="left">
16661666
<Hds::Dropdown @isInline={{true}} @listPosition="bottom-right" as |dd|>
16671667
<dd.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
1668-
<dd.Interactive @route="components.table">Dropdown</dd.Interactive>
1668+
<dd.Interactive @route="cp.table">Dropdown</dd.Interactive>
16691669
</Hds::Dropdown>
16701670
</B.Td>
16711671
<B.Td @align="center">
16721672
<Hds::Dropdown @isInline={{true}} as |dd|>
16731673
<dd.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
1674-
<dd.Interactive @route="components.table">Dropdown</dd.Interactive>
1674+
<dd.Interactive @route="cp.table">Dropdown</dd.Interactive>
16751675
</Hds::Dropdown>
16761676
</B.Td>
16771677
<B.Td @align="right">
16781678
<Hds::Dropdown @isInline={{true}} as |dd|>
16791679
<dd.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
1680-
<dd.Interactive @route="components.table">Dropdown</dd.Interactive>
1680+
<dd.Interactive @route="cp.table">Dropdown</dd.Interactive>
16811681
</Hds::Dropdown>
16821682
</B.Td>
16831683
</B.Tr>
@@ -1735,7 +1735,7 @@
17351735
<B.Td>
17361736
<Hds::Dropdown as |D|>
17371737
<D.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
1738-
<D.Interactive @route="components.table">Dropdown</D.Interactive>
1738+
<D.Interactive @route="cp.table">Dropdown</D.Interactive>
17391739
</Hds::Dropdown>
17401740
</B.Td>
17411741
<B.Td>
@@ -1777,7 +1777,7 @@
17771777
<B.Td>
17781778
<Hds::Dropdown as |D|>
17791779
<D.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
1780-
<D.Interactive @route="components.table">Dropdown</D.Interactive>
1780+
<D.Interactive @route="cp.table">Dropdown</D.Interactive>
17811781
</Hds::Dropdown>
17821782
</B.Td>
17831783
<B.Td>
@@ -1819,7 +1819,7 @@
18191819
<B.Td>
18201820
<Hds::Dropdown as |D|>
18211821
<D.ToggleIcon @icon="more-horizontal" @text="Overflow Options" @hasChevron={{false}} @size="small" />
1822-
<D.Interactive @route="components.table">Dropdown</D.Interactive>
1822+
<D.Interactive @route="cp.table">Dropdown</D.Interactive>
18231823
</Hds::Dropdown>
18241824
</B.Td>
18251825
<B.Td>

showcase/app/templates/cp/tag.hbs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
<Hds::Tag @text="My text tag" />
2020
</SF.Item>
2121
<SF.Item>
22-
<Hds::Tag @text="My link tag" @onDismiss={{this.noop}} @route="components.tag" />
22+
<Hds::Tag @text="My link tag" @onDismiss={{this.noop}} @route="cp.tag" />
2323
</SF.Item>
2424
<SF.Item>
25-
<Hds::Tag @text="My link tag" @route="components.tag" />
25+
<Hds::Tag @text="My link tag" @route="cp.tag" />
2626
</SF.Item>
2727
</Shw::Flex>
2828

@@ -43,11 +43,11 @@
4343
<Hds::Tag
4444
@text="This is a very long text that should go on multiple lines"
4545
@onDismiss={{this.noop}}
46-
@route="components.tag"
46+
@route="cp.tag"
4747
/>
4848
</SF.Item>
4949
<SF.Item>
50-
<Hds::Tag @text="This is a very long text that should go on multiple lines" @route="components.tag" />
50+
<Hds::Tag @text="This is a very long text that should go on multiple lines" @route="cp.tag" />
5151
</SF.Item>
5252
</Shw::Flex>
5353

@@ -78,7 +78,7 @@
7878
@color={{color}}
7979
@text="My link tag"
8080
@onDismiss={{this.noop}}
81-
@route="components.tag"
81+
@route="cp.tag"
8282
mock-state-value={{state}}
8383
mock-state-selector="button"
8484
/>
@@ -88,7 +88,7 @@
8888
@color={{color}}
8989
@text="My link tag"
9090
@onDismiss={{this.noop}}
91-
@route="components.tag"
91+
@route="cp.tag"
9292
mock-state-value={{state}}
9393
mock-state-selector="a"
9494
/>
@@ -97,7 +97,7 @@
9797
<Hds::Tag
9898
@color={{color}}
9999
@text="My link tag"
100-
@route="components.tag"
100+
@route="cp.tag"
101101
mock-state-value={{state}}
102102
mock-state-selector="a"
103103
/>
@@ -156,7 +156,7 @@
156156
</SF.Item>
157157
<SF.Item>
158158
<div class="shw-component-tag-inheritance-font-style">
159-
<Hds::Tag @text="My link tag" @onDismiss={{this.noop}} @route="components.tag" />
159+
<Hds::Tag @text="My link tag" @onDismiss={{this.noop}} @route="cp.tag" />
160160
</div>
161161
</SF.Item>
162162
<SF.Item>
@@ -169,7 +169,7 @@
169169
<Hds::Tag
170170
@text="This is a very long text that should go on multiple lines"
171171
@onDismiss={{this.noop}}
172-
@route="components.tag"
172+
@route="cp.tag"
173173
/>
174174
</div>
175175
</SF.Item>
@@ -187,7 +187,7 @@
187187
<Hds::Tag
188188
@text="My link tag"
189189
@onDismiss={{this.noop}}
190-
@route="components.tag"
190+
@route="cp.tag"
191191
class="shw-component-tag-inheritance-font-style shw-component-tag-inheritance-background-color"
192192
/>
193193
</SF.Item>
@@ -202,7 +202,7 @@
202202
<Hds::Tag
203203
@text="This is a very long text that should go on multiple lines"
204204
@onDismiss={{this.noop}}
205-
@route="components.tag"
205+
@route="cp.tag"
206206
class="shw-component-tag-inheritance-font-style shw-component-tag-inheritance-background-color"
207207
/>
208208
</SF.Item>

0 commit comments

Comments
 (0)