File tree Expand file tree Collapse file tree 9 files changed +6
-55
lines changed Expand file tree Collapse file tree 9 files changed +6
-55
lines changed Original file line number Diff line number Diff line change 2323 validators: zod (schema )
2424 });
2525
26- // eslint-disable-next-line svelte/valid-compile
27- $ : status = get (page ).status ;
26+ const status = get (page ).status ;
2827 </script >
2928
3029<SuperDebug data ={{ $form , $errors , $tainted }} />
Original file line number Diff line number Diff line change 5757 2
5858
5959 <label >
60- Text: <textarea name ="text" bind:value ={$form .text } / >
60+ Text: <textarea name ="text" bind:value ={$form .text }></ textarea >
6161 </label >
6262
6363 <label >
Original file line number Diff line number Diff line change 1313 });
1414
1515 $ : console .log ($allErrors );
16- // eslint-disable-next-line svelte/valid-compile
17- $ : options = optionsSchema ._def .innerType .options ;
16+ const options = optionsSchema ._def .innerType .options ;
1817 </script >
1918
2019<SuperDebug data ={{ $form , $errors , $tainted }} />
Original file line number Diff line number Diff line change 5959 type =" text"
6060 class =" block w-full rounded-md border-0 bg-white/5 py-1.5 text-white shadow-sm ring-1 ring-inset ring-white/10 focus:ring-2 focus:ring-inset focus:ring-indigo-500 sm:text-sm sm:leading-6"
6161 />
62- <button type ="button" on:click ={addQuestion } class =" m-2 h-7 w-7 cursor-pointer" / >
62+ <button type ="button" on:click ={addQuestion } class =" m-2 h-7 w-7 cursor-pointer" ></ button >
6363 <!-- eslint-disable-next-line @typescript-eslint/no-unused-vars -->
6464 {#each $form .questions as _ , index }
6565 <div class =" col-span-full" >
7777 type =" button"
7878 class =" m-2 h-7 w-7 cursor-pointer text-red-600"
7979 on:click ={() => removeQuestion (index )}
80- / >
80+ ></ button >
8181 </div >
8282 </div >
8383 </div >
Original file line number Diff line number Diff line change 3636<p ><a target =" _blank" href =" https://superforms.rocks/api" >API Reference</a ></p >
3737
3838<style >
39- .invalid {
40- color : red ;
41- }
42-
4339 .status {
4440 color : white ;
4541 padding : 4px ;
5652 background-color : #ff2a02 ;
5753 }
5854
59- input {
60- background-color : #ddd ;
61- }
62-
6355 a {
6456 text-decoration : underline ;
6557 }
Original file line number Diff line number Diff line change 2828 justify-content : space-between ;
2929 }
3030
31- .corner {
32- width : 3em ;
33- height : 3em ;
34- }
35-
36- .corner a {
37- display : flex ;
38- align-items : center ;
39- justify-content : center ;
40- width : 100% ;
41- height : 100% ;
42- }
43-
44- .corner img {
45- width : 2em ;
46- height : 2em ;
47- object-fit : contain ;
48- }
49-
5031 nav {
5132 display : flex ;
5233 justify-content : center ;
Original file line number Diff line number Diff line change 6363 font-weight : 500 ;
6464 }
6565
66- .status.success {
67- background-color : seagreen ;
68- }
69-
70- .status.error {
71- background-color : #ff2a02 ;
72- }
73-
7466 input {
7567 background-color : #ddd ;
7668 }
Original file line number Diff line number Diff line change 77
88 import { schema } from ' ./schema.js' ;
99
10- export let data;
10+ // export let data;
1111
1212 const form = superForm (defaults (zod (schema )), {
1313 SPA: true ,
4343<p ><a target =" _blank" href =" https://superforms.rocks/api" >API Reference</a ></p >
4444
4545<style >
46- .invalid {
47- color : red ;
48- }
49-
5046 .status {
5147 color : white ;
5248 padding : 4px ;
6359 background-color : #ff2a02 ;
6460 }
6561
66- input {
67- background-color : #ddd ;
68- }
69-
7062 a {
7163 text-decoration : underline ;
7264 }
Original file line number Diff line number Diff line change 163163 background-color : #ddd ;
164164 }
165165
166- a {
167- text-decoration : underline ;
168- }
169-
170166 hr {
171167 margin-top : 4rem ;
172168 }
You can’t perform that action at this time.
0 commit comments