sinzmise-cetastories 1.9.0-1727923018460 → 2.0.0-1728224519839
Sign up to get free protection for your applications and to get access to all the features.
- package/404/index.html +1 -1
- package/about/index.html +1 -1
- package/album/index.html +1 -1
- package/archives/2021/12/index.html +1 -1
- package/archives/2021/index.html +1 -1
- package/archives/2022/12/index.html +1 -1
- package/archives/2022/index.html +1 -1
- package/archives/2023/01/index.html +1 -1
- package/archives/2023/02/index.html +1 -1
- package/archives/2023/03/index.html +1 -1
- package/archives/2023/04/index.html +1 -1
- package/archives/2023/07/index.html +1 -1
- package/archives/2023/08/index.html +1 -1
- package/archives/2023/09/index.html +1 -1
- package/archives/2023/10/index.html +1 -1
- package/archives/2023/11/index.html +1 -1
- package/archives/2023/12/index.html +1 -1
- package/archives/2023/index.html +1 -1
- package/archives/2023/page/2/index.html +1 -1
- package/archives/2023/page/3/index.html +1 -1
- package/archives/2024/01/index.html +1 -1
- package/archives/2024/02/index.html +1 -1
- package/archives/2024/03/index.html +1 -1
- package/archives/2024/04/index.html +1 -1
- package/archives/2024/05/index.html +1 -1
- package/archives/2024/06/index.html +1 -1
- package/archives/2024/07/index.html +1 -1
- package/archives/2024/08/index.html +1 -1
- package/archives/2024/09/index.html +1 -1
- package/archives/2024/10/index.html +1 -0
- package/archives/2024/index.html +1 -1
- package/archives/2024/page/2/index.html +1 -1
- package/archives/index.html +1 -1
- package/archives/page/2/index.html +1 -1
- package/archives/page/3/index.html +1 -1
- package/archives/page/4/index.html +1 -1
- package/bbs/bbs.html +1 -1
- package/bbs/bbs.js +1 -12
- package/bbs/index.html +1 -1
- package/categories/index.html +1 -1
- package/categories//344/270/252/344/272/272/345/260/217/350/256/260/index.html +1 -1
- package/categories//344/270/252/344/272/272/345/260/217/350/256/260/page/2/index.html +1 -1
- package/categories//346/255/214/346/233/262/346/224/266/351/233/206/index.html +1 -1
- package/categories//346/270/270/346/210/217/347/233/270/345/205/263/index.html +1 -1
- package/categories//347/253/231/347/202/271/346/212/230/350/205/276/index.html +1 -1
- package/categories//347/253/231/347/202/271/346/212/230/350/205/276/page/2/index.html +1 -1
- package/categories//351/241/271/347/233/256/346/212/230/350/205/276/index.html +1 -1
- package/charts/index.html +1 -1
- package/comments/index.html +1 -1
- package/css/custom2.css +1 -1
- package/css/index.css +1 -1
- package/css/plugins/bootstrap.min.css +6 -0
- package/css/plugins/bootstrap.row.css +1 -0
- package/css/plugins/font-awesome.min.css +1 -0
- package/css/tags.css +1 -0
- package/essay/index.html +1 -1
- package/failure.ico +0 -0
- package/fcircle/index.html +1 -1
- package/fonts/webfonts/fa-brands-400.woff2 +0 -0
- package/fonts/webfonts/fa-regular-400.woff2 +0 -0
- package/fonts/webfonts/fa-solid-900.woff2 +0 -0
- package/google8073542809160a67.html +1 -1
- package/images/siteicon/apple-touch-icon.png +0 -0
- package/images/siteicon/favicon-16x16.png +0 -0
- package/images/siteicon/favicon-32x32.png +0 -0
- package/images/siteicon/favicon-48x48.png +0 -0
- package/images/siteicon/favicon.ico +0 -0
- package/images/siteicon/favicon.svg +3 -0
- package/images/siteicon/web-app-manifest-192x192.png +0 -0
- package/images/siteicon/web-app-manifest-512x512.png +0 -0
- package/img/avatar.jpg +0 -0
- package/img/banner.png +0 -0
- package/img/block.jpg +0 -0
- package/img/favicon.svg +39 -0
- package/index.html +1 -1
- package/js/main.js +1 -1
- package/js/plugins/danmu.js +1 -0
- package/js/plugins/local_search.js +1 -0
- package/js/plugins/typing.js +1 -0
- package/link/index.html +1 -1
- package/manifest.json +1 -1
- package/music/index.html +1 -1
- package/package.json +1 -1
- package/page/2/index.html +1 -1
- package/page/3/index.html +1 -1
- package/page/4/index.html +1 -1
- package/posts/10021/index.html +1 -1
- package/posts/10045/index.html +1 -1
- package/posts/10733/index.html +1 -0
- package/posts/10996/index.html +1 -1
- package/posts/12779/index.html +1 -1
- package/posts/13624/index.html +1 -1
- package/posts/15688/index.html +1 -1
- package/posts/15748/index.html +1 -1
- package/posts/15799/index.html +1 -1
- package/posts/15842/index.html +1 -1
- package/posts/16107/index.html +1 -1
- package/posts/18063/index.html +1 -1
- package/posts/20412/index.html +1 -1
- package/posts/21375/index.html +1 -1
- package/posts/22945/index.html +1 -1
- package/posts/23021/index.html +1 -1
- package/posts/27531/index.html +1 -1
- package/posts/28536/index.html +1 -1
- package/posts/28733/index.html +1 -1
- package/posts/29196/index.html +1 -1
- package/posts/38917/index.html +1 -1
- package/posts/38964/index.html +1 -1
- package/posts/42487/index.html +1 -1
- package/posts/42580/index.html +1 -1
- package/posts/45875/index.html +1 -1
- package/posts/46640/index.html +1 -1
- package/posts/48762/index.html +1 -1
- package/posts/50710/index.html +1 -1
- package/posts/52677/index.html +1 -1
- package/posts/53662/index.html +1 -1
- package/posts/54386/index.html +1 -1
- package/posts/54481/index.html +1 -1
- package/posts/54787/index.html +1 -1
- package/posts/56467/index.html +1 -1
- package/posts/57692/index.html +1 -1
- package/posts/58203/index.html +1 -1
- package/posts/61417/index.html +1 -1
- package/posts/646/index.html +1 -1
- package/posts/64856/index.html +1 -1
- package/posts/64935/index.html +1 -1
- package/search.xml +1323 -0
- package/seas/index.html +1 -1
- package/serviceworker.js +1 -0
- package/sw.js +1 -1
- package/tags/Flash/347/233/270/345/205/263/index.html +1 -1
- package/tags/Steam/346/270/270/346/210/217/index.html +1 -1
- package/tags/Windows/350/275/257/344/273/266/index.html +1 -1
- package/tags/index.html +1 -1
- package/tags//344/270/252/344/272/272/345/260/217/350/256/260/index.html +1 -1
- package/tags//344/270/252/344/272/272/345/260/217/350/256/260/page/2/index.html +1 -1
- package/tags//345/205/266/345/256/203/346/270/270/346/210/217/index.html +1 -1
- package/tags//345/212/240/350/275/275/345/212/250/347/224/273/index.html +1 -1
- package/tags//346/202/254/346/265/256/345/256/240/347/211/251-/347/234/213/346/235/277/345/250/230/index.html +1 -1
- package/tags//346/255/214/346/233/262/346/224/266/351/233/206/index.html +1 -1
- package/tags//346/270/270/346/210/217/347/233/270/345/205/263/index.html +1 -1
- package/tags//347/253/231/347/202/271/345/272/225/351/203/250/351/255/224/346/224/271/index.html +1 -1
- package/tags//347/253/231/347/202/271/346/212/230/350/205/276/index.html +1 -1
- package/tags//347/253/231/347/202/271/346/212/230/350/205/276/page/2/index.html +1 -1
- package/tags//350/207/252/345/273/272/351/203/250/347/275/262/index.html +1 -1
- package/tags//351/241/265/351/235/242/351/255/224/346/224/271/index.html +1 -1
- package/tags//351/241/271/347/233/256/346/212/230/350/205/276/index.html +1 -1
- package/update/index.html +1 -1
- package/404.html +0 -1
- package/article.json +0 -1
- package/atom.xml +0 -526
- package/baidusitemap.xml +0 -163
- package/bangumis/index.html +0 -1
- package/cacheList.json +0 -1
- package/css/404.css +0 -1
- package/css/anzhiyu-var.css +0 -1
- package/css/bywind-var.css +0 -1
- package/css/categoryBar.css +0 -1
- package/css/console.css +0 -1
- package/css/custom.css +0 -1
- package/css/essay_page.css +0 -1
- package/css/footer.css +0 -1
- package/css/heo-var.css +0 -1
- package/css/icat-var.css +0 -1
- package/css/iconfont.css +0 -1
- package/css/iconfont.ttf +0 -0
- package/css/iconfont.woff +0 -0
- package/css/iconfont.woff2 +0 -0
- package/css/orlike.css +0 -1
- package/css/rightmenu.css +0 -1
- package/css/var.css +0 -0
- package/images/siteicon/16.png +0 -0
- package/images/siteicon/32.png +0 -0
- package/images/siteicon/apple-icon-180.png +0 -0
- package/images/siteicon/manifest-icon-192.maskable.png +0 -0
- package/images/siteicon/manifest-icon-512.maskable.png +0 -0
- package/img/favicon.png +0 -0
- package/img/footer-social-link.svg +0 -1
- package/js/about.js +0 -1
- package/js/categoryBar.js +0 -1
- package/js/comments.js +0 -1
- package/js/console.js +0 -1
- package/js/custom/fixed_card_widget.js +0 -1
- package/js/custom.js +0 -69
- package/js/day.js +0 -1
- package/js/fps.js +0 -1
- package/js/hometop.js +0 -1
- package/js/lunar.js +0 -1
- package/js/nav.js +0 -1
- package/js/nyan.js +0 -1
- package/js/orlike.js +0 -1
- package/js/owobig.js +0 -1
- package/js/random-friends-post.js +0 -1
- package/js/randompost.js +0 -1
- package/js/rightmenu.js +0 -1
- package/js/sakura.js +0 -1
- package/js/search/algolia.js +0 -1
- package/js/search/local-search.js +0 -1
- package/js/statistic.js +0 -1
- package/js/tw_cn.js +0 -1
- package/js/utils.js +0 -1
- package/js/waterfall/waterfall.js +0 -1
- package/js/welcome.js +0 -1
- package/lib/tag_plugins.css +0 -1
- package/posts/27762/index.html +0 -1
- package/robots.txt +0 -12
- package/sitemap.xml +0 -679
- package/sw-dom.js +0 -73
- package/update.json +0 -1
package/sw-dom.js
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
document.addEventListener('DOMContentLoaded', () => {
|
2
|
-
if (!navigator.serviceWorker?.controller) return
|
3
|
-
/** 发送信息到 sw */
|
4
|
-
const postMessage2SW = type => navigator.serviceWorker.controller.postMessage(type)
|
5
|
-
const pjaxUpdate = url => {
|
6
|
-
const type = url.endsWith('js') ? 'script' : 'link'
|
7
|
-
const name = type === 'link' ? 'href' : 'src'
|
8
|
-
for (let item of document.getElementsByTagName(type)) {
|
9
|
-
const itUrl = item[name]
|
10
|
-
if (url.length > itUrl ? url.endsWith(itUrl) : itUrl.endsWith(url)) {
|
11
|
-
const newEle = document.createElement(type)
|
12
|
-
const content = item.text || item.textContent || item.innerHTML || ''
|
13
|
-
// noinspection JSUnresolvedReference
|
14
|
-
Array.from(item.attributes).forEach(attr => newEle.setAttribute(attr.name, attr.value))
|
15
|
-
newEle.appendChild(document.createTextNode(content))
|
16
|
-
item.parentNode.replaceChildren(newEle, item)
|
17
|
-
return true
|
18
|
-
}
|
19
|
-
}
|
20
|
-
}
|
21
|
-
const SESSION_KEY = 'updated'
|
22
|
-
// noinspection JSFileReferences
|
23
|
-
const onSuccess = () => {
|
24
|
-
caches.match('https://id.v3/').then(function(response) {
|
25
|
-
if (response) {
|
26
|
-
// 如果找到了匹配的缓存响应
|
27
|
-
response.json().then(function(data) {
|
28
|
-
var snackbarBg =
|
29
|
-
document.documentElement.getAttribute('data-theme') === 'light' ?
|
30
|
-
GLOBAL_CONFIG.Snackbar.bgLight :
|
31
|
-
GLOBAL_CONFIG.Snackbar.bgDark
|
32
|
-
var snackbarPos = GLOBAL_CONFIG.Snackbar.position
|
33
|
-
Snackbar.show({
|
34
|
-
text: `已刷新缓存,更新为${GLOBAL_CONFIG.uiversion}版本最新内容`,
|
35
|
-
backgroundColor: snackbarBg,
|
36
|
-
duration: 30000,
|
37
|
-
pos: snackbarPos,
|
38
|
-
actionText: '查看更新日志',
|
39
|
-
actionTextColor: '#fff',
|
40
|
-
onActionClick: function(e) {
|
41
|
-
pjax.loadUrl("/update/");
|
42
|
-
},
|
43
|
-
})
|
44
|
-
});
|
45
|
-
} else {
|
46
|
-
console.info('未找到匹配的缓存响应');
|
47
|
-
}
|
48
|
-
}).catch(function(error) {
|
49
|
-
console.error('缓存匹配出错:', error);
|
50
|
-
});
|
51
|
-
};
|
52
|
-
if (sessionStorage.getItem(SESSION_KEY)) {
|
53
|
-
onSuccess()
|
54
|
-
sessionStorage.removeItem(SESSION_KEY)
|
55
|
-
} else postMessage2SW('update')
|
56
|
-
navigator.serviceWorker.addEventListener('message', event => {
|
57
|
-
const data = event.data
|
58
|
-
sessionStorage.setItem(SESSION_KEY, data.type)
|
59
|
-
const list = data.list?.filter(url => /\.(js|css)$/.test(url))
|
60
|
-
if (list) {
|
61
|
-
// noinspection JSUnresolvedReference
|
62
|
-
if (window.Pjax?.isSupported?.())
|
63
|
-
list.forEach(pjaxUpdate)
|
64
|
-
location.reload()
|
65
|
-
} else {
|
66
|
-
const newVersion = data.new, oldVersion = data.old
|
67
|
-
if (oldVersion && (newVersion.global !== oldVersion.global || newVersion.local !== oldVersion.local)) {
|
68
|
-
onSuccess()
|
69
|
-
}
|
70
|
-
sessionStorage.removeItem(SESSION_KEY)
|
71
|
-
}
|
72
|
-
})
|
73
|
-
})
|
package/update.json
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"global":0,"info":[{"version":84,"change":[{"flag":"end","value":"/404.html"}]},{"version":83},{"version":82},{"version":81},{"version":80},{"version":79},{"version":78},{"version":77},{"version":76},{"version":75},{"version":74},{"version":73},{"version":72},{"version":71},{"version":70},{"version":69},{"version":68},{"version":67},{"version":66},{"version":65},{"version":64},{"version":63},{"version":62,"change":[{"flag":"end","value":"/index.css"}]},{"version":61},{"version":60},{"version":59},{"version":58},{"version":57},{"version":56},{"version":55},{"version":54},{"version":53},{"version":52},{"version":51},{"version":50},{"version":49},{"version":48},{"version":47},{"version":46},{"version":45},{"version":44},{"version":43},{"version":42},{"version":41},{"version":40},{"version":39},{"version":38},{"version":37},{"version":36},{"version":35},{"version":34},{"version":33},{"version":32},{"version":31},{"version":30},{"version":29},{"version":28},{"version":27},{"version":26},{"version":25}]}
|