first commit

This commit is contained in:
Inshal
2024-05-29 22:34:28 +05:00
commit e63fc41a20
1470 changed files with 174828 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,8 @@
import { rest } from 'msw'
import { db } from '@db/pages/datatable/db'
export const handlerPagesDatatable = [
rest.get(('/api/pages/datatable'), (req, res, ctx) => {
return res(ctx.status(200), ctx.json(db.salesDetails))
}),
]

View File

@@ -0,0 +1 @@
export {}

View File

@@ -0,0 +1,109 @@
export const db = {
faqs: [
{
faqTitle: 'Payment',
faqIcon: 'ri-bank-card-line',
faqSubtitle: 'Get help with payment',
faqs: [
{
question: 'When is payment taken for my order?',
answer: 'Payment is taken during the checkout process when you pay for your order. The order number that appears on the confirmation screen indicates payment has been successfully processed.',
},
{
question: 'How do I pay for my order?',
answer: 'We accept Visa®, MasterCard®, American Express®, and PayPal®. Our servers encrypt all information submitted to them, so you can be confident that your credit card information will be kept safe and secure.',
},
{
question: 'What should I do if I\'m having trouble placing an order?',
answer: 'For any technical difficulties you are experiencing with our website, please contact us at our support portal, or you can call us toll-free at 1-000-000-000, or email us at order@companymail.com',
},
{
question: 'Which license do I need for an end product that is only accessible to paying users?',
answer: 'If you have paying users or you are developing any SaaS products then you need an Extended License. For each products, you need a license. You can get free lifetime updates as well.',
},
{
question: 'Does my subscription automatically renew?',
answer: 'No, This is not subscription based item.Pastry pudding cookie toffee bonbon jujubes jujubes powder topping. Jelly beans gummi bears sweet roll bonbon muffin liquorice. Wafer lollipop sesame snaps.',
},
],
},
{
faqTitle: 'Delivery',
faqIcon: 'ri-shopping-cart-line',
faqSubtitle: 'Get help with delivery',
faqs: [
{
question: 'How would you ship my order?',
answer: 'For large products, we deliver your product via a third party logistics company offering you the “room of choice” scheduled delivery service. For small products, we offer free parcel delivery.',
},
{
question: 'What is the delivery cost of my order?',
answer: 'The cost of scheduled delivery is $69 or $99 per order, depending on the destination postal code. The parcel delivery is free.',
},
{
question: 'What to do if my product arrives damaged?',
answer: 'We will promptly replace any product that is damaged in transit. Just contact our support team, to notify us of the situation within 48 hours of product arrival.',
},
],
},
{
faqTitle: 'Cancellation & Return',
faqIcon: 'ri-refresh-line',
faqSubtitle: 'Get help with cancellation & return',
faqs: [
{
question: 'Can I cancel my order?',
answer: 'Scheduled delivery orders can be cancelled 72 hours prior to your selected delivery date for full refund. Parcel delivery orders cannot be cancelled, however a free return label can be provided upon request.',
},
{
question: 'Can I return my product?',
answer: 'You can return your product within 15 days of delivery, by contacting our support team, All merchandise returned must be in the original packaging with all original items.',
},
{
question: 'Where can I view status of return?',
answer: 'Locate the item from Your Orders. Select Return/Refund status',
},
],
},
{
faqTitle: 'My Order',
faqIcon: 'ri-inbox-archive-line',
faqSubtitle: 'Order details',
faqs: [
{
question: 'Has my order been successful?',
answer: `All successful order transactions will receive an order confirmation email once the order has been processed. If you have not received your order confirmation email within 24 hours, check your junk email or spam folder.
Alternatively, log in to your account to check your order summary. If you do not have a account, you can contact our Customer Care Team on 1-000-000-000.
`,
},
{
question: 'My Promotion Code is not working, what can I do?',
answer: 'If you are having issues with a promotion code, please contact us at 1 000 000 000 for assistance.',
},
{
question: 'How do I track my Orders?',
answer: 'If you have an account just sign into your account from here and select “My Orders”. If you have a a guest account track your order from here using the order number and the email address.',
},
],
},
{
faqTitle: 'Product & Services',
faqIcon: 'ri-settings-4-line',
faqSubtitle: 'Get help with product & services',
faqs: [
{
question: 'Will I be notified once my order has shipped?',
answer: 'Yes, We will send you an email once your order has been shipped. This email will contain tracking and order information.',
},
{
question: 'Where can I find warranty information?',
answer: 'We are committed to quality products. For information on warranty period and warranty services, visit our Warranty section here.',
},
{
question: 'How can I purchase additional warranty coverage?',
answer: 'For the peace of your mind, we offer extended warranty plans that add additional year(s) of protection to the standard manufacturer\'s warranty provided by us. To purchase or find out more about the extended warranty program, visit Extended Warranty section here.',
},
],
},
],
}

