Compare commits
2 Commits
9615139554
...
21496baab5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21496baab5 | ||
|
|
c2c81de9d0 |
14
frontend/build.gradle.kts
Normal file
14
frontend/build.gradle.kts
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
tasks.register<Exec>("npmInstall") {
|
||||||
|
commandLine("npm.cmd", "install")
|
||||||
|
// commandLine("npm", "install")
|
||||||
|
}
|
||||||
|
|
||||||
|
tasks.register<Exec>("ngBuild") {
|
||||||
|
dependsOn("npmInstall", "generateFrontendApi")
|
||||||
|
// commandLine("npm", "run", "build")
|
||||||
|
commandLine("npm.cmd", "run", "build")
|
||||||
|
}
|
||||||
|
|
||||||
|
//dependencies {
|
||||||
|
// implementation(project(":backend"))
|
||||||
|
//}
|
||||||
|
|
@ -1,9 +1,15 @@
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {ScrollService} from '../scroll/scroll.service';
|
import {ScrollService} from '../scroll/scroll.service';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
import {HeaderComponent} from '../header/header.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-about',
|
selector: 'app-about',
|
||||||
standalone: false,
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
HeaderComponent
|
||||||
|
],
|
||||||
templateUrl: './about.component.html',
|
templateUrl: './about.component.html',
|
||||||
styleUrl: './about.component.scss'
|
styleUrl: './about.component.scss'
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,18 @@
|
||||||
import {Component, OnInit} from '@angular/core';
|
import {Component, OnInit} from '@angular/core';
|
||||||
import {Meta, Title} from '@angular/platform-browser';
|
import {Meta, Title} from '@angular/platform-browser';
|
||||||
import {ALTITUDE_VERSION} from './constant';
|
import {ALTITUDE_VERSION} from './constant';
|
||||||
import {Router} from '@angular/router';
|
import {Router, RouterOutlet} from '@angular/router';
|
||||||
|
import {FooterComponent} from './footer/footer.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: false,
|
standalone: true,
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
templateUrl: './app.component.html',
|
templateUrl: './app.component.html',
|
||||||
styleUrl: './app.component.scss',
|
styleUrl: './app.component.scss',
|
||||||
|
imports: [
|
||||||
|
FooterComponent,
|
||||||
|
RouterOutlet
|
||||||
|
]
|
||||||
})
|
})
|
||||||
export class AppComponent implements OnInit {
|
export class AppComponent implements OnInit {
|
||||||
title = 'Survival Minecraft Server on ' + ALTITUDE_VERSION + '! | Altitude Community';
|
title = 'Survival Minecraft Server on ' + ALTITUDE_VERSION + '! | Altitude Community';
|
||||||
|
|
|
||||||
|
|
@ -1,64 +0,0 @@
|
||||||
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 {NgOptimizedImage} from '@angular/common';
|
|
||||||
import {ThemeComponent} from "./theme/theme.component";
|
|
||||||
import {CookieService} from 'ngx-cookie-service';
|
|
||||||
import {MapComponent} from './map/map.component';
|
|
||||||
import {RulesComponent} from './rules/rules.component';
|
|
||||||
import {CopyIpComponent} from './copy-ip/copy-ip.component';
|
|
||||||
import {FooterComponent} from './footer/footer.component';
|
|
||||||
import {TermsComponent} from './terms/terms.component';
|
|
||||||
import {PrivacyComponent} from './privacy/privacy.component';
|
|
||||||
import {TeamComponent} from './team/team.component';
|
|
||||||
import {AboutComponent} from './about/about.component';
|
|
||||||
import {SocialsComponent} from './socials/socials.component';
|
|
||||||
import {VoteComponent} from './vote/vote.component';
|
|
||||||
import {BirthdaysComponent} from './birthdays/birthdays.component';
|
|
||||||
|
|
||||||
const routes: Routes = [
|
|
||||||
{path: '', component: HomeComponent},
|
|
||||||
{path: 'map', component: MapComponent},
|
|
||||||
{path: 'rules', component: RulesComponent},
|
|
||||||
{path: 'vote', component: VoteComponent},
|
|
||||||
{path: 'about', component: AboutComponent},
|
|
||||||
{path: 'socials', component: SocialsComponent},
|
|
||||||
{path: 'team', component: TeamComponent},
|
|
||||||
{path: 'birthdays', component: BirthdaysComponent},
|
|
||||||
{path: 'terms', component: TermsComponent},
|
|
||||||
{path: 'privacy', component: PrivacyComponent},
|
|
||||||
];
|
|
||||||
|
|
||||||
@NgModule({
|
|
||||||
declarations: [
|
|
||||||
AppComponent,
|
|
||||||
HeaderComponent,
|
|
||||||
FooterComponent,
|
|
||||||
ThemeComponent,
|
|
||||||
HomeComponent,
|
|
||||||
MapComponent,
|
|
||||||
RulesComponent,
|
|
||||||
VoteComponent,
|
|
||||||
AboutComponent,
|
|
||||||
SocialsComponent,
|
|
||||||
TeamComponent,
|
|
||||||
BirthdaysComponent,
|
|
||||||
TermsComponent,
|
|
||||||
PrivacyComponent,
|
|
||||||
],
|
|
||||||
imports: [
|
|
||||||
BrowserModule,
|
|
||||||
RouterModule.forRoot(routes, {
|
|
||||||
scrollPositionRestoration: 'enabled',
|
|
||||||
}),
|
|
||||||
NgOptimizedImage,
|
|
||||||
CopyIpComponent,
|
|
||||||
],
|
|
||||||
providers: [CookieService],
|
|
||||||
bootstrap: [AppComponent]
|
|
||||||
})
|
|
||||||
export class AppModule {
|
|
||||||
}
|
|
||||||
|
|
@ -1,3 +1,46 @@
|
||||||
import {Routes} from '@angular/router';
|
import {Routes} from '@angular/router';
|
||||||
|
|
||||||
export const routes: Routes = [];
|
export const routes: Routes = [
|
||||||
|
{
|
||||||
|
path: '',
|
||||||
|
loadComponent: () => import('./home/home.component').then(m => m.HomeComponent)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'map',
|
||||||
|
loadComponent: () => import('./map/map.component').then(m => m.MapComponent)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'rules',
|
||||||
|
loadComponent: () => import('./rules/rules.component').then(m => m.RulesComponent)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'vote',
|
||||||
|
loadComponent: () => import('./vote/vote.component').then(m => m.VoteComponent)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'about',
|
||||||
|
loadComponent: () => import('./about/about.component').then(m => m.AboutComponent)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'socials',
|
||||||
|
loadComponent: () => import('./socials/socials.component').then(m => m.SocialsComponent)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'team',
|
||||||
|
loadComponent: () => import('./team/team.component').then(m => m.TeamComponent)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'birthdays',
|
||||||
|
loadComponent: () => import('./birthdays/birthdays.component').then(m => m.BirthdaysComponent)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'terms',
|
||||||
|
loadComponent: () => import('./terms/terms.component').then(m => m.TermsComponent)
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: 'privacy',
|
||||||
|
loadComponent: () => import('./privacy/privacy.component').then(m => m.PrivacyComponent)
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,15 @@
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {ScrollService} from '../scroll/scroll.service';
|
import {ScrollService} from '../scroll/scroll.service';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
import {HeaderComponent} from '../header/header.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-birthdays',
|
selector: 'app-birthdays',
|
||||||
standalone: false,
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
HeaderComponent
|
||||||
|
],
|
||||||
templateUrl: './birthdays.component.html',
|
templateUrl: './birthdays.component.html',
|
||||||
styleUrl: './birthdays.component.scss'
|
styleUrl: './birthdays.component.scss'
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,13 @@
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-copy-ip',
|
selector: 'app-copy-ip',
|
||||||
templateUrl: './copy-ip.component.html',
|
templateUrl: './copy-ip.component.html',
|
||||||
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
CommonModule
|
||||||
|
],
|
||||||
styleUrl: './copy-ip.component.scss'
|
styleUrl: './copy-ip.component.scss'
|
||||||
})
|
})
|
||||||
export class CopyIpComponent {
|
export class CopyIpComponent {
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,16 @@
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {ALTITUDE_VERSION} from '../constant';
|
import {ALTITUDE_VERSION} from '../constant';
|
||||||
|
import {CommonModule, NgOptimizedImage} from '@angular/common';
|
||||||
|
import {RouterLink} from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-footer',
|
selector: 'app-footer',
|
||||||
standalone: false,
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
RouterLink,
|
||||||
|
NgOptimizedImage
|
||||||
|
],
|
||||||
templateUrl: './footer.component.html',
|
templateUrl: './footer.component.html',
|
||||||
styleUrl: './footer.component.scss'
|
styleUrl: './footer.component.scss'
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,8 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<a href="/"><img ngSrc="/public/img/logos/logo.png" alt="Altitude Server Logo" height="319" width="550"></a>
|
<a href="/"><img ngSrc="/public/img/logos/logo.png" priority alt="Altitude Server Logo" height="319"
|
||||||
|
width="550"></a>
|
||||||
<ul id="nav_list">
|
<ul id="nav_list">
|
||||||
<li class="nav_li"><a [id]="getCurrentPageId(['home'])" class="nav_link" href="/" [ngClass]="active">Home</a>
|
<li class="nav_li"><a [id]="getCurrentPageId(['home'])" class="nav_link" href="/" [ngClass]="active">Home</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,16 @@
|
||||||
import {Component, HostListener, Input} from '@angular/core';
|
import {Component, HostListener, Input} from '@angular/core';
|
||||||
|
import {CommonModule, NgOptimizedImage} from '@angular/common';
|
||||||
|
import {ThemeComponent} from '../theme/theme.component';
|
||||||
|
import {RouterLink} from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: false,
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
ThemeComponent,
|
||||||
|
RouterLink,
|
||||||
|
NgOptimizedImage
|
||||||
|
],
|
||||||
selector: 'app-header',
|
selector: 'app-header',
|
||||||
templateUrl: './header.component.html',
|
templateUrl: './header.component.html',
|
||||||
styleUrls: ['./header.component.scss']
|
styleUrls: ['./header.component.scss']
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,20 @@ import {Component, OnInit} from '@angular/core';
|
||||||
import {Title} from '@angular/platform-browser';
|
import {Title} from '@angular/platform-browser';
|
||||||
import {ALTITUDE_VERSION} from '../constant';
|
import {ALTITUDE_VERSION} from '../constant';
|
||||||
import {ScrollService} from '../scroll/scroll.service';
|
import {ScrollService} from '../scroll/scroll.service';
|
||||||
|
import {CommonModule, NgOptimizedImage} from '@angular/common';
|
||||||
|
import {HeaderComponent} from '../header/header.component';
|
||||||
|
import {CopyIpComponent} from '../copy-ip/copy-ip.component';
|
||||||
|
import {RouterLink} from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: false,
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
HeaderComponent,
|
||||||
|
CopyIpComponent,
|
||||||
|
RouterLink,
|
||||||
|
NgOptimizedImage
|
||||||
|
],
|
||||||
selector: 'app-home',
|
selector: 'app-home',
|
||||||
templateUrl: './home.component.html',
|
templateUrl: './home.component.html',
|
||||||
styleUrl: './home.component.scss'
|
styleUrl: './home.component.scss'
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,13 @@
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
import {HeaderComponent} from '../header/header.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: false,
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
HeaderComponent
|
||||||
|
],
|
||||||
selector: 'app-map',
|
selector: 'app-map',
|
||||||
templateUrl: './map.component.html',
|
templateUrl: './map.component.html',
|
||||||
styleUrl: './map.component.scss'
|
styleUrl: './map.component.scss'
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,17 @@
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {ScrollService} from '../scroll/scroll.service';
|
import {ScrollService} from '../scroll/scroll.service';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
import {HeaderComponent} from '../header/header.component';
|
||||||
|
import {RouterLink} from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-privacy',
|
selector: 'app-privacy',
|
||||||
standalone: false,
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
HeaderComponent,
|
||||||
|
RouterLink
|
||||||
|
],
|
||||||
templateUrl: './privacy.component.html',
|
templateUrl: './privacy.component.html',
|
||||||
styleUrl: './privacy.component.scss'
|
styleUrl: './privacy.component.scss'
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,16 @@
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {ScrollService} from '../scroll/scroll.service';
|
import {ScrollService} from '../scroll/scroll.service';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
import {HeaderComponent} from '../header/header.component';
|
||||||
|
import {RouterLink} from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: false,
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
HeaderComponent,
|
||||||
|
RouterLink
|
||||||
|
],
|
||||||
selector: 'app-rules',
|
selector: 'app-rules',
|
||||||
templateUrl: './rules.component.html',
|
templateUrl: './rules.component.html',
|
||||||
styleUrl: './rules.component.scss'
|
styleUrl: './rules.component.scss'
|
||||||
|
|
|
||||||
|
|
@ -9,27 +9,37 @@
|
||||||
<main>
|
<main>
|
||||||
<section class="darkmodeSection">
|
<section class="darkmodeSection">
|
||||||
<div class="socialContainer" style="padding-top: 50px;">
|
<div class="socialContainer" style="padding-top: 50px;">
|
||||||
<a href="https://discord.com/invite/alttd"><img class="socialIcon" ngSrc="/public/img/logos/discordsocial.png"
|
<a href="https://discord.com/invite/alttd">
|
||||||
|
<img class="socialIcon" ngSrc="/public/img/logos/discordsocial.png"
|
||||||
title="discord.gg/alttd" alt="Altitude Discord" height="150"
|
title="discord.gg/alttd" alt="Altitude Discord" height="150"
|
||||||
width="150" style="width: 150px;"></a>
|
width="150" style="width: 150px;">
|
||||||
<a href="https://www.tiktok.com/@alttdmc"><img class="socialIcon" ngSrc="/public/img/logos/tiktoksocial.png"
|
</a>
|
||||||
|
<a href="https://www.tiktok.com/@alttdmc">
|
||||||
|
<img class="socialIcon" ngSrc="/public/img/logos/tiktoksocial.png"
|
||||||
title="alttdmc" alt="Altitude TikTok" height="150" width="150"
|
title="alttdmc" alt="Altitude TikTok" height="150" width="150"
|
||||||
style="width: 150px;"></a>
|
style="width: 150px;">
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="socialContainer">
|
<div class="socialContainer">
|
||||||
<a href="https://www.instagram.com/alttdmc/"><img class="socialIcon"
|
<a href="https://www.instagram.com/alttdmc/">
|
||||||
|
<img class="socialIcon"
|
||||||
ngSrc="/public/img/logos/instagramsocial.png"
|
ngSrc="/public/img/logos/instagramsocial.png"
|
||||||
title="alttdmc" alt="Altitude Instagram" height="150"
|
title="alttdmc" alt="Altitude Instagram" height="150"
|
||||||
width="150" style="width: 150px;"></a>
|
width="150" style="width: 150px;">
|
||||||
<a href="https://twitter.com/alttdmc"><img class="socialIcon" ngSrc="/public/img/logos/twittersocial.png"
|
</a>
|
||||||
|
<a href="https://twitter.com/alttdmc">
|
||||||
|
<img class="socialIcon" ngSrc="/public/img/logos/twittersocial.png"
|
||||||
title="alttdmc" alt="Altitude Twitter. Yes, Twitter. Not X."
|
title="alttdmc" alt="Altitude Twitter. Yes, Twitter. Not X."
|
||||||
height="150" width="150"
|
height="150" width="150"
|
||||||
style="width: 150px;"></a>
|
style="width: 150px;">
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="socialContainer" style="padding-bottom: 50px;">
|
<div class="socialContainer" style="padding-bottom: 50px;">
|
||||||
<a href="https://www.youtube.com/c/alttd"><img class="socialIcon" ngSrc="/public/img/logos/youtubesocial.png"
|
<a href="https://www.youtube.com/c/alttd">
|
||||||
|
<img class="socialIcon" ngSrc="/public/img/logos/youtubesocial.png"
|
||||||
title="Altitude Community" alt="Altitude YouTube" height="150"
|
title="Altitude Community" alt="Altitude YouTube" height="150"
|
||||||
width="150" style="width: 150px;"></a>
|
width="150" style="width: 150px;">
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,16 @@
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {ScrollService} from '../scroll/scroll.service';
|
import {ScrollService} from '../scroll/scroll.service';
|
||||||
|
import {CommonModule, NgOptimizedImage} from '@angular/common';
|
||||||
|
import {HeaderComponent} from '../header/header.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-socials',
|
selector: 'app-socials',
|
||||||
standalone: false,
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
HeaderComponent,
|
||||||
|
NgOptimizedImage
|
||||||
|
],
|
||||||
templateUrl: './socials.component.html',
|
templateUrl: './socials.component.html',
|
||||||
styleUrl: './socials.component.scss'
|
styleUrl: './socials.component.scss'
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -17,6 +17,7 @@
|
||||||
alt="akastijn's Minecraft skin" height="160" width="160" style="width: 160px;">
|
alt="akastijn's Minecraft skin" height="160" width="160" style="width: 160px;">
|
||||||
<h2>akastijn</h2>
|
<h2>akastijn</h2>
|
||||||
<p>Owner</p>
|
<p>Owner</p>
|
||||||
|
<p>{{ members }}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="member">
|
<div class="member">
|
||||||
<img ngSrc="https://crafatar.com/avatars/0b06c1b9ae5845d5af60731e4c788dc8?overlay"
|
<img ngSrc="https://crafatar.com/avatars/0b06c1b9ae5845d5af60731e4c788dc8?overlay"
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,35 @@
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {ScrollService} from '../scroll/scroll.service';
|
import {ScrollService} from '../scroll/scroll.service';
|
||||||
|
import {BASE_PATH, TeamMember, TeamService} from '../../api';
|
||||||
|
import {CommonModule, NgOptimizedImage} from '@angular/common';
|
||||||
|
import {HeaderComponent} from '../header/header.component';
|
||||||
|
import {CookieService} from 'ngx-cookie-service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-team',
|
selector: 'app-team',
|
||||||
standalone: false,
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
HeaderComponent,
|
||||||
|
NgOptimizedImage
|
||||||
|
],
|
||||||
|
providers: [
|
||||||
|
CookieService,
|
||||||
|
{provide: BASE_PATH, useValue: 'http://localhost:8080/'}
|
||||||
|
],
|
||||||
|
|
||||||
templateUrl: './team.component.html',
|
templateUrl: './team.component.html',
|
||||||
styleUrl: './team.component.scss'
|
styleUrl: './team.component.scss'
|
||||||
})
|
})
|
||||||
export class TeamComponent {
|
export class TeamComponent {
|
||||||
constructor(public scrollService: ScrollService) {
|
public members: TeamMember[] = [];
|
||||||
|
|
||||||
|
constructor(public scrollService: ScrollService, public teamApi: TeamService) {
|
||||||
|
console.log("TeamComponent")
|
||||||
|
teamApi.getTeamMembers("test").subscribe(res => {
|
||||||
|
console.log(res)
|
||||||
|
console.log("AHH")
|
||||||
|
this.members = res;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,18 @@
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {ScrollService} from '../scroll/scroll.service';
|
import {ScrollService} from '../scroll/scroll.service';
|
||||||
|
import {HeaderComponent} from '../header/header.component';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
import {RouterLink} from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-terms',
|
selector: 'app-terms',
|
||||||
standalone: false,
|
standalone: true,
|
||||||
templateUrl: './terms.component.html',
|
templateUrl: './terms.component.html',
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
HeaderComponent,
|
||||||
|
RouterLink
|
||||||
|
],
|
||||||
styleUrl: './terms.component.scss'
|
styleUrl: './terms.component.scss'
|
||||||
})
|
})
|
||||||
export class TermsComponent {
|
export class TermsComponent {
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,13 @@ import {Component, OnDestroy, OnInit} from '@angular/core';
|
||||||
import {Subscription} from 'rxjs';
|
import {Subscription} from 'rxjs';
|
||||||
import {ThemeService} from './theme.service';
|
import {ThemeService} from './theme.service';
|
||||||
import {THEME_MODE} from '../constant';
|
import {THEME_MODE} from '../constant';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
standalone: false,
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
],
|
||||||
selector: 'app-theme',
|
selector: 'app-theme',
|
||||||
templateUrl: './theme.component.html',
|
templateUrl: './theme.component.html',
|
||||||
styleUrl: './theme.component.scss'
|
styleUrl: './theme.component.scss'
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,15 @@
|
||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {ScrollService} from '../scroll/scroll.service';
|
import {ScrollService} from '../scroll/scroll.service';
|
||||||
|
import {CommonModule} from '@angular/common';
|
||||||
|
import {HeaderComponent} from '../header/header.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-vote',
|
selector: 'app-vote',
|
||||||
standalone: false,
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
CommonModule,
|
||||||
|
HeaderComponent
|
||||||
|
],
|
||||||
templateUrl: './vote.component.html',
|
templateUrl: './vote.component.html',
|
||||||
styleUrl: './vote.component.scss'
|
styleUrl: './vote.component.scss'
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,16 @@
|
||||||
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
|
import {bootstrapApplication} from '@angular/platform-browser';
|
||||||
import {AppModule} from './app/app.module';
|
import {AppComponent} from './app/app.component';
|
||||||
|
import {provideRouter} from '@angular/router';
|
||||||
|
import {routes} from './app/app.routes';
|
||||||
|
import {provideHttpClient} from '@angular/common/http';
|
||||||
|
import {BASE_PATH} from './api';
|
||||||
|
|
||||||
|
|
||||||
|
bootstrapApplication(AppComponent, {
|
||||||
|
providers: [
|
||||||
|
provideRouter(routes),
|
||||||
|
provideHttpClient(),
|
||||||
|
{provide: BASE_PATH, useValue: 'http://localhost:8080'}
|
||||||
|
]
|
||||||
|
}).catch(err => console.error(err));
|
||||||
|
|
||||||
platformBrowserDynamic()
|
|
||||||
.bootstrapModule(AppModule)
|
|
||||||
.catch((err) => console.error(err));
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user