Ignore:
Timestamp:
01/22/23 16:51:43 (2 years ago)
Author:
unknown <mlviktor23@…>
Branches:
main
Parents:
9bf1f8d
Message:

prefinal reproducible

Location:
reactapp/src/Components
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • reactapp/src/Components/OpinionTree.js

    r9bf1f8d r8dffe02  
    4646
    4747  useEffect(() => {
    48     const url = `http://192.168.1.254:8080/secure/currentUser`;
     48    const url = `http://192.168.1.108:8080/secure/currentUser`;
    4949
    5050    const fetchUser = async () => {
     
    7272      ) {
    7373        const response = await axios(
    74           `http://192.168.1.254:8080/secure/upvoteOpinion/${post.postId}`,
     74          `http://192.168.1.108:8080/secure/upvoteOpinion/${post.postId}`,
    7575          {
    7676            method: "get",
     
    9595      ) {
    9696        const response = await axios(
    97           `http://192.168.1.254:8080/secure/downvoteOpinion/${post.postId}`,
     97          `http://192.168.1.108:8080/secure/downvoteOpinion/${post.postId}`,
    9898          {
    9999            method: "get",
     
    150150    if (!replyContent.length < 1) {
    151151      const response = await axios(
    152         `http://192.168.1.254:8080/secure/professor/${professor.professorId}/replyToOpinion/${postId}`,
     152        `http://192.168.1.108:8080/secure/professor/${professor.professorId}/replyToOpinion/${postId}`,
    153153        {
    154154          method: "post",
     
    171171    if (!reportContent.length < 1) {
    172172      const response = await axios(
    173           `http://192.168.1.254:8080/secure/reportOpinion/${postId}`,
     173          `http://192.168.1.108:8080/secure/reportOpinion/${postId}`,
    174174          {
    175175            method: "post",
  • reactapp/src/Components/Search.js

    r9bf1f8d r8dffe02  
    1818    const fetchData = async () => {
    1919      try {
    20         Promise.all([fetch(`http://192.168.1.254:8080/public/professors/nameContains/${transliterate(query)}`),
    21           fetch(`http://192.168.1.254:8080/public/subjects/nameContains/${transliterate(query)}`)])
     20        Promise.all([fetch(`http://192.168.1.108:8080/public/professors/nameContains/${transliterate(query)}`),
     21          fetch(`http://192.168.1.108:8080/public/subjects/nameContains/${transliterate(query)}`)])
    2222            .then(([resProfessors, resSubjects]) => Promise.all([resProfessors.json(), resSubjects.json()]))
    2323            .then(([dataProfessors, dataSubjects]) => {
  • reactapp/src/Components/Styled/Search.style.js

    r9bf1f8d r8dffe02  
    33
    44export const SearchBox = styled.input`
    5   width: 450px;
     5  width: 350px;
    66  box-sizing: border-box;
    77  border: 2px solid #ccc;
     
    2323  padding: 12px 16px;
    2424  z-index: 1;
    25   width: 450px;
     25  width: 350px;
    2626  padding: 0;
    2727`;
  • reactapp/src/Components/SubjectsAccordion.js

    r9bf1f8d r8dffe02  
    2323      setOpacity(1);
    2424      try {
    25         Promise.all([fetch(`http://192.168.1.254:8080/public/subjects?studyProgrammeId=${props.title.studyProgrammeId}`),
    26           fetch(`http://192.168.1.254:8080/public/study_programme/${props.title.studyProgrammeId}/threadCountForEachSubject`)])
     25        Promise.all([fetch(`http://192.168.1.108:8080/public/subjects?studyProgrammeId=${props.title.studyProgrammeId}`),
     26          fetch(`http://192.168.1.108:8080/public/study_programme/${props.title.studyProgrammeId}/threadCountForEachSubject`)])
    2727            .then(([resSubjects, counts]) => Promise.all([resSubjects.json(), counts.json()]))
    2828            .then(([dataSubjects, dataCounts]) => {
  • reactapp/src/Components/UserHeader.js

    r9bf1f8d r8dffe02  
    1111
    1212  useEffect(() => {
    13     const url = `http://192.168.1.254:8080/secure/currentUser`;
     13    const url = `http://192.168.1.108:8080/secure/currentUser`;
    1414
    1515    const fetchUser = async () => {
Note: See TracChangeset for help on using the changeset viewer.