mirror of
https://github.com/daydreamer-json/ak-endfield-api-archive.git
synced 2026-03-21 23:02:20 +01:00
feat: archive launcher web endpoint metadata
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
# pages
|
||||
|
||||
To install dependencies:
|
||||
A very simple and very lame information display page written in HTML, CSS, and TypeScript
|
||||
|
||||
## For dev
|
||||
|
||||
Live server:
|
||||
|
||||
```bash
|
||||
bun install
|
||||
bun x parcel
|
||||
```
|
||||
|
||||
To run:
|
||||
Build:
|
||||
|
||||
```bash
|
||||
bun run index.ts
|
||||
bun x parcel build
|
||||
```
|
||||
|
||||
This project was created using `bun init` in bun v1.3.9. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.
|
||||
|
||||
@@ -170,6 +170,16 @@ async function renderOverview(container: HTMLElement) {
|
||||
)()}</span><br />
|
||||
Latest Version (Global)
|
||||
</p>
|
||||
<p class="text-center lh-1">
|
||||
<span class="fw-bold fs-1">${await (
|
||||
async () => {
|
||||
const url = `${BASE_URL}/akEndfield/launcher/game/1/all.json`;
|
||||
const dat = await fetchJson<StoredData<any>[]>(url);
|
||||
return dat.at(-1)?.rsp.version;
|
||||
}
|
||||
)()}</span><br />
|
||||
Latest Version (China)
|
||||
</p>
|
||||
`;
|
||||
|
||||
const tableWrapper = document.createElement('div');
|
||||
|
||||
Reference in New Issue
Block a user