implement edit bookmark dialog

This commit is contained in:
2025-05-25 15:40:16 +01:00
parent 255acfcb32
commit 6afb5dee9a
22 changed files with 630 additions and 127 deletions

View File

@@ -3,6 +3,7 @@
"module": "src/index.ts",
"type": "module",
"exports": {
".": "./src/index.ts",
"./bookmark": "./src/bookmark.ts",
"./user": "./src/user.ts"
},

View File

@@ -1,17 +1,15 @@
type BookmarkKind = "link" | "placeholder"
import type { Tag } from "./tag.ts"
interface Bookmark {
id: string
title: string
url: string
tags: BookmarkTag[]
}
interface BookmarkTag {
id: string
name: string
interface TaggedBookmark extends Bookmark {
tags: Tag[]
}
type BookmarkId = Bookmark["id"]
export type { Bookmark, BookmarkId, BookmarkKind, BookmarkTag }
export type { Bookmark, TaggedBookmark, BookmarkId, Tag }

View File

@@ -0,0 +1,3 @@
export * from "./bookmark.ts"
export * from "./tag.ts"
export * from "./user.ts"

6
packages/core/src/tag.ts Normal file
View File

@@ -0,0 +1,6 @@
interface Tag {
id: string
name: string
}
export type { Tag }