This commit is contained in:
19
.drone.yml
19
.drone.yml
@@ -7,3 +7,22 @@ server:
|
|||||||
user: pi
|
user: pi
|
||||||
password:
|
password:
|
||||||
from_secret: password
|
from_secret: password
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: pull
|
||||||
|
commands:
|
||||||
|
- cd /home/pi/warframe-center
|
||||||
|
- git fetch --all
|
||||||
|
- git reset --hard origin/monorepo
|
||||||
|
- name: install
|
||||||
|
commands:
|
||||||
|
- cd /home/pi/warframe-center
|
||||||
|
- npm install
|
||||||
|
- name: build
|
||||||
|
commands:
|
||||||
|
- cd /home/pi/warframe-center/app
|
||||||
|
- npm run build
|
||||||
|
- name: start
|
||||||
|
commands:
|
||||||
|
- cd /home/pi/warframe-center/app
|
||||||
|
- npm run start
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
import { Component } from 'react'
|
|
||||||
|
|
||||||
export default class ItemRow extends Component {
|
|
||||||
constructor ({ scanResult }) {
|
|
||||||
super()
|
|
||||||
this.scanResult = scanResult
|
|
||||||
}
|
|
||||||
|
|
||||||
render () {
|
|
||||||
return (
|
|
||||||
<tr>
|
|
||||||
<td>{this.scanResult.name}</td>
|
|
||||||
<td>{this.scanResult.partsPrice}</td>
|
|
||||||
<td>{this.scanResult.setPrice}</td>
|
|
||||||
</tr>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -13,7 +13,7 @@ export default class Table extends Component {
|
|||||||
{
|
{
|
||||||
field: 'name',
|
field: 'name',
|
||||||
headerName: 'Name',
|
headerName: 'Name',
|
||||||
flex: 1,
|
flex: 2,
|
||||||
renderCell: (cellValues) => {
|
renderCell: (cellValues) => {
|
||||||
return (
|
return (
|
||||||
<Link
|
<Link
|
||||||
@@ -44,6 +44,12 @@ export default class Table extends Component {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static getInitialProps () {
|
||||||
|
return {
|
||||||
|
props: { scanResults: [] }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
render () {
|
render () {
|
||||||
return (
|
return (
|
||||||
<div style={{ height: '90vh', width: '100%' }}>
|
<div style={{ height: '90vh', width: '100%' }}>
|
||||||
|
|||||||
Reference in New Issue
Block a user