From 7a1748e6f02988891c6e70e50aa9e4d791fa0211 Mon Sep 17 00:00:00 2001
From: Julius Härtl
Date: Tue, 1 Sep 2020 12:07:48 +0200
Subject: Show changelog in apps management
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Julius Härtl
Signed-off-by: npmbuildbot[bot]
---
apps/settings/src/components/AppDetails.vue | 67 +---------
apps/settings/src/components/Markdown.vue | 197 ++++++++++++++++++++++++++++
apps/settings/src/views/Apps.vue | 40 +++++-
3 files changed, 239 insertions(+), 65 deletions(-)
create mode 100644 apps/settings/src/components/Markdown.vue
(limited to 'apps/settings/src')
diff --git a/apps/settings/src/components/AppDetails.vue b/apps/settings/src/components/AppDetails.vue
index 55519bf9f80..d79f799fbb9 100644
--- a/apps/settings/src/components/AppDetails.vue
+++ b/apps/settings/src/components/AppDetails.vue
@@ -139,24 +139,23 @@
target="_blank"
rel="noreferrer noopener">{{ t('settings', 'Developer documentation') }} ↗
-
-
+
+
+
diff --git a/apps/settings/src/views/Apps.vue b/apps/settings/src/views/Apps.vue
index 313c58afbd9..a95127b77d6 100644
--- a/apps/settings/src/views/Apps.vue
+++ b/apps/settings/src/views/Apps.vue
@@ -119,7 +119,23 @@
-
+
+
+
+
+
+
+
@@ -131,6 +147,7 @@ import AppNavigationCounter from '@nextcloud/vue/dist/Components/AppNavigationCo
import AppNavigationItem from '@nextcloud/vue/dist/Components/AppNavigationItem'
import AppNavigationSpacer from '@nextcloud/vue/dist/Components/AppNavigationSpacer'
import AppSidebar from '@nextcloud/vue/dist/Components/AppSidebar'
+import AppSidebarTab from '@nextcloud/vue/dist/Components/AppSidebarTab'
import Content from '@nextcloud/vue/dist/Components/Content'
import Vue from 'vue'
import VueLocalStorage from 'vue-localstorage'
@@ -139,6 +156,7 @@ import AppList from '../components/AppList'
import AppDetails from '../components/AppDetails'
import AppManagement from '../mixins/AppManagement'
import AppScore from '../components/AppList/AppScore'
+import Markdown from '../components/Markdown'
Vue.use(VueLocalStorage)
@@ -155,7 +173,9 @@ export default {
AppNavigationSpacer,
AppScore,
AppSidebar,
+ AppSidebarTab,
Content,
+ Markdown,
},
mixins: [AppManagement],
@@ -228,6 +248,9 @@ export default {
}
},
+ changelog() {
+ return (release) => release.translations.en.changelog
+ },
},
watch: {
@@ -326,4 +349,19 @@ export default {
}
}
+ .app-sidebar-tabs__release {
+ h2 {
+ border-bottom: 1px solid var(--color-border);
+ }
+
+ // Overwrite changelog heading styles
+ ::v-deep {
+ h3 {
+ font-size: 20px;
+ }
+ h4 {
+ font-size: 17px;
+ }
+ }
+ }
--
cgit v1.2.3