chore: checkpoint admin editor and perf work

This commit is contained in:
2026-03-31 00:12:02 +08:00
parent 92a85eef20
commit 99b308e800
45 changed files with 7265 additions and 833 deletions

View File

@@ -19,9 +19,14 @@ const selectedSearch = url.searchParams.get('search') || '';
const { t } = getI18n(Astro);
try {
allPosts = selectedSearch ? await api.searchPosts(selectedSearch) : await api.getPosts();
allCategories = await api.getCategories();
const rawTags = await api.getTags();
const [posts, categories, rawTags] = await Promise.all([
selectedSearch ? api.searchPosts(selectedSearch) : api.getPosts(),
api.getCategories(),
api.getTags(),
]);
allPosts = posts;
allCategories = categories;
const seenTagIds = new Set<string>();
allTags = rawTags.filter(tag => {
const key = `${tag.slug}:${tag.name}`.toLowerCase();