Changeset 8dffe02 for reactapp/src/Components
- Timestamp:
- 01/22/23 16:51:43 (2 years ago)
- Branches:
- main
- Parents:
- 9bf1f8d
- Location:
- reactapp/src/Components
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
reactapp/src/Components/OpinionTree.js
r9bf1f8d r8dffe02 46 46 47 47 useEffect(() => { 48 const url = `http://192.168.1. 254:8080/secure/currentUser`;48 const url = `http://192.168.1.108:8080/secure/currentUser`; 49 49 50 50 const fetchUser = async () => { … … 72 72 ) { 73 73 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}`, 75 75 { 76 76 method: "get", … … 95 95 ) { 96 96 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}`, 98 98 { 99 99 method: "get", … … 150 150 if (!replyContent.length < 1) { 151 151 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}`, 153 153 { 154 154 method: "post", … … 171 171 if (!reportContent.length < 1) { 172 172 const response = await axios( 173 `http://192.168.1. 254:8080/secure/reportOpinion/${postId}`,173 `http://192.168.1.108:8080/secure/reportOpinion/${postId}`, 174 174 { 175 175 method: "post", -
reactapp/src/Components/Search.js
r9bf1f8d r8dffe02 18 18 const fetchData = async () => { 19 19 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)}`)]) 22 22 .then(([resProfessors, resSubjects]) => Promise.all([resProfessors.json(), resSubjects.json()])) 23 23 .then(([dataProfessors, dataSubjects]) => { -
reactapp/src/Components/Styled/Search.style.js
r9bf1f8d r8dffe02 3 3 4 4 export const SearchBox = styled.input` 5 width: 450px;5 width: 350px; 6 6 box-sizing: border-box; 7 7 border: 2px solid #ccc; … … 23 23 padding: 12px 16px; 24 24 z-index: 1; 25 width: 450px;25 width: 350px; 26 26 padding: 0; 27 27 `; -
reactapp/src/Components/SubjectsAccordion.js
r9bf1f8d r8dffe02 23 23 setOpacity(1); 24 24 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`)]) 27 27 .then(([resSubjects, counts]) => Promise.all([resSubjects.json(), counts.json()])) 28 28 .then(([dataSubjects, dataCounts]) => { -
reactapp/src/Components/UserHeader.js
r9bf1f8d r8dffe02 11 11 12 12 useEffect(() => { 13 const url = `http://192.168.1. 254:8080/secure/currentUser`;13 const url = `http://192.168.1.108:8080/secure/currentUser`; 14 14 15 15 const fetchUser = async () => {
Note:
See TracChangeset
for help on using the changeset viewer.