Skip to content

Commit 66ff123

Browse files
authored
Merge pull request #10 from peersafe/cd
Cd
2 parents 145d4fb + e1e91b6 commit 66ff123

File tree

13 files changed

+220
-214
lines changed

13 files changed

+220
-214
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,18 @@ db/testnet/blocks/*
4040
db/testnet/blocks
4141

4242
public/js/angularjs-all.js
43+
public/js/angularjs-all.min.js
44+
public/js/main.min.js
4345
public/js/main.js
4446
public/js/vendors.js
47+
public/js/vendors.min.js
4548

4649
public/css/main.css
4750

4851
README.html
4952
po/*
5053
!po/*.po
54+
55+
public/js/main.min.js
56+
57+
public/css/main.min.css

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@
4747
"build": "bower install && grunt compile",
4848
"watch": "grunt"
4949
},
50-
"dependencies": {},
50+
"dependencies": {
51+
"bitcore-lib": "^0.14.0",
52+
"mkdirp": "^0.5.1"
53+
},
5154
"devDependencies": {
5255
"bower": "~1.8.0",
5356
"grunt": "~0.4.2",

public/js/main.min.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

public/src/css/style.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ table a{color: #30bfa1;}
133133
.del-pop h5{font-size: 16px; text-align: center;margin: 20px 0; font-weight: normal;}
134134
.del-pop button{width: 120px; height: 40px; margin-left: 105px; margin-top: 30px; border: none; color: #fff;border-radius: 3px; background: #30bfa1; cursor: pointer;}
135135
.del-pop button.fou{background: #2fa4d7;}
136-
.tian-popWrap , #tian-popWrap{width: 100%; height:100%; background: rgba(0,0,0,0.5); position: absolute; left: 0; top: 0; z-index: 999;display: none;}
136+
.tian-popWrap{width: 100%; height:100%; background: rgba(0,0,0,0.5); position: absolute; left: 0; top: 0; z-index: 999;}
137+
#tian-popWrap{width: 100%; height:100%; background: rgba(0,0,0,0.5); position: absolute; left: 0; top: 0; z-index: 999;display: none}
137138
.tian-pop{width: 600px; position: absolute; left: 50%; top: 140px; margin-left: -350px; background: #fff;padding: 50px;}
138139
.tian-pop img{position: absolute; top: -15px; right:-15px; cursor: pointer;}
139140
.tian-pop input{width: 500px; height: 35px; border: 1px solid #ddd;background: #fff; padding-left: 10px;}

public/src/js/app.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ angular.module('insight',[
2323
'insight.status',
2424
'insight.connection',
2525
'insight.currency',
26-
'insight.messages',
26+
'insight.messages',
27+
'insight.blacklists',
2728
'insight.login'
2829
]);
2930

@@ -38,4 +39,5 @@ angular.module('insight.status', []);
3839
angular.module('insight.connection', []);
3940
angular.module('insight.currency', []);
4041
angular.module('insight.messages', []);
42+
angular.module('insight.blacklists', []);
4143
angular.module('insight.login', []);

public/src/js/config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ angular.module('insight').config(function($routeProvider) {
5151
templateUrl: 'views/history.html',
5252
title: 'History'
5353
}).
54-
when('/blacklist', {
55-
templateUrl: 'views/blacklist.html',
54+
when('/blacklists', {
55+
templateUrl: 'views/blacklists.html',
5656
title: 'Blacklist'
5757
}).
5858
when('/messages/verify', {
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
'use strict';
2+
3+
angular.module('insight.blacklists').controller('BlacklistsController',
4+
function ($scope, $rootScope, $routeParams, BlacklistService) {
5+
// $scope.global = Global;
6+
// $scope.loading = false;
7+
8+
console.log("blacklists controller start");
9+
10+
$scope.blacklists = BlacklistService.list();
11+
$scope.bedit = true;
12+
13+
$scope.saveBlacklist = function () {
14+
$scope.addBlackBtn = !$scope.addBlackBtn;
15+
BlacklistService.save($scope.newblacklist);
16+
$scope.newblacklist = {};
17+
$scope.bedit = true;
18+
};
19+
20+
$scope.delete = function (id) {
21+
if ($scope.newblacklist.id == id) $scope.newblacklist = {};
22+
BlacklistService.delete(id);
23+
$scope.bedit = true;
24+
$scope.blacklists = BlacklistService.list();
25+
console.log("after dellete list=",$scope.blacklists);
26+
};
27+
28+
$scope.edit = function (id) {
29+
$scope.newblacklist = angular.copy(BlacklistService.get(id));
30+
$scope.bedit = false;
31+
$scope.blacklists = BlacklistService.list();
32+
console.log("after edit list=",$scope.blacklists);
33+
};
34+
35+
$scope.params = $routeParams;
36+
37+
});

public/src/js/controllers/header.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ angular.module('insight.system').controller('HeaderController',
2525
'link': 'history'
2626
}, {
2727
'title': 'Blacklist',
28-
'link': 'blacklist'
28+
'link': 'blacklists'
2929
}];
3030

3131
$scope.openScannerModal = function() {

public/src/js/init.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

public/src/js/jquery/js.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,14 +61,14 @@ $(document).ready(function(){
6161

6262

6363

64-
document.getElementById('quanxuan').onclick = function() {
64+
$('#quanxuan').click( function() {
6565
var obj = document.getElementsByTagName('input'); //获取文档中所有的input元素
6666
for (var i = 0; i < obj.length; i ++) {
6767
if (obj[i].type == 'checkbox') {
6868
obj[i].checked = true; //设置复选框元素对象的checked属性值为true就能勾选该复选框;false即为取消选择
6969
}
7070
}
71-
}
71+
});
7272

7373

7474

0 commit comments

Comments
 (0)