chore(docs): update algolia config
This commit is contained in:
@@ -46,8 +46,9 @@ export default defineUserConfig<DefaultThemeOptions>({
|
|||||||
[
|
[
|
||||||
'@vuepress/docsearch',
|
'@vuepress/docsearch',
|
||||||
{
|
{
|
||||||
|
appId: 'F7BJNSM4M5',
|
||||||
apiKey: process.env.ALGOLIA_API_KEY,
|
apiKey: process.env.ALGOLIA_API_KEY,
|
||||||
indexName: 'YCY25RSLA8',
|
indexName: 'vueflow',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
@@ -61,15 +62,8 @@ export default defineUserConfig<DefaultThemeOptions>({
|
|||||||
lastUpdated: true,
|
lastUpdated: true,
|
||||||
contributors: true,
|
contributors: true,
|
||||||
darkMode: true,
|
darkMode: true,
|
||||||
|
|
||||||
algolia: {
|
|
||||||
appId: 'YCY25RSLA8',
|
|
||||||
apiKey: process.env.ALGOLIA_API_KEY,
|
|
||||||
indexName: (process.env.NODE_ENV !== 'production' ? 'dev_' : 'prod_') + 'VUE-FLOW',
|
|
||||||
},
|
|
||||||
|
|
||||||
navbar: [
|
navbar: [
|
||||||
{ text: 'Guide', link: '/', activeMatch: '^/$|^/guide/' },
|
{ text: 'Guide', link: '/guide/', activeMatch: '^/guide/' },
|
||||||
{
|
{
|
||||||
text: 'Examples',
|
text: 'Examples',
|
||||||
link: '/examples/',
|
link: '/examples/',
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export default defineComponent({
|
|||||||
console.log(this.instance?.toObject())
|
console.log(this.instance?.toObject())
|
||||||
},
|
},
|
||||||
resetTransform() {
|
resetTransform() {
|
||||||
//
|
this.instance?.setTransform({ x: 0, y: 0, zoom: 1 })
|
||||||
},
|
},
|
||||||
toggleclass() {
|
toggleclass() {
|
||||||
this.elements.forEach((el) => (el.class = el.class === 'light' ? 'dark' : 'light'))
|
this.elements.forEach((el) => (el.class = el.class === 'light' ? 'dark' : 'light'))
|
||||||
|
|||||||
Reference in New Issue
Block a user