From 167810019830efbb5a08673fc5a02e4ec717bc0d Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Mon, 8 May 2023 11:19:41 +0200 Subject: [PATCH] feat: improve caching of individual repositories This commit adds the possibility to provide to the caching component data already known and to be cached immediately without the need of a callback function. This allows caching individual repositories without having to rely on additional API calls. However, repos can also be retrieved individually from the GitHub API based on their full name. --- content/.vuepress/components/ApiLoader.vue | 12 ++++- content/.vuepress/components/Cache.vue | 20 ++++++--- .../components/GitRepos/GithubRepository.vue | 45 +++++++++++++------ .../components/GitRepos/ListRepositories.vue | 4 +- 4 files changed, 60 insertions(+), 21 deletions(-) diff --git a/content/.vuepress/components/ApiLoader.vue b/content/.vuepress/components/ApiLoader.vue index 3d38ef5..5cb31c0 100644 --- a/content/.vuepress/components/ApiLoader.vue +++ b/content/.vuepress/components/ApiLoader.vue @@ -1,5 +1,10 @@