add chat plugin and split query to parse and execute (#25)

* [feature](webapp) add drill down dimensions and metric period compare and modify layout

* [feature](webapp) add drill down dimensions and metric period compare and modify layout

* [feature](webapp) gitignore add supersonic-webapp

* [feature](webapp) gitignore add supersonic-webapp

* [feature](webapp) add chat plugin and split query to parse and execute

* [feature](webapp) add chat plugin and split query to parse and execute

* [feature](webapp) add chat plugin and split query to parse and execute

---------

Co-authored-by: williamhliu <williamhliu@tencent.com>
This commit is contained in:
williamhliu
2023-08-05 22:17:42 +08:00
committed by GitHub
parent c9baed6c4e
commit 6951eada9d
86 changed files with 3193 additions and 1595 deletions

View File

@@ -10,6 +10,8 @@ import ENV_CONFIG from './envConfig';
const { REACT_APP_ENV, RUN_TYPE } = process.env;
export default defineConfig({
webpack5: {},
mfsu: {},
define: {
// 添加这个自定义的环境变量
// 'process.env.REACT_APP_ENV': process.env.REACT_APP_ENV, // * REACT_APP_ENV 本地开发环境dev测试服test正式服prod

View File

@@ -8,28 +8,36 @@ const ENV_KEY = {
const { APP_TARGET } = process.env;
const ROUTES = [
...(APP_TARGET !== 'inner'
? [
{
path: '/chat',
name: 'chat',
component: './Chat',
envEnableList: [ENV_KEY.CHAT],
},
]
: []),
{
path: '/chat',
name: 'chat',
component: './Chat',
envEnableList: [ENV_KEY.CHAT],
},
{
path: '/chatSetting/:modelId?/:menuKey?',
name: 'chatSetting',
component: './SemanticModel/ChatSetting',
envEnableList: [ENV_KEY.CHAT],
},
{
path: '/chatPlugin',
name: 'chatPlugin',
component: './ChatPlugin',
envEnableList: [ENV_KEY.CHAT],
},
{
path: '/semanticModel/:modelId?/:menuKey?',
name: 'semanticModel',
component: './SemanticModel/ProjectManager',
envEnableList: [ENV_KEY.SEMANTIC],
},
{
path: '/Metric',
name: 'metric',
component: './SemanticModel/Metric',
envEnableList: [ENV_KEY.SEMANTIC],
},
{
path: '/login',
name: 'login',