Replaced Windows temp filepaths with linux filepaths
This commit is contained in:
		
							
								
								
									
										8
									
								
								.vscode/melodii.code-workspace
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								.vscode/melodii.code-workspace
									
									
									
									
										vendored
									
									
								
							@@ -4,5 +4,11 @@
 | 
			
		||||
			"path": "../",
 | 
			
		||||
			"name": "Source Code"
 | 
			
		||||
		}
 | 
			
		||||
	]
 | 
			
		||||
	],
 | 
			
		||||
	"extensions": {
 | 
			
		||||
		"recommendations": [
 | 
			
		||||
			"esbenp.prettier-vscode",
 | 
			
		||||
			"dbaeumer.vscode-eslint",
 | 
			
		||||
		]
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
@@ -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();
 | 
			
		||||
 
 | 
			
		||||
@@ -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 });
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user