Compare commits
96 Commits
AR-Backup-
...
master
| Author | SHA1 | Date |
|---|---|---|
|
|
0938411b78 | 6 days ago |
|
|
1eecca6d6a | 2 weeks ago |
|
|
2abc8e7269 | 4 weeks ago |
|
|
0fa7816fa8 | 1 month ago |
|
|
7f6baa0c8d | 2 months ago |
|
|
1052b66270 | 2 months ago |
|
|
8cb782d1ff | 2 months ago |
|
|
7659d3e9d5 | 2 months ago |
|
|
a4cc075205 | 2 months ago |
|
|
44d8461ab1 | 2 months ago |
|
|
303f5df01c | 2 months ago |
|
|
932e310f9d | 3 months ago |
|
|
2036ee2c4f | 3 months ago |
|
|
a89e95869e | 3 months ago |
|
|
c217a52c70 | 3 months ago |
|
|
4b94d48330 | 4 months ago |
|
|
2ec9345113 | 4 months ago |
|
|
987c604dea | 4 months ago |
|
|
8e0b6e11b3 | 4 months ago |
|
|
317f5bdce7 | 4 months ago |
|
|
89a0af5632 | 4 months ago |
|
|
798f65eb97 | 4 months ago |
|
|
05998cdc3f | 4 months ago |
|
|
5d87b2c9d4 | 4 months ago |
|
|
b8b29f86d5 | 4 months ago |
|
|
0e4e4d2fb7 | 4 months ago |
|
|
7943cc7d6a | 5 months ago |
|
|
772e3ed0b7 | 5 months ago |
|
|
ee4c9acfde | 5 months ago |
|
|
2acc1f6fd7 | 5 months ago |
|
|
5f2a3a99ee | 6 months ago |
|
|
36cf19d4aa | 6 months ago |
|
|
9c769e4ab2 | 6 months ago |
|
|
fd5f1703dd | 6 months ago |
|
|
2a512a487d | 6 months ago |
|
|
556e27c9ad | 6 months ago |
|
|
5a4baf5f4b | 6 months ago |
|
|
71d493c2a8 | 6 months ago |
|
|
156f964333 | 6 months ago |
|
|
481df19596 | 6 months ago |
|
|
1a529143a8 | 6 months ago |
|
|
b25a864ee3 | 6 months ago |
|
|
c5ad917d9e | 6 months ago |
|
|
d6274791a8 | 6 months ago |
|
|
111dc1e25f | 6 months ago |
|
|
c4ae25dcb1 | 6 months ago |
|
|
862bffac80 | 6 months ago |
|
|
c888a89f41 | 6 months ago |
|
|
b48e93890c | 6 months ago |
|
|
f6b35814b1 | 6 months ago |
|
|
fe26e4f6c3 | 7 months ago |
|
|
45f1183f9a | 7 months ago |
|
|
dd1141d872 | 7 months ago |
|
|
c0ca105edc | 7 months ago |
|
|
bc45ef27b8 | 7 months ago |
|
|
47f623b8eb | 7 months ago |
|
|
33122e34b5 | 7 months ago |
|
|
100d3405f7 | 8 months ago |
|
|
a7ff7c2c37 | 8 months ago |
|
|
47e04279d0 | 8 months ago |
|
|
cd478c22a2 | 8 months ago |
|
|
e094b6d205 | 8 months ago |
|
|
e8653b0efd | 8 months ago |
|
|
e516a5d08c | 9 months ago |
|
|
cf76264bb0 | 9 months ago |
|
|
0a7608b3f0 | 9 months ago |
|
|
5fd8d2fe0f | 9 months ago |
|
|
c9dfb10733 | 9 months ago |
|
|
23fff44d79 | 9 months ago |
|
|
6630ba964b | 9 months ago |
|
|
00aec9bad0 | 9 months ago |
|
|
2ab6982684 | 10 months ago |
|
|
172882a99e | 10 months ago |
|
|
d69f175fee | 10 months ago |
|
|
9760f9eb4d | 10 months ago |
|
|
1553183d31 | 10 months ago |
|
|
0ad9008f3e | 10 months ago |
|
|
03a2f1fdf9 | 11 months ago |
|
|
da73615b73 | 1 year ago |
|
|
e9ac9bf1df | 1 year ago |
|
|
d13dd560c2 | 1 year ago |
|
|
1198b6c191 | 1 year ago |
|
|
1b5efb8edd | 1 year ago |
|
|
971641b3dd | 1 year ago |
|
|
c71a48263e | 1 year ago |
|
|
21eaed132b | 1 year ago |
|
|
5098b24ce6 | 1 year ago |
|
|
ae6a6d3029 | 1 year ago |
|
|
2803a0773a | 1 year ago |
|
|
da59fa1a9f | 1 year ago |
|
|
d7c957b68a | 1 year ago |
|
|
ebe45018f5 | 1 year ago |
|
|
b4af6686ce | 1 year ago |
|
|
3d5d7eaa16 | 1 year ago |
|
|
f5e43a61f8 | 1 year ago |
|
|
5c739ed695 | 1 year ago |
@ -0,0 +1,19 @@
|
||||
# Required
|
||||
version: 2
|
||||
|
||||
build:
|
||||
os: ubuntu-24.04
|
||||
tools:
|
||||
ruby: "3.3"
|
||||
|
||||
commands:
|
||||
- gem install bundler
|
||||
- bundle install
|
||||
- mkdir Mabbs
|
||||
- curl -L -o Mabbs/README.md https://github.com/Mabbs/Mabbs/raw/main/README.md
|
||||
- bundle exec jekyll build --destination $READTHEDOCS_OUTPUT/html
|
||||
- python3 _tools/blogquine.py --src-dir blog --quine-dir blog $READTHEDOCS_OUTPUT/html MayxBlog.7z
|
||||
- curl -L -O https://github.com/ip7z/7zip/releases/download/26.03/7z2603-linux-x64.tar.xz
|
||||
- tar xvf 7z2603-linux-x64.tar.xz
|
||||
- ./7zzs a -mx9 -bd -bb0 MayxBlog-new.7z MayxBlog.7z
|
||||
- mv MayxBlog-new.7z $READTHEDOCS_OUTPUT/html/MayxBlog.7z
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 252 KiB |
|
@ -0,0 +1,141 @@
|
||||
repo_url
|
||||
http://gdatura24gtdy23lxd7ht3xzx6mi7mdlkabpvuefhrjn4t5jduviw5ad.onion/Mayx/mayx
|
||||
http://git.dkforestseeaaq2dqz2uflmlsybvnq2irzn4ygyvu53oazyorednviid.onion/mayx/blog
|
||||
http://giteabolfdejtdzblkooalqei6jr67imiugmhtsh6ocw4hlj5a4q.b32.i2p/mayx/blog
|
||||
https://gitlab.lain.la/mayx/mayx.pages.lain.la
|
||||
https://gitplac.si/mayx/mayx.gitpage.si
|
||||
https://git.32bit.cafe/mayx/blog
|
||||
https://gitnet.fr/mayx/blog
|
||||
https://opencommit.eu/mayx/blog
|
||||
https://forge.fedoraproject.org/mabbs/blog
|
||||
https://tilde.club/~mayx/git/blog.git/
|
||||
https://git.envs.net/Mayx/mayx
|
||||
https://tildegit.org/Mayx/blog
|
||||
https://git.tilde.town/mayx/blog
|
||||
https://gitlab.haskell.org/mayx/mayx
|
||||
https://lavaforge.org/mayx/blog
|
||||
https://repo2.serv00.com/git/pub/Mayx/mayx/
|
||||
https://sij.ai/mayx/blog
|
||||
https://git.projectnightcrawler.dev/mayx/blog
|
||||
https://git.pixie.town/mayx/blog
|
||||
https://git.minetest.land/Mayx/blog
|
||||
https://mygit.iexercice.com/mayx/blog
|
||||
https://git.Apture.io/mayx/blog
|
||||
http://219.157.255.213:25311/mayx/blog
|
||||
https://repo.gusdya.net/mayx/blog
|
||||
http://gitea.yunshanghub.com:8081/mayx/blog
|
||||
http://187.216.152.151:9999/mayx/blog
|
||||
https://git.furcom.org/mayx/blog
|
||||
https://git.karma-riuk.com/mayx/blog
|
||||
https://git.gupaoedu.cn/mayx/blog
|
||||
https://git.7milch.com/mayx/blog
|
||||
http://106.54.211.95:3000/mayx/blog
|
||||
http://172.172.102.93:3000/mayx/blog
|
||||
http://119.45.49.212:3000/mayx/blog
|
||||
https://code.antopie.org/mayx/blog
|
||||
https://git.serenetia.com/mayx/blog
|
||||
https://git.temporaryname.org/mayx/blog
|
||||
https://Repo.gusdya.net/mayx/blog
|
||||
https://git.stormrain.cn/mayx/blog
|
||||
https://git.deuxfleurs.fr/mayx/blog
|
||||
https://www.simpra.org:3000/mayx/blog
|
||||
https://git.tobiasweise.dev/mayx/blog
|
||||
https://git.cavemanon.xyz/mayx/blog
|
||||
http://svn.rivastudio.cn/mayx/blog
|
||||
http://118.178.172.49:3000/mayx/blog
|
||||
http://8.130.135.159:3000/mayx/blog
|
||||
https://git.arkon.solutions/mayx/blog
|
||||
https://git.f4e.lol/mayx/blog
|
||||
http://39.101.74.135:5000/mayx/blog_cn
|
||||
http://123.57.130.140:3000/mayx/blog_cn
|
||||
http://s3.v100.vip:31057/mayx/blog_cn
|
||||
http://118.24.129.148:3000/mayx/blog_cn
|
||||
http://39.105.67.143:3000/mayx/blog_cn
|
||||
http://82.156.89.21:3000/mayx/blog_cn
|
||||
http://xujiesoft.vicp.net:3000/mayx/blog_cn
|
||||
http://58.213.60.6:19000/mayx/blog_cn
|
||||
http://gyc.myds.me:4000/mayx/blog
|
||||
https://git.graveyard.sh/mayx/blog
|
||||
https://gitea.jnyuxia.com/mayx/blog
|
||||
https://gitlab.iplusus.com/mayx/blog
|
||||
http://81.70.102.154/mayx/blog_cn
|
||||
http://183.204.60.122:10081/mayx/blog_cn
|
||||
http://47.106.222.181:20511/mayx/blog_cn
|
||||
http://118.24.161.24:3000/mayx/blog_cn
|
||||
https://git.crystalyx.net/mayx/blog
|
||||
https://barhoum-lab.fr/mayx/blog
|
||||
http://www.bkandssp.cn:30/mayx/blog
|
||||
http://gitea.ydxtool.com/mayx/blog
|
||||
https://gitea.malxte.de/mayx/blog
|
||||
https://git.edenit.co.kr/mayx/blog
|
||||
https://git.catgirlsneed.homes/mayx/blog
|
||||
http://210.75.240.13:3000/mayx/blog_cn
|
||||
http://git.hbg99.com:8080/mayx/blog_cn
|
||||
https://git.xleed.com/mayx/blog
|
||||
https://git.supernets.org/mayx/blog
|
||||
https://git.kaki87.net/mayx/blog
|
||||
https://forgejo.vanten-s.com/mayx/blog
|
||||
http://124.71.169.183:3000/mayx/blog
|
||||
http://140.120.108.238:49308/mayx/blog
|
||||
http://git.chilidoginteractive.com:3000/mayx/blog_cn
|
||||
https://git.panda-number.one/mayx/blog
|
||||
https://datacortex.pl/mayx/blog
|
||||
https://gitea.keymantek.com:777/mayx/blog
|
||||
https://git.tirtapakuan.co.id/mayx/blog
|
||||
http://tian-you.top:7020/mayx/blog
|
||||
https://mcgit.place/mayx/blog
|
||||
https://git.chiasson.cloud/mayx/blog
|
||||
https://repo.qruize.com/mayx/blog
|
||||
https://git.xneon.org/mayx/blog
|
||||
https://gitea.dabit.synology.me/mayx/blog
|
||||
https://git.joinplu.me/mayx/blog
|
||||
http://188.66.0.25:3000/mayx/blog
|
||||
https://gitea.deliverables.io/mayx/blog
|
||||
http://23.182.16.150:3000/mayx/blog
|
||||
https://git.ritonquilol.fr/mayx/blog
|
||||
https://git.jhammah.com/mayx/blog
|
||||
https://gitea.kolesarhome.com/mayx/blog
|
||||
https://git.wikeo.ovh/mayx/blog
|
||||
https://devcraft-dot.tech/mayx/blog
|
||||
http://wangbeibei.xyz:6002/mayx/blog
|
||||
http://8.141.82.163:20000/mayx/blog_cn
|
||||
http://yidaima.cn:6008/mayx/blog_cn
|
||||
http://39.99.175.172:8000/mayx/blog_cn
|
||||
http://gitea.jb1000.com:88/mayx/blog_cn
|
||||
http://219.151.177.172:3000/mayx/blog_cn
|
||||
http://jdunlap.com/mayx/blog
|
||||
https://gitruhub.ru/mayx/blog
|
||||
https://mjjtop.com/mayx/blog
|
||||
https://forgejo.wanderingmonster.dev/mayx/blog
|
||||
https://git.hemangvyas.com/mayx/blog
|
||||
https://git.aptcloud.ru/mayx/blog
|
||||
https://git.kunstglass.de/mayx/blog
|
||||
https://git.kry008.xyz/mayx/blog
|
||||
http://36.213.200.127:23000/mayx/blog_cn
|
||||
https://git.dglyoo.com/mayx/blog_cn
|
||||
http://c8202.top:3000/mayx/blog_cn
|
||||
http://nojava.fun/mayx/blog_cn
|
||||
https://git.vycsucre.gob.ve/mayx/blog
|
||||
https://git.uj-s.com/mayx/blog
|
||||
https://git.83channel.net/mayx/blog
|
||||
https://repo.paperless.rs/mayx/blog
|
||||
https://git.broderlands.com/mayx/blog
|
||||
https://gitea.schwegmann.tech/mayx/blog
|
||||
https://gitea.kcm-nixi.cn:32443/mayx/blog
|
||||
https://git.riskreduction.net/mayx/blog
|
||||
https://git.twitchmagic.pro/mayx/blog
|
||||
https://github.jogjacloud.com/mayx/blog
|
||||
https://git.stormofgalaxy.com/mayx/blog
|
||||
https://git.jibai.dev/mayx/blog
|
||||
https://dev.rasadyar.com/mayx/blog
|
||||
https://git.dew.vn/mayx/blog
|
||||
https://git.recstar.club/mayx/blog
|
||||
https://synthesist.d4d.host/mayx/blog
|
||||
https://gitea.zazlab.freeddns.org/mayx/blog
|
||||
https://gitweb.cn/mayx/blog
|
||||
https://forge.harusato.com/mayx/blog
|
||||
https://forgejo.siriusdevops.com/mayx/blog
|
||||
https://git.tessdev.fr/mayx/blog
|
||||
https://gitlab.navy.mi.th/mayx/blog
|
||||
https://forgejo.quantum-forge.io/mayx/blog
|
||||
http://www.anjpower.com:3000/mayx/blog
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,21 +1,24 @@
|
||||
#!/bin/bash
|
||||
cd /home/mayx/
|
||||
rm -rf public_html
|
||||
rm -rf public_html blog/*
|
||||
git --work-tree=/home/mayx/blog --git-dir=/home/mayx/blog.git checkout -f
|
||||
cd blog
|
||||
mkdir Mabbs
|
||||
curl -L -o Mabbs/README.md https://github.com/Mabbs/Mabbs/raw/main/README.md
|
||||
bundle2.7 exec jekyll build -d ../public_html
|
||||
tar czvf MayxBlog.tgz --exclude-vcs ../public_html/
|
||||
mv MayxBlog.tgz ../public_html/
|
||||
bundle exec jekyll build -d ../public_html
|
||||
python3 _tools/blogquine.py --src-dir blog --quine-dir blog ../public_html/ MayxBlog.7z
|
||||
7z a -mx9 -bd -bb0 MayxBlog-new.7z MayxBlog.7z
|
||||
mv MayxBlog-new.7z ../public_html/MayxBlog.7z
|
||||
cd ../public_html/
|
||||
unset GIT_DIR
|
||||
git init
|
||||
git branch -m main
|
||||
git add .
|
||||
git commit -m "update"
|
||||
git branch pages
|
||||
git remote add codeberg ssh://git@codeberg.org/mayx/pages.git
|
||||
git remote add bitbucket ssh://git@bitbucket.org/unmayx/unmayx.bitbucket.io.git
|
||||
git remote add bitbucket ssh://git@ssh.bitbucket.org/unmayx/unmayx.bitbucket.io.git
|
||||
git push -f codeberg main
|
||||
git push -f codeberg pages
|
||||
git push -f bitbucket main
|
||||
/home/mayx/blog-env/node_modules/surge/bin/surge /home/mayx/public_html/ mayx.surge.sh
|
||||
@ -0,0 +1 @@
|
||||
curl -LO https://github.com/Homebrew/homebrew-portable-ruby/releases/download/3.4.5/portable-ruby-3.4.5.x86_64_linux.bottle.tar.gz && mkdir -p ~/.local/portable-ruby && tar -xvf portable-ruby-3.4.5.x86_64_linux.bottle.tar.gz -C ~/.local/portable-ruby --strip-components=1 && export PATH="$HOME/.local/portable-ruby/3.4.5/bin:$PATH" && bundle install
|
||||
@ -0,0 +1,35 @@
|
||||
@namespace xsl "http://www.w3.org/1999/XSL/Transform";
|
||||
|
||||
xsl|template {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
:root {
|
||||
display: flex !important;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 100vh;
|
||||
background-color: #f8f9fa;
|
||||
margin: 0;
|
||||
padding: 2em 1em;
|
||||
font-family: system-ui, -apple-system, sans-serif;
|
||||
box-sizing: border-box;
|
||||
margin-left: max(1em, env(safe-area-inset-left));
|
||||
margin-right: max(1em, env(safe-area-inset-right));
|
||||
}
|
||||
|
||||
:root::before {
|
||||
content: "💀 这个 XSLT 模板已被谷歌 (Chrome) 杀死";
|
||||
display: block;
|
||||
color: #d93025;
|
||||
font-size: 24px;
|
||||
font-weight: 800;
|
||||
padding: 20px;
|
||||
border: 2px solid #d93025;
|
||||
border-radius: 8px;
|
||||
background: #fff1f0;
|
||||
margin-bottom: 10px;
|
||||
box-shadow: 0 4px 12px rgba(217, 48, 37, 0.1);
|
||||
text-align: center;
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -1,77 +1,18 @@
|
||||
$(function () {
|
||||
const urlParams = new URLSearchParams(window.location.search);
|
||||
const keyword = urlParams.get('kw')?.trim();
|
||||
|
||||
if (!keyword) return;
|
||||
|
||||
// 转义正则表达式特殊字符,避免安全问题
|
||||
const escapedKeyword = keyword.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
||||
// 创建不区分大小写的正则表达式(全局匹配)
|
||||
const regex = new RegExp(`(${escapedKeyword})`, 'gi');
|
||||
|
||||
// 递归遍历并高亮文本节点
|
||||
const escapeHTML = str => str.replace(/[&<>"']/g,
|
||||
tag => ({
|
||||
'&': '&',
|
||||
'<': '<',
|
||||
'>': '>',
|
||||
'"': '"',
|
||||
"'": '''
|
||||
}[tag] || tag));
|
||||
function highlightTextNodes(element) {
|
||||
$(element).contents().each(function () {
|
||||
if (this.nodeType === Node.TEXT_NODE) {
|
||||
const $this = $(this);
|
||||
const text = escapeHTML($this.text());
|
||||
|
||||
// 使用正则替换并保留原始大小写
|
||||
if (regex.test(text)) {
|
||||
const replaced = text.replace(regex, '<mark>$1</mark>');
|
||||
$this.replaceWith(replaced);
|
||||
}
|
||||
} else if (
|
||||
this.nodeType === Node.ELEMENT_NODE &&
|
||||
!$(this).is('script, style, noscript, textarea')
|
||||
) {
|
||||
highlightTextNodes(this);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$('section').each(function () {
|
||||
highlightTextNodes(this);
|
||||
});
|
||||
});
|
||||
|
||||
$(function() {
|
||||
var $codeBlocks = $('div.highlight');
|
||||
|
||||
$codeBlocks.each(function() {
|
||||
var $copyButton = $('<button>', {
|
||||
class: 'copy',
|
||||
type: 'button',
|
||||
text: '📋'
|
||||
});
|
||||
|
||||
$(this).append($copyButton);
|
||||
|
||||
$copyButton.on('click', function() {
|
||||
var code = $(this).siblings('pre').find('code').text().trim();
|
||||
var $button = $(this);
|
||||
|
||||
function initCopyButtons() {
|
||||
$('.copy').remove();
|
||||
$('div.highlight').each(function () {
|
||||
var $btn = $('<button>', { class: 'copy', type: 'button', text: '📋' });
|
||||
$(this).append($btn);
|
||||
$btn.on('click', function () {
|
||||
var code = $btn.siblings('pre').find('code').text().trim();
|
||||
navigator.clipboard.writeText(code)
|
||||
.then(function() {
|
||||
$button.text('✅');
|
||||
})
|
||||
.catch(function(err) {
|
||||
$button.text('❌');
|
||||
console.error('复制失败:', err);
|
||||
})
|
||||
.finally(function() {
|
||||
setTimeout(function() {
|
||||
$button.text('📋');
|
||||
}, 1500);
|
||||
});
|
||||
.then(function () { $btn.text('✅'); })
|
||||
.catch(function () { $btn.text('❌'); })
|
||||
.finally(function () { setTimeout(function () { $btn.text('📋'); }, 1500); });
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
$(function () {
|
||||
initCopyButtons();
|
||||
});
|
||||
Binary file not shown.
@ -0,0 +1 @@
|
||||
24f0040157c07cc424b28b7b52ea734d
|
||||
@ -0,0 +1,17 @@
|
||||
---
|
||||
---
|
||||
|
||||
/* AUTHOR */
|
||||
Name: Mayx
|
||||
Contact: mayx@outlook.com
|
||||
GitHub: Mabbs
|
||||
From: China
|
||||
|
||||
/* THANKS */
|
||||
Built with: Jekyll (https://jekyllrb.com)
|
||||
|
||||
/* SITE */
|
||||
Last update: {{ site.time | date: "%F" }}
|
||||
Language: Chinese / English
|
||||
Doctype: HTML5
|
||||
IDE: VSCode
|
||||
Binary file not shown.
Binary file not shown.
|
Before Width: | Height: | Size: 1.1 MiB |
Binary file not shown.
|
After Width: | Height: | Size: 331 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 748 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 209 KiB |
@ -0,0 +1,14 @@
|
||||
---
|
||||
---
|
||||
|
||||
# {{ site.title }}
|
||||
> {{ site.description }}
|
||||
|
||||
## Site Info
|
||||
|
||||
- [About Site](/README.html)
|
||||
- [About Author](/humans.txt)
|
||||
|
||||
## Posts
|
||||
{% for post in site.posts %}
|
||||
- [{{ post.title }}{% if post.layout == "encrypt" %} [加密] {% endif %}]({{ post.url }}): {% assign ai_cache = site.data.ai-cache[post.url] %}{% if ai_cache %}{{ ai_cache | strip_html | strip_newlines }}{% elsif post.excerpt %}{{ post.excerpt | strip_html | strip_newlines }}{% else %}Just a Post.{% endif %}{% endfor %}
|
||||
@ -0,0 +1 @@
|
||||
32691808d04b4e838d0c0610ec848ca2
|
||||
@ -0,0 +1,37 @@
|
||||
---
|
||||
layout: default
|
||||
title: 离线模式
|
||||
---
|
||||
|
||||
# 离线模式
|
||||
|
||||
本页用于管理本博客的离线阅读功能:
|
||||
|
||||
- **启用离线模式**:浏览器会下载整站压缩包(`MayxBlog.7z`)并解包到本地缓存,之后即使没有网络也能正常浏览博客;
|
||||
- **自动回退**:当站点压缩包更新(博客重新部署)时,离线缓存会自动失效并回退到在线模式,下次重新启用即可获取最新内容;
|
||||
- **手动切换**:离线模式下可以随时在本页切回在线模式,切回后页面将重新通过网络加载。
|
||||
|
||||
<table>
|
||||
<tbody>
|
||||
<tr><th>当前状态</th><td id="offline-state">检测中…</td></tr>
|
||||
<tr><th>缓存版本</th><td id="offline-version">-</td></tr>
|
||||
<tr><th>文件统计</th><td id="offline-files">-</td></tr>
|
||||
<tr><th>解包时间</th><td id="offline-time">-</td></tr>
|
||||
<tr><th>持久存储</th><td id="offline-persist">-</td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p id="offline-progress-box" hidden="hidden">
|
||||
<progress id="offline-progress" max="100" value="0"></progress>
|
||||
|
||||
<small id="offline-progress-text">准备中…</small>
|
||||
</p>
|
||||
|
||||
<p><strong id="offline-message"></strong></p>
|
||||
|
||||
<p>
|
||||
<button type="button" id="offline-enable">启用离线模式</button>
|
||||
<button type="button" id="offline-disable">切换回在线模式</button>
|
||||
</p>
|
||||
|
||||
<script src="/assets/js/offline-page.js"></script>
|
||||
@ -0,0 +1,10 @@
|
||||
---
|
||||
layout: default
|
||||
title: 其他Git仓库镜像列表
|
||||
robots: noindex, nofollow
|
||||
---
|
||||
|
||||
# 其他Git仓库镜像列表
|
||||
目前已有的社区/个人类型实例托管Git仓库共有{{ site.data.other_repo_list | size }}个:
|
||||
{% for item in site.data.other_repo_list %}- <{{ item.repo_url }}>
|
||||
{% endfor %}
|
||||
@ -1,7 +1,21 @@
|
||||
{
|
||||
"name": "mayx-blog",
|
||||
"version": "1.0.0",
|
||||
"description": "Mayx's Home Page",
|
||||
"homepage": "https://mabbs.github.io",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Mabbs/mabbs.github.io.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/Mabbs/mabbs.github.io/issues"
|
||||
},
|
||||
"author": "Mayx",
|
||||
"scripts": {
|
||||
"build": "bash deploy.sh"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"provenance": true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2018 ნიკა
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue