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
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
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
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
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
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