Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 9f801d6

Browse files
committed
chore: update deps
1 parent 54f1e70 commit 9f801d6

File tree

7 files changed

+2840
-2413
lines changed

7 files changed

+2840
-2413
lines changed

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
dist/
22
node_modules/
33

4-
54
**/.vuepress/.cache/**
65
**/.vuepress/.temp/**
76

87
leetcode/.vuepress/sidebar.ts
98
leetcode/**/*.md
109
!leetcode/*/README.md
10+
11+
pnpm-lock.yaml

leetcode/.vuepress/config.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,10 @@ import theme from "./theme.js";
44
export default defineUserConfig({
55
title: "LeetCode",
66
description: "LeetCode 练习",
7+
lang: "zh-CN",
78

89
dest: "./dist",
910

10-
locales: {
11-
"/": {
12-
lang: "zh-CN",
13-
},
14-
},
1511

1612
theme,
1713

leetcode/.vuepress/theme.ts

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import sidebar from "./sidebar.js";
44
export default hopeTheme({
55
logo: "/logo.png",
66

7+
favicon: '/favicon.ico',
78
hostname: "https://leetcode.innenu.com",
89
author: "LeetCode",
910

@@ -37,38 +38,9 @@ export default hopeTheme({
3738

3839
plugins: {
3940
mdEnhance: {
40-
katex: true,
41+
mathjax: true,
4142
sup: true,
4243
sub: true,
4344
},
44-
45-
pwa: {
46-
manifest: {
47-
icons: [
48-
{
49-
src: "/assets/icon/chrome-192.png",
50-
sizes: "192x192",
51-
type: "image/png",
52-
},
53-
{
54-
src: "/assets/icon/chrome-512.png",
55-
sizes: "512x512",
56-
type: "image/png",
57-
},
58-
{
59-
src: "/assets/icon/chrome-mask-192.png",
60-
sizes: "192x192",
61-
purpose: "maskable",
62-
type: "image/png",
63-
},
64-
{
65-
src: "/assets/icon/chrome-mask-512.png",
66-
sizes: "512x512",
67-
purpose: "maskable",
68-
type: "image/png",
69-
},
70-
],
71-
},
72-
},
7345
},
7446
});

leetcode/122-best-time-to-buy-and-sell-stock-ii/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# [122. Best Time to Buy and Sell Stock II](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)
22

3-
Say you have an array `prices` for which the *i*th element is the price of a given stock on day *i*.
3+
Say you have an array `prices` for which the *i*th element is the price of a given stock on day _i_.
44

55
Design an algorithm to find the maximum profit. You may complete as many transactions as you like (i.e., buy one and sell one share of the stock multiple times).
66

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
"lint-prettier": "pnpm lint-prettier:check --write",
2424
"lint-prettier:check": "prettier --check .",
2525
"lint:check": "pnpm lint-prettier:check && pnpm lint-eslint:check && pnpm lint-markdown:check && pnpm lint-clang:check",
26-
"md:clean": "ts-node --esm ./script/clean.ts",
27-
"md:generate": "ts-node --esm ./script/generate.ts"
26+
"md:clean": "tsx ./script/clean.ts",
27+
"md:generate": "tsx ./script/generate.ts"
2828
},
2929
"lint-staged": {
3030
"*.{c,csharp,cpp,java}": [
@@ -42,28 +42,28 @@
4242
]
4343
},
4444
"dependencies": {
45-
"@vuepress/client": "2.0.0-beta.53",
46-
"vue": "3.2.45",
47-
"vuepress": "2.0.0-beta.53",
48-
"vuepress-theme-hope": "2.0.0-beta.135"
45+
"@vuepress/client": "2.0.0-beta.61",
46+
"vue": "3.2.47",
47+
"vuepress": "2.0.0-beta.61",
48+
"vuepress-theme-hope": "2.0.0-beta.190"
4949
},
5050
"devDependencies": {
51-
"@types/node": "18.11.9",
51+
"@types/node": "18.14.6",
5252
"@types/turndown": "5.0.1",
53-
"@typescript-eslint/eslint-plugin": "5.44.0",
54-
"@typescript-eslint/parser": "5.44.0",
53+
"@typescript-eslint/eslint-plugin": "5.54.1",
54+
"@typescript-eslint/parser": "5.54.1",
5555
"clang-format": "1.8.0",
56-
"eslint": "8.30.0",
57-
"eslint-config-prettier": "8.5.0",
56+
"eslint": "8.35.0",
57+
"eslint-config-prettier": "8.7.0",
5858
"eslint-plugin-prettier": "4.2.1",
59-
"husky": "8.0.2",
60-
"lint-staged": "13.1.0",
61-
"markdownlint-cli": "0.32.2",
62-
"prettier": "2.8.1",
63-
"sort-package-json": "2.1.0",
64-
"ts-node": "10.9.1",
59+
"husky": "8.0.3",
60+
"markdownlint-cli": "0.33.0",
61+
"nano-staged": "0.8.0",
62+
"prettier": "2.8.4",
63+
"sort-package-json": "2.4.1",
64+
"tsx": "3.12.3",
6565
"turndown": "7.1.1",
66-
"typescript": "4.8.4"
66+
"typescript": "4.9.5"
6767
},
68-
"packageManager": "pnpm@7.20.0"
68+
"packageManager": "pnpm@7.29.1"
6969
}

0 commit comments

Comments
 (0)