Style tweaks for Conduit API console
Summary: - Use pretty JSON formatter for human-readable Conduit output - Fix some whitespace issues with format/layout. Test Plan: - Looked at conduit console. - Looked at human-readable output of several calls. Reviewed By: codeblock Reviewers: codeblock, jungejason, tuomaspelkonen, aran CC: aran, codeblock Differential Revision: 740
This commit is contained in:
@@ -106,7 +106,7 @@ class PhabricatorConduitConsoleController
|
||||
$panel = new AphrontPanelView();
|
||||
$panel->setHeader('Conduit API: '.phutil_escape_html($this->method));
|
||||
$panel->appendChild($form);
|
||||
$panel->setWidth(AphrontPanelView::WIDTH_WIDE);
|
||||
$panel->setWidth(AphrontPanelView::WIDTH_FULL);
|
||||
|
||||
$view = new AphrontSideNavView();
|
||||
foreach ($this->buildNavItems() as $item) {
|
||||
@@ -154,9 +154,7 @@ class PhabricatorConduitConsoleController
|
||||
'class' => $selected ? 'aphront-side-nav-selected' : null,
|
||||
'href' => '/conduit/method/'.$method_name,
|
||||
),
|
||||
'<span style="padding-left: 1em;">'.
|
||||
phutil_escape_html($method_name).
|
||||
'</span>');
|
||||
phutil_escape_html($method_name));
|
||||
}
|
||||
$items[] = '<hr />';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user