forked from knadh/listmonk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Use 'config-overrides.js' with less loader to load ant.design's less files instead of the compiled css to override theme variables - Change logo, favicon, and primary theme colours - Add pageTitle() to App() to let components set page titles - Move all notifications to bottomRight to avoid blocking action items on the UI
- Loading branch information
Showing
20 changed files
with
1,587 additions
and
268 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
const {injectBabelPlugin} = require("react-app-rewired"); | ||
const rewireLess = require("react-app-rewire-less"); | ||
|
||
module.exports = function override(config, env) { | ||
config = injectBabelPlugin( | ||
[ | ||
"import", { | ||
libraryName: "antd", | ||
libraryDirectory: "es", | ||
style: true | ||
} | ||
], // change importing css to less | ||
config, | ||
); | ||
config = rewireLess.withLoaderOptions({ | ||
modifyVars: { | ||
"@font-family": | ||
'"IBM Plex Sans", "Helvetica Neueue", "Segoe UI", "sans-serif"', | ||
"@font-size-base": "15px", | ||
"@primary-color": "#7f2aff", | ||
"@shadow-1-up": "0 -2px 3px @shadow-color", | ||
"@shadow-1-down": "0 2px 3px @shadow-color", | ||
"@shadow-1-left": "-2px 0 3px @shadow-color", | ||
"@shadow-1-right": "2px 0 3px @shadow-color", | ||
"@shadow-2": "0 2px 6px @shadow-color" | ||
}, | ||
javascriptEnabled: true, | ||
})(config, env); | ||
return config; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.