21 Commits

Author SHA1 Message Date
harukin-OneMix4
e2349cca15 文字の改行条件の調整 2024-01-29 00:45:30 +09:00
harukin-OneMix4
68cced053e 最終日のデータ設置 2024-01-29 00:41:39 +09:00
harukin-OneMix4
7a06a5d86a アイコン適用忘れ 2024-01-28 12:21:12 +09:00
harukin-OneMix4
a3ecc80d28 実際の運行情報より修正 2024-01-28 12:18:41 +09:00
harukin-OneMix4
7048333b07 実際の運行情報より修正 2024-01-28 10:36:21 +09:00
harukin-OneMix4
9301780212 custom-train-dataの不足を修正 2024-01-27 22:34:14 +09:00
harukin-OneMix4
2a3e6c95b3 文字列ミスってたの修正 2024-01-27 22:29:49 +09:00
harukin-OneMix4
58ef72c9df 三日目のデータを追加(仮実装) 2024-01-27 22:25:05 +09:00
harukin-OneMix4
8310712e5b Merge commit '19a74dbc37c586784fbbec802c309abccbfe4164' into special/royal-main 2024-01-27 11:24:00 +09:00
harukin-OneMix4
19a74dbc37 とりあえず公式ページの運用情報追加 2024-01-27 11:23:54 +09:00
harukin-OneMix4
ad34feb191 Merge commit '717569993e10d2bfd7c287efd1164cd92fb5fe6c' into special/royal-nightly 2024-01-27 10:15:06 +09:00
harukin-OneMix4
717569993e アドレスミスを修正 2024-01-27 10:14:56 +09:00
harukin-OneMix4
fc7edb9e37 Merge commit '14c1c3ddd239329841a2796f211262deebac96ce' into special/royal-nightly 2024-01-27 10:11:12 +09:00
harukin-OneMix4
14c1c3ddd2 1/27の運用状況を更新 2024-01-27 10:09:21 +09:00
harukin-OneMix4
2290c96ca7 特別ダイヤデータ追加 2024-01-27 02:08:08 +09:00
harukin-OneMix4
fa7c32298e Merge commit '8a94b81052a4cf6b833bf298abcd89ed93a0ada2' into special/royal-main 2024-01-27 02:07:28 +09:00
harukin-OneMix4
8a94b81052 カスタムデータ入れる枠作成 2024-01-27 01:35:52 +09:00
harukin-OneMix4
24e784a236 1/26の運用情報を適用 2024-01-27 01:33:16 +09:00
harukin-OneMix4
431c4c9c0b 4.6.4 2024-01-27 00:54:18 +09:00
harukin-OneMix4
19e9fd8fd8 臨時列車表示を追加(仮) 2024-01-27 00:52:52 +09:00
harukin-OneMix4
ebdec28693 提供表示を追加 2024-01-27 00:52:21 +09:00
7 changed files with 122 additions and 3 deletions

View File

