Skip to content

seppeclijsters/githubAPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project description

Details project

  • Sort repositiories alphabetically, by stars, by forks or by last updated
  • Filter commits by search
  • CSS Preprocessors: SASS
  • State management with Vuex

Project instruction

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

ES6 functions

Array.prototype.filter()

state.githubCommits.filter( element => element.commit.message.includes(search))

The filter() method creates a new array with all elements that pass the test. The new array consists of commits where the commit message matches the search input.

Array.prototype.sort()

state.githubData.sort(function (a, b) {
    return new Date(b[order]) - new Date(a[order]);
}); 

The sort() method sorts the elements of an array in place and returns the sorted array. In this case the new array is sorted by date.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published