-
Notifications
You must be signed in to change notification settings - Fork 77
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
[WIP] GitHub authentication #224
Conversation
routes/repl/_UserMenu.html
Outdated
@@ -0,0 +1,58 @@ | |||
<div class='user' on:mouseenter='set({ showMenu: true })' on:mouseleave='set({ showMenu: false })'> | |||
<span>{{$user.displayName}}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's possible to have no displayName (I don't have one!) and so this should probably fall back to the username. Right now I'm seeing 'null' here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huh! fixed
Trying to load the SSR'd http://localhost:3000/guide directly is throwing an exception |
user: user && { | ||
// strip access token | ||
id: user.id, | ||
name: user.name, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be username: user.username
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, you're right — fixed
Saving/updating an existing gist looks like it mostly works, but it does lose README.md, data.json, and meta.json. |
Fixed all those points now, thanks @Conduitry. Some fairly substantial changes in this PR:
|
This will fix #211. The codebase is in a bad state though, so I'm also tidying some stuff up to make that easier