Browse Source

Init 🌌

master
Alexander Popov 3 months ago
commit
6c562b9e6a
Signed by: iiiypuk GPG Key ID: 398FC73478D97286
  1. 19
      .editorconfig
  2. 0
      .gitignore
  3. 24
      LICENSE
  4. 2
      README.md
  5. BIN
      icon-192.png
  6. 23
      space.py
  7. 0
      ui/browser.js
  8. BIN
      ui/favicon.ico
  9. 31
      ui/index.html
  10. 3
      ui/styles.css

19
.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

0
.gitignore

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

2
README.md

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

BIN
icon-192.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

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

0
ui/browser.js

BIN
ui/favicon.ico

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

31
ui/index.html

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

@ -0,0 +1,3 @@
:root {
/**/
}
Loading…
Cancel
Save