issueReporterPage.ts 5.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
/*---------------------------------------------------------------------------------------------
 *  Copyright (c) Microsoft Corporation. All rights reserved.
 *  Licensed under the MIT License. See License.txt in the project root for license information.
 *--------------------------------------------------------------------------------------------*/
'use strict';

import { escape } from 'vs/base/common/strings';
import { localize } from 'vs/nls';

export default (): string => `
<div id="issue-reporter">
	<div id="english" class="input-group hidden">${escape(localize('completeInEnglish', "Please complete the form in English."))}</div>

R
Rachel Macfarlane 已提交
14 15
	<div class="section">
		<div class="input-group">
16 17
			<label id="issue-type-label" class="inline-form-control" for="issue-type">${escape(localize('issueTypeLabel', "This is a"))}</label>
			<select id="issue-type" class="inline-form-control">
R
Rachel Macfarlane 已提交
18 19 20 21
				<option value="0">${escape(localize('bugReporter', "Bug Report"))}</option>
				<option value="1">${escape(localize('performanceIssue', "Performance Issue"))}</option>
				<option value="2">${escape(localize('featureRequest', "Feature Request"))}</option>
			</select>
22
		</div>
R
Rachel Macfarlane 已提交
23 24

		<div class="input-group">
25 26
			<label id="issue-title-label" for="issue-title">${escape(localize('issueTitleLabel', "Title"))} <span class="required-input">*</span></label>
			<input id="issue-title" type="text" class="inline-form-control" placeholder="${escape(localize('issueTitleRequired', "Please enter a title."))}" required>
R
Rachel Macfarlane 已提交
27 28 29
			<small id="similar-issues">
				<!-- To be dynamically filled -->
			</small>
30 31 32
		</div>
	</div>

R
Rachel Macfarlane 已提交
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
	<div class="system-info">
		<div id="block-container">
			<div class="block block-system">
				<details>
					<summary>${escape(localize('systemInfo', "My System Info"))}
						<input class="sendData" type="checkbox" id="includeSystemInfo" checked>
							<label class="caption" for="includeSystemInfo">${escape(localize('sendData', "Send my data"))}</label>
						</input>
					</summary>
					<div class="block-info">
						<!-- To be dynamically filled -->
					</div>
				</details>
			</div>
			<div class="block block-process">
				<details>
					<summary>${escape(localize('processes', "Currently Running Processes"))}
						<input class="sendData"  type="checkbox" id="includeProcessInfo" checked>
							<label class="caption" for="includeProcessInfo">${escape(localize('sendData', "Send my data"))}</label>
						</input>
					</summary>
					<div class="block-info">
55
						<!-- To be dynamically filled -->
R
Rachel Macfarlane 已提交
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
					</div>
				</details>
			</div>
			<div class="block block-workspace">
				<details>
					<summary>${escape(localize('workspaceStats', "My Workspace Stats"))}
						<input class="sendData"  type="checkbox" id="includeWorkspaceInfo" checked>
							<label class="caption" for="includeWorkspaceInfo">${escape(localize('sendData', "Send my data"))}</label>
						</input>
					</summary>
					<pre class="block-info">
						<code>
							<!-- To be dynamically filled -->
						</code>
					</pre>
				</details>
			</div>
			<div class="block block-extensions">
				<details>
					<summary>${escape(localize('extensions', "My Extensions"))}
						<input class="sendData"  type="checkbox" id="includeExtensions" checked>
							<label class="caption" for="includeExtensions">${escape(localize('sendData', "Send my data"))}</label>
						</input>
					</summary>
					<div class="block-info">
						<!-- To be dynamically filled -->
					</div>
				</details>
			</div>
85
		</div>
R
Rachel Macfarlane 已提交
86 87 88 89 90 91 92 93 94 95 96 97
	</div>

	<div class="section">
		<div id="disabledExtensions">
			<label>${escape(localize('tryDisablingExtensions', "Is the problem reproducible when extensions are disabled?"))}</label>
			<div class="choice">
				<input type="radio" id="reproducesWithoutExtensions" value=true name="reprosWithoutExtensions" />
				<label for="reproducesWithoutExtensions">${escape(localize('yes', "Yes"))}</label>
			</div>
			<div class="choice">
				<input type="radio" id="reproducesWithExtensions" value=false name="reprosWithoutExtensions" checked/>
				<label for="reproducesWithExtensions">${escape(localize('no', "No"))}</label>
98
			</div>
R
Rachel Macfarlane 已提交
99 100
			<div class="instructions">Try to reproduce the problem after <button id="disableExtensions" class="workbenchCommand">${escape(localize('disableExtensions', "disabling all extensions and reloading the window"))}</button>.</div>
			<div class="instructions">If you suspect it's an extension issue, <button id="showRunning" class="workbenchCommand">${escape(localize('showRunningExtensions', "see all running extensions"))}</button>.</div>
101
		</div>
102 103 104 105 106 107
	</div>

	<div class="input-group">
		<label for="description" id="issue-description-label">
			<!-- To be dynamically filled -->
		</label>
108
		<div class="instructions" id="issue-description-subtitle">
109
			<!-- To be dynamically filled -->
110
		</div>
111
		<div class="block-info-text">
112
			<textarea name="description" id="description" cols="100" rows="12" placeholder="${escape(localize('details', "Please enter details."))}" required></textarea>
113 114 115
		</div>
	</div>

116 117 118
	<div id="url-length-validation-error" class="validation-error hidden" role="alert">
		<-- To be dynamically filled -->
	</div>
119 120
	<button id="github-submit-btn" disabled>${escape(localize('loadingData', "Loading data..."))}</button>
</div>`;