Reupload
This commit is contained in:
commit
61cbd57af1
168 changed files with 31208 additions and 0 deletions
31
server/src/core/features/activityLogger/index.ts
Normal file
31
server/src/core/features/activityLogger/index.ts
Normal file
|
@ -0,0 +1,31 @@
|
|||
import {Feature, AppServices} from "@app/core/Feature";
|
||||
import {LogFeature} from "../logs";
|
||||
import {MetricFeature} from "../metrics";
|
||||
import {ProjectFeature} from "../projects";
|
||||
import {UserFeature} from "../users";
|
||||
import {ActivityLoggerService} from "./ActivityLogger";
|
||||
|
||||
export type ActivityLoggerFeatureDependencies = {
|
||||
userFeature: UserFeature
|
||||
projectFeature: ProjectFeature
|
||||
logFeature: LogFeature
|
||||
metricFeature: MetricFeature
|
||||
}
|
||||
|
||||
export class ActivityLoggerFeature extends Feature {
|
||||
|
||||
public name = "ActivityLogger"
|
||||
public service: ActivityLoggerService
|
||||
public dependencies: ActivityLoggerFeatureDependencies
|
||||
|
||||
constructor(services: AppServices, dependencies: ActivityLoggerFeatureDependencies) {
|
||||
super(services);
|
||||
this.dependencies = dependencies
|
||||
this.service = new ActivityLoggerService({
|
||||
userFeature: this.dependencies.userFeature,
|
||||
projectFeature: this.dependencies.projectFeature,
|
||||
logService: this.dependencies.logFeature.useCases,
|
||||
metricFeature: this.dependencies.metricFeature
|
||||
})
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue