mirror of
https://github.com/anyproto/anytype-ts.git
synced 2025-06-08 05:57:02 +09:00
JS-3943: fix, refactoring
This commit is contained in:
parent
b41248584d
commit
ecdb7dcad2
8 changed files with 41 additions and 49 deletions
|
@ -1,12 +1,11 @@
|
|||
import * as React from 'react';
|
||||
import * as hs from 'history';
|
||||
import $ from 'jquery';
|
||||
import { Router, Route, Switch } from 'react-router-dom';
|
||||
import { RouteComponentProps } from 'react-router';
|
||||
import { Provider } from 'mobx-react';
|
||||
import { configure } from 'mobx';
|
||||
import { ListMenu } from 'Component';
|
||||
import { dispatcher, C, UtilCommon, UtilRouter } from 'Lib';
|
||||
import { UtilRouter } from 'Lib';
|
||||
import { commonStore, authStore, blockStore, detailStore, dbStore, menuStore, popupStore, extensionStore } from 'Store';
|
||||
|
||||
import Index from './iframe/index';
|
||||
|
@ -41,28 +40,6 @@ const rootStore = {
|
|||
extensionStore,
|
||||
};
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
Electron: any;
|
||||
$: any;
|
||||
Anytype: any;
|
||||
isWebVersion: boolean;
|
||||
AnytypeGlobalConfig: any;
|
||||
}
|
||||
};
|
||||
|
||||
window.$ = $;
|
||||
window.$ = $;
|
||||
window.Anytype = {
|
||||
Store: rootStore,
|
||||
Lib: {
|
||||
C,
|
||||
UtilCommon,
|
||||
dispatcher,
|
||||
Storage,
|
||||
},
|
||||
};
|
||||
|
||||
class RoutePage extends React.Component<RouteComponentProps> {
|
||||
render () {
|
||||
const { match } = this.props;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue