Compare commits

..

28 Commits

Author SHA1 Message Date
24d424bd90 Update bot project name to be a little less generic 2024-12-09 19:27:04 -08:00
1345b984d4 Link to the new TokenBot project 2024-12-08 20:20:40 -08:00
14b80dfea6 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
2024-11-16 17:53:57 -08:00
24928c10fa Fix live token price updates 2024-11-16 17:53:14 -08:00
df7e5c0e97 Update README to link to backend lambda src 2024-11-03 23:22:01 -08:00
d25334d35f Initial implementation of overlay functionality 2024-11-03 22:54:23 -08:00
8c8499fb1c Add backwards compatibility for average changes 2024-11-03 16:29:31 -08:00
0180e8a3b5 Swap to v2 of the historical api 2024-11-01 00:09:19 -07:00
fa058cc64e Swap to v2 of current API 2024-10-31 22:35:11 -07:00
ef95388185 Fix live prices being added to the chart with incorrect price 2024-10-24 18:09:21 -07:00
ad069cb7bf Dependency updates 2024-10-17 00:27:35 -07:00
367b767f52 Remove unused aggregate function toggle 2024-10-17 00:05:37 -07:00
c9e14e265f Flip high and low sections
This is more in line with how English reads, left to right, low to high
2024-10-16 23:58:16 -07:00
5abf6fe132 Adds a high and low price data callout 2024-10-16 23:53:53 -07:00
487bb86a29 Fix late updates to chart 2024-10-14 00:18:07 -07:00
a51d3f8d7b 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.
2024-10-13 23:23:31 -07:00
27eb2ccb45 Remove advanced region options for now.
It may come back later, but it's kinda confusing just being disabled
2024-10-12 22:31:26 -07:00
94e08c3657 Revert "Add early reply header to first requests"
This reverts commit fa60c3ea53.
2024-05-26 22:47:18 -07:00
fa60c3ea53 Add early reply header to first requests
This lets my CloudFront function know whether to serve a request from the Lambda@edge function with more body, or an early request from the Cloudfront KeyValueStore. This is an A/B test with retail vs classic site at the time of commit
2024-05-26 11:38:51 -07:00
1e0b4a0a1f Make time and cost delineation more apparent 2024-04-25 00:17:09 -07:00
17ffbc3db1 Enabled the option to start Y at zero 2024-04-24 23:54:03 -07:00
0c9e7ed183 Change the timescale legend to be more readable instead of dense 2024-04-12 05:27:41 -07:00
4a7c03307d Change logs to warnings, since that's what they really are 2024-04-12 05:06:41 -07:00
0e40f403e4 Increase font size and brightness for better contrast 2024-04-12 05:04:33 -07:00
66ab042995 Changes to advanced options and styling in prep for future work 2023-10-15 01:16:38 -07:00
8cd9a2ddeb Remove Cash dependency, refactor event registration 2023-09-10 13:00:47 -07:00
702ca8c4d3 Update dependencies 2023-09-10 12:53:12 -07:00
c1b05851a4 Add link to classic token 2023-05-23 19:33:41 -07:00
6 changed files with 26 additions and 24 deletions

View File

@ -3,7 +3,7 @@ version: 0.2
phases:
install:
runtime-versions:
nodejs: 18
nodejs: 16
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/classic.json");
const resp = await fetch("https://data.wowtoken.app/v2/current/retail.json");
return await resp.json();
}

View File

@ -1,19 +1,19 @@
<!doctype html>
<html lang="en">
<head>
<title>WoW Classic Historical Token Prices Tracker</title>
<title>WoW 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) 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.">
<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.">
<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/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">
<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">
</head>
<body>
<div class="flex-container">
<div class="data-header">
<h1>1 Classic Token = <u id="token">0</u> Gold</h1>
<h1>1 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,6 +43,8 @@
<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>
@ -83,12 +85,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 retail WoW Token price? Find it <a href="https://wowtoken.app">here!</a></em></p>
<p><em>Looking for the classic WoW Token price? Find it <a href="https://classic.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 Classic Token from various
This is a site developed to track the value of the World of Warcraft 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
@ -96,10 +98,10 @@
</details>
<details id="what-is">
<summary>What is the WoW Token</summary>
The World of Warcraft Classic Token is a first-party system developed by Blizzard to allow you
The World of Warcraft 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 classic World of Warcraft, or use gold to buy game time.
To find out more, visit the support article on Blizzard's website
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
<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://classic.wowtoken.app/?"
let url = "https://wowtoken.app/?"
if (currentTimeSelection !== '72h'){
url += `time=${currentTimeSelection}&`
}

View File

@ -173,8 +173,8 @@ h6 {
font-weight: 700;
}
html {
background-color: #6b4233;
color: #b7b7b7;
background-color: #073642;
color: #839496;
margin: 1em;
}
/*body {
@ -194,7 +194,7 @@ a:hover {
color: #cb4b16;
}
h1 {
color: #ffd5e9;
color: #d33682;
}
h2,
h3,
@ -206,7 +206,7 @@ h6 {
pre {
background-color: #002b36;
color: #839496;
border: 1pt solid #000000;
border: 1pt solid #586e75;
padding: 1em;
box-shadow: 5pt 5pt 8pt #073642;
}
@ -301,10 +301,10 @@ h6 {
display: flex;
flex-direction: column;
justify-content: center;
background-color: #2f201e;
background-color: #002b36;
margin: 0 auto;
max-width: 85%;
border: 1pt solid #000000;
border: 1pt solid #586e75;
padding: 1em;
}
@ -341,8 +341,8 @@ p {
}
details {
background-color: #6b4233;
border: 1px solid #000000;
background-color: #073642;
border: 1px solid #aaa;
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 #000000;
border-bottom: 1px solid #aaa;
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}/classic/`
url += `math/${currentAggregateSelection}/retail/`
}
else {
url += `relative/classic/`
url += `relative/retail/`
}
url += `${currentRegionSelection}/${currentTimeSelection}.json`;