Skip to content
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

Commit box #123

Merged
merged 15 commits into from
Jul 22, 2024
Merged

Commit box #123

merged 15 commits into from
Jul 22, 2024

Conversation

TheKrol
Copy link
Contributor

@TheKrol TheKrol commented Jul 18, 2024

Added a commit box with functionality

  1. Changes cannot be pushed if none occurred
  2. Box will destroy upon changing article
  3. 500-character limit for commit message

@TheKrol
Copy link
Contributor Author

TheKrol commented Jul 18, 2024

Fixes #122

frontend/src/lib/components/Editor.svelte Outdated Show resolved Hide resolved
frontend/src/lib/components/Editor.svelte Outdated Show resolved Hide resolved
frontend/src/lib/components/Editor.svelte Outdated Show resolved Hide resolved
frontend/src/lib/components/Editor.svelte Outdated Show resolved Hide resolved
frontend/src/lib/components/Editor.svelte Outdated Show resolved Hide resolved
match state.git.put_doc(
&body.path,
&body.contents,
&format!("{} updated {}", author.username, body.path),
&final_commit_message,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good way to do this

@TheKrol
Copy link
Contributor Author

TheKrol commented Jul 19, 2024

I will fix this tomorrow, Thanks for the feedback

@zleyyij zleyyij merged commit 8ba5847 into main Jul 22, 2024
3 checks passed
@zleyyij zleyyij deleted the CommitBox branch July 22, 2024 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants