feat(phone/browser): Added a browser app

This utilizes an iframe, meaning sites that are blocking cross-origin iframes will ultimately fail.

With this feature, a config option is added to the nui config allowing for users to specify a home page URL to default to.
This commit is contained in:
Taso committed 2021-07-28 21:21:11 -04:00
1 parent b433c2bda0
commit a06ef07902
11 files changed
+248 -5

No files matched your search

+11
View File
@@ -34,6 +34,7 @@ import {
import { MATCH_APP_PRIMARY_COLOR, MATCH_APP_TEXT_COLOR } from '../../../apps/match/match.theme';
import { SvgIconProps } from '@material-ui/core';
import { INotificationIcon } from '../../notifications/providers/NotificationsProvider';
import { BrowserApp } from '../../../apps/browser/components/BrowserApp';
export interface IAppConfig {
id: string;
@@ -61,6 +62,16 @@ export const APPS: IAppConfig[] = [
path: '/phone',
Route: () => <AppRoute id="DIALER" path="/phone" component={DialerApp} emitOnOpen={false} />,
},
{
id: 'BROWSER',
nameLocale: 'BROWSER.NAME',
backgroundColor: blue['300'],
path: '/browser',
color: common.white,
Route: () => (
<AppRoute id="BROWSER" path="/browser" component={BrowserApp} emitOnOpen={false} />
),
},
{
id: 'MESSAGES',
nameLocale: 'APPS_MESSAGES',