-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config support for camera feed ips.
- Loading branch information
Showing
6 changed files
with
137 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,39 @@ | ||
{ | ||
"name": "Cougar-Dashboard", | ||
"author": "FRC Team 2539", | ||
"version": "0.3.3", | ||
"main": "public/electron.js", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"serve": "vite preview", | ||
"electron-dev": "concurrently \"npm run dev\" \"electron .\"", | ||
"electron-pack": "electron-builder", | ||
"release": "vite build && electron-builder" | ||
}, | ||
"dependencies": { | ||
"@tailwindcss/forms": "^0.2.1", | ||
"electron-is-dev": "^2.0.0", | ||
"electron-store": "^8.0.1", | ||
"preact": "^10.5.13" | ||
}, | ||
"devDependencies": { | ||
"@preact/preset-vite": "^2.0.0", | ||
"autoprefixer": "^10.2.5", | ||
"concurrently": "^6.2.0", | ||
"electron": "^13.0.1", | ||
"electron-builder": "^22.10.5", | ||
"postcss": "^8.2.8", | ||
"tailwindcss": "^2.0.3", | ||
"vite": "^2.1.0" | ||
}, | ||
"build": { | ||
"files": [ | ||
"./build/**/*", | ||
"./build/icon.*", | ||
"./public/electron.js", | ||
"./public/preload.js" | ||
] | ||
} | ||
"name": "Cougar-Dashboard", | ||
"author": "FRC Team 2539", | ||
"version": "0.3.4", | ||
"main": "public/electron.js", | ||
"scripts": { | ||
"dev": "vite", | ||
"build": "vite build", | ||
"serve": "vite preview", | ||
"electron-dev": "concurrently \"npm run dev\" \"electron .\"", | ||
"electron-pack": "electron-builder", | ||
"release": "vite build && electron-builder" | ||
}, | ||
"dependencies": { | ||
"@tailwindcss/forms": "^0.2.1", | ||
"electron-is-dev": "^2.0.0", | ||
"electron-store": "^8.0.1", | ||
"preact": "^10.5.13" | ||
}, | ||
"devDependencies": { | ||
"@preact/preset-vite": "^2.0.0", | ||
"autoprefixer": "^10.2.5", | ||
"concurrently": "^6.2.0", | ||
"electron": "^13.0.1", | ||
"electron-builder": "^22.10.5", | ||
"postcss": "^8.2.8", | ||
"tailwindcss": "^2.0.3", | ||
"vite": "^2.1.0" | ||
}, | ||
"build": { | ||
"files": [ | ||
"./build/**/*", | ||
"./build/icon.*", | ||
"./public/electron.js", | ||
"./public/preload.js" | ||
] | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import { Component } from "preact" | ||
|
||
export default class CameraFeed extends Component { | ||
constructor(props) { | ||
super(props) | ||
constructor(props) { | ||
super(props) | ||
|
||
this.ip = this.props.cameraIP | ||
this.isThumbnail = this.props.isThumbnail | ||
} | ||
|
||
this.isThumbnail = this.props.isThumbnail | ||
} | ||
render() { | ||
let className = | ||
"max-h-full m-auto " + (this.isThumbnail ? "" : "h-full") | ||
|
||
render() { | ||
let className = "max-h-full m-auto " + (this.isThumbnail ? "" : "h-full") | ||
return ( | ||
<div className="h-full w-full relative"> | ||
<img className={className} src={this.props.cameraIP} /> | ||
</div> | ||
) | ||
} | ||
} | ||
|
||
return ( | ||
<div className="h-full w-full relative"> | ||
<img className={className} src={this.ip} /> | ||
</div> | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters