|
@@ -14,15 +14,6 @@ import {
|
|
|
} from '../util/color-scheme';
|
|
} from '../util/color-scheme';
|
|
|
import Apiv1ErrorHandler from '../util/apiv1ErrorHandler';
|
|
import Apiv1ErrorHandler from '../util/apiv1ErrorHandler';
|
|
|
|
|
|
|
|
-import {
|
|
|
|
|
- DetachCodeBlockInterceptor,
|
|
|
|
|
- RestoreCodeBlockInterceptor,
|
|
|
|
|
-} from '../util/interceptor/detach-code-blocks';
|
|
|
|
|
-
|
|
|
|
|
-import {
|
|
|
|
|
- DrawioInterceptor,
|
|
|
|
|
-} from '../util/interceptor/drawio-interceptor';
|
|
|
|
|
-
|
|
|
|
|
import i18nFactory from '../util/i18n';
|
|
import i18nFactory from '../util/i18n';
|
|
|
import apiv3ErrorHandler from '../util/apiv3ErrorHandler';
|
|
import apiv3ErrorHandler from '../util/apiv3ErrorHandler';
|
|
|
|
|
|
|
@@ -100,9 +91,6 @@ export default class AppContainer extends Container {
|
|
|
this.originRenderer = new GrowiRenderer(this);
|
|
this.originRenderer = new GrowiRenderer(this);
|
|
|
|
|
|
|
|
this.interceptorManager = new InterceptorManager();
|
|
this.interceptorManager = new InterceptorManager();
|
|
|
- this.interceptorManager.addInterceptor(new DetachCodeBlockInterceptor(this), 10); // process as soon as possible
|
|
|
|
|
- this.interceptorManager.addInterceptor(new DrawioInterceptor(this), 20);
|
|
|
|
|
- this.interceptorManager.addInterceptor(new RestoreCodeBlockInterceptor(this), 900); // process as late as possible
|
|
|
|
|
|
|
|
|
|
if (this.currentUser != null) {
|
|
if (this.currentUser != null) {
|
|
|
// remove old user cache
|
|
// remove old user cache
|