-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ec6560c
commit b4cd691
Showing
17 changed files
with
1,352 additions
and
607 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
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
export const generalMenu =({postObject})=> [ | ||
{ | ||
type: 'date', | ||
label: 'Publish Date', | ||
initialValue: null, | ||
adminOnly:false, | ||
onValueChange: (value) => { | ||
// Handle the date change | ||
console.log('Date changed:', value); | ||
}, | ||
description: 'Set a publish date.', | ||
}, | ||
{ | ||
type: 'select', | ||
label: 'Status', | ||
initialValue: '', | ||
adminOnly:false, | ||
onValueChange: (value) => { | ||
// Handle the post status change | ||
console.log('Post status changed:', value); | ||
}, | ||
options: [ | ||
{ label: 'Draft', value: 'draft' }, | ||
{ label: 'Pending', value: 'pending' }, | ||
{ label: 'Publish', value: 'publish' }, | ||
], | ||
description: '(draft, pending, or publish)', | ||
}, | ||
{ | ||
type: 'url', | ||
label: 'Url', | ||
initialValue: '', | ||
onValueChange: (value) => { | ||
// Handle the value change, e.g., update parent component state | ||
console.log('Slug changed:', value); | ||
}, | ||
description: 'Url slug for your post', | ||
}, | ||
{ | ||
type: 'number', | ||
label: 'Tier', | ||
initialValue: '', | ||
onValueChange: (value) => { | ||
// Handle the tier change | ||
console.log('Tier changed:', value); | ||
}, | ||
description: '(1-5 for quality ranking)', | ||
}, | ||
]; | ||
|
||
export const seoMenu = [ | ||
{ | ||
type: 'text', | ||
field:'seo.opengraphTitle', | ||
label: 'Meta Title', | ||
initialValue: '', | ||
onValueChange: (value) => { | ||
// Handle the meta title change | ||
console.log('Meta title changed:', value); | ||
}, | ||
description: 'SEO title for the post (max 60 characters)', | ||
}, | ||
{ | ||
type: 'description', | ||
field:'seo.metaDesc', | ||
label: 'Meta Description', | ||
initialValue: '', | ||
onValueChange: (value) => { | ||
// Handle the meta description change | ||
console.log('Meta description changed:', value); | ||
}, | ||
description: 'SEO description for the post (max 160 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
Oops, something went wrong.