mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 08:15:02 -05:00
[web] Lint code for better maintainability
For this pass, mainly the import order has been changed.
This commit is contained in:
parent
9d62c94d86
commit
c9a35c7346
@ -8,8 +8,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import webapi from '@/webapi'
|
|
||||||
import { renderSVG } from '@/lib/SVGRenderer'
|
import { renderSVG } from '@/lib/SVGRenderer'
|
||||||
|
import webapi from '@/webapi'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'CoverArtwork',
|
name: 'CoverArtwork',
|
||||||
|
@ -48,8 +48,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ModalDialog from '@/components/ModalDialog.vue'
|
|
||||||
import * as types from '@/store/mutation_types'
|
import * as types from '@/store/mutation_types'
|
||||||
|
import ModalDialog from '@/components/ModalDialog.vue'
|
||||||
import webapi from '@/webapi'
|
import webapi from '@/webapi'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -22,8 +22,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import webapi from '@/webapi'
|
|
||||||
import * as types from '@/store/mutation_types'
|
import * as types from '@/store/mutation_types'
|
||||||
|
import webapi from '@/webapi'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SettingsCheckbox',
|
name: 'SettingsCheckbox',
|
||||||
|
@ -28,8 +28,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import webapi from '@/webapi'
|
|
||||||
import * as types from '@/store/mutation_types'
|
import * as types from '@/store/mutation_types'
|
||||||
|
import webapi from '@/webapi'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SettingsIntfield',
|
name: 'SettingsIntfield',
|
||||||
|
@ -27,8 +27,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import webapi from '@/webapi'
|
|
||||||
import * as types from '@/store/mutation_types'
|
import * as types from '@/store/mutation_types'
|
||||||
|
import webapi from '@/webapi'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'SettingsTextfield',
|
name: 'SettingsTextfield',
|
||||||
|
@ -20,12 +20,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import TabsAudiobooks from '@/components/TabsAudiobooks.vue'
|
|
||||||
import IndexButtonList from '@/components/IndexButtonList.vue'
|
|
||||||
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
|
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
|
||||||
import ListAlbums from '@/components/ListAlbums.vue'
|
|
||||||
import webapi from '@/webapi'
|
|
||||||
import { GroupByList, byName } from '@/lib/GroupByList'
|
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 = {
|
const dataObject = {
|
||||||
load(to) {
|
load(to) {
|
||||||
|
@ -22,11 +22,11 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
|
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 IndexButtonList from '@/components/IndexButtonList.vue'
|
||||||
import ListArtists from '@/components/ListArtists.vue'
|
import ListArtists from '@/components/ListArtists.vue'
|
||||||
|
import TabsAudiobooks from '@/components/TabsAudiobooks.vue'
|
||||||
import webapi from '@/webapi'
|
import webapi from '@/webapi'
|
||||||
import { GroupByList, byName } from '@/lib/GroupByList'
|
|
||||||
|
|
||||||
const dataObject = {
|
const dataObject = {
|
||||||
load(to) {
|
load(to) {
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
<nav class="level">
|
<nav class="level">
|
||||||
<p class="level-item">
|
<p class="level-item">
|
||||||
<router-link
|
<router-link
|
||||||
v-text="$t('page.browse.show-more')"
|
|
||||||
class="button is-light is-small is-rounded"
|
class="button is-light is-small is-rounded"
|
||||||
:to="{ name: 'music-browse-recently-added' }"
|
:to="{ name: 'music-browse-recently-added' }"
|
||||||
|
v-text="$t('page.browse.show-more')"
|
||||||
/>
|
/>
|
||||||
</p>
|
</p>
|
||||||
</nav>
|
</nav>
|
||||||
@ -38,9 +38,9 @@
|
|||||||
<nav class="level">
|
<nav class="level">
|
||||||
<p class="level-item">
|
<p class="level-item">
|
||||||
<router-link
|
<router-link
|
||||||
v-text="$t('page.browse.show-more')"
|
|
||||||
class="button is-light is-small is-rounded"
|
class="button is-light is-small is-rounded"
|
||||||
:to="{ name: 'music-browse-recently-played' }"
|
:to="{ name: 'music-browse-recently-played' }"
|
||||||
|
v-text="$t('page.browse.show-more')"
|
||||||
/>
|
/>
|
||||||
</p>
|
</p>
|
||||||
</nav>
|
</nav>
|
||||||
|
@ -15,11 +15,11 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
|
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 { 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 = {
|
const dataObject = {
|
||||||
load(to) {
|
load(to) {
|
||||||
|
@ -18,10 +18,10 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
|
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 { GroupByList } from '@/lib/GroupByList'
|
||||||
|
import ListTracks from '@/components/ListTracks.vue'
|
||||||
|
import TabsMusic from '@/components/TabsMusic.vue'
|
||||||
|
import webapi from '@/webapi'
|
||||||
|
|
||||||
const dataObject = {
|
const dataObject = {
|
||||||
load(to) {
|
load(to) {
|
||||||
|
@ -39,12 +39,12 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
|
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
|
||||||
|
import { GroupByList } from '@/lib/GroupByList'
|
||||||
import ListDirectories from '@/components/ListDirectories.vue'
|
import ListDirectories from '@/components/ListDirectories.vue'
|
||||||
import ListPlaylists from '@/components/ListPlaylists.vue'
|
import ListPlaylists from '@/components/ListPlaylists.vue'
|
||||||
import ListTracks from '@/components/ListTracks.vue'
|
import ListTracks from '@/components/ListTracks.vue'
|
||||||
import ModalDialogDirectory from '@/components/ModalDialogDirectory.vue'
|
import ModalDialogDirectory from '@/components/ModalDialogDirectory.vue'
|
||||||
import webapi from '@/webapi'
|
import webapi from '@/webapi'
|
||||||
import { GroupByList } from '@/lib/GroupByList'
|
|
||||||
|
|
||||||
const dataObject = {
|
const dataObject = {
|
||||||
load(to) {
|
load(to) {
|
||||||
|
@ -21,11 +21,11 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
|
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 IndexButtonList from '@/components/IndexButtonList.vue'
|
||||||
import ListGenres from '@/components/ListGenres.vue'
|
import ListGenres from '@/components/ListGenres.vue'
|
||||||
|
import TabsMusic from '@/components/TabsMusic.vue'
|
||||||
import webapi from '@/webapi'
|
import webapi from '@/webapi'
|
||||||
import { GroupByList, byName } from '@/lib/GroupByList'
|
|
||||||
|
|
||||||
const dataObject = {
|
const dataObject = {
|
||||||
load(to) {
|
load(to) {
|
||||||
|
@ -57,13 +57,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<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 * as types from '@/store/mutation_types'
|
||||||
import webapi from '@/webapi'
|
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
|
||||||
import { GroupByList } from '@/lib/GroupByList'
|
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 = {
|
const dataObject = {
|
||||||
load(to) {
|
load(to) {
|
||||||
|
@ -103,14 +103,14 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import * as types from '@/store/mutation_types'
|
||||||
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
|
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
|
||||||
|
import draggable from 'vuedraggable'
|
||||||
import ListItemQueueItem from '@/components/ListItemQueueItem.vue'
|
import ListItemQueueItem from '@/components/ListItemQueueItem.vue'
|
||||||
import ModalDialogQueueItem from '@/components/ModalDialogQueueItem.vue'
|
|
||||||
import ModalDialogAddUrlStream from '@/components/ModalDialogAddUrlStream.vue'
|
import ModalDialogAddUrlStream from '@/components/ModalDialogAddUrlStream.vue'
|
||||||
import ModalDialogPlaylistSave from '@/components/ModalDialogPlaylistSave.vue'
|
import ModalDialogPlaylistSave from '@/components/ModalDialogPlaylistSave.vue'
|
||||||
|
import ModalDialogQueueItem from '@/components/ModalDialogQueueItem.vue'
|
||||||
import webapi from '@/webapi'
|
import webapi from '@/webapi'
|
||||||
import * as types from '@/store/mutation_types'
|
|
||||||
import draggable from 'vuedraggable'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'PageQueue',
|
name: 'PageQueue',
|
||||||
|
@ -17,9 +17,9 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
|
import ContentWithHeading from '@/templates/ContentWithHeading.vue'
|
||||||
|
import { GroupByList } from '@/lib/GroupByList'
|
||||||
import ListTracks from '@/components/ListTracks.vue'
|
import ListTracks from '@/components/ListTracks.vue'
|
||||||
import webapi from '@/webapi'
|
import webapi from '@/webapi'
|
||||||
import { GroupByList } from '@/lib/GroupByList'
|
|
||||||
|
|
||||||
const dataObject = {
|
const dataObject = {
|
||||||
load(to) {
|
load(to) {
|
||||||
|
@ -60,7 +60,7 @@ import TabsSettings from '@/components/TabsSettings.vue'
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'PageSettingsArtwork',
|
name: 'PageSettingsArtwork',
|
||||||
components: { ContentWithHeading, TabsSettings, SettingsCheckbox },
|
components: { ContentWithHeading, SettingsCheckbox, TabsSettings },
|
||||||
|
|
||||||
computed: {
|
computed: {
|
||||||
spotify() {
|
spotify() {
|
||||||
|
Loading…
Reference in New Issue
Block a user