rename cosign -> copay throughout code
Also, "cosigners" becomes "copayers"
This commit is contained in:
parent
dbc0018ad3
commit
7176e49509
15 changed files with 44 additions and 44 deletions
34
js/app.js
34
js/app.js
|
|
@ -1,25 +1,25 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('cosign',[
|
||||
angular.module('copay',[
|
||||
'ngRoute',
|
||||
'mm.foundation',
|
||||
'monospaced.qrcode',
|
||||
'cosign.header',
|
||||
'cosign.home',
|
||||
'cosign.transactions',
|
||||
'cosign.send',
|
||||
'cosign.backup',
|
||||
'cosign.network',
|
||||
'cosign.signin',
|
||||
'cosign.join'
|
||||
'copay.header',
|
||||
'copay.home',
|
||||
'copay.transactions',
|
||||
'copay.send',
|
||||
'copay.backup',
|
||||
'copay.network',
|
||||
'copay.signin',
|
||||
'copay.join'
|
||||
]);
|
||||
|
||||
angular.module('cosign.header', []);
|
||||
angular.module('cosign.home', []);
|
||||
angular.module('cosign.transactions', []);
|
||||
angular.module('cosign.send', []);
|
||||
angular.module('cosign.backup', []);
|
||||
angular.module('cosign.network', []);
|
||||
angular.module('cosign.signin', []);
|
||||
angular.module('cosign.join', []);
|
||||
angular.module('copay.header', []);
|
||||
angular.module('copay.home', []);
|
||||
angular.module('copay.transactions', []);
|
||||
angular.module('copay.send', []);
|
||||
angular.module('copay.backup', []);
|
||||
angular.module('copay.network', []);
|
||||
angular.module('copay.signin', []);
|
||||
angular.module('copay.join', []);
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
//Setting up route
|
||||
angular
|
||||
.module('cosign')
|
||||
.module('copay')
|
||||
.config(function($routeProvider) {
|
||||
|
||||
$routeProvider
|
||||
|
|
@ -34,7 +34,7 @@ angular
|
|||
|
||||
//Setting HTML5 Location Mode
|
||||
angular
|
||||
.module('cosign')
|
||||
.module('copay')
|
||||
.config(function($locationProvider) {
|
||||
$locationProvider
|
||||
.html5Mode(false);
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('cosign.backup').controller('BackupController',
|
||||
angular.module('copay.backup').controller('BackupController',
|
||||
function($scope, $rootScope, $location) {
|
||||
$scope.title = 'Backup';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('cosign.header').controller('HeaderController',
|
||||
angular.module('copay.header').controller('HeaderController',
|
||||
function($scope, $rootScope, $location) {
|
||||
$scope.menu = [{
|
||||
'title': 'Home',
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('cosign.home').controller('HomeController',
|
||||
angular.module('copay.home').controller('HomeController',
|
||||
function($scope, $rootScope, $location) {
|
||||
$scope.title = 'Home';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,20 +1,20 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('cosign.join').controller('JoinController',
|
||||
angular.module('copay.join').controller('JoinController',
|
||||
function($scope, $rootScope, $routeParams, Network) {
|
||||
|
||||
$scope.connectionId = $routeParams.id;
|
||||
$scope.cosigners = [];
|
||||
$scope.copayers = [];
|
||||
|
||||
$scope.init = function() {
|
||||
console.log('-------- init --------');
|
||||
console.log($rootScope.peerId);
|
||||
$scope.cosigners.push($rootScope.peerId);
|
||||
$scope.copayers.push($rootScope.peerId);
|
||||
|
||||
Network.connect($scope.connectionId, function(cosigner) {
|
||||
Network.connect($scope.connectionId, function(copayer) {
|
||||
console.log('----- join connect --------');
|
||||
console.log(cosigner);
|
||||
$scope.cosigners.push(cosigner);
|
||||
console.log(copayer);
|
||||
$scope.copayers.push(copayer);
|
||||
$scope.$digest();
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('cosign.send').controller('SendController',
|
||||
angular.module('copay.send').controller('SendController',
|
||||
function($scope, $rootScope, $location) {
|
||||
$scope.title = 'Send';
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('cosign.signin').controller('SigninController',
|
||||
angular.module('copay.signin').controller('SigninController',
|
||||
function($scope, $rootScope, $location, Network) {
|
||||
$rootScope.peerId = null;
|
||||
$scope.peerReady = false;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('cosign.transactions').controller('TransactionsController',
|
||||
angular.module('copay.transactions').controller('TransactionsController',
|
||||
function($scope, $rootScope, $location) {
|
||||
$scope.title = 'Transactions';
|
||||
|
||||
|
|
|
|||
|
|
@ -2,5 +2,5 @@
|
|||
|
||||
angular.element(document).ready(function() {
|
||||
// Init the app
|
||||
angular.bootstrap(document, ['cosign']);
|
||||
angular.bootstrap(document, ['copay']);
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('cosign.network')
|
||||
angular.module('copay.network')
|
||||
.factory('NetworkTest', function() {
|
||||
this.f = function() {
|
||||
return 2;
|
||||
|
|
@ -55,7 +55,7 @@ angular.module('cosign.network')
|
|||
label: 'wallet',
|
||||
serialization: 'none',
|
||||
reliable: false,
|
||||
metadata: { message: 'hi! cosigners' }
|
||||
metadata: { message: 'hi! copayers' }
|
||||
});
|
||||
|
||||
c.on('open', function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue