Skip to content

Commit

Permalink
Add dark mode selector
Browse files Browse the repository at this point in the history
  • Loading branch information
Corb3nik committed Sep 17, 2024
1 parent 43a3b23 commit 09371e6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "authmatrix",
"name": "AuthMatrix",
"version": "0.1.1",
"version": "0.1.2",
"description": "Grid-based authorization testing across multiple users and roles.",
"author": {
"name": "Caido Labs Inc.",
Expand Down
7 changes: 7 additions & 0 deletions packages/frontend/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ export const defineApp = (sdk: CaidoSDK) => {
app.use(PrimeVue, {
theme: {
preset: ClassicTheme,
options: {
/**
* The selector to use to determine if the user has selected dark mode.
* This selector is present in the HTML of the core Caido app, not the plugin.
*/
darkModeSelector: "[data-mode=dark]",
}
},
pt: {
...ClassicThemePassthrough,
Expand Down

0 comments on commit 09371e6

Please sign in to comment.