[web] Lint code for better maintainability

For this pass, mainly the import order has been changed.
This commit is contained in:
Alain Nussbaumer 2023-07-18 15:48:56 +02:00
parent 9d62c94d86
commit c9a35c7346
16 changed files with 33 additions and 33 deletions

View File

@ -8,8 +8,8 @@
</template>
<script>
import webapi from '@/webapi'
import { renderSVG } from '@/lib/SVGRenderer'
import webapi from '@/webapi'
export default {
name: 'CoverArtwork',

View File

@ -48,8 +48,8 @@
</template>
<script>
import ModalDialog from '@/components/ModalDialog.vue'
import * as types from '@/store/mutation_types'
import ModalDialog from '@/components/ModalDialog.vue'
import webapi from '@/webapi'
export default {

View File

@ -22,8 +22,8 @@
</template>
<script>
import webapi from '@/webapi'
import * as types from '@/store/mutation_types'
import webapi from '@/webapi'
export default {
name: 'SettingsCheckbox',

View File

@ -28,8 +28,8 @@
</template>
<script>
import webapi from '@/webapi'
import * as types from '@/store/mutation_types'
import webapi from '@/webapi'
export default {
name: 'SettingsIntfield',

View File

@ -27,8 +27,8 @@
</template>
<script>
import webapi from '@/webapi'
import * as types from '@/store/mutation_types'
import webapi from '@/webapi'
export default {
name: 'SettingsTextfield',

View File

@ -20,12 +20,12 @@
</template>
<script>
import TabsAudiobooks from '@/components/TabsAudiobooks.vue'
import IndexButtonList from '@/components/IndexButtonList.vue'
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
import ListAlbums from '@/components/ListAlbums.vue'
import webapi from '@/webapi'
import { GroupByList, byName } from '@/lib/GroupByList'
import IndexButtonList from '@/components/IndexButtonList.vue'
import ListAlbums from '@/components/ListAlbums.vue'
import TabsAudiobooks from '@/components/TabsAudiobooks.vue'
import webapi from '@/webapi'
const dataObject = {
load(to) {

View File

@ -22,11 +22,11 @@
<script>
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
import TabsAudiobooks from '@/components/TabsAudiobooks.vue'
import { GroupByList, byName } from '@/lib/GroupByList'
import IndexButtonList from '@/components/IndexButtonList.vue'
import ListArtists from '@/components/ListArtists.vue'
import TabsAudiobooks from '@/components/TabsAudiobooks.vue'
import webapi from '@/webapi'
import { GroupByList, byName } from '@/lib/GroupByList'
const dataObject = {
load(to) {

View File

@ -14,9 +14,9 @@
<nav class="level">
<p class="level-item">
<router-link
v-text="$t('page.browse.show-more')"
class="button is-light is-small is-rounded"
:to="{ name: 'music-browse-recently-added' }"
v-text="$t('page.browse.show-more')"
/>
</p>
</nav>
@ -38,9 +38,9 @@
<nav class="level">
<p class="level-item">
<router-link
v-text="$t('page.browse.show-more')"
class="button is-light is-small is-rounded"
:to="{ name: 'music-browse-recently-played' }"
v-text="$t('page.browse.show-more')"
/>
</p>
</nav>

View File

@ -15,11 +15,11 @@
<script>
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
import TabsMusic from '@/components/TabsMusic.vue'
import ListAlbums from '@/components/ListAlbums.vue'
import webapi from '@/webapi'
import store from '@/store'
import { GroupByList, byDateSinceToday } from '@/lib/GroupByList'
import ListAlbums from '@/components/ListAlbums.vue'
import store from '@/store'
import TabsMusic from '@/components/TabsMusic.vue'
import webapi from '@/webapi'
const dataObject = {
load(to) {

View File

@ -18,10 +18,10 @@
<script>
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
import TabsMusic from '@/components/TabsMusic.vue'
import ListTracks from '@/components/ListTracks.vue'
import webapi from '@/webapi'
import { GroupByList } from '@/lib/GroupByList'
import ListTracks from '@/components/ListTracks.vue'
import TabsMusic from '@/components/TabsMusic.vue'
import webapi from '@/webapi'
const dataObject = {
load(to) {

View File

@ -39,12 +39,12 @@
<script>
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
import { GroupByList } from '@/lib/GroupByList'
import ListDirectories from '@/components/ListDirectories.vue'
import ListPlaylists from '@/components/ListPlaylists.vue'
import ListTracks from '@/components/ListTracks.vue'
import ModalDialogDirectory from '@/components/ModalDialogDirectory.vue'
import webapi from '@/webapi'
import { GroupByList } from '@/lib/GroupByList'
const dataObject = {
load(to) {

View File

@ -21,11 +21,11 @@
<script>
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
import TabsMusic from '@/components/TabsMusic.vue'
import { GroupByList, byName } from '@/lib/GroupByList'
import IndexButtonList from '@/components/IndexButtonList.vue'
import ListGenres from '@/components/ListGenres.vue'
import TabsMusic from '@/components/TabsMusic.vue'
import webapi from '@/webapi'
import { GroupByList, byName } from '@/lib/GroupByList'
const dataObject = {
load(to) {

View File

@ -57,13 +57,13 @@
</template>
<script>
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
import ListTracks from '@/components/ListTracks.vue'
import ListAlbums from '@/components/ListAlbums.vue'
import ModalDialogAddRss from '@/components/ModalDialogAddRss.vue'
import * as types from '@/store/mutation_types'
import webapi from '@/webapi'
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
import { GroupByList } from '@/lib/GroupByList'
import ListAlbums from '@/components/ListAlbums.vue'
import ListTracks from '@/components/ListTracks.vue'
import ModalDialogAddRss from '@/components/ModalDialogAddRss.vue'
import webapi from '@/webapi'
const dataObject = {
load(to) {

View File

@ -103,14 +103,14 @@
</template>
<script>
import * as types from '@/store/mutation_types'
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
import draggable from 'vuedraggable'
import ListItemQueueItem from '@/components/ListItemQueueItem.vue'
import ModalDialogQueueItem from '@/components/ModalDialogQueueItem.vue'
import ModalDialogAddUrlStream from '@/components/ModalDialogAddUrlStream.vue'
import ModalDialogPlaylistSave from '@/components/ModalDialogPlaylistSave.vue'
import ModalDialogQueueItem from '@/components/ModalDialogQueueItem.vue'
import webapi from '@/webapi'
import * as types from '@/store/mutation_types'
import draggable from 'vuedraggable'
export default {
name: 'PageQueue',

View File

@ -17,9 +17,9 @@
<script>
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
import { GroupByList } from '@/lib/GroupByList'
import ListTracks from '@/components/ListTracks.vue'
import webapi from '@/webapi'
import { GroupByList } from '@/lib/GroupByList'
const dataObject = {
load(to) {

View File

@ -60,7 +60,7 @@ import TabsSettings from '@/components/TabsSettings.vue'
export default {
name: 'PageSettingsArtwork',
components: { ContentWithHeading, TabsSettings, SettingsCheckbox },
components: { ContentWithHeading, SettingsCheckbox, TabsSettings },
computed: {
spotify() {