You've already forked AstralRinth
refactor(app): rename pirate minecraft accounts to offline
This commit is contained in:
@@ -305,7 +305,7 @@ const emit = defineEmits<{
|
||||
}>()
|
||||
|
||||
type MinecraftCredential = {
|
||||
account_type?: 'microsoft' | 'pirate' | 'elyby' | string
|
||||
account_type?: 'microsoft' | 'offline' | 'elyby' | string
|
||||
profile: {
|
||||
id: string
|
||||
name: string
|
||||
@@ -347,7 +347,7 @@ function getAccountType(account?: MinecraftCredential) {
|
||||
switch (account?.account_type) {
|
||||
case 'microsoft':
|
||||
return MicrosoftIcon
|
||||
case 'pirate':
|
||||
case 'offline':
|
||||
return OfflineIcon
|
||||
case 'elyby':
|
||||
return ElyByIcon
|
||||
|
||||
@@ -13,11 +13,12 @@ import { invoke } from '@tauri-apps/api/core'
|
||||
// await authenticate_await_completion()
|
||||
// }
|
||||
|
||||
// This code function is modified by AstralRinth
|
||||
export async function offline_login(name) {
|
||||
return await invoke('plugin:auth|offline_login', { name: name })
|
||||
}
|
||||
|
||||
// This code is modified by AstralRinth
|
||||
// This code function is modified by AstralRinth
|
||||
export async function elyby_login(uuid, login, accessToken) {
|
||||
return await invoke('plugin:auth|elyby_login', {
|
||||
uuid,
|
||||
@@ -26,7 +27,7 @@ export async function elyby_login(uuid, login, accessToken) {
|
||||
})
|
||||
}
|
||||
|
||||
// This code is modified by AstralRinth
|
||||
// This code function is modified by AstralRinth
|
||||
export async function elyby_auth_authenticate(login, password, clientToken) {
|
||||
return await invoke('plugin:auth|elyby_auth_authenticate', {
|
||||
login,
|
||||
|
||||
Reference in New Issue
Block a user