Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content
This repository was archived by the owner on Jul 6, 2022. It is now read-only.

Commit c0e8824

Browse files
committed
merging in feature/client.
2 parents bf46ed6 + e1f2f1c commit c0e8824

52 files changed

Lines changed: 1777 additions & 1711 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/js/Data.js

Lines changed: 101 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -1,117 +1,117 @@
11
var Data = {
22

3-
members: [],
4-
hostiles: [],
5-
events: [],
6-
scans: [],
3+
members: [],
4+
hostiles: [],
5+
events: [],
6+
scans: [],
77

8-
config: {
9-
data_client: 'http://127.0.0.1:44444/',
10-
domain: 'https://standing-fleet.herokuapp.com/',
11-
apiUrl: '/api/fleet',
12-
alertStay: 5000,
13-
pollInterval: 7000,
14-
maxEvents: 50,
15-
maxScans: 8,
16-
uiSpeed: 400,
17-
log: 'console'
18-
},
8+
config: {
9+
data_client: 'http://127.0.0.1:44444/',
10+
domain: 'https://standing-fleet.herokuapp.com/',
11+
apiUrl: '/api/fleet',
12+
alertStay: 5000,
13+
pollInterval: 7000,
14+
maxEvents: 50,
15+
maxScans: 8,
16+
uiSpeed: 400,
17+
log: 'console'
18+
},
1919

20-
state: {
21-
fleet: {
22-
password: '',
23-
name: '',
24-
key: ''
25-
},
26-
self: {
27-
characterName: '',
28-
characterId: '',
29-
key: '',
30-
systemId: ''
31-
},
32-
alertCount: 0,
33-
data_client: null,
34-
dimmed: false,
35-
lastPollTs : moment().unix(),
36-
memberSortOrder: {
37-
property: 'name',
38-
order: 'asc'
39-
},
40-
hostileSortOrder: {
41-
property: 'systemName',
42-
order: 'asc'
43-
},
44-
pollLoop: 0
45-
},
20+
state: {
21+
fleet: {
22+
password: '',
23+
name: '',
24+
key: ''
25+
},
26+
self: {
27+
characterName: '',
28+
characterId: '',
29+
key: '',
30+
systemId: ''
31+
},
32+
alertCount: 0,
33+
data_client: null,
34+
dimmed: false,
35+
lastPollTs : moment().unix(),
36+
memberSortOrder: {
37+
property: 'name',
38+
order: 'asc'
39+
},
40+
hostileSortOrder: {
41+
property: 'systemName',
42+
order: 'asc'
43+
},
44+
pollLoop: 0
45+
},
4646

47-
ui: {
48-
logo: $('#top-logo'),
49-
alertContainer: $('#alert-container'),
50-
contentWrapper: $('#content-wrapper'),
51-
dim: $('#dim'),
47+
ui: {
48+
logo: $('#top-logo'),
49+
alertContainer: $('#alert-container'),
50+
contentWrapper: $('#content-wrapper'),
51+
dim: $('#dim'),
5252

53-
topMenu: $('#top-menu'),
54-
topMenu_hud: $('#top-menu-hud'),
55-
topMenu_map: $('#top-menu-system-map'),
56-
topMenu_hostiles: $('#top-menu-hostiles'),
57-
topMenu_members: $('#top-menu-members'),
58-
topMenu_events: $('#top-menu-events'),
59-
topMenu_scans: $('#top-menu-scans'),
53+
topMenu: $('#top-menu'),
54+
topMenu_hud: $('#top-menu-hud'),
55+
topMenu_map: $('#top-menu-system-map'),
56+
topMenu_hostiles: $('#top-menu-hostiles'),
57+
topMenu_members: $('#top-menu-members'),
58+
topMenu_events: $('#top-menu-events'),
59+
topMenu_scans: $('#top-menu-scans'),
6060

61-
bottomMenu: $('#bottom-menu'),
62-
bottomMenu_spinner: $('#bottom-menu-spinner'),
63-
bottomMenu_local: $('#bottom-menu-local'),
64-
bottomMenu_scan: $('#bottom-menu-scan'),
65-
bottomMenu_unlink: $('#bottom-menu-unlink'),
66-
bottomMenu_menu: $('#bottom-menu-menu'),
61+
bottomMenu: $('#bottom-menu'),
62+
bottomMenu_spinner: $('#bottom-menu-spinner'),
63+
bottomMenu_local: $('#bottom-menu-local'),
64+
bottomMenu_scan: $('#bottom-menu-scan'),
65+
bottomMenu_unlink: $('#bottom-menu-unlink'),
66+
bottomMenu_menu: $('#bottom-menu-menu'),
6767

68-
currentSystem: $('#current-system'),
69-
statusClear: $('#status-clear'),
70-
statusHostile: $('#status-hostile'),
68+
currentSystem: $('#current-system'),
69+
statusClear: $('#status-clear'),
70+
statusHostile: $('#status-hostile'),
7171

72-
hud: $('#hud'),
73-
map: $('#system-map'),
74-
hostiles: $('#hostiles'),
75-
hostiles_list: $('#hostiles > .list'),
76-
members: $('#members'),
77-
members_list: $('#members > .list'),
78-
events: $('#events'),
79-
events_list: $('#events > .list'),
80-
scans: $('#scans'),
81-
scans_list: $('#scans > .list')
82-
},
72+
hud: $('#hud'),
73+
map: $('#system-map'),
74+
hostiles: $('#hostiles'),
75+
hostiles_list: $('#hostiles > .list'),
76+
members: $('#members'),
77+
members_list: $('#members > .list'),
78+
events: $('#events'),
79+
events_list: $('#events > .list'),
80+
scans: $('#scans'),
81+
scans_list: $('#scans > .list')
82+
},
8383

84-
templates: {
85-
alert: Templates.alert,
86-
event: Templates.event,
87-
hostile: Templates.hostile,
88-
hud: Templates.hud,
89-
member: Templates.member,
90-
panel: Templates.panel,
91-
scan: Templates.scan
92-
},
84+
templates: {
85+
alert: Templates.alert,
86+
event: Templates.event,
87+
hostile: Templates.hostile,
88+
hud: Templates.hud,
89+
member: Templates.member,
90+
panel: Templates.panel,
91+
scan: Templates.scan
92+
},
9393

94-
ships: {},
94+
ships: {},
9595

96-
preload: function() {
97-
$.ajax({
98-
url: '/data/ships.json',
99-
dataType: 'json',
96+
preload: function() {
97+
$.ajax({
98+
url: '/data/ships.json',
99+
dataType: 'json',
100100

101-
success: function( data ) { Data.ships = data; },
102-
error: function(data, error, errorstring) { if (error) console.log("Error: " + errorString); }
103-
});
101+
success: function( data ) { Data.ships = data; },
102+
error: function(data, error, errorstring) { if (error) console.log("Error: " + errorString); }
103+
});
104104

105-
$.ajax({
106-
url: '/data/map.json',
107-
dataType: 'json',
105+
$.ajax({
106+
url: '/data/map.json',
107+
dataType: 'json',
108108

109-
success: function( data ) {
110-
Data.regions = data.Regions;
111-
Data.systems = data.Systems;
112-
Data.gates = data.Gates;
113-
},
114-
error: function(data, error, errorstring) { if (error) console.log("Error: " + errorString); }
115-
});
116-
}
109+
success: function( data ) {
110+
Data.regions = data.Regions;
111+
Data.systems = data.Systems;
112+
Data.gates = data.Gates;
113+
},
114+
error: function(data, error, errorstring) { if (error) console.log("Error: " + errorString); }
115+
});
116+
}
117117
};

0 commit comments

Comments
 (0)