Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgraded the user interface #4

Merged
merged 29 commits into from
Oct 10, 2023
Merged
Changes from 1 commit
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
2a711e2
fetching repo and file names
abdulhakkeempa Jan 29, 2023
ff3d2b2
select tag added need to improvise ui
abdulhakkeempa Jan 29, 2023
4502873
update in styling
abdulhakkeempa Jan 29, 2023
9448a9f
improvised UI, exception handling in fetch request
abdulhakkeempa Jan 29, 2023
bc9c44d
update file structure
abdulhakkeempa Jan 30, 2023
b244ee3
regex to avoid image,data files in the repository..
abdulhakkeempa Mar 16, 2023
2024ee8
Create CNAME
abdulhakkeempa Apr 1, 2023
7e4743b
Delete CNAME
abdulhakkeempa Apr 1, 2023
e4e9b42
Create CNAME
abdulhakkeempa Apr 1, 2023
dc5dddd
bug-fix: first repository file content loading bug fixed
abdulhakkeempa Apr 28, 2023
6b1fa9d
added a new button for clearing the form
abdulhakkeempa Apr 29, 2023
7d7ad0b
feature: added a button for settings popup
abdulhakkeempa Apr 29, 2023
b2ef86d
feature: integrated the function to reset the input form
abdulhakkeempa Apr 29, 2023
d75b238
feature: working on beta feature for updating the hardcoded latex cod…
abdulhakkeempa Apr 29, 2023
82d6c28
feature: working on beta feature for updating the hardcoded latex cod…
abdulhakkeempa Apr 29, 2023
89cad85
added a button to include docs
abdulhakkeempa Apr 30, 2023
41dcbb0
updated few stylings
abdulhakkeempa Apr 30, 2023
b9351eb
feature: custom code updation and code generation working
abdulhakkeempa Apr 30, 2023
765398c
fix: updated the toast alert to inline alerts to the modals
abdulhakkeempa May 2, 2023
6f5d70b
feature: integrated features working fine
abdulhakkeempa May 2, 2023
b88d74a
fix: added documentation to the code.
abdulhakkeempa May 2, 2023
05a7441
Create LICENSE
abdulhakkeempa May 2, 2023
44b98af
Merge pull request #3 from abdulhakkeempa/add-license-1
abdulhakkeempa May 2, 2023
8bd3407
fix: merge conflict fix
abdulhakkeempa May 2, 2023
1b1ecea
Update README.md
abdulhakkeempa May 4, 2023
0a0cf39
feature: github api repo fetch with pagination done with a button, ne…
abdulhakkeempa Aug 8, 2023
1477b0c
Feature: added a helper text for next repository
abdulhakkeempa Aug 8, 2023
a88705c
Delete CNAME
abdulhakkeempa Sep 11, 2023
acdf0c4
Update README.md
abdulhakkeempa Oct 10, 2023
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
Prev Previous commit
Next Next commit
improvised UI, exception handling in fetch request
abdulhakkeempa committed Jan 29, 2023
commit 9448a9f1a2ed3e3dae0a045efcb0f3d599090bec
9 changes: 4 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
@@ -50,17 +50,16 @@ <h1 class="pt-4 pb-4 font-sans text-slate-200 text-center font-bold">Rapidly tra
</div>
<div class="mb-3">
<label for="github_repo" class="form-label font-sans text-slate-200 text-base">Github Repository Name</label>
<input type="text" class="form-control text-white bg-slate-800" placeholder="dbms-lab-cusat" >
<select class="form-select" aria-label="Default select example" id="github_repo" name="github_repo" onchange="fetchRepoFiles(this.value)" required>
<select class="form-select bg-dark text-white" aria-label="Default select example" id="github_repo" name="github_repo" onchange="fetchRepoFiles(this.value)" required data-bs-theme="dark">
<option value="0" selected>Your Github Repository</option>
</select>

</div>
<div class="mb-3">
<label for="folder_structure" class="form-label font-sans text-slate-200 text-base">File Structure</label>
<input type="text" class="form-control text-white bg-slate-800" placeholder="Lab-Cycle-2/server.js" >
<select class="form-select" aria-label="Default select example" id="folder_structure" name="folder_structure" required>
<select class="form-select bg-dark text-white" aria-label="Default select example" id="folder_structure" name="folder_structure" required data-bs-theme="dark">
<option value="0" selected>Your File</option>
</select>
<div id="emailHelp" class="form-text">If this is the url <strong>https://github.com/abdulhakkeempa/dbms-lab-cusat/blob/main/Lab-Cycle-2/mongo-db.txt</strong>, enter Lab-Cycle-2/mongo-db.txt</div>
</div>
<button type="submit" id="submit-button" class="btn btn-primary font-sans text-slate-200 text-base">Submit</button>
</form>
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ function fetchRepoNames(username){
fetch(`https://api.github.com/users/${username}/repos`)
.then((response) => {
if (!response.ok) {
throw new Error('Network response was not OK');
throw new Error("Invalid Username");
}
return response.json()
})
7 changes: 5 additions & 2 deletions style.css
Original file line number Diff line number Diff line change
@@ -4,9 +4,12 @@
#output::-webkit-scrollbar,
#output::-webkit-scrollbar-thumb {
width: 24px;
border-radius: 13px;
background-clip: padding-box;
border: 10px solid transparent;
border: 10px solid rgb(51 65 85);
}

#output::-webkit-scrollbar-thumb{
border-radius: 12px;
}

#output::-webkit-scrollbar-thumb {