Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new hosted main! #44

Merged
merged 1 commit into from
Dec 4, 2023
Merged
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
2 changes: 1 addition & 1 deletion src/components/chat-component/Chat.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function Chat() {
});

function notifyEndSession(){
let url = "http://localhost:8080/session/end-session/" + sessionStorage.getItem('sessionCode');
let url = "https://connect.greenplant-1b2a73a7.eastus.azurecontainerapps.io/session/end-session/" + sessionStorage.getItem('sessionCode');
axios.get(url)
.then(function (response) {
console.log(response.data);
Expand Down
4 changes: 2 additions & 2 deletions src/components/end-session-component/EndSession.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ function EndSession() {
const templateId = "template_feo851p";

// TODO: change to azure endpoint
let transcriptUrl = 'http://localhost:8080/email/transcript/' + sessionId
let dateUrl = 'http://localhost:8080/email/date/' + sessionId
let transcriptUrl = 'https://connect.greenplant-1b2a73a7.eastus.azurecontainerapps.io/email/transcript/' + sessionId
let dateUrl = 'https://connect.greenplant-1b2a73a7.eastus.azurecontainerapps.io/email/date/' + sessionId

try {
const response = await axios.get(transcriptUrl);
Expand Down
2 changes: 1 addition & 1 deletion src/components/enter-code-component/EnterCode.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function EnterCode() {
const [alertOpen, setAlertOpen] = useState(false);

const joinSession = () => {
let joinUrl = "http://localhost:8080/session/join/" + sessionInput;
let joinUrl = "https://connect.greenplant-1b2a73a7.eastus.azurecontainerapps.io/session/join/" + sessionInput;

axios.get(joinUrl)
.then(function (response) {
Expand Down
8 changes: 4 additions & 4 deletions src/helper-components/pdf-manager-component/PdfManager.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function PdfFileManager() {

const fetchPdfById = async (pdfId) => {
try {
const response = await Axios.get(`http://localhost:8080/files/${pdfId}`, {
const response = await Axios.get(`https://connect.greenplant-1b2a73a7.eastus.azurecontainerapps.io/files/${pdfId}`, {
responseType: 'blob' // Expect a binary response
});
console.log(response);
Expand All @@ -78,7 +78,7 @@ function PdfFileManager() {
formData.append("session", sessionCode);

// Send the file to the backend
Axios.post('http://localhost:8080/files/session_add_pdf', formData)
Axios.post('https://connect.greenplant-1b2a73a7.eastus.azurecontainerapps.io/files/session_add_pdf', formData)
.then((response) => {
// File uploaded successfully
console.log('File uploaded successfully:', response.data);
Expand Down Expand Up @@ -114,7 +114,7 @@ function PdfFileManager() {
if (selectedPdf) {
return (
<PdfViewerComponent
document={`http://localhost:8080/files/${selectedPdf.id}`}
document={`https://connect.greenplant-1b2a73a7.eastus.azurecontainerapps.io/files/${selectedPdf.id}`}
onInstanceChange={instance => setPdfViewerInstance(instance)}
/>
);
Expand All @@ -133,7 +133,7 @@ function PdfFileManager() {
const formData = new FormData();
formData.append("file", blob, `updated_${selectedPdf.name}`);

Axios.put(`http://localhost:8080/files/update/${selectedPdf.id}`, formData)
Axios.put(`https://connect.greenplant-1b2a73a7.eastus.azurecontainerapps.io/files/update/${selectedPdf.id}`, formData)
.then(response => {
console.log('File updated successfully:', response.data);
setAlertMessage("File changes saved successfully");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function StartSessionButton() {
e.preventDefault();

//TODO: replace with hosted address
axios.get("http://localhost:8080/session/new-session")
axios.get("https://connect.greenplant-1b2a73a7.eastus.azurecontainerapps.io/session/new-session")
.then(function (response) {
let sessionCode = response.data.sessionCode;
sessionStorage.setItem('sessionCode', sessionCode);
Expand Down
2 changes: 1 addition & 1 deletion src/websocket.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function connectWebsocket(userRole, sessionID) {
sessionId = sessionID;

client = new Client({
brokerURL: "ws://localhost:8080/callhub",
brokerURL: "ws://connect.greenplant-1b2a73a7.eastus.azurecontainerapps.io/callhub",
onConnect: () => {
// subscribe to messages
client.subscribe(`/topic/message-${role}/${sessionId}`, (message) => {
Expand Down
Loading