This repository has been archived by the owner on Apr 21, 2023. It is now read-only.
forked from SpiderBTT/NanoWallet-1
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: init node rewards modules (#678)
* feat: init node rewards modules * fix: clean up comment
- Loading branch information
1 parent
631def2
commit 35b428f
Showing
8 changed files
with
61 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import angular from 'angular'; | ||
|
||
// Create the module where our functionality can attach | ||
const nodeRewardsProgramModule = angular.module('app.nodeRewardsProgram', []); | ||
|
||
// Include our UI-Router config settings | ||
import NodeRewardsProgramConfig from './nodeRewardsProgram.config'; | ||
nodeRewardsProgramModule.config(NodeRewardsProgramConfig); | ||
|
||
// Controllers | ||
import NodeRewardsProgramCtrl from './nodeRewardsProgram.controller'; | ||
nodeRewardsProgramModule.controller('NodeRewardsProgramCtrl', NodeRewardsProgramCtrl); | ||
|
||
export default nodeRewardsProgramModule; |
14 changes: 14 additions & 0 deletions
14
src/app/modules/nodeRewardsProgram/nodeRewardsProgram.config.js
This file contains 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
function NodeRewardsProgramConfig($stateProvider) { | ||
'ngInject'; | ||
|
||
$stateProvider | ||
.state('app.nodeRewardsProgram', { | ||
url: '/nodeRewardsProgram', | ||
controller: 'NodeRewardsProgramCtrl', | ||
controllerAs: '$ctrl', | ||
templateUrl: 'modules/nodeRewardsProgram/nodeRewardsProgram.html', | ||
title: 'Node Rewards Program' | ||
}); | ||
}; | ||
|
||
export default NodeRewardsProgramConfig; |
21 changes: 21 additions & 0 deletions
21
src/app/modules/nodeRewardsProgram/nodeRewardsProgram.controller.js
This file contains 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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
class NodeRewardsProgramCtrl { | ||
|
||
/** | ||
* Initialize dependencies and properties | ||
* | ||
* @params {services} - Angular services to inject | ||
*/ | ||
constructor(Wallet, DataStore) { | ||
'ngInject'; | ||
|
||
//// Module dependencies region //// | ||
|
||
this._Wallet = Wallet; | ||
this._DataStore = DataStore; | ||
|
||
//// End dependencies region //// | ||
} | ||
|
||
} | ||
|
||
export default NodeRewardsProgramCtrl; |
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.