Compare commits
219 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
86bce146e8 | ||
|
|
734a28e0f3 | ||
|
|
5c4e3cec08 | ||
|
|
c03d12238a | ||
|
|
da14d7eb8c | ||
|
|
3a44cb65b7 | ||
|
|
029dfe5ed0 | ||
|
|
c0c1972d56 | ||
|
|
53f0a6b360 | ||
|
|
d0adfb6469 | ||
|
|
1460eae280 | ||
|
|
01a15b2b7e | ||
|
|
5526525b6b | ||
|
|
c9e821ffc5 | ||
|
|
b290a28123 | ||
|
|
16899d3b1f | ||
|
|
7d81ade563 | ||
|
|
bc5ad3c761 | ||
|
|
7c764b7365 | ||
|
|
dfb30e91de | ||
|
|
ea03140cbd | ||
|
|
98215b4767 | ||
|
|
e879fb0eef | ||
|
|
ca3921f3a0 | ||
|
|
15ab1732a2 | ||
|
|
338ab4d046 | ||
|
|
089740a840 | ||
|
|
7ea0ecd125 | ||
|
|
9fc9de3af5 | ||
|
|
844ea390c8 | ||
|
|
fdf326c9f0 | ||
|
|
9399b7ddf0 | ||
|
|
03476705b1 | ||
|
|
3cead032c2 | ||
|
|
c8ac60768d | ||
|
|
cef26a5b20 | ||
|
|
fe61a7eefd | ||
|
|
582a34c937 | ||
|
|
5181eb3ea5 | ||
|
|
c3477a30a7 | ||
|
|
8e2e6cee35 | ||
|
|
25a727b8d8 | ||
|
|
ea0b166da7 | ||
|
|
f248477f82 | ||
|
|
0e0918d07c | ||
|
|
3c5594e034 | ||
|
|
15db686f33 | ||
|
|
ffa53ca205 | ||
|
|
4c0e8cd372 | ||
|
|
6d94f35c33 | ||
|
|
e67e891040 | ||
|
|
c607b1bc89 | ||
|
|
41738ec025 | ||
|
|
f9ae456a64 | ||
|
|
2983b36d4c | ||
|
|
640aa98cf4 | ||
|
|
e6133820a2 | ||
|
|
d1db602b3a | ||
|
|
ea72e9c7a0 | ||
|
|
8e94d5240f | ||
|
|
1e5908a31e | ||
|
|
40c98fc84f | ||
|
|
9c6b3819a5 | ||
|
|
6013a3e71d | ||
|
|
0deed1b511 | ||
|
|
2c36506342 | ||
|
|
309afdb813 | ||
|
|
1ed1080bf3 | ||
|
|
a09f890619 | ||
|
|
499b04c254 | ||
|
|
8a50207189 | ||
|
|
f54708227e | ||
|
|
c27f39714a | ||
|
|
e1cd046c1a | ||
|
|
ae76c76558 | ||
|
|
1001c98a3c | ||
|
|
23a141c5ad | ||
|
|
8731e46900 | ||
|
|
da960e776d | ||
|
|
d419024da9 | ||
|
|
45efdbdd43 | ||
|
|
7b320f8fbb | ||
|
|
e6e2e6989a | ||
|
|
2bf0074953 | ||
|
|
ff709ed8b1 | ||
|
|
cbb32968f1 | ||
|
|
095da68aac | ||
|
|
c5d37ab2fb | ||
|
|
9997cc9891 | ||
|
|
d5009962cd | ||
|
|
6367344181 | ||
|
|
61c338a233 | ||
|
|
9f3c1deae6 | ||
|
|
4a8ad53bd9 | ||
|
|
67efb8bde2 | ||
|
|
96c867b34b | ||
|
|
4eb0ca63a9 | ||
|
|
73fb2c859e | ||
|
|
431b8aaefa | ||
|
|
b637ab33cc | ||
|
|
afb4b79d81 | ||
|
|
5defd0bb74 | ||
|
|
e6f694307d | ||
|
|
beefcfcb8c | ||
|
|
44d0e7dcba | ||
|
|
71685b5eab | ||
|
|
7b3719bc3c | ||
|
|
c070e86c1f | ||
|
|
78cabed0bf | ||
|
|
bf88620581 | ||
|
|
777087504a | ||
|
|
aa482bae28 | ||
|
|
6fd64d19f0 | ||
|
|
2d311ddbf4 | ||
|
|
e24ef2bb5c | ||
|
|
4dd6ee681d | ||
|
|
ef057e4693 | ||
|
|
f53b238c24 | ||
|
|
7957eeba10 | ||
|
|
95931918dc | ||
|
|
5326faa0b8 | ||
|
|
7f2fa09d4c | ||
|
|
b6435502fc | ||
|
|
1701ea43a4 | ||
|
|
69f5833c9f | ||
|
|
61bba6c31f | ||
|
|
c067800a4f | ||
|
|
af105b1920 | ||
|
|
a414352661 | ||
|
|
57f91086e6 | ||
|
|
9e2324fb69 | ||
|
|
b3c9229aee | ||
|
|
2139fb74bb | ||
|
|
8b4ab4bcdd | ||
|
|
40eceaf9bc | ||
|
|
ab5ec04507 | ||
|
|
b1ff0b9e65 | ||
|
|
be52787473 | ||
|
|
b3431bb750 | ||
|
|
4864716abb | ||
|
|
8a6283fedf | ||
|
|
634cf528b4 | ||
|
|
0da6ca8aea | ||
|
|
08fb20a0df | ||
|
|
a8e4a2158a | ||
|
|
2f3e389a68 | ||
|
|
fb3ef89b50 | ||
|
|
523b315985 | ||
|
|
36f08cf73c | ||
|
|
5c00af7123 | ||
|
|
38fa9f78f1 | ||
|
|
8a9b750b31 | ||
|
|
26ebd20956 | ||
|
|
e877ad2e63 | ||
|
|
dd7f9e2d5f | ||
|
|
141aafd18e | ||
|
|
8aed52ece9 | ||
|
|
ce5a7ba48a | ||
|
|
95647fb7a1 | ||
|
|
d0c0eeac0a | ||
|
|
f25612198e | ||
|
|
ca6d9063fd | ||
|
|
eec0c274d2 | ||
|
|
b5a5b472c4 | ||
|
|
9747836a4d | ||
|
|
2afe9e6928 | ||
|
|
f010afe63f | ||
|
|
60b280f166 | ||
|
|
a2b465e352 | ||
|
|
1e139ef183 | ||
|
|
9b38a97110 | ||
|
|
9c27075175 | ||
|
|
52a119244b | ||
|
|
ddd12edc06 | ||
|
|
8f20fcfa6b | ||
|
|
c1d30664de | ||
|
|
1803a0df9e | ||
|
|
a5bd8bd034 | ||
|
|
751f715e77 | ||
|
|
a5bd8b36b8 | ||
|
|
e780fe4067 | ||
|
|
0480a880f3 | ||
|
|
acbc3e9f9b | ||
|
|
a8daa53a5b | ||
|
|
053beae035 | ||
|
|
ccc33db9dd | ||
|
|
66a473863a | ||
|
|
25907301a3 | ||
|
|
d8bf57edc5 | ||
|
|
269f9a5ccc | ||
|
|
a34b5abc82 | ||
|
|
062cf47290 | ||
|
|
fa132d3945 | ||
|
|
9fd379c97c | ||
|
|
593e101521 | ||
|
|
6fd6ea9b8e | ||
|
|
f8aa2c3487 | ||
|
|
44479f24dd | ||
|
|
5ff49f4000 | ||
|
|
cc7a585126 | ||
|
|
d3331f293b | ||
|
|
c6ee221ae4 | ||
|
|
8351ec9738 | ||
|
|
27de972bfb | ||
|
|
e5e259e1f8 | ||
|
|
a74bbb424c | ||
|
|
15accf33f5 | ||
|
|
3fb54029d7 | ||
|
|
76008e8abd | ||
|
|
3f291aae5b | ||
|
|
76f140c62c | ||
|
|
a12d7a2b66 | ||
|
|
6423f7ce03 | ||
|
|
4efb2b6750 | ||
|
|
cbfa4dd1ab | ||
|
|
dd9150cef1 | ||
|
|
ab1b377a1d | ||
|
|
99923b7b8f | ||
|
|
c4bc38f0d7 |
3
.gitignore
vendored
@@ -5,6 +5,7 @@
|
||||
/key.pem
|
||||
/lib
|
||||
/node_modules
|
||||
/electron/node_modules
|
||||
/packages/
|
||||
/webapp
|
||||
/.npmrc
|
||||
@@ -12,3 +13,5 @@
|
||||
npm-debug.log
|
||||
electron/dist
|
||||
electron/pub
|
||||
/config.json
|
||||
/src/component-index.js
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
"test/css/flexbox",
|
||||
"test/es5/specification",
|
||||
"test/css/objectfit",
|
||||
"test/storage/localstorage"
|
||||
"test/storage/localstorage",
|
||||
"test/workers/webworkers",
|
||||
"test/indexeddb"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
129
CHANGELOG.md
@@ -1,3 +1,132 @@
|
||||
Changes in [0.9.10](https://github.com/vector-im/riot-web/releases/tag/v0.9.10) (2017-05-22)
|
||||
============================================================================================
|
||||
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.9.10-rc.1...v0.9.10)
|
||||
|
||||
* No changes
|
||||
|
||||
|
||||
Changes in [0.9.10-rc.1](https://github.com/vector-im/riot-web/releases/tag/v0.9.10-rc.1) (2017-05-19)
|
||||
======================================================================================================
|
||||
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.9.9...v0.9.10-rc.1)
|
||||
|
||||
* CSS for left_aligned Dropdowns, and adjustments for Country dd in Login
|
||||
[\#3959](https://github.com/vector-im/riot-web/pull/3959)
|
||||
* Add square flag pngs /w genflags.sh script
|
||||
[\#3953](https://github.com/vector-im/riot-web/pull/3953)
|
||||
* Add config for riot-bot on desktop app build
|
||||
[\#3954](https://github.com/vector-im/riot-web/pull/3954)
|
||||
* Desktop: 'copy link address'
|
||||
[\#3952](https://github.com/vector-im/riot-web/pull/3952)
|
||||
* Reduce rageshake log size to 1MB
|
||||
[\#3943](https://github.com/vector-im/riot-web/pull/3943)
|
||||
* CSS for putting country dd on same line as phone input
|
||||
[\#3942](https://github.com/vector-im/riot-web/pull/3942)
|
||||
* fix #3894
|
||||
[\#3919](https://github.com/vector-im/riot-web/pull/3919)
|
||||
* change vector->riot on the surface
|
||||
[\#3894](https://github.com/vector-im/riot-web/pull/3894)
|
||||
* move manifest.json outward so it is scoped properly
|
||||
[\#3888](https://github.com/vector-im/riot-web/pull/3888)
|
||||
* add to manifest
|
||||
[\#3799](https://github.com/vector-im/riot-web/pull/3799)
|
||||
* Automatically update component-index
|
||||
[\#3886](https://github.com/vector-im/riot-web/pull/3886)
|
||||
* move electron -> electron_app because npm smart
|
||||
[\#3877](https://github.com/vector-im/riot-web/pull/3877)
|
||||
* Fix bug report endpoint in config.sample.json.
|
||||
[\#3863](https://github.com/vector-im/riot-web/pull/3863)
|
||||
* Update 2 missed icons to the new icon
|
||||
[\#3851](https://github.com/vector-im/riot-web/pull/3851)
|
||||
* Make left panel better for new users (mk II)
|
||||
[\#3804](https://github.com/vector-im/riot-web/pull/3804)
|
||||
* match primary package.json
|
||||
[\#3839](https://github.com/vector-im/riot-web/pull/3839)
|
||||
* Re-add productName
|
||||
[\#3829](https://github.com/vector-im/riot-web/pull/3829)
|
||||
* Remove leading v in /version file, for SemVer and to match Electron ver
|
||||
[\#3683](https://github.com/vector-im/riot-web/pull/3683)
|
||||
* Fix scope of callback
|
||||
[\#3790](https://github.com/vector-im/riot-web/pull/3790)
|
||||
* Remember and Recall window layout/position state
|
||||
[\#3622](https://github.com/vector-im/riot-web/pull/3622)
|
||||
* Remove babelcheck
|
||||
[\#3808](https://github.com/vector-im/riot-web/pull/3808)
|
||||
* Include MXID and device id in rageshakes
|
||||
[\#3809](https://github.com/vector-im/riot-web/pull/3809)
|
||||
* import Modal
|
||||
[\#3791](https://github.com/vector-im/riot-web/pull/3791)
|
||||
* Pin filesize ver to fix break upstream
|
||||
[\#3775](https://github.com/vector-im/riot-web/pull/3775)
|
||||
* Improve Room Directory Look & Feel
|
||||
[\#3751](https://github.com/vector-im/riot-web/pull/3751)
|
||||
* Fix emote RRs alignment
|
||||
[\#3742](https://github.com/vector-im/riot-web/pull/3742)
|
||||
* Remove unused `placeholder` prop on RoomDropTarget
|
||||
[\#3741](https://github.com/vector-im/riot-web/pull/3741)
|
||||
* Modify CSS for matrix-org/matrix-react-sdk#833
|
||||
[\#3732](https://github.com/vector-im/riot-web/pull/3732)
|
||||
* Warn when exiting due to single-instance
|
||||
[\#3727](https://github.com/vector-im/riot-web/pull/3727)
|
||||
* Electron forgets it was maximized when you click on a notification
|
||||
[\#3709](https://github.com/vector-im/riot-web/pull/3709)
|
||||
* CSS to make h1 and h2 the same size as h1.
|
||||
[\#3719](https://github.com/vector-im/riot-web/pull/3719)
|
||||
* Prevent long room names/topics from pushing UI of the screen
|
||||
[\#3721](https://github.com/vector-im/riot-web/pull/3721)
|
||||
* Disable dropdown highlight on focus
|
||||
[\#3717](https://github.com/vector-im/riot-web/pull/3717)
|
||||
* Escape HTML Tags from Linux Notifications (electron)
|
||||
[\#3564](https://github.com/vector-im/riot-web/pull/3564)
|
||||
* styling for spoilerized access token view in Settings
|
||||
[\#3651](https://github.com/vector-im/riot-web/pull/3651)
|
||||
* Fix Webpack conf
|
||||
[\#3690](https://github.com/vector-im/riot-web/pull/3690)
|
||||
* Add config.json to .gitignore
|
||||
[\#3599](https://github.com/vector-im/riot-web/pull/3599)
|
||||
* add command line arg (--hidden) for electron app
|
||||
[\#3641](https://github.com/vector-im/riot-web/pull/3641)
|
||||
* fix ImageView Download functionality
|
||||
[\#3640](https://github.com/vector-im/riot-web/pull/3640)
|
||||
* Add cross-env into the mix
|
||||
[\#3693](https://github.com/vector-im/riot-web/pull/3693)
|
||||
* Remember acceptance for unsupported browsers.
|
||||
[\#3694](https://github.com/vector-im/riot-web/pull/3694)
|
||||
* Cosmetics to go with matrix-org/matrix-react-sdk#811
|
||||
[\#3692](https://github.com/vector-im/riot-web/pull/3692)
|
||||
* Cancel quicksearch on ESC
|
||||
[\#3680](https://github.com/vector-im/riot-web/pull/3680)
|
||||
* Optimise RoomList and implement quick-search functionality on it.
|
||||
[\#3654](https://github.com/vector-im/riot-web/pull/3654)
|
||||
* Progress updates for rageshake uploads
|
||||
[\#3648](https://github.com/vector-im/riot-web/pull/3648)
|
||||
* Factor out rageshake upload to a separate file
|
||||
[\#3645](https://github.com/vector-im/riot-web/pull/3645)
|
||||
* rageshake: fix race when collecting logs
|
||||
[\#3644](https://github.com/vector-im/riot-web/pull/3644)
|
||||
* Fix a flaky test
|
||||
[\#3649](https://github.com/vector-im/riot-web/pull/3649)
|
||||
|
||||
Changes in [0.9.9](https://github.com/vector-im/riot-web/releases/tag/v0.9.9) (2017-04-25)
|
||||
==========================================================================================
|
||||
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.9.9-rc.2...v0.9.9)
|
||||
|
||||
* No changes
|
||||
|
||||
|
||||
Changes in [0.9.9-rc.2](https://github.com/vector-im/riot-web/releases/tag/v0.9.9-rc.2) (2017-04-24)
|
||||
====================================================================================================
|
||||
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.9.9-rc.1...v0.9.9-rc.2)
|
||||
|
||||
* Fix bug where links to Riot would fail to open.
|
||||
|
||||
|
||||
Changes in [0.9.9-rc.1](https://github.com/vector-im/riot-web/releases/tag/v0.9.9-rc.1) (2017-04-21)
|
||||
====================================================================================================
|
||||
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.9.8...v0.9.9-rc.1)
|
||||
|
||||
* Update js-sdk and matrix-react-sdk to fix registration without a captcha (https://github.com/vector-im/riot-web/issues/3621)
|
||||
|
||||
|
||||
Changes in [0.9.8](https://github.com/vector-im/riot-web/releases/tag/v0.9.8) (2017-04-12)
|
||||
==========================================================================================
|
||||
[Full Changelog](https://github.com/vector-im/riot-web/compare/v0.9.8-rc.3...v0.9.8)
|
||||
|
||||
@@ -135,7 +135,7 @@ To run as a desktop app:
|
||||
|
||||
```
|
||||
npm install electron
|
||||
node_modules/.bin/electron .
|
||||
npm run electron
|
||||
```
|
||||
|
||||
To build packages, use electron-builder. This is configured to output:
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
"brand": "Riot",
|
||||
"integrations_ui_url": "https://scalar.vector.im/",
|
||||
"integrations_rest_url": "https://scalar.vector.im/api",
|
||||
"bug_report_endpoint_url": "https://vector.im/bugs",
|
||||
"bug_report_endpoint_url": "https://riot.im/bugreports/submit",
|
||||
"enableLabs": true,
|
||||
"roomDirectory": {
|
||||
"servers": [
|
||||
|
||||
|
Before Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 14 KiB |
@@ -1,73 +0,0 @@
|
||||
{
|
||||
"update_base_url": "https://riot.im/download/desktop/update/",
|
||||
"default_hs_url": "https://matrix.org",
|
||||
"default_is_url": "https://vector.im",
|
||||
"brand": "Riot",
|
||||
"integrations_ui_url": "https://scalar.vector.im/",
|
||||
"integrations_rest_url": "https://scalar.vector.im/api",
|
||||
"bug_report_endpoint_url": "https://riot.im/bugreports/submit",
|
||||
"enableLabs": true,
|
||||
"roomDirectory": {
|
||||
"servers": [
|
||||
"matrix.org"
|
||||
],
|
||||
"serverConfig": {
|
||||
"matrix.org": {
|
||||
"networks": [
|
||||
"_matrix",
|
||||
"gitter",
|
||||
"irc:freenode",
|
||||
"irc:mozilla",
|
||||
"irc:snoonet",
|
||||
"irc:oftc"
|
||||
]
|
||||
}
|
||||
},
|
||||
"networks": {
|
||||
"gitter": {
|
||||
"protocol": "gitter",
|
||||
"portalRoomPattern": "#gitter_.*:matrix.org",
|
||||
"name": "Gitter",
|
||||
"icon": "https://gitter.im/favicon.ico",
|
||||
"example": "org/community",
|
||||
"nativePattern": "[^\\s]+/[^\\s]+$"
|
||||
},
|
||||
"irc:freenode": {
|
||||
"protocol": "irc",
|
||||
"domain": "chat.freenode.net",
|
||||
"portalRoomPattern": "#freenode_.*:matrix.org",
|
||||
"name": "Freenode",
|
||||
"icon": "https://matrix.org/_matrix/media/v1/download/matrix.org/DHLHpDDgWNNejFmrewvwEAHX",
|
||||
"example": "#channel",
|
||||
"nativePattern": "^#[^\\s]+$"
|
||||
},
|
||||
"irc:mozilla": {
|
||||
"protocol": "irc",
|
||||
"domain": "chat.freenode.net",
|
||||
"portalRoomPattern": "#mozilla_.*:matrix.org",
|
||||
"name": "Mozilla",
|
||||
"icon": "https://matrix.org/_matrix/media/v1/download/matrix.org/DHLHpDDgWNNejFmrewvwEAHX",
|
||||
"example": "#channel",
|
||||
"nativePattern": "^#[^\\s]+$"
|
||||
},
|
||||
"irc:snoonet": {
|
||||
"protocol": "irc",
|
||||
"domain": "ipv6-irc.snoonet.org",
|
||||
"portalRoomPattern": "#_snoonet_.*:matrix.org",
|
||||
"name": "Snoonet",
|
||||
"icon": "https://matrix.org/_matrix/media/v1/download/matrix.org/DHLHpDDgWNNejFmrewvwEAHX",
|
||||
"example": "#channel",
|
||||
"nativePattern": "^#[^\\s]+$"
|
||||
},
|
||||
"irc:oftc": {
|
||||
"protocol": "irc",
|
||||
"domain": "irc.oftc.net",
|
||||
"portalRoomPattern": "#_oftc_.*:matrix.org",
|
||||
"name": "OFTC",
|
||||
"icon": "https://matrix.org/_matrix/media/v1/download/matrix.org/DHLHpDDgWNNejFmrewvwEAHX",
|
||||
"example": "#channel",
|
||||
"nativePattern": "^#[^\\s]+$"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 102 KiB After Width: | Height: | Size: 102 KiB |
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 673 B After Width: | Height: | Size: 673 B |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 30 KiB After Width: | Height: | Size: 30 KiB |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
BIN
electron_app/img/riot.ico
Normal file
|
After Width: | Height: | Size: 102 KiB |
BIN
electron_app/img/riot.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
11
electron_app/package.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "riot-web",
|
||||
"productName": "Riot",
|
||||
"main": "src/electron-main.js",
|
||||
"version": "0.9.10",
|
||||
"description": "A feature-rich client for Matrix.org",
|
||||
"author": "Vector Creations Ltd.",
|
||||
"dependencies": {
|
||||
"electron-window-state": "^4.1.0"
|
||||
}
|
||||
}
|
||||
16
electron_app/riot.im/config.json
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"update_base_url": "https://riot.im/download/desktop/update/",
|
||||
"default_hs_url": "https://matrix.org",
|
||||
"default_is_url": "https://vector.im",
|
||||
"brand": "Riot",
|
||||
"integrations_ui_url": "https://scalar.vector.im/",
|
||||
"integrations_rest_url": "https://scalar.vector.im/api",
|
||||
"bug_report_endpoint_url": "https://riot.im/bugreports/submit",
|
||||
"welcomeUserId": "@riot-bot:matrix.org",
|
||||
"enableLabs": true,
|
||||
"roomDirectory": {
|
||||
"servers": [
|
||||
"matrix.org"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -30,6 +30,8 @@ const tray = require('./tray');
|
||||
|
||||
const VectorMenu = require('./vectormenu');
|
||||
|
||||
const windowStateKeeper = require('electron-window-state');
|
||||
|
||||
let vectorConfig = {};
|
||||
try {
|
||||
vectorConfig = require('../../webapp/config.json');
|
||||
@@ -84,6 +86,12 @@ function onLinkContextMenu(ev, params) {
|
||||
safeOpenURL(params.linkURL);
|
||||
},
|
||||
}));
|
||||
popup_menu.append(new electron.MenuItem({
|
||||
label: 'Copy Link Address',
|
||||
click() {
|
||||
electron.clipboard.writeText(params.linkURL);
|
||||
},
|
||||
}));
|
||||
popup_menu.popup();
|
||||
ev.preventDefault();
|
||||
}
|
||||
@@ -171,6 +179,7 @@ const shouldQuit = electron.app.makeSingleInstance((commandLine, workingDirector
|
||||
});
|
||||
|
||||
if (shouldQuit) {
|
||||
console.log("Other instance detected: exiting");
|
||||
electron.app.quit()
|
||||
}
|
||||
|
||||
@@ -186,11 +195,21 @@ electron.app.on('ready', () => {
|
||||
process.platform == 'win32' ? 'ico' : 'png'
|
||||
);
|
||||
|
||||
// Load the previous window state with fallback to defaults
|
||||
let mainWindowState = windowStateKeeper({
|
||||
defaultWidth: 1024,
|
||||
defaultHeight: 768,
|
||||
});
|
||||
|
||||
mainWindow = new electron.BrowserWindow({
|
||||
icon: icon_path,
|
||||
width: 1024, height: 768,
|
||||
show: false,
|
||||
autoHideMenuBar: true,
|
||||
|
||||
x: mainWindowState.x,
|
||||
y: mainWindowState.y,
|
||||
width: mainWindowState.width,
|
||||
height: mainWindowState.height,
|
||||
});
|
||||
mainWindow.loadURL(`file://${__dirname}/../../webapp/index.html`);
|
||||
electron.Menu.setApplicationMenu(VectorMenu);
|
||||
@@ -201,9 +220,12 @@ electron.app.on('ready', () => {
|
||||
brand: vectorConfig.brand || 'Riot'
|
||||
});
|
||||
|
||||
mainWindow.once('ready-to-show', () => {
|
||||
mainWindow.show();
|
||||
});
|
||||
if (!process.argv.includes('--hidden')) {
|
||||
mainWindow.once('ready-to-show', () => {
|
||||
mainWindow.show();
|
||||
});
|
||||
}
|
||||
|
||||
mainWindow.on('closed', () => {
|
||||
mainWindow = null;
|
||||
});
|
||||
@@ -226,6 +248,8 @@ electron.app.on('ready', () => {
|
||||
onLinkContextMenu(ev, params);
|
||||
}
|
||||
});
|
||||
|
||||
mainWindowState.manage(mainWindow);
|
||||
});
|
||||
|
||||
electron.app.on('window-all-closed', () => {
|
||||
50
package.json
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "riot-web",
|
||||
"productName": "Riot",
|
||||
"main": "electron/src/electron-main.js",
|
||||
"version": "0.9.8",
|
||||
"main": "electron_app/src/electron-main.js",
|
||||
"version": "0.9.10",
|
||||
"description": "A feature-rich client for Matrix.org",
|
||||
"author": "Vector Creations Ltd.",
|
||||
"repository": {
|
||||
@@ -27,20 +27,23 @@
|
||||
"matrix-react-parent": "matrix-react-sdk",
|
||||
"scripts": {
|
||||
"reskindex": "reskindex -h src/header",
|
||||
"reskindex:watch": "reskindex -h src/header -w",
|
||||
"build:res": "node scripts/copy-res.js",
|
||||
"build:modernizr": "modernizr -c .modernizr.json -d src/vector/modernizr.js",
|
||||
"build:compile": "babel --source-maps -d lib src",
|
||||
"build:bundle": "NODE_ENV=production webpack -p --progress",
|
||||
"build:compile": "npm run reskindex && babel --source-maps -d lib src",
|
||||
"build:bundle": "cross-env NODE_ENV=production webpack -p --progress",
|
||||
"build:bundle:dev": "webpack --optimize-occurence-order --progress",
|
||||
"build:electron": "npm run clean && npm run build && build -wml --ia32 --x64",
|
||||
"build": "node scripts/babelcheck.js && npm run build:res && npm run build:bundle",
|
||||
"build:dev": "node scripts/babelcheck.js && npm run build:res && npm run build:bundle:dev",
|
||||
"build": "npm run reskindex && npm run build:res && npm run build:bundle",
|
||||
"build:dev": "npm run reskindex && npm run build:res && npm run build:bundle:dev",
|
||||
"dist": "scripts/package.sh",
|
||||
"install:electron": "install-app-deps",
|
||||
"electron": "npm run install:electron && electron .",
|
||||
"start:res": "node scripts/copy-res.js -w",
|
||||
"start:js": "webpack-dev-server --output-filename=bundles/_dev_/[name].js --output-chunk-file=bundles/_dev_/[name].js -w --progress",
|
||||
"start:js:prod": "NODE_ENV=production webpack-dev-server -w --progress",
|
||||
"start": "node scripts/babelcheck.js && parallelshell \"npm run start:res\" \"npm run start:js\"",
|
||||
"start:prod": "parallelshell \"npm run start:res\" \"npm run start:js:prod\"",
|
||||
"start:js:prod": "cross-env NODE_ENV=production webpack-dev-server -w --progress",
|
||||
"start": "parallelshell \"npm run reskindex:watch\" \"npm run start:res\" \"npm run start:js\"",
|
||||
"start:prod": "parallelshell \"npm run reskindex:watch\" \"npm run start:res\" \"npm run start:js:prod\"",
|
||||
"lint": "eslint src/",
|
||||
"lintall": "eslint src/ test/",
|
||||
"clean": "rimraf lib webapp electron/dist",
|
||||
@@ -56,15 +59,16 @@
|
||||
"draft-js": "^0.8.1",
|
||||
"extract-text-webpack-plugin": "^0.9.1",
|
||||
"favico.js": "^0.3.10",
|
||||
"filesize": "^3.1.2",
|
||||
"filesize": "3.5.6",
|
||||
"flux": "~2.0.3",
|
||||
"gemini-scrollbar": "matrix-org/gemini-scrollbar#b302279",
|
||||
"gfm.css": "^1.1.1",
|
||||
"highlight.js": "^9.0.0",
|
||||
"linkifyjs": "^2.1.3",
|
||||
"matrix-js-sdk": "0.7.6",
|
||||
"matrix-react-sdk": "0.8.7",
|
||||
"matrix-js-sdk": "0.7.8",
|
||||
"matrix-react-sdk": "0.8.9",
|
||||
"modernizr": "^3.1.0",
|
||||
"pako": "^1.0.5",
|
||||
"q": "^1.4.1",
|
||||
"react": "^15.4.0",
|
||||
"react-dnd": "^2.1.4",
|
||||
@@ -93,6 +97,7 @@
|
||||
"babel-preset-stage-2": "^6.17.0",
|
||||
"chokidar": "^1.6.1",
|
||||
"cpx": "^1.3.2",
|
||||
"cross-env": "^4.0.0",
|
||||
"css-raw-loader": "^0.1.1",
|
||||
"electron-builder": "^11.2.4",
|
||||
"electron-builder-squirrel-windows": "^11.2.1",
|
||||
@@ -138,16 +143,18 @@
|
||||
"build": {
|
||||
"appId": "im.riot.app",
|
||||
"category": "Network",
|
||||
"electronVersion": "1.6.2",
|
||||
"electronVersion": "1.6.8",
|
||||
"//asar=false": "https://github.com/electron-userland/electron-builder/issues/675",
|
||||
"asar": false,
|
||||
"dereference": true,
|
||||
"//files": "We bundle everything, so we only need to include webapp/",
|
||||
"files": [
|
||||
"electron/src/**",
|
||||
"electron/img/**",
|
||||
"webapp/**",
|
||||
"package.json"
|
||||
"node_modules/**",
|
||||
"src/**",
|
||||
"img/**"
|
||||
],
|
||||
"extraResources": [
|
||||
"webapp/**/*"
|
||||
],
|
||||
"linux": {
|
||||
"target": "deb",
|
||||
@@ -158,10 +165,11 @@
|
||||
},
|
||||
"win": {
|
||||
"target": "squirrel"
|
||||
},
|
||||
"directories": {
|
||||
"buildResources": "electron_app/build",
|
||||
"output": "electron_app/dist",
|
||||
"app": "electron_app"
|
||||
}
|
||||
},
|
||||
"directories": {
|
||||
"buildResources": "electron/build",
|
||||
"output": "electron/dist"
|
||||
}
|
||||
}
|
||||
|
||||
17
release.sh
@@ -1,12 +1,25 @@
|
||||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
#
|
||||
# Script to perform a release of vector-web.
|
||||
#
|
||||
# Requires github-changelog-generator; to install, do
|
||||
# Requires github-changelog-generator; to install, do
|
||||
# pip install git+https://github.com/matrix-org/github-changelog-generator.git
|
||||
|
||||
set -e
|
||||
|
||||
cd `dirname $0`
|
||||
|
||||
|
||||
# bump Electron's package.json first
|
||||
release="${1#v}"
|
||||
tag="v${release}"
|
||||
echo "electron npm version"
|
||||
|
||||
cd electron_app
|
||||
npm version --no-git-tag-version "$release"
|
||||
git commit package.json -m "$tag"
|
||||
|
||||
|
||||
cd ..
|
||||
|
||||
exec ./node_modules/matrix-js-sdk/release.sh -z "$@"
|
||||
|
||||
BIN
res/flags/AD.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
res/flags/AE.png
Normal file
|
After Width: | Height: | Size: 841 B |
BIN
res/flags/AF.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
res/flags/AG.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
res/flags/AI.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
res/flags/AL.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
res/flags/AM.png
Normal file
|
After Width: | Height: | Size: 744 B |
BIN
res/flags/AO.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
res/flags/AQ.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
res/flags/AR.png
Normal file
|
After Width: | Height: | Size: 955 B |
BIN
res/flags/AS.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
res/flags/AT.png
Normal file
|
After Width: | Height: | Size: 701 B |
BIN
res/flags/AU.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
res/flags/AW.png
Normal file
|
After Width: | Height: | Size: 938 B |
BIN
res/flags/AX.png
Normal file
|
After Width: | Height: | Size: 900 B |
BIN
res/flags/AZ.png
Normal file
|
After Width: | Height: | Size: 978 B |
BIN
res/flags/BA.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
res/flags/BB.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
res/flags/BD.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
res/flags/BE.png
Normal file
|
After Width: | Height: | Size: 689 B |
BIN
res/flags/BF.png
Normal file
|
After Width: | Height: | Size: 954 B |
BIN
res/flags/BG.png
Normal file
|
After Width: | Height: | Size: 737 B |
BIN
res/flags/BH.png
Normal file
|
After Width: | Height: | Size: 842 B |
BIN
res/flags/BI.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
res/flags/BJ.png
Normal file
|
After Width: | Height: | Size: 777 B |
BIN
res/flags/BL.png
Normal file
|
After Width: | Height: | Size: 692 B |
BIN
res/flags/BM.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
res/flags/BN.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
res/flags/BO.png
Normal file
|
After Width: | Height: | Size: 733 B |
BIN
res/flags/BQ.png
Normal file
|
After Width: | Height: | Size: 726 B |
BIN
res/flags/BR.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
res/flags/BS.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
res/flags/BT.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
res/flags/BV.png
Normal file
|
After Width: | Height: | Size: 866 B |
BIN
res/flags/BW.png
Normal file
|
After Width: | Height: | Size: 697 B |
BIN
res/flags/BY.png
Normal file
|
After Width: | Height: | Size: 950 B |
BIN
res/flags/BZ.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
res/flags/CA.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
res/flags/CC.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
res/flags/CD.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
res/flags/CF.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
res/flags/CG.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
res/flags/CH.png
Normal file
|
After Width: | Height: | Size: 800 B |
BIN
res/flags/CI.png
Normal file
|
After Width: | Height: | Size: 692 B |
BIN
res/flags/CK.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
res/flags/CL.png
Normal file
|
After Width: | Height: | Size: 964 B |
BIN
res/flags/CM.png
Normal file
|
After Width: | Height: | Size: 908 B |
BIN
res/flags/CN.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
res/flags/CO.png
Normal file
|
After Width: | Height: | Size: 726 B |
BIN
res/flags/CR.png
Normal file
|
After Width: | Height: | Size: 734 B |
BIN
res/flags/CU.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
res/flags/CV.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
res/flags/CW.png
Normal file
|
After Width: | Height: | Size: 970 B |
BIN
res/flags/CX.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
res/flags/CY.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
res/flags/CZ.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
res/flags/DE.png
Normal file
|
After Width: | Height: | Size: 734 B |
BIN
res/flags/DJ.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
res/flags/DK.png
Normal file
|
After Width: | Height: | Size: 797 B |
BIN
res/flags/DM.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
res/flags/DO.png
Normal file
|
After Width: | Height: | Size: 946 B |
BIN
res/flags/DZ.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
res/flags/EC.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
res/flags/EE.png
Normal file
|
After Width: | Height: | Size: 723 B |
BIN
res/flags/EG.png
Normal file
|
After Width: | Height: | Size: 914 B |
BIN
res/flags/EH.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
res/flags/ER.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
res/flags/ES.png
Normal file
|
After Width: | Height: | Size: 1.0 KiB |
BIN
res/flags/ET.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
res/flags/FI.png
Normal file
|
After Width: | Height: | Size: 841 B |