vite missing files

This commit is contained in:
Loïc Gremaud 2026-05-10 03:05:45 +02:00
parent 0b138e315c
commit 3c86ca4c91
Signed by: Legrems
GPG Key ID: D4620E6DF3E0121D
10 changed files with 73 additions and 33 deletions

View File

@ -0,0 +1 @@
import{k as b,c as v,r as g,l as a,p as n,s as t,F as h,x,v as i,A as f,O as _}from"./style-D1Ozo1PL.js";const y={class:"min-h-screen bg-base-300 flex items-center justify-center px-4"},w={class:"w-full max-w-6xl"},k={class:"grid grid-cols-1 md:grid-cols-2 gap-8"},S=["onClick"],I={class:"relative h-60 bg-base-300 overflow-hidden"},j=["src","alt","onError"],E={key:1,class:"w-full h-full bg-gradient-to-br from-blue-600 to-blue-400 flex items-center justify-center text-white"},N={class:"card-body"},C={class:"card-title text-2xl"},A={class:"text-base-content/70"},B=b({__name:"Home",setup(z){const c=v(()=>[{id:"opus-magnum",title:"Opus Magnum",description:"Submit your best Opus Magnum puzzle solutions",appId:558990,path:"/opus-magnum"},{id:"noita",title:"Noita",description:"Submit your greatest Noita achievements",appId:881100,path:"/noita"}]),r=g(new Set),d=o=>`https://cdn.akamai.steamstatic.com/steam/apps/${o}/header.jpg`,u=o=>{r.value.add(o)},p=o=>{window.location.href=o};return(o,e)=>(n(),a("div",y,[t("div",w,[e[3]||(e[3]=t("div",{class:"text-center mb-12"},[t("h1",{class:"text-5xl font-bold mb-4"},"PolyLAN Submitter"),t("p",{class:"text-xl text-base-content/70"}," Choose a game and submit your best solutions ")],-1)),t("div",k,[(n(!0),a(h,null,x(c.value,s=>(n(),a("div",{key:s.id,onClick:m=>p(s.path),class:"card card-xl bg-base-200 shadow-xl hover:shadow-2xl transition-all cursor-pointer transform hover:-translate-y-2 hover:scale-[1.05] hover:bg-base-100 overflow-hidden"},[t("figure",I,[r.value.has(s.appId)?(n(),a("div",E,[...e[0]||(e[0]=[t("i",{class:"mdi mdi-gamepad-variant text-5xl"},null,-1)])])):(n(),a("img",{key:0,src:d(s.appId),alt:s.title,onError:m=>u(s.appId),class:"w-full h-full object-cover"},null,40,j)),e[1]||(e[1]=t("div",{class:"absolute inset-0 bg-black/30 group-hover:bg-black/20 transition-colors"},null,-1))]),t("div",N,[t("h2",C,i(s.title),1),t("p",A,i(s.description),1),e[2]||(e[2]=t("div",{class:"card-actions justify-end mt-4"},[t("button",{class:"btn btn-primary"},[t("i",{class:"mdi mdi-arrow-right mr-2"}),f(" Submit results ")])],-1))])],8,S))),128))]),e[4]||(e[4]=t("div",{class:"text-center mt-12 text-base-content/50"},[t("p",null,"Select a game above to begin submitting")],-1))])]))}}),l="#app",O=document.querySelector(l),$=_(B,{...O?.dataset});$.mount(l);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,21 @@
{
"_style-D1Ozo1PL.js": {
"file": "assets/style-D1Ozo1PL.js",
"name": "style",
"css": [
"assets/style-IIn-gCA5.css"
],
"assets": [
"assets/materialdesignicons-webfont-CSr8KVlo.eot",
"assets/materialdesignicons-webfont-Dp5v-WZN.woff2",
"assets/materialdesignicons-webfont-PXm3-2wK.woff",
"assets/materialdesignicons-webfont-B7mPwVP_.ttf"
]
},
"_style-IIn-gCA5.css": {
"file": "assets/style-IIn-gCA5.css",
"src": "_style-IIn-gCA5.css"
},
"node_modules/.pnpm/@mdi+font@7.4.47/node_modules/@mdi/font/fonts/materialdesignicons-webfont.eot": {
"file": "assets/materialdesignicons-webfont-CSr8KVlo.eot",
"src": "node_modules/.pnpm/@mdi+font@7.4.47/node_modules/@mdi/font/fonts/materialdesignicons-webfont.eot"
@ -15,19 +32,31 @@
"file": "assets/materialdesignicons-webfont-Dp5v-WZN.woff2",
"src": "node_modules/.pnpm/@mdi+font@7.4.47/node_modules/@mdi/font/fonts/materialdesignicons-webfont.woff2"
},
"src/home.ts": {
"file": "assets/home-BOcY-OpH.js",
"name": "home",
"src": "src/home.ts",
"isEntry": true,
"imports": [
"_style-D1Ozo1PL.js"
]
},
"src/noita.ts": {
"file": "assets/noita-BhIRpzeI.js",
"name": "noita",
"src": "src/noita.ts",
"isEntry": true,
"imports": [
"_style-D1Ozo1PL.js"
]
},
"src/opus-magnum.ts": {
"file": "assets/opus_magnum-CDmJjerY.js",
"file": "assets/opus_magnum-Be8w3rHR.js",
"name": "opus_magnum",
"src": "src/opus-magnum.ts",
"isEntry": true,
"css": [
"assets/opus_magnum-IIn-gCA5.css"
],
"assets": [
"assets/materialdesignicons-webfont-CSr8KVlo.eot",
"assets/materialdesignicons-webfont-Dp5v-WZN.woff2",
"assets/materialdesignicons-webfont-PXm3-2wK.woff",
"assets/materialdesignicons-webfont-B7mPwVP_.ttf"
"imports": [
"_style-D1Ozo1PL.js"
]
}
}

File diff suppressed because one or more lines are too long

View File

@ -19,7 +19,11 @@ export default defineConfig({
manifest: 'manifest.json',
outDir: resolve("./static_source/vite"),
rollupOptions: {
input: { opus_magnum: resolve('./src/opus-magnum.ts') }
input: {
opus_magnum: resolve('./src/opus-magnum.ts'),
home: resolve('./src/home.ts'),
noita: resolve('./src/noita.ts'),
}
}
},
});

View File

@ -21,7 +21,11 @@ export default defineConfig({
outDir: resolve("./static_source/vite"),
rollupOptions: {
input:
{ opus_magnum: resolve('./src/opus-magnum.ts') }
{
opus_magnum: resolve('./src/opus-magnum.ts'),
home: resolve('./src/home.ts'),
noita: resolve('./src/noita.ts'),
}
}
},
})