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

Move ~/modules to ~/init

parent d4cf14ec
......@@ -252,7 +252,7 @@
import { mapState } from 'vuex'
import { get } from 'lodash-es'
import showdown from 'showdown'
import { humanSize } from '~/modules/filters'
import { humanSize } from '~/init/filters'
import SignupForm from '~/components/auth/SignupForm.vue'
import LogoText from '~/components/LogoText.vue'
......
......@@ -332,7 +332,7 @@ import AlbumWidget from '~/components/audio/album/Widget.vue'
import ChannelsWidget from '~/components/audio/ChannelsWidget.vue'
import LoginForm from '~/components/auth/LoginForm.vue'
import SignupForm from '~/components/auth/SignupForm.vue'
import { humanSize } from '~/modules/filters'
import { humanSize } from '~/init/filters'
export default {
components: {
......
......@@ -78,7 +78,7 @@
import PlayButton from '~/components/audio/PlayButton.vue'
import TagsList from '~/components/tags/List.vue'
import { momentFormat } from '~/modules/filters'
import { momentFormat } from '~/init/filters'
import moment from 'moment'
export default {
......
......@@ -163,7 +163,7 @@ import axios from 'axios'
import TrackRow from '~/components/audio/track/Row.vue'
import TrackMobileRow from '~/components/audio/track/MobileRow.vue'
import Pagination from '~/components/Pagination.vue'
import { unique } from '~/modules/filters'
import { unique } from '~/init/filters'
export default {
components: {
......
......@@ -144,7 +144,7 @@
<script>
import Modal from '~/components/semantic/Modal.vue'
import ChannelUploadForm from '~/components/channels/UploadForm.vue'
import { humanSize } from '~/modules/filters'
import { humanSize } from '~/init/filters'
export default {
components: {
......
......@@ -13,7 +13,7 @@
</span>
</template>
<script>
import { secondsToObject } from '~/modules/filters'
import { secondsToObject } from '~/init/filters'
export default {
props: { seconds: { type: Number, default: null } },
......
......@@ -229,7 +229,7 @@ import TrackPlaylistIcon from '~/components/playlists/TrackPlaylistIcon.vue'
import Modal from '~/components/semantic/Modal.vue'
import EmbedWizard from '~/components/audio/EmbedWizard.vue'
import ReportMixin from '~/components/mixins/Report.vue'
import { momentFormat } from '~/modules/filters'
import { momentFormat } from '~/init/filters'
import updateQueryString from '~/composables/updateQueryString'
const FETCH_URL = 'tracks/'
......
......@@ -38,7 +38,7 @@ app.use(VueCompositionAPI)
app.use(VueLazyload)
const modules: Promise<unknown>[] = []
for (const module of Object.values(import.meta.globEager('./modules/*.ts'))) {
for (const module of Object.values(import.meta.globEager('./init/*.ts'))) {
modules.push(module.install?.({
app,
router,
......
......@@ -82,7 +82,7 @@
</template>
<script>
import { humanSize } from '~/modules/filters'
import { humanSize } from '~/init/filters'
export default {
computed: {
......
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