mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
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:
1 parent
b433c2bda0
commit
a06ef07902
11 files changed
+248
-5
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user