Skip to content

Commit fe248ea

Browse files
committed
fix: HelloWorld and add required package
1 parent decf6f3 commit fe248ea

28 files changed

+8776
-1471
lines changed

.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_REOWN_PROJECT_ID=

.vitepress/theme/index.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
11
// https://vitepress.dev/guide/custom-theme
22
import type { Theme } from 'vitepress';
33
import DefaultTheme from 'vitepress/theme';
4-
import './style.css';
54
import TwoslashFloatingVue from '@shikijs/vitepress-twoslash/client';
65
import Layout from './Layout.vue';
76
import type { EnhanceAppContext } from 'vitepress';
87
import googleAnalytics from 'vitepress-plugin-google-analytics';
8+
import { QueryClient, VueQueryPlugin } from '@tanstack/vue-query';
9+
import { WagmiPlugin } from '@wagmi/vue';
10+
import { wagmiAdapter } from '../../src/utils/wagmiConfig';
11+
import './style.css';
912

1013
export default {
1114
extends: DefaultTheme,
1215
Layout,
1316
enhanceApp({ app }: EnhanceAppContext) {
1417
app.use(TwoslashFloatingVue as any);
1518

19+
const queryClient = new QueryClient();
20+
21+
app.use(VueQueryPlugin, { queryClient });
22+
23+
app.use(WagmiPlugin, { config: wagmiAdapter.wagmiConfig });
24+
1625
googleAnalytics({
1726
id: 'GTM-P7KSD4T',
1827
});

.vitepress/theme/style.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,3 +136,15 @@ html {
136136
.aside .aside-container {
137137
@apply overflow-visible;
138138
}
139+
140+
html.dark .light-only {
141+
display: none !important;
142+
}
143+
144+
html:not(.dark) .dark-only {
145+
display: none !important;
146+
}
147+
148+
input {
149+
@apply w-full rounded-md border border-[var(--vp-c-divider)] bg-[var(--vp-c-bg-soft)] px-4 py-3 text-base text-[var(--vp-c-text-1)] transition focus:border-[var(--vp-c-brand-2)] focus:outline-none disabled:cursor-not-allowed disabled:opacity-70;
150+
}

0 commit comments

Comments
 (0)