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

reformat api thingz #22

Merged
merged 8 commits into from
Aug 19, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
remove console logs
  • Loading branch information
dtemkin1 committed Aug 17, 2023
commit 2618c103d66131f1e781d236f25368c2423c89f1
3 changes: 0 additions & 3 deletions src/lib/Belongings.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
export let error: MoiraException;
export let belongings: Belonging[] = [];

$: console.log(belongings);

let lists: string[] = [];
$: lists = belongings
.filter((b) => b.type === 'list')
Expand Down Expand Up @@ -41,7 +39,6 @@
$: h2 = `h${headingLevel + 1}`;

$: onlyOwnsLists = belongings.every((b) => b.type === 'list');
$: console.log(onlyOwnsLists);
</script>

{#if onlyOwnsLists}
Expand Down
2 changes: 0 additions & 2 deletions src/lib/moira.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,12 @@ export async function makeQuery({ method, path, ticket, params }: QueryOptions):
}
param_path = param_path.slice(0, -1);
}
console.log(`${PUBLIC_MOIRA_API}${path}${param_path}`);
const response = await fetch(`${PUBLIC_MOIRA_API}${path}${param_path}`, {
headers: {
Authorization: `webathena ${ticket}`
},
method
});
console.log(response);
const json = await response.json();
if (response.status !== 200) {
// TODO check is instance of MoiraException?
Expand Down
2 changes: 0 additions & 2 deletions src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
const ticket = derived(webathena, encodeTicket);
setContext('ticket', ticket);

$: console.log($webathena);

async function login() {
$webathena = await loginWebathena();
}
Expand Down