diff --git a/src/routes.js b/src/routes.js index aa39810..9e2a719 100644 --- a/src/routes.js +++ b/src/routes.js @@ -18,7 +18,7 @@ router.post("/", async (ctx) => { }); router.get("/", async (ctx) => { - await ctx.render("home"); + await ctx.render("home", { BASE_URL }); }); router.get("/:uuid{.:ext}", async (ctx, next) => { diff --git a/src/views/home.html b/src/views/home.html index 91bc942..e97eb65 100644 --- a/src/views/home.html +++ b/src/views/home.html @@ -1,22 +1,32 @@ -
Share encrypted logs without leaving terminal
+logsmoe(1) logs.moe logsmoe(1)
-from file
- $ curl https://logs.moe -F data=@debug.log
-from stdin
- $ cat debug.log | curl https://logs.moe -F data=@-
-alias (file or stdin)
- logsmoe() { curl https://logs.moe -F data="@${1:--}"; }
- $ logsmoe debug.log
- $ git diff --staged | logsmoe
+NAME
+ share secure logs from the command line
-- Only accepts form-data and field name "data"
-- Upload size limited to 20MiB
-- Anything is deleted in 7 days
-- Everything is saved encrypted
-- Decryption only happens on browser
+SYNOPSIS
+ $ curl <%- BASE_URL %> --data-binary 'hello world'
+ you can also paste or drag content on this page
-This is a personal project and nothing is collected
+DESCRIPTION
+ append the extension to force highlight if auto-detect fails and refresh:
+ <%- BASE_URL %>/abc#def.js
+ <%- BASE_URL %>/abc#def.txt
+ works better with text content
+ limited to 20MiB
+ everything encrypted
+ decryption on browser
+ no data collected
+
+EXAMPLES
+ $ curl <%- BASE_URL %> --data-binary @debug.log
+ $ git diff --staged | curl <%- BASE_URL %> --data-binary @-
+ add to your .profile
+ $ logsmoe() { curl <%- BASE_URL %> --data-binary "@${1:--}"; }
+ use with file or stdin
+ $ logsmoe debug.log
+ $ git diff --staged | logsmoe
+
+SEE ALSO
+ https://github.com/fabricionaweb/logs.moe
-Inspiration ....... https://x0.at | https://0bin.net/faq/
-Source ........ https://github.com/fabricionaweb/logs.moe
diff --git a/static/styles.css b/static/styles.css
index 7489a7f..0b62cb9 100644
--- a/static/styles.css
+++ b/static/styles.css
@@ -1,8 +1,8 @@
:root {
- --black: #282935;
- --white: #abb2bf;
- --blue: #61aeee;
- --grey: #5c6370;
+ --black: hsl(235, 15%, 18%);
+ --white: hsl(220, 13%, 70%);
+ --pink: hsl(300, 80%, 65%);
+ --grey: hsl(220, 6%, 50%);
}
*,
@@ -49,7 +49,7 @@ samp {
}
a {
- color: var(--blue);
+ color: var(--pink);
}
img,