rename mixan to OPENPANEL!

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-03-11 13:40:46 +01:00
parent 6d4f9010d4
commit e6c0bc2ec8
201 changed files with 1193 additions and 1047 deletions

View File

@@ -1,5 +1,5 @@
{
"name": "@mixan/worker",
"name": "@openpanel/worker",
"version": "0.0.1",
"scripts": {
"dev": "dotenv -e ../../.env -c -v WATCH=1 tsup",
@@ -13,18 +13,18 @@
"dependencies": {
"@bull-board/api": "^5.13.0",
"@bull-board/express": "^5.13.0",
"@mixan/db": "workspace:*",
"@mixan/queue": "workspace:*",
"@mixan/common": "workspace:*",
"@mixan/redis": "workspace:*",
"@openpanel/db": "workspace:*",
"@openpanel/queue": "workspace:*",
"@openpanel/common": "workspace:*",
"@openpanel/redis": "workspace:*",
"bullmq": "^5.1.1",
"express": "^4.18.2",
"ramda": "^0.29.1"
},
"devDependencies": {
"@mixan/eslint-config": "workspace:*",
"@mixan/prettier-config": "workspace:*",
"@mixan/tsconfig": "workspace:*",
"@openpanel/eslint-config": "workspace:*",
"@openpanel/prettier-config": "workspace:*",
"@openpanel/tsconfig": "workspace:*",
"@types/express": "^4.17.21",
"@types/ramda": "^0.29.6",
"eslint": "^8.48.0",
@@ -35,8 +35,8 @@
"eslintConfig": {
"root": true,
"extends": [
"@mixan/eslint-config/base"
"@openpanel/eslint-config/base"
]
},
"prettier": "@mixan/prettier-config"
"prettier": "@openpanel/prettier-config"
}

View File

@@ -5,8 +5,8 @@ import type { WorkerOptions } from 'bullmq';
import { Worker } from 'bullmq';
import express from 'express';
import { connection, eventsQueue } from '@mixan/queue';
import { cronQueue } from '@mixan/queue/src/queues';
import { connection, eventsQueue } from '@openpanel/queue';
import { cronQueue } from '@openpanel/queue/src/queues';
import { cronJob } from './jobs/cron';
import { eventsJob } from './jobs/events';

View File

@@ -1,5 +1,5 @@
import { generateSalt } from '@mixan/common';
import { db, getCurrentSalt } from '@mixan/db';
import { generateSalt } from '@openpanel/common';
import { db, getCurrentSalt } from '@openpanel/db';
export async function salt() {
const oldSalt = await getCurrentSalt();

View File

@@ -1,6 +1,6 @@
import type { Job } from 'bullmq';
import type { CronQueuePayload } from '@mixan/queue/src/queues';
import type { CronQueuePayload } from '@openpanel/queue/src/queues';
import { salt } from './cron.salt';

View File

@@ -1,8 +1,8 @@
import type { Job } from 'bullmq';
import { getTime } from '@mixan/common';
import { createEvent, getEvents } from '@mixan/db';
import type { EventsQueuePayloadCreateSessionEnd } from '@mixan/queue/src/queues';
import { getTime } from '@openpanel/common';
import { createEvent, getEvents } from '@openpanel/db';
import type { EventsQueuePayloadCreateSessionEnd } from '@openpanel/queue/src/queues';
export async function createSessionEnd(
job: Job<EventsQueuePayloadCreateSessionEnd>

View File

@@ -1,10 +1,10 @@
import type { Job } from 'bullmq';
import { createEvent } from '@mixan/db';
import { createEvent } from '@openpanel/db';
import type {
EventsQueuePayload,
EventsQueuePayloadCreateSessionEnd,
} from '@mixan/queue/src/queues';
} from '@openpanel/queue/src/queues';
import { createSessionEnd } from './events.create-session-end';

View File

@@ -1,12 +1,18 @@
{
"extends": "@mixan/tsconfig/base.json",
"extends": "@openpanel/tsconfig/base.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["./src/*"]
"@/*": ["./src/*"],
},
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json"
"plugins": [
{
"name": "next",
},
],
"tsBuildInfoFile": "node_modules/.cache/tsbuildinfo.json",
"strictNullChecks": true,
},
"include": ["."],
"exclude": ["node_modules"]
"include": [".", ".next/types/**/*.ts"],
"exclude": ["node_modules"],
}

View File

@@ -4,7 +4,7 @@ import type { Options } from 'tsup';
const options: Options = {
clean: true,
entry: ['src/index.ts'],
noExternal: [/^@mixan\/.*$/u, /^@\/.*$/u],
noExternal: [/^@openpanel\/.*$/u, /^@\/.*$/u],
sourcemap: true,
splitting: false,
};