```
✨ feat(templates/home): Corrige le lien du partenaire et supprime le fallback image. 🗑️ chore(vite.config.js): Supprime le plugin d'obfuscation JavaScript. ```
This commit is contained in:
@@ -131,7 +131,7 @@
|
||||
{ 'w':64,'h':64, 'image': '/assets/partenair/siteconseil.png', 'name': 'SARL SITECONSEIL', 'facebook_link': 'https://www.facebook.com/siteconseil','website':'https://www.siteconseil.fr' }
|
||||
]) %}
|
||||
{# Conteneur du partenaire #}
|
||||
<a href=" {% if partner.website is defined and partner.website %}{{ partner.website }}{% else %}{{ partner.facebook_link ?? '#' }}{% endif %}" target="_blank"
|
||||
<a href="{% if partner.website is defined and partner.website %}{{ partner.website }}{% else %}{{ partner.facebook_link ?? '#' }}{% endif %}" target="_blank"
|
||||
class="col-span-1 flex flex-col items-center justify-center py-6 px-4 bg-white rounded-xl shadow-md border border-gray-100 hover:shadow-lg hover:border-indigo-200 transition duration-300 group">
|
||||
|
||||
{# Logo/Image du partenaire #}
|
||||
@@ -140,9 +140,7 @@
|
||||
src="{{ partner.image | imagine_filter('avatar_partner') }}"
|
||||
alt="{{ partner.name }}"
|
||||
width="64"
|
||||
height="64"
|
||||
onerror="this.style.display='none'; this.nextElementSibling.style.display='block';"
|
||||
>
|
||||
height="64">
|
||||
|
||||
{# Fallback en texte si l'image ne se charge pas #}
|
||||
<span class="text-xl font-bold text-indigo-700 group-hover:text-indigo-900 transition duration-300">
|
||||
|
||||
@@ -82,39 +82,7 @@ export default defineConfig({
|
||||
// --- Plugins Vite ---
|
||||
plugins: [
|
||||
// Ajoutez ici les plugins de framework (ex: vue(), react())
|
||||
tailwindcss(),
|
||||
preact(),
|
||||
// --- PLUGIN D'OBSCURCISSEMENT JAVASCRIPT ---
|
||||
// Doit être l'un des derniers plugins pour s'appliquer au code final.
|
||||
// ATTENTION : Ces options sont très agressives et peuvent casser votre code.
|
||||
JavaScriptObfuscator({
|
||||
// Options d'obscurcissement
|
||||
compact: true,
|
||||
controlFlowFlattening: true,
|
||||
controlFlowFlatteningThreshold: 1,
|
||||
deadCodeInjection: true,
|
||||
deadCodeInjectionThreshold: 1,
|
||||
debugProtection: true,
|
||||
debugProtectionInterval: 4000,
|
||||
disableConsoleOutput: true,
|
||||
identifierNamesGenerator: 'hexadecimal',
|
||||
log: false,
|
||||
numbersToExpressions: true,
|
||||
renameGlobals: true, // Peut casser le code si des bibliothèques externes sont utilisées
|
||||
selfDefending: true,
|
||||
shuffleStringArray: true,
|
||||
simplify: true,
|
||||
splitStrings: true,
|
||||
splitStringsChunkLength: 5,
|
||||
stringArray: true,
|
||||
stringArrayEncoding: ['base64'],
|
||||
stringArrayIndexShift: true,
|
||||
stringArrayRotate: true,
|
||||
stringArrayShuffle: true,
|
||||
stringArrayThreshold: 1,
|
||||
transformObjectKeys: true, // Peut casser l'accès aux propriétés des objets
|
||||
unicodeEscapeSequence: true,
|
||||
}),
|
||||
tailwindcss()
|
||||
],
|
||||
|
||||
// Définition de variables d'environnement globales (si nécessaire)
|
||||
|
||||
Reference in New Issue
Block a user