Skip to content

Commit

Permalink
Bunk Meter fix and more
Browse files Browse the repository at this point in the history
  • Loading branch information
apratimshukla6 committed Jun 11, 2020
1 parent 2c7fc4a commit 3a4c1de
Show file tree
Hide file tree
Showing 9 changed files with 175 additions and 64 deletions.
1 change: 1 addition & 0 deletions VITask Desktop/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.vscode/
node_modules/
dashboard/userdata/
release-builds/
6 changes: 4 additions & 2 deletions VITask Desktop/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ var electronInstaller = require('electron-winstaller');
// In this case, we can use relative paths
var settings = {
// Specify the folder where the built app is located
appDirectory: './release-builds/VITask-win32-ia32',
appDirectory: './release-builds/VITask-win32-x64',
// Specify the existing folder where
outputDirectory: './installer',
// The name of the Author of the app (the name of your company)
authors: 'VITask',
// The name of the executable of your built
exe: './VITask.exe'
exe: './VITask.exe',
// Setup loading gif
loadingGif: './preview.gif'
};

resultPromise = electronInstaller.createWindowsInstaller(settings);
Expand Down
174 changes: 143 additions & 31 deletions VITask Desktop/dashboard.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions VITask Desktop/electron-packager.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
electron-packager "C:\Users\aprat\Desktop\Github\VITask\VITask Desktop" --platform=win32 --arch=x64 --icon="./icons/win/icon.ico" --overwrite VITask
22 changes: 9 additions & 13 deletions VITask Desktop/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ <h4 class="card-title"><img src="assets/img/icon.png" style="height: 100%; width
console.log('error:', err);
} else {
let result = body;
if(result.Error){
if(result.error){
$("#loading").fadeOut();
$("#content").fadeIn();
alert("Wrong Password.");
Expand All @@ -224,23 +224,19 @@ <h4 class="card-title"><img src="assets/img/icon.png" style="height: 100%; width

data.insert(result, function(err, doc) {
console.log('Inserted', doc.Name);
});

data.findOne({ profile: 'user-profile' }, function(err, doc) {


timetable(doc.APItoken, function() {
acadhistory(doc.APItoken, function(){
marks(doc.APItoken, function(){
attendance(doc.APItoken, function(){
ipcRenderer.send('login:new','loggedin');
done(doc.APItoken);
acadhistory(doc.APItoken, function(){
marks(doc.APItoken, function(){
attendance(doc.APItoken, function(){
ipcRenderer.send('login:new','loggedin');
done(doc.APItoken);
});
});
});
});
});

});


}
}
});
Expand Down
1 change: 0 additions & 1 deletion VITask Desktop/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@ if(process.platform=="darwin"){
}



function handleSquirrelEvent(application) {
if (process.argv.length === 1) {
return false;
Expand Down
30 changes: 15 additions & 15 deletions VITask Desktop/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions VITask Desktop/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "VITask",
"productName": "VITask",
"version": "1.0.0",
"version": "1.0.1",
"description": "The most powerful VTOP API server!",
"main": "main.js",
"scripts": {
"start": "electron ."
},
"author": "Apratim Shukla",
"author": "VITask Team",
"license": "MIT",
"dependencies": {
"electron": "^7.1.10",
Expand Down
Binary file added VITask Desktop/preview.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3a4c1de

Please sign in to comment.