浏览代码

add manifests and icons for clip/goto/upload

Pi 1 年之前
父节点
当前提交
290395b1d4

+ 1 - 1
grocery-transactions

@@ -1 +1 @@
-Subproject commit 631aac0cd1313f3d31f34ddb526f86c5d0e93e17
+Subproject commit 18ce1dc4a164bc6925d1c380e56aa8d594b15ead

+ 7 - 0
rest/static/clip-favicon.svg

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+  Source: https://commons.wikimedia.org/wiki/File:Clipboard_(1714)_-_The_Noun_Project.svgi
+  Author: Seth Taylor, CC0, via Wikimedia Commons
+  License: https://creativecommons.org/publicdomain/zero/1.0/deed.en
+-->
+<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" x="0px" y="0px" viewBox="0 0 71 100" enable-background="new 0 0 71 100" xml:space="preserve"><path d="M70,7.583H56.625V5.961c0-0.55-0.45-1-1-1H43.443V2c0-1.1-0.9-2-2-2H29.557c-1.1,0-2,0.9-2,2v2.961H15.375  c-0.55,0-1,0.45-1,1v1.623H1c-0.55,0-1,0.45-1,1V99c0,0.55,0.45,1,1,1h69c0.55,0,1-0.45,1-1V8.583C71,8.034,70.55,7.583,70,7.583z   M35.5,2.319c1.094,0,1.981,0.887,1.981,1.98c0,1.094-0.888,1.981-1.981,1.981c-1.094,0-1.981-0.887-1.981-1.981  C33.519,3.206,34.406,2.319,35.5,2.319z M63.495,92.395c0,0.55-0.45,1-1,1H8.505c-0.55,0-1-0.45-1-1V15.188c0-0.55,0.45-1,1-1h5.87  v1.669c0,0.55,0.45,1,1,1h40.25c0.55,0,1-0.45,1-1v-1.669h5.87c0.55,0,1,0.45,1,1V92.395z"></path><rect x="14.375" y="25.5" width="38.125" height="2.375"></rect><rect x="14.375" y="31.625" width="38.125" height="2.375"></rect><rect x="14.375" y="37.75" width="29.125" height="2.375"></rect><rect x="14.375" y="50" width="38.125" height="2.375"></rect><rect x="14.375" y="56.125" width="38.125" height="2.375"></rect><rect x="14.375" y="62.25" width="29.125" height="2.375"></rect></svg>

+ 74 - 0
rest/static/clip-favicon_square.svg

@@ -0,0 +1,74 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+  Source: https://commons.wikimedia.org/wiki/File:Clipboard_(1714)_-_The_Noun_Project.svg
+  Author: Seth Taylor, CC0, via Wikimedia Commons
+  License: https://creativecommons.org/publicdomain/zero/1.0/deed.en
+-->
+
+<svg
+   version="1.1"
+   x="0px"
+   y="0px"
+   viewBox="0 0 100 100"
+   enable-background="new 0 0 71 100"
+   xml:space="preserve"
+   id="svg68"
+   sodipodi:docname="clip.svg"
+   width="100"
+   height="100"
+   inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
+   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"><defs
+     id="defs72" /><sodipodi:namedview
+     id="namedview70"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageshadow="2"
+     inkscape:pageopacity="0.0"
+     inkscape:pagecheckerboard="0"
+     showgrid="false"
+     width="100px"
+     inkscape:zoom="5.94"
+     inkscape:cx="23.148148"
+     inkscape:cy="50"
+     inkscape:window-width="1317"
+     inkscape:window-height="837"
+     inkscape:window-x="189"
+     inkscape:window-y="300"
+     inkscape:window-maximized="0"
+     inkscape:current-layer="svg68" /><path
+     d="M 84.5,7.583 H 71.125 V 5.961 c 0,-0.55 -0.45,-1 -1,-1 H 57.943 V 2 c 0,-1.1 -0.9,-2 -2,-2 H 44.057 c -1.1,0 -2,0.9 -2,2 V 4.961 H 29.875 c -0.55,0 -1,0.45 -1,1 V 7.584 H 15.5 c -0.55,0 -1,0.45 -1,1 V 99 c 0,0.55 0.45,1 1,1 h 69 c 0.55,0 1,-0.45 1,-1 V 8.583 c 0,-0.549 -0.45,-1 -1,-1 z M 50,2.319 c 1.094,0 1.981,0.887 1.981,1.98 0,1.094 -0.888,1.981 -1.981,1.981 -1.094,0 -1.981,-0.887 -1.981,-1.981 0,-1.093 0.887,-1.98 1.981,-1.98 z m 27.995,90.076 c 0,0.55 -0.45,1 -1,1 h -53.99 c -0.55,0 -1,-0.45 -1,-1 V 15.188 c 0,-0.55 0.45,-1 1,-1 h 5.87 v 1.669 c 0,0.55 0.45,1 1,1 h 40.25 c 0.55,0 1,-0.45 1,-1 v -1.669 h 5.87 c 0.55,0 1,0.45 1,1 z"
+     id="path54" /><rect
+     x="28.875"
+     y="25.5"
+     width="38.125"
+     height="2.375"
+     id="rect56" /><rect
+     x="28.875"
+     y="31.625"
+     width="38.125"
+     height="2.375"
+     id="rect58" /><rect
+     x="28.875"
+     y="37.75"
+     width="29.125"
+     height="2.375"
+     id="rect60" /><rect
+     x="28.875"
+     y="50"
+     width="38.125"
+     height="2.375"
+     id="rect62" /><rect
+     x="28.875"
+     y="56.125"
+     width="38.125"
+     height="2.375"
+     id="rect64" /><rect
+     x="28.875"
+     y="62.25"
+     width="29.125"
+     height="2.375"
+     id="rect66" /></svg>

+ 23 - 0
rest/static/clip-manifest.json

@@ -0,0 +1,23 @@
+{
+  "id": "/clip",
+  "name": "Clipboard Web Application",
+  "short_name": "Paste",
+  "description": "Save snippets of text for sharing via a short URL",
+  "start_url": "/clip",
+  "scope": "/clip",
+  "theme_color": "#4f8f4f",
+  "background_color": "black",
+  "display": "standalone",
+  "icons": [
+    {
+      "src": "/static/clip-favicon.svg",
+      "sizes": "any",
+      "purpose": "any"
+    },
+    {
+      "src": "/static/clip-favicon_square.svg",
+      "sizes": "any",
+      "purpose": "any"
+    }
+  ]
+}

文件差异内容过多而无法显示
+ 0 - 1
rest/static/clip-qr.svg


文件差异内容过多而无法显示
+ 8 - 0
rest/static/goto-favicon.svg


文件差异内容过多而无法显示
+ 64 - 0
rest/static/goto-favicon_square.svg


+ 23 - 0
rest/static/goto-manifest.json

@@ -0,0 +1,23 @@
+{
+  "id": "/goto",
+  "name": "GoTo... Tiny URL Web Application",
+  "short_name": "GoTo..",
+  "description": "Share links via short URL that can be easily typed or verbalised",
+  "start_url": "/goto",
+  "scope": "/goto",
+  "theme_color": "#8f4f4f",
+  "background_color": "black",
+  "display": "standalone",
+  "icons": [
+    {
+      "src": "/static/goto-favicon.svg",
+      "sizes": "any",
+      "purpose": "any"
+    },
+    {
+      "src": "/static/goto-favicon_square.svg",
+      "sizes": "any",
+      "purpose": "any"
+    }
+  ]
+}

文件差异内容过多而无法显示
+ 0 - 1
rest/static/goto-qr.svg


+ 43 - 0
rest/static/upload-favicon.svg

