Skip to content

Commit 4f0abab

Browse files
committed
Make improvements
1 parent 51070c8 commit 4f0abab

File tree

12 files changed

+20
-18
lines changed

12 files changed

+20
-18
lines changed

docs/.vitepress/config.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import {
77
TransformContext,
88
} from "vitepress";
99

10-
const metaColor = "#27E4EB";
11-
const metaLogo = "/logo.png";
10+
const metaColor: string = "#27E4EB";
11+
const metaLogo: string = "/logo.png";
1212

1313
/** @type {import('vitepress').DefaultTheme.Config} */
1414
export default defineConfig({
@@ -86,7 +86,7 @@ export default defineConfig({
8686
["meta", { property: "og:image", content: metaLogo }],
8787
],
8888
transformHead: (context: TransformContext): void => {
89-
let path =
89+
let path: string =
9090
"/" +
9191
context.pageData.relativePath
9292
.replace(/index\.md$/, "")

docs/.vitepress/theme/Layout.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script setup>
1+
<script lang="ts" setup>
22
import { useData } from "vitepress";
33
import DefaultTheme from "vitepress/theme";
44

docs/.vitepress/theme/components/Color.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,13 @@
3434
}
3535
</style>
3636

37-
<script>
37+
<script lang="ts">
38+
import { StyleValue } from "vue";
39+
3840
export default {
3941
props: ["color", "text"],
4042
computed: {
41-
cssVars() {
43+
cssVars(): StyleValue {
4244
return {
4345
"--color": this.color,
4446
};

docs/.vitepress/theme/components/FundButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
<script lang="ts">
22
export default {
33
props: ["link", "text"],
44
};

docs/.vitepress/theme/components/Person.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
<script lang="ts">
22
export default {
33
name: "person",
44
props: ["avatar", "name", "subtitle", "imageClass"],

docs/.vitepress/theme/components/TechButton.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script>
1+
<script lang="ts">
22
export default {
33
props: ["link", "text"],
44
};

docs/.vitepress/theme/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Icon } from "@iconify/vue";
2-
import type { EnhanceAppContext } from "vitepress";
2+
import type { Awaitable, EnhanceAppContext } from "vitepress";
33
import DefaultTheme from "vitepress/theme";
44

55
import Color from "./components/Color.vue";
@@ -23,16 +23,16 @@ const redirects = _redirects
2323
/** @type {import('vitepress').Theme} */
2424
export default {
2525
Layout,
26-
enhanceApp({ app, router }: EnhanceAppContext) {
26+
enhanceApp({ app, router }: EnhanceAppContext): void {
2727
app.component("Color", Color);
2828
app.component("FundButton", FundButton);
2929
app.component("IconifyIcon", Icon);
3030
app.component("Person", Person);
3131
app.component("TechButton", TechButton);
3232

33-
router.onAfterRouteChange = async (to: string) => {
33+
router.onAfterRouteChange = async (to: string): Promise<void> => {
3434
// Static redirects
35-
redirects.forEach((item: string[]) => {
35+
redirects.forEach((item: string[]): void => {
3636
if (
3737
to === item[0] ||
3838
to.startsWith(item[0] + "?") ||

docs/archive/faq/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
outline: deep
33
---
44

5-
<script setup>
5+
<script lang="ts" setup>
66
import {data} from './index.data';
77
</script>
88

docs/board/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<script setup>
1+
<script lang="ts" setup>
22
import { VPTeamMembers } from 'vitepress/theme';
33

44
const aq = {

docs/news/056-mde-on-lbry/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ cover: "mde.jpg"
1414

1515
MDE is a comedy sketch group featuring Sam Hyde, Charles Carroll, and Nick Rochefort. Their signature, fast-paced style of random jump-cuts, meaningless text overlays, crude humor, and nonsensical characters pushed boundaries several years ago. Now it's practically internet gospel for cutting-edge satire and comedy.
1616

17-
MDE has since exploded from extremely super humble origins on YouTube to Adult Swim darlings, following in the footsteps of _[Tim & Eric](https://en.wikipedia.org/wiki/Tim_%26_Eric)_ and _[Wonder Showzen](https://en.wikipedia.org/wiki/Wonder_Showzen)_.
17+
MDE has since exploded from extremely super humble origins on YouTube to Adult Swim darlings, following in the footsteps of _[Tim & Eric](https://en.wikipedia.org/wiki/Tim_%26*Eric)* and _[Wonder Showzen](https://en.wikipedia.org/wiki/Wonder_Showzen)_.
1818

1919
In fact, tomorrow night you can catch episode two of their brand new Adult Swim series _[MillionDollarExtreme Presents: World Peace](http://www.adultswim.com/videos/schedule)_. Tune in at 9:15 PM PT on Friday and 12:45 AM PT on Saturday.
2020

0 commit comments

Comments
 (0)