fix: remove unused Sora references causing TypeScript build failure
- Remove handleImportAccessToken event binding from CreateAccountModal - Remove unused imports/variables from OAuthAuthorizationFlow (useAppStore, parsedAccessToken*, handleImportAccessToken) - Remove unused oauthPlatform variable from useOpenAIOAuth composable
This commit is contained in:
@@ -2478,7 +2478,6 @@
|
|||||||
@validate-refresh-token="handleValidateRefreshToken"
|
@validate-refresh-token="handleValidateRefreshToken"
|
||||||
@validate-mobile-refresh-token="handleOpenAIValidateMobileRT"
|
@validate-mobile-refresh-token="handleOpenAIValidateMobileRT"
|
||||||
@validate-session-token="handleValidateSessionToken"
|
@validate-session-token="handleValidateSessionToken"
|
||||||
@import-access-token="handleImportAccessToken"
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -542,7 +542,6 @@
|
|||||||
import { ref, computed, watch } from 'vue'
|
import { ref, computed, watch } from 'vue'
|
||||||
import { useI18n } from 'vue-i18n'
|
import { useI18n } from 'vue-i18n'
|
||||||
import { useClipboard } from '@/composables/useClipboard'
|
import { useClipboard } from '@/composables/useClipboard'
|
||||||
import { useAppStore } from '@/stores'
|
|
||||||
import Icon from '@/components/icons/Icon.vue'
|
import Icon from '@/components/icons/Icon.vue'
|
||||||
import type { AddMethod, AuthInputMethod } from '@/composables/useAccountOAuth'
|
import type { AddMethod, AuthInputMethod } from '@/composables/useAccountOAuth'
|
||||||
import type { AccountPlatform } from '@/types'
|
import type { AccountPlatform } from '@/types'
|
||||||
@@ -662,17 +661,6 @@ const parsedSessionTokenCount = computed(() => 0)
|
|||||||
|
|
||||||
const parsedSessionTokensText = computed(() => '')
|
const parsedSessionTokensText = computed(() => '')
|
||||||
|
|
||||||
const parsedAccessTokenFromSessionInputCount = computed(() => 0)
|
|
||||||
|
|
||||||
const parsedAccessTokensText = computed(() => '')
|
|
||||||
|
|
||||||
const parsedAccessTokenCount = computed(() => {
|
|
||||||
return accessTokenInput.value
|
|
||||||
.split('\n')
|
|
||||||
.map((at) => at.trim())
|
|
||||||
.filter((at) => at).length
|
|
||||||
})
|
|
||||||
|
|
||||||
// Watchers
|
// Watchers
|
||||||
watch(inputMethod, (newVal) => {
|
watch(inputMethod, (newVal) => {
|
||||||
emit('update:inputMethod', newVal)
|
emit('update:inputMethod', newVal)
|
||||||
@@ -750,12 +738,6 @@ const handleValidateSessionToken = () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleImportAccessToken = () => {
|
|
||||||
if (accessTokenInput.value.trim()) {
|
|
||||||
emit('import-access-token', accessTokenInput.value.trim())
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Expose methods and state
|
// Expose methods and state
|
||||||
defineExpose({
|
defineExpose({
|
||||||
authCode: authCodeInput,
|
authCode: authCodeInput,
|
||||||
|
|||||||
@@ -30,7 +30,6 @@ interface UseOpenAIOAuthOptions {
|
|||||||
|
|
||||||
export function useOpenAIOAuth(options?: UseOpenAIOAuthOptions) {
|
export function useOpenAIOAuth(options?: UseOpenAIOAuthOptions) {
|
||||||
const appStore = useAppStore()
|
const appStore = useAppStore()
|
||||||
const oauthPlatform = options?.platform ?? 'openai'
|
|
||||||
const endpointPrefix = '/admin/openai'
|
const endpointPrefix = '/admin/openai'
|
||||||
|
|
||||||
// State
|
// State
|
||||||
|
|||||||
Reference in New Issue
Block a user