Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
b5ac828
feat: synchronize settings with form values in SettingPanel component
cn-xufei Apr 24, 2025
0638ac6
fix: correct event emission and improve router handling in connection…
cn-xufei Apr 24, 2025
3f22fcb
refactor: streamline License.vue layout and enhance dialog functionality
cn-xufei Apr 25, 2025
e42b73c
fix: update v-model binding and enhance styles in components
cn-xufei Apr 25, 2025
b5aa688
feat: enhance filter inputs and button identifiers in List components
cn-xufei Apr 26, 2025
23ca374
refactor: enhance StageButton component and update LeftSidebar layout
cn-xufei Apr 27, 2025
fdcf84b
feat: enhance DML policies in formScope and database components TAP-6310
cn-xufei Apr 27, 2025
2207f27
fix: update x-component type in Database and Table nodes
cn-xufei Apr 27, 2025
882fa50
fix: improve code readability and logic in ConditionBox and InfiniteS…
cn-xufei Apr 27, 2025
909425e
Merge pull request #398 from tapdata/fix/TAP-6452--8682-data-validation
cn-xufei Apr 27, 2025
5031d80
refactor: improve code structure and readability in JsProcessor compo…
cn-xufei Apr 27, 2025
2cb8d51
refactor: enhance code readability and structure in resize directive …
cn-xufei Apr 27, 2025
6733874
refactor: simplify and enhance DFNode component structure
cn-xufei Apr 28, 2025
d8391cd
refactor: update point ID assignment in DFNode component for improved…
cn-xufei Apr 28, 2025
4d8e04b
refactor: reorganize imports and enhance component structure in vario…
cn-xufei Apr 28, 2025
b7ae91a
refactor: add error handling to log query in JsProcessor component
cn-xufei Apr 28, 2025
73b2c95
refactor: standardize date formatting and value formats across compon…
cn-xufei Apr 28, 2025
e4fe288
refactor: simplify state management and enhance component structure a…
cn-xufei Apr 28, 2025
77af607
refactor: update event emission for value binding in CollateMap compo…
cn-xufei Apr 28, 2025
896e55a
refactor: update event emission and component structure for improved …
cn-xufei Apr 28, 2025
f2c8003
refactor: implement pagination and enhance list rendering in Conditio…
cn-xufei Apr 28, 2025
afe6ed4
Merge pull request #399 from tapdata/fix/ha-issue
cn-xufei Apr 28, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion apps/daas/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ declare module 'vue' {
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElHeader: typeof import('element-plus/es')['ElHeader']
ElIcon: typeof import('element-plus/es')['ElIcon']
ElIconArrowLeft: typeof import('@element-plus/icons-vue')['ArrowLeft']
ElIconArrowRight: typeof import('@element-plus/icons-vue')['ArrowRight']
ElIconCircleCloseFilled: typeof import('@element-plus/icons-vue')['CircleCloseFilled']
ElIconCirclePlus: typeof import('@element-plus/icons-vue')['CirclePlus']
Expand Down
30 changes: 12 additions & 18 deletions apps/daas/src/components/VDivider.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<script>
import { plantRenderPara } from '../../utils/gogocodeTransfer'
import * as Vue from 'vue'
import { plantRenderPara } from '../../utils/gogocodeTransfer'
export default {
name: 'v-divider',
name: 'VDivider',

props: {
inset: Boolean,
Expand All @@ -14,22 +14,16 @@ export default {
if (!this.$attrs.role || this.$attrs.role === 'separator') {
orientation = this.vertical ? 'vertical' : 'horizontal'
}
return Vue.h(
'hr',
plantRenderPara({
class: {
'v-divider': true,
'v-divider--inset': this.inset,
'v-divider--vertical': this.vertical,
},
attrs: {
role: 'separator',
'aria-orientation': orientation,
...this.$attrs,
},
on: this.$listeners,
}),
)
return Vue.h('hr', {
class: {
'v-divider': true,
'v-divider--inset': this.inset,
'v-divider--vertical': this.vertical,
},
role: 'separator',
'aria-orientation': orientation,
...this.$attrs,
})
},
}
</script>
Expand Down
178 changes: 88 additions & 90 deletions apps/daas/src/views/License.vue
Original file line number Diff line number Diff line change
Expand Up @@ -186,100 +186,98 @@ export default {
$t('public_event_update')
}}</ElButton>
</template>
<section class="license-wrapper h-100 overflow-hidden pb-6 pr-6">
<TablePage
ref="table"
row-key="id"
:default-sort="{ prop: 'lastUpdatedFmt', order: 'descending' }"
:remote-method="getData"
@sort-change="handleSortTable"
>
<ElTableColumn type="selection" width="45" />
<ElTableColumn
prop="hostname"
:label="$t('license_node_name')"
min-width="150"
/>
<ElTableColumn
prop="sid"
:label="$t('license_node_sid')"
min-width="150"
/>
<ElTableColumn :label="$t('license_status')" min-width="150">
<template #default="{ row }">
<span :class="`color-${row.status.color}`">{{
row.status.text
}}</span>
</template>
</ElTableColumn>
<ElTableColumn :label="$t('daas_licenseType')" min-width="150">
<template #default="{ row }">
<el-tag>{{ TYPE_MAP[row.licenseType] }}</el-tag>
</template>
</ElTableColumn>
<ElTableColumn
v-if="showLicenseType"
:label="$t('daas_datasourcePipelineLimit')"
min-width="160"
>
<template #default="{ row }">
<div
v-if="row.licenseType === 'PIPELINE'"
class="flex gap-2 align-center"
>
<el-progress
class="flex-1"
:percentage="row.pipelinePercentage"
:show-text="false"
/>
<span
>{{ row.datasourcePipelineInUse }} /
{{ row.datasourcePipelineLimit }}</span
>
<el-button text type="primary" @click="openPipelineDetails">{{
$t('public_button_details')
}}</el-button>
</div>
</template>
</ElTableColumn>
<ElTableColumn
prop="expirationDateFmt"
:label="$t('license_expire_date')"
min-width="160"
/>
<ElTableColumn
prop="lastUpdatedFmt"
sortable
:label="$t('license_update_time')"
min-width="160"
/>
<ElTableColumn :label="$t('public_operation')" width="88">
<template #default="{ row }">
<ElButton text type="primary" @click="updateNode(row)">{{
$t('public_event_update')
}}</ElButton>
</template>
</ElTableColumn>
</TablePage>
<ElDialog
v-model="dialogVisible"
append-to-body
:title="$t('license_renew_dialog')"
<TablePage
ref="table"
row-key="id"
:default-sort="{ prop: 'lastUpdatedFmt', order: 'descending' }"
:remote-method="getData"
@sort-change="handleSortTable"
>
<ElTableColumn type="selection" width="45" />
<ElTableColumn
prop="hostname"
:label="$t('license_node_name')"
min-width="150"
/>
<ElTableColumn
prop="sid"
:label="$t('license_node_sid')"
min-width="150"
/>
<ElTableColumn :label="$t('license_status')" min-width="150">
<template #default="{ row }">
<span :class="`color-${row.status.color}`">{{
row.status.text
}}</span>
</template>
</ElTableColumn>
<ElTableColumn :label="$t('daas_licenseType')" min-width="150">
<template #default="{ row }">
<el-tag>{{ TYPE_MAP[row.licenseType] }}</el-tag>
</template>
</ElTableColumn>
<ElTableColumn
v-if="showLicenseType"
:label="$t('daas_datasourcePipelineLimit')"
min-width="160"
>
<ElInput v-model.trim="license" type="textarea" />
<template #footer>
<div>
<ElButton
type="primary"
:disabled="!license"
:loading="dialogLoading"
@click="updateLicense"
>{{ $t('public_event_update') }}</ElButton
<template #default="{ row }">
<div
v-if="row.licenseType === 'PIPELINE'"
class="flex gap-2 align-center"
>
<el-progress
class="flex-1"
:percentage="row.pipelinePercentage"
:show-text="false"
/>
<span
>{{ row.datasourcePipelineInUse }} /
{{ row.datasourcePipelineLimit }}</span
>
<el-button text type="primary" @click="openPipelineDetails">{{
$t('public_button_details')
}}</el-button>
</div>
</template>
</ElDialog>
</section>
</ElTableColumn>
<ElTableColumn
prop="expirationDateFmt"
:label="$t('license_expire_date')"
min-width="160"
/>
<ElTableColumn
prop="lastUpdatedFmt"
sortable
:label="$t('license_update_time')"
min-width="160"
/>
<ElTableColumn :label="$t('public_operation')" width="88">
<template #default="{ row }">
<ElButton text type="primary" @click="updateNode(row)">{{
$t('public_event_update')
}}</ElButton>
</template>
</ElTableColumn>
</TablePage>
<ElDialog
v-model="dialogVisible"
append-to-body
:title="$t('license_renew_dialog')"
>
<ElInput v-model.trim="license" type="textarea" />
<template #footer>
<div>
<ElButton
type="primary"
:disabled="!license"
:loading="dialogLoading"
@click="updateLicense"
>{{ $t('public_event_update') }}</ElButton
>
</div>
</template>
</ElDialog>

<ElDialog
v-model="detailsDialog.show"
Expand Down
3 changes: 1 addition & 2 deletions apps/daas/src/views/cluster/Cluster.vue
Original file line number Diff line number Diff line change
Expand Up @@ -557,8 +557,7 @@ export default {
clusterApi.editAgent(this.custId, data).then(() => {
this.editAgentDialog = false
this.$message.success(this.$t('public_message_save_ok'))

this.$set(this.editAgentItem, 'agentName', this.agentName)
this.editAgentItem.agentName = this.agentName
})
// .catch(() => {
// })
Expand Down
4 changes: 2 additions & 2 deletions apps/daas/src/views/setting/Setting.vue
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,11 @@ export default {
},

handleChangeCert(target, value) {
this.$set(target, 'value', value)
target.value = value
},

handleChangeName(target, name) {
this.$set(target, 'fileName', name)
target.fileName = name
},
},
}
Expand Down
11 changes: 6 additions & 5 deletions apps/daas/src/views/setting/WebhookAlerts.vue
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ export default {
})
},
handleSwitch(row) {
this.$set(this.switchStateMap, row.id, true)
this.switchStateMap[row.id] = true
webhookApi[row.open ? 'close' : 'open'](row.id)
.then(() => {
row.open = !row.open
Expand All @@ -320,15 +320,16 @@ export default {
row.open = !row.open
})
.finally(() => {
this.$delete(this.switchStateMap, row.id)
delete this.switchStateMap[row.id]
})
},
async reSend(request) {
this.$set(this.resendStateMap, request.id, true)
this.resendStateMap[request.id] = true
const result = await webhookApi.resend(request)
Object.assign(request, this.mapHistory(result))
this.$message.success(this.$t('public_message_send_success'))
this.$delete(this.resendStateMap, request.id)

delete this.resendStateMap[request.id]
},
afterCloseHistory() {
this.historyState.collapse = []
Expand Down Expand Up @@ -474,7 +475,7 @@ export default {
</span>
</template>
<JsonEditor
v-model="form.customTemplate"
v-model:value="form.customTemplate"
height="320"
:options="{
options: { showPrintMargin: false, useWrapMode: true },
Expand Down
9 changes: 7 additions & 2 deletions packages/assets/styles/element.scss
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
&--small {
--el-border-radius-base: var(--el-border-radius-small)
}
& + button.el-button {
& + .el-button.el-button {
margin-left: var(--btn-space);
}

Expand Down Expand Up @@ -319,6 +319,10 @@
--el-fill-color-light: var(--el-color-primary-light-9);
--el-fill-color: var(--el-color-primary-light-8);
}

&:not(.is-disabled).is-active {
background-color: var(--el-fill-color-light);
}
}

&.is-text i + span:empty {
Expand Down Expand Up @@ -363,7 +367,8 @@
.el-collapse-item__header {
padding: 0 var(--collapse-padding-primary);
.el-collapse-item__arrow {
margin-right: 0;
// margin-right: 0;
font-size: 12px;
}
}

Expand Down
6 changes: 5 additions & 1 deletion packages/assets/styles/var.scss
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,8 @@ $tag-icon-span-gap: (
$tag: (
'border-radius': 6px,
),
);
$collapse: (
'header-font-size': 14px,
'content-font-size': 14px,
),
);
13 changes: 8 additions & 5 deletions packages/business/src/components/StageButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,14 @@ export default {
<template v-if="loading">
<span>{{ progress }}</span>
</template>
<template v-else>
<slot>
<span>{{ label }}</span>
<VIcon class="ml-1" size="9">icon_table_selector_load</VIcon>
</slot>

<slot v-if="!$slots.icon && !loading">
<span>{{ label }}</span>
<VIcon class="ml-1" size="9">icon_table_selector_load</VIcon>
</slot>

<template v-if="$slots.icon && !loading" #icon>
<slot name="icon" />
</template>
</ElButton>
</template>
Loading
Loading