diff options
author | Julius Härtl <jus@bitgrid.net> | 2018-02-15 20:42:28 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2018-08-15 18:39:16 +0300 |
commit | ff52fa8faf62fb558913a5b062a6ae20de676d8c (patch) | |
tree | e44fc17aa752e3bf88f32d4b5f39f1eac26623ca /lib | |
parent | 542d32420437db4a9352c779a86651911d739911 (diff) |
Implement copy to clipboard and open new issue page
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Controller/APIController.php | 5 | ||||
-rw-r--r-- | lib/Service/ComponentService.php | 23 |
2 files changed, 8 insertions, 20 deletions
diff --git a/lib/Controller/APIController.php b/lib/Controller/APIController.php index 692c775..83daed8 100644 --- a/lib/Controller/APIController.php +++ b/lib/Controller/APIController.php @@ -127,7 +127,10 @@ class APIController extends Controller { public function render() { $markdown = $this->detailManager->getRenderedDetails(); $parser = new Parsedown(); - return $parser->text($markdown); + return [ + 'markdown' => $markdown, + 'rendered' => $parser->text($markdown) + ]; } }
\ No newline at end of file diff --git a/lib/Service/ComponentService.php b/lib/Service/ComponentService.php index 8c07d9b..b6e00f7 100644 --- a/lib/Service/ComponentService.php +++ b/lib/Service/ComponentService.php @@ -55,26 +55,12 @@ class ComponentService { public function getComponents() { $apps = \OC_App::getAllApps(); $serverComponents = array( - $this->getComponent('server', $this->l10n->t('Nextcloud server'), 'https://github.com/nextcloud/server'), - $this->getComponent('client', $this->l10n->t('Nextcloud desktop client'), 'https://github.com/nextcloud/client'), - $this->getComponent('android', $this->l10n->t('Nextcloud Android app'), 'https://github.com/nextcloud/android'), - $this->getComponent('ios', $this->l10n->t('Nextcloud iOS app'), 'https://github.com/nextcloud/ios') + $this->getComponent('server', $this->l10n->t('Nextcloud server'), 'https://github.com/nextcloud/server/issues'), + $this->getComponent('client', $this->l10n->t('Nextcloud desktop client'), 'https://github.com/nextcloud/client/issues'), + $this->getComponent('android', $this->l10n->t('Nextcloud Android app'), 'https://github.com/nextcloud/android/issues'), + $this->getComponent('ios', $this->l10n->t('Nextcloud iOS app'), 'https://github.com/nextcloud/ios/issues') ); $appComponents = []; - $externalComponents = [ - 'desktop' => [ - 'name' => $this->l10n->t('Nextcloud Android app repository'), - 'bugs' => 'https://github.com/nextcloud/android/issues' - ], - 'android' => [ - 'name' => $this->l10n->t('Nextcloud Android app repository'), - 'bugs' => 'https://github.com/nextcloud/android/issues' - ], - 'ios' => [ - 'name' => $this->l10n->t('Nextcloud iOS app repository'), - 'bugs' => 'https://github.com/nextcloud/ios/issues' - ] - ]; foreach ($apps as $app) { if ($this->appManager->isInstalled($app)) { $appinfo = \OC_App::getAppInfo($app); @@ -106,7 +92,6 @@ class ComponentService { return [ $this->getComponentSection('core', 'Nextcloud server', $serverComponents), $this->getComponentSection('apps', 'Nextcloud apps', $appComponents), - ]; } |