From 66668d85d603c5841d755a6023aa1925559fc6d4 Mon Sep 17 00:00:00 2001 From: 苏向夜 Date: Wed, 25 Feb 2026 01:32:51 +0800 Subject: chore(workspace): replace legacy codes --- packages/ui/src/components/InstancesView.svelte | 259 ------------------------ 1 file changed, 259 deletions(-) delete mode 100644 packages/ui/src/components/InstancesView.svelte (limited to 'packages/ui/src/components/InstancesView.svelte') diff --git a/packages/ui/src/components/InstancesView.svelte b/packages/ui/src/components/InstancesView.svelte deleted file mode 100644 index 5334f9e..0000000 --- a/packages/ui/src/components/InstancesView.svelte +++ /dev/null @@ -1,259 +0,0 @@ - - -
-
-

Instances

- -
- - {#if instancesState.instances.length === 0} -
-
-

No instances yet

-

Create your first instance to get started

-
-
- {:else} -
- {#each instancesState.instances as instance (instance.id)} -
instancesState.setActiveInstance(instance.id)} - onkeydown={(e) => e.key === "Enter" && instancesState.setActiveInstance(instance.id)} - > - {#if instancesState.activeInstanceId === instance.id} -
-
-
- {/if} - -
-

- {instance.name} -

-
- - - -
-
- -
- {#if instance.version_id} -

Version: {instance.version_id}

- {:else} -

No version selected

- {/if} - - {#if instance.mod_loader && instance.mod_loader !== "vanilla"} -

- Mod Loader: {instance.mod_loader} - {#if instance.mod_loader_version} - ({instance.mod_loader_version}) - {/if} -

- {/if} - -

Created: {formatDate(instance.created_at)}

- - {#if instance.last_played} -

Last played: {formatLastPlayed(instance.last_played)}

- {/if} -
- - {#if instance.notes} -

- {instance.notes} -

- {/if} -
- {/each} -
- {/if} -
- - - (showCreateModal = false)} /> - - - { - editingInstance = null; - }} -/> - - -{#if showDeleteConfirm && selectedInstance} -
-
-

Delete Instance

-

- Are you sure you want to delete "{selectedInstance.name}"? This action cannot be undone and will delete all game data for this instance. -

-
- - -
-
-
-{/if} - - -{#if showDuplicateModal && selectedInstance} -
-
-

Duplicate Instance

- e.key === "Enter" && confirmDuplicate()} - /> -
- - -
-
-
-{/if} -- cgit v1.2.3-70-g09d2