-
Notifications
You must be signed in to change notification settings - Fork 5
/
notification.constant.js
70 lines (67 loc) · 2.35 KB
/
notification.constant.js
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
/**
* All the popup notifications that AnaLog is able to show.
* Subject to localize.
*/
app.constant('notifications', {
//<editor-fold desc="Server Events">
serverConnected: {
level: 'success',
title: 'Server Is Available',
text: 'Connection restored, we can go on working.'
},
serverDisconnected: {
level: 'warning',
title: 'No Connection With Server',
text: 'Log tracking will continue (if necessary) after connection restore.'
},
//</editor-fold>
//<editor-fold desc="Tail Events">
logNotFound: {
level: 'info',
title: 'Log Not Found',
text: "Log <span class='highlight'>{logPath}</span> not found. Waiting for it to appear..."
},
logAppeared: {
level: 'success',
title: 'Log Detected',
text: "Log <span class='highlight'>{logPath}</span> has appeared. Following it..."
},
logRotated: {
level: 'info',
title: 'Log Rotation',
text: "Log <span class='highlight'>{logPath}</span> started to write from scratch. " +
"Perhaps previous records have been moved to another file."
},
logDisappeared: {
level: 'info',
title: 'Log Lost',
text: "Log <span class='highlight'>{logPath}</span> has disappeared. The tracking will continue" +
" automatically when the log is back."
},
logTruncated: {
level: 'danger',
title: 'Log Reduced',
text: "Log <span class='highlight'>{logPath}</span> has become shorter.<br/>" +
"Current tracking can become incorrect. Restart it if necessary."
},
unrecognized: {
level: 'warning',
title: 'Tracking Notification',
text: "Log <span class='highlight'>{logPath}</span> produced a message:<br/>" +
"<span class='tracking-message'>{message}</span>"
},
//</editor-fold>
//<editor-fold desc="Server Fault(s)">
serverFailure: {
level: 'danger',
title: 'Server Message',
text: "Tracking has been stopped because of error:<br/><span class='failure-message'>{message}</span>"
},
choicesNotFound: {
level: 'danger',
title: 'Server Failure',
text: "Couldn't fetch log choices because of error:<br/>" +
"<span class='failure-message'>{message}</span>"
}
//</editor-fold>
});