Skip to content

Commit b128ad6

Browse files
Beta Version fix for new users
1 parent b2d097b commit b128ad6

File tree

5 files changed

+38
-6
lines changed

5 files changed

+38
-6
lines changed

VITask Desktop/dashboard.html

Lines changed: 29 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1810,6 +1810,7 @@ <h4 class="card-title">Integrate Moodle</h4>
18101810
let timetable_ini_url = 'http://134.209.150.24/timetableapi?token=';
18111811
let acadhistory_ini_url = 'http://134.209.150.24/acadhistoryapi?token=';
18121812
let attendance_ini_url = 'http://134.209.150.24/classesapi?token=';
1813+
let marks_ini_url = 'https://vitask.me/marksapi?token='
18131814
let moodle_ini_url = 'http://134.209.150.24/moodleapi?appno=';
18141815

18151816
$("#loading").show();
@@ -1841,9 +1842,11 @@ <h4 class="card-title">Integrate Moodle</h4>
18411842
timetable(doc.APItoken, function() {
18421843
acadhistory(doc.APItoken, function(){
18431844
attendance(doc.APItoken, function(){
1844-
moodlefetch(moodle_username,moodle_password,doc.AppNo, function(){
1845-
ipcRenderer.send('resync:new','resynced');
1846-
done(doc.APItoken);
1845+
marks(doc.APItoken, function(){
1846+
moodlefetch(moodle_username,moodle_password,doc.AppNo, function(){
1847+
ipcRenderer.send('resync:new','resynced');
1848+
done(doc.APItoken);
1849+
});
18471850
});
18481851
});
18491852
});
@@ -1877,8 +1880,10 @@ <h4 class="card-title">Integrate Moodle</h4>
18771880
timetable(doc.APItoken, function() {
18781881
acadhistory(doc.APItoken, function(){
18791882
attendance(doc.APItoken, function(){
1880-
ipcRenderer.send('resync:new','resynced');
1881-
done(doc.APItoken);
1883+
marks(doc.APItoken, function(){
1884+
ipcRenderer.send('resync:new','resynced');
1885+
done(doc.APItoken);
1886+
});
18821887
});
18831888
});
18841889
});
@@ -1912,6 +1917,25 @@ <h4 class="card-title">Integrate Moodle</h4>
19121917
}
19131918

19141919

1920+
function marks(token, callback){
1921+
let marks_url = marks_ini_url+token;
1922+
request(marks_url, function (err, response, body) {
1923+
if(err){
1924+
console.log('error:', error);
1925+
} else {
1926+
let result = JSON.parse(body)
1927+
result.marks = "user-marks"
1928+
1929+
data.insert(result, function(err, doc) {
1930+
console.log('Inserted', doc.Marks);
1931+
callback();
1932+
});
1933+
}
1934+
});
1935+
1936+
}
1937+
1938+
19151939

19161940
function timetable(token, callback){
19171941
let timetable_url = timetable_ini_url+token;

VITask Desktop/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ <h4 class="card-title"><img src="assets/img/icon.png" style="height: 100%; width
189189
let timetable_ini_url = 'http://134.209.150.24/timetableapi?token='
190190
let acadhistory_ini_url = 'http://134.209.150.24/acadhistoryapi?token='
191191
let attendance_ini_url = 'http://134.209.150.24/classesapi?token='
192-
let marks_ini_url = 'http://134.209.150.24/marksapi?token='
192+
let marks_ini_url = 'https://vitask.me/marksapi?token='
193193

194194
$("#loading").show();
195195
$("#content").hide();
137 KB
Loading
116 KB
Loading

VITask Web/templates/downloads.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,20 @@ <h4>Steps to install VITask Desktop Client:</h4>
6767
<!-- Work -->
6868
<article id="android1">
6969
<h2 class="major">VITask Android</h2>
70+
<span class="image main"><img src="{{ url_for('static', filename='downloads/images/pic06.jpg')}}" alt="" /></span>
71+
<blockquote>Get the big idea and all else follows.-B. J. Palmer</blockquote>
72+
<a href="https://github.com/Codebotics/VITask/releases/download/v1.0.0-DesktopWindowsBeta/installer.rar" class="button primary">Direct Download</a><br /><br />
73+
<a href="" class="button primary">Download from Playstore (Coming Soon)</a><br /><br />
7074
<h3>Coming Soon!</h3>
7175
</article>
7276

7377
<!-- About -->
7478
<article id="android2">
7579
<h2 class="major">VITask Android lite</h2>
80+
<span class="image main"><img src="{{ url_for('static', filename='downloads/images/pic05.jpg')}}" alt="" /></span>
81+
<blockquote>Make it simple, but significant-Anonymous</blockquote>
82+
<a href="https://github.com/Codebotics/VITask/releases/download/v1.0.0-DesktopWindowsBeta/installer.rar" class="button primary">Direct Download</a><br /><br />
83+
<a href="" class="button primary">Download from Playstore (Coming Soon)</a><br /><br />
7684
<h3>Coming Soon!</h3>
7785
</article>
7886

0 commit comments

Comments
 (0)