]> www.fi.muni.cz Git - paste.git/commitdiff
New favicon, external highlight js
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sat, 20 Nov 2021 23:15:31 +0000 (00:15 +0100)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sat, 20 Nov 2021 23:15:31 +0000 (00:15 +0100)
config.yml.sample
paste.pl
public/img/shebang-favicon.svg [new file with mode: 0644]

index 94aea6b66af9ba1fa83784ee8d26b74f03a29316..6cc937fb3e02da0bf0a696cd9a1f221bb81cfb2f 100644 (file)
@@ -1,5 +1,10 @@
 ---
 # Password for uploads. If not set, uploads should be done by other means,
 # such as direct writing to data directory
-password: change_this
+# password: change_this
+#
+# Public URL under which is this app available
 # base: https://external.name/prefix
+#
+# This paste bin name, used in <title> and <h1> of the app pages:
+# appname: My Very Precious Files
index 6c25fde748cb255b810df5780024e546215ab4e6..fbbb0cc0197859ba3aff27f1e49a1feaa12d9fb2 100755 (executable)
--- a/paste.pl
+++ b/paste.pl
@@ -90,8 +90,8 @@ __DATA__
 
 %= content_for header => begin
     <base href="<%= config->{base} %>/">
-    <link rel="stylesheet" href="highlight/qtcreator-dark.min.css">
-    <script src="highlight/highlight.min.js"></script>
+    <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/styles/qtcreator-dark.min.css">
+    <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js"></script>
     <script>hljs.highlightAll();</script>
 % end
 
diff --git a/public/img/shebang-favicon.svg b/public/img/shebang-favicon.svg
new file mode 100644 (file)
index 0000000..edaa582
--- /dev/null
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   width="19.977722mm"
+   height="19.977722mm"
+   viewBox="0 0 19.977721 19.977721"
+   version="1.1"
+   id="svg5"
+   inkscape:version="1.1 (c68e22c387, 2021-05-23)"
+   sodipodi:docname="shebang-favicon.svg"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:svg="http://www.w3.org/2000/svg">
+  <sodipodi:namedview
+     id="namedview7"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageshadow="2"
+     inkscape:pageopacity="0.0"
+     inkscape:pagecheckerboard="0"
+     inkscape:document-units="mm"
+     showgrid="false"
+     fit-margin-top="0"
+     fit-margin-left="0"
+     fit-margin-right="0"
+     fit-margin-bottom="0"
+     inkscape:zoom="2.6832492"
+     inkscape:cx="31.118988"
+     inkscape:cy="30.932647"
+     inkscape:window-width="1835"
+     inkscape:window-height="1050"
+     inkscape:window-x="65"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="layer1"
+     inkscape:snap-page="true" />
+  <defs
+     id="defs2" />
+  <g
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer"
+     id="layer1"
+     transform="translate(-54.566994,-97.950165)">
+    <rect
+       style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:2.02904;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
+       id="rect12949"
+       width="19.977722"
+       height="19.977722"
+       x="54.566994"
+       y="97.950165"
+       ry="0.53685528" />
+    <text
+       xml:space="preserve"
+       style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:17.1792px;line-height:125%;font-family:'DejaVu Sans Mono';-inkscape-font-specification:'DejaVu Sans Mono Bold';text-align:start;letter-spacing:0px;word-spacing:0px;text-anchor:start;fill:#00ffff;fill-opacity:1;stroke:none;stroke-width:0.536849px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
+       x="55.853409"
+       y="114.1199"
+       id="text781"><tspan
+         sodipodi:role="line"
+         id="tspan779"
+         style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:17.1792px;font-family:'DejaVu Sans Mono';-inkscape-font-specification:'DejaVu Sans Mono Bold';fill:#00ffff;stroke-width:0.536849px"
+         x="55.853409"
+         y="114.1199">#!</tspan></text>
+  </g>
+</svg>