Skip to content

Commit

Permalink
Edit page call new API URL
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyyu007 committed Dec 20, 2023
1 parent aceae66 commit 10ca5f9
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 25 deletions.
4 changes: 2 additions & 2 deletions frontend/dist/404.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<link href="https://fonts.googleapis.com/css?family=Saira:400,700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Archivo:400,700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css">
<script type="module" crossorigin src="/resame-website/assets/index-6247830d.js"></script>
<link rel="stylesheet" href="/resame-website/assets/index-bbcb1de9.css">
<script type="module" crossorigin src="/resame-website/assets/index-b48d8458.js"></script>
<link rel="stylesheet" href="/resame-website/assets/index-d9bd6ccd.css">
</head>
<body class="no-scroll" style="background-color: white">
<div id="app"></div>
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions frontend/dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<link href="https://fonts.googleapis.com/css?family=Saira:400,700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Archivo:400,700" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic" rel="stylesheet" type="text/css">
<script type="module" crossorigin src="/resame-website/assets/index-6247830d.js"></script>
<link rel="stylesheet" href="/resame-website/assets/index-bbcb1de9.css">
<script type="module" crossorigin src="/resame-website/assets/index-b48d8458.js"></script>
<link rel="stylesheet" href="/resame-website/assets/index-d9bd6ccd.css">
</head>
<body class="no-scroll" style="background-color: white">
<div id="app"></div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"build": "vite build",
"preview": "vite preview",
"predeploy": "npm run build",
"deploy": "cd dist && cp index.html 404.html"
"deploy": "cd dist && cp index.html 404.html && rm -r /var/www/html/resame-website && cp -R ../dist /var/www/html/resame-website"
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.4.0",
Expand Down
30 changes: 15 additions & 15 deletions frontend/src/vue/core/Editview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export default {
//skill data
// const skill_response = await axios.get('../../../data/sections/skills.json');
// const skill_data = skill_response.data;
const skill_response = await fetch("http://127.0.0.1:3033/loadResume", {
const skill_response = await fetch("https://res-a-me.resilientdb.com/loadResume", {
method: "POST",
headers: {
"Content-type": "application/json; charset=UTF-8",
Expand All @@ -133,7 +133,7 @@ export default {
//about data
// const cover_response = await axios.get('../../../data/sections/cover.json');
// const cover_data = cover_response.data;
const cover_response = await fetch("http://127.0.0.1:3033/loadResume", {
const cover_response = await fetch("https://res-a-me.resilientdb.com/loadResume", {
method: "POST",
headers: {
"Content-type": "application/json; charset=UTF-8",
Expand All @@ -144,7 +144,7 @@ export default {
});
const cover_data = await cover_response.json();
cover_data_old.value = cover_data; //for update JSON file
const profile_response = await fetch("http://127.0.0.1:3033/loadResume", {
const profile_response = await fetch("https://res-a-me.resilientdb.com/loadResume", {
method: "POST",
headers: {
"Content-type": "application/json; charset=UTF-8",
Expand All @@ -171,7 +171,7 @@ export default {
//education data
// const edu_response = await axios.get('../../../data/sections/education.json');
// const edu_data = edu_response.data;
const edu_response = await fetch("http://127.0.0.1:3033/loadResume", {
const edu_response = await fetch("https://res-a-me.resilientdb.com/loadResume", {
method: "POST",
headers: {
"Content-type": "application/json; charset=UTF-8",
Expand All @@ -196,7 +196,7 @@ export default {
//profession data
// const pro_response = await axios.get('../../../data/sections/experience.json');
// const pro_data = pro_response.data;
const pro_response = await fetch("http://127.0.0.1:3033/loadResume", {
const pro_response = await fetch("https://res-a-me.resilientdb.com/loadResume", {
method: "POST",
headers: {
"Content-type": "application/json; charset=UTF-8",
Expand All @@ -221,7 +221,7 @@ export default {
//achievement and award data
// const achi_response = await axios.get('../../../data/sections/achievements.json');
// const achi_data = achi_response.data;
const achi_response = await fetch("http://127.0.0.1:3033/loadResume", {
const achi_response = await fetch("https://res-a-me.resilientdb.com/loadResume", {
method: "POST",
headers: {
"Content-type": "application/json; charset=UTF-8",
Expand Down Expand Up @@ -276,7 +276,7 @@ export default {
let userEmail = "";
try {
const response = await fetch("http://127.0.0.1:3033/loadUser", {
const response = await fetch("https://res-a-me.resilientdb.com/loadUser", {
method: "GET",
headers: {
"Content-type": "application/json; charset=UTF-8",
Expand All @@ -292,7 +292,7 @@ export default {
}
try {
const response = await fetch("http://127.0.0.1:3033/updateResume", {
const response = await fetch("https://res-a-me.resilientdb.com/updateResume", {
method: "POST",
headers: {
"Content-type": "application/json; charset=UTF-8",
Expand Down Expand Up @@ -346,7 +346,7 @@ export default {
}
});
}
fetch("http://127.0.0.1:3033/editResume", {
fetch("https://res-a-me.resilientdb.com/editResume", {
method: "POST",
headers: {
"Content-type": "application/json; charset=UTF-8",
Expand All @@ -364,7 +364,7 @@ export default {
this.profile_data_old.locales.en.role = this.about.role;
this.profile_data_old.contact.email.value = this.about.email;
this.profile_data_old.contact.phone.valueShort = this.about.phone;
await fetch("http://127.0.0.1:3033/editResume", {
await fetch("https://res-a-me.resilientdb.com/editResume", {
method: "POST",
headers: {
"Content-type": "application/json; charset=UTF-8",
Expand All @@ -373,7 +373,7 @@ export default {
},
body: JSON.stringify({ "category": "cover", "data": JSON.stringify(this.cover_data_old) }),
});
await fetch("http://127.0.0.1:3033/editResume", {
await fetch("https://res-a-me.resilientdb.com/editResume", {
method: "POST",
headers: {
"Content-type": "application/json; charset=UTF-8",
Expand Down Expand Up @@ -417,7 +417,7 @@ export default {
},
});
}
fetch("http://127.0.0.1:3033/editResume", {
fetch("https://res-a-me.resilientdb.com/editResume", {
method: "POST",
headers: {
"Content-type": "application/json; charset=UTF-8",
Expand Down Expand Up @@ -461,7 +461,7 @@ export default {
},
});
}
fetch("http://127.0.0.1:3033/editResume", {
fetch("https://res-a-me.resilientdb.com/editResume", {
method: "POST",
headers: {
"Content-type": "application/json; charset=UTF-8",
Expand Down Expand Up @@ -505,7 +505,7 @@ export default {
},
});
}
await fetch("http://127.0.0.1:3033/editResume", {
await fetch("https://res-a-me.resilientdb.com/editResume", {
method: "POST",
headers: {
"Content-type": "application/json; charset=UTF-8",
Expand Down Expand Up @@ -549,7 +549,7 @@ export default {
},
});
}
await fetch("http://127.0.0.1:3033/editResume", {
await fetch("https://res-a-me.resilientdb.com/editResume", {
method: "POST",
headers: {
"Content-type": "application/json; charset=UTF-8",
Expand Down

0 comments on commit 10ca5f9

Please sign in to comment.