Skip to content

Commit 58debcd

Browse files
committed
add(project): first commit
0 parents  commit 58debcd

30 files changed

+5401
-0
lines changed

.DS_Store

6 KB
Binary file not shown.

.eslintrc

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es6": true,
6+
"jquery": true,
7+
"webextensions": true
8+
},
9+
"extends": ["airbnb", "prettier"],
10+
"plugins": ["prettier"],
11+
"rules": {
12+
"prettier/prettier": ["error"]
13+
}
14+
}

.github/ISSUE_TEMPLATE/bug_report.md

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve LeetcodeSessionManager
4+
title: ''
5+
labels: bug
6+
assignees: pawanjenu
7+
8+
---
9+
10+
## Please review previous closed issues before filling out a new one! Duplicate issues will be closed without comment.
11+
12+
**Describe the bug**
13+
A clear and concise description of what the bug is.
14+
15+
**To Reproduce**
16+
Steps to reproduce the behavior:
17+
1. Go to '...'
18+
2. Click on '....'
19+
3. Scroll down to '....'
20+
4. See error
21+
22+
**Expected behavior**
23+
A clear and concise description of what you expected to happen.
24+
25+
**Screenshots**
26+
If applicable, add screenshots to help explain your problem.
27+
28+
**Additional context**
29+
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/config.yml

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Bug Report
2+
description: File a bug report
3+
title: "[Bug]: "
4+
labels: [bug, triage]
5+
assignees:
6+
- octocat
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
Thanks for taking the time to fill out this bug report!
12+
- type: input
13+
id: contact
14+
attributes:
15+
label: Contact Details
16+
description: How can we get in touch with you if we need more info?
17+
placeholder: ex. [email protected]
18+
validations:
19+
required: false
20+
- type: textarea
21+
id: what-happened
22+
attributes:
23+
label: What happened?
24+
description: Also tell us, what did you expect to happen?
25+
placeholder: Tell us what you see!
26+
value: "A bug happened!"
27+
validations:
28+
required: true
29+
- type: dropdown
30+
id: version
31+
attributes:
32+
label: Version
33+
description: What version of our software are you running?
34+
options:
35+
- 1.0.2 (Default)
36+
- 1.0.3 (Edge)
37+
validations:
38+
required: true
39+
- type: dropdown
40+
id: browsers
41+
attributes:
42+
label: What browsers are you seeing the problem on?
43+
multiple: true
44+
options:
45+
- Firefox
46+
- Chrome
47+
- Safari
48+
- Microsoft Edge
49+
- type: textarea
50+
id: logs
51+
attributes:
52+
label: Relevant log output
53+
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
54+
render: shell
55+
- type: checkboxes
56+
id: terms
57+
attributes:
58+
label: Code of Conduct
59+
description: By submitting this issue, you agree to follow our [Code of Conduct](https://example.com)
60+
options:
61+
- label: I agree to follow this project's Code of Conduct
62+
required: true
+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Feature request
3+
about: What would enhance your LeetHub experience?
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## Please review previous closed issues before filling out a new one! Duplicate issues will be closed without comment.
11+
12+
**Is your feature request related to a problem? Please describe.**
13+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
14+
15+
**Describe the solution you'd like**
16+
A clear and concise description of what you want to happen.
17+
18+
**Describe alternatives you've considered**
19+
A clear and concise description of any alternative solutions or features you've considered.
20+
21+
**Additional context**
22+
Add any other context or screenshots about the feature request here.

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.env
2+
node_modules
3+
.vscode
4+
web-ext-artifacts
5+

.prettierrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "all",
4+
"singleQuote": true,
5+
"printWidth": 70,
6+
}

.web-extension-id

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# This file was created by https://github.com/mozilla/web-ext
2+
# Your auto-generated extension ID for addons.mozilla.org is:
3+

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Pawan Jenu
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

assets/.DS_Store

6 KB
Binary file not shown.

assets/extension/authorize.png

149 KB
Loading

assets/extension/hook.jpg

75.9 KB
Loading

assets/extension/leetcode.png

244 KB
Loading

assets/extension/logo_128.png

9.66 KB
Loading

assets/extension/octocode_128.jpg

4.82 KB
Loading

assets/extension/output.gif

6.43 MB
Loading

assets/extension/popup.png

31.7 KB
Loading

assets/extension/top_trending.png

442 KB
Loading

assets/octocode.png

66.1 KB
Loading

assets/thumbnail.png

21.1 KB
Loading

