mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2025-04-18 14:22:35 +00:00
35 lines
1.4 KiB
TypeScript
35 lines
1.4 KiB
TypeScript
import { InMemoryDbService } from 'angular-in-memory-web-api';
|
|
|
|
import { MailFakeDb } from './mail';
|
|
import { ChatFakeDb } from './chat';
|
|
import { CalendarFakeDb } from './calendar';
|
|
import { TodoFakeDb } from './todo';
|
|
import { ProfileFakeDb } from './profile';
|
|
import { ContactsFakeDb } from './contacts';
|
|
import { InvoiceFakeDb } from './invoice';
|
|
|
|
export class FuseFakeDbService implements InMemoryDbService
|
|
{
|
|
createDb()
|
|
{
|
|
return {
|
|
'mail-mails' : MailFakeDb.mails,
|
|
'mail-folders' : MailFakeDb.folders,
|
|
'mail-filters' : MailFakeDb.filters,
|
|
'mail-labels' : MailFakeDb.labels,
|
|
'chat-contacts' : ChatFakeDb.contacts,
|
|
'chat-chats' : ChatFakeDb.chats,
|
|
'chat-user' : ChatFakeDb.user,
|
|
'calendar' : CalendarFakeDb.data,
|
|
'todo-todos' : TodoFakeDb.todos,
|
|
'todo-filters' : TodoFakeDb.filters,
|
|
'todo-tags' : TodoFakeDb.tags,
|
|
'profile-timeline' : ProfileFakeDb.timeline,
|
|
'profile-photos-videos': ProfileFakeDb.photosVideos,
|
|
'profile-about' : ProfileFakeDb.about,
|
|
'contacts' : ContactsFakeDb.contacts,
|
|
'invoice' : InvoiceFakeDb.invoice
|
|
};
|
|
}
|
|
}
|