mirror of
https://github.com/richard-loafle/fuse-angular.git
synced 2026-04-26 23:14:34 +00:00
First pass through updating standalone components.
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
import { FuseMockApiService } from '@fuse/lib/mock-api/mock-api.service';
|
||||
import { categories as categoriesData, courses as coursesData, demoCourseSteps as demoCourseStepsData } from 'app/mock-api/apps/academy/data';
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class AcademyMockApi
|
||||
{
|
||||
@@ -35,7 +35,8 @@ export class AcademyMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/academy/categories')
|
||||
.reply(() => {
|
||||
.reply(() =>
|
||||
{
|
||||
|
||||
// Clone the categories
|
||||
const categories = cloneDeep(this._categories);
|
||||
@@ -51,7 +52,8 @@ export class AcademyMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/academy/courses')
|
||||
.reply(() => {
|
||||
.reply(() =>
|
||||
{
|
||||
|
||||
// Clone the courses
|
||||
const courses = cloneDeep(this._courses);
|
||||
@@ -64,7 +66,8 @@ export class AcademyMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/academy/courses/course')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id from the params
|
||||
const id = request.params.get('id');
|
||||
@@ -82,7 +85,7 @@ export class AcademyMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
course
|
||||
course,
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
@@ -3,23 +3,23 @@ export const categories = [
|
||||
{
|
||||
id : '9a67dff7-3c38-4052-a335-0cef93438ff6',
|
||||
title: 'Web',
|
||||
slug : 'web'
|
||||
slug : 'web',
|
||||
},
|
||||
{
|
||||
id : 'a89672f5-e00d-4be4-9194-cb9d29f82165',
|
||||
title: 'Firebase',
|
||||
slug : 'firebase'
|
||||
slug : 'firebase',
|
||||
},
|
||||
{
|
||||
id : '02f42092-bb23-4552-9ddb-cfdcc235d48f',
|
||||
title: 'Cloud',
|
||||
slug : 'cloud'
|
||||
slug : 'cloud',
|
||||
},
|
||||
{
|
||||
id : '5648a630-979f-4403-8c41-fc9790dea8cd',
|
||||
title: 'Android',
|
||||
slug : 'android'
|
||||
}
|
||||
slug : 'android',
|
||||
},
|
||||
];
|
||||
export const courses = [
|
||||
{
|
||||
@@ -34,8 +34,8 @@ export const courses = [
|
||||
featured : true,
|
||||
progress : {
|
||||
currentStep: 3,
|
||||
completed : 2
|
||||
}
|
||||
completed : 2,
|
||||
},
|
||||
},
|
||||
{
|
||||
id : 'f924007a-2ee9-470b-a316-8d21ed78277f',
|
||||
@@ -49,8 +49,8 @@ export const courses = [
|
||||
featured : true,
|
||||
progress : {
|
||||
currentStep: 5,
|
||||
completed : 3
|
||||
}
|
||||
completed : 3,
|
||||
},
|
||||
},
|
||||
{
|
||||
id : '0c06e980-abb5-4ba7-ab65-99a228cab36b',
|
||||
@@ -64,8 +64,8 @@ export const courses = [
|
||||
featured : false,
|
||||
progress : {
|
||||
currentStep: 10,
|
||||
completed : 1
|
||||
}
|
||||
completed : 1,
|
||||
},
|
||||
},
|
||||
{
|
||||
id : '1b9a9acc-9a36-403e-a1e7-b11780179e38',
|
||||
@@ -79,8 +79,8 @@ export const courses = [
|
||||
featured : false,
|
||||
progress : {
|
||||
currentStep: 4,
|
||||
completed : 3
|
||||
}
|
||||
completed : 3,
|
||||
},
|
||||
},
|
||||
{
|
||||
id : '55eb415f-3f4e-4853-a22b-f0ae91331169',
|
||||
@@ -94,8 +94,8 @@ export const courses = [
|
||||
featured : false,
|
||||
progress : {
|
||||
currentStep: 6,
|
||||
completed : 0
|
||||
}
|
||||
completed : 0,
|
||||
},
|
||||
},
|
||||
{
|
||||
id : 'fad2ab23-1011-4028-9a54-e52179ac4a50',
|
||||
@@ -109,8 +109,8 @@ export const courses = [
|
||||
featured : false,
|
||||
progress : {
|
||||
currentStep: 6,
|
||||
completed : 0
|
||||
}
|
||||
completed : 0,
|
||||
},
|
||||
},
|
||||
{
|
||||
id : 'c4bc107b-edc4-47a7-a7a8-4fb09732e794',
|
||||
@@ -124,8 +124,8 @@ export const courses = [
|
||||
featured : false,
|
||||
progress : {
|
||||
currentStep: 0,
|
||||
completed : 0
|
||||
}
|
||||
completed : 0,
|
||||
},
|
||||
},
|
||||
{
|
||||
id : '1449f945-d032-460d-98e3-406565a22293',
|
||||
@@ -139,8 +139,8 @@ export const courses = [
|
||||
featured : false,
|
||||
progress : {
|
||||
currentStep: 3,
|
||||
completed : 1
|
||||
}
|
||||
completed : 1,
|
||||
},
|
||||
},
|
||||
{
|
||||
id : 'f05e08ab-f3e3-4597-a032-6a4b69816f24',
|
||||
@@ -154,8 +154,8 @@ export const courses = [
|
||||
featured : false,
|
||||
progress : {
|
||||
currentStep: 0,
|
||||
completed : 1
|
||||
}
|
||||
completed : 1,
|
||||
},
|
||||
},
|
||||
{
|
||||
id : '181728f4-87c8-45c5-b9cc-92265bcd2f4d',
|
||||
@@ -169,8 +169,8 @@ export const courses = [
|
||||
featured : false,
|
||||
progress : {
|
||||
currentStep: 0,
|
||||
completed : 0
|
||||
}
|
||||
completed : 0,
|
||||
},
|
||||
},
|
||||
{
|
||||
id : 'fcbfedbf-6187-4b3b-89d3-1a7cb4e11616',
|
||||
@@ -184,8 +184,8 @@ export const courses = [
|
||||
featured : false,
|
||||
progress : {
|
||||
currentStep: 0,
|
||||
completed : 0
|
||||
}
|
||||
completed : 0,
|
||||
},
|
||||
},
|
||||
{
|
||||
id : '5213f6a1-1dd7-4b1d-b6e9-ffb7af534f28',
|
||||
@@ -199,8 +199,8 @@ export const courses = [
|
||||
featured : false,
|
||||
progress : {
|
||||
currentStep: 0,
|
||||
completed : 0
|
||||
}
|
||||
completed : 0,
|
||||
},
|
||||
},
|
||||
{
|
||||
id : '02992ac9-d1a3-4167-b70e-8a1d5b5ba253',
|
||||
@@ -214,8 +214,8 @@ export const courses = [
|
||||
featured : false,
|
||||
progress : {
|
||||
currentStep: 8,
|
||||
completed : 2
|
||||
}
|
||||
completed : 2,
|
||||
},
|
||||
},
|
||||
{
|
||||
id : '2139512f-41fb-4a4a-841a-0b4ac034f9b4',
|
||||
@@ -229,8 +229,8 @@ export const courses = [
|
||||
featured : false,
|
||||
progress : {
|
||||
currentStep: 0,
|
||||
completed : 0
|
||||
}
|
||||
completed : 0,
|
||||
},
|
||||
},
|
||||
{
|
||||
id : '65e0a0e0-d8c0-4117-a3cb-eb74f8e28809',
|
||||
@@ -244,8 +244,8 @@ export const courses = [
|
||||
featured : false,
|
||||
progress : {
|
||||
currentStep: 0,
|
||||
completed : 0
|
||||
}
|
||||
completed : 0,
|
||||
},
|
||||
},
|
||||
{
|
||||
id : 'c202ebc9-9be3-433a-9d38-7003b3ed7b7a',
|
||||
@@ -259,8 +259,8 @@ export const courses = [
|
||||
featured : false,
|
||||
progress : {
|
||||
currentStep: 0,
|
||||
completed : 0
|
||||
}
|
||||
completed : 0,
|
||||
},
|
||||
},
|
||||
{
|
||||
id : '980ae7da-9f77-4e30-aa98-1b1ea594e775',
|
||||
@@ -274,8 +274,8 @@ export const courses = [
|
||||
featured : false,
|
||||
progress : {
|
||||
currentStep: 0,
|
||||
completed : 0
|
||||
}
|
||||
completed : 0,
|
||||
},
|
||||
},
|
||||
{
|
||||
id : 'c9748ea9-4117-492c-bdb2-55085b515978',
|
||||
@@ -289,9 +289,9 @@ export const courses = [
|
||||
featured : false,
|
||||
progress : {
|
||||
currentStep: 2,
|
||||
completed : 0
|
||||
}
|
||||
}
|
||||
completed : 0,
|
||||
},
|
||||
},
|
||||
];
|
||||
export const demoCourseContent = `
|
||||
<p class="lead">
|
||||
@@ -654,66 +654,66 @@ export const demoCourseSteps = [
|
||||
order : 0,
|
||||
title : 'Introduction',
|
||||
subtitle: 'Introducing the library and how it works',
|
||||
content : `<h2 class="text-2xl sm:text-3xl">Introduction</h1> ${demoCourseContent}`
|
||||
content : `<h2 class="text-2xl sm:text-3xl">Introduction</h1> ${demoCourseContent}`,
|
||||
},
|
||||
{
|
||||
order : 1,
|
||||
title : 'Get the sample code',
|
||||
subtitle: 'Where to find the sample code and how to access it',
|
||||
content : `<h2 class="text-2xl sm:text-3xl">Get the sample code</h1> ${demoCourseContent}`
|
||||
content : `<h2 class="text-2xl sm:text-3xl">Get the sample code</h1> ${demoCourseContent}`,
|
||||
},
|
||||
{
|
||||
order : 2,
|
||||
title : 'Create a Firebase project and Set up your app',
|
||||
subtitle: 'How to create a basic Firebase project and how to run it locally',
|
||||
content : `<h2 class="text-2xl sm:text-3xl">Create a Firebase project and Set up your app</h1> ${demoCourseContent}`
|
||||
content : `<h2 class="text-2xl sm:text-3xl">Create a Firebase project and Set up your app</h1> ${demoCourseContent}`,
|
||||
},
|
||||
{
|
||||
order : 3,
|
||||
title : 'Install the Firebase Command Line Interface',
|
||||
subtitle: 'Setting up the Firebase CLI to access command line tools',
|
||||
content : `<h2 class="text-2xl sm:text-3xl">Install the Firebase Command Line Interface</h1> ${demoCourseContent}`
|
||||
content : `<h2 class="text-2xl sm:text-3xl">Install the Firebase Command Line Interface</h1> ${demoCourseContent}`,
|
||||
},
|
||||
{
|
||||
order : 4,
|
||||
title : 'Deploy and run the web app',
|
||||
subtitle: 'How to build, push and run the project remotely',
|
||||
content : `<h2 class="text-2xl sm:text-3xl">Deploy and run the web app</h1> ${demoCourseContent}`
|
||||
content : `<h2 class="text-2xl sm:text-3xl">Deploy and run the web app</h1> ${demoCourseContent}`,
|
||||
},
|
||||
{
|
||||
order : 5,
|
||||
title : 'The Functions Directory',
|
||||
subtitle: 'Introducing the Functions and Functions Directory',
|
||||
content : `<h2 class="text-2xl sm:text-3xl">The Functions Directory</h1> ${demoCourseContent}`
|
||||
content : `<h2 class="text-2xl sm:text-3xl">The Functions Directory</h1> ${demoCourseContent}`,
|
||||
},
|
||||
{
|
||||
order : 6,
|
||||
title : 'Import the Cloud Functions and Firebase Admin modules',
|
||||
subtitle: 'Create your first Function and run it to administer your app',
|
||||
content : `<h2 class="text-2xl sm:text-3xl">Import the Cloud Functions and Firebase Admin modules</h1> ${demoCourseContent}`
|
||||
content : `<h2 class="text-2xl sm:text-3xl">Import the Cloud Functions and Firebase Admin modules</h1> ${demoCourseContent}`,
|
||||
},
|
||||
{
|
||||
order : 7,
|
||||
title : 'Welcome New Users',
|
||||
subtitle: 'How to create a welcome message for the new users',
|
||||
content : `<h2 class="text-2xl sm:text-3xl">Welcome New Users</h1> ${demoCourseContent}`
|
||||
content : `<h2 class="text-2xl sm:text-3xl">Welcome New Users</h1> ${demoCourseContent}`,
|
||||
},
|
||||
{
|
||||
order : 8,
|
||||
title : 'Images moderation',
|
||||
subtitle: 'How to moderate images; crop, resize, optimize',
|
||||
content : `<h2 class="text-2xl sm:text-3xl">Images moderation</h1> ${demoCourseContent}`
|
||||
content : `<h2 class="text-2xl sm:text-3xl">Images moderation</h1> ${demoCourseContent}`,
|
||||
},
|
||||
{
|
||||
order : 9,
|
||||
title : 'New Message Notifications',
|
||||
subtitle: 'How to create and push a notification to a user',
|
||||
content : `<h2 class="text-2xl sm:text-3xl">New Message Notifications</h1> ${demoCourseContent}`
|
||||
content : `<h2 class="text-2xl sm:text-3xl">New Message Notifications</h1> ${demoCourseContent}`,
|
||||
},
|
||||
{
|
||||
order : 10,
|
||||
title : 'Congratulations!',
|
||||
subtitle: 'Nice work, you have created your first application',
|
||||
content : `<h2 class="text-2xl sm:text-3xl">Congratulations!</h1> ${demoCourseContent}`
|
||||
}
|
||||
content : `<h2 class="text-2xl sm:text-3xl">Congratulations!</h1> ${demoCourseContent}`,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { assign, cloneDeep, omit } from 'lodash-es';
|
||||
import { FuseMockApiService } from '@fuse/lib/mock-api';
|
||||
import { chats as chatsData, contacts as contactsData, messages as messagesData, profile as profileData } from 'app/mock-api/apps/chat/data';
|
||||
import { assign, cloneDeep, omit } from 'lodash-es';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class ChatMockApi
|
||||
{
|
||||
@@ -31,8 +31,8 @@ export class ChatMockApi
|
||||
...message,
|
||||
chatId : chat.id,
|
||||
contactId: message.contactId === 'me' ? this._profile.id : chat.contactId,
|
||||
isMine : message.contactId === 'me'
|
||||
}))
|
||||
isMine : message.contactId === 'me',
|
||||
})),
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -50,7 +50,8 @@ export class ChatMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/chat/chats')
|
||||
.reply(() => {
|
||||
.reply(() =>
|
||||
{
|
||||
|
||||
// Clone the chats
|
||||
const chats = cloneDeep(this._chats);
|
||||
@@ -64,7 +65,8 @@ export class ChatMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/chat/chat')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the chat id
|
||||
const id = request.params.get('id');
|
||||
@@ -84,7 +86,8 @@ export class ChatMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPatch('api/apps/chat/chat')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id and chat
|
||||
const id = request.body.id;
|
||||
@@ -94,7 +97,8 @@ export class ChatMockApi
|
||||
let updatedChat = null;
|
||||
|
||||
// Find the chat and update it
|
||||
this._chats.forEach((item, index, chats) => {
|
||||
this._chats.forEach((item, index, chats) =>
|
||||
{
|
||||
|
||||
if ( item.id === id )
|
||||
{
|
||||
@@ -115,7 +119,8 @@ export class ChatMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/chat/contacts')
|
||||
.reply(() => {
|
||||
.reply(() =>
|
||||
{
|
||||
|
||||
// Clone the contacts
|
||||
let contacts = cloneDeep(this._contacts);
|
||||
@@ -135,7 +140,8 @@ export class ChatMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/chat/contact')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the contact id
|
||||
const id = request.params.get('id');
|
||||
@@ -155,7 +161,8 @@ export class ChatMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/chat/profile')
|
||||
.reply(() => {
|
||||
.reply(() =>
|
||||
{
|
||||
|
||||
// Clone the profile
|
||||
const profile = cloneDeep(this._profile);
|
||||
|
||||
+727
-652
File diff suppressed because it is too large
Load Diff
@@ -1,11 +1,11 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { from, map } from 'rxjs';
|
||||
import { assign, cloneDeep } from 'lodash-es';
|
||||
import { FuseMockApiService, FuseMockApiUtils } from '@fuse/lib/mock-api';
|
||||
import { contacts as contactsData, countries as countriesData, tags as tagsData } from 'app/mock-api/apps/contacts/data';
|
||||
import { assign, cloneDeep } from 'lodash-es';
|
||||
import { from, map } from 'rxjs';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class ContactsMockApi
|
||||
{
|
||||
@@ -36,7 +36,8 @@ export class ContactsMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/contacts/all')
|
||||
.reply(() => {
|
||||
.reply(() =>
|
||||
{
|
||||
|
||||
// Clone the contacts
|
||||
const contacts = cloneDeep(this._contacts);
|
||||
@@ -53,7 +54,8 @@ export class ContactsMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/contacts/search')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the search query
|
||||
const query = request.params.get('query');
|
||||
@@ -80,7 +82,8 @@ export class ContactsMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/contacts/contact')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id from the params
|
||||
const id = request.params.get('id');
|
||||
@@ -100,7 +103,8 @@ export class ContactsMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPost('api/apps/contacts/contact')
|
||||
.reply(() => {
|
||||
.reply(() =>
|
||||
{
|
||||
|
||||
// Generate a new contact
|
||||
const newContact = {
|
||||
@@ -111,12 +115,12 @@ export class ContactsMockApi
|
||||
phoneNumbers: [],
|
||||
job : {
|
||||
title : '',
|
||||
company: ''
|
||||
company: '',
|
||||
},
|
||||
birthday : null,
|
||||
address : null,
|
||||
notes : null,
|
||||
tags : []
|
||||
tags : [],
|
||||
};
|
||||
|
||||
// Unshift the new contact
|
||||
@@ -131,7 +135,8 @@ export class ContactsMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPatch('api/apps/contacts/contact')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id and contact
|
||||
const id = request.body.id;
|
||||
@@ -141,7 +146,8 @@ export class ContactsMockApi
|
||||
let updatedContact = null;
|
||||
|
||||
// Find the contact and update it
|
||||
this._contacts.forEach((item, index, contacts) => {
|
||||
this._contacts.forEach((item, index, contacts) =>
|
||||
{
|
||||
|
||||
if ( item.id === id )
|
||||
{
|
||||
@@ -162,13 +168,15 @@ export class ContactsMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onDelete('api/apps/contacts/contact')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id
|
||||
const id = request.params.get('id');
|
||||
|
||||
// Find the contact and delete it
|
||||
this._contacts.forEach((item, index) => {
|
||||
this._contacts.forEach((item, index) =>
|
||||
{
|
||||
|
||||
if ( item.id === id )
|
||||
{
|
||||
@@ -199,7 +207,8 @@ export class ContactsMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPost('api/apps/contacts/tag')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the tag
|
||||
const newTag = cloneDeep(request.body.tag);
|
||||
@@ -219,7 +228,8 @@ export class ContactsMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPatch('api/apps/contacts/tag')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id and tag
|
||||
const id = request.body.id;
|
||||
@@ -229,7 +239,8 @@ export class ContactsMockApi
|
||||
let updatedTag = null;
|
||||
|
||||
// Find the tag and update it
|
||||
this._tags.forEach((item, index, tags) => {
|
||||
this._tags.forEach((item, index, tags) =>
|
||||
{
|
||||
|
||||
if ( item.id === id )
|
||||
{
|
||||
@@ -250,13 +261,15 @@ export class ContactsMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onDelete('api/apps/contacts/tag')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id
|
||||
const id = request.params.get('id');
|
||||
|
||||
// Find the tag and delete it
|
||||
this._tags.forEach((item, index) => {
|
||||
this._tags.forEach((item, index) =>
|
||||
{
|
||||
|
||||
if ( item.id === id )
|
||||
{
|
||||
@@ -268,7 +281,8 @@ export class ContactsMockApi
|
||||
const contactsWithTag = this._contacts.filter(contact => contact.tags.indexOf(id) > -1);
|
||||
|
||||
// Iterate through them and delete the tag
|
||||
contactsWithTag.forEach((contact) => {
|
||||
contactsWithTag.forEach((contact) =>
|
||||
{
|
||||
contact.tags.splice(contact.tags.indexOf(id), 1);
|
||||
});
|
||||
|
||||
@@ -288,18 +302,21 @@ export class ContactsMockApi
|
||||
const readAsDataURL = (file: File): Promise<any> =>
|
||||
|
||||
// Return a new promise
|
||||
new Promise((resolve, reject) => {
|
||||
new Promise((resolve, reject) =>
|
||||
{
|
||||
|
||||
// Create a new reader
|
||||
const reader = new FileReader();
|
||||
|
||||
// Resolve the promise on success
|
||||
reader.onload = (): void => {
|
||||
reader.onload = (): void =>
|
||||
{
|
||||
resolve(reader.result);
|
||||
};
|
||||
|
||||
// Reject the promise on error
|
||||
reader.onerror = (e): void => {
|
||||
reader.onerror = (e): void =>
|
||||
{
|
||||
reject(e);
|
||||
};
|
||||
|
||||
@@ -310,7 +327,8 @@ export class ContactsMockApi
|
||||
|
||||
this._fuseMockApiService
|
||||
.onPost('api/apps/contacts/avatar')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id and avatar
|
||||
const id = request.body.id;
|
||||
@@ -326,10 +344,12 @@ export class ContactsMockApi
|
||||
// the src attribute of the img tag works with both image urls
|
||||
// and encoded images.
|
||||
return from(readAsDataURL(avatar)).pipe(
|
||||
map((path) => {
|
||||
map((path) =>
|
||||
{
|
||||
|
||||
// Find the contact and update it
|
||||
this._contacts.forEach((item, index, contacts) => {
|
||||
this._contacts.forEach((item, index, contacts) =>
|
||||
{
|
||||
|
||||
if ( item.id === id )
|
||||
{
|
||||
@@ -343,7 +363,7 @@ export class ContactsMockApi
|
||||
|
||||
// Return the response
|
||||
return [200, updatedContact];
|
||||
})
|
||||
}),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,10 +1,10 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { assign, cloneDeep } from 'lodash-es';
|
||||
import { FuseMockApiService, FuseMockApiUtils } from '@fuse/lib/mock-api';
|
||||
import { brands as brandsData, categories as categoriesData, products as productsData, tags as tagsData, vendors as vendorsData } from 'app/mock-api/apps/ecommerce/inventory/data';
|
||||
import { assign, cloneDeep } from 'lodash-es';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class ECommerceInventoryMockApi
|
||||
{
|
||||
@@ -51,7 +51,8 @@ export class ECommerceInventoryMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/ecommerce/inventory/products', 300)
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get available queries
|
||||
const search = request.params.get('search');
|
||||
@@ -66,7 +67,8 @@ export class ECommerceInventoryMockApi
|
||||
// Sort the products
|
||||
if ( sort === 'sku' || sort === 'name' || sort === 'active' )
|
||||
{
|
||||
products.sort((a, b) => {
|
||||
products.sort((a, b) =>
|
||||
{
|
||||
const fieldA = a[sort].toString().toUpperCase();
|
||||
const fieldB = b[sort].toString().toUpperCase();
|
||||
return order === 'asc' ? fieldA.localeCompare(fieldB) : fieldB.localeCompare(fieldA);
|
||||
@@ -103,7 +105,7 @@ export class ECommerceInventoryMockApi
|
||||
{
|
||||
products = null;
|
||||
pagination = {
|
||||
lastPage
|
||||
lastPage,
|
||||
};
|
||||
}
|
||||
else
|
||||
@@ -118,7 +120,7 @@ export class ECommerceInventoryMockApi
|
||||
page : page,
|
||||
lastPage : lastPage,
|
||||
startIndex: begin,
|
||||
endIndex : end - 1
|
||||
endIndex : end - 1,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -127,8 +129,8 @@ export class ECommerceInventoryMockApi
|
||||
200,
|
||||
{
|
||||
products,
|
||||
pagination
|
||||
}
|
||||
pagination,
|
||||
},
|
||||
];
|
||||
});
|
||||
|
||||
@@ -137,7 +139,8 @@ export class ECommerceInventoryMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/ecommerce/inventory/product')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id from the params
|
||||
const id = request.params.get('id');
|
||||
@@ -157,7 +160,8 @@ export class ECommerceInventoryMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPost('api/apps/ecommerce/inventory/product')
|
||||
.reply(() => {
|
||||
.reply(() =>
|
||||
{
|
||||
|
||||
// Generate a new product
|
||||
const newProduct = {
|
||||
@@ -179,7 +183,7 @@ export class ECommerceInventoryMockApi
|
||||
weight : '',
|
||||
thumbnail : '',
|
||||
images : [],
|
||||
active : false
|
||||
active : false,
|
||||
};
|
||||
|
||||
// Unshift the new product
|
||||
@@ -194,7 +198,8 @@ export class ECommerceInventoryMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPatch('api/apps/ecommerce/inventory/product')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id and product
|
||||
const id = request.body.id;
|
||||
@@ -204,7 +209,8 @@ export class ECommerceInventoryMockApi
|
||||
let updatedProduct = null;
|
||||
|
||||
// Find the product and update it
|
||||
this._products.forEach((item, index, products) => {
|
||||
this._products.forEach((item, index, products) =>
|
||||
{
|
||||
|
||||
if ( item.id === id )
|
||||
{
|
||||
@@ -225,13 +231,15 @@ export class ECommerceInventoryMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onDelete('api/apps/ecommerce/inventory/product')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id
|
||||
const id = request.params.get('id');
|
||||
|
||||
// Find the product and delete it
|
||||
this._products.forEach((item, index) => {
|
||||
this._products.forEach((item, index) =>
|
||||
{
|
||||
|
||||
if ( item.id === id )
|
||||
{
|
||||
@@ -255,7 +263,8 @@ export class ECommerceInventoryMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPost('api/apps/ecommerce/inventory/tag')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the tag
|
||||
const newTag = cloneDeep(request.body.tag);
|
||||
@@ -275,7 +284,8 @@ export class ECommerceInventoryMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPatch('api/apps/ecommerce/inventory/tag')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id and tag
|
||||
const id = request.body.id;
|
||||
@@ -285,7 +295,8 @@ export class ECommerceInventoryMockApi
|
||||
let updatedTag = null;
|
||||
|
||||
// Find the tag and update it
|
||||
this._tags.forEach((item, index, tags) => {
|
||||
this._tags.forEach((item, index, tags) =>
|
||||
{
|
||||
|
||||
if ( item.id === id )
|
||||
{
|
||||
@@ -306,13 +317,15 @@ export class ECommerceInventoryMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onDelete('api/apps/ecommerce/inventory/tag')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id
|
||||
const id = request.params.get('id');
|
||||
|
||||
// Find the tag and delete it
|
||||
this._tags.forEach((item, index) => {
|
||||
this._tags.forEach((item, index) =>
|
||||
{
|
||||
|
||||
if ( item.id === id )
|
||||
{
|
||||
@@ -324,7 +337,8 @@ export class ECommerceInventoryMockApi
|
||||
const productsWithTag = this._products.filter(product => product.tags.indexOf(id) > -1);
|
||||
|
||||
// Iterate through them and delete the tag
|
||||
productsWithTag.forEach((product) => {
|
||||
productsWithTag.forEach((product) =>
|
||||
{
|
||||
product.tags.splice(product.tags.indexOf(id), 1);
|
||||
});
|
||||
|
||||
|
||||
@@ -4,106 +4,106 @@ export const categories = [
|
||||
id : 'b899ec30-b85a-40ab-bb1f-18a596d5c6de',
|
||||
parentId: null,
|
||||
name : 'Mens',
|
||||
slug : 'mens'
|
||||
slug : 'mens',
|
||||
},
|
||||
{
|
||||
id : '07986d93-d4eb-4de1-9448-2538407f7254',
|
||||
parentId: null,
|
||||
name : 'Ladies',
|
||||
slug : 'ladies'
|
||||
slug : 'ladies',
|
||||
},
|
||||
{
|
||||
id : 'ad12aa94-3863-47f8-acab-a638ef02a3e9',
|
||||
parentId: null,
|
||||
name : 'Unisex',
|
||||
slug : 'unisex'
|
||||
}
|
||||
slug : 'unisex',
|
||||
},
|
||||
];
|
||||
export const brands = [
|
||||
{
|
||||
id : 'e1789f32-9475-43e7-9256-451d2e3a2282',
|
||||
name: 'Benton',
|
||||
slug: 'benton'
|
||||
slug: 'benton',
|
||||
},
|
||||
{
|
||||
id : '61d52c2a-8947-4a2c-8c35-f36baef45b96',
|
||||
name: 'Capmia',
|
||||
slug: 'capmia'
|
||||
slug: 'capmia',
|
||||
},
|
||||
{
|
||||
id : 'f9987124-7ada-4b93-bef7-35280b3ddbd7',
|
||||
name: 'Lara',
|
||||
slug: 'lara'
|
||||
slug: 'lara',
|
||||
},
|
||||
{
|
||||
id : '5913ee46-a497-41db-a118-ee506011529f',
|
||||
name: 'Premera',
|
||||
slug: 'premera'
|
||||
slug: 'premera',
|
||||
},
|
||||
{
|
||||
id : '2c4d98d8-f334-4125-9596-862515f5526b',
|
||||
name: 'Zeon',
|
||||
slug: 'zeon'
|
||||
}
|
||||
slug: 'zeon',
|
||||
},
|
||||
];
|
||||
export const tags = [
|
||||
{
|
||||
id : '167190fa-51b4-45fc-a742-8ce1b33d24ea',
|
||||
title: 'mens'
|
||||
title: 'mens',
|
||||
},
|
||||
{
|
||||
id : '3baea410-a7d6-4916-b79a-bdce50c37f95',
|
||||
title: 'ladies'
|
||||
title: 'ladies',
|
||||
},
|
||||
{
|
||||
id : '8ec8f60d-552f-4216-9f11-462b95b1d306',
|
||||
title: 'unisex'
|
||||
title: 'unisex',
|
||||
},
|
||||
{
|
||||
id : '8837b93f-388b-43cc-851d-4ca8f23f3a61',
|
||||
title: '44mm'
|
||||
title: '44mm',
|
||||
},
|
||||
{
|
||||
id : '8f868ddb-d4a2-461d-bc3b-d7c8668687c3',
|
||||
title: '40mm'
|
||||
title: '40mm',
|
||||
},
|
||||
{
|
||||
id : '2300ac48-f268-466a-b765-8b878b6e14a7',
|
||||
title: '5 ATM'
|
||||
title: '5 ATM',
|
||||
},
|
||||
{
|
||||
id : '0b11b742-3125-4d75-9a6f-84af7fde1969',
|
||||
title: '10 ATM'
|
||||
title: '10 ATM',
|
||||
},
|
||||
{
|
||||
id : '0fc39efd-f640-41f8-95a5-3f1d749df200',
|
||||
title: 'automatic'
|
||||
title: 'automatic',
|
||||
},
|
||||
{
|
||||
id : '7d6dd47e-7472-4f8b-93d4-46c114c44533',
|
||||
title: 'chronograph'
|
||||
title: 'chronograph',
|
||||
},
|
||||
{
|
||||
id : 'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
title: 'watch'
|
||||
}
|
||||
title: 'watch',
|
||||
},
|
||||
];
|
||||
export const vendors = [
|
||||
{
|
||||
id : '987dd10a-43b1-49f9-bfd9-05bb2dbc7029',
|
||||
name: 'Evel',
|
||||
slug: 'evel'
|
||||
slug: 'evel',
|
||||
},
|
||||
{
|
||||
id : '998b0c07-abfd-4ba3-8de1-7563ef3c4d57',
|
||||
name: 'Mivon',
|
||||
slug: 'mivon'
|
||||
slug: 'mivon',
|
||||
},
|
||||
{
|
||||
id : '05ebb527-d733-46a9-acfb-a4e4ec960024',
|
||||
name: 'Neogen',
|
||||
slug: 'neogen'
|
||||
}
|
||||
slug: 'neogen',
|
||||
},
|
||||
];
|
||||
export const products = [
|
||||
{
|
||||
@@ -116,7 +116,7 @@ export const products = [
|
||||
'7d6dd47e-7472-4f8b-93d4-46c114c44533',
|
||||
'8837b93f-388b-43cc-851d-4ca8f23f3a61',
|
||||
'2300ac48-f268-466a-b765-8b878b6e14a7',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'ETV-2425',
|
||||
barcode : '8346201275534',
|
||||
@@ -133,9 +133,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-01-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-01-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-01-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-01-03.jpg',
|
||||
],
|
||||
active : true
|
||||
active : true,
|
||||
},
|
||||
{
|
||||
id : '00b0292f-3d50-4669-a0c4-7a9d85efc98d',
|
||||
@@ -147,7 +147,7 @@ export const products = [
|
||||
'7d6dd47e-7472-4f8b-93d4-46c114c44533',
|
||||
'8f868ddb-d4a2-461d-bc3b-d7c8668687c3',
|
||||
'0b11b742-3125-4d75-9a6f-84af7fde1969',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'ATH-7573',
|
||||
barcode : '8278968055700',
|
||||
@@ -164,9 +164,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-02-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-02-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-02-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-02-03.jpg',
|
||||
],
|
||||
active : true
|
||||
active : true,
|
||||
},
|
||||
{
|
||||
id : '3f34e2fb-95bf-4f61-be28-956d2c7e4eb2',
|
||||
@@ -178,7 +178,7 @@ export const products = [
|
||||
'0fc39efd-f640-41f8-95a5-3f1d749df200',
|
||||
'8837b93f-388b-43cc-851d-4ca8f23f3a61',
|
||||
'2300ac48-f268-466a-b765-8b878b6e14a7',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'ADH-1921',
|
||||
barcode : '8808746892183',
|
||||
@@ -195,9 +195,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-03-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-03-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-03-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-03-03.jpg',
|
||||
],
|
||||
active : false
|
||||
active : false,
|
||||
},
|
||||
{
|
||||
id : '8fcce528-d878-4cc8-99f7-bd3451ed5405',
|
||||
@@ -209,7 +209,7 @@ export const products = [
|
||||
'7d6dd47e-7472-4f8b-93d4-46c114c44533',
|
||||
'8837b93f-388b-43cc-851d-4ca8f23f3a61',
|
||||
'0b11b742-3125-4d75-9a6f-84af7fde1969',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'EAP-7752',
|
||||
barcode : '8866355574164',
|
||||
@@ -226,9 +226,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-04-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-04-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-04-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-04-03.jpg',
|
||||
],
|
||||
active : true
|
||||
active : true,
|
||||
},
|
||||
{
|
||||
id : '91d96e18-d3f5-4c32-a8bf-1fc525cb92c0',
|
||||
@@ -240,7 +240,7 @@ export const products = [
|
||||
'0fc39efd-f640-41f8-95a5-3f1d749df200',
|
||||
'8f868ddb-d4a2-461d-bc3b-d7c8668687c3',
|
||||
'2300ac48-f268-466a-b765-8b878b6e14a7',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'ADP-5745',
|
||||
barcode : '8390590339828',
|
||||
@@ -257,9 +257,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-05-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-05-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-05-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-05-03.jpg',
|
||||
],
|
||||
active : false
|
||||
active : false,
|
||||
},
|
||||
{
|
||||
id : 'd7a47d7c-4cdf-4319-bbaa-37ade38c622c',
|
||||
@@ -271,7 +271,7 @@ export const products = [
|
||||
'7d6dd47e-7472-4f8b-93d4-46c114c44533',
|
||||
'8837b93f-388b-43cc-851d-4ca8f23f3a61',
|
||||
'0b11b742-3125-4d75-9a6f-84af7fde1969',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'ATV-2569',
|
||||
barcode : '8238990048137',
|
||||
@@ -288,9 +288,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-06-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-06-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-06-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-06-03.jpg',
|
||||
],
|
||||
active : true
|
||||
active : true,
|
||||
},
|
||||
{
|
||||
id : 'ecf0b3df-38c3-45dc-972b-c509a3dc053e',
|
||||
@@ -302,7 +302,7 @@ export const products = [
|
||||
'7d6dd47e-7472-4f8b-93d4-46c114c44533',
|
||||
'8837b93f-388b-43cc-851d-4ca8f23f3a61',
|
||||
'0b11b742-3125-4d75-9a6f-84af7fde1969',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'EAH-2563',
|
||||
barcode : '8638426908385',
|
||||
@@ -319,9 +319,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-07-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-07-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-07-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-07-03.jpg',
|
||||
],
|
||||
active : false
|
||||
active : false,
|
||||
},
|
||||
{
|
||||
id : '5765080a-aaee-40b9-86be-c18b9d79c73c',
|
||||
@@ -333,7 +333,7 @@ export const products = [
|
||||
'0fc39efd-f640-41f8-95a5-3f1d749df200',
|
||||
'8f868ddb-d4a2-461d-bc3b-d7c8668687c3',
|
||||
'0b11b742-3125-4d75-9a6f-84af7fde1969',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'ATH-6399',
|
||||
barcode : '8881883828441',
|
||||
@@ -350,9 +350,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-08-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-08-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-08-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-08-03.jpg',
|
||||
],
|
||||
active : false
|
||||
active : false,
|
||||
},
|
||||
{
|
||||
id : '6e71be88-b225-474c-91e5-111ced7d6220',
|
||||
@@ -364,7 +364,7 @@ export const products = [
|
||||
'7d6dd47e-7472-4f8b-93d4-46c114c44533',
|
||||
'8f868ddb-d4a2-461d-bc3b-d7c8668687c3',
|
||||
'2300ac48-f268-466a-b765-8b878b6e14a7',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'ELH-2495',
|
||||
barcode : '8268777127281',
|
||||
@@ -381,9 +381,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-09-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-09-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-09-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-09-03.jpg',
|
||||
],
|
||||
active : false
|
||||
active : false,
|
||||
},
|
||||
{
|
||||
id : '51242500-6983-4a78-bff3-d278eb4e3a57',
|
||||
@@ -395,7 +395,7 @@ export const products = [
|
||||
'0fc39efd-f640-41f8-95a5-3f1d749df200',
|
||||
'8837b93f-388b-43cc-851d-4ca8f23f3a61',
|
||||
'0b11b742-3125-4d75-9a6f-84af7fde1969',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'ATT-6019',
|
||||
barcode : '8452763551765',
|
||||
@@ -412,9 +412,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-10-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-10-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-10-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-10-03.jpg',
|
||||
],
|
||||
active : true
|
||||
active : true,
|
||||
},
|
||||
{
|
||||
id : '844a4395-233f-4ffb-85bd-7baa0e490a88',
|
||||
@@ -426,7 +426,7 @@ export const products = [
|
||||
'7d6dd47e-7472-4f8b-93d4-46c114c44533',
|
||||
'8837b93f-388b-43cc-851d-4ca8f23f3a61',
|
||||
'2300ac48-f268-466a-b765-8b878b6e14a7',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'ADH-2335',
|
||||
barcode : '8385907318041',
|
||||
@@ -443,9 +443,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-11-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-11-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-11-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-11-03.jpg',
|
||||
],
|
||||
active : false
|
||||
active : false,
|
||||
},
|
||||
{
|
||||
id : '7520f1b6-3c45-46ef-a4d5-881971212d1e',
|
||||
@@ -457,7 +457,7 @@ export const products = [
|
||||
'0fc39efd-f640-41f8-95a5-3f1d749df200',
|
||||
'8f868ddb-d4a2-461d-bc3b-d7c8668687c3',
|
||||
'0b11b742-3125-4d75-9a6f-84af7fde1969',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'ATH-3064',
|
||||
barcode : '8608510561856',
|
||||
@@ -474,9 +474,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-12-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-12-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-12-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-12-03.jpg',
|
||||
],
|
||||
active : false
|
||||
active : false,
|
||||
},
|
||||
{
|
||||
id : '683e41d8-6ebc-4e6a-a7c1-9189ca52ef19',
|
||||
@@ -488,7 +488,7 @@ export const products = [
|
||||
'7d6dd47e-7472-4f8b-93d4-46c114c44533',
|
||||
'8837b93f-388b-43cc-851d-4ca8f23f3a61',
|
||||
'0b11b742-3125-4d75-9a6f-84af7fde1969',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'ADV-3188',
|
||||
barcode : '8334758988643',
|
||||
@@ -505,9 +505,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-13-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-13-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-13-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-13-03.jpg',
|
||||
],
|
||||
active : false
|
||||
active : false,
|
||||
},
|
||||
{
|
||||
id : 'd4e52238-292d-462b-b9bb-1751030132e2',
|
||||
@@ -519,7 +519,7 @@ export const products = [
|
||||
'7d6dd47e-7472-4f8b-93d4-46c114c44533',
|
||||
'8f868ddb-d4a2-461d-bc3b-d7c8668687c3',
|
||||
'2300ac48-f268-466a-b765-8b878b6e14a7',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'ATT-7423',
|
||||
barcode : '8417153336369',
|
||||
@@ -536,9 +536,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-14-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-14-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-14-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-14-03.jpg',
|
||||
],
|
||||
active : false
|
||||
active : false,
|
||||
},
|
||||
{
|
||||
id : '98861dfc-0d21-4fd5-81aa-49785d003d95',
|
||||
@@ -550,7 +550,7 @@ export const products = [
|
||||
'0fc39efd-f640-41f8-95a5-3f1d749df200',
|
||||
'8837b93f-388b-43cc-851d-4ca8f23f3a61',
|
||||
'0b11b742-3125-4d75-9a6f-84af7fde1969',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'AAT-6453',
|
||||
barcode : '8501386761670',
|
||||
@@ -567,9 +567,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-15-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-15-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-15-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-15-03.jpg',
|
||||
],
|
||||
active : false
|
||||
active : false,
|
||||
},
|
||||
{
|
||||
id : 'a71f9b10-e884-4aad-9810-29fe10ce6d42',
|
||||
@@ -581,7 +581,7 @@ export const products = [
|
||||
'7d6dd47e-7472-4f8b-93d4-46c114c44533',
|
||||
'8f868ddb-d4a2-461d-bc3b-d7c8668687c3',
|
||||
'2300ac48-f268-466a-b765-8b878b6e14a7',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'AAP-4902',
|
||||
barcode : '8847387136582',
|
||||
@@ -598,9 +598,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-16-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-16-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-16-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-16-03.jpg',
|
||||
],
|
||||
active : false
|
||||
active : false,
|
||||
},
|
||||
{
|
||||
id : '149e6db5-4ecc-4021-bc56-08b27514a746',
|
||||
@@ -612,7 +612,7 @@ export const products = [
|
||||
'7d6dd47e-7472-4f8b-93d4-46c114c44533',
|
||||
'8f868ddb-d4a2-461d-bc3b-d7c8668687c3',
|
||||
'2300ac48-f268-466a-b765-8b878b6e14a7',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'ALV-194',
|
||||
barcode : '8860845382207',
|
||||
@@ -629,9 +629,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-17-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-17-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-17-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-17-03.jpg',
|
||||
],
|
||||
active : false
|
||||
active : false,
|
||||
},
|
||||
{
|
||||
id : '655287de-2e24-41f3-a82f-8b08548ecc39',
|
||||
@@ -643,7 +643,7 @@ export const products = [
|
||||
'0fc39efd-f640-41f8-95a5-3f1d749df200',
|
||||
'8837b93f-388b-43cc-851d-4ca8f23f3a61',
|
||||
'0b11b742-3125-4d75-9a6f-84af7fde1969',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'ADH-5492',
|
||||
barcode : '8611606513571',
|
||||
@@ -660,9 +660,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-18-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-18-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-18-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-18-03.jpg',
|
||||
],
|
||||
active : true
|
||||
active : true,
|
||||
},
|
||||
{
|
||||
id : 'c215b427-d840-4537-aea1-a9bdfa49441b',
|
||||
@@ -674,7 +674,7 @@ export const products = [
|
||||
'0fc39efd-f640-41f8-95a5-3f1d749df200',
|
||||
'8f868ddb-d4a2-461d-bc3b-d7c8668687c3',
|
||||
'0b11b742-3125-4d75-9a6f-84af7fde1969',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'AAT-6702',
|
||||
barcode : '8330223562386',
|
||||
@@ -691,9 +691,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-19-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-19-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-19-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-19-03.jpg',
|
||||
],
|
||||
active : true
|
||||
active : true,
|
||||
},
|
||||
{
|
||||
id : '8b1d9366-891e-49cd-aafb-ac65ce2741e2',
|
||||
@@ -705,7 +705,7 @@ export const products = [
|
||||
'0fc39efd-f640-41f8-95a5-3f1d749df200',
|
||||
'8f868ddb-d4a2-461d-bc3b-d7c8668687c3',
|
||||
'0b11b742-3125-4d75-9a6f-84af7fde1969',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'EDH-5599',
|
||||
barcode : '8309212335274',
|
||||
@@ -722,9 +722,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-20-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-20-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-20-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-20-03.jpg',
|
||||
],
|
||||
active : false
|
||||
active : false,
|
||||
},
|
||||
{
|
||||
id : '54e29534-518b-4006-b72a-f21fac6c4d5e',
|
||||
@@ -736,7 +736,7 @@ export const products = [
|
||||
'7d6dd47e-7472-4f8b-93d4-46c114c44533',
|
||||
'8837b93f-388b-43cc-851d-4ca8f23f3a61',
|
||||
'0b11b742-3125-4d75-9a6f-84af7fde1969',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'ADP-3719',
|
||||
barcode : '8879167838673',
|
||||
@@ -753,9 +753,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-21-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-21-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-21-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-21-03.jpg',
|
||||
],
|
||||
active : false
|
||||
active : false,
|
||||
},
|
||||
{
|
||||
id : '6a5726e8-c467-45ea-92ab-d83235a06405',
|
||||
@@ -767,7 +767,7 @@ export const products = [
|
||||
'7d6dd47e-7472-4f8b-93d4-46c114c44533',
|
||||
'8837b93f-388b-43cc-851d-4ca8f23f3a61',
|
||||
'0b11b742-3125-4d75-9a6f-84af7fde1969',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'ATH-3399',
|
||||
barcode : '8356410903599',
|
||||
@@ -784,9 +784,9 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-22-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-22-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-22-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-22-03.jpg',
|
||||
],
|
||||
active : false
|
||||
active : false,
|
||||
},
|
||||
{
|
||||
id : 'd7d1d6df-e91f-4c53-982a-2720bc2b4cdd',
|
||||
@@ -798,7 +798,7 @@ export const products = [
|
||||
'0fc39efd-f640-41f8-95a5-3f1d749df200',
|
||||
'8f868ddb-d4a2-461d-bc3b-d7c8668687c3',
|
||||
'0b11b742-3125-4d75-9a6f-84af7fde1969',
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3'
|
||||
'b1286f3a-e2d0-4237-882b-f0efc0819ec3',
|
||||
],
|
||||
sku : 'EAV-4030',
|
||||
barcode : '8545771786193',
|
||||
@@ -815,8 +815,8 @@ export const products = [
|
||||
images : [
|
||||
'assets/images/apps/ecommerce/products/watch-23-01.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-23-02.jpg',
|
||||
'assets/images/apps/ecommerce/products/watch-23-03.jpg'
|
||||
'assets/images/apps/ecommerce/products/watch-23-03.jpg',
|
||||
],
|
||||
active : true
|
||||
}
|
||||
active : true,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
import { FuseMockApiService } from '@fuse/lib/mock-api/mock-api.service';
|
||||
import { items as itemsData } from 'app/mock-api/apps/file-manager/data';
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class FileManagerMockApi
|
||||
{
|
||||
@@ -33,7 +33,8 @@ export class FileManagerMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/file-manager')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Clone the items
|
||||
let items = cloneDeep(this._items);
|
||||
@@ -85,8 +86,8 @@ export class FileManagerMockApi
|
||||
{
|
||||
folders,
|
||||
files,
|
||||
path
|
||||
}
|
||||
path,
|
||||
},
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ export const items = [
|
||||
size : '87 MB',
|
||||
type : 'folder',
|
||||
contents : '57 files',
|
||||
description: 'Personal documents such as insurance policies, tax papers and etc.'
|
||||
description: 'Personal documents such as insurance policies, tax papers and etc.',
|
||||
},
|
||||
{
|
||||
id : '6da8747f-b474-4c9a-9eba-5ef212285500',
|
||||
@@ -22,7 +22,7 @@ export const items = [
|
||||
size : '3015 MB',
|
||||
type : 'folder',
|
||||
contents : '907 files',
|
||||
description: 'Personal photos; selfies, family, vacation and etc.'
|
||||
description: 'Personal photos; selfies, family, vacation and etc.',
|
||||
},
|
||||
{
|
||||
id : 'ed58add1-45a7-41db-887d-3ca7ee7f2719',
|
||||
@@ -34,7 +34,7 @@ export const items = [
|
||||
size : '14 MB',
|
||||
type : 'folder',
|
||||
contents : '24 files',
|
||||
description: 'Work related files, mainly documents and paychecks.'
|
||||
description: 'Work related files, mainly documents and paychecks.',
|
||||
},
|
||||
{
|
||||
id : '5cb66e32-d1ac-4b9a-8c34-5991ce25add2',
|
||||
@@ -46,7 +46,7 @@ export const items = [
|
||||
size : '1.2 MB',
|
||||
type : 'PDF',
|
||||
contents : null,
|
||||
description: null
|
||||
description: null,
|
||||
},
|
||||
{
|
||||
id : '3ffc3d84-8f2d-4929-903a-ef6fc21657a7',
|
||||
@@ -58,7 +58,7 @@ export const items = [
|
||||
size : '679 KB',
|
||||
type : 'XLS',
|
||||
contents : null,
|
||||
description: null
|
||||
description: null,
|
||||
},
|
||||
{
|
||||
id : '157adb9a-14f8-4559-ac93-8be893c9f80a',
|
||||
@@ -70,7 +70,7 @@ export const items = [
|
||||
size : '1.5 MB',
|
||||
type : 'DOC',
|
||||
contents : null,
|
||||
description: null
|
||||
description: null,
|
||||
},
|
||||
{
|
||||
id : '4f64597a-df7e-461c-ad60-f33e5f7e0747',
|
||||
@@ -82,7 +82,7 @@ export const items = [
|
||||
size : '17.8 MB',
|
||||
type : 'PDF',
|
||||
contents : null,
|
||||
description: null
|
||||
description: null,
|
||||
},
|
||||
{
|
||||
id : 'e445c445-57b2-4476-8c62-b068e3774b8e',
|
||||
@@ -94,7 +94,7 @@ export const items = [
|
||||
size : '11.3 MB',
|
||||
type : 'TXT',
|
||||
contents : null,
|
||||
description: null
|
||||
description: null,
|
||||
},
|
||||
{
|
||||
id : 'b482f93e-7847-4614-ad48-b78b78309f81',
|
||||
@@ -106,7 +106,7 @@ export const items = [
|
||||
size : '9.3 MB',
|
||||
type : 'TXT',
|
||||
contents : null,
|
||||
description: null
|
||||
description: null,
|
||||
},
|
||||
{
|
||||
id : 'ec07a98d-2e5b-422c-a9b2-b5d1c0e263f5',
|
||||
@@ -118,7 +118,7 @@ export const items = [
|
||||
size : '4.3 MB',
|
||||
type : 'DOC',
|
||||
contents : null,
|
||||
description: null
|
||||
description: null,
|
||||
},
|
||||
{
|
||||
id : 'ae908d59-07da-4dd8-aba0-124e50289295',
|
||||
@@ -130,7 +130,7 @@ export const items = [
|
||||
size : '4.5 MB',
|
||||
type : 'JPG',
|
||||
contents : null,
|
||||
description: null
|
||||
description: null,
|
||||
},
|
||||
{
|
||||
id : '4038a5b6-5b1a-432d-907c-e037aeb817a8',
|
||||
@@ -142,7 +142,7 @@ export const items = [
|
||||
size : '7.8 MB',
|
||||
type : 'JPG',
|
||||
contents : null,
|
||||
description: null
|
||||
description: null,
|
||||
},
|
||||
{
|
||||
id : '630d2e9a-d110-47a0-ac03-256073a0f56d',
|
||||
@@ -154,7 +154,7 @@ export const items = [
|
||||
size : '7.4 MB',
|
||||
type : 'JPG',
|
||||
contents : null,
|
||||
description: null
|
||||
description: null,
|
||||
},
|
||||
{
|
||||
id : '1417d5ed-b616-4cff-bfab-286677b69d79',
|
||||
@@ -166,7 +166,7 @@ export const items = [
|
||||
size : '2.6 MB',
|
||||
type : 'DOC',
|
||||
contents : null,
|
||||
description: null
|
||||
description: null,
|
||||
},
|
||||
{
|
||||
id : 'bd2817c7-6751-40dc-b252-b6b5634c0689',
|
||||
@@ -178,7 +178,7 @@ export const items = [
|
||||
size : '2.1 MB',
|
||||
type : 'DOC',
|
||||
contents : null,
|
||||
description: null
|
||||
description: null,
|
||||
},
|
||||
{
|
||||
id : '14fb47c9-6eeb-4070-919c-07c8133285d1',
|
||||
@@ -190,7 +190,7 @@ export const items = [
|
||||
size : '943 KB',
|
||||
type : 'XLS',
|
||||
contents : null,
|
||||
description: null
|
||||
description: null,
|
||||
},
|
||||
|
||||
{
|
||||
@@ -203,7 +203,7 @@ export const items = [
|
||||
size : '943 KB',
|
||||
type : 'XLS',
|
||||
contents : null,
|
||||
description: null
|
||||
description: null,
|
||||
},
|
||||
{
|
||||
id : '74010810-16cf-441d-a1aa-c9fb620fceea',
|
||||
@@ -215,7 +215,7 @@ export const items = [
|
||||
size : '3015 MB',
|
||||
type : 'folder',
|
||||
contents : '907 files',
|
||||
description: 'Personal photos; selfies, family, vacation and etc.'
|
||||
description: 'Personal photos; selfies, family, vacation and etc.',
|
||||
},
|
||||
{
|
||||
id : 'a8c73e5a-8114-436d-ab54-d900b50b3762',
|
||||
@@ -227,7 +227,7 @@ export const items = [
|
||||
size : '943 KB',
|
||||
type : 'XLS',
|
||||
contents : null,
|
||||
description: null
|
||||
description: null,
|
||||
},
|
||||
|
||||
{
|
||||
@@ -240,7 +240,7 @@ export const items = [
|
||||
size : '943 KB',
|
||||
type : 'XLS',
|
||||
contents : null,
|
||||
description: null
|
||||
description: null,
|
||||
},
|
||||
{
|
||||
id : '2836766d-27e1-4f40-a31a-5a8419105e7e',
|
||||
@@ -252,6 +252,6 @@ export const items = [
|
||||
size : '943 KB',
|
||||
type : 'XLS',
|
||||
contents : null,
|
||||
description: null
|
||||
}
|
||||
description: null,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
import { FuseMockApiService } from '@fuse/lib/mock-api';
|
||||
import { faqCategories as faqCategoriesData, faqs as faqsData, guideCategories as guideCategoriesData, guideContent as guideContentData, guides as guidesData } from 'app/mock-api/apps/help-center/data';
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class HelpCenterMockApi
|
||||
{
|
||||
@@ -37,7 +37,8 @@ export class HelpCenterMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/help-center/faqs')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the category slug
|
||||
const slug = request.params.get('slug');
|
||||
@@ -55,13 +56,14 @@ export class HelpCenterMockApi
|
||||
if ( !slug )
|
||||
{
|
||||
// Go through each category and set the results
|
||||
categories.forEach((category) => {
|
||||
categories.forEach((category) =>
|
||||
{
|
||||
|
||||
results.push(
|
||||
{
|
||||
...category,
|
||||
faqs: faqs.filter(faq => faq.categoryId === category.id)
|
||||
}
|
||||
faqs: faqs.filter(faq => faq.categoryId === category.id),
|
||||
},
|
||||
);
|
||||
});
|
||||
}
|
||||
@@ -75,8 +77,8 @@ export class HelpCenterMockApi
|
||||
results.push(
|
||||
{
|
||||
...category,
|
||||
faqs: faqs.filter(faq => faq.categoryId === category.id)
|
||||
}
|
||||
faqs: faqs.filter(faq => faq.categoryId === category.id),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -89,7 +91,8 @@ export class HelpCenterMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/help-center/guides')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the slug & limit
|
||||
const slug = request.params.get('slug');
|
||||
@@ -111,15 +114,16 @@ export class HelpCenterMockApi
|
||||
const limitNum = parseInt(limit ?? '5', 10);
|
||||
|
||||
// Go through each category and set the results
|
||||
categories.forEach((category) => {
|
||||
categories.forEach((category) =>
|
||||
{
|
||||
|
||||
results.push(
|
||||
{
|
||||
...category,
|
||||
visibleGuides: limitNum,
|
||||
totalGuides : guides.filter(guide => guide.categoryId === category.id).length,
|
||||
guides : guides.filter(guide => guide.categoryId === category.id).slice(0, limitNum)
|
||||
}
|
||||
guides : guides.filter(guide => guide.categoryId === category.id).slice(0, limitNum),
|
||||
},
|
||||
);
|
||||
});
|
||||
}
|
||||
@@ -133,8 +137,8 @@ export class HelpCenterMockApi
|
||||
results.push(
|
||||
{
|
||||
...category,
|
||||
guides: guides.filter(guide => guide.categoryId === category.id)
|
||||
}
|
||||
guides: guides.filter(guide => guide.categoryId === category.id),
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
@@ -147,7 +151,8 @@ export class HelpCenterMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/help-center/guide')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the slugs
|
||||
const categorySlug = request.params.get('categorySlug');
|
||||
@@ -160,7 +165,7 @@ export class HelpCenterMockApi
|
||||
// Prepare the result
|
||||
const result = {
|
||||
...categories.find(category => category.slug === categorySlug),
|
||||
guides: [guides.find(guide => guide.slug === guideSlug)]
|
||||
guides: [guides.find(guide => guide.slug === guideSlug)],
|
||||
};
|
||||
|
||||
// Add the content to the guide
|
||||
|
||||
@@ -3,28 +3,28 @@ export const faqCategories = [
|
||||
{
|
||||
id : '28924eab-97cc-465a-ba21-f232bb95843f',
|
||||
slug : 'most-asked',
|
||||
title: 'Most asked'
|
||||
title: 'Most asked',
|
||||
},
|
||||
{
|
||||
id : '395b0d41-b9a8-4cd6-8b5c-f07855e82d62',
|
||||
slug : 'general-inquiries',
|
||||
title: 'General inquiries'
|
||||
title: 'General inquiries',
|
||||
},
|
||||
{
|
||||
id : 'b388a87f-bfbb-44d0-800c-0ddbce2a5d22',
|
||||
slug : 'licenses',
|
||||
title: 'Licenses'
|
||||
title: 'Licenses',
|
||||
},
|
||||
{
|
||||
id : '71c34043-d89d-4aca-951d-8606c3943c43',
|
||||
slug : 'payments',
|
||||
title: 'Payments'
|
||||
title: 'Payments',
|
||||
},
|
||||
{
|
||||
id : 'bea49ee0-26da-46ad-97be-116cd7ab416d',
|
||||
slug : 'support',
|
||||
title: 'Support'
|
||||
}
|
||||
title: 'Support',
|
||||
},
|
||||
];
|
||||
export const faqs = [
|
||||
// Most asked
|
||||
@@ -32,207 +32,207 @@ export const faqs = [
|
||||
id : 'f65d517a-6f69-4c88-81f5-416f47405ce1',
|
||||
categoryId: '28924eab-97cc-465a-ba21-f232bb95843f',
|
||||
question : 'Is there a 14-days trial?',
|
||||
answer : 'Magna consectetur culpa duis ad est tempor pariatur velit ullamco aute exercitation magna sunt commodo minim enim aliquip eiusmod ipsum adipisicing magna ipsum reprehenderit lorem magna voluptate magna aliqua culpa.\n\nSit nisi adipisicing pariatur enim enim sunt officia ad labore voluptate magna proident velit excepteur pariatur cillum sit excepteur elit veniam excepteur minim nisi cupidatat proident dolore irure veniam mollit.'
|
||||
answer : 'Magna consectetur culpa duis ad est tempor pariatur velit ullamco aute exercitation magna sunt commodo minim enim aliquip eiusmod ipsum adipisicing magna ipsum reprehenderit lorem magna voluptate magna aliqua culpa.\n\nSit nisi adipisicing pariatur enim enim sunt officia ad labore voluptate magna proident velit excepteur pariatur cillum sit excepteur elit veniam excepteur minim nisi cupidatat proident dolore irure veniam mollit.',
|
||||
},
|
||||
{
|
||||
id : '0fcece82-1691-4b98-a9b9-b63218f9deef',
|
||||
categoryId: '28924eab-97cc-465a-ba21-f232bb95843f',
|
||||
question : 'What’s the benefits of the Premium Membership?',
|
||||
answer : 'Et in lorem qui ipsum deserunt duis exercitation lorem elit qui qui ipsum tempor nulla velit aliquip enim consequat incididunt pariatur duis excepteur elit irure nulla ipsum dolor dolore est.\n\nAute deserunt nostrud id non ipsum do adipisicing laboris in minim officia magna elit minim mollit elit velit veniam lorem pariatur veniam sit excepteur irure commodo excepteur duis quis in.'
|
||||
answer : 'Et in lorem qui ipsum deserunt duis exercitation lorem elit qui qui ipsum tempor nulla velit aliquip enim consequat incididunt pariatur duis excepteur elit irure nulla ipsum dolor dolore est.\n\nAute deserunt nostrud id non ipsum do adipisicing laboris in minim officia magna elit minim mollit elit velit veniam lorem pariatur veniam sit excepteur irure commodo excepteur duis quis in.',
|
||||
},
|
||||
{
|
||||
id : '2e6971cd-49d5-49f1-8cbd-fba5c71e6062',
|
||||
categoryId: '28924eab-97cc-465a-ba21-f232bb95843f',
|
||||
question : 'How much time I will need to learn this app?',
|
||||
answer : 'Id fugiat et cupidatat magna nulla nulla eu cillum officia nostrud dolore in veniam ullamco nulla ex duis est enim nisi aute ipsum velit et laboris est pariatur est culpa.\n\nCulpa sunt ipsum esse quis excepteur enim culpa est voluptate reprehenderit consequat duis officia irure voluptate veniam dolore fugiat dolor est amet nostrud non velit irure do voluptate id sit.'
|
||||
answer : 'Id fugiat et cupidatat magna nulla nulla eu cillum officia nostrud dolore in veniam ullamco nulla ex duis est enim nisi aute ipsum velit et laboris est pariatur est culpa.\n\nCulpa sunt ipsum esse quis excepteur enim culpa est voluptate reprehenderit consequat duis officia irure voluptate veniam dolore fugiat dolor est amet nostrud non velit irure do voluptate id sit.',
|
||||
},
|
||||
{
|
||||
id : '974f93b8-336f-4eec-b011-9ddb412ee828',
|
||||
categoryId: '28924eab-97cc-465a-ba21-f232bb95843f',
|
||||
question : 'Are there any free tutorials available?',
|
||||
answer : 'Excepteur deserunt tempor do lorem elit id magna pariatur irure ullamco elit dolor consectetur ad officia fugiat incididunt do elit aute esse eu voluptate adipisicing incididunt ea dolor aliqua dolor.\n\nConsequat est quis deserunt voluptate ipsum incididunt laboris occaecat irure laborum voluptate non sit labore voluptate sunt id sint ut laboris aute cupidatat occaecat eiusmod non magna aliquip deserunt nisi.'
|
||||
answer : 'Excepteur deserunt tempor do lorem elit id magna pariatur irure ullamco elit dolor consectetur ad officia fugiat incididunt do elit aute esse eu voluptate adipisicing incididunt ea dolor aliqua dolor.\n\nConsequat est quis deserunt voluptate ipsum incididunt laboris occaecat irure laborum voluptate non sit labore voluptate sunt id sint ut laboris aute cupidatat occaecat eiusmod non magna aliquip deserunt nisi.',
|
||||
},
|
||||
{
|
||||
id : '5d877fc7-b881-4527-a6aa-d39d642feb23',
|
||||
categoryId: '28924eab-97cc-465a-ba21-f232bb95843f',
|
||||
question : 'Is there a month-to-month payment option?',
|
||||
answer : 'Labore mollit in aliqua exercitation aliquip elit nisi nisi voluptate reprehenderit et dolor incididunt cupidatat ullamco nulla consequat voluptate adipisicing dolor qui magna sint aute do excepteur in aliqua consectetur.\n\nElit laborum non duis irure ad ullamco aliqua enim exercitation quis fugiat aute esse esse magna et ad cupidatat voluptate sint nulla nulla lorem et enim deserunt proident deserunt consectetur.'
|
||||
answer : 'Labore mollit in aliqua exercitation aliquip elit nisi nisi voluptate reprehenderit et dolor incididunt cupidatat ullamco nulla consequat voluptate adipisicing dolor qui magna sint aute do excepteur in aliqua consectetur.\n\nElit laborum non duis irure ad ullamco aliqua enim exercitation quis fugiat aute esse esse magna et ad cupidatat voluptate sint nulla nulla lorem et enim deserunt proident deserunt consectetur.',
|
||||
},
|
||||
// General inquiries
|
||||
{
|
||||
id : '3d1c26c5-1e5e-4eb6-8006-ed6037ed9aca',
|
||||
categoryId: '395b0d41-b9a8-4cd6-8b5c-f07855e82d62',
|
||||
question : 'How to download your items',
|
||||
answer : 'Sunt mollit irure dolor aliquip sit veniam amet ut sunt dolore cillum sint pariatur qui irure proident velit non excepteur quis ut et quis velit aliqua ea sunt cillum sit.\n\nReprehenderit est culpa ut incididunt sit dolore mollit in occaecat velit culpa consequat reprehenderit ex lorem cupidatat proident reprehenderit ad eu sunt sit ut sit culpa ea reprehenderit aliquip est.'
|
||||
answer : 'Sunt mollit irure dolor aliquip sit veniam amet ut sunt dolore cillum sint pariatur qui irure proident velit non excepteur quis ut et quis velit aliqua ea sunt cillum sit.\n\nReprehenderit est culpa ut incididunt sit dolore mollit in occaecat velit culpa consequat reprehenderit ex lorem cupidatat proident reprehenderit ad eu sunt sit ut sit culpa ea reprehenderit aliquip est.',
|
||||
},
|
||||
{
|
||||
id : '11bd2b9a-85b4-41c9-832c-bd600dfa3a52',
|
||||
categoryId: '395b0d41-b9a8-4cd6-8b5c-f07855e82d62',
|
||||
question : 'View and download invoices',
|
||||
answer : 'Sint mollit consectetur voluptate fugiat sunt ipsum adipisicing labore exercitation eiusmod enim excepteur enim proident velit sint magna commodo dolor ex ipsum sit nisi deserunt labore eu irure amet ea.\n\nOccaecat ut velit et sint pariatur laboris voluptate duis aliqua aliqua exercitation et duis duis eu laboris excepteur occaecat quis esse enim ex dolore commodo fugiat excepteur adipisicing in fugiat.'
|
||||
answer : 'Sint mollit consectetur voluptate fugiat sunt ipsum adipisicing labore exercitation eiusmod enim excepteur enim proident velit sint magna commodo dolor ex ipsum sit nisi deserunt labore eu irure amet ea.\n\nOccaecat ut velit et sint pariatur laboris voluptate duis aliqua aliqua exercitation et duis duis eu laboris excepteur occaecat quis esse enim ex dolore commodo fugiat excepteur adipisicing in fugiat.',
|
||||
},
|
||||
{
|
||||
id : 'f55c023a-785e-4f0f-b5b7-47da75224deb',
|
||||
categoryId: '395b0d41-b9a8-4cd6-8b5c-f07855e82d62',
|
||||
question : 'I\'ve forgotten my username or password',
|
||||
answer : 'In exercitation sunt ad anim commodo sunt do in sunt est officia amet ex ullamco do nisi consectetur lorem proident lorem adipisicing incididunt consequat fugiat voluptate sint est anim officia.\n\nVelit sint aliquip elit culpa amet eu mollit veniam esse deserunt ex occaecat quis lorem minim occaecat culpa esse veniam enim duis excepteur ipsum esse ut ut velit cillum adipisicing.'
|
||||
answer : 'In exercitation sunt ad anim commodo sunt do in sunt est officia amet ex ullamco do nisi consectetur lorem proident lorem adipisicing incididunt consequat fugiat voluptate sint est anim officia.\n\nVelit sint aliquip elit culpa amet eu mollit veniam esse deserunt ex occaecat quis lorem minim occaecat culpa esse veniam enim duis excepteur ipsum esse ut ut velit cillum adipisicing.',
|
||||
},
|
||||
{
|
||||
id : 'c577a67d-357a-4b88-96e8-a0ee1fe9162e',
|
||||
categoryId: '395b0d41-b9a8-4cd6-8b5c-f07855e82d62',
|
||||
question : 'Where is my license code?',
|
||||
answer : 'Ad adipisicing duis consequat magna sunt consequat aliqua eiusmod qui et nostrud voluptate sit enim reprehenderit anim exercitation ipsum ipsum anim ipsum laboris aliqua ex lorem aute officia voluptate culpa.\n\nNostrud anim ex pariatur ipsum et nostrud esse veniam ipsum ipsum irure velit ad quis irure tempor nulla amet aute id esse reprehenderit ea consequat consequat ea minim magna magna.'
|
||||
answer : 'Ad adipisicing duis consequat magna sunt consequat aliqua eiusmod qui et nostrud voluptate sit enim reprehenderit anim exercitation ipsum ipsum anim ipsum laboris aliqua ex lorem aute officia voluptate culpa.\n\nNostrud anim ex pariatur ipsum et nostrud esse veniam ipsum ipsum irure velit ad quis irure tempor nulla amet aute id esse reprehenderit ea consequat consequat ea minim magna magna.',
|
||||
},
|
||||
{
|
||||
id : '1a680c29-7ece-4a80-9709-277ad4da8b4b',
|
||||
categoryId: '395b0d41-b9a8-4cd6-8b5c-f07855e82d62',
|
||||
question : 'How to contact an author',
|
||||
answer : 'Magna laborum et amet magna fugiat officia deserunt in exercitation aliquip nulla magna velit ea labore quis deserunt ipsum occaecat id id consequat non eiusmod mollit est voluptate ea ex.\n\nReprehenderit mollit ut excepteur minim veniam fugiat enim id pariatur amet elit nostrud occaecat pariatur et esse aliquip irure quis officia reprehenderit voluptate voluptate est et voluptate sint esse dolor.'
|
||||
answer : 'Magna laborum et amet magna fugiat officia deserunt in exercitation aliquip nulla magna velit ea labore quis deserunt ipsum occaecat id id consequat non eiusmod mollit est voluptate ea ex.\n\nReprehenderit mollit ut excepteur minim veniam fugiat enim id pariatur amet elit nostrud occaecat pariatur et esse aliquip irure quis officia reprehenderit voluptate voluptate est et voluptate sint esse dolor.',
|
||||
},
|
||||
{
|
||||
id : 'c49c2216-8bdb-4df0-be25-d5ea1dbb5688',
|
||||
categoryId: '395b0d41-b9a8-4cd6-8b5c-f07855e82d62',
|
||||
question : 'How does the affiliate program work?',
|
||||
answer : 'Adipisicing laboris ipsum fugiat et cupidatat aute esse ad labore et est cillum ipsum sunt duis do veniam minim officia deserunt in eiusmod eu duis dolore excepteur consectetur id elit.\n\nAnim excepteur occaecat laborum sunt in elit quis sit duis adipisicing laboris anim laborum et pariatur elit qui consectetur laborum reprehenderit occaecat nostrud pariatur aliqua elit nisi commodo eu excepteur.'
|
||||
answer : 'Adipisicing laboris ipsum fugiat et cupidatat aute esse ad labore et est cillum ipsum sunt duis do veniam minim officia deserunt in eiusmod eu duis dolore excepteur consectetur id elit.\n\nAnim excepteur occaecat laborum sunt in elit quis sit duis adipisicing laboris anim laborum et pariatur elit qui consectetur laborum reprehenderit occaecat nostrud pariatur aliqua elit nisi commodo eu excepteur.',
|
||||
},
|
||||
// Licenses
|
||||
{
|
||||
id : '3ef176fa-6cba-4536-9f43-540c686a4faa',
|
||||
categoryId: 'b388a87f-bfbb-44d0-800c-0ddbce2a5d22',
|
||||
question : 'How do licenses work for items I bought?',
|
||||
answer : 'Culpa duis nostrud qui velit sint magna officia fugiat ipsum eiusmod enim laborum pariatur anim culpa elit ipsum lorem pariatur exercitation laborum do labore cillum exercitation nisi reprehenderit exercitation quis.\n\nMollit aute dolor non elit et incididunt eiusmod non in commodo occaecat id in excepteur aliqua ea anim pariatur sint elit voluptate dolor eu non laborum laboris voluptate qui duis.'
|
||||
answer : 'Culpa duis nostrud qui velit sint magna officia fugiat ipsum eiusmod enim laborum pariatur anim culpa elit ipsum lorem pariatur exercitation laborum do labore cillum exercitation nisi reprehenderit exercitation quis.\n\nMollit aute dolor non elit et incididunt eiusmod non in commodo occaecat id in excepteur aliqua ea anim pariatur sint elit voluptate dolor eu non laborum laboris voluptate qui duis.',
|
||||
},
|
||||
{
|
||||
id : '7bc6b7b4-7ad8-4cbe-af36-7301642d35fb',
|
||||
categoryId: 'b388a87f-bfbb-44d0-800c-0ddbce2a5d22',
|
||||
question : 'Do licenses have an expiry date?',
|
||||
answer : 'Ea proident dolor tempor dolore incididunt velit incididunt ullamco quis proident consectetur magna excepteur cillum officia ex do aliqua reprehenderit est esse officia labore dolore aute laboris eu commodo aute.\n\nOfficia quis id ipsum adipisicing ipsum eu exercitation cillum ex elit pariatur adipisicing ullamco ullamco nulla dolore magna aliqua reprehenderit eu laborum voluptate reprehenderit non eiusmod deserunt velit magna do.'
|
||||
answer : 'Ea proident dolor tempor dolore incididunt velit incididunt ullamco quis proident consectetur magna excepteur cillum officia ex do aliqua reprehenderit est esse officia labore dolore aute laboris eu commodo aute.\n\nOfficia quis id ipsum adipisicing ipsum eu exercitation cillum ex elit pariatur adipisicing ullamco ullamco nulla dolore magna aliqua reprehenderit eu laborum voluptate reprehenderit non eiusmod deserunt velit magna do.',
|
||||
},
|
||||
{
|
||||
id : '56c9ed66-a1d2-4803-a160-fba29b826cb4',
|
||||
categoryId: 'b388a87f-bfbb-44d0-800c-0ddbce2a5d22',
|
||||
question : 'I want to make multiple end products with the same item',
|
||||
answer : 'Elit cillum incididunt enim cupidatat ex elit cillum aute dolor consectetur proident non minim eu est deserunt proident mollit ullamco laborum anim ea labore anim ex enim ullamco consectetur enim.\n\nEx magna consectetur esse enim consequat non aliqua nulla labore mollit sit quis ex fugiat commodo eu cupidatat irure incididunt consequat enim ut deserunt consequat elit consequat sint adipisicing sunt.'
|
||||
answer : 'Elit cillum incididunt enim cupidatat ex elit cillum aute dolor consectetur proident non minim eu est deserunt proident mollit ullamco laborum anim ea labore anim ex enim ullamco consectetur enim.\n\nEx magna consectetur esse enim consequat non aliqua nulla labore mollit sit quis ex fugiat commodo eu cupidatat irure incididunt consequat enim ut deserunt consequat elit consequat sint adipisicing sunt.',
|
||||
},
|
||||
{
|
||||
id : '21c1b662-33c8-44d7-9530-91896afeeac7',
|
||||
categoryId: 'b388a87f-bfbb-44d0-800c-0ddbce2a5d22',
|
||||
question : 'How easy is it to change the license type?',
|
||||
answer : 'Duis culpa ut veniam voluptate consequat proident magna eiusmod id est magna culpa nulla enim culpa mollit velit lorem mollit ut minim dolore in tempor reprehenderit cillum occaecat proident ea.\n\nVeniam fugiat ea duis qui et eu eiusmod voluptate id cillum eiusmod eu reprehenderit minim reprehenderit nisi cillum nostrud duis eu magna minim sunt voluptate eu pariatur nulla ullamco elit.'
|
||||
answer : 'Duis culpa ut veniam voluptate consequat proident magna eiusmod id est magna culpa nulla enim culpa mollit velit lorem mollit ut minim dolore in tempor reprehenderit cillum occaecat proident ea.\n\nVeniam fugiat ea duis qui et eu eiusmod voluptate id cillum eiusmod eu reprehenderit minim reprehenderit nisi cillum nostrud duis eu magna minim sunt voluptate eu pariatur nulla ullamco elit.',
|
||||
},
|
||||
{
|
||||
id : '5fa52c90-82be-41ae-96ec-5fc67cf054a4',
|
||||
categoryId: 'b388a87f-bfbb-44d0-800c-0ddbce2a5d22',
|
||||
question : 'Do I need a Regular License or an Extended License?',
|
||||
answer : 'Mollit nostrud ea irure ex ipsum in cupidatat irure sit officia reprehenderit adipisicing et occaecat cupidatat exercitation mollit esse in excepteur qui elit exercitation velit fugiat exercitation est officia excepteur.\n\nQuis esse voluptate laborum non veniam duis est fugiat tempor culpa minim velit minim ut duis qui officia consectetur ex nostrud ut elit elit nulla in consectetur voluptate aliqua aliqua.'
|
||||
answer : 'Mollit nostrud ea irure ex ipsum in cupidatat irure sit officia reprehenderit adipisicing et occaecat cupidatat exercitation mollit esse in excepteur qui elit exercitation velit fugiat exercitation est officia excepteur.\n\nQuis esse voluptate laborum non veniam duis est fugiat tempor culpa minim velit minim ut duis qui officia consectetur ex nostrud ut elit elit nulla in consectetur voluptate aliqua aliqua.',
|
||||
},
|
||||
// Payments
|
||||
{
|
||||
id : '81ac908c-35a2-4705-8d75-539863c35c09',
|
||||
categoryId: '71c34043-d89d-4aca-951d-8606c3943c43',
|
||||
question : 'Common PayPal, Skrill, and credit card issues',
|
||||
answer : 'Sit occaecat sint nulla in esse dolor occaecat in ea sit irure magna magna veniam fugiat consequat exercitation ipsum ex officia velit consectetur consequat voluptate lorem eu proident lorem incididunt.\n\nExcepteur exercitation et qui labore nisi eu voluptate ipsum deserunt deserunt eu est minim dolor ad proident nulla reprehenderit culpa minim voluptate dolor nostrud dolor anim labore aliqua officia nostrud.'
|
||||
answer : 'Sit occaecat sint nulla in esse dolor occaecat in ea sit irure magna magna veniam fugiat consequat exercitation ipsum ex officia velit consectetur consequat voluptate lorem eu proident lorem incididunt.\n\nExcepteur exercitation et qui labore nisi eu voluptate ipsum deserunt deserunt eu est minim dolor ad proident nulla reprehenderit culpa minim voluptate dolor nostrud dolor anim labore aliqua officia nostrud.',
|
||||
},
|
||||
{
|
||||
id : 'b6d8909f-f36d-4885-8848-46b8230d4476',
|
||||
categoryId: '71c34043-d89d-4aca-951d-8606c3943c43',
|
||||
question : 'How do I find my transaction ID?',
|
||||
answer : 'Laboris ea nisi commodo nulla cillum consequat consectetur nisi velit adipisicing minim nulla culpa amet quis sit duis id id aliqua aute exercitation non reprehenderit aliquip enim eiusmod eu irure.\n\nNon irure consectetur sunt cillum do adipisicing excepteur labore proident ut officia dolor fugiat velit sint consectetur cillum qui amet enim anim mollit laboris consectetur non do laboris lorem aliqua.'
|
||||
answer : 'Laboris ea nisi commodo nulla cillum consequat consectetur nisi velit adipisicing minim nulla culpa amet quis sit duis id id aliqua aute exercitation non reprehenderit aliquip enim eiusmod eu irure.\n\nNon irure consectetur sunt cillum do adipisicing excepteur labore proident ut officia dolor fugiat velit sint consectetur cillum qui amet enim anim mollit laboris consectetur non do laboris lorem aliqua.',
|
||||
},
|
||||
{
|
||||
id : '9496235d-4d0c-430b-817e-1cba96404f95',
|
||||
categoryId: '71c34043-d89d-4aca-951d-8606c3943c43',
|
||||
question : 'PayPal disputes And chargebacks',
|
||||
answer : 'Ullamco eiusmod do pariatur pariatur consectetur commodo proident ex voluptate ullamco culpa commodo deserunt pariatur incididunt nisi magna dolor est minim eu ex voluptate deserunt labore id magna excepteur et.\n\nReprehenderit dolore pariatur exercitation ad non fugiat quis proident fugiat incididunt ea magna pariatur et exercitation tempor cillum eu consequat adipisicing est laborum sit cillum ea fugiat mollit cupidatat est.'
|
||||
answer : 'Ullamco eiusmod do pariatur pariatur consectetur commodo proident ex voluptate ullamco culpa commodo deserunt pariatur incididunt nisi magna dolor est minim eu ex voluptate deserunt labore id magna excepteur et.\n\nReprehenderit dolore pariatur exercitation ad non fugiat quis proident fugiat incididunt ea magna pariatur et exercitation tempor cillum eu consequat adipisicing est laborum sit cillum ea fugiat mollit cupidatat est.',
|
||||
},
|
||||
{
|
||||
id : '7fde17e6-4ac1-47dd-a363-2f4f14dcf76a',
|
||||
categoryId: '71c34043-d89d-4aca-951d-8606c3943c43',
|
||||
question : 'Saving your credit card details',
|
||||
answer : 'Qui quis nulla excepteur voluptate elit culpa occaecat id ex do adipisicing est mollit id anim nisi irure amet officia ut sint aliquip dolore labore cupidatat magna laborum esse ea.\n\nEnim magna duis sit incididunt amet anim et nostrud laborum eiusmod et ea fugiat aliquip velit sit fugiat consectetur ipsum anim do enim excepteur cupidatat consequat sunt irure tempor ut.'
|
||||
answer : 'Qui quis nulla excepteur voluptate elit culpa occaecat id ex do adipisicing est mollit id anim nisi irure amet officia ut sint aliquip dolore labore cupidatat magna laborum esse ea.\n\nEnim magna duis sit incididunt amet anim et nostrud laborum eiusmod et ea fugiat aliquip velit sit fugiat consectetur ipsum anim do enim excepteur cupidatat consequat sunt irure tempor ut.',
|
||||
},
|
||||
{
|
||||
id : '90a3ed58-e13b-40cf-9219-f933bf9c9b8f',
|
||||
categoryId: '71c34043-d89d-4aca-951d-8606c3943c43',
|
||||
question : 'Why do prepaid credits expire?',
|
||||
answer : 'Consequat consectetur commodo deserunt sunt aliquip deserunt ex tempor esse nostrud sit dolore anim nostrud nulla dolore veniam minim laboris non dolor veniam lorem veniam deserunt laborum aute amet irure.\n\nEiusmod officia veniam reprehenderit ea aliquip velit anim aute minim aute nisi tempor qui sunt deserunt voluptate velit elit ut adipisicing ipsum et excepteur ipsum eu ullamco nisi esse dolor.'
|
||||
answer : 'Consequat consectetur commodo deserunt sunt aliquip deserunt ex tempor esse nostrud sit dolore anim nostrud nulla dolore veniam minim laboris non dolor veniam lorem veniam deserunt laborum aute amet irure.\n\nEiusmod officia veniam reprehenderit ea aliquip velit anim aute minim aute nisi tempor qui sunt deserunt voluptate velit elit ut adipisicing ipsum et excepteur ipsum eu ullamco nisi esse dolor.',
|
||||
},
|
||||
{
|
||||
id : '153376ed-691f-4dfd-ae99-e204a49edc44',
|
||||
categoryId: '71c34043-d89d-4aca-951d-8606c3943c43',
|
||||
question : 'Why is there a minimum $20 credit?',
|
||||
answer : 'Duis sint velit incididunt exercitation eiusmod nisi sunt ex est fugiat ad cupidatat sunt nisi elit do duis amet voluptate ipsum aliquip lorem aliqua sint esse in magna irure officia.\n\nNon eu ex elit ut est voluptate tempor amet ut officia in duis deserunt cillum labore do culpa id dolore magna anim consectetur qui consectetur fugiat labore mollit magna irure.'
|
||||
answer : 'Duis sint velit incididunt exercitation eiusmod nisi sunt ex est fugiat ad cupidatat sunt nisi elit do duis amet voluptate ipsum aliquip lorem aliqua sint esse in magna irure officia.\n\nNon eu ex elit ut est voluptate tempor amet ut officia in duis deserunt cillum labore do culpa id dolore magna anim consectetur qui consectetur fugiat labore mollit magna irure.',
|
||||
},
|
||||
// Support
|
||||
{
|
||||
id : '4e7ce72f-863a-451f-9160-cbd4fbbc4c3d',
|
||||
categoryId: 'bea49ee0-26da-46ad-97be-116cd7ab416d',
|
||||
question : 'What is item support?',
|
||||
answer : 'Exercitation sit eiusmod enim officia exercitation eiusmod sunt eiusmod excepteur ad commodo eiusmod qui proident quis aliquip excepteur sit cillum occaecat non dolore sit in labore ut duis esse duis.\n\nConsequat sunt voluptate consectetur dolor laborum enim nostrud deserunt incididunt sint veniam laboris sunt amet velit anim duis aliqua sunt aliqua aute qui nisi mollit qui irure ullamco aliquip laborum.'
|
||||
answer : 'Exercitation sit eiusmod enim officia exercitation eiusmod sunt eiusmod excepteur ad commodo eiusmod qui proident quis aliquip excepteur sit cillum occaecat non dolore sit in labore ut duis esse duis.\n\nConsequat sunt voluptate consectetur dolor laborum enim nostrud deserunt incididunt sint veniam laboris sunt amet velit anim duis aliqua sunt aliqua aute qui nisi mollit qui irure ullamco aliquip laborum.',
|
||||
},
|
||||
{
|
||||
id : '0795a74f-7a84-4edf-8d66-296cdef70003',
|
||||
categoryId: 'bea49ee0-26da-46ad-97be-116cd7ab416d',
|
||||
question : 'How to contact an author',
|
||||
answer : 'Minim commodo cillum do id qui irure aliqua laboris excepteur laboris magna enim est lorem consectetur tempor laboris proident proident eu irure dolor eiusmod in officia lorem quis laborum ullamco.\n\nQui excepteur ex sit esse dolore deserunt ullamco occaecat laboris fugiat cupidatat excepteur laboris amet dolore enim velit ipsum velit sint cupidatat consectetur cupidatat deserunt sit eu do ullamco quis.'
|
||||
answer : 'Minim commodo cillum do id qui irure aliqua laboris excepteur laboris magna enim est lorem consectetur tempor laboris proident proident eu irure dolor eiusmod in officia lorem quis laborum ullamco.\n\nQui excepteur ex sit esse dolore deserunt ullamco occaecat laboris fugiat cupidatat excepteur laboris amet dolore enim velit ipsum velit sint cupidatat consectetur cupidatat deserunt sit eu do ullamco quis.',
|
||||
},
|
||||
{
|
||||
id : '05532574-c102-4228-89a8-55fff32ec6fc',
|
||||
categoryId: 'bea49ee0-26da-46ad-97be-116cd7ab416d',
|
||||
question : 'Extending and renewing item support',
|
||||
answer : 'Reprehenderit anim consectetur anim dolor magna consequat excepteur tempor enim duis magna proident ullamco aute voluptate elit laborum mollit labore id ex lorem est mollit do qui ex labore nulla.\n\nUt proident elit proident adipisicing elit fugiat ex ullamco dolore excepteur excepteur labore laborum sunt ipsum proident magna ex voluptate laborum voluptate sint proident eu reprehenderit non excepteur quis eiusmod.'
|
||||
answer : 'Reprehenderit anim consectetur anim dolor magna consequat excepteur tempor enim duis magna proident ullamco aute voluptate elit laborum mollit labore id ex lorem est mollit do qui ex labore nulla.\n\nUt proident elit proident adipisicing elit fugiat ex ullamco dolore excepteur excepteur labore laborum sunt ipsum proident magna ex voluptate laborum voluptate sint proident eu reprehenderit non excepteur quis eiusmod.',
|
||||
},
|
||||
{
|
||||
id : 'b3917466-aa51-4293-9d5b-120b0ce6635c',
|
||||
categoryId: 'bea49ee0-26da-46ad-97be-116cd7ab416d',
|
||||
question : 'Rating or review removal policy',
|
||||
answer : 'Ipsum officia mollit qui laboris sunt amet aliquip cupidatat minim non elit commodo eiusmod labore mollit pariatur aute reprehenderit ullamco occaecat enim pariatur aute amet occaecat incididunt irure ad ut.\n\nIncididunt cupidatat pariatur magna sint sit culpa ad cupidatat cillum exercitation consequat minim pariatur consectetur aliqua non adipisicing magna ad nulla ea do est nostrud eu aute id occaecat ut.'
|
||||
answer : 'Ipsum officia mollit qui laboris sunt amet aliquip cupidatat minim non elit commodo eiusmod labore mollit pariatur aute reprehenderit ullamco occaecat enim pariatur aute amet occaecat incididunt irure ad ut.\n\nIncididunt cupidatat pariatur magna sint sit culpa ad cupidatat cillum exercitation consequat minim pariatur consectetur aliqua non adipisicing magna ad nulla ea do est nostrud eu aute id occaecat ut.',
|
||||
},
|
||||
{
|
||||
id : '2f2fb472-24d4-4a00-aa80-d513fa6c059c',
|
||||
categoryId: 'bea49ee0-26da-46ad-97be-116cd7ab416d',
|
||||
question : 'Purchasing supported and unsupported items',
|
||||
answer : 'Dolor cupidatat do qui in tempor dolor magna magna ut dolor est aute veniam consectetur enim sunt sunt duis magna magna aliquip id reprehenderit dolor in veniam ullamco incididunt occaecat.\n\nId duis pariatur anim cillum est sint non veniam voluptate deserunt anim nostrud duis voluptate occaecat elit ut veniam voluptate do qui est ad velit irure sint lorem ullamco aliqua.'
|
||||
answer : 'Dolor cupidatat do qui in tempor dolor magna magna ut dolor est aute veniam consectetur enim sunt sunt duis magna magna aliquip id reprehenderit dolor in veniam ullamco incididunt occaecat.\n\nId duis pariatur anim cillum est sint non veniam voluptate deserunt anim nostrud duis voluptate occaecat elit ut veniam voluptate do qui est ad velit irure sint lorem ullamco aliqua.',
|
||||
},
|
||||
{
|
||||
id : '2fffd148-7644-466d-8737-7dde88c54154',
|
||||
categoryId: 'bea49ee0-26da-46ad-97be-116cd7ab416d',
|
||||
question : 'I haven\'t received a response from the author',
|
||||
answer : 'Velit commodo pariatur ullamco elit sunt dolor quis irure amet tempor laboris labore tempor nisi consectetur ea proident dolore culpa nostrud esse amet commodo do esse laboris laboris in magna.\n\nAute officia labore minim laborum irure cupidatat occaecat laborum ex labore ipsum aliqua cillum do exercitation esse et veniam excepteur mollit incididunt ut qui irure culpa qui deserunt nostrud tempor.'
|
||||
answer : 'Velit commodo pariatur ullamco elit sunt dolor quis irure amet tempor laboris labore tempor nisi consectetur ea proident dolore culpa nostrud esse amet commodo do esse laboris laboris in magna.\n\nAute officia labore minim laborum irure cupidatat occaecat laborum ex labore ipsum aliqua cillum do exercitation esse et veniam excepteur mollit incididunt ut qui irure culpa qui deserunt nostrud tempor.',
|
||||
},
|
||||
{
|
||||
id : '24a1034e-b4d6-4a86-a1ea-90516e87e810',
|
||||
categoryId: 'bea49ee0-26da-46ad-97be-116cd7ab416d',
|
||||
question : 'Responding to requests outside of support',
|
||||
answer : 'Exercitation eu in officia lorem commodo pariatur pariatur nisi consectetur qui elit in aliquip et ullamco duis nostrud aute laborum laborum est dolor non qui amet deserunt ex et aliquip.\n\nProident consectetur eu amet minim labore anim ad non aute duis eiusmod sit ad elit magna do aliquip aliqua laborum dolor laboris ea irure duis mollit fugiat tempor eu est.'
|
||||
}
|
||||
answer : 'Exercitation eu in officia lorem commodo pariatur pariatur nisi consectetur qui elit in aliquip et ullamco duis nostrud aute laborum laborum est dolor non qui amet deserunt ex et aliquip.\n\nProident consectetur eu amet minim labore anim ad non aute duis eiusmod sit ad elit magna do aliquip aliqua laborum dolor laboris ea irure duis mollit fugiat tempor eu est.',
|
||||
},
|
||||
];
|
||||
export const guideCategories = [
|
||||
{
|
||||
id : '0ee72de7-49c0-4880-9e89-b72a4edd6a81',
|
||||
slug : 'getting-started',
|
||||
title: 'Getting Started'
|
||||
title: 'Getting Started',
|
||||
},
|
||||
{
|
||||
id : '07b8421f-20bf-45b6-90ee-169ebe3a5bcc',
|
||||
slug : 'projects',
|
||||
title: 'Projects'
|
||||
title: 'Projects',
|
||||
},
|
||||
{
|
||||
id : 'c88a1f54-360a-4b9b-a54b-2f92b7a1f63b',
|
||||
slug : 'settings',
|
||||
title: 'Settings'
|
||||
title: 'Settings',
|
||||
},
|
||||
{
|
||||
id : '7b25b38c-1ab3-4474-8569-65b3ea232add',
|
||||
slug : 'payments',
|
||||
title: 'Payments'
|
||||
title: 'Payments',
|
||||
},
|
||||
{
|
||||
id : '41fdf071-aec4-49de-9dd4-b4f746596928',
|
||||
slug : 'your-account',
|
||||
title: 'Your Account'
|
||||
}
|
||||
title: 'Your Account',
|
||||
},
|
||||
];
|
||||
export const guides = [
|
||||
// Getting started
|
||||
@@ -241,28 +241,28 @@ export const guides = [
|
||||
categoryId: '0ee72de7-49c0-4880-9e89-b72a4edd6a81',
|
||||
slug : 'what-is-this-app',
|
||||
title : 'What is this app?',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : '7643d388-12ab-4025-a2f1-5045ac7b1c4c',
|
||||
categoryId: '0ee72de7-49c0-4880-9e89-b72a4edd6a81',
|
||||
slug : 'start-using-the-app',
|
||||
title : 'Start using the app',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : '1fecee67-c4b4-413a-b0f2-949dcab73249',
|
||||
categoryId: '0ee72de7-49c0-4880-9e89-b72a4edd6a81',
|
||||
slug : 'signing-in-to-the-dashboard',
|
||||
title : 'Signing in to the dashboard',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : 'd2e2ea8f-5298-4ba2-898b-afc60c064bba',
|
||||
categoryId: '0ee72de7-49c0-4880-9e89-b72a4edd6a81',
|
||||
slug : 'navigating-within-the-app',
|
||||
title : 'Navigating within the app',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
// Projects
|
||||
{
|
||||
@@ -270,56 +270,56 @@ export const guides = [
|
||||
categoryId: '07b8421f-20bf-45b6-90ee-169ebe3a5bcc',
|
||||
slug : 'creating-a-project',
|
||||
title : 'Creating a project',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : '9ec3f4b9-a355-4f57-9e93-efa8611cc1c9',
|
||||
categoryId: '07b8421f-20bf-45b6-90ee-169ebe3a5bcc',
|
||||
slug : 'renaming-a-project',
|
||||
title : 'Renaming a project',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : '1bc6e7f9-b046-4f4f-9b18-741c9d5429f6',
|
||||
categoryId: '07b8421f-20bf-45b6-90ee-169ebe3a5bcc',
|
||||
slug : 'displaying-a-project',
|
||||
title : 'Displaying a project',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : 'a005d5f1-938d-45c5-8ed4-d0cf8d02e533',
|
||||
categoryId: '07b8421f-20bf-45b6-90ee-169ebe3a5bcc',
|
||||
slug : 'deleting-a-project',
|
||||
title : 'Deleting a project',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : '43837279-dce2-4dc0-beac-30b5ba829f14',
|
||||
categoryId: '07b8421f-20bf-45b6-90ee-169ebe3a5bcc',
|
||||
slug : 'changing-the-visibility-of-a-project',
|
||||
title : 'Changing the visibility of a project',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : '4cf5a435-eaa0-463c-8d2b-efde193c7fb3',
|
||||
categoryId: '07b8421f-20bf-45b6-90ee-169ebe3a5bcc',
|
||||
slug : 'adding-media-to-a-project',
|
||||
title : 'Adding media to a project',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : 'cd3fb87e-e138-4721-9e29-a5c751bfd949',
|
||||
categoryId: '07b8421f-20bf-45b6-90ee-169ebe3a5bcc',
|
||||
slug : 'removing-a-media-from-a-project',
|
||||
title : 'Removing a media from a project',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : 'f26205c6-882e-4713-b067-c73758b45551',
|
||||
categoryId: '07b8421f-20bf-45b6-90ee-169ebe3a5bcc',
|
||||
slug : 'cropping-a-media',
|
||||
title : 'Cropping a media',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
// Settings
|
||||
{
|
||||
@@ -327,35 +327,35 @@ export const guides = [
|
||||
categoryId: 'c88a1f54-360a-4b9b-a54b-2f92b7a1f63b',
|
||||
slug : 'general-settings',
|
||||
title : 'General settings',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : '98de7d4a-2ca2-4d47-bbe6-083ed26467db',
|
||||
categoryId: 'c88a1f54-360a-4b9b-a54b-2f92b7a1f63b',
|
||||
slug : 'project-settings',
|
||||
title : 'Project settings',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : '145f497c-1fdb-47b5-a6c1-31f856403571',
|
||||
categoryId: 'c88a1f54-360a-4b9b-a54b-2f92b7a1f63b',
|
||||
slug : 'media-settings',
|
||||
title : 'Media settings',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : '0a007f59-a5ea-4875-991d-f22d6fd69898',
|
||||
categoryId: 'c88a1f54-360a-4b9b-a54b-2f92b7a1f63b',
|
||||
slug : 'domain-settings',
|
||||
title : 'Domain settings',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : '4707c8eb-31f9-415c-bd07-86f226c75feb',
|
||||
categoryId: 'c88a1f54-360a-4b9b-a54b-2f92b7a1f63b',
|
||||
slug : 'privacy-settings',
|
||||
title : 'Privacy settings',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
// Payments
|
||||
{
|
||||
@@ -363,28 +363,28 @@ export const guides = [
|
||||
categoryId: '7b25b38c-1ab3-4474-8569-65b3ea232add',
|
||||
slug : 'subscriptions',
|
||||
title : 'Subscriptions',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : '3d7150d2-feb3-4f20-bd3f-8e525cef77a4',
|
||||
categoryId: '7b25b38c-1ab3-4474-8569-65b3ea232add',
|
||||
slug : 'discounts',
|
||||
title : 'Discounts',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : '79239bc4-4fb5-428b-b30d-62c5289b061d',
|
||||
categoryId: '7b25b38c-1ab3-4474-8569-65b3ea232add',
|
||||
slug : 'payment-methods',
|
||||
title : 'Payment methods',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : '8d68c5e6-5404-450c-9d5f-d9800c164041',
|
||||
categoryId: '7b25b38c-1ab3-4474-8569-65b3ea232add',
|
||||
slug : 'overdue-payments',
|
||||
title : 'Overdue payments',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
// Your account
|
||||
{
|
||||
@@ -392,43 +392,43 @@ export const guides = [
|
||||
categoryId: '41fdf071-aec4-49de-9dd4-b4f746596928',
|
||||
slug : 'changing-your-username',
|
||||
title : 'Changing your username',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : '0a9c3321-1db3-42bc-92b6-7e257368123e',
|
||||
categoryId: '41fdf071-aec4-49de-9dd4-b4f746596928',
|
||||
slug : 'changing-your-email',
|
||||
title : 'Changing your email',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : '80ba5106-5f9c-4ed7-b8f3-8544035e3095',
|
||||
categoryId: '41fdf071-aec4-49de-9dd4-b4f746596928',
|
||||
slug : 'changing-your-password',
|
||||
title : 'Changing your password',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : 'db2e97a6-d657-4e9d-9b6c-5f213ea3301c',
|
||||
categoryId: '41fdf071-aec4-49de-9dd4-b4f746596928',
|
||||
slug : 'closing-your-account',
|
||||
title : 'Closing your account',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : '3374c887-2fb7-4223-9f40-7f2cbbf76795',
|
||||
categoryId: '41fdf071-aec4-49de-9dd4-b4f746596928',
|
||||
slug : 'account-limits',
|
||||
title : 'Account limits',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
{
|
||||
id : 'cc65f92a-7d46-4557-b15b-6f8f59a60576',
|
||||
categoryId: '41fdf071-aec4-49de-9dd4-b4f746596928',
|
||||
slug : 'two-factor-authentication',
|
||||
title : 'Two factor authentication',
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt'
|
||||
}
|
||||
subtitle : 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt',
|
||||
},
|
||||
];
|
||||
|
||||
// Since we only have one content for the demo, we will
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { assign, cloneDeep } from 'lodash-es';
|
||||
import { FuseMockApiService, FuseMockApiUtils } from '@fuse/lib/mock-api';
|
||||
import { filters as filtersData, folders as foldersData, labels as labelsData, mails as mailsData, settings as settingsData } from 'app/mock-api/apps/mailbox/data';
|
||||
import { assign, cloneDeep } from 'lodash-es';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class MailboxMockApi
|
||||
{
|
||||
@@ -44,7 +44,8 @@ export class MailboxMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPatch('api/apps/mailbox/settings')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the settings
|
||||
const settings = cloneDeep(request.body.settings);
|
||||
@@ -61,12 +62,14 @@ export class MailboxMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/mailbox/folders')
|
||||
.reply(() => {
|
||||
.reply(() =>
|
||||
{
|
||||
|
||||
let count = 0;
|
||||
|
||||
// Iterate through the folders
|
||||
this._folders.forEach((folder) => {
|
||||
this._folders.forEach((folder) =>
|
||||
{
|
||||
|
||||
// Get the mails of this folder
|
||||
const mails = this._mails.filter(mail => mail.folder === folder.id);
|
||||
@@ -87,7 +90,8 @@ export class MailboxMockApi
|
||||
else
|
||||
{
|
||||
// Go through the mails and count the unread ones
|
||||
mails.forEach((mail) => {
|
||||
mails.forEach((mail) =>
|
||||
{
|
||||
|
||||
if ( mail.unread )
|
||||
{
|
||||
@@ -126,7 +130,8 @@ export class MailboxMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPost('api/apps/mailbox/label')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the label
|
||||
const label = cloneDeep(request.body.label);
|
||||
@@ -136,9 +141,9 @@ export class MailboxMockApi
|
||||
|
||||
// Generate a slug
|
||||
label.slug = label.title.toLowerCase()
|
||||
.replace(/ /g, '-')
|
||||
.replace(/[-]+/g, '-')
|
||||
.replace(/[^\w-]+/g, '');
|
||||
.replace(/ /g, '-')
|
||||
.replace(/[-]+/g, '-')
|
||||
.replace(/[^\w-]+/g, '');
|
||||
|
||||
// Check if the slug is being used and update it if necessary
|
||||
const originalSlug = label.slug;
|
||||
@@ -170,7 +175,8 @@ export class MailboxMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPatch('api/apps/mailbox/label')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id and label
|
||||
const id = request.body.id;
|
||||
@@ -180,15 +186,16 @@ export class MailboxMockApi
|
||||
let updatedLabel = null;
|
||||
|
||||
// Find the label and update it
|
||||
this._labels.forEach((item, index, labels) => {
|
||||
this._labels.forEach((item, index, labels) =>
|
||||
{
|
||||
|
||||
if ( item.id === id )
|
||||
{
|
||||
// Update the slug
|
||||
label.slug = label.title.toLowerCase()
|
||||
.replace(/ /g, '-')
|
||||
.replace(/[-]+/g, '-')
|
||||
.replace(/[^\w-]+/g, '');
|
||||
.replace(/ /g, '-')
|
||||
.replace(/[-]+/g, '-')
|
||||
.replace(/[^\w-]+/g, '');
|
||||
|
||||
// Update the label
|
||||
labels[index] = assign({}, labels[index], label);
|
||||
@@ -207,7 +214,8 @@ export class MailboxMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onDelete('api/apps/mailbox/label')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id
|
||||
const id = request.params.get('id');
|
||||
@@ -220,7 +228,8 @@ export class MailboxMockApi
|
||||
const mailsWithLabel = this._mails.filter(mail => mail.labels.indexOf(id) > -1);
|
||||
|
||||
// Iterate through them and remove the label
|
||||
mailsWithLabel.forEach((mail) => {
|
||||
mailsWithLabel.forEach((mail) =>
|
||||
{
|
||||
mail.labels.splice(mail.labels.indexOf(id), 1);
|
||||
});
|
||||
|
||||
@@ -233,7 +242,8 @@ export class MailboxMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/mailbox/mails', 625)
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// First, decide if mails are requested by folder, filter or label
|
||||
const byFolder = request.params.get('folder');
|
||||
@@ -244,7 +254,8 @@ export class MailboxMockApi
|
||||
let mails: any[] | null = cloneDeep(this._mails);
|
||||
|
||||
// Filter the mails depending on the requested by type
|
||||
mails = mails.filter((mail) => {
|
||||
mails = mails.filter((mail) =>
|
||||
{
|
||||
|
||||
if ( byFolder )
|
||||
{
|
||||
@@ -266,7 +277,8 @@ export class MailboxMockApi
|
||||
mails.sort((a, b) => new Date(b.date).getTime() - new Date(a.date).getTime());
|
||||
|
||||
// Figure out the cc and bcc counts
|
||||
mails.forEach((mail) => {
|
||||
mails.forEach((mail) =>
|
||||
{
|
||||
mail.ccCount = mail.cc ? mail.cc.length : 0;
|
||||
mail.bccCount = mail.bcc ? mail.bcc.length : 0;
|
||||
});
|
||||
@@ -294,7 +306,7 @@ export class MailboxMockApi
|
||||
{
|
||||
mails = null;
|
||||
pagination = {
|
||||
lastPage
|
||||
lastPage,
|
||||
};
|
||||
}
|
||||
else
|
||||
@@ -309,7 +321,7 @@ export class MailboxMockApi
|
||||
currentPage : page,
|
||||
lastPage : lastPage,
|
||||
startIndex : begin,
|
||||
endIndex : end - 1
|
||||
endIndex : end - 1,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -318,8 +330,8 @@ export class MailboxMockApi
|
||||
200,
|
||||
{
|
||||
mails,
|
||||
pagination
|
||||
}
|
||||
pagination,
|
||||
},
|
||||
];
|
||||
});
|
||||
|
||||
@@ -328,7 +340,8 @@ export class MailboxMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/mailbox/mail')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id from the params
|
||||
const id = request.params.get('id');
|
||||
@@ -341,7 +354,7 @@ export class MailboxMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
mail
|
||||
mail,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -350,7 +363,8 @@ export class MailboxMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPatch('api/apps/mailbox/mail')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id and mail
|
||||
const id = request.body.id;
|
||||
@@ -360,7 +374,8 @@ export class MailboxMockApi
|
||||
let updatedMail = null;
|
||||
|
||||
// Find the mail and update it
|
||||
this._mails.forEach((item, index, mails) => {
|
||||
this._mails.forEach((item, index, mails) =>
|
||||
{
|
||||
|
||||
if ( item.id === id )
|
||||
{
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,11 +1,11 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
import { FuseMockApiUtils } from '@fuse/lib/mock-api';
|
||||
import { FuseMockApiService } from '@fuse/lib/mock-api/mock-api.service';
|
||||
import { labels as labelsData, notes as notesData } from 'app/mock-api/apps/notes/data';
|
||||
import { FuseMockApiUtils } from '@fuse/lib/mock-api';
|
||||
import { cloneDeep } from 'lodash-es';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class NotesMockApi
|
||||
{
|
||||
@@ -37,7 +37,7 @@ export class NotesMockApi
|
||||
.onGet('api/apps/notes/labels')
|
||||
.reply(() => [
|
||||
200,
|
||||
cloneDeep(this._labels)
|
||||
cloneDeep(this._labels),
|
||||
]);
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
@@ -45,12 +45,13 @@ export class NotesMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPost('api/apps/notes/labels')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Create a new label
|
||||
const label = {
|
||||
id : FuseMockApiUtils.guid(),
|
||||
title: request.body.title
|
||||
title: request.body.title,
|
||||
};
|
||||
|
||||
// Update the labels
|
||||
@@ -58,7 +59,7 @@ export class NotesMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
cloneDeep(this._labels)
|
||||
cloneDeep(this._labels),
|
||||
];
|
||||
});
|
||||
|
||||
@@ -67,18 +68,20 @@ export class NotesMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPatch('api/apps/notes/labels')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get label
|
||||
const updatedLabel = request.body.label;
|
||||
|
||||
// Update the label
|
||||
this._labels = this._labels.map((label) => {
|
||||
this._labels = this._labels.map((label) =>
|
||||
{
|
||||
if ( label.id === updatedLabel.id )
|
||||
{
|
||||
return {
|
||||
...label,
|
||||
title: updatedLabel.title
|
||||
title: updatedLabel.title,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -87,7 +90,7 @@ export class NotesMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
cloneDeep(this._labels)
|
||||
cloneDeep(this._labels),
|
||||
];
|
||||
});
|
||||
|
||||
@@ -96,7 +99,8 @@ export class NotesMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onDelete('api/apps/notes/labels')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get label id
|
||||
const id = request.params.get('id');
|
||||
@@ -107,12 +111,12 @@ export class NotesMockApi
|
||||
// Go through notes and delete the label
|
||||
this._notes = this._notes.map(note => ({
|
||||
...note,
|
||||
labels: note.labels.filter(item => item !== id)
|
||||
labels: note.labels.filter(item => item !== id),
|
||||
}));
|
||||
|
||||
return [
|
||||
200,
|
||||
cloneDeep(this._labels)
|
||||
cloneDeep(this._labels),
|
||||
];
|
||||
});
|
||||
|
||||
@@ -121,14 +125,16 @@ export class NotesMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPost('api/apps/notes/tasks')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get note and task
|
||||
let updatedNote = request.body.note;
|
||||
const task = request.body.task;
|
||||
|
||||
// Update the note
|
||||
this._notes = this._notes.map((note) => {
|
||||
this._notes = this._notes.map((note) =>
|
||||
{
|
||||
if ( note.id === updatedNote.id )
|
||||
{
|
||||
// Update the tasks
|
||||
@@ -140,14 +146,14 @@ export class NotesMockApi
|
||||
note.tasks.push({
|
||||
id : FuseMockApiUtils.guid(),
|
||||
content : task,
|
||||
completed: false
|
||||
completed: false,
|
||||
});
|
||||
|
||||
// Update the updatedNote with the new task
|
||||
updatedNote = cloneDeep(note);
|
||||
|
||||
return {
|
||||
...note
|
||||
...note,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -156,7 +162,7 @@ export class NotesMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
updatedNote
|
||||
updatedNote,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -165,7 +171,8 @@ export class NotesMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/notes/all')
|
||||
.reply(() => {
|
||||
.reply(() =>
|
||||
{
|
||||
|
||||
// Clone the labels and notes
|
||||
const labels = cloneDeep(this._labels);
|
||||
@@ -175,13 +182,13 @@ export class NotesMockApi
|
||||
notes = notes.map(note => (
|
||||
{
|
||||
...note,
|
||||
labels: note.labels.map(labelId => labels.find(label => label.id === labelId))
|
||||
labels: note.labels.map(labelId => labels.find(label => label.id === labelId)),
|
||||
}
|
||||
));
|
||||
|
||||
return [
|
||||
200,
|
||||
notes
|
||||
notes,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -190,7 +197,8 @@ export class NotesMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPost('api/apps/notes')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get note
|
||||
const note = request.body.note;
|
||||
@@ -203,7 +211,7 @@ export class NotesMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
note
|
||||
note,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -212,17 +220,19 @@ export class NotesMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPatch('api/apps/notes')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get note
|
||||
const updatedNote = request.body.updatedNote;
|
||||
|
||||
// Update the note
|
||||
this._notes = this._notes.map((note) => {
|
||||
this._notes = this._notes.map((note) =>
|
||||
{
|
||||
if ( note.id === updatedNote.id )
|
||||
{
|
||||
return {
|
||||
...updatedNote
|
||||
...updatedNote,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -231,7 +241,7 @@ export class NotesMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
updatedNote
|
||||
updatedNote,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -240,13 +250,15 @@ export class NotesMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onDelete('api/apps/notes')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id
|
||||
const id = request.params.get('id');
|
||||
|
||||
// Find the note and delete it
|
||||
this._notes.forEach((item, index) => {
|
||||
this._notes.forEach((item, index) =>
|
||||
{
|
||||
|
||||
if ( item.id === id )
|
||||
{
|
||||
|
||||
@@ -7,28 +7,28 @@ const now = DateTime.now();
|
||||
export const labels = [
|
||||
{
|
||||
id : 'f47c92e5-20b9-44d9-917f-9ff4ad25dfd0',
|
||||
title: 'Family'
|
||||
title: 'Family',
|
||||
},
|
||||
{
|
||||
id : 'e2f749f5-41ed-49d0-a92a-1c83d879e371',
|
||||
title: 'Work'
|
||||
title: 'Work',
|
||||
},
|
||||
{
|
||||
id : 'b1cde9ee-e54d-4142-ad8b-cf55dafc9528',
|
||||
title: 'Tasks'
|
||||
title: 'Tasks',
|
||||
},
|
||||
{
|
||||
id : '6c288794-47eb-4605-8bdf-785b61a449d3',
|
||||
title: 'Priority'
|
||||
title: 'Priority',
|
||||
},
|
||||
{
|
||||
id : 'bbc73458-940b-421c-8d5f-8dcd23a9b0d6',
|
||||
title: 'Personal'
|
||||
title: 'Personal',
|
||||
},
|
||||
{
|
||||
id : '2dc11344-3507-48e0-83d6-1c047107f052',
|
||||
title: 'Friends'
|
||||
}
|
||||
title: 'Friends',
|
||||
},
|
||||
];
|
||||
|
||||
export const notes = [
|
||||
@@ -41,8 +41,11 @@ export const notes = [
|
||||
reminder : null,
|
||||
labels : ['e2f749f5-41ed-49d0-a92a-1c83d879e371'],
|
||||
archived : false,
|
||||
createdAt: now.set({hour: 10, minute: 19}).minus({day: 98}).toISO(),
|
||||
updatedAt: null
|
||||
createdAt: now.set({
|
||||
hour : 10,
|
||||
minute: 19,
|
||||
}).minus({day: 98}).toISO(),
|
||||
updatedAt: null,
|
||||
},
|
||||
{
|
||||
id : 'ced0a1ce-051d-41a3-b080-e2161e4ae621',
|
||||
@@ -53,11 +56,14 @@ export const notes = [
|
||||
reminder : null,
|
||||
labels : [
|
||||
'bbc73458-940b-421c-8d5f-8dcd23a9b0d6',
|
||||
'b1cde9ee-e54d-4142-ad8b-cf55dafc9528'
|
||||
'b1cde9ee-e54d-4142-ad8b-cf55dafc9528',
|
||||
],
|
||||
archived : false,
|
||||
createdAt: now.set({hour: 15, minute: 37}).minus({day: 80}).toISO(),
|
||||
updatedAt: null
|
||||
createdAt: now.set({
|
||||
hour : 15,
|
||||
minute: 37,
|
||||
}).minus({day: 80}).toISO(),
|
||||
updatedAt: null,
|
||||
},
|
||||
{
|
||||
id : 'd3ac02a9-86e4-4187-bbd7-2c965518b3a3',
|
||||
@@ -68,8 +74,14 @@ export const notes = [
|
||||
reminder : null,
|
||||
labels : ['6c288794-47eb-4605-8bdf-785b61a449d3'],
|
||||
archived : false,
|
||||
createdAt: now.set({hour: 19, minute: 27}).minus({day: 74}).toISO(),
|
||||
updatedAt: now.set({hour: 15, minute: 36}).minus({day: 50}).toISO(),
|
||||
createdAt: now.set({
|
||||
hour : 19,
|
||||
minute: 27,
|
||||
}).minus({day: 74}).toISO(),
|
||||
updatedAt: now.set({
|
||||
hour : 15,
|
||||
minute: 36,
|
||||
}).minus({day: 50}).toISO(),
|
||||
},
|
||||
{
|
||||
id : '89861bd4-0144-4bb4-8b39-332ca10371d5',
|
||||
@@ -77,11 +89,17 @@ export const notes = [
|
||||
content : 'Theming support for all apps',
|
||||
tasks : null,
|
||||
image : null,
|
||||
reminder: now.set({hour: 12, minute: 34}).plus({day: 50}).toISO(),
|
||||
reminder : now.set({
|
||||
hour : 12,
|
||||
minute: 34,
|
||||
}).plus({day: 50}).toISO(),
|
||||
labels : ['e2f749f5-41ed-49d0-a92a-1c83d879e371'],
|
||||
archived : false,
|
||||
createdAt: now.set({hour: 12, minute: 34}).minus({day: 59}).toISO(),
|
||||
updatedAt: null
|
||||
createdAt: now.set({
|
||||
hour : 12,
|
||||
minute: 34,
|
||||
}).minus({day: 59}).toISO(),
|
||||
updatedAt: null,
|
||||
},
|
||||
{
|
||||
id : 'ffd20f3c-2d43-4c6b-8021-278032fc9e92',
|
||||
@@ -91,30 +109,33 @@ export const notes = [
|
||||
{
|
||||
id : '330a924f-fb51-48f6-a374-1532b1dd353d',
|
||||
content : 'Scarf',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '781855a6-2ad2-4df4-b0af-c3cb5f302b40',
|
||||
content : 'A new bike helmet',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : 'bcb8923b-33cd-42c2-9203-170994fa24f5',
|
||||
content : 'Necklace',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '726bdf6e-5cd7-408a-9a4f-0d7bb98c1c4b',
|
||||
content : 'Flowers',
|
||||
completed: false
|
||||
}
|
||||
completed: false,
|
||||
},
|
||||
],
|
||||
image : null,
|
||||
reminder : null,
|
||||
labels : ['f47c92e5-20b9-44d9-917f-9ff4ad25dfd0'],
|
||||
archived : false,
|
||||
createdAt: now.set({hour: 16, minute: 4}).minus({day: 47}).toISO(),
|
||||
updatedAt: null
|
||||
createdAt: now.set({
|
||||
hour : 16,
|
||||
minute: 4,
|
||||
}).minus({day: 47}).toISO(),
|
||||
updatedAt: null,
|
||||
},
|
||||
{
|
||||
id : '71d223bb-abab-4183-8919-cd3600a950b4',
|
||||
@@ -124,35 +145,41 @@ export const notes = [
|
||||
{
|
||||
id : 'e3cbc986-641c-4448-bc26-7ecfa0549c22',
|
||||
content : 'Bread',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : '34013111-ab2c-4b2f-9352-d2ae282f57d3',
|
||||
content : 'Milk',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '0fbdea82-cc79-4433-8ee4-54fd542c380d',
|
||||
content : 'Onions',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '66490222-743e-4262-ac91-773fcd98a237',
|
||||
content : 'Coffee',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : 'ab367215-d06a-48b0-a7b8-e161a63b07bd',
|
||||
content : 'Toilet Paper',
|
||||
completed: true
|
||||
}
|
||||
completed: true,
|
||||
},
|
||||
],
|
||||
image : null,
|
||||
reminder : now.set({hour: 10, minute: 44}).minus({day: 35}).toISO(),
|
||||
reminder : now.set({
|
||||
hour : 10,
|
||||
minute: 44,
|
||||
}).minus({day: 35}).toISO(),
|
||||
labels : ['b1cde9ee-e54d-4142-ad8b-cf55dafc9528'],
|
||||
archived : false,
|
||||
createdAt: now.set({hour: 10, minute: 44}).minus({day: 35}).toISO(),
|
||||
updatedAt: null
|
||||
createdAt: now.set({
|
||||
hour : 10,
|
||||
minute: 44,
|
||||
}).minus({day: 35}).toISO(),
|
||||
updatedAt: null,
|
||||
},
|
||||
{
|
||||
id : '11fbeb98-ae5e-41ad-bed6-330886fd7906',
|
||||
@@ -162,38 +189,44 @@ export const notes = [
|
||||
{
|
||||
id : '2711bac1-7d8a-443a-a4fe-506ef51d3fcb',
|
||||
content : 'Breakfast',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : 'e3a2d675-a3e5-4cef-9205-feeccaf949d7',
|
||||
content : 'Opening ceremony',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : '7a721b6d-9d85-48e0-b6c3-f927079af582',
|
||||
content : 'Talk 1: How we did it!',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : 'bdb4d5cd-5bb8-45e2-9186-abfd8307e429',
|
||||
content : 'Talk 2: How can you do it!',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : 'c8293bb4-8ab4-4310-bbc2-52ecf8ec0c54',
|
||||
content : 'Lunch break',
|
||||
completed: false
|
||||
}
|
||||
completed: false,
|
||||
},
|
||||
],
|
||||
image : null,
|
||||
reminder : now.set({hour: 11, minute: 27}).minus({day: 14}).toISO(),
|
||||
reminder : now.set({
|
||||
hour : 11,
|
||||
minute: 27,
|
||||
}).minus({day: 14}).toISO(),
|
||||
labels : [
|
||||
'b1cde9ee-e54d-4142-ad8b-cf55dafc9528',
|
||||
'e2f749f5-41ed-49d0-a92a-1c83d879e371'
|
||||
'e2f749f5-41ed-49d0-a92a-1c83d879e371',
|
||||
],
|
||||
archived : false,
|
||||
createdAt: now.set({hour: 11, minute: 27}).minus({day: 24}).toISO(),
|
||||
updatedAt: null
|
||||
createdAt: now.set({
|
||||
hour : 11,
|
||||
minute: 27,
|
||||
}).minus({day: 24}).toISO(),
|
||||
updatedAt: null,
|
||||
},
|
||||
{
|
||||
id : 'd46dee8b-8761-4b6d-a1df-449d6e6feb6a',
|
||||
@@ -201,11 +234,17 @@ export const notes = [
|
||||
content : 'Organize the dad\'s surprise retirement party',
|
||||
tasks : null,
|
||||
image : null,
|
||||
reminder : now.set({hour: 14, minute: 56}).minus({day: 25}).toISO(),
|
||||
reminder : now.set({
|
||||
hour : 14,
|
||||
minute: 56,
|
||||
}).minus({day: 25}).toISO(),
|
||||
labels : ['f47c92e5-20b9-44d9-917f-9ff4ad25dfd0'],
|
||||
archived : false,
|
||||
createdAt: now.set({hour: 14, minute: 56}).minus({day: 20}).toISO(),
|
||||
updatedAt: null
|
||||
createdAt: now.set({
|
||||
hour : 14,
|
||||
minute: 56,
|
||||
}).minus({day: 20}).toISO(),
|
||||
updatedAt: null,
|
||||
},
|
||||
{
|
||||
id : '6bc9f002-1675-417c-93c4-308fba39023e',
|
||||
@@ -216,11 +255,17 @@ export const notes = [
|
||||
reminder : null,
|
||||
labels : [
|
||||
'2dc11344-3507-48e0-83d6-1c047107f052',
|
||||
'b1cde9ee-e54d-4142-ad8b-cf55dafc9528'
|
||||
'b1cde9ee-e54d-4142-ad8b-cf55dafc9528',
|
||||
],
|
||||
archived : false,
|
||||
createdAt: now.set({hour: 9, minute: 32}).minus({day: 15}).toISO(),
|
||||
updatedAt: now.set({hour: 17, minute: 6}).minus({day: 12}).toISO(),
|
||||
createdAt: now.set({
|
||||
hour : 9,
|
||||
minute: 32,
|
||||
}).minus({day: 15}).toISO(),
|
||||
updatedAt: now.set({
|
||||
hour : 17,
|
||||
minute: 6,
|
||||
}).minus({day: 12}).toISO(),
|
||||
},
|
||||
{
|
||||
id : '15188348-78aa-4ed6-b5c2-028a214ba987',
|
||||
@@ -231,8 +276,11 @@ export const notes = [
|
||||
reminder : null,
|
||||
labels : ['e2f749f5-41ed-49d0-a92a-1c83d879e371'],
|
||||
archived : false,
|
||||
createdAt: now.set({hour: 20, minute: 5}).minus({day: 12}).toISO(),
|
||||
updatedAt: null
|
||||
createdAt: now.set({
|
||||
hour : 20,
|
||||
minute: 5,
|
||||
}).minus({day: 12}).toISO(),
|
||||
updatedAt: null,
|
||||
},
|
||||
{
|
||||
id : '1dbfc685-1a0a-4070-9ca7-ed896c523037',
|
||||
@@ -242,20 +290,26 @@ export const notes = [
|
||||
{
|
||||
id : '004638bf-3ee6-47a5-891c-3be7b9f3df09',
|
||||
content : 'Wash the dishes',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : '86e6820b-1ae3-4c14-a13e-35605a0d654b',
|
||||
content : 'Walk the dog',
|
||||
completed: false
|
||||
}
|
||||
completed: false,
|
||||
},
|
||||
],
|
||||
image : null,
|
||||
reminder : now.set({hour: 13, minute: 43}).minus({day: 2}).toISO(),
|
||||
reminder : now.set({
|
||||
hour : 13,
|
||||
minute: 43,
|
||||
}).minus({day: 2}).toISO(),
|
||||
labels : ['bbc73458-940b-421c-8d5f-8dcd23a9b0d6'],
|
||||
archived : false,
|
||||
createdAt: now.set({hour: 13, minute: 43}).minus({day: 7}).toISO(),
|
||||
updatedAt: null
|
||||
createdAt: now.set({
|
||||
hour : 13,
|
||||
minute: 43,
|
||||
}).minus({day: 7}).toISO(),
|
||||
updatedAt: null,
|
||||
},
|
||||
{
|
||||
id : '49548409-90a3-44d4-9a9a-f5af75aa9a66',
|
||||
@@ -266,11 +320,14 @@ export const notes = [
|
||||
reminder : null,
|
||||
labels : [
|
||||
'f47c92e5-20b9-44d9-917f-9ff4ad25dfd0',
|
||||
'6c288794-47eb-4605-8bdf-785b61a449d3'
|
||||
'6c288794-47eb-4605-8bdf-785b61a449d3',
|
||||
],
|
||||
archived : false,
|
||||
createdAt: now.set({hour: 7, minute: 12}).minus({day: 2}).toISO(),
|
||||
updatedAt: null
|
||||
createdAt: now.set({
|
||||
hour : 7,
|
||||
minute: 12,
|
||||
}).minus({day: 2}).toISO(),
|
||||
updatedAt: null,
|
||||
},
|
||||
{
|
||||
id : 'c6d13a35-500d-4491-a3f3-6ca05d6632d3',
|
||||
@@ -281,11 +338,14 @@ export const notes = [
|
||||
reminder : null,
|
||||
labels : [
|
||||
'bbc73458-940b-421c-8d5f-8dcd23a9b0d6',
|
||||
'6c288794-47eb-4605-8bdf-785b61a449d3'
|
||||
'6c288794-47eb-4605-8bdf-785b61a449d3',
|
||||
],
|
||||
archived : true,
|
||||
createdAt: now.set({hour: 17, minute: 14}).minus({day: 100}).toISO(),
|
||||
updatedAt: null
|
||||
createdAt: now.set({
|
||||
hour : 17,
|
||||
minute: 14,
|
||||
}).minus({day: 100}).toISO(),
|
||||
updatedAt: null,
|
||||
},
|
||||
{
|
||||
id : 'c6d13a35-500d-4491-a3f3-6ca05d6632d3',
|
||||
@@ -296,8 +356,11 @@ export const notes = [
|
||||
reminder : null,
|
||||
labels : ['e2f749f5-41ed-49d0-a92a-1c83d879e371'],
|
||||
archived : true,
|
||||
createdAt: now.set({hour: 10, minute: 29}).minus({day: 85}).toISO(),
|
||||
updatedAt: null
|
||||
createdAt: now.set({
|
||||
hour : 10,
|
||||
minute: 29,
|
||||
}).minus({day: 85}).toISO(),
|
||||
updatedAt: null,
|
||||
},
|
||||
{
|
||||
id : '46214383-f8e7-44da-aa2e-0b685e0c5027',
|
||||
@@ -308,10 +371,13 @@ export const notes = [
|
||||
reminder : null,
|
||||
labels : [
|
||||
'e2f749f5-41ed-49d0-a92a-1c83d879e371',
|
||||
'b1cde9ee-e54d-4142-ad8b-cf55dafc9528'
|
||||
'b1cde9ee-e54d-4142-ad8b-cf55dafc9528',
|
||||
],
|
||||
archived : true,
|
||||
createdAt: now.set({hour: 15, minute: 30}).minus({day: 69}).toISO(),
|
||||
updatedAt: null
|
||||
}
|
||||
createdAt: now.set({
|
||||
hour : 15,
|
||||
minute: 30,
|
||||
}).minus({day: 69}).toISO(),
|
||||
updatedAt: null,
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { assign, cloneDeep } from 'lodash-es';
|
||||
import { FuseMockApiService, FuseMockApiUtils } from '@fuse/lib/mock-api';
|
||||
import { boards as boardsData, cards as cardsData, labels as labelsData, lists as listsData, members as membersData } from 'app/mock-api/apps/scrumboard/data';
|
||||
import { assign, cloneDeep } from 'lodash-es';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class ScrumboardMockApi
|
||||
{
|
||||
@@ -38,7 +38,8 @@ export class ScrumboardMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/scrumboard/boards')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Clone the boards
|
||||
let boards = cloneDeep(this._boards);
|
||||
@@ -46,12 +47,12 @@ export class ScrumboardMockApi
|
||||
// Go through the boards and inject the members
|
||||
boards = boards.map(board => ({
|
||||
...board,
|
||||
members: board.members.map(boardMember => this._members.find(member => boardMember === member.id))
|
||||
members: board.members.map(boardMember => this._members.find(member => boardMember === member.id)),
|
||||
}));
|
||||
|
||||
return [
|
||||
200,
|
||||
boards
|
||||
boards,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -60,7 +61,8 @@ export class ScrumboardMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/scrumboard/board')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id
|
||||
const id = request.params.get('id');
|
||||
@@ -76,12 +78,13 @@ export class ScrumboardMockApi
|
||||
cards = cards.map(card => (
|
||||
{
|
||||
...card,
|
||||
labels: card.labels.map(cardLabelId => this._labels.find(label => label.id === cardLabelId))
|
||||
labels: card.labels.map(cardLabelId => this._labels.find(label => label.id === cardLabelId)),
|
||||
}
|
||||
));
|
||||
|
||||
// Attach the board cards into corresponding lists
|
||||
board.lists.forEach((list, index, array) => {
|
||||
board.lists.forEach((list, index, array) =>
|
||||
{
|
||||
array[index].cards = cards.filter(item => item.boardId === id && item.listId === list.id).sort((a, b) => a.position - b.position);
|
||||
});
|
||||
|
||||
@@ -90,7 +93,7 @@ export class ScrumboardMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
cloneDeep(board)
|
||||
cloneDeep(board),
|
||||
];
|
||||
});
|
||||
|
||||
@@ -99,7 +102,8 @@ export class ScrumboardMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPost('api/apps/scrumboard/board/list')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the list
|
||||
const newList = cloneDeep(request.body.list);
|
||||
@@ -112,7 +116,7 @@ export class ScrumboardMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
newList
|
||||
newList,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -121,7 +125,8 @@ export class ScrumboardMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPatch('api/apps/scrumboard/board/list')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the list
|
||||
const list = cloneDeep(request.body.list);
|
||||
@@ -130,7 +135,8 @@ export class ScrumboardMockApi
|
||||
let updatedList = null;
|
||||
|
||||
// Find the list and update it
|
||||
this._lists.forEach((item, index, lists) => {
|
||||
this._lists.forEach((item, index, lists) =>
|
||||
{
|
||||
|
||||
if ( item.id === list.id )
|
||||
{
|
||||
@@ -144,7 +150,7 @@ export class ScrumboardMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
updatedList
|
||||
updatedList,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -153,7 +159,8 @@ export class ScrumboardMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPatch('api/apps/scrumboard/board/lists')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the lists
|
||||
const lists = cloneDeep(request.body.lists);
|
||||
@@ -162,7 +169,8 @@ export class ScrumboardMockApi
|
||||
const updatedLists = [];
|
||||
|
||||
// Go through the lists
|
||||
lists.forEach((item) => {
|
||||
lists.forEach((item) =>
|
||||
{
|
||||
|
||||
// Find the list
|
||||
const index = this._lists.findIndex(list => item.id === list.id);
|
||||
@@ -176,7 +184,7 @@ export class ScrumboardMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
updatedLists
|
||||
updatedLists,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -185,7 +193,8 @@ export class ScrumboardMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onDelete('api/apps/scrumboard/board/list')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id
|
||||
const id = request.params.get('id');
|
||||
@@ -199,7 +208,7 @@ export class ScrumboardMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
true
|
||||
true,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -208,7 +217,8 @@ export class ScrumboardMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPut('api/apps/scrumboard/board/card')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the card
|
||||
const newCard = cloneDeep(request.body.card);
|
||||
@@ -221,7 +231,7 @@ export class ScrumboardMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
newCard
|
||||
newCard,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -230,7 +240,8 @@ export class ScrumboardMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPatch('api/apps/scrumboard/board/card')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id and card
|
||||
const id = request.body.id;
|
||||
@@ -243,7 +254,8 @@ export class ScrumboardMockApi
|
||||
card.labels = card.labels.map(itemLabel => itemLabel.id);
|
||||
|
||||
// Find the card and update it
|
||||
this._cards.forEach((item, index, cards) => {
|
||||
this._cards.forEach((item, index, cards) =>
|
||||
{
|
||||
|
||||
if ( item.id === id )
|
||||
{
|
||||
@@ -260,7 +272,7 @@ export class ScrumboardMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
updatedCard
|
||||
updatedCard,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -269,7 +281,8 @@ export class ScrumboardMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPatch('api/apps/scrumboard/board/cards')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the cards
|
||||
const cards = cloneDeep(request.body.cards);
|
||||
@@ -278,7 +291,8 @@ export class ScrumboardMockApi
|
||||
const updatedCards = [];
|
||||
|
||||
// Go through the cards
|
||||
cards.forEach((item) => {
|
||||
cards.forEach((item) =>
|
||||
{
|
||||
|
||||
// Find the card
|
||||
const index = this._cards.findIndex(card => item.id === card.id);
|
||||
@@ -298,7 +312,7 @@ export class ScrumboardMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
updatedCards
|
||||
updatedCards,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -307,7 +321,8 @@ export class ScrumboardMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onDelete('api/apps/scrumboard/board/card')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id
|
||||
const id = request.params.get('id');
|
||||
@@ -318,7 +333,7 @@ export class ScrumboardMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
true
|
||||
true,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -327,13 +342,15 @@ export class ScrumboardMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPatch('api/apps/scrumboard/board/card/positions')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the cards
|
||||
const cards = request.body.cards;
|
||||
|
||||
// Go through the cards
|
||||
this._cards.forEach((card) => {
|
||||
this._cards.forEach((card) =>
|
||||
{
|
||||
|
||||
// Find this card's index within the cards array that comes with the request
|
||||
// and assign that index as the new position number for the card
|
||||
@@ -345,7 +362,7 @@ export class ScrumboardMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
updatedCards
|
||||
updatedCards,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -354,7 +371,8 @@ export class ScrumboardMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/scrumboard/board/labels')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the board id
|
||||
const boardId = request.params.get('boardId');
|
||||
@@ -364,7 +382,7 @@ export class ScrumboardMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
cloneDeep(labels)
|
||||
cloneDeep(labels),
|
||||
];
|
||||
});
|
||||
|
||||
@@ -373,7 +391,8 @@ export class ScrumboardMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPut('api/apps/scrumboard/board/label')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the label
|
||||
const newLabel = cloneDeep(request.body.label);
|
||||
@@ -386,7 +405,7 @@ export class ScrumboardMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
newLabel
|
||||
newLabel,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -395,7 +414,8 @@ export class ScrumboardMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPatch('api/apps/scrumboard/board/label')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id and label
|
||||
const id = request.body.id;
|
||||
@@ -405,7 +425,8 @@ export class ScrumboardMockApi
|
||||
let updatedLabel = null;
|
||||
|
||||
// Find the label and update it
|
||||
this._labels.forEach((item, index, labels) => {
|
||||
this._labels.forEach((item, index, labels) =>
|
||||
{
|
||||
|
||||
if ( item.id === id )
|
||||
{
|
||||
@@ -419,7 +440,7 @@ export class ScrumboardMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
updatedLabel
|
||||
updatedLabel,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -428,7 +449,8 @@ export class ScrumboardMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onDelete('api/apps/scrumboard/board/label')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id
|
||||
const id = request.params.get('id');
|
||||
@@ -441,13 +463,14 @@ export class ScrumboardMockApi
|
||||
const cardsWithLabel = this._cards.filter(card => card.labels.indexOf(id) > -1);
|
||||
|
||||
// Iterate through them and remove the label
|
||||
cardsWithLabel.forEach((card) => {
|
||||
cardsWithLabel.forEach((card) =>
|
||||
{
|
||||
card.tags.splice(card.tags.indexOf(id), 1);
|
||||
});
|
||||
|
||||
return [
|
||||
200,
|
||||
true
|
||||
true,
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
@@ -14,8 +14,8 @@ export const boards = [
|
||||
members : [
|
||||
'9c510cf3-460d-4a8c-b3be-bcc3db578c08',
|
||||
'baa88231-0ee6-4028-96d5-7f187e0f4cd5',
|
||||
'18bb18f3-ea7d-4465-8913-e8c9adf6f568'
|
||||
]
|
||||
'18bb18f3-ea7d-4465-8913-e8c9adf6f568',
|
||||
],
|
||||
},
|
||||
{
|
||||
id : '0168b519-3dab-4b46-b2ea-0e678e38a583',
|
||||
@@ -31,8 +31,8 @@ export const boards = [
|
||||
'fe0fec0d-002b-406f-87ab-47eb87ba577c',
|
||||
'23a47d2c-c6cb-40cc-af87-e946a9df5028',
|
||||
'6726643d-e8dc-42fa-83a6-b4ec06921a6b',
|
||||
'0d1eb062-13d5-4286-b8d4-e0bea15f3d56'
|
||||
]
|
||||
'0d1eb062-13d5-4286-b8d4-e0bea15f3d56',
|
||||
],
|
||||
},
|
||||
{
|
||||
id : 'bc7db965-3c4f-4233-abf5-69bd70c3c175',
|
||||
@@ -41,35 +41,35 @@ export const boards = [
|
||||
icon : 'heroicons_outline:home',
|
||||
lastActivity: now.startOf('day').minus({week: 1}).toISO(),
|
||||
members : [
|
||||
'6f6a1c34-390b-4b2e-97c8-ff0e0d787839'
|
||||
]
|
||||
}
|
||||
'6f6a1c34-390b-4b2e-97c8-ff0e0d787839',
|
||||
],
|
||||
},
|
||||
];
|
||||
export const lists = [
|
||||
{
|
||||
id : 'a2df7786-519c-485a-a85f-c09a61cc5f37',
|
||||
boardId : '2c82225f-2a6c-45d3-b18a-1132712a4234',
|
||||
position: 65536,
|
||||
title : 'To do'
|
||||
title : 'To do',
|
||||
},
|
||||
{
|
||||
id : '83ca2a34-65af-49c0-a42e-94a34003fcf2',
|
||||
boardId : '2c82225f-2a6c-45d3-b18a-1132712a4234',
|
||||
position: 131072,
|
||||
title : 'In progress'
|
||||
title : 'In progress',
|
||||
},
|
||||
{
|
||||
id : 'a85ea483-f8f7-42d9-a314-3fed6aac22ab',
|
||||
boardId : '2c82225f-2a6c-45d3-b18a-1132712a4234',
|
||||
position: 196608,
|
||||
title : 'In review'
|
||||
title : 'In review',
|
||||
},
|
||||
{
|
||||
id : '34cbef38-5687-4813-bd66-141a6df6d832',
|
||||
boardId : '2c82225f-2a6c-45d3-b18a-1132712a4234',
|
||||
position: 262144,
|
||||
title : 'Completed'
|
||||
}
|
||||
title : 'Completed',
|
||||
},
|
||||
];
|
||||
export const cards = [
|
||||
{
|
||||
@@ -84,9 +84,9 @@ export const cards = [
|
||||
'51779701-818a-4a53-bc16-137c3bd7a564',
|
||||
'e8364d69-9595-46ce-a0f9-ce428632a0ac',
|
||||
'caff9c9b-a198-4564-b1f4-8b3df1d345bb',
|
||||
'f9eeb436-13a3-4208-a239-0d555960a567'
|
||||
'f9eeb436-13a3-4208-a239-0d555960a567',
|
||||
],
|
||||
dueDate : now.startOf('day').minus({day: 10}).toISO()
|
||||
dueDate : now.startOf('day').minus({day: 10}).toISO(),
|
||||
},
|
||||
{
|
||||
id : 'ed58add1-45a7-41db-887d-3ca7ee7f2719',
|
||||
@@ -95,9 +95,9 @@ export const cards = [
|
||||
position: 131072,
|
||||
title : 'Do a research about most needed admin applications',
|
||||
labels : [
|
||||
'e0175175-2784-48f1-a519-a1d2e397c9b3'
|
||||
'e0175175-2784-48f1-a519-a1d2e397c9b3',
|
||||
],
|
||||
dueDate : null
|
||||
dueDate : null,
|
||||
},
|
||||
{
|
||||
id : 'cd6897cb-acfd-4016-8b53-3f66a5b5fc68',
|
||||
@@ -106,9 +106,9 @@ export const cards = [
|
||||
position: 196608,
|
||||
title : 'Implement the Project dashboard',
|
||||
labels : [
|
||||
'caff9c9b-a198-4564-b1f4-8b3df1d345bb'
|
||||
'caff9c9b-a198-4564-b1f4-8b3df1d345bb',
|
||||
],
|
||||
dueDate : now.startOf('day').toISO()
|
||||
dueDate : now.startOf('day').toISO(),
|
||||
},
|
||||
{
|
||||
id : '6da8747f-b474-4c9a-9eba-5ef212285500',
|
||||
@@ -117,9 +117,9 @@ export const cards = [
|
||||
position: 262144,
|
||||
title : 'Implement the Analytics dashboard',
|
||||
labels : [
|
||||
'caff9c9b-a198-4564-b1f4-8b3df1d345bb'
|
||||
'caff9c9b-a198-4564-b1f4-8b3df1d345bb',
|
||||
],
|
||||
dueDate : now.startOf('day').minus({day: 1}).toISO()
|
||||
dueDate : now.startOf('day').minus({day: 1}).toISO(),
|
||||
},
|
||||
{
|
||||
id : '94fb1dee-dd83-4cca-acdd-02e96d3cc4f1',
|
||||
@@ -128,9 +128,9 @@ export const cards = [
|
||||
position: 65536,
|
||||
title : 'Analytics dashboard design',
|
||||
labels : [
|
||||
'e8364d69-9595-46ce-a0f9-ce428632a0ac'
|
||||
'e8364d69-9595-46ce-a0f9-ce428632a0ac',
|
||||
],
|
||||
dueDate : null
|
||||
dueDate : null,
|
||||
},
|
||||
{
|
||||
id : 'fc16f7d8-957d-43ed-ba85-20f99b5ce011',
|
||||
@@ -139,9 +139,9 @@ export const cards = [
|
||||
position: 131072,
|
||||
title : 'Project dashboard design',
|
||||
labels : [
|
||||
'e8364d69-9595-46ce-a0f9-ce428632a0ac'
|
||||
'e8364d69-9595-46ce-a0f9-ce428632a0ac',
|
||||
],
|
||||
dueDate : null
|
||||
dueDate : null,
|
||||
},
|
||||
{
|
||||
id : 'c0b32f1f-64ec-4f8d-8b11-a8dc809df331',
|
||||
@@ -150,9 +150,9 @@ export const cards = [
|
||||
position: 65536,
|
||||
title : 'JWT Auth implementation',
|
||||
labels : [
|
||||
'caff9c9b-a198-4564-b1f4-8b3df1d345bb'
|
||||
'caff9c9b-a198-4564-b1f4-8b3df1d345bb',
|
||||
],
|
||||
dueDate : null
|
||||
dueDate : null,
|
||||
},
|
||||
{
|
||||
id : '532c2747-be79-464a-9897-6a682bf22b64',
|
||||
@@ -161,7 +161,7 @@ export const cards = [
|
||||
position: 65536,
|
||||
title : 'Create low fidelity wireframes',
|
||||
labels : [],
|
||||
dueDate : null
|
||||
dueDate : null,
|
||||
},
|
||||
{
|
||||
id : '1d908efe-c830-476e-9e87-d06e30d89bc2',
|
||||
@@ -170,7 +170,7 @@ export const cards = [
|
||||
position: 131072,
|
||||
title : 'Create high fidelity wireframes',
|
||||
labels : [],
|
||||
dueDate : now.startOf('day').minus({day: 10}).toISO()
|
||||
dueDate : now.startOf('day').minus({day: 10}).toISO(),
|
||||
},
|
||||
{
|
||||
id : 'b1da11ed-7896-4826-962d-4b7b718896d4',
|
||||
@@ -179,9 +179,9 @@ export const cards = [
|
||||
position: 196608,
|
||||
title : 'Collect information about most used admin layouts',
|
||||
labels : [
|
||||
'e0175175-2784-48f1-a519-a1d2e397c9b3'
|
||||
'e0175175-2784-48f1-a519-a1d2e397c9b3',
|
||||
],
|
||||
dueDate : null
|
||||
dueDate : null,
|
||||
},
|
||||
{
|
||||
id : '3b7f3ceb-107f-42bc-a204-c268c9a56cb4',
|
||||
@@ -190,9 +190,9 @@ export const cards = [
|
||||
position: 262144,
|
||||
title : 'Do a research about latest UI trends',
|
||||
labels : [
|
||||
'e0175175-2784-48f1-a519-a1d2e397c9b3'
|
||||
'e0175175-2784-48f1-a519-a1d2e397c9b3',
|
||||
],
|
||||
dueDate : null
|
||||
dueDate : null,
|
||||
},
|
||||
{
|
||||
id : 'cd7f01c5-a941-4076-8cef-37da0354e643',
|
||||
@@ -201,137 +201,137 @@ export const cards = [
|
||||
position: 327680,
|
||||
title : 'Learn more about UX',
|
||||
labels : [
|
||||
'e0175175-2784-48f1-a519-a1d2e397c9b3'
|
||||
'e0175175-2784-48f1-a519-a1d2e397c9b3',
|
||||
],
|
||||
dueDate : null
|
||||
}
|
||||
dueDate : null,
|
||||
},
|
||||
];
|
||||
export const labels = [
|
||||
{
|
||||
id : 'e0175175-2784-48f1-a519-a1d2e397c9b3',
|
||||
boardId: '2c82225f-2a6c-45d3-b18a-1132712a4234',
|
||||
title : 'Research'
|
||||
title : 'Research',
|
||||
},
|
||||
{
|
||||
id : '51779701-818a-4a53-bc16-137c3bd7a564',
|
||||
boardId: '2c82225f-2a6c-45d3-b18a-1132712a4234',
|
||||
title : 'Wireframing'
|
||||
title : 'Wireframing',
|
||||
},
|
||||
{
|
||||
id : 'e8364d69-9595-46ce-a0f9-ce428632a0ac',
|
||||
boardId: '2c82225f-2a6c-45d3-b18a-1132712a4234',
|
||||
title : 'Design'
|
||||
title : 'Design',
|
||||
},
|
||||
{
|
||||
id : 'caff9c9b-a198-4564-b1f4-8b3df1d345bb',
|
||||
boardId: '2c82225f-2a6c-45d3-b18a-1132712a4234',
|
||||
title : 'Development'
|
||||
title : 'Development',
|
||||
},
|
||||
{
|
||||
id : 'f9eeb436-13a3-4208-a239-0d555960a567',
|
||||
boardId: '2c82225f-2a6c-45d3-b18a-1132712a4234',
|
||||
title : 'Bug'
|
||||
}
|
||||
title : 'Bug',
|
||||
},
|
||||
];
|
||||
export const members = [
|
||||
{
|
||||
id : '6f6a1c34-390b-4b2e-97c8-ff0e0d787839',
|
||||
name : 'Angeline Vinson',
|
||||
avatar: 'assets/images/avatars/female-01.jpg'
|
||||
avatar: 'assets/images/avatars/female-01.jpg',
|
||||
},
|
||||
{
|
||||
id : '4ce4be48-c8c0-468d-9df8-ddfda14cdb37',
|
||||
name : 'Roseann Greer',
|
||||
avatar: 'assets/images/avatars/female-02.jpg'
|
||||
avatar: 'assets/images/avatars/female-02.jpg',
|
||||
},
|
||||
{
|
||||
id : '9c510cf3-460d-4a8c-b3be-bcc3db578c08',
|
||||
name : 'Lorraine Barnett',
|
||||
avatar: 'assets/images/avatars/female-03.jpg'
|
||||
avatar: 'assets/images/avatars/female-03.jpg',
|
||||
},
|
||||
{
|
||||
id : '7ec887d9-b01a-4057-b5dc-aaed18637cc1',
|
||||
name : 'Middleton Bradford',
|
||||
avatar: 'assets/images/avatars/male-01.jpg'
|
||||
avatar: 'assets/images/avatars/male-01.jpg',
|
||||
},
|
||||
{
|
||||
id : '74975a82-addb-427b-9b43-4d2e03331b68',
|
||||
name : 'Sue Hays',
|
||||
avatar: 'assets/images/avatars/female-04.jpg'
|
||||
avatar: 'assets/images/avatars/female-04.jpg',
|
||||
},
|
||||
{
|
||||
id : '18bb18f3-ea7d-4465-8913-e8c9adf6f568',
|
||||
name : 'Keith Neal',
|
||||
avatar: 'assets/images/avatars/male-02.jpg'
|
||||
avatar: 'assets/images/avatars/male-02.jpg',
|
||||
},
|
||||
{
|
||||
id : 'baa88231-0ee6-4028-96d5-7f187e0f4cd5',
|
||||
name : 'Wilkins Gilmore',
|
||||
avatar: 'assets/images/avatars/male-03.jpg'
|
||||
avatar: 'assets/images/avatars/male-03.jpg',
|
||||
},
|
||||
{
|
||||
id : '0d1eb062-13d5-4286-b8d4-e0bea15f3d56',
|
||||
name : 'Baldwin Stein',
|
||||
avatar: 'assets/images/avatars/male-04.jpg'
|
||||
avatar: 'assets/images/avatars/male-04.jpg',
|
||||
},
|
||||
{
|
||||
id : '5bf7ed5b-8b04-46b7-b364-005958b7d82e',
|
||||
name : 'Bobbie Cohen',
|
||||
avatar: 'assets/images/avatars/female-05.jpg'
|
||||
avatar: 'assets/images/avatars/female-05.jpg',
|
||||
},
|
||||
{
|
||||
id : '93b1a72b-e2db-4f77-82d6-272047433508',
|
||||
name : 'Melody Peters',
|
||||
avatar: 'assets/images/avatars/female-06.jpg'
|
||||
avatar: 'assets/images/avatars/female-06.jpg',
|
||||
},
|
||||
{
|
||||
id : 'd1f612e6-3e3b-481f-a8a9-f917e243b06e',
|
||||
name : 'Marquez Ryan',
|
||||
avatar: 'assets/images/avatars/male-05.jpg'
|
||||
avatar: 'assets/images/avatars/male-05.jpg',
|
||||
},
|
||||
{
|
||||
id : '79ebb9ee-1e57-4706-810c-03edaec8f56d',
|
||||
name : 'Roberta Briggs',
|
||||
avatar: 'assets/images/avatars/female-07.jpg'
|
||||
avatar: 'assets/images/avatars/female-07.jpg',
|
||||
},
|
||||
{
|
||||
id : '6726643d-e8dc-42fa-83a6-b4ec06921a6b',
|
||||
name : 'Robbie Buckley',
|
||||
avatar: 'assets/images/avatars/female-08.jpg'
|
||||
avatar: 'assets/images/avatars/female-08.jpg',
|
||||
},
|
||||
{
|
||||
id : '8af617d7-898e-4992-beda-d5ac1d7ceda4',
|
||||
name : 'Garcia Whitney',
|
||||
avatar: 'assets/images/avatars/male-06.jpg'
|
||||
avatar: 'assets/images/avatars/male-06.jpg',
|
||||
},
|
||||
{
|
||||
id : 'bcff44c4-9943-4adc-9049-08b1d922a658',
|
||||
name : 'Spencer Pate',
|
||||
avatar: 'assets/images/avatars/male-07.jpg'
|
||||
avatar: 'assets/images/avatars/male-07.jpg',
|
||||
},
|
||||
{
|
||||
id : '54160ca2-29c9-4475-88a1-31a9307ad913',
|
||||
name : 'Monica Mcdaniel',
|
||||
avatar: 'assets/images/avatars/female-09.jpg'
|
||||
avatar: 'assets/images/avatars/female-09.jpg',
|
||||
},
|
||||
{
|
||||
id : '51286603-3a43-444e-9242-f51fe57d5363',
|
||||
name : 'Mcmillan Durham',
|
||||
avatar: 'assets/images/avatars/male-08.jpg'
|
||||
avatar: 'assets/images/avatars/male-08.jpg',
|
||||
},
|
||||
{
|
||||
id : '319ecb5b-f99c-4ee4-81b2-3aeffd1d4735',
|
||||
name : 'Jeoine Hebert',
|
||||
avatar: 'assets/images/avatars/female-10.jpg'
|
||||
avatar: 'assets/images/avatars/female-10.jpg',
|
||||
},
|
||||
{
|
||||
id : 'fe0fec0d-002b-406f-87ab-47eb87ba577c',
|
||||
name : 'Susanna Kline',
|
||||
avatar: 'assets/images/avatars/female-11.jpg'
|
||||
avatar: 'assets/images/avatars/female-11.jpg',
|
||||
},
|
||||
{
|
||||
id : '23a47d2c-c6cb-40cc-af87-e946a9df5028',
|
||||
name : 'Suzette Singleton',
|
||||
avatar: 'assets/images/avatars/female-12.jpg'
|
||||
}
|
||||
avatar: 'assets/images/avatars/female-12.jpg',
|
||||
},
|
||||
];
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { assign, cloneDeep } from 'lodash-es';
|
||||
import { FuseMockApiUtils } from '@fuse/lib/mock-api/mock-api.utils';
|
||||
import { FuseMockApiService } from '@fuse/lib/mock-api/mock-api.service';
|
||||
import { FuseMockApiUtils } from '@fuse/lib/mock-api/mock-api.utils';
|
||||
import { tags as tagsData, tasks as tasksData } from 'app/mock-api/apps/tasks/data';
|
||||
import { assign, cloneDeep } from 'lodash-es';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class TasksMockApi
|
||||
{
|
||||
@@ -37,7 +37,7 @@ export class TasksMockApi
|
||||
.onGet('api/apps/tasks/tags')
|
||||
.reply(() => [
|
||||
200,
|
||||
cloneDeep(this._tags)
|
||||
cloneDeep(this._tags),
|
||||
]);
|
||||
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
@@ -45,7 +45,8 @@ export class TasksMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPost('api/apps/tasks/tag')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the tag
|
||||
const newTag = cloneDeep(request.body.tag);
|
||||
@@ -58,7 +59,7 @@ export class TasksMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
newTag
|
||||
newTag,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -67,7 +68,8 @@ export class TasksMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPatch('api/apps/tasks/tag')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id and tag
|
||||
const id = request.body.id;
|
||||
@@ -77,7 +79,8 @@ export class TasksMockApi
|
||||
let updatedTag = null;
|
||||
|
||||
// Find the tag and update it
|
||||
this._tags.forEach((item, index, tags) => {
|
||||
this._tags.forEach((item, index, tags) =>
|
||||
{
|
||||
|
||||
if ( item.id === id )
|
||||
{
|
||||
@@ -91,7 +94,7 @@ export class TasksMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
updatedTag
|
||||
updatedTag,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -100,7 +103,8 @@ export class TasksMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onDelete('api/apps/tasks/tag')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id
|
||||
const id = request.params.get('id');
|
||||
@@ -113,13 +117,14 @@ export class TasksMockApi
|
||||
const tasksWithTag = this._tasks.filter(task => task.tags.indexOf(id) > -1);
|
||||
|
||||
// Iterate through them and remove the tag
|
||||
tasksWithTag.forEach((task) => {
|
||||
tasksWithTag.forEach((task) =>
|
||||
{
|
||||
task.tags.splice(task.tags.indexOf(id), 1);
|
||||
});
|
||||
|
||||
return [
|
||||
200,
|
||||
true
|
||||
true,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -128,7 +133,8 @@ export class TasksMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/tasks/all')
|
||||
.reply(() => {
|
||||
.reply(() =>
|
||||
{
|
||||
|
||||
// Clone the tasks
|
||||
const tasks = cloneDeep(this._tasks);
|
||||
@@ -138,7 +144,7 @@ export class TasksMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
tasks
|
||||
tasks,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -147,7 +153,8 @@ export class TasksMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/tasks/search')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the search query
|
||||
const query = request.params.get('query');
|
||||
@@ -163,10 +170,11 @@ export class TasksMockApi
|
||||
|
||||
// Filter the tasks
|
||||
tasks = tasks.filter(task => task.title && task.title.toLowerCase().includes(query.toLowerCase()) || task.notes && task.notes.toLowerCase()
|
||||
.includes(query.toLowerCase()));
|
||||
.includes(query.toLowerCase()));
|
||||
|
||||
// Mark the found chars
|
||||
tasks.forEach((task) => {
|
||||
tasks.forEach((task) =>
|
||||
{
|
||||
const re = new RegExp('(' + query.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&') + ')', 'ig');
|
||||
task.title = task.title.replace(re, '<mark>$1</mark>');
|
||||
});
|
||||
@@ -182,7 +190,7 @@ export class TasksMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
results
|
||||
results,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -191,13 +199,15 @@ export class TasksMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPatch('api/apps/tasks/order')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the tasks
|
||||
const tasks = request.body.tasks;
|
||||
|
||||
// Go through the tasks
|
||||
this._tasks.forEach((task) => {
|
||||
this._tasks.forEach((task) =>
|
||||
{
|
||||
|
||||
// Find this task's index within the tasks array that comes with the request
|
||||
// and assign that index as the new order number for the task
|
||||
@@ -209,7 +219,7 @@ export class TasksMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
updatedTasks
|
||||
updatedTasks,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -218,7 +228,8 @@ export class TasksMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onGet('api/apps/tasks/task')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id from the params
|
||||
const id = request.params.get('id');
|
||||
@@ -231,7 +242,7 @@ export class TasksMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
task
|
||||
task,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -240,7 +251,8 @@ export class TasksMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPost('api/apps/tasks/task')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Generate a new task
|
||||
const newTask = {
|
||||
@@ -252,20 +264,21 @@ export class TasksMockApi
|
||||
dueDate : null,
|
||||
priority : 1,
|
||||
tags : [],
|
||||
order : 0
|
||||
order : 0,
|
||||
};
|
||||
|
||||
// Unshift the new task
|
||||
this._tasks.unshift(newTask);
|
||||
|
||||
// Go through the tasks and update their order numbers
|
||||
this._tasks.forEach((task, index) => {
|
||||
this._tasks.forEach((task, index) =>
|
||||
{
|
||||
task.order = index;
|
||||
});
|
||||
|
||||
return [
|
||||
200,
|
||||
newTask
|
||||
newTask,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -274,7 +287,8 @@ export class TasksMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onPatch('api/apps/tasks/task')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id and task
|
||||
const id = request.body.id;
|
||||
@@ -284,7 +298,8 @@ export class TasksMockApi
|
||||
let updatedTask = null;
|
||||
|
||||
// Find the task and update it
|
||||
this._tasks.forEach((item, index, tasks) => {
|
||||
this._tasks.forEach((item, index, tasks) =>
|
||||
{
|
||||
|
||||
if ( item.id === id )
|
||||
{
|
||||
@@ -298,7 +313,7 @@ export class TasksMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
updatedTask
|
||||
updatedTask,
|
||||
];
|
||||
});
|
||||
|
||||
@@ -307,7 +322,8 @@ export class TasksMockApi
|
||||
// -----------------------------------------------------------------------------------------------------
|
||||
this._fuseMockApiService
|
||||
.onDelete('api/apps/tasks/task')
|
||||
.reply(({request}) => {
|
||||
.reply(({request}) =>
|
||||
{
|
||||
|
||||
// Get the id
|
||||
const id = request.params.get('id');
|
||||
@@ -318,7 +334,7 @@ export class TasksMockApi
|
||||
|
||||
return [
|
||||
200,
|
||||
true
|
||||
true,
|
||||
];
|
||||
});
|
||||
}
|
||||
|
||||
+175
-175
@@ -2,130 +2,130 @@
|
||||
export const tags = [
|
||||
{
|
||||
id : 'a0bf42ca-c3a5-47be-8341-b9c0bb8ef270',
|
||||
title: 'Api'
|
||||
title: 'Api',
|
||||
},
|
||||
{
|
||||
id : 'c6058d0d-a4b0-4453-986a-9d249ec230b1',
|
||||
title: 'Frontend'
|
||||
title: 'Frontend',
|
||||
},
|
||||
{
|
||||
id : 'd3ef4226-ef2c-43b0-a986-3e3e07f32799',
|
||||
title: 'Bug'
|
||||
title: 'Bug',
|
||||
},
|
||||
{
|
||||
id : '51483dd3-cb98-4400-9128-4bd66b455807',
|
||||
title: 'Backend'
|
||||
title: 'Backend',
|
||||
},
|
||||
{
|
||||
id : '91658b8a-f382-4b0c-a53f-e9390351c2c5',
|
||||
title: 'Urgent'
|
||||
title: 'Urgent',
|
||||
},
|
||||
{
|
||||
id : '2b884143-419a-45ca-a7f6-48f99f4e7798',
|
||||
title: 'Discuss'
|
||||
}
|
||||
title: 'Discuss',
|
||||
},
|
||||
];
|
||||
export const members = [
|
||||
{
|
||||
id : '65f1c421-83c5-4cdf-99da-d97794328679',
|
||||
name : 'Angeline Vinson',
|
||||
avatar: 'assets/images/avatars/female-01.jpg'
|
||||
avatar: 'assets/images/avatars/female-01.jpg',
|
||||
},
|
||||
{
|
||||
id : '88a2a76c-0e6f-49da-b617-46d7c3b6e64d',
|
||||
name : 'Roseann Greer',
|
||||
avatar: 'assets/images/avatars/female-02.jpg'
|
||||
avatar: 'assets/images/avatars/female-02.jpg',
|
||||
},
|
||||
{
|
||||
id : '6ab7751e-6579-40af-9171-231c0fd6a993',
|
||||
name : 'Lorraine Barnett',
|
||||
avatar: 'assets/images/avatars/female-03.jpg'
|
||||
avatar: 'assets/images/avatars/female-03.jpg',
|
||||
},
|
||||
{
|
||||
id : '3e353312-6a9b-46af-adda-5061b06e806b',
|
||||
name : 'Middleton Bradford',
|
||||
avatar: 'assets/images/avatars/male-01.jpg'
|
||||
avatar: 'assets/images/avatars/male-01.jpg',
|
||||
},
|
||||
{
|
||||
id : '3a23baf7-2db8-4ef5-8d49-86d3e708dff5',
|
||||
name : 'Sue Hays',
|
||||
avatar: 'assets/images/avatars/female-04.jpg'
|
||||
avatar: 'assets/images/avatars/female-04.jpg',
|
||||
},
|
||||
{
|
||||
id : 'e62ab50e-90d3-4ed7-a911-093bb44d0c50',
|
||||
name : 'Keith Neal',
|
||||
avatar: 'assets/images/avatars/male-02.jpg'
|
||||
avatar: 'assets/images/avatars/male-02.jpg',
|
||||
},
|
||||
{
|
||||
id : '368aab1e-ebce-43ba-8925-4cf13937867b',
|
||||
name : 'Wilkins Gilmore',
|
||||
avatar: 'assets/images/avatars/male-03.jpg'
|
||||
avatar: 'assets/images/avatars/male-03.jpg',
|
||||
},
|
||||
{
|
||||
id : 'ef44b39b-3272-45f5-a15e-264c3b2d118e',
|
||||
name : 'Baldwin Stein',
|
||||
avatar: 'assets/images/avatars/male-04.jpg'
|
||||
avatar: 'assets/images/avatars/male-04.jpg',
|
||||
},
|
||||
{
|
||||
id : '7f5db993-ec36-412f-9db3-16d076a98807',
|
||||
name : 'Bobbie Cohen',
|
||||
avatar: 'assets/images/avatars/female-05.jpg'
|
||||
avatar: 'assets/images/avatars/female-05.jpg',
|
||||
},
|
||||
{
|
||||
id : 'e2c81627-a8a1-4bbc-9adc-ac4281e040d4',
|
||||
name : 'Melody Peters',
|
||||
avatar: 'assets/images/avatars/female-06.jpg'
|
||||
avatar: 'assets/images/avatars/female-06.jpg',
|
||||
},
|
||||
{
|
||||
id : 'a21ec32e-54ba-480b-afdc-d1cbe18a96fd',
|
||||
name : 'Marquez Ryan',
|
||||
avatar: 'assets/images/avatars/male-05.jpg'
|
||||
avatar: 'assets/images/avatars/male-05.jpg',
|
||||
},
|
||||
{
|
||||
id : '45e09584-1a54-40e6-8210-1de4d1c05593',
|
||||
name : 'Roberta Briggs',
|
||||
avatar: 'assets/images/avatars/female-07.jpg'
|
||||
avatar: 'assets/images/avatars/female-07.jpg',
|
||||
},
|
||||
{
|
||||
id : '6617b0a3-0ccd-44ea-af78-c6633115d683',
|
||||
name : 'Robbie Buckley',
|
||||
avatar: 'assets/images/avatars/female-08.jpg'
|
||||
avatar: 'assets/images/avatars/female-08.jpg',
|
||||
},
|
||||
{
|
||||
id : '271e6a06-0d37-433d-bc8d-607b12bcbed9',
|
||||
name : 'Garcia Whitney',
|
||||
avatar: 'assets/images/avatars/male-06.jpg'
|
||||
avatar: 'assets/images/avatars/male-06.jpg',
|
||||
},
|
||||
{
|
||||
id : '65e15136-5168-4655-8bbc-e3ad8a94bf67',
|
||||
name : 'Spencer Pate',
|
||||
avatar: 'assets/images/avatars/male-07.jpg'
|
||||
avatar: 'assets/images/avatars/male-07.jpg',
|
||||
},
|
||||
{
|
||||
id : '28dcda24-812d-4086-9638-b28bd85beecc',
|
||||
name : 'Monica Mcdaniel',
|
||||
avatar: 'assets/images/avatars/female-09.jpg'
|
||||
avatar: 'assets/images/avatars/female-09.jpg',
|
||||
},
|
||||
{
|
||||
id : '56a3e7ce-01da-43fc-ab9f-a8a39fa980de',
|
||||
name : 'Mcmillan Durham',
|
||||
avatar: 'assets/images/avatars/male-08.jpg'
|
||||
avatar: 'assets/images/avatars/male-08.jpg',
|
||||
},
|
||||
{
|
||||
id : '4d24cf48-a322-4d53-89cb-9140dfd5c6ba',
|
||||
name : 'Jfuseine Hebert',
|
||||
avatar: 'assets/images/avatars/female-10.jpg'
|
||||
avatar: 'assets/images/avatars/female-10.jpg',
|
||||
},
|
||||
{
|
||||
id : 'b2e97a96-2f15-4e3d-aff5-4ddf2af924d4',
|
||||
name : 'Susanna Kline',
|
||||
avatar: 'assets/images/avatars/female-11.jpg'
|
||||
avatar: 'assets/images/avatars/female-11.jpg',
|
||||
},
|
||||
{
|
||||
id : '4678ad07-e057-48a9-a5d1-3cf98e722eeb',
|
||||
name : 'Suzette Singleton',
|
||||
avatar: 'assets/images/avatars/female-12.jpg'
|
||||
}
|
||||
avatar: 'assets/images/avatars/female-12.jpg',
|
||||
},
|
||||
];
|
||||
export const tasks = [
|
||||
{
|
||||
@@ -138,22 +138,22 @@ export const tasks = [
|
||||
priority : 1,
|
||||
tags : [
|
||||
'91658b8a-f382-4b0c-a53f-e9390351c2c5',
|
||||
'51483dd3-cb98-4400-9128-4bd66b455807'
|
||||
'51483dd3-cb98-4400-9128-4bd66b455807',
|
||||
],
|
||||
assignedTo: null,
|
||||
subTasks : [
|
||||
{
|
||||
id : '2768a969-a316-449b-bf82-93cff4252cbf',
|
||||
title : 'Minim irure fugiat ullamco irure',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '6cc5ac8f-3a02-47e6-ad4b-0bd0222e2717',
|
||||
title : 'Sint velit ex in adipisicing fugiat',
|
||||
completed: false
|
||||
}
|
||||
completed: false,
|
||||
},
|
||||
],
|
||||
order : 0
|
||||
order : 0,
|
||||
},
|
||||
{
|
||||
id : '0fcece82-1691-4b98-a9b9-b63218f9deef',
|
||||
@@ -166,7 +166,7 @@ export const tasks = [
|
||||
tags : [],
|
||||
assignedTo: 'e2c81627-a8a1-4bbc-9adc-ac4281e040d4',
|
||||
subTasks : [],
|
||||
order : 1
|
||||
order : 1,
|
||||
},
|
||||
{
|
||||
id : '2e6971cd-49d5-49f1-8cbd-fba5c71e6062',
|
||||
@@ -179,22 +179,22 @@ export const tasks = [
|
||||
tags : [
|
||||
'c6058d0d-a4b0-4453-986a-9d249ec230b1',
|
||||
'2b884143-419a-45ca-a7f6-48f99f4e7798',
|
||||
'91658b8a-f382-4b0c-a53f-e9390351c2c5'
|
||||
'91658b8a-f382-4b0c-a53f-e9390351c2c5',
|
||||
],
|
||||
assignedTo: '88a2a76c-0e6f-49da-b617-46d7c3b6e64d',
|
||||
subTasks : [
|
||||
{
|
||||
id : 'b9566b52-82cd-4d2a-b9b6-240c6b44e52b',
|
||||
title : 'Nulla officia elit adipisicing',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '76f4dc8d-4803-4d98-b461-367a1d3746a8',
|
||||
title : 'Magna nisi ut aliquip aliquip amet deserunt',
|
||||
completed: false
|
||||
}
|
||||
completed: false,
|
||||
},
|
||||
],
|
||||
order : 2
|
||||
order : 2,
|
||||
},
|
||||
{
|
||||
id : '974f93b8-336f-4eec-b011-9ddb412ee828',
|
||||
@@ -205,32 +205,32 @@ export const tasks = [
|
||||
dueDate : null,
|
||||
priority : 2,
|
||||
tags : [
|
||||
'a0bf42ca-c3a5-47be-8341-b9c0bb8ef270'
|
||||
'a0bf42ca-c3a5-47be-8341-b9c0bb8ef270',
|
||||
],
|
||||
assignedTo: null,
|
||||
subTasks : [
|
||||
{
|
||||
id : '8e9644dc-0815-4258-8a08-4ce8d9912ec0',
|
||||
title : 'Adipisicing aliquip voluptate veniam',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : 'fc0f2283-3802-4ebe-b164-774bc2b84549',
|
||||
title : 'Magna amet adipisicing velit nisi est',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '8a74b56f-14c0-4700-b737-8ccfa912f4b6',
|
||||
title : 'Eiusmod dolore voluptate excepteur ipsum nostrud',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '439ed5b7-156d-414a-ba20-ce779e3ec037',
|
||||
title : 'Laborum adipisicing quis culpa amet',
|
||||
completed: true
|
||||
}
|
||||
completed: true,
|
||||
},
|
||||
],
|
||||
order : 3
|
||||
order : 3,
|
||||
},
|
||||
{
|
||||
id : '5d877fc7-b881-4527-a6aa-d39d642feb23',
|
||||
@@ -241,22 +241,22 @@ export const tasks = [
|
||||
dueDate : null,
|
||||
priority : 1,
|
||||
tags : [
|
||||
'51483dd3-cb98-4400-9128-4bd66b455807'
|
||||
'51483dd3-cb98-4400-9128-4bd66b455807',
|
||||
],
|
||||
assignedTo: '4678ad07-e057-48a9-a5d1-3cf98e722eeb',
|
||||
subTasks : [
|
||||
{
|
||||
id : 'b076c673-7d76-43b5-aaca-d0c496f397e5',
|
||||
title : 'Esse dolore nostrud lorem consectetur',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : 'a01522ff-07fa-4fbd-a168-47802446b705',
|
||||
title : 'Lorem velit voluptate laborum ad',
|
||||
completed: false
|
||||
}
|
||||
completed: false,
|
||||
},
|
||||
],
|
||||
order : 4
|
||||
order : 4,
|
||||
},
|
||||
{
|
||||
id : '3d1c26c5-1e5e-4eb6-8006-ed6037ed9aca',
|
||||
@@ -267,11 +267,11 @@ export const tasks = [
|
||||
dueDate : '2018-09-29T19:30:45.325Z',
|
||||
priority : 1,
|
||||
tags : [
|
||||
'c6058d0d-a4b0-4453-986a-9d249ec230b1'
|
||||
'c6058d0d-a4b0-4453-986a-9d249ec230b1',
|
||||
],
|
||||
assignedTo: '6617b0a3-0ccd-44ea-af78-c6633115d683',
|
||||
subTasks : [],
|
||||
order : 5
|
||||
order : 5,
|
||||
},
|
||||
{
|
||||
id : '11bd2b9a-85b4-41c9-832c-bd600dfa3a52',
|
||||
@@ -287,10 +287,10 @@ export const tasks = [
|
||||
{
|
||||
id : '9cd8eba8-7c41-4230-9d80-f71f7ed1cfe9',
|
||||
title : 'Eu exercitation proident dolore velit',
|
||||
completed: true
|
||||
}
|
||||
completed: true,
|
||||
},
|
||||
],
|
||||
order : 6
|
||||
order : 6,
|
||||
},
|
||||
{
|
||||
id : 'f55c023a-785e-4f0f-b5b7-47da75224deb',
|
||||
@@ -306,25 +306,25 @@ export const tasks = [
|
||||
{
|
||||
id : 'cdb08aa2-980d-48c6-b15c-7970775b7b5a',
|
||||
title : 'Veniam magna minim duis',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : 'dc19e213-687e-4391-8b61-9aabed2fb288',
|
||||
title : 'Eu dolore et adipisicing commodo adipisicing consequat',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '7e365400-59b9-4ec9-b397-8bf40de56ec4',
|
||||
title : 'Do culpa quis consequat cupidatat',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : '1a0f98b0-dfc4-4ac9-b8f5-ce322da2a849',
|
||||
title : 'Est duis do sunt esse magna ex',
|
||||
completed: true
|
||||
}
|
||||
completed: true,
|
||||
},
|
||||
],
|
||||
order : 7
|
||||
order : 7,
|
||||
},
|
||||
{
|
||||
id : 'c577a67d-357a-4b88-96e8-a0ee1fe9162e',
|
||||
@@ -336,22 +336,22 @@ export const tasks = [
|
||||
priority : 1,
|
||||
tags : [
|
||||
'c6058d0d-a4b0-4453-986a-9d249ec230b1',
|
||||
'a0bf42ca-c3a5-47be-8341-b9c0bb8ef270'
|
||||
'a0bf42ca-c3a5-47be-8341-b9c0bb8ef270',
|
||||
],
|
||||
assignedTo: 'a21ec32e-54ba-480b-afdc-d1cbe18a96fd',
|
||||
subTasks : [
|
||||
{
|
||||
id : 'b1849778-a69c-46ad-8373-99aa6a655965',
|
||||
title : 'Ipsum ipsum occaecat nulla',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : '8325f17a-2af0-4f64-b043-8ffdaaa62408',
|
||||
title : 'Quis proident amet id non nulla',
|
||||
completed: true
|
||||
}
|
||||
completed: true,
|
||||
},
|
||||
],
|
||||
order : 8
|
||||
order : 8,
|
||||
},
|
||||
{
|
||||
id : '1a680c29-7ece-4a80-9709-277ad4da8b4b',
|
||||
@@ -363,11 +363,11 @@ export const tasks = [
|
||||
priority : 2,
|
||||
tags : [
|
||||
'a0bf42ca-c3a5-47be-8341-b9c0bb8ef270',
|
||||
'2b884143-419a-45ca-a7f6-48f99f4e7798'
|
||||
'2b884143-419a-45ca-a7f6-48f99f4e7798',
|
||||
],
|
||||
assignedTo: '3e353312-6a9b-46af-adda-5061b06e806b',
|
||||
subTasks : [],
|
||||
order : 9
|
||||
order : 9,
|
||||
},
|
||||
{
|
||||
id : 'c49c2216-8bdb-4df0-be25-d5ea1dbb5688',
|
||||
@@ -378,17 +378,17 @@ export const tasks = [
|
||||
dueDate : '2019-08-10T06:18:17.785Z',
|
||||
priority : 1,
|
||||
tags : [
|
||||
'a0bf42ca-c3a5-47be-8341-b9c0bb8ef270'
|
||||
'a0bf42ca-c3a5-47be-8341-b9c0bb8ef270',
|
||||
],
|
||||
assignedTo: '368aab1e-ebce-43ba-8925-4cf13937867b',
|
||||
subTasks : [
|
||||
{
|
||||
id : '756ceee7-a9b2-45b6-9f22-5be974da7cf5',
|
||||
title : 'Irure incididunt adipisicing consectetur enim',
|
||||
completed: false
|
||||
}
|
||||
completed: false,
|
||||
},
|
||||
],
|
||||
order : 10
|
||||
order : 10,
|
||||
},
|
||||
{
|
||||
id : '3ef176fa-6cba-4536-9f43-540c686a4faa',
|
||||
@@ -399,37 +399,37 @@ export const tasks = [
|
||||
dueDate : '2024-08-23T14:33:06.227Z',
|
||||
priority : 2,
|
||||
tags : [
|
||||
'91658b8a-f382-4b0c-a53f-e9390351c2c5'
|
||||
'91658b8a-f382-4b0c-a53f-e9390351c2c5',
|
||||
],
|
||||
assignedTo: '271e6a06-0d37-433d-bc8d-607b12bcbed9',
|
||||
subTasks : [
|
||||
{
|
||||
id : '35b06803-2019-4025-b642-841e44de7571',
|
||||
title : 'Reprehenderit et eiusmod do consectetur ipsum',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '7ec47bbc-e644-45ae-84e3-de36ee35a22b',
|
||||
title : 'Officia lorem tempor occaecat fugiat elit elit',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : 'b4560302-7bed-412c-8e43-a5ce0bce5eed',
|
||||
title : 'Incididunt commodo amet fugiat nulla et',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '494bfcac-44ee-46db-add2-0e5dbc3952c4',
|
||||
title : 'Enim ipsum fugiat ipsum aute quis',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : 'ffa45bc0-4466-4584-891a-0f75e39766c1',
|
||||
title : 'Esse excepteur commodo ullamco',
|
||||
completed: true
|
||||
}
|
||||
completed: true,
|
||||
},
|
||||
],
|
||||
order : 11
|
||||
order : 11,
|
||||
},
|
||||
{
|
||||
id : '7bc6b7b4-7ad8-4cbe-af36-7301642d35fb',
|
||||
@@ -442,37 +442,37 @@ export const tasks = [
|
||||
tags : [
|
||||
'51483dd3-cb98-4400-9128-4bd66b455807',
|
||||
'd3ef4226-ef2c-43b0-a986-3e3e07f32799',
|
||||
'a0bf42ca-c3a5-47be-8341-b9c0bb8ef270'
|
||||
'a0bf42ca-c3a5-47be-8341-b9c0bb8ef270',
|
||||
],
|
||||
assignedTo: '4d24cf48-a322-4d53-89cb-9140dfd5c6ba',
|
||||
subTasks : [
|
||||
{
|
||||
id : 'a72f756b-e1db-4492-96b9-93785400e8bb',
|
||||
title : 'Amet eiusmod consequat non culpa',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '07fb282a-141a-4014-96d2-030894a6e211',
|
||||
title : 'Nulla laboris veniam qui et nostrud enim',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '40629855-8ba8-4590-9ebe-2e2ff3f20820',
|
||||
title : 'Est est nulla cillum aliquip duis ipsum',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : '96e283b2-cd3e-4ab9-9770-07247691304b',
|
||||
title : 'Non elit tempor commodo enim laboris',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : '95c6a48a-4e42-4909-8c25-0fafd62aeefa',
|
||||
title : 'Proident est anim do laborum nostrud',
|
||||
completed: false
|
||||
}
|
||||
completed: false,
|
||||
},
|
||||
],
|
||||
order : 12
|
||||
order : 12,
|
||||
},
|
||||
{
|
||||
id : '56c9ed66-a1d2-4803-a160-fba29b826cb4',
|
||||
@@ -483,37 +483,37 @@ export const tasks = [
|
||||
dueDate : '2023-09-15T15:12:36.910Z',
|
||||
priority : 0,
|
||||
tags : [
|
||||
'2b884143-419a-45ca-a7f6-48f99f4e7798'
|
||||
'2b884143-419a-45ca-a7f6-48f99f4e7798',
|
||||
],
|
||||
assignedTo: '3a23baf7-2db8-4ef5-8d49-86d3e708dff5',
|
||||
subTasks : [
|
||||
{
|
||||
id : 'f1890ef6-89ed-47ca-a124-8305d7fe71fd',
|
||||
title : 'Sit eu aliqua et et',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : '647f63b9-27b8-4d65-8e09-874ef5a48573',
|
||||
title : 'Voluptate esse cillum commodo',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : '2934f015-1fd1-41c0-8b5a-d7adb5c50553',
|
||||
title : 'Qui commodo fugiat eiusmod sint anim',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : 'f964fc8d-662c-4586-a39f-dab6674f2760',
|
||||
title : 'Consequat nulla anim velit reprehenderit',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : 'ab3dd1a9-a9fb-4864-8630-da270cf71ee5',
|
||||
title : 'Adipisicing officia ex laboris',
|
||||
completed: true
|
||||
}
|
||||
completed: true,
|
||||
},
|
||||
],
|
||||
order : 13
|
||||
order : 13,
|
||||
},
|
||||
{
|
||||
id : '21c1b662-33c8-44d7-9530-91896afeeac7',
|
||||
@@ -529,25 +529,25 @@ export const tasks = [
|
||||
{
|
||||
id : 'e5fece14-cc26-40df-9319-23568cf89662',
|
||||
title : 'Tempor qui eiusmod et',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '30e6117d-e2a2-4f97-a674-19a554a94829',
|
||||
title : 'Tempor magna eu dolore aliquip',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : 'a5dd7270-1bc7-4b2b-abf0-9366eaca972d',
|
||||
title : 'Lorem duis esse commodo',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '40ffd839-046f-4272-9232-5391d62477f7',
|
||||
title : 'Minim aute eu ut id',
|
||||
completed: false
|
||||
}
|
||||
completed: false,
|
||||
},
|
||||
],
|
||||
order : 14
|
||||
order : 14,
|
||||
},
|
||||
{
|
||||
id : '5fa52c90-82be-41ae-96ec-5fc67cf054a4',
|
||||
@@ -558,27 +558,27 @@ export const tasks = [
|
||||
dueDate : '2019-10-13T08:25:17.064Z',
|
||||
priority : 0,
|
||||
tags : [
|
||||
'2b884143-419a-45ca-a7f6-48f99f4e7798'
|
||||
'2b884143-419a-45ca-a7f6-48f99f4e7798',
|
||||
],
|
||||
assignedTo: 'b2e97a96-2f15-4e3d-aff5-4ddf2af924d4',
|
||||
subTasks : [
|
||||
{
|
||||
id : '2ef107fb-3c21-4801-861f-abaf4fd6def0',
|
||||
title : 'Voluptate qui excepteur id in',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : '0afb4ebf-fcc7-47dc-8351-a88cb47c39ee',
|
||||
title : 'Laborum ipsum aute nisi anim',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '2f22bff2-72be-4ff5-b037-c3bf0f1d5637',
|
||||
title : 'Amet duis velit sunt non',
|
||||
completed: false
|
||||
}
|
||||
completed: false,
|
||||
},
|
||||
],
|
||||
order : 15
|
||||
order : 15,
|
||||
},
|
||||
{
|
||||
id : 'b6d8909f-f36d-4885-8848-46b8230d4476',
|
||||
@@ -589,11 +589,11 @@ export const tasks = [
|
||||
dueDate : '2020-02-03T05:39:30.880Z',
|
||||
priority : 1,
|
||||
tags : [
|
||||
'2b884143-419a-45ca-a7f6-48f99f4e7798'
|
||||
'2b884143-419a-45ca-a7f6-48f99f4e7798',
|
||||
],
|
||||
assignedTo: '65e15136-5168-4655-8bbc-e3ad8a94bf67',
|
||||
subTasks : [],
|
||||
order : 16
|
||||
order : 16,
|
||||
},
|
||||
{
|
||||
id : '9496235d-4d0c-430b-817e-1cba96404f95',
|
||||
@@ -609,20 +609,20 @@ export const tasks = [
|
||||
{
|
||||
id : '9e710568-306f-47f9-b397-5634dc7a1a52',
|
||||
title : 'Lorem excepteur non anim non exercitation fugiat',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : 'bd10d3d5-22d1-467d-aa6b-431d23203f51',
|
||||
title : 'Nulla non in occaecat nulla',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '0a768b47-7248-4000-a201-e51f86401317',
|
||||
title : 'Dolor qui deserunt duis enim do veniam',
|
||||
completed: true
|
||||
}
|
||||
completed: true,
|
||||
},
|
||||
],
|
||||
order : 17
|
||||
order : 17,
|
||||
},
|
||||
{
|
||||
id : '7fde17e6-4ac1-47dd-a363-2f4f14dcf76a',
|
||||
@@ -636,27 +636,27 @@ export const tasks = [
|
||||
'2b884143-419a-45ca-a7f6-48f99f4e7798',
|
||||
'91658b8a-f382-4b0c-a53f-e9390351c2c5',
|
||||
'c6058d0d-a4b0-4453-986a-9d249ec230b1',
|
||||
'a0bf42ca-c3a5-47be-8341-b9c0bb8ef270'
|
||||
'a0bf42ca-c3a5-47be-8341-b9c0bb8ef270',
|
||||
],
|
||||
assignedTo: '88a2a76c-0e6f-49da-b617-46d7c3b6e64d',
|
||||
subTasks : [
|
||||
{
|
||||
id : 'f82708c3-2b58-4ac0-b58c-164c0804c631',
|
||||
title : 'Mollit laborum tempor lorem cupidatat dolore nostrud',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : '0017121e-79fc-403c-bb1c-84dc28f79e06',
|
||||
title : 'Nisi sint sint et et ad',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : '9073242a-5be6-487a-9e50-ea298700af79',
|
||||
title : 'Duis nulla ad magna',
|
||||
completed: false
|
||||
}
|
||||
completed: false,
|
||||
},
|
||||
],
|
||||
order : 18
|
||||
order : 18,
|
||||
},
|
||||
{
|
||||
id : '90a3ed58-e13b-40cf-9219-f933bf9c9b8f',
|
||||
@@ -667,22 +667,22 @@ export const tasks = [
|
||||
dueDate : '2023-10-04T15:48:16.507Z',
|
||||
priority : 1,
|
||||
tags : [
|
||||
'd3ef4226-ef2c-43b0-a986-3e3e07f32799'
|
||||
'd3ef4226-ef2c-43b0-a986-3e3e07f32799',
|
||||
],
|
||||
assignedTo: null,
|
||||
subTasks : [
|
||||
{
|
||||
id : 'eaab24ed-cf9e-4ee7-b7ff-acd8f62f617a',
|
||||
title : 'Eiusmod nulla enim laborum deserunt in',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '700d067c-c5be-4532-95e3-ba575effae7c',
|
||||
title : 'Sunt sint ea est commodo id',
|
||||
completed: false
|
||||
}
|
||||
completed: false,
|
||||
},
|
||||
],
|
||||
order : 19
|
||||
order : 19,
|
||||
},
|
||||
{
|
||||
id : '81ac908c-35a2-4705-8d75-539863c35c09',
|
||||
@@ -693,17 +693,17 @@ export const tasks = [
|
||||
dueDate : '2024-02-01T10:02:52.745Z',
|
||||
priority : 1,
|
||||
tags : [
|
||||
'a0bf42ca-c3a5-47be-8341-b9c0bb8ef270'
|
||||
'a0bf42ca-c3a5-47be-8341-b9c0bb8ef270',
|
||||
],
|
||||
assignedTo: '368aab1e-ebce-43ba-8925-4cf13937867b',
|
||||
subTasks : [
|
||||
{
|
||||
id : '651a87c6-4376-42c4-9dfd-fad7525e7eb3',
|
||||
title : 'Aliqua est excepteur excepteur deserunt id',
|
||||
completed: true
|
||||
}
|
||||
completed: true,
|
||||
},
|
||||
],
|
||||
order : 20
|
||||
order : 20,
|
||||
},
|
||||
{
|
||||
id : '153376ed-691f-4dfd-ae99-e204a49edc44',
|
||||
@@ -716,7 +716,7 @@ export const tasks = [
|
||||
tags : [],
|
||||
assignedTo: '65f1c421-83c5-4cdf-99da-d97794328679',
|
||||
subTasks : [],
|
||||
order : 21
|
||||
order : 21,
|
||||
},
|
||||
{
|
||||
id : '1ebde495-1bcd-4e8f-b6f6-cf63b521ad06',
|
||||
@@ -732,15 +732,15 @@ export const tasks = [
|
||||
{
|
||||
id : 'c5a8b915-0b0f-4dd3-a1a3-e538fa191747',
|
||||
title : 'Adipisicing do minim voluptate',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : '52b50615-0d80-42b6-97cb-1b71eaec1632',
|
||||
title : 'Et eiusmod est adipisicing officia',
|
||||
completed: true
|
||||
}
|
||||
completed: true,
|
||||
},
|
||||
],
|
||||
order : 22
|
||||
order : 22,
|
||||
},
|
||||
{
|
||||
id : '4e7ce72f-863a-451f-9160-cbd4fbbc4c3d',
|
||||
@@ -756,25 +756,25 @@ export const tasks = [
|
||||
{
|
||||
id : '654c9b65-6f94-4ae7-bf11-27f979cc670e',
|
||||
title : 'Esse exercitation cillum ex',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '3c49aba9-1e83-471f-b8b8-21cc7d20292e',
|
||||
title : 'Duis sunt commodo fugiat irure minim',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '4fcb2e0b-677c-4915-978d-70e82b16745a',
|
||||
title : 'Anim in qui ut',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : 'dd864dea-61d2-4fb0-b433-286993b6ad08',
|
||||
title : 'Reprehenderit irure exercitation occaecat',
|
||||
completed: true
|
||||
}
|
||||
completed: true,
|
||||
},
|
||||
],
|
||||
order : 23
|
||||
order : 23,
|
||||
},
|
||||
{
|
||||
id : '0795a74f-7a84-4edf-8d66-296cdef70003',
|
||||
@@ -786,32 +786,32 @@ export const tasks = [
|
||||
priority : 2,
|
||||
tags : [
|
||||
'c6058d0d-a4b0-4453-986a-9d249ec230b1',
|
||||
'd3ef4226-ef2c-43b0-a986-3e3e07f32799'
|
||||
'd3ef4226-ef2c-43b0-a986-3e3e07f32799',
|
||||
],
|
||||
assignedTo: '6617b0a3-0ccd-44ea-af78-c6633115d683',
|
||||
subTasks : [
|
||||
{
|
||||
id : '56f3dccb-a72b-485c-94e7-fe68477023e2',
|
||||
title : 'Velit velit voluptate in occaecat nostrud',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : '70cb77a9-82fa-407b-a63e-55aedc241495',
|
||||
title : 'Minim anim velit eiusmod qui',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : '08a31dbc-6be4-469b-9ff4-0ed5342082bd',
|
||||
title : 'Laboris commodo laborum irure',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '34d6c603-6f5a-4bc4-9f94-12bfd940c3c7',
|
||||
title : 'Mollit mollit nostrud mollit id velit ullamco',
|
||||
completed: true
|
||||
}
|
||||
completed: true,
|
||||
},
|
||||
],
|
||||
order : 24
|
||||
order : 24,
|
||||
},
|
||||
{
|
||||
id : '05532574-c102-4228-89a8-55fff32ec6fc',
|
||||
@@ -822,11 +822,11 @@ export const tasks = [
|
||||
dueDate : '2023-12-08T23:20:50.910Z',
|
||||
priority : 2,
|
||||
tags : [
|
||||
'a0bf42ca-c3a5-47be-8341-b9c0bb8ef270'
|
||||
'a0bf42ca-c3a5-47be-8341-b9c0bb8ef270',
|
||||
],
|
||||
assignedTo: null,
|
||||
subTasks : [],
|
||||
order : 25
|
||||
order : 25,
|
||||
},
|
||||
{
|
||||
id : 'b3917466-aa51-4293-9d5b-120b0ce6635c',
|
||||
@@ -842,30 +842,30 @@ export const tasks = [
|
||||
{
|
||||
id : '3a4c4013-27f1-4164-8a64-e7bb4f1a63a9',
|
||||
title : 'Adipisicing excepteur mollit non sunt amet laboris',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '103bf29e-06a1-4d30-89b9-b67aa442d605',
|
||||
title : 'Consectetur voluptate anim labore aliqua elit',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : 'b77729f1-9ed1-4d9e-95d0-347f4cd0943c',
|
||||
title : 'Laboris occaecat aliquip esse magna nulla',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : '695aace7-8679-4b35-96c7-cf23737cd9f1',
|
||||
title : 'Exercitation eu aliquip cillum ipsum',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : 'ffd45f31-7f0a-4c6a-b62c-18148f6841db',
|
||||
title : 'Minim aute ad et esse officia nostrud',
|
||||
completed: true
|
||||
}
|
||||
completed: true,
|
||||
},
|
||||
],
|
||||
order : 26
|
||||
order : 26,
|
||||
},
|
||||
{
|
||||
id : '2f2fb472-24d4-4a00-aa80-d513fa6c059c',
|
||||
@@ -876,32 +876,32 @@ export const tasks = [
|
||||
dueDate : '2020-06-08T00:23:24.051Z',
|
||||
priority : 1,
|
||||
tags : [
|
||||
'91658b8a-f382-4b0c-a53f-e9390351c2c5'
|
||||
'91658b8a-f382-4b0c-a53f-e9390351c2c5',
|
||||
],
|
||||
assignedTo: '65f1c421-83c5-4cdf-99da-d97794328679',
|
||||
subTasks : [
|
||||
{
|
||||
id : '4028671b-ef75-4b76-a03f-9f2bddadc618',
|
||||
title : 'Commodo excepteur proident ipsum reprehenderit',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : 'b122168f-8327-408f-8b9c-498dd6ba6c81',
|
||||
title : 'Mollit ullamco eiusmod exercitation deserunt',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : 'f233d812-be56-4d8a-ab14-a083f7d7cd70',
|
||||
title : 'Mollit nostrud ea deserunt mollit aliquip',
|
||||
completed: false
|
||||
completed: false,
|
||||
},
|
||||
{
|
||||
id : '0833be70-82b2-46cb-ad84-f11120ea634a',
|
||||
title : 'Labore occaecat proident ullamco',
|
||||
completed: false
|
||||
}
|
||||
completed: false,
|
||||
},
|
||||
],
|
||||
order : 27
|
||||
order : 27,
|
||||
},
|
||||
{
|
||||
id : '2fffd148-7644-466d-8737-7dde88c54154',
|
||||
@@ -912,17 +912,17 @@ export const tasks = [
|
||||
dueDate : '2024-01-27T11:17:52.198Z',
|
||||
priority : 1,
|
||||
tags : [
|
||||
'd3ef4226-ef2c-43b0-a986-3e3e07f32799'
|
||||
'd3ef4226-ef2c-43b0-a986-3e3e07f32799',
|
||||
],
|
||||
assignedTo: 'b2e97a96-2f15-4e3d-aff5-4ddf2af924d4',
|
||||
subTasks : [
|
||||
{
|
||||
id : 'd2ffe439-2f80-4dce-84a7-d4ac5e17bbf3',
|
||||
title : 'Occaecat anim sunt dolor proident',
|
||||
completed: false
|
||||
}
|
||||
completed: false,
|
||||
},
|
||||
],
|
||||
order : 28
|
||||
order : 28,
|
||||
},
|
||||
{
|
||||
id : '24a1034e-b4d6-4a86-a1ea-90516e87e810',
|
||||
@@ -933,21 +933,21 @@ export const tasks = [
|
||||
dueDate : '2024-06-24T04:38:28.087Z',
|
||||
priority : 1,
|
||||
tags : [
|
||||
'51483dd3-cb98-4400-9128-4bd66b455807'
|
||||
'51483dd3-cb98-4400-9128-4bd66b455807',
|
||||
],
|
||||
assignedTo: '7f5db993-ec36-412f-9db3-16d076a98807',
|
||||
subTasks : [
|
||||
{
|
||||
id : '75f55d75-c835-4a6c-a2ae-7a42ae3a7c9d',
|
||||
title : 'Et laboris quis lorem est laboris',
|
||||
completed: true
|
||||
completed: true,
|
||||
},
|
||||
{
|
||||
id : 'c7c91a52-b060-45af-b1b1-a4cff26bf11e',
|
||||
title : 'Reprehenderit elit dolore exercitation pariatur',
|
||||
completed: true
|
||||
}
|
||||
completed: true,
|
||||
},
|
||||
],
|
||||
order : 29
|
||||
}
|
||||
order : 29,
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user