Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions code/algorithm/front-end/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@ function add() {

const str = add(1, 6)(2)(3)
console.log(str)
// console.log(String(add(1,6)(2)(3)) )
// console.log(add(1)(2)(3))
// console.log(add(1)(2,3,4))
console.log(add(1)(2)(3))
console.log(add(1)(2, 3, 4))
1 change: 1 addition & 0 deletions code/docker-cluster/nginx-docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# nginx
1 change: 1 addition & 0 deletions code/docker-cluster/redis.docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# redis
3 changes: 0 additions & 3 deletions code/node/dayjs/demo-1.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@ console.log(dayjs(1318781876406))
console.log(dayjs.unix(1318781876))
console.log(dayjs.unix(1318781876.721))


// Date对象
const date = new Date(2022, 8, 18)
console.log(dayjs(date))


// 对象复制
const a = dayjs()
const b = a.clone()
Expand All @@ -47,7 +45,6 @@ const c = dayjs()
const d = dayjs(c)
console.log(c, d)


// 校验是否为日期
console.log(dayjs('2022-01-33').isValid())
// true, parsed to 2022-02-02
Expand Down
1 change: 0 additions & 1 deletion code/node/dayjs/demo-2.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ console.log(dayjs().month(0))
console.log(dayjs().year())
console.log(dayjs().year(2023))


// get方法获取
console.log(dayjs().get('year'))
console.log(dayjs().get('month'))
Expand Down
1 change: 0 additions & 1 deletion code/node/dayjs/demo-3.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ console.log(dayjs().add(10, 'hour'))
console.log(dayjs().subtract(7, 'year'))
console.log(dayjs().subtract(2, 'month'))


// 设置到一个时间的开始
console.log(dayjs().startOf('year'))
// 设置到一个时间的末尾
Expand Down
1 change: 0 additions & 1 deletion code/node/dayjs/demo-4.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,5 @@ console.log(dayjs('2022-01-25').unix())
// 获取当前月份包含的天数
console.log(dayjs('2019-01-25').daysInMonth())


// 原生Date对象
console.log(dayjs('2019-01-25').toDate())
1 change: 0 additions & 1 deletion code/node/dayjs/demo-5.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ console.log(dayjs().isAfter(dayjs('2021-01-01')))
// 比较年份
console.log(dayjs().isAfter('2024-01-01', 'year'))


// 是否为dayjs对象
console.log(dayjs.isDayjs(dayjs()))
console.log(dayjs.isDayjs(new Date()))
3 changes: 1 addition & 2 deletions code/node/lodash/demo-string.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
* @private
*/


const _ = require('lodash')
// const _ = require('lodash')

// camelCase: 小驼峰
// kebabCase: 转换为-连接,例如:Foo Bar ----> foo-bar
Expand Down
1 change: 0 additions & 1 deletion code/redis/cluster/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
## - docker-compose up -d
## 默认密码:123456
##
##

version: '2'
services:
Expand Down
1 change: 0 additions & 1 deletion docs/.vuepress/config/constant.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ Copyrights ©2015-${new Date().getFullYear()} 妍荣姑娘网络工作室

// 代码组织:<a href="https://github.com/142vip" target="_blank">142VIP</a>
// Theme By <a href="https://theme-hope.vuejs.press/" target="_blank">vuepress-theme-hope</a> |

export const NotFoundMsgList = [
"徒留我孤单在湖面成双。",
"就让回忆永远停在那里。",
Expand Down
115 changes: 67 additions & 48 deletions docs/.vuepress/config/navbar.ts
Original file line number Diff line number Diff line change
@@ -1,50 +1,69 @@
export default [
{
text: "首页",
link: "/",
},
{
text: "SOLO算法",
link: "/manuscripts/solo-algorithm",
},
{
text: "Battle面试官",
link: "/manuscripts/battle-interview",
},
{
text: "前端",
link: "/manuscripts/front-end",
},

{
text: "Node后端",
link: "/manuscripts/server-end",
},
{
text: '微服务',
link: "/manuscripts/microservice",
},
{
text: "开发技巧",
link: "/manuscripts/develop-skill",
},
{
text: "读书整理",
link: "/manuscripts/read-books",
},
// {
// text: "网站",
// children:[
// "/manuscripts/other/公众号文章.md",
// "/manuscripts/other/技术文档.md",
// {
// text:"RoadMap",
// link:"https://142vip-cn.feishu.cn/share/base/view/shrcnxtFKV2JfBZbqFh0GUxzTOg"
// }
// ],
// },
{
text: "其他",
link: "/manuscripts/other",
},
{
text: "首页",
link: "/",
},
{
text: "SOLO算法",
link: "/manuscripts/solo-algorithm",
},
{
text: "Battle面试官",
link: "/manuscripts/battle-interview",
},
{
text: "前端",
link: "/manuscripts/front-end",
},
{
text: "Node后端",
link: "/manuscripts/server-end",
},
{
text: '微服务',
link: "/manuscripts/microservice",
},
{
text: "开发技巧",
link: "/manuscripts/develop-skill",
},
{
text: "读书整理",
link: "/manuscripts/read-books",
},
{
text: "了解更多",
children: [
{
text: '变更记录',
link: '/manuscripts/changelog.md'
},
{
text: '网站动态',
link: '/manuscripts/big-event-history.md'
},
{
text: "自媒体",
children: [
{
text: "公众号文章",
link: "/manuscripts/wechat-list.md"
},
]
},
{
text: "外链",
children: [
{
text: '常用网站',
link: '/manuscripts/frequent-site-link.md'
},
{
text: "RoadMap计划",
link: "https://142vip-cn.feishu.cn/share/base/view/shrcnxtFKV2JfBZbqFh0GUxzTOg"
}
]
},
],
},
];
4 changes: 0 additions & 4 deletions docs/.vuepress/config/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import {serverEndSidebar} from "../../manuscripts/server-end/server-end.sidebar"
import {eggSidebar} from "../../manuscripts/server-end/framework/egg/egg.sidebar";
import {developSkillSidebar} from "../../manuscripts/develop-skill/develop-skill.sidebar";
import {soloAlgorithmSidebar} from "../../manuscripts/solo-algorithm/solo-algorithm.sidebar";
import {esStandardSidebar} from "../../manuscripts/read-books/cs-books/es-standard/es-standard-sidebar";
import {OtherSidebar} from "../../manuscripts/other/other.sidebar";
import {jobChanceSidebar} from "../../manuscripts/job-chance/job-chance.sidebar";
import {readBooksSidebar} from "../../manuscripts/read-books/read-books.sidebar";
import {microserviceSidebar} from "../../manuscripts/microservice/microservice.sidebar";
Expand All @@ -17,8 +15,6 @@ export default {
"/manuscripts/develop-skill": developSkillSidebar,
"/manuscripts/solo-algorithm": soloAlgorithmSidebar,
"/manuscripts/read-books": readBooksSidebar,
"/manuscripts/read-books/cs-books/es-standard": esStandardSidebar,
"/manuscripts/other": OtherSidebar,
"/manuscripts/job-chance": jobChanceSidebar,
"/manuscripts/microservice": microserviceSidebar,
"/manuscripts/battle-interview": battleInterviewSidebar,
Expand Down
Loading