update frontend lib : leaflet + oruga - #1815

This commit is contained in:
Laurent GAY
2025-10-24 17:40:29 +02:00
committed by setop
parent b5852a95eb
commit 58a1d857a1
75 changed files with 944 additions and 1076 deletions

View File

@@ -82,7 +82,7 @@ describe("ParticipationSection", () => {
);
const cancelAnonymousParticipationButton = wrapper.find(
".event-participation > button.o-btn--text"
".event-participation > button.o-button--text"
);
expect(cancelAnonymousParticipationButton.text()).toBe(
"Cancel anonymous participation"
@@ -108,7 +108,7 @@ describe("ParticipationSection", () => {
);
const cancelAnonymousParticipationButton = wrapper.find(
".event-participation > button.o-btn--text"
".event-participation > button.o-button--text"
);
expect(cancelAnonymousParticipationButton.text()).toBe(
"Cancel anonymous participation"
@@ -146,7 +146,7 @@ describe("ParticipationSection", () => {
});
expect(wrapper.find(".event-participation").exists()).toBeFalsy();
expect(wrapper.find("button.o-btn--primary").text()).toBe(
expect(wrapper.find("button.o-button--primary").text()).toBe(
"Event already passed"
);
});

View File

@@ -6,7 +6,7 @@ exports[`ParticipationWithoutAccount > handles being already a participant 1`] =
<form>
<p>This Mobilizon instance and this event organizer allows anonymous participations, but requires validation through email confirmation.</p>
<transition-stub name="fade" appear="false" persisted="false" css="true">
<article class="o-notification o-notification--info o-notification--top" data-oruga="notification">
<article data-oruga="notification" class="o-notification o-notification--info o-notification--top">
<!---->
<div class="o-notification__wrapper">
<!---->
@@ -15,7 +15,7 @@ exports[`ParticipationWithoutAccount > handles being already a participant 1`] =
</article>
</transition-stub>
<transition-stub name="fade" appear="false" persisted="false" css="true">
<article class="o-notification o-notification--danger o-notification--top" data-oruga="notification">
<article data-oruga="notification" class="o-notification o-notification--danger o-notification--top">
<!---->
<div class="o-notification__wrapper">
<!---->
@@ -23,41 +23,33 @@ exports[`ParticipationWithoutAccount > handles being already a participant 1`] =
</div>
</article>
</transition-stub>
<div data-oruga="field" class="o-field o-field--filled"><label for="anonymousParticipationEmail" class="o-field__label">Email address</label>
<div class="o-field__body">
<div class="o-field o-field--addons">
<div data-oruga="input" class="o-input__wrapper"><input required="" id="anonymousParticipationEmail" data-oruga-input="email" type="email" class="o-input" autocomplete="off" placeholder="Your email">
<!---->
<!---->
<!---->
</div>
</div>
<div data-oruga="field" class="o-field o-field--filled"><label id="v-0-0" for="anonymousParticipationEmail" class="o-field__label">Email address</label>
<div data-oruga="input" class="o-input">
<!----><input aria-labelledby="v-0-0" required="" id="anonymousParticipationEmail" type="email" data-oruga-input="email" class="o-input__input" autocomplete="off" placeholder="Your email">
<!---->
<!---->
</div>
<!---->
</div>
<p>If you want, you may send a message to the event organizer here.</p>
<div data-oruga="field" class="o-field o-field--filled"><label for="anonymousParticipationMessage" class="o-field__label">Message</label>
<div class="o-field__body">
<div class="o-field o-field--addons">
<div data-oruga="input" class="o-input__wrapper"><textarea minlength="10" id="anonymousParticipationMessage" data-oruga-input="textarea" class="o-input o-input__textarea"></textarea>
<!---->
<!---->
<!---->
</div>
</div>
<div data-oruga="field" class="o-field o-field--filled"><label id="v-0-2" for="anonymousParticipationMessage" class="o-field__label">Message</label>
<div data-oruga="input" class="o-input o-input--textarea">
<!----><textarea aria-labelledby="v-0-2" minlength="10" id="anonymousParticipationMessage" data-oruga-input="textarea" class="o-input__input"></textarea>
<!---->
<!---->
</div>
<!---->
</div>
<div data-oruga="field" class="o-field">
<!---->
<div class="o-field__body">
<div class="o-field o-field--addons"><label class="o-chk o-chk--checked" data-oruga="checkbox" role="checkbox" aria-checked="true"><input type="checkbox" data-oruga-input="checkbox" class="o-chk__input o-chk__input--checked" autocomplete="off" true-value="true" false-value="false"><span class="o-chk__label"><b>Remember my participation in this browser</b><p>Will allow to display and manage your participation status on the event page when using this device. Uncheck if you're using a public device.</p></span></label></div>
</div>
<div data-oruga="checkbox" class="o-checkbox o-checkbox--checked"><input aria-labelledby="v-0-4" id="v-0-6" type="checkbox" data-oruga-input="checkbox" class="o-checkbox__input" true-value="true" false-value="false" autocomplete="off" aria-checked="true"><label id="v-0-4" for="v-0-6" class="o-checkbox__label"><b>Remember my participation in this browser</b>
<p>Will allow to display and manage your participation status on the event page when using this device. Uncheck if you're using a public device.</p>
</label></div>
<!---->
</div>
<div class="flex gap-2 my-2"><button type="submit" class="o-btn o-btn--primary o-btn--disabled" role="button" data-oruga="button" disabled=""><span class="o-btn__wrapper"><!----><span class="o-btn__label">Send email</span>
<div class="flex gap-2 my-2"><button data-oruga="button" type="submit" role="button" tabindex="0" class="o-button o-button--primary o-button--disabled" disabled=""><span class="o-button__wrapper"><!----><span class="o-button__label">Send email</span>
<!----></span>
</button><button type="button" class="o-btn o-btn--text" role="button" data-oruga="button"><span class="o-btn__wrapper"><!----><span class="o-btn__label">Back to previous page</span>
</button><button data-oruga="button" type="button" role="button" tabindex="0" class="o-button o-button--text" native-type="button"><span class="o-button__wrapper"><!----><span class="o-button__label">Back to previous page</span>
<!----></span>
</button></div>
</form>