From 14b5facbd111df83dc0e1ebae10c054f2125ce69 Mon Sep 17 00:00:00 2001 From: Victorious Children Studios Date: Mon, 29 Apr 2024 12:30:39 +0300 Subject: [PATCH] New software and a few changes! --- apps/fedora.json | 42 +++++++++++++++++++++++++++++++++++++++ apps/popos.json | 37 +++++++++++++++++++++++++++++++++++ apps/ubuntu.json | 36 ++++++++++++++++++++++++++++++++++ apps/windows.json | 50 +++++++++++++++++++++++++++++++---------------- server.py | 10 +++++++++- 5 files changed, 157 insertions(+), 18 deletions(-) create mode 100644 apps/fedora.json create mode 100644 apps/popos.json create mode 100644 apps/ubuntu.json diff --git a/apps/fedora.json b/apps/fedora.json new file mode 100644 index 0000000..edc9911 --- /dev/null +++ b/apps/fedora.json @@ -0,0 +1,42 @@ +{ + "comment": "Fedora is a GNU / Linux distribution developed by the community-supported Fedora Project and Red Hat. Fedora GNU / Linux contains software distributed under a free and open-source license and aims to be on the leading edge of such technologies. Fedora has a reputation for focusing on innovation, integrating new technologies early on and working closely with upstream GNU / Linux communities. ", + "formats_read": [], + "formats_write": [], + "generic_name": [ + "Operating System", + "GNU/Linux" + ], + "interface": [ + "Gnome", + "KDE", + "Xfce", + "LXDE", + "MATE" + ], + "issues": [ + "Suggests Installation Of Non-Free Software", + "Non-Free Firmware" + ], + "languages": [], + "licenses": [ + "GPL-3.0", + "LGPL-3.0", + "MPL-2.0", + "GPL-2.0" + ], + "links": { + "git": "https://src.fedoraproject.org/", + "icon": "https://upload.wikimedia.org/wikipedia/commons/thumb/8/8f/Fedora_logo_%282021%29.svg/768px-Fedora_logo_%282021%29.svg.png", + "website": "https://fedoraproject.org/", + "wikipedia": "https://en.wikipedia.org/wiki/Fedora_Linux" + }, + "names": [ + "Fedora", + "Fedora GNU / Linux" + ], + "networks_read": [], + "networks_write": [], + "platforms": [ + "PC" + ] +} \ No newline at end of file diff --git a/apps/popos.json b/apps/popos.json new file mode 100644 index 0000000..6e9886b --- /dev/null +++ b/apps/popos.json @@ -0,0 +1,37 @@ +{ + "comment": "Pop!_OS is an Ubuntu-based GNU / Linux distribution featuring a custom GNOME desktop. Pop!_OS is designed to have a minimal amount of clutter on the desktop without distractions in order to allow the user to focus on work. The distribution is developed by GNU / Linux computer retailer System76.", + "formats_read": [], + "formats_write": [], + "generic_name": [ + "Operating System", + "GNU/Linux" + ], + "interface": [ + "Cosmic", + "Gnome" + ], + "issues": [ + "Suggests Installation Of Non-Free Software" + ], + "languages": [], + "licenses": [ + "GPL-3.0", + "LGPL-3.0", + "MPL-2.0", + "GPL-2.0" + ], + "links": { + "git": "https://github.com/pop-os", + "icon": "https://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Pop_OS-Logo-nobg.svg/1200px-Pop_OS-Logo-nobg.svg.png", + "website": "https://pop.system76.com/", + "wikipedia": "https://en.wikipedia.org/wiki/Pop!_OS" + }, + "names": [ + "Pop!_OS" + ], + "networks_read": [], + "networks_write": [], + "platforms": [ + "PC" + ] +} \ No newline at end of file diff --git a/apps/ubuntu.json b/apps/ubuntu.json new file mode 100644 index 0000000..75d67ea --- /dev/null +++ b/apps/ubuntu.json @@ -0,0 +1,36 @@ +{ + "comment": "Ubuntu is a complete desktop GNU / Linux operating system, freely available with both community and professional support. The Ubuntu community is built on the ideas enshrined in the Ubuntu Manifesto: that software should be available free of charge, that software tools should be usable by people in their local language and despite any disabilities, and that people should have the freedom to customise and alter their software in whatever way they see fit. \"Ubuntu\" is an ancient African word, meaning \"humanity to others\". The Ubuntu distribution brings the spirit of Ubuntu to the software world.", + "formats_read": [], + "formats_write": [], + "generic_name": [ + "Operating System", + "GNU/Linux" + ], + "interface": [ + "Gnome" + ], + "issues": [ + "Suggests Installation Of Non-Free Software" + ], + "languages": [], + "licenses": [ + "GPL-3.0", + "LGPL-3.0", + "MPL-2.0", + "GPL-2.0" + ], + "links": { + "git": "https://code.launchpad.net/ubuntu", + "icon": "https://upload.wikimedia.org/wikipedia/commons/1/16/Ubuntu_and_Ubuntu_Server_Icon.png", + "website": "https://ubuntu.com/", + "wikipedia": "https://en.wikipedia.org/wiki/Ubuntu" + }, + "names": [ + "Ubuntu" + ], + "networks_read": [], + "networks_write": [], + "platforms": [ + "PC" + ] +} \ No newline at end of file diff --git a/apps/windows.json b/apps/windows.json index 5920bf2..8a1993c 100644 --- a/apps/windows.json +++ b/apps/windows.json @@ -1,17 +1,33 @@ -{"names":["Windows", - "Microsoft Windows"], - "comment":"A proprietary Operating System from Microsoft.", - "links":{"website":"microsoft.com", - "wikipedia":"https://en.wikipedia.org/wiki/Windows", - "icon":"https://upload.wikimedia.org/wikipedia/commons/9/94/M_box.svg"}, - "platforms":["PC"], - "interface":["windows"], - "networks_read":[], - "networks_write":[], - "formats_read":[], - "formats_write":[], - "generic_name":["Operating System"], - "issues":["Surveillance", - "Subscription", - "Non-Free Software", - "DRM"]} +{ + "comment": "A proprietary Operating System from Microsoft.", + "formats_read": [], + "formats_write": [], + "generic_name": [ + "Operating System" + ], + "interface": [ + "windows" + ], + "issues": [ + "Surveillance", + "Subscription", + "Non-Free Software", + "DRM" + ], + "languages": [], + "licenses": [], + "links": { + "icon": "https://upload.wikimedia.org/wikipedia/commons/thumb/8/87/Windows_logo_-_2021.svg/1024px-Windows_logo_-_2021.svg.png", + "website": "microsoft.com", + "wikipedia": "https://en.wikipedia.org/wiki/Windows" + }, + "names": [ + "Windows", + "Microsoft Windows" + ], + "networks_read": [], + "networks_write": [], + "platforms": [ + "PC" + ] +} \ No newline at end of file diff --git a/server.py b/server.py index 828c06e..22470b2 100644 --- a/server.py +++ b/server.py @@ -153,6 +153,10 @@ class handler(BaseHTTPRequestHandler): # The css file + self.send_response(200) + self.send_header('Content-type', 'text/css') + self.end_headers() + cssfile = open("default.css", "rb") cssfile = cssfile.read() self.wfile.write(cssfile) @@ -168,7 +172,7 @@ class handler(BaseHTTPRequestHandler): elif self.path in ["/faq", "/faq?"]: # The font file - + faqfile = open("faq.html") faqfile = faqfile.read() faqfile = render.search_widget(faqfile, ADDRESS) @@ -199,6 +203,10 @@ class handler(BaseHTTPRequestHandler): elif "/logo" == self.path: + self.send_response(200) + self.send_header('Content-type', 'image/png') + self.end_headers() + icon = open("favicon.png", "rb") icon = icon.read() self.wfile.write(icon)