snapshot
This commit is contained in:
parent
b83d2b27d7
commit
a1ad1f4de2
25
consts/presets.js
Normal file
25
consts/presets.js
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
export const PresetSnapshot = {
|
||||||
|
"AE":[0.5,0.5275,0.504018,0.5575,0.5],
|
||||||
|
"AT":[0.406607,0.612857,0.450089,0.755357,0.376429],
|
||||||
|
"AU":[0.616429,0.426786,0.643482,0.347857,0.405714],
|
||||||
|
"AZ":[0.451786,0.664107,0.212321,0.628571,0.792143],
|
||||||
|
"BE":[0.610179,0.424911,0.385714,0.454107,0.905714],
|
||||||
|
"BH":[0.594643,0.364643,0.529554,0.381786,0.692857],
|
||||||
|
"BR":[0.545179,0.448036,0.589107,0.637857,0.420714],
|
||||||
|
"CA":[0.457321,0.591964,0.384286,0.677143,0.589286],
|
||||||
|
"ES":[0.598036,0.432857,0.743214,0.346071,0.262143],
|
||||||
|
"FR":[0.603393,0.394554,0.529911,0.488036,0.623571],
|
||||||
|
"GB":[0.659643,0.319554,0.608036,0.196786,0.618571],
|
||||||
|
"HU":[0.500893,0.564554,0.640179,0.715536,0.133571],
|
||||||
|
"IT":[0.4925,0.6375,0.15,0.655,0.99],
|
||||||
|
"IT-EMI":[0.5975,0.279375,0.675625,0.48125,0.475],
|
||||||
|
"JP":[0.595179,0.258125,0.703125,0.444107,0.415714],
|
||||||
|
"MC":[0.56875,0.434018,0.891875,0.31875,0],
|
||||||
|
"MX":[0.543929,0.4125,0.629107,0.639107,0.420714],
|
||||||
|
"NL":[0.647857,0.438571,0.705089,0.393214,0.326429],
|
||||||
|
"SA":[0.778393,0.132768,0.728304,0.140536,0.667857],
|
||||||
|
"SG":[0.422321,0.668839,0.609018,0.427143,0.089286],
|
||||||
|
"US":[0.610179,0.376786,0.667857,0.615357,0.400714],
|
||||||
|
"US-MIAMI":[0.569107,0.378036,0.677321,0.584464,0.356429],
|
||||||
|
"XX":[0.5,0.5,0.5,0.5,0.5]
|
||||||
|
}
|
@ -36,6 +36,7 @@ import {trackMap, tracks} from "../consts/tracks";
|
|||||||
import {Delete, OpenInNew} from "@mui/icons-material";
|
import {Delete, OpenInNew} from "@mui/icons-material";
|
||||||
import KofiButton from "kofi-button";
|
import KofiButton from "kofi-button";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
|
import {PresetSnapshot} from "../consts/presets";
|
||||||
|
|
||||||
const feedbackColors = {
|
const feedbackColors = {
|
||||||
optimal: "info",
|
optimal: "info",
|
||||||
@ -877,12 +878,12 @@ export function Calculator({ target, preset }) {
|
|||||||
|
|
||||||
export default function CalculatorPage() {
|
export default function CalculatorPage() {
|
||||||
const [tab, setTab] = useState(1);
|
const [tab, setTab] = useState(1);
|
||||||
const [preset, setPreset] = useState({});
|
const [preset, setPreset] = useState(PresetSnapshot);
|
||||||
const slots = [1, 2, 3, 4, 5];
|
const slots = [1, 2, 3, 4, 5];
|
||||||
|
|
||||||
useEffect(() => {
|
// useEffect(() => {
|
||||||
fetch(`https://f1setup.deta.dev/values`).then(r => r.json()).then(r => setPreset(r));
|
// fetch(`https://f1setup.deta.dev/values`).then(r => r.json()).then(r => setPreset(r));
|
||||||
}, []);
|
// }, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<SnackbarProvider
|
<SnackbarProvider
|
||||||
|
Loading…
Reference in New Issue
Block a user