improved iconPicker component + other improvements

This commit is contained in:
daniel31x13
2024-08-19 18:14:09 -04:00
parent 2893d3caf2
commit dc388ebba5
15 changed files with 222 additions and 72 deletions
@@ -0,0 +1,8 @@
-- AlterTable
ALTER TABLE "Collection" ADD COLUMN "icon" TEXT,
ADD COLUMN "iconWeight" TEXT;
-- AlterTable
ALTER TABLE "Link" ADD COLUMN "color" TEXT,
ADD COLUMN "icon" TEXT,
ADD COLUMN "iconWeight" TEXT;
@@ -0,0 +1,3 @@
-- AlterTable
ALTER TABLE "Collection" ALTER COLUMN "color" DROP NOT NULL,
ALTER COLUMN "color" DROP DEFAULT;
+6 -1
View File
@@ -94,7 +94,9 @@ model Collection {
id Int @id @default(autoincrement())
name String
description String @default("")
color String @default("#0ea5e9")
icon String?
iconWeight String?
color String?
parentId Int?
parent Collection? @relation("SubCollections", fields: [parentId], references: [id])
subCollections Collection[] @relation("SubCollections")
@@ -133,6 +135,9 @@ model Link {
collection Collection @relation(fields: [collectionId], references: [id])
collectionId Int
tags Tag[]
icon String?
iconWeight String?
color String?
url String?
textContent String?
preview String?