Skip to content

Commit cb25906

Browse files
authored
Merge pull request #191 from ssavi-ict/v1.0.7
[v1.0.7] Profile analyzing and suggestion added
2 parents 05490af + da90220 commit cb25906

18 files changed

+551
-28
lines changed

CHANGELOG.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
# Find all the change history listed below
22

3-
**[__/__/2023]**
4-
- ...
3+
**[22/08/2023]**
4+
- v1.0.7 [Features](https://github.com/ssavi-ict/LeetCode-Which-Company/issues/85)
5+
- Next to solve [*Easy*] implemented.
6+
- Next to solve [*Medium*] implemented.
7+
- Next to solve [*Hard*] implemented.
8+
- Solving summary of a user at a glance implemented.
9+
- Solving history PIE CHART implemented.
10+
- Quick access panel implemented.
11+
- Popup window [*Upcoming Contest*] button text updated to [*Be A Pro*].
12+
- v1.0.7 published for chrome only.
13+
- README Updated.
514

615
**[27/07/2023]**
716
- v1.0.6 [Features](https://github.com/ssavi-ict/LeetCode-Which-Company/issues/81) implementation.

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
# CrackTech - Find LeetCode Company Tags
55

6-
## Current Version: v1.0.6
6+
## Current Version: v1.0.7
77

88
## CrackTech (previously *LeetCode Which Company*) gives you the information of the companies who asked a certain question in the technical interview.
99

@@ -23,7 +23,8 @@ Install this extension/add-on and boost your prep. Wishing you all the very best
2323
- Company based problem list at a glance.
2424
- A pop-up window extension. No garbage, just the content you needed.
2525
- Flexible to LeetCode UI changes. So no downtime on your preparation.
26-
- Upcoming Contest Notification everyday. Your preparation is going to be even more harder now.
26+
- Upcoming Contest Notification everyday. Never miss a LeetCode contest now.
27+
- Next to solve suggestion for Easy, Medium, and Hard category.
2728
- No data collection.
2829

2930
------
@@ -45,10 +46,14 @@ When solving a problem if you click on the ![icon](chrome/res/32.png) from the *
4546
- Once you click on the **[All Company]** button it will open up a page where you can see all the problems available in our storage with company names are listed as follows - ![all company](/static/webfile/complete_list.png)
4647

4748
- **💥 NEW FEATURE 💥**
48-
- Click on the **[Upcoming Contest]** button ![upcoming_contest](/static/webfile/upcoming-contest-button.PNG), it will open a page where you can see all upcoming Leetcode weekly and Biweekly contests listed with your local timing and with duration as below -
49+
- Click on the **[Be A Pro]** button ![upcoming_contest](/static/webfile/upcoming-contest-button.PNG), it will open a page where you can see all upcoming Leetcode weekly and Biweekly contests listed with your local timing and with duration as below -
4950
![details_contest_list](/static/webfile/leetcoder.PNG) Clickable link will redirect to actual contest page.
5051
- The checkbox (*marked in red*) can be checked to receive contest notification everyday twice a day or unchecked if you wish not to receive contest notification. ![notification](/static/webfile/notification.PNG)
5152

53+
- **💥 NEW FEATURE 💥** [*Chrome Only Feature*]
54+
- Click on the **[Be A Pro]** button ![upcoming_contest](/static/webfile/upcoming-contest-button.PNG), it redirect to your preparation zone.
55+
It shows your solving summary from where you can get picture of your solving history. Moreover, your going to get suggestions to solve the next Easy/Medium/Hard problem. Now your preparation is going even more fine-tuned. ![solve the next](/static/webfile/problem-suggestion.PNG)
56+
5257
<br>
5358

5459
- If the extension is not able to find the `Company Names` for the leetcode problem on the current window or if the current window is not a leetcode problem then it will show a **Company information not found** message.
-118 KB
Binary file not shown.
404 KB
Binary file not shown.

chrome/index.html

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@
33
<head>
44
<meta charset="utf-8">
55
<title>CrackTech - Find LeetCode Company Tags</title>
6-
<!-- <meta http-equiv="Content-Security-Policy"
7-
content="script-src 'self' 'unsafe-inline';"
8-
> -->
6+
<style>
7+
.content-item a img{
8+
height: auto;
9+
width: 70%;
10+
padding: 10px;
11+
flex: 1;
12+
}
13+
</style>
914
<meta name="description" content="Bootstrap.">
1015
<link href="css/bootstrap.min.css" rel="stylesheet">
1116
<!-- <link href="css/styles.css" rel="stylesheet"> -->
@@ -32,6 +37,29 @@ <h1>APPRECIATE</h1>
3237

3338
</div>
3439
<hr>
40+
<div class="useful-content-item" style="display: flex; align-items: center; justify-content: center;">
41+
<div class="content-item">
42+
<a href="leetcoder.html" target="_blank">
43+
<center><img src="res/be-a-pro.png" alt="Be A Pro. Solve The Next."></center>
44+
</a>
45+
</div>
46+
<div class="content-item">
47+
<a href="https://forms.gle/cAW1jxYxUTwgUmMd9" target="_blank">
48+
<center><img src="res/share-feedback.png" alt="Share Your Feedback"></center>
49+
</a>
50+
</div>
51+
<div class="content-item">
52+
<a href="https://www.buymeacoffee.com/ssavi" target="_blank">
53+
<center><img src="res/buy-me-a-coffee.png" alt="Buy Me A Coffee"></center>
54+
</a>
55+
</div>
56+
<div class="content-item">
57+
<a href="https://github.com/ssavi-ict/LeetCode-Which-Company/" target="_blank">
58+
<center><img src="res/project-source.png" alt="Go To Project Source"></center>
59+
</a>
60+
</div>
61+
</div>
62+
<hr>
3563
<br>
3664
<div class="row header" style="margin: auto; text-align:center;color:green;padding-bottom: 12px;width: fit-content;">
3765
<h2 style="font-family: 'Playfair'; font-style: italic; font-weight: bold; border-bottom: 2px solid indigo; padding-bottom: 2px;">

chrome/leetcoder.html

Lines changed: 106 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@
6363

6464
.content-container {
6565
border: 1px dotted purple;
66-
padding: 10px;
67-
border-radius: 5px;
68-
max-width: 1200px;
66+
padding: 10px;
67+
border-radius: 5px;
68+
max-width: 1200px;
6969
}
7070

7171
table {
@@ -76,7 +76,7 @@
7676
th, td {
7777
text-align: left;
7878
padding: 10px;
79-
font-size: 14px;
79+
font-size: 13px;
8080
border: 1px solid purple;
8181
}
8282

@@ -88,18 +88,29 @@
8888
font-size: 10px;
8989
vertical-align: super;
9090
}
91-
.content-header {
92-
width:80%;
93-
display: flex;
94-
margin-left: 120px;
95-
font-family: Tahoma;
96-
font-size: 15px;
97-
}
91+
92+
a {
93+
text-decoration: none !important;
94+
}
95+
96+
.child-div {
97+
width: 50%;
98+
background-color: white;
99+
margin: 0 auto;
100+
}
101+
102+
.content-item a img{
103+
height: auto;
104+
width: 60%;
105+
padding: 10px;
106+
flex: 1;
107+
}
98108
</style>
109+
<script type="text/javascript" src="script/Chart.min.js"></script>
110+
<link rel="stylesheet" href="script/all.min.css">
99111
</head>
100112
<body>
101113
<div class="content-container" style="margin: 0 auto;">
102-
103114
<div class="intro-content-1" style="font-family: 'Segoe UI'; font-size: medium; text-align: center;">
104115
<h1>APPRECIATE</h1>
105116
<p>Thank you for using <i>CrackTech - Find LeetCode Company Tags</i> extension.<br>
@@ -112,6 +123,86 @@ <h1>APPRECIATE</h1>
112123
</p>
113124
<hr>
114125
</div>
126+
<div class="useful-content-item" style="display: flex; align-items: center; justify-content: center;">
127+
<div class="content-item">
128+
<a href="index.html" target="_blank">
129+
<center><img src="res/access-info.png" alt="Access Company Information"></center>
130+
</a>
131+
</div>
132+
<div class="content-item">
133+
<a href="https://forms.gle/cAW1jxYxUTwgUmMd9" target="_blank">
134+
<center><img src="res/share-feedback.png" alt="Share Your Feedback"></center>
135+
</a>
136+
</div>
137+
<div class="content-item">
138+
<a href="https://www.buymeacoffee.com/ssavi" target="_blank">
139+
<center><img src="res/buy-me-a-coffee.png" alt="Buy Me A Coffee"></center>
140+
</a>
141+
</div>
142+
<div class="content-item">
143+
<a href="https://github.com/ssavi-ict/LeetCode-Which-Company/" target="_blank">
144+
<center><img src="res/project-source.png" alt="Go To Project Source"></center>
145+
</a>
146+
</div>
147+
</div>
148+
<hr>
149+
<div class="preparation-container">
150+
<div class = "preparation-header-content" style="border-radius: 1px; margin: 30px 0px 30px; border: 3px solid; border-image: linear-gradient(to right, red, orange, yellow, green, blue, indigo, violet);border-image-slice: 1;">
151+
<h3 id = "heading-line"></h3>
152+
</div>
153+
<div class = "preparation-main-content" style="display: flex; flex-wrap: wrap;" >
154+
<div class = "left-side-div" style="width: 20%; display:inline-block;">
155+
<table id = "user-summary-table" style="width:100%; border: 1px solid black; border-radius: 3px;">
156+
<tr>
157+
<th colspan="2" style="background-color: #2196F3;"><center>User Summary</center></th>
158+
</tr>
159+
</table>
160+
<br>
161+
<div style="width: 60%; height: 135px; text-align: center; margin-left: 5%; display: block; margin: 0 auto;">
162+
<b id="pTitle"></b>
163+
<br>
164+
<canvas id="pieChart"></canvas>
165+
</div>
166+
</div>
167+
168+
<fieldset style="width: 74%; float: right; margin-top: 9px; margin-left: 15px; display: flex; flex-wrap: wrap;">
169+
<legend id ="legend-text" style="font-size:20px; text-align: center;"> &#128187; <i>Next <a href="https://leetcode.com/" target="_blank"><b>LeetCode</b></a> Problem(s) To Solve</i> &#128187; </legend>
170+
171+
<div class="child-div">
172+
<table id="easy-table" style="width:95%; border: 1px solid black; border-radius: 5px;">
173+
<tr>
174+
<th id = "easy_title_header_text" style="text-align: center; background-color: #00AF9B; width: 96%;"></th>
175+
<th style="text-align: center; background-color: #00AF9B;">
176+
<button title="Reload Different Problems" id="easy_button" style="cursor: pointer;">&#x27f3;</button>
177+
</th>
178+
</tr>
179+
</table>
180+
</div>
181+
<div class="child-div" style="float: right;">
182+
<table id="mid-table" style="width:95%; border: 1px solid black; border-radius: 5px;">
183+
<tr>
184+
<th id = "mid_title_header_text" style="text-align: center; background-color: orange; width: 96%;"></th>
185+
<th style="text-align: center; background-color: orange;">
186+
<button title="Reload Different Problems" id="mid_button" style="cursor: pointer;">&#x27f3;</button>
187+
</th>
188+
</tr>
189+
</table>
190+
</div>
191+
<div class="child-div">
192+
<table id="hard-table" style="width:95%; border: 1px solid black; border-radius: 5px;">
193+
<tr>
194+
<th id = "hard_title_header_text" style="text-align: center; background-color: red; width: 96%;"></th>
195+
<th style="text-align: center; background-color: red;">
196+
<button title="Reload Different Problems" id="hard_button" style="cursor: pointer;">&#x27f3;</button>
197+
</th>
198+
</tr>
199+
</table>
200+
</div>
201+
</fieldset>
202+
</div>
203+
</div>
204+
<br><br>
205+
<hr>
115206
<div class="header">
116207
<h3 style="margin-left:120px;">Upcoming LeetCode Contest(s)</h3>
117208
<div class="switch" style="margin-right:120px;">
@@ -138,11 +229,8 @@ <h3 style="margin-left:120px;">Upcoming LeetCode Contest(s)</h3>
138229
</table>
139230
<br><br>
140231
<hr>
141-
<div class="preparation-container">
142-
<!-- <h3><center>User Profile Analytics</center></h3> -->
143-
</div>
144-
<br><br>
145-
<div class = "intro-content-2" style="font-family: 'Segoe UI'; font-size: medium; text-align: center;">
232+
233+
<div class = "intro-content-2" style="font-family: 'Segoe UI'; font-size: medium; text-align: center; clear: both;">
146234
<h1>CONTRIBUTIONS</h1>
147235
I appreciate your intention towards contributing in this repository.<br>
148236
Currently I am accepting only the <b>Company Contributions</b> to enrich the company database.<br>
@@ -155,4 +243,5 @@ <h1>CONTRIBUTIONS</h1>
155243
</div>
156244
</body>
157245
<script type="text/javascript" src="script/helper.js"></script>
246+
<script type="text/javascript" src="script/analyze_profile.js"></script>
158247
</html>

chrome/manifest.json

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "CrackTech - Find LeetCode Company Tags",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"homepage_url":"https://github.com/ssavi-ict/LC-Which-Company",
55
"description": "An extension that can help candidate to prepare for a Company specific DSA interview.",
66
"manifest_version": 3,
@@ -18,5 +18,14 @@
1818
"background": {
1919
"service_worker": "background.js"
2020
},
21-
"permissions": ["tabs", "notifications", "alarms", "storage"]
21+
"permissions": ["tabs", "notifications", "alarms", "storage", "activeTab"],
22+
"host_permissions": [
23+
"<all_urls>", "https://leetcode.com/*"
24+
],
25+
"content_scripts": [
26+
{
27+
"matches": ["<all_urls>"],
28+
"js": ["script/analyze_profile.js"]
29+
}
30+
]
2231
}

chrome/popup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
<td colspan="3"><a href="index.html" target="_blank"><strong style="font-size: 15px;">All Company</strong></a></td>
5454
</tr>
5555
<tr>
56-
<td><a href="leetcoder.html" target="_blank">Upcoming Contest</a></td>
56+
<td><a href="leetcoder.html" target="_blank">Be A Pro</a></td>
5757
<td><a href="https://forms.gle/cAW1jxYxUTwgUmMd9" target="_blank">Feedback</a></td>
5858
<td><a href="https://www.buymeacoffee.com/ssavi" target="_blank">Buy Me A Coffee</a></td>
5959
</tr>

chrome/res/access-info.png

56.3 KB
Loading

chrome/res/be-a-pro.png

50.3 KB
Loading

0 commit comments

Comments
 (0)