Skip to content

Commit d9ebb11

Browse files
committed
Merge branch 'develop' of https://github.com/vector-im/riot-web into rxl881/appFixes
2 parents 25d1d78 + ee2fb17 commit d9ebb11

10 files changed

Lines changed: 81 additions & 33 deletions

File tree

‎.gitignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
npm-debug.log
1515
electron/dist
1616
electron/pub
17-
/.idea
17+
**/.idea
1818
/config.json
1919
/src/component-index.js

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ released version of Riot:
2222
1. Enter the URL into your browser and log into Riot!
2323

2424
Releases are signed by PGP, and can be checked against the public key
25-
at https://riot.im/packages/keys/riot-master.asc
25+
at https://riot.im/packages/keys/riot.asc
2626

2727
Note that Chrome does not allow microphone or webcam access for sites served
2828
over http (except localhost), so for working VoIP you will need to serve Riot
@@ -62,7 +62,7 @@ to build.
6262
1. If you're using the `develop` branch, install the develop versions of the
6363
dependencies, as the released ones will be too old:
6464
```
65-
scripts/fetch-develop-deps.sh
65+
scripts/fetch-develop.deps.sh
6666
```
6767
Whenever you git pull on riot-web you will also probably need to force an update
6868
to these dependencies - the simplest way is to re-run the script, but you can also

‎karma.conf.js‎

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,23 @@ module.exports = function (config) {
8484
// available preprocessors:
8585
// https://npmjs.org/browse/keyword/karma-preprocessor
8686
preprocessors: {
87-
'{src,test}/**/*.js': ['webpack'],
87+
'{src,test}/**/*.js': ['webpack', 'sourcemap'],
8888
},
8989

9090
// test results reporter to use
91-
// possible values: 'dots', 'progress'
9291
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
93-
reporters: ['progress', 'junit'],
92+
reporters: ['logcapture', 'spec', 'junit', 'summary'],
93+
94+
specReporter: {
95+
suppressErrorSummary: false, // do print error summary
96+
suppressFailed: false, // do print information about failed tests
97+
suppressPassed: false, // do print information about passed tests
98+
showSpecTiming: true, // print the time elapsed for each spec
99+
},
100+
101+
client: {
102+
captureLogs: true,
103+
},
94104

95105
// web server port
96106
port: 9876,

‎package.json‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"build:res": "node scripts/copy-res.js",
3232
"build:modernizr": "modernizr -c .modernizr.json -d src/vector/modernizr.js",
3333
"build:compile": "npm run reskindex && babel --source-maps -d lib src",
34-
"build:bundle": "cross-env NODE_ENV=production webpack -p --progress",
35-
"build:bundle:dev": "webpack --optimize-occurence-order --progress",
34+
"build:bundle": "cross-env NODE_ENV=production webpack -p --progress --bail",
35+
"build:bundle:dev": "webpack --optimize-occurence-order --progress --bail",
3636
"build:electron": "npm run clean && npm run build && npm run install:electron && build -wml --ia32 --x64",
3737
"build": "npm run reskindex && npm run build:res && npm run build:bundle",
3838
"build:dev": "npm run reskindex && npm run build:res && npm run build:bundle:dev",
@@ -114,11 +114,15 @@
114114
"fs-extra": "^0.30.0",
115115
"html-webpack-plugin": "^2.24.0",
116116
"json-loader": "^0.5.3",
117-
"karma": "^0.13.22",
117+
"karma": "^1.7.0",
118118
"karma-chrome-launcher": "^0.2.3",
119119
"karma-cli": "^0.1.2",
120120
"karma-junit-reporter": "^0.4.1",
121+
"karma-logcapture-reporter": "0.0.1",
121122
"karma-mocha": "^0.2.2",
123+
"karma-sourcemap-loader": "^0.3.7",
124+
"karma-spec-reporter": "0.0.31",
125+
"karma-summary-reporter": "^1.3.3",
122126
"karma-webpack": "^1.7.0",
123127
"matrix-mock-request": "^1.2.0",
124128
"matrix-react-test-utils": "^0.2.0",

‎scripts/fetch-develop.deps.sh‎

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,42 +49,47 @@ function dodep() {
4949
[ "$curbranch" != 'develop' ] && clone $org $repo develop
5050
} || return $?
5151

52-
(
53-
cd $repo
54-
echo "$repo set to branch "`git rev-parse --abbrev-ref HEAD`
55-
)
52+
echo "$repo set to branch "`git -C "$repo" rev-parse --abbrev-ref HEAD`
5653

5754
mkdir -p node_modules
5855
rm -r "node_modules/$repo" 2>/dev/null || true
5956
ln -sv "../$repo" node_modules/
57+
58+
(
59+
cd $repo
60+
npm install
61+
)
6062
}
6163

64+
##############################
65+
6266
echo -en 'travis_fold:start:matrix-js-sdk\r'
6367
echo 'Setting up matrix-js-sdk'
6468

6569
dodep matrix-org matrix-js-sdk
66-
(
67-
cd node_modules/matrix-js-sdk
68-
npm install
69-
)
7070

7171
echo -en 'travis_fold:end:matrix-js-sdk\r'
7272

73+
##############################
74+
7375
echo -en 'travis_fold:start:matrix-react-sdk\r'
7476
echo 'Setting up matrix-react-sdk'
7577

