Commit Graph

  • c9132e836a feat: markdown rendering /m/<id> feature/markdown Aleksander Cynarski 2026-04-21 16:24:08 +02:00
  • a03bb47b80 Fix broken link in readme.md master Willem De Bie 2024-04-08 10:11:00 -04:00
  • 91be122104 add a link to the raw paste from the pretty paste ellotheth 2023-10-13 14:25:11 +02:00
  • e8fac0f0c8 clippy fixes ellotheth 2023-08-17 22:09:05 +02:00
  • 3598e6bd91 add the upload button to the man page ellotheth 2023-08-17 21:53:01 +02:00
  • 341da99c36 handle uploads from the upload button ellotheth 2023-08-17 21:43:24 +02:00
  • fc821be03f style an upload button for phones/tablets ellotheth 2023-08-17 21:02:28 +02:00
  • 3bbd64611f fix: corrected spelling of "minimalistic" Jonas Geiler 2022-07-23 18:17:07 +02:00
  • 24c7f43608 Fix typo: pretter -> pretty Leonora Tindall 2022-04-26 11:09:59 -05:00
  • 1e0e3b319c bin v2.2.1 Gunwant Jain 2022-04-23 05:29:35 +05:30
  • 2e84ba2079 pretty.css: add media queries to move pastes down on phones Gunwant Jain 2022-04-23 04:55:03 +05:30
  • c8637b04dd Index: Add option to remove /client help Gunwant Jain 2022-04-23 04:39:52 +05:30
  • 78f8398382 webclient: tab key support Simon LEONARD 2022-03-17 10:31:57 +01:00
  • 0305742d6d Apply clippy suggestions Use the latest rust version Gunwant Jain 2022-03-15 14:03:08 +05:30
  • efc1a9df58 bin v2.2.0 Gunwant Jain 2022-02-08 02:00:20 +05:30
  • 3a5212e09c tools/prepush: apply the formatting instead of checking it Gunwant Jain 2022-02-08 01:51:39 +05:30
  • 08ec2cbecb Provide Cache-Control Headers Gunwant Jain 2022-02-07 03:05:54 +05:30
  • 884be16dc4 Use / for raw pastes Gunwant Jain 2022-02-07 01:59:41 +05:30
  • 2ab7ddb9c8 Add cache-busting and server headers with a wrapper. Leonora Tindall 2022-02-04 13:47:30 -06:00
  • 55ed495b83 contributing: add info in the readme, add a pr template Gunwant Jain 2022-02-03 01:23:57 +05:30
  • 022f3203f1 Merge pull request #1 from NoraCodes/nora/redirect_on_invalid_utf8 Gunwant Jain 2022-02-03 00:51:54 +05:30
  • 9b8db58768 Merge pull request #4 from NoraCodes/nora/prepush-hook Gunwant Jain 2022-02-03 00:29:50 +05:30
  • 447221ca16 Add pre-push script for format and clippy Leonora Tindall 2022-02-02 12:56:41 -06:00
  • 5aafe2500a Redirect on invalid UTF-8 in /p/ Leonora Tindall 2022-01-31 20:49:05 -06:00
  • ea144a1024 fix loading multi-dot extensions Old slug rules for syntax highlighted pastes did not allow for a multi-dot paste. This fixes it Gunwant Jain 2022-01-25 15:16:35 +05:30
  • eff3f0dbd6 pretty: add softwrapping to pastes Gunwant Jain 2022-01-25 04:15:01 +05:30
  • dff3e673c2 flyci: detach daemon after deployment Gunwant Jain 2022-01-25 02:41:16 +05:30
  • 6104639596 Add a ton of new syntaxes Gunwant Jain 2022-01-25 02:24:48 +05:30
  • 9c986c1327 fonts: switch to serving fonts from the server Gunwant Jain 2022-01-24 16:08:25 +05:30
  • 1950e89cbc fly.toml: using mapped env variables is a PITA on TOML Gunwant Jain 2022-01-24 13:58:11 +05:30
  • ab99405c89 Showcase the demo version Gunwant Jain 2022-01-21 13:38:06 +05:30
  • fa9a97ce9c Add automated Fly.io deployments Gunwant Jain 2022-01-21 12:36:36 +05:30
  • 54aa737661 bin: v2.0.0 Gunwant Jain 2022-01-20 16:52:21 +05:30
  • 78e3319d66 buildci: save compute time by singling pre-build steps Gunwant Jain 2022-01-20 05:32:52 +05:30
  • a6709a1307 buildci: generalise for all push events and PRs This means that tags are included now Gunwant Jain 2022-01-20 05:21:25 +05:30
  • 3968796a49 github: add buildci and its helper script Gunwant Jain 2022-01-20 04:33:33 +05:30
  • 689db9548a src: cargo clippy and fmt the project Gunwant Jain 2022-01-20 03:44:01 +05:30
  • 3ed972e672 github: add docker ci Gunwant Jain 2022-01-19 21:29:59 +05:30
  • 8e23ec4c97 readme: add gifs Gunwant Jain 2022-01-19 18:52:10 +05:30
  • edc247b558 Templates: fix the content type of templates Templating is weird af in Rocket. Look into 3a541ae for more. The content-type of the rendering is determined by the extension of the template name. Gunwant Jain 2022-01-19 13:37:07 +05:30
  • a11321c251 readme: major overhaul Gunwant Jain 2022-01-19 02:11:23 +05:30
  • 3a541aed23 Templates: embed the templates in-binary Rocket's templating is not exactly friendly when it comes to embedding in-binary. Rocket's template fairing requires a template_dir directory pointing to the directory containing templates. A quick workaround to this would be to have custom fairings with template_dir merged with the value . But in bare-metal scenarios like what docker's scratch image mimics, we don't exactly have a '.' file, so instead for this very project, I have to point the template_dir to the upload folder, which is created by bin on execution. Checkout the Dockerfile for more info Gunwant Jain 2022-01-18 21:33:03 +05:30
  • 78b4213c62 cargo-fmt the src Gunwant Jain 2022-01-18 16:18:22 +05:30
  • ce001c6a79 Args: implement upload arg Gunwant Jain 2022-01-18 15:48:21 +05:30
  • 6961ed59b4 main: Add arguments and the respective parsing Gunwant Jain 2022-01-18 15:47:54 +05:30
  • f35bad75e5 pretty: embed the theme in-binary Gunwant Jain 2022-01-18 13:13:45 +05:30
  • 892e84348d static_files: embed files in-binary Gunwant Jain 2022-01-18 12:16:07 +05:30
  • e91393f63c cli client: update and move to contrib Gunwant Jain 2022-01-18 10:19:28 +05:30
  • e17a5f7cdb Docker, Cargo: Add multi-arch builds for arm64, x86_64 Builds static binaries instead to be runnable from scratch. This eases the build process, as we don't have to depend on docker's buildx. Now images for both arm64 and x86_64 can be built on x86_64 platform alone. Gunwant Jain 2022-01-18 10:03:04 +05:30
  • 33583b71d4 cargo update, fmt and add rust_embed crate Gunwant Jain 2022-01-16 23:03:53 +05:30
  • 0359a8ef52 docker: Use multi-stage docker builds Gunwant Jain 2022-01-16 22:04:05 +05:30
  • 449f0c38a9 PrettyPaste: Add Fork and New button Gunwant Jain 2022-01-16 13:21:15 +05:30
  • 372bbf28d3 Use Iosevka instead of Fira Code Gunwant Jain 2022-01-16 09:52:00 +05:30
  • 53d96865ad UI: Use a spacier layout Gunwant Jain 2021-12-26 21:01:56 +05:30
  • 3e10267caf Add visual cue for uploading files Unfortunately, since fetch API does not support getting progress while perfoming uploads, we cannot have a more dynamic cue Gunwant Jain 2021-12-26 09:45:53 +05:30
  • cca3a8bec9 refactor code and add dragover visual cue Gunwant Jain 2021-12-26 08:23:18 +05:30
  • a9dc9452fc index: increase drag area to the entire form Gunwant Jain 2021-07-13 21:58:04 +05:30
  • 04c992e8b3 client: write a simple client for the pastebin Gunwant Jain 2021-07-13 21:20:54 +05:30
  • cb8e210acb dockerfile: shaving off old bits; use rust stable now Building multi-layered containers gave weird 500 errors. I think they were permission based but don't have the time to look into it. Gunwant Jain 2021-07-13 04:28:48 +05:30
  • 80c6809414 pretty: remove dead code Gunwant Jain 2021-07-13 04:28:27 +05:30
  • c6262e9e87 add static files we have a favicon now :') Gunwant Jain 2021-07-13 03:40:58 +05:30
  • 1175a57539 index: Add select for choosing languages when pasting Gunwant Jain 2021-07-13 01:38:22 +05:30
  • fbc92b669d index: drag & drop redirects to the syntax highlighted pages Gunwant Jain 2021-07-11 15:21:37 +05:30
  • 9c5a3af128 refactor: bring in the modules Gunwant Jain 2021-07-11 03:07:50 +05:30
  • 8a3b29a0ef templates/index: update the description Give a quick rundown of how to use the pastebin Gunwant Jain 2021-07-08 21:57:59 +05:30
  • 7726a0e0ee templates, main: copy and paste images Make use of the Clipboard API. Also vivi dis is for you Gunwant Jain 2021-07-08 19:48:05 +05:30
  • 0cd0d24549 templates: add drag and drop func, use ayu dark Use a more man-like description Gunwant Jain 2021-07-08 18:49:39 +05:30
  • e77c1a57e4 cleaned up code, using &str instead of RawStr Gunwant Jain 2021-07-08 18:48:19 +05:30
  • 78d046afbd main: add more routes for pretty pasting cleaned up code and added a route for signifying code language explicitly at /p/<filename>.<ext> Also async-ified the server after upgrading Rocket to 0.5-rc1 Gunwant Jain 2021-07-08 18:43:47 +05:30
  • 150bade1e5 css: change placeholder and made the UI generally tighter Also I have encouraged the user to change their monospace font accordingly for the best personal satisfaction. Gunwant Jain 2021-06-19 08:02:41 +05:30
  • 1f84fd28b9 implement drag and drop As a consquence of better UX, '/' post handler will now redirect instead of returning a String. Gunwant Jain 2021-06-19 06:42:22 +05:30
  • 8ddca50c55 base.html: re-add scroll bars Gunwant Jain 2021-05-15 14:29:02 +05:30
  • 2e4b929fb5 cargo fix the project Gunwant Jain 2021-01-21 16:34:59 +05:30
  • 5cb34d6770 license: lgpl license Gunwant Jain 2021-01-11 20:41:14 +05:30
  • 594f89385b templates: fix cascaded scrolling, add more aez Gunwant Jain 2021-01-09 08:05:53 +05:30
  • 5d45bf8ebf base.html: format file Gunwant Jain 2021-01-07 05:02:57 +05:30
  • 651f3d8157 pretty_retrieve: use match_filname to match MIME Gunwant Jain 2021-01-06 10:00:49 +05:30
  • d3106f3fce index.html: add a frontend for pastes Gunwant Jain 2021-01-06 07:08:36 +05:30
  • e6f048c281 dockerignore: add dockerignore Gunwant Jain 2021-01-06 06:16:05 +05:30
  • 0239e253a7 docker-compose, readme: s/HOST/HOST_URL/ Gunwant Jain 2021-01-06 06:15:03 +05:30
  • c2ad9ffd90 main.rs: add /submit route Getting into frontend biz. Also s/HOST/HOST_URL/ because I didn't realise that HOST is already a taken variable. Gunwant Jain 2021-01-06 06:13:03 +05:30
  • ae8bd544de index: use templates for the index route Gunwant Jain 2021-01-06 05:16:28 +05:30
  • db08f5c8a9 pretty.html: refactor Gunwant Jain 2021-01-06 05:14:12 +05:30
  • cfd2fa15b6 pretty.html: corrections for optimum lighthouse results Gunwant Jain 2021-01-06 04:10:59 +05:30
  • 7cfe364b8c pretty.html: fetch stylesheet only if the var is declared Gunwant Jain 2021-01-06 00:58:10 +05:30
  • 5277c60b81 pretty.html: use jsdelivr instead of cloudfare Gunwant Jain 2021-01-06 00:50:37 +05:30
  • 009972ae88 readme: use markdown, add deployment examples Gunwant Jain 2021-01-06 00:13:07 +05:30
  • 9780e01deb docker-compose: use dockerhub's container registry Gunwant Jain 2021-01-06 00:12:21 +05:30
  • 13da6056d6 pretty.html: add bg color for selected text Gunwant Jain 2021-01-03 09:24:22 +05:30
  • 153aaf2215 pretty.html: add aez, line numbers, default font Gunwant Jain 2021-01-03 05:17:41 +05:30
  • ef96dcff33 correct usage guides Gunwant Jain 2020-12-30 06:35:19 +05:30
  • 27f84bbe3b add readme Gunwant Jain 2020-12-30 04:37:30 +05:30
  • ea790a066a Dockerised the app Gunwant Jain 2020-12-30 04:20:39 +05:30
  • 5fc487c705 use environment variables to configure settings Gunwant Jain 2020-12-30 04:19:46 +05:30
  • 1bc532d237 index: improve the usage guide Gunwant Jain 2020-12-30 03:41:54 +05:30
  • c138e9ad3e fix MIME types and add examples Gunwant Jain 2020-12-29 21:37:54 +05:30
  • 855a0faec2 routes: implement syntax highlighting for plaintext files Gunwant Jain 2020-12-29 19:35:21 +05:30
  • 66ea75de7f add /p/<id> routes Gunwant Jain 2020-12-29 17:37:29 +05:30
  • 805e4ce7d2 initialise routes: GET /<id> POST / Gunwant Jain 2020-12-29 15:44:15 +05:30