Replaced Windows temp filepaths with linux filepaths

This commit is contained in:
Rekai Musuka 2019-04-01 12:32:23 -05:00
parent 2242eb3079
commit 86eb20d584
5 changed files with 13 additions and 6 deletions

View File

@ -4,5 +4,11 @@
"path": "../",
"name": "Source Code"
}
],
"extensions": {
"recommendations": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
]
}
}

View File

@ -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();

View File

@ -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 });

View File

@ -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);

View File

@ -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
}