Commit Graph

14 Commits

Author SHA1 Message Date
Gunwant Jain
1f84fd28b9 implement drag and drop
As a consquence of better UX, '/' post handler will now redirect instead
of returning a String.

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-06-19 06:49:43 +05:30
Gunwant Jain
8ddca50c55 base.html: re-add scroll bars
My only grief with scroll bars was not even with scroll bars, but FF's
shitty contrast breaking scroll bars in dark backgrounds. Fortunately
that has been settled for in the latest beta.

Also I was missing using a scrollbar on the pastebin :p

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-05-15 14:29:02 +05:30
Gunwant Jain
594f89385b templates: fix cascaded scrolling, add more aez
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-09 08:05:53 +05:30
Gunwant Jain
5d45bf8ebf base.html: format file
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-07 05:02:57 +05:30
Gunwant Jain
d3106f3fce index.html: add a frontend for pastes
a simple, minimalistic frontend for pasting texts the objectively easy
way for those not comfortable with CLI.

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-06 07:08:36 +05:30
Gunwant Jain
ae8bd544de index: use templates for the index route
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-06 05:16:28 +05:30
Gunwant Jain
db08f5c8a9 pretty.html: refactor
Make actual use of the Tera templating, when youre intending to use it.

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-06 05:14:12 +05:30
Gunwant Jain
cfd2fa15b6 pretty.html: corrections for optimum lighthouse results
added meta tag for SEO
use font-display: swap (almost) for faster contentful paints

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-06 04:10:59 +05:30
Gunwant Jain
7cfe364b8c pretty.html: fetch stylesheet only if the var is declared
otherwise the app will perform an unnecessary 404 request everytime a
theme is not declared

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-06 00:58:10 +05:30
Gunwant Jain
5277c60b81 pretty.html: use jsdelivr instead of cloudfare
Apparently, Cloudfare took 2X time when fetching content of similar
sizes.

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-06 00:50:37 +05:30
Gunwant Jain
13da6056d6 pretty.html: add bg color for selected text
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-03 09:24:22 +05:30
Gunwant Jain
153aaf2215 pretty.html: add aez, line numbers, default font
Should look a lot cleaner now.

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-01-03 05:17:41 +05:30
Gunwant Jain
c138e9ad3e fix MIME types and add examples
cpp files were getting recognised as "text/csrc". checking subtrings is
a better way to compare MIME types.

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2020-12-29 21:37:54 +05:30
Gunwant Jain
855a0faec2 routes: implement syntax highlighting for plaintext files
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2020-12-29 19:35:21 +05:30