1- < div class ="app-container "
2- (screenWidth) ="screenWidth = $event "
3- (screenHeight) ="screenHeight = $event "
4- appScreen
5- >
6- < app-toolbar [screenWidth] ="screenWidth "> </ app-toolbar >
7- < div class ="core ">
8- @if (screenWidth > = 992) {
9- < app-templates [screenWidth] ="screenWidth "> </ app-templates >
1+ < div class ="app-container " [class.is-mobile] ="mobileQuery.matches ">
2+ < mat-toolbar class ="toolbar ">
3+ < div class ="menu ">
4+ < button mat-icon-button (click) ="snav.toggle() ">
5+ < mat-icon > menu</ mat-icon >
6+ </ button >
7+ < img src ="logo.jpg " alt ="sQeeZ-Scripting-Language " class ="logo ">
8+ </ div >
9+ < div class ="actions ">
10+ < button mat-icon-button (click) ="toggleTheme() " [matTooltip] ="currentTheme === 'light' ? 'Dark Mode' : 'Light Mode' ">
11+ < mat-icon > {{ currentTheme === 'light' ? 'light_mode' : 'dark_mode' }} </ mat-icon >
12+ </ button >
13+ < button mat-icon-button (click) ="openDocumentation() " matTooltip ="Help ">
14+ < mat-icon > help</ mat-icon >
15+ </ button >
16+ < button mat-icon-button (click) ="openSettings() " matTooltip ="Settings ">
17+ < mat-icon > settings</ mat-icon >
18+ </ button >
19+ </ div >
20+ </ mat-toolbar >
21+ < mat-sidenav-container class ="sidenav-container " [style.marginTop.px] ="mobileQuery.matches ? 56 : 0 ">
22+ < mat-sidenav #snav [mode] ="mobileQuery.matches ? 'over' : 'side' " [fixedInViewport] ="mobileQuery.matches " fixedTopGap ="56 " opened ="false ">
23+ < h2 class ="heading "> Templates</ h2 >
24+ < mat-nav-list class ="table-of-contents ">
25+ @for (section of categories; track section) {
26+ < ng-container *ngTemplateOutlet ="renderContent; context: { $implicit: section } "> </ ng-container >
27+ }
28+ </ mat-nav-list >
29+ </ mat-sidenav >
30+ < mat-sidenav-content class ="sidenav-content ">
31+ < div class ="core ">
32+ < app-code > </ app-code >
33+ < app-console > </ app-console >
34+ </ div >
35+ </ mat-sidenav-content >
36+ </ mat-sidenav-container >
37+ </ div >
38+
39+ < ng-template #renderContent let-section >
40+ < mat-expansion-panel >
41+ < mat-expansion-panel-header >
42+ < mat-panel-title >
43+ < button mat-stroked-button color ="primary " class ="content-item ">
44+ {{ section.name }}
45+ </ button >
46+ </ mat-panel-title >
47+ </ mat-expansion-panel-header >
48+
49+ @for(subSection of section.templates; track subSection) {
50+ < mat-list-item >
51+ < button mat-stroked-button color ="primary " (click) ="showCode(subSection); snav.close() " class ="content-item ">
52+ {{ subSection.name }}
53+ </ button >
54+ </ mat-list-item >
1055 }
11- < app-code > </ app-code >
12- < app-console > </ app-console >
13- </ div >
14- </ div >
56+ </ mat-expansion-panel >
57+ </ ng-template >
0 commit comments