|
|
@@ -27,6 +27,7 @@ import { InstallerService } from '../service/installer';
|
|
|
import PageService from '../service/page';
|
|
|
import PageGrantService from '../service/page-grant';
|
|
|
import PageOperationService from '../service/page-operation';
|
|
|
+import RevisionService from '../service/revision';
|
|
|
import SearchService from '../service/search';
|
|
|
import { SlackIntegrationService } from '../service/slack-integration';
|
|
|
import { UserNotificationService } from '../service/user-notification';
|
|
|
@@ -67,6 +68,7 @@ function Crowi() {
|
|
|
this.exportService = null;
|
|
|
this.importService = null;
|
|
|
this.searchService = null;
|
|
|
+ this.revisionService = null;
|
|
|
this.socketIoService = null;
|
|
|
this.pageService = null;
|
|
|
this.syncPageStatusService = null;
|
|
|
@@ -131,6 +133,7 @@ Crowi.prototype.init = async function() {
|
|
|
this.setupExport(),
|
|
|
this.setupImport(),
|
|
|
this.setupPageService(),
|
|
|
+ this.setupRevisionService(),
|
|
|
this.setupInAppNotificationService(),
|
|
|
this.setupActivityService(),
|
|
|
this.setupCommentService(),
|
|
|
@@ -695,6 +698,12 @@ Crowi.prototype.setupPageService = async function() {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
+Crowi.prototype.setupRevisionService = async function() {
|
|
|
+ if (this.revisionService == null) {
|
|
|
+ this.revisionService = new RevisionService(this);
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
Crowi.prototype.setupInAppNotificationService = async function() {
|
|
|
const InAppNotificationService = require('../service/in-app-notification');
|
|
|
if (this.inAppNotificationService == null) {
|