fix: rename unused ctx params to _ctx, remove unused imports
- Fix 17 unused ctx params in module-builder, verbandsverwaltung, sitzungsprotokolle actions - Remove unused CardDescription/CardHeader/CardTitle from pricing calculator - Remove unused FileSignature import from layout
This commit is contained in:
@@ -11,9 +11,6 @@ import { Button } from '@kit/ui/button';
|
|||||||
import {
|
import {
|
||||||
Card,
|
Card,
|
||||||
CardContent,
|
CardContent,
|
||||||
CardDescription,
|
|
||||||
CardHeader,
|
|
||||||
CardTitle,
|
|
||||||
} from '@kit/ui/card';
|
} from '@kit/ui/card';
|
||||||
import {
|
import {
|
||||||
Table,
|
Table,
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ import {
|
|||||||
BookOpen,
|
BookOpen,
|
||||||
ShieldCheck,
|
ShieldCheck,
|
||||||
Trophy,
|
Trophy,
|
||||||
FileSignature,
|
|
||||||
ScrollText,
|
ScrollText,
|
||||||
ListChecks,
|
ListChecks,
|
||||||
BookMarked,
|
BookMarked,
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export const uploadFile = authActionClient
|
|||||||
recordId: z.string().uuid().optional(),
|
recordId: z.string().uuid().optional(),
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.action(async ({ parsedInput: input, ctx }) => {
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
||||||
const client = getSupabaseServerClient();
|
const client = getSupabaseServerClient();
|
||||||
const logger = await getLogger();
|
const logger = await getLogger();
|
||||||
const api = createModuleBuilderApi(client);
|
const api = createModuleBuilderApi(client);
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import { validateRecordData } from '../services/record-validation.service';
|
|||||||
|
|
||||||
export const createRecord = authActionClient
|
export const createRecord = authActionClient
|
||||||
.inputSchema(CreateRecordSchema)
|
.inputSchema(CreateRecordSchema)
|
||||||
.action(async ({ parsedInput: input, ctx }) => {
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
||||||
const client = getSupabaseServerClient();
|
const client = getSupabaseServerClient();
|
||||||
const logger = await getLogger();
|
const logger = await getLogger();
|
||||||
const api = createModuleBuilderApi(client);
|
const api = createModuleBuilderApi(client);
|
||||||
@@ -69,7 +69,7 @@ export const createRecord = authActionClient
|
|||||||
|
|
||||||
export const updateRecord = authActionClient
|
export const updateRecord = authActionClient
|
||||||
.inputSchema(UpdateRecordSchema.extend({ accountId: z.string().uuid() }))
|
.inputSchema(UpdateRecordSchema.extend({ accountId: z.string().uuid() }))
|
||||||
.action(async ({ parsedInput: input, ctx }) => {
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
||||||
const client = getSupabaseServerClient();
|
const client = getSupabaseServerClient();
|
||||||
const logger = await getLogger();
|
const logger = await getLogger();
|
||||||
const api = createModuleBuilderApi(client);
|
const api = createModuleBuilderApi(client);
|
||||||
@@ -123,7 +123,7 @@ export const updateRecord = authActionClient
|
|||||||
|
|
||||||
export const deleteRecord = authActionClient
|
export const deleteRecord = authActionClient
|
||||||
.inputSchema(DeleteRecordSchema.extend({ accountId: z.string().uuid() }))
|
.inputSchema(DeleteRecordSchema.extend({ accountId: z.string().uuid() }))
|
||||||
.action(async ({ parsedInput: input, ctx }) => {
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
||||||
const client = getSupabaseServerClient();
|
const client = getSupabaseServerClient();
|
||||||
const logger = await getLogger();
|
const logger = await getLogger();
|
||||||
const api = createModuleBuilderApi(client);
|
const api = createModuleBuilderApi(client);
|
||||||
@@ -154,7 +154,7 @@ export const deleteRecord = authActionClient
|
|||||||
|
|
||||||
export const lockRecord = authActionClient
|
export const lockRecord = authActionClient
|
||||||
.inputSchema(LockRecordSchema.extend({ accountId: z.string().uuid() }))
|
.inputSchema(LockRecordSchema.extend({ accountId: z.string().uuid() }))
|
||||||
.action(async ({ parsedInput: input, ctx }) => {
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
||||||
const client = getSupabaseServerClient();
|
const client = getSupabaseServerClient();
|
||||||
const api = createModuleBuilderApi(client);
|
const api = createModuleBuilderApi(client);
|
||||||
const userId = ctx.user.id;
|
const userId = ctx.user.id;
|
||||||
@@ -182,7 +182,7 @@ export const bulkImportRecords = authActionClient
|
|||||||
dryRun: z.boolean().default(false),
|
dryRun: z.boolean().default(false),
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.action(async ({ parsedInput: input, ctx }) => {
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
||||||
const client = getSupabaseServerClient();
|
const client = getSupabaseServerClient();
|
||||||
const logger = await getLogger();
|
const logger = await getLogger();
|
||||||
const api = createModuleBuilderApi(client);
|
const api = createModuleBuilderApi(client);
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ const REVALIDATION_PATH = '/home/[account]/meetings';
|
|||||||
|
|
||||||
export const createProtocol = authActionClient
|
export const createProtocol = authActionClient
|
||||||
.inputSchema(CreateMeetingProtocolSchema)
|
.inputSchema(CreateMeetingProtocolSchema)
|
||||||
.action(async ({ parsedInput: input, ctx }) => {
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
||||||
const client = getSupabaseServerClient();
|
const client = getSupabaseServerClient();
|
||||||
const logger = await getLogger();
|
const logger = await getLogger();
|
||||||
const api = createMeetingsApi(client);
|
const api = createMeetingsApi(client);
|
||||||
@@ -44,7 +44,7 @@ export const createProtocol = authActionClient
|
|||||||
|
|
||||||
export const updateProtocol = authActionClient
|
export const updateProtocol = authActionClient
|
||||||
.inputSchema(UpdateMeetingProtocolSchema)
|
.inputSchema(UpdateMeetingProtocolSchema)
|
||||||
.action(async ({ parsedInput: input, ctx }) => {
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
||||||
const client = getSupabaseServerClient();
|
const client = getSupabaseServerClient();
|
||||||
const logger = await getLogger();
|
const logger = await getLogger();
|
||||||
const api = createMeetingsApi(client);
|
const api = createMeetingsApi(client);
|
||||||
@@ -88,7 +88,7 @@ export const deleteProtocol = authActionClient
|
|||||||
|
|
||||||
export const createProtocolItem = authActionClient
|
export const createProtocolItem = authActionClient
|
||||||
.inputSchema(CreateProtocolItemSchema)
|
.inputSchema(CreateProtocolItemSchema)
|
||||||
.action(async ({ parsedInput: input, ctx }) => {
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
||||||
const client = getSupabaseServerClient();
|
const client = getSupabaseServerClient();
|
||||||
const logger = await getLogger();
|
const logger = await getLogger();
|
||||||
const api = createMeetingsApi(client);
|
const api = createMeetingsApi(client);
|
||||||
@@ -109,7 +109,7 @@ export const createProtocolItem = authActionClient
|
|||||||
|
|
||||||
export const updateProtocolItem = authActionClient
|
export const updateProtocolItem = authActionClient
|
||||||
.inputSchema(UpdateProtocolItemSchema)
|
.inputSchema(UpdateProtocolItemSchema)
|
||||||
.action(async ({ parsedInput: input, ctx }) => {
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
||||||
const client = getSupabaseServerClient();
|
const client = getSupabaseServerClient();
|
||||||
const logger = await getLogger();
|
const logger = await getLogger();
|
||||||
const api = createMeetingsApi(client);
|
const api = createMeetingsApi(client);
|
||||||
@@ -130,7 +130,7 @@ export const updateProtocolItem = authActionClient
|
|||||||
|
|
||||||
export const updateItemStatus = authActionClient
|
export const updateItemStatus = authActionClient
|
||||||
.inputSchema(UpdateItemStatusSchema)
|
.inputSchema(UpdateItemStatusSchema)
|
||||||
.action(async ({ parsedInput: input, ctx }) => {
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
||||||
const client = getSupabaseServerClient();
|
const client = getSupabaseServerClient();
|
||||||
const logger = await getLogger();
|
const logger = await getLogger();
|
||||||
const api = createMeetingsApi(client);
|
const api = createMeetingsApi(client);
|
||||||
@@ -198,7 +198,7 @@ export const addProtocolAttachment = authActionClient
|
|||||||
mimeType: z.string().min(1),
|
mimeType: z.string().min(1),
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.action(async ({ parsedInput: input, ctx }) => {
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
||||||
const client = getSupabaseServerClient();
|
const client = getSupabaseServerClient();
|
||||||
const logger = await getLogger();
|
const logger = await getLogger();
|
||||||
const api = createMeetingsApi(client);
|
const api = createMeetingsApi(client);
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ const REVALIDATE_PATH = '/home/[account]/verband';
|
|||||||
|
|
||||||
export const linkChildAccount = authActionClient
|
export const linkChildAccount = authActionClient
|
||||||
.inputSchema(SetAccountParentSchema)
|
.inputSchema(SetAccountParentSchema)
|
||||||
.action(async ({ parsedInput: input, ctx }) => {
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
||||||
const client = getSupabaseServerClient();
|
const client = getSupabaseServerClient();
|
||||||
const logger = await getLogger();
|
const logger = await getLogger();
|
||||||
|
|
||||||
@@ -69,7 +69,7 @@ export const linkChildAccount = authActionClient
|
|||||||
|
|
||||||
export const unlinkChildAccount = authActionClient
|
export const unlinkChildAccount = authActionClient
|
||||||
.inputSchema(RemoveAccountParentSchema)
|
.inputSchema(RemoveAccountParentSchema)
|
||||||
.action(async ({ parsedInput: input, ctx }) => {
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
||||||
const client = getSupabaseServerClient();
|
const client = getSupabaseServerClient();
|
||||||
const logger = await getLogger();
|
const logger = await getLogger();
|
||||||
|
|
||||||
@@ -141,7 +141,7 @@ export const getTransferPreview = authActionClient
|
|||||||
|
|
||||||
export const transferMember = authActionClient
|
export const transferMember = authActionClient
|
||||||
.inputSchema(TransferMemberSchema)
|
.inputSchema(TransferMemberSchema)
|
||||||
.action(async ({ parsedInput: input, ctx }) => {
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
||||||
const client = getSupabaseServerClient();
|
const client = getSupabaseServerClient();
|
||||||
const logger = await getLogger();
|
const logger = await getLogger();
|
||||||
const api = createVerbandApi(client);
|
const api = createVerbandApi(client);
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ const REVALIDATE_PATH = '/home/[account]/verband';
|
|||||||
|
|
||||||
export const createClub = authActionClient
|
export const createClub = authActionClient
|
||||||
.inputSchema(CreateMemberClubSchema)
|
.inputSchema(CreateMemberClubSchema)
|
||||||
.action(async ({ parsedInput: input, ctx }) => {
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
||||||
const client = getSupabaseServerClient();
|
const client = getSupabaseServerClient();
|
||||||
const logger = await getLogger();
|
const logger = await getLogger();
|
||||||
const api = createVerbandApi(client);
|
const api = createVerbandApi(client);
|
||||||
@@ -46,7 +46,7 @@ export const createClub = authActionClient
|
|||||||
|
|
||||||
export const updateClub = authActionClient
|
export const updateClub = authActionClient
|
||||||
.inputSchema(UpdateMemberClubSchema)
|
.inputSchema(UpdateMemberClubSchema)
|
||||||
.action(async ({ parsedInput: input, ctx }) => {
|
.action(async ({ parsedInput: input, ctx: _ctx }) => {
|
||||||
const client = getSupabaseServerClient();
|
const client = getSupabaseServerClient();
|
||||||
const logger = await getLogger();
|
const logger = await getLogger();
|
||||||
const api = createVerbandApi(client);
|
const api = createVerbandApi(client);
|
||||||
|
|||||||
Reference in New Issue
Block a user