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

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Hope committed Mar 8, 2023
1 parent 54f1e70 commit 1e4830f
Show file tree
Hide file tree
Showing 8 changed files with 2,829 additions and 2,480 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

pnpm md:generate && pnpm lint-staged
pnpm md:generate && pnpm nano-staged
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
dist/
node_modules/


**/.vuepress/.cache/**
**/.vuepress/.temp/**

leetcode/.vuepress/sidebar.ts
leetcode/**/*.md
!leetcode/*/README.md

pnpm-lock.yaml
6 changes: 1 addition & 5 deletions leetcode/.vuepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@ import theme from "./theme.js";
export default defineUserConfig({
title: "LeetCode",
description: "LeetCode 练习",
lang: "zh-CN",

dest: "./dist",

locales: {
"/": {
lang: "zh-CN",
},
},

theme,

Expand Down
32 changes: 2 additions & 30 deletions leetcode/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import sidebar from "./sidebar.js";
export default hopeTheme({
logo: "/logo.png",

favicon: '/favicon.ico',
hostname: "https://leetcode.innenu.com",
author: "LeetCode",

Expand Down Expand Up @@ -37,38 +38,9 @@ export default hopeTheme({

plugins: {
mdEnhance: {
katex: true,
mathjax: true,
sup: true,
sub: true,
},

pwa: {
manifest: {
icons: [
{
src: "/assets/icon/chrome-192.png",
sizes: "192x192",
type: "image/png",
},
{
src: "/assets/icon/chrome-512.png",
sizes: "512x512",
type: "image/png",
},
{
src: "/assets/icon/chrome-mask-192.png",
sizes: "192x192",
purpose: "maskable",
type: "image/png",
},
{
src: "/assets/icon/chrome-mask-512.png",
sizes: "512x512",
purpose: "maskable",
type: "image/png",
},
],
},
},
},
});
2 changes: 1 addition & 1 deletion leetcode/122-best-time-to-buy-and-sell-stock-ii/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# [122. Best Time to Buy and Sell Stock II](https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii/)

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

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).

Expand Down
40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
"lint-prettier": "pnpm lint-prettier:check --write",
"lint-prettier:check": "prettier --check .",
"lint:check": "pnpm lint-prettier:check && pnpm lint-eslint:check && pnpm lint-markdown:check && pnpm lint-clang:check",
"md:clean": "ts-node --esm ./script/clean.ts",
"md:generate": "ts-node --esm ./script/generate.ts"
"md:clean": "tsx ./script/clean.ts",
"md:generate": "tsx ./script/generate.ts"
},
"lint-staged": {
"nano-staged": {
"*.{c,csharp,cpp,java}": [
"clang-format -i"
],
Expand All @@ -42,28 +42,28 @@
]
},
"dependencies": {
"@vuepress/client": "2.0.0-beta.53",
"vue": "3.2.45",
"vuepress": "2.0.0-beta.53",
"vuepress-theme-hope": "2.0.0-beta.135"
"@vuepress/client": "2.0.0-beta.61",
"vue": "3.2.47",
"vuepress": "2.0.0-beta.61",
"vuepress-theme-hope": "2.0.0-beta.190"
},
"devDependencies": {
"@types/node": "18.11.9",
"@types/node": "18.14.6",
"@types/turndown": "5.0.1",
"@typescript-eslint/eslint-plugin": "5.44.0",
"@typescript-eslint/parser": "5.44.0",
"@typescript-eslint/eslint-plugin": "5.54.1",
"@typescript-eslint/parser": "5.54.1",
"clang-format": "1.8.0",
"eslint": "8.30.0",
"eslint-config-prettier": "8.5.0",
"eslint": "8.35.0",
"eslint-config-prettier": "8.7.0",
"eslint-plugin-prettier": "4.2.1",
"husky": "8.0.2",
"lint-staged": "13.1.0",
"markdownlint-cli": "0.32.2",
"prettier": "2.8.1",
"sort-package-json": "2.1.0",
"ts-node": "10.9.1",
"husky": "8.0.3",
"markdownlint-cli": "0.33.0",
"nano-staged": "0.8.0",
"prettier": "2.8.4",
"sort-package-json": "2.4.1",
"tsx": "3.12.3",
"turndown": "7.1.1",
"typescript": "4.8.4"
"typescript": "4.9.5"
},
"packageManager": "pnpm@7.20.0"
"packageManager": "pnpm@7.29.1"
}
Loading

0 comments on commit 1e4830f

Please sign in to comment.