-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adds cancellation and success for radom
- Loading branch information
Showing
13 changed files
with
191 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/** @type {import("@sveltejs/kit").ParamMatcher} */ | ||
export function match(param) { | ||
return /^cs_[a-zA-Z0-9_-]+$/.test(param); | ||
return /^(?:cs_)?[a-zA-Z0-9_-]+$/.test(param); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -186,16 +186,27 @@ | |
{#if showShippingAddress} | ||
<div transition:slide|local class="shipping_address"> | ||
<h3 class="text-default-semibold pb-xl">Shipping address</h3> | ||
<div class="form-control"> | ||
<label for="shippingAddress[name]" | ||
>Name <span class="label-explanation">(if different from billing name)</span></label | ||
> | ||
<div class="form-control required"> | ||
<label for="shippingAddress[name]">Name</label> | ||
<input | ||
value={form?.values?.name || ''} | ||
name="shippingAddress[name]" | ||
id="shippingAddress[name]" | ||
type="text" | ||
placeholder="Jane Smith" | ||
required | ||
/> | ||
</div> | ||
|
||
<div class="form-control required"> | ||
<label for="shippingAddress[email]">Email address</label> | ||
<input | ||
value={form?.values?.email || ''} | ||
name="shippingAddress[email]" | ||
id="shippingAddress[email]" | ||
type="email" | ||
placeholder="[email protected]" | ||
required | ||
/> | ||
</div> | ||
|
||
|
@@ -408,6 +419,7 @@ | |
} | ||
&.errors input[type='text'], | ||
&.errors input[type='email'], | ||
&.errors select { | ||
--bg: theme('colors.systemfeedback.error-background'); | ||
} | ||
|
@@ -470,6 +482,7 @@ | |
} | ||
input[type='text'], | ||
input[type='email'], | ||
select { | ||
@apply text-default-regular; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.