Skip to content

Commit ee137ce

Browse files
committed
Merge branch 'develop' into bwindels/redesign
2 parents eed9c56 + f483fd3 commit ee137ce

9 files changed

Lines changed: 89 additions & 31 deletions

File tree

‎README.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,10 @@ Before attempting to develop on Riot you **must** read the developer guide
234234
for `matrix-react-sdk` at https://github.com/matrix-org/matrix-react-sdk, which
235235
also defines the design, architecture and style for Riot too.
236236

237+
You should also familiarise yourself with the "Here be Dragons" guide to the
238+
tame & not-so-tame dragons (gotchas) which exist in the codebase:
239+
https://docs.google.com/document/d/12jYzvkidrp1h7liEuLIe6BMdU0NUjndUYI971O06ooM
240+
237241
The idea of Riot is to be a relatively lightweight "skin" of customisations on
238242
top of the underlying `matrix-react-sdk`. `matrix-react-sdk` provides both the
239243
higher and lower level React components useful for building Matrix communication

‎package.json‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@
100100
"concurrently": "^4.0.1",
101101
"cpx": "^1.3.2",
102102
"cross-env": "^4.0.0",
103-
"electron-builder": "^11.2.4",
104-
"electron-builder-squirrel-windows": "^11.2.1",
103+
"electron-builder": "^20.28.4",
104+
"electron-builder-squirrel-windows": "^11.6.1",
105105
"electron-devtools-installer": "^2.2.4",
106106
"emojione": "^2.2.7",
107107
"eslint": "^5.6.0",
@@ -150,12 +150,7 @@
150150
},
151151
"build": {
152152
"appId": "im.riot.app",
153-
"category": "Network",
154-
"electronVersion": "2.0.8",
155-
"//asar=false": "https://github.com/electron-userland/electron-builder/issues/675",
156-
"asar": false,
157-
"dereference": true,
158-
"//files": "We bundle everything, so we only need to include webapp/",
153+
"electronVersion": "3.0.3",
159154
"files": [
160155
"node_modules/**",
161156
"src/**",
@@ -172,8 +167,13 @@
172167
"StartupWMClass": "riot"
173168
}
174169
},
170+
"mac": {
171+
"category": "public.app-category.social-networking"
172+
},
175173
"win": {
176-
"target": "squirrel"
174+
"target": {
175+
"target": "squirrel"
176+
}
177177
},
178178
"directories": {
179179
"buildResources": "electron_app/build",

‎release.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ echo "electron npm version"
4242

4343
cd electron_app
4444
npm version --no-git-tag-version "$release"
45-
git commit package.json package-lock.json -m "$tag"
45+
git commit package.json -m "$tag"
4646

4747

4848
cd ..

‎src/i18n/strings/it.json‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@
2222
"Support for those using and running matrix-appservice-irc": "Supporto per chi usa e amministra matrix-appservice-irc",
2323
"Building services on Matrix": "Costruzione servizi su Matrix",
2424
"Support for those using the Matrix spec": "Supporto per chi utilizza le specifiche Matrix",
25-
"Design and implementation of E2E in Matrix": "Design e implementazione di E2E in Matrix",
25+
"Design and implementation of E2E in Matrix": "Progetto e implementazione di E2E in Matrix",
2626
"Implementing VR services with Matrix": "Implementazione servizi VR con Matrix",
2727
"Implementing VoIP services with Matrix": "Implementazione servizi VoIP con Matrix",
28-
"Discussion of the Identity Service API": "Discussione sull'Identity Service API",
29-
"Support for those using, running and writing other bridges": "Supporto per chi usa, amministra e scrive altri bridge",
28+
"Discussion of the Identity Service API": "Discussione API del servizio identità",
29+
"Support for those using, running and writing other bridges": "Supporto per chi usa, amministra e scrive altri ponti (bridge)",
3030
"Contributing code to Matrix and Riot": "Contributi di codice per Matrix e Riot",
3131
"%(appName)s via %(browserName)s on %(osName)s": "%(appName)s tramite %(browserName)s su %(osName)s",
32-
"Decentralised, encrypted chat & collaboration powered by [matrix]": "Chat criptate e collaborazioni decentralizzate offerte da [matrix]",
33-
"Discussion of all things Matrix!": "Discussione su tutto quanto riguardi Matrix!",
32+
"Decentralised, encrypted chat & collaboration powered by [matrix]": "Chat criptate e decentralizzate & collaborazione offerta da [matrix]",
33+
"Discussion of all things Matrix!": "Discussione su tutto riguardo Matrix!",
3434
"Dev chat for the Riot/Web dev team": "Chat per gli sviluppatori di Riot/Web",
3535
"Dev chat for the Dendrite dev team": "Chat per gli sviluppatori di Dendrite",
36-
"Lots of rooms already exist in Matrix, linked to existing networks (Slack, IRC, Gitter etc) or independent. Check out the directory!": "Esistono già molte stanze in Matrix, collegate a reti già esistenti (Slack, IRC, Gitter ecc) o indipendenti. Dai un'occhiata all'elenco!",
37-
"You can use the custom server options to sign into other Matrix servers by specifying a different Home server URL.<br/>This allows you to use Riot with an existing Matrix account on a different home server.<br/><br/>You can also set a custom identity server but you won't be able to invite users by email address, or be invited by email address yourself.": "Puoi usare le opzioni server personalizzate per accedere ad altri server Matrix specificando l'indirizzo dell'home server.<br/> Questo permette di usare Matrix con un account esistente su un home server diverso.<br/><br/>È anche possibile impostare un diverso identity server, ma in quel caso non sarà possibile invitare utenti attraverso l'indirizzo e-mail o essere invitati attraverso l'indirizzo e-mail.",
36+
"Lots of rooms already exist in Matrix, linked to existing networks (Slack, IRC, Gitter etc) or independent. Check out the directory!": "Esistono già molte stanze in Matrix, collegate a reti esistenti (Slack, IRC, Gitter, ecc.) o indipendenti. Controlla l'elenco!",
37+
"You can use the custom server options to sign into other Matrix servers by specifying a different Home server URL.<br/>This allows you to use Riot with an existing Matrix account on a different home server.<br/><br/>You can also set a custom identity server but you won't be able to invite users by email address, or be invited by email address yourself.": "Puoi usare le opzioni server personalizzate per accedere ad altri server Matrix specificando l'indirizzo del server home.<br/> Questo permette di usare Riot con un account Matrix esistente su un server home diverso.<br/><br/>È anche possibile impostare un diverso server identità, ma in tal caso non sarà possibile invitare utenti attraverso l'indirizzo e-mail o essere invitati attraverso l'indirizzo e-mail.",
3838
"Co-ordination for Riot translators": "Coordinazione per i traduttori di Riot"
3939
}