7678
dodep matrix-org matrix-react-sdk
7779

78-
mkdir -p node_modules/matrix-react-sdk/node_modules
80+
# replace the version of js-sdk that got pulled into react-sdk with a symlink
81+
# to our version. Make sure to do this *after* doing 'npm i' in react-sdk,
82+
# otherwise npm helpfully moves another-json from matrix-js-sdk/node_modules
83+
# into matrix-react-sdk/node_modules.
84+
#
85+
# (note this matches the instructions in the README.)
86+
rm -r node_modules/matrix-react-sdk/node_modules/matrix-js-sdk
7987
ln -s ../../matrix-js-sdk node_modules/matrix-react-sdk/node_modules/
8088

81-
(
82-
cd node_modules/matrix-react-sdk
83-
npm install
84-
)
85-
8689
echo -en 'travis_fold:end:matrix-react-sdk\r'
8790

91+
##############################
92+
8893
# Link the reskindex binary in place: if we used npm link,
8994
# npm would do this for us, but we don't because we'd have
9095
# to define the npm prefix somewhere so it could put the

‎scripts/jenkins.sh‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ nvm use 6
88

99
set -x
1010

11-
# check out corresponding branches of dependencies
12-
`dirname $0`/fetch-develop.deps.sh
11+
# check out corresponding branches of dependencies.
12+
#
13+
# clone the deps with depth 1: we know we will only ever need that one
14+
# commit.
15+
`dirname $0`/fetch-develop.deps.sh --depth 1
1316

1417
npm install
1518

‎src/skins/vector/css/matrix-react-sdk/views/avatars/_BaseAvatar.scss‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ limitations under the License.
2020

2121
.mx_BaseAvatar_initial {
2222
position: absolute;
23+
left: 0px;
2324
color: $avatar-initial-color;
2425
text-align: center;
2526
speak: none;

‎src/skins/vector/css/matrix-react-sdk/views/elements/_MemberEventListSummary.scss‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,22 @@ limitations under the License.
5050
}
5151

5252
.mx_MatrixChat_useCompactLayout {
53+
.mx_MemberEventListSummary {
54+
font-size: 13px;
55+
.mx_EventTile_line {
56+
line-height: 20px;
57+
}
58+
}
59+
5360
.mx_MemberEventListSummary_line {
5461
line-height: 22px;
5562
}
5663

5764
.mx_MemberEventListSummary_toggle {
58-
margin-top: 2px;
65+
margin-top: 3px;
66+
}
67+
68+
.mx_TextualEvent.mx_MemberEventListSummary_summary {
69+
font-size: 13px;
5970
}
6071
}

‎src/skins/vector/css/matrix-react-sdk/views/elements/_RichText.scss‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
display: inline-block;
99
height: 20px;
1010
line-height: 20px;
11+
padding-left: 5px;
1112
}
1213

1314
/* More specific to override `.markdown-body a` color */
@@ -35,9 +36,8 @@
3536
.mx_UserPill .mx_BaseAvatar,
3637
.mx_RoomPill .mx_BaseAvatar {
3738
position: relative;
39+
left: -3px;
3840
top: 2px;
39-
margin-left: 2px;
40-
margin-right: 2px;
4141
}
4242

4343
.mx_Markdown_BOLD {

‎src/skins/vector/css/matrix-react-sdk/views/rooms/_EventTile.scss‎

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -403,14 +403,23 @@ limitations under the License.
403403
}
404404

405405
.mx_EventTile.mx_EventTile_info {
406+
// same as the padding for non-compact .mx_EventTile.mx_EventTile_info
406407
padding-top: 0px;
408+
font-size: 13px;
409+
.mx_EventTile_line {
410+
line-height: 20px;
411+
}
412+
.mx_EventTile_avatar {
413+
top: 4px;
414+
}
407415
}
408416

409417
.mx_EventTile .mx_SenderProfile {
410418
font-size: 13px;
411419
}
412420

413421
.mx_EventTile.mx_EventTile_emote {
422+
// add a bit more space for emotes so that avatars don't collide
414423
padding-top: 8px;
415424
.mx_EventTile_avatar {
416425
top: 2px;
@@ -438,10 +447,6 @@ limitations under the License.
438447
top: 2px;
439448
}
440449

441-
.mx_EventTile.mx_EventTile_info .mx_EventTile_avatar {
442-
top: 5px;
443-
}
444-
445450
.mx_EventTile_e2eIcon {
446451
top: 7px;
447452
}
@@ -455,12 +460,21 @@ limitations under the License.
455460
}
456461

457462
.mx_EventTile_continuation .mx_EventTile_readAvatars,
458-
.mx_EventTile_info .mx_EventTile_readAvatars,
459463
.mx_EventTile_emote .mx_EventTile_readAvatars {
460464
top: 5px;
461465
}
462466

467+
.mx_EventTile_info .mx_EventTile_readAvatars {
468+
top: 4px;
469+
}
470+
463471
.mx_RoomView_MessageList h2 {
464472
margin-top: 6px;
465473
}
474+
475+
.mx_EventTile_content .markdown-body {
476+
p, ul, ol, dl, blockquote, pre, table {
477+
margin-bottom: 4px; // 1/4 of the non-compact margin-bottom
478+
}
479+
}
466480
}

0 commit comments

Comments
 (0)