Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
mroz22 committed Jun 3, 2020
1 parent b3b80e8 commit 2d4ffc8
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 42 deletions.
4 changes: 2 additions & 2 deletions public/asset-manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"main.css": "static/css/main.175d1103.css",
"main.css.map": "static/css/main.175d1103.css.map",
"main.js": "static/js/main.1de387d9.js",
"main.js.map": "static/js/main.1de387d9.js.map",
"main.js": "static/js/main.e912c667.js",
"main.js.map": "static/js/main.e912c667.js.map",
"static/media/brand-icons.eot": "static/media/brand-icons.13db00b7.eot",
"static/media/brand-icons.svg": "static/media/brand-icons.a1a749e8.svg",
"static/media/brand-icons.ttf": "static/media/brand-icons.c5ebe0b3.ttf",
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="shortcut icon" href="/favicon.ico"><title>TRACK SUITE</title><link href="/static/css/main.175d1103.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="/static/js/main.1de387d9.js"></script></body></html>
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><meta name="theme-color" content="#000000"><link rel="shortcut icon" href="/favicon.ico"><title>TRACK SUITE</title><link href="/static/css/main.175d1103.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script type="text/javascript" src="/static/js/main.e912c667.js"></script></body></html>
2 changes: 1 addition & 1 deletion public/service-worker.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions public/static/js/main.1de387d9.js

This file was deleted.

1 change: 0 additions & 1 deletion public/static/js/main.1de387d9.js.map

This file was deleted.

2 changes: 2 additions & 0 deletions public/static/js/main.e912c667.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions public/static/js/main.e912c667.js.map

Large diffs are not rendered by default.

7 changes: 2 additions & 5 deletions react-src/src/components/Table/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useState } from 'react';
import styled from 'styled-components';
import { Select, Button, Divider, Header, Grid } from 'semantic-ui-react'
import { Select, Divider, Header, Grid } from 'semantic-ui-react'

const DIMENSION_UNIT = 25;
const DIMENSION_RATIO_HORIZONTAL = 3;
Expand All @@ -10,7 +10,7 @@ const Wrapper = styled.div`
display: flex;
flex-direction: column;
margin-top: 20px;
`
`;

const Cell = styled.div`
display: flex;
Expand Down Expand Up @@ -156,9 +156,6 @@ const Table = ({data, dropDataFn}) => {
<Select onChange={(e, { value }) => setStage(value)} placeholder='Select stage' options={stages.map(b => ({key: b, value: b, text: b}))} />
</Grid.Column>
<Grid.Column />
<Grid.Column stretched>
<Button negative onClick={() => dropDataFn()}>Drop data</Button>
</Grid.Column>
</Grid>

<Divider horizontal>
Expand Down
30 changes: 0 additions & 30 deletions routes/test_records.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,34 +50,4 @@ router.post('/', postLimiter, (req, res) => {
});
});

// DELETE
// router.delete('/:id', (req, res) => {
// TestRecord.findByIdAndRemove(req.params.id)
// .then((result) => {
// res.json({
// success: true,
// msg: `It has been deleted.`,
// result,
// });
// })
// .catch((err) => {
// res.status(404).json({ success: false, msg: 'Nothing to delete.' });
// });
// });

router.delete('/', (req, res) => {
console.log('delete');
TestRecord.deleteMany({})
.then((result) => {
res.json({
success: true,
msg: `It has been deleted.`,
result,
});
})
.catch((err) => {
res.status(404).json({ success: false, msg: 'Nothing to delete.' });
});
});

module.exports = router;

0 comments on commit 2d4ffc8

Please sign in to comment.