first commit
This commit is contained in:
187
server/api/customers.ts
Normal file
187
server/api/customers.ts
Normal file
@@ -0,0 +1,187 @@
|
||||
import type { User } from '~/types'
|
||||
|
||||
const customers: User[] = [{
|
||||
id: 1,
|
||||
name: 'Alex Smith',
|
||||
email: 'alex.smith@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=1'
|
||||
},
|
||||
status: 'subscribed',
|
||||
location: 'New York, USA'
|
||||
}, {
|
||||
id: 2,
|
||||
name: 'Jordan Brown',
|
||||
email: 'jordan.brown@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=2'
|
||||
},
|
||||
status: 'unsubscribed',
|
||||
location: 'London, UK'
|
||||
}, {
|
||||
id: 3,
|
||||
name: 'Taylor Green',
|
||||
email: 'taylor.green@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=3'
|
||||
},
|
||||
status: 'bounced',
|
||||
location: 'Paris, France'
|
||||
}, {
|
||||
id: 4,
|
||||
name: 'Morgan White',
|
||||
email: 'morgan.white@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=4'
|
||||
},
|
||||
status: 'subscribed',
|
||||
location: 'Berlin, Germany'
|
||||
}, {
|
||||
id: 5,
|
||||
name: 'Casey Gray',
|
||||
email: 'casey.gray@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=5'
|
||||
},
|
||||
status: 'subscribed',
|
||||
location: 'Tokyo, Japan'
|
||||
}, {
|
||||
id: 6,
|
||||
name: 'Jamie Johnson',
|
||||
email: 'jamie.johnson@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=6'
|
||||
},
|
||||
status: 'subscribed',
|
||||
location: 'Sydney, Australia'
|
||||
}, {
|
||||
id: 7,
|
||||
name: 'Riley Davis',
|
||||
email: 'riley.davis@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=7'
|
||||
},
|
||||
status: 'subscribed',
|
||||
location: 'New York, USA'
|
||||
}, {
|
||||
id: 8,
|
||||
name: 'Kelly Wilson',
|
||||
email: 'kelly.wilson@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=8'
|
||||
},
|
||||
status: 'subscribed',
|
||||
location: 'London, UK'
|
||||
}, {
|
||||
id: 9,
|
||||
name: 'Drew Moore',
|
||||
email: 'drew.moore@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=9'
|
||||
},
|
||||
status: 'bounced',
|
||||
location: 'Paris, France'
|
||||
}, {
|
||||
id: 10,
|
||||
name: 'Jordan Taylor',
|
||||
email: 'jordan.taylor@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=10'
|
||||
},
|
||||
status: 'subscribed',
|
||||
location: 'Berlin, Germany'
|
||||
}, {
|
||||
id: 11,
|
||||
name: 'Morgan Anderson',
|
||||
email: 'morgan.anderson@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=11'
|
||||
},
|
||||
status: 'subscribed',
|
||||
location: 'Tokyo, Japan'
|
||||
}, {
|
||||
id: 12,
|
||||
name: 'Casey Thomas',
|
||||
email: 'casey.thomas@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=12'
|
||||
},
|
||||
status: 'unsubscribed',
|
||||
location: 'Sydney, Australia'
|
||||
}, {
|
||||
id: 13,
|
||||
name: 'Jamie Jackson',
|
||||
email: 'jamie.jackson@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=13'
|
||||
},
|
||||
status: 'unsubscribed',
|
||||
location: 'New York, USA'
|
||||
}, {
|
||||
id: 14,
|
||||
name: 'Riley White',
|
||||
email: 'riley.white@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=14'
|
||||
},
|
||||
status: 'unsubscribed',
|
||||
location: 'London, UK'
|
||||
}, {
|
||||
id: 15,
|
||||
name: 'Kelly Harris',
|
||||
email: 'kelly.harris@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=15'
|
||||
},
|
||||
status: 'subscribed',
|
||||
location: 'Paris, France'
|
||||
}, {
|
||||
id: 16,
|
||||
name: 'Drew Martin',
|
||||
email: 'drew.martin@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=16'
|
||||
},
|
||||
status: 'subscribed',
|
||||
location: 'Berlin, Germany'
|
||||
}, {
|
||||
id: 17,
|
||||
name: 'Alex Thompson',
|
||||
email: 'alex.thompson@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=17'
|
||||
},
|
||||
status: 'unsubscribed',
|
||||
location: 'Tokyo, Japan'
|
||||
}, {
|
||||
id: 18,
|
||||
name: 'Jordan Garcia',
|
||||
email: 'jordan.garcia@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=18'
|
||||
},
|
||||
status: 'subscribed',
|
||||
location: 'Sydney, Australia'
|
||||
}, {
|
||||
id: 19,
|
||||
name: 'Taylor Rodriguez',
|
||||
email: 'taylor.rodriguez@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=19'
|
||||
},
|
||||
status: 'bounced',
|
||||
location: 'New York, USA'
|
||||
}, {
|
||||
id: 20,
|
||||
name: 'Morgan Lopez',
|
||||
email: 'morgan.lopez@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=20'
|
||||
},
|
||||
status: 'subscribed',
|
||||
location: 'London, UK'
|
||||
}]
|
||||
|
||||
export default eventHandler(async () => {
|
||||
return customers
|
||||
})
|
||||
691
server/api/mails.ts
Normal file
691
server/api/mails.ts
Normal file
@@ -0,0 +1,691 @@
|
||||
import { sub } from 'date-fns'
|
||||
|
||||
const mails = [{
|
||||
id: 1,
|
||||
from: {
|
||||
name: 'Alex Smith',
|
||||
email: 'alex.smith@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=1'
|
||||
}
|
||||
},
|
||||
subject: 'Meeting Schedule: Q1 Marketing Strategy Review',
|
||||
body: `Dear Team,
|
||||
|
||||
I hope this email finds you well. Just a quick reminder about our Q1 Marketing Strategy meeting scheduled for tomorrow at 10 AM EST in Conference Room A.
|
||||
|
||||
Agenda:
|
||||
- Q4 Performance Review
|
||||
- New Campaign Proposals
|
||||
- Budget Allocation for Q2
|
||||
- Team Resource Planning
|
||||
|
||||
Please come prepared with your department updates. I've attached the preliminary deck for your review.
|
||||
|
||||
Best regards,
|
||||
Alex Smith
|
||||
Senior Marketing Director
|
||||
Tel: (555) 123-4567`,
|
||||
date: new Date().toISOString()
|
||||
}, {
|
||||
id: 2,
|
||||
unread: true,
|
||||
from: {
|
||||
name: 'Jordan Brown',
|
||||
email: 'jordan.brown@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=2'
|
||||
}
|
||||
},
|
||||
subject: 'RE: Project Phoenix - Sprint 3 Update',
|
||||
body: `Hi team,
|
||||
|
||||
Quick update on Sprint 3 deliverables:
|
||||
|
||||
✅ User authentication module completed
|
||||
🏗️ Payment integration at 80%
|
||||
⏳ API documentation pending review
|
||||
|
||||
Key metrics:
|
||||
- Code coverage: 94%
|
||||
- Sprint velocity: 45 points
|
||||
- Bug resolution rate: 98%
|
||||
|
||||
Please review the attached report for detailed analysis. Let's discuss any blockers in tomorrow's stand-up.
|
||||
|
||||
Regards,
|
||||
Jordan
|
||||
|
||||
--
|
||||
Jordan Brown
|
||||
Lead Developer | Tech Solutions
|
||||
Mobile: +1 (555) 234-5678`,
|
||||
date: sub(new Date(), { minutes: 7 }).toISOString()
|
||||
}, {
|
||||
id: 3,
|
||||
unread: true,
|
||||
from: {
|
||||
name: 'Taylor Green',
|
||||
email: 'taylor.green@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=3'
|
||||
}
|
||||
},
|
||||
subject: 'Lunch Plans',
|
||||
body: `Hi there!
|
||||
|
||||
I was wondering if you'd like to grab lunch this Friday? There's this amazing new Mexican restaurant downtown called "La Casa" that I've been wanting to try. They're known for their authentic tacos and house-made guacamole.
|
||||
|
||||
Would 12:30 PM work for you? It would be great to catch up and discuss the upcoming team building event while we're there.
|
||||
|
||||
Let me know what you think!
|
||||
|
||||
Best,
|
||||
Taylor`,
|
||||
date: sub(new Date(), { hours: 3 }).toISOString()
|
||||
}, {
|
||||
id: 4,
|
||||
from: {
|
||||
name: 'Morgan White',
|
||||
email: 'morgan.white@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=4'
|
||||
}
|
||||
},
|
||||
subject: 'New Proposal: Project Horizon',
|
||||
body: `Hi team,
|
||||
|
||||
I've just uploaded the comprehensive proposal for Project Horizon to our shared drive. The document includes:
|
||||
|
||||
• Detailed project objectives and success metrics
|
||||
• Resource allocation and team structure
|
||||
• Timeline with key milestones
|
||||
• Budget breakdown
|
||||
• Risk assessment and mitigation strategies
|
||||
|
||||
I'm particularly excited about our innovative approach to the user engagement component, which could set a new standard for our industry.
|
||||
|
||||
Could you please review and provide feedback by EOD Friday? I'd like to present this to the steering committee next week.
|
||||
|
||||
Thanks in advance,
|
||||
|
||||
Morgan White
|
||||
Senior Project Manager
|
||||
Tel: (555) 234-5678`,
|
||||
date: sub(new Date(), { days: 1 }).toISOString()
|
||||
}, {
|
||||
id: 5,
|
||||
from: {
|
||||
name: 'Casey Gray',
|
||||
email: 'casey.gray@example.com'
|
||||
},
|
||||
subject: 'Updated: San Francisco Conference Trip Itinerary',
|
||||
body: `Dear [Name],
|
||||
|
||||
Please find your confirmed travel itinerary below:
|
||||
|
||||
FLIGHT DETAILS:
|
||||
Outbound: AA 1234
|
||||
Date: March 15, 2024
|
||||
DEP: JFK 09:30 AM
|
||||
ARR: SFO 12:45 PM
|
||||
|
||||
HOTEL:
|
||||
Marriott San Francisco
|
||||
Check-in: March 15
|
||||
Check-out: March 18
|
||||
Confirmation #: MR123456
|
||||
|
||||
SCHEDULE:
|
||||
March 15 - Evening: Welcome Reception (6 PM)
|
||||
March 16 - Conference Day 1 (9 AM - 5 PM)
|
||||
March 17 - Conference Day 2 (9 AM - 4 PM)
|
||||
|
||||
Please let me know if you need any modifications.
|
||||
|
||||
Best regards,
|
||||
Casey Gray
|
||||
Travel Coordinator
|
||||
Office: (555) 345-6789`,
|
||||
date: sub(new Date(), { days: 1 }).toISOString()
|
||||
}, {
|
||||
id: 6,
|
||||
from: {
|
||||
name: 'Jamie Johnson',
|
||||
email: 'jamie.johnson@example.com'
|
||||
},
|
||||
subject: 'Q1 2024 Financial Performance Review',
|
||||
body: `Dear Leadership Team,
|
||||
|
||||
Please find attached our Q1 2024 financial analysis report. Key highlights:
|
||||
|
||||
PERFORMANCE METRICS:
|
||||
• Revenue: $12.4M (+15% YoY)
|
||||
• Operating Expenses: $8.2M (-3% vs. budget)
|
||||
• Net Profit Margin: 18.5% (+2.5% vs. Q4 2023)
|
||||
|
||||
AREAS OF OPTIMIZATION:
|
||||
1. Cloud infrastructure costs (+22% over budget)
|
||||
2. Marketing spend efficiency (-8% ROI vs. target)
|
||||
3. Office operational costs (+5% vs. forecast)
|
||||
|
||||
I've scheduled a detailed review for Thursday at 2 PM EST. Calendar invite to follow.
|
||||
|
||||
Best regards,
|
||||
Jamie Johnson
|
||||
Chief Financial Officer
|
||||
Ext: 4567`,
|
||||
date: sub(new Date(), { days: 2 }).toISOString()
|
||||
}, {
|
||||
id: 7,
|
||||
from: {
|
||||
name: 'Riley Davis',
|
||||
email: 'riley.davis@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=7'
|
||||
}
|
||||
},
|
||||
subject: '[Mandatory] New DevOps Tools Training Session',
|
||||
body: `Hello Development Team,
|
||||
|
||||
This is a reminder about next week's mandatory training session on our updated DevOps toolkit.
|
||||
|
||||
📅 Date: Tuesday, March 19
|
||||
⏰ Time: 10:00 AM - 12:30 PM EST
|
||||
📍 Location: Virtual (Zoom link below)
|
||||
|
||||
We'll be covering:
|
||||
• GitLab CI/CD pipeline improvements
|
||||
• Docker container optimization
|
||||
• Kubernetes cluster management
|
||||
• New monitoring tools integration
|
||||
|
||||
Prerequisites:
|
||||
1. Install Docker Desktop 4.25
|
||||
2. Update VS Code to latest version
|
||||
3. Complete pre-training survey (link attached)
|
||||
|
||||
Zoom Link: https://zoom.us/j/123456789
|
||||
Password: DevOps2024
|
||||
|
||||
--
|
||||
Riley Davis
|
||||
DevOps Lead
|
||||
Technical Operations
|
||||
M: (555) 777-8888`,
|
||||
date: sub(new Date(), { days: 2 }).toISOString()
|
||||
}, {
|
||||
id: 8,
|
||||
unread: true,
|
||||
from: {
|
||||
name: 'Kelly Wilson',
|
||||
email: 'kelly.wilson@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=8'
|
||||
}
|
||||
},
|
||||
subject: '🎉 Happy Birthday!',
|
||||
body: `Dear [Name],
|
||||
|
||||
On behalf of the entire team, wishing you a fantastic birthday! 🎂
|
||||
|
||||
We've organized a small celebration in the break room at 3 PM today. Cake and refreshments will be served!
|
||||
|
||||
Your dedication and positive energy make our workplace better every day. Here's to another great year ahead!
|
||||
|
||||
Best wishes,
|
||||
Kelly & The HR Team
|
||||
|
||||
P.S. Don't forget to check your email for a special birthday surprise from the company! 🎁
|
||||
|
||||
--
|
||||
Kelly Wilson
|
||||
HR Director
|
||||
Human Resources Department
|
||||
Tel: (555) 999-0000`,
|
||||
date: sub(new Date(), { days: 2 }).toISOString()
|
||||
}, {
|
||||
id: 9,
|
||||
from: {
|
||||
name: 'Drew Moore',
|
||||
email: 'drew.moore@example.com'
|
||||
},
|
||||
subject: 'Website Redesign Feedback Request - Phase 2',
|
||||
body: `Hi there,
|
||||
|
||||
We're entering Phase 2 of our website redesign project and would value your input on the latest iterations.
|
||||
|
||||
New Features Implementation:
|
||||
1. Dynamic product catalog
|
||||
2. Enhanced search functionality
|
||||
3. Personalized user dashboard
|
||||
4. Mobile-responsive navigation
|
||||
|
||||
Review Links:
|
||||
• Staging Environment: https://staging.example.com
|
||||
• Design Specs: [Figma Link]
|
||||
• User Flow Documentation: [Confluence Link]
|
||||
|
||||
Please provide feedback by EOD Friday. Key areas to focus on:
|
||||
- User experience
|
||||
- Navigation flow
|
||||
- Content hierarchy
|
||||
- Mobile responsiveness
|
||||
|
||||
Your insights will be crucial for our final implementation decisions.
|
||||
|
||||
Thanks in advance,
|
||||
Drew Moore
|
||||
UX Design Lead
|
||||
Product Design Team`,
|
||||
date: sub(new Date(), { days: 5 }).toISOString()
|
||||
}, {
|
||||
id: 10,
|
||||
from: {
|
||||
name: 'Jordan Taylor',
|
||||
email: 'jordan.taylor@example.com'
|
||||
},
|
||||
subject: 'Corporate Wellness Program - Membership Renewal',
|
||||
body: `Dear Valued Member,
|
||||
|
||||
Your corporate wellness program membership is due for renewal on April 1st, 2024.
|
||||
|
||||
NEW AMENITIES:
|
||||
✨ Expanded yoga studio
|
||||
🏋️ State-of-the-art cardio equipment
|
||||
🧘 Meditation room
|
||||
👥 Additional group fitness classes
|
||||
|
||||
RENEWAL BENEFITS:
|
||||
• 15% early bird discount
|
||||
• 3 complimentary personal training sessions
|
||||
• Free wellness assessment
|
||||
• Access to new mobile app
|
||||
|
||||
To schedule a tour or discuss renewal options, please book a time here: [Booking Link]
|
||||
|
||||
Stay healthy!
|
||||
|
||||
Best regards,
|
||||
Jordan Taylor
|
||||
Corporate Wellness Coordinator
|
||||
Downtown Fitness Center
|
||||
Tel: (555) 123-7890`,
|
||||
date: sub(new Date(), { days: 5 }).toISOString()
|
||||
}, {
|
||||
id: 11,
|
||||
unread: true,
|
||||
from: {
|
||||
name: 'Morgan Anderson',
|
||||
email: 'morgan.anderson@example.com'
|
||||
},
|
||||
subject: 'Important: Updates to Your Corporate Insurance Policy',
|
||||
body: `Dear [Employee Name],
|
||||
|
||||
This email contains important information about changes to your corporate insurance coverage effective April 1, 2024.
|
||||
|
||||
KEY UPDATES:
|
||||
1. Health Insurance
|
||||
• Reduced co-pay for specialist visits ($35 → $25)
|
||||
• Extended telehealth coverage
|
||||
• New mental health benefits
|
||||
|
||||
2. Dental Coverage
|
||||
• Increased annual maximum ($1,500 → $2,000)
|
||||
• Added orthodontic coverage for dependents
|
||||
|
||||
3. Vision Benefits
|
||||
• Enhanced frame allowance
|
||||
• New LASIK discount program
|
||||
|
||||
Please review the attached documentation carefully and complete the acknowledgment form by March 25th.
|
||||
|
||||
Questions? Join our virtual info session:
|
||||
📅 March 20th, 2024
|
||||
⏰ 11:00 AM EST
|
||||
🔗 [Teams Link]
|
||||
|
||||
Regards,
|
||||
Morgan Anderson
|
||||
Benefits Coordinator
|
||||
HR Department`,
|
||||
date: sub(new Date(), { days: 12 }).toISOString()
|
||||
}, {
|
||||
id: 12,
|
||||
from: {
|
||||
name: 'Casey Thomas',
|
||||
email: 'casey.thomas@example.com'
|
||||
},
|
||||
subject: '📚 March Book Club Meeting: "The Great Gatsby"',
|
||||
body: `Hello Book Lovers!
|
||||
|
||||
I hope you're enjoying F. Scott Fitzgerald's masterpiece! Our next meeting details:
|
||||
|
||||
📅 Thursday, March 21st
|
||||
⏰ 5:30 PM - 7:00 PM
|
||||
📍 Main Conference Room (or Zoom)
|
||||
|
||||
Discussion Topics:
|
||||
1. Symbolism of the green light
|
||||
2. The American Dream theme
|
||||
3. Character development
|
||||
4. Social commentary
|
||||
|
||||
Please bring your suggestions for April's book selection!
|
||||
|
||||
Refreshments will be provided 🍪
|
||||
|
||||
RSVP by replying to this email.
|
||||
|
||||
Happy reading!
|
||||
Casey
|
||||
|
||||
--
|
||||
Casey Thomas
|
||||
Book Club Coordinator
|
||||
Internal Culture Committee`,
|
||||
date: sub(new Date(), { months: 1 }).toISOString()
|
||||
}, {
|
||||
id: 13,
|
||||
from: {
|
||||
name: 'Jamie Jackson',
|
||||
email: 'jamie.jackson@example.com'
|
||||
},
|
||||
subject: '🍳 Company Cookbook Project - Recipe Submission Reminder',
|
||||
body: `Dear Colleagues,
|
||||
|
||||
Final call for our company cookbook project submissions!
|
||||
|
||||
Guidelines for Recipe Submission:
|
||||
1. Include ingredients list with measurements
|
||||
2. Step-by-step instructions
|
||||
3. Cooking time and servings
|
||||
4. Photo of the finished dish (optional)
|
||||
5. Any cultural or personal significance
|
||||
|
||||
Submission Deadline: March 22nd, 2024
|
||||
|
||||
We already have some amazing entries:
|
||||
• Sarah's Famous Chili
|
||||
• Mike's Mediterranean Pasta
|
||||
• Lisa's Vegan Brownies
|
||||
• Tom's Family Paella
|
||||
|
||||
All proceeds from cookbook sales will support our local food bank.
|
||||
|
||||
Submit here: [Form Link]
|
||||
|
||||
Cooking together,
|
||||
Jamie Jackson
|
||||
Community Engagement Committee
|
||||
Ext. 5432`,
|
||||
date: sub(new Date(), { months: 1 }).toISOString()
|
||||
}, {
|
||||
id: 14,
|
||||
from: {
|
||||
name: 'Riley White',
|
||||
email: 'riley.white@example.com'
|
||||
},
|
||||
subject: '🧘♀️ Updated Corporate Wellness Schedule - Spring 2024',
|
||||
body: `Dear Wellness Program Participants,
|
||||
|
||||
Our Spring 2024 wellness schedule is now available!
|
||||
|
||||
NEW CLASSES:
|
||||
Monday:
|
||||
• 7:30 AM - Morning Flow Yoga
|
||||
• 12:15 PM - HIIT Express
|
||||
• 5:30 PM - Meditation Basics
|
||||
|
||||
Wednesday:
|
||||
• 8:00 AM - Power Vinyasa
|
||||
• 12:00 PM - Desk Stretching
|
||||
• 4:30 PM - Mindfulness Workshop
|
||||
|
||||
Friday:
|
||||
• 7:45 AM - Gentle Yoga
|
||||
• 12:30 PM - Stress Management
|
||||
• 4:45 PM - Weekend Wind-Down
|
||||
|
||||
All classes available in-person and via Zoom.
|
||||
Download our app to reserve your spot!
|
||||
|
||||
Namaste,
|
||||
Riley White
|
||||
Corporate Wellness Instructor
|
||||
Wellness & Benefits Team`,
|
||||
date: sub(new Date(), { months: 1 }).toISOString()
|
||||
}, {
|
||||
id: 15,
|
||||
from: {
|
||||
name: 'Kelly Harris',
|
||||
email: 'kelly.harris@example.com'
|
||||
},
|
||||
subject: '📚 Book Launch Event: "Digital Transformation in the Modern Age"',
|
||||
body: `Dear [Name],
|
||||
|
||||
You're cordially invited to the launch of my new book, "Digital Transformation in the Modern Age: A Leadership Guide"
|
||||
|
||||
EVENT DETAILS:
|
||||
📅 Date: April 15th, 2024
|
||||
⏰ Time: 6:00 PM - 8:30 PM EST
|
||||
📍 Grand Hotel Downtown
|
||||
123 Business Ave.
|
||||
|
||||
AGENDA:
|
||||
6:00 PM - Welcome Reception
|
||||
6:30 PM - Keynote Presentation
|
||||
7:15 PM - Q&A Session
|
||||
7:45 PM - Book Signing
|
||||
8:00 PM - Networking
|
||||
|
||||
Light refreshments will be served.
|
||||
Each attendee will receive a signed copy of the book.
|
||||
|
||||
RSVP by April 1st: [Event Link]
|
||||
|
||||
Looking forward to sharing this milestone with you!
|
||||
|
||||
Best regards,
|
||||
Kelly Harris
|
||||
Digital Strategy Consultant
|
||||
Author, "Digital Transformation in the Modern Age"`,
|
||||
date: sub(new Date(), { months: 1 }).toISOString()
|
||||
}, {
|
||||
id: 16,
|
||||
from: {
|
||||
name: 'Drew Martin',
|
||||
email: 'drew.martin@example.com'
|
||||
},
|
||||
subject: '🚀 TechCon 2024: Early Bird Registration Now Open',
|
||||
body: `Dear Tech Enthusiasts,
|
||||
|
||||
Registration is now open for TechCon 2024: "Innovation at Scale"
|
||||
|
||||
CONFERENCE HIGHLIGHTS:
|
||||
📅 May 15-17, 2024
|
||||
📍 Tech Convention Center
|
||||
|
||||
KEYNOTE SPEAKERS:
|
||||
• Sarah Johnson - CEO, Future Tech Inc.
|
||||
• Dr. Michael Chang - AI Research Director
|
||||
• Lisa Rodriguez - Cybersecurity Expert
|
||||
|
||||
TRACKS:
|
||||
1. AI/ML Innovation
|
||||
2. Cloud Architecture
|
||||
3. DevSecOps
|
||||
4. Digital Transformation
|
||||
5. Emerging Technologies
|
||||
|
||||
EARLY BIRD PRICING (ends April 1):
|
||||
Full Conference Pass: $899 (reg. $1,199)
|
||||
Team Discount (5+): 15% off
|
||||
|
||||
Register here: [Registration Link]
|
||||
|
||||
Best regards,
|
||||
Drew Martin
|
||||
Conference Director
|
||||
TechCon 2024`,
|
||||
date: sub(new Date(), { months: 1, days: 4 }).toISOString()
|
||||
}, {
|
||||
id: 17,
|
||||
from: {
|
||||
name: 'Alex Thompson',
|
||||
email: 'alex.thompson@example.com'
|
||||
},
|
||||
subject: '🎨 Modern Perspectives: Contemporary Art Exhibition',
|
||||
body: `Hi there,
|
||||
|
||||
Hope you're well! I wanted to personally invite you to an extraordinary art exhibition this weekend.
|
||||
|
||||
"Modern Perspectives: Breaking Boundaries"
|
||||
📅 Saturday & Sunday
|
||||
⏰ 10 AM - 6 PM
|
||||
📍 Metropolitan Art Gallery
|
||||
|
||||
FEATURED ARTISTS:
|
||||
• Maria Chen - Mixed Media
|
||||
• James Wright - Digital Art
|
||||
• Sofia Patel - Installation
|
||||
• Robert Kim - Photography
|
||||
|
||||
SPECIAL EVENTS:
|
||||
• Artist Talk: Saturday, 2 PM
|
||||
• Workshop: Sunday, 11 AM
|
||||
• Wine Reception: Saturday, 5 PM
|
||||
|
||||
Would love to meet you there! Let me know if you'd like to go together.
|
||||
|
||||
Best,
|
||||
Alex Thompson
|
||||
Curator
|
||||
Metropolitan Art Gallery
|
||||
Tel: (555) 234-5678`,
|
||||
date: sub(new Date(), { months: 1, days: 15 }).toISOString()
|
||||
}, {
|
||||
id: 18,
|
||||
from: {
|
||||
name: 'Jordan Garcia',
|
||||
email: 'jordan.garcia@example.com'
|
||||
},
|
||||
subject: '🤝 Industry Networking Event: "Connect & Innovate 2024"',
|
||||
body: `Dear Professional Network,
|
||||
|
||||
You're invited to our premier networking event!
|
||||
|
||||
EVENT DETAILS:
|
||||
📅 March 28th, 2024
|
||||
⏰ 6:00 PM - 9:00 PM
|
||||
📍 Innovation Hub
|
||||
456 Enterprise Street
|
||||
|
||||
SPEAKERS:
|
||||
• Mark Thompson - "Future of Work"
|
||||
• Dr. Sarah Chen - "Innovation Trends"
|
||||
• Robert Mills - "Digital Leadership"
|
||||
|
||||
SCHEDULE:
|
||||
6:00 - Registration & Welcome
|
||||
6:30 - Keynote Presentations
|
||||
7:30 - Networking Session
|
||||
8:30 - Panel Discussion
|
||||
|
||||
Complimentary hors d'oeuvres and beverages will be served.
|
||||
|
||||
RSVP Required: [Registration Link]
|
||||
|
||||
Best regards,
|
||||
Jordan Garcia
|
||||
Event Coordinator
|
||||
Professional Networking Association`,
|
||||
date: sub(new Date(), { months: 1, days: 18 }).toISOString()
|
||||
}, {
|
||||
id: 19,
|
||||
from: {
|
||||
name: 'Taylor Rodriguez',
|
||||
email: 'taylor.rodriguez@example.com'
|
||||
},
|
||||
subject: '🌟 Community Service Day - Volunteer Opportunities',
|
||||
body: `Dear Colleagues,
|
||||
|
||||
Join us for our annual Community Service Day!
|
||||
|
||||
EVENT DETAILS:
|
||||
📅 Saturday, April 6th, 2024
|
||||
⏰ 9:00 AM - 3:00 PM
|
||||
📍 Multiple Locations
|
||||
|
||||
VOLUNTEER OPPORTUNITIES:
|
||||
1. City Park Cleanup
|
||||
• Garden maintenance
|
||||
• Trail restoration
|
||||
• Playground repair
|
||||
|
||||
2. Food Bank
|
||||
• Sorting donations
|
||||
• Packing meals
|
||||
• Distribution
|
||||
|
||||
3. Animal Shelter
|
||||
• Dog walking
|
||||
• Facility cleaning
|
||||
• Social media support
|
||||
|
||||
All volunteers receive:
|
||||
• Company volunteer t-shirt
|
||||
• Lunch and refreshments
|
||||
• Certificate of participation
|
||||
• 8 hours community service credit
|
||||
|
||||
Sign up here: [Volunteer Portal]
|
||||
|
||||
Making a difference together,
|
||||
Taylor Rodriguez
|
||||
Community Outreach Coordinator
|
||||
Corporate Social Responsibility Team`,
|
||||
date: sub(new Date(), { months: 1, days: 25 }).toISOString()
|
||||
}, {
|
||||
id: 20,
|
||||
from: {
|
||||
name: 'Morgan Lopez',
|
||||
email: 'morgan.lopez@example.com'
|
||||
},
|
||||
subject: '🚗 Vehicle Maintenance Reminder: 30,000 Mile Service',
|
||||
body: `Dear Valued Customer,
|
||||
|
||||
Your vehicle is due for its 30,000-mile maintenance service.
|
||||
|
||||
RECOMMENDED SERVICES:
|
||||
• Oil and filter change
|
||||
• Tire rotation and alignment
|
||||
• Brake system inspection
|
||||
• Multi-point safety inspection
|
||||
• Fluid level check and top-off
|
||||
• Battery performance test
|
||||
|
||||
SERVICE CENTER DETAILS:
|
||||
📍 Downtown Auto Care
|
||||
789 Service Road
|
||||
|
||||
☎️ (555) 987-6543
|
||||
|
||||
Available Appointments:
|
||||
• Monday-Friday: 7:30 AM - 6:00 PM
|
||||
• Saturday: 8:00 AM - 2:00 PM
|
||||
|
||||
Schedule online: [Booking Link]
|
||||
or call our service desk directly.
|
||||
|
||||
Drive safely,
|
||||
Morgan Lopez
|
||||
Service Coordinator
|
||||
Downtown Auto Care
|
||||
Emergency: (555) 987-6544`,
|
||||
date: sub(new Date(), { months: 2 }).toISOString()
|
||||
}]
|
||||
|
||||
export default eventHandler(async () => {
|
||||
return mails
|
||||
})
|
||||
60
server/api/members.ts
Normal file
60
server/api/members.ts
Normal file
@@ -0,0 +1,60 @@
|
||||
const members = [{
|
||||
name: 'Anthony Fu',
|
||||
username: 'antfu',
|
||||
role: 'member',
|
||||
avatar: { src: 'https://ipx.nuxt.com/f_auto,s_192x192/gh_avatar/antfu' }
|
||||
}, {
|
||||
name: 'Baptiste Leproux',
|
||||
username: 'larbish',
|
||||
role: 'member',
|
||||
avatar: { src: 'https://ipx.nuxt.com/f_auto,s_192x192/gh_avatar/larbish' }
|
||||
}, {
|
||||
name: 'Benjamin Canac',
|
||||
username: 'benjamincanac',
|
||||
role: 'owner',
|
||||
avatar: { src: 'https://ipx.nuxt.com/f_auto,s_192x192/gh_avatar/benjamincanac' }
|
||||
}, {
|
||||
name: 'Céline Dumerc',
|
||||
username: 'celinedumerc',
|
||||
role: 'member',
|
||||
avatar: { src: 'https://ipx.nuxt.com/f_auto,s_192x192/gh_avatar/celinedumerc' }
|
||||
}, {
|
||||
name: 'Daniel Roe',
|
||||
username: 'danielroe',
|
||||
role: 'member',
|
||||
avatar: { src: 'https://ipx.nuxt.com/f_auto,s_192x192/gh_avatar/danielroe' }
|
||||
}, {
|
||||
name: 'Farnabaz',
|
||||
username: 'farnabaz',
|
||||
role: 'member',
|
||||
avatar: { src: 'https://ipx.nuxt.com/f_auto,s_192x192/gh_avatar/farnabaz' }
|
||||
}, {
|
||||
name: 'Ferdinand Coumau',
|
||||
username: 'FerdinandCoumau',
|
||||
role: 'member',
|
||||
avatar: { src: 'https://ipx.nuxt.com/f_auto,s_192x192/gh_avatar/FerdinandCoumau' }
|
||||
}, {
|
||||
name: 'Hugo Richard',
|
||||
username: 'hugorcd',
|
||||
role: 'owner',
|
||||
avatar: { src: 'https://ipx.nuxt.com/f_auto,s_192x192/gh_avatar/hugorcd' }
|
||||
}, {
|
||||
name: 'Pooya Parsa',
|
||||
username: 'pi0',
|
||||
role: 'member',
|
||||
avatar: { src: 'https://ipx.nuxt.com/f_auto,s_192x192/gh_avatar/pi0' }
|
||||
}, {
|
||||
name: 'Sarah Moriceau',
|
||||
username: 'SarahM19',
|
||||
role: 'member',
|
||||
avatar: { src: 'https://ipx.nuxt.com/f_auto,s_192x192/gh_avatar/SarahM19' }
|
||||
}, {
|
||||
name: 'Sébastien Chopin',
|
||||
username: 'Atinux',
|
||||
role: 'owner',
|
||||
avatar: { src: 'https://ipx.nuxt.com/f_auto,s_192x192/gh_avatar/atinux' }
|
||||
}]
|
||||
|
||||
export default eventHandler(async () => {
|
||||
return members
|
||||
})
|
||||
256
server/api/notifications.ts
Normal file
256
server/api/notifications.ts
Normal file
@@ -0,0 +1,256 @@
|
||||
import { sub } from 'date-fns'
|
||||
|
||||
const notifications = [{
|
||||
id: 1,
|
||||
unread: true,
|
||||
sender: {
|
||||
name: 'Jordan Brown',
|
||||
email: 'jordan.brown@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=2'
|
||||
}
|
||||
},
|
||||
body: 'sent you a message',
|
||||
date: sub(new Date(), { minutes: 7 }).toISOString()
|
||||
}, {
|
||||
id: 2,
|
||||
sender: {
|
||||
name: 'Lindsay Walton'
|
||||
},
|
||||
body: 'subscribed to your email list',
|
||||
date: sub(new Date(), { hours: 1 }).toISOString()
|
||||
}, {
|
||||
id: 3,
|
||||
unread: true,
|
||||
sender: {
|
||||
name: 'Taylor Green',
|
||||
email: 'taylor.green@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=3'
|
||||
}
|
||||
},
|
||||
body: 'sent you a message',
|
||||
date: sub(new Date(), { hours: 3 }).toISOString()
|
||||
}, {
|
||||
id: 4,
|
||||
sender: {
|
||||
name: 'Courtney Henry',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=4'
|
||||
}
|
||||
},
|
||||
body: 'added you to a project',
|
||||
date: sub(new Date(), { hours: 3 }).toISOString()
|
||||
}, {
|
||||
id: 5,
|
||||
sender: {
|
||||
name: 'Tom Cook',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=5'
|
||||
}
|
||||
},
|
||||
body: 'abandonned cart',
|
||||
date: sub(new Date(), { hours: 7 }).toISOString()
|
||||
}, {
|
||||
id: 6,
|
||||
sender: {
|
||||
name: 'Casey Thomas',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=6'
|
||||
}
|
||||
},
|
||||
body: 'purchased your product',
|
||||
date: sub(new Date(), { days: 1, hours: 3 }).toISOString()
|
||||
}, {
|
||||
id: 7,
|
||||
unread: true,
|
||||
sender: {
|
||||
name: 'Kelly Wilson',
|
||||
email: 'kelly.wilson@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=8'
|
||||
}
|
||||
},
|
||||
body: 'sent you a message',
|
||||
date: sub(new Date(), { days: 2 }).toISOString()
|
||||
}, {
|
||||
id: 8,
|
||||
sender: {
|
||||
name: 'Jamie Johnson',
|
||||
email: 'jamie.johnson@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=9'
|
||||
}
|
||||
},
|
||||
body: 'requested a refund',
|
||||
date: sub(new Date(), { days: 5, hours: 4 }).toISOString()
|
||||
}, {
|
||||
id: 9,
|
||||
unread: true,
|
||||
sender: {
|
||||
name: 'Morgan Anderson',
|
||||
email: 'morgan.anderson@example.com'
|
||||
},
|
||||
body: 'sent you a message',
|
||||
date: sub(new Date(), { days: 6 }).toISOString()
|
||||
}, {
|
||||
id: 10,
|
||||
sender: {
|
||||
name: 'Drew Moore'
|
||||
},
|
||||
body: 'subscribed to your email list',
|
||||
date: sub(new Date(), { days: 6 }).toISOString()
|
||||
}, {
|
||||
id: 11,
|
||||
sender: {
|
||||
name: 'Riley Davis'
|
||||
},
|
||||
body: 'abandonned cart',
|
||||
date: sub(new Date(), { days: 7 }).toISOString()
|
||||
}, {
|
||||
id: 12,
|
||||
sender: {
|
||||
name: 'Jordan Taylor'
|
||||
},
|
||||
body: 'subscribed to your email list',
|
||||
date: sub(new Date(), { days: 9 }).toISOString()
|
||||
}, {
|
||||
id: 13,
|
||||
sender: {
|
||||
name: 'Kelly Wilson',
|
||||
email: 'kelly.wilson@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=8'
|
||||
}
|
||||
},
|
||||
body: 'subscribed to your email list',
|
||||
date: sub(new Date(), { days: 10 }).toISOString()
|
||||
}, {
|
||||
id: 14,
|
||||
sender: {
|
||||
name: 'Jamie Johnson',
|
||||
email: 'jamie.johnson@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=9'
|
||||
}
|
||||
},
|
||||
body: 'subscribed to your email list',
|
||||
date: sub(new Date(), { days: 11 }).toISOString()
|
||||
}, {
|
||||
id: 15,
|
||||
sender: {
|
||||
name: 'Morgan Anderson'
|
||||
},
|
||||
body: 'purchased your product',
|
||||
date: sub(new Date(), { days: 12 }).toISOString()
|
||||
}, {
|
||||
id: 16,
|
||||
sender: {
|
||||
name: 'Drew Moore',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=16'
|
||||
}
|
||||
},
|
||||
body: 'subscribed to your email list',
|
||||
date: sub(new Date(), { days: 13 }).toISOString()
|
||||
}, {
|
||||
id: 17,
|
||||
sender: {
|
||||
name: 'Riley Davis'
|
||||
},
|
||||
body: 'subscribed to your email list',
|
||||
date: sub(new Date(), { days: 14 }).toISOString()
|
||||
}, {
|
||||
id: 18,
|
||||
sender: {
|
||||
name: 'Jordan Taylor'
|
||||
},
|
||||
body: 'subscribed to your email list',
|
||||
date: sub(new Date(), { days: 15 }).toISOString()
|
||||
}, {
|
||||
id: 19,
|
||||
sender: {
|
||||
name: 'Kelly Wilson',
|
||||
email: 'kelly.wilson@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=8'
|
||||
}
|
||||
},
|
||||
body: 'subscribed to your email list',
|
||||
date: sub(new Date(), { days: 16 }).toISOString()
|
||||
}, {
|
||||
id: 20,
|
||||
sender: {
|
||||
name: 'Jamie Johnson',
|
||||
email: 'jamie.johnson@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=9'
|
||||
}
|
||||
},
|
||||
body: 'purchased your product',
|
||||
date: sub(new Date(), { days: 17 }).toISOString()
|
||||
}, {
|
||||
id: 21,
|
||||
sender: {
|
||||
name: 'Morgan Anderson'
|
||||
},
|
||||
body: 'abandonned cart',
|
||||
date: sub(new Date(), { days: 17 }).toISOString()
|
||||
}, {
|
||||
id: 22,
|
||||
sender: {
|
||||
name: 'Drew Moore'
|
||||
},
|
||||
body: 'subscribed to your email list',
|
||||
date: sub(new Date(), { days: 18 }).toISOString()
|
||||
}, {
|
||||
id: 23,
|
||||
sender: {
|
||||
name: 'Riley Davis'
|
||||
},
|
||||
body: 'subscribed to your email list',
|
||||
date: sub(new Date(), { days: 19 }).toISOString()
|
||||
}, {
|
||||
id: 24,
|
||||
sender: {
|
||||
name: 'Jordan Taylor',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=24'
|
||||
}
|
||||
},
|
||||
body: 'subscribed to your email list',
|
||||
date: sub(new Date(), { days: 20 }).toISOString()
|
||||
}, {
|
||||
id: 25,
|
||||
sender: {
|
||||
name: 'Kelly Wilson',
|
||||
email: 'kelly.wilson@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=8'
|
||||
}
|
||||
},
|
||||
body: 'subscribed to your email list',
|
||||
date: sub(new Date(), { days: 20 }).toISOString()
|
||||
}, {
|
||||
id: 26,
|
||||
sender: {
|
||||
name: 'Jamie Johnson',
|
||||
email: 'jamie.johnson@example.com',
|
||||
avatar: {
|
||||
src: 'https://i.pravatar.cc/128?u=9'
|
||||
}
|
||||
},
|
||||
body: 'abandonned cart',
|
||||
date: sub(new Date(), { days: 21 }).toISOString()
|
||||
}, {
|
||||
id: 27,
|
||||
sender: {
|
||||
name: 'Morgan Anderson'
|
||||
},
|
||||
body: 'subscribed to your email list',
|
||||
date: sub(new Date(), { days: 22 }).toISOString()
|
||||
}]
|
||||
|
||||
export default eventHandler(async () => {
|
||||
return notifications
|
||||
})
|
||||
Reference in New Issue
Block a user