2012-10-31 09:57:57 -07:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorApplicationDrydock extends PhabricatorApplication {
|
|
|
|
|
|
|
|
public function getBaseURI() {
|
|
|
|
return '/drydock/';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getShortDescription() {
|
|
|
|
return 'Allocate Software Resources';
|
|
|
|
}
|
|
|
|
|
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 13:37:28 -08:00
|
|
|
public function getIconName() {
|
2012-10-31 09:57:57 -07:00
|
|
|
return 'drydock';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getTitleGlyph() {
|
|
|
|
return "\xE2\x98\x82";
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getFlavorText() {
|
|
|
|
return pht('A nautical adventure.');
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getApplicationGroup() {
|
|
|
|
return self::GROUP_UTILITIES;
|
|
|
|
}
|
|
|
|
|
2013-01-19 10:12:44 -08:00
|
|
|
public function isBeta() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2012-10-31 09:57:57 -07:00
|
|
|
public function getRoutes() {
|
|
|
|
return array(
|
|
|
|
'/drydock/' => array(
|
2013-12-26 12:30:36 -08:00
|
|
|
'' => 'DrydockConsoleController',
|
2013-12-03 11:09:07 +11:00
|
|
|
'blueprint/' => array(
|
2013-12-26 12:30:04 -08:00
|
|
|
'(?:query/(?P<queryKey>[^/]+)/)?' => 'DrydockBlueprintListController',
|
2013-12-03 11:09:07 +11:00
|
|
|
'(?P<id>[1-9]\d*)/' => 'DrydockBlueprintViewController',
|
|
|
|
'create/' => 'DrydockBlueprintCreateController',
|
|
|
|
'edit/(?P<id>[1-9]\d*)/' => 'DrydockBlueprintEditController',
|
|
|
|
),
|
2012-11-20 13:25:22 -08:00
|
|
|
'resource/' => array(
|
2013-12-26 12:30:10 -08:00
|
|
|
'(?:query/(?P<queryKey>[^/]+)/)?' => 'DrydockResourceListController',
|
2012-11-20 13:25:22 -08:00
|
|
|
'(?P<id>[1-9]\d*)/' => 'DrydockResourceViewController',
|
2012-11-27 12:48:03 -08:00
|
|
|
'(?P<id>[1-9]\d*)/close/' => 'DrydockResourceCloseController',
|
2012-11-20 13:25:22 -08:00
|
|
|
),
|
2012-11-06 15:28:33 -08:00
|
|
|
'lease/' => array(
|
2013-12-26 10:42:00 -08:00
|
|
|
'(?:query/(?P<queryKey>[^/]+)/)?' => 'DrydockLeaseListController',
|
2012-11-06 15:28:33 -08:00
|
|
|
'(?P<id>[1-9]\d*)/' => 'DrydockLeaseViewController',
|
2012-12-14 15:42:58 -08:00
|
|
|
'(?P<id>[1-9]\d*)/release/' => 'DrydockLeaseReleaseController',
|
2012-11-06 15:28:33 -08:00
|
|
|
),
|
2013-12-26 12:30:29 -08:00
|
|
|
'log/' => array(
|
|
|
|
'(?:query/(?P<queryKey>[^/]+)/)?' => 'DrydockLogListController',
|
|
|
|
),
|
2012-10-31 09:57:57 -07:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|