performance test
This commit is contained in:
parent
71f17429ca
commit
2f58515264
23 changed files with 1210 additions and 5842 deletions
4937
package-lock.json
generated
4937
package-lock.json
generated
File diff suppressed because it is too large
Load diff
18
package.json
18
package.json
|
@ -6,19 +6,17 @@
|
|||
"build": "vite build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@erbelion/vite-plugin-laravel-purgecss": "^0.2.3",
|
||||
"@erbelion/vite-plugin-laravel-purgecss": "^0.2.5",
|
||||
"@popperjs/core": "^2.11.8",
|
||||
"@rollup/plugin-inject": "^5.0.5",
|
||||
"@vitejs/plugin-vue": "^5.0.0",
|
||||
"autoprefixer": "^10.4.12",
|
||||
"bootstrap": "^5.3.2",
|
||||
"laravel-vite-plugin": "^1.0.1",
|
||||
"@vitejs/plugin-vue": "^5.1.2",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"bootstrap": "^5.3.3",
|
||||
"laravel-vite-plugin": "^1.0.5",
|
||||
"lodash": "^4.17.21",
|
||||
"postcss": "^8.4.31",
|
||||
"rollup-plugin-critical": "^1.0.13",
|
||||
"postcss": "^8.4.41",
|
||||
"sass": "^1.69.5",
|
||||
"vanilla-lazyload": "^17.8.5",
|
||||
"vite": "^5.0.11"
|
||||
"vanilla-lazyload": "^17.9.0",
|
||||
"vite": "^5.4.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fontsource/bai-jamjuree": "^5.0.8",
|
||||
|
|
File diff suppressed because one or more lines are too long
5
public/build/assets/app-DMJ9SGkc.js
Normal file
5
public/build/assets/app-DMJ9SGkc.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 140 KiB |
|
@ -1 +0,0 @@
|
|||
import{L as e}from"./lazyload.esm-12OIww4J.js";window.lLoad=new e({elements_selector:".lazy"});
|
1
public/build/assets/img-BW8E9934.js
Normal file
1
public/build/assets/img-BW8E9934.js
Normal file
|
@ -0,0 +1 @@
|
|||
import{L as e}from"./lazyload.esm-2_xOKgVb.js";window.lLoad=new e({elements_selector:".lazy"});
|
File diff suppressed because one or more lines are too long
1
public/build/assets/lazyload.esm-2_xOKgVb.js
Normal file
1
public/build/assets/lazyload.esm-2_xOKgVb.js
Normal file
File diff suppressed because one or more lines are too long
|
@ -1 +1 @@
|
|||
import{L as s}from"./lazyload.esm-12OIww4J.js";window.lazyFunctions={more:function(a){const n=a,e=JSON.parse(atob(a.dataset.params)),r=new Headers;r.append("Content-Type","application/json"),r.append("Accept","application/json");const o={page:e.page,route:e.route};"genre"in e.route_parameters&&(o.genre=e.route_parameters.genre);const p={method:"POST",headers:r,body:JSON.stringify(o)};fetch(e.route,p).then(t=>t.json()).then(t=>{const i=a.parentNode;i.innerHTML+=t.html,window.lLoad.update(),a.remove(),document.getElementById(a.getAttribute("id")).remove(),t.has_more_pages&&(e.page=t.current_page+1,n.setAttribute("href",n.getAttribute("href").replace(new RegExp(t.current_page+"$"),t.current_page+1)),n.setAttribute("data-params",btoa(JSON.stringify(e))),n.removeAttribute("data-ll-status"),n.classList.remove("entered"),i.appendChild(n),window.lMore.update())}).catch(t=>console.error(t))}};function c(a){var n=a.getAttribute("data-lazy-function"),e=window.lazyFunctions[n];e&&e(a)}window.lMore=new s({elements_selector:"#next-page",unobserve_entered:!0,callback_enter:c});
|
||||
import{L as s}from"./lazyload.esm-2_xOKgVb.js";window.lazyFunctions={more:function(a){const n=a,e=JSON.parse(atob(a.dataset.params)),r=new Headers;r.append("Content-Type","application/json"),r.append("Accept","application/json");const o={page:e.page,route:e.route};"genre"in e.route_parameters&&(o.genre=e.route_parameters.genre);const p={method:"POST",headers:r,body:JSON.stringify(o)};fetch(e.route,p).then(t=>t.json()).then(t=>{const i=a.parentNode;i.innerHTML+=t.html,window.lLoad.update(),a.remove(),document.getElementById(a.getAttribute("id")).remove(),t.has_more_pages&&(e.page=t.current_page+1,n.setAttribute("href",n.getAttribute("href").replace(new RegExp(t.current_page+"$"),t.current_page+1)),n.setAttribute("data-params",btoa(JSON.stringify(e))),n.removeAttribute("data-ll-status"),n.classList.remove("entered"),i.appendChild(n),window.lMore.update())}).catch(t=>console.error(t))}};function c(a){var n=a.getAttribute("data-lazy-function"),e=window.lazyFunctions[n];e&&e(a)}window.lMore=new s({elements_selector:"#next-page",unobserve_entered:!0,callback_enter:c});
|
|
@ -1,75 +1,83 @@
|
|||
{
|
||||
"_lazyload.esm-12OIww4J.js": {
|
||||
"file": "assets/lazyload.esm-12OIww4J.js"
|
||||
"_lazyload.esm-2_xOKgVb.js": {
|
||||
"file": "assets/lazyload.esm-2_xOKgVb.js",
|
||||
"name": "lazyload.esm"
|
||||
},
|
||||
"resources/images/home.webp": {
|
||||
"file": "assets/home-BTKKZvIc.webp",
|
||||
"file": "assets/home-FMopm8hx.webp",
|
||||
"src": "resources/images/home.webp"
|
||||
},
|
||||
"resources/js/app.js": {
|
||||
"file": "assets/app-ZdW3WXj1.js",
|
||||
"isEntry": true,
|
||||
"src": "resources/js/app.js"
|
||||
"file": "assets/app-DMJ9SGkc.js",
|
||||
"name": "app",
|
||||
"src": "resources/js/app.js",
|
||||
"isEntry": true
|
||||
},
|
||||
"resources/js/home.js": {
|
||||
"file": "assets/home-9hb-1U7n.js",
|
||||
"isEntry": true,
|
||||
"src": "resources/js/home.js"
|
||||
"file": "assets/home-BhWzZn8-.js",
|
||||
"name": "home",
|
||||
"src": "resources/js/home.js",
|
||||
"isEntry": true
|
||||
},
|
||||
"resources/js/img.js": {
|
||||
"file": "assets/img-8tqXJaKN.js",
|
||||
"imports": [
|
||||
"_lazyload.esm-12OIww4J.js"
|
||||
],
|
||||
"file": "assets/img-BW8E9934.js",
|
||||
"name": "img",
|
||||
"src": "resources/js/img.js",
|
||||
"isEntry": true,
|
||||
"src": "resources/js/img.js"
|
||||
"imports": [
|
||||
"_lazyload.esm-2_xOKgVb.js"
|
||||
]
|
||||
},
|
||||
"resources/js/jqfix.js": {
|
||||
"file": "assets/jqfix-XQjGhjYs.js",
|
||||
"isEntry": true,
|
||||
"src": "resources/js/jqfix.js"
|
||||
"file": "assets/jqfix-BaKlTciu.js",
|
||||
"name": "jqfix",
|
||||
"src": "resources/js/jqfix.js",
|
||||
"isEntry": true
|
||||
},
|
||||
"resources/js/load-more.js": {
|
||||
"file": "assets/load-more-IW-QvNJd.js",
|
||||
"imports": [
|
||||
"_lazyload.esm-12OIww4J.js"
|
||||
],
|
||||
"file": "assets/load-more-CJiZ-Ghi.js",
|
||||
"name": "load-more",
|
||||
"src": "resources/js/load-more.js",
|
||||
"isEntry": true,
|
||||
"src": "resources/js/load-more.js"
|
||||
"imports": [
|
||||
"_lazyload.esm-2_xOKgVb.js"
|
||||
]
|
||||
},
|
||||
"resources/js/watch.js": {
|
||||
"file": "assets/watch-eweoBqrQ.js",
|
||||
"isEntry": true,
|
||||
"src": "resources/js/watch.js"
|
||||
"file": "assets/watch-DyWjwkm3.js",
|
||||
"name": "watch",
|
||||
"src": "resources/js/watch.js",
|
||||
"isEntry": true
|
||||
},
|
||||
"resources/scss/app.scss": {
|
||||
"file": "assets/app-W1Im0Ckf.css",
|
||||
"isEntry": true,
|
||||
"src": "resources/scss/app.scss"
|
||||
"file": "assets/app-BKVzokcy.css",
|
||||
"src": "resources/scss/app.scss",
|
||||
"isEntry": true
|
||||
},
|
||||
"resources/scss/fa.scss": {
|
||||
"file": "assets/fa-G2W2mMIo.css",
|
||||
"isEntry": true,
|
||||
"src": "resources/scss/fa.scss"
|
||||
"file": "assets/fa-bZbaYwij.css",
|
||||
"src": "resources/scss/fa.scss",
|
||||
"isEntry": true
|
||||
},
|
||||
"resources/scss/google-fonts.scss": {
|
||||
"file": "assets/google-fonts-Hf30gNLt.css",
|
||||
"isEntry": true,
|
||||
"src": "resources/scss/google-fonts.scss"
|
||||
"file": "assets/google-fonts-d_fSA0u1.css",
|
||||
"src": "resources/scss/google-fonts.scss",
|
||||
"isEntry": true
|
||||
},
|
||||
"resources/scss/home.scss": {
|
||||
"file": "assets/home-w40geAFS.js",
|
||||
"isEntry": true,
|
||||
"src": "resources/scss/home.scss"
|
||||
"file": "assets/home-l0sNRNKZ.js",
|
||||
"name": "home",
|
||||
"src": "resources/scss/home.scss",
|
||||
"isEntry": true
|
||||
},
|
||||
"resources/scss/la.scss": {
|
||||
"file": "assets/la-XQhkln6V.css",
|
||||
"isEntry": true,
|
||||
"src": "resources/scss/la.scss"
|
||||
"file": "assets/la-BdCGSWfp.css",
|
||||
"src": "resources/scss/la.scss",
|
||||
"isEntry": true
|
||||
},
|
||||
"resources/scss/watch.scss": {
|
||||
"file": "assets/watch--s0EFSGo.css",
|
||||
"isEntry": true,
|
||||
"src": "resources/scss/watch.scss"
|
||||
"file": "assets/watch-D6zQQVIa.css",
|
||||
"src": "resources/scss/watch.scss",
|
||||
"isEntry": true
|
||||
}
|
||||
}
|
|
@ -41,7 +41,7 @@
|
|||
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script> --}}
|
||||
@vite(['resources/scss/app.scss'])
|
||||
|
||||
@vite(['resources/js/jqfix.js'])
|
||||
{{-- @vite(['resources/js/jqfix.js']) --}}
|
||||
{{-- @vite(['resources/js/app.js']) --}}
|
||||
@yield('head')
|
||||
@yield('schema')
|
||||
|
@ -83,10 +83,10 @@
|
|||
{!! Vite::content('resources/js/img.js')!!}
|
||||
</script> --}}
|
||||
{{-- <script type='text/javascript' src='https://code.jquery.com/jquery-3.7.1.min.js'></script> --}}
|
||||
{{-- <link rel="preload" as="script" href="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous">
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script> --}}
|
||||
{{-- @vite(['resources/js/img.js'])
|
||||
@vite(['resources/js/jqfix.js']) --}}
|
||||
<link rel="preload" as="script" href="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous">
|
||||
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
|
||||
{{-- @vite(['resources/js/img.js'])--}}
|
||||
{{-- @vite(['resources/js/jqfix.js']) --}}
|
||||
@vite(['resources/js/app.js'])
|
||||
@yield('footer')
|
||||
<script>
|
||||
|
|
|
@ -4,7 +4,6 @@ import {resolve} from 'path'
|
|||
import { defineConfig } from 'vite';
|
||||
import laravel from 'laravel-vite-plugin';
|
||||
import purge from '@erbelion/vite-plugin-laravel-purgecss'
|
||||
import inject from '@rollup/plugin-inject';
|
||||
|
||||
let host = 'playlab.test'
|
||||
|
||||
|
|
Loading…
Reference in a new issue