mirror of
https://github.com/aljazceru/satshkd-vercel.git
synced 2025-12-17 05:04:24 +01:00
move hkd_historical up one dir to /public
This commit is contained in:
@@ -21,8 +21,8 @@ module.exports = {
|
|||||||
get10yr: async function() {
|
get10yr: async function() {
|
||||||
// console.log("get10yr")
|
// console.log("get10yr")
|
||||||
try {
|
try {
|
||||||
// const content = await fs.readFile('./public/static/hkd_historical')
|
// const content = await fs.readFile('./public/hkd_historical')
|
||||||
const content = fs.readFileSync('./public/static/hkd_historical', { encoding: 'utf8' })
|
const content = fs.readFileSync('./public/hkd_historical', { encoding: 'utf8' })
|
||||||
|
|
||||||
const historical = JSON.parse(content)
|
const historical = JSON.parse(content)
|
||||||
hist_entries = []
|
hist_entries = []
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ function hkdrate() {
|
|||||||
})
|
})
|
||||||
console.log(hkdData)
|
console.log(hkdData)
|
||||||
const hkdHistorical = JSON.stringify(hkdData)
|
const hkdHistorical = JSON.stringify(hkdData)
|
||||||
fs.writeFileSync("./public/static/hkd_historical", hkdHistorical)
|
fs.writeFileSync("./public/hkd_historical", hkdHistorical)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -165,7 +165,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
d3.json('/static/hkd_historical', function(data) {
|
d3.json('/hkd_historical', function(data) {
|
||||||
data = MG.convert.date(data, 'date');
|
data = MG.convert.date(data, 'date');
|
||||||
|
|
||||||
var windowWidth = $(window).width();
|
var windowWidth = $(window).width();
|
||||||
|
|||||||
@@ -160,7 +160,7 @@
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
d3.json('/static/hkd_historical', function(data) {
|
d3.json('/hkd_historical', function(data) {
|
||||||
data = MG.convert.date(data, 'date');
|
data = MG.convert.date(data, 'date');
|
||||||
|
|
||||||
var windowWidth = $(window).width();
|
var windowWidth = $(window).width();
|
||||||
|
|||||||
Reference in New Issue
Block a user