Skip to content

Commit

Permalink
feat(manager): explore and manipulate remote storages
Browse files Browse the repository at this point in the history
  • Loading branch information
ElonH committed May 14, 2020
1 parent 2dafa56 commit 02bd3ed
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/manager/manager-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 { ManagerComponent } from './manager.component';

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

@NgModule({
imports: [RouterModule.forChild(routes)],
exports: [RouterModule]
})
export class ManagerRoutingModule { }
25 changes: 25 additions & 0 deletions src/app/pages/manager/manager.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 { ManagerComponent } from './manager.component';

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

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

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

it('should create', () => {
expect(component).toBeTruthy();
});
});
20 changes: 20 additions & 0 deletions src/app/pages/manager/manager.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-manager',
template: `
<p>
manager works!
</p>
`,
styles: [
]
})
export class ManagerComponent implements OnInit {

constructor() { }

ngOnInit(): void {
}

}
15 changes: 15 additions & 0 deletions src/app/pages/manager/manager.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 { ManagerRoutingModule } from './manager-routing.module';
import { ManagerComponent } from './manager.component';


@NgModule({
declarations: [ManagerComponent],
imports: [
CommonModule,
ManagerRoutingModule
]
})
export class ManagerModule { }
5 changes: 5 additions & 0 deletions src/app/pages/pages-menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,9 @@ export const MENU_ITEMS: NbMenuItem[] = [
link: 'dashboard',
home: true,
},
{
title: 'File Manager',
icon: 'folder-outline',
link: 'manager',
},
];
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 @@ -16,6 +16,10 @@ const routes: Routes = [
path: 'user',
loadChildren: () => import('./user/user.module').then((m) => m.UserModule),
},
{
path: 'manager',
loadChildren: () => import('./manager/manager.module').then((m) => m.ManagerModule),
},
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
{ path: '**', redirectTo: 'dashboard' },
],
Expand Down

0 comments on commit 02bd3ed

Please sign in to comment.