format code

This commit is contained in:
myh 2023-12-26 20:32:01 +08:00
parent 0f43786e79
commit 0fda619b43
8 changed files with 40 additions and 37 deletions

View File

@ -2,7 +2,7 @@ import {ApplicationConfig} from '@angular/core';
import {provideRouter} from '@angular/router'; import {provideRouter} from '@angular/router';
import {routes} from './app.routes'; import {routes} from './app.routes';
import { provideAnimations } from '@angular/platform-browser/animations'; import {provideAnimations} from '@angular/platform-browser/animations';
export const appConfig: ApplicationConfig = { export const appConfig: ApplicationConfig = {
providers: [provideRouter(routes), provideAnimations()] providers: [provideRouter(routes), provideAnimations()]

View File

@ -1,5 +1,3 @@
import {Routes} from '@angular/router'; import {Routes} from '@angular/router';
export const routes: Routes = [ export const routes: Routes = [];
];

View File

@ -5,7 +5,7 @@
[pauseOnFocus]="pauseOnFocus" [pauseOnFocus]="pauseOnFocus"
(slide)="onSlide($event)" (slide)="onSlide($event)"
> >
@for (img of images;track img;let i = $index) { @for (img of images; track img; let i = $index) {
<ng-template ngbSlide> <ng-template ngbSlide>
<div class="carousel-caption"> <div class="carousel-caption">
<h3>My slide {{ i + 1 }} title</h3> <h3>My slide {{ i + 1 }} title</h3>

View File

@ -10,6 +10,6 @@
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
</head> </head>
<body class="mat-typography"> <body class="mat-typography">
<app-root></app-root> <app-root></app-root>
</body> </body>
</html> </html>

View File

@ -1,4 +1,3 @@
// Custom Theming for Angular Material // Custom Theming for Angular Material
// For more information: https://material.angular.io/guide/theming // For more information: https://material.angular.io/guide/theming
@use '@angular/material' as mat; @use '@angular/material' as mat;
@ -38,8 +37,14 @@ $AngularDemo-theme: mat.define-light-theme((
@tailwind components; @tailwind components;
@tailwind utilities; @tailwind utilities;
html, body { height: 100%; } html, body {
body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; } height: 100%;
}
body {
margin: 0;
font-family: Roboto, "Helvetica Neue", sans-serif;
}
/* Importing Bootstrap SCSS file. */ /* Importing Bootstrap SCSS file. */
@import 'bootstrap/scss/bootstrap'; @import 'bootstrap/scss/bootstrap';