-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
275 lines (237 loc) · 14.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>X-Wing: Playtest Report Form</title>
<meta name="robots" content="index, follow" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700" />
<link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400" />
<link rel="stylesheet" type="text/css" href="assets/report.css" />
</head>
<body>
<div id="report" v-bind:class="[{ 'ready': (ready) }]">
<div class="menu">
<h1>X-Wing</h1>
<h2>Playtest Report Form</h2>
<button v-bind:class="[{ 'active': (step === 1) }]" v-on:click="step = 1">01. About</button>
<button v-bind:class="[{ 'active': (step === 2) }]" v-on:click="step = 2">02. Players</button>
<button v-bind:class="[{ 'active': (step === 3) }]" v-on:click="step = 3">03. Results</button>
<button v-bind:class="[{ 'active': (step === 4) }]" v-on:click="step = 4">04. Feedback</button>
<button v-bind:class="[{ 'active': (step === 5) }]" v-on:click="step = 5">05. View</button>
</div>
<div class="body">
<div class="step" v-if="step === 1">
<div class="columns block">
<div class="column">
<div class="field is-text">
<label class="label" for="report.about.lead">Playtest Lead</label>
<input id="report.about.lead" name="Playtest Lead" type="text" v-model="report.about.lead" placeholder="eg. Paul Heaver" />
</div>
<div class="field is-text is-half">
<label class="label" for="report.about.date">Date of test <span>yyyy/mm/dd</span></label>
<input id="report.about.date" name="Date" type="text" v-model="report.about.date" placeholder="yyyy/mm/dd" />
</div>
<div class="field is-text">
<label class="label" for="report.about.components">Components tested</label>
<textarea id="report.about.components" name="Components tested" v-model="report.about.components" placeholder="List the specific, individual components or upgrades you are using in this playtest. Don’t forget to add version numbers. For example: - Guidance Chips v2, - Plasma Torpedo v2" style="min-height: 160px;"></textarea>
</div>
</div>
<div class="column">
<div class="field is-text">
<label class="label" for="report.subject">Subject of Test <span>Project Codename</span></label>
<input id="report.subject" name="Test Subject" type="text" v-model="report.subject" placeholder="eg. Sparrow" />
</div>
<div class="field is-checkbox">
<span class="label">Purpose of test</span>
<div class="field-list">
<label>
<input name="Functional test" type="checkbox" v-model="report.about.purpose.functional" />
<div></div>
<b>Functional test</b>
<span>I’m testing the functionality and usability of new components or upgrades.</span>
</label>
<label>
<input name="Balance test" type="checkbox" v-model="report.about.purpose.balance" />
<div></div>
<b>Balance test</b>
<span>I’m testing how balanced any new components or upgrades are.</span>
</label>
<label>
<input name="Control test" type="checkbox" v-model="report.about.purpose.control" />
<div></div>
<b>Control test</b>
<span>I’m test new components or upgrades against an established baseline.</span>
</label>
</div>
</div>
</div>
</div>
<div class="buttons">
<button class="back" disabled="disabled">Back</button>
<button class="next" v-on:click="step = 2">Next</button>
</div>
</div>
<div class="step" v-if="step === 2">
<div class="columns">
<div class="column">
<div class="field is-text">
<label class="label" for="report.player[0].name">Player One</label>
<input id="report.player[0].name" name="Player One" type="text" v-model="report.player[0].name" placeholder="eg. Alex Davy" />
</div>
<div class="field is-text">
<label class="label" for="report.player[0].type">Squad <span>Type and List</span></label>
<input id="report.player[0].type" name="Squad Type" type="text" v-model="report.player[0].type" placeholder="eg. Dengaroo" />
<textarea id="report.player[0].list" name="Squad" v-model="report.player[0].list" placeholder="Write here the squad used for testing (including version numbers) or paste from squad-builder in BBCode format." style="min-height: 300px; margin-top: 5px;"></textarea>
</div>
<div class="field is-text">
<label class="label" for="report.player[0].notes">Notes</label>
<textarea id="report.player[0].notes" name="Notes" v-model="report.player[0].notes" placeholder="What are you trying to test using this squad? What is your expected result? Are you testing a specific component?"></textarea>
</div>
</div>
<div class="column">
<div class="field is-text">
<label class="label" for="report.player[1].name">Player Two</label>
<input id="report.player[1].name" name="Player One" type="text" v-model="report.player[1].name" placeholder="eg. Frank Brooks" />
</div>
<div class="field is-text">
<label class="label" for="report.player[1].type">Squad <span>Type and List</span></label>
<input id="report.player[1].type" name="Squad Type" type="text" v-model="report.player[1].type" placeholder="eg. Crackswarm" />
<textarea id="report.player[1].list" name="Squad" v-model="report.player[1].list" placeholder="Write here the squad used for testing (including version numbers) or paste from squad-builder in BBCode format." style="min-height: 300px; margin-top: 5px;"></textarea>
</div>
<div class="field is-text">
<label class="label" for="report.player[1].notes">Notes</label>
<textarea id="report.player[1].notes" name="Notes" v-model="report.player[1].notes" placeholder="What are you trying to test using this squad? What is your expected result? Are you testing a specific component?"></textarea>
</div>
</div>
</div>
<div class="buttons">
<button class="back" v-on:click="step = 1">Back</button>
<button class="next" v-on:click="step = 3">Next</button>
</div>
</div>
<div class="step" v-if="step === 3">
<div class="columns block">
<div class="column">
<div class="field is-select block">
<label class="label" for="report.results.winner">Winner</label>
<select id="report.results.winner" name="Winner" v-model="report.results.winner">
<option v-if="report.player[0].name === null && report.player[1].name === null" disabled="disabled" selected="selected" value="null">No players added</option>
<option v-if="report.player[0].name !== null && report.player[1].name !== null" v-for="player in report.player" v-bind:value="player.name">{{ player.name }}</option>
</select>
</div>
</div>
<div class="column"></div>
</div>
<div class="columns block">
<div class="column">
<div class="columns">
<div class="column">
<div class="field is-text">
<label class="label" for="report.results.points[0]">Score <span>Winner</span></label>
<input id="report.results.points[0]" name="Points Destroyed" type="number" v-model="report.results.points[0]" placeholder="eg. 90" />
</div>
</div>
<div class="column">
<div class="field is-text">
<label class="label" for="report.results.points[1]">Score <span>Loser</span></label>
<input id="report.results.points[1]" name="Points Destroyed" type="number" v-model="report.results.points[1]" placeholder="eg. 42" />
</div>
</div>
</div>
</div>
<div class="column">
<div class="columns">
<div class="column">
<div class="field is-text">
<label class="label" for="report.results.rounds">Rounds Played</label>
<input id="report.results.rounds" name="Rounds Played" type="number" v-model="report.results.rounds" placeholder="eg. 10" />
</div>
</div>
<div class="column">
<div class="field is-text">
<label class="label" for="report.results.time">Time Spent <span>Mins</span></label>
<input id="report.results.time" name="Rounds Played" type="number" v-model="report.results.time" placeholder="eg. 75" />
</div>
</div>
</div>
</div>
</div>
<div class="field is-text block">
<label class="label" for="report.results.summary">Summary of match <span>Optional</span></label>
<textarea id="report.results.summary" name="Summary" v-model="report.results.summary" placeholder="List out rounds and when ships were destroyed, took damage, or otherwise important events to support your report. Only include this if you think it supports a concern you have. Don't feel compelled to include this if you don't think it contributes to your argument." style="min-height: 400px"></textarea>
</div>
<div class="buttons">
<button class="back" v-on:click="step = 2">Back</button>
<button class="next" v-on:click="step = 4">Next</button>
</div>
</div>
<div class="step" v-if="step === 4">
<div class="field is-text">
<label class="label" for="report.feedback.functionality">Functionality/Usability</label>
<textarea id="report.feedback.functionality" name="Functionality/Usability" v-model="report.feedback.functionality" placeholder="Describe your thoughts or concerns regarding the functionality or usability of these components. For example: Do they make sense? Are they difficult to use? Should the wording change? Is the interaction clunky?" style="min-height: 400px"></textarea>
</div>
<div class="field is-text">
<label class="label" for="report.feedback.balance">Balance</label>
<textarea id="report.feedback.balance" name="Balance" v-model="report.feedback.balance" placeholder="Describe your thoughts or concerns regarding the balance of these components. For example: Are they too good? Not good enough? Cost too many points? Leads to a specific broken combo? Poor synergy?" style="min-height: 400px"></textarea>
</div>
<div class="field is-text">
<label class="label" for="report.feedback.other">Other</label>
<textarea id="report.feedback.other" name="Other" v-model="report.feedback.other" placeholder="Describe any other thoughts or concerns you have about these components. Should the language change? Are there grammar problems? Do you have concerns about theme?" style="min-height: 200px"></textarea>
</div>
<div class="buttons">
<button class="back" v-on:click="step = 3">Back</button>
<button class="next" v-on:click="step = 5">View</button>
</div>
</div>
<div class="step" v-if="step === 5">
<div class="field is-text">
<span class="label" for="view_subject">Suggested Report Name</span>
<div class="view" id="view_subject">[Playtest]{{ (report.about.purpose.functional) ? '[FT]' : '' }}{{ (report.about.purpose.balance) ? '[BT]' : '' }}{{ (report.about.purpose.control) ? '[CT]' : '' }}{{ (report.subject) ? ' ['+report.subject+']' : '' }}{{ (report.player[0].type && report.player[1].type) ? ' ' + report.player[0].type + ' vs ' + report.player[1].type : '' }}</div>
</div>
<div class="field is-text">
<span class="label" for="view_formatted">Formatted Report</span>
<div class="view" id="view_formatted">
<pre id="clipboard">[b]Playtest Lead:[/b] {{ report.about.lead || 'N/A' }}
[b]Playtest Date:[/b] {{ report.about.date || 'N/A' }}
[b]Playtest Purpose:[/b]
[[tt]{{ (report.about.purpose.functional) ? '+' : ' ' }}[/tt]] Functional test
[[tt]{{ (report.about.purpose.balance) ? '+' : ' ' }}[/tt]] Balance test
[[tt]{{ (report.about.purpose.control) ? '+' : ' ' }}[/tt]] Control test
[b]Components Tested:[/b]
[i]{{ report.about.components || 'None listed' }}[/i]
[hr]
[b][u]{{ report.player[0].name || 'Player One' }}[/u][/b]
[i]{{ report.player[0].notes || 'No comments' }}[/i]
{{ report.player[0].list || 'No squad added' }}
[b][u]{{ report.player[1].name || 'Player Two' }}[/u][/b]
[i]{{ report.player[1].notes || 'No comments' }}[/i]
{{ report.player[1].list || 'No squad added' }}
[hr]
[b][u]Game Result[/u][/b]
[b]Winner:[/b] {{ report.results.winner || 'N/A' }} ({{ report.results.points[0] }} vs {{ report.results.points[1] }})
[b]Rounds:[/b] {{ report.results.rounds || 'unknown' }} rounds
[b]Time:[/b] {{ report.results.time || 'unknown' }} mins
[i]{{ report.results.summary || 'No summary of game added' }}[/i]
[hr]
[b][u]Feedback (Functionality/Usability)[/u][/b]
{{ report.feedback.functionality || 'N/A' }}
[b][u]Feedback (Balance)[/u][/b]
{{ report.feedback.balance || 'N/A' }}
[b][u]Feedback (Other)[/u][/b]
{{ report.feedback.other || 'N/A' }}
[hr]
[i]Generated using the [url=https://nopr.github.io/xwing-report/]X-Wing Playtest Report Form[/url][/i]</pre>
</div>
</div>
<div class="buttons">
<button class="back" v-on:click="step = 3">Back</button>
<button class="next copy" data-clipboard-target="#clipboard">Copy to Clipboard</button>
</div>
</div>
</div>
<script src="assets/clipboard.min.js"></script>
<script src="assets/vue.min.js"></script>
<script src="assets/report.js"></script>
</body>
</html>