Skip to content

Commit 8726c70

Browse files
committed
move to wangfuyou.com
1 parent 0567d31 commit 8726c70

File tree

14 files changed

+452
-50
lines changed

14 files changed

+452
-50
lines changed

.github/workflows/deploy.yml

+23
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,29 @@ jobs:
4949
branch: gh-pages
5050
folder: src/.vuepress/dist
5151

52+
- name: 验证服务器连接
53+
env:
54+
SERVER_USER: ${{ secrets.SERVER_USER }}
55+
SERVER_HOST: ${{ secrets.SERVER_HOST }}
56+
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
57+
run: |
58+
echo "$SSH_PRIVATE_KEY" > id_rsa
59+
chmod 600 id_rsa
60+
echo "SERVER_USER: $SERVER_USER"
61+
echo "SERVER_HOST: $SERVER_HOST"
62+
ssh -vvv -i id_rsa -o StrictHostKeyChecking=no $SERVER_USER@$SERVER_HOST "touch /home/ubuntu/2xiao/test_file && echo '✅ 连接成功' || echo '❌ 连接失败'"
63+
64+
- name: 部署到服务器
65+
if: ${{ github.event_name == 'push' }}
66+
env:
67+
SERVER_USER: ${{ secrets.SERVER_USER }}
68+
SERVER_HOST: ${{ secrets.SERVER_HOST }}
69+
SERVER_PATH: ${{ secrets.SERVER_PATH }}
70+
run: |
71+
rsync -avz --chmod=D2775,F664 \
72+
-e "ssh -i id_rsa -o StrictHostKeyChecking=no" \
73+
src/.vuepress/dist/ $SERVER_USER@$SERVER_HOST:$SERVER_PATH
74+
5275
deploy-main:
5376
runs-on: ubuntu-latest
5477

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# LeetCode-JS
22

33
<p>
4-
<img src="https://2xiao.github.io/assets/image/leetcode-js-logo.png" alt="logo" height="360"/>
4+
<img src="https://wangfuyou.com/assets/image/leetcode-js-logo.png" alt="logo" height="360"/>
55
</p>
66

77
包含 LeetCode、《剑指 Offer》、《剑指 Offer II》等 1000+ 道算法题的详细题解。
@@ -10,7 +10,7 @@
1010

1111
欢迎「Star ⭐️ 」 和 「Fork」,这是对我最大的鼓励和支持。
1212

