summaryrefslogtreecommitdiff
path: root/viewer-bff/public/index.html
blob: 8112bfa3212458c8ee3b748baf7019bc627f2243 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!doctype html>
<html lang="fr">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Viewer Medias (POC)</title>
    <link rel="stylesheet" href="/styles.css" />
  </head>
  <body>
    <main class="container">
      <h1>Viewer medias securise (POC)</h1>

      <section class="panel">
        <h2>1) Token utilisateur</h2>
        <textarea
          id="tokenInput"
          placeholder="Coller ici le JWT (Bearer token)"
          rows="5"
        ></textarea>
        <button id="loadPermissionsBtn">Charger permissions</button>
        <pre id="permissionsOutput">Aucune permission chargee.</pre>
      </section>

      <section class="panel">
        <h2>2) Cles objet a visualiser</h2>
        <p class="hint">
          Une cle par ligne, exemple: <code>photos/equipeA/2026/03/img001.jpg</code>
        </p>
        <textarea id="objectKeysInput" rows="8"></textarea>
        <div class="actions">
          <button id="buildGalleryBtn">Construire la galerie</button>
        </div>
      </section>

      <section class="panel">
        <h2>3) Galerie</h2>
        <div id="gallery" class="gallery"></div>
      </section>
    </main>

    <script src="/app.js"></script>
  </body>
</html>