mirror of
https://github.com/whyour/qinglong.git
synced 2026-11-30 16:27:21 +08:00
17 lines
462 B
TypeScript
17 lines
462 B
TypeScript
import path from 'path';
|
|
import { Service } from 'typedi';
|
|
import config from '../config';
|
|
import { ScriptHistory } from '../shared/scriptHistory';
|
|
|
|
/** Panel configuration and lifecycle; the storage core stays independently testable. */
|
|
@Service()
|
|
export default class ScriptHistoryService extends ScriptHistory {
|
|
constructor() {
|
|
super(
|
|
config.scriptPath,
|
|
path.join(config.dataPath, 'script-history'),
|
|
config.blackFileList,
|
|
);
|
|
}
|
|
}
|