From 7726a0e0ee5cba4510ad622c28497e9e11c6b1ae Mon Sep 17 00:00:00 2001 From: Gunwant Jain Date: Thu, 8 Jul 2021 19:48:05 +0530 Subject: [PATCH] templates, main: copy and paste images Make use of the Clipboard API. Also vivi dis is for you Signed-off-by: Gunwant Jain --- src/main.rs | 4 ++++ templates/index.html.tera | 30 +++++++++++++++++++----------- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/src/main.rs b/src/main.rs index ab193f1..eea5bed 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,7 @@ #[macro_use] extern crate rocket; use rocket::data::{Data, ToByteUnit}; +use rocket::shield::{Shield, NoSniff}; use rocket::{form::Form, response::Redirect}; use rocket_dyn_templates::Template; @@ -117,6 +118,8 @@ async fn index() -> Option