Spaces:
Running
Running
Add 3 files
Browse files- README.md +7 -5
- index.html +886 -19
- prompts.txt +2 -0
README.md
CHANGED
@@ -1,10 +1,12 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji:
|
4 |
-
colorFrom:
|
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: generateur-ai
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: red
|
5 |
+
colorTo: red
|
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,886 @@
|
|
1 |
-
<!
|
2 |
-
<html>
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
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>NexusGen Pro - Générateur avec Supabase</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 |
+
<script src="https://unpkg.com/@supabase/supabase-js@2"></script>
|
10 |
+
<script>
|
11 |
+
tailwind.config = {
|
12 |
+
theme: {
|
13 |
+
extend: {
|
14 |
+
colors: {
|
15 |
+
primary: '#6366f1',
|
16 |
+
secondary: '#8b5cf6',
|
17 |
+
dark: '#1e293b',
|
18 |
+
light: '#f8fafc',
|
19 |
+
accent: '#10b981'
|
20 |
+
},
|
21 |
+
fontFamily: {
|
22 |
+
sans: ['Inter', 'sans-serif'],
|
23 |
+
mono: ['Fira Code', 'monospace']
|
24 |
+
}
|
25 |
+
}
|
26 |
+
}
|
27 |
+
}
|
28 |
+
|
29 |
+
// Configuration Supabase
|
30 |
+
const supabaseUrl = 'https://your-project.supabase.co';
|
31 |
+
const supabaseKey = 'your-anon-key';
|
32 |
+
const supabase = supabase.createClient(supabaseUrl, supabaseKey);
|
33 |
+
</script>
|
34 |
+
<style>
|
35 |
+
.gradient-bg {
|
36 |
+
background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
|
37 |
+
}
|
38 |
+
.card-hover {
|
39 |
+
transition: all 0.3s ease;
|
40 |
+
}
|
41 |
+
.card-hover:hover {
|
42 |
+
transform: translateY(-5px);
|
43 |
+
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
|
44 |
+
}
|
45 |
+
.page-preview {
|
46 |
+
height: 500px;
|
47 |
+
overflow-y: auto;
|
48 |
+
border: 1px solid #e2e8f0;
|
49 |
+
border-radius: 0.5rem;
|
50 |
+
background-color: white;
|
51 |
+
}
|
52 |
+
.neon-text {
|
53 |
+
text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #0073e6, 0 0 20px #0073e6;
|
54 |
+
}
|
55 |
+
.supabase-connected {
|
56 |
+
position: relative;
|
57 |
+
}
|
58 |
+
.supabase-connected::after {
|
59 |
+
content: '';
|
60 |
+
position: absolute;
|
61 |
+
top: -5px;
|
62 |
+
right: -5px;
|
63 |
+
width: 15px;
|
64 |
+
height: 15px;
|
65 |
+
background-color: #10b981;
|
66 |
+
border-radius: 50%;
|
67 |
+
border: 2px solid white;
|
68 |
+
}
|
69 |
+
</style>
|
70 |
+
</head>
|
71 |
+
<body class="bg-gray-50 font-sans">
|
72 |
+
<!-- Header avec indicateur Supabase -->
|
73 |
+
<header class="gradient-bg text-white">
|
74 |
+
<div class="container mx-auto px-4 py-8">
|
75 |
+
<div class="flex justify-between items-center">
|
76 |
+
<div class="flex items-center space-x-2">
|
77 |
+
<i class="fas fa-rocket text-3xl"></i>
|
78 |
+
<h1 class="text-2xl font-bold">NexusGen <span class="text-accent">Pro</span></h1>
|
79 |
+
</div>
|
80 |
+
<div class="flex items-center space-x-4">
|
81 |
+
<div id="supabase-status" class="flex items-center bg-black bg-opacity-20 px-3 py-1 rounded-full">
|
82 |
+
<i class="fas fa-database mr-2"></i>
|
83 |
+
<span>Supabase</span>
|
84 |
+
<span class="ml-2 px-2 py-0.5 bg-red-500 rounded-full text-xs">Déconnecté</span>
|
85 |
+
</div>
|
86 |
+
<button class="md:hidden text-2xl">
|
87 |
+
<i class="fas fa-bars"></i>
|
88 |
+
</button>
|
89 |
+
</div>
|
90 |
+
</div>
|
91 |
+
|
92 |
+
<div class="mt-16 mb-24 text-center">
|
93 |
+
<h2 class="text-4xl md:text-6xl font-bold mb-4 neon-text">Générateur avec Supabase</h2>
|
94 |
+
<p class="text-xl md:text-2xl mb-8 max-w-3xl mx-auto">Créez des sites web futuristes avec backend automatique et base de données intégrée</p>
|
95 |
+
<div class="flex justify-center space-x-4">
|
96 |
+
<a href="#generator" class="bg-white text-primary px-8 py-3 rounded-full font-bold hover:bg-gray-100 transition">Commencer</a>
|
97 |
+
<a href="#supabase-features" class="border-2 border-white px-8 py-3 rounded-full font-bold hover:bg-white hover:text-primary transition">Voir Supabase</a>
|
98 |
+
</div>
|
99 |
+
</div>
|
100 |
+
</div>
|
101 |
+
</header>
|
102 |
+
|
103 |
+
<!-- Section Supabase Features -->
|
104 |
+
<section id="supabase-features" class="py-16 bg-white">
|
105 |
+
<div class="container mx-auto px-4">
|
106 |
+
<h2 class="text-3xl font-bold text-center mb-2 text-dark">Intégration Supabase Avancée</h2>
|
107 |
+
<p class="text-center text-gray-600 mb-12 max-w-2xl mx-auto">Toutes les fonctionnalités backend incluses automatiquement</p>
|
108 |
+
|
109 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
|
110 |
+
<!-- Feature 1 -->
|
111 |
+
<div class="bg-gray-50 p-6 rounded-xl card-hover supabase-connected">
|
112 |
+
<div class="text-primary text-4xl mb-4">
|
113 |
+
<i class="fas fa-database"></i>
|
114 |
+
</div>
|
115 |
+
<h3 class="text-xl font-bold mb-2">Base de Données Realtime</h3>
|
116 |
+
<p class="text-gray-600">PostgreSQL avec API GraphQL et subscriptions en temps réel.</p>
|
117 |
+
<div class="mt-4">
|
118 |
+
<span class="inline-block bg-green-100 text-green-800 px-3 py-1 rounded-full text-xs">Auto-configuré</span>
|
119 |
+
</div>
|
120 |
+
</div>
|
121 |
+
|
122 |
+
<!-- Feature 2 -->
|
123 |
+
<div class="bg-gray-50 p-6 rounded-xl card-hover supabase-connected">
|
124 |
+
<div class="text-primary text-4xl mb-4">
|
125 |
+
<i class="fas fa-user-lock"></i>
|
126 |
+
</div>
|
127 |
+
<h3 class="text-xl font-bold mb-2">Authentification</h3>
|
128 |
+
<p class="text-gray-600">Système complet d'authentification avec email, social login et MFA.</p>
|
129 |
+
<div class="mt-4">
|
130 |
+
<span class="inline-block bg-green-100 text-green-800 px-3 py-1 rounded-full text-xs">Prêt à l'emploi</span>
|
131 |
+
</div>
|
132 |
+
</div>
|
133 |
+
|
134 |
+
<!-- Feature 3 -->
|
135 |
+
<div class="bg-gray-50 p-6 rounded-xl card-hover supabase-connected">
|
136 |
+
<div class="text-primary text-4xl mb-4">
|
137 |
+
<i class="fas fa-cloud-upload-alt"></i>
|
138 |
+
</div>
|
139 |
+
<h3 class="text-xl font-bold mb-2">Stockage</h3>
|
140 |
+
<p class="text-gray-600">Stockage S3-like avec gestion des permissions et CDN intégré.</p>
|
141 |
+
<div class="mt-4">
|
142 |
+
<span class="inline-block bg-green-100 text-green-800 px-3 py-1 rounded-full text-xs">Optimisé</span>
|
143 |
+
</div>
|
144 |
+
</div>
|
145 |
+
|
146 |
+
<!-- Feature 4 -->
|
147 |
+
<div class="bg-gray-50 p-6 rounded-xl card-hover supabase-connected">
|
148 |
+
<div class="text-primary text-4xl mb-4">
|
149 |
+
<i class="fas fa-bolt"></i>
|
150 |
+
</div>
|
151 |
+
<h3 class="text-xl font-bold mb-2">Edge Functions</h3>
|
152 |
+
<p class="text-gray-600">Fonctions serverless déployées globalement pour une latence minimale.</p>
|
153 |
+
<div class="mt-4">
|
154 |
+
<span class="inline-block bg-blue-100 text-blue-800 px-3 py-1 rounded-full text-xs">Déployable</span>
|
155 |
+
</div>
|
156 |
+
</div>
|
157 |
+
|
158 |
+
<!-- Feature 5 -->
|
159 |
+
<div class="bg-gray-50 p-6 rounded-xl card-hover supabase-connected">
|
160 |
+
<div class="text-primary text-4xl mb-4">
|
161 |
+
<i class="fas fa-shield-alt"></i>
|
162 |
+
</div>
|
163 |
+
<h3 class="text-xl font-bold mb-2">Sécurité</h3>
|
164 |
+
<p class="text-gray-600">Politiques RLS (Row Level Security) et protection contre les attaques.</p>
|
165 |
+
<div class="mt-4">
|
166 |
+
<span class="inline-block bg-purple-100 text-purple-800 px-3 py-1 rounded-full text-xs">Sécurisé</span>
|
167 |
+
</div>
|
168 |
+
</div>
|
169 |
+
|
170 |
+
<!-- Feature 6 -->
|
171 |
+
<div class="bg-gray-50 p-6 rounded-xl card-hover supabase-connected">
|
172 |
+
<div class="text-primary text-4xl mb-4">
|
173 |
+
<i class="fas fa-sync-alt"></i>
|
174 |
+
</div>
|
175 |
+
<h3 class="text-xl font-bold mb-2">Synchronisation</h3>
|
176 |
+
<p class="text-gray-600">Synchronisation hors ligne et résolution des conflits automatique.</p>
|
177 |
+
<div class="mt-4">
|
178 |
+
<span class="inline-block bg-yellow-100 text-yellow-800 px-3 py-1 rounded-full text-xs">Offline-ready</span>
|
179 |
+
</div>
|
180 |
+
</div>
|
181 |
+
</div>
|
182 |
+
</div>
|
183 |
+
</section>
|
184 |
+
|
185 |
+
<!-- Database Configurator -->
|
186 |
+
<section class="py-16 bg-gray-50">
|
187 |
+
<div class="container mx-auto px-4">
|
188 |
+
<h2 class="text-3xl font-bold text-center mb-4 text-dark">Configurateur de Base de Données</h2>
|
189 |
+
<p class="text-center text-gray-600 mb-12 max-w-2xl mx-auto">Définissez votre schéma de données qui sera automatiquement créé dans Supabase</p>
|
190 |
+
|
191 |
+
<div class="max-w-4xl mx-auto bg-white rounded-xl shadow-md overflow-hidden">
|
192 |
+
<div class="p-6">
|
193 |
+
<div class="mb-6">
|
194 |
+
<label class="block text-gray-700 font-bold mb-2">Tables générées automatiquement</label>
|
195 |
+
<div class="bg-gray-100 rounded-lg p-4 font-mono text-sm overflow-x-auto">
|
196 |
+
<pre id="schema-preview" class="text-gray-800">
|
197 |
+
// Votre schéma sera généré ici
|
198 |
+
// Sélectionnez un modèle pour commencer</pre>
|
199 |
+
</div>
|
200 |
+
</div>
|
201 |
+
|
202 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
203 |
+
<div>
|
204 |
+
<label class="block text-gray-700 font-bold mb-2" for="data-model">Modèle de données</label>
|
205 |
+
<select id="data-model" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary">
|
206 |
+
<option value="">Sélectionnez un modèle</option>
|
207 |
+
<option value="ecommerce">E-commerce</option>
|
208 |
+
<option value="cms">Système de gestion de contenu</option>
|
209 |
+
<option value="social">Réseau social</option>
|
210 |
+
<option value="saas">Application SaaS</option>
|
211 |
+
<option value="education">Plateforme éducative</option>
|
212 |
+
</select>
|
213 |
+
</div>
|
214 |
+
|
215 |
+
<div>
|
216 |
+
<label class="block text-gray-700 font-bold mb-2" for="db-name">Nom de la base</label>
|
217 |
+
<input type="text" id="db-name" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary" placeholder="ma_base_de_donnees">
|
218 |
+
</div>
|
219 |
+
</div>
|
220 |
+
|
221 |
+
<div class="mt-6">
|
222 |
+
<button id="generate-schema-btn" class="bg-primary hover:bg-indigo-700 text-white font-bold py-2 px-6 rounded-lg transition">
|
223 |
+
Générer le Schéma
|
224 |
+
</button>
|
225 |
+
<button id="deploy-db-btn" class="ml-4 bg-green-500 hover:bg-green-600 text-white font-bold py-2 px-6 rounded-lg transition opacity-50 cursor-not-allowed" disabled>
|
226 |
+
Déployer sur Supabase
|
227 |
+
</button>
|
228 |
+
</div>
|
229 |
+
</div>
|
230 |
+
|
231 |
+
<div class="bg-gray-800 text-white p-4">
|
232 |
+
<div class="flex items-center justify-between">
|
233 |
+
<div class="flex items-center">
|
234 |
+
<i class="fas fa-terminal mr-2"></i>
|
235 |
+
<span>Console Supabase</span>
|
236 |
+
</div>
|
237 |
+
<div class="text-sm text-gray-400" id="db-status">Non connecté</div>
|
238 |
+
</div>
|
239 |
+
</div>
|
240 |
+
</div>
|
241 |
+
</div>
|
242 |
+
</section>
|
243 |
+
|
244 |
+
<!-- Auth Configurator -->
|
245 |
+
<section class="py-16 bg-white">
|
246 |
+
<div class="container mx-auto px-4">
|
247 |
+
<h2 class="text-3xl font-bold text-center mb-4 text-dark">Configurateur d'Authentification</h2>
|
248 |
+
<p class="text-center text-gray-600 mb-12 max-w-2xl mx-auto">Configurez votre système d'authentification sécurisé</p>
|
249 |
+
|
250 |
+
<div class="max-w-4xl mx-auto">
|
251 |
+
<div class="bg-gray-50 rounded-xl p-6 mb-8">
|
252 |
+
<h3 class="text-xl font-bold mb-4 text-primary">Méthodes d'authentification</h3>
|
253 |
+
<div class="grid grid-cols-1 md:grid-cols-3 gap-4">
|
254 |
+
<label class="flex items-center bg-white p-4 rounded-lg border border-gray-200">
|
255 |
+
<input type="checkbox" class="rounded text-primary focus:ring-primary" checked>
|
256 |
+
<span class="ml-3">
|
257 |
+
<i class="fas fa-envelope mr-1"></i> Email/Mot de passe
|
258 |
+
</span>
|
259 |
+
</label>
|
260 |
+
<label class="flex items-center bg-white p-4 rounded-lg border border-gray-200">
|
261 |
+
<input type="checkbox" class="rounded text-primary focus:ring-primary">
|
262 |
+
<span class="ml-3">
|
263 |
+
<i class="fab fa-google mr-1"></i> Google
|
264 |
+
</span>
|
265 |
+
</label>
|
266 |
+
<label class="flex items-center bg-white p-4 rounded-lg border border-gray-200">
|
267 |
+
<input type="checkbox" class="rounded text-primary focus:ring-primary">
|
268 |
+
<span class="ml-3">
|
269 |
+
<i class="fab fa-facebook mr-1"></i> Facebook
|
270 |
+
</span>
|
271 |
+
</label>
|
272 |
+
<label class="flex items-center bg-white p-4 rounded-lg border border-gray-200">
|
273 |
+
<input type="checkbox" class="rounded text-primary focus:ring-primary">
|
274 |
+
<span class="ml-3">
|
275 |
+
<i class="fab fa-apple mr-1"></i> Apple
|
276 |
+
</span>
|
277 |
+
</label>
|
278 |
+
<label class="flex items-center bg-white p-4 rounded-lg border border-gray-200">
|
279 |
+
<input type="checkbox" class="rounded text-primary focus:ring-primary">
|
280 |
+
<span class="ml-3">
|
281 |
+
<i class="fab fa-github mr-1"></i> GitHub
|
282 |
+
</span>
|
283 |
+
</label>
|
284 |
+
<label class="flex items-center bg-white p-4 rounded-lg border border-gray-200">
|
285 |
+
<input type="checkbox" class="rounded text-primary focus:ring-primary">
|
286 |
+
<span class="ml-3">
|
287 |
+
<i class="fas fa-mobile-alt mr-1"></i> SMS
|
288 |
+
</span>
|
289 |
+
</label>
|
290 |
+
</div>
|
291 |
+
</div>
|
292 |
+
|
293 |
+
<div class="bg-gray-50 rounded-xl p-6">
|
294 |
+
<h3 class="text-xl font-bold mb-4 text-primary">Paramètres avancés</h3>
|
295 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
|
296 |
+
<div>
|
297 |
+
<label class="block text-gray-700 font-bold mb-2" for="auth-theme">Thème de l'interface</label>
|
298 |
+
<select id="auth-theme" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary">
|
299 |
+
<option value="default">Par défaut</option>
|
300 |
+
<option value="dark">Sombre</option>
|
301 |
+
<option value="minimal">Minimal</option>
|
302 |
+
<option value="custom">Personnalisé</option>
|
303 |
+
</select>
|
304 |
+
</div>
|
305 |
+
<div>
|
306 |
+
<label class="block text-gray-700 font-bold mb-2" for="auth-redirect">URL de redirection</label>
|
307 |
+
<input type="text" id="auth-redirect" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-primary" placeholder="https://monsite.com/dashboard">
|
308 |
+
</div>
|
309 |
+
<div>
|
310 |
+
<label class="flex items-center">
|
311 |
+
<input type="checkbox" class="rounded text-primary focus:ring-primary" checked>
|
312 |
+
<span class="ml-2">Activer la vérification email</span>
|
313 |
+
</label>
|
314 |
+
</div>
|
315 |
+
<div>
|
316 |
+
<label class="flex items-center">
|
317 |
+
<input type="checkbox" class="rounded text-primary focus:ring-primary">
|
318 |
+
<span class="ml-2">Activer l'authentification à 2 facteurs</span>
|
319 |
+
</label>
|
320 |
+
</div>
|
321 |
+
</div>
|
322 |
+
|
323 |
+
<div class="mt-6">
|
324 |
+
<button id="configure-auth-btn" class="bg-primary hover:bg-indigo-700 text-white font-bold py-2 px-6 rounded-lg transition">
|
325 |
+
Configurer l'Auth
|
326 |
+
</button>
|
327 |
+
</div>
|
328 |
+
</div>
|
329 |
+
</div>
|
330 |
+
</div>
|
331 |
+
</section>
|
332 |
+
|
333 |
+
<!-- Storage Configurator -->
|
334 |
+
<section class="py-16 bg-gray-50">
|
335 |
+
<div class="container mx-auto px-4">
|
336 |
+
<h2 class="text-3xl font-bold text-center mb-4 text-dark">Configurateur de Stockage</h2>
|
337 |
+
<p class="text-center text-gray-600 mb-12 max-w-2xl mx-auto">Définissez vos buckets de stockage et politiques d'accès</p>
|
338 |
+
|
339 |
+
<div class="max-w-4xl mx-auto">
|
340 |
+
<div class="bg-white rounded-xl shadow-md overflow-hidden">
|
341 |
+
<div class="p-6">
|
342 |
+
<div class="mb-6">
|
343 |
+
<div class="flex justify-between items-center mb-4">
|
344 |
+
<h3 class="text-xl font-bold text-primary">Buckets de stockage</h3>
|
345 |
+
<button id="add-bucket-btn" class="bg-primary hover:bg-indigo-700 text-white font-bold py-1 px-4 rounded-lg text-sm transition">
|
346 |
+
<i class="fas fa-plus mr-1"></i> Ajouter
|
347 |
+
</button>
|
348 |
+
</div>
|
349 |
+
|
350 |
+
<div id="buckets-container">
|
351 |
+
<div class="bg-gray-50 p-4 rounded-lg mb-3">
|
352 |
+
<div class="flex justify-between items-center">
|
353 |
+
<div>
|
354 |
+
<span class="font-medium">avatars</span>
|
355 |
+
<span class="text-sm text-gray-500 ml-2">(public)</span>
|
356 |
+
</div>
|
357 |
+
<div class="flex space-x-2">
|
358 |
+
<button class="text-gray-500 hover:text-primary">
|
359 |
+
<i class="fas fa-edit"></i>
|
360 |
+
</button>
|
361 |
+
<button class="text-gray-500 hover:text-red-500">
|
362 |
+
<i class="fas fa-trash"></i>
|
363 |
+
</button>
|
364 |
+
</div>
|
365 |
+
</div>
|
366 |
+
</div>
|
367 |
+
|
368 |
+
<div class="bg-gray-50 p-4 rounded-lg">
|
369 |
+
<div class="flex justify-between items-center">
|
370 |
+
<div>
|
371 |
+
<span class="font-medium">documents</span>
|
372 |
+
<span class="text-sm text-gray-500 ml-2">(privé)</span>
|
373 |
+
</div>
|
374 |
+
<div class="flex space-x-2">
|
375 |
+
<button class="text-gray-500 hover:text-primary">
|
376 |
+
<i class="fas fa-edit"></i>
|
377 |
+
</button>
|
378 |
+
<button class="text-gray-500 hover:text-red-500">
|
379 |
+
<i class="fas fa-trash"></i>
|
380 |
+
</button>
|
381 |
+
</div>
|
382 |
+
</div>
|
383 |
+
</div>
|
384 |
+
</div>
|
385 |
+
</div>
|
386 |
+
|
387 |
+
<div class="bg-gray-50 rounded-xl p-6">
|
388 |
+
<h3 class="text-xl font-bold mb-4 text-primary">Politiques d'accès</h3>
|
389 |
+
<div class="overflow-x-auto">
|
390 |
+
<table class="min-w-full bg-white rounded-lg overflow-hidden">
|
391 |
+
<thead class="bg-gray-100">
|
392 |
+
<tr>
|
393 |
+
<th class="py-2 px-4 text-left">Bucket</th>
|
394 |
+
<th class="py-2 px-4 text-left">Rôle</th>
|
395 |
+
<th class="py-2 px-4 text-left">Permissions</th>
|
396 |
+
<th class="py-2 px-4 text-left">Actions</th>
|
397 |
+
</tr>
|
398 |
+
</thead>
|
399 |
+
<tbody>
|
400 |
+
<tr class="border-b border-gray-200">
|
401 |
+
<td class="py-2 px-4">avatars</td>
|
402 |
+
<td class="py-2 px-4">authenticated</td>
|
403 |
+
<td class="py-2 px-4">
|
404 |
+
<span class="inline-block bg-green-100 text-green-800 px-2 py-0.5 rounded text-xs mr-1">lecture</span>
|
405 |
+
<span class="inline-block bg-blue-100 text-blue-800 px-2 py-0.5 rounded text-xs">écriture</span>
|
406 |
+
</td>
|
407 |
+
<td class="py-2 px-4">
|
408 |
+
<button class="text-primary hover:text-indigo-700">
|
409 |
+
<i class="fas fa-edit"></i>
|
410 |
+
</button>
|
411 |
+
</td>
|
412 |
+
</tr>
|
413 |
+
<tr class="border-b border-gray-200">
|
414 |
+
<td class="py-2 px-4">documents</td>
|
415 |
+
<td class="py-2 px-4">admin</td>
|
416 |
+
<td class="py-2 px-4">
|
417 |
+
<span class="inline-block bg-green-100 text-green-800 px-2 py-0.5 rounded text-xs mr-1">lecture</span>
|
418 |
+
<span class="inline-block bg-blue-100 text-blue-800 px-2 py-0.5 rounded text-xs mr-1">écriture</span>
|
419 |
+
<span class="inline-block bg-red-100 text-red-800 px-2 py-0.5 rounded text-xs">suppression</span>
|
420 |
+
</td>
|
421 |
+
<td class="py-2 px-4">
|
422 |
+
<button class="text-primary hover:text-indigo-700">
|
423 |
+
<i class="fas fa-edit"></i>
|
424 |
+
</button>
|
425 |
+
</td>
|
426 |
+
</tr>
|
427 |
+
</tbody>
|
428 |
+
</table>
|
429 |
+
</div>
|
430 |
+
|
431 |
+
<div class="mt-6">
|
432 |
+
<button id="save-storage-btn" class="bg-primary hover:bg-indigo-700 text-white font-bold py-2 px-6 rounded-lg transition">
|
433 |
+
Enregistrer la Configuration
|
434 |
+
</button>
|
435 |
+
</div>
|
436 |
+
</div>
|
437 |
+
</div>
|
438 |
+
|
439 |
+
<div class="bg-gray-800 text-white p-4">
|
440 |
+
<div class="flex items-center">
|
441 |
+
<i class="fas fa-hdd mr-2"></i>
|
442 |
+
<span>Stockage Supabase</span>
|
443 |
+
<span class="ml-auto text-sm bg-yellow-500 px-2 py-0.5 rounded-full">Configuration requise</span>
|
444 |
+
</div>
|
445 |
+
</div>
|
446 |
+
</div>
|
447 |
+
</div>
|
448 |
+
</div>
|
449 |
+
</section>
|
450 |
+
|
451 |
+
<!-- Functions Configurator -->
|
452 |
+
<section class="py-16 bg-white">
|
453 |
+
<div class="container mx-auto px-4">
|
454 |
+
<h2 class="text-3xl font-bold text-center mb-4 text-dark">Edge Functions</h2>
|
455 |
+
<p class="text-center text-gray-600 mb-12 max-w-2xl mx-auto">Déployez des fonctions serverless pour votre logique métier</p>
|
456 |
+
|
457 |
+
<div class="max-w-4xl mx-auto">
|
458 |
+
<div class="bg-gray-50 rounded-xl p-6 mb-8">
|
459 |
+
<div class="flex justify-between items-center mb-6">
|
460 |
+
<h3 class="text-xl font-bold text-primary">Fonctions prédéfinies</h3>
|
461 |
+
<button id="add-function-btn" class="bg-primary hover:bg-indigo-700 text-white font-bold py-1 px-4 rounded-lg text-sm transition">
|
462 |
+
<i class="fas fa-plus mr-1"></i> Nouvelle Fonction
|
463 |
+
</button>
|
464 |
+
</div>
|
465 |
+
|
466 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-4">
|
467 |
+
<div class="bg-white p-4 rounded-lg border border-gray-200">
|
468 |
+
<div class="flex items-start">
|
469 |
+
<div class="bg-blue-100 p-2 rounded-lg mr-3">
|
470 |
+
<i class="fas fa-file-invoice-dollar text-blue-500"></i>
|
471 |
+
</div>
|
472 |
+
<div>
|
473 |
+
<h4 class="font-bold">Processus de paiement</h4>
|
474 |
+
<p class="text-sm text-gray-600 mt-1">Intégration Stripe avec webhooks</p>
|
475 |
+
<div class="mt-2">
|
476 |
+
<span class="inline-block bg-green-100 text-green-800 px-2 py-0.5 rounded text-xs">Disponible</span>
|
477 |
+
</div>
|
478 |
+
</div>
|
479 |
+
</div>
|
480 |
+
</div>
|
481 |
+
|
482 |
+
<div class="bg-white p-4 rounded-lg border border-gray-200">
|
483 |
+
<div class="flex items-start">
|
484 |
+
<div class="bg-purple-100 p-2 rounded-lg mr-3">
|
485 |
+
<i class="fas fa-paper-plane text-purple-500"></i>
|
486 |
+
</div>
|
487 |
+
<div>
|
488 |
+
<h4 class="font-bold">Notifications</h4>
|
489 |
+
<p class="text-sm text-gray-600 mt-1">Envoi d'emails et notifications push</p>
|
490 |
+
<div class="mt-2">
|
491 |
+
<span class="inline-block bg-green-100 text-green-800 px-2 py-0.5 rounded text-xs">Disponible</span>
|
492 |
+
</div>
|
493 |
+
</div>
|
494 |
+
</div>
|
495 |
+
</div>
|
496 |
+
|
497 |
+
<div class="bg-white p-4 rounded-lg border border-gray-200">
|
498 |
+
<div class="flex items-start">
|
499 |
+
<div class="bg-green-100 p-2 rounded-lg mr-3">
|
500 |
+
<i class="fas fa-chart-line text-green-500"></i>
|
501 |
+
</div>
|
502 |
+
<div>
|
503 |
+
<h4 class="font-bold">Analytics</h4>
|
504 |
+
<p class="text-sm text-gray-600 mt-1">Tracking et analyse des utilisateurs</p>
|
505 |
+
<div class="mt-2">
|
506 |
+
<span class="inline-block bg-yellow-100 text-yellow-800 px-2 py-0.5 rounded text-xs">Configuration requise</span>
|
507 |
+
</div>
|
508 |
+
</div>
|
509 |
+
</div>
|
510 |
+
</div>
|
511 |
+
|
512 |
+
<div class="bg-white p-4 rounded-lg border border-gray-200">
|
513 |
+
<div class="flex items-start">
|
514 |
+
<div class="bg-red-100 p-2 rounded-lg mr-3">
|
515 |
+
<i class="fas fa-robot text-red-500"></i>
|
516 |
+
</div>
|
517 |
+
<div>
|
518 |
+
<h4 class="font-bold">IA & NLP</h4>
|
519 |
+
<p class="text-sm text-gray-600 mt-1">Traitement de texte avec IA</p>
|
520 |
+
<div class="mt-2">
|
521 |
+
<span class="inline-block bg-blue-100 text-blue-800 px-2 py-0.5 rounded text-xs">Beta</span>
|
522 |
+
</div>
|
523 |
+
</div>
|
524 |
+
</div>
|
525 |
+
</div>
|
526 |
+
</div>
|
527 |
+
</div>
|
528 |
+
|
529 |
+
<div class="bg-gray-50 rounded-xl p-6">
|
530 |
+
<h3 class="text-xl font-bold mb-4 text-primary">Déploiement des Fonctions</h3>
|
531 |
+
<div class="bg-gray-800 rounded-lg p-4 text-white font-mono text-sm overflow-x-auto">
|
532 |
+
<div class="flex items-center mb-2">
|
533 |
+
<i class="fas fa-terminal mr-2 text-gray-400"></i>
|
534 |
+
<span>Terminal</span>
|
535 |
+
</div>
|
536 |
+
<div id="terminal-output" class="h-40 overflow-y-auto">
|
537 |
+
<p class="text-gray-400">$ supabase functions deploy</p>
|
538 |
+
<p class="text-gray-400">Connectez-vous à Supabase pour déployer vos fonctions...</p>
|
539 |
+
</div>
|
540 |
+
</div>
|
541 |
+
|
542 |
+
<div class="mt-6 flex justify-between items-center">
|
543 |
+
<div>
|
544 |
+
<label class="flex items-center">
|
545 |
+
<input type="checkbox" class="rounded text-primary focus:ring-primary" checked>
|
546 |
+
<span class="ml-2">Activer le déploiement automatique</span>
|
547 |
+
</label>
|
548 |
+
</div>
|
549 |
+
<button id="deploy-functions-btn" class="bg-primary hover:bg-indigo-700 text-white font-bold py-2 px-6 rounded-lg transition">
|
550 |
+
Déployer Maintenant
|
551 |
+
</button>
|
552 |
+
</div>
|
553 |
+
</div>
|
554 |
+
</div>
|
555 |
+
</div>
|
556 |
+
</section>
|
557 |
+
|
558 |
+
<!-- Final Generator -->
|
559 |
+
<section class="py-16 bg-gray-900 text-white">
|
560 |
+
<div class="container mx-auto px-4">
|
561 |
+
<h2 class="text-3xl font-bold text-center mb-4">Générateur Final</h2>
|
562 |
+
<p class="text-center text-gray-300 mb-12 max-w-2xl mx-auto">Générez et déployez votre site complet avec backend Supabase intégré</p>
|
563 |
+
|
564 |
+
<div class="max-w-4xl mx-auto bg-gray-800 rounded-xl p-8">
|
565 |
+
<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
|
566 |
+
<div>
|
567 |
+
<h3 class="text-xl font-bold mb-4">Récapitulatif</h3>
|
568 |
+
<ul class="space-y-3 text-gray-300">
|
569 |
+
<li class="flex items-start">
|
570 |
+
<i class="fas fa-check-circle text-green-400 mt-1 mr-2"></i>
|
571 |
+
<span>Base de données configurée</span>
|
572 |
+
</li>
|
573 |
+
<li class="flex items-start">
|
574 |
+
<i class="fas fa-check-circle text-green-400 mt-1 mr-2"></i>
|
575 |
+
<span>Système d'authentification</span>
|
576 |
+
</li>
|
577 |
+
<li class="flex items-start">
|
578 |
+
<i class="fas fa-check-circle text-yellow-400 mt-1 mr-2"></i>
|
579 |
+
<span>Stockage (configuration requise)</span>
|
580 |
+
</li>
|
581 |
+
<li class="flex items-start">
|
582 |
+
<i class="fas fa-check-circle text-blue-400 mt-1 mr-2"></i>
|
583 |
+
<span>Edge Functions prêtes</span>
|
584 |
+
</li>
|
585 |
+
<li class="flex items-start">
|
586 |
+
<i class="fas fa-file-code text-purple-400 mt-1 mr-2"></i>
|
587 |
+
<span>15-20 pages frontend</span>
|
588 |
+
</li>
|
589 |
+
</ul>
|
590 |
+
</div>
|
591 |
+
|
592 |
+
<div>
|
593 |
+
<h3 class="text-xl font-bold mb-4">Options de Déploiement</h3>
|
594 |
+
<div class="space-y-4">
|
595 |
+
<label class="flex items-center bg-gray-700 p-4 rounded-lg cursor-pointer">
|
596 |
+
<input type="radio" name="deploy-option" class="text-primary focus:ring-primary" checked>
|
597 |
+
<span class="ml-3">
|
598 |
+
<span class="block font-medium">Déploiement complet</span>
|
599 |
+
<span class="block text-sm text-gray-400">Site + Supabase sur votre compte</span>
|
600 |
+
</span>
|
601 |
+
</label>
|
602 |
+
|
603 |
+
<label class="flex items-center bg-gray-700 p-4 rounded-lg cursor-pointer">
|
604 |
+
<input type="radio" name="deploy-option" class="text-primary focus:ring-primary">
|
605 |
+
<span class="ml-3">
|
606 |
+
<span class="block font-medium">Frontend seulement</span>
|
607 |
+
<span class="block text-sm text-gray-400">Uniquement les fichiers du site</span>
|
608 |
+
</span>
|
609 |
+
</label>
|
610 |
+
|
611 |
+
<label class="flex items-center bg-gray-700 p-4 rounded-lg cursor-pointer">
|
612 |
+
<input type="radio" name="deploy-option" class="text-primary focus:ring-primary">
|
613 |
+
<span class="ml-3">
|
614 |
+
<span class="block font-medium">Configuration Supabase</span>
|
615 |
+
<span class="block text-sm text-gray-400">Export des paramètres backend</span>
|
616 |
+
</span>
|
617 |
+
</label>
|
618 |
+
</div>
|
619 |
+
</div>
|
620 |
+
</div>
|
621 |
+
|
622 |
+
<div class="mt-8 pt-6 border-t border-gray-700">
|
623 |
+
<div class="flex flex-col md:flex-row justify-between items-center">
|
624 |
+
<div class="mb-4 md:mb-0">
|
625 |
+
<h4 class="font-bold mb-2">Nom du Projet</h4>
|
626 |
+
<input type="text" class="bg-gray-700 text-white px-4 py-2 rounded-lg w-full md:w-64" placeholder="MonProjetSupabase">
|
627 |
+
</div>
|
628 |
+
<button id="final-generate-btn" class="bg-gradient-to-r from-primary to-secondary hover:from-indigo-600 hover:to-purple-600 text-white font-bold py-3 px-8 rounded-full transition duration-300 transform hover:scale-105">
|
629 |
+
<i class="fas fa-bolt mr-2"></i> Générer & Déployer
|
630 |
+
</button>
|
631 |
+
</div>
|
632 |
+
</div>
|
633 |
+
</div>
|
634 |
+
</div>
|
635 |
+
</section>
|
636 |
+
|
637 |
+
<!-- Footer -->
|
638 |
+
<footer class="bg-gray-950 text-white py-12">
|
639 |
+
<div class="container mx-auto px-4">
|
640 |
+
<div class="grid grid-cols-1 md:grid-cols-4 gap-8">
|
641 |
+
<div>
|
642 |
+
<div class="flex items-center space-x-2 mb-4">
|
643 |
+
<i class="fas fa-rocket text-2xl text-primary"></i>
|
644 |
+
<h3 class="text-xl font-bold">NexusGen Pro</h3>
|
645 |
+
</div>
|
646 |
+
<p class="text-gray-400">Générateur de sites web futuristes avec backend intégré.</p>
|
647 |
+
<div class="flex space-x-4 mt-6">
|
648 |
+
<a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-github"></i></a>
|
649 |
+
<a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-twitter"></i></a>
|
650 |
+
<a href="#" class="text-gray-400 hover:text-white transition"><i class="fab fa-discord"></i></a>
|
651 |
+
</div>
|
652 |
+
</div>
|
653 |
+
|
654 |
+
<div>
|
655 |
+
<h4 class="text-lg font-bold mb-4">Produit</h4>
|
656 |
+
<ul class="space-y-2">
|
657 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">Fonctionnalités</a></li>
|
658 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">Tarifs</a></li>
|
659 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">Documentation</a></li>
|
660 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">Statut</a></li>
|
661 |
+
</ul>
|
662 |
+
</div>
|
663 |
+
|
664 |
+
<div>
|
665 |
+
<h4 class="text-lg font-bold mb-4">Supabase</h4>
|
666 |
+
<ul class="space-y-2">
|
667 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">Documentation</a></li>
|
668 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">API Reference</a></li>
|
669 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">Dashboard</a></li>
|
670 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">Communauté</a></li>
|
671 |
+
</ul>
|
672 |
+
</div>
|
673 |
+
|
674 |
+
<div>
|
675 |
+
<h4 class="text-lg font-bold mb-4">Support</h4>
|
676 |
+
<ul class="space-y-2">
|
677 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">Centre d'aide</a></li>
|
678 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">Contact</a></li>
|
679 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">RGPD</a></li>
|
680 |
+
<li><a href="#" class="text-gray-400 hover:text-white transition">CGU</a></li>
|
681 |
+
</ul>
|
682 |
+
</div>
|
683 |
+
</div>
|
684 |
+
|
685 |
+
<div class="border-t border-gray-800 mt-12 pt-8 flex flex-col md:flex-row justify-between items-center">
|
686 |
+
<p class="text-gray-400 text-sm mb-4 md:mb-0">© 2023 NexusGen Pro. Tous droits réservés.</p>
|
687 |
+
<div class="flex items-center space-x-2">
|
688 |
+
<span class="text-gray-400 text-sm">Propulsé par</span>
|
689 |
+
<img src="https://supabase.com/docs/img/supabase-logo-wordmark--light.svg" alt="Supabase" class="h-6">
|
690 |
+
</div>
|
691 |
+
</div>
|
692 |
+
</div>
|
693 |
+
</footer>
|
694 |
+
|
695 |
+
<script>
|
696 |
+
// Vérification de la connexion Supabase
|
697 |
+
async function checkSupabaseConnection() {
|
698 |
+
try {
|
699 |
+
const { data, error } = await supabase.from('test').select('*').limit(1);
|
700 |
+
|
701 |
+
if (error) throw error;
|
702 |
+
|
703 |
+
// Mise à jour de l'interface
|
704 |
+
document.getElementById('supabase-status').innerHTML = `
|
705 |
+
<i class="fas fa-database mr-2"></i>
|
706 |
+
<span>Supabase</span>
|
707 |
+
<span class="ml-2 px-2 py-0.5 bg-green-500 rounded-full text-xs">Connecté</span>
|
708 |
+
`;
|
709 |
+
|
710 |
+
document.getElementById('db-status').textContent = 'Connecté';
|
711 |
+
document.getElementById('db-status').classList.remove('text-gray-400');
|
712 |
+
document.getElementById('db-status').classList.add('text-green-400');
|
713 |
+
|
714 |
+
// Activer les boutons
|
715 |
+
document.getElementById('deploy-db-btn').disabled = false;
|
716 |
+
document.getElementById('deploy-db-btn').classList.remove('opacity-50', 'cursor-not-allowed');
|
717 |
+
|
718 |
+
} catch (error) {
|
719 |
+
console.error('Erreur de connexion à Supabase:', error);
|
720 |
+
|
721 |
+
document.getElementById('supabase-status').innerHTML = `
|
722 |
+
<i class="fas fa-database mr-2"></i>
|
723 |
+
<span>Supabase</span>
|
724 |
+
<span class="ml-2 px-2 py-0.5 bg-red-500 rounded-full text-xs">Erreur</span>
|
725 |
+
`;
|
726 |
+
|
727 |
+
document.getElementById('db-status').textContent = 'Erreur de connexion';
|
728 |
+
document.getElementById('db-status').classList.remove('text-gray-400');
|
729 |
+
document.getElementById('db-status').classList.add('text-red-400');
|
730 |
+
}
|
731 |
+
}
|
732 |
+
|
733 |
+
// Générateur de schéma de base de données
|
734 |
+
document.getElementById('data-model').addEventListener('change', function() {
|
735 |
+
const model = this.value;
|
736 |
+
let schema = '';
|
737 |
+
|
738 |
+
if (model === 'ecommerce') {
|
739 |
+
schema = `// Schéma E-commerce
|
740 |
+
create table products (
|
741 |
+
id uuid primary key default uuid_generate_v4(),
|
742 |
+
name text not null,
|
743 |
+
description text,
|
744 |
+
price numeric(10,2) not null,
|
745 |
+
category text,
|
746 |
+
image_url text,
|
747 |
+
created_at timestamp with time zone default now()
|
748 |
+
);
|
749 |
+
|
750 |
+
create table orders (
|
751 |
+
id uuid primary key default uuid_generate_v4(),
|
752 |
+
user_id uuid references auth.users not null,
|
753 |
+
total numeric(10,2) not null,
|
754 |
+
status text not null default 'pending',
|
755 |
+
created_at timestamp with time zone default now()
|
756 |
+
);
|
757 |
+
|
758 |
+
create table order_items (
|
759 |
+
id uuid primary key default uuid_generate_v4(),
|
760 |
+
order_id uuid references orders not null,
|
761 |
+
product_id uuid references products not null,
|
762 |
+
quantity integer not null,
|
763 |
+
price numeric(10,2) not null
|
764 |
+
);
|
765 |
+
|
766 |
+
-- Activer les RLS (Row Level Security)
|
767 |
+
alter table products enable row level security;
|
768 |
+
alter table orders enable row level security;
|
769 |
+
alter table order_items enable row level security;`;
|
770 |
+
}
|
771 |
+
else if (model === 'cms') {
|
772 |
+
schema = `// Schéma CMS
|
773 |
+
create table pages (
|
774 |
+
id uuid primary key default uuid_generate_v4(),
|
775 |
+
title text not null,
|
776 |
+
slug text unique not null,
|
777 |
+
content text,
|
778 |
+
published boolean default false,
|
779 |
+
author_id uuid references auth.users not null,
|
780 |
+
created_at timestamp with time zone default now(),
|
781 |
+
updated_at timestamp with time zone default now()
|
782 |
+
);
|
783 |
+
|
784 |
+
create table posts (
|
785 |
+
id uuid primary key default uuid_generate_v4(),
|
786 |
+
title text not null,
|
787 |
+
slug text unique not null,
|
788 |
+
excerpt text,
|
789 |
+
content text,
|
790 |
+
featured_image text,
|
791 |
+
published_at timestamp with time zone,
|
792 |
+
author_id uuid references auth.users not null,
|
793 |
+
created_at timestamp with time zone default now(),
|
794 |
+
updated_at timestamp with time zone default now()
|
795 |
+
);
|
796 |
+
|
797 |
+
-- Activer les RLS
|
798 |
+
alter table pages enable row level security;
|
799 |
+
alter table posts enable row level security;`;
|
800 |
+
}
|
801 |
+
// Ajouter d'autres modèles...
|
802 |
+
|
803 |
+
document.getElementById('schema-preview').textContent = schema || '// Sélectionnez un modèle pour voir le schéma';
|
804 |
+
});
|
805 |
+
|
806 |
+
// Bouton de génération de schéma
|
807 |
+
document.getElementById('generate-schema-btn').addEventListener('click', function() {
|
808 |
+
const model = document.getElementById('data-model').value;
|
809 |
+
const dbName = document.getElementById('db-name').value;
|
810 |
+
|
811 |
+
if (!model) {
|
812 |
+
alert('Veuillez sélectionner un modèle de données');
|
813 |
+
return;
|
814 |
+
}
|
815 |
+
|
816 |
+
if (!dbName) {
|
817 |
+
alert('Veuillez entrer un nom pour votre base de données');
|
818 |
+
return;
|
819 |
+
}
|
820 |
+
|
821 |
+
alert(`Schéma généré pour ${dbName} (${model}). Dans une application réelle, cela créerait les tables dans Supabase.`);
|
822 |
+
});
|
823 |
+
|
824 |
+
// Bouton de déploiement de base de données
|
825 |
+
document.getElementById('deploy-db-btn').addEventListener('click', async function() {
|
826 |
+
const dbName = document.getElementById('db-name').value || 'ma_base';
|
827 |
+
|
828 |
+
// Simulation de déploiement
|
829 |
+
document.getElementById('terminal-output').innerHTML = `
|
830 |
+
<p class="text-green-400">$ supabase db deploy --name=${dbName}</p>
|
831 |
+
<p class="text-gray-400">Connexion à Supabase...</p>
|
832 |
+
<p class="text-gray-400">Création des tables...</p>
|
833 |
+
<p class="text-green-400">✔ Base de données déployée avec succès</p>
|
834 |
+
<p class="text-gray-400">URL: https://${dbName}.supabase.co</p>
|
835 |
+
`;
|
836 |
+
|
837 |
+
// Dans une application réelle, on utiliserait l'API Supabase pour créer les tables
|
838 |
+
// await supabase.rpc('create_schema', { schema_name: dbName });
|
839 |
+
// await supabase.rpc('create_tables', { schema: generatedSchema });
|
840 |
+
});
|
841 |
+
|
842 |
+
// Bouton de configuration d'authentification
|
843 |
+
document.getElementById('configure-auth-btn').addEventListener('click', function() {
|
844 |
+
const theme = document.getElementById('auth-theme').value;
|
845 |
+
const redirectUrl = document.getElementById('auth-redirect').value;
|
846 |
+
|
847 |
+
alert(`Configuration d'authentification sauvegardée (Thème: ${theme}, Redirection: ${redirectUrl || 'par défaut'})`);
|
848 |
+
});
|
849 |
+
|
850 |
+
// Bouton final de génération
|
851 |
+
document.getElementById('final-generate-btn').addEventListener('click', async function() {
|
852 |
+
const projectName = document.querySelector('input[placeholder="MonProjetSupabase"]').value || 'MonProjet';
|
853 |
+
const deployOption = document.querySelector('input[name="deploy-option"]:checked').nextElementSibling.querySelector('span').textContent;
|
854 |
+
|
855 |
+
// Simulation de génération
|
856 |
+
const terminal = document.getElementById('terminal-output');
|
857 |
+
terminal.innerHTML = '<p class="text-gray-400">Initialisation du projet...</p>';
|
858 |
+
|
859 |
+
const steps = [
|
860 |
+
{text: 'Création des fichiers frontend...', delay: 1000},
|
861 |
+
{text: 'Configuration de Supabase...', delay: 1500},
|
862 |
+
{text: 'Déploiement de la base de données...', delay: 2000},
|
863 |
+
{text: 'Configuration de l\'authentification...', delay: 2500},
|
864 |
+
{text: 'Déploiement des Edge Functions...', delay: 3000},
|
865 |
+
{text: 'Finalisation...', delay: 3500},
|
866 |
+
];
|
867 |
+
|
868 |
+
for (const step of steps) {
|
869 |
+
await new Promise(resolve => setTimeout(resolve, step.delay));
|
870 |
+
terminal.innerHTML += `<p class="text-gray-400">${step.text}</p>`;
|
871 |
+
terminal.scrollTop = terminal.scrollHeight;
|
872 |
+
}
|
873 |
+
|
874 |
+
terminal.innerHTML += `<p class="text-green-400">✔ Projet "${projectName}" généré avec succès!</p>`;
|
875 |
+
terminal.innerHTML += `<p class="text-gray-400">Option de déploiement: ${deployOption}</p>`;
|
876 |
+
terminal.scrollTop = terminal.scrollHeight;
|
877 |
+
|
878 |
+
// Dans une application réelle, on générerait et téléchargerait les fichiers
|
879 |
+
// ou on déploierait directement sur un service comme Vercel/Netlify
|
880 |
+
});
|
881 |
+
|
882 |
+
// Vérifier la connexion au chargement
|
883 |
+
window.addEventListener('load', checkSupabaseConnection);
|
884 |
+
</script>
|
885 |
+
<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/generateur-ai" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
|
886 |
+
</html>
|
prompts.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
creer moi un générateur tres puissant de site tres compleyt et reel de 15à 20 pages complet plus 3000 ligne complet avec ajouter les type suinant Générer mon site futuriste Business Entreprise Startup Consulting Services B2B B2C E-commerce Mode High-Tech Alimentation Luxe Marketplace Dropshipping Éducation École en ligne Formation MOOC Tutorat Université Skills Sport Club sportif Fitness E-sport Événements Coaching Equipment Streaming VOD Musique Podcast Live Gaming Cours en ligne Divertissement Jeux Cinéma Musique Art Events Communauté en automatique
|
2 |
+
intégré supabase automatiquement tres puissant et sofistiqué
|