PageSourceSearch

https://www.detta.space/_nuxt/OcWakomy.js

js detta.space collected 2026-10-08 20:21:00 UTC 4,868 bytes, 1 lines download raw bytes

1import{_ as M}from"./DXGLmJY7.js";import{d as b,u as I,i as L,x as N,g as e,o as c,b as f,w as _,I as m,a as d,f as T,e as j,E as x,m as V,a2 as D,r as w,az as O,aA as S,aB as q,ag as A,aC as E,H as C,aD as P,c as y,h as G,F as z,j as H,ac as J,l as F,aE as R,C as K,J as Q}from"./_Rr8vU5y.js";import{a as W}from"./DFkmHt5O.js";import{C as X}from"./hj15J9Ji.js";import{_ as Y,a as Z}from"./DLX37Fg9.js";import{_ as ee}from"./DkAnqIj3.js";import{_ as te}from"./Dc6yyKAu.js";import{_ as ae}from"./DMqdnFH1.js";import{u as oe}from"./DJHVB1s2.js";import"./BAwkImlE.js";import"./kYBy0zob.js";import"./DUwBdF4p.js";import"./CdXEL8Lm.js";import"./92s3wAHG.js";const ne={class:"flex flex-col space-y-4"},se=b({__name:"create",props:V({},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:V(["success"],["update:modelValue"]),setup(l,{emit:a}){const n=I(l,"modelValue"),r=D({}),t=w();v();async function i(){if(!t.value)return;const o=await W(t.value);await S(),o&&q(`/my/game/${o.id}/edit`)}function v(){t.value=new X("New Game")}return L(()=>{N(n,()=>{n.value&&v()})}),(o,s)=>{const p=j,g=T,h=O;return e(t)?(c(),f(h,{key:0,open:n.value,"onUpdate:open":s[2]||(s[2]=u=>n.value=u),schema:e(r),initialState:e(t),onSubmit:i,title:o.$t("games.create"),submitButtonText:o.$t("generic.add")},{default:_(()=>[m("div",ne,[d(g,{class:"w-full",label:o.$t("generic.title")},{default:_(()=>[d(p,{modelValue:e(t).name,"onUpdate:modelValue":s[0]||(s[0]=u=>e(t).name=u),class:"w-full",autofocus:"",onFocus:s[1]||(s[1]=u=>u.target.select())},null,8,["modelValue"])]),_:1},8,["label"])])]),_:1},8,["open","schema","initialState","title","submitButtonText"])):x("",!0)}}}),ie=Object.assign(se,{__name:"FeatureGameFormCreate"}),le={key:0,class:"aspect-video rounded-2xl overflow-hidden object-center"},re={key:1,class:"bg-black w-max max-w-full aspect-video"},me={class:"h-full flex items-end space-x-6"},de={class:"flex items-center justify-center"},ce={class:"flex items-center justify-center"},_e={class:"font-bold font-mono pl-2"},ue={class:"flex items-center justify-center"},pe={class:"flex items-center justify-center"},fe={class:"font-bold font-mono pl-2"},ve=b({__name:"card",props:{developer:{type:Object,required:!0}},setup(l){const a=l,n=w("none"),r=a.developer.game.description?.slice(0,100),t=G(()=>{if(a.developer.game.data.preview_image?.id)return n.value="mavis",a.developer.game.data.preview_image.id;if(a.developer.game.data.preview_image?.detta_id)return n.value="detta",a.developer.game.data.preview_image.detta_id;if(a.developer.game.data.images[0]?.id)return n.value="mavis",a.developer.game.data.images[0]?.id;if(a.developer.game.data.images[0]?.detta_id)return n.value="detta",a.developer.game.data.images[0]?.detta_id});return(i,v)=>{const o=Y,s=Z,p=A,g=ee;return c(),f(g,{title:l.developer.game.name,description:e(r),to:`/my/game/${l.developer.game_id}/edit`},{leading:_(()=>[e(t)?(c(),y("div",le,[e(t)&&e(n)==="mavis"?(c(),f(o,{key:0,use_id:e(t),class:"object-contain transition-all duration-200",loading:"lazy",variant:"thumbnail"},null,8,["use_id"])):x("",!0),e(t)&&e(n)==="detta"?(c(),f(s,{key:1,id:e(t)},null,8,["id"])):x("",!0)])):(c(),y("div",re))]),default:_(()=>[m("div",me,[m("div",de,[m("div",ce,[d(p,{name:"icon_visible"in i?i.icon_visible:e(E)},null,8,["name"])]),m("div",_e,C(l.developer.game.views),1)]),m("div",ue,[m("div",pe,[d(p,{name:"icon_download"in i?i.icon_download:e(P)},null,8,["name"])]),m("div",fe,C(l.developer.game.downloads),1)])])]),_:1},8,["title","description","to"])}}}),ge=Object.assign(ve,{__name:"FeatureGameMyCard"}),we={class:"grid gap-4 grid-cols-2 md:grid-cols-4"},ye=b({__name:"list",props:{developers:{type:Array,required:!0}},setup(l){return(a,n)=>{const r=ge;return c(),y("div",we,[(c(!0),y(z,null,H(l.developers,t=>(c(),f(r,{developer:t},null,8,["developer"]))),256))])}}}),be=Object.assign(ye,{__name:"FeatureGameMyList"}),he={class:"w-full flex justify-between"},$e={class:"pt-8"},De=b({__name:"index",async setup(l){let a,n;const r=w(),t=([a,n]=J(()=>oe().getGameList()),a=await a,n(),a),i=w(""),v=G(()=>t.value.filter(o=>o.game.name.toLowerCase().includes(i.value.toLowerCase())));return console.log(t),(o,s)=>{const p=M,g=j,h=K,u=ie,U=be,k=te,B=ae;return c(),f(B,null,{header:_(()=>[d(p,{title:o.$t("games.my")},null,8,["title"])]),body:_(()=>[d(k,null,{default:_(()=>[m("div",he,[d(g,{icon:"icon_search"in o?o.icon_search:e(R),class:"w-1/3",placeholder:o.$t("generic.search_term"),modelValue:e(i),"onUpdate:modelValue":s[0]||(s[0]=$=>F(i)?i.value=$:null)},null,8,["icon","placeholder","modelValue"]),d(h,{onClick:s[1]||(s[1]=()=>{r.value=!0})},{default:_(()=>[Q(C(o.$t("games.create")),1)]),_:1}),d(u,{modelValue:e(r),"onUpdate:modelValue":s[2]||(s[2]=$=>F(r)?r.value=$:null)},null,8,["modelValue"])]),m("div",$e,[d(U,{developers:e(v)},null,8,["developers"])])]),_:1})]),_:1})}}});
1export{De as default};

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.