support English
This commit is contained in:
1 parent
138a3d15d8
commit
b8ed110459
36 files changed
+523
-118
No files matched your search
@@ -5,10 +5,12 @@ use sqlx::types::Json as SqlxJson;
|
||||
pub struct RouteDetail {
|
||||
pub route_id: String,
|
||||
pub name_th: String,
|
||||
pub name_en: Option<String>,
|
||||
pub vehicle_type: String,
|
||||
pub route_group_id: i16,
|
||||
pub route_group_code: String,
|
||||
pub route_group_label_th: String,
|
||||
pub route_group_label_en: Option<String>,
|
||||
pub contact: SqlxJson<serde_json::Value>,
|
||||
pub metadata: SqlxJson<serde_json::Value>,
|
||||
pub province_ids: Vec<i16>,
|
||||
|
||||
@@ -5,10 +5,12 @@ pub async fn fetch(pool: &PgPool, route_id: &str) -> Result<Option<RouteDetail>,
|
||||
let sql = r#"
|
||||
SELECT r.route_id,
|
||||
r.name_th,
|
||||
r.name_en,
|
||||
r.vehicle_type::text AS vehicle_type,
|
||||
r.route_group_id,
|
||||
g.code AS route_group_code,
|
||||
g.label_th AS route_group_label_th,
|
||||
g.label_en AS route_group_label_en,
|
||||
r.contact,
|
||||
r.metadata,
|
||||
COALESCE(ARRAY(SELECT province_id FROM route_provinces rp WHERE rp.route_id = r.route_id ORDER BY province_id), '{}') AS province_ids,
|
||||
|
||||
@@ -6,8 +6,11 @@ pub struct StopDetail {
|
||||
pub id: i32,
|
||||
pub code: String,
|
||||
pub name_th: String,
|
||||
pub name_en: Option<String>,
|
||||
pub city_th: Option<String>,
|
||||
pub city_en: Option<String>,
|
||||
pub province_th: Option<String>,
|
||||
pub province_en: Option<String>,
|
||||
pub station_type: String,
|
||||
pub attributes: SqlxJson<serde_json::Value>,
|
||||
pub metadata: SqlxJson<serde_json::Value>,
|
||||
|
||||
@@ -3,7 +3,8 @@ use sqlx::PgPool;
|
||||
|
||||
pub async fn fetch(pool: &PgPool, code: &str) -> Result<Option<StopDetail>, sqlx::Error> {
|
||||
let sql = r#"
|
||||
SELECT s.id, s.code, s.name_th, s.city_th, s.province_th,
|
||||
SELECT s.id, s.code, s.name_th, s.name_en, s.city_th, s.city_en,
|
||||
s.province_th, s.province_en,
|
||||
s.station_type::text AS station_type,
|
||||
s.attributes, s.metadata,
|
||||
COALESCE((
|
||||
@@ -18,9 +19,11 @@ pub async fn fetch(pool: &PgPool, code: &str) -> Result<Option<StopDetail>, sqlx
|
||||
SELECT jsonb_agg(jsonb_build_object(
|
||||
'route_id', r.route_id,
|
||||
'name_th', r.name_th,
|
||||
'name_en', r.name_en,
|
||||
'vehicle_type', r.vehicle_type::text,
|
||||
'route_group_code', g.code,
|
||||
'route_group_label_th', g.label_th
|
||||
'route_group_label_th', g.label_th,
|
||||
'route_group_label_en', g.label_en
|
||||
) ORDER BY rs.stop_sequence, r.route_id)
|
||||
FROM route_stops rs
|
||||
JOIN routes r ON r.route_id = rs.route_id
|
||||
|
||||
@@ -4,4 +4,5 @@ use serde::Serialize;
|
||||
pub struct ProvinceRow {
|
||||
pub id: i16,
|
||||
pub name_th: String,
|
||||
pub name_en: Option<String>,
|
||||
}
|
||||
@@ -3,7 +3,7 @@ use sqlx::PgPool;
|
||||
|
||||
pub async fn list(pool: &PgPool) -> Result<Vec<ProvinceRow>, sqlx::Error> {
|
||||
sqlx::query_as::<_, ProvinceRow>(
|
||||
"SELECT id, name_th FROM provinces ORDER BY id",
|
||||
"SELECT id, name_th, name_en FROM provinces ORDER BY id",
|
||||
)
|
||||
.fetch_all(pool)
|
||||
.await
|
||||
|
||||
@@ -5,6 +5,7 @@ pub struct RouteGroupRow {
|
||||
pub id: i16,
|
||||
pub code: String,
|
||||
pub label_th: String,
|
||||
pub label_en: Option<String>,
|
||||
pub display_order: i16,
|
||||
pub is_active: bool,
|
||||
}
|
||||
@@ -3,8 +3,8 @@ use sqlx::PgPool;
|
||||
|
||||
pub async fn list(pool: &PgPool) -> Result<Vec<RouteGroupRow>, sqlx::Error> {
|
||||
sqlx::query_as::<_, RouteGroupRow>(
|
||||
"SELECT id, code, label_th, display_order, is_active \
|
||||
FROM route_groups WHERE is_active ORDER BY display_order, id",
|
||||
"SELECT id, code, label_th, label_en, display_order, is_active \
|
||||
FROM route_groups WHERE is_active ORDER BY display_order, id"
|
||||
)
|
||||
.fetch_all(pool)
|
||||
.await
|
||||
|
||||
@@ -7,8 +7,11 @@ pub struct RouteStopRow {
|
||||
pub station_id: i32,
|
||||
pub code: String,
|
||||
pub name_th: String,
|
||||
pub name_en: Option<String>,
|
||||
pub city_th: Option<String>,
|
||||
pub city_en: Option<String>,
|
||||
pub province_th: Option<String>,
|
||||
pub province_en: Option<String>,
|
||||
pub station_type: String,
|
||||
pub attributes: SqlxJson<serde_json::Value>,
|
||||
}
|
||||
@@ -7,8 +7,11 @@ pub async fn list(pool: &PgPool, route_id: &str) -> Result<Vec<RouteStopRow>, sq
|
||||
s.id AS station_id,
|
||||
s.code,
|
||||
s.name_th,
|
||||
s.name_en,
|
||||
s.city_th,
|
||||
s.city_en,
|
||||
s.province_th,
|
||||
s.province_en,
|
||||
s.station_type::text AS station_type,
|
||||
s.attributes
|
||||
FROM route_stops rs
|
||||
|
||||
@@ -11,10 +11,12 @@ pub struct ListRoutesQuery {
|
||||
pub struct RouteListRow {
|
||||
pub route_id: String,
|
||||
pub name_th: String,
|
||||
pub name_en: Option<String>,
|
||||
pub vehicle_type: String,
|
||||
pub route_group_id: i16,
|
||||
pub route_group_code: String,
|
||||
pub route_group_label_th: String,
|
||||
pub route_group_label_en: Option<String>,
|
||||
pub contact: SqlxJson<serde_json::Value>,
|
||||
pub metadata: SqlxJson<serde_json::Value>,
|
||||
pub province_ids: Vec<i16>,
|
||||
|
||||
@@ -5,10 +5,12 @@ pub async fn list(pool: &PgPool, q: &ListRoutesQuery) -> Result<Vec<RouteListRow
|
||||
let sql = r#"
|
||||
SELECT r.route_id,
|
||||
r.name_th,
|
||||
r.name_en,
|
||||
r.vehicle_type::text AS vehicle_type,
|
||||
r.route_group_id,
|
||||
g.code AS route_group_code,
|
||||
g.label_th AS route_group_label_th,
|
||||
g.label_en AS route_group_label_en,
|
||||
r.contact,
|
||||
r.metadata,
|
||||
COALESCE(ARRAY(SELECT province_id FROM route_provinces rp WHERE rp.route_id = r.route_id ORDER BY province_id), '{}') AS province_ids,
|
||||
|
||||
@@ -15,6 +15,7 @@ pub struct ScheduleRow {
|
||||
pub station_id: i32,
|
||||
pub station_code: String,
|
||||
pub station_name_th: String,
|
||||
pub station_name_en: Option<String>,
|
||||
pub direction_note: Option<String>,
|
||||
pub departure_times: Vec<String>,
|
||||
pub variants: SqlxJson<serde_json::Value>,
|
||||
|
||||
@@ -8,6 +8,7 @@ pub async fn list(pool: &PgPool, q: &ListSchedulesQuery) -> Result<Vec<ScheduleR
|
||||
sc.station_id,
|
||||
s.code AS station_code,
|
||||
s.name_th AS station_name_th,
|
||||
s.name_en AS station_name_en,
|
||||
sc.direction_note,
|
||||
ARRAY(SELECT to_char(t, 'HH24:MI') FROM unnest(sc.departure_times) AS t) AS departure_times,
|
||||
sc.variants,
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
use serde::Serialize;
|
||||
use sqlx::types::Json as SqlxJson;
|
||||
|
||||
#[derive(Debug, Serialize, sqlx::FromRow)]
|
||||
pub struct SponsorRow {
|
||||
pub slug: String,
|
||||
pub name_th: String,
|
||||
pub name_en: Option<String>,
|
||||
pub website_url: Option<String>,
|
||||
pub display_order: i16,
|
||||
pub meta: SqlxJson<serde_json::Value>,
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
use super::service;
|
||||
use crate::error::AppResult;
|
||||
use crate::state::AppState;
|
||||
use axum::{extract::State, routing::get, Json, Router};
|
||||
|
||||
pub fn route() -> Router<AppState> {
|
||||
Router::new().route("/api/sponsors", get(handler))
|
||||
}
|
||||
|
||||
async fn handler(State(state): State<AppState>) -> AppResult<Json<serde_json::Value>> {
|
||||
let rows = service::handle(&state).await?;
|
||||
Ok(Json(serde_json::json!({ "items": rows })))
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
pub mod dto;
|
||||
pub mod handler;
|
||||
pub mod repo;
|
||||
pub mod service;
|
||||
|
||||
pub use handler::route;
|
||||
@@ -0,0 +1,11 @@
|
||||
use super::dto::SponsorRow;
|
||||
use sqlx::PgPool;
|
||||
|
||||
pub async fn list(pool: &PgPool) -> Result<Vec<SponsorRow>, sqlx::Error> {
|
||||
sqlx::query_as::<_, SponsorRow>(
|
||||
"SELECT slug, name_th, name_en, website_url, display_order, meta \
|
||||
FROM sponsors WHERE is_active ORDER BY display_order, slug",
|
||||
)
|
||||
.fetch_all(pool)
|
||||
.await
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
use super::{dto::SponsorRow, repo};
|
||||
use crate::error::AppResult;
|
||||
use crate::state::AppState;
|
||||
|
||||
pub async fn handle(state: &AppState) -> AppResult<Vec<SponsorRow>> {
|
||||
Ok(repo::list(&state.db).await?)
|
||||
}
|
||||
@@ -13,8 +13,11 @@ pub struct StopRow {
|
||||
pub id: i32,
|
||||
pub code: String,
|
||||
pub name_th: String,
|
||||
pub name_en: Option<String>,
|
||||
pub city_th: Option<String>,
|
||||
pub city_en: Option<String>,
|
||||
pub province_th: Option<String>,
|
||||
pub province_en: Option<String>,
|
||||
pub station_type: String,
|
||||
pub attributes: SqlxJson<serde_json::Value>,
|
||||
pub images: SqlxJson<serde_json::Value>,
|
||||
|
||||
@@ -4,7 +4,8 @@ use sqlx::PgPool;
|
||||
pub async fn list(pool: &PgPool, q: &ListStopsQuery) -> Result<Vec<StopRow>, sqlx::Error> {
|
||||
let (min_lng, min_lat, max_lng, max_lat) = parse_bbox(q.bbox.as_deref());
|
||||
let sql = r#"
|
||||
SELECT s.id, s.code, s.name_th, s.city_th, s.province_th,
|
||||
SELECT s.id, s.code, s.name_th, s.name_en, s.city_th, s.city_en,
|
||||
s.province_th, s.province_en,
|
||||
s.station_type::text AS station_type, s.attributes,
|
||||
COALESCE((
|
||||
SELECT jsonb_agg(jsonb_build_object(
|
||||
|
||||
@@ -9,6 +9,7 @@ pub mod list_route_stops;
|
||||
pub mod list_stops;
|
||||
pub mod get_stop;
|
||||
pub mod list_schedules;
|
||||
pub mod list_sponsors;
|
||||
pub mod upload_image;
|
||||
pub mod list_images;
|
||||
pub mod delete_image;
|
||||
@@ -27,6 +28,7 @@ pub fn router() -> Router<AppState> {
|
||||
.merge(list_stops::route())
|
||||
.merge(get_stop::route())
|
||||
.merge(list_schedules::route())
|
||||
.merge(list_sponsors::route())
|
||||
.merge(upload_image::route())
|
||||
.merge(list_images::route())
|
||||
.merge(delete_image::route())
|
||||
|
||||
@@ -1,13 +1,49 @@
|
||||
{
|
||||
"provinces": [
|
||||
{ "province_id": 1, "province_name_th": "อ่างทอง" },
|
||||
{ "province_id": 2, "province_name_th": "อยุธยา" },
|
||||
{ "province_id": 3, "province_name_th": "ปทุมธานี" },
|
||||
{ "province_id": 4, "province_name_th": "กรุงเทพมหานคร" },
|
||||
{ "province_id": 5, "province_name_th": "สุพรรณบุรี" },
|
||||
{ "province_id": 6, "province_name_th": "สระบุรี" },
|
||||
{ "province_id": 7, "province_name_th": "ลพบุรี" },
|
||||
{ "province_id": 8, "province_name_th": "สิงห์บุรี" },
|
||||
{ "province_id": 9, "province_name_th": "ชัยนาท" }
|
||||
{
|
||||
"province_id": 1,
|
||||
"province_name_th": "อ่างทอง",
|
||||
"province_name_en": "Ang Thong"
|
||||
},
|
||||
{
|
||||
"province_id": 2,
|
||||
"province_name_th": "อยุธยา",
|
||||
"province_name_en": "Ayutthaya"
|
||||
},
|
||||
{
|
||||
"province_id": 3,
|
||||
"province_name_th": "ปทุมธานี",
|
||||
"province_name_en": "Pathum Thani"
|
||||
},
|
||||
{
|
||||
"province_id": 4,
|
||||
"province_name_th": "กรุงเทพมหานคร",
|
||||
"province_name_en": "Bangkok"
|
||||
},
|
||||
{
|
||||
"province_id": 5,
|
||||
"province_name_th": "สุพรรณบุรี",
|
||||
"province_name_en": "Suphan Buri"
|
||||
},
|
||||
{
|
||||
"province_id": 6,
|
||||
"province_name_th": "สระบุรี",
|
||||
"province_name_en": "Saraburi"
|
||||
},
|
||||
{
|
||||
"province_id": 7,
|
||||
"province_name_th": "ลพบุรี",
|
||||
"province_name_en": "Lopburi"
|
||||
},
|
||||
{
|
||||
"province_id": 8,
|
||||
"province_name_th": "สิงห์บุรี",
|
||||
"province_name_en": "Sing Buri"
|
||||
},
|
||||
{
|
||||
"province_id": 9,
|
||||
"province_name_th": "ชัยนาท",
|
||||
"province_name_en": "Chai Nat"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -5,28 +5,32 @@
|
||||
"route_group_id": 1,
|
||||
"route_group_label": "หมวดเส้นทางภายในเทศบาล",
|
||||
"display_order": 1,
|
||||
"is_active": true
|
||||
"is_active": true,
|
||||
"route_group_label_en": "Municipal routes"
|
||||
},
|
||||
{
|
||||
"route_group": "bangkok",
|
||||
"route_group_id": 2,
|
||||
"route_group_label": "หมวดเส้นทางเข้ากรุงเทพฯ",
|
||||
"display_order": 2,
|
||||
"is_active": true
|
||||
"is_active": true,
|
||||
"route_group_label_en": "Bangkok-bound routes"
|
||||
},
|
||||
{
|
||||
"route_group": "interprovincial",
|
||||
"route_group_id": 3,
|
||||
"route_group_label": "หมวดเส้นทางระหว่างจังหวัด",
|
||||
"display_order": 3,
|
||||
"is_active": true
|
||||
"is_active": true,
|
||||
"route_group_label_en": "Interprovincial routes"
|
||||
},
|
||||
{
|
||||
"route_group": "in_province",
|
||||
"route_group_id": 4,
|
||||
"route_group_label": "หมวดเส้นทางภายในจังหวัด",
|
||||
"display_order": 4,
|
||||
"is_active": true
|
||||
"is_active": true,
|
||||
"route_group_label_en": "In-province routes"
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -6,10 +6,26 @@
|
||||
"vehicle_type": "bus",
|
||||
"route_group": "bangkok",
|
||||
"route_group_id": 2,
|
||||
"province_ids": [1, 2, 3, 4],
|
||||
"phone": ["+6684 337 7376", "+6662 381 5828"],
|
||||
"web_url": ["facebook","https://www.facebook.com/profile.php?id=100063523693753"],
|
||||
"station_ids": [1, 15, 6]
|
||||
"province_ids": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4
|
||||
],
|
||||
"phone": [
|
||||
"+6684 337 7376",
|
||||
"+6662 381 5828"
|
||||
],
|
||||
"web_url": [
|
||||
"facebook",
|
||||
"https://www.facebook.com/profile.php?id=100063523693753"
|
||||
],
|
||||
"station_ids": [
|
||||
1,
|
||||
15,
|
||||
6
|
||||
],
|
||||
"route_name_en": "Bangkok - Ang Thong (Asia Line)"
|
||||
},
|
||||
{
|
||||
"route_id": "15",
|
||||
@@ -17,10 +33,27 @@
|
||||
"vehicle_type": "bus",
|
||||
"route_group": "bangkok",
|
||||
"route_group_id": 2,
|
||||
"province_ids": [1, 2, 3, 4],
|
||||
"phone": ["+6693 249 5788"],
|
||||
"web_url": ["line","https://line.me/ti/g2/tAJzKxqg-CLv1PJ06PRxlPohHAd3rMOWrVAgMA?utm_source=invitation&utm_medium=link_copy&utm_campaign=default"],
|
||||
"station_ids": [1, 2, 4, 5, 6]
|
||||
"province_ids": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4
|
||||
],
|
||||
"phone": [
|
||||
"+6693 249 5788"
|
||||
],
|
||||
"web_url": [
|
||||
"line",
|
||||
"https://line.me/ti/g2/tAJzKxqg-CLv1PJ06PRxlPohHAd3rMOWrVAgMA?utm_source=invitation&utm_medium=link_copy&utm_campaign=default"
|
||||
],
|
||||
"station_ids": [
|
||||
1,
|
||||
2,
|
||||
4,
|
||||
5,
|
||||
6
|
||||
],
|
||||
"route_name_en": "Bangkok - Ang Thong (Inner Line)"
|
||||
},
|
||||
{
|
||||
"route_id": "951",
|
||||
@@ -28,10 +61,25 @@
|
||||
"vehicle_type": "van",
|
||||
"route_group": "bangkok",
|
||||
"route_group_id": 2,
|
||||
"province_ids": [1, 5, 4],
|
||||
"phone": ["+6686 099 4250"],
|
||||
"web_url": ["facebook","https://www.facebook.com/groups/1323166441639529"],
|
||||
"station_ids": [9, 5, 6, 8 ]
|
||||
"province_ids": [
|
||||
1,
|
||||
5,
|
||||
4
|
||||
],
|
||||
"phone": [
|
||||
"+6686 099 4250"
|
||||
],
|
||||
"web_url": [
|
||||
"facebook",
|
||||
"https://www.facebook.com/groups/1323166441639529"
|
||||
],
|
||||
"station_ids": [
|
||||
9,
|
||||
5,
|
||||
6,
|
||||
8
|
||||
],
|
||||
"route_name_en": "Bangkok - Wiset Chai Chan - Suphan Buri"
|
||||
},
|
||||
{
|
||||
"route_id": "952",
|
||||
@@ -39,10 +87,20 @@
|
||||
"vehicle_type": "van",
|
||||
"route_group": "bangkok",
|
||||
"route_group_id": 2,
|
||||
"province_ids": [1, 4],
|
||||
"phone": ["+6664 238 8698"],
|
||||
"province_ids": [
|
||||
1,
|
||||
4
|
||||
],
|
||||
"phone": [
|
||||
"+6664 238 8698"
|
||||
],
|
||||
"web_url": null,
|
||||
"station_ids": [11, 12, 8]
|
||||
"station_ids": [
|
||||
11,
|
||||
12,
|
||||
8
|
||||
],
|
||||
"route_name_en": "Bangkok - Wiset Chai Chan"
|
||||
},
|
||||
{
|
||||
"route_id": "954",
|
||||
@@ -50,10 +108,26 @@
|
||||
"vehicle_type": "van",
|
||||
"route_group": "bangkok",
|
||||
"route_group_id": 2,
|
||||
"province_ids": [1, 2, 3, 4, 5],
|
||||
"phone": ["+6690 140 3636"],
|
||||
"web_url": ["facebook","https://shorturl.asia/Qe0s3"],
|
||||
"station_ids": [ 5, 6, 8]
|
||||
"province_ids": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
],
|
||||
"phone": [
|
||||
"+6690 140 3636"
|
||||
],
|
||||
"web_url": [
|
||||
"facebook",
|
||||
"https://shorturl.asia/Qe0s3"
|
||||
],
|
||||
"station_ids": [
|
||||
5,
|
||||
6,
|
||||
8
|
||||
],
|
||||
"route_name_en": "Bangkok - Tha Chang"
|
||||
},
|
||||
{
|
||||
"route_id": "8",
|
||||
@@ -61,10 +135,30 @@
|
||||
"vehicle_type": "van",
|
||||
"route_group": "bangkok",
|
||||
"route_group_id": 2,
|
||||
"province_ids": [1, 2, 3, 4, 8, 9],
|
||||
"phone": ["+6656-412264", "+6686-4491276", "+6688-2716613"],
|
||||
"web_url": ["www","https://www.chainattour.com/th-th/timetables"],
|
||||
"station_ids": [5, 6, 8, 13]
|
||||
"province_ids": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
8,
|
||||
9
|
||||
],
|
||||
"phone": [
|
||||
"+6656-412264",
|
||||
"+6686-4491276",
|
||||
"+6688-2716613"
|
||||
],
|
||||
"web_url": [
|
||||
"www",
|
||||
"https://www.chainattour.com/th-th/timetables"
|
||||
],
|
||||
"station_ids": [
|
||||
5,
|
||||
6,
|
||||
8,
|
||||
13
|
||||
],
|
||||
"route_name_en": "Bangkok - Sankhaburi - Chai Nat"
|
||||
},
|
||||
{
|
||||
"route_id": "101",
|
||||
@@ -72,10 +166,23 @@
|
||||
"vehicle_type": "bus",
|
||||
"route_group": "interprovincial",
|
||||
"route_group_id": 3,
|
||||
"province_ids": [1, 2],
|
||||
"phone": ["+6664 963 9025"],
|
||||
"web_url": ["line","https://line.me/ti/g2/u1QdJvWSUV20awFiXVw70AgGIwxXTHuq2W1Vfg?utm_source=invitation&utm_medium=link_copy&utm_campaign=default"],
|
||||
"station_ids": [1, 2, 3]
|
||||
"province_ids": [
|
||||
1,
|
||||
2
|
||||
],
|
||||
"phone": [
|
||||
"+6664 963 9025"
|
||||
],
|
||||
"web_url": [
|
||||
"line",
|
||||
"https://line.me/ti/g2/u1QdJvWSUV20awFiXVw70AgGIwxXTHuq2W1Vfg?utm_source=invitation&utm_medium=link_copy&utm_campaign=default"
|
||||
],
|
||||
"station_ids": [
|
||||
1,
|
||||
2,
|
||||
3
|
||||
],
|
||||
"route_name_en": "Ang Thong - Pa Mok - Ayutthaya"
|
||||
},
|
||||
{
|
||||
"route_id": "464",
|
||||
@@ -83,10 +190,26 @@
|
||||
"vehicle_type": "bus",
|
||||
"route_group": "interprovincial",
|
||||
"route_group_id": 3,
|
||||
"province_ids": [1, 2, 5, 6],
|
||||
"phone": ["+6699 039 3343", "+6692 482 4781"],
|
||||
"web_url": ["line","https://line.me/ti/g2/tXBwCvja_Ign9PlboFugqx_NJWbxVb31J1TSMQ"],
|
||||
"station_ids": [1, 9, 10]
|
||||
"province_ids": [
|
||||
1,
|
||||
2,
|
||||
5,
|
||||
6
|
||||
],
|
||||
"phone": [
|
||||
"+6699 039 3343",
|
||||
"+6692 482 4781"
|
||||
],
|
||||
"web_url": [
|
||||
"line",
|
||||
"https://line.me/ti/g2/tXBwCvja_Ign9PlboFugqx_NJWbxVb31J1TSMQ"
|
||||
],
|
||||
"station_ids": [
|
||||
1,
|
||||
9,
|
||||
10
|
||||
],
|
||||
"route_name_en": "Suphan Buri - Ang Thong - Saraburi"
|
||||
},
|
||||
{
|
||||
"route_id": "641",
|
||||
@@ -94,10 +217,21 @@
|
||||
"vehicle_type": "bus",
|
||||
"route_group": "interprovincial",
|
||||
"route_group_id": 3,
|
||||
"province_ids": [1, 2, 7],
|
||||
"phone": ["+6689 084 2136"],
|
||||
"province_ids": [
|
||||
1,
|
||||
2,
|
||||
7
|
||||
],
|
||||
"phone": [
|
||||
"+6689 084 2136"
|
||||
],
|
||||
"web_url": null,
|
||||
"station_ids": [1, 7, 8]
|
||||
"station_ids": [
|
||||
1,
|
||||
7,
|
||||
8
|
||||
],
|
||||
"route_name_en": "Ang Thong - Ban Phraek - Lopburi"
|
||||
},
|
||||
{
|
||||
"route_id": "2194",
|
||||
@@ -105,10 +239,16 @@
|
||||
"vehicle_type": "van",
|
||||
"route_group": "interprovincial",
|
||||
"route_group_id": 3,
|
||||
"province_ids": [2],
|
||||
"province_ids": [
|
||||
2
|
||||
],
|
||||
"phone": [],
|
||||
"web_url": null,
|
||||
"station_ids": [4, 8]
|
||||
"station_ids": [
|
||||
4,
|
||||
8
|
||||
],
|
||||
"route_name_en": "Hua Wiang - Ayutthaya"
|
||||
},
|
||||
{
|
||||
"route_id": "324",
|
||||
@@ -116,10 +256,16 @@
|
||||
"vehicle_type": "bus",
|
||||
"route_group": "in_province",
|
||||
"route_group_id": 4,
|
||||
"province_ids": [1],
|
||||
"province_ids": [
|
||||
1
|
||||
],
|
||||
"phone": [],
|
||||
"web_url": null,
|
||||
"station_ids": [1, 8]
|
||||
"station_ids": [
|
||||
1,
|
||||
8
|
||||
],
|
||||
"route_name_en": "Ang Thong - Wat Phikul Thong"
|
||||
},
|
||||
{
|
||||
"route_id": "1011",
|
||||
@@ -127,10 +273,19 @@
|
||||
"vehicle_type": "bus",
|
||||
"route_group": "in_province",
|
||||
"route_group_id": 4,
|
||||
"province_ids": [1],
|
||||
"phone": ["+6695 962 3008", "+6661 431 2399"],
|
||||
"province_ids": [
|
||||
1
|
||||
],
|
||||
"phone": [
|
||||
"+6695 962 3008",
|
||||
"+6661 431 2399"
|
||||
],
|
||||
"web_url": null,
|
||||
"station_ids": [1, 8]
|
||||
"station_ids": [
|
||||
1,
|
||||
8
|
||||
],
|
||||
"route_name_en": "Ang Thong - Sawang Ha - Si Bua Thong"
|
||||
},
|
||||
{
|
||||
"route_id": "2231",
|
||||
@@ -138,10 +293,16 @@
|
||||
"vehicle_type": "van",
|
||||
"route_group": "in_province",
|
||||
"route_group_id": 4,
|
||||
"province_ids": [1],
|
||||
"province_ids": [
|
||||
1
|
||||
],
|
||||
"phone": [],
|
||||
"web_url": null,
|
||||
"station_ids": [1,8]
|
||||
"station_ids": [
|
||||
1,
|
||||
8
|
||||
],
|
||||
"route_name_en": "Ang Thong - Mahanam"
|
||||
},
|
||||
{
|
||||
"route_id": "999",
|
||||
@@ -149,10 +310,17 @@
|
||||
"vehicle_type": "bus",
|
||||
"route_group": "bangkok",
|
||||
"route_group_id": 2,
|
||||
"province_ids": [1],
|
||||
"phone": ["0-3561-1344"],
|
||||
"province_ids": [
|
||||
1
|
||||
],
|
||||
"phone": [
|
||||
"0-3561-1344"
|
||||
],
|
||||
"web_url": "999.html",
|
||||
"station_ids": [14]
|
||||
"station_ids": [
|
||||
14
|
||||
],
|
||||
"route_name_en": "Transport Co., Ltd. (Ang Thong Terminal)"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,10 @@
|
||||
"province_th": "อ่างทอง",
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 14.594892813219857,
|
||||
"longitude": 100.45160878714961
|
||||
"longitude": 100.45160878714961,
|
||||
"station_name_en": "Ang Thong Bus Terminal",
|
||||
"city_en": "Mueang Ang Thong",
|
||||
"province_en": "Ang Thong"
|
||||
},
|
||||
{
|
||||
"station_id": 2,
|
||||
@@ -18,7 +21,10 @@
|
||||
"province_th": "อ่างทอง",
|
||||
"station_type": "local_terminal",
|
||||
"latitude": 14.494620342173755,
|
||||
"longitude": 100.44663039105356
|
||||
"longitude": 100.44663039105356,
|
||||
"station_name_en": "Pa Mok Bus Terminal",
|
||||
"city_en": "Pa Mok",
|
||||
"province_en": "Ang Thong"
|
||||
},
|
||||
{
|
||||
"station_id": 3,
|
||||
@@ -28,7 +34,10 @@
|
||||
"province_th": "อยุธยา",
|
||||
"station_type": "local_stop",
|
||||
"latitude": 14.359304063054642,
|
||||
"longitude": 100.57729051741023
|
||||
"longitude": 100.57729051741023,
|
||||
"station_name_en": "Ayutthaya - Pa Mok - Ang Thong Songthaew Terminal",
|
||||
"city_en": "Ayutthaya",
|
||||
"province_en": "Ayutthaya"
|
||||
},
|
||||
{
|
||||
"station_id": 4,
|
||||
@@ -38,7 +47,10 @@
|
||||
"province_th": "อยุธยา",
|
||||
"station_type": "market",
|
||||
"latitude": 14.358600551289177,
|
||||
"longitude": 100.57740172977549
|
||||
"longitude": 100.57740172977549,
|
||||
"station_name_en": "Chao Phrom Market",
|
||||
"city_en": "Ayutthaya",
|
||||
"province_en": "Ayutthaya"
|
||||
},
|
||||
{
|
||||
"station_id": 5,
|
||||
@@ -48,7 +60,10 @@
|
||||
"province_th": "ปทุมธานี",
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 13.989149716177037,
|
||||
"longitude": 100.61472107391762
|
||||
"longitude": 100.61472107391762,
|
||||
"station_name_en": "Rangsit Interprovincial Van Terminal",
|
||||
"city_en": "Rangsit",
|
||||
"province_en": "Pathum Thani"
|
||||
},
|
||||
{
|
||||
"station_id": 6,
|
||||
@@ -58,7 +73,10 @@
|
||||
"province_th": "กรุงเทพมหานคร",
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 13.811802065338766,
|
||||
"longitude": 100.5498111488118
|
||||
"longitude": 100.5498111488118,
|
||||
"station_name_en": "Chatuchak Minibus Terminal (van / minibus)",
|
||||
"city_en": "Chatuchak",
|
||||
"province_en": "Bangkok"
|
||||
},
|
||||
{
|
||||
"station_id": 7,
|
||||
@@ -68,7 +86,10 @@
|
||||
"province_th": "ลพบุรี",
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 14.798689894136096,
|
||||
"longitude": 100.63316793418102
|
||||
"longitude": 100.63316793418102,
|
||||
"station_name_en": "Lopburi Bus Terminal",
|
||||
"city_en": "Mueang Lopburi",
|
||||
"province_en": "Lopburi"
|
||||
},
|
||||
{
|
||||
"station_id": 8,
|
||||
@@ -76,7 +97,10 @@
|
||||
"station_name_th": "จุดขึ้นรถประจำทางอื่นๆ",
|
||||
"city_th": null,
|
||||
"province_th": null,
|
||||
"station_type": "local_stop"
|
||||
"station_type": "local_stop",
|
||||
"station_name_en": "Other bus boarding points",
|
||||
"city_en": null,
|
||||
"province_en": null
|
||||
},
|
||||
{
|
||||
"station_id": 9,
|
||||
@@ -86,7 +110,10 @@
|
||||
"province_th": "สุพรรณบุรี",
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 14.473737243267138,
|
||||
"longitude": 100.12544591300441
|
||||
"longitude": 100.12544591300441,
|
||||
"station_name_en": "Suphan Buri Bus Terminal",
|
||||
"city_en": "Mueang Suphan Buri",
|
||||
"province_en": "Suphan Buri"
|
||||
},
|
||||
{
|
||||
"station_id": 10,
|
||||
@@ -96,7 +123,10 @@
|
||||
"province_th": "สระบุรี",
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 14.523709233795955,
|
||||
"longitude": 100.91901540002084
|
||||
"longitude": 100.91901540002084,
|
||||
"station_name_en": "Saraburi Bus Terminal",
|
||||
"city_en": "Mueang Saraburi",
|
||||
"province_en": "Saraburi"
|
||||
},
|
||||
{
|
||||
"station_id": 11,
|
||||
@@ -106,7 +136,10 @@
|
||||
"province_th": "อ่างทอง",
|
||||
"station_type": "private_stop",
|
||||
"latitude": 14.59666118926178,
|
||||
"longitude": 100.35213848667698
|
||||
"longitude": 100.35213848667698,
|
||||
"station_name_en": "Namo Supermarket",
|
||||
"city_en": "Wiset Chai Chan",
|
||||
"province_en": "Ang Thong"
|
||||
},
|
||||
{
|
||||
"station_id": 12,
|
||||
@@ -116,7 +149,10 @@
|
||||
"province_th": "กรุงเทพมหานคร",
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 13.786761431062317,
|
||||
"longitude": 100.46776017448384
|
||||
"longitude": 100.46776017448384,
|
||||
"station_name_en": "Old Southern Bus Terminal (Pin Klao) - van stop",
|
||||
"city_en": "Bangkok Noi",
|
||||
"province_en": "Bangkok"
|
||||
},
|
||||
{
|
||||
"station_id": 13,
|
||||
@@ -126,7 +162,10 @@
|
||||
"province_th": "ชัยนาท",
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 15.197359140046297,
|
||||
"longitude": 100.1245558104688
|
||||
"longitude": 100.1245558104688,
|
||||
"station_name_en": "Chai Nat Bus Terminal",
|
||||
"city_en": "Mueang Chai Nat",
|
||||
"province_en": "Chai Nat"
|
||||
},
|
||||
{
|
||||
"station_id": 14,
|
||||
@@ -136,7 +175,10 @@
|
||||
"province_th": "อ่างทอง",
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 14.580083239362345,
|
||||
"longitude": 100.4841456500421
|
||||
"longitude": 100.4841456500421,
|
||||
"station_name_en": "999 Ang Thong Terminal - Asia / Northern Line (no town)",
|
||||
"city_en": "Mueang Ang Thong",
|
||||
"province_en": "Ang Thong"
|
||||
},
|
||||
{
|
||||
"station_id": 15,
|
||||
@@ -145,8 +187,11 @@
|
||||
"city_th": "รังสิต",
|
||||
"province_th": "ปทุมธานี",
|
||||
"station_type": "main_terminal",
|
||||
"latitude": 13.9906952188289,
|
||||
"longitude": 100.61469598208095
|
||||
"latitude": 13.9906952188289,
|
||||
"longitude": 100.61469598208095,
|
||||
"station_name_en": "7-Eleven Kinsa Branch",
|
||||
"city_en": "Rangsit",
|
||||
"province_en": "Pathum Thani"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+26
-1
@@ -59,6 +59,7 @@ export function resolveFileUrl(path: string): string {
|
||||
|
||||
export const api = {
|
||||
provinces: () => request<{ items: Province[] }>("/provinces"),
|
||||
sponsors: () => request<{ items: Sponsor[] }>("/sponsors"),
|
||||
routeGroups: () => request<{ items: RouteGroup[] }>("/route-groups"),
|
||||
routes: (params: { group?: string; province?: number } = {}) => {
|
||||
const q = new URLSearchParams();
|
||||
@@ -110,11 +111,16 @@ export const api = {
|
||||
},
|
||||
};
|
||||
|
||||
export type Province = { id: number; name_th: string };
|
||||
export type Province = {
|
||||
id: number;
|
||||
name_th: string;
|
||||
name_en: string | null;
|
||||
};
|
||||
export type RouteGroup = {
|
||||
id: number;
|
||||
code: string;
|
||||
label_th: string;
|
||||
label_en: string | null;
|
||||
display_order: number;
|
||||
is_active: boolean;
|
||||
};
|
||||
@@ -128,10 +134,12 @@ export type ImageRef = {
|
||||
export type RouteListItem = {
|
||||
route_id: string;
|
||||
name_th: string;
|
||||
name_en: string | null;
|
||||
vehicle_type: string;
|
||||
route_group_id: number;
|
||||
route_group_code: string;
|
||||
route_group_label_th: string;
|
||||
route_group_label_en: string | null;
|
||||
contact: Record<string, unknown>;
|
||||
metadata: Record<string, unknown>;
|
||||
province_ids: number[];
|
||||
@@ -143,8 +151,11 @@ export type RouteStop = {
|
||||
station_id: number;
|
||||
code: string;
|
||||
name_th: string;
|
||||
name_en: string | null;
|
||||
city_th: string | null;
|
||||
city_en: string | null;
|
||||
province_th: string | null;
|
||||
province_en: string | null;
|
||||
station_type: string;
|
||||
attributes: Record<string, unknown>;
|
||||
};
|
||||
@@ -152,8 +163,11 @@ export type StopListItem = {
|
||||
id: number;
|
||||
code: string;
|
||||
name_th: string;
|
||||
name_en: string | null;
|
||||
city_th: string | null;
|
||||
city_en: string | null;
|
||||
province_th: string | null;
|
||||
province_en: string | null;
|
||||
station_type: string;
|
||||
attributes: Record<string, unknown>;
|
||||
images: ImageRef[];
|
||||
@@ -165,17 +179,28 @@ export type StopDetail = StopListItem & {
|
||||
routes: {
|
||||
route_id: string;
|
||||
name_th: string;
|
||||
name_en: string | null;
|
||||
vehicle_type: string;
|
||||
route_group_code: string;
|
||||
route_group_label_th: string;
|
||||
route_group_label_en: string | null;
|
||||
}[];
|
||||
};
|
||||
export type Sponsor = {
|
||||
slug: string;
|
||||
name_th: string;
|
||||
name_en: string | null;
|
||||
website_url: string | null;
|
||||
display_order: number;
|
||||
meta: Record<string, unknown>;
|
||||
};
|
||||
export type Schedule = {
|
||||
id: number;
|
||||
route_id: string;
|
||||
station_id: number;
|
||||
station_code: string;
|
||||
station_name_th: string;
|
||||
station_name_en: string | null;
|
||||
direction_note: string | null;
|
||||
departure_times: string[];
|
||||
variants: Record<string, unknown>;
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
// @ts-nocheck
|
||||
|
||||
/* เลือกชื่อเฉพาะตามภาษา: xxx_en → xxx_th (ผ่าน I18N.name ของ i18n.ts) */
|
||||
function nm(o: any, base: string): string {
|
||||
const I = (window as any).I18N;
|
||||
return I && I.name ? I.name(o, base) : ((o && o[base + '_th']) || '');
|
||||
}
|
||||
/* Ported from web-at-transit-mock/ui/partials/blog.init.js — logic unchanged; bootstrap converted to mount(). */
|
||||
/* ============================================================
|
||||
หน้าบทความ — loader + สลับมุมมอง ตาราง/รายการ + หน้าอ่านบทความ
|
||||
@@ -332,7 +338,7 @@
|
||||
if (!o.station_code) return Promise.resolve(null);
|
||||
return stationByCode(o.station_code).then(function (s) {
|
||||
if (!s || numOrNull(s.latitude) == null) return null;
|
||||
return { coords: [numOrNull(s.latitude), numOrNull(s.longitude)], label: o.label || s.station_name_th || '' };
|
||||
return { coords: [numOrNull(s.latitude), numOrNull(s.longitude)], label: o.label || nm(s, 'station_name') || '' };
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
// @ts-nocheck
|
||||
|
||||
/* เลือกชื่อเฉพาะตามภาษา: xxx_en → xxx_th (ผ่าน I18N.name ของ i18n.ts) */
|
||||
function nm(o: any, base: string): string {
|
||||
const I = (window as any).I18N;
|
||||
return I && I.name ? I.name(o, base) : ((o && o[base + '_th']) || '');
|
||||
}
|
||||
/* Ported from web-at-transit-mock/ui/partials/checkSchedule.init.js — logic unchanged; bootstrap converted to mount(). */
|
||||
/* ============================================================
|
||||
checkSchedule.init.js — หน้า #/check/<รหัสสาย>
|
||||
@@ -289,7 +295,7 @@
|
||||
var det = document.createElement('details');
|
||||
det.className = 'mu-stop-card';
|
||||
det.open = true;
|
||||
var where = [x.city_th, x.province_th].filter(Boolean).join(' · ');
|
||||
var where = [nm(x, 'city'), nm(x, 'province')].filter(Boolean).join(' · ');
|
||||
var sum = document.createElement('summary');
|
||||
sum.innerHTML =
|
||||
'<span class="mu-stop-head ' + TONES.transfer + '">' +
|
||||
@@ -427,7 +433,7 @@
|
||||
routes.forEach(function (r) {
|
||||
var o = document.createElement('option');
|
||||
o.value = r.route_id;
|
||||
o.textContent = 'สาย ' + r.route_id + (r.route_name_th ? ' - ' + r.route_name_th : '');
|
||||
o.textContent = 'สาย ' + r.route_id + (nm(r, 'route_name') ? ' - ' + nm(r, 'route_name') : '');
|
||||
sel.appendChild(o);
|
||||
});
|
||||
sel.value = rid;
|
||||
@@ -438,7 +444,7 @@
|
||||
|
||||
/* Hero + คำอธิบายโซน */
|
||||
var hero = $('check-hero-route');
|
||||
if (hero) hero.textContent = 'สาย ' + rid + (route.route_name_th ? ' · ' + route.route_name_th : '');
|
||||
if (hero) hero.textContent = 'สาย ' + rid + (nm(route, 'route_name') ? ' · ' + nm(route, 'route_name') : '');
|
||||
|
||||
/* "อัปเดตล่าสุด N วันที่แล้ว" — วันที่จากฟิลด์ updated ของไฟล์ตารางสายนี้ (Schedules.updatedOf)
|
||||
แยกบรรทัดของตัวเอง (#check-updated-line) เพราะ #check-now-line แสดงเวลาปัจจุบันอยู่แล้ว */
|
||||
@@ -472,8 +478,8 @@
|
||||
return {
|
||||
sid: sid,
|
||||
st: st,
|
||||
name: isOtherHub && firstSubName ? firstSubName : (st ? st.station_name_th : 'จุดจอด ' + sid),
|
||||
city: st ? st.city_th : '',
|
||||
name: isOtherHub && firstSubName ? firstSubName : (st ? nm(st, 'station_name') : 'จุดจอด ' + sid),
|
||||
city: st ? nm(st, 'city') : '',
|
||||
code: st ? st.station_code : '',
|
||||
recs: recs.filter(function (r) { return String(r.route_id) === rid && r.station_id === sid; })
|
||||
};
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
// @ts-nocheck
|
||||
|
||||
/* เลือกชื่อเฉพาะตามภาษา: xxx_en → xxx_th (ผ่าน I18N.name ของ i18n.ts) */
|
||||
function nm(o: any, base: string): string {
|
||||
const I = (window as any).I18N;
|
||||
return I && I.name ? I.name(o, base) : ((o && o[base + '_th']) || '');
|
||||
}
|
||||
/* Ported from web-at-transit-mock/ui/partials/home.init.js — logic unchanged; bootstrap converted to mount(). */
|
||||
/* ---- ported module body ---- */
|
||||
'use strict';
|
||||
@@ -67,14 +73,14 @@
|
||||
PROVINCES.forEach(function (p) {
|
||||
var opt = document.createElement('option');
|
||||
opt.value = p.province_id;
|
||||
opt.textContent = p.province_name_th;
|
||||
opt.textContent = nm(p, 'province_name');
|
||||
if (p.province_id === startProvinceId) opt.selected = true;
|
||||
provinceSelect.appendChild(opt);
|
||||
});
|
||||
|
||||
function provinceName(id) {
|
||||
var p = PROVINCES.filter(function (x) { return x.province_id === id; })[0];
|
||||
return p ? p.province_name_th : '';
|
||||
return p ? nm(p, 'province_name') : '';
|
||||
}
|
||||
|
||||
function stationsFor(provinceId) {
|
||||
@@ -92,7 +98,7 @@
|
||||
list.forEach(function (st) {
|
||||
var opt = document.createElement('option');
|
||||
opt.value = st.station_code; /* ใช้รหัสสถานี = ลิงก์สั้น อ่านง่าย */
|
||||
opt.textContent = st.station_name_th;
|
||||
opt.textContent = nm(st, 'station_name');
|
||||
stationSelect.appendChild(opt);
|
||||
});
|
||||
|
||||
@@ -368,7 +374,7 @@
|
||||
a.innerHTML =
|
||||
'<div class="mu-card-head"><p class="mu-route-number">' + esc(r.route_id) + '</p></div>' +
|
||||
'<div class="mu-route-info">' +
|
||||
'<p class="mu-route-name">' + esc(r.route_name_th || '') + '</p>' +
|
||||
'<p class="mu-route-name">' + esc(nm(r, 'route_name')) + '</p>' +
|
||||
'<div class="mu-route-chip-wrap"></div>' +
|
||||
'</div>';
|
||||
var wrap = a.querySelector('.mu-route-chip-wrap');
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
// @ts-nocheck
|
||||
|
||||
/* เลือกชื่อเฉพาะตามภาษา: xxx_en → xxx_th (ผ่าน I18N.name ของ i18n.ts) */
|
||||
function nm(o: any, base: string): string {
|
||||
const I = (window as any).I18N;
|
||||
return I && I.name ? I.name(o, base) : ((o && o[base + '_th']) || '');
|
||||
}
|
||||
/* Ported from web-at-transit-mock/ui/map.js — logic unchanged. */
|
||||
/* ============================================================
|
||||
Atroute — แผนที่เส้นทาง (Leaflet, vanilla)
|
||||
@@ -147,7 +153,7 @@ window.ATMap = (function () {
|
||||
hit.forEach(function (o) {
|
||||
/* แตกเป็น "จุดจริง" ทีละจุด — ชื่อ ↔ พิกัด จับคู่ตามลำดับ (จุดที่ไม่มีพิกัด = ไม่ปักหมุด) */
|
||||
var subs = (window.OtherStop && OtherStop.stopsOf) ? OtherStop.stopsOf(o) : [];
|
||||
if (!subs.length) subs = [{ name: o.station_name_th, hasCoord: false, lat: null, lng: null }];
|
||||
if (!subs.length) subs = [{ name: nm(o, 'station_name'), hasCoord: false, lat: null, lng: null }];
|
||||
subs.forEach(function (sub, si) {
|
||||
stops.push({
|
||||
name: sub.name,
|
||||
@@ -164,7 +170,7 @@ window.ATMap = (function () {
|
||||
}
|
||||
}
|
||||
var st = byId[sid];
|
||||
if (st) stops.push({ name: st.station_name_th, pt: pointOf(st), code: st.station_code });
|
||||
if (st) stops.push({ name: nm(st, 'station_name'), pt: pointOf(st), code: st.station_code });
|
||||
});
|
||||
|
||||
var total = lineLengthKm([main]);
|
||||
@@ -333,12 +339,12 @@ window.ATMap = (function () {
|
||||
hits.forEach(function (h) {
|
||||
var s = h.station, pt = pointOf(s);
|
||||
if (!pt) return;
|
||||
var html = '<div class="at-pop"><b>' + esc(s.station_name_th) + '</b>';
|
||||
html += '<span>' + esc([s.city_th, s.province_th].filter(Boolean).join(' · ')) + '</span>';
|
||||
var html = '<div class="at-pop"><b>' + esc(nm(s, 'station_name')) + '</b>';
|
||||
html += '<span>' + esc([nm(s, 'city'), nm(s, 'province')].filter(Boolean).join(' · ')) + '</span>';
|
||||
if (s.station_code) html += '<a href="' + esc(href(opts, s.station_code)) + '">' + esc(t('map.viewStopPage')) + '</a>';
|
||||
html += '</div>';
|
||||
L.marker([pt[1], pt[0]], { icon: pinIcon('term') })
|
||||
.bindTooltip('<b>' + esc(s.station_name_th) + '</b><br>' + esc(s.province_th || ''), { direction: 'top', offset: [0, -9] })
|
||||
.bindTooltip('<b>' + esc(nm(s, 'station_name')) + '</b><br>' + esc(nm(s, 'province')), { direction: 'top', offset: [0, -9] })
|
||||
.bindPopup(html, { closeButton: false, offset: [0, -6] })
|
||||
.addTo(group);
|
||||
});
|
||||
@@ -468,7 +474,7 @@ window.ATMap = (function () {
|
||||
} else {
|
||||
rows = sts.map(function (h) {
|
||||
var k = kmFromStart(main, pointOf(h.station));
|
||||
return { name: h.station.station_name_th, km: k.km.toFixed(1), off: false, href: href(opts, h.station.station_code) };
|
||||
return { name: nm(h.station, 'station_name'), km: k.km.toFixed(1), off: false, href: href(opts, h.station.station_code) };
|
||||
}).sort(function (a, b) { return parseFloat(a.km) - parseFloat(b.km); });
|
||||
}
|
||||
renderKmList('route-map-list', rows);
|
||||
@@ -541,7 +547,7 @@ window.ATMap = (function () {
|
||||
/* opts.focus = จุดจริงของสายที่เลือก (เช่น จุดขึ้นรถประจำทางอื่นๆ → วัดสีบัวทอง) */
|
||||
var stPt = opts.focus ? pointOf(opts.focus) : pointOf(st);
|
||||
var focusFirst = (opts.focus && window.OtherStop && OtherStop.firstName) ? OtherStop.firstName(opts.focus) : null;
|
||||
var pinName = focusFirst || (opts.focus && opts.focus.station_name_th) || st.station_name_th;
|
||||
var pinName = focusFirst || (opts.focus && nm(opts.focus, 'station_name')) || nm(st, 'station_name');
|
||||
if (stPt) {
|
||||
L.marker([stPt[1], stPt[0]], { icon: pinIcon('here'), zIndexOffset: 1000 })
|
||||
.bindTooltip('<b>' + esc(pinName) + '</b><br>' + esc(t('map.thisStop')), { direction: 'top', offset: [0, -11] })
|
||||
@@ -621,7 +627,7 @@ window.ATMap = (function () {
|
||||
ul.className = 'at-near-list';
|
||||
near.forEach(function (x) {
|
||||
var li = document.createElement('li');
|
||||
var name = x.kind === 'station' ? x.o.station_name_th : (x.o.place || x.o.type);
|
||||
var name = x.kind === 'station' ? nm(x.o, 'station_name') : (x.o.place || x.o.type);
|
||||
var meta = [];
|
||||
if (x.kind === 'station') meta.push(t('map.legendTerminal'));
|
||||
else {
|
||||
@@ -661,7 +667,7 @@ window.ATMap = (function () {
|
||||
near.forEach(function (x) {
|
||||
var kind = x.kind === 'station' ? 'term' : 'stop';
|
||||
L.marker([x.pt[1], x.pt[0]], { icon: pinIcon(kind) })
|
||||
.bindTooltip(esc(x.kind === 'station' ? x.o.station_name_th : (x.o.place || x.o.type)), { direction: 'top', offset: [0, -8] })
|
||||
.bindTooltip(esc(x.kind === 'station' ? nm(x.o, 'station_name') : (x.o.place || x.o.type)), { direction: 'top', offset: [0, -8] })
|
||||
.addTo(map);
|
||||
pts.push([x.pt[1], x.pt[0]]);
|
||||
});
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
// @ts-nocheck
|
||||
|
||||
/* เลือกชื่อเฉพาะตามภาษา: xxx_en → xxx_th (ผ่าน I18N.name ของ i18n.ts) */
|
||||
function nm(o: any, base: string): string {
|
||||
const I = (window as any).I18N;
|
||||
return I && I.name ? I.name(o, base) : ((o && o[base + '_th']) || '');
|
||||
}
|
||||
/* Ported from web-at-transit-mock/ui/popular.js — logic unchanged. */
|
||||
/* popular.js — อัลกอริทึมนับ "สายที่เปิดดูบ่อย" สำหรับ footer (ฝั่งเบราว์เซอร์ ไม่มี backend)
|
||||
|
||||
@@ -111,7 +117,7 @@
|
||||
var li = document.createElement('li');
|
||||
var a = document.createElement('a');
|
||||
a.href = '/routes/' + id;
|
||||
a.textContent = 'สาย ' + id + (r.route_name_th ? ' · ' + r.route_name_th : '');
|
||||
a.textContent = 'สาย ' + id + (nm(r, 'route_name') ? ' · ' + nm(r, 'route_name') : '');
|
||||
li.appendChild(a);
|
||||
ul.appendChild(li);
|
||||
});
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
// @ts-nocheck
|
||||
|
||||
/* เลือกชื่อเฉพาะตามภาษา: xxx_en → xxx_th (ผ่าน I18N.name ของ i18n.ts) */
|
||||
function nm(o: any, base: string): string {
|
||||
const I = (window as any).I18N;
|
||||
return I && I.name ? I.name(o, base) : ((o && o[base + '_th']) || '');
|
||||
}
|
||||
/* Ported from web-at-transit-mock/ui/partials/busDetail.init.js — logic unchanged; bootstrap converted to mount(). */
|
||||
/* ============================================================
|
||||
busDetail.init.js — เติมข้อมูลหน้า #/routes/<รหัสสาย> จาก JSON
|
||||
@@ -335,8 +341,8 @@
|
||||
if (chipEl) {
|
||||
chipEl.className = 'mu-route-chip' + (route.route_group ? ' grp-' + route.route_group : '');
|
||||
}
|
||||
setText('route-title', route.route_name_th);
|
||||
document.title = 'Atroute — สาย ' + rid + (route.route_name_th ? ' ' + route.route_name_th : '');
|
||||
setText('route-title', nm(route, 'route_name'));
|
||||
document.title = 'Atroute — สาย ' + rid + (nm(route, 'route_name') ? ' ' + nm(route, 'route_name') : '');
|
||||
|
||||
/* dropdown: เติมจาก routes.json (ลำดับตามไฟล์) + เปลี่ยนแล้วไปสายนั้น */
|
||||
var sel = $('route-select');
|
||||
@@ -345,7 +351,7 @@
|
||||
list.forEach(function (r) {
|
||||
var o = document.createElement('option');
|
||||
o.value = r.route_id;
|
||||
o.textContent = 'สาย ' + r.route_id + (r.route_name_th ? ' - ' + r.route_name_th : '');
|
||||
o.textContent = 'สาย ' + r.route_id + (nm(r, 'route_name') ? ' - ' + nm(r, 'route_name') : '');
|
||||
sel.appendChild(o);
|
||||
});
|
||||
sel.value = rid;
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
// @ts-nocheck
|
||||
|
||||
/* เลือกชื่อเฉพาะตามภาษา: xxx_en → xxx_th (ผ่าน I18N.name ของ i18n.ts) */
|
||||
function nm(o: any, base: string): string {
|
||||
const I = (window as any).I18N;
|
||||
return I && I.name ? I.name(o, base) : ((o && o[base + '_th']) || '');
|
||||
}
|
||||
/* Ported from web-at-transit-mock/ui/partials/schedules.js — logic unchanged. */
|
||||
/* ============================================================
|
||||
schedules.js — ตัวอ่านข้อมูลตารางเวลา (ใช้ร่วมทุกหน้า)
|
||||
@@ -148,7 +154,7 @@
|
||||
fetch(DATA_URL + 'stations.json', { cache: 'no-store' })
|
||||
.then(function (r) { return r.ok ? r.json() : null; })
|
||||
.then(function (d) {
|
||||
((d && d.stations) || []).forEach(function (st) { STATION_NAMES[String(st.station_id)] = st.station_name_th; });
|
||||
((d && d.stations) || []).forEach(function (st) { STATION_NAMES[String(st.station_id)] = nm(st, 'station_name'); });
|
||||
})
|
||||
.catch(function () {});
|
||||
}
|
||||
@@ -156,7 +162,7 @@
|
||||
/* หน้าเว็บที่โหลด stations.json อยู่แล้วส่งชื่อเข้ามาได้ → ข้อความหมายเหตุมีชื่อทันที (ไม่ต้องรอ fetch) */
|
||||
function setStationNames(list) {
|
||||
((list && list.stations) || list || []).forEach(function (st) {
|
||||
if (st && st.station_id != null) STATION_NAMES[String(st.station_id)] = st.station_name_th;
|
||||
if (st && st.station_id != null) STATION_NAMES[String(st.station_id)] = nm(st, 'station_name');
|
||||
});
|
||||
}
|
||||
/* เรียกทันทีตอนไฟล์ถูกโหลด — จะทันรอบเรนเดอร์แรก (ชื่อจุดอ้างอิงในข้อความ "คำนวณจาก ...") */
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
// @ts-nocheck
|
||||
|
||||
/* เลือกชื่อเฉพาะตามภาษา: xxx_en → xxx_th (ผ่าน I18N.name ของ i18n.ts) */
|
||||
function nm(o: any, base: string): string {
|
||||
const I = (window as any).I18N;
|
||||
return I && I.name ? I.name(o, base) : ((o && o[base + '_th']) || '');
|
||||
}
|
||||
/* Ported from web-at-transit-mock/ui/partials/stopDetail.init.js — logic unchanged; bootstrap converted to mount(). */
|
||||
/* ============================================================
|
||||
stopDetail.init.js — หน้ารายละเอียดป้าย (#/stops/<รหัส>)
|
||||
@@ -121,13 +127,13 @@
|
||||
|
||||
/* ---------- เรนเดอร์: หัวป้าย ---------- */
|
||||
function renderHero(st, sum, photo, place) {
|
||||
var baseName = st.station_name_th || ('ป้าย ' + st.station_code);
|
||||
var baseName = nm(st, 'station_name') || ('ป้าย ' + st.station_code);
|
||||
/* จุดขึ้นรถประจำทางอื่นๆ: ต่อท้ายด้วยชื่อสถานที่จริงของสายที่กำลังดูอยู่ */
|
||||
var placeName = (place && window.OtherStop && OtherStop.firstName) ? OtherStop.firstName(place)
|
||||
: (place && place.station_name_th) ? place.station_name_th : null;
|
||||
: (place && nm(place, 'station_name')) ? nm(place, 'station_name') : null;
|
||||
var name = baseName + (placeName ? ' \u00b7 ' + placeName : '');
|
||||
var city = (place && place.city_th) || st.city_th || '';
|
||||
var prov = (place && place.province_th) || st.province_th || '';
|
||||
var city = (place && nm(place, 'city')) || nm(st, 'city') || '';
|
||||
var prov = (place && nm(place, 'province')) || nm(st, 'province') || '';
|
||||
|
||||
var crumb = $('stop-breadcrumb');
|
||||
if (crumb) crumb.innerHTML = '<a href="/">' + esc(t('nav.home')) + '</a>/ <a href="/stops">' +
|
||||
@@ -237,10 +243,10 @@
|
||||
/* จุดขึ้นรถประจำทางอื่นๆ → แสดง "ชื่อจุดจริง · อำเภอ" แทนคำว่าจุดจอดที่ N */
|
||||
/* จุดขึ้นรถประจำทางอื่นๆ ที่มีหลายจุด → โชว์จุดแรก + "(+N จุด)" ไม่ยัดชื่อทั้งชุด */
|
||||
var subs = (place && window.OtherStop && OtherStop.stopsOf) ? OtherStop.stopsOf(place) : [];
|
||||
var pName = subs.length ? subs[0].name : (place && place.station_name_th) || '';
|
||||
var pName = subs.length ? subs[0].name : (place && nm(place, 'station_name')) || '';
|
||||
var pMore = subs.length > 1 ? ' ' + t('stop.otherMore', { n: subs.length - 1 }) : '';
|
||||
var metaText = place
|
||||
? pName + pMore + (place.city_th ? ' \u00b7 ' + place.city_th : '')
|
||||
? pName + pMore + (nm(place, 'city') ? ' \u00b7 ' + nm(place, 'city') : '')
|
||||
: posLabel + (x.total > 1 ? ' \u00b7 ' + (x.index + 1) + '/' + x.total : '');
|
||||
var sum = document.createElement('summary');
|
||||
sum.innerHTML =
|
||||
@@ -248,7 +254,7 @@
|
||||
'<span class="mu-route-type-badge"><svg class="ic" aria-hidden="true"><use href="#ic-bus-front"/></svg> ' +
|
||||
esc(r.vehicle_type_th || t('type.terminal')) + '</span>' +
|
||||
'<span class="mu-stop-summary-main">' +
|
||||
'<strong>' + esc(r.route_name_th || ('สาย ' + r.route_id)) + '</strong>' +
|
||||
'<strong>' + esc(nm(r, 'route_name') || ('สาย ' + r.route_id)) + '</strong>' +
|
||||
'<span class="mu-stop-summary-meta">' + esc(metaText) + '</span>' +
|
||||
'</span>' +
|
||||
'<span class="mu-stop-summary-rail">' +
|
||||
@@ -502,7 +508,7 @@
|
||||
: t('stop.otherStopsAll', { m: list.length })) + '</h2>' +
|
||||
'<ul class="mu-list mu-other-list">' + list.map(function (x) {
|
||||
var st = x.stop;
|
||||
var where = [st.city_th, st.province_th].filter(Boolean).join(' · ');
|
||||
var where = [nm(st, 'city'), nm(st, 'province')].filter(Boolean).join(' · ');
|
||||
var base = baseByRoute[String(x.route_id)] || null;
|
||||
var hasOff = (st.offsetMin != null);
|
||||
var times = (hasOff && base && canShift) ? Schedules.shiftTimes(base, st.offsetMin) : null;
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"fileNames":["./node_modules/typescript/lib/lib.es5.d.ts","./node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/typescript/lib/lib.es2018.d.ts","./node_modules/typescript/lib/lib.es2019.d.ts","./node_modules/typescript/lib/lib.es2020.d.ts","./node_modules/typescript/lib/lib.es2021.d.ts","./node_modules/typescript/lib/lib.es2022.d.ts","./node_modules/typescript/lib/lib.es2023.d.ts","./node_modules/typescript/lib/lib.es2024.d.ts","./node_modules/typescript/lib/lib.esnext.d.ts","./node_modules/typescript/lib/lib.dom.d.ts","./node_modules/typescript/lib/lib.dom.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/typescript/lib/lib.es2016.intl.d.ts","./node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","./node_modules/typescript/lib/lib.es2017.date.d.ts","./node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","./node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","./node_modules/typescript/lib/lib.es2018.intl.d.ts","./node_modules/typescript/lib/lib.es2018.promise.d.ts","./node_modules/typescript/lib/lib.es2018.regexp.d.ts","./node_modules/typescript/lib/lib.es2019.array.d.ts","./node_modules/typescript/lib/lib.es2019.object.d.ts","./node_modules/typescript/lib/lib.es2019.string.d.ts","./node_modules/typescript/lib/lib.es2019.symbol.d.ts","./node_modules/typescript/lib/lib.es2019.intl.d.ts","./node_modules/typescript/lib/lib.es2020.bigint.d.ts","./node_modules/typescript/lib/lib.es2020.date.d.ts","./node_modules/typescript/lib/lib.es2020.promise.d.ts","./node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2020.string.d.ts","./node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2020.intl.d.ts","./node_modules/typescript/lib/lib.es2020.number.d.ts","./node_modules/typescript/lib/lib.es2021.promise.d.ts","./node_modules/typescript/lib/lib.es2021.string.d.ts","./node_modules/typescript/lib/lib.es2021.weakref.d.ts","./node_modules/typescript/lib/lib.es2021.intl.d.ts","./node_modules/typescript/lib/lib.es2022.array.d.ts","./node_modules/typescript/lib/lib.es2022.error.d.ts","./node_modules/typescript/lib/lib.es2022.intl.d.ts","./node_modules/typescript/lib/lib.es2022.object.d.ts","./node_modules/typescript/lib/lib.es2022.string.d.ts","./node_modules/typescript/lib/lib.es2022.regexp.d.ts","./node_modules/typescript/lib/lib.es2023.array.d.ts","./node_modules/typescript/lib/lib.es2023.collection.d.ts","./node_modules/typescript/lib/lib.es2023.intl.d.ts","./node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","./node_modules/typescript/lib/lib.es2024.collection.d.ts","./node_modules/typescript/lib/lib.es2024.object.d.ts","./node_modules/typescript/lib/lib.es2024.promise.d.ts","./node_modules/typescript/lib/lib.es2024.regexp.d.ts","./node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2024.string.d.ts","./node_modules/typescript/lib/lib.esnext.array.d.ts","./node_modules/typescript/lib/lib.esnext.collection.d.ts","./node_modules/typescript/lib/lib.esnext.intl.d.ts","./node_modules/typescript/lib/lib.esnext.disposable.d.ts","./node_modules/typescript/lib/lib.esnext.promise.d.ts","./node_modules/typescript/lib/lib.esnext.decorators.d.ts","./node_modules/typescript/lib/lib.esnext.iterator.d.ts","./node_modules/typescript/lib/lib.esnext.float16.d.ts","./node_modules/typescript/lib/lib.esnext.error.d.ts","./node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts","./node_modules/typescript/lib/lib.decorators.d.ts","./node_modules/typescript/lib/lib.decorators.legacy.d.ts","./node_modules/@types/react/global.d.ts","./node_modules/csstype/index.d.ts","./node_modules/@types/prop-types/index.d.ts","./node_modules/@types/react/index.d.ts","./node_modules/next/dist/styled-jsx/types/css.d.ts","./node_modules/next/dist/styled-jsx/types/macro.d.ts","./node_modules/next/dist/styled-jsx/types/style.d.ts","./node_modules/next/dist/styled-jsx/types/global.d.ts","./node_modules/next/dist/styled-jsx/types/index.d.ts","./node_modules/next/dist/server/get-page-fLine truncated
|
||||
{"fileNames":["./node_modules/typescript/lib/lib.es5.d.ts","./node_modules/typescript/lib/lib.es2015.d.ts","./node_modules/typescript/lib/lib.es2016.d.ts","./node_modules/typescript/lib/lib.es2017.d.ts","./node_modules/typescript/lib/lib.es2018.d.ts","./node_modules/typescript/lib/lib.es2019.d.ts","./node_modules/typescript/lib/lib.es2020.d.ts","./node_modules/typescript/lib/lib.es2021.d.ts","./node_modules/typescript/lib/lib.es2022.d.ts","./node_modules/typescript/lib/lib.es2023.d.ts","./node_modules/typescript/lib/lib.es2024.d.ts","./node_modules/typescript/lib/lib.esnext.d.ts","./node_modules/typescript/lib/lib.dom.d.ts","./node_modules/typescript/lib/lib.dom.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.core.d.ts","./node_modules/typescript/lib/lib.es2015.collection.d.ts","./node_modules/typescript/lib/lib.es2015.generator.d.ts","./node_modules/typescript/lib/lib.es2015.iterable.d.ts","./node_modules/typescript/lib/lib.es2015.promise.d.ts","./node_modules/typescript/lib/lib.es2015.proxy.d.ts","./node_modules/typescript/lib/lib.es2015.reflect.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.d.ts","./node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2016.array.include.d.ts","./node_modules/typescript/lib/lib.es2016.intl.d.ts","./node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","./node_modules/typescript/lib/lib.es2017.date.d.ts","./node_modules/typescript/lib/lib.es2017.object.d.ts","./node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2017.string.d.ts","./node_modules/typescript/lib/lib.es2017.intl.d.ts","./node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","./node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","./node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","./node_modules/typescript/lib/lib.es2018.intl.d.ts","./node_modules/typescript/lib/lib.es2018.promise.d.ts","./node_modules/typescript/lib/lib.es2018.regexp.d.ts","./node_modules/typescript/lib/lib.es2019.array.d.ts","./node_modules/typescript/lib/lib.es2019.object.d.ts","./node_modules/typescript/lib/lib.es2019.string.d.ts","./node_modules/typescript/lib/lib.es2019.symbol.d.ts","./node_modules/typescript/lib/lib.es2019.intl.d.ts","./node_modules/typescript/lib/lib.es2020.bigint.d.ts","./node_modules/typescript/lib/lib.es2020.date.d.ts","./node_modules/typescript/lib/lib.es2020.promise.d.ts","./node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2020.string.d.ts","./node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","./node_modules/typescript/lib/lib.es2020.intl.d.ts","./node_modules/typescript/lib/lib.es2020.number.d.ts","./node_modules/typescript/lib/lib.es2021.promise.d.ts","./node_modules/typescript/lib/lib.es2021.string.d.ts","./node_modules/typescript/lib/lib.es2021.weakref.d.ts","./node_modules/typescript/lib/lib.es2021.intl.d.ts","./node_modules/typescript/lib/lib.es2022.array.d.ts","./node_modules/typescript/lib/lib.es2022.error.d.ts","./node_modules/typescript/lib/lib.es2022.intl.d.ts","./node_modules/typescript/lib/lib.es2022.object.d.ts","./node_modules/typescript/lib/lib.es2022.string.d.ts","./node_modules/typescript/lib/lib.es2022.regexp.d.ts","./node_modules/typescript/lib/lib.es2023.array.d.ts","./node_modules/typescript/lib/lib.es2023.collection.d.ts","./node_modules/typescript/lib/lib.es2023.intl.d.ts","./node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","./node_modules/typescript/lib/lib.es2024.collection.d.ts","./node_modules/typescript/lib/lib.es2024.object.d.ts","./node_modules/typescript/lib/lib.es2024.promise.d.ts","./node_modules/typescript/lib/lib.es2024.regexp.d.ts","./node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","./node_modules/typescript/lib/lib.es2024.string.d.ts","./node_modules/typescript/lib/lib.esnext.array.d.ts","./node_modules/typescript/lib/lib.esnext.collection.d.ts","./node_modules/typescript/lib/lib.esnext.intl.d.ts","./node_modules/typescript/lib/lib.esnext.disposable.d.ts","./node_modules/typescript/lib/lib.esnext.promise.d.ts","./node_modules/typescript/lib/lib.esnext.decorators.d.ts","./node_modules/typescript/lib/lib.esnext.iterator.d.ts","./node_modules/typescript/lib/lib.esnext.float16.d.ts","./node_modules/typescript/lib/lib.esnext.error.d.ts","./node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts","./node_modules/typescript/lib/lib.decorators.d.ts","./node_modules/typescript/lib/lib.decorators.legacy.d.ts","./node_modules/@types/react/global.d.ts","./node_modules/csstype/index.d.ts","./node_modules/@types/prop-types/index.d.ts","./node_modules/@types/react/index.d.ts","./node_modules/next/dist/styled-jsx/types/css.d.ts","./node_modules/next/dist/styled-jsx/types/macro.d.ts","./node_modules/next/dist/styled-jsx/types/style.d.ts","./node_modules/next/dist/styled-jsx/types/global.d.ts","./node_modules/next/dist/styled-jsx/types/index.d.ts","./node_modules/next/dist/server/get-page-fLine truncated
|
||||
Reference in new issue
Block a user