@@ -4,8 +4,8 @@ import { useTemplateRef } from "vue"
44const { report } = defineProps ({
55 report: {
66 type: String ,
7- required: true
8- }
7+ required: true ,
8+ },
99})
1010
1111const formRef = useTemplateRef (" issueForm" )
@@ -58,8 +58,12 @@ function createIssue() {
5858 <form class =" modal-content" ref =" issueForm" @submit.prevent =" createIssue" >
5959 <div class =" modal-header bg-primary text-white" >
6060 <h5 class =" modal-title" >Contact support</h5 >
61- <button type =" button" class =" btn-close" data-bs-dismiss =" modal" aria-label =" Close" >
62- </button >
61+ <button
62+ type =" button"
63+ class =" btn-close"
64+ data-bs-dismiss =" modal"
65+ aria-label =" Close"
66+ ></button >
6367 </div >
6468 <div class =" modal-body" >
6569 <div class =" alert alert-info" >
@@ -71,47 +75,103 @@ function createIssue() {
7175 </div >
7276 <div class =" mb-3" >
7377 <label for =" title-input" >Title</label >
74- <input type =" text" name =" title" class =" form-control" id =" title-input" aria-describedby =" title-help"
75- required />
76- <small id =" title-help" class =" form-text text-muted" >Summarize your issue in one sentence.</small >
78+ <input
79+ type =" text"
80+ name =" title"
81+ class =" form-control"
82+ id =" title-input"
83+ aria-describedby =" title-help"
84+ required
85+ />
86+ <small id =" title-help" class =" form-text text-muted"
87+ >Summarize your issue in one sentence.</small
88+ >
7789 </div >
7890 <div class =" mb-3" >
7991 <label for =" description-input" >Description</label >
80- <textarea name =" description" rows =" 3" class =" form-control" id =" description-input"
81- aria-describedby =" description-help" required
82- placeholder =" When I do ..., I expect ..., but instead I get ..." ></textarea >
83- <small id =" description-help" class =" form-text text-muted" >Describe your issue with a few sentences.</small >
92+ <textarea
93+ name =" description"
94+ rows =" 3"
95+ class =" form-control"
96+ id =" description-input"
97+ aria-describedby =" description-help"
98+ required
99+ placeholder =" When I do ..., I expect ..., but instead I get ..."
100+ ></textarea >
101+ <small id =" description-help" class =" form-text text-muted"
102+ >Describe your issue with a few sentences.</small
103+ >
84104 </div >
85105 <div class =" mb-3" >
86106 <label for =" mcu-input" >Microcontroller</label >
87- <input type =" text" name =" mcu" class =" form-control" id =" mcu-input" aria-describedby =" mcu-help"
88- placeholder =" ESP8266" required />
89- <small id =" mcu-help" class =" form-text text-muted" >Which processor or with board do you use?</small >
107+ <input
108+ type =" text"
109+ name =" mcu"
110+ class =" form-control"
111+ id =" mcu-input"
112+ aria-describedby =" mcu-help"
113+ placeholder =" ESP8266"
114+ required
115+ />
116+ <small id =" mcu-help" class =" form-text text-muted"
117+ >Which processor or with board do you use?</small
118+ >
90119 </div >
91120 <div class =" mb-3" >
92121 <label for =" framework-input" >Arduino Core / Framework</label >
93- <input type =" text" name =" framework" class =" form-control" id =" framework-input"
94- aria-describedby =" framework-help" placeholder =" ESP8266 core for Arduino v3.0.2" />
95- <small id =" framework-help" class =" form-text text-muted" >Please include version number.</small >
122+ <input
123+ type =" text"
124+ name =" framework"
125+ class =" form-control"
126+ id =" framework-input"
127+ aria-describedby =" framework-help"
128+ placeholder =" ESP8266 core for Arduino v3.0.2"
129+ />
130+ <small id =" framework-help" class =" form-text text-muted"
131+ >Please include version number.</small
132+ >
96133 </div >
97134 <div class =" mb-3" >
98135 <label for =" ide-input" >IDE</label >
99- <input type =" text" name =" ide" class =" form-control" id =" ide-input" aria-describedby =" ide-help"
100- placeholder =" Arduino IDE 1.8.16" />
101- <small id =" ide-help" class =" form-text text-muted" >Please include version number.</small >
136+ <input
137+ type =" text"
138+ name =" ide"
139+ class =" form-control"
140+ id =" ide-input"
141+ aria-describedby =" ide-help"
142+ placeholder =" Arduino IDE 1.8.16"
143+ />
144+ <small id =" ide-help" class =" form-text text-muted"
145+ >Please include version number.</small
146+ >
102147 </div >
103148 <div class =" mb-3" >
104149 <label for =" repro-input" >Reproduction code</label >
105- <textarea name =" repro" rows =" 10" class =" form-control text-monospace" style =" font-size : 80% " id =" repro-input"
106- aria-describedby =" repro-help" placeholder =" DynamicJsonDocuemnt doc(1024);\n..." ></textarea >
107- <small id =" repro-help" class =" form-text text-muted" >Write a few lines of code that demonstrate the
108- issue.</small >
150+ <textarea
151+ name =" repro"
152+ rows =" 10"
153+ class =" form-control text-monospace"
154+ style =" font-size : 80% "
155+ id =" repro-input"
156+ aria-describedby =" repro-help"
157+ placeholder =" DynamicJsonDocuemnt doc(1024);\n..."
158+ ></textarea >
159+ <small id =" repro-help" class =" form-text text-muted"
160+ >Write a few lines of code that demonstrate the issue.</small
161+ >
109162 </div >
110163 <div class =" mb-3" >
111164 <label for =" remarks-input" >Remarks</label >
112- <textarea name =" remarks" rows =" 4" class =" form-control" id =" remarks-input"
113- aria-describedby =" remarks-help" ></textarea >
114- <small id =" remarks-help" class =" form-text text-muted" >Anything else you need to tell us?</small >
165+ <textarea
166+ name =" remarks"
167+ rows =" 4"
168+ class =" form-control"
169+ id =" remarks-input"
170+ aria-describedby =" remarks-help"
171+ ></textarea >
172+ <small id =" remarks-help" class =" form-text text-muted"
173+ >Anything else you need to tell us?</small
174+ >
115175 </div >
116176 </div >
117177 <div class =" modal-footer" >
0 commit comments