Various Fix attempts
This commit is contained in:
parent
7f90fd1a80
commit
7c3ba29316
6 changed files with 25 additions and 5 deletions
|
@ -20,6 +20,7 @@ export async function GET() {
|
|||
if (rows?.length) {
|
||||
let empireCount: number = rows[0][1];
|
||||
|
||||
console.log("New Google Data loaded " + Intl.DateTimeFormat('en-UK', {hour: 'numeric', minute: 'numeric', hour12: false}).format(Date.now()));
|
||||
return NextResponse.json({ empireCount });
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -78,6 +78,7 @@ export async function GET() {
|
|||
}
|
||||
}
|
||||
|
||||
console.log("New Google Data loaded " + Intl.DateTimeFormat('en-UK', {hour: 'numeric', minute: 'numeric', hour12: false}).format(Date.now()));
|
||||
return NextResponse.json({ speciesArray });
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
'use client';
|
||||
|
||||
import useSWR from "swr";
|
||||
import { Chart as ChartJS, registerables } from 'chart.js';
|
||||
import { Pie } from "react-chartjs-2";
|
||||
|
@ -71,7 +70,7 @@ export const PopChart = () => {
|
|||
}
|
||||
},
|
||||
legend: {
|
||||
display: true
|
||||
display: false
|
||||
},
|
||||
datalabels: {
|
||||
formatter: (value: any, context: Context) => {
|
||||
|
@ -82,7 +81,6 @@ export const PopChart = () => {
|
|||
return "";
|
||||
}
|
||||
},
|
||||
|
||||
color: 'black'
|
||||
},
|
||||
},
|
||||
|
|
|
@ -126,7 +126,7 @@ export const RadarChart = (props: { weighted: boolean }) => {
|
|||
ChartJS.register( ...registerables )
|
||||
|
||||
return (
|
||||
<div className="chart-container min-h-screen aspect-square p-2">
|
||||
<div className="chart-container h-full aspect-square p-2">
|
||||
<Radar {...config} />
|
||||
</div>
|
||||
);
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
"autoprefixer": "10.4.14",
|
||||
"chart.js": "^4.3.0",
|
||||
"chartjs-plugin-datalabels": "^2.2.0",
|
||||
"encoding": "^0.1.13",
|
||||
"eslint": "8.41.0",
|
||||
"eslint-config-next": "13.4.4",
|
||||
"googleapis": "^118.0.0",
|
||||
|
|
19
yarn.lock
19
yarn.lock
|
@ -1555,6 +1555,13 @@ emoji-regex@^9.2.2:
|
|||
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72"
|
||||
integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==
|
||||
|
||||
encoding@^0.1.13:
|
||||
version "0.1.13"
|
||||
resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.13.tgz#56574afdd791f54a8e9b2785c0582a2d26210fa9"
|
||||
integrity sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==
|
||||
dependencies:
|
||||
iconv-lite "^0.6.2"
|
||||
|
||||
enhanced-resolve@^5.12.0:
|
||||
version "5.14.1"
|
||||
resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.14.1.tgz#de684b6803724477a4af5d74ccae5de52c25f6b3"
|
||||
|
@ -2270,6 +2277,13 @@ human-signals@^4.3.0:
|
|||
resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-4.3.1.tgz#ab7f811e851fca97ffbd2c1fe9a958964de321b2"
|
||||
integrity sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==
|
||||
|
||||
iconv-lite@^0.6.2:
|
||||
version "0.6.3"
|
||||
resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501"
|
||||
integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==
|
||||
dependencies:
|
||||
safer-buffer ">= 2.1.2 < 3.0.0"
|
||||
|
||||
ignore@^5.2.0:
|
||||
version "5.2.4"
|
||||
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324"
|
||||
|
@ -3182,6 +3196,11 @@ safe-regex-test@^1.0.0:
|
|||
get-intrinsic "^1.1.3"
|
||||
is-regex "^1.1.4"
|
||||
|
||||
"safer-buffer@>= 2.1.2 < 3.0.0":
|
||||
version "2.1.2"
|
||||
resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a"
|
||||
integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==
|
||||
|
||||
scheduler@^0.23.0:
|
||||
version "0.23.0"
|
||||
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.0.tgz#ba8041afc3d30eb206a487b6b384002e4e61fdfe"
|
||||
|
|
Reference in a new issue