vuepress-cqy
Version:
This is an anime blog theme based on vuepress, the theme is simple, colorful, versatile, and supports customization, providing multiple components to set the theme 这是一个基于vuepress的动漫类型主题,简洁,界面漂亮,多色彩,多自定义,多功能,海报分享,相册等等,满足你搭建博客的一切需要
13 lines (12 loc) • 383 B
JavaScript
import { isLinkHttp } from '@vuepress/shared';
export const resolveRepoType = (repo) => {
if (!isLinkHttp(repo) || /github\.com/.test(repo))
return 'GitHub';
if (/bitbucket\.org/.test(repo))
return 'Bitbucket';
if (/gitlab\.com/.test(repo))
return 'GitLab';
if (/gitee\.com/.test(repo))
return 'Gitee';
return null;
};