feat: Implemented dolphin integration
This commit is contained in:
parent
edbc390d14
commit
a69147a4f7
24 changed files with 220 additions and 59 deletions
10
src/mainview/components/store/InvalidStoreError.tsx
Normal file
10
src/mainview/components/store/InvalidStoreError.tsx
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { ErrorComponentProps } from "@tanstack/react-router";
|
||||
import { TriangleAlert } from "lucide-react";
|
||||
|
||||
export default function Error (data: ErrorComponentProps)
|
||||
{
|
||||
return <div className='flex flex-col w-full gap-2 h-64 items-center justify-center'>
|
||||
<div className='flex gap-2 font-bold text-2xl text-error'><TriangleAlert />Invalid Store. Update App.</div>
|
||||
<div className='text-base-content/40'>{data.error.message}</div>
|
||||
</div>;
|
||||
}
|
||||
|
|
@ -81,8 +81,8 @@ export function StoreEmulatorCard (data: {
|
|||
</div>
|
||||
|
||||
<div className="flex gap-1 mt-1 h-10 items-center">
|
||||
{!!data.emulator.integration && data.emulator.validSources.some(s => s.type === 'store') && <div className="tooltip tooltip-primary" data-tip="Has Integration">
|
||||
<div className="bg-primary text-primary-content rounded-full p-1"><WandSparkles /></div>
|
||||
{!!data.emulator.integration && <div aria-disabled={!data.emulator.integration.possible} className="tooltip not-aria-disabled:tooltip-primary" data-tip={data.emulator.integration.possible ? "Has Integration" : "Can Integrate"}>
|
||||
<div className="bg-primary in-aria-disabled:bg-base-200 text-primary-content rounded-full p-1.5"><WandSparkles className="size-5" /></div>
|
||||
</div>}
|
||||
{data.emulator.validSources.slice(0, 3).map(s =>
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue