🔇 Removed console.log's
This commit is contained in:
@@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { redirect } from '@sveltejs/kit';
|
||||||
|
|
||||||
|
export const load = async ({ parent }) => {
|
||||||
|
const { email } = await parent();
|
||||||
|
if (email) {
|
||||||
|
throw redirect(302, '/dashboard');
|
||||||
|
}
|
||||||
|
return {
|
||||||
|
email
|
||||||
|
};
|
||||||
|
};
|
||||||
@@ -45,19 +45,15 @@
|
|||||||
for (let i = 0; i < quizzes.length; i++) {
|
for (let i = 0; i < quizzes.length; i++) {
|
||||||
id_to_position_map[quizzes[i].id] = i;
|
id_to_position_map[quizzes[i].id] = i;
|
||||||
}
|
}
|
||||||
console.log(id_to_position_map);
|
|
||||||
return quizzes_to_show;
|
return quizzes_to_show;
|
||||||
};
|
};
|
||||||
|
|
||||||
let suggestions = [];
|
let suggestions = [];
|
||||||
|
|
||||||
const search = () => {
|
const search = () => {
|
||||||
console.log(search_term);
|
|
||||||
if (search_term === '') {
|
if (search_term === '') {
|
||||||
console.log('HELLO');
|
|
||||||
quizzes_to_show = [];
|
quizzes_to_show = [];
|
||||||
quizzes_to_show = quizzes;
|
quizzes_to_show = quizzes;
|
||||||
console.log(quizzes_to_show);
|
|
||||||
quizzes_to_show = quizzes_to_show;
|
quizzes_to_show = quizzes_to_show;
|
||||||
} else {
|
} else {
|
||||||
const res = minisearch.search(search_term);
|
const res = minisearch.search(search_term);
|
||||||
|
|||||||
@@ -26,7 +26,6 @@
|
|||||||
resp_data_temp = resp_data_temp.replaceAll('<em>', '<mark>');
|
resp_data_temp = resp_data_temp.replaceAll('<em>', '<mark>');
|
||||||
resp_data_temp = resp_data_temp.replaceAll('</em>', '</mark>');
|
resp_data_temp = resp_data_temp.replaceAll('</em>', '</mark>');
|
||||||
resp_data = JSON.parse(resp_data_temp);
|
resp_data = JSON.parse(resp_data_temp);
|
||||||
console.log('Success!', resp_data);
|
|
||||||
} else {
|
} else {
|
||||||
console.error('Error!', res.status);
|
console.error('Error!', res.status);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user