feat(scanner): more work on the scanner and can now scan to prod no lst right now
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 2m41s
All checks were successful
Build and Push LST Docker Image / docker (push) Successful in 2m41s
This commit is contained in:
19
lstMobile/src/app/(tabs)/_layout.tsx
Normal file
19
lstMobile/src/app/(tabs)/_layout.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Tabs } from "expo-router";
|
||||
import { useAppStore } from "../../hooks/useAppStore";
|
||||
|
||||
export default function TabsLayout() {
|
||||
const serverPort = useAppStore((s) => s.serverPort);
|
||||
return (
|
||||
<Tabs
|
||||
screenOptions={{
|
||||
headerShown: false, // Hides the header for all screens in this navigator
|
||||
}}>
|
||||
<Tabs.Screen name="scanner" options={{ title: "Scan" }} />
|
||||
<Tabs.Screen name="config" options={{ title: "settings" }} />
|
||||
<Tabs.Screen name="logs" options={{ title: "Logs",
|
||||
href: parseInt(serverPort || "0", 10) >= 50000 ? null : "/(tabs)/logs",
|
||||
}}
|
||||
/>
|
||||
</Tabs>
|
||||
);
|
||||
}
|
||||
7
lstMobile/src/app/(tabs)/config.tsx
Normal file
7
lstMobile/src/app/(tabs)/config.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Link } from "expo-router";
|
||||
import { Text, View } from "react-native";
|
||||
import Setup from "../setup";
|
||||
|
||||
export default function SettingsTab() {
|
||||
return <Setup />
|
||||
}
|
||||
13
lstMobile/src/app/(tabs)/logs.tsx
Normal file
13
lstMobile/src/app/(tabs)/logs.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import React from 'react'
|
||||
import { Text, View } from 'react-native'
|
||||
|
||||
export default function Logs() {
|
||||
return (
|
||||
<View style={{
|
||||
flex: 1,
|
||||
//justifyContent: "center",
|
||||
alignItems: "center",
|
||||
marginTop: 50,
|
||||
}}><Text>Logs</Text></View>
|
||||
)
|
||||
}
|
||||
22
lstMobile/src/app/(tabs)/scanner.tsx
Normal file
22
lstMobile/src/app/(tabs)/scanner.tsx
Normal file
@@ -0,0 +1,22 @@
|
||||
import React from "react";
|
||||
import { View } from "react-native";
|
||||
|
||||
import { useAppStore } from "../../hooks/useAppStore";
|
||||
import ProdScanner from "../../components/ProdScanner";
|
||||
import LSTScanner from "../../components/LSTScanner";
|
||||
|
||||
export default function scanner() {
|
||||
const serverPort = useAppStore((s) => s.serverPort);
|
||||
return (
|
||||
<View
|
||||
style={{
|
||||
flex: 1,
|
||||
//justifyContent: "center",
|
||||
alignItems: "center",
|
||||
marginTop: 50,
|
||||
}}
|
||||
>
|
||||
{parseInt(serverPort || "0", 10) >= 50000 ? <ProdScanner /> : <LSTScanner />}
|
||||
</View>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user