Skip to content

Commit

Permalink
Merge branch 'features/multi-branch' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
mohaijiang committed Mar 19, 2024
2 parents f9ff99f + 6334197 commit 2387465
Show file tree
Hide file tree
Showing 15 changed files with 226 additions and 164 deletions.
1 change: 1 addition & 0 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ VITE_APP_CLIENTID="Iv1.6d9972fa6afd1c02"
# 建国本地
# VITE_BASE_API="http://172.16.8.29:9898/api"
VITE_BASE_API="https://develop.hamster.newtouch.com/api"
# VITE_BASE_API="http://127.0.0.1:8080/api"

VITE_WS_API="ws://61.172.179.6:30302/api"

Expand Down
12 changes: 6 additions & 6 deletions src/apis/projects.ts
Original file line number Diff line number Diff line change
Expand Up @@ -479,12 +479,12 @@ export function apiCreateProjects(params: AddProjectsParams) {
}

// 创建获取项目分支信息
export function apiGetProjectBranch(id: string) {
return httpRequest({
url: `/api/projects/${id}/branch`,
method: "get",
});
}
// export function apiGetProjectBranch(id: string) {
// return httpRequest({
// url: `/api/projects/${id}/branch`,
// method: "get",
// });
// }

export function apiUpdateProjectsBranch(id: string, branch: string) {
return httpRequest({
Expand Down
1 change: 1 addition & 0 deletions src/assets/svg/branch.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions src/components/DeployVersionInfomation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<div class="mt-[10px] text-[14px]">
<img src="@/assets/images/info.png" class="h-[17px] mr-[10px] hidden dark:inline-block" />
<img src="@/assets/images/info-white.png" class="h-[17px] mr-[10px] dark:hidden" />
{{info.codeInfo}}
{{info.branch}} | {{info.commitId}} | {{info.commitInfo}}
</div>

</div>
Expand Down Expand Up @@ -76,4 +76,4 @@ onMounted(()=>{
</script>

<style lang="less" scoped></style>
<style lang="less" scoped></style>
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@ export class LinkTokenApi {

const contractABI = abis.linkToken;

const contractAddress = this.getLinkToken(network)
if(networkConfig[network]){
const contractAddress = this.getLinkToken(network)

this.contractApi = createContractApi(contractAddress, contractABI, provider);
this.contractApi = createContractApi(contractAddress, contractABI, provider);

this.contract = this.contractApi.getContract();
this.contract = this.contractApi.getContract();
}
}

private getLinkToken(network: string): string {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ export class RegistryApi {

const contractABI = abis.functionsBillingRegistryProxy;

const contractAddress = this.getRegistry(network)
if(networkConfig[network]){
const contractAddress = this.getRegistry(network)

this.contractApi = createContractApi(contractAddress, contractABI, provider);

this.contract = this.contractApi.getContract();
this.contractApi = createContractApi(contractAddress, contractABI, provider);
this.contract = this.contractApi.getContract();
}
}

private getRegistry(network: string): string {
Expand Down
5 changes: 3 additions & 2 deletions src/views/projects/components/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ export interface ViewInfoItem {
recentBuild: RecentBuildItem,
recentCheck: RecentCheckItem,
recentDeploy:RecentDeployItem,
labelDisplay:string | undefined
labelDisplay:string | undefined,
allBranch: string[],
}

interface AbiInfoDataInputsItem {
Expand All @@ -56,4 +57,4 @@ export interface AbiInfoDataItem {
type: string,
outputs: AbiInfoDataOutputsItem,
anonymous: boolean,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
<img src="@/assets/images/link.png" class="h-[17px] mr-[10px] hidden dark:inline-block" />
<img src="@/assets/images/link-white.png" class="h-[17px] mr-[10px] dark:hidden" />
{{baseInfo.url}}

</div>
<div class="mt-[10px] text-[14px]">
<img src="@/assets/images/info.png" class="h-[17px] mr-[10px] hidden dark:inline-block" />
<img src="@/assets/images/info-white.png" class="h-[17px] mr-[10px] dark:hidden" />
{{baseInfo.codeInfo}}
{{baseInfo.branch}} | {{baseInfo.commitId}} | {{baseInfo.commitInfo}}
</div>
</div>
</div>
Expand All @@ -46,4 +47,4 @@ const { baseInfo } = toRefs(props)
.svg-color{
color: #E2B578;
}
</style>
</style>
Loading

0 comments on commit 2387465

Please sign in to comment.