diff --git a/.dockerignore b/.dockerignore index ac82f884..6c87ade9 100644 --- a/.dockerignore +++ b/.dockerignore @@ -6,3 +6,7 @@ test scripts docs firefox +public +views +webpack +frontend diff --git a/.gitignore b/.gitignore index 4fa2078f..2aa3a824 100644 --- a/.gitignore +++ b/.gitignore @@ -1,11 +1,6 @@ .DS_Store +dist node_modules -public/upload.js -public/download.js -public/version.json -public/l20n.min.js -public/polyfill.min.js static/* !static/info.txt test/frontend/bundle.js -public/main.css diff --git a/circle.yml b/circle.yml index 574e22e4..af534362 100644 --- a/circle.yml +++ b/circle.yml @@ -16,7 +16,6 @@ deployment: latest: branch: master commands: - - npm run build - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS - docker build -t mozilla/send:latest . - docker push mozilla/send:latest @@ -24,14 +23,13 @@ deployment: tag: /.*/ owner: mozilla commands: - - npm run build - docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS - docker build -t mozilla/send:$CIRCLE_TAG . - docker push mozilla/send:$CIRCLE_TAG test: override: - - npm run build:version + - npm run build - npm run lint - npm test - nsp check diff --git a/docker-compose.yml b/docker-compose.yml index f72bf161..37fb258e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,5 +8,6 @@ services: - "1443:1443" environment: - REDIS_HOST=redis + - NODE_ENV=production redis: image: redis:alpine diff --git a/frontend/src/fileList.js b/frontend/src/fileList.js index 74b0240a..436e7a5a 100644 --- a/frontend/src/fileList.js +++ b/frontend/src/fileList.js @@ -3,6 +3,8 @@ import Storage from './storage'; import * as metrics from './metrics'; import { allowedCopy, copyToClipboard, ONE_DAY_IN_MS } from './utils'; import bel from 'bel'; +import copyImg from '../../public/resources/copy-16.svg'; +import closeImg from '../../public/resources/close-16.svg'; const HOUR = 1000 * 60 * 60; const storage = new Storage(); @@ -58,13 +60,13 @@ function addFile(file) { ${file.name} - + ${timeLeft(countdown)} - +