advanced-related-pagesのデータ構造
from Indexed DBにScrapbox APIのcacheを保存する
advanced-related-pagesのデータ構造
linkspageのリンク情報
code:ts
type Page = {
id: string; // keyにする
project: string; // indexにする
title: string;
links: string[]; // 順リンクを入れる
};
links-updated更新情報
code:ts
type PageProjectUpdated = {
project: string;
updated: number;
};
/scrapboxlab/api/projects/:projectnameを叩いてupdatedを比較する
もし新しい更新があったら、object storeを更新する
thumbnailspageのサムネイル情報
scrapbox-card-bubbleで使う
code:ts
type PageThumbnail = {
id: string;
project: string;
title: string;
descriptions: string[];
image: string | null;
updated: number;
};
thumbnails-updated更新情報
code:ts
type PageThumbnailUpdated = {
project: string;
updated;
};
projectsprojectの情報
code:ts
type Project = {
id: string;
name: string;
displayName: string;
theme: string;
updated: number;
};
#2021-03-08 05:40:07