feat: add preview
This commit is contained in:
94
index.html
94
index.html
@@ -7,45 +7,67 @@
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Index of <span id="current-path">/</span></h1>
|
||||
|
||||
<!-- Formulaire de développement pour tester différentes URLs -->
|
||||
<div id="dev-form" class="dev-section">
|
||||
<h2>Mode Développement</h2>
|
||||
<form id="url-form">
|
||||
<label for="minio-url">URL MinIO à explorer :</label>
|
||||
<input type="text" id="minio-url" placeholder="https://mon-minio.example.com" />
|
||||
<div id="page-container">
|
||||
<!-- Header fixe -->
|
||||
<div id="header">
|
||||
<h1>Index of <span id="current-path">/</span></h1>
|
||||
|
||||
<button type="submit">Explorer</button>
|
||||
</form>
|
||||
<div id="config-info"></div>
|
||||
<!-- Formulaire de développement pour tester différentes URLs -->
|
||||
<div id="dev-form" class="dev-section">
|
||||
<h2>Mode Développement</h2>
|
||||
<form id="url-form">
|
||||
<label for="minio-url">URL MinIO à explorer :</label>
|
||||
<input type="text" id="minio-url" placeholder="https://mon-minio.example.com" />
|
||||
|
||||
<button type="submit">Explorer</button>
|
||||
</form>
|
||||
<div id="config-info"></div>
|
||||
</div>
|
||||
|
||||
<!-- Section d'erreur -->
|
||||
<div id="error-section" class="error" style="display: none;">
|
||||
<p id="error-message"></p>
|
||||
</div>
|
||||
|
||||
<!-- Loading indicator -->
|
||||
<div id="loading" style="display: none;">Chargement...</div>
|
||||
</div>
|
||||
|
||||
<!-- Container principal avec layout adaptatif -->
|
||||
<div id="main-container">
|
||||
<!-- Section de gauche/haut : tableau -->
|
||||
<div id="content-section">
|
||||
<!-- Tableau des fichiers et dossiers -->
|
||||
<table id="files-table" style="display: none;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Taille</th>
|
||||
<th>Date de modification</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="files-tbody">
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<!-- Section de droite/bas : prévisualisation -->
|
||||
<div id="preview-section" style="display: none;">
|
||||
<div class="preview-header">
|
||||
<span class="preview-title" id="preview-title">Prévisualisation:</span>
|
||||
<button id="close-preview">✕</button>
|
||||
</div>
|
||||
<div class="preview-content" id="preview-content">
|
||||
<!-- Contenu dynamique selon le type de fichier -->
|
||||
</div>
|
||||
<div class="preview-actions">
|
||||
<button id="download-file">Télécharger</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Section d'erreur -->
|
||||
<div id="error-section" class="error" style="display: none;">
|
||||
<p id="error-message"></p>
|
||||
</div>
|
||||
|
||||
<!-- Loading indicator -->
|
||||
<div id="loading" style="display: none;">Chargement...</div>
|
||||
|
||||
<!-- Tableau des fichiers et dossiers -->
|
||||
<table id="files-table" style="display: none;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Taille</th>
|
||||
<th>Date de modification</th>
|
||||
<th>Actions</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="files-tbody">
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<hr>
|
||||
<address>MinIO Explorer</address>
|
||||
|
||||
<script src="script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user