Merge branch 'master' of TrueAuraCoral/FreeCompetitors into master

This commit is contained in:
Jeison Yehuda Amihud (Blender Dumbass) 2022-03-31 17:23:29 +00:00 committed by Gogs
commit 55648f5629
6 changed files with 32 additions and 1 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
port.json

View file

@ -34,3 +34,24 @@ 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"], "generic_name":["Video Player", "YouTube Client", "Music Player", "Publication"],
"issues":["Surveillance", "Non-Free Software", "Non-Free JavaScript", "DRM"]} "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

View file

@ -6,6 +6,7 @@
"git":"https://gitlab.gnome.org/GNOME/gimp", "git":"https://gitlab.gnome.org/GNOME/gimp",
"fsd":"https://directory.fsf.org/wiki/Gimp", "fsd":"https://directory.fsf.org/wiki/Gimp",
"wikipedia":"https://en.wikipedia.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"}, "icon":"https://upload.wikimedia.org/wikipedia/commons/thumb/4/45/The_GIMP_icon_-_gnome.svg/64px-The_GIMP_icon_-_gnome.svg.png"},
"licenses":["GPL3+"], "licenses":["GPL3+"],
"platforms":["GNU/Linux", "platforms":["GNU/Linux",

View file

@ -80,6 +80,14 @@ def html(page, json):
</form></th> </form></th>
""" """
documentation = json.get("links",{}).get("documentation", "")
if documentation:
page = page + """
<th><form action=\""""+documentation+"""\">
<button type="submit">Documentation</button>
</form></th>
"""
page = page + "</tr></table>" page = page + "</tr></table>"
# Details # Details

View file

@ -16,6 +16,7 @@ from modules import search
from modules import render from modules import render
CSS = "https://zortazert.codeberg.page/style/styles.css" CSS = "https://zortazert.codeberg.page/style/styles.css"
try: try:
with open("port.json","r") as f: with open("port.json","r") as f:
json_stuff = json.load(f) json_stuff = json.load(f)
@ -30,7 +31,6 @@ except:
# Who fucking made this http.server so I need to use classes? # Who fucking made this http.server so I need to use classes?
# I fucking hate who ever thought that it was a good idea... # I fucking hate who ever thought that it was a good idea...
class handler(BaseHTTPRequestHandler): class handler(BaseHTTPRequestHandler):
def start_page(self): def start_page(self):