css/popup.css

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
body {
2+
width: 350px;
3+
background-color: #dfd9d99d !important;
4+
padding: 10px;
5+
text-align: center;
6+
transition: background-color 0.75s ease;
7+
font-size: 13px;
8+
9+
font-family: 'Helvetica Neue', 'Lucida Grande', sans-serif;
10+
}
11+
12+
#title {
13+
font-family: 'Norwester', 'Helvetica Neue', 'Lucida Grande',
14+
sans-serif;
15+
font-size: 30px;
16+
font-weight: bold;
17+
margin-bottom: 0px;
18+
margin-top: 10px;
19+
}
20+
21+
#caption {
22+
font-family: 'Norwester', 'Helvetica Neue', 'Lucida Grande',
23+
sans-serif;
24+
font-size: 14px;
25+
font-weight: normal;
26+
margin-bottom: 0px;
27+
}
28+
29+
.onboarding {
30+
font-family: sans-serif;
31+
border-top: solid black 1px;
32+
font-weight: 500;
33+
padding-top: 2%;
34+
font-size: medium;
35+
}
36+
.reload {
37+
font-family: Lucida Sans Unicode;
38+
}

css/welcome.css

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
body {
2+
background-color: #000000 !important;
3+
padding: 10px;
4+
text-align: center;
5+
transition: background-color 0.75s ease;
6+
font-family: 'Helvetica Neue', 'Lucida Grande', sans-serif;
7+
}
8+
9+
#title {
10+
font-family: 'Norwester', 'Helvetica Neue', 'Lucida Grande',
11+
sans-serif;
12+
font-size: 5em;
13+
font-weight: bold;
14+
margin-bottom: 0px;
15+
margin-top: 10px;
16+
}
17+
18+
.caption {
19+
font-family: 'Norwester', 'Helvetica Neue', 'Lucida Grande',
20+
sans-serif;
21+
font-size: 1.5em;
22+
font-weight: normal !important;
23+
margin-top: 3px !important;
24+
margin-bottom: 0px;
25+
}
26+
#error {
27+
font-family: 'Norwester', 'Helvetica Neue', 'Lucida Grande',
28+
sans-serif;
29+
font-weight: normal !important;
30+
color: red !important;
31+
margin-bottom: 0px;
32+
}
33+
34+
#success {
35+
font-family: 'Norwester', 'Helvetica Neue', 'Lucida Grande',
36+
sans-serif;
37+
font-size: 1.1em;
38+
font-weight: normal !important;
39+
color: green !important;
40+
margin-bottom: 0px;
41+
}
42+
43+
#unlink {
44+
font-family: 'Norwester', 'Helvetica Neue', 'Lucida Grande',
45+
sans-serif;
46+
font-size: 1.1em;
47+
font-weight: normal !important;
48+
color: green !important;
49+
margin-bottom: 0px;
50+
}
51+
52+
p {
53+
color: white !important;
54+
}
55+
.onboarding {
56+
font-family: sans-serif;
57+
border-top: solid white 1px;
58+
font-weight: 500;
59+
font-size: medium;
60+
}
61+
62+
a {
63+
color: white !important;
64+
cursor: pointer;
65+
}

manifest.json

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"manifest_version": 2,
3+
"name": "LeetSessionManager",
4+
"description": "Manage leetcode sessions easily",
5+
"homepage_url": "https://github.com/pawan/LeetcodeSessionManager",
6+
"version": "1.1.8",
7+
"author": "Pawan Jenu",
8+
"browser_action": {
9+
"default_icon": "assets/thumbnail.png",
10+
"default_popup": "popup.html"
11+
},
12+
"icons": {
13+
"16": "assets/thumbnail.png",
14+
"48": "assets/thumbnail.png",
15+
"128": "assets/thumbnail.png"
16+
},
17+
"background": {
18+
"scripts": [
19+
"scripts/background.js"
20+
],
21+
"persistent": true
22+
},
23+
"permissions": [
24+
"https://leetcode.com/*",
25+
"tabs",
26+
"unlimitedStorage",
27+
"storage",
28+
"cookies",
29+
"webRequest",
30+
"webRequestBlocking"
31+
],
32+
"applications": {
33+
"gecko": {
34+
35+
"strict_min_version": "53.0"
36+
}
37+
},
38+
"content_scripts": [
39+
{
40+
"matches": [
41+
"https://leetcode.com/*"
42+
],
43+
"js": [
44+
"scripts/session.js",
45+
"scripts/leetcode.js"
46+
],
47+
"run_at": "document_idle"
48+
}
49+
],
50+
"content_security_policy": "script-src 'self' https://code.jquery.com/jquery-3.3.1.min.js https://github.com/login/oauth/authorize https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js; object-src 'self'"
51+
}

0 commit comments

Comments
 (0)