diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index 3a545fcb..86f741e5 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -42,6 +42,10 @@ const appRoutes: Routes = [
path : 'apps/todo',
loadChildren: './main/apps/todo/todo.module#FuseTodoModule'
},
+ {
+ path : 'apps/file-manager',
+ loadChildren: './main/apps/file-manager/file-manager.module#FuseFileManagerModule'
+ },
{
path : '**',
redirectTo: 'apps/dashboards/project'
diff --git a/src/app/fuse-fake-db/file-manager.ts b/src/app/fuse-fake-db/file-manager.ts
new file mode 100644
index 00000000..2c4555e6
--- /dev/null
+++ b/src/app/fuse-fake-db/file-manager.ts
@@ -0,0 +1,146 @@
+export class FileManagerFakeDb
+{
+ public static files = [
+ {
+ 'name' : 'Work Documents',
+ 'type' : 'folder',
+ 'owner' : 'me',
+ 'size' : '',
+ 'modified' : 'July 8, 2015',
+ 'opened' : 'July 8, 2015',
+ 'created' : 'July 8, 2015',
+ 'extention': '',
+ 'location' : 'My Files > Documents',
+ 'offline' : true
+ },
+ {
+ 'name' : 'Public Documents',
+ 'type' : 'folder',
+ 'owner' : 'public',
+ 'size' : '',
+ 'modified' : 'July 8, 2015',
+ 'opened' : 'July 8, 2015',
+ 'created' : 'July 8, 2015',
+ 'extention': '',
+ 'location' : 'My Files > Documents',
+ 'offline' : true
+ },
+ {
+ 'name' : 'Private Documents',
+ 'type' : 'folder',
+ 'owner' : 'me',
+ 'size' : '',
+ 'modified' : 'July 8, 2015',
+ 'opened' : 'July 8, 2015',
+ 'created' : 'July 8, 2015',
+ 'extention': '',
+ 'location' : 'My Files > Documents',
+ 'offline' : true
+ },
+ {
+ 'name' : 'Ongoing projects',
+ 'type' : 'document',
+ 'owner' : 'Emily Bennett',
+ 'size' : '1.2 Mb',
+ 'modified' : 'July 8, 2015',
+ 'opened' : 'July 8, 2015',
+ 'created' : 'July 8, 2015',
+ 'extention': '',
+ 'location' : 'My Files > Documents',
+ 'offline' : true,
+ 'preview' : 'assets/images/etc/sample-file-preview.jpg'
+ },
+ {
+ 'name' : 'Shopping list',
+ 'type' : 'document',
+ 'owner' : 'Emily Bennett',
+ 'size' : '980 Kb',
+ 'modified' : 'July 8, 2015',
+ 'opened' : 'July 8, 2015',
+ 'created' : 'July 8, 2015',
+ 'extention': '',
+ 'location' : 'My Files > Documents',
+ 'offline' : true,
+ 'preview' : 'assets/images/etc/sample-file-preview.jpg'
+ },
+ {
+ 'name' : 'Invoices',
+ 'type' : 'spreadsheet',
+ 'owner' : 'Emily Bennett',
+ 'size' : '750 Kb',
+ 'modified' : 'July 8, 2015',
+ 'opened' : 'July 8, 2015',
+ 'created' : 'July 8, 2015',
+ 'extention': '',
+ 'location' : 'My Files > Documents',
+ 'offline' : true,
+ 'preview' : 'assets/images/etc/sample-file-preview.jpg'
+ },
+ {
+ 'name' : 'Crash logs',
+ 'type' : 'document',
+ 'owner' : 'Emily Bennett',
+ 'size' : '980 Mb',
+ 'modified' : 'July 8, 2015',
+ 'opened' : 'July 8, 2015',
+ 'created' : 'July 8, 2015',
+ 'extention': '',
+ 'location' : 'My Files > Documents',
+ 'offline' : true,
+ 'preview' : 'assets/images/etc/sample-file-preview.jpg'
+ },
+ {
+ 'name' : 'System logs',
+ 'type' : 'document',
+ 'owner' : 'Emily Bennett',
+ 'size' : '52 Kb',
+ 'modified' : 'July 8, 2015',
+ 'opened' : 'July 8, 2015',
+ 'created' : 'July 8, 2015',
+ 'extention': '',
+ 'location' : 'My Files > Documents',
+ 'offline' : true,
+ 'preview' : 'assets/images/etc/sample-file-preview.jpg'
+ },
+ {
+ 'name' : 'Prices',
+ 'type' : 'spreadsheet',
+ 'owner' : 'Emily Bennett',
+ 'size' : '27 Mb',
+ 'modified' : 'July 8, 2015',
+ 'opened' : 'July 8, 2015',
+ 'created' : 'July 8, 2015',
+ 'extention': '',
+ 'location' : 'My Files > Documents',
+ 'offline' : true,
+ 'preview' : 'assets/images/etc/sample-file-preview.jpg'
+ },
+ {
+ 'name' : 'Anabelle Manual',
+ 'type' : 'document',
+ 'owner' : 'Emily Bennett',
+ 'size' : '1.1 Kb',
+ 'modified' : 'July 8, 2015',
+ 'opened' : 'July 8, 2015',
+ 'created' : 'July 8, 2015',
+ 'extention': '',
+ 'location' : 'My Files > Documents',
+ 'offline' : true,
+ 'preview' : 'assets/images/etc/sample-file-preview.jpg'
+ },
+ {
+ 'name' : 'Steam summer sale budget',
+ 'type' : 'spreadsheet',
+ 'owner' : 'Emily Bennett',
+ 'size' : '505 Kb',
+ 'modified' : 'July 8, 2015',
+ 'opened' : 'July 8, 2015',
+ 'created' : 'July 8, 2015',
+ 'extention': '',
+ 'location' : 'My Files > Documents',
+ 'offline' : true,
+ 'preview' : 'assets/images/etc/sample-file-preview.jpg'
+ }
+ ];
+
+}
diff --git a/src/app/fuse-fake-db/fuse-fake-db.service.ts b/src/app/fuse-fake-db/fuse-fake-db.service.ts
index 60efff5d..6e14f060 100644
--- a/src/app/fuse-fake-db/fuse-fake-db.service.ts
+++ b/src/app/fuse-fake-db/fuse-fake-db.service.ts
@@ -6,6 +6,7 @@ import { CalendarFakeDb } from './calendar';
import { TodoFakeDb } from './todo';
import { ProfileFakeDb } from './profile';
import { ContactsFakeDb } from './contacts';
+import { FileManagerFakeDb } from './file-manager';
export class FuseFakeDbService implements InMemoryDbService
{
@@ -26,7 +27,8 @@ export class FuseFakeDbService implements InMemoryDbService
'profile-timeline' : ProfileFakeDb.timeline,
'profile-photos-videos': ProfileFakeDb.photosVideos,
'profile-about' : ProfileFakeDb.about,
- 'contacts' : ContactsFakeDb.contacts
+ 'contacts' : ContactsFakeDb.contacts,
+ 'file-manager' : FileManagerFakeDb.files
};
}
}
diff --git a/src/app/main/apps/file-manager/file-list/file-list.component.html b/src/app/main/apps/file-manager/file-list/file-list.component.html
new file mode 100644
index 00000000..3a6bc9e9
--- /dev/null
+++ b/src/app/main/apps/file-manager/file-list/file-list.component.html
@@ -0,0 +1,44 @@
+
Type | +{{selected.type}} | +
---|---|
Size | +{{selected.size === '' ? '-': selected.size}} | +
Location | +{{selected.location}} | +
Owner | +{{selected.owner}} | +
Modified | +{{selected.modified}} | +
Opened | +{{selected.opened}} | +
Created | +{{selected.created}} | +
+ main works! +
diff --git a/src/app/main/apps/file-manager/sidenavs/main/main.component.scss b/src/app/main/apps/file-manager/sidenavs/main/main.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/main/apps/file-manager/sidenavs/main/main.component.ts b/src/app/main/apps/file-manager/sidenavs/main/main.component.ts new file mode 100644 index 00000000..87ea0f7f --- /dev/null +++ b/src/app/main/apps/file-manager/sidenavs/main/main.component.ts @@ -0,0 +1,21 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector : 'fuse-file-manager-main-sidenav', + templateUrl: './main.component.html', + styleUrls : ['./main.component.scss'] +}) +export class MainSidenavComponent implements OnInit +{ + selected: any; + + constructor() + { + + } + + ngOnInit() + { + } + +}