phundrak.com/content/.vuepress/client.ts
Lucien Cartier-Tilet 89d2e1b9b3
All checks were successful
continuous-integration/drone/push Build is passing
feat: display API errors
2023-05-08 18:04:30 +02:00

28 lines
1.1 KiB
TypeScript

import { defineClientConfig } from '@vuepress/client';
import ResponsiveImage from './components/ResponsiveImage.vue';
import ListRepositories from './components/GitHub/ListRepositories.vue';
import FetchRepositories from './components/GitHub/FetchRepositories.vue';
import GithubRepository from './components/GitHub/GithubRepository.vue';
import ApiLoader from './components/ApiLoader.vue';
import Loader from './components/Loader.vue';
import Cache from './components/Cache.vue';
import Error from './components/Error.vue';
import Icon from './components/Icon.vue';
export default defineClientConfig({
enhance({ app }) {
app.component('ResponsiveImage', ResponsiveImage);
app.component('ListRepositories', ListRepositories);
app.component('FetchRepositories', FetchRepositories);
app.component('GithubRepository', GithubRepository);
app.component('ApiLoader', ApiLoader);
app.component('Loader', Loader);
app.component('Cache', Cache);
app.component('Error', Error);
app.component('Icon', Icon);
},
setup() {},
layouts: {},
rootComponents: [],
});