Skip to content

Commit 8df5b46

Browse files
committed
change title of defaultContributorsList and remove token
1 parent 9841a81 commit 8df5b46

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

src/lib/components/singletons/Contributors.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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">
@@ -17,7 +17,7 @@
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}"

src/lib/constants/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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'

src/lib/utils/cache.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import type { CacheEntry } from '$lib/utils/types';
44
export const contributorsStore = writable<Map<string, CacheEntry<unknown>>>(new Map());
55

66
const CACHE_TTL = 60 * 60 * 1000;
7-
const token = import.meta.env.VITE_GITHUB_TOKEN;
87

98
export 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);

0 commit comments

Comments
 (0)