diff --git a/frontend/src/app/app.component.spec.ts b/frontend/src/app/app.component.spec.ts index a6b0ab9..998c602 100644 --- a/frontend/src/app/app.component.spec.ts +++ b/frontend/src/app/app.component.spec.ts @@ -1,5 +1,5 @@ -import { TestBed } from '@angular/core/testing'; -import { AppComponent } from './app.component'; +import {TestBed} from '@angular/core/testing'; +import {AppComponent} from './app.component'; describe('AppComponent', () => { beforeEach(async () => { diff --git a/frontend/src/app/app.component.ts b/frontend/src/app/app.component.ts index c5427d1..bf2c8e2 100644 --- a/frontend/src/app/app.component.ts +++ b/frontend/src/app/app.component.ts @@ -9,7 +9,7 @@ import {Router} from '@angular/router'; templateUrl: './app.component.html', styleUrl: './app.component.scss', }) -export class AppComponent implements OnInit{ +export class AppComponent implements OnInit { title = 'Survival Minecraft Server on ' + ALTITUDE_VERSION + '! | Altitude Community'; title_og = 'Community-centered ' + ALTITUDE_VERSION + ' Survival Minecraft Server'; description = 'Start your adventure today! We are a ' + @@ -28,11 +28,11 @@ export class AppComponent implements OnInit{ ngOnInit(): void { this.titleService.setTitle(this.title) - this.metaService.updateTag({ name: 'description', content: this.description}); - this.metaService.updateTag({ name: 'twitter:description', content: this.description_og}) - this.metaService.updateTag({ name: 'og:title', content: this.title_og}) - this.metaService.updateTag({ name: 'og:description', content: this.description_og}) - this.metaService.updateTag({ name: 'keywords', content: this.keywords}) + this.metaService.updateTag({name: 'description', content: this.description}); + this.metaService.updateTag({name: 'twitter:description', content: this.description_og}) + this.metaService.updateTag({name: 'og:title', content: this.title_og}) + this.metaService.updateTag({name: 'og:description', content: this.description_og}) + this.metaService.updateTag({name: 'keywords', content: this.keywords}) } public isHomePage(): boolean { diff --git a/frontend/src/app/app.config.ts b/frontend/src/app/app.config.ts index a1e7d6f..0460e6a 100644 --- a/frontend/src/app/app.config.ts +++ b/frontend/src/app/app.config.ts @@ -1,8 +1,8 @@ -import { ApplicationConfig, provideZoneChangeDetection } from '@angular/core'; -import { provideRouter } from '@angular/router'; +import {ApplicationConfig, provideZoneChangeDetection} from '@angular/core'; +import {provideRouter} from '@angular/router'; -import { routes } from './app.routes'; +import {routes} from './app.routes'; export const appConfig: ApplicationConfig = { - providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes)] + providers: [provideZoneChangeDetection({eventCoalescing: true}), provideRouter(routes)] }; diff --git a/frontend/src/app/app.module.ts b/frontend/src/app/app.module.ts index 2c12a4f..4fbd980 100644 --- a/frontend/src/app/app.module.ts +++ b/frontend/src/app/app.module.ts @@ -1,24 +1,24 @@ -import { NgModule } from '@angular/core'; -import { BrowserModule } from '@angular/platform-browser'; -import { AppComponent } from './app.component'; +import {NgModule} from '@angular/core'; +import {BrowserModule} from '@angular/platform-browser'; +import {AppComponent} from './app.component'; import {RouterModule, Routes} from '@angular/router'; -import { HeaderComponent } from './header/header.component'; -import { HomeComponent } from './home/home.component'; +import {HeaderComponent} from './header/header.component'; +import {HomeComponent} from './home/home.component'; import {NgOptimizedImage} from '@angular/common'; import {ThemeComponent} from "./theme/theme.component"; import {CookieService} from 'ngx-cookie-service'; const routes: Routes = [ - { path: '', component: HomeComponent } + {path: '', component: HomeComponent} ]; @NgModule({ - declarations: [ - AppComponent, - HeaderComponent, - HomeComponent, - ThemeComponent - ], + declarations: [ + AppComponent, + HeaderComponent, + HomeComponent, + ThemeComponent + ], imports: [ BrowserModule, RouterModule.forRoot(routes), @@ -27,4 +27,5 @@ const routes: Routes = [ providers: [CookieService], bootstrap: [AppComponent] }) -export class AppModule { } +export class AppModule { +} diff --git a/frontend/src/app/app.routes.ts b/frontend/src/app/app.routes.ts index dc39edb..8b5e5fb 100644 --- a/frontend/src/app/app.routes.ts +++ b/frontend/src/app/app.routes.ts @@ -1,3 +1,3 @@ -import { Routes } from '@angular/router'; +import {Routes} from '@angular/router'; export const routes: Routes = []; diff --git a/frontend/src/app/constant.ts b/frontend/src/app/constant.ts index 9fa462d..3a41dd9 100644 --- a/frontend/src/app/constant.ts +++ b/frontend/src/app/constant.ts @@ -1,5 +1,6 @@ export const ALTITUDE_VERSION = "1.21" + export const enum THEME_MODE { - LIGHT= 'theme-light', + LIGHT = 'theme-light', DARK = 'theme-dark' } diff --git a/frontend/src/app/header/header.component.html b/frontend/src/app/header/header.component.html index ad94226..a2be95e 100644 --- a/frontend/src/app/header/header.component.html +++ b/frontend/src/app/header/header.component.html @@ -65,8 +65,7 @@ Altitude Server Logo