add changelog component (test sample html gen from py)

This commit is contained in:
pakintada@gmail.com 2023-09-18 17:10:18 +07:00
parent 218b2de59a
commit a6a7397dce
7 changed files with 1712 additions and 0 deletions

View file

@ -58,6 +58,10 @@ const routes: Routes = [
},
],
},
{
path: 'log',
loadComponent: () => import('./features/changelog/changelog.component').then((m) => m.ChangelogComponent),
}
];
@NgModule({

View file

@ -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],

File diff suppressed because it is too large Load diff

View file

@ -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();
});
});

View 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 {
}

View file

@ -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>