commit 6c562b9e6a316ae788dc1f8874dfbbfa67c21252 Author: Alexander Popov Date: Mon Nov 8 07:08:20 2021 +0300 Init 🌌 diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..c067e46 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +root = true + +[*] +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.py] +indent_style = space +indent_size = 4 + +[{*.html,*.css,*.json}] +indent_style = tab +indent_size = 4 + +[*.js] +indent_style = space +indent_size = 2 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..cf1ab25 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/README.md b/README.md new file mode 100644 index 0000000..90f5561 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# Milky Way +![Logo](icon-192.png) diff --git a/icon-192.png b/icon-192.png new file mode 100644 index 0000000..c378a79 Binary files /dev/null and b/icon-192.png differ diff --git a/space.py b/space.py new file mode 100644 index 0000000..ad5290d --- /dev/null +++ b/space.py @@ -0,0 +1,23 @@ +import socket +import ssl + +import eel + +if __name__ == '__main__': + s = socket.create_connection(('iiiypuk.me', 1965)) + context = ssl.SSLContext() + context.check_hostname = False + context.verify_mode = ssl.CERT_NONE + + s = context.wrap_socket(s, server_hostname = 'iiiypuk.me') + s.sendall(('gemini://iiiypuk.me\r\n').encode("utf-8")) + + fp = s.makefile("rb") + + header = fp.readline() + header = header.decode("UTF-8").strip() + + print(header) + + # eel.init('ui') + # eel.start('index.html') diff --git a/ui/browser.js b/ui/browser.js new file mode 100644 index 0000000..e69de29 diff --git a/ui/favicon.ico b/ui/favicon.ico new file mode 100644 index 0000000..10b6f45 Binary files /dev/null and b/ui/favicon.ico differ diff --git a/ui/index.html b/ui/index.html new file mode 100644 index 0000000..29c4eea --- /dev/null +++ b/ui/index.html @@ -0,0 +1,31 @@ + + + + + + Space + + + + + +
+ bookmarkks +
+ +
+ browser +
+ +
+ Size: 12kb +
+ + + diff --git a/ui/styles.css b/ui/styles.css new file mode 100644 index 0000000..3c4df22 --- /dev/null +++ b/ui/styles.css @@ -0,0 +1,3 @@ +:root { + /**/ +}