@@ -4,10 +4,12 @@ import TpkDashBoard, {
44 type SidebarItem ,
55} from ' @triptyk/ember-ui/components/prefabs/tpk-dashboard' ;
66import type { TOC } from ' @ember/component/template-only' ;
7- import ThemeSelector from ' doc-app /components/theme-selector' ;
7+ import TpkThemeSelector from ' @triptyk/ember-ui /components/prefabs/tpk- theme-selector' ;
88import { service } from ' @ember/service' ;
99import type { IntlService } from ' ember-intl' ;
1010import { action } from ' @ember/object' ;
11+ import GettingStartedIcon from ' doc-app/assets/icons/getting-started.gts' ;
12+ import InstallationIcon from ' doc-app/assets/icons/installation.gts' ;
1113
1214export default class DashboardTemplate extends Component {
1315 @service declare intl: IntlService ;
@@ -27,43 +29,17 @@ export default class DashboardTemplate extends Component {
2729 type: ' link' ,
2830 label: ' Getting Started' ,
2931 route: ' dashboard.docs.ember-input-validation.prefabs.input' ,
30- icon: <template >
31- <svg
32- xmlns =" http://www.w3.org/2000/svg"
33- fill =" none"
34- viewBox =" 0 0 24 24"
35- stroke-width =" 1.5"
36- stroke =" currentColor"
37- class =" size-4"
38- >
39- <path
40- stroke-linecap =" round"
41- stroke-linejoin =" round"
42- d =" M4.26 10.147a60.438 60.438 0 0 0-.491 6.347A48.62 48.62 0 0 1 12 20.904a48.62 48.62 0 0 1 8.232-4.41 60.46 60.46 0 0 0-.491-6.347m-15.482 0a50.636 50.636 0 0 0-2.658-.813A59.906 59.906 0 0 1 12 3.493a59.903 59.903 0 0 1 10.399 5.84c-.896.248-1.783.52-2.658.814m-15.482 0A50.717 50.717 0 0 1 12 13.489a50.702 50.702 0 0 1 7.74-3.342M6.75 15a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Zm0 0v-3.675A55.378 55.378 0 0 1 12 8.443m-7.007 11.55A5.981 5.981 0 0 0 6.75 15.75v-1.5"
43- />
44- </svg >
45- </template > as TOC <{ Element: SVGSVGElement }>,
32+ icon: <template ><GettingStartedIcon class =" size-4" /></template > as TOC <{
33+ Element: SVGSVGElement ;
34+ }>,
4635 },
4736 {
4837 type: ' link' ,
4938 label: ' Installation' ,
5039 route: ' dashboard.docs.ember-input-validation.prefabs.input' ,
51- icon: <template >
52- <svg
53- xmlns =" http://www.w3.org/2000/svg"
54- fill =" none"
55- viewBox =" 0 0 24 24"
56- stroke-width =" 1.5"
57- stroke =" currentColor"
58- class =" size-4"
59- >
60- <path
61- stroke-linecap =" round"
62- stroke-linejoin =" round"
63- d =" m9 12.75 3 3m0 0 3-3m-3 3v-7.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
64- />
65- </svg >
66- </template > as TOC <{ Element: SVGSVGElement }>,
40+ icon: <template ><InstallationIcon class =" size-4" /></template > as TOC <{
41+ Element: SVGSVGElement ;
42+ }>,
6743 },
6844 {
6945 type: ' group' ,
@@ -314,7 +290,7 @@ export default class DashboardTemplate extends Component {
314290 </svg >
315291 </a >
316292 </div >
317- <ThemeSelector />
293+ <TpkThemeSelector @ localStorageKey = " doc-app-theme " />
318294 </div >
319295 </: footer >
320296 <: content >
0 commit comments