diff --git a/client/.env.example b/client/.env.example index fa326946a..868777c08 100644 --- a/client/.env.example +++ b/client/.env.example @@ -1,15 +1,21 @@ +#General configuration PORT=3100 NODE_ENV=development +#Graphql API DEV_GRAPHQL=http://localhost:4100/graphql PROD_GRAPHQL=https://app.advancedalgos.net/graphql +#Auth0 Server AUTH0_DOMAIN=advancedalgos.eu.auth0.com AUTH0_AUDIENCE=https://auth-dev.advancedalgos.net AUTH0_ISSUER=https://advancedalgos.eu.auth0.com/ AUTH0_CLIENTID= +#Auth0 Client AUTH0_CALLBACK_URL=http://localhost:3100/callback AUTH0_LOGOUT_URL=http://localhost:3100 -AUTH0_PROD_CALLBACK_URL=https://app.advancedalgos.net/callback -AUTH0_PROD_LOGOUT_URL=https://app.advancedalgos.net + +#Storage account +AZURE_STORAGE_URL_TEAMS= +AZURE_STORAGE_SAS_TEAMS= diff --git a/client/html/favicon.ico b/client/html/favicon.ico new file mode 100644 index 000000000..08c2369b0 Binary files /dev/null and b/client/html/favicon.ico differ diff --git a/client/html/index.html b/client/html/index.html index e637b9577..4b626d348 100644 --- a/client/html/index.html +++ b/client/html/index.html @@ -10,26 +10,25 @@ - + + + + - - +
- diff --git a/client/src/App.js b/client/src/App.js index bc7694331..dcb3a0323 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -18,7 +18,7 @@ import KeyVault from '@advancedalgos/key-vault-client' import Users from '@advancedalgos/users-client' export const auth = new Auth( - result => console.log('auth result', result), + result => console.log('Authentication successful.'), client ) diff --git a/client/src/views/header/LoggedIn.js b/client/src/views/header/LoggedIn.js index 80d9c557c..be62994b7 100644 --- a/client/src/views/header/LoggedIn.js +++ b/client/src/views/header/LoggedIn.js @@ -28,9 +28,7 @@ export const LoggedIn = props => { return (
-

-

) } diff --git a/client/src/views/header/index.js b/client/src/views/header/index.js index 7c5179242..07c819807 100644 --- a/client/src/views/header/index.js +++ b/client/src/views/header/index.js @@ -53,7 +53,6 @@ const styles = theme => ({ position: 'relative' }, img: { - margin: 20, display: 'block', maxWidth: 240, maxHeight: 48 diff --git a/server/.env.example b/server/.env.example index 1cb345459..a4299b7da 100644 --- a/server/.env.example +++ b/server/.env.example @@ -1,4 +1,4 @@ -GRAPHQL_API_URL='https://dev-app.advancedalgos.net/graphql' -TEAMS_API_URL='https://teams-api.advancedalgos.net/graphql' -USERS_API_URL='https://users-api.advancedalgos.net/graphql' -KEYVAULT_API_URL='https://keyvault-api.advancedalgos.net/graphql' +GRAPHQL_API_URL=https://app-api.advancedalgos.net/graphql +TEAMS_API_URL=https://teams-api.advancedalgos.net/graphql +USERS_API_URL=https://users-api.advancedalgos.net/graphql +KEYVAULT_API_URL=https://keyvault-api.advancedalgos.net/graphql diff --git a/server/src/createRemoteSchema.js b/server/src/createRemoteSchema.js index 5606634d8..3f840c1c1 100644 --- a/server/src/createRemoteSchema.js +++ b/server/src/createRemoteSchema.js @@ -43,7 +43,7 @@ export const createTransformedRemoteSchema = async (prefix, uri) => { try { schema = await createRemoteSchema(uri) } catch (error) { - logger.error(`An error occured while fetching ${prefix} schema. Details: `, error) + logger.error(`An error occured while fetching ${prefix}, ${uri} schema. Details: ${error}`) return false } const transformedSchema = transformSchema(schema, [ diff --git a/server/src/index.js b/server/src/index.js index 3889ddc77..ea5d1502c 100644 --- a/server/src/index.js +++ b/server/src/index.js @@ -78,5 +78,5 @@ async function run () { try { run() } catch (e) { - logger.error(e, e.message, e.stack) + logger.error(`An general error occured while running the app: ${e}, details: ${e.message}, stack: ${e.stack}`) }