-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Forgejo/Codeberg backend with editorial workflow #7726
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
Open
razzeee
wants to merge
2
commits into
decaporg:main
Choose a base branch
from
razzeee:forgejo-workflow
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+4,331
−3
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
| backend: | ||
| name: forgejo | ||
| app_id: a582de8c-2459-4e5f-b671-80f99a0592cc | ||
| branch: master | ||
| repo: owner/repo | ||
|
|
||
| media_folder: static/media | ||
| public_folder: /media | ||
| collections: | ||
| - name: posts | ||
| label: Posts | ||
| label_singular: 'Post' | ||
| folder: content/posts | ||
| create: true | ||
| slug: '{{year}}-{{month}}-{{day}}-{{slug}}' | ||
| fields: | ||
| - label: Template | ||
| name: template | ||
| widget: hidden | ||
| default: post | ||
| - label: Title | ||
| name: title | ||
| widget: string | ||
| - label: 'Cover Image' | ||
| name: 'image' | ||
| widget: 'image' | ||
| required: false | ||
| - label: Publish Date | ||
| name: date | ||
| widget: datetime | ||
| format: 'YYYY-MM-DDTHH:mm' | ||
| default: 1970-01-01T01:00 | ||
| - label: Description | ||
| name: description | ||
| widget: text | ||
| - label: Category | ||
| name: category | ||
| widget: string | ||
| - label: Body | ||
| name: body | ||
| widget: markdown | ||
| - label: Tags | ||
| name: tags | ||
| widget: list | ||
| - name: pages | ||
| label: Pages | ||
| label_singular: 'Page' | ||
| folder: content/pages | ||
| create: true | ||
| slug: '{{slug}}' | ||
| fields: | ||
| - label: Template | ||
| name: template | ||
| widget: hidden | ||
| default: page | ||
| - label: Title | ||
| name: title | ||
| widget: string | ||
| - label: Draft | ||
| name: draft | ||
| widget: boolean | ||
| default: true | ||
| - label: Body | ||
| name: body | ||
| widget: markdown | ||
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,41 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <meta charset="utf-8" /> | ||
|
|
||
| <title>Decap CMS Development Test</title> | ||
| </head> | ||
| <body> | ||
| <script src="/dist/decap-cms.js"></script> | ||
| <script> | ||
| var PostPreview = createClass({ | ||
| render: function() { | ||
| var entry = this.props.entry; | ||
| return h( | ||
| 'div', | ||
| {}, | ||
| h('div', { className: 'cover' }, h('h1', {}, entry.getIn(['data', 'title']))), | ||
| h('p', {}, h('small', {}, 'Written ' + entry.getIn(['data', 'date']))), | ||
| h('div', { className: 'text' }, this.props.widgetFor('body')), | ||
| ); | ||
| }, | ||
| }); | ||
|
|
||
| var PagePreview = createClass({ | ||
| render: function() { | ||
| var entry = this.props.entry; | ||
| return h( | ||
| 'div', | ||
| {}, | ||
| h('div', { className: 'cover' }, h('h1', {}, entry.getIn(['data', 'title']))), | ||
| h('p', {}, h('small', {}, 'Written ' + entry.getIn(['data', 'date']))), | ||
| h('div', { className: 'text' }, this.props.widgetFor('body')), | ||
| ); | ||
| }, | ||
| }); | ||
|
|
||
| CMS.registerPreviewTemplate('posts', PostPreview); | ||
| CMS.registerPreviewTemplate('pages', PagePreview); | ||
| </script> | ||
| </body> | ||
| </html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| # Change Log | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've emptied the changelogs, as I'm unsure when they get filled |
||
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,36 @@ | ||
| { | ||
| "name": "decap-cms-backend-forgejo", | ||
| "description": "Forgejo backend for Decap CMS", | ||
| "version": "3.3.0", | ||
| "repository": "https://github.com/decaporg/decap-cms/tree/main/packages/decap-cms-backend-forgejo", | ||
| "bugs": "https://github.com/decaporg/decap-cms/issues", | ||
| "license": "MIT", | ||
| "module": "dist/esm/index.js", | ||
| "main": "dist/decap-cms-backend-forgejo.js", | ||
| "keywords": [ | ||
| "decap-cms", | ||
| "backend", | ||
| "forgejo" | ||
| ], | ||
| "sideEffects": false, | ||
| "scripts": { | ||
| "develop": "npm run build:esm -- --watch", | ||
| "build": "cross-env NODE_ENV=production webpack", | ||
| "build:esm": "cross-env NODE_ENV=esm babel src --out-dir dist/esm --ignore \"**/__tests__\" --root-mode upward --extensions \".js,.jsx,.ts,.tsx\"" | ||
| }, | ||
| "dependencies": { | ||
| "js-base64": "^3.0.0", | ||
| "semaphore": "^1.1.0" | ||
| }, | ||
| "peerDependencies": { | ||
| "@emotion/react": "^11.11.1", | ||
| "@emotion/styled": "^11.11.0", | ||
| "decap-cms-lib-auth": "^3.0.0", | ||
| "decap-cms-lib-util": "^3.0.0", | ||
| "decap-cms-ui-default": "^3.0.0", | ||
| "immutable": "^3.7.6", | ||
| "lodash": "^4.17.11", | ||
| "prop-types": "^15.7.2", | ||
| "react": "^19.1.0" | ||
| } | ||
| } |
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is copied from the gittea backend and changed in name. I'm unsure how this works/it will likely need changes.