Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 701 Bytes

index.md

File metadata and controls

28 lines (20 loc) · 701 Bytes
layout
home
<script setup lang="ts"> import type { Repo,GithubRepo } from './components/types'; import RepoList from './components/RepoList.vue' import FocusRepoCard from './components/FocusRepoCard.vue' import reposData from './data/repos.json' import { defaultRepoInfos,fetchRepos,updateRepos } from './utils/fetchGithubRepos' import { ref } from 'vue' import { getFocusRepo } from './utils/getFocusRepo' const repos = ref(reposData) updateRepos(repos.value,defaultRepoInfos) const focusRepo = getFocusRepo(repos.value) fetchRepos().then((data)=>{ updateRepos(repos.value,data) }) // </script>