‎src/i18n/strings/ja.json‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"Chat with Riot Bot": "Riot Botと会話",
1616
"Get started with some tips from Riot Bot!": "Riot Botにヒントをもらって始めましょう!",
1717
"General discussion about Matrix and Riot": "MatrixとRiotの概略",
18-
"Discussion of all things Matrix!": "Matrixなんでも討論",
18+
"Discussion of all things Matrix!": "Matrixなんでも議論!",
1919
"Riot/Web &amp; Desktop chat": "Riot/Web &amp; デスクトップ版チャット",
2020
"Riot/iOS &amp; matrix-ios-sdk chat": "Riot/iOS &amp; matrix-ios-sdk チャット",
2121
"Riot/Android &amp; matrix-android-sdk chat": "Riot/Android &amp; matrix-android-sdk チャット",
@@ -27,12 +27,13 @@
2727
"Support for those using and running matrix-appservice-irc": "matrix-appservice-ircを利用並びに運営している方へのサポート",
2828
"Building services on Matrix": "Matrixでのサービスの開発",
2929
"Support for those using the Matrix spec": "Matrixスペックを利用する方へのサポート",
30-
"Design and implementation of E2E in Matrix": "Matrixでのデザインとエンドツーエンドの実装",
30+
"Design and implementation of E2E in Matrix": "Matrixのデザインとエンドツーエンドの実装",
3131
"Implementing VR services with Matrix": "MatrixでのVRサービスの実装",
3232
"Implementing VoIP services with Matrix": "MatrixでのIP電話サービスの実装",
3333
"Discussion of the Identity Service API": "Identity Service APIの議論",
3434
"Support for those using, running and writing other bridges": "他のブリッジを利用、運営、作成している方へのサポート",
3535
"Contributing code to Matrix and Riot": "MatrixとRiotにコードを提供する",
3636
"Dev chat for the Riot/Web dev team": "Riot/Web開発者チームのための開発者チャット",
37-
"Dev chat for the Dendrite dev team": "Dendrite開発者チームのための開発者チャット"
37+
"Dev chat for the Dendrite dev team": "Dendrite開発者チームのための開発者チャット",
38+
"Co-ordination for Riot translators": "Riot 翻訳者による共同作業"
3839
}

