1
Fork 0
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:
Ajay Bura 2022-12-20 20:47:51 +05:30 committed by GitHub
parent 63cb564818
commit 899a89cb3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 1111 additions and 7628 deletions

View file

@ -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: () => {

View file

@ -9,7 +9,4 @@ import App from './app/pages/App';
settings.applyTheme();
ReactDom.render(
<App />,
document.getElementById('root'),
);
ReactDom.render(<App />, document.getElementById('root'));