Skip to content

Commit 5e378a6

Browse files
author
Jeremy
committed
Run prettier/eslint
1 parent a61f2da commit 5e378a6

12 files changed

+1032
-908
lines changed

.eslintrc

+6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
{
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es6": true,
6+
"jquery": true
7+
},
28
"extends": ["airbnb", "prettier"],
39
"plugins": ["prettier"],
410
"rules": {

css/popup.css

+31-30
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,34 @@
11
body {
2-
width: 350px;
3-
background-color: #dfd9d99d !important;
4-
padding: 10px;
5-
text-align:center;
6-
transition: background-color .75s ease;
7-
font-size:13px;
8-
9-
font-family: "Helvetica Neue", "Lucida Grande", sans-serif;
10-
}
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;
118

12-
#title {
13-
font-family: "Norwester", "Helvetica Neue", "Lucida Grande", sans-serif;
14-
font-size: 30px;
15-
font-weight: bold;
16-
margin-bottom: 0px;
17-
margin-top: 10px;
18-
}
19-
20-
#caption {
21-
font-family: "Norwester", "Helvetica Neue", "Lucida Grande", sans-serif;
22-
font-size: 14px;
23-
font-weight: normal;
24-
margin-bottom: 0px;
25-
}
9+
font-family: 'Helvetica Neue', 'Lucida Grande', sans-serif;
10+
}
2611

27-
.onboarding
28-
{
29-
font-family: sans-serif;
30-
border-top: solid black 1px;
31-
font-weight: 500;
32-
font-size: medium;
33-
}
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+
font-size: medium;
34+
}

css/welcome.css

+60-61
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,65 @@
11
body {
2-
background-color: #000000 !important;
3-
padding: 10px;
4-
text-align:center;
5-
transition: background-color .75s ease;
6-
font-family: "Helvetica Neue", "Lucida Grande", sans-serif;
7-
}
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+
}
88

9-
#title {
10-
font-family: "Norwester", "Helvetica Neue", "Lucida Grande", sans-serif;
11-
font-size: 5em;
12-
font-weight: bold;
13-
margin-bottom: 0px;
14-
margin-top: 10px;
15-
}
16-
17-
.caption {
18-
font-family: "Norwester", "Helvetica Neue", "Lucida Grande", sans-serif;
19-
font-size: 1.5em;
20-
font-weight: normal !important;
21-
margin-top: 3px !important;
22-
margin-bottom: 0px;
23-
}
24-
#error
25-
{
26-
font-family: "Norwester", "Helvetica Neue", "Lucida Grande", sans-serif;
27-
font-weight: normal !important;
28-
color: red !important;
29-
margin-bottom: 0px;
30-
}
31-
32-
#success
33-
{
34-
font-family: "Norwester", "Helvetica Neue", "Lucida Grande", sans-serif;
35-
font-size: 1.1em;
36-
font-weight: normal !important;
37-
color: green !important;
38-
margin-bottom: 0px;
39-
}
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+
}
4017

41-
#unlink
42-
{
43-
font-family: "Norwester", "Helvetica Neue", "Lucida Grande", sans-serif;
44-
font-size: 1.1em;
45-
font-weight: normal !important;
46-
color: green !important;
47-
margin-bottom: 0px;
48-
}
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+
}
4933

50-
p
51-
{
52-
color: white !important;
53-
}
54-
.onboarding
55-
{
56-
font-family: sans-serif;
57-
border-top: solid white 1px;
58-
font-weight: 500;
59-
font-size: medium;
60-
}
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+
}
6142

62-
a
63-
{
64-
color: white !important;
65-
cursor: pointer;
66-
}
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+
}

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@
55
"description": "Automatically integrate your code with LeetCode and GitHub",
66
"scripts": {
77
"setup": "npm i",
8-
"test": "eslint **/*.{js,jsx,ts,tsx} --color && prettier --check **/*.{js,jsx,ts,tsx,css,html}",
98
"format": "prettier --write **/*.{js,jsx,ts,tsx,css,html}",
10-
"lint": "eslint **/*.{js,jsx,ts,tsx} --fix"
9+
"format-test": "prettier --check **/*.{js,jsx,ts,tsx,css,html}",
10+
"lint": "eslint **/*.{js,jsx,ts,tsx} --fix",
11+
"lint-test": "eslint **/*.{js,jsx,ts,tsx} --color"
1112
},
1213
"devDependencies": {
1314
"eslint": "^7.2.0",

popup.html

+91-60
Original file line numberDiff line numberDiff line change
@@ -1,69 +1,100 @@
11
<!DOCTYPE html>
22
<html>
3-
43
<head>
5-
<link rel="stylesheet" href="css/popup.css">
6-
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
7-
8-
<link href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css" rel="stylesheet">
9-
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js"></script>
4+
<link rel="stylesheet" href="css/popup.css" />
5+
<script
6+
src="https://code.jquery.com/jquery-3.3.1.min.js"
7+
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
8+
crossorigin="anonymous"
9+
></script>
1010

11-
</head>
11+
<link
12+
href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css"
13+
rel="stylesheet"
14+
/>
15+
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.js"></script>
16+
</head>
1217

13-
<body>
18+
<body>
19+
<div class="ui grid container">
20+
<div class="sixteen wide center aligned column">
21+
<h1 id="title">
22+
Leet<span style="color: #f18500">Hub</span>
23+
</h1>
24+
<p id="caption">Sync your code from LeetCode to GitHub</p>
25+
<br />
26+
<!-- Authentication mode -->
27+
<div id="auth_mode" hidden>
28+
<p class="onboarding">
29+
<br />
30+
Authenticate with GitHub to use
31+
<strong
32+
>Leet<span style="color: #f18500">Hub</span></strong
33+
>
34+
</p>
35+
<button id="authenticate" class="ui secondary button">
36+
<i class="icon github"></i>
37+
Authenticate
38+
</button>
39+
</div>
1440

15-
<div class="ui grid container">
16-
<div class="sixteen wide center aligned column">
17-
<h1 id="title">Leet<span style="color: #f18500;">Hub</span></h1>
18-
<p id="caption">Sync your code from LeetCode to GitHub</p>
19-
<br>
20-
<!-- Authentication mode -->
21-
<div id="auth_mode" hidden>
41+
<!-- Repo Hook mode -->
42+
<div id="hook_mode" hidden>
43+
<p class="onboarding">
44+
<br />
45+
Set up repository hook to use
46+
<strong
47+
>Leet<span style="color: #f18500">Hub</span></strong
48+
>
49+
</p>
50+
<a
51+
id="hook_URL"
52+
href=""
53+
target="blank"
54+
class="ui secondary button"
55+
>
56+
<i class="icon github"></i>
57+
Set up Hook
58+
</a>
59+
</div>
2260

23-
<p class="onboarding">
24-
<br>
25-
Authenticate with GitHub to use <strong>Leet<span style="color: #f18500;">Hub</span></strong>
26-
</p>
27-
<button id="authenticate" class="ui secondary button">
28-
<i class="icon github"></i>
29-
Authenticate
30-
</button>
31-
32-
</div>
33-
34-
<!-- Repo Hook mode -->
35-
<div id="hook_mode" hidden>
36-
<p class="onboarding">
37-
<br>
38-
Set up repository hook to use <strong>Leet<span style="color: #f18500;">Hub</span></strong>
39-
</p>
40-
<a id="hook_URL" href="" target="blank" class="ui secondary button">
41-
<i class="icon github"></i>
42-
Set up Hook
43-
</a>
44-
</div>
45-
46-
<!-- Commit mode -->
47-
<div id="commit_mode" hidden>
48-
<p class="onboarding">
49-
Problems Solved: <span id="p_solved">0</span>
50-
</p>
51-
<div class="ui small header">Want more features? <a style="color: cadetblue !important;" target="_blank" href="https://github.com/QasimWani/LeetHub/labels/feature">Request a feature!</a></div>
52-
</div>
53-
54-
</div>
55-
56-
<!-- Generate Socials -->
57-
<div id="socials" class="sixteen wide column">
58-
<a href="https://github.com/QasimWani/LeetHub" target="_blank"><i class="ui black github icon"></i></a>
59-
<a href="https://www.linkedin.com/in/qasimwani" target="_blank"><i class="ui linkedin icon"></i></a>
60-
<a href="mailto:qasim31wani@gmail.com" target="_blank"><i class="ui red envelope icon"></i></a>
61-
<a id="welcome_URL" href="" target="_blank"><i class="ui grey globe icon"></i></a>
62-
</div>
61+
<!-- Commit mode -->
62+
<div id="commit_mode" hidden>
63+
<p class="onboarding">
64+
Problems Solved: <span id="p_solved">0</span>
65+
</p>
66+
<div class="ui small header">
67+
Want more features?
68+
<a
69+
style="color: cadetblue !important"
70+
target="_blank"
71+
href="https://github.com/QasimWani/LeetHub/labels/feature"
72+
>Request a feature!</a
73+
>
6374
</div>
64-
65-
<script src="scripts/oauth2.js"></script>
66-
<script type="text/javascript" src="popup.js"></script>
75+
</div>
76+
</div>
77+
78+
<!-- Generate Socials -->
79+
<div id="socials" class="sixteen wide column">
80+
<a href="https://github.com/QasimWani/LeetHub" target="_blank"
81+
><i class="ui black github icon"></i
82+
></a>
83+
<a
84+
href="https://www.linkedin.com/in/qasimwani"
85+
target="_blank"
86+
><i class="ui linkedin icon"></i
87+
></a>
88+
<a href="mailto:qasim31wani@gmail.com" target="_blank"
89+
><i class="ui red envelope icon"></i
90+
></a>
91+
<a id="welcome_URL" href="" target="_blank"
92+
><i class="ui grey globe icon"></i
93+
></a>
94+
</div>
95+
</div>
6796

68-
</body>
69-
</html>
97+
<script src="scripts/oauth2.js"></script>
98+
<script type="text/javascript" src="popup.js"></script>
99+
</body>
100+
</html>

0 commit comments

Comments
 (0)