Skip to content

Commit

Permalink
Merge pull request #1238 from TencentBlueKing/develop
Browse files Browse the repository at this point in the history
merge develop to master v1.1.5
  • Loading branch information
ielgnaw authored Mar 26, 2024
2 parents 55ec238 + dab1df7 commit c70e847
Show file tree
Hide file tree
Showing 220 changed files with 8,023 additions and 988 deletions.
3 changes: 3 additions & 0 deletions .bk.production.env
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,6 @@ BK_VISION_API_URL =

// 跳转到bkvision平台的链接
BK_VISION_WEB_URL =

// bkaidev websocket服务host
BK_AIDEV_WEBSOCKET_HOST =
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ lib/server/project-template/bklesscode-proj*
.codecc
build.yml
package-lock.json


pre-*-bkcodeai
30 changes: 30 additions & 0 deletions bkcodeai.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"crignore_file_patterns": [
"out/",
"dist/",
"assets/",
"images/",
"package.json",
"package-lock.json",
"yarn.lock",
".env.*",
"*.env",
"*.map",
"*.yml",
"*.yaml",
"*.min.js",
"libs/",
"static/",
"doc/",
"docs/",
"*.mo",
"*.po",
"*.ini",
"*.toml",
"*.json",
"*.xml",
"*.lock",
"*.md",
"*.txt"
]
}
38 changes: 28 additions & 10 deletions lib/client/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@
</section>
<section v-else-if="authed">
<div id="app" :class="systemCls">
<notice-component :api-url="noticeUrl" @show-alert-change="showAlertChange" />
<app-header></app-header>
<not-exist v-if="isNotExist" :message="notExistMsg" />
<template v-else>
<apply-page v-if="isNotPermission" :auth-result="authResult" />
<router-view v-if="!isNotPermission" :name="topView" v-show="!mainContentLoading" />
</template>
<div class="page-body" :style="{ height: bodyHeight }" >
<not-exist v-if="isNotExist" :message="notExistMsg" />
<template v-else>
<apply-page v-if="isNotPermission" :auth-result="authResult" />
<router-view v-if="!isNotPermission" :name="topView" v-show="!mainContentLoading" />
</template>
</div>
</div>
</section>
</template>
Expand All @@ -33,14 +36,18 @@

import { bus } from './common/bus'
import ApplyPage from './components/apply-permission/apply-page.vue'
import NoticeComponent from '@blueking/notice-component-vue2'
import '@blueking/notice-component-vue2/dist/style.css'

export default {
name: 'app',
components: {
ApplyPage
ApplyPage,
NoticeComponent
},
data () {
return {
noticeUrl: `${process.env.BK_AJAX_URL_PREFIX}/notice-center/getNoticeList`,
systemCls: 'mac',
position: 'middle',
navItems: [
Expand Down Expand Up @@ -74,9 +81,9 @@
},

computed: {
...mapGetters(['mainContentLoading']),
...mapGetters(['mainContentLoading', 'bodyHeight']),
emptyPage () {
return this.$route.name === 'preview' || this.$route.name === 'previewTemplate' || this.$route.name === 'previewMobile'
return this.$route.name === 'preview' || this.$route.name === 'previewTemplate' || this.$route.name === 'previewMobile' || this.$route.meta?.navigation === 'empty'
},
authed () {
return this.$route.meta.authed
Expand Down Expand Up @@ -110,8 +117,11 @@
this.$once('hook:beforeDestroy', () => {
bus.$off('not-exist', this.notExistHold)
})
await this.$store.dispatch('checkIamNoResourcesPerm')
await this.$store.dispatch('ai/checkAiAvailable')
await Promise.all([
this.$store.dispatch('checkIamNoResourcesPerm'),
this.$store.dispatch('ai/checkAiAvailable'),
this.$store.dispatch('saasBackend/checkSaasAvailable')
])
},

mounted () {
Expand All @@ -132,6 +142,10 @@
notExistHold (msg) {
this.isNotExist = true
this.notExistMsg = msg
},

showAlertChange (isShow) {
this.$store.commit('updateShowAlertNotice', isShow)
}
}
}
Expand All @@ -155,6 +169,10 @@
@mixin scroller;
font-size: 14px;
color: #63656e;
.page-body {
position: relative;
overflow-y: hidden;
}
}

.mac {
Expand Down
Binary file modified lib/client/src/bk-icon/fonts/iconcool.eot
Binary file not shown.
9 changes: 9 additions & 0 deletions lib/client/src/bk-icon/fonts/iconcool.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified lib/client/src/bk-icon/fonts/iconcool.ttf
Binary file not shown.
Binary file modified lib/client/src/bk-icon/fonts/iconcool.woff
Binary file not shown.
2 changes: 1 addition & 1 deletion lib/client/src/bk-icon/iconcool.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/client/src/bk-icon/iconcool.json

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions lib/client/src/bk-icon/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,9 @@ url("fonts/iconcool.eot?#iefix") format("embedded-opentype");
.bk-drag-router:before {
content: "\e187";
}
.bk-drag-sync-pending:before {
content: "\e297";
}
.bk-drag-paste:before {
content: "\e248";
}
Expand Down Expand Up @@ -1193,3 +1196,9 @@ url("fonts/iconcool.eot?#iefix") format("embedded-opentype");
.bk-drag-saoba:before {
content: "\e294";
}
.bk-drag-quanquan:before {
content: "\e295";
}
.bk-drag-builder:before {
content: "\e298";
}
15 changes: 7 additions & 8 deletions lib/client/src/common/fully-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,18 @@ import bkImage from '@/components/patch/image'
import chart from '@/components/patch/chart'
import widgetElTable from '@/components/patch/widget-el-table'
import widgetBkVision from '@/components/patch/widget-bk-vision'
import VueAwesomeSwiper from 'vue-awesome-swiper'

// Swiper-Element注册函数
import { register } from 'swiper/element/bundle'
import SwiperAnimation from 'swiper-element-animation'
import 'animate.css'

// import style
import 'bk-magic-vue/dist/bk-magic-vue.min.css'
import 'swiper/css/swiper.css'
import bkCharts from '@/components/patch/bkCharts'

Vue.use(VueAwesomeSwiper, {
height: '800px',
pagination: {
el: '.swiper-pagination'
}
})
window.SwiperAnimation = SwiperAnimation
window.swiperRegister = register

Vue.use(bkText)
Vue.use(bkImage)
Expand Down
43 changes: 0 additions & 43 deletions lib/client/src/common/swiper.animate.min.js

This file was deleted.

Loading

0 comments on commit c70e847

Please sign in to comment.