File tree Expand file tree Collapse file tree 3 files changed +4
-9
lines changed
Expand file tree Collapse file tree 3 files changed +4
-9
lines changed Original file line number Diff line number Diff line change 11<script lang =" ts" >
22 export let contributors;
33 export let error;
4- import { contributorsList } from ' $lib/constants/constants' ;
4+ import { defaultContributorsList } from ' $lib/constants/constants' ;
55 </script >
66
77<div class =" container" >
1717 </div >
1818 {/each }
1919 {:else }
20- {#each contributorsList as contributor }
20+ {#each defaultContributorsList as contributor }
2121 <div >
2222 <a
2323 href ="https://github.com/ {contributor .html_url }"
Original file line number Diff line number Diff line change @@ -707,7 +707,7 @@ export const aboutTableData = [
707707 }
708708] ;
709709
710- export const contributorsList = [
710+ export const defaultContributorsList = [
711711 {
712712 html_url : 'mickvandijke' ,
713713 avatar_url : 'https://avatars.githubusercontent.com/u/12992260?v=4'
Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ import type { CacheEntry } from '$lib/utils/types';
44export const contributorsStore = writable < Map < string , CacheEntry < unknown > > > ( new Map ( ) ) ;
55
66const CACHE_TTL = 60 * 60 * 1000 ;
7- const token = import . meta. env . VITE_GITHUB_TOKEN ;
87
98export async function fetchWithCache < T > ( url : string ) : Promise < T > {
109 const now = Date . now ( ) ;
@@ -16,11 +15,7 @@ export async function fetchWithCache<T>(url: string): Promise<T> {
1615 return cached . data as T ;
1716 }
1817
19- const response = await fetch ( url , {
20- headers : {
21- Authorization : `Bearer ${ token } `
22- }
23- } ) ;
18+ const response = await fetch ( url ) ;
2419
2520 if ( ! response . ok ) {
2621 console . error ( `Failed to fetch from ${ url } :` , response . statusText ) ;
You can’t perform that action at this time.
0 commit comments