Skip to content

Commit b6dce3e

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

File tree

18 files changed

+151
-154
lines changed

18 files changed

+151
-154
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: 18 additions & 18 deletions
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>
@@ -1426,8 +1426,8 @@
14261426
<Hds::Form::TextInput::Base @type="search" placeholder="Narrow results" />
14271427
</Hds::Dropdown::Header>
14281428
<ul class="hds-dropdown__list">
1429-
<Hds::Dropdown::ListItem::Interactive @route="components">Create</Hds::Dropdown::ListItem::Interactive>
1430-
<Hds::Dropdown::ListItem::Interactive @route="components">Edit</Hds::Dropdown::ListItem::Interactive>
1429+
<Hds::Dropdown::ListItem::Interactive @route="cp">Create</Hds::Dropdown::ListItem::Interactive>
1430+
<Hds::Dropdown::ListItem::Interactive @route="cp">Edit</Hds::Dropdown::ListItem::Interactive>
14311431
</ul>
14321432
</div>
14331433
</SF.Item>
@@ -1437,8 +1437,8 @@
14371437
<Hds::Link::Standalone @icon="list" @text="Organizations" @color="secondary" @href="#" />
14381438
</Hds::Dropdown::Header>
14391439
<ul class="hds-dropdown__list">
1440-
<Hds::Dropdown::ListItem::Interactive @route="components">Create</Hds::Dropdown::ListItem::Interactive>
1441-
<Hds::Dropdown::ListItem::Interactive @route="components">Edit</Hds::Dropdown::ListItem::Interactive>
1440+
<Hds::Dropdown::ListItem::Interactive @route="cp">Create</Hds::Dropdown::ListItem::Interactive>
1441+
<Hds::Dropdown::ListItem::Interactive @route="cp">Edit</Hds::Dropdown::ListItem::Interactive>
14421442
</ul>
14431443
</div>
14441444
</SF.Item>
@@ -1488,9 +1488,9 @@
14881488
<SF.Item @label="Button">
14891489
<div class="hds-dropdown__content">
14901490
<ul class="hds-dropdown__list">
1491-
<Hds::Dropdown::ListItem::Interactive @route="components">Organization A</Hds::Dropdown::ListItem::Interactive>
1492-
<Hds::Dropdown::ListItem::Interactive @route="components">Organization B</Hds::Dropdown::ListItem::Interactive>
1493-
<Hds::Dropdown::ListItem::Interactive @route="components">Organization C</Hds::Dropdown::ListItem::Interactive>
1491+
<Hds::Dropdown::ListItem::Interactive @route="cp">Organization A</Hds::Dropdown::ListItem::Interactive>
1492+
<Hds::Dropdown::ListItem::Interactive @route="cp">Organization B</Hds::Dropdown::ListItem::Interactive>
1493+
<Hds::Dropdown::ListItem::Interactive @route="cp">Organization C</Hds::Dropdown::ListItem::Interactive>
14941494
</ul>
14951495
<Hds::Dropdown::Footer @hasDivider={{true}}>
14961496
<Hds::Button @text="Apply filters" @isFullWidth={{true}} @size="small" />
@@ -1500,9 +1500,9 @@
15001500
<SF.Item @label="Link">
15011501
<div class="hds-dropdown__content">
15021502
<ul class="hds-dropdown__list">
1503-
<Hds::Dropdown::ListItem::Interactive @route="components">Organization A</Hds::Dropdown::ListItem::Interactive>
1504-
<Hds::Dropdown::ListItem::Interactive @route="components">Organization B</Hds::Dropdown::ListItem::Interactive>
1505-
<Hds::Dropdown::ListItem::Interactive @route="components">Organization C</Hds::Dropdown::ListItem::Interactive>
1503+
<Hds::Dropdown::ListItem::Interactive @route="cp">Organization A</Hds::Dropdown::ListItem::Interactive>
1504+
<Hds::Dropdown::ListItem::Interactive @route="cp">Organization B</Hds::Dropdown::ListItem::Interactive>
1505+
<Hds::Dropdown::ListItem::Interactive @route="cp">Organization C</Hds::Dropdown::ListItem::Interactive>
15061506
</ul>
15071507
<Hds::Dropdown::Footer @hasDivider={{true}}>
15081508
<Hds::Link::Standalone @icon="list" @text="Organizations" @color="secondary" @href="#" />
@@ -1545,7 +1545,7 @@
15451545
<Shw::Placeholder @text="generic header content" @width="200" @height="36" @background="#e1f5fe" />
15461546
</Hds::Dropdown::Header>
15471547
<ul class="hds-dropdown__list">
1548-
<Hds::Dropdown::ListItem::Interactive @route="components">Interactive for testing</Hds::Dropdown::ListItem::Interactive>
1548+
<Hds::Dropdown::ListItem::Interactive @route="cp">Interactive for testing</Hds::Dropdown::ListItem::Interactive>
15491549
<Hds::Dropdown::ListItem::Generic>
15501550
<Shw::Placeholder @text="generic item content" @height="36" @background="#e1f5fe" />
15511551
</Hds::Dropdown::ListItem::Generic>
@@ -1571,9 +1571,9 @@
15711571
<Hds::Form::TextInput::Base @type="search" placeholder="Narrow results" />
15721572
</Hds::Dropdown::Header>
15731573
<ul class="hds-dropdown__list">
1574-
<Hds::Dropdown::ListItem::Interactive @route="components">Organization A</Hds::Dropdown::ListItem::Interactive>
1575-
<Hds::Dropdown::ListItem::Interactive @route="components">Organization B</Hds::Dropdown::ListItem::Interactive>
1576-
<Hds::Dropdown::ListItem::Interactive @route="components">Organization C</Hds::Dropdown::ListItem::Interactive>
1574+
<Hds::Dropdown::ListItem::Interactive @route="cp">Organization A</Hds::Dropdown::ListItem::Interactive>
1575+
<Hds::Dropdown::ListItem::Interactive @route="cp">Organization B</Hds::Dropdown::ListItem::Interactive>
1576+
<Hds::Dropdown::ListItem::Interactive @route="cp">Organization C</Hds::Dropdown::ListItem::Interactive>
15771577
</ul>
15781578
<Hds::Dropdown::Footer @hasDivider={{true}}>
15791579
<Hds::ButtonSet>
@@ -1590,9 +1590,9 @@
15901590
<Hds::Form::TextInput::Base @type="search" placeholder="Narrow results" />
15911591
</Hds::Dropdown::Header>
15921592
<ul class="hds-dropdown__list">
1593-
<Hds::Dropdown::ListItem::Interactive @route="components">Organization A</Hds::Dropdown::ListItem::Interactive>
1594-
<Hds::Dropdown::ListItem::Interactive @route="components">Organization B</Hds::Dropdown::ListItem::Interactive>
1595-
<Hds::Dropdown::ListItem::Interactive @route="components">Organization C</Hds::Dropdown::ListItem::Interactive>
1593+
<Hds::Dropdown::ListItem::Interactive @route="cp">Organization A</Hds::Dropdown::ListItem::Interactive>
1594+
<Hds::Dropdown::ListItem::Interactive @route="cp">Organization B</Hds::Dropdown::ListItem::Interactive>
1595+
<Hds::Dropdown::ListItem::Interactive @route="cp">Organization C</Hds::Dropdown::ListItem::Interactive>
15961596
</ul>
15971597
<Hds::Dropdown::Footer @hasDivider={{true}}>
15981598
<Hds::Link::Standalone @icon="plus" @text="Add organization" @href="#" />

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>

0 commit comments

Comments
 (0)