mirror of
https://github.com/django-components/django-components.git
synced 2025-08-30 18:57:20 +00:00
refactor: prefix component ID with c
(#1127)
This commit is contained in:
parent
fc026cbd99
commit
c650e7f3a5
29 changed files with 786 additions and 746 deletions
|
@ -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>
|
||||
""",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue