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
12 changes: 6 additions & 6 deletions .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

steps:
- name: Check out
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Step rust toolchain
uses: actions-rs/toolchain@v1
Expand Down Expand Up @@ -58,12 +58,12 @@ jobs:

steps:
- name: Check out
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Setup node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
Expand Down Expand Up @@ -144,12 +144,12 @@ jobs:

steps:
- name: Check out
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}

- name: Setup node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
Expand Down Expand Up @@ -197,7 +197,7 @@ jobs:
npx @vscode/vsce package --pre-release --target ${{ steps.target.outputs.TARGET }} --no-update-package-json --no-git-tag-version ${{ steps.version.outputs.VERSION }}

- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.target.outputs.TARGET }}
path: '*.vsix'
2 changes: 1 addition & 1 deletion rs/src/cnb/api_base.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pub const BLOG_BACKEND: &str = "https://i.cnblogs.com/api";
pub const BLOG_BACKEND: &str = "https://write.cnblogs.com/api";

#[macro_export]
macro_rules! blog_backend {
Expand Down
2 changes: 1 addition & 1 deletion src/cmd/browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export namespace Browser.Open.User {
void open(`https://www.cnblogs.com/${blogApp}`)
}

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

export async function home() {
const accountId = (await UserService.getUserInfo())?.accountId
Expand Down
6 changes: 3 additions & 3 deletions src/cmd/open/open-post-in-blog-admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ import { Browser } from '@/cmd/browser'
export const openPostInBlogAdmin = (arg?: PostTreeItem | Post | Uri) => {
if (arg instanceof Post) {
const postId = arg.id
return Browser.Open.open(`https://i.cnblogs.com/posts/edit;postId=${postId}`)
return Browser.Open.open(`https://write.cnblogs.com/posts/edit;postId=${postId}`)
}
if (arg instanceof PostTreeItem) {
const postId = arg.post.id
return Browser.Open.open(`https://i.cnblogs.com/posts/edit;postId=${postId}`)
return Browser.Open.open(`https://write.cnblogs.com/posts/edit;postId=${postId}`)
}
if (arg instanceof Uri) {
const postId = PostFileMapManager.getPostId(arg.path)
if (postId === undefined) return
return Browser.Open.open(`https://i.cnblogs.com/posts/edit;postId=${postId}`)
return Browser.Open.open(`https://write.cnblogs.com/posts/edit;postId=${postId}`)
}
}
2 changes: 1 addition & 1 deletion src/ctx/ext-const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export namespace ExtConst {
export const CLIENT_SEC = CNBLOGS_CLIENTSECRET

export namespace ApiBase {
export const BLOG_BACKEND = 'https://i.cnblogs.com/api'
export const BLOG_BACKEND = 'https://write.cnblogs.com/api'
export const OPENAPI = 'https://api.cnblogs.com/api'
export const OAUTH = 'https://oauth.cnblogs.com'
}
Expand Down
Loading