feat(dm-stats): add most used words stat

This commit is contained in:
Samuel 2024-12-13 17:10:44 +01:00
parent 5d2ce7705c
commit cd4c5095e5
7 changed files with 163 additions and 40 deletions

View file

@ -1,4 +1,4 @@
import { type Component, createEffect, createResource, Show } from "solid-js";
import { type Component, createResource, Show } from "solid-js";
import type { RouteSectionProps } from "@solidjs/router";
import { allThreadsOverviewQuery, overallSentMessagesQuery, SELF_ID } from "~/db";
@ -12,8 +12,6 @@ export const Overview: Component<RouteSectionProps> = () => {
return (await allThreadsOverviewQuery()).rows.map((row) => {
const isGroup = row.title !== null;
console.log(row);
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const name = (
isGroup
@ -35,10 +33,6 @@ export const Overview: Component<RouteSectionProps> = () => {
});
});
createEffect(() => {
console.log(roomOverview());
});
return (
<div>
<p>All messages: {allSelfSentMessagesCount()?.messageCount as number}</p>