diff options
author | Maksim Sukharev <antreesy.web@gmail.com> | 2023-01-18 10:03:52 +0100 |
---|---|---|
committer | Maksim Sukharev <antreesy.web@gmail.com> | 2023-01-24 20:05:15 +0100 |
commit | d12a7320077dd2bbf103790f022bb8061b0e3162 (patch) | |
tree | 15eacc5e052032a18c39ec019cc7c6a763023e51 | |
parent | f990505b81d40657f2c471e632ac4b4a94d0cda6 (diff) |
organize imports
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
-rw-r--r-- | src/components/CallView/shared/LocalMediaControls.vue | 41 | ||||
-rw-r--r-- | src/components/DeviceChecker/DeviceChecker.vue | 74 |
2 files changed, 60 insertions, 55 deletions
diff --git a/src/components/CallView/shared/LocalMediaControls.vue b/src/components/CallView/shared/LocalMediaControls.vue index 8171a5a10..8d64d967b 100644 --- a/src/components/CallView/shared/LocalMediaControls.vue +++ b/src/components/CallView/shared/LocalMediaControls.vue @@ -175,26 +175,29 @@ import escapeHtml from 'escape-html' import { emit } from '@nextcloud/event-bus' import { showMessage } from '@nextcloud/dialogs' +import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' +import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' +import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' +import NcPopover from '@nextcloud/vue/dist/Components/NcPopover.js' +import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip.js' + +import Blur from 'vue-material-design-icons/Blur.vue' +import BlurOff from 'vue-material-design-icons/BlurOff.vue' import CancelPresentation from '../../missingMaterialDesignIcons/CancelPresentation.vue' import HandBackLeft from 'vue-material-design-icons/HandBackLeft.vue' import Monitor from 'vue-material-design-icons/Monitor.vue' +import NetworkStrength2Alert from 'vue-material-design-icons/NetworkStrength2Alert.vue' import PresentToAll from '../../missingMaterialDesignIcons/PresentToAll.vue' import VideoIcon from 'vue-material-design-icons/Video.vue' import VideoOff from 'vue-material-design-icons/VideoOff.vue' -import NcPopover from '@nextcloud/vue/dist/Components/NcPopover.js' -import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip.js' + +import VolumeIndicator from '../../VolumeIndicator/VolumeIndicator.vue' + import { PARTICIPANT } from '../../../constants.js' -import SpeakingWhileMutedWarner from '../../../utils/webrtc/SpeakingWhileMutedWarner.js' -import NetworkStrength2Alert from 'vue-material-design-icons/NetworkStrength2Alert.vue' +import isInCall from '../../../mixins/isInCall.js' import { callAnalyzer } from '../../../utils/webrtc/index.js' import { CONNECTION_QUALITY } from '../../../utils/webrtc/analyzers/PeerConnectionAnalyzer.js' -import isInCall from '../../../mixins/isInCall.js' -import Blur from 'vue-material-design-icons/Blur.vue' -import BlurOff from 'vue-material-design-icons/BlurOff.vue' -import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' -import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' -import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' -import VolumeIndicator from '../../VolumeIndicator/VolumeIndicator.vue' +import SpeakingWhileMutedWarner from '../../../utils/webrtc/SpeakingWhileMutedWarner.js' export default { @@ -204,19 +207,19 @@ export default { tooltip: Tooltip, }, components: { - NetworkStrength2Alert, - NcPopover, + Blur, + BlurOff, CancelPresentation, HandBackLeft, - PresentToAll, - VideoIcon, - VideoOff, Monitor, - NcButton, NcActions, NcActionButton, - Blur, - BlurOff, + NcButton, + NcPopover, + NetworkStrength2Alert, + PresentToAll, + VideoIcon, + VideoOff, VolumeIndicator, }, diff --git a/src/components/DeviceChecker/DeviceChecker.vue b/src/components/DeviceChecker/DeviceChecker.vue index 2e1674bb6..1f710dc90 100644 --- a/src/components/DeviceChecker/DeviceChecker.vue +++ b/src/components/DeviceChecker/DeviceChecker.vue @@ -67,12 +67,11 @@ :disabled="!audioPreviewAvailable" @click="toggleAudio"> <template #icon> - <VolumeIndicator - :audio-preview-available="audioPreviewAvailable" - :audio-enabled="audioOn" - :current-volume="currentVolume" - :volume-threshold="volumeThreshold" - :overlay-color="'#999999'" /> + <VolumeIndicator :audio-preview-available="audioPreviewAvailable" + :audio-enabled="audioOn" + :current-volume="currentVolume" + :volume-threshold="volumeThreshold" + :overlay-color="'#999999'" /> </template> </NcButton> @@ -177,32 +176,35 @@ </template> <script> +import { getCapabilities } from '@nextcloud/capabilities' +import { subscribe, unsubscribe } from '@nextcloud/event-bus' +import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' +import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' +import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js' +import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' +import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js' import NcModal from '@nextcloud/vue/dist/Components/NcModal.js' +import NcNoteCard from '@nextcloud/vue/dist/Components/NcNoteCard.js' import Tooltip from '@nextcloud/vue/dist/Directives/Tooltip.js' -import { devices } from '../../mixins/devices.js' -import MediaDevicesSelector from '../MediaDevicesSelector.vue' -import VideoBackground from '../CallView/shared/VideoBackground.vue' -import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js' + +import Bell from 'vue-material-design-icons/Bell.vue' +import BellOff from 'vue-material-design-icons/BellOff.vue' +import Blur from 'vue-material-design-icons/Blur.vue' +import BlurOff from 'vue-material-design-icons/BlurOff.vue' import Cog from 'vue-material-design-icons/Cog.vue' import VideoIcon from 'vue-material-design-icons/Video.vue' import VideoOff from 'vue-material-design-icons/VideoOff.vue' -import Blur from 'vue-material-design-icons/Blur.vue' -import BlurOff from 'vue-material-design-icons/BlurOff.vue' -import BellOff from 'vue-material-design-icons/BellOff.vue' -import Bell from 'vue-material-design-icons/Bell.vue' -import { CALL } from '../../constants.js' -import { localMediaModel } from '../../utils/webrtc/index.js' + import CallButton from '../TopBar/CallButton.vue' -import { subscribe, unsubscribe } from '@nextcloud/event-bus' -import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js' -import BrowserStorage from '../../services/BrowserStorage.js' +import MediaDevicesSelector from '../MediaDevicesSelector.vue' +import VideoBackground from '../CallView/shared/VideoBackground.vue' import VolumeIndicator from '../VolumeIndicator/VolumeIndicator.vue' -import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' -import NcActions from '@nextcloud/vue/dist/Components/NcActions.js' -import NcActionButton from '@nextcloud/vue/dist/Components/NcActionButton.js' -import NcNoteCard from '@nextcloud/vue/dist/Components/NcNoteCard.js' + +import { CALL } from '../../constants.js' import isInLobby from '../../mixins/isInLobby.js' -import { getCapabilities } from '@nextcloud/capabilities' +import { devices } from '../../mixins/devices.js' +import BrowserStorage from '../../services/BrowserStorage.js' +import { localMediaModel } from '../../utils/webrtc/index.js' export default { name: 'DeviceChecker', @@ -212,24 +214,24 @@ export default { }, components: { + Bell, + BellOff, + Blur, + BlurOff, + CallButton, + Cog, + NcActionButton, + NcActions, + NcAvatar, + NcButton, + NcCheckboxRadioSwitch, NcModal, + NcNoteCard, MediaDevicesSelector, VideoBackground, - NcAvatar, - NcNoteCard, - Cog, VideoIcon, VideoOff, - Blur, - BlurOff, - CallButton, - NcCheckboxRadioSwitch, VolumeIndicator, - NcButton, - NcActionButton, - NcActions, - BellOff, - Bell, }, mixins: [devices, isInLobby], |