add: 第一版网站
This commit is contained in:
1 parent
61ba1132dc
commit
789190036c
2 files changed
+91
-6
No files matched your search
+85
-6
@@ -4,17 +4,17 @@
|
|||||||
<meta charset="utf-8"/>
|
<meta charset="utf-8"/>
|
||||||
<style>
|
<style>
|
||||||
footer {
|
footer {
|
||||||
|
height: 100px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
position: absolute;
|
|
||||||
bottom: 0px;
|
|
||||||
left: 0px;
|
|
||||||
right: 0px;
|
|
||||||
background-color: #e4e4e4;
|
background-color: #e4e4e4;
|
||||||
padding: 10px 0px;
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.filing-container {
|
.filing-container {
|
||||||
@@ -24,11 +24,90 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.main-container {
|
||||||
|
padding-bottom: 100px;
|
||||||
|
}
|
||||||
</style>
|
</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>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1 style="text-align: center;">XiaoAi's website</h1>
|
<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>
|
<footer>
|
||||||
<div class="filing-container">
|
<div class="filing-container">
|
||||||
|
|||||||
@@ -0,0 +1,6 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"date": "2026-08-28",
|
||||||
|
"detail": "新增 https://assets.cancerai.top 资源站点"
|
||||||
|
}
|
||||||
|
]
|
||||||
Reference in new issue
Block a user