Skip to content

Commit

Permalink
Merge pull request #327 from nkaretnikov/green-ui-default
Browse files Browse the repository at this point in the history
Use green UI by default
  • Loading branch information
Nikita Karetnikov authored Nov 4, 2023
2 parents 646c583 + b502db8 commit eef90e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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=/
REACT_APP_LOGOUT_PAGE_URL=http://localhost:8080/conda-store/logout?next=/
4 changes: 2 additions & 2 deletions src/docs/markdown/CONFIGURATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -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=/
```
Expand All @@ -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=",
Expand Down
2 changes: 1 addition & 1 deletion src/preferences.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const prefDefault: Readonly<IPreferences> = {
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)
Expand Down

0 comments on commit eef90e0

Please sign in to comment.