View File

@@ -0,0 +1,23 @@
import is from '@sindresorhus/is'
import { rest } from 'msw'
import { db } from '@db/pages/faq/db'
export const handlerPagesFaq = [
rest.get(('/api/pages/faq'), (req, res, ctx) => {
const q = req.url.searchParams.get('q') ?? ''
const searchQuery = is.string(q) ? q : undefined
const queryLowered = (searchQuery ?? '').toString().toLowerCase()
const filteredData = []
Object.entries(db.faqs).forEach(([_, faqObj]) => {
const filteredQAndA = faqObj.faqs.filter(obj => {
return obj.question.toLowerCase().includes(queryLowered)
})
if (filteredQAndA.length)
filteredData.push({ ...faqObj, faqs: filteredQAndA })
})
return res(ctx.status(200), ctx.json(filteredData))
}),
]

View File

@@ -0,0 +1 @@
export {}

View File

@@ -0,0 +1,150 @@
import checkoutImg from '@images/front-pages/misc/checkout-image.png'
import productImg from '@images/front-pages/misc/product-image.png'
import laptop from '@images/svg/laptop.svg?raw'
import lightbulb from '@images/svg/lightbulb.svg?raw'
// Images
import discord from '@images/svg/discord.svg?raw'
import gift from '@images/svg/gift.svg?raw'
import keyboard from '@images/svg/keyboard.svg?raw'
import rocket from '@images/svg/rocket.svg?raw'
export const db = {
popularArticles: [
{
slug: 'getting-started',
title: 'Getting Started',
img: rocket,
subtitle: 'Whether you\'re new or you\'re a power user, this article will help you to',
},
{
slug: 'first-steps',
title: 'First Steps',
img: gift,
subtitle: 'Are you a new customer wondering on how to get started?',
},
{
slug: 'external-content',
title: 'Add External Content',
img: keyboard,
subtitle: 'Article will show you how to expand the functionality of App',
},
],
allArticles: [
{
title: 'Buying',
icon: 'ri-shopping-cart-line',
articles: [
{ title: 'What are Favourites?' },
{ title: 'How do I purchase an item?' },
{ title: 'How do i add or change my details?' },
{ title: 'How do refunds work?' },
{ title: 'Can I Get A Refund?' },
{ title: 'I\'m trying to find a specific item' },
],
},
{
title: 'Item Support',
icon: 'ri-question-line',
articles: [
{ title: 'What is Item Support?' },
{ title: 'How to contact an author?' },
{ title: 'Where Is My Purchase Code?' },
{ title: 'Extend or renew Item Support' },
{ title: 'Item Support FAQ' },
{ title: 'Why has my item been removed?' },
],
},
{
title: 'Licenses',
icon: 'ri-file-text-line',
articles: [
{ title: 'Can I use the same license for the...' },
{ title: 'How to contact an author?' },
{ title: 'I\'m making a test site - it\'s not for ...' },
{ title: 'which license do I need?' },
{ title: 'I want to make multiple end prod ...' },
{ title: 'For logo what license do I need?' },
],
},
{
title: 'Template Kits',
icon: 'ri-palette-line',
articles: [
{ title: 'Template Kits' },
{ title: 'Elementor Template Kits: PHP Zip ...' },
{ title: 'Template Kits - Imported template ...' },
{ title: 'Troubleshooting Import Problems' },
{ title: 'How to use the WordPress Plugin ...' },
{ title: 'How to use the Template Kit Import ...' },
],
},
{
title: 'Account & Password',
icon: 'ri-lock-line',
articles: [
{ title: 'Signing in with a social account' },
{ title: 'Locked Out of Account' },
{ title: 'I\'m not receiving the verification email' },
{ title: 'Forgotten Username Or Password' },
{ title: 'New password not accepted' },
{ title: 'What is Sign In Verification?' },
],
},
{
title: 'Account Settings',
icon: 'ri-user-3-line',
articles: [
{ title: 'How do I change my password?' },
{ title: 'How do I change my username?' },
{ title: 'How do I close my account?' },
{ title: 'How do I change my email address?' },
{ title: 'How can I regain access to my a ...' },
{ title: 'Are RSS feeds available on Market?' },
],
},
],
keepLearning: [
{
slug: 'blogging',
title: 'Blogging',
img: laptop,
subtitle: 'Expert tips & tools to improve your website or online store using blog.',
},
{
slug: 'inspiration-center',
title: 'Inspiration Center',
img: lightbulb,
subtitle: 'inspiration from experts to help you start and grow your big ideas.',
},
{
slug: 'community',
title: 'Community',
img: discord,
subtitle: 'A group of people living in the same place or having a particular.',
},
],
articleData: {
title: 'How to add product in cart?',
lastUpdated: '1 month ago - Updated',
productContent: `
<p class='text-body-1'>
If you're after only one item, simply choose the 'Buy Now' option on the item page. This will take you directly to Checkout.
</p>
<p class='text-body-1'>
If you want several items, use the 'Add to Cart' button and then choose 'Keep Browsing' to continue shopping or 'Checkout' to finalize your purchase.
</p>
`,
checkoutContent: 'You can go back to your cart at any time by clicking on the shopping cart icon at the top right side of the page.',
articleList: [
'Template Kits',
'Elementor Template Kits: PHP Zip Extends',
'Envato Elements Template Kits',
'Envato Elements Template Kits',
'How to use the template in WordPress',
'How to use the Template Kit Import',
],
checkoutImg,
productImg,
},
}

