Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
118 changed files
with
44,329 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# zhi-blog-api | ||
|
||
a common blog interface | ||
|
||
Note: BlogApi should be implemented as a specific BlogApi, it cannot be used directly | ||
|
||
## Deps | ||
|
||
``` | ||
├── zhi-env | ||
├── zhi-log | ||
``` | ||
|
||
## Dev | ||
|
||
```bash | ||
pnpm dev -F zhi-blog-api | ||
``` | ||
|
||
## Build | ||
|
||
```bash | ||
pnpm build -F zhi-blog-api | ||
``` | ||
|
||
## Test | ||
|
||
Execute the unit tests via [vitest](https://vitest.dev) | ||
|
||
```bash | ||
pnpm test -F zhi-blog-api | ||
``` | ||
|
||
## Publish | ||
|
||
```bash | ||
pnpm publish -F zhi-blog-api --tag latest | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import BlogConfig, { PageType, PasswordType } from "./lib/blogConfig"; | ||
import BlogPlaceholder from "./lib/blogPlaceholder"; | ||
import BlogApi from "./lib/blogApi"; | ||
import BlogAdaptor from "./lib/zhi-blog-api"; | ||
import Post from "./lib/models/post"; | ||
import UserBlog from "./lib/models/userBlog"; | ||
import SiteConfig from "./lib/models/siteConfig"; | ||
import PostStatusEnum from "./lib/enums/postStatusEnum"; | ||
import CategoryInfo from "./lib/models/categoryInfo"; | ||
import MediaObject from "./lib/models/mediaObject"; | ||
import BlogConstants from "./lib/blogConstants"; | ||
import BlogTypeEnum from "./lib/enums/blogTypeEnum"; | ||
export { BlogApi, BlogAdaptor }; | ||
export { BlogConfig, BlogPlaceholder, PasswordType, PageType, PostStatusEnum }; | ||
export { Post, UserBlog, SiteConfig, CategoryInfo, MediaObject }; | ||
export { BlogConstants, BlogTypeEnum }; |
Oops, something went wrong.