@@ -1053,5 +1053,14 @@
"9253M":"児島,発,11:02#多度津,発,11:30#善通寺,発,11:54#琴平,着,12:00#",
"9256M":"琴平,発,15:20#善通寺,発,15:26#多度津,発,15:35#宇多津,発,15:44#児島,着,16:04#",
"9057M":"高松,発,18:27#坂出,発,18:41#宇多津,発,18:46#丸亀,発,18:49#多度津,着,18:55#",
"9054M":"宇多津,発,9:00#坂出,発,9:07#高松,着,9:21#"
"9054M":"宇多津,発,9:00#坂出,発,9:07#高松,着,9:21#",
//9001: "岡山,発,10:11#児島,発,11:05#坂出,発,11:41#高松,着,12:00#独自補完データ,提,https://x.com/makkun3/status/1750490886293848372#",
9001: "ウェルカムセレモニー,頃,9:40#岡山,頃,10:10#琴平,頃,14:00#琴平観光,以降,14:00#湯山荘 阿讃琴南,頃,16:00#独自補完データ,提,https://www.the-royalexpress.jp/plan/2614/#ROYAL EXPRESS 第1章\n瀬戸の海に想いを馳せながら\n岡山・高松・琴平,提,https://www.the-royalexpress.jp/plan/2614/#",
//9029: "高松,発,12:42#琴平,着,13:57#独自補完データ,提,https://x.com/makkun3/status/1750490886293848372#",
9029: "ウェルカムセレモニー,頃,9:40#岡山,頃,10:10#琴平,頃,14:00#琴平観光,以降,14:00#湯山荘 阿讃琴南,頃,16:00#独自補完データ,提,https://www.the-royalexpress.jp/plan/2614/#ROYAL EXPRESS 第1章\n瀬戸の海に想いを馳せながら\n岡山・高松・琴平,提,https://www.the-royalexpress.jp/plan/2614/#",
//9003: "多度津,発,10:09#今治,発,13:20#伊予亀岡,発,13:55#菊間,発,14:04#松山,着,14:50#独自補完データ,提,https://x.com/makkun3/status/1750490886293848372#",
9003: "湯山荘 阿讃琴南,頃,9:00#多度津,頃,10:10#松山,頃,14:50#宿泊施設,以降,14:50#独自補完データ,提,https://www.the-royalexpress.jp/plan/2614/#ROYAL EXPRESS 第2章\n -四国の伝統文化を感じて-\n多度津・坂出・松山,提,https://www.the-royalexpress.jp/plan/2614/#",
9055: "宿泊施設→バス,着,10:30#松山,頃,10:30#今治,頃,14:15#しまなみエリア観光,以降,14:15#Azumi Setoda,頃,16:00#独自補完データ,提,https://www.the-royalexpress.jp/plan/2614/#ROYAL EXPRESS 第3章\n凪の誘い・瀬戸内の絶景\n今治・しまなみ海道,提,https://www.the-royalexpress.jp/plan/2614/#",
9056: "宿泊施設→バス,着,10:30#松山,頃,10:30#今治,頃,14:15#しまなみエリア観光,以降,14:15#Azumi Setoda,頃,16:00#独自補完データ,提,https://www.the-royalexpress.jp/plan/2614/#ROYAL EXPRESS 第3章\n凪の誘い・瀬戸内の絶景\n今治・しまなみ海道,提,https://www.the-royalexpress.jp/plan/2614/#",
9004: "Azumi Setoda,頃,9:30#今治,頃,10:30#高松,頃,14:30#高松港\n↓\n瀬戸内クルーズ貸切\n「おりんぴあどりーむ せと」\n↓ \n 新岡山港,以降,14:15#岡山駅,頃,18:00#独自補完データ,提,https://www.the-royalexpress.jp/plan/2614/#ROYAL EXPRESS フィナーレ\n四国・瀬戸内の彩りに囲まれて\n今治・高松・岡山,提,https://www.the-royalexpress.jp/plan/2614/#",
}

View File

