-
-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
34 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,32 @@ | ||
// https://vitepress.dev/guide/custom-theme | ||
import {DefaultTheme} from "@tsed/vitepress-theme"; | ||
import type {Theme} from "vitepress"; | ||
import {h} from "vue"; | ||
import HomeBanner from "@tsed/vitepress-theme/organisms/home/HomeBanner.vue"; | ||
import HomePartners from "@tsed/vitepress-theme/organisms/home/HomePartners.vue"; | ||
import HomeBody from "@tsed/vitepress-theme/organisms/home/HomeBody.vue"; | ||
import HomeTabsTerminal from "@tsed/vitepress-theme/organisms/home/terminal/HomeTabsTerminal.vue"; | ||
import HomeTabTerminalNpm from "@tsed/vitepress-theme/organisms/home/terminal/HomeTabTerminalNpm.vue"; | ||
import HomeTabTerminalYarn from "@tsed/vitepress-theme/organisms/home/terminal/HomeTabTerminalYarn.vue"; | ||
import HomeTabTerminalPnpm from "@tsed/vitepress-theme/organisms/home/terminal/HomeTabTerminalPnpm.vue"; | ||
import HomeTabTerminalBun from "@tsed/vitepress-theme/organisms/home/terminal/HomeTabTerminalBun.vue"; | ||
|
||
export default { | ||
extends: DefaultTheme, | ||
enhanceApp() {} | ||
Layout: () => { | ||
return h(DefaultTheme.Layout, null, { | ||
"home-hero-image": () => | ||
h(HomeBanner, null, { | ||
default: () => | ||
h(HomeTabsTerminal, null, { | ||
npm: () => h(HomeTabTerminalNpm), | ||
yarn: () => h(HomeTabTerminalYarn), | ||
pnpm: () => h(HomeTabTerminalPnpm), | ||
bun: () => h(HomeTabTerminalBun) | ||
}) | ||
}), | ||
"home-features-before": () => h(HomePartners), | ||
"home-features-after": () => h(HomeBody) | ||
}); | ||
} | ||
} satisfies Theme; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters