From e836cf0af04528e3c78c4c0930c1696dce33f77a Mon Sep 17 00:00:00 2001 From: gaoyan1998 Date: Sat, 7 Dec 2024 01:30:42 +0000 Subject: [PATCH] Spotless Apply --- .../src/main/java/org/dinky/configure/AppConfig.java | 9 +++++++-- .../main/java/org/dinky/controller/LdapController.java | 2 -- .../src/pages/Other/Welcome/WelcomeItem/FinishPage.tsx | 6 +----- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/dinky-admin/src/main/java/org/dinky/configure/AppConfig.java b/dinky-admin/src/main/java/org/dinky/configure/AppConfig.java index 477f8c1728..c5d155ceac 100644 --- a/dinky-admin/src/main/java/org/dinky/configure/AppConfig.java +++ b/dinky-admin/src/main/java/org/dinky/configure/AppConfig.java @@ -86,11 +86,16 @@ public void addInterceptors(InterceptorRegistry registry) { })) .addPathPatterns("/api/**", "/openapi/**") .excludePathPatterns( - "/api/login", "/api/sysConfig/getNeededCfg","/api/sysConfig/setInitConfig","/download/**", "/druid/**", "/api/version"); + "/api/login", + "/api/sysConfig/getNeededCfg", + "/api/sysConfig/setInitConfig", + "/download/**", + "/druid/**", + "/api/version"); registry.addInterceptor(new TenantInterceptor()) .addPathPatterns("/api/**") - .excludePathPatterns("/api/login", "/api/sysConfig/getNeededCfg","/api/sysConfig/setInitConfig") + .excludePathPatterns("/api/login", "/api/sysConfig/getNeededCfg", "/api/sysConfig/setInitConfig") .addPathPatterns("/api/alertGroup/**") .addPathPatterns("/api/alertHistory/**") .addPathPatterns("/api/alertInstance/**") diff --git a/dinky-admin/src/main/java/org/dinky/controller/LdapController.java b/dinky-admin/src/main/java/org/dinky/controller/LdapController.java index 56ace772a2..e6a8badc53 100644 --- a/dinky-admin/src/main/java/org/dinky/controller/LdapController.java +++ b/dinky-admin/src/main/java/org/dinky/controller/LdapController.java @@ -25,7 +25,6 @@ import org.dinky.data.enums.BusinessType; import org.dinky.data.enums.Status; import org.dinky.data.exception.AuthException; -import org.dinky.data.model.SystemConfiguration; import org.dinky.data.model.rbac.User; import org.dinky.data.result.Result; import org.dinky.service.LdapService; @@ -43,7 +42,6 @@ import org.springframework.web.bind.annotation.RestController; import cn.dev33.satoken.annotation.SaCheckLogin; -import cn.dev33.satoken.annotation.SaIgnore; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiOperation; diff --git a/dinky-web/src/pages/Other/Welcome/WelcomeItem/FinishPage.tsx b/dinky-web/src/pages/Other/Welcome/WelcomeItem/FinishPage.tsx index 44c65b126b..0178d0e591 100644 --- a/dinky-web/src/pages/Other/Welcome/WelcomeItem/FinishPage.tsx +++ b/dinky-web/src/pages/Other/Welcome/WelcomeItem/FinishPage.tsx @@ -26,11 +26,7 @@ const FinishPage = () => { status='success' title={l('welcome.finish.title')} subTitle={l('welcome.finish')} - extra={[ - - {l('welcome.goLogin')} - - ]} + extra={[{l('welcome.goLogin')}]} /> ); };