ci preparations
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
2022-03-14 22:46:08 +03:00
parent 789fb6f38d
commit 2df13c117a
3 changed files with 26 additions and 19 deletions

View File

@@ -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

View File

@@ -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>
)
}
}

View File

@@ -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%' }}>