Compare commits

..

34 Commits

Author SHA1 Message Date
ac61fe47ca Update bot project name to be a little less generic
(cherry picked from commit 24d424bd90)
2024-12-09 19:27:17 -08:00
be4b84ee75 Link to the new TokenBot project
(cherry picked from commit 1345b984d4)
2024-12-08 20:22:38 -08:00
bc44d4fe35 Some cherry pick damage fixes I didnt notice in merge conflicts 2024-12-02 04:24:24 -08:00
b6b30df542 Add option to generate overlay URL
This is going to be expanded upon in future releases, for now it's hardcoded to use just the previous time overlay

(cherry picked from commit 14b80dfea6)
2024-12-01 18:27:42 -08:00
69b6409699 Fix live token price updates
(cherry picked from commit 24928c10fa)
2024-12-01 18:27:40 -08:00
1b026d0757 Update README to link to backend lambda src
(cherry picked from commit df7e5c0e97)
2024-12-01 18:27:38 -08:00
a38a118473 Initial implementation of overlay functionality
(cherry picked from commit d25334d35f)
2024-12-01 18:27:31 -08:00
9f7ab723a9 Add backwards compatibility for average changes
(cherry picked from commit 8c8499fb1c)
2024-12-01 18:27:20 -08:00
fa009b48b5 Swap to v2 of the historical api
(cherry picked from commit 0180e8a3b5)
2024-12-01 18:27:15 -08:00
7eaedf0f9a Swap to v2 of current API
(cherry picked from commit fa058cc64e)
2024-12-01 18:23:30 -08:00
5f9e3462ae Fix live prices being added to the chart with incorrect price
(cherry picked from commit ef95388185)
2024-12-01 18:19:04 -08:00
13ed6dfdce Dependency updates
(cherry picked from commit ad069cb7bf)
2024-10-21 19:59:39 -07:00
b8d11b3815 Remove unused aggregate function toggle
(cherry picked from commit 367b767f52)
2024-10-21 19:59:34 -07:00
2e020633b5 Flip high and low sections
This is more in line with how English reads, left to right, low to high

(cherry picked from commit c9e14e265f)
2024-10-21 19:59:29 -07:00
d07eec1cf0 Adds a high and low price data callout
(cherry picked from commit 5abf6fe132)
2024-10-21 19:59:14 -07:00
de6621e81c Fix late updates to chart
(cherry picked from commit 487bb86a29)
2024-10-21 19:56:51 -07:00
7a17bb8821 Start the process of splitting JS files
I am a JS noob so this is probably poorly thought out. But it is a wip and I dont really care about the quality, just more the learning experience.

(cherry picked from commit a51d3f8d7b)
2024-10-21 19:53:52 -07:00
f207e36ccd Remove advanced region options for now.
It may come back later, but it's kinda confusing just being disabled

(cherry picked from commit 27eb2ccb45)
2024-10-21 19:48:19 -07:00
9ac97425c7 Make time and cost delineation more apparent
(cherry picked from commit 1e0b4a0a1f)
2024-04-25 00:18:47 -07:00
f7a27f9350 Enabled the option to start Y at zero
(cherry picked from commit 17ffbc3db1)
2024-04-24 23:54:53 -07:00
4c77828d5a Adjust all legend for classic since there is less data 2024-04-12 05:29:54 -07:00
50787c1d83 Change the timescale legend to be more readable instead of dense
(cherry picked from commit 0c9e7ed183)
2024-04-12 05:28:30 -07:00
09ec5f0d4d Change logs to warnings, since that's what they really are
(cherry picked from commit 4a7c03307d)
2024-04-12 05:08:39 -07:00
36ba83d9be Increase font size and brightness for better contrast
(cherry picked from commit 0e40f403e4)
2024-04-12 05:08:34 -07:00
8f6cbbc75d Fix bad merge from cherry-pick of main 2023-10-15 01:35:26 -07:00
354381936d Changes to advanced options and styling in prep for future work 2023-10-15 01:27:40 -07:00
214910aa25 Remove Cash dependency, refactor event registration
(cherry picked from commit 8cd9a2ddeb)
2023-10-15 01:19:47 -07:00
ac12a9c55d Update dependencies
(cherry picked from commit 702ca8c4d3)
2023-10-15 01:18:30 -07:00
fa21b50b28 Remove weekly aggregation options for now 2023-06-05 19:46:47 -07:00
ae789181f4 Enable 1 month 2023-06-05 19:17:10 -07:00
a1b1dc63ff Remove extraneous time selections, enable 14d 2023-05-30 03:49:54 -07:00
249f9e281f Textual updates 2023-05-23 19:14:30 -07:00
bda9edf3df Bump node version 2023-05-23 18:27:53 -07:00
e090a93605 Initial branch and changes for Classic token 2023-05-23 18:19:06 -07:00
6 changed files with 24 additions and 26 deletions

View File

@ -3,7 +3,7 @@ version: 0.2
phases:
install:
runtime-versions:
nodejs: 16
nodejs: 18
commands:
- echo Installing dependencies...
- npm install

View File

@ -1,4 +1,4 @@
export default async function fetchCurrent() {
const resp = await fetch("https://data.wowtoken.app/v2/current/retail.json");
const resp = await fetch("https://data.wowtoken.app/v2/current/classic.json");
return await resp.json();
}

View File

