Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
style: remove invalid code
Browse files Browse the repository at this point in the history
  • Loading branch information
hibig committed Mar 14, 2024
1 parent 073f7c5 commit 3dcb85d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 24 deletions.
5 changes: 0 additions & 5 deletions components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,18 @@ declare module 'vue' {
AInputSearch: typeof import('@arco-design/web-vue')['InputSearch'];
ALayout: typeof import('@arco-design/web-vue')['Layout'];
ALayoutContent: typeof import('@arco-design/web-vue')['LayoutContent'];
ALayoutFooter: typeof import('@arco-design/web-vue')['LayoutFooter'];
ALayoutSider: typeof import('@arco-design/web-vue')['LayoutSider'];
ALink: typeof import('@arco-design/web-vue')['Link'];
AList: typeof import('@arco-design/web-vue')['List'];
AListItemMeta: typeof import('@arco-design/web-vue')['ListItemMeta'];
AMenu: typeof import('@arco-design/web-vue')['Menu'];
AMenuItem: typeof import('@arco-design/web-vue')['MenuItem'];
AModal: typeof import('@arco-design/web-vue')['Modal'];
AOption: typeof import('@arco-design/web-vue')['Option'];
APagination: typeof import('@arco-design/web-vue')['Pagination'];
AProgress: typeof import('@arco-design/web-vue')['Progress'];
ARangePicker: typeof import('@arco-design/web-vue')['RangePicker'];
AResult: typeof import('@arco-design/web-vue')['Result'];
ASelect: typeof import('@arco-design/web-vue')['Select'];
ASpace: typeof import('@arco-design/web-vue')['Space'];
ASpin: typeof import('@arco-design/web-vue')['Spin'];
AStatistic: typeof import('@arco-design/web-vue')['Statistic'];
ASubMenu: typeof import('@arco-design/web-vue')['SubMenu'];
ASwitch: typeof import('@arco-design/web-vue')['Switch'];
ATable: typeof import('@arco-design/web-vue')['Table'];
Expand Down
4 changes: 2 additions & 2 deletions src/locale/en-US/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,8 @@ export default {
'common.social.discord': 'Join Our Discord',
'common.table.mark': 'Comment',
'common.table.rollback.mark': 'Rollback Comment',
'common.button.saveDeploy': 'Save and Deploy',
'common.button.savePreview': 'Save and Preview',
'common.button.saveDeploy': 'Save & Deploy',
'common.button.savePreview': 'Save & Preview',
'common.button.rollbackPreview': 'Rollback Preview',
'common.button.deployPreview': 'Deployment Preview',
'common.button.draft': 'Save Draft',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,10 @@
}
return props.fullscreen ? 'calc(100vh - 320px)' : '310px';
});
watch(
() => props.runData,
(newVal) => {
if (newVal) {
console.log(
'props.rundata.status=======',
props.runData?.status?.summaryStatus
);
}
},
{
immediate: true,
deep: true
}
);
const runStatus = computed(() => {
return props.runData?.status?.summaryStatus;
});
const renderStaticLogs = () => {
if (props.runData?.record) {
Expand Down Expand Up @@ -85,7 +74,7 @@
fullscreen={props.fullscreen}
runData={props.runData}
key={
props.runData?.status?.summaryStatus === RevisionStatus.Running
runStatus.value === RevisionStatus.Running
? 'running'
: 'planning'
}
Expand All @@ -96,7 +85,7 @@
return () => (
<div class="logs-box">
{RevisionWatchStatus.includes(props.runData?.status?.summaryStatus)
{RevisionWatchStatus.includes(runStatus.value)
? renderWatchLogs()
: renderStaticLogs()}
</div>
Expand Down

0 comments on commit 3dcb85d

Please sign in to comment.