Skip to content

Commit

Permalink
Remove publisher portal changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ashera96 committed Feb 7, 2024
1 parent 0b27220 commit c77cc35
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
1 change: 1 addition & 0 deletions portals/publisher/src/main/webapp/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module.exports = {
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
'<rootDir>/source/Tests/Unit/__mocks__/fileMock.js',
'\\.(css|less)$': '<rootDir>/source/Tests/Unit/__mocks__/styleMock.js',
userCustomThemes: '<rootDir>/site/public/conf/userThemes.js',
'^Config$': '<rootDir>/site/public/conf/settings.json',
'^MaterialIcons$': '<rootDir>/site/public/fonts/iconfont/MaterialIcons.js',
'^monaco-editor$': '<rootDir>/node_modules/react-monaco-editor',
Expand Down
1 change: 1 addition & 0 deletions portals/publisher/src/main/webapp/publisher/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<div class="apim-dual-ring"></div>
</div>
<script src="/site/public/fonts/iconfont/MaterialIcons.js"></script>
<script src="/site/public/conf/userThemes.js"></script>
<script src="/site/public/conf/portalSettings.js"></script>
<script src="/services/settings/settings.js"></script>
<script src="/site/public/dist/index.bundle.js"></script>
Expand Down
26 changes: 26 additions & 0 deletions portals/publisher/src/main/webapp/site/public/conf/userThemes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/**
* IMPORTANT: This file only contains theme JSS of the Publisher app, Don't add other configuration parameters here.
* This theme file is an extension of material-ui default theme https://material-ui.com/customization/default-theme/
* Application related configurations are located in `<PUBLISHER_ROOT>site/public/theme/settings.json`
*/
const userThemes = {
light(theme) {
return (
{
overrides: {
MuiRadio: {
colorSecondary: {
'&$checked': { color: theme.palette.primary.main },
'&$disabled': {
color: theme.palette.action.disabled,
},
},
},
},
}
);
},
};
if (typeof module !== 'undefined') {
module.exports = userThemes; // Added for tests
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
</div>

<script src="<%= context%>/site/public/fonts/iconfont/MaterialIcons.js"></script>
<script src="<%= context%>/site/public/conf/userThemes.js"></script>
<script src="<%= context%>/services/settings/settings.js"></script>
<script src="<%= context%>/site/public/conf/portalSettings.js"></script>
<script>
Expand Down

0 comments on commit c77cc35

Please sign in to comment.