chore: 清除仓库中的开发者个人信息
面向公开仓库做一次脱敏,去掉与开发者个人绑定的域名、内网入口与环境路径。 - db.php:默认数据里的个人地址全部换成通用示例(原先是开发者的私有基础设施: 带路径令牌的面板地址、若干内网服务入口,以及暴露学校身份的校内系统如教务 / BB / VPN / 财务)。 分组结构(2 个网格板块 + 3 个合集板块)与条目数量保持不变,新装仍是一份可用的示例导航。 - README.md:去掉「复刻某站风格」的表述与示例路径里的个人域名;部署步骤改为通用写法 (不再指向仓库外的私有脚本目录),并补上 Nginx 的 /data/ 拦截规则。 顺带修正一处与实际不符的描述:原文档称「页面缓存插件无需任何特殊配置」,实测该插件读不到 FastCGI 的 Cache-Control,实际是靠根 .htaccess 在请求侧注入 X_CACHE=1 才旁路掉的。 - .htaccess / config.php / functions.php / assets/css/style.css:注释里的个人域名改为通用表述。 - .gitignore:去掉开发者本机目录约定。 - LICENSE:版权署名由个人昵称改为 The SimpleNav Authors。 默认数据只在空库时写入,线上现有数据不受影响;本次无运行期行为变更。 验证:本地 php -l 全过;e2e 93/93;部署(双版本 php -l + 静态断言 + 文件哈希逐字节一致 + HTTP 冒烟 + 缓存旁路自检 + Web 身份诊断)全绿,退出码 0。
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* 简航 SimpleNav —— 数据库(PDO SQLite)
|
||||
* 首次访问自动建表并写入默认数据(含从 n.yangyq.net 迁移的常用/工具/合集链接)。
|
||||
* 首次访问自动建表并写入一份通用的默认数据(示例链接,可在后台随意增删)。
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
@@ -140,46 +140,46 @@ function seed_groups_and_sites(PDO $pdo): void
|
||||
// 板块定义: [名称, 类型, 排序, [ [名称, 网址], ... ] ]
|
||||
$data = [
|
||||
['常用', 'grid', 1, [
|
||||
['海大', 'http://www.ouc.edu.cn/'],
|
||||
['GitHub', 'https://github.com/'],
|
||||
['阿里云', 'https://www.aliyun.com/'],
|
||||
['知乎', 'https://www.zhihu.com/'],
|
||||
['天翼云盘', 'https://cloud.189.cn/'],
|
||||
['快科技', 'http://www.mydrivers.com/'],
|
||||
['轻舟', 'https://yangjh.net/'],
|
||||
['老杨', 'https://yangyq.net/'],
|
||||
['豆瓣', 'https://www.douban.com/'],
|
||||
['少数派', 'https://sspai.com/'],
|
||||
['红围脖', 'https://hongbowei.com/'],
|
||||
]],
|
||||
['工具', 'grid', 2, [
|
||||
['宝塔', 'https://bt.yangyq.net:8868/44d5b346'],
|
||||
['海大VPN', 'https://otrust.ouc.edu.cn'],
|
||||
['BB系统', 'https://wlkc.ouc.edu.cn/'],
|
||||
['教务系统', 'http://jwgl.ouc.edu.cn/'],
|
||||
['信息门户', 'http://my.ouc.edu.cn/'],
|
||||
['信息学部', 'http://it.ouc.edu.cn/'],
|
||||
['宝塔面板', 'https://www.bt.cn/'],
|
||||
['阿里云盘', 'https://www.alipan.com/'],
|
||||
['网易云课堂', 'https://study.163.com/'],
|
||||
['学堂在线', 'https://www.xuetangx.com/'],
|
||||
['CSDN', 'https://www.csdn.net/'],
|
||||
['稀土掘金', 'https://juejin.cn/'],
|
||||
['淘宝', 'https://www.taobao.com/'],
|
||||
['京东', 'https://www.jd.com/'],
|
||||
['日历', 'https://nas.yangyq.net/calendar'],
|
||||
['办公Nas', 'https://nas.yangyq.net/'],
|
||||
['家庭Nas', 'https://home.yangyq.net/'],
|
||||
['Git', 'https://git.yangyq.net/'],
|
||||
['网盘', 'https://nas.yangyq.net/drive/'],
|
||||
['电影', 'https://movie.yangyq.net/'],
|
||||
['相册', 'https://home.yangyq.net/photo'],
|
||||
['文件', 'https://nas.yangyq.net/file'],
|
||||
['腾讯文档', 'https://docs.qq.com/'],
|
||||
['石墨文档', 'https://shimo.im/'],
|
||||
['飞书', 'https://www.feishu.cn/'],
|
||||
['Gitee', 'https://gitee.com/'],
|
||||
['百度网盘', 'https://pan.baidu.com/'],
|
||||
['豆瓣电影', 'https://movie.douban.com/'],
|
||||
['花瓣网', 'https://huaban.com/'],
|
||||
['蓝奏云', 'https://www.lanzou.com/'],
|
||||
['bilibili', 'https://www.bilibili.com/'],
|
||||
['优酷', 'https://www.youku.com/'],
|
||||
['爱奇艺', 'https://www.iqiyi.com/'],
|
||||
['腾讯视频', 'https://v.qq.com/'],
|
||||
['芒果TV', 'https://www.mgtv.com/'],
|
||||
['Draw.IO', 'https://draw.yangyq.net'],
|
||||
['draw.io', 'https://app.diagrams.net/'],
|
||||
['稿定PS', 'https://ps.gaoding.com/'],
|
||||
['密码生成', 'https://n.yangyq.net/password/'],
|
||||
['Bitwarden', 'https://bitwarden.com/'],
|
||||
['PDF工具', 'https://pdf.wps.cn/'],
|
||||
['微信读书', 'https://weread.qq.com/'],
|
||||
['高德地图', 'https://gaode.com/'],
|
||||
['百度地图', 'https://map.baidu.com/'],
|
||||
['建设银行', 'http://ccb.com/cn/home/index.html'],
|
||||
['海大财务', 'http://hdcw.ouc.edu.cn'],
|
||||
['支付宝', 'https://www.alipay.com/'],
|
||||
['MOOC', 'https://www.icourse163.org/'],
|
||||
]],
|
||||
['常用软件', 'tabs', 10, [
|
||||
|
||||
Reference in New Issue
Block a user