Merge pull request #17 from atridadl/dev

1.1.9
 Emails are prettier
🚫 Removed PWA... yeah it added to the bundle and brought no real value...
This commit is contained in:
Atridad Lahiji 2023-06-18 01:42:18 -06:00 committed by GitHub
commit 4314838dd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 1458 additions and 2567 deletions

12
.gitignore vendored
View file

@ -40,15 +40,3 @@ yarn-error.log*
# typescript
*.tsbuildinfo
# next-pwa
/public/precache.*.*.js
/public/sw.js
/public/workbox-*.js
/public/worker-*.js
/public/fallback-*.js
/public/precache.*.*.js.map
/public/sw.js.map
/public/workbox-*.js.map
/public/worker-*.js.map
/public/fallback-*.js

View file

@ -1,6 +1,4 @@
// @ts-check
import withPWA from "next-pwa";
!process.env.SKIP_ENV_VALIDATION && (await import("./src/env.mjs"));
/** @type {import("next").NextConfig} */
@ -24,7 +22,5 @@ const config = {
return config;
},
};
const nextConfig = withPWA({
dest: "public",
})(config);
export default nextConfig;
export default config;

View file

@ -1,6 +1,6 @@
{
"name": "sprintpadawan",
"version": "1.1.8",
"version": "1.1.9",
"description": "Plan. Sprint. Repeat.",
"private": true,
"scripts": {
@ -16,7 +16,8 @@
"@ably-labs/react-hooks": "^2.1.1",
"@auth/prisma-adapter": "^1.0.0",
"@prisma/client": "4.15.0",
"@tanstack/react-query": "^4.29.13",
"@react-email/components": "^0.0.7",
"@tanstack/react-query": "^4.29.14",
"@trpc/client": "10.30.0",
"@trpc/next": "10.30.0",
"@trpc/react-query": "10.30.0",
@ -24,15 +25,16 @@
"ably": "^1.2.40",
"autoprefixer": "^10.4.14",
"json2csv": "6.0.0-alpha.2",
"next": "^13.4.5",
"next": "^13.4.6",
"next-auth": "^4.22.1",
"postcss": "^8.4.24",
"preact": "^10.15.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-email": "^1.9.4",
"react-icons": "^4.9.0",
"redicache-ts": "^0.1.1",
"resend": "^0.15.1",
"resend": "^0.15.3",
"sharp": "^0.32.1",
"superjson": "1.12.3",
"zod": "^3.21.4"
@ -40,16 +42,14 @@
"devDependencies": {
"@types/eslint": "^8.40.2",
"@types/json2csv": "^5.0.3",
"@types/next-pwa": "^5.6.4",
"@types/node": "^20.3.1",
"@types/react": "^18.2.12",
"@types/react-dom": "^18.2.5",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"daisyui": "^3.1.0",
"eslint": "^8.42.0",
"eslint-config-next": "^13.4.5",
"next-pwa": "^5.6.0",
"daisyui": "^3.1.1",
"eslint": "^8.43.0",
"eslint-config-next": "^13.4.6",
"prisma": "4.15.0",
"tailwindcss": "^3.3.2",
"typescript": "^5.1.3"

3915
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -1,18 +1,34 @@
import * as React from "react";
import {
Body,
Container,
Head,
Heading,
Html,
Preview,
Text,
Hr,
} from "@react-email/components";
interface EmailTemplateProps {
name: string;
}
export const Goodbye: React.FC<Readonly<EmailTemplateProps>> = ({ name }) => (
<div>
<h1>Farewell, {name}...</h1>
<p>{"We're sorry to see you go."}</p>
<p>
Your data has been deleted, including all room history, user data, votes,
etc.
</p>
<br />
<p>Sprint Padawan Admin - Atridad</p>
</div>
<Html>
<Head />
<Preview>Sorry to see you go... 😭</Preview>
<Body>
<Container>
<Heading className="text-4xl">Farewell, {name}...</Heading>
<Text>{"Were sorry to see you go."}</Text>
<Text>
Your data has been deleted, including all room history, user data,
votes, etc.
</Text>
<Hr />
<Text>Sprint Padawan Admin - Atridad</Text>
</Container>
</Body>
</Html>
);

View file

@ -1,18 +1,34 @@
import * as React from "react";
import {
Body,
Container,
Head,
Heading,
Html,
Preview,
Text,
Hr,
} from "@react-email/components";
interface EmailTemplateProps {
name: string;
}
export const Welcome: React.FC<Readonly<EmailTemplateProps>> = ({ name }) => (
<div>
<h1>Welcome, {name}!</h1>
<p>Thank you for signing up for Sprint Padawan!</p>
<p>
If at any point you encounter issues, please let me know at
support@sprintpadawan.dev.
</p>
<br />
<p>Sprint Padawan Admin - Atridad</p>
</div>
<Html>
<Head />
<Preview>🎉 Welcome to Sprint Padawan! 🎉</Preview>
<Body>
<Container>
<Heading className="text-4xl">Welcome, {name}!</Heading>
<Text>Thank you for signing up for Sprint Padawan!</Text>
<Text>
If at any point you encounter issues, please let me know at
support@sprintpadawan.dev.
</Text>
<Hr />
<Text>Sprint Padawan Admin - Atridad</Text>
</Container>
</Body>
</Html>
);