refactor(js): move components.js to dev_tools module
components.js is a UI components library reference for developers, so it belongs in dev_tools alongside icons-page.js, testing-*.js, and code-quality-*.js. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// static/admin/js/components.js
|
||||
// app/modules/dev_tools/static/admin/js/components.js
|
||||
|
||||
// ✅ Use centralized logger - ONE LINE!
|
||||
// Create custom logger for components page
|
||||
@@ -3173,5 +3173,5 @@ new Chart(document.getElementById('barChart'), barConfig);
|
||||
|
||||
{% block extra_scripts %}
|
||||
{# ✅ CRITICAL: Load JavaScript file #}
|
||||
<script src="{{ url_for('static', path='admin/js/components.js') }}"></script>
|
||||
<script src="{{ url_for('dev_tools_static', path='admin/js/components.js') }}"></script>
|
||||
{% endblock %}
|
||||
@@ -337,7 +337,7 @@ app.mount("/static/modules/orders", StaticFiles(directory="app/modules/orders/st
|
||||
| **messaging** | messages.js, notifications.js, email-templates.js | messages.js, notifications.js, email-templates.js | - |
|
||||
| **marketplace** | marketplace*.js, letzshop*.js | letzshop.js, marketplace.js, onboarding.js | - |
|
||||
| **monitoring** | monitoring.js, background-tasks.js, imports.js, logs.js | - | - |
|
||||
| **dev_tools** | testing-*.js, code-quality-*.js, icons-page.js | - | - |
|
||||
| **dev_tools** | testing-*.js, code-quality-*.js, icons-page.js, components.js | - | - |
|
||||
| **cms** | content-pages.js, content-page-edit.js | content-pages.js, content-page-edit.js | - |
|
||||
| **analytics** | - | analytics.js | - |
|
||||
|
||||
@@ -354,7 +354,7 @@ These files remain in `static/` because they're platform-level, not module-speci
|
||||
- `companies.js`, `company-*.js` - Company management (3 files)
|
||||
- `admin-users.js`, `admin-user-*.js` - Admin user management (3 files)
|
||||
- `users.js`, `user-*.js` - Platform user management (4 files)
|
||||
- `settings.js`, `components.js` - Platform utilities
|
||||
- `settings.js` - Platform settings
|
||||
|
||||
**Vendor Core (`static/vendor/js/`):**
|
||||
- `init-alpine.js` - Vendor layout initialization
|
||||
|
||||
Reference in New Issue
Block a user