From 756f4e14d77ee17336e6f108a8b3eab475e72004 Mon Sep 17 00:00:00 2001 From: tobinio Date: Fri, 18 Oct 2024 15:29:41 +0000 Subject: [PATCH] basic draft --- bun.lockb | 0 nuxt.config.ts | 18 +++++++++--------- package.json | 1 + app/components/BarChart.vue | 80 -------------------------------------------------------------------------------- app/components/Explanation.vue | 46 ++++++++++++++++++++++++++++++++++++++++++++++ app/components/LineChart.vue | 79 ------------------------------------------------------------------------------- app/pages/charts.vue | 62 ++++++++++---------------------------------------------------- server/tasks/analyze.ts | 1 + app/components/chart/BarChart.vue | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ app/components/chart/LineChart.vue | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ app/components/filter/Item.vue | 44 ++++++++++++++++++-------------------------- 11 file(s) changed, 243 insertion(s)(+), 246 deletion(s)(-) diff --git a/bun.lockb b/bun.lockb --- a/bun.lockb +++ b/bun.lockb diff --git a/nuxt.config.ts b/nuxt.config.ts --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -22,16 +22,16 @@ }, }, devStorage: { - statistics: { - driver: "fs", - base: "./.data/statistics", - }, // statistics: { - // driver: "mongodb", - // connectionString: `${process.env.MONGODB_CONNECTION}`, - // databaseName: `${process.env.MONGODB_DB}`, - // collectionName: "stats", + // driver: "fs", + // base: "./.data/statistics", // }, + statistics: { + driver: "mongodb", + connectionString: `${process.env.MONGODB_CONNECTION}`, + databaseName: `${process.env.MONGODB_DB}`, + collectionName: "stats", + }, }, experimental: { tasks: true, @@ -44,6 +44,6 @@ }, }, - modules: ["@nuxt/icon", "nuxt-posthog"], + modules: ["@nuxt/icon", "nuxt-posthog", "@nuxtjs/tailwindcss"], compatibilityDate: "2024-07-05", }); diff --git a/package.json b/package.json --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "@iconify-json/mdi": "^1.2.1", "@iconify-json/ph": "^1.2.1", "@nuxt/icon": "^1.5.6", + "@nuxtjs/tailwindcss": "^6.12.2", "nuxt-posthog": "^1.5.4" } } diff --git a/app/components/BarChart.vue b/app/components/BarChart.vue deleted file mode 100644 --- a/app/components/BarChart.vue +++ /dev/null @@ -1,80 +0,0 @@ - - - - \ No newline at end of file diff --git a/app/components/Explanation.vue b/app/components/Explanation.vue new file mode 100644 --- /dev/null +++ b/app/components/Explanation.vue @@ -0,0 +1,46 @@ + + + + + + + \ No newline at end of file diff --git a/app/components/LineChart.vue b/app/components/LineChart.vue deleted file mode 100644 --- a/app/components/LineChart.vue +++ /dev/null @@ -1,79 +0,0 @@ - - - - \ No newline at end of file diff --git a/app/pages/charts.vue b/app/pages/charts.vue --- a/app/pages/charts.vue +++ b/app/pages/charts.vue @@ -61,9 +61,9 @@ - - - - \ No newline at end of file + \ No newline at end of file diff --git a/server/tasks/analyze.ts b/server/tasks/analyze.ts --- a/server/tasks/analyze.ts +++ b/server/tasks/analyze.ts @@ -9,6 +9,7 @@ description: "Update all the statistics", }, async run() { + return {}; consola.log("starting analyze"); console.time("finish analyze"); diff --git a/app/components/chart/BarChart.vue b/app/components/chart/BarChart.vue new file mode 100644 --- /dev/null +++ b/app/components/chart/BarChart.vue @@ -0,0 +1,80 @@ + + + + \ No newline at end of file diff --git a/app/components/chart/LineChart.vue b/app/components/chart/LineChart.vue new file mode 100644 --- /dev/null +++ b/app/components/chart/LineChart.vue @@ -0,0 +1,78 @@ + + + + \ No newline at end of file diff --git a/app/components/filter/Item.vue b/app/components/filter/Item.vue --- a/app/components/filter/Item.vue +++ b/app/components/filter/Item.vue @@ -1,42 +1,34 @@ \ No newline at end of file -- tangled.sh