Spaces:
Running
Running
Add 3 files
Browse files- README.md +6 -4
- index.html +400 -19
- prompts.txt +4 -0
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
colorFrom: green
|
5 |
-
colorTo:
|
6 |
sdk: static
|
7 |
pinned: false
|
|
|
|
|
8 |
---
|
9 |
|
10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: correction-automatique
|
3 |
+
emoji: 🐳
|
4 |
colorFrom: green
|
5 |
+
colorTo: blue
|
6 |
sdk: static
|
7 |
pinned: false
|
8 |
+
tags:
|
9 |
+
- deepsite
|
10 |
---
|
11 |
|
12 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
index.html
CHANGED
@@ -1,19 +1,400 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html lang="fr">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>AutoDNS Fix - Résolution Automatique DNS</title>
|
7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
8 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
9 |
+
<style>
|
10 |
+
.progress-container {
|
11 |
+
position: relative;
|
12 |
+
height: 8px;
|
13 |
+
background-color: #e5e7eb;
|
14 |
+
border-radius: 4px;
|
15 |
+
overflow: hidden;
|
16 |
+
}
|
17 |
+
.progress-bar {
|
18 |
+
position: absolute;
|
19 |
+
height: 100%;
|
20 |
+
background-color: #10b981;
|
21 |
+
transition: width 0.3s ease;
|
22 |
+
}
|
23 |
+
.terminal-line {
|
24 |
+
animation: fadeIn 0.3s ease-out;
|
25 |
+
}
|
26 |
+
@keyframes fadeIn {
|
27 |
+
from { opacity: 0; transform: translateY(5px); }
|
28 |
+
to { opacity: 1; transform: translateY(0); }
|
29 |
+
}
|
30 |
+
.dns-record {
|
31 |
+
transition: all 0.2s ease;
|
32 |
+
}
|
33 |
+
.dns-record:hover {
|
34 |
+
background-color: #f8fafc;
|
35 |
+
transform: translateX(2px);
|
36 |
+
}
|
37 |
+
.error-badge {
|
38 |
+
animation: pulse 2s infinite;
|
39 |
+
}
|
40 |
+
@keyframes pulse {
|
41 |
+
0% { opacity: 1; }
|
42 |
+
50% { opacity: 0.7; }
|
43 |
+
100% { opacity: 1; }
|
44 |
+
}
|
45 |
+
</style>
|
46 |
+
</head>
|
47 |
+
<body class="bg-gray-50 text-gray-800 font-sans">
|
48 |
+
<div class="min-h-screen">
|
49 |
+
<!-- Header -->
|
50 |
+
<header class="bg-white shadow-sm">
|
51 |
+
<div class="max-w-7xl mx-auto px-4 py-4 sm:px-6 lg:px-8 flex justify-between items-center">
|
52 |
+
<div class="flex items-center">
|
53 |
+
<i class="fas fa-network-wired text-indigo-600 text-2xl mr-3"></i>
|
54 |
+
<h1 class="text-xl font-bold text-gray-900">AutoDNS Fix</h1>
|
55 |
+
</div>
|
56 |
+
<nav class="flex space-x-8">
|
57 |
+
<a href="#" class="text-indigo-600 font-medium">Diagnostic</a>
|
58 |
+
<a href="#" class="text-gray-500 hover:text-gray-700">Solutions</a>
|
59 |
+
<a href="#" class="text-gray-500 hover:text-gray-700">Documentation</a>
|
60 |
+
</nav>
|
61 |
+
</div>
|
62 |
+
</header>
|
63 |
+
|
64 |
+
<!-- Main Content -->
|
65 |
+
<main class="max-w-7xl mx-auto px-4 py-8 sm:px-6 lg:px-8">
|
66 |
+
<div class="bg-white shadow rounded-lg overflow-hidden">
|
67 |
+
<!-- Error Header -->
|
68 |
+
<div class="px-6 py-5 border-b border-gray-200 flex items-center justify-between bg-red-50">
|
69 |
+
<div>
|
70 |
+
<h2 class="text-lg font-medium text-gray-900 flex items-center">
|
71 |
+
<span class="error-badge inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-red-100 text-red-800 mr-3">
|
72 |
+
<i class="fas fa-exclamation-circle mr-1"></i> ERREUR
|
73 |
+
</span>
|
74 |
+
DNS_PROBE_FINISHED_NXDOMAIN
|
75 |
+
</h2>
|
76 |
+
<p class="mt-1 text-sm text-gray-500">Le domaine n'existe pas ou n'est pas configuré correctement dans le système DNS</p>
|
77 |
+
</div>
|
78 |
+
<div class="flex items-center space-x-3">
|
79 |
+
<span class="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-yellow-100 text-yellow-800">
|
80 |
+
<i class="fas fa-circle text-yellow-500 mr-2" style="font-size: 8px;"></i>
|
81 |
+
Correction requise
|
82 |
+
</span>
|
83 |
+
</div>
|
84 |
+
</div>
|
85 |
+
|
86 |
+
<!-- Automatic Fix Section -->
|
87 |
+
<div class="px-6 py-5 border-b border-gray-200">
|
88 |
+
<div class="flex items-start">
|
89 |
+
<div class="flex-shrink-0">
|
90 |
+
<i class="fas fa-magic text-indigo-600 text-2xl"></i>
|
91 |
+
</div>
|
92 |
+
<div class="ml-4">
|
93 |
+
<h3 class="text-lg font-medium text-gray-900">Correction Automatique</h3>
|
94 |
+
<p class="mt-1 text-sm text-gray-500">Notre système va tenter de résoudre automatiquement le problème DNS</p>
|
95 |
+
|
96 |
+
<div class="mt-4">
|
97 |
+
<div class="progress-container w-full">
|
98 |
+
<div id="fix-progress" class="progress-bar" style="width: 0%"></div>
|
99 |
+
</div>
|
100 |
+
<div class="mt-2 flex justify-between text-sm text-gray-500">
|
101 |
+
<span>0% complété</span>
|
102 |
+
<span id="progress-status">Préparation...</span>
|
103 |
+
</div>
|
104 |
+
</div>
|
105 |
+
</div>
|
106 |
+
</div>
|
107 |
+
</div>
|
108 |
+
|
109 |
+
<!-- Configuration Content -->
|
110 |
+
<div class="p-6">
|
111 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
112 |
+
<!-- DNS Diagnostic -->
|
113 |
+
<div class="lg:col-span-2 space-y-6">
|
114 |
+
<div class="bg-white border border-gray-200 rounded-lg shadow-sm overflow-hidden">
|
115 |
+
<div class="px-4 py-5 sm:px-6 border-b border-gray-200">
|
116 |
+
<h3 class="text-lg font-medium leading-6 text-gray-900">Diagnostic DNS</h3>
|
117 |
+
</div>
|
118 |
+
<div class="px-4 py-5 sm:p-6">
|
119 |
+
<div class="space-y-4">
|
120 |
+
<div>
|
121 |
+
<label for="domain-name" class="block text-sm font-medium text-gray-700">Domaine affecté</label>
|
122 |
+
<div class="mt-1 flex rounded-md shadow-sm">
|
123 |
+
<input type="text" id="domain-name" class="flex-1 min-w-0 block w-full px-3 py-2 rounded-md border-gray-300 focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm" placeholder="exemple.com" value="votresite.com">
|
124 |
+
</div>
|
125 |
+
</div>
|
126 |
+
|
127 |
+
<div class="pt-4 border-t border-gray-200">
|
128 |
+
<h4 class="text-sm font-medium text-gray-700 mb-3">Problèmes détectés</h4>
|
129 |
+
<div class="space-y-3">
|
130 |
+
<div class="dns-record flex items-start p-3 border border-red-200 bg-red-50 rounded-md">
|
131 |
+
<div class="flex-shrink-0 pt-1">
|
132 |
+
<i class="fas fa-times-circle text-red-500"></i>
|
133 |
+
</div>
|
134 |
+
<div class="ml-3">
|
135 |
+
<p class="text-sm font-medium text-red-800">Enregistrement A manquant</p>
|
136 |
+
<p class="text-xs text-red-600">Le domaine ne pointe vers aucune adresse IP</p>
|
137 |
+
</div>
|
138 |
+
</div>
|
139 |
+
<div class="dns-record flex items-start p-3 border border-yellow-200 bg-yellow-50 rounded-md">
|
140 |
+
<div class="flex-shrink-0 pt-1">
|
141 |
+
<i class="fas fa-exclamation-triangle text-yellow-500"></i>
|
142 |
+
</div>
|
143 |
+
<div class="ml-3">
|
144 |
+
<p class="text-sm font-medium text-yellow-800">Propagation DNS incomplète</p>
|
145 |
+
<p class="text-xs text-yellow-600">Les changements DNS peuvent prendre jusqu'à 48h</p>
|
146 |
+
</div>
|
147 |
+
</div>
|
148 |
+
<div class="dns-record flex items-start p-3 border border-blue-200 bg-blue-50 rounded-md">
|
149 |
+
<div class="flex-shrink-0 pt-1">
|
150 |
+
<i class="fas fa-info-circle text-blue-500"></i>
|
151 |
+
</div>
|
152 |
+
<div class="ml-3">
|
153 |
+
<p class="text-sm font-medium text-blue-800">Serveurs DNS par défaut</p>
|
154 |
+
<p class="text-xs text-blue-600">Utilisation de serveurs DNS publics (8.8.8.8, 1.1.1.1)</p>
|
155 |
+
</div>
|
156 |
+
</div>
|
157 |
+
</div>
|
158 |
+
</div>
|
159 |
+
</div>
|
160 |
+
</div>
|
161 |
+
</div>
|
162 |
+
|
163 |
+
<!-- DNS Configuration -->
|
164 |
+
<div class="bg-white border border-gray-200 rounded-lg shadow-sm overflow-hidden">
|
165 |
+
<div class="px-4 py-5 sm:px-6 border-b border-gray-200">
|
166 |
+
<h3 class="text-lg font-medium leading-6 text-gray-900">Configuration DNS Automatique</h3>
|
167 |
+
</div>
|
168 |
+
<div class="px-4 py-5 sm:p-6">
|
169 |
+
<div class="flex items-start">
|
170 |
+
<div class="flex items-center h-5">
|
171 |
+
<input id="auto-fix" name="auto-fix" type="checkbox" checked class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded">
|
172 |
+
</div>
|
173 |
+
<div class="ml-3 text-sm">
|
174 |
+
<label for="auto-fix" class="font-medium text-gray-700">Activer la correction automatique</label>
|
175 |
+
<p class="text-gray-500">Le système configurera automatiquement les enregistrements DNS nécessaires</p>
|
176 |
+
</div>
|
177 |
+
</div>
|
178 |
+
|
179 |
+
<div class="mt-6">
|
180 |
+
<label class="block text-sm font-medium text-gray-700">Options avancées</label>
|
181 |
+
<div class="mt-2 space-y-4">
|
182 |
+
<div class="flex items-center">
|
183 |
+
<input id="force-ttl" name="force-ttl" type="checkbox" checked class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded">
|
184 |
+
<label for="force-ttl" class="ml-2 block text-sm text-gray-700">Forcer un TTL bas (300s)</label>
|
185 |
+
</div>
|
186 |
+
<div class="flex items-center">
|
187 |
+
<input id="dnssec" name="dnssec" type="checkbox" class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded">
|
188 |
+
<label for="dnssec" class="ml-2 block text-sm text-gray-700">Activer DNSSEC</label>
|
189 |
+
</div>
|
190 |
+
<div class="flex items-center">
|
191 |
+
<input id="cdn" name="cdn" type="checkbox" class="focus:ring-indigo-500 h-4 w-4 text-indigo-600 border-gray-300 rounded">
|
192 |
+
<label for="cdn" class="ml-2 block text-sm text-gray-700">Activer le CDN global</label>
|
193 |
+
</div>
|
194 |
+
</div>
|
195 |
+
</div>
|
196 |
+
</div>
|
197 |
+
</div>
|
198 |
+
</div>
|
199 |
+
|
200 |
+
<!-- Fix Actions -->
|
201 |
+
<div class="space-y-6">
|
202 |
+
<div class="bg-white border border-gray-200 rounded-lg shadow-sm overflow-hidden">
|
203 |
+
<div class="px-4 py-5 sm:px-6 border-b border-gray-200">
|
204 |
+
<h3 class="text-lg font-medium leading-6 text-gray-900">Actions de Correction</h3>
|
205 |
+
</div>
|
206 |
+
<div class="px-4 py-5 sm:p-6">
|
207 |
+
<div class="space-y-4">
|
208 |
+
<div>
|
209 |
+
<label for="dns-provider" class="block text-sm font-medium text-gray-700">Fournisseur DNS</label>
|
210 |
+
<select id="dns-provider" class="mt-1 block w-full pl-3 pr-10 py-2 text-base border-gray-300 focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm rounded-md">
|
211 |
+
<option>Cloudflare (recommandé)</option>
|
212 |
+
<option>Google DNS</option>
|
213 |
+
<option>OpenDNS</option>
|
214 |
+
<option>Autre</option>
|
215 |
+
</select>
|
216 |
+
</div>
|
217 |
+
|
218 |
+
<div class="pt-4 border-t border-gray-200">
|
219 |
+
<h4 class="text-sm font-medium text-gray-700 mb-3">Enregistrements à créer</h4>
|
220 |
+
<div class="space-y-2">
|
221 |
+
<div class="dns-record flex items-center justify-between p-3 border border-gray-200 rounded-md">
|
222 |
+
<div>
|
223 |
+
<span class="font-mono text-sm bg-gray-100 px-2 py-1 rounded">A</span>
|
224 |
+
<span class="ml-2 text-sm">@</span>
|
225 |
+
</div>
|
226 |
+
<div class="text-right">
|
227 |
+
<span class="font-mono text-sm bg-gray-100 px-2 py-1 rounded">192.0.2.1</span>
|
228 |
+
</div>
|
229 |
+
</div>
|
230 |
+
<div class="dns-record flex items-center justify-between p-3 border border-gray-200 rounded-md">
|
231 |
+
<div>
|
232 |
+
<span class="font-mono text-sm bg-gray-100 px-2 py-1 rounded">AAAA</span>
|
233 |
+
<span class="ml-2 text-sm">@</span>
|
234 |
+
</div>
|
235 |
+
<div class="text-right">
|
236 |
+
<span class="font-mono text-sm bg-gray-100 px-2 py-1 rounded">2001:db8::1</span>
|
237 |
+
</div>
|
238 |
+
</div>
|
239 |
+
<div class="dns-record flex items-center justify-between p-3 border border-gray-200 rounded-md">
|
240 |
+
<div>
|
241 |
+
<span class="font-mono text-sm bg-gray-100 px-2 py-1 rounded">CNAME</span>
|
242 |
+
<span class="ml-2 text-sm">www</span>
|
243 |
+
</div>
|
244 |
+
<div class="text-right">
|
245 |
+
<span class="font-mono text-sm bg-gray-100 px-2 py-1 rounded">votresite.com</span>
|
246 |
+
</div>
|
247 |
+
</div>
|
248 |
+
</div>
|
249 |
+
</div>
|
250 |
+
</div>
|
251 |
+
</div>
|
252 |
+
</div>
|
253 |
+
|
254 |
+
<!-- Fix Button -->
|
255 |
+
<div class="bg-white border border-gray-200 rounded-lg shadow-sm overflow-hidden">
|
256 |
+
<div class="px-4 py-5 sm:p-6">
|
257 |
+
<button id="start-fix" class="w-full flex justify-center py-3 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
|
258 |
+
<i class="fas fa-bolt mr-2"></i> Lancer la correction automatique
|
259 |
+
</button>
|
260 |
+
<p class="mt-2 text-xs text-gray-500">Cette opération peut prendre quelques minutes</p>
|
261 |
+
</div>
|
262 |
+
</div>
|
263 |
+
</div>
|
264 |
+
</div>
|
265 |
+
</div>
|
266 |
+
</div>
|
267 |
+
|
268 |
+
<!-- Fix Terminal (hidden by default) -->
|
269 |
+
<div id="fix-terminal" class="hidden mt-8 bg-white shadow rounded-lg overflow-hidden">
|
270 |
+
<div class="px-4 py-5 border-b border-gray-200 sm:px-6">
|
271 |
+
<h3 class="text-lg font-medium text-gray-900">Journal de Correction DNS</h3>
|
272 |
+
</div>
|
273 |
+
<div class="p-4">
|
274 |
+
<div id="terminal" class="h-96 rounded-lg overflow-y-auto p-4 bg-gray-900 text-gray-100 font-mono text-sm">
|
275 |
+
<div class="terminal-line text-green-400">$ Initialisation de la correction DNS...</div>
|
276 |
+
<!-- Terminal lines will be added here by JavaScript -->
|
277 |
+
</div>
|
278 |
+
<div class="mt-4 flex justify-end">
|
279 |
+
<button id="cancel-fix" class="mr-2 inline-flex items-center px-4 py-2 border border-gray-300 shadow-sm text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
|
280 |
+
Annuler
|
281 |
+
</button>
|
282 |
+
<button id="verify-fix" class="hidden inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-green-600 hover:bg-green-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-green-500">
|
283 |
+
<i class="fas fa-check-circle mr-2"></i> Vérifier la correction
|
284 |
+
</button>
|
285 |
+
</div>
|
286 |
+
</div>
|
287 |
+
</div>
|
288 |
+
</main>
|
289 |
+
</div>
|
290 |
+
|
291 |
+
<script>
|
292 |
+
// Start DNS fix process
|
293 |
+
document.getElementById('start-fix').addEventListener('click', function() {
|
294 |
+
// Show terminal
|
295 |
+
document.getElementById('fix-terminal').classList.remove('hidden');
|
296 |
+
const terminal = document.getElementById('terminal');
|
297 |
+
|
298 |
+
// Disable button
|
299 |
+
this.disabled = true;
|
300 |
+
this.innerHTML = '<i class="fas fa-spinner fa-spin mr-2"></i> Correction en cours...';
|
301 |
+
|
302 |
+
// Get domain name
|
303 |
+
const domain = document.getElementById('domain-name').value || 'votresite.com';
|
304 |
+
|
305 |
+
// Update progress bar
|
306 |
+
const progressBar = document.getElementById('fix-progress');
|
307 |
+
const progressStatus = document.getElementById('progress-status');
|
308 |
+
|
309 |
+
// Simulate DNS fix process
|
310 |
+
const steps = [
|
311 |
+
{text: "Connexion à l'API DNS...", progress: 5, status: "Connexion aux serveurs DNS"},
|
312 |
+
{text: "Vérification de la zone DNS pour " + domain + "...", progress: 10, status: "Analyse de la zone DNS"},
|
313 |
+
{text: "Détection des serveurs de noms...", progress: 15, status: "Recherche des NS records"},
|
314 |
+
{text: "Configuration des serveurs de noms avec Cloudflare...", progress: 25, status: "Mise à jour des NS records"},
|
315 |
+
{text: "✓ Serveurs de noms configurés", color: "text-green-400", progress: 30, status: "Serveurs de noms mis à jour"},
|
316 |
+
{text: "Création de l'enregistrement A pour @" + domain + "...", progress: 40, status: "Création du record A"},
|
317 |
+
{text: "Définition de l'adresse IP (192.0.2.1)...", progress: 50, status: "Configuration de l'IP"},
|
318 |
+
{text: "✓ Enregistrement A créé avec succès", color: "text-green-400", progress: 60, status: "Record A configuré"},
|
319 |
+
{text: "Création de l'enregistrement CNAME pour www." + domain + "...", progress: 70, status: "Création du CNAME"},
|
320 |
+
{text: "✓ Enregistrement CNAME créé avec succès", color: "text-green-400", progress: 80, status: "Record CNAME configuré"},
|
321 |
+
{text: "Forçage du TTL à 300 secondes...", progress: 85, status: "Réglage du TTL"},
|
322 |
+
{text: "Propagation des changements DNS...", progress: 90, status: "Propagation en cours"},
|
323 |
+
{text: "Vérification de la résolution DNS...", progress: 95, status: "Test de résolution"},
|
324 |
+
{text: "✓ Résolution DNS fonctionnelle pour " + domain, color: "text-green-400", progress: 100, status: "Résolution confirmée"},
|
325 |
+
{text: "La correction DNS est terminée avec succès!", color: "text-green-400", progress: 100, status: "Terminé"}
|
326 |
+
];
|
327 |
+
|
328 |
+
let totalDelay = 0;
|
329 |
+
steps.forEach(step => {
|
330 |
+
totalDelay += 500;
|
331 |
+
setTimeout(() => {
|
332 |
+
const line = document.createElement('div');
|
333 |
+
line.className = `terminal-line mb-1 ${step.color || 'text-gray-300'}`;
|
334 |
+
line.textContent = step.text;
|
335 |
+
terminal.appendChild(line);
|
336 |
+
terminal.scrollTop = terminal.scrollHeight;
|
337 |
+
|
338 |
+
// Update progress
|
339 |
+
progressBar.style.width = `${step.progress}%`;
|
340 |
+
progressStatus.textContent = step.status;
|
341 |
+
|
342 |
+
// Show verify button when done
|
343 |
+
if (step.text.includes("terminée avec succès")) {
|
344 |
+
document.getElementById('verify-fix').classList.remove('hidden');
|
345 |
+
document.getElementById('start-fix').innerHTML = '<i class="fas fa-check mr-2"></i> Correction terminée';
|
346 |
+
|
347 |
+
// Update status badge
|
348 |
+
const statusBadge = document.querySelector('.bg-yellow-100');
|
349 |
+
statusBadge.className = 'inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-green-100 text-green-800';
|
350 |
+
statusBadge.innerHTML = '<i class="fas fa-circle text-green-500 mr-2" style="font-size: 8px;"></i> Résolu';
|
351 |
+
|
352 |
+
// Update error header
|
353 |
+
document.querySelector('.bg-red-50').className = 'px-6 py-5 border-b border-gray-200 flex items-center justify-between bg-green-50';
|
354 |
+
}
|
355 |
+
}, totalDelay);
|
356 |
+
});
|
357 |
+
});
|
358 |
+
|
359 |
+
// Verify fix button
|
360 |
+
document.getElementById('verify-fix').addEventListener('click', function() {
|
361 |
+
const terminal = document.getElementById('terminal');
|
362 |
+
const domain = document.getElementById('domain-name').value || 'votresite.com';
|
363 |
+
|
364 |
+
const steps = [
|
365 |
+
{text: "$ ping " + domain, delay: 0},
|
366 |
+
{text: "PING " + domain + " (192.0.2.1): 56 data bytes", delay: 500, color: "text-gray-300"},
|
367 |
+
{text: "64 bytes from 192.0.2.1: icmp_seq=0 ttl=54 time=23.183 ms", delay: 1000, color: "text-gray-300"},
|
368 |
+
{text: "✓ La résolution DNS fonctionne correctement", delay: 1500, color: "text-green-400"},
|
369 |
+
{text: "$ nslookup " + domain, delay: 2000},
|
370 |
+
{text: "Server: 8.8.8.8", delay: 2500, color: "text-gray-300"},
|
371 |
+
{text: "Address: 8.8.8.8#53", delay: 3000, color: "text-gray-300"},
|
372 |
+
{text: "", delay: 3500, color: "text-gray-300"},
|
373 |
+
{text: "Non-authoritative answer:", delay: 4000, color: "text-gray-300"},
|
374 |
+
{text: "Name: " + domain, delay: 4500, color: "text-gray-300"},
|
375 |
+
{text: "Address: 192.0.2.1", delay: 5000, color: "text-gray-300"},
|
376 |
+
{text: "✓ Tous les tests DNS sont réussis", delay: 5500, color: "text-green-400"}
|
377 |
+
];
|
378 |
+
|
379 |
+
let totalDelay = 0;
|
380 |
+
steps.forEach(step => {
|
381 |
+
totalDelay += step.delay;
|
382 |
+
setTimeout(() => {
|
383 |
+
const line = document.createElement('div');
|
384 |
+
line.className = `terminal-line mb-1 ${step.color || 'text-gray-300'}`;
|
385 |
+
line.textContent = step.text;
|
386 |
+
terminal.appendChild(line);
|
387 |
+
terminal.scrollTop = terminal.scrollHeight;
|
388 |
+
}, totalDelay);
|
389 |
+
});
|
390 |
+
});
|
391 |
+
|
392 |
+
// Cancel fix
|
393 |
+
document.getElementById('cancel-fix').addEventListener('click', function() {
|
394 |
+
if (confirm('Voulez-vous vraiment annuler la correction DNS ?')) {
|
395 |
+
location.reload();
|
396 |
+
}
|
397 |
+
});
|
398 |
+
</script>
|
399 |
+
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=docto41/correction-automatique" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
400 |
+
</html>
|
prompts.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
Générateur de sites complexes 1500+ lignes de code Créez des applications web complètes avec architecture professionnelle en quelques clics PAS DE SITE VITRINE
|
2 |
+
creer un généérateur de site automatique avec deploiement en automatique
|
3 |
+
deploiyer le site avec dns, ssl , serveur dns directement en automatique
|
4 |
+
veuillez corriger l'erreur DNS_PROBE_FINISHED_NXDOMAIN en automatique
|