Skip to content

Commit 670e890

Browse files
committed
Revert "chore(gc): rm unmigrated files"
This reverts commit e9aad69.
1 parent dc1a6c7 commit 670e890

File tree

118 files changed

+21465
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

118 files changed

+21465
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"project": {
4+
"name": "insight-ui"
5+
},
6+
"apps": [
7+
{
8+
"root": "src",
9+
"outDir": "dist",
10+
"assets": [
11+
"assets",
12+
"favicon.ico"
13+
],
14+
"index": "index.html",
15+
"main": "app/main.ts",
16+
"polyfills": "polyfills.ts",
17+
"test": "test.ts",
18+
"tsconfig": "tsconfig.app.json",
19+
"testTsconfig": "tsconfig.spec.json",
20+
"prefix": "app",
21+
"scripts": [],
22+
"environmentSource": "environments/environment.ts",
23+
"environments": {
24+
"dev": "environments/environment.ts",
25+
"prod": "environments/environment.prod.ts"
26+
}
27+
}
28+
],
29+
"e2e": {
30+
"protractor": {
31+
"config": "./protractor.conf.js"
32+
}
33+
},
34+
"lint": [
35+
{
36+
"project": "src/tsconfig.app.json"
37+
},
38+
{
39+
"project": "src/tsconfig.spec.json"
40+
},
41+
{
42+
"project": "e2e/tsconfig.e2e.json"
43+
}
44+
],
45+
"test": {
46+
"karma": {
47+
"config": "./karma.conf.js"
48+
},
49+
"codeCoverage": {
50+
"exclude": [
51+
"src/polyfills.ts",
52+
"src/test.ts",
53+
"src/mocks.ts",
54+
"**/*.mock.ts"
55+
]
56+
}
57+
},
58+
"defaults": {
59+
"styleExt": "css",
60+
"component": {}
61+
}
62+
}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Javascript Node CircleCI 2.0 configuration file
2+
# Check https://circleci.com/docs/2.0/language-javascript/ for more details
3+
version: 2
4+
jobs:
5+
build-and-test:
6+
docker:
7+
- image: circleci/node:8.10-browsers
8+
working_directory: ~/insight
9+
steps:
10+
- checkout
11+
12+
# Download and cache dependencies
13+
- restore_cache:
14+
keys:
15+
- dependency-cache-{{ checksum "package.json" }}
16+
- run: npm install
17+
- save_cache:
18+
paths:
19+
- node_modules
20+
key: dependency-cache-{{ checksum "package.json" }}
21+
22+
# run tests
23+
- run: npm run test:ci
24+
25+
workflows:
26+
version: 2
27+
build_and_test:
28+
jobs:
29+
- build-and-test

