Skip to content

Commit

Permalink
refactor: published to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby committed Nov 8, 2022
1 parent ab18236 commit 3784330
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore"
},
"dependencies": {
"@halo-dev/api-client": "^0.0.36",
"@halo-dev/api-client": "^0.0.42",
"@halo-dev/components": "^0.0.0-alpha.5",
"@halo-dev/console-shared": "^2.0.0-alpha.3",
"@vueuse/core": "^9.3.1",
Expand Down
8 changes: 4 additions & 4 deletions console/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions console/src/composables/use-migrate-from-halo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export function useMigrateFromHalo(
template: "",
cover: item.thumbnail,
deleted: item.status === "RECYCLE",
published: item.status === "PUBLISHED",
publish: item.status === "PUBLISHED",
publishTime: new Date(item.createTime).toISOString(),
pinned: item.topPriority > 0,
allowComment: !item.disallowComment,
Expand Down Expand Up @@ -181,7 +181,7 @@ export function useMigrateFromHalo(
template: "",
cover: item.thumbnail,
deleted: item.status === "RECYCLE",
published: item.status === "PUBLISHED",
publish: item.status === "PUBLISHED",
publishTime: new Date(item.createTime).toISOString(),
pinned: item.topPriority > 0,
allowComment: !item.disallowComment,
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/console/main.js

Large diffs are not rendered by default.

0 comments on commit 3784330

Please sign in to comment.