From 23696abdb70b04e881cb7417dd9fc54df866caf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Thu, 31 Jan 2019 09:35:20 -0600 Subject: [PATCH] Page --- app/views/dev.js | 7 +++++++ app/views/redirect.js | 38 +++++++++++++++++++++++--------------- 2 files changed, 30 insertions(+), 15 deletions(-) diff --git a/app/views/dev.js b/app/views/dev.js index 4cfd605..ce0c3cf 100644 --- a/app/views/dev.js +++ b/app/views/dev.js @@ -27,3 +27,10 @@ export default () => html` `; + +// TODO: +// Provide flow where user logs in with GitHub: +// - get access token +// - show field for user to enter their wallet address +// - send access token and wallet address to API +// - parse response diff --git a/app/views/redirect.js b/app/views/redirect.js index d25daab..1c5b8bc 100644 --- a/app/views/redirect.js +++ b/app/views/redirect.js @@ -48,23 +48,31 @@ export default (state, emit) => { // eslint-disable-line // below should be refactored into components let pageScript = ""; - if (partialPath === "glossary") - pageScript = - ""; + switch(true) { + case partialPath === "glossary": + pageScript = + ""; + break; - if (partialPath === "overview") - pageScript = - ""; + case partialPath === "overview": + pageScript = + ""; + break; - if (partialPath === "playground") - pageScript = - ""; + case partialPath === "playground": + pageScript = + ""; + break; + + default: + break; + } return html`