3 final class DarkConsoleRealtimePlugin
extends DarkConsolePlugin
{
5 public function getName() {
6 return pht('Realtime');
9 public function getColor() {
13 public function getDescription() {
14 return pht('Debugging console for real-time notifications.');
17 public function renderPanel() {
21 'id' => 'dark-console-realtime-log',
22 'class' => 'dark-console-log-frame',
25 $reconnect_label = pht('Reconnect');
26 $replay_label = pht('Replay');
27 $repaint_label = pht('Repaint');
29 $buttons = phutil_tag(
32 'class' => 'dark-console-realtime-actions',
35 id(new PHUIButtonView())
36 ->setIcon('fa-refresh')
37 ->setColor(PHUIButtonView
::GREY
)
38 ->setText($reconnect_label)
39 ->addSigil('dark-console-realtime-action')
42 'action' => 'reconnect',
43 'label' => $reconnect_label,
45 id(new PHUIButtonView())
46 ->setIcon('fa-backward')
47 ->setColor(PHUIButtonView
::GREY
)
48 ->setText($replay_label)
49 ->addSigil('dark-console-realtime-action')
53 'label' => $replay_label,
55 id(new PHUIButtonView())
56 ->setIcon('fa-paint-brush')
57 ->setColor(PHUIButtonView
::GREY
)
58 ->setText($repaint_label)
59 ->addSigil('dark-console-realtime-action')
62 'action' => 'repaint',
63 'label' => $repaint_label,
70 'class' => 'dark-console-realtime',