martinsonesson.se JsDOC

MenuController

Controller for menu
Parameters:
Name Type Description
$scope $scope See https://code.angularjs.org/1.2.26/docs/api/ng/type/$rootScope.Scope
pageUrlService services.PageUrlService Service for reading GET-parameters from the URL.
$timeout $timeout See https://code.angularjs.org/1.2.26/docs/api/ng/service/$timeout
Source:

Methods

currentPage() → {string}

Function for getting the current main page
Source:
Returns:
The current main page
Type
string

folderIsBlacklisted(dirName)

Function for determining if the specified folder is in the blacklist of folders to ignore
Parameters:
Name Type Description
dirName String Name of the folder
Source:

getDependenciesFromPackage(response)

Function for determining which dependencies are used for the project
Parameters:
Name Type Description
response String The response
Source:

handleContents(data)

Recursive function used to traverse all folders of a repo and get the contents and build up the stats used for graphs
Parameters:
Name Type Description
data Obj The content data to process
Source:

init()

Initialization function
Source:

initProject(project)

Function for initializing a chosen project which includes gathering data of the project repo
Parameters:
Name Type Description
project Obj The project to initialize
Source:

isSelected() → {boolean}

Function for determining if a specified submenu item is currently selected
Source:
Returns:
True if the current sub menu item is selected, otherwise false
Type
boolean
Function for the event when user clicks a main menu item. Hides/shows the correct submenu
Parameters:
Name Type Description
id Obj The id for the clicked menu item
Source:

reset()

Reset data used for repository stats
Source:

setEvents()

Set listener for the hide event of the modals
Source: