mirror of
https://we.phorge.it/source/phorge.git
synced 2025-03-29 04:28:12 +01:00
Summary: Created Applications application which allows uninstallation & installation of application. Test Plan: In "Applications" application, clicked on uninstalled the application by cliking Uninstall and chekcing whether they are really uninstalled(Disabling URI & in appearance in the side pane). Then Clicked on the install button of the uninstalled application to check whether they are installed. Reviewers: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D4715
56 lines
1.4 KiB
PHP
56 lines
1.4 KiB
PHP
<?php
|
|
|
|
final class PhabricatorApplicationFiles extends PhabricatorApplication {
|
|
|
|
public function getBaseURI() {
|
|
return '/file/';
|
|
}
|
|
|
|
public function getShortDescription() {
|
|
return 'Store and Share Files';
|
|
}
|
|
|
|
public function getIconName() {
|
|
return 'files';
|
|
}
|
|
|
|
public function getTitleGlyph() {
|
|
return "\xE2\x87\xAA";
|
|
}
|
|
|
|
public function getFlavorText() {
|
|
return pht('Blob store for Pokemon pictures.');
|
|
}
|
|
|
|
public function getApplicationGroup() {
|
|
return self::GROUP_UTILITIES;
|
|
}
|
|
|
|
public function getQuickCreateURI() {
|
|
return $this->getBaseURI().'upload/';
|
|
}
|
|
|
|
public function canUninstall() {
|
|
return false;
|
|
}
|
|
|
|
public function getRoutes() {
|
|
return array(
|
|
'/F(?P<id>[1-9]\d*)' => 'PhabricatorFileShortcutController',
|
|
'/file/' => array(
|
|
'' => 'PhabricatorFileListController',
|
|
'filter/(?P<filter>\w+)/' => 'PhabricatorFileListController',
|
|
'upload/' => 'PhabricatorFileUploadController',
|
|
'dropupload/' => 'PhabricatorFileDropUploadController',
|
|
'delete/(?P<id>[1-9]\d*)/' => 'PhabricatorFileDeleteController',
|
|
'info/(?P<phid>[^/]+)/' => 'PhabricatorFileInfoController',
|
|
'data/(?P<key>[^/]+)/(?P<phid>[^/]+)/.*'
|
|
=> 'PhabricatorFileDataController',
|
|
'proxy/' => 'PhabricatorFileProxyController',
|
|
'xform/(?P<transform>[^/]+)/(?P<phid>[^/]+)/(?P<key>[^/]+)/'
|
|
=> 'PhabricatorFileTransformController',
|
|
),
|
|
);
|
|
}
|
|
|
|
}
|