Skip to content

Commit

Permalink
refactor(config): better preset
Browse files Browse the repository at this point in the history
  • Loading branch information
crimx committed May 28, 2018
1 parent 86eec63 commit dbbc042
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
24 changes: 12 additions & 12 deletions src/app-config/dicts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function getALlDicts () {
/** Only start searching if the selection contains the language. */
selectionLang: {
eng: true,
chs: true,
chs: false,
},
},
cobuild: {
Expand Down Expand Up @@ -107,7 +107,7 @@ export function getALlDicts () {
/** Only start searching if the selection contains the language. */
selectionLang: {
eng: true,
chs: true,
chs: false,
},
/** Optional dict custom options. Can only be boolean or number. */
options: {
Expand Down Expand Up @@ -143,7 +143,7 @@ export function getALlDicts () {
/** Only start searching if the selection contains the language. */
selectionLang: {
eng: true,
chs: true,
chs: false,
},
/** Optional dict custom options. Can only be boolean or number. */
options: {
Expand Down Expand Up @@ -246,7 +246,7 @@ export function getALlDicts () {
preferredHeight: 265,
/** Only start searching if the selection contains the language. */
selectionLang: {
eng: true,
eng: false,
chs: true,
}
},
Expand Down Expand Up @@ -278,7 +278,7 @@ export function getALlDicts () {
preferredHeight: 265,
/** Only start searching if the selection contains the language. */
selectionLang: {
eng: true,
eng: false,
chs: true,
}
},
Expand Down Expand Up @@ -311,7 +311,7 @@ export function getALlDicts () {
/** Only start searching if the selection contains the language. */
selectionLang: {
eng: true,
chs: true,
chs: false,
},
/** Optional dict custom options. Can only be boolean or number. */
options: {
Expand Down Expand Up @@ -353,7 +353,7 @@ export function getALlDicts () {
/** Only start searching if the selection contains the language. */
selectionLang: {
eng: true,
chs: true,
chs: false,
},
/** Optional dict custom options. Can only be boolean or number. */
options: {
Expand Down Expand Up @@ -389,7 +389,7 @@ export function getALlDicts () {
/** Only start searching if the selection contains the language. */
selectionLang: {
eng: true,
chs: true,
chs: false,
},
/** Optional dict custom options. Can only be boolean or number. */
options: {
Expand Down Expand Up @@ -425,7 +425,7 @@ export function getALlDicts () {
/** Only start searching if the selection contains the language. */
selectionLang: {
eng: true,
chs: true,
chs: false,
},
/** Optional dict custom options. Can only be boolean or number. */
options: {
Expand Down Expand Up @@ -461,7 +461,7 @@ export function getALlDicts () {
/** Only start searching if the selection contains the language. */
selectionLang: {
eng: true,
chs: true,
chs: false,
}
},
websterlearner: {
Expand Down Expand Up @@ -493,7 +493,7 @@ export function getALlDicts () {
/** Only start searching if the selection contains the language. */
selectionLang: {
eng: true,
chs: true,
chs: false,
},
/** Optional dict custom options. Can only be boolean or number. */
options: {
Expand Down Expand Up @@ -573,7 +573,7 @@ export function getALlDicts () {
preferredHeight: 400,
/** Only start searching if the selection contains the language. */
selectionLang: {
eng: true,
eng: false,
chs: true,
}
},
Expand Down
4 changes: 2 additions & 2 deletions src/app-config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,12 +223,12 @@ export function appConfigFactory (): AppConfig {
},

dicts: {
selected: ['bing', 'urban', 'vocabulary'],
selected: ['bing', 'cambridge', 'urban', 'vocabulary', 'google', 'zdic', 'guoyu', 'liangan'],
// settings of each dict will be auto-generated
all: getALlDicts()
},
contextMenus: {
selected: ['oxford', 'google_translate', 'merriam_webster', 'cambridge', 'google_search', 'google_page_translate', 'youdao_page_translate'],
selected: ['google_translate', 'google_search', 'google_page_translate', 'youdao_page_translate'],
all: getAllContextMenus()
}
}
Expand Down

0 comments on commit dbbc042

Please sign in to comment.