Skip to content

Commit cd78e00

Browse files
committed
Format
1 parent 1e20e87 commit cd78e00

File tree

1 file changed

+6
-23
lines changed

1 file changed

+6
-23
lines changed

src/components/tools/ItemCommandConverter.svelte

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@
104104
<script lang="ts">
105105
let convertSuccess = $state(false);
106106
let convertError = $state(false);
107-
let copySuccess = $state(false);
108107
let input = $state("");
109108
let output = $state("");
110109
@@ -167,24 +166,15 @@
167166
<div class="item-command-converter">
168167
<p class="label">
169168
Input:
170-
<textarea
171-
placeholder="Enter your 1.20.4 command here..."
172-
class="textarea-panel"
173-
bind:value={input}
174-
></textarea>
169+
<textarea placeholder="Enter your 1.20.4 command here..." class="textarea-panel" bind:value={input}></textarea>
175170
</p>
176171

177172
<div class="convert-controls">
178-
<button class="convert-content clickable convert-button" onclick={convert}
179-
>Convert</button
180-
>
173+
<button class="convert-content clickable convert-button" onclick={convert}>Convert</button>
181174
{#if mode.value === "entity-argument"}
182175
<p class="convert-content entity-type">
183176
Entity Type:
184-
<select
185-
bind:value={entityType}
186-
class="convert-content dropdown clickable"
187-
>
177+
<select bind:value={entityType} class="convert-content dropdown clickable">
188178
{#each ENTITY_TYPES as option (option.label)}
189179
<option value={option.value}>{option.label ?? option.value}</option>
190180
{/each}
@@ -203,19 +193,12 @@
203193

204194
<p class="label">
205195
Output:
206-
<textarea
207-
placeholder="Press 'Convert' to convert the command."
208-
class="textarea-panel"
209-
readonly
210-
bind:value={output}
196+
<textarea placeholder="Press 'Convert' to convert the command." class="textarea-panel" readonly bind:value={output}
211197
></textarea>
212198
</p>
213199

214-
<button
215-
class:copied
216-
onclick={copyToClipboard}
217-
class="clickable"
218-
disabled={loading}>{copied ? "Copied!" : "Copy output!"}</button
200+
<button class:copied onclick={copyToClipboard} class="clickable" disabled={loading}
201+
>{copied ? "Copied!" : "Copy output!"}</button
219202
>
220203
</div>
221204

0 commit comments

Comments
 (0)