tangled
alpha
login
or
join now
owdproject.org
/
app-atproto
1
fork
atom
AT Protocol login app for Open Web Desktop
1
fork
atom
overview
issues
pulls
pipelines
Minor improvements
dxlliv
11 months ago
4afec017
32cfcdaa
+7
-9
2 changed files
expand all
collapse all
unified
split
runtime
components
Window
WindowAtprotoAccount.vue
plugin
index.ts
+5
-7
runtime/components/Window/WindowAtprotoAccount.vue
···
3
3
import {useAtprotoAccountStore} from "@owdproject/module-atproto/runtime/stores/storeAtprotoAccount";
4
4
import AtprotoDesktopOwner from "../AtprotoDesktop/AtprotoDesktopOwner.vue";
5
5
import {onBeforeMount, watch} from "vue"
6
6
+
import {computed} from "@vue/reactivity"
7
7
+
import {useI18n} from "vue-i18n"
6
8
7
9
const props = defineProps<{
8
10
window: IWindowController
···
42
44
}
43
45
44
46
const accountLabel = computed(() => {
45
45
-
if (atprotoAccountStore.isAccountLogged) {
46
46
-
if (!atprotoAccountStore.account.avatar) {
47
47
-
return '?'
48
48
-
} else {
49
49
-
return undefined
50
50
-
}
47
47
+
if ((atprotoAccountStore.isAccountLogged && !atprotoAccountStore.account.avatar) || !atprotoAccountStore.isAccountLogged) {
48
48
+
return '?'
51
49
}
52
50
53
53
-
return atprotoAccountStore.account.handle.charAt(0)
51
51
+
return undefined
54
52
})
55
53
56
54
const accountAvatar = computed(() => {
+2
-2
runtime/plugin/index.ts
···
1
1
import {defineNuxtPlugin} from "nuxt/app"
2
2
import {defineDesktopApp} from "@owdproject/core/runtime/utils/utilsDesktop"
3
3
-
import configAppAbout from '../../owd.config'
3
3
+
import configAppAtproto from '../../owd.config'
4
4
5
5
export default defineNuxtPlugin((nuxtApp) => {
6
6
nuxtApp.hook('app:created', async () => {
7
7
-
await defineDesktopApp(configAppAbout)
7
7
+
await defineDesktopApp(configAppAtproto)
8
8
})
9
9
})