From ae18d231b04fb3038c2466fcafb11b3d39daac66 Mon Sep 17 00:00:00 2001 From: Braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Sun, 3 Apr 2022 13:58:48 +0200 Subject: [PATCH] chore(docs): update algolia config --- docs/src/.vuepress/config.ts | 12 +++--------- examples/src/Basic/BasicOptionsAPI.vue | 2 +- 2 files changed, 4 insertions(+), 10 deletions(-) diff --git a/docs/src/.vuepress/config.ts b/docs/src/.vuepress/config.ts index 040492a7..8ed6a811 100644 --- a/docs/src/.vuepress/config.ts +++ b/docs/src/.vuepress/config.ts @@ -46,8 +46,9 @@ export default defineUserConfig({ [ '@vuepress/docsearch', { + appId: 'F7BJNSM4M5', apiKey: process.env.ALGOLIA_API_KEY, - indexName: 'YCY25RSLA8', + indexName: 'vueflow', }, ], ], @@ -61,15 +62,8 @@ export default defineUserConfig({ lastUpdated: true, contributors: true, darkMode: true, - - algolia: { - appId: 'YCY25RSLA8', - apiKey: process.env.ALGOLIA_API_KEY, - indexName: (process.env.NODE_ENV !== 'production' ? 'dev_' : 'prod_') + 'VUE-FLOW', - }, - navbar: [ - { text: 'Guide', link: '/', activeMatch: '^/$|^/guide/' }, + { text: 'Guide', link: '/guide/', activeMatch: '^/guide/' }, { text: 'Examples', link: '/examples/', diff --git a/examples/src/Basic/BasicOptionsAPI.vue b/examples/src/Basic/BasicOptionsAPI.vue index 2bb7227d..8f520f95 100644 --- a/examples/src/Basic/BasicOptionsAPI.vue +++ b/examples/src/Basic/BasicOptionsAPI.vue @@ -22,7 +22,7 @@ export default defineComponent({ console.log(this.instance?.toObject()) }, resetTransform() { - // + this.instance?.setTransform({ x: 0, y: 0, zoom: 1 }) }, toggleclass() { this.elements.forEach((el) => (el.class = el.class === 'light' ? 'dark' : 'light'))