From c4629419d3e8c500231aae18ff8dbc009effa005 Mon Sep 17 00:00:00 2001 From: Nick Date: Sun, 4 Aug 2019 23:53:21 -0400 Subject: [PATCH] fix: admin rendering UI + dark mode --- client/client-app.js | 5 +- client/components/admin.vue | 2 +- client/components/admin/admin-auth.vue | 8 +- client/components/admin/admin-dashboard.vue | 4 +- client/components/admin/admin-rendering.vue | 115 ++++++++++-------- client/components/admin/admin-search.vue | 49 ++++---- client/components/admin/admin-storage.vue | 64 +++++----- client/components/admin/admin-theme.vue | 6 + .../admin/admin-utilities-content.vue | 2 +- client/components/common/v-card-chin.vue | 2 +- client/scss/base/base.scss | 85 ++++++------- client/themes/default/components/page.vue | 14 +-- client/themes/default/scss/app.scss | 16 +-- .../rendering/html-asciinema/definition.yml | 2 +- .../rendering/html-blockquotes/definition.yml | 2 +- .../html-codehighlighter/definition.yml | 2 +- .../rendering/html-core/definition.yml | 2 +- .../rendering/html-mathjax/definition.yml | 2 +- .../html-mediaplayers/definition.yml | 2 +- .../rendering/html-mermaid/definition.yml | 2 +- .../rendering/html-plantuml/definition.yml | 2 +- .../rendering/html-security/definition.yml | 2 +- .../rendering/html-twemoji/definition.yml | 2 +- .../rendering/markdown-abbr/definition.yml | 2 +- .../rendering/markdown-core/definition.yml | 2 +- .../rendering/markdown-emoji/definition.yml | 2 +- .../markdown-expandtabs/definition.yml | 2 +- .../markdown-footnotes/definition.yml | 2 +- .../rendering/markdown-imsize/definition.yml | 2 +- .../rendering/markdown-mathjax/definition.yml | 2 +- .../rendering/markdown-supsub/definition.yml | 2 +- .../markdown-tasklists/definition.yml | 2 +- server/setup.js | 6 +- server/views/legacy/master.pug | 7 ++ server/views/master.pug | 7 ++ 35 files changed, 232 insertions(+), 198 deletions(-) diff --git a/client/client-app.js b/client/client-app.js index 62cf5a4f..45cae772 100644 --- a/client/client-app.js +++ b/client/client-app.js @@ -196,7 +196,10 @@ let bootstrap = () => { store, i18n, vuetify: new Vuetify({ - rtl: siteConfig.rtl + rtl: siteConfig.rtl, + theme: { + dark: siteConfig.darkMode + } }) }) diff --git a/client/components/admin.vue b/client/components/admin.vue index ec3a316a..a2ac2565 100644 --- a/client/components/admin.vue +++ b/client/components/admin.vue @@ -1,5 +1,5 @@