Add files via upload
Browse files- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/a_propos.html +843 -0
- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/all_stories.html +0 -0
- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/api_create_key.html +590 -0
- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/blog.html +768 -0
- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/careers.html +625 -0
- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/chat.html +1799 -0
- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/checkout.html +278 -0
- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/conditions_utilisation.html +0 -0
- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/connexion.html +157 -0
- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/create_new_issue.html +408 -0
- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/customers_stories.html +0 -0
- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/repo_files.html +480 -0
- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/repo_files_branch.html +760 -0
- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/resources.html +0 -0
- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/script.js +373 -0
- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/settings.html +1105 -0
- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/statut.html +457 -0
- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/support.html +303 -0
- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/tarifs.html +826 -0
- a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/upload_file.html +474 -0
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|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title data-translate="page-title">GitForge: Navigation Hub</title>
|
| 7 |
+
<link rel="icon" type="image/png" href="https://i.postimg.cc/t4NCGNzD/gitforge-png.png">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
| 10 |
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" />
|
| 11 |
+
<style>
|
| 12 |
+
/* Custom Tailwind Configuration */
|
| 13 |
+
.bg-header { background-color: #f7f9fc; }
|
| 14 |
+
.header-border { border-color: #e5e7eb; }
|
| 15 |
+
.text-blue-600-var { color: #2563eb; }
|
| 16 |
+
.border-blue-600-var { border-color: #2563eb; }
|
| 17 |
+
.bg-blue-600-var { background-color: #2563eb; }
|
| 18 |
+
.hover\:bg-blue-700-var:hover { background-color: #1d4ed8; }
|
| 19 |
+
.text-gray-900-var { color: #1f2937; }
|
| 20 |
+
|
| 21 |
+
/* Updated Hero Section Style with new image */
|
| 22 |
+
.hero {
|
| 23 |
+
background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?auto=format&fit=crop&w=1600&q=80') no-repeat center center/cover;
|
| 24 |
+
height: 80vh;
|
| 25 |
+
color: white;
|
| 26 |
+
display: flex;
|
| 27 |
+
flex-direction: column;
|
| 28 |
+
justify-content: center;
|
| 29 |
+
align-items: center;
|
| 30 |
+
text-align: center;
|
| 31 |
+
padding-top: 5em;
|
| 32 |
+
text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
|
| 33 |
+
transition: background-image 0.3s;
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
/* Ensure the language dropdown is visible and styled for the new dark footer */
|
| 37 |
+
.lang-dropdown-container {
|
| 38 |
+
position: relative;
|
| 39 |
+
}
|
| 40 |
+
/* Style for the new dark footer for better contrast */
|
| 41 |
+
.footer-dark-bg { background-color: #1f2937; } /* Equivalent to bg-gray-900 */
|
| 42 |
+
.footer-text-light { color: #d1d5db; } /* Equivalent to text-gray-300 */
|
| 43 |
+
.footer-link-hover:hover { color: #60a5fa; } /* Equivalent to hover:text-blue-400 */
|
| 44 |
+
.footer-border-dark { border-color: #374151; } /* Equivalent to border-gray-700 */
|
| 45 |
+
</style>
|
| 46 |
+
</head>
|
| 47 |
+
<body class="bg-white text-gray-900 font-sans">
|
| 48 |
+
|
| 49 |
+
<header class="border-b border-gray-200">
|
| 50 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-4 flex justify-between items-center">
|
| 51 |
+
<div class="flex items-center space-x-8">
|
| 52 |
+
<a href="#" class="text-2xl font-bold text-gray-900 flex items-center">
|
| 53 |
+
<img src="https://i.postimg.cc/t4NCGNzD/gitforge-png.png" alt="GitForge Logo" class="h-6 w-6 mr-2">
|
| 54 |
+
<span data-translate="site-name">GitForge</span>
|
| 55 |
+
</a>
|
| 56 |
+
<nav class="hidden md:flex space-x-6 text-sm font-medium text-gray-700">
|
| 57 |
+
<a href="/mindus/nexus/conditions_utilisation" class="hover:text-blue-600-var" data-translate="nav-platform">Platform</a>
|
| 58 |
+
<a href="/mindus/nexus/contact" class="hover:text-blue-600-var" data-translate="nav-solutions">Company</a>
|
| 59 |
+
<a href="/mindus/nexus/resources" class="hover:text-blue-600-var" data-translate="nav-resources">Resources</a>
|
| 60 |
+
<a href="/mindus/nexus/contact" class="hover:text-blue-600-var" data-translate="nav-opensource">Contact us</a>
|
| 61 |
+
<a href="/mindus/nexus/a_propos" class="hover:text-blue-600-var text-blue-600-var" data-translate="nav-about-us">Hub</a>
|
| 62 |
+
<a href="/mindus/nexus/tarifs" class="hover:text-blue-600-var" data-translate="nav-pricing">Pricing</a>
|
| 63 |
+
</nav>
|
| 64 |
+
</div>
|
| 65 |
+
<div class="flex items-center space-x-4">
|
| 66 |
+
<button class="text-gray-700 hover:text-blue-600-var" aria-label="Search">
|
| 67 |
+
<i class="fas fa-search"></i>
|
| 68 |
+
</button>
|
| 69 |
+
<a href="/mindus/nexus/connexion" class="hidden sm:inline text-sm font-medium text-gray-700 hover:text-blue-600-var" data-translate="btn-sign-in">Sign in</a>
|
| 70 |
+
<a href="/mindus/nexus/inscription" class="px-4 py-2 text-sm font-medium border border-gray-300 rounded-md text-gray-700 hover:border-blue-600-var hover:text-blue-600-var transition" data-translate="btn-sign-up">Sign up</a>
|
| 71 |
+
</div>
|
| 72 |
+
</div>
|
| 73 |
+
</header>
|
| 74 |
+
|
| 75 |
+
<main>
|
| 76 |
+
<section class="hero" id="top-hero">
|
| 77 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 78 |
+
<h1 class="text-5xl md:text-7xl font-extrabold mb-6" data-translate="about-hero-title">Driving Innovation, Powering the Future of Software.</h1>
|
| 79 |
+
<p class="text-xl md:text-2xl font-light mb-8 max-w-4xl mx-auto" data-translate="about-hero-subtitle">GitForge is the world's leading AI-powered developer platform, committed to accelerating human progress through collaboration and open source.</p>
|
| 80 |
+
<a href="#navigation-hub" class="inline-block bg-blue-600-var hover:bg-blue-700-var text-white font-medium py-3 px-8 rounded-md transition duration-300 text-lg" data-translate="about-btn-learn-more">Discover Our Hub</a>
|
| 81 |
+
</div>
|
| 82 |
+
</section>
|
| 83 |
+
|
| 84 |
+
<section class="py-16 md:py-24 bg-gray-50" id="company-data">
|
| 85 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 86 |
+
<h2 class="text-3xl font-bold text-gray-900-var text-center mb-12" data-translate="stats-title">GitForge at a Glance</h2>
|
| 87 |
+
<div class="grid grid-cols-2 lg:grid-cols-4 gap-8 text-center">
|
| 88 |
+
<div class="p-4">
|
| 89 |
+
<p class="text-5xl font-extrabold text-blue-600-var" data-translate="stat-devs">150k+</p>
|
| 90 |
+
<p class="text-lg font-medium text-gray-700 mt-2" data-translate="stat-devs-label">Developers</p>
|
| 91 |
+
</div>
|
| 92 |
+
<div class="p-4">
|
| 93 |
+
<p class="text-5xl font-extrabold text-blue-600-var" data-translate="stat-orgs">3k+</p>
|
| 94 |
+
<p class="text-lg font-medium text-gray-700 mt-2" data-translate="stat-orgs-label">Organizations</p>
|
| 95 |
+
</div>
|
| 96 |
+
<div class="p-4">
|
| 97 |
+
<p class="text-5xl font-extrabold text-blue-600-var" data-translate="stat-repos">120k+</p>
|
| 98 |
+
<p class="text-lg font-medium text-gray-700 mt-2" data-translate="stat-repos-label">Repositories</p>
|
| 99 |
+
</div>
|
| 100 |
+
<div class="p-4">
|
| 101 |
+
<p class="text-5xl font-extrabold text-blue-600-var" data-translate="stat-fortune">90%</p>
|
| 102 |
+
<p class="text-lg font-medium text-gray-700 mt-2" data-translate="stat-fortune-label">Fortune 100 Coverage</p>
|
| 103 |
+
</div>
|
| 104 |
+
</div>
|
| 105 |
+
</div>
|
| 106 |
+
</section>
|
| 107 |
+
|
| 108 |
+
<section class="py-16 md:py-24 bg-white" id="navigation-hub">
|
| 109 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 110 |
+
<h2 class="text-4xl font-extrabold text-gray-900-var text-center mb-4" data-translate="hub-title">The GitForge Hub</h2>
|
| 111 |
+
<p class="text-xl text-gray-700 text-center mb-16 max-w-3xl mx-auto" data-translate="hub-subtitle">Your navigation center to all GitForge resources and product sections.</p>
|
| 112 |
+
|
| 113 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
|
| 114 |
+
<a href="/mindus/nexus/blog" class="block p-8 bg-gray-50 rounded-lg border border-gray-200 shadow-md hover:shadow-xl hover:border-blue-600-var transition duration-300 group">
|
| 115 |
+
<i class="fas fa-rss text-3xl text-blue-600-var mb-4 transition group-hover:scale-105"></i>
|
| 116 |
+
<h3 class="text-xl font-bold text-gray-900-var mb-2" data-translate="card-title-1">Tech Blog</h3>
|
| 117 |
+
<p class="text-gray-600" data-translate="card-desc-1">Stay updated with our latest articles, engineering insights, and product updates.</p>
|
| 118 |
+
<span class="mt-4 inline-block text-sm font-medium text-blue-600-var group-hover:text-blue-700-var transition">Navigate →</span>
|
| 119 |
+
</a>
|
| 120 |
+
<a href="/mindus/nexus/mission" class="block p-8 bg-gray-50 rounded-lg border border-gray-200 shadow-md hover:shadow-xl hover:border-blue-600-var transition duration-300 group">
|
| 121 |
+
<i class="fas fa-handshake text-3xl text-blue-600-var mb-4 transition group-hover:scale-105"></i>
|
| 122 |
+
<h3 class="text-xl font-bold text-gray-900-var mb-2" data-translate="card-title-2">Our Mission & Values</h3>
|
| 123 |
+
<p class="text-gray-600" data-translate="card-desc-2">Discover the core principles that drive GitForge and our commitment to the developer community.</p>
|
| 124 |
+
<span class="mt-4 inline-block text-sm font-medium text-blue-600-var group-hover:text-blue-700-var transition">Navigate →</span>
|
| 125 |
+
</a>
|
| 126 |
+
<a href="/mindus/nexus/advocacy" class="block p-8 bg-gray-50 rounded-lg border border-gray-200 shadow-md hover:shadow-xl hover:border-blue-600-var transition duration-300 group">
|
| 127 |
+
<i class="fas fa-gavel text-3xl text-blue-600-var mb-4 transition group-hover:scale-105"></i>
|
| 128 |
+
<h3 class="text-xl font-bold text-gray-900-var mb-2" data-translate="card-title-3">Developer Advocacy</h3>
|
| 129 |
+
<p class="text-gray-600" data-translate="card-desc-3">Learn how we fight for developer rights and shape policies that protect open source innovation.</p>
|
| 130 |
+
<span class="mt-4 inline-block text-sm font-medium text-blue-600-var group-hover:text-blue-700-var transition">Navigate →</span>
|
| 131 |
+
</a>
|
| 132 |
+
<a href="/mindus/nexus/customers" class="block p-8 bg-gray-50 rounded-lg border border-gray-200 shadow-md hover:shadow-xl hover:border-blue-600-var transition duration-300 group">
|
| 133 |
+
<i class="fas fa-award text-3xl text-blue-600-var mb-4 transition group-hover:scale-105"></i>
|
| 134 |
+
<h3 class="text-xl font-bold text-gray-900-var mb-2" data-translate="card-title-4">Customer Stories</h3>
|
| 135 |
+
<p class="text-gray-600" data-translate="card-desc-4">Read success stories from global leaders and innovative companies building on the GitForge platform.</p>
|
| 136 |
+
<span class="mt-4 inline-block text-sm font-medium text-blue-600-var group-hover:text-blue-700-var transition">Navigate →</span>
|
| 137 |
+
</a>
|
| 138 |
+
<a href="/mindus/nexus/community" class="block p-8 bg-gray-50 rounded-lg border border-gray-200 shadow-md hover:shadow-xl hover:border-blue-600-var transition duration-300 group">
|
| 139 |
+
<i class="fas fa-users text-3xl text-blue-600-var mb-4 transition group-hover:scale-105"></i>
|
| 140 |
+
<h3 class="text-xl font-bold text-gray-900-var mb-2" data-translate="card-title-5">Community</h3>
|
| 141 |
+
<p class="text-gray-600" data-translate="card-desc-5">Explore our community initiatives, open source projects, and efforts to promote diversity and inclusion.</p>
|
| 142 |
+
<span class="mt-4 inline-block text-sm font-medium text-blue-600-var group-hover:text-blue-700-var transition">Navigate →</span>
|
| 143 |
+
</a>
|
| 144 |
+
<a href="/mindus/nexus/engineering" class="block p-8 bg-gray-50 rounded-lg border border-gray-200 shadow-md hover:shadow-xl hover:border-blue-600-var transition duration-300 group">
|
| 145 |
+
<i class="fas fa-cogs text-3xl text-blue-600-var mb-4 transition group-hover:scale-105"></i>
|
| 146 |
+
<h3 class="text-xl font-bold text-gray-900-var mb-2" data-translate="card-title-6">Engineering</h3>
|
| 147 |
+
<p class="text-gray-600" data-translate="card-desc-6">Get a deep dive into our core technology, system status, and cutting-edge AI innovations.</p>
|
| 148 |
+
<span class="mt-4 inline-block text-sm font-medium text-blue-600-var group-hover:text-blue-700-var transition">Navigate →</span>
|
| 149 |
+
</a>
|
| 150 |
+
</div>
|
| 151 |
+
</div>
|
| 152 |
+
</section>
|
| 153 |
+
</main>
|
| 154 |
+
|
| 155 |
+
<footer class="mt-20 py-10 bg-gray-900 border-t border-gray-700">
|
| 156 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 157 |
+
<div class="grid grid-cols-4 gap-8 text-sm">
|
| 158 |
+
<div class="col-span-4 md:col-span-1">
|
| 159 |
+
<h3 data-translate="site-name" class="text-2xl font-bold text-blue-400 mb-4">GitForge</h3>
|
| 160 |
+
<p data-translate="footer-slogan" class="text-gray-400">The unified DevOps platform that accelerates your software lifecycle.</p>
|
| 161 |
+
<div class="flex space-x-4 mt-6">
|
| 162 |
+
<a href="#" aria-label="Twitter" class="text-gray-400 hover:text-blue-400 transition duration-200">
|
| 163 |
+
<i class="fab fa-twitter text-xl"></i>
|
| 164 |
+
</a>
|
| 165 |
+
<a href="#" aria-label="LinkedIn" class="text-gray-400 hover:text-blue-400 transition duration-200">
|
| 166 |
+
<i class="fab fa-linkedin-in text-xl"></i>
|
| 167 |
+
</a>
|
| 168 |
+
<a href="#" aria-label="Facebook" class="text-gray-400 hover:text-blue-400 transition duration-200">
|
| 169 |
+
<i class="fab fa-facebook-f text-xl"></i>
|
| 170 |
+
</a>
|
| 171 |
+
<a href="#" aria-label="GitHub" class="text-gray-400 hover:text-blue-400 transition duration-200">
|
| 172 |
+
<i class="fab fa-github text-xl"></i>
|
| 173 |
+
</a>
|
| 174 |
+
<a href="#" aria-label="YouTube" class="text-gray-400 hover:text-blue-400 transition duration-200">
|
| 175 |
+
<i class="fab fa-youtube text-xl"></i>
|
| 176 |
+
</a>
|
| 177 |
+
</div>
|
| 178 |
+
</div>
|
| 179 |
+
<div class="col-span-2 md:col-span-1">
|
| 180 |
+
<h4 data-translate="footer-product" class="font-bold text-white mb-3">Product</h4>
|
| 181 |
+
<ul class="space-y-2 text-gray-300">
|
| 182 |
+
<li><a data-translate="footer-doc" href="/mindus/nexus/documentation" class="hover:text-blue-400 transition duration-200">Documentation</a></li>
|
| 183 |
+
<li><a data-translate="footer-pricing" href="/mindus/nexus/tarifs" class="hover:text-blue-400 transition duration-200">Pricing</a></li>
|
| 184 |
+
<li><a data-translate="footer-integrations" href="/mindus/nexus/documentation" class="hover:text-blue-400 transition duration-200">Integrations</a></li>
|
| 185 |
+
<li><a data-translate="footer-security" href="/mindus/nexus/politique_confidentialite" class="hover:text-blue-400 transition duration-200">Security</a></li>
|
| 186 |
+
</ul>
|
| 187 |
+
</div>
|
| 188 |
+
<div class="col-span-2 md:col-span-1">
|
| 189 |
+
<h4 data-translate="footer-entreprise" class="font-bold text-white mb-3">Company</h4>
|
| 190 |
+
<ul class="space-y-2 text-gray-300">
|
| 191 |
+
<li><a data-translate="footer-about" href="/mindus/nexus/a_propos" class="hover:text-blue-400 transition duration-200">About</a></li>
|
| 192 |
+
<li><a data-translate="footer-careers" href="/mindus/nexus/careers" class="hover:text-blue-400 transition duration-200">Careers</a></li>
|
| 193 |
+
<li><a data-translate="footer-support" href="/mindus/nexus/contact" class="hover:text-blue-400 transition duration-200">Support</a></li>
|
| 194 |
+
<li><a data-translate="footer-faq" href="/mindus/nexus/faq" class="hover:text-blue-400 transition duration-200">FAQ</a></li>
|
| 195 |
+
</ul>
|
| 196 |
+
</div>
|
| 197 |
+
<div class="col-span-4 md:col-span-1">
|
| 198 |
+
<h4 data-translate="footer-ressources" class="font-bold text-white mb-3">Resources</h4>
|
| 199 |
+
<ul class="space-y-2 text-gray-300">
|
| 200 |
+
<li><a data-translate="footer-contact-email" href="/mindus/nexus/contact" class="hover:text-blue-400 transition duration-200">Contact Email</a></li>
|
| 201 |
+
<li><a data-translate="footer-status" href="/mindus/nexus/engineering" class="hover:text-blue-400 transition duration-200">Service Status</a></li>
|
| 202 |
+
<li><a data-translate="footer-blog" href="/mindus/nexus/blog" class="hover:text-blue-400 transition duration-200">Tech Blog</a></li>
|
| 203 |
+
|
| 204 |
+
<li class="relative mt-4 pt-4 border-t border-gray-700">
|
| 205 |
+
<button id="lang-menu-button" class="flex items-center text-white hover:text-blue-400 transition duration-200 text-sm">
|
| 206 |
+
<span id="current-flag">🇺🇸</span>
|
| 207 |
+
<span id="current-lang-name" class="ml-2 font-medium" data-lang-code="en">English</span>
|
| 208 |
+
<span class="material-symbols-rounded text-gray-400 ml-2 text-xl">expand_more</span>
|
| 209 |
+
</button>
|
| 210 |
+
<div id="lang-menu-dropdown" class="absolute left-0 bottom-full mb-2 w-40 bg-gray-800 rounded-md shadow-lg z-50 hidden border border-gray-700">
|
| 211 |
+
<a href="#" data-lang="en" class="lang-option flex items-center px-4 py-2 text-sm text-gray-300 hover:bg-gray-700">🇺🇸 English</a>
|
| 212 |
+
<a href="#" data-lang="fr" class="lang-option flex items-center px-4 py-2 text-sm text-gray-300 hover:bg-gray-700">🌐 Français</a>
|
| 213 |
+
<a href="#" data-lang="es" class="lang-option flex items-center px-4 py-2 text-sm text-gray-300 hover:bg-gray-700">🇪🇸 Español</a>
|
| 214 |
+
<a href="#" data-lang="zh" class="lang-option flex items-center px-4 py-2 text-sm text-gray-300 hover:bg-gray-700">🇨🇳 中文 (Simplified)</a>
|
| 215 |
+
<a href="#" data-lang="ja" class="lang-option flex items-center px-4 py-2 text-sm text-gray-300 hover:bg-gray-700">🇯🇵 日本語</a>
|
| 216 |
+
<a href="#" data-lang="de" class="lang-option flex items-center px-4 py-2 text-sm text-gray-300 hover:bg-gray-700">🇩🇪 Deutsch</a>
|
| 217 |
+
<a href="#" data-lang="pt-br" class="lang-option flex items-center px-4 py-2 text-sm text-gray-300 hover:bg-gray-700">🇧🇷 Português (Brasil)</a>
|
| 218 |
+
<a href="#" data-lang="ru" class="lang-option flex items-center px-4 py-2 text-sm text-gray-300 hover:bg-gray-700">🇷🇺 Русский</a>
|
| 219 |
+
</div>
|
| 220 |
+
</li>
|
| 221 |
+
|
| 222 |
+
</ul>
|
| 223 |
+
</div>
|
| 224 |
+
</div>
|
| 225 |
+
<div class="mt-10 pt-6 border-t border-gray-700">
|
| 226 |
+
<p data-translate="footer-copyright" class="text-center text-sm text-gray-500"> © 2025 GitForge. All rights reserved. Powered by the <a href="/" class="hover:text-blue-400 hover:underline">GitForge Platform</a>.</p>
|
| 227 |
+
<div class="text-center mt-2 space-x-4 text-xs">
|
| 228 |
+
<a data-translate="footer-cgu" href="/mindus/nexus/conditions_utilisation" class="text-gray-500 hover:text-blue-400">Terms of Service</a>
|
| 229 |
+
<a data-translate="footer-legal" href="/mindus/nexus/mentions_legales" class="text-gray-500 hover:text-blue-400">Legal Notice</a>
|
| 230 |
+
<a data-translate="footer-privacy" href="/mindus/nexus/politique_confidentialite" class="text-gray-500 hover:text-blue-400">Privacy Policy</a>
|
| 231 |
+
</div>
|
| 232 |
+
</div>
|
| 233 |
+
</div>
|
| 234 |
+
</footer>
|
| 235 |
+
<script>
|
| 236 |
+
// --- LOGIQUE MULTILINGUE ---
|
| 237 |
+
const TRANSLATIONS = {
|
| 238 |
+
// METADATA & NAVIGATION
|
| 239 |
+
"page-title": {
|
| 240 |
+
"en": "GitForge: Navigation Hub",
|
| 241 |
+
"fr": "GitForge : Centre de Navigation",
|
| 242 |
+
"es": "GitForge: Centro de Navegación",
|
| 243 |
+
"zh": "GitForge: 导航中心",
|
| 244 |
+
"ja": "GitForge: ナビゲーションハブ",
|
| 245 |
+
"de": "GitForge: Navigations-Hub",
|
| 246 |
+
"pt-br": "GitForge: Central de Navegação",
|
| 247 |
+
"ru": "GitForge: Навигационный Центр"
|
| 248 |
+
},
|
| 249 |
+
"site-name": {
|
| 250 |
+
"en": "GitForge",
|
| 251 |
+
"fr": "GitForge",
|
| 252 |
+
"es": "GitForge",
|
| 253 |
+
"zh": "GitForge",
|
| 254 |
+
"ja": "GitForge",
|
| 255 |
+
"de": "GitForge",
|
| 256 |
+
"pt-br": "GitForge",
|
| 257 |
+
"ru": "GitForge"
|
| 258 |
+
},
|
| 259 |
+
"nav-platform": {
|
| 260 |
+
"en": "Platform",
|
| 261 |
+
"fr": "Plateforme",
|
| 262 |
+
"es": "Plataforma",
|
| 263 |
+
"zh": "平台",
|
| 264 |
+
"ja": "プラットフォーム",
|
| 265 |
+
"de": "Plattform",
|
| 266 |
+
"pt-br": "Plataforma",
|
| 267 |
+
"ru": "Платформа"
|
| 268 |
+
},
|
| 269 |
+
"nav-solutions": {
|
| 270 |
+
"en": "Company",
|
| 271 |
+
"fr": "Entreprise",
|
| 272 |
+
"es": "Compañía",
|
| 273 |
+
"zh": "公司",
|
| 274 |
+
"ja": "会社概要",
|
| 275 |
+
"de": "Unternehmen",
|
| 276 |
+
"pt-br": "Empresa",
|
| 277 |
+
"ru": "Компания"
|
| 278 |
+
},
|
| 279 |
+
"nav-resources": {
|
| 280 |
+
"en": "Resources",
|
| 281 |
+
"fr": "Ressources",
|
| 282 |
+
"es": "Recursos",
|
| 283 |
+
"zh": "资源",
|
| 284 |
+
"ja": "リソース",
|
| 285 |
+
"de": "Ressourcen",
|
| 286 |
+
"pt-br": "Recursos",
|
| 287 |
+
"ru": "Ресурсы"
|
| 288 |
+
},
|
| 289 |
+
"nav-opensource": {
|
| 290 |
+
"en": "Contact us",
|
| 291 |
+
"fr": "Contactez-nous",
|
| 292 |
+
"es": "Contáctenos",
|
| 293 |
+
"zh": "联系我们",
|
| 294 |
+
"ja": "お問い合わせ",
|
| 295 |
+
"de": "Kontakt",
|
| 296 |
+
"pt-br": "Fale conosco",
|
| 297 |
+
"ru": "Связаться с нами"
|
| 298 |
+
},
|
| 299 |
+
"nav-about-us": {
|
| 300 |
+
"en": "Hub",
|
| 301 |
+
"fr": "Centre",
|
| 302 |
+
"es": "Centro",
|
| 303 |
+
"zh": "中心",
|
| 304 |
+
"ja": "ハブ",
|
| 305 |
+
"de": "Hub",
|
| 306 |
+
"pt-br": "Central",
|
| 307 |
+
"ru": "Центр"
|
| 308 |
+
},
|
| 309 |
+
"nav-pricing": {
|
| 310 |
+
"en": "Pricing",
|
| 311 |
+
"fr": "Tarifs",
|
| 312 |
+
"es": "Precios",
|
| 313 |
+
"zh": "定价",
|
| 314 |
+
"ja": "料金",
|
| 315 |
+
"de": "Preise",
|
| 316 |
+
"pt-br": "Preços",
|
| 317 |
+
"ru": "Цены"
|
| 318 |
+
},
|
| 319 |
+
"btn-sign-in": {
|
| 320 |
+
"en": "Sign in",
|
| 321 |
+
"fr": "Se connecter",
|
| 322 |
+
"es": "Iniciar sesión",
|
| 323 |
+
"zh": "登录",
|
| 324 |
+
"ja": "サインイン",
|
| 325 |
+
"de": "Anmelden",
|
| 326 |
+
"pt-br": "Entrar",
|
| 327 |
+
"ru": "Войти"
|
| 328 |
+
},
|
| 329 |
+
"btn-sign-up": {
|
| 330 |
+
"en": "Sign up",
|
| 331 |
+
"fr": "S'inscrire",
|
| 332 |
+
"es": "Registrarse",
|
| 333 |
+
"zh": "注册",
|
| 334 |
+
"ja": "登録",
|
| 335 |
+
"de": "Registrieren",
|
| 336 |
+
"pt-br": "Cadastre-se",
|
| 337 |
+
"ru": "Регистрация"
|
| 338 |
+
},
|
| 339 |
+
|
| 340 |
+
// HERO SECTION
|
| 341 |
+
"about-hero-title": {
|
| 342 |
+
"en": "Driving Innovation, Powering the Future of Software.",
|
| 343 |
+
"fr": "Moteur d'Innovation, Propulseur de l'Avenir du Logiciel.",
|
| 344 |
+
"es": "Impulsando la Innovación, Potenciando el Futuro del Software.",
|
| 345 |
+
"zh": "驱动创新,赋能软件未来。",
|
| 346 |
+
"ja": "イノベーションを推進し、ソフトウェアの未来を強化します。",
|
| 347 |
+
"de": "Innovation vorantreiben, die Zukunft der Software gestalten.",
|
| 348 |
+
"pt-br": "Impulsionando a Inovação, Capacitando o Futuro do Software.",
|
| 349 |
+
"ru": "Движение Инноваций, Энергия Будущего Программного Обеспечения."
|
| 350 |
+
},
|
| 351 |
+
"about-hero-subtitle": {
|
| 352 |
+
"en": "GitForge is the world's leading AI-powered developer platform, committed to accelerating human progress through collaboration and open source.",
|
| 353 |
+
"fr": "GitForge est la première plateforme de développement optimisée par l'IA au monde, dédiée à l'accélération du progrès humain par la collaboration et l'open source.",
|
| 354 |
+
"es": "GitForge es la plataforma para desarrolladores líder en el mundo impulsada por IA, comprometida a acelerar el progreso humano a través de la colaboración y el código abierto.",
|
| 355 |
+
"zh": "GitForge是全球领先的AI驱动的开发者平台,致力于通过协作和开源加速人类进步。",
|
| 356 |
+
"ja": "GitForgeは、コラボレーションとオープンソースを通じて人類の進歩を加速することにコミットする、世界をリードするAI駆動型開発者プラットフォームです。",
|
| 357 |
+
"de": "GitForge ist die weltweit führende KI-gestützte Entwicklerplattform, die sich der Beschleunigung des menschlichen Fortschritts durch Zusammenarbeit und Open Source verschrieben hat.",
|
| 358 |
+
"pt-br": "A GitForge é a plataforma de desenvolvimento líder mundial, impulsionada por IA, comprometida em acelerar o progresso humano através da colaboração e do código aberto.",
|
| 359 |
+
"ru": "GitForge — ведущая в мире платформа для разработчиков на базе ИИ,致力于 ускорению человеческого прогресса через сотрудничество и открытый исходный код."
|
| 360 |
+
},
|
| 361 |
+
"about-btn-learn-more": {
|
| 362 |
+
"en": "Discover Our Hub",
|
| 363 |
+
"fr": "Découvrez Notre Centre",
|
| 364 |
+
"es": "Descubre Nuestro Centro",
|
| 365 |
+
"zh": "探索我们的中心",
|
| 366 |
+
"ja": "ハブを見る",
|
| 367 |
+
"de": "Entdecken Sie unseren Hub",
|
| 368 |
+
"pt-br": "Descubra nossa Central",
|
| 369 |
+
"ru": "Открыть наш Центр"
|
| 370 |
+
},
|
| 371 |
+
|
| 372 |
+
// STATS SECTION
|
| 373 |
+
"stats-title": {
|
| 374 |
+
"en": "GitForge at a Glance",
|
| 375 |
+
"fr": "GitForge en Bref",
|
| 376 |
+
"es": "GitForge de un Vistazo",
|
| 377 |
+
"zh": "GitForge 概览",
|
| 378 |
+
"ja": "GitForgeの概要",
|
| 379 |
+
"de": "GitForge auf einen Blick",
|
| 380 |
+
"pt-br": "GitForge em Resumo",
|
| 381 |
+
"ru": "GitForge вкратце"
|
| 382 |
+
},
|
| 383 |
+
"stat-devs": { "en": "150k+", "fr": "150k+", "es": "150k+", "zh": "150k+", "ja": "150k+", "de": "150k+", "pt-br": "150k+", "ru": "150k+" },
|
| 384 |
+
"stat-devs-label": {
|
| 385 |
+
"en": "Developers",
|
| 386 |
+
"fr": "Développeurs",
|
| 387 |
+
"es": "Desarrolladores",
|
| 388 |
+
"zh": "开发者",
|
| 389 |
+
"ja": "開発者",
|
| 390 |
+
"de": "Entwickler",
|
| 391 |
+
"pt-br": "Desenvolvedores",
|
| 392 |
+
"ru": "Разработчики"
|
| 393 |
+
},
|
| 394 |
+
"stat-orgs": { "en": "3k+", "fr": "3k+", "es": "3k+", "zh": "3k+", "ja": "3k+", "de": "3k+", "pt-br": "3k+", "ru": "3k+" },
|
| 395 |
+
"stat-orgs-label": {
|
| 396 |
+
"en": "Organizations",
|
| 397 |
+
"fr": "Organisations",
|
| 398 |
+
"es": "Organizaciones",
|
| 399 |
+
"zh": "组织",
|
| 400 |
+
"ja": "組織",
|
| 401 |
+
"de": "Organisationen",
|
| 402 |
+
"pt-br": "Organizações",
|
| 403 |
+
"ru": "Организации"
|
| 404 |
+
},
|
| 405 |
+
"stat-repos": { "en": "120k+", "fr": "120k+", "es": "120k+", "zh": "120k+", "ja": "120k+", "de": "120k+", "pt-br": "120k+", "ru": "120k+" },
|
| 406 |
+
"stat-repos-label": {
|
| 407 |
+
"en": "Repositories",
|
| 408 |
+
"fr": "Répertoires",
|
| 409 |
+
"es": "Repositorios",
|
| 410 |
+
"zh": "存储库",
|
| 411 |
+
"ja": "リポジトリ",
|
| 412 |
+
"de": "Repositories",
|
| 413 |
+
"pt-br": "Repositórios",
|
| 414 |
+
"ru": "Репозитории"
|
| 415 |
+
},
|
| 416 |
+
"stat-fortune": { "en": "90%", "fr": "90%", "es": "90%", "zh": "90%", "ja": "90%", "de": "90%", "pt-br": "90%", "ru": "90%" },
|
| 417 |
+
"stat-fortune-label": {
|
| 418 |
+
"en": "Fortune 100 Coverage",
|
| 419 |
+
"fr": "Couverture Fortune 100",
|
| 420 |
+
"es": "Cobertura Fortune 100",
|
| 421 |
+
"zh": "财富100覆盖率",
|
| 422 |
+
"ja": "フォーチュン100カバレッジ",
|
| 423 |
+
"de": "Fortune 100 Abdeckung",
|
| 424 |
+
"pt-br": "Cobertura Fortune 100",
|
| 425 |
+
"ru": "Охват Fortune 100"
|
| 426 |
+
},
|
| 427 |
+
|
| 428 |
+
// NEW HUB CONTENT (CARDS)
|
| 429 |
+
"hub-title": {
|
| 430 |
+
"en": "The GitForge Hub",
|
| 431 |
+
"fr": "Le Hub GitForge",
|
| 432 |
+
"es": "El Centro GitForge",
|
| 433 |
+
"zh": "GitForge 中心",
|
| 434 |
+
"ja": "GitForge ハブ",
|
| 435 |
+
"de": "Der GitForge Hub",
|
| 436 |
+
"pt-br": "A Central GitForge",
|
| 437 |
+
"ru": "Центр GitForge"
|
| 438 |
+
},
|
| 439 |
+
"hub-subtitle": {
|
| 440 |
+
"en": "Your navigation center to all GitForge resources and product sections.",
|
| 441 |
+
"fr": "Votre centre de navigation vers toutes les ressources et sections de produits GitForge.",
|
| 442 |
+
"es": "Tu centro de navegación a todos los recursos y secciones de productos de GitForge.",
|
| 443 |
+
"zh": "您的导航中心,可访问所有 GitForge 资源和产品部分。",
|
| 444 |
+
"ja": "すべてのGitForgeリソースと製品セクションへのナビゲーションセンター。",
|
| 445 |
+
"de": "Ihr Navigationszentrum zu allen GitForge-Ressourcen und Produktbereichen.",
|
| 446 |
+
"pt-br": "Seu centro de navegação para todos os recursos e seções de produtos GitForge.",
|
| 447 |
+
"ru": "Ваш навигационный центр для всех ресурсов и разделов продуктов GitForge."
|
| 448 |
+
},
|
| 449 |
+
|
| 450 |
+
"card-title-1": {
|
| 451 |
+
"en": "Tech Blog",
|
| 452 |
+
"fr": "Blog Technique",
|
| 453 |
+
"es": "Blog de Tecnología",
|
| 454 |
+
"zh": "技术博客",
|
| 455 |
+
"ja": "技術ブログ",
|
| 456 |
+
"de": "Tech-Blog",
|
| 457 |
+
"pt-br": "Blog de Tecnologia",
|
| 458 |
+
"ru": "Технический Блог"
|
| 459 |
+
},
|
| 460 |
+
"card-desc-1": {
|
| 461 |
+
"en": "Stay updated with our latest articles, engineering insights, and product updates.",
|
| 462 |
+
"fr": "Restez informé de nos derniers articles, des informations sur l'ingénierie et des mises à jour de produits.",
|
| 463 |
+
"es": "Mantente al día con nuestros últimos artículos, conocimientos de ingeniería y actualizaciones de productos.",
|
| 464 |
+
"zh": "随时了解我们的最新文章、工程见解和产品更新。",
|
| 465 |
+
"ja": "最新の記事、エンジニアリングの洞察、製品アップデートで最新情報を入手してください。",
|
| 466 |
+
"de": "Bleiben Sie auf dem Laufenden mit unseren neuesten Artikeln, Engineering-Einblicken und Produkt-Updates.",
|
| 467 |
+
"pt-br": "Mantenha-se atualizado com nossos artigos mais recentes, insights de engenharia e atualizações de produtos.",
|
| 468 |
+
"ru": "Будьте в курсе наших последних статей, инженерных прозрений и обновлений продуктов."
|
| 469 |
+
},
|
| 470 |
+
|
| 471 |
+
"card-title-2": {
|
| 472 |
+
"en": "Our Mission & Values",
|
| 473 |
+
"fr": "Notre Mission & Valeurs",
|
| 474 |
+
"es": "Nuestra Misión y Valores",
|
| 475 |
+
"zh": "我们的使命与价值观",
|
| 476 |
+
"ja": "私たちのミッションと価値観",
|
| 477 |
+
"de": "Unsere Mission & Werte",
|
| 478 |
+
"pt-br": "Nossa Missão e Valores",
|
| 479 |
+
"ru": "Наша Миссия и Ценности"
|
| 480 |
+
},
|
| 481 |
+
"card-desc-2": {
|
| 482 |
+
"en": "Discover the core principles that drive GitForge and our commitment to the developer community.",
|
| 483 |
+
"fr": "Découvrez les principes fondamentaux qui animent GitForge et notre engagement envers la communauté des développeurs.",
|
| 484 |
+
"es": "Descubre los principios fundamentales que impulsan GitForge y nuestro compromiso con la comunidad de desarrolladores.",
|
| 485 |
+
"zh": "探索驱动GitForge的核心原则以及我们对开发者社区的承诺。",
|
| 486 |
+
"ja": "GitForgeを推進する核となる原則と、開発者コミュニティへのコミットメントを発見してください。",
|
| 487 |
+
"de": "Entdecken Sie die Kernprinzipien, die GitForge antreiben, und unser Engagement für die Entwickler-Community.",
|
| 488 |
+
"pt-br": "Descubra os princípios centrais que impulsionam a GitForge e nosso compromisso com a comunidade de desenvolvedores.",
|
| 489 |
+
"ru": "Узнайте об основных принципах, которыми руководствуется GitForge, и о нашем вкладе в сообщество разработчиков."
|
| 490 |
+
},
|
| 491 |
+
|
| 492 |
+
"card-title-3": {
|
| 493 |
+
"en": "Developer Advocacy",
|
| 494 |
+
"fr": "Plaidoyer Développeur",
|
| 495 |
+
"es": "Defensoría del Desarrollador",
|
| 496 |
+
"zh": "开发者倡导",
|
| 497 |
+
"ja": "開発者アドボカシー",
|
| 498 |
+
"de": "Entwickler-Befürwortung",
|
| 499 |
+
"pt-br": "Defesa do Desenvolvedor",
|
| 500 |
+
"ru": "Защита Разработчиков"
|
| 501 |
+
},
|
| 502 |
+
"card-desc-3": {
|
| 503 |
+
"en": "Learn how we fight for developer rights and shape policies that protect open source innovation.",
|
| 504 |
+
"fr": "Découvrez comment nous défendons les droits des développeurs et façonnons les politiques qui protègent l'innovation open source.",
|
| 505 |
+
"es": "Aprende cómo luchamos por los derechos de los desarrolladores y damos forma a políticas que protegen la innovación de código abierto.",
|
| 506 |
+
"zh": "了解我们如何为开发者权利而战,并制定保护开源创新的政策。",
|
| 507 |
+
"ja": "開発���の権利のために戦い、オープンソースのイノベーションを保護するポリシーをどのように形成しているかをご覧ください。",
|
| 508 |
+
"de": "Erfahren Sie, wie wir uns für die Rechte von Entwicklern einsetzen und Richtlinien zum Schutz von Open-Source-Innovationen gestalten.",
|
| 509 |
+
"pt-br": "Saiba como lutamos pelos direitos dos desenvolvedores e moldamos políticas que protegem a inovação de código aberto.",
|
| 510 |
+
"ru": "Узнайте, как мы боремся за права разработчиков и формируем политику, защищающую инновации с открытым исходным кодом."
|
| 511 |
+
},
|
| 512 |
+
|
| 513 |
+
"card-title-4": {
|
| 514 |
+
"en": "Customer Stories",
|
| 515 |
+
"fr": "Histoires Clients",
|
| 516 |
+
"es": "Historias de Clientes",
|
| 517 |
+
"zh": "客户案例",
|
| 518 |
+
"ja": "お客様の声",
|
| 519 |
+
"de": "Kundenberichte",
|
| 520 |
+
"pt-br": "Histórias de Clientes",
|
| 521 |
+
"ru": "Истории Клиентов"
|
| 522 |
+
},
|
| 523 |
+
"card-desc-4": {
|
| 524 |
+
"en": "Read success stories from global leaders and innovative companies building on the GitForge platform.",
|
| 525 |
+
"fr": "Lisez les réussites de leaders mondiaux et d'entreprises innovantes construisant sur la plateforme GitForge.",
|
| 526 |
+
"es": "Lee historias de éxito de líderes globales y empresas innovadoras que construyen sobre la plataforma GitForge.",
|
| 527 |
+
"zh": "阅读全球领导者和创新公司基于 GitForge 平台构建的成功案例。",
|
| 528 |
+
"ja": "GitForgeプラットフォーム上で構築しているグローバルリーダーや革新的な企業の成功事例をお読みください。",
|
| 529 |
+
"de": "Lesen Sie Erfolgsgeschichten von globalen Marktführern und innovativen Unternehmen, die auf der GitForge-Plattform aufbauen.",
|
| 530 |
+
"pt-br": "Leia histórias de sucesso de líderes globais e empresas inovadoras que estão construindo na plataforma GitForge.",
|
| 531 |
+
"ru": "Прочитайте истории успеха мировых лидеров и инновационных компаний, создающих продукты на платформе GitForge."
|
| 532 |
+
},
|
| 533 |
+
|
| 534 |
+
"card-title-5": {
|
| 535 |
+
"en": "Community",
|
| 536 |
+
"fr": "Communauté",
|
| 537 |
+
"es": "Comunidad",
|
| 538 |
+
"zh": "社区",
|
| 539 |
+
"ja": "コミュニティ",
|
| 540 |
+
"de": "Community",
|
| 541 |
+
"pt-br": "Comunidade",
|
| 542 |
+
"ru": "Сообщество"
|
| 543 |
+
},
|
| 544 |
+
"card-desc-5": {
|
| 545 |
+
"en": "Explore our community initiatives, open source projects, and efforts to promote diversity and inclusion.",
|
| 546 |
+
"fr": "Explorez nos initiatives communautaires, nos projets open source et nos efforts pour promouvoir la diversité et l'inclusion.",
|
| 547 |
+
"es": "Explora nuestras iniciativas comunitarias, proyectos de código abierto y esfuerzos para promover la diversidad y la inclusión.",
|
| 548 |
+
"zh": "探索我们的社区倡议、开源项目以及促进多样性和包容性的努力。",
|
| 549 |
+
"ja": "コミュニティの取り組み、オープンソースプロジェクト、多様性と包摂性を促進する努力を探る。",
|
| 550 |
+
"de": "Entdecken Sie unsere Community-Initiativen, Open-Source-Projekte und Bemühungen zur Förderung von Vielfalt und Inklusion.",
|
| 551 |
+
"pt-br": "Explore nossas iniciativas comunitárias, projetos de código aberto e esforços para promover a diversidade e a inclusão.",
|
| 552 |
+
"ru": "Изучите наши общественные инициативы, проекты с открытым исходным кодом и усилия по продвижению разнообразия и инклюзивности."
|
| 553 |
+
},
|
| 554 |
+
|
| 555 |
+
"card-title-6": {
|
| 556 |
+
"en": "Engineering",
|
| 557 |
+
"fr": "Ingénierie",
|
| 558 |
+
"es": "Ingeniería",
|
| 559 |
+
"zh": "工程",
|
| 560 |
+
"ja": "エンジニアリング",
|
| 561 |
+
"de": "Engineering",
|
| 562 |
+
"pt-br": "Engenharia",
|
| 563 |
+
"ru": "Инженерия"
|
| 564 |
+
},
|
| 565 |
+
"card-desc-6": {
|
| 566 |
+
"en": "Get a deep dive into our core technology, system status, and cutting-edge AI innovations.",
|
| 567 |
+
"fr": "Plongez dans notre technologie de base, l'état du système et nos innovations d'IA de pointe.",
|
| 568 |
+
"es": "Obtén una inmersión profunda en nuestra tecnología central, estado del sistema e innovaciones de IA de vanguardia.",
|
| 569 |
+
"zh": "深入了解我们的核心技术、系统状态和尖端AI创新。",
|
| 570 |
+
"ja": "当社のコアテクノ���ジー、システムステータス、最先端のAIイノベーションについて詳しくご覧ください。",
|
| 571 |
+
"de": "Erhalten Sie einen tiefen Einblick in unsere Kerntechnologie, den Systemstatus und die neuesten KI-Innovationen.",
|
| 572 |
+
"pt-br": "Obtenha uma imersão profunda em nossa tecnologia central, status do sistema e inovações de IA de ponta.",
|
| 573 |
+
"ru": "Получите глубокое погружение в нашу основную технологию, состояние системы и передовые инновации в области ИИ."
|
| 574 |
+
},
|
| 575 |
+
|
| 576 |
+
// FOOTER (keys from the user-provided footer)
|
| 577 |
+
"footer-slogan": {
|
| 578 |
+
"en": "The unified DevOps platform that accelerates your software lifecycle.",
|
| 579 |
+
"fr": "La plateforme DevOps unifiée qui accélère votre cycle de vie logiciel.",
|
| 580 |
+
"es": "La plataforma DevOps unificada que acelera tu ciclo de vida de software.",
|
| 581 |
+
"zh": "统一的 DevOps 平台,加速您的软件生命周期。",
|
| 582 |
+
"ja": "ソフトウェアのライフサイクルを加速する統合DevOpsプラットフォーム。",
|
| 583 |
+
"de": "Die vereinheitlichte DevOps-Plattform, die Ihren Software-Lebenszyklus beschleunigt.",
|
| 584 |
+
"pt-br": "A plataforma DevOps unificada que acelera seu ciclo de vida de software.",
|
| 585 |
+
"ru": "Унифицированная платформа DevOps, ускоряющая жизненный цикл вашего ПО."
|
| 586 |
+
},
|
| 587 |
+
"footer-product": {
|
| 588 |
+
"en": "Product",
|
| 589 |
+
"fr": "Produit",
|
| 590 |
+
"es": "Producto",
|
| 591 |
+
"zh": "产品",
|
| 592 |
+
"ja": "製品",
|
| 593 |
+
"de": "Produkt",
|
| 594 |
+
"pt-br": "Produto",
|
| 595 |
+
"ru": "Продукт"
|
| 596 |
+
},
|
| 597 |
+
"footer-doc": {
|
| 598 |
+
"en": "Documentation",
|
| 599 |
+
"fr": "Documentation",
|
| 600 |
+
"es": "Documentación",
|
| 601 |
+
"zh": "文档",
|
| 602 |
+
"ja": "ドキュメント",
|
| 603 |
+
"de": "Dokumentation",
|
| 604 |
+
"pt-br": "Documentação",
|
| 605 |
+
"ru": "Документация"
|
| 606 |
+
},
|
| 607 |
+
"footer-pricing": {
|
| 608 |
+
"en": "Pricing",
|
| 609 |
+
"fr": "Tarifs",
|
| 610 |
+
"es": "Precios",
|
| 611 |
+
"zh": "定价",
|
| 612 |
+
"ja": "料金",
|
| 613 |
+
"de": "Preise",
|
| 614 |
+
"pt-br": "Preços",
|
| 615 |
+
"ru": "Цены"
|
| 616 |
+
},
|
| 617 |
+
"footer-integrations": {
|
| 618 |
+
"en": "Integrations",
|
| 619 |
+
"fr": "Intégrations",
|
| 620 |
+
"es": "Integraciones",
|
| 621 |
+
"zh": "集成",
|
| 622 |
+
"ja": "統合",
|
| 623 |
+
"de": "Integrationen",
|
| 624 |
+
"pt-br": "Integrações",
|
| 625 |
+
"ru": "Интеграции"
|
| 626 |
+
},
|
| 627 |
+
"footer-security": {
|
| 628 |
+
"en": "Security",
|
| 629 |
+
"fr": "Sécurité",
|
| 630 |
+
"es": "Seguridad",
|
| 631 |
+
"zh": "安全",
|
| 632 |
+
"ja": "セキュリティ",
|
| 633 |
+
"de": "Sicherheit",
|
| 634 |
+
"pt-br": "Segurança",
|
| 635 |
+
"ru": "Безопасность"
|
| 636 |
+
},
|
| 637 |
+
"footer-entreprise": {
|
| 638 |
+
"en": "Company",
|
| 639 |
+
"fr": "Entreprise",
|
| 640 |
+
"es": "Compañía",
|
| 641 |
+
"zh": "公司",
|
| 642 |
+
"ja": "会社",
|
| 643 |
+
"de": "Unternehmen",
|
| 644 |
+
"pt-br": "Empresa",
|
| 645 |
+
"ru": "Компания"
|
| 646 |
+
},
|
| 647 |
+
"footer-about": {
|
| 648 |
+
"en": "About",
|
| 649 |
+
"fr": "À Propos",
|
| 650 |
+
"es": "Acerca de",
|
| 651 |
+
"zh": "关于",
|
| 652 |
+
"ja": "概要",
|
| 653 |
+
"de": "Über uns",
|
| 654 |
+
"pt-br": "Sobre",
|
| 655 |
+
"ru": "О нас"
|
| 656 |
+
},
|
| 657 |
+
"footer-careers": {
|
| 658 |
+
"en": "Careers",
|
| 659 |
+
"fr": "Carrières",
|
| 660 |
+
"es": "Carreras",
|
| 661 |
+
"zh": "职业生涯",
|
| 662 |
+
"ja": "採用情報",
|
| 663 |
+
"de": "Karriere",
|
| 664 |
+
"pt-br": "Carreiras",
|
| 665 |
+
"ru": "Карьера"
|
| 666 |
+
},
|
| 667 |
+
"footer-support": {
|
| 668 |
+
"en": "Support",
|
| 669 |
+
"fr": "Support",
|
| 670 |
+
"es": "Soporte",
|
| 671 |
+
"zh": "支持",
|
| 672 |
+
"ja": "サポート",
|
| 673 |
+
"de": "Support",
|
| 674 |
+
"pt-br": "Suporte",
|
| 675 |
+
"ru": "Поддержка"
|
| 676 |
+
},
|
| 677 |
+
"footer-faq": {
|
| 678 |
+
"en": "FAQ",
|
| 679 |
+
"fr": "FAQ",
|
| 680 |
+
"es": "FAQ",
|
| 681 |
+
"zh": "常见问题",
|
| 682 |
+
"ja": "よくある質問",
|
| 683 |
+
"de": "FAQ",
|
| 684 |
+
"pt-br": "FAQ",
|
| 685 |
+
"ru": "FAQ"
|
| 686 |
+
},
|
| 687 |
+
"footer-ressources": {
|
| 688 |
+
"en": "Resources",
|
| 689 |
+
"fr": "Ressources",
|
| 690 |
+
"es": "Recursos",
|
| 691 |
+
"zh": "资源",
|
| 692 |
+
"ja": "リソース",
|
| 693 |
+
"de": "Ressourcen",
|
| 694 |
+
"pt-br": "Recursos",
|
| 695 |
+
"ru": "Ресурсы"
|
| 696 |
+
},
|
| 697 |
+
"footer-contact-email": {
|
| 698 |
+
"en": "Contact Email",
|
| 699 |
+
"fr": "Contacter par Email",
|
| 700 |
+
"es": "Contacto por Email",
|
| 701 |
+
"zh": "电子邮件联系",
|
| 702 |
+
"ja": "メールでのお問い合わせ",
|
| 703 |
+
"de": "E-Mail-Kontakt",
|
| 704 |
+
"pt-br": "Contato por E-mail",
|
| 705 |
+
"ru": "Связаться по Email"
|
| 706 |
+
},
|
| 707 |
+
"footer-status": {
|
| 708 |
+
"en": "Service Status",
|
| 709 |
+
"fr": "Statut du Service",
|
| 710 |
+
"es": "Estado del Servicio",
|
| 711 |
+
"zh": "服务状态",
|
| 712 |
+
"ja": "サービス状況",
|
| 713 |
+
"de": "Dienststatus",
|
| 714 |
+
"pt-br": "Status do Serviço",
|
| 715 |
+
"ru": "Статус Сервиса"
|
| 716 |
+
},
|
| 717 |
+
"footer-blog": {
|
| 718 |
+
"en": "Tech Blog",
|
| 719 |
+
"fr": "Blog Technique",
|
| 720 |
+
"es": "Blog de Tecnología",
|
| 721 |
+
"zh": "技术博客",
|
| 722 |
+
"ja": "技術ブログ",
|
| 723 |
+
"de": "Tech-Blog",
|
| 724 |
+
"pt-br": "Blog de Tecnologia",
|
| 725 |
+
"ru": "Технический Блог"
|
| 726 |
+
},
|
| 727 |
+
"footer-copyright": {
|
| 728 |
+
"en": "© 2025 GitForge. All rights reserved. Powered by the GitForge Platform.",
|
| 729 |
+
"fr": "© 2025 GitForge. Tous droits réservés. Propulsé par la Plateforme GitForge.",
|
| 730 |
+
"es": "© 2025 GitForge. Todos los derechos reservados. Impulsado por la Plataforma GitForge.",
|
| 731 |
+
"zh": "© 2025 GitForge. 版权所有。由 GitForge 平台驱动。",
|
| 732 |
+
"ja": "© 2025 GitForge. 全著作権所有。GitForgeプラットフォームによって提供されます。",
|
| 733 |
+
"de": "© 2025 GitForge. Alle Rechte vorbehalten. Angetrieben von der GitForge Plattform.",
|
| 734 |
+
"pt-br": "© 2025 GitForge. Todos os direitos reservados. Desenvolvido pela Plataforma GitForge.",
|
| 735 |
+
"ru": "© 2025 GitForge. Все права защищены. Работает на платформе GitForge."
|
| 736 |
+
},
|
| 737 |
+
"footer-cgu": {
|
| 738 |
+
"en": "Terms of Service",
|
| 739 |
+
"fr": "Conditions d'Utilisation",
|
| 740 |
+
"es": "Términos de Servicio",
|
| 741 |
+
"zh": "服务条款",
|
| 742 |
+
"ja": "利用規約",
|
| 743 |
+
"de": "Nutzungsbedingungen",
|
| 744 |
+
"pt-br": "Termos de Serviço",
|
| 745 |
+
"ru": "Условия использования"
|
| 746 |
+
},
|
| 747 |
+
"footer-legal": {
|
| 748 |
+
"en": "Legal Notice",
|
| 749 |
+
"fr": "Mentions Légales",
|
| 750 |
+
"es": "Aviso Legal",
|
| 751 |
+
"zh": "法律声明",
|
| 752 |
+
"ja": "法的通知",
|
| 753 |
+
"de": "Rechtliche Hinweise",
|
| 754 |
+
"pt-br": "Aviso Legal",
|
| 755 |
+
"ru": "Юридическое уведомление"
|
| 756 |
+
},
|
| 757 |
+
"footer-privacy": {
|
| 758 |
+
"en": "Privacy Policy",
|
| 759 |
+
"fr": "Politique de Confidentialité",
|
| 760 |
+
"es": "Política de Privacidad",
|
| 761 |
+
"zh": "隐私政策",
|
| 762 |
+
"ja": "プライバシーポリシー",
|
| 763 |
+
"de": "Datenschutzrichtlinie",
|
| 764 |
+
"pt-br": "Política de Privacidade",
|
| 765 |
+
"ru": "Политика конфиденциальности"
|
| 766 |
+
},
|
| 767 |
+
"lang-en": { "en": "English", "fr": "Anglais", "es": "Inglés", "zh": "英语", "ja": "英語", "de": "Englisch", "pt-br": "Inglês", "ru": "Английский" },
|
| 768 |
+
"lang-fr": { "en": "French", "fr": "Français", "es": "Francés", "zh": "法语", "ja": "フランス語", "de": "Französisch", "pt-br": "Francês", "ru": "Французский" },
|
| 769 |
+
"lang-es": { "en": "Spanish", "fr": "Espagnol", "es": "Español", "zh": "西班牙语", "ja": "スペイン語", "de": "Spanisch", "pt-br": "Espanhol", "ru": "Испанский" },
|
| 770 |
+
"lang-zh": { "en": "Chinese (Simplified)", "fr": "Chinois (Simplifié)", "es": "Chino (Simplificado)", "zh": "中文 (简体)", "ja": "中国語 (簡体)", "de": "Chinesisch (Vereinfacht)", "pt-br": "Chinês (Simplificado)", "ru": "Китайский (упрощенный)" },
|
| 771 |
+
"lang-ja": { "en": "Japanese", "fr": "Japonais", "es": "Japonés", "zh": "日语", "ja": "日本語", "de": "Japanisch", "pt-br": "Japonês", "ru": "Японский" },
|
| 772 |
+
"lang-de": { "en": "German", "fr": "Allemand", "es": "Alemán", "zh": "德语", "ja": "ドイツ語", "de": "Deutsch", "pt-br": "Alemão", "ru": "Немецкий" },
|
| 773 |
+
"lang-pt-br": { "en": "Portuguese (Brazil)", "fr": "Portugais (Brésil)", "es": "Portugués (Brasil)", "zh": "葡萄牙语 (巴西)", "ja": "ポルトガル語 (ブラジル)", "de": "Portugiesisch (Brasilien)", "pt-br": "Português (Brasil)", "ru": "Португальский (Бразилия)" },
|
| 774 |
+
"lang-ru": { "en": "Russian", "fr": "Russe", "es": "Ruso", "zh": "俄语", "ja": "ロシア語", "de": "Russisch", "pt-br": "Russo", "ru": "Русский" }
|
| 775 |
+
};
|
| 776 |
+
|
| 777 |
+
let currentLang = 'en';
|
| 778 |
+
const langMap = {
|
| 779 |
+
'en': { name: 'English', flag: '🇺🇸' },
|
| 780 |
+
'fr': { name: 'Français', flag: '🌐' },
|
| 781 |
+
'es': { name: 'Español', flag: '🇪🇸' },
|
| 782 |
+
'zh': { name: '中文 (Simplified)', flag: '🇨🇳' },
|
| 783 |
+
'ja': { name: '日本語', flag: '🇯🇵' },
|
| 784 |
+
'de': { name: 'Deutsch', flag: '🇩🇪' },
|
| 785 |
+
'pt-br': { name: 'Português (Brasil)', flag: '🇧🇷' },
|
| 786 |
+
'ru': { name: 'Русский', flag: '🇷🇺' }
|
| 787 |
+
};
|
| 788 |
+
|
| 789 |
+
const applyTranslations = (lang) => {
|
| 790 |
+
currentLang = lang;
|
| 791 |
+
document.documentElement.lang = lang;
|
| 792 |
+
document.querySelectorAll('[data-translate]').forEach(element => {
|
| 793 |
+
const key = element.getAttribute('data-translate');
|
| 794 |
+
if (TRANSLATIONS[key] && TRANSLATIONS[key][lang]) {
|
| 795 |
+
element.textContent = TRANSLATIONS[key][lang];
|
| 796 |
+
}
|
| 797 |
+
});
|
| 798 |
+
|
| 799 |
+
// Update language selector display
|
| 800 |
+
const currentLangName = document.getElementById('current-lang-name');
|
| 801 |
+
const currentFlag = document.getElementById('current-flag');
|
| 802 |
+
if (currentLangName && currentFlag) {
|
| 803 |
+
currentLangName.textContent = langMap[lang].name;
|
| 804 |
+
currentLangName.setAttribute('data-lang-code', lang);
|
| 805 |
+
currentFlag.textContent = langMap[lang].flag;
|
| 806 |
+
}
|
| 807 |
+
};
|
| 808 |
+
|
| 809 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 810 |
+
// Language selector toggle logic
|
| 811 |
+
const langButton = document.getElementById('lang-menu-button');
|
| 812 |
+
const langDropdown = document.getElementById('lang-menu-dropdown');
|
| 813 |
+
|
| 814 |
+
if (langButton && langDropdown) {
|
| 815 |
+
langButton.addEventListener('click', (e) => {
|
| 816 |
+
e.stopPropagation();
|
| 817 |
+
// Toggle visibility using block/hidden for the dark theme dropdown
|
| 818 |
+
langDropdown.classList.toggle('hidden');
|
| 819 |
+
});
|
| 820 |
+
|
| 821 |
+
document.addEventListener('click', (e) => {
|
| 822 |
+
if (!langButton.contains(e.target) && !langDropdown.contains(e.target)) {
|
| 823 |
+
langDropdown.classList.add('hidden');
|
| 824 |
+
}
|
| 825 |
+
});
|
| 826 |
+
|
| 827 |
+
// Language selection logic
|
| 828 |
+
document.querySelectorAll('.lang-option').forEach(option => {
|
| 829 |
+
option.addEventListener('click', (e) => {
|
| 830 |
+
e.preventDefault();
|
| 831 |
+
const newLang = option.getAttribute('data-lang');
|
| 832 |
+
applyTranslations(newLang);
|
| 833 |
+
langDropdown.classList.add('hidden'); // Close dropdown after selection
|
| 834 |
+
});
|
| 835 |
+
});
|
| 836 |
+
}
|
| 837 |
+
|
| 838 |
+
// Initial load: Apply English translations by default
|
| 839 |
+
applyTranslations(currentLang);
|
| 840 |
+
});
|
| 841 |
+
</script>
|
| 842 |
+
</body>
|
| 843 |
+
</html>
|
a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/all_stories.html
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/api_create_key.html
ADDED
|
@@ -0,0 +1,590 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en" class="light">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>GitForge | Repository - Settings - API Keys</title>
|
| 7 |
+
<link rel="icon" type="image/png" href="https://i.postimg.cc/t4NCGNzD/gitforge-png.png">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://unpkg.com/lucide@latest"></script>
|
| 10 |
+
<link rel="stylesheet"
|
| 11 |
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" />
|
| 12 |
+
<style>
|
| 13 |
+
/* Inter Font Configuration */
|
| 14 |
+
body { font-family: 'Inter', sans-serif; }
|
| 15 |
+
|
| 16 |
+
/* Theme Variables and Transitions (Light Mode) */
|
| 17 |
+
.transition-colors-theme { transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
|
| 18 |
+
|
| 19 |
+
.light {
|
| 20 |
+
--bg-page: #FFFFFF;
|
| 21 |
+
--bg-header: #F6F8FA; /* Matches the light gray header */
|
| 22 |
+
--bg-card: #FFFFFF;
|
| 23 |
+
--bg-active: #F3F4F6;
|
| 24 |
+
--border-color: #D0D7DE;
|
| 25 |
+
--text-color: #24292F;
|
| 26 |
+
--text-secondary: #57606A;
|
| 27 |
+
--text-link: #0969DA;
|
| 28 |
+
--primary-color: #0969DA; /* Changed to blue for "View Keys" button */
|
| 29 |
+
--primary-hover: #075ECF;
|
| 30 |
+
/* Variables pour les Alertes (Warning et Info/Suggestion) */
|
| 31 |
+
--bg-warning: #FFF8C5; /* Yellow warning banner */
|
| 32 |
+
--border-warning: #E2B200;
|
| 33 |
+
--bg-suggestion: #E6F0FF; /* Light blue/lavender for suggestion banner */
|
| 34 |
+
--border-suggestion: #8096D2;
|
| 35 |
+
--text-suggestion: #24292F;
|
| 36 |
+
--key-text-color: #016200; /* Green text for keys */
|
| 37 |
+
--key-bg-color: #F6FFF6; /* Light green background for keys */
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
/* Utility classes for theme variables */
|
| 41 |
+
.bg-page-var { background-color: var(--bg-page); } .bg-card-var { background-color: var(--bg-card); }
|
| 42 |
+
.bg-header-var { background-color: var(--bg-header); } .border-color-var { border-color: var(--border-color); }
|
| 43 |
+
.text-color-var { color: var(--text-color); } .text-secondary-var { color: var(--text-secondary); }
|
| 44 |
+
.text-link-var { color: var(--text-link); }
|
| 45 |
+
.bg-primary-color-var { background-color: var(--primary-color); } .hover\:bg-primary-hover-var:hover { background-color: var(--primary-hover); }
|
| 46 |
+
.bg-active-var { background-color: var(--bg-active); } .hover\:bg-active-var:hover { background-color: var(--bg-active); }
|
| 47 |
+
.focus\:ring-link-var:focus { --tw-ring-color: var(--text-link); }
|
| 48 |
+
|
| 49 |
+
/* Repository Navigation Link Styles */
|
| 50 |
+
.repo-nav-link {
|
| 51 |
+
padding: 0.5rem 1rem; border-bottom: 2px solid transparent;
|
| 52 |
+
margin-right: 0.5rem;
|
| 53 |
+
white-space: nowrap; /* Prevents wrapping in the horizontal nav */
|
| 54 |
+
}
|
| 55 |
+
/* La page Settings est active */
|
| 56 |
+
.repo-nav-link.active {
|
| 57 |
+
border-bottom-color: #F78166; /* Vibrant orange/red for active tab */
|
| 58 |
+
color: var(--text-color) !important;
|
| 59 |
+
font-weight: 600;
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
/* Sidebar Styles (Settings-specific sidebar) */
|
| 63 |
+
.settings-nav-link {
|
| 64 |
+
display: flex;
|
| 65 |
+
align-items: center;
|
| 66 |
+
padding: 0.5rem 0.75rem;
|
| 67 |
+
border-radius: 0.5rem;
|
| 68 |
+
color: var(--text-secondary);
|
| 69 |
+
transition: color 0.15s, background-color 0.15s;
|
| 70 |
+
}
|
| 71 |
+
.settings-nav-link:hover {
|
| 72 |
+
color: var(--text-color);
|
| 73 |
+
}
|
| 74 |
+
.settings-nav-link.active {
|
| 75 |
+
color: var(--text-color);
|
| 76 |
+
background-color: var(--bg-active);
|
| 77 |
+
font-weight: 600;
|
| 78 |
+
}
|
| 79 |
+
/* Styles pour les sections repliables */
|
| 80 |
+
.collapsible-header {
|
| 81 |
+
cursor: pointer;
|
| 82 |
+
user-select: none;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
/* Responsive Sidebar Logic (identical to previous file) */
|
| 86 |
+
#sidebar {
|
| 87 |
+
position: fixed;
|
| 88 |
+
top: 0;
|
| 89 |
+
left: 0;
|
| 90 |
+
width: 300px;
|
| 91 |
+
height: 100%;
|
| 92 |
+
background-color: var(--bg-card);
|
| 93 |
+
transform: translateX(-100%);
|
| 94 |
+
transition: transform 0.3s ease-in-out;
|
| 95 |
+
box-shadow: 2px 0 5px rgba(0,0,0,0.1);
|
| 96 |
+
z-index: 100;
|
| 97 |
+
}
|
| 98 |
+
#sidebar.open {
|
| 99 |
+
transform: translateX(0);
|
| 100 |
+
}
|
| 101 |
+
#overlay {
|
| 102 |
+
position: fixed;
|
| 103 |
+
top: 0;
|
| 104 |
+
left: 0;
|
| 105 |
+
width: 100%;
|
| 106 |
+
height: 100%;
|
| 107 |
+
background: rgba(0, 0, 0, 0.5);
|
| 108 |
+
z-index: 90;
|
| 109 |
+
display: none;
|
| 110 |
+
}
|
| 111 |
+
#overlay.open {
|
| 112 |
+
display: block;
|
| 113 |
+
}
|
| 114 |
+
</style>
|
| 115 |
+
</head>
|
| 116 |
+
|
| 117 |
+
<body class="bg-page-var text-color-var min-h-screen transition-colors-theme">
|
| 118 |
+
|
| 119 |
+
<div id="overlay"></div>
|
| 120 |
+
|
| 121 |
+
<div id="sidebar" class="p-4 border-r border-color-var text-color-var transition-colors-theme">
|
| 122 |
+
<div class="flex justify-between items-center pb-4 border-b border-color-var/50 mb-4">
|
| 123 |
+
<i data-lucide="git-fork" class="text-3xl text-link-var"></i>
|
| 124 |
+
<button id="close-sidebar" class="text-secondary-var hover:text-color-var">
|
| 125 |
+
<i data-lucide="x" class="text-2xl"></i>
|
| 126 |
+
</button>
|
| 127 |
+
</div>
|
| 128 |
+
|
| 129 |
+
<nav class="space-y-1">
|
| 130 |
+
<a href="/mindus/nexus/dashboard?repo_slug={{ repo_slug }}" class="flex items-center p-2 rounded-lg hover:bg-active-var transition-colors-theme">
|
| 131 |
+
<i data-lucide="home" class="w-5 h-5 mr-3"></i> Home
|
| 132 |
+
</a>
|
| 133 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-active-var transition-colors-theme">
|
| 134 |
+
<i data-lucide="alert-circle" class="w-5 h-5 mr-3"></i> Issues
|
| 135 |
+
</a>
|
| 136 |
+
<a href="/mindus/nexus/pull_request?repo_slug={{ repo_slug }}" class="flex items-center p-2 rounded-lg hover:bg-active-var transition-colors-theme">
|
| 137 |
+
<i data-lucide="git-pull-request" class="w-5 h-5 mr-3"></i> Pull requests
|
| 138 |
+
</a>
|
| 139 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-active-var transition-colors-theme">
|
| 140 |
+
<i data-lucide="layout-grid" class="w-5 h-5 mr-3"></i> Projects
|
| 141 |
+
</a>
|
| 142 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-active-var transition-colors-theme">
|
| 143 |
+
<i data-lucide="message-square" class="w-5 h-5 mr-3"></i> Discussions
|
| 144 |
+
</a>
|
| 145 |
+
<a href="/repo_files?repo_slug={{ repo_slug }}" class="flex items-center p-2 rounded-lg hover:bg-active-var transition-colors-theme">
|
| 146 |
+
<i data-lucide="code" class="w-5 h-5 mr-3"></i> Codespaces
|
| 147 |
+
</a>
|
| 148 |
+
<a href="/mindus/nexus/gitforge_copilot" class="flex items-center p-2 rounded-lg hover:bg-active-var transition-colors-theme">
|
| 149 |
+
<i data-lucide="cpu" class="w-5 h-5 mr-3"></i> Copilot
|
| 150 |
+
</a>
|
| 151 |
+
</nav>
|
| 152 |
+
|
| 153 |
+
<div class="border-t border-color-var/50 my-4 pt-4 space-y-1">
|
| 154 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-active-var transition-colors-theme">
|
| 155 |
+
<i data-lucide="compass" class="w-5 h-5 mr-3"></i> Explore
|
| 156 |
+
</a>
|
| 157 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-active-var transition-colors-theme">
|
| 158 |
+
<i data-lucide="store" class="w-5 h-5 mr-3"></i> Marketplace
|
| 159 |
+
</a>
|
| 160 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-active-var transition-colors-theme">
|
| 161 |
+
<i data-lucide="link" class="w-5 h-5 mr-3"></i> MCP registry
|
| 162 |
+
</a>
|
| 163 |
+
</div>
|
| 164 |
+
</div>
|
| 165 |
+
<header class="w-full bg-header-var border-b border-color-var transition-colors-theme">
|
| 166 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 167 |
+
<div class="flex justify-between items-center h-16">
|
| 168 |
+
|
| 169 |
+
<div class="flex items-center space-x-4">
|
| 170 |
+
<button id="open-sidebar" class="p-2 rounded-lg text-color-var hover:bg-active-var transition-colors-theme">
|
| 171 |
+
<i data-lucide="menu" class="w-6 h-6"></i>
|
| 172 |
+
</button>
|
| 173 |
+
|
| 174 |
+
<span class="text-xl font-bold text-color-var transition-colors-theme hidden md:block">GitForge</span>
|
| 175 |
+
<span class="text-secondary-var hidden md:block">/</span>
|
| 176 |
+
<a href="#" class="text-color-var hover:text-link-var text-lg font-semibold transition-colors-theme flex items-center">
|
| 177 |
+
<span id="repo-user">{{ user.username if user.username else 'current_user' }}</span> / <span id="repo-name">{{ repo_name if repo_name else repo_slug }}</span>
|
| 178 |
+
<i data-lucide="lock" class="w-4 h-4 ml-2 text-secondary-var"></i>
|
| 179 |
+
</a>
|
| 180 |
+
</div>
|
| 181 |
+
|
| 182 |
+
<div class="flex items-center space-x-3">
|
| 183 |
+
<div class="hidden sm:block">
|
| 184 |
+
<input type="text" placeholder="Type / to search"
|
| 185 |
+
class="bg-page-var border border-color-var text-color-var rounded-lg p-1.5 text-sm w-40 md:w-48 transition-colors-theme focus:outline-none focus:border-link-var focus:ring-1 focus:ring-link-var">
|
| 186 |
+
</div>
|
| 187 |
+
<a href="#" class="p-2 rounded-full text-secondary-var hover:text-link-var transition-colors-theme">
|
| 188 |
+
<i data-lucide="bell" class="w-5 h-5"></i>
|
| 189 |
+
</a>
|
| 190 |
+
<a href="#" class="p-2 rounded-full text-secondary-var hover:text-link-var transition-colors-theme">
|
| 191 |
+
<i data-lucide="plus" class="w-5 h-5"></i>
|
| 192 |
+
</a>
|
| 193 |
+
<a href="#" class="p-2 rounded-full text-secondary-var hover:text-link-var transition-colors-theme">
|
| 194 |
+
<i data-lucide="user-circle" class="w-5 h-5"></i>
|
| 195 |
+
</a>
|
| 196 |
+
</div>
|
| 197 |
+
</div>
|
| 198 |
+
</div>
|
| 199 |
+
|
| 200 |
+
<div class="w-full border-b border-color-var bg-page-var transition-colors-theme">
|
| 201 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 202 |
+
<nav class="flex space-x-1 overflow-x-auto text-sm font-medium">
|
| 203 |
+
<a href="/repo_files?repo_slug=repo_slug" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 204 |
+
<i data-lucide="code" class="w-4 h-4 mr-1"></i> Code
|
| 205 |
+
</a>
|
| 206 |
+
<a href="/mindus/nexus/new_issue?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 207 |
+
<i data-lucide="alert-circle" class="w-4 h-4 mr-1"></i> Issues
|
| 208 |
+
</a>
|
| 209 |
+
<a href="/mindus/nexus/pull_request?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 210 |
+
<i data-lucide="git-pull-request" class="w-4 h-4 mr-1"></i> Pull requests
|
| 211 |
+
</a>
|
| 212 |
+
<a href="#" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 213 |
+
<i data-lucide="check-square" class="w-4 h-4 mr-1"></i> Actions
|
| 214 |
+
</a>
|
| 215 |
+
<a href="#" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 216 |
+
<i data-lucide="box" class="w-4 h-4 mr-1"></i> Projects
|
| 217 |
+
</a>
|
| 218 |
+
<a href="#" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 219 |
+
<i data-lucide="shield" class="w-4 h-4 mr-1"></i> Security
|
| 220 |
+
</a>
|
| 221 |
+
<a href="#" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 222 |
+
<i data-lucide="trending-up" class="w-4 h-4 mr-1"></i> Insights
|
| 223 |
+
</a>
|
| 224 |
+
<a href="/mindus/nexus/settings?repo_slug={{ repo_slug }}" class="repo-nav-link text-color-var active transition-colors-theme flex items-center">
|
| 225 |
+
<i data-lucide="settings" class="w-4 h-4 mr-1"></i> Settings
|
| 226 |
+
</a>
|
| 227 |
+
</nav>
|
| 228 |
+
</div>
|
| 229 |
+
</div>
|
| 230 |
+
</header>
|
| 231 |
+
|
| 232 |
+
|
| 233 |
+
<main id="main-content" class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 transition-colors-theme">
|
| 234 |
+
|
| 235 |
+
<div class="grid grid-cols-1 lg:grid-cols-4 gap-8">
|
| 236 |
+
|
| 237 |
+
<aside class="lg:col-span-1 border-r border-color-var/50 pr-4 hidden lg:block">
|
| 238 |
+
<nav class="space-y-1">
|
| 239 |
+
<h3 class="font-semibold text-xs text-secondary-var uppercase mb-2">General</h3>
|
| 240 |
+
<a href="/mindus/nexus/settings?repo_slug={{ repo_slug }}" class="settings-nav-link">
|
| 241 |
+
<i data-lucide="settings" class="w-4 h-4 mr-3"></i> General
|
| 242 |
+
</a>
|
| 243 |
+
<h3 class="font-semibold text-xs text-secondary-var uppercase mt-4 mb-2">Access</h3>
|
| 244 |
+
<a href="/mindus/nexus/api_create_key?repo_slug={{ repo_slug }}" class="settings-nav-link">
|
| 245 |
+
<i data-lucide="key-round" class="w-4 h-4 mr-3"></i> Access
|
| 246 |
+
</a>
|
| 247 |
+
<a href="#" class="settings-nav-link">
|
| 248 |
+
<i data-lucide="users" class="w-4 h-4 mr-3"></i> Collaborators
|
| 249 |
+
</a>
|
| 250 |
+
<h3 class="font-semibold text-xs text-secondary-var uppercase mt-4 mb-2">Code and automation</h3>
|
| 251 |
+
<a href="/mindus/nexus/new_branch" class="settings-nav-link">
|
| 252 |
+
<i data-lucide="git-branch" class="w-4 h-4 mr-3"></i> Branches
|
| 253 |
+
</a>
|
| 254 |
+
<a href="#" class="settings-nav-link">
|
| 255 |
+
<i data-lucide="tag" class="w-4 h-4 mr-3"></i> Tags
|
| 256 |
+
</a>
|
| 257 |
+
<a href="#" class="settings-nav-link">
|
| 258 |
+
<i data-lucide="shield" class="w-4 h-4 mr-3"></i> Rules
|
| 259 |
+
<i data-lucide="chevron-down" class="w-4 h-4 ml-auto text-secondary-var"></i>
|
| 260 |
+
</a>
|
| 261 |
+
<a href="#" class="settings-nav-link">
|
| 262 |
+
<i data-lucide="check-square" class="w-4 h-4 mr-3"></i> Actions
|
| 263 |
+
<i data-lucide="chevron-down" class="w-4 h-4 ml-auto text-secondary-var"></i>
|
| 264 |
+
</a>
|
| 265 |
+
<a href="#" class="settings-nav-link">
|
| 266 |
+
<i data-lucide="box" class="w-4 h-4 mr-3"></i> Models
|
| 267 |
+
<span class="ml-2 px-2 py-0.5 text-xs font-semibold bg-green-100 text-primary-color-var rounded-full">Preview</span>
|
| 268 |
+
</a>
|
| 269 |
+
<a href="#" class="settings-nav-link">
|
| 270 |
+
<i data-lucide="webhook" class="w-4 h-4 mr-3"></i> Webhooks
|
| 271 |
+
</a>
|
| 272 |
+
<a href="/mindus/nexus/gitforge_copilot" class="settings-nav-link active">
|
| 273 |
+
<i data-lucide="cpu" class="w-4 h-4 mr-3"></i> Copilot
|
| 274 |
+
<i data-lucide="chevron-down" class="w-4 h-4 ml-auto text-color-var"></i>
|
| 275 |
+
</a>
|
| 276 |
+
<a href="#" class="settings-nav-link">
|
| 277 |
+
<i data-lucide="link" class="w-4 h-4 mr-3"></i> Environments
|
| 278 |
+
</a>
|
| 279 |
+
<a href="#" class="settings-nav-link">
|
| 280 |
+
<i data-lucide="code" class="w-4 h-4 mr-3"></i> Codespaces
|
| 281 |
+
</a>
|
| 282 |
+
<a href="#" class="settings-nav-link">
|
| 283 |
+
<i data-lucide="layout-grid" class="w-4 h-4 mr-3"></i> Pages
|
| 284 |
+
</a>
|
| 285 |
+
</nav>
|
| 286 |
+
</aside>
|
| 287 |
+
|
| 288 |
+
<div class="lg:col-span-3">
|
| 289 |
+
<h1 class="text-3xl font-light text-color-var mb-6">Settings</h1>
|
| 290 |
+
|
| 291 |
+
<div class="flex items-center space-x-2 text-sm text-secondary-var mb-6 border-b border-color-var/50 pb-2">
|
| 292 |
+
<i data-lucide="cpu" class="w-4 h-4"></i>
|
| 293 |
+
<span class="font-semibold text-color-var">Code and automation</span>
|
| 294 |
+
<i data-lucide="chevron-right" class="w-3 h-3"></i>
|
| 295 |
+
<span>Copilot</span>
|
| 296 |
+
</div>
|
| 297 |
+
|
| 298 |
+
<div class="p-4 rounded-lg text-sm mb-6 flex items-start"
|
| 299 |
+
style="background-color: var(--bg-suggestion); border: 1px solid var(--border-suggestion);">
|
| 300 |
+
<i data-lucide="info" class="w-5 h-5 mr-3 text-link-var mt-0.5"></i>
|
| 301 |
+
<p class="text-color-var">
|
| 302 |
+
We recommend using <a href="#" class="text-link-var font-medium hover:underline">GitForge Apps</a> instead for fine grained control over repositories and <a href="#" class="text-link-var font-medium hover:underline">enhanced security</a>.
|
| 303 |
+
</p>
|
| 304 |
+
</div>
|
| 305 |
+
|
| 306 |
+
<div class="border-b border-color-var/50 pb-4 mb-4 flex justify-between items-center">
|
| 307 |
+
<h2 class="text-xl font-semibold text-color-var">User API Keys</h2>
|
| 308 |
+
<button id="view-keys-btn" class="inline-flex items-center justify-center px-3 py-1.5 text-sm bg-primary-color-var text-white font-semibold rounded-lg hover:bg-primary-hover-var transition duration-150 whitespace-nowrap">
|
| 309 |
+
<i data-lucide="key-round" class="w-4 h-4 mr-2"></i>
|
| 310 |
+
View All Keys
|
| 311 |
+
</button>
|
| 312 |
+
</div>
|
| 313 |
+
|
| 314 |
+
<p class="text-sm text-secondary-var mb-6">
|
| 315 |
+
These are your personal API keys used to access your projects, manage files, and interact with the GitForge backend services. **Protect them carefully.** You can generate and manage up to 5 keys.
|
| 316 |
+
</p>
|
| 317 |
+
|
| 318 |
+
<div id="api-keys-container" class="mt-8">
|
| 319 |
+
<div id="loading-indicator" class="hidden text-center p-4 text-secondary-var">
|
| 320 |
+
<i data-lucide="loader-2" class="w-5 h-5 mx-auto animate-spin"></i> Loading...
|
| 321 |
+
</div>
|
| 322 |
+
<div id="api-keys-list" class="space-y-4">
|
| 323 |
+
<div id="no-keys-message" class="p-12 text-center border border-color-var rounded-lg bg-page-var">
|
| 324 |
+
<h3 class="text-xl font-semibold text-color-var mb-3">Click 'View All Keys' to display your API Keys</h3>
|
| 325 |
+
<p class="text-secondary-var">
|
| 326 |
+
For security reasons, keys are not displayed by default. They are required to use the API routes.
|
| 327 |
+
</p>
|
| 328 |
+
</div>
|
| 329 |
+
</div>
|
| 330 |
+
<div id="error-message" class="hidden p-4 rounded-lg text-sm"
|
| 331 |
+
style="background-color: var(--bg-warning); border: 1px solid var(--border-warning);">
|
| 332 |
+
<p class="text-color-var font-semibold">Error:</p>
|
| 333 |
+
<p id="error-details" class="text-color-var"></p>
|
| 334 |
+
</div>
|
| 335 |
+
</div>
|
| 336 |
+
</div>
|
| 337 |
+
</div>
|
| 338 |
+
</main>
|
| 339 |
+
|
| 340 |
+
<div id="global-spinner-overlay" class="fixed inset-0 bg-black bg-opacity-10 z-50 items-center justify-center hidden">
|
| 341 |
+
<div class="p-6 bg-card-var rounded-lg shadow-xl flex flex-col items-center">
|
| 342 |
+
<div class="spinner spinner-large mb-3"></div>
|
| 343 |
+
<p id="global-spinner-text" class="text-color-var font-semibold">Processing operation...</p>
|
| 344 |
+
</div>
|
| 345 |
+
</div>
|
| 346 |
+
|
| 347 |
+
<footer class="w-full border-t border-color-var mt-12 py-8 text-sm text-secondary-var">
|
| 348 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex flex-col md:flex-row justify-between items-center">
|
| 349 |
+
<div class="flex items-center space-x-4 mb-4 md:mb-0">
|
| 350 |
+
<i data-lucide="git-fork" class="w-5 h-5"></i>
|
| 351 |
+
<span>© 2025 GitForge, Inc.</span>
|
| 352 |
+
</div>
|
| 353 |
+
<nav class="flex flex-wrap justify-center space-x-4">
|
| 354 |
+
<a href="/mindus/nexus/conditions_utilisation" class="hover:text-link-var">Terms</a>
|
| 355 |
+
<a href="/mindus/nexus/politique_confidentialite" class="hover:text-link-var">Privacy</a>
|
| 356 |
+
<a href="/mindus/nexus/mentions_legales" class="hover:text-link-var">Security</a>
|
| 357 |
+
<a href="/mindus/nexus/statut" class="hover:text-link-var">Status</a>
|
| 358 |
+
<a href="#" class="hover:text-link-var">Community</a>
|
| 359 |
+
<a href="/mindus/nexus/documentation" class="hover:text-link-var">Docs</a>
|
| 360 |
+
<a href="/mindus/nexus/contact" class="hover:text-link-var">Contact</a>
|
| 361 |
+
</nav>
|
| 362 |
+
</div>
|
| 363 |
+
</footer>
|
| 364 |
+
|
| 365 |
+
<script>
|
| 366 |
+
// Initialiser Lucide Icons
|
| 367 |
+
lucide.createIcons();
|
| 368 |
+
|
| 369 |
+
// ----------------------------------------------------------------------
|
| 370 |
+
// SIDEBAR LOGIC (inchangée)
|
| 371 |
+
// ----------------------------------------------------------------------
|
| 372 |
+
const sidebar = document.getElementById('sidebar');
|
| 373 |
+
const overlay = document.getElementById('overlay');
|
| 374 |
+
const openButton = document.getElementById('open-sidebar');
|
| 375 |
+
const closeButton = document.getElementById('close-sidebar');
|
| 376 |
+
|
| 377 |
+
const toggleSidebar = () => {
|
| 378 |
+
sidebar.classList.toggle('open');
|
| 379 |
+
overlay.classList.toggle('open');
|
| 380 |
+
};
|
| 381 |
+
|
| 382 |
+
openButton.addEventListener('click', toggleSidebar);
|
| 383 |
+
closeButton.addEventListener('click', toggleSidebar);
|
| 384 |
+
overlay.addEventListener('click', toggleSidebar);
|
| 385 |
+
|
| 386 |
+
const body = document.body;
|
| 387 |
+
const observer = new MutationObserver(() => {
|
| 388 |
+
if (sidebar.classList.contains('open')) {
|
| 389 |
+
body.style.overflow = 'hidden';
|
| 390 |
+
} else {
|
| 391 |
+
body.style.overflow = '';
|
| 392 |
+
}
|
| 393 |
+
});
|
| 394 |
+
observer.observe(sidebar, { attributes: true, attributeFilter: ['class'] });
|
| 395 |
+
|
| 396 |
+
// ----------------------------------------------------------------------
|
| 397 |
+
// LOGIQUE DE GESTION DES CLÉS API (NOUVEAU)
|
| 398 |
+
// ----------------------------------------------------------------------
|
| 399 |
+
const viewKeysBtn = document.getElementById('view-keys-btn');
|
| 400 |
+
const apiKeysListDiv = document.getElementById('api-keys-list');
|
| 401 |
+
const noKeysMessage = document.getElementById('no-keys-message');
|
| 402 |
+
const loadingIndicator = document.getElementById('loading-indicator');
|
| 403 |
+
const errorMessageDiv = document.getElementById('error-message');
|
| 404 |
+
const errorDetailsP = document.getElementById('error-details');
|
| 405 |
+
|
| 406 |
+
/**
|
| 407 |
+
* Copie la clé API dans le presse-papiers
|
| 408 |
+
* @param {string} key - La clé API à copier
|
| 409 |
+
*/
|
| 410 |
+
function copyKeyToClipboard(key) {
|
| 411 |
+
navigator.clipboard.writeText(key).then(() => {
|
| 412 |
+
alert("Clé API copiée dans le presse-papiers !");
|
| 413 |
+
}).catch(err => {
|
| 414 |
+
console.error('Erreur de copie:', err);
|
| 415 |
+
alert("Erreur lors de la tentative de copie de la clé API.");
|
| 416 |
+
});
|
| 417 |
+
}
|
| 418 |
+
|
| 419 |
+
/**
|
| 420 |
+
* Affiche une erreur
|
| 421 |
+
* @param {string} message - Message d'erreur à afficher.
|
| 422 |
+
*/
|
| 423 |
+
function displayError(message) {
|
| 424 |
+
errorMessageDiv.classList.remove('hidden');
|
| 425 |
+
errorDetailsP.textContent = message;
|
| 426 |
+
apiKeysListDiv.innerHTML = ''; // Clear previous keys
|
| 427 |
+
noKeysMessage.classList.add('hidden');
|
| 428 |
+
}
|
| 429 |
+
|
| 430 |
+
/**
|
| 431 |
+
* Charge et affiche la liste des clés API de l'utilisateur.
|
| 432 |
+
*/
|
| 433 |
+
async function fetchApiKeys() {
|
| 434 |
+
// Cache management: Check if keys are already displayed
|
| 435 |
+
if (viewKeysBtn.textContent.trim() === 'Hide Keys') {
|
| 436 |
+
viewKeysBtn.textContent = 'View All Keys';
|
| 437 |
+
apiKeysListDiv.innerHTML = '';
|
| 438 |
+
noKeysMessage.classList.remove('hidden');
|
| 439 |
+
errorMessageDiv.classList.add('hidden');
|
| 440 |
+
return;
|
| 441 |
+
}
|
| 442 |
+
|
| 443 |
+
// 1. Afficher l'indicateur de chargement et cacher le message "no keys"
|
| 444 |
+
noKeysMessage.classList.add('hidden');
|
| 445 |
+
errorMessageDiv.classList.add('hidden');
|
| 446 |
+
loadingIndicator.classList.remove('hidden');
|
| 447 |
+
apiKeysListDiv.innerHTML = ''; // Effacer le contenu précédent
|
| 448 |
+
|
| 449 |
+
try {
|
| 450 |
+
// NOTE: Assurez-vous que l'URL correspond à votre configuration Flask.
|
| 451 |
+
// Si vous utilisez le Blueprint 'api_key_bp' directement, l'URL est '/keys/list'.
|
| 452 |
+
// Si vous utilisez le Blueprint central 'api_bp' avec préfixe '/api/v1', l'URL est '/api/v1/keys/list'.
|
| 453 |
+
const response = await fetch('/api/v1/keys/list', {
|
| 454 |
+
method: 'GET',
|
| 455 |
+
headers: {
|
| 456 |
+
'Content-Type': 'application/json',
|
| 457 |
+
// La clé API de l'utilisateur doit être envoyée ici pour s'authentifier
|
| 458 |
+
// Pour le test, si l'utilisateur est déjà loggé via session, l'entête n'est pas nécessaire,
|
| 459 |
+
// mais dans un vrai scénario API, il faudrait la clé d'une manière ou d'une autre.
|
| 460 |
+
// Pour ce cas d'utilisation, nous dépendons du décorateur api_key_required qui cherche
|
| 461 |
+
// la clé dans l'entête 'X-API-Key' ou dans les paramètres de la requête.
|
| 462 |
+
// Si la page est servie après une connexion, on peut récupérer une clé d'une variable globale/cookie/session.
|
| 463 |
+
// Pour la démo, nous supposons que la session Flask ou un cookie est suffisant
|
| 464 |
+
// pour que le décorateur `api_key_required` puisse trouver la clé.
|
| 465 |
+
// Pour un test complet, l'utilisateur pourrait devoir entrer une clé ici.
|
| 466 |
+
// Par simplicité, nous omettons l'entête X-API-Key ici, en comptant sur la session de l'utilisateur.
|
| 467 |
+
}
|
| 468 |
+
});
|
| 469 |
+
|
| 470 |
+
loadingIndicator.classList.add('hidden');
|
| 471 |
+
|
| 472 |
+
const result = await response.json();
|
| 473 |
+
|
| 474 |
+
if (!response.ok) {
|
| 475 |
+
const errorMsg = result.error || "Une erreur est survenue lors de la récupération des clés.";
|
| 476 |
+
displayError(errorMsg);
|
| 477 |
+
return;
|
| 478 |
+
}
|
| 479 |
+
|
| 480 |
+
if (result.keys && result.keys.length > 0) {
|
| 481 |
+
viewKeysBtn.textContent = 'Hide Keys';
|
| 482 |
+
|
| 483 |
+
result.keys.forEach(keyData => {
|
| 484 |
+
const keyElement = document.createElement('div');
|
| 485 |
+
keyElement.className = 'border border-color-var rounded-lg p-4 bg-card-var shadow-sm flex flex-col sm:flex-row justify-between items-start sm:items-center transition-colors-theme';
|
| 486 |
+
|
| 487 |
+
const isCurrentBadge = keyData.is_current ?
|
| 488 |
+
`<span class="ml-2 px-2 py-0.5 text-xs font-semibold bg-blue-100 text-link-var rounded-full">CURRENT</span>` : '';
|
| 489 |
+
|
| 490 |
+
keyElement.innerHTML = `
|
| 491 |
+
<div class="flex flex-col w-full sm:w-auto sm:flex-1 min-w-0 mb-3 sm:mb-0">
|
| 492 |
+
<div class="flex items-center mb-1">
|
| 493 |
+
<span class="font-semibold text-color-var">${keyData.name}</span>
|
| 494 |
+
${isCurrentBadge}
|
| 495 |
+
</div>
|
| 496 |
+
<code class="text-sm p-2 rounded bg-key-bg-color text-key-text-color overflow-x-auto whitespace-nowrap scrollbar-thin">
|
| 497 |
+
${keyData.api_key}
|
| 498 |
+
</code>
|
| 499 |
+
<p class="text-xs text-secondary-var mt-1">${keyData.description}</p>
|
| 500 |
+
</div>
|
| 501 |
+
<div class="flex space-x-2">
|
| 502 |
+
<button data-key="${keyData.api_key}" class="copy-btn inline-flex items-center justify-center px-3 py-1.5 text-sm font-semibold rounded-lg bg-active-var text-color-var hover:bg-link-var hover:text-white transition duration-150">
|
| 503 |
+
<i data-lucide="copy" class="w-4 h-4 mr-1"></i> Copy
|
| 504 |
+
</button>
|
| 505 |
+
<button data-key="${keyData.api_key}" class="delete-btn inline-flex items-center justify-center px-3 py-1.5 text-sm font-semibold rounded-lg bg-red-100 text-red-700 hover:bg-red-200 transition duration-150">
|
| 506 |
+
<i data-lucide="trash-2" class="w-4 h-4"></i>
|
| 507 |
+
</button>
|
| 508 |
+
</div>
|
| 509 |
+
`;
|
| 510 |
+
apiKeysListDiv.appendChild(keyElement);
|
| 511 |
+
});
|
| 512 |
+
|
| 513 |
+
// Réinitialiser les icônes Lucide pour les nouveaux éléments
|
| 514 |
+
lucide.createIcons();
|
| 515 |
+
|
| 516 |
+
// Attacher les écouteurs d'événements pour la copie
|
| 517 |
+
document.querySelectorAll('.copy-btn').forEach(button => {
|
| 518 |
+
button.addEventListener('click', (e) => {
|
| 519 |
+
const keyToCopy = e.currentTarget.getAttribute('data-key');
|
| 520 |
+
copyKeyToClipboard(keyToCopy);
|
| 521 |
+
});
|
| 522 |
+
});
|
| 523 |
+
|
| 524 |
+
// Attacher les écouteurs d'événements pour la suppression
|
| 525 |
+
document.querySelectorAll('.delete-btn').forEach(button => {
|
| 526 |
+
button.addEventListener('click', (e) => {
|
| 527 |
+
const keyToDelete = e.currentTarget.getAttribute('data-key');
|
| 528 |
+
if (confirm(`Êtes-vous sûr de vouloir supprimer la clé API se terminant par ...${keyToDelete.slice(-4)} ?`)) {
|
| 529 |
+
deleteApiKey(keyToDelete);
|
| 530 |
+
}
|
| 531 |
+
});
|
| 532 |
+
});
|
| 533 |
+
|
| 534 |
+
} else {
|
| 535 |
+
noKeysMessage.classList.remove('hidden');
|
| 536 |
+
noKeysMessage.querySelector('h3').textContent = "No API Keys Found";
|
| 537 |
+
viewKeysBtn.textContent = 'View All Keys';
|
| 538 |
+
}
|
| 539 |
+
|
| 540 |
+
} catch (error) {
|
| 541 |
+
loadingIndicator.classList.add('hidden');
|
| 542 |
+
displayError(`Request failed: ${error.message}`);
|
| 543 |
+
}
|
| 544 |
+
}
|
| 545 |
+
|
| 546 |
+
/**
|
| 547 |
+
* Supprime une clé API
|
| 548 |
+
* @param {string} key - La clé API à supprimer
|
| 549 |
+
*/
|
| 550 |
+
async function deleteApiKey(key) {
|
| 551 |
+
// Simple spinner simulation for the delete operation
|
| 552 |
+
const originalButtonText = viewKeysBtn.textContent;
|
| 553 |
+
viewKeysBtn.textContent = 'Deleting...';
|
| 554 |
+
viewKeysBtn.disabled = true;
|
| 555 |
+
|
| 556 |
+
try {
|
| 557 |
+
const response = await fetch('/api/v1/keys/delete', {
|
| 558 |
+
method: 'DELETE',
|
| 559 |
+
headers: {
|
| 560 |
+
'Content-Type': 'application/json',
|
| 561 |
+
// NOTE: Vous pourriez aussi mettre la clé utilisée pour la requête d'authentification ici
|
| 562 |
+
},
|
| 563 |
+
body: JSON.stringify({ api_key: key })
|
| 564 |
+
});
|
| 565 |
+
|
| 566 |
+
const result = await response.json();
|
| 567 |
+
|
| 568 |
+
if (response.ok) {
|
| 569 |
+
alert(result.message);
|
| 570 |
+
// Recharger la liste des clés après une suppression réussie
|
| 571 |
+
viewKeysBtn.textContent = originalButtonText; // Réinitialiser le texte avant le rechargement
|
| 572 |
+
viewKeysBtn.disabled = false;
|
| 573 |
+
await fetchApiKeys();
|
| 574 |
+
} else {
|
| 575 |
+
alert(`Failed to delete key: ${result.error || 'Unknown error'}`);
|
| 576 |
+
}
|
| 577 |
+
} catch (error) {
|
| 578 |
+
alert(`Network error during deletion: ${error.message}`);
|
| 579 |
+
} finally {
|
| 580 |
+
// Réinitialiser le bouton en cas d'échec avant de recharger
|
| 581 |
+
viewKeysBtn.textContent = originalButtonText;
|
| 582 |
+
viewKeysBtn.disabled = false;
|
| 583 |
+
}
|
| 584 |
+
}
|
| 585 |
+
|
| 586 |
+
viewKeysBtn.addEventListener('click', fetchApiKeys);
|
| 587 |
+
|
| 588 |
+
</script>
|
| 589 |
+
</body>
|
| 590 |
+
</html>
|
a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/blog.html
ADDED
|
@@ -0,0 +1,768 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title data-translate="page-title">GitForge Blog</title>
|
| 7 |
+
<link rel="icon" type="image/png" href="https://i.postimg.cc/t4NCGNzD/gitforge-png.png">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
| 10 |
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" />
|
| 11 |
+
<style>
|
| 12 |
+
/* Custom Tailwind Configuration */
|
| 13 |
+
.bg-header { background-color: #f7f9fc; }
|
| 14 |
+
.header-border { border-color: #e5e7eb; }
|
| 15 |
+
.text-blue-600-var { color: #2563eb; }
|
| 16 |
+
.border-blue-600-var { border-color: #2563eb; }
|
| 17 |
+
.bg-blue-600-var { background-color: #2563eb; }
|
| 18 |
+
.hover\:bg-blue-700-var:hover { background-color: #1d4ed8; }
|
| 19 |
+
.text-gray-900-var { color: #1f2937; }
|
| 20 |
+
|
| 21 |
+
/* Fixed Header Styles */
|
| 22 |
+
.fixed-header {
|
| 23 |
+
position: fixed;
|
| 24 |
+
top: 0;
|
| 25 |
+
width: 100%;
|
| 26 |
+
z-index: 100;
|
| 27 |
+
background-color: #ffffff; /* Assurer que l'en-tête est opaque */
|
| 28 |
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
/* Language Dropdown Styles */
|
| 32 |
+
.lang-dropdown-container {
|
| 33 |
+
position: relative;
|
| 34 |
+
}
|
| 35 |
+
.lang-menu-dropdown {
|
| 36 |
+
position: absolute;
|
| 37 |
+
left: 0;
|
| 38 |
+
bottom: 100%;
|
| 39 |
+
margin-bottom: 0.5rem;
|
| 40 |
+
width: 10rem;
|
| 41 |
+
background-color: #ffffff;
|
| 42 |
+
border-radius: 0.375rem;
|
| 43 |
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
| 44 |
+
z-index: 50;
|
| 45 |
+
border: 1px solid #e5e7eb;
|
| 46 |
+
display: none;
|
| 47 |
+
}
|
| 48 |
+
.lang-menu-dropdown a {
|
| 49 |
+
color: #1f2937;
|
| 50 |
+
}
|
| 51 |
+
.lang-menu-dropdown a:hover {
|
| 52 |
+
background-color: #f3f4f6;
|
| 53 |
+
color: #2563eb;
|
| 54 |
+
}
|
| 55 |
+
|
| 56 |
+
/* Footer style adjustments */
|
| 57 |
+
footer .text-white { color: #1f2937 !important; }
|
| 58 |
+
footer .text-gray-400 { color: #6b7280 !important; }
|
| 59 |
+
footer .border-t.border-[#4b5563] { border-color: #e5e7eb !important; }
|
| 60 |
+
footer .text-gray-500 { color: #6b7280 !important; }
|
| 61 |
+
|
| 62 |
+
/* Hero Background Section Style */
|
| 63 |
+
.hero-blog-bg {
|
| 64 |
+
/* Nouvelle image pour un meilleur contraste */
|
| 65 |
+
background-image: url('https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1280&q=80');
|
| 66 |
+
background-size: cover;
|
| 67 |
+
background-position: center;
|
| 68 |
+
position: relative;
|
| 69 |
+
}
|
| 70 |
+
.hero-overlay {
|
| 71 |
+
background-color: rgba(0, 0, 0, 0.6); /* Darker overlay for text contrast */
|
| 72 |
+
height: 100%;
|
| 73 |
+
width: 100%;
|
| 74 |
+
}
|
| 75 |
+
</style>
|
| 76 |
+
</head>
|
| 77 |
+
<body class="bg-white text-gray-900 font-sans">
|
| 78 |
+
|
| 79 |
+
<header class="fixed-header border-b border-gray-200">
|
| 80 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-4 flex justify-between items-center">
|
| 81 |
+
<div class="flex items-center space-x-8">
|
| 82 |
+
<a href="#" class="text-2xl font-bold text-gray-900 flex items-center">
|
| 83 |
+
<img src="https://i.postimg.cc/t4NCGNzD/gitforge-png.png" alt="GitForge Logo" class="h-6 w-6 mr-2">
|
| 84 |
+
<span data-translate="site-name">GitForge</span>
|
| 85 |
+
</a>
|
| 86 |
+
<nav class="hidden md:flex space-x-6 text-sm font-medium text-gray-700">
|
| 87 |
+
<a href="/mindus/nexus/conditions_utilisation" class="hover:text-blue-600-var" data-translate="nav-platform">Platform</a>
|
| 88 |
+
<a href="/mindus/nexus/contact" class="hover:text-blue-600-var" data-translate="nav-solutions">Company</a>
|
| 89 |
+
<a href="/mindus/nexus/resources" class="hover:text-blue-600-var" data-translate="nav-resources">Resources</a>
|
| 90 |
+
<a href="/mindus/nexus/contact" class="hover:text-blue-600-var" data-translate="nav-opensource">Contact us</a>
|
| 91 |
+
<a href="/mindus/nexus/a_propos" class="hover:text-blue-600-var" data-translate="nav-enterprise">Enterprise</a>
|
| 92 |
+
<a href="/mindus/nexus/blog" class="hover:text-blue-600-var text-blue-600-var" data-translate="nav-blog">Blog</a>
|
| 93 |
+
</nav>
|
| 94 |
+
</div>
|
| 95 |
+
<div class="flex items-center space-x-4">
|
| 96 |
+
</button>
|
| 97 |
+
<a href="/mindus/nexus/connexion" class="hidden sm:inline text-sm font-medium text-gray-700 hover:text-blue-600-var" data-translate="btn-sign-in">Sign in</a>
|
| 98 |
+
<a href="/mindus/nexus/inscription" class="px-4 py-2 text-sm font-medium border border-gray-300 rounded-md text-gray-700 hover:border-blue-600-var hover:text-blue-600-var transition" data-translate="btn-sign-up">Sign up</a>
|
| 99 |
+
</div>
|
| 100 |
+
</div>
|
| 101 |
+
</header>
|
| 102 |
+
|
| 103 |
+
<main>
|
| 104 |
+
<div class="pt-20"></div>
|
| 105 |
+
|
| 106 |
+
<div class="hero-blog-bg py-24 md:py-36 min-h-[450px]">
|
| 107 |
+
<div class="hero-overlay flex items-center justify-center">
|
| 108 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 text-center text-white">
|
| 109 |
+
<h1 class="text-5xl md:text-6xl font-extrabold mb-6 max-w-5xl mx-auto" data-translate="hero-title">
|
| 110 |
+
GitForge Blog: The Future of Software Development
|
| 111 |
+
</h1>
|
| 112 |
+
<p class="text-xl md:text-2xl font-light mb-8 max-w-4xl mx-auto" data-translate="hero-subtitle">
|
| 113 |
+
Deep dives into DevOps, AI, security, and the community shaping the world's code.
|
| 114 |
+
</p>
|
| 115 |
+
<div class="flex justify-center space-x-4">
|
| 116 |
+
<a href="#featured" class="inline-block bg-blue-600-var hover:bg-blue-700-var text-white font-medium py-3 px-8 rounded-md transition duration-300 text-lg shadow-lg">
|
| 117 |
+
Read Latest Article
|
| 118 |
+
</a>
|
| 119 |
+
</div>
|
| 120 |
+
</div>
|
| 121 |
+
</div>
|
| 122 |
+
</div>
|
| 123 |
+
|
| 124 |
+
<section id="featured" class="py-16 md:py-24 bg-gray-50">
|
| 125 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 126 |
+
<h2 class="text-4xl font-extrabold text-gray-900-var mb-12 text-center" data-translate="section2-title">
|
| 127 |
+
The Core: Unified Development & Collaboration
|
| 128 |
+
</h2>
|
| 129 |
+
<div class="grid md:grid-cols-2 gap-10 items-center">
|
| 130 |
+
<div class="space-y-6">
|
| 131 |
+
<p class="text-lg text-gray-700" data-translate="section2-text1">
|
| 132 |
+
GitForge is built on the philosophy that fragmented tools hinder innovation. Our platform unites the entire software development lifecycle—from idea to deployment—in a single, seamless environment.
|
| 133 |
+
</p>
|
| 134 |
+
<p class="text-lg text-gray-700" data-translate="section2-text2">
|
| 135 |
+
This unified approach drastically improves team communication, accelerates iteration cycles, and reduces the complexity of managing disparate toolchains. Collaboration is not an afterthought; it's the foundation of GitForge.
|
| 136 |
+
</p>
|
| 137 |
+
</div>
|
| 138 |
+
<div class="grid grid-cols-2 gap-4">
|
| 139 |
+
<img src="https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1280&q=80" alt="Team meeting at a table" class="w-full h-48 object-cover rounded-lg shadow-md hover:shadow-xl transition duration-300">
|
| 140 |
+
<img src="https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1280&q=80" alt="Team brainstorming at a whiteboard" class="w-full h-48 object-cover rounded-lg shadow-md hover:shadow-xl transition duration-300">
|
| 141 |
+
</div>
|
| 142 |
+
</div>
|
| 143 |
+
</div>
|
| 144 |
+
</section>
|
| 145 |
+
|
| 146 |
+
<section class="py-16 md:py-24">
|
| 147 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 148 |
+
<h2 class="text-4xl font-extrabold text-gray-900-var mb-12 text-center" data-translate="section6-title">
|
| 149 |
+
Practical DevOps: Accelerate Your Workflow
|
| 150 |
+
</h2>
|
| 151 |
+
<div class="grid md:grid-cols-2 gap-10 items-center">
|
| 152 |
+
<div class="grid grid-cols-2 gap-4">
|
| 153 |
+
<img src="https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=1280&q=80" alt="Book on a table, representing documentation" class="w-full h-48 object-cover rounded-lg shadow-md hover:shadow-xl transition duration-300">
|
| 154 |
+
<img src="https://images.unsplash.com/photo-1542744173-8e7f5e4a7d4f?auto=format&fit=crop&w=1280&q=80" alt="Office desk setup with monitors" class="w-full h-48 object-cover rounded-lg shadow-md hover:shadow-xl transition duration-300">
|
| 155 |
+
</div>
|
| 156 |
+
<div class="space-y-6">
|
| 157 |
+
<p class="text-lg text-gray-700" data-translate="section6-text1">
|
| 158 |
+
Optimiser votre flux de travail DevOps est essentiel pour une livraison logicielle rapide et efficace. Nos articles vous guident à travers les meilleures pratiques de CI/CD, d'automatisation des tests et d'intégration de conteneurs.
|
| 159 |
+
</p>
|
| 160 |
+
<p class="text-lg text-gray-700" data-translate="section6-text2">
|
| 161 |
+
Apprenez à configurer des pipelines sans friction avec GitForge Actions et découvrez comment les microservices peuvent transformer l'architecture de votre application pour une meilleure évolutivité et résilience.
|
| 162 |
+
</p>
|
| 163 |
+
</div>
|
| 164 |
+
</div>
|
| 165 |
+
</div>
|
| 166 |
+
</section>
|
| 167 |
+
|
| 168 |
+
<section class="py-16 md:py-24 bg-gray-50">
|
| 169 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 170 |
+
<h2 class="text-4xl font-extrabold text-gray-900-var mb-12 text-center" data-translate="section3-title">
|
| 171 |
+
AI-Powered Innovation: From Code to Continuous Delivery
|
| 172 |
+
</h2>
|
| 173 |
+
<div class="grid md:grid-cols-3 gap-8">
|
| 174 |
+
<img src="https://images.unsplash.com/photo-1542831371-29b0f74f9713?auto=format&fit=crop&w=1280&q=80" alt="Code editor on a screen" class="w-full h-64 object-cover rounded-lg shadow-md hover:shadow-xl transition duration-300">
|
| 175 |
+
<img src="https://images.unsplash.com/photo-1503264116251-35a269479413?auto=format&fit=crop&w=1280&q=80" alt="Developer focused on laptop" class="w-full h-64 object-cover rounded-lg shadow-md hover:shadow-xl transition duration-300">
|
| 176 |
+
<img src="https://images.unsplash.com/photo-1517694712202-14dd9538aa97?auto=format&fit=crop&w=1280&q=80" alt="Multiple monitors with code" class="w-full h-64 object-cover rounded-lg shadow-md hover:shadow-xl transition duration-300">
|
| 177 |
+
</div>
|
| 178 |
+
<div class="mt-12 max-w-4xl mx-auto space-y-6">
|
| 179 |
+
<p class="text-lg text-gray-700" data-translate="section3-text1">
|
| 180 |
+
Our integrated AI tools, like GitForge Copilot, are revolutionizing the way developers write, test, and deploy code. By providing intelligent suggestions and automating repetitive tasks, we empower teams to focus on complex problem-solving.
|
| 181 |
+
</p>
|
| 182 |
+
<p class="text-lg text-gray-700" data-translate="section3-text2">
|
| 183 |
+
Combined with our robust CI/CD pipelines, this innovation translates into faster releases and a more reliable product. Automation isn't just about saving time; it's about eliminating risk and ensuring quality at scale.
|
| 184 |
+
</p>
|
| 185 |
+
</div>
|
| 186 |
+
</div>
|
| 187 |
+
</section>
|
| 188 |
+
|
| 189 |
+
<section class="py-16 md:py-24">
|
| 190 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 191 |
+
<h2 class="text-4xl font-extrabold text-gray-900-var mb-12 text-center" data-translate="section4-title">
|
| 192 |
+
Security, Compliance, and Enterprise Readiness
|
| 193 |
+
</h2>
|
| 194 |
+
<div class="grid md:grid-cols-2 gap-10 items-center">
|
| 195 |
+
<div class="grid grid-cols-1 gap-6">
|
| 196 |
+
<img src="https://images.unsplash.com/photo-1488590528505-98d2b5aba04b?auto=format&fit=crop&w=1280&q=80" alt="Laptop screen with data charts" class="w-full h-64 object-cover rounded-lg shadow-md hover:shadow-xl transition duration-300">
|
| 197 |
+
<div class="grid grid-cols-2 gap-4">
|
| 198 |
+
<img src="https://images.unsplash.com/photo-1515879218367-8466d910aaa4?auto=format&fit=crop&w=1280&q=80" alt="Command line interface" class="w-full h-40 object-cover rounded-lg shadow-md hover:shadow-xl transition duration-300">
|
| 199 |
+
<img src="https://images.unsplash.com/photo-1535223289827-42f1e9919769?auto=format&fit=crop&w=1280&q=80" alt="Code on a notebook" class="w-full h-40 object-cover rounded-lg shadow-md hover:shadow-xl transition duration-300">
|
| 200 |
+
</div>
|
| 201 |
+
</div>
|
| 202 |
+
<div class="space-y-6">
|
| 203 |
+
<p class="text-lg text-gray-700" data-translate="section4-text1">
|
| 204 |
+
For large organizations, security and compliance are paramount. GitForge Advanced Security provides comprehensive scanning, dependency analysis, and secret detection right in your repository.
|
| 205 |
+
</p>
|
| 206 |
+
<p class="text-lg text-gray-700" data-translate="section4-text2">
|
| 207 |
+
Furthermore, features like Data Residency and Enterprise Managed Users ensure that global teams can adhere to regional regulations while maintaining simplified identity and policy management across multiple organizations.
|
| 208 |
+
</p>
|
| 209 |
+
</div>
|
| 210 |
+
</div>
|
| 211 |
+
</div>
|
| 212 |
+
</section>
|
| 213 |
+
|
| 214 |
+
<section class="py-16 md:py-24 bg-gray-50">
|
| 215 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 216 |
+
<h2 class="text-4xl font-extrabold text-gray-900-var mb-12 text-center" data-translate="section7-title">
|
| 217 |
+
News and Trends: The GitForge Ecosystem
|
| 218 |
+
</h2>
|
| 219 |
+
<div class="grid md:grid-cols-2 gap-10 items-center">
|
| 220 |
+
<div class="space-y-6">
|
| 221 |
+
<p class="text-lg text-gray-700" data-translate="section7-text1">
|
| 222 |
+
Restez à jour avec les dernières annonces de produits, les études de cas de clients qui réussissent et les tendances émergentes qui transforment le paysage du développement. Notre blog est votre source d'information privilégiée sur l'évolution de GitForge.
|
| 223 |
+
</p>
|
| 224 |
+
<p class="text-lg text-gray-700" data-translate="section7-text2">
|
| 225 |
+
De la blockchain aux architectures sans serveur, nous couvrons les sujets qui comptent pour les ingénieurs et les leaders technologiques. Abonnez-vous à notre newsletter pour ne rien manquer.
|
| 226 |
+
</p>
|
| 227 |
+
</div>
|
| 228 |
+
<div class="grid grid-cols-2 gap-4">
|
| 229 |
+
<img src="https://images.unsplash.com/photo-1537432376769-00a0a46da42f?auto=format&fit=crop&w=1280&q=80" alt="Data center server racks" class="w-full h-48 object-cover rounded-lg shadow-md hover:shadow-xl transition duration-300">
|
| 230 |
+
<img src="https://images.unsplash.com/photo-1496317656642-3e4a1f9b4c25?auto=format&fit=crop&w=1280&q=80" alt="Person typing on a keyboard" class="w-full h-48 object-cover rounded-lg shadow-md hover:shadow-xl transition duration-300">
|
| 231 |
+
</div>
|
| 232 |
+
</div>
|
| 233 |
+
</div>
|
| 234 |
+
</section>
|
| 235 |
+
|
| 236 |
+
<section class="py-16 md:py-24">
|
| 237 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 238 |
+
<h2 class="text-4xl font-extrabold text-gray-900-var mb-12 text-center" data-translate="section5-title">
|
| 239 |
+
Community, Open Source, and Our Mission
|
| 240 |
+
</h2>
|
| 241 |
+
<div class="grid md:grid-cols-2 gap-10 items-center">
|
| 242 |
+
<div class="space-y-6">
|
| 243 |
+
<p class="text-lg text-gray-700" data-translate="section5-text1">
|
| 244 |
+
GitForge began as a commitment to open source, and that spirit continues to drive our community. We offer a robust Free plan, designed for individual developers and small teams, providing unlimited public and private repositories.
|
| 245 |
+
</p>
|
| 246 |
+
<p class="text-lg text-gray-700" data-translate="section5-text2">
|
| 247 |
+
Our mission is to foster a space where any developer, anywhere, can contribute to and build the next great software innovation. Join the millions of developers who are already building the future with GitForge.
|
| 248 |
+
</p>
|
| 249 |
+
</div>
|
| 250 |
+
<div class="grid grid-cols-3 gap-4">
|
| 251 |
+
<img src="https://images.unsplash.com/photo-1587620962725-abab7fe55159?auto=format&fit=crop&w=1280&q=80" alt="Keyboard and coffee" class="w-full h-40 object-cover rounded-lg shadow-md hover:shadow-xl transition duration-300">
|
| 252 |
+
<img src="https://images.unsplash.com/photo-1505685296765-3a2736de412f?auto=format&fit=crop&w=1280&q=80" alt="Open-source code on a laptop" class="w-full h-40 object-cover rounded-lg shadow-md hover:shadow-xl transition duration-300">
|
| 253 |
+
<img src="https://images.unsplash.com/photo-1499951360447-b19be8fe80f5?auto=format&fit=crop&w=1280&q=80" alt="Person working on code on a laptop" class="w-full h-40 object-cover rounded-lg shadow-md hover:shadow-xl transition duration-300">
|
| 254 |
+
</div>
|
| 255 |
+
</div>
|
| 256 |
+
</div>
|
| 257 |
+
</section>
|
| 258 |
+
|
| 259 |
+
<section class="py-16 md:py-24 bg-gray-900">
|
| 260 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 text-center">
|
| 261 |
+
<h2 class="text-4xl font-extrabold text-white mb-6" data-translate="cta-title">
|
| 262 |
+
Ready to Build the Future with GitForge?
|
| 263 |
+
</h2>
|
| 264 |
+
<p class="text-xl text-gray-300 mb-10 max-w-3xl mx-auto" data-translate="cta-desc">
|
| 265 |
+
Explore our platform, check out our resources, or join the discussion in our community forums.
|
| 266 |
+
</p>
|
| 267 |
+
<div class="flex justify-center space-x-4">
|
| 268 |
+
<a href="/mindus/nexus/inscription" class="inline-block bg-blue-600-var hover:bg-blue-700-var text-white font-medium py-3 px-8 rounded-md transition duration-300 text-lg shadow-lg">
|
| 269 |
+
<span data-translate="btn-sign-up">Sign up</span>
|
| 270 |
+
</a>
|
| 271 |
+
<a href="/mindus/nexus/contact" class="inline-block bg-white hover:bg-gray-100 text-gray-800 font-medium py-3 px-8 rounded-md transition duration-300 text-lg shadow-lg">
|
| 272 |
+
<span data-translate="nav-contact">Contact us</span>
|
| 273 |
+
</a>
|
| 274 |
+
</div>
|
| 275 |
+
<div class="grid grid-cols-3 gap-4 mt-16 max-w-4xl mx-auto opacity-70">
|
| 276 |
+
<img src="https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1280&q=80" alt="Circuit board" class="w-full h-32 object-cover rounded-lg">
|
| 277 |
+
<img src="https://images.unsplash.com/photo-1542744173-8e7f5e4a7d4f?auto=format&fit=crop&w=1280&q=80" alt="Office desk setup" class="w-full h-32 object-cover rounded-lg">
|
| 278 |
+
<img src="https://images.unsplash.com/photo-1481277542470-605612bd2d61?auto=format&fit=crop&w=1280&q=80" alt="Hand pointing at a chart" class="w-full h-32 object-cover rounded-lg">
|
| 279 |
+
</div>
|
| 280 |
+
</div>
|
| 281 |
+
</section>
|
| 282 |
+
</main>
|
| 283 |
+
|
| 284 |
+
<footer class="bg-white border-t border-gray-200">
|
| 285 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-10">
|
| 286 |
+
<div class="grid grid-cols-4 md:grid-cols-6 lg:grid-cols-12 gap-8 text-sm">
|
| 287 |
+
|
| 288 |
+
<div class="col-span-4 md:col-span-2 lg:col-span-3">
|
| 289 |
+
<h4 data-translate="site-name" class="text-xl font-bold text-gray-900-var mb-4 flex items-center">
|
| 290 |
+
<img src="https://i.postimg.cc/t4NCGNzD/gitforge-png.png" alt="GitForge Logo" class="h-5 w-5 mr-2">
|
| 291 |
+
GitForge
|
| 292 |
+
</h4>
|
| 293 |
+
<p class="text-gray-600 mb-4" data-translate="footer-slogan">The unified DevOps platform, powered by AI.</p>
|
| 294 |
+
<div class="flex space-x-4">
|
| 295 |
+
<a href="#" class="text-gray-500 hover:text-blue-600-var transition duration-200" aria-label="GitForge on Twitter"><i class="fab fa-twitter"></i></a>
|
| 296 |
+
<a href="#" class="text-gray-500 hover:text-blue-600-var transition duration-200" aria-label="GitForge on Facebook"><i class="fab fa-facebook"></i></a>
|
| 297 |
+
<a href="#" class="text-gray-500 hover:text-blue-600-var transition duration-200" aria-label="GitForge on LinkedIn"><i class="fab fa-linkedin"></i></a>
|
| 298 |
+
<a href="#" class="text-gray-500 hover:text-blue-600-var transition duration-200" aria-label="GitForge on YouTube"><i class="fab fa-youtube"></i></a>
|
| 299 |
+
</div>
|
| 300 |
+
</div>
|
| 301 |
+
|
| 302 |
+
<div class="col-span-4 md:col-span-1 lg:col-span-2">
|
| 303 |
+
<h4 data-translate="footer-product" class="font-bold text-gray-900-var mb-3">Product</h4>
|
| 304 |
+
<ul class="space-y-2 text-gray-600">
|
| 305 |
+
<li><a data-translate="footer-features" href="#" class="hover:text-blue-600-var transition duration-200">Features</a></li>
|
| 306 |
+
<li><a data-translate="footer-security" href="/mindus/nexus/politique_confidentialite" class="hover:text-blue-600-var transition duration-200">Security</a></li>
|
| 307 |
+
<li><a data-translate="footer-team" href="/mindus/nexus/a_propos" class="hover:text-blue-600-var transition duration-200">Team</a></li>
|
| 308 |
+
<li><a data-translate="footer-enterprise" href="/mindus/nexus/a_propos" class="hover:text-blue-600-var transition duration-200">Enterprise</a></li>
|
| 309 |
+
<li><a data-translate="nav-blog" href="/mindus/nexus/blog" class="hover:text-blue-600-var transition duration-200">Blog</a></li>
|
| 310 |
+
</ul>
|
| 311 |
+
</div>
|
| 312 |
+
|
| 313 |
+
<div class="col-span-4 md:col-span-1 lg:col-span-2">
|
| 314 |
+
<h4 data-translate="footer-company" class="font-bold text-gray-900-var mb-3">Company</h4>
|
| 315 |
+
<ul class="space-y-2 text-gray-600">
|
| 316 |
+
<li><a data-translate="footer-about" href="/mindus/nexus/a_propos" class="hover:text-blue-600-var transition duration-200">About us</a></li>
|
| 317 |
+
<li><a data-translate="footer-customers" href="/mindus/nexus/customers" class="hover:text-blue-600-var transition duration-200">Customers</a></li>
|
| 318 |
+
<li><a data-translate="footer-careers" href="/mindus/nexus/careers" class="hover:text-blue-600-var transition duration-200">Careers</a></li>
|
| 319 |
+
<li><a data-translate="footer-support" href="/mindus/nexus/contact" class="hover:text-blue-600-var transition duration-200">Support</a></li>
|
| 320 |
+
<li><a data-translate="footer-faq" href="/mindus/nexus/faq" class="hover:text-blue-600-var transition duration-200">FAQ</a></li>
|
| 321 |
+
</ul>
|
| 322 |
+
</div>
|
| 323 |
+
|
| 324 |
+
<div class="col-span-4 md:col-span-2 lg:col-span-3 lang-dropdown-container">
|
| 325 |
+
<h4 data-translate="footer-resources" class="font-bold text-gray-900-var mb-3">Resources</h4>
|
| 326 |
+
<ul class="space-y-2 text-gray-600">
|
| 327 |
+
<li><a data-translate="footer-contact-email" href="/mindus/nexus/contact" class="hover:text-blue-600-var transition duration-200">Contact Email</a></li>
|
| 328 |
+
<li><a data-translate="footer-status" href="/mindus/nexus/statut" class="hover:text-blue-600-var transition duration-200">Service Status</a></li>
|
| 329 |
+
<li><a data-translate="footer-blog" href="/mindus/nexus/blog" class="hover:text-blue-600-var transition duration-200">Tech Blog</a></li>
|
| 330 |
+
<li class="relative mt-4 pt-4 border-t border-gray-200">
|
| 331 |
+
<button id="lang-menu-button" class="flex items-center text-gray-900-var hover:text-blue-600-var transition duration-200 text-sm">
|
| 332 |
+
<span id="current-flag">🇺🇸</span>
|
| 333 |
+
<span id="current-lang-name" class="ml-2 font-medium">English</span>
|
| 334 |
+
<i class="fas fa-chevron-up ml-2 text-xs"></i>
|
| 335 |
+
</button>
|
| 336 |
+
<div id="lang-menu-dropdown" class="lang-menu-dropdown p-2">
|
| 337 |
+
<a href="#" class="block px-3 py-2 rounded-md text-sm lang-option" data-lang="en"><span class="mr-2">🇺🇸</span> English</a>
|
| 338 |
+
<a href="#" class="block px-3 py-2 rounded-md text-sm lang-option" data-lang="fr"><span class="mr-2">🇫🇷</span> Français</a>
|
| 339 |
+
<a href="#" class="block px-3 py-2 rounded-md text-sm lang-option" data-lang="es"><span class="mr-2">🇪🇸</span> Español</a>
|
| 340 |
+
<a href="#" class="block px-3 py-2 rounded-md text-sm lang-option" data-lang="zh-CN"><span class="mr-2">🇨🇳</span> 简体中文 (Simplified Chinese)</a>
|
| 341 |
+
<a href="#" class="block px-3 py-2 rounded-md text-sm lang-option" data-lang="ja"><span class="mr-2">🇯🇵</span> 日本語 (Japanese)</a>
|
| 342 |
+
<a href="#" class="block px-3 py-2 rounded-md text-sm lang-option" data-lang="de"><span class="mr-2">🇩🇪</span> Deutsch (German)</a>
|
| 343 |
+
<a href="#" class="block px-3 py-2 rounded-md text-sm lang-option" data-lang="pt-BR"><span class="mr-2">🇧🇷</span> Português (Brasil)</a>
|
| 344 |
+
<a href="#" class="block px-3 py-2 rounded-md text-sm lang-option" data-lang="ru"><span class="mr-2">🇷🇺</span> Русский (Russian)</a>
|
| 345 |
+
</div>
|
| 346 |
+
</li>
|
| 347 |
+
</ul>
|
| 348 |
+
</div>
|
| 349 |
+
|
| 350 |
+
</div>
|
| 351 |
+
|
| 352 |
+
<div class="mt-10 border-t border-gray-200 pt-6 flex flex-col sm:flex-row justify-between items-center">
|
| 353 |
+
<p class="text-sm text-gray-600 text-center sm:text-left" data-translate="footer-copyright">
|
| 354 |
+
© 2025 GitForge. All rights reserved. Powered by the <a href="/" class="hover:text-blue-600-var hover:underline">GitForge Platform</a>.
|
| 355 |
+
</p>
|
| 356 |
+
<div class="flex space-x-4 mt-4 sm:mt-0 text-sm">
|
| 357 |
+
<a href="/mindus/nexus/mentions_legales" class="text-gray-600 hover:text-blue-600-var" data-translate="footer-legal">Legal</a>
|
| 358 |
+
<a href="/mindus/nexus/conditions_utilisation" class="text-gray-600 hover:text-blue-600-var" data-translate="footer-privacy">Privacy</a>
|
| 359 |
+
<a href="/mindus/nexus/politique_confidentialite" class="text-gray-600 hover:text-blue-600-var" data-translate="footer-security-policy">Security Policy</a>
|
| 360 |
+
</div>
|
| 361 |
+
</div>
|
| 362 |
+
</div>
|
| 363 |
+
</footer>
|
| 364 |
+
|
| 365 |
+
|
| 366 |
+
<script>
|
| 367 |
+
// Default language set to English (en)
|
| 368 |
+
let currentLang = 'en';
|
| 369 |
+
|
| 370 |
+
// Translation dictionary (extended for Blog content)
|
| 371 |
+
const translations = {
|
| 372 |
+
"site-name": { "fr": "GitForge", "en": "GitForge", "es": "GitForge", "zh-CN": "GitForge", "ja": "GitForge", "de": "GitForge", "pt-BR": "GitForge", "ru": "GitForge" },
|
| 373 |
+
"nav-platform": { "fr": "Plateforme", "en": "Platform", "es": "Plataforma", "zh-CN": "平台", "ja": "プラットフォーム", "de": "Plattform", "pt-BR": "Plataforma", "ru": "Платформа" },
|
| 374 |
+
"nav-solutions": { "fr": "Entreprise", "en": "Company", "es": "Empresa", "zh-CN": "公司", "ja": "企業情報", "de": "Unternehmen", "pt-BR": "Empresa", "ru": "Компания" },
|
| 375 |
+
"nav-resources": { "fr": "Ressources", "en": "Resources", "es": "Recursos", "zh-CN": "资源", "ja": "リソース", "de": "Ressourcen", "pt-BR": "Recursos", "ru": "Ресурсы" },
|
| 376 |
+
"nav-opensource": { "fr": "Contactez-nous", "en": "Contact us", "es": "Contáctenos", "zh-CN": "联系我们", "ja": "お問い合わせ", "de": "Kontakt", "pt-BR": "Fale Conosco", "ru": "Связаться с нами" },
|
| 377 |
+
"nav-enterprise": { "fr": "Entreprise", "en": "Enterprise", "es": "Empresa", "zh-CN": "企业版", "ja": "エンタープライズ", "de": "Enterprise", "pt-BR": "Empresarial", "ru": "Корпоративный" },
|
| 378 |
+
"nav-blog": { "fr": "Blog", "en": "Blog", "es": "Blog", "zh-CN": "博客", "ja": "ブログ", "de": "Blog", "pt-BR": "Blog", "ru": "Блог" },
|
| 379 |
+
"btn-sign-in": { "fr": "Se connecter", "en": "Sign in", "es": "Iniciar sesión", "zh-CN": "登录", "ja": "サインイン", "de": "Anmelden", "pt-BR": "Entrar", "ru": "Войти" },
|
| 380 |
+
"btn-sign-up": { "fr": "S'inscrire", "en": "Sign up", "es": "Registrarse", "zh-CN": "注册", "ja": "サインアップ", "de": "Registrieren", "pt-BR": "Cadastre-se", "ru": "Регистрация" },
|
| 381 |
+
"nav-contact": { "fr": "Contactez-nous", "en": "Contact us", "es": "Contáctenos", "zh-CN": "联系我们", "ja": "お問い合わせ", "de": "Kontakt", "pt-BR": "Fale Conosco", "ru": "Связаться с нами" },
|
| 382 |
+
|
| 383 |
+
// Blog Specific Translations
|
| 384 |
+
"page-title": {
|
| 385 |
+
"fr": "Blog GitForge",
|
| 386 |
+
"en": "GitForge Blog",
|
| 387 |
+
"es": "Blog de GitForge",
|
| 388 |
+
"zh-CN": "GitForge 博客",
|
| 389 |
+
"ja": "GitForge ブログ",
|
| 390 |
+
"de": "GitForge Blog",
|
| 391 |
+
"pt-BR": "Blog da GitForge",
|
| 392 |
+
"ru": "Блог GitForge"
|
| 393 |
+
},
|
| 394 |
+
"hero-title": {
|
| 395 |
+
"fr": "Blog GitForge : L'Avenir du Développement Logiciel",
|
| 396 |
+
"en": "GitForge Blog: The Future of Software Development",
|
| 397 |
+
"es": "Blog de GitForge: El Futuro del Desarrollo de Software",
|
| 398 |
+
"zh-CN": "GitForge 博客:软件开发的未来",
|
| 399 |
+
"ja": "GitForgeブログ:ソフトウェア開発の未来",
|
| 400 |
+
"de": "GitForge Blog: Die Zukunft der Softwareentwicklung",
|
| 401 |
+
"pt-BR": "Blog da GitForge: O Futuro do Desenvolvimento de Software",
|
| 402 |
+
"ru": "Блог GitForge: Будущее разработки программного обеспечения"
|
| 403 |
+
},
|
| 404 |
+
"hero-subtitle": {
|
| 405 |
+
"fr": "Analyses approfondies de DevOps, de l'IA, de la sécurité, et de la communauté qui façonne le code mondial.",
|
| 406 |
+
"en": "Deep dives into DevOps, AI, security, and the community shaping the world's code.",
|
| 407 |
+
"es": "Análisis profundo de DevOps, IA, seguridad y la comunidad que da forma al código mundial.",
|
| 408 |
+
"zh-CN": "深入探讨 DevOps、AI、安全和塑造全球代码的社区。",
|
| 409 |
+
"ja": "DevOps、AI、セキュリティ、そして世界のコードを形作るコミュニティへの深掘り。",
|
| 410 |
+
"de": "Tiefe Einblicke in DevOps, KI, Sicherheit und die Community, die den Code der Welt gestaltet.",
|
| 411 |
+
"pt-BR": "Análises aprofundadas sobre DevOps, IA, segurança e a comunidade que molda o código mundial.",
|
| 412 |
+
"ru": "Глубокий анализ DevOps, ИИ, безопасности и сообщества, формирующего мировой код."
|
| 413 |
+
},
|
| 414 |
+
"section2-title": {
|
| 415 |
+
"fr": "Le Cœur : Développement Unifié & Collaboration",
|
| 416 |
+
"en": "The Core: Unified Development & Collaboration",
|
| 417 |
+
"es": "El Núcleo: Desarrollo Unificado y Colaboración",
|
| 418 |
+
"zh-CN": "核心:统一开发与协作",
|
| 419 |
+
"ja": "コア:統合された開発とコラボレーション",
|
| 420 |
+
"de": "Der Kern: Einheitliche Entwicklung und Zusammenarbeit",
|
| 421 |
+
"pt-BR": "O Essencial: Desenvolvimento e Colaboração Unificados",
|
| 422 |
+
"ru": "Ядро: Единая разработка и совместная работа"
|
| 423 |
+
},
|
| 424 |
+
"section2-text1": {
|
| 425 |
+
"fr": "GitForge repose sur la philosophie selon laquelle les outils fragmentés entravent l'innovation. Notre plateforme unit l'ensemble du cycle de vie du développement logiciel, de l'idée au déploiement, dans un environnement unique et fluide.",
|
| 426 |
+
"en": "GitForge is built on the philosophy that fragmented tools hinder innovation. Our platform unites the entire software development lifecycle—from idea to deployment—in a single, seamless environment.",
|
| 427 |
+
"es": "GitForge se basa en la filosofía de que las herramientas fragmentadas obstaculizan la innovación. Nuestra plataforma unifica todo el ciclo de vida del desarrollo de software, desde la idea hasta la implementación, en un entorno único y sin fisuras.",
|
| 428 |
+
"zh-CN": "GitForge 建立在零散的工具会阻碍创新的理念之上。我们的平台将整个软件开发生命周期(从构思到部署)统一到一个单一、无缝的环境中。",
|
| 429 |
+
"ja": "GitForgeは、断片化されたツールがイノベーションを妨げるという哲学に基づいて構築されています。私たちのプラットフォームは、アイデアからデプロイメントまでのソフトウェア開発ライフサイクル全体を、単一でシームレスな環境に統合します。",
|
| 430 |
+
"de": "GitForge basiert auf der Philosophie, dass fragmentierte Tools Innovationen behindern. Unsere Plattform vereint den gesamten Softwareentwicklungszyklus – von der Idee bis zur Bereitstellung – in einer einzigen, nahtlosen Umgebung.",
|
| 431 |
+
"pt-BR": "A GitForge se baseia na filosofia de que ferramentas fragmentadas dificultam a inovação. Nossa plataforma une todo o ciclo de vida do desenvolvimento de software – da ideia à implantação – em um ambiente único e contínuo.",
|
| 432 |
+
"ru": "GitForge основан�� на философии, согласно которой разрозненные инструменты мешают инновациям. Наша платформа объединяет весь жизненный цикл разработки программного обеспечения, от идеи до развертывания, в единой, бесшовной среде."
|
| 433 |
+
},
|
| 434 |
+
"section2-text2": {
|
| 435 |
+
"fr": "Cette approche unifiée améliore considérablement la communication d'équipe, accélère les cycles d'itération et réduit la complexité de la gestion de chaînes d'outils disparates. La collaboration n'est pas une réflexion après coup ; c'est le fondement de GitForge.",
|
| 436 |
+
"en": "This unified approach drastically improves team communication, accelerates iteration cycles, and reduces the complexity of managing disparate toolchains. Collaboration is not an afterthought; it's the foundation of GitForge.",
|
| 437 |
+
"es": "Este enfoque unificado mejora drásticamente la comunicación del equipo, acelera los ciclos de iteración y reduce la complejidad de gestionar cadenas de herramientas dispares. La colaboración no es una ocurrencia tardía; es la base de GitForge.",
|
| 438 |
+
"zh-CN": "这种统一的方法极大地改善了团队沟通,加速了迭代周期,并降低了管理不同工具链的复杂性。协作并非事后才考虑;它是 GitForge 的基础。",
|
| 439 |
+
"ja": "この統合されたアプローチは、チームのコミュニケーションを劇的に改善し、イテレーションサイクルを加速し、異種ツールチェーンを管理する複雑さを軽減します。コラボレーションは後回しではなく、GitForgeの基盤です。",
|
| 440 |
+
"de": "Dieser einheitliche Ansatz verbessert die Teamkommunikation drastisch, beschleunigt Iterationszyklen und reduziert die Komplexität der Verwaltung unterschiedlicher Toolchains. Zusammenarbeit ist kein nachträglicher Gedanke, sondern das Fundament von GitForge.",
|
| 441 |
+
"pt-BR": "Essa abordagem unificada melhora drasticamente a comunicação da equipe, acelera os ciclos de iteração e reduz a complexidade do gerenciamento de cadeias de ferramentas díspares. A colaboração não é uma reflexão tardia; é o alicerce da GitForge.",
|
| 442 |
+
"ru": "Этот единый подход кардинально улучшает командное взаимодействие, ускоряет циклы итераций и снижает сложность управления разрозненными цепочками инструментов. Сотрудничество – это не второстепенный фактор, а основа GitForge."
|
| 443 |
+
},
|
| 444 |
+
"section6-title": {
|
| 445 |
+
"fr": "DevOps Pratique : Accélérez votre Workflow",
|
| 446 |
+
"en": "Practical DevOps: Accelerate Your Workflow",
|
| 447 |
+
"es": "DevOps Práctico: Acelere su Flujo de Trabajo",
|
| 448 |
+
"zh-CN": "实用 DevOps:加速您的工作流程",
|
| 449 |
+
"ja": "実践的DevOps:ワークフローを加速する",
|
| 450 |
+
"de": "Praktisches DevOps: Beschleunigen Sie Ihren Workflow",
|
| 451 |
+
"pt-BR": "DevOps Prático: Acelere Seu Fluxo de Trabalho",
|
| 452 |
+
"ru": "Практический DevOps: Ускорьте ваш рабочий процесс"
|
| 453 |
+
},
|
| 454 |
+
"section6-text1": {
|
| 455 |
+
"fr": "Optimiser votre flux de travail DevOps est essentiel pour une livraison logicielle rapide et efficace. Nos articles vous guident à travers les meilleures pratiques de CI/CD, d'automatisation des tests et d'intégration de conteneurs.",
|
| 456 |
+
"en": "Optimizing your DevOps workflow is key to fast and efficient software delivery. Our articles guide you through the best practices for CI/CD, test automation, and container integration.",
|
| 457 |
+
"es": "Optimizar su flujo de trabajo DevOps es clave para una entrega de software rápida y eficiente. Nuestros artículos lo guían a través de las mejores prácticas para CI/CD, automatización de pruebas e integración de contenedores.",
|
| 458 |
+
"zh-CN": "优化您的 DevOps 工作流程对于快速高效的软件交付至关重要。我们的文章将指导您了解 CI/CD、测试自动化和容器集成的最佳实践。",
|
| 459 |
+
"ja": "DevOpsワークフローの最適化は、迅速で効率的なソフトウェアデリバリーの鍵です。当社の記事は、CI/CD、テスト自動化、コンテナ統合のベストプラクティスをご案内します。",
|
| 460 |
+
"de": "Die Optimierung Ihres DevOps-Workflows ist entscheidend für eine schnelle und effiziente Softwarebereitstellung. Unsere Artikel führen Sie durch die Best Practices für CI/CD, Testautomatisierung und Container-Integration.",
|
| 461 |
+
"pt-BR": "Otimizar seu fluxo de trabalho DevOps é fundamental para uma entrega de software rápida e eficiente. Nossos artigos o guiam pelas melhores práticas para CI/CD, automação de testes e integração de contêineres.",
|
| 462 |
+
"ru": "Оптимизация вашего рабочего процесса DevOps является ключом к быстрой и эффективной доставке программного обеспечения. Наши статьи проведут вас через лучшие практики CI/CD, автоматизации тестирования и интеграции контейнеров."
|
| 463 |
+
},
|
| 464 |
+
"section6-text2": {
|
| 465 |
+
"fr": "Apprenez à configurer des pipelines sans friction avec GitForge Actions et découvrez comment les microservices peuvent transformer l'architecture de votre application pour une meilleure évolutivité et résilience.",
|
| 466 |
+
"en": "Learn how to set up frictionless pipelines with GitForge Actions and discover how microservices can transform your application architecture for better scalability and resilience.",
|
| 467 |
+
"es": "Aprenda a configurar pipelines sin fricciones con GitForge Actions y descubra cómo los microservicios pueden transformar la arquitectura de su aplicación para una mejor escalabilidad y resiliencia.",
|
| 468 |
+
"zh-CN": "了解如何使用 GitForge Actions 设置无摩擦的流水线,并发现微服务如何转变您的应用架构以获得更好的可扩展性和弹性。",
|
| 469 |
+
"ja": "GitForge Actionsで摩擦のないパイプラインを設定する方法を学び、マイクロサービスがアプリケーションアーキテクチャをどのように変革し、より優れたスケーラビリティとレジリエンスを実現するかを発見してください。",
|
| 470 |
+
"de": "Erfahren Sie, wie Sie reibungslose Pipelines mit GitForge Actions einrichten und entdecken Sie, wie Microservices Ihre Anwendungsarchitektur für bessere Skalierbarkeit und Ausfallsicherheit transformieren können.",
|
| 471 |
+
"pt-BR": "Aprenda a configurar pipelines sem atrito com o GitForge Actions e descubra como microsserviços podem transformar a arquitetura do seu aplicativo para melhor escalabilidade e resiliência.",
|
| 472 |
+
"ru": "Узнайте, как настроить бесперебойные конвейеры с помощью GitForge Actions, и как микросервисы могут трансформировать архитектуру вашего приложения для повышения масштабируемости и устойчивости."
|
| 473 |
+
},
|
| 474 |
+
"section3-title": {
|
| 475 |
+
"fr": "Innovation Alimentée par l'IA : Du Code à la Livraison Continue",
|
| 476 |
+
"en": "AI-Powered Innovation: From Code to Continuous Delivery",
|
| 477 |
+
"es": "Innovación Impulsada por la IA: Del Código a la Entrega Continua",
|
| 478 |
+
"zh-CN": "AI 驱动的创新:从代码到持续交付",
|
| 479 |
+
"ja": "AIを活用したイノベーション:コードから継続的デリバリーへ",
|
| 480 |
+
"de": "KI-gestützte Innovation: Vom Code zur kontinuierlichen Bereitstellung",
|
| 481 |
+
"pt-BR": "Inovação Orientada por IA: Do Código à Entrega Contínua",
|
| 482 |
+
"ru": "Инновации на основе ИИ: От кода к непрерывной доставке"
|
| 483 |
+
},
|
| 484 |
+
"section3-text1": {
|
| 485 |
+
"fr": "Nos outils d'IA intégrés, tels que GitForge Copilot, révolutionnent la façon dont les développeurs écrivent, testent et déploient du code. En fournissant des suggestions intelligentes et en automatisant les tâches répétitives, nous permettons aux équipes de se concentrer sur la résolution de problèmes complexes.",
|
| 486 |
+
"en": "Our integrated AI tools, like GitForge Copilot, are revolutionizing the way developers write, test, and deploy code. By providing intelligent suggestions and automating repetitive tasks, we empower teams to focus on complex problem-solving.",
|
| 487 |
+
"es": "Nuestras herramientas de IA integradas, como GitForge Copilot, están revolucionando la forma en que los desarrolladores escriben, prueban e implementan código. Al proporcionar sugerencias inteligentes y automatizar tareas repetitivas, capacitamos a los equipos para que se centren en la resolución de problemas complejos.",
|
| 488 |
+
"zh-CN": "我们集成的 AI 工具,例如 GitForge Copilot,正在彻底改变开发人员编写、测试和部署代码的方式。通过提供智能建议和自动化重复性任务,我们使团队能够专注于解决复杂的难题。",
|
| 489 |
+
"ja": "GitForge Copilotのような統合されたAIツールは、開発者がコードを記述、テスト、デプロイする方法に革命をもたらしています。インテリジェントな提案を提供し、反復的なタスクを自動化することで、チームは複雑な問題解��に集中できます。",
|
| 490 |
+
"de": "Unsere integrierten KI-Tools, wie GitForge Copilot, revolutionieren die Art und Weise, wie Entwickler Code schreiben, testen und bereitstellen. Durch intelligente Vorschläge und die Automatisierung wiederkehrender Aufgaben ermöglichen wir Teams, sich auf komplexe Problemlösungen zu konzentrieren.",
|
| 491 |
+
"pt-BR": "Nossas ferramentas de IA integradas, como o GitForge Copilot, estão revolucionando a maneira como os desenvolvedores escrevem, testam e implantam código. Ao fornecer sugestões inteligentes e automatizar tarefas repetitivas, capacitamos as equipes a se concentrarem na solução de problemas complexos.",
|
| 492 |
+
"ru": "Наши интегрированные инструменты ИИ, такие как GitForge Copilot, революционизируют процесс написания, тестирования и развертывания кода. Предоставляя интеллектуальные предложения и автоматизируя повторяющиеся задачи, мы даем командам возможность сосредоточиться на решении сложных проблем."
|
| 493 |
+
},
|
| 494 |
+
"section3-text2": {
|
| 495 |
+
"fr": "Combinée à nos pipelines CI/CD robustes, cette innovation se traduit par des versions plus rapides et un produit plus fiable. L'automatisation ne consiste pas seulement à gagner du temps ; il s'agit d'éliminer les risques et d'assurer la qualité à l'échelle.",
|
| 496 |
+
"en": "Combined with our robust CI/CD pipelines, this innovation translates into faster releases and a more reliable product. Automation isn't just about saving time; it's about eliminating risk and ensuring quality at scale.",
|
| 497 |
+
"es": "Combinada con nuestros robustos pipelines de CI/CD, esta innovación se traduce en lanzamientos más rápidos y un producto más confiable. La automatización no se trata solo de ahorrar tiempo; se trata de eliminar riesgos y garantizar la calidad a escala.",
|
| 498 |
+
"zh-CN": "结合我们强大的 CI/CD 流水线,这项创新转化为更快的发布和更可靠的产品。自动化不仅仅是为了节省时间;它关乎消除风险和确保规模化质量。",
|
| 499 |
+
"ja": "当社の堅牢なCI/CDパイプラインと組み合わせることで、このイノベーションはより迅速なリリースとより信頼性の高い製品につながります。自動化は時間の節約だけでなく、リスクを排除し、大規模な品質を確保することでもあります。",
|
| 500 |
+
"de": "In Kombination mit unseren robusten CI/CD-Pipelines führt diese Innovation zu schnelleren Releases und einem zuverlässigeren Produkt. Bei der Automatisierung geht es nicht nur darum, Zeit zu sparen, sondern auch darum, Risiken zu eliminieren und Qualität im großen Maßstab zu gewährleisten.",
|
| 501 |
+
"pt-BR": "Combinada com nossos pipelines robustos de CI/CD, essa inovação se traduz em lançamentos mais rápidos e um produto mais confiável. A automação não é apenas sobre economizar tempo; é sobre eliminar riscos e garantir a qualidade em escala.",
|
| 502 |
+
"ru": "В сочетании с нашими надежными конвейерами CI/CD эти инновации приводят к более быстрым выпускам и более надежному продукту. Автоматизация – это не только экономия времени, но и устранение рисков и обеспечение качества в масштабе."
|
| 503 |
+
},
|
| 504 |
+
"section4-title": {
|
| 505 |
+
"fr": "Sécurité, Conformité et Préparation pour l'Entreprise",
|
| 506 |
+
"en": "Security, Compliance, and Enterprise Readiness",
|
| 507 |
+
"es": "Seguridad, Cumplimiento y Preparación Empresarial",
|
| 508 |
+
"zh-CN": "安全、合规性和企业就绪度",
|
| 509 |
+
"ja": "セキュリティ、コンプライアンス、エンタープライズ対応",
|
| 510 |
+
"de": "Sicherheit, Compliance und Enterprise-Readiness",
|
| 511 |
+
"pt-BR": "Segurança, Conformidade e Preparação Empresarial",
|
| 512 |
+
"ru": "Безопасность, соответствие нормативным требованиям и готовность к работе в масштабе предприятия"
|
| 513 |
+
},
|
| 514 |
+
"section4-text1": {
|
| 515 |
+
"fr": "Pour les grandes organisations, la sécurité et la conformité sont primordiales. GitForge Advanced Security offre une analyse complète, une analyse des dépendances et une détection des secrets directement dans votre dépôt.",
|
| 516 |
+
"en": "For large organizations, security and compliance are paramount. GitForge Advanced Security provides comprehensive scanning, dependency analysis, and secret detection right in your repository.",
|
| 517 |
+
"es": "Para las grandes organizaciones, la seguridad y el cumplimiento son primordiales. GitForge Advanced Security proporciona escaneo completo, análisis de dependencias y detección de secretos directamente en su repositorio.",
|
| 518 |
+
"zh-CN": "对于大型组织而言,安全和合规性至关重要。GitForge Advanced Security 直接在您的存储库中提供全面的扫描、依赖项分析和秘密检测。",
|
| 519 |
+
"ja": "大規模な組織にとって、セキュリティとコンプライアンスは最重要です。GitForge Advanced Securityは、包括的なスキャン、依存関係分析、シークレット検出をリポジトリ内で直接提供します。",
|
| 520 |
+
"de": "Für große Organisationen sind Sicherheit und Compliance von größter Bedeutung. GitForge Advanced Security bietet umfassendes Scanning, Abhängigkeitsanalyse und Geheimniserkennung direkt in Ihrem Repository.",
|
| 521 |
+
"pt-BR": "Para grandes organizações, segurança e conformidade são primordiais. O GitForge Advanced Security oferece varredura abrangente, análise de dependência e detecção de segredos diretamente no seu repositório.",
|
| 522 |
+
"ru": "Для крупных организаций безопасность и соответствие нормативным требованиям имеют первостепенное значение. GitForge Advanced Security обеспечивает комплексное сканирование, анализ зависимостей и обнаружение секретов прямо в вашем репозитории."
|
| 523 |
+
},
|
| 524 |
+
"section4-text2": {
|
| 525 |
+
"fr": "De plus, des fonctionnalités telles que la Résidence des Données et les Utilisateurs Gérés par l'Entreprise garantissent que les équipes mondiales peuvent adhérer aux réglementations régionales tout en maintenant une gestion simplifiée des identités et des politiques au sein de plusieurs organisations.",
|
| 526 |
+
"en": "Furthermore, features like Data Residency and Enterprise Managed Users ensure that global teams can adhere to regional regulations while maintaining simplified identity and policy management across multiple organizations.",
|
| 527 |
+
"es": "Además, características como la Residencia de Datos y los Usuarios Gestionados por la Empresa aseguran que los equipos globales puedan adherirse a las regulaciones regionales mientras mantienen una gestión simplificada de identidad y políticas en múltiples organizaciones.",
|
| 528 |
+
"zh-CN": "此外,数据驻留和企业托管用户等功能确保全球团队可以遵守地区法规,同时在多个组织中保持简化的身份和策略管理。",
|
| 529 |
+
"ja": "さらに、データレジデンシーやエンタープライズ管理ユーザーなどの機能により、グローバルチームは地域の規制を遵守しつつ、複数の組織にわたる簡素化されたIDおよびポリシー管理を維持できます。",
|
| 530 |
+
"de": "Darüber hinaus stellen Funktionen wie Data Residency und Enterprise Managed Users sicher, dass globale Teams regionale Vorschriften einhalten können, während gleichzeitig eine vereinfachte Identitäts- und Richtlinienverwaltung über mehrere Organisationen hinweg beibehalten wird.",
|
| 531 |
+
"pt-BR": "Além disso, recursos como Residência de Dados e Usuários Gerenciados pela Empresa garantem que equipes globais possam aderir a regulamentações regionais enquanto mantêm uma gestão simplificada de identidade e políticas em várias organizações.",
|
| 532 |
+
"ru": "Более того, такие функции, как Резидентность Данных и Управляемые Предприятием Пользователи, гарантируют, что глобальные команды могут соблюдать региональные нормативы, сохраняя при этом упрощенное управление идентификацией и политиками в нескольких организациях."
|
| 533 |
+
},
|
| 534 |
+
"section7-title": {
|
| 535 |
+
"fr": "Actualités et Tendances : L'Écosystème GitForge",
|
| 536 |
+
"en": "News and Trends: The GitForge Ecosystem",
|
| 537 |
+
"es": "Noticias y Tendencias: El Ecosistema GitForge",
|
| 538 |
+
"zh-CN": "新闻和趋势:GitForge 生态系统",
|
| 539 |
+
"ja": "ニュースとトレンド:GitForgeエコシステム",
|
| 540 |
+
"de": "Neuigkeiten und Trends: Das GitForge-Ökosystem",
|
| 541 |
+
"pt-BR": "Notícias e Tendências: O Ecossistema GitForge",
|
| 542 |
+
"ru": "Новости и тенденции: Экосистема GitForge"
|
| 543 |
+
},
|
| 544 |
+
"section7-text1": {
|
| 545 |
+
"fr": "Restez à jour avec les dernières annonces de produits, les études de cas de clients qui réussissent et les tendances émergentes qui transforment le paysage du développement. Notre blog est votre source d'information privilégiée sur l'évolution de GitForge.",
|
| 546 |
+
"en": "Stay current with the latest product announcements, successful customer case studies, and emerging trends shaping the development landscape. Our blog is your go-to source for what's next at GitForge.",
|
| 547 |
+
"es": "Manténgase al día con los últimos anuncios de productos, estudios de casos de clientes exitosos y tendencias emergentes que transforman el panorama del desarrollo. Nuestro blog es su fuente de información de referencia sobre lo que vendrá en GitForge.",
|
| 548 |
+
"zh-CN": "随时了解最新的产品公告、成功的客户案例研究以及塑造开发格局的新兴趋势。我们的博客是您了解 GitForge 未来发展方向的首选资源。",
|
| 549 |
+
"ja": "最新の製品発表、成功したお客様の事例、開発環境を形作る新たなトレンドの情報を入手してください。当社のブログは、GitForgeの次の展開を知るための頼りになる情報源です。",
|
| 550 |
+
"de": "Bleiben Sie auf dem Laufenden mit den neuesten Produktankündigungen, erfolgreichen Kundenfallstudien und aufkommenden Trends, die die Entwicklungslandschaft prägen. Unser Blog ist Ihre erste Anlaufstelle für alles Neue bei GitForge.",
|
| 551 |
+
"pt-BR": "Mantenha-se atualizado com os últimos anúncios de produtos, estudos de caso de clientes bem-sucedidos e tendências emergentes que moldam o cenário do desenvolvimento. Nosso blog é sua fonte de informação essencial sobre o que está por vir na GitForge.",
|
| 552 |
+
"ru": "Будьте в курсе последних анонсов продуктов, успешных примеров из практики клиентов и новых тенденций, формирующих ландшафт разработки. Наш блог — ваш основной источник информации о будущем GitForge."
|
| 553 |
+
},
|
| 554 |
+
"section7-text2": {
|
| 555 |
+
"fr": "De la blockchain aux architectures sans serveur, nous couvrons les sujets qui comptent pour les ingénieurs et les leaders technologiques. Abonnez-vous à notre newsletter pour ne rien manquer.",
|
| 556 |
+
"en": "From blockchain to serverless architectures, we cover the topics that matter to engineers and technology leaders. Subscribe to our newsletter so you don't miss a thing.",
|
| 557 |
+
"es": "Desde blockchain hasta arquitecturas sin servidor, cubrimos los temas que son importantes para los ingenieros y líderes tecnológicos. Suscríbase a nuestro boletín para no perderse nada.",
|
| 558 |
+
"zh-CN": "从区块链到无服务器架构,我们涵盖了对工程师和技术领导者至关重要的话题。订阅我们的新闻通讯,确保您不会错过任何内容。",
|
| 559 |
+
"ja": "ブロックチェーンからサーバーレスアーキテクチャまで、エンジニアやテクノロジーリーダーにとって重要なトピックをカバーしています。ニュースレターを購読して、見逃さないようにしてください。",
|
| 560 |
+
"de": "Von Blockchain bis hin zu Serverless-Architekturen behandeln wir die Themen, die für Ingenieure und Technologieführer wichtig sind. Abonnieren Sie unseren Newsletter, um nichts zu verpassen.",
|
| 561 |
+
"pt-BR": "De blockchain a arquiteturas serverless, cobrimos os tópicos importantes para engenheiros e líderes de tecnologia. Assine nossa newsletter para não perder nada.",
|
| 562 |
+
"ru": "От блокчейна до бессерверных архитектур, мы освещаем темы, важные для инженеров и технологических лидеров. Подпишитесь на нашу рассылку, чтобы ничего не пропустить."
|
| 563 |
+
},
|
| 564 |
+
"section5-title": {
|
| 565 |
+
"fr": "Communauté, Open Source et Notre Mission",
|
| 566 |
+
"en": "Community, Open Source, and Our Mission",
|
| 567 |
+
"es": "Comunidad, Código Abierto y Nuestra Misión",
|
| 568 |
+
"zh-CN": "社区、开源和我们的使命",
|
| 569 |
+
"ja": "コミュニティ、オープンソース、そして私たちのミッション",
|
| 570 |
+
"de": "Community, Open Source und unsere Mission",
|
| 571 |
+
"pt-BR": "Comunidade, Código Aberto e Nossa Missão",
|
| 572 |
+
"ru": "Сообщество, открытый исходный код и наша миссия"
|
| 573 |
+
},
|
| 574 |
+
"section5-text1": {
|
| 575 |
+
"fr": "GitForge a commencé comme un engagement envers l'open source, et cet esprit continue de guider notre communauté. Nous proposons un plan Gratuit robuste, conçu pour les développeurs individuels et les petites équipes, offrant des dépôts publics et privés illimités.",
|
| 576 |
+
"en": "GitForge began as a commitment to open source, and that spirit continues to drive our community. We offer a robust Free plan, designed for individual developers and small teams, providing unlimited public and private repositories.",
|
| 577 |
+
"es": "GitForge comenzó como un compromiso con el código abierto, y ese espíritu continúa impulsando nuestra comunidad. Ofrecemos un robusto plan Gratuito, diseñado para desarrolladores individuales y equipos pequeños, que proporciona repositorios públicos y privados ilimitados.",
|
| 578 |
+
"zh-CN": "GitForge 最初是对开源的承诺,这种精神继续推动着我们的社区。我们提供了一个强大的免费计划,专为个人开发者和小型团队设计,提供无限制的公共和私有存储库。",
|
| 579 |
+
"ja": "GitForgeは、オープンソースへのコミットメントとして始まり、その精神が私たちのコミュニティを牽引し続けています。個人開発者や小規模チーム向けに設計された堅牢な無料プランを提供しており、無制限のパブリックおよびプライベートリポジトリを提供しています。",
|
| 580 |
+
"de": "GitForge begann als Verpflichtung zu Open Source, und dieser Geist treibt unsere Community weiterhin an. Wir bieten einen robusten kostenlosen Plan, der für einzelne Entwickler und kleine Teams konzipiert ist und unbegrenzte öffentliche und private Repositories bietet.",
|
| 581 |
+
"pt-BR": "A GitForge começou como um compromisso com o código aberto, e esse espírito continua a impulsionar nossa comunidade. Oferecemos um robusto plano Gratuito, projetado para desenvolvedores individuais e pequenas equipes, fornecendo repositórios públicos e privados ilimitados.",
|
| 582 |
+
"ru": "GitForge начинался как приверженность открытому исходному коду, и этот дух продолжает развивать наше сообщество. Мы предлагаем надежный бесплатный план, разработанный для индивидуальных разработчиков и небольших команд, предоставляющий неограниченное количество публичных и частных репозиториев."
|
| 583 |
+
},
|
| 584 |
+
"section5-text2": {
|
| 585 |
+
"fr": "Notre mission est de favoriser un espace où tout développeur, où qu'il se trouve, peut contribuer et construire la prochaine grande innovation logicielle. Rejoignez les millions de développeurs qui construisent déjà l'avenir avec GitForge.",
|
| 586 |
+
"en": "Our mission is to foster a space where any developer, anywhere, can contribute to and build the next great software innovation. Join the millions of developers who are already building the future with GitForge.",
|
| 587 |
+
"es": "Nuestra misión es fomentar un espacio donde cualquier desarrollador, en cualquier lugar, pueda contribuir y construir la próxima gran innovación de software. Únase a los millones de desarrolladores que ya están construyendo el futuro con GitForge.",
|
| 588 |
+
"zh-CN": "我们的使命是培养一个空间,让任何地方的任何开发人员都能为下一个伟大的软件创新做出贡献和构建。加入数百万已经在用 GitForge 构建未来的开发人员行列。",
|
| 589 |
+
"ja": "私たちのミッションは、あらゆる場所のあらゆる開発者が、次の偉大なソフトウェアイノベーションに貢献し、構築できる空間を育むことです。すでにGitForgeで未来を築いている何百万もの開発者に加わりましょう。",
|
| 590 |
+
"de": "Unsere Mission ist es, einen Raum zu schaffen, in dem jeder Entwickler, überall, zur nächsten großen Softwareinnovation beitragen und diese aufbauen kann. Schließen Sie sich den Millionen von Entwicklern an, die bereits mit GitForge die Zukunft gestalten.",
|
| 591 |
+
"pt-BR": "Nossa missão é promover um espaço onde qualquer desenvolvedor, em qualquer lugar, possa contribuir e construir a próxima grande inovação de software. Junte-se aos milhões de desenvolvedores que já estão construindo o futuro com a GitForge.",
|
| 592 |
+
"ru": "Наша миссия — создать пространство, где любой разработчик, где бы он ни находился, может внести свой вклад и создать следующую великую программную инновацию. Присоединяйтесь к миллионам разработчиков, которые уже строят будущее с помощью GitForge."
|
| 593 |
+
},
|
| 594 |
+
"cta-title": {
|
| 595 |
+
"fr": "Prêt à Construire l'Avenir avec GitForge ?",
|
| 596 |
+
"en": "Ready to Build the Future with GitForge?",
|
| 597 |
+
"es": "¿Listo para Construir el Futuro con GitForge?",
|
| 598 |
+
"zh-CN": "准备好使用 GitForge 构建未来了吗?",
|
| 599 |
+
"ja": "GitForgeで未来を築��準備はできていますか?",
|
| 600 |
+
"de": "Bereit, die Zukunft mit GitForge zu gestalten?",
|
| 601 |
+
"pt-BR": "Pronto para Construir o Futuro com a GitForge?",
|
| 602 |
+
"ru": "Готовы строить будущее с GitForge?"
|
| 603 |
+
},
|
| 604 |
+
"cta-desc": {
|
| 605 |
+
"fr": "Explorez notre plateforme, consultez nos ressources ou rejoignez la discussion sur nos forums communautaires.",
|
| 606 |
+
"en": "Explore our platform, check out our resources, or join the discussion in our community forums.",
|
| 607 |
+
"es": "Explore nuestra plataforma, consulte nuestros recursos o únase a la discusión en nuestros foros comunitarios.",
|
| 608 |
+
"zh-CN": "探索我们的平台,查看我们的资源,或加入我们的社区论坛讨论。",
|
| 609 |
+
"ja": "プラットフォームを探索したり、リソースを確認したり、コミュニティフォーラムでディスカッションに参加したりしてください。",
|
| 610 |
+
"de": "Erkunden Sie unsere Plattform, sehen Sie sich unsere Ressourcen an oder nehmen Sie an der Diskussion in unseren Community-Foren teil.",
|
| 611 |
+
"pt-BR": "Explore nossa plataforma, confira nossos recursos ou junte-se à discussão em nossos fóruns da comunidade.",
|
| 612 |
+
"ru": "Изучите нашу платформу, ознакомьтесь с нашими ресурсами или присоединяйтесь к обсуждению на наших форумах сообщества."
|
| 613 |
+
},
|
| 614 |
+
|
| 615 |
+
// Footer Translations (retained/adjusted)
|
| 616 |
+
"footer-slogan": { "fr": "La plateforme DevOps unifiée, optimisée par l'IA.", "en": "The unified DevOps platform, powered by AI.", "es": "La plataforma DevOps unificada, impulsada por IA.", "zh-CN": "统一的 DevOps 平台,由 AI 提供支持。", "ja": "AIを搭載した統合DevOpsプラットフォーム。", "de": "Die vereinheitlichte DevOps-Plattform, unterstützt durch KI.", "pt-BR": "A plataforma DevOps unificada, potencializada por IA.", "ru": "Единая платформа DevOps на базе ИИ." },
|
| 617 |
+
"footer-product": { "fr": "Produit", "en": "Product", "es": "Producto", "zh-CN": "产品", "ja": "製品", "de": "Produkt", "pt-BR": "Produto", "ru": "Продукт" },
|
| 618 |
+
"footer-features": { "fr": "Fonctionnalités", "en": "Features", "es": "Características", "zh-CN": "功能", "ja": "機能", "de": "Funktionen", "pt-BR": "Funcionalidades", "ru": "Возможности" },
|
| 619 |
+
"footer-security": { "fr": "Sécurité", "en": "Security", "es": "Seguridad", "zh-CN": "安全", "ja": "セキュリティ", "de": "Sicherheit", "pt-BR": "Segurança", "ru": "Безопасность" },
|
| 620 |
+
"footer-team": { "fr": "Équipe", "en": "Team", "es": "Equipo", "zh-CN": "团队", "ja": "チーム", "de": "Team", "pt-BR": "Equipe", "ru": "Команда" },
|
| 621 |
+
"footer-enterprise": { "fr": "Entreprise", "en": "Enterprise", "es": "Empresa", "zh-CN": "企业版", "ja": "エンタープライズ", "de": "Enterprise", "pt-BR": "Empresarial", "ru": "Корпоративный" },
|
| 622 |
+
"footer-company": { "fr": "Entreprise", "en": "Company", "es": "Compañía", "zh-CN": "公司", "ja": "企業情報", "de": "Unternehmen", "pt-BR": "Empresa", "ru": "Компания" },
|
| 623 |
+
"footer-about": { "fr": "À propos de nous", "en": "About us", "es": "Acerca de nosotros", "zh-CN": "关于我们", "ja": "会社概要", "de": "Über uns", "pt-BR": "Sobre nós", "ru": "О нас" },
|
| 624 |
+
"footer-customers": { "fr": "Clients", "en": "Customers", "es": "Clientes", "zh-CN": "客户", "ja": "顧客", "de": "Kunden", "pt-BR": "Clientes", "ru": "Клиенты" },
|
| 625 |
+
"footer-careers": { "fr": "Carrières", "en": "Careers", "es": "Carreras", "zh-CN": "职业", "ja": "採用情報", "de": "Karriere", "pt-BR": "Carreiras", "ru": "Карьера" },
|
| 626 |
+
"footer-support": { "fr": "Support", "en": "Support", "es": "Soporte", "zh-CN": "支持", "ja": "サポート", "de": "Support", "pt-BR": "Suporte", "ru": "Поддержка" },
|
| 627 |
+
"footer-faq": { "fr": "FAQ", "en": "FAQ", "es": "FAQ", "zh-CN": "常见问题", "ja": "よくある質問", "de": "FAQ", "pt-BR": "FAQ", "ru": "Часто задаваемые вопросы" },
|
| 628 |
+
"footer-resources": { "fr": "Ressources", "en": "Resources", "es": "Recursos", "zh-CN": "资源", "ja": "リソース", "de": "Ressourcen", "pt-BR": "Recursos", "ru": "Ресурсы" },
|
| 629 |
+
"footer-contact-email": { "fr": "Contact Email", "en": "Contact Email", "es": "Correo de Contacto", "zh-CN": "联系邮箱", "ja": "連絡先メール", "de": "Kontakt-E-Mail", "pt-BR": "E-mail de Contato", "ru": "Контактный адрес электронной почты" },
|
| 630 |
+
"footer-status": { "fr": "Statut du Service", "en": "Service Status", "es": "Estado del Servicio", "zh-CN": "服务状态", "ja": "サービス状況", "de": "Servicestatus", "pt-BR": "Status do Serviço", "ru": "Статус сервиса" },
|
| 631 |
+
"footer-blog": { "fr": "Blog Tech", "en": "Tech Blog", "es": "Blog de Tecnología", "zh-CN": "技术博客", "ja": "テックブログ", "de": "Tech-Blog", "pt-BR": "Blog de Tecnologia", "ru": "Технический блог" },
|
| 632 |
+
"footer-copyright": {
|
| 633 |
+
"fr": "© 2025 GitForge. Tous droits réservés. Propulsé par la <a href=\"/\" class=\"hover:text-blue-600-var hover:underline\">Plateforme GitForge</a>.",
|
| 634 |
+
"en": "© 2025 GitForge. All rights reserved. Powered by the <a href=\"/\" class=\"hover:text-blue-600-var hover:underline\">GitForge Platform</a>.",
|
| 635 |
+
"es": "© 2025 GitForge. Todos los derechos reservados. Impulsado por la <a href=\"/\" class=\"hover:text-blue-600-var hover:underline\">Plataforma GitForge</a>.",
|
| 636 |
+
"zh-CN": "© 2025 GitForge。保留所有权利。由 <a href=\"/\" class=\"hover:text-blue-600-var hover:underline\">GitForge 平台</a> 提供支持。",
|
| 637 |
+
"ja": "© 2025 GitForge. 無断複写・転載を禁じます。<a href=\"/\" class=\"hover:text-blue-600-var hover:underline\">GitForge プラットフォーム</a>によって提供されます。",
|
| 638 |
+
"de": "© 2025 GitForge. Alle Rechte vorbehalten. Unterstützt durch die <a href=\"/\" class=\"hover:text-blue-600-var hover:underline\">GitForge Plattform</a>.",
|
| 639 |
+
"pt-BR": "© 2025 GitForge. Todos os direitos reservados. Alimentado pela <a href=\"/\" class=\"hover:text-blue-600-var hover:underline\">Plataforma GitForge</a>.",
|
| 640 |
+
"ru": "© 2025 GitForge. Все права защищены. Работает на базе <a href=\"/\" class=\"hover:text-blue-600-var hover:underline\">Платформы GitForge</a>."
|
| 641 |
+
},
|
| 642 |
+
"footer-legal": { "fr": "Mentions Légales", "en": "Legal", "es": "Legal", "zh-CN": "法律", "ja": "法務", "de": "Rechtliches", "pt-BR": "Legal", "ru": "Правовая информация" },
|
| 643 |
+
"footer-privacy": { "fr": "Confidentialité", "en": "Privacy", "es": "Privacidad", "zh-CN": "隐私", "ja": "プライバシー", "de": "Datenschutz", "pt-BR": "Privacidade", "ru": "Конфиденциальность" },
|
| 644 |
+
"footer-security-policy": { "fr": "Politique de Sécurité", "en": "Security Policy", "es": "Política de Seguridad", "zh-CN": "安全政策", "ja": "セキュリティポリシー", "de": "Sicherheitsrichtlinie", "pt-BR": "Política de Segurança", "ru": "Политика безопасности" }
|
| 645 |
+
};
|
| 646 |
+
|
| 647 |
+
// Function to update content based on the selected language
|
| 648 |
+
const applyTranslations = (lang) => {
|
| 649 |
+
currentLang = lang;
|
| 650 |
+
document.querySelectorAll('[data-translate]').forEach(element => {
|
| 651 |
+
const key = element.getAttribute('data-translate');
|
| 652 |
+
if (translations[key] && translations[key][lang]) {
|
| 653 |
+
// Check if it's a link in the footer-copyright and update innerHTML if so
|
| 654 |
+
if (key === 'footer-copyright') {
|
| 655 |
+
element.innerHTML = translations[key][lang];
|
| 656 |
+
} else {
|
| 657 |
+
element.textContent = translations[key][lang];
|
| 658 |
+
}
|
| 659 |
+
}
|
| 660 |
+
});
|
| 661 |
+
|
| 662 |
+
// Update page title
|
| 663 |
+
const titleElement = document.querySelector('title');
|
| 664 |
+
if (titleElement) {
|
| 665 |
+
const titleKey = titleElement.getAttribute('data-translate');
|
| 666 |
+
if (translations[titleKey] && translations[titleKey][lang]) {
|
| 667 |
+
titleElement.textContent = translations[titleKey][lang];
|
| 668 |
+
}
|
| 669 |
+
}
|
| 670 |
+
|
| 671 |
+
// Update current language display
|
| 672 |
+
const currentLangName = document.getElementById('current-lang-name');
|
| 673 |
+
const currentFlag = document.getElementById('current-flag');
|
| 674 |
+
if (currentLangName) {
|
| 675 |
+
switch(lang) {
|
| 676 |
+
case 'fr':
|
| 677 |
+
currentLangName.textContent = 'Français';
|
| 678 |
+
currentFlag.textContent = '🇫🇷';
|
| 679 |
+
break;
|
| 680 |
+
case 'es':
|
| 681 |
+
currentLangName.textContent = 'Español';
|
| 682 |
+
currentFlag.textContent = '🇪🇸';
|
| 683 |
+
break;
|
| 684 |
+
case 'zh-CN':
|
| 685 |
+
currentLangName.textContent = '简体中文';
|
| 686 |
+
currentFlag.textContent = '🇨🇳';
|
| 687 |
+
break;
|
| 688 |
+
case 'ja':
|
| 689 |
+
currentLangName.textContent = '日本語';
|
| 690 |
+
currentFlag.textContent = '🇯🇵';
|
| 691 |
+
break;
|
| 692 |
+
case 'de':
|
| 693 |
+
currentLangName.textContent = 'Deutsch';
|
| 694 |
+
currentFlag.textContent = '🇩🇪';
|
| 695 |
+
break;
|
| 696 |
+
case 'pt-BR':
|
| 697 |
+
currentLangName.textContent = 'Português (Brasil)';
|
| 698 |
+
currentFlag.textContent = '🇧🇷';
|
| 699 |
+
break;
|
| 700 |
+
case 'ru':
|
| 701 |
+
currentLangName.textContent = 'Русский';
|
| 702 |
+
currentFlag.textContent = '🇷🇺';
|
| 703 |
+
break;
|
| 704 |
+
case 'en': // 'en' or default
|
| 705 |
+
default:
|
| 706 |
+
currentLangName.textContent = 'English';
|
| 707 |
+
currentFlag.textContent = '🇺🇸';
|
| 708 |
+
break;
|
| 709 |
+
}
|
| 710 |
+
}
|
| 711 |
+
|
| 712 |
+
// Update HTML lang attribute
|
| 713 |
+
document.documentElement.lang = lang;
|
| 714 |
+
};
|
| 715 |
+
|
| 716 |
+
// Function to setup the accordion/dropdown functionality for features (Not needed for blog, but keeping for reference/future use)
|
| 717 |
+
const setupAccordion = () => {
|
| 718 |
+
document.querySelectorAll('.feature-list-item').forEach(item => {
|
| 719 |
+
const details = item.querySelector('.feature-details');
|
| 720 |
+
// We will disable the click behavior for the blog page, but keep the classes for styling clarity.
|
| 721 |
+
// item.addEventListener('click', () => {
|
| 722 |
+
// const isOpen = details.classList.contains('open');
|
| 723 |
+
// document.querySelectorAll('.feature-details.open').forEach(openDetails => {
|
| 724 |
+
// openDetails.classList.remove('open');
|
| 725 |
+
// openDetails.closest('.feature-list-item').classList.remove('open');
|
| 726 |
+
// });
|
| 727 |
+
// if (!isOpen) {
|
| 728 |
+
// details.classList.add('open');
|
| 729 |
+
// item.classList.add('open');
|
| 730 |
+
// }
|
| 731 |
+
// });
|
| 732 |
+
});
|
| 733 |
+
};
|
| 734 |
+
|
| 735 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 736 |
+
// Language selector toggle logic
|
| 737 |
+
const langButton = document.getElementById('lang-menu-button');
|
| 738 |
+
const langDropdown = document.getElementById('lang-menu-dropdown');
|
| 739 |
+
|
| 740 |
+
if (langButton && langDropdown) {
|
| 741 |
+
langButton.addEventListener('click', (e) => {
|
| 742 |
+
e.stopPropagation();
|
| 743 |
+
langDropdown.style.display = langDropdown.style.display === 'block' ? 'none' : 'block';
|
| 744 |
+
});
|
| 745 |
+
|
| 746 |
+
document.addEventListener('click', (e) => {
|
| 747 |
+
if (!langButton.contains(e.target) && !langDropdown.contains(e.target)) {
|
| 748 |
+
langDropdown.style.display = 'none'; // Close dropdown after selection
|
| 749 |
+
}
|
| 750 |
+
});
|
| 751 |
+
|
| 752 |
+
// Language selection logic
|
| 753 |
+
document.querySelectorAll('.lang-option').forEach(option => {
|
| 754 |
+
option.addEventListener('click', (e) => {
|
| 755 |
+
e.preventDefault();
|
| 756 |
+
const newLang = option.getAttribute('data-lang');
|
| 757 |
+
applyTranslations(newLang);
|
| 758 |
+
langDropdown.style.display = 'none'; // Close dropdown after selection
|
| 759 |
+
});
|
| 760 |
+
});
|
| 761 |
+
}
|
| 762 |
+
|
| 763 |
+
// Initial load: Apply English translations by default
|
| 764 |
+
applyTranslations(currentL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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title data-translate="page-title">GitForge Careers</title>
|
| 7 |
+
<link rel="icon" type="image/png" href="https://i.postimg.cc/t4NCGNzD/gitforge-png.png">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
| 10 |
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" />
|
| 11 |
+
<style>
|
| 12 |
+
/* Custom Tailwind Configuration */
|
| 13 |
+
.bg-header { background-color: #f7f9fc; }
|
| 14 |
+
.header-border { border-color: #e5e7eb; }
|
| 15 |
+
.text-blue-600-var { color: #2563eb; }
|
| 16 |
+
.border-blue-600-var { border-color: #2563eb; }
|
| 17 |
+
.bg-blue-600-var { background-color: #2563eb; }
|
| 18 |
+
.hover\:bg-blue-700-var:hover { background-color: #1d4ed8; }
|
| 19 |
+
.text-gray-900-var { color: #1f2937; }
|
| 20 |
+
|
| 21 |
+
/* Ensure the language dropdown is visible */
|
| 22 |
+
.lang-dropdown-container {
|
| 23 |
+
position: relative;
|
| 24 |
+
}
|
| 25 |
+
.lang-menu-dropdown {
|
| 26 |
+
position: absolute;
|
| 27 |
+
left: 0;
|
| 28 |
+
bottom: 100%;
|
| 29 |
+
margin-bottom: 0.5rem;
|
| 30 |
+
width: 10rem;
|
| 31 |
+
background-color: #ffffff;
|
| 32 |
+
border-radius: 0.375rem;
|
| 33 |
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
| 34 |
+
z-index: 50;
|
| 35 |
+
border: 1px solid #e5e7eb;
|
| 36 |
+
display: none;
|
| 37 |
+
}
|
| 38 |
+
.lang-menu-dropdown a {
|
| 39 |
+
color: #1f2937;
|
| 40 |
+
}
|
| 41 |
+
.lang-menu-dropdown a:hover {
|
| 42 |
+
background-color: #f3f4f6;
|
| 43 |
+
color: #2563eb;
|
| 44 |
+
}
|
| 45 |
+
/* Custom style adjustments for the footer text to look good on a light background */
|
| 46 |
+
footer .text-white { color: #1f2937 !important; }
|
| 47 |
+
footer .text-gray-400 { color: #6b7280 !important; }
|
| 48 |
+
footer .border-t.border-[#4b5563] { border-color: #e5e7eb !important; }
|
| 49 |
+
footer .text-gray-500 { color: #6b7280 !important; }
|
| 50 |
+
|
| 51 |
+
/* Hero Section Specific Styling */
|
| 52 |
+
.hero-section {
|
| 53 |
+
background-image: url('https://i.postimg.cc/2SYwvD1Z/Gemini-Generated-Image-otagaiotagaiotag.jpg'); /* Image 1 */
|
| 54 |
+
background-size: cover;
|
| 55 |
+
background-position: center;
|
| 56 |
+
position: relative;
|
| 57 |
+
}
|
| 58 |
+
.hero-overlay {
|
| 59 |
+
background-color: rgba(0, 0, 0, 0.5); /* Dark overlay */
|
| 60 |
+
}
|
| 61 |
+
</style>
|
| 62 |
+
</head>
|
| 63 |
+
<body class="bg-white text-gray-900 font-sans">
|
| 64 |
+
|
| 65 |
+
<header class="sticky top-0 z-50 bg-white border-b border-gray-200">
|
| 66 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-4 flex justify-between items-center">
|
| 67 |
+
<div class="flex items-center space-x-8">
|
| 68 |
+
<a href="#" class="text-2xl font-bold text-gray-900 flex items-center">
|
| 69 |
+
<img src="https://i.postimg.cc/t4NCGNzD/gitforge-png.png" alt="GitForge Logo" class="h-6 w-6 mr-2">
|
| 70 |
+
<span data-translate="site-name">GitForge</span>
|
| 71 |
+
</a>
|
| 72 |
+
<nav class="hidden md:flex space-x-6 text-sm font-medium text-gray-700">
|
| 73 |
+
<a href="/mindus/nexus/a_propos" class="hover:text-blue-600-var" data-translate="nav-platform">Platform</a>
|
| 74 |
+
<a href="/mindus/nexus/contact" class="hover:text-blue-600-var" data-translate="nav-solutions">Company</a>
|
| 75 |
+
<a href="/mindus/nexus/resources" class="hover:text-blue-600-var" data-translate="nav-resources">Resources</a>
|
| 76 |
+
<a href="/mindus/nexus/contact" class="hover:text-blue-600-var" data-translate="nav-opensource">Contact us</a>
|
| 77 |
+
<a href="/mindus/nexus/a_propos" class="hover:text-blue-600-var" data-translate="nav-enterprise">Enterprise</a>
|
| 78 |
+
<a href="/mindus/nexus/careers" class="hover:text-blue-600-var text-blue-600-var" data-translate="nav-careers">Careers</a>
|
| 79 |
+
</nav>
|
| 80 |
+
</div>
|
| 81 |
+
<div class="flex items-center space-x-4">
|
| 82 |
+
<a href="/mindus/nexus/form_gitforge" class="px-4 py-2 text-sm font-medium rounded-md bg-gray-800 hover:bg-gray-900 text-white transition" data-translate="btn-join-community">Join Our Talent Community</a>
|
| 83 |
+
</div>
|
| 84 |
+
</div>
|
| 85 |
+
</header>
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
<main>
|
| 90 |
+
|
| 91 |
+
<section class="hero-section text-white py-24 md:py-36">
|
| 92 |
+
<div class="hero-overlay absolute inset-0"></div>
|
| 93 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 text-center relative z-10">
|
| 94 |
+
<h1 class="text-5xl md:text-7xl font-extrabold mb-6 max-w-5xl mx-auto" data-translate="hero-title">Forge Your Future with GitForge</h1>
|
| 95 |
+
<p class="text-xl md:text-2xl font-light mb-10 max-w-4xl mx-auto" data-translate="hero-subtitle">Join us in building the unified DevOps platform that empowers millions of developers worldwide.</p>
|
| 96 |
+
<a href="#open-positions" class="inline-block bg-blue-600-var hover:bg-blue-700-var text-white font-semibold py-3 px-8 rounded-md transition duration-300 text-lg shadow-lg" data-translate="hero-cta">Explore Open Positions</a>
|
| 97 |
+
</div>
|
| 98 |
+
</section>
|
| 99 |
+
|
| 100 |
+
<section class="py-16 md:py-24">
|
| 101 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 102 |
+
<div class="flex flex-col lg:flex-row items-center lg:space-x-12">
|
| 103 |
+
<div class="lg:w-1/2 mb-8 lg:mb-0">
|
| 104 |
+
<img src="https://images.unsplash.com/photo-1542831371-29b0f74f9713?auto=format&fit=crop&w=1280&q=80" alt="Code on a screen representing our mission" class="rounded-xl shadow-2xl w-full" style="height: auto; max-height: 400px; object-fit: cover;"> </div>
|
| 105 |
+
<div class="lg:w-1/2">
|
| 106 |
+
<span class="text-sm font-semibold uppercase text-blue-600-var mb-2 block" data-translate="mission-tag">Our Impact</span>
|
| 107 |
+
<h2 class="text-3xl md:text-4xl font-extrabold text-gray-900-var mb-6" data-translate="mission-title">The heart of innovation</h2>
|
| 108 |
+
<p class="text-lg text-gray-600 mb-4" data-translate="mission-text-1">At GitForge, we believe in the power of code to change the world. Our mission is to provide every developer with the tools they need to build, secure, and deploy software faster than ever before. We are constantly pushing the boundaries of what is possible in DevOps and AI-assisted development.</p>
|
| 109 |
+
<p class="text-lg text-gray-600" data-translate="mission-text-2">Joining our team means working on high-impact projects that influence the daily lives of millions of developers, from open-source contributors to large enterprise teams.</p>
|
| 110 |
+
</div>
|
| 111 |
+
</div>
|
| 112 |
+
</div>
|
| 113 |
+
</section>
|
| 114 |
+
|
| 115 |
+
<section class="bg-gray-50 py-16 md:py-24">
|
| 116 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 117 |
+
<div class="flex flex-col lg:flex-row-reverse items-center lg:space-x-reverse lg:space-x-12">
|
| 118 |
+
<div class="lg:w-1/2 mb-8 lg:mb-0">
|
| 119 |
+
<img src="https://images.unsplash.com/photo-1519389950473-47ba0277781c?auto=format&fit=crop&w=1280&q=80" alt="Team collaborating on a project" class="rounded-xl shadow-2xl w-full" style="height: auto; max-height: 400px; object-fit: cover;"> </div>
|
| 120 |
+
<div class="lg:w-1/2">
|
| 121 |
+
<span class="text-sm font-semibold uppercase text-blue-600-var mb-2 block" data-translate="culture-tag">Team Spirit</span>
|
| 122 |
+
<h2 class="text-3xl md:text-4xl font-extrabold text-gray-900-var mb-6" data-translate="culture-title">A Culture of Openness and Trust</h2>
|
| 123 |
+
<ul class="space-y-4 text-gray-700 text-lg">
|
| 124 |
+
<li class="flex items-start">
|
| 125 |
+
<i class="fas fa-users text-blue-600-var mt-1 mr-3 text-xl"></i>
|
| 126 |
+
<span data-translate="culture-point-1">**Collaboration First:** We succeed as a team, not as individuals.</span>
|
| 127 |
+
</li>
|
| 128 |
+
<li class="flex items-start">
|
| 129 |
+
<i class="fas fa-lightbulb text-blue-600-var mt-1 mr-3 text-xl"></i>
|
| 130 |
+
<span data-translate="culture-point-2">**Ownership & Autonomy:** You have the space to innovate and lead.</span>
|
| 131 |
+
</li>
|
| 132 |
+
<li class="flex items-start">
|
| 133 |
+
<i class="fas fa-coffee text-blue-600-var mt-1 mr-3 text-xl"></i>
|
| 134 |
+
<span data-translate="culture-point-3">**Work-Life Balance:** Sustainable pace is key to long-term success.</span>
|
| 135 |
+
</li>
|
| 136 |
+
</ul>
|
| 137 |
+
</div>
|
| 138 |
+
</div>
|
| 139 |
+
</div>
|
| 140 |
+
</section>
|
| 141 |
+
|
| 142 |
+
<section class="py-16 md:py-24">
|
| 143 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 144 |
+
<div class="text-center mb-12">
|
| 145 |
+
<h2 class="text-3xl md:text-4xl font-extrabold text-gray-900-var" data-translate="benefits-title">Invest in Your Well-Being</h2>
|
| 146 |
+
<p class="text-lg text-gray-600 mt-3" data-translate="benefits-subtitle">We offer competitive benefits designed to support you and your family.</p>
|
| 147 |
+
</div>
|
| 148 |
+
<div class="flex flex-col lg:flex-row items-center lg:space-x-12">
|
| 149 |
+
<div class="lg:w-1/2 mb-8 lg:mb-0">
|
| 150 |
+
<ul class="space-y-6 text-gray-700 text-lg">
|
| 151 |
+
<li class="flex items-center">
|
| 152 |
+
<i class="fas fa-heartbeat text-blue-600-var mr-4 text-2xl"></i>
|
| 153 |
+
<span data-translate="benefit-1">Comprehensive Health Coverage and Wellness Programs.</span>
|
| 154 |
+
</li>
|
| 155 |
+
<li class="flex items-center">
|
| 156 |
+
<i class="fas fa-graduation-cap text-blue-600-var mr-4 text-2xl"></i>
|
| 157 |
+
<span data-translate="benefit-2">Learning & Development Stipends (Image 4 related to this).</span>
|
| 158 |
+
</li>
|
| 159 |
+
<li class="flex items-center">
|
| 160 |
+
<i class="fas fa-home text-blue-600-var mr-4 text-2xl"></i>
|
| 161 |
+
<span data-translate="benefit-3">Flexible Work Policy and Remote Opportunities.</span>
|
| 162 |
+
</li>
|
| 163 |
+
<li class="flex items-center">
|
| 164 |
+
<i class="fas fa-sack-dollar text-blue-600-var mr-4 text-2xl"></i>
|
| 165 |
+
<span data-translate="benefit-4">Competitive Salary, Bonus Plans, and Stock Options.</span>
|
| 166 |
+
</li>
|
| 167 |
+
<li class="flex items-center">
|
| 168 |
+
<i class="fas fa-plane text-blue-600-var mr-4 text-2xl"></i>
|
| 169 |
+
<span data-translate="benefit-5">Generous Paid Time Off and Parental Leave.</span>
|
| 170 |
+
</li>
|
| 171 |
+
</ul>
|
| 172 |
+
</div>
|
| 173 |
+
<div class="lg:w-1/2">
|
| 174 |
+
<img src="https://images.unsplash.com/photo-1507842217343-583bb7270b66?auto=format&fit=crop&w=1280&q=80" alt="A stack of books symbolizing learning and growth" class="rounded-xl shadow-2xl w-full" style="height: auto; max-height: 400px; object-fit: cover;"> </div>
|
| 175 |
+
</div>
|
| 176 |
+
</div>
|
| 177 |
+
</section>
|
| 178 |
+
|
| 179 |
+
<section class="bg-gray-50 py-16 md:py-24">
|
| 180 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 text-center">
|
| 181 |
+
<span class="text-sm font-semibold uppercase text-blue-600-var mb-2 block" data-translate="dei-tag">Inclusion is Our Strength</span>
|
| 182 |
+
<h2 class="text-3xl md:text-4xl font-extrabold text-gray-900-var mb-6" data-translate="dei-title">Building a Truly Global Team</h2>
|
| 183 |
+
<p class="text-lg text-gray-600 mb-8 max-w-3xl mx-auto" data-translate="dei-text-1">We are committed to building a diverse workplace where everyone feels respected and has the opportunity to contribute their best work. Different perspectives are essential to building a platform that serves the world.</p>
|
| 184 |
+
<img src="https://images.unsplash.com/photo-1537432376769-00a0a046da42f?auto=format&fit=crop&w=1280&q=80" alt="Diverse team collaborating around a laptop" class="rounded-xl shadow-2xl w-full lg:w-3/4 mx-auto" style="height: auto; max-height: 450px; object-fit: cover;"> </div>
|
| 185 |
+
</section>
|
| 186 |
+
|
| 187 |
+
<section class="py-16 md:py-24 bg-blue-600-var text-white">
|
| 188 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 text-center">
|
| 189 |
+
<h2 class="text-4xl md:text-5xl font-extrabold mb-6" data-translate="investment-title">Strategic Partnership & Seed Funding</h2>
|
| 190 |
+
<p class="text-xl font-light mb-8 max-w-4xl mx-auto" data-translate="investment-text-1">GitForge is ready for global launch. We seek strategic partners and seed investors to secure our infrastructure and formalize our operations in France.</p>
|
| 191 |
+
<div class="space-y-4 md:space-y-0 md:space-x-8">
|
| 192 |
+
<p class="text-lg font-medium mb-8" data-translate="investment-need">Our immediate needs: Company registration (France), dedicated server infrastructure (Dynamic Hosting), and corporate domain acquisition.</p>
|
| 193 |
+
<a href="/mindus/nexus/contact" class="inline-block bg-white text-blue-600-var hover:bg-gray-100 font-semibold py-3 px-8 rounded-md transition duration-300 text-lg shadow-xl" data-translate="investment-cta">Contact Partnership Team</a>
|
| 194 |
+
</div>
|
| 195 |
+
</div>
|
| 196 |
+
</section>
|
| 197 |
+
<section class="py-16 md:py-24">
|
| 198 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 199 |
+
<div class="text-center mb-12">
|
| 200 |
+
<h2 class="text-3xl md:text-4xl font-extrabold text-gray-900-var" data-translate="values-title">Our Core Values</h2>
|
| 201 |
+
<p class="text-lg text-gray-600 mt-3" data-translate="values-subtitle">These principles guide our decisions and our development culture.</p>
|
| 202 |
+
</div>
|
| 203 |
+
<div class="grid md:grid-cols-3 gap-8">
|
| 204 |
+
<div class="p-6 border border-gray-100 rounded-lg shadow-md hover:shadow-xl transition duration-300">
|
| 205 |
+
<i class="fas fa-rocket text-blue-600-var text-3xl mb-4"></i>
|
| 206 |
+
<h3 class="text-xl font-semibold text-gray-900-var mb-2" data-translate="value-1-title">Innovation</h3>
|
| 207 |
+
<p class="text-gray-600" data-translate="value-1-text">We constantly experiment with new technologies, from AI to serverless infrastructure, to stay ahead.</p>
|
| 208 |
+
</div>
|
| 209 |
+
<div class="p-6 border border-gray-100 rounded-lg shadow-md hover:shadow-xl transition duration-300">
|
| 210 |
+
<i class="fas fa-lock text-blue-600-var text-3xl mb-4"></i>
|
| 211 |
+
<h3 class="text-xl font-semibold text-gray-900-var mb-2" data-translate="value-2-title">Security First</h3>
|
| 212 |
+
<p class="text-gray-600" data-translate="value-2-text">Security is baked into everything we build, ensuring trust for our users and customers.</p>
|
| 213 |
+
</div>
|
| 214 |
+
<div class="p-6 border border-gray-100 rounded-lg shadow-md hover:shadow-xl transition duration-300">
|
| 215 |
+
<i class="fas fa-globe text-blue-600-var text-3xl mb-4"></i>
|
| 216 |
+
<h3 class="text-xl font-semibold text-gray-900-var mb-2" data-translate="value-3-title">Global Impact</h3>
|
| 217 |
+
<p class="text-gray-600" data-translate="value-3-text">We build products that are used everywhere, fostering a global mindset and responsibility.</p>
|
| 218 |
+
</div>
|
| 219 |
+
</div>
|
| 220 |
+
<div class="mt-12 text-center">
|
| 221 |
+
<img src="https://images.unsplash.com/photo-1488590528505-98d2b5aba04b?auto=format&fit=crop&w=1280&q=80" alt="Server rack and tech equipment" class="rounded-xl shadow-2xl w-full lg:w-2/3 mx-auto" style="height: auto; max-height: 400px; object-fit: cover;"> </div>
|
| 222 |
+
</div>
|
| 223 |
+
</section>
|
| 224 |
+
|
| 225 |
+
<section id="open-positions" class="bg-gray-50 py-16 md:py-24">
|
| 226 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 227 |
+
<h2 class="text-3xl md:text-4xl font-extrabold text-gray-900-var mb-10 text-center" data-translate="positions-title">Current Openings</h2>
|
| 228 |
+
<div class="grid lg:grid-cols-3 gap-8">
|
| 229 |
+
<a href="/mindus/nexus/form_gitforge" class="block p-6 bg-white border border-gray-200 rounded-lg shadow-lg hover:border-blue-600-var transition duration-300 group">
|
| 230 |
+
<h3 class="text-xl font-bold text-gray-900-var mb-2 group-hover:text-blue-600-var" data-translate="job-1-title">Senior Frontend Engineer</h3>
|
| 231 |
+
<p class="text-gray-600 mb-4 text-sm" data-translate="job-1-location">Remote (Europe)</p>
|
| 232 |
+
<p class="text-gray-700" data-translate="job-1-desc">Develop and maintain the core GitForge user interface, focusing on performance and user experience.</p>
|
| 233 |
+
<span class="mt-4 inline-block text-blue-600-var font-medium text-sm group-hover:underline" data-translate="apply-now">Apply Now →</span>
|
| 234 |
+
</a>
|
| 235 |
+
<a href="/mindus/nexus/form_gitforge" class="block p-6 bg-white border border-gray-200 rounded-lg shadow-lg hover:border-blue-600-var transition duration-300 group">
|
| 236 |
+
<h3 class="text-xl font-bold text-gray-900-var mb-2 group-hover:text-blue-600-var" data-translate="job-2-title">AI/ML Research Scientist</h3>
|
| 237 |
+
<p class="text-gray-600 mb-4 text-sm" data-translate="job-2-location">San Francisco, CA</p>
|
| 238 |
+
<p class="text-gray-700" data-translate="job-2-desc">Drive innovation for GitForge Copilot and our advanced security features.</p>
|
| 239 |
+
<span class="mt-4 inline-block text-blue-600-var font-medium text-sm group-hover:underline" data-translate="apply-now">Apply Now →</span>
|
| 240 |
+
</a>
|
| 241 |
+
<a href="/mindus/nexus/form_gitforge" class="block p-6 bg-white border border-gray-200 rounded-lg shadow-lg hover:border-blue-600-var transition duration-300 group">
|
| 242 |
+
<h3 class="text-xl font-bold text-gray-900-var mb-2 group-hover:text-blue-600-var" data-translate="job-3-title">Product Designer (UX)</h3>
|
| 243 |
+
<p class="text-gray-600 mb-4 text-sm" data-translate="job-3-location">Remote (Global)</p>
|
| 244 |
+
<p class="text-gray-700" data-translate="job-3-desc">Shape the design language and user flows across the entire GitForge platform.</p>
|
| 245 |
+
<span class="mt-4 inline-block text-blue-600-var font-medium text-sm group-hover:underline" data-translate="apply-now">Apply Now →</span>
|
| 246 |
+
</a>
|
| 247 |
+
</div>
|
| 248 |
+
<div class="mt-12 text-center">
|
| 249 |
+
<p class="text-xl text-gray-700 mb-6" data-translate="positions-none-found">Don't see a role for you? Send us your CV anyway!</p>
|
| 250 |
+
<a href="/mindus/nexus/form_gitforge" class="inline-block bg-gray-800 hover:bg-gray-900 text-white font-medium py-3 px-8 rounded-md transition duration-300 text-lg" data-translate="btn-general-application">General Application</a>
|
| 251 |
+
<img src="https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1280&q=80" alt="Person working on a laptop" class="mt-10 rounded-xl shadow-2xl w-full lg:w-1/2 mx-auto" style="height: auto; max-height: 400px; object-fit: cover;"> </div>
|
| 252 |
+
</div>
|
| 253 |
+
</section>
|
| 254 |
+
|
| 255 |
+
<section class="py-16 md:py-24">
|
| 256 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 257 |
+
<h2 class="text-3xl md:text-4xl font-extrabold text-gray-900-var mb-10 text-center" data-translate="hiring-title">Our Simple Hiring Process</h2>
|
| 258 |
+
<div class="grid md:grid-cols-4 gap-8 text-center">
|
| 259 |
+
<div class="flex flex-col items-center">
|
| 260 |
+
<div class="w-16 h-16 flex items-center justify-center bg-blue-100 rounded-full mb-4 text-blue-600-var font-bold text-2xl">1</div>
|
| 261 |
+
<h3 class="text-xl font-semibold text-gray-900-var mb-2" data-translate="step-1-title">Application</h3>
|
| 262 |
+
<p class="text-gray-600" data-translate="step-1-text">Submit your CV and cover letter through our portal.</p>
|
| 263 |
+
</div>
|
| 264 |
+
<div class="flex flex-col items-center">
|
| 265 |
+
<div class="w-16 h-16 flex items-center justify-center bg-blue-100 rounded-full mb-4 text-blue-600-var font-bold text-2xl">2</div>
|
| 266 |
+
<h3 class="text-xl font-semibold text-gray-900-var mb-2" data-translate="step-2-title">Screening Call</h3>
|
| 267 |
+
<p class="text-gray-600" data-translate="step-2-text">A quick chat with a recruiter to discuss your background and goals.</p>
|
| 268 |
+
</div>
|
| 269 |
+
<div class="flex flex-col items-center">
|
| 270 |
+
<div class="w-16 h-16 flex items-center justify-center bg-blue-100 rounded-full mb-4 text-blue-600-var font-bold text-2xl">3</div>
|
| 271 |
+
<h3 class="text-xl font-semibold text-gray-900-var mb-2" data-translate="step-3-title">Technical Interviews</h3>
|
| 272 |
+
<p class="text-gray-600" data-translate="step-3-text">In-depth discussions and practical challenges with the hiring team.</p>
|
| 273 |
+
</div>
|
| 274 |
+
<div class="flex flex-col items-center">
|
| 275 |
+
<div class="w-16 h-16 flex items-center justify-center bg-blue-100 rounded-full mb-4 text-blue-600-var font-bold text-2xl">4</div>
|
| 276 |
+
<h3 class="text-xl font-semibold text-gray-900-var mb-2" data-translate="step-4-title">Offer & Onboarding</h3>
|
| 277 |
+
<p class="text-gray-600" data-translate="step-4-text">Welcome to GitForge! Let's build the future of software together.</p>
|
| 278 |
+
</div>
|
| 279 |
+
</div>
|
| 280 |
+
</div>
|
| 281 |
+
</section>
|
| 282 |
+
|
| 283 |
+
</main>
|
| 284 |
+
|
| 285 |
+
|
| 286 |
+
<footer class="bg-white pt-16 border-t border-gray-200">
|
| 287 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 288 |
+
<div class="grid grid-cols-2 md:grid-cols-5 gap-8">
|
| 289 |
+
<div class="col-span-2 md:col-span-1">
|
| 290 |
+
<a href="#" class="text-xl font-bold text-gray-900-var flex items-center mb-4">
|
| 291 |
+
<img src="https://i.postimg.cc/t4NCGNzD/gitforge-png.png" alt="GitForge Logo" class="h-5 w-5 mr-2">
|
| 292 |
+
<span data-translate="site-name">GitForge</span>
|
| 293 |
+
</a>
|
| 294 |
+
<p class="text-gray-600 text-sm" data-translate="footer-tagline">The unified DevOps platform, powered by AI.</p>
|
| 295 |
+
<div class="flex space-x-4 mt-6">
|
| 296 |
+
<a href="#" class="text-gray-500 hover:text-blue-600-var transition duration-200"><i class="fab fa-twitter text-xl"></i></a>
|
| 297 |
+
<a href="#" class="text-gray-500 hover:text-blue-600-var transition duration-200"><i class="fab fa-linkedin-in text-xl"></i></a>
|
| 298 |
+
<a href="#" class="text-gray-500 hover:text-blue-600-var transition duration-200"><i class="fab fa-github text-xl"></i></a>
|
| 299 |
+
</div>
|
| 300 |
+
</div>
|
| 301 |
+
|
| 302 |
+
<div>
|
| 303 |
+
<h4 data-translate="footer-product" class="font-bold text-gray-900-var mb-3">Product</h4>
|
| 304 |
+
<ul class="space-y-2 text-gray-600">
|
| 305 |
+
<li><a data-translate="footer-platform" href="/mindus/nexus/conditions_utilisation" class="hover:text-blue-600-var transition duration-200">Platform</a></li>
|
| 306 |
+
<li><a data-translate="footer-security" href="/mindus/nesus/politique_confidentialite" class="hover:text-blue-600-var transition duration-200">Security</a></li>
|
| 307 |
+
<li><a data-translate="footer-enterprise" href="/mindus/nexus/a_propos" class="hover:text-blue-600-var transition duration-200">Enterprise</a></li>
|
| 308 |
+
<li><a data-translate="footer-pricing" href="/mindus/nexus/tarifs" class="hover:text-blue-600-var transition duration-200">Pricing</a></li>
|
| 309 |
+
</ul>
|
| 310 |
+
</div>
|
| 311 |
+
|
| 312 |
+
<div>
|
| 313 |
+
<h4 data-translate="footer-company" class="font-bold text-gray-900-var mb-3">Company</h4>
|
| 314 |
+
<ul class="space-y-2 text-gray-600">
|
| 315 |
+
<li><a data-translate="footer-about" href="/mindus/nexus/a_propos" class="hover:text-blue-600-var transition duration-200">About us</a></li>
|
| 316 |
+
<li><a data-translate="footer-careers" href="/mindus/nexus/careers" class="hover:text-blue-600-var transition duration-200">Careers</a></li>
|
| 317 |
+
<li><a data-translate="footer-support" href="/mindus/nexus/contact" class="hover:text-blue-600-var transition duration-200">Support</a></li>
|
| 318 |
+
<li><a data-translate="footer-faq" href="/mindus/nexus/faq" class="hover:text-blue-600-var transition duration-200">FAQ</a></li>
|
| 319 |
+
</ul>
|
| 320 |
+
</div>
|
| 321 |
+
|
| 322 |
+
<div class="col-span-4 md:col-span-1 lang-dropdown-container">
|
| 323 |
+
<h4 data-translate="footer-resources" class="font-bold text-gray-900-var mb-3">Resources</h4>
|
| 324 |
+
<ul class="space-y-2 text-gray-600">
|
| 325 |
+
<li><a data-translate="footer-contact-email" href="/mindus/nexus/contact" class="hover:text-blue-600-var transition duration-200">Contact Email</a></li>
|
| 326 |
+
<li><a data-translate="footer-status" href="/mindus/nexus/statut" class="hover:text-blue-600-var transition duration-200">Service Status</a></li>
|
| 327 |
+
<li><a data-translate="footer-blog" href="/mindus/nexus/blog" class="hover:text-blue-600-var transition duration-200">Tech Blog</a></li>
|
| 328 |
+
<li><a data-translate="footer-copilot" href="/mindus/nexus/gitforge_copilot" class="hover:text-blue-600-var transition duration-200">Copilot</a></li>
|
| 329 |
+
|
| 330 |
+
<li class="relative mt-4 pt-4 border-t border-gray-200">
|
| 331 |
+
<button id="lang-menu-button" class="flex items-center text-gray-900-var hover:text-blue-600-var transition duration-200 text-sm">
|
| 332 |
+
<span id="current-flag">🇺🇸</span>
|
| 333 |
+
<span id="current-lang-name" class="ml-2 font-medium" data-lang-code="en">English</span>
|
| 334 |
+
<span class="material-symbols-rounded text-gray-500 ml-1 text-base">expand_more</span>
|
| 335 |
+
</button>
|
| 336 |
+
<div id="lang-menu-dropdown" class="lang-menu-dropdown origin-bottom-left bottom-full">
|
| 337 |
+
<a href="#" class="block px-4 py-2 text-sm lang-option" data-lang="en"><span class="mr-2">🇺🇸</span> English</a>
|
| 338 |
+
<a href="#" class="block px-4 py-2 text-sm lang-option" data-lang="fr"><span class="mr-2">🇫🇷</span> Français</a>
|
| 339 |
+
<a href="#" class="block px-4 py-2 text-sm lang-option" data-lang="es"><span class="mr-2">🇪🇸</span> Español</a>
|
| 340 |
+
<a href="#" class="block px-4 py-2 text-sm lang-option" data-lang="zh-CN"><span class="mr-2">🇨🇳</span> 简体中文 (Simplified Chinese)</a>
|
| 341 |
+
<a href="#" class="block px-4 py-2 text-sm lang-option" data-lang="ja"><span class="mr-2">🇯🇵</span> 日本語 (Japanese)</a>
|
| 342 |
+
<a href="#" class="block px-4 py-2 text-sm lang-option" data-lang="de"><span class="mr-2">🇩🇪</span> Deutsch (German)</a>
|
| 343 |
+
<a href="#" class="block px-4 py-2 text-sm lang-option" data-lang="pt-BR"><span class="mr-2">🇧🇷</span> Português (Brasil)</a>
|
| 344 |
+
<a href="#" class="block px-4 py-2 text-sm lang-option" data-lang="ru"><span class="mr-2">🇷🇺</span> Русский (Russian)</a>
|
| 345 |
+
</div>
|
| 346 |
+
</li>
|
| 347 |
+
</ul>
|
| 348 |
+
</div>
|
| 349 |
+
</div>
|
| 350 |
+
|
| 351 |
+
<div class="py-8 mt-8 border-t border-gray-200">
|
| 352 |
+
<p class="text-sm text-gray-500 text-center md:text-left" data-translate="footer-copyright">
|
| 353 |
+
© 2025 GitForge. All rights reserved. Powered by the <a href="/" class="hover:text-blue-600-var hover:underline">GitForge Platform</a>.
|
| 354 |
+
</p>
|
| 355 |
+
</div>
|
| 356 |
+
</div>
|
| 357 |
+
</footer>
|
| 358 |
+
|
| 359 |
+
|
| 360 |
+
<script>
|
| 361 |
+
let currentLang = 'en';
|
| 362 |
+
|
| 363 |
+
// Translation dictionary for all supported languages
|
| 364 |
+
const translations = {
|
| 365 |
+
"page-title": { "fr": "Carrières GitForge", "en": "GitForge Careers", "es": "Carreras en GitForge", "zh-CN": "GitForge 职业", "ja": "GitForge 採用情報", "de": "GitForge Karriere", "pt-BR": "Carreiras na GitForge", "ru": "Вакансии GitForge" },
|
| 366 |
+
"site-name": { "fr": "GitForge", "en": "GitForge", "es": "GitForge", "zh-CN": "GitForge", "ja": "GitForge", "de": "GitForge", "pt-BR": "GitForge", "ru": "GitForge" },
|
| 367 |
+
"nav-platform": { "fr": "Plateforme", "en": "Platform", "es": "Plataforma", "zh-CN": "平台", "ja": "プラットフォーム", "de": "Plattform", "pt-BR": "Plataforma", "ru": "Платформа" },
|
| 368 |
+
"nav-solutions": { "fr": "Société", "en": "Company", "es": "Compañía", "zh-CN": "公司", "ja": "企業情報", "de": "Unternehmen", "pt-BR": "Empresa", "ru": "Компания" },
|
| 369 |
+
"nav-resources": { "fr": "Ressources", "en": "Resources", "es": "Recursos", "zh-CN": "资源", "ja": "リソース", "de": "Ressourcen", "pt-BR": "Recursos", "ru": "Ресурсы" },
|
| 370 |
+
"nav-opensource": { "fr": "Contactez-nous", "en": "Contact us", "es": "Contáctenos", "zh-CN": "联系我们", "ja": "お問い合わせ", "de": "Kontakt", "pt-BR": "Fale Conosco", "ru": "Связаться" },
|
| 371 |
+
"nav-enterprise": { "fr": "Entreprise", "en": "Enterprise", "es": "Empresas", "zh-CN": "企业", "ja": "エンタープライズ", "de": "Enterprise", "pt-BR": "Empresarial", "ru": "Для бизнеса" },
|
| 372 |
+
"nav-careers": { "fr": "Carrières", "en": "Careers", "es": "Carreras", "zh-CN": "职业", "ja": "採用情報", "de": "Karriere", "pt-BR": "Carreiras", "ru": "Вакансии" },
|
| 373 |
+
"btn-join-community": { "fr": "Rejoindre Notre Communauté de Talents", "en": "Join Our Talent Community", "es": "Únete a Nuestra Comunidad de Talentos", "zh-CN": "加入人才社区", "ja": "タレントコミュニティに参加", "de": "Treten Sie unserer Talent-Community bei", "pt-BR": "Junte-se à Nossa Comunidade de Talentos", "ru": "Присоединиться к сообществу" },
|
| 374 |
+
|
| 375 |
+
|
| 376 |
+
// NEW CAREERS CONTENT
|
| 377 |
+
"hero-title": {
|
| 378 |
+
"fr": "Forgeons Votre Avenir avec GitForge",
|
| 379 |
+
"en": "Forge Your Future with GitForge",
|
| 380 |
+
"es": "Forja Tu Futuro con GitForge",
|
| 381 |
+
"zh-CN": "在 GitForge 铸就您的未来",
|
| 382 |
+
"ja": "GitForge であなたの未来を創造する",
|
| 383 |
+
"de": "Gestalten Sie Ihre Zukunft mit GitForge",
|
| 384 |
+
"pt-BR": "Forje Seu Futuro com a GitForge",
|
| 385 |
+
"ru": "Постройте свое будущее с GitForge"
|
| 386 |
+
},
|
| 387 |
+
"hero-subtitle": {
|
| 388 |
+
"fr": "Rejoignez-nous pour construire la plateforme DevOps unifiée qui soutient des millions de développeurs dans le monde.",
|
| 389 |
+
"en": "Join us in building the unified DevOps platform that empowers millions of developers worldwide.",
|
| 390 |
+
"es": "Únete a nosotros para construir la plataforma DevOps unificada que impulsa a millones de desarrolladores en todo el mundo.",
|
| 391 |
+
"zh-CN": "加入我们,共同打造赋能全球数百万开发者的统一 DevOps 平台。",
|
| 392 |
+
"ja": "世界中の何百万もの開発者を支援する、統合された DevOps プラットフォームの構築に参加しませんか。",
|
| 393 |
+
"de": "Arbeiten Sie mit uns an der Entwicklung der vereinheitlichten DevOps-Plattform, die Millionen von Entwicklern weltweit unterstützt.",
|
| 394 |
+
"pt-BR": "Junte-se a nós na construção da plataforma DevOps unificada que capacita milhões de desenvolvedores em todo o mundo.",
|
| 395 |
+
"ru": "Присоединяйтесь к нам в создании унифицированной платформы DevOps, которая дает возможности миллионам разработчиков по всему миру."
|
| 396 |
+
},
|
| 397 |
+
"hero-cta": {
|
| 398 |
+
"fr": "Explorer les Postes Ouverts",
|
| 399 |
+
"en": "Explore Open Positions",
|
| 400 |
+
"es": "Explorar Puestos Abiertos",
|
| 401 |
+
"zh-CN": "探索空缺职位",
|
| 402 |
+
"ja": "募集中のポジションを見る",
|
| 403 |
+
"de": "Offene Stellen entdecken",
|
| 404 |
+
"pt-BR": "Explorar Vagas Abertas",
|
| 405 |
+
"ru": "Посмотреть открытые вакансии"
|
| 406 |
+
},
|
| 407 |
+
|
| 408 |
+
// Section 2: Mission
|
| 409 |
+
"mission-tag": { "fr": "Notre Impact", "en": "Our Impact", "es": "Nuestro Impacto", "zh-CN": "我们的影响", "ja": "私たちの影響", "de": "Unser Beitrag", "pt-BR": "Nosso Impacto", "ru": "Наш вклад" },
|
| 410 |
+
"mission-title": { "fr": "Le cœur de l'innovation", "en": "The heart of innovation", "es": "El corazón de la innovación", "zh-CN": "创新的核心", "ja": "イノベーションの中心", "de": "Das Herz der Innovation", "pt-BR": "O coração da inovação", "ru": "Сердце инноваций" },
|
| 411 |
+
"mission-text-1": {
|
| 412 |
+
"fr": "Chez GitForge, nous croyons au pouvoir du code pour changer le monde. Notre mission est de fournir à chaque développeur les outils dont il a besoin pour construire, sécuriser et déployer des logiciels plus rapidement que jamais. Nous repoussons constamment les limites de ce qui est possible en DevOps et en développement assisté par IA.",
|
| 413 |
+
"en": "At GitForge, we believe in the power of code to change the world. Our mission is to provide every developer with the tools they need to build, secure, and deploy software faster than ever before. We are constantly pushing the boundaries of what is possible in DevOps and AI-assisted development.",
|
| 414 |
+
"es": "En GitForge, creemos en el poder del código para cambiar el mundo. Nuestra misión es proporcionar a cada desarrollador las herramientas que necesita para construir, asegurar e implementar software más rápido que nunca. Estamos constantemente superando los límites de lo posible en DevOps y desarrollo asistido por IA.",
|
| 415 |
+
"zh-CN": "在 GitForge,我们相信代码拥有改变世界的力量。我们的使命是为每位开发者提供所需的工具,以比以往任何时候都更快的速度构建、保护和部署软件。我们不断突破 DevOps 和 AI 辅助开发的界限。",
|
| 416 |
+
"ja": "GitForge では、世界を変えるコードの力を信じています。私たちの使命は、すべての開発者がこれまで以上に迅速にソフトウェアを構築、保護、デプロイするために必要なツールを提供することです。私たちは、DevOps と AI 支援開発における可能性の限界を常に押し広げています。",
|
| 417 |
+
"de": "Bei GitForge glauben wir an die Kraft von Code, die Welt zu verändern. Unsere Mission ist es, jedem Entwickler die Werkzeuge zur Verfügung zu stellen, die er benötigt, um Software schneller als je zuvor zu erstellen, zu sichern und bereitzustellen. Wir verschieben ständig die Grenzen des Möglichen in DevOps und KI-gestützter Entwicklung.",
|
| 418 |
+
"pt-BR": "Na GitForge, acreditamos no poder do código para mudar o mundo. Nossa missão é fornecer a cada desenvolvedor as ferramentas de que precisam para construir, proteger e implantar software mais rápido do que nunca. Estamos constantemente expandindo os limites do que é possível em DevOps e desenvolvimento assistido por IA.",
|
| 419 |
+
"ru": "В GitForge мы верим в способность кода менять мир. Наша миссия — предоставить каждому разработчику инструменты, необходимые для создания, защиты и развертывания программного обеспечения быстрее, чем когда-либо прежде. Мы постоянно расширяем границы возможного в DevOps и разработке с помощью ИИ."
|
| 420 |
+
},
|
| 421 |
+
"mission-text-2": {
|
| 422 |
+
"fr": "Rejoindre notre équipe signifie travailler sur des projets à fort impact qui influencent la vie quotidienne de millions de développeurs, des contributeurs open source aux grandes équipes d'entreprise.",
|
| 423 |
+
"en": "Joining our team means working on high-impact projects that influence the daily lives of millions of developers, from open-source contributors to large enterprise teams.",
|
| 424 |
+
"es": "Unirse a nuestro equipo significa trabajar en proyectos de alto impacto que influyen en la vida diaria de millones de desarrolladores, desde colaboradores de código abierto hasta grandes equipos empresariales.",
|
| 425 |
+
"zh-CN": "加入我们的团队意味着参与到影响全球数百万开发者日常工作的高影响力项目中,无论是开源贡献者还是大型企业团队。",
|
| 426 |
+
"ja": "私たちのチームに参加するということは、オープンソースの貢献者から大企業のチームまで、何百万もの開発者の日常生活に影響を与える、影響力の大きいプロジェクトに取り組むことを意味します。",
|
| 427 |
+
"de": "Teil unseres Teams zu werden, bedeutet, an hochwirksamen Projekten zu arbeiten, die das tägliche Leben von Millionen von Entwicklern beeinflussen, von Open-Source-Mitwirkenden bis hin zu großen Unternehmens-Teams.",
|
| 428 |
+
"pt-BR": "Juntar-se à nossa equipe significa trabalhar em projetos de alto impacto que influenciam a vida diária de milhões de desenvolvedores, desde colaboradores de código aberto até grandes equipes corporativas.",
|
| 429 |
+
"ru": "Присоединение к нашей команде означает работу над высокоэффективными проектами, которые влияют на повседневную жизнь миллионов разработчиков, от участников с открытым исходным кодом до крупных корпоративных команд."
|
| 430 |
+
},
|
| 431 |
+
|
| 432 |
+
// Section 3: Culture
|
| 433 |
+
"culture-tag": { "fr": "Esprit d'Équipe", "en": "Team Spirit", "es": "Espíritu de Equipo", "zh-CN": "团队精神", "ja": "チームスピリット", "de": "Teamgeist", "pt-BR": "Espírito de Equipe", "ru": "Командный дух" },
|
| 434 |
+
"culture-title": { "fr": "Une Culture d'Ouverture et de Confiance", "en": "A Culture of Openness and Trust", "es": "Una Cultura de Apertura y Confianza", "zh-CN": "开放与信任的文化", "ja": "オープンネスと信頼の文化", "de": "Eine Kultur der Offenheit und des Vertrauens", "pt-BR": "Uma Cultura de Abertura e Confiança", "ru": "Культура открытости и доверия" },
|
| 435 |
+
"culture-point-1": { "fr": "Collaboration Avant Tout : Nous réussissons en tant qu'équipe, pas en tant qu'individus.", "en": "Collaboration First: We succeed as a team, not as individuals.", "es": "Colaboración Primero : Triunfamos como equipo, no como individuos.", "zh-CN": "协作至上:我们以团队而非个人身份取得成功。", "ja": "コラボレーション第一:個人ではなくチームとして成功します。", "de": "Zusammenarbeit zuerst: Wir sind als Team erfolgreich, nicht als Einzelpersonen.", "pt-BR": "Colaboração em Primeiro Lugar : Têm sucesso como equipe, não como indivíduos.", "ru": "Сотрудничество превыше всего : Мы добиваемся успеха как команда, а не как отдельные личности." },
|
| 436 |
+
"culture-point-2": { "fr": "Responsabilité & Autonomie : Vous avez l'espace pour innover et diriger.", "en": "Ownership & Autonomy: You have the space to innovate and lead.", "es": "Propiedad y Autonomía : Tienes el espacio para innovar y liderar.", "zh-CN": "主人翁意识与自主权:您有创新和领导的空间。", "ja": "オーナーシップと自律性:革新と主導権を発揮できる環境があります。", "de": "Verantwortung & Autonomie: Sie haben den Raum, um innovativ zu sein und zu führen.", "pt-BR": "Propriedade e Autonomia : Você tem espaço para inovar e liderar.", "ru": "Ответственность и автономия : У вас есть пространство для инноваций и лидерства." },
|
| 437 |
+
"culture-point-3": { "fr": "Équilibre Travail-Vie Privée : Un rythme durable est la clé du succès à long terme.", "en": "Work-Life Balance: Sustainable pace is key to long-term success.", "es": "Equilibrio Vida-Trabajo : Un ritmo sostenible es clave para el éxito a largo plazo.", "zh-CN": "工作与生活平衡:可持续的节奏是长期成功的关键。", "ja": "ワークライフバランス:持続可能なペースが長期的な成功の鍵です。", "de": "Work-Life-Balance: Ein nachhaltiges Tempo ist der Schlüssel zum langfristigen Erfolg.", "pt-BR": "Equilíbrio Trabalho-Vida Pessoal : Um ritmo sustentável é a chave para o sucesso a longo prazo.", "ru": "Баланс работы и жизни : Устойчивый темп — ключ к долгосрочному успеху." },
|
| 438 |
+
|
| 439 |
+
// Section 4: Benefits
|
| 440 |
+
"benefits-title": { "fr": "Investir dans Votre Bien-Être", "en": "Invest in Your Well-Being", "es": "Invierte en Tu Bienestar", "zh-CN": "投资于您的福祉", "ja": "あなたの幸福に投資する", "de": "Investieren Sie in Ihr Wohlbefinden", "pt-BR": "Invista em Seu Bem-Estar", "ru": "Инвестиции в ваше благополучие" },
|
| 441 |
+
"benefits-subtitle": { "fr": "Nous offrons des avantages compétitifs conçus pour vous soutenir, vous et votre famille.", "en": "We offer competitive benefits designed to support you and your family.", "es": "Ofrecemos beneficios competitivos diseñados para apoyarte a ti y a tu familia.", "zh-CN": "我们提供有竞争力的福利,旨在为您和您的家人提供支持。", "ja": "あなたとあなたの家族をサポートするために設計された、競争力のある福利厚生を提供します。", "de": "Wir bieten wettbewerbsfähige Leistungen, die Sie und Ihre Familie unterstützen sollen.", "pt-BR": "Oferecemos benefícios competitivos projetados para apoiar você e sua família.", "ru": "Мы предлагаем конкурентные льготы, разработанные для поддержки вас и вашей семьи." },
|
| 442 |
+
"benefit-1": { "fr": "Couverture santé complète et programmes de bien-être.", "en": "Comprehensive Health Coverage and Wellness Programs.", "es": "Cobertura de salud integral y programas de bienestar.", "zh-CN": "全面的健康保险和健康计划。", "ja": "包括的な健康保険とウェルネスプログラム。", "de": "Umfassende Krankenversicherung und Wellness-Programme.", "pt-BR": "Cobertura de Saúde Abrangente e Programas de Bem-Estar.", "ru": "Комплексное медицинское страхование и программы оздоровления." },
|
| 443 |
+
"benefit-2": { "fr": "Allocations pour l'apprentissage et le développement.", "en": "Learning & Development Stipends.", "es": "Estipendios para aprendizaje y desarrollo.", "zh-CN": "学习与发展津贴。", "ja": "学習と能力開発のための奨学金。", "de": "Zuschüsse für Lernen und Entwicklung.", "pt-BR": "Estipêndios de Aprendizagem e Desenvolvimento.", "ru": "Стипендии на обучение и развитие." },
|
| 444 |
+
"benefit-3": { "fr": "Politique de travail flexible et opportunités à distance.", "en": "Flexible Work Policy and Remote Opportunities.", "es": "Política de trabajo flexible y oportunidades remotas.", "zh-CN": "灵活的工作政策和远程工作机会。", "ja": "柔軟な勤務制度とリモートワークの機会。", "de": "Flexible Arbeitsrichtlinien und Remote-Möglichkeiten.", "pt-BR": "Política de Trabalho Flexível e Oportunidades Remotas.", "ru": "Гибкая политика работы и удаленные возможности." },
|
| 445 |
+
"benefit-4": { "fr": "Salaire compétitif, plans de primes et options d'achat d'actions.", "en": "Competitive Salary, Bonus Plans, and Stock Options.", "es": "Salario competitivo, planes de bonificación y opciones sobre acciones.", "zh-CN": "有竞争力的薪水、奖金计划和股票期权。", "ja": "競争力のある給与、ボーナスプラン、ストックオプション。", "de": "Wettbewerbsfähiges Gehalt, Bonuspläne und Aktienoptionen.", "pt-BR": "Salário Competitivo, Planos de Bônus e Opções de Ações.", "ru": "Конкурентная зарплата, бонусные планы и опционы на акции." },
|
| 446 |
+
"benefit-5": { "fr": "Congés payés généreux et congé parental.", "en": "Generous Paid Time Off and Parental Leave.", "es": "Generoso tiempo libre pagado y licencia parental.", "zh-CN": "慷慨的带薪休假和育儿假。", "ja": "十分な有給休暇と育児休暇。", "de": "Großzügiger bezahlter Urlaub und Elternzeit.", "pt-BR": "Folga Remunerada Generosa e Licença Parental.", "ru": "Щедрый оплачиваемый отпуск и отпуск по уходу за ребенком." },
|
| 447 |
+
|
| 448 |
+
// Section 5: DEI
|
| 449 |
+
"dei-tag": { "fr": "L'Inclusion est Notre Force", "en": "Inclusion is Our Strength", "es": "La Inclusión es Nuestra Fuerza", "zh-CN": "包容是我们的力量", "ja": "インクルージョンは私たちの強み", "de": "Inklusion ist unsere Stärke", "pt-BR": "Inclusão é Nossa Força", "ru": "Инклюзивность - наша сила" },
|
| 450 |
+
"dei-title": { "fr": "Bâtir une Équipe Véritablement Mondiale", "en": "Building a Truly Global Team", "es": "Construyendo un Equipo Verdaderamente Global", "zh-CN": "打造一个真正的全球团队", "ja": "真にグローバルなチームを構築する", "de": "Aufbau eines wirklich globalen Teams", "pt-BR": "Construindo uma Equipe Verdadeiramente Global", "ru": "Создание по-настоящему глобальной команды" },
|
| 451 |
+
"dei-text-1": {
|
| 452 |
+
"fr": "Nous nous engageons à bâtir un lieu de travail diversifié où chacun se sent respecté et a la possibilité de fournir son meilleur travail. Des perspectives différentes sont essentielles pour construire une plateforme qui sert le monde entier.",
|
| 453 |
+
"en": "We are committed to building a diverse workplace where everyone feels respected and has the opportunity to contribute their best work. Different perspectives are essential to building a platform that serves the world.",
|
| 454 |
+
"es": "Estamos comprometidos a construir un lugar de trabajo diverso donde todos se sientan respetados y tengan la oportunidad de contribuir con su mejor trabajo. Las diferentes perspectivas son esenciales para construir una plataforma que sirva al mundo.",
|
| 455 |
+
"zh-CN": "我们致力于建立一个多元化的工作场所,让每个人都感到受到尊重并有机会做出最大的贡献。不同的视角对于构建服务世界的平台至关重要。",
|
| 456 |
+
"ja": "私たちは、誰もが尊重され、最高の仕事に貢献できる多様な職場を構築することに取り組んでいます。多様な視点は、世界に役立つプラットフォームを構築するために不可欠です。",
|
| 457 |
+
"de": "Wir setzen uns dafür ein, einen vielfältigen Arbeitsplatz zu schaffen, an dem sich jeder respektiert fühlt und die Möglichkeit hat, seine beste Arbeit zu leisten. Unterschiedliche Perspektiven sind unerlässlich, um eine Plattform aufzubauen, die der ganzen Welt dient.",
|
| 458 |
+
"pt-BR": "Estamos comprometidos em construir um local de trabalho diverso onde todos se sintam respeitados e tenham a oportunidade de contribuir com o seu melhor trabalho. Diferentes perspectivas são essenciais para construir uma plataforma que atenda ao mundo.",
|
| 459 |
+
"ru": "Мы стремимся создать разнообразное рабочее место, где каждый чувствует себя уважаемым и имеет возможность внести свой лучший вклад. Различные точки зрения необходимы для создания платформы, которая служит всему миру."
|
| 460 |
+
},
|
| 461 |
+
|
| 462 |
+
// Section 5.5: Investment (Nouvelle section)
|
| 463 |
+
"investment-title": { "fr": "Partenariat Stratégique & Financement d'Amorçage", "en": "Strategic Partnership & Seed Funding", "es": "Asociación Estratégica y Financiación Inicial", "zh-CN": "战略合作与种子基金", "ja": "戦略的パートナーシップとシードファンディング", "de": "Strategische Partnerschaft & Startkapital", "pt-BR": "Parceria Estratégica e Financiamento Inicial", "ru": "Стратегическое партнерство и посевное финансирование" },
|
| 464 |
+
"investment-text-1": { "fr": "GitForge est prête pour un lancement mondial. Nous recherchons des partenaires stratégiques et des investisseurs d'amorçage pour sécuriser notre infrastructure et officialiser nos opérations en France.", "en": "GitForge is ready for global launch. We seek strategic partners and seed investors to secure our infrastructure and formalize our operations in France.", "es": "GitForge está lista para el lanzamiento global. Buscamos socios estratégicos e inversores iniciales para asegurar nuestra infraestructura y formalizar nuestras operaciones en Francia.", "zh-CN": "GitForge 已准备好进行全球发布。我们正在寻找战略合作伙伴和种子投资者,以确保我们的基础设施安全并使我们在法国的运营正式化。", "ja": "GitForge はグローバルローンチの準備ができています。インフラストラクチャを確保し、フランスでの事業を正式化するために、戦略的パートナーとシード投資家を探しています。", "de": "GitForge ist bereit für den globalen Start. Wir suchen strategische Partner und Seed-Investoren, um unsere Infrastruktur zu sichern und unseren Betrieb in Frankreich zu formalisieren.", "pt-BR": "A GitForge está pronta para o lançamento global. Buscamos parceiros estratégicos e investidores anjo para garantir nossa infraestrutura e formalizar nossas operações na França.", "ru": "GitForge готова к глобальному запуску. Мы ищем стратегических партнеров и посевных инвесторов для обеспечения нашей инфраструктуры и формализации наших операций во Франции." },
|
| 465 |
+
"investment-need": { "fr": "Nos besoins immédiats : Enregistrement de l'entreprise (France), infrastructure de serveurs dédiée (Hébergement Dynamique) et acquisition du nom de domaine d'entreprise.", "en": "Our immediate needs: Company registration (France), dedicated server infrastructure (Dynamic Hosting), and corporate domain acquisition.", "es": "Nuestras necesidades inmediatas: Registro de la empresa (Francia), infraestructura de servidor dedicada (Alojamiento Dinámico) y adquisición de dominio corporativo.", "zh-CN": "我们的迫切需求:公司注册(法国)、专用服务器基础设施(动态托管)和企业域名获取。", "ja": "当社の差し迫ったニーズ:会社登録(フランス)、専用サーバーインフラストラクチャ(ダイナミックホスティング)、および企業ドメインの取得。", "de": "Unsere unmittelbaren Bedürfnisse: Unternehmensregistrierung (Frankreich), dedizierte Server-Infrastruktur (Dynamisches Hosting) und Erwerb einer Unternehmensdomäne.", "pt-BR": "Nossas necessidades imediatas: Registro da empresa (França), infraestrutura de servidor dedicada (Hospedagem Dinâmica) e aquisição de domínio corporativo.", "ru": "Наши непосредственные потребности: Регистрация компании (Франция), выделенная серверная инфраструктура (Динамический хостинг) и приобретение корпоративного домена." },
|
| 466 |
+
"investment-cta": { "fr": "Contacter l'Équipe Partenariat", "en": "Contact Partnership Team", "es": "Contactar con el Equipo de Socios", "zh-CN": "联系合作团队", "ja": "パートナーシップチームに連絡する", "de": "Kontaktieren Sie das Partnerschafts-Team", "pt-BR": "Entrar em Contato com a Equipe de Parceria", "ru": "Связаться с отделом партнерства" },
|
| 467 |
+
|
| 468 |
+
// Section 6: Values
|
| 469 |
+
"values-title": { "fr": "Nos Valeurs Fondamentales", "en": "Our Core Values", "es": "Nuestros Valores Fundamentales", "zh-CN": "我们的核心价值观", "ja": "私たちのコアバリュー", "de": "Unsere Grundwerte", "pt-BR": "Nossos Valores Fundamentais", "ru": "Наши основные ценности" },
|
| 470 |
+
"values-subtitle": { "fr": "Ces principes guident nos décisions et notre culture de développement.", "en": "These principles guide our decisions and our development culture.", "es": "Estos principios guían nuestras decisiones y nuestra cultura de desarrollo.", "zh-CN": "这些原则指导着我们的决策和开发文化。", "ja": "これらの原則は、私たちの決定と開発文化を導きます。", "de": "Diese Prinzipien leiten unsere Entscheidungen und unsere Entwicklungskultur.", "pt-BR": "Estes princípios guiam nossas decisões et nossa cultura de desenvolvimento.", "ru": "Эти принципы руководят нашими решениями и нашей культурой разработки." },
|
| 471 |
+
"value-1-title": { "fr": "Innovation", "en": "Innovation", "es": "Innovación", "zh-CN": "创新", "ja": "イノベーション", "de": "Innovation", "pt-BR": "Inovação", "ru": "Инновации" },
|
| 472 |
+
"value-1-text": { "fr": "Nous expérimentons constamment de nouvelles technologies, de l'IA au serverless, pour garder une longueur d'avance.", "en": "We constantly experiment with new technologies, from AI to serverless infrastructure, to stay ahead.", "es": "Experimentamos constantemente con nuevas tecnologías, desde IA hasta infraestructura sin servidor, para mantenernos a la vanguardia.", "zh-CN": "我们不断尝试新技术,从人工智能到无服务器基础设施,以保持领先地位。", "ja": "AIからサーバーレスインフラストラクチャまで、常に新しいテクノロジーを実験し、先行しています。", "de": "Wir experimentieren ständig mit neuen Technologien, von KI bis zur Serverless-Infrastruktur, um immer einen Schritt voraus zu sein.", "pt-BR": "Experimentamos constantemente novas tecnologias, de IA à infraestrutura sem servidor, para nos mantermos à frente.", "ru": "Мы постоянно экспериментируем с новыми технологиями, от ИИ до бессерверной инфраструктуры, чтобы оставаться впереди." },
|
| 473 |
+
"value-2-title": { "fr": "La Sécurité Avant Tout", "en": "Security First", "es": "Seguridad Primero", "zh-CN": "安全第一", "ja": "セキュリティ第一", "de": "Sicherheit zuerst", "pt-BR": "Segurança em Primeiro Lugar", "ru": "Безопасность прежде всего" },
|
| 474 |
+
"value-2-text": { "fr": "La sécurité est intégrée à tout ce que nous construisons, assurant la confiance de nos utilisateurs et clients.", "en": "Security is baked into everything we build, ensuring trust for our users and customers.", "es": "La seguridad está integrada en todo lo que construimos, garantizando la confianza de nuestros usuarios y clientes.", "zh-CN": "我们将安全性融入到我们构建的一切中,确保用户和客户的信任。", "ja": "セキュリティは、私たちが構築するすべてのものに組み込まれており、ユーザーと顧客の信頼を確保します。", "de": "Sicherheit ist in alles integriert, was wir bauen, um das Vertrauen unserer Benutzer und Kunden zu gewährleisten.", "pt-BR": "A segurança está embutida em tudo o que construímos, garantindo a confiança de nossos usuários e clientes.", "ru": "Безопасность встроена во все, что мы создаем, обеспечивая доверие наших пользователей и клиентов." },
|
| 475 |
+
"value-3-title": { "fr": "Impact Mondial", "en": "Global Impact", "es": "Impacto Global", "zh-CN": "全球影响", "ja": "グローバルな影響", "de": "Globaler Einfluss", "pt-BR": "Impacto Global", "ru": "Глобальное влияние" },
|
| 476 |
+
"value-3-text": { "fr": "Nous construisons des produits qui sont utilisés partout, favorisant une mentalité et une responsabilité mondiales.", "en": "We build products that are used everywhere, fostering a global mindset and responsibility.", "es": "Construimos productos que se utilizan en todas partes, fomentando una mentalité et responsabilité globales.", "zh-CN": "我们构建的产品被世界各地使用,培养了全球化的思维和责任感。", "ja": "世界中で使用される製品を構築し、グローバルな考え方と責任を育みます。", "de": "Wir entwickeln Produkte, die überall eingesetzt werden, und fördern so eine globale Denkweise und Verantwortung.", "pt-BR": "Construímos produtos que são usados em todos os lugares, fomentando uma mentalidade e responsabilidade global.", "ru": "Мы создаем продукты, которые используются повсюду, способствуя глобальному мышлению и ответственности." },
|
| 477 |
+
|
| 478 |
+
// Section 7: Positions
|
| 479 |
+
"positions-title": { "fr": "Postes Actuellement Ouverts", "en": "Current Openings", "es": "Vacantes Actuales", "zh-CN": "当前空缺职位", "ja": "現在の募集職種", "de": "Aktuelle Stellenangebote", "pt-BR": "Vagas Atuais", "ru": "Текущие вакансии" },
|
| 480 |
+
"job-1-title": { "fr": "Ingénieur Frontend Senior", "en": "Senior Frontend Engineer", "es": "Ingeniero Frontend Senior", "zh-CN": "高级前端工程师", "ja": "シニアフロントエンドエンジニア", "de": "Senior Frontend-Entwickler", "pt-BR": "Engenheiro Frontend Sênior", "ru": "Старший Frontend-разработчик" },
|
| 481 |
+
"job-1-location": { "fr": "À distance (Europe)", "en": "Remote (Europe)", "es": "Remoto (Europa)", "zh-CN": "远程(欧洲)", "ja": "リモート(ヨーロッパ)", "de": "Remote (Europa)", "pt-BR": "Remoto (Europa)", "ru": "Удаленно (Европа)" },
|
| 482 |
+
"job-1-desc": { "fr": "Développer et maintenir l'interface utilisateur de base de GitForge, en se concentrant sur les performances et l'expérience utilisateur.", "en": "Develop and maintain the core GitForge user interface, focusing on performance and user experience.", "es": "Desarrollar y mantener la interfaz de usuario central de GitForge, centrándose en el rendimiento y la experiencia del usuario.", "zh-CN": "开发和维护 GitForge 核心用户界面,重点关注性能和用户体验。", "ja": "GitForge のコアユーザーインターフェースを開発・保守し、パフォーマンスとユーザーエクスペリエンスに焦点を当てます。", "de": "Entwicklung und Pflege der zentralen GitForge-Benutzeroberfläche mit Fokus auf Leistung und Benutzererfahrung.", "pt-BR": "Desenvolver e manter a interface central do usuário GitForge, com foco em desempenho e experiência do usuário.", "ru": "Разработка и поддержка основного пользовательского интерфейса GitForge, с акцентом на производительность и пользовательский опыт." },
|
| 483 |
+
"job-2-title": { "fr": "Scientifique en Recherche IA/ML", "en": "AI/ML Research Scientist", "es": "Científico de Investigación IA/ML", "zh-CN": "人工智能/机器学习研究科学家", "ja": "AI/ML リサーチサイエンティスト", "de": "KI/ML Forschungs-Wissenschaftler", "pt-BR": "Cientista de Pesquisa em IA/ML", "ru": "Исследователь в области ИИ/МО" },
|
| 484 |
+
"job-2-location": { "fr": "San Francisco, CA", "en": "San Francisco, CA", "es": "San Francisco, CA", "zh-CN": "加利福尼亚州旧金山", "ja": "カリフォルニア州サンフランシスコ", "de": "San Francisco, CA", "pt-BR": "San Francisco, CA", "ru": "Сан-Франциско, Калифорния" },
|
| 485 |
+
"job-2-desc": { "fr": "Mener l'innovation pour GitForge Copilot et nos fonctionnalités de sécurité avancées.", "en": "Drive innovation for GitForge Copilot and our advanced security features.", "es": "Impulsar la innovación para GitForge Copilot y nuestras funciones de seguridad avanzadas.", "zh-CN": "推动 GitForge Copilot 和我们高级安全功能的创新。", "ja": "GitForge Copilot および当社の高度なセキュリティ機能のイノベーションを推進します。", "de": "Förderung der Innovation für GitForge Copilot und unsere erweiterten Sicherheitsfunktionen.", "pt-BR": "Impulsionar a inovação para o GitForge Copilot e nossos recursos avançados de segurança.", "ru": "Развитие инноваций для GitForge Copilot и наших продвинутых функций безопасности." },
|
| 486 |
+
"job-3-title": { "fr": "Designer Produit (UX)", "en": "Product Designer (UX)", "es": "Diseñador de Producto (UX)", "zh-CN": "产品设计师(用户体验)", "ja": "プロダクトデザイナー(UX)", "de": "Produktdesigner (UX)", "pt-BR": "Designer de Produto (UX)", "ru": "Продуктовый дизайнер (UX)" },
|
| 487 |
+
"job-3-location": { "fr": "À distance (Global)", "en": "Remote (Global)", "es": "Remoto (Global)", "zh-CN": "远程(全球)", "ja": "リモート(グローバル)", "de": "Remote (Global)", "pt-BR": "Remoto (Global)", "ru": "Удаленно (Глобально)" },
|
| 488 |
+
"job-3-desc": { "fr": "Façonner le langage de conception et les flux d'utilisateurs sur l'ensemble de la plateforme GitForge.", "en": "Shape the design language and user flows across the entire GitForge platform.", "es": "Dar forma al lenguaje de diseño y los flujos de usuario en toda la plataforma GitForge.", "zh-CN": "塑造整个 GitForge 平台的设计语言和用户流程。", "ja": "GitForge プラットフォーム全体のデザイン言語とユーザーフローを形作ります。", "de": "Gestaltung der Designsprache und Benutzerabläufe auf der gesamten GitForge-Plattform.", "pt-BR": "Moldar a linguagem de design e os fluxos de usuário em toda a plataforma GitForge.", "ru": "Формирование языка дизайна и пользовательских потоков на всей платформе GitForge." },
|
| 489 |
+
"apply-now": { "fr": "Postuler Maintenant →", "en": "Apply Now →", "es": "Aplicar Ahora →", "zh-CN": "立即申请 →", "ja": "今すぐ応募 →", "de": "Jetzt bewerben →", "pt-BR": "Candidatar-se Agora →", "ru": "Подать заявку →" },
|
| 490 |
+
"positions-none-found": { "fr": "Vous ne voyez pas de rôle pour vous ? Envoyez-nous votre CV quand même !", "en": "Don't see a role for you? Send us your CV anyway!", "es": "¿No ves un rol para ti? ¡Envíanos tu CV de todos modos!", "zh-CN": "没有适合您的职位?仍然欢迎发送您的简历!", "ja": "希望の職種が見つかりませんか?それでも履歴書を送ってください!", "de": "Sehen Sie keine passende Rolle für sich? Senden Sie uns trotzdem Ihren Lebenslauf!", "pt-BR": "Não encontrou uma vaga para você? Envie-nos seu CV mesmo assim!", "ru": "Не нашли подходящей роли? Все равно отправьте нам свое резюме!" },
|
| 491 |
+
"btn-general-application": { "fr": "Candidature Générale", "en": "General Application", "es": "Aplicación General", "zh-CN": "一般申请", "ja": "一般応募", "de": "Allgemeine Bewerbung", "pt-BR": "Candidatura Geral", "ru": "Общая заявка" },
|
| 492 |
+
|
| 493 |
+
// Section 8: Hiring Process
|
| 494 |
+
"hiring-title": { "fr": "Notre Processus de Recrutement Simple", "en": "Our Simple Hiring Process", "es": "Nuestro Sencillo Proceso de Contratación", "zh-CN": "我们的简单招聘流程", "ja": "私たちのシンプルな採用プロセス", "de": "Unser einfacher Einstellungsprozess", "pt-BR": "Nuestro Processo de Contratação Simples", "ru": "Наш простой процесс найма" },
|
| 495 |
+
"step-1-title": { "fr": "Candidature", "en": "Application", "es": "Aplicación", "zh-CN": "申请", "ja": "応募", "de": "Bewerbung", "pt-BR": "Candidatura", "ru": "Заявка" },
|
| 496 |
+
"step-1-text": { "fr": "Soumettez votre CV et lettre de motivation via notre portail.", "en": "Submit your CV and cover letter through our portal.", "es": "Envía tu CV y carta de presentación a través de nuestro portal.", "zh-CN": "通过我们的门户网站提交您的简历和求职信。", "ja": "ポータルを通じて履歴書とカバーレターを提出してください。", "de": "Senden Sie Ihren Lebenslauf und Ihr Anschreiben über unser Portal ein.", "pt-BR": "Envie seu CV e carta de apresentação através do nosso portal.", "ru": "Отправьте свое резюме и сопроводительное письмо через наш портал." },
|
| 497 |
+
"step-2-title": { "fr": "Appel de Présélection", "en": "Screening Call", "es": "Llamada de Preselección", "zh-CN": "筛选电话", "ja": "スクリーニングコール", "de": "Screening-Anruf", "pt-BR": "Chamada de Triagem", "ru": "Проверочный звонок" },
|
| 498 |
+
"step-2-text": { "fr": "Une discussion rapide avec un recruteur pour parler de votre expérience et de vos objectifs.", "en": "A quick chat with a recruiter to discuss your background and goals.", "es": "Una charla rápida con un reclutador para discutir tus antecedentes y objetivos.", "zh-CN": "与招聘人员进行快速交流,讨论您的背景和目标。", "ja": "採用担当者との簡単なチャットで、あなたの経歴と目標について話し合います。", "de": "Ein kurzes Gespräch mit einem Personalvermittler, um Ihren Hintergrund und Ihre Ziele zu besprechen.", "pt-BR": "Um bate-papo rápido com um recrutador para discutir sua experiência e objetivos.", "ru": "Быстрый разговор с рекрутером, чтобы обсудить ваш опыт и цели." },
|
| 499 |
+
"step-3-title": { "fr": "Entretiens Techniques", "en": "Technical Interviews", "es": "Entrevistas Técnicas", "zh-CN": "技术面试", "ja": "技術面接", "de": "Technische Interviews", "pt-BR": "Entrevistas Técnicas", "ru": "Технические собеседования" },
|
| 500 |
+
"step-3-text": { "fr": "Discussions approfondies et défis pratiques avec l'équipe d'embauche.", "en": "In-depth discussions and practical challenges with the hiring team.", "es": "Discusiones en profundidad y desafíos prácticos con el equipo de contratación.", "zh-CN": "与招聘团队进行深入讨论和实际挑战。", "ja": "採用チームとの詳細な議論と実践的な課題。", "de": "Ausführliche Gespräche und praktische Herausforderungen mit dem Einstellungsteam.", "pt-BR": "Discussões aprofundadas e desafios práticos com a equipe de contratação.", "ru": "Углубленные обсуждения и практические задания с командой найма." },
|
| 501 |
+
"step-4-title": { "fr": "Offre & Intégration", "en": "Offer & Onboarding", "es": "Oferta e Incorporación", "zh-CN": "录取与入职", "ja": "オファーとオンボーディング", "de": "Angebot & Einarbeitung", "pt-BR": "Oferta e Integração", "ru": "Предложение и адаптация" },
|
| 502 |
+
"step-4-text": { "fr": "Bienvenue chez GitForge ! Construisons ensemble l'avenir du logiciel.", "en": "Welcome to GitForge! Let's build the future of software together.", "es": "¡Bienvenido a GitForge! Construyamos juntos el futuro del software.", "zh-CN": "欢迎加入 GitForge!让我们一起构建软件的未来。", "ja": "GitForge へようこそ!一緒にソフトウェアの未来を築きましょう。", "de": "Willkommen bei GitForge! Lassen Sie uns gemeinsam die Zukunft der Software gestalten.", "pt-BR": "Bem-vindo à GitForge! Vamos construir o futuro do software juntos.", "ru": "Добро пожаловать в GitForge! Давайте вместе строить будущее программного обеспечения." },
|
| 503 |
+
|
| 504 |
+
// Footer Links
|
| 505 |
+
"footer-tagline": { "fr": "La plateforme DevOps unifiée, optimisée par l'IA.", "en": "The unified DevOps platform, powered by AI.", "es": "La plataforma DevOps unificada, impulsada por IA.", "zh-CN": "统一的 DevOps 平台,由 AI 提供支持。", "ja": "AIを搭載した統合DevOpsプラットフォーム。", "de": "Die vereinheitlichte DevOps-Plattform, unterstützt durch KI.", "pt-BR": "A plataforma DevOps unificada, impulsionada por IA.", "ru": "Унифицированная платформа DevOps, работающая на базе ИИ." },
|
| 506 |
+
"footer-product": { "fr": "Produit", "en": "Product", "es": "Producto", "zh-CN": "产品", "ja": "製品", "de": "Produkt", "pt-BR": "Produto", "ru": "Продукт" },
|
| 507 |
+
"footer-platform": { "fr": "Plateforme", "en": "Platform", "es": "Plataforma", "zh-CN": "平台", "ja": "プラットフォーム", "de": "Plattform", "pt-BR": "Plataforma", "ru": "Платформа" },
|
| 508 |
+
"footer-security": { "fr": "Sécurité", "en": "Security", "es": "Seguridad", "zh-CN": "安全", "ja": "セキュリティ", "de": "Sicherheit", "pt-BR": "Segurança", "ru": "Безопасность" },
|
| 509 |
+
"footer-enterprise": { "fr": "Entreprise", "en": "Enterprise", "es": "Empresas", "zh-CN": "企业", "ja": "エンタープライズ", "de": "Enterprise", "pt-BR": "Empresarial", "ru": "Для бизнеса" },
|
| 510 |
+
"footer-pricing": { "fr": "Tarifs", "en": "Pricing", "es": "Precios", "zh-CN": "定价", "ja": "価格", "de": "Preise", "pt-BR": "Preços", "ru": "Цены" },
|
| 511 |
+
"footer-company": { "fr": "Société", "en": "Company", "es": "Compañía", "zh-CN": "公司", "ja": "企業情報", "de": "Unternehmen", "pt-BR": "Empresa", "ru": "Компания" },
|
| 512 |
+
"footer-about": { "fr": "À Propos", "en": "About us", "es": "Acerca de nosotros", "zh-CN": "关于我们", "ja": "私たちについて", "de": "Über uns", "pt-BR": "Sobre nós", "ru": "О нас" },
|
| 513 |
+
"footer-careers": { "fr": "Carrières", "en": "Careers", "es": "Carreras", "zh-CN": "职业", "ja": "採用情報", "de": "Karriere", "pt-BR": "Carreiras", "ru": "Вакансии" },
|
| 514 |
+
"footer-support": { "fr": "Support", "en": "Support", "es": "Soporte", "zh-CN": "支持", "ja": "サポート", "de": "Support", "pt-BR": "Suporte", "ru": "Поддержка" },
|
| 515 |
+
"footer-faq": { "fr": "FAQ", "en": "FAQ", "es": "FAQ", "zh-CN": "常见问题", "ja": "よくある質問", "de": "FAQ", "pt-BR": "FAQ", "ru": "FAQ" },
|
| 516 |
+
"footer-resources": { "fr": "Ressources", "en": "Resources", "es": "Recursos", "zh-CN": "资源", "ja": "リソース", "de": "Ressourcen", "pt-BR": "Recursos", "ru": "Ресурсы" },
|
| 517 |
+
"footer-contact-email": { "fr": "Contact Email", "en": "Contact Email", "es": "Correo de Contacto", "zh-CN": "联系邮箱", "ja": "問い合わせメール", "de": "Kontakt-E-Mail", "pt-BR": "E-mail de Contato", "ru": "Контактный Email" },
|
| 518 |
+
"footer-status": { "fr": "Statut du Service", "en": "Service Status", "es": "Estado del Servicio", "zh-CN": "服务状态", "ja": "サービス状況", "de": "Service-Status", "pt-BR": "Status do Serviço", "ru": "Статус сервиса" },
|
| 519 |
+
"footer-blog": { "fr": "Blog Tech", "en": "Tech Blog", "es": "Blog de Tecnología", "zh-CN": "技术博客", "ja": "技術ブログ", "de": "Tech-Blog", "pt-BR": "Blog de Tecnologia", "ru": "Технический блог" },
|
| 520 |
+
"footer-copilot": { "fr": "Copilot", "en": "Copilot", "es": "Copilot", "zh-CN": "Copilot", "ja": "Copilot", "de": "Copilot", "pt-BR": "Copilot", "ru": "Copilot" },
|
| 521 |
+
"footer-copyright": { "fr": "© 2025 GitForge. Tous droits réservés. Propulsé par la <a href=\"/\" class=\"hover:text-blue-600-var hover:underline\">Plateforme GitForge</a>.", "en": "© 2025 GitForge. All rights reserved. Powered by the <a href=\"/\" class=\"hover:text-blue-600-var hover:underline\">GitForge Platform</a>.", "es": "© 2025 GitForge. Todos los derechos reservados. Impulsado por la <a href=\"/\" class=\"hover:text-blue-600-var hover:underline\">Plataforma GitForge</a>.", "zh-CN": "© 2025 GitForge. 保留所有权利。由 <a href=\"/\" class=\"hover:text-blue-600-var hover:underline\">GitForge 平台</a>提供支持。", "ja": "© 2025 GitForge. 全ての権利を保有します。<a href=\"/\" class=\"hover:text-blue-600-var hover:underline\">GitForge プラットフォーム</a>によって提供されています。", "de": "© 2025 GitForge. Alle Rechte vorbehalten. Unterstützt durch die <a href=\"/\" class=\"hover:text-blue-600-var hover:underline\">GitForge Plattform</a>.", "pt-BR": "© 2025 GitForge. Todos os direitos reservados. Alimentado pela <a href=\"/\" class=\"hover:text-blue-600-var hover:underline\">Plataforma GitForge</a>.", "ru": "© 2025 GitForge. Все права защищены. Работает на базе <a href=\"/\" class=\"hover:text-blue-600-var hover:underline\">Платформы GitForge</a>." }
|
| 522 |
+
};
|
| 523 |
+
|
| 524 |
+
const flags = {
|
| 525 |
+
"en": "🇺🇸",
|
| 526 |
+
"fr": "🇫🇷",
|
| 527 |
+
"es": "🇪🇸",
|
| 528 |
+
"zh-CN": "🇨🇳",
|
| 529 |
+
"ja": "🇯🇵",
|
| 530 |
+
"de": "🇩🇪",
|
| 531 |
+
"pt-BR": "🇧🇷",
|
| 532 |
+
"ru": "🇷🇺"
|
| 533 |
+
};
|
| 534 |
+
|
| 535 |
+
const langNames = {
|
| 536 |
+
"en": "English",
|
| 537 |
+
"fr": "Français",
|
| 538 |
+
"es": "Español",
|
| 539 |
+
"zh-CN": "简体中文 (Simplified Chinese)",
|
| 540 |
+
"ja": "日本語 (Japanese)",
|
| 541 |
+
"de": "Deutsch (German)",
|
| 542 |
+
"pt-BR": "Português (Brasil)",
|
| 543 |
+
"ru": "Русский (Russian)"
|
| 544 |
+
};
|
| 545 |
+
|
| 546 |
+
|
| 547 |
+
function applyTranslations(lang) {
|
| 548 |
+
currentLang = lang;
|
| 549 |
+
// 1. Update all data-translate elements
|
| 550 |
+
document.querySelectorAll('[data-translate]').forEach(element => {
|
| 551 |
+
const key = element.getAttribute('data-translate');
|
| 552 |
+
if (translations[key] && translations[key][lang]) {
|
| 553 |
+
// Use innerHTML for text that contains markdown or nested tags (like in footer-copyright and culture points)
|
| 554 |
+
if (key === 'footer-copyright' || key.startsWith('culture-point-')) {
|
| 555 |
+
let text = translations[key][lang];
|
| 556 |
+
// Replace simple markdown bold (**) with strong tags for culture points
|
| 557 |
+
if (key.startsWith('culture-point-')) {
|
| 558 |
+
text = text.replace(/\*\*(.*?)\*\*/g, '<strong>$1</strong>');
|
| 559 |
+
}
|
| 560 |
+
element.innerHTML = text;
|
| 561 |
+
} else {
|
| 562 |
+
element.textContent = translations[key][lang];
|
| 563 |
+
}
|
| 564 |
+
} else if (translations[key] && translations[key]['en']) {
|
| 565 |
+
// Fallback to English if the specific translation is missing (though all are added now)
|
| 566 |
+
let text = translations[key]['en'];
|
| 567 |
+
if (key === 'footer-copyright' || key.startsWith('culture-point-')) {
|
| 568 |
+
text = text.replace(/\*\*(.*?)\*\*/g, '<strong>$1</strong>');
|
| 569 |
+
element.innerHTML = text;
|
| 570 |
+
} else {
|
| 571 |
+
element.textContent = text;
|
| 572 |
+
}
|
| 573 |
+
}
|
| 574 |
+
});
|
| 575 |
+
|
| 576 |
+
// 2. Update page title, HTML lang attribute, and current language display
|
| 577 |
+
document.documentElement.lang = lang;
|
| 578 |
+
document.getElementById('current-flag').textContent = flags[lang] || '🌐';
|
| 579 |
+
document.getElementById('current-lang-name').textContent = langNames[lang] || 'English';
|
| 580 |
+
document.getElementById('current-lang-name').setAttribute('data-lang-code', lang);
|
| 581 |
+
|
| 582 |
+
// 3. Update active link in nav
|
| 583 |
+
document.querySelectorAll('nav a').forEach(link => {
|
| 584 |
+
link.classList.remove('text-blue-600-var');
|
| 585 |
+
});
|
| 586 |
+
const careersLink = document.querySelector('a[href="/mindus/nexus/careers"]');
|
| 587 |
+
if (careersLink) {
|
| 588 |
+
careersLink.classList.add('text-blue-600-var');
|
| 589 |
+
}
|
| 590 |
+
}
|
| 591 |
+
|
| 592 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 593 |
+
// Language selector toggle logic
|
| 594 |
+
const langButton = document.getElementById('lang-menu-button');
|
| 595 |
+
const langDropdown = document.getElementById('lang-menu-dropdown');
|
| 596 |
+
|
| 597 |
+
langButton.addEventListener('click', (e) => {
|
| 598 |
+
e.stopPropagation();
|
| 599 |
+
// Toggle display
|
| 600 |
+
const isVisible = langDropdown.style.display === 'block';
|
| 601 |
+
langDropdown.style.display = isVisible ? 'none' : 'block';
|
| 602 |
+
});
|
| 603 |
+
|
| 604 |
+
document.addEventListener('click', (e) => {
|
| 605 |
+
if (!langButton.contains(e.target) && !langDropdown.contains(e.target)) {
|
| 606 |
+
langDropdown.style.display = 'none';
|
| 607 |
+
}
|
| 608 |
+
});
|
| 609 |
+
|
| 610 |
+
// Language selection logic
|
| 611 |
+
document.querySelectorAll('.lang-option').forEach(option => {
|
| 612 |
+
option.addEventListener('click', (e) => {
|
| 613 |
+
e.preventDefault();
|
| 614 |
+
const newLang = option.getAttribute('data-lang');
|
| 615 |
+
applyTranslations(newLang);
|
| 616 |
+
langDropdown.style.display = 'none'; // Close dropdown after selection
|
| 617 |
+
});
|
| 618 |
+
});
|
| 619 |
+
|
| 620 |
+
// Initial load: Apply English translations by default
|
| 621 |
+
applyTranslations(currentLang);
|
| 622 |
+
});
|
| 623 |
+
</script>
|
| 624 |
+
</body>
|
| 625 |
+
</html>
|
a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/chat.html
ADDED
|
@@ -0,0 +1,1799 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="fr">
|
| 3 |
+
|
| 4 |
+
<head>
|
| 5 |
+
<meta charset="UTF-8" />
|
| 6 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
| 7 |
+
<title>ErnestMind 2.5 - Chat IA</title>
|
| 8 |
+
<link rel="icon" href="https://i.imgur.com/7Gn3toV.png" type="image/png">
|
| 9 |
+
<link rel="stylesheet"
|
| 10 |
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" />
|
| 11 |
+
|
| 12 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark.min.css">
|
| 13 |
+
|
| 14 |
+
<style>
|
| 15 |
+
/* Import de la police Poppins */
|
| 16 |
+
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;400;500;600&display=swap");
|
| 17 |
+
|
| 18 |
+
* {
|
| 19 |
+
font-family: "Poppins", sans-serif;
|
| 20 |
+
margin: 0;
|
| 21 |
+
box-sizing: border-box;
|
| 22 |
+
padding: 0;
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
/* Variables de thème (Mode Sombre par défaut) */
|
| 26 |
+
:root {
|
| 27 |
+
--text-color: #E3E3E3;
|
| 28 |
+
--subheading-color: #828282;
|
| 29 |
+
--placeholder-color: #A6A6A6;
|
| 30 |
+
--primary-color: #242424;
|
| 31 |
+
--secondary-color: #383838;
|
| 32 |
+
--secondary-hover-color: #444;
|
| 33 |
+
--sidebar-bg: #1A1A1A; /* Couleur spécifique pour la barre latérale */
|
| 34 |
+
--sidebar-hover-bg: #2C2C2C;
|
| 35 |
+
--max-sidebar-width: 300px;
|
| 36 |
+
--min-sidebar-width: 80px;
|
| 37 |
+
/* COULEUR MODIFIÉE : Les messages utilisateur et IA partagent maintenant la même couleur de fond */
|
| 38 |
+
--user-message-bg: var(--secondary-color);
|
| 39 |
+
--send-button-text: #EAEAEA;
|
| 40 |
+
/* COULEUR POUR LA SCROLLBAR EN MODE SOMBRE (Gris doux) */
|
| 41 |
+
--scrollbar-thumb-color: #555555;
|
| 42 |
+
}
|
| 43 |
+
|
| 44 |
+
/* Thème Clair */
|
| 45 |
+
.light_mode {
|
| 46 |
+
--text-color: #222;
|
| 47 |
+
--subheading-color: #666;
|
| 48 |
+
--placeholder-color: #999;
|
| 49 |
+
--primary-color: #F7F7F7;
|
| 50 |
+
--secondary-color: #FFF;
|
| 51 |
+
--secondary-hover-color: #EFEFEF;
|
| 52 |
+
--sidebar-bg: #EAEAEA;
|
| 53 |
+
--sidebar-hover-bg: #DDD;
|
| 54 |
+
/* COULEUR MODIFIÉE : Les messages utilisateur et IA partagent la couleur du thème clair (white) */
|
| 55 |
+
--user-message-bg: var(--secondary-color);
|
| 56 |
+
--send-button-text: #444;
|
| 57 |
+
/* COULEUR POUR LA SCROLLBAR EN MODE CLAIR (Gris très clair) */
|
| 58 |
+
--scrollbar-thumb-color: #BBBBBB;
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
/* --- LAYOUT GLOBAL --- */
|
| 62 |
+
.main-container {
|
| 63 |
+
display: flex;
|
| 64 |
+
min-height: 100vh;
|
| 65 |
+
background: var(--primary-color);
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
/* --- BARRE LATÉRALE (Sidebar) --- */
|
| 69 |
+
.sidebar {
|
| 70 |
+
width: var(--min-sidebar-width);
|
| 71 |
+
flex-shrink: 0;
|
| 72 |
+
height: 100vh;
|
| 73 |
+
background: var(--sidebar-bg);
|
| 74 |
+
color: var(--text-color);
|
| 75 |
+
padding: 1rem 0.5rem;
|
| 76 |
+
transition: width 0.3s ease;
|
| 77 |
+
display: flex;
|
| 78 |
+
flex-direction: column;
|
| 79 |
+
justify-content: space-between;
|
| 80 |
+
overflow-y: auto;
|
| 81 |
+
position: fixed;
|
| 82 |
+
left: 0;
|
| 83 |
+
top: 0;
|
| 84 |
+
z-index: 100;
|
| 85 |
+
}
|
| 86 |
+
|
| 87 |
+
.sidebar.open {
|
| 88 |
+
width: var(--max-sidebar-width);
|
| 89 |
+
box-shadow: 4px 0 10px rgba(0, 0, 0, 0.2);
|
| 90 |
+
}
|
| 91 |
+
|
| 92 |
+
.sidebar .logo {
|
| 93 |
+
display: flex;
|
| 94 |
+
align-items: center;
|
| 95 |
+
padding: 0.5rem 0.5rem 1.5rem;
|
| 96 |
+
white-space: nowrap;
|
| 97 |
+
overflow: hidden;
|
| 98 |
+
}
|
| 99 |
+
|
| 100 |
+
.sidebar .logo .icon {
|
| 101 |
+
font-size: 2rem;
|
| 102 |
+
margin-right: 0.5rem;
|
| 103 |
+
color: #007bff; /* Couleur de l'accentuation */
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
.sidebar .logo .title {
|
| 107 |
+
font-weight: 600;
|
| 108 |
+
font-size: 1.2rem;
|
| 109 |
+
transition: opacity 0.3s ease;
|
| 110 |
+
opacity: 0;
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
.sidebar.open .logo .title {
|
| 114 |
+
opacity: 1;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
/* Les éléments de menu (li) */
|
| 118 |
+
.sidebar ul li {
|
| 119 |
+
list-style: none;
|
| 120 |
+
display: flex;
|
| 121 |
+
align-items: center;
|
| 122 |
+
padding: 0.75rem 0.5rem;
|
| 123 |
+
margin: 0.5rem 0;
|
| 124 |
+
cursor: pointer;
|
| 125 |
+
border-radius: 8px;
|
| 126 |
+
white-space: nowrap;
|
| 127 |
+
overflow: hidden;
|
| 128 |
+
transition: background 0.2s;
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
.sidebar ul li:hover {
|
| 132 |
+
background: var(--sidebar-hover-bg);
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
.sidebar ul li .icon {
|
| 136 |
+
font-size: 1.5rem;
|
| 137 |
+
margin-right: 1.5rem;
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
/* 3. MASQUER/AFFICHER LE TEXTE des éléments de menu (sauf Menu/Thème) */
|
| 141 |
+
.sidebar ul li .text {
|
| 142 |
+
font-weight: 400;
|
| 143 |
+
font-size: 1rem;
|
| 144 |
+
transition: opacity 0.3s ease;
|
| 145 |
+
opacity: 0;
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
.sidebar.open ul li .text {
|
| 149 |
+
opacity: 1;
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
/* Ajustement pour les boutons TOUJOURS VISIBLES, même en sidebar fermée */
|
| 153 |
+
/* NOTE : Ceci annule l'effet pour ces éléments spécifiques */
|
| 154 |
+
#sidebar-toggle-btn .text,
|
| 155 |
+
#toggle-theme-btn .text {
|
| 156 |
+
opacity: 0; /* Par défaut masqué comme les autres */
|
| 157 |
+
transition: opacity 0.3s ease;
|
| 158 |
+
}
|
| 159 |
+
/* Rendre visibles lorsque la sidebar est ouverte */
|
| 160 |
+
.sidebar.open #sidebar-toggle-btn .text,
|
| 161 |
+
.sidebar.open #toggle-theme-btn .text {
|
| 162 |
+
opacity: 1;
|
| 163 |
+
}
|
| 164 |
+
|
| 165 |
+
|
| 166 |
+
/* --- EN-TÊTE DU CHAT (Positionnement mis à jour) --- */
|
| 167 |
+
.chat-header {
|
| 168 |
+
/* SUPPRIMÉ: chat-header est maintenant utilisé uniquement pour l'alignement à droite
|
| 169 |
+
des boutons 'Plus' et 'Profil' */
|
| 170 |
+
width: 100%;
|
| 171 |
+
max-width: 900px;
|
| 172 |
+
margin: 0 auto;
|
| 173 |
+
display: flex;
|
| 174 |
+
justify-content: flex-end; /* Alignement à droite */
|
| 175 |
+
align-items: center;
|
| 176 |
+
padding: 1rem 1rem 1rem 0;
|
| 177 |
+
color: var(--text-color);
|
| 178 |
+
position: sticky;
|
| 179 |
+
top: 0;
|
| 180 |
+
background: var(--primary-color);
|
| 181 |
+
z-index: 50;
|
| 182 |
+
|
| 183 |
+
/* AJOUT: Espace pour le titre principal */
|
| 184 |
+
min-height: 50px;
|
| 185 |
+
}
|
| 186 |
+
|
| 187 |
+
/* Bouton/Icône de Connexion (Profil) */
|
| 188 |
+
#login-button {
|
| 189 |
+
background: var(--secondary-color);
|
| 190 |
+
width: 40px;
|
| 191 |
+
height: 40px;
|
| 192 |
+
border-radius: 50%;
|
| 193 |
+
display: flex;
|
| 194 |
+
align-items: center;
|
| 195 |
+
justify-content: center;
|
| 196 |
+
cursor: pointer;
|
| 197 |
+
transition: background 0.2s;
|
| 198 |
+
margin-right: 0;
|
| 199 |
+
}
|
| 200 |
+
|
| 201 |
+
#login-button:hover {
|
| 202 |
+
background: var(--secondary-hover-color);
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
#login-button .icon {
|
| 206 |
+
font-size: 1.5rem;
|
| 207 |
+
color: var(--text-color);
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
/* Nouveau Bouton "ErnestMind Plus" */
|
| 211 |
+
#ernest-plus-button {
|
| 212 |
+
background: var(--secondary-color);
|
| 213 |
+
color: var(--text-color);
|
| 214 |
+
border: none;
|
| 215 |
+
border-radius: 25px;
|
| 216 |
+
padding: 0.5rem 1rem;
|
| 217 |
+
font-size: 1rem;
|
| 218 |
+
font-weight: 500;
|
| 219 |
+
cursor: pointer;
|
| 220 |
+
transition: background 0.2s;
|
| 221 |
+
display: flex;
|
| 222 |
+
align-items: center;
|
| 223 |
+
margin-right: 0.75rem; /* Espace entre Plus et Profil */
|
| 224 |
+
}
|
| 225 |
+
|
| 226 |
+
#ernest-plus-button:hover {
|
| 227 |
+
background: var(--secondary-hover-color);
|
| 228 |
+
}
|
| 229 |
+
|
| 230 |
+
/* Style pour le logo Ernest Plus */
|
| 231 |
+
.plus-logo {
|
| 232 |
+
width: 20px;
|
| 233 |
+
height: 20px;
|
| 234 |
+
margin-right: 0.5rem;
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
|
| 238 |
+
/* --- NOUVEAU: Bouton ErnestMind 2.5 (Brand Toggle) --- */
|
| 239 |
+
.brand-toggle-btn {
|
| 240 |
+
position: fixed;
|
| 241 |
+
top: 1rem;
|
| 242 |
+
left: calc(var(--min-sidebar-width) + 1rem); /* Décalé de la sidebar fermée */
|
| 243 |
+
z-index: 90;
|
| 244 |
+
/* Styles du bouton */
|
| 245 |
+
background: var(--secondary-color); /* Gris foncé demandé */
|
| 246 |
+
color: var(--text-color);
|
| 247 |
+
border: none;
|
| 248 |
+
border-radius: 25px;
|
| 249 |
+
padding: 0.5rem 1rem;
|
| 250 |
+
font-size: 1rem;
|
| 251 |
+
font-weight: 500;
|
| 252 |
+
cursor: pointer;
|
| 253 |
+
transition: background 0.2s, opacity 0.3s;
|
| 254 |
+
}
|
| 255 |
+
|
| 256 |
+
.brand-toggle-btn:hover {
|
| 257 |
+
background: var(--secondary-hover-color);
|
| 258 |
+
}
|
| 259 |
+
|
| 260 |
+
/* Cacher le bouton quand la sidebar est ouverte */
|
| 261 |
+
.sidebar.open + .brand-toggle-btn {
|
| 262 |
+
opacity: 0;
|
| 263 |
+
pointer-events: none; /* Rendre in-clicable */
|
| 264 |
+
}
|
| 265 |
+
|
| 266 |
+
|
| 267 |
+
/* --- ZONE DE CHAT (Contenu principal) --- */
|
| 268 |
+
.chat-wrapper {
|
| 269 |
+
flex-grow: 1;
|
| 270 |
+
display: flex;
|
| 271 |
+
flex-direction: column;
|
| 272 |
+
padding-left: var(--min-sidebar-width);
|
| 273 |
+
transition: padding-left 0s;
|
| 274 |
+
padding-bottom: 2rem;
|
| 275 |
+
}
|
| 276 |
+
|
| 277 |
+
/* Messages (scrollable area) */
|
| 278 |
+
.chat-list {
|
| 279 |
+
flex-grow: 1;
|
| 280 |
+
padding: 0 2rem 1rem;
|
| 281 |
+
overflow-y: auto;
|
| 282 |
+
max-width: 900px;
|
| 283 |
+
width: 100%;
|
| 284 |
+
margin: 0 auto;
|
| 285 |
+
padding-bottom: 25px;
|
| 286 |
+
transition: padding-bottom 0.3s ease;
|
| 287 |
+
|
| 288 |
+
/* AJOUT CSS : Masquer la barre de défilement par défaut */
|
| 289 |
+
scrollbar-width: none; /* Firefox */
|
| 290 |
+
}
|
| 291 |
+
|
| 292 |
+
/* AJOUT CSS : Masquer la barre de défilement par défaut (Chrome/Safari) */
|
| 293 |
+
.chat-list::-webkit-scrollbar {
|
| 294 |
+
width: 8px; /* Taille pour permettre le survol */
|
| 295 |
+
background: transparent; /* Fond transparent par défaut */
|
| 296 |
+
}
|
| 297 |
+
|
| 298 |
+
/* AJOUT CSS : Afficher le pouce de la scrollbar au survol de .chat-list */
|
| 299 |
+
.chat-list:hover::-webkit-scrollbar-thumb {
|
| 300 |
+
background-color: var(--scrollbar-thumb-color); /* Couleur du pouce (gris) */
|
| 301 |
+
border-radius: 10px;
|
| 302 |
+
}
|
| 303 |
+
|
| 304 |
+
/* AJOUT CSS : Masquer le pouce de la scrollbar par défaut */
|
| 305 |
+
.chat-list::-webkit-scrollbar-thumb {
|
| 306 |
+
background-color: transparent; /* Invisible par défaut */
|
| 307 |
+
}
|
| 308 |
+
|
| 309 |
+
|
| 310 |
+
/* NOUVELLE CLASSE POUR L'ESPACEMENT DU CHAT LORSQUE LA ZONE DE SAISIE EST ANCRÉE */
|
| 311 |
+
.chat-list.has-docked-area {
|
| 312 |
+
/* Augmente le padding-bottom pour compenser la hauteur de .typing-area.docked */
|
| 313 |
+
padding-bottom: 150px;
|
| 314 |
+
}
|
| 315 |
+
|
| 316 |
+
/* Style pour le message initial de bienvenue */
|
| 317 |
+
.initial-welcome {
|
| 318 |
+
display: flex;
|
| 319 |
+
flex-direction: column;
|
| 320 |
+
align-items: flex-start; /* MODIFIÉ : Aligné à gauche */
|
| 321 |
+
justify-content: flex-start; /* MODIFIÉ : Aligné en haut */
|
| 322 |
+
height: 100%;
|
| 323 |
+
text-align: left; /* MODIFIÉ : Aligné à gauche */
|
| 324 |
+
color: var(--text-color);
|
| 325 |
+
padding-top: 5vh; /* Ajustement du padding */
|
| 326 |
+
padding-left: 0.5rem; /* Ajustement pour le chat-list padding */
|
| 327 |
+
}
|
| 328 |
+
|
| 329 |
+
.initial-welcome .chat-title {
|
| 330 |
+
font-size: 3rem;
|
| 331 |
+
font-weight: 600;
|
| 332 |
+
color: var(--text-color);
|
| 333 |
+
margin-bottom: 0; /* SUPPRIMÉ: Le sous-texte a été retiré */
|
| 334 |
+
}
|
| 335 |
+
|
| 336 |
+
.initial-welcome p {
|
| 337 |
+
/* SUPPRIMÉ: Ce sélecteur n'est plus pertinent car le paragraphe a été retiré */
|
| 338 |
+
display: none;
|
| 339 |
+
}
|
| 340 |
+
|
| 341 |
+
/* Style pour un message */
|
| 342 |
+
.chat-message {
|
| 343 |
+
display: flex;
|
| 344 |
+
align-items: flex-start;
|
| 345 |
+
margin-bottom: 2rem;
|
| 346 |
+
gap: 1rem;
|
| 347 |
+
padding: 0.5rem;
|
| 348 |
+
border-radius: 12px;
|
| 349 |
+
}
|
| 350 |
+
|
| 351 |
+
/* 3. Messages Utilisateur (Couleur de fond uniforme avec l'IA) */
|
| 352 |
+
.chat-message.user {
|
| 353 |
+
justify-content: flex-end;
|
| 354 |
+
background: var(--user-message-bg); /* Maintenant utilise --secondary-color */
|
| 355 |
+
max-width: fit-content;
|
| 356 |
+
margin-left: auto;
|
| 357 |
+
padding: 1rem;
|
| 358 |
+
display: block;
|
| 359 |
+
}
|
| 360 |
+
|
| 361 |
+
/* Contenu du message utilisateur */
|
| 362 |
+
.chat-message.user .text-content {
|
| 363 |
+
color: var(--text-color); /* Le texte prend la couleur du thème (white/dark-gray) */
|
| 364 |
+
text-align: left;
|
| 365 |
+
word-wrap: break-word;
|
| 366 |
+
max-width: 50ch;
|
| 367 |
+
min-width: 0;
|
| 368 |
+
width: fit-content;
|
| 369 |
+
}
|
| 370 |
+
|
| 371 |
+
/* Avatar utilisateur masqué */
|
| 372 |
+
.chat-message.user .avatar {
|
| 373 |
+
display: none;
|
| 374 |
+
}
|
| 375 |
+
|
| 376 |
+
|
| 377 |
+
/* Messages IA (Couleur: Supprimée pour un look simple) */
|
| 378 |
+
.chat-message.ai {
|
| 379 |
+
background: transparent; /* MODIFIÉ : Supprime le fond coloré */
|
| 380 |
+
padding: 1rem 0.5rem 1rem 0; /* Ajustement de l'espacement pour le look épuré */
|
| 381 |
+
}
|
| 382 |
+
|
| 383 |
+
.chat-message .avatar {
|
| 384 |
+
font-size: 1.8rem;
|
| 385 |
+
width: 40px;
|
| 386 |
+
height: 40px;
|
| 387 |
+
border-radius: 50%;
|
| 388 |
+
display: flex;
|
| 389 |
+
align-items: center;
|
| 390 |
+
justify-content: center;
|
| 391 |
+
color: white;
|
| 392 |
+
flex-shrink: 0;
|
| 393 |
+
}
|
| 394 |
+
|
| 395 |
+
.chat-message.user .avatar {
|
| 396 |
+
background: #007bff;
|
| 397 |
+
}
|
| 398 |
+
|
| 399 |
+
.chat-message.ai .avatar {
|
| 400 |
+
background: #2441c3ff;
|
| 401 |
+
}
|
| 402 |
+
|
| 403 |
+
.chat-message.ai .text-content {
|
| 404 |
+
color: var(--text-color);
|
| 405 |
+
line-height: 1.6;
|
| 406 |
+
flex-grow: 1;
|
| 407 |
+
overflow-x: auto;
|
| 408 |
+
}
|
| 409 |
+
|
| 410 |
+
/* Chargement (Loading dots) */
|
| 411 |
+
.typing-animation {
|
| 412 |
+
display: flex;
|
| 413 |
+
align-items: center;
|
| 414 |
+
font-size: 0.9rem;
|
| 415 |
+
color: var(--subheading-color);
|
| 416 |
+
}
|
| 417 |
+
|
| 418 |
+
/* NOUVEAU: Animation de pensée type Gemini */
|
| 419 |
+
.thought-animation {
|
| 420 |
+
width: 15px;
|
| 421 |
+
height: 15px;
|
| 422 |
+
border: 3px solid #007bff; /* Couleur bleue */
|
| 423 |
+
border-top-color: transparent;
|
| 424 |
+
border-radius: 50%;
|
| 425 |
+
animation: spin 1s linear infinite;
|
| 426 |
+
margin-right: 0.5rem;
|
| 427 |
+
}
|
| 428 |
+
|
| 429 |
+
@keyframes spin {
|
| 430 |
+
0% { transform: rotate(0deg); }
|
| 431 |
+
100% { transform: rotate(360deg); }
|
| 432 |
+
}
|
| 433 |
+
|
| 434 |
+
|
| 435 |
+
/* --- STYLES MARKDOWN pour le contenu généré par l'IA --- */
|
| 436 |
+
|
| 437 |
+
.chat-message.ai .text-content h1,
|
| 438 |
+
.chat-message.ai .text-content h2 {
|
| 439 |
+
margin: 1.5rem 0 0.5rem;
|
| 440 |
+
font-weight: 600;
|
| 441 |
+
}
|
| 442 |
+
|
| 443 |
+
.chat-message.ai .text-content p {
|
| 444 |
+
margin-bottom: 1rem;
|
| 445 |
+
}
|
| 446 |
+
|
| 447 |
+
.chat-message.ai .text-content ul,
|
| 448 |
+
.chat-message.ai .text-content ol {
|
| 449 |
+
margin: 0.5rem 0 1rem 1.5rem;
|
| 450 |
+
padding: 0;
|
| 451 |
+
}
|
| 452 |
+
|
| 453 |
+
.chat-message.ai .text-content li {
|
| 454 |
+
margin-bottom: 0.5rem;
|
| 455 |
+
}
|
| 456 |
+
|
| 457 |
+
/* Style pour les blocs de code (triple backticks) */
|
| 458 |
+
|
| 459 |
+
/* --- NOUVEAU: Styles pour la Carte de Code et le Bouton Copier --- */
|
| 460 |
+
|
| 461 |
+
/* 1. Conteneur Relatif pour positionner le bouton de copie */
|
| 462 |
+
.chat-message.ai .code-container {
|
| 463 |
+
position: relative; /* Positionnement du bouton de copie à l'intérieur */
|
| 464 |
+
margin: 1rem 0; /* Garde la marge verticale */
|
| 465 |
+
}
|
| 466 |
+
|
| 467 |
+
/* 2. Style de la balise PRE (la carte elle-même) */
|
| 468 |
+
.chat-message.ai .text-content pre {
|
| 469 |
+
/* Suppression des marges pour utiliser le nouveau conteneur .code-container */
|
| 470 |
+
margin: 0;
|
| 471 |
+
|
| 472 |
+
/* Styles existants */
|
| 473 |
+
background: var(--sidebar-bg);
|
| 474 |
+
padding: 1rem;
|
| 475 |
+
border-radius: 8px;
|
| 476 |
+
overflow-x: auto;
|
| 477 |
+
font-size: 0.95rem;
|
| 478 |
+
line-height: 1.4;
|
| 479 |
+
}
|
| 480 |
+
|
| 481 |
+
/* 3. Bouton de Copie */
|
| 482 |
+
.copy-code-btn {
|
| 483 |
+
position: absolute;
|
| 484 |
+
top: 5px;
|
| 485 |
+
right: 5px;
|
| 486 |
+
background: rgba(255, 255, 255, 0.1);
|
| 487 |
+
color: var(--text-color);
|
| 488 |
+
border: none;
|
| 489 |
+
padding: 0.3rem 0.6rem;
|
| 490 |
+
border-radius: 4px;
|
| 491 |
+
cursor: pointer;
|
| 492 |
+
font-size: 0.8rem;
|
| 493 |
+
font-weight: 500;
|
| 494 |
+
opacity: 0; /* Masqué par défaut */
|
| 495 |
+
transition: opacity 0.2s, background 0.2s;
|
| 496 |
+
display: flex;
|
| 497 |
+
align-items: center;
|
| 498 |
+
}
|
| 499 |
+
|
| 500 |
+
/* Afficher le bouton au survol du conteneur */
|
| 501 |
+
.code-container:hover .copy-code-btn {
|
| 502 |
+
opacity: 1;
|
| 503 |
+
}
|
| 504 |
+
|
| 505 |
+
.copy-code-btn:hover {
|
| 506 |
+
background: rgba(255, 255, 255, 0.2);
|
| 507 |
+
}
|
| 508 |
+
|
| 509 |
+
.copy-code-btn .material-symbols-rounded {
|
| 510 |
+
font-size: 1rem;
|
| 511 |
+
margin-right: 0.2rem;
|
| 512 |
+
}
|
| 513 |
+
|
| 514 |
+
|
| 515 |
+
.chat-message.ai .text-content code {
|
| 516 |
+
/* Style pour le code inline (single backtick) */
|
| 517 |
+
background: var(--secondary-hover-color);
|
| 518 |
+
padding: 0.2rem 0.4rem;
|
| 519 |
+
border-radius: 4px;
|
| 520 |
+
font-weight: 500;
|
| 521 |
+
}
|
| 522 |
+
|
| 523 |
+
/* Assurer que le code dans les blocs reste en couleur texte du thème */
|
| 524 |
+
.chat-message.ai .text-content pre code {
|
| 525 |
+
/* Le fond est géré par highlight.js */
|
| 526 |
+
background: transparent;
|
| 527 |
+
/* La couleur est gérée par highlight.js */
|
| 528 |
+
/* color: var(--text-color); */
|
| 529 |
+
padding: 0;
|
| 530 |
+
}
|
| 531 |
+
|
| 532 |
+
/* --- ZONE DE SAISIE (Typing Area) --- */
|
| 533 |
+
|
| 534 |
+
/* Classe par défaut (CENTRÉE VERTICALEMENT) */
|
| 535 |
+
.typing-area {
|
| 536 |
+
position: absolute; /* Changer à absolute pour le centrage initial */
|
| 537 |
+
top: 50%;
|
| 538 |
+
left: 50%;
|
| 539 |
+
transform: translate(-50%, -50%);
|
| 540 |
+
width: calc(100% - var(--min-sidebar-width)); /* Largeur ajustée */
|
| 541 |
+
padding: 1rem;
|
| 542 |
+
background: transparent; /* Pas de fond visible lors du centrage */
|
| 543 |
+
border-top: none;
|
| 544 |
+
z-index: 10;
|
| 545 |
+
transition: all 0.5s ease; /* Transition pour le mouvement */
|
| 546 |
+
}
|
| 547 |
+
|
| 548 |
+
/* Classe APPLIQUÉE APRÈS LE PREMIER MESSAGE (EN BAS DE L'ÉCRAN) */
|
| 549 |
+
.typing-area.docked {
|
| 550 |
+
position: fixed; /* Changer à fixed pour rester en bas */
|
| 551 |
+
bottom: 0;
|
| 552 |
+
top: auto; /* Annuler 'top: 50%' */
|
| 553 |
+
left: 0; /* Changer 'left: 50%' */
|
| 554 |
+
transform: none; /* Annuler 'translate' */
|
| 555 |
+
width: 100%; /* Reprendre la largeur normale */
|
| 556 |
+
padding: 1rem;
|
| 557 |
+
background: var(--primary-color);
|
| 558 |
+
border-top: 1px solid var(--secondary-color);
|
| 559 |
+
padding-left: calc(var(--min-sidebar-width) + 1rem);
|
| 560 |
+
}
|
| 561 |
+
|
| 562 |
+
/* Assurer que la zone de saisie est centrée par rapport à elle-même au début */
|
| 563 |
+
.typing-area .typing-form {
|
| 564 |
+
max-width: 900px;
|
| 565 |
+
margin: 0 auto;
|
| 566 |
+
}
|
| 567 |
+
|
| 568 |
+
.typing-area .input-wrapper {
|
| 569 |
+
display: flex;
|
| 570 |
+
flex-direction: column; /* Changé à column pour gérer la liste de fichiers au-dessus */
|
| 571 |
+
align-items: stretch;
|
| 572 |
+
background: var(--secondary-color);
|
| 573 |
+
border-radius: 25px;
|
| 574 |
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
| 575 |
+
|
| 576 |
+
/* 1. Réduire légèrement la largeur horizontale */
|
| 577 |
+
max-width: 820px;
|
| 578 |
+
margin: 0 auto;
|
| 579 |
+
|
| 580 |
+
/* AJOUT: Ajuster le padding pour le contenu intérieur */
|
| 581 |
+
padding: 0.25rem;
|
| 582 |
+
}
|
| 583 |
+
|
| 584 |
+
/* AJOUT: Conteneur du texte et du bouton d'envoi */
|
| 585 |
+
.typing-area .input-controls {
|
| 586 |
+
display: flex;
|
| 587 |
+
align-items: flex-end; /* Aligner le textarea et le bouton */
|
| 588 |
+
}
|
| 589 |
+
|
| 590 |
+
/* AJOUT: Zone d'affichage des fichiers */
|
| 591 |
+
.typing-area .file-display-area {
|
| 592 |
+
display: flex;
|
| 593 |
+
align-items: center;
|
| 594 |
+
padding: 0.5rem 0;
|
| 595 |
+
margin-left: 0.5rem; /* Aligner avec le textarea */
|
| 596 |
+
overflow-x: auto; /* Défilement horizontal si plus de 4 fichiers */
|
| 597 |
+
max-width: 100%; /* Important pour le défilement */
|
| 598 |
+
white-space: nowrap; /* Empêche les badges de passer à la ligne */
|
| 599 |
+
/* Cacher la barre de défilement pour un look plus propre */
|
| 600 |
+
scrollbar-width: none; /* Firefox */
|
| 601 |
+
}
|
| 602 |
+
.typing-area .file-display-area::-webkit-scrollbar {
|
| 603 |
+
display: none; /* Chrome, Safari, Opera */
|
| 604 |
+
}
|
| 605 |
+
|
| 606 |
+
/* AJOUT: Badge de fichier */
|
| 607 |
+
.file-badge {
|
| 608 |
+
display: inline-flex;
|
| 609 |
+
align-items: center;
|
| 610 |
+
background: var(--primary-color);
|
| 611 |
+
color: var(--text-color);
|
| 612 |
+
padding: 0.3rem 0.6rem;
|
| 613 |
+
border-radius: 15px;
|
| 614 |
+
font-size: 0.8rem;
|
| 615 |
+
margin-right: 0.5rem;
|
| 616 |
+
flex-shrink: 0; /* Empêche le badge de se rétrécir */
|
| 617 |
+
}
|
| 618 |
+
|
| 619 |
+
.file-badge .delete-file-btn {
|
| 620 |
+
background: none;
|
| 621 |
+
border: none;
|
| 622 |
+
color: var(--placeholder-color);
|
| 623 |
+
cursor: pointer;
|
| 624 |
+
margin-left: 0.5rem;
|
| 625 |
+
padding: 0;
|
| 626 |
+
font-size: 1rem;
|
| 627 |
+
line-height: 1;
|
| 628 |
+
transition: color 0.2s;
|
| 629 |
+
}
|
| 630 |
+
|
| 631 |
+
.file-badge .delete-file-btn:hover {
|
| 632 |
+
color: red;
|
| 633 |
+
}
|
| 634 |
+
|
| 635 |
+
/* 2. Icône d'importation de fichiers (+) */
|
| 636 |
+
.typing-area .input-wrapper .file-upload-btn {
|
| 637 |
+
width: 45px;
|
| 638 |
+
height: 45px;
|
| 639 |
+
background: transparent;
|
| 640 |
+
display: flex;
|
| 641 |
+
justify-content: center;
|
| 642 |
+
align-items: center;
|
| 643 |
+
border-radius: 50%;
|
| 644 |
+
cursor: pointer;
|
| 645 |
+
color: var(--placeholder-color); /* Gris clair pour l'icône + */
|
| 646 |
+
outline: none;
|
| 647 |
+
border: none;
|
| 648 |
+
font-size: 24px;
|
| 649 |
+
transition: color 0.2s;
|
| 650 |
+
flex-shrink: 0; /* Empêche le bouton de rétrécir */
|
| 651 |
+
}
|
| 652 |
+
|
| 653 |
+
.typing-area .input-wrapper .file-upload-btn:hover {
|
| 654 |
+
color: var(--text-color);
|
| 655 |
+
}
|
| 656 |
+
|
| 657 |
+
.typing-area .input-wrapper .typing-input {
|
| 658 |
+
flex-grow: 1;
|
| 659 |
+
background: transparent;
|
| 660 |
+
border: none;
|
| 661 |
+
resize: none;
|
| 662 |
+
font-size: 1rem;
|
| 663 |
+
color: var(--text-color);
|
| 664 |
+
/* 1. Augmenter légèrement la hauteur verticale */
|
| 665 |
+
padding: 0.85rem 0.5rem;
|
| 666 |
+
line-height: 1.5;
|
| 667 |
+
max-height: 150px;
|
| 668 |
+
overflow-y: auto;
|
| 669 |
+
}
|
| 670 |
+
|
| 671 |
+
.typing-area .input-wrapper .typing-input::placeholder {
|
| 672 |
+
color: var(--placeholder-color);
|
| 673 |
+
}
|
| 674 |
+
|
| 675 |
+
.typing-area .input-wrapper .typing-input:focus {
|
| 676 |
+
outline: none;
|
| 677 |
+
}
|
| 678 |
+
|
| 679 |
+
/* AJOUT: Style pour l'indicateur de limite de texte */
|
| 680 |
+
.typing-area .char-count {
|
| 681 |
+
font-size: 0.8rem;
|
| 682 |
+
color: var(--placeholder-color);
|
| 683 |
+
margin-right: 1rem;
|
| 684 |
+
align-self: flex-end; /* Aligner à droite sous le textarea */
|
| 685 |
+
padding-bottom: 0.5rem;
|
| 686 |
+
flex-shrink: 0;
|
| 687 |
+
}
|
| 688 |
+
|
| 689 |
+
.typing-area .char-count.error {
|
| 690 |
+
color: red;
|
| 691 |
+
font-weight: 500;
|
| 692 |
+
}
|
| 693 |
+
|
| 694 |
+
|
| 695 |
+
/* Bouton d'Envoi de Texte */
|
| 696 |
+
.typing-area .input-wrapper button.send-button {
|
| 697 |
+
width: 45px;
|
| 698 |
+
height: 45px;
|
| 699 |
+
background: transparent; /* Fond transparent par défaut */
|
| 700 |
+
display: flex;
|
| 701 |
+
justify-content: center;
|
| 702 |
+
align-items: center;
|
| 703 |
+
border-radius: 50%;
|
| 704 |
+
cursor: pointer;
|
| 705 |
+
color: var(--placeholder-color); /* Couleur par défaut (micro) */
|
| 706 |
+
outline: none;
|
| 707 |
+
border: none;
|
| 708 |
+
font-size: 24px;
|
| 709 |
+
transition: background 0.2s, color 0.2s;
|
| 710 |
+
flex-shrink: 0; /* Empêche le bouton de rétrécir */
|
| 711 |
+
margin: 0.25rem; /* Ajuster la position pour le padding du wrapper */
|
| 712 |
+
}
|
| 713 |
+
|
| 714 |
+
/* Style pour l'icône 'send' (actif) */
|
| 715 |
+
.typing-area .input-wrapper button.send-button.active {
|
| 716 |
+
background: #49494bff; /* Fond gris/bleu pour le bouton d'envoi actif */
|
| 717 |
+
color: white;
|
| 718 |
+
}
|
| 719 |
+
|
| 720 |
+
.typing-area .input-wrapper button.send-button.active:hover {
|
| 721 |
+
background: #0074f0ff;
|
| 722 |
+
}
|
| 723 |
+
|
| 724 |
+
.typing-area .disclaimer-text {
|
| 725 |
+
font-size: 0.85rem;
|
| 726 |
+
margin-top: 1rem;
|
| 727 |
+
text-align: center;
|
| 728 |
+
color: var(--placeholder-color);
|
| 729 |
+
}
|
| 730 |
+
|
| 731 |
+
/* Texte de non-responsabilité masqué dans l'état initial centré */
|
| 732 |
+
.typing-area:not(.docked) .disclaimer-text {
|
| 733 |
+
display: none;
|
| 734 |
+
}
|
| 735 |
+
|
| 736 |
+
/* Message d'erreur personnalisé (pour limite de fichier) */
|
| 737 |
+
#file-error-message {
|
| 738 |
+
color: red;
|
| 739 |
+
font-size: 0.9rem;
|
| 740 |
+
text-align: center;
|
| 741 |
+
margin-top: 0.5rem;
|
| 742 |
+
}
|
| 743 |
+
|
| 744 |
+
/* --- NOUVEAU: Carte de Paramètres --- */
|
| 745 |
+
#settings-card {
|
| 746 |
+
position: fixed;
|
| 747 |
+
top: 0;
|
| 748 |
+
/* Démarrer juste à côté de la sidebar fermée (80px) */
|
| 749 |
+
left: var(--min-sidebar-width);
|
| 750 |
+
height: 100vh;
|
| 751 |
+
width: 0; /* Caché par défaut */
|
| 752 |
+
max-width: 340px; /* Rendre un peu plus large (ex: 340px) */
|
| 753 |
+
background: var(--secondary-color); /* Utiliser la couleur secondaire pour le fond de la carte */
|
| 754 |
+
color: var(--text-color);
|
| 755 |
+
box-shadow: 6px 0 15px rgba(0, 0, 0, 0.3);
|
| 756 |
+
overflow-y: auto;
|
| 757 |
+
overflow-x: hidden;
|
| 758 |
+
transition: width 0.3s ease, padding 0.3s ease, left 0.3s ease;
|
| 759 |
+
z-index: 99; /* Moins que la sidebar (100) mais plus que le chat (50) */
|
| 760 |
+
}
|
| 761 |
+
|
| 762 |
+
/* L'état ouvert de la carte */
|
| 763 |
+
#settings-card.open {
|
| 764 |
+
width: 340px; /* Définir la largeur horizontale demandée */
|
| 765 |
+
padding: 1.5rem 1.5rem;
|
| 766 |
+
}
|
| 767 |
+
|
| 768 |
+
/* Ajustement de la position si la sidebar est ouverte */
|
| 769 |
+
.sidebar.open ~ #settings-card {
|
| 770 |
+
left: var(--max-sidebar-width); /* Se positionne après la sidebar ouverte (300px) */
|
| 771 |
+
}
|
| 772 |
+
|
| 773 |
+
/* Style des éléments de formulaire dans la carte */
|
| 774 |
+
#settings-card .setting-group {
|
| 775 |
+
margin-bottom: 1.5rem;
|
| 776 |
+
}
|
| 777 |
+
|
| 778 |
+
#settings-card label {
|
| 779 |
+
display: block;
|
| 780 |
+
font-weight: 500;
|
| 781 |
+
margin-bottom: 0.5rem;
|
| 782 |
+
font-size: 0.95rem;
|
| 783 |
+
color: var(--subheading-color);
|
| 784 |
+
}
|
| 785 |
+
|
| 786 |
+
#settings-card select,
|
| 787 |
+
#settings-card textarea {
|
| 788 |
+
width: 100%;
|
| 789 |
+
padding: 0.6rem 0.8rem;
|
| 790 |
+
border: 1px solid var(--sidebar-hover-bg);
|
| 791 |
+
border-radius: 8px;
|
| 792 |
+
background: var(--primary-color);
|
| 793 |
+
color: var(--text-color);
|
| 794 |
+
font-size: 1rem;
|
| 795 |
+
appearance: none; /* Cache la flèche par défaut pour le style */
|
| 796 |
+
}
|
| 797 |
+
|
| 798 |
+
#settings-card textarea {
|
| 799 |
+
min-height: 80px;
|
| 800 |
+
resize: vertical;
|
| 801 |
+
line-height: 1.4;
|
| 802 |
+
}
|
| 803 |
+
|
| 804 |
+
#settings-card select:focus,
|
| 805 |
+
#settings-card textarea:focus {
|
| 806 |
+
outline: none;
|
| 807 |
+
border-color: #007bff;
|
| 808 |
+
}
|
| 809 |
+
|
| 810 |
+
/* Ajout d'une flèche personnalisée pour les selects */
|
| 811 |
+
.select-wrapper {
|
| 812 |
+
position: relative;
|
| 813 |
+
}
|
| 814 |
+
|
| 815 |
+
.select-wrapper::after {
|
| 816 |
+
content: "expand_more";
|
| 817 |
+
font-family: 'Material Symbols Rounded';
|
| 818 |
+
position: absolute;
|
| 819 |
+
top: 50%;
|
| 820 |
+
right: 10px;
|
| 821 |
+
transform: translateY(-50%);
|
| 822 |
+
pointer-events: none;
|
| 823 |
+
color: var(--subheading-color);
|
| 824 |
+
}
|
| 825 |
+
|
| 826 |
+
/* --- RESPONSIVE / Mobile --- */
|
| 827 |
+
@media (max-width: 768px) {
|
| 828 |
+
.sidebar {
|
| 829 |
+
width: 0;
|
| 830 |
+
box-shadow: none;
|
| 831 |
+
}
|
| 832 |
+
.sidebar.open {
|
| 833 |
+
width: 80%;
|
| 834 |
+
}
|
| 835 |
+
.chat-wrapper {
|
| 836 |
+
padding-left: 0;
|
| 837 |
+
}
|
| 838 |
+
/* Ajustement pour le mode centré */
|
| 839 |
+
.typing-area {
|
| 840 |
+
width: 100%;
|
| 841 |
+
left: 0;
|
| 842 |
+
transform: translateY(-50%);
|
| 843 |
+
}
|
| 844 |
+
/* Ajustement pour le mode docké */
|
| 845 |
+
.typing-area.docked {
|
| 846 |
+
padding: 1rem 0.5rem;
|
| 847 |
+
padding-left: 0.5rem;
|
| 848 |
+
}
|
| 849 |
+
.brand-toggle-btn {
|
| 850 |
+
/* Cacher le bouton 'ErnestMind 2.5' sur mobile */
|
| 851 |
+
display: none;
|
| 852 |
+
}
|
| 853 |
+
/* Ajustement pour le message utilisateur sur mobile */
|
| 854 |
+
.chat-message.user .text-content {
|
| 855 |
+
max-width: 90%;
|
| 856 |
+
}
|
| 857 |
+
/* Ajustement pour l'en-tête sur mobile */
|
| 858 |
+
.chat-header {
|
| 859 |
+
padding: 1rem 0.5rem; /* Ajustement pour le bord de l'écran */
|
| 860 |
+
}
|
| 861 |
+
/* AJOUT MOBILE : ajuster l'espace si la zone ancrée est utilisée */
|
| 862 |
+
.chat-list.has-docked-area {
|
| 863 |
+
padding-bottom: 150px;
|
| 864 |
+
}
|
| 865 |
+
|
| 866 |
+
/* AJOUT MOBILE : Carte de paramètres */
|
| 867 |
+
#settings-card.open {
|
| 868 |
+
width: 100%; /* Prend toute la largeur sur mobile */
|
| 869 |
+
left: 0;
|
| 870 |
+
max-width: 100%;
|
| 871 |
+
}
|
| 872 |
+
|
| 873 |
+
.sidebar.open ~ #settings-card {
|
| 874 |
+
/* Si la sidebar est ouverte sur mobile, la carte est décalée */
|
| 875 |
+
left: 80%; /* Pour laisser la sidebar visible */
|
| 876 |
+
}
|
| 877 |
+
}
|
| 878 |
+
</style>
|
| 879 |
+
</head>
|
| 880 |
+
|
| 881 |
+
<body>
|
| 882 |
+
<div class="main-container">
|
| 883 |
+
<aside id="sidebar" class="sidebar">
|
| 884 |
+
<div>
|
| 885 |
+
<div class="logo">
|
| 886 |
+
<span class="icon material-symbols-rounded">psychology</span>
|
| 887 |
+
<span class="title">ErnestMind 2.5</span>
|
| 888 |
+
</div>
|
| 889 |
+
<ul class="sidebar-menu">
|
| 890 |
+
<li id="sidebar-toggle-btn">
|
| 891 |
+
<span class="icon material-symbols-rounded">menu</span>
|
| 892 |
+
<span class="text">Menu</span>
|
| 893 |
+
</li>
|
| 894 |
+
<li class="new-chat">
|
| 895 |
+
<span class="icon material-symbols-rounded">add</span>
|
| 896 |
+
<span class="text">Nouveau Chat</span>
|
| 897 |
+
</li>
|
| 898 |
+
<li>
|
| 899 |
+
<span class="icon material-symbols-rounded">history</span>
|
| 900 |
+
<span class="text">Historique</span>
|
| 901 |
+
</li>
|
| 902 |
+
</ul>
|
| 903 |
+
<ul class="recent-chats-list" id="recent-chats-list">
|
| 904 |
+
</ul>
|
| 905 |
+
</div>
|
| 906 |
+
<ul class="sidebar-footer">
|
| 907 |
+
<li id="settings-button">
|
| 908 |
+
<span class="icon material-symbols-rounded">settings</span>
|
| 909 |
+
<span class="text">Paramètres</span>
|
| 910 |
+
</li>
|
| 911 |
+
<li id="toggle-theme-btn">
|
| 912 |
+
<span class="icon material-symbols-rounded">dark_mode</span>
|
| 913 |
+
<span class="text">Thème</span>
|
| 914 |
+
</li>
|
| 915 |
+
</ul>
|
| 916 |
+
</aside>
|
| 917 |
+
|
| 918 |
+
<div id="settings-card">
|
| 919 |
+
<h2 style="font-size: 1.5rem; margin-bottom: 1.5rem; font-weight: 600;">Paramètres de l'IA</h2>
|
| 920 |
+
<hr style="border: none; border-bottom: 1px solid var(--sidebar-hover-bg); margin-bottom: 1.5rem;">
|
| 921 |
+
|
| 922 |
+
<div class="setting-group">
|
| 923 |
+
<label for="model-select">Sélection du Modèle (Version)</label>
|
| 924 |
+
<div class="select-wrapper">
|
| 925 |
+
<select id="model-select">
|
| 926 |
+
<option value="ernest_2_5" selected>ErnestMind 2.5 (Défaut)</option>
|
| 927 |
+
<option value="ernest_2_0">ErnestMind 2.0</option>
|
| 928 |
+
<option value="ernest_1_5">ErnestMind 1.5</option>
|
| 929 |
+
<option value="ernest_fast">Version Rapide/Légère</option>
|
| 930 |
+
<option value="ernest_plus">Version Plus (Abonnés)</option>
|
| 931 |
+
</select>
|
| 932 |
+
</div>
|
| 933 |
+
</div>
|
| 934 |
+
|
| 935 |
+
<div class="setting-group">
|
| 936 |
+
<label for="tone-select">Tonalité de la Réponse</label>
|
| 937 |
+
<div class="select-wrapper">
|
| 938 |
+
<select id="tone-select">
|
| 939 |
+
<option value="casual" selected>Décontracté (Défaut)</option>
|
| 940 |
+
<option value="formal">Formel</option>
|
| 941 |
+
<option value="technical">Technique</option>
|
| 942 |
+
<option value="creative">Créatif</option>
|
| 943 |
+
</select>
|
| 944 |
+
</div>
|
| 945 |
+
</div>
|
| 946 |
+
|
| 947 |
+
<div class="setting-group">
|
| 948 |
+
<label for="length-select">Longueur Maximale de la Réponse</label>
|
| 949 |
+
<div class="select-wrapper">
|
| 950 |
+
<select id="length-select">
|
| 951 |
+
<option value="medium" selected>Moyen (Défaut)</option>
|
| 952 |
+
<option value="short">Court</option>
|
| 953 |
+
<option value="long">Long</option>
|
| 954 |
+
</select>
|
| 955 |
+
</div>
|
| 956 |
+
</div>
|
| 957 |
+
|
| 958 |
+
<div class="setting-group">
|
| 959 |
+
<label for="persona-textarea">"Persona" par Défaut (Prompt système)</label>
|
| 960 |
+
<textarea id="persona-textarea" rows="4" placeholder="Ex: Agir comme un développeur Python expert."></textarea>
|
| 961 |
+
</div>
|
| 962 |
+
|
| 963 |
+
<button style="width: 100%; padding: 0.75rem; background: #007bff; color: white; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: background 0.2s;">
|
| 964 |
+
Sauvegarder les Paramètres
|
| 965 |
+
</button>
|
| 966 |
+
</div>
|
| 967 |
+
<button class="brand-toggle-btn" title="ErnestMind 2.5 - Revenir à l'accueil">ErnestMind 2.5</button>
|
| 968 |
+
<main class="chat-wrapper">
|
| 969 |
+
<div class="chat-header">
|
| 970 |
+
<div class="initial-welcome" id="initial-welcome-header">
|
| 971 |
+
<h1 class="chat-title" style="font-size: 2.2rem; margin-right: auto;">ErnestMind</h1>
|
| 972 |
+
</div>
|
| 973 |
+
<button id="ernest-plus-button" title="Abonnez-vous à ErnestMind Plus">
|
| 974 |
+
<img src="https://i.imgur.com/7Gn3toV.png" alt="Plus Logo" class="plus-logo"> ErnestMind Plus
|
| 975 |
+
</button>
|
| 976 |
+
<button id="login-button" title="Connexion / Profil">
|
| 977 |
+
<span class="icon material-symbols-rounded">person</span>
|
| 978 |
+
</button>
|
| 979 |
+
</div>
|
| 980 |
+
<div class="chat-list">
|
| 981 |
+
<div id="initial-welcome" class="initial-welcome">
|
| 982 |
+
<h1 class="chat-title">ErnestMind</h1>
|
| 983 |
+
</div>
|
| 984 |
+
</div>
|
| 985 |
+
<div class="typing-area">
|
| 986 |
+
<form action="#" class="typing-form">
|
| 987 |
+
<div class="input-wrapper">
|
| 988 |
+
<div id="file-display-area" class="file-display-area">
|
| 989 |
+
</div>
|
| 990 |
+
<div class="input-controls">
|
| 991 |
+
<button class="file-upload-btn" type="button" title="Importer des fichiers (max. 10)">
|
| 992 |
+
<span class="icon material-symbols-rounded">add</span>
|
| 993 |
+
</button>
|
| 994 |
+
<input type="file" id="file-input" multiple style="display: none;">
|
| 995 |
+
<textarea rows="1" placeholder="Entrez un prompt ici" class="typing-input" required
|
| 996 |
+
maxlength="1000000"></textarea>
|
| 997 |
+
<span id="char-count" class="char-count">0 / 1000000</span>
|
| 998 |
+
<button id="send-btn" class="icon material-symbols-rounded send-button" type="submit"
|
| 999 |
+
title="Envoyer le message"> mic_none </button>
|
| 1000 |
+
</div>
|
| 1001 |
+
</div>
|
| 1002 |
+
<p id="file-error-message" style="display:none;">Vous pouvez importer un maximum de 10 fichiers.</p>
|
| 1003 |
+
<p class="disclaimer-text"> Veuillez vérifier les réponses. ErnestMind 2.5 peut être inexact. </p>
|
| 1004 |
+
</form>
|
| 1005 |
+
</div>
|
| 1006 |
+
</main>
|
| 1007 |
+
</div>
|
| 1008 |
+
|
| 1009 |
+
|
| 1010 |
+
|
| 1011 |
+
<script src="https://cdn.jsdelivr.net/npm/marked@12.0.2/lib/marked.umd.min.js"></script>
|
| 1012 |
+
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
|
| 1013 |
+
<script>
|
| 1014 |
+
// Références aux éléments du DOM
|
| 1015 |
+
const typingArea = document.querySelector(".typing-area");
|
| 1016 |
+
const typingForm = document.querySelector(".typing-form");
|
| 1017 |
+
const typingInput = document.querySelector(".typing-input");
|
| 1018 |
+
const chatList = document.querySelector(".chat-list");
|
| 1019 |
+
const sidebar = document.getElementById("sidebar");
|
| 1020 |
+
const sidebarToggleBtn = document.getElementById("sidebar-toggle-btn");
|
| 1021 |
+
const toggleThemeBtn = document.getElementById("toggle-theme-btn");
|
| 1022 |
+
const recentChatsList = document.getElementById("recent-chats-list");
|
| 1023 |
+
const initialWelcome = document.getElementById("initial-welcome");
|
| 1024 |
+
const initialWelcomeHeader = document.getElementById("initial-welcome-header");
|
| 1025 |
+
// NOUVEAU
|
| 1026 |
+
// NOUVEAUX ÉLÉMENTS
|
| 1027 |
+
const fileUploadBtn = document.querySelector(".file-upload-btn");
|
| 1028 |
+
const fileInput = document.getElementById("file-input");
|
| 1029 |
+
const loginButton = document.getElementById("login-button");
|
| 1030 |
+
// const loginSidebarBtn = document.getElementById("login-sidebar-btn"); // SUPPRIMÉ
|
| 1031 |
+
const brandToggleButton = document.querySelector(".brand-toggle-btn");
|
| 1032 |
+
const ernestPlusButton = document.getElementById("ernest-plus-button");
|
| 1033 |
+
const sendButton = document.getElementById("send-btn");
|
| 1034 |
+
// AJOUT DES NOUVEAUX ÉLÉMENTS
|
| 1035 |
+
const fileDisplayArea = document.getElementById("file-display-area");
|
| 1036 |
+
const fileErrorMessage = document.getElementById("file-error-message");
|
| 1037 |
+
const charCountSpan = document.getElementById("char-count");
|
| 1038 |
+
|
| 1039 |
+
// >>> NOUVELLES RÉFÉRENCES POUR LA CARTE DE PARAMÈTRES <<<
|
| 1040 |
+
const settingsCard = document.getElementById("settings-card");
|
| 1041 |
+
const settingsButton = document.getElementById("settings-button");
|
| 1042 |
+
// <<< FIN NOUVELLES RÉFÉRENCES <<<
|
| 1043 |
+
|
| 1044 |
+
// CHANGEMENT : MAX_TEXT_LENGTH de 200000 à 1000000
|
| 1045 |
+
const MAX_TEXT_LENGTH = 1000000;
|
| 1046 |
+
const MAX_FILES = 10;
|
| 1047 |
+
// Variables d'état
|
| 1048 |
+
let userMessage = null;
|
| 1049 |
+
let isResponseGenerating = false;
|
| 1050 |
+
const MAX_RECENT_CHATS = 5;
|
| 1051 |
+
// Stockage de la connexion EventSource active pour pouvoir l'arrêter
|
| 1052 |
+
let activeEventSource = null;
|
| 1053 |
+
// AJOUT: Stockage des fichiers sélectionnés
|
| 1054 |
+
let selectedFiles = [];
|
| 1055 |
+
|
| 1056 |
+
// Configuration de l'API (Remplacer par votre endpoint réel si nécessaire)
|
| 1057 |
+
const API_URL = "/generate";
|
| 1058 |
+
|
| 1059 |
+
|
| 1060 |
+
// --- GESTION DE LA CARTE DE PARAMÈTRES (SETTINGS CARD) ---
|
| 1061 |
+
|
| 1062 |
+
// 1. Ouvrir/Fermer la carte via le bouton dans le footer de la sidebar
|
| 1063 |
+
settingsButton.addEventListener('click', (e) => {
|
| 1064 |
+
e.stopPropagation(); // Empêche l'événement de se propager plus loin
|
| 1065 |
+
settingsCard.classList.toggle('open');
|
| 1066 |
+
});
|
| 1067 |
+
|
| 1068 |
+
// 2. Fermer la carte quand on clique n'importe où en dehors de la carte
|
| 1069 |
+
document.addEventListener('click', (e) => {
|
| 1070 |
+
// Si la carte de paramètres est ouverte
|
| 1071 |
+
if (settingsCard.classList.contains('open')) {
|
| 1072 |
+
// Et que le clic n'est PAS dans la carte ET n'est PAS dans le bouton des paramètres
|
| 1073 |
+
if (!settingsCard.contains(e.target) && e.target !== settingsButton && !settingsButton.contains(e.target)) {
|
| 1074 |
+
// Ferme la carte
|
| 1075 |
+
settingsCard.classList.remove('open');
|
| 1076 |
+
}
|
| 1077 |
+
}
|
| 1078 |
+
});
|
| 1079 |
+
|
| 1080 |
+
|
| 1081 |
+
/**
|
| 1082 |
+
* Fonctions utilitaires pour la Base de Données (Simulée avec localStorage)
|
| 1083 |
+
*/
|
| 1084 |
+
|
| 1085 |
+
// Met à jour l'icône du thème
|
| 1086 |
+
const updateThemeIcon = (isLightmode) => {
|
| 1087 |
+
const iconSpan = toggleThemeBtn.querySelector('.icon');
|
| 1088 |
+
if (iconSpan) {
|
| 1089 |
+
iconSpan.textContent = isLightmode ? "dark_mode" : "light_mode";
|
| 1090 |
+
}
|
| 1091 |
+
};
|
| 1092 |
+
|
| 1093 |
+
// Gère la transition de la zone de saisie
|
| 1094 |
+
const dockTypingArea = (shouldDock) => {
|
| 1095 |
+
if (shouldDock) {
|
| 1096 |
+
typingArea.classList.add('docked');
|
| 1097 |
+
// AJOUT: Mettre à jour le padding-bottom du chat-list
|
| 1098 |
+
chatList.classList.add('has-docked-area');
|
| 1099 |
+
// Masquer le titre au centre et afficher celui de l'en-tête
|
| 1100 |
+
if (initialWelcome) initialWelcome.style.display = 'none';
|
| 1101 |
+
if (initialWelcomeHeader) initialWelcomeHeader.style.display = 'flex';
|
| 1102 |
+
} else {
|
| 1103 |
+
typingArea.classList.remove('docked');
|
| 1104 |
+
// AJOUT: Retirer le padding-bottom du chat-list
|
| 1105 |
+
chatList.classList.remove('has-docked-area');
|
| 1106 |
+
// Afficher le titre au centre et masquer celui de l'en-tête
|
| 1107 |
+
if (initialWelcome) initialWelcome.style.display = 'flex';
|
| 1108 |
+
if (initialWelcomeHeader) initialWelcomeHeader.style.display = 'none';
|
| 1109 |
+
}
|
| 1110 |
+
}
|
| 1111 |
+
// Fonction pour le post-traitement de la réponse IA (Highlight et Bouton Copier)
|
| 1112 |
+
const postProcessAiResponse = (htmlContent) => {
|
| 1113 |
+
const tempDiv = document.createElement('div');
|
| 1114 |
+
tempDiv.innerHTML = htmlContent;
|
| 1115 |
+
|
| 1116 |
+
// Trouver tous les blocs <pre> et les préparer
|
| 1117 |
+
tempDiv.querySelectorAll('pre').forEach(preElement => {
|
| 1118 |
+
// 1. Appliquer la coloration syntaxique (Highlight.js)
|
| 1119 |
+
// highlightElement nécessite la balise <code>
|
| 1120 |
+
const codeElement = preElement.querySelector('code');
|
| 1121 |
+
if (codeElement) {
|
| 1122 |
+
hljs.highlightElement(codeElement);
|
| 1123 |
+
}
|
| 1124 |
+
|
| 1125 |
+
// 2. Créer le conteneur pour le positionnement relatif et les marges
|
| 1126 |
+
const container = document.createElement('div');
|
| 1127 |
+
container.classList.add('code-container');
|
| 1128 |
+
preElement.parentNode.insertBefore(container, preElement);
|
| 1129 |
+
container.appendChild(preElement); // Déplacer <pre> dans le nouveau conteneur
|
| 1130 |
+
|
| 1131 |
+
// 3. Ajouter le bouton de copie
|
| 1132 |
+
const copyBtn = document.createElement('button');
|
| 1133 |
+
copyBtn.classList.add('copy-code-btn');
|
| 1134 |
+
copyBtn.innerHTML = '<span class="material-symbols-rounded">content_copy</span>Copier';
|
| 1135 |
+
|
| 1136 |
+
// Stocker le code brut
|
| 1137 |
+
const codeText = preElement.querySelector('code').innerText;
|
| 1138 |
+
|
| 1139 |
+
// Utilisation d'une fonction anonyme pour passer les arguments (y compris l'élément)
|
| 1140 |
+
copyBtn.onclick = (e) => {
|
| 1141 |
+
e.preventDefault(); // Empêcher soumission de formulaire/autre
|
| 1142 |
+
copyCode(copyBtn, codeText);
|
| 1143 |
+
};
|
| 1144 |
+
|
| 1145 |
+
container.appendChild(copyBtn);
|
| 1146 |
+
});
|
| 1147 |
+
|
| 1148 |
+
return tempDiv.innerHTML;
|
| 1149 |
+
}
|
| 1150 |
+
|
| 1151 |
+
|
| 1152 |
+
// Charge les données de l'historique du chat et du thème
|
| 1153 |
+
const loadLocalstorageData = () => {
|
| 1154 |
+
// 1. Charger le Thème
|
| 1155 |
+
const isLightmode = (localStorage.getItem("themeColor") === "light_mode");
|
| 1156 |
+
document.body.classList.toggle("light_mode", isLightmode);
|
| 1157 |
+
updateThemeIcon(isLightmode); // Mettre à jour l'icône
|
| 1158 |
+
|
| 1159 |
+
// 2. Charger les Messages du Chat Actuel
|
| 1160 |
+
const savedChats = localStorage.getItem("currentChatMessages") || "[]";
|
| 1161 |
+
const messages = JSON.parse(savedChats);
|
| 1162 |
+
|
| 1163 |
+
if (messages.length > 0) {
|
| 1164 |
+
// S'il y a des messages, masquer le message de bienvenue initial
|
| 1165 |
+
if (initialWelcome) initialWelcome.style.display = 'none';
|
| 1166 |
+
if (initialWelcomeHeader) initialWelcomeHeader.style.display = 'flex'; // Afficher le titre d'en-tête
|
| 1167 |
+
|
| 1168 |
+
messages.forEach(message => {
|
| 1169 |
+
let content;
|
| 1170 |
+
// MODIFIÉ : Conversion du contenu IA de Markdown en HTML puis POST-TRAITEMENT
|
| 1171 |
+
if (message.type === 'ai') {
|
| 1172 |
+
const rawHTML = marked.parse(message.content, { breaks: true });
|
| 1173 |
+
content = postProcessAiResponse(rawHTML);
|
| 1174 |
+
} else {
|
| 1175 |
+
content = message.content;
|
| 1176 |
+
}
|
| 1177 |
+
|
| 1178 |
+
const messageElement = createChatMessageElement(message.type, content);
|
| 1179 |
+
chatList.appendChild(messageElement);
|
| 1180 |
+
});
|
| 1181 |
+
chatList.scrollTo(0, chatList.scrollHeight);
|
| 1182 |
+
dockTypingArea(true); // Verrouiller la zone de saisie en bas si historique
|
| 1183 |
+
} else {
|
| 1184 |
+
// S'il n'y a pas de message, afficher le message de bienvenue
|
| 1185 |
+
if (initialWelcome) initialWelcome.style.display = 'flex';
|
| 1186 |
+
if (initialWelcomeHeader) initialWelcomeHeader.style.display = 'none'; // Masquer le titre d'en-tête
|
| 1187 |
+
dockTypingArea(false); // Laisser la zone de saisie centrée
|
| 1188 |
+
}
|
| 1189 |
+
|
| 1190 |
+
// 3. Charger les Chats Récents
|
| 1191 |
+
const recentChats = JSON.parse(localStorage.getItem("recentChats") || "[]");
|
| 1192 |
+
renderRecentChats(recentChats);
|
| 1193 |
+
|
| 1194 |
+
// 4. Initialiser le compteur de caractères et le bouton d'envoi
|
| 1195 |
+
updateCharCount();
|
| 1196 |
+
updateSendButtonIcon();
|
| 1197 |
+
}
|
| 1198 |
+
|
| 1199 |
+
// Sauvegarde un message
|
| 1200 |
+
const saveMessage = (type, content) => {
|
| 1201 |
+
const savedChats = localStorage.getItem("currentChatMessages") || "[]";
|
| 1202 |
+
const messages = JSON.parse(savedChats);
|
| 1203 |
+
messages.push({ type, content, timestamp: new Date().toISOString() });
|
| 1204 |
+
localStorage.setItem("currentChatMessages", JSON.stringify(messages));
|
| 1205 |
+
}
|
| 1206 |
+
|
| 1207 |
+
// Sauvegarde un nouveau chat dans l'historique
|
| 1208 |
+
const saveNewRecentChat = (title) => {
|
| 1209 |
+
let recentChats = JSON.parse(localStorage.getItem("recentChats") || "[]");
|
| 1210 |
+
const newChat = {
|
| 1211 |
+
id: Date.now(),
|
| 1212 |
+
title: title,
|
| 1213 |
+
timestamp: new Date().toISOString()
|
| 1214 |
+
};
|
| 1215 |
+
|
| 1216 |
+
// Ajouter le nouveau chat en haut
|
| 1217 |
+
recentChats.unshift(newChat);
|
| 1218 |
+
|
| 1219 |
+
// Limiter à MAX_RECENT_CHATS
|
| 1220 |
+
if (recentChats.length > MAX_RECENT_CHATS) {
|
| 1221 |
+
recentChats = recentChats.slice(0, MAX_RECENT_CHATS);
|
| 1222 |
+
}
|
| 1223 |
+
|
| 1224 |
+
localStorage.setItem("recentChats", JSON.stringify(recentChats));
|
| 1225 |
+
renderRecentChats(recentChats);
|
| 1226 |
+
}
|
| 1227 |
+
|
| 1228 |
+
// Rendu des chats récents
|
| 1229 |
+
const renderRecentChats = (chats) => {
|
| 1230 |
+
recentChatsList.innerHTML = '';
|
| 1231 |
+
if (chats.length === 0) {
|
| 1232 |
+
const emptyItem = document.createElement('li');
|
| 1233 |
+
emptyItem.classList.add('empty');
|
| 1234 |
+
emptyItem.innerHTML = `<span class="text" style="opacity:1;">Aucun chat récent</span>`;
|
| 1235 |
+
recentChatsList.appendChild(emptyItem);
|
| 1236 |
+
return;
|
| 1237 |
+
}
|
| 1238 |
+
|
| 1239 |
+
chats.forEach(chat => {
|
| 1240 |
+
const li = document.createElement('li');
|
| 1241 |
+
li.innerHTML = `
|
| 1242 |
+
<span class="icon material-symbols-rounded">chat</span>
|
| 1243 |
+
<span class="text">${chat.title}</span>
|
| 1244 |
+
`;
|
| 1245 |
+
recentChatsList.appendChild(li);
|
| 1246 |
+
});
|
| 1247 |
+
}
|
| 1248 |
+
|
| 1249 |
+
|
| 1250 |
+
// --- LOGIQUE DE CHAT ---
|
| 1251 |
+
|
| 1252 |
+
// Garde la référence au div de réponse IA en cours de construction
|
| 1253 |
+
let currentAiResponseDiv = null;
|
| 1254 |
+
|
| 1255 |
+
/**
|
| 1256 |
+
* Crée un élément de message (pour utilisateur ou IA).
|
| 1257 |
+
* @param {string} type - 'user' ou 'ai'.
|
| 1258 |
+
* @param {string} content - Le contenu du message. (Peut être HTML pour l'IA)
|
| 1259 |
+
* @returns {HTMLElement} L'élément HTML du message.
|
| 1260 |
+
*/
|
| 1261 |
+
const createChatMessageElement = (type, content) => {
|
| 1262 |
+
const chatDiv = document.createElement("div");
|
| 1263 |
+
chatDiv.classList.add("chat-message", type);
|
| 1264 |
+
const icon = type === "user" ? "person" : "psychology";
|
| 1265 |
+
|
| 1266 |
+
if (type === "user") {
|
| 1267 |
+
// Le style CSS applique la nouvelle couleur de fond uniforme
|
| 1268 |
+
const html = `<div class="text-content">${content}</div>`;
|
| 1269 |
+
chatDiv.innerHTML = html;
|
| 1270 |
+
} else {
|
| 1271 |
+
// Structure IA inchangée
|
| 1272 |
+
const html = `
|
| 1273 |
+
<span class="avatar material-symbols-rounded">${icon}</span>
|
| 1274 |
+
<div class="text-content">${content}</div>
|
| 1275 |
+
`;
|
| 1276 |
+
chatDiv.innerHTML = html;
|
| 1277 |
+
}
|
| 1278 |
+
|
| 1279 |
+
return chatDiv;
|
| 1280 |
+
}
|
| 1281 |
+
|
| 1282 |
+
// NOUVELLE FONCTION: Envoie le prompt et gère le streaming SSE avec EventSource
|
| 1283 |
+
const generateResponse = async (userText, files) => {
|
| 1284 |
+
if (isResponseGenerating) return;
|
| 1285 |
+
|
| 1286 |
+
// 1. Démarrer le chargement et créer le message IA vide
|
| 1287 |
+
isResponseGenerating = true;
|
| 1288 |
+
sendButton.textContent = "stop"; // CHANGER L'ICÔNE EN 'stop'
|
| 1289 |
+
sendButton.classList.add('active'); // Garder le bouton actif/stylisé pour 'stop'
|
| 1290 |
+
|
| 1291 |
+
// Créer le message de l'IA avec animation de "Raisonnement en cours..."
|
| 1292 |
+
const loadingHtml = '<div class="typing-animation"><div class="thought-animation"></div>Raisonnement en cours...</div>';
|
| 1293 |
+
currentAiResponseDiv = createChatMessageElement("ai", loadingHtml);
|
| 1294 |
+
chatList.appendChild(currentAiResponseDiv);
|
| 1295 |
+
|
| 1296 |
+
// Défilement forcé : doit avoir été fait dans handleOutgoingChat avant cet appel
|
| 1297 |
+
// chatList.scrollTo(0, chatList.scrollHeight);
|
| 1298 |
+
|
| 1299 |
+
// Variable pour stocker le texte généré par l'IA (en Markdown brut)
|
| 1300 |
+
let fullGeneratedText = "";
|
| 1301 |
+
|
| 1302 |
+
// --- MODIFICATION ICI : Préparation de la requête fetch (pour POST MULTIPART) ---
|
| 1303 |
+
const formData = new FormData();
|
| 1304 |
+
formData.append('prompt', userText);
|
| 1305 |
+
|
| 1306 |
+
// Ajouter les fichiers au FormData
|
| 1307 |
+
files.forEach((file) => {
|
| 1308 |
+
// 'file' doit correspondre au nom de champ attendu par l'API (ici, 'file')
|
| 1309 |
+
formData.append('file', file, file.name);
|
| 1310 |
+
});
|
| 1311 |
+
|
| 1312 |
+
const requestOptions = {
|
| 1313 |
+
method: 'POST',
|
| 1314 |
+
// NE PAS DÉFINIR Content-Type. fetch le fera automatiquement pour FormData.
|
| 1315 |
+
body: formData
|
| 1316 |
+
};
|
| 1317 |
+
|
| 1318 |
+
// Envoie la requête POST synchrone pour commencer le stream SSE sur le serveur
|
| 1319 |
+
try {
|
| 1320 |
+
const response = await fetch(API_URL, requestOptions);
|
| 1321 |
+
|
| 1322 |
+
if (!response.ok) {
|
| 1323 |
+
// Si l'appel POST échoue, cela signifie une erreur côté Flask (proxy)
|
| 1324 |
+
// Tenter de lire le JSON si possible, sinon utiliser le statut
|
| 1325 |
+
let errorDetails = `Erreur HTTP ${response.status} du proxy.`;
|
| 1326 |
+
try {
|
| 1327 |
+
const errorJson = await response.json();
|
| 1328 |
+
errorDetails = errorJson.error || errorDetails;
|
| 1329 |
+
} catch (e) {
|
| 1330 |
+
// Ignorer l'erreur de parsing si ce n'est pas du JSON
|
| 1331 |
+
}
|
| 1332 |
+
throw new Error(errorDetails);
|
| 1333 |
+
}
|
| 1334 |
+
|
| 1335 |
+
// IMPORTANT: L'EventSource ne fonctionne pas directement avec une requête POST.
|
| 1336 |
+
// Nous devons passer par un ReadableStream et le décoder manuellement.
|
| 1337 |
+
|
| 1338 |
+
const reader = response.body.getReader();
|
| 1339 |
+
const decoder = new TextDecoder("utf-8");
|
| 1340 |
+
let buffer = "";
|
| 1341 |
+
|
| 1342 |
+
// Retirer l'animation de chargement et préparer la zone de texte
|
| 1343 |
+
const textContentDiv = currentAiResponseDiv.querySelector('.text-content');
|
| 1344 |
+
textContentDiv.innerHTML = ''; // Vider le contenu du chargement
|
| 1345 |
+
|
| 1346 |
+
while(true) {
|
| 1347 |
+
const { value, done } = await reader.read();
|
| 1348 |
+
if (done) break;
|
| 1349 |
+
|
| 1350 |
+
// Ajouter le nouveau morceau de données au buffer
|
| 1351 |
+
buffer += decoder.decode(value, { stream: true });
|
| 1352 |
+
|
| 1353 |
+
// Traiter les événements SSE
|
| 1354 |
+
let events = buffer.split('\n\n');
|
| 1355 |
+
buffer = events.pop(); // Garder l'événement incomplet dans le buffer
|
| 1356 |
+
|
| 1357 |
+
events.forEach(eventStr => {
|
| 1358 |
+
if (!eventStr) return;
|
| 1359 |
+
|
| 1360 |
+
let eventType = null;
|
| 1361 |
+
let eventData = null;
|
| 1362 |
+
|
| 1363 |
+
// Parse les lignes de l'événement (data: ..., event: ...)
|
| 1364 |
+
eventStr.split('\n').forEach(line => {
|
| 1365 |
+
if (line.startsWith('event: ')) {
|
| 1366 |
+
eventType = line.substring(7).trim();
|
| 1367 |
+
} else if (line.startsWith('data: ')) {
|
| 1368 |
+
eventData = line.substring(6).trim();
|
| 1369 |
+
}
|
| 1370 |
+
});
|
| 1371 |
+
|
| 1372 |
+
if (eventType === 'token' && eventData) {
|
| 1373 |
+
try {
|
| 1374 |
+
const data = JSON.parse(eventData);
|
| 1375 |
+
const token = data.text;
|
| 1376 |
+
|
| 1377 |
+
if (token) {
|
| 1378 |
+
// 1. CONCATÉNER le nouveau token au texte complet (Markdown)
|
| 1379 |
+
fullGeneratedText += token;
|
| 1380 |
+
|
| 1381 |
+
// 2. CONVERTIR le texte complet actuel de Markdown en HTML
|
| 1382 |
+
const renderedHTML = marked.parse(fullGeneratedText, { breaks: true });
|
| 1383 |
+
|
| 1384 |
+
// 3. POST-TRAITEMENT : Ajouter le bouton Copier et appliquer Highlight.js
|
| 1385 |
+
const processedHTML = postProcessAiResponse(renderedHTML);
|
| 1386 |
+
|
| 1387 |
+
// 4. REMPLACER le contenu de la div avec le nouveau HTML converti et manipulé
|
| 1388 |
+
textContentDiv.innerHTML = processedHTML;
|
| 1389 |
+
|
| 1390 |
+
// 5. Défilement forcé pour que le nouveau texte soit visible
|
| 1391 |
+
chatList.scrollTo(0, chatList.scrollHeight);
|
| 1392 |
+
}
|
| 1393 |
+
} catch (e) {
|
| 1394 |
+
console.error("Erreur de parsing JSON pour le token:", e);
|
| 1395 |
+
}
|
| 1396 |
+
} else if (eventType === 'end') {
|
| 1397 |
+
// C'est la fin du stream, on sort de la boucle principale
|
| 1398 |
+
reader.cancel();
|
| 1399 |
+
}
|
| 1400 |
+
});
|
| 1401 |
+
}
|
| 1402 |
+
|
| 1403 |
+
// 4. Sauvegarder la réponse complète de l'IA (le texte brut en Markdown)
|
| 1404 |
+
// Note : On sauvegarde le brut Markdown, pas le HTML traité.
|
| 1405 |
+
saveMessage("ai", fullGeneratedText);
|
| 1406 |
+
|
| 1407 |
+
// 5. Sauvegarder dans l'historique récent (seulement pour la première paire de messages)
|
| 1408 |
+
const totalMessages = chatList.querySelectorAll('.chat-message').length;
|
| 1409 |
+
if (totalMessages === 2) {
|
| 1410 |
+
// Ajoute un préfixe si des fichiers sont inclus
|
| 1411 |
+
let chatTitle = userText;
|
| 1412 |
+
if (files.length > 0) {
|
| 1413 |
+
chatTitle = `[${files.length} Fichiers] ` + chatTitle;
|
| 1414 |
+
}
|
| 1415 |
+
saveNewRecentChat(chatTitle.substring(0, 30) + (chatTitle.length > 30 ? "..." : ""));
|
| 1416 |
+
}
|
| 1417 |
+
|
| 1418 |
+
} catch (error) {
|
| 1419 |
+
console.error("Erreur lors de la génération de la réponse:", error);
|
| 1420 |
+
|
| 1421 |
+
let errorMessage = `Désolé, une erreur est survenue lors de la connexion à l'IA : ${error.message}.`;
|
| 1422 |
+
|
| 1423 |
+
// Assurez-vous que l'élément de chargement existe avant de tenter de le modifier/supprimer
|
| 1424 |
+
const textContentDiv = currentAiResponseDiv ? currentAiResponseDiv.querySelector('.text-content') : null;
|
| 1425 |
+
|
| 1426 |
+
if (textContentDiv) {
|
| 1427 |
+
textContentDiv.innerHTML = `<div style="color:red;">${errorMessage}</div>`;
|
| 1428 |
+
} else {
|
| 1429 |
+
// Si le message n'a pas pu être créé (cas rare), ajouter un nouveau message d'erreur
|
| 1430 |
+
const errorDiv = createChatMessageElement("ai", `<div style="color:red;">${errorMessage}</div>`);
|
| 1431 |
+
chatList.appendChild(errorDiv);
|
| 1432 |
+
}
|
| 1433 |
+
|
| 1434 |
+
chatList.scrollTo(0, chatList.scrollHeight);
|
| 1435 |
+
|
| 1436 |
+
} finally {
|
| 1437 |
+
isResponseGenerating = false;
|
| 1438 |
+
sendButton.textContent = "send"; // REMETTRE L'ICÔNE EN 'send'
|
| 1439 |
+
sendButton.classList.remove('active'); // Enlever la classe active
|
| 1440 |
+
updateSendButtonIcon(); // Rétablit l'icône appropriée (micro ou send)
|
| 1441 |
+
currentAiResponseDiv = null;
|
| 1442 |
+
}
|
| 1443 |
+
}
|
| 1444 |
+
|
| 1445 |
+
|
| 1446 |
+
/**
|
| 1447 |
+
* Copie le code dans le presse-papiers et met à jour le bouton.
|
| 1448 |
+
* @param {HTMLElement} btn - Le bouton de copie.
|
| 1449 |
+
* @param {string} code - Le texte à copier.
|
| 1450 |
+
*/
|
| 1451 |
+
const copyCode = (btn, code) => {
|
| 1452 |
+
if (navigator.clipboard) {
|
| 1453 |
+
navigator.clipboard.writeText(code).then(() => {
|
| 1454 |
+
// Mettre à jour le texte du bouton après la copie
|
| 1455 |
+
const originalText = btn.innerHTML;
|
| 1456 |
+
btn.innerHTML = '<span class="material-symbols-rounded">done</span>Copié!';
|
| 1457 |
+
setTimeout(() => {
|
| 1458 |
+
btn.innerHTML = originalText;
|
| 1459 |
+
}, 2000);
|
| 1460 |
+
}).catch(err => {
|
| 1461 |
+
console.error('Erreur lors de la copie: ', err);
|
| 1462 |
+
});
|
| 1463 |
+
} else {
|
| 1464 |
+
alert("Votre navigateur ne supporte pas l'API Clipboard.");
|
| 1465 |
+
}
|
| 1466 |
+
};
|
| 1467 |
+
|
| 1468 |
+
// --- NOUVELLE LOGIQUE POUR LA GESTION DES FICHIERS ---
|
| 1469 |
+
|
| 1470 |
+
/**
|
| 1471 |
+
* Met à jour l'affichage des badges de fichiers dans la zone de saisie.
|
| 1472 |
+
*/
|
| 1473 |
+
const renderFileBadges = () => {
|
| 1474 |
+
fileDisplayArea.innerHTML = ''; // Nettoyer l'affichage
|
| 1475 |
+
|
| 1476 |
+
if (selectedFiles.length === 0) {
|
| 1477 |
+
fileDisplayArea.style.display = 'none';
|
| 1478 |
+
} else {
|
| 1479 |
+
fileDisplayArea.style.display = 'flex';
|
| 1480 |
+
}
|
| 1481 |
+
|
| 1482 |
+
selectedFiles.forEach((file, index) => {
|
| 1483 |
+
const badge = document.createElement('div');
|
| 1484 |
+
badge.classList.add('file-badge');
|
| 1485 |
+
|
| 1486 |
+
// Afficher le nom tronqué et la taille (optionnel)
|
| 1487 |
+
const displayName = file.name.length > 20 ? file.name.substring(0, 17) + '...' : file.name;
|
| 1488 |
+
|
| 1489 |
+
badge.innerHTML = `
|
| 1490 |
+
<span>${displayName}</span>
|
| 1491 |
+
<button class="delete-file-btn" data-index="${index}" title="Supprimer le fichier">
|
| 1492 |
+
<span class="material-symbols-rounded">close</span>
|
| 1493 |
+
</button>
|
| 1494 |
+
`;
|
| 1495 |
+
|
| 1496 |
+
fileDisplayArea.appendChild(badge);
|
| 1497 |
+
});
|
| 1498 |
+
|
| 1499 |
+
// Ajouter l'écouteur pour la suppression
|
| 1500 |
+
fileDisplayArea.querySelectorAll('.delete-file-btn').forEach(btn => {
|
| 1501 |
+
btn.addEventListener('click', (e) => {
|
| 1502 |
+
e.stopPropagation();
|
| 1503 |
+
const indexToDelete = parseInt(e.currentTarget.getAttribute('data-index'));
|
| 1504 |
+
// Supprimer du tableau et rafraîchir
|
| 1505 |
+
selectedFiles.splice(indexToDelete, 1);
|
| 1506 |
+
// Réinitialiser le fileInput pour permettre la sélection du fichier supprimé à nouveau (si on utilisait un vrai FileList)
|
| 1507 |
+
fileInput.value = '';
|
| 1508 |
+
renderFileBadges();
|
| 1509 |
+
updateSendButtonIcon(); // Mettre à jour l'icône si des fichiers sont supprimés
|
| 1510 |
+
});
|
| 1511 |
+
});
|
| 1512 |
+
|
| 1513 |
+
// Mise à jour de l'icône d'envoi lorsque l'état des fichiers change
|
| 1514 |
+
updateSendButtonIcon();
|
| 1515 |
+
};
|
| 1516 |
+
|
| 1517 |
+
// --- NOUVELLE LOGIQUE POUR LA LIMITE DE CARACTÈRES ---
|
| 1518 |
+
|
| 1519 |
+
/**
|
| 1520 |
+
* Met à jour le compteur de caractères.
|
| 1521 |
+
*/
|
| 1522 |
+
const updateCharCount = () => {
|
| 1523 |
+
const currentLength = typingInput.value.length;
|
| 1524 |
+
charCountSpan.textContent = `${currentLength} / ${MAX_TEXT_LENGTH}`;
|
| 1525 |
+
|
| 1526 |
+
if (currentLength > MAX_TEXT_LENGTH) {
|
| 1527 |
+
charCountSpan.classList.add('error');
|
| 1528 |
+
} else {
|
| 1529 |
+
charCountSpan.classList.remove('error');
|
| 1530 |
+
}
|
| 1531 |
+
};
|
| 1532 |
+
|
| 1533 |
+
// --- NOUVELLE LOGIQUE POUR L'ICÔNE DU BOUTON D'ENVOI ---
|
| 1534 |
+
|
| 1535 |
+
/**
|
| 1536 |
+
* Change l'icône du bouton d'envoi en fonction du contenu du texte ou de la présence de fichiers.
|
| 1537 |
+
* - 'mic_none' si le texte est vide ET aucun fichier sélectionné.
|
| 1538 |
+
* - 'send' si du texte est présent OU des fichiers sont sélectionnés.
|
| 1539 |
+
*/
|
| 1540 |
+
const updateSendButtonIcon = () => {
|
| 1541 |
+
if (isResponseGenerating) {
|
| 1542 |
+
// Si la réponse est en cours, on ne touche pas à l'icône 'stop'
|
| 1543 |
+
return;
|
| 1544 |
+
}
|
| 1545 |
+
|
| 1546 |
+
const hasText = typingInput.value.trim().length > 0;
|
| 1547 |
+
const hasFiles = selectedFiles.length > 0;
|
| 1548 |
+
|
| 1549 |
+
if (hasText || hasFiles) {
|
| 1550 |
+
sendButton.textContent = "send";
|
| 1551 |
+
sendButton.classList.add('active'); // Activer le style
|
| 1552 |
+
} else {
|
| 1553 |
+
sendButton.textContent = "mic_none";
|
| 1554 |
+
sendButton.classList.remove('active'); // Retirer le style
|
| 1555 |
+
}
|
| 1556 |
+
};
|
| 1557 |
+
|
| 1558 |
+
|
| 1559 |
+
/**
|
| 1560 |
+
* Gère l'envoi du message utilisateur.
|
| 1561 |
+
*/
|
| 1562 |
+
const handleOutgoingChat = () => {
|
| 1563 |
+
if (isResponseGenerating) return; // Empêcher l'envoi pendant la génération
|
| 1564 |
+
|
| 1565 |
+
userMessage = typingInput.value.trim();
|
| 1566 |
+
|
| 1567 |
+
// Vérifier la limite de caractères
|
| 1568 |
+
if (userMessage.length > MAX_TEXT_LENGTH) {
|
| 1569 |
+
alert(`Erreur: Le texte saisi dépasse la limite de ${MAX_TEXT_LENGTH} caractères.`);
|
| 1570 |
+
return;
|
| 1571 |
+
}
|
| 1572 |
+
|
| 1573 |
+
if (!userMessage && selectedFiles.length === 0) {
|
| 1574 |
+
// Si c'est vide (et l'icône est 'mic_none'), on peut déclencher l'enregistrement vocal (non implémenté)
|
| 1575 |
+
console.log("Tentative d'enregistrement vocal (non implémenté)");
|
| 1576 |
+
return;
|
| 1577 |
+
}
|
| 1578 |
+
|
| 1579 |
+
|
| 1580 |
+
// 2. Ancrer la zone de saisie en bas dès le premier message
|
| 1581 |
+
dockTypingArea(true);
|
| 1582 |
+
|
| 1583 |
+
// Masquer le message de bienvenue initial (maintenant fait dans dockTypingArea)
|
| 1584 |
+
// if (initialWelcome) initialWelcome.style.display = 'none';
|
| 1585 |
+
|
| 1586 |
+
// 1. Préparer le contenu du message utilisateur
|
| 1587 |
+
let contentForDisplay = userMessage;
|
| 1588 |
+
if (selectedFiles.length > 0) {
|
| 1589 |
+
const fileListHtml = selectedFiles.map(f => `<span style="font-size:0.9em; display:block; color:#007bff;">[Fichier: ${f.name}]</span>`).join('');
|
| 1590 |
+
contentForDisplay = fileListHtml + (userMessage ? `<br><br>${userMessage}` : '');
|
| 1591 |
+
}
|
| 1592 |
+
|
| 1593 |
+
|
| 1594 |
+
// 2. Afficher le message de l'utilisateur
|
| 1595 |
+
const userDiv = createChatMessageElement("user", contentForDisplay);
|
| 1596 |
+
chatList.appendChild(userDiv);
|
| 1597 |
+
|
| 1598 |
+
// NOUVEAU: Défilement forcé pour que le nouveau message (et la réponse IA) soit affiché en haut de la fenêtre.
|
| 1599 |
+
chatList.scrollTo(0, chatList.scrollHeight);
|
| 1600 |
+
|
| 1601 |
+
// 3. Sauvegarder le message
|
| 1602 |
+
saveMessage("user", contentForDisplay); // Sauvegarde le HTML de l'utilisateur pour l'historique local
|
| 1603 |
+
|
| 1604 |
+
// 4. Obtenir la réponse de l'IA (passe le texte et les fichiers)
|
| 1605 |
+
generateResponse(userMessage, selectedFiles);
|
| 1606 |
+
|
| 1607 |
+
// 5. Nettoyer l'entrée et l'état des fichiers
|
| 1608 |
+
typingInput.value = "";
|
| 1609 |
+
typingInput.style.height = 'auto'; // Réinitialiser la hauteur
|
| 1610 |
+
selectedFiles = []; // Vider le tableau des fichiers
|
| 1611 |
+
renderFileBadges(); // Nettoyer l'affichage des badges
|
| 1612 |
+
updateCharCount(); // Réinitialiser le compteur
|
| 1613 |
+
updateSendButtonIcon(); // Rétablit l'icône à 'mic_none'
|
| 1614 |
+
typingInput.focus();
|
| 1615 |
+
}
|
| 1616 |
+
|
| 1617 |
+
// Fonction pour gérer la navigation vers Connexion/Profil (utilisée par les deux boutons)
|
| 1618 |
+
const handleLoginNavigation = () => {
|
| 1619 |
+
console.log("Naviguer vers la page de Connexion / Profil...");
|
| 1620 |
+
alert("Fonctionnalité de Connexion / Profil (non implémentée)");
|
| 1621 |
+
}
|
| 1622 |
+
|
| 1623 |
+
// Fonction pour gérer la navigation vers la page principale (utilisée par le bouton de marque)
|
| 1624 |
+
const handleBrandNavigation = () => {
|
| 1625 |
+
console.log("Naviguer vers la page d'accueil...");
|
| 1626 |
+
alert("Fonctionnalité de navigation Accueil (non implémentée)");
|
| 1627 |
+
}
|
| 1628 |
+
|
| 1629 |
+
// Fonction pour gérer le bouton Ernest Plus
|
| 1630 |
+
const handleErnestPlusNavigation = () => {
|
| 1631 |
+
console.log("Naviguer vers la page ErnestMind Plus...");
|
| 1632 |
+
alert("Fonctionnalité d'abonnement ErnestMind Plus (non implémentée)");
|
| 1633 |
+
}
|
| 1634 |
+
|
| 1635 |
+
|
| 1636 |
+
// --- GESTION DES ÉVÉNEMENTS ---
|
| 1637 |
+
|
| 1638 |
+
// Événement de soumission du formulaire
|
| 1639 |
+
typingForm.addEventListener("submit", (e) => {
|
| 1640 |
+
e.preventDefault();
|
| 1641 |
+
|
| 1642 |
+
// Logique pour le bouton 'stop'
|
| 1643 |
+
if (isResponseGenerating) {
|
| 1644 |
+
// Pour EventSource, vous devez le fermer
|
| 1645 |
+
if (activeEventSource) {
|
| 1646 |
+
activeEventSource.close();
|
| 1647 |
+
activeEventSource = null;
|
| 1648 |
+
}
|
| 1649 |
+
// Réinitialiser l'état (pour cette simulation simple)
|
| 1650 |
+
console.log("Arrêt de la génération de réponse...");
|
| 1651 |
+
isResponseGenerating = false;
|
| 1652 |
+
sendButton.textContent = "send";
|
| 1653 |
+
sendButton.classList.remove('active');
|
| 1654 |
+
// Retirer l'animation de chargement si elle existe et remplacer par un message
|
| 1655 |
+
if (currentAiResponseDiv) {
|
| 1656 |
+
const textContentDiv = currentAiResponseDiv.querySelector('.text-content');
|
| 1657 |
+
// On ne supprime pas le message, on le laisse tel quel et on ajoute un indicateur
|
| 1658 |
+
if (textContentDiv && textContentDiv.querySelector('.typing-animation')) {
|
| 1659 |
+
// On met à jour l'affichage avec le HTML déjà converti
|
| 1660 |
+
// NOTE: fullGeneratedText n'est pas accessible ici facilement sans un changement
|
| 1661 |
+
// On va simplement afficher un message d'arrêt.
|
| 1662 |
+
textContentDiv.innerHTML = 'Génération arrêtée. Veuillez soumettre une nouvelle requête.';
|
| 1663 |
+
}
|
| 1664 |
+
}
|
| 1665 |
+
currentAiResponseDiv = null;
|
| 1666 |
+
updateSendButtonIcon(); // Rétablit l'icône appropriée (micro ou send)
|
| 1667 |
+
} else {
|
| 1668 |
+
handleOutgoingChat();
|
| 1669 |
+
}
|
| 1670 |
+
});
|
| 1671 |
+
|
| 1672 |
+
// Auto-redimensionnement du textarea
|
| 1673 |
+
typingInput.addEventListener("input", () => {
|
| 1674 |
+
typingInput.style.height = 'auto';
|
| 1675 |
+
typingInput.style.height = typingInput.scrollHeight + 'px';
|
| 1676 |
+
updateCharCount(); // Mettre à jour le compteur à chaque saisie
|
| 1677 |
+
updateSendButtonIcon(); // Mettre à jour l'icône d'envoi
|
| 1678 |
+
});
|
| 1679 |
+
|
| 1680 |
+
// Gestion du bouton 'Nouveau Chat'
|
| 1681 |
+
document.querySelector(".new-chat").addEventListener("click", () => {
|
| 1682 |
+
// S'assurer d'arrêter le stream si on clique sur Nouveau Chat
|
| 1683 |
+
if (activeEventSource) {
|
| 1684 |
+
activeEventSource.close();
|
| 1685 |
+
activeEventSource = null;
|
| 1686 |
+
}
|
| 1687 |
+
isResponseGenerating = false;
|
| 1688 |
+
sendButton.textContent = "send";
|
| 1689 |
+
|
| 1690 |
+
localStorage.removeItem("currentChatMessages"); // Efface la discussion en cours
|
| 1691 |
+
chatList.innerHTML = ''; // Nettoyer l'affichage
|
| 1692 |
+
|
| 1693 |
+
// Nettoyer l'état des fichiers
|
| 1694 |
+
selectedFiles = [];
|
| 1695 |
+
renderFileBadges();
|
| 1696 |
+
typingInput.value = "";
|
| 1697 |
+
typingInput.style.height = 'auto';
|
| 1698 |
+
updateCharCount();
|
| 1699 |
+
|
| 1700 |
+
// 2. Annuler l'ancrage de la zone de saisie pour la centrer
|
| 1701 |
+
dockTypingArea(false);
|
| 1702 |
+
|
| 1703 |
+
// Recharger les chats récents (qui affichera "Aucun chat récent")
|
| 1704 |
+
const recentChats = JSON.parse(localStorage.getItem("recentChats") || "[]");
|
| 1705 |
+
renderRecentChats(recentChats);
|
| 1706 |
+
|
| 1707 |
+
updateSendButtonIcon(); // Rétablit l'icône à 'mic_none'
|
| 1708 |
+
});
|
| 1709 |
+
|
| 1710 |
+
|
| 1711 |
+
// Gestion du changement de thème
|
| 1712 |
+
toggleThemeBtn.addEventListener("click", () => {
|
| 1713 |
+
document.body.classList.toggle("light_mode");
|
| 1714 |
+
const isLightmode = document.body.classList.contains("light_mode");
|
| 1715 |
+
localStorage.setItem("themeColor", isLightmode ? "light_mode" : "dark_mode");
|
| 1716 |
+
updateThemeIcon(isLightmode); // Mettre à jour l'icône
|
| 1717 |
+
});
|
| 1718 |
+
|
| 1719 |
+
// Gestion du clic sur le bouton de connexion/profil (en-tête du chat)
|
| 1720 |
+
loginButton.addEventListener('click', handleLoginNavigation);
|
| 1721 |
+
|
| 1722 |
+
// Gestion du clic sur le NOUVEAU bouton de marque
|
| 1723 |
+
brandToggleButton.addEventListener('click', handleBrandNavigation);
|
| 1724 |
+
|
| 1725 |
+
// Gestion du clic sur le NOUVEAU bouton Ernest Plus
|
| 1726 |
+
ernestPlusButton.addEventListener('click', handleErnestPlusNavigation);
|
| 1727 |
+
|
| 1728 |
+
// Gestion du clic sur le bouton d'importation de fichiers (+)
|
| 1729 |
+
fileUploadBtn.addEventListener('click', () => {
|
| 1730 |
+
fileInput.click(); // Ouvre la fenêtre de sélection de fichiers
|
| 1731 |
+
});
|
| 1732 |
+
|
| 1733 |
+
// Gestion de la sélection de fichiers (Mise à jour pour la limite de 10)
|
| 1734 |
+
fileInput.addEventListener('change', (event) => {
|
| 1735 |
+
const files = Array.from(event.target.files);
|
| 1736 |
+
|
| 1737 |
+
// Vider le tableau des fichiers si une nouvelle sélection a lieu
|
| 1738 |
+
selectedFiles = [];
|
| 1739 |
+
fileErrorMessage.style.display = 'none';
|
| 1740 |
+
|
| 1741 |
+
if (files.length > 0) {
|
| 1742 |
+
if (files.length > MAX_FILES) {
|
| 1743 |
+
fileErrorMessage.style.display = 'block';
|
| 1744 |
+
// Ne prendre que les 10 premiers
|
| 1745 |
+
selectedFiles = files.slice(0, MAX_FILES);
|
| 1746 |
+
// L'input doit être vidé pour permettre de resélectionner le même fichier si l'utilisateur annule plus tard
|
| 1747 |
+
fileInput.value = '';
|
| 1748 |
+
} else {
|
| 1749 |
+
selectedFiles = files;
|
| 1750 |
+
}
|
| 1751 |
+
|
| 1752 |
+
renderFileBadges();
|
| 1753 |
+
}
|
| 1754 |
+
});
|
| 1755 |
+
|
| 1756 |
+
|
| 1757 |
+
// --- LOGIQUE DYNAMIQUE DE LA BARRE LATÉRALE ---
|
| 1758 |
+
|
| 1759 |
+
|
| 1760 |
+
// A) Ouvrir la sidebar au survol de la zone de la sidebar
|
| 1761 |
+
sidebar.addEventListener('mouseenter', () => {
|
| 1762 |
+
// Uniquement sur desktop
|
| 1763 |
+
if (window.innerWidth > 768) {
|
| 1764 |
+
sidebar.classList.add('open');
|
| 1765 |
+
}
|
| 1766 |
+
});
|
| 1767 |
+
|
| 1768 |
+
// B) Fermer la sidebar quand la souris quitte la zone
|
| 1769 |
+
sidebar.addEventListener('mouseleave', () => {
|
| 1770 |
+
// Uniquement sur desktop
|
| 1771 |
+
if (window.innerWidth > 768) {
|
| 1772 |
+
sidebar.classList.remove('open');
|
| 1773 |
+
}
|
| 1774 |
+
});
|
| 1775 |
+
|
| 1776 |
+
// C) Bouton Menu pour ouvrir/fermer (pour mobile/accessibilité)
|
| 1777 |
+
sidebarToggleBtn.addEventListener('click', (e) => {
|
| 1778 |
+
e.stopPropagation(); // Empêche la fermeture immédiate
|
| 1779 |
+
sidebar.classList.toggle('open');
|
| 1780 |
+
});
|
| 1781 |
+
|
| 1782 |
+
// D) Fermer la sidebar quand on clique n'importe où ailleurs (pour mobile/touch)
|
| 1783 |
+
document.addEventListener('click', (e) => {
|
| 1784 |
+
// Si la sidebar est ouverte ET que le clic n'est PAS dans la sidebar
|
| 1785 |
+
if (sidebar.classList.contains('open') && !sidebar.contains(e.target)) {
|
| 1786 |
+
// Ferme la sidebar seulement si l'écran est petit (comportement mobile)
|
| 1787 |
+
if (window.innerWidth <= 768) {
|
| 1788 |
+
sidebar.classList.remove('open');
|
| 1789 |
+
}
|
| 1790 |
+
}
|
| 1791 |
+
});
|
| 1792 |
+
|
| 1793 |
+
|
| 1794 |
+
// --- INITIALISATION ---
|
| 1795 |
+
window.onload = loadLocalstorageData;
|
| 1796 |
+
</script>
|
| 1797 |
+
</body>
|
| 1798 |
+
|
| 1799 |
+
</html>
|
a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/checkout.html
ADDED
|
@@ -0,0 +1,278 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="fr" class="dark">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<link rel="icon" type="image/png" href="https://i.imgur.com/7Gn3toV.png">
|
| 7 |
+
<title>Paiement - GitForge</title>
|
| 8 |
+
<link rel="stylesheet"
|
| 9 |
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" />
|
| 10 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 11 |
+
<script src="https://js.stripe.com/v3/"></script>
|
| 12 |
+
<style>
|
| 13 |
+
/* Variables de Thème - Couleurs Noir Foncé (Mode Sombre par défaut) */
|
| 14 |
+
:root, html.dark {
|
| 15 |
+
--bg-page: #181818; /* Noir très foncé, pas de bleu marine */
|
| 16 |
+
--bg-card: #282828;
|
| 17 |
+
--text-main: #EAEAEA;
|
| 18 |
+
--text-secondary: #B0B0B0;
|
| 19 |
+
--border-color: #404040;
|
| 20 |
+
--shadow-color: rgba(0, 0, 0, 0.5);
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
/* Mode Clair */
|
| 24 |
+
html.light {
|
| 25 |
+
--bg-page: #F5F5F5;
|
| 26 |
+
--bg-card: #FFFFFF;
|
| 27 |
+
--text-main: #202020;
|
| 28 |
+
--text-secondary: #5C5C5C;
|
| 29 |
+
--border-color: #E0E0E0;
|
| 30 |
+
--shadow-color: rgba(0, 0, 0, 0.1);
|
| 31 |
+
}
|
| 32 |
+
|
| 33 |
+
/* Application des variables */
|
| 34 |
+
body {
|
| 35 |
+
background-color: var(--bg-page);
|
| 36 |
+
color: var(--text-main);
|
| 37 |
+
transition: background-color 0.3s, color 0.3s;
|
| 38 |
+
}
|
| 39 |
+
|
| 40 |
+
.bg-gray-900 { background-color: var(--bg-page) !important; }
|
| 41 |
+
.text-white { color: var(--text-main) !important; }
|
| 42 |
+
.bg-gray-800, .bg-gray-800\/50 {
|
| 43 |
+
background-color: var(--bg-card) !important;
|
| 44 |
+
box-shadow: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -2px var(--shadow-color);
|
| 45 |
+
}
|
| 46 |
+
.text-gray-400 { color: var(--text-secondary) !important; }
|
| 47 |
+
.border-gray-700, .border-gray-800 { border-color: var(--border-color) !important; }
|
| 48 |
+
.text-gray-300 { color: var(--text-secondary) !important; } /* Utilisation de la même couleur pour uniformité */
|
| 49 |
+
.bg-gray-700 { background-color: #404040 !important; }
|
| 50 |
+
.theme-switch {
|
| 51 |
+
background: none;
|
| 52 |
+
border: none;
|
| 53 |
+
cursor: pointer;
|
| 54 |
+
color: var(--text-main);
|
| 55 |
+
font-size: 24px;
|
| 56 |
+
transition: color 0.2s;
|
| 57 |
+
padding: 0.5rem; /* Espace autour du bouton */
|
| 58 |
+
}
|
| 59 |
+
|
| 60 |
+
/* Style pour l'élément Stripe Elements (input) */
|
| 61 |
+
#card-element {
|
| 62 |
+
padding: 1rem;
|
| 63 |
+
border: 1px solid var(--border-color);
|
| 64 |
+
background-color: var(--bg-card);
|
| 65 |
+
border-radius: 0.5rem;
|
| 66 |
+
margin-bottom: 1rem;
|
| 67 |
+
color: var(--text-main); /* Assurez-vous que le texte par défaut est lisible */
|
| 68 |
+
}
|
| 69 |
+
</style>
|
| 70 |
+
</head>
|
| 71 |
+
<body class="min-h-screen">
|
| 72 |
+
|
| 73 |
+
<div class="container mx-auto p-4 sm:p-6 lg:p-8 max-w-7xl">
|
| 74 |
+
|
| 75 |
+
<header class="sticky top-0 z-50 flex flex-col sm:flex-row justify-between items-center py-4 border-b border-blue-500/50 mb-8 bg-gray-900" style="background-color: var(--bg-page); transition: background-color 0.3s;">
|
| 76 |
+
<a href="/" class="text-4xl font-extrabold text-blue-500 tracking-wider mb-4 sm:mb-0">
|
| 77 |
+
GitForge
|
| 78 |
+
</a>
|
| 79 |
+
<nav class="flex items-center space-x-4">
|
| 80 |
+
<a href="/mindus/nexus/documentation" class="px-4 py-2 text-white hover:text-blue-300 transition duration-200 font-medium">
|
| 81 |
+
Documentation
|
| 82 |
+
</a>
|
| 83 |
+
<a href="/mindus/nexus/a-propos" class="px-4 py-2 text-white hover:text-blue-300 transition duration-200 font-medium">
|
| 84 |
+
À Propos
|
| 85 |
+
</a>
|
| 86 |
+
|
| 87 |
+
<button id="theme-toggle" class="theme-switch" aria-label="Basculer le thème">
|
| 88 |
+
<span class="material-symbols-rounded">light_mode</span>
|
| 89 |
+
</button>
|
| 90 |
+
|
| 91 |
+
{% if is_logged_in %}
|
| 92 |
+
<a href="/mindus/nexus/dashboard" class="px-4 py-2 bg-blue-600 border border-blue-600 hover:bg-blue-700 font-medium transition duration-200">
|
| 93 |
+
Dashboard
|
| 94 |
+
</a>
|
| 95 |
+
{% else %}
|
| 96 |
+
<a href="/mindus/nexus/connexion" class="px-4 py-2 bg-blue-600 border border-blue-600 hover:bg-blue-700 font-medium transition duration-200">
|
| 97 |
+
Connexion
|
| 98 |
+
</a>
|
| 99 |
+
{% endif %}
|
| 100 |
+
</nav>
|
| 101 |
+
</header>
|
| 102 |
+
|
| 103 |
+
<main class="flex flex-col items-center">
|
| 104 |
+
|
| 105 |
+
<div class="max-w-xl w-full p-6 sm:p-8 bg-gray-800 shadow-2xl border-t-4 border-blue-500">
|
| 106 |
+
|
| 107 |
+
<h1 class="text-3xl font-extrabold text-white mb-6 text-center">
|
| 108 |
+
Finaliser votre Commande
|
| 109 |
+
</h1>
|
| 110 |
+
|
| 111 |
+
<div class="mb-8 border border-gray-700 p-4">
|
| 112 |
+
<h2 class="text-xl font-bold text-white mb-3 border-b border-gray-700 pb-2">
|
| 113 |
+
Récapitulatif
|
| 114 |
+
</h2>
|
| 115 |
+
|
| 116 |
+
<div class="space-y-2 text-gray-300">
|
| 117 |
+
<div class="flex justify-between">
|
| 118 |
+
<span>Plan Sélectionné:</span>
|
| 119 |
+
<span class="font-semibold text-white">{{ plan.title }}</span>
|
| 120 |
+
</div>
|
| 121 |
+
<div class="text-sm italic text-gray-400">
|
| 122 |
+
{{ plan.description }}
|
| 123 |
+
</div>
|
| 124 |
+
<div class="flex justify-between pt-2 border-t border-gray-700 font-bold text-lg text-yellow-400">
|
| 125 |
+
<span>Total (TVA incluse):</span>
|
| 126 |
+
<span>{{ plan.price_display }}</span>
|
| 127 |
+
</div>
|
| 128 |
+
</div>
|
| 129 |
+
</div>
|
| 130 |
+
|
| 131 |
+
<form id="payment-form">
|
| 132 |
+
<h2 class="text-xl font-bold text-white mb-4">
|
| 133 |
+
Informations de Paiement
|
| 134 |
+
</h2>
|
| 135 |
+
|
| 136 |
+
<div id="card-element" class="shadow-md">
|
| 137 |
+
</div>
|
| 138 |
+
|
| 139 |
+
<div id="card-errors" role="alert" class="text-red-500 text-sm mb-4"></div>
|
| 140 |
+
|
| 141 |
+
<button id="submit-button" class="w-full px-6 py-3 bg-blue-600 text-white text-lg font-bold shadow-md hover:bg-blue-700 transition duration-300" type="submit">
|
| 142 |
+
Payer maintenant {{ plan.price_display }}
|
| 143 |
+
</button>
|
| 144 |
+
</form>
|
| 145 |
+
|
| 146 |
+
</div>
|
| 147 |
+
|
| 148 |
+
</main>
|
| 149 |
+
|
| 150 |
+
<footer class="mt-12 pt-6 border-t border-gray-700 text-center text-gray-500 text-sm">
|
| 151 |
+
© 2025 GitForge. Paiement Sécurisé par Stripe.
|
| 152 |
+
</footer>
|
| 153 |
+
</div>
|
| 154 |
+
|
| 155 |
+
<script>
|
| 156 |
+
// Logique de bascule du mode sombre/clair (à inclure pour l'uniformité)
|
| 157 |
+
const themeToggle = document.getElementById('theme-toggle');
|
| 158 |
+
const htmlElement = document.documentElement;
|
| 159 |
+
const iconElement = themeToggle.querySelector('.material-symbols-rounded');
|
| 160 |
+
const savedTheme = localStorage.getItem('theme');
|
| 161 |
+
if (savedTheme === 'light') {
|
| 162 |
+
htmlElement.classList.remove('dark');
|
| 163 |
+
htmlElement.classList.add('light');
|
| 164 |
+
iconElement.textContent = 'dark_mode';
|
| 165 |
+
} else {
|
| 166 |
+
htmlElement.classList.add('dark');
|
| 167 |
+
htmlElement.classList.remove('light');
|
| 168 |
+
iconElement.textContent = 'light_mode';
|
| 169 |
+
}
|
| 170 |
+
themeToggle.addEventListener('click', () => {
|
| 171 |
+
if (htmlElement.classList.contains('light')) {
|
| 172 |
+
htmlElement.classList.remove('light');
|
| 173 |
+
htmlElement.classList.add('dark');
|
| 174 |
+
localStorage.setItem('theme', 'dark');
|
| 175 |
+
iconElement.textContent = 'light_mode';
|
| 176 |
+
} else {
|
| 177 |
+
htmlElement.classList.add('light');
|
| 178 |
+
htmlElement.classList.remove('dark');
|
| 179 |
+
localStorage.setItem('theme', 'light');
|
| 180 |
+
iconElement.textContent = 'dark_mode';
|
| 181 |
+
}
|
| 182 |
+
});
|
| 183 |
+
|
| 184 |
+
// =======================================================
|
| 185 |
+
// LOGIQUE D'INTÉGRATION STRIPE ELEMENTS
|
| 186 |
+
// =======================================================
|
| 187 |
+
const planId = new URLSearchParams(window.location.search).get('plan');
|
| 188 |
+
const stripe = Stripe("{{ stripe_public_key }}"); // Clé publique injectée par Jinja
|
| 189 |
+
const elements = stripe.elements();
|
| 190 |
+
const cardElement = elements.create('card', {
|
| 191 |
+
style: {
|
| 192 |
+
base: {
|
| 193 |
+
color: htmlElement.classList.contains('light') ? '#202020' : '#EAEAEA',
|
| 194 |
+
fontFamily: 'system-ui, sans-serif',
|
| 195 |
+
fontSmoothing: 'antialiased',
|
| 196 |
+
fontSize: '16px',
|
| 197 |
+
'::placeholder': {
|
| 198 |
+
color: htmlElement.classList.contains('light') ? '#5C5C5C' : '#B0B0B0',
|
| 199 |
+
},
|
| 200 |
+
},
|
| 201 |
+
invalid: {
|
| 202 |
+
color: '#EF4444',
|
| 203 |
+
iconColor: '#EF4444',
|
| 204 |
+
},
|
| 205 |
+
}
|
| 206 |
+
});
|
| 207 |
+
|
| 208 |
+
cardElement.mount('#card-element');
|
| 209 |
+
|
| 210 |
+
const form = document.getElementById('payment-form');
|
| 211 |
+
const submitButton = document.getElementById('submit-button');
|
| 212 |
+
const cardErrors = document.getElementById('card-errors');
|
| 213 |
+
let clientSecret = null; // Pour stocker le Client Secret reçu du backend
|
| 214 |
+
|
| 215 |
+
// 1. Récupérer le Client Secret du backend au chargement de la page
|
| 216 |
+
async function fetchClientSecret() {
|
| 217 |
+
try {
|
| 218 |
+
// Requête au backend pour créer le PaymentIntent
|
| 219 |
+
const response = await fetch('/api/create-payment-intent', {
|
| 220 |
+
method: 'POST',
|
| 221 |
+
headers: {
|
| 222 |
+
'Content-Type': 'application/json'
|
| 223 |
+
},
|
| 224 |
+
body: JSON.stringify({ plan_id: planId })
|
| 225 |
+
});
|
| 226 |
+
|
| 227 |
+
if (!response.ok) {
|
| 228 |
+
throw new Error('Erreur lors de la création du PaymentIntent.');
|
| 229 |
+
}
|
| 230 |
+
|
| 231 |
+
const data = await response.json();
|
| 232 |
+
clientSecret = data.client_secret;
|
| 233 |
+
|
| 234 |
+
} catch (error) {
|
| 235 |
+
console.error('Erreur Stripe:', error);
|
| 236 |
+
cardErrors.textContent = "Erreur: Impossible d'initialiser le paiement. Veuillez réessayer.";
|
| 237 |
+
submitButton.disabled = true;
|
| 238 |
+
}
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
// 2. Traiter la soumission du formulaire
|
| 242 |
+
form.addEventListener('submit', async (event) => {
|
| 243 |
+
event.preventDefault();
|
| 244 |
+
|
| 245 |
+
if (!clientSecret) {
|
| 246 |
+
cardErrors.textContent = "Veuillez patienter pendant l'initialisation du paiement.";
|
| 247 |
+
return;
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
submitButton.disabled = true;
|
| 251 |
+
submitButton.textContent = 'Traitement en cours...';
|
| 252 |
+
|
| 253 |
+
// Confirmer le paiement côté client avec le clientSecret et l'élément Stripe
|
| 254 |
+
const { error, paymentIntent } = await stripe.confirmCardPayment(clientSecret, {
|
| 255 |
+
payment_method: {
|
| 256 |
+
card: cardElement,
|
| 257 |
+
billing_details: {
|
| 258 |
+
// Idéalement, les détails de l'utilisateur (email/nom) devraient être fournis ici
|
| 259 |
+
},
|
| 260 |
+
}
|
| 261 |
+
});
|
| 262 |
+
|
| 263 |
+
if (error) {
|
| 264 |
+
// Afficher les erreurs (ex: carte refusée, données invalides)
|
| 265 |
+
cardErrors.textContent = error.message;
|
| 266 |
+
submitButton.disabled = false;
|
| 267 |
+
submitButton.textContent = 'Payer maintenant {{ plan.price_display }}';
|
| 268 |
+
} else if (paymentIntent.status === 'succeeded') {
|
| 269 |
+
// Le paiement a réussi
|
| 270 |
+
window.location.href = `/dashboard?payment=success&intent=${paymentIntent.id}`;
|
| 271 |
+
}
|
| 272 |
+
});
|
| 273 |
+
|
| 274 |
+
// Démarrage : Récupérer le client secret au chargement
|
| 275 |
+
fetchClientSecret();
|
| 276 |
+
</script>
|
| 277 |
+
</body>
|
| 278 |
+
</html>
|
a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/conditions_utilisation.html
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/connexion.html
ADDED
|
@@ -0,0 +1,157 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="fr" class="light">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Connexion - GitForge</title>
|
| 7 |
+
<link rel="icon" type="image/png" href="https://i.imgur.com/7Gn3toV.png">
|
| 8 |
+
<link rel="stylesheet"
|
| 9 |
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" />
|
| 10 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 11 |
+
<style>
|
| 12 |
+
body { font-family: 'Inter', sans-serif; }
|
| 13 |
+
|
| 14 |
+
/* Définir les Variables de Thème (Mode Clair uniquement) */
|
| 15 |
+
:root {
|
| 16 |
+
--bg-page: #f9fafb;
|
| 17 |
+
--bg-card: #ffffff;
|
| 18 |
+
--text-primary: #1f2937;
|
| 19 |
+
--text-secondary: #6b7280;
|
| 20 |
+
--border-color: #d1d5db;
|
| 21 |
+
--bg-input: #ffffff; /* Pour que l'input reste blanc en mode clair */
|
| 22 |
+
--ring-color: #a78bfa; /* Violet clair pour le focus */
|
| 23 |
+
--ring-offset-color: #f9fafb; /* Couleur de l'arrière-plan de la page */
|
| 24 |
+
}
|
| 25 |
+
</style>
|
| 26 |
+
</head>
|
| 27 |
+
<body class="bg-[--bg-page] text-[--text-primary] min-h-screen flex items-center justify-center p-4">
|
| 28 |
+
|
| 29 |
+
<div class="w-full max-w-md">
|
| 30 |
+
<div class="bg-[--bg-card] p-8 rounded-xl shadow-2xl border border-[--border-color]">
|
| 31 |
+
<h2 class="text-3xl font-extrabold text-center mb-6">Connexion</h2>
|
| 32 |
+
<p id="message" class="text-center mb-4"></p>
|
| 33 |
+
|
| 34 |
+
<form id="login-form" class="space-y-5">
|
| 35 |
+
<div>
|
| 36 |
+
<label for="email" class="block text-sm font-medium text-[--text-secondary] mb-1">Adresse E-mail</label>
|
| 37 |
+
<input type="email" id="email" name="email" required
|
| 38 |
+
class="w-full px-4 py-2 border border-[--border-color] rounded-lg bg-[--bg-input] text-[--text-primary] focus:ring-2 focus:ring-[--ring-color] focus:border-transparent outline-none"
|
| 39 |
+
placeholder="Votre adresse e-mail">
|
| 40 |
+
</div>
|
| 41 |
+
|
| 42 |
+
<div>
|
| 43 |
+
<label for="password" class="block text-sm font-medium text-[--text-secondary] mb-1">Mot de passe</label>
|
| 44 |
+
<div class="relative">
|
| 45 |
+
<input type="password" id="password" name="password" required minlength="8"
|
| 46 |
+
class="w-full px-4 py-2 border border-[--border-color] rounded-lg bg-[--bg-input] text-[--text-primary] focus:ring-2 focus:ring-[--ring-color] focus:border-transparent outline-none pr-10"
|
| 47 |
+
placeholder="Votre mot de passe">
|
| 48 |
+
<button type="button" id="toggle-password" class="absolute inset-y-0 right-0 pr-3 flex items-center text-[--text-secondary] hover:text-[--text-primary]" aria-label="Afficher/Masquer le mot de passe">
|
| 49 |
+
<span class="material-symbols-rounded text-xl">visibility</span>
|
| 50 |
+
</button>
|
| 51 |
+
</div>
|
| 52 |
+
</div>
|
| 53 |
+
|
| 54 |
+
<button type="submit" id="submit-button"
|
| 55 |
+
class="w-full py-2 px-4 border border-transparent rounded-lg shadow-sm text-lg 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 focus:ring-offset-[--ring-offset-color] disabled:opacity-50 transition duration-150">
|
| 56 |
+
Se connecter
|
| 57 |
+
</button>
|
| 58 |
+
</form>
|
| 59 |
+
|
| 60 |
+
<div class="mt-6 text-center text-sm">
|
| 61 |
+
<p class="text-[--text-secondary]">
|
| 62 |
+
Pas encore de compte ?
|
| 63 |
+
<a href="/mindus/nexus/inscription" class="font-medium text-indigo-600 hover:text-indigo-500">
|
| 64 |
+
S'inscrire
|
| 65 |
+
</a>
|
| 66 |
+
</p>
|
| 67 |
+
<p class="text-[--text-secondary] mt-2">
|
| 68 |
+
<a href="/mindus/nexus/mot_de_passe_oublie" class="font-medium text-indigo-600 hover:text-indigo-500">
|
| 69 |
+
Mot de passe oublié ?
|
| 70 |
+
</a>
|
| 71 |
+
</p>
|
| 72 |
+
</div>
|
| 73 |
+
</div>
|
| 74 |
+
</div>
|
| 75 |
+
|
| 76 |
+
<script>
|
| 77 |
+
// L'URL de l'API pointe directement vers l'endpoint local du backend Flask
|
| 78 |
+
const LOGIN_ENDPOINT = "/api/login";
|
| 79 |
+
|
| 80 |
+
const form = document.getElementById('login-form');
|
| 81 |
+
const messageElement = document.getElementById('message');
|
| 82 |
+
const submitButton = document.getElementById('submit-button');
|
| 83 |
+
|
| 84 |
+
// --- LOGIQUE D'AFFICHAGE/MASQUAGE DU MOT DE PASSE ---
|
| 85 |
+
function setupPasswordToggle(inputId, toggleId) {
|
| 86 |
+
const passwordInput = document.getElementById(inputId);
|
| 87 |
+
const toggleButton = document.getElementById(toggleId);
|
| 88 |
+
const icon = toggleButton.querySelector('.material-symbols-rounded');
|
| 89 |
+
|
| 90 |
+
toggleButton.addEventListener('click', () => {
|
| 91 |
+
const isPassword = passwordInput.type === 'password';
|
| 92 |
+
passwordInput.type = isPassword ? 'text' : 'password';
|
| 93 |
+
icon.textContent = isPassword ? 'visibility_off' : 'visibility';
|
| 94 |
+
});
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
setupPasswordToggle('password', 'toggle-password');
|
| 98 |
+
// ---------------------------------------------------
|
| 99 |
+
|
| 100 |
+
|
| 101 |
+
form.addEventListener('submit', async (e) => {
|
| 102 |
+
e.preventDefault();
|
| 103 |
+
messageElement.textContent = ''; // Réinitialiser le message
|
| 104 |
+
messageElement.className = 'text-center mb-4'; // Réinitialiser les classes
|
| 105 |
+
submitButton.disabled = true;
|
| 106 |
+
submitButton.textContent = 'Connexion en cours...';
|
| 107 |
+
|
| 108 |
+
const formData = new FormData(form);
|
| 109 |
+
const data = Object.fromEntries(formData.entries());
|
| 110 |
+
|
| 111 |
+
try {
|
| 112 |
+
const response = await fetch(LOGIN_ENDPOINT, {
|
| 113 |
+
method: 'POST',
|
| 114 |
+
headers: {
|
| 115 |
+
'Content-Type': 'application/json',
|
| 116 |
+
},
|
| 117 |
+
body: JSON.stringify(data)
|
| 118 |
+
});
|
| 119 |
+
|
| 120 |
+
const result = await response.json();
|
| 121 |
+
|
| 122 |
+
if (response.ok && result.success) {
|
| 123 |
+
messageElement.textContent = 'Connexion réussie ! Redirection en cours...';
|
| 124 |
+
messageElement.className = 'text-green-600 mb-4 font-bold'; // Utilisation d'un vert clair
|
| 125 |
+
|
| 126 |
+
// Le backend retourne la redirection dans la clé 'redirect'
|
| 127 |
+
// Dans user_routes.py, l'API de connexion retourne url_for('user_bp.dashboard')
|
| 128 |
+
const redirectUrl = result.redirect || 'dashboard';
|
| 129 |
+
|
| 130 |
+
// Redirection vers la page principale de l'application
|
| 131 |
+
setTimeout(() => {
|
| 132 |
+
window.location.href = redirectUrl;
|
| 133 |
+
}, 1500);
|
| 134 |
+
|
| 135 |
+
} else {
|
| 136 |
+
// Afficher le message d'erreur du backend
|
| 137 |
+
messageElement.textContent = result.message || 'Email ou mot de passe invalide.';
|
| 138 |
+
messageElement.className = 'text-red-600 mb-4 font-bold'; // Utilisation d'un rouge clair
|
| 139 |
+
}
|
| 140 |
+
|
| 141 |
+
} catch (error) {
|
| 142 |
+
console.error('Erreur lors de la communication avec le backend:', error);
|
| 143 |
+
messageElement.textContent = 'Erreur de connexion au serveur ou réseau indisponible.';
|
| 144 |
+
messageElement.className = 'text-red-600 mb-4 font-bold';
|
| 145 |
+
} finally {
|
| 146 |
+
// Réactiver le bouton si la redirection n'a pas eu lieu
|
| 147 |
+
if (messageElement.className.indexOf('text-green-600') === -1) {
|
| 148 |
+
submitButton.disabled = false;
|
| 149 |
+
submitButton.textContent = "Se connecter";
|
| 150 |
+
}
|
| 151 |
+
}
|
| 152 |
+
});
|
| 153 |
+
|
| 154 |
+
// --- LOGIQUE DU THÈME ENLEVÉE ---
|
| 155 |
+
</script>
|
| 156 |
+
</body>
|
| 157 |
+
</html>
|
a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/create_new_issue.html
ADDED
|
@@ -0,0 +1,408 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en" class="light">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>GitForge | Repository - New Issue</title>
|
| 7 |
+
<link rel="icon" type="image/png" href="https://i.imgur.com/7Gn3toV.png">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<link rel="stylesheet"
|
| 10 |
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" />
|
| 11 |
+
<style>
|
| 12 |
+
/* Inter Font Configuration */
|
| 13 |
+
body { font-family: 'Inter', sans-serif; }
|
| 14 |
+
|
| 15 |
+
/* Theme Variables and Transitions */
|
| 16 |
+
.transition-colors-theme { transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
|
| 17 |
+
|
| 18 |
+
/* Light Mode Theme */
|
| 19 |
+
.light {
|
| 20 |
+
--bg-page: #FFFFFF;
|
| 21 |
+
--bg-header: #F6F8FA; /* Matches the light gray header */
|
| 22 |
+
--bg-card: #FFFFFF;
|
| 23 |
+
--bg-active: #F3F4F6;
|
| 24 |
+
--border-color: #D0D7DE;
|
| 25 |
+
--text-color: #24292F;
|
| 26 |
+
--text-secondary: #57606A;
|
| 27 |
+
--text-link: #0969DA;
|
| 28 |
+
--primary-color: #2DA44E; /* Green button */
|
| 29 |
+
--primary-hover: #2C974B;
|
| 30 |
+
--danger-color: #CF222E;
|
| 31 |
+
--danger-hover: #B8202A;
|
| 32 |
+
}
|
| 33 |
+
/* Utility classes for theme variables */
|
| 34 |
+
.bg-page-var { background-color: var(--bg-page); } .bg-card-var { background-color: var(--bg-card); }
|
| 35 |
+
.bg-header-var { background-color: var(--bg-header); } .border-color-var { border-color: var(--border-color); }
|
| 36 |
+
.text-color-var { color: var(--text-color); } .text-secondary-var { color: var(--text-secondary); }
|
| 37 |
+
.text-link-var { color: var(--text-link); }
|
| 38 |
+
.bg-primary-color-var { background-color: var(--primary-color); } .hover\:bg-primary-hover-var:hover { background-color: var(--primary-hover); }
|
| 39 |
+
.bg-active-var { background-color: var(--bg-active); } .hover\:bg-active-var:hover { background-color: var(--bg-active); }
|
| 40 |
+
.focus\:ring-link-var:focus { --tw-ring-color: var(--text-link); }
|
| 41 |
+
.bg-danger-color-var { background-color: var(--danger-color); } .hover\:bg-danger-hover-var:hover { background-color: var(--danger-hover); }
|
| 42 |
+
|
| 43 |
+
/* Repository Navigation Link Styles */
|
| 44 |
+
.repo-nav-link {
|
| 45 |
+
padding: 0.5rem 1rem; border-bottom: 2px solid transparent;
|
| 46 |
+
margin-right: 0.5rem;
|
| 47 |
+
}
|
| 48 |
+
.repo-nav-link.active {
|
| 49 |
+
border-bottom-color: #F78166; /* Using a vibrant orange/red for active tab like the image */
|
| 50 |
+
color: var(--text-color) !important;
|
| 51 |
+
font-weight: 600;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
/* Sidebar Styles */
|
| 55 |
+
#sidebar {
|
| 56 |
+
position: fixed;
|
| 57 |
+
top: 0;
|
| 58 |
+
left: 0;
|
| 59 |
+
width: 300px;
|
| 60 |
+
height: 100%;
|
| 61 |
+
background-color: var(--bg-card);
|
| 62 |
+
transform: translateX(-100%);
|
| 63 |
+
transition: transform 0.3s ease-in-out;
|
| 64 |
+
box-shadow: 2px 0 5px rgba(0,0,0,0.1);
|
| 65 |
+
z-index: 100;
|
| 66 |
+
}
|
| 67 |
+
#sidebar.open {
|
| 68 |
+
transform: translateX(0);
|
| 69 |
+
}
|
| 70 |
+
#overlay {
|
| 71 |
+
position: fixed;
|
| 72 |
+
top: 0;
|
| 73 |
+
left: 0;
|
| 74 |
+
width: 100%;
|
| 75 |
+
height: 100%;
|
| 76 |
+
background: rgba(0, 0, 0, 0.5);
|
| 77 |
+
z-index: 90;
|
| 78 |
+
display: none;
|
| 79 |
+
}
|
| 80 |
+
#overlay.open {
|
| 81 |
+
display: block;
|
| 82 |
+
}
|
| 83 |
+
</style>
|
| 84 |
+
</head>
|
| 85 |
+
|
| 86 |
+
<body class="bg-page-var text-color-var min-h-screen transition-colors-theme">
|
| 87 |
+
|
| 88 |
+
<div id="overlay"></div>
|
| 89 |
+
|
| 90 |
+
<div id="sidebar" class="p-4 border-r border-color-var text-color-var transition-colors-theme">
|
| 91 |
+
<div class="flex justify-between items-center pb-4 border-b border-color-var/50 mb-4">
|
| 92 |
+
<span class="material-symbols-rounded text-3xl">data_object</span>
|
| 93 |
+
<button id="close-sidebar" class="text-secondary-var hover:text-color-var">
|
| 94 |
+
<span class="material-symbols-rounded text-2xl">close</span>
|
| 95 |
+
</button>
|
| 96 |
+
</div>
|
| 97 |
+
|
| 98 |
+
<nav class="space-y-1">
|
| 99 |
+
<a href="/mindus/nexus/dashboard" class="flex items-center p-2 rounded-lg hover:bg-active-var transition-colors-theme">
|
| 100 |
+
<span class="material-symbols-rounded mr-3 text-lg">home</span> Home
|
| 101 |
+
</a>
|
| 102 |
+
<a href="/mindus/nexus/issue?repo_slug={{ repo_slug }}" class="flex items-center p-2 rounded-lg bg-active-var transition-colors-theme font-semibold text-link-var">
|
| 103 |
+
<span class="material-symbols-rounded mr-3 text-lg">bug_report</span> Issues
|
| 104 |
+
</a>
|
| 105 |
+
<a href="/mindus/nexus/pull_requests?repo_slug={{ repo_slug }}" class="flex items-center p-2 rounded-lg hover:bg-active-var transition-colors-theme">
|
| 106 |
+
<span class="material-symbols-rounded mr-3 text-lg">merge</span> Pull requests
|
| 107 |
+
</a>
|
| 108 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-active-var transition-colors-theme">
|
| 109 |
+
<span class="material-symbols-rounded mr-3 text-lg">box</span> Projects
|
| 110 |
+
</a>
|
| 111 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-active-var transition-colors-theme">
|
| 112 |
+
<span class="material-symbols-rounded mr-3 text-lg">chat</span> Discussions
|
| 113 |
+
</a>
|
| 114 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-active-var transition-colors-theme">
|
| 115 |
+
<span class="material-symbols-rounded mr-3 text-lg">developer_mode</span> Codespaces
|
| 116 |
+
</a>
|
| 117 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-active-var transition-colors-theme">
|
| 118 |
+
<span class="material-symbols-rounded mr-3 text-lg">smart_toy</span> Copilot
|
| 119 |
+
</a>
|
| 120 |
+
</nav>
|
| 121 |
+
|
| 122 |
+
<div class="border-t border-color-var/50 my-4 pt-4 space-y-1">
|
| 123 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-active-var transition-colors-theme">
|
| 124 |
+
<span class="material-symbols-rounded mr-3 text-lg">explore</span> Explore
|
| 125 |
+
</a>
|
| 126 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-active-var transition-colors-theme">
|
| 127 |
+
<span class="material-symbols-rounded mr-3 text-lg">storefront</span> Marketplace
|
| 128 |
+
</a>
|
| 129 |
+
<a href="#" class="flex items-center p-2 rounded-lg hover:bg-active-var transition-colors-theme">
|
| 130 |
+
<span class="material-symbols-rounded mr-3 text-lg">link</span> MCP registry
|
| 131 |
+
</a>
|
| 132 |
+
</div>
|
| 133 |
+
</div>
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
<header class="w-full bg-header-var border-b border-color-var transition-colors-theme sticky top-0 z-50">
|
| 137 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 138 |
+
<div class="flex justify-between items-center h-16">
|
| 139 |
+
|
| 140 |
+
<div class="flex items-center space-x-4">
|
| 141 |
+
<button id="open-sidebar" class="p-2 rounded-lg text-color-var hover:bg-active-var transition-colors-theme">
|
| 142 |
+
<span class="material-symbols-rounded text-2xl">menu</span>
|
| 143 |
+
</button>
|
| 144 |
+
|
| 145 |
+
<span class="text-xl font-bold text-color-var transition-colors-theme hidden md:block">GitForge</span>
|
| 146 |
+
<span class="text-secondary-var hidden md:block">/</span>
|
| 147 |
+
<a href="/mindus/nexus/repo_files?repo_slug={{ repo_slug }}" class="text-color-var hover:text-link-var text-lg font-semibold transition-colors-theme flex items-center">
|
| 148 |
+
<span id="repo-user">{{ repo_user }}</span> / <span id="repo-name">{{ repo_name }}</span>
|
| 149 |
+
<span class="material-symbols-rounded text-base ml-2 text-secondary-var">lock</span>
|
| 150 |
+
</a>
|
| 151 |
+
</div>
|
| 152 |
+
|
| 153 |
+
<div class="flex items-center space-x-3">
|
| 154 |
+
<div class="hidden sm:block">
|
| 155 |
+
<input type="text" placeholder="Type / to search"
|
| 156 |
+
class="bg-page-var border border-color-var text-color-var rounded-lg p-1.5 text-sm w-40 md:w-48 transition-colors-theme focus:outline-none focus:border-link-var focus:ring-1 focus:ring-link-var">
|
| 157 |
+
</div>
|
| 158 |
+
<a href="/mindus/nexus/notentification" class="p-2 rounded-full text-secondary-var hover:text-link-var transition-colors-theme">
|
| 159 |
+
<span class="material-symbols-rounded">notifications</span>
|
| 160 |
+
</a>
|
| 161 |
+
<a href="mindus/nexus/nouveau_project" class="p-2 rounded-full text-secondary-var hover:text-link-var transition-colors-theme">
|
| 162 |
+
<span class="material-symbols-rounded">add</span>
|
| 163 |
+
</a>
|
| 164 |
+
<a href="mindus/nexus/profile" class="p-2 rounded-full text-secondary-var hover:text-link-var transition-colors-theme">
|
| 165 |
+
<span class="material-symbols-rounded">account_circle</span>
|
| 166 |
+
</a>
|
| 167 |
+
</div>
|
| 168 |
+
</div>
|
| 169 |
+
</div>
|
| 170 |
+
|
| 171 |
+
<div class="w-full border-b border-color-var bg-page-var transition-colors-theme">
|
| 172 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 173 |
+
<nav class="flex space-x-1 overflow-x-auto text-sm font-medium">
|
| 174 |
+
<a href="/mindus/nexus/repo_files?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 175 |
+
<span class="material-symbols-rounded text-base mr-1">code</span> Code
|
| 176 |
+
</a>
|
| 177 |
+
<a href="/mindus/nexus/new_issue?repo_slug={{ repo_slug }}" class="repo-nav-link text-color-var active transition-colors-theme flex items-center">
|
| 178 |
+
<span class="material-symbols-rounded text-base mr-1">bug_report</span> Issues <span class="ml-1 px-1 bg-active-var rounded-full text-xs font-normal">0</span>
|
| 179 |
+
</a>
|
| 180 |
+
<a href="/mindus/nexus/pull_requests?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 181 |
+
<span class="material-symbols-rounded text-base mr-1">merge</span> Pull requests
|
| 182 |
+
</a>
|
| 183 |
+
<a href="#" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 184 |
+
<span class="material-symbols-rounded text-base mr-1">checklist</span> Actions
|
| 185 |
+
</a>
|
| 186 |
+
<a href="#" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 187 |
+
<span class="material-symbols-rounded text-base mr-1">box</span> Projects
|
| 188 |
+
</a>
|
| 189 |
+
<a href="#" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 190 |
+
<span class="material-symbols-rounded text-base mr-1">lock</span> Security
|
| 191 |
+
</a>
|
| 192 |
+
<a href="#" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 193 |
+
<span class="material-symbols-rounded text-base mr-1">insights</span> Insights
|
| 194 |
+
</a>
|
| 195 |
+
<a href="/mindus/nexus/settings?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 196 |
+
<span class="material-symbols-rounded text-base mr-1">settings</span> Settings
|
| 197 |
+
</a>
|
| 198 |
+
</nav>
|
| 199 |
+
</div>
|
| 200 |
+
</div>
|
| 201 |
+
</header>
|
| 202 |
+
|
| 203 |
+
|
| 204 |
+
<main id="main-content" class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-6 transition-colors-theme">
|
| 205 |
+
|
| 206 |
+
<div class="flex flex-col md:flex-row justify-between items-start md:items-center mb-6 space-y-3 md:space-y-0">
|
| 207 |
+
<div class="flex items-center space-x-2 w-full md:w-auto">
|
| 208 |
+
<button class="flex items-center px-3 py-1.5 text-sm bg-card-var border border-color-var rounded-lg text-color-var hover:bg-active-var transition-colors-theme">
|
| 209 |
+
Filters <span class="material-symbols-rounded text-base ml-1">arrow_drop_down</span>
|
| 210 |
+
</button>
|
| 211 |
+
<input type="text" placeholder="is:issue is:open"
|
| 212 |
+
class="w-full md:w-96 p-1.5 text-sm rounded-lg border border-color-var bg-card-var focus:outline-none focus:border-link-var focus:ring-1 focus:ring-link-var">
|
| 213 |
+
</div>
|
| 214 |
+
|
| 215 |
+
<div class="flex items-center space-x-3 w-full md:w-auto justify-end">
|
| 216 |
+
<button class="flex items-center px-3 py-1.5 text-sm bg-card-var border border-color-var rounded-lg text-color-var hover:bg-active-var transition-colors-theme">
|
| 217 |
+
Labels <span class="ml-1 font-semibold">0</span>
|
| 218 |
+
</button>
|
| 219 |
+
<button class="flex items-center px-3 py-1.5 text-sm bg-card-var border border-color-var rounded-lg text-color-var hover:bg-active-var transition-colors-theme">
|
| 220 |
+
Milestones <span class="ml-1 font-semibold">0</span>
|
| 221 |
+
</button>
|
| 222 |
+
<a href="/mindus/nexus/new_issue?repo_slug={{ repo_slug }}" class="inline-flex items-center px-3 py-1.5 text-sm bg-primary-color-var text-white font-semibold rounded-lg hover:bg-primary-hover-var transition duration-150 whitespace-nowrap">
|
| 223 |
+
New issue
|
| 224 |
+
</a>
|
| 225 |
+
|
| 226 |
+
</div>
|
| 227 |
+
</div>
|
| 228 |
+
|
| 229 |
+
<h1 class="text-3xl font-semibold text-color-var mb-6">Create a new issue</h1>
|
| 230 |
+
|
| 231 |
+
<form id="create-issue-form" class="flex flex-col md:flex-row gap-6">
|
| 232 |
+
|
| 233 |
+
<div class="md:w-3/4">
|
| 234 |
+
<input type="text" id="issue-title" name="title" placeholder="Title" required
|
| 235 |
+
class="w-full p-2 text-xl font-semibold rounded-lg border border-color-var bg-card-var focus:outline-none focus:border-link-var focus:ring-1 focus:ring-link-var mb-4"
|
| 236 |
+
maxlength="255">
|
| 237 |
+
|
| 238 |
+
<textarea id="issue-description" name="description" rows="15" placeholder="Leave a comment (markdown supported)"
|
| 239 |
+
class="w-full p-3 text-sm rounded-lg border border-color-var bg-card-var focus:outline-none focus:border-link-var focus:ring-1 focus:ring-link-var resize-y"></textarea>
|
| 240 |
+
|
| 241 |
+
<input type="hidden" id="repo-slug-hidden" name="repo_slug" value="{{ repo_slug }}">
|
| 242 |
+
|
| 243 |
+
<div class="flex items-center justify-between mt-4">
|
| 244 |
+
<div>
|
| 245 |
+
<button type="submit"
|
| 246 |
+
class="inline-flex items-center px-4 py-2 text-sm bg-primary-color-var text-white font-semibold rounded-lg hover:bg-primary-hover-var transition duration-150">
|
| 247 |
+
Submit new issue
|
| 248 |
+
</button>
|
| 249 |
+
</div>
|
| 250 |
+
<div>
|
| 251 |
+
<a href="/mindus/nexus/issues?repo_slug={{ repo_slug }}" class="text-secondary-var hover:text-color-var text-sm">Cancel</a>
|
| 252 |
+
</div>
|
| 253 |
+
</div>
|
| 254 |
+
|
| 255 |
+
<div id="alert-message" class="mt-4 p-3 rounded-lg text-sm hidden" role="alert"></div>
|
| 256 |
+
|
| 257 |
+
</div>
|
| 258 |
+
|
| 259 |
+
<div class="md:w-1/4 space-y-4">
|
| 260 |
+
|
| 261 |
+
<div class="border-b border-color-var pb-2">
|
| 262 |
+
<h3 class="text-sm font-semibold text-color-var mb-2">Assignees</h3>
|
| 263 |
+
<select id="issue-assigned-to" name="assigned_to"
|
| 264 |
+
class="w-full p-1.5 text-sm rounded-lg border border-color-var bg-card-var focus:outline-none focus:border-link-var focus:ring-1 focus:ring-link-var text-secondary-var">
|
| 265 |
+
<option value="">No one assigned</option>
|
| 266 |
+
<option value="user_1">Utilisateur 1</option>
|
| 267 |
+
<option value="user_2">Utilisateur 2</option>
|
| 268 |
+
</select>
|
| 269 |
+
</div>
|
| 270 |
+
|
| 271 |
+
<div class="border-b border-color-var pb-2">
|
| 272 |
+
<h3 class="text-sm font-semibold text-color-var mb-2">Labels</h3>
|
| 273 |
+
<p class="text-xs text-secondary-var">None yet</p>
|
| 274 |
+
<input type="text" id="issue-labels" name="labels" placeholder="bug, enhancement"
|
| 275 |
+
class="w-full p-1.5 text-sm rounded-lg border border-color-var bg-card-var focus:outline-none focus:border-link-var focus:ring-1 focus:ring-link-var text-secondary-var mt-2">
|
| 276 |
+
<p class="text-xs text-secondary-var mt-1">Séparez les labels par une virgule.</p>
|
| 277 |
+
</div>
|
| 278 |
+
|
| 279 |
+
<div class="pb-2">
|
| 280 |
+
<h3 class="text-sm font-semibold text-color-var mb-2">Milestone</h3>
|
| 281 |
+
<select id="issue-milestone" name="milestone" disabled
|
| 282 |
+
class="w-full p-1.5 text-sm rounded-lg border border-color-var bg-active-var focus:outline-none text-secondary-var cursor-not-allowed">
|
| 283 |
+
<option value="">No milestone</option>
|
| 284 |
+
</select>
|
| 285 |
+
</div>
|
| 286 |
+
</div>
|
| 287 |
+
</form>
|
| 288 |
+
|
| 289 |
+
</main>
|
| 290 |
+
|
| 291 |
+
<footer class="w-full border-t border-color-var mt-12 py-8 text-sm text-secondary-var">
|
| 292 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 flex flex-col md:flex-row justify-between items-center">
|
| 293 |
+
<div class="flex items-center space-x-4 mb-4 md:mb-0">
|
| 294 |
+
<span class="material-symbols-rounded text-xl">data_object</span>
|
| 295 |
+
<span>© 2025 GitForge, Inc.</span>
|
| 296 |
+
</div>
|
| 297 |
+
<nav class="flex flex-wrap justify-center space-x-4">
|
| 298 |
+
<a href="/mindus/nexus/conditions_utilisation" class="hover:text-link-var">Terms</a>
|
| 299 |
+
<a href="/mindus/nexus/mentions_legales" class="hover:text-link-var">Privacy</a>
|
| 300 |
+
<a href="/mindus/nexus/politique_confidentialite" class="hover:text-link-var">Security</a>
|
| 301 |
+
<a href="/mindus/nexus/satut" class="hover:text-link-var">Status</a>
|
| 302 |
+
<a href="#" class="hover:text-link-var">Community</a>
|
| 303 |
+
<a href="/mindus/nexus/documentation" class="hover:text-link-var">Docs</a>
|
| 304 |
+
<a href="/mindus/nexus/contact" class="hover:text-link-var">Contact</a>
|
| 305 |
+
</nav>
|
| 306 |
+
</div>
|
| 307 |
+
</footer>
|
| 308 |
+
|
| 309 |
+
<script>
|
| 310 |
+
// SIDEBAR LOGIC
|
| 311 |
+
const sidebar = document.getElementById('sidebar');
|
| 312 |
+
const overlay = document.getElementById('overlay');
|
| 313 |
+
const openButton = document.getElementById('open-sidebar');
|
| 314 |
+
const closeButton = document.getElementById('close-sidebar');
|
| 315 |
+
|
| 316 |
+
const toggleSidebar = () => {
|
| 317 |
+
sidebar.classList.toggle('open');
|
| 318 |
+
overlay.classList.toggle('open');
|
| 319 |
+
};
|
| 320 |
+
|
| 321 |
+
openButton.addEventListener('click', toggleSidebar);
|
| 322 |
+
closeButton.addEventListener('click', toggleSidebar);
|
| 323 |
+
overlay.addEventListener('click', toggleSidebar); // Close when clicking overlay
|
| 324 |
+
|
| 325 |
+
// Prevent scrolling when sidebar is open (for better mobile UX)
|
| 326 |
+
const body = document.body;
|
| 327 |
+
const observer = new MutationObserver(() => {
|
| 328 |
+
if (sidebar.classList.contains('open')) {
|
| 329 |
+
body.style.overflow = 'hidden';
|
| 330 |
+
} else {
|
| 331 |
+
body.style.overflow = '';
|
| 332 |
+
}
|
| 333 |
+
});
|
| 334 |
+
|
| 335 |
+
observer.observe(sidebar, { attributes: true, attributeFilter: ['class'] });
|
| 336 |
+
|
| 337 |
+
// ISSUE FORM SUBMISSION LOGIC
|
| 338 |
+
const form = document.getElementById('create-issue-form');
|
| 339 |
+
const alertMessage = document.getElementById('alert-message');
|
| 340 |
+
const repoSlugHidden = document.getElementById('repo-slug-hidden');
|
| 341 |
+
|
| 342 |
+
const displayAlert = (message, isSuccess) => {
|
| 343 |
+
alertMessage.textContent = message;
|
| 344 |
+
alertMessage.classList.remove('hidden', 'bg-red-100', 'text-red-700', 'bg-green-100', 'text-green-700');
|
| 345 |
+
if (isSuccess) {
|
| 346 |
+
alertMessage.classList.add('bg-green-100', 'text-green-700', 'border', 'border-green-400');
|
| 347 |
+
setTimeout(() => {
|
| 348 |
+
// Rediriger vers la page de la liste d'issues après succès
|
| 349 |
+
const issuesUrl = `/mindus/nexus/new_issue?repo_slug=${repoSlugHidden.value}`;
|
| 350 |
+
window.location.href = issuesUrl;
|
| 351 |
+
}, 1500);
|
| 352 |
+
} else {
|
| 353 |
+
alertMessage.classList.add('bg-red-100', 'text-red-700', 'border', 'border-red-400');
|
| 354 |
+
}
|
| 355 |
+
};
|
| 356 |
+
|
| 357 |
+
form.addEventListener('submit', async (e) => {
|
| 358 |
+
e.preventDefault();
|
| 359 |
+
|
| 360 |
+
const title = document.getElementById('issue-title').value.trim();
|
| 361 |
+
const description = document.getElementById('issue-description').value.trim();
|
| 362 |
+
const assignedTo = document.getElementById('issue-assigned-to').value || null;
|
| 363 |
+
const labelsRaw = document.getElementById('issue-labels').value.trim();
|
| 364 |
+
const labels = labelsRaw ? labelsRaw.split(',').map(label => label.trim()).filter(label => label) : [];
|
| 365 |
+
const repoSlug = repoSlugHidden.value; // Récupère le slug du dépôt
|
| 366 |
+
|
| 367 |
+
if (!title) {
|
| 368 |
+
displayAlert("Le titre de l'Issue est requis.", false);
|
| 369 |
+
return;
|
| 370 |
+
}
|
| 371 |
+
|
| 372 |
+
const issueData = {
|
| 373 |
+
repo_slug: repoSlug,
|
| 374 |
+
title: title,
|
| 375 |
+
description: description,
|
| 376 |
+
assigned_to: assignedTo,
|
| 377 |
+
labels: labels
|
| 378 |
+
};
|
| 379 |
+
|
| 380 |
+
// Cacher l'alerte précédente
|
| 381 |
+
alertMessage.classList.add('hidden');
|
| 382 |
+
|
| 383 |
+
try {
|
| 384 |
+
const response = await fetch("/api/issue/create", {
|
| 385 |
+
method: "POST",
|
| 386 |
+
headers: {
|
| 387 |
+
"Content-Type": "application/json",
|
| 388 |
+
},
|
| 389 |
+
body: JSON.stringify(issueData),
|
| 390 |
+
});
|
| 391 |
+
|
| 392 |
+
const result = await response.json();
|
| 393 |
+
|
| 394 |
+
if (result.success) {
|
| 395 |
+
displayAlert(result.message || "Issue créée avec succès.", true);
|
| 396 |
+
// La redirection se fait dans displayAlert après un petit délai
|
| 397 |
+
} else {
|
| 398 |
+
displayAlert(result.message || "Échec de la création de l'Issue.", false);
|
| 399 |
+
}
|
| 400 |
+
} catch (error) {
|
| 401 |
+
console.error("Erreur lors de l'envoi du formulaire:", error);
|
| 402 |
+
displayAlert("Une erreur réseau s'est produite lors de la création de l'Issue.", false);
|
| 403 |
+
}
|
| 404 |
+
});
|
| 405 |
+
|
| 406 |
+
</script>
|
| 407 |
+
</body>
|
| 408 |
+
</html>
|
a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/customers_stories.html
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/repo_files.html
ADDED
|
@@ -0,0 +1,480 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en" class="light">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>GitForge | Repository - My Project</title>
|
| 7 |
+
<link rel="icon" type="image/png" href="https://i.postimg.cc/t4NCGNzD/gitforge-png.png">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<link rel="stylesheet"
|
| 10 |
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" />
|
| 11 |
+
<style>
|
| 12 |
+
/* Inter font configuration */
|
| 13 |
+
body { font-family: 'Inter', sans-serif; }
|
| 14 |
+
|
| 15 |
+
/* Theme Variables and Styles */
|
| 16 |
+
.transition-colors-theme { transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
|
| 17 |
+
|
| 18 |
+
/* Light Mode (UNIQUE Theme) */
|
| 19 |
+
.light {
|
| 20 |
+
--bg-page: #FFFFFF;
|
| 21 |
+
--bg-header: #F6F8FA;
|
| 22 |
+
--bg-card: #FFFFFF;
|
| 23 |
+
--bg-active: #F3F4F6;
|
| 24 |
+
--border-color: #D0D7DE;
|
| 25 |
+
--text-color: #24292F;
|
| 26 |
+
--text-secondary: #57606A;
|
| 27 |
+
--text-link: #0969DA;
|
| 28 |
+
--primary-color: #2DA44E;
|
| 29 |
+
--primary-hover: #2C974B;
|
| 30 |
+
}
|
| 31 |
+
/* Utility classes for variables */
|
| 32 |
+
.bg-page-var { background-color: var(--bg-page); } .bg-card-var { background-color: var(--bg-card); }
|
| 33 |
+
.bg-header-var { background-color: var(--bg-header); } .border-color-var { border-color: var(--border-color); }
|
| 34 |
+
.text-color-var { color: var(--text-color); } .text-secondary-var { color: var(--text-secondary); }
|
| 35 |
+
.text-link-var { color: var(--text-link); } .hover\:text-link-hover-var:hover { color: var(--text-link); }
|
| 36 |
+
.bg-primary-color-var { background-color: var(--primary-color); } .hover\:bg-primary-hover-var:hover { background-color: var(--primary-hover); }
|
| 37 |
+
.bg-active-var { background-color: var(--bg-active); } .hover\:bg-active-var:hover { background-color: var(--bg-active); }
|
| 38 |
+
.focus\:ring-primary-color-var:focus { --tw-ring-color: var(--primary-color); }
|
| 39 |
+
|
| 40 |
+
/* Specific style for the navigation bar */
|
| 41 |
+
.repo-nav-link {
|
| 42 |
+
padding: 0.5rem 1rem; border-bottom: 2px solid transparent;
|
| 43 |
+
margin-right: 0.5rem; /* Spacing between links */
|
| 44 |
+
}
|
| 45 |
+
.repo-nav-link.active {
|
| 46 |
+
border-bottom-color: var(--text-link);
|
| 47 |
+
color: var(--text-color) !important;
|
| 48 |
+
font-weight: 600;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
/* Styles for the loading spinner */
|
| 52 |
+
.spinner {
|
| 53 |
+
border: 4px solid var(--border-color);
|
| 54 |
+
border-top: 4px solid var(--text-link);
|
| 55 |
+
border-radius: 50%;
|
| 56 |
+
width: 40px;
|
| 57 |
+
height: 40px;
|
| 58 |
+
animation: spin 1s linear infinite;
|
| 59 |
+
}
|
| 60 |
+
/* Smaller spinner (KEPT IN CSS FOR REFERENCE) */
|
| 61 |
+
.small-spinner {
|
| 62 |
+
border: 2px solid var(--border-color);
|
| 63 |
+
border-top: 2px solid var(--text-link);
|
| 64 |
+
border-radius: 50%;
|
| 65 |
+
width: 20px;
|
| 66 |
+
height: 20px;
|
| 67 |
+
animation: spin 1s linear infinite;
|
| 68 |
+
}
|
| 69 |
+
@keyframes spin {
|
| 70 |
+
0% { transform: rotate(0deg); }
|
| 71 |
+
100% { transform: rotate(360deg); }
|
| 72 |
+
}
|
| 73 |
+
</style>
|
| 74 |
+
</head>
|
| 75 |
+
|
| 76 |
+
<body class="bg-page-var text-color-var min-h-screen transition-colors-theme">
|
| 77 |
+
|
| 78 |
+
<header class="w-full bg-header-var border-b border-color-var transition-colors-theme">
|
| 79 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 80 |
+
<div class="flex justify-between items-center h-16">
|
| 81 |
+
<div class="flex items-center space-x-4">
|
| 82 |
+
<img src="https://i.postimg.cc/t4NCGNzD/gitforge-png.png" alt="GitForge Logo" class="h-6">
|
| 83 |
+
<span class="text-xl font-bold text-color-var transition-colors-theme">GitForge</span>
|
| 84 |
+
<span class="text-secondary-var">/</span>
|
| 85 |
+
<a href="#" class="text-color-var hover:text-link-var text-lg font-semibold transition-colors-theme">
|
| 86 |
+
<span id="repo-user">{{ user.username if user.username else 'current_user' }}</span> / <span id="repo-name">{{ repo_name if repo_name else repo_slug }}</span>
|
| 87 |
+
</a>
|
| 88 |
+
<span id="repo-visibility" class="px-2 py-0.5 text-xs font-medium rounded-full border border-color-var text-secondary-var">
|
| 89 |
+
Private
|
| 90 |
+
</span>
|
| 91 |
+
</div>
|
| 92 |
+
|
| 93 |
+
<div class="flex items-center space-x-3">
|
| 94 |
+
<div class="hidden sm:block">
|
| 95 |
+
<input type="text" placeholder="Type / to search"
|
| 96 |
+
class="bg-page-var border border-color-var text-color-var rounded-lg p-1.5 text-sm w-48 transition-colors-theme focus:outline-none focus:border-link-var focus:ring-1 focus:ring-link-var">
|
| 97 |
+
</div>
|
| 98 |
+
<a href="mindus/nexus/profile" class="p-2 rounded-full text-color-var hover:text-link-var transition-colors-theme">
|
| 99 |
+
<span class="material-symbols-rounded">account_circle</span>
|
| 100 |
+
</a>
|
| 101 |
+
</div>
|
| 102 |
+
</div>
|
| 103 |
+
</div>
|
| 104 |
+
|
| 105 |
+
<div class="w-full border-b border-color-var bg-page-var transition-colors-theme">
|
| 106 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 107 |
+
<nav class="flex space-x-1 overflow-x-auto text-sm font-medium">
|
| 108 |
+
<a href="/mindus/nexus/repo_files?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var active transition-colors-theme flex items-center">
|
| 109 |
+
<span class="material-symbols-rounded text-base mr-1">code</span> Code
|
| 110 |
+
</a>
|
| 111 |
+
<a href="/mindus/nexus/new_issue?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 112 |
+
<span class="material-symbols-rounded text-base mr-1">bug_report</span> Issues
|
| 113 |
+
</a>
|
| 114 |
+
<a href="/mindus/nexus/pull_requests?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 115 |
+
<span class="material-symbols-rounded text-base mr-1">merge</span> Pull requests
|
| 116 |
+
</a>
|
| 117 |
+
<a href="/mindus/nexus/editor?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 118 |
+
<span class="material-symbols-rounded text-base mr-1">checklist</span> Actions
|
| 119 |
+
</a>
|
| 120 |
+
<a href="#" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 121 |
+
<span class="material-symbols-rounded text-base mr-1">lock</span> Security
|
| 122 |
+
</a>
|
| 123 |
+
<a href="#" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 124 |
+
<span class="material-symbols-rounded text-base mr-1">insights</span> Insights
|
| 125 |
+
</a>
|
| 126 |
+
<a href="/mindus/nexus/settings?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 127 |
+
<span class="material-symbols-rounded text-base mr-1">settings</span> Settings
|
| 128 |
+
</a>
|
| 129 |
+
</nav>
|
| 130 |
+
</div>
|
| 131 |
+
</div>
|
| 132 |
+
</header>
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
<div id="main-content" class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 transition-colors-theme">
|
| 136 |
+
|
| 137 |
+
<div class="flex flex-col sm:flex-row justify-between items-start sm:items-center mb-6 space-y-4 sm:space-y-0">
|
| 138 |
+
<div class="flex items-center space-x-4">
|
| 139 |
+
|
| 140 |
+
<div class="relative inline-block text-left">
|
| 141 |
+
<button id="branch-toggle" class="flex items-center px-3 py-1.5 text-sm bg-card-var border border-color-var rounded-lg text-color-var hover:bg-active-var transition-colors-theme">
|
| 142 |
+
<span class="material-symbols-rounded text-base mr-1">merge</span>
|
| 143 |
+
<span class="font-semibold">main</span>
|
| 144 |
+
<span class="material-symbols-rounded text-base ml-2">arrow_drop_down</span>
|
| 145 |
+
</button>
|
| 146 |
+
|
| 147 |
+
<div id="branch-menu" class="hidden absolute left-0 mt-2 w-72 rounded-md shadow-lg bg-card-var ring-1 ring-border-color-var focus:outline-none z-50 transition-colors-theme">
|
| 148 |
+
<div class="p-3">
|
| 149 |
+
<input type="text" placeholder="Find a branch..."
|
| 150 |
+
class="w-full p-2 text-sm border border-color-var rounded-lg focus:outline-none focus:ring-1 focus:ring-link-var mb-2 bg-page-var text-color-var transition-colors-theme">
|
| 151 |
+
|
| 152 |
+
<a href="/mindus/nexus/new_branch?repo_slug={{ repo_slug }}" class="block text-sm text-link-var hover:text-link-hover-var p-1 rounded-md hover:bg-active-var transition-colors-theme">
|
| 153 |
+
<span class="material-symbols-rounded text-base mr-1 align-middle">visibility</span> View all branches
|
| 154 |
+
</a>
|
| 155 |
+
|
| 156 |
+
<div class="mt-2 max-h-40 overflow-y-auto">
|
| 157 |
+
<div class="text-xs text-secondary-var p-1">Current Branch</div>
|
| 158 |
+
<div class="flex items-center p-1.5 text-sm font-semibold text-color-var bg-active-var rounded-md">
|
| 159 |
+
<span class="material-symbols-rounded text-base mr-2">check</span> main
|
| 160 |
+
</div>
|
| 161 |
+
</div>
|
| 162 |
+
</div>
|
| 163 |
+
</div>
|
| 164 |
+
</div>
|
| 165 |
+
<span class="text-sm text-secondary-var">1 Branch</span>
|
| 166 |
+
<span class="text-sm text-secondary-var">0 Tags</span>
|
| 167 |
+
</div>
|
| 168 |
+
|
| 169 |
+
<div class="flex items-center space-x-3">
|
| 170 |
+
<button class="px-3 py-1.5 text-sm bg-card-var border border-color-var rounded-lg text-color-var hover:bg-active-var transition-colors-theme hidden sm:inline-flex items-center">
|
| 171 |
+
Go to file
|
| 172 |
+
</button>
|
| 173 |
+
|
| 174 |
+
<div class="relative inline-block text-left">
|
| 175 |
+
<button id="add-file-toggle" class="inline-flex items-center px-3 py-1.5 text-sm bg-card-var border border-color-var rounded-lg text-color-var hover:bg-active-var transition-colors-theme">
|
| 176 |
+
<span class="material-symbols-rounded text-base mr-1">add</span> Add file
|
| 177 |
+
<span class="material-symbols-rounded text-base ml-1">arrow_drop_down</span>
|
| 178 |
+
</button>
|
| 179 |
+
|
| 180 |
+
<div id="add-file-menu" class="hidden absolute right-0 mt-2 w-56 rounded-md shadow-lg bg-card-var ring-1 ring-border-color-var focus:outline-none z-50 transition-colors-theme">
|
| 181 |
+
<div class="py-1" role="menu" aria-orientation="vertical" aria-labelledby="add-file-toggle">
|
| 182 |
+
<a href="/mindus/nexus/editor?repo_slug={{ repo_slug }}" class="flex items-center px-4 py-2 text-sm text-color-var hover:bg-active-var transition-colors-theme" role="menuitem">
|
| 183 |
+
<span class="material-symbols-rounded mr-3 text-base">create_new_folder</span> Create New File
|
| 184 |
+
</a>
|
| 185 |
+
<a href="/mindus/nexus/upload_file?repo_slug={{ repo_slug }}" class="text-gray-700 block px-4 py-2 text-sm hover:bg-gray-100" role="menuitem">
|
| 186 |
+
<span class="material-symbols-rounded align-middle mr-2 text-lg">upload_file</span>
|
| 187 |
+
Upload files
|
| 188 |
+
</a>
|
| 189 |
+
</div>
|
| 190 |
+
</div>
|
| 191 |
+
</div>
|
| 192 |
+
|
| 193 |
+
<a href="/mindus/nexus/dynamic_and_static?repo_slug={{ repo_slug }}" class="inline-flex items-center px-3 py-1.5 text-sm bg-card-var border border-color-var rounded-lg text-color-var hover:bg-active-var transition-colors-theme">
|
| 194 |
+
<span class="material-symbols-rounded text-base mr-1">rocket_launch</span> Deploy this Repository
|
| 195 |
+
</a>
|
| 196 |
+
|
| 197 |
+
<button class="inline-flex items-center px-3 py-1.5 text-sm bg-primary-color-var text-white font-semibold rounded-lg hover:bg-primary-hover-var transition duration-150">
|
| 198 |
+
<span class="material-symbols-rounded text-base mr-1">code</span> Code
|
| 199 |
+
<span class="material-symbols-rounded text-base ml-2">arrow_drop_down</span>
|
| 200 |
+
</button>
|
| 201 |
+
</div>
|
| 202 |
+
</div>
|
| 203 |
+
|
| 204 |
+
<div class="grid grid-cols-1 lg:grid-cols-3 gap-8">
|
| 205 |
+
|
| 206 |
+
<div class="lg:col-span-2 space-y-6">
|
| 207 |
+
|
| 208 |
+
<div id="file-list-container" class="bg-card-var rounded-lg border border-color-var transition-colors-theme min-h-[100px]">
|
| 209 |
+
|
| 210 |
+
<div class="flex items-center p-3 border-b border-color-var">
|
| 211 |
+
<span class="material-symbols-rounded text-lg text-secondary-var mr-3">account_circle</span>
|
| 212 |
+
|
| 213 |
+
<div class="flex flex-col sm:flex-row sm:items-center w-full justify-between">
|
| 214 |
+
<a href="#" class="text-sm font-semibold text-color-var hover:text-link-var">mindus0</a>
|
| 215 |
+
<span id="latest-commit-message" class="text-sm text-secondary-var truncate mr-2 ml-2">Loading...</span>
|
| 216 |
+
<a href="#" class="text-sm text-link-var hover:text-link-hover-var whitespace-nowrap ml-auto">
|
| 217 |
+
<span id="latest-commit-hash">N/A</span>
|
| 218 |
+
</a>
|
| 219 |
+
<span id="latest-commit-time" class="text-xs text-secondary-var ml-2 whitespace-nowrap hidden sm:inline">
|
| 220 |
+
N/A
|
| 221 |
+
</span>
|
| 222 |
+
<a href="#" class="text-sm text-link-var hover:text-link-hover-var whitespace-nowrap ml-4">
|
| 223 |
+
<span class="material-symbols-rounded text-base mr-1">history</span> <span id="commit-count">?</span> Commits
|
| 224 |
+
</a>
|
| 225 |
+
</div>
|
| 226 |
+
</div>
|
| 227 |
+
|
| 228 |
+
<div id="loading-spinner" class="flex justify-center items-center p-12">
|
| 229 |
+
<div class="spinner"></div>
|
| 230 |
+
</div>
|
| 231 |
+
|
| 232 |
+
<div id="empty-repo-message" class="hidden text-center p-8">
|
| 233 |
+
<span class="material-symbols-rounded text-6xl text-secondary-var mb-4">folder_off</span>
|
| 234 |
+
<h2 class="text-xl font-semibold mb-2 text-color-var">This repository is empty</h2>
|
| 235 |
+
<p class="text-secondary-var mb-6">Add your first file to start your project.</p>
|
| 236 |
+
</div>
|
| 237 |
+
|
| 238 |
+
<table id="file-table" class="min-w-full divide-y divide-color-var hidden">
|
| 239 |
+
<tbody id="file-table-body" class="divide-y divide-color-var/50 text-sm">
|
| 240 |
+
</tbody>
|
| 241 |
+
</table>
|
| 242 |
+
</div>
|
| 243 |
+
|
| 244 |
+
<div id="readme-container" class="bg-card-var p-6 rounded-lg border border-color-var transition-colors-theme">
|
| 245 |
+
<h3 class="text-lg font-semibold text-color-var mb-4 border-b pb-2 border-color-var/50">README.md</h3>
|
| 246 |
+
<div id="readme-content">
|
| 247 |
+
<p class="text-secondary-var leading-relaxed">
|
| 248 |
+
Loading README.md...
|
| 249 |
+
</p>
|
| 250 |
+
</div>
|
| 251 |
+
</div>
|
| 252 |
+
</div>
|
| 253 |
+
|
| 254 |
+
<div class="lg:col-span-1 space-y-6">
|
| 255 |
+
<div class="bg-card-var p-4 rounded-lg border border-color-var transition-colors-theme">
|
| 256 |
+
<h3 class="text-md font-semibold text-color-var mb-3">About</h3>
|
| 257 |
+
<p id="about-description" class="text-sm text-secondary-var mb-4">
|
| 258 |
+
Loading description...
|
| 259 |
+
</p>
|
| 260 |
+
<ul class="space-y-2 text-sm">
|
| 261 |
+
<li class="flex items-center text-secondary-var">
|
| 262 |
+
<span class="material-symbols-rounded text-base mr-2">book</span> Readme
|
| 263 |
+
</li>
|
| 264 |
+
<li id="about-license" class="flex items-center text-secondary-var">
|
| 265 |
+
<span class="material-symbols-rounded text-base mr-2">policy</span> Apache-2.0 license
|
| 266 |
+
</li>
|
| 267 |
+
<li class="flex items-center text-secondary-var">
|
| 268 |
+
<span class="material-symbols-rounded text-base mr-2">visibility</span> 0 watching
|
| 269 |
+
</li>
|
| 270 |
+
<li class="flex items-center text-secondary-var">
|
| 271 |
+
<span class="material-symbols-rounded text-base mr-2">star</span> 0 stars
|
| 272 |
+
</li>
|
| 273 |
+
<li class="flex items-center text-secondary-var">
|
| 274 |
+
<span class="material-symbols-rounded text-base mr-2">fork_right</span> 0 forks
|
| 275 |
+
</li>
|
| 276 |
+
</ul>
|
| 277 |
+
</div>
|
| 278 |
+
|
| 279 |
+
<div class="bg-card-var p-4 rounded-lg border border-color-var transition-colors-theme">
|
| 280 |
+
<h3 class="text-md font-semibold text-color-var mb-3">Releases</h3>
|
| 281 |
+
<p class="text-sm text-secondary-var">No releases published</p>
|
| 282 |
+
<a href="#" class="text-sm text-link-var hover:text-link-hover-var mt-2 block">
|
| 283 |
+
Create a new release
|
| 284 |
+
</a>
|
| 285 |
+
</div>
|
| 286 |
+
</div>
|
| 287 |
+
|
| 288 |
+
</div>
|
| 289 |
+
|
| 290 |
+
</div>
|
| 291 |
+
|
| 292 |
+
<script>
|
| 293 |
+
// REPOSITORY PAGE SPECIFIC LOGIC
|
| 294 |
+
|
| 295 |
+
const fileTableBody = document.getElementById('file-table-body');
|
| 296 |
+
const fileTable = document.getElementById('file-table');
|
| 297 |
+
const emptyRepoMessage = document.getElementById('empty-repo-message');
|
| 298 |
+
const loadingSpinner = document.getElementById('loading-spinner');
|
| 299 |
+
const repoTitleElement = document.getElementById('repo-name');
|
| 300 |
+
const aboutDescription = document.getElementById('about-description');
|
| 301 |
+
const aboutLicense = document.getElementById('about-license');
|
| 302 |
+
const repoVisibility = document.getElementById('repo-visibility');
|
| 303 |
+
const readmeContent = document.getElementById('readme-content');
|
| 304 |
+
|
| 305 |
+
// NOUVELLE FONCTION: Uniformiser l'icône de fichier
|
| 306 |
+
const getFileIcon = (fileName) => {
|
| 307 |
+
// Retourne une seule icône générique pour tous les types de fichiers
|
| 308 |
+
return { icon: 'draft', color: 'text-secondary-var' };
|
| 309 |
+
};
|
| 310 |
+
|
| 311 |
+
// NOUVELLE FONCTION: Obtenir la date et l'heure actuelles
|
| 312 |
+
const getCurrentDateTimeString = () => {
|
| 313 |
+
const now = new Date();
|
| 314 |
+
const dateOptions = { year: 'numeric', month: 'short', day: 'numeric' };
|
| 315 |
+
const timeOptions = { hour: '2-digit', minute: '2-digit' };
|
| 316 |
+
|
| 317 |
+
const datePart = now.toLocaleDateString('en-US', dateOptions); // e.g., "Dec 14, 2025"
|
| 318 |
+
const timePart = now.toLocaleTimeString('en-US', timeOptions); // e.g., "3:29 PM"
|
| 319 |
+
|
| 320 |
+
return `${datePart} at ${timePart}`;
|
| 321 |
+
};
|
| 322 |
+
|
| 323 |
+
// Main function to load repository data
|
| 324 |
+
const loadRepoData = async () => {
|
| 325 |
+
// 1. Get repo_slug from URL
|
| 326 |
+
const urlParams = new URLSearchParams(window.location.search);
|
| 327 |
+
const repoSlug = urlParams.get('repo_slug');
|
| 328 |
+
const repoUser = document.getElementById('repo-user').textContent;
|
| 329 |
+
|
| 330 |
+
if (!repoSlug) {
|
| 331 |
+
loadingSpinner.innerHTML = '<p class="text-red-500">Error: Repository slug is missing from the URL.</p>';
|
| 332 |
+
return;
|
| 333 |
+
}
|
| 334 |
+
|
| 335 |
+
// Update the repository name immediately (it might be "{{ repo_slug }}" at first)
|
| 336 |
+
repoTitleElement.textContent = repoSlug;
|
| 337 |
+
|
| 338 |
+
// 2. Show spinner
|
| 339 |
+
loadingSpinner.classList.remove('hidden');
|
| 340 |
+
fileTable.classList.add('hidden');
|
| 341 |
+
emptyRepoMessage.classList.add('hidden');
|
| 342 |
+
|
| 343 |
+
try {
|
| 344 |
+
// 3. Call the API
|
| 345 |
+
const response = await fetch(`/api/repo_data/${repoSlug}`, {
|
| 346 |
+
method: 'GET',
|
| 347 |
+
headers: { 'Content-Type': 'application/json' },
|
| 348 |
+
});
|
| 349 |
+
|
| 350 |
+
const result = await response.json();
|
| 351 |
+
|
| 352 |
+
if (!result.success) {
|
| 353 |
+
// Handle API errors (e.g., 404)
|
| 354 |
+
loadingSpinner.innerHTML = `<p class="text-red-500">Loading error: ${result.message}</p>`;
|
| 355 |
+
return;
|
| 356 |
+
}
|
| 357 |
+
|
| 358 |
+
const data = result.data;
|
| 359 |
+
|
| 360 |
+
// 4. Populate 'About' card metadata
|
| 361 |
+
const info = data.repo_info || {};
|
| 362 |
+
// The repo name should be updated dynamically based on the backend data if available
|
| 363 |
+
repoTitleElement.textContent = info.repo_name || repoSlug;
|
| 364 |
+
document.getElementById('about-description').textContent = info.description || 'No description provided.';
|
| 365 |
+
document.getElementById('about-license').innerHTML = `<span class="material-symbols-rounded text-base mr-2">policy</span> ${info.license || 'No license'}`;
|
| 366 |
+
document.getElementById('repo-visibility').textContent = info.visibility || 'Private';
|
| 367 |
+
|
| 368 |
+
// 5. Populate README.md content
|
| 369 |
+
readmeContent.innerHTML = data.readme_content || `<p class="text-secondary-var leading-relaxed">No README.md file found.</p>`;
|
| 370 |
+
|
| 371 |
+
// 6. Populate file list
|
| 372 |
+
const filesFromApi = data.file_list || [];
|
| 373 |
+
fileTableBody.innerHTML = ''; // Clear old list
|
| 374 |
+
|
| 375 |
+
if (filesFromApi.length === 0) {
|
| 376 |
+
emptyRepoMessage.classList.remove('hidden');
|
| 377 |
+
} else {
|
| 378 |
+
fileTable.classList.remove('hidden');
|
| 379 |
+
|
| 380 |
+
// Update commit header (simulated for example)
|
| 381 |
+
const latestCommit = filesFromApi[filesFromApi.length - 1]; // Assume last is most recent
|
| 382 |
+
// NOTE: In reality, the backend should provide the *actual* latest commit info.
|
| 383 |
+
document.getElementById('latest-commit-message').textContent = "Commit message not available";
|
| 384 |
+
document.getElementById('latest-commit-hash').textContent = "a6d9283";
|
| 385 |
+
document.getElementById('latest-commit-time').textContent = latestCommit.time_ago || "N/A";
|
| 386 |
+
document.getElementById('commit-count').textContent = "2"; // Hardcoded for now
|
| 387 |
+
|
| 388 |
+
|
| 389 |
+
filesFromApi.forEach(file => {
|
| 390 |
+
const { icon, color } = getFileIcon(file.name);
|
| 391 |
+
|
| 392 |
+
// Déterminer la valeur de l'heure. Utiliser l'heure actuelle si file.time_ago est vide/nul
|
| 393 |
+
const timeDisplay = file.time_ago || getCurrentDateTimeString();
|
| 394 |
+
|
| 395 |
+
// Construction de l'URL pour l'éditeur avec le chemin du fichier
|
| 396 |
+
const editorUrl = `/mindus/nexus/editor?repo_slug=${repoSlug}&file_path=${encodeURIComponent(file.path)}`;
|
| 397 |
+
|
| 398 |
+
const row = document.createElement('tr');
|
| 399 |
+
row.className = 'hover:bg-active-var transition-colors-theme cursor-pointer';
|
| 400 |
+
row.innerHTML = `
|
| 401 |
+
<td class="px-3 py-2 sm:px-4 sm:py-3 whitespace-nowrap w-2/5">
|
| 402 |
+
<div class="flex items-center">
|
| 403 |
+
<span class="material-symbols-rounded text-lg mr-2 align-middle ${color}">${icon}</span>
|
| 404 |
+
<a href="${editorUrl}" class="text-sm font-medium text-color-var hover:text-link-var">
|
| 405 |
+
${file.name}
|
| 406 |
+
</a>
|
| 407 |
+
</div>
|
| 408 |
+
</td>
|
| 409 |
+
<td class="px-3 py-2 sm:px-4 sm:py-3 whitespace-nowrap text-sm text-secondary-var w-2/5">
|
| 410 |
+
<span class="truncate block max-w-xs">Commit message not available</span>
|
| 411 |
+
</td>
|
| 412 |
+
<td class="px-3 py-2 sm:px-4 sm:py-3 whitespace-nowrap text-sm text-secondary-var text-right w-1/5">
|
| 413 |
+
${timeDisplay} </td>
|
| 414 |
+
`;
|
| 415 |
+
// Make the whole row clickable
|
| 416 |
+
row.addEventListener('click', (e) => {
|
| 417 |
+
// Éviter de double-cliquer si l'utilisateur clique sur le lien <a>
|
| 418 |
+
if (e.target.tagName !== 'A') {
|
| 419 |
+
// Navigate to the editor for the clicked file
|
| 420 |
+
window.location.href = editorUrl;
|
| 421 |
+
}
|
| 422 |
+
});
|
| 423 |
+
fileTableBody.appendChild(row);
|
| 424 |
+
});
|
| 425 |
+
}
|
| 426 |
+
|
| 427 |
+
} catch (error) {
|
| 428 |
+
loadingSpinner.innerHTML = `<p class="text-red-500">Fatal error: Failed to connect to the server. ${error.message}</p>`;
|
| 429 |
+
console.error('Error loading repository data:', error);
|
| 430 |
+
} finally {
|
| 431 |
+
// 7. Hide spinner
|
| 432 |
+
loadingSpinner.classList.add('hidden');
|
| 433 |
+
}
|
| 434 |
+
};
|
| 435 |
+
|
| 436 |
+
// --- "BRANCH" MENU LOGIC ---
|
| 437 |
+
const branchToggle = document.getElementById('branch-toggle');
|
| 438 |
+
const branchMenu = document.getElementById('branch-menu');
|
| 439 |
+
|
| 440 |
+
const toggleBranchMenu = (event) => {
|
| 441 |
+
event.stopPropagation();
|
| 442 |
+
branchMenu.classList.toggle('hidden');
|
| 443 |
+
// Ensure other menus are closed
|
| 444 |
+
addFileMenu.classList.add('hidden');
|
| 445 |
+
};
|
| 446 |
+
|
| 447 |
+
branchToggle.addEventListener('click', toggleBranchMenu);
|
| 448 |
+
|
| 449 |
+
// --- "ADD FILE" MENU LOGIC ---
|
| 450 |
+
const addFileToggle = document.getElementById('add-file-toggle');
|
| 451 |
+
const addFileMenu = document.getElementById('add-file-menu');
|
| 452 |
+
|
| 453 |
+
const toggleAddFileMenu = (event) => {
|
| 454 |
+
event.stopPropagation();
|
| 455 |
+
addFileMenu.classList.toggle('hidden');
|
| 456 |
+
// Ensure other menus are closed
|
| 457 |
+
branchMenu.classList.add('hidden');
|
| 458 |
+
};
|
| 459 |
+
|
| 460 |
+
addFileToggle.addEventListener('click', toggleAddFileMenu);
|
| 461 |
+
|
| 462 |
+
|
| 463 |
+
// Event listener to close menus on outside click
|
| 464 |
+
document.addEventListener('click', (event) => {
|
| 465 |
+
// Close "Add file" menu
|
| 466 |
+
if (!addFileMenu.contains(event.target) && !addFileToggle.contains(event.target)) {
|
| 467 |
+
addFileMenu.classList.add('hidden');
|
| 468 |
+
}
|
| 469 |
+
// Close "Branch" menu
|
| 470 |
+
if (!branchMenu.contains(event.target) && !branchToggle.contains(event.target)) {
|
| 471 |
+
branchMenu.classList.add('hidden');
|
| 472 |
+
}
|
| 473 |
+
});
|
| 474 |
+
|
| 475 |
+
|
| 476 |
+
// Call function on page load
|
| 477 |
+
loadRepoData();
|
| 478 |
+
</script>
|
| 479 |
+
</body>
|
| 480 |
+
</html>
|
a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/repo_files_branch.html
ADDED
|
@@ -0,0 +1,760 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en" class="light">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>GitForge | Repository - My Project</title>
|
| 7 |
+
<link rel="icon" type="image/png" href="https://i.postimg.cc/t4NCGNzD/gitforge-png.png">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<link rel="stylesheet"
|
| 10 |
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" />
|
| 11 |
+
<style>
|
| 12 |
+
/* Inter font configuration */
|
| 13 |
+
body { font-family: 'Inter', sans-serif; }
|
| 14 |
+
|
| 15 |
+
/* Theme Variables and Styles */
|
| 16 |
+
.transition-colors-theme { transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
|
| 17 |
+
|
| 18 |
+
/* Light Mode (UNIQUE Theme) */
|
| 19 |
+
.light {
|
| 20 |
+
--bg-page: #FFFFFF;
|
| 21 |
+
--bg-header: #F6F8FA;
|
| 22 |
+
--bg-card: #FFFFFF;
|
| 23 |
+
--bg-active: #F3F4F6;
|
| 24 |
+
--border-color: #D0D7DE;
|
| 25 |
+
--text-color: #24292F;
|
| 26 |
+
--text-secondary: #57606A;
|
| 27 |
+
--text-link: #0969DA;
|
| 28 |
+
--primary-color: #2DA44E;
|
| 29 |
+
--primary-hover: #2C974B;
|
| 30 |
+
}
|
| 31 |
+
/* Utility classes for variables */
|
| 32 |
+
.bg-page-var { background-color: var(--bg-page); } .bg-card-var { background-color: var(--bg-card); }
|
| 33 |
+
.bg-header-var { background-color: var(--bg-header); } .border-color-var { border-color: var(--border-color); }
|
| 34 |
+
.text-color-var { color: var(--text-color); } .text-secondary-var { color: var(--text-secondary); }
|
| 35 |
+
.text-link-var { color: var(--text-link); } .hover\:text-link-hover-var:hover { color: var(--text-link); }
|
| 36 |
+
.bg-primary-color-var { background-color: var(--primary-color); } .hover\:bg-primary-hover-var:hover { background-color: var(--primary-hover); }
|
| 37 |
+
.bg-active-var { background-color: var(--bg-active); } .hover\:bg-active-var:hover { background-color: var(--bg-active); }
|
| 38 |
+
.focus\:ring-primary-color-var:focus { --tw-ring-color: var(--primary-color); }
|
| 39 |
+
|
| 40 |
+
/* Specific style for the navigation bar */
|
| 41 |
+
.repo-nav-link {
|
| 42 |
+
padding: 0.5rem 1rem; border-bottom: 2px solid transparent;
|
| 43 |
+
margin-right: 0.5rem; /* Spacing between links */
|
| 44 |
+
}
|
| 45 |
+
.repo-nav-link.active {
|
| 46 |
+
border-bottom-color: var(--text-link);
|
| 47 |
+
color: var(--text-color) !important;
|
| 48 |
+
font-weight: 600;
|
| 49 |
+
}
|
| 50 |
+
|
| 51 |
+
/* Styles for the loading spinner */
|
| 52 |
+
.spinner {
|
| 53 |
+
border: 4px solid var(--border-color);
|
| 54 |
+
border-top: 4px solid var(--text-link);
|
| 55 |
+
border-radius: 50%;
|
| 56 |
+
width: 40px;
|
| 57 |
+
height: 40px;
|
| 58 |
+
animation: spin 1s linear infinite;
|
| 59 |
+
}
|
| 60 |
+
/* Smaller spinner (KEPT IN CSS FOR REFERENCE) */
|
| 61 |
+
.small-spinner {
|
| 62 |
+
border: 2px solid var(--border-color);
|
| 63 |
+
border-top: 2px solid var(--text-link);
|
| 64 |
+
border-radius: 50%;
|
| 65 |
+
width: 20px;
|
| 66 |
+
height: 20px;
|
| 67 |
+
animation: spin 1s linear infinite;
|
| 68 |
+
}
|
| 69 |
+
@keyframes spin {
|
| 70 |
+
0% { transform: rotate(0deg); }
|
| 71 |
+
100% { transform: rotate(360deg); }
|
| 72 |
+
}
|
| 73 |
+
</style>
|
| 74 |
+
</head>
|
| 75 |
+
|
| 76 |
+
<body class="bg-page-var text-color-var min-h-screen transition-colors-theme">
|
| 77 |
+
|
| 78 |
+
<header class="w-full bg-header-var border-b border-color-var transition-colors-theme">
|
| 79 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 80 |
+
<div class="flex justify-between items-center h-16">
|
| 81 |
+
<div class="flex items-center space-x-4">
|
| 82 |
+
<img src="https://i.postimg.cc/t4NCGNzD/gitforge-png.png" alt="GitForge Logo" class="h-6">
|
| 83 |
+
<span class="text-xl font-bold text-color-var transition-colors-theme">GitForge</span>
|
| 84 |
+
<span class="text-secondary-var">/</span>
|
| 85 |
+
<a href="#" class="text-color-var hover:text-link-var text-lg font-semibold transition-colors-theme">
|
| 86 |
+
<span id="repo-user">{{ user.username if user.username else 'current_user' }}</span> / <span id="repo-name">{{ repo_name if repo_name else repo_slug }}</span>
|
| 87 |
+
</a>
|
| 88 |
+
<span id="repo-visibility" class="px-2 py-0.5 text-xs font-medium rounded-full border border-color-var text-secondary-var">
|
| 89 |
+
Private
|
| 90 |
+
</span>
|
| 91 |
+
</div>
|
| 92 |
+
|
| 93 |
+
<div class="flex items-center space-x-3">
|
| 94 |
+
<div class="hidden sm:block">
|
| 95 |
+
<input type="text" placeholder="Type / to search"
|
| 96 |
+
class="bg-page-var border border-color-var text-color-var rounded-lg p-1.5 text-sm w-48 transition-colors-theme focus:outline-none focus:border-link-var focus:ring-1 focus:ring-link-var">
|
| 97 |
+
</div>
|
| 98 |
+
<a href="mindus/nexus/profile" class="p-2 rounded-full text-color-var hover:text-link-var transition-colors-theme">
|
| 99 |
+
<span class="material-symbols-rounded">account_circle</span>
|
| 100 |
+
</a>
|
| 101 |
+
</div>
|
| 102 |
+
</div>
|
| 103 |
+
</div>
|
| 104 |
+
|
| 105 |
+
<div class="w-full border-b border-color-var bg-page-var transition-colors-theme">
|
| 106 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 107 |
+
<nav class="flex space-x-1 overflow-x-auto text-sm font-medium">
|
| 108 |
+
<a href="/mindus/nexus/repo_files?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var active transition-colors-theme flex items-center">
|
| 109 |
+
<span class="material-symbols-rounded text-base mr-1">code</span> Code
|
| 110 |
+
</a>
|
| 111 |
+
<a href="/mindus/nexus/new_issue?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 112 |
+
<span class="material-symbols-rounded text-base mr-1">bug_report</span> Issues
|
| 113 |
+
</a>
|
| 114 |
+
<a href="/mindus/nexus/pull_requests?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 115 |
+
<span class="material-symbols-rounded text-base mr-1">merge</span> Pull requests
|
| 116 |
+
</a>
|
| 117 |
+
<a href="/mindus/nexus/editor?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 118 |
+
<span class="material-symbols-rounded text-base mr-1">checklist</span> Actions
|
| 119 |
+
</a>
|
| 120 |
+
<a href="#" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 121 |
+
<span class="material-symbols-rounded text-base mr-1">lock</span> Security
|
| 122 |
+
</a>
|
| 123 |
+
<a href="#" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 124 |
+
<span class="material-symbols-rounded text-base mr-1">insights</span> Insights
|
| 125 |
+
</a>
|
| 126 |
+
<a href="/mindus/nexus/settings?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 127 |
+
<span class="material-symbols-rounded text-base mr-1">settings</span> Settings
|
| 128 |
+
</a>
|
| 129 |
+
</nav>
|
| 130 |
+
</div>
|
| 131 |
+
</div>
|
| 132 |
+
</header>
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
<div id="main-content" class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 transition-colors-theme">
|
| 136 |
+
|
| 137 |
+
<div class="flex flex-col sm:flex-row justify-between items-start sm:items-center mb-6 space-y-4 sm:space-y-0">
|
| 138 |
+
<div class="flex items-center space-x-4">
|
| 139 |
+
|
| 140 |
+
<div class="relative inline-block text-left">
|
| 141 |
+
<button id="branch-toggle" class="flex items-center px-3 py-1.5 text-sm bg-card-var border border-color-var rounded-lg text-color-var hover:bg-active-var transition-colors-theme">
|
| 142 |
+
<span class="material-symbols-rounded text-base mr-1">merge</span>
|
| 143 |
+
<span class="font-semibold" id="current-branch-name">main</span>
|
| 144 |
+
<span class="material-symbols-rounded text-base ml-2">arrow_drop_down</span>
|
| 145 |
+
</button>
|
| 146 |
+
|
| 147 |
+
<div id="branch-menu" class="hidden absolute left-0 mt-2 w-72 rounded-md shadow-lg bg-card-var ring-1 ring-border-color-var focus:outline-none z-50 transition-colors-theme">
|
| 148 |
+
<div class="p-3">
|
| 149 |
+
<input type="text" id="branch-filter" placeholder="Find a branch..."
|
| 150 |
+
class="w-full p-2 text-sm border border-color-var rounded-lg focus:outline-none focus:ring-1 focus:ring-link-var mb-2 bg-page-var text-color-var transition-colors-theme">
|
| 151 |
+
|
| 152 |
+
<a href="/mindus/nexus/new_branch?repo_slug={{ repo_slug }}" class="block text-sm text-link-var hover:text-link-hover-var p-1 rounded-md hover:bg-active-var transition-colors-theme">
|
| 153 |
+
<span class="material-symbols-rounded text-base mr-1 align-middle">visibility</span> View all branches
|
| 154 |
+
</a>
|
| 155 |
+
|
| 156 |
+
<div class="mt-2 max-h-40 overflow-y-auto" id="branch-list-container">
|
| 157 |
+
<div class="text-xs text-secondary-var p-1">Loading Branches...</div>
|
| 158 |
+
</div>
|
| 159 |
+
</div>
|
| 160 |
+
</div>
|
| 161 |
+
</div>
|
| 162 |
+
<span class="text-sm text-secondary-var" id="branch-count">1 Branch</span>
|
| 163 |
+
<span class="text-sm text-secondary-var">0 Tags</span>
|
| 164 |
+
</div>
|
| 165 |
+
|
| 166 |
+
<div class="flex items-center space-x-3">
|
| 167 |
+
|
| 168 |
+
<div class="relative inline-block text-left">
|
| 169 |
+
<button id="add-file-toggle" class="inline-flex items-center px-3 py-1.5 text-sm bg-card-var border border-color-var rounded-lg text-color-var hover:bg-active-var transition-colors-theme">
|
| 170 |
+
<span class="material-symbols-rounded text-base mr-1">add</span> Add file
|
| 171 |
+
<span class="material-symbols-rounded text-base ml-1">arrow_drop_down</span>
|
| 172 |
+
</button>
|
| 173 |
+
|
| 174 |
+
<div id="add-file-menu" class="hidden absolute right-0 mt-2 w-56 rounded-md shadow-lg bg-card-var ring-1 ring-border-color-var focus:outline-none z-50 transition-colors-theme">
|
| 175 |
+
<div class="py-1" role="menu" aria-orientation="vertical" aria-labelledby="add-file-toggle">
|
| 176 |
+
<a href="/mindus/nexus/editor?repo_slug={{ repo_slug }}" class="flex items-center px-4 py-2 text-sm text-color-var hover:bg-active-var transition-colors-theme" role="menuitem">
|
| 177 |
+
<span class="material-symbols-rounded mr-3 text-base">create_new_folder</span> Create New File
|
| 178 |
+
</a>
|
| 179 |
+
<a href="/mindus/nexus/upload_file?repo_slug={{ repo_slug }}" class="text-gray-700 block px-4 py-2 text-sm hover:bg-gray-100" role="menuitem">
|
| 180 |
+
<span class="material-symbols-rounded align-middle mr-2 text-lg">upload_file</span>
|
| 181 |
+
Upload files
|
| 182 |
+
</a>
|
| 183 |
+
</div>
|
| 184 |
+
</div>
|
| 185 |
+
</div>
|
| 186 |
+
|
| 187 |
+
<button class="inline-flex items-center px-3 py-1.5 text-sm bg-primary-color-var text-white font-semibold rounded-lg hover:bg-primary-hover-var transition duration-150">
|
| 188 |
+
<span class="material-symbols-rounded text-base mr-1">code</span> Code
|
| 189 |
+
<span class="material-symbols-rounded text-base ml-2">arrow_drop_down</span>
|
| 190 |
+
</button>
|
| 191 |
+
</div>
|
| 192 |
+
</div>
|
| 193 |
+
|
| 194 |
+
<div class="space-y-6">
|
| 195 |
+
|
| 196 |
+
<div id="file-list-container" class="bg-card-var rounded-lg border border-color-var transition-colors-theme min-h-[100px]">
|
| 197 |
+
|
| 198 |
+
<div class="flex items-center p-3 border-b border-color-var">
|
| 199 |
+
<span class="material-symbols-rounded text-lg text-secondary-var mr-3">account_circle</span>
|
| 200 |
+
|
| 201 |
+
<div class="flex flex-col sm:flex-row sm:items-center w-full justify-between">
|
| 202 |
+
<a href="#" class="text-sm font-semibold text-color-var hover:text-link-var">mindus0</a>
|
| 203 |
+
<span id="latest-commit-message" class="text-sm text-secondary-var truncate mr-2 ml-2">Loading latest commit message...</span>
|
| 204 |
+
<a href="#" class="text-sm text-link-var hover:text-link-hover-var whitespace-nowrap ml-auto">
|
| 205 |
+
<span id="latest-commit-hash">N/A</span>
|
| 206 |
+
</a>
|
| 207 |
+
<span id="latest-commit-time" class="text-xs text-secondary-var ml-2 whitespace-nowrap hidden sm:inline">
|
| 208 |
+
N/A
|
| 209 |
+
</span>
|
| 210 |
+
<a href="#" class="text-sm text-link-var hover:text-link-hover-var whitespace-nowrap ml-4">
|
| 211 |
+
<span class="material-symbols-rounded text-base mr-1">history</span> <span id="commit-count">?</span> Commits
|
| 212 |
+
</a>
|
| 213 |
+
</div>
|
| 214 |
+
</div>
|
| 215 |
+
|
| 216 |
+
<div id="path-breadcrumb" class="p-3 text-sm text-secondary-var border-b border-color-var hidden">
|
| 217 |
+
</div>
|
| 218 |
+
|
| 219 |
+
<div id="loading-spinner" class="flex justify-center items-center p-12">
|
| 220 |
+
<div class="spinner"></div>
|
| 221 |
+
</div>
|
| 222 |
+
|
| 223 |
+
<div id="empty-repo-message" class="hidden text-center p-8">
|
| 224 |
+
<span class="material-symbols-rounded text-6xl text-secondary-var mb-4">folder_off</span>
|
| 225 |
+
<h2 class="text-xl font-semibold mb-2 text-color-var">This repository is empty</h2>
|
| 226 |
+
<p class="text-secondary-var mb-6">Add your first file to start your project.</p>
|
| 227 |
+
</div>
|
| 228 |
+
|
| 229 |
+
<table id="file-table" class="min-w-full divide-y divide-color-var hidden">
|
| 230 |
+
<tbody id="file-table-body" class="divide-y divide-color-var/50 text-sm">
|
| 231 |
+
</tbody>
|
| 232 |
+
</table>
|
| 233 |
+
</div>
|
| 234 |
+
|
| 235 |
+
</div>
|
| 236 |
+
|
| 237 |
+
</div>
|
| 238 |
+
|
| 239 |
+
<script>
|
| 240 |
+
// REPOSITORY PAGE SPECIFIC LOGIC
|
| 241 |
+
|
| 242 |
+
const fileTableBody = document.getElementById('file-table-body');
|
| 243 |
+
const fileTable = document.getElementById('file-table');
|
| 244 |
+
const emptyRepoMessage = document.getElementById('empty-repo-message');
|
| 245 |
+
const loadingSpinner = document.getElementById('loading-spinner');
|
| 246 |
+
const repoTitleElement = document.getElementById('repo-name');
|
| 247 |
+
// About, License, Visibility and Readme elements are kept in JS for simplicity but are not used in the HTML
|
| 248 |
+
const aboutDescription = document.getElementById('about-description');
|
| 249 |
+
const aboutLicense = document.getElementById('about-license');
|
| 250 |
+
const repoVisibility = document.getElementById('repo-visibility');
|
| 251 |
+
const readmeContent = document.getElementById('readme-content');
|
| 252 |
+
const branchToggle = document.getElementById('branch-toggle');
|
| 253 |
+
const branchMenu = document.getElementById('branch-menu');
|
| 254 |
+
const branchListContainer = document.getElementById('branch-list-container');
|
| 255 |
+
const currentBranchNameDisplay = document.getElementById('current-branch-name');
|
| 256 |
+
const branchCountDisplay = document.getElementById('branch-count');
|
| 257 |
+
const pathBreadcrumb = document.getElementById('path-breadcrumb');
|
| 258 |
+
|
| 259 |
+
// Global Variables
|
| 260 |
+
let repoSlug = '{{ repo_slug }}'; // Should be rendered by Jinja, e.g., 'my-project'
|
| 261 |
+
|
| 262 |
+
// Get branch and path from URL or use defaults
|
| 263 |
+
const urlParams = new URLSearchParams(window.location.search);
|
| 264 |
+
const urlRepoSlug = urlParams.get('repo_slug'); // Always check URL parameters
|
| 265 |
+
|
| 266 |
+
// Logic de secours : Si Jinja n'a pas rendu la variable (elle vaut toujours '{{ repo_slug }}'),
|
| 267 |
+
// on essaie de la récupérer depuis les paramètres de l'URL.
|
| 268 |
+
if (repoSlug === '{{ repo_slug }}' && urlRepoSlug) {
|
| 269 |
+
repoSlug = urlRepoSlug;
|
| 270 |
+
}
|
| 271 |
+
|
| 272 |
+
let currentBranch = urlParams.get('branch') || 'main';
|
| 273 |
+
let currentPath = urlParams.get('path') || ''; // Current folder path
|
| 274 |
+
|
| 275 |
+
// Function: Get File/Folder Icon based on type
|
| 276 |
+
const getFileIcon = (type) => {
|
| 277 |
+
// IMPORTANT: The backend should return 'folder' for directories
|
| 278 |
+
if (type === 'folder') {
|
| 279 |
+
return { icon: 'folder', color: 'text-link-var' }; // Blue for folders
|
| 280 |
+
}
|
| 281 |
+
// Default for files
|
| 282 |
+
return { icon: 'draft', color: 'text-secondary-var' }; // Gray for files
|
| 283 |
+
};
|
| 284 |
+
|
| 285 |
+
// Function: Get current date and time string (Placeholder for real 'time ago')
|
| 286 |
+
const getCurrentDateTimeString = () => {
|
| 287 |
+
const now = new Date();
|
| 288 |
+
const dateOptions = { year: 'numeric', month: 'short', day: 'numeric' };
|
| 289 |
+
const timeOptions = { hour: '2-digit', minute: '2-digit' };
|
| 290 |
+
|
| 291 |
+
const datePart = now.toLocaleDateString('en-US', dateOptions); // e.g., "Dec 14, 2025"
|
| 292 |
+
const timePart = now.toLocaleTimeString('en-US', timeOptions); // e.g., "3:30 PM"
|
| 293 |
+
|
| 294 |
+
return `${datePart} at ${timePart}`;
|
| 295 |
+
};
|
| 296 |
+
|
| 297 |
+
/**
|
| 298 |
+
* Updates the 'About' information and README content.
|
| 299 |
+
* NOTE: This function is largely kept for structure but its outputs are not displayed in the simplified HTML
|
| 300 |
+
*/
|
| 301 |
+
const loadRepoInfo = async () => {
|
| 302 |
+
try {
|
| 303 |
+
// NOTE: Simulate loading of static repo info (independent of branch)
|
| 304 |
+
const response = await fetch(`/api/repo_info/${repoSlug}`);
|
| 305 |
+
|
| 306 |
+
if (response.status === 404) {
|
| 307 |
+
// If repo not found or private/unauthorized
|
| 308 |
+
repoTitleElement.textContent = "Repository Not Found";
|
| 309 |
+
return;
|
| 310 |
+
}
|
| 311 |
+
|
| 312 |
+
const result = await response.json();
|
| 313 |
+
|
| 314 |
+
if (!result.success) {
|
| 315 |
+
console.error(`Loading error: ${result.message}`);
|
| 316 |
+
return;
|
| 317 |
+
}
|
| 318 |
+
|
| 319 |
+
const info = result.data.repo_info || {};
|
| 320 |
+
|
| 321 |
+
repoTitleElement.textContent = info.repo_name || repoSlug;
|
| 322 |
+
// The following lines are now redundant but kept in JS
|
| 323 |
+
if (aboutDescription) aboutDescription.textContent = info.description || 'No description provided.';
|
| 324 |
+
if (aboutLicense) aboutLicense.innerHTML = `<span class="material-symbols-rounded text-base mr-2">policy</span> ${info.license || 'No license'}`;
|
| 325 |
+
if (repoVisibility) repoVisibility.textContent = info.visibility || 'Private';
|
| 326 |
+
if (readmeContent) readmeContent.innerHTML = result.data.readme_content || `<p class="text-secondary-var leading-relaxed">No README.md file found.</p>`;
|
| 327 |
+
|
| 328 |
+
} catch (error) {
|
| 329 |
+
console.error('Error loading repository info:', error);
|
| 330 |
+
repoTitleElement.textContent = `Fatal Error`;
|
| 331 |
+
}
|
| 332 |
+
};
|
| 333 |
+
|
| 334 |
+
|
| 335 |
+
/**
|
| 336 |
+
* Loads the list of branches and populates the selection menu. (Kept as is)
|
| 337 |
+
*/
|
| 338 |
+
const loadBranches = async () => {
|
| 339 |
+
branchListContainer.innerHTML = '<div class="text-xs text-secondary-var p-1">Loading Branches...</div>';
|
| 340 |
+
currentBranchNameDisplay.textContent = currentBranch;
|
| 341 |
+
|
| 342 |
+
try {
|
| 343 |
+
// NOTE: Using a placeholder API route for branches
|
| 344 |
+
const response = await fetch(`/api/repo/${repoSlug}/branches`);
|
| 345 |
+
const result = await response.json();
|
| 346 |
+
|
| 347 |
+
if (!result.success || !result.data || result.data.length === 0) {
|
| 348 |
+
// FALLBACK: If API fails, assume 'main' is the only branch
|
| 349 |
+
const branches = ['main', 'dev']; // Simulated branches
|
| 350 |
+
if (branches.length === 0) {
|
| 351 |
+
branchListContainer.innerHTML = `<div class="text-xs text-secondary-var p-1">No branches found.</div>`;
|
| 352 |
+
branchCountDisplay.textContent = '0 Branches';
|
| 353 |
+
return;
|
| 354 |
+
}
|
| 355 |
+
|
| 356 |
+
branchListContainer.innerHTML = '';
|
| 357 |
+
branchCountDisplay.textContent = `${branches.length} Branch${branches.length > 1 ? 'es' : ''}`;
|
| 358 |
+
|
| 359 |
+
const currentBranchTitle = document.createElement('div');
|
| 360 |
+
currentBranchTitle.className = 'text-xs text-secondary-var p-1';
|
| 361 |
+
currentBranchTitle.textContent = 'Branches (Simulated)';
|
| 362 |
+
branchListContainer.appendChild(currentBranchTitle);
|
| 363 |
+
|
| 364 |
+
|
| 365 |
+
branches.forEach(branch => {
|
| 366 |
+
const isActive = branch === currentBranch;
|
| 367 |
+
const branchItem = document.createElement('div');
|
| 368 |
+
branchItem.className = `flex items-center p-1.5 text-sm font-semibold text-color-var rounded-md cursor-pointer branch-item ${isActive ? 'bg-active-var' : 'hover:bg-active-var'}`;
|
| 369 |
+
branchItem.setAttribute('data-branch-name', branch);
|
| 370 |
+
|
| 371 |
+
branchItem.innerHTML = `
|
| 372 |
+
${isActive ? '<span class="material-symbols-rounded text-base mr-2">check</span>' : '<span class="material-symbols-rounded text-base mr-2 opacity-0">check</span>'}
|
| 373 |
+
${branch}
|
| 374 |
+
`;
|
| 375 |
+
|
| 376 |
+
branchItem.addEventListener('click', (e) => {
|
| 377 |
+
e.preventDefault();
|
| 378 |
+
if (branch !== currentBranch) {
|
| 379 |
+
selectBranch(branch);
|
| 380 |
+
}
|
| 381 |
+
toggleBranchMenu(e); // Close menu after selection
|
| 382 |
+
});
|
| 383 |
+
|
| 384 |
+
branchListContainer.appendChild(branchItem);
|
| 385 |
+
});
|
| 386 |
+
return;
|
| 387 |
+
}
|
| 388 |
+
|
| 389 |
+
// Real API logic below (if successful)
|
| 390 |
+
const branches = result.data;
|
| 391 |
+
// ... (Rest of loadBranches remains the same)
|
| 392 |
+
|
| 393 |
+
} catch (error) {
|
| 394 |
+
// If the fetch fails completely, proceed with a fallback or error message
|
| 395 |
+
console.error('Error loading branches:', error);
|
| 396 |
+
// Fallback: If fetch fails, we'll try to keep the existing currentBranch logic
|
| 397 |
+
if (branchListContainer) branchListContainer.innerHTML = `<div class="text-xs text-red-500 p-1">Failed to load branches.</div>`;
|
| 398 |
+
}
|
| 399 |
+
};
|
| 400 |
+
|
| 401 |
+
/**
|
| 402 |
+
* Updates the selected branch, URL, and reloads files. (Kept as is)
|
| 403 |
+
* @param {string} branchName
|
| 404 |
+
*/
|
| 405 |
+
const selectBranch = (branchName) => {
|
| 406 |
+
if (branchName === currentBranch) return; // Do nothing if it's the same branch
|
| 407 |
+
|
| 408 |
+
currentBranch = branchName;
|
| 409 |
+
currentBranchNameDisplay.textContent = currentBranch;
|
| 410 |
+
currentPath = ''; // Reset path when changing branch
|
| 411 |
+
|
| 412 |
+
// Update URL to persist state
|
| 413 |
+
updateUrl(currentBranch, currentPath);
|
| 414 |
+
|
| 415 |
+
// Update branch menu display
|
| 416 |
+
const branchItems = document.querySelectorAll('.branch-item');
|
| 417 |
+
branchItems.forEach(item => {
|
| 418 |
+
const name = item.getAttribute('data-branch-name');
|
| 419 |
+
const checkIcon = item.querySelector('.material-symbols-rounded');
|
| 420 |
+
|
| 421 |
+
if (name === branchName) {
|
| 422 |
+
item.classList.add('bg-active-var');
|
| 423 |
+
item.classList.remove('hover:bg-active-var');
|
| 424 |
+
if (checkIcon) checkIcon.style.opacity = '1';
|
| 425 |
+
} else {
|
| 426 |
+
item.classList.remove('bg-active-var');
|
| 427 |
+
item.classList.add('hover:bg-active-var');
|
| 428 |
+
if (checkIcon) checkIcon.style.opacity = '0';
|
| 429 |
+
}
|
| 430 |
+
});
|
| 431 |
+
|
| 432 |
+
// Reload files for the new branch (at root path)
|
| 433 |
+
loadFileTree(currentBranch, currentPath);
|
| 434 |
+
}
|
| 435 |
+
|
| 436 |
+
/**
|
| 437 |
+
* Updates the browser URL with the current branch and path. (Kept as is)
|
| 438 |
+
* @param {string} branch
|
| 439 |
+
* @param {string} path
|
| 440 |
+
*/
|
| 441 |
+
const updateUrl = (branch, path) => {
|
| 442 |
+
const newUrl = new URL(window.location.href);
|
| 443 |
+
// Ensure repo_slug is in the URL
|
| 444 |
+
if (repoSlug && repoSlug !== '{{ repo_slug }}') {
|
| 445 |
+
newUrl.searchParams.set('repo_slug', repoSlug);
|
| 446 |
+
}
|
| 447 |
+
|
| 448 |
+
newUrl.searchParams.set('branch', branch);
|
| 449 |
+
if (path) {
|
| 450 |
+
newUrl.searchParams.set('path', path);
|
| 451 |
+
} else {
|
| 452 |
+
newUrl.searchParams.delete('path');
|
| 453 |
+
}
|
| 454 |
+
window.history.pushState({ path: newUrl.href, branch: branch, currentPath: path }, '', newUrl.href);
|
| 455 |
+
};
|
| 456 |
+
|
| 457 |
+
/**
|
| 458 |
+
* Generates and displays the current path breadcrumb. (Kept as is)
|
| 459 |
+
*/
|
| 460 |
+
const renderBreadcrumb = () => {
|
| 461 |
+
pathBreadcrumb.innerHTML = '';
|
| 462 |
+
if (!currentPath) {
|
| 463 |
+
pathBreadcrumb.classList.add('hidden');
|
| 464 |
+
return;
|
| 465 |
+
}
|
| 466 |
+
|
| 467 |
+
pathBreadcrumb.classList.remove('hidden');
|
| 468 |
+
|
| 469 |
+
// Create Go Up button
|
| 470 |
+
const upButton = document.createElement('a');
|
| 471 |
+
upButton.href = '#';
|
| 472 |
+
upButton.className = 'text-link-var hover:text-link-hover-var mr-2 inline-flex items-center';
|
| 473 |
+
upButton.innerHTML = `<span class="material-symbols-rounded text-lg">subdirectory_arrow_left</span> Up`;
|
| 474 |
+
upButton.addEventListener('click', (e) => {
|
| 475 |
+
e.preventDefault();
|
| 476 |
+
const parts = currentPath.split('/');
|
| 477 |
+
parts.pop();
|
| 478 |
+
navigateToPath(parts.join('/'));
|
| 479 |
+
});
|
| 480 |
+
pathBreadcrumb.appendChild(upButton);
|
| 481 |
+
|
| 482 |
+
|
| 483 |
+
const parts = currentPath.split('/');
|
| 484 |
+
let pathAccumulator = '';
|
| 485 |
+
|
| 486 |
+
parts.forEach((part, index) => {
|
| 487 |
+
if (!part) return; // Skip empty parts from initial or trailing slashes
|
| 488 |
+
|
| 489 |
+
pathAccumulator = pathAccumulator ? `${pathAccumulator}/${part}` : part;
|
| 490 |
+
const isLast = index === parts.length - 1;
|
| 491 |
+
|
| 492 |
+
const partElement = document.createElement('span');
|
| 493 |
+
partElement.className = 'inline-flex items-center';
|
| 494 |
+
partElement.innerHTML = `<span class="mx-1">/</span>`;
|
| 495 |
+
|
| 496 |
+
const linkElement = document.createElement('a');
|
| 497 |
+
linkElement.href = '#';
|
| 498 |
+
linkElement.textContent = part;
|
| 499 |
+
|
| 500 |
+
if (isLast) {
|
| 501 |
+
linkElement.className = 'font-semibold text-color-var'; // Last part is just text/strong
|
| 502 |
+
} else {
|
| 503 |
+
linkElement.className = 'text-link-var hover:text-link-hover-var';
|
| 504 |
+
const pathToNavigate = pathAccumulator;
|
| 505 |
+
linkElement.addEventListener('click', (e) => {
|
| 506 |
+
e.preventDefault();
|
| 507 |
+
navigateToPath(pathToNavigate);
|
| 508 |
+
});
|
| 509 |
+
}
|
| 510 |
+
|
| 511 |
+
pathAccumulator = pathAccumulator; // Ensure accumulator is full path for next step
|
| 512 |
+
|
| 513 |
+
partElement.prepend(linkElement);
|
| 514 |
+
pathBreadcrumb.appendChild(partElement);
|
| 515 |
+
});
|
| 516 |
+
};
|
| 517 |
+
|
| 518 |
+
/**
|
| 519 |
+
* Changes the current path and reloads the file tree. (Kept as is)
|
| 520 |
+
* @param {string} newPath The new folder path to navigate to.
|
| 521 |
+
*/
|
| 522 |
+
const navigateToPath = (newPath) => {
|
| 523 |
+
currentPath = newPath;
|
| 524 |
+
updateUrl(currentBranch, currentPath);
|
| 525 |
+
loadFileTree(currentBranch, currentPath);
|
| 526 |
+
};
|
| 527 |
+
|
| 528 |
+
|
| 529 |
+
/**
|
| 530 |
+
* Loads the list of files/folders for the given branch and path using the new API route.
|
| 531 |
+
* @param {string} branchName The branch to load.
|
| 532 |
+
* @param {string} path The folder path to load content from (can be empty for root).
|
| 533 |
+
*/
|
| 534 |
+
const loadFileTree = async (branchName, path) => {
|
| 535 |
+
loadingSpinner.classList.remove('hidden');
|
| 536 |
+
fileTable.classList.add('hidden');
|
| 537 |
+
emptyRepoMessage.classList.add('hidden');
|
| 538 |
+
fileTableBody.innerHTML = '';
|
| 539 |
+
renderBreadcrumb();
|
| 540 |
+
|
| 541 |
+
// Check if repoSlug is valid before making the API call
|
| 542 |
+
if (!repoSlug || repoSlug === '{{ repo_slug }}') {
|
| 543 |
+
loadingSpinner.classList.add('hidden');
|
| 544 |
+
loadingSpinner.innerHTML = '<p class="text-red-500">Error: Repository slug is missing or invalid.</p>';
|
| 545 |
+
return;
|
| 546 |
+
}
|
| 547 |
+
|
| 548 |
+
// Construct API endpoint: /api/repo/<repo_slug>/content?branch=main&path=src/components
|
| 549 |
+
// L'API est ajustée pour utiliser 'path'
|
| 550 |
+
const apiEndpoint = `/api/repo/${repoSlug}/content?branch=${encodeURIComponent(branchName)}&path=${encodeURIComponent(path)}`;
|
| 551 |
+
|
| 552 |
+
try {
|
| 553 |
+
const response = await fetch(apiEndpoint, {
|
| 554 |
+
method: 'GET',
|
| 555 |
+
headers: { 'Content-Type': 'application/json' },
|
| 556 |
+
});
|
| 557 |
+
|
| 558 |
+
if (!response.ok) {
|
| 559 |
+
// Si la route est 404, cela signifie que le dépôt est introuvable ou le chemin est incorrect
|
| 560 |
+
const errorText = await response.text();
|
| 561 |
+
loadingSpinner.innerHTML = `<p class="text-red-500">Erreur de chargement: ${response.statusText}. Dépôt ou chemin non trouvé. (Détails: ${errorText.substring(0, 100)})</p>`;
|
| 562 |
+
return;
|
| 563 |
+
}
|
| 564 |
+
|
| 565 |
+
const result = await response.json();
|
| 566 |
+
|
| 567 |
+
if (!result.success) {
|
| 568 |
+
loadingSpinner.innerHTML = `<p class="text-red-500">Loading error for path ${path} in branch ${branchName}: ${result.message}</p>`;
|
| 569 |
+
return;
|
| 570 |
+
}
|
| 571 |
+
|
| 572 |
+
const filesFromApi = result.content || [];
|
| 573 |
+
|
| 574 |
+
if (filesFromApi.length === 0) {
|
| 575 |
+
emptyRepoMessage.classList.remove('hidden');
|
| 576 |
+
} else {
|
| 577 |
+
fileTable.classList.remove('hidden');
|
| 578 |
+
|
| 579 |
+
// Mettre à jour les informations de commit
|
| 580 |
+
document.getElementById('latest-commit-message').textContent = filesFromApi[0]?.commit_message || "Commit data not available";
|
| 581 |
+
document.getElementById('latest-commit-hash').textContent = "N/A"; // L'API ne retourne pas le hash dans la structure actuelle
|
| 582 |
+
document.getElementById('latest-commit-time').textContent = filesFromApi[0]?.time_ago || "N/A"; // Utiliser le temps du premier fichier
|
| 583 |
+
document.getElementById('commit-count').textContent = result.data?.commit_count || "?"; // Assumes commit_count is available at result.data
|
| 584 |
+
|
| 585 |
+
// Sort: Folders first, then files, both alphabetically
|
| 586 |
+
filesFromApi.sort((a, b) => {
|
| 587 |
+
if (a.type === 'folder' && b.type !== 'folder') return -1;
|
| 588 |
+
if (a.type !== 'folder' && b.type === 'folder') return 1;
|
| 589 |
+
return a.name.localeCompare(b.name);
|
| 590 |
+
});
|
| 591 |
+
|
| 592 |
+
|
| 593 |
+
filesFromApi.forEach(item => {
|
| 594 |
+
const { icon, color } = getFileIcon(item.type);
|
| 595 |
+
|
| 596 |
+
// Determine time value. Use current time if item.time_ago is empty/null (simulated)
|
| 597 |
+
const timeDisplay = item.time_ago || getCurrentDateTimeString();
|
| 598 |
+
|
| 599 |
+
// Determine the full path for navigation/action
|
| 600 |
+
const itemPath = path ? `${path}/${item.name}` : item.name;
|
| 601 |
+
|
| 602 |
+
const row = document.createElement('tr');
|
| 603 |
+
row.className = 'hover:bg-active-var transition-colors-theme cursor-pointer';
|
| 604 |
+
|
| 605 |
+
// Determine the target URL for the item (editor for files, current page for folders)
|
| 606 |
+
let targetUrl;
|
| 607 |
+
if (item.type === 'file') {
|
| 608 |
+
// File: link to editor with full path
|
| 609 |
+
targetUrl = `/mindus/nexus/editor?repo_slug=${repoSlug}&file_path=${encodeURIComponent(itemPath)}&branch=${encodeURIComponent(branchName)}`;
|
| 610 |
+
} else {
|
| 611 |
+
// Folder: link to the current page but with the new path
|
| 612 |
+
targetUrl = `?repo_slug=${repoSlug}&branch=${encodeURIComponent(branchName)}&path=${encodeURIComponent(itemPath)}`;
|
| 613 |
+
}
|
| 614 |
+
|
| 615 |
+
row.innerHTML = `
|
| 616 |
+
<td class="px-3 py-2 sm:px-4 sm:py-3 whitespace-nowrap w-4/12">
|
| 617 |
+
<div class="flex items-center">
|
| 618 |
+
<span class="material-symbols-rounded text-lg mr-2 align-middle ${color}">${icon}</span>
|
| 619 |
+
<a href="${targetUrl}" class="text-sm font-medium text-color-var hover:text-link-var">
|
| 620 |
+
${item.name}
|
| 621 |
+
</a>
|
| 622 |
+
</div>
|
| 623 |
+
</td>
|
| 624 |
+
<td class="px-3 py-2 sm:px-4 sm:py-3 whitespace-nowrap text-sm text-secondary-var w-6/12">
|
| 625 |
+
<span class="truncate block max-w-full">${item.commit_message || 'N/A (No commit message provided)'}</span>
|
| 626 |
+
</td>
|
| 627 |
+
<td class="px-3 py-2 sm:px-4 sm:py-3 whitespace-nowrap text-sm text-secondary-var text-right w-2/12">
|
| 628 |
+
${timeDisplay} </td>
|
| 629 |
+
`;
|
| 630 |
+
// Make the whole row clickable
|
| 631 |
+
row.addEventListener('click', (e) => {
|
| 632 |
+
// Avoid double-click if the user clicks on the <a> link
|
| 633 |
+
if (e.target.tagName !== 'A' && e.target.closest('a') === null) {
|
| 634 |
+
if (item.type === 'folder') {
|
| 635 |
+
navigateToPath(itemPath);
|
| 636 |
+
} else {
|
| 637 |
+
// Navigate to the editor for the clicked file
|
| 638 |
+
window.location.href = targetUrl;
|
| 639 |
+
}
|
| 640 |
+
}
|
| 641 |
+
});
|
| 642 |
+
fileTableBody.appendChild(row);
|
| 643 |
+
});
|
| 644 |
+
}
|
| 645 |
+
|
| 646 |
+
} catch (error) {
|
| 647 |
+
loadingSpinner.innerHTML = `<p class="text-red-500">Erreur fatale: Échec du chargement de l'arborescence des fichiers pour le chemin ${path}. ${error.message}</p>`;
|
| 648 |
+
console.error('Error loading repository file tree:', error);
|
| 649 |
+
} finally {
|
| 650 |
+
loadingSpinner.classList.add('hidden');
|
| 651 |
+
}
|
| 652 |
+
};
|
| 653 |
+
|
| 654 |
+
|
| 655 |
+
/**
|
| 656 |
+
* Main initialization function on page load. (Kept as is)
|
| 657 |
+
*/
|
| 658 |
+
const initRepoPage = () => {
|
| 659 |
+
|
| 660 |
+
// 1. Validation du repoSlug (maintenant plus robuste)
|
| 661 |
+
if (!repoSlug || repoSlug === '{{ repo_slug }}') {
|
| 662 |
+
loadingSpinner.innerHTML = '<p class="text-red-500">Error: Repository slug is missing or invalid.</p>';
|
| 663 |
+
return;
|
| 664 |
+
}
|
| 665 |
+
|
| 666 |
+
// 2. Initialisation normale
|
| 667 |
+
currentBranchNameDisplay.textContent = currentBranch;
|
| 668 |
+
repoTitleElement.textContent = repoSlug;
|
| 669 |
+
|
| 670 |
+
// 3. Load branches
|
| 671 |
+
loadBranches();
|
| 672 |
+
|
| 673 |
+
// 4. Load static repo info (About, README) - Not visible in the simplified page but still good practice
|
| 674 |
+
loadRepoInfo();
|
| 675 |
+
|
| 676 |
+
// 5. Load file tree for the current branch and path
|
| 677 |
+
loadFileTree(currentBranch, currentPath);
|
| 678 |
+
|
| 679 |
+
// Update URL to ensure 'branch' and 'path' are correctly set in the URL bar
|
| 680 |
+
updateUrl(currentBranch, currentPath);
|
| 681 |
+
}
|
| 682 |
+
|
| 683 |
+
// --- "BRANCH" MENU LOGIC --- (Kept as is)
|
| 684 |
+
const toggleBranchMenu = (event) => {
|
| 685 |
+
event.stopPropagation();
|
| 686 |
+
branchMenu.classList.toggle('hidden');
|
| 687 |
+
// Ensure other menus are closed
|
| 688 |
+
addFileMenu.classList.add('hidden');
|
| 689 |
+
};
|
| 690 |
+
|
| 691 |
+
branchToggle.addEventListener('click', toggleBranchMenu);
|
| 692 |
+
|
| 693 |
+
// --- "ADD FILE" MENU LOGIC --- (Kept as is)
|
| 694 |
+
const addFileToggle = document.getElementById('add-file-toggle');
|
| 695 |
+
const addFileMenu = document.getElementById('add-file-menu');
|
| 696 |
+
|
| 697 |
+
const toggleAddFileMenu = (event) => {
|
| 698 |
+
event.stopPropagation();
|
| 699 |
+
addFileMenu.classList.toggle('hidden');
|
| 700 |
+
// Ensure other menus are closed
|
| 701 |
+
branchMenu.classList.add('hidden');
|
| 702 |
+
};
|
| 703 |
+
|
| 704 |
+
addFileToggle.addEventListener('click', toggleAddFileMenu);
|
| 705 |
+
|
| 706 |
+
|
| 707 |
+
// Event listener to close menus on outside click (Kept as is)
|
| 708 |
+
document.addEventListener('click', (event) => {
|
| 709 |
+
// Close "Add file" menu
|
| 710 |
+
if (!addFileMenu.contains(event.target) && !addFileToggle.contains(event.target)) {
|
| 711 |
+
addFileMenu.classList.add('hidden');
|
| 712 |
+
}
|
| 713 |
+
// Close "Branch" menu
|
| 714 |
+
if (!branchMenu.contains(event.target) && !branchToggle.contains(event.target)) {
|
| 715 |
+
branchMenu.classList.add('hidden');
|
| 716 |
+
}
|
| 717 |
+
});
|
| 718 |
+
|
| 719 |
+
// Listener for branch filtering (Kept as is)
|
| 720 |
+
document.getElementById('branch-filter').addEventListener('input', (e) => {
|
| 721 |
+
const filterText = e.target.value.toLowerCase();
|
| 722 |
+
const branchItems = document.querySelectorAll('.branch-item');
|
| 723 |
+
branchItems.forEach(item => {
|
| 724 |
+
const branchName = item.getAttribute('data-branch-name').toLowerCase();
|
| 725 |
+
item.style.display = branchName.includes(filterText) ? 'flex' : 'none';
|
| 726 |
+
});
|
| 727 |
+
});
|
| 728 |
+
|
| 729 |
+
// Handle back/forward navigation (Kept as is)
|
| 730 |
+
window.addEventListener('popstate', (e) => {
|
| 731 |
+
const state = e.state;
|
| 732 |
+
if (state && state.branch) {
|
| 733 |
+
currentBranch = state.branch;
|
| 734 |
+
currentPath = state.currentPath || '';
|
| 735 |
+
currentBranchNameDisplay.textContent = currentBranch;
|
| 736 |
+
loadFileTree(currentBranch, currentPath);
|
| 737 |
+
loadBranches(); // Refresh branch menu display if needed
|
| 738 |
+
} else {
|
| 739 |
+
// Reload with current URL params if no state is available
|
| 740 |
+
const popUrlParams = new URLSearchParams(window.location.search);
|
| 741 |
+
// Re-fetch slug from URL in case of navigation
|
| 742 |
+
repoSlug = popUrlParams.get('repo_slug') || '{{ repo_slug }}';
|
| 743 |
+
if (repoSlug === '{{ repo_slug }}') {
|
| 744 |
+
console.error("Popstate error: Could not retrieve repo slug from URL.");
|
| 745 |
+
return;
|
| 746 |
+
}
|
| 747 |
+
|
| 748 |
+
currentBranch = popUrlParams.get('branch') || 'main';
|
| 749 |
+
currentPath = popUrlParams.get('path') || '';
|
| 750 |
+
currentBranchNameDisplay.textContent = currentBranch;
|
| 751 |
+
loadFileTree(currentBranch, currentPath);
|
| 752 |
+
}
|
| 753 |
+
});
|
| 754 |
+
|
| 755 |
+
|
| 756 |
+
// Call function on page load
|
| 757 |
+
initRepoPage();
|
| 758 |
+
</script>
|
| 759 |
+
</body>
|
| 760 |
+
</html>
|
a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/resources.html
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/script.js
ADDED
|
@@ -0,0 +1,373 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<script>
|
| 2 |
+
// --- 1. CONFIGURATION: Nouvelle structure pour Secrets/Variables et préservation des dépendances existantes ---
|
| 3 |
+
|
| 4 |
+
// Utilisation de la variable Jinja2 pour le slug (nouvelle méthode demandée)
|
| 5 |
+
const REPO_SLUG = '{{ repo_slug }}';
|
| 6 |
+
|
| 7 |
+
// Nouvelle URL de base pour les appels API des secrets/variables (demandée par l'utilisateur)
|
| 8 |
+
const BASE_API_URL = `/api/repo_data/${REPO_SLUG}`;
|
| 9 |
+
|
| 10 |
+
// Variables existantes et nécessaires pour les autres fonctionnalités
|
| 11 |
+
const USER_ID = document.getElementById('repo-user').textContent.trim();
|
| 12 |
+
const GENERAL_SETTINGS_API_URL = `/api/settings/${USER_ID}/repo/${REPO_SLUG}`; // Ancienne BASE_API_URL (pour General Settings)
|
| 13 |
+
const REPO_DELETE_API_URL = `/api/repos/${REPO_SLUG}`; // Route de suppression
|
| 14 |
+
|
| 15 |
+
// --- 2. FONCTIONS DE RENDU (Affichage de la liste) ---
|
| 16 |
+
function renderConfigItems(items, type) {
|
| 17 |
+
const container = document.getElementById(`${type}-list-container`);
|
| 18 |
+
container.innerHTML = '';
|
| 19 |
+
if (items.length === 0) {
|
| 20 |
+
container.innerHTML = `<p class="text-sm text-secondary-var italic">Aucun ${type.slice(0, -1)} n'a été trouvé.</p>`;
|
| 21 |
+
return;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
items.forEach(item => {
|
| 25 |
+
// Encode les valeurs pour les passer aux fonctions JS (important pour les guillemets simples/doubles)
|
| 26 |
+
const nameEncoded = encodeURIComponent(item.name);
|
| 27 |
+
const descriptionEncoded = encodeURIComponent(item.description || '');
|
| 28 |
+
// La valeur des secrets sera masquée côté backend, mais la valeur des variables est visible
|
| 29 |
+
const valueDisplay = (type === 'secrets') ? '***SECRET_VALUE_HIDDEN***' : item.value;
|
| 30 |
+
const valueEncoded = encodeURIComponent(valueDisplay);
|
| 31 |
+
|
| 32 |
+
const itemHtml = `
|
| 33 |
+
<div class="flex justify-between items-center p-3 bg-card-var border border-color-var/50 rounded-lg">
|
| 34 |
+
<div class="flex-1 min-w-0">
|
| 35 |
+
<div class="font-mono text-sm font-semibold text-color-var truncate">${item.name}</div>
|
| 36 |
+
<div class="text-xs text-secondary-var mt-0.5 truncate">${item.description || 'No description'}</div>
|
| 37 |
+
<div class="text-xs text-secondary-var mt-0.5 font-mono">${valueDisplay}</div>
|
| 38 |
+
</div>
|
| 39 |
+
<div class="flex space-x-2 ml-4">
|
| 40 |
+
<button onclick="editConfigItem('${type}', '${nameEncoded}', '${descriptionEncoded}', '${valueEncoded}')"
|
| 41 |
+
class="text-xs text-link-var hover:text-primary-color-var transition duration-150">
|
| 42 |
+
Edit
|
| 43 |
+
</button>
|
| 44 |
+
<button onclick="deleteConfigItem('${type}', '${nameEncoded}')"
|
| 45 |
+
class="text-xs text-red-500 hover:text-red-700 transition duration-150">
|
| 46 |
+
Delete
|
| 47 |
+
</button>
|
| 48 |
+
</div>
|
| 49 |
+
</div>
|
| 50 |
+
`;
|
| 51 |
+
container.insertAdjacentHTML('beforeend', itemHtml);
|
| 52 |
+
});
|
| 53 |
+
}
|
| 54 |
+
|
| 55 |
+
// --- 3. FONCTION DE LECTURE (FETCH) ---
|
| 56 |
+
async function fetchConfigItems(type) {
|
| 57 |
+
const container = document.getElementById(`${type}-list-container`);
|
| 58 |
+
container.innerHTML = `<p class="text-sm text-secondary-var italic">Chargement des ${type}...</p>`;
|
| 59 |
+
|
| 60 |
+
try {
|
| 61 |
+
// item_type est au singulier ('secret' ou 'variable')
|
| 62 |
+
const item_type = type.slice(0, -1);
|
| 63 |
+
const response = await fetch(`${BASE_API_URL}/items?item_type=${item_type}`);
|
| 64 |
+
const data = await response.json();
|
| 65 |
+
|
| 66 |
+
if (response.ok && data.success) {
|
| 67 |
+
renderConfigItems(data.items, type);
|
| 68 |
+
} else {
|
| 69 |
+
container.innerHTML = `<p class="text-sm text-red-500">Erreur de chargement: ${data.message || 'Erreur inconnue'}</p>`;
|
| 70 |
+
}
|
| 71 |
+
} catch (error) {
|
| 72 |
+
container.innerHTML = `<p class="text-sm text-red-500">Erreur réseau lors du chargement des ${type}.</p>`;
|
| 73 |
+
console.error(`Erreur lors du chargement des ${type}:`, error);
|
| 74 |
+
}
|
| 75 |
+
}
|
| 76 |
+
|
| 77 |
+
|
| 78 |
+
// --- 5. FONCTION CRUD : CREATE/UPDATE (Sauvegarde) ---
|
| 79 |
+
async function handleConfigOperation(event, type) {
|
| 80 |
+
event.preventDefault();
|
| 81 |
+
const form = event.target;
|
| 82 |
+
const item_type = type.slice(0, -1); // 'secrets' -> 'secret', 'variables' -> 'variable'
|
| 83 |
+
|
| 84 |
+
const payload = {
|
| 85 |
+
name: form.elements['name'].value,
|
| 86 |
+
description: form.elements['description'].value,
|
| 87 |
+
value: form.elements['value'].value,
|
| 88 |
+
item_type: item_type // Requis par le backend
|
| 89 |
+
};
|
| 90 |
+
|
| 91 |
+
// Désactiver le bouton pendant le traitement
|
| 92 |
+
const submitButton = form.querySelector('button[type="submit"]');
|
| 93 |
+
submitButton.disabled = true;
|
| 94 |
+
submitButton.textContent = 'Saving...';
|
| 95 |
+
|
| 96 |
+
try {
|
| 97 |
+
const response = await fetch(`${BASE_API_URL}/update_item`, {
|
| 98 |
+
method: 'POST', // Utilise la route POST pour la mise à jour (Upsert)
|
| 99 |
+
headers: { 'Content-Type': 'application/json' },
|
| 100 |
+
body: JSON.stringify(payload)
|
| 101 |
+
});
|
| 102 |
+
|
| 103 |
+
const data = await response.json();
|
| 104 |
+
|
| 105 |
+
if (response.ok && data.success) {
|
| 106 |
+
alert(data.message);
|
| 107 |
+
// Masquer le formulaire et mettre à jour la liste
|
| 108 |
+
document.getElementById(`add-${item_type}-form`).classList.add('hidden');
|
| 109 |
+
document.getElementById(`add-${item_type}-button`).classList.remove('hidden');
|
| 110 |
+
fetchConfigItems(type); // Recharger les données
|
| 111 |
+
} else {
|
| 112 |
+
alert(`Erreur de sauvegarde: ${data.message || 'Erreur interne.'}`);
|
| 113 |
+
}
|
| 114 |
+
} catch (error) {
|
| 115 |
+
alert(`Erreur réseau lors de la sauvegarde du ${item_type}.`);
|
| 116 |
+
console.error(`Erreur de sauvegarde du ${item_type}:`, error);
|
| 117 |
+
} finally {
|
| 118 |
+
submitButton.disabled = false;
|
| 119 |
+
submitButton.textContent = item_type.charAt(0).toUpperCase() + item_type.slice(1);
|
| 120 |
+
}
|
| 121 |
+
}
|
| 122 |
+
|
| 123 |
+
// --- 6. FONCTION POUR AFFICHER LE FORMULAIRE DE CRÉATION/ÉDITION ---
|
| 124 |
+
function showConfigForm(type) {
|
| 125 |
+
const item_type = type.slice(0, -1);
|
| 126 |
+
const formContainer = document.getElementById(`add-${item_type}-form`);
|
| 127 |
+
const addButton = document.getElementById(`add-${item_type}-button`);
|
| 128 |
+
|
| 129 |
+
// Cacher l'autre formulaire si visible
|
| 130 |
+
const otherType = (type === 'secrets') ? 'variables' : 'secrets';
|
| 131 |
+
const otherItemType = otherType.slice(0, -1);
|
| 132 |
+
document.getElementById(`add-${otherItemType}-form`).classList.add('hidden');
|
| 133 |
+
document.getElementById(`add-${otherItemType}-button`).classList.remove('hidden');
|
| 134 |
+
|
| 135 |
+
// Reset le formulaire et le configurer pour une 'création'
|
| 136 |
+
const form = formContainer.querySelector('form');
|
| 137 |
+
form.reset();
|
| 138 |
+
formContainer.querySelector('h4').textContent = `Add new ${item_type}`;
|
| 139 |
+
form.querySelector('button[type="submit"]').textContent = `Save ${item_type}`;
|
| 140 |
+
form.querySelector('[name="value"]').type = (type === 'secrets') ? 'password' : 'text';
|
| 141 |
+
form.elements['name'].readOnly = false; // Réactiver l'édition du nom
|
| 142 |
+
|
| 143 |
+
formContainer.classList.remove('hidden');
|
| 144 |
+
addButton.classList.add('hidden');
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
// --- 7. FONCTION POUR POPULER LE FORMULAIRE POUR L'ÉDITION ---
|
| 148 |
+
function editConfigItem(type, nameEncoded, descriptionEncoded, valueEncoded) {
|
| 149 |
+
const item_type = type.slice(0, -1);
|
| 150 |
+
|
| 151 |
+
// Afficher le formulaire d'abord
|
| 152 |
+
showConfigForm(type);
|
| 153 |
+
|
| 154 |
+
const form = document.getElementById(`add-${item_type}-form`).querySelector('form');
|
| 155 |
+
|
| 156 |
+
// Décoder et peupler les champs
|
| 157 |
+
const name = decodeURIComponent(nameEncoded);
|
| 158 |
+
const description = decodeURIComponent(descriptionEncoded);
|
| 159 |
+
|
| 160 |
+
form.elements['name'].value = name;
|
| 161 |
+
form.elements['name'].readOnly = true; // Empêcher l'édition du nom lors de l'Update
|
| 162 |
+
form.elements['description'].value = description;
|
| 163 |
+
|
| 164 |
+
// IMPORTANT: La valeur des secrets est masquée par le backend.
|
| 165 |
+
if (item_type === 'secret') {
|
| 166 |
+
form.elements['value'].value = '';
|
| 167 |
+
form.elements['value'].placeholder = 'Enter new value (required to update secret)';
|
| 168 |
+
alert("Veuillez entrer la nouvelle valeur du secret lors de la modification. La valeur existante n'est pas affichée pour des raisons de sécurité.");
|
| 169 |
+
} else {
|
| 170 |
+
form.elements['value'].value = decodeURIComponent(valueEncoded);
|
| 171 |
+
form.elements['value'].placeholder = 'The configuration value';
|
| 172 |
+
}
|
| 173 |
+
|
| 174 |
+
// Mettre à jour le texte du titre et du bouton de soumission
|
| 175 |
+
document.getElementById(`add-${item_type}-form`).querySelector('h4').textContent = `Update ${item_type}: ${name}`;
|
| 176 |
+
form.querySelector('button[type="submit"]').textContent = `Update ${item_type}`;
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
// --- 8. FONCTION CRUD : DELETE (Suppression) ---
|
| 180 |
+
async function deleteConfigItem(type, nameEncoded) {
|
| 181 |
+
const item_type = type.slice(0, -1);
|
| 182 |
+
const name = decodeURIComponent(nameEncoded);
|
| 183 |
+
|
| 184 |
+
if (!confirm(`Êtes-vous sûr de vouloir supprimer le ${item_type} nommé '${name}'? Cette action est irréversible.`)) {
|
| 185 |
+
return;
|
| 186 |
+
}
|
| 187 |
+
|
| 188 |
+
try {
|
| 189 |
+
// URL pour l'appel de suppression (le backend doit traiter le DELETE avec ces paramètres)
|
| 190 |
+
const deleteUrl = `${BASE_API_URL}/items?item_type=${item_type}&name=${name}`;
|
| 191 |
+
|
| 192 |
+
const response = await fetch(deleteUrl, {
|
| 193 |
+
method: 'DELETE',
|
| 194 |
+
});
|
| 195 |
+
|
| 196 |
+
const data = await response.json();
|
| 197 |
+
|
| 198 |
+
if (response.ok && data.success) {
|
| 199 |
+
alert(data.message);
|
| 200 |
+
fetchConfigItems(type); // Recharger les données
|
| 201 |
+
} else {
|
| 202 |
+
alert(`Erreur de suppression: ${data.message || 'Vérifiez si la route DELETE est correctement implémentée sur le backend.'}`);
|
| 203 |
+
}
|
| 204 |
+
} catch (error) {
|
| 205 |
+
alert(`Erreur réseau lors de la suppression.`);
|
| 206 |
+
console.error(`Erreur de suppression:`, error);
|
| 207 |
+
}
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
// Chargement de la page et logique de navigation (ORIGINAL)
|
| 211 |
+
const navLinks = document.querySelectorAll('.settings-nav-link');
|
| 212 |
+
window.setActiveLink = (clickedLink) => {
|
| 213 |
+
navLinks.forEach(link => link.classList.remove('active'));
|
| 214 |
+
clickedLink.classList.add('active');
|
| 215 |
+
};
|
| 216 |
+
|
| 217 |
+
const observerOptions = {
|
| 218 |
+
root: null, // viewport
|
| 219 |
+
rootMargin: '0px 0px -70% 0px', // Trigger point at 30% from top
|
| 220 |
+
threshold: 0 // As soon as one pixel est visible
|
| 221 |
+
};
|
| 222 |
+
|
| 223 |
+
const sections = document.querySelectorAll('section[id]');
|
| 224 |
+
|
| 225 |
+
const observer = new IntersectionObserver((entries) => {
|
| 226 |
+
entries.forEach(entry => {
|
| 227 |
+
if (entry.isIntersecting) {
|
| 228 |
+
const id = entry.target.getAttribute('id');
|
| 229 |
+
const correspondingLink = document.querySelector(`.settings-nav-link[href="#${id}"]`);
|
| 230 |
+
|
| 231 |
+
if (correspondingLink) {
|
| 232 |
+
navLinks.forEach(link => link.classList.remove('active'));
|
| 233 |
+
correspondingLink.classList.add('active');
|
| 234 |
+
}
|
| 235 |
+
}
|
| 236 |
+
});
|
| 237 |
+
}, observerOptions);
|
| 238 |
+
|
| 239 |
+
sections.forEach(section => {
|
| 240 |
+
observer.observe(section);
|
| 241 |
+
});
|
| 242 |
+
|
| 243 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 244 |
+
if (!document.querySelector('.settings-nav-link.active')) {
|
| 245 |
+
document.querySelector('.settings-nav-link').classList.add('active');
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
// Lancer le chargement des secrets et variables au démarrage (LOGIQUE MISE À JOUR)
|
| 249 |
+
if (REPO_SLUG && REPO_SLUG !== 'None') {
|
| 250 |
+
fetchConfigItems('secrets');
|
| 251 |
+
fetchConfigItems('variables');
|
| 252 |
+
}
|
| 253 |
+
|
| 254 |
+
|
| 255 |
+
// ***************************************************************
|
| 256 |
+
// BLOC JS : LOGIQUE DE SUPPRESSION DE DÉPÔT (ORIGINAL)
|
| 257 |
+
// ***************************************************************
|
| 258 |
+
const deleteButton = document.getElementById('delete-repo-button');
|
| 259 |
+
|
| 260 |
+
if (deleteButton) {
|
| 261 |
+
deleteButton.addEventListener('click', async () => {
|
| 262 |
+
const repoSlug = REPO_SLUG; // Utilisation de la variable REPO_SLUG déjà définie
|
| 263 |
+
|
| 264 |
+
if (!repoSlug) {
|
| 265 |
+
alert("Erreur: Le slug du dépôt est introuvable. Impossible de supprimer.");
|
| 266 |
+
return;
|
| 267 |
+
}
|
| 268 |
+
|
| 269 |
+
// 1. Double confirmation pour une action destructive
|
| 270 |
+
const confirmation = window.confirm(`Êtes-vous SÛR de vouloir supprimer définitivement le dépôt '${repoSlug}'? Cette action est irréversible et supprime TOUTES les données.`);
|
| 271 |
+
if (!confirmation) {
|
| 272 |
+
return;
|
| 273 |
+
}
|
| 274 |
+
|
| 275 |
+
// 2. Appel de la route DELETE
|
| 276 |
+
const url = REPO_DELETE_API_URL; // Utilisation de la variable REPO_DELETE_API_URL
|
| 277 |
+
|
| 278 |
+
try {
|
| 279 |
+
// Désactiver le bouton pendant le traitement
|
| 280 |
+
deleteButton.disabled = true;
|
| 281 |
+
deleteButton.textContent = 'Suppression en cours...';
|
| 282 |
+
|
| 283 |
+
const response = await fetch(url, {
|
| 284 |
+
method: 'DELETE',
|
| 285 |
+
headers: {
|
| 286 |
+
'Content-Type': 'application/json'
|
| 287 |
+
},
|
| 288 |
+
});
|
| 289 |
+
|
| 290 |
+
// Tente de lire la réponse JSON, même si elle est vide/erreur
|
| 291 |
+
let data = {};
|
| 292 |
+
try {
|
| 293 |
+
data = await response.json();
|
| 294 |
+
} catch (e) {
|
| 295 |
+
// Ignorer si la réponse n'est pas JSON (par exemple, 204 No Content)
|
| 296 |
+
if (response.status !== 204) {
|
| 297 |
+
console.warn("La réponse n'est pas au format JSON, mais le statut est OK. Continuer.");
|
| 298 |
+
}
|
| 299 |
+
}
|
| 300 |
+
|
| 301 |
+
if (!response.ok) {
|
| 302 |
+
// 404, 500 ou autre erreur du backend
|
| 303 |
+
throw new Error(data.message || `Erreur lors de la suppression: Statut ${response.status}`);
|
| 304 |
+
}
|
| 305 |
+
|
| 306 |
+
alert('Dépôt supprimé avec succès. Redirection vers le tableau de bord.');
|
| 307 |
+
// 3. Redirection après succès
|
| 308 |
+
window.location.href = '/mindus/nexus/dashboard';
|
| 309 |
+
|
| 310 |
+
} catch (error) {
|
| 311 |
+
console.error("Erreur lors de la suppression du dépôt:", error);
|
| 312 |
+
alert(`Échec de la suppression du dépôt. Détails: ${error.message}`);
|
| 313 |
+
} finally {
|
| 314 |
+
// Réactiver et restaurer l'état du bouton en cas d'erreur
|
| 315 |
+
deleteButton.disabled = false;
|
| 316 |
+
deleteButton.textContent = 'Delete Repository';
|
| 317 |
+
}
|
| 318 |
+
});
|
| 319 |
+
}
|
| 320 |
+
// ***************************************************************
|
| 321 |
+
});
|
| 322 |
+
|
| 323 |
+
/**
|
| 324 |
+
* Gère la mise à jour des paramètres généraux (General Settings).
|
| 325 |
+
*/
|
| 326 |
+
document.getElementById('general-settings-form').addEventListener('submit', async function(e) {
|
| 327 |
+
e.preventDefault();
|
| 328 |
+
if (!REPO_SLUG) return; // Sécurité
|
| 329 |
+
|
| 330 |
+
const repoName = document.getElementById('repo-name-input').value;
|
| 331 |
+
const repoDescription = document.getElementById('repo-description').value;
|
| 332 |
+
const visibility = document.querySelector('#repo-visibility-radios input[name="visibility"]:checked').value;
|
| 333 |
+
|
| 334 |
+
// Utilisation de la variable GENERAL_SETTINGS_API_URL pour l'ancienne route
|
| 335 |
+
const url = GENERAL_SETTINGS_API_URL;
|
| 336 |
+
const payload = {
|
| 337 |
+
name: repoName,
|
| 338 |
+
description: repoDescription,
|
| 339 |
+
visibility: visibility
|
| 340 |
+
};
|
| 341 |
+
|
| 342 |
+
const submitButton = e.target.querySelector('button[type="submit"]');
|
| 343 |
+
submitButton.disabled = true;
|
| 344 |
+
submitButton.textContent = 'Saving...';
|
| 345 |
+
|
| 346 |
+
|
| 347 |
+
try {
|
| 348 |
+
const response = await fetch(url, {
|
| 349 |
+
method: 'PUT',
|
| 350 |
+
headers: { 'Content-Type': 'application/json' },
|
| 351 |
+
body: JSON.stringify(payload)
|
| 352 |
+
});
|
| 353 |
+
|
| 354 |
+
if (!response.ok) {
|
| 355 |
+
const errorData = await response.json();
|
| 356 |
+
throw new Error(`Erreur API: ${errorData.message || response.statusText}`);
|
| 357 |
+
}
|
| 358 |
+
|
| 359 |
+
alert('Paramètres généraux sauvegardés avec succès!');
|
| 360 |
+
// Mise à jour de l'affichage du nom et de la visibilité si besoin
|
| 361 |
+
document.getElementById('repo-name').textContent = repoName;
|
| 362 |
+
document.getElementById('repo-visibility').textContent = visibility.charAt(0).toUpperCase() + visibility.slice(1);
|
| 363 |
+
|
| 364 |
+
} catch (error) {
|
| 365 |
+
console.error("Erreur lors de la mise à jour des paramètres généraux:", error);
|
| 366 |
+
alert(`Échec de la mise à jour des paramètres. Détails: ${error.message}`);
|
| 367 |
+
} finally {
|
| 368 |
+
submitButton.disabled = false;
|
| 369 |
+
submitButton.textContent = 'Save General Changes';
|
| 370 |
+
}
|
| 371 |
+
});
|
| 372 |
+
|
| 373 |
+
</script>
|
a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/settings.html
ADDED
|
@@ -0,0 +1,1105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en" class="light">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>GitForge | Repository Settings</title>
|
| 7 |
+
<link rel="icon" type="image/png" href="https://i.postimg.cc/t4NCGNzD/gitforge-png.png ">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<link rel="stylesheet"
|
| 10 |
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" />
|
| 11 |
+
<style>
|
| 12 |
+
/* Inter font configuration */
|
| 13 |
+
body { font-family: 'Inter', sans-serif; }
|
| 14 |
+
|
| 15 |
+
/* Theme Variables and Styles */
|
| 16 |
+
.transition-colors-theme { transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
|
| 17 |
+
|
| 18 |
+
/* Light Mode (UNIQUE Theme) */
|
| 19 |
+
.light {
|
| 20 |
+
--bg-page: #FFFFFF;
|
| 21 |
+
--bg-header: #F6F8FA;
|
| 22 |
+
--bg-card: #FFFFFF;
|
| 23 |
+
--bg-active: #F3F4F6;
|
| 24 |
+
--border-color: #D0D7DE;
|
| 25 |
+
--text-color: #24292F;
|
| 26 |
+
--text-secondary: #57606A;
|
| 27 |
+
--text-link: #0969DA;
|
| 28 |
+
--primary-color: #2DA44E;
|
| 29 |
+
--primary-hover: #2C974B;
|
| 30 |
+
--danger-color: #CF222E;
|
| 31 |
+
--danger-hover: #A40E26;
|
| 32 |
+
}
|
| 33 |
+
/* Utility classes for variables */
|
| 34 |
+
.bg-page-var { background-color: var(--bg-page); } .bg-card-var { background-color: var(--bg-card); }
|
| 35 |
+
.bg-header-var { background-color: var(--bg-header); } .border-color-var { border-color: var(--border-color); }
|
| 36 |
+
.text-color-var { color: var(--text-color); } .text-secondary-var { color: var(--text-secondary); }
|
| 37 |
+
.text-link-var { color: var(--text-link); } .hover\:text-link-hover-var:hover { color: var(--text-link); }
|
| 38 |
+
.bg-primary-color-var { background-color: var(--primary-color); } .hover\:bg-primary-hover-var:hover { background-color: var(--primary-hover); }
|
| 39 |
+
.bg-active-var { background-color: var(--bg-active); } .hover\:bg-active-var:hover { background-color: var(--bg-active); }
|
| 40 |
+
.focus\:ring-primary-color-var:focus { --tw-ring-color: var(--primary-color); }
|
| 41 |
+
.bg-danger-color-var { background-color: var(--danger-color); } .hover\:bg-danger-hover-var:hover { background-color: var(--danger-hover); }
|
| 42 |
+
|
| 43 |
+
/* Specific style for the repository navigation bar */
|
| 44 |
+
.repo-nav-link {
|
| 45 |
+
padding: 0.5rem 1rem; border-bottom: 2px solid transparent;
|
| 46 |
+
margin-right: 0.5rem;
|
| 47 |
+
}
|
| 48 |
+
.repo-nav-link.active {
|
| 49 |
+
border-bottom-color: var(--text-link);
|
| 50 |
+
color: var(--text-color) !important;
|
| 51 |
+
font-weight: 600;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
/* Sidebar navigation style */
|
| 55 |
+
.settings-nav-link {
|
| 56 |
+
display: block;
|
| 57 |
+
padding: 0.5rem 1rem;
|
| 58 |
+
border-radius: 0.375rem; /* rounded-md */
|
| 59 |
+
color: var(--text-secondary);
|
| 60 |
+
transition: background-color 0.15s, color 0.15s;
|
| 61 |
+
}
|
| 62 |
+
.settings-nav-link:hover {
|
| 63 |
+
background-color: var(--bg-active);
|
| 64 |
+
color: var(--text-color);
|
| 65 |
+
}
|
| 66 |
+
.settings-nav-link.active {
|
| 67 |
+
font-weight: 600;
|
| 68 |
+
background-color: var(--bg-active);
|
| 69 |
+
color: var(--text-color);
|
| 70 |
+
border-left: 3px solid var(--text-link); /* Active indicator */
|
| 71 |
+
padding-left: calc(1rem - 3px);
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
/* Input/Form styling */
|
| 75 |
+
.form-input-var {
|
| 76 |
+
background-color: var(--bg-card);
|
| 77 |
+
border: 1px solid var(--border-color);
|
| 78 |
+
color: var(--text-color);
|
| 79 |
+
padding: 0.5rem 0.75rem;
|
| 80 |
+
border-radius: 0.375rem;
|
| 81 |
+
width: 100%;
|
| 82 |
+
transition: border-color 0.15s, box-shadow 0.15s;
|
| 83 |
+
}
|
| 84 |
+
.form-input-var:focus {
|
| 85 |
+
outline: none;
|
| 86 |
+
border-color: var(--text-link);
|
| 87 |
+
box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.2); /* ring-link-var equivalent */
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
/* Pro-style Sidebar */
|
| 91 |
+
#repo-sidebar-nav .settings-nav-link {
|
| 92 |
+
border-left: 0 !important; /* Remove L-border for pro-style */
|
| 93 |
+
padding-left: 1rem;
|
| 94 |
+
border-radius: 0.375rem;
|
| 95 |
+
}
|
| 96 |
+
#repo-sidebar-nav .settings-nav-link.active {
|
| 97 |
+
font-weight: 600;
|
| 98 |
+
background-color: var(--text-link); /* Blue background for active link */
|
| 99 |
+
color: white;
|
| 100 |
+
}
|
| 101 |
+
#repo-sidebar-nav .settings-nav-link.active:hover {
|
| 102 |
+
background-color: var(--text-link);
|
| 103 |
+
color: white;
|
| 104 |
+
}
|
| 105 |
+
#repo-sidebar-nav .settings-nav-link:hover:not(.active) {
|
| 106 |
+
background-color: var(--bg-active);
|
| 107 |
+
color: var(--text-color);
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
/* General Card Pro Style */
|
| 111 |
+
.pro-card {
|
| 112 |
+
background-color: var(--bg-card);
|
| 113 |
+
padding: 1rem;
|
| 114 |
+
border: 1px solid var(--border-color);
|
| 115 |
+
border-radius: 0.375rem;
|
| 116 |
+
}
|
| 117 |
+
</style>
|
| 118 |
+
</head>
|
| 119 |
+
|
| 120 |
+
<body class="bg-page-var text-color-var min-h-screen transition-colors-theme">
|
| 121 |
+
|
| 122 |
+
<header class="w-full bg-header-var border-b border-color-var transition-colors-theme">
|
| 123 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 124 |
+
<div class="flex justify-between items-center h-16">
|
| 125 |
+
<div class="flex items-center space-x-4">
|
| 126 |
+
<img src="https://i.postimg.cc/t4NCGNzD/gitforge-png.png " alt="GitForge Logo" class="h-6">
|
| 127 |
+
<span class="text-xl font-bold text-color-var transition-colors-theme">GitForge</span>
|
| 128 |
+
<span class="text-secondary-var">/</span>
|
| 129 |
+
<a href="#" class="text-color-var hover:text-link-var text-lg font-semibold transition-colors-theme">
|
| 130 |
+
<span id="repo-user">{{ user.username if user.username else 'current_user' }}</span> / <span id="repo-name">{{ repo_name if repo_name else repo_slug }}</span>
|
| 131 |
+
</a>
|
| 132 |
+
<span id="repo-visibility" class="px-2 py-0.5 text-xs font-medium rounded-full border border-color-var text-secondary-var">
|
| 133 |
+
Private
|
| 134 |
+
</span>
|
| 135 |
+
</div>
|
| 136 |
+
|
| 137 |
+
<div class="flex items-center space-x-3">
|
| 138 |
+
<div class="hidden sm:block">
|
| 139 |
+
<input type="text" placeholder="Type / to search"
|
| 140 |
+
class="bg-page-var border border-color-var text-color-var rounded-lg p-1.5 text-sm w-48 transition-colors-theme focus:outline-none focus:border-link-var focus:ring-1 focus:ring-link-var">
|
| 141 |
+
</div>
|
| 142 |
+
<a href="mindus/nexus/profile" class="p-2 rounded-full text-color-var hover:text-link-var transition-colors-theme">
|
| 143 |
+
<span class="material-symbols-rounded">account_circle</span>
|
| 144 |
+
</a>
|
| 145 |
+
</div>
|
| 146 |
+
</div>
|
| 147 |
+
</div>
|
| 148 |
+
</header>
|
| 149 |
+
|
| 150 |
+
<div class="w-full border-b border-color-var bg-page-var transition-colors-theme">
|
| 151 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 152 |
+
<nav class="flex space-x-1 overflow-x-auto text-sm font-medium">
|
| 153 |
+
<a href="/mindus/nexus/repo_files?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 154 |
+
<span class="material-symbols-rounded text-base mr-1">code</span> Code
|
| 155 |
+
</a>
|
| 156 |
+
<a href="/mindus/nexus/new_issue?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 157 |
+
<span class="material-symbols-rounded text-base mr-1">bug_report</span> Issues
|
| 158 |
+
</a>
|
| 159 |
+
<a href="/mindus/nexus/pull_requests?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 160 |
+
<span class="material-symbols-rounded text-base mr-1">merge</span> Pull requests
|
| 161 |
+
</a>
|
| 162 |
+
<a href="/mindus/nexus/editor?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 163 |
+
<span class="material-symbols-rounded text-base mr-1">checklist</span> Actions
|
| 164 |
+
</a>
|
| 165 |
+
<a href="#" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 166 |
+
<span class="material-symbols-rounded text-base mr-1">lock</span> Security
|
| 167 |
+
</a>
|
| 168 |
+
<a href="#" class="repo-nav-link text-secondary-var hover:text-color-var transition-colors-theme flex items-center">
|
| 169 |
+
<span class="material-symbols-rounded text-base mr-1">insights</span> Insights
|
| 170 |
+
</a>
|
| 171 |
+
<a href="/mindus/nexus/settings?repo_slug={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var active transition-colors-theme flex items-center">
|
| 172 |
+
<span class="material-symbols-rounded text-base mr-1">settings</span> Settings
|
| 173 |
+
</a>
|
| 174 |
+
</nav>
|
| 175 |
+
</div>
|
| 176 |
+
</div>
|
| 177 |
+
|
| 178 |
+
<div id="main-content" class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8 transition-colors-theme">
|
| 179 |
+
|
| 180 |
+
<h1 class="text-2xl font-bold mb-6 text-color-var">Repository Settings for <span class="text-link-var">{{ user.username if user.username else 'current_user' }}/{{ repo_name if repo_name else repo_slug }}</span></h1>
|
| 181 |
+
|
| 182 |
+
<div class="lg:grid lg:grid-cols-12 lg:gap-8">
|
| 183 |
+
|
| 184 |
+
<div class="lg:col-span-2 mb-8 lg:mb-0">
|
| 185 |
+
<nav id="repo-sidebar-nav" class="p-2 sticky top-20">
|
| 186 |
+
<a href="#general" class="settings-nav-link active" onclick="setActiveLink(this)">
|
| 187 |
+
<div class="flex items-center space-x-2">
|
| 188 |
+
<span class="material-symbols-rounded text-lg">settings</span>
|
| 189 |
+
<span>General</span>
|
| 190 |
+
</div>
|
| 191 |
+
</a>
|
| 192 |
+
<a href="/mindus/nexus/api_create_key?repo_slug={{ repo_slug }}" class="settings-nav-link" onclick="setActiveLink(this)">
|
| 193 |
+
<div class="flex items-center space-x-2">
|
| 194 |
+
<span class="material-symbols-rounded text-lg">person</span>
|
| 195 |
+
<span>Access</span>
|
| 196 |
+
</div>
|
| 197 |
+
</a>
|
| 198 |
+
<a href="#collaborators" class="settings-nav-link" onclick="setActiveLink(this)">
|
| 199 |
+
<div class="flex items-center space-x-2">
|
| 200 |
+
<span class="material-symbols-rounded text-lg">group</span>
|
| 201 |
+
<span>Collaborators</span>
|
| 202 |
+
</div>
|
| 203 |
+
</a>
|
| 204 |
+
<a href="/mindus/nexus/new_branch?repo_slug={{ repo_slug }}" class="settings-nav-link" onclick="setActiveLink(this)">
|
| 205 |
+
<div class="flex items-center space-x-2">
|
| 206 |
+
<span class="material-symbols-rounded text-lg">fork_right</span>
|
| 207 |
+
<span>Branches</span>
|
| 208 |
+
</div>
|
| 209 |
+
</a>
|
| 210 |
+
<a href="/mindus/nexus/new_pull_requests?repo_slug={{ repo_slug }}" class="settings-nav-link" onclick="setActiveLink(this)">
|
| 211 |
+
<div class="flex items-center space-x-2">
|
| 212 |
+
<span class="material-symbols-rounded text-lg">merge</span>
|
| 213 |
+
<span>Pull Requests</span>
|
| 214 |
+
</div>
|
| 215 |
+
</a>
|
| 216 |
+
<a href="#webhooks" class="settings-nav-link" onclick="setActiveLink(this)">
|
| 217 |
+
<div class="flex items-center space-x-2">
|
| 218 |
+
<span class="material-symbols-rounded text-lg">webhook</span>
|
| 219 |
+
<span>Webhooks</span>
|
| 220 |
+
</div>
|
| 221 |
+
</a>
|
| 222 |
+
<a href="#secrets" class="settings-nav-link" onclick="setActiveLink(this)">
|
| 223 |
+
<div class="flex items-center space-x-2">
|
| 224 |
+
<span class="material-symbols-rounded text-lg">lock</span>
|
| 225 |
+
<span>Secrets</span>
|
| 226 |
+
</div>
|
| 227 |
+
</a>
|
| 228 |
+
<a href="/mindus/nexus/tarifs" class="settings-nav-link" onclick="setActiveLink(this)">
|
| 229 |
+
<div class="flex items-center space-x-2">
|
| 230 |
+
<span class="material-symbols-rounded text-lg">tune</span>
|
| 231 |
+
<span>Features</span>
|
| 232 |
+
</div>
|
| 233 |
+
</a>
|
| 234 |
+
<div class="mt-4 pt-4 border-t border-color-var/50">
|
| 235 |
+
<a href="#danger-zone" class="settings-nav-link text-danger-color-var font-semibold" onclick="setActiveLink(this)">
|
| 236 |
+
<div class="flex items-center space-x-2">
|
| 237 |
+
<span class="material-symbols-rounded text-lg">warning</span>
|
| 238 |
+
<span>Danger Zone</span>
|
| 239 |
+
</div>
|
| 240 |
+
</a>
|
| 241 |
+
</div>
|
| 242 |
+
</nav>
|
| 243 |
+
</div>
|
| 244 |
+
|
| 245 |
+
<div class="lg:col-span-10 space-y-6">
|
| 246 |
+
|
| 247 |
+
<section id="general" class="bg-card-var p-6 rounded-lg border border-color-var transition-colors-theme">
|
| 248 |
+
<h2 class="text-xl font-semibold text-color-var border-b border-color-var/50 pb-3 mb-4">General</h2>
|
| 249 |
+
|
| 250 |
+
<form id="general-settings-form" class="space-y-6">
|
| 251 |
+
<div class="pro-card flex justify-between items-center">
|
| 252 |
+
<div class="flex-1 min-w-0 mr-4">
|
| 253 |
+
<label for="repo-name-input" class="block text-sm font-medium text-color-var mb-1">Repository name</label>
|
| 254 |
+
<div class="flex items-center space-x-3">
|
| 255 |
+
<input type="text" id="repo-name-input" value="{{ repo_name if repo_name else repo_slug }}" class="form-input-var w-64" placeholder="Enter new repository name">
|
| 256 |
+
<button type="button" id="rename-button" class="inline-flex items-center px-4 py-2 text-sm bg-active-var text-color-var font-semibold rounded-lg border border-color-var hover:bg-header-var transition duration-150">
|
| 257 |
+
Rename
|
| 258 |
+
</button>
|
| 259 |
+
</div>
|
| 260 |
+
</div>
|
| 261 |
+
</div>
|
| 262 |
+
|
| 263 |
+
<div class="pro-card">
|
| 264 |
+
<h3 class="text-lg font-semibold text-color-var mb-2">Default branch</h3>
|
| 265 |
+
<p class="text-sm text-secondary-var mb-3">The default branch is considered the "base" branch in your repository, against which all pull requests and code commits are automatically made, unless you specify a different branch.</p>
|
| 266 |
+
<div class="flex items-center space-x-2">
|
| 267 |
+
<select id="default-branch" class="form-input-var w-48">
|
| 268 |
+
<option>main</option>
|
| 269 |
+
<option>master</option>
|
| 270 |
+
<option>develop</option>
|
| 271 |
+
</select>
|
| 272 |
+
<button type="button" class="p-2 rounded-md text-secondary-var hover:text-color-var">
|
| 273 |
+
<span class="material-symbols-rounded text-lg">edit</span>
|
| 274 |
+
</button>
|
| 275 |
+
<button type="button" class="p-2 rounded-md text-secondary-var hover:text-danger-color-var">
|
| 276 |
+
<span class="material-symbols-rounded text-lg">content_copy</span>
|
| 277 |
+
</button>
|
| 278 |
+
</div>
|
| 279 |
+
</div>
|
| 280 |
+
|
| 281 |
+
<div class="pro-card">
|
| 282 |
+
<label class="flex items-center text-sm font-medium text-color-var">
|
| 283 |
+
<input type="checkbox" class="mr-2 text-primary-color-var focus:ring-primary-color-var"> Template repository
|
| 284 |
+
</label>
|
| 285 |
+
<p class="text-xs text-secondary-var mt-1 ml-4">Template repositories let users generate new repositories with the same directory structure and files. <a href="#" class="text-link-var hover:underline">Learn more about template repositories.</a></p>
|
| 286 |
+
</div>
|
| 287 |
+
|
| 288 |
+
<div class="pro-card">
|
| 289 |
+
<label class="flex items-start text-sm font-medium text-color-var">
|
| 290 |
+
<input type="checkbox" class="mt-1 mr-2 text-primary-color-var focus:ring-primary-color-var"> Require contributors to sign off on web-based commits
|
| 291 |
+
</label>
|
| 292 |
+
<p class="text-xs text-secondary-var mt-1 ml-4">Enabling this setting will require contributors to sign off on commits made through GitForge's web interface. Signing off is a way for contributors to affirm that their commit complies with the repository's terms, commonly the <a href="#" class="text-link-var hover:underline">Developer Certificate of Origin (DCO)</a>. <a href="#" class="text-link-var hover:underline">Learn more about signing off on commits.</a></p>
|
| 293 |
+
</div>
|
| 294 |
+
|
| 295 |
+
<div class="pro-card">
|
| 296 |
+
<label class="block text-sm font-medium text-color-var mb-2">Repository Visibility</label>
|
| 297 |
+
<div id="repo-visibility-radios" class="flex items-center space-x-6">
|
| 298 |
+
<label class="flex items-center text-sm text-secondary-var">
|
| 299 |
+
<input type="radio" name="visibility" value="public" class="mr-2 text-link-var focus:ring-link-var"> Public
|
| 300 |
+
</label>
|
| 301 |
+
<label class="flex items-center text-sm text-secondary-var">
|
| 302 |
+
<input type="radio" name="visibility" value="private" checked class="mr-2 text-link-var focus:ring-link-var"> Private
|
| 303 |
+
</label>
|
| 304 |
+
<label class="flex items-center text-sm text-secondary-var">
|
| 305 |
+
<input type="radio" name="visibility" value="internal" class="mr-2 text-link-var focus:ring-link-var"> Internal (Organization only)
|
| 306 |
+
</label>
|
| 307 |
+
</div>
|
| 308 |
+
<button type="submit" class="mt-4 inline-flex items-center px-4 py-2 text-sm bg-primary-color-var text-white font-semibold rounded-lg hover:bg-primary-hover-var transition duration-150">
|
| 309 |
+
Save General Changes
|
| 310 |
+
</button>
|
| 311 |
+
</div>
|
| 312 |
+
</form>
|
| 313 |
+
</section>
|
| 314 |
+
|
| 315 |
+
|
| 316 |
+
<section id="branches" class="bg-card-var p-6 rounded-lg border border-color-var transition-colors-theme">
|
| 317 |
+
<h2 class="text-xl font-semibold text-color-var border-b border-color-var/50 pb-3 mb-4">Branches</h2>
|
| 318 |
+
|
| 319 |
+
<h3 class="text-lg font-medium text-color-var mb-2">Branch Protection Rules</h3>
|
| 320 |
+
<p class="text-sm text-secondary-var mb-4">Configure rules for branches like 'main'.</p>
|
| 321 |
+
|
| 322 |
+
<div class="border border-color-var rounded-lg p-4 space-y-3">
|
| 323 |
+
<p class="font-semibold text-color-var text-sm">Rule for `main` branch</p>
|
| 324 |
+
<label class="flex items-start text-sm text-secondary-var">
|
| 325 |
+
<input type="checkbox" class="mt-1 mr-2 text-primary-color-var focus:ring-primary-color-var"> Require pull request reviews before merging
|
| 326 |
+
</label>
|
| 327 |
+
<label class="flex items-start text-sm text-secondary-var">
|
| 328 |
+
<input type="checkbox" checked class="mt-1 mr-2 text-primary-color-var focus:ring-primary-color-var"> Require status checks to pass before merging
|
| 329 |
+
</label>
|
| 330 |
+
<label class="flex items-start text-sm text-secondary-var">
|
| 331 |
+
<input type="checkbox" checked class="mt-1 mr-2 text-primary-color-var focus:ring-primary-color-var"> Prevent deletion of this branch
|
| 332 |
+
</label>
|
| 333 |
+
<label class="flex items-start text-sm text-secondary-var">
|
| 334 |
+
<input type="checkbox" class="mt-1 mr-2 text-primary-color-var focus:ring-primary-color-var"> Restrict direct pushes
|
| 335 |
+
</label>
|
| 336 |
+
<button class="mt-3 inline-flex items-center px-3 py-1.5 text-sm bg-card-var border border-color-var rounded-lg text-color-var hover:bg-active-var transition-colors-theme">
|
| 337 |
+
<span class="material-symbols-rounded text-base mr-1">add</span> Add new branch protection rule
|
| 338 |
+
</button>
|
| 339 |
+
</div>
|
| 340 |
+
</section>
|
| 341 |
+
|
| 342 |
+
<section id="pull-requests" class="bg-card-var p-6 rounded-lg border border-color-var transition-colors-theme">
|
| 343 |
+
<h2 class="text-xl font-semibold text-color-var border-b border-color-var/50 pb-3 mb-4">Pull Requests</h2>
|
| 344 |
+
|
| 345 |
+
<h3 class="text-lg font-medium text-color-var mb-2">Merging</h3>
|
| 346 |
+
<p class="text-sm text-secondary-var mb-4">When merging pull requests, you can allow any combination of merge commits, squashing, or rebasing. At least one option must be enabled. If you have linear history requirement enabled on any protected branch, you must enable squashing or rebasing.</p>
|
| 347 |
+
|
| 348 |
+
<div class="pro-card mb-4">
|
| 349 |
+
<label class="flex justify-between items-start cursor-pointer">
|
| 350 |
+
<div class="flex-1 min-w-0">
|
| 351 |
+
<h4 class="text-sm font-semibold text-color-var">Allow merge commits</h4>
|
| 352 |
+
<p class="text-xs text-secondary-var mt-0.5">Add all commits from the head branch to the base branch with a merge commit.</p>
|
| 353 |
+
</div>
|
| 354 |
+
<input type="checkbox" checked class="h-5 w-5 text-link-var border-color-var rounded focus:ring-link-var ml-4">
|
| 355 |
+
</label>
|
| 356 |
+
</div>
|
| 357 |
+
<div class="pro-card mb-4">
|
| 358 |
+
<label class="flex justify-between items-start cursor-pointer">
|
| 359 |
+
<div class="flex-1 min-w-0">
|
| 360 |
+
<h4 class="text-sm font-semibold text-color-var">Allow squash merging</h4>
|
| 361 |
+
<p class="text-xs text-secondary-var mt-0.5">Combine all commits from the head branch into a single commit in the base branch.</p>
|
| 362 |
+
</div>
|
| 363 |
+
<input type="checkbox" class="h-5 w-5 text-link-var border-color-var rounded focus:ring-link-var ml-4">
|
| 364 |
+
</label>
|
| 365 |
+
</div>
|
| 366 |
+
<div class="pro-card mb-4">
|
| 367 |
+
<label class="flex justify-between items-start cursor-pointer">
|
| 368 |
+
<div class="flex-1 min-w-0">
|
| 369 |
+
<h4 class="text-sm font-semibold text-color-var">Allow rebase merging</h4>
|
| 370 |
+
<p class="text-xs text-secondary-var mt-0.5">Add all commits from the head branch onto the base branch individually.</p>
|
| 371 |
+
</div>
|
| 372 |
+
<input type="checkbox" class="h-5 w-5 text-link-var border-color-var rounded focus:ring-link-var ml-4">
|
| 373 |
+
</label>
|
| 374 |
+
</div>
|
| 375 |
+
|
| 376 |
+
<div class="mt-6 border-t border-color-var/50 pt-4">
|
| 377 |
+
<h3 class="text-lg font-medium text-color-var mb-2">Branch Updates</h3>
|
| 378 |
+
<p class="text-sm text-secondary-var mb-4">Control how and when users are prompted to update their branches if there are new changes available in the base branch.</p>
|
| 379 |
+
|
| 380 |
+
<div class="pro-card mb-4">
|
| 381 |
+
<label class="flex justify-between items-start cursor-pointer">
|
| 382 |
+
<div class="flex-1 min-w-0">
|
| 383 |
+
<h4 class="text-sm font-semibold text-color-var">Always suggest updating pull request branches</h4>
|
| 384 |
+
<p class="text-xs text-secondary-var mt-0.5">Whenever there are new changes available in the base branch, present an “update branch” option in the pull request.</p>
|
| 385 |
+
</div>
|
| 386 |
+
<input type="checkbox" checked class="h-5 w-5 text-link-var border-color-var rounded focus:ring-link-var ml-4">
|
| 387 |
+
</label>
|
| 388 |
+
</div>
|
| 389 |
+
</div>
|
| 390 |
+
|
| 391 |
+
<div class="mt-6 border-t border-color-var/50 pt-4">
|
| 392 |
+
<h3 class="text-lg font-medium text-color-var mb-2">Auto-Merge</h3>
|
| 393 |
+
<div class="pro-card mb-4">
|
| 394 |
+
<label class="flex justify-between items-start">
|
| 395 |
+
<div class="flex-1 min-w-0">
|
| 396 |
+
<h4 class="text-sm font-semibold text-color-var">Allow auto-merge <span class="text-red-500 text-xs font-normal ml-2">(Disabled)</span></h4>
|
| 397 |
+
<p class="text-xs text-secondary-var mt-0.5">Waits for merge requirements to be met and then merges automatically. <a href="#" class="text-link-var hover:underline">Why is this option disabled?</a></p>
|
| 398 |
+
</div>
|
| 399 |
+
<input type="checkbox" disabled class="h-5 w-5 text-link-var border-color-var rounded focus:ring-link-var ml-4">
|
| 400 |
+
</label>
|
| 401 |
+
</div>
|
| 402 |
+
</div>
|
| 403 |
+
|
| 404 |
+
<div class="mt-6 border-t border-color-var/50 pt-4">
|
| 405 |
+
<h3 class="text-lg font-medium text-color-var mb-2">Head Branch Deletion</h3>
|
| 406 |
+
<div class="pro-card mb-4">
|
| 407 |
+
<label class="flex justify-between items-start cursor-pointer">
|
| 408 |
+
<div class="flex-1 min-w-0">
|
| 409 |
+
<h4 class="text-sm font-semibold text-color-var">Automatically delete head branches</h4>
|
| 410 |
+
<p class="text-xs text-secondary-var mt-0.5">Deleted branches will still be able to be restored.</p>
|
| 411 |
+
</div>
|
| 412 |
+
<input type="checkbox" checked class="h-5 w-5 text-link-var border-color-var rounded focus:ring-link-var ml-4">
|
| 413 |
+
</label>
|
| 414 |
+
</div>
|
| 415 |
+
</div>
|
| 416 |
+
</section>
|
| 417 |
+
|
| 418 |
+
<section id="features" class="bg-card-var p-6 rounded-lg border border-color-var transition-colors-theme">
|
| 419 |
+
<h2 class="text-xl font-semibold text-color-var border-b border-color-var/50 pb-3 mb-4">Features</h2>
|
| 420 |
+
|
| 421 |
+
<div class="pro-card mb-4">
|
| 422 |
+
<label class="flex justify-between items-start">
|
| 423 |
+
<div class="flex-1 min-w-0">
|
| 424 |
+
<h4 class="text-sm font-semibold text-color-var">Wikis <span class="text-red-500 text-xs font-normal ml-2">(Upgrade to enable)</span></h4>
|
| 425 |
+
<p class="text-xs text-secondary-var mt-0.5">Wikis host documentation for your repository. Upgrade or make this repository public to enable Wikis. GitForge Wikis is a simple way to let others contribute content.</p>
|
| 426 |
+
</div>
|
| 427 |
+
<input type="checkbox" disabled class="h-5 w-5 text-link-var border-color-var rounded focus:ring-link-var ml-4">
|
| 428 |
+
</label>
|
| 429 |
+
<a href="#" class="text-xs text-link-var hover:underline mt-2 inline-block">Learn more about wikis</a>
|
| 430 |
+
</div>
|
| 431 |
+
|
| 432 |
+
<div class="pro-card mb-4">
|
| 433 |
+
<label class="flex justify-between items-start cursor-pointer">
|
| 434 |
+
<div class="flex-1 min-w-0">
|
| 435 |
+
<h4 class="text-sm font-semibold text-color-var">Issues</h4>
|
| 436 |
+
<p class="text-xs text-secondary-var mt-0.5">Issues integrate lightweight task tracking into your repository. Keep projects on track with issue labels and milestones, and reference them in commit messages.</p>
|
| 437 |
+
</div>
|
| 438 |
+
<input type="checkbox" checked class="h-5 w-5 text-link-var border-color-var rounded focus:ring-link-var ml-4">
|
| 439 |
+
</label>
|
| 440 |
+
<a href="#" class="text-xs text-link-var hover:underline mt-2 inline-block">Get organized with issue templates</a>
|
| 441 |
+
</div>
|
| 442 |
+
|
| 443 |
+
<div class="pro-card mb-4">
|
| 444 |
+
<label class="flex justify-between items-start cursor-pointer">
|
| 445 |
+
<div class="flex-1 min-w-0">
|
| 446 |
+
<h4 class="text-sm font-semibold text-color-var">Discussions</h4>
|
| 447 |
+
<p class="text-xs text-secondary-var mt-0.5">Discussions is the space for your community to have conversations, ask questions and post answers without opening issues.</p>
|
| 448 |
+
</div>
|
| 449 |
+
<input type="checkbox" class="h-5 w-5 text-link-var border-color-var rounded focus:ring-link-var ml-4">
|
| 450 |
+
</label>
|
| 451 |
+
<a href="#" class="text-xs text-link-var hover:underline mt-2 inline-block">Get started with Discussions</a>
|
| 452 |
+
</div>
|
| 453 |
+
|
| 454 |
+
<div class="pro-card mb-4">
|
| 455 |
+
<label class="flex justify-between items-start cursor-pointer">
|
| 456 |
+
<div class="flex-1 min-w-0">
|
| 457 |
+
<h4 class="text-sm font-semibold text-color-var">Projects</h4>
|
| 458 |
+
<p class="text-xs text-secondary-var mt-0.5">Projects on GitForge are created at the repository owner's level and can be linked to a repository's Projects tab. Projects are suitable for cross-repository development efforts.</p>
|
| 459 |
+
</div>
|
| 460 |
+
<input type="checkbox" checked class="h-5 w-5 text-link-var border-color-var rounded focus:ring-link-var ml-4">
|
| 461 |
+
</label>
|
| 462 |
+
</div>
|
| 463 |
+
|
| 464 |
+
<div class="pro-card mb-4">
|
| 465 |
+
<label class="flex justify-between items-start cursor-pointer">
|
| 466 |
+
<div class="flex-1 min-w-0">
|
| 467 |
+
<h4 class="text-sm font-semibold text-color-var">Sponsorships</h4>
|
| 468 |
+
<p class="text-xs text-secondary-var mt-0.5">Sponsorships help your community know how to financially support this repository. Display a "Sponsor" button.</p>
|
| 469 |
+
</div>
|
| 470 |
+
<input type="checkbox" class="h-5 w-5 text-link-var border-color-var rounded focus:ring-link-var ml-4">
|
| 471 |
+
</label>
|
| 472 |
+
</div>
|
| 473 |
+
|
| 474 |
+
<div class="pro-card mb-4">
|
| 475 |
+
<h3 class="text-lg font-medium text-color-var mb-2">Archives</h3>
|
| 476 |
+
<label class="flex justify-between items-start cursor-pointer">
|
| 477 |
+
<div class="flex-1 min-w-0">
|
| 478 |
+
<h4 class="text-sm font-semibold text-color-var">Include Git LFS objects in archives</h4>
|
| 479 |
+
<p class="text-xs text-secondary-var mt-0.5">When creating source code archives, you can choose to include files stored using Git LFS in the archive. Git LFS usage in archives is billed at the same rate as usage with the client.</p>
|
| 480 |
+
</div>
|
| 481 |
+
<input type="checkbox" class="h-5 w-5 text-link-var border-color-var rounded focus:ring-link-var ml-4">
|
| 482 |
+
</label>
|
| 483 |
+
</div>
|
| 484 |
+
</section>
|
| 485 |
+
|
| 486 |
+
<section id="webhooks" class="bg-card-var p-6 rounded-lg border border-color-var transition-colors-theme">
|
| 487 |
+
<h2 class="text-xl font-semibold text-color-var border-b border-color-var/50 pb-3 mb-4">Webhooks</h2>
|
| 488 |
+
|
| 489 |
+
<h3 class="text-lg font-medium text-color-var mb-2">Webhook Management</h3>
|
| 490 |
+
<p class="text-sm text-secondary-var mb-3">Automate third-party services on specific events.</p>
|
| 491 |
+
|
| 492 |
+
<div class="border border-color-var rounded-lg p-4 space-y-3">
|
| 493 |
+
<p class="font-semibold text-color-var text-sm">Webhook to: https://ci.example.com/build</p>
|
| 494 |
+
<p class="text-sm text-secondary-var">Triggers: push, pull_request</p>
|
| 495 |
+
<button class="text-link-var hover:text-link-hover-var text-xs mr-3">Test Webhook</button>
|
| 496 |
+
<button class="text-danger-color-var hover:text-danger-hover-var text-xs">Delete</button>
|
| 497 |
+
</div>
|
| 498 |
+
|
| 499 |
+
<button class="mt-4 inline-flex items-center px-3 py-1.5 text-sm bg-card-var border border-color-var rounded-lg text-color-var hover:bg-active-var transition-colors-theme">
|
| 500 |
+
<span class="material-symbols-rounded text-base mr-1">webhook</span> Add new webhook
|
| 501 |
+
</button>
|
| 502 |
+
</section>
|
| 503 |
+
|
| 504 |
+
<section id="secrets" class="bg-card-var p-6 rounded-lg border border-color-var transition-colors-theme">
|
| 505 |
+
<h2 class="text-xl font-semibold text-color-var border-b border-color-var/50 pb-3 mb-4">Secrets & Variables</h2>
|
| 506 |
+
|
| 507 |
+
<div class="mb-8">
|
| 508 |
+
<h3 class="text-lg font-medium text-color-var mb-2">Repository Secrets (Sensitive Data)</h3>
|
| 509 |
+
<p class="text-sm text-secondary-var mb-3">Securely store API keys and tokens for CI/CD or application runtime.</p>
|
| 510 |
+
|
| 511 |
+
<div id="secrets-list-container" class="space-y-3">
|
| 512 |
+
<p class="text-sm text-secondary-var italic">Loading secrets...</p>
|
| 513 |
+
</div>
|
| 514 |
+
|
| 515 |
+
<div id="add-secret-form" class="mt-6 border border-link-var/50 p-4 rounded-lg hidden">
|
| 516 |
+
<h4 class="text-base font-semibold text-color-var mb-3">Add/Update Secret</h4>
|
| 517 |
+
<form onsubmit="handleConfigOperation(event, 'secrets'); return false;" data-operation="add">
|
| 518 |
+
<input type="hidden" name="original-name" value="">
|
| 519 |
+
<div class="space-y-3">
|
| 520 |
+
<div>
|
| 521 |
+
<label class="block text-sm font-medium text-color-var mb-1">Secret Name</label>
|
| 522 |
+
<input type="text" name="name" class="form-input-var w-64" required placeholder="e.g. API_KEY">
|
| 523 |
+
</div>
|
| 524 |
+
<div>
|
| 525 |
+
<label class="block text-sm font-medium text-color-var mb-1">Description (Optional)</label>
|
| 526 |
+
<input type="text" name="description" class="form-input-var" placeholder="A brief explanation of the secret's use.">
|
| 527 |
+
</div>
|
| 528 |
+
<div>
|
| 529 |
+
<label class="block text-sm font-medium text-color-var mb-1">Secret Value</label>
|
| 530 |
+
<input type="password" name="value" class="form-input-var" required placeholder="The sensitive value">
|
| 531 |
+
</div>
|
| 532 |
+
<button type="submit" class="mt-3 inline-flex items-center px-4 py-2 text-sm bg-primary-color-var text-white font-semibold rounded-lg hover:bg-primary-hover-var transition duration-150">
|
| 533 |
+
Save Secret
|
| 534 |
+
</button>
|
| 535 |
+
<button type="button" onclick="document.getElementById('add-secret-form').classList.add('hidden'); document.getElementById('add-secret-button').classList.remove('hidden');" class="ml-2 text-sm text-secondary-var hover:text-color-var">Cancel</button>
|
| 536 |
+
</div>
|
| 537 |
+
</form>
|
| 538 |
+
</div>
|
| 539 |
+
<button id="add-secret-button" onclick="showConfigForm('secrets');" class="mt-4 inline-flex items-center px-3 py-1.5 text-sm bg-green-600 border border-green-700 rounded-lg text-white hover:bg-green-700 transition-colors-theme">
|
| 540 |
+
<span class="material-symbols-rounded text-base mr-1">lock</span> Add new Secret
|
| 541 |
+
</button>
|
| 542 |
+
</div>
|
| 543 |
+
|
| 544 |
+
<div>
|
| 545 |
+
<h3 class="text-lg font-medium text-color-var mb-2">Shared Variables (Non-sensitive)</h3>
|
| 546 |
+
<p class="text-sm text-secondary-var mb-3">Configuration variables for global project use.</p>
|
| 547 |
+
|
| 548 |
+
<div id="variables-list-container" class="space-y-3">
|
| 549 |
+
<p class="text-sm text-secondary-var italic">Loading variables...</p>
|
| 550 |
+
</div>
|
| 551 |
+
|
| 552 |
+
<div id="add-variable-form" class="mt-6 border border-link-var/50 p-4 rounded-lg hidden">
|
| 553 |
+
<h4 class="text-base font-semibold text-color-var mb-3">Add/Update Variable</h4>
|
| 554 |
+
<form onsubmit="handleConfigOperation(event, 'variables'); return false;" data-operation="add">
|
| 555 |
+
<input type="hidden" name="original-name" value="">
|
| 556 |
+
<div class="space-y-3">
|
| 557 |
+
<div>
|
| 558 |
+
<label class="block text-sm font-medium text-color-var mb-1">Variable Name</label>
|
| 559 |
+
<input type="text" name="name" class="form-input-var w-64" required placeholder="e.g. DEFAULT_ENV">
|
| 560 |
+
</div>
|
| 561 |
+
<div>
|
| 562 |
+
<label class="block text-sm font-medium text-color-var mb-1">Description (Optional)</label>
|
| 563 |
+
<input type="text" name="description" class="form-input-var" placeholder="A brief explanation of the variable's use.">
|
| 564 |
+
</div>
|
| 565 |
+
<div>
|
| 566 |
+
<label class="block text-sm font-medium text-color-var mb-1">Variable Value</label>
|
| 567 |
+
<input type="text" name="value" class="form-input-var" required placeholder="The configuration value">
|
| 568 |
+
</div>
|
| 569 |
+
<button type="submit" class="mt-3 inline-flex items-center px-4 py-2 text-sm bg-primary-color-var text-white font-semibold rounded-lg hover:bg-primary-hover-var transition duration-150">
|
| 570 |
+
Save Variable
|
| 571 |
+
</button>
|
| 572 |
+
<button type="button" onclick="document.getElementById('add-variable-form').classList.add('hidden'); document.getElementById('add-variable-button').classList.remove('hidden');" class="ml-2 text-sm text-secondary-var hover:text-color-var">Cancel</button>
|
| 573 |
+
</div>
|
| 574 |
+
</form>
|
| 575 |
+
</div>
|
| 576 |
+
<button id="add-variable-button" onclick="showConfigForm('variables');" class="mt-3 inline-flex items-center px-3 py-1.5 text-sm bg-green-600 border border-green-700 rounded-lg text-white hover:bg-green-700 transition-colors-theme">
|
| 577 |
+
<span class="material-symbols-rounded text-base mr-1">data_object</span> Add new Variable
|
| 578 |
+
</button>
|
| 579 |
+
</div>
|
| 580 |
+
</section>
|
| 581 |
+
|
| 582 |
+
<section id="integrations" class="bg-card-var p-6 rounded-lg border border-color-var transition-colors-theme">
|
| 583 |
+
<h2 class="text-xl font-semibold text-color-var border-b border-color-var/50 pb-3 mb-4">Integrations</h2>
|
| 584 |
+
|
| 585 |
+
<h3 class="text-lg font-medium text-color-var mb-2">Installed Applications</h3>
|
| 586 |
+
<p class="text-sm text-secondary-var mb-3">List of third-party apps integrated with this repository.</p>
|
| 587 |
+
|
| 588 |
+
<div class="border border-color-var rounded-lg p-4 space-y-3">
|
| 589 |
+
<div class="flex justify-between items-center text-sm">
|
| 590 |
+
<p class="font-semibold text-color-var">External CI/CD Tool</p>
|
| 591 |
+
<button class="text-danger-color-var hover:text-danger-hover-var text-xs">Uninstall</button>
|
| 592 |
+
</div>
|
| 593 |
+
</div>
|
| 594 |
+
|
| 595 |
+
<a href="#" class="mt-4 block text-sm text-link-var hover:text-link-hover-var">
|
| 596 |
+
Explore the GitForge Marketplace
|
| 597 |
+
</a>
|
| 598 |
+
</section>
|
| 599 |
+
|
| 600 |
+
<section id="danger-zone" class="bg-card-var p-6 rounded-lg border border-danger-color-var transition-colors-theme border-4 border-danger-color-var/50">
|
| 601 |
+
<h2 class="text-xl font-semibold text-danger-color-var border-b border-danger-color-var/50 pb-3 mb-4 flex items-center">
|
| 602 |
+
<span class="material-symbols-rounded text-2xl mr-2">warning</span> Danger Zone
|
| 603 |
+
</h2>
|
| 604 |
+
|
| 605 |
+
<div class="pro-card flex justify-between items-center mb-4">
|
| 606 |
+
<div>
|
| 607 |
+
<h3 class="text-lg font-medium text-color-var">Transfer Repository</h3>
|
| 608 |
+
<p class="text-sm text-secondary-var">Transfer ownership to another user or organization. This is irreversible.</p>
|
| 609 |
+
</div>
|
| 610 |
+
<button class="inline-flex items-center px-4 py-2 text-sm bg-card-var border border-danger-color-var text-danger-color-var font-semibold rounded-lg hover:bg-danger-color-var hover:text-white transition duration-150">
|
| 611 |
+
Transfer
|
| 612 |
+
</button>
|
| 613 |
+
</div>
|
| 614 |
+
|
| 615 |
+
<div class="p-4 bg-card-var border border-color-var rounded-lg text-sm text-color-var mb-4">
|
| 616 |
+
<p class="font-semibold flex items-center text-link-var">
|
| 617 |
+
<span class="material-symbols-rounded text-base mr-2">info</span> Changing Visibility
|
| 618 |
+
</p>
|
| 619 |
+
<p class="mt-1 text-secondary-var">Making a Public repository Private will affect forks, packages, and linked services. Confirm the impact before proceeding.</p>
|
| 620 |
+
</div>
|
| 621 |
+
|
| 622 |
+
<div class="p-4 rounded-lg bg-card-var border border-danger-color-var transition-colors-theme">
|
| 623 |
+
<h3 class="text-lg font-medium text-danger-color-var">Permanently Delete this Repository</h3>
|
| 624 |
+
<p class="text-sm text-secondary-var mt-2">
|
| 625 |
+
Deleting this repository is a permanent action that **cannot be undone**. All files, Git history, and associated data will be permanently deleted.
|
| 626 |
+
</p>
|
| 627 |
+
<div class="mt-4 flex justify-end">
|
| 628 |
+
<button id="delete-repo-button"
|
| 629 |
+
type="button"
|
| 630 |
+
class="inline-flex items-center px-4 py-2 text-sm bg-danger-color-var text-white font-semibold rounded-lg hover:bg-danger-hover-var transition duration-150">
|
| 631 |
+
Delete Repository
|
| 632 |
+
</button>
|
| 633 |
+
</div>
|
| 634 |
+
</div>
|
| 635 |
+
</section>
|
| 636 |
+
</div>
|
| 637 |
+
</div>
|
| 638 |
+
</div>
|
| 639 |
+
|
| 640 |
+
<script>
|
| 641 |
+
// --- 1. CONFIGURATION: Nouvelle structure pour Secrets/Variables et préservation des dépendances existantes ---
|
| 642 |
+
|
| 643 |
+
// Utilisation de la variable Jinja2 pour le slug (nouvelle méthode demandée)
|
| 644 |
+
// IMPORTANT: Ces variables sont insérées par le moteur Jinja2 du backend
|
| 645 |
+
const REPO_SLUG = '{{ repo_slug }}';
|
| 646 |
+
|
| 647 |
+
// Nouvelle URL de base pour les appels API des secrets/variables (demandée par l'utilisateur)
|
| 648 |
+
const BASE_API_URL = `/api/repo_data/${REPO_SLUG}`;
|
| 649 |
+
|
| 650 |
+
// Variables existantes et nécessaires pour les autres fonctionnalités
|
| 651 |
+
const USER_ID = document.getElementById('repo-user').textContent.trim();
|
| 652 |
+
const GENERAL_SETTINGS_API_URL = `/api/settings/${USER_ID}/repo/${REPO_SLUG}`; // Ancienne BASE_API_URL (pour General Settings)
|
| 653 |
+
const REPO_DELETE_API_URL = `/api/repos/${REPO_SLUG}`; // Route de suppression
|
| 654 |
+
|
| 655 |
+
// --- 2. FONCTIONS DE RENDU (Affichage de la liste) ---
|
| 656 |
+
function renderConfigItems(items, type) {
|
| 657 |
+
const container = document.getElementById(`${type}-list-container`);
|
| 658 |
+
container.innerHTML = '';
|
| 659 |
+
if (items.length === 0) {
|
| 660 |
+
container.innerHTML = `<p class="text-sm text-secondary-var italic">No ${type.slice(0, -1)} found.</p>`;
|
| 661 |
+
return;
|
| 662 |
+
}
|
| 663 |
+
|
| 664 |
+
items.forEach(item => {
|
| 665 |
+
// Encode les valeurs pour les passer aux fonctions JS (important pour les guillemets simples/doubles)
|
| 666 |
+
const nameEncoded = encodeURIComponent(item.name);
|
| 667 |
+
const descriptionEncoded = encodeURIComponent(item.description || '');
|
| 668 |
+
// La valeur des secrets sera masquée côté backend, mais la valeur des variables est visible
|
| 669 |
+
const valueDisplay = (type === 'secrets') ? '***SECRET_VALUE_HIDDEN***' : item.value;
|
| 670 |
+
const valueEncoded = encodeURIComponent(valueDisplay);
|
| 671 |
+
|
| 672 |
+
const itemHtml = `
|
| 673 |
+
<div class="flex justify-between items-center p-3 bg-card-var border border-color-var/50 rounded-lg">
|
| 674 |
+
<div class="flex-1 min-w-0">
|
| 675 |
+
<div class="font-mono text-sm font-semibold text-color-var truncate">${item.name}</div>
|
| 676 |
+
<div class="text-xs text-secondary-var mt-0.5 truncate">${item.description || 'No description'}</div>
|
| 677 |
+
<div class="text-xs text-secondary-var mt-0.5 font-mono">${valueDisplay}</div>
|
| 678 |
+
</div>
|
| 679 |
+
<div class="flex space-x-2 ml-4">
|
| 680 |
+
<button onclick="editConfigItem('${type}', '${nameEncoded}', '${descriptionEncoded}', '${valueEncoded}')"
|
| 681 |
+
class="text-xs text-link-var hover:text-primary-color-var transition duration-150">
|
| 682 |
+
Edit
|
| 683 |
+
</button>
|
| 684 |
+
<button onclick="deleteConfigItem('${type}', '${nameEncoded}')"
|
| 685 |
+
class="text-xs text-red-500 hover:text-red-700 transition duration-150">
|
| 686 |
+
Delete
|
| 687 |
+
</button>
|
| 688 |
+
</div>
|
| 689 |
+
</div>
|
| 690 |
+
`;
|
| 691 |
+
container.insertAdjacentHTML('beforeend', itemHtml);
|
| 692 |
+
});
|
| 693 |
+
}
|
| 694 |
+
|
| 695 |
+
// --- 3. FONCTION DE LECTURE (FETCH) ---
|
| 696 |
+
async function fetchConfigItems(type) {
|
| 697 |
+
const container = document.getElementById(`${type}-list-container`);
|
| 698 |
+
container.innerHTML = `<p class="text-sm text-secondary-var italic">Loading ${type}...</p>`;
|
| 699 |
+
|
| 700 |
+
try {
|
| 701 |
+
// item_type est au singulier ('secret' ou 'variable')
|
| 702 |
+
const item_type = type.slice(0, -1);
|
| 703 |
+
const response = await fetch(`${BASE_API_URL}/items?item_type=${item_type}`);
|
| 704 |
+
const data = await response.json();
|
| 705 |
+
|
| 706 |
+
if (response.ok && data.success) {
|
| 707 |
+
renderConfigItems(data.items, type);
|
| 708 |
+
} else {
|
| 709 |
+
container.innerHTML = `<p class="text-sm text-red-500">Loading Error: ${data.message || 'Unknown error'}</p>`;
|
| 710 |
+
}
|
| 711 |
+
} catch (error) {
|
| 712 |
+
container.innerHTML = `<p class="text-sm text-red-500">Network error when loading ${type}.</p>`;
|
| 713 |
+
console.error(`Error loading ${type}:`, error);
|
| 714 |
+
}
|
| 715 |
+
}
|
| 716 |
+
|
| 717 |
+
|
| 718 |
+
// --- 5. FONCTION CRUD : CREATE/UPDATE (Sauvegarde) ---
|
| 719 |
+
async function handleConfigOperation(event, type) {
|
| 720 |
+
event.preventDefault();
|
| 721 |
+
const form = event.target;
|
| 722 |
+
const item_type = type.slice(0, -1); // 'secrets' -> 'secret', 'variables' -> 'variable'
|
| 723 |
+
|
| 724 |
+
const payload = {
|
| 725 |
+
name: form.elements['name'].value,
|
| 726 |
+
description: form.elements['description'].value,
|
| 727 |
+
value: form.elements['value'].value,
|
| 728 |
+
item_type: item_type // Requis par le backend
|
| 729 |
+
};
|
| 730 |
+
|
| 731 |
+
// Désactiver le bouton pendant le traitement
|
| 732 |
+
const submitButton = form.querySelector('button[type="submit"]');
|
| 733 |
+
submitButton.disabled = true;
|
| 734 |
+
submitButton.textContent = 'Saving...';
|
| 735 |
+
|
| 736 |
+
try {
|
| 737 |
+
const response = await fetch(`${BASE_API_URL}/update_item`, {
|
| 738 |
+
method: 'POST', // Utilise la route POST pour la mise à jour (Upsert)
|
| 739 |
+
headers: { 'Content-Type': 'application/json' },
|
| 740 |
+
body: JSON.stringify(payload)
|
| 741 |
+
});
|
| 742 |
+
|
| 743 |
+
let data;
|
| 744 |
+
try {
|
| 745 |
+
data = await response.json();
|
| 746 |
+
} catch (e) {
|
| 747 |
+
// Tente d'analyser la réponse même si elle n'est pas OK (pour récupérer un message d'erreur JSON)
|
| 748 |
+
if (!response.ok) throw new Error(`HTTP Error: Status ${response.status}`);
|
| 749 |
+
}
|
| 750 |
+
|
| 751 |
+
if (response.ok && data && data.success) {
|
| 752 |
+
alert(data.message);
|
| 753 |
+
// Masquer le formulaire et mettre à jour la liste
|
| 754 |
+
document.getElementById(`add-${item_type}-form`).classList.add('hidden');
|
| 755 |
+
document.getElementById(`add-${item_type}-button`).classList.remove('hidden');
|
| 756 |
+
fetchConfigItems(type); // Recharger les données
|
| 757 |
+
} else {
|
| 758 |
+
alert(`Save Error: ${data ? data.message : `Internal error or status ${response.status}.`}`);
|
| 759 |
+
}
|
| 760 |
+
} catch (error) {
|
| 761 |
+
alert(`Network error during save of ${item_type}. Details: ${error.message || 'Unknown error'}`);
|
| 762 |
+
console.error(`Save error for ${item_type}:`, error);
|
| 763 |
+
} finally {
|
| 764 |
+
submitButton.disabled = false;
|
| 765 |
+
submitButton.textContent = `Save ${item_type.charAt(0).toUpperCase() + item_type.slice(1)}`;
|
| 766 |
+
}
|
| 767 |
+
}
|
| 768 |
+
|
| 769 |
+
// --- 6. FONCTION POUR AFFICHER LE FORMULAIRE DE CRÉATION/ÉDITION ---
|
| 770 |
+
function showConfigForm(type) {
|
| 771 |
+
const item_type = type.slice(0, -1);
|
| 772 |
+
const formContainer = document.getElementById(`add-${item_type}-form`);
|
| 773 |
+
const addButton = document.getElementById(`add-${item_type}-button`);
|
| 774 |
+
|
| 775 |
+
// Cacher l'autre formulaire si visible
|
| 776 |
+
const otherType = (type === 'secrets') ? 'variables' : 'secrets';
|
| 777 |
+
const otherItemType = otherType.slice(0, -1);
|
| 778 |
+
document.getElementById(`add-${otherItemType}-form`).classList.add('hidden');
|
| 779 |
+
document.getElementById(`add-${otherItemType}-button`).classList.remove('hidden');
|
| 780 |
+
|
| 781 |
+
// Reset le formulaire et le configurer pour une 'création'
|
| 782 |
+
const form = formContainer.querySelector('form');
|
| 783 |
+
form.reset();
|
| 784 |
+
formContainer.querySelector('h4').textContent = `Add new ${item_type}`;
|
| 785 |
+
form.querySelector('button[type="submit"]').textContent = `Save ${item_type.charAt(0).toUpperCase() + item_type.slice(1)}`;
|
| 786 |
+
form.querySelector('[name="value"]').type = (type === 'secrets') ? 'password' : 'text';
|
| 787 |
+
form.elements['name'].readOnly = false; // Réactiver l'édition du nom
|
| 788 |
+
|
| 789 |
+
formContainer.classList.remove('hidden');
|
| 790 |
+
addButton.classList.add('hidden');
|
| 791 |
+
}
|
| 792 |
+
|
| 793 |
+
// --- 7. FONCTION POUR POPULER LE FORMULAIRE POUR L'ÉDITION ---
|
| 794 |
+
function editConfigItem(type, nameEncoded, descriptionEncoded, valueEncoded) {
|
| 795 |
+
const item_type = type.slice(0, -1);
|
| 796 |
+
|
| 797 |
+
// Afficher le formulaire d'abord
|
| 798 |
+
showConfigForm(type);
|
| 799 |
+
|
| 800 |
+
const form = document.getElementById(`add-${item_type}-form`).querySelector('form');
|
| 801 |
+
|
| 802 |
+
// Décoder et peupler les champs
|
| 803 |
+
const name = decodeURIComponent(nameEncoded);
|
| 804 |
+
const description = decodeURIComponent(descriptionEncoded);
|
| 805 |
+
|
| 806 |
+
form.elements['name'].value = name;
|
| 807 |
+
form.elements['name'].readOnly = true; // Empêcher l'édition du nom lors de l'Update
|
| 808 |
+
form.elements['description'].value = description;
|
| 809 |
+
|
| 810 |
+
// IMPORTANT: La valeur des secrets est masquée par le backend.
|
| 811 |
+
if (item_type === 'secret') {
|
| 812 |
+
form.elements['value'].value = '';
|
| 813 |
+
form.elements['value'].placeholder = 'Enter new value (required to update secret)';
|
| 814 |
+
alert("Please enter the new secret value when modifying. The existing value is not displayed for security reasons.");
|
| 815 |
+
} else {
|
| 816 |
+
form.elements['value'].value = decodeURIComponent(valueEncoded);
|
| 817 |
+
form.elements['value'].placeholder = 'The configuration value';
|
| 818 |
+
}
|
| 819 |
+
|
| 820 |
+
// Mettre à jour le texte du titre et du bouton de soumission
|
| 821 |
+
document.getElementById(`add-${item_type}-form`).querySelector('h4').textContent = `Update ${item_type}: ${name}`;
|
| 822 |
+
form.querySelector('button[type="submit"]').textContent = `Update ${item_type.charAt(0).toUpperCase() + item_type.slice(1)}`;
|
| 823 |
+
}
|
| 824 |
+
|
| 825 |
+
// --- 8. FONCTION CRUD : DELETE (Suppression) ---
|
| 826 |
+
async function deleteConfigItem(type, nameEncoded) {
|
| 827 |
+
const item_type = type.slice(0, -1);
|
| 828 |
+
const name = decodeURIComponent(nameEncoded);
|
| 829 |
+
|
| 830 |
+
if (!confirm(`Are you sure you want to delete the ${item_type} named '${name}'? This action is irreversible.`)) {
|
| 831 |
+
return;
|
| 832 |
+
}
|
| 833 |
+
|
| 834 |
+
try {
|
| 835 |
+
// URL pour l'appel de suppression (le backend doit traiter le DELETE avec ces paramètres)
|
| 836 |
+
const deleteUrl = `${BASE_API_URL}/items?item_type=${item_type}&name=${name}`;
|
| 837 |
+
|
| 838 |
+
const response = await fetch(deleteUrl, {
|
| 839 |
+
method: 'DELETE',
|
| 840 |
+
});
|
| 841 |
+
|
| 842 |
+
let data;
|
| 843 |
+
try {
|
| 844 |
+
data = await response.json();
|
| 845 |
+
} catch (e) {
|
| 846 |
+
// Tente d'analyser la réponse même si elle n'est pas OK
|
| 847 |
+
if (!response.ok) throw new Error(`HTTP Error: Status ${response.status}`);
|
| 848 |
+
}
|
| 849 |
+
|
| 850 |
+
// Si response.ok est VRAI et que le backend retourne un succès (data.success=true)
|
| 851 |
+
if (response.ok && data && data.success) {
|
| 852 |
+
alert(data.message);
|
| 853 |
+
fetchConfigItems(type); // Recharger les données
|
| 854 |
+
} else {
|
| 855 |
+
// Afficher le message d'erreur du backend ou un message par défaut
|
| 856 |
+
alert(`Deletion Error: ${data ? data.message : `Check if the DELETE route is correctly implemented on the backend. Status: ${response.status}`}`);
|
| 857 |
+
}
|
| 858 |
+
} catch (error) {
|
| 859 |
+
// Afficher le message d'erreur réseau ou l'erreur HTTP lancée ci-dessus
|
| 860 |
+
alert(`Network error during deletion. Details: ${error.message || 'Unknown error'}`);
|
| 861 |
+
console.error(`Deletion error:`, error);
|
| 862 |
+
}
|
| 863 |
+
}
|
| 864 |
+
|
| 865 |
+
// Chargement de la page et logique de navigation (ORIGINAL)
|
| 866 |
+
const navLinks = document.querySelectorAll('.settings-nav-link');
|
| 867 |
+
window.setActiveLink = (clickedLink) => {
|
| 868 |
+
navLinks.forEach(link => link.classList.remove('active'));
|
| 869 |
+
clickedLink.classList.add('active');
|
| 870 |
+
};
|
| 871 |
+
|
| 872 |
+
const observerOptions = {
|
| 873 |
+
root: null, // viewport
|
| 874 |
+
rootMargin: '0px 0px -70% 0px', // Trigger point at 30% from top
|
| 875 |
+
threshold: 0 // As soon as one pixel est visible
|
| 876 |
+
};
|
| 877 |
+
|
| 878 |
+
const sections = document.querySelectorAll('section[id]');
|
| 879 |
+
|
| 880 |
+
const observer = new IntersectionObserver((entries) => {
|
| 881 |
+
entries.forEach(entry => {
|
| 882 |
+
if (entry.isIntersecting) {
|
| 883 |
+
const id = entry.target.getAttribute('id');
|
| 884 |
+
const correspondingLink = document.querySelector(`.settings-nav-link[href="#${id}"]`);
|
| 885 |
+
|
| 886 |
+
if (correspondingLink) {
|
| 887 |
+
navLinks.forEach(link => link.classList.remove('active'));
|
| 888 |
+
correspondingLink.classList.add('active');
|
| 889 |
+
}
|
| 890 |
+
}
|
| 891 |
+
});
|
| 892 |
+
}, observerOptions);
|
| 893 |
+
|
| 894 |
+
sections.forEach(section => {
|
| 895 |
+
observer.observe(section);
|
| 896 |
+
});
|
| 897 |
+
|
| 898 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 899 |
+
if (!document.querySelector('.settings-nav-link.active')) {
|
| 900 |
+
document.querySelector('.settings-nav-link').classList.add('active');
|
| 901 |
+
}
|
| 902 |
+
|
| 903 |
+
// Lancer le chargement des secrets et variables au démarrage (LOGIQUE MISE À JOUR)
|
| 904 |
+
if (REPO_SLUG && REPO_SLUG !== 'None') {
|
| 905 |
+
fetchConfigItems('secrets');
|
| 906 |
+
fetchConfigItems('variables');
|
| 907 |
+
}
|
| 908 |
+
|
| 909 |
+
|
| 910 |
+
// ***************************************************************
|
| 911 |
+
// BLOC JS : LOGIQUE DE SUPPRESSION DE DÉPÔT (ORIGINAL)
|
| 912 |
+
// ***************************************************************
|
| 913 |
+
const deleteButton = document.getElementById('delete-repo-button');
|
| 914 |
+
|
| 915 |
+
if (deleteButton) {
|
| 916 |
+
deleteButton.addEventListener('click', async () => {
|
| 917 |
+
const repoSlug = REPO_SLUG; // Utilisation de la variable REPO_SLUG déjà définie
|
| 918 |
+
|
| 919 |
+
if (!repoSlug) {
|
| 920 |
+
alert("Error: Repository slug not found. Cannot delete.");
|
| 921 |
+
return;
|
| 922 |
+
}
|
| 923 |
+
|
| 924 |
+
// 1. Double confirmation pour une action destructive
|
| 925 |
+
const confirmation = window.confirm(`Are you SURE you want to permanently delete the repository '${repoSlug}'? This action is irreversible and deletes ALL data.`);
|
| 926 |
+
if (!confirmation) {
|
| 927 |
+
return;
|
| 928 |
+
}
|
| 929 |
+
|
| 930 |
+
// 2. Appel de la route DELETE
|
| 931 |
+
const url = REPO_DELETE_API_URL; // Utilisation de la variable REPO_DELETE_API_URL
|
| 932 |
+
|
| 933 |
+
try {
|
| 934 |
+
// Désactiver le bouton pendant le traitement
|
| 935 |
+
deleteButton.disabled = true;
|
| 936 |
+
deleteButton.textContent = 'Deletion in progress...';
|
| 937 |
+
|
| 938 |
+
const response = await fetch(url, {
|
| 939 |
+
method: 'DELETE',
|
| 940 |
+
headers: {
|
| 941 |
+
'Content-Type': 'application/json'
|
| 942 |
+
},
|
| 943 |
+
});
|
| 944 |
+
|
| 945 |
+
// Tente de lire la réponse JSON, même si elle est vide/erreur
|
| 946 |
+
let data = {};
|
| 947 |
+
try {
|
| 948 |
+
data = await response.json();
|
| 949 |
+
} catch (e) {
|
| 950 |
+
// Ignorer si la réponse n'est pas JSON (par exemple, 204 No Content)
|
| 951 |
+
if (response.status !== 204) {
|
| 952 |
+
console.warn("Response is not JSON, but status is OK. Continuing.");
|
| 953 |
+
}
|
| 954 |
+
}
|
| 955 |
+
|
| 956 |
+
if (!response.ok) {
|
| 957 |
+
// 404, 500 ou autre erreur du backend
|
| 958 |
+
throw new Error(data.message || `Error during deletion: Status ${response.status}`);
|
| 959 |
+
}
|
| 960 |
+
|
| 961 |
+
alert('Repository deleted successfully. Redirecting to dashboard.');
|
| 962 |
+
// 3. Redirection après succès
|
| 963 |
+
window.location.href = '/mindus/nexus/dashboard';
|
| 964 |
+
|
| 965 |
+
} catch (error) {
|
| 966 |
+
console.error("Error deleting repository:", error);
|
| 967 |
+
alert(`Failed to delete repository. Details: ${error.message}`);
|
| 968 |
+
} finally {
|
| 969 |
+
// Réactiver et restaurer l'état du bouton en cas d'erreur
|
| 970 |
+
deleteButton.disabled = false;
|
| 971 |
+
deleteButton.textContent = 'Delete Repository';
|
| 972 |
+
}
|
| 973 |
+
});
|
| 974 |
+
}
|
| 975 |
+
// ***************************************************************
|
| 976 |
+
});
|
| 977 |
+
|
| 978 |
+
/**
|
| 979 |
+
* Handles the update of general settings (General Settings).
|
| 980 |
+
*/
|
| 981 |
+
document.getElementById('general-settings-form').addEventListener('submit', async function(e) {
|
| 982 |
+
e.preventDefault();
|
| 983 |
+
// The rename logic is now decoupled from the form submission for better UX matching the image
|
| 984 |
+
// and is managed by the rename-button click handler, but for the sake of submitting
|
| 985 |
+
// visibility changes and other potential form elements, we keep the submit handler.
|
| 986 |
+
if (!REPO_SLUG) return; // Security
|
| 987 |
+
|
| 988 |
+
// Only submitting visibility and description for this simplified form.
|
| 989 |
+
// The repoName update is handled by the rename button for image parity,
|
| 990 |
+
// but we include it in the payload for completeness with the backend route.
|
| 991 |
+
const repoName = document.getElementById('repo-name-input').value;
|
| 992 |
+
const repoDescription = ''; // Description field was removed from the General section.
|
| 993 |
+
const visibility = document.querySelector('#repo-visibility-radios input[name="visibility"]:checked').value;
|
| 994 |
+
|
| 995 |
+
// Using the GENERAL_SETTINGS_API_URL variable for the original route
|
| 996 |
+
const url = GENERAL_SETTINGS_API_URL;
|
| 997 |
+
const payload = {
|
| 998 |
+
name: repoName,
|
| 999 |
+
description: repoDescription,
|
| 1000 |
+
visibility: visibility
|
| 1001 |
+
};
|
| 1002 |
+
|
| 1003 |
+
const submitButton = e.target.querySelector('button[type="submit"]');
|
| 1004 |
+
submitButton.disabled = true;
|
| 1005 |
+
submitButton.textContent = 'Saving...';
|
| 1006 |
+
|
| 1007 |
+
|
| 1008 |
+
try {
|
| 1009 |
+
const response = await fetch(url, {
|
| 1010 |
+
method: 'PUT',
|
| 1011 |
+
headers: { 'Content-Type': 'application/json' },
|
| 1012 |
+
body: JSON.stringify(payload)
|
| 1013 |
+
});
|
| 1014 |
+
|
| 1015 |
+
if (!response.ok) {
|
| 1016 |
+
const errorData = await response.json();
|
| 1017 |
+
throw new Error(`API Error: ${errorData.message || response.statusText}`);
|
| 1018 |
+
}
|
| 1019 |
+
|
| 1020 |
+
alert('General settings saved successfully!');
|
| 1021 |
+
// Update display of name and visibility if needed
|
| 1022 |
+
document.getElementById('repo-name').textContent = repoName;
|
| 1023 |
+
document.getElementById('repo-visibility').textContent = visibility.charAt(0).toUpperCase() + visibility.slice(1);
|
| 1024 |
+
|
| 1025 |
+
} catch (error) {
|
| 1026 |
+
console.error("Error updating general settings:", error);
|
| 1027 |
+
alert(`Failed to update settings. Details: ${error.message}`);
|
| 1028 |
+
} finally {
|
| 1029 |
+
submitButton.disabled = false;
|
| 1030 |
+
submitButton.textContent = 'Save General Changes';
|
| 1031 |
+
}
|
| 1032 |
+
});
|
| 1033 |
+
|
| 1034 |
+
/**
|
| 1035 |
+
* Logic for the Rename button (to match the image).
|
| 1036 |
+
*/
|
| 1037 |
+
document.getElementById('rename-button').addEventListener('click', async function() {
|
| 1038 |
+
if (!REPO_SLUG) return;
|
| 1039 |
+
|
| 1040 |
+
const repoNameInput = document.getElementById('repo-name-input');
|
| 1041 |
+
const newRepoName = repoNameInput.value.trim();
|
| 1042 |
+
const currentRepoName = document.getElementById('repo-name').textContent.trim();
|
| 1043 |
+
|
| 1044 |
+
if (newRepoName === currentRepoName) {
|
| 1045 |
+
alert('The new name is the same as the current name.');
|
| 1046 |
+
return;
|
| 1047 |
+
}
|
| 1048 |
+
|
| 1049 |
+
if (newRepoName === '') {
|
| 1050 |
+
alert('Repository name cannot be empty.');
|
| 1051 |
+
return;
|
| 1052 |
+
}
|
| 1053 |
+
|
| 1054 |
+
if (!confirm(`Are you sure you want to rename the repository from '${currentRepoName}' to '${newRepoName}'?`)) {
|
| 1055 |
+
return;
|
| 1056 |
+
}
|
| 1057 |
+
|
| 1058 |
+
const button = this;
|
| 1059 |
+
button.disabled = true;
|
| 1060 |
+
button.textContent = 'Renaming...';
|
| 1061 |
+
|
| 1062 |
+
// This relies on the GENERAL_SETTINGS_API_URL and the backend's ability to handle
|
| 1063 |
+
// just a name change via PUT, which is assumed from the existing submit handler logic.
|
| 1064 |
+
const url = GENERAL_SETTINGS_API_URL;
|
| 1065 |
+
const payload = {
|
| 1066 |
+
name: newRepoName,
|
| 1067 |
+
// Assuming visibility and description are also sent for a complete update,
|
| 1068 |
+
// though only the name is changing here for this button.
|
| 1069 |
+
description: '', // Description removed
|
| 1070 |
+
visibility: document.querySelector('#repo-visibility-radios input[name="visibility"]:checked').value
|
| 1071 |
+
};
|
| 1072 |
+
|
| 1073 |
+
try {
|
| 1074 |
+
const response = await fetch(url, {
|
| 1075 |
+
method: 'PUT',
|
| 1076 |
+
headers: { 'Content-Type': 'application/json' },
|
| 1077 |
+
body: JSON.stringify(payload)
|
| 1078 |
+
});
|
| 1079 |
+
|
| 1080 |
+
if (!response.ok) {
|
| 1081 |
+
const errorData = await response.json();
|
| 1082 |
+
throw new Error(`API Error: ${errorData.message || response.statusText}`);
|
| 1083 |
+
}
|
| 1084 |
+
|
| 1085 |
+
alert(`Repository successfully renamed to '${newRepoName}'!`);
|
| 1086 |
+
|
| 1087 |
+
// Update all display elements
|
| 1088 |
+
document.getElementById('repo-name').textContent = newRepoName;
|
| 1089 |
+
|
| 1090 |
+
// If the URL changes on the backend, a redirect might be needed, but for now
|
| 1091 |
+
// we assume the page content updates are enough.
|
| 1092 |
+
|
| 1093 |
+
} catch (error) {
|
| 1094 |
+
console.error("Error renaming repository:", error);
|
| 1095 |
+
alert(`Failed to rename repository. Details: ${error.message}`);
|
| 1096 |
+
repoNameInput.value = currentRepoName; // Restore old name on failure
|
| 1097 |
+
} finally {
|
| 1098 |
+
button.disabled = false;
|
| 1099 |
+
button.textContent = 'Rename';
|
| 1100 |
+
}
|
| 1101 |
+
});
|
| 1102 |
+
|
| 1103 |
+
</script>
|
| 1104 |
+
</body>
|
| 1105 |
+
</html>
|
a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/statut.html
ADDED
|
@@ -0,0 +1,457 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="fr" class="dark">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Nexus | Statut de l'API</title>
|
| 7 |
+
<link rel="icon" type="image/png" href="https://i.imgur.com/7Gn3toV.png">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<link rel="stylesheet"
|
| 10 |
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" />
|
| 11 |
+
<style>
|
| 12 |
+
/* Configuration de la police Inter */
|
| 13 |
+
body { font-family: 'Inter', sans-serif; }
|
| 14 |
+
|
| 15 |
+
/* Définition des variables de thème (Ajoutées pour le style) */
|
| 16 |
+
:root {
|
| 17 |
+
/* Couleurs de base (exemple - ajustez si nécessaire) */
|
| 18 |
+
--page-var: #f8fafc; /* light - slate-50 */
|
| 19 |
+
--color-var: #0f172a; /* light - slate-900 */
|
| 20 |
+
--secondary-var: #64748b; /* light - slate-500 */
|
| 21 |
+
--card-var: #ffffff; /* light - white */
|
| 22 |
+
--sidebar-var: #e2e8f0; /* light - slate-200 */
|
| 23 |
+
--sidebar-active-var: #cbd5e1; /* light - slate-300 */
|
| 24 |
+
--input-var: #f1f5f9; /* light - slate-100 */
|
| 25 |
+
--primary-color-var: #4f46e5; /* indigo-600 */
|
| 26 |
+
--primary-hover-var: #4338ca; /* indigo-700 */
|
| 27 |
+
--error-var: #fef2f2; /* red-50 */
|
| 28 |
+
--success-var: #f0fdf4; /* green-50 */
|
| 29 |
+
--warning-var: #fcd34d; /* amber-400 */
|
| 30 |
+
}
|
| 31 |
+
|
| 32 |
+
.dark {
|
| 33 |
+
--page-var: #18181b; /* dark - zinc-900 (Gris très foncé pour l'arrière-plan de la page) */
|
| 34 |
+
--color-var: #f4f4f5; /* dark - zinc-100 (Texte clair) */
|
| 35 |
+
--secondary-var: #a1a1aa; /* dark - zinc-400 (Texte secondaire) */
|
| 36 |
+
--card-var: #27272a; /* dark - zinc-800 (Gris foncé pour les cartes et la sidebar) */
|
| 37 |
+
--sidebar-var: #27272a; /* dark - zinc-800 */
|
| 38 |
+
--sidebar-active-var: #3f3f46; /* dark - zinc-700 (Gris un peu plus clair pour l'actif) */
|
| 39 |
+
--input-var: #18181b; /* dark - zinc-900 (Fond de champ de saisie) */
|
| 40 |
+
--primary-color-var: #6366f1; /* indigo-500 (Couleur primaire inchangée) */
|
| 41 |
+
--primary-hover-var: #4f46e5; /* indigo-600 */
|
| 42 |
+
--error-var: #450a0a; /* red-950 */
|
| 43 |
+
--success-var: #052e16; /* green-950 */
|
| 44 |
+
--warning-var: #b45309; /* amber-800 */
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
/* Transition pour un effet doux des couleurs */
|
| 48 |
+
.transition-colors-theme { transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
|
| 49 |
+
|
| 50 |
+
/* Style et positionnement du bouton de Thème */
|
| 51 |
+
.theme-switch {
|
| 52 |
+
background: none;
|
| 53 |
+
border: none;
|
| 54 |
+
cursor: pointer;
|
| 55 |
+
font-size: 24px;
|
| 56 |
+
transition: color 0.2s;
|
| 57 |
+
position: fixed; /* Reste fixe même si le reste défile */
|
| 58 |
+
top: 1rem;
|
| 59 |
+
right: 1rem;
|
| 60 |
+
z-index: 50; /* Doit être au-dessus du reste */
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
/* Style pour la sidebar responsive */
|
| 64 |
+
.sidebar {
|
| 65 |
+
position: fixed;
|
| 66 |
+
top: 0;
|
| 67 |
+
left: 0;
|
| 68 |
+
height: 100vh;
|
| 69 |
+
z-index: 40;
|
| 70 |
+
transform: translateX(-100%);
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
/* Styles pour le mode desktop/large screen */
|
| 74 |
+
@media (min-width: 1024px) {
|
| 75 |
+
.sidebar {
|
| 76 |
+
transform: translateX(0);
|
| 77 |
+
}
|
| 78 |
+
.main-content {
|
| 79 |
+
margin-left: 16rem; /* 64px width */
|
| 80 |
+
}
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
/* Styles pour le mode mobile/tablet */
|
| 84 |
+
@media (max-width: 1023px) {
|
| 85 |
+
.sidebar {
|
| 86 |
+
transition: transform 0.3s ease-in-out;
|
| 87 |
+
}
|
| 88 |
+
.sidebar.open {
|
| 89 |
+
transform: translateX(0);
|
| 90 |
+
}
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
/* Ajout des styles pour les variables CSS dans Tailwind */
|
| 94 |
+
.bg-page-var { background-color: var(--page-var); }
|
| 95 |
+
.text-color-var { color: var(--color-var); }
|
| 96 |
+
.text-secondary-var { color: var(--secondary-var); }
|
| 97 |
+
.bg-card-var { background-color: var(--card-var); }
|
| 98 |
+
.bg-sidebar-var { background-color: var(--sidebar-var); }
|
| 99 |
+
.border-sidebar-var { border-color: var(--sidebar-var); }
|
| 100 |
+
.bg-sidebar-active-var { background-color: var(--sidebar-active-var); }
|
| 101 |
+
.bg-input-var { background-color: var(--input-var); }
|
| 102 |
+
.border-input-var { border-color: var(--input-var); }
|
| 103 |
+
.text-primary-color-var { color: var(--primary-color-var); }
|
| 104 |
+
.focus\:ring-primary-color-var:focus { --tw-ring-color: var(--primary-color-var); }
|
| 105 |
+
.focus\:border-primary-color-var:focus { border-color: var(--primary-color-var); }
|
| 106 |
+
.bg-primary-color-var { background-color: var(--primary-color-var); }
|
| 107 |
+
.hover\:bg-primary-hover-var:hover { background-color: var(--primary-hover-var); }
|
| 108 |
+
.hover\:bg-sidebar-active-var:hover { background-color: var(--sidebar-active-var); }
|
| 109 |
+
.hover\:bg-sidebar-active-var\/80:hover { background-color: color-mix(in srgb, var(--sidebar-active-var) 80%, transparent); }
|
| 110 |
+
|
| 111 |
+
/* Correction pour les messages flash pour utiliser les variables */
|
| 112 |
+
.bg-red-900\/20 { background-color: color-mix(in srgb, var(--error-var) 20%, transparent); } /* Approximation des couleurs spécifiques */
|
| 113 |
+
.text-red-500 { color: #ef4444; } /* Laissez le rouge spécifique pour les erreurs */
|
| 114 |
+
.border-red-900 { border-color: #7f1d1d; } /* Laissez le rouge spécifique pour les erreurs */
|
| 115 |
+
.bg-green-900\/20 { background-color: color-mix(in srgb, var(--success-var) 20%, transparent); } /* Approximation des couleurs spécifiques */
|
| 116 |
+
.text-green-500 { color: #22c55e; } /* Laissez le vert spécifique pour le succès */
|
| 117 |
+
.border-green-900 { border-color: #064e3b; } /* Laissez le vert spécifique pour le succès */
|
| 118 |
+
.hover\:text-link-hover-var:hover { color: var(--secondary-var); } /* Ajout d'une pseudo-variable pour le hover de l'icône de thème (simple fallback) */
|
| 119 |
+
|
| 120 |
+
/* Nouveaux styles pour le statut de l'API */
|
| 121 |
+
.status-bar {
|
| 122 |
+
height: 1.5rem; /* 6px */
|
| 123 |
+
border-radius: 0.375rem; /* rounded-md */
|
| 124 |
+
transition: width 0.5s ease-out; /* Animation douce pour le changement de statut */
|
| 125 |
+
display: flex;
|
| 126 |
+
align-items: center;
|
| 127 |
+
padding-left: 0.75rem;
|
| 128 |
+
font-weight: 600;
|
| 129 |
+
color: white; /* Texte blanc par défaut pour la barre de statut */
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
/* Couleurs spécifiques pour le statut */
|
| 133 |
+
.status-green { background-color: #22c55e; } /* green-500 */
|
| 134 |
+
.status-yellow { background-color: #f59e0b; } /* amber-500 */
|
| 135 |
+
.status-red { background-color: #ef4444; } /* red-500 */
|
| 136 |
+
|
| 137 |
+
</style>
|
| 138 |
+
</head>
|
| 139 |
+
|
| 140 |
+
<body class="bg-page-var text-color-var min-h-screen transition-colors-theme">
|
| 141 |
+
|
| 142 |
+
<button id="theme-switch" class="theme-switch text-color-var hover:text-link-hover-var transition-colors-theme">
|
| 143 |
+
<span class="material-symbols-rounded">dark_mode</span>
|
| 144 |
+
</button>
|
| 145 |
+
|
| 146 |
+
<aside id="sidebar" class="sidebar w-64 bg-sidebar-var border-r border-sidebar-var p-6 flex flex-col lg:block transition-colors-theme">
|
| 147 |
+
|
| 148 |
+
<div class="flex items-center mb-6 shrink-0">
|
| 149 |
+
<img src="https://i.imgur.com/7Gn3toV.png" alt="Nexus Pro Logo" class="h-8">
|
| 150 |
+
<span class="text-xl font-bold text-color-var ml-2 transition-colors-theme">Nexus Pro</span>
|
| 151 |
+
</div>
|
| 152 |
+
|
| 153 |
+
<div class="flex-grow overflow-y-auto pr-2" id="scrollable-nav-container">
|
| 154 |
+
<nav class="space-y-3 pb-4">
|
| 155 |
+
<a href="/mindus/nexus/dashboard" class="flex items-center p-3 text-secondary-var hover:text-color-var hover:bg-sidebar-active-var rounded-lg transition duration-150 transition-colors-theme">
|
| 156 |
+
<span class="material-symbols-rounded">dashboard</span>
|
| 157 |
+
<span class="ml-3">Dashboard</span>
|
| 158 |
+
</a>
|
| 159 |
+
<a href="/mindus/nexus/profile" class="flex items-center p-3 text-secondary-var hover:text-color-var hover:bg-sidebar-active-var rounded-lg transition duration-150 transition-colors-theme">
|
| 160 |
+
<span class="material-symbols-rounded">person</span>
|
| 161 |
+
<span class="ml-3">Profil</span>
|
| 162 |
+
</a>
|
| 163 |
+
<a href="/mindus/nexus/api_logs" class="flex items-center p-3 text-secondary-var hover:text-color-var hover:bg-sidebar-active-var rounded-lg transition duration-150 transition-colors-theme">
|
| 164 |
+
<span class="material-symbols-rounded">list_alt</span>
|
| 165 |
+
<span class="ml-3">Logs d'API</span>
|
| 166 |
+
</a>
|
| 167 |
+
<a href="/mindus/nexus/tarifs" class="flex items-center p-3 text-secondary-var hover:text-color-var hover:bg-sidebar-active-var rounded-lg transition duration-150 transition-colors-theme">
|
| 168 |
+
<span class="material-symbols-rounded">payments</span>
|
| 169 |
+
<span class="ml-3">Tarifs</span>
|
| 170 |
+
</a>
|
| 171 |
+
<a href="/mindus/nexus/statut" class="flex items-center p-3 bg-sidebar-active-var text-color-var rounded-lg transition duration-150 transition-colors-theme">
|
| 172 |
+
<span class="material-symbols-rounded">monitor_heart</span>
|
| 173 |
+
<span class="ml-3">Statut de l'API</span>
|
| 174 |
+
</a>
|
| 175 |
+
<a href="/mindus/nexus//" id="logout-button-sidebar" class="flex items-center p-3 text-red-500 hover:text-red-400 hover:bg-sidebar-active-var rounded-lg transition duration-150 transition-colors-theme">
|
| 176 |
+
<span class="material-symbols-rounded">logout</span>
|
| 177 |
+
<span class="ml-3">Déconnexion</span>
|
| 178 |
+
</a>
|
| 179 |
+
</nav>
|
| 180 |
+
</div>
|
| 181 |
+
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
</aside>
|
| 185 |
+
|
| 186 |
+
<div id="main-content" class="main-content p-8 transition-colors-theme">
|
| 187 |
+
|
| 188 |
+
<header class="lg:hidden flex justify-between items-center mb-8">
|
| 189 |
+
<div class="flex items-center">
|
| 190 |
+
<img src="https://i.imgur.com/7Gn3toV.png" alt="Nexus Pro Logo" class="h-8">
|
| 191 |
+
<span class="text-xl font-bold text-color-var ml-2 transition-colors-theme">Nexus Pro</span>
|
| 192 |
+
</div>
|
| 193 |
+
<button id="sidebar-toggle" class="p-2 rounded-lg bg-sidebar-active-var hover:bg-sidebar-active-var/80 transition-colors-theme">
|
| 194 |
+
<span class="material-symbols-rounded text-color-var">menu</span>
|
| 195 |
+
</button>
|
| 196 |
+
</header>
|
| 197 |
+
|
| 198 |
+
<h1 class="text-3xl font-bold mb-8 text-color-var transition-colors-theme">Statut de l'API Nexus</h1>
|
| 199 |
+
|
| 200 |
+
{% with messages = get_flashed_messages(with_categories=true) %}
|
| 201 |
+
{% if messages %}
|
| 202 |
+
{% for category, message in messages %}
|
| 203 |
+
<div class="p-4 mb-4 text-sm rounded-lg border border-transparent
|
| 204 |
+
{{ 'bg-red-900/20 text-red-500 border-red-900' if category == 'error' or category == 'danger' or category == 'warning' else 'bg-green-900/20 text-green-500 border-green-900' }}" role="alert">
|
| 205 |
+
{{ message }}
|
| 206 |
+
</div>
|
| 207 |
+
{% endfor %}
|
| 208 |
+
{% endif %}
|
| 209 |
+
{% endwith %}
|
| 210 |
+
|
| 211 |
+
<div class="bg-card-var p-6 rounded-lg shadow-xl border border-sidebar-var transition-colors-theme mb-8">
|
| 212 |
+
<h2 class="text-xl font-semibold mb-4 flex items-center text-color-var transition-colors-theme">
|
| 213 |
+
<span class="material-symbols-rounded mr-2 text-primary-color-var">cloud_queue</span>
|
| 214 |
+
État Global du Service
|
| 215 |
+
</h2>
|
| 216 |
+
<div id="overall-status-display" class="p-4 rounded-lg text-lg font-bold text-white transition duration-300 shadow-md">
|
| 217 |
+
<p id="overall-status-text">Chargement du statut...</p>
|
| 218 |
+
</div>
|
| 219 |
+
</div>
|
| 220 |
+
|
| 221 |
+
<div class="bg-card-var p-6 rounded-lg shadow-xl border border-sidebar-var transition-colors-theme mb-8">
|
| 222 |
+
<h2 class="text-xl font-semibold mb-6 flex items-center text-color-var transition-colors-theme">
|
| 223 |
+
<span class="material-symbols-rounded mr-2 text-primary-color-var">bar_chart</span>
|
| 224 |
+
Statut des Composants API
|
| 225 |
+
</h2>
|
| 226 |
+
|
| 227 |
+
<div class="space-y-6">
|
| 228 |
+
|
| 229 |
+
<div class="flex flex-col md:flex-row items-start md:items-center justify-between border-b border-sidebar-var pb-4">
|
| 230 |
+
<span class="text-lg font-medium text-color-var w-full md:w-1/3 mb-2 md:mb-0 transition-colors-theme">Service d'Authentification</span>
|
| 231 |
+
<div class="w-full md:w-2/3">
|
| 232 |
+
<div id="auth-status-bar" data-status="{{ api_status.auth }}" class="status-bar" style="width: 100%;" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100">
|
| 233 |
+
{{ api_status.auth_display if api_status and api_status.auth_display else 'Chargement...' }}
|
| 234 |
+
</div>
|
| 235 |
+
</div>
|
| 236 |
+
</div>
|
| 237 |
+
|
| 238 |
+
<div class="flex flex-col md:flex-row items-start md:items-center justify-between border-b border-sidebar-var pb-4">
|
| 239 |
+
<span class="text-lg font-medium text-color-var w-full md:w-1/3 mb-2 md:mb-0 transition-colors-theme">Traitement des Données (Endpoints V1)</span>
|
| 240 |
+
<div class="w-full md:w-2/3">
|
| 241 |
+
<div id="data-status-bar" data-status="{{ api_status.data_v1 }}" class="status-bar" style="width: 100%;" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100">
|
| 242 |
+
{{ api_status.data_v1_display if api_status and api_status.data_v1_display else 'Chargement...' }}
|
| 243 |
+
</div>
|
| 244 |
+
</div>
|
| 245 |
+
</div>
|
| 246 |
+
|
| 247 |
+
<div class="flex flex-col md:flex-row items-start md:items-center justify-between">
|
| 248 |
+
<span class="text-lg font-medium text-color-var w-full md:w-1/3 mb-2 md:mb-0 transition-colors-theme">Base de Données Principale</span>
|
| 249 |
+
<div class="w-full md:w-2/3">
|
| 250 |
+
<div id="db-status-bar" data-status="{{ api_status.database }}" class="status-bar" style="width: 100%;" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100">
|
| 251 |
+
{{ api_status.database_display if api_status and api_status.database_display else 'Chargement...' }}
|
| 252 |
+
</div>
|
| 253 |
+
</div>
|
| 254 |
+
</div>
|
| 255 |
+
|
| 256 |
+
</div>
|
| 257 |
+
|
| 258 |
+
<p class="mt-8 text-sm text-secondary-var">Dernière mise à jour: <span id="last-updated">{{ api_status.last_updated if api_status and api_status.last_updated else 'N/A' }}</span></p>
|
| 259 |
+
|
| 260 |
+
</div>
|
| 261 |
+
|
| 262 |
+
<div class="bg-card-var p-6 rounded-lg shadow-xl border border-sidebar-var transition-colors-theme">
|
| 263 |
+
<h2 class="text-xl font-semibold mb-4 flex items-center text-color-var transition-colors-theme">
|
| 264 |
+
<span class="material-symbols-rounded mr-2 text-primary-color-var">history</span>
|
| 265 |
+
Historique des Incidents
|
| 266 |
+
</h2>
|
| 267 |
+
|
| 268 |
+
{% if incidents %}
|
| 269 |
+
<ul class="space-y-4">
|
| 270 |
+
{% for incident in incidents %}
|
| 271 |
+
<li class="border-l-4 p-4 rounded-r-lg shadow-sm
|
| 272 |
+
{% if incident.status == 'resolved' %} border-green-500 bg-green-900/20 text-green-500
|
| 273 |
+
{% elif incident.status == 'monitoring' %} border-yellow-500 bg-yellow-900/20 text-yellow-500
|
| 274 |
+
{% elif incident.status == 'investigating' %} border-red-500 bg-red-900/20 text-red-500
|
| 275 |
+
{% else %} border-secondary-var bg-input-var text-secondary-var
|
| 276 |
+
{% endif %}">
|
| 277 |
+
<p class="font-bold">{{ incident.title }} -
|
| 278 |
+
<span class="text-sm font-normal uppercase">[{{ incident.status_display }}]</span></p>
|
| 279 |
+
<p class="text-sm mt-1">{{ incident.description }}</p>
|
| 280 |
+
<p class="text-xs mt-2 opacity-75">Date: {{ incident.date }}</p>
|
| 281 |
+
</li>
|
| 282 |
+
{% endfor %}
|
| 283 |
+
</ul>
|
| 284 |
+
{% else %}
|
| 285 |
+
<p class="text-secondary-var italic">Aucun incident récent à signaler. Le service est stable.</p>
|
| 286 |
+
{% endif %}
|
| 287 |
+
|
| 288 |
+
</div>
|
| 289 |
+
|
| 290 |
+
</div>
|
| 291 |
+
|
| 292 |
+
<script>
|
| 293 |
+
|
| 294 |
+
// Fonction utilitaire pour appliquer le thème
|
| 295 |
+
function applyTheme(theme) {
|
| 296 |
+
if (theme === 'dark') {
|
| 297 |
+
document.documentElement.classList.add('dark');
|
| 298 |
+
localStorage.setItem('theme', 'dark');
|
| 299 |
+
} else {
|
| 300 |
+
document.documentElement.classList.remove('dark');
|
| 301 |
+
localStorage.setItem('theme', 'light');
|
| 302 |
+
}
|
| 303 |
+
// Mettre à jour l'icône du switch si nécessaire
|
| 304 |
+
const icon = document.querySelector('#theme-switch .material-symbols-rounded');
|
| 305 |
+
if (icon) {
|
| 306 |
+
// S'assurer que l'icône reflète le mode ACTIF
|
| 307 |
+
icon.textContent = theme === 'dark' ? 'light_mode' : 'dark_mode';
|
| 308 |
+
}
|
| 309 |
+
}
|
| 310 |
+
|
| 311 |
+
// 1. Initialisation du thème au chargement
|
| 312 |
+
// Récupérer le thème sauvé ou utiliser 'dark' comme défaut
|
| 313 |
+
const savedTheme = localStorage.getItem('theme') || 'dark';
|
| 314 |
+
applyTheme(savedTheme);
|
| 315 |
+
|
| 316 |
+
// 2. Logique du switch de thème
|
| 317 |
+
document.getElementById('theme-switch').addEventListener('click', () => {
|
| 318 |
+
// Vérifier si la classe 'dark' est présente sur l'élément racine
|
| 319 |
+
const currentTheme = document.documentElement.classList.contains('dark') ? 'dark' : 'light';
|
| 320 |
+
const newTheme = currentTheme === 'light' ? 'dark' : 'light';
|
| 321 |
+
applyTheme(newTheme);
|
| 322 |
+
});
|
| 323 |
+
|
| 324 |
+
// 3. Logique de bascule de la sidebar pour mobile/tablette
|
| 325 |
+
const sidebarToggle = document.getElementById('sidebar-toggle');
|
| 326 |
+
const sidebar = document.getElementById('sidebar');
|
| 327 |
+
|
| 328 |
+
if (sidebarToggle && sidebar) {
|
| 329 |
+
sidebarToggle.addEventListener('click', () => {
|
| 330 |
+
sidebar.classList.toggle('open');
|
| 331 |
+
});
|
| 332 |
+
}
|
| 333 |
+
|
| 334 |
+
// 4. Fermeture de la sidebar lors du clic sur un lien (pour mobile)
|
| 335 |
+
if (sidebar) {
|
| 336 |
+
const sidebarLinks = sidebar.querySelectorAll('a');
|
| 337 |
+
if (sidebarLinks) {
|
| 338 |
+
sidebarLinks.forEach(link => {
|
| 339 |
+
link.addEventListener('click', () => {
|
| 340 |
+
// Fermer la sidebar uniquement sur les petits écrans
|
| 341 |
+
if (window.innerWidth < 1024) {
|
| 342 |
+
sidebar.classList.remove('open');
|
| 343 |
+
}
|
| 344 |
+
});
|
| 345 |
+
});
|
| 346 |
+
}
|
| 347 |
+
}
|
| 348 |
+
|
| 349 |
+
// 5. Logique de Déconnexion (Conservée)
|
| 350 |
+
const logoutHandler = async (e) => {
|
| 351 |
+
e.preventDefault();
|
| 352 |
+
// La déconnexion est gérée par la route Flask directe
|
| 353 |
+
window.location.href = document.getElementById('logout-button-sidebar').href;
|
| 354 |
+
};
|
| 355 |
+
// On attache l'événement à la déconnexion dans la sidebar.
|
| 356 |
+
const logoutButtonSidebar = document.getElementById('logout-button-sidebar');
|
| 357 |
+
if (logoutButtonSidebar) {
|
| 358 |
+
logoutButtonSidebar.addEventListener('click', logoutHandler);
|
| 359 |
+
}
|
| 360 |
+
|
| 361 |
+
// 6. Logique de Mise à Jour du Statut de l'API (Simulée pour l'exemple)
|
| 362 |
+
function updateStatusBar(elementId, status) {
|
| 363 |
+
const bar = document.getElementById(elementId);
|
| 364 |
+
if (!bar) return;
|
| 365 |
+
|
| 366 |
+
// Réinitialiser les classes de couleur
|
| 367 |
+
bar.classList.remove('status-green', 'status-yellow', 'status-red');
|
| 368 |
+
|
| 369 |
+
let colorClass = 'status-green';
|
| 370 |
+
let statusText = 'Opérationnel';
|
| 371 |
+
|
| 372 |
+
// Le statut peut venir de Jinja (comme 'operational', 'degraded', 'outage')
|
| 373 |
+
switch (status) {
|
| 374 |
+
case 'operational':
|
| 375 |
+
colorClass = 'status-green';
|
| 376 |
+
statusText = 'Opérationnel';
|
| 377 |
+
bar.style.width = '100%';
|
| 378 |
+
break;
|
| 379 |
+
case 'degraded':
|
| 380 |
+
colorClass = 'status-yellow';
|
| 381 |
+
statusText = 'Performance Dégradée';
|
| 382 |
+
bar.style.width = '80%'; // Visuel de barre partielle
|
| 383 |
+
break;
|
| 384 |
+
case 'outage':
|
| 385 |
+
colorClass = 'status-red';
|
| 386 |
+
statusText = 'Panne Majeure';
|
| 387 |
+
bar.style.width = '20%'; // Visuel de barre presque vide
|
| 388 |
+
break;
|
| 389 |
+
default:
|
| 390 |
+
colorClass = 'bg-secondary-var';
|
| 391 |
+
statusText = 'Indisponible / Inconnu';
|
| 392 |
+
bar.style.width = '100%';
|
| 393 |
+
}
|
| 394 |
+
|
| 395 |
+
bar.classList.add(colorClass);
|
| 396 |
+
// S'assurer que le texte est à jour (seulement si non fourni par Jinja)
|
| 397 |
+
if (bar.textContent.trim() === 'Chargement...') {
|
| 398 |
+
bar.textContent = statusText;
|
| 399 |
+
}
|
| 400 |
+
bar.setAttribute('aria-valuenow', bar.style.width.replace('%', ''));
|
| 401 |
+
}
|
| 402 |
+
|
| 403 |
+
function updateOverallStatus(authStatus, dataStatus, dbStatus) {
|
| 404 |
+
const display = document.getElementById('overall-status-display');
|
| 405 |
+
const text = document.getElementById('overall-status-text');
|
| 406 |
+
if (!display || !text) return;
|
| 407 |
+
|
| 408 |
+
display.classList.remove('bg-green-500', 'bg-yellow-500', 'bg-red-500', 'bg-secondary-var');
|
| 409 |
+
|
| 410 |
+
// Logique de statut général
|
| 411 |
+
if (authStatus === 'outage' || dataStatus === 'outage' || dbStatus === 'outage') {
|
| 412 |
+
display.classList.add('bg-red-500');
|
| 413 |
+
text.textContent = 'PANNE MAJEURE - Nous enquêtons sur un problème.';
|
| 414 |
+
} else if (authStatus === 'degraded' || dataStatus === 'degraded' || dbStatus === 'degraded') {
|
| 415 |
+
display.classList.add('bg-yellow-500');
|
| 416 |
+
text.textContent = 'PERFORMANCE DÉGRADÉE - Certains services sont affectés.';
|
| 417 |
+
} else if (authStatus === 'operational' && dataStatus === 'operational' && dbStatus === 'operational') {
|
| 418 |
+
display.classList.add('bg-green-500');
|
| 419 |
+
text.textContent = 'TOUT EST OPÉRATIONNEL - L\'API fonctionne normalement.';
|
| 420 |
+
} else {
|
| 421 |
+
display.classList.add('bg-secondary-var');
|
| 422 |
+
text.textContent = 'Statut Indéterminé.';
|
| 423 |
+
}
|
| 424 |
+
}
|
| 425 |
+
|
| 426 |
+
// Fonction pour lire les statuts depuis les attributs de données (simulant le backend)
|
| 427 |
+
function initializeStatus() {
|
| 428 |
+
// Lecture des données Jinja2 pré-remplies (simulées)
|
| 429 |
+
const authStatus = document.getElementById('auth-status-bar').dataset.status || 'operational';
|
| 430 |
+
const dataStatus = document.getElementById('data-status-bar').dataset.status || 'operational';
|
| 431 |
+
const dbStatus = document.getElementById('db-status-bar').dataset.status || 'operational';
|
| 432 |
+
|
| 433 |
+
// Mise à jour visuelle
|
| 434 |
+
updateStatusBar('auth-status-bar', authStatus);
|
| 435 |
+
updateStatusBar('data-status-bar', dataStatus);
|
| 436 |
+
updateStatusBar('db-status-bar', dbStatus);
|
| 437 |
+
updateOverallStatus(authStatus, dataStatus, dbStatus);
|
| 438 |
+
|
| 439 |
+
// ** Simulation d'une mise à jour en temps réel (Animation) **
|
| 440 |
+
// Dans une application réelle, cette fonction appellerait une API / WebSocket.
|
| 441 |
+
// Pour l'exemple, nous allons animer les barres après le chargement initial.
|
| 442 |
+
|
| 443 |
+
setTimeout(() => {
|
| 444 |
+
// Le backend peut ajuster la largeur pour montrer la "santé" (par exemple, 90% pour opé)
|
| 445 |
+
// Ici, nous utilisons juste les couleurs/texte basés sur le statut simple (operational/degraded/outage)
|
| 446 |
+
document.getElementById('auth-status-bar').style.width = authStatus === 'operational' ? '100%' : (authStatus === 'degraded' ? '80%' : '20%');
|
| 447 |
+
document.getElementById('data-status-bar').style.width = dataStatus === 'operational' ? '100%' : (dataStatus === 'degraded' ? '80%' : '20%');
|
| 448 |
+
document.getElementById('db-status-bar').style.width = dbStatus === 'operational' ? '100%' : (dbStatus === 'degraded' ? '80%' : '20%');
|
| 449 |
+
}, 100); // Petite pause pour l'effet de chargement initial.
|
| 450 |
+
}
|
| 451 |
+
|
| 452 |
+
// 7. Initialisation du statut au chargement de la page
|
| 453 |
+
document.addEventListener('DOMContentLoaded', initializeStatus);
|
| 454 |
+
|
| 455 |
+
</script>
|
| 456 |
+
</body>
|
| 457 |
+
</html>
|
a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/support.html
ADDED
|
@@ -0,0 +1,303 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>Support & Contact - GitForge</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<link rel="stylesheet"
|
| 9 |
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" />
|
| 10 |
+
<style>
|
| 11 |
+
body { font-family: 'Inter', sans-serif; }
|
| 12 |
+
|
| 13 |
+
/* Étape 2 : Définir les Variables de Thème (SOMBRE par défaut) */
|
| 14 |
+
:root {
|
| 15 |
+
/* Couleurs SOMBRE (Noir très foncé pour le fond) */
|
| 16 |
+
--bg-darker: #0A0A0A; /* Très foncé pour la barre ou le footer */
|
| 17 |
+
--bg-default: #121212; /* Fond général */
|
| 18 |
+
--bg-form: #1F1F1F; /* Fond des blocs de contenu */
|
| 19 |
+
--text-color: #E3E3E3;
|
| 20 |
+
--input-bg: #2C2C2C;
|
| 21 |
+
--input-border: #2C2C2C;
|
| 22 |
+
--header-border: #333333; /* Bordure plus discrète */
|
| 23 |
+
--blue-500: #3B82F6; /* Couleur primaire pour rester visible */
|
| 24 |
+
--blue-600: #2563EB;
|
| 25 |
+
--blue-700: #1D4ED8;
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
/* Mode CLAIR */
|
| 29 |
+
html.light {
|
| 30 |
+
/* Couleurs CLAIR */
|
| 31 |
+
--bg-darker: #FFFFFF;
|
| 32 |
+
--bg-default: #F7F7F7;
|
| 33 |
+
--bg-form: #FFFFFF;
|
| 34 |
+
--text-color: #333333;
|
| 35 |
+
--input-bg: #EAEAEA;
|
| 36 |
+
--input-border: #D1D5DB;
|
| 37 |
+
--header-border: #E5E7EB;
|
| 38 |
+
--blue-500: #1D4ED8;
|
| 39 |
+
--blue-600: #2563EB;
|
| 40 |
+
--blue-700: #1D4ED8;
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
/* Appliquer les variables et transitions */
|
| 44 |
+
body {
|
| 45 |
+
background-color: var(--bg-default) !important;
|
| 46 |
+
color: var(--text-color) !important;
|
| 47 |
+
transition: background-color 0.3s, color 0.3s;
|
| 48 |
+
}
|
| 49 |
+
|
| 50 |
+
/* Réinitialiser les classes Tailwind par défaut pour utiliser les variables */
|
| 51 |
+
.bg-gray-900 { background-color: var(--bg-default) !important; }
|
| 52 |
+
.bg-gray-800 { background-color: var(--bg-form) !important; }
|
| 53 |
+
.bg-gray-700 { background-color: var(--input-bg) !important; }
|
| 54 |
+
.text-white { color: var(--text-color) !important; }
|
| 55 |
+
.text-gray-300 { color: var(--text-color) !important; }
|
| 56 |
+
.text-gray-400 { color: #A0A0A0 !important; } /* Garder gris pour les textes secondaires */
|
| 57 |
+
.text-gray-500 { color: #888888 !important; }
|
| 58 |
+
|
| 59 |
+
.border-gray-700 { border-color: var(--header-border) !important; }
|
| 60 |
+
.border-blue-500\/50 { border-color: color-mix(in srgb, var(--blue-500) 50%, transparent) !important; }
|
| 61 |
+
.text-blue-500 { color: var(--blue-500) !important; }
|
| 62 |
+
|
| 63 |
+
.bg-blue-600 { background-color: var(--blue-600) !important; }
|
| 64 |
+
.hover\:bg-blue-700:hover { background-color: var(--blue-700) !important; }
|
| 65 |
+
.hover\:text-blue-500:hover { color: var(--blue-500) !important; }
|
| 66 |
+
.border-blue-600 { border-color: var(--blue-600) !important; }
|
| 67 |
+
|
| 68 |
+
/* Style du bouton de thème */
|
| 69 |
+
#theme-toggle {
|
| 70 |
+
background: none;
|
| 71 |
+
border: none;
|
| 72 |
+
cursor: pointer;
|
| 73 |
+
color: var(--text-color);
|
| 74 |
+
font-size: 24px;
|
| 75 |
+
transition: color 0.2s;
|
| 76 |
+
margin-right: 16px; /* Espace à droite du bouton */
|
| 77 |
+
}
|
| 78 |
+
</style>
|
| 79 |
+
</head>
|
| 80 |
+
<body class="bg-gray-900 text-white min-h-screen">
|
| 81 |
+
|
| 82 |
+
<div class="container mx-auto p-4 sm:p-6 lg:p-8">
|
| 83 |
+
|
| 84 |
+
<header class="flex flex-col sm:flex-row justify-between items-center py-4 border-b border-blue-500/50 mb-8
|
| 85 |
+
bg-[var(--bg-default)] sticky top-0 z-50 transition duration-300 shadow-xl shadow-black/20">
|
| 86 |
+
<h1 class="text-4xl font-extrabold text-blue-500 tracking-wider mb-4 sm:mb-0">
|
| 87 |
+
Support & Contact
|
| 88 |
+
</h1>
|
| 89 |
+
<nav class="flex items-center space-x-4">
|
| 90 |
+
<button id="theme-toggle" aria-label="Basculer le thème">
|
| 91 |
+
<span class="material-symbols-rounded">light_mode</span>
|
| 92 |
+
</button>
|
| 93 |
+
<a href="/" class="px-4 py-2 text-white hover:text-blue-300 transition duration-200 font-medium">
|
| 94 |
+
Accueil
|
| 95 |
+
</a>
|
| 96 |
+
{% if is_logged_in %}
|
| 97 |
+
<a href="/mindus/nexus/dashboard" class="px-4 py-2 bg-blue-600 hover:bg-blue-700 rounded-lg transition duration-200 font-medium">
|
| 98 |
+
Dashboard
|
| 99 |
+
</a>
|
| 100 |
+
{% else %}
|
| 101 |
+
<a href="/mindus/nexus/connexion" class="px-4 py-2 border-2 border-blue-600 text-blue-600 rounded-lg hover:bg-blue-600 hover:text-white font-medium transition duration-200">
|
| 102 |
+
Connexion
|
| 103 |
+
</a>
|
| 104 |
+
{% endif %}
|
| 105 |
+
</nav>
|
| 106 |
+
</header>
|
| 107 |
+
|
| 108 |
+
<main class="space-y-10 max-w-2xl mx-auto">
|
| 109 |
+
|
| 110 |
+
<div class="p-8 bg-gray-800 rounded-xl shadow-2xl border-l-4 border-blue-500">
|
| 111 |
+
|
| 112 |
+
{% if is_logged_in %}
|
| 113 |
+
<h2 class="text-3xl font-bold text-blue-500 mb-4">Envoyer une Requête (Connecté)</h2>
|
| 114 |
+
<p class="text-gray-300 mb-6">
|
| 115 |
+
Votre ID utilisateur ({{ user_id }}) sera automatiquement attaché à votre ticket, garantissant un traitement plus rapide.
|
| 116 |
+
</p>
|
| 117 |
+
{% else %}
|
| 118 |
+
<h2 class="text-3xl font-bold text-blue-500 mb-4">Contactez notre Équipe</h2>
|
| 119 |
+
<p class="text-gray-300 mb-6">
|
| 120 |
+
Veuillez vous connecter pour un support prioritaire.
|
| 121 |
+
</p>
|
| 122 |
+
{% endif %}
|
| 123 |
+
|
| 124 |
+
<form id="supportForm" class="space-y-6">
|
| 125 |
+
<div>
|
| 126 |
+
<label for="subject" class="block text-sm font-medium text-gray-300 mb-1">Sujet de la Requête</label>
|
| 127 |
+
<input type="text" id="subject" name="subject" required
|
| 128 |
+
class="w-full px-4 py-3 bg-gray-700 text-white border-2 border-gray-700 rounded-lg focus:border-blue-500 transition duration-200"
|
| 129 |
+
placeholder="Problème de connexion, Question de facturation...">
|
| 130 |
+
</div>
|
| 131 |
+
|
| 132 |
+
<div>
|
| 133 |
+
<label for="email" class="block text-sm font-medium text-gray-300 mb-1">Votre E-mail</label>
|
| 134 |
+
<input type="email" id="email" name="email" required
|
| 135 |
+
class="w-full px-4 py-3 bg-gray-700 text-white border-2 border-gray-700 rounded-lg focus:border-blue-500 transition duration-200"
|
| 136 |
+
placeholder="votre.email@exemple.com"
|
| 137 |
+
value="{% if is_logged_in %}L'email serait ici (via API){% endif %}">
|
| 138 |
+
</div>
|
| 139 |
+
|
| 140 |
+
<div>
|
| 141 |
+
<label for="message" class="block text-sm font-medium text-gray-300 mb-1">Message</label>
|
| 142 |
+
<textarea id="message" name="message" rows="5" required
|
| 143 |
+
class="w-full px-4 py-3 bg-gray-700 text-white border-2 border-gray-700 rounded-lg focus:border-blue-500 transition duration-200"
|
| 144 |
+
placeholder="Décrivez votre problème ou votre question en détail."></textarea>
|
| 145 |
+
</div>
|
| 146 |
+
|
| 147 |
+
<div id="messageBoxSupport" class="text-sm p-3 rounded-lg hidden" role="alert"></div>
|
| 148 |
+
|
| 149 |
+
<button type="submit"
|
| 150 |
+
class="w-full py-3 bg-blue-600 hover:bg-blue-700 text-white font-semibold rounded-lg transition duration-300 shadow-lg">
|
| 151 |
+
Envoyer le Message
|
| 152 |
+
</button>
|
| 153 |
+
</form>
|
| 154 |
+
</div>
|
| 155 |
+
</main>
|
| 156 |
+
|
| 157 |
+
<footer class="mt-12 pt-6 border-t border-gray-700 text-center text-gray-500 text-sm">
|
| 158 |
+
© 2025 GitForge. Tous droits réservés.
|
| 159 |
+
</footer>
|
| 160 |
+
</div>
|
| 161 |
+
|
| 162 |
+
<script>
|
| 163 |
+
// Logique de bascule du mode sombre/clair (Étape 3)
|
| 164 |
+
const themeToggle = document.getElementById('theme-toggle');
|
| 165 |
+
const htmlElement = document.documentElement;
|
| 166 |
+
const iconElement = themeToggle.querySelector('.material-symbols-rounded');
|
| 167 |
+
|
| 168 |
+
// Charger le thème depuis le localStorage
|
| 169 |
+
const savedTheme = localStorage.getItem('theme');
|
| 170 |
+
if (savedTheme === 'light') {
|
| 171 |
+
htmlElement.classList.add('light');
|
| 172 |
+
iconElement.textContent = 'dark_mode'; // Afficher l'icône "Sombre" en mode clair
|
| 173 |
+
} else {
|
| 174 |
+
// Default is 'dark' (or first visit)
|
| 175 |
+
iconElement.textContent = 'light_mode'; // Afficher l'icône "Clair" en mode sombre
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
themeToggle.addEventListener('click', () => {
|
| 179 |
+
if (htmlElement.classList.contains('light')) {
|
| 180 |
+
// Passage du mode Clair au mode Sombre
|
| 181 |
+
htmlElement.classList.remove('light');
|
| 182 |
+
localStorage.setItem('theme', 'dark');
|
| 183 |
+
iconElement.textContent = 'light_mode';
|
| 184 |
+
} else {
|
| 185 |
+
// Passage du mode Sombre au mode Clair
|
| 186 |
+
htmlElement.classList.add('light');
|
| 187 |
+
localStorage.setItem('theme', 'light');
|
| 188 |
+
iconElement.textContent = 'dark_mode';
|
| 189 |
+
}
|
| 190 |
+
});
|
| 191 |
+
|
| 192 |
+
// Logique du formulaire de support (existante)
|
| 193 |
+
document.getElementById('supportForm').addEventListener('submit', async (event) => {
|
| 194 |
+
event.preventDefault();
|
| 195 |
+
|
| 196 |
+
const subject = document.getElementById('subject').value;
|
| 197 |
+
const email = document.getElementById('email').value;
|
| 198 |
+
const message = document.getElementById('message').value;
|
| 199 |
+
const messageBox = document.getElementById('messageBoxSupport');
|
| 200 |
+
messageBox.classList.add('hidden');
|
| 201 |
+
messageBox.textContent = '';
|
| 202 |
+
|
| 203 |
+
const formData = {
|
| 204 |
+
subject,
|
| 205 |
+
email,
|
| 206 |
+
message,
|
| 207 |
+
{% if is_logged_in %}
|
| 208 |
+
user_id: "{{ user_id }}" // Ajout automatique de l'ID si connecté
|
| 209 |
+
{% else %}
|
| 210 |
+
user_id: null
|
| 211 |
+
{% endif %}
|
| 212 |
+
};
|
| 213 |
+
|
| 214 |
+
try {
|
| 215 |
+
// Utiliser la route proxy Flask pour contacter l'API Nexus
|
| 216 |
+
const response = await fetch('/api/support', {
|
| 217 |
+
method: 'POST',
|
| 218 |
+
headers: { 'Content-Type': 'application/json' },
|
| 219 |
+
body: JSON.stringify(formData)
|
| 220 |
+
});
|
| 221 |
+
|
| 222 |
+
// Simuler la réponse, car la route /api/support est un placeholder dans app.py
|
| 223 |
+
const data = await response.json();
|
| 224 |
+
|
| 225 |
+
// Si la route /api/support n'est qu'un proxy sans réponse complète, on simule:
|
| 226 |
+
if (response.ok) {
|
| 227 |
+
messageBox.classList.remove('bg-red-900/50', 'text-red-300');
|
| 228 |
+
messageBox.classList.add('bg-green-900/50', 'text-green-300');
|
| 229 |
+
messageBox.textContent = "Votre requête a été envoyée avec succès ! (Simulé pour l'API Nexus)";
|
| 230 |
+
document.getElementById('supportForm').reset();
|
| 231 |
+
} else {
|
| 232 |
+
messageBox.classList.remove('bg-green-900/50', 'text-green-300');
|
| 233 |
+
messageBox.classList.add('bg-red-900/50', 'text-red-300');
|
| 234 |
+
messageBox.textContent = data.message || "Erreur lors de l'envoi. Veuillez réessayer.";
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
messageBox.classList.remove('hidden');
|
| 238 |
+
|
| 239 |
+
} catch (error) {
|
| 240 |
+
console.error('Erreur réseau ou du serveur Flask:', error);
|
| 241 |
+
messageBox.classList.remove('bg-green-900/50', 'text-green-300');
|
| 242 |
+
messageBox.classList.add('bg-red-900/50', 'text-red-300');
|
| 243 |
+
messageBox.textContent = "Impossible de contacter le serveur. Veuillez réessayer.";
|
| 244 |
+
messageBox.classList.remove('hidden');
|
| 245 |
+
}
|
| 246 |
+
});
|
| 247 |
+
</script>
|
| 248 |
+
|
| 249 |
+
<footer class="mt-16 border-t border-gray-700 bg-gray-900">
|
| 250 |
+
<div class="container mx-auto p-4 sm:p-6 lg:p-8 max-w-7xl">
|
| 251 |
+
<div class="grid grid-cols-2 md:grid-cols-4 lg:grid-cols-5 gap-8 text-sm">
|
| 252 |
+
|
| 253 |
+
<div class="col-span-2 lg:col-span-1">
|
| 254 |
+
<a href="/" class="text-3xl font-extrabold text-blue-500 tracking-wider">NEXUS</a>
|
| 255 |
+
<p class="mt-3 text-gray-400">
|
| 256 |
+
L'infrastructure API qui propulse votre avenir technologique.
|
| 257 |
+
</p>
|
| 258 |
+
<div class="mt-4 flex space-x-4">
|
| 259 |
+
<a href="#" class="text-gray-400 hover:text-blue-500 transition duration-200">
|
| 260 |
+
<svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24"><path d="M12 2.163c3.204 0 3.584.014 4.85.07c3.275.146 4.47 1.583 4.61 4.85.056 1.266.07 1.646.07 4.85s-.014 3.584-.07 4.85c-.14 3.267-1.335 4.704-4.61 4.85-1.266.056-1.646.07-4.85.07s-3.584-.014-4.85-.07c-3.275-.146-4.47-1.583-4.61-4.85-.056-1.266-.07-1.646-.07-4.85s.014-3.584.07-4.85c.14-3.267 1.335-4.704 4.61-4.85 1.266-.056 1.646-.07 4.85-.07zM12 0c-3.784 0-4.285.016-5.773.083-4.722.211-6.755 2.24-6.965 6.965C.016 7.715 0 8.216 0 12s.016 4.285.083 5.773c.21 4.721 2.239 6.755 6.965 6.965 1.488.067 1.99.083 5.773.083s4.285-.016 5.773-.083c4.721-.21 6.755-2.239 6.965-6.965.067-1.488.083-1.99.083-5.773s-.016-4.285-.083-5.773c-.21-4.722-2.239-6.755-6.965-6.965C16.285.016 15.784 0 12 0zm0 14.5c-1.381 0-2.5-1.119-2.5-2.5s1.119-2.5 2.5-2.5 2.5 1.119 2.5 2.5-1.119 2.5-2.5 2.5z"/></svg>
|
| 261 |
+
</a>
|
| 262 |
+
</div>
|
| 263 |
+
</div>
|
| 264 |
+
|
| 265 |
+
<div>
|
| 266 |
+
<h3 class="text-lg font-semibold text-white mb-4">Plateforme</h3>
|
| 267 |
+
<ul class="space-y-3 text-gray-400">
|
| 268 |
+
<li><a href="/mindus/nexus/tarifs" class="hover:text-blue-500 transition duration-200">Tarifs</a></li>
|
| 269 |
+
<li><a href="/mindus/nexus/documentation" class="hover:text-blue-500 transition duration-200">Documentation</a></li>
|
| 270 |
+
<li><a href="/mindus/nexus/connexion" class="hover:text-blue-500 transition duration-200">Connexion</a></li>
|
| 271 |
+
<li><a href="/mindus/nexus/support" class="hover:text-blue-500 transition duration-200">Support</a></li>
|
| 272 |
+
</ul>
|
| 273 |
+
</div>
|
| 274 |
+
|
| 275 |
+
<div>
|
| 276 |
+
<h3 class="text-lg font-semibold text-white mb-4">Légal</h3>
|
| 277 |
+
<ul class="space-y-3 text-gray-400">
|
| 278 |
+
<li><a href="/mindus/nexus/politique-confidentialite" class="hover:text-blue-500 transition duration-200">Politique de Confidentialité</a></li>
|
| 279 |
+
<li><a href="/mindus/nexus/mentions-legales" class="hover:text-blue-500 transition duration-200">Mentions Légales</a></li>
|
| 280 |
+
<li><a href="/mindus/nexus/conditions-utilisation" class="hover:text-blue-500 transition duration-200">Conditions d'Utilisation</a></li>
|
| 281 |
+
<li><a href="/mindus/nexus/a-propos" class="hover:text-blue-500 transition duration-200">À Propos</a></li>
|
| 282 |
+
</ul>
|
| 283 |
+
</div>
|
| 284 |
+
|
| 285 |
+
<div class="col-span-2 md:col-span-1">
|
| 286 |
+
<h3 class="text-lg font-semibold text-white mb-4">Ressources</h3>
|
| 287 |
+
<ul class="space-y-3 text-gray-400">
|
| 288 |
+
<li><a href="mailto:support@nexus.com" class="hover:text-blue-500 transition duration-200">Contact Email</a></li>
|
| 289 |
+
<li><a href="/mindus/nexus/dashboard" class="hover:text-blue-500 transition duration-200">Espace Client</a></li>
|
| 290 |
+
<li><a href="/mindus/nexus/api-logs" class="hover:text-blue-500 transition duration-200">Statut API</a></li>
|
| 291 |
+
</ul>
|
| 292 |
+
</div>
|
| 293 |
+
|
| 294 |
+
</div>
|
| 295 |
+
|
| 296 |
+
<div class="mt-10 pt-6 border-t border-gray-800 text-center text-gray-500 text-sm">
|
| 297 |
+
© 2025 GitForge. Tous droits réservés. Construit pour l'ère des microservices.
|
| 298 |
+
</div>
|
| 299 |
+
</div>
|
| 300 |
+
</footer>
|
| 301 |
+
|
| 302 |
+
</body>
|
| 303 |
+
</html>
|
a6ea61c8-951a-413a-ba9d-7365d83fbd4d/ernestmind/templates/tarifs.html
ADDED
|
@@ -0,0 +1,826 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title data-translate="page-title">GitForge Pricing</title>
|
| 7 |
+
<link rel="icon" type="image/png" href="https://i.postimg.cc/t4NCGNzD/gitforge-png.png">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
|
| 10 |
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" />
|
| 11 |
+
<style>
|
| 12 |
+
/* Custom Tailwind Configuration */
|
| 13 |
+
.bg-header { background-color: #f7f9fc; }
|
| 14 |
+
.header-border { border-color: #e5e7eb; }
|
| 15 |
+
.text-blue-600-var { color: #2563eb; }
|
| 16 |
+
.border-blue-600-var { border-color: #2563eb; }
|
| 17 |
+
.bg-blue-600-var { background-color: #2563eb; }
|
| 18 |
+
.hover\:bg-blue-700-var:hover { background-color: #1d4ed8; }
|
| 19 |
+
.text-gray-900-var { color: #1f2937; }
|
| 20 |
+
|
| 21 |
+
/* Ensure the language dropdown is visible */
|
| 22 |
+
.lang-dropdown-container {
|
| 23 |
+
position: relative;
|
| 24 |
+
}
|
| 25 |
+
.lang-menu-dropdown {
|
| 26 |
+
position: absolute;
|
| 27 |
+
left: 0;
|
| 28 |
+
bottom: 100%;
|
| 29 |
+
margin-bottom: 0.5rem;
|
| 30 |
+
width: 10rem;
|
| 31 |
+
background-color: #ffffff;
|
| 32 |
+
border-radius: 0.375rem;
|
| 33 |
+
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
|
| 34 |
+
z-index: 50;
|
| 35 |
+
border: 1px solid #e5e7eb;
|
| 36 |
+
display: none;
|
| 37 |
+
}
|
| 38 |
+
.lang-menu-dropdown a {
|
| 39 |
+
color: #1f2937;
|
| 40 |
+
}
|
| 41 |
+
.lang-menu-dropdown a:hover {
|
| 42 |
+
background-color: #f3f4f6;
|
| 43 |
+
color: #2563eb;
|
| 44 |
+
}
|
| 45 |
+
/* Custom style adjustments for the footer text to look good on a light background */
|
| 46 |
+
footer .text-white { color: #1f2937 !important; }
|
| 47 |
+
footer .text-gray-400 { color: #6b7280 !important; }
|
| 48 |
+
footer .border-t.border-[#4b5563] { border-color: #e5e7eb !important; }
|
| 49 |
+
footer .text-gray-500 { color: #6b7280 !important; }
|
| 50 |
+
|
| 51 |
+
/* Enterprise Card Specific Styling */
|
| 52 |
+
.enterprise-card-header {
|
| 53 |
+
border-top-left-radius: 0.5rem;
|
| 54 |
+
border-top-right-radius: 0.5rem;
|
| 55 |
+
height: 8px;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
/* Accordion-like behavior for features */
|
| 59 |
+
.feature-list-item {
|
| 60 |
+
cursor: pointer;
|
| 61 |
+
transition: all 0.2s ease-in-out;
|
| 62 |
+
}
|
| 63 |
+
.feature-details {
|
| 64 |
+
max-height: 0;
|
| 65 |
+
overflow: hidden;
|
| 66 |
+
opacity: 0;
|
| 67 |
+
transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, margin-top 0.4s ease-in-out;
|
| 68 |
+
}
|
| 69 |
+
.feature-details.open {
|
| 70 |
+
max-height: 100px; /* Adjust as needed for content, or use JS to calculate */
|
| 71 |
+
opacity: 1;
|
| 72 |
+
margin-top: 0.5rem;
|
| 73 |
+
}
|
| 74 |
+
.feature-list-item i.fa-check {
|
| 75 |
+
transition: transform 0.2s ease-in-out;
|
| 76 |
+
}
|
| 77 |
+
.feature-list-item.open i.fa-check {
|
| 78 |
+
transform: rotate(45deg); /* Simple visual change on open */
|
| 79 |
+
}
|
| 80 |
+
.text-feature-title {
|
| 81 |
+
font-weight: 600; /* Semi-bold for the main feature text */
|
| 82 |
+
}
|
| 83 |
+
.text-feature-details {
|
| 84 |
+
font-weight: 400; /* Normal weight for the details */
|
| 85 |
+
}
|
| 86 |
+
</style>
|
| 87 |
+
</head>
|
| 88 |
+
<body class="bg-white text-gray-900 font-sans">
|
| 89 |
+
|
| 90 |
+
<header class="border-b border-gray-200">
|
| 91 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 py-4 flex justify-between items-center">
|
| 92 |
+
<div class="flex items-center space-x-8">
|
| 93 |
+
<a href="#" class="text-2xl font-bold text-gray-900 flex items-center">
|
| 94 |
+
<img src="https://i.postimg.cc/t4NCGNzD/gitforge-png.png" alt="GitForge Logo" class="h-6 w-6 mr-2">
|
| 95 |
+
<span data-translate="site-name">GitForge</span>
|
| 96 |
+
</a>
|
| 97 |
+
<nav class="hidden md:flex space-x-6 text-sm font-medium text-gray-700">
|
| 98 |
+
<a href="/mindus/nexus/conditions_utilisation" class="hover:text-blue-600-var" data-translate="nav-platform">Platform</a>
|
| 99 |
+
<a href="/mindus/nexus/contact" class="hover:text-blue-600-var" data-translate="nav-solutions">Company</a>
|
| 100 |
+
<a href="#" class="hover:text-blue-600-var" data-translate="nav-resources">Resources</a>
|
| 101 |
+
<a href="/mindus/nexus/contact" class="hover:text-blue-600-var" data-translate="nav-opensource">Contact us</a>
|
| 102 |
+
<a href="/mindus/nexus/a_propos" class="hover:text-blue-600-var" data-translate="nav-enterprise">Enterprise</a>
|
| 103 |
+
<a href="/mindus/nexus/tarifs" class="hover:text-blue-600-var text-blue-600-var" data-translate="nav-pricing">Pricing</a>
|
| 104 |
+
</nav>
|
| 105 |
+
</div>
|
| 106 |
+
<div class="flex items-center space-x-4">
|
| 107 |
+
<button class="text-gray-700 hover:text-blue-600-var" aria-label="Search">
|
| 108 |
+
<i class="fas fa-search"></i>
|
| 109 |
+
</button>
|
| 110 |
+
<a href="/mindus/nexus/connexion" class="hidden sm:inline text-sm font-medium text-gray-700 hover:text-blue-600-var" data-translate="btn-sign-in">Sign in</a>
|
| 111 |
+
<a href="/mindus/nexus/inscription" class="px-4 py-2 text-sm font-medium border border-gray-300 rounded-md text-gray-700 hover:border-blue-600-var hover:text-blue-600-var transition" data-translate="btn-sign-up">Sign up</a>
|
| 112 |
+
</div>
|
| 113 |
+
</div>
|
| 114 |
+
</header>
|
| 115 |
+
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
<main class="py-16 md:py-24">
|
| 119 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 text-center">
|
| 120 |
+
<h1 class="text-5xl md:text-6xl font-extrabold text-gray-900-var mb-6 max-w-4xl mx-auto" data-translate="title-slogan">The unified DevOps platform, powered by AI.</h1>
|
| 121 |
+
<p class="text-xl text-gray-600 mb-12 max-w-3xl mx-auto" data-translate="subtitle-trial">Accelerate your software lifecycle with GitForge. We've packed GitForge Enterprise, Copilot, and Advanced Security into a single risk-free trial.</p>
|
| 122 |
+
<a href="#" class="inline-block bg-gray-800 hover:bg-gray-900 text-white font-medium py-3 px-8 rounded-md transition duration-300 text-lg" data-translate="btn-start-trial">Start free for 30 days</a>
|
| 123 |
+
</div>
|
| 124 |
+
|
| 125 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8 mt-16 md:mt-20">
|
| 126 |
+
<div class="flex flex-col lg:flex-row justify-center space-y-8 lg:space-y-0 lg:space-x-8">
|
| 127 |
+
|
| 128 |
+
<div class="w-full lg:w-1/3 bg-white border border-gray-200 rounded-lg shadow-md flex flex-col transition duration-300 hover:shadow-xl">
|
| 129 |
+
<div class="p-8 flex-grow">
|
| 130 |
+
<h2 class="text-xl font-bold text-gray-900-var mb-4" data-translate="plan-free-title">Free</h2>
|
| 131 |
+
<p class="text-sm text-gray-600 mb-6" data-translate="plan-free-subtitle">The basics for individuals and organizations</p>
|
| 132 |
+
<p class="text-4xl font-bold text-gray-900-var mb-2">$0 <span class="text-lg font-normal text-gray-500" data-translate="per-user-month">per user/month</span></p>
|
| 133 |
+
<button class="w-full py-3 mt-4 text-sm font-semibold text-blue-600-var border border-blue-600-var rounded-md hover:bg-blue-50 transition duration-200" data-translate="btn-join-free">Join for free</button>
|
| 134 |
+
|
| 135 |
+
<ul class="space-y-4 mt-8 text-gray-700">
|
| 136 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-free-1">
|
| 137 |
+
<div class="flex items-start w-full">
|
| 138 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 139 |
+
<span class="text-feature-title" data-translate="feature-free-1">Unlimited public/private repositories</span>
|
| 140 |
+
</div>
|
| 141 |
+
<div class="feature-details w-full pl-6">
|
| 142 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-free-1-details">No hidden costs, create as many as you need.</p>
|
| 143 |
+
</div>
|
| 144 |
+
</li>
|
| 145 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-free-2">
|
| 146 |
+
<div class="flex items-start w-full">
|
| 147 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 148 |
+
<span class="text-feature-title" data-translate="feature-free-2">Dependabot security and version updates</span>
|
| 149 |
+
</div>
|
| 150 |
+
<div class="feature-details w-full pl-6">
|
| 151 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-free-2-details">Automated dependency scanning and patching.</p>
|
| 152 |
+
</div>
|
| 153 |
+
</li>
|
| 154 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-free-3">
|
| 155 |
+
<div class="flex items-start w-full">
|
| 156 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 157 |
+
<span class="text-feature-title" data-translate="feature-free-3">2,000 CI/CD minutes/month</span>
|
| 158 |
+
</div>
|
| 159 |
+
<div class="feature-details w-full pl-6">
|
| 160 |
+
<span class="text-xs text-gray-500 block text-feature-details" data-translate="feature-free-3-sub">Free for public repositories</span>
|
| 161 |
+
</div>
|
| 162 |
+
</li>
|
| 163 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-free-4">
|
| 164 |
+
<div class="flex items-start w-full">
|
| 165 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 166 |
+
<span class="text-feature-title" data-translate="feature-free-4">1 GB of Packages storage</span>
|
| 167 |
+
</div>
|
| 168 |
+
<div class="feature-details w-full pl-6">
|
| 169 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-free-4-details">Store your Docker, npm, Maven, and more.</p>
|
| 170 |
+
</div>
|
| 171 |
+
</li>
|
| 172 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-free-5">
|
| 173 |
+
<div class="flex items-start w-full">
|
| 174 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 175 |
+
<span class="text-feature-title" data-translate="feature-free-5">Issues & Projects</span>
|
| 176 |
+
</div>
|
| 177 |
+
<div class="feature-details w-full pl-6">
|
| 178 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-free-5-details">Track work, manage tasks, and coordinate with your team.</p>
|
| 179 |
+
</div>
|
| 180 |
+
</li>
|
| 181 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-free-6">
|
| 182 |
+
<div class="flex items-start w-full">
|
| 183 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 184 |
+
<span class="text-feature-title" data-translate="feature-free-6">Community support</span>
|
| 185 |
+
</div>
|
| 186 |
+
<div class="feature-details w-full pl-6">
|
| 187 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-free-6-details">Access to forums and documentation.</p>
|
| 188 |
+
</div>
|
| 189 |
+
</li>
|
| 190 |
+
</ul>
|
| 191 |
+
</div>
|
| 192 |
+
<div class="p-8 border-t border-gray-200 bg-gray-50 rounded-b-lg">
|
| 193 |
+
<h3 class="font-bold text-gray-900-var mb-4" data-translate="addons-title">FEATURED ADD-ONS</h3>
|
| 194 |
+
<ul class="space-y-2 text-gray-700">
|
| 195 |
+
<li class="flex items-center">
|
| 196 |
+
<i class="fas fa-code text-gray-500 mr-2 text-sm"></i>
|
| 197 |
+
<span data-translate="addon-copilot">GitForge Copilot Access</span>
|
| 198 |
+
</li>
|
| 199 |
+
<li class="flex items-center">
|
| 200 |
+
<i class="fas fa-terminal text-gray-500 mr-2 text-sm"></i>
|
| 201 |
+
<span data-translate="addon-codespaces">GitForge Codespaces Access</span>
|
| 202 |
+
</li>
|
| 203 |
+
</ul>
|
| 204 |
+
</div>
|
| 205 |
+
</div>
|
| 206 |
+
|
| 207 |
+
<div class="w-full lg:w-1/3 bg-white border border-gray-200 rounded-lg shadow-md flex flex-col transition duration-300 hover:shadow-xl">
|
| 208 |
+
<div class="p-8 flex-grow">
|
| 209 |
+
<h2 class="text-xl font-bold text-gray-900-var mb-4" data-translate="plan-team-title">Team</h2>
|
| 210 |
+
<p class="text-sm text-gray-600 mb-6" data-translate="plan-team-subtitle">Advanced collaboration for individuals and organizations</p>
|
| 211 |
+
<p class="text-4xl font-bold text-gray-900-var mb-2">$4 <span class="text-lg font-normal text-gray-500" data-translate="per-user-month">per user/month</span></p>
|
| 212 |
+
<button class="w-full py-3 mt-4 text-sm font-semibold text-white bg-gray-800 rounded-md hover:bg-gray-900 transition duration-200" data-translate="btn-continue-team">Continue with Team</button>
|
| 213 |
+
|
| 214 |
+
<ul class="space-y-4 mt-8 text-gray-700">
|
| 215 |
+
<li class="flex items-start">
|
| 216 |
+
<i class="fas fa-arrow-left text-gray-500 mt-1 mr-2 text-sm"></i>
|
| 217 |
+
<span data-translate="feature-team-1">Everything included in Free, plus...</span>
|
| 218 |
+
</li>
|
| 219 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-team-2">
|
| 220 |
+
<div class="flex items-start w-full">
|
| 221 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 222 |
+
<span class="text-feature-title" data-translate="feature-team-2">Access to GitForge Codespaces</span>
|
| 223 |
+
</div>
|
| 224 |
+
<div class="feature-details w-full pl-6">
|
| 225 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-team-2-details">Cloud-based development environments on demand.</p>
|
| 226 |
+
</div>
|
| 227 |
+
</li>
|
| 228 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-team-3">
|
| 229 |
+
<div class="flex items-start w-full">
|
| 230 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 231 |
+
<span class="text-feature-title" data-translate="feature-team-3">Repository rules</span>
|
| 232 |
+
</div>
|
| 233 |
+
<div class="feature-details w-full pl-6">
|
| 234 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-team-3-details">Enforce standards across your code bases.</p>
|
| 235 |
+
</div>
|
| 236 |
+
</li>
|
| 237 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-team-4">
|
| 238 |
+
<div class="flex items-start w-full">
|
| 239 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 240 |
+
<span class="text-feature-title" data-translate="feature-team-4">Multiple reviewers in pull requests</span>
|
| 241 |
+
</div>
|
| 242 |
+
<div class="feature-details w-full pl-6">
|
| 243 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-team-4-details">Require sign-offs from more than one team member.</p>
|
| 244 |
+
</div>
|
| 245 |
+
</li>
|
| 246 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-team-5">
|
| 247 |
+
<div class="flex items-start w-full">
|
| 248 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 249 |
+
<span class="text-feature-title" data-translate="feature-team-5">Draft pull requests</span>
|
| 250 |
+
</div>
|
| 251 |
+
<div class="feature-details w-full pl-6">
|
| 252 |
+
<span class="text-xs text-gray-500 block text-feature-details" data-translate="feature-team-5-sub">Easily discuss and collaborate on pull requests before submitting to formal review.</span>
|
| 253 |
+
</div>
|
| 254 |
+
</li>
|
| 255 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-team-6">
|
| 256 |
+
<div class="flex items-start w-full">
|
| 257 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 258 |
+
<span class="text-feature-title" data-translate="feature-team-6">Code owners</span>
|
| 259 |
+
</div>
|
| 260 |
+
<div class="feature-details w-full pl-6">
|
| 261 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-team-6-details">Define individuals or teams responsible for parts of the code.</p>
|
| 262 |
+
</div>
|
| 263 |
+
</li>
|
| 264 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-team-7">
|
| 265 |
+
<div class="flex items-start w-full">
|
| 266 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 267 |
+
<span class="text-feature-title" data-translate="feature-team-7">Required reviewers</span>
|
| 268 |
+
</div>
|
| 269 |
+
<div class="feature-details w-full pl-6">
|
| 270 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-team-7-details">Ensure mandatory review by specified personnel.</p>
|
| 271 |
+
</div>
|
| 272 |
+
</li>
|
| 273 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-team-8">
|
| 274 |
+
<div class="flex items-start w-full">
|
| 275 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 276 |
+
<span class="text-feature-title" data-translate="feature-team-8">Pages and Wikis</span>
|
| 277 |
+
</div>
|
| 278 |
+
<div class="feature-details w-full pl-6">
|
| 279 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-team-8-details">Host simple sites and documentation directly from your repository.</p>
|
| 280 |
+
</div>
|
| 281 |
+
</li>
|
| 282 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-team-9">
|
| 283 |
+
<div class="flex items-start w-full">
|
| 284 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 285 |
+
<span class="text-feature-title" data-translate="feature-team-9">Environment deployment branches and secrets</span>
|
| 286 |
+
</div>
|
| 287 |
+
<div class="feature-details w-full pl-6">
|
| 288 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-team-9-details">Control deployments and secure sensitive data for different stages.</p>
|
| 289 |
+
</div>
|
| 290 |
+
</li>
|
| 291 |
+
</ul>
|
| 292 |
+
</div>
|
| 293 |
+
</div>
|
| 294 |
+
|
| 295 |
+
<div class="w-full lg:w-1/3 bg-white border border-blue-600-var rounded-lg shadow-2xl flex flex-col relative transform scale-100 lg:scale-105 transition duration-300">
|
| 296 |
+
<div class="absolute top-0 right-0 -mt-4 mr-4 bg-blue-600-var text-white text-xs font-bold py-1 px-3 rounded-full uppercase tracking-wider" data-translate="tag-recommended">Recommended</div>
|
| 297 |
+
<div class="enterprise-card-header bg-blue-600-var rounded-t-lg"></div>
|
| 298 |
+
<div class="p-8 flex-grow">
|
| 299 |
+
<h2 class="text-xl font-bold text-gray-900-var mb-4" data-translate="plan-enterprise-title">Enterprise</h2>
|
| 300 |
+
<p class="text-sm text-gray-600 mb-6" data-translate="plan-enterprise-subtitle">Security, compliance, and flexible deployment</p>
|
| 301 |
+
<p class="text-4xl font-bold text-gray-900-var mb-2">$21 <span class="text-lg font-normal text-gray-500" data-translate="per-user-month">per user/month</span></p>
|
| 302 |
+
<p class="text-xs text-gray-500 mb-4" data-translate="starting-at">Starting at</p>
|
| 303 |
+
|
| 304 |
+
<button class="w-full py-3 mt-1 text-sm font-semibold text-blue-600-var border border-blue-600-var rounded-md hover:bg-blue-50 transition duration-200" data-translate="btn-contact-sales">Contact Sales</button>
|
| 305 |
+
<button class="w-full py-3 mt-2 text-sm font-semibold text-white bg-gray-800 rounded-md hover:bg-gray-900 transition duration-200" data-translate="btn-start-free-trial">Start a free trial</button>
|
| 306 |
+
|
| 307 |
+
<ul class="space-y-4 mt-8 text-gray-700">
|
| 308 |
+
<li class="flex items-start">
|
| 309 |
+
<i class="fas fa-arrow-left text-gray-500 mt-1 mr-2 text-sm"></i>
|
| 310 |
+
<span data-translate="feature-enterprise-1">Everything included in Team, plus...</span>
|
| 311 |
+
</li>
|
| 312 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-enterprise-2">
|
| 313 |
+
<div class="flex items-start w-full">
|
| 314 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 315 |
+
<span class="text-feature-title" data-translate="feature-enterprise-2">Data residency</span>
|
| 316 |
+
</div>
|
| 317 |
+
<div class="feature-details w-full pl-6">
|
| 318 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-enterprise-2-details">Specify where your data is stored for compliance.</p>
|
| 319 |
+
</div>
|
| 320 |
+
</li>
|
| 321 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-enterprise-3">
|
| 322 |
+
<div class="flex items-start w-full">
|
| 323 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 324 |
+
<span class="text-feature-title" data-translate="feature-enterprise-3">Enterprise Managed Users</span>
|
| 325 |
+
</div>
|
| 326 |
+
<div class="feature-details w-full pl-6">
|
| 327 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-enterprise-3-details">Simplified identity management for large organizations.</p>
|
| 328 |
+
</div>
|
| 329 |
+
</li>
|
| 330 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-enterprise-4">
|
| 331 |
+
<div class="flex items-start w-full">
|
| 332 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 333 |
+
<span class="text-feature-title" data-translate="feature-enterprise-4">User provisioning through SCIM</span>
|
| 334 |
+
</div>
|
| 335 |
+
<div class="feature-details w-full pl-6">
|
| 336 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-enterprise-4-details">Automate user lifecycle management.</p>
|
| 337 |
+
</div>
|
| 338 |
+
</li>
|
| 339 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-enterprise-5">
|
| 340 |
+
<div class="flex items-start w-full">
|
| 341 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 342 |
+
<span class="text-feature-title" data-translate="feature-enterprise-5">Enterprise Account to centrally manage multiple organizations</span>
|
| 343 |
+
</div>
|
| 344 |
+
<div class="feature-details w-full pl-6">
|
| 345 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-enterprise-5-details">Consolidated billing and policy enforcement.</p>
|
| 346 |
+
</div>
|
| 347 |
+
</li>
|
| 348 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-enterprise-6">
|
| 349 |
+
<div class="flex items-start w-full">
|
| 350 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 351 |
+
<span class="text-feature-title" data-translate="feature-enterprise-6">Environment protection rules</span>
|
| 352 |
+
</div>
|
| 353 |
+
<div class="feature-details w-full pl-6">
|
| 354 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-enterprise-6-details">Fine-grained control over environment deployments.</p>
|
| 355 |
+
</div>
|
| 356 |
+
</li>
|
| 357 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-enterprise-7">
|
| 358 |
+
<div class="flex items-start w-full">
|
| 359 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 360 |
+
<span class="text-feature-title" data-translate="feature-enterprise-7">Repository rules</span>
|
| 361 |
+
</div>
|
| 362 |
+
<div class="feature-details w-full pl-6">
|
| 363 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-enterprise-7-details">Advanced rule sets for branch protection.</p>
|
| 364 |
+
</div>
|
| 365 |
+
</li>
|
| 366 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-enterprise-8">
|
| 367 |
+
<div class="flex items-start w-full">
|
| 368 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 369 |
+
<span class="text-feature-title" data-translate="feature-enterprise-8">Audit Log API</span>
|
| 370 |
+
</div>
|
| 371 |
+
<div class="feature-details w-full pl-6">
|
| 372 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-enterprise-8-details">Programmatic access to audit data for compliance.</p>
|
| 373 |
+
</div>
|
| 374 |
+
</li>
|
| 375 |
+
<li class="feature-list-item flex flex-col items-start" data-feature-key="feature-enterprise-9">
|
| 376 |
+
<div class="flex items-start w-full">
|
| 377 |
+
<i class="fas fa-check text-blue-600-var mt-1 mr-2 text-sm"></i>
|
| 378 |
+
<span class="text-feature-title" data-translate="feature-enterprise-9">SOC1, SOC2, type 2 reports annually</span>
|
| 379 |
+
</div>
|
| 380 |
+
<div class="feature-details w-full pl-6">
|
| 381 |
+
<p class="text-xs text-gray-500 text-feature-details" data-translate="feature-enterprise-9-details">Required compliance reports for your industry.</p>
|
| 382 |
+
</div>
|
| 383 |
+
</li>
|
| 384 |
+
</ul>
|
| 385 |
+
</div>
|
| 386 |
+
</div>
|
| 387 |
+
</div>
|
| 388 |
+
</div>
|
| 389 |
+
|
| 390 |
+
<section class="bg-gray-900 py-16 sm:py-24 mt-20">
|
| 391 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 392 |
+
|
| 393 |
+
<div class="flex flex-wrap justify-center items-center space-x-4 sm:space-x-8 lg:space-x-12 mb-16 opacity-75">
|
| 394 |
+
<h3 class="text-sm font-semibold text-gray-500 uppercase tracking-wider hidden md:block" data-translate="accepted-payments">Accepted Payments:</h3>
|
| 395 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/b/b5/PayPal.svg" alt="PayPal Logo" class="h-6 sm:h-8 filter brightness-0 invert" aria-label="PayPal">
|
| 396 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/e/e9/Stripe_Logo%2C_revised_2014.svg" alt="Stripe Logo" class="h-6 sm:h-8 filter brightness-0 invert" aria-label="Stripe">
|
| 397 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/5/5e/Visa_Inc._logo.svg" alt="Visa Logo" class="h-3 sm:h-5 filter brightness-0 invert" aria-label="Visa">
|
| 398 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/2/2a/Mastercard-logo.svg" alt="Mastercard Logo" class="h-4 sm:h-6 filter brightness-0 invert" aria-label="Mastercard">
|
| 399 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/f/fa/American_Express_logo_%282018%29.svg" alt="American Express Logo" class="h-6 sm:h-8 filter brightness-0 invert" aria-label="American Express">
|
| 400 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/b/b8/Google_Pay_logo.svg" alt="Google Pay Logo" class="h-6 sm:h-8 filter brightness-0 invert" aria-label="Google Pay">
|
| 401 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/3/30/Apple_Pay_logo.svg" alt="Apple Pay Logo" class="h-6 sm:h-8 filter brightness-0 invert" aria-label="Apple Pay">
|
| 402 |
+
<img src="https://upload.wikimedia.org/wikipedia/commons/1/15/Wirecard_AG_logo.svg" alt="Wirecard Logo" class="h-6 sm:h-8 filter brightness-0 invert" aria-label="Wirecard">
|
| 403 |
+
</div>
|
| 404 |
+
|
| 405 |
+
<div class="flex flex-col lg:flex-row bg-gray-800 rounded-lg overflow-hidden shadow-2xl">
|
| 406 |
+
<div class="lg:w-1/2 min-h-[300px] lg:min-h-0 bg-cover bg-center" style="background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?auto=format&fit=crop&w=1280&q=80');">
|
| 407 |
+
<div class="h-full w-full bg-black bg-opacity-30"></div>
|
| 408 |
+
</div>
|
| 409 |
+
|
| 410 |
+
<div class="lg:w-1/2 p-8 md:p-12 flex flex-col justify-center">
|
| 411 |
+
<blockquote class="text-white text-2xl md:text-3xl font-light leading-relaxed mb-8">
|
| 412 |
+
<p data-translate="quote-text">
|
| 413 |
+
People know what a pull request is because it’s how they contribute to open source projects. We have many developers who are well-versed with **GitForge**, either for personal development or previous roles. With **GitForge Enterprise**, no one has to relearn the wheel.
|
| 414 |
+
</p>
|
| 415 |
+
</blockquote>
|
| 416 |
+
<p class="text-lg font-medium text-gray-400">
|
| 417 |
+
— <span data-translate="quote-author">Laurent Ploix</span>, <span data-translate="quote-title">Product Manager, Spotify</span>
|
| 418 |
+
</p>
|
| 419 |
+
</div>
|
| 420 |
+
</div>
|
| 421 |
+
</div>
|
| 422 |
+
</section>
|
| 423 |
+
|
| 424 |
+
<section class="py-16 sm:py-24">
|
| 425 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 426 |
+
|
| 427 |
+
<h2 class="text-4xl font-extrabold text-gray-900-var mb-12 text-center" data-translate="features-title">
|
| 428 |
+
GitForge Features and Add-ons
|
| 429 |
+
</h2>
|
| 430 |
+
|
| 431 |
+
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
| 432 |
+
|
| 433 |
+
<a href="#" class="block p-6 bg-white border border-gray-200 rounded-lg shadow-sm hover:shadow-lg transition duration-300 group">
|
| 434 |
+
<div class="flex items-center mb-4">
|
| 435 |
+
<div class="p-3 rounded-full bg-purple-100 group-hover:bg-purple-200 transition">
|
| 436 |
+
<i class="fas fa-brain text-purple-600 text-xl"></i>
|
| 437 |
+
</div>
|
| 438 |
+
<h3 class="text-xl font-semibold text-gray-900-var ml-4" data-translate="card-copilot-title">GitForge Copilot</h3>
|
| 439 |
+
</div>
|
| 440 |
+
<p class="text-gray-600 mb-4" data-translate="card-copilot-desc">
|
| 441 |
+
Get started for free with up to 2,000 completions and 50 chat requests per month.
|
| 442 |
+
</p>
|
| 443 |
+
<span class="text-blue-600-var font-medium text-sm group-hover:underline" data-translate="compare-plans">Compare plans →</span>
|
| 444 |
+
</a>
|
| 445 |
+
|
| 446 |
+
<a href="#" class="block p-6 bg-white border border-gray-200 rounded-lg shadow-sm hover:shadow-lg transition duration-300 group">
|
| 447 |
+
<div class="flex items-center mb-4">
|
| 448 |
+
<div class="p-3 rounded-full bg-green-100 group-hover:bg-green-200 transition relative">
|
| 449 |
+
<i class="fas fa-microchip text-green-600 text-xl"></i>
|
| 450 |
+
<span class="absolute top-0 right-0 -mt-1 -mr-1 text-xs font-bold bg-green-500 text-white rounded-full px-2" data-translate="tag-new">New</span>
|
| 451 |
+
</div>
|
| 452 |
+
<h3 class="text-xl font-semibold text-gray-900-var ml-4" data-translate="card-models-title">GitForge Models</h3>
|
| 453 |
+
</div>
|
| 454 |
+
<p class="text-gray-600 mb-4" data-translate="card-models-desc">
|
| 455 |
+
Bring industry-leading AI into your workflow, securely, scalably, and with full developer control.
|
| 456 |
+
</p>
|
| 457 |
+
<span class="text-blue-600-var font-medium text-sm group-hover:underline" data-translate="learn-more">Learn more →</span>
|
| 458 |
+
</a>
|
| 459 |
+
|
| 460 |
+
<a href="#" class="block p-6 bg-white border border-gray-200 rounded-lg shadow-sm hover:shadow-lg transition duration-300 group">
|
| 461 |
+
<div class="flex items-center mb-4">
|
| 462 |
+
<div class="p-3 rounded-full bg-blue-100 group-hover:bg-blue-200 transition">
|
| 463 |
+
<i class="fas fa-shield-alt text-blue-600-var text-xl"></i>
|
| 464 |
+
</div>
|
| 465 |
+
<h3 class="text-xl font-semibold text-gray-900-var ml-4" data-translate="card-security-title">GitForge Advanced Security</h3>
|
| 466 |
+
</div>
|
| 467 |
+
<p class="text-gray-600 mb-4" data-translate="card-security-desc">
|
| 468 |
+
Gain peace of mind with our security, privacy, and responsible AI policies.
|
| 469 |
+
</p>
|
| 470 |
+
<span class="text-blue-600-var font-medium text-sm group-hover:underline" data-translate="learn-more">Learn more →</span>
|
| 471 |
+
</a>
|
| 472 |
+
|
| 473 |
+
<a href="#" class="block p-6 bg-white border border-gray-200 rounded-lg shadow-sm hover:shadow-lg transition duration-300 group">
|
| 474 |
+
<div class="flex items-center mb-4">
|
| 475 |
+
<div class="p-3 rounded-full bg-pink-100 group-hover:bg-pink-200 transition">
|
| 476 |
+
<i class="fas fa-laptop-code text-pink-600 text-xl"></i>
|
| 477 |
+
</div>
|
| 478 |
+
<h3 class="text-xl font-semibold text-gray-900-var ml-4" data-translate="card-codespaces-title">GitForge Codespaces</h3>
|
| 479 |
+
</div>
|
| 480 |
+
<p class="text-gray-600 mb-4" data-translate="card-codespaces-desc">
|
| 481 |
+
Starting at $0.18 per hour of compute and $0.07 per GB of storage.
|
| 482 |
+
</p>
|
| 483 |
+
<span class="text-blue-600-var font-medium text-sm group-hover:underline" data-translate="learn-more">Learn more →</span>
|
| 484 |
+
</a>
|
| 485 |
+
|
| 486 |
+
<a href="#" class="block p-6 bg-white border border-gray-200 rounded-lg shadow-sm hover:shadow-lg transition duration-300 group">
|
| 487 |
+
<div class="flex items-center mb-4">
|
| 488 |
+
<div class="p-3 rounded-full bg-orange-100 group-hover:bg-orange-200 transition">
|
| 489 |
+
<i class="fas fa-headset text-orange-600 text-xl"></i>
|
| 490 |
+
</div>
|
| 491 |
+
<h3 class="text-xl font-semibold text-gray-900-var ml-4" data-translate="card-support-title">Premium support</h3>
|
| 492 |
+
</div>
|
| 493 |
+
<p class="text-gray-600 mb-4" data-translate="card-support-desc">
|
| 494 |
+
Get expert help for Enterprise Cloud and Enterprise—any hour your team needs it.
|
| 495 |
+
</p>
|
| 496 |
+
<span class="text-blue-600-var font-medium text-sm group-hover:underline" data-translate="learn-more">Learn more →</span>
|
| 497 |
+
</a>
|
| 498 |
+
|
| 499 |
+
<a href="#" class="block p-6 bg-white border border-gray-200 rounded-lg shadow-sm hover:shadow-lg transition duration-300 group">
|
| 500 |
+
<div class="flex items-center mb-4">
|
| 501 |
+
<div class="p-3 rounded-full bg-yellow-100 group-hover:bg-yellow-200 transition">
|
| 502 |
+
<i class="fas fa-archive text-yellow-600 text-xl"></i>
|
| 503 |
+
</div>
|
| 504 |
+
<h3 class="text-xl font-semibold text-gray-900-var ml-4" data-translate="card-lfs-title">Git Large File Storage</h3>
|
| 505 |
+
</div>
|
| 506 |
+
<p class="text-gray-600 mb-4" data-translate="card-lfs-desc">
|
| 507 |
+
$5 per month for 50 GB bandwidth and 50 GB of storage.
|
| 508 |
+
</p>
|
| 509 |
+
<span class="text-blue-600-var font-medium text-sm group-hover:underline" data-translate="learn-more">Learn more →</span>
|
| 510 |
+
</a>
|
| 511 |
+
|
| 512 |
+
</div>
|
| 513 |
+
</div>
|
| 514 |
+
</section>
|
| 515 |
+
|
| 516 |
+
</main>
|
| 517 |
+
|
| 518 |
+
<footer class="mt-20 py-10 bg-header border-t header-border">
|
| 519 |
+
<div class="container mx-auto max-w-7xl px-4 sm:px-6 lg:px-8">
|
| 520 |
+
<div class="grid grid-cols-4 gap-8 text-sm">
|
| 521 |
+
<div class="col-span-4 md:col-span-1">
|
| 522 |
+
<h3 data-translate="site-name" class="text-2xl font-bold text-blue-600-var mb-4">GitForge</h3>
|
| 523 |
+
<p data-translate="footer-slogan" class="text-gray-600">The unified DevOps platform that accelerates your software lifecycle.</p>
|
| 524 |
+
<div class="flex space-x-4 mt-6">
|
| 525 |
+
<a href="#" aria-label="Twitter" class="text-gray-600 hover:text-blue-600-var transition duration-200">
|
| 526 |
+
<i class="fab fa-twitter text-xl"></i>
|
| 527 |
+
</a>
|
| 528 |
+
<a href="#" aria-label="LinkedIn" class="text-gray-600 hover:text-blue-600-var transition duration-200">
|
| 529 |
+
<i class="fab fa-linkedin-in text-xl"></i>
|
| 530 |
+
</a>
|
| 531 |
+
<a href="#" aria-label="Facebook" class="text-gray-600 hover:text-blue-600-var transition duration-200">
|
| 532 |
+
<i class="fab fa-facebook-f text-xl"></i>
|
| 533 |
+
</a>
|
| 534 |
+
<a href="#" aria-label="GitHub" class="text-gray-600 hover:text-blue-600-var transition duration-200">
|
| 535 |
+
<i class="fab fa-github text-xl"></i>
|
| 536 |
+
</a>
|
| 537 |
+
<a href="#" aria-label="YouTube" class="text-gray-600 hover:text-blue-600-var transition duration-200">
|
| 538 |
+
<i class="fab fa-youtube text-xl"></i>
|
| 539 |
+
</a>
|
| 540 |
+
</div>
|
| 541 |
+
</div>
|
| 542 |
+
<div class="col-span-2 md:col-span-1">
|
| 543 |
+
<h4 data-translate="footer-product" class="font-bold text-gray-900-var mb-3">Product</h4>
|
| 544 |
+
<ul class="space-y-2 text-gray-600">
|
| 545 |
+
<li><a data-translate="footer-doc" href="/mindus/nexus/documentation" class="hover:text-blue-600-var transition duration-200">Documentation</a></li>
|
| 546 |
+
<li><a data-translate="footer-pricing" href="/mindus/nexus/tarifs" class="hover:text-blue-600-var transition duration-200">Pricing</a></li>
|
| 547 |
+
<li><a data-translate="footer-integrations" href="/mindus/nexus/documentation" class="hover:text-blue-600-var transition duration-200">Integrations</a></li>
|
| 548 |
+
<li><a data-translate="footer-security" href="/mindus/nexus/politique_confidentialite" class="hover:text-blue-600-var transition duration-200">Security</a></li>
|
| 549 |
+
</ul>
|
| 550 |
+
</div>
|
| 551 |
+
<div class="col-span-2 md:col-span-1">
|
| 552 |
+
<h4 data-translate="footer-company" class="font-bold text-gray-900-var mb-3">Company</h4>
|
| 553 |
+
<ul class="space-y-2 text-gray-600">
|
| 554 |
+
<li><a data-translate="footer-about" href="/mindus/nexus/a_propos" class="hover:text-blue-600-var transition duration-200">About</a></li>
|
| 555 |
+
<li><a data-translate="footer-careers" href="#" class="hover:text-blue-600-var transition duration-200">Careers</a></li>
|
| 556 |
+
<li><a data-translate="footer-support" href="/mindus/nexus/contact" class="hover:text-blue-600-var transition duration-200">Support</a></li>
|
| 557 |
+
<li><a data-translate="footer-faq" href="#" class="hover:text-blue-600-var transition duration-200">FAQ</a></li>
|
| 558 |
+
</ul>
|
| 559 |
+
</div>
|
| 560 |
+
<div class="col-span-4 md:col-span-1 lang-dropdown-container">
|
| 561 |
+
<h4 data-translate="footer-resources" class="font-bold text-gray-900-var mb-3">Resources</h4>
|
| 562 |
+
<ul class="space-y-2 text-gray-600">
|
| 563 |
+
<li><a data-translate="footer-contact-email" href="/mindus/nexus/contact" class="hover:text-blue-600-var transition duration-200">Contact Email</a></li>
|
| 564 |
+
<li><a data-translate="footer-status" href="#" class="hover:text-blue-600-var transition duration-200">Service Status</a></li>
|
| 565 |
+
<li><a data-translate="footer-blog" href="#" class="hover:text-blue-600-var transition duration-200">Tech Blog</a></li>
|
| 566 |
+
|
| 567 |
+
<li class="relative mt-4 pt-4 border-t border-gray-200">
|
| 568 |
+
<button id="lang-menu-button" class="flex items-center text-gray-900-var hover:text-blue-600-var transition duration-200 text-sm">
|
| 569 |
+
<span id="current-flag">🇺🇸</span>
|
| 570 |
+
<span id="current-lang-name" class="ml-2 font-medium" data-lang-code="en">English</span>
|
| 571 |
+
<span class="material-symbols-rounded text-gray-600 ml-2 text-xl">expand_more</span>
|
| 572 |
+
</button>
|
| 573 |
+
<div id="lang-menu-dropdown" class="lang-menu-dropdown">
|
| 574 |
+
<a href="#" data-lang="fr" class="lang-option flex items-center px-4 py-2 text-sm">🇫🇷 Français</a>
|
| 575 |
+
<a href="#" data-lang="en" class="lang-option flex items-center px-4 py-2 text-sm">🇺🇸 English</a>
|
| 576 |
+
<a href="#" data-lang="es" class="lang-option flex items-center px-4 py-2 text-sm">🇪🇸 Español</a>
|
| 577 |
+
</div>
|
| 578 |
+
</li>
|
| 579 |
+
</ul>
|
| 580 |
+
</div>
|
| 581 |
+
</div>
|
| 582 |
+
<div class="mt-10 pt-6 border-t border-gray-200">
|
| 583 |
+
<p data-translate="footer-copyright" class="text-center text-sm text-gray-600"> © 2025 GitForge. All rights reserved. Powered by the <a href="/" class="hover:text-blue-600-var hover:underline">GitForge Platform</a>.</p>
|
| 584 |
+
<div class="text-center mt-2 space-x-4 text-xs">
|
| 585 |
+
<a data-translate="footer-cgu" href="/mindus/nexus/conditions_utilisation" class="text-gray-600 hover:text-blue-600-var">Terms of Service</a>
|
| 586 |
+
<a data-translate="footer-legal" href="/mindus/nexus/mentions_legales" class="text-gray-600 hover:text-blue-600-var">Legal Notice</a>
|
| 587 |
+
<a data-translate="footer-privacy" href="/mindus/nexus/politique_confidentialite" class="text-gray-600 hover:text-blue-600-var">Privacy Policy</a>
|
| 588 |
+
</div>
|
| 589 |
+
</div>
|
| 590 |
+
</div>
|
| 591 |
+
</footer>
|
| 592 |
+
|
| 593 |
+
<script>
|
| 594 |
+
const translations = {
|
| 595 |
+
"page-title": { "fr": "Tarifs GitForge", "en": "GitForge Pricing", "es": "Precios de GitForge" },
|
| 596 |
+
|
| 597 |
+
// Navigation
|
| 598 |
+
"site-name": { "fr": "GitForge", "en": "GitForge", "es": "GitForge" },
|
| 599 |
+
"nav-platform": { "fr": "Plateforme", "en": "Platform", "es": "Plataforma" },
|
| 600 |
+
"nav-solutions": { "fr": "Solutions", "en": "Solutions", "es": "Soluciones" },
|
| 601 |
+
"nav-resources": { "fr": "Ressources", "en": "Resources", "es": "Recursos" },
|
| 602 |
+
"nav-opensource": { "fr": "Open Source", "en": "Open Source", "es": "Código Abierto" },
|
| 603 |
+
"nav-enterprise": { "fr": "Entreprise", "en": "Enterprise", "es": "Empresa" },
|
| 604 |
+
"nav-pricing": { "fr": "Tarifs", "en": "Pricing", "es": "Precios" },
|
| 605 |
+
"btn-sign-in": { "fr": "Connexion", "en": "Sign in", "es": "Iniciar Sesión" },
|
| 606 |
+
"btn-sign-up": { "fr": "Inscription", "en": "Sign up", "es": "Registrarse" },
|
| 607 |
+
|
| 608 |
+
// Hero Section
|
| 609 |
+
"title-slogan": { "fr": "La plateforme DevOps unifiée, optimisée par l'IA.", "en": "The unified DevOps platform, powered by AI.", "es": "La plataforma DevOps unificada, impulsada por IA." },
|
| 610 |
+
"subtitle-trial": { "fr": "Accélérez votre cycle de vie logiciel avec GitForge. Nous avons regroupé GitForge Enterprise, Copilot et la Sécurité Avancée dans un seul essai sans risque.", "en": "Accelerate your software lifecycle with GitForge. We've packed GitForge Enterprise, Copilot, and Advanced Security into a single risk-free trial.", "es": "Acelere su ciclo de vida de software con GitForge. Hemos incluido GitForge Enterprise, Copilot y Seguridad Avanzada en una sola prueba sin riesgos." },
|
| 611 |
+
"btn-start-trial": { "fr": "Démarrer l'essai gratuit de 30 jours", "en": "Start free for 30 days", "es": "Comenzar prueba gratuita de 30 días" },
|
| 612 |
+
|
| 613 |
+
// Pricing Cards
|
| 614 |
+
"per-user-month": { "fr": "par utilisateur/mois", "en": "per user/month", "es": "por usuario/mes" },
|
| 615 |
+
"tag-recommended": { "fr": "Recommandé", "en": "Recommended", "es": "Recomendado" },
|
| 616 |
+
"starting-at": { "fr": "À partir de", "en": "Starting at", "es": "A partir de" },
|
| 617 |
+
|
| 618 |
+
// Free Plan
|
| 619 |
+
"plan-free-title": { "fr": "Gratuit", "en": "Free", "es": "Gratis" },
|
| 620 |
+
"plan-free-subtitle": { "fr": "Les bases pour les individus et les organisations", "en": "The basics for individuals and organizations", "es": "Lo básico para individuos y organizaciones" },
|
| 621 |
+
"btn-join-free": { "fr": "Rejoindre gratuitement", "en": "Join for free", "es": "Unirse gratis" },
|
| 622 |
+
"feature-free-1": { "fr": "Dépôts publics/privés illimités", "en": "Unlimited public/private repositories", "es": "Repositorios públicos/privados ilimitados" },
|
| 623 |
+
"feature-free-1-details": { "fr": "Pas de coûts cachés, créez-en autant que nécessaire.", "en": "No hidden costs, create as many as you need.", "es": "Sin costes ocultos, cree tantos como necesite." },
|
| 624 |
+
"feature-free-2": { "fr": "Mises à jour de sécurité et de version Dependabot", "en": "Dependabot security and version updates", "es": "Actualizaciones de seguridad y versión de Dependabot" },
|
| 625 |
+
"feature-free-2-details": { "fr": "Analyse et correction automatisées des dépendances.", "en": "Automated dependency scanning and patching.", "es": "Escaneo y parcheo de dependencias automatizado." },
|
| 626 |
+
"feature-free-3": { "fr": "2,000 minutes CI/CD/mois", "en": "2,000 CI/CD minutes/month", "es": "2,000 minutos CI/CD/mes" },
|
| 627 |
+
"feature-free-3-sub": { "fr": "Gratuit pour les dépôts publics", "en": "Free for public repositories", "es": "Gratis para repositorios públicos" },
|
| 628 |
+
"feature-free-4": { "fr": "1 Go de stockage de Packages", "en": "1 GB of Packages storage", "es": "1 GB de almacenamiento de Paquetes" },
|
| 629 |
+
"feature-free-4-details": { "fr": "Stockez vos Docker, npm, Maven, et plus.", "en": "Store your Docker, npm, Maven, and more.", "es": "Almacene sus Docker, npm, Maven, y más." },
|
| 630 |
+
"feature-free-5": { "fr": "Issues & Projets", "en": "Issues & Projects", "es": "Incidencias y Proyectos" },
|
| 631 |
+
"feature-free-5-details": { "fr": "Suivez le travail, gérez les tâches et coordonnez-vous avec votre équipe.", "en": "Track work, manage tasks, and coordinate with your team.", "es": "Realice un seguimiento del trabajo, gestione tareas y coordínese con su equipo." },
|
| 632 |
+
"feature-free-6": { "fr": "Support communautaire", "en": "Community support", "es": "Soporte comunitario" },
|
| 633 |
+
"feature-free-6-details": { "fr": "Accès aux forums et à la documentation.", "en": "Access to forums and documentation.", "es": "Acceso a foros y documentación." },
|
| 634 |
+
"addons-title": { "fr": "ADD-ONS EN VEDETTE", "en": "FEATURED ADD-ONS", "es": "ADD-ONS DESTACADOS" },
|
| 635 |
+
"addon-copilot": { "fr": "Accès à GitForge Copilot", "en": "GitForge Copilot Access", "es": "Acceso a GitForge Copilot" },
|
| 636 |
+
"addon-codespaces": { "fr": "Accès aux Codespaces GitForge", "en": "GitForge Codespaces Access", "es": "Acceso a Codespaces GitForge" },
|
| 637 |
+
|
| 638 |
+
// Team Plan
|
| 639 |
+
"plan-team-title": { "fr": "Équipe", "en": "Team", "es": "Equipo" },
|
| 640 |
+
"plan-team-subtitle": { "fr": "Collaboration avancée pour les individus et les organisations", "en": "Advanced collaboration for individuals and organizations", "es": "Colaboración avanzada para individuos y organizaciones" },
|
| 641 |
+
"btn-continue-team": { "fr": "Continuer avec Équipe", "en": "Continue with Team", "es": "Continuar con Equipo" },
|
| 642 |
+
"feature-team-1": { "fr": "Tout ce qui est inclus dans Gratuit, plus...", "en": "Everything included in Free, plus...", "es": "Todo lo incluido en Gratis, más..." },
|
| 643 |
+
"feature-team-2": { "fr": "Accès aux Codespaces GitForge", "en": "Access to GitForge Codespaces", "es": "Acceso a Codespaces GitForge" },
|
| 644 |
+
"feature-team-2-details": { "fr": "Environnements de développement basés sur le cloud à la demande.", "en": "Cloud-based development environments on demand.", "es": "Entornos de desarrollo basados en la nube bajo demanda." },
|
| 645 |
+
"feature-team-3": { "fr": "Règles de dépôt", "en": "Repository rules", "es": "Reglas de repositorio" },
|
| 646 |
+
"feature-team-3-details": { "fr": "Appliquez des normes à l'ensemble de vos bases de code.", "en": "Enforce standards across your code bases.", "es": "Haga cumplir los estándares en todas sus bases de código." },
|
| 647 |
+
"feature-team-4": { "fr": "Plusieurs relecteurs dans les demandes de tirage (pull requests)", "en": "Multiple reviewers in pull requests", "es": "Múltiples revisores en solicitudes de extracción" },
|
| 648 |
+
"feature-team-4-details": { "fr": "Nécessite la validation de plusieurs membres de l'équipe.", "en": "Require sign-offs from more than one team member.", "es": "Requiere la aprobación de más de un miembro del equipo." },
|
| 649 |
+
"feature-team-5": { "fr": "Demandes de tirage brouillons", "en": "Draft pull requests", "es": "Solicitudes de extracción de borrador" },
|
| 650 |
+
"feature-team-5-sub": { "fr": "Discutez et collaborez facilement sur les demandes de tirage avant de les soumettre à une révision formelle.", "en": "Easily discuss and collaborate on pull requests before submitting to formal review.", "es": "Discuta y colabore fácilmente en las solicitudes de extracción antes de enviarlas a una revisión formal." },
|
| 651 |
+
"feature-team-6": { "fr": "Propriétaires de code", "en": "Code owners", "es": "Propietarios de código" },
|
| 652 |
+
"feature-team-6-details": { "fr": "Définissez les individus ou les équipes responsables de certaines parties du code.", "en": "Define individuals or teams responsible for parts of the code.", "es": "Defina individuos o equipos responsables de partes del código." },
|
| 653 |
+
"feature-team-7": { "fr": "Relecteurs requis", "en": "Required reviewers", "es": "Revisores requeridos" },
|
| 654 |
+
"feature-team-7-details": { "fr": "Assurez une révision obligatoire par le personnel spécifié.", "en": "Ensure mandatory review by specified personnel.", "es": "Garantice una revisión obligatoria por parte del personal especificado." },
|
| 655 |
+
"feature-team-8": { "fr": "Pages et Wikis", "en": "Pages and Wikis", "es": "Páginas y Wikis" },
|
| 656 |
+
"feature-team-8-details": { "fr": "Hébergez des sites et de la documentation simples directement depuis votre dépôt.", "en": "Host simple sites and documentation directly from your repository.", "es": "Aloje sitios sencillos y documentación directamente desde su repositorio." },
|
| 657 |
+
"feature-team-9": { "fr": "Branches de déploiement d'environnement et secrets", "en": "Environment deployment branches and secrets", "es": "Ramas de despliegue de entorno y secretos" },
|
| 658 |
+
"feature-team-9-details": { "fr": "Contrôlez les déploiements et sécurisez les données sensibles pour différentes étapes.", "en": "Control deployments and secure sensitive data for different stages.", "es": "Controle los despliegues y asegure los datos sensibles para diferentes etapas." },
|
| 659 |
+
|
| 660 |
+
// Enterprise Plan
|
| 661 |
+
"plan-enterprise-title": { "fr": "Entreprise", "en": "Enterprise", "es": "Empresa" },
|
| 662 |
+
"plan-enterprise-subtitle": { "fr": "Sécurité, conformité et déploiement flexible", "en": "Security, compliance, and flexible deployment", "es": "Seguridad, cumplimiento y despliegue flexible" },
|
| 663 |
+
"btn-contact-sales": { "fr": "Contacter les Ventes", "en": "Contact Sales", "es": "Contactar Ventas" },
|
| 664 |
+
"btn-start-free-trial": { "fr": "Démarrer un essai gratuit", "en": "Start a free trial", "es": "Comenzar una prueba gratuita" },
|
| 665 |
+
"feature-enterprise-1": { "fr": "Tout ce qui est inclus dans Équipe, plus...", "en": "Everything included in Team, plus...", "es": "Todo lo incluido en Equipo, más..." },
|
| 666 |
+
"feature-enterprise-2": { "fr": "Résidence des données", "en": "Data residency", "es": "Residencia de datos" },
|
| 667 |
+
"feature-enterprise-2-details": { "fr": "Spécifiez où vos données sont stockées pour la conformité.", "en": "Specify where your data is stored for compliance.", "es": "Especifique dónde se almacenan sus datos para el cumplimiento." },
|
| 668 |
+
"feature-enterprise-3": { "fr": "Utilisateurs gérés par l'entreprise", "en": "Enterprise Managed Users", "es": "Usuarios gestionados por la empresa" },
|
| 669 |
+
"feature-enterprise-3-details": { "fr": "Gestion d'identité simplifiée pour les grandes organisations.", "en": "Simplified identity management for large organizations.", "es": "Gestión de identidad simplificada para grandes organizaciones." },
|
| 670 |
+
"feature-enterprise-4": { "fr": "Provisionnement d'utilisateurs via SCIM", "en": "User provisioning through SCIM", "es": "Provisionamiento de usuarios a través de SCIM" },
|
| 671 |
+
"feature-enterprise-4-details": { "fr": "Automatisez la gestion du cycle de vie des utilisateurs.", "en": "Automate user lifecycle management.", "es": "Automatice la gestión del ciclo de vida del usuario." },
|
| 672 |
+
"feature-enterprise-5": { "fr": "Compte d'entreprise pour gérer de manière centralisée plusieurs organisations", "en": "Enterprise Account to centrally manage multiple organizations", "es": "Cuenta de empresa para gestionar centralmente múltiples organizaciones" },
|
| 673 |
+
"feature-enterprise-5-details": { "fr": "Facturation consolidée et application des politiques.", "en": "Consolidated billing and policy enforcement.", "es": "Facturación consolidada y aplicación de políticas." },
|
| 674 |
+
"feature-enterprise-6": { "fr": "Règles de protection de l'environnement", "en": "Environment protection rules", "es": "Reglas de protección del entorno" },
|
| 675 |
+
"feature-enterprise-6-details": { "fr": "Contrôle précis des déploiements d'environnement.", "en": "Fine-grained control over environment deployments.", "es": "Control detallado sobre los despliegues de entorno." },
|
| 676 |
+
"feature-enterprise-7": { "fr": "Règles de dépôt", "en": "Repository rules", "es": "Reglas de repositorio" },
|
| 677 |
+
"feature-enterprise-7-details": { "fr": "Ensembles de règles avancées pour la protection des branches.", "en": "Advanced rule sets for branch protection.", "es": "Conjuntos de reglas avanzados para la protección de ramas." },
|
| 678 |
+
"feature-enterprise-8": { "fr": "API de journal d'audit", "en": "Audit Log API", "es": "API de registro de auditoría" },
|
| 679 |
+
"feature-enterprise-8-details": { "fr": "Accès programmatique aux données d'audit pour la conformité.", "en": "Programmatic access to audit data for compliance.", "es": "Acceso programático a los datos de auditoría para el cumplimiento." },
|
| 680 |
+
"feature-enterprise-9": { "fr": "Rapports SOC1, SOC2, type 2 annuels", "en": "SOC1, SOC2, type 2 reports annually", "es": "Informes SOC1, SOC2, tipo 2 anuales" },
|
| 681 |
+
"feature-enterprise-9-details": { "fr": "Rapports de conformité requis pour votre secteur.", "en": "Required compliance reports for your industry.", "es": "Informes de cumplimiento requeridos para su industria." },
|
| 682 |
+
|
| 683 |
+
// Quote Section
|
| 684 |
+
"accepted-payments": { "fr": "Paiements acceptés :", "en": "Accepted Payments:", "es": "Pagos aceptados:" },
|
| 685 |
+
"quote-text": { "fr": "Les gens savent ce qu'est une *pull request* car c'est ainsi qu'ils contribuent aux projets open source. Nous avons de nombreux développeurs qui connaissent bien **GitForge**, que ce soit pour le développement personnel ou des rôles précédents. Avec **GitForge Enterprise**, personne n'a à réapprendre la roue.", "en": "People know what a pull request is because it’s how they contribute to open source projects. We have many developers who are well-versed with **GitForge**, either for personal development or previous roles. With **GitForge Enterprise**, no one has to relearn the wheel.", "es": "La gente sabe qué es una *pull request* porque es la forma en que contribuyen a proyectos de código abierto. Tenemos muchos desarrolladores que conocen bien **GitForge**, ya sea para desarrollo personal o roles anteriores. Con **GitForge Enterprise**, nadie tiene que volver a aprender la rueda." },
|
| 686 |
+
"quote-author": { "fr": "Laurent Ploix", "en": "Laurent Ploix", "es": "Laurent Ploix" },
|
| 687 |
+
"quote-title": { "fr": "Chef de Produit, Spotify", "en": "Product Manager, Spotify", "es": "Gerente de Producto, Spotify" },
|
| 688 |
+
|
| 689 |
+
// Features Section
|
| 690 |
+
"features-title": { "fr": "Fonctionnalités et Add-ons GitForge", "en": "GitForge Features and Add-ons", "es": "Funcionalidades y Add-ons de GitForge" },
|
| 691 |
+
"tag-new": { "fr": "Nouveau", "en": "New", "es": "Nuevo" },
|
| 692 |
+
"compare-plans": { "fr": "Comparer les plans →", "en": "Compare plans →", "es": "Comparar planes →" },
|
| 693 |
+
"learn-more": { "fr": "En savoir plus →", "en": "Learn more →", "es": "Aprender más →" },
|
| 694 |
+
"card-copilot-title": { "fr": "GitForge Copilot", "en": "GitForge Copilot", "es": "GitForge Copilot" },
|
| 695 |
+
"card-copilot-desc": { "fr": "Démarrez gratuitement avec jusqu'à 2 000 complétions et 50 requêtes de chat par mois.", "en": "Get started for free with up to 2,000 completions and 50 chat requests per month.", "es": "Empiece gratis con hasta 2,000 finalizaciones y 50 solicitudes de chat al mes." },
|
| 696 |
+
"card-models-title": { "fr": "GitForge Models", "en": "GitForge Models", "es": "Modelos GitForge" },
|
| 697 |
+
"card-models-desc": { "fr": "Intégrez l'IA de pointe dans votre flux de travail, de manière sécurisée, évolutive et avec un contrôle total du développeur.", "en": "Bring industry-leading AI into your workflow, securely, scalably, and with full developer control.", "es": "Incorpore la IA líder de la industria en su flujo de trabajo, de forma segura, escalable y con control total del desarrollador." },
|
| 698 |
+
"card-security-title": { "fr": "GitForge Advanced Security", "en": "GitForge Advanced Security", "es": "Seguridad Avanzada GitForge" },
|
| 699 |
+
"card-security-desc": { "fr": "Ayez l'esprit tranquille grâce à nos politiques de sécurité, de confidentialité et d'IA responsable.", "en": "Gain peace of mind with our security, privacy, and responsible AI policies.", "es": "Obtenga tranquilidad con nuestras políticas de seguridad, privacidad e IA responsable." },
|
| 700 |
+
"card-codespaces-title": { "fr": "GitForge Codespaces", "en": "GitForge Codespaces", "es": "Codespaces GitForge" },
|
| 701 |
+
"card-codespaces-desc": { "fr": "À partir de 0,18 $ par heure de calcul et 0,07 $ par Go de stockage.", "en": "Starting at $0.18 per hour of compute and $0.07 per GB of storage.", "es": "A partir de 0,18 $ por hora de cómputo y 0,07 $ por GB de almacenamiento." },
|
| 702 |
+
"card-support-title": { "fr": "Support Premium", "en": "Premium support", "es": "Soporte Premium" },
|
| 703 |
+
"card-support-desc": { "fr": "Obtenez l'aide d'experts pour Enterprise Cloud et Enterprise – à toute heure dont votre équipe a besoin.", "en": "Get expert help for Enterprise Cloud and Enterprise—any hour your team needs it.", "es": "Obtenga ayuda experta para Enterprise Cloud y Enterprise—en cualquier momento que su equipo la necesite." },
|
| 704 |
+
"card-lfs-title": { "fr": "Git Large File Storage", "en": "Git Large File Storage", "es": "Git Large File Storage" },
|
| 705 |
+
"card-lfs-desc": { "fr": "5 $ par mois pour 50 Go de bande passante et 50 Go de stockage.", "en": "5$ per month for 50 GB bandwidth and 50 GB of storage.", "es": "5 $ al mes por 50 GB de ancho de banda y 50 GB de almacenamiento." },
|
| 706 |
+
|
| 707 |
+
|
| 708 |
+
// Footer
|
| 709 |
+
"footer-slogan": { "fr": "La plateforme DevOps unifiée qui accélère votre cycle de vie logiciel.", "en": "The unified DevOps platform that accelerates your software lifecycle.", "es": "La plataforma DevOps unificada que acelera su ciclo de vida de software." },
|
| 710 |
+
"footer-product": { "fr": "Produit", "en": "Product", "es": "Producto" },
|
| 711 |
+
"footer-doc": { "fr": "Documentation", "en": "Documentation", "es": "Documentación" },
|
| 712 |
+
"footer-pricing": { "fr": "Tarifs", "en": "Pricing", "es": "Precios" },
|
| 713 |
+
"footer-integrations": { "fr": "Intégrations", "en": "Integrations", "es": "Integraciones" },
|
| 714 |
+
"footer-security": { "fr": "Sécurité", "en": "Security", "es": "Seguridad" },
|
| 715 |
+
"footer-company": { "fr": "Entreprise", "en": "Company", "es": "Compañía" },
|
| 716 |
+
"footer-about": { "fr": "À Propos", "en": "About", "es": "Acerca de" },
|
| 717 |
+
"footer-careers": { "fr": "Carrières", "en": "Careers", "es": "Carreras" },
|
| 718 |
+
"footer-support": { "fr": "Support", "en": "Support", "es": "Soporte" },
|
| 719 |
+
"footer-faq": { "fr": "FAQ", "en": "FAQ", "es": "FAQ" },
|
| 720 |
+
"footer-resources": { "fr": "Ressources", "en": "Resources", "es": "Recursos" },
|
| 721 |
+
"footer-contact-email": { "fr": "Contact Email", "en": "Contact Email", "es": "Correo de Contacto" },
|
| 722 |
+
"footer-status": { "fr": "Statut du Service", "en": "Service Status", "es": "Estado del Servicio" },
|
| 723 |
+
"footer-blog": { "fr": "Blog Tech", "en": "Tech Blog", "es": "Blog de Tecnología" },
|
| 724 |
+
"footer-copyright": { "fr": "© 2025 GitForge. Tous droits réservés. Propulsé par la <a href=\"/\" class=\"hover:text-blue-600-var hover:underline\">Plateforme GitForge</a>.", "en": "© 2025 GitForge. All rights reserved. Powered by the <a href=\"/\" class=\"hover:text-blue-600-var hover:underline\">GitForge Platform</a>.", "es": "© 2025 GitForge. Todos los derechos reservados. Impulsado por la <a href=\"/\" class=\"hover:text-blue-600-var hover:underline\">Plataforma GitForge</a>." },
|
| 725 |
+
"footer-cgu": { "fr": "Conditions d'Utilisation", "en": "Terms of Service", "es": "Términos de Servicio" },
|
| 726 |
+
"footer-legal": { "fr": "Mentions Légales", "en": "Legal Notice", "es": "Aviso Legal" },
|
| 727 |
+
"footer-privacy": { "fr": "Politique de Confidentialité", "en": "Privacy Policy", "es": "Política de Privacidad" }
|
| 728 |
+
};
|
| 729 |
+
|
| 730 |
+
const languageNames = {
|
| 731 |
+
"fr": "Français",
|
| 732 |
+
"en": "English",
|
| 733 |
+
"es": "Español"
|
| 734 |
+
};
|
| 735 |
+
const languageFlags = {
|
| 736 |
+
"fr": "🇫🇷",
|
| 737 |
+
"en": "🇺🇸",
|
| 738 |
+
"es": "🇪🇸"
|
| 739 |
+
};
|
| 740 |
+
|
| 741 |
+
// Default language is English
|
| 742 |
+
let currentLang = 'en';
|
| 743 |
+
|
| 744 |
+
const applyTranslations = (lang) => {
|
| 745 |
+
document.querySelectorAll('[data-translate]').forEach(element => {
|
| 746 |
+
const key = element.getAttribute('data-translate');
|
| 747 |
+
if (translations[key] && translations[key][lang]) {
|
| 748 |
+
// Check if the element contains HTML content (like the footer-copyright or quote-text)
|
| 749 |
+
const text = translations[key][lang];
|
| 750 |
+
if (key === 'footer-copyright' || key === 'quote-text' || text.includes('<a') || text.includes('**')) {
|
| 751 |
+
element.innerHTML = text.replace(/\*\*(.*?)\*\*/g, '<strong>$1</strong>');
|
| 752 |
+
} else {
|
| 753 |
+
element.textContent = text;
|
| 754 |
+
}
|
| 755 |
+
}
|
| 756 |
+
});
|
| 757 |
+
|
| 758 |
+
// Update language selector display
|
| 759 |
+
document.getElementById('current-flag').textContent = languageFlags[lang];
|
| 760 |
+
document.getElementById('current-lang-name').textContent = languageNames[lang];
|
| 761 |
+
document.getElementById('current-lang-name').setAttribute('data-lang-code', lang);
|
| 762 |
+
document.documentElement.lang = lang; // Update HTML lang attribute
|
| 763 |
+
currentLang = lang;
|
| 764 |
+
};
|
| 765 |
+
|
| 766 |
+
const setupAccordion = () => {
|
| 767 |
+
document.querySelectorAll('.feature-list-item').forEach(item => {
|
| 768 |
+
const featureTitle = item.querySelector('.flex.items-start.w-full');
|
| 769 |
+
const featureDetails = item.querySelector('.feature-details');
|
| 770 |
+
|
| 771 |
+
if (featureTitle && featureDetails) {
|
| 772 |
+
featureTitle.addEventListener('click', (e) => {
|
| 773 |
+
e.preventDefault();
|
| 774 |
+
const isOpen = item.classList.contains('open');
|
| 775 |
+
|
| 776 |
+
// Close all open details first (optional, but good for single open accordion)
|
| 777 |
+
document.querySelectorAll('.feature-list-item.open').forEach(openItem => {
|
| 778 |
+
if (openItem !== item) {
|
| 779 |
+
openItem.classList.remove('open');
|
| 780 |
+
openItem.querySelector('.feature-details').classList.remove('open');
|
| 781 |
+
}
|
| 782 |
+
});
|
| 783 |
+
|
| 784 |
+
// Toggle current item
|
| 785 |
+
item.classList.toggle('open');
|
| 786 |
+
featureDetails.classList.toggle('open');
|
| 787 |
+
});
|
| 788 |
+
}
|
| 789 |
+
});
|
| 790 |
+
};
|
| 791 |
+
|
| 792 |
+
document.addEventListener('DOMContentLoaded', () => {
|
| 793 |
+
// Language selector toggle logic
|
| 794 |
+
const langButton = document.getElementById('lang-menu-button');
|
| 795 |
+
const langDropdown = document.getElementById('lang-menu-dropdown');
|
| 796 |
+
|
| 797 |
+
langButton.addEventListener('click', (e) => {
|
| 798 |
+
e.stopPropagation();
|
| 799 |
+
langDropdown.style.display = langDropdown.style.display === 'block' ? 'none' : 'block';
|
| 800 |
+
});
|
| 801 |
+
|
| 802 |
+
document.addEventListener('click', (e) => {
|
| 803 |
+
if (!langButton.contains(e.target) && !langDropdown.contains(e.target)) {
|
| 804 |
+
langDropdown.style.display = 'none';
|
| 805 |
+
}
|
| 806 |
+
});
|
| 807 |
+
|
| 808 |
+
// Language selection logic
|
| 809 |
+
document.querySelectorAll('.lang-option').forEach(option => {
|
| 810 |
+
option.addEventListener('click', (e) => {
|
| 811 |
+
e.preventDefault();
|
| 812 |
+
const newLang = option.getAttribute('data-lang');
|
| 813 |
+
applyTranslations(newLang);
|
| 814 |
+
langDropdown.style.display = 'none'; // Close dropdown after selection
|
| 815 |
+
});
|
| 816 |
+
});
|
| 817 |
+
|
| 818 |
+
// Setup the accordion/dropdown functionality for features
|
| 819 |
+
setupAccordion();
|
| 820 |
+
|
| 821 |
+
// Initial load: Apply English translations by default
|
| 822 |
+
applyTranslations(currentLang);
|
| 823 |
+
});
|
| 824 |
+
</script>
|
| 825 |
+
</body>
|
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>
|
| 7 |
+
<link rel="icon" type="image/png" href="https://i.postimg.cc/t4NCGNzD/gitforge-png.png">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap" rel="stylesheet">
|
| 10 |
+
<link rel="stylesheet"
|
| 11 |
+
href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,400,0,0" />
|
| 12 |
+
<style>
|
| 13 |
+
/* Inter font configuration */
|
| 14 |
+
body { font-family: 'Inter', sans-serif; }
|
| 15 |
+
|
| 16 |
+
/* Theme Variables (Light Mode enforced for this page) */
|
| 17 |
+
:root {
|
| 18 |
+
--bg-page: #FFFFFF;
|
| 19 |
+
--bg-header: #F6F8FA;
|
| 20 |
+
--bg-card: #FFFFFF;
|
| 21 |
+
--bg-active: #F3F4F6;
|
| 22 |
+
--border-color: #D0D7DE;
|
| 23 |
+
--text-color: #24292F;
|
| 24 |
+
--text-secondary: #57606A;
|
| 25 |
+
--text-link: #0969DA;
|
| 26 |
+
--primary-color: #2DA44E; /* Commit Button (Green) */
|
| 27 |
+
--primary-hover: #2C974B;
|
| 28 |
+
--dropzone-bg: #F6F8FA;
|
| 29 |
+
}
|
| 30 |
+
|
| 31 |
+
/* Utility classes for variables */
|
| 32 |
+
.bg-page-var { background-color: var(--bg-page); } .bg-card-var { background-color: var(--bg-card); }
|
| 33 |
+
.bg-header-var { background-color: var(--bg-header); } .border-color-var { border-color: var(--border-color); }
|
| 34 |
+
.text-color-var { color: var(--text-color); } .text-secondary-var { color: var(--text-secondary); }
|
| 35 |
+
.text-link-var { color: var(--text-link); } .hover\:text-link-hover-var:hover { color: var(--text-link); }
|
| 36 |
+
.bg-primary-color-var { background-color: var(--primary-color); } .hover\:bg-primary-hover-var:hover { background-color: var(--primary-hover); }
|
| 37 |
+
.bg-active-var { background-color: var(--bg-active); } .hover\:bg-active-var:hover { background-color: var(--bg-active); }
|
| 38 |
+
.bg-dropzone-var { background-color: var(--dropzone-bg); }
|
| 39 |
+
.focus\:ring-primary-color-var:focus { --tw-ring-color: var(--primary-color); }
|
| 40 |
+
|
| 41 |
+
/* Specific style for the navigation bar */
|
| 42 |
+
.repo-nav-link { padding: 0.5rem 1rem; border-bottom: 2px solid transparent; margin-right: 0.5rem; }
|
| 43 |
+
.repo-nav-link.active { border-bottom-color: var(--text-link); color: var(--text-color) !important; font-weight: 600; }
|
| 44 |
+
|
| 45 |
+
/* Styles for the drag-and-drop zone */
|
| 46 |
+
#drop-area { transition: border-color 0.2s, background-color 0.2s; }
|
| 47 |
+
.drag-over { border-color: var(--text-link) !important; background-color: var(--bg-active) !important; }
|
| 48 |
+
|
| 49 |
+
/* Loader style (spinning circle) */
|
| 50 |
+
.loader {
|
| 51 |
+
border: 4px solid rgba(255, 255, 255, 0.3);
|
| 52 |
+
border-top: 4px solid #ffffff; /* Spinning circle color */
|
| 53 |
+
border-radius: 50%;
|
| 54 |
+
width: 20px;
|
| 55 |
+
height: 20px;
|
| 56 |
+
animation: spin 1s linear infinite;
|
| 57 |
+
}
|
| 58 |
+
|
| 59 |
+
@keyframes spin {
|
| 60 |
+
0% { transform: rotate(0deg); }
|
| 61 |
+
100% { transform: rotate(360deg); }
|
| 62 |
+
}
|
| 63 |
+
</style>
|
| 64 |
+
</head>
|
| 65 |
+
|
| 66 |
+
<body class="bg-page-var text-color-var min-h-screen transition-colors-theme">
|
| 67 |
+
|
| 68 |
+
<header class="w-full bg-header-var border-b border-color-var">
|
| 69 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 70 |
+
<div class="flex justify-between items-center h-16">
|
| 71 |
+
<div class="flex items-center space-x-4">
|
| 72 |
+
<img src="https://i.postimg.cc/t4NCGNzD/gitforge-png.png" alt="GitForge Logo" class="h-6">
|
| 73 |
+
<span class="text-xl font-bold text-color-var">GitForge</span>
|
| 74 |
+
<span class="text-secondary-var">/</span>
|
| 75 |
+
<a id="repo-link" href="/mindus/nexus/repo_files?repo={{ repo_slug }}" class="text-color-var hover:text-link-var text-lg font-semibold">
|
| 76 |
+
<span id="repo-user">{{ user.username if user.username else 'current_user' }}</span> / <span id="repo-name">{{ repo_name if repo_name else repo_slug }}</span>
|
| 77 |
+
</a>
|
| 78 |
+
</div>
|
| 79 |
+
|
| 80 |
+
<div class="flex items-center space-x-3">
|
| 81 |
+
<div class="hidden sm:block">
|
| 82 |
+
<input type="text" placeholder="Type / to search"
|
| 83 |
+
class="bg-page-var border border-color-var text-color-var rounded-lg p-1.5 text-sm w-48 focus:outline-none focus:border-link-var focus:ring-1 focus:ring-link-var">
|
| 84 |
+
</div>
|
| 85 |
+
<button class="p-2 rounded-lg text-secondary-var hover:text-color-var">
|
| 86 |
+
<span class="material-symbols-rounded">notifications</span>
|
| 87 |
+
</button>
|
| 88 |
+
<button class="p-2 rounded-lg text-secondary-var hover:text-color-var">
|
| 89 |
+
<span class="material-symbols-rounded">add</span>
|
| 90 |
+
</button>
|
| 91 |
+
<button onclick="document.getElementById('logout-form').submit();" class="p-2 rounded-full text-secondary-var hover:text-color-var cursor-pointer">
|
| 92 |
+
<span class="material-symbols-rounded">account_circle</span>
|
| 93 |
+
</button>
|
| 94 |
+
<form id="logout-form" action="/api/logout" method="POST" style="display: none;"></form>
|
| 95 |
+
</div>
|
| 96 |
+
</div>
|
| 97 |
+
</div>
|
| 98 |
+
|
| 99 |
+
<div class="w-full border-b border-color-var bg-page-var">
|
| 100 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 101 |
+
<nav id="repo-nav" class="flex space-x-1 overflow-x-auto text-sm font-medium">
|
| 102 |
+
<a href="/mindus/nexus/repo_files?repo={{ repo_slug }}" class="repo-nav-link text-secondary-var hover:text-color-var">
|
| 103 |
+
<span class="material-symbols-rounded text-base align-bottom mr-1">code</span> Code
|
| 104 |
+
</a>
|
| 105 |
+
<a href="/mindus/nexus/upload_file?repo={{ repo_slug }}" class="repo-nav-link active text-color-var">
|
| 106 |
+
<span class="material-symbols-rounded text-base align-bottom mr-1">cloud_upload</span> Upload
|
| 107 |
+
</a>
|
| 108 |
+
</nav>
|
| 109 |
+
</div>
|
| 110 |
+
</div>
|
| 111 |
+
</header>
|
| 112 |
+
|
| 113 |
+
|
| 114 |
+
<div id="main-content" class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
|
| 115 |
+
|
| 116 |
+
<div id="flash-container" class="mb-4">
|
| 117 |
+
</div>
|
| 118 |
+
|
| 119 |
+
<h1 class="text-xl font-light text-secondary-var mb-6">
|
| 120 |
+
<a id="breadcrumb-repo-link" href="/mindus/nexus/repo_files?repo={{ repo_slug }}" class="text-link-var hover:text-link-hover-var">{{ repo_name if repo_name else repo_slug }}</a> /
|
| 121 |
+
<span class="text-color-var">Add Files via Upload</span>
|
| 122 |
+
</h1>
|
| 123 |
+
|
| 124 |
+
<div id="drop-area" class="bg-dropzone-var border-2 border-dashed border-color-var rounded-lg p-16 text-center mb-8 hover:border-text-link hover:bg-active-var transition-colors-theme">
|
| 125 |
+
<span class="material-symbols-rounded text-6xl text-secondary-var mx-auto mb-4">description</span>
|
| 126 |
+
<p class="text-lg font-semibold text-color-var mb-2">
|
| 127 |
+
Drag additional files here to add them to your repository
|
| 128 |
+
</p>
|
| 129 |
+
<p class="text-sm text-secondary-var">
|
| 130 |
+
Or <label for="file-upload" class="text-link-var cursor-pointer hover:underline">choose your files (Max 50 at once)</label>
|
| 131 |
+
</p>
|
| 132 |
+
<input type="file" id="file-upload" multiple class="hidden" accept="*/*">
|
| 133 |
+
</div>
|
| 134 |
+
|
| 135 |
+
<div id="file-list-header" class="hidden text-sm font-semibold text-secondary-var mb-2 ml-1">Pending Files: <span id="file-count">0</span></div>
|
| 136 |
+
<div id="file-list" class="space-y-4 mb-10">
|
| 137 |
+
</div>
|
| 138 |
+
|
| 139 |
+
<form id="commit-form" class="bg-card-var p-6 rounded-lg border border-color-var shadow-lg">
|
| 140 |
+
<h2 class="text-lg font-semibold text-color-var mb-4">Commit Changes</h2>
|
| 141 |
+
|
| 142 |
+
<input type="text" id="commit-title" name="commit_title" placeholder="Add files via upload"
|
| 143 |
+
class="w-full p-2 mb-3 border border-color-var rounded-lg focus:outline-none focus:ring-2 focus:ring-link-var bg-page-var text-color-var transition-colors-theme"
|
| 144 |
+
value="Add files via upload"
|
| 145 |
+
required>
|
| 146 |
+
|
| 147 |
+
<textarea id="commit-description" name="commit_description" placeholder="Add an optional extended description..." rows="4"
|
| 148 |
+
class="w-full p-2 mb-6 border border-color-var rounded-lg focus:outline-none focus:ring-2 focus:ring-link-var bg-page-var text-color-var transition-colors-theme resize-none"></textarea>
|
| 149 |
+
|
| 150 |
+
<div class="mb-6">
|
| 151 |
+
<label for="subfolder-path" class="block text-sm font-medium text-color-var mb-1">
|
| 152 |
+
Destination Folder (Optional)
|
| 153 |
+
</label>
|
| 154 |
+
<input type="text" id="subfolder-path" name="subfolder_path"
|
| 155 |
+
placeholder="e.g., data/raw_files or just a_folder"
|
| 156 |
+
class="w-full p-2 border border-color-var rounded-lg focus:outline-none focus:ring-2 focus:ring-link-var bg-page-var text-color-var transition-colors-theme">
|
| 157 |
+
<p class="text-xs text-secondary-var mt-1">Files will be placed in `{{ user.username if user.username else 'current_user' }}/{{ repo_slug }}/<destination>`.</p>
|
| 158 |
+
</div>
|
| 159 |
+
<div class="space-y-3 mb-6">
|
| 160 |
+
<div class="flex items-start">
|
| 161 |
+
<input type="radio" id="commit-main" name="branch-option" value="main" checked
|
| 162 |
+
class="mt-1 mr-2 text-link-var focus:ring-link-var border-color-var">
|
| 163 |
+
<label for="commit-main" class="text-sm text-color-var">
|
| 164 |
+
<span class="material-symbols-rounded text-base mr-1 align-bottom">subdirectory_arrow_right</span>
|
| 165 |
+
Commit directly to the <span class="font-semibold">main</span> branch.
|
| 166 |
+
</label>
|
| 167 |
+
</div>
|
| 168 |
+
|
| 169 |
+
<div class="flex items-start">
|
| 170 |
+
<input type="radio" id="commit-new-branch" name="branch-option" value="new"
|
| 171 |
+
class="mt-1 mr-2 text-link-var focus:ring-link-var border-color-var">
|
| 172 |
+
<label for="commit-new-branch" class="text-sm text-color-var">
|
| 173 |
+
Commit to a <span class="font-semibold">new branch</span> and start a pull request.
|
| 174 |
+
</label>
|
| 175 |
+
</div>
|
| 176 |
+
</div>
|
| 177 |
+
|
| 178 |
+
<div id="new-branch-input" class="mb-6 hidden">
|
| 179 |
+
<input type="text" id="new-branch-name" placeholder="Branch name (ex: add-upload-files)"
|
| 180 |
+
class="w-full p-2 border border-color-var rounded-lg focus:outline-none focus:ring-2 focus:ring-link-var bg-page-var text-color-var transition-colors-theme">
|
| 181 |
+
</div>
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
<button type="submit" id="commit-button"
|
| 185 |
+
class="bg-primary-color-var hover:bg-primary-hover-var text-white font-semibold py-2 px-4 rounded-lg transition-colors duration-200 flex items-center justify-center w-full disabled:opacity-50"
|
| 186 |
+
disabled>
|
| 187 |
+
<span id="loader" class="loader mr-2 hidden"></span>
|
| 188 |
+
<span id="button-text">Commit changes</span>
|
| 189 |
+
</button>
|
| 190 |
+
</form>
|
| 191 |
+
|
| 192 |
+
</div>
|
| 193 |
+
|
| 194 |
+
<footer class="mt-12 py-8 border-t border-color-var text-sm text-secondary-var bg-header-var">
|
| 195 |
+
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
|
| 196 |
+
<p class="text-center sm:text-left">
|
| 197 |
+
© 2024 GitForge (Mindus Framework).
|
| 198 |
+
<span class="hidden sm:inline">All rights reserved.</span>
|
| 199 |
+
</p>
|
| 200 |
+
<p class="text-center sm:text-right mt-2 sm:mt-0 space-x-3">
|
| 201 |
+
<a href="#" class="hover:text-link-var">Docs</a> · <a href="#" class="hover:text-link-var">Contact</a> · <a href="#" class="hover:text-link-var">Terms</a> · <a href="#" class="hover:text-link-var">Privacy</a> · <a href="#" class="hover:text-link-var">Security</a> · <a href="#" class="hover:text-link-var">Status</a>
|
| 202 |
+
</p>
|
| 203 |
+
</div>
|
| 204 |
+
</footer>
|
| 205 |
+
|
| 206 |
+
<script>
|
| 207 |
+
// --- GLOBAL VARIABLES AND SETUP ---
|
| 208 |
+
const dropArea = document.getElementById('drop-area');
|
| 209 |
+
const fileUpload = document.getElementById('file-upload');
|
| 210 |
+
const fileListContainer = document.getElementById('file-list');
|
| 211 |
+
const commitForm = document.getElementById('commit-form');
|
| 212 |
+
const commitButton = document.getElementById('commit-button');
|
| 213 |
+
const buttonText = document.getElementById('button-text');
|
| 214 |
+
const loader = document.getElementById('loader');
|
| 215 |
+
const fileCountSpan = document.getElementById('file-count');
|
| 216 |
+
const fileListHeader = document.getElementById('file-list-header');
|
| 217 |
+
|
| 218 |
+
// VARIABLES INJECTED BY JINJA2 FROM THE SERVER
|
| 219 |
+
const REPO_SLUG = "{{ repo_slug }}"; // Key for the API
|
| 220 |
+
const USER_SLUG = "{{ user.username if user.username else 'current_user' }}";
|
| 221 |
+
|
| 222 |
+
// File list state: contains the actual File Object
|
| 223 |
+
let pendingFiles = [];
|
| 224 |
+
|
| 225 |
+
// --- Interface Functions ---
|
| 226 |
+
|
| 227 |
+
/** Displays an alert message (success or error). */
|
| 228 |
+
const displayFlashMessage = (message, type = 'error') => {
|
| 229 |
+
const container = document.getElementById('flash-container');
|
| 230 |
+
const color = type === 'success' ? 'bg-green-100 border-green-400 text-green-700' : 'bg-red-100 border-red-400 text-red-700';
|
| 231 |
+
container.innerHTML = `
|
| 232 |
+
<div class="p-4 border rounded-md ${color}" role="alert">
|
| 233 |
+
<p class="font-bold">${type.toUpperCase()}:</p>
|
| 234 |
+
<p>${message}</p>
|
| 235 |
+
</div>
|
| 236 |
+
`;
|
| 237 |
+
// Remove the message after 5 seconds
|
| 238 |
+
setTimeout(() => container.innerHTML = '', 5000);
|
| 239 |
+
};
|
| 240 |
+
|
| 241 |
+
/** Formats the size in bytes to a readable string. */
|
| 242 |
+
const formatBytes = (bytes, decimals = 2) => {
|
| 243 |
+
if (bytes === 0) return '0 Bytes';
|
| 244 |
+
const k = 1024;
|
| 245 |
+
const dm = decimals < 0 ? 0 : decimals;
|
| 246 |
+
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
|
| 247 |
+
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
| 248 |
+
return parseFloat((bytes / Math.pow(k, i)).toFixed(dm)) + ' ' + sizes[i];
|
| 249 |
+
};
|
| 250 |
+
|
| 251 |
+
/** Removes a file from the pending list and updates the display. */
|
| 252 |
+
const removeFile = (e) => {
|
| 253 |
+
e.preventDefault();
|
| 254 |
+
const button = e.currentTarget;
|
| 255 |
+
const fileId = button.getAttribute('data-file-id');
|
| 256 |
+
|
| 257 |
+
pendingFiles = pendingFiles.filter(file => file.id !== fileId);
|
| 258 |
+
|
| 259 |
+
// Remove the HTML element
|
| 260 |
+
document.getElementById(fileId).remove();
|
| 261 |
+
|
| 262 |
+
renderFileList(); // Update the counter and button state
|
| 263 |
+
};
|
| 264 |
+
|
| 265 |
+
/** Updates the file list display and the commit button state. */
|
| 266 |
+
const renderFileList = () => {
|
| 267 |
+
fileListContainer.innerHTML = '';
|
| 268 |
+
fileCountSpan.textContent = pendingFiles.length;
|
| 269 |
+
|
| 270 |
+
if (pendingFiles.length > 0) {
|
| 271 |
+
commitButton.removeAttribute('disabled');
|
| 272 |
+
fileListHeader.classList.remove('hidden');
|
| 273 |
+
} else {
|
| 274 |
+
commitButton.setAttribute('disabled', 'disabled');
|
| 275 |
+
fileListHeader.classList.add('hidden');
|
| 276 |
+
}
|
| 277 |
+
|
| 278 |
+
pendingFiles.forEach(file => {
|
| 279 |
+
const fileItem = document.createElement('div');
|
| 280 |
+
fileItem.id = file.id;
|
| 281 |
+
fileItem.className = 'file-item flex justify-between items-center p-4 border border-color-var rounded-lg bg-card-var shadow-sm';
|
| 282 |
+
fileItem.innerHTML = `
|
| 283 |
+
<div class="flex items-center text-sm font-medium truncate">
|
| 284 |
+
<span class="material-symbols-rounded text-lg mr-3 text-secondary-var">description</span>
|
| 285 |
+
<span class="text-color-var">${file.name}</span>
|
| 286 |
+
<span class="text-secondary-var ml-3 text-xs">(${formatBytes(file.fileObject.size)})</span>
|
| 287 |
+
</div>
|
| 288 |
+
<button data-file-id="${file.id}" class="remove-file-btn text-secondary-var hover:text-red-600 transition flex-shrink-0">
|
| 289 |
+
<span class="material-symbols-rounded text-lg">close</span>
|
| 290 |
+
</button>
|
| 291 |
+
`;
|
| 292 |
+
fileListContainer.appendChild(fileItem);
|
| 293 |
+
});
|
| 294 |
+
|
| 295 |
+
// Re-attach removal listeners
|
| 296 |
+
document.querySelectorAll('.remove-file-btn').forEach(button => {
|
| 297 |
+
button.addEventListener('click', removeFile);
|
| 298 |
+
});
|
| 299 |
+
};
|
| 300 |
+
|
| 301 |
+
/** Adds validated files to the pending list. */
|
| 302 |
+
const addFiles = (files) => {
|
| 303 |
+
const filesToAdd = Array.from(files).slice(0, 50 - pendingFiles.length); // Limit to 50
|
| 304 |
+
|
| 305 |
+
if (filesToAdd.length === 0 && files.length > 0) {
|
| 306 |
+
displayFlashMessage("File limit of 50 reached. Please commit or remove files.");
|
| 307 |
+
return;
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
filesToAdd.forEach(file => {
|
| 311 |
+
// Create a unique ID for tracking
|
| 312 |
+
const fileId = 'file-' + Date.now() + '-' + Math.random().toString(36).substring(2, 9);
|
| 313 |
+
|
| 314 |
+
// Duplicate check (by name)
|
| 315 |
+
if (pendingFiles.some(f => f.name === file.name)) {
|
| 316 |
+
displayFlashMessage(`File "${file.name}" has already been selected.`, 'error');
|
| 317 |
+
return;
|
| 318 |
+
}
|
| 319 |
+
|
| 320 |
+
// Add to the pending list
|
| 321 |
+
pendingFiles.push({
|
| 322 |
+
id: fileId,
|
| 323 |
+
name: file.name,
|
| 324 |
+
fileObject: file
|
| 325 |
+
});
|
| 326 |
+
});
|
| 327 |
+
|
| 328 |
+
renderFileList();
|
| 329 |
+
|
| 330 |
+
if (filesToAdd.length < files.length) {
|
| 331 |
+
displayFlashMessage("Warning: The limit of 50 pending files has been reached. The remaining files were not added.", 'error');
|
| 332 |
+
}
|
| 333 |
+
};
|
| 334 |
+
|
| 335 |
+
// --- Drag and Drop Handling ---
|
| 336 |
+
|
| 337 |
+
// Prevent default behavior (opening the file)
|
| 338 |
+
['dragenter', 'dragover', 'dragleave', 'drop'].forEach(eventName => {
|
| 339 |
+
dropArea.addEventListener(eventName, e => {
|
| 340 |
+
e.preventDefault();
|
| 341 |
+
e.stopPropagation();
|
| 342 |
+
}, false);
|
| 343 |
+
});
|
| 344 |
+
|
| 345 |
+
// Highlight the drop zone
|
| 346 |
+
['dragenter', 'dragover'].forEach(eventName => {
|
| 347 |
+
dropArea.addEventListener(eventName, () => dropArea.classList.add('drag-over'), false);
|
| 348 |
+
});
|
| 349 |
+
|
| 350 |
+
// Remove the highlight
|
| 351 |
+
['dragleave', 'drop'].forEach(eventName => {
|
| 352 |
+
dropArea.addEventListener(eventName, () => dropArea.classList.remove('drag-over'), false);
|
| 353 |
+
});
|
| 354 |
+
|
| 355 |
+
// Handle file drop
|
| 356 |
+
dropArea.addEventListener('drop', handleDrop, false);
|
| 357 |
+
|
| 358 |
+
function handleDrop(e) {
|
| 359 |
+
const dt = e.dataTransfer;
|
| 360 |
+
const files = dt.files;
|
| 361 |
+
addFiles(files);
|
| 362 |
+
}
|
| 363 |
+
|
| 364 |
+
// Handle adding via the "choose your files" click
|
| 365 |
+
fileUpload.addEventListener('change', (e) => {
|
| 366 |
+
addFiles(e.target.files);
|
| 367 |
+
// Reset the input to allow re-selecting the same file
|
| 368 |
+
e.target.value = null;
|
| 369 |
+
});
|
| 370 |
+
|
| 371 |
+
// --- Submission Logic (Commit) ---
|
| 372 |
+
|
| 373 |
+
/** Activates/deactivates the button loading state. */
|
| 374 |
+
const setCommitLoading = (isLoading) => {
|
| 375 |
+
commitButton.disabled = isLoading || pendingFiles.length === 0;
|
| 376 |
+
loader.classList.toggle('hidden', !isLoading);
|
| 377 |
+
buttonText.textContent = isLoading ? 'Committing...' : 'Commit changes';
|
| 378 |
+
};
|
| 379 |
+
|
| 380 |
+
// Handle displaying the new branch field
|
| 381 |
+
document.querySelectorAll('input[name="branch-option"]').forEach(radio => {
|
| 382 |
+
radio.addEventListener('change', () => {
|
| 383 |
+
const newBranchInput = document.getElementById('new-branch-input');
|
| 384 |
+
const newBranchName = document.getElementById('new-branch-name');
|
| 385 |
+
if (radio.value === 'new') {
|
| 386 |
+
newBranchInput.classList.remove('hidden');
|
| 387 |
+
newBranchName.setAttribute('required', 'required');
|
| 388 |
+
} else {
|
| 389 |
+
newBranchInput.classList.add('hidden');
|
| 390 |
+
newBranchName.removeAttribute('required');
|
| 391 |
+
}
|
| 392 |
+
});
|
| 393 |
+
});
|
| 394 |
+
|
| 395 |
+
|
| 396 |
+
// Handle commit form submission
|
| 397 |
+
commitForm.addEventListener('submit', async (e) => {
|
| 398 |
+
e.preventDefault();
|
| 399 |
+
|
| 400 |
+
if (pendingFiles.length === 0) {
|
| 401 |
+
displayFlashMessage("Please select at least one file to upload.", 'error');
|
| 402 |
+
return;
|
| 403 |
+
}
|
| 404 |
+
|
| 405 |
+
setCommitLoading(true);
|
| 406 |
+
|
| 407 |
+
// 1. Collect form data
|
| 408 |
+
const commitTitle = document.getElementById('commit-title').value;
|
| 409 |
+
const commitDescription = document.getElementById('commit-description').value;
|
| 410 |
+
const subfolderPath = document.getElementById('subfolder-path').value.trim(); // NEW FIELD
|
| 411 |
+
const branchOption = document.querySelector('input[name="branch-option"]:checked').value;
|
| 412 |
+
let branchName = 'main';
|
| 413 |
+
|
| 414 |
+
if (branchOption === 'new') {
|
| 415 |
+
branchName = document.getElementById('new-branch-name').value.trim();
|
| 416 |
+
if (!branchName) {
|
| 417 |
+
displayFlashMessage("Please provide a name for the new branch.", 'error');
|
| 418 |
+
setCommitLoading(false);
|
| 419 |
+
return;
|
| 420 |
+
}
|
| 421 |
+
}
|
| 422 |
+
|
| 423 |
+
// 2. Build the FormData object
|
| 424 |
+
const formData = new FormData();
|
| 425 |
+
formData.append('commit_title', commitTitle);
|
| 426 |
+
formData.append('commit_description', commitDescription);
|
| 427 |
+
formData.append('branch_name', branchName);
|
| 428 |
+
|
| 429 |
+
// NEW: Add the optional subfolder path
|
| 430 |
+
if (subfolderPath) {
|
| 431 |
+
formData.append('subfolder_path', subfolderPath);
|
| 432 |
+
}
|
| 433 |
+
|
| 434 |
+
// Add all files
|
| 435 |
+
pendingFiles.forEach(file => {
|
| 436 |
+
formData.append('files', file.fileObject, file.name);
|
| 437 |
+
});
|
| 438 |
+
|
| 439 |
+
// 3. Send the API request
|
| 440 |
+
try {
|
| 441 |
+
// Use the injected REPO_SLUG
|
| 442 |
+
const response = await fetch(`/api/files/${REPO_SLUG}/upload`, {
|
| 443 |
+
method: 'POST',
|
| 444 |
+
// DO NOT set 'Content-Type': 'multipart/form-data', the browser handles the boundary
|
| 445 |
+
body: formData
|
| 446 |
+
});
|
| 447 |
+
|
| 448 |
+
const result = await response.json();
|
| 449 |
+
|
| 450 |
+
if (response.ok) {
|
| 451 |
+
// Success: Display success message and redirect
|
| 452 |
+
displayFlashMessage(result.message || `Files added and committed successfully to repository ${REPO_SLUG}!`, 'success');
|
| 453 |
+
// Redirect to the repository page
|
| 454 |
+
setTimeout(() => {
|
| 455 |
+
window.location.href = `/mindus/nexus/repo_files?repo_slug=${REPO_SLUG}`;
|
| 456 |
+
}, 1000);
|
| 457 |
+
} else {
|
| 458 |
+
// API failure
|
| 459 |
+
const errorMessage = result.message || "Unknown error during commit.";
|
| 460 |
+
displayFlashMessage(errorMessage, 'error');
|
| 461 |
+
}
|
| 462 |
+
} catch (error) {
|
| 463 |
+
console.error('Network or internal error:', error);
|
| 464 |
+
displayFlashMessage("Network or internal error during commit. Please try again.", 'error');
|
| 465 |
+
} finally {
|
| 466 |
+
setCommitLoading(false); // Stop the animation even on error
|
| 467 |
+
}
|
| 468 |
+
});
|
| 469 |
+
|
| 470 |
+
// Initialization
|
| 471 |
+
renderFileList(); // Display the empty list on startup (no files by default)
|
| 472 |
+
</script>
|
| 473 |
+
</body>
|
| 474 |
+
</html>
|