Skip to content

Commit

Permalink
Beta Release Update
Browse files Browse the repository at this point in the history
Added and modified tons of things for the beta release.
  • Loading branch information
apratimshukla6 committed May 8, 2020
1 parent be51ac2 commit 04342b9
Show file tree
Hide file tree
Showing 60 changed files with 1,056 additions and 273 deletions.
Binary file modified VITask Desktop/assets/img/apple-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed VITask Desktop/assets/img/bg.jpg
Binary file not shown.
Binary file removed VITask Desktop/assets/img/bg3.jpg
Binary file not shown.
Binary file removed VITask Desktop/assets/img/city-profile.jpg
Binary file not shown.
Binary file removed VITask Desktop/assets/img/city.jpg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed VITask Desktop/assets/img/examples/olu-eletu.jpg
Binary file not shown.
Binary file removed VITask Desktop/assets/img/examples/studio-1.jpg
Binary file not shown.
Binary file removed VITask Desktop/assets/img/examples/studio-2.jpg
Binary file not shown.
Binary file removed VITask Desktop/assets/img/examples/studio-3.jpg
Binary file not shown.
Binary file removed VITask Desktop/assets/img/examples/studio-4.jpg
Binary file not shown.
Binary file removed VITask Desktop/assets/img/examples/studio-5.jpg
Binary file not shown.
Binary file removed VITask Desktop/assets/img/faces/avatar.jpg
Binary file not shown.
Binary file removed VITask Desktop/assets/img/faces/camp.jpg
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed VITask Desktop/assets/img/faces/christian.jpg
Binary file not shown.
Binary file removed VITask Desktop/assets/img/faces/kendall.jpg
Binary file not shown.
Binary file removed VITask Desktop/assets/img/faces/marc.jpg
Binary file not shown.
Binary file removed VITask Desktop/assets/img/landing.jpg
Diff not rendered.
Binary file removed VITask Desktop/assets/img/profile.jpg
Diff not rendered.
Binary file removed VITask Desktop/assets/img/profile_city.jpg
Diff not rendered.
Binary file removed VITask Desktop/assets/img/responsive-nav.gif
Diff not rendered.
21 changes: 21 additions & 0 deletions VITask Desktop/build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
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',
// 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'
};

resultPromise = electronInstaller.createWindowsInstaller(settings);

resultPromise.then(() => {
console.log("The installers of your application were succesfully created !");
}, (e) => {
console.log(`Well, sometimes you are not so lucky: ${e.message}`)
});
160 changes: 0 additions & 160 deletions VITask Desktop/css/style.css

This file was deleted.

141 changes: 73 additions & 68 deletions VITask Desktop/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,6 @@ <h4 class="card-title">My Profile</h4>
</div>
</div>
<button type="submit" class="btn btn-danger pull-right">Settings</button>
<div class="clearfix"></div>
</form>
</div>
Expand Down Expand Up @@ -1275,7 +1274,7 @@ <h4 class="card-title ">${course}-${type}</h4>
$("#timetablenav").attr('class', 'nav-item');
$("#resyncnav").attr('class', 'nav-item');
$("#logoutnav").attr('class', 'nav-item');
$("#topheading").html("Moodle Login");
$("#topheading").html("Moodle Assignments");