‎src/i18n/strings/jbo.json‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"Riot is not supported on mobile web. Install the app?": ".i lo samfonxa na kakne lo nu pilno la kibro nu zunti .i .au pei kibycpa le samtci",
3+
"Riot Desktop on %(platformName)s": "la skami nu zunti ci'e la'o gy. %(platformName)s .gy.",
4+
"Unknown device": "lo na'e te djuno se pilno",
5+
"%(appName)s via %(browserName)s on %(osName)s": "la'o gy. %(appName)s .gy. xe be'i la'o gy. %(browserName)s .gy. ci'e la'o gy. %(osName)s .gy.",
6+
"You need to be using HTTPS to place a screen-sharing call.": ".i la .hytytypysys. sarcu lo nu co'a vidni jorne",
7+
"Custom Server Options": "lo macnu se cuxna be fi lo'i samse'u",
8+
"You can use the custom server options to sign into other Matrix servers by specifying a different Home server URL.<br/>This allows you to use Riot with an existing Matrix account on a different home server.<br/><br/>You can also set a custom identity server but you won't be able to invite users by email address, or be invited by email address yourself.": ".i zukte lo nu macnu cuxna lo samse'u kei goi ko'a lo nu pilno lo drata samse'u pe la nacmeimei<br/>.i ko'a se cumki lo nu do pilno lo pilno poi zvati lo drata samse'u pe la nacmeimei<br/><br/>.i ji'a cumki fa lo nu do pilno lo drata ke prenu datni samse'u kei goi ko'a .i ku'i ko'a to'e rinka la'a lo nu do zvacpe ja se zvacpe",
9+
"Dismiss": "mipri",
10+
"powered by Matrix": ".i la nacmeimei cu cumgau",
11+
"Welcome to Riot.im": ".i fi'i lo pilno be la nu zunti",
12+
"Decentralised, encrypted chat &amp; collaboration powered by [matrix]": ".i la nacmeimei cu cumgau lo mifra je na'e se midju nu tavla je ke kansa gunka",
13+
"Search the room directory": "sisku fi lo'i kumfa pe'a",
14+
"Lots of rooms already exist in Matrix, linked to existing networks (Slack, IRC, Gitter etc) or independent. Check out the directory!": ".i ci'e la nacmeimei cu kumfa pe'a fa so'i da noi jorne jo nai no'e jorne lo drata ciste no'u mu'a la .slak. jo'u lo te irci jo'u la .gityr. .i",
15+
"Chat with Riot Bot": "tavla la nu zunti kei sampre",
16+
"Get started with some tips from Riot Bot!": ".i .e'u la nu zunti kei sampre cu sidju ko",
17+
"General discussion about Matrix and Riot": "lo nu casnu be la nacmeimei .e la nu zunti",
18+
"Discussion of all things Matrix!": "lo nu casnu be ro me la nacmeimei",
19+
"Riot/Web &amp; Desktop chat": "lo nu casnu be la kibro nu zunti .e la skami nu zunti",
20+
"Running Matrix services": "lo nu ralte lo samtcise'u pe la nacmeimei",
21+
"Community-run support for Synapse": "lo nu lo cecmu cu sidju fi tu'a la .sinaps.",
22+
"Discussion of the Identity Service API": "lo nu casnu lo prenu datni favgau cimde",
23+
"Contributing code to Matrix and Riot": "lo nu dunda lo samselpla la nacmeimei .a la nu zunti",
24+
"Co-ordination for Riot translators": "lo nu lo fanva pe la nu zunti cu kansa gunka",
25+
"Riot/iOS &amp; matrix-ios-sdk chat": "lo nu casnu la plisyfonkemsamcmu nu zunti .e la'o gy. matrix-ios-sdk .gy.",
26+
"Riot/Android &amp; matrix-android-sdk chat": "lo nu casnu la guglyfonkemsamcmu nu zunti .e la'o gy. matrix-android-sdk .gy.",
27+
"Matrix technical discussions": "lo nu casnu lo zbaske be la nacmeimei",
28+
"Announcements about Synapse releases": "lo notci be lo farvi tcini pe la nirna",
29+
"Support for those using and running matrix-appservice-irc": "lo nu sidju lo pilno ja admine be la'o gy. matrix-appservice-irc .gy.",
30+
"Building services on Matrix": "lo nu finti lo te selfu ji'u la nacmeimei",
31+
"Support for those using the Matrix spec": "lo nu sidju lo pilno be lo sarcu pe la nacmeimei",
32+
"Design and implementation of E2E in Matrix": "lo nu finti lo mulno mifra te platu .a lo samtcise'u be my. ji'u la nacmeimei",
33+
"Support for those using, running and writing other bridges": "lo nu sidju lo pilno ja admine ja finti be lo drata te jorne",
34+
"Dev chat for the Riot/Web dev team": "lo nu lo favgau be la kibro nu zunti cu casnu",
35+
"Dev chat for the Dendrite dev team": "lo nu lo favgau be la nirndendriti cu casnu",
36+
"Implementing VoIP services with Matrix": "lo nu finti lo samtcise'u be fi la .voip. ji'u la nacmeimei",
37+
"Implementing VR services with Matrix": "lo nu finti lo samtcise'u be fi lo na'e fatci munje ji'u la nacmeimei",
38+
"Admin support for Dendrite": "lo nu sidju lo admine be la nirndendriti"
39+
}

