-
-
Notifications
You must be signed in to change notification settings - Fork 579
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add cookie consent banner and tests (#163)
* add cookie consent banner and tests * update docs and app_diff * Create .env.client.diff * Update main.wasp.diff * add migrattion_lock diff again * small typo fixes
- Loading branch information
Showing
21 changed files
with
511 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
# There is no need to pollute the template with the migrations. | ||
template/app/migrations/ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
opensaas-sh/app_diff/migrations/20240605151848_remove_has_paid/migration.sql.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- template/app/migrations/20240605151848_remove_has_paid/migration.sql | ||
+++ opensaas-sh/app/migrations/20240605151848_remove_has_paid/migration.sql | ||
@@ -0,0 +1,8 @@ | ||
+/* | ||
+ Warnings: | ||
+ | ||
+ - You are about to drop the column `hasPaid` on the `User` table. All the data in the column will be lost. | ||
+ | ||
+*/ | ||
+-- AlterTable | ||
+ALTER TABLE "User" DROP COLUMN "hasPaid"; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- 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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.