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 @@ ...@@ -252,7 +252,7 @@
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 '~/init/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'
......
...@@ -332,7 +332,7 @@ import AlbumWidget from '~/components/audio/album/Widget.vue' ...@@ -332,7 +332,7 @@ 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 '~/init/filters'
export default { export default {
components: { components: {
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
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 '~/init/filters'
import moment from 'moment' import moment from 'moment'
export default { export default {
......
...@@ -163,7 +163,7 @@ import axios from 'axios' ...@@ -163,7 +163,7 @@ import axios from 'axios'
import TrackRow from '~/components/audio/track/Row.vue' import TrackRow from '~/components/audio/track/Row.vue'
import TrackMobileRow from '~/components/audio/track/MobileRow.vue' import TrackMobileRow from '~/components/audio/track/MobileRow.vue'
import Pagination from '~/components/Pagination.vue' import Pagination from '~/components/Pagination.vue'
import { unique } from '~/modules/filters' import { unique } from '~/init/filters'
export default { export default {
components: { components: {
......
...@@ -144,7 +144,7 @@ ...@@ -144,7 +144,7 @@
<script> <script>
import Modal from '~/components/semantic/Modal.vue' import Modal from '~/components/semantic/Modal.vue'
import ChannelUploadForm from '~/components/channels/UploadForm.vue' import ChannelUploadForm from '~/components/channels/UploadForm.vue'
import { humanSize } from '~/modules/filters' import { humanSize } from '~/init/filters'
export default { export default {
components: { components: {
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
</span> </span>
</template> </template>
<script> <script>
import { secondsToObject } from '~/modules/filters' import { secondsToObject } from '~/init/filters'
export default { export default {
props: { seconds: { type: Number, default: null } }, props: { seconds: { type: Number, default: null } },
......
...@@ -229,7 +229,7 @@ import TrackPlaylistIcon from '~/components/playlists/TrackPlaylistIcon.vue' ...@@ -229,7 +229,7 @@ import TrackPlaylistIcon from '~/components/playlists/TrackPlaylistIcon.vue'
import Modal from '~/components/semantic/Modal.vue' import Modal from '~/components/semantic/Modal.vue'
import EmbedWizard from '~/components/audio/EmbedWizard.vue' import EmbedWizard from '~/components/audio/EmbedWizard.vue'
import ReportMixin from '~/components/mixins/Report.vue' import ReportMixin from '~/components/mixins/Report.vue'
import { momentFormat } from '~/modules/filters' import { momentFormat } from '~/init/filters'
import updateQueryString from '~/composables/updateQueryString' import updateQueryString from '~/composables/updateQueryString'
const FETCH_URL = 'tracks/' const FETCH_URL = 'tracks/'
......
...@@ -38,7 +38,7 @@ app.use(VueCompositionAPI) ...@@ -38,7 +38,7 @@ app.use(VueCompositionAPI)
app.use(VueLazyload) app.use(VueLazyload)
const modules: Promise<unknown>[] = [] 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?.({ modules.push(module.install?.({
app, app,
router, router,
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
</template> </template>
<script> <script>
import { humanSize } from '~/modules/filters' import { humanSize } from '~/init/filters'
export default { export default {
computed: { 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