From a2350f7e46f3556d9a4c56ca5bb6fdc0faa71048 Mon Sep 17 00:00:00 2001 From: Brian Retterer Date: Thu, 7 Mar 2019 14:16:04 -0500 Subject: [PATCH] Removes the need for Iframes in quickstart This registers all the components into Vue. This ia a temp fix until github.com/vuejs/vuepress/issues/1173 is patched --- .../vuepress-site/.vuepress/enhanceApp.js | 7 ++- .../layouts/Quickstart.vue | 59 +++++-------------- 2 files changed, 21 insertions(+), 45 deletions(-) diff --git a/packages/@okta/vuepress-site/.vuepress/enhanceApp.js b/packages/@okta/vuepress-site/.vuepress/enhanceApp.js index 19c39c7da34..9b9058fa2d3 100755 --- a/packages/@okta/vuepress-site/.vuepress/enhanceApp.js +++ b/packages/@okta/vuepress-site/.vuepress/enhanceApp.js @@ -1,5 +1,10 @@ var redirectsJson = require('./redirects.json'); +import pageComponents from '@internal/page-components' -export default ({ router }) => { +export default ({ router, Vue }) => { router.addRoutes(redirectsJson) + + for (const [name, component] of Object.entries(pageComponents)) { + Vue.component(name, component) + } } diff --git a/packages/@okta/vuepress-theme-default/layouts/Quickstart.vue b/packages/@okta/vuepress-theme-default/layouts/Quickstart.vue index 508b1c9bda7..159ea276937 100644 --- a/packages/@okta/vuepress-theme-default/layouts/Quickstart.vue +++ b/packages/@okta/vuepress-theme-default/layouts/Quickstart.vue @@ -28,9 +28,7 @@ -
-
-
+

Server Setup

@@ -56,9 +54,7 @@ -
-
-
+
@@ -68,8 +64,6 @@
- -