From 754b383dbacbe9e4d0f1432b8c2ece83ffae3822 Mon Sep 17 00:00:00 2001 From: zortazert Date: Thu, 31 Mar 2022 12:16:16 -0500 Subject: [PATCH] Added README To Do list and documentation json parameter. --- .gitignore | 1 + README.md | 19 +++++++++++++++++++ apps/gimp.json | 1 + modules/__pycache__/render.cpython-38.pyc | Bin 2809 -> 2975 bytes modules/render.py | 8 ++++++++ server.py | 2 +- 6 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8812401 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +port.json \ No newline at end of file diff --git a/README.md b/README.md index 18c169c..6bc6c9e 100644 --- a/README.md +++ b/README.md @@ -34,3 +34,22 @@ In the [apps](apps) folder there are a bunch of json files for software. Here is "generic_name":["Video Player", "YouTube Client", "Music Player", "Publication"], "issues":["Surveillance", "Non-Free Software", "Non-Free JavaScript", "DRM"]} ``` + +# TO DO +- [ ] Add interfaces and language parameters to search +- [x] Documentation parameter in json +- [ ] Make a script to make it easier to when creating software json files +**New software ideas** +- [ ] Gitea +- [ ] Emacs +- [ ] Blender +- [ ] Krita +- [ ] PixelFeed +- [ ] Bibliogram +- [ ] Nitter +- [ ] proxitok +- [ ] librarian +- [ ] fastlbry-terminal +- [ ] lyberry-qt +**Nice to have** +- [ ] Make a way on the website editor to submit json files diff --git a/apps/gimp.json b/apps/gimp.json index 95fe18a..7d1f3c7 100644 --- a/apps/gimp.json +++ b/apps/gimp.json @@ -6,6 +6,7 @@ "git":"https://gitlab.gnome.org/GNOME/gimp", "fsd":"https://directory.fsf.org/wiki/Gimp", "wikipedia":"https://en.wikipedia.org/wiki/GIMP", + "documentation":"https://www.gimp.org/docs/", "icon":"https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/The_GIMP_icon_-_gnome.svg/64px-The_GIMP_icon_-_gnome.svg.png"}, "licenses":["GPL3+"], "platforms":["GNU/Linux", diff --git a/modules/__pycache__/render.cpython-38.pyc b/modules/__pycache__/render.cpython-38.pyc index 1c1263c76970151cfd53e3f563c2ab2155389670..46a568a873cfcddfac544a90f84cbe81bc4462fd 100644 GIT binary patch delta 602 zcmZ9I&ubGw6vyXHH@mZ&Zb&TYCXJe=wvFo#^q}CugJ3-gUWy{3hIVJ0hBmu6lSR>4 zdJr#y5Sg14YL6Zz7ykhNiX1%p>)_p+Z;~RV3-f(5@4fHm&FtUmK~TEy`yRpX*S9;H zZ_4jWNof{OF0R|SwI3srVCgsV&S4`M&mx_E*G&` zJD$@AGpnQ5Rs=Ase-zqOc)Dmepsw5YIw<|hzN^33*P)^R*gu~(@P~v2QNbWip^OV# zX_jzNGl@AP_5ZS9>P4A#yRkIGQP25sDVXmK!HJ-il)BCe%~;FPcR*E z0_MwjLqyx1=RMwy2k#8dn&KSM8a;3;us3lmV)Eog$}-JF6nCPO$DQ3?vh%^%?Wr9Y u6HB$jyI%1*#(NQ`^i?l?`bevAmNjh~y0^Qe_(bi@_e0+y|Vx#+5VE9G{i?t3u zs`-dcD;Dk<6ZyJN^2kKA5_txYLqQU9vye-IUsXPE9K5-ocTMwA9aZOh_1H$NHj2hyvnCU+qRi#Ii4#H{qv^Q&R|?m@aZCswhv#Zl3-tq! kwwp}wnChZd<3%N9C93F8=V)5A5m|^Zd6CK_7|D_J7n_}S3jhEB diff --git a/modules/render.py b/modules/render.py index 66c8914..31142c1 100644 --- a/modules/render.py +++ b/modules/render.py @@ -80,6 +80,14 @@ def html(page, json): """ + documentation = json.get("links",{}).get("documentation", "") + if documentation: + page = page + """ +
+ +
+ """ + page = page + "" # Details diff --git a/server.py b/server.py index 5b7d792..778a302 100644 --- a/server.py +++ b/server.py @@ -16,6 +16,7 @@ from modules import search from modules import render CSS = "https://zortazert.codeberg.page/style/styles.css" + try: with open("port.json","r") as f: json_stuff = json.load(f) @@ -30,7 +31,6 @@ except: # Who fucking made this http.server so I need to use classes? # I fucking hate who ever thought that it was a good idea... - class handler(BaseHTTPRequestHandler): def start_page(self):