Migrate Angular UI from portmaster-ui to desktop/angular. Update Earthfile to build libs, UI and tauri-builtin

This commit is contained in:
Patrick Pacher
2024-03-20 10:43:29 +01:00
parent 66381baa1a
commit 4b77945517
922 changed files with 84071 additions and 26 deletions

View File

@@ -0,0 +1,68 @@
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { AppViewComponent } from './pages/app-view';
import { DashboardPageComponent } from './pages/dashboard/dashboard.component';
import { MonitorPageComponent } from './pages/monitor';
import { SettingsComponent } from './pages/settings/settings';
import { SpnPageComponent } from './pages/spn';
import { SupportPageComponent } from './pages/support';
import { SupportFormComponent } from './pages/support/form';
const routes: Routes = [
{
path: '',
pathMatch: 'full',
redirectTo: 'dashboard',
},
{
path: 'settings',
component: SettingsComponent,
},
{
path: 'app',
pathMatch: 'full',
redirectTo: 'app/overview',
},
{
path: 'app/overview',
component: AppViewComponent,
},
{
path: 'app/:source/:id',
component: AppViewComponent,
},
{
path: 'monitor',
component: MonitorPageComponent,
},
{
path: 'monitor/profile/:source/:profile',
redirectTo: 'monitor',
},
{
path: 'support',
component: SupportPageComponent,
},
{
path: 'support/:id',
component: SupportFormComponent,
},
{
path: 'spn',
component: SpnPageComponent,
},
{
path: '**',
redirectTo: 'dashboard'
},
{
path: 'dashboard',
component: DashboardPageComponent
}
];
@NgModule({
imports: [RouterModule.forRoot(routes, { anchorScrolling: 'enabled' })],
exports: [RouterModule]
})
export class AppRoutingModule { }