简体   繁体   English

更改 WSO2 API Manager v3.0.0 的 UI

[英]change the UI of the WSO2 API Manager v3.0.0

I want to change the UI of the wso2 API manager.我想更改 wso2 API 管理器的 UI。

I use product-am v3.0.0 , carbon-apimgt v6.5.349 , and nexus.我使用product-am v3.0.0carbon-apimgt v6.5.349和 nexus。 I'm add a <h4></h4> tag in /carbon-apimgt-6.5.349/features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/devportal/source/src/app/components/AnonymousView/ SignUp.jsx and the change the font size in defaultheme.js file.我在 /carbon-apimgt-6.5.349/features/apimgt/org.wso2.carbon.apimgt.store.feature/src/main/resources/devportal/source/src 中添加了一个<h4></h4>标签/app/components/AnonymousView/ SignUp.jsx和更改defaultheme.js文件中的字体大小。

I change the default repository to myrepo.com and added configuration below:我将默认存储库更改为 myrepo.com 并在下面添加了配置:

<distributionManagement>
        <repository>
            <id>nexus</id>
            <name>nexus-mixed</name>
            <url>http://myrepo.com/repository/nexus-mixed/</url>
        </repository>
</distributionManagement>

then run the mvn clean deploy command.然后运行mvn clean deploy命令。

but when build in product-am and run only font size changed and <h4></h4> tag not added.但是当在 product-am 中构建并运行时,仅更改了字体大小并且未添加<h4></h4>标签。

issue in GitHub: this GitHub 中的问题:这个

dh

API Manager 3.x UIs has two levels of customizations, in the basic level, You can change the UI themeing via defaulttheme.js file, which does not require to re-build the web app to make the changes effect. API Manager 3.x UIs 有两个级别的自定义,在基本级别,您可以通过defaulttheme.js文件更改 UI 主题,不需要重新构建 Web 应用程序来使更改生效。 The limitation in this method is, You can only change the theming parameters which are pre-defined in the theme file.此方法的局限性在于,您只能更改主题文件中预定义的主题参数。 But still, there are quite a lot of theming capabilities in it.但是,它仍然有很多主题功能。 The defaultTheme.js file in API Manager 3.0.0 is an extension of the Material-UI default theme file, Hence you can apply any customization which is allowed in material-ui theme structure. API Manager 3.0.0 中的defaultTheme.js文件是Material-UI 默认主题文件的扩展,因此您可以应用 material-ui 主题结构中允许的任何自定义。

In the second level customization or advanced customization, you can customize the behavior of the web app by overriding the React JS implementation.在二级定制或高级定制中,您可以通过覆盖 React JS 实现来定制 Web 应用的行为。 We have developed a webpack plugin to override the default React component implementation with extended or custom implementation when the user decided to add customization to their app.我们开发了一个 webpack 插件,当用户决定向他们的应用程序添加自定义时,用扩展或自定义实现覆盖默认的 React 组件实现。 You can find the documentation for this advance customization here .您可以在此处找到此高级定制的文档。

And also please note:另请注意:

Modified the default React component implementation in the web apps are not recommended.不建议修改 Web 应用程序中的默认 React 组件实现。 By doing so it will be difficult to update the server through wso2 update manager (WUM), So that our recommendation is to use any of the above customization methods to customize the web apps according to your need.这样做将很难通过 wso2 更新管理器 (WUM) 更新服务器,因此我们的建议是使用上述任何自定义方法根据您的需要自定义 Web 应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM