chore(docs): update algolia config
This commit is contained in:
@@ -46,8 +46,9 @@ export default defineUserConfig<DefaultThemeOptions>({
|
||||
[
|
||||
'@vuepress/docsearch',
|
||||
{
|
||||
appId: 'F7BJNSM4M5',
|
||||
apiKey: process.env.ALGOLIA_API_KEY,
|
||||
indexName: 'YCY25RSLA8',
|
||||
indexName: 'vueflow',
|
||||
},
|
||||
],
|
||||
],
|
||||
@@ -61,15 +62,8 @@ export default defineUserConfig<DefaultThemeOptions>({
|
||||
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/',
|
||||
|
||||
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user