mirror of
https://gitee.com/goploy/goploy.git
synced 2024-12-02 04:07:33 +08:00
U -
This commit is contained in:
parent
a783e6472d
commit
054474ce74
@ -115,7 +115,7 @@ func (FtpRepo) CommitLog(projectID int64, rows int) ([]CommitInfo, error) {
|
||||
}
|
||||
|
||||
func (ftpRepo FtpRepo) BranchLog(projectID int64, branch string, rows int) ([]CommitInfo, error) {
|
||||
return []CommitInfo{{}}, nil
|
||||
return []CommitInfo{{Commit: "virtual"}}, nil
|
||||
}
|
||||
|
||||
func (ftpRepo FtpRepo) TagLog(projectID int64, rows int) ([]CommitInfo, error) {
|
||||
|
@ -116,16 +116,16 @@ func (sftpRepo SftpRepo) Follow(project model.Project, _ string) error {
|
||||
}
|
||||
|
||||
func (SftpRepo) RemoteBranchList(url string) ([]string, error) {
|
||||
return []string{"master"}, nil
|
||||
return []string{"virtual"}, nil
|
||||
}
|
||||
|
||||
func (SftpRepo) BranchList(projectID int64) ([]string, error) {
|
||||
return []string{"master"}, nil
|
||||
return []string{"virtual"}, nil
|
||||
}
|
||||
|
||||
func (SftpRepo) CommitLog(projectID int64, rows int) ([]CommitInfo, error) {
|
||||
commitInfo := CommitInfo{
|
||||
Branch: "master",
|
||||
Branch: "virtual",
|
||||
Commit: "",
|
||||
Author: "",
|
||||
Timestamp: time.Now().Unix(),
|
||||
@ -137,7 +137,7 @@ func (SftpRepo) CommitLog(projectID int64, rows int) ([]CommitInfo, error) {
|
||||
}
|
||||
|
||||
func (sftpRepo SftpRepo) BranchLog(projectID int64, branch string, rows int) ([]CommitInfo, error) {
|
||||
return []CommitInfo{{}}, nil
|
||||
return []CommitInfo{{Commit: "virtual"}}, nil
|
||||
}
|
||||
|
||||
func (sftpRepo SftpRepo) TagLog(projectID int64, rows int) ([]CommitInfo, error) {
|
||||
|
@ -54,7 +54,7 @@
|
||||
width="200"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column label="time" width="135" align="center">
|
||||
<el-table-column label="time" width="155" align="center">
|
||||
<template #default="scope">
|
||||
{{ parseTime(scope.row.timestamp) }}
|
||||
</template>
|
||||
|
@ -53,7 +53,7 @@
|
||||
width="200"
|
||||
show-overflow-tooltip
|
||||
/>
|
||||
<el-table-column label="time" width="135" align="center">
|
||||
<el-table-column label="time" width="155" align="center">
|
||||
<template #default="scope">
|
||||
{{ parseTime(scope.row.timestamp) }}
|
||||
</template>
|
||||
|
@ -41,7 +41,7 @@
|
||||
sortable="custom"
|
||||
prop="id"
|
||||
label="ID"
|
||||
width="80"
|
||||
width="70"
|
||||
align="center"
|
||||
/>
|
||||
<el-table-column
|
||||
@ -52,18 +52,18 @@
|
||||
sortable="custom"
|
||||
>
|
||||
<template #default="scope">
|
||||
<b v-if="scope.row.environment === 1" style="color: #f56c6c">
|
||||
<span v-if="scope.row.environment === 1" style="color: #f56c6c">
|
||||
{{ scope.row.name }} -
|
||||
{{ $t(`envOption[${scope.row.environment || 0}]`) }}
|
||||
</b>
|
||||
<b v-else-if="scope.row.environment === 3" style="color: #e6a23c">
|
||||
</span>
|
||||
<span v-else-if="scope.row.environment === 3" style="color: #e6a23c">
|
||||
{{ scope.row.name }} -
|
||||
{{ $t(`envOption[${scope.row.environment || 0}]`) }}
|
||||
</b>
|
||||
<b v-else style="color: #909399">
|
||||
</span>
|
||||
<span v-else style="color: #909399">
|
||||
{{ scope.row.name }} -
|
||||
{{ $t(`envOption[${scope.row.environment || 0}]`) }}
|
||||
</b>
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@ -123,7 +123,7 @@
|
||||
<el-table-column
|
||||
prop="updateTime"
|
||||
:label="$t('time')"
|
||||
width="160"
|
||||
width="155"
|
||||
align="center"
|
||||
sortable="custom"
|
||||
/>
|
||||
|
Loading…
Reference in New Issue
Block a user