Skip to content

Commit ba2096c

Browse files
Minor changes
1 parent ddcc946 commit ba2096c

18 files changed

+50
-37
lines changed

Diff for: .gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
11
.vercel
2+
venv/
3+
__pycache__/
4+
*.pyc
5+
*.pyo
6+
*.log

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
# LeetCode Profile Viewer
1+
# LeetCode Stats Lookup
22
A simple Flask-based application to view your LeetCode profile information. I utilized the API provided by [Sachin Sharma](https://github.com/chinxcode) for retrieving LeetCode profile data.
33

44
## How to run locally
55
1. Clone the repo:
66
```bash
7-
git clone https://github.com/aayamrajshakya/LeetcodeProfileViewer.git
8-
cd LeetcodeProfileViewer
7+
git clone https://github.com/aayamrajshakya/LeetcodeStatsLookup.git
8+
cd LeetcodeStatsLookup
99
```
1010

1111
2. Create & start a virtual environment:
1212
```bash
13-
python -m venv venv
13+
python3 -m venv venv
1414
source venv/bin/activate
1515
```
1616

Diff for: static/favicon/android-chrome-192x192.png

-6.51 KB
Binary file not shown.

Diff for: static/favicon/android-chrome-512x512.png

-29.7 KB
Binary file not shown.

Diff for: static/favicon/apple-touch-icon.png

3.37 KB
Loading

Diff for: static/favicon/browserconfig.xml

-9
This file was deleted.

Diff for: static/favicon/favicon-16x16.png

-675 Bytes
Binary file not shown.

Diff for: static/favicon/favicon-32x32.png

-1.03 KB
Binary file not shown.

Diff for: static/favicon/favicon-96x96.png

4.39 KB
Loading

Diff for: static/favicon/favicon.ico

-15 KB
Binary file not shown.

Diff for: static/favicon/favicon.svg

+3
Loading

Diff for: static/favicon/favicon1.ico

-7.23 KB
Binary file not shown.

Diff for: static/favicon/mstile-150x150.png

-5.14 KB
Binary file not shown.

Diff for: static/favicon/site.webmanifest

+20-18
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
11
{
2-
"name": "",
3-
"short_name": "",
4-
"icons": [
5-
{
6-
"src": "/android-chrome-192x192.png",
7-
"sizes": "192x192",
8-
"type": "image/png"
9-
},
10-
{
11-
"src": "/android-chrome-512x512.png",
12-
"sizes": "512x512",
13-
"type": "image/png"
14-
}
15-
],
16-
"theme_color": "#ffffff",
17-
"background_color": "#ffffff",
18-
"display": "standalone"
19-
}
2+
"name": "MyWebSite",
3+
"short_name": "MySite",
4+
"icons": [
5+
{
6+
"src": "/web-app-manifest-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png",
9+
"purpose": "maskable"
10+
},
11+
{
12+
"src": "/web-app-manifest-512x512.png",
13+
"sizes": "512x512",
14+
"type": "image/png",
15+
"purpose": "maskable"
16+
}
17+
],
18+
"theme_color": "#ffffff",
19+
"background_color": "#ffffff",
20+
"display": "standalone"
21+
}

Diff for: static/favicon/web-app-manifest-192x192.png

10.1 KB
Loading

Diff for: static/favicon/web-app-manifest-512x512.png

35.3 KB
Loading

Diff for: static/js/main.js

+14
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
document.addEventListener('DOMContentLoaded', function() {
2+
document.getElementById('username').addEventListener('keypress', function(event) {
3+
if (event.key === 'Enter') {
4+
fetchProfile();
5+
}
6+
});
7+
});
8+
9+
document.getElementById('username').addEventListener('keypress', function(event) {
10+
if (event.key === 'Enter') {
11+
fetchProfile();
12+
}
13+
});
14+
115
async function fetchProfile() {
216
const username = document.getElementById('username').value;
317
document.getElementById('profile').innerHTML = "Looking for profile...";

Diff for: templates/index.html

+4-6
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,18 @@
66
<link href='https://fonts.googleapis.com/css?family=Inter:400,600,700&display=swap' rel='stylesheet'>
77
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
88
<link rel="apple-touch-icon" sizes="180x180" href="{{ url_for('static', filename='favicon/apple-touch-icon.png') }}">
9-
<link rel="icon" type="image/png" sizes="32x32" href="{{ url_for('static', filename='favicon/favicon-32x32.png') }}">
10-
<link rel="icon" type="image/png" sizes="16x16" href="{{ url_for('static', filename='favicon/favicon-16x16.png') }}">
9+
<link rel="icon" type="image/png" sizes="96x96" href="{{ url_for('static', filename='favicon/favicon-96x96.png') }}">
10+
<link rel="icon" type="image/svg+xml" href="{{ url_for('static', filename='favicon/favicon.svg') }}" />
1111
<link rel="manifest" href="{{ url_for('static', filename='favicon/site.webmanifest') }}">
12-
<link rel="mask-icon" href="{{ url_for('static', filename='favicon/safari-pinned-tab.svg') }}" color="#5bbad5">
1312
<meta name="msapplication-TileColor" content="#da532c">
1413
<meta name="theme-color" content="#ffffff">
15-
<title>LeetCode Profile Viewer | Aayam Raj Shakya</title>
14+
<title>LeetCode Stats Lookup</title>
1615
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
1716
</head>
1817
<body>
1918
<div class="container">
2019
<header>
21-
<h1>LeetCode Profile Viewer</h1>
20+
<h1>LeetCode Stats Lookup</h1>
2221
</header>
2322

2423
<main>
@@ -30,7 +29,6 @@ <h1>LeetCode Profile Viewer</h1>
3029
</main>
3130

3231
<footer>
33-
<p>Special thanks to <a href="https://github.com/chinxcode/leetscan-api" target="_blank" aria-label="LeetScan API">LeetScan API</a></p>
3432
<p>&copy; Aayam Raj Shakya</p>
3533
<div class="social-links">
3634
<a href="https://github.com/aayamrajshakya" target="_blank" aria-label="GitHub"><i class="fab fa-github"></i></a>

0 commit comments

Comments
 (0)