diff --git a/.env.example b/.env.example index e20a1fde..7e6305ea 100644 --- a/.env.example +++ b/.env.example @@ -2,7 +2,7 @@ REACT_APP_API_URL=http://localhost:8080/conda-store/ REACT_APP_AUTH_METHOD=cookie REACT_APP_LOGIN_PAGE_URL=http://localhost:8080/conda-store/login?next= REACT_APP_AUTH_TOKEN= -REACT_APP_STYLE_TYPE=grayscale +REACT_APP_STYLE_TYPE=green-accent REACT_APP_CONTEXT=webapp REACT_APP_SHOW_AUTH_BUTTON=true -REACT_APP_LOGOUT_PAGE_URL=http://localhost:8080/conda-store/logout?next=/ \ No newline at end of file +REACT_APP_LOGOUT_PAGE_URL=http://localhost:8080/conda-store/logout?next=/ diff --git a/src/docs/markdown/CONFIGURATION.md b/src/docs/markdown/CONFIGURATION.md index 9e9b2b07..ea4325b2 100644 --- a/src/docs/markdown/CONFIGURATION.md +++ b/src/docs/markdown/CONFIGURATION.md @@ -17,7 +17,7 @@ REACT_APP_API_URL=http://localhost:8080/conda-store REACT_APP_AUTH_METHOD=cookie REACT_APP_LOGIN_PAGE_URL=http://localhost:8080/conda-store/login?next= REACT_APP_AUTH_TOKEN= -REACT_APP_STYLE_TYPE=grayscale +REACT_APP_STYLE_TYPE=green-accent REACT_APP_SHOW_AUTH_BUTTON=true REACT_APP_LOGOUT_PAGE_URL=http://localhost:8080/conda-store/logout?next=/ ``` @@ -32,7 +32,7 @@ In your HTML file, add the following **before** loading the react app : const condaStoreConfig = { REACT_APP_AUTH_METHOD: "cookie", REACT_APP_AUTH_TOKEN: "", - REACT_APP_STYLE_TYPE: "grayscale", + REACT_APP_STYLE_TYPE: "green-accent", REACT_APP_SHOW_AUTH_BUTTON: "true", REACT_APP_API_URL: "http://localhost:8080/conda-store", REACT_APP_LOGIN_PAGE_URL: "http://localhost:8080/conda-store/login?next=", diff --git a/src/preferences.tsx b/src/preferences.tsx index e240b9b8..835575ea 100644 --- a/src/preferences.tsx +++ b/src/preferences.tsx @@ -37,7 +37,7 @@ export const prefDefault: Readonly = { styleType: process.env.REACT_APP_STYLE_TYPE ?? condaStoreConfig.REACT_APP_STYLE_TYPE ?? - "grayscale", + "green-accent", showAuthButton: process.env.REACT_APP_SHOW_AUTH_BUTTON ? JSON.parse(process.env.REACT_APP_SHOW_AUTH_BUTTON)