fn build_groups(query: &str, posts: &[PostListItem], dark: bool) -> Vec<Group>
按查询组织面板内容。空查询:常用操作与全部栏目;有查询:命中的文章、操作与栏目。