Skip to content

Commit e96bed1

Browse files
Fine tuning
1 parent 79a835c commit e96bed1

20 files changed

+68
-12
lines changed

FileReader.js

100644100755
+9-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
11
const fs = require('fs');
2+
3+
/**
4+
* FileReader Class - Reads Files
5+
* Author: Karim Saad
6+
* Month/Year: 08/2019
7+
*/
28
class FileReader {
39
ReadFile(filename) {
410
try {
5-
const data = fs.readFileSync(filename, 'utf8')
6-
return data;
11+
const data = fs.readFileSync(filename, 'utf8')
12+
return data;
713
} catch (err) {
8-
console.error(err)
14+
console.error(err)
915
}
1016
return null;
1117
}

INEZ.code-workspace

100644100755
File mode changed.

JsonParser.js

100644100755
+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ const FileReader = require('./FileReader.js');
44
/*
55
JsonReader Class (reads for example classificationsamples.json)
66
splits between "," (file) and ":" (per line)
7+
Author: Karim Saad
8+
Month/Year: 08/2019
79
*/
810
class JsonReader {
911

README.md

100644100755
File mode changed.

app.css

100644100755
+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* App.css Stylsheets for INEZ
3+
* Author: Karim saad
4+
* Month/Year: 08/2019
5+
*/
6+
17
.list-group-item{
28
padding: 1px;
39
margin-left: 5px;

cache.html

100644100755
File mode changed.

cache2.html

100644100755
File mode changed.

classificationsamples.json

100644100755
File mode changed.

eddi.jpg

100644100755
File mode changed.

hashcode.js

100644100755
+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Hashcode Function (used in Product.js)
3+
* @param {*} str
4+
*/
15
const hashcode = function(str) {
26
var hash = 0, i, chr;
37
if (str.length === 0) return hash;

index.html

100644100755
File mode changed.

main.js

100644100755
+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* INEZ Intelligente Einkaufsliste als Chatbot Version
3+
* Author: Karim Saad
4+
* Month/Year: 08/2019
5+
*/
6+
17
// Modules to control application life and create native browser window
28
const electron = require('electron');
39
const {app, BrowserWindow} = require('electron');

package-lock.json

100644100755
+24-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

100644100755
+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
},
99
"author": "Karim Saad",
1010
"devDependencies": {
11-
"electron": "^6.0.1"
11+
"electron": "^6.0.7"
1212
},
1313
"dependencies": {
1414
"bootstrap": "^4.3.1",

preload.js

100644100755
File mode changed.

product.js

100644100755
+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Product Class
3+
* Author: Karim Saad
4+
* Month/Year: 08/2019
5+
*/
16
const PDefaults = {
27
name: null,
38
baseprice: null,

renderer.js

100644100755
+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
/**
2+
* INEZ Intelligente Einkaufsliste Chatbot Version
3+
* Author: Karim Saad
4+
* Month/Year: 08/2019
5+
*/
6+
17
// This file is required by the index.html file and will
28
// be executed in the renderer process for that window.
39
// All of the Node.js APIs are available in this process.

word2number.js

100644100755
+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Word2Number
3+
* Author: Karim Saad
4+
* Month/Year: 08/2019
5+
*/
16
const replaceString = require('replace-string');
27

38
const word2Number = function (inp) {

yarn-error.log

100644100755
File mode changed.

yarn.lock

100644100755
File mode changed.

0 commit comments

Comments
 (0)