Compare commits

...

8 Commits

Author SHA1 Message Date
harukin-expo-dev-env
6d3e6623a0 Merge commit '2047df93092fd2f3f3a4c8644b7784cc2906c388' into patch/5.0.x 2024-10-31 12:26:23 +00:00
harukin-expo-dev-env
2047df9309 リリース用封印 2024-10-31 12:26:15 +00:00
harukin-expo-dev-env
4507c0ef2a 5.5 release バージョンコード変更 2024-10-31 12:26:07 +00:00
harukin-expo-dev-env
50c3329793 細かいバグ修正 2024-10-25 14:06:08 +00:00
harukin-expo-dev-env
b302df4664 サンポート表記を追加 2024-10-25 14:05:58 +00:00
harukin-expo-dev-env
5a062351e3 一部状況によって通過駅がしまえなくなるバグを修正 2024-10-25 10:09:25 +00:00
harukin-expo-dev-env
40cb1f3251 優先順位変更 2024-10-24 18:08:33 +00:00
harukin-expo-dev-env
72158d6d33 Merge commit '9a458096a2f5272da870be9d6e45468860733179' into develop 2024-10-24 17:23:33 +00:00
6 changed files with 32 additions and 16 deletions

View File

@ -28,7 +28,7 @@ export function AppContainer() {
<NavigationContainer name="Root" style={{ flex: 1 }} ref={navigationRef}>
<Tab.Navigator
tabBarOptions={{ keyboardHidesTabBar: Platform.OS === "android" }}
initialRouteName="menuPage"
initialRouteName="login"
lazy={false}
>
<Tab.Screen

View File

@ -180,6 +180,7 @@ export const EachTrainInfoCore = ({
if (!points) return () => {};
if (points.length == 0) return () => {};
const position = points.findIndex((d) => d == true);
let isThrew = false;
if (position == -1) return () => {};
if (trainDataWidhThrough[position].split(",")[1] == "通過") {
LayoutAnimation.configureNext({
@ -187,14 +188,18 @@ export const EachTrainInfoCore = ({
update: { type: "easeInEaseOut", springDamping: 0.6 },
});
setShowThrew(true);
isThrew = true;
}
if (position < 5) {
} // 5駅以内の場合はスクロールしない
else {
const count = position * 44 - 50;
// 0.5秒待機してからスクロール
setTimeout(
() => ScrollViewRef.current?.scrollTo({ y: count, animated: true }),
400
);
}
if(position < 5) return() => {}; // 5駅以内の場合はスクロールしない
const count = position * 44-50;
// 0.5秒待機してからスクロール
setTimeout(
() => ScrollViewRef.current?.scrollTo({ y: count, animated: true }),
400
);
setIsJumped(true);
}, [points]);
const trainName = useMemo(() => {

View File

@ -12,7 +12,7 @@ import * as Updates from "expo-updates";
import { useWindowDimensions } from "react-native";
import { ListItem } from "native-base";
const versionCode = "5.4.1";
const versionCode = "5.5";
export const SettingTopPage = ({ navigate, testNFC, updateAndReload }) => {
const { width } = useWindowDimensions();

View File

@ -102,14 +102,18 @@ export const EachData: FC<Props> = (props) => {
};
const [platformNumber, setPlatformNumber] = useState<number>();
const [platformDescription, setPlatformDescription] = useState<string>();
useEffect(() => {
fetch(
`https://n8n.haruk.in/webhook/JR-shikoku-PosID?PosNum=${currentTrainData?.PosNum}&Line=${currentTrainData?.Line}`
)
.then((res) => res.json())
.then((data) =>
setPlatformNumber(data?.type == "Station" ? data?.platform : undefined)
);
.then((data) => {
setPlatformNumber(data?.type == "Station" ? data?.platform : undefined);
setPlatformDescription(
data?.type == "Station" ? data?.description : undefined
);
});
}, [currentTrainData, currentTrain]);
return (
@ -141,9 +145,11 @@ export const EachData: FC<Props> = (props) => {
<Description
info={`${
trainIDSwitch
? currentTrainData?.PosNum+currentTrainData?.Line
? currentTrainData?.PosNum + currentTrainData?.Line
: trainPositionText(currentTrainData)
} ${platformNumber ? platformNumber + "番線" : ""}`}
} ${platformNumber ? platformNumber + "番線" : ""} ${
platformDescription ? "("+platformDescription+")" : ""
}`}
onLongClick={() => {
Linking.openURL(
"https://nexcloud.haruk.in/apps/forms/s/TEkBQW5WLcYjLyAzGxncQLtw"

View File

@ -1 +1 @@
export const news = "2024-9-29";
export const news = "2024-11-01";

View File

@ -770,6 +770,7 @@ export const injectJavascriptData: InjectJavascriptData = (
case "5210M":
case "5108M":
case "110M":
case "112M":
case "118M":
case "5218M":
case "5120M":
@ -817,7 +818,6 @@ export const injectJavascriptData: InjectJavascriptData = (
setStationIcon(element.querySelector("img"),'https://storage.haruk.in/s7200.png');
break;
// 上り7000系
case "112M":
case "114M":
case "122M":
case "4138M":
@ -847,6 +847,10 @@ export const injectJavascriptData: InjectJavascriptData = (
: ``;
const normal_train_name = `
if(.match("サンポート")){
const textBase = .split(":")[1];
.innerText = textBase+.innerText;
}
if(new RegExp(/^4[1-9]\\d\\d[DM]$/).test() || new RegExp(/^5[1-7]\\d\\d[DM]$/).test() || ==="3621D"){
.innerText = "ワンマン\\n"+.innerText;
flag=true;
@ -954,6 +958,7 @@ const setStrings = () =>{
}
var = element.getElementsByTagName("p")[0];
var = element.getAttribute('offclick').split('"')[1];
var = element.getAttribute('offclick').split('"')[3];
var flag=false;
var TrainType = undefined;
setTrainMenuDialog(element)