Skip to content

Commit

Permalink
feat: 通知中心接入 (close TencentBlueKing#2059)
Browse files Browse the repository at this point in the history
  • Loading branch information
GONGONGONG committed Jan 19, 2024
1 parent c085797 commit 1d486f6
Show file tree
Hide file tree
Showing 49 changed files with 278 additions and 4,109 deletions.
6 changes: 4 additions & 2 deletions frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,11 @@ module.exports = {
cd frontend
// 2. 安装 npm 依赖包
npm install
// 3. 更新 magicbox 组件库
// 3. 存在冲突时可以删掉lock文件和node_modules目录后重新install,或者使用如下命令单独安装 @blueking/notice-component-vue2
npm install @blueking/notice-component-vue2@2.0.1 --legacy-peer-deps
// 4. 更新 magicbox 组件库
npm run dll
// 4. 启动服务
// 5. 启动服务
npm run dev
```

Expand Down
8 changes: 7 additions & 1 deletion frontend/build/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,13 @@ export default {
changeOrigin: true,
secure: false,
toProxy: true
}
},
'/notice': {
target: `${proxyTableTarget}${targetSiteUrl}`,
changeOrigin: true,
secure: false,
toProxy: true
},
},
cssSourceMap: false,
autoOpenBrowser: true
Expand Down
2 changes: 2 additions & 0 deletions frontend/index-dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
const BKAPP_NAV_OPEN_SOURCE_URL = ''
const BKAPP_NAV_HELPER_URL = ''
const ENABLE_AP_VERSION_MUTEX = 'False'
const ENABLE_NOTICE_CENTER = 'False'

return {
SITE_URL: SITE_URL,
Expand Down Expand Up @@ -77,6 +78,7 @@
BKAPP_NAV_OPEN_SOURCE_URL,
BKAPP_NAV_HELPER_URL,
ENABLE_AP_VERSION_MUTEX,
ENABLE_NOTICE_CENTER,
}
})()
window.$DHCP = window.PROJECT_CONFIG.BKAPP_ENABLE_DHCP === 'True'
Expand Down
3 changes: 2 additions & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
const BKAPP_NAV_HELPER_URL = '{{ BKAPP_NAV_HELPER_URL }}'
const BKAPP_NAV_OPEN_SOURCE_URL = '{{ BKAPP_NAV_OPEN_SOURCE_URL }}'
const ENABLE_AP_VERSION_MUTEX = '{{ ENABLE_AP_VERSION_MUTEX }}'
const ENABLE_NOTICE_CENTER = '{{ ENABLE_NOTICE_CENTER }}'

return {
APP_CODE,
Expand All @@ -63,6 +64,7 @@
DEFAULT_SSH_PORT,
DESTOP_URL,
ENABLE_AP_VERSION_MUTEX,
ENABLE_NOTICE_CENTER,
GLOBAL_TASK_CONFIG_PERMISSION,
GLOBAL_SETTING_PERMISSION,
GSE_LISTEN_PORT,
Expand All @@ -81,7 +83,6 @@
VERSION,
WEB_TITLE,
WXWORK_UIN,

}
})()
window.$DHCP = window.PROJECT_CONFIG.BKAPP_ENABLE_DHCP === 'True'
Expand Down
82 changes: 38 additions & 44 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"dependencies": {
"@blueking/crypto-js-sdk": "0.0.4",
"@blueking/ip-selector": "0.0.1-beta.113",
"@blueking/notice-component-vue2": "~2.0.1",
"@blueking/paas-login": "0.0.9",
"@icon-cool/bk-icon-node-manager": "latest",
"axios": "0.26.1",
Expand Down
Loading

0 comments on commit 1d486f6

Please sign in to comment.