This commit is contained in:
Spencer Ofwiti 2021-02-09 11:32:37 +03:00
parent 94d2976e6c
commit 8dc0eb24d8
5 changed files with 10 additions and 13 deletions

View File

@ -74,8 +74,7 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "cic-staff-client:build",
"disableHostCheck": true
"browserTarget": "cic-staff-client:build"
},
"configurations": {
"production": {

View File

@ -16,7 +16,7 @@ export class AppComponent implements OnInit {
private transactionService: TransactionService,
private blockSyncService: BlockSyncService
) {
this.blockSyncService.blockSync();
// this.blockSyncService.blockSync();
}
ngOnInit(): void {
@ -29,13 +29,13 @@ export class AppComponent implements OnInit {
const sidebar = document.getElementById('sidebar');
const content = document.getElementById('content');
const sidebarCollapse = document.getElementById('sidebarCollapse');
sidebarCollapse.classList.remove('active');
sidebarCollapse?.classList.remove('active');
if (e.matches) {
sidebar.classList.add('active');
content.classList.add('active');
sidebar?.classList.add('active');
content?.classList.add('active');
} else {
sidebar.classList.remove('active');
content.classList.remove('active');
sidebar?.classList.remove('active');
content?.classList.remove('active');
}
}

View File

@ -2,7 +2,7 @@ export const environment = {
production: true,
cicCacheUrl: 'http://localhost:5555',
cicScriptsUrl: 'http://localhost:9999',
web3Provider: 'ws://localhost:63545',
web3Provider: 'http://localhost:63545',
cicUssdUrl: 'http://localhost:63315',
cicEthUrl: 'http://localhost:63314',
contractAddress: '0x35Ef60C4624Eaf6AeEBeBec9Ddd3CBA6b24C4b17',

View File

@ -6,7 +6,7 @@ export const environment = {
production: false,
cicCacheUrl: 'http://localhost:5555',
cicScriptsUrl: 'http://localhost:9999',
web3Provider: 'ws://localhost:63545',
web3Provider: 'http://localhost:63545',
cicUssdUrl: 'http://localhost:63315',
cicEthUrl: 'http://localhost:63314',
contractAddress: '0x35Ef60C4624Eaf6AeEBeBec9Ddd3CBA6b24C4b17',

View File

@ -15,9 +15,7 @@
</head>
<body class="mat-typography">
<app-root></app-root>
<!-- <script async src="assets/js/block-sync/web3.min.js"></script>-->
<!-- <script async src="assets/js/block-sync/cic-client.web.js"></script>-->
<script async src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script async src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script async src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.min.js" integrity="sha384-w1Q4orYjBQndcko6MimVbzY0tgp4pWB4lZ7lr30WKz0vr/aWKhXdBNmNb5D92v7s" crossorigin="anonymous"></script>
</body>