129 lines
4.0 KiB
HTML
129 lines
4.0 KiB
HTML
<!doctype html>
|
|
|
|
<head>
|
|
<title>小爱的网站</title>
|
|
<meta charset="utf-8"/>
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no"/>
|
|
<style>
|
|
:root {
|
|
--footer-height: 64px;
|
|
}
|
|
footer {
|
|
height: var(--footer-height);
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: center;
|
|
align-items: center;
|
|
font-size: 14px;
|
|
background-color: rgb(195 195 195);
|
|
position: fixed;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
}
|
|
|
|
.filing-container {
|
|
width: 100%;
|
|
display: flex;
|
|
margin-top: 5px;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.main-container {
|
|
padding-bottom: var(--footer-height);
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
window.onload = () => {
|
|
fetch("./website-update-logs.json")
|
|
.then(res => {
|
|
return res.json()
|
|
})
|
|
.then(data => {
|
|
for (let i = 0; i < data.length; i++) {
|
|
const date = data[i]["date"]
|
|
const detail = data[i]["detail"]
|
|
const liEle = document.createElement("li")
|
|
const listEle = document.getElementById("update-list")
|
|
|
|
liEle.innerText = `${date}: ${detail}`
|
|
listEle.appendChild(liEle)
|
|
}
|
|
})
|
|
}
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="main-container">
|
|
<div style="font-size: 20px; font-weight: bold;">资源</div>
|
|
<div>linux软件源</div>
|
|
<ul>
|
|
<li>
|
|
debian 12<br>
|
|
<code>
|
|
wget:<br>
|
|
wget -O sources.list https://assets.cancerai.top/linux-repo/debian_12_x86-64/sources.list<br>
|
|
cat sources.list > /etc/apt/sources.list<br>
|
|
rm -rf sources.list<br>
|
|
apt update<br><br>
|
|
|
|
curl:<br>
|
|
curl https://assets.cancerai.top/linux-repo/debian_12_x86-64/sources.list >
|
|
/etc/apt/sources.list<br>
|
|
apt update
|
|
</code>
|
|
</li>
|
|
<br>
|
|
<li>
|
|
debian 13<br>
|
|
<code>
|
|
wget:<br>
|
|
wget -O sources.list https://assets.cancerai.top/linux-repo/debian_13_arm64/sources.list<br>
|
|
cat sources.list > /etc/apt/sources.list<br>
|
|
rm -rf sources.list<br>
|
|
apt update<br><br>
|
|
|
|
curl:<br>
|
|
curl https://assets.cancerai.top/linux-repo/debian_13_arm64/sources.list >
|
|
/etc/apt/sources.list<br>
|
|
apt update
|
|
</code>
|
|
</li>
|
|
<br>
|
|
</ul>
|
|
|
|
<!-- <div>homebrew软件源</div>-->
|
|
<!-- <ul>-->
|
|
<!-- <li>-->
|
|
<!-- 版本 >= 4.x<br>-->
|
|
<!-- <code>-->
|
|
<!-- echo '<br>-->
|
|
<!-- export HOMEBREW_API_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles/api"<br>-->
|
|
<!-- export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.tuna.tsinghua.edu.cn/homebrew-bottles"<br>-->
|
|
<!-- ' >> ~/.zshrc && . ~/.zshrc && brew update-->
|
|
<!-- </code>-->
|
|
<!-- </li>-->
|
|
<!-- </ul>-->
|
|
<hr>
|
|
|
|
<div style="font-size: 20px; font-weight: bold;">更新日志</div>
|
|
<ul id="update-list">
|
|
</ul>
|
|
</div>
|
|
|
|
<footer>
|
|
<div class="filing-container">
|
|
<a href="https://beian.miit.gov.cn/" target="_blank">沪ICP备2026028815号-1</a>
|
|
</div>
|
|
|
|
<div class="filing-container" style="margin-top: 5px;">
|
|
<img src="./filing_icon.png" width="20px" height="20px"/>
|
|
<div style="width: 10px;"></div>
|
|
<a href="https://beian.mps.gov.cn/#/query/webSearch?code=31011702891982" rel="noreferrer" target="_blank">沪公网安备31011702891982号</a>
|
|
</div>
|
|
</footer>
|
|
</body>
|