From 09371e643eb7fbd9a2dae4ccc559f107b9e62539 Mon Sep 17 00:00:00 2001 From: corb3nik Date: Mon, 16 Sep 2024 22:18:27 -0400 Subject: [PATCH] Add dark mode selector --- manifest.json | 2 +- packages/frontend/src/app.ts | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 1ef2e06..4124c76 100644 --- a/manifest.json +++ b/manifest.json @@ -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.", diff --git a/packages/frontend/src/app.ts b/packages/frontend/src/app.ts index 56633f0..09df142 100644 --- a/packages/frontend/src/app.ts +++ b/packages/frontend/src/app.ts @@ -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,