generated from caido/starterkit-plugin
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
1,344 additions
and
361 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
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,78 @@ | ||
import { defineConfig } from '@caido-community/dev'; | ||
import vue from '@vitejs/plugin-vue'; | ||
import tailwindcss from "tailwindcss"; | ||
// @ts-expect-error no declared types at this time | ||
import tailwindPrimeui from "tailwindcss-primeui"; | ||
import tailwindCaido from "@caido/tailwindcss"; | ||
import prefixwrap from "postcss-prefixwrap"; | ||
import path from "path"; | ||
|
||
export default defineConfig({ | ||
id: "authmatrix", | ||
name: "AuthMatrix", | ||
description: "Grid-based authorization testing across multiple users and roles.", | ||
version: "0.4.0", | ||
author: { | ||
name: "Caido Labs Inc.", | ||
email: "[email protected]", | ||
url: "https://caido.io", | ||
}, | ||
plugins: [ | ||
{ | ||
kind: "backend", | ||
id: "backend", | ||
root: "packages/backend", | ||
}, | ||
{ | ||
kind: 'frontend', | ||
id: "frontend", | ||
root: 'packages/frontend', | ||
backend: { | ||
id: "backend", | ||
}, | ||
vite: { | ||
plugins: [vue()], | ||
build: { | ||
rollupOptions: { | ||
external: ['@caido/frontend-sdk'] | ||
} | ||
}, | ||
resolve: { | ||
alias: [ | ||
{ | ||
find: "@", | ||
replacement: path.resolve(__dirname, "packages/frontend/src"), | ||
}, | ||
], | ||
}, | ||
css: { | ||
postcss: { | ||
plugins: [ | ||
prefixwrap("#plugin--authmatrix"), | ||
tailwindcss({ | ||
corePlugins: { | ||
preflight: false, | ||
}, | ||
content: [ | ||
'./packages/frontend/src/**/*.{vue,ts}', | ||
'./node_modules/@caido/primevue/dist/primevue.mjs' | ||
], | ||
// Check the [data-mode="dark"] attribute on the <html> element to determine the mode | ||
// This attribute is set in the Caido core application | ||
darkMode: ["selector", '[data-mode="dark"]'], | ||
plugins: [ | ||
|
||
// This plugin injects the necessary Tailwind classes for PrimeVue components | ||
tailwindPrimeui, | ||
|
||
// This plugin injects the necessary Tailwind classes for the Caido theme | ||
tailwindCaido, | ||
], | ||
}) | ||
] | ||
} | ||
} | ||
} | ||
} | ||
] | ||
}); |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.