2012-10-01 21:56:02 +02:00
|
|
|
<?php
|
|
|
|
|
2014-07-23 02:03:09 +02:00
|
|
|
final class PhabricatorCountdownApplication extends PhabricatorApplication {
|
2012-10-01 21:56:02 +02:00
|
|
|
|
|
|
|
public function getBaseURI() {
|
|
|
|
return '/countdown/';
|
|
|
|
}
|
|
|
|
|
Use application icons for "Eye" menu and Crumbs
Summary:
Issues here:
- Need an application-sized "eye", or a "home" icon for "Phabricator Home".
- Some of the "apps_lb_2x" sliced images are the "_dark_" versions, not the light versions.
- If you slice an application-sized "logout" (power off) icon and application-sized "help" (questionmark in circle) icon I can replace the current menu icons and nearly get rid of "autosprite".
- To replace the icons on /applications/, the non-retina size is "4x", so we'd need "8x" for retina. Alternatively I can reduce the icon sizes by 50%.
- The "Help", "Settings" and "Logout" items currently have a "glowing" hover state, which needs a variant (or we can drop it).
- The /applications/ icons have a white hover state (or we can drop it).
- The 1x application (14x14) icons aren't used anywhere right now, should they be? Maybe in the feed in the future, etc?
- The "apps-2x" and "apps-large" sheets are the same image, but getting them to actually use the same file is a bit tricky, so I just left them separate for now.
Test Plan:
{F26698}
{F26699}
Reviewers: chad
Reviewed By: chad
CC: aran
Maniphest Tasks: T1960
Differential Revision: https://secure.phabricator.com/D4108
2012-12-07 22:37:28 +01:00
|
|
|
public function getIconName() {
|
2012-10-01 21:56:02 +02:00
|
|
|
return 'countdown';
|
|
|
|
}
|
|
|
|
|
2014-07-23 15:52:50 +02:00
|
|
|
public function getName() {
|
|
|
|
return pht('Countdown');
|
|
|
|
}
|
|
|
|
|
2012-10-01 21:56:02 +02:00
|
|
|
public function getShortDescription() {
|
2014-05-29 21:17:54 +02:00
|
|
|
return pht('Countdown to Events');
|
2012-10-01 21:56:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public function getTitleGlyph() {
|
|
|
|
return "\xE2\x9A\xB2";
|
|
|
|
}
|
|
|
|
|
2012-10-04 00:16:26 +02:00
|
|
|
public function getFlavorText() {
|
|
|
|
return pht('Utilize the full capabilities of your ALU.');
|
|
|
|
}
|
|
|
|
|
2012-10-04 00:46:19 +02:00
|
|
|
public function getApplicationGroup() {
|
|
|
|
return self::GROUP_UTILITIES;
|
|
|
|
}
|
|
|
|
|
2013-07-10 01:23:33 +02:00
|
|
|
public function getRemarkupRules() {
|
|
|
|
return array(
|
|
|
|
new PhabricatorCountdownRemarkupRule(),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2012-10-01 21:56:02 +02:00
|
|
|
public function getRoutes() {
|
|
|
|
return array(
|
|
|
|
'/countdown/' => array(
|
2013-07-23 15:16:19 +02:00
|
|
|
'(?:query/(?P<queryKey>[^/]+)/)?'
|
2012-10-01 21:56:02 +02:00
|
|
|
=> 'PhabricatorCountdownListController',
|
2014-07-23 02:03:09 +02:00
|
|
|
'(?P<id>[1-9]\d*)/' => 'PhabricatorCountdownViewController',
|
|
|
|
'edit/(?:(?P<id>[1-9]\d*)/)?' => 'PhabricatorCountdownEditController',
|
|
|
|
'delete/(?P<id>[1-9]\d*)/' => 'PhabricatorCountdownDeleteController'
|
2012-10-01 21:56:02 +02:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2013-10-16 19:36:08 +02:00
|
|
|
public function getCustomCapabilities() {
|
|
|
|
return array(
|
2014-07-25 00:20:39 +02:00
|
|
|
PhabricatorCountdownDefaultViewCapability::CAPABILITY => array(
|
2013-10-16 19:36:08 +02:00
|
|
|
'caption' => pht('Default view policy for new countdowns.'),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2012-10-01 21:56:02 +02:00
|
|
|
}
|