Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion client-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
"lodash": "4.x",
"moment": "2.x",
"react": "~18.2.0",
"react-dom": "~18.2.0"
"react-dom": "~18.2.0",
"react-markdown": "~8.0.7"
},
"devDependencies": {
"@xh/hoist-dev-utils": "^9.0.0-SNAPSHOT",
Expand Down
2 changes: 2 additions & 0 deletions client-app/src/Bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {XH} from '@xh/hoist/core';
import {when} from '@xh/hoist/mobx';

import {ContactService} from './examples/contact/svc/ContactService';
import {ChatGptService} from './core/svc/ChatGptService';
import {GitHubService} from './core/svc/GitHubService';
import {PortfolioService} from './core/svc/PortfolioService';
import {AuthService} from './core/svc/AuthService';
Expand All @@ -21,6 +22,7 @@ import {TaskService} from './examples/todo/TaskService';
declare module '@xh/hoist/core' {
// Merge interface with XHApi class to include injected services.
export interface XHApi {
chatGptService: ChatGptService;
contactService: ContactService;
gitHubService: GitHubService;
authService: AuthService;
Expand Down
17 changes: 17 additions & 0 deletions client-app/src/apps/chat.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import '../Bootstrap';

import {XH} from '@xh/hoist/core';
import {AppContainer} from '@xh/hoist/desktop/appcontainer';
import {AppComponent} from '../examples/chat/AppComponent';
import {AppModel} from '../examples/chat/AppModel';

XH.renderApp({
clientAppCode: 'chat',
clientAppName: 'ChatGPT Labs',
componentClass: AppComponent,
modelClass: AppModel,
containerClass: AppContainer,
isMobileApp: false,
isSSO: true,
checkAccess: 'CHAT_GPT_USER'
});
Loading