3535 @resume =" () => resumeDownload () "
3636 :status =" status "
3737 />
38- <a
39- :href =" remoteUrl"
40- target =" _blank"
41- type =" button"
38+ <NuxtLink
4239 class="transition-transform duration-300 hover:scale-105 active:scale-95 inline-flex items-center rounded-md bg-zinc-800/50 px-6 font-semibold text-white shadow-xl backdrop-blur-sm hover:bg-zinc-800 /80 uppercase font-display"
40+ :to =" {
41+ path: ' /store' ,
42+ query: {
43+ gameId: game .id ,
44+ },
45+ } "
4346 >
4447 <BuildingStorefrontIcon class="mr-2 size-5" aria-hidden="true" />
4548 Store
46- </a >
49+ </NuxtLink >
4750 </div >
4851 </div >
4952
171174 </div >
172175
173176 <div class =" space-y-6" >
174- <div v-if =" versionOptions && versionOptions.length > 0 && currentVersionOption" >
177+ <div
178+ v-if ="
179+ versionOptions && versionOptions.length > 0 && currentVersionOption
180+ "
181+ >
175182 <Listbox as="div" v-model =" installVersionIndex " >
176183 <ListboxLabel class="block text-sm/6 font-medium text-zinc-100"
177184 >Version</ListboxLabel
188195 on
189196 {{ currentVersionOption.platform }} ({{
190197 formatKilobytes(
191- currentVersionOption.size.installSize / 1024
198+ currentVersionOption.size.installSize / 1024,
192199 )
193200 }}B)</span
194201 >
233240 >{{ version.displayName || version.versionPath }} on
234241 {{ version.platform }} ({{
235242 formatKilobytes(
236- versionOptions[installVersionIndex].size.installSize / 1024
243+ versionOptions[installVersionIndex].size
244+ .installSize / 1024,
237245 )
238246 }}B)</span
239247 >
314322 </div >
315323 <ul role =" list" class =" mt-2 divide-y divide-white/5" >
316324 <li
317- v-for =" content in currentVersionOption
318- .requiredContent"
325+ v-for =" content in currentVersionOption.requiredContent"
319326 :key =" content.versionId"
320327 :class =" [
321328 !installDepsDisabled[content.versionId]
@@ -577,7 +584,7 @@ const mediaUrls = await Promise.all(
577584 game .value .mImageCarouselObjectIds .map (async (v ) => {
578585 const src = await useObject (v );
579586 return src ;
580- })
587+ }),
581588);
582589
583590const htmlDescription = micromark (game .value .mDescription );
@@ -611,7 +618,9 @@ const installVersionIndex = ref(0);
611618const installDir = ref (0 );
612619const installDepsDisabled = ref <{ [key : string ]: boolean }>({});
613620
614- const currentVersionOption = computed (() => versionOptions .value ?.[installVersionIndex .value ]);
621+ const currentVersionOption = computed (
622+ () => versionOptions .value ?.[installVersionIndex .value ],
623+ );
615624async function install() {
616625 try {
617626 if (! versionOptions .value ) throw new Error (" Versions have not been loaded" );
@@ -661,7 +670,7 @@ async function launch() {
661670 try {
662671 const fetchedLaunchOptions = await invoke <Array <{ name: string }>>(
663672 " get_launch_options" ,
664- { id: game .value .id }
673+ { id: game .value .id },
665674 );
666675 if (fetchedLaunchOptions .length == 1 ) {
667676 await launchIndex (0 );
@@ -676,7 +685,7 @@ async function launch() {
676685 description: ` Drop failed to launch "${game .value .mName }": ${e } ` ,
677686 buttonText: " Close" ,
678687 },
679- (e , c ) => c ()
688+ (e , c ) => c (),
680689 );
681690 console .error (e );
682691 }
@@ -707,7 +716,7 @@ async function launchIndex(index: number) {
707716 description: ` Drop failed to launch "${game .value .mName }": ${e } ` ,
708717 buttonText: " Close" ,
709718 },
710- (e , c ) => c ()
719+ (e , c ) => c (),
711720 );
712721 }
713722}
@@ -731,7 +740,7 @@ async function kill() {
731740 description: ` Drop failed to stop "${game .value .mName }": ${e } ` ,
732741 buttonText: " Close" ,
733742 },
734- (e , c ) => c ()
743+ (e , c ) => c (),
735744 );
736745 console .error (e );
737746 }
0 commit comments