-
Notifications
You must be signed in to change notification settings - Fork 131
project-github-tracker #96
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
Open
idanaslund
wants to merge
29
commits into
Technigo:main
Choose a base branch
from
idanaslund:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
ac27263
first fetch
idanaslund e6b4574
added aside and h4
idanaslund ebe040a
started on design
idanaslund e89d922
added username
idanaslund 95fb775
tried another fetch
idanaslund 6e52e1f
added script for token and added chart
idanaslund 89e9e11
removed node, fetched profile and sorted repos
idanaslund 5f9c925
added info about repos, started on commits
idanaslund 564eaf6
fetched PR
idanaslund ab9ff69
testing fetches
idanaslund 6575804
fetched pulls and commits
idanaslund 3fb11d9
done with fetches
idanaslund ec69274
created if-statement for pull requests
idanaslund 3e4acda
changed some styling
idanaslund 81436f0
done the chart of amount of repos
idanaslund fa28a13
trying to sort repos with drop-down
idanaslund e6159cf
tiny fixes
idanaslund 382d93f
removed console.log
idanaslund 36d3806
last touches
idanaslund 9503da9
readme
idanaslund 94bff75
moved gitignore
idanaslund 0e63ef9
removing token
idanaslund 709da4f
token
idanaslund 8cd9dcd
token removed
idanaslund 070b209
Update README.md
idanaslund f519e65
removed token.js from html
idanaslund 55d6902
Merge branch 'main' of https://github.com/idanaslund/project-github-t…
idanaslund 1ba6f7c
final changes
idanaslund fc43680
changes from code review
idanaslund File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,11 @@ | ||
| # GitHub Tracker | ||
|
|
||
| Replace this readme with your own information about your project. | ||
|
|
||
| Start by briefly describing the assignment in a sentence or two. Keep it short and to the point. | ||
| This week the project was to fetch information from Github about my repositories and pull requests and display the information on a page. We were also supposed to compare data in a chart. | ||
|
|
||
| ## The problem | ||
|
|
||
| Describe how you approached to problem, and what tools and techniques you used to solve it. How did you plan? What technologies did you use? If you had more time, what would be next? | ||
| I had trouble with fetching the amount of commits from the pull requests. I used my team for help and also analyzed other students code to solve it. I also had a problem with planning this project because I found it hard to understand what the end product was going to be. If I had more time I would have tried to accomplish the red and black levels. | ||
|
|
||
| ## View it live | ||
|
|
||
| Every project should be deployed somewhere. Be sure to include the link to the deployed project so that the viewer can click around and see what it's all about. | ||
| https://ecstatic-ptolemy-db0375.netlify.app/ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,3 +2,54 @@ | |
| const ctx = document.getElementById('chart').getContext('2d') | ||
|
|
||
| //"Draw" the chart here 👇 | ||
|
|
||
| const callingChart = (amountOfRepos) => { | ||
|
|
||
|
|
||
| const labels = [ | ||
| 'Projects done', | ||
| 'Projects left to do' | ||
| ]; | ||
|
|
||
| const data = { | ||
| labels: labels, | ||
| datasets: [{ | ||
| label: 'Technigo Projects', | ||
| backgroundColor: ['rgb(82, 183, 136)', 'rgb(0, 108, 117)'], | ||
| borderColor: 'rgb(255, 99, 132)', | ||
| data: [amountOfRepos, 19-amountOfRepos], | ||
| }] | ||
| }; | ||
|
|
||
| const config = { | ||
| type: 'bar', | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I really like that you used a bar chart to showcase your projects and your progression. Also that you put it on top of the page! The chart is also responsive which is great :) |
||
| data: data, | ||
| options: { | ||
| responsive: true, | ||
| maintainAspectRatio: false, | ||
| indexAxis: 'y', | ||
| scales: { | ||
| x: { | ||
| suggestedMin: 0, | ||
| suggestedMax: 19, | ||
| stacked: true, | ||
| grid: { | ||
| display: true, | ||
| }, | ||
| }, | ||
| y: { | ||
| stacked: true, | ||
| grid: { | ||
| display: true, | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }; | ||
|
|
||
| const myChart = new Chart( | ||
| document.getElementById('chart'), | ||
| config | ||
| ); | ||
|
|
||
| } | ||
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice and to the point project brief!