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',
|
2015-05-18 22:07:05 +02:00
|
|
|
'select/(?P<type>\w+)/(?:(?P<action>\w+)/)?'
|
2013-04-15 15:43:39 +02:00
|
|
|
=> 'PhabricatorSearchSelectController',
|
|
|
|
'index/(?P<phid>[^/]+)/' => 'PhabricatorSearchIndexController',
|
2015-12-24 20:20:18 +01:00
|
|
|
'hovercard/'
|
2014-07-23 02:03:09 +02:00
|
|
|
=> '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
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|