Skip to content

Commit e869f1f

Browse files
authored
Merge pull request #52 from mmdapl/feat/update-doc
feat: 剑指算法文档更新,修改目录结构
2 parents 33e4255 + 8de1a9b commit e869f1f

File tree

106 files changed

+700
-1378
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+700
-1378
lines changed

.github/workflows/CD.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,11 +122,8 @@ jobs:
122122
uses: actions/cache@v3
123123
with:
124124
path: |
125-
~/.pnpm-store
126125
node_modules
127-
key: ${{ runner.os }}-cache-${{ hashFiles('**/pnpm-lock.yaml') }}
128-
restore-keys: |
129-
${{ runner.os }}-cache-
126+
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/pnpm-lock.yaml') }}
130127

131128
### 打成压缩包
132129
- name: Create Zip Package

CHANGELOG.md

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
# Release history
2+
3+
All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
4+
5+
<!-- #region recent-beta -->
6+
7+
## 0.0.2-alpha.1 (2023-09-09)
8+
9+
10+
### Features
11+
12+
* add docs ([11ee1d7](https://github.com/mmdapl/JavaScriptCollection/commit/11ee1d702a608c96a85153c8f6a8005c9abecf39))
13+
* add workflow to deploy ([68c8044](https://github.com/mmdapl/JavaScriptCollection/commit/68c8044079c75b2b7926e633b1c06ca7ff57acc3))
14+
* **algorithm:** 算法文档更新,侧边栏优化 ([80f08f6](https://github.com/mmdapl/JavaScriptCollection/commit/80f08f66dd98e3a511f6ac48f1f55bca8bbc6655))
15+
* build-proxy image ([e460747](https://github.com/mmdapl/JavaScriptCollection/commit/e460747d5719490c659a6b015418a4daa7179d89))
16+
* **ci:** add code-ci for eslint ([c8b91aa](https://github.com/mmdapl/JavaScriptCollection/commit/c8b91aa5fe3b50411f65d878c89193cb64f1a7bf))
17+
* **ci:** update code-ci rule ([7106c25](https://github.com/mmdapl/JavaScriptCollection/commit/7106c2535c71aa8a60076e5eda698b09bcdeff61))
18+
* **ci:** update run ([a9d6b0d](https://github.com/mmdapl/JavaScriptCollection/commit/a9d6b0d0740eda7d61fb2efe97f37131d54be7e5))
19+
* **ci:** update secrets ([6c5b40f](https://github.com/mmdapl/JavaScriptCollection/commit/6c5b40f821bf402199c0d4ce353047ee0ab0aa63))
20+
* ci回滚 ([7f9f9b4](https://github.com/mmdapl/JavaScriptCollection/commit/7f9f9b46bd0738bc2ecd2c676b6c073e2c1a9c3f))
21+
* **ci:** 支持master分之部署 ([b60319c](https://github.com/mmdapl/JavaScriptCollection/commit/b60319cba8049d0488d4e32a60f1e3c9af1d9a45))
22+
* ci流程优化,修复部分脚本异常 ([8e50abf](https://github.com/mmdapl/JavaScriptCollection/commit/8e50abfc505a36be3f31d5ac4e17dceb72a80981))
23+
* delete ([27d568a](https://github.com/mmdapl/JavaScriptCollection/commit/27d568a25a664cde7ab591883693aca28bd7055a))
24+
* delete grpc code ([d7ef3fc](https://github.com/mmdapl/JavaScriptCollection/commit/d7ef3fcf382efd7053ed4d821b78fe0735f11c4a))
25+
* deploy esc ([0d90d30](https://github.com/mmdapl/JavaScriptCollection/commit/0d90d30268ca823ac2f4c5afedd25ef4add669da))
26+
* docker-compose文档 ([7b2eb76](https://github.com/mmdapl/JavaScriptCollection/commit/7b2eb762f69089469c3e3ea74b5bcc4fd9b45d42))
27+
* docker-image ([469ad47](https://github.com/mmdapl/JavaScriptCollection/commit/469ad473bad01b522c098a2b932aa6bbc835707b))
28+
* docker相关文章 ([3852a8b](https://github.com/mmdapl/JavaScriptCollection/commit/3852a8b50cfe6d2047ab2551bf52e3927da9ca91))
29+
* **docs:** update npm ([e37957a](https://github.com/mmdapl/JavaScriptCollection/commit/e37957a2c5f45ae8b1976f633afc91ba606acebc))
30+
* **docs:** 新增文档那 ([8bc805e](https://github.com/mmdapl/JavaScriptCollection/commit/8bc805e68fea1f7b4e1fac31382fa34554ee55d7))
31+
* es6相关改动 ([21a3ce9](https://github.com/mmdapl/JavaScriptCollection/commit/21a3ce97fb560d9f35693ec7bb7496827dd993bb))
32+
* esc ci update ([3aec5cf](https://github.com/mmdapl/JavaScriptCollection/commit/3aec5cfd0cc40941bf1975d9204f72234b59ec22))
33+
* esc description update ([8e07aa3](https://github.com/mmdapl/JavaScriptCollection/commit/8e07aa371d1366789360c0dd5fbcca47f3ae3c75))
34+
* **eslint:** husky代码校验,eslint规则配置 ([9e2f9bf](https://github.com/mmdapl/JavaScriptCollection/commit/9e2f9bfeea919317eb7f4a4a8e9eb41474976aa8))
35+
* just a job ([11bd00a](https://github.com/mmdapl/JavaScriptCollection/commit/11bd00a4ca3712fda698bdd22f83417ccabe50f7))
36+
* reset git branch ([450875e](https://github.com/mmdapl/JavaScriptCollection/commit/450875ef3ee9a626bf8a0617383cd5fc401a2395))
37+
* **scripts:** 脚本优化,package.json调整 ([accd1d1](https://github.com/mmdapl/JavaScriptCollection/commit/accd1d19f0a0e57176557babfb6e416d21a3949d))
38+
* **scripts:** 脚本优化,项目结构调整 ([d0de025](https://github.com/mmdapl/JavaScriptCollection/commit/d0de025c5e41540b1ef00e7bb6230324ee596dc9))
39+
* shell相关代码初始化 ([3c0e1d6](https://github.com/mmdapl/JavaScriptCollection/commit/3c0e1d697c7a99d155e1b369da10b2d8d1850caf))
40+
* ssh-master ([6e56d68](https://github.com/mmdapl/JavaScriptCollection/commit/6e56d68b5be1e8ac912bf047cb8a7fefc105be2d))
41+
* update ([871d031](https://github.com/mmdapl/JavaScriptCollection/commit/871d0311a78bcf3e24f9fbe436f88318ccc72f0c))
42+
* update /service_env/ ([0434970](https://github.com/mmdapl/JavaScriptCollection/commit/0434970eb89836cd3a0db685ff738a324f67326b))
43+
* update ci ([f01ca69](https://github.com/mmdapl/JavaScriptCollection/commit/f01ca6903e5bf992598f62a636269489b0bfee95))
44+
* update ci rule ([177c2f4](https://github.com/mmdapl/JavaScriptCollection/commit/177c2f4e8077debe50809e00c162a433b13a81ab))
45+
* update ci yaml ([e7e33f5](https://github.com/mmdapl/JavaScriptCollection/commit/e7e33f56ad20820ced703567690c84bc4a9070c6))
46+
* update config ([f7eaeac](https://github.com/mmdapl/JavaScriptCollection/commit/f7eaeac28bada71001dd884023e8a3dad7e0ff83))
47+
* update docs ([510f213](https://github.com/mmdapl/JavaScriptCollection/commit/510f21308a12c653706c2409f4f251bc7dff0bc1))
48+
* update job sort ([46ba934](https://github.com/mmdapl/JavaScriptCollection/commit/46ba934711958d8d300bd8c780fb68de22a09df5))
49+
* update logo ([435550c](https://github.com/mmdapl/JavaScriptCollection/commit/435550cd03ab34ac8da708d3fd5213573fa1006f))
50+
* update todo list ([c9b8b8e](https://github.com/mmdapl/JavaScriptCollection/commit/c9b8b8e341f3257e29c4b44239bd2b3a19960320))
51+
* update-desc ([185af9d](https://github.com/mmdapl/JavaScriptCollection/commit/185af9db8762d9cd394bad944a66e6a2d672afee))
52+
* **vercel:** vercel 统计相关配置 ([fe5f02e](https://github.com/mmdapl/JavaScriptCollection/commit/fe5f02ed5b921b26105233653ef66d9eef932430))
53+
* 优化js代码,新增链表相关刷题文档 ([d99044f](https://github.com/mmdapl/JavaScriptCollection/commit/d99044f1ffc643b14b8c41cc63f6e9bab105b71b))
54+
* 优化导航栏配置 ([3776e49](https://github.com/mmdapl/JavaScriptCollection/commit/3776e49ffb1f2c1813c5f96e552649925183444c))
55+
* 侧边栏配置修复 ([2047269](https://github.com/mmdapl/JavaScriptCollection/commit/204726974bd717664c67c1f08ba848f4b2bde897))
56+
* 侧边栏配置更新 ([88b70aa](https://github.com/mmdapl/JavaScriptCollection/commit/88b70aad92b365b2bce92062b867b6edb1e377cc))
57+
* 修复 netlify平台部署 ([0cf2830](https://github.com/mmdapl/JavaScriptCollection/commit/0cf2830fe4d00de0733eff89a970886d29475d70))
58+
* 修改 基础配置更新 ([c721ab1](https://github.com/mmdapl/JavaScriptCollection/commit/c721ab11f36fcd4af7dd02409169f0639fff3ba6))
59+
* 修改Dockerfile,新增本地快速构建脚本 ([1a4d3d6](https://github.com/mmdapl/JavaScriptCollection/commit/1a4d3d697e3cea1fbfd2e9bf7f2e48d5a8e58667))
60+
* 修改eslint格式化 ([46c026e](https://github.com/mmdapl/JavaScriptCollection/commit/46c026e86246b39d8b6238260d0f96e2d65e9f3a))
61+
* 修改hope主题配置,新增一些文档优化 ([c564f9f](https://github.com/mmdapl/JavaScriptCollection/commit/c564f9f8443eb47498ac2efe076a2c822fb0384a))
62+
* 修改一些配置,升级依赖 ([8e4fbb6](https://github.com/mmdapl/JavaScriptCollection/commit/8e4fbb655cbc6b8f424cc3b6a81d0465e30c4a12))
63+
* 修改主题配置 ([1922a29](https://github.com/mmdapl/JavaScriptCollection/commit/1922a29e9358373b92667465474dce77654a854d))
64+
* 修改侧边栏结构,优化镜像构建脚本 ([7839f95](https://github.com/mmdapl/JavaScriptCollection/commit/7839f95e11e93f8d3c48a7c2a33919d2d1683000))
65+
* 修改导航栏结构,添加文档 ([9bbe9ae](https://github.com/mmdapl/JavaScriptCollection/commit/9bbe9aed4b9885f927f4df8c390570e1fc17b3fb))
66+
* 修改部署脚本及配置 ([5474059](https://github.com/mmdapl/JavaScriptCollection/commit/54740596dfa0e7391c9a464e9884138425ce6aab))
67+
* 修改配置 ([08ae5de](https://github.com/mmdapl/JavaScriptCollection/commit/08ae5debabf2a6ca4d3a37fe1ff6645b4e3e6ab0))
68+
* 修改镜像版本,删除无用脚本 ([2054593](https://github.com/mmdapl/JavaScriptCollection/commit/2054593e3031892ad5b99445622c4bc1ec592967))
69+
* 升级eslint版本,修改侧边栏 ([3dca375](https://github.com/mmdapl/JavaScriptCollection/commit/3dca3756c14b238320cee914ac789facbd9881dc))
70+
* 忽略文件配置修改 ([3251a00](https://github.com/mmdapl/JavaScriptCollection/commit/3251a0093db0631bbc7c8859ac7027d914e588b6))
71+
* 支持next自动部署ci ([3fbc033](https://github.com/mmdapl/JavaScriptCollection/commit/3fbc033022098099fd6d24757d097d979d9e5fb8))
72+
* 支持中文配置,优化访问链接 ([59d6c21](https://github.com/mmdapl/JavaScriptCollection/commit/59d6c21308f0b00ea834836f5f6448b73172e71d))
73+
* 文档更新 ([6ad7e82](https://github.com/mmdapl/JavaScriptCollection/commit/6ad7e82d56083d8f22380816ef13f1b5a9f79f64))
74+
* 新增grpc相关文档 ([9412040](https://github.com/mmdapl/JavaScriptCollection/commit/9412040a6c50f2918fedb784e364d907bf646057))
75+
* 新增linux基础指令文档 ([88a9f2c](https://github.com/mmdapl/JavaScriptCollection/commit/88a9f2c0ec40e957e8818c96a8c75985de73369c))
76+
* 新增PROXY_DOMAIN环境变量配置,支持base转化 ([5ea2e5d](https://github.com/mmdapl/JavaScriptCollection/commit/5ea2e5d3537e3ded6a57aff83bdae985316c7f3a))
77+
* 新增redis主从集群文档 ([feebfbe](https://github.com/mmdapl/JavaScriptCollection/commit/feebfbea121c2bbacdaef751178a042cbbb1f6a5))
78+
* 新增redis相关文章 ([f929360](https://github.com/mmdapl/JavaScriptCollection/commit/f9293602067827a5e02997133202696389f791ac))
79+
* 新增一些文档 ([95f8f86](https://github.com/mmdapl/JavaScriptCollection/commit/95f8f862bb563c18a063f6306ad96326c531b33d))
80+
* 新增一些文档,优化配置 ([1c24993](https://github.com/mmdapl/JavaScriptCollection/commit/1c24993ec78cd87abc927317af31fe0064b262c0))
81+
* 新增文档,优化navbar导航栏 ([983b783](https://github.com/mmdapl/JavaScriptCollection/commit/983b7839e2be4588b1ac680a0f2692d1f7343b88))
82+
* 新增算法文档 ([fc602dd](https://github.com/mmdapl/JavaScriptCollection/commit/fc602ddb27847a43e2668a40e5e516df8674819a))
83+
* 新增算法源码 ([e4c74db](https://github.com/mmdapl/JavaScriptCollection/commit/e4c74dba01bfea775d59d8002897bc7db108f0f3))
84+
* 更新doc ([bb380b6](https://github.com/mmdapl/JavaScriptCollection/commit/bb380b6b488ba2e9ba0a34a3c1ba70c54213bfda))
85+
* 更新pnpm版本 ([ed17b5f](https://github.com/mmdapl/JavaScriptCollection/commit/ed17b5f70d56014725fdd9e00fdc33e5eca56e8f))
86+
* 更新script ([dded339](https://github.com/mmdapl/JavaScriptCollection/commit/dded339815598a06c794c3f6997e1f6acf72082e))
87+
* 更新文档,新增在线浏览地址 ([194b22e](https://github.com/mmdapl/JavaScriptCollection/commit/194b22e44e26777262c0f6beb601ccdc00e9b168))
88+
* 更新流程依赖 ([81df3aa](https://github.com/mmdapl/JavaScriptCollection/commit/81df3aa28c1ab703532a1ef008e916632b3b820e))
89+
* 更新版本号配置 ([38f214a](https://github.com/mmdapl/JavaScriptCollection/commit/38f214aef038d6c4c94c569350d055c7bfc22364))
90+
* 更新配置 ([62a399d](https://github.com/mmdapl/JavaScriptCollection/commit/62a399dc651d1cf37749575afe25ab2cb18a38b2))
91+
* 版本、侧边栏更新 ([50da068](https://github.com/mmdapl/JavaScriptCollection/commit/50da06817a2d2358bf118f9f48ac6fe36c6fcc01))
92+
* 还原config配置,修复目录问题 ([9499210](https://github.com/mmdapl/JavaScriptCollection/commit/949921082b793d1aa227b585651d9469184c502b))
93+
* 配置cz,优化commit hooks ([0d142c8](https://github.com/mmdapl/JavaScriptCollection/commit/0d142c8fc01f7a01aa3bd5f2d7271788113a31e9))
94+
* 配置更新 ([1de6068](https://github.com/mmdapl/JavaScriptCollection/commit/1de6068d886c9f26d43ce95548b96105474d836f))
95+
* 配置采用ts语法,新增代码文件引入 ([43aeaff](https://github.com/mmdapl/JavaScriptCollection/commit/43aeaff341a6c09acea4292c7d3deecd8613aabb))
96+
* 首页导航栏内容优化 ([0df1d96](https://github.com/mmdapl/JavaScriptCollection/commit/0df1d968b099f467e6e83f30b04eb4d717b99978))
97+
98+
99+
### Bug Fixes
100+
101+
* esc deploy ([0c5c330](https://github.com/mmdapl/JavaScriptCollection/commit/0c5c3300583056f344e18382d54d4ee143978155))
102+
* 修复 格式 ([837e05d](https://github.com/mmdapl/JavaScriptCollection/commit/837e05d42c333044bee413e4f15f2e49406c08d3))
103+
* 修复build指令异常 ([d009770](https://github.com/mmdapl/JavaScriptCollection/commit/d0097705dd534716c210ef0c531873ee438c469d))
104+
* 配置优化 ([a085309](https://github.com/mmdapl/JavaScriptCollection/commit/a0853096156e2eb890ad3187edfa0fae5f599e00))
105+
106+
107+
### Performance Improvements
108+
109+
* **pnpm:** 升级模块 ([b283402](https://github.com/mmdapl/JavaScriptCollection/commit/b2834025a4de2162d25f7694be75585dd4244ef5))

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
# CONTAINER_BUILD: 采用容器构建
77
#
88
# 注意:vite构建需要支持node14以上,安装node16较为稳妥
9+
910
FROM registry.cn-hangzhou.aliyuncs.com/142vip/node:16.20.2-alpine AS build_base
1011

1112
ARG CONTAINER_BUILD
@@ -20,7 +21,6 @@ RUN if [ "$CONTAINER_BUILD" = "true" ]; then \
2021
npm i pnpm@7 -g && pnpm i -D && pnpm build; \
2122
fi;
2223

23-
2424
FROM registry.cn-hangzhou.aliyuncs.com/142vip/nginx:1.23.0-alpine
2525
ARG APP_VERSION
2626
LABEL version=$APP_VERSION description="JavaScriptCollection文档合集、博客"

code/algorithm/find.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
/**
2-
*
3-
* @param target
4-
* @param array
5-
*/
61
function Find(target, array) {
72
if (!array) {
83
return false

code/algorithm/leftRotateString.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
/**
2-
* @param str
3-
* @param n
4-
* @returns {*}
5-
* @constructor
6-
*/
71
function LeftRotateString(str, n) {
82
if (!str) {
93
return str
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,14 @@
33
*/
44
function add() {
55
const args = Array.prototype.slice.call(arguments)
6-
76
const _add = function() {
87
console.log('add', arguments)
98
args.push(...arguments)
109

1110
// 返回函数
1211
return _add
1312
}
14-
1513
// 对参数数组做求和处理
16-
1714
_add.toString = function() {
1815
// 设置sum的起始值为0
1916
return args.reduce((sum, item) => {

0 commit comments

Comments
 (0)