‎src/i18n/strings/ko.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,7 @@
3333
"Contributing code to Matrix and Riot": "Matrix와 Riot에 코드 기여하기",
3434
"Dev chat for the Riot/Web dev team": "Riot/웹 개발 팀을 위한 개발자 대화",
3535
"Dev chat for the Dendrite dev team": "덴드라이트 개발 팀을 위한 개발자 대화",
36-
"Lots of rooms already exist in Matrix, linked to existing networks (Slack, IRC, Gitter etc) or independent. Check out the directory!": "기존 네트워크(Slack, IRC, Gitter 등)에 연결되있거나 독립된 많은 방이 이미 Matrix에 있습니다. 목록을 확인해보세요!"
36+
"Lots of rooms already exist in Matrix, linked to existing networks (Slack, IRC, Gitter etc) or independent. Check out the directory!": "기존 네트워크(Slack, IRC, Gitter 등)에 연결되있거나 독립된 많은 방이 이미 Matrix에 있습니다. 목록을 확인해보세요!",
37+
"Co-ordination for Riot translators": "Riot 번역자 조합",
38+
"You can use the custom server options to sign into other Matrix servers by specifying a different Home server URL.<br/>This allows you to use Riot with an existing Matrix account on a different home server.<br/><br/>You can also set a custom identity server but you won't be able to invite users by email address, or be invited by email address yourself.": "사용자정의 서버 설정에서 다른 홈서버 URL를 지정해 다른 Matrix 서버에 접속할 수 있습니다. <br/>이렇게하면 다른 홈서버에서 기존의 Matrix 계정으로 Riot을 이용할 수 있습니다.<br/><br/>사용자정의 아이덴티티 서버도 설정할 수 있지만 이메일 주소로 이용자를 초대하거나 자신이 이메일 주소로 초대받을 수 없습니다."
3739
}

