Skip to content

Commit

Permalink
refactor: Remove mojang login
Browse files Browse the repository at this point in the history
  • Loading branch information
ci010 committed Mar 29, 2024
1 parent bf49cfa commit ce83cf0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 44 deletions.
5 changes: 0 additions & 5 deletions xmcl-keystone-ui/src/composables/login.ts
Expand Up @@ -73,11 +73,6 @@ export function useAuthorityItems(allowThirdparty: Ref<boolean>, services: Ref<Y
text: t('userServices.microsoft.name'),
icon: 'gavel',
},
{
value: AUTHORITY_MOJANG,
text: t('userServices.mojang.name'),
icon: 'spatial_tracking',
},
] as AuthorityItem[]

if (allowThirdparty.value) {
Expand Down
11 changes: 3 additions & 8 deletions xmcl-keystone-ui/src/views/UserMenu.vue
Expand Up @@ -26,10 +26,6 @@
v-if="selected && selected.authority === AUTHORITY_MICROSOFT"
:user="selected"
/>
<UserMenuMojang
v-else-if="selected && selected.authority === AUTHORITY_MOJANG"
:user="selected"
/>
<UserMenuYggdrasil
v-else-if="!!selected"
:user="selected"
Expand Down Expand Up @@ -110,22 +106,21 @@ import { useLocalStorageCacheBool } from '@/composables/cache'
import { useDialog } from '@/composables/dialog'
import { kUserContext, useUserExpired } from '@/composables/user'
import { injection } from '@/util/inject'
import { AUTHORITY_MICROSOFT, AUTHORITY_MOJANG, UserServiceKey } from '@xmcl/runtime-api'
import { AUTHORITY_MICROSOFT, UserServiceKey } from '@xmcl/runtime-api'
import AppLoginForm from './AppLoginForm.vue'
import UserMenuMicrosoft from './UserMenuMicrosoft.vue'
import UserMenuMojang from './UserMenuMojang.vue'
import UserMenuUserItem from './UserMenuUserItem.vue'
import UserMenuYggdrasil from './UserMenuYggdrasil.vue'
const props = defineProps<{ show: boolean }>()
const { t } = useI18n()
const { users, select, userProfile: selected } = injection(kUserContext)
const { abortRefresh, refreshUser, removeUser } = useService(UserServiceKey)
const expired = useUserExpired(computed(() => selected.value))
const { show: onShowDeleteDialog } = useDialog('user-delete')
const streamerMode = inject('streamerMode', useLocalStorageCacheBool('streamerMode', false))
const props = defineProps<{ show: boolean }>()
const onSelectUser = (user: string) => {
select(user)
}
Expand Down
31 changes: 0 additions & 31 deletions xmcl-keystone-ui/src/views/UserMenuMojang.vue

This file was deleted.

0 comments on commit ce83cf0

Please sign in to comment.