@@ -610,6 +610,33 @@ export const EachTrainInfo = (props) => {
{trainData.map((i, index) => {
const [station, se, time] = i.split(",");
if(se == "提"){
return (
<TouchableWithoutFeedback
onPress={() => Linking.openURL(time)}
key={station}
>
<View style={{ flexDirection: "row" }}>
<View
style={{
padding: 8,
flexDirection: "row",
borderBottomWidth: 1,
borderBottomColor: "#f0f0f0",
flex: 1,
}}
>
<Text style={{ fontSize: 20 }}>{station}</Text>
<View style={{ flex: 1 }} />
<Text style={{ fontSize: 18 }}>
提供元<MaterialCommunityIcons name={"open-in-new"} color="black" size={20} />
</Text>
</View>
</View>
</TouchableWithoutFeedback>
);
}
const Stations = stationList.map((a) =>
a.filter((d) => d.StationName == station)
);

View File

@@ -608,6 +608,43 @@ export const customTrainDataDetector = (TrainNumber) => {
info: "",
};
/////ロイヤルエクスプレス
case "9001":
case "9029":
return {
type: "SPCL",
trainName: "THE ROYAL EXPRESS",
trainIcon: "http://trainfrontview.net/p/izq2100rex1.png",
trainNumDistance: null,
info: "[団体専用] 第1章 瀬戸の海に想いを馳せながら 岡山・高松・琴平",
};
/////ロイヤルエクスプレス
case "9003":
return {
type: "SPCL",
trainName: "THE ROYAL EXPRESS",
trainIcon: "http://trainfrontview.net/p/izq2100rex1.png",
trainNumDistance: null,
info: "[団体専用] 第2章 四国の伝統文化を感じて 多度津・坂出・松山",
};
/////ロイヤルエクスプレス
case "9055":
case "9056":
return {
type: "SPCL",
trainName: "THE ROYAL EXPRESS",
trainIcon: "http://trainfrontview.net/p/izq2100rex1.png",
trainNumDistance: null,
info: "[団体専用] 第3章 凪の誘い・瀬戸内の絶景 今治・しまなみ海道",
};
case "9004":
return {
type: "SPCL",
trainName: "THE ROYAL EXPRESS",
trainIcon: "http://trainfrontview.net/p/izq2100rex1.png",
trainNumDistance: null,
info: "[団体専用] フィナーレ -四国・瀬戸内の彩りに囲まれて- 今治・高松・岡山",
};
default:
return {
type: "Normal",

View File

@@ -165,7 +165,7 @@ export default function Setting(props) {
textAlignVertical: "center",
}}
>
内部バージョン: 4.6.3.1
内部バージョン: 4.6.4
</Text>
<View style={{ flex: 1 }} />
</View>

View File

@@ -6,6 +6,8 @@ export const getTrainType = (nameString) => {
return { color: "red", name: "特急", data: "express" };
case "NightLTDEXP":
return { color: "red", name: "寝台特急", data: "express" };
case "SPCL":
return { color: "blue", name: "臨時", data: "normal" };
case "Normal":
return { color: "white", name: "普通列車", data: "normal" };
default:

View File

@@ -6,6 +6,34 @@ export const injectJavascriptData = (
stationMenu,
trainMenu
) => {
const specialTrainIcon = `
////ロイヤルエクスプレス
case "9001":
case "9029":
case "9003":
case "9055":
case "9056":
case "9004":
setStationIcon(element.querySelector("img"),'https://storage.haruk.in/izq2100rex.png');
break;
`
const specialTrainName = `
////ロイヤルエクスプレス
case "9001":
case "9029":
return "ロイヤルエクスプレス\\n瀬戸の海に想いを馳せながら";
case "9003":
return "ロイヤルエクスプレス\\n四国の伝統文化を感じて";
case "9055":
case "9056":
return "ロイヤルエクスプレス\\n凪の誘い・瀬戸内の絶景";
case "9004":
return "ロイヤルエクスプレス\\n四国・瀬戸内の彩りに囲まれて";
break;
`
// 一番上のメニュー非表示 地図スイッチによって切り替え
const topMenu =
mapSwitch != "true"
@@ -464,6 +492,7 @@ export const injectJavascriptData = (
case "8063D":
setStationIcon(element.querySelector("img"),'https://storage.haruk.in/s185ym1.png');
break;
`+specialTrainIcon+`
default:
break;
}
@@ -541,6 +570,7 @@ const data = getJRF(列番データ);
//安芸行と併結列車を個別に表示、それ以外をdefaultで下りなら既定の行き先を、上りなら奈半利行を設定
const getTKT = num =>{
switch(num){
`+specialTrainName+`
case "5814D":
case "5816D":
return "ごめん・なはり線直通\\n快速 奈半利行";

View File

@@ -12,6 +12,17 @@ export const useAllTrainDiagram = () => {
export const AllTrainDiagramProvider = ({ children }) => {
const [allTrainDiagram, setAllTrainDiagram] = useState();
const customData = {
//9001: "岡山,発,10:11#児島,発,11:05#坂出,発,11:41#高松,着,12:00#独自補完データ,提,https://x.com/makkun3/status/1750490886293848372#",
9001: "ウェルカムセレモニー,頃,9:40#岡山,頃,10:10#琴平,頃,14:00#琴平観光,以降,14:00#湯山荘 阿讃琴南,頃,16:00#独自補完データ,提,https://www.the-royalexpress.jp/plan/2614/#ROYAL EXPRESS 第1章\n瀬戸の海に想いを馳せながら\n岡山・高松・琴平,提,https://www.the-royalexpress.jp/plan/2614/#",
//9029: "高松,発,12:42#琴平,着,13:57#独自補完データ,提,https://x.com/makkun3/status/1750490886293848372#",
9029: "ウェルカムセレモニー,頃,9:40#岡山,頃,10:10#琴平,頃,14:00#琴平観光,以降,14:00#湯山荘 阿讃琴南,頃,16:00#独自補完データ,提,https://www.the-royalexpress.jp/plan/2614/#ROYAL EXPRESS 第1章\n瀬戸の海に想いを馳せながら\n岡山・高松・琴平,提,https://www.the-royalexpress.jp/plan/2614/#",
//9003: "多度津,発,10:09#今治,発,13:20#伊予亀岡,発,13:55#菊間,発,14:04#松山,着,14:50#独自補完データ,提,https://x.com/makkun3/status/1750490886293848372#",
9003: "湯山荘 阿讃琴南,頃,9:00#多度津,頃,10:10#松山,頃,14:50#宿泊施設,以降,14:50#独自補完データ,提,https://www.the-royalexpress.jp/plan/2614/#ROYAL EXPRESS 第2章\n -四国の伝統文化を感じて-\n多度津・坂出・松山,提,https://www.the-royalexpress.jp/plan/2614/#",
9055: "宿泊施設→バス,着,10:30#松山,頃,10:30#今治,頃,14:15#しまなみエリア観光,以降,14:15#Azumi Setoda,頃,16:00#独自補完データ,提,https://www.the-royalexpress.jp/plan/2614/#ROYAL EXPRESS 第3章\n凪の誘い・瀬戸内の絶景\n今治・しまなみ海道,提,https://www.the-royalexpress.jp/plan/2614/#",
9056: "宿泊施設→バス,着,10:30#松山,頃,10:30#今治,頃,14:15#しまなみエリア観光,以降,14:15#Azumi Setoda,頃,16:00#独自補完データ,提,https://www.the-royalexpress.jp/plan/2614/#ROYAL EXPRESS 第3章\n凪の誘い・瀬戸内の絶景\n今治・しまなみ海道,提,https://www.the-royalexpress.jp/plan/2614/#",
9004: "Azumi Setoda,頃,9:30#今治,頃,10:30#高松,頃,14:30#高松港\n↓\n瀬戸内クルーズ貸切\n「おりんぴあどりーむ せと」\n↓ \n 新岡山港,以降,14:15#岡山駅,頃,18:00#独自補完データ,提,https://www.the-royalexpress.jp/plan/2614/#ROYAL EXPRESS フィナーレ\n四国・瀬戸内の彩りに囲まれて\n今治・高松・岡山,提,https://www.the-royalexpress.jp/plan/2614/#",
};
useEffect(() => {
fetch(
"https://script.google.com/macros/s/AKfycbx_s7RB-xTy-iAslFJg7LfplLV09-hjDXEjdi9kCP_JT45wq17Af_IPOKIOqIfaNDg/exec"
@@ -25,7 +36,10 @@ export const AllTrainDiagramProvider = ({ children }) => {
});
return data;
})
.then((res) => setAllTrainDiagram(res));
.then((res) => {
Object.assign(res, customData);
setAllTrainDiagram(res);
});
}, []);
return (