1
0
Fork 0
mirror of https://github.com/YunoHost/apps.git synced 2024-09-03 20:06:07 +02:00

Anti-features draft

This commit is contained in:
Tagada 2022-01-21 23:17:36 +01:00
parent b8a1cc017e
commit 8c3408b840
3 changed files with 110 additions and 1 deletions

79
antifeatures.yml Normal file
View file

@ -0,0 +1,79 @@
- id: tracking
icon: user-secret
title:
en: "Tracking"
fr: "Pistage"
description:
en: "Track you and/or report your activity to somewhere, either without your permission or by default."
- id: non-free-network
icon: network-wired
title:
en: "Non-free Network Services"
fr : "Services réseau non-libres"
description:
en: "Promote or depend entirely on a Non-Free network service."
- id: non-free-addons
icon: puzzle-piece
title:
en: "Non-free Addons"
fr: "Extensions non libres"
description:
en: "Promote other Non-Free applications or plugins."
- id: non-free-dependencies
icon: book
title:
en: "Non-free dependencies"
description:
en: "Require things that are not Free Software in order to run"
- id: non-free-assets
icon: file-image
title:
en: "Non-free assets"
fr: "Ressources non libres"
description:
en: "Contain and make use of non-ree assets. The most common case is apps using artwork - images, sounds, music, etc. - under a non-commercial license."
- id: known-vulnerability
icon: face-frown
title:
en: "Known Vulnerability"
fr: "Vulnérabilité connue"
description:
en: "Known security vulnerability."
- id: deprecated-software
icon: face-frown
title:
en: "Upstream not maintained"
fr: "Application non maintenue"
description:
en: "This software is not maintained anymore."
- id: package-not-maintained
icon: face-frown
title:
en: "Package not maintained"
fr: "Paquet non maintenu"
description:
en: "YunoHost package is not maintained anymore."
- id: paid-content
icon: coins
title:
en: "Paid content"
fr: "Contenu payant"
description:
en: "Promote or depend entierly on a paid service."
- id: arbitrary-limitations
icon: face-frown
title:
en: "Arbitrary limitations"
fr: "Limitations arbritraires"
description:
en: "Please refer to the README."
fr: "Se référer au fichier README."

View file

@ -3,6 +3,9 @@
"category": "games", "category": "games",
"level": 8, "level": 8,
"state": "working", "state": "working",
"antifeatures": [
"non-free-assets"
],
"url": "https://github.com/YunoHost-Apps/20euros_ynh" "url": "https://github.com/YunoHost-Apps/20euros_ynh"
}, },
"243": { "243": {
@ -92,6 +95,9 @@
"subtags": [ "subtags": [
"download" "download"
], ],
"antifeatures": [
"non-free-network"
],
"url": "https://github.com/YunoHost-Apps/alltube_ynh" "url": "https://github.com/YunoHost-Apps/alltube_ynh"
}, },
"ampache": { "ampache": {
@ -199,6 +205,9 @@
"subtags": [ "subtags": [
"pictures" "pictures"
], ],
"antifeatures": [
"non-free-network"
],
"url": "https://github.com/YunoHost-Apps/bibliogram_ynh" "url": "https://github.com/YunoHost-Apps/bibliogram_ynh"
}, },
"biboumi": { "biboumi": {
@ -527,6 +536,9 @@
"category": "games", "category": "games",
"level": 8, "level": 8,
"state": "working", "state": "working",
"antifeatures": [
"tracking"
],
"url": "https://github.com/YunoHost-Apps/Cubiks-2048_ynh" "url": "https://github.com/YunoHost-Apps/Cubiks-2048_ynh"
}, },
"dato": { "dato": {
@ -1375,6 +1387,9 @@
"subtags": [ "subtags": [
"videos" "videos"
], ],
"antifeatures": [
"non-free-network"
],
"url": "https://github.com/YunoHost-Apps/invidious_ynh" "url": "https://github.com/YunoHost-Apps/invidious_ynh"
}, },
"invoiceninja": { "invoiceninja": {
@ -2168,6 +2183,9 @@
"subtags": [ "subtags": [
"microblogging" "microblogging"
], ],
"antifeatures": [
"non-free-network"
],
"url": "https://github.com/YunoHost-Apps/nitter_ynh" "url": "https://github.com/YunoHost-Apps/nitter_ynh"
}, },
"noalyss": { "noalyss": {
@ -3557,6 +3575,10 @@
"websites", "websites",
"blog" "blog"
], ],
"antifeatures": [
"non-free-addons",
"paid-content"
],
"url": "https://github.com/YunoHost-Apps/wordpress_ynh" "url": "https://github.com/YunoHost-Apps/wordpress_ynh"
}, },
"writefreely": { "writefreely": {
@ -3612,6 +3634,9 @@
"subtags": [ "subtags": [
"download" "download"
], ],
"antifeatures": [
"non-free-network"
],
"url": "https://github.com/YunoHost-Apps/youtube-dl-webui_ynh" "url": "https://github.com/YunoHost-Apps/youtube-dl-webui_ynh"
}, },
"yunofav": { "yunofav": {
@ -3701,6 +3726,9 @@
"subtags": [ "subtags": [
"network" "network"
], ],
"antifeatures": [
"non-free-dependencies"
],
"url": "https://github.com/YunoHost-Apps/ztncui_ynh" "url": "https://github.com/YunoHost-Apps/ztncui_ynh"
}, },
"zusam": { "zusam": {

View file

@ -149,9 +149,10 @@ def build_catalog():
# Current version 2 # # Current version 2 #
##################### #####################
categories = yaml.load(open("categories.yml").read()) categories = yaml.load(open("categories.yml").read())
antifeatures = yaml.load(open("antifeatures.yml").read())
os.system("mkdir -p ./builds/default/v2/") os.system("mkdir -p ./builds/default/v2/")
with open("builds/default/v2/apps.json", 'w') as f: with open("builds/default/v2/apps.json", 'w') as f:
f.write(json.dumps({"apps": result_dict, "categories": categories}, sort_keys=True)) f.write(json.dumps({"apps": result_dict, "categories": categories, "antifeatures": antifeatures}, sort_keys=True))
#################### ####################
# Legacy version 1 # # Legacy version 1 #
@ -199,6 +200,7 @@ def build_catalog():
"broken": level <= 0, "broken": level <= 0,
"good_quality": level >= 8, "good_quality": level >= 8,
"bad_quality": level <= 5, "bad_quality": level <= 5,
"antifeatures": infos.get("antifeatures"),
} }
result_dict_doc = {k: infos_for_doc_catalog(v) for k, v in result_dict.items() if v["state"] in ["working", "validated"]} result_dict_doc = {k: infos_for_doc_catalog(v) for k, v in result_dict.items() if v["state"] in ["working", "validated"]}
with open("builds/default/doc_catalog/apps.json", 'w') as f: with open("builds/default/doc_catalog/apps.json", 'w') as f: