Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions website-html/assets/js/add-community.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const getCommunityName = () => {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
};
return fetch('http://localhost:8000/getCommunityName', config)
return fetch('http://18.237.22.223:8000/getCommunityName', config)
.then(response => response.json())
.catch(error => console.log(error));
}
Expand All @@ -25,7 +25,7 @@ const setCommunity = (contacEmail, category, serverName, desc, link, type, socia
socialMedia
})
};
fetch('http://localhost:8000/setCommunityRequest', config)
fetch('http://18.237.22.223:8000/setCommunityRequest', config)
.catch(error => console.log(error));
}

Expand Down
10 changes: 5 additions & 5 deletions website-html/assets/js/adminDiscord.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const getCommRequestSnapshot=(path)=>{
method: 'GET',
headers: { 'Content-Type': 'application/json' }
};
return fetch('http://localhost:8000/getCommRequestSnapshot?path=' + path, config)
return fetch('http://18.237.22.223:8000/getCommRequestSnapshot?path=' + path, config)
.then(response => response.json())
.catch(error => console.log(error));
}
Expand All @@ -13,7 +13,7 @@ const getClassRequestSnapshot=(path)=>{
method: 'GET',
headers: { 'Content-Type': 'application/json' }
};
return fetch('http://localhost:8000/getClassRequestSnapshot?path=' + path, config)
return fetch('http://18.237.22.223:8000/getClassRequestSnapshot?path=' + path, config)
.then(response => response.json())
.catch(error => console.log(error));
}
Expand All @@ -26,7 +26,7 @@ const removeData =(reference,id)=>{
id
})
};
fetch('http://localhost:8000/removeData',config)
fetch('http://18.237.22.223:8000/removeData',config)
.catch(error => console.log(error));

}
Expand Down Expand Up @@ -249,7 +249,7 @@ function addDiscordInfotoDBFromAdminPage (className, inviteURL, profName, quarte
year
})
};
fetch('http://localhost:8000/addClass',config)
fetch('http://18.237.22.223:8000/addClass',config)
.catch(error => console.log(error));

}
Expand All @@ -269,7 +269,7 @@ function addCommunitiesInfotoDBFromAdminPage(contact, name, inviteLink, org_type
description
})
};
fetch('http://localhost:8000/addCommunity',config)
fetch('http://18.237.22.223:8000/addCommunity',config)
.catch(error=>console.log(error))
}

Expand Down
6 changes: 3 additions & 3 deletions website-html/assets/js/adminFeedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const getFeedbackSnapshot=(path)=>{
method: 'GET',
headers: { 'Content-Type': 'application/json' }
};
return fetch('http://localhost:8000/getFeedbackSnapshot?path=' + path, config)
return fetch('http://18.237.22.223:8000/getFeedbackSnapshot?path=' + path, config)
.then(response => response.json())
.catch(error => console.log(error));
}
Expand All @@ -25,7 +25,7 @@ const moveFeedback =(from,to,id,email,fullname,issue_type,explanation,time)=>{
time
})
};
fetch('http://localhost:8000/moveFeedback',config)
fetch('http://18.237.22.223:8000/moveFeedback',config)
.catch(error => console.log(error));

}
Expand All @@ -39,7 +39,7 @@ const removeData =(reference,id)=>{
id
})
};
fetch('http://localhost:8000/removeData',config)
fetch('http://18.237.22.223:8000/removeData',config)
.catch(error => console.log(error));

}
Expand Down
6 changes: 3 additions & 3 deletions website-html/assets/js/adminReport.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const getReportSnapshot=(path)=>{
method: 'GET',
headers: { 'Content-Type': 'application/json' }
};
return fetch('http://localhost:8000/getReportSnapshot?path=' + path, config)
return fetch('http://18.237.22.223:8000/getReportSnapshot?path=' + path, config)
.then(response => response.json())
.catch(error => console.log(error));
}
Expand All @@ -24,7 +24,7 @@ const moveReport =(from,to,id,time,communityOrClassName,discordLink,email,fullna
reason
})
};
fetch('http://localhost:8000/moveReport',config)
fetch('http://18.237.22.223:8000/moveReport',config)
.catch(error => console.log(error));

}
Expand All @@ -38,7 +38,7 @@ const removeData =(reference,id)=>{
id
})
};
fetch('http://localhost:8000/removeData',config)
fetch('http://18.237.22.223:8000/removeData',config)
.catch(error => console.log(error));

}
Expand Down
6 changes: 3 additions & 3 deletions website-html/assets/js/adminUser.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ const getAdminEmail = (mail) => {
mail
})
};
fetch('http://localhost:8000/getAdminEmail', config)
fetch('http://18.237.22.223:8000/getAdminEmail', config)
.catch(error => console.log(error));
}
const getAdminSnapshot = ()=>{
let config = {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
};
return fetch('http://localhost:8000/getAdminSnapshot', config)
return fetch('http://18.237.22.223:8000/getAdminSnapshot', config)
.then(response => response.json())
.catch(error => console.log(error));
}
Expand All @@ -34,7 +34,7 @@ const removeData =(reference,id)=>{
id
})
};
fetch('http://localhost:8000/removeData',config)
fetch('http://18.237.22.223:8000/removeData',config)
.catch(error => console(error));

}
Expand Down
2 changes: 1 addition & 1 deletion website-html/assets/js/create-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const setClassServerRequest = (user_email, class_name, invite_URL, prof_Name, qu
year
})
};
fetch('http://localhost:8000/setClassServerRequest', config)
fetch('http://18.237.22.223:8000/setClassServerRequest', config)
.catch(error => console.log(error));
}

