Skip to content

Commit e25f5d7

Browse files
committedOct 10, 2017
Moved to class based code
1 parent c82c9d4 commit e25f5d7

15 files changed

+705
-225
lines changed
 

‎icons/png/128x128.png

100644100755
File mode changed.

‎icons/png/16x16.png

100644100755
File mode changed.

‎icons/png/16x16@2x.png

100644100755
File mode changed.

‎icons/png/24x24.png

100644100755
File mode changed.

‎icons/png/256x256.png

100644100755
File mode changed.

‎icons/png/32x32.png

100644100755
File mode changed.

‎icons/png/48x48.png

100644100755
File mode changed.

‎icons/png/512x512.png

100644100755
File mode changed.

‎icons/png/64x64.png

100644100755
File mode changed.

‎icons/png/96x96.png

100644100755
File mode changed.

‎index.html

+17-12
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<link rel="stylesheet" type="text/css" href="./static/css/semantic.min.css">
77
<script src="./static/js/ghosttools.js"></script>
88
<script src="./rivets.js"></script>
9+
<script src="./rivetsBinders.js"></script>
910
<style type="text/css">
1011
#alert .onlyfirst:not(:first-child){
1112
display: none!important;
@@ -37,6 +38,7 @@
3738
#reminderInput.error{
3839
border: 2px solid #db2828;
3940
}
41+
4042
</style>
4143

4244

@@ -56,8 +58,8 @@
5658
</div>
5759
<div class="item right">
5860

59-
<div>Remind me every <input id="reminderInput" rv-value="data.waitHours" rv-on-keyup="changeCronJob" type="text"> hours</div>
60-
<div id="refreshButton" rv-on-click="refreshRepos"><i id="refreshIcon" class="notched refresh icon"></i></div>
61+
<div>Remind me every <input id="reminderInput" rv-value="app.data.waitHours" rv-on-keyup="app.changeCronJob" type="text"> hours</div>
62+
<div id="refreshButton" rv-on-click="app.refreshRepos"><i id="refreshIcon" class="notched refresh icon"></i></div>
6163
</div>
6264
</div>
6365

@@ -66,16 +68,16 @@
6668
<h1 style="margin: 0;" class="ui inverted header">
6769
Git Panda
6870
</h1>
69-
<h6 style="margin-top: 0;">By: olitomas.com</h6>
70-
<a rv-show="data.isPaid" class="ui teal tag label">Unregistered</a>
71-
<a rv-hide="data.isPaid" class="ui red tag label">Unregistered</a>
71+
<h6 style="margin-top: 0;">By: <a href="https://olitomas.com">olitomas.com</a></h6>
72+
<a rv-show="app.data.isPaid" class="ui teal tag label">Unregistered</a>
73+
<a id="registerBtn" rv-hide="app.data.isPaid" class="ui red tag label">Unregistered</a>
7274

7375

7476
</div>
7577

7678
</div>
7779

78-
<div class="ui container" rv-hide="data.allClean">
80+
<div class="ui container" rv-hide="app.data.allClean">
7981
<div style="margin-top: 20px;" class="ui red message"><i class="attention icon"></i> You have git repos that need a little push (working tree not clean)</div>
8082
</div>
8183

@@ -93,11 +95,14 @@ <h6 style="margin-top: 0;">By: olitomas.com</h6>
9395
</th>
9496
</tr></thead>
9597
<tbody>
96-
<tr rv-each-repo="data.gitPaths" rv-show="repo.workingTreeClean">
98+
<tr rv-each-repo="app.data.gitPaths" rv-class-hidden="repo.workingTreeClean | reverse" rv-show="repo.workingTreeClean">
9799
<td class="collapsing positive">
98-
<i class="folder icon"></i> {repo.name}
100+
<i class="folder icon"></i> {repo.name}
99101
</td>
100-
<td class="ui right aligned" rv-on-click="removeItem"><div class="ui button tiny center aligned"><i class="icon trash"></i> Remove</div></td>
102+
<td class="ui right aligned">
103+
<div rv-on-click="app.openItemInTerminal" class="ui button tiny center aligned"><i class="icon terminal"></i></div>
104+
<div rv-on-click="app.openItemFolder" class="ui button tiny center aligned"><i class="icon folder"></i></div>
105+
<div rv-on-click="app.removeItem" class="ui button tiny center aligned"><i class="icon trash"></i> Remove</div></td>
101106
</tr>
102107
</tbody>
103108
</table>
@@ -110,11 +115,11 @@ <h6 style="margin-top: 0;">By: olitomas.com</h6>
110115
</th>
111116
</tr></thead>
112117
<tbody>
113-
<tr rv-each-repo="data.gitPaths" rv-hide="repo.workingTreeClean">
118+
<tr rv-each-repo="app.data.gitPaths" rv-hide="repo.workingTreeClean" rv-class-hidden="repo.workingTreeClean">
114119
<td class="collapsing negative">
115120
<i class="folder icon"></i> {repo.name}
116121
</td>
117-
<td class="ui right aligned" rv-on-click="removeItem"><div class="ui button tiny center aligned"><i class="icon trash"></i> Remove</div></td>
122+
<td class="ui right aligned" rv-on-click="app.removeItem"><div class="ui button tiny center aligned"><i class="icon trash"></i> Remove</div></td>
118123
</tr>
119124
</tbody>
120125
</table>
@@ -125,6 +130,6 @@ <h6 style="margin-top: 0;">By: olitomas.com</h6>
125130

126131
<script>
127132
// You can also require other files to run in this process
128-
require('./renderer.js')
133+
require('./renderer.js');
129134
</script>
130135
</html>

‎package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"electron-packager": "^8.7.0"
2323
},
2424
"dependencies": {
25-
"cron": "^1.2.1"
25+
"cron": "^1.2.1",
26+
"electron-terminal-open": "^0.1.1"
2627
}
27-
}
28+
}

0 commit comments

Comments
 (0)