Skip to content

Commit

Permalink
feat: pipeline as code issue TencentBlueKing#8125
Browse files Browse the repository at this point in the history
  • Loading branch information
lockiechen committed Aug 11, 2023
1 parent 5d6dc67 commit 30fbe88
Show file tree
Hide file tree
Showing 22 changed files with 813 additions and 202 deletions.
4 changes: 2 additions & 2 deletions src/frontend/devops-pipeline/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"clipboard": "^1.7.1",
"moment": "^2.29.2",
"js-base64": "^3.7.2",
"monaco-editor": "^0.30.1",
"monaco-editor-webpack-plugin": "^6.0.0",
"monaco-editor": "^0.40.0",
"monaco-editor-webpack-plugin": "^7.1.0",
"portal-vue": "^1.5.1",
"sockjs-client": "^1.3.0",
"stompjs": "^2.3.3",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
<template>
<div class="build-history-filter-bar">
<time-picker
style="width: 320px"
name="dateTimeRange"
id="dateTimeRange"
<bk-date-picker
:value="historyPageStatus.dateTimeRange"
:date-picker-conf="datePickerConf"
:handle-change="handleDateRangeChange"
:placeholder="$t('startTimeRangePlaceholder')"
type="datetimerange"
@change="(...args) => handleDateRangeChange('dateTimeRange', ...args)"
/>
<search-select
class="pipeline-history-search-select"
Expand All @@ -21,7 +18,6 @@
</template>

<script>
import TimePicker from '@/components/AtomFormComponent/TimePicker'
import SearchSelect from '@blueking/search-select'
import { PROCESS_API_URL_PREFIX } from '@/store/constants'
import { coverStrTimer } from '@/utils/util'
Expand All @@ -33,8 +29,7 @@
export default {
name: 'filter-bar',
components: {
SearchSelect,
TimePicker
SearchSelect
},
props: {
resetQueryCondition: Function
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
<div class="no-build-history-box">
<span>{{ $t('noBuildHistory') }}</span>
<div class="no-build-history-box-tip">
<p v-html="$t('noBuildHistoryTips')"></p>
<span>
<p v-if="canManualStartup">{{ $t('noBuildHistoryTips')}}</p>
<p>{{ $t('buildHistoryIdTips') }}</p>
<span v-if="canManualStartup">
<bk-button @click="buildNow" theme="primary" size="large">
{{$t('buildNow')}}
</bk-button>
Expand Down Expand Up @@ -453,6 +454,7 @@
},
computed: {
...mapGetters({
curPipeline: 'pipelines/getCurPipeline',
historyPageStatus: 'pipelines/getHistoryPageStatus'
}),
projectId () {
Expand All @@ -464,6 +466,9 @@
isQuerying () {
return this.historyPageStatus?.isQuerying ?? false
},
canManualStartup () {
return this.curPipeline?.canManualStartup ?? true
},
versionToolTipsConf () {
return {
allowHtml: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@
}
}
.pipeline-exec-sub-artifact-list {
.pipeline-exec-sub-sub-artifact-list {
display: grid;
grid-auto-flow: column;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@
...mapState('atom', [
'isPropertyPanelVisible'
]),
scrollBoxCls () {
return 'bkdevops-pipeline-history'
},
projectId () {
return this.$route.params.projectId
},
Expand Down
Loading

0 comments on commit 30fbe88

Please sign in to comment.