packages/insight-previous/.gitignore

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Specifies intentionally untracked files to ignore when using Git
2+
# http://git-scm.com/docs/gitignore
3+
4+
*~
5+
*.sw[mnpcod]
6+
*.log
7+
*.tmp
8+
*.tmp.*
9+
log.txt
10+
*.sublime-project
11+
*.sublime-workspace
12+
.vscode/
13+
npm-debug.log*
14+
15+
.sourcemaps/
16+
17+
.idea/
18+
.sass-cache/
19+
.tmp/
20+
.versions/
21+
coverage/
22+
dist/
23+
node_modules/
24+
tmp/
25+
temp/
26+
hooks/
27+
platforms/
28+
plugins/
29+
plugins/android.json
30+
plugins/ios.json
31+
www/
32+
$RECYCLE.BIN/
33+
34+
# e2e
35+
/e2e/*.js
36+
/e2e/*.map
37+
38+
.DS_Store
39+
Thumbs.db
40+
UserInterfaceState.xcuserstate
41+
42+
# .docker env
43+
.docker/env/*.env
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
package.json
2+
package-lock.json

packages/insight-previous/.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
sudo: false
2+
language: node_js
3+
node_js:
4+
- 8
5+
after_success:
6+
- yarn send-coverage

packages/insight-previous/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
FROM bitcore-node
2+
CMD ["npm", "--prefix=./packages/insight", "start"]

packages/insight-previous/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2013-2018 BitPay, Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

packages/insight-previous/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Insight
2+
3+
**A blockchain explorer for Bitcore.**
4+
5+
## Quick Start
6+
7+
To get started, first [start a `bitcore` node](../../readme.md), then run insight:
8+
9+
```bash
10+
cd bitcore
11+
npm start insight
12+
```
13+
14+
## Network / Chain setting
15+
16+
To use a specific network / chain set the `NETWORK` and `CHAIN` environment variable, e.g.:
17+
18+
```bash
19+
NETWORK=testnet CHAIN=BCH npm start
20+
```
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import { browser, element, by } from 'protractor';
2+
3+
describe('InsightApp', () => {
4+
5+
beforeEach(() => {
6+
browser.get('');
7+
});
8+
9+
it('should have a title', () => {
10+
expect(browser.getTitle()).toEqual('Insight');
11+
});
12+
13+
it('should have {nav}', () => {
14+
expect(element(by.css('ion-navbar')).isPresent()).toEqual(true);
15+
});
16+
17+
it('has a menu button that displays the left menu', () => {
18+
element(by.css('.bar-button-menutoggle')).click()
19+
.then(() => {
20+
browser.driver.sleep(2000); // wait for the animation
21+
expect(element(by.css('ion-menu')).isPresent()).toEqual(true);
22+
});
23+
});
24+
25+
it('the left menu has a link with title Home', () => {
26+
element(by.css('.bar-button-menutoggle')).click()
27+
.then(() => {
28+
browser.driver.sleep(2000); // wait for the animation
29+
expect(element.all(by.css('ion-label')).first().getText()).toEqual('Home');
30+
});
31+
});
32+
});
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { browser, element, by, ElementFinder } from 'protractor';
2+
3+
describe('BroadcastTxPage', () => {
4+
5+
beforeEach(() => {
6+
browser.get('');
7+
});
8+
9+
it('should have an input field', () => {
10+
element(by.css('.bar-button-menutoggle')).click().then(() => {
11+
browser.driver.sleep(2000); // wait for the animation
12+
element.all(by.className('input-wrapper')).then((items) => {
13+
items[2].click();
14+
browser.driver.sleep(2000); // wait for the animation
15+
let theElem = element.all(by.css('ion-label')).first;
16+
console.log(theElem);
17+
expect(element.all(by.css('ion-input')).first().isPresent()).toEqual(true);
18+
return items[1];
19+
});
20+
});
21+
});
22+
});
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "../tsconfig.ng-cli.json",
3+
"compilerOptions": {
4+
"outDir": "../out-tsc/e2e",
5+
"module": "commonjs",
6+
"target": "es5",
7+
"types": [
8+
"jasmine",
9+
"node"
10+
]
11+
}
12+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "insight",
3+
"integrations": {
4+
"cordova": {}
5+
},
6+
"type": "ionic-angular",
7+
"proxies": [
8+
{
9+
"path": "/api",
10+
"proxyUrl": "http://zeus.bitjson.me:3000/api"
11+
}
12+
],
13+
"hooks": {}
14+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Karma configuration file, see link for more information
2+
// https://karma-runner.github.io/0.13/config/configuration-file.html
3+
4+
module.exports = function (config) {
5+
config.set({
6+
basePath: '',
7+
frameworks: ['jasmine', '@angular/cli'],
8+
plugins: [
9+
require('karma-jasmine'),
10+
require('karma-chrome-launcher'),
11+
require('karma-jasmine-html-reporter'),
12+
require('karma-coverage-istanbul-reporter'),
13+
require('@angular/cli/plugins/karma')
14+
],
15+
client:{
16+
clearContext: false // leave Jasmine Spec Runner output visible in browser
17+
},
18+
files: [
19+
{ pattern: './src/test.ts', watched: false }
20+
],
21+
preprocessors: {
22+
'./src/test.ts': ['@angular/cli']
23+
},
24+
mime: {
25+
'text/x-typescript': ['ts','tsx']
26+
},
27+
coverageIstanbulReporter: {
28+
reports: [ 'html', 'lcovonly' ],
29+
fixWebpackSourcePaths: true
30+
},
31+
angularCli: {
32+
environment: 'dev'
33+
},
34+
reporters: config.angularCli && config.angularCli.codeCoverage
35+
? ['progress', 'coverage-istanbul']
36+
: ['progress', 'kjhtml'],
37+
port: 9876,
38+
colors: true,
39+
logLevel: config.LOG_INFO,
40+
autoWatch: true,
41+
browsers: ['Chrome'],
42+
singleRun: false
43+
});
44+
};

0 commit comments

Comments
 (0)