Skip to content

Commit 9a4a7bf

Browse files
author
shleewhite
committed
continue work
1 parent fac2f05 commit 9a4a7bf

Some content is hidden

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

53 files changed

+368
-291
lines changed

pnpm-lock.yaml

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/app/components/doc/badge/index.gts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default class DocBadge extends Component<DocBadgeSignature> {
5353
}
5454

5555
get classNames() {
56-
let classes = ['doc-badge'];
56+
const classes = ['doc-badge'];
5757

5858
classes.push(`doc-badge--type-${this.type}`);
5959
classes.push(`doc-badge--size-${this.size}`);

website/app/components/doc/banner/index.gts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default class DocBanner extends Component<DocBannerComponentSignature> {
6969
}
7070

7171
get classNames() {
72-
let classes = ['doc-banner'];
72+
const classes = ['doc-banner'];
7373

7474
// add a class based on the @type argument
7575
classes.push(`doc-banner--type-${this.args.type}`);

website/app/components/doc/color-card/index.gts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
* Copyright IBM Corp. 2021, 2025
33
* SPDX-License-Identifier: MPL-2.0
44
*/
5+
56
import Component from '@glimmer/component';
67
import { htmlSafe } from '@ember/template';
78

@@ -14,9 +15,6 @@ interface ColorCardSignature {
1415
value: string;
1516
};
1617
};
17-
Blocks: {
18-
default: [];
19-
};
2018
Element: HTMLDivElement;
2119
}
2220

website/app/components/doc/do-dont/index.gts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default class DocDoDont extends Component<DocDoDontSignature> {
3232
}
3333

3434
get classNames() {
35-
let classes = ['doc-do-dont'];
35+
const classes = ['doc-do-dont'];
3636

3737
classes.push(`doc-do-dont--type-${this.args.type}`);
3838

website/app/components/doc/layout/index.gts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export const ALIGNMENTS = ['left', 'right', 'center', 'justify'];
1414
type Alignment = (typeof ALIGNMENTS)[number];
1515

1616
export const CSS_UNITS = ['px', 'rem', 'em', '%'];
17-
type CssUnit = (typeof CSS_UNITS)[number];
1817

1918
// sanitize & validate custom spacing value:
2019
const regExStr =
@@ -35,7 +34,7 @@ interface DocLayoutSignature {
3534

3635
export default class DocLayout extends Component<DocLayoutSignature> {
3736
get direction() {
38-
let { direction = 'horizontal' } = this.args;
37+
const { direction = 'horizontal' } = this.args;
3938

4039
assert(
4140
'@direction for "Doc::Layout" must have a valid value',
@@ -46,7 +45,7 @@ export default class DocLayout extends Component<DocLayoutSignature> {
4645
}
4746

4847
get spacing() {
49-
let { spacing } = this.args;
48+
const { spacing } = this.args;
5049

5150
assert(
5251
`@spacing for "Doc::Layout" must include a number and one of the following CSS units: ${CSS_UNITS.join(
@@ -63,7 +62,7 @@ export default class DocLayout extends Component<DocLayoutSignature> {
6362
}
6463

6564
get align() {
66-
let { align = 'left' } = this.args;
65+
const { align = 'left' } = this.args;
6766

6867
assert(
6968
'@align for "Doc::Layout" must have a valid value',
@@ -74,7 +73,7 @@ export default class DocLayout extends Component<DocLayoutSignature> {
7473
}
7574

7675
get classNames() {
77-
let classes = ['doc-layout'];
76+
const classes = ['doc-layout'];
7877

7978
classes.push(`doc-layout--direction-${this.direction}`);
8079
classes.push(`doc-layout--align-${this.align}`);

website/app/components/doc/link-with-icon/index.gts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export default class DocLinkWithIcon extends Component<DocLinkWithIconSignature>
4343
}
4444

4545
get classNames() {
46-
let classes = ['doc-link-with-icon'];
46+
const classes = ['doc-link-with-icon'];
4747

4848
if (this.args.isAnimated) {
4949
classes.push(`doc-link-with-icon--is-animated`);

website/app/components/doc/page/cover.gts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ interface DocPageCoverSignature {
3838

3939
export default class DocPageCover extends Component<DocPageCoverSignature> {
4040
get links() {
41-
let { extra } = this.args;
41+
const { extra } = this.args;
4242

4343
if (extra?.links) {
4444
return extra?.links;

website/app/components/doc/page/header/algolia-search/index.js renamed to website/app/components/doc/page/header/algolia-search/index.gts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,4 +274,11 @@ export default class DocAlgoliaSearchComponent extends Component {
274274
true,
275275
);
276276
}
277+
278+
<template>
279+
<div
280+
class="doc-algolia-search__autocomplete-container"
281+
{{did-insert this.didInsertSearchContainer}}
282+
></div>
283+
</template>
277284
}

website/app/components/doc/page/header/algolia-search/index.hbs

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

0 commit comments

Comments
 (0)