From eefbd76b7a6778324e1591d237a1e5ab30658106 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Wed, 23 Dec 2020 18:07:14 +0800 Subject: [PATCH 01/47] chore: typo --- src/client/theme-default/config.ts | 2 +- src/client/theme-default/support/sideBar.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/theme-default/config.ts b/src/client/theme-default/config.ts index b8a36049..e049bcb7 100644 --- a/src/client/theme-default/config.ts +++ b/src/client/theme-default/config.ts @@ -15,7 +15,7 @@ export namespace DefaultTheme { * Customize the header label. Defaults to GitHub/Gitlab/Bitbucket * depending on the provided repo. * - * @exampe `"Contribute!"` + * @example `"Contribute!"` */ repoLabel?: string diff --git a/src/client/theme-default/support/sideBar.ts b/src/client/theme-default/support/sideBar.ts index fb90d6b1..c44d624f 100644 --- a/src/client/theme-default/support/sideBar.ts +++ b/src/client/theme-default/support/sideBar.ts @@ -32,7 +32,7 @@ export function getSideBarConfig( return sidebar } - // get the very first segment of the path to compare with nulti sidebar keys + // get the very first segment of the path to compare with multiple sidebar keys // and make sure it's surrounded by slash path = removeExtention(path) path = ensureStartingSlash(path).split('/')[1] || '/' From 5ba4ea2ef0ef76ffd2a445de3958ecb1b0495161 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Wed, 23 Dec 2020 18:08:45 +0800 Subject: [PATCH 02/47] refactor: refactor for diff --git a/src/client/theme-default/components/LastUpdated.vue b/src/client/theme-default/components/LastUpdated.vue index c46b4da9..d33ab0a2 100644 --- a/src/client/theme-default/components/LastUpdated.vue +++ b/src/client/theme-default/components/LastUpdated.vue @@ -5,39 +5,29 @@

- diff --git a/src/client/theme-default/components/PageFooter.vue b/src/client/theme-default/components/PageFooter.vue index dca324fe..4e3295ba 100644 --- a/src/client/theme-default/components/PageFooter.vue +++ b/src/client/theme-default/components/PageFooter.vue @@ -9,17 +9,9 @@ -