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 # typescript
*.tsbuildinfo *.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 // @ts-check
import withPWA from "next-pwa";
!process.env.SKIP_ENV_VALIDATION && (await import("./src/env.mjs")); !process.env.SKIP_ENV_VALIDATION && (await import("./src/env.mjs"));
/** @type {import("next").NextConfig} */ /** @type {import("next").NextConfig} */
@ -24,7 +22,5 @@ const config = {
return config; return config;
}, },
}; };
const nextConfig = withPWA({
dest: "public", export default config;
})(config);
export default nextConfig;

View file

@ -1,6 +1,6 @@
{ {
"name": "sprintpadawan", "name": "sprintpadawan",
"version": "1.1.8", "version": "1.1.9",
"description": "Plan. Sprint. Repeat.", "description": "Plan. Sprint. Repeat.",
"private": true, "private": true,
"scripts": { "scripts": {
@ -16,7 +16,8 @@
"@ably-labs/react-hooks": "^2.1.1", "@ably-labs/react-hooks": "^2.1.1",
"@auth/prisma-adapter": "^1.0.0", "@auth/prisma-adapter": "^1.0.0",
"@prisma/client": "4.15.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/client": "10.30.0",
"@trpc/next": "10.30.0", "@trpc/next": "10.30.0",
"@trpc/react-query": "10.30.0", "@trpc/react-query": "10.30.0",
@ -24,15 +25,16 @@
"ably": "^1.2.40", "ably": "^1.2.40",
"autoprefixer": "^10.4.14", "autoprefixer": "^10.4.14",
"json2csv": "6.0.0-alpha.2", "json2csv": "6.0.0-alpha.2",
"next": "^13.4.5", "next": "^13.4.6",
"next-auth": "^4.22.1", "next-auth": "^4.22.1",
"postcss": "^8.4.24", "postcss": "^8.4.24",
"preact": "^10.15.1", "preact": "^10.15.1",
"react": "18.2.0", "react": "18.2.0",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"react-email": "^1.9.4",
"react-icons": "^4.9.0", "react-icons": "^4.9.0",
"redicache-ts": "^0.1.1", "redicache-ts": "^0.1.1",
"resend": "^0.15.1", "resend": "^0.15.3",
"sharp": "^0.32.1", "sharp": "^0.32.1",
"superjson": "1.12.3", "superjson": "1.12.3",
"zod": "^3.21.4" "zod": "^3.21.4"
@ -40,16 +42,14 @@
"devDependencies": { "devDependencies": {
"@types/eslint": "^8.40.2", "@types/eslint": "^8.40.2",
"@types/json2csv": "^5.0.3", "@types/json2csv": "^5.0.3",
"@types/next-pwa": "^5.6.4",
"@types/node": "^20.3.1", "@types/node": "^20.3.1",
"@types/react": "^18.2.12", "@types/react": "^18.2.12",
"@types/react-dom": "^18.2.5", "@types/react-dom": "^18.2.5",
"@typescript-eslint/eslint-plugin": "^5.59.11", "@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11", "@typescript-eslint/parser": "^5.59.11",
"daisyui": "^3.1.0", "daisyui": "^3.1.1",
"eslint": "^8.42.0", "eslint": "^8.43.0",
"eslint-config-next": "^13.4.5", "eslint-config-next": "^13.4.6",
"next-pwa": "^5.6.0",
"prisma": "4.15.0", "prisma": "4.15.0",
"tailwindcss": "^3.3.2", "tailwindcss": "^3.3.2",
"typescript": "^5.1.3" "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 * as React from "react";
import {
Body,
Container,
Head,
Heading,
Html,
Preview,
Text,
Hr,
} from "@react-email/components";
interface EmailTemplateProps { interface EmailTemplateProps {
name: string; name: string;
} }
export const Goodbye: React.FC<Readonly<EmailTemplateProps>> = ({ name }) => ( export const Goodbye: React.FC<Readonly<EmailTemplateProps>> = ({ name }) => (
<div> <Html>
<h1>Farewell, {name}...</h1> <Head />
<p>{"We're sorry to see you go."}</p> <Preview>Sorry to see you go... 😭</Preview>
<p> <Body>
Your data has been deleted, including all room history, user data, votes, <Container>
etc. <Heading className="text-4xl">Farewell, {name}...</Heading>
</p> <Text>{"Were sorry to see you go."}</Text>
<br /> <Text>
<p>Sprint Padawan Admin - Atridad</p> Your data has been deleted, including all room history, user data,
</div> 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 * as React from "react";
import {
Body,
Container,
Head,
Heading,
Html,
Preview,
Text,
Hr,
} from "@react-email/components";
interface EmailTemplateProps { interface EmailTemplateProps {
name: string; name: string;
} }
export const Welcome: React.FC<Readonly<EmailTemplateProps>> = ({ name }) => ( export const Welcome: React.FC<Readonly<EmailTemplateProps>> = ({ name }) => (
<div> <Html>
<h1>Welcome, {name}!</h1> <Head />
<p>Thank you for signing up for Sprint Padawan!</p> <Preview>🎉 Welcome to Sprint Padawan! 🎉</Preview>
<p> <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 If at any point you encounter issues, please let me know at
support@sprintpadawan.dev. support@sprintpadawan.dev.
</p> </Text>
<br /> <Hr />
<p>Sprint Padawan Admin - Atridad</p> <Text>Sprint Padawan Admin - Atridad</Text>
</div> </Container>
</Body>
</Html>
); );