13-
电子书:[https://2xiao.github.io/leetcode-js](https://2xiao.github.io/leetcode-js)
13+
电子书:[https://wangfuyou.com/leetcode-js](https://wangfuyou.com/leetcode-js)
1414

1515
源码:[https://github.com/2xiao/leetcode-js](https://github.com/2xiao/leetcode-js)
1616

assets/scripts/const.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
online_path = 'https://2xiao.github.io/leetcode-js'
2+
online_path = 'https://wangfuyou.com/leetcode-js'
33
origin_path = '../origins/'
44
categories_path = '../origins/categories_list.md'
55

src/.vuepress/navbar.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,31 @@ export default navbar([
1010
{
1111
text: 'React 源码',
1212
icon: 'react',
13-
link: 'https://2xiao.github.io/my-react/',
13+
link: 'https://wangfuyou.com/my-react/',
1414
target: '_self'
1515
},
1616
{
1717
text: 'Vue 源码',
1818
icon: 'vue',
19-
link: 'https://2xiao.github.io/my-vue/',
19+
link: 'https://wangfuyou.com/my-vue/',
2020
target: '_self'
2121
},
2222
{
2323
text: '系统设计',
2424
icon: 'launch',
25-
link: 'https://2xiao.github.io/system-design/',
25+
link: 'https://wangfuyou.com/system-design/',
2626
target: '_self'
2727
},
2828
{
2929
text: '前端面试题',
3030
icon: 'creative',
31-
link: 'https://2xiao.github.io/interview/',
31+
link: 'https://wangfuyou.com/interview/',
3232
target: '_self'
3333
},
3434
{
3535
text: '博客',
3636
icon: 'blog',
37-
link: 'https://2xiao.github.io/blog/',
37+
link: 'https://wangfuyou.com/blog/',
3838
target: '_self'
3939
}
4040
]);

src/.vuepress/theme.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import sidebar from './sidebar.ts';
77
export default hopeTheme(
88
{
99
pure: true,
10-
hostname: 'https://2xiao.github.io',
10+
hostname: 'https://wangfuyou.com',
1111

1212
author: {
1313
name: '2xiao',

src/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# LeetCode-JS 通关指南
22

33
<p>
4-
<img src="https://2xiao.github.io/assets/image/leetcode-js-logo.png" alt="logo" height="360"/>
4+
<img src="https://wangfuyou.com/assets/image/leetcode-js-logo.png" alt="logo" height="360"/>
55
</p>
66

77
包含 LeetCode、《剑指 Offer》、《剑指 Offer II》等 1000+ 道算法题的详细题解。
@@ -10,7 +10,7 @@
1010

1111
欢迎「Star ⭐️ 」 和 「Fork」,这是对我最大的鼓励和支持。
1212

13-
电子书:[https://2xiao.github.io/leetcode-js](https://2xiao.github.io/leetcode-js)
13+
电子书:[https://wangfuyou.com/leetcode-js](https://wangfuyou.com/leetcode-js)
1414

1515
源码:[https://github.com/2xiao/leetcode-js](https://github.com/2xiao/leetcode-js)
1616

src/book/hash.md

+2-4
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
:::: md-demo 相关题目
5959

60-
#### 📌 [705. 设计哈希集合 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0705.html)
60+
#### 📌 [705. 设计哈希集合 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0705.html)
6161

6262
#### 💻 **题目大意**
6363

@@ -169,7 +169,7 @@ class MyHashSet {
169169

170170
:::: md-demo 相关题目
171171

172-
#### 📌 [706. 设计哈希映射 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0706.html)
172+
#### 📌 [706. 设计哈希映射 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0706.html)
173173

174174
#### 💻 **题目大意**
175175

@@ -647,7 +647,6 @@ jsonToMap('[[true,7],[{"foo":3},["abc"]]]');
647647
<!-- Please keep comment here to allow auto update -->
648648
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN `npm run lc` TO UPDATE -->
649649

650-
651650
## 相关题目
652651

653652
<!-- prettier-ignore -->
@@ -685,4 +684,3 @@ jsonToMap('[[true,7],[{"foo":3},["abc"]]]');
685684
| 149 | 直线上最多的点数 | [[]](/problem/0149.md) | [`几何`](/tag/geometry.md) [`数组`](/tag/array.md) [`哈希表`](/tag/hash-table.md) `1+` | 🔴 | [🀄️](https://leetcode.cn/problems/max-points-on-a-line) [🔗](https://leetcode.com/problems/max-points-on-a-line) |
686685
| 359 | 日志速率限制器 🔒 | | [`设计`](/tag/design.md) [`哈希表`](/tag/hash-table.md) [`数据流`](/tag/data-stream.md) | 🟢 | [🀄️](https://leetcode.cn/problems/logger-rate-limiter) [🔗](https://leetcode.com/problems/logger-rate-limiter) |
687686
| 811 | 子域名访问计数 | | [`数组`](/tag/array.md) [`哈希表`](/tag/hash-table.md) [`字符串`](/tag/string.md) `1+` | 🟠 | [🀄️](https://leetcode.cn/problems/subdomain-visit-count) [🔗](https://leetcode.com/problems/subdomain-visit-count) |
688-

src/book/linked_list.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ console.log(linkedList.count()); // output: 3
520520

521521
:::: md-demo 相关题目
522522

523-
#### 📌 [206. 反转链表 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0206.html)
523+
#### 📌 [206. 反转链表 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0206.html)
524524

525525
#### 💻 **题目大意**
526526

@@ -598,7 +598,7 @@ var reverseList = function (head) {
598598

599599
:::: md-demo 相关题目
600600

601-
#### 📌 [141. 环形链表 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0141.html)
601+
#### 📌 [141. 环形链表 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0141.html)
602602

603603
#### 💻 **题目大意**
604604

@@ -678,7 +678,7 @@ var hasCycle = function (head) {
678678

679679
:::: md-demo 相关题目
680680

681-
#### 📌 [21. 合并两个有序链表 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0021.html)
681+
#### 📌 [21. 合并两个有序链表 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0021.html)
682682

683683
#### 💻 **题目大意**
684684

@@ -755,7 +755,7 @@ var mergeTwoLists = function (list1, list2) {
755755

756756
:::: md-demo 相关题目
757757

758-
#### 📌 [19. 删除链表的倒数第 N 个节点 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0019.html)
758+
#### 📌 [19. 删除链表的倒数第 N 个节点 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0019.html)
759759

760760
#### 💻 **题目大意**
761761

@@ -834,7 +834,7 @@ var removeNthFromEnd = function (head, n) {
834834

835835
:::: md-demo 相关题目
836836

837-
#### 📌 [876. 链表的中间节点 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0876.html)
837+
#### 📌 [876. 链表的中间节点 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0876.html)
838838

839839
#### 💻 **题目大意**
840840

@@ -911,7 +911,7 @@ var middleNode = function (head) {
911911

912912
:::: md-demo 相关题目
913913

914-
#### 📌 [146. LRU 缓存 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0146.html)
914+
#### 📌 [146. LRU 缓存 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0146.html)
915915

916916
#### 💻 **题目大意**
917917

@@ -1068,7 +1068,7 @@ class LRUCache {
10681068

10691069
:::: md-demo 相关题目
10701070

1071-
#### 📌 [148. 链表排序 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0148.html)
1071+
#### 📌 [148. 链表排序 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0148.html)
10721072

10731073
::::
10741074

@@ -1683,7 +1683,6 @@ x.next = p.next; // 将x的节点的next指针指向b节点;
16831683
<!-- Please keep comment here to allow auto update -->
16841684
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN `npm run lc` TO UPDATE -->
16851685

1686-
16871686
## 相关题目
16881687

16891688
#### 链表基础题目
@@ -1728,4 +1727,3 @@ x.next = p.next; // 将x的节点的next指针指向b节点;
17281727
| 143 | 重排链表 | [[]](/problem/0143.md) | [``](/tag/stack.md) [`递归`](/tag/recursion.md) [`链表`](/tag/linked-list.md) `1+` | 🟠 | [🀄️](https://leetcode.cn/problems/reorder-list) [🔗](https://leetcode.com/problems/reorder-list) |
17291728
| 2 | 两数相加 | [[]](/problem/0002.md) | [`递归`](/tag/recursion.md) [`链表`](/tag/linked-list.md) [`数学`](/tag/math.md) | 🟠 | [🀄️](https://leetcode.cn/problems/add-two-numbers) [🔗](https://leetcode.com/problems/add-two-numbers) |
17301729
| 445 | 两数相加 II | [[]](/problem/0445.md) | [``](/tag/stack.md) [`链表`](/tag/linked-list.md) [`数学`](/tag/math.md) | 🟠 | [🀄️](https://leetcode.cn/problems/add-two-numbers-ii) [🔗](https://leetcode.com/problems/add-two-numbers-ii) |
1731-

src/book/queue.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ console.log(queue.toString()); // output: 2,3
248248

249249
:::: md-demo 相关题目
250250

251-
#### 📌 [622. 设计循环队列 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0622.html)
251+
#### 📌 [622. 设计循环队列 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0622.html)
252252

253253
#### 💻 **题目大意**
254254

@@ -718,7 +718,6 @@ console.log(priorityQueue.count()); // output: 3
718718
<!-- Please keep comment here to allow auto update -->
719719
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN `npm run lc` TO UPDATE -->
720720

721-
722721
## 相关题目
723722

724723
#### 队列基础题目
@@ -744,4 +743,3 @@ console.log(priorityQueue.count()); // output: 3
744743
| 295 | 数据流的中位数 | [[]](/problem/0295.md) | [`设计`](/tag/design.md) [`双指针`](/tag/two-pointers.md) [`数据流`](/tag/data-stream.md) `2+` | 🔴 | [🀄️](https://leetcode.cn/problems/find-median-from-data-stream) [🔗](https://leetcode.com/problems/find-median-from-data-stream) |
745744
| 23 | 合并 K 个升序链表 | [[]](/problem/0023.md) | [`链表`](/tag/linked-list.md) [`分治`](/tag/divide-and-conquer.md) [`堆(优先队列)`](/tag/heap-priority-queue.md) `1+` | 🔴 | [🀄️](https://leetcode.cn/problems/merge-k-sorted-lists) [🔗](https://leetcode.com/problems/merge-k-sorted-lists) |
746745
| 218 | 天际线问题 | | [`树状数组`](/tag/binary-indexed-tree.md) [`线段树`](/tag/segment-tree.md) [`数组`](/tag/array.md) `4+` | 🔴 | [🀄️](https://leetcode.cn/problems/the-skyline-problem) [🔗](https://leetcode.com/problems/the-skyline-problem) |
747-

src/book/stack.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ console.log(stack.count()); // output: 2
170170

171171
:::: md-demo 相关题目
172172

173-
#### 📌 [227. 基本计算器 II - LeetCode](https://2xiao.github.io/leetcode-js/problem/0227.html)
173+
#### 📌 [227. 基本计算器 II - LeetCode](https://wangfuyou.com/leetcode-js/problem/0227.html)
174174

175175
#### 💻 **题目大意**
176176

@@ -223,7 +223,7 @@ console.log(stack.count()); // output: 2
223223

224224
:::: md-demo 相关题目
225225

226-
#### 📌 [20. 有效的括号 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0020.html)
226+
#### 📌 [20. 有效的括号 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0020.html)
227227

228228
#### 💻 **题目大意**
229229

@@ -299,7 +299,7 @@ var isValid = function (s) {
299299

300300
:::: md-demo 相关题目
301301

302-
#### 📌 [1472. 设计浏览器历史记录 - LeetCode](https://2xiao.github.io/leetcode-js/problem/1472.html)
302+
#### 📌 [1472. 设计浏览器历史记录 - LeetCode](https://wangfuyou.com/leetcode-js/problem/1472.html)
303303

304304
#### 💻 **题目大意**
305305

@@ -479,7 +479,7 @@ function add(x, y) {
479479

480480
:::: md-demo 相关题目
481481

482-
#### 📌 [496. 下一个更大元素 I - LeetCode](https://2xiao.github.io/leetcode-js/problem/0496.html)
482+
#### 📌 [496. 下一个更大元素 I - LeetCode](https://wangfuyou.com/leetcode-js/problem/0496.html)
483483

484484
#### 💻 **题目大意**
485485

@@ -549,7 +549,7 @@ var nextGreaterElement = function (nums1, nums2) {
549549

550550
:::: md-demo 相关题目
551551

552-
#### 📌 [739. 每日温度 - LeetCode](https://2xiao.github.io/leetcode-js/problem/0739.html)
552+
#### 📌 [739. 每日温度 - LeetCode](https://wangfuyou.com/leetcode-js/problem/0739.html)
553553

554554
#### 💻 **题目大意**
555555

@@ -619,7 +619,6 @@ var dailyTemperatures = function (temperatures) {
619619
<!-- Please keep comment here to allow auto update -->
620620
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN `npm run lc` TO UPDATE -->
621621

622-
623622
## 相关题目
624623

625624
#### 栈基础题目
@@ -654,4 +653,3 @@ var dailyTemperatures = function (temperatures) {
654653
| 316 | 去除重复字母 | [[]](/problem/0316.md) | [``](/tag/stack.md) [`贪心`](/tag/greedy.md) [`字符串`](/tag/string.md) `1+` | 🟠 | [🀄️](https://leetcode.cn/problems/remove-duplicate-letters) [🔗](https://leetcode.com/problems/remove-duplicate-letters) |
655654
| 42 | 接雨水 | [[]](/problem/0042.md) | [``](/tag/stack.md) [`数组`](/tag/array.md) [`双指针`](/tag/two-pointers.md) `2+` | 🔴 | [🀄️](https://leetcode.cn/problems/trapping-rain-water) [🔗](https://leetcode.com/problems/trapping-rain-water) |
656655
| 85 | 最大矩形 | [[]](/problem/0085.md) | [``](/tag/stack.md) [`数组`](/tag/array.md) [`动态规划`](/tag/dynamic-programming.md) `2+` | 🔴 | [🀄️](https://leetcode.cn/problems/maximal-rectangle) [🔗](https://leetcode.com/problems/maximal-rectangle) |
657-

0 commit comments

Comments
 (0)