feat: rewrite image picker

This commit is contained in:
ajnart committed 2026-08-11 11:26:45 +02:00
1 parent 464d98e124
commit 8cbe5572f5
15 files changed
+918 -267

No files matched your search

+1
View File
@@ -25,6 +25,7 @@ export const iconsRouter = createTRPCRouter({
return {
icons: await ctx.db.query.iconRepositories.findMany({
orderBy: (table, { asc, sql }) => [sql`CASE WHEN ${table.slug} = 'local' THEN 0 ELSE 1 END`, asc(table.slug)],
with: {
icons: {
columns: { id: true, name: true, url: true },