diff --git a/.travis.yml b/.travis.yml index dbf4d2a..3d871fc 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,7 @@ language: node_js sudo: required dist: trusty node_js: '8' +before_install: npm install -g grunt-cli install: - npm install - npm run dist diff --git a/Dockerfile b/Dockerfile index 36d6e0c..787c414 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,10 @@ -FROM mhart/alpine-node:latest +FROM node -ADD . /eth-netstats -WORKDIR /eth-netstats - -RUN npm install && npm install -g grunt-cli && grunt +RUN git clone https://github.com/goerli/netstats-server /netstats-server +WORKDIR /netstats-server +RUN npm install +RUN npm install -g grunt-cli +RUN grunt EXPOSE 3000 CMD ["npm", "start"] diff --git a/README.md b/README.md index 2dfe31a..09c96c7 100644 --- a/README.md +++ b/README.md @@ -22,14 +22,14 @@ npm install sudo npm install -g grunt-cli ``` -##Build the resources +## Build the resources In order to build the static files you have to run grunt tasks which will generate dist directories containing the js and css files, fonts and images. ```bash grunt ``` -##Run +## Run ```bash WS_SECRET="asdf" npm start diff --git a/package.json b/package.json index a53eea5..bc29067 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "netstats-server", - "description": "POA Network Intelligence dashboard", + "description": "Görli Network Dashboard", "version": "0.1.0", "private": true, "engines": { diff --git a/src/css/style.css b/src/css/style.css index 47e6c16..c14850d 100644 --- a/src/css/style.css +++ b/src/css/style.css @@ -546,7 +546,6 @@ svg .y.axis .tick:first-child text { } } - @media (max-width: 600px) { .blocks-holder div.small-title-miner { font-size: 10px; diff --git a/src/views/layout.jade b/src/views/layout.jade index c16f17a..ccb7cfe 100644 --- a/src/views/layout.jade +++ b/src/views/layout.jade @@ -3,18 +3,12 @@ doctype html html(ng-app="netStatsApp") head meta(name="viewport", content="width=device-width, initial-scale=1.0, maximum-scale=1.0") - title MIX Network Stats + title Görli Network Status style(type="text/css") [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak { display: none !important; } link(rel='stylesheet', href='/css/netstats.min.css') - link(rel='shortcut icon', href='/mix-logo-thick.svg', sizes='any' type='image/svg+xml') - link(rel='shortcut icon', href='/mix-logo-thick-1024.png', sizes='1024x1024' type='image/png') - link(rel='shortcut icon', href='/mix-logo-thick-512.png', sizes='512x512' type='image/png') - link(rel='shortcut icon', href='/mix-logo-thick-256.png', sizes='256x256' type='image/png') - link(rel='shortcut icon', href='/mix-logo-thick-128.png', sizes='128x128' type='image/png') - link(rel='shortcut icon', href='/mix-logo-thick-64.png', sizes='64x64' type='image/png') meta(name='robots', content='index,follow') meta(name='googlebot', content='index,follow') + link(rel='shortcut icon', type="image/x-icon", href="/favicon.ico") body block content - script(src="/js/netstats.min.js")