Skip to content

Commit b69e801

Browse files
committed
Optimize solver
1 parent ab51807 commit b69e801

10 files changed

+292
-644
lines changed

src/__snapshots__/solver.test.ts.snap

-301
This file was deleted.

src/app.tsx

+1-16
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,6 @@ const defaultOcrResult: {
1515
const parser = new UAParser()
1616
const deviceType = parser.getDevice()?.type
1717

18-
// const matrix = [
19-
// ["1c", "55", "ff", "bd", "e9"],
20-
// ["bd", "1c", "e9", "ff", "e9"],
21-
// ["55", "bd", "ff", "1c", "1c"],
22-
// ["e9", "bd", "1c", "55", "55"],
23-
// ["55", "e9", "bd", "55", "ff"]
24-
// ];
25-
26-
// const targets = [
27-
// ["e9", "55"],
28-
// ["55", "bd", "e9"],
29-
// ["ff", "1c", "bd", "e9"],
30-
// ["55", "1c", "ff", "55"]
31-
// ];
32-
3318
export default function App() {
3419
const OCRref = useRef<OCR>()
3520
const [ocrResult, setOcrResult] = useState(defaultOcrResult)
@@ -186,7 +171,7 @@ export default function App() {
186171
color: '#ff6060a0',
187172
}}
188173
>
189-
<span style={{ marginRight: 4 }}>OPTICAL BREACHER MK.1 Rev 1.7</span>
174+
<span style={{ marginRight: 4 }}>OPTICAL BREACHER MK.1 Rev 1.8</span>
190175
<a
191176
style={{ marginLeft: 'auto', color: 'inherit' }}
192177
href="https://github.com/govizlora/optical-breacher"

src/camera.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export function Camera({
325325
className="main"
326326
style={{
327327
margin: 'auto',
328-
marginBottom: 24,
328+
marginBottom: 16,
329329
}}
330330
onClick={() => {
331331
const canvas = document.createElement('canvas')

src/main.css

+4-4
Original file line numberDiff line numberDiff line change
@@ -70,16 +70,16 @@ a:link {
7070
}
7171

7272
input {
73-
background-color: #ff606040;
74-
border: 1px solid #ff606080;
75-
color: #ff6060;
73+
background-color: #cfed5740;
74+
border: 1px solid #cfed5780;
75+
color: #cfed57;
7676
height: 16px;
7777
font-size: 1em;
7878
}
7979

8080
input:focus {
8181
outline: unset;
82-
border: 1px solid #ff6060;
82+
border: 1px solid #cfed57;
8383
}
8484

8585
.dropzone {

0 commit comments

Comments
 (0)