add changelog component (test sample html gen from py)
This commit is contained in:
parent
218b2de59a
commit
a6a7397dce
7 changed files with 1712 additions and 0 deletions
|
|
@ -58,6 +58,10 @@ const routes: Routes = [
|
|||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
path: 'log',
|
||||
loadComponent: () => import('./features/changelog/changelog.component').then((m) => m.ChangelogComponent),
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ import { FooterComponent } from './core/layout/footer.component';
|
|||
import { HeaderComponent } from './core/layout/header.component';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
import { AppComponent } from './app.component';
|
||||
import { ChangelogComponent } from './features/changelog/changelog.component';
|
||||
|
||||
@NgModule({
|
||||
declarations: [AppComponent],
|
||||
|
|
|
|||
1674
client/src/app/features/changelog/changelog.component.html
Normal file
1674
client/src/app/features/changelog/changelog.component.html
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,21 @@
|
|||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { ChangelogComponent } from './changelog.component';
|
||||
|
||||
describe('ChangelogComponent', () => {
|
||||
let component: ChangelogComponent;
|
||||
let fixture: ComponentFixture<ChangelogComponent>;
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ChangelogComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(ChangelogComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
11
client/src/app/features/changelog/changelog.component.ts
Normal file
11
client/src/app/features/changelog/changelog.component.ts
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
import { Component } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-changelog',
|
||||
standalone: true,
|
||||
templateUrl: './changelog.component.html',
|
||||
styleUrls: ['./changelog.component.css']
|
||||
})
|
||||
export class ChangelogComponent {
|
||||
|
||||
}
|
||||
|
|
@ -2,3 +2,4 @@
|
|||
<button (click)="logout()" class="bg-blue-300 rounded-lg min-w-fit p-10">
|
||||
Logout
|
||||
</button>
|
||||
<a href="/log">View Logs</a>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue