-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: scheduled publish / unpublish (#10203)
Adds a feature to allow editors to schedule publish / unpublish events in the future. Must be enabled by setting `versions.drafts.schedulePublish: true` in your Collection / Global configs. https://github.com/user-attachments/assets/ca1d7a8b-946a-4eac-b911-c2177dbe3b1c Todo: - [x] Translate new i18n keys - [x] Wire up locale-specific scheduled publish / unpublish actions
- Loading branch information
Showing
58 changed files
with
1,491 additions
and
194 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
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
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,7 +1,7 @@ | ||
import { APIError } from './APIError.js' | ||
|
||
export class DuplicateCollection extends APIError { | ||
constructor(propertyName: string, duplicates: string[]) { | ||
super(`Collection ${propertyName} already in use: "${duplicates.join(', ')}"`) | ||
constructor(propertyName: string, duplicate: string) { | ||
super(`Collection ${propertyName} already in use: "${duplicate}"`) | ||
} | ||
} |
Oops, something went wrong.