Expand Down
4 changes: 2 additions & 2 deletions website-html/assets/js/feedbackDiscordUtil.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const sendFeedbackVerifedHelper = (email, fullname, issue_type, explanation,
time
})
};
fetch('http://localhost:8000/sendFeedbackVerifed', config)
fetch('http://18.237.22.223:8000/sendFeedbackVerifed', config)
.catch(error => console.log(error));
}

Expand Down Expand Up @@ -52,6 +52,6 @@ const sendFeedbackUnverifedHelper = (email, fullname, issue_type, explanation,
time
})
};
fetch('http://localhost:8000/sendFeedbackUnverifed', config)
fetch('http://18.237.22.223:8000/sendFeedbackUnverifed', config)
.catch(error => console.log(error));
}
2 changes: 1 addition & 1 deletion website-html/assets/js/profileCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const getAdminUser = () => {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
};
return fetch('http://localhost:8000/getAdminUser', config)
return fetch('http://18.237.22.223:8000/getAdminUser', config)
.then(response => response.json())
.catch(error => console.log(error));
}
Expand Down
2 changes: 1 addition & 1 deletion website-html/assets/js/report.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const setNewReport = (reportRef, community_or_class_name, discord_link, report_c
report_reason
})
};
fetch('http://localhost:8000/setNewReport', config)
fetch('http://18.237.22.223:8000/setNewReport', config)
.catch(error => console.log(error));
}

Expand Down
6 changes: 3 additions & 3 deletions website-html/assets/js/reviewClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const getClassSnap = () => {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
};
return fetch('http://localhost:8000/getClassSnapshot', config)
return fetch('http://18.237.22.223:8000/getClassSnapshot', config)
.then(response => response.json())
.catch(error => console.log(error));
}
Expand Down Expand Up @@ -112,7 +112,7 @@ const removeClass =(className,bid)=>{
bid
})
};
fetch('http://localhost:8000/removeClass',config)
fetch('http://18.237.22.223:8000/removeClass',config)
.catch(error => console.log(error));
}

Expand Down Expand Up @@ -151,7 +151,7 @@ const getClass = (className) => {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
};
return fetch('http://localhost:8000/getClass?className=' + className, config)
return fetch('http://18.237.22.223:8000/getClass?className=' + className, config)
.then(response => response.json())
.catch(error => console.log(error));
}
Expand Down
4 changes: 2 additions & 2 deletions website-html/assets/js/searchClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const getClassSnap = () => {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
};
return fetch('http://localhost:8000/getClassSnapshot', config)
return fetch('http://18.237.22.223:8000/getClassSnapshot', config)
.then(response => response.json())
.catch(error => console.log(error));
}
Expand Down Expand Up @@ -65,7 +65,7 @@ const getClass = (className) => {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
};
return fetch('http://localhost:8000/getClass?className=' + className, config)
return fetch('http://18.237.22.223:8000/getClass?className=' + className, config)
.then(response => response.json())
.catch(error => console.log(error));
}
Expand Down
6 changes: 3 additions & 3 deletions website-html/assets/js/searchCommunity.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const getCommunitySnap = () => {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
};
return fetch('http://localhost:8000/getCommunitySnapshot', config)
return fetch('http://18.237.22.223:8000/getCommunitySnapshot', config)
.then(response => response.json())
.catch(error => console.log(error));
}
Expand Down Expand Up @@ -70,7 +70,7 @@ const getCommunity = (communityName) => {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
};
return fetch('http://localhost:8000/getCommunity?name=' + communityName, config)
return fetch('http://18.237.22.223:8000/getCommunity?name=' + communityName, config)
.then(response => response.text())
.catch(error => console.log(error));
}
Expand Down Expand Up @@ -160,7 +160,7 @@ const getCommunityByCat = (category) => {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
};
return fetch('http://localhost:8000/getCommunityByCat?category=' + category, config)
return fetch('http://18.237.22.223:8000/getCommunityByCat?category=' + category, config)
.then(response => response.text())
.catch(error => console.log(error));
}
Expand Down
2 changes: 1 addition & 1 deletion website-html/assets/js/searchMajor.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const getMajorSnapshotHelper = () => {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
};
return fetch('http://localhost:8000/getMajorSnapshot', config)
return fetch('http://18.237.22.223:8000/getMajorSnapshot', config)
.then(response => response.json())
.catch(error => console.log(error));
}
Expand Down
8 changes: 4 additions & 4 deletions website-html/assets/js/userprofile.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const getUserName = (uid) => {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
};
return fetch('http://localhost:8000/getUserName?uid=' + uid, config)
return fetch('http://18.237.22.223:8000/getUserName?uid=' + uid, config)
.then(response => response.text())
.catch(error => console.log(error));
}
Expand All @@ -45,7 +45,7 @@ const getUserMajor = (uid) => {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
};
return fetch('http://localhost:8000/getUserMajor?uid=' + uid, config)
return fetch('http://18.237.22.223:8000/getUserMajor?uid=' + uid, config)
.then(response => response.text())
.catch(error => console.log(error));
}
Expand All @@ -55,7 +55,7 @@ const getUserClasses = (uid) => {
method: 'GET',
headers: { 'Content-Type': 'application/json' }
};
return fetch('http://localhost:8000/getUserClasses?uid=' + uid, config)
return fetch('http://18.237.22.223:8000/getUserClasses?uid=' + uid, config)
.then(response => response.text())
.catch(error => console.log(error));
}
Expand All @@ -72,7 +72,7 @@ const saveUserProfile = (uid, courses, major, email, name) => {
name
})
};
fetch('http://localhost:8000/saveUserProfile', config)
fetch('http://18.237.22.223:8000/saveUserProfile', config)
.catch(error => console.log(error));
}

Expand Down