View File

@@ -0,0 +1,11 @@
import { rest } from 'msw'
import { db } from '@db/pages/help-center/db'
export const handlerPagesHelpCenter = [
rest.get(('/api/pages/help-center'), (req, res, ctx) => {
return res(ctx.status(200), ctx.json({ allArticles: db.allArticles, popularArticles: db.popularArticles, keepLearning: db.keepLearning }))
}),
rest.get(('/api/pages/help-center/article'), (req, res, ctx) => {
return res(ctx.status(200), ctx.json(db.articleData))
}),
]

View File

@@ -0,0 +1 @@
export {}

View File

@@ -0,0 +1,663 @@
import avatar1 from '@images/avatars/avatar-1.png'
import avatar2 from '@images/avatars/avatar-2.png'
import avatar3 from '@images/avatars/avatar-3.png'
import avatar4 from '@images/avatars/avatar-4.png'
import avatar5 from '@images/avatars/avatar-5.png'
import avatar6 from '@images/avatars/avatar-6.png'
import avatar7 from '@images/avatars/avatar-7.png'
import avatar8 from '@images/avatars/avatar-8.png'
import eventLabel from '@images/icons/project-icons/event.png'
import figmaLabel from '@images/icons/project-icons/figma.png'
import htmlLabel from '@images/icons/project-icons/html5.png'
import reactLabel from '@images/icons/project-icons/react.png'
import socialLabel from '@images/icons/project-icons/social.png'
import supportLabel from '@images/icons/project-icons/support.png'
import twitterLabel from '@images/icons/project-icons/twitter.png'
import vueLabel from '@images/icons/project-icons/vue.png'
import xdLabel from '@images/icons/project-icons/xd.png'
import UserProfileHeaderBg from '@images/pages/user-profile-header-bg.png'
export const db = {
data: {
profileHeader: {
fullName: 'John Doe',
location: 'Vatican City',
joiningDate: 'April 2021',
designation: 'UX Designer',
profileImg: avatar1,
coverImg: UserProfileHeaderBg,
},
profile: {
about: [
{ property: 'Full Name', value: 'John Doe', icon: 'ri-user-line' },
{ property: 'Status', value: 'active', icon: 'ri-check-line' },
{ property: 'Role', value: 'Developer', icon: 'ri-star-line' },
{ property: 'Country', value: 'USA', icon: 'ri-flag-line' },
{ property: 'Language', value: 'English', icon: 'ri-translate-2' },
],
contacts: [
{ property: 'Contact', value: '(123) 456-7890', icon: 'ri-phone-line' },
{ property: 'Skype', value: 'john.doe', icon: 'ri-wechat-line' },
{ property: 'Email', value: 'john.doe@example.com', icon: 'ri-mail-open-line' },
],
teams: [
{ property: 'Backend Developer', value: '(126 Members)', icon: 'ri-github-fill', color: 'secondary' },
{ property: 'VueJS Developer', value: '(98 Members)', icon: 'ri-vuejs-line', color: 'success' },
],
overview: [
{ property: 'Task Compiled', value: '13.5k', icon: 'ri-check-line' },
{ property: 'Connections', value: '897', icon: 'ri-user-line' },
{ property: 'Projects Compiled', value: '146', icon: 'ri-star-smile-line' },
],
connections: [
{
isFriend: false,
connections: '45',
name: 'Cecilia Payne',
avatar: avatar2,
},
{
isFriend: true,
connections: '1.32k',
name: 'Curtis Fletcher',
avatar: avatar3,
},
{
isFriend: true,
connections: '125',
name: 'Alice Stone',
avatar: avatar4,
},
{
isFriend: false,
connections: '456',
name: 'Darrell Barnes',
avatar: avatar5,
},
{
isFriend: false,
connections: '1.2k',
name: 'Eugenia Moore',
avatar: avatar8,
},
],
teamsTech: [
{
members: 72,
ChipColor: 'error',
chipText: 'Developer',
title: 'React Developers',
avatar: reactLabel,
},
{
members: 122,
chipText: 'Support',
ChipColor: 'primary',
title: 'Support Team',
avatar: supportLabel,
},
{
members: 7,
ChipColor: 'info',
chipText: 'Designer',
title: 'UI Designer',
avatar: figmaLabel,
},
{
members: 289,
ChipColor: 'error',
chipText: 'Developer',
title: 'Vue.js Developers',
avatar: vueLabel,
},
{
members: 24,
chipText: 'Marketing',
ChipColor: 'secondary',
title: 'Digital Marketing',
avatar: twitterLabel,
},
],
},
teams: [
{
extraMembers: 9,
title: 'React Developers',
avatar: reactLabel,
avatarGroup: [
{ avatar: avatar1, name: 'Vinnie Mostowy' },
{ avatar: avatar2, name: 'Allen Rieske' },
{ avatar: avatar3, name: 'Julee Rossignol' },
{ avatar: avatar4, name: 'George Burrill' },
],
description: 'We don\'t make assumptions about the rest of your technology stack, so you can develop new features in React.',
chips: [
{
title: 'React',
color: 'primary',
},
{
title: 'MUI',
color: 'info',
},
],
},
{
extraMembers: 4,
title: 'Vue.js Dev Team',
avatar: vueLabel,
avatarGroup: [
{ avatar: avatar5, name: 'Kaith D\'souza' },
{ avatar: avatar6, name: 'John Doe' },
{ avatar: avatar7, name: 'Alan Walker' },
{ avatar: avatar8, name: 'Calvin Middleton' },
],
description: 'The development of Vue and its ecosystem is guided by an international team, some of whom have chosen to be featured below.',
chips: [
{
title: 'Vuejs',
color: 'success',
},
{
color: 'error',
title: 'Developer',
},
],
},
{
extraMembers: 2,
title: 'Creative Designers',
avatar: xdLabel,
avatarGroup: [
{ avatar: avatar1, name: 'Jimmy Ressula' },
{ avatar: avatar2, name: 'Kristi Lawker' },
{ avatar: avatar3, name: 'Danny Paul' },
{ avatar: avatar4, name: 'Alicia Littleton' },
],
description: 'A design or product team is more than just the people on it. A team includes the creative people, the roles they play.',
chips: [
{
title: 'Sketch',
color: 'warning',
},
{
title: 'XD',
color: 'error',
},
],
},
{
extraMembers: 7,
title: 'Support Team',
avatar: supportLabel,
avatarGroup: [
{ avatar: avatar5, name: 'Andrew Tye' },
{ avatar: avatar6, name: 'Rishi Swaat' },
{ avatar: avatar7, name: 'Rossie Kim' },
{ avatar: avatar8, name: 'Mary Hunter' },
],
description: 'Support your team. Your customer support team is fielding the good, the bad, and the ugly day in and day out.',
chips: [
{
color: 'info',
title: 'Zendesk',
},
],
},
{
title: 'Digital Marketing',
avatar: socialLabel,
avatarGroup: [
{ avatar: avatar1, name: 'Kim Merchent' },
{ avatar: avatar2, name: 'Sam D\'souza' },
{ avatar: avatar3, name: 'Nurvi Karlos' },
{ avatar: avatar4, name: 'Margorie Whitmire' },
],
description: 'Digital marketing refers to advertising delivered through digital channels such as search engines,social media, websites…',
chips: [
{
color: 'primary',
title: 'Twitter',
},
{
title: 'Email',
color: 'success',
},
],
},
{
title: 'Event',
extraMembers: 2,
avatar: eventLabel,
avatarGroup: [
{ avatar: avatar5, name: 'Vinnie Mostowy' },
{ avatar: avatar6, name: 'Allen Rieske' },
{ avatar: avatar7, name: 'Julee Rossignol' },
{ avatar: avatar8, name: 'Daniel Long' },
],
description: 'Event is defined as a particular contest which is part of a program of contests. An example of an event is the long…',
chips: [
{
title: 'Hubilo',
color: 'success',
},
],
},
{
title: 'Figma Resources',
avatar: figmaLabel,
avatarGroup: [
{ avatar: avatar1, name: 'Andrew Mostowy' },
{ avatar: avatar2, name: 'Micky Ressula' },
{ avatar: avatar3, name: 'Michel Pal' },
{ avatar: avatar4, name: 'Herman Lockard' },
],
description: 'Explore, install, use, and remix thousands of plugins and files published to the Figma Community by designers and developers.',
chips: [
{
title: 'UI/UX',
color: 'success',
},
{
title: 'Figma',
color: 'warning',
},
],
},
{
title: 'Native Mobile App',
avatar: reactLabel,
avatarGroup: [
{ avatar: avatar1, name: 'Andrew Mostowy' },
{ avatar: avatar2, name: 'Micky Ressula' },
{ avatar: avatar3, name: 'Michel Pal' },
],
description: 'Explore, install, use, and remix thousands of plugins and files published to the Figma Community by designers and developers.',
chips: [
{
title: 'React',
color: 'primary',
},
],
},
{
extraMembers: 8,
title: 'Only Beginners',
avatar: htmlLabel,
avatarGroup: [
{ avatar: avatar5, name: 'Kim Karlos' },
{ avatar: avatar6, name: 'Katy Turner' },
{ avatar: avatar7, name: 'Peter Adward' },
{ avatar: avatar8, name: 'Leona Miller' },
],
description: 'Learn the basics of how websites work, front-end vs back-end, and using a code editor. Learn basic HTML, CSS, and…',
chips: [
{
title: 'CSS',
color: 'info',
},
{
title: 'HTML',
color: 'primary',
},
],
},
],
projects: [
{
comments: 15,
totalTask: 344,
hours: '380/244',
tasks: '290/344',
budget: '$18.2k',
completedTask: 328,
deadline: '28/2/22',
chipColor: 'error',
chipText: 'Developer',
startDate: '14/2/21',
budgetSpent: '$24.8k',
members: '280 members',
title: 'Social Banners',
client: 'Christian Jimenez',
avatar: socialLabel,
description: 'We are Consulting, Software Development and Web Development Services.',
avatarGroup: [
{ avatar: avatar1, name: 'Vinnie Mostowy' },
{ avatar: avatar2, name: 'Allen Rieske' },
{ avatar: avatar3, name: 'Julee Rossignol' },
],
},
{
chipText: '15 days left',
comments: 236,
totalTask: 90,
tasks: '12/90',
hours: '98/135',
budget: '$1.8k',
completedTask: 38,
deadline: '21/6/22',
budgetSpent: '$2.4k',
chipColor: 'warning',
startDate: '18/8/21',
members: '1.1k members',
title: 'Admin Template',
client: 'Jeffrey Phillips',
avatar: reactLabel,
avatarGroup: [
{ avatar: avatar4, name: 'Kaith D\'souza' },
{ avatar: avatar5, name: 'John Doe' },
{ avatar: avatar6, name: 'Alan Walker' },
],
description: 'Time is our most valuable asset, that\'s why we want to help you save it by creating…',
},
{
chipText: 'Developer',
comments: 98,
budget: '$420',
totalTask: 140,
tasks: '22/140',
hours: '880/421',
completedTask: 95,
chipColor: 'error',
budgetSpent: '$980',
deadline: '8/10/21',
title: 'App Design',
startDate: '24/7/21',
members: '458 members',
client: 'Ricky McDonald',
avatar: vueLabel,
description: 'App design combines the user interface (UI) and user experience (UX).',
avatarGroup: [
{ avatar: avatar7, name: 'Jimmy Ressula' },
{ avatar: avatar8, name: 'Kristi Lawker' },
{ avatar: avatar1, name: 'Danny Paul' },
],
},
{
comments: 120,
chipText: 'Developer',
totalTask: 420,
budget: '2.43k',
tasks: '237/420',
hours: '1.2k/820',
completedTask: 302,
deadline: '12/9/22',
budgetSpent: '$8.5k',
chipColor: 'error',
startDate: '10/2/19',
members: '137 members',
client: 'Hulda Wright',
title: 'Create Website',
avatar: htmlLabel,
description: 'Your domain name should reflect your products or services so that your...',
avatarGroup: [
{ avatar: avatar2, name: 'Andrew Tye' },
{ avatar: avatar3, name: 'Rishi Swaat' },
{ avatar: avatar4, name: 'Rossie Kim' },
],
},
{
chipText: '15 days left',
comments: 20,
totalTask: 285,
tasks: '29/285',
budget: '28.4k',
hours: '142/420',
chipColor: 'warning',
completedTask: 100,
deadline: '25/12/21',
startDate: '12/12/20',
members: '82 members',
budgetSpent: '$52.7k',
client: 'Jerry Greene',
title: 'Figma Dashboard',
avatar: figmaLabel,
description: 'Use this template to organize your design project. Some of the key features are…',
avatarGroup: [
{ avatar: avatar5, name: 'Kim Merchent' },
{ avatar: avatar6, name: 'Sam D\'souza' },
{ avatar: avatar7, name: 'Nurvi Karlos' },
],
},
{
chipText: 'Developer',
comments: 98,
budget: '$655',
totalTask: 290,
tasks: '29/290',
hours: '580/445',
completedTask: 290,
budgetSpent: '$1.3k',
chipColor: 'error',
deadline: '02/11/21',
startDate: '17/8/21',
title: 'Logo Design',
members: '16 members',
client: 'Olive Strickland',
avatar: xdLabel,
description: 'Premium logo designs created by top logo designers. Create the branding of business.',
avatarGroup: [
{ avatar: avatar8, name: 'Kim Karlos' },
{ avatar: avatar1, name: 'Katy Turner' },
{ avatar: avatar2, name: 'Peter Adward' },
],
},
],
connections: [
{
tasks: '834',
projects: '18',
isConnected: true,
connections: '129',
name: 'Mark Gilbert',
designation: 'UI Designer',
avatar: avatar3,
chips: [
{
title: 'Figma',
color: 'secondary',
},
{
title: 'Sketch',
color: 'warning',
},
],
},
{
tasks: '2.31k',
projects: '112',
isConnected: false,
connections: '1.28k',
name: 'Eugenia Parsons',
designation: 'Developer',
avatar: avatar4,
chips: [
{
color: 'error',
title: 'Angular',
},
{
color: 'info',
title: 'React',
},
],
},
{
tasks: '1.25k',
projects: '32',
isConnected: false,
connections: '890',
name: 'Francis Byrd',
designation: 'Developer',
avatar: avatar5,
chips: [
{
title: 'HTML',
color: 'primary',
},
{
color: 'info',
title: 'React',
},
],
},
{
tasks: '12.4k',
projects: '86',
isConnected: false,
connections: '890',
name: 'Leon Lucas',
designation: 'UI/UX Designer',
avatar: avatar6,
chips: [
{
title: 'Figma',
color: 'secondary',
},
{
title: 'Sketch',
color: 'warning',
},
{
color: 'primary',
title: 'Photoshop',
},
],
},
{
tasks: '23.8k',
projects: '244',
isConnected: true,
connections: '2.14k',
name: 'Jayden Rogers',
designation: 'Full Stack Developer',
avatar: avatar1,
chips: [
{
color: 'info',
title: 'React',
},
{
title: 'HTML',
color: 'warning',
},
{
color: 'success',
title: 'Node.js',
},
],
},
{
tasks: '1.28k',
projects: '32',
isConnected: false,
designation: 'SEO',
connections: '1.27k',
name: 'Jeanette Powell',
avatar: avatar2,
chips: [
{
title: 'Analysis',
color: 'secondary',
},
{
color: 'success',
title: 'Node.js',
},
],
},
],
},
projectTable: [
{
id: 1,
status: 38,
leader: 'Eileen',
name: 'Website SEO',
date: '10 may 2021',
avatarColor: 'success',
avatarGroup: [avatar1, avatar2, avatar3, avatar4],
},
{
id: 2,
status: 45,
leader: 'Owen',
date: '03 Jan 2021',
name: 'Social Banners',
avatar: socialLabel,
avatarGroup: [avatar5, avatar6],
},
{
id: 3,
status: 92,
leader: 'Keith',
date: '12 Aug 2021',
name: 'Logo Designs',
avatar: '/images/icons/project-icons/sketch-label.png',
avatarGroup: [avatar7, avatar8, avatar1, avatar2],
},
{
id: 4,
status: 56,
leader: 'Merline',
date: '19 Apr 2021',
name: 'IOS App Design',
avatar: '/images/icons/project-icons/sketch-label.png',
avatarGroup: [avatar3, avatar4, avatar5, avatar6],
},
{
id: 5,
status: 25,
leader: 'Harmonia',
date: '08 Apr 2021',
name: 'Figma Dashboards',
avatar: figmaLabel,
avatarGroup: [avatar7, avatar8, avatar1],
},
{
id: 6,
status: 36,
leader: 'Allyson',
date: '29 Sept 2021',
name: 'Crypto Admin',
avatar: htmlLabel,
avatarGroup: [avatar2, avatar3, avatar4, avatar5],
},
{
id: 7,
status: 72,
leader: 'Georgie',
date: '20 Mar 2021',
name: 'Create Website',
avatar: reactLabel,
avatarGroup: [avatar6, avatar7, avatar8, avatar1],
},
{
id: 8,
status: 89,
leader: 'Fred',
date: '09 Feb 2021',
name: 'App Design',
avatar: xdLabel,
avatarGroup: [avatar2, avatar3, avatar4, avatar5],
},
{
id: 9,
status: 77,
leader: 'Richardo',
date: '17 June 2021',
name: 'Angular APIs',
avatar: figmaLabel,
avatarGroup: [avatar6, avatar7, avatar8, avatar1],
},
{
id: 10,
status: 100,
leader: 'Genevra',
date: '06 Oct 2021',
name: 'Admin Template',
avatar: vueLabel,
avatarGroup: [avatar2, avatar3, avatar4, avatar5],
},
],
}

View File

@@ -0,0 +1,16 @@
import { rest } from 'msw'
import { db } from '@db/pages/profile/db'
export const handlerPagesProfile = [
// GET /pages/profile
rest.get(('/api/pages/profile'), (req, res, ctx) => {
const tab = req.url.searchParams.get('tab') || ''
return res(ctx.status(200), ctx.json(db.data[tab]))
}),
// GET /pages/profile/header
rest.get(('/api/pages/profile/header'), (req, res, ctx) => {
return res(ctx.status(200), ctx.json(db.data.profileHeader))
}),
]

View File

@@ -0,0 +1 @@
export {}