-
Notifications
You must be signed in to change notification settings - Fork 24
/
index.html
197 lines (183 loc) · 6.55 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
<!DOCTYPE html>
<html>
<head>
<title>Git Watcher</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="ui/Dialog.css">
<script src="core.js"></script>
<script src="ui/AppMenus.js"></script>
<script src="ui/Dialog.js"></script>
<script src="main.js"></script>
</head>
<body onload="init()">
<template id="gitModuleTpl">
<section class="module">
<header>
<div class="branchInfo"></div>
</header>
<div class="moduleContents">
<div class="leftColumn">
<h2 class="unstagedTitle fileListTitle"><button class="fileListTitleButton stageButton" title="Stage all files (git add --all)"></button> Unstaged Changes</h2>
<ul class="unstagedFiles fileList"></ul>
<h2 class="stagedTitle fileListTitle"><button class="fileListTitleButton unstageButton" title="Unstage all files (git reset HEAD)"></button> Staged Changes</h2>
<ul class="stagedFiles fileList"></ul>
<div class="controls">
<textarea rows="3" cols="20" class="commitMessage" placeholder="Commit message..."></textarea>
<div class="controlPanel">
<button class="commitButton actionBtn">Commit</button>
<button class="pushButton actionBtn">Push</button>
</div>
</div>
<ul class="commitLog"></ul>
</div>
<div class="filesDiff"></div>
</div>
</section>
</template>
<template id="gitModuleFileTpl">
<div class="file">
<label>
<span class="fileName"></span>
<span class="fileStatus"></span>
<span class="fileType"></span>
</label>
<div class="fileDiffContents"></div>
</div>
</template>
<template id="gitModuleLabelTpl">
<li class="moduleLabel" tabindex="-1"></li>
</template>
<template id="gitFileListItemTpl">
<li><label class="fileListItemLabel"></label></li>
</template>
<template id="branchCheckoutTpl">
<section class="branchCheckout dialogMainSection">
<div class="branchListContent">
<table class="branchList">
<thead>
<tr>
<th>Name</th>
<th>Last commit</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<fieldset class="dialogContentFieldset">
<legend>Options</legend>
<label><input type="checkbox" value="1" class="branchCheckoutFetchOption" checked /> Fetch from tracking branch</label>
</fieldset>
<div class="dialogContentControlButtons">
<button class="branchCheckoutAccept actionBtn">Checkout</button>
<button class="branchCheckoutCancel cancelBtn">Cancel</button>
</div>
</section>
</template>
<template id="branchDeleteTpl">
<section class="dialogMainSection">
<div class="branchListContent">
<table class="branchList">
<thead>
<tr>
<th>Name</th>
<th>Last commit</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<fieldset class="dialogContentFieldset">
<legend>Options</legend>
<label><input type="checkbox" value="1" class="branchDeleteForceOption" /> Force deletion (do not perform merge check)</label>
</fieldset>
<div class="dialogContentControlButtons">
<button class="branchDeleteAccept actionBtn">Delete</button>
<button class="branchDeleteCancel cancelBtn">Cancel</button>
</div>
</section>
</template>
<template id="branchListItemTpl">
<tr>
<td class="branchListItemName"></td>
<td class="branchListItemCommit"></td>
</tr>
</template>
<template id="branchCreateTpl">
<section class="branchCreate dialogMainSection">
<div class="branchCreateContent">
<input type="text" class="branchCreateName" placeholder="Enter name..." required autofocus />
</div>
<fieldset class="dialogContentFieldset">
<legend>Options</legend>
<label><input type="checkbox" value="1" class="branchCreateCheckoutOption" checked /> Checkout branch</label>
</fieldset>
<div class="dialogContentControlButtons">
<button class="branchCreateAccept actionBtn">Create</button>
<button class="branchCreateCancel cancelBtn">Cancel</button>
</div>
</section>
</template>
<template id="remotePushTpl">
<section class="dialogMainSection">
<div class="remotePushMainOptions">
<label>Select remote: <select class="remotePushName" required autofocus></select></label>
</div>
<fieldset class="dialogContentFieldset">
<legend>Options</legend>
<label><input type="checkbox" value="1" class="remotePushIncludeTagsOption" /> Include tags</label>
</fieldset>
<div class="dialogContentControlButtons">
<button class="remotePushAccept actionBtn">Push</button>
<button class="remotePushCancel cancelBtn">Cancel</button>
</div>
</section>
</template>
<template id="fileStatisticsTpl">
<section class="fileStatistics dialogMainSection">
<h2 class="fileStatisticsHeader">Top committers</h2>
<fieldset class="dialogContentFieldset fileStatisticsTopCommittersOptions">
<legend>Options</legend>
<label><input type="radio" name="fileStatisticsTopCommittersMergesOption" class="actionInput" value="" checked /> All</label>
<label><input type="radio" name="fileStatisticsTopCommittersMergesOption" class="actionInput" value="--no-merges" /> Exclude merges</label>
<label><input type="radio" name="fileStatisticsTopCommittersMergesOption" class="actionInput" value="--merges" /> Only merges</label>
<label>Limit: <input type="number" size="2" name="fileStatisticsTopCommittersLimitOption" class="actionInput" min="5" max="50" value="20" /></label>
</fieldset>
<table class="fileStatisticsTable fileStatisticsTopCommitters">
<thead>
<tr>
<th>Commit count</th>
<th>Name</th>
<th>Email</th>
</tr>
</thead>
<tbody></tbody>
</table>
</section>
</template>
<template id="dialogTpl">
<div id="dialog">
<div id="dialogContents">
<header id="dialogHeader">
<span id="dialogTitle"></span>
<span id="dialogCloseBtn">x</span>
</header>
<div id="dialogMain"></div>
<div id="dialogOutput"></div>
<div id="dialogOutputStatus"></div>
</div>
</div>
</template>
<main id="main" class="empty">
<header>
<ul id="gitModules"></ul>
</header>
<img src="icons/loader.gif" id="loadingImage">
<div id="emptyMessage">
<button onclick="chooseRepository()"><img src="icons/open.png" alt=""><br>Open repository</button>
</div>
</main>
<input type="file" id="repositoryChooser" style="display: none" nwdirectory nwworkingdir="/home">
</body>
</html>