mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 14:52:41 +01:00
Add Drydock Application
Summary: Add an Application class for Drydock and move routing rules there. Test Plan: Looked at /applications/, clicked around drydock. Reviewers: btrahan Reviewed By: btrahan CC: aran Differential Revision: https://secure.phabricator.com/D3847
This commit is contained in:
parent
1154447d06
commit
a7da4fad88
6 changed files with 169 additions and 97 deletions
|
@ -180,6 +180,7 @@ $app_map = array(
|
||||||
'phame' => array(8, 4),
|
'phame' => array(8, 4),
|
||||||
'macro' => array(0, 31),
|
'macro' => array(0, 31),
|
||||||
'releeph' => array(5, 18),
|
'releeph' => array(5, 18),
|
||||||
|
'drydock' => array(5, 25),
|
||||||
);
|
);
|
||||||
|
|
||||||
$xadj = -1;
|
$xadj = -1;
|
||||||
|
|
|
@ -561,6 +561,7 @@ phutil_register_library_map(array(
|
||||||
'PhabricatorApplicationDifferential' => 'applications/differential/application/PhabricatorApplicationDifferential.php',
|
'PhabricatorApplicationDifferential' => 'applications/differential/application/PhabricatorApplicationDifferential.php',
|
||||||
'PhabricatorApplicationDiffusion' => 'applications/diffusion/application/PhabricatorApplicationDiffusion.php',
|
'PhabricatorApplicationDiffusion' => 'applications/diffusion/application/PhabricatorApplicationDiffusion.php',
|
||||||
'PhabricatorApplicationDiviner' => 'applications/diviner/application/PhabricatorApplicationDiviner.php',
|
'PhabricatorApplicationDiviner' => 'applications/diviner/application/PhabricatorApplicationDiviner.php',
|
||||||
|
'PhabricatorApplicationDrydock' => 'applications/drydock/application/PhabricatorApplicationDrydock.php',
|
||||||
'PhabricatorApplicationFact' => 'applications/fact/application/PhabricatorApplicationFact.php',
|
'PhabricatorApplicationFact' => 'applications/fact/application/PhabricatorApplicationFact.php',
|
||||||
'PhabricatorApplicationFiles' => 'applications/files/application/PhabricatorApplicationFiles.php',
|
'PhabricatorApplicationFiles' => 'applications/files/application/PhabricatorApplicationFiles.php',
|
||||||
'PhabricatorApplicationFlags' => 'applications/flag/application/PhabricatorApplicationFlags.php',
|
'PhabricatorApplicationFlags' => 'applications/flag/application/PhabricatorApplicationFlags.php',
|
||||||
|
@ -1768,6 +1769,7 @@ phutil_register_library_map(array(
|
||||||
'PhabricatorApplicationDifferential' => 'PhabricatorApplication',
|
'PhabricatorApplicationDifferential' => 'PhabricatorApplication',
|
||||||
'PhabricatorApplicationDiffusion' => 'PhabricatorApplication',
|
'PhabricatorApplicationDiffusion' => 'PhabricatorApplication',
|
||||||
'PhabricatorApplicationDiviner' => 'PhabricatorApplication',
|
'PhabricatorApplicationDiviner' => 'PhabricatorApplication',
|
||||||
|
'PhabricatorApplicationDrydock' => 'PhabricatorApplication',
|
||||||
'PhabricatorApplicationFact' => 'PhabricatorApplication',
|
'PhabricatorApplicationFact' => 'PhabricatorApplication',
|
||||||
'PhabricatorApplicationFiles' => 'PhabricatorApplication',
|
'PhabricatorApplicationFiles' => 'PhabricatorApplication',
|
||||||
'PhabricatorApplicationFlags' => 'PhabricatorApplication',
|
'PhabricatorApplicationFlags' => 'PhabricatorApplication',
|
||||||
|
|
|
@ -113,14 +113,6 @@ class AphrontDefaultApplicationConfiguration
|
||||||
'keyboardshortcut/' => 'PhabricatorHelpKeyboardShortcutController',
|
'keyboardshortcut/' => 'PhabricatorHelpKeyboardShortcutController',
|
||||||
),
|
),
|
||||||
|
|
||||||
'/drydock/' => array(
|
|
||||||
'' => 'DrydockResourceListController',
|
|
||||||
'resource/' => 'DrydockResourceListController',
|
|
||||||
'resource/allocate/' => 'DrydockResourceAllocateController',
|
|
||||||
'lease/' => 'DrydockLeaseListController',
|
|
||||||
'log/' => 'DrydockLogController',
|
|
||||||
),
|
|
||||||
|
|
||||||
'/chatlog/' => array(
|
'/chatlog/' => array(
|
||||||
'' =>
|
'' =>
|
||||||
'PhabricatorChatLogChannelListController',
|
'PhabricatorChatLogChannelListController',
|
||||||
|
|
|
@ -0,0 +1,57 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Copyright 2012 Facebook, Inc.
|
||||||
|
*
|
||||||
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
* you may not use this file except in compliance with the License.
|
||||||
|
* You may obtain a copy of the License at
|
||||||
|
*
|
||||||
|
* http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
*
|
||||||
|
* Unless required by applicable law or agreed to in writing, software
|
||||||
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
* See the License for the specific language governing permissions and
|
||||||
|
* limitations under the License.
|
||||||
|
*/
|
||||||
|
|
||||||
|
final class PhabricatorApplicationDrydock extends PhabricatorApplication {
|
||||||
|
|
||||||
|
public function getBaseURI() {
|
||||||
|
return '/drydock/';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getShortDescription() {
|
||||||
|
return 'Allocate Software Resources';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getAutospriteName() {
|
||||||
|
return 'drydock';
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getTitleGlyph() {
|
||||||
|
return "\xE2\x98\x82";
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getFlavorText() {
|
||||||
|
return pht('A nautical adventure.');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getApplicationGroup() {
|
||||||
|
return self::GROUP_UTILITIES;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getRoutes() {
|
||||||
|
return array(
|
||||||
|
'/drydock/' => array(
|
||||||
|
'' => 'DrydockResourceListController',
|
||||||
|
'resource/' => 'DrydockResourceListController',
|
||||||
|
'resource/allocate/' => 'DrydockResourceAllocateController',
|
||||||
|
'lease/' => 'DrydockLeaseListController',
|
||||||
|
'log/' => 'DrydockLogController',
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -708,126 +708,146 @@
|
||||||
background-position: 0px -7254px;
|
background-position: 0px -7254px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action-delete {
|
.app-drydock-large {
|
||||||
background-position: 0px -7285px;
|
background-position: 0px -7285px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action-edit {
|
.device-desktop .phabricator-application-launch-container:hover .app-drydock-large /* hover */ {
|
||||||
background-position: 0px -7302px;
|
background-position: 0px -7346px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action-file {
|
.app-drydock {
|
||||||
background-position: 0px -7319px;
|
background-position: 0px -7407px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action-flag-0 {
|
.device-desktop .app-drydock:hover {
|
||||||
background-position: 0px -7336px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-flag-1 {
|
|
||||||
background-position: 0px -7353px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-flag-2 {
|
|
||||||
background-position: 0px -7370px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-flag-3 {
|
|
||||||
background-position: 0px -7387px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-flag-4 {
|
|
||||||
background-position: 0px -7404px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-flag-5 {
|
|
||||||
background-position: 0px -7421px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-flag-6 {
|
|
||||||
background-position: 0px -7438px;
|
background-position: 0px -7438px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.app-drydock-selected {
|
||||||
|
background-position: 0px -7469px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-delete {
|
||||||
|
background-position: 0px -7500px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-edit {
|
||||||
|
background-position: 0px -7517px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-file {
|
||||||
|
background-position: 0px -7534px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-flag-0 {
|
||||||
|
background-position: 0px -7551px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-flag-1 {
|
||||||
|
background-position: 0px -7568px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-flag-2 {
|
||||||
|
background-position: 0px -7585px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-flag-3 {
|
||||||
|
background-position: 0px -7602px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-flag-4 {
|
||||||
|
background-position: 0px -7619px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-flag-5 {
|
||||||
|
background-position: 0px -7636px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-flag-6 {
|
||||||
|
background-position: 0px -7653px;
|
||||||
|
}
|
||||||
|
|
||||||
.action-flag-7 {
|
.action-flag-7 {
|
||||||
background-position: 0px -7455px;
|
background-position: 0px -7670px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.action-flag-ghost {
|
.action-flag-ghost {
|
||||||
background-position: 0px -7472px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-fork {
|
|
||||||
background-position: 0px -7489px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-move {
|
|
||||||
background-position: 0px -7506px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-new {
|
|
||||||
background-position: 0px -7523px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-preview {
|
|
||||||
background-position: 0px -7540px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-subscribe-add {
|
|
||||||
background-position: 0px -7557px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-subscribe-auto {
|
|
||||||
background-position: 0px -7574px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-subscribe-delete {
|
|
||||||
background-position: 0px -7591px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-unpublish {
|
|
||||||
background-position: 0px -7608px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.action-world {
|
|
||||||
background-position: 0px -7625px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remarkup-assist-b {
|
|
||||||
background-position: 0px -7642px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remarkup-assist-code {
|
|
||||||
background-position: 0px -7657px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remarkup-assist-i {
|
|
||||||
background-position: 0px -7672px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.remarkup-assist-image {
|
|
||||||
background-position: 0px -7687px;
|
background-position: 0px -7687px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.action-fork {
|
||||||
|
background-position: 0px -7704px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-move {
|
||||||
|
background-position: 0px -7721px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-new {
|
||||||
|
background-position: 0px -7738px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-preview {
|
||||||
|
background-position: 0px -7755px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-subscribe-add {
|
||||||
|
background-position: 0px -7772px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-subscribe-auto {
|
||||||
|
background-position: 0px -7789px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-subscribe-delete {
|
||||||
|
background-position: 0px -7806px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-unpublish {
|
||||||
|
background-position: 0px -7823px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.action-world {
|
||||||
|
background-position: 0px -7840px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remarkup-assist-b {
|
||||||
|
background-position: 0px -7857px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remarkup-assist-code {
|
||||||
|
background-position: 0px -7872px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remarkup-assist-i {
|
||||||
|
background-position: 0px -7887px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.remarkup-assist-image {
|
||||||
|
background-position: 0px -7902px;
|
||||||
|
}
|
||||||
|
|
||||||
.remarkup-assist-ol {
|
.remarkup-assist-ol {
|
||||||
background-position: 0px -7702px;
|
background-position: 0px -7917px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.remarkup-assist-tag {
|
.remarkup-assist-tag {
|
||||||
background-position: 0px -7717px;
|
background-position: 0px -7932px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.remarkup-assist-tt {
|
.remarkup-assist-tt {
|
||||||
background-position: 0px -7732px;
|
background-position: 0px -7947px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.remarkup-assist-ul {
|
.remarkup-assist-ul {
|
||||||
background-position: 0px -7747px;
|
background-position: 0px -7962px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.remarkup-assist-help {
|
.remarkup-assist-help {
|
||||||
background-position: 0px -7762px;
|
background-position: 0px -7977px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.remarkup-assist-table {
|
.remarkup-assist-table {
|
||||||
background-position: 0px -7777px;
|
background-position: 0px -7992px;
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 147 KiB After Width: | Height: | Size: 152 KiB |
Loading…
Reference in a new issue