Verified Commit e9c4bfe9 authored by Georg Krause's avatar Georg Krause
Browse files

Start migration to vite

parent 593cff43
......@@ -179,11 +179,11 @@ import $ from 'jquery'
import logger from '@/logging'
import OrderingMixin from '@/components/mixins/Ordering'
import PaginationMixin from '@/components/mixins/Pagination'
import TranslationsMixin from '@/components/mixins/Translations'
import RadioCard from '@/components/radios/Card'
import Pagination from '@/components/Pagination'
import OrderingMixin from '@/components/mixins/Ordering.vue'
import PaginationMixin from '@/components/mixins/Pagination.vue'
import TranslationsMixin from '@/components/mixins/Translations.vue'
import RadioCard from '@/components/radios/Card.vue'
import Pagination from '@/components/Pagination.vue'
const FETCH_URL = 'radios/radios/'
......
......@@ -187,9 +187,9 @@
import axios from 'axios'
import $ from 'jquery'
import _ from '@/lodash'
import BuilderFilter from './Filter'
import TrackTable from '@/components/audio/track/Table'
import RadioButton from '@/components/radios/Button'
import BuilderFilter from './Filter.vue'
import TrackTable from '@/components/audio/track/Table.vue'
import RadioButton from '@/components/radios/Button.vue'
export default {
components: {
......
......@@ -109,8 +109,8 @@ import axios from 'axios'
import $ from 'jquery'
import _ from '@/lodash'
import Modal from '@/components/semantic/Modal'
import TrackTable from '@/components/audio/track/Table'
import Modal from '@/components/semantic/Modal.vue'
import TrackTable from '@/components/audio/track/Table.vue'
export default {
components: {
......
......@@ -93,7 +93,7 @@ import axios from 'axios'
import { mapState } from 'vuex'
import logger from '@/logging'
import Modal from '@/components/semantic/Modal'
import Modal from '@/components/semantic/Modal.vue'
export default {
components: {
......
......@@ -165,8 +165,9 @@ function urlDomain (data) {
export default {
components: {
ReportCategoryDropdown: () => import(/* webpackChunkName: "reports" */ '@/components/moderation/ReportCategoryDropdown'),
Modal: () => import(/* webpackChunkName: "modal" */ '@/components/semantic/Modal')
ReportCategoryDropdown: () =>
import('@/components/moderation/ReportCategoryDropdown.vue'),
Modal: () => import('@/components/semantic/Modal.vue')
},
data () {
return {
......
......@@ -200,8 +200,8 @@ import axios from 'axios'
import { mapState } from 'vuex'
import logger from '@/logging'
import Modal from '@/components/semantic/Modal'
import PlaylistForm from '@/components/playlists/Form'
import Modal from '@/components/semantic/Modal.vue'
import PlaylistForm from '@/components/playlists/Form.vue'
export default {
components: {
......
......@@ -61,7 +61,7 @@
<script>
import _ from '@/lodash'
import axios from 'axios'
import PlaylistCard from '@/components/playlists/Card'
import PlaylistCard from '@/components/playlists/Card.vue'
export default {
components: {
......
......@@ -5,7 +5,7 @@ import jQuery from 'jquery'
import Vue from 'vue'
import moment from 'moment'
import App from './App'
import App from './App.vue'
import router from './router'
import axios from 'axios'
import VueLazyload from 'vue-lazyload'
......@@ -20,8 +20,8 @@ import { parseAPIErrors } from '@/utils'
import globals from '@/components/globals' // eslint-disable-line
import './registerServiceWorker'
logger.default.info('Loading environment:', process.env.NODE_ENV)
logger.default.debug('Environment variables:', process.env)
logger.default.info('Loading environment:', import.meta.env.NODE_ENV)
logger.default.debug('Environment variables:', import.meta.env)
sync(store, router)
......@@ -59,7 +59,6 @@ Vue.use(GetTextPlugin, {
})
Vue.use(VueLazyload)
Vue.config.productionTip = false
Vue.directive('title', function (el, binding) {
store.commit('ui/pageTitle', binding.value)
})
......
This diff is collapsed.
......@@ -15,59 +15,59 @@
// under a class namespace
/* Global */
@import "~fomantic-ui-css/tweaked/reset.css";
@import "~fomantic-ui-css/tweaked/site.css";
@import "fomantic-ui-css/tweaked/reset.css";
@import "fomantic-ui-css/tweaked/site.css";
/* Elements */
@import "~fomantic-ui-css/tweaked/button.css";
@import "~fomantic-ui-css/tweaked/container.css";
@import "~fomantic-ui-css/tweaked/divider.css";
// @import "~fomantic-ui-css/tweaked/flag.css";
@import "~fomantic-ui-css/tweaked/header.css";
@import "~fomantic-ui-css/tweaked/icon.css";
@import "~fomantic-ui-css/tweaked/image.css";
@import "~fomantic-ui-css/tweaked/input.css";
@import "~fomantic-ui-css/tweaked/label.css";
@import "~fomantic-ui-css/tweaked/list.css";
@import "~fomantic-ui-css/tweaked/loader.css";
@import "~fomantic-ui-css/tweaked/placeholder.css";
// @import "~fomantic-ui-css/tweaked/rail.css";
// @import "~fomantic-ui-css/tweaked/reveal.css";
@import "~fomantic-ui-css/tweaked/segment.css";
@import "~fomantic-ui-css/tweaked/step.css";
@import "fomantic-ui-css/tweaked/button.css";
@import "fomantic-ui-css/tweaked/container.css";
@import "fomantic-ui-css/tweaked/divider.css";
// @import "fomantic-ui-css/tweaked/flag.css";
@import "fomantic-ui-css/tweaked/header.css";
@import "fomantic-ui-css/tweaked/icon.css";
@import "fomantic-ui-css/tweaked/image.css";
@import "fomantic-ui-css/tweaked/input.css";
@import "fomantic-ui-css/tweaked/label.css";
@import "fomantic-ui-css/tweaked/list.css";
@import "fomantic-ui-css/tweaked/loader.css";
@import "fomantic-ui-css/tweaked/placeholder.css";
// @import "fomantic-ui-css/tweaked/rail.css";
// @import "fomantic-ui-css/tweaked/reveal.css";
@import "fomantic-ui-css/tweaked/segment.css";
@import "fomantic-ui-css/tweaked/step.css";
/* Collections */
// @import "~fomantic-ui-css/tweaked/breadcrumb.css";
@import "~fomantic-ui-css/tweaked/form.css";
@import "~fomantic-ui-css/tweaked/grid.css";
@import "~fomantic-ui-css/tweaked/menu.css";
@import "~fomantic-ui-css/tweaked/message.css";
@import "~fomantic-ui-css/tweaked/table.css";
// @import "fomantic-ui-css/tweaked/breadcrumb.css";
@import "fomantic-ui-css/tweaked/form.css";
@import "fomantic-ui-css/tweaked/grid.css";
@import "fomantic-ui-css/tweaked/menu.css";
@import "fomantic-ui-css/tweaked/message.css";
@import "fomantic-ui-css/tweaked/table.css";
/* Views */
// @import "~fomantic-ui-css/tweaked/ad.css";
@import "~fomantic-ui-css/tweaked/card.css";
// @import "~fomantic-ui-css/tweaked/comment.css";
@import "~fomantic-ui-css/tweaked/feed.css";
@import "~fomantic-ui-css/tweaked/item.css";
@import "~fomantic-ui-css/tweaked/statistic.css";
// @import "fomantic-ui-css/tweaked/ad.css";
@import "fomantic-ui-css/tweaked/card.css";
// @import "fomantic-ui-css/tweaked/comment.css";
@import "fomantic-ui-css/tweaked/feed.css";
@import "fomantic-ui-css/tweaked/item.css";
@import "fomantic-ui-css/tweaked/statistic.css";
/* Modules */
// @import "~fomantic-ui-css/tweaked/accordion.css";
@import "~fomantic-ui-css/tweaked/checkbox.css";
@import "~fomantic-ui-css/tweaked/dimmer.css";
@import "~fomantic-ui-css/tweaked/dropdown.css";
// @import "~fomantic-ui-css/tweaked/embed.css";
@import "~fomantic-ui-css/tweaked/modal.css";
// @import "~fomantic-ui-css/tweaked/nag.css";
@import "~fomantic-ui-css/tweaked/popup.css";
@import "~fomantic-ui-css/tweaked/progress.css";
// @import "~fomantic-ui-css/tweaked/rating.css";
@import "~fomantic-ui-css/tweaked/search.css";
// @import "~fomantic-ui-css/tweaked/shape.css";
@import "~fomantic-ui-css/tweaked/sidebar.css";
@import "~fomantic-ui-css/tweaked/sticky.css";
@import "~fomantic-ui-css/tweaked/tab.css";
@import "~fomantic-ui-css/tweaked/text.css";
@import "~fomantic-ui-css/tweaked/toast.css";
@import "~fomantic-ui-css/tweaked/transition.css";
// @import "fomantic-ui-css/tweaked/accordion.css";
@import "fomantic-ui-css/tweaked/checkbox.css";
@import "fomantic-ui-css/tweaked/dimmer.css";
@import "fomantic-ui-css/tweaked/dropdown.css";
// @import "fomantic-ui-css/tweaked/embed.css";
@import "fomantic-ui-css/tweaked/modal.css";
// @import "fomantic-ui-css/tweaked/nag.css";
@import "fomantic-ui-css/tweaked/popup.css";
@import "fomantic-ui-css/tweaked/progress.css";
// @import "fomantic-ui-css/tweaked/rating.css";
@import "fomantic-ui-css/tweaked/search.css";
// @import "fomantic-ui-css/tweaked/shape.css";
@import "fomantic-ui-css/tweaked/sidebar.css";
@import "fomantic-ui-css/tweaked/sticky.css";
@import "fomantic-ui-css/tweaked/tab.css";
@import "fomantic-ui-css/tweaked/text.css";
@import "fomantic-ui-css/tweaked/toast.css";
@import "fomantic-ui-css/tweaked/transition.css";
......@@ -17,7 +17,7 @@
</template>
<script>
import LoginForm from '@/components/auth/LoginForm'
import LoginForm from '@/components/auth/LoginForm.vue'
export default {
components: {
......
......@@ -5,7 +5,7 @@
</template>
<script>
import LibraryFilesTable from './FilesTable'
import LibraryFilesTable from './FilesTable.vue'
export default {
components: {
......
......@@ -66,9 +66,9 @@
<script>
import axios from 'axios'
import LibraryForm from './Form'
import LibraryCard from './Card'
import Quota from './Quota'
import LibraryForm from './Form.vue'
import LibraryCard from './Card.vue'
import Quota from './Quota.vue'
export default {
components: {
......
......@@ -66,8 +66,8 @@
<script>
import axios from 'axios'
import ScanForm from './ScanForm'
import LibraryCard from './Card'
import ScanForm from './ScanForm.vue'
import LibraryCard from './Card.vue'
export default {
components: {
......
// vite.config.js
import { defineConfig } from 'vite'
import { createVuePlugin as vue } from "vite-plugin-vue2";
const path = require("path");
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
})
This diff is collapsed.
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