Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for HTML, CSS and JSON to Prettier [#539]
- Loading branch information
Showing
20 changed files
with
718 additions
and
464 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 29 additions & 36 deletions
65
comixed-web/src/app/components/navigation-bar/navigation-bar.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,66 @@ | ||
<mat-toolbar class="cx-width-100"> | ||
<button *ngIf="!user" | ||
mat-icon-button | ||
color="primary" | ||
[matTooltip]="'user.login-user.login-tooltip' | translate" | ||
(click)="onLogin()"> | ||
<button | ||
*ngIf="!user" | ||
mat-icon-button | ||
color="primary" | ||
[matTooltip]="'user.login-user.login-tooltip' | translate" | ||
(click)="onLogin()" | ||
> | ||
<mat-icon>login</mat-icon> | ||
</button> | ||
<button *ngIf="!!user" | ||
mat-icon-button | ||
[matMenuTriggerFor]="menu"> | ||
<button *ngIf="!!user" mat-icon-button [matMenuTriggerFor]="menu"> | ||
<mat-icon>more_vert</mat-icon> | ||
</button> | ||
<mat-label class="cx-spacer">ComiXed</mat-label> | ||
<mat-label *ngIf="!!user"> | ||
{{ 'app.logged-in' | translate: {email: user.email} }} | ||
<button mat-icon-button | ||
color="warn" | ||
[matTooltip]="'user.login-user.logout-tooltip' | translate" | ||
(click)="onLogout()"> | ||
{{ "app.logged-in" | translate: { email: user.email } }} | ||
<button | ||
mat-icon-button | ||
color="warn" | ||
[matTooltip]="'user.login-user.logout-tooltip' | translate" | ||
(click)="onLogout()" | ||
> | ||
<mat-icon>logout</mat-icon> | ||
</button> | ||
</mat-label> | ||
</mat-toolbar> | ||
|
||
<mat-menu #menu="matMenu"> | ||
<button *ngIf="isReader" | ||
mat-menu-item | ||
[matMenuTriggerFor]="libraryMenu"> | ||
<button *ngIf="isReader" mat-menu-item [matMenuTriggerFor]="libraryMenu"> | ||
<mat-icon>local_library</mat-icon> | ||
<mat-label>{{ 'menu.library-menu.root' | translate }}</mat-label> | ||
<mat-label>{{ "menu.library-menu.root" | translate }}</mat-label> | ||
</button> | ||
<button *ngIf="isAdmin" | ||
mat-menu-item | ||
[matMenuTriggerFor]="adminMenu"> | ||
<button *ngIf="isAdmin" mat-menu-item [matMenuTriggerFor]="adminMenu"> | ||
<mat-icon>admin_panel_settings</mat-icon> | ||
<mat-label>{{ 'menu.admin-menu.root' | translate }}</mat-label> | ||
<mat-label>{{ "menu.admin-menu.root" | translate }}</mat-label> | ||
</button> | ||
<button *ngIf="isReader" | ||
mat-menu-item | ||
[matMenuTriggerFor]="optionsMenu"> | ||
<button *ngIf="isReader" mat-menu-item [matMenuTriggerFor]="optionsMenu"> | ||
<mat-icon>settings</mat-icon> | ||
<mat-label>{{ 'menu.options-menu.root' | translate }}</mat-label> | ||
<mat-label>{{ "menu.options-menu.root" | translate }}</mat-label> | ||
</button> | ||
</mat-menu> | ||
|
||
<mat-menu #libraryMenu="matMenu"> | ||
<button mat-menu-item | ||
[routerLink]="['library']"> | ||
<button mat-menu-item [routerLink]="['library']"> | ||
<mat-icon>library_books</mat-icon> | ||
<mat-label>{{ 'menu.library-menu.all-comics' | translate }}</mat-label> | ||
<mat-label>{{ "menu.library-menu.all-comics" | translate }}</mat-label> | ||
</button> | ||
</mat-menu> | ||
|
||
<mat-menu #adminMenu="matMenu"> | ||
<button mat-menu-item | ||
[routerLink]="['admin', 'import']"> | ||
<button mat-menu-item [routerLink]="['admin', 'import']"> | ||
<mat-icon>import_export</mat-icon> | ||
<mat-label>{{ | ||
'menu.admin-menu.import-comic-files' | translate | ||
}}</mat-label> | ||
"menu.admin-menu.import-comic-files" | translate | ||
}}</mat-label> | ||
</button> | ||
</mat-menu> | ||
|
||
<mat-menu #optionsMenu="matMenu"> | ||
<button mat-menu-item | ||
(click)="onShowDisplayOptions()"> | ||
<button mat-menu-item (click)="onShowDisplayOptions()"> | ||
<mat-icon>tv</mat-icon> | ||
<mat-label>{{ | ||
'menu.options-menu.show-options-panel' | translate | ||
}}</mat-label> | ||
"menu.options-menu.show-options-panel" | translate | ||
}}</mat-label> | ||
</button> | ||
</mat-menu> |
37 changes: 20 additions & 17 deletions
37
comixed-web/src/app/core/components/comic-detail-card/comic-detail-card.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,24 @@ | ||
<mat-card [style.width]="imageWidth" | ||
[style.height]="imageHeight"> | ||
<mat-card-title class="cx-text-nowrap">{{title}}</mat-card-title> | ||
<mat-card-subtitle *ngIf="detailLink"><a [routerLink]="detailLink">{{"text.view-details"|translate}}</a> | ||
<mat-card [style.width]="imageWidth" [style.height]="imageHeight"> | ||
<mat-card-title class="cx-text-nowrap">{{ title }}</mat-card-title> | ||
<mat-card-subtitle *ngIf="detailLink" | ||
><a [routerLink]="detailLink">{{ "text.view-details" | translate }}</a> | ||
</mat-card-subtitle> | ||
<mat-card-content> | ||
<img *ngIf="!!imageUrl" | ||
[class.comic-detail-card-blurred]="blurred" | ||
[src]="imageUrl" | ||
[style.width]="'100%'" | ||
[style.height]="'auto'" | ||
[alt]="title"/> | ||
<div *ngIf="!!description" | ||
[innerHTML]="description"></div> | ||
<mat-progress-spinner *ngIf="busy" | ||
class="comic-detail-card-busy-indicator" | ||
diameter="100" | ||
mode="indeterminate" | ||
color="accent"></mat-progress-spinner> | ||
<img | ||
*ngIf="!!imageUrl" | ||
[class.comic-detail-card-blurred]="blurred" | ||
[src]="imageUrl" | ||
[style.width]="'100%'" | ||
[style.height]="'auto'" | ||
[alt]="title" | ||
/> | ||
<div *ngIf="!!description" [innerHTML]="description"></div> | ||
<mat-progress-spinner | ||
*ngIf="busy" | ||
class="comic-detail-card-busy-indicator" | ||
diameter="100" | ||
mode="indeterminate" | ||
color="accent" | ||
></mat-progress-spinner> | ||
</mat-card-content> | ||
</mat-card> |
14 changes: 8 additions & 6 deletions
14
comixed-web/src/app/core/components/comic-page/comic-page.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
<mat-card> | ||
<mat-card-title>{{imageTitle}}</mat-card-title> | ||
<mat-card-title>{{ imageTitle }}</mat-card-title> | ||
<mat-card-content> | ||
<img [src]="imageUrl" | ||
[alt]="imageUrl" | ||
[style.height]="imageHeight" | ||
[style.width]="imageWidth" | ||
(click)="onClick()"/> | ||
<img | ||
[src]="imageUrl" | ||
[alt]="imageUrl" | ||
[style.height]="imageHeight" | ||
[style.width]="imageWidth" | ||
(click)="onClick()" | ||
/> | ||
</mat-card-content> | ||
</mat-card> |
16 changes: 6 additions & 10 deletions
16
comixed-web/src/app/core/components/confirmation/confirmation.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
<h1 mat-dialog-title> | ||
{{title}} | ||
{{ title }} | ||
</h1> | ||
|
||
<div mat-dialog-content> | ||
<p>{{message}}</p> | ||
<p>{{ message }}</p> | ||
</div> | ||
|
||
<div mat-dialog-actions> | ||
<button mat-icon-button | ||
color="accent" | ||
(click)="onDecline()"> | ||
<button mat-icon-button color="accent" (click)="onDecline()"> | ||
<mat-icon>cancel</mat-icon> | ||
<mat-label>{{noButton}}</mat-label> | ||
<mat-label>{{ noButton }}</mat-label> | ||
</button> | ||
<button mat-icon-button | ||
color="primary" | ||
(click)="onConfirm()"> | ||
<button mat-icon-button color="primary" (click)="onConfirm()"> | ||
<mat-icon>check</mat-icon> | ||
<mat-label>{{yesButton}}</mat-label> | ||
<mat-label>{{ yesButton }}</mat-label> | ||
</button> | ||
</div> |
52 changes: 30 additions & 22 deletions
52
...web/src/app/library/components/comic-display-options/comic-display-options.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.