Skip to content

Commit 9c674d2

Browse files
committed
wip! [vue3] Add .vue to components imports
1 parent 620c8e9 commit 9c674d2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+182
-182
lines changed

web-src/src/App.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
</template>
1919

2020
<script>
21-
import NavbarTop from '@/components/NavbarTop'
22-
import NavbarBottom from '@/components/NavbarBottom'
23-
import Notifications from '@/components/Notifications'
24-
import ModalDialogRemotePairing from '@/components/ModalDialogRemotePairing'
25-
import ModalDialogUpdate from '@/components/ModalDialogUpdate'
21+
import NavbarTop from '@/components/NavbarTop.vue'
22+
import NavbarBottom from '@/components/NavbarBottom.vue'
23+
import Notifications from '@/components/Notifications.vue'
24+
import ModalDialogRemotePairing from '@/components/ModalDialogRemotePairing.vue'
25+
import ModalDialogUpdate from '@/components/ModalDialogUpdate.vue'
2626
import webapi from '@/webapi'
2727
import * as types from '@/store/mutation_types'
2828
import ReconnectingWebSocket from 'reconnectingwebsocket'
@@ -125,9 +125,9 @@ export default {
125125
}
126126
127127
let wsUrl = protocol + window.location.hostname + ':' + vm.$store.state.config.websocket_port
128-
if (process.env.NODE_ENV === 'development' && process.env.VUE_APP_WEBSOCKET_SERVER) {
128+
if (import.meta.env.NODE_ENV === 'development' && import.meta.env.VUE_APP_WEBSOCKET_SERVER) {
129129
// If we are running in the development server, use the websocket url configured in .env.development
130-
wsUrl = process.env.VUE_APP_WEBSOCKET_SERVER
130+
wsUrl = import.meta.env.VUE_APP_WEBSOCKET_SERVER
131131
}
132132
133133
const socket = new ReconnectingWebSocket(

web-src/src/components/ListAlbums.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@
6969
</template>
7070

7171
<script>
72-
import ListItemAlbum from '@/components/ListItemAlbum'
73-
import ModalDialogAlbum from '@/components/ModalDialogAlbum'
74-
import ModalDialog from '@/components/ModalDialog'
75-
import CoverArtwork from '@/components/CoverArtwork'
72+
import ListItemAlbum from '@/components/ListItemAlbum.vue'
73+
import ModalDialogAlbum from '@/components/ModalDialogAlbum.vue'
74+
import ModalDialog from '@/components/ModalDialog.vue'
75+
import CoverArtwork from '@/components/CoverArtwork.vue'
7676
import webapi from '@/webapi'
7777
import Albums from '@/lib/Albums'
7878

web-src/src/components/ListArtists.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
</template>
3333

3434
<script>
35-
import ListItemArtist from '@/components/ListItemArtist'
36-
import ModalDialogArtist from '@/components/ModalDialogArtist'
35+
import ListItemArtist from '@/components/ListItemArtist.vue'
36+
import ModalDialogArtist from '@/components/ModalDialogArtist.vue'
3737
import Artists from '@/lib/Artists'
3838
3939
export default {

web-src/src/components/ListPlaylists.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
</template>
1818

1919
<script>
20-
import ListItemPlaylist from '@/components/ListItemPlaylist'
21-
import ModalDialogPlaylist from '@/components/ModalDialogPlaylist'
20+
import ListItemPlaylist from '@/components/ListItemPlaylist.vue'
21+
import ModalDialogPlaylist from '@/components/ModalDialogPlaylist.vue'
2222
2323
export default {
2424
name: 'ListPlaylists',

web-src/src/components/ListTracks.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
</template>
1313

1414
<script>
15-
import ListItemTrack from '@/components/ListItemTrack'
16-
import ModalDialogTrack from '@/components/ModalDialogTrack'
15+
import ListItemTrack from '@/components/ListItemTrack.vue'
16+
import ModalDialogTrack from '@/components/ModalDialogTrack.vue'
1717
import webapi from '@/webapi'
1818
1919
export default {

web-src/src/components/ModalDialogAlbum.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
</template>
7070

7171
<script>
72-
import CoverArtwork from '@/components/CoverArtwork'
72+
import CoverArtwork from '@/components/CoverArtwork.vue'
7373
import webapi from '@/webapi'
7474
7575
export default {

web-src/src/components/NavbarBottom.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -197,16 +197,16 @@
197197
<script>
198198
import webapi from '@/webapi'
199199
import _audio from '@/audio'
200-
import NavbarItemLink from './NavbarItemLink'
201-
import NavbarItemOutput from './NavbarItemOutput'
202-
import PlayerButtonPlayPause from '@/components/PlayerButtonPlayPause'
203-
import PlayerButtonNext from '@/components/PlayerButtonNext'
204-
import PlayerButtonPrevious from '@/components/PlayerButtonPrevious'
205-
import PlayerButtonShuffle from '@/components/PlayerButtonShuffle'
206-
import PlayerButtonConsume from '@/components/PlayerButtonConsume'
207-
import PlayerButtonRepeat from '@/components/PlayerButtonRepeat'
208-
import PlayerButtonSeekBack from '@/components/PlayerButtonSeekBack'
209-
import PlayerButtonSeekForward from '@/components/PlayerButtonSeekForward'
200+
import NavbarItemLink from './NavbarItemLink.vue'
201+
import NavbarItemOutput from './NavbarItemOutput.vue'
202+
import PlayerButtonPlayPause from '@/components/PlayerButtonPlayPause.vue'
203+
import PlayerButtonNext from '@/components/PlayerButtonNext.vue'
204+
import PlayerButtonPrevious from '@/components/PlayerButtonPrevious.vue'
205+
import PlayerButtonShuffle from '@/components/PlayerButtonShuffle.vue'
206+
import PlayerButtonConsume from '@/components/PlayerButtonConsume.vue'
207+
import PlayerButtonRepeat from '@/components/PlayerButtonRepeat.vue'
208+
import PlayerButtonSeekBack from '@/components/PlayerButtonSeekBack.vue'
209+
import PlayerButtonSeekForward from '@/components/PlayerButtonSeekForward.vue'
210210
import RangeSlider from 'vue-range-slider'
211211
import * as types from '@/store/mutation_types'
212212

web-src/src/components/NavbarTop.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
</template>
8080

8181
<script>
82-
import NavbarItemLink from './NavbarItemLink'
82+
import NavbarItemLink from './NavbarItemLink.vue'
8383
import * as types from '@/store/mutation_types'
8484
8585
export default {

web-src/src/pages/PageAlbum.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@
3232

3333
<script>
3434
import { LoadDataBeforeEnterMixin } from './mixin'
35-
import ContentWithHero from '@/templates/ContentWithHero'
36-
import ListTracks from '@/components/ListTracks'
37-
import ModalDialogAlbum from '@/components/ModalDialogAlbum'
38-
import CoverArtwork from '@/components/CoverArtwork'
35+
import ContentWithHero from '@/templates/ContentWithHero.vue'
36+
import ListTracks from '@/components/ListTracks.vue'
37+
import ModalDialogAlbum from '@/components/ModalDialogAlbum.vue'
38+
import CoverArtwork from '@/components/CoverArtwork.vue'
3939
import webapi from '@/webapi'
4040
4141
const albumData = {

web-src/src/pages/PageAlbums.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@
4545

4646
<script>
4747
import { LoadDataBeforeEnterMixin } from './mixin'
48-
import ContentWithHeading from '@/templates/ContentWithHeading'
49-
import TabsMusic from '@/components/TabsMusic'
50-
import IndexButtonList from '@/components/IndexButtonList'
51-
import ListAlbums from '@/components/ListAlbums'
52-
import DropdownMenu from '@/components/DropdownMenu'
48+
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
49+
import TabsMusic from '@/components/TabsMusic.vue'
50+
import IndexButtonList from '@/components/IndexButtonList.vue'
51+
import ListAlbums from '@/components/ListAlbums.vue'
52+
import DropdownMenu from '@/components/DropdownMenu.vue'
5353
import webapi from '@/webapi'
5454
import * as types from '@/store/mutation_types'
5555
import Albums from '@/lib/Albums'

0 commit comments

Comments
 (0)