@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+  Source: https://commons.wikimedia.org/wiki/File:Upload_(89524)_-_The_Noun_Project.svg
+  Author: Consumer Financial Protection Bureau, CC0, via Wikimedia Commons
+  License: https://creativecommons.org/publicdomain/zero/1.0/deed.en
+-->
+
+<svg
+   version="1.1"
+   x="0px"
+   y="0px"
+   viewBox="0 0 90 100"
+   enable-background="new 0 0 100 100"
+   xml:space="preserve"
+   id="svg51"
+   sodipodi:docname="upload-favicon.svg"
+   inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
+   width="90"
+   height="100"
+   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"><defs
+     id="defs55" /><sodipodi:namedview
+     id="namedview53"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageshadow="2"
+     inkscape:pageopacity="0.0"
+     inkscape:pagecheckerboard="0"
+     showgrid="false"
+     inkscape:zoom="7.65"
+     inkscape:cx="16.013072"
+     inkscape:cy="50"
+     inkscape:window-width="1680"
+     inkscape:window-height="997"
+     inkscape:window-x="0"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="svg51" /><path
+     d="m 47.8,34.8 c -1.5,-1.6 -4.1,-1.6 -5.6,0 0,0 -12.1,12.1 -12.5,12.5 -1.6,1.6 -1.6,4.1 0,5.7 1.5,1.6 4.1,1.6 5.7,0 0.4,-0.4 5.6,-5.6 5.6,-5.6 V 76 c 0,2.2 1.9,4.1 4,4.1 2.2,0 4,-1.9 4,-4.1 V 47.4 c 0,0 5.5,5.4 5.6,5.6 1.6,1.6 4.1,1.6 5.8,0 1.5,-1.6 1.5,-4.1 0,-5.7 C 60.3,47.1 47.8,34.8 47.8,34.8 Z m 31.5,-9.2 c 0,0 -0.4,-0.4 -19.4,-19.4 C 59.4,5.6 58.3,5 57,5 H 13.6 C 11.3,5 9.5,6.8 9.5,9.1 v 81.8 c 0,2.3 1.8,4.1 4.1,4.1 h 62.8 c 2.3,0 4,-1.8 4,-4.1 V 28.5 C 80.5,27.2 80,26.2 79.3,25.6 Z M 17.7,13.2 H 52.9 L 53,28.5 c 0,2.2 1.8,4 4,4 H 72.3 V 86.8 H 17.7 Z"
+     id="path49" /></svg>

+ 44 - 0
rest/static/upload-favicon_square.svg

@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!--
+  Source: https://commons.wikimedia.org/wiki/File:Upload_(89524)_-_The_Noun_Project.svg
+  Author: Consumer Financial Protection Bureau, CC0, via Wikimedia Commons
+  License: https://creativecommons.org/publicdomain/zero/1.0/deed.en
+-->
+
+<svg
+   version="1.1"
+   x="0px"
+   y="0px"
+   viewBox="0 0 100 100"
+   enable-background="new 0 0 100 100"
+   xml:space="preserve"
+   id="svg51"
+   sodipodi:docname="upload-favicon.svg"
+   inkscape:version="1.1.1 (3bf5ae0d25, 2021-09-20)"
+   width="100"
+   height="100"
+   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"><defs
+     id="defs55" /><sodipodi:namedview
+     id="namedview53"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1.0"
+     inkscape:pageshadow="2"
+     inkscape:pageopacity="0.0"
+     inkscape:pagecheckerboard="0"
+     showgrid="false"
+     inkscape:zoom="7.65"
+     inkscape:cx="49.215686"
+     inkscape:cy="50"
+     inkscape:window-width="1680"
+     inkscape:window-height="997"
+     inkscape:window-x="0"
+     inkscape:window-y="0"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="svg51"
+     width="100px" /><path
+     d="m 52.8,34.8 c -1.5,-1.6 -4.1,-1.6 -5.6,0 0,0 -12.1,12.1 -12.5,12.5 -1.6,1.6 -1.6,4.1 0,5.7 1.5,1.6 4.1,1.6 5.7,0 0.4,-0.4 5.6,-5.6 5.6,-5.6 V 76 c 0,2.2 1.9,4.1 4,4.1 2.2,0 4,-1.9 4,-4.1 V 47.4 c 0,0 5.5,5.4 5.6,5.6 1.6,1.6 4.1,1.6 5.8,0 1.5,-1.6 1.5,-4.1 0,-5.7 C 65.3,47.1 52.8,34.8 52.8,34.8 Z m 31.5,-9.2 c 0,0 -0.4,-0.4 -19.4,-19.4 C 64.4,5.6 63.3,5 62,5 H 18.6 c -2.3,0 -4.1,1.8 -4.1,4.1 v 81.8 c 0,2.3 1.8,4.1 4.1,4.1 h 62.8 c 2.3,0 4,-1.8 4,-4.1 V 28.5 C 85.5,27.2 85,26.2 84.3,25.6 Z M 22.7,13.2 H 57.9 L 58,28.5 c 0,2.2 1.8,4 4,4 H 77.3 V 86.8 H 22.7 Z"
+     id="path49" /></svg>

