-
Notifications
You must be signed in to change notification settings - Fork 230
Small feature requests, enhancements and bug fixes #750
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
3508b7f
open content by default
d686479
bugfix: Left alignment on mobile for FAQ block
8f4b3cc
wider community post popup for better reading
8dfb1db
invalidate domain cache on theme switch
f48b08c
Better error handling when media operations fail while updating page
56b3c65
bug fix: lists don't render in text block of email editor
ec20b1b
Code injection blocks can be completely reset
7a55b34
Preview is disabled for Quiz lessons
4f9542b
Merge branch 'main' of github.com:codelitdev/courselit into small-fix…
55b8aa6
Page model repo made private
ef61f88
workflow script upgrade to remove NPM token
1c873f9
bugfix: Left alignment on mobile for Content page block
bc6fadc
changeset for email-editor
5bfd790
Added migration for disabling preview of quizzes
424d558
Re-worked social image management
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,5 @@ | ||
| --- | ||
| "@courselit/email-editor": patch | ||
| --- | ||
|
|
||
| Bug fix: Lists don't render |
This file contains hidden or 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
39 changes: 39 additions & 0 deletions
39
apps/web/.migrations/28-03-26_00-00-set-quiz-requires-enrollment.js
This file contains hidden or 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,39 @@ | ||
| /** | ||
| * Sets `requiresEnrollment` to true for all quiz lessons. | ||
| * | ||
| * Usage: | ||
| * DB_CONNECTION_STRING=<mongodb-connection-string> node 28-03-26_00-00-set-quiz-requires-enrollment.js | ||
| */ | ||
| import mongoose from "mongoose"; | ||
|
|
||
| const DB_CONNECTION_STRING = process.env.DB_CONNECTION_STRING; | ||
|
|
||
| if (!DB_CONNECTION_STRING) { | ||
| throw new Error("DB_CONNECTION_STRING is not set"); | ||
| } | ||
|
|
||
| (async () => { | ||
| try { | ||
| await mongoose.connect(DB_CONNECTION_STRING); | ||
|
|
||
| const db = mongoose.connection.db; | ||
| if (!db) { | ||
| throw new Error("Could not connect to database"); | ||
| } | ||
|
|
||
| const result = await db.collection("lessons").updateMany( | ||
| { type: "quiz" }, | ||
| { | ||
| $set: { | ||
| requiresEnrollment: true, | ||
| }, | ||
| }, | ||
| ); | ||
|
|
||
| console.log( | ||
| `✅ Updated quiz lessons. Matched: ${result.matchedCount}, Modified: ${result.modifiedCount}`, | ||
| ); | ||
| } finally { | ||
| await mongoose.connection.close(); | ||
| } | ||
| })(); |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.