1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-29 10:12:41 +01:00

Add applications for Owners, Repositories, PHID manager, PHPAST

Summary: See D3572.

Test Plan: Viewed /applications/, saw all these applications.

Reviewers: vrana, btrahan

Reviewed By: btrahan

CC: aran

Differential Revision: https://secure.phabricator.com/D3579
This commit is contained in:
epriestley 2012-10-01 12:56:33 -07:00
parent a717d7db33
commit f817d81b12
10 changed files with 294 additions and 85 deletions

View file

@ -141,6 +141,11 @@ $app_map = array(
'paste' => array(9, 2), 'paste' => array(9, 2),
'audit' => array(8, 19), 'audit' => array(8, 19),
'uiexample' => array(7, 28), 'uiexample' => array(7, 28),
'phpast' => array(6, 31),
'owners' => array(5, 32),
'phid' => array(9, 25),
'diviner' => array(1, 35),
'repositories' => array(8, 13),
); );
$xadj = -1; $xadj = -1;

View file

@ -14,20 +14,6 @@ celerity_register_resource_map(array(
'disk' => '/rsrc/image/app/app_audit.png', 'disk' => '/rsrc/image/app/app_audit.png',
'type' => 'png', 'type' => 'png',
), ),
'/rsrc/image/application/ponder/downvote.png' =>
array(
'hash' => '46c5644a0fccb9e237a3363e07f50487',
'uri' => '/res/46c5644a/rsrc/image/application/ponder/downvote.png',
'disk' => '/rsrc/image/application/ponder/downvote.png',
'type' => 'png',
),
'/rsrc/image/application/ponder/upvote.png' =>
array(
'hash' => 'edd58ed3a09f3017c78601b1a5d0e7a7',
'uri' => '/res/edd58ed3/rsrc/image/application/ponder/upvote.png',
'disk' => '/rsrc/image/application/ponder/upvote.png',
'type' => 'png',
),
'/rsrc/image/apps.png' => '/rsrc/image/apps.png' =>
array( array(
'hash' => 'f7cb4abeb73245fea4098a02fd784653', 'hash' => 'f7cb4abeb73245fea4098a02fd784653',
@ -1664,14 +1650,15 @@ celerity_register_resource_map(array(
), ),
'javelin-behavior-ponder-votebox' => 'javelin-behavior-ponder-votebox' =>
array( array(
'uri' => '/res/6517d3f5/rsrc/js/application/ponder/behavior-votebox.js', 'uri' => '/res/9d091af3/rsrc/js/application/ponder/behavior-votebox.js',
'type' => 'js', 'type' => 'js',
'requires' => 'requires' =>
array( array(
0 => 'javelin-behavior', 0 => 'javelin-behavior',
1 => 'javelin-dom', 1 => 'javelin-dom',
2 => 'javelin-util', 2 => 'javelin-util',
3 => 'phabricator-shaped-request', 3 => 'javelin-stratcom',
4 => 'javelin-request',
), ),
'disk' => '/rsrc/js/application/ponder/behavior-votebox.js', 'disk' => '/rsrc/js/application/ponder/behavior-votebox.js',
), ),
@ -2901,7 +2888,7 @@ celerity_register_resource_map(array(
), ),
'ponder-vote-css' => 'ponder-vote-css' =>
array( array(
'uri' => '/res/d4dff9ba/rsrc/css/application/ponder/vote.css', 'uri' => '/res/ea8316c2/rsrc/css/application/ponder/vote.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(

View file

@ -567,11 +567,15 @@ phutil_register_library_map(array(
'PhabricatorApplicationMailingLists' => 'applications/mailinglists/application/PhabricatorApplicationMailingLists.php', 'PhabricatorApplicationMailingLists' => 'applications/mailinglists/application/PhabricatorApplicationMailingLists.php',
'PhabricatorApplicationManiphest' => 'applications/maniphest/application/PhabricatorApplicationManiphest.php', 'PhabricatorApplicationManiphest' => 'applications/maniphest/application/PhabricatorApplicationManiphest.php',
'PhabricatorApplicationMetaMTA' => 'applications/metamta/application/PhabricatorApplicationMetaMTA.php', 'PhabricatorApplicationMetaMTA' => 'applications/metamta/application/PhabricatorApplicationMetaMTA.php',
'PhabricatorApplicationOwners' => 'applications/owners/application/PhabricatorApplicationOwners.php',
'PhabricatorApplicationPHID' => 'applications/phid/application/PhabricatorApplicationPHID.php',
'PhabricatorApplicationPHPAST' => 'applications/xhpastview/application/PhabricatorApplicationPHPAST.php',
'PhabricatorApplicationPaste' => 'applications/paste/application/PhabricatorApplicationPaste.php', 'PhabricatorApplicationPaste' => 'applications/paste/application/PhabricatorApplicationPaste.php',
'PhabricatorApplicationPeople' => 'applications/people/application/PhabricatorApplicationPeople.php', 'PhabricatorApplicationPeople' => 'applications/people/application/PhabricatorApplicationPeople.php',
'PhabricatorApplicationPhriction' => 'applications/phriction/application/PhabricatorApplicationPhriction.php', 'PhabricatorApplicationPhriction' => 'applications/phriction/application/PhabricatorApplicationPhriction.php',
'PhabricatorApplicationPonder' => 'applications/ponder/application/PhabricatorApplicationPonder.php', 'PhabricatorApplicationPonder' => 'applications/ponder/application/PhabricatorApplicationPonder.php',
'PhabricatorApplicationProject' => 'applications/project/application/PhabricatorApplicationProject.php', 'PhabricatorApplicationProject' => 'applications/project/application/PhabricatorApplicationProject.php',
'PhabricatorApplicationRepositories' => 'applications/repository/application/PhabricatorApplicationRepositories.php',
'PhabricatorApplicationSettings' => 'applications/settings/application/PhabricatorApplicationSettings.php', 'PhabricatorApplicationSettings' => 'applications/settings/application/PhabricatorApplicationSettings.php',
'PhabricatorApplicationSlowvote' => 'applications/slowvote/application/PhabricatorApplicationSlowvote.php', 'PhabricatorApplicationSlowvote' => 'applications/slowvote/application/PhabricatorApplicationSlowvote.php',
'PhabricatorApplicationStatusView' => 'applications/meta/view/PhabricatorApplicationStatusView.php', 'PhabricatorApplicationStatusView' => 'applications/meta/view/PhabricatorApplicationStatusView.php',
@ -1724,11 +1728,15 @@ phutil_register_library_map(array(
'PhabricatorApplicationMailingLists' => 'PhabricatorApplication', 'PhabricatorApplicationMailingLists' => 'PhabricatorApplication',
'PhabricatorApplicationManiphest' => 'PhabricatorApplication', 'PhabricatorApplicationManiphest' => 'PhabricatorApplication',
'PhabricatorApplicationMetaMTA' => 'PhabricatorApplication', 'PhabricatorApplicationMetaMTA' => 'PhabricatorApplication',
'PhabricatorApplicationOwners' => 'PhabricatorApplication',
'PhabricatorApplicationPHID' => 'PhabricatorApplication',
'PhabricatorApplicationPHPAST' => 'PhabricatorApplication',
'PhabricatorApplicationPaste' => 'PhabricatorApplication', 'PhabricatorApplicationPaste' => 'PhabricatorApplication',
'PhabricatorApplicationPeople' => 'PhabricatorApplication', 'PhabricatorApplicationPeople' => 'PhabricatorApplication',
'PhabricatorApplicationPhriction' => 'PhabricatorApplication', 'PhabricatorApplicationPhriction' => 'PhabricatorApplication',
'PhabricatorApplicationPonder' => 'PhabricatorApplication', 'PhabricatorApplicationPonder' => 'PhabricatorApplication',
'PhabricatorApplicationProject' => 'PhabricatorApplication', 'PhabricatorApplicationProject' => 'PhabricatorApplication',
'PhabricatorApplicationRepositories' => 'PhabricatorApplication',
'PhabricatorApplicationSettings' => 'PhabricatorApplication', 'PhabricatorApplicationSettings' => 'PhabricatorApplication',
'PhabricatorApplicationSlowvote' => 'PhabricatorApplication', 'PhabricatorApplicationSlowvote' => 'PhabricatorApplication',
'PhabricatorApplicationStatusView' => 'AphrontView', 'PhabricatorApplicationStatusView' => 'AphrontView',

View file

@ -64,9 +64,6 @@ class AphrontDefaultApplicationConfiguration
'xform/(?P<transform>[^/]+)/(?P<phid>[^/]+)/' 'xform/(?P<transform>[^/]+)/(?P<phid>[^/]+)/'
=> 'PhabricatorFileTransformController', => 'PhabricatorFileTransformController',
), ),
'/phid/' => array(
'' => 'PhabricatorPHIDLookupController',
),
'/typeahead/' => array( '/typeahead/' => array(
'common/(?P<type>\w+)/' 'common/(?P<type>\w+)/'
@ -124,16 +121,6 @@ class AphrontDefaultApplicationConfiguration
'/~/' => 'DarkConsoleController', '/~/' => 'DarkConsoleController',
'/repository/' => array(
'' => 'PhabricatorRepositoryListController',
'create/' => 'PhabricatorRepositoryCreateController',
'edit/(?P<id>\d+)/(?:(?P<view>\w+)?/)?' =>
'PhabricatorRepositoryEditController',
'delete/(?P<id>\d+)/' => 'PhabricatorRepositoryDeleteController',
'project/(?P<id>\d+)/' =>
'PhabricatorRepositoryArcanistProjectEditController',
),
'/search/' => array( '/search/' => array(
'' => 'PhabricatorSearchController', '' => 'PhabricatorSearchController',
'(?P<key>[^/]+)/' => 'PhabricatorSearchController', '(?P<key>[^/]+)/' => 'PhabricatorSearchController',
@ -144,29 +131,6 @@ class AphrontDefaultApplicationConfiguration
'index/(?P<phid>[^/]+)/' => 'PhabricatorSearchIndexController', 'index/(?P<phid>[^/]+)/' => 'PhabricatorSearchIndexController',
), ),
'/owners/' => array(
'' => 'PhabricatorOwnersListController',
'view/(?P<view>[^/]+)/' => 'PhabricatorOwnersListController',
'edit/(?P<id>\d+)/' => 'PhabricatorOwnersEditController',
'new/' => 'PhabricatorOwnersEditController',
'package/(?P<id>\d+)/' => 'PhabricatorOwnersDetailController',
'delete/(?P<id>\d+)/' => 'PhabricatorOwnersDeleteController',
),
'/xhpast/' => array(
'' => 'PhabricatorXHPASTViewRunController',
'view/(?P<id>\d+)/'
=> 'PhabricatorXHPASTViewFrameController',
'frameset/(?P<id>\d+)/'
=> 'PhabricatorXHPASTViewFramesetController',
'input/(?P<id>\d+)/'
=> 'PhabricatorXHPASTViewInputController',
'tree/(?P<id>\d+)/'
=> 'PhabricatorXHPASTViewTreeController',
'stream/(?P<id>\d+)/'
=> 'PhabricatorXHPASTViewStreamController',
),
'/status/' => 'PhabricatorStatusController', '/status/' => 'PhabricatorStatusController',

View file

@ -0,0 +1,50 @@
<?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 PhabricatorApplicationOwners extends PhabricatorApplication {
public function getBaseURI() {
return '/owners/';
}
public function getAutospriteName() {
return 'owners';
}
public function getShortDescription() {
return 'Group Source Code';
}
public function getTitleGlyph() {
return "\xE2\x98\x81";
}
public function getRoutes() {
return array(
'/owners/' => array(
'' => 'PhabricatorOwnersListController',
'view/(?P<view>[^/]+)/' => 'PhabricatorOwnersListController',
'edit/(?P<id>\d+)/' => 'PhabricatorOwnersEditController',
'new/' => 'PhabricatorOwnersEditController',
'package/(?P<id>\d+)/' => 'PhabricatorOwnersDetailController',
'delete/(?P<id>\d+)/' => 'PhabricatorOwnersDeleteController',
),
);
}
}

View file

@ -0,0 +1,49 @@
<?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 PhabricatorApplicationPHID extends PhabricatorApplication {
public function getName() {
return 'PHID Manager';
}
public function getBaseURI() {
return '/phid/';
}
public function getAutospriteName() {
return 'phid';
}
public function getShortDescription() {
return 'Lookup PHIDs';
}
public function getTitleGlyph() {
return "#";
}
public function getRoutes() {
return array(
'/phid/' => array(
'' => 'PhabricatorPHIDLookupController',
),
);
}
}

View file

@ -0,0 +1,51 @@
<?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 PhabricatorApplicationRepositories extends PhabricatorApplication {
public function getBaseURI() {
return '/repository/';
}
public function getAutospriteName() {
return 'repositories';
}
public function getShortDescription() {
return 'Track Repositories';
}
public function getTitleGlyph() {
return "rX";
}
public function getRoutes() {
return array(
'/repository/' => array(
'' => 'PhabricatorRepositoryListController',
'create/' => 'PhabricatorRepositoryCreateController',
'edit/(?P<id>\d+)/(?:(?P<view>\w+)?/)?' =>
'PhabricatorRepositoryEditController',
'delete/(?P<id>\d+)/' => 'PhabricatorRepositoryDeleteController',
'project/(?P<id>\d+)/' =>
'PhabricatorRepositoryArcanistProjectEditController',
),
);
}
}

View file

@ -0,0 +1,55 @@
<?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 PhabricatorApplicationPHPAST extends PhabricatorApplication {
public function getBaseURI() {
return '/xhpast/';
}
public function getAutospriteName() {
return 'phpast';
}
public function getShortDescription() {
return 'Visual PHP Parser';
}
public function getTitleGlyph() {
return "\xE2\x96\xA0";
}
public function getRoutes() {
return array(
'/xhpast/' => array(
'' => 'PhabricatorXHPASTViewRunController',
'view/(?P<id>\d+)/'
=> 'PhabricatorXHPASTViewFrameController',
'frameset/(?P<id>\d+)/'
=> 'PhabricatorXHPASTViewFramesetController',
'input/(?P<id>\d+)/'
=> 'PhabricatorXHPASTViewInputController',
'tree/(?P<id>\d+)/'
=> 'PhabricatorXHPASTViewTreeController',
'stream/(?P<id>\d+)/'
=> 'PhabricatorXHPASTViewStreamController',
),
);
}
}

View file

@ -259,50 +259,90 @@
background-position: 0px -2582px; background-position: 0px -2582px;
} }
.action-file { .app-phpast-full {
background-position: 0px -2613px; background-position: 0px -2613px;
} }
.action-fork { .app-phpast {
background-position: 0px -2630px; background-position: 0px -2674px;
} }
.action-edit { .app-owners-full {
background-position: 0px -2647px; background-position: 0px -2705px;
} }
.action-flag-0 { .app-owners {
background-position: 0px -2664px;
}
.action-flag-1 {
background-position: 0px -2681px;
}
.action-flag-2 {
background-position: 0px -2698px;
}
.action-flag-3 {
background-position: 0px -2715px;
}
.action-flag-4 {
background-position: 0px -2732px;
}
.action-flag-5 {
background-position: 0px -2749px;
}
.action-flag-6 {
background-position: 0px -2766px; background-position: 0px -2766px;
} }
.app-phid-full {
background-position: 0px -2797px;
}
.app-phid {
background-position: 0px -2858px;
}
.app-diviner-full {
background-position: 0px -2889px;
}
.app-diviner {
background-position: 0px -2950px;
}
.app-repositories-full {
background-position: 0px -2981px;
}
.app-repositories {
background-position: 0px -3042px;
}
.action-file {
background-position: 0px -3073px;
}
.action-fork {
background-position: 0px -3090px;
}
.action-edit {
background-position: 0px -3107px;
}
.action-flag-0 {
background-position: 0px -3124px;
}
.action-flag-1 {
background-position: 0px -3141px;
}
.action-flag-2 {
background-position: 0px -3158px;
}
.action-flag-3 {
background-position: 0px -3175px;
}
.action-flag-4 {
background-position: 0px -3192px;
}
.action-flag-5 {
background-position: 0px -3209px;
}
.action-flag-6 {
background-position: 0px -3226px;
}
.action-flag-7 { .action-flag-7 {
background-position: 0px -2783px; background-position: 0px -3243px;
} }
.action-flag-ghost { .action-flag-ghost {
background-position: 0px -2800px; background-position: 0px -3260px;
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

After

Width:  |  Height:  |  Size: 106 KiB