mirror of https://github.com/ElemeFE/element
Chore: update id and key for algolia (#11783)
parent
4c40128b8a
commit
ca567cc752
|
@ -6,7 +6,7 @@ const algoliasearch = require('algoliasearch');
|
||||||
const slugify = require('transliteration').slugify;
|
const slugify = require('transliteration').slugify;
|
||||||
const key = require('./algolia-key');
|
const key = require('./algolia-key');
|
||||||
|
|
||||||
const client = algoliasearch('9NLTR1QH8B', key);
|
const client = algoliasearch('4C63BTGP6S', key);
|
||||||
const langs = {
|
const langs = {
|
||||||
'zh-CN': 'element-zh',
|
'zh-CN': 'element-zh',
|
||||||
'en-US': 'element-en',
|
'en-US': 'element-en',
|
||||||
|
|
|
@ -163,7 +163,7 @@
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
initIndex() {
|
initIndex() {
|
||||||
const client = algoliasearch('9NLTR1QH8B', 'a75cbec97cda75ab7334fed9219ecc57');
|
const client = algoliasearch('4C63BTGP6S', '0729c3c7f4dc8db7395ad0b19c0748d2');
|
||||||
this.index = client.initIndex(`element-${ this.lang ? this.langs[this.lang].index : 'zh' }`);
|
this.index = client.initIndex(`element-${ this.lang ? this.langs[this.lang].index : 'zh' }`);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
{"1.4.13":"1.4","2.0.11":"2.0","2.1.0":"2.1","2.2.2":"2.2","2.3.9":"2.3","2.4.1":"2.4"}
|
{"1.4.13":"1.4","2.0.11":"2.0","2.1.0":"2.1","2.2.2":"2.2","2.3.9":"2.3","2.4.2":"2.4"}
|
|
@ -172,7 +172,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
version: '2.4.1',
|
version: '2.4.2',
|
||||||
locale: locale.use,
|
locale: locale.use,
|
||||||
i18n: locale.i18n,
|
i18n: locale.i18n,
|
||||||
install,
|
install,
|
||||||
|
|
Loading…
Reference in New Issue