package updates, minor bug fixes, stack items, background animation fixes

This commit is contained in:
2026-06-06 12:15:01 +02:00
parent 65b9184a22
commit f5e8b87846
21 changed files with 775 additions and 359 deletions

View File

@@ -15,9 +15,6 @@ export const cvCategoryRouter = router({
}),
getById: publicProcedure.input(z.string()).query(async ({input}) => {
const res = await db.query.cvCategory.findFirst({
with: {
cvEntry: true
},
where(fields, operators) {
return operators.eq(fields.id, input)
},

View File

@@ -13,4 +13,14 @@ export const cvEntryRouter = router({
})
return res;
}),
byCategoryAndToDateDescending: publicProcedure.input(z.string()).query(async ({input}) => {
const res = await db.query.cvEntry.findMany({
with: {
category: true
},
where: (fields, {eq}) => eq(fields.categoryId,input),
orderBy: (t,{desc}) => desc(t.toTime),
})
return res;
})
});

View File

@@ -1,5 +1,5 @@
import { publicProcedure, router } from "~/server/trpc";
import { db } from "~/server/db";
import { publicProcedure, router } from "~/server/trpc";
type ReadmeRequest = {
url: string;
@@ -71,6 +71,11 @@ async function fetchReadme(sourceLink: string) {
export const projectRouter = router({
listWithStack: publicProcedure.query(async () => {
const projects = await db.query.project.findMany({
orderBy: (project, { asc }) => [
asc(project.orderPos),
asc(project.title),
asc(project.id),
],
with: {
techStack: true,
},