issueReporterPage.ts 6.4 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">
18
				<!-- To be dynamically filled -->
R
Rachel Macfarlane 已提交
19
			</select>
20
		</div>
R
Rachel Macfarlane 已提交
21 22

		<div class="input-group">
23 24
			<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 已提交
25 26 27
			<small id="similar-issues">
				<!-- To be dynamically filled -->
			</small>
28 29 30
		</div>
	</div>

R
Rachel Macfarlane 已提交
31 32 33 34 35
	<div class="system-info">
		<div id="block-container">
			<div class="block block-system">
				<details>
					<summary>${escape(localize('systemInfo', "My System Info"))}
36
						<div class="include-data">
37 38
							<input class="sendData" type="checkbox" id="includeSystemInfo" checked/>
							<label class="caption" for="includeSystemInfo">${escape(localize('sendData', "Send my data"))}</label>
39
						</div>
R
Rachel Macfarlane 已提交
40 41 42 43 44 45 46 47 48
					</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"))}
49
						<div class="include-data">
50 51
							<input class="sendData"  type="checkbox" id="includeProcessInfo" checked/>
							<label class="caption" for="includeProcessInfo">${escape(localize('sendData', "Send my data"))}</label>
52
						</div>
R
Rachel Macfarlane 已提交
53 54
					</summary>
					<div class="block-info">
55
						<!-- To be dynamically filled -->
R
Rachel Macfarlane 已提交
56 57 58 59 60 61
					</div>
				</details>
			</div>
			<div class="block block-workspace">
				<details>
					<summary>${escape(localize('workspaceStats', "My Workspace Stats"))}
62
						<div class="include-data">
63 64
							<input class="sendData"  type="checkbox" id="includeWorkspaceInfo" checked/>
							<label class="caption" for="includeWorkspaceInfo">${escape(localize('sendData', "Send my data"))}</label>
65
						</div>
R
Rachel Macfarlane 已提交
66 67 68 69 70 71 72 73 74 75 76
					</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"))}
77
						<div class="include-data">
78 79
							<input class="sendData"  type="checkbox" id="includeExtensions" checked/>
							<label class="caption" for="includeExtensions">${escape(localize('sendData', "Send my data"))}</label>
80
						</div>
R
Rachel Macfarlane 已提交
81 82 83 84 85
					</summary>
					<div class="block-info">
						<!-- To be dynamically filled -->
					</div>
				</details>
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
			</div>
			<div class="block block-searchedExtensions">
				<details>
					<summary>${escape(localize('searchedExtensions', "Searched Extensions"))}
						<div class="include-data">
							<input class="sendData"  type="checkbox" id="includeSearchedExtensions" checked/>
							<label class="caption" for="includeSearchedExtensions">${escape(localize('sendData', "Send my data"))}</label>
						</div>
					</summary>
					<div class="block-info">
						<!-- To be dynamically filled -->
					</div>
				</details>
			</div>
			<div class="block block-settingsSearchResults">
				<details>
					<summary>${escape(localize('settingsSearchDetails', "Settings Search Details"))}
						<div class="include-data">
							<input class="sendData"  type="checkbox" id="includeSettingsSearchDetails" checked/>
							<label class="caption" for="includeSettingsSearchDetails">${escape(localize('sendData', "Send my data"))}</label>
						</div>
					</summary>
					<div class="block-info">
						<!-- To be dynamically filled -->
					</div>
				</details>
R
Rachel Macfarlane 已提交
112
			</div>
113
		</div>
R
Rachel Macfarlane 已提交
114 115 116 117
	</div>

	<div class="section">
		<div id="disabledExtensions">
118 119 120 121 122 123 124 125 126 127 128 129
			<div class="extensions-form">
				<label>${escape(localize('tryDisablingExtensions', "Is the problem reproducible when extensions are disabled?"))}</label>
				<div class="form-buttons">
					<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>
					</div>
				</div>
130
			</div>
131 132 133 134 135 136
			<div class="instructions">${escape(localize('disableExtensionsLabel', "Try to reproduce the problem after {0}."))
		.replace('{0}', `<span tabIndex=0 role="button" id="disableExtensions" class="workbenchCommand">${escape(localize('disableExtensions', "disabling all extensions and reloading the window"))}</span>`)}
			</div>
			<div class="instructions">${escape(localize('showRunningExtensionsLabel', "If you suspect it's an extension issue, {0}."))
		.replace('{0}', `<span tabIndex=0 role="button"id="showRunning" class="workbenchCommand">${escape(localize('showRunningExtensions', "see all running extensions"))}</span>`)}
			</div>
137
		</div>
138 139 140 141 142 143
	</div>

	<div class="input-group">
		<label for="description" id="issue-description-label">
			<!-- To be dynamically filled -->
		</label>
144
		<div class="instructions" id="issue-description-subtitle">
145
			<!-- To be dynamically filled -->
146
		</div>
147
		<div class="block-info-text">
148
			<textarea name="description" id="description" cols="100" rows="12" placeholder="${escape(localize('details', "Please enter details."))}" required></textarea>
149 150 151
		</div>
	</div>

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