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