refactor: rename directories to kebab-case and clean up project structure

Rename CMDB -> cmdb (submodule), GENERATEUR_CERTIFICATES -> cert-generator, GENERATEUR_SWITCH -> switch-config

Remove deleted CMDB files, switch config examples, proxy.sh, and pycache artifacts
Update all internal path references across HTML, JS, and Python files
This commit is contained in:
Guillaume DENIS 2026-07-04 17:55:56 +02:00
parent bfc88f4afc
commit 2fb3621053
22 changed files with 27 additions and 9135 deletions

View file

@ -10,7 +10,7 @@ Un seul serveur, lancé à la racine du projet :
- http://127.0.0.1:8000/ redirige vers la CMDB
- CMDB : base partagée cmdb.db sourcée automatiquement (/db, versionnée)
- Générateur de certificats : écrit sur le disque dans
GENERATEUR_CERTIFICATES/LISTS_ALL_CERT/ (créé au besoin), aucun prompt
cert-generator/LISTS_ALL_CERT/ (créé au besoin), aucun prompt
- Sert les 3 applications + le switcher (liens relatifs OK)
- Recherche AD/LDAP de la CMDB conservée (nécessite `pip install ldap3`)
"""
@ -21,8 +21,8 @@ from urllib.parse import urlparse, parse_qs
PORT = int(sys.argv[1]) if len(sys.argv) > 1 else 8000
HERE = os.path.dirname(os.path.abspath(__file__)) # racine projet
CMDB_DIR = os.path.join(HERE, 'CMDB')
CERT_DIR = os.path.join(HERE, 'GENERATEUR_CERTIFICATES')
CMDB_DIR = os.path.join(HERE, 'cmdb')
CERT_DIR = os.path.join(HERE, 'cert-generator')
WORK = os.path.join(CERT_DIR, 'LISTS_ALL_CERT') # dossier de travail certs (disque)
ARCH = os.path.join(WORK, 'archives')
@ -84,7 +84,7 @@ class Handler(SimpleHTTPRequestHandler):
def _cert_api(self):
p = self.path.split('?', 1)[0]
if '/GENERATEUR_CERTIFICATES/api/' in p:
if '/cert-generator/api/' in p:
return p.split('/api/', 1)[1]
return None
@ -93,7 +93,7 @@ class Handler(SimpleHTTPRequestHandler):
# racine → CMDB
if self.path in ('/', '/index.html'):
self.send_response(302)
self.send_header('Location', '/CMDB/cmdb.html')
self.send_header('Location', '/cmdb/cmdb.html')
self.end_headers()
return
# base CMDB partagée