diff --git a/config/google-oauth.js b/config/google-oauth.js index 8af5a56..6a84ced 100644 --- a/config/google-oauth.js +++ b/config/google-oauth.js @@ -8,7 +8,7 @@ const client_secret = process.env.client_secret; passport.use(new GoogleStrategy({ clientID: client_id, clientSecret: client_secret, - callbackURL: "https://busy-motion-6100-production.up.railway.app/auth/google/callback" + callbackURL: "https://easemeet.onrender.com/auth/google/callback" }, async function(accessToken, refreshToken, profile, cb) { const {name, email, picture} = profile._json; diff --git a/public/index.css b/public/index.css index 876122f..0d5e0f2 100644 --- a/public/index.css +++ b/public/index.css @@ -38,7 +38,6 @@ nav img { width: 200px; } nav{ - width: 60%; margin: auto; } :root { diff --git a/public/index.html b/public/index.html index d3ddb24..66b52f4 100644 --- a/public/index.html +++ b/public/index.html @@ -32,19 +32,19 @@

English diff --git a/public/scripts/appointments.js b/public/scripts/appointments.js index fa7b59e..e9c5ea4 100644 --- a/public/scripts/appointments.js +++ b/public/scripts/appointments.js @@ -6,7 +6,7 @@ window.addEventListener("load", () => { async function appenddata() { try { - let responsedata = await fetch("https://busy-motion-6100-production.up.railway.app/user/appointments",{ + let responsedata = await fetch("https://easemeet.onrender.com/user/appointments",{ headers: { "Content-Type": "application/json", diff --git a/public/scripts/book.js b/public/scripts/book.js index fb3878a..f52468c 100644 --- a/public/scripts/book.js +++ b/public/scripts/book.js @@ -5,7 +5,7 @@ const get = (x)=>{ return document.getElementById(`${x}`) } -const baseUrl = "https://busy-motion-6100-production.up.railway.app/" +const baseUrl = "https://easemeet.onrender.com/" get("name").innerText = x.name get("userimg").src = x.picture diff --git a/public/scripts/dashboard.js b/public/scripts/dashboard.js index 1e8f748..d9773c5 100644 --- a/public/scripts/dashboard.js +++ b/public/scripts/dashboard.js @@ -1,4 +1,4 @@ -const baseUrl = "https://busy-motion-6100-production.up.railway.app/"; +const baseUrl = "https://easemeet.onrender.com/"; let myname, myUserId; @@ -42,7 +42,7 @@ const livebtn = document.getElementById("livemeeting").onclick = ()=>{ async function appenddata() { try { - let responsedata = await fetch("https://busy-motion-6100-production.up.railway.app/user/meetings",{ + let responsedata = await fetch("https://easemeet.onrender.com/user/meetings",{ headers: { "Content-Type": "application/json", @@ -90,7 +90,7 @@ function append(x, data){ booking.setAttribute("id","book") booking.style.color = "blue" booking.addEventListener("click", function () { - window.open(`https://busy-motion-6100-production.up.railway.app/user/${x[0]._id}`) + window.open(`https://easemeet.onrender.com/user/${x[0]._id}`) }); let hra = document.createElement("hr") hra.style.color = "#ededed" @@ -100,7 +100,7 @@ function append(x, data){ link.innerText = "Copy link"; link.addEventListener("click", async () => { try { - await navigator.clipboard.writeText(`https://busy-motion-6100-production.up.railway.app/user/${x[0]._id}`); + await navigator.clipboard.writeText(`https://easemeet.onrender.com/user/${x[0]._id}`); link.innerText = "Copied" setTimeout(() => { link.innerText = "Copy link" @@ -133,9 +133,9 @@ let a = data[0].email document.getElementById("namecircle").innerText = ` ${data[0].name[0]}` // document.querySelector("#span").innerText = `localhost:3000/user/${data[0]._id}` -document.querySelector("#span").innerText = `https://busy-motion-6100-production.up.railway.app/user/${data[0]._id}` +document.querySelector("#span").innerText = `https://easemeet.onrender.com/user/${data[0]._id}` document.querySelector("#span").onclick = ()=>{ - window.open(`https://busy-motion-6100-production.up.railway.app/user/${data[0]._id}`) + window.open(`https://easemeet.onrender.com/user/${data[0]._id}`) } document.querySelector("#span").style.color = "blue" @@ -175,7 +175,7 @@ function showtime(start,end){ async function removed(id){ try { - let responsedata = await fetch(`https://busy-motion-6100-production.up.railway.app/meeting/${id}`,{ + let responsedata = await fetch(`https://easemeet.onrender.com/meeting/${id}`,{ method:"DELETE", headers: { "Authorization":`Bearer ${JSON.parse(localStorage.getItem("token"))}` @@ -237,7 +237,7 @@ async function appendremain(when) { try { - let responsedata = await fetch(`https://busy-motion-6100-production.up.railway.app/user/meetings/${when}`,{ + let responsedata = await fetch(`https://easemeet.onrender.com/user/meetings/${when}`,{ headers: { "Content-Type": "application/json", diff --git a/public/scripts/index.js b/public/scripts/index.js index 5c5a8bb..909eb72 100644 --- a/public/scripts/index.js +++ b/public/scripts/index.js @@ -4,7 +4,7 @@ let refresh_token = params.get("rtoken"); const loginbtn = document.getElementById("my_ac_btn") const logoutbtn = document.getElementById("logout_btn"); const signup = document.getElementById("signupf") -const baseUrl = "https://busy-motion-6100-production.up.railway.app/" +const baseUrl = "https://easemeet.onrender.com/" document.getElementById("logo").onclick = ()=>{ location.assign("../index.html") } diff --git a/public/scripts/one-o-one.js b/public/scripts/one-o-one.js index a55715e..8108f0f 100644 --- a/public/scripts/one-o-one.js +++ b/public/scripts/one-o-one.js @@ -38,7 +38,7 @@ let postData = () => { location: event_location, } console.log(event_data) - fetch("https://busy-motion-6100-production.up.railway.app/meeting",{ + fetch("https://easemeet.onrender.com/meeting",{ method:"POST", headers:{ "Content-type":"application/json", diff --git a/public/scripts/signup.js b/public/scripts/signup.js index 5663de0..81a2f4d 100644 --- a/public/scripts/signup.js +++ b/public/scripts/signup.js @@ -1,4 +1,4 @@ -fetch("https://busy-motion-6100-production.up.railway.app/auth/google") +fetch("https://easemeet.onrender.com/auth/google") .then((res)=>{ console.log(res.json()) })