diff --git a/frontend/build/paas-server.js b/frontend/build/paas-server.js index e2a2026e1..3d3b64e78 100644 --- a/frontend/build/paas-server.js +++ b/frontend/build/paas-server.js @@ -65,7 +65,8 @@ const GLOBAL_VAR = { ENABLE_GROUP_INSTANCE_SEARCH: process.env.ENABLE_GROUP_INSTANCE_SEARCH || '', ENABLE_ORGANIZATION_COUNT: process.env.ENABLE_ORGANIZATION_COUNT || '', ENABLE_ASSISTANT: process.env.ENABLE_ASSISTANT || '', - BK_COMPONENT_API_URL: process.env.BK_COMPONENT_API_URL || '' + BK_COMPONENT_API_URL: process.env.BK_COMPONENT_API_URL || '', + BK_DOCS_URL_PREFIX: process.env.BK_DOCS_URL_PREFIX || '' }; // APA 重定向回首页,由首页Route响应处理 diff --git a/frontend/build/webpack.base.conf.js b/frontend/build/webpack.base.conf.js index ced764648..56ba99616 100644 --- a/frontend/build/webpack.base.conf.js +++ b/frontend/build/webpack.base.conf.js @@ -139,5 +139,14 @@ export default { toType: 'dir' } ]) - ] + ], + + performance: { + hints: 'warning', + maxEntrypointSize: 50000000, + maxAssetSize: 30000000, + assetFilter: function (assetFilename) { + return assetFilename.endsWith('.css') || assetFilename.endsWith('.js') || assetFilename.endsWith('.png'); + } + } }; diff --git a/frontend/index.html b/frontend/index.html index 3f2d1d044..fcb50d3dc 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -17,7 +17,7 @@ const BK_PAAS_HOST = '{{ BK_PAAS_HOST }}' const BK_USER_API = '{{ BK_COMPONENT_API_URL }}' + '/api/c/compapi/v2/usermanage/fs_list_users/' const CSRF_COOKIE_NAME = '{{ CSRF_COOKIE_NAME }}' - const PRODUCT_DOC_URL_PREFIX = 'https://bk.tencent.com/docs/' + const BK_DOCS_URL_PREFIX = '{{ BK_DOCS_URL_PREFIX }}' + '/markdown' const CE_URL = 'https://bk.tencent.com/s-mart/community' const BK_ITSM_APP_URL = '{{ BK_ITSM_APP_URL }}' const ENABLE_MODEL_BUILD = '{{ ENABLE_MODEL_BUILD }}' || '' @@ -37,7 +37,7 @@ window.BK_USER_API = BK_USER_API window.CUR_LANGUAGE = getLanguage() window.CSRF_COOKIE_NAME = CSRF_COOKIE_NAME - window.PRODUCT_DOC_URL_PREFIX = PRODUCT_DOC_URL_PREFIX + window.BK_DOCS_URL_PREFIX = BK_DOCS_URL_PREFIX window.BK_ITSM_APP_URL = BK_ITSM_APP_URL window.ENABLE_MODEL_BUILD = ENABLE_MODEL_BUILD window.ENABLE_PERMISSION_HANDOVER = ENABLE_PERMISSION_HANDOVER diff --git a/frontend/src/assets/iconfont/demo.html b/frontend/src/assets/iconfont/demo.html index c40bc69af..888cecc93 100644 --- a/frontend/src/assets/iconfont/demo.html +++ b/frontend/src/assets/iconfont/demo.html @@ -125,6 +125,18 @@

time-circle-fill

+
  • + +

    help

    +
  • +
  • + +

    add-fill

    +
  • +
  • + +

    reduce-fill

    +
  • check

    @@ -629,6 +641,10 @@

    level-one-manage-space

  • +
  • + +

    shezhi

    +
  • my-manage-space

    @@ -637,6 +653,14 @@

    auth-scope

  • +
  • + +

    mingandengji

    +
  • +
  • + +

    all

    +
  • 为什么使用

    为什么使用