Skip to content

Commit f899c75

Browse files
author
Weblate
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents 5266d1b + a5a4c16 commit f899c75

16 files changed

Lines changed: 311 additions & 132 deletions

‎.github/ISSUE_TEMPLATE/redesign_issue.md‎

Lines changed: 0 additions & 32 deletions
This file was deleted.

‎CHANGELOG.md‎

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,113 @@
1+
Changes in [1.0.1](https://github.com/vector-im/riot-web/releases/tag/v1.0.1) (2019-02-15)
2+
==========================================================================================
3+
[Full Changelog](https://github.com/vector-im/riot-web/compare/v1.0.0...v1.0.1)
4+
5+
6+
Changes in [1.0.0](https://github.com/vector-im/riot-web/releases/tag/v1.0.0) (2019-02-14)
7+
==========================================================================================
8+
[Full Changelog](https://github.com/vector-im/riot-web/compare/v1.0.0-rc.2...v1.0.0)
9+
10+
* Add snipping lines to welcome page without guests
11+
[\#8634](https://github.com/vector-im/riot-web/pull/8634)
12+
* Add home page to fix loading tests
13+
[\#8625](https://github.com/vector-im/riot-web/pull/8625)
14+
15+
Changes in [1.0.0-rc.2](https://github.com/vector-im/riot-web/releases/tag/v1.0.0-rc.2) (2019-02-14)
16+
====================================================================================================
17+
[Full Changelog](https://github.com/vector-im/riot-web/compare/v1.0.0-rc.1...v1.0.0-rc.2)
18+
19+
* Update from Weblate.
20+
[\#8615](https://github.com/vector-im/riot-web/pull/8615)
21+
* Replace favicon assets to ones with transparent backgrounds
22+
[\#8600](https://github.com/vector-im/riot-web/pull/8600)
23+
* Refreshed icons
24+
[\#8594](https://github.com/vector-im/riot-web/pull/8594)
25+
* Fix order of fetch-develop-deps / npm install
26+
[\#8566](https://github.com/vector-im/riot-web/pull/8566)
27+
* Revive building dark theme
28+
[\#8540](https://github.com/vector-im/riot-web/pull/8540)
29+
* Update from Weblate.
30+
[\#8546](https://github.com/vector-im/riot-web/pull/8546)
31+
* Repair app loading tests after welcome page
32+
[\#8525](https://github.com/vector-im/riot-web/pull/8525)
33+
* Support configurable welcome background and logo
34+
[\#8528](https://github.com/vector-im/riot-web/pull/8528)
35+
* Update from Weblate.
36+
[\#8518](https://github.com/vector-im/riot-web/pull/8518)
37+
* Document `embeddedPages` configuration
38+
[\#8514](https://github.com/vector-im/riot-web/pull/8514)
39+
* README.md : Syntax Coloring
40+
[\#8502](https://github.com/vector-im/riot-web/pull/8502)
41+
42+
Changes in [1.0.0-rc.1](https://github.com/vector-im/riot-web/releases/tag/v1.0.0-rc.1) (2019-02-08)
43+
====================================================================================================
44+
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.17.9...v1.0.0-rc.1)
45+
46+
* Update from Weblate.
47+
[\#8475](https://github.com/vector-im/riot-web/pull/8475)
48+
* Add configurable welcome page
49+
[\#8466](https://github.com/vector-im/riot-web/pull/8466)
50+
* fix app tests after force enabling lazy loading + removing feature flag
51+
[\#8464](https://github.com/vector-im/riot-web/pull/8464)
52+
* Allow Electron to zoom with CommandOrControl+=
53+
[\#8381](https://github.com/vector-im/riot-web/pull/8381)
54+
* Hide sign in / create account for logged in users
55+
[\#8368](https://github.com/vector-im/riot-web/pull/8368)
56+
* Fix home page link target
57+
[\#8365](https://github.com/vector-im/riot-web/pull/8365)
58+
* Add auth background image and update Riot logo
59+
[\#8364](https://github.com/vector-im/riot-web/pull/8364)
60+
* New homepage
61+
[\#8363](https://github.com/vector-im/riot-web/pull/8363)
62+
* Spell homeserver correctly
63+
[\#8358](https://github.com/vector-im/riot-web/pull/8358)
64+
* Merge redesign into develop
65+
[\#8321](https://github.com/vector-im/riot-web/pull/8321)
66+
* Disable room directory test because it doesn't work
67+
[\#8318](https://github.com/vector-im/riot-web/pull/8318)
68+
* Tweak auth overflow on Windows and Linux
69+
[\#8307](https://github.com/vector-im/riot-web/pull/8307)
70+
* Clean up Custom Server Help dialog
71+
[\#8296](https://github.com/vector-im/riot-web/pull/8296)
72+
* Cache-bust olm.wasm
73+
[\#8283](https://github.com/vector-im/riot-web/pull/8283)
74+
* Completely disable other themes for now (#8277)
75+
[\#8280](https://github.com/vector-im/riot-web/pull/8280)
76+
* Remove support for team servers
77+
[\#8271](https://github.com/vector-im/riot-web/pull/8271)
78+
* Add target="_blank" to footer links
79+
[\#8248](https://github.com/vector-im/riot-web/pull/8248)
80+
* Fix device names on desktop
81+
[\#8241](https://github.com/vector-im/riot-web/pull/8241)
82+
* Fix literal &lt/&gt in notifications
83+
[\#8238](https://github.com/vector-im/riot-web/pull/8238)
84+
* Fix registration nextLink on desktop
85+
[\#8239](https://github.com/vector-im/riot-web/pull/8239)
86+
* Add returns to fetch-develop-deps
87+
[\#8233](https://github.com/vector-im/riot-web/pull/8233)
88+
* Update electron builder
89+
[\#8231](https://github.com/vector-im/riot-web/pull/8231)
90+
* Try fetching more branches for PRs
91+
[\#8225](https://github.com/vector-im/riot-web/pull/8225)
92+
* Use content hashing for font and image URLs
93+
[\#8159](https://github.com/vector-im/riot-web/pull/8159)
94+
* Develop->Experimental
95+
[\#8156](https://github.com/vector-im/riot-web/pull/8156)
96+
* Update from Weblate.
97+
[\#8150](https://github.com/vector-im/riot-web/pull/8150)
98+
* Correct the copying of e-mail addresses in the electron app
99+
[\#8124](https://github.com/vector-im/riot-web/pull/8124)
100+
* Start documenting keyboard shortcuts
101+
[\#7165](https://github.com/vector-im/riot-web/pull/7165)
102+
* Update issue templates
103+
[\#7948](https://github.com/vector-im/riot-web/pull/7948)
104+
* Added new colour var to all themes
105+
[\#7927](https://github.com/vector-im/riot-web/pull/7927)
106+
* Redesign: apply changes from dharma theme to status theme
107+
[\#7541](https://github.com/vector-im/riot-web/pull/7541)
108+
* Redesign: ignore setting and always show dharma theme for now
109+
[\#7540](https://github.com/vector-im/riot-web/pull/7540)
110+
1111
Changes in [0.17.9](https://github.com/vector-im/riot-web/releases/tag/v0.17.9) (2019-01-22)
2112
============================================================================================
3113
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.17.9-rc.1...v0.17.9)

‎README.md‎

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -116,17 +116,24 @@ config.json
116116
You can configure the app by copying `config.sample.json` to
117117
`config.json` and customising it:
118118

119-
For a good example, see https://riot.im/develop/config.json
120-
121-
1. `default_hs_url` is the default homeserver url.
122-
1. `default_is_url` is the default identity server url (this is the server used
123-
for verifying third party identifiers like email addresses). If this is blank,
124-
registering with an email address, adding an email address to your account,
125-
or inviting users via email address will not work. Matrix identity servers are
126-
very simple web services which map third party identifiers (currently only email
127-
addresses) to matrix IDs: see http://matrix.org/docs/spec/identity_service/unstable.html
128-
for more details. Currently the only public matrix identity servers are https://matrix.org
129-
and https://vector.im. In future identity servers will be decentralised.
119+
For a good example, see https://riot.im/develop/config.json.
120+
121+
1. `default_server_name` sets the default server name to use for authentication.
122+
This will trigger Riot to ask
123+
`https://<server_name>/.well-known/matrix/client` for the homeserver and
124+
identity server URLs to use. This is the recommended approach for setting a
125+
default server. However, it is also possible to use the following to directly
126+
configure each of the URLs:
127+
* `default_hs_url` sets the default homeserver URL.
128+
* `default_is_url` sets the default identity server URL (this is the server used
129+
for verifying third party identifiers like email addresses). If this is blank,
130+
registering with an email address, adding an email address to your account,
131+
or inviting users via email address will not work. Matrix identity servers are
132+
very simple web services which map third party identifiers (currently only email
133+
addresses) to matrix IDs: see http://matrix.org/docs/spec/identity_service/unstable.html
134+
for more details. Currently the only public matrix identity servers are https://matrix.org
135+
and https://vector.im. In the future, identity servers will be decentralised.
136+
* Riot will report an error if you accidentally configure both `default_server_name` _and_ `default_hs_url` since it's unclear which should take priority.
130137
1. `features`: Lookup of optional features that may be `enable`d, `disable`d, or exposed to the user
131138
in the `labs` section of settings. The available optional experimental features vary from
132139
release to release.

‎electron_app/package.json‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
"name": "riot-web",
33
"productName": "Riot",
44
"main": "src/electron-main.js",
5-
"version": "0.17.9",
5+
"version": "1.0.1",
66
"description": "A feature-rich client for Matrix.org",
77
"author": "New Vector Ltd.",
88
"dependencies": {
99
"auto-launch": "^5.0.1",
10+
"electron-store": "^2.0.0",
1011
"electron-window-state": "^4.1.0",
1112
"minimist": "^1.2.0",
1213
"png-to-ico": "^1.0.2"

‎electron_app/src/electron-main.js‎

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ const updater = require('./updater');
3535
const { migrateFromOldOrigin } = require('./originMigrator');
3636

3737
const windowStateKeeper = require('electron-window-state');
38+
const Store = require('electron-store');
3839

3940
// boolean flag set whilst we are doing one-time origin migration
4041
// We only serve the origin migration script while we're actually
@@ -55,8 +56,11 @@ try {
5556
// Continue with the defaults (ie. an empty config)
5657
}
5758

59+
const store = new Store();
60+
5861
let mainWindow = null;
5962
global.appQuitting = false;
63+
global.minimizeToTray = store.get('minimizeToTray', true);
6064

6165

6266
// handle uncaught errors otherwise it displays
@@ -136,6 +140,12 @@ ipcMain.on('ipcCall', async function(ev, payload) {
136140
launcher.disable();
137141
}
138142
break;
143+
case 'getMinimizeToTrayEnabled':
144+
ret = global.minimizeToTray;
145+
break;
146+
case 'setMinimizeToTrayEnabled':
147+
store.set('minimizeToTray', global.minimizeToTray = args[0]);
148+
break;
139149
case 'getAppVersion':
140150
ret = app.getVersion();
141151
break;
@@ -147,6 +157,7 @@ ipcMain.on('ipcCall', async function(ev, payload) {
147157
} else {
148158
mainWindow.focus();
149159
}
160+
break;
150161
case 'origin_migrate':
151162
migratingOrigin = true;
152163
await migrateFromOldOrigin();
@@ -262,10 +273,12 @@ app.on('ready', () => {
262273
path: absTarget,
263274
});
264275
}, (error) => {
265-
if (error) console.error('Failed to register protocol')
276+
if (error) console.error('Failed to register protocol');
266277
});
267278

268-
if (vectorConfig['update_base_url']) {
279+
if (argv['no-update']) {
280+
console.log('Auto update disabled via command line flag "--no-update"');
281+
} else if (vectorConfig['update_base_url']) {
269282
console.log(`Starting auto update with base URL: ${vectorConfig['update_base_url']}`);
270283
updater.start(vectorConfig['update_base_url']);
271284
} else {
@@ -331,7 +344,7 @@ app.on('ready', () => {
331344
mainWindow = global.mainWindow = null;
332345
});
333346
mainWindow.on('close', (e) => {
334-
if (!global.appQuitting && (tray.hasTray() || process.platform === 'darwin')) {
347+
if (global.minimizeToTray && !global.appQuitting && (tray.hasTray() || process.platform === 'darwin')) {
335348
// On Mac, closing the window just hides it
336349
// (this is generally how single-window Mac apps
337350
// behave, eg. Mail.app)

‎package-lock.json‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "riot-web",
33
"productName": "Riot",
44
"main": "electron_app/src/electron-main.js",
5-
"version": "0.17.9",
5+
"version": "1.0.1",
66
"description": "A feature-rich client for Matrix.org",
77
"author": "New Vector Ltd.",
88
"repository": {
@@ -70,8 +70,8 @@
7070
"gemini-scrollbar": "github:matrix-org/gemini-scrollbar#b302279",
7171
"gfm.css": "^1.1.2",
7272
"highlight.js": "^9.13.1",
73-
"matrix-js-sdk": "0.14.3",
74-
"matrix-react-sdk": "0.14.8",
73+
"matrix-js-sdk": "1.0.0",
74+
"matrix-react-sdk": "1.0.1",
7575
"modernizr": "^3.6.0",
7676
"prop-types": "^15.6.2",
7777
"react": "^15.6.0",
@@ -102,7 +102,7 @@
102102
"cross-env": "^4.0.0",
103103
"css-loader": "^2.1.0",
104104
"electron-builder": "^20.38.5",
105-
"electron-builder-squirrel-windows": "^11.6.1",
105+
"electron-builder-squirrel-windows": "^20.38.5",
106106
"electron-devtools-installer": "^2.2.4",
107107
"emojione": "^2.2.7",
108108
"eslint": "^5.8.0",
@@ -125,6 +125,7 @@
125125
"karma-spec-reporter": "0.0.31",
126126
"karma-summary-reporter": "^1.5.1",
127127
"karma-webpack": "4.0.0-beta.0",
128+
"loader-utils": "^1.2.3",
128129
"matrix-mock-request": "^1.2.2",
129130
"matrix-react-test-utils": "^0.2.0",
130131
"minimist": "^1.2.0",

‎scripts/cleanup.sh‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/sh
2+
#
3+
# script to clean up the deployments made by redeploy.py for vectorwebdev and vectorwebexp
4+
set -e
5+
6+
# currently live deployment (full path)
7+
live=`dirname $(readlink -f "$HOME/live")`
8+
9+
# currently live bundle (just the name of the bundle)
10+
live_bundle=`grep 'script src="bundles' live/index.html | sed -e 's#.*bundles/##' -e 's#/.*##'`
11+
12+
# clean up 'extracted': find things which are older than 7 days, exclude the current live one, and remove
13+
find $HOME/extracted -maxdepth 1 -type d -ctime +7 \! -path "$live" -exec rm -r {} \;
14+
15+
# clean up 'bundles': ditto
16+
find $HOME/bundles -maxdepth 1 -type d -ctime +7 \! -name "$live_bundle" -exec rm -r {} \;

0 commit comments

Comments
 (0)