Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15433971
D11497.id27652.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
10 KB
Referenced Files
None
Subscribers
None
D11497.id27652.diff
View Options
diff --git a/resources/celerity/map.php b/resources/celerity/map.php
--- a/resources/celerity/map.php
+++ b/resources/celerity/map.php
@@ -7,7 +7,7 @@
*/
return array(
'names' => array(
- 'core.pkg.css' => '3bb22d78',
+ 'core.pkg.css' => 'd4dbd21d',
'core.pkg.js' => '63963771',
'darkconsole.pkg.js' => '8ab24e01',
'differential.pkg.css' => '8af45893',
@@ -39,7 +39,7 @@
'rsrc/css/application/base/main-menu-view.css' => '3cf893a9',
'rsrc/css/application/base/notification-menu.css' => '6aa0a74b',
'rsrc/css/application/base/phabricator-application-launch-view.css' => '5d71008f',
- 'rsrc/css/application/base/standard-page-view.css' => '6dafdb3b',
+ 'rsrc/css/application/base/standard-page-view.css' => 'd25853fa',
'rsrc/css/application/chatlog/chatlog.css' => '852140ff',
'rsrc/css/application/config/config-options.css' => '7fedf08b',
'rsrc/css/application/config/config-template.css' => '25d446d6',
@@ -349,6 +349,7 @@
'rsrc/js/application/aphlict/behavior-aphlict-status.js' => 'ea681761',
'rsrc/js/application/auth/behavior-persona-login.js' => '9414ff18',
'rsrc/js/application/config/behavior-reorder-fields.js' => '14a827de',
+ 'rsrc/js/application/conpherence/behavior-durable-column.js' => '3927b5aa',
'rsrc/js/application/conpherence/behavior-menu.js' => 'f0a41b9f',
'rsrc/js/application/conpherence/behavior-pontificate.js' => '2f6efe18',
'rsrc/js/application/conpherence/behavior-widget-pane.js' => '40b1ff90',
@@ -581,6 +582,7 @@
'javelin-behavior-diffusion-locate-file' => '6d3e1947',
'javelin-behavior-diffusion-pull-lastmodified' => '2b228192',
'javelin-behavior-doorkeeper-tag' => 'e5822781',
+ 'javelin-behavior-durable-column' => '3927b5aa',
'javelin-behavior-error-log' => '6882e80a',
'javelin-behavior-fancy-datepicker' => 'c51ae228',
'javelin-behavior-global-drag-and-drop' => '07f199d8',
@@ -738,7 +740,7 @@
'phabricator-side-menu-view-css' => '7e8c6341',
'phabricator-slowvote-css' => '266df6a1',
'phabricator-source-code-view-css' => '7d346aa4',
- 'phabricator-standard-page-view' => '6dafdb3b',
+ 'phabricator-standard-page-view' => 'd25853fa',
'phabricator-textareautils' => '5c93c52c',
'phabricator-title' => '5c1c758c',
'phabricator-tooltip' => '1d298e3a',
@@ -1041,6 +1043,13 @@
'javelin-json',
'phabricator-prefab',
),
+ '3927b5aa' => array(
+ 'javelin-behavior',
+ 'javelin-dom',
+ 'javelin-stratcom',
+ 'javelin-scrollbar',
+ 'phabricator-keyboard-shortcut',
+ ),
'3ab51e2c' => array(
'javelin-behavior',
'javelin-behavior-device',
diff --git a/src/__phutil_library_map__.php b/src/__phutil_library_map__.php
--- a/src/__phutil_library_map__.php
+++ b/src/__phutil_library_map__.php
@@ -1137,6 +1137,7 @@
'PHUICrumbsView' => 'view/phui/PHUICrumbsView.php',
'PHUIDocumentExample' => 'applications/uiexample/examples/PHUIDocumentExample.php',
'PHUIDocumentView' => 'view/phui/PHUIDocumentView.php',
+ 'PHUIDurableColumn' => 'view/phui/PHUIDurableColumn.php',
'PHUIFeedStoryExample' => 'applications/uiexample/examples/PHUIFeedStoryExample.php',
'PHUIFeedStoryView' => 'view/phui/PHUIFeedStoryView.php',
'PHUIFormDividerControl' => 'view/form/control/PHUIFormDividerControl.php',
@@ -4315,6 +4316,7 @@
'PHUICrumbsView' => 'AphrontView',
'PHUIDocumentExample' => 'PhabricatorUIExample',
'PHUIDocumentView' => 'AphrontTagView',
+ 'PHUIDurableColumn' => 'AphrontTagView',
'PHUIFeedStoryExample' => 'PhabricatorUIExample',
'PHUIFeedStoryView' => 'AphrontView',
'PHUIFormDividerControl' => 'AphrontFormControl',
diff --git a/src/view/page/PhabricatorStandardPageView.php b/src/view/page/PhabricatorStandardPageView.php
--- a/src/view/page/PhabricatorStandardPageView.php
+++ b/src/view/page/PhabricatorStandardPageView.php
@@ -16,6 +16,7 @@
private $pageObjects = array();
private $applicationMenu;
private $showFooter = true;
+ private $showDurableColumn = true;
public function setShowFooter($show_footer) {
$this->showFooter = $show_footer;
@@ -73,6 +74,15 @@
}
}
+ public function setShowDurableColumn($show) {
+ $this->showDurableColumn = $show;
+ return $this;
+ }
+
+ public function getShowDurableColumn() {
+ return $this->showDurableColumn;
+ }
+
public function getTitle() {
$use_glyph = true;
@@ -364,6 +374,11 @@
)),
));
+ $durable_column = null;
+ if ($this->getShowDurableColumn()) {
+ $durable_column = new PHUIDurableColumn();
+ }
+
return phutil_tag(
'div',
array(
@@ -371,6 +386,7 @@
),
array(
$main_page,
+ $durable_column,
));
}
diff --git a/src/view/phui/PHUIDurableColumn.php b/src/view/phui/PHUIDurableColumn.php
new file mode 100644
--- /dev/null
+++ b/src/view/phui/PHUIDurableColumn.php
@@ -0,0 +1,113 @@
+<?php
+
+final class PHUIDurableColumn extends AphrontTagView {
+
+ protected function getTagAttributes() {
+ return array(
+ 'id' => 'durable-column',
+ 'class' => 'phui-durable-column',
+ );
+ }
+
+ protected function getTagContent() {
+ Javelin::initBehavior('durable-column');
+
+ $classes = array();
+ $classes[] = 'phui-durable-column-header';
+ $classes[] = 'sprite-main-header';
+ $classes[] = 'main-header-'.PhabricatorEnv::getEnvConfig('ui.header-color');
+
+ $header = phutil_tag(
+ 'div',
+ array(
+ 'class' => implode(' ', $classes),
+ ),
+ phutil_tag(
+ 'div',
+ array(
+ 'class' => 'phui-durable-column-header-text',
+ ),
+ pht('Durable Column')));
+
+ $icon_bar = phutil_tag(
+ 'div',
+ array(
+ 'class' => 'phui-durable-column-icon-bar',
+ ),
+ pht('[AAA] [YYY] [LMAO]'));
+
+ $copy = <<<EOCOPY
+Tumblr bitters taxidermy Odd Future McSweeney's, Vice
+banjo brunch. Flexitarian sustainable authentic mumblecore. Authentic
+cornhole forage, hashtag crucifix roof party wolf 90's. Dreamcatcher
+pour-over taxidermy, pickled salvia viral selvage listicle shabby chic
+lo-fi church-key Pitchfork occupy Austin crucifix. Fanny pack paleo selfies
+cold-pressed, selvage tofu Intelligentsia mustache normcore typewriter
+slow-carb Blue Bottle asymmetrical Pinterest food truck. Before they sold
+out literally hashtag retro quinoa farm-to-table, Schlitz hella High Life
+cornhole raw denim. Selvage plaid gastropub next level aesthetic Bushwick,
+VHS deep v Shoreditch.
+EOCOPY;
+
+ $content = phutil_tag(
+ 'div',
+ array(
+ 'class' => 'phui-durable-column-main',
+ ),
+ phutil_tag(
+ 'div',
+ array(
+ 'id' => 'phui-durable-column-content',
+ 'class' => 'phui-durable-column-frame',
+ ),
+ phutil_tag(
+ 'div',
+ array(
+ 'class' => 'phui-durable-column-content',
+ ),
+ str_repeat($copy, 16))));
+
+ $input = phutil_tag(
+ 'textarea',
+ array(
+ 'class' => 'phui-durable-column-textarea',
+ 'placeholder' => pht('Box for text...'),
+ ));
+
+ $footer = phutil_tag(
+ 'div',
+ array(
+ 'class' => 'phui-durable-column-footer',
+ ),
+ array(
+ phutil_tag(
+ 'button',
+ array(
+ 'class' => 'grey',
+ ),
+ pht('Send')),
+ phutil_tag(
+ 'div',
+ array(
+ 'class' => 'phui-durable-column-status',
+ ),
+ pht('Status Text')),
+ ));
+
+ return array(
+ $header,
+ phutil_tag(
+ 'div',
+ array(
+ 'class' => 'phui-durable-column-body',
+ ),
+ array(
+ $icon_bar,
+ $content,
+ $input,
+ $footer,
+ )),
+ );
+ }
+
+}
diff --git a/webroot/rsrc/css/application/base/standard-page-view.css b/webroot/rsrc/css/application/base/standard-page-view.css
--- a/webroot/rsrc/css/application/base/standard-page-view.css
+++ b/webroot/rsrc/css/application/base/standard-page-view.css
@@ -194,3 +194,97 @@
.jx-scrollbar-bar .jx-scrollbar-visible {
opacity: 0.7;
}
+
+.with-durable-column {
+ margin-right: 300px;
+}
+
+.phui-durable-column {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ right: 0;
+ width: 300px;
+ background: #ffffff;
+ display: none;
+}
+
+.phui-durable-column-header {
+ height: 44px;
+ border-left: 1px solid #000000;
+}
+
+.phui-durable-column-header-text {
+ padding: 12px 16px;
+ font-size: 15px;
+ color: {$lightgreytext};
+}
+
+.phui-durable-column-icon-bar {
+ height: 34px;
+ padding: 5px 16px;
+ border-bottom: 1px solid {$lightblueborder};
+}
+
+.phui-durable-column-body {
+ position: absolute;
+ top: 44px;
+ bottom: 0;
+ right: 0;
+ left: 0;
+ border-left: 1px solid {$lightgreyborder};
+}
+
+.phui-durable-column-main {
+ position: absolute;
+ top: 44px;
+ bottom: 144px;
+ left: 0;
+ right: 0;
+ overflow: hidden;
+}
+
+.phui-durable-column-content {
+ padding: 8px 16px;
+}
+
+.phui-durable-column-textarea {
+ position: absolute;
+ left: 0;
+ right: 0;
+ bottom: 44px;
+ height: 100px;
+ margin: 0;
+ border-width: 1px 0;
+ border-style: solid;
+ border-top-color: {$lightblueborder};
+ border-bottom-color: {$lightblueborder};
+ padding: 8px 16px;
+ resize: none;
+}
+
+.phui-durable-column-textarea:focus {
+ outline: 0;
+ border-top-color: {$sky};
+ border-bottom-color: {$sky};
+ box-shadow: none;
+}
+
+.phui-durable-column-footer {
+ position: absolute;
+ height: 28px;
+ padding: 8px 16px;
+ left: 0;
+ right: 0;
+ bottom: 0;
+}
+
+.phui-durable-column-footer button {
+ float: right;
+}
+
+.phui-durable-column-status {
+ vertical-align: middle;
+ line-height: 28px;
+ color: {$lightgreytext};
+}
diff --git a/webroot/rsrc/js/application/conpherence/behavior-durable-column.js b/webroot/rsrc/js/application/conpherence/behavior-durable-column.js
new file mode 100644
--- /dev/null
+++ b/webroot/rsrc/js/application/conpherence/behavior-durable-column.js
@@ -0,0 +1,27 @@
+/**
+ * @provides javelin-behavior-durable-column
+ * @requires javelin-behavior
+ * javelin-dom
+ * javelin-stratcom
+ * javelin-scrollbar
+ * phabricator-keyboard-shortcut
+ */
+
+JX.behavior('durable-column', function() {
+
+ var frame = JX.$('phabricator-standard-page');
+ var show = false;
+
+ new JX.KeyboardShortcut('\\', 'Toggle Chat (ALPHA)')
+ .setHandler(function() {
+ show = !show;
+ JX.DOM.alterClass(frame, 'with-durable-column', show);
+ JX.$('durable-column').style.display = (show ? 'block' : 'none');
+ JX.Stratcom.invoke('resize');
+ })
+ .register();
+
+ new JX.Scrollbar(JX.$('phui-durable-column-content'));
+
+
+});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 26, 1:24 AM (2 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7224162
Default Alt Text
D11497.id27652.diff (10 KB)
Attached To
Mode
D11497: Approximately rough in persistent chat column very roughly
Attached
Detach File
Event Timeline
Log In to Comment