diff --git a/src/web/pwa/android-icon-144x144.png b/src/web/pwa/android-icon-144x144.png new file mode 100644 index 00000000..b2ef1254 Binary files /dev/null and b/src/web/pwa/android-icon-144x144.png differ diff --git a/src/web/pwa/android-icon-192x192.png b/src/web/pwa/android-icon-192x192.png new file mode 100644 index 00000000..61ca45e2 Binary files /dev/null and b/src/web/pwa/android-icon-192x192.png differ diff --git a/src/web/pwa/android-icon-36x36.png b/src/web/pwa/android-icon-36x36.png new file mode 100644 index 00000000..221f3a28 Binary files /dev/null and b/src/web/pwa/android-icon-36x36.png differ diff --git a/src/web/pwa/android-icon-48x48.png b/src/web/pwa/android-icon-48x48.png new file mode 100644 index 00000000..55c492c9 Binary files /dev/null and b/src/web/pwa/android-icon-48x48.png differ diff --git a/src/web/pwa/android-icon-72x72.png b/src/web/pwa/android-icon-72x72.png new file mode 100644 index 00000000..6223a655 Binary files /dev/null and b/src/web/pwa/android-icon-72x72.png differ diff --git a/src/web/pwa/android-icon-96x96.png b/src/web/pwa/android-icon-96x96.png new file mode 100644 index 00000000..c57c90ca Binary files /dev/null and b/src/web/pwa/android-icon-96x96.png differ diff --git a/src/web/pwa/apple-icon-114x114.png b/src/web/pwa/apple-icon-114x114.png new file mode 100644 index 00000000..9755a231 Binary files /dev/null and b/src/web/pwa/apple-icon-114x114.png differ diff --git a/src/web/pwa/apple-icon-120x120.png b/src/web/pwa/apple-icon-120x120.png new file mode 100644 index 00000000..7eb69b82 Binary files /dev/null and b/src/web/pwa/apple-icon-120x120.png differ diff --git a/src/web/pwa/apple-icon-144x144.png b/src/web/pwa/apple-icon-144x144.png new file mode 100644 index 00000000..365f9966 Binary files /dev/null and b/src/web/pwa/apple-icon-144x144.png differ diff --git a/src/web/pwa/apple-icon-152x152.png b/src/web/pwa/apple-icon-152x152.png new file mode 100644 index 00000000..e351deec Binary files /dev/null and b/src/web/pwa/apple-icon-152x152.png differ diff --git a/src/web/pwa/apple-icon-180x180.png b/src/web/pwa/apple-icon-180x180.png new file mode 100644 index 00000000..b9dbc6a8 Binary files /dev/null and b/src/web/pwa/apple-icon-180x180.png differ diff --git a/src/web/pwa/apple-icon-57x57.png b/src/web/pwa/apple-icon-57x57.png new file mode 100644 index 00000000..c322b314 Binary files /dev/null and b/src/web/pwa/apple-icon-57x57.png differ diff --git a/src/web/pwa/apple-icon-60x60.png b/src/web/pwa/apple-icon-60x60.png new file mode 100644 index 00000000..efc6fb71 Binary files /dev/null and b/src/web/pwa/apple-icon-60x60.png differ diff --git a/src/web/pwa/apple-icon-72x72.png b/src/web/pwa/apple-icon-72x72.png new file mode 100644 index 00000000..3c365012 Binary files /dev/null and b/src/web/pwa/apple-icon-72x72.png differ diff --git a/src/web/pwa/apple-icon-76x76.png b/src/web/pwa/apple-icon-76x76.png new file mode 100644 index 00000000..4977295a Binary files /dev/null and b/src/web/pwa/apple-icon-76x76.png differ diff --git a/src/web/pwa/apple-icon-precomposed.png b/src/web/pwa/apple-icon-precomposed.png new file mode 100644 index 00000000..b91c2943 Binary files /dev/null and b/src/web/pwa/apple-icon-precomposed.png differ diff --git a/src/web/pwa/apple-icon.png b/src/web/pwa/apple-icon.png new file mode 100644 index 00000000..b91c2943 Binary files /dev/null and b/src/web/pwa/apple-icon.png differ diff --git a/src/web/pwa/browserconfig.xml b/src/web/pwa/browserconfig.xml new file mode 100644 index 00000000..c5541482 --- /dev/null +++ b/src/web/pwa/browserconfig.xml @@ -0,0 +1,2 @@ + +#ffffff \ No newline at end of file diff --git a/src/web/pwa/favicon-16x16.png b/src/web/pwa/favicon-16x16.png new file mode 100644 index 00000000..0319a125 Binary files /dev/null and b/src/web/pwa/favicon-16x16.png differ diff --git a/src/web/pwa/favicon-32x32.png b/src/web/pwa/favicon-32x32.png new file mode 100644 index 00000000..979ac9ae Binary files /dev/null and b/src/web/pwa/favicon-32x32.png differ diff --git a/src/web/pwa/favicon-96x96.png b/src/web/pwa/favicon-96x96.png new file mode 100644 index 00000000..1419035b Binary files /dev/null and b/src/web/pwa/favicon-96x96.png differ diff --git a/src/web/pwa/favicon.ico b/src/web/pwa/favicon.ico new file mode 100644 index 00000000..fa091f7a Binary files /dev/null and b/src/web/pwa/favicon.ico differ diff --git a/src/web/pwa/manifest.json b/src/web/pwa/manifest.json new file mode 100644 index 00000000..15c5ce09 --- /dev/null +++ b/src/web/pwa/manifest.json @@ -0,0 +1,41 @@ +{ + "name": "RaSCSI", + "icons": [ + { + "src": "\/pwa\/android-icon-36x36.png", + "sizes": "36x36", + "type": "image\/png", + "density": "0.75" + }, + { + "src": "\/pwa\/android-icon-48x48.png", + "sizes": "48x48", + "type": "image\/png", + "density": "1.0" + }, + { + "src": "\/pwa\/android-icon-72x72.png", + "sizes": "72x72", + "type": "image\/png", + "density": "1.5" + }, + { + "src": "\/pwa\/android-icon-96x96.png", + "sizes": "96x96", + "type": "image\/png", + "density": "2.0" + }, + { + "src": "\/pwa\/android-icon-144x144.png", + "sizes": "144x144", + "type": "image\/png", + "density": "3.0" + }, + { + "src": "\/pwa\/android-icon-192x192.png", + "sizes": "192x192", + "type": "image\/png", + "density": "4.0" + } + ] +} diff --git a/src/web/pwa/ms-icon-144x144.png b/src/web/pwa/ms-icon-144x144.png new file mode 100644 index 00000000..365f9966 Binary files /dev/null and b/src/web/pwa/ms-icon-144x144.png differ diff --git a/src/web/pwa/ms-icon-150x150.png b/src/web/pwa/ms-icon-150x150.png new file mode 100644 index 00000000..d8dfe5b7 Binary files /dev/null and b/src/web/pwa/ms-icon-150x150.png differ diff --git a/src/web/pwa/ms-icon-310x310.png b/src/web/pwa/ms-icon-310x310.png new file mode 100644 index 00000000..5a12fa0f Binary files /dev/null and b/src/web/pwa/ms-icon-310x310.png differ diff --git a/src/web/pwa/ms-icon-70x70.png b/src/web/pwa/ms-icon-70x70.png new file mode 100644 index 00000000..70965898 Binary files /dev/null and b/src/web/pwa/ms-icon-70x70.png differ diff --git a/src/web/templates/base.html b/src/web/templates/base.html index ddc9dc40..5e01ae1a 100644 --- a/src/web/templates/base.html +++ b/src/web/templates/base.html @@ -1,5 +1,25 @@ RaSCSI Control Page + + + + + + + + + + + + + + + + + + + +
diff --git a/src/web/web.py b/src/web/web.py index 9c5dd0bc..274f70bd 100644 --- a/src/web/web.py +++ b/src/web/web.py @@ -1,7 +1,7 @@ import io import re -from flask import Flask, render_template, request, flash, url_for, redirect, send_file +from flask import Flask, render_template, request, flash, url_for, redirect, send_file, send_from_directory from file_cmds import ( create_new_image, @@ -49,6 +49,9 @@ def index(): version=running_version(), ) +@app.route('/pwa/') +def send_pwa_files(path): + return send_from_directory('pwa', path) @app.route("/config/save", methods=["POST"]) def config_save():