-
Notifications
You must be signed in to change notification settings - Fork 1
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
Nikita Kozlov
committed
Mar 29, 2023
1 parent
ad77c44
commit 48aed5a
Showing
12 changed files
with
115 additions
and
120 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
# cms | ||
# cms |
This file was deleted.
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import type { CMS } from 'netlify-cms-core' | ||
import type { CMS } from "netlify-cms-core"; | ||
|
||
declare global { | ||
var CMS: CMS | ||
var CMS: CMS; | ||
} |
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export * from './customDirectiveUtils'; | ||
export * from './initialize'; | ||
export * from './table'; | ||
export * from "./customDirectiveUtils"; | ||
export * from "./initialize"; | ||
export * from "./table"; |
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,46 +1,46 @@ | ||
import getConfig from 'next/config' | ||
import getConfig from "next/config"; | ||
|
||
const { publicRuntimeConfig } = getConfig() | ||
const { publicRuntimeConfig } = getConfig(); | ||
|
||
export const initializeCMS = () => { | ||
CMS.init({ | ||
config: { | ||
backend: { | ||
name: "github", | ||
repo: publicRuntimeConfig.githubRepo, | ||
branch: publicRuntimeConfig.githubBranch, | ||
base_url: publicRuntimeConfig.baseUrl, | ||
}, | ||
publish_mode: "editorial_workflow", | ||
show_preview_links: false, | ||
media_folder: "public/img", | ||
public_folder: "img", | ||
collections: [ | ||
{ | ||
name: "pages", | ||
label: "Pages", | ||
files: [ | ||
{ | ||
name: "scorecard", | ||
label: "Scorecard", | ||
description: "Scorecard page", | ||
file: "content/scorecard.md", | ||
fields: [ | ||
{ label: "Title", name: "title", widget: "string" }, | ||
{ label: "Description", name: "description", widget: "text" }, | ||
{ | ||
label: "Body", | ||
name: "body", | ||
widget: "markdown", | ||
buttons: ["heading-two", "link"], | ||
editor_components: ["table"], | ||
modes: ["rich_text"], | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
CMS.init({ | ||
config: { | ||
backend: { | ||
name: "github", | ||
repo: publicRuntimeConfig.githubRepo, | ||
branch: publicRuntimeConfig.githubBranch, | ||
base_url: publicRuntimeConfig.baseUrl, | ||
}, | ||
}); | ||
} | ||
publish_mode: "editorial_workflow", | ||
show_preview_links: false, | ||
media_folder: "public/img", | ||
public_folder: "img", | ||
collections: [ | ||
{ | ||
name: "pages", | ||
label: "Pages", | ||
files: [ | ||
{ | ||
name: "scorecard", | ||
label: "Scorecard", | ||
description: "Scorecard page", | ||
file: "content/scorecard.md", | ||
fields: [ | ||
{ label: "Title", name: "title", widget: "string" }, | ||
{ label: "Description", name: "description", widget: "text" }, | ||
{ | ||
label: "Body", | ||
name: "body", | ||
widget: "markdown", | ||
buttons: ["heading-two", "link"], | ||
editor_components: ["table"], | ||
modes: ["rich_text"], | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
}); | ||
}; |
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