mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-06 16:16:42 +08:00
refactor: remove recognize source selection and hardcode to themoviedb in setup wizard
This commit is contained in:
@@ -1129,7 +1129,7 @@ export function useSetupWizard() {
|
|||||||
const basicSettings = {
|
const basicSettings = {
|
||||||
APP_DOMAIN: wizardData.value.basic.appDomain,
|
APP_DOMAIN: wizardData.value.basic.appDomain,
|
||||||
API_TOKEN: wizardData.value.basic.apiToken,
|
API_TOKEN: wizardData.value.basic.apiToken,
|
||||||
RECOGNIZE_SOURCE: wizardData.value.basic.recognizeSource,
|
RECOGNIZE_SOURCE: 'themoviedb',
|
||||||
OCR_HOST: wizardData.value.basic.ocrHost,
|
OCR_HOST: wizardData.value.basic.ocrHost,
|
||||||
PROXY_HOST: wizardData.value.basic.proxyHost,
|
PROXY_HOST: wizardData.value.basic.proxyHost,
|
||||||
GITHUB_TOKEN: wizardData.value.basic.githubToken,
|
GITHUB_TOKEN: wizardData.value.basic.githubToken,
|
||||||
@@ -1414,9 +1414,6 @@ export function useSetupWizard() {
|
|||||||
if (result.data.PROXY_HOST) {
|
if (result.data.PROXY_HOST) {
|
||||||
wizardData.value.basic.proxyHost = result.data.PROXY_HOST
|
wizardData.value.basic.proxyHost = result.data.PROXY_HOST
|
||||||
}
|
}
|
||||||
if (result.data.RECOGNIZE_SOURCE) {
|
|
||||||
wizardData.value.basic.recognizeSource = result.data.RECOGNIZE_SOURCE
|
|
||||||
}
|
|
||||||
if (result.data.OCR_HOST) {
|
if (result.data.OCR_HOST) {
|
||||||
wizardData.value.basic.ocrHost = result.data.OCR_HOST
|
wizardData.value.basic.ocrHost = result.data.OCR_HOST
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,11 +37,6 @@ const confirmPasswordErrorMessage = computed(() => {
|
|||||||
return ''
|
return ''
|
||||||
})
|
})
|
||||||
|
|
||||||
const recognizeSourceItems = [
|
|
||||||
{ title: 'TheMovieDb', value: 'themoviedb' },
|
|
||||||
{ title: '豆瓣', value: 'douban' },
|
|
||||||
]
|
|
||||||
|
|
||||||
// API Token验证
|
// API Token验证
|
||||||
const apiTokenError = computed(() => {
|
const apiTokenError = computed(() => {
|
||||||
return !wizardData.value.basic.apiToken && hasErrors.value
|
return !wizardData.value.basic.apiToken && hasErrors.value
|
||||||
@@ -124,16 +119,6 @@ const usernameErrorMessage = computed(() => {
|
|||||||
clearable
|
clearable
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
<VCol cols="12" md="6">
|
|
||||||
<VSelect
|
|
||||||
v-model="wizardData.basic.recognizeSource"
|
|
||||||
:label="t('setupWizard.basic.recognizeSource')"
|
|
||||||
:hint="t('setupWizard.basic.recognizeSourceHint')"
|
|
||||||
:items="recognizeSourceItems"
|
|
||||||
persistent-hint
|
|
||||||
prepend-inner-icon="mdi-database-search"
|
|
||||||
/>
|
|
||||||
</VCol>
|
|
||||||
<VCol cols="12" md="6">
|
<VCol cols="12" md="6">
|
||||||
<VTextField
|
<VTextField
|
||||||
v-model="wizardData.basic.ocrHost"
|
v-model="wizardData.basic.ocrHost"
|
||||||
|
|||||||
Reference in New Issue
Block a user