|
@@ -31,6 +31,7 @@ export default class AppContainer extends Container {
|
|
|
|
|
|
|
|
this.state = {
|
|
this.state = {
|
|
|
editorMode: null,
|
|
editorMode: null,
|
|
|
|
|
+ isDarkMode: false,
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const body = document.querySelector('body');
|
|
const body = document.querySelector('body');
|
|
@@ -340,6 +341,10 @@ export default class AppContainer extends Container {
|
|
|
targetComponent.launchDrawioModal(beginLineNumber, endLineNumber);
|
|
targetComponent.launchDrawioModal(beginLineNumber, endLineNumber);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ changeColorScheme(isDarkMode) {
|
|
|
|
|
+ this.setState({ isDarkMode });
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
async apiGet(path, params) {
|
|
async apiGet(path, params) {
|
|
|
return this.apiRequest('get', path, { params });
|
|
return this.apiRequest('get', path, { params });
|
|
|
}
|
|
}
|