Graph de famille en frontend (#820)

* Remove graphviz and use cytoscape.js instead

* Frontend generated graphs
* Make installation easier and faster
* Better user experience
* Family api and improved interface
* Fix url history when using 0, improve button selection and reset reverse with reset button
* Use klay layout
* Add js translations and apply review comments
This commit is contained in:
Bartuccio Antoine
2024-09-17 12:10:06 +02:00
committed by GitHub
parent bf96d8a10c
commit f624b7c66d
29 changed files with 1332 additions and 684 deletions

View File

@ -31,7 +31,8 @@ Il faut d'abord générer un fichier de traductions,
l'éditer et enfin le compiler au format binaire pour qu'il soit lu par le serveur.
```bash
./manage.py makemessages --locale=fr --ignore "env/*" -e py,jinja
./manage.py makemessages --locale=fr -e py,jinja # Pour le backend
./manage.py makemessages --locale=fr -d djangojs # Pour le frontend
```
## Éditer le fichier django.po

View File

@ -8,7 +8,6 @@ Certaines dépendances sont nécessaires niveau système :
- zlib1g-dev
- python
- gettext
- graphviz
### Installer WSL
@ -71,8 +70,8 @@ cd /mnt/<la_lettre_du_disque>/vos/fichiers/comme/dhab
Puis installez les autres dépendances :
```bash
sudo apt install build-essentials libssl-dev libjpeg-dev zlib1g-dev python-dev \
libffi-dev python-dev-is-python3 libgraphviz-dev pkg-config \
sudo apt install build-essential libssl-dev libjpeg-dev zlib1g-dev python-dev \
libffi-dev python-dev-is-python3 pkg-config \
gettext git pipx
pipx install poetry
@ -85,7 +84,7 @@ cd /mnt/<la_lettre_du_disque>/vos/fichiers/comme/dhab
sudo pacman -S python
sudo pacman -S gcc git graphviz gettext graphviz pkgconf python-poetry
sudo pacman -S gcc git gettext pkgconf python-poetry
```
=== "macOS"
@ -93,12 +92,8 @@ cd /mnt/<la_lettre_du_disque>/vos/fichiers/comme/dhab
Pour installer les dépendances, il est fortement recommandé d'installer le gestionnaire de paquets `homebrew <https://brew.sh/index_fr>`_.
Il est également nécessaire d'avoir installé xcode
```bash
echo 'export PATH="$(brew --prefix graphviz)/bin:$PATH"' >> ~/.zshrc
echo 'export CFLAGS="-isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I $(brew --prefix graphviz)/include"' >> ~/.zshrc
echo 'export LDFLAGS="-L /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib -L $(brew --prefix graphviz)/lib"' >> ~/.zshrc
brew install git python graphviz pipx
```bash
brew install git python pipx
pipx install poetry
# Pour bien configurer gettext