diff --git a/.architecture-rules/frontend.yaml b/.architecture-rules/frontend.yaml index 8c8274e1..e4b9ac5b 100644 --- a/.architecture-rules/frontend.yaml +++ b/.architecture-rules/frontend.yaml @@ -1027,9 +1027,9 @@ frontend_component_rules: file_pattern: "app/**/templates/**/*.html" anti_patterns: - "url_for\\(\\s*['\"]\\w+_static['\"]\\s*,\\s*path=['\"][^'\"]+\\.(?:js|css)['\"]" + - "url_for\\(\\s*['\"]static['\"]\\s*,\\s*path=['\"][^'\"]+\\.(?:js|css)['\"]" - "(?:src|href)=['\"]/static/[^'\"]+\\.(?:js|css)['\"]" exceptions: - - "base.html" - "partials/" # ============================================================================ diff --git a/app/modules/customers/templates/customers/storefront/forgot-password.html b/app/modules/customers/templates/customers/storefront/forgot-password.html index fcabb6ad..aa8ff2d4 100644 --- a/app/modules/customers/templates/customers/storefront/forgot-password.html +++ b/app/modules/customers/templates/customers/storefront/forgot-password.html @@ -39,7 +39,7 @@ {# Tailwind CSS v4 (built locally via standalone CLI) #} - +
diff --git a/app/modules/customers/templates/customers/storefront/login.html b/app/modules/customers/templates/customers/storefront/login.html index 8430b8e5..c5011b1d 100644 --- a/app/modules/customers/templates/customers/storefront/login.html +++ b/app/modules/customers/templates/customers/storefront/login.html @@ -38,7 +38,7 @@ {# Tailwind CSS v4 (built locally via standalone CLI) #} - +
@@ -182,7 +182,7 @@
- + diff --git a/app/modules/customers/templates/customers/storefront/register.html b/app/modules/customers/templates/customers/storefront/register.html index 06caebab..23f2cdcb 100644 --- a/app/modules/customers/templates/customers/storefront/register.html +++ b/app/modules/customers/templates/customers/storefront/register.html @@ -39,7 +39,7 @@ {# Tailwind CSS v4 (built locally via standalone CLI) #} - +
diff --git a/app/modules/customers/templates/customers/storefront/reset-password.html b/app/modules/customers/templates/customers/storefront/reset-password.html index 240dbaa2..7ca52918 100644 --- a/app/modules/customers/templates/customers/storefront/reset-password.html +++ b/app/modules/customers/templates/customers/storefront/reset-password.html @@ -39,7 +39,7 @@ {# Tailwind CSS v4 (built locally via standalone CLI) #} - +
diff --git a/app/modules/marketplace/templates/marketplace/store/onboarding.html b/app/modules/marketplace/templates/marketplace/store/onboarding.html index 49c445d4..696fadbb 100644 --- a/app/modules/marketplace/templates/marketplace/store/onboarding.html +++ b/app/modules/marketplace/templates/marketplace/store/onboarding.html @@ -8,7 +8,7 @@ Welcome to Orion - Setup Your Account - + @@ -373,10 +373,10 @@
- - - - + + + + diff --git a/app/modules/tenancy/templates/tenancy/admin/login.html b/app/modules/tenancy/templates/tenancy/admin/login.html index ec771b17..afbfa2c0 100644 --- a/app/modules/tenancy/templates/tenancy/admin/login.html +++ b/app/modules/tenancy/templates/tenancy/admin/login.html @@ -8,12 +8,12 @@ - + @@ -173,10 +173,10 @@
- - - - + + + + diff --git a/app/modules/tenancy/templates/tenancy/merchant/login.html b/app/modules/tenancy/templates/tenancy/merchant/login.html index 90b298df..3aa99af8 100644 --- a/app/modules/tenancy/templates/tenancy/merchant/login.html +++ b/app/modules/tenancy/templates/tenancy/merchant/login.html @@ -9,12 +9,12 @@ - + - +
@@ -140,9 +140,9 @@ - - - + + + +
@@ -212,16 +212,16 @@ - + - + - + - + + {% block extra_head %}{% endblock %} @@ -104,19 +104,19 @@ - + - + - + - + - + + onerror="var s=document.createElement('script');s.defer=true;s.src='{{ static_v(request, 'static', path='shared/js/lib/alpine.min.js') }}';document.head.appendChild(s);"> diff --git a/app/templates/merchant/base.html b/app/templates/merchant/base.html index 3e4dbf4d..cda32c32 100644 --- a/app/templates/merchant/base.html +++ b/app/templates/merchant/base.html @@ -11,13 +11,13 @@ - + @@ -26,7 +26,7 @@ - + {% block extra_head %}{% endblock %} @@ -54,19 +54,19 @@ - + - + - + - + - + {% block extra_scripts %}{% endblock %} + onerror="var s=document.createElement('script');s.defer=true;s.src='{{ static_v(request, 'static', path='shared/js/lib/alpine.min.js') }}';document.head.appendChild(s);"> diff --git a/app/templates/platform/base.html b/app/templates/platform/base.html index 768fd95b..85a71816 100644 --- a/app/templates/platform/base.html +++ b/app/templates/platform/base.html @@ -41,7 +41,7 @@ {# Tailwind CSS v4 (built locally via standalone CLI) #} - + {# Flag icons for language selector #} diff --git a/app/templates/shared/includes/optional-libs.html b/app/templates/shared/includes/optional-libs.html index 75cd87ad..6182c955 100644 --- a/app/templates/shared/includes/optional-libs.html +++ b/app/templates/shared/includes/optional-libs.html @@ -59,7 +59,7 @@ {% endmacro %} diff --git a/app/templates/store/base.html b/app/templates/store/base.html index 39d1d25d..acec9119 100644 --- a/app/templates/store/base.html +++ b/app/templates/store/base.html @@ -12,13 +12,13 @@ - + @@ -27,7 +27,7 @@ - + {% block extra_head %}{% endblock %} @@ -58,7 +58,7 @@ - + - + - + - + - + @@ -105,6 +105,6 @@ + onerror="var s=document.createElement('script');s.defer=true;s.src='{{ static_v(request, 'static', path='shared/js/lib/alpine.min.js') }}';document.head.appendChild(s);"> diff --git a/app/templates/storefront/base.html b/app/templates/storefront/base.html index 648ab260..14346dfc 100644 --- a/app/templates/storefront/base.html +++ b/app/templates/storefront/base.html @@ -37,20 +37,20 @@ {# Tailwind CSS v4 (built locally via standalone CLI) #} - + {# Flag Icons for Language Selector with local fallback #} {# Base Shop Styles #} - + {# Dev debug toolbar (dev only — auto-hides in production, must load early for interceptors) #} - + {% block extra_head %}{% endblock %} @@ -366,7 +366,7 @@ {# 1. Log Configuration (must load first) #} - + {# 2. Global Shop Configuration (resolved via PlatformSettingsService) #} {# 3. Icon System #} - + {# 4. Base Shop Layout (Alpine.js component - must load before Alpine) #} {# 5. Utilities #} - + {# 5b. i18n Support #} - + {# 6. API Client #} - + {# 7. Page-specific JavaScript (MUST load before Alpine.js) #} {% block extra_scripts %}{% endblock %} {# 8. LAST: Alpine.js (must be last defer script — auto-initializes on load) #} + onerror="var s=document.createElement('script');s.defer=true;s.src='{{ static_v(request, 'static', path='shared/js/lib/alpine.min.js') }}';document.head.appendChild(s);"> {# Toast notification container #}
diff --git a/app/templates/storefront/errors/base.html b/app/templates/storefront/errors/base.html index 2ca9fcf8..d58e8715 100644 --- a/app/templates/storefront/errors/base.html +++ b/app/templates/storefront/errors/base.html @@ -8,7 +8,7 @@ {% block title %}{{ status_code }} - {{ status_name }}{% endblock %}{% if store %} | {{ store.name }}{% endif %} {# Tailwind CSS #} - + {# Store theme colors via CSS variables #}