Skip to content

Commit 9ad52bf

Browse files
committed
harden auth, fix mobile responsiveness, drop dead code
Signed-off-by: Akif Ejaz <akifejaz40@gmail.com>
1 parent 98341b3 commit 9ad52bf

19 files changed

Lines changed: 1328 additions & 4064 deletions

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
end_of_line = lf
6+
insert_final_newline = true
7+
trim_trailing_whitespace = true
8+
indent_style = space
9+
indent_size = 4
10+
11+
[*.{json,yml,yaml}]
12+
indent_size = 2
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.env.example

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
# Auto-login for local dev. Leave these unset in production.
3+
VITE_GITHUB_USERNAME=
4+
VITE_GITHUB_TOKEN=
5+
6+
# OpenRouter for the local chatbot. Leave unset in production; the app
7+
# gracefully shows a "chat isn't configured" message instead.
8+
VITE_OPENROUTER_API_KEY=
9+
10+
# Optional: pin a specific model. Defaults to openrouter/free.
11+
VITE_OPENROUTER_MODEL=openrouter/free

.github/workflows/jekyll-gh-pages.yml

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

index.html

Lines changed: 8 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -48,52 +48,30 @@
4848

4949
<!-- Open Graph / Facebook -->
5050
<meta property="og:type" content="website" />
51-
<meta property="og:url" content="https://github.com/yourusername/gitme" />
51+
<meta property="og:url" content="https://akifejaz.github.io/gitme/" />
5252
<meta property="og:title" content="GitMe | AI-Powered GitHub Profile Analyzer" />
5353
<meta property="og:description"
5454
content="Detailed visualization of your GitHub contributions, AI-synthesized professional summaries, and an integrated CV viewer." />
5555
<meta property="og:image"
56-
content="https://raw.githubusercontent.com/yourusername/gitme/main/public/gitme_banner.png" />
56+
content="https://akifejaz.github.io/gitme/gitme_banner.png" />
5757

5858
<!-- Twitter -->
5959
<meta property="twitter:card" content="summary_large_image" />
60-
<meta property="twitter:url" content="https://github.com/yourusername/gitme" />
60+
<meta property="twitter:url" content="https://akifejaz.github.io/gitme/" />
6161
<meta property="twitter:title" content="GitMe | AI-Powered GitHub Profile Analyzer" />
6262
<meta property="twitter:description"
6363
content="Visualize your developer impact and synthesize professional summaries with AI." />
6464
<meta property="twitter:image"
65-
content="https://raw.githubusercontent.com/yourusername/gitme/main/public/gitme_banner.png" />
65+
content="https://akifejaz.github.io/gitme/gitme_banner.png" />
6666

6767
<title>GitMe | AI-Powered GitHub Profile Analyzer & Impact Dashboard</title>
6868
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
6969
<link rel="preconnect" href="https://api.github.com" />
7070
<link rel="dns-prefetch" href="https://api.github.com" />
71-
<script type="text/javascript">
72-
// Single Page Apps for GitHub Pages
73-
// https://github.com/rafgraph/spa-github-pages
74-
// Copyright (c) 2016 Rafael Pedicini, licensed under the MIT License
75-
// ----------------------------------------------------------------------
76-
// This script checks to see if a redirect is present in the query string,
77-
// converts it back into the correct url and adds it to the
78-
// browser's history using window.history.replaceState(...),
79-
// which will cause the browser to refresh the page without losing
80-
// the history objects.
81-
// ----------------------------------------------------------------------
82-
(function (l) {
83-
if (l.search[1] === '/') {
84-
var decoded = l.search.slice(1).split('&').map(function (s) {
85-
return s.replace(/~and~/g, '&')
86-
}).filter(function (v) {
87-
return v.indexOf('p=/') === 0
88-
})[0];
89-
if (decoded !== undefined) {
90-
window.history.replaceState(null, null,
91-
l.pathname.slice(0, -1) + decoded.slice(3) + l.hash
92-
);
93-
}
94-
}
95-
}(window.location))
96-
</script>
71+
<!-- SPA deep-link restore. External file so the CSP can keep
72+
script-src 'self' (no 'unsafe-inline'). Bare relative path — Vite
73+
adds the base prefix exactly once for both dev and production. -->
74+
<script src="spa-redirect.js"></script>
9775
</head>
9876

9977
<body>

0 commit comments

Comments
 (0)