2013-04-15 06:43:39 -07:00
|
|
|
<?php
|
|
|
|
|
2014-07-23 10:03:09 +10:00
|
|
|
final class PhabricatorSearchApplication extends PhabricatorApplication {
|
2013-04-15 06:43:39 -07:00
|
|
|
|
|
|
|
public function getBaseURI() {
|
|
|
|
return '/search/';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getName() {
|
|
|
|
return pht('Search');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getShortDescription() {
|
2014-05-29 12:17:54 -07:00
|
|
|
return pht('Full-Text Search');
|
2013-04-15 06:43:39 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getFlavorText() {
|
|
|
|
return pht('Find stuff in big piles.');
|
|
|
|
}
|
|
|
|
|
2015-01-24 23:41:43 -08:00
|
|
|
public function getFontIcon() {
|
|
|
|
return 'fa-search';
|
|
|
|
}
|
|
|
|
|
(Redesign) Clean up older "Tile" code
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
2014-06-03 15:47:27 -07:00
|
|
|
public function isLaunchable() {
|
2013-04-15 06:43:39 -07:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getRoutes() {
|
|
|
|
return array(
|
|
|
|
'/search/' => array(
|
2014-02-03 12:52:47 -08:00
|
|
|
'(?:query/(?P<queryKey>[^/]+)/)?' => 'PhabricatorSearchController',
|
2013-04-15 06:43:39 -07:00
|
|
|
'attach/(?P<phid>[^/]+)/(?P<type>\w+)/(?:(?P<action>\w+)/)?'
|
|
|
|
=> 'PhabricatorSearchAttachController',
|
2015-05-18 13:07:05 -07:00
|
|
|
'select/(?P<type>\w+)/(?:(?P<action>\w+)/)?'
|
2013-04-15 06:43:39 -07:00
|
|
|
=> 'PhabricatorSearchSelectController',
|
|
|
|
'index/(?P<phid>[^/]+)/' => 'PhabricatorSearchIndexController',
|
2014-07-23 10:03:09 +10:00
|
|
|
'hovercard/(?P<mode>retrieve|test)/'
|
|
|
|
=> 'PhabricatorSearchHovercardController',
|
2013-05-27 13:42:01 -07:00
|
|
|
'edit/(?P<queryKey>[^/]+)/' => 'PhabricatorSearchEditController',
|
2013-06-05 05:28:25 -07:00
|
|
|
'delete/(?P<queryKey>[^/]+)/(?P<engine>[^/]+)/'
|
|
|
|
=> 'PhabricatorSearchDeleteController',
|
2013-06-05 16:22:27 -07:00
|
|
|
'order/(?P<engine>[^/]+)/' => 'PhabricatorSearchOrderController',
|
2014-07-23 10:03:09 +10:00
|
|
|
),
|
2013-04-15 06:43:39 -07:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|