Merge pull request #10228 from dataease/pr@dev-v2@feat_plugin_page

feat(X-Pack): 新增插件管理页面
This commit is contained in:
fit2cloud-chenyw 2024-06-12 18:01:24 +08:00 committed by GitHub
commit 83241fb15a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 84 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

@ -1,3 +1,3 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M21 18.5V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V18.5C3 18.2238 3.22386 18 3.5 18H4.5C4.77614 18 5 18.2238 5 18.5V20H19V18.5C19 18.2238 19.2239 18 19.5 18H20.5C20.7761 18 21 18.2238 21 18.5ZM13 6.49994L16.0105 9.51041C16.2057 9.70567 16.5223 9.70567 16.7176 9.51041L17.4247 8.8033C17.6199 8.60804 17.6199 8.29146 17.4247 8.09619L12.4749 3.14645C12.3773 3.04882 12.2493 3 12.1214 3C11.9934 3 11.8655 3.04882 11.7678 3.14645L6.81808 8.09619C6.62282 8.29146 6.62282 8.60804 6.81808 8.8033L7.52519 9.51041C7.72045 9.70567 8.03703 9.70567 8.2323 9.51041L11 6.7427V17.5357C11 17.8118 11.2239 18.0357 11.5 18.0357H12.5C12.7761 18.0357 13 17.8118 13 17.5357V6.49994Z" fill="#646A73"/>
<svg width="24" height="24" viewBox="0 0 24 24" fill="" xmlns="http://www.w3.org/2000/svg">
<path d="M21 18.5V21C21 21.5523 20.5523 22 20 22H4C3.44772 22 3 21.5523 3 21V18.5C3 18.2238 3.22386 18 3.5 18H4.5C4.77614 18 5 18.2238 5 18.5V20H19V18.5C19 18.2238 19.2239 18 19.5 18H20.5C20.7761 18 21 18.2238 21 18.5ZM13 6.49994L16.0105 9.51041C16.2057 9.70567 16.5223 9.70567 16.7176 9.51041L17.4247 8.8033C17.6199 8.60804 17.6199 8.29146 17.4247 8.09619L12.4749 3.14645C12.3773 3.04882 12.2493 3 12.1214 3C11.9934 3 11.8655 3.04882 11.7678 3.14645L6.81808 8.09619C6.62282 8.29146 6.62282 8.60804 6.81808 8.8033L7.52519 9.51041C7.72045 9.70567 8.03703 9.70567 8.2323 9.51041L11 6.7427V17.5357C11 17.8118 11.2239 18.0357 11.5 18.0357H12.5C12.7761 18.0357 13 17.8118 13 17.5357V6.49994Z" fill=""/>
</svg>

Before

Width:  |  Height:  |  Size: 808 B

After

Width:  |  Height:  |  Size: 797 B

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 8.8 KiB

View File

@ -0,0 +1,16 @@
<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_15596_2622)">
<path d="M19.5408 1L14.2608 13.3298L7.323 29.5316L23.4547 22.717L31.9995 19.108L19.5408 1Z" fill="#8087E8"/>
<path d="M22.231 15.9258L23.455 22.7163L31.9997 19.1072L22.231 15.9258Z" fill="#30426B"/>
<path d="M19.5409 1L22.2312 15.927L31.9996 19.108L19.5409 1Z" fill="#6699A1"/>
<path d="M22.2314 15.9292L32.0002 19.1107L14.2615 13.332L7.32324 29.5343L23.4554 22.7198L22.2314 15.9292Z" fill="#78758C"/>
<path d="M7.32306 29.5308L14.2608 13.329L0 8.68359L7.32306 29.5308Z" fill="#A3EDBA"/>
<path d="M23.4551 22.7185L25.0197 31.3954L31.9998 19.1094L23.4551 22.7185Z" fill="#6699A1"/>
<path d="M19.5409 1L14.2608 13.3298L22.2312 15.927L19.5409 1Z" fill="#8087E8"/>
</g>
<defs>
<clipPath id="clip0_15596_2622">
<rect width="32" height="32" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 912 B

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 16 KiB

View File

