mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +01:00
Move Workboards to PHUI
Summary: This is just renaming to PHUI (I like shorter text :) Test Plan: reload workboard examples page, seems to not fatal and looks very appealing Reviewers: epriestley Reviewed By: epriestley CC: Korvin, aran Differential Revision: https://secure.phabricator.com/D6904
This commit is contained in:
parent
b4d9a8d547
commit
d06788c1e5
7 changed files with 61 additions and 61 deletions
|
@ -3650,24 +3650,6 @@ celerity_register_resource_map(array(
|
|||
),
|
||||
'disk' => '/rsrc/js/application/uiexample/ReactorSendPropertiesExample.js',
|
||||
),
|
||||
'phabricator-workboard-view-css' =>
|
||||
array(
|
||||
'uri' => '/res/f598d215/rsrc/css/layout/phabricator-workboard-view.css',
|
||||
'type' => 'css',
|
||||
'requires' =>
|
||||
array(
|
||||
),
|
||||
'disk' => '/rsrc/css/layout/phabricator-workboard-view.css',
|
||||
),
|
||||
'phabricator-workpanel-view-css' =>
|
||||
array(
|
||||
'uri' => '/res/d0cdb62e/rsrc/css/layout/phabricator-workpanel-view.css',
|
||||
'type' => 'css',
|
||||
'requires' =>
|
||||
array(
|
||||
),
|
||||
'disk' => '/rsrc/css/layout/phabricator-workpanel-view.css',
|
||||
),
|
||||
'phabricator-zindex-css' =>
|
||||
array(
|
||||
'uri' => '/res/b443d508/rsrc/css/core/z-index.css',
|
||||
|
@ -3871,6 +3853,24 @@ celerity_register_resource_map(array(
|
|||
),
|
||||
'disk' => '/rsrc/css/phui/phui-text.css',
|
||||
),
|
||||
'phui-workboard-view-css' =>
|
||||
array(
|
||||
'uri' => '/res/628679e5/rsrc/css/phui/phui-workboard-view.css',
|
||||
'type' => 'css',
|
||||
'requires' =>
|
||||
array(
|
||||
),
|
||||
'disk' => '/rsrc/css/phui/phui-workboard-view.css',
|
||||
),
|
||||
'phui-workpanel-view-css' =>
|
||||
array(
|
||||
'uri' => '/res/a81825b2/rsrc/css/phui/phui-workpanel-view.css',
|
||||
'type' => 'css',
|
||||
'requires' =>
|
||||
array(
|
||||
),
|
||||
'disk' => '/rsrc/css/phui/phui-workpanel-view.css',
|
||||
),
|
||||
'ponder-comment-table-css' =>
|
||||
array(
|
||||
'uri' => '/res/fd114c83/rsrc/css/application/ponder/comments.css',
|
||||
|
|
|
@ -767,6 +767,9 @@ phutil_register_library_map(array(
|
|||
'PHUIStatusListView' => 'view/phui/PHUIStatusListView.php',
|
||||
'PHUITextExample' => 'applications/uiexample/examples/PHUITextExample.php',
|
||||
'PHUITextView' => 'view/phui/PHUITextView.php',
|
||||
'PHUIWorkboardExample' => 'applications/uiexample/examples/PHUIWorkboardExample.php',
|
||||
'PHUIWorkboardView' => 'view/phui/PHUIWorkboardView.php',
|
||||
'PHUIWorkpanelView' => 'view/phui/PHUIWorkpanelView.php',
|
||||
'PackageCreateMail' => 'applications/owners/mail/PackageCreateMail.php',
|
||||
'PackageDeleteMail' => 'applications/owners/mail/PackageDeleteMail.php',
|
||||
'PackageMail' => 'applications/owners/mail/PackageMail.php',
|
||||
|
@ -1724,8 +1727,6 @@ phutil_register_library_map(array(
|
|||
'PhabricatorUserTestCase' => 'applications/people/storage/__tests__/PhabricatorUserTestCase.php',
|
||||
'PhabricatorUserTitleField' => 'applications/people/customfield/PhabricatorUserTitleField.php',
|
||||
'PhabricatorUserTransaction' => 'applications/people/storage/PhabricatorUserTransaction.php',
|
||||
'PhabricatorWorkboardExample' => 'applications/uiexample/examples/PhabricatorWorkboardExample.php',
|
||||
'PhabricatorWorkboardView' => 'view/layout/PhabricatorWorkboardView.php',
|
||||
'PhabricatorWorker' => 'infrastructure/daemon/workers/PhabricatorWorker.php',
|
||||
'PhabricatorWorkerActiveTask' => 'infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php',
|
||||
'PhabricatorWorkerArchiveTask' => 'infrastructure/daemon/workers/storage/PhabricatorWorkerArchiveTask.php',
|
||||
|
@ -1740,7 +1741,6 @@ phutil_register_library_map(array(
|
|||
'PhabricatorWorkingCopyDiscoveryTestCase' => 'applications/repository/engine/__tests__/PhabricatorWorkingCopyDiscoveryTestCase.php',
|
||||
'PhabricatorWorkingCopyPullTestCase' => 'applications/repository/engine/__tests__/PhabricatorWorkingCopyPullTestCase.php',
|
||||
'PhabricatorWorkingCopyTestCase' => 'applications/repository/engine/__tests__/PhabricatorWorkingCopyTestCase.php',
|
||||
'PhabricatorWorkpanelView' => 'view/layout/PhabricatorWorkpanelView.php',
|
||||
'PhabricatorXHPASTViewController' => 'applications/phpast/controller/PhabricatorXHPASTViewController.php',
|
||||
'PhabricatorXHPASTViewDAO' => 'applications/phpast/storage/PhabricatorXHPASTViewDAO.php',
|
||||
'PhabricatorXHPASTViewFrameController' => 'applications/phpast/controller/PhabricatorXHPASTViewFrameController.php',
|
||||
|
@ -2826,6 +2826,9 @@ phutil_register_library_map(array(
|
|||
'PHUIStatusListView' => 'AphrontTagView',
|
||||
'PHUITextExample' => 'PhabricatorUIExample',
|
||||
'PHUITextView' => 'AphrontTagView',
|
||||
'PHUIWorkboardExample' => 'PhabricatorUIExample',
|
||||
'PHUIWorkboardView' => 'AphrontView',
|
||||
'PHUIWorkpanelView' => 'AphrontView',
|
||||
'PackageCreateMail' => 'PackageMail',
|
||||
'PackageDeleteMail' => 'PackageMail',
|
||||
'PackageMail' => 'PhabricatorMail',
|
||||
|
@ -3856,8 +3859,6 @@ phutil_register_library_map(array(
|
|||
'PhabricatorUserTestCase' => 'PhabricatorTestCase',
|
||||
'PhabricatorUserTitleField' => 'PhabricatorUserCustomField',
|
||||
'PhabricatorUserTransaction' => 'PhabricatorApplicationTransaction',
|
||||
'PhabricatorWorkboardExample' => 'PhabricatorUIExample',
|
||||
'PhabricatorWorkboardView' => 'AphrontView',
|
||||
'PhabricatorWorkerActiveTask' => 'PhabricatorWorkerTask',
|
||||
'PhabricatorWorkerArchiveTask' => 'PhabricatorWorkerTask',
|
||||
'PhabricatorWorkerDAO' => 'PhabricatorLiskDAO',
|
||||
|
@ -3871,7 +3872,6 @@ phutil_register_library_map(array(
|
|||
'PhabricatorWorkingCopyDiscoveryTestCase' => 'PhabricatorWorkingCopyTestCase',
|
||||
'PhabricatorWorkingCopyPullTestCase' => 'PhabricatorWorkingCopyTestCase',
|
||||
'PhabricatorWorkingCopyTestCase' => 'PhabricatorTestCase',
|
||||
'PhabricatorWorkpanelView' => 'AphrontView',
|
||||
'PhabricatorXHPASTViewController' => 'PhabricatorController',
|
||||
'PhabricatorXHPASTViewDAO' => 'PhabricatorLiskDAO',
|
||||
'PhabricatorXHPASTViewFrameController' => 'PhabricatorXHPASTViewController',
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
final class PhabricatorWorkboardExample extends PhabricatorUIExample {
|
||||
final class PHUIWorkboardExample extends PhabricatorUIExample {
|
||||
|
||||
public function getName() {
|
||||
return 'Workboard';
|
||||
|
@ -99,7 +99,7 @@ final class PhabricatorWorkboardExample extends PhabricatorUIExample {
|
|||
->setHeader(pht('Playing Card'))
|
||||
->setBarColor('orange'));
|
||||
|
||||
$panel = id(new PhabricatorWorkpanelView())
|
||||
$panel = id(new PHUIWorkpanelView())
|
||||
->setCards($list)
|
||||
->setHeader('Business Stuff')
|
||||
->setFooterAction(
|
||||
|
@ -108,21 +108,21 @@ final class PhabricatorWorkboardExample extends PhabricatorUIExample {
|
|||
->setIcon('new')
|
||||
->setHref('/maniphest/task/create/'));
|
||||
|
||||
$panel2 = id(new PhabricatorWorkpanelView())
|
||||
$panel2 = id(new PHUIWorkpanelView())
|
||||
->setCards($list2)
|
||||
->setHeader('Under Duress');
|
||||
|
||||
$panel3 = id(new PhabricatorWorkpanelView())
|
||||
$panel3 = id(new PHUIWorkpanelView())
|
||||
->setCards($list3)
|
||||
->setHeader('Spicy Thai Chicken');
|
||||
|
||||
$board = id(new PhabricatorWorkboardView())
|
||||
$board = id(new PHUIWorkboardView())
|
||||
->addPanel($panel)
|
||||
->addPanel($panel2)
|
||||
->addPanel($panel2)
|
||||
->addPanel($panel3);
|
||||
|
||||
$board2 = id(new PhabricatorWorkboardView())
|
||||
$board2 = id(new PHUIWorkboardView())
|
||||
->setFluidLayout(true)
|
||||
->addPanel($panel)
|
||||
->addPanel($panel2)
|
||||
|
@ -150,7 +150,7 @@ final class PhabricatorWorkboardExample extends PhabricatorUIExample {
|
|||
$person3->setImage(
|
||||
celerity_get_resource_uri('/rsrc/image/people/taft.png'));
|
||||
|
||||
$board3 = id(new PhabricatorWorkboardView())
|
||||
$board3 = id(new PHUIWorkboardView())
|
||||
->setFluidLayout(true)
|
||||
->addPanel($panel)
|
||||
->addPanel($panel)
|
|
@ -1,12 +1,12 @@
|
|||
<?php
|
||||
|
||||
final class PhabricatorWorkboardView extends AphrontView {
|
||||
final class PHUIWorkboardView extends AphrontView {
|
||||
|
||||
private $panels = array();
|
||||
private $fluidLayout = false;
|
||||
private $actions = array();
|
||||
|
||||
public function addPanel(PhabricatorWorkpanelView $panel) {
|
||||
public function addPanel(PHUIWorkpanelView $panel) {
|
||||
$this->panels[] = $panel;
|
||||
return $this;
|
||||
}
|
||||
|
@ -22,7 +22,7 @@ final class PhabricatorWorkboardView extends AphrontView {
|
|||
}
|
||||
|
||||
public function render() {
|
||||
require_celerity_resource('phabricator-workboard-view-css');
|
||||
require_celerity_resource('phui-workboard-view-css');
|
||||
|
||||
$action_list = null;
|
||||
if (!empty($this->actions)) {
|
||||
|
@ -31,14 +31,14 @@ final class PhabricatorWorkboardView extends AphrontView {
|
|||
$items[] = phutil_tag(
|
||||
'li',
|
||||
array(
|
||||
'class' => 'phabricator-workboard-action-item'
|
||||
'class' => 'phui-workboard-action-item'
|
||||
),
|
||||
$action);
|
||||
}
|
||||
$action_list = phutil_tag(
|
||||
'ul',
|
||||
array(
|
||||
'class' => 'phabricator-workboard-action-list'
|
||||
'class' => 'phui-workboard-action-list'
|
||||
),
|
||||
$items);
|
||||
}
|
||||
|
@ -53,14 +53,14 @@ final class PhabricatorWorkboardView extends AphrontView {
|
|||
$board = phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'phabricator-workboard-view-shadow'
|
||||
'class' => 'phui-workboard-view-shadow'
|
||||
),
|
||||
$view);
|
||||
|
||||
return phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'phabricator-workboard-view'
|
||||
'class' => 'phui-workboard-view'
|
||||
),
|
||||
array(
|
||||
$action_list,
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
final class PhabricatorWorkpanelView extends AphrontView {
|
||||
final class PHUIWorkpanelView extends AphrontView {
|
||||
|
||||
private $cards = array();
|
||||
private $header;
|
||||
|
@ -28,7 +28,7 @@ final class PhabricatorWorkpanelView extends AphrontView {
|
|||
}
|
||||
|
||||
public function render() {
|
||||
require_celerity_resource('phabricator-workpanel-view-css');
|
||||
require_celerity_resource('phui-workpanel-view-css');
|
||||
|
||||
$footer = '';
|
||||
if ($this->footerAction) {
|
||||
|
@ -36,7 +36,7 @@ final class PhabricatorWorkpanelView extends AphrontView {
|
|||
$footer = phutil_tag(
|
||||
'ul',
|
||||
array(
|
||||
'class' => 'phabricator-workpanel-footer-action mst ps'
|
||||
'class' => 'phui-workpanel-footer-action mst ps'
|
||||
),
|
||||
$footer_tag);
|
||||
}
|
||||
|
@ -48,14 +48,14 @@ final class PhabricatorWorkpanelView extends AphrontView {
|
|||
$body = phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'phabricator-workpanel-body'
|
||||
'class' => 'phui-workpanel-body'
|
||||
),
|
||||
$this->cards);
|
||||
|
||||
$view = phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'phabricator-workpanel-view-inner',
|
||||
'class' => 'phui-workpanel-view-inner',
|
||||
),
|
||||
array(
|
||||
$header,
|
||||
|
@ -66,7 +66,7 @@ final class PhabricatorWorkpanelView extends AphrontView {
|
|||
return phutil_tag(
|
||||
'div',
|
||||
array(
|
||||
'class' => 'phabricator-workpanel-view'
|
||||
'class' => 'phui-workpanel-view'
|
||||
),
|
||||
$view);
|
||||
}
|
|
@ -1,12 +1,12 @@
|
|||
/**
|
||||
* @provides phabricator-workboard-view-css
|
||||
* @provides phui-workboard-view-css
|
||||
*/
|
||||
|
||||
.phabricator-workboard-view {
|
||||
.phui-workboard-view {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.phabricator-workboard-view-shadow {
|
||||
.phui-workboard-view-shadow {
|
||||
padding: 8px;
|
||||
min-height: 120px;
|
||||
overflow-x: scroll;
|
||||
|
@ -15,7 +15,7 @@
|
|||
box-shadow: inset 0 0 5px rgba(0,0,0,.5);
|
||||
}
|
||||
|
||||
.phabricator-workboard-action-list {
|
||||
.phui-workboard-action-list {
|
||||
width: 60px;
|
||||
float: left;
|
||||
min-height: 60px;
|
||||
|
@ -25,7 +25,7 @@
|
|||
background: rgba(150,150,150,.2);
|
||||
}
|
||||
|
||||
.device-phone .phabricator-workboard-view-shadow {
|
||||
.device-phone .phui-workboard-view-shadow {
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
padding: 0;
|
||||
|
@ -33,7 +33,7 @@
|
|||
width: 100%;
|
||||
}
|
||||
|
||||
.device-phone .phabricator-workboard-action-list {
|
||||
.device-phone .phui-workboard-action-list {
|
||||
width: 100%;
|
||||
float: none;
|
||||
display: block;
|
||||
|
@ -42,13 +42,13 @@
|
|||
overflow: hidden;
|
||||
}
|
||||
|
||||
.device-phone .phabricator-workboard-action-list li {
|
||||
.device-phone .phui-workboard-action-list li {
|
||||
display: inline;
|
||||
float: left;
|
||||
margin: 0px;
|
||||
}
|
||||
|
||||
.phabricator-workboard-action-list .phui-icon-view {
|
||||
.phui-workboard-action-list .phui-icon-view {
|
||||
display: inline-block;
|
||||
vertical-align: top;
|
||||
width: 50px;
|
||||
|
@ -56,7 +56,7 @@
|
|||
margin: 5px 4px 5px 5px;
|
||||
}
|
||||
|
||||
.device-phone .phabricator-workboard-action-list .phui-icon-view {
|
||||
.device-phone .phui-workboard-action-list .phui-icon-view {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
|
@ -1,20 +1,20 @@
|
|||
/**
|
||||
* @provides phabricator-workpanel-view-css
|
||||
* @provides phui-workpanel-view-css
|
||||
*/
|
||||
|
||||
.phabricator-workpanel-view .phabricator-action-header {
|
||||
.phui-workpanel-view .phabricator-action-header {
|
||||
border: 1px solid #b3b5b6;
|
||||
border-top-left-radius: 5px;
|
||||
border-top-right-radius: 5px;
|
||||
}
|
||||
|
||||
.phabricator-workpanel-view .phabricator-workpanel-header-action {
|
||||
.phui-workpanel-view .phui-workpanel-header-action {
|
||||
float: right;
|
||||
width: 24px;
|
||||
border-left: 1px solid #b3b5b6;
|
||||
}
|
||||
|
||||
.phabricator-workpanel-view .phabricator-workpanel-body {
|
||||
.phui-workpanel-view .phui-workpanel-body {
|
||||
background: #c4cde0;
|
||||
padding: 5px 5px 1px 5px;
|
||||
border-bottom-left-radius: 5px;
|
||||
|
@ -22,23 +22,23 @@
|
|||
box-shadow: inset 0 0px 5px rgba(0,0,0,.4);
|
||||
}
|
||||
|
||||
.phabricator-workpanel-view .phabricator-workpanel-footer-action a {
|
||||
.phui-workpanel-view .phui-workpanel-footer-action a {
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.device-desktop .phabricator-workpanel-view .phabricator-workpanel-footer-action:hover {
|
||||
.device-desktop .phui-workpanel-view .phui-workpanel-footer-action:hover {
|
||||
background-color: rgba(100,100,100,.1);
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.phabricator-workpanel-view .phui-list-item-icon {
|
||||
.phui-workpanel-view .phui-list-item-icon {
|
||||
height: 12px;
|
||||
width: 12px;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.phabricator-workpanel-view .phui-list-item-name {
|
||||
.phui-workpanel-view .phui-list-item-name {
|
||||
padding-left: 5px;
|
||||
display: inline-block;
|
||||
}
|
Loading…
Reference in a new issue