From a6bc2a1f8f2aa892cdaba1b5c611002fac826b25 Mon Sep 17 00:00:00 2001 From: or-else Date: Thu, 22 Aug 2019 10:46:14 +0300 Subject: [PATCH] migrate the app from api.. to web.. --- .well-known/assetlinks.json | 4 ++-- README.md | 4 ++-- index-dev.html | 4 ++-- index.html | 4 ++-- src/config.js | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.well-known/assetlinks.json b/.well-known/assetlinks.json index 1199c8d5..e8a33e5b 100644 --- a/.well-known/assetlinks.json +++ b/.well-known/assetlinks.json @@ -11,7 +11,7 @@ "relation": ["delegate_permission/common.get_login_creds"], "target": { "namespace": "web", - "site": "https://api.tinode.co" + "site": "https://web.tinode.co" } }, { @@ -22,4 +22,4 @@ "sha256_cert_fingerprints": ["AA:0A:FF:C4:F3:1F:58:83:F3:8E:69:03:2E:B9:AA:1A:C4:62:65:F1:1E:50:F9:7E:AD:35:56:55:32:B7:1A:C6"] } -}] \ No newline at end of file +}] diff --git a/README.md b/README.md index 087d142b..9558ab89 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ The app is about 200KB minified and gzipped. That includes all dependencies (Rea Although the app is generally usable, keep in mind that this is work in progress. Some bugs probably exist. The app was tested in the latest Chrome & Firefox only. NPM package is available at https://www.npmjs.com/package/tinode-webapp. -Try possibly newer or older version live at https://api.tinode.co/. For passwords for demo accounts and other instructions [see here](https://github.com/tinode/chat/#demo). +Try possibly newer or older version live at https://web.tinode.co/. For passwords for demo accounts and other instructions [see here](https://github.com/tinode/chat/#demo). ## Getting support @@ -19,7 +19,7 @@ Try possibly newer or older version live at https://api.tinode.co/. For password ## Internationalization -The app is fully internationalized using [React-Intl](https://github.com/yahoo/react-intl). The UI language is selected automatically from the language specified by the browser. A specific language can be forced by adding `hl=XX` parameter to the URL, i.e. https://api.tinode.co/#?hl=ru. +The app is fully internationalized using [React-Intl](https://github.com/yahoo/react-intl). The UI language is selected automatically from the language specified by the browser. A specific language can be forced by adding `hl=XX` parameter to the URL, i.e. https://web.tinode.co/#?hl=ru. As of the time of this writing the following translations exist: English, Russian, Simplified Chinese. More translations are welcome. Send a pull request with a json file with translated strings. Take a look at [English](/src/i18n/en.json), [Russian](/src/i18n/ru.json), or [Simplified Chinese](/src/i18n/zh-CN.json) translations for guidance. diff --git a/index-dev.html b/index-dev.html index b2922e78..979fadef 100644 --- a/index-dev.html +++ b/index-dev.html @@ -7,7 +7,7 @@ - + @@ -16,7 +16,7 @@ - + diff --git a/index.html b/index.html index 2d310dd0..e29f6858 100644 --- a/index.html +++ b/index.html @@ -6,13 +6,13 @@ - + - + diff --git a/src/config.js b/src/config.js index bbb52a39..fbd84d7d 100644 --- a/src/config.js +++ b/src/config.js @@ -1,13 +1,13 @@ import { PACKAGE_VERSION } from './version.js'; // Name of this application, used in the User-Agent. -export const APP_NAME = 'TinodeWeb/' + (PACKAGE_VERSION || '0.15'); +export const APP_NAME = 'TinodeWeb/' + (PACKAGE_VERSION || '0.16'); // API key. Use https://github.com/tinode/chat/tree/master/keygen to generate your own export const API_KEY = 'AQEAAAABAAD_rAp4DJh05a1HAwFT3A6K'; // The array of possible hosts to connect to. -export const KNOWN_HOSTS = {hosted: 'api.tinode.co', local: 'localhost:6060'}; +export const KNOWN_HOSTS = {hosted: 'web.tinode.co', local: 'localhost:6060'}; // Default host name and port to connect to. export const DEFAULT_HOST = KNOWN_HOSTS.hosted;