mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-12 06:23:56 +03:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
e82a95a0b5
4 changed files with 17 additions and 0 deletions
|
@ -130,6 +130,11 @@ You can configure the app by copying `config.sample.json` to
|
||||||
anything else since it is used to isolate the privileges of file attachments to this
|
anything else since it is used to isolate the privileges of file attachments to this
|
||||||
domain. Default: `usercontent.riot.im`. This needs to contain v1.html from
|
domain. Default: `usercontent.riot.im`. This needs to contain v1.html from
|
||||||
https://github.com/matrix-org/usercontent/blob/master/v1.html
|
https://github.com/matrix-org/usercontent/blob/master/v1.html
|
||||||
|
1. `piwik`: an object containing the following properties:
|
||||||
|
1. `url`: The URL of the Piwik instance to use for collecting Analytics
|
||||||
|
1. `whitelistedHSUrls`: a list of HS URLs to not redact from the Analytics
|
||||||
|
1. `whitelistedISUrls`: a list of IS URLs to not redact from the Analytics
|
||||||
|
1. `siteId`: The Piwik Site ID to use when sending Analytics to the Piwik server configured above
|
||||||
|
|
||||||
Running as a Desktop app
|
Running as a Desktop app
|
||||||
========================
|
========================
|
||||||
|
|
|
@ -24,6 +24,8 @@
|
||||||
"welcomeUserId": "@riot-bot:matrix.org",
|
"welcomeUserId": "@riot-bot:matrix.org",
|
||||||
"piwik": {
|
"piwik": {
|
||||||
"url": "https://piwik.riot.im/",
|
"url": "https://piwik.riot.im/",
|
||||||
|
"whitelistedHSUrls": ["https://matrix.org"],
|
||||||
|
"whitelistedISUrls": ["https://vector.im", "https://matrix.org"],
|
||||||
"siteId": 1
|
"siteId": 1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,9 @@ limitations under the License.
|
||||||
|
|
||||||
/* joining.js: tests for the various paths when joining a room */
|
/* joining.js: tests for the various paths when joining a room */
|
||||||
|
|
||||||
|
import PlatformPeg from 'matrix-react-sdk/lib/PlatformPeg';
|
||||||
|
import Platform from '../../src/vector/platform';
|
||||||
|
|
||||||
require('skin-sdk');
|
require('skin-sdk');
|
||||||
|
|
||||||
var jssdk = require('matrix-js-sdk');
|
var jssdk = require('matrix-js-sdk');
|
||||||
|
@ -85,6 +88,8 @@ describe('joining a room', function () {
|
||||||
localStorage.setItem("mx_access_token", ACCESS_TOKEN );
|
localStorage.setItem("mx_access_token", ACCESS_TOKEN );
|
||||||
localStorage.setItem("mx_user_id", USER_ID);
|
localStorage.setItem("mx_user_id", USER_ID);
|
||||||
|
|
||||||
|
PlatformPeg.set(new Platform());
|
||||||
|
|
||||||
var mc = (
|
var mc = (
|
||||||
<MatrixChat config={{}}
|
<MatrixChat config={{}}
|
||||||
makeRegistrationUrl={()=>{throw new Error("unimplemented");}}
|
makeRegistrationUrl={()=>{throw new Error("unimplemented");}}
|
||||||
|
|
|
@ -16,6 +16,9 @@ limitations under the License.
|
||||||
|
|
||||||
/* loading.js: test the myriad paths we have for loading the application */
|
/* loading.js: test the myriad paths we have for loading the application */
|
||||||
|
|
||||||
|
import PlatformPeg from 'matrix-react-sdk/lib/PlatformPeg';
|
||||||
|
import Platform from '../../src/vector/platform';
|
||||||
|
|
||||||
import 'skin-sdk';
|
import 'skin-sdk';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
@ -137,6 +140,8 @@ describe('loading:', function () {
|
||||||
default_is_url: DEFAULT_IS_URL,
|
default_is_url: DEFAULT_IS_URL,
|
||||||
}, opts.config || {});
|
}, opts.config || {});
|
||||||
|
|
||||||
|
PlatformPeg.set(new Platform());
|
||||||
|
|
||||||
var params = parseQs(windowLocation);
|
var params = parseQs(windowLocation);
|
||||||
matrixChat = ReactDOM.render(
|
matrixChat = ReactDOM.render(
|
||||||
<MatrixChat
|
<MatrixChat
|
||||||
|
|
Loading…
Reference in a new issue