mirror of
https://github.com/alibaba/arthas.git
synced 2024-04-21 10:21:39 +00:00
Prettified Code!
This commit is contained in:
committed by
GitHub Action
parent
275a54c0f1
commit
af70d95383
@@ -14,7 +14,7 @@ const addOldDocsContributors = () => {
|
||||
return contributors.find(
|
||||
(contributor) =>
|
||||
contributor.name === oldContributor.name &&
|
||||
contributor.email === oldContributor.email
|
||||
contributor.email === oldContributor.email,
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ export default defineUserConfig({
|
||||
.map((page) => [
|
||||
page.path.replace(/^\/en\/doc\//, "/doc/en/"),
|
||||
page.path,
|
||||
])
|
||||
]),
|
||||
);
|
||||
|
||||
delete redirects["/doc/en/"];
|
||||
|
||||
@@ -8,7 +8,7 @@ export function loadVersionPlugin() {
|
||||
|
||||
const getVersionByMaven = async () => {
|
||||
return await fetch(
|
||||
"https://search.maven.org/solrsearch/select?q=arthas&rows=1&wt=json"
|
||||
"https://search.maven.org/solrsearch/select?q=arthas&rows=1&wt=json",
|
||||
)
|
||||
.then((res) => res.json())
|
||||
.then((res) => res.response.docs[0].latestVersion);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
@@ -1142,8 +1142,8 @@
|
||||
<script type="text/javascript">
|
||||
document.write(
|
||||
unescape(
|
||||
"%3Cspan style='display:none;' id='cnzz_stat_icon_1279151497'%3E%3C/span%3E%3Cscript src='https://s4.cnzz.com/z_stat.php%3Fid%3D1279151497' type='text/javascript'%3E%3C/script%3E"
|
||||
)
|
||||
"%3Cspan style='display:none;' id='cnzz_stat_icon_1279151497'%3E%3C/span%3E%3Cscript src='https://s4.cnzz.com/z_stat.php%3Fid%3D1279151497' type='text/javascript'%3E%3C/script%3E",
|
||||
),
|
||||
);
|
||||
</script>
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ const { item } = toRefs(props);
|
||||
const hasHttpProtocol = computed(() => isLinkHttp(item.value.link));
|
||||
// if the link has non-http protocol
|
||||
const hasNonHttpProtocol = computed(
|
||||
() => isLinkMailto(item.value.link) || isLinkTel(item.value.link)
|
||||
() => isLinkMailto(item.value.link) || isLinkTel(item.value.link),
|
||||
);
|
||||
// resolve the `target` attr
|
||||
const linkTarget = computed(() => {
|
||||
@@ -45,7 +45,7 @@ const isBlankTarget = computed(() => linkTarget.value === "_blank");
|
||||
// is `<RouterLink>` or not
|
||||
const isRouterLink = computed(
|
||||
() =>
|
||||
!hasHttpProtocol.value && !hasNonHttpProtocol.value && !isBlankTarget.value
|
||||
!hasHttpProtocol.value && !hasNonHttpProtocol.value && !isBlankTarget.value,
|
||||
);
|
||||
// resolve the `rel` attr
|
||||
const linkRel = computed(() => {
|
||||
|
||||
@@ -17,11 +17,11 @@ const fork = ref(6494);
|
||||
|
||||
const getStarForkData = async () => {
|
||||
const stars = await fetch("https://arthas.aliyun.com/api/starCount").then(
|
||||
(res) => res.json()
|
||||
(res) => res.json(),
|
||||
);
|
||||
|
||||
const forks = await fetch("https://arthas.aliyun.com/api/forkCount").then(
|
||||
(res) => res.json()
|
||||
(res) => res.json(),
|
||||
);
|
||||
|
||||
star.value = stars || star.value;
|
||||
|
||||
@@ -31,7 +31,7 @@ const heroText = computed(() => {
|
||||
});
|
||||
|
||||
const heroAlt = computed(
|
||||
() => frontmatter.value.heroAlt || heroText.value || "hero"
|
||||
() => frontmatter.value.heroAlt || heroText.value || "hero",
|
||||
);
|
||||
|
||||
const tagline = computed(() => {
|
||||
|
||||
@@ -19,7 +19,7 @@ const themeLocale = useThemeLocaleData();
|
||||
const version = ref(pageData.value.version);
|
||||
|
||||
const navbarBrandLink = computed(
|
||||
() => themeLocale.value.home || routeLocale.value
|
||||
() => themeLocale.value.home || routeLocale.value,
|
||||
);
|
||||
const navbarBrandTitle = computed(() => siteLocale.value.title);
|
||||
const navbarBrandLogo = computed(() => {
|
||||
@@ -35,7 +35,7 @@ const NavbarBrandVersion = () =>
|
||||
{
|
||||
class: "navbar-version",
|
||||
},
|
||||
`v${version.value}`
|
||||
`v${version.value}`,
|
||||
);
|
||||
|
||||
const NavbarBrandLogo = () => {
|
||||
|
||||
@@ -16,7 +16,7 @@ const props = defineProps({
|
||||
const { item } = toRefs(props);
|
||||
|
||||
const dropdownAriaLabel = computed(
|
||||
() => item.value.ariaLabel || item.value.text
|
||||
() => item.value.ariaLabel || item.value.text,
|
||||
);
|
||||
|
||||
const open = ref(false);
|
||||
@@ -25,7 +25,7 @@ watch(
|
||||
() => route.path,
|
||||
() => {
|
||||
open.value = false;
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
@@ -12,13 +12,13 @@ export function localTheme(options) {
|
||||
"@theme/Home.vue": path.resolve(__dirname, "components/Home.vue"),
|
||||
"@theme/NavbarDropdown.vue": path.resolve(
|
||||
__dirname,
|
||||
"components/NavbarDropdown.vue"
|
||||
"components/NavbarDropdown.vue",
|
||||
),
|
||||
"@theme/AutoLink.vue": path.resolve(__dirname, "components/AutoLink.vue"),
|
||||
"@theme/Page.vue": path.resolve(__dirname, "components/Page.vue"),
|
||||
"@theme/NavbarBrand.vue": path.resolve(
|
||||
__dirname,
|
||||
"components/NavbarBrand.vue"
|
||||
"components/NavbarBrand.vue",
|
||||
),
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user