2012-10-01 21:56:10 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorApplicationConduit extends PhabricatorApplication {
|
|
|
|
|
|
|
|
public function getBaseURI() {
|
|
|
|
return '/conduit/';
|
|
|
|
}
|
|
|
|
|
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:10 +02:00
|
|
|
return 'conduit';
|
|
|
|
}
|
|
|
|
|
2013-02-13 21:21:30 +01:00
|
|
|
public function canUninstall() {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2012-10-03 21:39:18 +02:00
|
|
|
public function getHelpURI() {
|
|
|
|
return PhabricatorEnv::getDoclink(
|
|
|
|
'article/Conduit_Technical_Documentation.html');
|
|
|
|
}
|
|
|
|
|
2012-10-01 21:56:10 +02:00
|
|
|
public function getShortDescription() {
|
|
|
|
return 'Conduit API Console';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getTitleGlyph() {
|
|
|
|
return "\xE2\x87\xB5";
|
|
|
|
}
|
|
|
|
|
2012-10-04 00:46:19 +02:00
|
|
|
public function getApplicationGroup() {
|
|
|
|
return self::GROUP_DEVELOPER;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getApplicationOrder() {
|
|
|
|
return 0.100;
|
|
|
|
}
|
|
|
|
|
2012-10-01 21:56:10 +02:00
|
|
|
public function getRoutes() {
|
|
|
|
return array(
|
|
|
|
'/conduit/' => array(
|
|
|
|
'' => 'PhabricatorConduitListController',
|
|
|
|
'method/(?P<method>[^/]+)/' => 'PhabricatorConduitConsoleController',
|
|
|
|
'log/' => 'PhabricatorConduitLogController',
|
|
|
|
'log/view/(?P<view>[^/]+)/' => 'PhabricatorConduitLogController',
|
|
|
|
'token/' => 'PhabricatorConduitTokenController',
|
|
|
|
),
|
|
|
|
'/api/(?P<method>[^/]+)' => 'PhabricatorConduitAPIController',
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|