mirror of
https://we.phorge.it/source/phorge.git
synced 2025-02-03 02:18:24 +01:00
6e69523efc
Summary: Currently, we have a "config" panel in DarkConsole. It's useful to have a table of all effective config values, but it doesn't need to be in DarkConsole. Move it to Config instead. Basically: - You don't need to activate DarkConsole to see it anymore; - now visible only to admins; - respects config mask/hide; - somewhat prettier; - links to config edit; - no longer ships down on every DarkConsole request with a giant table of rarely-used data. Test Plan: Looked at the table. Looked at lack of table in darkconsole. Reviewers: codeblock, btrahan Reviewed By: codeblock CC: aran Maniphest Tasks: T2255 Differential Revision: https://secure.phabricator.com/D4473
40 lines
978 B
PHP
40 lines
978 B
PHP
<?php
|
|
|
|
final class PhabricatorApplicationConfig extends PhabricatorApplication {
|
|
|
|
public function getBaseURI() {
|
|
return '/config/';
|
|
}
|
|
|
|
public function getIconName() {
|
|
return 'setup';
|
|
}
|
|
|
|
public function getTitleGlyph() {
|
|
return "\xE2\x98\xBA";
|
|
}
|
|
|
|
public function getApplicationGroup() {
|
|
return self::GROUP_ADMIN;
|
|
}
|
|
|
|
public function shouldAppearInLaunchView() {
|
|
return false;
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/config/' => array(
|
|
'' => 'PhabricatorConfigListController',
|
|
'all/' => 'PhabricatorConfigAllController',
|
|
'edit/(?P<key>[\w\.\-]+)/' => 'PhabricatorConfigEditController',
|
|
'group/(?P<key>[^/]+)/' => 'PhabricatorConfigGroupController',
|
|
'issue/' => array(
|
|
'' => 'PhabricatorConfigIssueListController',
|
|
'(?P<key>[^/]+)/' => 'PhabricatorConfigIssueViewController',
|
|
),
|
|
),
|
|
);
|
|
}
|
|
|
|
}
|