refactor: prefix component ID with c (#1127)

This commit is contained in:
Juro Oravec 2025-04-14 12:01:16 +02:00 committed by GitHub
parent fc026cbd99
commit c650e7f3a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 786 additions and 746 deletions

View file

@ -155,7 +155,7 @@ class TestHtmlAttrs:
assertHTMLEqual(
rendered,
"""
<div @click.stop="dispatch('click_event')" x-data="{hello: 'world'}" class="padding-top-8 added_class another-class" data-djc-id-a1bc3f data-id=123>
<div @click.stop="dispatch('click_event')" x-data="{hello: 'world'}" class="padding-top-8 added_class another-class" data-djc-id-ca1bc3f data-id=123>
content
</div>
""", # noqa: E501
@ -208,7 +208,7 @@ class TestHtmlAttrs:
assertHTMLEqual(
rendered,
"""
<div @click.stop="dispatch('click_event')" class="added_class another-class padding-top-8" data-djc-id-a1bc3f data-id="123" x-data="{hello: 'world'}">
<div @click.stop="dispatch('click_event')" class="added_class another-class padding-top-8" data-djc-id-ca1bc3f data-id="123" x-data="{hello: 'world'}">
content
</div>
""", # noqa: E501
@ -236,7 +236,7 @@ class TestHtmlAttrs:
assertHTMLEqual(
rendered,
"""
<div @click.stop="dispatch('click_event')" x-data="{hello: 'world'}" class="padding-top-8 added_class another-class" data-djc-id-a1bc3f data-id=123>
<div @click.stop="dispatch('click_event')" x-data="{hello: 'world'}" class="padding-top-8 added_class another-class" data-djc-id-ca1bc3f data-id=123>
content
</div>
""", # noqa: E501
@ -268,7 +268,7 @@ class TestHtmlAttrs:
assertHTMLEqual(
rendered,
"""
<div @click.stop="dispatch('click_event')" class="added_class another-class padding-top-8" data-djc-id-a1bc3f data-id="123" x-data="{hello: 'world'}">
<div @click.stop="dispatch('click_event')" class="added_class another-class padding-top-8" data-djc-id-ca1bc3f data-id="123" x-data="{hello: 'world'}">
content
</div>
""", # noqa: E501
@ -295,7 +295,7 @@ class TestHtmlAttrs:
assertHTMLEqual(
rendered,
"""
<div class="added_class another-class from_agg_key" data-djc-id-a1bc3f data-id="123" type="submit">
<div class="added_class another-class from_agg_key" data-djc-id-ca1bc3f data-id="123" type="submit">
content
</div>
""", # noqa: E501
@ -375,7 +375,7 @@ class TestHtmlAttrs:
assertHTMLEqual(
rendered,
"""
<div class="added_class another-class override-me" data-djc-id-a1bc3f data-id=123>
<div class="added_class another-class override-me" data-djc-id-ca1bc3f data-id=123>
content
</div>
""",
@ -404,7 +404,7 @@ class TestHtmlAttrs:
assertHTMLEqual(
rendered,
"""
<div @click.stop="dispatch('click_event')" x-data="{hello: 'world'}" class="padding-top-8 added_class another-class" data-djc-id-a1bc3f data-id=123>
<div @click.stop="dispatch('click_event')" x-data="{hello: 'world'}" class="padding-top-8 added_class another-class" data-djc-id-ca1bc3f data-id=123>
content
</div>
""", # noqa: E501
@ -429,7 +429,7 @@ class TestHtmlAttrs:
assertHTMLEqual(
rendered,
"""
<div class="added_class another-class" data-djc-id-a1bc3f data-id="123">
<div class="added_class another-class" data-djc-id-ca1bc3f data-id="123">
content
</div>
""",
@ -457,7 +457,7 @@ class TestHtmlAttrs:
assertHTMLEqual(
rendered,
"""
<div data-djc-id-a1bc3f>
<div data-djc-id-ca1bc3f>
content
</div>
""",
@ -485,7 +485,7 @@ class TestHtmlAttrs:
assertHTMLEqual(
rendered,
"""
<div data-djc-id-a1bc3f>
<div data-djc-id-ca1bc3f>
content
</div>
""",