5 Star 10 Fork 6

Gitee 极速下载/Azure-SONiC

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/Azure/SONiC
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
sonic_latest_images.html 4.06 KB
一键复制 编辑 原始数据 按行查看 历史
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SONiC installation images</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<!-- INCLUDING JQUERY-->
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<!-- CSS FOR STYLING THE PAGE -->
<style>
.list-group {
width: auto;
max-width: 1200px;
margin: 4rem auto;
margin-top:0;
margin-bottom:0;
}
table,
th,
td{
width: 1200px;
text-align: center;
border: 2px solid grey;
}
th,td{
padding: 10px;
background-color: none;
}
</style>
</head>
<body>
<div class="text-center">
<img class="d-block mx-auto mb-4" src="https://sonic-net.github.io/SONiC/pdf/newsletters/newsletter_images/sonic-logo_40percentage.png" alt="SONiC logo">
</div>
<div class="list-group" id="builds">
<table style="width:1200px" border="2" align="center" id="disp_table" >
<tr>
<section id="mu-page-breadcrumb">
<div class="container">
<div class="row">
<div style="text-align: center;">
<div>
<div class="col-md-12">
<h2> Latest Successful Builds </h2>
</div>
</div>
</div>
</div>
</div>
</section>
</tr>
<tr id="branch">
<td style="width: 20%; text-align: center; padding-left: 0.5em; background-color: lightgrey; height: 45px; align: center;">
<span style="letter-spacing: 0.15em; font-weight: bold; font-size: calc(11px + 0.6vw); ">Platform</span></td>
</tr>
</table>
</div>
<div class="px-4 text-center">
<div class="col-lg-6 mx-auto">
<p class="lead mt-4">
</p>
<p class="mt-4">
</p>
<p class="mt-4">
<a href="https://sonic-build.azurewebsites.net/ui/sonic/Pipelines">click here</a></span></td> for previous builds <br>
</p>
</p>
</div>
</div>
</div>
<script>
$(document).ready(function () {
$.getJSON("https://raw.githubusercontent.com/sonic-net/SONiC/sonic_latest_images_links/sonic_image_links.json",
function(data) {
dbs = data;
branches = Object.keys(data);
image_data = [];
for (let i = branches.length - 1 ; i >= 0; i--) {
display_data = "<td style=\" text-align: center; padding-left: 0.5em; background-color: lightgrey; height: 45px; align: center;\"><span style=\"letter-spacing: 0.15em; font-weight: bold; font-size: calc(11px + 0.6vw); \">" + branches[i].toUpperCase() +"</span></td>";
$("#branch").append(display_data);
images = Object.keys(data[branches[i]]);
for (let j = 0; j < images.length; j++) {
image_name = images[j];
image = data[branches[i]][images[j]];
commit_dif = data[branches[i]][images[j]];
image_platform = image_name.split(".")[0];
image_platform2 = image_name;
if(image_platform.length == 1){
platform = ""
}else{
platform = image_platform.split("sonic-")[1];
platform2 = image_platform2.split("sonic-")[1];
if(platform.length == 1){
platform = ""
}
}
image_avail = true;
image_url = image['url'];
build_id = image['build'];
commit = commit_dif['diff'];
if(image_url === 'null' || image_url === ""){
image_avail = false;
}
if ( !$("#"+platform).length ){
platform_column = "<tr id=\""+ platform +"\"><td style=\" text-align: center; \"><strong>"+ platform.toUpperCase()+"</strong></td></tr>";
$("#disp_table").append(platform_column);
}
if (image_avail)
image_column ="<td style=\"text-align: center;\"><span style=\"color: #0000ff;\"><a href=\""+ image_url +"\">"+platform2+"-"+build_id+"</a> : <a href=\""+ commit +"\">commit_diff</a></span></td>";
else
image_column ="<td style=\"text-align: center;\"><span style=\"color: #0000ff;\">N/A</span></td>";
$("#"+platform).append(image_column);
}
}
});
});
</script>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors/Azure-SONiC.git
[email protected]:mirrors/Azure-SONiC.git
mirrors
Azure-SONiC
Azure-SONiC
master

搜索帮助