Compare commits

..

No commits in common. "master" and "v0.2.2" have entirely different histories.

69 changed files with 685 additions and 4520 deletions

3
.gitignore vendored
View File

@ -45,6 +45,3 @@ public/js/vendors.js
public/css/main.css
README.html
po/*
!po/*.po
*.codekit3

View File

@ -1,39 +0,0 @@
lib-cov
*.seed
*.log
*.csv
*.dat
*.out
*.pid
*.gz
*.swp
tags
pids
logs
results
build
node_modules
# extras
*.swp
*.swo
*~
.project
peerdb.json
npm-debug.log
.nodemonignore
.DS_Store
db/txs/*
db/txs
db/testnet/txs/*
db/testnet/txs
db/blocks/*
db/blocks
db/testnet/blocks/*
db/testnet/blocks
README.html
k*

View File

@ -1,5 +0,0 @@
language: node_js
node_js:
- 'v8'
install:
- npm install

View File

@ -1,7 +1,5 @@
'use strict';
// var config = require('flosight-config.json');
module.exports = function(grunt) {
//Load NPM tasks
@ -11,28 +9,10 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-css');
grunt.loadNpmTasks('grunt-markdown');
grunt.loadNpmTasks('grunt-macreload');
grunt.loadNpmTasks('grunt-angular-gettext');
grunt.loadNpmTasks('grunt-replace');
// Project Configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
replace: {
dist: {
options: {
patterns: [
{
match: 'INSIGHT_API_PREFIX',
replacement: '<%= pkg.flosightConfig.apiPrefix %>'
}
],
usePrefix: false
},
files: [
{src: ['public/src/templates/api.js'], dest: 'public/src/js/services/api.js'}
]
}
},
concat: {
options: {
process: function(src, filepath) {
@ -45,15 +25,15 @@ module.exports = function(grunt) {
}
},
vendors: {
src: ['public/src/js/ios-imagefile-megapixel/megapix-image.js', 'public/lib/qrcode-generator/js/qrcode.js', 'public/src/js/jsqrcode/grid.js', 'public/src/js/jsqrcode/version.js', 'public/src/js/jsqrcode/detector.js', 'public/src/js/jsqrcode/formatinf.js', 'public/src/js/jsqrcode/errorlevel.js', 'public/src/js/jsqrcode/bitmat.js', 'public/src/js/jsqrcode/datablock.js', 'public/src/js/jsqrcode/bmparser.js', 'public/src/js/jsqrcode/datamask.js', 'public/src/js/jsqrcode/rsdecoder.js', 'public/src/js/jsqrcode/gf256poly.js', 'public/src/js/jsqrcode/gf256.js', 'public/src/js/jsqrcode/decoder.js', 'public/src/js/jsqrcode/qrcode.js', 'public/src/js/jsqrcode/findpat.js', 'public/src/js/jsqrcode/alignpat.js', 'public/src/js/jsqrcode/databr.js', 'public/lib/momentjs/min/moment.min.js', 'public/lib/moment/lang/es.js', 'public/lib/zeroclipboard/ZeroClipboard.min.js'],
src: ['public/src/js/ios-imagefile-megapixel/megapix-image.js', 'public/lib/qrcode-generator/js/qrcode.js', 'public/src/js/jsqrcode/grid.js', 'public/src/js/jsqrcode/version.js', 'public/src/js/jsqrcode/detector.js', 'public/src/js/jsqrcode/formatinf.js', 'public/src/js/jsqrcode/errorlevel.js', 'public/src/js/jsqrcode/bitmat.js', 'public/src/js/jsqrcode/datablock.js', 'public/src/js/jsqrcode/bmparser.js', 'public/src/js/jsqrcode/datamask.js', 'public/src/js/jsqrcode/rsdecoder.js', 'public/src/js/jsqrcode/gf256poly.js', 'public/src/js/jsqrcode/gf256.js', 'public/src/js/jsqrcode/decoder.js', 'public/src/js/jsqrcode/qrcode.js', 'public/src/js/jsqrcode/findpat.js', 'public/src/js/jsqrcode/alignpat.js', 'public/src/js/jsqrcode/databr.js', 'public/lib/momentjs/min/moment.min.js', 'public/lib/zeroclipboard/ZeroClipboard.min.js'],
dest: 'public/js/vendors.js'
},
angular: {
src: ['public/lib/angular/angular.min.js', 'public/lib/angular-resource/angular-resource.min.js', 'public/lib/angular-route/angular-route.min.js', 'public/lib/angular-qrcode/qrcode.js', 'public/lib/angular-animate/angular-animate.min.js', 'public/lib/angular-bootstrap/ui-bootstrap.js', 'public/lib/angular-bootstrap/ui-bootstrap-tpls.js', 'public/lib/angular-ui-utils/ui-utils.min.js', 'public/lib/ngprogress/build/ngProgress.min.js', 'public/lib/angular-gettext/dist/angular-gettext.min.js', 'public/lib/angular-moment/angular-moment.min.js'],
src: ['public/lib/angular/angular.min.js', 'public/lib/angular-resource/angular-resource.min.js', 'public/lib/angular-route/angular-route.min.js', 'public/lib/angular-qrcode/qrcode.js', 'public/lib/angular-animate/angular-animate.min.js', 'public/lib/angular-bootstrap/ui-bootstrap.js', 'public/lib/angular-bootstrap/ui-bootstrap-tpls.js', 'public/lib/angular-ui-utils/ui-utils.min.js', 'public/lib/ngprogress/build/ngProgress.min.js'],
dest: 'public/js/angularjs-all.js'
},
main: {
src: ['public/src/js/app.js', 'public/src/js/controllers/*.js', 'public/src/js/services/*.js', 'public/src/js/directives.js', 'public/src/js/filters.js', 'public/src/js/config.js', 'public/src/js/init.js', 'public/src/js/translations.js'],
src: ['public/src/js/app.js', 'public/src/js/controllers/*.js', 'public/src/js/services/*.js', 'public/src/js/directives.js', 'public/src/js/filters.js', 'public/src/js/config.js', 'public/src/js/init.js'],
dest: 'public/js/main.js'
},
css: {
@ -106,43 +86,23 @@ module.exports = function(grunt) {
watch: {
main: {
files: ['public/src/js/**/*.js'],
tasks: ['concat:main', 'uglify:main'],
tasks: ['concat:main', 'uglify:main', 'macreload'],
},
css: {
files: ['public/src/css/**/*.css'],
tasks: ['concat:css', 'cssmin'],
tasks: ['concat:css', 'cssmin', 'macreload'],
},
},
nggettext_extract: {
pot: {
files: {
'po/template.pot': ['public/views/*.html', 'public/views/**/*.html']
}
},
},
nggettext_compile: {
all: {
options: {
module: 'flosight'
},
files: {
'public/src/js/translations.js': ['po/*.po']
}
},
}
});
//Making grunt default to force in order not to break the project.
grunt.option('force', true);
//Default task(s).
grunt.registerTask('default', ['replace', 'watch']);
//Update .pot file
grunt.registerTask('translate', ['nggettext_extract']);
grunt.registerTask('default', ['watch']);
//Compile task (concat + minify)
grunt.registerTask('compile', ['replace', 'nggettext_compile', 'concat', 'uglify', 'cssmin']);
grunt.registerTask('compile', ['concat', 'uglify', 'cssmin', 'macreload']);
};

144
README.md
View File

