Prettier - add trailing commas
This commit is contained in:
@@ -13,14 +13,14 @@
|
||||
title: "Live Departure Boards",
|
||||
action: "/ldb",
|
||||
placeholder: "Enter CRS/TIPLOC",
|
||||
queryName: "station"
|
||||
queryName: "station",
|
||||
},
|
||||
{
|
||||
title: "Train Details & PIS",
|
||||
action: "/train",
|
||||
placeholder: "Enter Headcode",
|
||||
queryName: "headcode"
|
||||
}
|
||||
queryName: "headcode",
|
||||
},
|
||||
];
|
||||
</script>
|
||||
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
IconSpy,
|
||||
IconUser,
|
||||
IconUserPlus,
|
||||
IconVersions
|
||||
IconVersions,
|
||||
} from "@tabler/icons-svelte";
|
||||
const title = "More";
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
{ title: "Reason Code Lookup", path: "/more/reasons", icon: IconMessageCode },
|
||||
{ title: "Privacy Policy", path: "/more/privacy", icon: IconSpy },
|
||||
{ title: "Component Versions", path: "/more/versions", icon: IconVersions },
|
||||
{ title: "Statistics", path: "/more/statistics", icon: IconNumber }
|
||||
{ title: "Statistics", path: "/more/statistics", icon: IconNumber },
|
||||
];
|
||||
</script>
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
stanox: "",
|
||||
nlc: "",
|
||||
name: "",
|
||||
uic: ""
|
||||
uic: "",
|
||||
};
|
||||
|
||||
let isLoading = false;
|
||||
@@ -35,7 +35,7 @@
|
||||
stanox: data[0]["STANOX"] || "None",
|
||||
nlc: data[0]["NLC"] || "None",
|
||||
name: data[0]["NLCDESC"] || "None",
|
||||
uic: data[0]["UIC"] || "None"
|
||||
uic: data[0]["UIC"] || "None",
|
||||
};
|
||||
//console.log("val",JSON.stringify(val));
|
||||
}
|
||||
@@ -64,7 +64,7 @@
|
||||
stanox: "",
|
||||
nlc: "",
|
||||
name: "",
|
||||
uic: ""
|
||||
uic: "",
|
||||
};
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -11,8 +11,8 @@
|
||||
let data = [
|
||||
{
|
||||
domain: "User not Found",
|
||||
atime: "User not Found"
|
||||
}
|
||||
atime: "User not Found",
|
||||
},
|
||||
];
|
||||
|
||||
let isLoading = false;
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
let resultObject = {
|
||||
results: false,
|
||||
title: "",
|
||||
resultLines: []
|
||||
resultLines: [],
|
||||
};
|
||||
|
||||
function load() {
|
||||
@@ -43,7 +43,7 @@
|
||||
resultObject = {
|
||||
results: false,
|
||||
title: "Not Found",
|
||||
resultLines: []
|
||||
resultLines: [],
|
||||
};
|
||||
}
|
||||
resultObject.resultLines = resultLines;
|
||||
|
||||
@@ -23,11 +23,11 @@
|
||||
const request = {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json"
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
email: inputValue
|
||||
})
|
||||
email: inputValue,
|
||||
}),
|
||||
};
|
||||
const res = await fetch(url, request);
|
||||
if (res.status == 400 || res.status == 403) {
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
{ id: "3", value: "" },
|
||||
{ id: "4", value: "" },
|
||||
{ id: "5", value: "" },
|
||||
{ id: "6", value: "" }
|
||||
{ id: "6", value: "" },
|
||||
];
|
||||
|
||||
function handleInput(index: number, event: KeyboardEvent): void {
|
||||
@@ -54,11 +54,11 @@
|
||||
const request = {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json"
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
uuid: id
|
||||
})
|
||||
uuid: id,
|
||||
}),
|
||||
};
|
||||
const res = await fetch(url, request);
|
||||
const body = await res.json();
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
browser: navigator.appName,
|
||||
version: navigator.appVersion,
|
||||
platform: navigator.platform,
|
||||
viewport: `${window.innerWidth} x ${window.innerHeight}`
|
||||
viewport: `${window.innerWidth} x ${window.innerHeight}`,
|
||||
};
|
||||
});
|
||||
|
||||
@@ -46,15 +46,15 @@
|
||||
`Platform: ${reportCollected.platform}\n` +
|
||||
`Viewport: ${reportCollected.viewport}\n\n\n` +
|
||||
`User Message:\n` +
|
||||
`${reportMsg}`
|
||||
`${reportMsg}`,
|
||||
});
|
||||
const url = `${getApiUrl()}/misc/issue`;
|
||||
const options = {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json"
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: formData
|
||||
body: formData,
|
||||
};
|
||||
const res = await fetch(url, options);
|
||||
if (res.status == 200) {
|
||||
|
||||
@@ -35,8 +35,8 @@
|
||||
const options = {
|
||||
method: "GET",
|
||||
headers: {
|
||||
uuid: $uuid
|
||||
}
|
||||
uuid: $uuid,
|
||||
},
|
||||
};
|
||||
const res = await fetch(url, options); // Enable Auth
|
||||
if (res.status == 401) {
|
||||
|
||||
@@ -48,8 +48,8 @@
|
||||
const options = {
|
||||
method: "GET",
|
||||
headers: {
|
||||
uuid: $uuid
|
||||
}
|
||||
uuid: $uuid,
|
||||
},
|
||||
};
|
||||
const url = `${getApiUrl()}/api/v2/timetable/train/${date}/${searchType}/${id}`;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user