mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-26 15:30:58 +01:00
Remove PHUITextView
Summary: Never used. Test Plan: grep `PHUITextView` Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin Differential Revision: https://secure.phabricator.com/D15139
This commit is contained in:
parent
33e9033b99
commit
27e21b0107
5 changed files with 0 additions and 188 deletions
|
@ -150,7 +150,6 @@ return array(
|
|||
'rsrc/css/phui/phui-spacing.css' => '042804d6',
|
||||
'rsrc/css/phui/phui-status.css' => '888cedb8',
|
||||
'rsrc/css/phui/phui-tag-view.css' => 'e60e227b',
|
||||
'rsrc/css/phui/phui-text.css' => 'cf019f54',
|
||||
'rsrc/css/phui/phui-timeline-view.css' => '2efceff8',
|
||||
'rsrc/css/phui/phui-two-column-view.css' => 'c75bfc5b',
|
||||
'rsrc/css/phui/workboards/phui-workboard.css' => 'b07a5524',
|
||||
|
@ -827,7 +826,6 @@ return array(
|
|||
'phui-spacing-css' => '042804d6',
|
||||
'phui-status-list-view-css' => '888cedb8',
|
||||
'phui-tag-view-css' => 'e60e227b',
|
||||
'phui-text-css' => 'cf019f54',
|
||||
'phui-theme-css' => 'ab7b848c',
|
||||
'phui-timeline-view-css' => '2efceff8',
|
||||
'phui-two-column-view-css' => 'c75bfc5b',
|
||||
|
|
|
@ -1525,8 +1525,6 @@ phutil_register_library_map(array(
|
|||
'PHUIStatusListView' => 'view/phui/PHUIStatusListView.php',
|
||||
'PHUITagExample' => 'applications/uiexample/examples/PHUITagExample.php',
|
||||
'PHUITagView' => 'view/phui/PHUITagView.php',
|
||||
'PHUITextExample' => 'applications/uiexample/examples/PHUITextExample.php',
|
||||
'PHUITextView' => 'view/phui/PHUITextView.php',
|
||||
'PHUITimelineEventView' => 'view/phui/PHUITimelineEventView.php',
|
||||
'PHUITimelineExample' => 'applications/uiexample/examples/PHUITimelineExample.php',
|
||||
'PHUITimelineView' => 'view/phui/PHUITimelineView.php',
|
||||
|
@ -5702,8 +5700,6 @@ phutil_register_library_map(array(
|
|||
'PHUIStatusListView' => 'AphrontTagView',
|
||||
'PHUITagExample' => 'PhabricatorUIExample',
|
||||
'PHUITagView' => 'AphrontTagView',
|
||||
'PHUITextExample' => 'PhabricatorUIExample',
|
||||
'PHUITextView' => 'AphrontTagView',
|
||||
'PHUITimelineEventView' => 'AphrontView',
|
||||
'PHUITimelineExample' => 'PhabricatorUIExample',
|
||||
'PHUITimelineView' => 'AphrontView',
|
||||
|
|
|
@ -1,107 +0,0 @@
|
|||
<?php
|
||||
|
||||
final class PHUITextExample extends PhabricatorUIExample {
|
||||
|
||||
public function getName() {
|
||||
return pht('Text');
|
||||
}
|
||||
|
||||
public function getDescription() {
|
||||
return pht('Simple styles for displaying text.');
|
||||
}
|
||||
|
||||
public function renderExample() {
|
||||
|
||||
$color1 = pht('This is RED.');
|
||||
$color2 = pht('This is ORANGE.');
|
||||
$color3 = pht('This is YELLOW.');
|
||||
$color4 = pht('This is GREEN.');
|
||||
$color5 = pht('This is BLUE.');
|
||||
$color6 = pht('This is INDIGO.');
|
||||
$color7 = pht('This is VIOLET.');
|
||||
$color8 = pht('This is WHITE.');
|
||||
$color9 = pht('This is BLACK.');
|
||||
|
||||
$text1 = pht('This is BOLD.');
|
||||
$text2 = pht('This is Uppercase.');
|
||||
$text3 = pht('This is Stricken.');
|
||||
|
||||
$content =
|
||||
array(
|
||||
id(new PHUITextView())
|
||||
->setText($color1)
|
||||
->addClass(PHUI::TEXT_RED),
|
||||
id(new PHUITextView())
|
||||
->setText($color2)
|
||||
->addClass(PHUI::TEXT_ORANGE),
|
||||
id(new PHUITextView())
|
||||
->setText($color3)
|
||||
->addClass(PHUI::TEXT_YELLOW),
|
||||
id(new PHUITextView())
|
||||
->setText($color4)
|
||||
->addClass(PHUI::TEXT_GREEN),
|
||||
id(new PHUITextView())
|
||||
->setText($color5)
|
||||
->addClass(PHUI::TEXT_BLUE),
|
||||
id(new PHUITextView())
|
||||
->setText($color6)
|
||||
->addClass(PHUI::TEXT_INDIGO),
|
||||
id(new PHUITextView())
|
||||
->setText($color7)
|
||||
->addClass(PHUI::TEXT_VIOLET),
|
||||
id(new PHUITextView())
|
||||
->setText($color8)
|
||||
->addClass(PHUI::TEXT_WHITE),
|
||||
id(new PHUITextView())
|
||||
->setText($color9)
|
||||
->addClass(PHUI::TEXT_BLACK),
|
||||
);
|
||||
|
||||
$content2 =
|
||||
array(
|
||||
id(new PHUITextView())
|
||||
->setText($text1)
|
||||
->addClass(PHUI::TEXT_BOLD),
|
||||
id(new PHUITextView())
|
||||
->setText($text2)
|
||||
->addClass(PHUI::TEXT_UPPERCASE),
|
||||
id(new PHUITextView())
|
||||
->setText($text3)
|
||||
->addClass(PHUI::TEXT_STRIKE),
|
||||
);
|
||||
|
||||
$layout1 = id(new PHUIBoxView())
|
||||
->appendChild($content)
|
||||
->setBorder(true)
|
||||
->addPadding(PHUI::PADDING_MEDIUM);
|
||||
|
||||
$head1 = id(new PHUIHeaderView())
|
||||
->setHeader(pht('Basic Colors'));
|
||||
|
||||
$wrap1 = id(new PHUIBoxView())
|
||||
->appendChild($layout1)
|
||||
->addMargin(PHUI::MARGIN_LARGE);
|
||||
|
||||
$layout2 = id(new PHUIBoxView())
|
||||
->appendChild($content2)
|
||||
->setBorder(true)
|
||||
->addPadding(PHUI::PADDING_MEDIUM);
|
||||
|
||||
$head2 = id(new PHUIHeaderView())
|
||||
->setHeader(pht('Basic Transforms'));
|
||||
|
||||
$wrap2 = id(new PHUIBoxView())
|
||||
->appendChild($layout2)
|
||||
->addMargin(PHUI::MARGIN_LARGE);
|
||||
|
||||
return phutil_tag(
|
||||
'div',
|
||||
array(),
|
||||
array(
|
||||
$head1,
|
||||
$wrap1,
|
||||
$head2,
|
||||
$wrap2,
|
||||
));
|
||||
}
|
||||
}
|
|
@ -1,20 +0,0 @@
|
|||
<?php
|
||||
|
||||
final class PHUITextView extends AphrontTagView {
|
||||
|
||||
private $text;
|
||||
|
||||
public function setText($text) {
|
||||
$this->appendChild($text);
|
||||
return $this;
|
||||
}
|
||||
|
||||
protected function getTagName() {
|
||||
return 'span';
|
||||
}
|
||||
|
||||
protected function getTagAttributes() {
|
||||
require_celerity_resource('phui-text-css');
|
||||
return array();
|
||||
}
|
||||
}
|
|
@ -1,55 +0,0 @@
|
|||
/**
|
||||
* @provides phui-text-css
|
||||
*/
|
||||
|
||||
|
||||
/* Styles */
|
||||
.phui-text-bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.phui-text-uppercase {
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
.phui-text-strike {
|
||||
text-decoration: line-through;
|
||||
}
|
||||
|
||||
|
||||
/* Colors */
|
||||
.phui-text-red {
|
||||
color: {$red};
|
||||
}
|
||||
|
||||
.phui-text-orange {
|
||||
color: {$orange};
|
||||
}
|
||||
|
||||
.phui-text-yellow {
|
||||
color: {$yellow};
|
||||
}
|
||||
|
||||
.phui-text-green {
|
||||
color: {$green}
|
||||
}
|
||||
|
||||
.phui-text-blue {
|
||||
color: {$blue};
|
||||
}
|
||||
|
||||
.phui-text-indigo {
|
||||
color: {$indigo};
|
||||
}
|
||||
|
||||
.phui-text-violet {
|
||||
color: {$violet};
|
||||
}
|
||||
|
||||
.phui-text-white {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.phui-text-black {
|
||||
color: #333;
|
||||
}
|
Loading…
Reference in a new issue