-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
193 lines (184 loc) · 9.96 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="keywords" content="git, git visualization, gitulize">
<meta name="description" content="Git can be a bit ephemeral at times and that’s exactly when a visualizer can help us understand what’s going on under the hood of each git command. A few common git commands visualized - including git add, and git commit.">
<meta name="author" content="Jake and Ray">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- <meta property="og:title" content="Gitulize" />
<meta property="og:url" content="https://gitulize.netlify.app/" />
<meta property="og:description" content="Git can be a bit ephemeral at times and that’s exactly when a visualizer can help us understand what’s going on under the hood of each git command. A few common git commands visualized - including git add, and git commit.">
<meta property="og:image" content="//cdn.example.com/uploads/images/webpage_300x200.png"> -->
<title>Gitulize</title>
<link rel = "icon" href = "nodes.png" type = "image/x-icon">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
<link rel="stylesheet" href="style.css">
<script src="dist/Visualize.js"></script>
<script src="dist/GitCommand.js"></script>
<script src="dist/script.js"></script>
</head>
<body>
<div class="ui container">
<input type="hidden" id="repo-id">
<!-- <form id="repo-form-selector">
<select class="ui dropdown" id="repo-options" name="repo">
<option disabled selected>Select a repository</option>
</select>
<button type="button" class="ui blue button" id="new-repo-button">Create A New Repository</button>
</form>
<div id="repo-div" class="repo-div">
<form id="new-repo">
<div class="ui input focus">
<input name="name" type="text" placeholder="Name your repository...">
<input type="submit" value="Create Repository" class="ui green button">
</div>
<div id="repo-error" class="repo-error">
<div class="ui negative message fit">
<div class="header">
A repository with this name is already in the working directory!
</div>
<p>Please select that repository or choose another repository name.
</p>
</div>
</div>
</form>
</div> -->
<button class="ui red button" id="clear-all">Clear All</button>
<form id="doc-form">
<div class="ui input focus">
<input name="fileName" type="text" placeholder="Create a file name...">
<input type="submit" value="Create/Update File" class="ui green button">
</div>
<br>
<div class="file-error" id="file-error">
<div class="ui negative message fit">
<div class="header">
A file with this name is already in the working directory!
</div>
<p>Please stage changes or choose another file name.
</p>
</div>
</div>
</form>
<br>
<div class="ui grid">
<div class="three column row" style="padding: 5px;">
<div class="column git-area">
<h3 data-tooltip="This is where your files live when being worked on. Only new and modified existing files are shown.">Working Directory</h3>
</div>
<div class="column git-area">
<h3 data-tooltip="Staged changes-This is where files are kept after being 'added'">Staging Area</h3>
</div>
<div class="column git-area">
<h3 data-tooltip="Commited files-Files are now saved in the repository where they can then be merged or pushed.">Repository</h3>
</div>
</div>
</div>
<div class="ui grid">
<div class="three column row" style="padding: 0px;">
<div class="column git-area ui raised segment" id="working-directory-area">
<div class="ui relaxed divided list" id="working-directory-area-list">
<!-- <div class="item">
<i class="large file alternate middle aligned icon"></i>
<div class="content">
<a class="header">index.html</a>
</div>
</div> -->
<!-- working-directory-list -->
</div>
</div>
<div class="column git-area ui raised segment" id="staging-area">
<div class="ui relaxed divided list" id="staging-area-list">
<!-- working-directory-list -->
</div>
</div>
<div class="column git-area ui raised segment" id="repository-area">
<div class="ui relaxed divided list" id="repository-area-list">
<!-- repository-list -->
<!-- <div class="item">
<i class="large folder icon"></i>
<div class="content">
<a class="header">Commit Message</a>
<div class="description">Commit Date</div>
<div id="file-drop">
<div class="list">
<div class="item">
<i class="file alternate middle aligned icon"></i>
<div class="content">
<div class="header">File Name</div>
</div>
</div>
</div>
<div class="list">
<div class="item">
<i class="file alternate middle aligned icon"></i>
<div class="content">
<div class="header">File Name</div>
</div>
</div>
</div>
</div>
</div>
</div> -->
</div>
</div>
</div>
</div>
<div class="ui grid">
<div class="one column row list git-command-list-container" style="border: 1px black solid; height: 200px">
<div class="ui list" id="git-command-list">
<div class="item">
<div class="header"><span class="turquoise">// </span><span class="red">♥ </span>Welcome to Gitulize. Enjoy!</div>
<div class="error-message">
created by
<!-- <a href="https://github.com/jrshort89">Jake</a> -->
<a href="https://github.com/jrshort89" target="_blank">
<button class="mini ui button" style="padding:3px 5px; background-color: #24292E; color: white;">
<i class="github icon"></i>
Jake
</button>
</a>
and
<a href="https://github.com/raaynaldo" target="_blank">
<button class="mini ui button" style="padding:3px 5px; background-color: #24292E; color: white;">
<i class="github icon"></i>
Ray
</button>
</a>
with ♥
</div>
</div>
<!-- git command list -->
</div>
</div>
</div>
<div class="ui equal width grid">
<div class="column">
<button class="ui red button fluid" id="git-add-dot" style="height: 100%;">git add .</button>
</div>
<div class="column">
<button class="ui orange button fluid" id="git-commit" style="height: 100%;">git commit -m</button>
</div>
<div class="column">
<button class="ui yellow button fluid" id="git-reset-soft" style="height: 100%;">git reset --soft HEAD~1</button>
</div>
<div class="column">
<button class="ui olive button fluid" id="git-reset-dot" style="height: 100%;">git reset .</button>
</div>
<div class="column">
<button class="ui green button fluid" id="git-checkout-dot" style="height: 100%;">git checkout .</button>
</div>
</div>
<form class="ui form" id="git-command-form">
<div class="field">
<label>Git Command<i class="question circle icon" data-tooltip="Use the buttons or type the commands yourself!" data-position="top left"><i class="question circle icon" ></i></i></label>
<input type="text" placeholder="git command here..." name="git_command" id="git-command" value>
</div>
<button class="ui button" type="submit">Run</button>
</form>
</div>
</body>
</html>