Correct Aphlict websocket URI construction after PHP8 compatibility changes
[phabricator.git] / src / applications / dashboard / application / PhabricatorDashboardApplication.php
blob9a09283fe31c5e80de014403f257f5c2b8b85940
1 <?php
3 final class PhabricatorDashboardApplication extends PhabricatorApplication {
5 public function getName() {
6 return pht('Dashboards');
9 public function getBaseURI() {
10 return '/dashboard/';
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) {
26 return true;
29 public function getApplicationOrder() {
30 return 0.160;
33 public function getRoutes() {
34 $menu_rules = $this->getProfileMenuRouting(
35 'PhabricatorDashboardPortalViewController');
37 return array(
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',
53 'panel/' => array(
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',
67 '/portal/' => array(
68 $this->getQueryRoutePattern() =>
69 'PhabricatorDashboardPortalListController',
70 $this->getEditRoutePattern('edit/') =>
71 'PhabricatorDashboardPortalEditController',
72 'view/(?P<portalID>\d+)/' => array(
73 '' => 'PhabricatorDashboardPortalViewController',
74 ) + $menu_rules,
80 public function getRemarkupRules() {
81 return array(
82 new PhabricatorDashboardRemarkupRule(),