3 final class PhabricatorDashboardApplication
extends PhabricatorApplication
{
5 public function getName() {
6 return pht('Dashboards');
9 public function getBaseURI() {
13 public function getTypeaheadURI() {
14 return '/dashboard/console/';
17 public function getShortDescription() {
18 return pht('Create Custom Pages');
21 public function getIcon() {
22 return 'fa-dashboard';
25 public function isPinnedByDefault(PhabricatorUser
$viewer) {
29 public function getApplicationOrder() {
33 public function getRoutes() {
34 $menu_rules = $this->getProfileMenuRouting(
35 'PhabricatorDashboardPortalViewController');
38 '/W(?P<id>\d+)' => 'PhabricatorDashboardPanelViewController',
39 '/dashboard/' => array(
40 '(?:query/(?P<queryKey>[^/]+)/)?'
41 => 'PhabricatorDashboardListController',
42 'view/(?P<id>\d+)/' => 'PhabricatorDashboardViewController',
43 'archive/(?P<id>\d+)/' => 'PhabricatorDashboardArchiveController',
44 $this->getEditRoutePattern('edit/') =>
45 'PhabricatorDashboardEditController',
46 'install/(?P<id>\d+)/'.
47 '(?:(?P<workflowKey>[^/]+)/'.
48 '(?:(?P<modeKey>[^/]+)/)?)?' =>
49 'PhabricatorDashboardInstallController',
50 'console/' => 'PhabricatorDashboardConsoleController',
51 'adjust/(?P<op>remove|add|move)/'
52 => 'PhabricatorDashboardAdjustController',
54 'install/(?P<engineKey>[^/]+)/(?:(?P<queryKey>[^/]+)/)?' =>
55 'PhabricatorDashboardQueryPanelInstallController',
56 '(?:query/(?P<queryKey>[^/]+)/)?'
57 => 'PhabricatorDashboardPanelListController',
58 $this->getEditRoutePattern('edit/')
59 => 'PhabricatorDashboardPanelEditController',
60 'render/(?P<id>\d+)/' => 'PhabricatorDashboardPanelRenderController',
61 'archive/(?P<id>\d+)/'
62 => 'PhabricatorDashboardPanelArchiveController',
63 'tabs/(?P<id>\d+)/(?P<op>add|move|remove|rename)/'
64 => 'PhabricatorDashboardPanelTabsController',
68 $this->getQueryRoutePattern() =>
69 'PhabricatorDashboardPortalListController',
70 $this->getEditRoutePattern('edit/') =>
71 'PhabricatorDashboardPortalEditController',
72 'view/(?P<portalID>\d+)/' => array(
73 '' => 'PhabricatorDashboardPortalViewController',
80 public function getRemarkupRules() {
82 new PhabricatorDashboardRemarkupRule(),