Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ac27263
first fetch
idanaslund Feb 21, 2022
e6b4574
added aside and h4
idanaslund Feb 22, 2022
ebe040a
started on design
idanaslund Feb 22, 2022
e89d922
added username
idanaslund Feb 23, 2022
95fb775
tried another fetch
idanaslund Feb 23, 2022
6e52e1f
added script for token and added chart
idanaslund Feb 23, 2022
89e9e11
removed node, fetched profile and sorted repos
idanaslund Feb 23, 2022
5f9c925
added info about repos, started on commits
idanaslund Feb 24, 2022
564eaf6
fetched PR
idanaslund Feb 25, 2022
ab9ff69
testing fetches
idanaslund Feb 25, 2022
6575804
fetched pulls and commits
idanaslund Feb 25, 2022
3fb11d9
done with fetches
idanaslund Feb 25, 2022
ec69274
created if-statement for pull requests
idanaslund Feb 25, 2022
3e4acda
changed some styling
idanaslund Feb 25, 2022
81436f0
done the chart of amount of repos
idanaslund Feb 26, 2022
fa28a13
trying to sort repos with drop-down
idanaslund Feb 26, 2022
e6159cf
tiny fixes
idanaslund Feb 26, 2022
382d93f
removed console.log
idanaslund Feb 27, 2022
36d3806
last touches
idanaslund Feb 27, 2022
9503da9
readme
idanaslund Feb 27, 2022
94bff75
moved gitignore
idanaslund Feb 27, 2022
0e63ef9
removing token
idanaslund Feb 27, 2022
709da4f
token
idanaslund Feb 27, 2022
8cd9dcd
token removed
idanaslund Feb 27, 2022
070b209
Update README.md
idanaslund Feb 27, 2022
f519e65
removed token.js from html
idanaslund Feb 27, 2022
55d6902
Merge branch 'main' of https://github.com/idanaslund/project-github-t…
idanaslund Feb 27, 2022
1ba6f7c
final changes
idanaslund Feb 27, 2022
fc43680
changes from code review
idanaslund Mar 2, 2022
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
8 changes: 3 additions & 5 deletions README.md
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.
Copy link
Copy Markdown

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!


## 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/
51 changes: 51 additions & 0 deletions code/chart.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Copy link
Copy Markdown

Choose a reason for hiding this comment

The 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 added code/images/GitHub-Mark/.DS_Store
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.
Binary file added code/images/GitHub-Mark/PNG/GitHub-Mark-32px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added code/images/GitHub-Mark/PNG/GitHub-Mark-64px.png
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.
1,564 changes: 1,564 additions & 0 deletions code/images/GitHub-Mark/Vector/GitHub-Mark.ai

Large diffs are not rendered by default.

Loading