From 2f26d731fc5fedc86a34bcbe34eae4c7f9401f7d Mon Sep 17 00:00:00 2001 From: Nicolas Giard Date: Thu, 9 Aug 2018 00:07:15 -0400 Subject: [PATCH] feat: themes foundation + editors load improvements --- client/app.js | 1 + client/components/common/nav-footer.vue | 2 +- client/components/common/nav-header.vue | 46 ++++++-- client/components/profile/preferences.vue | 20 +++- client/components/profile/profile.vue | 6 +- client/index.js | 4 +- client/themes/default/components/app.vue | 88 ++++++++++++++ client/themes/default/js/app.js | 1 + client/themes/default/scss/app.scss | 45 ++++++++ client/themes/default/theme.yml | 7 ++ .../themes}/default/thumbnail.png | Bin dev/config/config.yml | 4 - dev/tasks/localization.js | 56 --------- dev/webpack/webpack.dev.js | 5 +- dev/webpack/webpack.prod.js | 25 +--- package.json | 20 ++-- server/controllers/common.js | 9 +- server/db/migrations/2.0.0.js | 1 + server/jobs/render-page.js | 15 +++ server/models/editors.js | 51 ++++++--- server/models/pages.js | 9 ++ server/modules/editor/markdown.js | 10 -- server/modules/editor/markdown/definition.yml | 6 + server/views/main/editor.pug | 7 +- server/views/main/page.pug | 45 ++++++++ server/views/main/profile.pug | 5 +- server/views/main/setup.pug | 5 +- themes/default/theme.yml | 28 ----- themes/default/views/page.pug | 65 ----------- yarn.lock | 108 +++++++++--------- 30 files changed, 396 insertions(+), 298 deletions(-) create mode 100644 client/themes/default/components/app.vue create mode 100644 client/themes/default/js/app.js create mode 100644 client/themes/default/scss/app.scss create mode 100644 client/themes/default/theme.yml rename {themes => client/themes}/default/thumbnail.png (100%) delete mode 100644 dev/config/config.yml delete mode 100644 dev/tasks/localization.js create mode 100644 server/jobs/render-page.js delete mode 100644 server/modules/editor/markdown.js create mode 100644 server/modules/editor/markdown/definition.yml create mode 100644 server/views/main/page.pug delete mode 100644 themes/default/theme.yml delete mode 100644 themes/default/views/page.pug diff --git a/client/app.js b/client/app.js index e81002bc..edb36000 100644 --- a/client/app.js +++ b/client/app.js @@ -115,6 +115,7 @@ Vue.component('nav-header', () => import(/* webpackMode: "eager" */ './component Vue.component('profile', () => import(/* webpackChunkName: "profile" */ './components/profile.vue')) Vue.component('setup', () => import(/* webpackChunkName: "setup" */ './components/setup.vue')) Vue.component('v-card-chin', () => import(/* webpackMode: "eager" */ './components/common/v-card-chin.vue')) +Vue.component('page', () => import(/* webpackChunkName: "theme-page" */ './themes/' + process.env.CURRENT_THEME + '/components/app.vue')) let bootstrap = () => { // ==================================== diff --git a/client/components/common/nav-footer.vue b/client/components/common/nav-footer.vue index 4cd41032..d266aa5f 100644 --- a/client/components/common/nav-footer.vue +++ b/client/components/common/nav-footer.vue @@ -1,5 +1,5 @@