feat: handle API calls and caching through Vue components
BREAKING CHANGE: API calls and cache no longer made in their respective composable
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
import { defineClientConfig } from '@vuepress/client';
|
||||
import PreviewImage from './components/PreviewImage.vue';
|
||||
import ResponsiveImage from './components/ResponsiveImage.vue';
|
||||
import LatestRepositories from './components/LatestRepositories.vue';
|
||||
import GithubRepository from './components/GithubRepository.vue';
|
||||
import ListRepositories from './components/GitRepos/ListRepositories.vue';
|
||||
import GithubRepository from './components/GitRepos/GithubRepository.vue';
|
||||
import ApiLoader from './components/ApiLoader.vue';
|
||||
import Cache from './components/Cache.vue';
|
||||
|
||||
export default defineClientConfig({
|
||||
enhance({ app }) {
|
||||
app.component('PreviewImage', PreviewImage);
|
||||
app.component('ResponsiveImage', ResponsiveImage);
|
||||
app.component('LatestRepositories', LatestRepositories);
|
||||
app.component('ListRepositories', ListRepositories);
|
||||
app.component('GithubRepository', GithubRepository);
|
||||
app.component('ApiLoader', ApiLoader);
|
||||
app.component('Cache', Cache);
|
||||
},
|
||||
setup() {},
|
||||
layouts: {},
|
||||
|
||||
Reference in New Issue
Block a user