Commit Graph

78 Commits

Author SHA1 Message Date
Eric Zhang 14dde3c283 Update README to reflect new Fly.io hosting 2023-01-02 00:37:50 -06:00
Eric Zhang 7536d696b7 Fix badge in README 2023-01-01 15:09:09 -06:00
Eric Zhang e4c4de5303
Add og:title and og:description meta tags (#59) 2022-12-10 17:50:34 -05:00
Heyang Zhou 1e9b972585
Improve persistence logic (#55)
* Improve persistence logic

* INSERT with ON CONFLICT

* specify patch version of `rand`

* fix gen_range
2022-10-02 04:10:35 +00:00
Eric Zhang 124ff15d3d Only log in to DockerHub on `push` event 2022-02-19 10:49:52 -05:00
Eric Zhang 66f1f9d05a
Add additional support for Monaco basic languages (#35) 2022-01-02 23:38:41 +00:00
Eric Zhang 2caf088167
Add multi-platform build support for linux/arm64 (#32)
* Add multi-platform build support for linux/arm64

* Update README and simplify QEMU platforms

* Update frontend dependencies and clippy lints (#33)

* Only build ARM64 images on pushes to main
2021-12-27 17:16:57 -05:00
Eric Zhang 7cc5b9c939
Update frontend dependencies and clippy lints (#33) 2021-12-27 20:21:00 +00:00
Eric Zhang 4ac57685c1
Update dependencies and switch build to Vite (#30) 2021-11-12 02:38:14 -05:00
Eric Zhang 204b084e62
Fix Docker build and add multi-platform support (#29)
* Specify node:lts-alpine tag to fix build error

* Attempt to remove dependency on rust-musl-builder

* Remove rustpad-server specifier
2021-11-11 01:45:04 -05:00
Eric Zhang ae3f9658ad
Update README.md 2021-11-10 20:34:37 -05:00
Eric Zhang c98a6d7c4e
Enable state persistence through SQLite (#28)
* Add Docker build CI to pull requests

* Add SQLite document persistence through SQLx

* Update README to describe configuration variables

* Minor changes to README wording

* Update image size estimate listed in README

* Update frontend dependencies

* Add direct database tests and restructure code

* Clarify use of `SQLITE_URI` in Docker contexts
2021-10-21 00:40:46 -04:00
Eric Zhang 8f762fa085 Add Shields.io badges to the README 2021-10-19 15:54:39 -04:00
Eric Zhang 503a189893
Optimization: debounce user cursor updates by 20ms (#26)
* Optimization: debounce user cursor updates by 20ms

This noticeably improves performance on initial page load for documents
with large histories, as previously, the user sent one cursor update message
for every past edit to the document upon joining. Now, they only send a
single cursor update at the end of the update sequence, due to the
20ms debouncing operation.

* Update NPM dependency versions
2021-09-18 23:10:07 -04:00
Eric Zhang 403f36cd36 Fix broken build on automated tests from #18 2021-07-15 20:22:23 -05:00
Orhun Parmaksız f50f987626
Allow configuring the number of days to expire documents (#18)
* Allow configuring the number of days to expire documents

* Update server tests about server data

* Update test_cleanup for testing a different expiry value

* Remove unnecessary Arc<> while passing expiry_days to cleaner

* Rename `ServerData` to `ServerConfig`

* Update tests to rename the `ServerData`

* Update rustpad-server/tests/cleanup.rs

Co-authored-by: Eric Zhang <ekzhang1@gmail.com>
2021-07-15 19:19:43 -04:00
Eric Zhang c0cd505fc6 Add media section to README 2021-07-12 00:26:33 -05:00
Eric Zhang 2773b44503 Fix color of language options in Windows dark mode 2021-06-24 18:55:12 -05:00
Eric Zhang 53b5f0b972
Add support for full Unicode character set (#15)
* Add support for full Unicode character set

* Add server tests for unicode support
2021-06-24 19:46:55 -04:00
Eric Zhang f4e4a79798 Add an `/api/stats` endpoint for personal use 2021-06-08 16:14:55 -05:00
Amogh Lele 394163955c
Add dark mode functionality (#4)
* feat: add dark mode functionality

Signed-off-by: SphericalKat <amolele@gmail.com>

* feat: add dark mode support to user popover

Signed-off-by: SphericalKat <amolele@gmail.com>

* refactor(ui): capitalize dark mode heading to be more consistent

Signed-off-by: SphericalKat <amolele@gmail.com>

* refactor(ui): generate colors with higher luminosity in dark mode

Signed-off-by: SphericalKat <amolele@gmail.com>

* refactor(ui): fix buttons looking weird in dark mode on hover

Signed-off-by: SphericalKat <amolele@gmail.com>

* refactor(ui): use darker colors for selections

Signed-off-by: SphericalKat <amolele@gmail.com>

* refactor(ui): make button easier to see in dark mode

Signed-off-by: SphericalKat <amolele@gmail.com>

* Make minor changes to dark mode styling

* Editor background is dark while loading
* Buttons look better when hovering
* Reduce duplication by moving color to top-level element
* Adjust contrast in top-bar colors

Co-authored-by: Eric Zhang <ekzhang1@gmail.com>
2021-06-08 16:43:39 -04:00
Eric Zhang f19d11f555 Use `history.replaceState` on initial redirect 2021-06-05 16:21:46 -05:00
Eric Zhang 301faa43e2 Update README with new screenshot 2021-06-05 15:14:30 -05:00
Eric Zhang 5d88fd522b Adjust button styling 2021-06-05 00:51:55 -05:00
Eric Zhang 64d0b632ac Implement proper transformation for cursors 2021-06-05 00:29:25 -05:00
Eric Zhang 211e567275 Implement MVP of remote selections 2021-06-04 23:40:52 -05:00
Eric Zhang 130564bec6 Stop redirecting all routes to `index.html` 2021-06-04 18:51:09 -05:00
Eric Zhang 8257e92589 Frontend updates and refactoring 2021-06-04 16:14:16 -05:00
Eric Zhang 68216a962b Fix frontend bug in persisting state 2021-06-04 15:37:17 -05:00
Eric Zhang 9a0692f9ff Limit size of documents to 100 KB 2021-06-04 15:05:24 -05:00
Eric Zhang 8def441972 Add user presence to the frontend 2021-06-04 14:34:06 -05:00
Eric Zhang 56184b569b Eliminate the lost wakeups problem 2021-06-04 12:12:36 -05:00
Eric Zhang 7bf644039e Add user presence support to the server 2021-06-04 00:42:59 -05:00
Eric Zhang 4a265109e4 Basic SEO 2021-06-03 23:57:01 -05:00
Eric Zhang a4655db855 Update README and add image 2021-06-03 18:55:47 -05:00
Eric Zhang 2e2fb39c33 Add example document from Rust code 2021-06-03 17:53:59 -05:00
Eric Zhang ff9069eda5 Add support for setting language 2021-06-03 17:24:48 -05:00
Eric Zhang 06445802da Show confirmation when there are unsaved changes 2021-06-03 16:19:00 -05:00
Eric Zhang efcc9591ff Add editor topbar for more UI mimicry 2021-06-03 15:55:38 -05:00
Eric Zhang f8adee6b8f Add MIT license 2021-06-03 14:54:53 -05:00
Eric Zhang 1a626bb228 Display GitHub commit hash in interface 2021-06-03 14:39:32 -05:00
Eric Zhang cdde359332 Clean up old documents after 24 hours 2021-06-03 14:16:29 -05:00
Eric Zhang 3b14671206 Add desynchronization after repeated failures 2021-06-03 13:12:57 -05:00
Eric Zhang 7b00ffdd85 Fix bug that was causing clients to disconnect 2021-06-03 01:56:37 -05:00
Eric Zhang 59f434ca96 Re-add CI and switch back to DigitalOcean 2021-06-03 01:52:22 -05:00
Eric Zhang 21e15b76ed Remove GitHub Actions, switch to gcloud 2021-06-03 00:36:53 -05:00
Eric Zhang 8b3b1b8163 Switch to using GCR and Cloud Run 2021-06-03 00:27:11 -05:00
Eric Zhang 7e763556a5 Fix a bug in multiple-selection edits 2021-06-02 23:56:23 -05:00
Eric Zhang 40a28d4850 Implement multiplexing for editors 2021-06-02 23:20:34 -05:00
Eric Zhang e97e19c1e3 Implement MVP editor, still some bugs 2021-06-02 22:57:00 -05:00