fix: auth and layouting
This commit is contained in:
parent
f036998fad
commit
4210aad424
@ -61,7 +61,7 @@ export const github = {
|
|||||||
return `https://github.com/login/oauth/authorize?client_id=${client_id}&redirect_uri=${redir_uri}&scope=${scope}&state=${state}`
|
return `https://github.com/login/oauth/authorize?client_id=${client_id}&redirect_uri=${redir_uri}&scope=${scope}&state=${state}`
|
||||||
},
|
},
|
||||||
getToken: async (code: string): Promise<TokenResponse> => {
|
getToken: async (code: string): Promise<TokenResponse> => {
|
||||||
const api = `https://discord.com/api/oauth2/token`
|
const api = `https://github.com/login/oauth/access_token`
|
||||||
const body = new URLSearchParams({
|
const body = new URLSearchParams({
|
||||||
client_id: env.GITHUB_CLIENT_ID,
|
client_id: env.GITHUB_CLIENT_ID,
|
||||||
client_secret: env.GITHUB_CLIENT_SECRET,
|
client_secret: env.GITHUB_CLIENT_SECRET,
|
||||||
|
@ -58,6 +58,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</Window>
|
</Window>
|
||||||
<div class="grow" />
|
<div class="grow" />
|
||||||
|
<div class="mb-[7vh] md:mb-0">
|
||||||
<Window title="entries" iconUri="/icons/entries.png">
|
<Window title="entries" iconUri="/icons/entries.png">
|
||||||
<div class="flex flex-col gap-2 md:gap-4 2xl:w-[60ch]">
|
<div class="flex flex-col gap-2 md:gap-4 2xl:w-[60ch]">
|
||||||
{#if data.getRatelimited}
|
{#if data.getRatelimited}
|
||||||
@ -80,7 +81,7 @@
|
|||||||
</p>
|
</p>
|
||||||
<p class="justify-end self-center text-sm font-monospace">{date}</p>
|
<p class="justify-end self-center text-sm font-monospace">{date}</p>
|
||||||
</div>
|
</div>
|
||||||
<p class="text-lg ml-0.5">{entry.content}</p>
|
<p class="text-lg ml-0.5 max-w-[56ch]">{entry.content}</p>
|
||||||
<p
|
<p
|
||||||
class="place-self-end text-sm font-monospace max-w-[16ch] md:max-w-[24ch] lg:max-w-[32ch] overflow-hidden text-ellipsis"
|
class="place-self-end text-sm font-monospace max-w-[16ch] md:max-w-[24ch] lg:max-w-[32ch] overflow-hidden text-ellipsis"
|
||||||
title={entry.author}
|
title={entry.author}
|
||||||
@ -110,6 +111,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</Window>
|
</Window>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<style lang="postcss">
|
<style lang="postcss">
|
||||||
.entry {
|
.entry {
|
||||||
|
Loading…
Reference in New Issue
Block a user