data.findOne({ moodle: 'user-moodle' }, function(err, doc) {
let assignment = doc.Assignments;
Expand All @@ -1287,12 +1286,18 @@ <h4 class="card-title ">${course}-${type}</h4>

let coursename = Object.values(assignment[i])[0];
let deadline = Object.values(assignment[i])[2];

let splitter = coursename.split("(");
splitter[1] = splitter[1].substring(0, splitter[1].length - 1);
let sendcourse = splitter.join(" ");
sendcourse = sendcourse.split(" ");
let sendtime = deadline.split(" ");

content += `<tr id="assign${assignment_count}"> <td>${coursename}</td>
<td>${deadline}</td>
<td class="td-actions text-right">
<button onclick="hideme(${assignment_count})" type="button" rel="tooltip" title="Remove" class="btn1 btn1-round bg-danger text-white">
<span>Remove</span>
<a onclick="hideme(${assignment_count})" rel="tooltip" title="Remove" class="text-danger" style="cursor: pointer;">
<i class="material-icons">clear</i>
</button>
</td>
</tr>`
Expand All @@ -1301,60 +1306,60 @@ <h4 class="card-title ">${course}-${type}</h4>
<td>${coursename}</td>
<td>${deadline}</td>
<td class="td-actions text-right">
<button type="button" onclick="showme(${assignment_count})" rel="tooltip" title="Remove" class="btn1 btn1-round bg-danger text-white">
<span>Move Back</span>
</button>
<a onclick="showme(${assignment_count})" rel="tooltip" title="Restore" class="text-success" style="cursor: pointer;">
<i class="material-icons">done</i>
</a>
</td>
</tr>`

assignment_count++;
}

finalcontent += `<div class="col-md-12">
<div class="card">
<div class="card-header card-header-tabs card-header-primary">
<div class="nav-tabs-navigation">
<div class="nav-tabs-wrapper">
<span class="nav-tabs-title"></span>
<ul class="nav nav-tabs" data-tabs="tabs">
<li class="nav-item">
<a class="nav-link active" href="#profile" data-toggle="tab">
<i class="material-icons">bug_report</i> Current Assignments
<div class="ripple-container"></div>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#messages" data-toggle="tab">
<i class="material-icons">code</i> Removed Assignments
<div class="ripple-container"></div>
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="card-body">
<div class="tab-content">
<div class="tab-pane active" id="profile">
<table class="table">
<tbody>
<th>Name</th>
<th>Deadline</th>
<th></th>`+content+`</tbody>
</table>
</div>
<div class="tab-pane" id="messages">
<table class="table">
<tbody>
<th>Name</th>
<th>Deadline</th>
<th></th>`+content2+` </tbody>
</table>
</div>
</div>
</div>
</div>
</div>`;
<div class="card">
<div class="card-header card-header-tabs card-header-danger">
<div class="nav-tabs-navigation">
<div class="nav-tabs-wrapper">
<span class="nav-tabs-title"></span>
<ul class="nav nav-tabs" data-tabs="tabs">
<li class="nav-item">
<a class="nav-link active" href="#profile" data-toggle="tab">
<i class="material-icons">playlist_add_check</i> Current Assignments
<div class="ripple-container"></div>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#messages" data-toggle="tab">
<i class="material-icons">not_interested</i> Removed Assignments
<div class="ripple-container"></div>
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="card-body">
<div class="tab-content">
<div class="tab-pane active" id="profile">
<table class="table">
<tbody>
<th>Name</th>
<th>Deadline</th>
<th></th>`+content+`</tbody>
</table>
</div>
<div class="tab-pane" id="messages">
<table class="table">
<tbody>
<th>Name</th>
<th>Deadline</th>
<th></th>`+content2+` </tbody>
</table>
</div>
</div>
</div>
</div>
</div>`;

$("#canvas").html(finalcontent);

Expand Down Expand Up @@ -1472,22 +1477,6 @@ <h4 class="card-title">Integrate Moodle</h4>
$(document).ready(function() {
$("#loading").fadeOut();
})

function hideme(id)
{
let ass_id = "#assign"+String(id);
let removed = "#removed"+String(id);
$(ass_id).hide();
$(removed).attr("style","");
}

function showme(id)
{
let ass_id = "#assign"+String(id);
let removed = "#removed"+String(id);
$(removed).attr("style","display:none;");
$(ass_id).show();
}


function Bunk_add(id){
Expand Down Expand Up @@ -1799,6 +1788,23 @@ <h4 class="card-title">Integrate Moodle</h4>
});
}

function hideme(id)
{
let ass_id = "#assign"+String(id);
let removed = "#removed"+String(id);
$(ass_id).hide();
$(removed).attr("style","");
}

function showme(id)
{
let ass_id = "#assign"+String(id);
let removed = "#removed"+String(id);
$(removed).attr("style","display:none;");
$(ass_id).show();
}


function login(regno,password,moodle_username=null,moodle_password=null,mode=null){
let url = 'https://vitask.me/authenticate?username='+regno+'&password='+password;
let timetable_ini_url = 'https://vitask.me/timetableapi?token=';
Expand Down Expand Up @@ -2252,7 +2258,6 @@ <h4 class="card-title">Integrate Moodle</h4>
$window.on('load', check_if_in_view);

</script>
<script src="assign.js"></script>



Expand Down
Loading

0 comments on commit 04342b9

Please sign in to comment.