Skip to content

Commit

Permalink
25/01/01
Browse files Browse the repository at this point in the history
  • Loading branch information
WindRunnerMax committed Jan 1, 2025
1 parent 819f072 commit e5acdae
Show file tree
Hide file tree
Showing 134 changed files with 202 additions and 265 deletions.
130 changes: 65 additions & 65 deletions .scripts/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,71 +329,71 @@ export const docs: Record<string, string[]> = {
"Patterns/MVVM模式",
],
Linux: [
"Linux/cat命令",
"Linux/chmod命令",
"Linux/chown命令",
"Linux/cmp命令",
"Linux/diff命令",
"Linux/diffstat命令",
"Linux/file命令",
"Linux/find命令",
"Linux/cut命令",
"Linux/ln命令",
"Linux/less命令",
"Linux/locate命令",
"Linux/lsattr命令",
"Linux/chattr命令",
"Linux/mc命令",
"Linux/mktemp命令",
"Linux/more命令",
"Linux/mv命令",
"Linux/od命令",
"Linux/paste命令",
"Linux/patch命令",
"Linux/rcp命令",
"Linux/rm命令",
"Linux/split命令",
"Linux/tee命令",
"Linux/tmpwatch命令",
"Linux/touch命令",
"Linux/umask命令",
"Linux/which命令",
"Linux/cp命令",
"Linux/whereis命令",
"Linux/scp命令",
"Linux/awk命令",
"Linux/read命令",
"Linux/updatedb命令",
"Linux/col命令",
"Linux/colrm命令",
"Linux/comm命令",
"Linux/csplit命令",
"Linux/ed命令",
"Linux/egrep命令",
"Linux/ex命令",
"Linux/fgrep命令",
"Linux/fmt命令",
"Linux/fold命令",
"Linux/grep命令",
"Linux/aspell命令",
"Linux/join命令",
"Linux/look命令",
"Linux/pico命令",
"Linux/sed命令",
"Linux/sort命令",
"Linux/tr命令",
"Linux/expr命令",
"Linux/ps命令",
"Linux/netstat命令",
"Linux/ifconfig命令",
"Linux/traceroute命令",
"Linux/route命令",
"Linux/kill命令",
"Linux/systemctl命令",
"Linux/journalctl命令",
"Linux/ip命令",
"Linux/curl命令",
"Linux/top命令",
"Linux/cat-输出文件内容",
"Linux/chmod-更改文件权限",
"Linux/chown-更改文件所有者",
"Linux/cmp-文件差异状态",
"Linux/diff-对比文件差异",
"Linux/diffstat-文件差异计量",
"Linux/file-探测文件类型",
"Linux/find-查找文件",
"Linux/cut-截取文件内容",
"Linux/ln-创建文件链接",
"Linux/less-分页输出文件内容",
"Linux/locate-快速查找文件",
"Linux/lsattr-显示文件属性",
"Linux/chattr-更改文件属性",
"Linux/mc-文件管理器",
"Linux/mktemp-创建临时文件",
"Linux/more-分页输出文件内容",
"Linux/mv-移动文件",
"Linux/od-读取文件内容",
"Linux/paste-合并文件内容",
"Linux/patch-修补生成文件",
"Linux/rcp-远程文件拷贝",
"Linux/rm-删除文件",
"Linux/split-分割文件",
"Linux/tee-文件内容分流",
"Linux/tmpwatch-删除未访问文件",
"Linux/touch-创建新文件",
"Linux/umask-设置文件权限掩码",
"Linux/which-输出命令路径",
"Linux/cp-复制文件",
"Linux/whereis-查找二进制文件",
"Linux/scp-安全拷贝文件",
"Linux/awk-文本处理工具",
"Linux/read-读取用户输入",
"Linux/updatedb-更新文件数据库",
"Linux/col-过滤控制字符",
"Linux/colrm-删除文件内容列",
"Linux/comm-对比文件内容",
"Linux/csplit-分割文件",
"Linux/ed-文本编辑器",
"Linux/egrep-正则模式搜索",
"Linux/ex-文本编辑器",
"Linux/fgrep-固定字符串搜索",
"Linux/fmt-格式化输出内容",
"Linux/fold-折叠文件内容",
"Linux/grep-模式搜索匹配",
"Linux/aspell-拼写检查",
"Linux/join-合并文件内容",
"Linux/look-查找字典单词",
"Linux/pico-文本编辑程序",
"Linux/sed-脚本处理文件",
"Linux/sort-排序文件内容",
"Linux/tr-转换文件内容",
"Linux/expr-表达式计算",
"Linux/ps-进程状态管理",
"Linux/netstat-网络状态管理",
"Linux/ifconfig-网络接口管理",
"Linux/traceroute-网络路由跟踪",
"Linux/route-网络路由管理",
"Linux/kill-终止进程",
"Linux/systemctl-系统服务管理",
"Linux/journalctl-系统日志管理",
"Linux/ip-网络接口管理",
"Linux/curl-网络数据传输",
"Linux/top-系统资源监控",
],
MiniProgram: [
"MiniProgram/山科小站小程序",
Expand Down
73 changes: 5 additions & 68 deletions .scripts/mv-files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,71 +4,6 @@ import { glob } from "glob";

const MAP: Record<string, string> = {
__ORIGIN__: "__TARGET__",
cat命令: "cat-输出文件内容",
chmod命令: "chmod-更改文件权限",
chown命令: "chown-更改文件所有者",
cmp命令: "cmp-文件差异状态",
diff命令: "diff-对比文件差异",
diffstat命令: "diffstat-文件差异计量",
file命令: "file-探测文件类型",
find命令: "find-查找文件",
cut命令: "cut-截取文件内容",
ln命令: "ln-创建文件链接",
less命令: "less-分页输出文件内容",
locate命令: "locate-快速查找文件",
lsattr命令: "lsattr-显示文件属性",
chattr命令: "chattr-更改文件属性",
mc命令: "mc-文件管理器",
mktemp命令: "mktemp-创建临时文件",
more命令: "more-分页输出文件内容",
mv命令: "mv-移动文件",
od命令: "od-读取文件内容",
paste命令: "paste-合并文件内容",
patch命令: "patch-修补生成文件",
rcp命令: "rcp-远程文件拷贝",
rm命令: "rm-删除文件",
split命令: "split-分割文件",
tee命令: "tee-文件内容分流",
tmpwatch命令: "tmpwatch-删除未访问文件",
touch命令: "touch-创建空文件",
umask命令: "umask-设置文件权限掩码",
which命令: "which-输出命令路径",
cp命令: "cp-复制文件",
whereis命令: "whereis-查找二进制文件",
scp命令: "scp-安全拷贝文件",
awk命令: "awk-文本处理工具",
read命令: "read-读取用户输入",
updatedb命令: "updatedb-更新文件数据库",
col命令: "col-过滤控制字符",
colrm命令: "colrm-删除文件内容列",
comm命令: "comm-对比文件内容",
csplit命令: "csplit-分割文件",
ed命令: "ed-文本编辑器",
egrep命令: "egrep-正则模式搜索",
ex命令: "ex-文本编辑器",
fgrep命令: "fgrep-固定字符串搜索",
fmt命令: "fmt-格式化输出内容",
fold命令: "fold-折叠文件内容",
grep命令: "grep-模式搜索匹配",
aspell命令: "aspell-拼写检查",
join命令: "join-合并文件内容",
look命令: "look-查找字典单词",
pico命令: "pico-文本编辑程序",
sed命令: "sed-脚本处理文件",
sort命令: "sort-排序文件内容",
tr命令: "tr-转换文件内容",
expr命令: "expr-表达式计算",
ps命令: "ps-进程状态管理",
netstat命令: "netstat-网络状态管理",
ifconfig命令: "ifconfig-网络接口管理",
traceroute命令: "traceroute-网络路由跟踪",
route命令: "route-网络路由管理",
kill命令: "kill-终止进程",
systemctl命令: "systemctl-系统服务管理",
journalctl命令: "journalctl-系统日志管理",
ip命令: "ip-网络接口管理",
curl命令: "curl-网络数据传输",
top命令: "top-系统资源监控",
};

const withSuffix = (fileName?: string) => {
Expand All @@ -87,14 +22,17 @@ const removeSuffix = (fileName?: string) => {
const docsPath = path.resolve("./docs.ts");
let docsFile = await fs.readFile(docsPath, "utf-8");
for (const [key, value] of Object.entries(MAP)) {
docsFile = docsFile.replaceAll(key, value);
docsFile = docsFile.replaceAll(`/${key}"`, `/${value}"`);
}
await fs.writeFile(docsPath, docsFile);
// 处理 Timeline 文件
const timelinePath = path.join(root, "Timeline.md");
let timelineFile = await fs.readFile(timelinePath, "utf-8");
for (const [key, value] of Object.entries(MAP)) {
timelineFile = timelineFile.replaceAll(key, value);
timelineFile = timelineFile.replaceAll(
`[${key}](Linux/${key}.md)`,
`[${value}](Linux/${value}.md)`
);
}
await fs.writeFile(timelinePath, timelineFile);
// 处理文件名
Expand All @@ -106,7 +44,6 @@ const removeSuffix = (fileName?: string) => {
const target = withSuffix(MAP[fileName]);
if (origin && target) {
fs.rename([...group, origin].join("/"), [...group, target].join("/"));
return;
}
}
})();
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
132 changes: 66 additions & 66 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
如果觉得还不错,点个`star`吧 😁

<!-- Summary Start -->
版本库中共有`491`篇文章,总计`92471`行,`1088893`字,`3035666`字符。
版本库中共有`491`篇文章,总计`92453`行,`1089072`字,`3036151`字符。
<!-- Summary End -->

这是一个前端小白的学习历程,如果只学习而不记录点什么那基本就等于白学了。这个版本库的名字`EveryDay`就是希望激励我能够每天学习,下面的文章就是从`2020.02.25`开始积累的文章,都是参考众多文章归纳整理学习而写的,文章包括了`HTML`基础、`CSS`基础、`JavaScript`基础与拓展、`Browser`浏览器相关、`Vue`使用与分析、`React`使用与分析、`Plugin`插件相关、`RichText`富文本、`Patterns`设计模式、`Linux`命令、`LeetCode`题解等类别,内容都是比较基础的,毕竟我也还是个小。此外基本上每个示例都是本着能够即时运行为目标的,新建一个`HTML`文件复制之后即可在浏览器运行或者直接可以在`console`中运行。
Expand Down Expand Up @@ -346,71 +346,71 @@
* [MVVM模式](Patterns/MVVM模式.md)

## Linux
* [cat命令](Linux/cat命令.md)
* [chmod命令](Linux/chmod命令.md)
* [chown命令](Linux/chown命令.md)
* [cmp命令](Linux/cmp命令.md)
* [diff命令](Linux/diff命令.md)
* [diffstat命令](Linux/diffstat命令.md)
* [file命令](Linux/file命令.md)
* [find命令](Linux/find命令.md)
* [cut命令](Linux/cut命令.md)
* [ln命令](Linux/ln命令.md)
* [less命令](Linux/less命令.md)
* [locate命令](Linux/locate命令.md)
* [lsattr命令](Linux/lsattr命令.md)
* [chattr命令](Linux/chattr命令.md)
* [mc命令](Linux/mc命令.md)
* [mktemp命令](Linux/mktemp命令.md)
* [more命令](Linux/more命令.md)
* [mv命令](Linux/mv命令.md)
* [od命令](Linux/od命令.md)
* [paste命令](Linux/paste命令.md)
* [patch命令](Linux/patch命令.md)
* [rcp命令](Linux/rcp命令.md)
* [rm命令](Linux/rm命令.md)
* [split命令](Linux/split命令.md)
* [tee命令](Linux/tee命令.md)
* [tmpwatch命令](Linux/tmpwatch命令.md)
* [touch命令](Linux/touch命令.md)
* [umask命令](Linux/umask命令.md)
* [which命令](Linux/which命令.md)
* [cp命令](Linux/cp命令.md)
* [whereis命令](Linux/whereis命令.md)
* [scp命令](Linux/scp命令.md)
* [awk命令](Linux/awk命令.md)
* [read命令](Linux/read命令.md)
* [updatedb命令](Linux/updatedb命令.md)
* [col命令](Linux/col命令.md)
* [colrm命令](Linux/colrm命令.md)
* [comm命令](Linux/comm命令.md)
* [csplit命令](Linux/csplit命令.md)
* [ed命令](Linux/ed命令.md)
* [egrep命令](Linux/egrep命令.md)
* [ex命令](Linux/ex命令.md)
* [fgrep命令](Linux/fgrep命令.md)
* [fmt命令](Linux/fmt命令.md)
* [fold命令](Linux/fold命令.md)
* [grep命令](Linux/grep命令.md)
* [aspell命令](Linux/aspell命令.md)
* [join命令](Linux/join命令.md)
* [look命令](Linux/look命令.md)
* [pico命令](Linux/pico命令.md)
* [sed命令](Linux/sed命令.md)
* [sort命令](Linux/sort命令.md)
* [tr命令](Linux/tr命令.md)
* [expr命令](Linux/expr命令.md)
* [ps命令](Linux/ps命令.md)
* [netstat命令](Linux/netstat命令.md)
* [ifconfig命令](Linux/ifconfig命令.md)
* [traceroute命令](Linux/traceroute命令.md)
* [route命令](Linux/route命令.md)
* [kill命令](Linux/kill命令.md)
* [systemctl命令](Linux/systemctl命令.md)
* [journalctl命令](Linux/journalctl命令.md)
* [ip命令](Linux/ip命令.md)
* [curl命令](Linux/curl命令.md)
* [top命令](Linux/top命令.md)
* [cat-输出文件内容](Linux/cat-输出文件内容.md)
* [chmod-更改文件权限](Linux/chmod-更改文件权限.md)
* [chown-更改文件所有者](Linux/chown-更改文件所有者.md)
* [cmp-文件差异状态](Linux/cmp-文件差异状态.md)
* [diff-对比文件差异](Linux/diff-对比文件差异.md)
* [diffstat-文件差异计量](Linux/diffstat-文件差异计量.md)
* [file-探测文件类型](Linux/file-探测文件类型.md)
* [find-查找文件](Linux/find-查找文件.md)
* [cut-截取文件内容](Linux/cut-截取文件内容.md)
* [ln-创建文件链接](Linux/ln-创建文件链接.md)
* [less-分页输出文件内容](Linux/less-分页输出文件内容.md)
* [locate-快速查找文件](Linux/locate-快速查找文件.md)
* [lsattr-显示文件属性](Linux/lsattr-显示文件属性.md)
* [chattr-更改文件属性](Linux/chattr-更改文件属性.md)
* [mc-文件管理器](Linux/mc-文件管理器.md)
* [mktemp-创建临时文件](Linux/mktemp-创建临时文件.md)
* [more-分页输出文件内容](Linux/more-分页输出文件内容.md)
* [mv-移动文件](Linux/mv-移动文件.md)
* [od-读取文件内容](Linux/od-读取文件内容.md)
* [paste-合并文件内容](Linux/paste-合并文件内容.md)
* [patch-修补生成文件](Linux/patch-修补生成文件.md)
* [rcp-远程文件拷贝](Linux/rcp-远程文件拷贝.md)
* [rm-删除文件](Linux/rm-删除文件.md)
* [split-分割文件](Linux/split-分割文件.md)
* [tee-文件内容分流](Linux/tee-文件内容分流.md)
* [tmpwatch-删除未访问文件](Linux/tmpwatch-删除未访问文件.md)
* [touch-创建新文件](Linux/touch-创建新文件.md)
* [umask-设置文件权限掩码](Linux/umask-设置文件权限掩码.md)
* [which-输出命令路径](Linux/which-输出命令路径.md)
* [cp-复制文件](Linux/cp-复制文件.md)
* [whereis-查找二进制文件](Linux/whereis-查找二进制文件.md)
* [scp-安全拷贝文件](Linux/scp-安全拷贝文件.md)
* [awk-文本处理工具](Linux/awk-文本处理工具.md)
* [read-读取用户输入](Linux/read-读取用户输入.md)
* [updatedb-更新文件数据库](Linux/updatedb-更新文件数据库.md)
* [col-过滤控制字符](Linux/col-过滤控制字符.md)
* [colrm-删除文件内容列](Linux/colrm-删除文件内容列.md)
* [comm-对比文件内容](Linux/comm-对比文件内容.md)
* [csplit-分割文件](Linux/csplit-分割文件.md)
* [ed-文本编辑器](Linux/ed-文本编辑器.md)
* [egrep-正则模式搜索](Linux/egrep-正则模式搜索.md)
* [ex-文本编辑器](Linux/ex-文本编辑器.md)
* [fgrep-固定字符串搜索](Linux/fgrep-固定字符串搜索.md)
* [fmt-格式化输出内容](Linux/fmt-格式化输出内容.md)
* [fold-折叠文件内容](Linux/fold-折叠文件内容.md)
* [grep-模式搜索匹配](Linux/grep-模式搜索匹配.md)
* [aspell-拼写检查](Linux/aspell-拼写检查.md)
* [join-合并文件内容](Linux/join-合并文件内容.md)
* [look-查找字典单词](Linux/look-查找字典单词.md)
* [pico-文本编辑程序](Linux/pico-文本编辑程序.md)
* [sed-脚本处理文件](Linux/sed-脚本处理文件.md)
* [sort-排序文件内容](Linux/sort-排序文件内容.md)
* [tr-转换文件内容](Linux/tr-转换文件内容.md)
* [expr-表达式计算](Linux/expr-表达式计算.md)
* [ps-进程状态管理](Linux/ps-进程状态管理.md)
* [netstat-网络状态管理](Linux/netstat-网络状态管理.md)
* [ifconfig-网络接口管理](Linux/ifconfig-网络接口管理.md)
* [traceroute-网络路由跟踪](Linux/traceroute-网络路由跟踪.md)
* [route-网络路由管理](Linux/route-网络路由管理.md)
* [kill-终止进程](Linux/kill-终止进程.md)
* [systemctl-系统服务管理](Linux/systemctl-系统服务管理.md)
* [journalctl-系统日志管理](Linux/journalctl-系统日志管理.md)
* [ip-网络接口管理](Linux/ip-网络接口管理.md)
* [curl-网络数据传输](Linux/curl-网络数据传输.md)
* [top-系统资源监控](Linux/top-系统资源监控.md)

## MiniProgram
* [山科小站小程序](MiniProgram/山科小站小程序.md)
Expand Down
Loading

0 comments on commit e5acdae

Please sign in to comment.