diff --git a/cms/package.json b/cms/package.json index a34e287..252f247 100644 --- a/cms/package.json +++ b/cms/package.json @@ -16,9 +16,9 @@ "payload": "cross-env PAYLOAD_CONFIG_PATH=src/payload.config.ts payload" }, "dependencies": { - "@payloadcms/bundler-webpack": "^1.0.0", - "@payloadcms/db-mongodb": "^1.0.0", - "@payloadcms/plugin-cloud": "^3.0.0", + "@payloadcms/bundler-webpack": "^1.0.7", + "@payloadcms/db-mongodb": "^1.7.2", + "@payloadcms/plugin-cloud": "^3.0.2", "@payloadcms/plugin-cloud-storage": "^1.1.3", "@payloadcms/richtext-lexical": "^0.11.2", "@payloadcms/richtext-slate": "^1.0.0", diff --git a/cms/src/collections/Posts.ts b/cms/src/collections/Posts.ts index e6c1352..dea0035 100644 --- a/cms/src/collections/Posts.ts +++ b/cms/src/collections/Posts.ts @@ -42,6 +42,11 @@ const Posts: CollectionConfig = { hasMany: true, required: true, }, + { + name: "email", + type: "text", + required: true, + }, { name: "content", type: "richText", diff --git a/cms/src/media/Dragon-1.png b/cms/src/media/Dragon-1.png deleted file mode 100644 index 1289ce6..0000000 Binary files a/cms/src/media/Dragon-1.png and /dev/null differ diff --git a/cms/src/media/Dragon.png b/cms/src/media/Dragon.png deleted file mode 100644 index 1289ce6..0000000 Binary files a/cms/src/media/Dragon.png and /dev/null differ diff --git a/cms/src/media/download (2).png b/cms/src/media/download (2).png deleted file mode 100644 index ef256d0..0000000 Binary files a/cms/src/media/download (2).png and /dev/null differ diff --git a/cms/src/media/loaf1337_huge_cave_small_character_looking_up_in_defiance_giant_5042468c-c315-4f7e-b284-78265071f226-1.png b/cms/src/media/loaf1337_huge_cave_small_character_looking_up_in_defiance_giant_5042468c-c315-4f7e-b284-78265071f226-1.png deleted file mode 100644 index 8d659e9..0000000 Binary files a/cms/src/media/loaf1337_huge_cave_small_character_looking_up_in_defiance_giant_5042468c-c315-4f7e-b284-78265071f226-1.png and /dev/null differ diff --git a/cms/src/media/loaf1337_huge_cave_small_character_looking_up_in_defiance_giant_5042468c-c315-4f7e-b284-78265071f226.png b/cms/src/media/loaf1337_huge_cave_small_character_looking_up_in_defiance_giant_5042468c-c315-4f7e-b284-78265071f226.png deleted file mode 100644 index 8d659e9..0000000 Binary files a/cms/src/media/loaf1337_huge_cave_small_character_looking_up_in_defiance_giant_5042468c-c315-4f7e-b284-78265071f226.png and /dev/null differ diff --git a/cms/src/server.ts b/cms/src/server.ts index cb2956f..39df852 100644 --- a/cms/src/server.ts +++ b/cms/src/server.ts @@ -1,13 +1,13 @@ -import express from 'express' -import payload from 'payload' +import express from "express"; +import payload from "payload"; -require('dotenv').config() -const app = express() +require("dotenv").config(); +const app = express(); // Redirect root to Admin panel -app.get('/', (_, res) => { - res.redirect('/admin') -}) +app.get("/", (_, res) => { + res.redirect("/admin"); +}); const start = async () => { // Initialize Payload @@ -15,13 +15,13 @@ const start = async () => { secret: process.env.PAYLOAD_SECRET, express: app, onInit: async () => { - payload.logger.info(`Payload Admin URL: ${payload.getAdminURL()}`) + payload.logger.info(`Payload Admin URL: ${payload.getAdminURL()}`); }, - }) + }); // Add your own express routes here - app.listen(3000) -} + app.listen(3000); +}; -start() +start(); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 18549ff..aa4885e 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -11,14 +11,14 @@ importers: cms: dependencies: '@payloadcms/bundler-webpack': - specifier: ^1.0.0 - version: 1.0.7(@swc/core@1.6.1(@swc/helpers@0.5.2))(ajv@8.17.1)(payload@2.24.2(@swc/helpers@0.5.2)(typescript@4.9.5)(webpack@5.93.0(@swc/core@1.6.1(@swc/helpers@0.5.2))(webpack-cli@4.10.0)))(sass@1.69.4) + specifier: ^1.0.7 + version: 1.0.7(@swc/core@1.6.1(@swc/helpers@0.5.2))(ajv@6.12.6)(payload@2.24.2(@swc/helpers@0.5.2)(typescript@4.9.5)(webpack@5.93.0(@swc/core@1.6.1(@swc/helpers@0.5.2))(webpack-cli@4.10.0)))(sass@1.69.4) '@payloadcms/db-mongodb': - specifier: ^1.0.0 - version: 1.7.0(@aws-sdk/client-sso-oidc@3.616.0(@aws-sdk/client-sts@3.616.0))(payload@2.24.2(@swc/helpers@0.5.2)(typescript@4.9.5)(webpack@5.93.0(@swc/core@1.6.1(@swc/helpers@0.5.2))(webpack-cli@4.10.0))) + specifier: ^1.7.2 + version: 1.7.2(@aws-sdk/client-sso-oidc@3.616.0(@aws-sdk/client-sts@3.616.0))(payload@2.24.2(@swc/helpers@0.5.2)(typescript@4.9.5)(webpack@5.93.0(@swc/core@1.6.1(@swc/helpers@0.5.2))(webpack-cli@4.10.0))) '@payloadcms/plugin-cloud': - specifier: ^3.0.0 - version: 3.0.1(@aws-sdk/client-sso-oidc@3.616.0(@aws-sdk/client-sts@3.616.0))(payload@2.24.2(@swc/helpers@0.5.2)(typescript@4.9.5)(webpack@5.93.0(@swc/core@1.6.1(@swc/helpers@0.5.2))(webpack-cli@4.10.0))) + specifier: ^3.0.2 + version: 3.0.2(@aws-sdk/client-sso-oidc@3.616.0(@aws-sdk/client-sts@3.616.0))(payload@2.24.2(@swc/helpers@0.5.2)(typescript@4.9.5)(webpack@5.93.0(@swc/core@1.6.1(@swc/helpers@0.5.2))(webpack-cli@4.10.0))) '@payloadcms/plugin-cloud-storage': specifier: ^1.1.3 version: 1.1.3(@aws-sdk/client-s3@3.617.0)(@aws-sdk/lib-storage@3.617.0(@aws-sdk/client-s3@3.617.0))(payload@2.24.2(@swc/helpers@0.5.2)(typescript@4.9.5)(webpack@5.93.0(@swc/core@1.6.1(@swc/helpers@0.5.2))(webpack-cli@4.10.0))) @@ -1649,8 +1649,8 @@ packages: ajv: 8.14.0 payload: ^2.0.0 - '@payloadcms/db-mongodb@1.7.0': - resolution: {integrity: sha512-2phbqQrxDulWRqhXDYUucI9e6w/RD4D4BcPYLDs8yyCD9mst4KyFInI3ZSo2Q5HCmmL4FPffJrdZcKKgGctBOA==} + '@payloadcms/db-mongodb@1.7.2': + resolution: {integrity: sha512-C2qlhDE7EBgr+2dZvjj6aqdIBWDWdKb508O7+RQEXijNHYSUxC3VXxI21WBhRcFehBXU5WpYrFBxtU3CPJEmAw==} peerDependencies: payload: ^2.0.0 @@ -1675,8 +1675,8 @@ packages: '@google-cloud/storage': optional: true - '@payloadcms/plugin-cloud@3.0.1': - resolution: {integrity: sha512-o0+3C0KDo29nPv7uKMHzdo0hfxdIksKDOg+/U4jH2vh2zkcH7HCbW4M10m2q/FcusHyhr4CtIizuCS5Ck6HDKw==} + '@payloadcms/plugin-cloud@3.0.2': + resolution: {integrity: sha512-qMbXEDiafaw8s49U1SZ3jLd5sOsrZ3aoKOfSLf1fXV22Ndlojev/Sd7LVqnxbSOsoIRwY+pmmM8q/aXlIwvGCg==} peerDependencies: payload: ^1.8.2 || ^2.0.0 @@ -4921,6 +4921,10 @@ packages: resolution: {integrity: sha512-cfrYUk16e67Ks051i4CntM9kshRYei1/o/Gi8K1d+R34OIs21xdFnW7Pt7EucmVKA0LKtqUGNcjMZ7ehjl49mQ==} engines: {node: '>=6.0.0'} + nodemailer@6.9.9: + resolution: {integrity: sha512-dexTll8zqQoVJEZPwQAKzxxtFn0qTnjdQTchoU6Re9BUUGBJiOy3YMn/0ShTW6J5M0dfQ1NeDeRTTl4oIWgQMA==} + engines: {node: '>=6.0.0'} + nodemon@2.0.22: resolution: {integrity: sha512-B8YqaKMmyuCO7BowF1Z1/mkPqLk6cs/l63Ojtd6otKjMx47Dq1utxfRxcavH1I7VSaL8n5BUaoutadnsX3AAVQ==} engines: {node: '>=8.10.0'} @@ -8963,9 +8967,9 @@ snapshots: '@nodelib/fs.scandir': 2.1.5 fastq: 1.17.1 - '@payloadcms/bundler-webpack@1.0.7(@swc/core@1.6.1(@swc/helpers@0.5.2))(ajv@8.17.1)(payload@2.24.2(@swc/helpers@0.5.2)(typescript@4.9.5)(webpack@5.93.0(@swc/core@1.6.1(@swc/helpers@0.5.2))(webpack-cli@4.10.0)))(sass@1.69.4)': + '@payloadcms/bundler-webpack@1.0.7(@swc/core@1.6.1(@swc/helpers@0.5.2))(ajv@6.12.6)(payload@2.24.2(@swc/helpers@0.5.2)(typescript@4.9.5)(webpack@5.93.0(@swc/core@1.6.1(@swc/helpers@0.5.2))(webpack-cli@4.10.0)))(sass@1.69.4)': dependencies: - ajv: 8.17.1 + ajv: 6.12.6 compression: 1.7.4 connect-history-api-fallback: 1.6.0 css-loader: 5.2.7(webpack@5.93.0(@swc/core@1.6.1(@swc/helpers@0.5.2))(webpack-cli@4.10.0)) @@ -9007,7 +9011,7 @@ snapshots: - utf-8-validate - webpack-dev-server - '@payloadcms/db-mongodb@1.7.0(@aws-sdk/client-sso-oidc@3.616.0(@aws-sdk/client-sts@3.616.0))(payload@2.24.2(@swc/helpers@0.5.2)(typescript@4.9.5)(webpack@5.93.0(@swc/core@1.6.1(@swc/helpers@0.5.2))(webpack-cli@4.10.0)))': + '@payloadcms/db-mongodb@1.7.2(@aws-sdk/client-sso-oidc@3.616.0(@aws-sdk/client-sts@3.616.0))(payload@2.24.2(@swc/helpers@0.5.2)(typescript@4.9.5)(webpack@5.93.0(@swc/core@1.6.1(@swc/helpers@0.5.2))(webpack-cli@4.10.0)))': dependencies: bson-objectid: 2.0.4 deepmerge: 4.3.1 @@ -9033,14 +9037,14 @@ snapshots: '@aws-sdk/client-s3': 3.617.0 '@aws-sdk/lib-storage': 3.617.0(@aws-sdk/client-s3@3.617.0) - '@payloadcms/plugin-cloud@3.0.1(@aws-sdk/client-sso-oidc@3.616.0(@aws-sdk/client-sts@3.616.0))(payload@2.24.2(@swc/helpers@0.5.2)(typescript@4.9.5)(webpack@5.93.0(@swc/core@1.6.1(@swc/helpers@0.5.2))(webpack-cli@4.10.0)))': + '@payloadcms/plugin-cloud@3.0.2(@aws-sdk/client-sso-oidc@3.616.0(@aws-sdk/client-sts@3.616.0))(payload@2.24.2(@swc/helpers@0.5.2)(typescript@4.9.5)(webpack@5.93.0(@swc/core@1.6.1(@swc/helpers@0.5.2))(webpack-cli@4.10.0)))': dependencies: '@aws-sdk/client-cognito-identity': 3.616.0 '@aws-sdk/client-s3': 3.617.0 '@aws-sdk/credential-providers': 3.617.0(@aws-sdk/client-sso-oidc@3.616.0(@aws-sdk/client-sts@3.616.0)) '@aws-sdk/lib-storage': 3.617.0(@aws-sdk/client-s3@3.617.0) amazon-cognito-identity-js: 6.3.12 - nodemailer: 6.9.8 + nodemailer: 6.9.9 payload: 2.24.2(@swc/helpers@0.5.2)(typescript@4.9.5)(webpack@5.93.0(@swc/core@1.6.1(@swc/helpers@0.5.2))(webpack-cli@4.10.0)) transitivePeerDependencies: - '@aws-sdk/client-sso-oidc' @@ -12853,6 +12857,8 @@ snapshots: nodemailer@6.9.8: {} + nodemailer@6.9.9: {} + nodemon@2.0.22: dependencies: chokidar: 3.6.0