mirror of
https://github.com/netzbegruenung/jitsi-meet-electron.git
synced 2024-04-28 06:44:52 +02:00
Configured flow
This commit is contained in:
parent
ff3b9d9251
commit
923392cf0a
13
.flowconfig
Normal file
13
.flowconfig
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
[ignore]
|
||||||
|
.*/node_modules/.*
|
||||||
|
.*/build/.*
|
||||||
|
|
||||||
|
[include]
|
||||||
|
|
||||||
|
[libs]
|
||||||
|
|
||||||
|
[lints]
|
||||||
|
|
||||||
|
[options]
|
||||||
|
|
||||||
|
[strict]
|
|
@ -1,3 +1,5 @@
|
||||||
|
// @flow
|
||||||
|
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
|
||||||
import { Conference } from '../../conference';
|
import { Conference } from '../../conference';
|
||||||
|
@ -6,7 +8,7 @@ import config from '../../config';
|
||||||
/**
|
/**
|
||||||
* Main component encapsulating the entire application.
|
* Main component encapsulating the entire application.
|
||||||
*/
|
*/
|
||||||
export default class App extends Component {
|
export default class App extends Component<{}> {
|
||||||
/**
|
/**
|
||||||
* Initializes a new {@code App} instance.
|
* Initializes a new {@code App} instance.
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// @flow
|
||||||
|
|
||||||
import { Component } from 'react';
|
import { Component } from 'react';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
|
@ -5,6 +7,8 @@ import {
|
||||||
setupScreenSharingForWindow,
|
setupScreenSharingForWindow,
|
||||||
setupAlwaysOnTopRender,
|
setupAlwaysOnTopRender,
|
||||||
setupWiFiStats
|
setupWiFiStats
|
||||||
|
|
||||||
|
// $FlowFixMe
|
||||||
} from 'jitsi-meet-electron-utils';
|
} from 'jitsi-meet-electron-utils';
|
||||||
|
|
||||||
import config from '../../config';
|
import config from '../../config';
|
||||||
|
@ -12,7 +16,7 @@ import config from '../../config';
|
||||||
/**
|
/**
|
||||||
* Jitsi Meet Window Component
|
* Jitsi Meet Window Component
|
||||||
*/
|
*/
|
||||||
export default class Conference extends Component {
|
export default class Conference extends Component<{}> {
|
||||||
/**
|
/**
|
||||||
* Attach the script
|
* Attach the script
|
||||||
*/
|
*/
|
||||||
|
@ -24,6 +28,7 @@ export default class Conference extends Component {
|
||||||
script.onerror = console.error;
|
script.onerror = console.error;
|
||||||
script.src = `https://${config.defaultDomain}/external_api.js`;
|
script.src = `https://${config.defaultDomain}/external_api.js`;
|
||||||
|
|
||||||
|
// $FlowFixMe
|
||||||
document.head.appendChild(script);
|
document.head.appendChild(script);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
// @flow
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { render } from 'react-dom';
|
import { render } from 'react-dom';
|
||||||
|
|
||||||
|
@ -5,5 +7,6 @@ import { App } from './features/app';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Render the main / root application.
|
* Render the main / root application.
|
||||||
|
* $FlowFixMe
|
||||||
*/
|
*/
|
||||||
render(<App />, document.getElementById('app'));
|
render(<App />, document.getElementById('app'));
|
||||||
|
|
22
package-lock.json
generated
22
package-lock.json
generated
|
@ -4192,6 +4192,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"flow-bin": {
|
||||||
|
"version": "0.72.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/flow-bin/-/flow-bin-0.72.0.tgz",
|
||||||
|
"integrity": "sha1-EgURgPstt8y3KP7+Z8d+lV6SpE0=",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"flow-parser": {
|
"flow-parser": {
|
||||||
"version": "0.72.0",
|
"version": "0.72.0",
|
||||||
"resolved": "https://registry.npmjs.org/flow-parser/-/flow-parser-0.72.0.tgz",
|
"resolved": "https://registry.npmjs.org/flow-parser/-/flow-parser-0.72.0.tgz",
|
||||||
|
@ -6160,6 +6166,15 @@
|
||||||
"postis": "2.2.0",
|
"postis": "2.2.0",
|
||||||
"prebuild-install": "2.5.3",
|
"prebuild-install": "2.5.3",
|
||||||
"robotjs": "github:jitsi/robotjs#5cc469f655669e728b61271c2c57ce97d62976fd"
|
"robotjs": "github:jitsi/robotjs#5cc469f655669e728b61271c2c57ce97d62976fd"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"robotjs": {
|
||||||
|
"version": "github:jitsi/robotjs#5cc469f655669e728b61271c2c57ce97d62976fd",
|
||||||
|
"requires": {
|
||||||
|
"nan": "2.10.0",
|
||||||
|
"prebuild-install": "2.5.3"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"js-tokens": {
|
"js-tokens": {
|
||||||
|
@ -8823,13 +8838,6 @@
|
||||||
"inherits": "2.0.3"
|
"inherits": "2.0.3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"robotjs": {
|
|
||||||
"version": "github:jitsi/robotjs#5cc469f655669e728b61271c2c57ce97d62976fd",
|
|
||||||
"requires": {
|
|
||||||
"nan": "2.10.0",
|
|
||||||
"prebuild-install": "2.5.3"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"run-async": {
|
"run-async": {
|
||||||
"version": "2.3.0",
|
"version": "2.3.0",
|
||||||
"resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz",
|
"resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz",
|
||||||
|
|
|
@ -8,12 +8,14 @@
|
||||||
"start": "webpack --config ./webpack.config.js --mode development && electron ./build/main.js",
|
"start": "webpack --config ./webpack.config.js --mode development && electron ./build/main.js",
|
||||||
"clean": "rm -rf node_modules",
|
"clean": "rm -rf node_modules",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
|
"flow": "flow",
|
||||||
"pack": "webpack --config ./webpack.config.js --mode production && electron-packager .",
|
"pack": "webpack --config ./webpack.config.js --mode production && electron-packager .",
|
||||||
"postinstall": "electron-rebuild",
|
"postinstall": "electron-rebuild",
|
||||||
"validate": "npm ls"
|
"validate": "npm ls"
|
||||||
},
|
},
|
||||||
"pre-commit": [
|
"pre-commit": [
|
||||||
"lint"
|
"lint",
|
||||||
|
"flow"
|
||||||
],
|
],
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
@ -50,6 +52,7 @@
|
||||||
"eslint-plugin-import": "2.11.0",
|
"eslint-plugin-import": "2.11.0",
|
||||||
"eslint-plugin-jsdoc": "3.2.0",
|
"eslint-plugin-jsdoc": "3.2.0",
|
||||||
"eslint-plugin-react": "7.7.0",
|
"eslint-plugin-react": "7.7.0",
|
||||||
|
"flow-bin": "0.72.0",
|
||||||
"html-webpack-plugin": "3.2.0",
|
"html-webpack-plugin": "3.2.0",
|
||||||
"node-loader": "0.6.0",
|
"node-loader": "0.6.0",
|
||||||
"precommit-hook": "3.0.0",
|
"precommit-hook": "3.0.0",
|
||||||
|
|
Loading…
Reference in a new issue