Skip to content

Commit 7463b06

Browse files
authored
Merge pull request #5 from sQeeZ-scripting-language/4-update-documentation
4 update documentation
2 parents ae9bb64 + 2c8991e commit 7463b06

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
run: npm run build --prod -- --base-href /documentation/
3232

3333
deploy:
34+
if: github.event_name == 'push' || github.event_name == 'release'
3435
runs-on: ubuntu-latest
3536
steps:
3637
- name: Checkout code

src/app/app.component.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@
77
<img src="logo.jpg" alt="sQeeZ-Scripting-Language" routerLink="/" class="logo">
88
</div>
99
<div class="actions">
10-
<button mat-icon-button [matMenuTriggerFor]="menu" class="language-trigger">
10+
<button mat-icon-button (click)="toggleTheme()" [matTooltip]="currentTheme === 'light' ? translate('APP.DARK_MODE') : translate('APP.LIGHT_MODE')">
11+
<mat-icon> {{ currentTheme === 'light' ? 'light_mode' : 'dark_mode' }} </mat-icon>
12+
</button>
13+
<button mat-icon-button (click)="openPlayground()" matTooltip="Playground">
14+
<mat-icon>code</mat-icon>
15+
</button>
16+
<button mat-icon-button [matMenuTriggerFor]="menu" class="language-trigger" [matTooltip]="currentLanguage.name">
1117
<span [class]="'fi fi-' + currentLanguage.id"></span>
1218
</button>
1319
<mat-menu #menu="matMenu">
@@ -20,9 +26,6 @@
2026
}
2127
}
2228
</mat-menu>
23-
<button mat-icon-button (click)="toggleTheme()" [matTooltip]="currentTheme === 'light' ? translate('APP.DARK_MODE') : translate('APP.LIGHT_MODE')">
24-
<mat-icon> {{ currentTheme === 'light' ? 'light_mode' : 'dark_mode' }} </mat-icon>
25-
</button>
2629
</div>
2730
</mat-toolbar>
2831
<mat-sidenav-container class="sidenav-container" [style.marginTop.px]="mobileQuery.matches ? 56 : 0">

src/app/app.component.scss

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ mat-expansion-panel {
110110
}
111111

112112
:host-context(.light-theme) {
113+
--mat-expansion-header-indicator-color: var(--font-color);
114+
113115
button {
114116
color: var(--font-color);
115117
}

src/app/app.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,10 @@ export class AppComponent implements OnInit, OnDestroy {
6464
this.mobileQuery.removeListener(this._mobileQueryListener);
6565
}
6666

67+
openPlayground(): void {
68+
window.location.href = 'https://sqeez-scripting-language.github.io/playground/';
69+
}
70+
6771
setLanguage(language: Language): void {
6872
this.currentLanguage = language;
6973
this.translateService.use(this.currentLanguage.id);

0 commit comments

Comments
 (0)