generated from rapidez/package-template
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed template / reduced overrides (#16)
- Loading branch information
1 parent
7840b65
commit 9f4841b
Showing
15 changed files
with
104 additions
and
211 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<div class="flex flex-wrap items-center gap-3 mt-5"> | ||
<x-rapidez-ct::button.inactive v-on:click.prevent="toggleEdit"> | ||
@lang('Use a new address') | ||
</x-rapidez-ct::button.inactive> | ||
<x-rapidez-ct::button.inactive tag="label" for="popup" class="cursor-pointer" v-if="$root.user.addresses.length"> | ||
@lang('My addresses') | ||
</x-rapidez-ct::button.inactive> | ||
</div> |
4 changes: 4 additions & 0 deletions
4
resources/views/checkout/partials/buttons/new-address.blade.php
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<button v-on:click.prevent="toggleEdit" class="flex flex-col items-center justify-center gap-y-2 text-inactive font-medium bg-ct-inactive-100 rounded-xl max-sm:hidden"> | ||
<span>+</span> | ||
<span>@lang('Add new address')</span> | ||
</button> |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<template v-if="checkout.step !== 4"> | ||
<x-rapidez-ct::layout.checkout> | ||
<x-slot:header> | ||
@include('rapidez-ct::checkout.partials.header') | ||
</x-slot:header> | ||
|
||
<template v-if="checkout.step == 2 && hasItems"> | ||
@include('rapidez-ct::checkout.steps.credentials') | ||
</template> | ||
|
||
<template v-if="checkout.step == 3"> | ||
@include('rapidez-ct::checkout.steps.payment') | ||
</template> | ||
|
||
<x-slot:sidebar> | ||
@include('rapidez-ct::checkout.partials.sidebar.sidebar') | ||
</x-slot:sidebar> | ||
</x-rapidez-ct::layout.checkout> | ||
</template> | ||
|
||
<template v-if="checkout.step == 4"> | ||
@include('rapidez-ct::checkout.steps.success') | ||
</template> |
21 changes: 0 additions & 21 deletions
21
resources/views/checkout/partials/sections/address.blade.php
This file was deleted.
Oops, something went wrong.
55 changes: 0 additions & 55 deletions
55
resources/views/checkout/partials/sections/login.blade.php
This file was deleted.
Oops, something went wrong.
31 changes: 31 additions & 0 deletions
31
resources/views/checkout/partials/sections/login/logged-out.blade.php
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<x-rapidez-ct::input | ||
name="email" | ||
type="email" | ||
label="Email" | ||
v-bind:value="email" | ||
v-on:input="loginInputChange" | ||
v-on:blur="$root.guestEmail = email; if(!password) { go() }" | ||
class="justify-center" | ||
required | ||
:placeholder="__('Enter your e-mail address')" | ||
/> | ||
|
||
<x-rapidez-ct::input | ||
name="password" | ||
type="password" | ||
v-if="!emailAvailable" | ||
label="Password" | ||
ref="password" | ||
v-on:input="loginInputChange" | ||
required | ||
/> | ||
|
||
<p v-if="!emailAvailable" class="self-end text-ct-inactive"> | ||
@lang('You already have an account with this e-mail address. Please log in to continue.') | ||
</p> | ||
<p v-else class="self-end text-ct-inactive"> | ||
@lang('We will send your order confirmation to this e-mail address. We will also check if you already have an account so you can checkout more efficiently.') | ||
</p> | ||
<x-rapidez-ct::button.primary v-if="!emailAvailable" v-on:click.prevent="go" dusk="continue"> | ||
@lang('Login') | ||
</x-rapidez-ct::button.primary> |
1 change: 1 addition & 0 deletions
1
resources/views/checkout/partials/sections/payment/payment-methods.blade.php
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
25 changes: 25 additions & 0 deletions
25
resources/views/checkout/partials/shipping/methods.blade.php
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<div v-for="(method, index) in checkout.shipping_methods" class="mt-5 flex flex-col gap-2"> | ||
<x-rapidez-ct::input.radio | ||
v-bind:value="method.carrier_code+'_'+method.method_code" | ||
v-bind:dusk="'method-'+index" | ||
v-model="checkout.shipping_method" | ||
name="shipping_method" | ||
class="!py-4" | ||
required | ||
> | ||
<div class="flex flex-col sm:w-3/5"> | ||
<span class="text-ct-neutral font-medium text-base">@{{ method.carrier_title }}</span> | ||
<span class="text-ct-inactive text-sm">@{{ method.method_title }}</span> | ||
</div> | ||
<div class="text-right text-sm font-medium"> | ||
<img | ||
width="32" | ||
height="32" | ||
class="max-h-8" | ||
v-bind:alt="method.carrier_title" | ||
v-bind:src="`/vendor/shipping-icons/${method.carrier_title}.svg`" | ||
onerror="this.onerror=null; this.src='/vendor/shipping-icons/envelope.svg'" | ||
/> | ||
</div> | ||
</x-rapidez-ct::input.radio> | ||
</div> |
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,19 +1,22 @@ | ||
<x-rapidez-ct::title-progress-bar :href="route('cart')"> | ||
<x-rapidez-ct::title-progress-bar> | ||
@lang('Credentials') | ||
</x-rapidez-ct::title-progress-bar> | ||
|
||
<form id="credentials" v-on:submit.prevent="save(['credentials'], 3)"> | ||
<x-rapidez-ct::sections> | ||
@include('rapidez-ct::checkout.partials.sections.login') | ||
@include('rapidez-ct::checkout.partials.sections.address') | ||
@include('rapidez-ct::checkout.partials.sections.newsletter') | ||
@include('rapidez-ct::checkout.partials.sections.shipping') | ||
</x-rapidez-ct::sections> | ||
</form> | ||
|
||
<x-rapidez-ct::toolbar> | ||
<x-rapidez-ct::button.outline :href="route('cart')" class="flex justify-center items-center !p-0 w-12 h-12 max-md:hidden"> | ||
<x-heroicon-o-arrow-long-left class="w-6 h-6"/> | ||
</x-rapidez-ct::button.outline> | ||
<x-rapidez-ct::button.enhanced form="credentials" class="w-full md:w-1/2" loader> | ||
|
||
<x-rapidez-ct::button.enhanced class="relative w-full md:w-1/2" form="credentials" loader> | ||
@lang('Continue') | ||
</x-rapidez-ct::button.enhanced> | ||
</x-rapidez-ct::toolbar> | ||
</x-rapidez-ct::toolbar> |
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