All Scripts Are Moved To Footer

This commit is contained in:
devansh bawari 2020-09-18 13:56:43 +05:30
parent 891ae5c085
commit 44b489dded
11 changed files with 904 additions and 898 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"/></svg>

After

Width:  |  Height:  |  Size: 324 B

View File

@ -1,5 +1,5 @@
{
"/js/velocity.js": "/js/velocity.js?id=1163ad750316d05c0869",
"/css/velocity-admin.css": "/css/velocity-admin.css?id=612d35e452446366eef7",
"/css/velocity.css": "/css/velocity.css?id=8b1c7e45d2b61caa923a"
"/css/velocity-admin.css": "/css/velocity-admin.css?id=4322502d80a0e4a0affd",
"/css/velocity.css": "/css/velocity.css?id=3e4dedf3dd293f2a3389"
}

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M0 0h24v24H0z" fill="none"/><circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"/></svg>

After

Width:  |  Height:  |  Size: 324 B

View File

@ -2566,13 +2566,6 @@
height: 24px !important;
}
.camera-icon {
width: 24px;
display: inline-block;
background-size: cover;
background-image: url(/vendor/webkul/ui/assets/images/Camera.svg);
}
.image-search-result {
width: 100%;
padding: 20px;

View File

@ -6,6 +6,13 @@
background-image: url("../images/Icon-Velocity.svg");
}
.camera-icon {
background-image: url("../images/Camera.svg");
width: 24px;
display: inline-block;
background-size: cover;
}
.router-link-active,
.active {
.velocity-icon {

View File

@ -1,4 +1,5 @@
<script type="text/x-template" id="content-header-template">
@push('scripts')
<script type="text/x-template" id="content-header-template">
<header class="row velocity-divide-page vc-header header-shadow active">
<div class="vc-small-screen container" v-if="isMobile()">
<div class="row">
@ -396,7 +397,8 @@
</ul>
</div>
</header>
</script>
</script>
@endpush
@php
$cart = cart()->getCart();
@ -408,7 +410,8 @@
}
@endphp
<script type="text/javascript">
@push('scripts')
<script type="text/javascript">
(() => {
Vue.component('content-header', {
template: '#content-header-template',
@ -559,4 +562,5 @@
},
});
})()
</script>
</script>
@endpush

View File

@ -1,10 +1,5 @@
<style>
.camera-icon {
background-image: url("{{ asset('/vendor/webkul/ui/assets/images/Camera.svg') }}");
}
</style>
<script type="text/x-template" id="cart-btn-template">
@push('scripts')
<script type="text/x-template" id="cart-btn-template">
<button
type="button"
id="mini-cart"
@ -20,15 +15,15 @@
<span class="rango-arrow-down"></span>
</div>
</button>
</script>
</script>
<script type="text/x-template" id="close-btn-template">
<script type="text/x-template" id="close-btn-template">
<button type="button" class="close disable-box-shadow">
<span class="white-text fs20" @click="togglePopup">×</span>
</button>
</script>
</script>
<script type="text/x-template" id="quantity-changer-template">
<script type="text/x-template" id="quantity-changer-template">
<div :class="`quantity control-group ${errors.has(controlName) ? 'has-error' : ''}`">
<label class="required">{{ __('shop::app.products.quantity') }}</label>
<button type="button" class="decrease" @click="decreaseQty()">-</button>
@ -45,11 +40,13 @@
<span class="control-error" v-if="errors.has(controlName)">@{{ errors.first(controlName) }}</span>
</div>
</script>
</script>
@endpush
@include('velocity::UI.header')
<script type="text/x-template" id="logo-template">
@push('scripts')
<script type="text/x-template" id="logo-template">
<a
:class="`left ${addClass}`"
href="{{ route('shop.home.index') }}">
@ -60,9 +57,9 @@
<img class="logo" src="{{ asset('themes/velocity/assets/images/logo-text.png') }}" />
@endif
</a>
</script>
</script>
<script type="text/x-template" id="searchbar-template">
<script type="text/x-template" id="searchbar-template">
<div class="row no-margin right searchbar">
<div class="col-lg-5 col-md-12 no-padding input-group">
<form
@ -166,12 +163,12 @@
{!! view_render_event('bagisto.shop.layout.header.wishlist.after') !!}
</div>
</div>
</script>
</script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/mobilenet"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/mobilenet"></script>
<script type="text/x-template" id="image-search-component-template">
<script type="text/x-template" id="image-search-component-template">
<div class="d-inline-block">
<label class="image-search-container" for="image-search-container">
<i class="icon camera-icon"></i>
@ -189,9 +186,9 @@
:src="uploadedImageUrl" />
</label>
</div>
</script>
</script>
<script type="text/javascript">
<script type="text/javascript">
(() => {
Vue.component('cart-btn', {
template: '#cart-btn-template',
@ -445,4 +442,5 @@
}
});
})()
</script>
</script>
@endpush

View File

@ -31,22 +31,6 @@
<link rel="icon" sizes="16x16" href="{{ asset('/themes/velocity/assets/images/static/v-icon.png') }}" />
@endif
<script
type="text/javascript"
src="{{ asset('themes/velocity/assets/js/jquery.min.js') }}">
</script>
<script
type="text/javascript"
baseUrl="{{ url()->to('/') }}"
src="{{ asset('themes/velocity/assets/js/velocity.js') }}">
</script>
<script
type="text/javascript"
src="{{ asset('themes/velocity/assets/js/jquery.ez-plus.js') }}">
</script>
@yield('head')
@section('seo')
@ -204,6 +188,22 @@
})();
</script>
<script
type="text/javascript"
src="{{ asset('themes/velocity/assets/js/jquery.min.js') }}">
</script>
<script
type="text/javascript"
src="{{ asset('themes/velocity/assets/js/jquery.ez-plus.js') }}">
</script>
<script
type="text/javascript"
baseUrl="{{ url()->to('/') }}"
src="{{ asset('themes/velocity/assets/js/velocity.js') }}">
</script>
<script
type="text/javascript"
src="{{ asset('vendor/webkul/ui/assets/js/ui.js') }}">

View File

@ -16,6 +16,8 @@ mix
"js/velocity.js"
)
.copy(__dirname + "/src/Resources/assets/images", publicPath + "/images")
.sass(
__dirname + '/src/Resources/assets/sass/admin.scss',
__dirname + '/' + publicPath + '/css/velocity-admin.css'