@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Remove PHUITextView

Summary: Never used.

Test Plan: grep `PHUITextView`

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D15139

-188
-2
resources/celerity/map.php
··· 150 150 'rsrc/css/phui/phui-spacing.css' => '042804d6', 151 151 'rsrc/css/phui/phui-status.css' => '888cedb8', 152 152 'rsrc/css/phui/phui-tag-view.css' => 'e60e227b', 153 - 'rsrc/css/phui/phui-text.css' => 'cf019f54', 154 153 'rsrc/css/phui/phui-timeline-view.css' => '2efceff8', 155 154 'rsrc/css/phui/phui-two-column-view.css' => 'c75bfc5b', 156 155 'rsrc/css/phui/workboards/phui-workboard.css' => 'b07a5524', ··· 827 826 'phui-spacing-css' => '042804d6', 828 827 'phui-status-list-view-css' => '888cedb8', 829 828 'phui-tag-view-css' => 'e60e227b', 830 - 'phui-text-css' => 'cf019f54', 831 829 'phui-theme-css' => 'ab7b848c', 832 830 'phui-timeline-view-css' => '2efceff8', 833 831 'phui-two-column-view-css' => 'c75bfc5b',
-4
src/__phutil_library_map__.php
··· 1525 1525 'PHUIStatusListView' => 'view/phui/PHUIStatusListView.php', 1526 1526 'PHUITagExample' => 'applications/uiexample/examples/PHUITagExample.php', 1527 1527 'PHUITagView' => 'view/phui/PHUITagView.php', 1528 - 'PHUITextExample' => 'applications/uiexample/examples/PHUITextExample.php', 1529 - 'PHUITextView' => 'view/phui/PHUITextView.php', 1530 1528 'PHUITimelineEventView' => 'view/phui/PHUITimelineEventView.php', 1531 1529 'PHUITimelineExample' => 'applications/uiexample/examples/PHUITimelineExample.php', 1532 1530 'PHUITimelineView' => 'view/phui/PHUITimelineView.php', ··· 5702 5700 'PHUIStatusListView' => 'AphrontTagView', 5703 5701 'PHUITagExample' => 'PhabricatorUIExample', 5704 5702 'PHUITagView' => 'AphrontTagView', 5705 - 'PHUITextExample' => 'PhabricatorUIExample', 5706 - 'PHUITextView' => 'AphrontTagView', 5707 5703 'PHUITimelineEventView' => 'AphrontView', 5708 5704 'PHUITimelineExample' => 'PhabricatorUIExample', 5709 5705 'PHUITimelineView' => 'AphrontView',
-107
src/applications/uiexample/examples/PHUITextExample.php
··· 1 - <?php 2 - 3 - final class PHUITextExample extends PhabricatorUIExample { 4 - 5 - public function getName() { 6 - return pht('Text'); 7 - } 8 - 9 - public function getDescription() { 10 - return pht('Simple styles for displaying text.'); 11 - } 12 - 13 - public function renderExample() { 14 - 15 - $color1 = pht('This is RED.'); 16 - $color2 = pht('This is ORANGE.'); 17 - $color3 = pht('This is YELLOW.'); 18 - $color4 = pht('This is GREEN.'); 19 - $color5 = pht('This is BLUE.'); 20 - $color6 = pht('This is INDIGO.'); 21 - $color7 = pht('This is VIOLET.'); 22 - $color8 = pht('This is WHITE.'); 23 - $color9 = pht('This is BLACK.'); 24 - 25 - $text1 = pht('This is BOLD.'); 26 - $text2 = pht('This is Uppercase.'); 27 - $text3 = pht('This is Stricken.'); 28 - 29 - $content = 30 - array( 31 - id(new PHUITextView()) 32 - ->setText($color1) 33 - ->addClass(PHUI::TEXT_RED), 34 - id(new PHUITextView()) 35 - ->setText($color2) 36 - ->addClass(PHUI::TEXT_ORANGE), 37 - id(new PHUITextView()) 38 - ->setText($color3) 39 - ->addClass(PHUI::TEXT_YELLOW), 40 - id(new PHUITextView()) 41 - ->setText($color4) 42 - ->addClass(PHUI::TEXT_GREEN), 43 - id(new PHUITextView()) 44 - ->setText($color5) 45 - ->addClass(PHUI::TEXT_BLUE), 46 - id(new PHUITextView()) 47 - ->setText($color6) 48 - ->addClass(PHUI::TEXT_INDIGO), 49 - id(new PHUITextView()) 50 - ->setText($color7) 51 - ->addClass(PHUI::TEXT_VIOLET), 52 - id(new PHUITextView()) 53 - ->setText($color8) 54 - ->addClass(PHUI::TEXT_WHITE), 55 - id(new PHUITextView()) 56 - ->setText($color9) 57 - ->addClass(PHUI::TEXT_BLACK), 58 - ); 59 - 60 - $content2 = 61 - array( 62 - id(new PHUITextView()) 63 - ->setText($text1) 64 - ->addClass(PHUI::TEXT_BOLD), 65 - id(new PHUITextView()) 66 - ->setText($text2) 67 - ->addClass(PHUI::TEXT_UPPERCASE), 68 - id(new PHUITextView()) 69 - ->setText($text3) 70 - ->addClass(PHUI::TEXT_STRIKE), 71 - ); 72 - 73 - $layout1 = id(new PHUIBoxView()) 74 - ->appendChild($content) 75 - ->setBorder(true) 76 - ->addPadding(PHUI::PADDING_MEDIUM); 77 - 78 - $head1 = id(new PHUIHeaderView()) 79 - ->setHeader(pht('Basic Colors')); 80 - 81 - $wrap1 = id(new PHUIBoxView()) 82 - ->appendChild($layout1) 83 - ->addMargin(PHUI::MARGIN_LARGE); 84 - 85 - $layout2 = id(new PHUIBoxView()) 86 - ->appendChild($content2) 87 - ->setBorder(true) 88 - ->addPadding(PHUI::PADDING_MEDIUM); 89 - 90 - $head2 = id(new PHUIHeaderView()) 91 - ->setHeader(pht('Basic Transforms')); 92 - 93 - $wrap2 = id(new PHUIBoxView()) 94 - ->appendChild($layout2) 95 - ->addMargin(PHUI::MARGIN_LARGE); 96 - 97 - return phutil_tag( 98 - 'div', 99 - array(), 100 - array( 101 - $head1, 102 - $wrap1, 103 - $head2, 104 - $wrap2, 105 - )); 106 - } 107 - }
-20
src/view/phui/PHUITextView.php
··· 1 - <?php 2 - 3 - final class PHUITextView extends AphrontTagView { 4 - 5 - private $text; 6 - 7 - public function setText($text) { 8 - $this->appendChild($text); 9 - return $this; 10 - } 11 - 12 - protected function getTagName() { 13 - return 'span'; 14 - } 15 - 16 - protected function getTagAttributes() { 17 - require_celerity_resource('phui-text-css'); 18 - return array(); 19 - } 20 - }
-55
webroot/rsrc/css/phui/phui-text.css
··· 1 - /** 2 - * @provides phui-text-css 3 - */ 4 - 5 - 6 - /* Styles */ 7 - .phui-text-bold { 8 - font-weight: bold; 9 - } 10 - 11 - .phui-text-uppercase { 12 - text-transform: uppercase; 13 - } 14 - 15 - .phui-text-strike { 16 - text-decoration: line-through; 17 - } 18 - 19 - 20 - /* Colors */ 21 - .phui-text-red { 22 - color: {$red}; 23 - } 24 - 25 - .phui-text-orange { 26 - color: {$orange}; 27 - } 28 - 29 - .phui-text-yellow { 30 - color: {$yellow}; 31 - } 32 - 33 - .phui-text-green { 34 - color: {$green} 35 - } 36 - 37 - .phui-text-blue { 38 - color: {$blue}; 39 - } 40 - 41 - .phui-text-indigo { 42 - color: {$indigo}; 43 - } 44 - 45 - .phui-text-violet { 46 - color: {$violet}; 47 - } 48 - 49 - .phui-text-white { 50 - color: #fff; 51 - } 52 - 53 - .phui-text-black { 54 - color: #333; 55 - }