diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-09-01 12:07:48 +0200 |
---|---|---|
committer | npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com> | 2020-09-03 19:16:13 +0000 |
commit | 7a1748e6f02988891c6e70e50aa9e4d791fa0211 (patch) | |
tree | 1ae702c782c7f8ce703adce76228969003c900da /apps/settings/src/views | |
parent | 5826b75c4025529805135595da46d63c7d46560f (diff) | |
download | nextcloud-server-7a1748e6f02988891c6e70e50aa9e4d791fa0211.tar.gz nextcloud-server-7a1748e6f02988891c6e70e50aa9e4d791fa0211.zip |
Show changelog in apps management
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
Diffstat (limited to 'apps/settings/src/views')
-rw-r--r-- | apps/settings/src/views/Apps.vue | 40 |
1 files changed, 39 insertions, 1 deletions
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 @@ </template> <!-- Tab content --> - <AppDetails :app="app" /> + + <AppSidebarTab id="desc" + icon="icon-category-office" + :name="t('settings', 'Details')" + :order="0"> + <AppDetails :app="app" /> + </AppSidebarTab> + <AppSidebarTab v-if="app.appstoreData && app.releases[0].translations.en.changelog" + id="desca" + icon="icon-category-organization" + :name="t('settings', 'Changelog')" + :order="1"> + <div v-for="release in app.releases" :key="release.version" class="app-sidebar-tabs__release"> + <h2>{{ release.version }}</h2> + <Markdown v-if="changelog(release)" :text="changelog(release)" /> + </div> + </AppSidebarTab> </AppSidebar> </Content> </template> @@ -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; + } + } + } </style> |