fix: rename billingData to vendorBilling for JS-003 rule compliance

The JS-003 architecture rule only matches function names starting with
admin*, vendor*, or shop*. Renamed billingData() to vendorBilling() to
follow the vendor JS naming convention and ensure future violations are
caught by architecture validation.

Also added currentPage: 'billing' for JS-004 compliance.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-31 20:58:44 +01:00
parent afd1a4df19
commit b540878445
2 changed files with 3 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
{% block title %}Billing & Subscription{% endblock %}
{% block alpine_data %}billingData(){% endblock %}
{% block alpine_data %}vendorBilling(){% endblock %}
{% block content %}
<div class="flex items-center justify-between my-6">

View File

@@ -3,10 +3,11 @@
const billingLog = window.LogConfig?.createLogger('BILLING') || console;
function billingData() {
function vendorBilling() {
return {
// Inherit base data (dark mode, sidebar, vendor info, etc.)
...data(),
currentPage: 'billing',
// State
loading: true,