Skip to content
Snippets Groups Projects
Commit a0c9f94e authored by Leonardo's avatar Leonardo
Browse files

chore: move canvas to query service

parent 943edc21
No related branches found
No related tags found
No related merge requests found
Pipeline #143654 failed
......@@ -5,16 +5,14 @@ WORKDIR /usr/src/app
# install dependencies into temp directory
# this will cache them and speed up future builds
RUN apk add --no-cache git
# Install dependencies for building canvas
# also install dependencies for building canvas
RUN apk add --no-cache \
git \
python3 \
g++ \
make \
cairo-dev \
pango-dev \
libjpeg-turbo-dev \
giflib-dev \
librsvg-dev \
freetype-dev \
fontconfig-dev
......
No preview for this file type
......@@ -12,6 +12,8 @@
"devDependencies": {
"@types/bun": "latest",
"@types/jsdom": "^21.1.7",
"@types/d3": "^7.4.3",
"@types/plotly.js": "^2.35.1",
"@types/nodemailer": "^6.4.17"
},
"peerDependencies": {
......@@ -29,6 +31,10 @@
"lexical": "0.21.0",
"neo4j-driver": "5.26.0",
"nodemailer": "^6.9.16",
"canvas": "^3.0.0-rc3",
"d3": "^7.9.0",
"svg2img": "^1.0.0-beta.2",
"plotly.js": "^2.35.3",
"ts-common": "link:ts-common"
}
}
import { populateTemplate, RabbitMqBroker } from "ts-common";
import { rabbitMq, ums, mail, SMTP_USER, DEBUG_EMAIL } from "../variables";
import { log } from "../logger";
import type { InsightModel } from "ts-common";
import { RabbitMqBroker, type InsightModel } from "ts-common";
import { createHeadlessEditor } from "@lexical/headless";
import { $generateHtmlFromNodes } from "@lexical/html";
import { JSDOM } from "jsdom";
......@@ -11,6 +10,7 @@ import { queryService } from "./queryService";
import { statCheck } from "./statCheck";
import { diffCheck } from "./diffCheck";
import { VariableNode } from "../utils/lexical";
import { populateTemplate } from "../utils/insights";
const dom = new JSDOM();
function setUpDom() {
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment