Skip to content

Commit 607ba57

Browse files
author
Luke Barnard
committed
Merge branch 'develop' into new-guest-access
Conflicts: src/component-index.js
2 parents ee33490 + 0e0918d commit 607ba57

7 files changed

Lines changed: 65 additions & 139 deletions

File tree

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ npm-debug.log
1414
electron/dist
1515
electron/pub
1616
/config.json
17+
/src/component-index.js

‎package.json‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,23 @@
2727
"matrix-react-parent": "matrix-react-sdk",
2828
"scripts": {
2929
"reskindex": "reskindex -h src/header",
30+
"reskindex:watch": "reskindex -h src/header -w",
3031
"build:res": "node scripts/copy-res.js",
3132
"build:modernizr": "modernizr -c .modernizr.json -d src/vector/modernizr.js",
32-
"build:compile": "babel --source-maps -d lib src",
33+
"build:compile": "npm run reskindex && babel --source-maps -d lib src",
3334
"build:bundle": "cross-env NODE_ENV=production webpack -p --progress",
3435
"build:bundle:dev": "webpack --optimize-occurence-order --progress",
3536
"build:electron": "npm run clean && npm run build && build -wml --ia32 --x64",
36-
"build": "npm run build:res && npm run build:bundle",
37-
"build:dev": "npm run build:res && npm run build:bundle:dev",
37+
"build": "npm run reskindex && npm run build:res && npm run build:bundle",
38+
"build:dev": "npm run reskindex && npm run build:res && npm run build:bundle:dev",
3839
"dist": "scripts/package.sh",
3940
"install:electron": "install-app-deps",
4041
"electron": "npm run install:electron && electron .",
4142
"start:res": "node scripts/copy-res.js -w",
4243
"start:js": "webpack-dev-server --output-filename=bundles/_dev_/[name].js --output-chunk-file=bundles/_dev_/[name].js -w --progress",
4344
"start:js:prod": "cross-env NODE_ENV=production webpack-dev-server -w --progress",
44-
"start": "parallelshell \"npm run start:res\" \"npm run start:js\"",
45-
"start:prod": "parallelshell \"npm run start:res\" \"npm run start:js:prod\"",
45+
"start": "parallelshell \"npm run reskindex:watch\" \"npm run start:res\" \"npm run start:js\"",
46+
"start:prod": "parallelshell \"npm run reskindex:watch\" \"npm run start:res\" \"npm run start:js:prod\"",
4647
"lint": "eslint src/",
4748
"lintall": "eslint src/ test/",
4849
"clean": "rimraf lib webapp electron/dist",

‎res/manifest.json‎

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
{
2+
"name": "Riot - open team collaboration",
3+
"short_name": "Riot",
4+
"display": "standalone",
5+
"theme_color": "#76CFA6",
6+
"start_url": "index.html",
7+
"icons": [
8+
{
9+
"src": "vector-icons/android-chrome-36x36.png",
10+
"sizes": "36x36",
11+
"type": "image\/png",
12+
"density": "0.75"
13+
},
14+
{
15+
"src": "vector-icons/android-chrome-48x48.png",
16+
"sizes": "48x48",
17+
"type": "image\/png",
18+
"density": "1.0"
19+
},
20+
{
21+
"src": "vector-icons/android-chrome-72x72.png",
22+
"sizes": "72x72",
23+
"type": "image\/png",
24+
"density": "1.5"
25+
},
26+
{
27+
"src": "vector-icons/android-chrome-96x96.png",
28+
"sizes": "96x96",
29+
"type": "image\/png",
30+
"density": "2.0"
31+
},
32+
{
33+
"src": "vector-icons/android-chrome-144x144.png",
34+
"sizes": "144x144",
35+
"type": "image\/png",
36+
"density": "3.0"
37+
},
38+
{
39+
"src": "vector-icons/android-chrome-192x192.png",
40+
"sizes": "192x192",
41+
"type": "image\/png",
42+
"density": "4.0"
43+
}
44+
],
45+
"related_applications": [
46+
{
47+
"platform": "play",
48+
"url": "https://play.google.com/store/apps/details?id=im.vector.alpha",
49+
"id": "im.vector.alpha"
50+
},
51+
{
52+
"platform": "itunes",
53+
"url": "https://itunes.apple.com/gb/app/riot-open-source-team-collaboration-via-matrix/id1083446067"
54+
}
55+
]
56+
}

‎res/vector-icons/manifest.json‎

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

‎scripts/copy-res.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// common parents. Hence, "res/{a,b}/**": the output will be "dest/a/..." and
88
// "dest/b/...".
99
const COPY_LIST = [
10+
["res/manifest.json", "webapp"],
1011
["res/{media,vector-icons}/**", "webapp"],
1112
["src/skins/vector/{fonts,img}/**", "webapp"],
1213
["node_modules/emojione/assets/svg/*", "webapp/emojione/svg/"],

‎src/component-index.js‎

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

‎src/vector/index.html‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
<link rel="apple-touch-icon" sizes="144x144" href="vector-icons/apple-touch-icon-144x144.png">
1313
<link rel="apple-touch-icon" sizes="152x152" href="vector-icons/apple-touch-icon-152x152.png">
1414
<link rel="apple-touch-icon" sizes="180x180" href="vector-icons/apple-touch-icon-180x180.png">
15-
<link rel="manifest" href="vector-icons/manifest.json">
15+
<link rel="manifest" href="manifest.json">
1616
<link rel="shortcut icon" href="vector-icons/favicon.ico">
1717
<meta name="apple-mobile-web-app-title" content="Riot">
1818
<meta name="application-name" content="Riot">

0 commit comments

Comments
 (0)