Skip to content

Commit e519c81

Browse files
push
1 parent 8dfbb3d commit e519c81

File tree

5 files changed

+8
-143
lines changed

5 files changed

+8
-143
lines changed

.github/workflows/inject-token.yml

Lines changed: 0 additions & 32 deletions
This file was deleted.

.gitignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

SETUP_GITHUB_SECRETS.md

Lines changed: 0 additions & 85 deletions
This file was deleted.

contributors.html

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -802,26 +802,20 @@ <h4>Connect With Us</h4>
802802
<button onclick="scrollToTop()" id="scrollBtn" title="Go to top"></button>
803803

804804
<script src="script.js"></script>
805-
<!-- Load GitHub token from config (generated by GitHub Actions) -->
806-
<script src="config.js"></script>
807805
<script>
808806
// Contributors data
809807
const owner = "AnujShrivastava01";
810808
const repo = "AnimateItNow";
811809
let contributorsData = [];
812810
let filteredContributors = [];
813811

814-
// GitHub API headers - token loaded from config.js (generated by GitHub Actions)
812+
// GitHub API headers with hardcoded token
815813
function getApiHeaders() {
816-
const headers = {
814+
return {
817815
'Accept': 'application/vnd.github.v3+json',
818-
'User-Agent': 'AnimateItNow-Contributors'
816+
'User-Agent': 'AnimateItNow-Contributors',
817+
'Authorization': 'token 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'
819818
};
820-
// Token is loaded from config.js file (generated during deployment)
821-
if (window.GITHUB_TOKEN) {
822-
headers['Authorization'] = `token ${window.GITHUB_TOKEN}`;
823-
}
824-
return headers;
825819
}
826820

827821
// Fetch all pages of contributors

leaderboard.html

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2015,8 +2015,6 @@ <h4>Connect With Us</h4>
20152015
<!-- Scroll to top button -->
20162016
<button onclick="scrollToTop()" id="scrollBtn" title="Go to top"></button>
20172017

2018-
<!-- Load GitHub token from config (generated by GitHub Actions) -->
2019-
<script src="config.js"></script>
20202018
<script>
20212019
// Final, Corrected Leaderboard Script with Caching
20222020
const owner = "AnujShrivastava01";
@@ -2031,17 +2029,13 @@ <h4>Connect With Us</h4>
20312029
let currentSort = 'points';
20322030
let filteredData = null;
20332031

2034-
// GitHub API headers - token loaded from config.js (generated by GitHub Actions)
2032+
// GitHub API headers with hardcoded token
20352033
function getApiHeaders() {
2036-
const headers = {
2034+
return {
20372035
'Accept': 'application/vnd.github.v3+json',
2038-
'User-Agent': 'AnimateItNow-Leaderboard'
2036+
'User-Agent': 'AnimateItNow-Leaderboard',
2037+
'Authorization': 'token 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'
20392038
};
2040-
// Token is loaded from config.js file (generated during deployment)
2041-
if (window.GITHUB_TOKEN) {
2042-
headers['Authorization'] = `token ${window.GITHUB_TOKEN}`;
2043-
}
2044-
return headers;
20452039
}
20462040

20472041
// --- UTILITY FUNCTIONS ---

0 commit comments

Comments
 (0)