@ -0,0 +1,3 @@
<svg width="21" height="21" viewBox="0 0 21 21" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M9.82114 0.511112C9.26454 0.171972 8.62429 -0.0050083 7.97253 0.000107863C7.32076 0.00522409 6.68338 0.192233 6.13217 0.540069C5.58096 0.887905 5.13782 1.38275 4.85269 1.96885C4.56755 2.55496 4.45174 3.20904 4.5183 3.85742L4.52002 3.87421L4.52231 3.89093C4.58074 4.31772 4.68836 4.68713 4.81122 5H2C0.895431 5 0 5.89543 0 7V11C0 11.1424 0.00623647 11.3455 0.0611953 11.5439C0.115745 11.7407 0.296762 12.1876 0.824169 12.3421C1.23279 12.4619 1.57532 12.3055 1.66228 12.2658L1.66518 12.2644C1.79017 12.2074 1.91374 12.1311 1.99029 12.0838L2.02826 12.0603C2.35693 11.8569 2.75032 11.6134 3.36265 11.526C3.63533 11.5009 3.90979 11.5509 4.15621 11.6708C4.40739 11.793 4.61947 11.9829 4.76854 12.2192C4.91761 12.4554 4.99776 12.7286 4.99995 13.0079C5.00215 13.2872 4.9263 13.5616 4.78095 13.8001C4.63561 14.0387 4.42654 14.2319 4.1773 14.358C3.93592 14.4802 3.66616 14.5347 3.3966 14.5161C2.65392 14.4041 2.18741 14.2014 1.87472 14.0642L1.856 14.056C1.78218 14.0236 1.68975 13.983 1.6064 13.9514C1.53629 13.9249 1.35318 13.8558 1.13605 13.8493C1.01232 13.8455 0.833567 13.86 0.642103 13.9475C0.438282 14.0407 0.28239 14.1884 0.1777 14.3554C0.0126135 14.6187 0.000879569 14.8894 6.04931e-05 15L0 15.0197V19C0 20.1046 0.895432 21 2 21H14C15.1046 21 16 20.1046 16 19V16.2471C16.316 16.3434 16.694 16.4348 17.1395 16.4998L17.1683 16.504L17.1973 16.5065C17.8466 16.5629 18.4988 16.4368 19.0804 16.1425C19.6619 15.8482 20.1497 15.3973 20.4889 14.8407C20.828 14.2841 21.005 13.6439 20.9999 12.9921C20.9948 12.3404 20.8078 11.703 20.4599 11.1518C20.1121 10.6005 19.6173 10.1574 19.0311 9.87228C18.445 9.58714 17.791 9.47133 17.1426 9.53789L17.1258 9.53962L17.1091 9.5419C16.6821 9.60035 16.3126 9.70732 16 9.82889V7C16 5.89543 15.1046 5 14 5H11.2275C11.3238 4.68397 11.4152 4.30601 11.4802 3.86046L11.4844 3.83169L11.4869 3.80272C11.5433 3.15338 11.4172 2.50119 11.1229 1.91963C10.8286 1.33808 10.3777 0.850252 9.82114 0.511112Z" fill="#3370FF"/>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -2271,6 +2271,11 @@ export default {
sure_bt: '确定',
back_parent: '返回上一级'
},
plugin: {
'flag-all': '全部',
'flag-ds': '数据源插件',
'flag-view': '图表插件'
},
online_map: {
geometry: '地理信息',
onlinemap: '在线地图',

@ -1 +1 @@
Subproject commit bb258796ea5e3d47b02d4d09afb378479cc1e163
Subproject commit 4e4115d9803717a06f114ef047183ab447f68470

View File

@ -0,0 +1,17 @@
package io.dataease.api.xpack.plugin;
import com.github.xiaoymin.knife4j.annotations.ApiSupport;
import io.dataease.api.xpack.plugin.vo.PluginVO;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import java.util.List;
@Tag(name = "系统设置:插件管理")
@ApiSupport(order = 2)
public interface PluginApi {
@GetMapping("/query")
List<PluginVO> query();
}

View File

@ -0,0 +1,30 @@
package io.dataease.api.xpack.plugin.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serial;
import java.io.Serializable;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PluginVO implements Serializable {
@Serial
private static final long serialVersionUID = -3889122930435272191L;
private Long id;
private String name;
private String flag;
private String icon;
private String version;
private Long installTime;
private String developer;
}