-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
122 lines (102 loc) · 4.47 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>GitQuery</title>
<link href="./style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<!-- header -->
<div class="underline" style="padding:3px;">
<table width="100%" style="padding:0px;margin:0px;">
<tr>
<td width="50%" valign="top" >
<span id="version" class="gray" >**version**</span>
<span onClick="toggleDevTools()" class="btn" >devTools</span>
<span onClick="$('#nodejs_info').slideToggle(10)" class="btn" >node-<span id="node_version"></span></span>
<span onClick="toggleFullScreen()" class="btn" >full</span>
<span onClick="$('#shortcut').slideToggle(10)" class="btn" >shortcut</span>
<span onClick="osRunOut('rm ' + _G.save_path + '/*', 'debug_out','replace')" class="btn" >delCache</span>
<span onClick="osRunOut('git help -a', 'command_list','replace'); $('#command_list').slideToggle(10)" class="btn" >commandList</span>
<span onClick="showCommandLog(); $('#command_log').slideToggle(10)" class="btn" >commandlog</span>
</td>
<td width="50%" align="right" >
<span id="g_user" class="gray" ></span>
<span onClick="$('#gitconf').toggle();" class="btn">globalSettings</span>
</td>
</tr>
</table>
<div id="command_list" class="detail hide"></div>
<div id="command_log" class="detail hide">
<input type="text" id="button">
<button>show</button>
<div id="command_log_detail" class="detail hide"></div>
</div>
<div id="shortcut" class="detail hide">
Com 1 - Repository List <br/>
<br/>
Repo <br/>
Com 2 - BranchList<br/>
Com O - OpenWith Finder,Atom,Sublime <br/>
<br/>
Branch <br/>
Com 3 - Status <br/>
Com 4 - File Search<br/>
Com 5 - Commit Log <br/>
<br/>
Develop <br/>
Com D - JS DeveloperConsole <br/>
</div>
<div id="nodejs_info" class="detail hide"></div>
<div id="gitconf" class="hide code detail" style="text-align:left;"></div>
<div class="m5">
<span onClick="toggleTopPanes('local_repo_pane','toggle')" class="btn bold s120" >Repositories<span id="repo_count" class="s120"></span></span>
<span onClick="showGitInit();" class="btn" >init</span>
<span onClick="showGitClone();" class="btn" >clone</span>
<span id="his_repo"></span>
</div>
</div>
<!-- pane top -->
<div id="gitinit_pane" pane="top" class="detail hide">
init<br/>
<div id="init_recommend_path" ></div>
<input id="init_path" type="text" size="40" placeholder="init_path" />
<input id="init_name" type="text" placeholder="project_name" />
<button onClick="gitInit()" />init</button>
<div id="init_result" type="text" /></div>
</div>
<div id="gitclone_pane" pane="top" class="detail hide">
git crone from remote<br/>
<div id="clone_recommend_path" ></div>
<input id="clone_dir" type="text" size=50 placeholder="clone_dir" /><br/>
<input id="clone_url" type="text" size=80 placeholder="clone_url" />
<div id="clone_result" type="text" /></div>
<br/>
<button onClick="osRunOut('git -C ' + $('#clone_dir').val() + ' clone ' + $('#clone_url').val() ,'clone_result','replace')" />clone</button>
<br/>
</div>
<div id="local_repo_pane" pane="top" class="detail hide" >
<input type="text" id="filter_l_repo" size=20 placeholder ="repository name"/>
<span onclick="findLocalRepos('refresh')" class="btn">reload</span>
<div id="local_repo_list"></div>
</div>
<div id="debug_out" style="detail"></div>
<!-- current repository -->
<div id="repo_info" class="m10 hide"></div>
<!-- current branch -->
<div id="branch_info" class="m10 hide"></div>
<div id="kakugen" ></div>
</body>
<script>
require('./renderer.js')
require('./js/functions.js')
// index_branch.html index_repo.html
$('#repo_info').html( loadText(process.cwd() + '/i_repo.html' ))
$('#branch_info').html( loadText(process.cwd() + '/i_branch.html' ))
require('./js/debug.js')
// You can also require other files to run in this process
require('./js/repository.js')
require('./js/branch.js')
require('./js/init.js')
</script>
</html>