diff --git a/package-lock.json b/package-lock.json
index 664800c9..675971e7 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -23,7 +23,6 @@
"nextjs-google-analytics": "2.3.3",
"postcss": "8.4.24",
"postmark": "4.0.2",
- "printful-request": "2.0.0",
"prisma": "4.6.1",
"react": "18.2.0",
"react-dom": "18.2.0",
@@ -5860,52 +5859,6 @@
"resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
"integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ=="
},
- "node_modules/cross-fetch": {
- "version": "3.1.5",
- "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz",
- "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==",
- "dependencies": {
- "node-fetch": "2.6.7"
- }
- },
- "node_modules/cross-fetch/node_modules/node-fetch": {
- "version": "2.6.7",
- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",
- "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",
- "dependencies": {
- "whatwg-url": "^5.0.0"
- },
- "engines": {
- "node": "4.x || >=6.0.0"
- },
- "peerDependencies": {
- "encoding": "^0.1.0"
- },
- "peerDependenciesMeta": {
- "encoding": {
- "optional": true
- }
- }
- },
- "node_modules/cross-fetch/node_modules/tr46": {
- "version": "0.0.3",
- "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
- "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
- },
- "node_modules/cross-fetch/node_modules/webidl-conversions": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
- "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
- },
- "node_modules/cross-fetch/node_modules/whatwg-url": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
- "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
- "dependencies": {
- "tr46": "~0.0.3",
- "webidl-conversions": "^3.0.0"
- }
- },
"node_modules/cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
@@ -14061,14 +14014,6 @@
"node": ">=8"
}
},
- "node_modules/printful-request": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/printful-request/-/printful-request-2.0.0.tgz",
- "integrity": "sha512-bXtEFmqqZbhhgffianuxJT9o9D5yXpohQI+Vh/L6WyBFbBSov7ZwIyAifSLktBSighxroY/PiJmXPYiLrd+uKw==",
- "dependencies": {
- "cross-fetch": "3.1.5"
- }
- },
"node_modules/prisma": {
"version": "4.6.1",
"resolved": "https://registry.npmjs.org/prisma/-/prisma-4.6.1.tgz",
@@ -23119,43 +23064,6 @@
"resolved": "https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz",
"integrity": "sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ=="
},
- "cross-fetch": {
- "version": "3.1.5",
- "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.5.tgz",
- "integrity": "sha512-lvb1SBsI0Z7GDwmuid+mU3kWVBwTVUbe7S0H52yaaAdQOXq2YktTCZdlAcNKFzE6QtRz0snpw9bNiPeOIkkQvw==",
- "requires": {
- "node-fetch": "2.6.7"
- },
- "dependencies": {
- "node-fetch": {
- "version": "2.6.7",
- "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",
- "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",
- "requires": {
- "whatwg-url": "^5.0.0"
- }
- },
- "tr46": {
- "version": "0.0.3",
- "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",
- "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="
- },
- "webidl-conversions": {
- "version": "3.0.1",
- "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",
- "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="
- },
- "whatwg-url": {
- "version": "5.0.0",
- "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",
- "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",
- "requires": {
- "tr46": "~0.0.3",
- "webidl-conversions": "^3.0.0"
- }
- }
- }
- },
"cross-spawn": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz",
@@ -28816,14 +28724,6 @@
}
}
},
- "printful-request": {
- "version": "2.0.0",
- "resolved": "https://registry.npmjs.org/printful-request/-/printful-request-2.0.0.tgz",
- "integrity": "sha512-bXtEFmqqZbhhgffianuxJT9o9D5yXpohQI+Vh/L6WyBFbBSov7ZwIyAifSLktBSighxroY/PiJmXPYiLrd+uKw==",
- "requires": {
- "cross-fetch": "3.1.5"
- }
- },
"prisma": {
"version": "4.6.1",
"resolved": "https://registry.npmjs.org/prisma/-/prisma-4.6.1.tgz",
diff --git a/package.json b/package.json
index 9a38138d..37ba3c61 100644
--- a/package.json
+++ b/package.json
@@ -47,7 +47,6 @@
"nextjs-google-analytics": "2.3.3",
"postcss": "8.4.24",
"postmark": "4.0.2",
- "printful-request": "2.0.0",
"prisma": "4.6.1",
"react": "18.2.0",
"react-dom": "18.2.0",
diff --git a/public/sitemap.xml b/public/sitemap.xml
index 459cc65b..b028b0c6 100644
--- a/public/sitemap.xml
+++ b/public/sitemap.xml
@@ -129,9 +129,4 @@
https://ladderly.io/privacy-policy
-
-
- https://ladderly.io/store/
-
-
\ No newline at end of file
diff --git a/src/checklist-items/mutations/createChecklistItem.ts b/src/checklist-items/mutations/createChecklistItem.ts
index e95fb0d0..a9c70702 100644
--- a/src/checklist-items/mutations/createChecklistItem.ts
+++ b/src/checklist-items/mutations/createChecklistItem.ts
@@ -4,7 +4,7 @@ import { CreateChecklistItemSchema } from "../schemas"
export default resolver.pipe(
resolver.zod(CreateChecklistItemSchema),
- resolver.authorize(["admin"]),
+ resolver.authorize(["ADMIN"]),
async (input) => {
const checklistItem = await db.checklistItem.create({ data: input })
diff --git a/src/checklist-items/mutations/deleteChecklistItem.ts b/src/checklist-items/mutations/deleteChecklistItem.ts
index af1ca706..0c86ce80 100644
--- a/src/checklist-items/mutations/deleteChecklistItem.ts
+++ b/src/checklist-items/mutations/deleteChecklistItem.ts
@@ -4,7 +4,7 @@ import { DeleteChecklistItemSchema } from "../schemas"
export default resolver.pipe(
resolver.zod(DeleteChecklistItemSchema),
- resolver.authorize(["admin"]),
+ resolver.authorize(["ADMIN"]),
async ({ id }) => {
// TODO: in multi-tenant app, you must add validation to ensure correct tenant
const checklistItem = await db.checklistItem.deleteMany({ where: { id } })
diff --git a/src/checklist-items/mutations/updateChecklistItem.ts b/src/checklist-items/mutations/updateChecklistItem.ts
index a4525e5f..354968b6 100644
--- a/src/checklist-items/mutations/updateChecklistItem.ts
+++ b/src/checklist-items/mutations/updateChecklistItem.ts
@@ -4,7 +4,7 @@ import { UpdateChecklistItemSchema } from "../schemas"
export default resolver.pipe(
resolver.zod(UpdateChecklistItemSchema),
- resolver.authorize(["admin"]),
+ resolver.authorize(["ADMIN"]),
async ({ id, ...data }) => {
const checklistItem = await db.checklistItem.update({
where: { id },
diff --git a/src/checklists/mutations/createChecklist.ts b/src/checklists/mutations/createChecklist.ts
index 4db1b1e7..f0242cae 100644
--- a/src/checklists/mutations/createChecklist.ts
+++ b/src/checklists/mutations/createChecklist.ts
@@ -4,7 +4,7 @@ import { CreateChecklistSchema } from "../schemas"
export default resolver.pipe(
resolver.zod(CreateChecklistSchema),
- resolver.authorize(["admin"]),
+ resolver.authorize(["ADMIN"]),
async (input) => {
const checklist = await db.checklist.create({ data: input })
diff --git a/src/checklists/mutations/deleteChecklist.ts b/src/checklists/mutations/deleteChecklist.ts
index eff45159..c52aea38 100644
--- a/src/checklists/mutations/deleteChecklist.ts
+++ b/src/checklists/mutations/deleteChecklist.ts
@@ -4,7 +4,7 @@ import { DeleteChecklistSchema } from "../schemas"
export default resolver.pipe(
resolver.zod(DeleteChecklistSchema),
- resolver.authorize(["admin"]),
+ resolver.authorize(["ADMIN"]),
async ({ id }) => {
// TODO: in multi-tenant app, you must add validation to ensure correct tenant
const checklist = await db.checklist.deleteMany({ where: { id } })
diff --git a/src/checklists/mutations/updateChecklist.ts b/src/checklists/mutations/updateChecklist.ts
index 868e9c25..cd1f0336 100644
--- a/src/checklists/mutations/updateChecklist.ts
+++ b/src/checklists/mutations/updateChecklist.ts
@@ -4,7 +4,7 @@ import { UpdateChecklistSchema } from "../schemas"
export default resolver.pipe(
resolver.zod(UpdateChecklistSchema),
- resolver.authorize(["admin"]),
+ resolver.authorize(["ADMIN"]),
async ({ id, ...data }) => {
// TODO: in multi-tenant app, you must add validation to ensure correct tenant
const checklist = await db.checklist.update({ where: { id }, data })
diff --git a/src/core/components/page-wrapper/TopNavRight.tsx b/src/core/components/page-wrapper/TopNavRight.tsx
index 71d7fc1b..fd63f440 100644
--- a/src/core/components/page-wrapper/TopNavRight.tsx
+++ b/src/core/components/page-wrapper/TopNavRight.tsx
@@ -5,7 +5,11 @@ import React from "react"
import { useCurrentUser } from "src/users/hooks/useCurrentUser"
import { IconVerticalChevron } from "../icons/VerticalChevron"
import { MenuContext } from "./MenuProvider"
-import { AccountMenuItems, CommunityMenuItems, TOP_NAV_STANDARD_CLASSES } from "./TopNavSubmenu"
+import {
+ AccountMenuItems,
+ CommunityMenuItems,
+ TOP_NAV_STANDARD_CLASSES,
+} from "./TopNavSubmenu"
const TOP_NAV_RIGHT_SECTION_CLASSES = "ml-auto flex items-center space-x-6"
@@ -35,18 +39,21 @@ export const TopNavRight = () => {
return (
-
- Store
-
Blog
-