MC Authentication + Account switching (#78)

* Popup, login

* Fix Lint

* Switch to UUID for avatars

* Fix issues

* Fixed logging out bug

* Update AccountsCard.vue

* Revert experiment

* Fix button clicking

* Addressed Changes
This commit is contained in:
Adrian O.V
2023-04-11 18:21:10 -04:00
committed by GitHub
parent ac6ad0ef2e
commit 06ace174e6
8 changed files with 262 additions and 3 deletions

View File

@@ -9,9 +9,9 @@ import {
ClientIcon,
PlusIcon,
SettingsIcon,
Avatar,
} from 'omorphia'
import { useTheming } from '@/store/state'
import AccountsCard from '@/components/ui/AccountsCard.vue'
import { toggleTheme } from '@/helpers/theme'
import { list } from '@/helpers/profile'
@@ -38,7 +38,9 @@ list().then(
<div class="container">
<div class="nav-container">
<div class="nav-section">
<Avatar size="sm" src="https://cdn.modrinth.com/data/AANobbMI/icon.png" />
<suspense>
<AccountsCard ref="accounts" />
</suspense>
<div class="pages-list">
<RouterLink to="/" class="button-base nav-button"><ClientIcon /></RouterLink>
<RouterLink to="/browse" class="button-base nav-button"> <SearchIcon /></RouterLink>