Skip to content

Commit 2f40c94

Browse files
Push master to prod (#54)
* Satisfy minimum requirements for full typescript project (#37) * Feature: satisfy minimum for full typescript * Feature: change report structure from array to object * Chore: jsdoc * Refactor: PR review suggestions * Refactor: type out simple reports * Refactor: rename variables * Refactor: more types for now some logic errors * Chore: docs * Fix: type -> interface * Chore: comments * Type refactor * Improve report to discord message * Make it optional * Improve discord message creation * renames * Record to index * Refactor: Add additional type safety, refactor structure and naming, jsdocs (#38) * Feature: satisfy minimum for full typescript * Feature: change report structure from array to object * Chore: jsdoc * Feature: add additional types, jsdocs * Remove unnecessary error typing * Feature: type some more * Chore: typo fix * Chore: rename chart func, jsdocs improvements * Feature: add docs, fix types * Feature: remove all implicit any types * Refactor: types to interfaces as default * Refactor: PR review suggestions * Refactor: type out simple reports * Refactor: rename variables * Refactor: more types for now some logic errors * Chore: docs * Fix: type -> interface * Chore: remove unnecessary async * Chore: remove unnecessary jsdoc * Chore: comments * Feature: table improvements * Refactor: naming * Type refactor * Improve report to discord message * Make it optional * Improve discord message creation * Some typing * jsdocs type * strict tsconfig + miho improvements * Move default value to inisde of function * Remove comments * missing types + comments * improve `loadCachedEvents` logic * remove rendundant satisfies * remove Array for [] * renames + types * makes quotes consistent * fix filter error * remove custom intersection impl * head has extra "" not needing extra "right" because of it * typo * move constants * Chore: Update easy to update packages (#47) * update easy to update packages * return axios whoops * Setup dotenv to work on wasp-bot (#48) * vault * vault 2 * spaces * Refactor: Improve Ignore files, rename example file (#50) * add comments * docker ignore update * update * test * typo * example docker ignroe changes * comments * update * update comments * Refactor discord bot logic into multiple files (#45) * split single file * awaits and types * unnecessary memeber * comments -> functions * name, structyure * functions * de-modularaize a bit * comment * login last * analytics * quote * type external quote * imports * handlers, remove role id from channel ids * refactors * server ids * refacotr * refactor 2 * update help * revert * Update src/discord/bot/analytics/daily-report.ts Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com> * naming * commands * fix regex dep * extract prefix instead * improve naming --------- Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com> * Cohort retention charts + POC of rendering charts on node and send them as attachment (#49) * chart work * better colors and visualization * logic cleanup * imports * new colors * updates * remove jsdocs extras * comments * refactor * docs * make return type work correctly * remove old discord bot file * Fix font issues, cross platfrom Dockerfile, no events cache crash, add buffer charts CLI display (#53) * make Dockerfile cross-platform, handle no file error * and cli charts, fix cohort retention, add types * fonts * console to logger * console -> logger * fonts fixes * cover fonts * fix * fix fonts * yupe * pr review * comments * loadsh * fonts update * Delete pnpm-lock.yaml * remove logs * jsdocs * naming * naming * tone down jsdocs, naming fix * easier read * make font file name parsing easier * Update Dockerfile Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com> * extra comment line * Update Dockerfile Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com> --------- Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com> * remove old code (#55) --------- Co-authored-by: Martin Šošić <Martinsos@users.noreply.github.com>
1 parent 1f03f05 commit 2f40c94

21 files changed

+201
-47
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ FROM node:22-slim AS builder
22

33
WORKDIR /app
44

5+
RUN apt-get update -qq && \
6+
# Install dependencies for building native node modules (added by fly.io by default).
7+
apt-get install --no-install-recommends -y build-essential node-gyp pkg-config python-is-python3 \
8+
# Install dependencies for node-canvas (used by chartjs-node-canvas).
9+
libcairo2-dev libpango1.0-dev
10+
511
# Copy package files
612
COPY package*.json ./
713

213 KB
Binary file not shown.
228 KB
Binary file not shown.
214 KB
Binary file not shown.
Binary file not shown.
228 KB
Binary file not shown.
214 KB
Binary file not shown.
229 KB
Binary file not shown.
213 KB
Binary file not shown.
228 KB
Binary file not shown.

0 commit comments

Comments
 (0)