Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/dumili/.eslintrc-auto-import.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"controlledComputed": true,
"controlledRef": true,
"createApp": true,
"createDisposableDirective": true,
"createEventHook": true,
"createGlobalState": true,
"createInjectionState": true,
Expand Down Expand Up @@ -175,7 +176,6 @@
"refThrottled": true,
"refWithControl": true,
"resolveComponent": true,
"resolveRef": true,
"setActivePinia": true,
"setMapStoreSuffix": true,
"shallowReactive": true,
Expand Down
1 change: 1 addition & 0 deletions apps/dumili/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ dist-ssr
*.traineddata
.eslintcache
auto-imports.d.ts
!src/auto-imports.d.ts
components.d.ts
api/prisma/client_*

Expand Down
5 changes: 0 additions & 5 deletions apps/dumili/.storybook/preview.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ if (typeof window !== "undefined") {
_options: unknown,
callback: (error: unknown, result: unknown) => void,
) => ({
close: () => {
if (import.meta.env.DEV) {
console.log("[MockCloudinary] Widget closed");
}
},
_simulateUpload: (fileCount: number = 1, isPdf: boolean = false) => {
for (let i = 0; i < fileCount; i++) {
callback(null, {
Expand Down
13 changes: 6 additions & 7 deletions apps/dumili/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ dotenv.config({
path: ".env",
});

dotenv.config({
path: ".env.local",
override: true,
});

import { v2 as cloudinary } from "cloudinary";
import { createServer } from "http";
import { Server } from "socket.io";
Expand All @@ -13,13 +18,7 @@ import type { FullIndexation } from "./services/indexation";
import { server as indexation } from "./services/indexation";
import { server as indexations } from "./services/indexations";

const [, API_KEY, API_SECRET, CLOUD_NAME] =
process.env.CLOUDINARY_URL?.match(/cloudinary:\/\/(\d+):(\w+)@(\w+)/) ?? [];
cloudinary.config({
cloud_name: CLOUD_NAME,
api_key: API_KEY,
api_secret: API_SECRET,
});
cloudinary.config(true);

export type SessionDataWithIndexation = {
user: SessionUser;
Expand Down
4 changes: 4 additions & 0 deletions apps/dumili/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"sentry:sourcemaps": "sentry-cli sourcemaps inject --org bruno-perel --project dumili-api ./dist && sentry-cli sourcemaps upload --org bruno-perel --project dumili-api ./dist"
},
"dependencies": {
"@napi-rs/canvas": "^1.0.0",
"@opentelemetry/instrumentation-socket.io": "^0.46.1",
"@prisma/client": "^7.8.0",
"@sentry/node": "^10.56.0",
Expand All @@ -33,10 +34,13 @@
"cloudinary": "^1.41.3",
"dotenv": "^16.6.1",
"jsonwebtoken": "^9.0.3",
"node-unrar-js": "^2.0.2",
"pdfjs-dist": "^6.0.227",
"sharp": "^0.33.5",
"socket-call-client": "^0.7.7",
"socket-call-server": "^0.7.7",
"socket.io": "^4.8.3",
"unpdf": "^1.6.2",
"~api": "workspace:*",
"~prisma-schemas": "workspace:*"
},
Expand Down
155 changes: 155 additions & 0 deletions apps/dumili/api/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading