LiuShen / 通过cloudflare Worker创建github api中间件
0 polubień
0 forków
1 plików
Ostatnio aktywne
通过cloudflare Worker创建github api中间件,在隐藏token的情况下获取仓库提交信息
1 | /** |
2 | * Welcome to Cloudflare Workers! This is your first worker. |
3 | * |
4 | * - Run "npm run dev" in your terminal to start a development server |
5 | * - Open a browser tab at http://localhost:8787/ to see your worker in action |
6 | * - Run "npm run deploy" to publish your worker |
7 | * |
8 | * Learn more at https://developers.cloudflare.com/workers/ |
9 | */ |
LiuShen / artalk实现前端上传图片
1 polubień
0 forków
1 plików
Ostatnio aktywne
hexo-theme-butterfly中,artalk实现前端上传图片,不使用upgit(不会QAQ,如果有谁会请联系我呜呜呜)
1 | // 请使用该文件替换“[root]\themes\butterfly\layout\includes\third-party\comments\artalk.pug” |
2 | - const { server, site, option } = theme.artalk |
3 | - const { use, lazyload } = theme.comments |
4 | |
5 | script. |
6 | (() => { |
7 | let artalkItem = null |
8 | const option = !{JSON.stringify(option)} |
9 | const isShuoshuo = GLOBAL_CONFIG_SITE.pageType === 'shuoshuo' |
LiuShen / github action构建hexo源码
0 polubień
0 forków
1 plików
Ostatnio aktywne
github action构建hexo源码,yml文件分享
1 | name: 自动部署 |
2 | |
3 | on: |
4 | push: |
5 | branches: |
6 | - main |
7 | |
8 | release: |
9 | types: |
10 | - published |
LiuShen / 友链friend.json生成新方式
0 polubień
0 forków
1 plików
Ostatnio aktywne
通过HEXO内置Generator生成,更加快捷,不需要json包
1 | const blacklist = ["友站名称1", "友站名称2", "友站名称3"]; |
2 | const path = "friend.json"; |
3 | |
4 | function genFriendJSON(locals) { |
5 | var friends = []; |
6 | var data = locals.data.link; |
7 | data.forEach((entry, index) => { |
8 | let lastIndex = 2; |
9 | if (index < lastIndex) { |
10 | const filteredLinkList = entry.link_list.filter( |
LiuShen / Hexo-butterfly聊天记录外挂标签
1 polubień
0 forków
2 plików
Ostatnio aktywne
基于鹊楠改进的Hexo-butterfly聊天记录外挂标签
1 | /** |
2 | * Chat |
3 | */ |
4 | |
5 | "use strict"; |
6 | |
7 | // 预定义头像数组 |
8 | const avatars = [ |
9 | "https://i.p-i.vip/30/20240920-66ed9a608c2cf.png", |
10 | "https://i.p-i.vip/30/20240920-66ed9b0655cba.png", |
Nowsze
Starsze