Skip to content

Commit 6216bc7

Browse files
authored
Merge pull request #318 from cnblogs/update-hostname
refactor: update hostname
2 parents f2dc187 + 0c1a870 commit 6216bc7

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

.github/workflows/build-check.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121

2222
steps:
2323
- name: Check out
24-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2525

2626
- name: Step rust toolchain
2727
uses: actions-rs/toolchain@v1
@@ -58,12 +58,12 @@ jobs:
5858

5959
steps:
6060
- name: Check out
61-
uses: actions/checkout@v3
61+
uses: actions/checkout@v4
6262
with:
6363
ref: ${{ github.event.pull_request.head.sha }}
6464

6565
- name: Setup node.js
66-
uses: actions/setup-node@v3
66+
uses: actions/setup-node@v4
6767
with:
6868
node-version: 20.x
6969
cache: 'npm'
@@ -144,12 +144,12 @@ jobs:
144144

145145
steps:
146146
- name: Check out
147-
uses: actions/checkout@v3
147+
uses: actions/checkout@v4
148148
with:
149149
ref: ${{ github.event.pull_request.head.sha }}
150150

151151
- name: Setup node.js
152-
uses: actions/setup-node@v3
152+
uses: actions/setup-node@v4
153153
with:
154154
node-version: 20.x
155155
cache: 'npm'
@@ -197,7 +197,7 @@ jobs:
197197
npx @vscode/vsce package --pre-release --target ${{ steps.target.outputs.TARGET }} --no-update-package-json --no-git-tag-version ${{ steps.version.outputs.VERSION }}
198198
199199
- name: Upload artifact
200-
uses: actions/upload-artifact@v3
200+
uses: actions/upload-artifact@v4
201201
with:
202202
name: ${{ steps.target.outputs.TARGET }}
203203
path: '*.vsix'

rs/src/cnb/api_base.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
pub const BLOG_BACKEND: &str = "https://i.cnblogs.com/api";
1+
pub const BLOG_BACKEND: &str = "https://write.cnblogs.com/api";
22

33
#[macro_export]
44
macro_rules! blog_backend {

src/cmd/browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export namespace Browser.Open.User {
2828
void open(`https://www.cnblogs.com/${blogApp}`)
2929
}
3030

31-
export const blogConsole = () => open('https://i.cnblogs.com')
31+
export const blogConsole = () => open('https://write.cnblogs.com')
3232

3333
export async function home() {
3434
const accountId = (await UserService.getUserInfo())?.accountId

src/cmd/open/open-post-in-blog-admin.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ import { Browser } from '@/cmd/browser'
77
export const openPostInBlogAdmin = (arg?: PostTreeItem | Post | Uri) => {
88
if (arg instanceof Post) {
99
const postId = arg.id
10-
return Browser.Open.open(`https://i.cnblogs.com/posts/edit;postId=${postId}`)
10+
return Browser.Open.open(`https://write.cnblogs.com/posts/edit;postId=${postId}`)
1111
}
1212
if (arg instanceof PostTreeItem) {
1313
const postId = arg.post.id
14-
return Browser.Open.open(`https://i.cnblogs.com/posts/edit;postId=${postId}`)
14+
return Browser.Open.open(`https://write.cnblogs.com/posts/edit;postId=${postId}`)
1515
}
1616
if (arg instanceof Uri) {
1717
const postId = PostFileMapManager.getPostId(arg.path)
1818
if (postId === undefined) return
19-
return Browser.Open.open(`https://i.cnblogs.com/posts/edit;postId=${postId}`)
19+
return Browser.Open.open(`https://write.cnblogs.com/posts/edit;postId=${postId}`)
2020
}
2121
}

src/ctx/ext-const.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export namespace ExtConst {
1313
export const CLIENT_SEC = CNBLOGS_CLIENTSECRET
1414

1515
export namespace ApiBase {
16-
export const BLOG_BACKEND = 'https://i.cnblogs.com/api'
16+
export const BLOG_BACKEND = 'https://write.cnblogs.com/api'
1717
export const OPENAPI = 'https://api.cnblogs.com/api'
1818
export const OAUTH = 'https://oauth.cnblogs.com'
1919
}

0 commit comments

Comments
 (0)