diff --git a/assets/img/example.jpg b/assets/img/example.jpg index b8320c0..a904653 100644 Binary files a/assets/img/example.jpg and b/assets/img/example.jpg differ diff --git a/index.html b/index.html index e83c0ba..f159502 100644 --- a/index.html +++ b/index.html @@ -42,25 +42,28 @@ Importer un fichier

+ +

-
Dans quelle colonne se trouve l'identifiant pivot (isbn, issn, ppn) ?
+
Dans quelle colonne se trouve l'identifiant pivot (isbn, issn, ppn) ?
+
-
-
Quelles colonnes voulez-vous garder en sortie ?
+
Quelles colonnes voulez-vous garder en sortie ?
+
- +
@@ -69,6 +72,7 @@
+

diff --git a/package.json b/package.json index c67a326..1f41bc2 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "build": "electron-packager . --overwrite --platform=win32 --arch=ia32 --icon=assets/icons/win/icon.ico --prune=true --out=dist --version-string.ProductName=\"SudocToolkit\"" }, "license": "MIT", - "repository": "github:gegedenice/SudocToolkit", + "repository": "github:abes-esr/SudocToolkit", "devDependencies": { "asar": "^2.0.1", "electron": "^5.0.6", diff --git a/renderer-process/renderer.js b/renderer-process/renderer.js index cfa46e7..a76a9af 100644 --- a/renderer-process/renderer.js +++ b/renderer-process/renderer.js @@ -23,7 +23,7 @@ var columnResultName; $('#options').change(function(){ //first init variables - $("#checkboxIdResult").empty();$("#checkboxColumnsResult").empty();$('#columnResultName').val('');$('#chartContainer').empty();$('#fileResult').empty();$('#resultFolderPath').empty(); + $("#selectedFile").empty();$("#selectedFolderPath").empty();$("#checkboxIdResult").empty();$("#checkboxColumnsResult").empty();$('#columnResultName').val('');$('#chartContainer').empty();$('#fileResult').empty();$('#resultFolderPath').empty(); selectedOption = $(this).val(); }) @@ -35,13 +35,14 @@ $( "#openSourceFile" ).click(function() { ]},function (fileNames) { if (fileNames === undefined) return; fileName = fileNames[0]; + $("#selectedFile").append(fileName) fs.createReadStream(fileName) .pipe(parse({delimiter: ';',trim: true,from_line:1,to_line:1})) .on('error', function (error) { dialog.showMessageBox(null,{message: error}); }) .on('data', function(csvrow) { - return csvrow.map(function(key){ + return csvrow.map(function(key){ $("#checkboxIdResult").append("
") $("#checkboxColumnsResult").append("
") }) @@ -66,6 +67,7 @@ $("#chooseResultFolderPath").click(function(){ return; }else{ $("#resultFolderPath").val(path.join(folderPaths[0],fileResult)); + $("#selectedFolderPath").append(path.join(folderPaths[0],fileResult)) console.log(path.join(folderPaths[0],fileResult)) } })