-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #49 from terwer/dev
feat:#42 支持Wordpress
- Loading branch information
Showing
6 changed files
with
40 additions
and
3 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
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
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
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
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,20 @@ | ||
import {MetaWeblogApiAdaptor} from "./metaWeblogApiAdaptor"; | ||
import {IApi} from "../api"; | ||
import {API_TYPE_CONSTANTS} from "../constants"; | ||
import {MetaWeblogApi} from "./metaWeblogApi"; | ||
|
||
/** | ||
* Wordpress的API适配器 | ||
*/ | ||
export class WordpressApiAdaptor extends MetaWeblogApiAdaptor implements IApi{ | ||
constructor() { | ||
super(); | ||
|
||
this.apiUrl = process.env.WORDPRESS_API_URL || "" | ||
this.username = process.env.WORDPRESS_USERNAME || "" | ||
this.password = process.env.WORDPRESS_PASSWORD || "" | ||
this.appkey = API_TYPE_CONSTANTS.API_TYPE_WORDPRESS | ||
|
||
this.metaWeblog = new MetaWeblogApi(this.appkey, this.apiUrl, this.username, this.password); | ||
} | ||
} |
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
ee2115a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
node-siyuan – ./
node-siyuan-git-main-terwergreen.vercel.app
node-siyuan-terwergreen.vercel.app
node-siyuan.vercel.app
siyuan.terwer.space