From 059b61dfd66016b0582c3e5712d59407e001b142 Mon Sep 17 00:00:00 2001 From: zxg <50405001+shwin0901@users.noreply.github.com> Date: Sun, 4 Aug 2024 17:20:44 +0800 Subject: [PATCH] Migrate momentjs to dayjs (#14) --- package.json | 3 +-- src/routes/stats/+page.svelte | 14 +++++++------- src/routes/stats/HeatMapChart.svelte | 4 ++-- src/routes/stats/stats.js | 14 +++++++------- 4 files changed, 17 insertions(+), 18 deletions(-) diff --git a/package.json b/package.json index 1b441da..a96232c 100644 --- a/package.json +++ b/package.json @@ -13,9 +13,8 @@ "lint": "eslint ." }, "dependencies": { + "dayjs": "^1.11.12", "echarts": "^5.5.1", - "moment": "^2.30.1", - "momentjs": "^2.0.0", "querylib": "./lib", "svelte-french-toast": "^1.2.0" }, diff --git a/src/routes/stats/+page.svelte b/src/routes/stats/+page.svelte index d18c6c0..344e0c5 100644 --- a/src/routes/stats/+page.svelte +++ b/src/routes/stats/+page.svelte @@ -1,5 +1,5 @@