diff --git a/neutrino-proxy-vuepress/docs/.vuepress/config.js b/neutrino-proxy-vuepress/docs/.vuepress/config.js index fcf55298..1024fd30 100644 --- a/neutrino-proxy-vuepress/docs/.vuepress/config.js +++ b/neutrino-proxy-vuepress/docs/.vuepress/config.js @@ -4,236 +4,243 @@ const htmlModules = require('./config/htmlModules.js'); module.exports = { - theme: 'vdoing', // 使用依赖包主题 - // theme: require.resolve('../../vdoing'), // 使用本地主题 (先将vdoing主题文件下载到本地:https://github.com/xugaoyi/vuepress-theme-vdoing) + theme: 'vdoing', // 使用依赖包主题 + // theme: require.resolve('../../vdoing'), // 使用本地主题 (先将vdoing主题文件下载到本地:https://github.com/xugaoyi/vuepress-theme-vdoing) - title: "中微子代理", - description: '一个基于VuePress的 知识管理&博客 主题', - // base: '/', // 默认'/'。如果你想将你的网站部署到如 https://foo.github.io/bar/,那么 base 应该被设置成 "/bar/",(否则页面将失去样式等文件) - head: [ // 注入到页面
中的标签,格式[tagName, { attrName: attrValue }, innerHTML?] - ['link', { rel: 'icon', href: '/img/favicon.ico' }], //favicons,资源放在public文件夹 - ['meta', { name: 'keywords', content: 'vuepress,theme,blog,vdoing' }], - ['meta', { name: 'theme-color', content: '#11a8cd' }], // 移动浏览器主题颜色 + title: "中微子代理", + description: '一个基于 netty 的、开源的 java 内网穿透项目', + // base: '/', // 默认'/'。如果你想将你的网站部署到如 https://foo.github.io/bar/,那么 base 应该被设置成 "/bar/",(否则页面将失去样式等文件) + head: [ // 注入到页面 中的标签,格式[tagName, { attrName: attrValue }, innerHTML?] + ['link', {rel: 'icon', href: '/img/favicon.ico'}], //favicons,资源放在public文件夹 + ['meta', {name: 'keywords', content: 'vuepress,theme,blog,vdoing'}], + ['meta', {name: 'theme-color', content: '#11a8cd'}], // 移动浏览器主题颜色 - ['meta', { name: 'wwads-cn-verify', content: '6c4b761a28b734fe93831e3fb400ce87' }], // 广告相关,你可以去掉 - ['script', { src: 'https://cdn.wwads.cn/js/makemoney.js', type: 'text/javascript' }], // 广告相关,你可以去掉 - ], + // ['meta', { name: 'wwads-cn-verify', content: '6c4b761a28b734fe93831e3fb400ce87' }], // 广告相关,你可以去掉 + // ['script', { src: 'https://cdn.wwads.cn/js/makemoney.js', type: 'text/javascript' }], // 广告相关,你可以去掉 + ], - // 主题配置 - themeConfig: { - // nav: [ - // { text: '首页', link: '/' }, - // { - // text: '指南', link: '/pages/a2f161/', items: [ - // { text: '主题初衷与诞生', link: '/pages/52d5c3/' }, - // { text: '介绍', link: '/pages/a2f161/' }, - // { text: '快速上手', link: '/pages/793dcb/' }, - // { text: '目录结构', link: '/pages/2f674a/' }, - // { text: '核心配置和约定', link: '/pages/33d574/' }, - // { text: '自动生成front matter', link: '/pages/088c16/' }, - // { text: 'Markdown 容器', link: '/pages/d0d7eb/' }, - // { text: 'Markdown 中使用组件', link: '/pages/197691/' }, - // { - // text: '相关文章', items: [ - // { text: '使目录栏支持h2~h6标题', link: '/pages/8dfab5/' }, - // { text: '如何让你的笔记更有表现力', link: '/pages/dd027d/' }, - // { text: '批量操作front matter工具', link: '/pages/2b8e22/' }, - // { text: '部署', link: '/pages/0fc1d2/' }, - // { text: '关于写文章和H1标题', link: '/pages/9ae0bd/' }, - // { text: '关于博客搭建与管理', link: '/pages/26997d/' }, - // { text: '在线编辑和新增文章的方法', link: '/pages/c5a54d/' }, - // ] - // } - // ] - // }, - // { - // text: '配置', link: '/pages/a20ce8/', items: [ - // { text: '主题配置', link: '/pages/a20ce8/' }, - // { text: '首页配置', link: '/pages/f14bdb/' }, - // { text: 'front matter配置', link: '/pages/3216b0/' }, - // { text: '目录页配置', link: '/pages/54651a/' }, - // { text: '添加摘要', link: '/pages/1cc523/' }, - // { text: '修改主题颜色和样式', link: '/pages/f51918/' }, - // { text: '评论栏', link: '/pages/ce175c/' }, - // ] - // }, - // { text: '资源', link: '/pages/db78e2/' }, - // { text: '案例', link: '/pages/5d571c/' }, - // { text: '问答', link: '/pages/9cc27d/' }, - // { text: '赞助', link: '/pages/1b12ed/' }, - // ], - nav: [ - { text: '首页', link: '/' }, - { - text: '使用教程', link: '/pages/a2f161/', items: [ - { text: '主题初衷与诞生', link: '/pages/52d5c3/' }, - { text: '介绍', link: '/pages/a2f161/' }, - { text: '快速上手', link: '/pages/793dcb/' }, - { text: '目录结构', link: '/pages/2f674a/' }, - { text: '核心配置和约定', link: '/pages/33d574/' }, - { text: '自动生成front matter', link: '/pages/088c16/' }, - { text: 'Markdown 容器', link: '/pages/d0d7eb/' }, - { text: 'Markdown 中使用组件', link: '/pages/197691/' } + // 主题配置 + themeConfig: { + // nav: [ + // { text: '首页', link: '/' }, + // { + // text: '指南', link: '/pages/a2f161/', items: [ + // { text: '主题初衷与诞生', link: '/pages/52d5c3/' }, + // { text: '介绍', link: '/pages/a2f161/' }, + // { text: '快速上手', link: '/pages/793dcb/' }, + // { text: '目录结构', link: '/pages/2f674a/' }, + // { text: '核心配置和约定', link: '/pages/33d574/' }, + // { text: '自动生成front matter', link: '/pages/088c16/' }, + // { text: 'Markdown 容器', link: '/pages/d0d7eb/' }, + // { text: 'Markdown 中使用组件', link: '/pages/197691/' }, + // { + // text: '相关文章', items: [ + // { text: '使目录栏支持h2~h6标题', link: '/pages/8dfab5/' }, + // { text: '如何让你的笔记更有表现力', link: '/pages/dd027d/' }, + // { text: '批量操作front matter工具', link: '/pages/2b8e22/' }, + // { text: '部署', link: '/pages/0fc1d2/' }, + // { text: '关于写文章和H1标题', link: '/pages/9ae0bd/' }, + // { text: '关于博客搭建与管理', link: '/pages/26997d/' }, + // { text: '在线编辑和新增文章的方法', link: '/pages/c5a54d/' }, + // ] + // } + // ] + // }, + // { + // text: '配置', link: '/pages/a20ce8/', items: [ + // { text: '主题配置', link: '/pages/a20ce8/' }, + // { text: '首页配置', link: '/pages/f14bdb/' }, + // { text: 'front matter配置', link: '/pages/3216b0/' }, + // { text: '目录页配置', link: '/pages/54651a/' }, + // { text: '添加摘要', link: '/pages/1cc523/' }, + // { text: '修改主题颜色和样式', link: '/pages/f51918/' }, + // { text: '评论栏', link: '/pages/ce175c/' }, + // ] + // }, + // { text: '资源', link: '/pages/db78e2/' }, + // { text: '案例', link: '/pages/5d571c/' }, + // { text: '问答', link: '/pages/9cc27d/' }, + // { text: '赞助', link: '/pages/1b12ed/' }, + // ], + nav: [ + {text: '首页', link: '/'}, + { + text: '快速使用', link: '/pages/793dcb/', items: [ + {text: '快速上手', link: '/pages/793dcb/'}, + {text: '目录结构', link: '/pages/2f674a/'}, + {text: 'Markdown 容器', link: '/pages/d0d7eb/'}, + {text: 'Markdown 中使用组件', link: '/pages/197691/'}, + { + text: '相关文章', items: [ + {text: '使目录栏支持h2~h6标题', link: '/pages/8dfab5/'}, + {text: '如何让你的笔记更有表现力', link: '/pages/dd027d/'}, + {text: '批量操作front matter工具', link: '/pages/2b8e22/'}, + {text: '部署', link: '/pages/0fc1d2/'}, + {text: '关于写文章和H1标题', link: '/pages/9ae0bd/'}, + {text: '关于博客搭建与管理', link: '/pages/26997d/'}, + {text: '在线编辑和新增文章的方法', link: '/pages/c5a54d/'}, + ] + } + ] + }, + { + text: '常见问题', link: '/pages/a20ce8/', items: [ + {text: '主题配置', link: '/pages/a20ce8/'}, + {text: '首页配置', link: '/pages/f14bdb/'}, + {text: 'front matter配置', link: '/pages/3216b0/'}, + {text: '目录页配置', link: '/pages/54651a/'}, + {text: '添加摘要', link: '/pages/1cc523/'}, + {text: '修改主题颜色和样式', link: '/pages/f51918/'}, + {text: '评论栏', link: '/pages/ce175c/'}, + ] + }, + {text: '演示', link: '/pages/db78e2/'}, + {text: '案例', link: '/pages/5d571c/'}, + {text: '最近更新', link: '/pages/9cc27d/'}, + {text: '关于我们', link: '/pages/1b12ed/'}, + ], + sidebarDepth: 2, // 侧边栏显示深度,默认1,最大2(显示到h3标题) + logo: '/img/logo.png', // 导航栏logo + repo: 'aoshiguchen/neutrino-proxy', // 导航栏右侧生成Github链接 + // repo: 'https://gitee.com/dromara/neutrino-proxy', // 导航栏右侧生成Github链接 + searchMaxSuggestions: 10, // 搜索结果显示最大数 + lastUpdated: '上次更新', // 更新的时间,及前缀文字 string | boolean (取值为git提交时间) + + // docsDir: 'docs', // 编辑的文件夹 + // editLinks: true, // 编辑链接 + // editLinkText: '编辑', + + // 以下配置是Vdoing主题改动的和新增的配置 + sidebar: {mode: 'structuring', collapsable: false}, // 侧边栏 'structuring' | { mode: 'structuring', collapsable: Boolean} | 'auto' | 自定义 温馨提示:目录页数据依赖于结构化的侧边栏数据,如果你不设置为'structuring',将无法使用目录页 + + // sidebarOpen: false, // 初始状态是否打开侧边栏,默认true + updateBar: { // 最近更新栏 + showToArticle: false, // 显示到文章页底部,默认true + // moreArticle: '/archives' // “更多文章”跳转的页面,默认'/archives' + }, + // titleBadge: false, // 文章标题前的图标是否显示,默认true + // titleBadgeIcons: [ // 文章标题前图标的地址,默认主题内置图标 + // '图标地址1', + // '图标地址2' + // ], + + pageStyle: 'line', // 页面风格,可选值:'card'卡片 | 'line' 线(未设置bodyBgImg时才生效), 默认'card'。 说明:card时背景显示灰色衬托出卡片样式,line时背景显示纯色,并且部分模块带线条边框 + + // contentBgStyle: 1, + + category: false, // 是否打开分类功能,默认true。 如打开,会做的事情有:1. 自动生成的frontmatter包含分类字段 2.页面中显示与分类相关的信息和模块 3.自动生成分类页面(在@pages文件夹)。如关闭,则反之。 + tag: false, // 是否打开标签功能,默认true。 如打开,会做的事情有:1. 自动生成的frontmatter包含标签字段 2.页面中显示与标签相关的信息和模块 3.自动生成标签页面(在@pages文件夹)。如关闭,则反之。 + // archive: false, // 是否打开归档功能,默认true。 如打开,会做的事情有:1.自动生成归档页面(在@pages文件夹)。如关闭,则反之。 + + author: { // 文章默认的作者信息,可在md文件中单独配置此信息 String | {name: String, href: String} + name: 'Evan Xu', // 必需 + href: 'https://github.com/xugaoyi' // 可选的 + }, + social: { // 社交图标,显示于博主信息栏和页脚栏 + // iconfontCssFile: '//at.alicdn.com/t/font_1678482_u4nrnp8xp6g.css', // 可选,阿里图标库在线css文件地址,对于主题没有的图标可自由添加 + icons: [ + { + iconClass: 'icon-youjian', + title: '发邮件', + link: 'mailto:aoshiguchen@dromara.org' + }, + { + iconClass: 'icon-gitee', + title: 'Gitee', + link: 'https://gitee.com/dromara/neutrino-proxy' + }, + { + iconClass: 'icon-github', + title: 'Github', + link: 'https://github.com/aoshiguchen/neutrino-proxy' + } + ] + }, + footer: { // 页脚信息 + createYear: 2023, // 博客创建年份 + copyrightInfo: '傲世孤尘 | MIT License', // 博客版权信息,支持a标签 + }, + htmlModules, + }, + + // 插件 + plugins: [ + // [require('./plugins/love-me'), { // 鼠标点击爱心特效 + // color: '#11a8cd', // 爱心颜色,默认随机色 + // excludeClassName: 'theme-vdoing-content' // 要排除元素的class, 默认空'' + // }], + + ['fulltext-search'], // 全文搜索 + + // ['thirdparty-search', { // 可以添加第三方搜索链接的搜索框(原官方搜索框的参数仍可用) + // thirdparty: [ // 可选,默认 [] + // { + // title: '在GitHub中搜索', + // frontUrl: 'https://github.com/search?q=', // 搜索链接的前面部分 + // behindUrl: '' // 搜索链接的后面部分,可选,默认 '' + // }, + // { + // title: '在npm中搜索', + // frontUrl: 'https://www.npmjs.com/search?q=', + // }, + // { + // title: '在Bing中搜索', + // frontUrl: 'https://cn.bing.com/search?q=' + // } + // ] + // }], + + [ + 'vuepress-plugin-baidu-tongji', // 百度统计 + { + hm: baiduCode || '01293bffa6c3962016c08ba685c79d78' + } + ], + + ['one-click-copy', { // 代码块复制按钮 + copySelector: ['div[class*="language-"] pre', 'div[class*="aside-code"] aside'], // String or Array + copyMessage: '复制成功', // default is 'Copy successfully and then paste it for use.' + duration: 1000, // prompt message display time. + showInMobile: false // whether to display on the mobile side, default: false. + }], + ['demo-block', { // demo演示模块 https://github.com/xiguaxigua/vuepress-plugin-demo-block + settings: { + // jsLib: ['http://xxx'], // 在线示例(jsfiddle, codepen)中的js依赖 + // cssLib: ['http://xxx'], // 在线示例中的css依赖 + // vue: 'https://fastly.jsdelivr.net/npm/vue/dist/vue.min.js', // 在线示例中的vue依赖 + jsfiddle: false, // 是否显示 jsfiddle 链接 + codepen: true, // 是否显示 codepen 链接 + horizontal: false // 是否展示为横向样式 + } + }], + [ + 'vuepress-plugin-zooming', // 放大图片 + { + selector: '.theme-vdoing-content img:not(.no-zoom)', + options: { + bgColor: 'rgba(0,0,0,0.6)' + }, + }, + ], + [ + '@vuepress/last-updated', // "上次更新"时间格式 + { + transformer: (timestamp, lang) => { + const dayjs = require('dayjs') // https://day.js.org/ + return dayjs(timestamp).format('YYYY/MM/DD, HH:mm:ss') + }, + } ] - }, - { - text: '常见问题', link: '/pages/a20ce8/', items: [ - { text: '主题配置', link: '/pages/a20ce8/' }, - { text: '首页配置', link: '/pages/f14bdb/' }, - { text: 'front matter配置', link: '/pages/3216b0/' }, - { text: '目录页配置', link: '/pages/54651a/' }, - { text: '添加摘要', link: '/pages/1cc523/' }, - { text: '修改主题颜色和样式', link: '/pages/f51918/' }, - { text: '评论栏', link: '/pages/ce175c/' }, - ] - }, - { text: '演示', link: '/pages/db78e2/' }, - { text: '案例', link: '/pages/5d571c/' }, - { text: '最近更新', link: '/pages/9cc27d/' }, - { text: '仓库地址', link: '/pages/1b12ed/' }, - ], - sidebarDepth: 2, // 侧边栏显示深度,默认1,最大2(显示到h3标题) - logo: '/img/logo.png', // 导航栏logo - repo: 'xugaoyi/vuepress-theme-vdoing', // 导航栏右侧生成Github链接 - // repo: 'https://gitee.com/dromara/neutrino-proxy', // 导航栏右侧生成Github链接 - searchMaxSuggestions: 10, // 搜索结果显示最大数 - lastUpdated: '上次更新', // 更新的时间,及前缀文字 string | boolean (取值为git提交时间) - - // docsDir: 'docs', // 编辑的文件夹 - // editLinks: true, // 编辑链接 - // editLinkText: '编辑', - - // 以下配置是Vdoing主题改动的和新增的配置 - sidebar: { mode: 'structuring', collapsable: false }, // 侧边栏 'structuring' | { mode: 'structuring', collapsable: Boolean} | 'auto' | 自定义 温馨提示:目录页数据依赖于结构化的侧边栏数据,如果你不设置为'structuring',将无法使用目录页 - - // sidebarOpen: false, // 初始状态是否打开侧边栏,默认true - updateBar: { // 最近更新栏 - showToArticle: false, // 显示到文章页底部,默认true - // moreArticle: '/archives' // “更多文章”跳转的页面,默认'/archives' - }, - // titleBadge: false, // 文章标题前的图标是否显示,默认true - // titleBadgeIcons: [ // 文章标题前图标的地址,默认主题内置图标 - // '图标地址1', - // '图标地址2' - // ], - - pageStyle: 'line', // 页面风格,可选值:'card'卡片 | 'line' 线(未设置bodyBgImg时才生效), 默认'card'。 说明:card时背景显示灰色衬托出卡片样式,line时背景显示纯色,并且部分模块带线条边框 - - // contentBgStyle: 1, - - category: false, // 是否打开分类功能,默认true。 如打开,会做的事情有:1. 自动生成的frontmatter包含分类字段 2.页面中显示与分类相关的信息和模块 3.自动生成分类页面(在@pages文件夹)。如关闭,则反之。 - tag: false, // 是否打开标签功能,默认true。 如打开,会做的事情有:1. 自动生成的frontmatter包含标签字段 2.页面中显示与标签相关的信息和模块 3.自动生成标签页面(在@pages文件夹)。如关闭,则反之。 - // archive: false, // 是否打开归档功能,默认true。 如打开,会做的事情有:1.自动生成归档页面(在@pages文件夹)。如关闭,则反之。 - - author: { // 文章默认的作者信息,可在md文件中单独配置此信息 String | {name: String, href: String} - name: 'Evan Xu', // 必需 - href: 'https://github.com/xugaoyi' // 可选的 - }, - social: { // 社交图标,显示于博主信息栏和页脚栏 - // iconfontCssFile: '//at.alicdn.com/t/font_1678482_u4nrnp8xp6g.css', // 可选,阿里图标库在线css文件地址,对于主题没有的图标可自由添加 - icons: [ - { - iconClass: 'icon-youjian', - title: '发邮件', - link: 'mailto:aoshiguchen@dromara.org' - }, - { - iconClass: 'icon-gitee', - title: 'Gitee', - link: 'https://gitee.com/dromara/neutrino-proxy' - }, - { - iconClass: 'icon-github', - title: 'Github', - link: 'https://github.com/aoshiguchen/neutrino-proxy' - } - ] - }, - footer: { // 页脚信息 - createYear: 2023, // 博客创建年份 - copyrightInfo: '傲世孤尘 | MIT License', // 博客版权信息,支持a标签 - }, - htmlModules, - }, - - // 插件 - plugins: [ - // [require('./plugins/love-me'), { // 鼠标点击爱心特效 - // color: '#11a8cd', // 爱心颜色,默认随机色 - // excludeClassName: 'theme-vdoing-content' // 要排除元素的class, 默认空'' - // }], - - ['fulltext-search'], // 全文搜索 - - // ['thirdparty-search', { // 可以添加第三方搜索链接的搜索框(原官方搜索框的参数仍可用) - // thirdparty: [ // 可选,默认 [] - // { - // title: '在GitHub中搜索', - // frontUrl: 'https://github.com/search?q=', // 搜索链接的前面部分 - // behindUrl: '' // 搜索链接的后面部分,可选,默认 '' - // }, - // { - // title: '在npm中搜索', - // frontUrl: 'https://www.npmjs.com/search?q=', - // }, - // { - // title: '在Bing中搜索', - // frontUrl: 'https://cn.bing.com/search?q=' - // } - // ] - // }], - - [ - 'vuepress-plugin-baidu-tongji', // 百度统计 - { - hm: baiduCode || '01293bffa6c3962016c08ba685c79d78' - } ], - ['one-click-copy', { // 代码块复制按钮 - copySelector: ['div[class*="language-"] pre', 'div[class*="aside-code"] aside'], // String or Array - copyMessage: '复制成功', // default is 'Copy successfully and then paste it for use.' - duration: 1000, // prompt message display time. - showInMobile: false // whether to display on the mobile side, default: false. - }], - ['demo-block', { // demo演示模块 https://github.com/xiguaxigua/vuepress-plugin-demo-block - settings: { - // jsLib: ['http://xxx'], // 在线示例(jsfiddle, codepen)中的js依赖 - // cssLib: ['http://xxx'], // 在线示例中的css依赖 - // vue: 'https://fastly.jsdelivr.net/npm/vue/dist/vue.min.js', // 在线示例中的vue依赖 - jsfiddle: false, // 是否显示 jsfiddle 链接 - codepen: true, // 是否显示 codepen 链接 - horizontal: false // 是否展示为横向样式 - } - }], - [ - 'vuepress-plugin-zooming', // 放大图片 - { - selector: '.theme-vdoing-content img:not(.no-zoom)', - options: { - bgColor: 'rgba(0,0,0,0.6)' - }, - }, - ], - [ - '@vuepress/last-updated', // "上次更新"时间格式 - { - transformer: (timestamp, lang) => { - const dayjs = require('dayjs') // https://day.js.org/ - return dayjs(timestamp).format('YYYY/MM/DD, HH:mm:ss') - }, - } + markdown: { + // lineNumbers: true, + extractHeaders: ['h2', 'h3', 'h4', 'h5', 'h6'], // 提取标题到侧边栏的级别,默认['h2', 'h3'] + }, + + // 监听文件变化并重新构建 + extraWatchFiles: [ + '.vuepress/config.js', + '.vuepress/config/htmlModules.js', ] - ], - - markdown: { - // lineNumbers: true, - extractHeaders: ['h2', 'h3', 'h4', 'h5', 'h6'], // 提取标题到侧边栏的级别,默认['h2', 'h3'] - }, - - // 监听文件变化并重新构建 - extraWatchFiles: [ - '.vuepress/config.js', - '.vuepress/config/htmlModules.js', - ] } diff --git a/neutrino-proxy-vuepress/docs/.vuepress/enhanceApp.js b/neutrino-proxy-vuepress/docs/.vuepress/enhanceApp.js deleted file mode 100644 index 522ba0da..00000000 --- a/neutrino-proxy-vuepress/docs/.vuepress/enhanceApp.js +++ /dev/null @@ -1,59 +0,0 @@ -/** - * to主题使用者:你可以去掉本文件的所有代码 - */ -export default ({ - Vue, // VuePress 正在使用的 Vue 构造函数 - options, // 附加到根实例的一些选项 - router, // 当前应用的路由实例 - siteData, // 站点元数据 - isServer // 当前应用配置是处于 服务端渲染 还是 客户端 -}) => { - - // 用于监控在路由变化时检查广告拦截器 (to主题使用者:你可以去掉本文件的所有代码) - if (!isServer) { - router.afterEach(() => { - //check if wwads' fire function was blocked after document is ready with 3s timeout (waiting the ad loading) - docReady(function () { - setTimeout(function () { - if (window._AdBlockInit === undefined) { - ABDetected(); - } - }, 3000); - }); - - // 删除事件改为隐藏事件 - setTimeout(() => { - const pageAD = document.querySelector('.page-wwads'); - if (!pageAD) return; - const btnEl = pageAD.querySelector('.wwads-hide'); - if (btnEl) { - btnEl.onclick = () => { - pageAD.style.display = 'none'; - } - } - // 显示广告模块 - if (pageAD.style.display === 'none') { - pageAD.style.display = 'flex'; - } - }, 900); - }) - } -} - - -function ABDetected() { - const h = "
";
- const wwadsEl = document.getElementsByClassName("wwads-cn");
- const wwadsContentEl = document.querySelector('.wwads-content');
- if (wwadsEl[0] && !wwadsContentEl) {
- wwadsEl[0].innerHTML = h;
- }
-};
-
-//check document ready
-function docReady(t) {
- "complete" === document.readyState ||
- "interactive" === document.readyState
- ? setTimeout(t, 1)
- : document.addEventListener("DOMContentLoaded", t);
-}
diff --git a/neutrino-proxy-vuepress/docs/01.使用教程/01.指南/03.快速上手.md b/neutrino-proxy-vuepress/docs/01.使用教程/01.快速上手/03.快速上手.md
similarity index 100%
rename from neutrino-proxy-vuepress/docs/01.使用教程/01.指南/03.快速上手.md
rename to neutrino-proxy-vuepress/docs/01.使用教程/01.快速上手/03.快速上手.md
diff --git a/neutrino-proxy-vuepress/docs/01.使用教程/01.指南/04.目录结构.md b/neutrino-proxy-vuepress/docs/01.使用教程/01.快速上手/04.目录结构.md
similarity index 61%
rename from neutrino-proxy-vuepress/docs/01.使用教程/01.指南/04.目录结构.md
rename to neutrino-proxy-vuepress/docs/01.使用教程/01.快速上手/04.目录结构.md
index 6f70d043..4fc4c24d 100644
--- a/neutrino-proxy-vuepress/docs/01.使用教程/01.指南/04.目录结构.md
+++ b/neutrino-proxy-vuepress/docs/01.使用教程/01.快速上手/04.目录结构.md
@@ -6,28 +6,20 @@ article: false
---
```
-.
-├── .github (可选,GitHub 相关文件)
-│ ├── workflows
-│ │ ├── baiduPush.yml (可选,百度定时自动推送)
-│ │ └── ci.yml (可选,自动部署)
-├── docs (必须,不要修改文件夹名称)
-│ ├── .vuepress (同官方,查看:https://vuepress.vuejs.org/zh/guide/directory-structure.html#目录结构)
-│ ├── @pages (可选,自动生成的文件夹,存放分类页、标签页、归档页)
-│ ├── _posts (可选,专门存放碎片化博客文章的文件夹)
-│ ├── <结构化目录>
-│ └── index.md (首页)
-├── vdoing (可选,本地的vdoing主题)
-├── utils (可选,vdoing主题使用的node工具)
-│ ├── modules
-│ ├── config.yml (可选,批量操作front matter配置)
-│ ├── editFrontmatter.js (可选,批量操作front matter工具)
-├── baiduPush.sh (可选,百度推送命令脚本)
-├── deploy.sh (可选,部署命令脚本)
-│
-└── package.json
-
+├── data.db (sqlite数据库文件。若未配置mysql,默认使用sqlite,项目首次启动会自动初始化sqlite数据库。)
+├── docs (项目相关的一些文档)
+├── ├── Aop.MD (框架层Aop机制、使用说明)
+├── └── Channel.MD (内网穿透实现原理、代理实现流程说明)
+├── lib (项目开启了将自动生成的类保存到本地后,运行过程中动态生成的类自动保存到此处,方便学习、调试)
+├── neutrino-core (一套手写的基于netty的框架,相当于简易版的SpringBoot + Mybatis + xxljob,计划后期分离为单独开源项目维护)
+├── neutrino-proxy-admin (基于vue-element-admin开发的一个管理系统,用于可视化操作端口映射、代理数据实时监控)
+├── neutrino-proxy-client (基于netty的代理客户端,用于和服务端交互、转发内网数据)
+├── neutrino-proxy-core (代理相关的公共代码(协议、常量))
+├── neutrino-proxy-server (基于netty的代理服务端,用于和客户段交互,将客户端转发的内网数据转发至外网端口)
+└── todolist.MD (近期的开发计划)
```
+
+
::: tip 提示
为了方便您更快的学习和使用本主题,我在代码当中添加了比较多的注释说明。
diff --git a/neutrino-proxy-vuepress/docs/01.使用教程/01.指南/07.Markdown 容器.md b/neutrino-proxy-vuepress/docs/01.使用教程/01.快速上手/07.Markdown 容器.md
similarity index 100%
rename from neutrino-proxy-vuepress/docs/01.使用教程/01.指南/07.Markdown 容器.md
rename to neutrino-proxy-vuepress/docs/01.使用教程/01.快速上手/07.Markdown 容器.md
diff --git a/neutrino-proxy-vuepress/docs/01.使用教程/01.指南/08.Markdown 中使用组件.md b/neutrino-proxy-vuepress/docs/01.使用教程/01.快速上手/08.Markdown 中使用组件.md
similarity index 100%
rename from neutrino-proxy-vuepress/docs/01.使用教程/01.指南/08.Markdown 中使用组件.md
rename to neutrino-proxy-vuepress/docs/01.使用教程/01.快速上手/08.Markdown 中使用组件.md
diff --git a/neutrino-proxy-vuepress/docs/01.使用教程/01.指南/01.主题初衷与诞生.md b/neutrino-proxy-vuepress/docs/01.使用教程/01.指南/01.主题初衷与诞生.md
deleted file mode 100644
index 63170032..00000000
--- a/neutrino-proxy-vuepress/docs/01.使用教程/01.指南/01.主题初衷与诞生.md
+++ /dev/null
@@ -1,39 +0,0 @@
----
-title: 主题初衷与诞生
-date: 2020-05-11 13:59:38
-permalink: /pages/52d5c3
-article: false
----
-
-这个主题的初衷是打造一个好用的、面向程序员的`知识管理工具`。
-
-对于程序员来说,繁杂的知识体系难免会有遗忘的地方。如果有一个方便好用的知识管理工具,可以帮助我们很好的管理知识,并能够快速地把遗忘的知识点找回来。
-
-## Markdown
-最初接触[Markdown](https://xugaoyi.com/pages/ad247c4332211551/)的时候,我就被它简洁的语法干净的文本结构吸引住,它的代码块和兼容`html`标签的能力更是让我爱上它,很高兴找到了一个高效记录学习笔记的工具。
-
-## 知识管理
-在一段学习的日子里,我尝试过用`txt`记录笔记、云笔记、`Markdown`笔记,并把`Markdown`文件上传到`github`进行管理,但总感觉还是不够方便...直到我发现了`VuePress`,它似乎可以管理我的学习笔记,并且把站点部署到`github pages`不就是一个在线的云笔记网站了吗
-
-## VuePress
-[VuePress](https://vuepress.vuejs.org/zh/)是一个 Vue 驱动的静态网站生成器,正是以`Markdown`为中心的项目结构,它简洁至上的理念正合我心。对于我这个对Vue还算有一些了解的前端,迫不及待的想去使用它来搭建一个我的云笔记网站。
-
-## 知识管理&博客主题-Vdoing的诞生
-我以前的一个领导和我们说过一个好的知识管理可以帮助我们提高开发质量和开发效率,下面这张图就是他想传达的,我表示赞同:
-
-
-什么是一个好用的知识管理工具呢?其实我也在不断的寻找和思考中。不过我觉得它至少要结构清晰、管理方便,在查找知识点的过程中可以快速的找到,正像上图所说的要在15秒内找到一个知识点,在添加内容的时候可以很方便的添加,并且保证结构清晰。
-
-VuePress的官方默认主题是专门为写文档而生的,和我心目中的知识库有一些差距,比如在满足结构清晰这点上,每添加一个内容就得手动的添加侧边栏数据,还有在满足15秒内找到一个知识点上还是不够好,因此我觉得需要做一些改造。
-
-在知识管理方面,有三种典型的知识形态:
-
-> * 结构化:看重知识的条理性和实用性,有一定专业背景才能看懂
-> * 碎片化:描述具体的知识点,通俗易懂
-> * 体系化:对某一领域的完整解读,通常是某类知识的专业之作
-
-从这三种知识形态出发,我给主题添加了自动生成结构化侧边栏、目录页、面包屑等等。在满足了结构化之后,写博客应该算得上是一种碎片化的形态,我就给主题添加了分类、标签、归档等等。在满足更方便添加内容上,有了自动生成front matter、批量操作front matter等,更多关于主题的知识从开始使用它去探索吧~~
-
-### 主题名称
-
-Vdoing,中文大概是维度的意思。起这个名的原因,首先是我看过一个视频《尤雨溪创立vue的心路历程》[B站传送](https://b23.tv/xI9ONW) [youtube传送](https://www.youtube.com/watch?v=OrxmtDw4pVI),里面有讲到vue起名的故事,一开始想起的名其实是Seed.js,但是在npm上被占用了,然后发现vue是一个挺酷的一个词,才决定用vue。发现大佬起名可以这么酷。再者,这个主题我想它可以多维度的快速寻找一个知识点,要么就叫维度吧,那英文名就用Vdoing好了...
diff --git a/neutrino-proxy-vuepress/docs/01.使用教程/01.指南/02.介绍.md b/neutrino-proxy-vuepress/docs/01.使用教程/01.指南/02.介绍.md
deleted file mode 100644
index c6ab74d7..00000000
--- a/neutrino-proxy-vuepress/docs/01.使用教程/01.指南/02.介绍.md
+++ /dev/null
@@ -1,73 +0,0 @@
----
-title: 介绍
-date: 2020-05-11 13:54:03
-permalink: /pages/a2f161
-article: false
----
-
-
-Vdoing是[VuePress v1.x](https://vuepress.vuejs.org/zh/)的一个主题,是在[默认主题](https://vuepress.vuejs.org/zh/theme/option-api.html)基础上做的修改和扩展,很多配置仍然沿用[官方配置](https://vuepress.vuejs.org/zh/config/)。使用本主题可以很方便的搭建一个结构化的知识库或博客。
-
-这个主题的初衷是打造一个好用的、面向程序员的知识管理工具:
-[**主题初衷与诞生**。](/pages/52d5c3/)
-
-::: warning 注意
-1. Node请使用`v14.17.x`或以上版本
-2. 在使用本主题前,要求你至少会VuePress v1.x的基本使用和默认主题的基本配置,然后再查看本文档。
-3. 本文档仅负责介绍Vdoing主题对默认主题的扩展部分,更多配置请移步 [VuePress v1.x文档](https://vuepress.vuejs.org/zh/)
-:::
-
-## 特性
-* **知识管理**
-
-包含三种典型的知识管理形态:结构化、碎片化、体系化。轻松打造属于你自己的知识管理平台。
-
-* **结构化**
-
-自动生成侧边栏、目录页、索引页、面包屑等,轻松构建一个结构化知识库。
-
-* **碎片化&个性化**
-
-博客功能提供一种知识的碎片化形态,并提供个性化的博客配置。
-
-* **简洁高效**
-
-以 Markdown 为中心的项目结构,内置自动化工具,以更少的配置完成更多的事。配合多维索引快速定位每个知识点。
-
-* **沉浸式阅读体验**
-
-专为阅读设计的UI,配合多种颜色模式、可关闭的侧边栏和导航栏,带给你一种沉浸式阅读体验。
-
-
-
-## 扩展功能
-相较于默认主题,添加的功能内容主要有:
-
-* 添加方便管理学习笔记和技术文档的`自动生成结构化侧边栏`、`自动生成front matter`、`目录页`、`扩展的搜索框插件`、`面包屑`、`快捷翻页按钮` 等,让你快速定位到任何你想要找的内容。
-
-* 添加博客相关的 `文章信息栏(作者与创建时间)`、`最近更新栏` 、`博主信息栏`、`页脚版权栏`、`分类功能+分类页`、`标签功能+标签页`、`归档页`、`评论插件`等。
-
-* 方便好用的 `Markdown 容器`。
-
-* 首页`文章列表`、`个性化配置`和`样式美化`等。
-
-* 多种颜色模式供用户选择:`跟随系统`、`浅色模式`、`深色模式`、`阅读模式`
-
-* 提高搬砖效率的辅助工具: `批量操作front matter工具`
-
-* ...
-
-## 安利
-* 拥有它你就同时拥有了一个专属你个人的在线知识库(云笔记)、博客、文档库、Demo库、一站式技术搜索工具,内容全部采用Markdown编写,简单高效,各种代码随便贴。
-* 你可以在`.md`文件中写html、css、js、甚至是vue组件代码,[markdown天然的就支持vue组件](https://v1.vuepress.vuejs.org/zh/guide/using-vue.html),魔改页面什么的不要太简单。
-* 相当多的程序员喜欢深色模式,还有的视力也不太好(🤓),我们有浅色、深色和阅读模式,更有跟随系统自动响应深浅色模式功能,想怎么换就怎么换。
-
- > 点击右下角换肤按钮
-* 当你习惯用vdoing主题后,在别处看文档发现是markdown编写的,但所在站点的目录、导航、主题等某个地方用起来不是很爽,你都可以把文档拷贝或把整个专栏下载(如支持下载的话)下来放到vdoing主题,vdoing的自动化工具助你生成一个结构清晰的、拥有目录、页面导航的,而且有多种颜色模式的文档站。让你更专注于内容的学习。
-
- > 参考我博客中的[文档专栏](https://xugaoyi.com/note/typescript-axios/)
-* 如果你想和更多的人分享你的文章,那么这款seo友好的主题是一个很不错的选择,更有为了加快百度收录而定制的每天定时[百度推送程序](https://xugaoyi.com/pages/f44d2f9ad04ab8d3/)。
-
- > 参考我的博客[收录情况](https://www.baidu.com/s?word=site%3Axugaoyi.com)。
-
-别犹豫了,赶快上手吧
diff --git a/neutrino-proxy-vuepress/docs/01.使用教程/01.指南/05.核心配置和约定.md b/neutrino-proxy-vuepress/docs/01.使用教程/01.指南/05.核心配置和约定.md
deleted file mode 100644
index 5c4ed373..00000000
--- a/neutrino-proxy-vuepress/docs/01.使用教程/01.指南/05.核心配置和约定.md
+++ /dev/null
@@ -1,107 +0,0 @@
----
-title: 构建结构化站点的核心配置和约定
-date: 2020-05-12 11:01:21
-permalink: /pages/33d574
-article: false
----
-
-本主题遵循“**约定优于配置**”原则,如果你想构建一个结构化的站点,需要遵循下面这些约定,约定可以为你省去很多配置,轻松拥有一个结构清晰的站点。
-
-
-
-你需要在`config.js`中有如下配置:
-
-```js
-// config.js
-module.exports = {
- themeConfig: {
- sidebar: 'structuring' // 'structuring' | { mode: 'structuring', collapsable: Boolean} | 'auto' | 自定义
- }
-}
-```
-在运行开发服务`npm run dev`或打包`npm run build`时主题内部将会按照目录约定自动生成一个结构化的**侧边栏、目录页、面包屑等**数据。
-
-在源目录(一般是`docs`)文件夹中,除了`.vuepress`、`@pages`、`_posts`、``index.md 或 README.md``之外的**文件夹**将会为其生成对应的侧边栏。生成的顺序取自序号,标题取自文件(夹)名称。
-
-### 命名约定
-
-* 无论是**文件**还是**文件夹**,请为其名称添加上正确的**正整数序号**和`.`,从`00`或`01`开始累计,如`01.文件夹`、`02.文件.md`,我们将会按照序号的顺序来决定其在侧边栏当中的顺序。
-* 同一级别目录别内即使只有一个文件或文件夹也要为其加上序号。
-
-
-::: tip 提示
-
-序号只是用于决定先后顺序,并不一定需要连着,如`01、02、03...`,实际工作中可能会在两个文章中间插入一篇新的文章,因此为了方便可以采用间隔序号`10、20、30...`,后面如果需要在`10`和`20`中间插入一篇新文章,可以给定序号`15`。
-
-:::
-
-### 级别说明
-
-源目录(一般是`docs`)底下的级别现在我们称之为`一级目录`,`一级目录`的下一级为`二级目录`,以此类推,最多只能到`四级目录`。
-
-* **一级目录**
- 1. `.vuepress`、`@pages`、`_posts`、`index.md 或 README.md` 这些文件(文件夹)不参与数据生成。
- 2. 序号非必须。(如一些专栏,可以不用序号)
-* **二级目录**
- 1. 该级别下可以同时放文件夹和`.md`文件,但是两者序号要连贯(参考下面的例子中的`其他`)。
- 2. 必须有序号
-* **三级目录**
- - (同上)
-* **四级目录**