File tree Expand file tree Collapse file tree 1 file changed +6
-23
lines changed
Expand file tree Collapse file tree 1 file changed +6
-23
lines changed Original file line number Diff line number Diff line change 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
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 }
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
You can’t perform that action at this time.
0 commit comments