@ -1,98 +1,98 @@
# Flosight UI
# *insight*
A Florincoin blockchain explorer web application service for [Flocore Node](https://github.com/bitpay/flocore-node) using the [Flosight API](https://github.com/bitpay/flosight-api).
*insight* is an open-source bitcoin blockchain explorer with complete REST
and websocket APIs. Insight runs in NodeJS, uses AngularJS for the
front-end and LevelDB for storage.
## Quick Start
Check some screenshots and more details at [insight's project homepage](http://insight.bitcore.io).
Please see the guide at [https://flocore.io/guides/full-node](https://flocore.io/guides/full-node) for information about getting a block explorer running. This is only the front-end component of the block explorer, and is packaged together with all of the necessary components in [Flocore](https://github.com/bitpay/flocore).
*Insight* project is now splitted in two repositories. One for the [API](https://github.com/bitpay/insight-api) and for the front-end. This repository is for the front-end, which will install the API as a NPM dependency.
## Getting Started
## Prerequisites
To manually install all of the necessary components, you can run these commands:
* **Node.js v0.10.x** - Download and Install [Node.js](http://www.nodejs.org/download/).
```bash
npm install -g flocore-node
flocore-node create mynode
cd mynode
flocore-node install flosight-api
flocore-node install flosight-ui
flocore-node start
```
* **NPM** - Node.js package manager, should be automatically installed when you get node.js.
Open a web browser to `http://localhost:3001/flosight/`
## Quick Install
Check the Prerequisites section above before installing.
To install Insight, clone the main repository:
$ git clone https://github.com/bitpay/insight.git && cd insight
Install dependencies:
$ npm install
Run the main application:
$ npm start
Then open a browser and go to:
http://localhost:3001
If *insight* reports problems connecting to **bitcoind** please check the CONFIGURATION section of
[insight-api README](https://github.com/bitpay/insight-api/blob/master/README.md). To set the
environment variables run something like:
$ INSIGHT_NETWORK=livenet BITCOIND_USER=user BITCOIND_PASS=pass INSIGHT_PUBLIC_PATH=public npm start
Please note that the app will need to sync its internal database
with the blockchain state, which may take some time. You can check
sync progress from within the web interface. More details about that process
on [insight-api README](https://github.com/bitpay/insight-api/blob/master/README.md).
## Development
To build Flosight UI locally:
To run insight locally for development mode:
Install bower dependencies:
```$ bower install```
To compile and minify the web application's assets:
```$ grunt compile```
There is a convinent Gruntfile.js for automation during editing the code
```$ grunt```
In case you are developing *insight* and *insight-api* toghether, you can do the following:
* Install insight and insight-api on the same path ($IROOT)
```
$ npm run build
$ cd $IROOT/insight
$ grunt
```
in other terminal:
```
$ cd $IROOT/insight-api
$ ln -s ../insight/public
$ INSIGHT_PUBLIC_PATH=public node insight.js
```
A watch task is also available:
```
$ npm run watch
```
```INSIGHT_PUBLIC_PATH=insight/public grunt```
at insight-api's home path (edit the path according your setup).
## Changing routePrefix and apiPrefix
By default, the `flosightConfig` in `package.json` is:
```json
"flosightConfig": {
"apiPrefix": "flosight-api",
"routePrefix": "flosight"
}
```
To change these routes, first make your changes to `package.json`, for example:
```json
"flosightConfig": {
"apiPrefix": "api",
"routePrefix": ""
}
```
Then rebuild the `flosight-ui` service:
```
$ npm run build
```
## Multilanguage support
Flosight UI uses [angular-gettext](http://angular-gettext.rocketeer.be) for multilanguage support.
To enable a text to be translated, add the ***translate*** directive to html tags. See more details [here](http://angular-gettext.rocketeer.be/dev-guide/annotate/). Then, run:
```
grunt compile
```
This action will create a template.pot file in ***po/*** folder. You can open it with some PO editor ([Poedit](http://poedit.net)). Read this [guide](http://angular-gettext.rocketeer.be/dev-guide/translate/) to learn how to edit/update/import PO files from a generated POT file. PO file will be generated inside po/ folder.
If you make new changes, simply run **grunt compile** again to generate a new .pot template and the angular javascript ***js/translations.js***. Then (if use Poedit), open .po file and choose ***update from POT File*** from **Catalog** menu.
Finally changes your default language from ***public/src/js/config***
```
gettextCatalog.currentLanguage = 'es';
```
This line will take a look at any *.po files inside ***po/*** folder, e.g.
**po/es.po**, **po/nl.po**. After any change do not forget to run ***grunt
compile***.
**also** in the insight-api path. (So you will have to grunt process running, one for insight and one for insight-api).
## Note
For more details about the [Flosight API](https://github.com/bitpay/flosight-api) configuration and end-points, go to [Flosight API GitHub repository](https://github.com/bitpay/flosight-api).
For more details about the *insight API* configs and end-point, just go to [insight API github repository](https://github.com/bitpay/insight-api) or read the [documentation](https://github.com/bitpay/insight-api/blob/master/README.md)
## Contribute
Contributions and suggestions are welcomed at the [Flosight UI GitHub repository](https://github.com/bitpay/flosight-ui).
Contributions and suggestions are welcomed at [insight github repository](https://github.com/bitpay/insight).
## License

View File

@ -1,6 +1,6 @@
{
"name": "Flosight",
"version": "5.0.0-beta.1",
"name": "Insight",
"version": "0.0.1",
"dependencies": {
"angular": "~1.2.13",
"angular-resource": "~1.2.13",
@ -12,8 +12,6 @@
"momentjs": "~2.5.1",
"zeroclipboard": "~1.3.2",
"ngprogress": "~1.0.4",
"angular-ui-utils": "~0.1.1",
"angular-gettext": "~1.1.0",
"angular-moment": "~0.8.0"
"angular-ui-utils": "~0.1.1"
}
}

View File

@ -1,61 +0,0 @@
'use strict';
var BaseService = require('./service');
var inherits = require('util').inherits;
var fs = require('fs');
var exec = require('child_process').exec;
var pkg = require('../package.json');
var FlosightUI = function(options) {
BaseService.call(this, options);
this.apiPrefix = options.apiPrefix || 'api';
this.routePrefix = options.routePrefix || '';
};
FlosightUI.dependencies = ['flosight-api'];
inherits(FlosightUI, BaseService);
FlosightUI.prototype.start = function(callback) {
var self = this;
pkg.flosightConfig.apiPrefix = self.apiPrefix;
pkg.flosightConfig.routePrefix = self.routePrefix;
// fs.writeFileSync(__dirname + '/../package.json', JSON.stringify(pkg, null, 2));
// exec('cd ' + __dirname + '/../;' +
// ' npm run install-and-build', function(err) {
// if (err) {
// return callback(err);
// }
// self.indexFile = self.filterIndexHTML(fs.readFileSync(__dirname + '/../public/index-template.html', {encoding: 'utf8'}));
// callback();
// });
self.indexFile = self.filterIndexHTML(fs.readFileSync(__dirname + '/../public/index-template.html', {encoding: 'utf8'}));
callback();
};
FlosightUI.prototype.getRoutePrefix = function() {
return this.routePrefix;
};
FlosightUI.prototype.setupRoutes = function(app, express) {
var self = this;
app.use(express.static(__dirname + '/../public'));
// if not in found, fall back to indexFile (404 is handled client-side)
app.use(function(req, res) {
res.setHeader('Content-Type', 'text/html');
res.send(self.indexFile);
});
};
FlosightUI.prototype.filterIndexHTML = function(data) {
var transformed = data;
if (this.routePrefix !== '') {
transformed = transformed.replace('<base href="/"', '<base href="/' + this.routePrefix + '/"');
}
return transformed;
};
module.exports = FlosightUI;

View File

@ -1,91 +0,0 @@
'use strict';
var util = require('util');
var EventEmitter = require('events').EventEmitter;
var Service = function(options) {
EventEmitter.call(this);
this.node = options.node;
this.name = options.name;
};
util.inherits(Service, EventEmitter);
/**
* Describes the dependencies that should be loaded before this service.
*/
Service.dependencies = [];
/**
* blockHandler
* @param {Block} block - the block being added or removed from the chain
* @param {Boolean} add - whether the block is being added or removed
* @param {Function} callback - call with the leveldb database operations to perform
*/
Service.prototype.blockHandler = function(block, add, callback) {
// implement in the child class
setImmediate(function() {
callback(null, []);
});
};
/**
* the bus events available for subscription
* @return {Array} an array of event info
*/
Service.prototype.getPublishEvents = function() {
// Example:
// return [
// ['eventname', this, this.subscribeEvent, this.unsubscribeEvent],
// ];
return [];
};
/**
* the API methods to expose
* @return {Array} return array of methods
*/
Service.prototype.getAPIMethods = function() {
// Example:
// return [
// ['getData', this, this.getData, 1]
// ];
return [];
};
// Example:
// Service.prototype.getData = function(arg1, callback) {
//
// };
/**
* Function which is called when module is first initialized
*/
Service.prototype.start = function(done) {
setImmediate(done);
};
/**
* Function to be called when flocore-node is stopped
*/
Service.prototype.stop = function(done) {
setImmediate(done);
};
/**
* Setup express routes
* @param {Express} app
*/
Service.prototype.setupRoutes = function(app) {
// Setup express routes here
};
Service.prototype.getRoutePrefix = function() {
return this.name;
};
module.exports = Service;

1499
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,47 +1,63 @@
{
"name": "flosight-ui",
"description": "An open-source frontend for the Flosight API. The Flosight API provides you with a convenient, powerful and simple way to query and broadcast data on the florincoin network and build your own services with it.",
"version": "5.0.0-beta.72",
"repository": "git://github.com/bitpay/flosight-ui.git",
"bugs": {
"url": "https://github.com/bitpay/flosight-ui/issues"
"name": "insight-bitcore",
"description": "An open-source frontend for the Insight API. The Insight API provides you with a convenient, powerful and simple way to query and broadcast data on the bitcoin network and build your own services with it.",
"version": "0.2.2",
"author": {
"name": "Ryan X Charles",
"email": "ryan@bitpay.com"
},
"homepage": "https://github.com/bitpay/flosight-ui",
"repository": "git://github.com/bitpay/insight.git",
"contributors": [
{
"name": "Matias Alejo Garcia",
"email": "ematiu@gmail.com"
},
{
"name": "Manuel Araoz",
"email": "manuelaraoz@gmail.com"
},
{
"name": "Mario Colque",
"email": "colquemario@gmail.com"
},
{
"name": "Gustavo Cortez",
"email": "cmgustavo83@gmail.com"
},
{
"name": "Juan Ignacio Sosa Lopez",
"email": "bechilandia@gmail.com"
}
],
"bugs": {
"url": "https://github.com/bitpay/insight/issues"
},
"homepage": "https://github.com/bitpay/insight",
"license": "MIT",
"keywords": [
"flosight",
"insight",
"blockchain",
"blockexplorer",
"florincoin",
"flocore",
"bitcoin",
"bitcore",
"front-end"
],
"flocoreNode": "flocore-node",
"flosightConfig": {
"apiPrefix": "api",
"routePrefix": ""
},
"scripts": {
"build": "bower install && grunt compile",
"prepublishOnly": "npm run build",
"watch": "grunt",
"install-and-build": "npm install && npm run build",
"test": "mocha test"
"start": "INSIGHT_PUBLIC_PATH=public node node_modules/.bin/insight-bitcore-api"
},
"dependencies": {
"insight-bitcore-api": "=0.2.2"
},
"dependencies": {},
"devDependencies": {
"mocha": "^2.4.5",
"bower": "~1.8.0",
"bower": "~1.2.8",
"grunt": "~0.4.2",
"grunt-angular-gettext": "^0.2.15",
"grunt-cli": "~0.1.11",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-jshint": "~0.8.0",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-uglify": "~0.3.2",
"grunt-contrib-watch": "*",
"grunt-css": "~0.5.4",
"grunt-macreload": "*",
"grunt-markdown": "~0.5.0",
"grunt-replace": "^1.0.1"
"grunt-css": "~0.5.4",
"grunt-markdown": "~0.5.0"
}
}

View File

@ -1,474 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: Flosight\n"
"POT-Creation-Date: \n"
"PO-Revision-Date: \n"
"Last-Translator: Sascha Dückers <s.dueckers@gmail.com>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.1\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Language: de_DE\n"
#: public/views/transaction/tx.html
msgid "(Input unconfirmed)"
msgstr "(Eingabe unbestätigt)"
#: public/views/404.html
msgid "404 Page not found :("
msgstr "404 Seite nicht gefunden :("
#: public/views/index.html
msgid ""
"<strong>flosight</strong> is an <a href=\"http://flocha.in/\" target="
"\"_blank\">open-source Flo blockchain explorer</a> with complete REST "
"and websocket APIs that can be used for writing web wallets and other apps "
"that need more advanced blockchain queries than provided by Flod RPC. "
"Check out the <a href=\"https://github.com/oipwg/flosight-ui\" target=\"_blank"
"\">source code</a>."
msgstr ""
"<strong>flosight</strong> ist ein <a href=\"http://flocha.in/\" target="
"\"_blank\">Open Source Flo Blockchain Explorer</a> mit vollständigen "
"REST und Websocket APIs um eigene Wallets oder Applikationen zu "
"implementieren. Hierbei werden fortschrittlichere Abfragen der Blockchain "
"ermöglicht, bei denen die RPC des Flod nicht mehr ausreichen. Der "
"aktuelle <a href=\"https://github.com/oipwg/flosight-ui\" target=\"_blank"
"\">Quellcode</a> ist auf Github zu finden."
#: public/views/index.html
msgid ""
"<strong>flosight</strong> is still in development, so be sure to report any "
"bugs and provide feedback for improvement at our <a href=\"https://github."
"com/oipwg/flosight-ui/issues\" target=\"_blank\">github issue tracker</a>."
msgstr ""
"<strong>flosight</strong> befindet sich aktuell noch in der Entwicklung. "
"Bitte sende alle gefundenen Fehler (Bugs) und Feedback zur weiteren "
"Verbesserung an unseren <a href=\"https://github.com/oipwg/flosight-ui/issues"
"\" target=\"_blank\">Github Issue Tracker</a>."
#: public/views/index.html
msgid "About"
msgstr "Über flosight"
#: public/views/address.html
msgid "Address"
msgstr "Adresse"
#: public/views/index.html
msgid "Age"
msgstr "Alter"
#: public/views/status.html
msgid "Application Status"
msgstr "Programmstatus"
#: public/views/status.html
msgid "Best Block"
msgstr "Bester Block"
#: public/views/status.html
msgid "Flo node information"
msgstr "Flo-Node Info"
#: public/views/block.html
msgid "Block"
msgstr "Block"
#: public/views/block.html
msgid "Block Reward"
msgstr "Belohnung"
#: public/views/block_list.html public/views/dummy-translations.html
#: public/views/status.html
msgid "Blocks"
msgstr "Blöcke"
#: public/views/status.html
msgid "Bytes Serialized"
msgstr "Serialisierte Bytes"
#: public/views/includes/connection.html
msgid ""
"Can't connect to flod to get live updates from the p2p network. (Tried "
"connecting to flod at {{host}}:{{port}} and failed.)"
msgstr ""
"Es ist nicht möglich mit Flod zu verbinden um live Aktualisierungen vom "
"P2P Netzwerk zu erhalten. (Verbindungsversuch zu flod an {{host}}:"
"{{port}} ist fehlgeschlagen.)"
#: public/views/includes/connection.html
msgid "Can't connect to flosight server. Attempting to reconnect..."
msgstr ""
"Keine Verbindung zum flosight-Server möglich. Es wird versucht die "
"Verbindung neu aufzubauen..."
#: public/views/includes/connection.html
msgid "Can't connect to internet. Please, check your connection."
msgstr "Keine Verbindung zum Internet möglich, bitte Zugangsdaten prüfen."
#: public/views/status.html
msgid "Complete"
msgstr "Vollständig"
#: public/views/transaction.html public/views/transaction/tx.html
msgid "Confirmations"
msgstr "Bestätigungen"
#: public/views/includes/header.html
msgid "Conn"
msgstr "Verbindungen"
#: public/views/status.html
msgid "Connections to other nodes"
msgstr "Verbindungen zu Nodes"
#: public/views/status.html
msgid "Current Blockchain Tip (flosight)"
msgstr "Aktueller Blockchain Tip (flosight)"
#: public/views/status.html
msgid "Current Sync Status"
msgstr "Aktueller Status"
#: public/views/transaction.html
msgid "Details"
msgstr "Details"
#: public/views/block.html
msgid "Difficulty"
msgstr "Schwierigkeit"
#: public/views/transaction/tx.html
msgid "Double spent attempt detected. From tx:"
msgstr "Es wurde ein \"double Spend\" Versuch erkannt.Von tx:"
#: public/views/includes/connection.html
msgid "Error!"
msgstr "Fehler!"
#: public/views/transaction/tx.html
msgid "Fee"
msgstr "Gebühr"
#: public/views/address.html
msgid "Final Balance"
msgstr "Schlussbilanz"
#: public/views/status.html
msgid "Finish Date"
msgstr "Fertigstellung"
#: public/views/404.html
msgid "Go to home"
msgstr "Zur Startseite"
#: public/views/status.html
msgid "Hash Serialized"
msgstr "Hash Serialisiert"
#: public/views/block.html public/views/block_list.html
#: public/views/index.html public/views/status.html
#: public/views/includes/header.html
msgid "Height"
msgstr "Höhe"
#: public/views/transaction.html public/views/transaction/tx.html
msgid "Included in Block"
msgstr "Eingefügt in Block"
#: public/views/transaction/tx.html
msgid "Incoherence in levelDB detected:"
msgstr "Es wurde eine Zusammenhangslosigkeit in der LevelDB festgestellt:"
#: public/views/status.html
msgid "Info Errors"
msgstr "Fehlerbeschreibung"
#: public/views/status.html
msgid "Initial Block Chain Height"
msgstr "Ursprüngliche Blockchain Höhe"
#: public/views/transaction.html
msgid "Input"
msgstr "Eingänge"
#: public/views/status.html
msgid "Last Block"
msgstr "Letzter Block"
#: public/views/status.html
msgid "Last Block Hash (Flod)"
msgstr "Letzter Hash (Flod)"
#: public/views/index.html
msgid "Latest Blocks"
msgstr "Letzte Blöcke"
#: public/views/index.html
msgid "Latest Transactions"
msgstr "Letzte Transaktionen"
#: public/views/address.html
msgid "Loading Address Information"
msgstr "Lade Adressinformationen"
#: public/views/block.html
msgid "Loading Block Information"
msgstr "Lade Blockinformation"
#: public/views/block_list.html
msgid "Loading Selected Date..."
msgstr "Lade gewähltes Datum..."
#: public/views/transaction.html
msgid "Loading Transaction Details"
msgstr "Lade Transaktionsdetails"
#: public/views/transaction/list.html
msgid "Loading Transactions..."
msgstr "Lade Transaktionen..."
#: public/views/includes/infoStatus.html
msgid "Loading..."
msgstr "Lade..."
#: public/views/transaction.html
msgid "Mined Time"
msgstr "Block gefunden (Mining)"
#: public/views/block.html public/views/block_list.html
#: public/views/index.html
msgid "Mined by"
msgstr "Gefunden von"
#: public/views/status.html
msgid "Mining Difficulty"
msgstr "Schwierigkeitgrad"
#: public/views/block.html
msgid "Next Block"
msgstr "Nächster Block"
#: public/views/transaction/tx.html
msgid "No Inputs (Newly Generated Coins)"
msgstr "Keine Eingänge (Neu generierte Coins)"
#: public/views/block_list.html
msgid "No blocks yet."
msgstr "Keine Blöcke bisher."
#: public/views/includes/header.html public/views/includes/search.html
msgid "No matching records found!"
msgstr "Keine passenden Einträge gefunden!"
#: public/views/address.html
msgid "No. Transactions"
msgstr "Anzahl Transaktionen"
#: public/views/block.html
msgid "Number Of Transactions"
msgstr "Anzahl der Transaktionen"
#: public/views/transaction.html
msgid "Output"
msgstr "Ausgänge"
#: public/views/index.html
msgid "Powered by"
msgstr "Powered by"
#: public/views/block.html
msgid "Previous Block"
msgstr "Letzter Block"
#: public/views/status.html
msgid "Protocol version"
msgstr "Protokollversion"
#: public/views/status.html
msgid "Proxy setting"
msgstr "Proxyeinstellung"
#: public/views/transaction.html
msgid "Received Time"
msgstr "Eingangszeitpunkt"
#: public/views/redirect.html
msgid "Redirecting..."
msgstr "Umleitung..."
#: public/views/includes/header.html
msgid "Search for block, transaction or address"
msgstr "Suche Block, Transaktion oder Adresse"
#: public/views/index.html
msgid "See all blocks"
msgstr "Alle Blöcke anzeigen"
#: public/views/status.html
msgid "Show Transaction Output data"
msgstr "Zeige Abgänge"
#: public/views/transaction/tx.html
msgid "Show all"
msgstr "Zeige Alles"
#: public/views/transaction/tx.html
msgid "Show input"
msgstr "Zeige Eingänge"
#: public/views/transaction/tx.html
msgid "Show less"
msgstr "Weniger anzeigen"
#: public/views/transaction/tx.html
msgid "Show more"
msgstr "Mehr anzeigen"
#: public/views/block_list.html public/views/index.html
#: public/views/transaction.html
msgid "Size"
msgstr "Größe"
#: public/views/block.html
msgid "Size (bytes)"
msgstr "Größe (bytes)"
#: public/views/status.html
msgid "Skipped Blocks (previously synced)"
msgstr "Verworfene Blöcke (bereits syncronisiert)"
#: public/views/status.html
msgid "Start Date"
msgstr "Startdatum"
#: public/views/dummy-translations.html
msgid "Status"
msgstr "Status"
#: public/views/block.html public/views/transaction.html
msgid "Summary"
msgstr "Zusammenfassung"
#: public/views/address.html
msgid "Summary <small>confirmed</small>"
msgstr "Zusammenfassung <small>bestätigt</small>"
#: public/views/status.html
msgid "Sync Progress"
msgstr "Fortschritt"
#: public/views/status.html
msgid "Sync Status"
msgstr "Syncronisation"
#: public/views/status.html
msgid "Sync Type"
msgstr "Art der Syncronisation"
#: public/views/status.html
msgid "Synced Blocks"
msgstr "Syncronisierte Blöcke"
#: public/views/status.html
msgid "Testnet"
msgstr "Testnet aktiv"
#: public/views/transaction/list.html
msgid "There are no transactions involving this address."
msgstr "Es gibt keine Transaktionen zu dieser Adressse"
#: public/views/status.html
msgid "Time Offset"
msgstr "Zeitoffset zu UTC"
#: public/views/block.html
msgid "Timestamp"
msgstr "Zeitstempel"
#: public/views/block_list.html
msgid "Today"
msgstr "Heute"
#: public/views/status.html
msgid "Total Amount"
msgstr "Gesamtsumme"
#: public/views/address.html
msgid "Total Received"
msgstr "Insgesamt empfangen"
#: public/views/address.html
msgid "Total Sent"
msgstr "Insgesamt gesendet"
#: public/views/transaction.html
msgid "Transaction"
msgstr "Transaktion"
#: public/views/status.html
msgid "Transaction Output Set Information"
msgstr "Transaktions Abgänge"
#: public/views/status.html
msgid "Transaction Outputs"
msgstr "Abgänge"
#: public/views/address.html public/views/block.html
#: public/views/block_list.html public/views/index.html
#: public/views/status.html
msgid "Transactions"
msgstr "Transaktionen"
#: public/views/transaction/tx.html
msgid "Type"
msgstr "Typ"
#: public/views/address.html
msgid "Unconfirmed"
msgstr "Unbestätigt"
#: public/views/transaction.html public/views/transaction/tx.html
msgid "Unconfirmed Transaction!"
msgstr "Unbestätigte Transaktion!"
#: public/views/address.html
msgid "Unconfirmed Txs Balance"
msgstr "Unbestätigtes Guthaben"
#: public/views/index.html
msgid "Value Out"
msgstr "Wert"
#: public/views/block.html public/views/status.html
msgid "Version"
msgstr "Version"
#: public/views/block_list.html public/views/index.html
msgid "Waiting for blocks..."
msgstr "Warte auf Blöcke..."
#: public/views/index.html
msgid "Waiting for transactions..."
msgstr "Warte auf Transaktionen..."
#: public/views/block_list.html
msgid "by date."
msgstr "nach Datum."
#: public/views/transaction/tx.html
msgid "first seen at"
msgstr "zuerst gesehen am"
#: public/views/transaction/tx.html
msgid "mined"
msgstr "gefunden"
#: public/views/block_list.html
msgid "mined on:"
msgstr "vom:"
msgid "Waiting for blocks"
msgstr "Warte auf Blöcke"

470
po/es.po
View File

@ -1,470 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: Flosight\n"
"POT-Creation-Date: \n"
"PO-Revision-Date: \n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.6.8\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: public/views/transaction/tx.html
msgid "(Input unconfirmed)"
msgstr "(Entrada sin confirmar)"
#: public/views/404.html
msgid "404 Page not found :("
msgstr "404 Página no encontrada :("
#: public/views/index.html
msgid ""
"<strong>flosight</strong> is an <a href=\"http://flocha.in/\" target="
"\"_blank\">open-source Flo blockchain explorer</a> with complete REST "
"and websocket APIs that can be used for writing web wallets and other apps "
"that need more advanced blockchain queries than provided by flod RPC. "
"Check out the <a href=\"https://github.com/oipwg/flosight-api\" target=\"_blank"
"\">source code</a>."
msgstr ""
"<strong>flosight</strong> es un <a href=\"http://flocha.in/\" target="
"\"_blank\">explorador de bloques de Flo open-source</a> con un completo "
"conjunto de REST y APIs de websockets que pueden ser usadas para escribir "
"monederos de Flos y otras aplicaciones que requieran consultar un "
"explorador de bloques. Obtén el código en <a href=\"http://github.com/"
"oipwg/flosight-api\" target=\"_blank\">el repositorio abierto de Github</a>."
#: public/views/index.html
msgid ""
"<strong>flosight</strong> is still in development, so be sure to report any "
"bugs and provide feedback for improvement at our <a href=\"https://github."
"com/oipwg/flosight-ui/issues\" target=\"_blank\">github issue tracker</a>."
msgstr ""
"<strong>flosight</strong> esta en desarrollo aún, por ello agradecemos que "
"nos reporten errores o sugerencias para mejorar el software. <a href="
"\"https://github.com/oipwg/flosight-ui/issues\" target=\"_blank\">Github issue "
"tracker</a>."
#: public/views/index.html
msgid "About"
msgstr "Acerca de"
#: public/views/address.html
msgid "Address"
msgstr "Dirección"
#: public/views/index.html
msgid "Age"
msgstr "Edad"
#: public/views/status.html
msgid "Application Status"
msgstr "Estado de la Aplicación"
#: public/views/status.html
msgid "Best Block"
msgstr "Mejor Bloque"
#: public/views/status.html
msgid "Flo node information"
msgstr "Información del nodo Flo"
#: public/views/block.html
msgid "Block"
msgstr "Bloque"
#: public/views/block.html
msgid "Block Reward"
msgstr "Bloque Recompensa"
#: public/views/block_list.html public/views/dummy-translations.html
#: public/views/status.html
msgid "Blocks"
msgstr "Bloques"
#: public/views/status.html
msgid "Bytes Serialized"
msgstr "Bytes Serializados"
#: public/views/includes/connection.html
msgid ""
"Can't connect to flod to get live updates from the p2p network. (Tried "
"connecting to flod at {{host}}:{{port}} and failed.)"
msgstr ""
"No se pudo conectar a flod para obtener actualizaciones en vivo de la "
"red p2p. (Se intentó conectar a flod de {{host}}:{{port}} y falló.)"
#: public/views/includes/connection.html
msgid "Can't connect to flosight server. Attempting to reconnect..."
msgstr "No se pudo conectar al servidor flosight. Intentando re-conectar..."
#: public/views/includes/connection.html
msgid "Can't connect to internet. Please, check your connection."
msgstr "No se pudo conectar a Internet. Por favor, verifique su conexión."
#: public/views/status.html
msgid "Complete"
msgstr "Completado"
#: public/views/transaction.html public/views/transaction/tx.html
msgid "Confirmations"
msgstr "Confirmaciones"
#: public/views/includes/header.html
msgid "Conn"
msgstr "Con"
#: public/views/status.html
msgid "Connections to other nodes"
msgstr "Conexiones a otros nodos"
#: public/views/status.html
msgid "Current Blockchain Tip (flosight)"
msgstr "Actual Blockchain Tip (flosight)"
#: public/views/status.html
msgid "Current Sync Status"
msgstr "Actual Estado de Sincronización"
#: public/views/transaction.html
msgid "Details"
msgstr "Detalles"
#: public/views/block.html
msgid "Difficulty"
msgstr "Dificultad"
#: public/views/transaction/tx.html
msgid "Double spent attempt detected. From tx:"
msgstr "Intento de doble gasto detectado. De la transacción:"
#: public/views/includes/connection.html
msgid "Error!"
msgstr "¡Error!"
#: public/views/transaction/tx.html
msgid "Fee"
msgstr "Tasa"
#: public/views/address.html
msgid "Final Balance"
msgstr "Balance Final"
#: public/views/status.html
msgid "Finish Date"
msgstr "Fecha Final"
#: public/views/404.html
msgid "Go to home"
msgstr "Volver al Inicio"
#: public/views/status.html
msgid "Hash Serialized"
msgstr "Hash Serializado"
#: public/views/block.html public/views/block_list.html
#: public/views/index.html public/views/status.html
#: public/views/includes/header.html
msgid "Height"
msgstr "Altura"
#: public/views/transaction.html public/views/transaction/tx.html
msgid "Included in Block"
msgstr "Incluido en el Bloque"
#: public/views/transaction/tx.html
msgid "Incoherence in levelDB detected:"
msgstr "Detectada una incoherencia en levelDB:"
#: public/views/status.html
msgid "Info Errors"
msgstr "Errores de Información"
#: public/views/status.html
msgid "Initial Block Chain Height"
msgstr "Altura de la Cadena en Bloque Inicial"
#: public/views/transaction.html
msgid "Input"
msgstr "Entrada"
#: public/views/status.html
msgid "Last Block"
msgstr "Último Bloque"
#: public/views/status.html
msgid "Last Block Hash (Flod)"
msgstr "Último Bloque Hash (Flod)"
#: public/views/index.html
msgid "Latest Blocks"
msgstr "Últimos Bloques"
#: public/views/index.html
msgid "Latest Transactions"
msgstr "Últimas Transacciones"
#: public/views/address.html
msgid "Loading Address Information"
msgstr "Cargando Información de la Dirección"
#: public/views/block.html
msgid "Loading Block Information"
msgstr "Cargando Información del Bloque"
#: public/views/block_list.html
msgid "Loading Selected Date..."
msgstr "Cargando Fecha Seleccionada..."
#: public/views/transaction.html
msgid "Loading Transaction Details"
msgstr "Cargando Detalles de la Transacción"
#: public/views/transaction/list.html
msgid "Loading Transactions..."
msgstr "Cargando Transacciones..."
#: public/views/includes/infoStatus.html
msgid "Loading..."
msgstr "Cargando..."
#: public/views/transaction.html
msgid "Mined Time"
msgstr "Hora de Minado"
#: public/views/block.html public/views/block_list.html
#: public/views/index.html
msgid "Mined by"
msgstr "Minado por"
#: public/views/status.html
msgid "Mining Difficulty"
msgstr "Dificultad de Minado"
#: public/views/block.html
msgid "Next Block"
msgstr "Próximo Bloque"
#: public/views/transaction/tx.html
msgid "No Inputs (Newly Generated Coins)"
msgstr "Sin Entradas (Monedas Recién Generadas)"
#: public/views/block_list.html
msgid "No blocks yet."
msgstr "No hay bloques aún."
#: public/views/includes/header.html public/views/includes/search.html
msgid "No matching records found!"
msgstr "¡No se encontraron registros coincidentes!"
#: public/views/address.html
msgid "No. Transactions"
msgstr "Nro. de Transacciones"
#: public/views/block.html
msgid "Number Of Transactions"
msgstr "Número de Transacciones"
#: public/views/transaction.html
msgid "Output"
msgstr "Salida"
#: public/views/index.html
msgid "Powered by"
msgstr "Funciona con"
#: public/views/block.html
msgid "Previous Block"
msgstr "Bloque Anterior"
#: public/views/status.html
msgid "Protocol version"
msgstr "Versión del protocolo"
#: public/views/status.html
msgid "Proxy setting"
msgstr "Opción de proxy"
#: public/views/transaction.html
msgid "Received Time"
msgstr "Hora de Recibido"
#: public/views/redirect.html
msgid "Redirecting..."
msgstr "Redireccionando..."
#: public/views/includes/header.html
msgid "Search for block, transaction or address"
msgstr "Buscar bloques, transacciones o direcciones"
#: public/views/index.html
msgid "See all blocks"
msgstr "Ver todos los bloques"
#: public/views/status.html
msgid "Show Transaction Output data"
msgstr "Mostrar dato de Salida de la Transacción"
#: public/views/transaction/tx.html
msgid "Show all"
msgstr "Mostrar todos"
#: public/views/transaction/tx.html
msgid "Show input"
msgstr "Mostrar entrada"
#: public/views/transaction/tx.html
msgid "Show less"
msgstr "Ver menos"
#: public/views/transaction/tx.html
msgid "Show more"
msgstr "Ver más"
#: public/views/block_list.html public/views/index.html
#: public/views/transaction.html
msgid "Size"
msgstr "Tamaño"
#: public/views/block.html
msgid "Size (bytes)"
msgstr "Tamaño (bytes)"
#: public/views/status.html
msgid "Skipped Blocks (previously synced)"
msgstr "Bloques Saltados (previamente sincronizado)"
#: public/views/status.html
msgid "Start Date"
msgstr "Fecha de Inicio"
#: public/views/dummy-translations.html
msgid "Status"
msgstr "Estado"
#: public/views/block.html public/views/transaction.html
msgid "Summary"
msgstr "Resumen"
#: public/views/address.html
msgid "Summary <small>confirmed</small>"
msgstr "Resumen <small>confirmados</small>"
#: public/views/status.html
msgid "Sync Progress"
msgstr "Proceso de Sincronización"
#: public/views/status.html
msgid "Sync Status"
msgstr "Estado de Sincronización"
#: public/views/status.html
msgid "Sync Type"
msgstr "Tipo de Sincronización"
#: public/views/status.html
msgid "Synced Blocks"
msgstr "Bloques Sincornizados"
#: public/views/status.html
msgid "Testnet"
msgstr "Red de prueba"
#: public/views/transaction/list.html
msgid "There are no transactions involving this address."
msgstr "No hay transacciones para esta dirección"
#: public/views/status.html
msgid "Time Offset"
msgstr "Desplazamiento de hora"
#: public/views/block.html
msgid "Timestamp"
msgstr "Fecha y hora"
#: public/views/block_list.html
msgid "Today"
msgstr "Hoy"
#: public/views/status.html
msgid "Total Amount"
msgstr "Cantidad Total"
#: public/views/address.html
msgid "Total Received"
msgstr "Total Recibido"
#: public/views/address.html
msgid "Total Sent"
msgstr "Total Enviado"
#: public/views/transaction.html
msgid "Transaction"
msgstr "Transacción"
#: public/views/status.html
msgid "Transaction Output Set Information"
msgstr "Información del Conjunto de Salida de la Transacción"
#: public/views/status.html
msgid "Transaction Outputs"
msgstr "Salidas de la Transacción"
#: public/views/address.html public/views/block.html
#: public/views/block_list.html public/views/index.html
#: public/views/status.html
msgid "Transactions"
msgstr "Transacciones"
#: public/views/transaction/tx.html
msgid "Type"
msgstr "Tipo"
#: public/views/address.html
msgid "Unconfirmed"
msgstr "Sin confirmar"
#: public/views/transaction.html public/views/transaction/tx.html
msgid "Unconfirmed Transaction!"
msgstr "¡Transacción sin confirmar!"
#: public/views/address.html
msgid "Unconfirmed Txs Balance"
msgstr "Balance sin confirmar"
#: public/views/index.html
msgid "Value Out"
msgstr "Valor de Salida"
#: public/views/block.html public/views/status.html
msgid "Version"
msgstr "Versión"
#: public/views/block_list.html public/views/index.html
msgid "Waiting for blocks..."
msgstr "Esperando bloques..."
#: public/views/index.html
msgid "Waiting for transactions..."
msgstr "Esperando transacciones..."
#: public/views/block_list.html
msgid "by date."
msgstr "por fecha."
#: public/views/transaction/tx.html
msgid "first seen at"
msgstr "Visto a"
#: public/views/transaction/tx.html
msgid "mined"
msgstr "minado"
#: public/views/block_list.html
msgid "mined on:"
msgstr "minado el:"
#~ msgid "Waiting for blocks"
#~ msgstr "Esperando bloques"

617
po/ja.po
View File

@ -1,617 +0,0 @@
msgid ""
msgstr ""
"Project-Id-Version: \n"
"POT-Creation-Date: \n"
"PO-Revision-Date: \n"
"Last-Translator: Vis Virial <visvirial@gmail.com>\n"
"Language-Team: \n"
"Language: ja\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.5.4\n"
#: public/views/transaction/tx.html
msgid "(Input unconfirmed)"
msgstr "(入力は未検証です)"
#: public/views/404.html
msgid "404 Page not found :("
msgstr "404 ページがみつかりません (´・ω・`)"
#: public/views/index.html
msgid ""
"<strong>flosight</strong> is an <a href=\"http://flocha.in/\" target="
"\"_blank\">open-source Flo blockchain explorer</a> with complete REST "
"and websocket APIs that can be used for writing web wallets and other apps "
"that need more advanced blockchain queries than provided by flod RPC. "
"Check out the <a href=\"https://github.com/bitpay/flosight-api\" target=\"_blank"
"\">source code</a>."
msgstr ""
"<strong>flosight</strong>は、flod RPCの提供するものよりも詳細なブロック"
"チェインへの問い合わせを必要とするウェブウォレットやその他のアプリを書くのに"
"使える、完全なRESTおよびwebsocket APIを備えた<a href=\"http://flocha.in"
"/\" target=\"_blank\">オープンソースのビットコインブロックエクスプローラ</"
"a>です。<a href=\"https://github.com/bitpay/flosight-api\" target=\"_blank\">ソース"
"コード</a>を確認"
#: public/views/index.html
msgid ""
"<strong>flosight</strong> is still in development, so be sure to report any "
"bugs and provide feedback for improvement at our <a href=\"https://github."
"com/oipwg/flosight-ui/issues\" target=\"_blank\">github issue tracker</a>."
msgstr ""
"<strong>flosight</strong>は現在開発中です。<a href=\"https://github.com/"
"oipwg/flosight-ui/issues\" target=\"_blank\">githubのissueトラッカ</a>にてバグの"
"報告や改善案の提案をお願いします。"
#: public/views/index.html
msgid "About"
msgstr "はじめに"
#: public/views/address.html public/views/messages_verify.html
msgid "Address"
msgstr "アドレス"
#: public/views/index.html
msgid "Age"
msgstr "生成後経過時間"
#: public/views/messages_verify.html
msgid "An error occured in the verification process."
msgstr "検証過程でエラーが発生しました。"
#: public/views/transaction_sendraw.html
msgid "An error occured:<br>{{error}}"
msgstr "エラーが発生しました:<br>{{error}}"
#: public/views/status.html
msgid "Application Status"
msgstr "アプリケーションの状態"
#: public/views/status.html
msgid "Best Block"
msgstr "最良ブロック"
#: public/views/messages_verify.html
msgid "Flo comes with a way of signing arbitrary messages."
msgstr "Floには任意のメッセージを署名する昨日が備わっています。"
#: public/views/status.html
msgid "Flo node information"
msgstr "Floード情報"
#: public/views/block.html
msgid "Block"
msgstr "ブロック"
#: public/views/block.html
msgid "Block Reward"
msgstr "ブロック報酬"
#: public/views/block_list.html public/views/dummy-translations.html
#: public/views/status.html
msgid "Blocks"
msgstr "ブロック"
#: public/views/transaction_sendraw.html
msgid "Broadcast Raw Transaction"
msgstr "生のトランザクションを配信"
#: public/views/status.html
msgid "Bytes Serialized"
msgstr "シリアライズ後の容量 (バイト)"
#: public/views/includes/connection.html
msgid ""
"Can't connect to flod to get live updates from the p2p network. (Tried "
"connecting to flod at {{host}}:{{port}} and failed.)"
msgstr ""
"P2Pネットワークからライブ情報を取得するためにflodへ接続することができませ"
"んでした。({{host}}:{{port}} への接続を試みましたが、失敗しました。)"
#: public/views/includes/connection.html
msgid "Can't connect to flosight server. Attempting to reconnect..."
msgstr "flosight サーバに接続できません。再接続しています..."
#: public/views/includes/connection.html
msgid "Can't connect to internet. Please, check your connection."
msgstr "インターネットに接続できません。コネクションを確認してください。"
#: public/views/status.html
msgid "Complete"
msgstr "完了"
#: public/views/transaction.html public/views/transaction/tx.html
msgid "Confirmations"
msgstr "検証数"
#: public/views/includes/header.html
msgid "Conn"
msgstr "接続数"
#: public/views/status.html
msgid "Connections to other nodes"
msgstr "他ノードへの接続"
#: public/views/status.html
msgid "Current Blockchain Tip (flosight)"
msgstr "現在のブロックチェインのTip (flosight)"
#: public/views/status.html
msgid "Current Sync Status"
msgstr "現在の同期状況"
#: public/views/transaction.html
msgid "Details"
msgstr "詳細"
#: public/views/block.html
msgid "Difficulty"
msgstr "難易度"
#: public/views/transaction/tx.html
msgid "Double spent attempt detected. From tx:"
msgstr "二重支払い攻撃をこのトランザクションから検知しました:"
#: public/views/messages_verify.html
msgid "Error message:"
msgstr "エラーメッセージ:"
#: public/views/includes/connection.html
msgid "Error!"
msgstr "エラー!"
#: public/views/transaction/tx.html
msgid "Fee"
msgstr "手数料"
#: public/views/address.html
msgid "Final Balance"
msgstr "最終残高"
#: public/views/status.html
msgid "Finish Date"
msgstr "終了日時"
#: public/views/404.html
msgid "Go to home"
msgstr "ホームへ"
#: public/views/status.html
msgid "Hash Serialized"
msgstr "シリアライズデータのハッシュ値"
#: public/views/block.html public/views/block_list.html
#: public/views/index.html public/views/status.html
#: public/views/includes/header.html
msgid "Height"
msgstr "ブロック高"
#: public/views/transaction.html public/views/transaction/tx.html
msgid "Included in Block"
msgstr "取り込まれたブロック"
#: public/views/transaction/tx.html
msgid "Incoherence in levelDB detected:"
msgstr "levelDBの破損を検知しました:"
#: public/views/status.html
msgid "Info Errors"
msgstr "エラー情報"
#: public/views/status.html
msgid "Initial Block Chain Height"
msgstr "起動時のブロック高"
#: public/views/transaction.html
msgid "Input"
msgstr "入力"
#: public/views/status.html
msgid "Last Block"
msgstr "直前のブロック"
#: public/views/status.html
msgid "Last Block Hash (Flod)"
msgstr "直前のブロックのハッシュ値 (Flod)"
#: public/views/index.html
msgid "Latest Blocks"
msgstr "最新のブロック"
#: public/views/index.html
msgid "Latest Transactions"
msgstr "最新のトランザクション"
#: public/views/address.html
msgid "Loading Address Information"
msgstr "アドレス情報を読み込んでいます"
#: public/views/block.html
msgid "Loading Block Information"
msgstr "ブロック情報を読み込んでいます"
#: public/views/block_list.html
msgid "Loading Selected Date..."
msgstr "選択されたデータを読み込んでいます..."
#: public/views/transaction.html
msgid "Loading Transaction Details"
msgstr "トランザクションの詳細を読み込んでいます"
#: public/views/transaction/list.html
msgid "Loading Transactions..."
msgstr "トランザクションを読み込んでいます..."
#: public/views/messages_verify.html public/views/transaction_sendraw.html
#: public/views/includes/infoStatus.html
msgid "Loading..."
msgstr "ロード中..."
#: public/views/messages_verify.html
msgid "Message"
msgstr "メッセージ"
#: public/views/transaction.html
msgid "Mined Time"
msgstr "採掘時刻"
#: public/views/block.html public/views/block_list.html
#: public/views/index.html
msgid "Mined by"
msgstr "採掘者"
#: public/views/status.html
msgid "Mining Difficulty"
msgstr "採掘難易度"
#: public/views/block.html
msgid "Next Block"
msgstr "次のブロック"
#: public/views/transaction/tx.html
msgid "No Inputs (Newly Generated Coins)"
msgstr "入力なし (新しく生成されたコイン)"
#: public/views/block_list.html
msgid "No blocks yet."
msgstr "ブロックはありません。"
#: public/views/includes/search.html
msgid "No matching records found!"
msgstr "一致するレコードはありません!"
#: public/views/address.html
msgid "No. Transactions"
msgstr "トランザクション数"
#: public/views/block.html
msgid "Number Of Transactions"
msgstr "トランザクション数"
#: public/views/transaction.html
msgid "Output"
msgstr "出力"
#: public/views/index.html
msgid "Powered by"
msgstr "Powered by"
#: public/views/block.html
msgid "Previous Block"
msgstr "前のブロック"
#: public/views/status.html
msgid "Protocol version"
msgstr "プロトコルバージョン"
#: public/views/status.html
msgid "Proxy setting"
msgstr "プロキシ設定"
#: public/views/transaction_sendraw.html
msgid "Raw transaction data"
msgstr "トランザクションの生データ"
#: public/views/transaction_sendraw.html
msgid "Raw transaction data must be a valid hexadecimal string."
msgstr "生のトランザクションデータは有効な16進数でなければいけません。"
#: public/views/transaction.html
msgid "Received Time"
msgstr "受信時刻"
#: public/views/redirect.html
msgid "Redirecting..."
msgstr "リダイレクトしています..."
#: public/views/includes/search.html
msgid "Search for block, transaction or address"
msgstr "ブロック、トランザクション、アドレスを検索"
#: public/views/index.html
msgid "See all blocks"
msgstr "すべてのブロックをみる"
#: public/views/transaction_sendraw.html
msgid "Send transaction"
msgstr "トランザクションを送信"
#: public/views/status.html
msgid "Show Transaction Output data"
msgstr "トランザクションの出力データをみる"
#: public/views/transaction/tx.html
msgid "Show all"
msgstr "すべて表示"
#: public/views/transaction/tx.html
msgid "Show input"
msgstr "入力を表示"
#: public/views/transaction/tx.html
msgid "Show less"
msgstr "隠す"
#: public/views/transaction/tx.html
msgid "Show more"
msgstr "表示する"
#: public/views/messages_verify.html
msgid "Signature"
msgstr "署名"
#: public/views/block_list.html public/views/index.html
#: public/views/transaction.html
msgid "Size"
msgstr "サイズ"
#: public/views/block.html
msgid "Size (bytes)"
msgstr "サイズ (バイト)"
#: public/views/status.html
msgid "Skipped Blocks (previously synced)"
msgstr "スキップされたブロック (同期済み)"
#: public/views/status.html
msgid "Start Date"
msgstr "開始日時"
#: public/views/dummy-translations.html
msgid "Status"
msgstr "ステータス"
#: public/views/block.html public/views/transaction.html
msgid "Summary"
msgstr "概要"
#: public/views/address.html
msgid "Summary <small>confirmed</small>"
msgstr "サマリ <small>検証済み</small>"
#: public/views/status.html
msgid "Sync Progress"
msgstr "同期の進捗状況"
#: public/views/status.html
msgid "Sync Status"
msgstr "同期ステータス"
#: public/views/status.html
msgid "Sync Type"
msgstr "同期タイプ"
#: public/views/status.html
msgid "Synced Blocks"
msgstr "同期されたブロック数"
#: public/views/status.html
msgid "Testnet"
msgstr "テストネット"
#: public/views/messages_verify.html
msgid "The message failed to verify."
msgstr "メッセージの検証に失敗しました。"
#: public/views/messages_verify.html
msgid "The message is verifiably from {{verification.address}}."
msgstr "メッセージは{{verification.address}}により検証されました。"
#: public/views/transaction/list.html
msgid "There are no transactions involving this address."
msgstr "このアドレスに対するトランザクションはありません。"
#: public/views/transaction_sendraw.html
msgid ""
"This form can be used to broadcast a raw transaction in hex format over\n"
" the Flo network."
msgstr ""
"このフォームでは、16進数フォーマットの生のトランザクションをFloネットワー"
"ク上に配信することができます。"
#: public/views/messages_verify.html
msgid ""
"This form can be used to verify that a message comes from\n"
" a specific Flo address."
msgstr ""
"このフォームでは、メッセージが特定のFloアドレスから来たかどうかを検証する"
"ことができます。"
#: public/views/status.html
msgid "Time Offset"
msgstr "時間オフセット"
#: public/views/block.html public/views/block_list.html
msgid "Timestamp"
msgstr "タイムスタンプ"
#: public/views/block_list.html
msgid "Today"
msgstr "今日"
#: public/views/status.html
msgid "Total Amount"
msgstr "Flo総量"
#: public/views/address.html
msgid "Total Received"
msgstr "総入金額"
#: public/views/address.html
msgid "Total Sent"
msgstr "総送金額"
#: public/views/transaction.html
msgid "Transaction"
msgstr "トランザクション"
#: public/views/status.html
msgid "Transaction Output Set Information"
msgstr "トランザクションの出力セット情報"
#: public/views/status.html
msgid "Transaction Outputs"
msgstr "トランザクションの出力"
#: public/views/transaction_sendraw.html
msgid "Transaction succesfully broadcast.<br>Transaction id: {{txid}}"
msgstr "トランザクションの配信に成功しました。<br>トランザクションID: {{txid}}"
#: public/views/address.html public/views/block.html
#: public/views/block_list.html public/views/index.html
#: public/views/status.html
msgid "Transactions"
msgstr "トランザクション"
#: public/views/transaction/tx.html
msgid "Type"
msgstr "タイプ"
#: public/views/address.html
msgid "Unconfirmed"
msgstr "未検証"
#: public/views/transaction.html public/views/transaction/tx.html
msgid "Unconfirmed Transaction!"
msgstr "未検証のトランザクションです!"
#: public/views/address.html
msgid "Unconfirmed Txs Balance"
msgstr "未検証トランザクションの残高"
#: public/views/index.html
msgid "Value Out"
msgstr "出力値"
#: public/views/messages_verify.html
msgid "Verify"
msgstr "検証"
#: public/views/messages_verify.html
msgid "Verify signed message"
msgstr "署名済みメッセージを検証"
#: public/views/block.html public/views/status.html
msgid "Version"
msgstr "バージョン"
#: public/views/block_list.html public/views/index.html
msgid "Waiting for blocks..."
msgstr "ブロックを待っています..."
#: public/views/index.html
msgid "Waiting for transactions..."
msgstr "トランザクションを待っています..."
#: public/views/block_list.html
msgid "by date."
msgstr "日毎。"
#: public/views/transaction/tx.html
msgid "first seen at"
msgstr "最初に発見された日時"
#: public/views/transaction/tx.html
msgid "mined"
msgstr "採掘された"
#: public/views/block_list.html
msgid "mined on:"
msgstr "採掘日時:"
#~ msgid "(Mainchain)"
#~ msgstr "(メインチェーン)"
#~ msgid "(Orphaned)"
#~ msgstr "(孤立したブロック)"
#~ msgid "Bits"
#~ msgstr "Bits"
#~ msgid "Block #{{block.height}}"
#~ msgstr "ブロック #{{block.height}}"
#~ msgid "BlockHash"
#~ msgstr "ブロックのハッシュ値"
#~ msgid "Blocks <br> mined on:"
#~ msgstr "ブロック <br> 採掘日"
#~ msgid "Coinbase"
#~ msgstr "コインベース"
#~ msgid "Hash"
#~ msgstr "ハッシュ値"
#~ msgid "LockTime"
#~ msgstr "ロック時間"
#~ msgid "Merkle Root"
#~ msgstr "Merkleルート"
#~ msgid "Nonce"
#~ msgstr "Nonce"
#~ msgid "Ooops!"
#~ msgstr "おぉっと!"
#~ msgid "Output is spent"
#~ msgstr "出力は使用済みです"
#~ msgid "Output is unspent"
#~ msgstr "出力は未使用です"
#~ msgid "Scan"
#~ msgstr "スキャン"
#~ msgid "Show/Hide items details"
#~ msgstr "アイテムの詳細を表示または隠す"
#~ msgid "Waiting for blocks"
#~ msgstr "ブロックを待っています"
#~ msgid "by date. {{detail}} {{before}}"
#~ msgstr "日時順 {{detail}} {{before}}"
#~ msgid "scriptSig"
#~ msgstr "scriptSig"
#~ msgid "{{tx.confirmations}} Confirmations"
#~ msgstr "{{tx.confirmations}} 検証"
#~ msgid "<span class=\"glyphicon glyphicon-warning-sign\"></span> (Orphaned)"
#~ msgstr ""
#~ "<span class=\"glyphicon glyphicon-warning-sign\"></span> (孤立したブロッ"
#~ "ク)"
#~ msgid ""
#~ "<span class=\"glyphicon glyphicon-warning-sign\"></span> Incoherence in "
#~ "levelDB detected: {{vin.dbError}}"
#~ msgstr ""
#~ "<span class=\"glyphicon glyphicon-warning-sign\"></span> Incoherence in "
#~ "levelDB detected: {{vin.dbError}}"
#~ msgid "Waiting for blocks <span class=\"loader-gif\"></span>"
#~ msgstr "ブロックを待っています <span class=\"loader-gif\"></span>"

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 15 KiB

View File

@ -1,94 +0,0 @@
<!doctype html>
<html lang="en" data-ng-app="flosight" data-ng-csp>
<head>
<base href="/" />
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="fragment" content="!">
<title data-ng-bind="$root.title + $root.titleDetail + ' | Flosight'">Flosight</title>
<meta name="keywords" content="flo, transactions, blocks, address, block chain, best block, mining difficulty, hash serialized">
<meta name="description" content="Flo Chain Explorer. View detailed information on all Flo transactions and blocks.">
<link rel="shortcut icon" href="img/icons/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,400italic">
<link rel="stylesheet" href="css/main.min.css">
</head>
<body ng-cloak class="ng-cloak">
<div>
<script type="text/ng-template" id="scannerModal.html">
<div class="modal-header">
<h3 class="modal-title">Scan Code</h3>
</div>
<div class="modal-body text-center">
<canvas id="qr-canvas" width="200" height="150"></canvas>
<div data-ng-show="isMobile">
<div id="file-input-wrapper" class="btn btn-primary">
<span class="pull-left text-center">
<i class="glyphicon glyphicon-refresh icon-rotate"></i>
Get QR code
</span>
<input id="qrcode-camera" type="file" capture="camera" accept="image/*">
</div>
</div>
<div data-ng-hide="isMobile">
<video id="qrcode-scanner-video" width="300" height="225" data-ng-hide="isMobile"></video>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-default" data-ng-click="cancel()" data-dismiss="modal">Close</button>
</div>
</script>
</div>
<div id="wrap">
<div class="navbar navbar-default navbar-fixed-top" data-ng-include="'views/includes/header.html'" role='navigation'></div>
<section class="container" data-ng-view></section>
</div>
<div id="footer" role="navigation">
<div class="container" data-ng-controller="FooterController">
<div class="links m20t pull-left">
<span class="languages" ng-show="availableLanguages.0">
[
<a href="#"
ng-click="setLanguage(l.isoCode)"
ng-class="{'selected': defaultLanguage == l.isoCode}"
ng-repeat="l in availableLanguages">
<span ng-show="!$first"> &middot; </span> {{l.name}}
</a>
]
</span>
&nbsp;
[
<a href="messages/verify" translate>verify message</a>
<span> &middot; </span>
<a href="tx/send" translate>broadcast transaction</a>
]
</div>
<a class="flosight m10v pull-right" target="_blank" href="http://flosight.is">flosight <small>API v{{version}}</small></a>
</div>
</div>
<script src="/socket.io/socket.io.js"></script>
<script src="js/vendors.min.js"></script>
<script src="js/angularjs-all.min.js"></script>
<script src="js/clipboard.min.js"></script>
<script src="js/main.min.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-119772748-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-119772748-2');
</script>
<script>
var observer = new window.MutationObserver(function(mutations, observer) {
var clipboard = new ClipboardJS('.btn-copy');
});
observer.observe(document, {
subtree: true,
attributes: true
})
</script>
</body>
</html>

55
public/index.html Normal file
View File

@ -0,0 +1,55 @@
<!doctype html>
<html lang="en" data-ng-app="insight" data-ng-csp>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="fragment" content="!">
<title data-ng-bind="$root.title + $root.titleDetail + ' | Insight'">Insight</title>
<meta name="keywords" content="bitcoins, transactions, blocks, address, block chain, best block, mining difficulty, hash serialized">
<meta name="description" content="Bitcoin Insight. View detailed information on all bitcoin transactions and block. {{ $root.title + $root.titleDetail }}">
<link rel="shortcut icon" href="/img/icons/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,400italic">
<link rel="stylesheet" href="/css/main.min.css">
</head>
<body ng-cloak class="ng-cloak">
<div>
<script type="text/ng-template" id="scannerModal.html">
<div class="modal-header">
<h3 class="modal-title">Scan Code</h3>
</div>
<div class="modal-body text-center">
<canvas id="qr-canvas" width="200" height="150"></canvas>
<div data-ng-show="isMobile">
<div id="file-input-wrapper" class="btn btn-primary">
<span class="pull-left text-center">
<i class="glyphicon glyphicon-refresh icon-rotate"></i>
Get QR code
</span>
<input id="qrcode-camera" type="file" capture="camera" accept="image/*">
</div>
</div>
<div data-ng-hide="isMobile">
<video id="qrcode-scanner-video" width="300" height="225" data-ng-hide="isMobile"></video>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-default" data-ng-click="cancel()" data-dismiss="modal">Close</button>
</div>
</script>
</div>
<div id="wrap">
<div class="navbar navbar-default navbar-fixed-top" data-ng-include="'/views/includes/header.html'" role='navigation'></div>
<section class="container" data-ng-view></section>
</div>
<div id="footer" role="navigation">
<div class="container" data-ng-controller="FooterController">
<a class="insight m10v pull-right" target="_blank" href="http://insight.is">insight <small>API v{{version}}</small></a>
</div>
</div>
<script src="/socket.io/socket.io.js"></script>
<script src="/js/vendors.min.js"></script>
<script src="/js/angularjs-all.min.js"></script>
<script src="/js/main.min.js"></script>
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,4 +0,0 @@
User-agent: *
Disallow: /address
Disallow: /api
Disallow: /transaction

View File

@ -24,7 +24,7 @@ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
/* Styling for the ngProgress itself */
#ngProgress {
background-color: #306d8e !important;
background-color: #6C9032 !important;
box-shadow: none !important;
color: #373D42 !important;
height: 3px !important;
@ -89,7 +89,6 @@ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
.m50v { margin: 50px 0; }
.m10b { margin-bottom: 10px; }
.m10l { margin-left: 10px; }
.m20t { margin-top: 20px; }
.vm { vertical-align: middle; }
.pa {position: absolute;}
.pr {position: relative;}
@ -103,7 +102,7 @@ margin-left: 0;
}
.table-hover>tbody>tr:hover>td, .table-hover>tbody>tr:hover>th {
background-color: #e8f6ff;
background-color: #F0F7E2;
}
.navbar { min-height: 64px; }
.navbar-default .navbar-toggle {
@ -115,7 +114,7 @@ margin-left: 0;
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {background-color: #373D42;}
.navbar-default {
background-color: #3d7c9f;
background-color: #8DC429;
margin: 0;
border: 0;
}
@ -123,12 +122,12 @@ margin-left: 0;
.navbar-default .navbar-nav>li>a {
color: #F4FBE8;
font-family: 'Ubuntu', sans-serif;
padding-left: 20px;
padding-right: 20px;
padding-left: 25px;
padding-right: 25px;
}
.navbar-default .navbar-nav>.active>a, .navbar-default .navbar-nav>.active>a:focus {
background-color: #406072;
background-color: #6C9032;
color: #fff;
}
@ -141,14 +140,30 @@ margin-left: 0;
}
.navbar-form {
/*width: 35%;*/
margin-top: 15px;
}
@media (max-width: 991px) {
.status {
display: none;
}
}
@media (max-width: 767px) {
.navbar-form {
width: auto;
}
.status {
display: none;
}
}
.nav-tabs.nav-justified>li>a:hover {
cursor: pointer;
}
.flosight {
.insight {
font-family: 'Ubuntu', sans-serif;
font-size: 34px;
font-style: italic;
@ -166,7 +181,7 @@ margin-left: 0;
}
.navbar-form .form-control {
background-color: #376177;
background-color: #7CAD23;
border-radius: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
@ -183,8 +198,10 @@ margin-left: 0;
#search-form { color: #fff; }
#search { font-family: 'Ubuntu', sans-serif; }
#search.loading {
background-image: url('../img/loading.gif');
background-image: url('/img/loading.gif');
background-position: 5px center;
background-repeat: no-repeat;
padding-left: 25px;
@ -198,25 +215,25 @@ margin-left: 0;
margin-left: 5px;
}
#search { color: #fff; }
#search::-webkit-input-placeholder {
color: #87bfdd;
color: #BCDF7E;
font-family: 'Ubuntu', sans-serif;
font-size: 14px;
font-style: italic;
font-weight: 100;
}
#search::-moz-placeholder {
color: #87bfdd;
color: #BCDF7E;
font-family: 'Ubuntu', sans-serif;
font-size: 14px;
font-weight: 100;
}
.status {
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
background-color: #376177;
background-color: #597338;
border-radius: 3px;
margin: 15px 0;
padding: 8px 10px;
@ -251,6 +268,25 @@ margin-left: 0;
z-index: 1;
}
@media (max-width: 768px) {
.col-gray-fixed {
width:100%;
}
}
@media (max-width: 995px) {
.col-gray-fixed {
position:static;
width: 100%;
}
}
@media (min-width: 1200px) {
.col-gray-fixed {
width: 280px;
}
}
.ellipsis {
display: block;
overflow: hidden;
@ -316,8 +352,8 @@ margin-left: 0;
border-radius: 2px;
}
.btn-primary {
background-color: #218bc4;
border: 2px solid #0b71a8;
background-color: #8DC429;
border: 2px solid #76AF0F;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active,
@ -362,8 +398,15 @@ margin-left: 0;
border-radius: .25em;
}
@media (max-width: 768px) {
.txvalues {
display: block;
margin: 5px;
}
}
.txvalues-primary {
background-color: #2587bc;
background-color: #8DC429;
}
.txvalues-default {
@ -386,7 +429,7 @@ margin-left: 0;
font-size: 14px;
font-weight: normal;
}
.progress-bar-info { background-color: #2587bc; }
.progress-bar-info { background-color: #8DC429; }
/* Set the fixed height of the footer here */
#footer {
@ -396,38 +439,19 @@ margin-left: 0;
overflow: hidden;
}
#footer a.flosight {
#footer a.insight {
font-size: 20px;
text-decoration: none;
color: #fff;
}
#footer a.flosight:hover {
#footer a.insight:hover {
color: #fffffe;
}
#footer a.flosight small { font-size: 11px; }
#footer a.insight small { font-size: 11px; }
.line-footer { border-top: 2px dashed #ccc; }
#footer .links {
color: #ddd;
font-size: 10px;
}
#footer .links a {
color: #ddd;
}
#footer .links a.selected {
color: #eee;
font-weight: bold;
}
#footer .links a:hover {
text-decoration: none;
color: #fffffe;
}
.line-bot {
border-bottom: 2px solid #EAEAEA;
padding: 0 0 10px 0;
@ -535,7 +559,6 @@ margin-left: 0;
width: 16px;
outline: none;
vertical-align: sub;
border: none !important;
}
.btn-expand {
@ -549,7 +572,7 @@ margin-left: 0;
}
.btn-copy {
background: transparent url('../img/icons/copy.png') center center no-repeat;
background: transparent url('/img/icons/copy.png') center center no-repeat;
}
.btn-copy .tooltip {
@ -561,6 +584,16 @@ margin-left: 0;
.btn-copy.zeroclipboard-is-hover { color: #2a6496; }
.btn-copy.zeroclipboard-is-active .tooltip { opacity: 1; }
@media (max-width: 991px) {
.btn-copy {
display: none;
}
}
.txid {
line-height: 26px;
}
.tx-id {
background-color: #373D42;
border: 3px solid #FFFFFF;
@ -578,10 +611,7 @@ margin-left: 0;
.page-header { margin-top: 0; }
.panel { margin-bottom: 1em;}
.panel-body {
padding: 0.7em;
word-wrap: break-word;
}
.panel-body {padding: 0.7em;}
/* Index */
#home .btn-more {
@ -614,23 +644,23 @@ margin-left: 0;
float: left;
height: 45px;
}
#powered a.flocore {
background-image: url('../img/logo.svg');
#powered a.bitcore {
background-image: url('http://bitcore.io/images/logo.svg');
background-size: 80px;
width: 30%;
}
#powered a.nodejs {
background-image: url('../img/nodejs.png');
background-image: url('/img/nodejs.png');
background-size: 80px;
width: 30%;
}
#powered a.angularjs {
background-image: url('../img/angularjs.png');
background-image: url('/img/angularjs.png');
background-size: 50px;
width: 20%;
}
#powered a.leveldb {
background-image: url('../img/leveldb.png');
background-image: url('/img/leveldb.png');
background-size: 50px;
width: 20%;
}
@ -715,139 +745,6 @@ a.v_highlight_more {
margin-top: 15px;
}
@media (max-width: 991px) {
.status {
display: none;
}
.navbar-form {
width: auto;
}
.btn-copy {
display: none;
}
.col-gray-fixed {
position:static;
width: 100%;
margin-top: 0;
padding: 0;
}
.m50v {
margin: 15px 0;
}
.block-id span {
font-size: 24px;
margin: 10px 0;
}
.icon-block {
font-size: initial;
margin: 10px 0;
}
body {
font-size: 12px;
}
h1 {
font-size: 26px;
}
h2 {
font-size: 22px;
}
h3 {
font-size: 18px;
}
.flosight {
font-size: 30px;
}
.navbar-default .navbar-nav>li>a {
padding-left: 15px;
padding-right: 15px;
}
@media (min-width: 768px) {
#search { color: #fff; }
}
@media (max-width: 767px) {
.navbar-form {
width: auto;
}
.status {
display: none;
}
#wrap>.container {
padding: 50px 15px 0;
}
#ngProgress-container {
top: 50px;
}
body {
font-size: 11px;
}
h1 {
font-size: 24px;
}
h2 {
font-size: 20px;
}
.navbar-default .navbar-brand {
padding: 15px;
}
.flosight {
font-size: 26px;
}
.navbar-nav>li>a {
padding-top: 15px;
padding-bottom: 15px;
}
.container {
padding-left: 0;
padding-right: 0;
}
.navbar-default .navbar-toggle {
margin-top: 7px;
}
.navbar {
min-height: 50px;
}
#search { color: #000; }
.txvalues {
display: block;
margin: 5px;
padding: 0.5em 2em;
font-size: 11px;
}
.navbar-default .navbar-nav .open .dropdown-menu>li>a {
color: #fff;
}
.txvalues {
display: inline;
margin: 0;
padding: 0;
font-weight: bold;
}
.txvalues-success {
background: none;
color: #2FA4D7;
}
.txvalues-primary {
background: none;
color: #8DC429;
}
.txvalues-default {
background: none;
color: #A09E9E;
}
.txvalues-danger {
background: none;
color: #AC0015;
}
.btn-expand {
font-size: 18px;
}
}
@media (min-width: 1200px) {
.col-gray-fixed {
width: 280px;
}
.navbar-form .form-control {
width: 350px;
}
}

View File

@ -1,9 +1,6 @@
'use strict';
var defaultLanguage = localStorage.getItem('flosight-language') || 'en';
var defaultCurrency = localStorage.getItem('flosight-currency') || 'FLO';
angular.module('flosight',[
angular.module('insight',[
'ngAnimate',
'ngResource',
'ngRoute',
@ -11,29 +8,23 @@ angular.module('flosight',[
'ui.bootstrap',
'ui.route',
'monospaced.qrcode',
'gettext',
'angularMoment',
'flosight.system',
'flosight.socket',
'flosight.api',
'flosight.blocks',
'flosight.transactions',
'flosight.address',
'flosight.search',
'flosight.status',
'flosight.connection',
'flosight.currency',
'flosight.messages'
'insight.system',
'insight.socket',
'insight.blocks',
'insight.transactions',
'insight.address',
'insight.search',
'insight.status',
'insight.connection',
'insight.currency'
]);
angular.module('flosight.system', []);
angular.module('flosight.socket', []);
angular.module('flosight.api', []);
angular.module('flosight.blocks', []);
angular.module('flosight.transactions', []);
angular.module('flosight.address', []);
angular.module('flosight.search', []);
angular.module('flosight.status', []);
angular.module('flosight.connection', []);
angular.module('flosight.currency', []);
angular.module('flosight.messages', []);
angular.module('insight.system', []);
angular.module('insight.socket', []);
angular.module('insight.blocks', []);
angular.module('insight.transactions', []);
angular.module('insight.address', []);
angular.module('insight.search', []);
angular.module('insight.status', []);
angular.module('insight.connection', []);
angular.module('insight.currency', []);

View File

@ -1,63 +1,53 @@
'use strict';
//Setting up route
angular.module('flosight').config(function($routeProvider) {
angular.module('insight').config(function($routeProvider) {
$routeProvider.
when('/block/:blockHash', {
templateUrl: 'views/block.html',
title: 'Flo Block '
templateUrl: '/views/block.html',
title: 'Bitcoin Block '
}).
when('/block-index/:blockHeight', {
controller: 'BlocksController',
templateUrl: 'views/redirect.html'
}).
when('/tx/send', {
templateUrl: 'views/transaction_sendraw.html',
title: 'Broadcast Raw Transaction'
templateUrl: '/views/redirect.html'
}).
when('/tx/:txId/:v_type?/:v_index?', {
templateUrl: 'views/transaction.html',
title: 'Flo Transaction '
templateUrl: '/views/transaction.html',
title: 'Bitcoin Transaction '
}).
when('/', {
templateUrl: 'views/index.html',
templateUrl: '/views/index.html',
title: 'Home'
}).
when('/blocks', {
templateUrl: 'views/block_list.html',
title: 'Flo Blocks solved Today'
templateUrl: '/views/block_list.html',
title: 'Bitcoin Blocks solved Today'
}).
when('/blocks-date/:blockDate/:startTimestamp?', {
templateUrl: 'views/block_list.html',
title: 'Flo Blocks solved '
templateUrl: '/views/block_list.html',
title: 'Bitcoin Blocks solved '
}).
when('/address/:addrStr', {
templateUrl: 'views/address.html',
title: 'Flo Address '
templateUrl: '/views/address.html',
title: 'Bitcoin Address '
}).
when('/status', {
templateUrl: 'views/status.html',
templateUrl: '/views/status.html',
title: 'Status'
}).
when('/messages/verify', {
templateUrl: 'views/messages_verify.html',
title: 'Verify Message'
})
.otherwise({
templateUrl: 'views/404.html',
templateUrl: '/views/404.html',
title: 'Error'
});
});
//Setting HTML5 Location Mode
angular.module('flosight')
angular.module('insight')
.config(function($locationProvider) {
$locationProvider.html5Mode(true);
$locationProvider.hashPrefix('!');
})
.run(function($rootScope, $route, $location, $routeParams, $anchorScroll, ngProgress, gettextCatalog, amMoment) {
gettextCatalog.currentLanguage = defaultLanguage;
amMoment.changeLocale(defaultLanguage);
.run(function($rootScope, $route, $location, $routeParams, $anchorScroll, ngProgress) {
$rootScope.$on('$routeChangeStart', function() {
ngProgress.start();
});

View File

@ -1,38 +1,28 @@
'use strict';
angular.module('flosight.address').controller('AddressController',
angular.module('insight.address').controller('AddressController',
function($scope, $rootScope, $routeParams, $location, Global, Address, getSocket) {
$scope.global = Global;
var socket = getSocket($scope);
var addrStr = $routeParams.addrStr;
var _startSocket = function() {
socket.on('florincoind/addresstxid', function(data) {
if (data.address === addrStr) {
$rootScope.$broadcast('tx', data.txid);
var base = document.querySelector('base');
var beep = new Audio(base.href + '/sound/transaction.mp3');
beep.play();
}
var _startSocket = function () {
socket.emit('subscribe', $routeParams.addrStr);
socket.on($routeParams.addrStr, function(tx) {
$rootScope.$broadcast('tx', tx);
var beep = new Audio('/sound/transaction.mp3');
beep.play();
});
socket.emit('subscribe', 'florincoind/addresstxid', [addrStr]);
};
var _stopSocket = function () {
socket.emit('unsubscribe', 'florincoind/addresstxid', [addrStr]);
};
socket.on('connect', function() {
_startSocket();
});
$scope.$on('$destroy', function(){
_stopSocket();
});
$scope.params = $routeParams;
$scope.findOne = function() {
$rootScope.currentAddr = $routeParams.addrStr;
_startSocket();

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('flosight.blocks').controller('BlocksController',
angular.module('insight.blocks').controller('BlocksController',
function($scope, $rootScope, $routeParams, $location, Global, Block, Blocks, BlockByHeight) {
$scope.global = Global;
$scope.loading = false;

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('flosight.connection').controller('ConnectionController',
angular.module('insight.connection').controller('ConnectionController',
function($scope, $window, Status, getSocket, PeerSync) {
// Set initial values

View File

@ -1,8 +1,7 @@
'use strict';
angular.module('flosight.currency').controller('CurrencyController',
angular.module('insight.currency').controller('CurrencyController',
function($scope, $rootScope, Currency) {
$rootScope.currency.symbol = defaultCurrency;
var _roundFloat = function(x, n) {
if(!parseInt(n, 10) || !parseFloat(x)) n = 0;
@ -19,29 +18,13 @@ angular.module('flosight.currency').controller('CurrencyController',
var response;
if (this.symbol === 'USD') {
var USDValue = value * this.factor;
response = USDValue.toFixed(2)
if (parseFloat(response) === 0)
response = USDValue.toFixed(4)
if (parseFloat(response) === 0)
response = USDValue.toFixed(6)
if (parseFloat(response) === 0)
response = USDValue.toFixed(8)
if (parseFloat(response) === 0)
response = 0;
} else if (this.symbol === 'mFLO') {
response = _roundFloat((value * this.factor), 2);
} else if (this.symbol === 'mBTC') {
this.factor = 1000;
response = _roundFloat((value * this.factor), 5);
} else if (this.symbol === 'bits') {
this.factor = 1000000;
response = _roundFloat((value * this.factor), 2);
} else { // assumes symbol is BTC
} else {
this.factor = 1;
response = _roundFloat((value * this.factor), 8);
response = value;
}
// prevent sci notation
if (response < 1e-7) response=response.toFixed(8);
@ -54,16 +37,13 @@ angular.module('flosight.currency').controller('CurrencyController',
$scope.setCurrency = function(currency) {
$rootScope.currency.symbol = currency;
localStorage.setItem('flosight-currency', currency);
if (currency === 'USD') {
Currency.get({}, function(res) {
$rootScope.currency.factor = $rootScope.currency.bitstamp = res.data.bitstamp;
});
} else if (currency === 'mFLO') {
} else if (currency === 'mBTC') {
$rootScope.currency.factor = 1000;
} else if (currency === 'bits') {
$rootScope.currency.factor = 1000000;
} else {
$rootScope.currency.factor = 1;
}
@ -71,7 +51,7 @@ angular.module('flosight.currency').controller('CurrencyController',
// Get initial value
Currency.get({}, function(res) {
$rootScope.currency.factor = $rootScope.currency.bitstamp = res.data.bitstamp;
$rootScope.currency.bitstamp = res.data.bitstamp;
});
});

View File

@ -1,40 +1,15 @@
'use strict';
angular.module('flosight.system').controller('FooterController',
function($scope, $route, $templateCache, gettextCatalog, amMoment, Version) {
$scope.defaultLanguage = defaultLanguage;
angular.module('insight.system').controller('FooterController',
function($scope, Version) {
var _getVersion = function() {
Version.get({},
function(res) {
$scope.version = res.version;
});
function(res) {
$scope.version = res.version;
});
};
$scope.version = _getVersion();
$scope.availableLanguages = [{
name: 'Deutsch',
isoCode: 'de_DE',
}, {
name: 'English',
isoCode: 'en',
}, {
name: 'Spanish',
isoCode: 'es',
}, {
name: 'Japanese',
isoCode: 'ja',
}];
$scope.setLanguage = function(isoCode) {
gettextCatalog.currentLanguage = $scope.defaultLanguage = defaultLanguage = isoCode;
amMoment.changeLocale(isoCode);
localStorage.setItem('flosight-language', isoCode);
var currentPageTemplate = $route.current.templateUrl;
$templateCache.remove(currentPageTemplate);
$route.reload();
};
});
});

View File

@ -1,13 +1,13 @@
'use strict';
angular.module('flosight.system').controller('HeaderController',
function($scope, $rootScope, $modal, getSocket, Global, Block, Status) {
angular.module('insight.system').controller('HeaderController',
function($scope, $rootScope, $modal, getSocket, Global, Block) {
$scope.global = Global;
$rootScope.currency = {
factor: 1,
bitstamp: 0,
symbol: 'FLO'
symbol: 'BTC'
};
$scope.menu = [{
@ -25,19 +25,6 @@ angular.module('flosight.system').controller('HeaderController',
});
};
$scope.getStatus = function(q) {
Status.get({
q: 'get' + q
},
function(d) {
$scope.loaded = 1;
angular.extend($scope, d);
},
function(e) {
$scope.error = 'API ERROR: ' + e.data;
});
};
var _getBlock = function(hash) {
Block.get({
blockHash: hash

View File

@ -3,29 +3,16 @@
var TRANSACTION_DISPLAYED = 10;
var BLOCKS_DISPLAYED = 5;
angular.module('flosight.system').controller('IndexController',
angular.module('insight.system').controller('IndexController',
function($scope, Global, getSocket, Blocks) {
$scope.global = Global;
var _getBlocks = function(loadTxs) {
var _getBlocks = function() {
Blocks.get({
limit: BLOCKS_DISPLAYED
}, function(res) {
$scope.blocks = res.blocks;
$scope.blocksLength = res.length;
if (loadTxs) {
TransactionsByBlock.get({
block: res.blocks[0].hash
}, function(txs){
for (var i = txs.length; i > 0; i--){
$scope.txs.unshift(txs[i]);
if (parseInt($scope.txs.length, 10) >= parseInt(TRANSACTION_DISPLAYED, 10)) {
$scope.txs = $scope.txs.splice(0, TRANSACTION_DISPLAYED);
}
}
})
}
$scope.blocksLength = res.lenght;
});
};
@ -41,7 +28,7 @@ angular.module('flosight.system').controller('IndexController',
});
socket.on('block', function() {
_getBlocks(false);
_getBlocks();
});
};
@ -49,13 +36,15 @@ angular.module('flosight.system').controller('IndexController',
_startSocket();
});
$scope.humanSince = function(time) {
var m = moment.unix(time);
return m.max().fromNow();
};
$scope.index = function() {
_getBlocks(true);
_getBlocks();
_startSocket();
};

View File

@ -1,50 +0,0 @@
'use strict';
angular.module('flosight.messages').controller('VerifyMessageController',
function($scope, $http, Api) {
$scope.message = {
address: '',
signature: '',
message: ''
};
$scope.verification = {
status: 'unverified', // ready|loading|verified|error
result: null,
error: null,
address: ''
};
$scope.verifiable = function() {
return ($scope.message.address
&& $scope.message.signature
&& $scope.message.message);
};
$scope.verify = function() {
$scope.verification.status = 'loading';
$scope.verification.address = $scope.message.address;
$http.post(Api.apiPrefix + '/messages/verify', $scope.message)
.success(function(data, status, headers, config) {
if(typeof(data.result) != 'boolean') {
// API returned 200 but result was not true or false
$scope.verification.status = 'error';
$scope.verification.error = null;
return;
}
$scope.verification.status = 'verified';
$scope.verification.result = data.result;
})
.error(function(data, status, headers, config) {
$scope.verification.status = 'error';
$scope.verification.error = data;
});
};
// Hide the verify status message on form change
var unverify = function() {
$scope.verification.status = 'unverified';
};
$scope.$watch('message.address', unverify);
$scope.$watch('message.signature', unverify);
$scope.$watch('message.message', unverify);
});

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('flosight.system').controller('ScannerController',
angular.module('insight.system').controller('ScannerController',
function($scope, $rootScope, $modalInstance, Global) {
$scope.global = Global;
@ -112,7 +112,7 @@ angular.module('flosight.system').controller('ScannerController',
qrcode.callback = function(data) {
_scanStop();
var str = (data.indexOf('flo:') === 0) ? data.substring(8) : data;
var str = (data.indexOf('bitcoin:') === 0) ? data.substring(8) : data;
console.log('QR code detected: ' + str);
$searchInput
.val(str)

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('flosight.search').controller('SearchController',
angular.module('insight.search').controller('SearchController',
function($scope, $routeParams, $location, $timeout, Global, Block, Transaction, Address, BlockByHeight) {
$scope.global = Global;
$scope.loading = false;
@ -48,7 +48,6 @@ angular.module('flosight.search').controller('SearchController',
_resetSearch();
$location.path('/block/' + hash.blockHash);
}, function() { //not found, fail :(
$scope.loading = false;
_badQuery();
});
}

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('flosight.status').controller('StatusController',
angular.module('insight.status').controller('StatusController',
function($scope, $routeParams, $location, Global, Status, Sync, getSocket) {
$scope.global = Global;

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('flosight.transactions').controller('transactionsController',
angular.module('insight.transactions').controller('transactionsController',
function($scope, $rootScope, $routeParams, $location, Global, Transaction, TransactionsByBlock, TransactionsByAddress) {
$scope.global = Global;
$scope.loading = false;
@ -56,14 +56,11 @@ function($scope, $rootScope, $routeParams, $location, Global, Transaction, Trans
tmp[addr].doubleSpentTxID = tmp[addr].doubleSpentTxID || items[i].doubleSpentTxID;
tmp[addr].doubleSpentIndex = tmp[addr].doubleSpentIndex || items[i].doubleSpentIndex;
tmp[addr].unconfirmedInput += items[i].unconfirmedInput;
tmp[addr].dbError = tmp[addr].dbError || items[i].dbError;
tmp[addr].valueSat += Math.round(items[i].value * COIN);
tmp[addr].items.push(items[i]);
tmp[addr].notAddr = notAddr;
if (items[i].unconfirmedInput)
tmp[addr].unconfirmedInput = true;
tmp[addr].count++;
}
@ -173,41 +170,3 @@ function($scope, $rootScope, $routeParams, $location, Global, Transaction, Trans
});
});
angular.module('flosight.transactions').controller('SendRawTransactionController',
function($scope, $http, Api) {
$scope.transaction = '';
$scope.status = 'ready'; // ready|loading|sent|error
$scope.txid = '';
$scope.error = null;
$scope.formValid = function() {
return !!$scope.transaction;
};
$scope.send = function() {
var postData = {
rawtx: $scope.transaction
};
$scope.status = 'loading';
$http.post(Api.apiPrefix + '/tx/send', postData)
.success(function(data, status, headers, config) {
if(typeof(data.txid) != 'string') {
// API returned 200 but the format is not known
$scope.status = 'error';
$scope.error = 'The transaction was sent but no transaction id was got back';
return;
}
$scope.status = 'sent';
$scope.txid = data.txid;
})
.error(function(data, status, headers, config) {
$scope.status = 'error';
if(data) {
$scope.error = data;
} else {
$scope.error = "No error message given (connection error?)"
}
});
};
});

View File

@ -2,7 +2,7 @@
var ZeroClipboard = window.ZeroClipboard;
angular.module('flosight')
angular.module('insight')
.directive('scroll', function ($window) {
return function(scope, element, attrs) {
angular.element($window).bind('scroll', function() {
@ -40,46 +40,35 @@ angular.module('flosight')
}
};
})
.directive('dataClipboardText', function() {
.directive('clipCopy', function() {
ZeroClipboard.config({
moviePath: '/lib/zeroclipboard/ZeroClipboard.swf',
trustedDomains: ['*'],
allowScriptAccess: 'always',
forceHandCursor: true
});
return {
restric: 'A',
scope: { dataClipboardText: '=dataClipboardText' },
scope: { clipCopy: '=clipCopy' },
template: '<div class="tooltip fade right in"><div class="tooltip-arrow"></div><div class="tooltip-inner">Copied!</div></div>',
link: function(scope, elm) {
var clip = new ClipboardJS(elm, {
text: scope.dataClipboardText
var clip = new ZeroClipboard(elm);
clip.on('load', function(client) {
var onMousedown = function(client) {
client.setText(scope.clipCopy);
};
client.on('mousedown', onMousedown);
scope.$on('$destroy', function() {
client.off('mousedown', onMousedown);
});
});
// clip.on('load', function(client) {
// var onMousedown = function(client) {
// client.setText(scope.clipCopy);
// };
// client.on('mousedown', onMousedown);
// scope.$on('$destroy', function() {
// client.off('mousedown', onMousedown);
// });
// });
// clip.on('noFlash wrongflash', function() {
// return elm.remove();
// });
}
};
})
.directive('focus', function ($timeout) {
return {
scope: {
trigger: '@focus'
},
link: function (scope, element) {
scope.$watch('trigger', function (value) {
if (value === "true") {
$timeout(function () {
element[0].focus();
});
}
clip.on('noFlash wrongflash', function() {
return elm.remove();
});
}
};

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('flosight')
angular.module('insight')
.filter('startFrom', function() {
return function(input, start) {
start = +start; //parse to int

View File

@ -2,5 +2,5 @@
angular.element(document).ready(function() {
// Init the app
// angular.bootstrap(document, ['flosight']);
// angular.bootstrap(document, ['insight']);
});

View File

@ -1,8 +1,8 @@
'use strict';
angular.module('flosight.address').factory('Address',
function($resource, Api) {
return $resource(Api.apiPrefix + '/addr/:addrStr/?noTxList=1', {
angular.module('insight.address').factory('Address',
function($resource) {
return $resource('/api/addr/:addrStr/?noTxList=1', {
addrStr: '@addStr'
}, {
get: {
@ -21,4 +21,3 @@ angular.module('flosight.address').factory('Address',
});
});

View File

@ -1,9 +0,0 @@
'use strict';
angular.module('flosight.api')
.factory('Api',
function() {
return {
apiPrefix: '/api'
}
});

View File

@ -1,9 +1,9 @@
'use strict';
angular.module('flosight.blocks')
angular.module('insight.blocks')
.factory('Block',
function($resource, Api) {
return $resource(Api.apiPrefix + '/block/:blockHash', {
function($resource) {
return $resource('/api/block/:blockHash', {
blockHash: '@blockHash'
}, {
get: {
@ -22,10 +22,10 @@ angular.module('flosight.blocks')
});
})
.factory('Blocks',
function($resource, Api) {
return $resource(Api.apiPrefix + '/blocks');
function($resource) {
return $resource('/api/blocks');
})
.factory('BlockByHeight',
function($resource, Api) {
return $resource(Api.apiPrefix + '/block-index/:blockHeight');
function($resource) {
return $resource('/api/block-index/:blockHeight');
});

View File

@ -1,6 +1,6 @@
'use strict';
angular.module('flosight.currency').factory('Currency',
function($resource, Api) {
return $resource(Api.apiPrefix + '/currency');
angular.module('insight.currency').factory('Currency',
function($resource) {
return $resource('/api/currency');
});

View File

@ -1,12 +1,12 @@
'use strict';
//Global service for global variables
angular.module('flosight.system')
angular.module('insight.system')
.factory('Global',[
function() {
}
])
.factory('Version',
function($resource, Api) {
return $resource(Api.apiPrefix + '/version');
function($resource) {
return $resource('/api/version');
});

View File

@ -39,9 +39,8 @@ ScopedSocket.prototype.on = function(event, callback) {
ScopedSocket.prototype.emit = function(event, data, callback) {
var socket = this.socket;
var $rootScope = this.$rootScope;
var args = Array.prototype.slice.call(arguments);
args.push(function() {
socket.emit(event, data, function() {
var args = arguments;
$rootScope.$apply(function() {
if (callback) {
@ -49,11 +48,9 @@ ScopedSocket.prototype.emit = function(event, data, callback) {
}
});
});
socket.emit.apply(socket, args);
};
angular.module('flosight.socket').factory('getSocket',
angular.module('insight.socket').factory('getSocket',
function($rootScope) {
var socket = io.connect(null, {
'reconnect': true,

View File

@ -1,17 +1,17 @@
'use strict';
angular.module('flosight.status')
angular.module('insight.status')
.factory('Status',
function($resource, Api) {
return $resource(Api.apiPrefix + '/status', {
function($resource) {
return $resource('/api/status', {
q: '@q'
});
})
.factory('Sync',
function($resource, Api) {
return $resource(Api.apiPrefix + '/sync');
function($resource) {
return $resource('/api/sync');
})
.factory('PeerSync',
function($resource, Api) {
return $resource(Api.apiPrefix + '/peer');
function($resource) {
return $resource('/api/peer');
});

View File

@ -1,9 +1,9 @@
'use strict';
angular.module('flosight.transactions')
angular.module('insight.transactions')
.factory('Transaction',
function($resource, Api) {
return $resource(Api.apiPrefix + '/tx/:txId', {
function($resource) {
return $resource('/api/tx/:txId', {
txId: '@txId'
}, {
get: {
@ -22,18 +22,18 @@ angular.module('flosight.transactions')
});
})
.factory('TransactionsByBlock',
function($resource, Api) {
return $resource(Api.apiPrefix + '/txs', {
function($resource) {
return $resource('/api/txs', {
block: '@block'
});
})
.factory('TransactionsByAddress',
function($resource, Api) {
return $resource(Api.apiPrefix + '/txs', {
function($resource) {
return $resource('/api/txs', {
address: '@address'
});
})
.factory('Transactions',
function($resource, Api) {
return $resource(Api.apiPrefix + '/txs');
function($resource) {
return $resource('/api/txs');
});

File diff suppressed because one or more lines are too long

View File

@ -1,9 +0,0 @@
'use strict';
angular.module('flosight.api')
.factory('Api',
function() {
return {
apiPrefix: '/INSIGHT_API_PREFIX'
}
});

View File

@ -1,6 +1,6 @@
<div data-ng-include src="'views/includes/connection.html'"></div>
<div data-ng-include src="'/views/includes/connection.html'"></div>
<div class="jumbotron">
<h1>Ooops!</h1>
<h2 translate class="text-muted">404 Page not found :(</h2>
<p><a translate href="/" class="pull-right">Go to home</a></p>
<h2 class="text-muted">404 Page not found :(</h2>
<p><a href="/" class="pull-right">Go to home</a></p>
</div>

View File

@ -1,13 +1,13 @@
<div data-ng-include src="'views/includes/connection.html'"></div>
<div data-ng-include src="'/views/includes/connection.html'"></div>
<section data-ng-controller="AddressController" data-ng-init="findOne()">
<div class="secondary_navbar hidden-xs hidden-sm" scroll data-ng-class="{'hidden': !secondaryNavbar}" data-ng-show="address.addrStr" data-ng-init="hideSNavbar=0">
<div class="container" data-ng-if="!hideSNavbar">
<div class="col-md-8 text-left">
<h3 translate>Address</h3> {{address.addrStr}}
<button class="btn-copy" data-clipboard-text="{{address.addrStr}}"></button>
<h3>Address</h3> {{address.addrStr}}
<span class="btn-copy" clip-copy="address.addrStr"></span>
</div>
<div class="col-md-4">
<span class="txvalues txvalues-primary"><strong translate>Final Balance</strong> {{$root.currency.getConvertion(address.balance) || address.balance + ' BTC' }}</span>
<span class="txvalues txvalues-primary"><strong>Final Balance</strong> {{$root.currency.getConvertion(address.balance) || address.balance + ' BTC' }}</span>
</div>
</div>
<div class="hide_snavbar">
@ -17,35 +17,35 @@
</a>
</div>
</div>
<h1><span translate>Address</span> <small data-ng-show="address.addrStr">{{$root.currency.getConvertion(address.balance) || address.balance + ' BTC'}}</small></h1>
<h1>Address <small data-ng-show="address.addrStr">{{$root.currency.getConvertion(address.balance) || address.balance + ' BTC'}}</small></h1>
<div class="text-muted" data-ng-if="!address.addrStr">
<span translate>Loading Address Information</span> <span class="loader-gif"></span>
<span>Loading Address Information <span class="loader-gif"></span>
</div>
<div data-ng-if="address.addrStr">
<div class="well well-sm ellipsis">
<strong translate>Address</strong>
<strong>Address</strong>
<span class="text-muted">{{address.addrStr}}</span>
<button class="btn-copy" data-clipboard-text="{{address.addrStr}}"></button>
<span class="btn-copy" clip-copy="address.addrStr"></span>
</div>
<h2 translate>Summary <small>confirmed</small></h2>
<h2>Summary <small>confirmed</small></h2>
<div class="row" data-ng-hide="!address.addrStr">
<div class="col-md-10">
<table class="table">
<tbody>
<tr>
<td><strong translate>Total Received</strong></td>
<td><strong>Total Received</strong></td>
<td class="ellipsis text-right">{{$root.currency.getConvertion(address.totalReceived) || address.totalReceived + ' BTC'}}</td>
</tr>
<tr>
<td><strong translate>Total Sent</strong></td>
<td><strong>Total Sent</strong></td>
<td class="ellipsis text-right">{{$root.currency.getConvertion(address.totalSent) || address.totalSent + ' BTC'}}</td>
</tr>
<tr>
<td><strong translate>Final Balance</strong></td>
<td><strong>Final Balance</strong></td>
<td class="ellipsis text-right">{{$root.currency.getConvertion(address.balance) || address.balance + ' BTC'}}</td>
</tr>
<tr>
<td><strong translate>No. Transactions</strong></td>
<td><strong>No. Transactions</strong></td>
<td class="ellipsis text-right">{{address.txApperances}}</td>
</tr>
</tbody>
@ -56,15 +56,15 @@
</div>
</div>
<div data-ng-show="address.unconfirmedTxApperances">
<h3 translate>Unconfirmed</h3>
<h3>Unconfirmed</h3>
<table class="table">
<tbody>
<tr>
<td class="small" translate>Unconfirmed Txs Balance</td>
<td class="small">Unconfirmed Txs Balance</td>
<td class="address ellipsis text-right">{{$root.currency.getConvertion(address.unconfirmedBalance)}}</td>
</tr>
<tr>
<td class="small" translate>No. Transactions</td>
<td class="small">No. Transactions</td>
<td class="address ellipsis text-right">{{address.unconfirmedTxApperances}}</td>
</tr>
@ -73,8 +73,8 @@
</div>
</div>
<div data-ng-if="address.addrStr" data-ng-controller="transactionsController" data-ng-init="load('address')">
<h2 translate>Transactions</h2>
<div data-ng-include src="'views/transaction/list.html'" when-scrolled="loadMore()"></div>
<h2>Transactions</h2>
<div data-ng-include src="'/views/transaction/list.html'" when-scrolled="loadMore()"></div>
</div>
</section>

View File

@ -1,26 +1,26 @@
<div data-ng-include src="'views/includes/connection.html'"></div>
<div data-ng-include src="'/views/includes/connection.html'"></div>
<section data-ng-controller="BlocksController" data-ng-init="findOne()">
<div class="secondary_navbar hidden-xs hidden-sm" scroll data-ng-class="{'hidden': !secondaryNavbar}" data-ng-show="block.hash" data-ng-init="hideSNavbar=0">
<div class="container" data-ng-if="!hideSNavbar">
<div class="row">
<div class="col-md-1">
<a href="block/{{block.previousblockhash}}"><span class="lead glyphicon glyphicon-chevron-left"></span></a>
<a href="/block/{{block.previousblockhash}}"><span class="lead glyphicon glyphicon-chevron-left"></span></a>
</div>
<div class="col-md-10">
<div class="row">
<div class="col-md-5">
<h3 class="text-left"><span translate>Block</span> #{{block.height}}</h3>
<h3 class="text-left">Block #{{block.height}}</h3>
</div>
<p class="col-md-6 ellipsis text-left">
<strong>Hash</strong> {{block.hash}}
</p>
<div class="col-md-1 text-left">
<button class="btn-copy" data-clipboard-text="{{block.hash}}"></button>
<span class="btn-copy" clip-copy="block.hash"></span>
</div>
</div>
</div>
<div class="col-md-1">
<a data-ng-show="block.nextblockhash" href="block/{{block.nextblockhash}}"><span class="lead glyphicon glyphicon-chevron-right"></span></a>
<a data-ng-show="block.nextblockhash" href="/block/{{block.nextblockhash}}"><span class="lead glyphicon glyphicon-chevron-right"></span></a>
</div>
</div>
</div> <!-- END OF CONTAINER -->
@ -33,40 +33,40 @@
</div>
<h1>Block #{{block.height}}</h1>
<div class="text-muted" data-ng-if="!block.hash">
<span translate>Loading Block Information</span> <span class="loader-gif"></span>
<span>Loading Block Information <span class="loader-gif"></span>
</div>
<div data-ng-if="block.hash">
<div class="well well-sm ellipsis">
<strong>BlockHash</strong>
<span class="txid text-muted">{{block.hash}}</span>
<button class="btn-copy" data-clipboard-text="{{block.hash}}"></button>
<span class="btn-copy" clip-copy="block.hash"></span>
</div>
<h2 translate>Summary</h2>
<h2>Summary</h2>
<div class="row">
<div class="col-md-6">
<table class="table" style="table-layout: fixed">
<tbody>
<tr>
<td><strong translate>Number Of Transactions</strong></td>
<td><strong>Number Of Transactions</strong></td>
<td class="text-right text-muted">{{block.tx.length}}</td>
</tr>
<tr>
<td><strong translate>Height</strong></td>
<td><strong>Height</strong></td>
<td class="text-right text-muted">{{block.height}}
<span data-ng-show="block.isMainChain" class="text-success">(Mainchain)</span>
<span data-ng-show="!block.isMainChain" class="text-danger"> <span class="glyphicon glyphicon-warning-sign"></span> (Orphaned)</span>
</td>
</tr>
<tr>
<td><strong translate>Block Reward</strong></td>
<td><strong>Block Reward</strong></td>
<td class="text-right text-muted">{{$root.currency.getConvertion(block.reward) || block.reward + ' BTC'}}</td>
</tr>
<tr>
<td><strong translate>Timestamp</strong></td>
<td><strong>Timestamp</strong></td>
<td class="text-right text-muted">{{block.time * 1000 | date:'medium'}}</td>
</tr>
<tr data-ng-show="block.poolInfo">
<td><strong translate>Mined by</strong></td>
<td><strong>Mined by</strong></td>
<td class="text-right text-muted">
<a href="{{block.poolInfo.url}}" target="_blank" title="{{block.poolInfo.poolName}}">{{block.poolInfo.poolName}}</a>
</td>
@ -75,14 +75,14 @@
<td><strong>Merkle Root</strong></td>
<td class="text-right text-muted">
<div class="ellipsis">
<button class="btn-copy" data-clipboard-text="{{block.merkleroot}}"></button>
<span class="btn-copy" clip-copy="block.merkleroot"></span>
<span>{{block.merkleroot}}</span>
</div>
</td>
</tr>
<tr data-ng-show="block.previousblockhash">
<td><strong translate>Previous Block</strong></td>
<td class="text-right"><a href="block/{{block.previousblockhash}}">{{block.height-1}}</a></td>
<td><strong>Previous Block</strong></td>
<td class="text-right"><a href="/block/{{block.previousblockhash}}">{{block.height-1}}</a></td>
</tr>
</tbody>
</table>
@ -91,28 +91,28 @@
<table class="table">
<tbody>
<tr>
<td> <strong translate>Difficulty</strong></td>
<td> <strong> Difficulty </strong></td>
<td class="text-right text-muted">{{block.difficulty}}</td>
</tr>
<tr>
<td> <strong>Bits</strong></td>
<td> <strong> Bits </strong></td>
<td class="text-right text-muted">{{block.bits}}</td>
</tr>
<tr>
<td> <strong translate>Size (bytes)</strong></td>
<td> <strong> Size (bytes) </strong></td>
<td class="text-right text-muted">{{block.size}}</td>
</tr>
<tr>
<td> <strong translate>Version</strong></td>
<td> <strong> Version </strong></td>
<td class="text-right text-muted">{{block.version}}</td>
</tr>
<tr>
<td> <strong>Nonce</strong></td>
<td> <strong> Nonce </strong></td>
<td class="text-right text-muted">{{block.nonce}}</td>
</tr>
<tr data-ng-show="block.nextblockhash">
<td><strong translate>Next Block</strong></td>
<td class="text-right"><a href="block/{{block.nextblockhash}}">{{block.height+1}}</a></td>
<td><strong>Next Block</strong></td>
<td class="text-right"><a href="/block/{{block.nextblockhash}}">{{block.height+1}}</a></td>
</tr>
</tbody>
</table>
@ -120,8 +120,8 @@
</div>
</div>
<div data-ng-if="block.hash" data-ng-controller="transactionsController" data-ng-init="load('block')">
<h3 translate>Transactions</h3>
<div data-ng-include src="'views/transaction/list.html'" when-scrolled="loadMore()"></div>
<h3>Transactions</h3>
<div data-ng-include src="'/views/transaction/list.html'" when-scrolled="loadMore()"></div>
</div>
</section>

View File

@ -1,12 +1,11 @@
<div data-ng-include src="'views/includes/connection.html'"></div>
<div data-ng-include src="'/views/includes/connection.html'"></div>
<section data-ng-controller="BlocksController" data-ng-init="list()">
<div class="row">
<div class="col-xs-12 col-gray col-gray-fixed">
<div class="block-id">
<div class="icon-block text-center">
<span class="glyphicon glyphicon-list"></span>
<h3><span translate>Blocks</span> <br>
<span translate>mined on:</span></h3>
<h3>Blocks <br> mined on:</h3>
</div>
</div>
<p class="lead text-center m20v">
@ -14,56 +13,55 @@
<a href="#" class="btn btn-primary btn-xs" datepicker-popup show-button-bar="false" data-ng-click="openCalendar($event)" data-ng-model="dt" is-open="opened" data-ng-required="true"><span class="glyphicon glyphicon-calendar"></span></a>
</p>
<div class="m20v text-center text-muted" data-ng-if="!pagination.current">
<span translate>Loading Selected Date...</span>
<span>Loading Selected Date...</span>
</div>
<div data-ng-if="pagination.current">
<p class="lead text-center m20v" data-ng-show="loading">&nbsp;</p>
<p class="text-center m20v" data-ng-show="pagination.isToday && !loading" translate>Today</p>
<p class="text-center m20v" data-ng-show="pagination.isToday && !loading">Today</p>
<p class="text-center m20v" data-ng-show="!pagination.isToday && !loading">{{humanSince(pagination.currentTs)}}
<p class="text-center m20v" data-ng-show="loading">&nbsp;</p>
<div class="m50v text-center">
<a class="btn btn-primary" href="blocks-date/{{pagination.prev}}"><small>&larr; {{pagination.prev}}</small></a>
<a class="btn btn-primary" href="blocks-date/{{pagination.next}}" data-ng-show="!pagination.isToday"><small>{{pagination.next}} &rarr;</small></a>
<a class="btn btn-primary" href="/blocks-date/{{pagination.prev}}"><small>&larr; {{pagination.prev}}</small></a>
<a class="btn btn-primary" href="/blocks-date/{{pagination.next}}" data-ng-show="!pagination.isToday"><small>{{pagination.next}} &rarr;</small></a>
</div>
</div>
</div>
<div class="col-xs-12 col-md-9 col-md-offset-3">
<div class="page-header">
<h1>
<span translate>Blocks</span>
<small><span translate>by date.</span> {{detail}} {{before}}</small>
Blocks
<small>by date. {{detail}} {{before}}</small>
</h1>
</div>
<table class="table table-hover table-striped">
<thead>
<tr>
<th translate>Height</th>
<th translate>Timestamp</th>
<th class="text-right" translate>Transactions</th>
<th class="text-right hidden-xs" translate>Mined by</th>
<th class="text-right" translate>Size</th>
<th>Height</th>
<th>Timestamp</th>
<th class="text-right">Transactions</th>
<th class="text-right">Mined by</th>
<th class="text-right">Size</th>
</tr>
</thead>
<tbody>
<tr data-ng-show="loading">
<td colspan="5"><span translate>Waiting for blocks...</span> <span class="loader-gif"></span></td>
<td colspan="5">Waiting for blocks <span class="loader-gif"></span></td>
</tr>
<tr class="fader" data-ng-repeat='b in blocks'>
<td><a href="block/{{b.hash}}">{{b.height}}</a></td>
<td><a href="/block/{{b.hash}}">{{b.height}}</a></td>
<td>{{b.time * 1000 | date:'medium'}}</td>
<td class="text-right">{{b.txlength}}</td>
<td class="text-right hidden-xs"><a href="{{b.poolInfo.url}}" title="{{b.poolInfo.poolName}}" target="_blank" data-ng-show="b.poolInfo">{{b.poolInfo.poolName}}</a></td>
<td class="text-right"><a href="{{b.poolInfo.url}}" title="{{b.poolInfo.poolName}}" target="_blank" data-ng-show="b.poolInfo">{{b.poolInfo.poolName}}</a></td>
<td class="text-right">{{b.size}}</td>
</tr>
</tbody>
</table>
<div data-ng-if="pagination.more">
<a class="btn btn-primary" href="blocks-date/{{pagination.current}}" data-ng-show="{{before}}">Lastest block from date</a>
<a class="btn btn-primary" href="blocks-date/{{pagination.current}}/{{pagination.moreTs}}">Older blocks from this date</a>
<a class="btn btn-primary" href="/blocks-date/{{pagination.current}}" data-ng-show="{{before}}">Lastest block from date</a>
<a class="btn btn-primary" href="/blocks-date/{{pagination.current}}/{{pagination.moreTs}}">Older blocks from this date</a>
</div>
</div>
</div>
<h2 class="text-center text-muted" data-ng-show="!blocks.length && !loading"
translate>No blocks yet.</h2>
<h2 class="text-center text-muted" data-ng-show="!blocks.length && !loading">No blocks yet.</h2>
</section>

View File

@ -1,2 +0,0 @@
{{'Blocks'|translate}}
{{'Status'|translate}}

View File

@ -4,17 +4,18 @@
data-ng-show="!serverOnline || !clienteOnline || !apiOnline"
data-ng-init="getConnStatus()">
<strong translate>Error!</strong>
<strong>Error!</strong>
<p data-ng-show="!apiOnline" translate>
Can't connect to flod to get live updates from the p2p network. (Tried connecting to flod at {{host}}:{{port}} and failed.)
<p data-ng-show="!apiOnline">
Can't connect to bitcoind to get live updates from the p2p network.
(Tried connecting to bitcoind at {{host}}:{{port}} and failed.)
</p>
<p data-ng-show="!serverOnline" translate>
Can't connect to flosight server. Attempting to reconnect...
<p data-ng-show="!serverOnline">
Can't connect to insight server. Attempting to reconnect...
</p>
<p data-ng-show="!clienteOnline" translate>
<p data-ng-show="!clienteOnline">
Can't connect to internet. Please, check your connection.
</p>

View File

@ -3,16 +3,13 @@
</a>
<ul class="dropdown-menu">
<li>
<a data-ng-click="setCurrency('USD')" data-ng-class="{active: currency.symbol == 'USD'}">USD</a>
<a href="#" data-ng-click="setCurrency('USD')" data-ng-class="{active: currency.symbol == 'USD'}">USD</a>
</li>
<li>
<a data-ng-click="setCurrency('FLO')" data-ng-class="{active: currency.symbol == 'FLO'}">FLO</a>
<a href="#" data-ng-click="setCurrency('BTC')" data-ng-class="{active: currency.symbol == 'BTC'}">BTC</a>
</li>
<li>
<a data-ng-click="setCurrency('mFLO')" data-ng-class="{active: currency.symbol == 'mFLO'}">mFLO</a>
<a href="#" data-ng-click="setCurrency('mBTC')" data-ng-class="{active: currency.symbol == 'mBTC'}">mBTC</a>
</li>
<li>
<a data-ng-click="setCurrency('bits')" data-ng-class="{active: currency.symbol == 'bits'}">bits</a>
</li>
</ul>

View File

@ -7,15 +7,20 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="flosight navbar-brand" href="." data-ng-init="getStatus('Info')">flosight <sub data-ng-hide="info.network === 'livenet'" style="font-size: 35%">({{info.network}})</sub></a>
<a class="insight navbar-brand" href="/">insight</a>
</div>
<div class="navbar-collapse collapse" collapse="$root.isCollapsed">
<ul class="nav navbar-nav">
<li data-ng-repeat="item in menu" ui-route="{{item.link}}" data-ng-class="{active: $uiRoute}">
<a href="{{item.link}}">{{item.title|translate}}</a>
<li data-ng-repeat="item in menu" ui-route="/{{item.link}}" data-ng-class="{active: $uiRoute}">
<a href="/{{item.link}}">{{item.title}}</a>
</li>
</ul>
<span class="hidden-xs navbar-form navbar-left" data-ng-include src="'views/includes/search.html'"></span>
<form id="search-form" data-ng-controller="SearchController" class="navbar-form navbar-left hidden-xs" role="search" data-ng-submit="search()">
<div class="form-group" data-ng-class="{'has-error': badQuery}">
<input id="search" type="text" class="form-control" data-ng-model="q" data-ng-class="{'loading': loading}" placeholder="Search for block, transaction or address" data-ng-submit="search()">
</div>
<div class="no_matching text-danger" data-ng-show="badQuery">No matching records found!</div>
</form>
<ul class="nav navbar-nav navbar-right">
<li>
<div class="status" data-ng-controller="StatusController">
@ -32,16 +37,15 @@
</div>
&nbsp; &middot;
<span data-ng-init="getStatus('Info')">
<strong>{{'Conn'|translate}}</strong> {{info.connections}}
<strong>Conn</strong> {{info.connections}}
</span> &middot;
<strong>{{'Height'|translate}}</strong> {{totalBlocks || info.blocks}}
<strong>Height</strong> {{totalBlocks || info.blocks}}
</div>
</li>
<li>
<a data-ng-click="openScannerModal()"><span class="glyphicon
glyphicon-qrcode"></span> Scan</a>
<a href="#" data-ng-click="openScannerModal()"><span class="glyphicon glyphicon-qrcode"></span> Scan</a>
</li>
<li class="dropdown" data-ng-controller="CurrencyController" data-ng-include="'views/includes/currency.html'"></li>
<li class="dropdown" data-ng-controller="CurrencyController" data-ng-include="'/views/includes/currency.html'"></li>
</ul>
</div>
</div>

View File

@ -1,4 +1,4 @@
<span class="text-warning" data-ng-show="!loaded && !error" translate>Loading...</span>
<span class="text-warning" data-ng-show="!loaded && !error">Loading...</span>
<span class="text-danger" data-ng-show="error">{{error}}</span>

View File

@ -1,6 +1,6 @@
<form id="search-form" data-ng-controller="SearchController" role="search" data-ng-submit="search()">
<form id="search-form-mobile" data-ng-controller="SearchController" class="visible-xs" role="search" data-ng-submit="search()">
<div class="form-group" data-ng-class="{'has-error': badQuery}">
<input id="search" type="text" class="form-control" data-ng-model="q" data-ng-class="{'loading': loading}" placeholder="{{'Search for block, transaction or address'|translate}}" data-ng-submit="search()" focus="true">
<input id="search" type="text" class="form-control" data-ng-model="q" data-ng-class="{'loading': loading}" placeholder="Search for block, transaction or address" data-ng-submit="search()">
</div>
<div class="no_matching text-danger" data-ng-show="badQuery" translate>No matching records found!</div>
<div class="no_matching text-danger" data-ng-show="badQuery">No matching records found!</div>
</form>

View File

@ -1,60 +1,58 @@
<div class="alert alert-danger" data-ng-show="flashMessage">
{{$root.flashMessage}}
</div>
<div data-ng-include src="'views/includes/connection.html'"></div>
<div data-ng-include src="'/views/includes/connection.html'"></div>
<section data-ng-controller="IndexController" data-ng-init="index()">
<div class="container">
<div id="home" class="row">
<div class="col-xs-12 col-md-8">
<div id="search-form-mobile" class="visible-xs" data-ng-include src="'views/includes/search.html'"></div>
<div data-ng-include src="'/views/includes/search.html'"></div>
<h1 translate>Latest Blocks</h1>
<h1>Latest Blocks</h1>
<table class="table table-hover table-striped" style="table-layout: fixed">
<thead>
<tr>
<th translate>Height</th>
<th translate>Age</th>
<th class="text-right"><span class="ellipsis" translate>Transactions</span></th>
<th class="text-right hidden-xs"><span class="ellipsis" translate>Mined by</span></th>
<th class="text-right" translate>Size</th>
<th>Height</th>
<th>Age</th>
<th class="text-right"><span class="ellipsis">Transactions</span></th>
<th class="text-right"><span class="ellipsis">Mined by</span></th>
<th class="text-right">Size</th>
</tr>
</thead>
<tbody>
<tr data-ng-show="!blocks.length"><td colspan="4" translate>Waiting for blocks...</td></tr>
<tr data-ng-show="!blocks.length"><td colspan="4">Waiting for blocks...</td></tr>
<tr class="fader" data-ng-repeat='b in blocks'>
<td>
<a href="block/{{b.hash}}">{{b.height}}</a>
<a href="/block/{{b.hash}}">{{b.height}}</a>
</td>
<td><span class="ellipsis">{{humanSince(b.time)}}</span></td>
<td class="text-right">{{b.txlength}}</td>
<td class="text-right hidden-xs"><a href="{{b.poolInfo.url}}" title="{{b.poolInfo.poolName}}" target="_blank" data-ng-show="b.poolInfo">{{b.poolInfo.poolName}}</a></td>
<td class="text-right">{{b.size}}</td>
<td class="text-right"><a href="{{b.poolInfo.url}}" title="{{b.poolInfo.poolName}}" target="_blank" data-ng-show="b.poolInfo">{{b.poolInfo.poolName}}</a></td>
<td class="text-right">{{b.size}} bytes</td>
</tr>
</tbody>
</table>
<div class="btn-more">
<a href="blocks" class="btn btn-default" translate>See all blocks</a>
<a href="/blocks" class="btn btn-default">See all blocks</a>
</div>
<h2 translate>Latest Transactions</h2>
<h2>Latest Transactions</h2>
<table class="table table-hover table-striped" style="table-layout: fixed;">
<thead>
<tr>
<th>Hash</th>
<th class="text-right" translate>Value Out</th>
<th class="text-right" translate>floData</th>
<th class="text-right">Value Out</th>
</tr>
</thead>
<tbody>
<tr data-ng-show="!txs.length"><td colspan="3" translate>Waiting for transactions...</td></tr>
<tr data-ng-show="!txs.length"><td colspan="3">Waiting for transactions...</td></tr>
<tr class="fader" data-ng-repeat='tx in txs'>
<td>
<a class="ellipsis" href="tx/{{tx.txid}}">{{tx.txid}}</a>
<a class="ellipsis" href="/tx/{{tx.txid}}">{{tx.txid}}</a>
</td>
<td class="text-right"><span class="ellipsis">{{$root.currency.getConvertion(tx.valueOut) || tx.valueOut + ' BTC'}}</span></td>
<td class="text-right"><span class="ellipsis">{{tx.floData}}</span></td>
<td class="text-right"><span class="ellipsis">{{tx.valueOut}} BTC</span></td>
</tr>
</tbody>
</table>
@ -62,15 +60,17 @@
</div>
<div class="col-xs-12 col-md-4 col-gray">
<h2 translate>About</h2>
<p translate><strong>flosight</strong> is an <a href="https://flocha.in/"
target="_blank">open-source Flo blockchain explorer</a> with complete REST and websocket APIs that can be used for writing web wallets and other apps that need more advanced blockchain queries than provided by flod RPC. Check out the <a href="https://github.com/oipwg/flosight-ui" target="_blank">source code</a>.</p>
<p translate><strong>flosight</strong> is still in development, so be sure to report any bugs and provide feedback for improvement at our <a href="https://github.com/oipwg/flosight-ui/issues" target="_blank">github issue tracker</a>.</p>
<h2> About </h2>
<p><strong>insight</strong> is an <a href="http://live.insight.is/" target="_blank">open-source Bitcoin blockchain explorer</a> with complete REST
and websocket APIs that can be used for writing web wallets and other apps
that need more advanced blockchain queries than provided by bitcoind RPC.
Check out the <a href="http://github.com/bitpay/insight" target="_blank">source code</a>.</p>
<p><strong>insight</strong> is still in development, so be sure to report any bugs and provide feedback for improvement at our <a href="https://github.com/bitpay/insight/issues" target="_blank">github issue tracker</a>.</p>
<div id="powered" class="row">
<div class="powered-text">
<small class="text-muted" translate>Powered by</small>
<small class="text-muted">Powered by</small>
</div>
<a href="http://bitcore.io" target="_blank" class="flocore" title="Bitcore"></a>
<a href="http://bitcore.io" target="_blank" class="bitcore" title="Bitcore"></a>
<a href="http://angularjs.org" target="_blank" class="angularjs" title="AngularJS"></a>
<a href="https://code.google.com/p/leveldb/" target="_blank" class="leveldb" title="LevelDB"></a>
<a href="http://nodejs.org" target="_blank" class="nodejs" title="NodeJs"></a>

View File

@ -1,80 +0,0 @@
<section data-ng-controller="VerifyMessageController">
<div class="page-header">
<h1>
<span translate>Verify signed message</span>
</h1>
</div>
<div class="row">
<div class="col-xs-12 col-md-8">
<form class="form-horizontal" role="form">
<div class="form-group">
<label for="verify-message-address" class="col-sm-2 control-label" translate>
Address
</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="verify-message-address"
data-ng-model="message.address">
</div>
</div>
<div class="form-group">
<label for="verify-message-signature" class="col-sm-2 control-label" translate>
Signature
</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="verify-message-signature"
data-ng-model="message.signature">
</div>
</div>
<div class="form-group">
<label for="verify-message-message" class="col-sm-2 control-label" translate>
Message
</label>
<div class="col-sm-10">
<textarea class="form-control" id="verify-message-message"
data-ng-model="message.message" rows="5"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button class="btn btn-default" translate
data-ng-click="verify()" data-ng-disabled="!verifiable()">
Verify
</button>
</div>
</div>
</form>
<div class="row">
<div data-ng-hide="verification.status == 'unverified'"
class="col-sm-offset-2 col-sm-10">
<div ng-show="verification.status == 'loading'" translate>
Loading...
</div>
<div ng-show="verification.status == 'verified' && verification.result"
class="alert alert-success" translate>
The message is verifiably from {{verification.address}}.
</div>
<div ng-show="verification.status == 'verified' && !verification.result"
class="alert alert-danger" translate>
The message failed to verify.
</div>
<div ng-show="verification.status == 'error'"
class="alert alert-warning">
<p translate>An error occured in the verification process.</p>
<p ng-show="error">
<strong translate>Error message:</strong>
{{verification.error}}
</p>
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-4 col-gray">
<p translate>
Flo comes with a way of signing arbitrary messages.
</p>
<p translate>
This form can be used to verify that a message comes from a specific Flo address.
</p>
</div>
</div>
</section>

View File

@ -1 +1 @@
<div class="text-center" translate>Redirecting...</div>
<div class="text-center">Redirecting...</div>

View File

@ -1,28 +1,28 @@
<div data-ng-include src="'views/includes/connection.html'"></div>
<div data-ng-include src="'/views/includes/connection.html'"></div>
<section>
<div class="page-header">
<h1 translate>Application Status</h1>
<h1>
Application Status
</h1>
</div>
<div id="status" class="row">
<div class="col-xs-12 col-md-8">
<h2 translate>Sync Status</h2>
<h2>Sync Status</h2>
<table class="table" data-ng-controller="StatusController" data-ng-init="getSync()">
<tbody>
<tr>
<td translate>Sync Progress</td>
<td>Sync Progress</td>
<td>
<div class="progress">
<div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: {{ sync.syncPercentage}}%">
<span data-ng-show="sync.syncPercentage>0">{{sync.syncPercentage}}%
<span translate>Complete</span>
</span>
<span data-ng-show="sync.syncPercentage>0">{{sync.syncPercentage}}% Complete</span>
</div>
</div>
</td>
</tr>
<tr>
<td translate>Current Sync Status</td>
<td>Current Sync Status</td>
<td class="text-right">
<span data-ng-show="!sync.error">{{sync.status}}</span>
<span class="text-danger" data-ng-show="sync.error">
@ -32,88 +32,129 @@
</td>
</tr>
<tr>
<td translate>Start Date</td>
<td>Start Date</td>
<td class="text-right"><time title="{{sync.startTs | date:'medium'}}">{{humanSince(sync.startTs)}}</time></td>
</tr>
<tr data-ng-show="sync.endTs">
<td translate>Finish Date</td>
<td>Finish Date</td>
<td class="text-right"><time title="{{sync.startTs | date:'medium'}}" >{{humanSince(sync.endTs)}}</time></td>
</tr>
<tr>
<td translate>Initial Block Chain Height</td>
<td>Initial Block Chain Height</td>
<td class="text-right">{{sync.blockChainHeight}}</td>
</tr>
<tr>
<td translate>Synced Blocks</td>
<td>Synced Blocks</td>
<td class="text-right">{{sync.syncedBlocks}}</td>
</tr>
<tr>
<td translate>Skipped Blocks (previously synced)</td>
<td>Skipped Blocks (previously synced)</td>
<td class="text-right">{{sync.skippedBlocks}}</td>
</tr>
<tr>
<td translate>Sync Type</td>
<td>Sync Type</td>
<td class="text-right">{{sync.type}}</td>
</tr>
</tbody>
</table>
<h2 translate>Last Block</h2>
<h2>Last Block</h2>
<table class="table" style="table-layout: fixed" data-ng-controller="StatusController" data-ng-init="getStatus('LastBlockHash')">
<thead data-ng-include src="'views/includes/infoStatus.html'"></thead>
<thead data-ng-include src="'/views/includes/infoStatus.html'"></thead>
<tbody>
<tr>
<td translate>Last Block Hash (Flod)</td>
<td class="text-right ellipsis"><a href="block/{{lastblockhash}}">{{lastblockhash}}</a></td>
<td>Last Block Hash (Bitcoind)</td>
<td class="text-right ellipsis"><a href="/block/{{lastblockhash}}">{{lastblockhash}}</a></td>
</tr>
<tr>
<td translate>Current Blockchain Tip (flosight)</td>
<td class="text-right ellipsis"><a href="block/{{syncTipHash}}">{{syncTipHash}}</a></td>
<td>Current Blockchain Tip (insight)</td>
<td class="text-right ellipsis"><a href="/block/{{syncTipHash}}">{{syncTipHash}}</a></td>
</tr>
</tbody>
</table>
<h2>Transaction Output Set Information</h2>
<div data-ng-controller="StatusController">
<button data-ng-click="txoutLoading=1;getStatus('TxOutSetInfo')" class="btn btn-default" data-ng-show="!txoutsetinfo.height">
Show Transaction Output data
<span data-ng-show="txoutLoading" class="glyphicon glyphicon-refresh icon-rotate"></span>
</button >
<table class="table" data-ng-show="txoutsetinfo.height" style="table-layout: fixed" >
<thead data-ng-include src="'/views/includes/infoStatus.html'"></thead>
<tbody>
<tr>
<td>Height</td>
<td class="text-right"><a href="/block-index/{{txoutsetinfo.height}}">{{txoutsetinfo.height}}</a></td>
</tr>
<tr>
<td>Best Block</td>
<td class="text-right ellipsis"><a href="/block/{{txoutsetinfo.bestblock}}">{{txoutsetinfo.bestblock}}</a></td>
</tr>
<tr>
<td>Transactions</td>
<td class="text-right"> {{txoutsetinfo.transactions}}</td>
</tr>
<tr>
<td>Transaction Outputs</td>
<td class="text-right">{{txoutsetinfo.txouts}}</td>
</tr>
<tr>
<td>Bytes Serialized</td>
<td class="text-right">{{txoutsetinfo.bytes_serialized}}</td>
</tr>
<tr>
<td>Hash Serialized</td>
<td class="text-right ellipsis">{{txoutsetinfo.hash_serialized}}</td>
</tr>
<tr>
<td>Total Amount</td>
<td class="text-right">{{txoutsetinfo.total_amount}}</td>
</tr>
</tbody>
</table>
</div>
</div> <!-- END OF COL-8 -->
<div class="col-xs-12 col-md-4 col-gray">
<h2 translate>Flo node information</h2>
<h2>Bitcoin node information</h2>
<table class="table" data-ng-controller="StatusController" data-ng-init="getStatus('Info')">
<thead data-ng-include src="'views/includes/infoStatus.html'"></thead>
<thead data-ng-include src="'/views/includes/infoStatus.html'"></thead>
<tbody>
<tr>
<td translate>Version</td>
<td>Version</td>
<td class="text-right">{{info.version}}</td>
</tr>
<tr>
<td translate>Protocol version</td>
<td>Protocol version</td>
<td class="text-right">{{info.protocolversion}}</td>
</tr>
<tr>
<td translate>Blocks</td>
<td class="text-right"><a href="block-index/{{info.blocks}}">{{info.blocks}}</a></td>
<td>Blocks</td>
<td class="text-right"><a href="/block-index/{{info.blocks}}">{{info.blocks}}</a></td>
</tr>
<tr>
<td translate>Time Offset</td>
<td>Time Offset</td>
<td class="text-right">{{info.timeoffset}}</td>
</tr>
<tr>
<td translate>Connections to other nodes</td>
<td>Connections to other nodes</td>
<td class="text-right">{{info.connections}}</td>
</tr>
<tr>
<td translate>Mining Difficulty</td>
<td>Mining Difficulty</td>
<td class="text-right">{{info.difficulty}}</td>
</tr>
<tr>
<td translate>Network</td>
<td class="text-right">{{info.network}}</td>
<td>Testnet</td>
<td class="text-right">{{info.testnet}}</td>
</tr>
<tr>
<td translate>Proxy setting</td>
<td>Proxy setting</td>
<td class="text-right">{{info.proxy}}</td>
</tr>
<tr>
<td translate>Info Errors</td>
<td>Info Errors</td>
<td class="text-right">{{info.infoErrors}}</td>
</tr>
</tbody>

View File

@ -1,21 +1,17 @@
<div data-ng-include src="'views/includes/connection.html'"></div>
<div data-ng-include src="'/views/includes/connection.html'"></div>
<section data-ng-controller="transactionsController" data-ng-init="findThis()">
<div class="secondary_navbar hidden-xs hidden-sm" scroll data-ng-class="{'hidden': !secondaryNavbar}" data-ng-show="tx.txid" data-ng-init="hideSNavbar=0">
<div class="container" data-ng-if="!hideSNavbar">
<div class="col-md-6 col-lg-7 text-left">
<h3 translate>Transaction</h3>
<h3>Transaction</h3>
<div class="ellipsis">
<small>{{tx.txid}}</small>
<button class="btn-copy" data-clipboard-text="{{tx.txid}}"></button>
<span class="btn-copy" clip-copy="tx.txid"></span>
</div>
</div>
<div class="col-md-6 col-lg-5 text-right">
<span data-ng-show="tx.confirmations" class="txvalues
txvalues-success">{{tx.confirmations}}
<span translate>Confirmations</span>
</span>
<span data-ng-show="!tx.confirmations"
class="txvalues txvalues-danger" translate>Unconfirmed Transaction!</span>
<span data-ng-show="tx.confirmations" class="txvalues txvalues-success">{{tx.confirmations}} Confirmations</span>
<span data-ng-show="!tx.confirmations" class="txvalues txvalues-danger">Unconfirmed Transaction!</span>
<span class="txvalues txvalues-primary">{{$root.currency.getConvertion(tx.valueOut) || tx.valueOut + ' BTC' }}</span>
</div>
</div>
@ -27,62 +23,55 @@
</div>
</div>
<div data-ng-if="tx.txid">
<h1><span translate>Transaction</span>
<h1>Transaction
<small data-ng-show="from_vin || from_vout">
<span data-ng-show="from_vin" translate>Input</span>
<span data-ng-show="from_vout" translate>Output</span>
<span data-ng-show="from_vin">Input</span>
<span data-ng-show="from_vout">Output</span>
<span>{{v_index}}</span>
</small>
</h1>
<div class="progress progress-striped active" data-ng-if="!tx.txid">
<div class="progress-bar progress-bar-info" style="width: 100%">
<span translate>Loading Transaction Details</span> <span class="loader-gif"></span>
<span>Loading Transaction Details <span class="loader-gif"></span>
</div>
</div>
<div data-ng-if="tx.txid">
<div class="well well-sm ellipsis">
<strong translate>Transaction</strong>
<strong>Transaction</strong>
<span class="txid text-muted">{{tx.txid}}</span>
<button class="btn-copy" data-clipboard-text="{{tx.txid}}"></button>
<span class="btn-copy" clip-copy="tx.txid"></span>
</div>
<h2 translate>Summary</h2>
<h2>Summary</h2>
<table class="table" style="table-layout: fixed">
<tbody>
<tr>
<td><strong translate>Size</strong></td>
<td><strong> Size </strong></td>
<td class="text-muted text-right">{{tx.size}} (bytes)</td>
</tr>
<tr data-ng-show="tx.fees">
<td><strong translate>Fee Rate</strong></td>
<td class="text-muted text-right">{{$root.currency.getConvertion((tx.fees * 1000) / tx.size) + ' per kB' || ((tx.fees * 1000) / tx.size) + 'BTC per kB'}}</td>
</tr>
<tr>
<td><strong translate>Received Time</strong></td>
<td><strong>Received Time </strong></td>
<td data-ng-show="tx.time" class="text-muted text-right">{{tx.time * 1000|date:'medium'}}</td>
<td data-ng-show="!tx.time" class="text-muted text-right">N/A</td>
</tr>
<tr>
<td><strong translate>Mined Time</strong></td>
<td data-ng-show="tx.blocktime" class="text-muted text-right">{{tx.blocktime * 1000|date:'medium'}}</td>
<td data-ng-show="!tx.blocktime" class="text-muted text-right">N/A</td>
<td><strong>Mined Time </strong></td>
<td data-ng-show="tx.time" class="text-muted text-right">{{tx.blocktime * 1000|date:'medium'}}</td>
<td data-ng-show="!tx.time" class="text-muted text-right">N/A</td>
</tr>
<tr>
<td><strong translate>Included in Block</strong></td>
<td data-ng-show="tx.blockhash" class="text-muted text-right">
<div class="ellipsis">
<a href="block/{{tx.blockhash}}">{{tx.blockhash}}</a>
</div>
<td><strong>Included in Block </strong></td>
<td data-ng-show="tx.blockhash" class="text-muted text-right"> <a href="/block/{{tx.blockhash}}">{{tx.blockhash}}</a>
<td data-ng-show="!tx.blockhash" class="text-muted text-right">Unconfirmed</td>
</tr>
<tr data-ng-show="tx.locktime">
<td><strong>LockTime</strong></td>
<td><strong>LockTime </strong></td>
<td class="text-muted text-right">{{tx.locktime}}</td>
</tr>
<tr data-ng-show="tx.isCoinBase">
<td><strong>Coinbase</strong></td>
<td class="text-muted text-right">
<div class="ellipsis">
<button class="btn-copy ng-isolate-scope" data-clipboard-text="{{tx.vin[0].coinbase}}"></button>
<span class="btn-copy ng-isolate-scope" clip-copy="tx.vin[0].coinbase"></span>
<span class="ng-binding">{{tx.vin[0].coinbase}}</span>
</div>
</td>
@ -90,9 +79,10 @@
</tbody>
</table>
</div>
<h2 translate>Details</h2>
<h2>Details</h2>
<div class="block-tx" data-ng-if="tx.txid">
<div data-ng-include src="'views/transaction/tx.html'"></div>
<div data-ng-include src="'/views/transaction/tx.html'"></div>
</div>
</div>
</section>

View File

@ -1,11 +1,9 @@
<div class="alert alert-warning"
data-ng-show="!txs[0].txid && !loading"
translate>There are no transactions involving this address.</div>
<div class="alert alert-warning" data-ng-show="!txs[0].txid && !loading">There are not transactions involving this address.</div>
<div class="block-tx" data-ng-show="txs && txs[0].txid" data-ng-repeat="tx in txs">
<div data-ng-include src="'views/transaction/tx.html'"></div>
<div data-ng-include src="'/views/transaction/tx.html'"></div>
</div>
<div class="progress progress-striped active" data-ng-show="loading">
<div class="progress-bar progress-bar-info" style="width: 100%">
<span translate>Loading Transactions...</span>
<span>Loading Transactions...</span>
</div>
</div>

View File

@ -1,20 +1,20 @@
<div class="line-bot row" data-ng-hide="!tx">
<div class="col-xs-7 col-md-8">
<div class="col-xs-12 col-md-8">
<div class="ellipsis">
<a class="btn-expand" title="Show/Hide items details" data-ng-click="itemsExpanded = !itemsExpanded">
<a class="btn-expand" href="#" title="Show/Hide items details" data-ng-click="itemsExpanded = !itemsExpanded">
<span class="glyphicon glyphicon-plus-sign" data-ng-class="{'glyphicon-minus-sign': itemsExpanded}"></span>
</a>
<a href="tx/{{tx.txid}}">{{tx.txid}}</a>
<button class="btn-copy" data-clipboard-text="{{tx.txid}}"></button>
<a class="txid" href="/tx/{{tx.txid}}">{{tx.txid}}</a>
<span class="btn-copy" clip-copy="tx.txid"></span>
</div>
</div>
<div class="col-xs-5 col-md-4 text-right text-muted">
<div class="col-xs-12 col-md-4 text-right text-muted">
<div data-ng-show="tx.firstSeenTs">
<span translate>first seen at</span>
first seen at
<time>{{tx.firstSeenTs * 1000 | date:'medium'}}</time>
</div>
<div data-ng-show="tx.blocktime && !tx.firstSeenTs">
<span translate>mined</span>
<div data-ng-show="tx.time && !tx.firstSeenTs">
mined at
<time>{{tx.time * 1000 | date:'medium'}}</time>
</div>
</div>
@ -24,7 +24,7 @@
<div class="row" data-ng-if="tx.isCoinBase">
<div class="col-md-12 transaction-vin-vout" data-ng-repeat="vin in tx.vin">
<div class="ellipsis">
<span translate>No Inputs (Newly Generated Coins)</span>
<span>No Inputs (Newly Generated Coins)</span>
</div>
</div>
</div>
@ -39,26 +39,19 @@
</div>
<div class="ellipsis">
<span data-ng-show="vin.notAddr">{{vin.addr}}</span>
<span class="text-muted" title="Current Flo Address" data-ng-show="vin.addr == $root.currentAddr">{{vin.addr}}</span>
<a href="address/{{vin.addr}}" data-ng-show="!vin.notAddr && vin.addr != $root.currentAddr">{{vin.addr}}</a>
<span class="text-muted" title="Current Bitcoin Address" data-ng-show="vin.addr == $root.currentAddr">{{vin.addr}}</span>
<a href="/address/{{vin.addr}}" data-ng-show="!vin.notAddr && vin.addr != $root.currentAddr">{{vin.addr}}</a>
</div>
<div data-ng-show="vin.unconfirmedInput" class="text-danger"> <span class="glyphicon glyphicon-warning-sign"></span> (Input unconfirmed)</div>
<div data-ng-show="vin.dbError" class="text-danger">
<span class="glyphicon glyphicon-warning-sign"></span>
<span translate>Incoherence in levelDB detected:</span> {{vin.dbError}}
</div>
<div data-ng-show="vin.doubleSpentTxID" class="text-danger">
<span class="glyphicon glyphicon-warning-sign"></span>
<span translate>Double spent attempt detected. From tx:</span>
<a href="tx/{{vin.doubleSpentTxID}}">{{vin.doubleSpentTxID}},{{vin.doubleSpentIndex}}</a>
<div data-ng-show="vin.dbError" class="text-danger"> <span class="glyphicon glyphicon-warning-sign"></span> Incoherence in levelDB detected, please resync</div>
<div data-ng-show="vin.doubleSpentTxID" class="text-danger"> <span class="glyphicon glyphicon-warning-sign"></span> Double spent attempt detected. From tx:
<a href="/tx/{{vin.doubleSpentTxID}}">{{vin.doubleSpentTxID}},{{vin.doubleSpentIndex}}</a>
</div>
</div>
</div>
<div class="showmore_collapse text-left" data-ng-show="tx.vinSimple.length > 5" data-ng-class="{ 'hidden': itemsExpanded}">
<button type="button" class="btn btn-info btn-sm" ng-hide="sizeInNoExpanded != tx.vinSimple.length" ng-click="currentInNoExpanded=0; sizeInNoExpanded=5"><i class="glyphicon glyphicon-chevron-up"></i>
<span translate>Show less</span></button>
<button type="button" class="btn btn-info btn-sm" ng-hide="currentInNoExpanded >= tx.vinSimple.length/sizeInNoExpanded - 1" ng-click="currentInNoExpanded=0; sizeInNoExpanded=tx.vinSimple.length"><i class="glyphicon glyphicon-chevron-down"></i>
<span translate>Show more</span></button>
<button type="button" class="btn btn-info btn-sm" ng-hide="sizeInNoExpanded != tx.vinSimple.length" ng-click="currentInNoExpanded=0; sizeInNoExpanded=5"><i class="glyphicon glyphicon-chevron-up"></i> Show less</button>
<button type="button" class="btn btn-info btn-sm" ng-hide="currentInNoExpanded >= tx.vinSimple.length/sizeInNoExpanded - 1" ng-click="currentInNoExpanded=0; sizeInNoExpanded=tx.vinSimple.length"><i class="glyphicon glyphicon-chevron-down"></i> Show more</button>
</div>
</div>
@ -71,45 +64,39 @@
{{$root.currency.getConvertion(vin.value) || vin.value + ' BTC'}}
</div>
<div class="ellipsis">
<a class="glyphicon glyphicon-chevron-right" href="tx/{{vin.txid}}/>/{{vin.vout}}" title="Outpoint: {{vin.txid}},{{vin.vout}}"></a>
<a class="glyphicon glyphicon-chevron-right" href="/tx/{{vin.txid}}/>/{{vin.vout}}" title="Outpoint: {{vin.txid}},{{vin.vout}}"></a>
<span data-ng-show="vin.notAddr">{{vin.addr}}</span>
<a href="address/{{vin.addr}}" data-ng-show="!vin.notAddr">{{vin.addr}}</a>
<a href="/address/{{vin.addr}}" data-ng-show="!vin.notAddr">{{vin.addr}}</a>
</div>
<div data-ng-show="vin.unconfirmedInput" class="text-danger">
<span class="glyphicon glyphicon-warning-sign"></span>
<span translate>(Input unconfirmed)</span>
<span class="glyphicon glyphicon-warning-sign"></span> (Input unconfirmed)
</div>
<div data-ng-show="vin.dbError" class="text-danger">
<span class="glyphicon glyphicon-warning-sign"></span>
<span translate>Incoherence in levelDB detected:</span> {{vin.dbError}}
Incoherence in levelDB detected, please resync
</div>
<div data-ng-show="vin.doubleSpentTxID" class="text-danger">
<span class="glyphicon glyphicon-warning-sign"></span>
<span translate>Double spent attempt detected. From tx:</span>
<a href="tx/{{<vin class=""></vin>doubleSpentTxID}}">{{vin.doubleSpentTxID}},{{vin.doubleSpentIndex}}</a>
Double spent attempt detected. From tx:
<a href="/tx/{{<vin class=""></vin>doubleSpentTxID}}">{{vin.doubleSpentTxID}},{{vin.doubleSpentIndex}}</a>
</div>
</div> <!-- END OF PANEL BODY -->
</div> <!-- END OF PANEL-DEFAULT -->
<div class="small" style="margin-left:0.7em; word-wrap:break-word;" data-ng-class="{true: 'v_highlight', false: ''}[from_vin == true && v_index == vin.n]" >
<p><strong>Confirmations:</strong> {{vin.confirmations}}</p>
<p><strong>scriptSig</strong></p>
<div data-ng-repeat="item in vin.scriptSig.asm | split:' '" class="">
<p class="col-md-11 ellipsis text-muted">{{item}}</p>
<button class="btn-copy" data-clipboard-text="{{item}}"></button>
<p class="btn-copy" clip-copy="item"></p>
</div>
</div>
</div>
<div class="text-left">
<button type="button" class="btn btn-default btn-sm" data-ng-show="(from_vin) && tx.vin.length > 1" data-ng-disabled="fromVinCollapsed" data-ng-click="currentInExpanded=0; sizeInExpanded=tx.vin.length;fromVinCollapsed=1">
<span translate>Show input</span> #{{ v_index }}</button>
<button type="button" class="btn btn-default btn-sm" data-ng-show="(from_vin) && tx.vin.length > 1" data-ng-disabled="!fromVinCollapsed" data-ng-click="currentInExpanded=0; sizeInExpanded=tx.vin.length;fromVinCollapsed=0">
<span translate>Show all</span></button>
<button type="button" class="btn btn-default btn-sm" data-ng-show="(from_vin) && tx.vin.length > 1" data-ng-disabled="fromVinCollapsed" data-ng-click="currentInExpanded=0; sizeInExpanded=tx.vin.length;fromVinCollapsed=1">Show input {{ v_index }}</button>
<button type="button" class="btn btn-default btn-sm" data-ng-show="(from_vin) && tx.vin.length > 1" data-ng-disabled="!fromVinCollapsed" data-ng-click="currentInExpanded=0; sizeInExpanded=tx.vin.length;fromVinCollapsed=0">Show all</button>
</div>
<div class="showmore_collapse text-left" data-ng-show="tx.vin.length > 5 && !fromVinCollapsed" data-ng-class="{ 'hidden': !itemsExpanded}">
<button type="button" class="btn btn-info btn-sm" ng-hide="sizeInExpanded != tx.vin.length" ng-click="currentInExpanded=0; sizeInExpanded=5"><i class="glyphicon glyphicon-chevron-up"></i>
<span translate>Show less</span></button>
<button type="button" class="btn btn-info btn-sm" ng-hide="currentInExpanded >= tx.vin.length/sizeInExpanded - 1" ng-click="currentInExpanded=0; sizeInExpanded=tx.vin.length"><i class="glyphicon glyphicon-chevron-down"></i>
<span translate>Show more</span></button>
<button type="button" class="btn btn-info btn-sm" ng-hide="sizeInExpanded != tx.vin.length" ng-click="currentInExpanded=0; sizeInExpanded=5"><i class="glyphicon glyphicon-chevron-up"></i> Show less</button>
<button type="button" class="btn btn-info btn-sm" ng-hide="currentInExpanded >= tx.vin.length/sizeInExpanded - 1" ng-click="currentInExpanded=0; sizeInExpanded=tx.vin.length"><i class="glyphicon glyphicon-chevron-down"></i> Show more</button>
</div>
</div>
</div>
@ -137,17 +124,15 @@
<div class="ellipsis">
<span data-ng-show="vout.notAddr">{{vout.addr}}</span>
<span class="text-muted" title="Current Flo Address" data-ng-show="address == $root.currentAddr" data-ng-repeat="address in vout.addr.split(',')">{{vout.addr}}</span>
<a href="address/{{address}}" data-ng-show="!vout.notAddr && address != $root.currentAddr" data-ng-repeat="address in vout.addr.split(',')">{{address}}</a>
<span class="text-muted" title="Current Bitcoin Address" data-ng-show="address == $root.currentAddr" data-ng-repeat="address in vout.addr.split(',')">{{vout.addr}}</span>
<a href="/address/{{address}}" data-ng-show="!vout.notAddr && address != $root.currentAddr" data-ng-repeat="address in vout.addr.split(',')">{{address}}</a>
</div>
</div>
</div>
</div>
<div class="showmore_collapse text-left" data-ng-show="tx.voutSimple.length > 5" data-ng-class="{ 'hidden': itemsExpanded}">
<button type="button" class="btn btn-info btn-sm" ng-hide="sizeOutNoExpanded != tx.voutSimple.length" ng-click="currentOutNoExpanded=0; sizeOutNoExpanded=5"><i class="glyphicon glyphicon-chevron-up"></i>
<span translate>Show less</span></button>
<button type="button" class="btn btn-info btn-sm" ng-hide="currentOutNoExpanded >= tx.voutSimple.length/sizeOutNoExpanded - 1" ng-click="currentOutNoExpanded=0; sizeOutNoExpanded=tx.voutSimple.length"><i class="glyphicon glyphicon-chevron-down"></i>
<span translate>Show more</span></button>
<button type="button" class="btn btn-info btn-sm" ng-hide="sizeOutNoExpanded != tx.voutSimple.length" ng-click="currentOutNoExpanded=0; sizeOutNoExpanded=5"><i class="glyphicon glyphicon-chevron-up"></i> Show less</button>
<button type="button" class="btn btn-info btn-sm" ng-hide="currentOutNoExpanded >= tx.voutSimple.length/sizeOutNoExpanded - 1" ng-click="currentOutNoExpanded=0; sizeOutNoExpanded=tx.voutSimple.length"><i class="glyphicon glyphicon-chevron-down"></i> Show more</button>
</div>
</div>
@ -159,28 +144,28 @@
<div class="pull-right btc-value">
<span>{{$root.currency.getConvertion(vout.value) || vout.value + ' BTC'}}
<span class="text-success" data-ng-show="!vout.spentTxId" tooltip="Output is unspent" tooltip-placement="left">(U)</span>
<a class="glyphicon glyphicon-chevron-right" data-ng-show="vout.spentTxId" href="tx/{{vout.spentTxId}}/</{{vout.spentIndex}}" title="Spent at: {{vout.spentTxId}},{{vout.spentIndex}}"></a>
<a class="glyphicon glyphicon-chevron-right" data-ng-show="vout.spentTxId" href="/tx/{{vout.spentTxId}}/</{{vout.spentIndex}}" title="Spent at: {{vout.spentTxId}},{{vout.spentIndex}}"></a>
</span>
</div>
<div class="ellipsis">
<a href="address/{{address}}" data-ng-repeat="address in vout.scriptPubKey.addresses">{{address}}</a>
<a href="/address/{{address}}" data-ng-repeat="address in vout.scriptPubKey.addresses">{{address}}</a>
</div>
</div>
</div>
<div style="padding-left: 0.7em; padding-bottom: 2em; word-wrap:break-word" data-ng-class="{true: 'v_highlight', false: ''}[from_vout == true && v_index == vout.n]">
<p class="small">
<strong translate>Type</strong>
<strong>Type</strong>
<span class="text-muted">{{vout.scriptPubKey.type}}</span>
</p>
<div class="small">
<p><strong>scriptPubKey</strong></p>
<span class="col-md-11 text-muted ellipsis">{{vout.scriptPubKey.asm}}</span>
<button class="btn-copy col-md-1" data-clipboard-text="{{vout.scriptPubKey.asm}}"></button>
<span class="btn-copy col-md-1" clip-copy="vout.scriptPubKey.asm"></span>
</div>
</div>
</div>
<div class="text-right">
<button type="button" class="btn btn-default btn-sm" data-ng-show="(from_vout) && tx.vout.length > 1" data-ng-disabled="fromVoutCollapsed" data-ng-click="currentOutExpanded=0; sizeOutExpanded=tx.vout.length;fromVoutCollapsed=1">Show output #{{ v_index }}</button>
<button type="button" class="btn btn-default btn-sm" data-ng-show="(from_vout) && tx.vout.length > 1" data-ng-disabled="fromVoutCollapsed" data-ng-click="currentOutExpanded=0; sizeOutExpanded=tx.vout.length;fromVoutCollapsed=1">Show output {{ v_index }}</button>
<button type="button" class="btn btn-default btn-sm" data-ng-show="(from_vout) && tx.vout.length > 1" data-ng-disabled="!fromVoutCollapsed" data-ng-click="currentOutExpanded=0; sizeOutExpanded=tx.vout.length;fromVoutCollapsed=0">Show all</button>
</div>
<div class="showmore_collapse text-left" data-ng-show="tx.vout.length > 5 && !fromVoutCollapsed" data-ng-class="{ 'hidden': !itemsExpanded}">
@ -192,29 +177,18 @@
</div>
</div>
<div class="well well-sm bgwhite ellipsis" data-ng-if="itemsExpanded && !block.hash && tx.blockhash">
<strong translate>Included in Block</strong> <a class="text-muted" href="block/{{tx.blockhash}}">{{tx.blockhash}}</a>
<button class="btn-copy" data-clipboard-text="{{tx.blockhash}}"></button>
<div class="well well-sm bgwhite ellipsis" data-ng-if="itemsExpanded && !block.hash">
<strong>Included in Block</strong> <a class="text-muted" href="/block/{{tx.blockhash}}">{{tx.blockhash}}</a>
<span class="btn-copy" clip-copy="tx.blockhash"></span>
</div>
<div class="line-top row" data-ng-hide="!tx">
<div class="col-xs-6 col-sm-4 col-md-4">
<span data-ng-show="!tx.isCoinBase && !isNaN(parseFloat(tx.fees))"
class="txvalues txvalues-default"><span translate>Fee</span>: {{$root.currency.getConvertion(tx.fees) || tx.fees + 'FLO'}} </span>
<div class="col-xs-12 col-sm-4 col-md-4">
<span data-ng-show="!tx.isCoinBase && !isNaN(parseFloat(tx.fees))" class="txvalues txvalues-default">Fees: {{$root.currency.getConvertion(tx.fees) || tx.fees + 'BTC'}} </span>
</div>
<div class="col-xs-6 col-sm-8 col-md-8 text-right">
<span data-ng-show="tx.confirmations" class="txvalues
txvalues-success">{{tx.confirmations}} <span translate>Confirmations</span></span>
<span data-ng-show="!tx.confirmations" class="txvalues txvalues-danger" translate>Unconfirmed Transaction!</span>
<span class="txvalues txvalues-primary">{{$root.currency.getConvertion(tx.valueOut) || tx.valueOut + ' FLO' }}</span>
</div>
</div>
<div class="line-top row" style="margin-top: 15px;" data-ng-hide="tx.floData === ''">
<div class="col-12">
<div class="well well-sm" style="margin: 0px 10px">
<strong>floData: </strong>
<span class="text-muted ng-binding" style="word-break: break-all">{{tx.floData}}</span>
<button class="btn-copy" data-clipboard-text="{{tx.floData}}"></button>
</div>
<div class="col-xs-12 col-sm-8 col-md-8 text-right">
<span data-ng-show="tx.confirmations" class="txvalues txvalues-success">{{tx.confirmations}} Confirmations</span>
<span data-ng-show="!tx.confirmations" class="txvalues txvalues-danger">Unconfirmed Transaction!</span>
<span class="txvalues txvalues-primary">{{$root.currency.getConvertion(tx.valueOut) || tx.valueOut + ' BTC' }}</span>
</div>
</div>

View File

@ -1,54 +0,0 @@
<section data-ng-controller="SendRawTransactionController">
<div class="page-header">
<h1>
<span translate>Broadcast Raw Transaction</span>
</h1>
</div>
<div class="row">
<div class="col-xs-12 col-md-8">
<form name="txForm" class="form-horizontal" role="form" novalidate>
<div class="form-group"
ng-class="{ 'has-error': txForm.rawData.$error.pattern }">
<label for="transaction-rawdata" class="col-sm-2 control-label" translate>
Raw transaction data
</label>
<div class="col-sm-10">
<textarea class="form-control" id="transaction-rawdata" name="rawData"
data-ng-model="transaction" data-ng-pattern="/^[0-9A-Fa-f]+$/"
rows="10" required></textarea>
<span class="help-block" ng-show="txForm.rawData.$error.pattern" translate>
Raw transaction data must be a valid hexadecimal string.
</span>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button class="btn btn-default" translate
data-ng-click="send()" data-ng-disabled="!txForm.$valid">
Send transaction
</button>
</div>
</div>
</form>
<div class="row">
<div data-ng-hide="status == 'ready'"
class="col-sm-offset-2 col-sm-10">
<div ng-show="status == 'loading'" translate>
Loading...
</div>
<div ng-show="status == 'sent'" class="alert alert-success" translate>
Transaction succesfully broadcast.<br>Transaction id: {{txid}}
</div>
<div ng-show="status == 'error'" class="alert alert-warning" translate>
An error occured:<br>{{error}}
</div>
</div>
</div>
</div>
<div class="col-xs-12 col-md-4 col-gray">
<p translate>
This form can be used to broadcast a raw transaction in hex format over the Flo network.
</p>
</div>
</div>
</section>

View File

@ -1,4 +0,0 @@
describe('should test', function() {
it('test', function() {
});
});