+ 23 - 0
rest/static/upload-manifest.json

@@ -0,0 +1,23 @@
+{
+  "id": "/upload",
+  "name": "File Share Web Application",
+  "short_name": "Upload",
+  "description": "Upload a file for sharing via a short URL",
+  "start_url": "/upload",
+  "scope": "/upload",
+  "theme_color": "#afaf0f",
+  "background_color": "black",
+  "display": "standalone",
+  "icons": [
+    {
+      "src": "/static/upload-favicon.svg",
+      "sizes": "any",
+      "purpose": "any"
+    },
+    {
+      "src": "/static/upload-favicon_square.svg",
+      "sizes": "any",
+      "purpose": "any"
+    }
+  ]
+}

文件差异内容过多而无法显示
+ 0 - 1
rest/static/upload-qr.svg


+ 2 - 1
rest/templates/goto.tpl

@@ -20,7 +20,8 @@ img {
   max-width: calc(100vw - 2em);
 }
     </style>
-    <title>Go to ...</title>
+    <title>GoTo...</title>
+    <link rel="manifest" href="/static/goto-manifest.json"/>
     <meta name="viewport" content="width=device-width, initial-scale=1"/>
     <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/purecss@2.1.0/build/pure-min.css" integrity="sha384-yHIFVG6ClnONEA5yB5DJXfW2/KC173DIQrYoZMEtBvGzmf0PKiGyNEqe9N6BNDBH" crossorigin="anonymous"/>
     <link rel="stylesheet" href="https://shandan.one/css/grids-responsive-min.css"/>

+ 1 - 0
rest/templates/paste.tpl

@@ -22,6 +22,7 @@ img {
 }
     </style>
     <title>Paste</title>
+    <link rel="manifest" href="/static/clip-manifest.json"/>
     <meta name="viewport" content="width=device-width, initial-scale=1"/>
     <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/purecss@2.1.0/build/pure-min.css" integrity="sha384-yHIFVG6ClnONEA5yB5DJXfW2/KC173DIQrYoZMEtBvGzmf0PKiGyNEqe9N6BNDBH" crossorigin="anonymous"/>
     <link rel="stylesheet" href="https://shandan.one/css/grids-responsive-min.css"/>

+ 1 - 0
rest/templates/upload.tpl

@@ -35,6 +35,7 @@ object.text {
 }
     </style>
     <title>Upload</title>
+    <link rel="manifest" href="/static/upload-manifest.json"/>
     <meta name="viewport" content="width=device-width, initial-scale=1"/>
     <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/purecss@2.1.0/build/pure-min.css" integrity="sha384-yHIFVG6ClnONEA5yB5DJXfW2/KC173DIQrYoZMEtBvGzmf0PKiGyNEqe9N6BNDBH" crossorigin="anonymous"/>
     <link rel="stylesheet" href="https://shandan.one/css/grids-responsive-min.css"/>

部分文件因为文件数量过多而无法显示