Skip to content

Commit

Permalink
Enable change of AdminLTE skin colours
Browse files Browse the repository at this point in the history
  • Loading branch information
Neloop committed Jan 15, 2018
1 parent e1c05e1 commit 5c934a0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .env-sample
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ PORT=443
# REDUX_DEV_SERVER_PORT=8082

TITLE=ReCodEx
SKING=skin-green
ALLOW_NORMAL_REGISTRATION=true
ALLOW_LDAP_REGISTRATION=false
ALLOW_CAS_REGISTRATION=true
Expand All @@ -14,7 +15,7 @@ ALLOW_CAS_REGISTRATION=true
# LOGGER_MIDDLEWARE is active only if NODE_ENV=development

# verbose debug action logging
LOGGER_MIDDLEWARE_VERBOSE=false
LOGGER_MIDDLEWARE_VERBOSE=false

# log complete dump of exceptions
LOGGER_MIDDLEWARE_EXCEPTIONS=true
1 change: 1 addition & 0 deletions config/webpack.config-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ module.exports = {
NODE_ENV: "'" + process.env.NODE_ENV + "'",
API_BASE: "'" + process.env.API_BASE + "'",
TITLE: "'" + process.env.TITLE + "'",
SKIN: "'" + process.env.SKIN + "'",
REDUX_DEV_SERVER_PORT: "'" + process.env.REDUX_DEV_SERVER_PORT + "'",
ALLOW_NORMAL_REGISTRATION:
"'" + process.env.ALLOW_NORMAL_REGISTRATION + "'",
Expand Down
1 change: 1 addition & 0 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ module.exports = {
NODE_ENV: "'" + process.env.NODE_ENV + "'",
API_BASE: "'" + process.env.API_BASE + "'",
TITLE: "'" + process.env.TITLE + "'",
SKIN: "'" + process.env.SKIN + "'",
REDUX_DEV_SERVER_PORT: "'" + process.env.REDUX_DEV_SERVER_PORT + "'",
ALLOW_NORMAL_REGISTRATION:
"'" + process.env.ALLOW_NORMAL_REGISTRATION + "'",
Expand Down
3 changes: 1 addition & 2 deletions src/containers/LayoutContainer/LayoutContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ import { messages, localeData, defaultLanguage } from '../../locales';
import { linksFactory, isAbsolute } from '../../links';

import 'admin-lte/dist/css/AdminLTE.min.css';
import 'admin-lte/dist/css/skins/skin-green.min.css';
// import 'admin-lte/dist/css/skins/skin-purple.min.css';
import 'admin-lte/dist/css/skins/_all-skins.min.css';

/**
* Handles the dependency injection of the localized links based on the current language stated in the URL.
Expand Down
2 changes: 1 addition & 1 deletion views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

<script>
document.getElementById('loading-screen').remove();
document.body.className = "skin-green fixed";
document.body.className = "<%= process.env.SKIN ? process.env.SKIN : 'skin-green' %> fixed";
</script>

Expand Down

0 comments on commit 5c934a0

Please sign in to comment.