Categories management plugin merge requestshttps://gitlab.mim-libre.fr/extensions-peertube/categories-management-plugin/-/merge_requests2021-12-18T14:37:48Zhttps://gitlab.mim-libre.fr/extensions-peertube/categories-management-plugin/-/merge_requests/10Replace categories.json2021-12-18T14:37:48ZBenoît PiédalluReplace categories.jsonadd complete categories list from MENJSadd complete categories list from MENJSJohan DufourJohan Dufourhttps://gitlab.mim-libre.fr/extensions-peertube/categories-management-plugin/-/merge_requests/9fix(api): reject promise when failing to parse a Json Response2021-08-26T14:12:06ZJohan Dufourfix(api): reject promise when failing to parse a Json ResponseJohan DufourJohan Dufourhttps://gitlab.mim-libre.fr/extensions-peertube/categories-management-plugin/-/merge_requests/8Fix/logger and custom route2021-06-28T12:35:18ZJohan DufourFix/logger and custom routeJohan DufourJohan Dufourhttps://gitlab.mim-libre.fr/extensions-peertube/categories-management-plugin/-/merge_requests/7fix: add assets file to the list of npm published files2021-06-25T14:59:27ZJohan Dufourfix: add assets file to the list of npm published filesJohan DufourJohan Dufourhttps://gitlab.mim-libre.fr/extensions-peertube/categories-management-plugin/-/merge_requests/6docs: update readme2021-06-24T14:07:27ZJohan Dufourdocs: update readmeJohan DufourJohan Dufourhttps://gitlab.mim-libre.fr/extensions-peertube/categories-management-plugin/-/merge_requests/5Fix/missing data2021-06-24T11:34:14ZJohan DufourFix/missing dataJohan DufourJohan Dufourhttps://gitlab.mim-libre.fr/extensions-peertube/categories-management-plugin/-/merge_requests/4feat: add preview table of altered categories2021-06-23T12:45:08ZJohan Dufourfeat: add preview table of altered categoriesThe implementation changed a lot, each time the customization is submitted,
initial categories are restored before applying the new custo.
Changed are also applied if a previous custo existed when the plugin is installed.
The preview t...The implementation changed a lot, each time the customization is submitted,
initial categories are restored before applying the new custo.
Changed are also applied if a previous custo existed when the plugin is installed.
The preview table is updated right after a successful form submission.
This is actually very hacky - might be a best hack - but it does
the job for now.
A cheap Json Validation has been implemented and is actually not that bad.Johan DufourJohan Dufourhttps://gitlab.mim-libre.fr/extensions-peertube/categories-management-plugin/-/merge_requests/3Feat/run on server restart2021-06-19T17:08:46ZJohan DufourFeat/run on server restartJohan DufourJohan Dufourhttps://gitlab.mim-libre.fr/extensions-peertube/categories-management-plugin/-/merge_requests/2chore: setup Continuous Delivery and hooks2021-06-16T08:27:16ZJohan Dufourchore: setup Continuous Delivery and hooksJohan DufourJohan Dufourhttps://gitlab.mim-libre.fr/extensions-peertube/categories-management-plugin/-/merge_requests/1Feat/json textarea2021-06-16T08:35:22ZJohan DufourFeat/json textareaVoici une version extrêmement naïve qui fonctionne avec une zone de texte dans laquelle on colle le contenu d'un fichier Json.
Quelques problème sur la page *settings* d'un plugin...
- impossible d'avoir un input de type upload
- pas d'...Voici une version extrêmement naïve qui fonctionne avec une zone de texte dans laquelle on colle le contenu d'un fichier Json.
Quelques problème sur la page *settings* d'un plugin...
- impossible d'avoir un input de type upload
- pas d'accès aux constantes depuis la page *settings*, obligé de passer par l'API Rest GET /categories (kind of hacky)
- impossible de faire échouer la soumission du formulaire en cas d'erreur (ou alors je n'ai pas encore trouvé)
Je me suis également battu pour afficher la liste des catégories mis à jours, une fois le formulaire validé, mais impossible d'afficher la liste jour via un `setting` de type `html`...
> potentiellement possible avec des scripts clients qui ciblerait cette page de setting, mais cela relèverais plus du hack qu'autre chose...
Cette session de boulot aura démontré que la page de configuration d'un plugin reste extrêmement limité,
> Des PRs sur PeerTube pourraient être faites pour améliorer cela mais cela demandera du boulot...
Pour la suite l'idée est donc de créer une page custom pour configurer les catégories.
Nous pourrons ajouter un lien vers cette la page de config sur la page setting du plugin pour garder le parcours utilisateurs cohérent.
> /!\ Voir aussi discussion maj ici, selon moi, modifier les constants en mémoire est une très mauvaise pratiques!
> https://framacolibri.org/t/categories-management-plugin/12315/2Johan DufourJohan Dufour