From 10e19700e59831c07a8a4bf29bddf405a3ae5297 Mon Sep 17 00:00:00 2001 From: Nick Date: Sun, 25 Aug 2019 14:23:56 -0400 Subject: [PATCH] fix: UI improvements --- .gitignore | 6 +- client/components/admin/admin-system.vue | 2 +- client/components/common/duration-picker.vue | 13 ++- client/components/common/nav-header.vue | 88 +++++++++---------- client/components/common/page-delete.vue | 2 +- client/components/common/search-results.vue | 6 +- client/components/editor.vue | 1 + client/components/editor/editor-markdown.vue | 20 ++--- .../components/editor/editor-modal-media.vue | 28 +++--- .../editor/editor-modal-properties.vue | 8 +- client/components/history.vue | 30 +++---- client/themes/default/components/page.vue | 19 ++-- client/themes/default/scss/app.scss | 6 +- server/views/legacy/master.pug | 18 +--- server/views/master.pug | 18 +--- server/views/setup.pug | 18 +--- 16 files changed, 125 insertions(+), 158 deletions(-) diff --git a/.gitignore b/.gitignore index 6e55106e..3ef2576e 100644 --- a/.gitignore +++ b/.gitignore @@ -18,9 +18,9 @@ npm-debug.log* # Generated assets /assets -server/views/master.pug -server/views/legacy.pug -server/views/setup.pug +/server/views/master.pug +/server/views/legacy/master.pug +/server/views/setup.pug # Webpack .webpack-cache diff --git a/client/components/admin/admin-system.vue b/client/components/admin/admin-system.vue index 6b6ccd74..939473f7 100644 --- a/client/components/admin/admin-system.vue +++ b/client/components/admin/admin-system.vue @@ -28,7 +28,7 @@ v-list-item-action v-list-item-action-text {{ $t('admin:system.published') }} {{ info.latestVersionReleaseDate | moment('from') }} - v-divider.mt-3 + v-card.mt-4.animated.fadeInUp.wait-p2s v-subheader {{ $t('admin:system.hostInfo') }} v-list(two-line, dense) v-list-item diff --git a/client/components/common/duration-picker.vue b/client/components/common/duration-picker.vue index 03375eff..c98148e9 100644 --- a/client/components/common/duration-picker.vue +++ b/client/components/common/duration-picker.vue @@ -7,42 +7,47 @@ flat reverse v-model='minutes' + style='flex: 1 1 70px;' ) .body-2.mx-3 {{$t('common:duration.minutes')}} - v-divider.mr-3() + v-divider.mr-3 v-text-field( solo hide-details flat reverse v-model='hours' + style='flex: 1 1 70px;' ) .body-2.mx-3 {{$t('common:duration.hours')}} - v-divider.mr-3() + v-divider.mr-3 v-text-field( solo hide-details flat reverse v-model='days' + style='flex: 1 1 70px;' ) .body-2.mx-3 {{$t('common:duration.days')}} - v-divider.mr-3() + v-divider.mr-3 v-text-field( solo hide-details flat reverse v-model='months' + style='flex: 1 1 70px;' ) .body-2.mx-3 {{$t('common:duration.months')}} - v-divider.mr-3() + v-divider.mr-3 v-text-field( solo hide-details flat reverse v-model='years' + style='flex: 1 1 70px;' ) .body-2.mx-3 {{$t('common:duration.years')}} diff --git a/client/components/common/nav-header.vue b/client/components/common/nav-header.vue index 40a0f83f..353ad02f 100644 --- a/client/components/common/nav-header.vue +++ b/client/components/common/nav-header.vue @@ -81,50 +81,50 @@ @keyup.down='searchMove(`down`)' @keyup.up='searchMove(`up`)' ) - v-menu( - v-model='searchAdvMenuShown' - left - offset-y - min-width='450' - :close-on-content-click='false' - nudge-bottom='7' - nudge-right='5' - v-if='searchIsShown' - ) - template(v-slot:activator='{ on }') - v-btn.nav-header-search-adv(icon, color='grey darken-2', v-on='on') - v-icon(color='white') mdi-chevron-down - v-card.radius-0(dark) - v-toolbar(flat, color='grey darken-4', dense) - v-icon.mr-2 mdi-feature-search-outline - v-subheader.pl-0 Advanced Search - v-spacer - v-chip(label, small, color='primary') Coming soon - v-card-text.pa-4 - v-checkbox.mt-0( - label='Restrict to current language' - color='white' - v-model='searchRestrictLocale' - hide-details - ) - v-checkbox( - label='Search below current path only' - color='white' - v-model='searchRestrictPath' - hide-details - ) - v-divider - v-card-actions.grey.darken-3-d4 - v-container.pa-0(grid-list-md) - v-layout(row) - v-flex(xs6) - v-btn(depressed, color='grey darken-3', block) - v-icon(left) mdi-chevron-right - span Save as defaults - v-flex(xs6) - v-btn(depressed, color='grey darken-3', block) - v-icon(left) mdi-cached - span Reset + //- v-menu( + //- v-model='searchAdvMenuShown' + //- left + //- offset-y + //- min-width='450' + //- :close-on-content-click='false' + //- nudge-bottom='7' + //- nudge-right='5' + //- v-if='searchIsShown' + //- ) + //- template(v-slot:activator='{ on }') + //- v-btn.nav-header-search-adv(icon, color='grey darken-2', v-on='on') + //- v-icon(color='white') mdi-chevron-down + //- v-card.radius-0(dark) + //- v-toolbar(flat, color='grey darken-4', dense) + //- v-icon.mr-2 mdi-feature-search-outline + //- v-subheader.pl-0 Advanced Search + //- v-spacer + //- v-chip(label, small, color='primary') Coming soon + //- v-card-text.pa-4 + //- v-checkbox.mt-0( + //- label='Restrict to current language' + //- color='white' + //- v-model='searchRestrictLocale' + //- hide-details + //- ) + //- v-checkbox( + //- label='Search below current path only' + //- color='white' + //- v-model='searchRestrictPath' + //- hide-details + //- ) + //- v-divider + //- v-card-actions.grey.darken-3-d4 + //- v-container.pa-0(grid-list-md) + //- v-layout(row) + //- v-flex(xs6) + //- v-btn(depressed, color='grey darken-3', block) + //- v-icon(left) mdi-chevron-right + //- span Save as defaults + //- v-flex(xs6) + //- v-btn(depressed, color='grey darken-3', block) + //- v-icon(left) mdi-cached + //- span Reset v-flex(xs6, md4) v-toolbar.nav-header-inner.pr-4(color='black', dark, flat) v-spacer diff --git a/client/components/common/page-delete.vue b/client/components/common/page-delete.vue index d614a821..46d5c057 100644 --- a/client/components/common/page-delete.vue +++ b/client/components/common/page-delete.vue @@ -1,6 +1,6 @@