Browse Source
feat(useGetToken): add composable to use in components
feat(useGetToken): add composable to use in components
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>pull/15328/head
40 changed files with 134 additions and 139 deletions
-
11src/App.vue
-
6src/FilesSidebarCallViewApp.vue
-
6src/FilesSidebarTabApp.vue
-
11src/PublicShareAuthRequestPasswordButton.vue
-
6src/PublicShareAuthSidebar.vue
-
6src/PublicShareSidebar.vue
-
13src/Recording.vue
-
11src/components/CallView/shared/EmptyCallView.vue
-
6src/components/ChatView.vue
-
14src/components/ConversationSettings/DangerZone.vue
-
6src/components/ConversationSettings/Matterbridge/MatterbridgeSettings.vue
-
11src/components/ConversationSettings/SipSettings.vue
-
6src/components/LeftSidebar/LeftSidebar.vue
-
7src/components/LobbyScreen.vue
-
8src/components/MediaSettings/MediaSettings.vue
-
6src/components/NewMessage/NewMessageAbsenceInfo.vue
-
5src/components/NewMessage/NewMessageAudioRecorder.vue
-
4src/components/NewMessage/NewMessageChatSummary.vue
-
6src/components/NewMessage/NewMessageUploadEditor.vue
-
4src/components/PollViewer/PollEditor.vue
-
4src/components/RightSidebar/BreakoutRooms/BreakoutRoomItem.vue
-
4src/components/RightSidebar/BreakoutRooms/BreakoutRoomsActions.vue
-
4src/components/RightSidebar/InternalSignalingHint.vue
-
6src/components/RightSidebar/Participants/Participant.vue
-
6src/components/RightSidebar/Participants/ParticipantsList.vue
-
6src/components/RightSidebar/Participants/ParticipantsTab.vue
-
6src/components/RightSidebar/RightSidebar.vue
-
3src/components/RightSidebar/RightSidebarContent.vue
-
3src/components/RightSidebar/SearchMessages/SearchMessagesTab.vue
-
6src/components/RightSidebar/SharedItems/SharedItemsTab.vue
-
6src/components/SetGuestUsername.vue
-
6src/components/TopBar/CallButton.vue
-
6src/components/TopBar/CallTime.vue
-
6src/components/TopBar/TopBar.vue
-
3src/composables/useActiveSession.js
-
3src/composables/useGetParticipants.js
-
28src/composables/useGetToken.ts
-
4src/composables/useIsInCall.js
-
4src/composables/useSortParticipants.js
-
6src/views/FilesSidebarChatView.vue
@ -0,0 +1,28 @@ |
|||
/* |
|||
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors |
|||
* SPDX-License-Identifier: AGPL-3.0-or-later |
|||
*/ |
|||
|
|||
import { createSharedComposable } from '@vueuse/core' |
|||
import { computed } from 'vue' |
|||
import { useStore } from './useStore.js' |
|||
|
|||
/** |
|||
* FIXME: if router is available (main app), rely on it. |
|||
* otherwise mock route object and expose controls |
|||
* |
|||
* TODO: move tokenStore.updateToken from router change to here |
|||
* |
|||
* const route = useRouter() ? useRoute() : undefined |
|||
* return computed<string>(() => route?.params?.token ?? tokenStore.token) |
|||
*/ |
|||
|
|||
/** |
|||
* Shared composable to get token of current conversation |
|||
*/ |
|||
export const useGetToken = createSharedComposable(function() { |
|||
// FIXME: Fallback to tokenStore for now, to be removed
|
|||
const store = useStore() |
|||
|
|||
return computed<string>(() => store.getters.getToken()) |
|||
}) |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue