refactor(app): rename pirate minecraft accounts to offline

This commit is contained in:
2026-06-19 15:45:22 +03:00
parent e9dd2e4dbb
commit 1e53d3c44f
6 changed files with 13 additions and 10 deletions
@@ -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
+3 -2
View File
@@ -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,