Skip to content

Commit

Permalink
Creates a theme for AMP.care
Browse files Browse the repository at this point in the history
  • Loading branch information
awesome-michael committed Oct 8, 2019
1 parent be0b4e9 commit 2c2fcbb
Show file tree
Hide file tree
Showing 101 changed files with 283 additions and 228 deletions.
31 changes: 31 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# we need trusty for the chrome addon
dist: trusty

# we don't need sudo, so can run in a container, which makes startup much
# quicker.
#
# unfortunately we do temporarily require sudo as a workaround for
# https://github.com/travis-ci/travis-ci/issues/8836
sudo: required

language: node_js
node_js:
# make sure we work with a range of node versions.
#
# Current status of node versions: https://github.com/nodejs/LTS/
# We don't work with node 6 because it doesn't support package-lock
# files which we need to avoid the broken version of base-x
- 8
- 10
addons:
chrome: stable
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.13.0
- export PATH=$HOME/.yarn/bin:$PATH
install:
# clone the deps with depth 1: we know we will only ever need that one
# commit.
- scripts/fetch-develop.deps.sh --depth 1 && yarn install
script:
- CHROME_BIN='/usr/bin/google-chrome-stable' yarn test
- yarn lint
36 changes: 36 additions & 0 deletions electron_app/amp.care/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"update_base_url": "https://update.amp.care/desktop/update/",
"default_hs_url": "https://test.amp.care",
"default_is_url": "",
"brand": "AMP.care",
"integrations_ui_url": "https://dimension.amp.care/riot",
"integrations_rest_url": "https://dimension.amp.care/api/v1/scalar",
"integrations_widgets_urls": ["https://dimension.amp.care/widgets"],
"integrations_jitsi_widget_url": "https://dimension.amp.care/widgets/jitsi",
"hosting_signup_link": "https://modular.im/?utm_source=riot-web&utm_medium=web",
"bug_report_endpoint_url": "https://amp.care/bugreports/submit",
"welcomeUserId": "@amp-bot:test.amp.chat",
"showLabsSettings": true,
"roomDirectory": {
"servers": [
"test.amp.chat"
]
},
"piwik": {
"url": "https://matomo.awesome-technologies.de/",
"siteId": 6,
"policyUrl": "https://awesome-technologies.de/docs/guides/amp_care_cookie_policy"
},
"phasedRollOut": {
"feature_lazyloading": {
"offset": 1539684000000,
"period": 604800000
}
},
"features": {
"feature_lazyloading": "enable"
},
"enable_presence_by_hs_url": {
"https://test.amp.care": false
}
}
Binary file modified electron_app/build/icon.icns
Binary file not shown.
Binary file modified electron_app/build/icon.ico
Binary file not shown.
Binary file modified electron_app/build/icons/128x128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electron_app/build/icons/16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electron_app/build/icons/24x24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electron_app/build/icons/256x256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electron_app/build/icons/48x48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electron_app/build/icons/512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electron_app/build/icons/64x64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electron_app/build/icons/96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified electron_app/build/install-spinner.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added electron_app/img/amp.ico
Binary file not shown.
Binary file added electron_app/img/amp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed electron_app/img/riot.ico
Binary file not shown.
Binary file removed electron_app/img/riot.png
Binary file not shown.
8 changes: 4 additions & 4 deletions electron_app/package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "riot-web",
"productName": "Riot",
"name": "ampcare-desktop",
"productName": "AMP.care",
"main": "src/electron-main.js",
"version": "1.4.1",
"description": "A feature-rich client for Matrix.org",
"author": "New Vector Ltd.",
"description": "Connecting care and physicians",
"author": "Awesome Technologies Innovationslabor GmbH",
"dependencies": {
"auto-launch": "^5.0.1",
"electron-store": "^2.0.0",
Expand Down
34 changes: 0 additions & 34 deletions electron_app/riot.im/New Vector Ltd.pem

This file was deleted.

6 changes: 0 additions & 6 deletions electron_app/riot.im/README

This file was deleted.

40 changes: 0 additions & 40 deletions electron_app/riot.im/config.json

This file was deleted.

4 changes: 2 additions & 2 deletions electron_app/src/electron-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ app.on('ready', () => {

// It's important to call `path.join` so we don't end up with the packaged
// asar in the final path.
const iconFile = `riot.${process.platform === 'win32' ? 'ico' : 'png'}`;
const iconFile = `amp.${process.platform === 'win32' ? 'ico' : 'png'}`;
const iconPath = path.join(__dirname, "..", "..", "img", iconFile);

// Load the previous window state with fallback to defaults
Expand Down Expand Up @@ -446,4 +446,4 @@ app.on('second-instance', (ev, commandLine, workingDirectory) => {
// installer uses for the shortcut icon.
// This makes notifications work on windows 8.1 (and is
// a noop on other platforms).
app.setAppUserModelId('com.squirrel.riot-web.Riot');
app.setAppUserModelId('com.squirrel.ampcare-desktop.AMPcare');
2 changes: 1 addition & 1 deletion electron_app/src/tray.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ exports.create = function(config) {
// Windows likes ico's too much.
if (process.platform === 'win32') {
try {
const icoPath = path.join(app.getPath('temp'), 'win32_riot_icon.ico');
const icoPath = path.join(app.getPath('temp'), 'win32_amp_icon.ico');
fs.writeFileSync(icoPath, await pngToIco(newFavicon.toPNG()));
newFavicon = nativeImage.createFromPath(icoPath);
} catch (e) {
Expand Down
4 changes: 2 additions & 2 deletions electron_app/src/vectormenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ const template = [
role: 'help',
submenu: [
{
label: 'Riot Help',
click() { shell.openExternal('https://about.riot.im/help'); },
label: 'AMP.care Help',
click() { shell.openExternal('https://about.amp.care/help'); },
},
],
},
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "riot-web",
"productName": "Riot",
"name": "ampcare-desktop",
"productName": "AMP.care",
"main": "electron_app/src/electron-main.js",
"version": "1.4.1",
"description": "A feature-rich client for Matrix.org",
"author": "New Vector Ltd.",
"description": "Connecting care and physicians",
"author": "Awesome Technologies Innovationslabor GmbH",
"repository": {
"type": "git",
"url": "https://github.com/vector-im/riot-web"
"url": "https://github.com/Awesome-Technologies/riot-web"
},
"license": "Apache-2.0",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion release_config.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
signing_id: releases@riot.im
signing_id: releases@amp.care
Binary file added res/amp-icons/android-chrome-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/amp-icons/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/amp-icons/android-chrome-36x36.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/amp-icons/android-chrome-48x48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/amp-icons/android-chrome-72x72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/amp-icons/android-chrome-96x96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/amp-icons/apple-touch-icon-114x114.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/amp-icons/apple-touch-icon-120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/amp-icons/apple-touch-icon-144x144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/amp-icons/apple-touch-icon-152x152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/amp-icons/apple-touch-icon-180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/amp-icons/apple-touch-icon-57x57.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/amp-icons/apple-touch-icon-60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/amp-icons/apple-touch-icon-72x72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/amp-icons/apple-touch-icon-76x76.png
Binary file added res/amp-icons/apple-touch-icon-precomposed.png
Binary file added res/amp-icons/apple-touch-icon.png
12 changes: 12 additions & 0 deletions res/amp-icons/browserconfig.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<browserconfig>
<msapplication>
<tile>
<square70x70logo src="/amp-icons/mstile-70x70.png"/>
<square150x150logo src="/amp-icons/mstile-150x150.png"/>
<square310x310logo src="/amp-icons/mstile-310x310.png"/>
<wide310x150logo src="/amp-icons/mstile-310x150.png"/>
<TileColor>#da532c</TileColor>
</tile>
</msapplication>
</browserconfig>
Binary file added res/amp-icons/favicon-16x16.png
Binary file added res/amp-icons/favicon-32x32.png
Binary file added res/amp-icons/favicon-96x96.png
Binary file added res/amp-icons/favicon.ico
Binary file not shown.
Binary file added res/amp-icons/favicon.png
Binary file added res/amp-icons/mstile-144x144.png
Binary file added res/amp-icons/mstile-150x150.png
Binary file added res/amp-icons/mstile-310x150.png
Binary file added res/amp-icons/mstile-310x310.png
Binary file added res/amp-icons/mstile-70x70.png
16 changes: 8 additions & 8 deletions res/manifest.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
{
"name": "Riot - open team collaboration",
"short_name": "Riot",
"name": "AMP.care - communication for specialists",
"short_name": "AMP.care",
"display": "standalone",
"theme_color": "#76CFA6",
"start_url": "index.html",
"icons": [
{
"src": "vector-icons/android-chrome-36x36.png",
"src": "amp-icons/android-chrome-36x36.png",
"sizes": "36x36",
"type": "image\/png",
"density": "0.75"
},
{
"src": "vector-icons/android-chrome-48x48.png",
"src": "amp-icons/android-chrome-48x48.png",
"sizes": "48x48",
"type": "image\/png",
"density": "1.0"
},
{
"src": "vector-icons/android-chrome-72x72.png",
"src": "amp-icons/android-chrome-72x72.png",
"sizes": "72x72",
"type": "image\/png",
"density": "1.5"
},
{
"src": "vector-icons/android-chrome-96x96.png",
"src": "amp-icons/android-chrome-96x96.png",
"sizes": "96x96",
"type": "image\/png",
"density": "2.0"
},
{
"src": "vector-icons/android-chrome-144x144.png",
"src": "amp-icons/android-chrome-144x144.png",
"sizes": "144x144",
"type": "image\/png",
"density": "3.0"
},
{
"src": "vector-icons/android-chrome-192x192.png",
"src": "amp-icons/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image\/png",
"density": "4.0"
Expand Down
File renamed without changes
47 changes: 47 additions & 0 deletions res/themes/amp/img/logos/amp-care-logo-black-text.svg
Binary file added res/themes/amp/img/logos/amp-care-logo.png
Loading

0 comments on commit 2c2fcbb

Please sign in to comment.