mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-28 17:52:43 +01:00
dd22db18ff
Summary: Ref T7756. Now viewing individual threads in Conpherence is `ZXXX` driven. Also adds remarkup support. Test Plan: clicked around on list of conpherences in full view and it worked. selected 'view in conpherence' action from column and loaded correct `ZXXX` uri. Typed `ZXXX` in Maniphest and saw it link to Conpherence room. Reviewers: epriestley Reviewed By: epriestley Subscribers: Korvin, epriestley Maniphest Tasks: T7756 Differential Revision: https://secure.phabricator.com/D12397
86 lines
2.3 KiB
PHP
86 lines
2.3 KiB
PHP
<?php
|
|
|
|
final class PhabricatorConpherenceApplication extends PhabricatorApplication {
|
|
|
|
public function getBaseURI() {
|
|
return '/conpherence/';
|
|
}
|
|
|
|
public function getName() {
|
|
return pht('Conpherence');
|
|
}
|
|
|
|
public function getShortDescription() {
|
|
return pht('Send Messages');
|
|
}
|
|
|
|
public function getFontIcon() {
|
|
return 'fa-comments';
|
|
}
|
|
|
|
public function getTitleGlyph() {
|
|
return "\xE2\x9C\x86";
|
|
}
|
|
|
|
public function getRemarkupRules() {
|
|
return array(
|
|
new ConpherenceThreadRemarkupRule(),
|
|
);
|
|
}
|
|
|
|
public function getEventListeners() {
|
|
return array(
|
|
new ConpherenceHovercardEventListener(),
|
|
);
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/Z(?P<id>[1-9]\d*)' => 'ConpherenceViewController',
|
|
'/conpherence/' => array(
|
|
'' => 'ConpherenceListController',
|
|
'thread/(?P<id>[1-9]\d*)/' => 'ConpherenceListController',
|
|
'(?P<id>[1-9]\d*)/' => 'ConpherenceViewController',
|
|
'columnview/' => 'ConpherenceColumnViewController',
|
|
'new/' => 'ConpherenceNewController',
|
|
'room/new/' => 'ConpherenceNewRoomController',
|
|
'search/(?:query/(?P<queryKey>[^/]+)/)?'
|
|
=> 'ConpherenceRoomListController',
|
|
'panel/' => 'ConpherenceNotificationPanelController',
|
|
'widget/(?P<id>[1-9]\d*)/' => 'ConpherenceWidgetController',
|
|
'update/(?P<id>[1-9]\d*)/' => 'ConpherenceUpdateController',
|
|
),
|
|
);
|
|
}
|
|
|
|
public function getQuickCreateItems(PhabricatorUser $viewer) {
|
|
$items = array();
|
|
|
|
$item = id(new PHUIListItemView())
|
|
->setName(pht('Conpherence Thread'))
|
|
->setIcon('fa-comments')
|
|
->setWorkflow(true)
|
|
->setHref($this->getBaseURI().'new/');
|
|
$items[] = $item;
|
|
|
|
return $items;
|
|
}
|
|
|
|
public function getQuicksandURIPatternBlacklist() {
|
|
return array(
|
|
'/conpherence/.*',
|
|
'/Z\d+',
|
|
);
|
|
}
|
|
|
|
public function getMailCommandObjects() {
|
|
|
|
// TODO: Conpherence threads don't currently support any commands directly,
|
|
// so the documentation page we end up generating is empty and funny
|
|
// looking. Add support here once we support "!add", "!leave", "!topic",
|
|
// or whatever else.
|
|
|
|
return array();
|
|
}
|
|
|
|
}
|