https://github.com/antonosika/text-diff-version
https://github.com/antonosika/text-diff-version
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/antonosika/text-diff-version
- Owner: AntonOsika
- Created: 2024-06-18T15:35:35.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-22T13:12:52.000Z (over 1 year ago)
- Last Synced: 2025-02-17T02:16:06.865Z (8 months ago)
- Language: JavaScript
- Size: 204 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# text-diff-version
I want a textbox and a "version history" on the left, see screenshot
I want to show the diff compared to the last version inline, with red for "removed" characters and green for added characters.
I think we need the diff npm package.
When user clicks "accept", a new version will be created, and comparison will switch to latest version
Use localstorage for versions for now
## Collaborate with GPT Engineer
This is a [gptengineer.app](https://gptengineer.app)-synced repository 🌟🤖
Changes made via gptengineer.app will be committed to this repo.
If you clone this repo and push changes, you will have them reflected in the GPT Engineer UI.
## Tech stack
This project is built with React and Chakra UI.
- Vite
- React
- Chakra UI## Setup
```sh
git clone https://github.com/GPT-Engineer-App/text-diff-version.git
cd text-diff-version
npm i
``````sh
npm run dev
```This will run a dev server with auto reloading and an instant preview.
## Requirements
- Node.js & npm - [install with nvm](https://github.com/nvm-sh/nvm#installing-and-updating)