‎src/i18n/strings/sq.json‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"Riot is not supported on mobile web. Install the app?": "Riot-i nuk mbulohet nën web për celularët. Të instalohet aplikacioni?",
2+
"Riot is not supported on mobile web. Install the app?": "Riot-i nuk mbulohet në web për celularë. Të instalohet aplikacioni?",
33
"Riot Desktop on %(platformName)s": "Riot Desktop në %(platformName)s",
44
"Unknown device": "Pajisje e panjohur",
55
"%(appName)s via %(browserName)s on %(osName)s": "%(appName)s përmes %(browserName)s nën %(osName)s",
@@ -9,7 +9,7 @@
99
"Dismiss": "Mos e merr parasysh",
1010
"powered by Matrix": "bazuar në Matrix",
1111
"Welcome to Riot.im": "Mirë se vini te Riot.im",
12-
"Decentralised, encrypted chat &amp; collaboration powered by [matrix]": "Decentralised, encrypted Fjalosje &amp; bashkëpunim i decentralizuar, i fshehtëzuar, bazuar në [matrix]",
12+
"Decentralised, encrypted chat &amp; collaboration powered by [matrix]": "Fjalosje &amp; bashkëpunim i decentralizuar, i fshehtëzuar, bazuar në [matrix]",
1313
"Search the room directory": "Kërkoni te drejtoria e dhomave",
1414
"Lots of rooms already exist in Matrix, linked to existing networks (Slack, IRC, Gitter etc) or independent. Check out the directory!": "Ka tashmë plot dhoma në Matrix, të lidhura me rrjete ekzistues (Slack, IRC, Gitter, etj) ose të pavarur. Hidhini një sy listës!",
1515
"Chat with Riot Bot": "Fjalosuni me Robotin Riot",
@@ -27,12 +27,13 @@
2727
"Support for those using and running matrix-appservice-irc": "Asistencë për ata që përdorin dhe xhirojnë matrix-appservice-irc",
2828
"Building services on Matrix": "Ndërtim shërbimesh mbi Matrix",
2929
"Support for those using the Matrix spec": "Asistencë për ata që përdorin specifikimet Matrix",
30-
"Design and implementation of E2E in Matrix": "Konceptimi dhe sendërtimi i E2E në Matrix",
30+
"Design and implementation of E2E in Matrix": "Konceptimi dhe sendërtimi i E2E-s në Matrix",
3131
"Implementing VR services with Matrix": "Sendërtim shërbimesh VR me Matrix-in",
3232
"Implementing VoIP services with Matrix": "Sendërtim shërbimesh VoIP me Matrix-in",
33-
"Discussion of the Identity Service API": "Diskutime mbi Identity Service API",
33+
"Discussion of the Identity Service API": "Diskutime mbi API-n Identity Service",
3434
"Support for those using, running and writing other bridges": "Asistencë për ata që përdorin, xhirojnë ose programojnë ura të tjera",
3535
"Contributing code to Matrix and Riot": "Kontribut me kod te Matrix dhe te Riot",
3636
"Dev chat for the Riot/Web dev team": "Fjalosje mbi zhvillimin, për ekipin e zhvilluesve të Riot/Web-i",
37-
"Dev chat for the Dendrite dev team": "Fjalosje zhvillimi, për ekipin e zhvilluesve të Dendrite-it"
37+
"Dev chat for the Dendrite dev team": "Fjalosje mbi zhvillimi, për ekipin e zhvilluesve të Dendrite-it",
38+
"Co-ordination for Riot translators": "Bashkërendim për përkthyes të Riot-it"
3839
}

‎src/vector/index.js‎

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,23 @@ async function loadApp() {
289289
// in case the Tinter.tint() in MatrixChat fires before the
290290
// CSS has actually loaded (which in practice happens)...
291291

292-
// FIXME: we should probably block loading the app or even
293-
// showing a spinner until the theme is loaded, to avoid
294-
// flashes of unstyled content.
295-
a.onload = () => {
292+
// This if fixes Tinter.setTheme to not fire on Firefox
293+
// in case it is the first time loading Riot.
294+
// `InstallTrigger` is a Object which only exists on Firefox
295+
// (it is used for their Plugins) and can be used as a
296+
// feature check.
297+
// Firefox loads css always before js. This is why we dont use
298+
// onload or it's EventListener as thoose will never trigger.
299+
if (typeof InstallTrigger !== 'undefined') {
296300
Tinter.setTheme(theme);
297-
};
301+
} else {
302+
// FIXME: we should probably block loading the app or even
303+
// showing a spinner until the theme is loaded, to avoid
304+
// flashes of unstyled content.
305+
a.onload = () => {
306+
Tinter.setTheme(theme);
307+
};
308+
}
298309
} else {
299310
// Firefox requires this to not be done via `setAttribute`
300311
// or via HTML.

0 commit comments

Comments
 (0)