Init 🌌

This commit is contained in:
Alexander Popov 2021-11-08 07:08:20 +03:00
commit 6c562b9e6a
Signed by: iiiypuk
GPG Key ID: 398FC73478D97286
10 changed files with 102 additions and 0 deletions

19
.editorconfig Normal file
View File

@ -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

0
.gitignore vendored Normal file
View File

24
LICENSE Normal file
View File

@ -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 <http://unlicense.org>

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# Milky Way
![Logo](icon-192.png)

BIN
icon-192.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

23
space.py Normal file
View File

@ -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')

0
ui/browser.js Normal file
View File

BIN
ui/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

31
ui/index.html Normal file
View File

@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Space</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<nav id="nav">
<button>[home]</button>
<button>[prev]</button>
<button>[next]</button>
<input type="" name="">
<button>[refresh]</button>
</nav>
<section id="bookmarks">
bookmarkks
</section>
<section id="browser">
browser
</section>
<footer id="footer">
Size: 12kb
</footer>
<script type="text/javascript" src="browser.js"></script>
</body>
</html>

3
ui/styles.css Normal file
View File

@ -0,0 +1,3 @@
:root {
/**/
}