-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcaido.config.ts
79 lines (75 loc) · 2.25 KB
/
caido.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import path from "path";
import tailwindCaido from "@caido/tailwindcss";
import { defineConfig } from "@caido-community/dev";
import vue from "@vitejs/plugin-vue";
import prefixwrap from "postcss-prefixwrap";
import tailwindcss from "tailwindcss";
// @ts-expect-error
import tailwindPrimeui from "tailwindcss-primeui";
const id = "quickssrf";
export default defineConfig({
id,
name: "QuickSSRF",
version: "0.1.7",
description: "Real-time Interaction Monitoring with Interactsh",
author: {
name: "w2xim3",
email: "[email protected]",
},
plugins: [
{
id: "quickssrf-frontend",
root: "packages/frontend",
kind: "frontend",
backend: {
id: "quickssrf-backend",
},
vite: {
plugins: [vue()],
build: {
rollupOptions: {
external: ["@caido/frontend-sdk"],
},
},
resolve: {
alias: [
{
find: "@",
replacement: path.resolve(__dirname, "packages/frontend/src"),
},
],
},
css: {
postcss: {
plugins: [
// This plugin injects the necessary Tailwind classes
tailwindcss({
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 plugin wraps the root element in a unique ID
// This is necessary to prevent styling conflicts between plugins
prefixwrap(`#plugin--${id}`),
],
},
},
},
},
{
id: "quickssrf-backend",
root: "packages/backend",
kind: "backend",
},
],
});