From 7bd3a4f292b6720ea1aefe7746c7719ec67f5727 Mon Sep 17 00:00:00 2001
From: Peter Kaske
Date: Thu, 14 Jun 2018 00:34:25 +0200
Subject: [PATCH] feat: Add basic package infos and resource links to sidebar.
Shows homepage, repository url and license if available in meta data.
If no data is available the module isn't shown.
---
.../src/components/PackageSidebar/index.jsx | 2 +
.../PackageSidebar/modules/Infos/index.jsx | 61 +++++++++++++++++++
.../PackageSidebar/modules/Infos/style.scss | 22 +++++++
.../__snapshots__/infos.spec.js.snap | 3 +
.../components/PackageSidebar/infos.spec.js | 29 +++++++++
5 files changed, 117 insertions(+)
create mode 100644 src/webui/src/components/PackageSidebar/modules/Infos/index.jsx
create mode 100644 src/webui/src/components/PackageSidebar/modules/Infos/style.scss
create mode 100644 test/webui/components/PackageSidebar/__snapshots__/infos.spec.js.snap
create mode 100644 test/webui/components/PackageSidebar/infos.spec.js
diff --git a/src/webui/src/components/PackageSidebar/index.jsx b/src/webui/src/components/PackageSidebar/index.jsx
index a95f602bc..82f535dcb 100644
--- a/src/webui/src/components/PackageSidebar/index.jsx
+++ b/src/webui/src/components/PackageSidebar/index.jsx
@@ -3,6 +3,7 @@ import PropTypes from 'prop-types';
import LastSync from './modules/LastSync';
import Maintainers from './modules/Maintainers';
import Dependencies from './modules/Dependencies';
+import Infos from './modules/Infos';
import API from '../../../utils/api';
@@ -53,6 +54,7 @@ export default class PackageSidebar extends React.Component {
return packageMeta ?
(