mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-24 17:19:44 +00:00
57 lines
1.2 KiB
TypeScript
57 lines
1.2 KiB
TypeScript
import type { ChronocatContext } from '@chronocat/shell'
|
|
import h from '@satorijs/element'
|
|
|
|
export const ctx: ChronocatContext = {
|
|
chronocat: {
|
|
api: {
|
|
'chronocat.internal.red.message.parse': (() => {
|
|
const fn = (async () =>
|
|
undefined) as unknown as ChronocatContext['chronocat']['api']['chronocat.internal.red.message.parse']
|
|
|
|
fn.notimpl = false
|
|
fn.engine = 'engine-mock'
|
|
fn.priority = 0
|
|
|
|
return fn
|
|
})(),
|
|
} as ChronocatContext['chronocat']['api'],
|
|
l: {
|
|
info: jest.fn(),
|
|
warn: jest.fn(),
|
|
error: jest.fn(),
|
|
debug: jest.fn(),
|
|
} as unknown as ChronocatContext['chronocat']['l'],
|
|
h,
|
|
} as ChronocatContext['chronocat'],
|
|
chronocatEngineChronocatApi: {
|
|
msgBoxActiv: {
|
|
activate: () => {},
|
|
},
|
|
},
|
|
}
|
|
|
|
export const satoriConfig = {
|
|
type: 'satori',
|
|
listen: '0.0.0.0',
|
|
port: 5500,
|
|
self_url: 'https://chronocat.vercel.app',
|
|
token: 'DEFINE_CHRONO_TOKEN',
|
|
enable: true,
|
|
} as const
|
|
|
|
export const saveResult = {
|
|
filePath: '',
|
|
fileSize: 0,
|
|
fileName: '',
|
|
fileMime: '',
|
|
md5: '',
|
|
imageInfo: {
|
|
width: 0,
|
|
height: 0,
|
|
type: 'png',
|
|
mime: 'image/png',
|
|
wUnits: '1',
|
|
hUnits: '1',
|
|
},
|
|
}
|