Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
5395739
Update README.md
ankitsangwan1999 Sep 30, 2021
81e152f
Merge pull request #11 from ankitsangwan1999/master
ankitsangwan1999 Sep 30, 2021
d9ae068
Merge branch 'ankitsangwan1999:main' into main
ankitsangwan1999 Sep 30, 2021
3057654
Added Mentor Name
pirateksh Oct 1, 2021
aef4487
Merge pull request #12 from pirateksh/main
pirateksh Oct 1, 2021
8b7bf2d
Update README.md
ankitsangwan1999 Oct 2, 2021
9e82a94
Merge branch 'main' into main
ankitsangwan1999 Oct 6, 2021
4b67b74
added new column for question id
rishigarg94 Oct 7, 2021
56fce37
Tabular view of the Attempted questions list
prbhatter Oct 8, 2021
d2ae41a
issue #10 fixed the colour issues
rishigarg94 Oct 8, 2021
cba5747
typo fixed
umang537 Oct 8, 2021
aedc877
Merge pull request #23 from Umang-19/main
ankitsangwan1999 Oct 8, 2021
edfb440
Merge pull request #21 from rishigarg94/main
ankitsangwan1999 Oct 8, 2021
aa221b6
Attempted Questions issues resolved and commented
prbhatter Oct 8, 2021
f983fe6
Updated Contributors
Divyanshi070700 Oct 8, 2021
abe4177
Merge pull request #22 from prbhatter/attemptedQuestionsFeature
ankitsangwan1999 Oct 8, 2021
805ce97
Update CONTRIBUTORS.md
gursimran18 Oct 8, 2021
23b5e2f
Merge pull request #28 from gursimran18/contribution2
ankitsangwan1999 Oct 8, 2021
5e15659
Merge pull request #26 from Divyanshi070700/Contributer
ankitsangwan1999 Oct 8, 2021
3cf2ec5
Update CONTRIBUTORS.md
mansi0703 Oct 8, 2021
b37d509
Update CONTRIBUTORS.md
mansi0703 Oct 8, 2021
1d61447
Merge branch 'main' into Contributing
ankitsangwan1999 Oct 8, 2021
6622a2d
Merge pull request #29 from mansi0703/Contributing
ankitsangwan1999 Oct 8, 2021
a29a371
Ac and NotAc Table added
prbhatter Oct 8, 2021
fc98b90
Merge pull request #30 from prbhatter/acNotac
ankitsangwan1999 Oct 9, 2021
3d70cd8
Restrict the Window resizing of the App Window to not less than (300X…
dev1bryant Oct 9, 2021
d390416
Renamed NavBar with Header
dev1bryant Oct 9, 2021
d9b0f47
Update CONTRIBUTORS.md
sudhanshu1221 Oct 9, 2021
dfa6cd0
Changed the Navbar component to Header.
metakunal Oct 10, 2021
51ce167
Update main.js
ankitsangwan1999 Oct 10, 2021
dd493fa
Merge pull request #33 from MrRobot2025/main
ankitsangwan1999 Oct 10, 2021
b7562f8
Reloads the Application when clicked on logo
NeerajChatterjee Oct 10, 2021
85f2552
Merge branch 'main' into main
ankitsangwan1999 Oct 10, 2021
34f1e57
Merge pull request #34 from metakunal/main
ankitsangwan1999 Oct 10, 2021
738dcc5
modified scrollbar and changed its color to neongreen
dev-lovedeep Oct 10, 2021
b18fc73
Added comments and styled cursor
NeerajChatterjee Oct 10, 2021
4f59195
added a scrollable div in styles
dev-lovedeep Oct 11, 2021
233887a
modified the scrollbar properties like width,color etc
dev-lovedeep Oct 11, 2021
c1271a0
applied scrollable div on all categories question table
dev-lovedeep Oct 11, 2021
45921e1
Merge pull request #36 from dev-lovedeep/styled-scrollbar
ankitsangwan1999 Oct 11, 2021
583c5cd
Update CONTRIBUTORS.md
always0p Oct 11, 2021
5770d35
Event Names implemented in Constant.js
NeerajChatterjee Oct 11, 2021
1764e28
Created a style.css for logo
NeerajChatterjee Oct 11, 2021
f12b37a
Update Constants.js
ankitsangwan1999 Oct 11, 2021
9430b57
Update style.css
ankitsangwan1999 Oct 11, 2021
601f43c
styled the logo with cursor pointer
NeerajChatterjee Oct 12, 2021
fce33f2
styled logo
NeerajChatterjee Oct 12, 2021
d43ff34
Getting started..
verma-verse Oct 12, 2021
7319928
logout functionality implemented
prbhatter Oct 12, 2021
13ed8f1
Merge pull request #32 from prbhatter/logoutFunction
ankitsangwan1999 Oct 12, 2021
78061d0
deleted and modified files not required
NeerajChatterjee Oct 12, 2021
79798fe
Merge pull request #31 from sudhanshu1221/patch-1
ankitsangwan1999 Oct 12, 2021
9a2fdbc
Merge branch 'main' into patch-1
ankitsangwan1999 Oct 12, 2021
c2368ae
Merge pull request #40 from Ashish-Verma-MNNIT/patch-1
ankitsangwan1999 Oct 12, 2021
3283e77
Merge branch 'main' into patch-1
ankitsangwan1999 Oct 12, 2021
4c6747d
Merge pull request #39 from always0p/patch-1
ankitsangwan1999 Oct 12, 2021
04bb41c
Resolved Conflicts with upstream:main
ankitsangwan1999 Oct 12, 2021
bb5c6fc
Update Constants.js
ankitsangwan1999 Oct 12, 2021
358c2a8
Update AppContent.js
ankitsangwan1999 Oct 12, 2021
b005f4d
Merge pull request #35 from NeerajChatterjee/main
ankitsangwan1999 Oct 12, 2021
357db10
Update CONTRIBUTERS.md
VVV007 Oct 13, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,17 @@ Here's to the crazy ones:
<tr>
<td align="center"><a href="https://github.com/ankitsangwan1999"><img src="https://github.com/ankitsangwan1999.png?v=4?s=100" width="100px;" alt="Ankit Sangwan"/><br /><sub><b>Ankit Sangwan</b></sub></a><br /></td>
<td align="center"><a href="https://github.com/harshit-2007"><img src="https://github.com/Harshit-2007.png.png?v=4?s=100" width="100px;" alt="Harshit Chaudhary"/><br /><sub><b>Harshit Chaudhary</b></sub></a><br /></td>
<td align="center"><a href="https://github.com/mansi0703"><img src="https://github.com/mansi0703.png.png?v=4?s=100" width="100px;" alt="Mansi Sahu"/><br /><sub><b>Mansi Sahu</b></sub></a><br /></td>
<td align="center"><a href="https://github.com/Divyanshi070700"><img src="https://github.com/Divyanshi070700.png.png?v=4?s=100" width="100px;" alt="Divyanshi Agrawal"/><br /><sub><b>Divyanshi Agrawal</b></sub></a><br /></td>
<td align="center"><a href="https://github.com/gursimran18"><img src="https://github.com/gursimran18.png.png?v=4?s=100" width="100px;" alt="Gursimran Kaur Saini"/><br /><sub><b>Gursimran Kaur Saini</b></sub></a><br /></td>
<td align="center"><a href="https://github.com/Ashish-Verma-MNNIT"><img src="https://github.com/Ashish-Verma-MNNIT.png?v=4?s=100" width="100px;" alt="Ashish Verma"/><br /><sub><b>Ashish Verma</b></sub></a><br /></td>
<td align="center"><a href="https://github.com/gursimran18"><img src="https://github.com/gursimran18.png.png?v=4?s=100" width="100px;" alt="Gursimran Kaur Saini"/><br /><sub><b>Gursimran Kaur Saini</b></sub></a><br /></td>
</tr>

<tr>
<td align="center"><a href="https://github.com/gursimran18"><img src="https://github.com/gursimran18.png.png?v=4?s=100" width="100px;" alt="Gursimran Kaur Saini"/><br /><sub><b>Gursimran Kaur Saini</b></sub></a><br /></td>
<td align="center"><a href="ttps://github.com/always0p"><img src="https://github.com/always0p.png.png?v=4?s=100" width="100px;" alt="Jaspal Singh"/><br /><sub><b>Jaspal Singh</b></sub></a><br /></td>
<td align="center"><a href="https://github.com/sudhanshu1221"><img src="https://github.com/sudhanshu1221.png.png?v=4?s=100" width="100px;" alt="Sudhanshu Kumar"/><br /><sub><b>Sudhanshu Kumar</b></sub></a><br /></td>
<td align="center"><a href="https://github.com/VVV007"><img src="https://github.com/VVV007.png.png?v=4?s=100" width="100px;" alt="Vishwas Vaish"/><br /><sub><b>Vishwas Vaish</b></sub></a><br /></td>
</tr>
</table>
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
Sometimes back **Leetcode** did not show all the **attempted** problems(AC/Non-AC) by the user at one place. Particularly, **Non-AC** problems are important for students preparing for **interviews** as they want to solve them eventually. Categorizing all such problems based on their **Difficulty Level** and **Acceptance Rate** becomes helpful.


## How to run it locally?
## How to run locally?
1. > ***Clone this repo to your local machine and cd into the LeetSolve directory.***
2. npm i
> This will download all the required dependencies for the application to run on your local machine.
Expand Down Expand Up @@ -38,5 +38,9 @@ Step-3:
## Are there any tips/guidelines for contributors under [ContriHUB-21](http://contrihub21.herokuapp.com/)?
Yes. Check [CONTRIBUTING.md](CONTRIBUTING.md)

## Where to add the contributors name for [ContriHUB-21](http://contrihub21.herokuapp.com/)?
Inside [CONTRIBUTORS.md](CONTRIBUTORS.md) file.
## Where to add contributors name for [ContriHUB-21](http://contrihub21.herokuapp.com/)?
Check [CONTRIBUTORS.md](CONTRIBUTORS.md)

## Mentors
* [Ankit Sangwan](https://github.com/ankitsangwan1999)

25 changes: 25 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,31 @@
code {
font-family: "Cool Font";
}
/* below styles is for global scrollbars */
/* width */
::-webkit-scrollbar {
width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
outline: 1px solid green;
}

/* Handle */
::-webkit-scrollbar-thumb {
background: #39ff14;
border-radius: 25px;
min-height: 40px;
}
::-webkit-scrollbar-corner {
background-color: transparent;
}

/*Handle on hover */
::-webkit-scrollbar-thumb:hover {
background: #33cd31;
}
</style>
</head>

Expand Down
35 changes: 22 additions & 13 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import "regenerator-runtime/runtime"; // To be able to use async-await syntax
const { app, BrowserWindow, ipcMain, shell, session } = require("electron");
const { app, BrowserWindow, ipcMain, shell, session ,screen} = require("electron");
const path = require("path");
const url = require("url");
const axios = require("axios");
Expand All @@ -17,15 +17,19 @@ const createWindow = () => {
mainWindow = new BrowserWindow({
width: 1000,
height: 800,
minWidth:600,
minHeight:600,
icon: __dirname + "/src/static/images/icon.png",
webPreferences: {
nodeIntegration: true,
contextIsolation: false,
},


autoHideMenuBar: true,
});
cookieJar = session.defaultSession.cookies;

mainWindow.loadURL(
url.format({
pathname: path.join(__dirname, "/index.html"),
Expand Down Expand Up @@ -113,17 +117,6 @@ ipcMain.on("user-data", async (e) => {
// console.log("Can't Set");
// });

// To remove a cookie: Will be used in logout, inside a different even i.e. user-logout
// try {
// await cookieJar.remove(
// "https://leetsolve.matrix.com",
// "MY_TASTY_COOKIE"
// );
// console.log("Cookie Removed");
// } catch (e) {
// console.log("Problem Removing the cookie", e);
// }

// TESTING ENDS

cookieJar
Expand Down Expand Up @@ -240,6 +233,22 @@ ipcMain.on("user-data", async (e) => {
// });
});

ipcMain.handle("user-logout", async (event) => { //To handle when "user-logout" event is invoked from UI renderer side(LogOut.js)
try {
await cookieJar.remove( //Removing the saved cookie
"https://leetsolve.matrix.com",
"MY_TASTY_COOKIE"
);
console.log("Cookie Removed");
BrowserWindow.getFocusedWindow().reload(); //Reloading the window when logout is successful
return "success";
} catch (e) {
console.log("Problem Removing the cookie", e);
return "fail";
}

})

// Spawning the Main Window
app.on("ready", createWindow);

Expand Down
Loading