From 71bb84dccc8da8cecf41772d140ba37e69cf3760 Mon Sep 17 00:00:00 2001 From: Dimitrie Stefanescu Date: Tue, 2 Jun 2020 15:36:17 +0100 Subject: [PATCH] feat(auth): user login scaffold --- app.js | 4 ++-- frontend/public/{index.html => app.html} | 0 frontend/src/AppAuth.vue | 23 ++++++++++++++----- frontend/src/views/auth/Login.vue | 10 ++++++++ frontend/vue.config.js | 2 +- modules/core/graph/resolvers/user.js | 15 +++++++----- modules/core/services/users.js | 6 +++++ .../migrations/2020-05-29-thirdpartyapps.js | 3 ++- 8 files changed, 47 insertions(+), 16 deletions(-) rename frontend/public/{index.html => app.html} (100%) diff --git a/app.js b/app.js index e3f27715e..500425d27 100644 --- a/app.js +++ b/app.js @@ -70,9 +70,9 @@ exports.startHttp = async ( app ) => { if ( process.env.NODE_ENV === 'development' ) { debug( 'speckle:http-startup' )( 'Proxying frontend (dev mode):' ) - debug( 'speckle:http-startup' )( `👉 setup application: http://localhost:${port}/setup` ) - debug( 'speckle:http-startup' )( `👉 main application: http://localhost:${port}/app` ) + debug( 'speckle:http-startup' )( `👉 main application: http://localhost:${port}/` ) debug( 'speckle:http-startup' )( `👉 auth application: http://localhost:${port}/auth` ) + debug( 'speckle:http-startup' )( `👉 setup application: http://localhost:${port}/setup` ) debug( 'speckle:hint' )( `â„šī¸ Don't forget to run "npm run dev:frontend" in a different terminal to start the vue application.` ) const frontendProxy = createProxyMiddleware( { target: 'http://localhost:8080', changeOrigin: true, ws: false, logLevel: 'silent' } ) app.use( '/', frontendProxy ) diff --git a/frontend/public/index.html b/frontend/public/app.html similarity index 100% rename from frontend/public/index.html rename to frontend/public/app.html diff --git a/frontend/src/AppAuth.vue b/frontend/src/AppAuth.vue index 85fc64c95..8497a5002 100644 --- a/frontend/src/AppAuth.vue +++ b/frontend/src/AppAuth.vue @@ -33,12 +33,12 @@ Requested scopes