mirror of
https://github.com/wasp-lang/open-saas.git
synced 2025-11-29 10:26:47 +01:00
create updated app_diff (#207)
* create updated app_diff * fix requested changes
This commit is contained in:
@@ -11,16 +11,16 @@
|
||||
+DOTENV_VAULT_DEVELOPMENT_VERSION=5
|
||||
+
|
||||
+# ci
|
||||
+DOTENV_VAULT_CI="BzXtisw7TpmxCnpJlocNzsueSrO+0NfaJoRWBj7IkQXc5z4WIgnF9f9F98qyYoMWJRj3ij5Ytbt4jMC/LIJTWqUdY8xSnzPA3Wt21OXZre511kiGOMbzdTsJXUN7jDX9XQxNC6aTZ/t7BwNxHi35g3acjn0qxXZDcnzMA+TRtYefuDcLjqMugVKnoL3NKtEuZnepDWgXickRk1yI/QlLYn7z2UKEDu+RTn+LcBfjKwYcSjsGxMphDCdN1zphecd7apVX57PY3zFXXVSTQLOE6EdmJk/bnvhq5meqCcjlXKe3FSAUc+TsvzGG/8P/clGX1lPMD7tIyIJACtvUmtaGinYRwCQaPQiUdYC3BmFSNs8ctH1nElSvGIwdncY3XKh1ryvpZX3pLpFhI9/n+EVt8ncBz7KP883oLzjP+yopRjOj8/T2Isrt+rXlCj4TJtnzs/VNzcokY62xfN9tx8Q+wEvZEeIY7fuVNO5wUyAUlpt2hyfuEf3tSHnT7viLt5fXZhwWc4gntT6HEUsysA49kp31VC48KjVkNsdXv960s8ZmbG/TBaShAD27zrO4G3s20lEpDnzuX+rLVAiRAvxmnAtsB5Odz+E6npoIHN+Wi/W7TXtazQ5IirCwVRLg+zPHaLmovy2ROc0qbDMZXn2M6mrHFjklO3br91u5WBZXhtt7ioP06xSe/FmKnwNFGu17NW5knWXGW/GkLhj+u5juY09ODSpPrbF0Saxp/tlL1ov3pGraXK/83Y88TuBYMtix5dqg75E8OshDrxUnQQEiVmexo9Jrtxbf50J72v3N1YA2ulCYHrcMTitgmjFVPZD0BSQESkcUIP0MHVap39XSg+uAaIHvffnNJZPY"
|
||||
+DOTENV_VAULT_CI_VERSION=3
|
||||
+DOTENV_VAULT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bdzW8HvUvCJwRM47nuU+AwoJgNdE0oSm3rGHmfXCKL/ZdE7m4zUGgYhuAMBffJNyI+qYwzOe0IBsZhdqBce6FYDIovV4qGnn3jAy6WGaAlu+u6mXMNTa+KYWWsmNXlXq37Vg5EAylpUT6uhzSSLypHKgZ5XgCLrWv9FA2tCdzL8cNrQpVrkuwfpJdAU8OvHH/mL7cGLnrqtjvYTM/nN5ecPVYJS5sxVBKomQlD2OVhC0eJL2+YfqCmhoFXzeam+Fn/suCba0GfGBYuG8KiSon18OEHjuqOtC23NYqfYcEiI4G05o9Hb8/ruDuQ/vS4YSBwJJb0Z2dYWg4J729HMkBj2Q5FYFTX7PgtfhtbfSxvHvknjkdENHkkvb3Z6ZM9fJGAapagfksCyFmpFZnBFZiKhMjWXSjQyHqclqp16KlAYuQor1zgc8rjrxN40X1JbKGDTVxNgE4WPhd7DBq6D1CgauuGgQcXjaoDQg2ln/Lt3doMkZPw2Pesz2CzQSEC9WFUnvsU1tc/1BBL8ItrspyU7Q6frKH1ZE2yWgTnMXJBQCP0hkgezwTDEm0EZ3mZfJk9H4s3qFVL+rcN1jwSP2Gg0JRL7ML3Teap0UG8yhDzG5RrN5CqpBrZ0z3GZMC+6mBKK/Zx55H0bupjhxiEsspkhdt06OfC0MKxWI="
|
||||
+DOTENV_VAULT_PRODUCTION_VERSION=4
|
||||
+
|
||||
+#/----------------settings/metadata-----------------/
|
||||
+DOTENV_VAULT="vlt_47e3eeb0730e831e688049600e59f8975260a1f00302ae08684ed87ba67872d0"
|
||||
|
||||
@@ -47,25 +47,25 @@
|
||||
clientRoute: EmailVerificationRoute,
|
||||
@@ -44,16 +44,14 @@
|
||||
},
|
||||
userSignupFields: import { getEmailUserFields } from "@src/server/auth/setUsername.js",
|
||||
userSignupFields: import { getEmailUserFields } from "@src/server/auth/userSignupFields",
|
||||
},
|
||||
- // Uncomment to enable Google Auth (check https://wasp-lang.dev/docs/auth/social-auth/google for setup instructions):
|
||||
- // google: { // Guide for setting up Auth via Google
|
||||
- // userSignupFields: import { getGoogleUserFields } from "@src/server/auth/setUsername.js",
|
||||
- // configFn: import { getGoogleAuthConfig } from "@src/server/auth/setUsername.js",
|
||||
- // userSignupFields: import { getGoogleUserFields } from "@src/server/auth/userSignupFields",
|
||||
- // configFn: import { getGoogleAuthConfig } from "@src/server/auth/userSignupFields",
|
||||
- // },
|
||||
- // Uncomment to enable GitHub Auth (check https://wasp-lang.dev/docs/auth/social-auth/github for setup instructions):
|
||||
- // gitHub: {
|
||||
- // userSignupFields: import { getGitHubUserFields } from "@src/server/auth/setUsername.js",
|
||||
- // configFn: import { getGitHubAuthConfig } from "@src/server/auth/setUsername.js",
|
||||
- // userSignupFields: import { getGitHubUserFields } from "@src/server/auth/userSignupFields",
|
||||
- // configFn: import { getGitHubAuthConfig } from "@src/server/auth/userSignupFields",
|
||||
- // },
|
||||
+ google: {
|
||||
+ userSignupFields: import { getGoogleUserFields } from "@src/server/auth/setUsername",
|
||||
+ configFn: import { getGoogleAuthConfig } from "@src/server/auth/setUsername",
|
||||
+ userSignupFields: import { getGoogleUserFields } from "@src/server/auth/userSignupFields",
|
||||
+ configFn: import { getGoogleAuthConfig } from "@src/server/auth/userSignupFields",
|
||||
+ },
|
||||
+ gitHub: {
|
||||
+ userSignupFields: import { getGitHubUserFields } from "@src/server/auth/setUsername",
|
||||
+ configFn: import { getGitHubAuthConfig } from "@src/server/auth/setUsername",
|
||||
+ userSignupFields: import { getGitHubUserFields } from "@src/server/auth/userSignupFields",
|
||||
+ configFn: import { getGitHubAuthConfig } from "@src/server/auth/userSignupFields",
|
||||
+ },
|
||||
},
|
||||
onAuthFailedRedirectTo: "/login",
|
||||
@@ -84,14 +84,9 @@
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -93,10 +91,13 @@
|
||||
id Int @id @default(autoincrement())
|
||||
createdAt DateTime @default(now())
|
||||
|
||||
- email String? @unique
|
||||
- username String? @unique
|
||||
+ email String?
|
||||
+ username String?
|
||||
@@ -96,7 +94,10 @@
|
||||
email String? @unique
|
||||
username String? @unique
|
||||
lastActiveTimestamp DateTime @default(now())
|
||||
- isAdmin Boolean @default(false)
|
||||
+ isAdmin Boolean @default(true)
|
||||
|
||||
@@ -0,0 +1,68 @@
|
||||
--- template/app/migrations/20240702143707_update_user_entity/migration.sql
|
||||
+++ opensaas-sh/app/migrations/20240702143707_update_user_entity/migration.sql
|
||||
@@ -0,0 +1,65 @@
|
||||
+/*
|
||||
+ Warnings:
|
||||
+
|
||||
+ - The primary key for the `User` table will be changed. If it partially fails, the table could be left without primary key constraint.
|
||||
+ - A unique constraint covering the columns `[email]` on the table `User` will be added. If there are existing duplicate values, this will fail.
|
||||
+ - A unique constraint covering the columns `[username]` on the table `User` will be added. If there are existing duplicate values, this will fail.
|
||||
+
|
||||
+*/
|
||||
+-- DropForeignKey
|
||||
+ALTER TABLE "Auth" DROP CONSTRAINT "Auth_userId_fkey";
|
||||
+
|
||||
+-- DropForeignKey
|
||||
+ALTER TABLE "ContactFormMessage" DROP CONSTRAINT "ContactFormMessage_userId_fkey";
|
||||
+
|
||||
+-- DropForeignKey
|
||||
+ALTER TABLE "File" DROP CONSTRAINT "File_userId_fkey";
|
||||
+
|
||||
+-- DropForeignKey
|
||||
+ALTER TABLE "GptResponse" DROP CONSTRAINT "GptResponse_userId_fkey";
|
||||
+
|
||||
+-- DropForeignKey
|
||||
+ALTER TABLE "Task" DROP CONSTRAINT "Task_userId_fkey";
|
||||
+
|
||||
+-- AlterTable
|
||||
+ALTER TABLE "Auth" ALTER COLUMN "userId" SET DATA TYPE TEXT;
|
||||
+
|
||||
+-- AlterTable
|
||||
+ALTER TABLE "ContactFormMessage" ALTER COLUMN "userId" SET DATA TYPE TEXT;
|
||||
+
|
||||
+-- AlterTable
|
||||
+ALTER TABLE "File" ALTER COLUMN "userId" SET DATA TYPE TEXT;
|
||||
+
|
||||
+-- AlterTable
|
||||
+ALTER TABLE "GptResponse" ALTER COLUMN "userId" SET DATA TYPE TEXT;
|
||||
+
|
||||
+-- AlterTable
|
||||
+ALTER TABLE "Task" ALTER COLUMN "userId" SET DATA TYPE TEXT;
|
||||
+
|
||||
+-- AlterTable
|
||||
+ALTER TABLE "User" DROP CONSTRAINT "User_pkey",
|
||||
+ALTER COLUMN "id" DROP DEFAULT,
|
||||
+ALTER COLUMN "id" SET DATA TYPE TEXT,
|
||||
+ADD CONSTRAINT "User_pkey" PRIMARY KEY ("id");
|
||||
+DROP SEQUENCE "User_id_seq";
|
||||
+
|
||||
+-- CreateIndex
|
||||
+CREATE UNIQUE INDEX "User_email_key" ON "User"("email");
|
||||
+
|
||||
+-- CreateIndex
|
||||
+CREATE UNIQUE INDEX "User_username_key" ON "User"("username");
|
||||
+
|
||||
+-- AddForeignKey
|
||||
+ALTER TABLE "GptResponse" ADD CONSTRAINT "GptResponse_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||
+
|
||||
+-- AddForeignKey
|
||||
+ALTER TABLE "Task" ADD CONSTRAINT "Task_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||
+
|
||||
+-- AddForeignKey
|
||||
+ALTER TABLE "File" ADD CONSTRAINT "File_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||
+
|
||||
+-- AddForeignKey
|
||||
+ALTER TABLE "ContactFormMessage" ADD CONSTRAINT "ContactFormMessage_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE;
|
||||
+
|
||||
+-- AddForeignKey
|
||||
+ALTER TABLE "Auth" ADD CONSTRAINT "Auth_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE CASCADE ON UPDATE CASCADE;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,9 @@
|
||||
--- template/app/src/client/auth/LoginPage.tsx
|
||||
+++ opensaas-sh/app/src/client/auth/LoginPage.tsx
|
||||
@@ -1,8 +1,15 @@
|
||||
import { LoginForm } from 'wasp/client/auth';
|
||||
-import { LoginForm } from 'wasp/client/auth';
|
||||
-import { Link } from 'react-router-dom';
|
||||
+import { LoginForm, useAuth } from 'wasp/client/auth';
|
||||
+import { Redirect, Link } from 'react-router-dom';
|
||||
import { AuthWrapper } from './authWrapper';
|
||||
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
--- template/app/src/server/auth/setUsername.ts
|
||||
+++ opensaas-sh/app/src/server/auth/setUsername.ts
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
export const getEmailUserFields = defineUserSignupFields({
|
||||
username: (data: any) => data.email,
|
||||
- isAdmin: (data: any) => adminEmails.includes(data.email),
|
||||
email: (data: any) => data.email,
|
||||
});
|
||||
|
||||
@@ -13,7 +12,6 @@
|
||||
// instead of ["user"] and access args.profile.username instead
|
||||
email: (data: any) => data.profile.emails[0].email,
|
||||
username: (data: any) => data.profile.login,
|
||||
- isAdmin: (data: any) => adminEmails.includes(data.profile.emails[0].email),
|
||||
});
|
||||
|
||||
export function getGitHubAuthConfig() {
|
||||
@@ -25,7 +23,6 @@
|
||||
export const getGoogleUserFields = defineUserSignupFields({
|
||||
email: (data: any) => data.profile.email,
|
||||
username: (data: any) => data.profile.name,
|
||||
- isAdmin: (data: any) => adminEmails.includes(data.profile.email),
|
||||
});
|
||||
|
||||
export function getGoogleAuthConfig() {
|
||||
9
opensaas-sh/app_diff/src/server/scripts/dbSeeds.ts.diff
Normal file
9
opensaas-sh/app_diff/src/server/scripts/dbSeeds.ts.diff
Normal file
@@ -0,0 +1,9 @@
|
||||
--- template/app/src/server/scripts/dbSeeds.ts
|
||||
+++ opensaas-sh/app/src/server/scripts/dbSeeds.ts
|
||||
@@ -43,5 +43,6 @@
|
||||
datePaid: hasUserPaidOnStripe ? faker.date.between({ from: createdAt, to: lastActiveTimestamp }) : null,
|
||||
checkoutSessionId: hasUserPaidOnStripe ? `cs_test_${faker.string.uuid()}` : null,
|
||||
subscriptionTier: subscriptionStatus ? faker.helpers.arrayElement([TierIds.HOBBY, TierIds.PRO]) : null,
|
||||
+ isMockUser: true,
|
||||
};
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
--- template/app/src/server/scripts/usersSeed.ts
|
||||
+++ opensaas-sh/app/src/server/scripts/usersSeed.ts
|
||||
@@ -26,6 +26,7 @@
|
||||
credits: faker.number.int({ min: 0, max: 3 }),
|
||||
checkoutSessionId: null,
|
||||
subscriptionTier: faker.helpers.arrayElement([TierIds.HOBBY, TierIds.PRO]),
|
||||
+ isMockUser: true,
|
||||
};
|
||||
return user;
|
||||
}
|
||||
Reference in New Issue
Block a user