Merge branch 'master' of https://gitlab.com/epic-tech/explorer2.epic.tech-angular8
This commit is contained in:
commit
00ad6c27c3
@ -6,14 +6,15 @@
|
|||||||
"start": "ng serve",
|
"start": "ng serve",
|
||||||
"build": "ng build",
|
"build": "ng build",
|
||||||
"lint": "ng lint",
|
"lint": "ng lint",
|
||||||
|
"copyToLive":"rm -rf live && cp -rf dist live",
|
||||||
"build:client-and-server-bundles": "ng build --prod && ng run explorer2-epic:server:production",
|
"build:client-and-server-bundles": "ng build --prod && ng run explorer2-epic:server:production",
|
||||||
"build:prerender": "npm run build:client-and-server-bundles && npm run compile:server && npm run generate:prerender",
|
"build:prerender": "npm run build:client-and-server-bundles && npm run compile:server && npm run generate:prerender",
|
||||||
"build:ssr": "npm run build:client-and-server-bundles && npm run compile:server && npm run move:build",
|
"build:ssr": "npm run build:client-and-server-bundles && npm run compile:server && npm run move:build && npm run copyToLive",
|
||||||
"compile:server": "tsc -p server.tsconfig.json",
|
"compile:server": "tsc -p server.tsconfig.json",
|
||||||
"move:build": "(cp -r ./server/i18n/ dist/server)",
|
"move:build": "(cp -r ./server/i18n/ dist/server)",
|
||||||
"generate:prerender": "cd dist && node prerender",
|
"generate:prerender": "cd dist && node prerender",
|
||||||
"serve:prerender": "cd dist/browser && http-server",
|
"serve:prerender": "cd dist/browser && http-server",
|
||||||
"serve:ssr": "node dist/server"
|
"serve:ssr": "node live/server"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -63,7 +63,7 @@ enableProdMode();
|
|||||||
const app = express();
|
const app = express();
|
||||||
|
|
||||||
const PORT = process.env.PORT || 4000;
|
const PORT = process.env.PORT || 4000;
|
||||||
const DIST_FOLDER = join(process.cwd(), "dist");
|
const DIST_FOLDER = join(process.cwd(), "live");
|
||||||
|
|
||||||
const controllers = [
|
const controllers = [
|
||||||
new BlockchainBlockController(),
|
new BlockchainBlockController(),
|
||||||
|
@ -46,6 +46,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div #block></div>
|
<div #block></div>
|
||||||
|
<!-- <ng-container #block></ng-container> -->
|
||||||
<div [ngClass]="{mobile_table : true, hght_40: item.id != clickValue }"
|
<div [ngClass]="{mobile_table : true, hght_40: item.id != clickValue }"
|
||||||
id="hash_{{hashvalue.blockchain_block_height}}" #item *ngFor="let hashvalue of hashvalues">
|
id="hash_{{hashvalue.blockchain_block_height}}" #item *ngFor="let hashvalue of hashvalues">
|
||||||
|
|
||||||
|
@ -64,10 +64,11 @@ export class LatestblocksComponent implements OnInit {
|
|||||||
this.blockdetails = response;
|
this.blockdetails = response;
|
||||||
//console.log(this.blockdetails);
|
//console.log(this.blockdetails);
|
||||||
if (this.lastblock != this.blockdetails.block_height) {
|
if (this.lastblock != this.blockdetails.block_height) {
|
||||||
//console.log('Create');
|
console.log('Create');
|
||||||
this.createBlock();
|
this.createBlock();
|
||||||
}
|
}
|
||||||
this.lastblock = this.blockdetails.block_height;
|
this.lastblock = this.blockdetails.block_height;
|
||||||
|
console.log(this.lastblock);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,7 +76,7 @@ export class LatestblocksComponent implements OnInit {
|
|||||||
const blockFactory = this.resolver.resolveComponentFactory(
|
const blockFactory = this.resolver.resolveComponentFactory(
|
||||||
BlockAppendComponent,
|
BlockAppendComponent,
|
||||||
);
|
);
|
||||||
const block = this.block.createComponent(blockFactory);
|
const block = this.block.createComponent(blockFactory, 0);
|
||||||
this.blockAppend = {};
|
this.blockAppend = {};
|
||||||
this.blockAppend['blockchain_block_hash'] = this.blockdetails.hash;
|
this.blockAppend['blockchain_block_hash'] = this.blockdetails.hash;
|
||||||
this.blockAppend[
|
this.blockAppend[
|
||||||
|
Loading…
Reference in New Issue
Block a user