Browse Source

refactor: Minor tweaks following Vite replacement of webpack

Owen Diffey 1 year ago
parent
commit
e465195e65

+ 2 - 1
frontend/.dockerignore

@@ -1,3 +1,4 @@
 node_modules/
 Dockerfile
-dist/config/default.json
+config/default.json
+build/

File diff suppressed because it is too large
+ 0 - 0
frontend/dist/vendor/lofig.1.3.4.min.js


+ 1 - 1
frontend/package.json

@@ -14,7 +14,7 @@
   "scripts": {
     "lint": "npx eslint src --ext .js,.vue",
     "dev": "npx vite",
-    "prod": "npx vite build"
+    "prod": "npx vite build --emptyOutDir"
   },
   "devDependencies": {
     "@vue/compiler-sfc": "^3.2.36",

+ 1 - 1
frontend/src/components/PlaylistItem.vue

@@ -37,7 +37,7 @@
 </template>
 
 <script>
-import utils from "../../js/utils";
+import utils from "@/utils";
 
 export default {
 	props: {

+ 1 - 1
frontend/src/components/SongItem.vue

@@ -171,7 +171,7 @@ import { mapActions, mapState } from "vuex";
 import { formatDistance, parseISO } from "date-fns";
 
 import AddToPlaylistDropdown from "./AddToPlaylistDropdown.vue";
-import utils from "../../js/utils";
+import utils from "@/utils";
 
 export default {
 	components: { AddToPlaylistDropdown },

+ 1 - 1
frontend/src/components/modals/EditPlaylist/index.vue

@@ -259,7 +259,7 @@ import Settings from "./Tabs/Settings.vue";
 import AddSongs from "./Tabs/AddSongs.vue";
 import ImportPlaylists from "./Tabs/ImportPlaylists.vue";
 
-import utils from "../../../../js/utils";
+import utils from "@/utils";
 
 export default {
 	components: {

+ 1 - 1
frontend/src/pages/Admin/Playlists.vue

@@ -90,7 +90,7 @@ import { mapActions } from "vuex";
 import AdvancedTable from "@/components/AdvancedTable.vue";
 import RunJobDropdown from "@/components/RunJobDropdown.vue";
 
-import utils from "../../../js/utils";
+import utils from "@/utils";
 
 export default {
 	components: {

+ 1 - 1
frontend/src/pages/Station/index.vue

@@ -709,7 +709,7 @@ import AddToPlaylistDropdown from "@/components/AddToPlaylistDropdown.vue";
 import SongItem from "@/components/SongItem.vue";
 import Z404 from "../404.vue";
 
-import utils from "../../../js/utils";
+import utils from "@/utils";
 
 import StationSidebar from "./Sidebar/index.vue";
 

+ 0 - 0
frontend/js/utils.js → frontend/src/utils.js


Some files were not shown because too many files changed in this diff