Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit 4e66d54

Browse files
committed
replacing icons with font awesome icons.
1 parent 6ca8ca9 commit 4e66d54

35 files changed

Lines changed: 68 additions & 17 deletions

‎app/js/UI.js‎

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,33 @@ var UI = {
117117
}
118118

119119
Handlebars.registerHelper('ui_icon', function(icon) {
120-
if (icon == 'settings') return 'cog'
121-
return 'question'
120+
if (icon == 'alert') return 'bell';
121+
if (icon == 'approve') return 'check';
122+
if (icon == 'close') return 'close';
123+
if (icon == 'deny') return 'thumbs-down';
124+
if (icon == 'dscan') return 'wifi';
125+
if (icon == 'error') return 'exclamation-triangle';
126+
if (icon == 'fleet') return 'fighter-jet';
127+
if (icon == 'fleetCreated') return 'fighter-jet';
128+
if (icon == 'hostileTimeout') return 'clock-o';
129+
if (icon == 'info') return 'question';
130+
if (icon == 'member') return 'user';
131+
if (icon == 'memberJoined') return 'user';
132+
if (icon == 'memberLeft') return 'user';
133+
if (icon == 'memberTimedOut') return 'clock-o';
134+
if (icon == 'options') return 'cog';
135+
if (icon == 'reportClear') return 'check';
136+
if (icon == 'reportHostile') return 'crosshairs';
137+
if (icon == 'scan') return 'wifi';
138+
if (icon == 'scanPosted') return 'wifi';
139+
if (icon == 'settings') return 'cog';
140+
if (icon == 'shipLost') return 'bolt';
141+
if (icon == 'sourcedClear') return 'check';
142+
if (icon == 'sourcedClipboard') return 'clipboard';
143+
if (icon == 'sourcedHostile') return 'crosshairs';
144+
if (icon == 'updateHostile') return 'crosshairs';
145+
if (icon == 'updateSystemMap') return 'sitemap';
146+
if (icon == 'youJoined') return 'user';
147+
148+
return 'exclamation';
122149
});

‎app/js/client/Data.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var Data = {
3838
"GEM.CFC": false,
3939
"IMM.CFC": false,
4040
"KAL.CFC": false,
41-
"PBF.CFC": true,
41+
"PBF.CFC": false,
4242
"QUE.CFC": false,
4343
"SYND.CFC": false,
4444
"tenal_int": false,

‎app/js/client/Main.js‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@ var gui = require('nw.gui')
22
, http = require('http')
33
, faye = require('faye')
44
, moment = require('moment')
5-
, fs = require('fs')
6-
, path = require('path')
7-
, tail = require('file-tail')
85

96
window.onload = function () {
107
initializeClient();

‎app/js/client/UI.js‎

Lines changed: 29 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,35 @@ var UI = {
108108
}
109109

110110
Handlebars.registerHelper('ui_icon', function(icon) {
111-
if (icon == 'settings') return 'cog'
112-
return 'question'
111+
if (icon == 'alert') return 'bell';
112+
if (icon == 'approve') return 'check';
113+
if (icon == 'close') return 'close';
114+
if (icon == 'deny') return 'thumbs-down';
115+
if (icon == 'dscan') return 'wifi';
116+
if (icon == 'error') return 'exclamation-triangle';
117+
if (icon == 'fleet') return 'fighter-jet';
118+
if (icon == 'fleetCreated') return 'fighter-jet';
119+
if (icon == 'hostileTimeout') return 'clock-o';
120+
if (icon == 'info') return 'question';
121+
if (icon == 'member') return 'user';
122+
if (icon == 'memberJoined') return 'user';
123+
if (icon == 'memberLeft') return 'user';
124+
if (icon == 'memberTimedOut') return 'clock-o';
125+
if (icon == 'options') return 'cog';
126+
if (icon == 'reportClear') return 'check';
127+
if (icon == 'reportHostile') return 'crosshairs';
128+
if (icon == 'scan') return 'wifi';
129+
if (icon == 'scanPosted') return 'wifi';
130+
if (icon == 'settings') return 'cog';
131+
if (icon == 'shipLost') return 'bolt';
132+
if (icon == 'sourcedClear') return 'check';
133+
if (icon == 'sourcedClipboard') return 'clipboard';
134+
if (icon == 'sourcedHostile') return 'crosshairs';
135+
if (icon == 'updateHostile') return 'crosshairs';
136+
if (icon == 'updateSystemMap') return 'sitemap';
137+
if (icon == 'youJoined') return 'user';
138+
139+
return 'exclamation';
113140
});
114141

115142
Handlebars.registerHelper('reported', function(pilots) {

‎app/styles/main.css‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,10 @@ rect.status-hostile { stroke: #d9534f; fill: #74312f; }
557557
max-height: 2rem;
558558
}
559559

560+
.panel .button i {
561+
padding-top: 0.25rem;
562+
}
563+
560564
.panel .text {
561565
padding-bottom: 1.4rem;
562566
}
@@ -671,7 +675,7 @@ a.button:hover,
671675

672676
.panel .label {
673677
display: inline-block;
674-
min-width: 11rem;
678+
min-width: 9rem;
675679
text-align: left;
676680
}
677681

@@ -928,7 +932,7 @@ border-top: 0.16rem solid #333;
928932
float: right;
929933
width: 48%;
930934
margin-right: 1rem;
931-
935+
932936
}
933937

934938
.public_scan .result i {

‎app/templates/event.hbs‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
<div class="event {{type}}" data-key="{{key}}">
2-
{{#if type}}
3-
<img class="icon" src="/images/icon-{{type}}.png" />
4-
{{else}}
5-
<i class="fa fa-exclamation-triangle"></i>
6-
{{/if}}
2+
<i class="fa fa-{{ui_icon type}}"></i>
73
<span class="text">{{{text}}}</span>
84
<div class="right">
95
{{#if respondable}}

‎public/images/icon-alert.png‎

-780 Bytes
Binary file not shown.

‎public/images/icon-approve.png‎

-720 Bytes
Binary file not shown.

‎public/images/icon-close.png‎

-866 Bytes
Binary file not shown.

‎public/images/icon-deny.png‎

-866 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)