Skip to content

Commit

Permalink
vinh/change api text editor key
Browse files Browse the repository at this point in the history
  • Loading branch information
AnataAria committed Nov 26, 2023
1 parent 3c122a5 commit c5668b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion frontend/my-app/src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<title>Ademy</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css">
<script src="https://cdn.tiny.cloud/1/rin7yni45fy4pbp6hub9mnmcpi5wrhapvxjyll03gr68j3og/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>
<script src="https://cdn.tiny.cloud/1/cd5398hc4vqhe1oak59f0lfztp7s0i4dypcco5nuyz0uldpj/tinymce/5/tinymce.min.js" referrerpolicy="origin"></script>

%sveltekit.head%
</head>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { page } from "$app/stores";
const id: number = $page.url.searchParams.get("courseId");
let apiKey = "rin7yni45fy4pbp6hub9mnmcpi5wrhapvxjyll03gr68j3og";
let apiKey = "cd5398hc4vqhe1oak59f0lfztp7s0i4dypcco5nuyz0uldpj";
let conf = {
plugins: [
"a11ychecker",
Expand Down Expand Up @@ -114,7 +114,7 @@
function fetchCourseContentToUI(
sectionData: Section,
courseContentIn: CourseContent
courseContentIn: CourseContent,
) {
sections.sectionOrder = sectionData.sectionOrder;
sections.id = sectionData.id;
Expand Down Expand Up @@ -181,7 +181,7 @@
headers: {
Authorization: `Bearer ${GetCookie("USER")}`,
},
}
},
)
.then((response) => {
if (response.status === 200) {
Expand Down Expand Up @@ -237,7 +237,7 @@
"There are more than 1 course content existing in this section",
3000,
1,
1
1,
);
} else {
ShowMessage(`Error code: ${error.response?.status}`, 3000, 1, 1);
Expand Down

0 comments on commit c5668b6

Please sign in to comment.