PageSourceSearch

https://mikugame.icu/_next/static/chunks/app/layout-af90ac011a869f9b.js

js mikugame.icu collected 2026-10-09 22:11:07 UTC 3,247 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7177],{1743:()=>{},1757:(e,t,r)=>{"use strict";r.d(t,{default:()=>i});var s=r(5155),a=r(2115);function i(){let[e,t]=(0,a.useState)([]),[r,i]=(0,a.useState)([]),[n,l]=(0,a.useState)(!1);return((0,a.useEffect)(()=>{let e=()=>{l(window.innerWidth<1280)};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),(0,a.useEffect)(()=>{let e=async()=>{try{let e=await fetch("/api/recent-downloads",{signal:AbortSignal.timeout(1e4)}),r=await e.json();if(r.error)throw Error(r.error);let s=r.data;if(s&&s.length>0){let e=s.map(e=>({id:`download-${e.game_id}-${e.downloaded_at}`,game:{id:e.game_id,title:e.game_title,download_count:0,updated_at:e.downloaded_at,table_source:e.game_type},type:"download",timestamp:e.downloaded_at}));t(e)}}catch(e){}},r=setTimeout(e,3e3),s=setInterval(e,18e5);return()=>{clearTimeout(r),clearInterval(s)}},[]),(0,a.useEffect)(()=>{if(0===e.length)return;let t=()=>{let t=n?1:3;if(e.length<=t)return e;let r=new Map;e.forEach(e=>{r.has(e.game.id)||r.set(e.game.id,[]),r.get(e.game.id).push(e)});let s=[...Array.from(r.keys())].sort(()=>Math.random()-.5),a=[];for(let e of s){let s=r.get(e),i=s[Math.floor(Math.random()*s.length)];if(a.push(i),a.length>=t)break}return a.slice(0,t)};i(t());let r=setInterval(()=>{i(t())},6e3);return()=>clearInterval(r)},[e,n]),0===r.length)?null:(0,s.jsx)("div",{className:"fixed bottom-4 right-4 z-50 space-y-1.5",children:r.map((e,t)=>(0,s.jsx)("div",{className:`transition-all duration-500 ease-in-out transform ${0===t?"animate-slide-up-first":1===t?"animate-slide-up-second":"animate-slide-up-third"}`,children:(0,s.jsx)("a",{href:(e=>{if(e.table_source)switch(e.table_source){case"h_games":return`/h-games/${e.id}`;case"galgames":return`/galgame/${e.id}`;case"modpacks":return`/modpacks/${e.id}`}return`/games/${e.id}`})(e.game),className:"block max-w-[min(24rem,calc(100vw-2rem))] bg-gray-800 rounded-lg shadow-lg border border-gray-700 p-3 hover:shadow-xl transition-shadow duration-300 cursor-pointer",children:(0,s.jsxs)("div",{className:"flex items-start space-x-2.5",children:[(0,s.jsx)("div",{className:"flex-shrink-0 w-2.5 h-2.5 rounded-full mt-1 bg-green-500"}),(0,s.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,s.jsx)("p",{className:"text-sm font-medium text-white truncate",children:e.game.title.length>(n?5:15)?`${e.game.title.substring(0,n?5:15)}...`:e.game.title}),(0,s.jsx)("p",{className:"text-xs text-gray-400",children:"刚刚被下载"})]})]})})},e.id))})}},8884:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,2593,23)),Promise.resolve().then(r.t.bind(r,5348,23)),Promise.resolve().then(r.t.bind(r,1743,23)),Promise.resolve().then(r.bind(r,7637)),Promise.resolve().then(r.bind(r,2675)),Promise.resolve().then(r.bind(r,9483)),Promise.resolve().then(r.bind(r,2604)),Promise.resolve().then(r.bind(r,4883)),Promise.resolve().then(r.bind(r,8882)),Promise.resolve().then(r.bind(r,1509)),Promise.resolve().then(r.bind(r,7159)),Promise.resolve().then(r.bind(r,4929)),Promise.resolve().then(r.bind(r,7271)),Promise.resolve().then(r.bind(r,1757)),Promise.resolve().then(r.bind(r,1159))}},e=>{e.O(0,[3334,5730,9756,3580,1780,1411,8441,3794,7358],()=>e(e.s=8884)),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.