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 Jain2022-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 Jain2022-01-19 13:37:07 +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 Jain2022-01-18 21:33:03 +05:30
e91393f63c
cli client: update and move to contrib
Gunwant Jain2022-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 Jain2022-01-18 10:03:04 +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 Jain2021-12-26 09:45:53 +05:30
a9dc9452fc
index: increase drag area to the entire form
Gunwant Jain2021-07-13 21:58:04 +05:30
04c992e8b3
client: write a simple client for the pastebin
Gunwant Jain2021-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 Jain2021-07-13 04:28:48 +05:30
8a3b29a0ef
templates/index: update the description Give a quick rundown of how to use the pastebin
Gunwant Jain2021-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 Jain2021-07-08 19:48:05 +05:30
0cd0d24549
templates: add drag and drop func, use ayu dark Use a more man-like description
Gunwant Jain2021-07-08 18:49:39 +05:30
e77c1a57e4
cleaned up code, using &str instead of RawStr
Gunwant Jain2021-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 Jain2021-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 Jain2021-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 Jain2021-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 Jain2021-01-06 06:13:03 +05:30
ae8bd544de
index: use templates for the index route
Gunwant Jain2021-01-06 05:16:28 +05:30