vuepress-theme-ccds-test
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
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;
};