chore:little fixes and formating and linting and patches

This commit is contained in:
2026-03-31 15:50:54 +02:00
parent a1ce71ffb6
commit 9b197abcfa
815 changed files with 22960 additions and 8982 deletions

View File

@@ -1,11 +1,11 @@
import {
type EventHandlerRequest,
type H3Event,
createError,
defineEventHandler,
type EventHandlerRequest,
getHeader,
getRequestIP,
getRequestURL,
type H3Event,
readBody,
setResponseStatus,
} from 'h3';
@@ -24,7 +24,7 @@ function getClientHeaders(event: H3Event<EventHandlerRequest>): Headers {
headers.set('Content-Type', 'application/json');
headers.set(
'openpanel-client-id',
getHeader(event, 'openpanel-client-id') || '',
getHeader(event, 'openpanel-client-id') || ''
);
// Construct origin: browsers send Origin header for POST requests and cross-origin requests,
@@ -47,7 +47,7 @@ function getClientHeaders(event: H3Event<EventHandlerRequest>): Headers {
async function handleApiRoute(
event: H3Event<EventHandlerRequest>,
apiPath: string,
apiPath: string
) {
try {
const res = await fetch(`${API_URL}${apiPath}`, {

View File

@@ -4,14 +4,9 @@
"incremental": false,
"outDir": "dist",
"paths": {
"#app": [
"./node_modules/nuxt/dist/app/index"
]
"#app": ["./node_modules/nuxt/dist/app/index"]
},
"types": [
"@types/node",
"@nuxt/types"
],
"types": ["@types/node", "@nuxt/types"],
"strictNullChecks": true
},
"exclude": ["dist"]