Skip to content

Commit

Permalink
feat(jobs): manipulate groups and jobs of rclone server
Browse files Browse the repository at this point in the history
  • Loading branch information
ElonH committed May 14, 2020
1 parent 02bd3ed commit 737904a
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/app/pages/jobs/jobs-routing.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';

import { JobsComponent } from './jobs.component';

const routes: Routes = [{ path: '', component: JobsComponent }];

@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class JobsRoutingModule { }
25 changes: 25 additions & 0 deletions src/app/pages/jobs/jobs.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { JobsComponent } from './jobs.component';

describe('JobsComponent', () => {
let component: JobsComponent;
let fixture: ComponentFixture<JobsComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ JobsComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(JobsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
20 changes: 20 additions & 0 deletions src/app/pages/jobs/jobs.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-jobs',
template: `
<p>
jobs works!
</p>
`,
styles: [
]
})
export class JobsComponent implements OnInit {

constructor() { }

ngOnInit(): void {
}

}
15 changes: 15 additions & 0 deletions src/app/pages/jobs/jobs.module.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';

import { JobsRoutingModule } from './jobs-routing.module';
import { JobsComponent } from './jobs.component';


@NgModule({
declarations: [JobsComponent],
imports: [
CommonModule,
JobsRoutingModule
]
})
export class JobsModule { }
5 changes: 5 additions & 0 deletions src/app/pages/pages-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,9 @@ export const MENU_ITEMS: NbMenuItem[] = [
icon: 'folder-outline',
link: 'manager',
},
{
title: 'Jobs Manager',
icon: 'briefcase-outline',
link: 'jobs',
},
];
4 changes: 4 additions & 0 deletions src/app/pages/pages-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ const routes: Routes = [
path: 'manager',
loadChildren: () => import('./manager/manager.module').then((m) => m.ManagerModule),
},
{
path: 'jobs',
loadChildren: () => import('./jobs/jobs.module').then((m) => m.JobsModule),
},
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
{ path: '**', redirectTo: 'dashboard' },
],
Expand Down

0 comments on commit 737904a

Please sign in to comment.