Skip to content

A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.

Merge branch 'feat/1.3.5/embed' into test

robin938598aa72fa
diff --cc cmd/wire_gen.go
index 1fa655d8,1bad939a..8696ce22
--- a/cmd/wire_gen.go
+++ b/cmd/wire_gen.go
@@@ -265,8 -263,9 +265,9 @@@ func initApplication(debug bool, server
userCenterLoginService := user_external_login2.NewUserCenterLoginService(userRepo, userCommon, userExternalLoginRepo, userActiveActivityRepo, siteInfoCommonService)
userCenterController := controller.NewUserCenterController(userCenterLoginService, siteInfoCommonService)
captchaController := controller.NewCaptchaController()
- pluginAPIRouter := router.NewPluginAPIRouter(connectorController, userCenterController, captchaController)
+ embedController := controller.NewEmbedController()
+ pluginAPIRouter := router.NewPluginAPIRouter(connectorController, userCenterController, captchaController, embedController)
- ginEngine := server.NewHTTPServer(debug, staticRouter, answerAPIRouter, swaggerRouter, uiRouter, authUserMiddleware, avatarMiddleware, shortIDMiddleware, templateRouter, pluginAPIRouter)
+ ginEngine := server.NewHTTPServer(debug, staticRouter, answerAPIRouter, swaggerRouter, uiRouter, authUserMiddleware, avatarMiddleware, shortIDMiddleware, templateRouter, pluginAPIRouter, uiConf)
scheduledTaskManager := cron.NewScheduledTaskManager(siteInfoCommonService, questionService)
application := newApplication(serverConf, ginEngine, scheduledTaskManager)
return application, func() {
diff --cc internal/controller/controller.go
index 4db48322,cfaf8f33..9eb64c58
--- a/internal/controller/controller.go
+++ b/internal/controller/controller.go
@@@ -49,5 -49,5 +49,6 @@@ var ProviderSetController = wire.NewSet
NewUserPluginController,
NewReviewController,
NewCaptchaController,
+ NewMetaController,
+ NewEmbedController,
)
diff --cc ui/src/utils/pluginKit/index.ts
index 95f14780,5a106523..1f7efaca
--- a/ui/src/utils/pluginKit/index.ts
+++ b/ui/src/utils/pluginKit/index.ts
@@@ -17,6 -17,8 +17,8 @@@
* under the License.
*/
-import React, { RefObject } from 'react';
++import { RefObject } from 'react';
+
import builtin from '@/plugins/builtin';
import * as allPlugins from '@/plugins';
import type * as Type from '@/common/interface';