Skip to content

TD-gaowei/Live-Local-Dev-Guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 

Repository files navigation

项目本地运行指南

需要改动下面几个文件

需要更换部分文件或注释部分代码

environment.ts

// export const isDevelopmentEnv = process.env.NODE_ENV === "development";
export const isDevelopmentEnv = false;
// export const isAtlasMode = window.location.href.indexOf("/atlas") > -1;
export const isAtlasMode = true;

.env.development

REACT_APP_BUNDLE_BASE_PATH=https://stg-cdn-talkdesk.talkdeskdev.com/reporting-live-dashboards-ui
REACT_APP_VERSION=$npm_package_version
REACT_APP_DASHBOARDS_API_BASE_URL=/users/user_id/reporting-dashboards
REACT_APP_SHARE_DASHBOARDS_API_BASE_URL=reporting-dashboards/dashboard_id/share
REACT_APP_METRICS_API_BASE_URL=/reporting-metrics
REACT_APP_TEAMS_API_BASE_URL=/teams
REACT_APP_RING_GROUPS_API_BASE_URL=/ring-groups
REACT_APP_USER_BASE_URL=/users
REACT_APP_LIST_USER_STATUSES_URL=/reporting-user-statuses
REACT_APP_UPDATE_USER_STATUS_URL=/salesforce/account/users
REACT_APP_POLICIES_EVALUATE_BASE_URL=/policies/evaluate/bulk
REACT_APP_GRAPH_USERS=/graph/users
REACT_APP_CCAAS_USERS_STATUS=/ccaas/users/status
REACT_APP_ACCOUNT_CUSTOM_STATUS=/account/custom-status
REACT_APP_OCCUPANCY_USERS_OCCUPANCY_STATUS=/occupancy/users/occupancy-status
REACT_APP_MULTICHANNEL_INTERACTION_ACTIONS=/omnichannel/inbox/interactions/interaction_id/actions
REACT_APP_MULTICHANNEL_INBOX_INTERACTIONS_BULK=/omnichannel/inbox/interactions/bulk
REACT_APP_MAX_SUBSCRIPTION_RETRY_ATTEMPTS=6
REACT_APP_SUBSCRIPTION_RETRY_BACKOFF_MS=5000
REACT_APP_AUTO_UPDATE_POLLING_INTERVAL=600000
REACT_APP_FAILED_LOADING_SUBSCRIPTION_RETRY_INTERVAL=1000
REACT_APP_FAILED_LOADING_SUBSCRIPTION_RETRY_ATTEMPTS=3
REACT_APP_AUTO_UPDATE_BUNDLE_BASE_PATH=https://prd-cdn-talkdesk.talkdesk.com/reporting-live-dashboards-ui
ESLINT_NO_DEV_ERRORS=true
REACT_APP_CAMPAIGNS_API_BASE_URL=/campaigns
REACT_APP_RECORD_LISTS_API_BASE_URL=/record-lists
ATLAS_MONITORING_URL=
REACT_APP_METRICS_REFRESH_RATE=15000

src/index.ts

// if (isAtlasMode) {
//   atlasEntrypoint.start();
// } else if (isDevelopmentEnv) {
//   devEntrypoint.start();
// }

atlasEntrypoint.start();

atlas-entrypoint.ts

// const params = await (isDevelopmentEnv ? getDevParams() : getParams());
const params = await getParams();

启动命令

yarn start:atlas

访问链接

Live will be available inside Atlas at http://www.lvh.me:8081/apps/live

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published