@ -1,19 +1,19 @@
<!doctype html>
<html lang="en">
<head>
<title>WoW Historical Token Prices Tracker</title>
<title>WoW Classic Historical Token Prices Tracker</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Track current and historical gold price trends for the World of Warcraft (WoW) in game token, including the US, EU, TW, and KR regions. Prices updated every minute. Simple, quick, and easy info, no ads or tracking, ever.">
<meta name="description" content="Track current and historical gold price trends for the World of Warcraft (WoW) Classic in game token, including the US, EU, TW, and KR regions. Prices updated every minute. Simple, quick, and easy info, no ads or tracking, ever.">
<link rel="preconnect" href="https://data.wowtoken.app">
<link rel="dns-prefetch" href="https://data.wowtoken.app">
<link rel="preload" href="https://data.wowtoken.app/v2/current/retail.json" as="fetch" type="application/json" crossorigin="anonymous">
<link rel="preload" href="https://data.wowtoken.app/v2/relative/retail/us/72h.json" as="fetch" type="application/json" crossorigin="anonymous">
<link rel="preload" href="https://data.wowtoken.app/v2/current/classic.json" as="fetch" type="application/json" crossorigin="anonymous">
<link rel="preload" href="https://data.wowtoken.app/v2/relative/classic/us/72h.json" as="fetch" type="application/json" crossorigin="anonymous">
</head>
<body>
<div class="flex-container">
<div class="data-header">
<h1>1 Token = <u id="token">0</u> Gold</h1>
<h1>1 Classic Token = <u id="token">0</u> Gold</h1>
<div class="high-low">
<p>Lowest in last <em id="low-time">3 days</em>: <u id="low-val">0</u></p>
<p>Highest in last <em id="high-time">3 days</em>: <u id="high-val">0</u></p>
@ -43,8 +43,6 @@
<option value="720h">1 Month</option>
<option value="90d">3 Months</option>
<option value="6m">6 Months</option>
<option value="1y">1 Year</option>
<option value="2y">2 Years</option>
<option value="all">All Available</option>
</select>
</div>
@ -85,12 +83,12 @@
Get alerted when the Token hits certain thresholds using GoblinBot, find out more <a href="https://blog.emily.sh/token-bot/">here!</a>
</em></p>
<hr />
<p><em>Looking for the classic WoW Token price? Find it <a href="https://classic.wowtoken.app">here!</a></em></p>
<p><em>Looking for the retail WoW Token price? Find it <a href="https://wowtoken.app">here!</a></em></p>
</div>
</div>
<details id="about">
<summary>About this Site</summary>
This is a site developed to track the value of the World of Warcraft Token from various
This is a site developed to track the value of the World of Warcraft Classic Token from various
regions over time. I developed it because I wanted a quick and simple way to track the
cost without being advertised to or tracked, and to play around with various "serverless"
technologies. As such, my promise to you is never to use any tracking Javascript, and the
@ -98,10 +96,10 @@
</details>
<details id="what-is">
<summary>What is the WoW Token</summary>
The World of Warcraft Token is a first-party system developed by Blizzard to allow you
The World of Warcraft Classic Token is a first-party system developed by Blizzard to allow you
to either spend currency (local denomination or Blizzard Balance) and convert it to gold
in retail World of Warcraft, or use gold to buy game time or Blizzard Balance. To find out
more, visit the support article on Blizzard's website
in classic World of Warcraft, or use gold to buy game time.
To find out more, visit the support article on Blizzard's website
<a href="https://us.battle.net/support/en/article/31218">here</a>.
</details>
<div id="source">

View File

@ -241,7 +241,7 @@ function detectURLQuery() {
}
function buildDeepLinksURL() {
let url = "https://wowtoken.app/?"
let url = "https://classic.wowtoken.app/?"
if (currentTimeSelection !== '72h'){
url += `time=${currentTimeSelection}&`
}

View File

@ -173,8 +173,8 @@ h6 {
font-weight: 700;
}
html {
background-color: #073642;
color: #839496;
background-color: #6b4233;
color: #b7b7b7;
margin: 1em;
}
/*body {
@ -194,7 +194,7 @@ a:hover {
color: #cb4b16;
}
h1 {
color: #d33682;
color: #ffd5e9;
}
h2,
h3,
@ -206,7 +206,7 @@ h6 {
pre {
background-color: #002b36;
color: #839496;
border: 1pt solid #586e75;
border: 1pt solid #000000;
padding: 1em;
box-shadow: 5pt 5pt 8pt #073642;
}
@ -301,10 +301,10 @@ h6 {
display: flex;
flex-direction: column;
justify-content: center;
background-color: #002b36;
background-color: #2f201e;
margin: 0 auto;
max-width: 85%;
border: 1pt solid #586e75;
border: 1pt solid #000000;
padding: 1em;
}
@ -341,8 +341,8 @@ p {
}
details {
background-color: #073642;
border: 1px solid #aaa;
background-color: #6b4233;
border: 1px solid #000000;
border-radius: 4px;
padding: 0.5em 0.5em 0;
font-size: 17px;
@ -363,7 +363,7 @@ details[open] {
}
details[open] summary {
border-bottom: 1px solid #aaa;
border-bottom: 1px solid #000000;
margin-bottom: 0.5em;
}

View File

@ -1,10 +1,10 @@
export default function urlBuilder(currentRegionSelection, currentTimeSelection, currentAggregateSelection) {
let url = "https://data.wowtoken.app/v2/";
if (currentAggregateSelection !== '' && currentAggregateSelection !== 'none'){
url += `math/${currentAggregateSelection}/retail/`
url += `math/${currentAggregateSelection}/classic/`
}
else {
url += `relative/retail/`
url += `relative/classic/`
}
url += `${currentRegionSelection}/${currentTimeSelection}.json`;