-
Notifications
You must be signed in to change notification settings - Fork 60
Conversation
…o 30-add-documentation
…o 30-add-documentation
* Fetches a list of delegates based on the given search phrase | ||
* | ||
* @method loadDelegates | ||
* @param {Number} offset - The strating index of for the results |
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.
strating - typo?
@@ -1,5 +1,11 @@ | |||
import './delegateRegistration.less'; | |||
|
|||
/** | |||
* @description The directive performing as the form to register the client as delegate |
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.
'client' -> 'account'
q: search, | ||
}).then((data) => { | ||
this.addDelegates(data, replace); | ||
}); | ||
this.lastSearch = search; | ||
} | ||
|
||
/** | ||
* Fiils the list of delegates, sets their voted and changed status |
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.
Typo: Fiils
@@ -146,6 +211,13 @@ app.component('delegates', { | |||
this.checkPendingVotes(); | |||
} | |||
|
|||
/** | |||
* Fetches the lisy of delegates we've voted for (voted delegates), |
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.
Typo: lisy
clearSearch() { | ||
this.$scope.search = ''; | ||
} | ||
|
||
/** | ||
* Adds deelgates to vote delegates list |
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.
Typo: deelgates
src/app/services/dialog.js
Outdated
app.factory('dialog', ($mdDialog, $mdToast, $mdMedia) => ({ | ||
|
||
/** | ||
* Uses mdDialog to show a toast with error theme |
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.
'Uses mdDialog' -> 'Uses $mdToast'
src/app/services/passphrase.js
Outdated
@@ -47,12 +65,26 @@ app.factory('Passphrase', function ($rootScope) { | |||
return 1; | |||
}; | |||
|
|||
/** | |||
* Resets previous setting s and creates a step with a random length between 1.5% to 3.2% |
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.
'setting s' -> 'settings'
'1.5%' -> '1.6%'
src/app/services/passphrase.js
Outdated
this.init = () => { | ||
this.reset(); | ||
byte = emptyBytes(); | ||
this.progress.step = (160 + Math.floor(Math.random() * 160)) / 100; | ||
}; | ||
|
||
/** | ||
* - From a zero byte: | ||
* - Removes the all the 1s and replaces all the 1s with their index |
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.
'the all the' -> 'all the'
src/app/services/sync.js
Outdated
}); | ||
}; | ||
|
||
/** | ||
* We're calling this in framerate. call broadcast every config.updateInterval and | ||
* sends a numeric factor for ease of use as a multiples of updateInterval. |
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.
'as a multiples' -> 'as multiples'
src/app/services/sync.js
Outdated
|
||
/** | ||
* Starts the first frame by calling requestAnimationFrame. | ||
* Tis will be |
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.
Typo: Tis
This PR: