Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

CoderLearningCode/gitwriter

Open more actions menu
 
 

Repository files navigation

可以借鉴版本记录

📝 GitWriter

Build status Netlify status Dependencies GitHub Vulnerabilities

GitWriter is the easiest way to version control your thoughts. Write in Markdown, auto save every minute like Google Docs. Easy.

⭐ Usage

Login with GitHub, choose your repo and file, and just start writing.

The service is frontend-only and only uses local storage for your token. Since GitHub's OAuth endpoints don't support CORS, it also uses Cors Anywhere.

Screenshot

🛠 Development

Start development server with:

yarn serve

XSS vulnerability

Because GitWriter uses simplemde, it's open to XSS: CVE-2018-19057. Since you're writing Markdown which compiles to HTML, you can add JavaScript on things like the img tag's onerror attribute. However, GitHub strips any JavaScript from Markdown files, so it will only be executed on the GitWriter site, not on GitHub.

Todo

  • Autosaving
  • Add support for saving every 2 minutes if it's dirty (interval, not just on text change)
  • Before unloading the page, make sure it's saved
  • Use localStorage for every change, so you don't lose anything
  • Better auto-commit message
  • Add login with GitHub (integrate GitHub App, not personal token)
  • Show all repos, support filter/search

License

MIT

About

📝 Version control your thoughts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vue 86.2%
  • TypeScript 7.9%
  • HTML 3.4%
  • JavaScript 2.5%
Morty Proxy This is a proxified and sanitized view of the page, visit original site.