mirror of
https://github.com/0rangebananaspy/authelia.git
synced 2024-09-14 22:47:21 +07:00
daa30f3aa3
* [FEATURE] Add theme support This change allows users to select a theme for Authelia on start-up. The default will continue to be the existing theme which is known as `light`. Three new options are now also provided: * `dark` * `grey` * `custom` The `custom` theme allows users to specify a primary and secondary hex color code to be utilised to style the portal. Co-authored-by: BankaiNoJutsu <lbegert@gmail.com> * Add themes to integration tests * Remove custom theme * Fix linting issue in access_control_test.go Co-authored-by: BankaiNoJutsu <lbegert@gmail.com>
8 lines
335 B
JavaScript
8 lines
335 B
JavaScript
import { configure } from "enzyme";
|
|
import Adapter from "enzyme-adapter-react-16";
|
|
document.body.setAttribute("data-basepath", "");
|
|
document.body.setAttribute("data-rememberme", "true");
|
|
document.body.setAttribute("data-resetpassword", "true");
|
|
document.body.setAttribute("data-theme", "light");
|
|
configure({ adapter: new Adapter() });
|