mirror of
https://github.com/RGBCube/cinny
synced 2025-07-31 08:57:46 +00:00
Replace Webpack to Vite (#1023)
* Add vite, typescript and prettier * Configure vite * Fix tsconfig error * Fix manifest json * Move manifest json to root * Bug fix * Move back manifest json to public
This commit is contained in:
parent
63cb564818
commit
899a89cb3b
18 changed files with 1111 additions and 7628 deletions
|
@ -1,5 +1,6 @@
|
|||
import EventEmitter from 'events';
|
||||
import * as sdk from 'matrix-js-sdk';
|
||||
import Olm from '@matrix-org/olm';
|
||||
// import { logger } from 'matrix-js-sdk/lib/logger';
|
||||
|
||||
import { secret } from './state/auth';
|
||||
|
@ -10,7 +11,7 @@ import Notifications from './state/Notifications';
|
|||
import { cryptoCallbacks } from './state/secretStorageKeys';
|
||||
import navigation from './state/navigation';
|
||||
|
||||
global.Olm = require('@matrix-org/olm');
|
||||
global.Olm = Olm;
|
||||
|
||||
// logger.disableAll();
|
||||
|
||||
|
@ -78,7 +79,7 @@ class InitMatrix extends EventEmitter {
|
|||
this.emit('init_loading_finished');
|
||||
this.notifications._initNoti();
|
||||
} else {
|
||||
this.notifications._initNoti();
|
||||
this.notifications?._initNoti();
|
||||
}
|
||||
},
|
||||
RECONNECTING: () => {
|
||||
|
|
|
@ -9,7 +9,4 @@ import App from './app/pages/App';
|
|||
|
||||
settings.applyTheme();
|
||||
|
||||
ReactDom.render(
|
||||
<App />,
|
||||
document.getElementById('root'),
|
||||
);
|
||||
ReactDom.render(<App />, document.getElementById('root'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue