Skip to content

Commit

Permalink
Block explorer cleanup (#20)
Browse files Browse the repository at this point in the history
* Block explorer cleanup: comment out unused pages, add CID to block detail page, partially fix tx detail page and block detail page

* change logo

* #21 fix 404 error

* Hide search bar #22
  • Loading branch information
ramilexe authored Jun 4, 2021
1 parent c269cc4 commit 6a2959f
Show file tree
Hide file tree
Showing 14 changed files with 58,771 additions and 3,715 deletions.
3 changes: 2 additions & 1 deletion newclient/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@ RUN yarn build
# nginx container
FROM nginx:1.19.10-alpine

COPY --from=builder /app/dist /usr/share/nginx/html
COPY --from=builder /app/dist /var/www/html
COPY entrypoint.sh /usr/share/nginx/
COPY ./nginx/nginx.conf /etc/nginx/conf.d/default.conf

ENTRYPOINT ["/usr/share/nginx/entrypoint.sh"]
EXPOSE 80
Expand Down
20 changes: 1 addition & 19 deletions newclient/nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:8m max_size=3000m inactive=600m;

gzip_comp_level 6;
gzip_vary on;
gzip_min_length 1000;
gzip_proxied any;
gzip_types text/plain text/css application/json application/x-javascript application/xml application/xml+rss text/javascript;
gzip_buffers 16 8k;

server {

listen {{ .Env.PORT }} default_server;
listen [::]:{{ .Env.PORT }} default_server;
server_name _;
listen 80;

root /var/www/html;
index index.html;
Expand All @@ -20,11 +9,4 @@ server {
try_files $uri /index.html;
}

location /ping {
return 204;
}

location ~* .(jpg|jpeg|png|gif|ico|css|js)$ {
expires 1d;
}
}
4 changes: 2 additions & 2 deletions newclient/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cidt",
"version": "1.0.0",
"description": "CIDT: Ethereum networks explorer",
"description": "IPLD Block Explorer",
"author": "EthVM Team",
"private": true,
"scripts": {
Expand All @@ -15,7 +15,7 @@
"lint:fix": "vue-cli-service lint --fix",
"apollo": "apollo",
"apollo:schema": "apollo service:download ./src/apollo/schemas/api.json",
"apollo:codegen": "yarn apollo:schema && apollo client:codegen --target=typescript --globalTypesFile=./src/apollo/global/globalTypes.ts apolloTypes"
"apollo:codegen": "apollo client:codegen --target=typescript --globalTypesFile=./src/apollo/global/globalTypes.ts apolloTypes"
},
"dependencies": {
"@babel/core": "^7.4.5",
Expand Down
2 changes: 1 addition & 1 deletion newclient/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>CIDT: Ethereum Blockchain Explorer</title>
<title>IPLD Block Explorer</title>

<link rel="icon" sizes="192x192" href="./logo-black-compact.png" />
<link rel="shortcut icon" type="image/png" href="./logo-black-compact.png" />
Expand Down
Loading

0 comments on commit 6a2959f

Please sign in to comment.