Skip to content

Commit 3a4c1de

Browse files
Bunk Meter fix and more
1 parent 2c7fc4a commit 3a4c1de

9 files changed

+175
-64
lines changed

VITask Desktop/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.vscode/
22
node_modules/
33
dashboard/userdata/
4+
release-builds/

VITask Desktop/build.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ var electronInstaller = require('electron-winstaller');
33
// In this case, we can use relative paths
44
var settings = {
55
// Specify the folder where the built app is located
6-
appDirectory: './release-builds/VITask-win32-ia32',
6+
appDirectory: './release-builds/VITask-win32-x64',
77
// Specify the existing folder where
88
outputDirectory: './installer',
99
// The name of the Author of the app (the name of your company)
1010
authors: 'VITask',
1111
// The name of the executable of your built
12-
exe: './VITask.exe'
12+
exe: './VITask.exe',
13+
// Setup loading gif
14+
loadingGif: './preview.gif'
1315
};
1416

1517
resultPromise = electronInstaller.createWindowsInstaller(settings);

VITask Desktop/dashboard.html

+143-31
Large diffs are not rendered by default.

VITask Desktop/electron-packager.txt

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
electron-packager "C:\Users\aprat\Desktop\Github\VITask\VITask Desktop" --platform=win32 --arch=x64 --icon="./icons/win/icon.ico" --overwrite VITask

VITask Desktop/index.html

+9-13
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ <h4 class="card-title"><img src="assets/img/icon.png" style="height: 100%; width
212212
console.log('error:', err);
213213
} else {
214214
let result = body;
215-
if(result.Error){
215+
if(result.error){
216216
$("#loading").fadeOut();
217217
$("#content").fadeIn();
218218
alert("Wrong Password.");
@@ -224,23 +224,19 @@ <h4 class="card-title"><img src="assets/img/icon.png" style="height: 100%; width
224224

225225
data.insert(result, function(err, doc) {
226226
console.log('Inserted', doc.Name);
227-
});
228-
229-
data.findOne({ profile: 'user-profile' }, function(err, doc) {
230-
231-
232227
timetable(doc.APItoken, function() {
233-
acadhistory(doc.APItoken, function(){
234-
marks(doc.APItoken, function(){
235-
attendance(doc.APItoken, function(){
236-
ipcRenderer.send('login:new','loggedin');
237-
done(doc.APItoken);
228+
acadhistory(doc.APItoken, function(){
229+
marks(doc.APItoken, function(){
230+
attendance(doc.APItoken, function(){
231+
ipcRenderer.send('login:new','loggedin');
232+
done(doc.APItoken);
233+
});
238234
});
239235
});
240236
});
241-
});
242-
243237
});
238+
239+
244240
}
245241
}
246242
});

VITask Desktop/main.js

-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,6 @@ if(process.platform=="darwin"){
254254
}
255255

256256

257-
258257
function handleSquirrelEvent(application) {
259258
if (process.argv.length === 1) {
260259
return false;

VITask Desktop/package-lock.json

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

VITask Desktop/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "VITask",
33
"productName": "VITask",
4-
"version": "1.0.0",
4+
"version": "1.0.1",
55
"description": "The most powerful VTOP API server!",
66
"main": "main.js",
77
"scripts": {
88
"start": "electron ."
99
},
10-
"author": "Apratim Shukla",
10+
"author": "VITask Team",
1111
"license": "MIT",
1212
"dependencies": {
1313
"electron": "^7.1.10",

VITask Desktop/preview.gif

995 KB
Loading

0 commit comments

Comments
 (0)