Skip to content

Commit

Permalink
feat: 新版挂件-集成 API 测试
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Jun 24, 2023
1 parent cac089e commit d2a6e6d
Show file tree
Hide file tree
Showing 8 changed files with 109 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/adaptors/github/GithubApiAdaptor.ts
Expand Up @@ -29,8 +29,8 @@ import { BlogApi } from "zhi-blog-api"
* Github API 适配器
*
* @author terwer
* @version 1.0.0
* @since 1.0.0
* @version 0.9.0
* @since 0.9.0
*/
class GithubApiAdaptor extends BlogApi {

Expand Down
4 changes: 2 additions & 2 deletions src/adaptors/wordpress/adaptor/wordpressApiAdaptor.ts
Expand Up @@ -34,8 +34,8 @@ import { WordpressConstants } from "~/src/adaptors/wordpress/wordpressConstants.
* WordPress API 适配器
*
* @author terwer
* @version 1.0.0
* @since 1.0.0
* @version 0.9.0
* @since 0.9.0
*/
class WordpressApiAdaptor extends BlogApi {
private readonly logger
Expand Down
4 changes: 2 additions & 2 deletions src/adaptors/wordpress/wordpressConstants.ts
Expand Up @@ -27,8 +27,8 @@
* 预定义 WordPress 变量
*
* @author terwer
* @version 1.0.0
* @since 1.0.0
* @version 0.9.0
* @since 0.9.0
*/
class WordpressConstants {
public static METHOD_GET_USERS_BLOGS = "metaWeblog.getUsersBlogs"
Expand Down
33 changes: 33 additions & 0 deletions src/adaptors/yuque/adaptor/yuqueApiAdaptor.ts
@@ -0,0 +1,33 @@
/*
* Copyright (c) 2023, Terwer . All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Terwer designates this
* particular file as subject to the "Classpath" exception as provided
* by Terwer in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Terwer, Shenzhen, Guangdong, China, youweics@163.com
* or visit www.terwer.space if you need additional information or have any
* questions.
*/

import { BlogAdaptor } from "zhi-blog-api"

/**
* Yuque API 适配器
*/
class YuqueApiAdaptor extends BlogAdaptor {}

export { YuqueApiAdaptor }
33 changes: 33 additions & 0 deletions src/adaptors/yuque/config/yuqueConfig.ts
@@ -0,0 +1,33 @@
/*
* Copyright (c) 2023, Terwer . All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Terwer designates this
* particular file as subject to the "Classpath" exception as provided
* by Terwer in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Terwer, Shenzhen, Guangdong, China, youweics@163.com
* or visit www.terwer.space if you need additional information or have any
* questions.
*/

import { BlogConfig } from "zhi-blog-api"

/**
* Yuque 配置
*/
class YuqueConfig extends BlogConfig {}

export { YuqueConfig }
33 changes: 33 additions & 0 deletions src/adaptors/yuque/config/yuquePlaceHolder.ts
@@ -0,0 +1,33 @@
/*
* Copyright (c) 2023, Terwer . All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Terwer designates this
* particular file as subject to the "Classpath" exception as provided
* by Terwer in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Terwer, Shenzhen, Guangdong, China, youweics@163.com
* or visit www.terwer.space if you need additional information or have any
* questions.
*/

import { BlogPlaceholder } from "zhi-blog-api"

/**
* Yuque 配置提示
*/
class YuquePlaceHolder extends BlogPlaceholder {}

export { YuquePlaceHolder }
4 changes: 2 additions & 2 deletions src/stores/common/commonStorage.ts
Expand Up @@ -34,8 +34,8 @@ import { SiyuanDevice } from "zhi-device"
* https://github.com/vueuse/vueuse/blob/main/packages/core/ssr-handlers.ts#L11
*
* @author terwer
* @version 1.0.0
* @since 1.0.0
* @version 0.9.0
* @since 0.9.0
*/
class CommonStorage implements StorageLikeAsync {
private readonly logger
Expand Down
4 changes: 2 additions & 2 deletions src/utils/appLogger.ts
Expand Up @@ -45,8 +45,8 @@ interface ILogger {
* 一个简单轻量级的日志记录器
*
* @author terwer
* @version 1.0.0
* @since 1.0.0
* @version 0.9.0
* @since 0.9.0
*/
export const createAppLogger = (name: string): ILogger => {
return simpleLogger(name, "publisher-widget", isDev)
Expand Down

0 comments on commit d2a6e6d

Please sign in to comment.