mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 06:20:56 +01:00
6df1a02413
Summary: This does some backend cleanup of the tile stuff, and some general cleanup of other application things: - Users who haven't customized preferences get a small, specific set of pinned applications: Differential, Maniphest, Diffusion, Audit, Phriction, Projects (and, for administrators, Auth, Config and People). - Old tile size methods are replaced with `isPinnnedByDefault()`. - Shortened some short descriptions. - `shouldAppearInLaunchView()` replaced by less ambiguous `isLaunchable()`. - Added a marker for third-party / extension applications. Test Plan: Faked away my preferences and viewed the home page, saw a smaller set of default pins. Reviewers: chad Reviewed By: chad Subscribers: epriestley Differential Revision: https://secure.phabricator.com/D9358
48 lines
1.3 KiB
PHP
48 lines
1.3 KiB
PHP
<?php
|
|
|
|
final class PhabricatorApplicationSearch extends PhabricatorApplication {
|
|
|
|
public function getBaseURI() {
|
|
return '/search/';
|
|
}
|
|
|
|
public function getName() {
|
|
return pht('Search');
|
|
}
|
|
|
|
public function getShortDescription() {
|
|
return pht('Full-Text Search');
|
|
}
|
|
|
|
public function getFlavorText() {
|
|
return pht('Find stuff in big piles.');
|
|
}
|
|
|
|
public function getIconName() {
|
|
return 'search';
|
|
}
|
|
|
|
public function isLaunchable() {
|
|
return false;
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/search/' => array(
|
|
'(?:query/(?P<queryKey>[^/]+)/)?' => 'PhabricatorSearchController',
|
|
'attach/(?P<phid>[^/]+)/(?P<type>\w+)/(?:(?P<action>\w+)/)?'
|
|
=> 'PhabricatorSearchAttachController',
|
|
'select/(?P<type>\w+)/'
|
|
=> 'PhabricatorSearchSelectController',
|
|
'index/(?P<phid>[^/]+)/' => 'PhabricatorSearchIndexController',
|
|
'hovercard/(?P<mode>retrieve|test)/' =>
|
|
'PhabricatorSearchHovercardController',
|
|
'edit/(?P<queryKey>[^/]+)/' => 'PhabricatorSearchEditController',
|
|
'delete/(?P<queryKey>[^/]+)/(?P<engine>[^/]+)/'
|
|
=> 'PhabricatorSearchDeleteController',
|
|
'order/(?P<engine>[^/]+)/' => 'PhabricatorSearchOrderController',
|
|
),
|
|
);
|
|
}
|
|
|
|
}
|