Add images, update services, fix routes

This commit is contained in:
Çetin
2025-01-03 17:20:47 +03:00
parent 09176b45eb
commit 012e4ba46f
139 changed files with 19373 additions and 154 deletions

View File

@@ -1,7 +1,10 @@
import { Routes } from '@angular/router';
import { Access } from '@/src/views/pages/auth/access';
import { Login } from '@/src/views/pages/auth/login';
import { Error } from '@/src/views/pages/auth/error';
export default [
{ path: 'access', loadComponent: () => import('./access').then(c => c.Access)},
{ path: 'error', loadComponent: () => import('./error').then(c => c.Error)},
{ path: 'login', loadComponent: () => import('./login').then(c => c.Login)},
{ path: 'access', component: Access},
{ path: 'error', component: Error},
{ path: 'login', component: Login},
] as Routes;

View File

@@ -237,7 +237,7 @@ import { Product, ProductService } from '@/src/service/product.service';
</p-dialog>
</div>
`,
providers: [MessageService]
providers: [MessageService, ProductService],
})
export class Crud implements OnInit {

View File

@@ -1,10 +1,15 @@
import { Routes } from '@angular/router';
import { Documentation } from '@/src/views/pages/documentation';
import { Crud } from '@/src/views/pages/crud';
import { Landing } from '@/src/views/pages/landing';
import { Empty } from '@/src/views/pages/empty';
import { Notfound } from '@/src/views/pages/notfound';
export default [
{ path: 'documentation', loadComponent: () => import('./documentation').then(c => c.Documentation)},
{ path: 'crud', loadComponent: () => import('./crud').then(c => c.Crud)},
{ path: 'landing', loadComponent: () => import('./landing').then(c => c.Landing)},
{ path: 'empty', loadComponent: () => import('./empty').then(c => c.Empty)},
{ path: 'notfound', loadComponent: () => import('./notfound').then(c => c.Notfound)},
{ path: 'documentation', component: Documentation},
{ path: 'crud', component: Crud},
{ path: 'landing', component: Landing},
{ path: 'empty', component: Empty},
{ path: 'notfound', component: Notfound},
{ path: '**', redirectTo: '/notfound' }
] as Routes;