diff --git a/examples/hydra-vue-f7/src/components/app.vue b/examples/hydra-vue-f7/src/components/app.vue index bb607d7..bef2d81 100644 --- a/examples/hydra-vue-f7/src/components/app.vue +++ b/examples/hydra-vue-f7/src/components/app.vue @@ -99,7 +99,14 @@ theme: 'auto', // Automatic theme detection view: { browserHistory: true, - + browserHistoryOnLoad: true, + browserHistoryStoreHistory: false, + browserHistoryInitialMatch: false, + preloadPreviousPage: false + //browserHistorySeperator: "#!", + //cache: false, + //reloadPages: true, + //reloadDetail: true }, // App store @@ -118,11 +125,15 @@ } // In Layout.js or App.js - const bridge = initBridge("https://hydra.pretagov.com", {allowedBlocks: ['slate', 'image', 'video']}); - + const bridge = initBridge("https://hydra.pretagov.com", {allowedBlocks: ['slate', 'image', 'video', 'gridBlock', 'teaser']}); onMounted(() => { f7ready((f7) => { + window.addEventListener("hashchange", () => { + const url = new URL(window.location); + const path = url.href.split("#!")[1]; + f7.views.main.router.navigate(path); + }); bridge.onEditChange((data) => { // f7.views.main.router.navigate(f7.views.main.router.currentRoute.url, { diff --git a/examples/hydra-vue-f7/src/components/block.vue b/examples/hydra-vue-f7/src/components/block.vue new file mode 100644 index 0000000..42a45f5 --- /dev/null +++ b/examples/hydra-vue-f7/src/components/block.vue @@ -0,0 +1,81 @@ + + \ No newline at end of file diff --git a/examples/hydra-vue-f7/src/components/richtext.vue b/examples/hydra-vue-f7/src/components/richtext.vue index bade778..1338739 100644 --- a/examples/hydra-vue-f7/src/components/richtext.vue +++ b/examples/hydra-vue-f7/src/components/richtext.vue @@ -1,11 +1,7 @@