diff --git a/.vscode/melodii.code-workspace b/.vscode/melodii.code-workspace index d197098..8c1b1a9 100644 --- a/.vscode/melodii.code-workspace +++ b/.vscode/melodii.code-workspace @@ -4,5 +4,11 @@ "path": "../", "name": "Source Code" } - ] + ], + "extensions": { + "recommendations": [ + "esbenp.prettier-vscode", + "dbaeumer.vscode-eslint", + ] + } } \ No newline at end of file diff --git a/src/App.js b/src/App.js index 8ce5e14..c9360aa 100644 --- a/src/App.js +++ b/src/App.js @@ -19,7 +19,7 @@ var mp = new MusicPlayer(); // const playlist = new Playlist("Test", "\\\\PAODA-SERVER\\Weeb_Home\\Music") // archive.add(null, playlist); -const filepath = new Filepath("C:\\Users\\Paoda\\Downloads\\Music"); +const filepath = new Filepath("/home/paoda/Downloads/Music"); (async () => { let list = await filepath.getValidFiles(); diff --git a/src/components/Body.js b/src/components/Body.js index 93958a5..6179b0c 100644 --- a/src/components/Body.js +++ b/src/components/Body.js @@ -71,7 +71,7 @@ export default class Body extends React.Component { }; if (!Settings.has("tableJSON")) { - let tableJSON = await generate("C:\\Users\\Paoda\\Downloads\\Music", template); + let tableJSON = await generate("/home/paoda/Downloads/Music", template); console.log("Initialize: ", tableJSON) this.setState({ table: tableJSON }); diff --git a/src/components/Modal/SettingsManager.js b/src/components/Modal/SettingsManager.js index ee65c37..80c8535 100644 --- a/src/components/Modal/SettingsManager.js +++ b/src/components/Modal/SettingsManager.js @@ -61,7 +61,7 @@ export default class SettingsManager extends Modal { if (Settings.has("tableJSON")) Settings.set("tableJSON", template); else console.info("There was no Table Saved to Delete!") - const tableJSON = await generate("C:\\Users\\Paoda\\Downloads\\Music", template); + const tableJSON = await generate("/home/paoda/Downloads/Music", template); Emitter.emit("newTable", tableJSON); diff --git a/webpack.config.js b/webpack.config.js index 9725540..7c0cc11 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -2,13 +2,14 @@ require('dotenv').config(); const path = require('path'); const webpack = require('webpack'); +const absolutePath = path.resolve(__dirname, 'build'); module.exports = { mode: process.env.NODE_ENV, entry: ['@babel/polyfill', './src/renderer.js'], output: { - path: path.resolve(__dirname, 'build'), + path: absolutePath, filename: 'bundle.js' }, module: { @@ -38,7 +39,7 @@ module.exports = { devtool: 'inline-source-map', target: 'electron-renderer', devServer: { - contentBase: path.join(__dirname, 'build'), + contentBase: absolutePath, compress: true, port: process.env.PORT }