diff --git a/client/components/applications/developer.js b/client/components/applications/developer.js index 7571ee9..d7fbc21 100644 --- a/client/components/applications/developer.js +++ b/client/components/applications/developer.js @@ -11,7 +11,7 @@ export default class DeveloperApplication extends Component { handleSubmit = (event) => { event.preventDefault(); const message = `Developer Application submitted at ${new Date().toLocaleDateString()} ${new Date().toLocaleTimeString()}.\n\n**Email:** ${document.getElementById("email").value}\n**Discord:** ${document.getElementById("username").value}\n**How active are you?:** ${document.getElementById("active").value}\n**Do you have any experience with Node.js or Python?:** ${document.getElementById("nodejspython").value}\n**Do you have any experience with Lua:?** ${document.getElementById("lua").value}\n**Which one would you prefer?:** ${document.getElementById("langpreference").value}\n**What kind of development do you prefer to do?:** ${document.getElementById("developmentpreference").value}\n**Any questions?:** ${document.getElementById("questions").value || "N/A"}`; - fetch("https://matrixwebsite.cssudii.tk/api/v1/get/server/755687537753718815", { + fetch("https://matrixdev.xyz/api/v1/get/server/755687537753718815", { credentials: "include" }) .then(res => res.json()) @@ -101,4 +101,4 @@ export default class DeveloperApplication extends Component { ); } -}; \ No newline at end of file +}; diff --git a/client/components/applications/dsa.js b/client/components/applications/dsa.js index b6bb3fa..92515c9 100644 --- a/client/components/applications/dsa.js +++ b/client/components/applications/dsa.js @@ -12,7 +12,7 @@ export default class DSAApplication extends Component { event.preventDefault(); const message = `DSA Application submitted at ${new Date().toLocaleDateString()} ${new Date().toLocaleTimeString()}.\n\n**Email:** ${document.getElementById("email").value}\n**Discord:** ${document.getElementById("username").value}\n**Which rule(s) did you break?:** ${document.getElementById("rulesbroken").value}\n**Why did you break the rule(s)?:** ${document.getElementById("rulebreachanswer").value}\n**Any questions?:** ${document.getElementById("questions").value || "N/A"}`; - fetch("https://matrixwebsite.cssudii.tk/api/v1/get/server/755687537753718815", { + fetch("https://matrixdev.xyz/api/v1/get/server/755687537753718815", { credentials: "include" }) .then(res => res.json()) @@ -70,4 +70,4 @@ export default class DSAApplication extends Component { ); } -}; \ No newline at end of file +}; diff --git a/client/components/applications/moderator.js b/client/components/applications/moderator.js index a1338bf..5dd1912 100644 --- a/client/components/applications/moderator.js +++ b/client/components/applications/moderator.js @@ -17,7 +17,7 @@ export default class ModeratorApplication extends Component { console.log(document.getElementById("email")) console.log(document.getElementById("email").value); - fetch("https://matrixwebsite.cssudii.tk/api/v1/get/server/755687537753718815", { + fetch("https://matrixdev.xyz/api/v1/get/server/755687537753718815", { credentials: "include" }) .then(res => res.json()) diff --git a/client/components/applications/partnership.js b/client/components/applications/partnership.js index cbe58dd..daf3712 100644 --- a/client/components/applications/partnership.js +++ b/client/components/applications/partnership.js @@ -12,7 +12,7 @@ export default class PartnershipApplication extends Component { event.preventDefault(); const message = `Partnership Application submitted at ${new Date().toLocaleDateString()} ${new Date().toLocaleTimeString()}.\n\n**Email:** ${document.getElementById("email").value}\n**Discord:** ${document.getElementById("username").value}\n**What position do you hold within your group?:** ${document.getElementById("groupposition").value}\n**Why do you want to behold a partnership with Matrix?:** ${document.getElementById("partnershipreason").value}\n**Do you have any interests with Matrix?:** ${document.getElementById("matrixinterests").value}\n**What are the benefits for Matrix to have you as a partner?:** ${document.getElementById("partnershipbenefits").value}\n**Does your group have any requirements for a partnership with another group? If your group doesn't have any requirements, then skip this question:** ${document.getElementById("partneredgrouprequirements").value || "N/A"}\n**Are you interested in a career within Matrix?:** ${document.getElementById("matrixcareerinterests").value}\n**Any questions?:** ${document.getElementById("questions").value || "N/A"}`; - fetch("https://matrixwebsite.cssudii.tk/api/v1/get/server/755687537753718815", { + fetch("https://matrixdev.xyz/api/v1/get/server/755687537753718815", { credentials: "include" }) .then(res => res.json()) @@ -86,4 +86,4 @@ export default class PartnershipApplication extends Component { ); } -}; \ No newline at end of file +}; diff --git a/client/components/applications/supervisor.js b/client/components/applications/supervisor.js index b021ace..b4bae26 100644 --- a/client/components/applications/supervisor.js +++ b/client/components/applications/supervisor.js @@ -6,7 +6,7 @@ export default class SupervisorApplication extends Component { event.preventDefault(); const message = `Supervisor Application submitted at ${new Date().toLocaleDateString()} ${new Date().toLocaleTimeString()}.\n\n**Email:** ${document.getElementById("email").value}\n**Discord:** ${document.getElementById("username").value}\n**What would you do if you see a staff member break a rule?:** ${document.getElementById("staffrulebreakanswer").value}\n**What would you do if you see a member breaking the rules?:** ${document.getElementById("partnershipreason").value}\n**How good is your grammar?:** ${document.getElementById("grammar").value}\n**Any questions?:** ${document.getElementById("questions").value || "N/A"}`; - fetch("https://matrixwebsite.cssudii.tk/api/v1/get/server/755687537753718815", { + fetch("https://matrixdev.xyz/api/v1/get/server/755687537753718815", { credentials: "include" }) .then(res => res.json()) @@ -78,4 +78,4 @@ export default class SupervisorApplication extends Component { ); } -}; \ No newline at end of file +}; diff --git a/client/components/applications/support.js b/client/components/applications/support.js index 9ed2b3b..cfe2ccc 100644 --- a/client/components/applications/support.js +++ b/client/components/applications/support.js @@ -6,7 +6,7 @@ export default class SupportApplication extends Component { event.preventDefault(); const message = `Support Application submitted at ${new Date().toLocaleDateString()} ${new Date().toLocaleTimeString()}.\n\n**Email:** ${document.getElementById("email").value}\n**Discord:** ${document.getElementById("username").value}\n**What do you do if you see someone breaking the rules?:** ${document.getElementById("rulebreakanswer").value}\n**What would you do if there is a person asking asking for help?:** ${document.getElementById("personhelpanswer").value}\n**How active are you on Discord?:** ${document.getElementById("active").value}\n**How good is your grammar?:** ${document.getElementById("grammar").value}\n**Any questions?:** ${document.getElementById("questions").value || "N/A"}`; - fetch("https://matrixwebsite.cssudii.tk/api/v1/get/server/755687537753718815", { + fetch("https://matrixdev.xyz/api/v1/get/server/755687537753718815", { credentials: "include" }) .then(res => res.json()) @@ -82,4 +82,4 @@ export default class SupportApplication extends Component { ); } -}; \ No newline at end of file +}; diff --git a/client/pages/about.js b/client/pages/about.js index feaea3a..25aada5 100644 --- a/client/pages/about.js +++ b/client/pages/about.js @@ -15,7 +15,7 @@ export default class About extends Component { }; componentDidMount() { - fetch("https://matrixwebsite.cssudii.tk/api/v1/oauth/details", { + fetch("https://matrixdev.xyz/api/v1/oauth/details", { credentials: "include" }) .then(res => res.json()) diff --git a/client/pages/applications.js b/client/pages/applications.js index 5fc28fd..06fdde2 100644 --- a/client/pages/applications.js +++ b/client/pages/applications.js @@ -26,7 +26,7 @@ export default class Applications extends Component { }; componentDidMount() { - fetch("https://matrixwebsite.cssudii.tk/api/v1/oauth/details", { + fetch("https://matrixdev.xyz/api/v1/oauth/details", { credentials: "include" }) .then(res => res.json()) @@ -270,4 +270,4 @@ export default class Applications extends Component { ); }; -}; \ No newline at end of file +}; diff --git a/client/pages/disclaimer.js b/client/pages/disclaimer.js index aa0a6c6..3cafe95 100644 --- a/client/pages/disclaimer.js +++ b/client/pages/disclaimer.js @@ -16,7 +16,7 @@ export default class Disclaimer extends Component { }; componentDidMount() { - fetch("https://matrixwebsite.cssudii.tk/api/v1/oauth/details", { + fetch("https://matrixdev.xyz/api/v1/oauth/details", { credentials: "include" }) .then(res => res.json()) diff --git a/client/pages/index.js b/client/pages/index.js index e07bf37..10e21de 100644 --- a/client/pages/index.js +++ b/client/pages/index.js @@ -24,7 +24,7 @@ export default class Home extends Component { }; componentDidMount() { - fetch("https://matrixwebsite.cssudii.tk/api/v1/oauth/details", { + fetch("https://matrixdev.xyz/api/v1/oauth/details", { credentials: "include" }) .then(res => res.json()) @@ -38,7 +38,7 @@ export default class Home extends Component { }) .catch((error) => this.setState({ pending: false }) && console.log(error)); - fetch("https://matrixwebsite.cssudii.tk/api/v1/get/server/755687537753718815", { + fetch("https://matrixdev.xyz/api/v1/get/server/755687537753718815", { credentials: "include" }) .then(res => res.json()) diff --git a/client/pages/resources.js b/client/pages/resources.js index b66e899..2f1de37 100644 --- a/client/pages/resources.js +++ b/client/pages/resources.js @@ -22,7 +22,7 @@ export default class Home extends Component { }; componentDidMount() { - fetch("https://matrixwebsite.cssudii.tk/api/v1/oauth/details", { + fetch("https://matrixdev.xyz/api/v1/oauth/details", { credentials: "include" }) .then(res => res.json()) @@ -35,7 +35,7 @@ export default class Home extends Component { }) .catch(() => this.setState({ pending: false })); - fetch("https://matrixwebsite.cssudii.tk/api/v1/get/server/755687537753718815", { + fetch("https://matrixdev.xyz/api/v1/get/server/755687537753718815", { credentials: "include" }) .then(res => res.json()) diff --git a/client/pages/tos.js b/client/pages/tos.js index 2dd24a7..a1c08d8 100644 --- a/client/pages/tos.js +++ b/client/pages/tos.js @@ -16,7 +16,7 @@ export default class TermsOfService extends Component { }; componentDidMount() { - fetch("https://matrixwebsite.cssudii.tk/api/v1/oauth/details", { + fetch("https://matrixdev.xyz/api/v1/oauth/details", { credentials: "include" }) .then(res => res.json())