Commit aef58e33 authored by Kasper Seweryn's avatar Kasper Seweryn 🥞 Committed by Kasper Seweryn
Browse files

Remove '@/'

parent 3337ec9a
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
"^.+\\.js$": "babel-jest" "^.+\\.js$": "babel-jest"
}, },
"moduleNameMapper": { "moduleNameMapper": {
"^@/(.*)$": "<rootDir>/src/$1" "^~/(.*)$": "<rootDir>/src/$1"
}, },
"testEnvironment": "jsdom" "testEnvironment": "jsdom"
} }
......
<script setup lang="ts"> <script setup lang="ts">
import AudioPlayer from '@/components/audio/Player.vue' import AudioPlayer from '~/components/audio/Player.vue'
import Queue from '@/components/Queue.vue' import Queue from '~/components/Queue.vue'
import PlaylistModal from '@/components/playlists/PlaylistModal.vue' import PlaylistModal from '~/components/playlists/PlaylistModal.vue'
import ChannelUploadModal from '@/components/channels/UploadModal.vue' import ChannelUploadModal from '~/components/channels/UploadModal.vue'
import Sidebar from '@/components/Sidebar.vue' import Sidebar from '~/components/Sidebar.vue'
import ServiceMessages from '@/components/ServiceMessages.vue' import ServiceMessages from '~/components/ServiceMessages.vue'
import SetInstanceModal from '@/components/SetInstanceModal.vue' import SetInstanceModal from '~/components/SetInstanceModal.vue'
import ShortcutsModal from '@/components/ShortcutsModal.vue' import ShortcutsModal from '~/components/ShortcutsModal.vue'
import FilterModal from '@/components/moderation/FilterModal.vue' import FilterModal from '~/components/moderation/FilterModal.vue'
import ReportModal from '@/components/moderation/ReportModal.vue' import ReportModal from '~/components/moderation/ReportModal.vue'
import { useIntervalFn, useWindowSize } from '@vueuse/core' import { useIntervalFn, useWindowSize } from '@vueuse/core'
import GlobalEvents from '@/components/utils/global-events.vue' import GlobalEvents from '~/components/utils/global-events.vue'
import { computed, nextTick, onMounted, ref, watchEffect } from '@vue/composition-api' import { computed, nextTick, onMounted, ref, watchEffect } from '@vue/composition-api'
import store from '@/store' import store from '~/store'
import { import {
ListenWSEvent, ListenWSEvent,
PendingReviewEditsWSEvent, PendingReviewEditsWSEvent,
PendingReviewReportsWSEvent, PendingReviewReportsWSEvent,
PendingReviewRequestsWSEvent, PendingReviewRequestsWSEvent,
Track Track
} from '@/types' } from '~/types'
import useWebSocketHandler from '~/composables/useWebSocketHandler' import useWebSocketHandler from '~/composables/useWebSocketHandler'
import { getClientOnlyRadio } from '@/radios' import { getClientOnlyRadio } from '~/radios'
// Tracks // Tracks
const currentTrack = computed(() => store.getters['queue/currentTrack']) const currentTrack = computed(() => store.getters['queue/currentTrack'])
......
...@@ -252,10 +252,10 @@ ...@@ -252,10 +252,10 @@
import { mapState } from 'vuex' import { mapState } from 'vuex'
import { get } from 'lodash-es' import { get } from 'lodash-es'
import showdown from 'showdown' import showdown from 'showdown'
import { humanSize } from '@/modules/filters' import { humanSize } from '~/modules/filters'
import SignupForm from '@/components/auth/SignupForm.vue' import SignupForm from '~/components/auth/SignupForm.vue'
import LogoText from '@/components/LogoText.vue' import LogoText from '~/components/LogoText.vue'
export default { export default {
components: { components: {
......
...@@ -328,11 +328,11 @@ ...@@ -328,11 +328,11 @@
import { get } from 'lodash-es' import { get } from 'lodash-es'
import { mapState } from 'vuex' import { mapState } from 'vuex'
import showdown from 'showdown' import showdown from 'showdown'
import AlbumWidget from '@/components/audio/album/Widget.vue' import AlbumWidget from '~/components/audio/album/Widget.vue'
import ChannelsWidget from '@/components/audio/ChannelsWidget.vue' import ChannelsWidget from '~/components/audio/ChannelsWidget.vue'
import LoginForm from '@/components/auth/LoginForm.vue' import LoginForm from '~/components/auth/LoginForm.vue'
import SignupForm from '@/components/auth/SignupForm.vue' import SignupForm from '~/components/auth/SignupForm.vue'
import { humanSize } from '@/modules/filters' import { humanSize } from '~/modules/filters'
export default { export default {
components: { components: {
......
...@@ -346,10 +346,10 @@ import { mapState, mapGetters, mapActions } from 'vuex' ...@@ -346,10 +346,10 @@ import { mapState, mapGetters, mapActions } from 'vuex'
import $ from 'jquery' import $ from 'jquery'
import moment from 'moment' import moment from 'moment'
import { sum } from 'lodash-es' import { sum } from 'lodash-es'
import time from '@/utils/time' import time from '~/utils/time'
import { createFocusTrap } from 'focus-trap' import { createFocusTrap } from 'focus-trap'
import TrackFavoriteIcon from '@/components/favorites/TrackFavoriteIcon.vue' import TrackFavoriteIcon from '~/components/favorites/TrackFavoriteIcon.vue'
import TrackPlaylistIcon from '@/components/playlists/TrackPlaylistIcon.vue' import TrackPlaylistIcon from '~/components/playlists/TrackPlaylistIcon.vue'
import draggable from 'vuedraggable' import draggable from 'vuedraggable'
export default { export default {
......
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
</template> </template>
<script> <script>
import Modal from '@/components/semantic/Modal.vue' import Modal from '~/components/semantic/Modal.vue'
import axios from 'axios' import axios from 'axios'
import { uniq } from 'lodash-es' import { uniq } from 'lodash-es'
......
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
<script> <script>
import Modal from '@/components/semantic/Modal.vue' import Modal from '~/components/semantic/Modal.vue'
export default { export default {
components: { components: {
......
...@@ -472,15 +472,15 @@ ...@@ -472,15 +472,15 @@
<script> <script>
import { mapState, mapActions, mapGetters } from 'vuex' import { mapState, mapActions, mapGetters } from 'vuex'
import UserModal from '@/components/common/UserModal.vue' import UserModal from '~/components/common/UserModal.vue'
import Logo from '@/components/Logo.vue' import Logo from '~/components/Logo.vue'
import SearchBar from '@/components/audio/SearchBar.vue' import SearchBar from '~/components/audio/SearchBar.vue'
import UserMenu from '@/components/common/UserMenu.vue' import UserMenu from '~/components/common/UserMenu.vue'
import Modal from '@/components/semantic/Modal.vue' import Modal from '~/components/semantic/Modal.vue'
import $ from 'jquery' import $ from 'jquery'
import useThemeList from '@/composables/useThemeList' import useThemeList from '~/composables/useThemeList'
import useTheme from '@/composables/useTheme' import useTheme from '~/composables/useTheme'
export default { export default {
name: 'Sidebar', name: 'Sidebar',
......
...@@ -158,7 +158,7 @@ ...@@ -158,7 +158,7 @@
<script> <script>
import axios from 'axios' import axios from 'axios'
import { cloneDeep } from 'lodash-es' import { cloneDeep } from 'lodash-es'
import SignupFormBuilder from '@/components/admin/SignupFormBuilder.vue' import SignupFormBuilder from '~/components/admin/SignupFormBuilder.vue'
export default { export default {
components: { components: {
......
...@@ -163,7 +163,7 @@ ...@@ -163,7 +163,7 @@
<script> <script>
import { cloneDeep, tap, set } from 'lodash-es' import { cloneDeep, tap, set } from 'lodash-es'
import SignupForm from '@/components/auth/SignupForm.vue' import SignupForm from '~/components/auth/SignupForm.vue'
function arrayMove (arr, oldIndex, newIndex) { function arrayMove (arr, oldIndex, newIndex) {
if (newIndex >= arr.length) { if (newIndex >= arr.length) {
......
...@@ -75,10 +75,10 @@ ...@@ -75,10 +75,10 @@
</template> </template>
<script> <script>
import PlayButton from '@/components/audio/PlayButton.vue' import PlayButton from '~/components/audio/PlayButton.vue'
import TagsList from '@/components/tags/List.vue' import TagsList from '~/components/tags/List.vue'
import { momentFormat } from '@/modules/filters' import { momentFormat } from '~/modules/filters'
import moment from 'moment' import moment from 'moment'
export default { export default {
......
...@@ -57,8 +57,8 @@ ...@@ -57,8 +57,8 @@
<script> <script>
import { clone } from 'lodash-es' import { clone } from 'lodash-es'
import axios from 'axios' import axios from 'axios'
import PodcastTable from '@/components/audio/podcast/Table.vue' import PodcastTable from '~/components/audio/podcast/Table.vue'
import TrackTable from '@/components/audio/track/Table.vue' import TrackTable from '~/components/audio/track/Table.vue'
export default { export default {
components: { components: {
......
...@@ -77,8 +77,8 @@ ...@@ -77,8 +77,8 @@
</template> </template>
<script> <script>
import PlayButton from '@/components/audio/PlayButton.vue' import PlayButton from '~/components/audio/PlayButton.vue'
import TrackFavoriteIcon from '@/components/favorites/TrackFavoriteIcon.vue' import TrackFavoriteIcon from '~/components/favorites/TrackFavoriteIcon.vue'
import { mapGetters } from 'vuex' import { mapGetters } from 'vuex'
export default { export default {
......
...@@ -249,8 +249,8 @@ ...@@ -249,8 +249,8 @@
<script> <script>
import axios from 'axios' import axios from 'axios'
import AttachmentInput from '@/components/common/AttachmentInput.vue' import AttachmentInput from '~/components/common/AttachmentInput.vue'
import TagsSelector from '@/components/library/TagsSelector.vue' import TagsSelector from '~/components/library/TagsSelector.vue'
function slugify (text) { function slugify (text) {
return text.toString().toLowerCase() return text.toString().toLowerCase()
......
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
</template> </template>
<script> <script>
import PlayButton from '@/components/audio/PlayButton.vue' import PlayButton from '~/components/audio/PlayButton.vue'
export default { export default {
components: { components: {
......
...@@ -55,8 +55,8 @@ ...@@ -55,8 +55,8 @@
<script> <script>
import { clone } from 'lodash-es' import { clone } from 'lodash-es'
import axios from 'axios' import axios from 'axios'
import ChannelSerieCard from '@/components/audio/ChannelSerieCard.vue' import ChannelSerieCard from '~/components/audio/ChannelSerieCard.vue'
import AlbumCard from '@/components/audio/album/Card.vue' import AlbumCard from '~/components/audio/album/Card.vue'
export default { export default {
components: { components: {
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<script> <script>
import { clone } from 'lodash-es' import { clone } from 'lodash-es'
import axios from 'axios' import axios from 'axios'
import ChannelCard from '@/components/audio/ChannelCard.vue' import ChannelCard from '~/components/audio/ChannelCard.vue'
export default { export default {
components: { components: {
......
...@@ -126,8 +126,8 @@ ...@@ -126,8 +126,8 @@
<script> <script>
import jQuery from 'jquery' import jQuery from 'jquery'
import ReportMixin from '@/components/mixins/Report.vue' import ReportMixin from '~/components/mixins/Report.vue'
import PlayOptionsMixin from '@/components/mixins/PlayOptions.vue' import PlayOptionsMixin from '~/components/mixins/PlayOptions.vue'
export default { export default {
mixins: [ReportMixin, PlayOptionsMixin], mixins: [ReportMixin, PlayOptionsMixin],
......
...@@ -339,15 +339,15 @@ ...@@ -339,15 +339,15 @@
<script> <script>
import { mapState, mapGetters, mapActions } from 'vuex' import { mapState, mapGetters, mapActions } from 'vuex'
import GlobalEvents from '@/components/utils/global-events.vue' import GlobalEvents from '~/components/utils/global-events.vue'
import { toLinearVolumeScale } from '@/audio/volume.js' import { toLinearVolumeScale } from '~/audio/volume.js'
import { Howl, Howler } from 'howler' import { Howl, Howler } from 'howler'
import { throttle, reverse } from 'lodash-es' import { throttle, reverse } from 'lodash-es'
import axios from 'axios' import axios from 'axios'
import VolumeControl from './VolumeControl.vue' import VolumeControl from './VolumeControl.vue'
import TrackFavoriteIcon from '@/components/favorites/TrackFavoriteIcon.vue' import TrackFavoriteIcon from '~/components/favorites/TrackFavoriteIcon.vue'
import TrackPlaylistIcon from '@/components/playlists/TrackPlaylistIcon.vue' import TrackPlaylistIcon from '~/components/playlists/TrackPlaylistIcon.vue'
import updateQueryString from '@/composables/updateQueryString' import updateQueryString from '~/composables/updateQueryString'
export default { export default {
components: { components: {
......
...@@ -71,9 +71,9 @@ ...@@ -71,9 +71,9 @@
<script> <script>
import { debounce } from 'lodash-es' import { debounce } from 'lodash-es'
import axios from 'axios' import axios from 'axios'
import logger from '@/logging' import logger from '~/logging'
import AlbumCard from '@/components/audio/album/Card.vue' import AlbumCard from '~/components/audio/album/Card.vue'
import ArtistCard from '@/components/audio/artist/Card.vue' import ArtistCard from '~/components/audio/artist/Card.vue'
export default { export default {
components: { components: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment